mspm0l130x 0.1.4

Peripheral access crate for TI MSPM0L130X microcontroller
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
27917
27918
27919
27920
27921
27922
27923
27924
27925
27926
27927
27928
27929
27930
27931
27932
27933
27934
27935
27936
27937
27938
27939
27940
27941
27942
27943
27944
27945
27946
27947
27948
27949
27950
27951
27952
27953
27954
27955
27956
27957
27958
27959
27960
27961
27962
27963
27964
27965
27966
27967
27968
27969
27970
27971
27972
27973
27974
27975
27976
27977
27978
27979
27980
27981
27982
27983
27984
27985
27986
27987
27988
27989
27990
27991
27992
27993
27994
27995
27996
27997
27998
27999
28000
28001
28002
28003
28004
28005
28006
28007
28008
28009
28010
28011
28012
28013
28014
28015
28016
28017
28018
28019
28020
28021
28022
28023
28024
28025
28026
28027
28028
28029
28030
28031
28032
28033
28034
28035
28036
28037
28038
28039
28040
28041
28042
28043
28044
28045
28046
28047
28048
28049
28050
28051
28052
28053
28054
28055
28056
28057
28058
28059
28060
28061
28062
28063
28064
28065
28066
28067
28068
28069
28070
28071
28072
28073
28074
28075
28076
28077
28078
28079
28080
28081
28082
28083
28084
28085
28086
28087
28088
28089
28090
28091
28092
28093
28094
28095
28096
28097
28098
28099
28100
28101
28102
28103
28104
28105
28106
28107
28108
28109
28110
28111
28112
28113
28114
28115
28116
28117
28118
28119
28120
28121
28122
28123
28124
28125
28126
28127
28128
28129
28130
28131
28132
28133
28134
28135
28136
28137
28138
28139
28140
28141
28142
28143
28144
28145
28146
28147
28148
28149
28150
28151
28152
28153
28154
28155
28156
28157
28158
28159
28160
28161
28162
28163
28164
28165
28166
28167
28168
28169
28170
28171
28172
28173
28174
28175
28176
28177
28178
28179
28180
28181
28182
28183
28184
28185
28186
28187
28188
28189
28190
28191
28192
28193
28194
28195
28196
28197
28198
28199
28200
28201
28202
28203
28204
28205
28206
28207
28208
28209
28210
28211
28212
28213
28214
28215
28216
28217
28218
28219
28220
28221
28222
28223
28224
28225
28226
28227
28228
28229
28230
28231
28232
28233
28234
28235
28236
28237
28238
28239
28240
28241
28242
28243
28244
28245
28246
28247
28248
28249
28250
28251
28252
28253
28254
28255
28256
28257
28258
28259
28260
28261
28262
28263
28264
28265
28266
28267
28268
28269
28270
28271
28272
28273
28274
28275
28276
28277
28278
28279
28280
28281
28282
28283
28284
28285
28286
28287
28288
28289
28290
28291
28292
28293
28294
28295
28296
28297
28298
28299
28300
28301
28302
28303
28304
28305
28306
28307
28308
28309
28310
28311
28312
28313
28314
28315
28316
28317
28318
28319
28320
28321
28322
28323
28324
28325
28326
28327
28328
28329
28330
28331
28332
28333
28334
28335
28336
28337
28338
28339
28340
28341
28342
28343
28344
28345
28346
28347
28348
28349
28350
28351
28352
28353
28354
28355
28356
28357
28358
28359
28360
28361
28362
28363
28364
28365
28366
28367
28368
28369
28370
28371
28372
28373
28374
28375
28376
28377
28378
28379
28380
28381
28382
28383
28384
28385
28386
28387
28388
28389
28390
28391
28392
28393
28394
28395
28396
28397
28398
28399
28400
28401
28402
28403
28404
28405
28406
28407
28408
28409
28410
28411
28412
28413
28414
28415
28416
28417
28418
28419
28420
28421
28422
28423
28424
28425
28426
28427
28428
28429
28430
28431
28432
28433
28434
28435
28436
28437
28438
28439
28440
28441
28442
28443
28444
28445
28446
28447
28448
28449
28450
28451
28452
28453
28454
28455
28456
28457
28458
28459
28460
28461
28462
28463
28464
28465
28466
28467
28468
28469
28470
28471
28472
28473
28474
28475
28476
28477
28478
28479
28480
28481
28482
28483
28484
28485
28486
28487
28488
28489
28490
28491
28492
28493
28494
28495
28496
28497
28498
28499
28500
28501
28502
28503
28504
28505
28506
28507
28508
28509
28510
28511
28512
28513
28514
28515
28516
28517
28518
28519
28520
28521
28522
28523
28524
28525
28526
28527
28528
28529
28530
28531
28532
28533
28534
28535
28536
28537
28538
28539
28540
28541
28542
28543
28544
28545
28546
28547
28548
28549
28550
28551
28552
28553
28554
28555
28556
28557
28558
28559
28560
28561
28562
28563
28564
28565
28566
28567
28568
28569
28570
28571
28572
28573
28574
28575
28576
28577
28578
28579
28580
28581
28582
28583
28584
28585
28586
28587
28588
28589
28590
28591
28592
28593
28594
28595
28596
28597
28598
28599
28600
28601
28602
28603
28604
28605
28606
28607
28608
28609
28610
28611
28612
28613
28614
28615
28616
28617
28618
28619
28620
28621
28622
28623
28624
28625
28626
28627
28628
28629
28630
28631
28632
28633
28634
28635
28636
28637
28638
28639
28640
28641
28642
28643
28644
28645
28646
28647
28648
28649
28650
28651
28652
28653
28654
28655
28656
28657
28658
28659
28660
28661
28662
28663
28664
28665
28666
28667
28668
28669
28670
28671
28672
28673
28674
28675
28676
28677
28678
28679
28680
28681
28682
28683
28684
28685
28686
28687
28688
28689
28690
28691
28692
28693
28694
28695
28696
28697
28698
28699
28700
28701
28702
28703
28704
28705
28706
28707
28708
28709
28710
28711
28712
28713
28714
28715
28716
28717
28718
28719
28720
28721
28722
28723
28724
28725
28726
28727
28728
28729
28730
28731
28732
28733
28734
28735
28736
28737
28738
28739
28740
28741
28742
28743
28744
28745
28746
28747
28748
28749
28750
28751
28752
28753
28754
28755
28756
28757
28758
28759
28760
28761
28762
28763
28764
28765
28766
28767
28768
28769
28770
28771
28772
28773
28774
28775
28776
28777
28778
28779
28780
28781
28782
28783
28784
28785
28786
28787
28788
28789
28790
28791
28792
28793
28794
28795
28796
28797
28798
28799
28800
28801
28802
28803
28804
28805
28806
28807
28808
28809
28810
28811
28812
28813
28814
28815
28816
28817
28818
28819
28820
28821
28822
28823
28824
28825
28826
28827
28828
28829
28830
28831
28832
28833
28834
28835
28836
28837
28838
28839
28840
28841
28842
28843
28844
28845
28846
28847
28848
28849
28850
28851
28852
28853
28854
28855
28856
28857
28858
28859
28860
28861
28862
28863
28864
28865
28866
28867
28868
28869
28870
28871
28872
28873
28874
28875
28876
28877
28878
28879
28880
28881
28882
28883
28884
28885
28886
28887
28888
28889
28890
28891
28892
28893
28894
28895
28896
28897
28898
28899
28900
28901
28902
28903
28904
28905
28906
28907
28908
28909
28910
28911
28912
28913
28914
28915
28916
28917
28918
28919
28920
28921
28922
28923
28924
28925
28926
28927
28928
28929
28930
28931
28932
28933
28934
28935
28936
28937
28938
28939
28940
28941
28942
28943
28944
28945
28946
28947
28948
28949
28950
28951
28952
28953
28954
28955
28956
28957
28958
28959
28960
28961
28962
28963
28964
28965
28966
28967
28968
28969
28970
28971
28972
28973
28974
28975
28976
28977
28978
28979
28980
28981
28982
28983
28984
28985
28986
28987
28988
28989
28990
28991
28992
28993
28994
28995
28996
28997
28998
28999
29000
29001
29002
29003
29004
29005
29006
29007
29008
29009
29010
29011
29012
29013
29014
29015
29016
29017
29018
29019
29020
29021
29022
29023
29024
29025
29026
29027
29028
29029
29030
29031
29032
29033
29034
29035
29036
29037
29038
29039
29040
29041
29042
29043
29044
29045
29046
29047
29048
29049
29050
29051
29052
29053
29054
29055
29056
29057
29058
29059
29060
29061
29062
29063
29064
29065
29066
29067
29068
29069
29070
29071
29072
29073
29074
29075
29076
29077
29078
29079
29080
29081
29082
29083
29084
29085
29086
29087
29088
29089
29090
29091
29092
29093
29094
29095
29096
29097
29098
29099
29100
29101
29102
29103
29104
29105
29106
29107
29108
29109
29110
29111
29112
29113
29114
29115
29116
29117
29118
29119
29120
29121
29122
29123
29124
29125
29126
29127
29128
29129
29130
29131
29132
29133
29134
29135
29136
29137
29138
29139
29140
29141
29142
29143
29144
29145
29146
29147
29148
29149
29150
29151
29152
29153
29154
29155
29156
29157
29158
29159
29160
29161
29162
29163
29164
29165
29166
29167
29168
29169
29170
29171
29172
29173
29174
29175
29176
29177
29178
29179
29180
29181
29182
29183
29184
29185
29186
29187
29188
29189
29190
29191
29192
29193
29194
29195
29196
29197
29198
29199
29200
29201
29202
29203
29204
29205
29206
29207
29208
29209
29210
29211
29212
29213
29214
29215
29216
29217
29218
29219
29220
29221
29222
29223
29224
29225
29226
29227
29228
29229
29230
29231
29232
29233
29234
29235
29236
29237
29238
29239
29240
29241
29242
29243
29244
29245
29246
29247
29248
29249
29250
29251
29252
29253
29254
29255
29256
29257
29258
29259
29260
29261
29262
29263
29264
29265
29266
29267
29268
29269
29270
29271
29272
29273
29274
29275
29276
29277
29278
29279
29280
29281
29282
29283
29284
29285
29286
29287
29288
29289
29290
29291
29292
29293
29294
29295
29296
29297
29298
29299
29300
29301
29302
29303
29304
29305
29306
29307
29308
29309
29310
29311
29312
29313
29314
29315
29316
29317
29318
29319
29320
29321
29322
29323
29324
29325
29326
29327
29328
29329
29330
29331
29332
29333
29334
29335
29336
29337
29338
29339
29340
29341
29342
29343
29344
29345
29346
29347
29348
29349
29350
29351
29352
29353
29354
29355
29356
29357
29358
29359
29360
29361
29362
29363
29364
29365
29366
29367
29368
29369
29370
29371
29372
29373
29374
29375
29376
29377
29378
29379
29380
29381
29382
29383
29384
29385
29386
29387
29388
29389
29390
29391
29392
29393
29394
29395
29396
29397
29398
29399
29400
29401
29402
29403
29404
29405
29406
29407
29408
29409
29410
29411
29412
29413
29414
29415
29416
29417
29418
29419
29420
29421
29422
29423
29424
29425
29426
29427
29428
29429
29430
29431
29432
29433
29434
29435
29436
29437
29438
29439
29440
29441
29442
29443
29444
29445
29446
29447
29448
29449
29450
29451
29452
29453
29454
29455
29456
29457
29458
29459
29460
29461
29462
29463
29464
29465
29466
29467
29468
29469
29470
29471
29472
29473
29474
29475
29476
29477
29478
29479
29480
29481
29482
29483
29484
29485
29486
29487
29488
29489
29490
29491
29492
29493
29494
29495
29496
29497
29498
29499
29500
29501
29502
29503
29504
29505
29506
29507
29508
29509
29510
29511
29512
29513
29514
29515
29516
29517
29518
29519
29520
29521
29522
29523
29524
29525
29526
29527
29528
29529
29530
29531
29532
29533
29534
29535
29536
29537
29538
29539
29540
29541
29542
29543
29544
29545
29546
29547
29548
29549
29550
29551
29552
29553
29554
29555
29556
29557
29558
29559
29560
29561
29562
29563
29564
29565
29566
29567
29568
29569
29570
29571
29572
29573
29574
29575
29576
29577
29578
29579
29580
29581
29582
29583
29584
29585
29586
29587
29588
29589
29590
29591
29592
29593
29594
29595
29596
29597
29598
29599
29600
29601
29602
29603
29604
29605
29606
29607
29608
29609
29610
29611
29612
29613
29614
29615
29616
29617
29618
29619
29620
29621
29622
29623
29624
29625
29626
29627
29628
29629
29630
29631
29632
29633
29634
29635
29636
29637
29638
29639
29640
29641
29642
29643
29644
29645
29646
29647
29648
29649
29650
29651
29652
29653
29654
29655
29656
29657
29658
29659
29660
29661
29662
29663
29664
29665
29666
29667
29668
29669
29670
29671
29672
29673
29674
29675
29676
29677
29678
29679
29680
29681
29682
29683
29684
29685
29686
29687
29688
29689
29690
29691
29692
29693
29694
29695
29696
29697
29698
29699
29700
29701
29702
29703
29704
29705
29706
29707
29708
29709
29710
29711
29712
29713
29714
29715
29716
29717
29718
29719
29720
29721
29722
29723
29724
29725
29726
29727
29728
29729
29730
29731
29732
29733
29734
29735
29736
29737
29738
29739
29740
29741
29742
29743
29744
29745
29746
29747
29748
29749
29750
29751
29752
29753
29754
29755
29756
29757
29758
29759
29760
29761
29762
29763
29764
29765
29766
29767
29768
29769
29770
29771
29772
29773
29774
29775
29776
29777
29778
29779
29780
29781
29782
29783
29784
29785
29786
29787
29788
29789
29790
29791
29792
29793
29794
29795
29796
29797
29798
29799
29800
29801
29802
29803
29804
29805
29806
29807
29808
29809
29810
29811
29812
29813
29814
29815
29816
29817
29818
29819
29820
29821
29822
29823
29824
29825
29826
29827
29828
29829
29830
29831
29832
29833
29834
29835
29836
29837
29838
29839
29840
29841
29842
29843
29844
29845
29846
29847
29848
29849
29850
29851
29852
29853
29854
29855
29856
29857
29858
29859
29860
29861
29862
29863
29864
29865
29866
29867
29868
29869
29870
29871
29872
29873
29874
29875
29876
29877
29878
29879
29880
29881
29882
29883
29884
29885
29886
29887
29888
29889
29890
29891
29892
29893
29894
29895
29896
29897
29898
29899
29900
29901
29902
29903
29904
29905
29906
29907
29908
29909
29910
29911
29912
29913
29914
29915
29916
29917
29918
29919
29920
29921
29922
29923
29924
29925
29926
29927
29928
29929
29930
29931
29932
29933
29934
29935
29936
29937
29938
29939
29940
29941
29942
29943
29944
29945
29946
29947
29948
29949
29950
29951
29952
29953
29954
29955
29956
29957
29958
29959
29960
29961
29962
29963
29964
29965
29966
29967
29968
29969
29970
29971
29972
29973
29974
29975
29976
29977
29978
29979
29980
29981
29982
29983
29984
29985
29986
29987
29988
29989
29990
29991
29992
29993
29994
29995
29996
29997
29998
29999
30000
30001
30002
30003
30004
30005
30006
30007
30008
30009
30010
30011
30012
30013
30014
30015
30016
30017
30018
30019
30020
30021
30022
30023
30024
30025
30026
30027
30028
30029
30030
30031
30032
30033
30034
30035
30036
30037
30038
30039
30040
30041
30042
30043
30044
30045
30046
30047
30048
30049
30050
30051
30052
30053
30054
30055
30056
30057
30058
30059
30060
30061
30062
30063
30064
30065
30066
30067
30068
30069
30070
30071
30072
30073
30074
30075
30076
30077
30078
30079
30080
30081
30082
30083
30084
30085
30086
30087
30088
30089
30090
30091
30092
30093
30094
30095
30096
30097
30098
30099
30100
30101
30102
30103
30104
30105
30106
30107
30108
30109
30110
30111
30112
30113
30114
30115
30116
30117
30118
30119
30120
30121
30122
30123
30124
30125
30126
30127
30128
30129
30130
30131
30132
30133
30134
30135
30136
30137
30138
30139
30140
30141
30142
30143
30144
30145
30146
30147
30148
30149
30150
30151
30152
30153
30154
30155
30156
30157
30158
30159
30160
30161
30162
30163
30164
30165
30166
30167
30168
30169
30170
30171
30172
30173
30174
30175
30176
30177
30178
30179
30180
30181
30182
30183
30184
30185
30186
30187
30188
30189
30190
30191
30192
30193
30194
30195
30196
30197
30198
30199
30200
30201
30202
30203
30204
30205
30206
30207
30208
30209
30210
30211
30212
30213
30214
30215
30216
30217
30218
30219
30220
30221
30222
30223
30224
30225
30226
30227
30228
30229
30230
30231
30232
30233
30234
30235
30236
30237
30238
30239
30240
30241
30242
30243
30244
30245
30246
30247
30248
30249
30250
30251
30252
30253
30254
30255
30256
30257
30258
30259
30260
30261
30262
30263
30264
30265
30266
30267
30268
30269
30270
30271
30272
30273
30274
30275
30276
30277
30278
30279
30280
30281
30282
30283
30284
30285
30286
30287
30288
30289
30290
30291
30292
30293
30294
30295
30296
30297
30298
30299
30300
30301
30302
30303
30304
30305
30306
30307
30308
30309
30310
30311
30312
30313
30314
30315
30316
30317
30318
30319
30320
30321
30322
30323
30324
30325
30326
30327
30328
30329
30330
30331
30332
30333
30334
30335
30336
30337
30338
30339
30340
30341
30342
30343
30344
30345
30346
30347
30348
30349
30350
30351
30352
30353
30354
30355
30356
30357
30358
30359
30360
30361
30362
30363
30364
30365
30366
30367
30368
30369
30370
30371
30372
30373
30374
30375
30376
30377
30378
30379
30380
30381
30382
30383
30384
30385
30386
30387
30388
30389
30390
30391
30392
30393
30394
30395
30396
30397
30398
30399
30400
30401
30402
30403
30404
30405
30406
30407
30408
30409
30410
30411
30412
30413
30414
30415
30416
30417
30418
30419
30420
30421
30422
30423
30424
30425
30426
30427
30428
30429
30430
30431
30432
30433
30434
30435
30436
30437
30438
30439
30440
30441
30442
30443
30444
30445
30446
30447
30448
30449
30450
30451
30452
30453
30454
30455
30456
30457
30458
30459
30460
30461
30462
30463
30464
30465
30466
30467
30468
30469
30470
30471
30472
30473
30474
30475
30476
30477
30478
30479
30480
30481
30482
30483
30484
30485
30486
30487
30488
30489
30490
30491
30492
30493
30494
30495
30496
30497
30498
30499
30500
30501
30502
30503
30504
30505
30506
30507
30508
30509
30510
30511
30512
30513
30514
30515
30516
30517
30518
30519
30520
30521
30522
30523
30524
30525
30526
30527
30528
30529
30530
30531
30532
30533
30534
30535
30536
30537
30538
30539
30540
30541
30542
30543
30544
30545
30546
30547
30548
30549
30550
30551
30552
30553
30554
30555
30556
30557
30558
30559
30560
30561
30562
30563
30564
30565
30566
30567
30568
30569
30570
30571
30572
30573
30574
30575
30576
30577
30578
30579
30580
30581
30582
30583
30584
30585
30586
30587
30588
30589
30590
30591
30592
30593
30594
30595
30596
30597
30598
30599
30600
30601
30602
30603
30604
30605
30606
30607
30608
30609
30610
30611
30612
30613
30614
30615
30616
30617
30618
30619
30620
30621
30622
30623
30624
30625
30626
30627
30628
30629
30630
30631
30632
30633
30634
30635
30636
30637
30638
30639
30640
30641
30642
30643
30644
30645
30646
30647
30648
30649
30650
30651
30652
30653
30654
30655
30656
30657
30658
30659
30660
30661
30662
30663
30664
30665
30666
30667
30668
30669
30670
30671
30672
30673
30674
30675
30676
30677
30678
30679
30680
30681
30682
30683
30684
30685
30686
30687
30688
30689
30690
30691
30692
30693
30694
30695
30696
30697
30698
30699
30700
30701
30702
30703
30704
30705
30706
30707
30708
30709
30710
30711
30712
30713
30714
30715
30716
30717
30718
30719
30720
30721
30722
30723
30724
30725
30726
30727
30728
30729
30730
30731
30732
30733
30734
30735
30736
30737
30738
30739
30740
30741
30742
30743
30744
30745
30746
30747
30748
30749
30750
30751
30752
30753
30754
30755
30756
30757
30758
30759
30760
30761
30762
30763
30764
30765
30766
30767
30768
30769
30770
30771
30772
30773
30774
30775
30776
30777
30778
30779
30780
30781
30782
30783
30784
30785
30786
30787
30788
30789
30790
30791
30792
30793
30794
30795
30796
30797
30798
30799
30800
30801
30802
30803
30804
30805
30806
30807
30808
30809
30810
30811
30812
30813
30814
30815
30816
30817
30818
30819
30820
30821
30822
30823
30824
30825
30826
30827
30828
30829
30830
30831
30832
30833
30834
30835
30836
30837
30838
30839
30840
30841
30842
30843
30844
30845
30846
30847
30848
30849
30850
30851
30852
30853
30854
30855
30856
30857
30858
30859
30860
30861
30862
30863
30864
30865
30866
30867
30868
30869
30870
30871
30872
30873
30874
30875
30876
30877
30878
30879
30880
30881
30882
30883
30884
30885
30886
30887
30888
30889
30890
30891
30892
30893
30894
30895
30896
30897
30898
30899
30900
30901
30902
30903
30904
30905
30906
30907
30908
30909
30910
30911
30912
30913
30914
30915
30916
30917
30918
30919
30920
30921
30922
30923
30924
30925
30926
30927
30928
30929
30930
30931
30932
30933
30934
30935
30936
30937
30938
30939
30940
30941
30942
30943
30944
30945
30946
30947
30948
30949
30950
30951
30952
30953
30954
30955
30956
30957
30958
30959
30960
30961
30962
30963
30964
30965
30966
30967
30968
30969
30970
30971
30972
30973
30974
30975
30976
30977
30978
30979
30980
30981
30982
30983
30984
30985
30986
30987
30988
30989
30990
30991
30992
30993
30994
30995
30996
30997
30998
30999
31000
31001
31002
31003
31004
31005
31006
31007
31008
31009
31010
31011
31012
31013
31014
31015
31016
31017
31018
31019
31020
31021
31022
31023
31024
31025
31026
31027
31028
31029
31030
31031
31032
31033
31034
31035
31036
31037
31038
31039
31040
31041
31042
31043
31044
31045
31046
31047
31048
31049
31050
31051
31052
31053
31054
31055
31056
31057
31058
31059
31060
31061
31062
31063
31064
31065
31066
31067
31068
31069
31070
31071
31072
31073
31074
31075
31076
31077
31078
31079
31080
31081
31082
31083
31084
31085
31086
31087
31088
31089
31090
31091
31092
31093
31094
31095
31096
31097
31098
31099
31100
31101
31102
31103
31104
31105
31106
31107
31108
31109
31110
31111
31112
31113
31114
31115
31116
31117
31118
31119
31120
31121
31122
31123
31124
31125
31126
31127
31128
31129
31130
31131
31132
31133
31134
31135
31136
31137
31138
31139
31140
31141
31142
31143
31144
31145
31146
31147
31148
31149
31150
31151
31152
31153
31154
31155
31156
31157
31158
31159
31160
31161
31162
31163
31164
31165
31166
31167
31168
31169
31170
31171
31172
31173
31174
31175
31176
31177
31178
31179
31180
31181
31182
31183
31184
31185
31186
31187
31188
31189
31190
31191
31192
31193
31194
31195
31196
31197
31198
31199
31200
31201
31202
31203
31204
31205
31206
31207
31208
31209
31210
31211
31212
31213
31214
31215
31216
31217
31218
31219
31220
31221
31222
31223
31224
31225
31226
31227
31228
31229
31230
31231
31232
31233
31234
31235
31236
31237
31238
31239
31240
31241
31242
31243
31244
31245
31246
31247
31248
31249
31250
31251
31252
31253
31254
31255
31256
31257
31258
31259
31260
31261
31262
31263
31264
31265
31266
31267
31268
31269
31270
31271
31272
31273
31274
31275
31276
31277
31278
31279
31280
31281
31282
31283
31284
31285
31286
31287
31288
31289
31290
31291
31292
31293
31294
31295
31296
31297
31298
31299
31300
31301
31302
31303
31304
31305
31306
31307
31308
31309
31310
31311
31312
31313
31314
31315
31316
31317
31318
31319
31320
31321
31322
31323
31324
31325
31326
31327
31328
31329
31330
31331
31332
31333
31334
31335
31336
31337
31338
31339
31340
31341
31342
31343
31344
31345
31346
31347
31348
31349
31350
31351
31352
31353
31354
31355
31356
31357
31358
31359
31360
31361
31362
31363
31364
31365
31366
31367
31368
31369
31370
31371
31372
31373
31374
31375
31376
31377
31378
31379
31380
31381
31382
31383
31384
31385
31386
31387
31388
31389
31390
31391
31392
31393
31394
31395
31396
31397
31398
31399
31400
31401
31402
31403
31404
31405
31406
31407
31408
31409
31410
31411
31412
31413
31414
31415
31416
31417
31418
31419
31420
31421
31422
31423
31424
31425
31426
31427
31428
31429
31430
31431
31432
31433
31434
31435
31436
31437
31438
31439
31440
31441
31442
31443
31444
31445
31446
31447
31448
31449
31450
31451
31452
31453
31454
31455
31456
31457
31458
31459
31460
31461
31462
31463
31464
31465
31466
31467
31468
31469
31470
31471
31472
31473
31474
31475
31476
31477
31478
31479
31480
31481
31482
31483
31484
31485
31486
31487
31488
31489
31490
31491
31492
31493
31494
31495
31496
31497
31498
31499
31500
31501
31502
31503
31504
31505
31506
31507
31508
31509
31510
31511
31512
31513
31514
31515
31516
31517
31518
31519
31520
31521
31522
31523
31524
31525
31526
31527
31528
31529
31530
31531
31532
31533
31534
31535
31536
31537
31538
31539
31540
31541
31542
31543
31544
31545
31546
31547
31548
31549
31550
31551
31552
31553
31554
31555
31556
31557
31558
31559
31560
31561
31562
31563
31564
31565
31566
31567
31568
31569
31570
31571
31572
31573
31574
31575
31576
31577
31578
31579
31580
31581
31582
31583
31584
31585
31586
31587
31588
31589
31590
31591
31592
31593
31594
31595
31596
31597
31598
31599
31600
31601
31602
31603
31604
31605
31606
31607
31608
31609
31610
31611
31612
31613
31614
31615
31616
31617
31618
31619
31620
31621
31622
31623
31624
31625
31626
31627
31628
31629
31630
31631
31632
31633
31634
31635
31636
31637
31638
31639
31640
31641
31642
31643
31644
31645
31646
31647
31648
31649
31650
31651
31652
31653
31654
31655
31656
31657
31658
31659
31660
31661
31662
31663
31664
31665
31666
31667
31668
31669
31670
31671
31672
31673
31674
31675
31676
31677
31678
31679
31680
31681
31682
31683
31684
31685
31686
31687
31688
31689
31690
31691
31692
31693
31694
31695
31696
31697
31698
31699
31700
31701
31702
31703
31704
31705
31706
31707
31708
31709
31710
31711
31712
31713
31714
31715
31716
31717
31718
31719
31720
31721
31722
31723
31724
31725
31726
31727
31728
31729
31730
31731
31732
31733
31734
31735
31736
31737
31738
31739
31740
31741
31742
31743
31744
31745
31746
31747
31748
31749
31750
31751
31752
31753
31754
31755
31756
31757
31758
31759
31760
31761
31762
31763
31764
31765
31766
31767
31768
31769
31770
31771
31772
31773
31774
31775
31776
31777
31778
31779
31780
31781
31782
31783
31784
31785
31786
31787
31788
31789
31790
31791
31792
31793
31794
31795
31796
31797
31798
31799
31800
31801
31802
31803
31804
31805
31806
31807
31808
31809
31810
31811
31812
31813
31814
31815
31816
31817
31818
31819
31820
31821
31822
31823
31824
31825
31826
31827
31828
31829
31830
31831
31832
31833
31834
31835
31836
31837
31838
31839
31840
31841
31842
31843
31844
31845
31846
31847
31848
31849
31850
31851
31852
31853
31854
31855
31856
31857
31858
31859
31860
31861
31862
31863
31864
31865
31866
31867
31868
31869
31870
31871
31872
31873
31874
31875
31876
31877
31878
31879
31880
31881
31882
31883
31884
31885
31886
31887
31888
31889
31890
31891
31892
31893
31894
31895
31896
31897
31898
31899
31900
31901
31902
31903
31904
31905
31906
31907
31908
31909
31910
31911
31912
31913
31914
31915
31916
31917
31918
31919
31920
31921
31922
31923
31924
31925
31926
31927
31928
31929
31930
31931
31932
31933
31934
31935
31936
31937
31938
31939
31940
31941
31942
31943
31944
31945
31946
31947
31948
31949
31950
31951
31952
31953
31954
31955
31956
31957
31958
31959
31960
31961
31962
31963
31964
31965
31966
31967
31968
31969
31970
31971
31972
31973
31974
31975
31976
31977
31978
31979
31980
31981
31982
31983
31984
31985
31986
31987
31988
31989
31990
31991
31992
31993
31994
31995
31996
31997
31998
31999
32000
32001
32002
32003
32004
32005
32006
32007
32008
32009
32010
32011
32012
32013
32014
32015
32016
32017
32018
32019
32020
32021
32022
32023
32024
32025
32026
32027
32028
32029
32030
32031
32032
32033
32034
32035
32036
32037
32038
32039
32040
32041
32042
32043
32044
32045
32046
32047
32048
32049
32050
32051
32052
32053
32054
32055
32056
32057
32058
32059
32060
32061
32062
32063
32064
32065
32066
32067
32068
32069
32070
32071
32072
32073
32074
32075
32076
32077
32078
32079
32080
32081
32082
32083
32084
32085
32086
32087
32088
32089
32090
32091
32092
32093
32094
32095
32096
32097
32098
32099
32100
32101
32102
32103
32104
32105
32106
32107
32108
32109
32110
32111
32112
32113
32114
32115
32116
32117
32118
32119
32120
32121
32122
32123
32124
32125
32126
32127
32128
32129
32130
32131
32132
32133
32134
32135
32136
32137
32138
32139
32140
32141
32142
32143
32144
32145
32146
32147
32148
32149
32150
32151
32152
32153
32154
32155
32156
32157
32158
32159
32160
32161
32162
32163
32164
32165
32166
32167
32168
32169
32170
32171
32172
32173
32174
32175
32176
32177
32178
32179
32180
32181
32182
32183
32184
32185
32186
32187
32188
32189
32190
32191
32192
32193
32194
32195
32196
32197
32198
32199
32200
32201
32202
32203
32204
32205
32206
32207
32208
32209
32210
32211
32212
32213
32214
32215
32216
32217
32218
32219
32220
32221
32222
32223
32224
32225
32226
32227
32228
32229
32230
32231
32232
32233
32234
32235
32236
32237
32238
32239
32240
32241
32242
32243
32244
32245
32246
32247
32248
32249
32250
32251
32252
32253
32254
32255
32256
32257
32258
32259
32260
32261
32262
32263
32264
32265
32266
32267
32268
32269
32270
32271
32272
32273
32274
32275
32276
32277
32278
32279
32280
32281
32282
32283
32284
32285
32286
32287
32288
32289
32290
32291
32292
32293
32294
32295
32296
32297
32298
32299
32300
32301
32302
32303
32304
32305
32306
32307
32308
32309
32310
32311
32312
32313
32314
32315
32316
32317
32318
32319
32320
32321
32322
32323
32324
32325
32326
32327
32328
32329
32330
32331
32332
32333
32334
32335
32336
32337
32338
32339
32340
32341
32342
32343
32344
32345
32346
32347
32348
32349
32350
32351
32352
32353
32354
32355
32356
32357
32358
32359
32360
32361
32362
32363
32364
32365
32366
32367
32368
32369
32370
32371
32372
32373
32374
32375
32376
32377
32378
32379
32380
32381
32382
32383
32384
32385
32386
32387
32388
32389
32390
32391
32392
32393
32394
32395
32396
32397
32398
32399
32400
32401
32402
32403
32404
32405
32406
32407
32408
32409
32410
32411
32412
32413
32414
32415
32416
32417
32418
32419
32420
32421
32422
32423
32424
32425
32426
32427
32428
32429
32430
32431
32432
32433
32434
32435
32436
32437
32438
32439
32440
32441
32442
32443
32444
32445
32446
32447
32448
32449
32450
32451
32452
32453
32454
32455
32456
32457
32458
32459
32460
32461
32462
32463
32464
32465
32466
32467
32468
32469
32470
32471
32472
32473
32474
32475
32476
32477
32478
32479
32480
32481
32482
32483
32484
32485
32486
32487
32488
32489
32490
32491
32492
32493
32494
32495
32496
32497
32498
32499
32500
32501
32502
32503
32504
32505
32506
32507
32508
32509
32510
32511
32512
32513
32514
32515
32516
32517
32518
32519
32520
32521
32522
32523
32524
32525
32526
32527
32528
32529
32530
32531
32532
32533
32534
32535
32536
32537
32538
32539
32540
32541
32542
32543
32544
32545
32546
32547
32548
32549
32550
32551
32552
32553
32554
32555
32556
32557
32558
32559
32560
32561
32562
32563
32564
32565
32566
32567
32568
32569
32570
32571
32572
32573
32574
32575
32576
32577
32578
32579
32580
32581
32582
32583
32584
32585
32586
32587
32588
32589
32590
32591
32592
32593
32594
32595
32596
32597
32598
32599
32600
32601
32602
32603
32604
32605
32606
32607
32608
32609
32610
32611
32612
32613
32614
32615
32616
32617
32618
32619
32620
32621
32622
32623
32624
32625
32626
32627
32628
32629
32630
32631
32632
32633
32634
32635
32636
32637
32638
32639
32640
32641
32642
32643
32644
32645
32646
32647
32648
32649
32650
32651
32652
32653
32654
32655
32656
32657
32658
32659
32660
32661
32662
32663
32664
32665
32666
32667
32668
32669
32670
32671
32672
32673
32674
32675
32676
32677
32678
32679
32680
32681
32682
32683
32684
32685
32686
32687
32688
32689
32690
32691
32692
32693
32694
32695
32696
32697
32698
32699
32700
32701
32702
32703
32704
32705
32706
32707
32708
32709
32710
32711
32712
32713
32714
32715
32716
32717
32718
32719
32720
32721
32722
32723
32724
32725
32726
32727
32728
32729
32730
32731
32732
32733
32734
32735
32736
32737
32738
32739
32740
32741
32742
32743
32744
32745
32746
32747
32748
32749
32750
32751
32752
32753
32754
32755
32756
32757
32758
32759
32760
32761
32762
32763
32764
32765
32766
32767
32768
32769
32770
32771
32772
32773
32774
32775
32776
32777
32778
32779
32780
32781
32782
32783
32784
32785
32786
32787
32788
32789
32790
32791
32792
32793
32794
32795
32796
32797
32798
32799
32800
32801
32802
32803
32804
32805
32806
32807
32808
32809
32810
32811
32812
32813
32814
32815
32816
32817
32818
32819
32820
32821
32822
32823
32824
32825
32826
32827
32828
32829
32830
32831
32832
32833
32834
32835
32836
32837
32838
32839
32840
32841
32842
32843
32844
32845
32846
32847
32848
32849
32850
32851
32852
32853
32854
32855
32856
32857
32858
32859
32860
32861
32862
32863
32864
32865
32866
32867
32868
32869
32870
32871
32872
32873
32874
32875
32876
32877
32878
32879
32880
32881
32882
32883
32884
32885
32886
32887
32888
32889
32890
32891
32892
32893
32894
32895
32896
32897
32898
32899
32900
32901
32902
32903
32904
32905
32906
32907
32908
32909
32910
32911
32912
32913
32914
32915
32916
32917
32918
32919
32920
32921
32922
32923
32924
32925
32926
32927
32928
32929
32930
32931
32932
32933
32934
32935
32936
32937
32938
32939
32940
32941
32942
32943
32944
32945
32946
32947
32948
32949
32950
32951
32952
32953
32954
32955
32956
32957
32958
32959
32960
32961
32962
32963
32964
32965
32966
32967
32968
32969
32970
32971
32972
32973
32974
32975
32976
32977
32978
32979
32980
32981
32982
32983
32984
32985
32986
32987
32988
32989
32990
32991
32992
32993
32994
32995
32996
32997
32998
32999
33000
33001
33002
33003
33004
33005
33006
33007
33008
33009
33010
33011
33012
33013
33014
33015
33016
33017
33018
33019
33020
33021
33022
33023
33024
33025
33026
33027
33028
33029
33030
33031
33032
33033
33034
33035
33036
33037
33038
33039
33040
33041
33042
33043
33044
33045
33046
33047
33048
33049
33050
33051
33052
33053
33054
33055
33056
33057
33058
33059
33060
33061
33062
33063
33064
33065
33066
33067
33068
33069
33070
33071
33072
33073
33074
33075
33076
33077
33078
33079
33080
33081
33082
33083
33084
33085
33086
33087
33088
33089
33090
33091
33092
33093
33094
33095
33096
33097
33098
33099
33100
33101
33102
33103
33104
33105
33106
33107
33108
33109
33110
33111
33112
33113
33114
33115
33116
33117
33118
33119
33120
33121
33122
33123
33124
33125
33126
33127
33128
33129
33130
33131
33132
33133
33134
33135
33136
33137
33138
33139
33140
33141
33142
33143
33144
33145
33146
33147
33148
33149
33150
33151
33152
33153
33154
33155
33156
33157
33158
33159
33160
33161
33162
33163
33164
33165
33166
33167
33168
33169
33170
33171
33172
33173
33174
33175
33176
33177
33178
33179
33180
33181
33182
33183
33184
33185
33186
33187
33188
33189
33190
33191
33192
33193
33194
33195
33196
33197
33198
33199
33200
33201
33202
33203
33204
33205
33206
33207
33208
33209
33210
33211
33212
33213
33214
33215
33216
33217
33218
33219
33220
33221
33222
33223
33224
33225
33226
33227
33228
33229
33230
33231
33232
33233
33234
33235
33236
33237
33238
33239
33240
33241
33242
33243
33244
33245
33246
33247
33248
33249
33250
33251
33252
33253
33254
33255
33256
33257
33258
33259
33260
33261
33262
33263
33264
33265
33266
33267
33268
33269
33270
33271
33272
33273
33274
33275
33276
33277
33278
33279
33280
33281
33282
33283
33284
33285
33286
33287
33288
33289
33290
33291
33292
33293
33294
33295
33296
33297
33298
33299
33300
33301
33302
33303
33304
33305
33306
33307
33308
33309
33310
33311
33312
33313
33314
33315
33316
33317
33318
33319
33320
33321
33322
33323
33324
33325
33326
33327
33328
33329
33330
33331
33332
33333
33334
33335
33336
33337
33338
33339
33340
33341
33342
33343
33344
33345
33346
33347
33348
33349
33350
33351
33352
33353
33354
33355
33356
33357
33358
33359
33360
33361
33362
33363
33364
33365
33366
33367
33368
33369
33370
33371
33372
33373
33374
33375
33376
33377
33378
33379
33380
33381
33382
33383
33384
33385
33386
33387
33388
33389
33390
33391
33392
33393
33394
33395
33396
33397
33398
33399
33400
33401
33402
33403
33404
33405
33406
33407
33408
33409
33410
33411
33412
33413
33414
33415
33416
33417
33418
33419
33420
33421
33422
33423
33424
33425
33426
33427
33428
33429
33430
33431
33432
33433
33434
33435
33436
33437
33438
33439
33440
33441
33442
33443
33444
33445
33446
33447
33448
33449
33450
33451
33452
33453
33454
33455
33456
33457
33458
33459
33460
33461
33462
33463
33464
33465
33466
33467
33468
33469
33470
33471
33472
33473
33474
33475
33476
33477
33478
33479
33480
33481
33482
33483
33484
33485
33486
33487
33488
33489
33490
33491
33492
33493
33494
33495
33496
33497
33498
33499
33500
33501
33502
33503
33504
33505
33506
33507
33508
33509
33510
33511
33512
33513
33514
33515
33516
33517
33518
33519
33520
33521
33522
33523
33524
33525
33526
33527
33528
33529
33530
33531
33532
33533
33534
33535
33536
33537
33538
33539
33540
33541
33542
33543
33544
33545
33546
33547
33548
33549
33550
33551
33552
33553
33554
33555
33556
33557
33558
33559
33560
33561
33562
33563
33564
33565
33566
33567
33568
33569
33570
33571
33572
33573
33574
33575
33576
33577
33578
33579
33580
33581
33582
33583
33584
33585
33586
33587
33588
33589
33590
33591
33592
33593
33594
33595
33596
33597
33598
33599
33600
33601
33602
33603
33604
33605
33606
33607
33608
33609
33610
33611
33612
33613
33614
33615
33616
33617
33618
33619
33620
33621
33622
33623
33624
33625
33626
33627
33628
33629
33630
33631
33632
33633
33634
33635
33636
33637
33638
33639
33640
33641
33642
33643
33644
33645
33646
33647
33648
33649
33650
33651
33652
33653
33654
33655
33656
33657
33658
33659
33660
33661
33662
33663
33664
33665
33666
33667
33668
33669
33670
33671
33672
33673
33674
33675
33676
33677
33678
33679
33680
33681
33682
33683
33684
33685
33686
33687
33688
33689
33690
33691
33692
33693
33694
33695
33696
33697
33698
33699
33700
33701
33702
33703
33704
33705
33706
33707
33708
33709
33710
33711
33712
33713
33714
33715
33716
33717
33718
33719
33720
33721
33722
33723
33724
33725
33726
33727
33728
33729
33730
33731
33732
33733
33734
33735
33736
33737
33738
33739
33740
33741
33742
33743
33744
33745
33746
33747
33748
33749
33750
33751
33752
33753
33754
33755
33756
33757
33758
33759
33760
33761
33762
33763
33764
33765
33766
33767
33768
33769
33770
33771
33772
33773
33774
33775
33776
33777
33778
33779
33780
33781
33782
33783
33784
33785
33786
33787
33788
33789
33790
33791
33792
33793
33794
33795
33796
33797
33798
33799
33800
33801
33802
33803
33804
33805
33806
33807
33808
33809
33810
33811
33812
33813
33814
33815
33816
33817
33818
33819
33820
33821
33822
33823
33824
33825
33826
33827
33828
33829
33830
33831
33832
33833
33834
33835
33836
33837
33838
33839
33840
33841
33842
33843
33844
33845
33846
33847
33848
33849
33850
33851
33852
33853
33854
33855
33856
33857
33858
33859
33860
33861
33862
33863
33864
33865
33866
33867
33868
33869
33870
33871
33872
33873
33874
33875
33876
33877
33878
33879
33880
33881
33882
33883
33884
33885
33886
33887
33888
33889
33890
33891
33892
33893
33894
33895
33896
33897
33898
33899
33900
33901
33902
33903
33904
33905
33906
33907
33908
33909
33910
33911
33912
33913
33914
33915
33916
33917
33918
33919
33920
33921
33922
33923
33924
33925
33926
33927
33928
33929
33930
33931
33932
33933
33934
33935
33936
33937
33938
33939
33940
33941
33942
33943
33944
33945
33946
33947
33948
33949
33950
33951
33952
33953
33954
33955
33956
33957
33958
33959
33960
33961
33962
33963
33964
33965
33966
33967
33968
33969
33970
33971
33972
33973
33974
33975
33976
33977
33978
33979
33980
33981
33982
33983
33984
33985
33986
33987
33988
33989
33990
33991
33992
33993
33994
33995
33996
33997
33998
33999
34000
34001
34002
34003
34004
34005
34006
34007
34008
34009
34010
34011
34012
34013
34014
34015
34016
34017
34018
34019
34020
34021
34022
34023
34024
34025
34026
34027
34028
34029
34030
34031
34032
34033
34034
34035
34036
34037
34038
34039
34040
34041
34042
34043
34044
34045
34046
34047
34048
34049
34050
34051
34052
34053
34054
34055
34056
34057
34058
34059
34060
34061
34062
34063
34064
34065
34066
34067
34068
34069
34070
34071
34072
34073
34074
34075
34076
34077
34078
34079
34080
34081
34082
34083
34084
34085
34086
34087
34088
34089
34090
34091
34092
34093
34094
34095
34096
34097
34098
34099
34100
34101
34102
34103
34104
34105
34106
34107
34108
34109
34110
34111
34112
34113
34114
34115
34116
34117
34118
34119
34120
34121
34122
34123
34124
34125
34126
34127
34128
34129
34130
34131
34132
34133
34134
34135
34136
34137
34138
34139
34140
34141
34142
34143
34144
34145
34146
34147
34148
34149
34150
34151
34152
34153
34154
34155
34156
34157
34158
34159
34160
34161
34162
34163
34164
34165
34166
34167
34168
34169
34170
34171
34172
34173
34174
34175
34176
34177
34178
34179
34180
34181
34182
34183
34184
34185
34186
34187
34188
34189
34190
34191
34192
34193
34194
34195
34196
34197
34198
34199
34200
34201
34202
34203
34204
34205
34206
34207
34208
34209
34210
34211
34212
34213
34214
34215
34216
34217
34218
34219
34220
34221
34222
34223
34224
34225
34226
34227
34228
34229
34230
34231
34232
34233
34234
34235
34236
34237
34238
34239
34240
34241
34242
34243
34244
34245
34246
34247
34248
34249
34250
34251
34252
34253
34254
34255
34256
34257
34258
34259
34260
34261
34262
34263
34264
34265
34266
34267
34268
34269
34270
34271
34272
34273
34274
34275
34276
34277
34278
34279
34280
34281
34282
34283
34284
34285
34286
34287
34288
34289
34290
34291
34292
34293
34294
34295
34296
34297
34298
34299
34300
34301
34302
34303
34304
34305
34306
34307
34308
34309
34310
34311
34312
34313
34314
34315
34316
34317
34318
34319
34320
34321
34322
34323
34324
34325
34326
34327
34328
34329
34330
34331
34332
34333
34334
34335
34336
34337
34338
34339
34340
34341
34342
34343
34344
34345
34346
34347
34348
34349
34350
34351
34352
34353
34354
34355
34356
34357
34358
34359
34360
34361
34362
34363
34364
34365
34366
34367
34368
34369
34370
34371
34372
34373
34374
34375
34376
34377
34378
34379
34380
34381
34382
34383
34384
34385
34386
34387
34388
34389
34390
34391
34392
34393
34394
34395
34396
34397
34398
34399
34400
34401
34402
34403
34404
34405
34406
34407
34408
34409
34410
34411
34412
34413
34414
34415
34416
34417
34418
34419
34420
34421
34422
34423
34424
34425
34426
34427
34428
34429
34430
34431
34432
34433
34434
34435
34436
34437
34438
34439
34440
34441
34442
34443
34444
34445
34446
34447
34448
34449
34450
34451
34452
34453
34454
34455
34456
34457
34458
34459
34460
34461
34462
34463
34464
34465
34466
34467
34468
34469
34470
34471
34472
34473
34474
34475
34476
34477
34478
34479
34480
34481
34482
34483
34484
34485
34486
34487
34488
34489
34490
34491
34492
34493
34494
34495
34496
34497
34498
34499
34500
34501
34502
34503
34504
34505
34506
34507
34508
34509
34510
34511
34512
34513
34514
34515
34516
34517
34518
34519
34520
34521
34522
34523
34524
34525
34526
34527
34528
34529
34530
34531
34532
34533
34534
34535
34536
34537
34538
34539
34540
34541
34542
34543
34544
34545
34546
34547
34548
34549
34550
34551
34552
34553
34554
34555
34556
34557
34558
34559
34560
34561
34562
34563
34564
34565
34566
34567
34568
34569
34570
34571
34572
34573
34574
34575
34576
34577
34578
34579
34580
34581
34582
34583
34584
34585
34586
34587
34588
34589
34590
34591
34592
34593
34594
34595
34596
34597
34598
34599
34600
34601
34602
34603
34604
34605
34606
34607
34608
34609
34610
34611
34612
34613
34614
34615
34616
34617
34618
34619
34620
34621
34622
34623
34624
34625
34626
34627
34628
34629
34630
34631
34632
34633
34634
34635
34636
34637
34638
34639
34640
34641
34642
34643
34644
34645
34646
34647
34648
34649
34650
34651
34652
34653
34654
34655
34656
34657
34658
34659
34660
34661
34662
34663
34664
34665
34666
34667
34668
34669
34670
34671
34672
34673
34674
34675
34676
34677
34678
34679
34680
34681
34682
34683
34684
34685
34686
34687
34688
34689
34690
34691
34692
34693
34694
34695
34696
34697
34698
34699
34700
34701
34702
34703
34704
34705
34706
34707
34708
34709
34710
34711
34712
34713
34714
34715
34716
34717
34718
34719
34720
34721
34722
34723
34724
34725
34726
34727
34728
34729
34730
34731
34732
34733
34734
34735
34736
34737
34738
34739
34740
34741
34742
34743
34744
34745
34746
34747
34748
34749
34750
34751
34752
34753
34754
34755
34756
34757
34758
34759
34760
34761
34762
34763
34764
34765
34766
34767
34768
34769
34770
34771
34772
34773
34774
34775
34776
34777
34778
34779
34780
34781
34782
34783
34784
34785
34786
34787
34788
34789
34790
34791
34792
34793
34794
34795
34796
34797
34798
34799
34800
34801
34802
34803
34804
34805
34806
34807
34808
34809
34810
34811
34812
34813
34814
34815
34816
34817
34818
34819
34820
34821
34822
34823
34824
34825
34826
34827
34828
34829
34830
34831
34832
34833
34834
34835
34836
34837
34838
34839
34840
34841
34842
34843
34844
34845
34846
34847
34848
34849
34850
34851
34852
34853
34854
34855
34856
34857
34858
34859
34860
34861
34862
34863
34864
34865
34866
34867
34868
34869
34870
34871
34872
34873
34874
34875
34876
34877
34878
34879
34880
34881
34882
34883
34884
34885
34886
34887
34888
34889
34890
34891
34892
34893
34894
34895
34896
34897
34898
34899
34900
34901
34902
34903
34904
34905
34906
34907
34908
34909
34910
34911
34912
34913
34914
34915
34916
34917
34918
34919
34920
34921
34922
34923
34924
34925
34926
34927
34928
34929
34930
34931
34932
34933
34934
34935
34936
34937
34938
34939
34940
34941
34942
34943
34944
34945
34946
34947
34948
34949
34950
34951
34952
34953
34954
34955
34956
34957
34958
34959
34960
34961
34962
34963
34964
34965
34966
34967
34968
34969
34970
34971
34972
34973
34974
34975
34976
34977
34978
34979
34980
34981
34982
34983
34984
34985
34986
34987
34988
34989
34990
34991
34992
34993
34994
34995
34996
34997
34998
34999
35000
35001
35002
35003
35004
35005
35006
35007
35008
35009
35010
35011
35012
35013
35014
35015
35016
35017
35018
35019
35020
35021
35022
35023
35024
35025
35026
35027
35028
35029
35030
35031
35032
35033
35034
35035
35036
35037
35038
35039
35040
35041
35042
35043
35044
35045
35046
35047
35048
35049
35050
35051
35052
35053
35054
35055
35056
35057
35058
35059
35060
35061
35062
35063
35064
35065
35066
35067
35068
35069
35070
35071
35072
35073
35074
35075
35076
35077
35078
35079
35080
35081
35082
35083
35084
35085
35086
35087
35088
35089
35090
35091
35092
35093
35094
35095
35096
35097
35098
35099
35100
35101
35102
35103
35104
35105
35106
35107
35108
35109
35110
35111
35112
35113
35114
35115
35116
35117
35118
35119
35120
35121
35122
35123
35124
35125
35126
35127
35128
35129
35130
35131
35132
35133
35134
35135
35136
35137
35138
35139
35140
35141
35142
35143
35144
35145
35146
35147
35148
35149
35150
35151
35152
35153
35154
35155
35156
35157
35158
35159
35160
35161
35162
35163
35164
35165
35166
35167
35168
35169
35170
35171
35172
35173
35174
35175
35176
35177
35178
35179
35180
35181
35182
35183
35184
35185
35186
35187
35188
35189
35190
35191
35192
35193
35194
35195
35196
35197
35198
35199
35200
35201
35202
35203
35204
35205
35206
35207
35208
35209
35210
35211
35212
35213
35214
35215
35216
35217
35218
35219
35220
35221
35222
35223
35224
35225
35226
35227
35228
35229
35230
35231
35232
35233
35234
35235
35236
35237
35238
35239
35240
35241
35242
35243
35244
35245
35246
35247
35248
35249
35250
35251
35252
35253
35254
35255
35256
35257
35258
35259
35260
35261
35262
35263
35264
35265
35266
35267
35268
35269
35270
35271
35272
35273
35274
35275
35276
35277
35278
35279
35280
35281
35282
35283
35284
35285
35286
35287
35288
35289
35290
35291
35292
35293
35294
35295
35296
35297
35298
35299
35300
35301
35302
35303
35304
35305
35306
35307
35308
35309
35310
35311
35312
35313
35314
35315
35316
35317
35318
35319
35320
35321
35322
35323
35324
35325
35326
35327
35328
35329
35330
35331
35332
35333
35334
35335
35336
35337
35338
35339
35340
35341
35342
35343
35344
35345
35346
35347
35348
35349
35350
35351
35352
35353
35354
35355
35356
35357
35358
35359
35360
35361
35362
35363
35364
35365
35366
35367
35368
35369
35370
35371
35372
35373
35374
35375
35376
35377
35378
35379
35380
35381
35382
35383
35384
35385
35386
35387
35388
35389
35390
35391
35392
35393
35394
35395
35396
35397
35398
35399
35400
35401
35402
35403
35404
35405
35406
35407
35408
35409
35410
35411
35412
35413
35414
35415
35416
35417
35418
35419
35420
35421
35422
35423
35424
35425
35426
35427
35428
35429
35430
35431
35432
35433
35434
35435
35436
35437
35438
35439
35440
35441
35442
35443
35444
35445
35446
35447
35448
35449
35450
35451
35452
35453
35454
35455
35456
35457
35458
35459
35460
35461
35462
35463
35464
35465
35466
35467
35468
35469
35470
35471
35472
35473
35474
35475
35476
35477
35478
35479
35480
35481
35482
35483
35484
35485
35486
35487
35488
35489
35490
35491
35492
35493
35494
35495
35496
35497
35498
35499
35500
35501
35502
35503
35504
35505
35506
35507
35508
35509
35510
35511
35512
35513
35514
35515
35516
35517
35518
35519
35520
35521
35522
35523
35524
35525
35526
35527
35528
35529
35530
35531
35532
35533
35534
35535
35536
35537
35538
35539
35540
35541
35542
35543
35544
35545
35546
35547
35548
35549
35550
35551
35552
35553
35554
35555
35556
35557
35558
35559
35560
35561
35562
35563
35564
35565
35566
35567
35568
35569
35570
35571
35572
35573
35574
35575
35576
35577
35578
35579
35580
35581
35582
35583
35584
35585
35586
35587
35588
35589
35590
35591
35592
35593
35594
35595
35596
35597
35598
35599
35600
35601
35602
35603
35604
35605
35606
35607
35608
35609
35610
35611
35612
35613
35614
35615
35616
35617
35618
35619
35620
35621
35622
35623
35624
35625
35626
35627
35628
35629
35630
35631
35632
35633
35634
35635
35636
35637
35638
35639
35640
35641
35642
35643
35644
35645
35646
35647
35648
35649
35650
35651
35652
35653
35654
35655
35656
35657
35658
35659
35660
35661
35662
35663
35664
35665
35666
35667
35668
35669
35670
35671
35672
35673
35674
35675
35676
35677
35678
35679
35680
35681
35682
35683
35684
35685
35686
35687
35688
35689
35690
35691
35692
35693
35694
35695
35696
35697
35698
35699
35700
35701
35702
35703
35704
35705
35706
35707
35708
35709
35710
35711
35712
35713
35714
35715
35716
35717
35718
35719
35720
35721
35722
35723
35724
35725
35726
35727
35728
35729
35730
35731
35732
35733
35734
35735
35736
35737
35738
35739
35740
35741
35742
35743
35744
35745
35746
35747
35748
35749
35750
35751
35752
35753
35754
35755
35756
35757
35758
35759
35760
35761
35762
35763
35764
35765
35766
35767
35768
35769
35770
35771
35772
35773
35774
35775
35776
35777
35778
35779
35780
35781
35782
35783
35784
35785
35786
35787
35788
35789
35790
35791
35792
35793
35794
35795
35796
35797
35798
35799
35800
35801
35802
35803
35804
35805
35806
35807
35808
35809
35810
35811
35812
35813
35814
35815
35816
35817
35818
35819
35820
35821
35822
35823
35824
35825
35826
35827
35828
35829
35830
35831
35832
35833
35834
35835
35836
35837
35838
35839
35840
35841
35842
35843
35844
35845
35846
35847
35848
35849
35850
35851
35852
35853
35854
35855
35856
35857
35858
35859
35860
35861
35862
35863
35864
35865
35866
35867
35868
35869
35870
35871
35872
35873
35874
35875
35876
35877
35878
35879
35880
35881
35882
35883
35884
35885
35886
35887
35888
35889
35890
35891
35892
35893
35894
35895
35896
35897
35898
35899
35900
35901
35902
35903
35904
35905
35906
35907
35908
35909
35910
35911
35912
35913
35914
35915
35916
35917
35918
35919
35920
35921
35922
35923
35924
35925
35926
35927
35928
35929
35930
35931
35932
35933
35934
35935
35936
35937
35938
35939
35940
35941
35942
35943
35944
35945
35946
35947
35948
35949
35950
35951
35952
35953
35954
35955
35956
35957
35958
35959
35960
35961
35962
35963
35964
35965
35966
35967
35968
35969
35970
35971
35972
35973
35974
35975
35976
35977
35978
35979
35980
35981
35982
35983
35984
35985
35986
35987
35988
35989
35990
35991
35992
35993
35994
35995
35996
35997
35998
35999
36000
36001
36002
36003
36004
36005
36006
36007
36008
36009
36010
36011
36012
36013
36014
36015
36016
36017
36018
36019
36020
36021
36022
36023
36024
36025
36026
36027
36028
36029
36030
36031
36032
36033
36034
36035
36036
36037
36038
36039
36040
36041
36042
36043
36044
36045
36046
36047
36048
36049
36050
36051
36052
36053
36054
36055
36056
36057
36058
36059
36060
36061
36062
36063
36064
36065
36066
36067
36068
36069
36070
36071
36072
36073
36074
36075
36076
36077
36078
36079
36080
36081
36082
36083
36084
36085
36086
36087
36088
36089
36090
36091
36092
36093
36094
36095
36096
36097
36098
36099
36100
36101
36102
36103
36104
36105
36106
36107
36108
36109
36110
36111
36112
36113
36114
36115
36116
36117
36118
36119
36120
36121
36122
36123
36124
36125
36126
36127
36128
36129
36130
36131
36132
36133
36134
36135
36136
36137
36138
36139
36140
36141
36142
36143
36144
36145
36146
36147
36148
36149
36150
36151
36152
36153
36154
36155
36156
36157
36158
36159
36160
36161
36162
36163
36164
36165
36166
36167
36168
36169
36170
36171
36172
36173
36174
36175
36176
36177
36178
36179
36180
36181
36182
36183
36184
36185
36186
36187
36188
36189
36190
36191
36192
36193
36194
36195
36196
36197
36198
36199
36200
36201
36202
36203
36204
36205
36206
36207
36208
36209
36210
36211
36212
36213
36214
36215
36216
36217
36218
36219
36220
36221
36222
36223
36224
36225
36226
36227
36228
36229
36230
36231
36232
36233
36234
36235
36236
36237
36238
36239
36240
36241
36242
36243
36244
36245
36246
36247
36248
36249
36250
36251
36252
36253
36254
36255
36256
36257
36258
36259
36260
36261
36262
36263
36264
36265
36266
36267
36268
36269
36270
36271
36272
36273
36274
36275
36276
36277
36278
36279
36280
36281
36282
36283
36284
36285
36286
36287
36288
36289
36290
36291
36292
36293
36294
36295
36296
36297
36298
36299
36300
36301
36302
36303
36304
36305
36306
36307
36308
36309
36310
36311
36312
36313
36314
36315
36316
36317
36318
36319
36320
36321
36322
36323
36324
36325
36326
36327
36328
36329
36330
36331
36332
36333
36334
36335
36336
36337
36338
36339
36340
36341
36342
36343
36344
36345
36346
36347
36348
36349
36350
36351
36352
36353
36354
36355
36356
36357
36358
36359
36360
36361
36362
36363
36364
36365
36366
36367
36368
36369
36370
36371
36372
36373
36374
36375
36376
36377
36378
36379
36380
36381
36382
36383
36384
36385
36386
36387
36388
36389
36390
36391
36392
36393
36394
36395
36396
36397
36398
36399
36400
36401
36402
36403
36404
36405
36406
36407
36408
36409
36410
36411
36412
36413
36414
36415
36416
36417
36418
36419
36420
36421
36422
36423
36424
36425
36426
36427
36428
36429
36430
36431
36432
36433
36434
36435
36436
36437
36438
36439
36440
36441
36442
36443
36444
36445
36446
36447
36448
36449
36450
36451
36452
36453
36454
36455
36456
36457
36458
36459
36460
36461
36462
36463
36464
36465
36466
36467
36468
36469
36470
36471
36472
36473
36474
36475
36476
36477
36478
36479
36480
36481
36482
36483
36484
36485
36486
36487
36488
36489
36490
36491
36492
36493
36494
36495
36496
36497
36498
36499
36500
36501
36502
36503
36504
36505
36506
36507
36508
36509
36510
36511
36512
36513
36514
36515
36516
36517
36518
36519
36520
36521
36522
36523
36524
36525
36526
36527
36528
36529
36530
36531
36532
36533
36534
36535
36536
36537
36538
36539
36540
36541
36542
36543
36544
36545
36546
36547
36548
36549
36550
36551
36552
36553
36554
36555
36556
36557
36558
36559
36560
36561
36562
36563
36564
36565
36566
36567
36568
36569
36570
36571
36572
36573
36574
36575
36576
36577
36578
36579
36580
36581
36582
36583
36584
36585
36586
36587
36588
36589
36590
36591
36592
36593
36594
36595
36596
36597
36598
36599
36600
36601
36602
36603
36604
36605
36606
36607
36608
36609
36610
36611
36612
36613
36614
36615
36616
36617
36618
36619
36620
36621
36622
36623
36624
36625
36626
36627
36628
36629
36630
36631
36632
36633
36634
36635
36636
36637
36638
36639
36640
36641
36642
36643
36644
36645
36646
36647
36648
36649
36650
36651
36652
36653
36654
36655
36656
36657
36658
36659
36660
36661
36662
36663
36664
36665
36666
36667
36668
36669
36670
36671
36672
36673
36674
36675
36676
36677
36678
36679
36680
36681
36682
36683
36684
36685
36686
36687
36688
36689
36690
36691
36692
36693
36694
36695
36696
36697
36698
36699
36700
36701
36702
36703
36704
36705
36706
36707
36708
36709
36710
36711
36712
36713
36714
36715
36716
36717
36718
36719
36720
36721
36722
36723
36724
36725
36726
36727
36728
36729
36730
36731
36732
36733
36734
36735
36736
36737
36738
36739
36740
36741
36742
36743
36744
36745
36746
36747
36748
36749
36750
36751
36752
36753
36754
36755
36756
36757
36758
36759
36760
36761
36762
36763
36764
36765
36766
36767
36768
36769
36770
36771
36772
36773
36774
36775
36776
36777
36778
36779
36780
36781
36782
36783
36784
36785
36786
36787
36788
36789
36790
36791
36792
36793
36794
36795
36796
36797
36798
36799
36800
36801
36802
36803
36804
36805
36806
36807
36808
36809
36810
36811
36812
36813
36814
36815
36816
36817
36818
36819
36820
36821
36822
36823
36824
36825
36826
36827
36828
36829
36830
36831
36832
36833
36834
36835
36836
36837
36838
36839
36840
36841
36842
36843
36844
36845
36846
36847
36848
36849
36850
36851
36852
36853
36854
36855
36856
36857
36858
36859
36860
36861
36862
36863
36864
36865
36866
36867
36868
36869
36870
36871
36872
36873
36874
36875
36876
36877
36878
36879
36880
36881
36882
36883
36884
36885
36886
36887
36888
36889
36890
36891
36892
36893
36894
36895
36896
36897
36898
36899
36900
36901
36902
36903
36904
36905
36906
36907
36908
36909
36910
36911
36912
36913
36914
36915
36916
36917
36918
36919
36920
36921
36922
36923
36924
36925
36926
36927
36928
36929
36930
36931
36932
36933
36934
36935
36936
36937
36938
36939
36940
36941
36942
36943
36944
36945
36946
36947
36948
36949
36950
36951
36952
36953
36954
36955
36956
36957
36958
36959
36960
36961
36962
36963
36964
36965
36966
36967
36968
36969
36970
36971
36972
36973
36974
36975
36976
36977
36978
36979
36980
36981
36982
36983
36984
36985
36986
36987
36988
36989
36990
36991
36992
36993
36994
36995
36996
36997
36998
36999
37000
37001
37002
37003
37004
37005
37006
37007
37008
37009
37010
37011
37012
37013
37014
37015
37016
37017
37018
37019
37020
37021
37022
37023
37024
37025
37026
37027
37028
37029
37030
37031
37032
37033
37034
37035
37036
37037
37038
37039
37040
37041
37042
37043
37044
37045
37046
37047
37048
37049
37050
37051
37052
37053
37054
37055
37056
37057
37058
37059
37060
37061
37062
37063
37064
37065
37066
37067
37068
37069
37070
37071
37072
37073
37074
37075
37076
37077
37078
37079
37080
37081
37082
37083
37084
37085
37086
37087
37088
37089
37090
37091
37092
37093
37094
37095
37096
37097
37098
37099
37100
37101
37102
37103
37104
37105
37106
37107
37108
37109
37110
37111
37112
37113
37114
37115
37116
37117
37118
37119
37120
37121
37122
37123
37124
37125
37126
37127
37128
37129
37130
37131
37132
37133
37134
37135
37136
37137
37138
37139
37140
37141
37142
37143
37144
37145
37146
37147
37148
37149
37150
37151
37152
37153
37154
37155
37156
37157
37158
37159
37160
37161
37162
37163
37164
37165
37166
37167
37168
37169
37170
37171
37172
37173
37174
37175
37176
37177
37178
37179
37180
37181
37182
37183
37184
37185
37186
37187
37188
37189
37190
37191
37192
37193
37194
37195
37196
37197
37198
37199
37200
37201
37202
37203
37204
37205
37206
37207
37208
37209
37210
37211
37212
37213
37214
37215
37216
37217
37218
37219
37220
37221
37222
37223
37224
37225
37226
37227
37228
37229
37230
37231
37232
37233
37234
37235
37236
37237
37238
37239
37240
37241
37242
37243
37244
37245
37246
37247
37248
37249
37250
37251
37252
37253
37254
37255
37256
37257
37258
37259
37260
37261
37262
37263
37264
37265
37266
37267
37268
37269
37270
37271
37272
37273
37274
37275
37276
37277
37278
37279
37280
37281
37282
37283
37284
37285
37286
37287
37288
37289
37290
37291
37292
37293
37294
37295
37296
37297
37298
37299
37300
37301
37302
37303
37304
37305
37306
37307
37308
37309
37310
37311
37312
37313
37314
37315
37316
37317
37318
37319
37320
37321
37322
37323
37324
37325
37326
37327
37328
37329
37330
37331
37332
37333
37334
37335
37336
37337
37338
37339
37340
37341
37342
37343
37344
37345
37346
37347
37348
37349
37350
37351
37352
37353
37354
37355
37356
37357
37358
37359
37360
37361
37362
37363
37364
37365
37366
37367
37368
37369
37370
37371
37372
37373
37374
37375
37376
37377
37378
37379
37380
37381
37382
37383
37384
37385
37386
37387
37388
37389
37390
37391
37392
37393
37394
37395
37396
37397
37398
37399
37400
37401
37402
37403
37404
37405
37406
37407
37408
37409
37410
37411
37412
37413
37414
37415
37416
37417
37418
37419
37420
37421
37422
37423
37424
37425
37426
37427
37428
37429
37430
37431
37432
37433
37434
37435
37436
37437
37438
37439
37440
37441
37442
37443
37444
37445
37446
37447
37448
37449
37450
37451
37452
37453
37454
37455
37456
37457
37458
37459
37460
37461
37462
37463
37464
37465
37466
37467
37468
37469
37470
37471
37472
37473
37474
37475
37476
37477
37478
37479
37480
37481
37482
37483
37484
37485
37486
37487
37488
37489
37490
37491
37492
37493
37494
37495
37496
37497
37498
37499
37500
37501
37502
37503
37504
37505
37506
37507
37508
37509
37510
37511
37512
37513
37514
37515
37516
37517
37518
37519
37520
37521
37522
37523
37524
37525
37526
37527
37528
37529
37530
37531
37532
37533
37534
37535
37536
37537
37538
37539
37540
37541
37542
37543
37544
37545
37546
37547
37548
37549
37550
37551
37552
37553
37554
37555
37556
37557
37558
37559
37560
37561
37562
37563
37564
37565
37566
37567
37568
37569
37570
37571
37572
37573
37574
37575
37576
37577
37578
37579
37580
37581
37582
37583
37584
37585
37586
37587
37588
37589
37590
37591
37592
37593
37594
37595
37596
37597
37598
37599
37600
37601
37602
37603
37604
37605
37606
37607
37608
37609
37610
37611
37612
37613
37614
37615
37616
37617
37618
37619
37620
37621
37622
37623
37624
37625
37626
37627
37628
37629
37630
37631
37632
37633
37634
37635
37636
37637
37638
37639
37640
37641
37642
37643
37644
37645
37646
37647
37648
37649
37650
37651
37652
37653
37654
37655
37656
37657
37658
37659
37660
37661
37662
37663
37664
37665
37666
37667
37668
37669
37670
37671
37672
37673
37674
37675
37676
37677
37678
37679
37680
37681
37682
37683
37684
37685
37686
37687
37688
37689
37690
37691
37692
37693
37694
37695
37696
37697
37698
37699
37700
37701
37702
37703
37704
37705
37706
37707
37708
37709
37710
37711
37712
37713
37714
37715
37716
37717
37718
37719
37720
37721
37722
37723
37724
37725
37726
37727
37728
37729
37730
37731
37732
37733
37734
37735
37736
37737
37738
37739
37740
37741
37742
37743
37744
37745
37746
37747
37748
37749
37750
37751
37752
37753
37754
37755
37756
37757
37758
37759
37760
37761
37762
37763
37764
37765
37766
37767
37768
37769
37770
37771
37772
37773
37774
37775
37776
37777
37778
37779
37780
37781
37782
37783
37784
37785
37786
37787
37788
37789
37790
37791
37792
37793
37794
37795
37796
37797
37798
37799
37800
37801
37802
37803
37804
37805
37806
37807
37808
37809
37810
37811
37812
37813
37814
37815
37816
37817
37818
37819
37820
37821
37822
37823
37824
37825
37826
37827
37828
37829
37830
37831
37832
37833
37834
37835
37836
37837
37838
37839
37840
37841
37842
37843
37844
37845
37846
37847
37848
37849
37850
37851
37852
37853
37854
37855
37856
37857
37858
37859
37860
37861
37862
37863
37864
37865
37866
37867
37868
37869
37870
37871
37872
37873
37874
37875
37876
37877
37878
37879
37880
37881
37882
37883
37884
37885
37886
37887
37888
37889
37890
37891
37892
37893
37894
37895
37896
37897
37898
37899
37900
37901
37902
37903
37904
37905
37906
37907
37908
37909
37910
37911
37912
37913
37914
37915
37916
37917
37918
37919
37920
37921
37922
37923
37924
37925
37926
37927
37928
37929
37930
37931
37932
37933
37934
37935
37936
37937
37938
37939
37940
37941
37942
37943
37944
37945
37946
37947
37948
37949
37950
37951
37952
37953
37954
37955
37956
37957
37958
37959
37960
37961
37962
37963
37964
37965
37966
37967
37968
37969
37970
37971
37972
37973
37974
37975
37976
37977
37978
37979
37980
37981
37982
37983
37984
37985
37986
37987
37988
37989
37990
37991
37992
37993
37994
37995
37996
37997
37998
37999
38000
38001
38002
38003
38004
38005
38006
38007
38008
38009
38010
38011
38012
38013
38014
38015
38016
38017
38018
38019
38020
38021
38022
38023
38024
38025
38026
38027
38028
38029
38030
38031
38032
38033
38034
38035
38036
38037
38038
38039
38040
38041
38042
38043
38044
38045
38046
38047
38048
38049
38050
38051
38052
38053
38054
38055
38056
38057
38058
38059
38060
38061
38062
38063
38064
38065
38066
38067
38068
38069
38070
38071
38072
38073
38074
38075
38076
38077
38078
38079
38080
38081
38082
38083
38084
38085
38086
38087
38088
38089
38090
38091
38092
38093
38094
38095
38096
38097
38098
38099
38100
38101
38102
38103
38104
38105
38106
38107
38108
38109
38110
38111
38112
38113
38114
38115
38116
38117
38118
38119
38120
38121
38122
38123
38124
38125
38126
38127
38128
38129
38130
38131
38132
38133
38134
38135
38136
38137
38138
38139
38140
38141
38142
38143
38144
38145
38146
38147
38148
38149
38150
38151
38152
38153
38154
38155
38156
38157
38158
38159
38160
38161
38162
38163
38164
38165
38166
38167
38168
38169
38170
38171
38172
38173
38174
38175
38176
38177
38178
38179
38180
38181
38182
38183
38184
38185
38186
38187
38188
38189
38190
38191
38192
38193
38194
38195
38196
38197
38198
38199
38200
38201
38202
38203
38204
38205
38206
38207
38208
38209
38210
38211
38212
38213
38214
38215
38216
38217
38218
38219
38220
38221
38222
38223
38224
38225
38226
38227
38228
38229
38230
38231
38232
38233
38234
38235
38236
38237
38238
38239
38240
38241
38242
38243
38244
38245
38246
38247
38248
38249
38250
38251
38252
38253
38254
38255
38256
38257
38258
38259
38260
38261
38262
38263
38264
38265
38266
38267
38268
38269
38270
38271
38272
38273
38274
38275
38276
38277
38278
38279
38280
38281
38282
38283
38284
38285
38286
38287
38288
38289
38290
38291
38292
38293
38294
38295
38296
38297
38298
38299
38300
38301
38302
38303
38304
38305
38306
38307
38308
38309
38310
38311
38312
38313
38314
38315
38316
38317
38318
38319
38320
38321
38322
38323
38324
38325
38326
38327
38328
38329
38330
38331
38332
38333
38334
38335
38336
38337
38338
38339
38340
38341
38342
38343
38344
38345
38346
38347
38348
38349
38350
38351
38352
38353
38354
38355
38356
38357
38358
38359
38360
38361
38362
38363
38364
38365
38366
38367
38368
38369
38370
38371
38372
38373
38374
38375
38376
38377
38378
38379
38380
38381
38382
38383
38384
38385
38386
38387
38388
38389
38390
38391
38392
38393
38394
38395
38396
38397
38398
38399
38400
38401
38402
38403
38404
38405
38406
38407
38408
38409
38410
38411
38412
38413
38414
38415
38416
38417
38418
38419
38420
38421
38422
38423
38424
38425
38426
38427
38428
38429
38430
38431
38432
38433
38434
38435
38436
38437
38438
38439
38440
38441
38442
38443
38444
38445
38446
38447
38448
38449
38450
38451
38452
38453
38454
38455
38456
38457
38458
38459
38460
38461
38462
38463
38464
38465
38466
38467
38468
38469
38470
38471
38472
38473
38474
38475
38476
38477
38478
38479
38480
38481
38482
38483
38484
38485
38486
38487
38488
38489
38490
38491
38492
38493
38494
38495
38496
38497
38498
38499
38500
38501
38502
38503
38504
38505
38506
38507
38508
38509
38510
38511
38512
38513
38514
38515
38516
38517
38518
38519
38520
38521
38522
38523
38524
38525
38526
38527
38528
38529
38530
38531
38532
38533
38534
38535
38536
38537
38538
38539
38540
38541
38542
38543
38544
38545
38546
38547
38548
38549
38550
38551
38552
38553
38554
38555
38556
38557
38558
38559
38560
38561
38562
38563
38564
38565
38566
38567
38568
38569
38570
38571
38572
38573
38574
38575
38576
38577
38578
38579
38580
38581
38582
38583
38584
38585
38586
38587
38588
38589
38590
38591
38592
38593
38594
38595
38596
38597
38598
38599
38600
38601
38602
38603
38604
38605
38606
38607
38608
38609
38610
38611
38612
38613
38614
38615
38616
38617
38618
38619
38620
38621
38622
38623
38624
38625
38626
38627
38628
38629
38630
38631
38632
38633
38634
38635
38636
38637
38638
38639
38640
38641
38642
38643
38644
38645
38646
38647
38648
38649
38650
38651
38652
38653
38654
38655
38656
38657
38658
38659
38660
38661
38662
38663
38664
38665
38666
38667
38668
38669
38670
38671
38672
38673
38674
38675
38676
38677
38678
38679
38680
38681
38682
38683
38684
38685
38686
38687
38688
38689
38690
38691
38692
38693
38694
38695
38696
38697
38698
38699
38700
38701
38702
38703
38704
38705
38706
38707
38708
38709
38710
38711
38712
38713
38714
38715
38716
38717
38718
38719
38720
38721
38722
38723
38724
38725
38726
38727
38728
38729
38730
38731
38732
38733
38734
38735
38736
38737
38738
38739
38740
38741
38742
38743
38744
38745
38746
38747
38748
38749
38750
38751
38752
38753
38754
38755
38756
38757
38758
38759
38760
38761
38762
38763
38764
38765
38766
38767
38768
38769
38770
38771
38772
38773
38774
38775
38776
38777
38778
38779
38780
38781
38782
38783
38784
38785
38786
38787
38788
38789
38790
38791
38792
38793
38794
38795
38796
38797
38798
38799
38800
38801
38802
38803
38804
38805
38806
38807
38808
38809
38810
38811
38812
38813
38814
38815
38816
38817
38818
38819
38820
38821
38822
38823
38824
38825
38826
38827
38828
38829
38830
38831
38832
38833
38834
38835
38836
38837
38838
38839
38840
38841
38842
38843
38844
38845
38846
38847
38848
38849
38850
38851
38852
38853
38854
38855
38856
38857
38858
38859
38860
38861
38862
38863
38864
38865
38866
38867
38868
38869
38870
38871
38872
38873
38874
38875
38876
38877
38878
38879
38880
38881
38882
38883
38884
38885
38886
38887
38888
38889
38890
38891
38892
38893
38894
38895
38896
38897
38898
38899
38900
38901
38902
38903
38904
38905
38906
38907
38908
38909
38910
38911
38912
38913
38914
38915
38916
38917
38918
38919
38920
38921
38922
38923
38924
38925
38926
38927
38928
38929
38930
38931
38932
38933
38934
38935
38936
38937
38938
38939
38940
38941
38942
38943
38944
38945
38946
38947
38948
38949
38950
38951
38952
38953
38954
38955
38956
38957
38958
38959
38960
38961
38962
38963
38964
38965
38966
38967
38968
38969
38970
38971
38972
38973
38974
38975
38976
38977
38978
38979
38980
38981
38982
38983
38984
38985
38986
38987
38988
38989
38990
38991
38992
38993
38994
38995
38996
38997
38998
38999
39000
39001
39002
39003
39004
39005
39006
39007
39008
39009
39010
39011
39012
39013
39014
39015
39016
39017
39018
39019
39020
39021
39022
39023
39024
39025
39026
39027
39028
39029
39030
39031
39032
39033
39034
39035
39036
39037
39038
39039
39040
39041
39042
39043
39044
39045
39046
39047
39048
39049
39050
39051
39052
39053
39054
39055
39056
39057
39058
39059
39060
39061
39062
39063
39064
39065
39066
39067
39068
39069
39070
39071
39072
39073
39074
39075
39076
39077
39078
39079
39080
39081
39082
39083
39084
39085
39086
39087
39088
39089
39090
39091
39092
39093
39094
39095
39096
39097
39098
39099
39100
39101
39102
39103
39104
39105
39106
39107
39108
39109
39110
39111
39112
39113
39114
39115
39116
39117
39118
39119
39120
39121
39122
39123
39124
39125
39126
39127
39128
39129
39130
39131
39132
39133
39134
39135
39136
39137
39138
39139
39140
39141
39142
39143
39144
39145
39146
39147
39148
39149
39150
39151
39152
39153
39154
39155
39156
39157
39158
39159
39160
39161
39162
39163
39164
39165
39166
39167
39168
39169
39170
39171
39172
39173
39174
39175
39176
39177
39178
39179
39180
39181
39182
39183
39184
39185
39186
39187
39188
39189
39190
39191
39192
39193
39194
39195
39196
39197
39198
39199
39200
39201
39202
39203
39204
39205
39206
39207
39208
39209
39210
39211
39212
39213
39214
39215
39216
39217
39218
39219
39220
39221
39222
39223
39224
39225
39226
39227
39228
39229
39230
39231
39232
39233
39234
39235
39236
39237
39238
39239
39240
39241
39242
39243
39244
39245
39246
39247
39248
39249
39250
39251
39252
39253
39254
39255
39256
39257
39258
39259
39260
39261
39262
39263
39264
39265
39266
39267
39268
39269
39270
39271
39272
39273
39274
39275
39276
39277
39278
39279
39280
39281
39282
39283
39284
39285
39286
39287
39288
39289
39290
39291
39292
39293
39294
39295
39296
39297
39298
39299
39300
39301
39302
39303
39304
39305
39306
39307
39308
39309
39310
39311
39312
39313
39314
39315
39316
39317
39318
39319
39320
39321
39322
39323
39324
39325
39326
39327
39328
39329
39330
39331
39332
39333
39334
39335
39336
39337
39338
39339
39340
39341
39342
39343
39344
39345
39346
39347
39348
39349
39350
39351
39352
39353
39354
39355
39356
39357
39358
39359
39360
39361
39362
39363
39364
39365
39366
39367
39368
39369
39370
39371
39372
39373
39374
39375
39376
39377
39378
39379
39380
39381
39382
39383
39384
39385
39386
39387
39388
39389
39390
39391
39392
39393
39394
39395
39396
39397
39398
39399
39400
39401
39402
39403
39404
39405
39406
39407
39408
39409
39410
39411
39412
39413
39414
39415
39416
39417
39418
39419
39420
39421
39422
39423
39424
39425
39426
39427
39428
39429
39430
39431
39432
39433
39434
39435
39436
39437
39438
39439
39440
39441
39442
39443
39444
39445
39446
39447
39448
39449
39450
39451
39452
39453
39454
39455
39456
39457
39458
39459
39460
39461
39462
39463
39464
39465
39466
39467
39468
39469
39470
39471
39472
39473
39474
39475
39476
39477
39478
39479
39480
39481
39482
39483
39484
39485
39486
39487
39488
39489
39490
39491
39492
39493
39494
39495
39496
39497
39498
39499
39500
39501
39502
39503
39504
39505
39506
39507
39508
39509
39510
39511
39512
39513
39514
39515
39516
39517
39518
39519
39520
39521
39522
39523
39524
39525
39526
39527
39528
39529
39530
39531
39532
39533
39534
39535
39536
39537
39538
39539
39540
39541
39542
39543
39544
39545
39546
39547
39548
39549
39550
39551
39552
39553
39554
39555
39556
39557
39558
39559
39560
39561
39562
39563
39564
39565
39566
39567
39568
39569
39570
39571
39572
39573
39574
39575
39576
39577
39578
39579
39580
39581
39582
39583
39584
39585
39586
39587
39588
39589
39590
39591
39592
39593
39594
39595
39596
39597
39598
39599
39600
39601
39602
39603
39604
39605
39606
39607
39608
39609
39610
39611
39612
39613
39614
39615
39616
39617
39618
39619
39620
39621
39622
39623
39624
39625
39626
39627
39628
39629
39630
39631
39632
39633
39634
39635
39636
39637
39638
39639
39640
39641
39642
39643
39644
39645
39646
39647
39648
39649
39650
39651
39652
39653
39654
39655
39656
39657
39658
39659
39660
39661
39662
39663
39664
39665
39666
39667
39668
39669
39670
39671
39672
39673
39674
39675
39676
39677
39678
39679
39680
39681
39682
39683
39684
39685
39686
39687
39688
39689
39690
39691
39692
39693
39694
39695
39696
39697
39698
39699
39700
39701
39702
39703
39704
39705
39706
39707
39708
39709
39710
39711
39712
39713
39714
39715
39716
39717
39718
39719
39720
39721
39722
39723
39724
39725
39726
39727
39728
39729
39730
39731
39732
39733
39734
39735
39736
39737
39738
39739
39740
39741
39742
39743
39744
39745
39746
39747
39748
39749
39750
39751
39752
39753
39754
39755
39756
39757
39758
39759
39760
39761
39762
39763
39764
39765
39766
39767
39768
39769
39770
39771
39772
39773
39774
39775
39776
39777
39778
39779
39780
39781
39782
39783
39784
39785
39786
39787
39788
39789
39790
39791
39792
39793
39794
39795
39796
39797
39798
39799
39800
39801
39802
39803
39804
39805
39806
39807
39808
39809
39810
39811
39812
39813
39814
39815
39816
39817
39818
39819
39820
39821
39822
39823
39824
39825
39826
39827
39828
39829
39830
39831
39832
39833
39834
39835
39836
39837
39838
39839
39840
39841
39842
39843
39844
39845
39846
39847
39848
39849
39850
39851
39852
39853
39854
39855
39856
39857
39858
39859
39860
39861
39862
39863
39864
39865
39866
39867
39868
39869
39870
39871
39872
39873
39874
39875
39876
39877
39878
39879
39880
39881
39882
39883
39884
39885
39886
39887
39888
39889
39890
39891
39892
39893
39894
39895
39896
39897
39898
39899
39900
39901
39902
39903
39904
39905
39906
39907
39908
39909
39910
39911
39912
39913
39914
39915
39916
39917
39918
39919
39920
39921
39922
39923
39924
39925
39926
39927
39928
39929
39930
39931
39932
39933
39934
39935
39936
39937
39938
39939
39940
39941
39942
39943
39944
39945
39946
39947
39948
39949
39950
39951
39952
39953
39954
39955
39956
39957
39958
39959
39960
39961
39962
39963
39964
39965
39966
39967
39968
39969
39970
39971
39972
39973
39974
39975
39976
39977
39978
39979
39980
39981
39982
39983
39984
39985
39986
39987
39988
39989
39990
39991
39992
39993
39994
39995
39996
39997
39998
39999
40000
40001
40002
40003
40004
40005
40006
40007
40008
40009
40010
40011
40012
40013
40014
40015
40016
40017
40018
40019
40020
40021
40022
40023
40024
40025
40026
40027
40028
40029
40030
40031
40032
40033
40034
40035
40036
40037
40038
40039
40040
40041
40042
40043
40044
40045
40046
40047
40048
40049
40050
40051
40052
40053
40054
40055
40056
40057
40058
40059
40060
40061
40062
40063
40064
40065
40066
40067
40068
40069
40070
40071
40072
40073
40074
40075
40076
40077
40078
40079
40080
40081
40082
40083
40084
40085
40086
40087
40088
40089
40090
40091
40092
40093
40094
40095
40096
40097
40098
40099
40100
40101
40102
40103
40104
40105
40106
40107
40108
40109
40110
40111
40112
40113
40114
40115
40116
40117
40118
40119
40120
40121
40122
40123
40124
40125
40126
40127
40128
40129
40130
40131
40132
40133
40134
40135
40136
40137
40138
40139
40140
40141
40142
40143
40144
40145
40146
40147
40148
40149
40150
40151
40152
40153
40154
40155
40156
40157
40158
40159
40160
40161
40162
40163
40164
40165
40166
40167
40168
40169
40170
40171
40172
40173
40174
40175
40176
40177
40178
40179
40180
40181
40182
40183
40184
40185
40186
40187
40188
40189
40190
40191
40192
40193
40194
40195
40196
40197
40198
40199
40200
40201
40202
40203
40204
40205
40206
40207
40208
40209
40210
40211
40212
40213
40214
40215
40216
40217
40218
40219
40220
40221
40222
40223
40224
40225
40226
40227
40228
40229
40230
40231
40232
40233
40234
40235
40236
40237
40238
40239
40240
40241
40242
40243
40244
40245
40246
40247
40248
40249
40250
40251
40252
40253
40254
40255
40256
40257
40258
40259
40260
40261
40262
40263
40264
40265
40266
40267
40268
40269
40270
40271
40272
40273
40274
40275
40276
40277
40278
40279
40280
40281
40282
40283
40284
40285
40286
40287
40288
40289
40290
40291
40292
40293
40294
40295
40296
40297
40298
40299
40300
40301
40302
40303
40304
40305
40306
40307
40308
40309
40310
40311
40312
40313
40314
40315
40316
40317
40318
40319
40320
40321
40322
40323
40324
40325
40326
40327
40328
40329
40330
40331
40332
40333
40334
40335
40336
40337
40338
40339
40340
40341
40342
40343
40344
40345
40346
40347
40348
40349
40350
40351
40352
40353
40354
40355
40356
40357
40358
40359
40360
40361
40362
40363
40364
40365
40366
40367
40368
40369
40370
40371
40372
40373
40374
40375
40376
40377
40378
40379
40380
40381
40382
40383
40384
40385
40386
40387
40388
40389
40390
40391
40392
40393
40394
40395
40396
40397
40398
40399
40400
40401
40402
40403
40404
40405
40406
40407
40408
40409
40410
40411
40412
40413
40414
40415
40416
40417
40418
40419
40420
40421
40422
40423
40424
40425
40426
40427
40428
40429
40430
40431
40432
40433
40434
40435
40436
40437
40438
40439
40440
40441
40442
40443
40444
40445
40446
40447
40448
40449
40450
40451
40452
40453
40454
40455
40456
40457
40458
40459
40460
40461
40462
40463
40464
40465
40466
40467
40468
40469
40470
40471
40472
40473
40474
40475
40476
40477
40478
40479
40480
40481
40482
40483
40484
40485
40486
40487
40488
40489
40490
40491
40492
40493
40494
40495
40496
40497
40498
40499
40500
40501
40502
40503
40504
40505
40506
40507
40508
40509
40510
40511
40512
40513
40514
40515
40516
40517
40518
40519
40520
40521
40522
40523
40524
40525
40526
40527
40528
40529
40530
40531
40532
40533
40534
40535
40536
40537
40538
40539
40540
40541
40542
40543
40544
40545
40546
40547
40548
40549
40550
40551
40552
40553
40554
40555
40556
40557
40558
40559
40560
40561
40562
40563
40564
40565
40566
40567
40568
40569
40570
40571
40572
40573
40574
40575
40576
40577
40578
40579
40580
40581
40582
40583
40584
40585
40586
40587
40588
40589
40590
40591
40592
40593
40594
40595
40596
40597
40598
40599
40600
40601
40602
40603
40604
40605
40606
40607
40608
40609
40610
40611
40612
40613
40614
40615
40616
40617
40618
40619
40620
40621
40622
40623
40624
40625
40626
40627
40628
40629
40630
40631
40632
40633
40634
40635
40636
40637
40638
40639
40640
40641
40642
40643
40644
40645
40646
40647
40648
40649
40650
40651
40652
40653
40654
40655
40656
40657
40658
40659
40660
40661
40662
40663
40664
40665
40666
40667
40668
40669
40670
40671
40672
40673
40674
40675
40676
40677
40678
40679
40680
40681
40682
40683
40684
40685
40686
40687
40688
40689
40690
40691
40692
40693
40694
40695
40696
40697
40698
40699
40700
40701
40702
40703
40704
40705
40706
40707
40708
40709
40710
40711
40712
40713
40714
40715
40716
40717
40718
40719
40720
40721
40722
40723
40724
40725
40726
40727
40728
40729
40730
40731
40732
40733
40734
40735
40736
40737
40738
40739
40740
40741
40742
40743
40744
40745
40746
40747
40748
40749
40750
40751
40752
40753
40754
40755
40756
40757
40758
40759
40760
40761
40762
40763
40764
40765
40766
40767
40768
40769
40770
40771
40772
40773
40774
40775
40776
40777
40778
40779
40780
40781
40782
40783
40784
40785
40786
40787
40788
40789
40790
40791
40792
40793
40794
40795
40796
40797
40798
40799
40800
40801
40802
40803
40804
40805
40806
40807
40808
40809
40810
40811
40812
40813
40814
40815
40816
40817
40818
40819
40820
40821
40822
40823
40824
40825
40826
40827
40828
40829
40830
40831
40832
40833
40834
40835
40836
40837
40838
40839
40840
40841
40842
40843
40844
40845
40846
40847
40848
40849
40850
40851
40852
40853
40854
40855
40856
40857
40858
40859
40860
40861
40862
40863
40864
40865
40866
40867
40868
40869
40870
40871
40872
40873
40874
40875
40876
40877
40878
40879
40880
40881
40882
40883
40884
40885
40886
40887
40888
40889
40890
40891
40892
40893
40894
40895
40896
40897
40898
40899
40900
40901
40902
40903
40904
40905
40906
40907
40908
40909
40910
40911
40912
40913
40914
40915
40916
40917
40918
40919
40920
40921
40922
40923
40924
40925
40926
40927
40928
40929
40930
40931
40932
40933
40934
40935
40936
40937
40938
40939
40940
40941
40942
40943
40944
40945
40946
40947
40948
40949
40950
40951
40952
40953
40954
40955
40956
40957
40958
40959
40960
40961
40962
40963
40964
40965
40966
40967
40968
40969
40970
40971
40972
40973
40974
40975
40976
40977
40978
40979
40980
40981
40982
40983
40984
40985
40986
40987
40988
40989
40990
40991
40992
40993
40994
40995
40996
40997
40998
40999
41000
41001
41002
41003
41004
41005
41006
41007
41008
41009
41010
41011
41012
41013
41014
41015
41016
41017
41018
41019
41020
41021
41022
41023
41024
41025
41026
41027
41028
41029
41030
41031
41032
41033
41034
41035
41036
41037
41038
41039
41040
41041
41042
41043
41044
41045
41046
41047
41048
41049
41050
41051
41052
41053
41054
41055
41056
41057
41058
41059
41060
41061
41062
41063
41064
41065
41066
41067
41068
41069
41070
41071
41072
41073
41074
41075
41076
41077
41078
41079
41080
41081
41082
41083
41084
41085
41086
41087
41088
41089
41090
41091
41092
41093
41094
41095
41096
41097
41098
41099
41100
41101
41102
41103
41104
41105
41106
41107
41108
41109
41110
41111
41112
41113
41114
41115
41116
41117
41118
41119
41120
41121
41122
41123
41124
41125
41126
41127
41128
41129
41130
41131
41132
41133
41134
41135
41136
41137
41138
41139
41140
41141
41142
41143
41144
41145
41146
41147
41148
41149
41150
41151
41152
41153
41154
41155
41156
41157
41158
41159
41160
41161
41162
41163
41164
41165
41166
41167
41168
41169
41170
41171
41172
41173
41174
41175
41176
41177
41178
41179
41180
41181
41182
41183
41184
41185
41186
41187
41188
41189
41190
41191
41192
41193
41194
41195
41196
41197
41198
41199
41200
41201
41202
41203
41204
41205
41206
41207
41208
41209
41210
41211
41212
41213
41214
41215
41216
41217
41218
41219
41220
41221
41222
41223
41224
41225
41226
41227
41228
41229
41230
41231
41232
41233
41234
41235
41236
41237
41238
41239
41240
41241
41242
41243
41244
41245
41246
41247
41248
41249
41250
41251
41252
41253
41254
41255
41256
41257
41258
41259
41260
41261
41262
41263
41264
41265
41266
41267
41268
41269
41270
41271
41272
41273
41274
41275
41276
41277
41278
41279
41280
41281
41282
41283
41284
41285
41286
41287
41288
41289
41290
41291
41292
41293
41294
41295
41296
41297
41298
41299
41300
41301
41302
41303
41304
41305
41306
41307
41308
41309
41310
41311
41312
41313
41314
41315
41316
41317
41318
41319
41320
41321
41322
41323
41324
41325
41326
41327
41328
41329
41330
41331
41332
41333
41334
41335
41336
41337
41338
41339
41340
41341
41342
41343
41344
41345
41346
41347
41348
41349
41350
41351
41352
41353
41354
41355
41356
41357
41358
41359
41360
41361
41362
41363
41364
41365
41366
41367
41368
41369
41370
41371
41372
41373
41374
41375
41376
41377
41378
41379
41380
41381
41382
41383
41384
41385
41386
41387
41388
41389
41390
41391
41392
41393
41394
41395
41396
41397
41398
41399
41400
41401
41402
41403
41404
41405
41406
41407
41408
41409
41410
41411
41412
41413
41414
41415
41416
41417
41418
41419
41420
41421
41422
41423
41424
41425
41426
41427
41428
41429
41430
41431
41432
41433
41434
41435
41436
41437
41438
41439
41440
41441
41442
41443
41444
41445
41446
41447
41448
41449
41450
41451
41452
41453
41454
41455
41456
41457
41458
41459
41460
41461
41462
41463
41464
41465
41466
41467
41468
41469
41470
41471
41472
41473
41474
41475
41476
41477
41478
41479
41480
41481
41482
41483
41484
41485
41486
41487
41488
41489
41490
41491
41492
41493
41494
41495
41496
41497
41498
41499
41500
41501
41502
41503
41504
41505
41506
41507
41508
41509
41510
41511
41512
41513
41514
41515
41516
41517
41518
41519
41520
41521
41522
41523
41524
41525
41526
41527
41528
41529
41530
41531
41532
41533
41534
41535
41536
41537
41538
41539
41540
41541
41542
41543
41544
41545
41546
41547
41548
41549
41550
41551
41552
41553
41554
41555
41556
41557
41558
41559
41560
41561
41562
41563
41564
41565
41566
41567
41568
41569
41570
41571
41572
41573
41574
41575
41576
41577
41578
41579
41580
41581
41582
41583
41584
41585
41586
41587
41588
41589
41590
41591
41592
41593
41594
41595
41596
41597
41598
41599
41600
41601
41602
41603
41604
41605
41606
41607
41608
41609
41610
41611
41612
41613
41614
41615
41616
41617
41618
41619
41620
41621
41622
41623
41624
41625
41626
41627
41628
41629
41630
41631
41632
41633
41634
41635
41636
41637
41638
41639
41640
41641
41642
41643
41644
41645
41646
41647
41648
41649
41650
41651
41652
41653
41654
41655
41656
41657
41658
41659
41660
41661
41662
41663
41664
41665
41666
41667
41668
41669
41670
41671
41672
41673
41674
41675
41676
41677
41678
41679
41680
41681
41682
41683
41684
41685
41686
41687
41688
41689
41690
41691
41692
41693
41694
41695
41696
41697
41698
41699
41700
41701
41702
41703
41704
41705
41706
41707
41708
41709
41710
41711
41712
41713
41714
41715
41716
41717
41718
41719
41720
41721
41722
41723
41724
41725
41726
41727
41728
41729
41730
41731
41732
41733
41734
41735
41736
41737
41738
41739
41740
41741
41742
41743
41744
41745
41746
41747
41748
41749
41750
41751
41752
41753
41754
41755
41756
41757
41758
41759
41760
41761
41762
41763
41764
41765
41766
41767
41768
41769
41770
41771
41772
41773
41774
41775
41776
41777
41778
41779
41780
41781
41782
41783
41784
41785
41786
41787
41788
41789
41790
41791
41792
41793
41794
41795
41796
41797
41798
41799
41800
41801
41802
41803
41804
41805
41806
41807
41808
41809
41810
41811
41812
41813
41814
41815
41816
41817
41818
41819
41820
41821
41822
41823
41824
41825
41826
41827
41828
41829
41830
41831
41832
41833
41834
41835
41836
41837
41838
41839
41840
41841
41842
41843
41844
41845
41846
41847
41848
41849
41850
41851
41852
41853
41854
41855
41856
41857
41858
41859
41860
41861
41862
41863
41864
41865
41866
41867
41868
41869
41870
41871
41872
41873
41874
41875
41876
41877
41878
41879
41880
41881
41882
41883
41884
41885
41886
41887
41888
41889
41890
41891
41892
41893
41894
41895
41896
41897
41898
41899
41900
41901
41902
41903
41904
41905
41906
41907
41908
41909
41910
41911
41912
41913
41914
41915
41916
41917
41918
41919
41920
41921
41922
41923
41924
41925
41926
41927
41928
41929
41930
41931
41932
41933
41934
41935
41936
41937
41938
41939
41940
41941
41942
41943
41944
41945
41946
41947
41948
41949
41950
41951
41952
41953
41954
41955
41956
41957
41958
41959
41960
41961
41962
41963
41964
41965
41966
41967
41968
41969
41970
41971
41972
41973
41974
41975
41976
41977
41978
41979
41980
41981
41982
41983
41984
41985
41986
41987
41988
41989
41990
41991
41992
41993
41994
41995
41996
41997
41998
41999
42000
42001
42002
42003
42004
42005
42006
42007
42008
42009
42010
42011
42012
42013
42014
42015
42016
42017
42018
42019
42020
42021
42022
42023
42024
42025
42026
42027
42028
42029
42030
42031
42032
42033
42034
42035
42036
42037
42038
42039
42040
42041
42042
42043
42044
42045
42046
42047
42048
42049
42050
42051
42052
42053
42054
42055
42056
42057
42058
42059
42060
42061
42062
42063
42064
42065
42066
42067
42068
42069
42070
42071
42072
42073
42074
42075
42076
42077
42078
42079
42080
42081
42082
42083
42084
42085
42086
42087
42088
42089
42090
42091
42092
42093
42094
42095
42096
42097
42098
42099
42100
42101
42102
42103
42104
42105
42106
42107
42108
42109
42110
42111
42112
42113
42114
42115
42116
42117
42118
42119
42120
42121
42122
42123
42124
42125
42126
42127
42128
42129
42130
42131
42132
42133
42134
42135
42136
42137
42138
42139
42140
42141
42142
42143
42144
42145
42146
42147
42148
42149
42150
42151
42152
42153
42154
42155
42156
42157
42158
42159
42160
42161
42162
42163
42164
42165
42166
42167
42168
42169
42170
42171
42172
42173
42174
42175
42176
42177
42178
42179
42180
42181
42182
42183
42184
42185
42186
42187
42188
42189
42190
42191
42192
42193
42194
42195
42196
42197
42198
42199
42200
42201
42202
42203
42204
42205
42206
42207
42208
42209
42210
42211
42212
42213
42214
42215
42216
42217
42218
42219
42220
42221
42222
42223
42224
42225
42226
42227
42228
42229
42230
42231
42232
42233
42234
42235
42236
42237
42238
42239
42240
42241
42242
42243
42244
42245
42246
42247
42248
42249
42250
42251
42252
42253
42254
42255
42256
42257
42258
42259
42260
42261
42262
42263
42264
42265
42266
42267
42268
42269
42270
42271
42272
42273
42274
42275
42276
42277
42278
42279
42280
42281
42282
42283
42284
42285
42286
42287
42288
42289
42290
42291
42292
42293
42294
42295
42296
42297
42298
42299
42300
42301
42302
42303
42304
42305
42306
42307
42308
42309
42310
42311
42312
42313
42314
42315
42316
42317
42318
42319
42320
42321
42322
42323
42324
42325
42326
42327
42328
42329
42330
42331
42332
42333
42334
42335
42336
42337
42338
42339
42340
42341
42342
42343
42344
42345
42346
42347
42348
42349
42350
42351
42352
42353
42354
42355
42356
42357
42358
42359
42360
42361
42362
42363
42364
42365
42366
42367
42368
42369
42370
42371
42372
42373
42374
42375
42376
42377
42378
42379
42380
42381
42382
42383
42384
42385
42386
42387
42388
42389
42390
42391
42392
42393
42394
42395
42396
42397
42398
42399
42400
42401
42402
42403
42404
42405
42406
42407
42408
42409
42410
42411
42412
42413
42414
42415
42416
42417
42418
42419
42420
42421
42422
42423
42424
42425
42426
42427
42428
42429
42430
42431
42432
42433
42434
42435
42436
42437
42438
42439
42440
42441
42442
42443
42444
42445
42446
42447
42448
42449
42450
42451
42452
42453
42454
42455
42456
42457
42458
42459
42460
42461
42462
42463
42464
42465
42466
42467
42468
42469
42470
42471
42472
42473
42474
42475
42476
42477
42478
42479
42480
42481
42482
42483
42484
42485
42486
42487
42488
42489
42490
42491
42492
42493
42494
42495
42496
42497
42498
42499
42500
42501
42502
42503
42504
42505
42506
42507
42508
42509
42510
42511
42512
42513
42514
42515
42516
42517
42518
42519
42520
42521
42522
42523
42524
42525
42526
42527
42528
42529
42530
42531
42532
42533
42534
42535
42536
42537
42538
42539
42540
42541
42542
42543
42544
42545
42546
42547
42548
42549
42550
42551
42552
42553
42554
42555
42556
42557
42558
42559
42560
42561
42562
42563
42564
42565
42566
42567
42568
42569
42570
42571
42572
42573
42574
42575
42576
42577
42578
42579
42580
42581
42582
42583
42584
42585
42586
42587
42588
42589
42590
42591
42592
42593
42594
42595
42596
42597
42598
42599
42600
42601
42602
42603
42604
42605
42606
42607
42608
42609
42610
42611
42612
42613
42614
42615
42616
42617
42618
42619
42620
42621
42622
42623
42624
42625
42626
42627
42628
42629
42630
42631
42632
42633
42634
42635
42636
42637
42638
42639
42640
42641
42642
42643
42644
42645
42646
42647
42648
42649
42650
42651
42652
42653
42654
42655
42656
42657
42658
42659
42660
42661
42662
42663
42664
42665
42666
42667
42668
42669
42670
42671
42672
42673
42674
42675
42676
42677
42678
42679
42680
42681
42682
42683
42684
42685
42686
42687
42688
42689
42690
42691
42692
42693
42694
42695
42696
42697
42698
42699
42700
42701
42702
42703
42704
42705
42706
42707
42708
42709
42710
42711
42712
42713
42714
42715
42716
42717
42718
42719
42720
42721
42722
42723
42724
42725
42726
42727
42728
42729
42730
42731
42732
42733
42734
42735
42736
42737
42738
42739
42740
42741
42742
42743
42744
42745
42746
42747
42748
42749
42750
42751
42752
42753
42754
42755
42756
42757
42758
42759
42760
42761
42762
42763
42764
42765
42766
42767
42768
42769
42770
42771
42772
42773
42774
42775
42776
42777
42778
42779
42780
42781
42782
42783
42784
42785
42786
42787
42788
42789
42790
42791
42792
42793
42794
42795
42796
42797
42798
42799
42800
42801
42802
42803
42804
42805
42806
42807
42808
42809
42810
42811
42812
42813
42814
42815
42816
42817
42818
42819
42820
42821
42822
42823
42824
42825
42826
42827
42828
42829
42830
42831
42832
42833
42834
42835
42836
42837
42838
42839
42840
42841
42842
42843
42844
42845
42846
42847
42848
42849
42850
42851
42852
42853
42854
42855
42856
42857
42858
42859
42860
42861
42862
42863
42864
42865
42866
42867
42868
42869
42870
42871
42872
42873
42874
42875
42876
42877
42878
42879
42880
42881
42882
42883
42884
42885
42886
42887
42888
42889
42890
42891
42892
42893
42894
42895
42896
42897
42898
42899
42900
42901
42902
42903
42904
42905
42906
42907
42908
42909
42910
42911
42912
42913
42914
42915
42916
42917
42918
42919
42920
42921
42922
42923
42924
42925
42926
42927
42928
42929
42930
42931
42932
42933
42934
42935
42936
42937
42938
42939
42940
42941
42942
42943
42944
42945
42946
42947
42948
42949
42950
42951
42952
42953
42954
42955
42956
42957
42958
42959
42960
42961
42962
42963
42964
42965
42966
42967
42968
42969
42970
42971
42972
42973
42974
42975
42976
42977
42978
42979
42980
42981
42982
42983
42984
42985
42986
42987
42988
42989
42990
42991
42992
42993
42994
42995
42996
42997
42998
42999
43000
43001
43002
43003
43004
43005
43006
43007
43008
43009
43010
43011
43012
43013
43014
43015
43016
43017
43018
43019
43020
43021
43022
43023
43024
43025
43026
43027
43028
43029
43030
43031
43032
43033
43034
43035
43036
43037
43038
43039
43040
43041
43042
43043
43044
43045
43046
43047
43048
43049
43050
43051
43052
43053
43054
43055
43056
43057
43058
43059
43060
43061
43062
43063
43064
43065
43066
43067
43068
43069
43070
43071
43072
43073
43074
43075
43076
43077
43078
43079
43080
43081
43082
43083
43084
43085
43086
43087
43088
43089
43090
43091
43092
43093
43094
43095
43096
43097
43098
43099
43100
43101
43102
43103
43104
43105
43106
43107
43108
43109
43110
43111
43112
43113
43114
43115
43116
43117
43118
43119
43120
43121
43122
43123
43124
43125
43126
43127
43128
43129
43130
43131
43132
43133
43134
43135
43136
43137
43138
43139
43140
43141
43142
43143
43144
43145
43146
43147
43148
43149
43150
43151
43152
43153
43154
43155
43156
43157
43158
43159
43160
43161
43162
43163
43164
43165
43166
43167
43168
43169
43170
43171
43172
43173
43174
43175
43176
43177
43178
43179
43180
43181
43182
43183
43184
43185
43186
43187
43188
43189
43190
43191
43192
43193
43194
43195
43196
43197
43198
43199
43200
43201
43202
43203
43204
43205
43206
43207
43208
43209
43210
43211
43212
43213
43214
43215
43216
43217
43218
43219
43220
43221
43222
43223
43224
43225
43226
43227
43228
43229
43230
43231
43232
43233
43234
43235
43236
43237
43238
43239
43240
43241
43242
43243
43244
43245
43246
43247
43248
43249
43250
43251
43252
43253
43254
43255
43256
43257
43258
43259
43260
43261
43262
43263
43264
43265
43266
43267
43268
43269
43270
43271
43272
43273
43274
43275
43276
43277
43278
43279
43280
43281
43282
43283
43284
43285
43286
43287
43288
43289
43290
43291
43292
43293
43294
43295
43296
43297
43298
43299
43300
43301
43302
43303
43304
43305
43306
43307
43308
43309
43310
43311
43312
43313
43314
43315
43316
43317
43318
43319
43320
43321
43322
43323
43324
43325
43326
43327
43328
43329
43330
43331
43332
43333
43334
43335
43336
43337
43338
43339
43340
43341
43342
43343
43344
43345
43346
43347
43348
43349
43350
43351
43352
43353
43354
43355
43356
43357
43358
43359
43360
43361
43362
43363
43364
43365
43366
43367
43368
43369
43370
43371
43372
43373
43374
43375
43376
43377
43378
43379
43380
43381
43382
43383
43384
43385
43386
43387
43388
43389
43390
43391
43392
43393
43394
43395
43396
43397
43398
43399
43400
43401
43402
43403
43404
43405
43406
43407
43408
43409
43410
43411
43412
43413
43414
43415
43416
43417
43418
43419
43420
43421
43422
43423
43424
43425
43426
43427
43428
43429
43430
43431
43432
43433
43434
43435
43436
43437
43438
43439
43440
43441
43442
43443
43444
43445
43446
43447
43448
43449
43450
43451
43452
43453
43454
43455
43456
43457
43458
43459
43460
43461
43462
43463
43464
43465
43466
43467
43468
43469
43470
43471
43472
43473
43474
43475
43476
43477
43478
43479
43480
43481
43482
43483
43484
43485
43486
43487
43488
43489
43490
43491
43492
43493
43494
43495
43496
43497
43498
43499
43500
43501
43502
43503
43504
43505
43506
43507
43508
43509
43510
43511
43512
43513
43514
43515
43516
43517
43518
43519
43520
43521
43522
43523
43524
43525
43526
43527
43528
43529
43530
43531
43532
43533
43534
43535
43536
43537
43538
43539
43540
43541
43542
43543
43544
43545
43546
43547
43548
43549
43550
43551
43552
43553
43554
43555
43556
43557
43558
43559
43560
43561
43562
43563
43564
43565
43566
43567
43568
43569
43570
43571
43572
43573
43574
43575
43576
43577
43578
43579
43580
43581
43582
43583
43584
43585
43586
43587
43588
43589
43590
43591
43592
43593
43594
43595
43596
43597
43598
43599
43600
43601
43602
43603
43604
43605
43606
43607
43608
43609
43610
43611
43612
43613
43614
43615
43616
43617
43618
43619
43620
43621
43622
43623
43624
43625
43626
43627
43628
43629
43630
43631
43632
43633
43634
43635
43636
43637
43638
43639
43640
43641
43642
43643
43644
43645
43646
43647
43648
43649
43650
43651
43652
43653
43654
43655
43656
43657
43658
43659
43660
43661
43662
43663
43664
43665
43666
43667
43668
43669
43670
43671
43672
43673
43674
43675
43676
43677
43678
43679
43680
43681
43682
43683
43684
43685
43686
43687
43688
43689
43690
43691
43692
43693
43694
43695
43696
43697
43698
43699
43700
43701
43702
43703
43704
43705
43706
43707
43708
43709
43710
43711
43712
43713
43714
43715
43716
43717
43718
43719
43720
43721
43722
43723
43724
43725
43726
43727
43728
43729
43730
43731
43732
43733
43734
43735
43736
43737
43738
43739
43740
43741
43742
43743
43744
43745
43746
43747
43748
43749
43750
43751
43752
43753
43754
43755
43756
43757
43758
43759
43760
43761
43762
43763
43764
43765
43766
43767
43768
43769
43770
43771
43772
43773
43774
43775
43776
43777
43778
43779
43780
43781
43782
43783
43784
43785
43786
43787
43788
43789
43790
43791
43792
43793
43794
43795
43796
43797
43798
43799
43800
43801
43802
43803
43804
43805
43806
43807
43808
43809
43810
43811
43812
43813
43814
43815
43816
43817
43818
43819
43820
43821
43822
43823
43824
43825
43826
43827
43828
43829
43830
43831
43832
43833
43834
43835
43836
43837
43838
43839
43840
43841
43842
43843
43844
43845
43846
43847
43848
43849
43850
43851
43852
43853
43854
43855
43856
43857
43858
43859
43860
43861
43862
43863
43864
43865
43866
43867
43868
43869
43870
43871
43872
43873
43874
43875
43876
43877
43878
43879
43880
43881
43882
43883
43884
43885
43886
43887
43888
43889
43890
43891
43892
43893
43894
43895
43896
43897
43898
43899
43900
43901
43902
43903
43904
43905
43906
43907
43908
43909
43910
43911
43912
43913
43914
43915
43916
43917
43918
43919
43920
43921
43922
43923
43924
43925
43926
43927
43928
43929
43930
43931
43932
43933
43934
43935
43936
43937
43938
43939
43940
43941
43942
43943
43944
43945
43946
43947
43948
43949
43950
43951
43952
43953
43954
43955
43956
43957
43958
43959
43960
43961
43962
43963
43964
43965
43966
43967
43968
43969
43970
43971
43972
43973
43974
43975
43976
43977
43978
43979
43980
43981
43982
43983
43984
43985
43986
43987
43988
43989
43990
43991
43992
43993
43994
43995
43996
43997
43998
43999
44000
44001
44002
44003
44004
44005
44006
44007
44008
44009
44010
44011
44012
44013
44014
44015
44016
44017
44018
44019
44020
44021
44022
44023
44024
44025
44026
44027
44028
44029
44030
44031
44032
44033
44034
44035
44036
44037
44038
44039
44040
44041
44042
44043
44044
44045
44046
44047
44048
44049
44050
44051
44052
44053
44054
44055
44056
44057
44058
44059
44060
44061
44062
44063
44064
44065
44066
44067
44068
44069
44070
44071
44072
44073
44074
44075
44076
44077
44078
44079
44080
44081
44082
44083
44084
44085
44086
44087
44088
44089
44090
44091
44092
44093
44094
44095
44096
44097
44098
44099
44100
44101
44102
44103
44104
44105
44106
44107
44108
44109
44110
44111
44112
44113
44114
44115
44116
44117
44118
44119
44120
44121
44122
44123
44124
44125
44126
44127
44128
44129
44130
44131
44132
44133
44134
44135
44136
44137
44138
44139
44140
44141
44142
44143
44144
44145
44146
44147
44148
44149
44150
44151
44152
44153
44154
44155
44156
44157
44158
44159
44160
44161
44162
44163
44164
44165
44166
44167
44168
44169
44170
44171
44172
44173
44174
44175
44176
44177
44178
44179
44180
44181
44182
44183
44184
44185
44186
44187
44188
44189
44190
44191
44192
44193
44194
44195
44196
44197
44198
44199
44200
44201
44202
44203
44204
44205
44206
44207
44208
44209
44210
44211
44212
44213
44214
44215
44216
44217
44218
44219
44220
44221
44222
44223
44224
44225
44226
44227
44228
44229
44230
44231
44232
44233
44234
44235
44236
44237
44238
44239
44240
44241
44242
44243
44244
44245
44246
44247
44248
44249
44250
44251
44252
44253
44254
44255
44256
44257
44258
44259
44260
44261
44262
44263
44264
44265
44266
44267
44268
44269
44270
44271
44272
44273
44274
44275
44276
44277
44278
44279
44280
44281
44282
44283
44284
44285
44286
44287
44288
44289
44290
44291
44292
44293
44294
44295
44296
44297
44298
44299
44300
44301
44302
44303
44304
44305
44306
44307
44308
44309
44310
44311
44312
44313
44314
44315
44316
44317
44318
44319
44320
44321
44322
44323
44324
44325
44326
44327
44328
44329
44330
44331
44332
44333
44334
44335
44336
44337
44338
44339
44340
44341
44342
44343
44344
44345
44346
44347
44348
44349
44350
44351
44352
44353
44354
44355
44356
44357
44358
44359
44360
44361
44362
44363
44364
44365
44366
44367
44368
44369
44370
44371
44372
44373
44374
44375
44376
44377
44378
44379
44380
44381
44382
44383
44384
44385
44386
44387
44388
44389
44390
44391
44392
44393
44394
44395
44396
44397
44398
44399
44400
44401
44402
44403
44404
44405
44406
44407
44408
44409
44410
44411
44412
44413
44414
44415
44416
44417
44418
44419
44420
44421
44422
44423
44424
44425
44426
44427
44428
44429
44430
44431
44432
44433
44434
44435
44436
44437
44438
44439
44440
44441
44442
44443
44444
44445
44446
44447
44448
44449
44450
44451
44452
44453
44454
44455
44456
44457
44458
44459
44460
44461
44462
44463
44464
44465
44466
44467
44468
44469
44470
44471
44472
44473
44474
44475
44476
44477
44478
44479
44480
44481
44482
44483
44484
44485
44486
44487
44488
44489
44490
44491
44492
44493
44494
44495
44496
44497
44498
44499
44500
44501
44502
44503
44504
44505
44506
44507
44508
44509
44510
44511
44512
44513
44514
44515
44516
44517
44518
44519
44520
44521
44522
44523
44524
44525
44526
44527
44528
44529
44530
44531
44532
44533
44534
44535
44536
44537
44538
44539
44540
44541
44542
44543
44544
44545
44546
44547
44548
44549
44550
44551
44552
44553
44554
44555
44556
44557
44558
44559
44560
44561
44562
44563
44564
44565
44566
44567
44568
44569
44570
44571
44572
44573
44574
44575
44576
44577
44578
44579
44580
44581
44582
44583
44584
44585
44586
44587
44588
44589
44590
44591
44592
44593
44594
44595
44596
44597
44598
44599
44600
44601
44602
44603
44604
44605
44606
44607
44608
44609
44610
44611
44612
44613
44614
44615
44616
44617
44618
44619
44620
44621
44622
44623
44624
44625
44626
44627
44628
44629
44630
44631
44632
44633
44634
44635
44636
44637
44638
44639
44640
44641
44642
44643
44644
44645
44646
44647
44648
44649
44650
44651
44652
44653
44654
44655
44656
44657
44658
44659
44660
44661
44662
44663
44664
44665
44666
44667
44668
44669
44670
44671
44672
44673
44674
44675
44676
44677
44678
44679
44680
44681
44682
44683
44684
44685
44686
44687
44688
44689
44690
44691
44692
44693
44694
44695
44696
44697
44698
44699
44700
44701
44702
44703
44704
44705
44706
44707
44708
44709
44710
44711
44712
44713
44714
44715
44716
44717
44718
44719
44720
44721
44722
44723
44724
44725
44726
44727
44728
44729
44730
44731
44732
44733
44734
44735
44736
44737
44738
44739
44740
44741
44742
44743
44744
44745
44746
44747
44748
44749
44750
44751
44752
44753
44754
44755
44756
44757
44758
44759
44760
44761
44762
44763
44764
44765
44766
44767
44768
44769
44770
44771
44772
44773
44774
44775
44776
44777
44778
44779
44780
44781
44782
44783
44784
44785
44786
44787
44788
44789
44790
44791
44792
44793
44794
44795
44796
44797
44798
44799
44800
44801
44802
44803
44804
44805
44806
44807
44808
44809
44810
44811
44812
44813
44814
44815
44816
44817
44818
44819
44820
44821
44822
44823
44824
44825
44826
44827
44828
44829
44830
44831
44832
44833
44834
44835
44836
44837
44838
44839
44840
44841
44842
44843
44844
44845
44846
44847
44848
44849
44850
44851
44852
44853
44854
44855
44856
44857
44858
44859
44860
44861
44862
44863
44864
44865
44866
44867
44868
44869
44870
44871
44872
44873
44874
44875
44876
44877
44878
44879
44880
44881
44882
44883
44884
44885
44886
44887
44888
44889
44890
44891
44892
44893
44894
44895
44896
44897
44898
44899
44900
44901
44902
44903
44904
44905
44906
44907
44908
44909
44910
44911
44912
44913
44914
44915
44916
44917
44918
44919
44920
44921
44922
44923
44924
44925
44926
44927
44928
44929
44930
44931
44932
44933
44934
44935
44936
44937
44938
44939
44940
44941
44942
44943
44944
44945
44946
44947
44948
44949
44950
44951
44952
44953
44954
44955
44956
44957
44958
44959
44960
44961
44962
44963
44964
44965
44966
44967
44968
44969
44970
44971
44972
44973
44974
44975
44976
44977
44978
44979
44980
44981
44982
44983
44984
44985
44986
44987
44988
44989
44990
44991
44992
44993
44994
44995
44996
44997
44998
44999
45000
45001
45002
45003
45004
45005
45006
45007
45008
45009
45010
45011
45012
45013
45014
45015
45016
45017
45018
45019
45020
45021
45022
45023
45024
45025
45026
45027
45028
45029
45030
45031
45032
45033
45034
45035
45036
45037
45038
45039
45040
45041
45042
45043
45044
45045
45046
45047
45048
45049
45050
45051
45052
45053
45054
45055
45056
45057
45058
45059
45060
45061
45062
45063
45064
45065
45066
45067
45068
45069
45070
45071
45072
45073
45074
45075
45076
45077
45078
45079
45080
45081
45082
45083
45084
45085
45086
45087
45088
45089
45090
45091
45092
45093
45094
45095
45096
45097
45098
45099
45100
45101
45102
45103
45104
45105
45106
45107
45108
45109
45110
45111
45112
45113
45114
45115
45116
45117
45118
45119
45120
45121
45122
45123
45124
45125
45126
45127
45128
45129
45130
45131
45132
45133
45134
45135
45136
45137
45138
45139
45140
45141
45142
45143
45144
45145
45146
45147
45148
45149
45150
45151
45152
45153
45154
45155
45156
45157
45158
45159
45160
45161
45162
45163
45164
45165
45166
45167
45168
45169
45170
45171
45172
45173
45174
45175
45176
45177
45178
45179
45180
45181
45182
45183
45184
45185
45186
45187
45188
45189
45190
45191
45192
45193
45194
45195
45196
45197
45198
45199
45200
45201
45202
45203
45204
45205
45206
45207
45208
45209
45210
45211
45212
45213
45214
45215
45216
45217
45218
45219
45220
45221
45222
45223
45224
45225
45226
45227
45228
45229
45230
45231
45232
45233
45234
45235
45236
45237
45238
45239
45240
45241
45242
45243
45244
45245
45246
45247
45248
45249
45250
45251
45252
45253
45254
45255
45256
45257
45258
45259
45260
45261
45262
45263
45264
45265
45266
45267
45268
45269
45270
45271
45272
45273
45274
45275
45276
45277
45278
45279
45280
45281
45282
45283
45284
45285
45286
45287
45288
45289
45290
45291
45292
45293
45294
45295
45296
45297
45298
45299
45300
45301
45302
45303
45304
45305
45306
45307
45308
45309
45310
45311
45312
45313
45314
45315
45316
45317
45318
45319
45320
45321
45322
45323
45324
45325
45326
45327
45328
45329
45330
45331
45332
45333
45334
45335
45336
45337
45338
45339
45340
45341
45342
45343
45344
45345
45346
45347
45348
45349
45350
45351
45352
45353
45354
45355
45356
45357
45358
45359
45360
45361
45362
45363
45364
45365
45366
45367
45368
45369
45370
45371
45372
45373
45374
45375
45376
45377
45378
45379
45380
45381
45382
45383
45384
45385
45386
45387
45388
45389
45390
45391
45392
45393
45394
45395
45396
45397
45398
45399
45400
45401
45402
45403
45404
45405
45406
45407
45408
45409
45410
45411
45412
45413
45414
45415
45416
45417
45418
45419
45420
45421
45422
45423
45424
45425
45426
45427
45428
45429
45430
45431
45432
45433
45434
45435
45436
45437
45438
45439
45440
45441
45442
45443
45444
45445
45446
45447
45448
45449
45450
45451
45452
45453
45454
45455
45456
45457
45458
45459
45460
45461
45462
45463
45464
45465
45466
45467
45468
45469
45470
45471
45472
45473
45474
45475
45476
45477
45478
45479
45480
45481
45482
45483
45484
45485
45486
45487
45488
45489
45490
45491
45492
45493
45494
45495
45496
45497
45498
45499
45500
45501
45502
45503
45504
45505
45506
45507
45508
45509
45510
45511
45512
45513
45514
45515
45516
45517
45518
45519
45520
45521
45522
45523
45524
45525
45526
45527
45528
45529
45530
45531
45532
45533
45534
45535
45536
45537
45538
45539
45540
45541
45542
45543
45544
45545
45546
45547
45548
45549
45550
45551
45552
45553
45554
45555
45556
45557
45558
45559
45560
45561
45562
45563
45564
45565
45566
45567
45568
45569
45570
45571
45572
45573
45574
45575
45576
45577
45578
45579
45580
45581
45582
45583
45584
45585
45586
45587
45588
45589
45590
45591
45592
45593
45594
45595
45596
45597
45598
45599
45600
45601
45602
45603
45604
45605
45606
45607
45608
45609
45610
45611
45612
45613
45614
45615
45616
45617
45618
45619
45620
45621
45622
45623
45624
45625
45626
45627
45628
45629
45630
45631
45632
45633
45634
45635
45636
45637
45638
45639
45640
45641
45642
45643
45644
45645
45646
45647
45648
45649
45650
45651
45652
45653
45654
45655
45656
45657
45658
45659
45660
45661
45662
45663
45664
45665
45666
45667
45668
45669
45670
45671
45672
45673
45674
45675
45676
45677
45678
45679
45680
45681
45682
45683
45684
45685
45686
45687
45688
45689
45690
45691
45692
45693
45694
45695
45696
45697
45698
45699
45700
45701
45702
45703
45704
45705
45706
45707
45708
45709
45710
45711
45712
45713
45714
45715
45716
45717
45718
45719
45720
45721
45722
45723
45724
45725
45726
45727
45728
45729
45730
45731
45732
45733
45734
45735
45736
45737
45738
45739
45740
45741
45742
45743
45744
45745
45746
45747
45748
45749
45750
45751
45752
45753
45754
45755
45756
45757
45758
45759
45760
45761
45762
45763
45764
45765
45766
45767
45768
45769
45770
45771
45772
45773
45774
45775
45776
45777
45778
45779
45780
45781
45782
45783
45784
45785
45786
45787
45788
45789
45790
45791
45792
45793
45794
45795
45796
45797
45798
45799
45800
45801
45802
45803
45804
45805
45806
45807
45808
45809
45810
45811
45812
45813
45814
45815
45816
45817
45818
45819
45820
45821
45822
45823
45824
45825
45826
45827
45828
45829
45830
45831
45832
45833
45834
45835
45836
45837
45838
45839
45840
45841
45842
45843
45844
45845
45846
45847
45848
45849
45850
45851
45852
45853
45854
45855
45856
45857
45858
45859
45860
45861
45862
45863
45864
45865
45866
45867
45868
45869
45870
45871
45872
45873
45874
45875
45876
45877
45878
45879
45880
45881
45882
45883
45884
45885
45886
45887
45888
45889
45890
45891
45892
45893
45894
45895
45896
45897
45898
45899
45900
45901
45902
45903
45904
45905
45906
45907
45908
45909
45910
45911
45912
45913
45914
45915
45916
45917
45918
45919
45920
45921
45922
45923
45924
45925
45926
45927
45928
45929
45930
45931
45932
45933
45934
45935
45936
45937
45938
45939
45940
45941
45942
45943
45944
45945
45946
45947
45948
45949
45950
45951
45952
45953
45954
45955
45956
45957
45958
45959
45960
45961
45962
45963
45964
45965
45966
45967
45968
45969
45970
45971
45972
45973
45974
45975
45976
45977
45978
45979
45980
45981
45982
45983
45984
45985
45986
45987
45988
45989
45990
45991
45992
45993
45994
45995
45996
45997
45998
45999
46000
46001
46002
46003
46004
46005
46006
46007
46008
46009
46010
46011
46012
46013
46014
46015
46016
46017
46018
46019
46020
46021
46022
46023
46024
46025
46026
46027
46028
46029
46030
46031
46032
46033
46034
46035
46036
46037
46038
46039
46040
46041
46042
46043
46044
46045
46046
46047
46048
46049
46050
46051
46052
46053
46054
46055
46056
46057
46058
46059
46060
46061
46062
46063
46064
46065
46066
46067
46068
46069
46070
46071
46072
46073
46074
46075
46076
46077
46078
46079
46080
46081
46082
46083
46084
46085
46086
46087
46088
46089
46090
46091
46092
46093
46094
46095
46096
46097
46098
46099
46100
46101
46102
46103
46104
46105
46106
46107
46108
46109
46110
46111
46112
46113
46114
46115
46116
46117
46118
46119
46120
46121
46122
46123
46124
46125
46126
46127
46128
46129
46130
46131
46132
46133
46134
46135
46136
46137
46138
46139
46140
46141
46142
46143
46144
46145
46146
46147
46148
46149
46150
46151
46152
46153
46154
46155
46156
46157
46158
46159
46160
46161
46162
46163
46164
46165
46166
46167
46168
46169
46170
46171
46172
46173
46174
46175
46176
46177
46178
46179
46180
46181
46182
46183
46184
46185
46186
46187
46188
46189
46190
46191
46192
46193
46194
46195
46196
46197
46198
46199
46200
46201
46202
46203
46204
46205
46206
46207
46208
46209
46210
46211
46212
46213
46214
46215
46216
46217
46218
46219
46220
46221
46222
46223
46224
46225
46226
46227
46228
46229
46230
46231
46232
46233
46234
46235
46236
46237
46238
46239
46240
46241
46242
46243
46244
46245
46246
46247
46248
46249
46250
46251
46252
46253
46254
46255
46256
46257
46258
46259
46260
46261
46262
46263
46264
46265
46266
46267
46268
46269
46270
46271
46272
46273
46274
46275
46276
46277
46278
46279
46280
46281
46282
46283
46284
46285
46286
46287
46288
46289
46290
46291
46292
46293
46294
46295
46296
46297
46298
46299
46300
46301
46302
46303
46304
46305
46306
46307
46308
46309
46310
46311
46312
46313
46314
46315
46316
46317
46318
46319
46320
46321
46322
46323
46324
46325
46326
46327
46328
46329
46330
46331
46332
46333
46334
46335
46336
46337
46338
46339
46340
46341
46342
46343
46344
46345
46346
46347
46348
46349
46350
46351
46352
46353
46354
46355
46356
46357
46358
46359
46360
46361
46362
46363
46364
46365
46366
46367
46368
46369
46370
46371
46372
46373
46374
46375
46376
46377
46378
46379
46380
46381
46382
46383
46384
46385
46386
46387
46388
46389
46390
46391
46392
46393
46394
46395
46396
46397
46398
46399
46400
46401
46402
46403
46404
46405
46406
46407
46408
46409
46410
46411
46412
46413
46414
46415
46416
46417
46418
46419
46420
46421
46422
46423
46424
46425
46426
46427
46428
46429
46430
46431
46432
46433
46434
46435
46436
46437
46438
46439
46440
46441
46442
46443
46444
46445
46446
46447
46448
46449
46450
46451
46452
46453
46454
46455
46456
46457
46458
46459
46460
46461
46462
46463
46464
46465
46466
46467
46468
46469
46470
46471
46472
46473
46474
46475
46476
46477
46478
46479
46480
46481
46482
46483
46484
46485
46486
46487
46488
46489
46490
46491
46492
46493
46494
46495
46496
46497
46498
46499
46500
46501
46502
46503
46504
46505
46506
46507
46508
46509
46510
46511
46512
46513
46514
46515
46516
46517
46518
46519
46520
46521
46522
46523
46524
46525
46526
46527
46528
46529
46530
46531
46532
46533
46534
46535
46536
46537
46538
46539
46540
46541
46542
46543
46544
46545
46546
46547
46548
46549
46550
46551
46552
46553
46554
46555
46556
46557
46558
46559
46560
46561
46562
46563
46564
46565
46566
46567
46568
46569
46570
46571
46572
46573
46574
46575
46576
46577
46578
46579
46580
46581
46582
46583
46584
46585
46586
46587
46588
46589
46590
46591
46592
46593
46594
46595
46596
46597
46598
46599
46600
46601
46602
46603
46604
46605
46606
46607
46608
46609
46610
46611
46612
46613
46614
46615
46616
46617
46618
46619
46620
46621
46622
46623
46624
46625
46626
46627
46628
46629
46630
46631
46632
46633
46634
46635
46636
46637
46638
46639
46640
46641
46642
46643
46644
46645
46646
46647
46648
46649
46650
46651
46652
46653
46654
46655
46656
46657
46658
46659
46660
46661
46662
46663
46664
46665
46666
46667
46668
46669
46670
46671
46672
46673
46674
46675
46676
46677
46678
46679
46680
46681
46682
46683
46684
46685
46686
46687
46688
46689
46690
46691
46692
46693
46694
46695
46696
46697
46698
46699
46700
46701
46702
46703
46704
46705
46706
46707
46708
46709
46710
46711
46712
46713
46714
46715
46716
46717
46718
46719
46720
46721
46722
46723
46724
46725
46726
46727
46728
46729
46730
46731
46732
46733
46734
46735
46736
46737
46738
46739
46740
46741
46742
46743
46744
46745
46746
46747
46748
46749
46750
46751
46752
46753
46754
46755
46756
46757
46758
46759
46760
46761
46762
46763
46764
46765
46766
46767
46768
46769
46770
46771
46772
46773
46774
46775
46776
46777
46778
46779
46780
46781
46782
46783
46784
46785
46786
46787
46788
46789
46790
46791
46792
46793
46794
46795
46796
46797
46798
46799
46800
46801
46802
46803
46804
46805
46806
46807
46808
46809
46810
46811
46812
46813
46814
46815
46816
46817
46818
46819
46820
46821
46822
46823
46824
46825
46826
46827
46828
46829
46830
46831
46832
46833
46834
46835
46836
46837
46838
46839
46840
46841
46842
46843
46844
46845
46846
46847
46848
46849
46850
46851
46852
46853
46854
46855
46856
46857
46858
46859
46860
46861
46862
46863
46864
46865
46866
46867
46868
46869
46870
46871
46872
46873
46874
46875
46876
46877
46878
46879
46880
46881
46882
46883
46884
46885
46886
46887
46888
46889
46890
46891
46892
46893
46894
46895
46896
46897
46898
46899
46900
46901
46902
46903
46904
46905
46906
46907
46908
46909
46910
46911
46912
46913
46914
46915
46916
46917
46918
46919
46920
46921
46922
46923
46924
46925
46926
46927
46928
46929
46930
46931
46932
46933
46934
46935
46936
46937
46938
46939
46940
46941
46942
46943
46944
46945
46946
46947
46948
46949
46950
46951
46952
46953
46954
46955
46956
46957
46958
46959
46960
46961
46962
46963
46964
46965
46966
46967
46968
46969
46970
46971
46972
46973
46974
46975
46976
46977
46978
46979
46980
46981
46982
46983
46984
46985
46986
46987
46988
46989
46990
46991
46992
46993
46994
46995
46996
46997
46998
46999
47000
47001
47002
47003
47004
47005
47006
47007
47008
47009
47010
47011
47012
47013
47014
47015
47016
47017
47018
47019
47020
47021
47022
47023
47024
47025
47026
47027
47028
47029
47030
47031
47032
47033
47034
47035
47036
47037
47038
47039
47040
47041
47042
47043
47044
47045
47046
47047
47048
47049
47050
47051
47052
47053
47054
47055
47056
47057
47058
47059
47060
47061
47062
47063
47064
47065
47066
47067
47068
47069
47070
47071
47072
47073
47074
47075
47076
47077
47078
47079
47080
47081
47082
47083
47084
47085
47086
47087
47088
47089
47090
47091
47092
47093
47094
47095
47096
47097
47098
47099
47100
47101
47102
47103
47104
47105
47106
47107
47108
47109
47110
47111
47112
47113
47114
47115
47116
47117
47118
47119
47120
47121
47122
47123
47124
47125
47126
47127
47128
47129
47130
47131
47132
47133
47134
47135
47136
47137
47138
47139
47140
47141
47142
47143
47144
47145
47146
47147
47148
47149
47150
47151
47152
47153
47154
47155
47156
47157
47158
47159
47160
47161
47162
47163
47164
47165
47166
47167
47168
47169
47170
47171
47172
47173
47174
47175
47176
47177
47178
47179
47180
47181
47182
47183
47184
47185
47186
47187
47188
47189
47190
47191
47192
47193
47194
47195
47196
47197
47198
47199
47200
47201
47202
47203
47204
47205
47206
47207
47208
47209
47210
47211
47212
47213
47214
47215
47216
47217
47218
47219
47220
47221
47222
47223
47224
47225
47226
47227
47228
47229
47230
47231
47232
47233
47234
47235
47236
47237
47238
47239
47240
47241
47242
47243
47244
47245
47246
47247
47248
47249
47250
47251
47252
47253
47254
47255
47256
47257
47258
47259
47260
47261
47262
47263
47264
47265
47266
47267
47268
47269
47270
47271
47272
47273
47274
47275
47276
47277
47278
47279
47280
47281
47282
47283
47284
47285
47286
47287
47288
47289
47290
47291
47292
47293
47294
47295
47296
47297
47298
47299
47300
47301
47302
47303
47304
47305
47306
47307
47308
47309
47310
47311
47312
47313
47314
47315
47316
47317
47318
47319
47320
47321
47322
47323
47324
47325
47326
47327
47328
47329
47330
47331
47332
47333
47334
47335
47336
47337
47338
47339
47340
47341
47342
47343
47344
47345
47346
47347
47348
47349
47350
47351
47352
47353
47354
47355
47356
47357
47358
47359
47360
47361
47362
47363
47364
47365
47366
47367
47368
47369
47370
47371
47372
47373
47374
47375
47376
47377
47378
47379
47380
47381
47382
47383
47384
47385
47386
47387
47388
47389
47390
47391
47392
47393
47394
47395
47396
47397
47398
47399
47400
47401
47402
47403
47404
47405
47406
47407
47408
47409
47410
47411
47412
47413
47414
47415
47416
47417
47418
47419
47420
47421
47422
47423
47424
47425
47426
47427
47428
47429
47430
47431
47432
47433
47434
47435
47436
47437
47438
47439
47440
47441
47442
47443
47444
47445
47446
47447
47448
47449
47450
47451
47452
47453
47454
47455
47456
47457
47458
47459
47460
47461
47462
47463
47464
47465
47466
47467
47468
47469
47470
47471
47472
47473
47474
47475
47476
47477
47478
47479
47480
47481
47482
47483
47484
47485
47486
47487
47488
47489
47490
47491
47492
47493
47494
47495
47496
47497
47498
47499
47500
47501
47502
47503
47504
47505
47506
47507
47508
47509
47510
47511
47512
47513
47514
47515
47516
47517
47518
47519
47520
47521
47522
47523
47524
47525
47526
47527
47528
47529
47530
47531
47532
47533
47534
47535
47536
47537
47538
47539
47540
47541
47542
47543
47544
47545
47546
47547
47548
47549
47550
47551
47552
47553
47554
47555
47556
47557
47558
47559
47560
47561
47562
47563
47564
47565
47566
47567
47568
47569
47570
47571
47572
47573
47574
47575
47576
47577
47578
47579
47580
47581
47582
47583
47584
47585
47586
47587
47588
47589
47590
47591
47592
47593
47594
47595
47596
47597
47598
47599
47600
47601
47602
47603
47604
47605
47606
47607
47608
47609
47610
47611
47612
47613
47614
47615
47616
47617
47618
47619
47620
47621
47622
47623
47624
47625
47626
47627
47628
47629
47630
47631
47632
47633
47634
47635
47636
47637
47638
47639
47640
47641
47642
47643
47644
47645
47646
47647
47648
47649
47650
47651
47652
47653
47654
47655
47656
47657
47658
47659
47660
47661
47662
47663
47664
47665
47666
47667
47668
47669
47670
47671
47672
47673
47674
47675
47676
47677
47678
47679
47680
47681
47682
47683
47684
47685
47686
47687
47688
47689
47690
47691
47692
47693
47694
47695
47696
47697
47698
47699
47700
47701
47702
47703
47704
47705
47706
47707
47708
47709
47710
47711
47712
47713
47714
47715
47716
47717
47718
47719
47720
47721
47722
47723
47724
47725
47726
47727
47728
47729
47730
47731
47732
47733
47734
47735
47736
47737
47738
47739
47740
47741
47742
47743
47744
47745
47746
47747
47748
47749
47750
47751
47752
47753
47754
47755
47756
47757
47758
47759
47760
47761
47762
47763
47764
47765
47766
47767
47768
47769
47770
47771
47772
47773
47774
47775
47776
47777
47778
47779
47780
47781
47782
47783
47784
47785
47786
47787
47788
47789
47790
47791
47792
47793
47794
47795
47796
47797
47798
47799
47800
47801
47802
47803
47804
47805
47806
47807
47808
47809
47810
47811
47812
47813
47814
47815
47816
47817
47818
47819
47820
47821
47822
47823
47824
47825
47826
47827
47828
47829
47830
47831
47832
47833
47834
47835
47836
47837
47838
47839
47840
47841
47842
47843
47844
47845
47846
47847
47848
47849
47850
47851
47852
47853
47854
47855
47856
47857
47858
47859
47860
47861
47862
47863
47864
47865
47866
47867
47868
47869
47870
47871
47872
47873
47874
47875
47876
47877
47878
47879
47880
47881
47882
47883
47884
47885
47886
47887
47888
47889
47890
47891
47892
47893
47894
47895
47896
47897
47898
47899
47900
47901
47902
47903
47904
47905
47906
47907
47908
47909
47910
47911
47912
47913
47914
47915
47916
47917
47918
47919
47920
47921
47922
47923
47924
47925
47926
47927
47928
47929
47930
47931
47932
47933
47934
47935
47936
47937
47938
47939
47940
47941
47942
47943
47944
47945
47946
47947
47948
47949
47950
47951
47952
47953
47954
47955
47956
47957
47958
47959
47960
47961
47962
47963
47964
47965
47966
47967
47968
47969
47970
47971
47972
47973
47974
47975
47976
47977
47978
47979
47980
47981
47982
47983
47984
47985
47986
47987
47988
47989
47990
47991
47992
47993
47994
47995
47996
47997
47998
47999
48000
48001
48002
48003
48004
48005
48006
48007
48008
48009
48010
48011
48012
48013
48014
48015
48016
48017
48018
48019
48020
48021
48022
48023
48024
48025
48026
48027
48028
48029
48030
48031
48032
48033
48034
48035
48036
48037
48038
48039
48040
48041
48042
48043
48044
48045
48046
48047
48048
48049
48050
48051
48052
48053
48054
48055
48056
48057
48058
48059
48060
48061
48062
48063
48064
48065
48066
48067
48068
48069
48070
48071
48072
48073
48074
48075
48076
48077
48078
48079
48080
48081
48082
48083
48084
48085
48086
48087
48088
48089
48090
48091
48092
48093
48094
48095
48096
48097
48098
48099
48100
48101
48102
48103
48104
48105
48106
48107
48108
48109
48110
48111
48112
48113
48114
48115
48116
48117
48118
48119
48120
48121
48122
48123
48124
48125
48126
48127
48128
48129
48130
48131
48132
48133
48134
48135
48136
48137
48138
48139
48140
48141
48142
48143
48144
48145
48146
48147
48148
48149
48150
48151
48152
48153
48154
48155
48156
48157
48158
48159
48160
48161
48162
48163
48164
48165
48166
48167
48168
48169
48170
48171
48172
48173
48174
48175
48176
48177
48178
48179
48180
48181
48182
48183
48184
48185
48186
48187
48188
48189
48190
48191
48192
48193
48194
48195
48196
48197
48198
48199
48200
48201
48202
48203
48204
48205
48206
48207
48208
48209
48210
48211
48212
48213
48214
48215
48216
48217
48218
48219
48220
48221
48222
48223
48224
48225
48226
48227
48228
48229
48230
48231
48232
48233
48234
48235
48236
48237
48238
48239
48240
48241
48242
48243
48244
48245
48246
48247
48248
48249
48250
48251
48252
48253
48254
48255
48256
48257
48258
48259
48260
48261
48262
48263
48264
48265
48266
48267
48268
48269
48270
48271
48272
48273
48274
48275
48276
48277
48278
48279
48280
48281
48282
48283
48284
48285
48286
48287
48288
48289
48290
48291
48292
48293
48294
48295
48296
48297
48298
48299
48300
48301
48302
48303
48304
48305
48306
48307
48308
48309
48310
48311
48312
48313
48314
48315
48316
48317
48318
48319
48320
48321
48322
48323
48324
48325
48326
48327
48328
48329
48330
48331
48332
48333
48334
48335
48336
48337
48338
48339
48340
48341
48342
48343
48344
48345
48346
48347
48348
48349
48350
48351
48352
48353
48354
48355
48356
48357
48358
48359
48360
48361
48362
48363
48364
48365
48366
48367
48368
48369
48370
48371
48372
48373
48374
48375
48376
48377
48378
48379
48380
48381
48382
48383
48384
48385
48386
48387
48388
48389
48390
48391
48392
48393
48394
48395
48396
48397
48398
48399
48400
48401
48402
48403
48404
48405
48406
48407
48408
48409
48410
48411
48412
48413
48414
48415
48416
48417
48418
48419
48420
48421
48422
48423
48424
48425
48426
48427
48428
48429
48430
48431
48432
48433
48434
48435
48436
48437
48438
48439
48440
48441
48442
48443
48444
48445
48446
48447
48448
48449
48450
48451
48452
48453
48454
48455
48456
48457
48458
48459
48460
48461
48462
48463
48464
48465
48466
48467
48468
48469
48470
48471
48472
48473
48474
48475
48476
48477
48478
48479
48480
48481
48482
48483
48484
48485
48486
48487
48488
48489
48490
48491
48492
48493
48494
48495
48496
48497
48498
48499
48500
48501
48502
48503
48504
48505
48506
48507
48508
48509
48510
48511
48512
48513
48514
48515
48516
48517
48518
48519
48520
48521
48522
48523
48524
48525
48526
48527
48528
48529
48530
48531
48532
48533
48534
48535
48536
48537
48538
48539
48540
48541
48542
48543
48544
48545
48546
48547
48548
48549
48550
48551
48552
48553
48554
48555
48556
48557
48558
48559
48560
48561
48562
48563
48564
48565
48566
48567
48568
48569
48570
48571
48572
48573
48574
48575
48576
48577
48578
48579
48580
48581
48582
48583
48584
48585
48586
48587
48588
48589
48590
48591
48592
48593
48594
48595
48596
48597
48598
48599
48600
48601
48602
48603
48604
48605
48606
48607
48608
48609
48610
48611
48612
48613
48614
48615
48616
48617
48618
48619
48620
48621
48622
48623
48624
48625
48626
48627
48628
48629
48630
48631
48632
48633
48634
48635
48636
48637
48638
48639
48640
48641
48642
48643
48644
48645
48646
48647
48648
48649
48650
48651
48652
48653
48654
48655
48656
48657
48658
48659
48660
48661
48662
48663
48664
48665
48666
48667
48668
48669
48670
48671
48672
48673
48674
48675
48676
48677
48678
48679
48680
48681
48682
48683
48684
48685
48686
48687
48688
48689
48690
48691
48692
48693
48694
48695
48696
48697
48698
48699
48700
48701
48702
48703
48704
48705
48706
48707
48708
48709
48710
48711
48712
48713
48714
48715
48716
48717
48718
48719
48720
48721
48722
48723
48724
48725
48726
48727
48728
48729
48730
48731
48732
48733
48734
48735
48736
48737
48738
48739
48740
48741
48742
48743
48744
48745
48746
48747
48748
48749
48750
48751
48752
48753
48754
48755
48756
48757
48758
48759
48760
48761
48762
48763
48764
48765
48766
48767
48768
48769
48770
48771
48772
48773
48774
48775
48776
48777
48778
48779
48780
48781
48782
48783
48784
48785
48786
48787
48788
48789
48790
48791
48792
48793
48794
48795
48796
48797
48798
48799
48800
48801
48802
48803
48804
48805
48806
48807
48808
48809
48810
48811
48812
48813
48814
48815
48816
48817
48818
48819
48820
48821
48822
48823
48824
48825
48826
48827
48828
48829
48830
48831
48832
48833
48834
48835
48836
48837
48838
48839
48840
48841
48842
48843
48844
48845
48846
48847
48848
48849
48850
48851
48852
48853
48854
48855
48856
48857
48858
48859
48860
48861
48862
48863
48864
48865
48866
48867
48868
48869
48870
48871
48872
48873
48874
48875
48876
48877
48878
48879
48880
48881
48882
48883
48884
48885
48886
48887
48888
48889
48890
48891
48892
48893
48894
48895
48896
48897
48898
48899
48900
48901
48902
48903
48904
48905
48906
48907
48908
48909
48910
48911
48912
48913
48914
48915
48916
48917
48918
48919
48920
48921
48922
48923
48924
48925
48926
48927
48928
48929
48930
48931
48932
48933
48934
48935
48936
48937
48938
48939
48940
48941
48942
48943
48944
48945
48946
48947
48948
48949
48950
48951
48952
48953
48954
48955
48956
48957
48958
48959
48960
48961
48962
48963
48964
48965
48966
48967
48968
48969
48970
48971
48972
48973
48974
48975
48976
48977
48978
48979
48980
48981
48982
48983
48984
48985
48986
48987
48988
48989
48990
48991
48992
48993
48994
48995
48996
48997
48998
48999
49000
49001
49002
49003
49004
49005
49006
49007
49008
49009
49010
49011
49012
49013
49014
49015
49016
49017
49018
49019
49020
49021
49022
49023
49024
49025
49026
49027
49028
49029
49030
49031
49032
49033
49034
49035
49036
49037
49038
49039
49040
49041
49042
49043
49044
49045
49046
49047
49048
49049
49050
49051
49052
49053
49054
49055
49056
49057
49058
49059
49060
49061
49062
49063
49064
49065
49066
49067
49068
49069
49070
49071
49072
49073
49074
49075
49076
49077
49078
49079
49080
49081
49082
49083
49084
49085
49086
49087
49088
49089
49090
49091
49092
49093
49094
49095
49096
49097
49098
49099
49100
49101
49102
49103
49104
49105
49106
49107
49108
49109
49110
49111
49112
49113
49114
49115
49116
49117
49118
49119
49120
49121
49122
49123
49124
49125
49126
49127
49128
49129
49130
49131
49132
49133
49134
49135
49136
49137
49138
49139
49140
49141
49142
49143
49144
49145
49146
49147
49148
49149
49150
49151
49152
49153
49154
49155
49156
49157
49158
49159
49160
49161
49162
49163
49164
49165
49166
49167
49168
49169
49170
49171
49172
49173
49174
49175
49176
49177
49178
49179
49180
49181
49182
49183
49184
49185
49186
49187
49188
49189
49190
49191
49192
49193
49194
49195
49196
49197
49198
49199
49200
49201
49202
49203
49204
49205
49206
49207
49208
49209
49210
49211
49212
49213
49214
49215
49216
49217
49218
49219
49220
49221
49222
49223
49224
49225
49226
49227
49228
49229
49230
49231
49232
49233
49234
49235
49236
49237
49238
49239
49240
49241
49242
49243
49244
49245
49246
49247
49248
49249
49250
49251
49252
49253
49254
49255
49256
49257
49258
49259
49260
49261
49262
49263
49264
49265
49266
49267
49268
49269
49270
49271
49272
49273
49274
49275
49276
49277
49278
49279
49280
49281
49282
49283
49284
49285
49286
49287
49288
49289
49290
49291
49292
49293
49294
49295
49296
49297
49298
49299
49300
49301
49302
49303
49304
49305
49306
49307
49308
49309
49310
49311
49312
49313
49314
49315
49316
49317
49318
49319
49320
49321
49322
49323
49324
49325
49326
49327
49328
49329
49330
49331
49332
49333
49334
49335
49336
49337
49338
49339
49340
49341
49342
49343
49344
49345
49346
49347
49348
49349
49350
49351
49352
49353
49354
49355
49356
49357
49358
49359
49360
49361
49362
49363
49364
49365
49366
49367
49368
49369
49370
49371
49372
49373
49374
49375
49376
49377
49378
49379
49380
49381
49382
49383
49384
49385
49386
49387
49388
49389
49390
49391
49392
49393
49394
49395
49396
49397
49398
49399
49400
49401
49402
49403
49404
49405
49406
49407
49408
49409
49410
49411
49412
49413
49414
49415
49416
49417
49418
49419
49420
49421
49422
49423
49424
49425
49426
49427
49428
49429
49430
49431
49432
49433
49434
49435
49436
49437
49438
49439
49440
49441
49442
49443
49444
49445
49446
49447
49448
49449
49450
49451
49452
49453
49454
49455
49456
49457
49458
49459
49460
49461
49462
49463
49464
49465
49466
49467
49468
49469
49470
49471
49472
49473
49474
49475
49476
49477
49478
49479
49480
49481
49482
49483
49484
49485
49486
49487
49488
49489
49490
49491
49492
49493
49494
49495
49496
49497
49498
49499
49500
49501
49502
49503
49504
49505
49506
49507
49508
49509
49510
49511
49512
49513
49514
49515
49516
49517
49518
49519
49520
49521
49522
49523
49524
49525
49526
49527
49528
49529
49530
49531
49532
49533
49534
49535
49536
49537
49538
49539
49540
49541
49542
49543
49544
49545
49546
49547
49548
49549
49550
49551
49552
49553
49554
49555
49556
49557
49558
49559
49560
49561
49562
49563
49564
49565
49566
49567
49568
49569
49570
49571
49572
49573
49574
49575
49576
49577
49578
49579
49580
49581
49582
49583
49584
49585
49586
49587
49588
49589
49590
49591
49592
49593
49594
49595
49596
49597
49598
49599
49600
49601
49602
49603
49604
49605
49606
49607
49608
49609
49610
49611
49612
49613
49614
49615
49616
49617
49618
49619
49620
49621
49622
49623
49624
49625
49626
49627
49628
49629
49630
49631
49632
49633
49634
49635
49636
49637
49638
49639
49640
49641
49642
49643
49644
49645
49646
49647
49648
49649
49650
49651
49652
49653
49654
49655
49656
49657
49658
49659
49660
49661
49662
49663
49664
49665
49666
49667
49668
49669
49670
49671
49672
49673
49674
49675
49676
49677
49678
49679
49680
49681
49682
49683
49684
49685
49686
49687
49688
49689
49690
49691
49692
49693
49694
49695
49696
49697
49698
49699
49700
49701
49702
49703
49704
49705
49706
49707
49708
49709
49710
49711
49712
49713
49714
49715
49716
49717
49718
49719
49720
49721
49722
49723
49724
49725
49726
49727
49728
49729
49730
49731
49732
49733
49734
49735
49736
49737
49738
49739
49740
49741
49742
49743
49744
49745
49746
49747
49748
49749
49750
49751
49752
49753
49754
49755
49756
49757
49758
49759
49760
49761
49762
49763
49764
49765
49766
49767
49768
49769
49770
49771
49772
49773
49774
49775
49776
49777
49778
49779
49780
49781
49782
49783
49784
49785
49786
49787
49788
49789
49790
49791
49792
49793
49794
49795
49796
49797
49798
49799
49800
49801
49802
49803
49804
49805
49806
49807
49808
49809
49810
49811
49812
49813
49814
49815
49816
49817
49818
49819
49820
49821
49822
49823
49824
49825
49826
49827
49828
49829
49830
49831
49832
49833
49834
49835
49836
49837
49838
49839
49840
49841
49842
49843
49844
49845
49846
49847
49848
49849
49850
49851
49852
49853
49854
49855
49856
49857
49858
49859
49860
49861
49862
49863
49864
49865
49866
49867
49868
49869
49870
49871
49872
49873
49874
49875
49876
49877
49878
49879
49880
49881
49882
49883
49884
49885
49886
49887
49888
49889
49890
49891
49892
49893
49894
49895
49896
49897
49898
49899
49900
49901
49902
49903
49904
49905
49906
49907
49908
49909
49910
49911
49912
49913
49914
49915
49916
49917
49918
49919
49920
49921
49922
49923
49924
49925
49926
49927
49928
49929
49930
49931
49932
49933
49934
49935
49936
49937
49938
49939
49940
49941
49942
49943
49944
49945
49946
49947
49948
49949
49950
49951
49952
49953
49954
49955
49956
49957
49958
49959
49960
49961
49962
49963
49964
49965
49966
49967
49968
49969
49970
49971
49972
49973
49974
49975
49976
49977
49978
49979
49980
49981
49982
49983
49984
49985
49986
49987
49988
49989
49990
49991
49992
49993
49994
49995
49996
49997
49998
49999
50000
50001
50002
50003
50004
50005
50006
50007
50008
50009
50010
50011
50012
50013
50014
50015
50016
50017
50018
50019
50020
50021
50022
50023
50024
50025
50026
50027
50028
50029
50030
50031
50032
50033
50034
50035
50036
50037
50038
50039
50040
50041
50042
50043
50044
50045
50046
50047
50048
50049
50050
50051
50052
50053
50054
50055
50056
50057
50058
50059
50060
50061
50062
50063
50064
50065
50066
50067
50068
50069
50070
50071
50072
50073
50074
50075
50076
50077
50078
50079
50080
50081
50082
50083
50084
50085
50086
50087
50088
50089
50090
50091
50092
50093
50094
50095
50096
50097
50098
50099
50100
50101
50102
50103
50104
50105
50106
50107
50108
50109
50110
50111
50112
50113
50114
50115
50116
50117
50118
50119
50120
50121
50122
50123
50124
50125
50126
50127
50128
50129
50130
50131
50132
50133
50134
50135
50136
50137
50138
50139
50140
50141
50142
50143
50144
50145
50146
50147
50148
50149
50150
50151
50152
50153
50154
50155
50156
50157
50158
50159
50160
50161
50162
50163
50164
50165
50166
50167
50168
50169
50170
50171
50172
50173
50174
50175
50176
50177
50178
50179
50180
50181
50182
50183
50184
50185
50186
50187
50188
50189
50190
50191
50192
50193
50194
50195
50196
50197
50198
50199
50200
50201
50202
50203
50204
50205
50206
50207
50208
50209
50210
50211
50212
50213
50214
50215
50216
50217
50218
50219
50220
50221
50222
50223
50224
50225
50226
50227
50228
50229
50230
50231
50232
50233
50234
50235
50236
50237
50238
50239
50240
50241
50242
50243
50244
50245
50246
50247
50248
50249
50250
50251
50252
50253
50254
50255
50256
50257
50258
50259
50260
50261
50262
50263
50264
50265
50266
50267
50268
50269
50270
50271
50272
50273
50274
50275
50276
50277
50278
50279
50280
50281
50282
50283
50284
50285
50286
50287
50288
50289
50290
50291
50292
50293
50294
50295
50296
50297
50298
50299
50300
50301
50302
50303
50304
50305
50306
50307
50308
50309
50310
50311
50312
50313
50314
50315
50316
50317
50318
50319
50320
50321
50322
50323
50324
50325
50326
50327
50328
50329
50330
50331
50332
50333
50334
50335
50336
50337
50338
50339
50340
50341
50342
50343
50344
50345
50346
50347
50348
50349
50350
50351
50352
50353
50354
50355
50356
50357
50358
50359
50360
50361
50362
50363
50364
50365
50366
50367
50368
50369
50370
50371
50372
50373
50374
50375
50376
50377
50378
50379
50380
50381
50382
50383
50384
50385
50386
50387
50388
50389
50390
50391
50392
50393
50394
50395
50396
50397
50398
50399
50400
50401
50402
50403
50404
50405
50406
50407
50408
50409
50410
50411
50412
50413
50414
50415
50416
50417
50418
50419
50420
50421
50422
50423
50424
50425
50426
50427
50428
50429
50430
50431
50432
50433
50434
50435
50436
50437
50438
50439
50440
50441
50442
50443
50444
50445
50446
50447
50448
50449
50450
50451
50452
50453
50454
50455
50456
50457
50458
50459
50460
50461
50462
50463
50464
50465
50466
50467
50468
50469
50470
50471
50472
50473
50474
50475
50476
50477
50478
50479
50480
50481
50482
50483
50484
50485
50486
50487
50488
50489
50490
50491
50492
50493
50494
50495
50496
50497
50498
50499
50500
50501
50502
50503
50504
50505
50506
50507
50508
50509
50510
50511
50512
50513
50514
50515
50516
50517
50518
50519
50520
50521
50522
50523
50524
50525
50526
50527
50528
50529
50530
50531
50532
50533
50534
50535
50536
50537
50538
50539
50540
50541
50542
50543
50544
50545
50546
50547
50548
50549
50550
50551
50552
50553
50554
50555
50556
50557
50558
50559
50560
50561
50562
50563
50564
50565
50566
50567
50568
50569
50570
50571
50572
50573
50574
50575
50576
50577
50578
50579
50580
50581
50582
50583
50584
50585
50586
50587
50588
50589
50590
50591
50592
50593
50594
50595
50596
50597
50598
50599
50600
50601
50602
50603
50604
50605
50606
50607
50608
50609
50610
50611
50612
50613
50614
50615
50616
50617
50618
50619
50620
50621
50622
50623
50624
50625
50626
50627
50628
50629
50630
50631
50632
50633
50634
50635
50636
50637
50638
50639
50640
50641
50642
50643
50644
50645
50646
50647
50648
50649
50650
50651
50652
50653
50654
50655
50656
50657
50658
50659
50660
50661
50662
50663
50664
50665
50666
50667
50668
50669
50670
50671
50672
50673
50674
50675
50676
50677
50678
50679
50680
50681
50682
50683
50684
50685
50686
50687
50688
50689
50690
50691
50692
50693
50694
50695
50696
50697
50698
50699
50700
50701
50702
50703
50704
50705
50706
50707
50708
50709
50710
50711
50712
50713
50714
50715
50716
50717
50718
50719
50720
50721
50722
50723
50724
50725
50726
50727
50728
50729
50730
50731
50732
50733
50734
50735
50736
50737
50738
50739
50740
50741
50742
50743
50744
50745
50746
50747
50748
50749
50750
50751
50752
50753
50754
50755
50756
50757
50758
50759
50760
50761
50762
50763
50764
50765
50766
50767
50768
50769
50770
50771
50772
50773
50774
50775
50776
50777
50778
50779
50780
50781
50782
50783
50784
50785
50786
50787
50788
50789
50790
50791
50792
50793
50794
50795
50796
50797
50798
50799
50800
50801
50802
50803
50804
50805
50806
50807
50808
50809
50810
50811
50812
50813
50814
50815
50816
50817
50818
50819
50820
50821
50822
50823
50824
50825
50826
50827
50828
50829
50830
50831
50832
50833
50834
50835
50836
50837
50838
50839
50840
50841
50842
50843
50844
50845
50846
50847
50848
50849
50850
50851
50852
50853
50854
50855
50856
50857
50858
50859
50860
50861
50862
50863
50864
50865
50866
50867
50868
50869
50870
50871
50872
50873
50874
50875
50876
50877
50878
50879
50880
50881
50882
50883
50884
50885
50886
50887
50888
50889
50890
50891
50892
50893
50894
50895
50896
50897
50898
50899
50900
50901
50902
50903
50904
50905
50906
50907
50908
50909
50910
50911
50912
50913
50914
50915
50916
50917
50918
50919
50920
50921
50922
50923
50924
50925
50926
50927
50928
50929
50930
50931
50932
50933
50934
50935
50936
50937
50938
50939
50940
50941
50942
50943
50944
50945
50946
50947
50948
50949
50950
50951
50952
50953
50954
50955
50956
50957
50958
50959
50960
50961
50962
50963
50964
50965
50966
50967
50968
50969
50970
50971
50972
50973
50974
50975
50976
50977
50978
50979
50980
50981
50982
50983
50984
50985
50986
50987
50988
50989
50990
50991
50992
50993
50994
50995
50996
50997
50998
50999
51000
51001
51002
51003
51004
51005
51006
51007
51008
51009
51010
51011
51012
51013
51014
51015
51016
51017
51018
51019
51020
51021
51022
51023
51024
51025
51026
51027
51028
51029
51030
51031
51032
51033
51034
51035
51036
51037
51038
51039
51040
51041
51042
51043
51044
51045
51046
51047
51048
51049
51050
51051
51052
51053
51054
51055
51056
51057
51058
51059
51060
51061
51062
51063
51064
51065
51066
51067
51068
51069
51070
51071
51072
51073
51074
51075
51076
51077
51078
51079
51080
51081
51082
51083
51084
51085
51086
51087
51088
51089
51090
51091
51092
51093
51094
51095
51096
51097
51098
51099
51100
51101
51102
51103
51104
51105
51106
51107
51108
51109
51110
51111
51112
51113
51114
51115
51116
51117
51118
51119
51120
51121
51122
51123
51124
51125
51126
51127
51128
51129
51130
51131
51132
51133
51134
51135
51136
51137
51138
51139
51140
51141
51142
51143
51144
51145
51146
51147
51148
51149
51150
51151
51152
51153
51154
51155
51156
51157
51158
51159
51160
51161
51162
51163
51164
51165
51166
51167
51168
51169
51170
51171
51172
51173
51174
51175
51176
51177
51178
51179
51180
51181
51182
51183
51184
51185
51186
51187
51188
51189
51190
51191
51192
51193
51194
51195
51196
51197
51198
51199
51200
51201
51202
51203
51204
51205
51206
51207
51208
51209
51210
51211
51212
51213
51214
51215
51216
51217
51218
51219
51220
51221
51222
51223
51224
51225
51226
51227
51228
51229
51230
51231
51232
51233
51234
51235
51236
51237
51238
51239
51240
51241
51242
51243
51244
51245
51246
51247
51248
51249
51250
51251
51252
51253
51254
51255
51256
51257
51258
51259
51260
51261
51262
51263
51264
51265
51266
51267
51268
51269
51270
51271
51272
51273
51274
51275
51276
51277
51278
51279
51280
51281
51282
51283
51284
51285
51286
51287
51288
51289
51290
51291
51292
51293
51294
51295
51296
51297
51298
51299
51300
51301
51302
51303
51304
51305
51306
51307
51308
51309
51310
51311
51312
51313
51314
51315
51316
51317
51318
51319
51320
51321
51322
51323
51324
51325
51326
51327
51328
51329
51330
51331
51332
51333
51334
51335
51336
51337
51338
51339
51340
51341
51342
51343
51344
51345
51346
51347
51348
51349
51350
51351
51352
51353
51354
51355
51356
51357
51358
51359
51360
51361
51362
51363
51364
51365
51366
51367
51368
51369
51370
51371
51372
51373
51374
51375
51376
51377
51378
51379
51380
51381
51382
51383
51384
51385
51386
51387
51388
51389
51390
51391
51392
51393
51394
51395
51396
51397
51398
51399
51400
51401
51402
51403
51404
51405
51406
51407
51408
51409
51410
51411
51412
51413
51414
51415
51416
51417
51418
51419
51420
51421
51422
51423
51424
51425
51426
51427
51428
51429
51430
51431
51432
51433
51434
51435
51436
51437
51438
51439
51440
51441
51442
51443
51444
51445
51446
51447
51448
51449
51450
51451
51452
51453
51454
51455
51456
51457
51458
51459
51460
51461
51462
51463
51464
51465
51466
51467
51468
51469
51470
51471
51472
51473
51474
51475
51476
51477
51478
51479
51480
51481
51482
51483
51484
51485
51486
51487
51488
51489
51490
51491
51492
51493
51494
51495
51496
51497
51498
51499
51500
51501
51502
51503
51504
51505
51506
51507
51508
51509
51510
51511
51512
51513
51514
51515
51516
51517
51518
51519
51520
51521
51522
51523
51524
51525
51526
51527
51528
51529
51530
51531
51532
51533
51534
51535
51536
51537
51538
51539
51540
51541
51542
51543
51544
51545
51546
51547
51548
51549
51550
51551
51552
51553
51554
51555
51556
51557
51558
51559
51560
51561
51562
51563
51564
51565
51566
51567
51568
51569
51570
51571
51572
51573
51574
51575
51576
51577
51578
51579
51580
51581
51582
51583
51584
51585
51586
51587
51588
51589
51590
51591
51592
51593
51594
51595
51596
51597
51598
51599
51600
51601
51602
51603
51604
51605
51606
51607
51608
51609
51610
51611
51612
51613
51614
51615
51616
51617
51618
51619
51620
51621
51622
51623
51624
51625
51626
51627
51628
51629
51630
51631
51632
51633
51634
51635
51636
51637
51638
51639
51640
51641
51642
51643
51644
51645
51646
51647
51648
51649
51650
51651
51652
51653
51654
51655
51656
51657
51658
51659
51660
51661
51662
51663
51664
51665
51666
51667
51668
51669
51670
51671
51672
51673
51674
51675
51676
51677
51678
51679
51680
51681
51682
51683
51684
51685
51686
51687
51688
51689
51690
51691
51692
51693
51694
51695
51696
51697
51698
51699
51700
51701
51702
51703
51704
51705
51706
51707
51708
51709
51710
51711
51712
51713
51714
51715
51716
51717
51718
51719
51720
51721
51722
51723
51724
51725
51726
51727
51728
51729
51730
51731
51732
51733
51734
51735
51736
51737
51738
51739
51740
51741
51742
51743
51744
51745
51746
51747
51748
51749
51750
51751
51752
51753
51754
51755
51756
51757
51758
51759
51760
51761
51762
51763
51764
51765
51766
51767
51768
51769
51770
51771
51772
51773
51774
51775
51776
51777
51778
51779
51780
51781
51782
51783
51784
51785
51786
51787
51788
51789
51790
51791
51792
51793
51794
51795
51796
51797
51798
51799
51800
51801
51802
51803
51804
51805
51806
51807
51808
51809
51810
51811
51812
51813
51814
51815
51816
51817
51818
51819
51820
51821
51822
51823
51824
51825
51826
51827
51828
51829
51830
51831
51832
51833
51834
51835
51836
51837
51838
51839
51840
51841
51842
51843
51844
51845
51846
51847
51848
51849
51850
51851
51852
51853
51854
51855
51856
51857
51858
51859
51860
51861
51862
51863
51864
51865
51866
51867
51868
51869
51870
51871
51872
51873
51874
51875
51876
51877
51878
51879
51880
51881
51882
51883
51884
51885
51886
51887
51888
51889
51890
51891
51892
51893
51894
51895
51896
51897
51898
51899
51900
51901
51902
51903
51904
51905
51906
51907
51908
51909
51910
51911
51912
51913
51914
51915
51916
51917
51918
51919
51920
51921
51922
51923
51924
51925
51926
51927
51928
51929
51930
51931
51932
51933
51934
51935
51936
51937
51938
51939
51940
51941
51942
51943
51944
51945
51946
51947
51948
51949
51950
51951
51952
51953
51954
51955
51956
51957
51958
51959
51960
51961
51962
51963
51964
51965
51966
51967
51968
51969
51970
51971
51972
51973
51974
51975
51976
51977
51978
51979
51980
51981
51982
51983
51984
51985
51986
51987
51988
51989
51990
51991
51992
51993
51994
51995
51996
51997
51998
51999
52000
52001
52002
52003
52004
52005
52006
52007
52008
52009
52010
52011
52012
52013
52014
52015
52016
52017
52018
52019
52020
52021
52022
52023
52024
52025
52026
52027
52028
52029
52030
52031
52032
52033
52034
52035
52036
52037
52038
52039
52040
52041
52042
52043
52044
52045
52046
52047
52048
52049
52050
52051
52052
52053
52054
52055
52056
52057
52058
52059
52060
52061
52062
52063
52064
52065
52066
52067
52068
52069
52070
52071
52072
52073
52074
52075
52076
52077
52078
52079
52080
52081
52082
52083
52084
52085
52086
52087
52088
52089
52090
52091
52092
52093
52094
52095
52096
52097
52098
52099
52100
52101
52102
52103
52104
52105
52106
52107
52108
52109
52110
52111
52112
52113
52114
52115
52116
52117
52118
52119
52120
52121
52122
52123
52124
52125
52126
52127
52128
52129
52130
52131
52132
52133
52134
52135
52136
52137
52138
52139
52140
52141
52142
52143
52144
52145
52146
52147
52148
52149
52150
52151
52152
52153
52154
52155
52156
52157
52158
52159
52160
52161
52162
52163
52164
52165
52166
52167
52168
52169
52170
52171
52172
52173
52174
52175
52176
52177
52178
52179
52180
52181
52182
52183
52184
52185
52186
52187
52188
52189
52190
52191
52192
52193
52194
52195
52196
52197
52198
52199
52200
52201
52202
52203
52204
52205
52206
52207
52208
52209
52210
52211
52212
52213
52214
52215
52216
52217
52218
52219
52220
52221
52222
52223
52224
52225
52226
52227
52228
52229
52230
52231
52232
52233
52234
52235
52236
52237
52238
52239
52240
52241
52242
52243
52244
52245
52246
52247
52248
52249
52250
52251
52252
52253
52254
52255
52256
52257
52258
52259
52260
52261
52262
52263
52264
52265
52266
52267
52268
52269
52270
52271
52272
52273
52274
52275
52276
52277
52278
52279
52280
52281
52282
52283
52284
52285
52286
52287
52288
52289
52290
52291
52292
52293
52294
52295
52296
52297
52298
52299
52300
52301
52302
52303
52304
52305
52306
52307
52308
52309
52310
52311
52312
52313
52314
52315
52316
52317
52318
52319
52320
52321
52322
52323
52324
52325
52326
52327
52328
52329
52330
52331
52332
52333
52334
52335
52336
52337
52338
52339
52340
52341
52342
52343
52344
52345
52346
52347
52348
52349
52350
52351
52352
52353
52354
52355
52356
52357
52358
52359
52360
52361
52362
52363
52364
52365
52366
52367
52368
52369
52370
52371
52372
52373
52374
52375
52376
52377
52378
52379
52380
52381
52382
52383
52384
52385
52386
52387
52388
52389
52390
52391
52392
52393
52394
52395
52396
52397
52398
52399
52400
52401
52402
52403
52404
52405
52406
52407
52408
52409
52410
52411
52412
52413
52414
52415
52416
52417
52418
52419
52420
52421
52422
52423
52424
52425
52426
52427
52428
52429
52430
52431
52432
52433
52434
52435
52436
52437
52438
52439
52440
52441
52442
52443
52444
52445
52446
52447
52448
52449
52450
52451
52452
52453
52454
52455
52456
52457
52458
52459
52460
52461
52462
52463
52464
52465
52466
52467
52468
52469
52470
52471
52472
52473
52474
52475
52476
52477
52478
52479
52480
52481
52482
52483
52484
52485
52486
52487
52488
52489
52490
52491
52492
52493
52494
52495
52496
52497
52498
52499
52500
52501
52502
52503
52504
52505
52506
52507
52508
52509
52510
52511
52512
52513
52514
52515
52516
52517
52518
52519
52520
52521
52522
52523
52524
52525
52526
52527
52528
52529
52530
52531
52532
52533
52534
52535
52536
52537
52538
52539
52540
52541
52542
52543
52544
52545
52546
52547
52548
52549
52550
52551
52552
52553
52554
52555
52556
52557
52558
52559
52560
52561
52562
52563
52564
52565
52566
52567
52568
52569
52570
52571
52572
52573
52574
52575
52576
52577
52578
52579
52580
52581
52582
52583
52584
52585
52586
52587
52588
52589
52590
52591
52592
52593
52594
52595
52596
52597
52598
52599
52600
52601
52602
52603
52604
52605
52606
52607
52608
52609
52610
52611
52612
52613
52614
52615
52616
52617
52618
52619
52620
52621
52622
52623
52624
52625
52626
52627
52628
52629
52630
52631
52632
52633
52634
52635
52636
52637
52638
52639
52640
52641
52642
52643
52644
52645
52646
52647
52648
52649
52650
52651
52652
52653
52654
52655
52656
52657
52658
52659
52660
52661
52662
52663
52664
52665
52666
52667
52668
52669
52670
52671
52672
52673
52674
52675
52676
52677
52678
52679
52680
52681
52682
52683
52684
52685
52686
52687
52688
52689
52690
52691
52692
52693
52694
52695
52696
52697
52698
52699
52700
52701
52702
52703
52704
52705
52706
52707
52708
52709
52710
52711
52712
52713
52714
52715
52716
52717
52718
52719
52720
52721
52722
52723
52724
52725
52726
52727
52728
52729
52730
52731
52732
52733
52734
52735
52736
52737
52738
52739
52740
52741
52742
52743
52744
52745
52746
52747
52748
52749
52750
52751
52752
52753
52754
52755
52756
52757
52758
52759
52760
52761
52762
52763
52764
52765
52766
52767
52768
52769
52770
52771
52772
52773
52774
52775
52776
52777
52778
52779
52780
52781
52782
52783
52784
52785
52786
52787
52788
52789
52790
52791
52792
52793
52794
52795
52796
52797
52798
52799
52800
52801
52802
52803
52804
52805
52806
52807
52808
52809
52810
52811
52812
52813
52814
52815
52816
52817
52818
52819
52820
52821
52822
52823
52824
52825
52826
52827
52828
52829
52830
52831
52832
52833
52834
52835
52836
52837
52838
52839
52840
52841
52842
52843
52844
52845
52846
52847
52848
52849
52850
52851
52852
52853
52854
52855
52856
52857
52858
52859
52860
52861
52862
52863
52864
52865
52866
52867
52868
52869
52870
52871
52872
52873
52874
52875
52876
52877
52878
52879
52880
52881
52882
52883
52884
52885
52886
52887
52888
52889
52890
52891
52892
52893
52894
52895
52896
52897
52898
52899
52900
52901
52902
52903
52904
52905
52906
52907
52908
52909
52910
52911
52912
52913
52914
52915
52916
52917
52918
52919
52920
52921
52922
52923
52924
52925
52926
52927
52928
52929
52930
52931
52932
52933
52934
52935
52936
52937
52938
52939
52940
52941
52942
52943
52944
52945
52946
52947
52948
52949
52950
52951
52952
52953
52954
52955
52956
52957
52958
52959
52960
52961
52962
52963
52964
52965
52966
52967
52968
52969
52970
52971
52972
52973
52974
52975
52976
52977
52978
52979
52980
52981
52982
52983
52984
52985
52986
52987
52988
52989
52990
52991
52992
52993
52994
52995
52996
52997
52998
52999
53000
53001
53002
53003
53004
53005
53006
53007
53008
53009
53010
53011
53012
53013
53014
53015
53016
53017
53018
53019
53020
53021
53022
53023
53024
53025
53026
53027
53028
53029
53030
53031
53032
53033
53034
53035
53036
53037
53038
53039
53040
53041
53042
53043
53044
53045
53046
53047
53048
53049
53050
53051
53052
53053
53054
53055
53056
53057
53058
53059
53060
53061
53062
53063
53064
53065
53066
53067
53068
53069
53070
53071
53072
53073
53074
53075
53076
53077
53078
53079
53080
53081
53082
53083
53084
53085
53086
53087
53088
53089
53090
53091
53092
53093
53094
53095
53096
53097
53098
53099
53100
53101
53102
53103
53104
53105
53106
53107
53108
53109
53110
53111
53112
53113
53114
53115
53116
53117
53118
53119
53120
53121
53122
53123
53124
53125
53126
53127
53128
53129
53130
53131
53132
53133
53134
53135
53136
53137
53138
53139
53140
53141
53142
53143
53144
53145
53146
53147
53148
53149
53150
53151
53152
53153
53154
53155
53156
53157
53158
53159
53160
53161
53162
53163
53164
53165
53166
53167
53168
53169
53170
53171
53172
53173
53174
53175
53176
53177
53178
53179
53180
53181
53182
53183
53184
53185
53186
53187
53188
53189
53190
53191
53192
53193
53194
53195
53196
53197
53198
53199
53200
53201
53202
53203
53204
53205
53206
53207
53208
53209
53210
53211
53212
53213
53214
53215
53216
53217
53218
53219
53220
53221
53222
53223
53224
53225
53226
53227
53228
53229
53230
53231
53232
53233
53234
53235
53236
53237
53238
53239
53240
53241
53242
53243
53244
53245
53246
53247
53248
53249
53250
53251
53252
53253
53254
53255
53256
53257
53258
53259
53260
53261
53262
53263
53264
53265
53266
53267
53268
53269
53270
53271
53272
53273
53274
53275
53276
53277
53278
53279
53280
53281
53282
53283
53284
53285
53286
53287
53288
53289
53290
53291
53292
53293
53294
53295
53296
53297
53298
53299
53300
53301
53302
53303
53304
53305
53306
53307
53308
53309
53310
53311
53312
53313
53314
53315
53316
53317
53318
53319
53320
53321
53322
53323
53324
53325
53326
53327
53328
53329
53330
53331
53332
53333
53334
53335
53336
53337
53338
53339
53340
53341
53342
53343
53344
53345
53346
53347
53348
53349
53350
53351
53352
53353
53354
53355
53356
53357
53358
53359
53360
53361
53362
53363
53364
53365
53366
53367
53368
53369
53370
53371
53372
53373
53374
53375
53376
53377
53378
53379
53380
53381
53382
53383
53384
53385
53386
53387
53388
53389
53390
53391
53392
53393
53394
53395
53396
53397
53398
53399
53400
53401
53402
53403
53404
53405
53406
53407
53408
53409
53410
53411
53412
53413
53414
53415
53416
53417
53418
53419
53420
53421
53422
53423
53424
53425
53426
53427
53428
53429
53430
53431
53432
53433
53434
53435
53436
53437
53438
53439
53440
53441
53442
53443
53444
53445
53446
53447
53448
53449
53450
53451
53452
53453
53454
53455
53456
53457
53458
53459
53460
53461
53462
53463
53464
53465
53466
53467
53468
53469
53470
53471
53472
53473
53474
53475
53476
53477
53478
53479
53480
53481
53482
53483
53484
53485
53486
53487
53488
53489
53490
53491
53492
53493
53494
53495
53496
53497
53498
53499
53500
53501
53502
53503
53504
53505
53506
53507
53508
53509
53510
53511
53512
53513
53514
53515
53516
53517
53518
53519
53520
53521
53522
53523
53524
53525
53526
53527
53528
53529
53530
53531
53532
53533
53534
53535
53536
53537
53538
53539
53540
53541
53542
53543
53544
53545
53546
53547
53548
53549
53550
53551
53552
53553
53554
53555
53556
53557
53558
53559
53560
53561
53562
53563
53564
53565
53566
53567
53568
53569
53570
53571
53572
53573
53574
53575
53576
53577
53578
53579
53580
53581
53582
53583
53584
53585
53586
53587
53588
53589
53590
53591
53592
53593
53594
53595
53596
53597
53598
53599
53600
53601
53602
53603
53604
53605
53606
53607
53608
53609
53610
53611
53612
53613
53614
53615
53616
53617
53618
53619
53620
53621
53622
53623
53624
53625
53626
53627
53628
53629
53630
53631
53632
53633
53634
53635
53636
53637
53638
53639
53640
53641
53642
53643
53644
53645
53646
53647
53648
53649
53650
53651
53652
53653
53654
53655
53656
53657
53658
53659
53660
53661
53662
53663
53664
53665
53666
53667
53668
53669
53670
53671
53672
53673
53674
53675
53676
53677
53678
53679
53680
53681
53682
53683
53684
53685
53686
53687
53688
53689
53690
53691
53692
53693
53694
53695
53696
53697
53698
53699
53700
53701
53702
53703
53704
53705
53706
53707
53708
53709
53710
53711
53712
53713
53714
53715
53716
53717
53718
53719
53720
53721
53722
53723
53724
53725
53726
53727
53728
53729
53730
53731
53732
53733
53734
53735
53736
53737
53738
53739
53740
53741
53742
53743
53744
53745
53746
53747
53748
53749
53750
53751
53752
53753
53754
53755
53756
53757
53758
53759
53760
53761
53762
53763
53764
53765
53766
53767
53768
53769
53770
53771
53772
53773
53774
53775
53776
53777
53778
53779
53780
53781
53782
53783
53784
53785
53786
53787
53788
53789
53790
53791
53792
53793
53794
53795
53796
53797
53798
53799
53800
53801
53802
53803
53804
53805
53806
53807
53808
53809
53810
53811
53812
53813
53814
53815
53816
53817
53818
53819
53820
53821
53822
53823
53824
53825
53826
53827
53828
53829
53830
53831
53832
53833
53834
53835
53836
53837
53838
53839
53840
53841
53842
53843
53844
53845
53846
53847
53848
53849
53850
53851
53852
53853
53854
53855
53856
53857
53858
53859
53860
53861
53862
53863
53864
53865
53866
53867
53868
53869
53870
53871
53872
53873
53874
53875
53876
53877
53878
53879
53880
53881
53882
53883
53884
53885
53886
53887
53888
53889
53890
53891
53892
53893
53894
53895
53896
53897
53898
53899
53900
53901
53902
53903
53904
53905
53906
53907
53908
53909
53910
53911
53912
53913
53914
53915
53916
53917
53918
53919
53920
53921
53922
53923
53924
53925
53926
53927
53928
53929
53930
53931
53932
53933
53934
53935
53936
53937
53938
53939
53940
53941
53942
53943
53944
53945
53946
53947
53948
53949
53950
53951
53952
53953
53954
53955
53956
53957
53958
53959
53960
53961
53962
53963
53964
53965
53966
53967
53968
53969
53970
53971
53972
53973
53974
53975
53976
53977
53978
53979
53980
53981
53982
53983
53984
53985
53986
53987
53988
53989
53990
53991
53992
53993
53994
53995
53996
53997
53998
53999
54000
54001
54002
54003
54004
54005
54006
54007
54008
54009
54010
54011
54012
54013
54014
54015
54016
54017
54018
54019
54020
54021
54022
54023
54024
54025
54026
54027
54028
54029
54030
54031
54032
54033
54034
54035
54036
54037
54038
54039
54040
54041
54042
54043
54044
54045
54046
54047
54048
54049
54050
54051
54052
54053
54054
54055
54056
54057
54058
54059
54060
54061
54062
54063
54064
54065
54066
54067
54068
54069
54070
54071
54072
54073
54074
54075
54076
54077
54078
54079
54080
54081
54082
54083
54084
54085
54086
54087
54088
54089
54090
54091
54092
54093
54094
54095
54096
54097
54098
54099
54100
54101
54102
54103
54104
54105
54106
54107
54108
54109
54110
54111
54112
54113
54114
54115
54116
54117
54118
54119
54120
54121
54122
54123
54124
54125
54126
54127
54128
54129
54130
54131
54132
54133
54134
54135
54136
54137
54138
54139
54140
54141
54142
54143
54144
54145
54146
54147
54148
54149
54150
54151
54152
54153
54154
54155
54156
54157
54158
54159
54160
54161
54162
54163
54164
54165
54166
54167
54168
54169
54170
54171
54172
54173
54174
54175
54176
54177
54178
54179
54180
54181
54182
54183
54184
54185
54186
54187
54188
54189
54190
54191
54192
54193
54194
54195
54196
54197
54198
54199
54200
54201
54202
54203
54204
54205
54206
54207
54208
54209
54210
54211
54212
54213
54214
54215
54216
54217
54218
54219
54220
54221
54222
54223
54224
54225
54226
54227
54228
54229
54230
54231
54232
54233
54234
54235
54236
54237
54238
54239
54240
54241
54242
54243
54244
54245
54246
54247
54248
54249
54250
54251
54252
54253
54254
54255
54256
54257
54258
54259
54260
54261
54262
54263
54264
54265
54266
54267
54268
54269
54270
54271
54272
54273
54274
54275
54276
54277
54278
54279
54280
54281
54282
54283
54284
54285
54286
54287
54288
54289
54290
54291
54292
54293
54294
54295
54296
54297
54298
54299
54300
54301
54302
54303
54304
54305
54306
54307
54308
54309
54310
54311
54312
54313
54314
54315
54316
54317
54318
54319
54320
54321
54322
54323
54324
54325
54326
54327
54328
54329
54330
54331
54332
54333
54334
54335
54336
54337
54338
54339
54340
54341
54342
54343
54344
54345
54346
54347
54348
54349
54350
54351
54352
54353
54354
54355
54356
54357
54358
54359
54360
54361
54362
54363
54364
54365
54366
54367
54368
54369
54370
54371
54372
54373
54374
54375
54376
54377
54378
54379
54380
54381
54382
54383
54384
54385
54386
54387
54388
54389
54390
54391
54392
54393
54394
54395
54396
54397
54398
54399
54400
54401
54402
54403
54404
54405
54406
54407
54408
54409
54410
54411
54412
54413
54414
54415
54416
54417
54418
54419
54420
54421
54422
54423
54424
54425
54426
54427
54428
54429
54430
54431
54432
54433
54434
54435
54436
54437
54438
54439
54440
54441
54442
54443
54444
54445
54446
54447
54448
54449
54450
54451
54452
54453
54454
54455
54456
54457
54458
54459
54460
54461
54462
54463
54464
54465
54466
54467
54468
54469
54470
54471
54472
54473
54474
54475
54476
54477
54478
54479
54480
54481
54482
54483
54484
54485
54486
54487
54488
54489
54490
54491
54492
54493
54494
54495
54496
54497
54498
54499
54500
54501
54502
54503
54504
54505
54506
54507
54508
54509
54510
54511
54512
54513
54514
54515
54516
54517
54518
54519
54520
54521
54522
54523
54524
54525
54526
54527
54528
54529
54530
54531
54532
54533
54534
54535
54536
54537
54538
54539
54540
54541
54542
54543
54544
54545
54546
54547
54548
54549
54550
54551
54552
54553
54554
54555
54556
54557
54558
54559
54560
54561
54562
54563
54564
54565
54566
54567
54568
54569
54570
54571
54572
54573
54574
54575
54576
54577
54578
54579
54580
54581
54582
54583
54584
54585
54586
54587
54588
54589
54590
54591
54592
54593
54594
54595
54596
54597
54598
54599
54600
54601
54602
54603
54604
54605
54606
54607
54608
54609
54610
54611
54612
54613
54614
54615
54616
54617
54618
54619
54620
54621
54622
54623
54624
54625
54626
54627
54628
54629
54630
54631
54632
54633
54634
54635
54636
54637
54638
54639
54640
54641
54642
54643
54644
54645
54646
54647
54648
54649
54650
54651
54652
54653
54654
54655
54656
54657
54658
54659
54660
54661
54662
54663
54664
54665
54666
54667
54668
54669
54670
54671
54672
54673
54674
54675
54676
54677
54678
54679
54680
54681
54682
54683
54684
54685
54686
54687
54688
54689
54690
54691
54692
54693
54694
54695
54696
54697
54698
54699
54700
54701
54702
54703
54704
54705
54706
54707
54708
54709
54710
54711
54712
54713
54714
54715
54716
54717
54718
54719
54720
54721
54722
54723
54724
54725
54726
54727
54728
54729
54730
54731
54732
54733
54734
54735
54736
54737
54738
54739
54740
54741
54742
54743
54744
54745
54746
54747
54748
54749
54750
54751
54752
54753
54754
54755
54756
54757
54758
54759
54760
54761
54762
54763
54764
54765
54766
54767
54768
54769
54770
54771
54772
54773
54774
54775
54776
54777
54778
54779
54780
54781
54782
54783
54784
54785
54786
54787
54788
54789
54790
54791
54792
54793
54794
54795
54796
54797
54798
54799
54800
54801
54802
54803
54804
54805
54806
54807
54808
54809
54810
54811
54812
54813
54814
54815
54816
54817
54818
54819
54820
54821
54822
54823
54824
54825
54826
54827
54828
54829
54830
54831
54832
54833
54834
54835
54836
54837
54838
54839
54840
54841
54842
54843
54844
54845
54846
54847
54848
54849
54850
54851
54852
54853
54854
54855
54856
54857
54858
54859
54860
54861
54862
54863
54864
54865
54866
54867
54868
54869
54870
54871
54872
54873
54874
54875
54876
54877
54878
54879
54880
54881
54882
54883
54884
54885
54886
54887
54888
54889
54890
54891
54892
54893
54894
54895
54896
54897
54898
54899
54900
54901
54902
54903
54904
54905
54906
54907
54908
54909
54910
54911
54912
54913
54914
54915
54916
54917
54918
54919
54920
54921
54922
54923
54924
54925
54926
54927
54928
54929
54930
54931
54932
54933
54934
54935
54936
54937
54938
54939
54940
54941
54942
54943
54944
54945
54946
54947
54948
54949
54950
54951
54952
54953
54954
54955
54956
54957
54958
54959
54960
54961
54962
54963
54964
54965
54966
54967
54968
54969
54970
54971
54972
54973
54974
54975
54976
54977
54978
54979
54980
54981
54982
54983
54984
54985
54986
54987
54988
54989
54990
54991
54992
54993
54994
54995
54996
54997
54998
54999
55000
55001
55002
55003
55004
55005
55006
55007
55008
55009
55010
55011
55012
55013
55014
55015
55016
55017
55018
55019
55020
55021
55022
55023
55024
55025
55026
55027
55028
55029
55030
55031
55032
55033
55034
55035
55036
55037
55038
55039
55040
55041
55042
55043
55044
55045
55046
55047
55048
55049
55050
55051
55052
55053
55054
55055
55056
55057
55058
55059
55060
55061
55062
55063
55064
55065
55066
55067
55068
55069
55070
55071
55072
55073
55074
55075
55076
55077
55078
55079
55080
55081
55082
55083
55084
55085
55086
55087
55088
55089
55090
55091
55092
55093
55094
55095
55096
55097
55098
55099
55100
55101
55102
55103
55104
55105
55106
55107
55108
55109
55110
55111
55112
55113
55114
55115
55116
55117
55118
55119
55120
55121
55122
55123
55124
55125
55126
55127
55128
55129
55130
55131
55132
55133
55134
55135
55136
55137
55138
55139
55140
55141
55142
55143
55144
55145
55146
55147
55148
55149
55150
55151
55152
55153
55154
55155
55156
55157
55158
55159
55160
55161
55162
55163
55164
55165
55166
55167
55168
55169
55170
55171
55172
55173
55174
55175
55176
55177
55178
55179
55180
55181
55182
55183
55184
55185
55186
55187
55188
55189
55190
55191
55192
55193
55194
55195
55196
55197
55198
55199
55200
55201
55202
55203
55204
55205
55206
55207
55208
55209
55210
55211
55212
55213
55214
55215
55216
55217
55218
55219
55220
55221
55222
55223
55224
55225
55226
55227
55228
55229
55230
55231
55232
55233
55234
55235
55236
55237
55238
55239
55240
55241
55242
55243
55244
55245
55246
55247
55248
55249
55250
55251
55252
55253
55254
55255
55256
55257
55258
55259
55260
55261
55262
55263
55264
55265
55266
55267
55268
55269
55270
55271
55272
55273
55274
55275
55276
55277
55278
55279
55280
55281
55282
55283
55284
55285
55286
55287
55288
55289
55290
55291
55292
55293
55294
55295
55296
55297
55298
55299
55300
55301
55302
55303
55304
55305
55306
55307
55308
55309
55310
55311
55312
55313
55314
55315
55316
55317
55318
55319
55320
55321
55322
55323
55324
55325
55326
55327
55328
55329
55330
55331
55332
55333
55334
55335
55336
55337
55338
55339
55340
55341
55342
55343
55344
55345
55346
55347
55348
55349
55350
55351
55352
55353
55354
55355
55356
55357
55358
55359
55360
55361
55362
55363
55364
55365
55366
55367
55368
55369
55370
55371
55372
55373
55374
55375
55376
55377
55378
55379
55380
55381
55382
55383
55384
55385
55386
55387
55388
55389
55390
55391
55392
55393
55394
55395
55396
55397
55398
55399
55400
55401
55402
55403
55404
55405
55406
55407
55408
55409
55410
55411
55412
55413
55414
55415
55416
55417
55418
55419
55420
55421
55422
55423
55424
55425
55426
55427
55428
55429
55430
55431
55432
55433
55434
55435
55436
55437
55438
55439
55440
55441
55442
55443
55444
55445
55446
55447
55448
55449
55450
55451
55452
55453
55454
55455
55456
55457
55458
55459
55460
55461
55462
55463
55464
55465
55466
55467
55468
55469
55470
55471
55472
55473
55474
55475
55476
55477
55478
55479
55480
55481
55482
55483
55484
55485
55486
55487
55488
55489
55490
55491
55492
55493
55494
55495
55496
55497
55498
55499
55500
55501
55502
55503
55504
55505
55506
55507
55508
55509
55510
55511
55512
55513
55514
55515
55516
55517
55518
55519
55520
55521
55522
55523
55524
55525
55526
55527
55528
55529
55530
55531
55532
55533
55534
55535
55536
55537
55538
55539
55540
55541
55542
55543
55544
55545
55546
55547
55548
55549
55550
55551
55552
55553
55554
55555
55556
55557
55558
55559
55560
55561
55562
55563
55564
55565
55566
55567
55568
55569
55570
55571
55572
55573
55574
55575
55576
55577
55578
55579
55580
55581
55582
55583
55584
55585
55586
55587
55588
55589
55590
55591
55592
55593
55594
55595
55596
55597
55598
55599
55600
55601
55602
55603
55604
55605
55606
55607
55608
55609
55610
55611
55612
55613
55614
55615
55616
55617
55618
55619
55620
55621
55622
55623
55624
55625
55626
55627
55628
55629
55630
55631
55632
55633
55634
55635
55636
55637
55638
55639
55640
55641
55642
55643
55644
55645
55646
55647
55648
55649
55650
55651
55652
55653
55654
55655
55656
55657
55658
55659
55660
55661
55662
55663
55664
55665
55666
55667
55668
55669
55670
55671
55672
55673
55674
55675
55676
55677
55678
55679
55680
55681
55682
55683
55684
55685
55686
55687
55688
55689
55690
55691
55692
55693
55694
55695
55696
55697
55698
55699
55700
55701
55702
55703
55704
55705
55706
55707
55708
55709
55710
55711
55712
55713
55714
55715
55716
55717
55718
55719
55720
55721
55722
55723
55724
55725
55726
55727
55728
55729
55730
55731
55732
55733
55734
55735
55736
55737
55738
55739
55740
55741
55742
55743
55744
55745
55746
55747
55748
55749
55750
55751
55752
55753
55754
55755
55756
55757
55758
55759
55760
55761
55762
55763
55764
55765
55766
55767
55768
55769
55770
55771
55772
55773
55774
55775
55776
55777
55778
55779
55780
55781
55782
55783
55784
55785
55786
55787
55788
55789
55790
55791
55792
55793
55794
55795
55796
55797
55798
55799
55800
55801
55802
55803
55804
55805
55806
55807
55808
55809
55810
55811
55812
55813
55814
55815
55816
55817
55818
55819
55820
55821
55822
55823
55824
55825
55826
55827
55828
55829
55830
55831
55832
55833
55834
55835
55836
55837
55838
55839
55840
55841
55842
55843
55844
55845
55846
55847
55848
55849
55850
55851
55852
55853
55854
55855
55856
55857
55858
55859
55860
55861
55862
55863
55864
55865
55866
55867
55868
55869
55870
55871
55872
55873
55874
55875
55876
55877
55878
55879
55880
55881
55882
55883
55884
55885
55886
55887
55888
55889
55890
55891
55892
55893
55894
55895
55896
55897
55898
55899
55900
55901
55902
55903
55904
55905
55906
55907
55908
55909
55910
55911
55912
55913
55914
55915
55916
55917
55918
55919
55920
55921
55922
55923
55924
55925
55926
55927
55928
55929
55930
55931
55932
55933
55934
55935
55936
55937
55938
55939
55940
55941
55942
55943
55944
55945
55946
55947
55948
55949
55950
55951
55952
55953
55954
55955
55956
55957
55958
55959
55960
55961
55962
55963
55964
55965
55966
55967
55968
55969
55970
55971
55972
55973
55974
55975
55976
55977
55978
55979
55980
55981
55982
55983
55984
55985
55986
55987
55988
55989
55990
55991
55992
55993
55994
55995
55996
55997
55998
55999
56000
56001
56002
56003
56004
56005
56006
56007
56008
56009
56010
56011
56012
56013
56014
56015
56016
56017
56018
56019
56020
56021
56022
56023
56024
56025
56026
56027
56028
56029
56030
56031
56032
56033
56034
56035
56036
56037
56038
56039
56040
56041
56042
56043
56044
56045
56046
56047
56048
56049
56050
56051
56052
56053
56054
56055
56056
56057
56058
56059
56060
56061
56062
56063
56064
56065
56066
56067
56068
56069
56070
56071
56072
56073
56074
56075
56076
56077
56078
56079
56080
56081
56082
56083
56084
56085
56086
56087
56088
56089
56090
56091
56092
56093
56094
56095
56096
56097
56098
56099
56100
56101
56102
56103
56104
56105
56106
56107
56108
56109
56110
56111
56112
56113
56114
56115
56116
56117
56118
56119
56120
56121
56122
56123
56124
56125
56126
56127
56128
56129
56130
56131
56132
56133
56134
56135
56136
56137
56138
56139
56140
56141
56142
56143
56144
56145
56146
56147
56148
56149
56150
56151
56152
56153
56154
56155
56156
56157
56158
56159
56160
56161
56162
56163
56164
56165
56166
56167
56168
56169
56170
56171
56172
56173
56174
56175
56176
56177
56178
56179
56180
56181
56182
56183
56184
56185
56186
56187
56188
56189
56190
56191
56192
56193
56194
56195
56196
56197
56198
56199
56200
56201
56202
56203
56204
56205
56206
56207
56208
56209
56210
56211
56212
56213
56214
56215
56216
56217
56218
56219
56220
56221
56222
56223
56224
56225
56226
56227
56228
56229
56230
56231
56232
56233
56234
56235
56236
56237
56238
56239
56240
56241
56242
56243
56244
56245
56246
56247
56248
56249
56250
56251
56252
56253
56254
56255
56256
56257
56258
56259
56260
56261
56262
56263
56264
56265
56266
56267
56268
56269
56270
56271
56272
56273
56274
56275
56276
56277
56278
56279
56280
56281
56282
56283
56284
56285
56286
56287
56288
56289
56290
56291
56292
56293
56294
56295
56296
56297
56298
56299
56300
56301
56302
56303
56304
56305
56306
56307
56308
56309
56310
56311
56312
56313
56314
56315
56316
56317
56318
56319
56320
56321
56322
56323
56324
56325
56326
56327
56328
56329
56330
56331
56332
56333
56334
56335
56336
56337
56338
56339
56340
56341
56342
56343
56344
56345
56346
56347
56348
56349
56350
56351
56352
56353
56354
56355
56356
56357
56358
56359
56360
56361
56362
56363
56364
56365
56366
56367
56368
56369
56370
56371
56372
56373
56374
56375
56376
56377
56378
56379
56380
56381
56382
56383
56384
56385
56386
56387
56388
56389
56390
56391
56392
56393
56394
56395
56396
56397
56398
56399
56400
56401
56402
56403
56404
56405
56406
56407
56408
56409
56410
56411
56412
56413
56414
56415
56416
56417
56418
56419
56420
56421
56422
56423
56424
56425
56426
56427
56428
56429
56430
56431
56432
56433
56434
56435
56436
56437
56438
56439
56440
56441
56442
56443
56444
56445
56446
56447
56448
56449
56450
56451
56452
56453
56454
56455
56456
56457
56458
56459
56460
56461
56462
56463
56464
56465
56466
56467
56468
56469
56470
56471
56472
56473
56474
56475
56476
56477
56478
56479
56480
56481
56482
56483
56484
56485
56486
56487
56488
56489
56490
56491
56492
56493
56494
56495
56496
56497
56498
56499
56500
56501
56502
56503
56504
56505
56506
56507
56508
56509
56510
56511
56512
56513
56514
56515
56516
56517
56518
56519
56520
56521
56522
56523
56524
56525
56526
56527
56528
56529
56530
56531
56532
56533
56534
56535
56536
56537
56538
56539
56540
56541
56542
56543
56544
56545
56546
56547
56548
56549
56550
56551
56552
56553
56554
56555
56556
56557
56558
56559
56560
56561
56562
56563
56564
56565
56566
56567
56568
56569
56570
56571
56572
56573
56574
56575
56576
56577
56578
56579
56580
56581
56582
56583
56584
56585
56586
56587
56588
56589
56590
56591
56592
56593
56594
56595
56596
56597
56598
56599
56600
56601
56602
56603
56604
56605
56606
56607
56608
56609
56610
56611
56612
56613
56614
56615
56616
56617
56618
56619
56620
56621
56622
56623
56624
56625
56626
56627
56628
56629
56630
56631
56632
56633
56634
56635
56636
56637
56638
56639
56640
56641
56642
56643
56644
56645
56646
56647
56648
56649
56650
56651
56652
56653
56654
56655
56656
56657
56658
56659
56660
56661
56662
56663
56664
56665
56666
56667
56668
56669
56670
56671
56672
56673
56674
56675
56676
56677
56678
56679
56680
56681
56682
56683
56684
56685
56686
56687
56688
56689
56690
56691
56692
56693
56694
56695
56696
56697
56698
56699
56700
56701
56702
56703
56704
56705
56706
56707
56708
56709
56710
56711
56712
56713
56714
56715
56716
56717
56718
56719
56720
56721
56722
56723
56724
56725
56726
56727
56728
56729
56730
56731
56732
56733
56734
56735
56736
56737
56738
56739
56740
56741
56742
56743
56744
56745
56746
56747
56748
56749
56750
56751
56752
56753
56754
56755
56756
56757
56758
56759
56760
56761
56762
56763
56764
56765
56766
56767
56768
56769
56770
56771
56772
56773
56774
56775
56776
56777
56778
56779
56780
56781
56782
56783
56784
56785
56786
56787
56788
56789
56790
56791
56792
56793
56794
56795
56796
56797
56798
56799
56800
56801
56802
56803
56804
56805
56806
56807
56808
56809
56810
56811
56812
56813
56814
56815
56816
56817
56818
56819
56820
56821
56822
56823
56824
56825
56826
56827
56828
56829
56830
56831
56832
56833
56834
56835
56836
56837
56838
56839
56840
56841
56842
56843
56844
56845
56846
56847
56848
56849
56850
56851
56852
56853
56854
56855
56856
56857
56858
56859
56860
56861
56862
56863
56864
56865
56866
56867
56868
56869
56870
56871
56872
56873
56874
56875
56876
56877
56878
56879
56880
56881
56882
56883
56884
56885
56886
56887
56888
56889
56890
56891
56892
56893
56894
56895
56896
56897
56898
56899
56900
56901
56902
56903
56904
56905
56906
56907
56908
56909
56910
56911
56912
56913
56914
56915
56916
56917
56918
56919
56920
56921
56922
56923
56924
56925
56926
56927
56928
56929
56930
56931
56932
56933
56934
56935
56936
56937
56938
56939
56940
56941
56942
56943
56944
56945
56946
56947
56948
56949
56950
56951
56952
56953
56954
56955
56956
56957
56958
56959
56960
56961
56962
56963
56964
56965
56966
56967
56968
56969
56970
56971
56972
56973
56974
56975
56976
56977
56978
56979
56980
56981
56982
56983
56984
56985
56986
56987
56988
56989
56990
56991
56992
56993
56994
56995
56996
56997
56998
56999
57000
57001
57002
57003
57004
57005
57006
57007
57008
57009
57010
57011
57012
57013
57014
57015
57016
57017
57018
57019
57020
57021
57022
57023
57024
57025
57026
57027
57028
57029
57030
57031
57032
57033
57034
57035
57036
57037
57038
57039
57040
57041
57042
57043
57044
57045
57046
57047
57048
57049
57050
57051
57052
57053
57054
57055
57056
57057
57058
57059
57060
57061
57062
57063
57064
57065
57066
57067
57068
57069
57070
57071
57072
57073
57074
57075
57076
57077
57078
57079
57080
57081
57082
57083
57084
57085
57086
57087
57088
57089
57090
57091
57092
57093
57094
57095
57096
57097
57098
57099
57100
57101
57102
57103
57104
57105
57106
57107
57108
57109
57110
57111
57112
57113
57114
57115
57116
57117
57118
57119
57120
57121
57122
57123
57124
57125
57126
57127
57128
57129
57130
57131
57132
57133
57134
57135
57136
57137
57138
57139
57140
57141
57142
57143
57144
57145
57146
57147
57148
57149
57150
57151
57152
57153
57154
57155
57156
57157
57158
57159
57160
57161
57162
57163
57164
57165
57166
57167
57168
57169
57170
57171
57172
57173
57174
57175
57176
57177
57178
57179
57180
57181
57182
57183
57184
57185
57186
57187
57188
57189
57190
57191
57192
57193
57194
57195
57196
57197
57198
57199
57200
57201
57202
57203
57204
57205
57206
57207
57208
57209
57210
57211
57212
57213
57214
57215
57216
57217
57218
57219
57220
57221
57222
57223
57224
57225
57226
57227
57228
57229
57230
57231
57232
57233
57234
57235
57236
57237
57238
57239
57240
57241
57242
57243
57244
57245
57246
57247
57248
57249
57250
57251
57252
57253
57254
57255
57256
57257
57258
57259
57260
57261
57262
57263
57264
57265
57266
57267
57268
57269
57270
57271
57272
57273
57274
57275
57276
57277
57278
57279
57280
57281
57282
57283
57284
57285
57286
57287
57288
57289
57290
57291
57292
57293
57294
57295
57296
57297
57298
57299
57300
57301
57302
57303
57304
57305
57306
57307
57308
57309
57310
57311
57312
57313
57314
57315
57316
57317
57318
57319
57320
57321
57322
57323
57324
57325
57326
57327
57328
57329
57330
57331
57332
57333
57334
57335
57336
57337
57338
57339
57340
57341
57342
57343
57344
57345
57346
57347
57348
57349
57350
57351
57352
57353
57354
57355
57356
57357
57358
57359
57360
57361
57362
57363
57364
57365
57366
57367
57368
57369
57370
57371
57372
57373
57374
57375
57376
57377
57378
57379
57380
57381
57382
57383
57384
57385
57386
57387
57388
57389
57390
57391
57392
57393
57394
57395
57396
57397
57398
57399
57400
57401
57402
57403
57404
57405
57406
57407
57408
57409
57410
57411
57412
57413
57414
57415
57416
57417
57418
57419
57420
57421
57422
57423
57424
57425
57426
57427
57428
57429
57430
57431
57432
57433
57434
57435
57436
57437
57438
57439
57440
57441
57442
57443
57444
57445
57446
57447
57448
57449
57450
57451
57452
57453
57454
57455
57456
57457
57458
57459
57460
57461
57462
57463
57464
57465
57466
57467
57468
57469
57470
57471
57472
57473
57474
57475
57476
57477
57478
57479
57480
57481
57482
57483
57484
57485
57486
57487
57488
57489
57490
57491
57492
57493
57494
57495
57496
57497
57498
57499
57500
57501
57502
57503
57504
57505
57506
57507
57508
57509
57510
57511
57512
57513
57514
57515
57516
57517
57518
57519
57520
57521
57522
57523
57524
57525
57526
57527
57528
57529
57530
57531
57532
57533
57534
57535
57536
57537
57538
57539
57540
57541
57542
57543
57544
57545
57546
57547
57548
57549
57550
57551
57552
57553
57554
57555
57556
57557
57558
57559
57560
57561
57562
57563
57564
57565
57566
57567
57568
57569
57570
57571
57572
57573
57574
57575
57576
57577
57578
57579
57580
57581
57582
57583
57584
57585
57586
57587
57588
57589
57590
57591
57592
57593
57594
57595
57596
57597
57598
57599
57600
57601
57602
57603
57604
57605
57606
57607
57608
57609
57610
57611
57612
57613
57614
57615
57616
57617
57618
57619
57620
57621
57622
57623
57624
57625
57626
57627
57628
57629
57630
57631
57632
57633
57634
57635
57636
57637
57638
57639
57640
57641
57642
57643
57644
57645
57646
57647
57648
57649
57650
57651
57652
57653
57654
57655
57656
57657
57658
57659
57660
57661
57662
57663
57664
57665
57666
57667
57668
57669
57670
57671
57672
57673
57674
57675
57676
57677
57678
57679
57680
57681
57682
57683
57684
57685
57686
57687
57688
57689
57690
57691
57692
57693
57694
57695
57696
57697
57698
57699
57700
57701
57702
57703
57704
57705
57706
57707
57708
57709
57710
57711
57712
57713
57714
57715
57716
57717
57718
57719
57720
57721
57722
57723
57724
57725
57726
57727
57728
57729
57730
57731
57732
57733
57734
57735
57736
57737
57738
57739
57740
57741
57742
57743
57744
57745
57746
57747
57748
57749
57750
57751
57752
57753
57754
57755
57756
57757
57758
57759
57760
57761
57762
57763
57764
57765
57766
57767
57768
57769
57770
57771
57772
57773
57774
57775
57776
57777
57778
57779
57780
57781
57782
57783
57784
57785
57786
57787
57788
57789
57790
57791
57792
57793
57794
57795
57796
57797
57798
57799
57800
57801
57802
57803
57804
57805
57806
57807
57808
57809
57810
57811
57812
57813
57814
57815
57816
57817
57818
57819
57820
57821
57822
57823
57824
57825
57826
57827
57828
57829
57830
57831
57832
57833
57834
57835
57836
57837
57838
57839
57840
57841
57842
57843
57844
57845
57846
57847
57848
57849
57850
57851
57852
57853
57854
57855
57856
57857
57858
57859
57860
57861
57862
57863
57864
57865
57866
57867
57868
57869
57870
57871
57872
57873
57874
57875
57876
57877
57878
57879
57880
57881
57882
57883
57884
57885
57886
57887
57888
57889
57890
57891
57892
57893
57894
57895
57896
57897
57898
57899
57900
57901
57902
57903
57904
57905
57906
57907
57908
57909
57910
57911
57912
57913
57914
57915
57916
57917
57918
57919
57920
57921
57922
57923
57924
57925
57926
57927
57928
57929
57930
57931
57932
57933
57934
57935
57936
57937
57938
57939
57940
57941
57942
57943
57944
57945
57946
57947
57948
57949
57950
57951
57952
57953
57954
57955
57956
57957
57958
57959
57960
57961
57962
57963
57964
57965
57966
57967
57968
57969
57970
57971
57972
57973
57974
57975
57976
57977
57978
57979
57980
57981
57982
57983
57984
57985
57986
57987
57988
57989
57990
57991
57992
57993
57994
57995
57996
57997
57998
57999
58000
58001
58002
58003
58004
58005
58006
58007
58008
58009
58010
58011
58012
58013
58014
58015
58016
58017
58018
58019
58020
58021
58022
58023
58024
58025
58026
58027
58028
58029
58030
58031
58032
58033
58034
58035
58036
58037
58038
58039
58040
58041
58042
58043
58044
58045
58046
58047
58048
58049
58050
58051
58052
58053
58054
58055
58056
58057
58058
58059
58060
58061
58062
58063
58064
58065
58066
58067
58068
58069
58070
58071
58072
58073
58074
58075
58076
58077
58078
58079
58080
58081
58082
58083
58084
58085
58086
58087
58088
58089
58090
58091
58092
58093
58094
58095
58096
58097
58098
58099
58100
58101
58102
58103
58104
58105
58106
58107
58108
58109
58110
58111
58112
58113
58114
58115
58116
58117
58118
58119
58120
58121
58122
58123
58124
58125
58126
58127
58128
58129
58130
58131
58132
58133
58134
58135
58136
58137
58138
58139
58140
58141
58142
58143
58144
58145
58146
58147
58148
58149
58150
58151
58152
58153
58154
58155
58156
58157
58158
58159
58160
58161
58162
58163
58164
58165
58166
58167
58168
58169
58170
58171
58172
58173
58174
58175
58176
58177
58178
58179
58180
58181
58182
58183
58184
58185
58186
58187
58188
58189
58190
58191
58192
58193
58194
58195
58196
58197
58198
58199
58200
58201
58202
58203
58204
58205
58206
58207
58208
58209
58210
58211
58212
58213
58214
58215
58216
58217
58218
58219
58220
58221
58222
58223
58224
58225
58226
58227
58228
58229
58230
58231
58232
58233
58234
58235
58236
58237
58238
58239
58240
58241
58242
58243
58244
58245
58246
58247
58248
58249
58250
58251
58252
58253
58254
58255
58256
58257
58258
58259
58260
58261
58262
58263
58264
58265
58266
58267
58268
58269
58270
58271
58272
58273
58274
58275
58276
58277
58278
58279
58280
58281
58282
58283
58284
58285
58286
58287
58288
58289
58290
58291
58292
58293
58294
58295
58296
58297
58298
58299
58300
58301
58302
58303
58304
58305
58306
58307
58308
58309
58310
58311
58312
58313
58314
58315
58316
58317
58318
58319
58320
58321
58322
58323
58324
58325
58326
58327
58328
58329
58330
58331
58332
58333
58334
58335
58336
58337
58338
58339
58340
58341
58342
58343
58344
58345
58346
58347
58348
58349
58350
58351
58352
58353
58354
58355
58356
58357
58358
58359
58360
58361
58362
58363
58364
58365
58366
58367
58368
58369
58370
58371
58372
58373
58374
58375
58376
58377
58378
58379
58380
58381
58382
58383
58384
58385
58386
58387
58388
58389
58390
58391
58392
58393
58394
58395
58396
58397
58398
58399
58400
58401
58402
58403
58404
58405
58406
58407
58408
58409
58410
58411
58412
58413
58414
58415
58416
58417
58418
58419
58420
58421
58422
58423
58424
58425
58426
58427
58428
58429
58430
58431
58432
58433
58434
58435
58436
58437
58438
58439
58440
58441
58442
58443
58444
58445
58446
58447
58448
58449
58450
58451
58452
58453
58454
58455
58456
58457
58458
58459
58460
58461
58462
58463
58464
58465
58466
58467
58468
58469
58470
58471
58472
58473
58474
58475
58476
58477
58478
58479
58480
58481
58482
58483
58484
58485
58486
58487
58488
58489
58490
58491
58492
58493
58494
58495
58496
58497
58498
58499
58500
58501
58502
58503
58504
58505
58506
58507
58508
58509
58510
58511
58512
58513
58514
58515
58516
58517
58518
58519
58520
58521
58522
58523
58524
58525
58526
58527
58528
58529
58530
58531
58532
58533
58534
58535
58536
58537
58538
58539
58540
58541
58542
58543
58544
58545
58546
58547
58548
58549
58550
58551
58552
58553
58554
58555
58556
58557
58558
58559
58560
58561
58562
58563
58564
58565
58566
58567
58568
58569
58570
58571
58572
58573
58574
58575
58576
58577
58578
58579
58580
58581
58582
58583
58584
58585
58586
58587
58588
58589
58590
58591
58592
58593
58594
58595
58596
58597
58598
58599
58600
58601
58602
58603
58604
58605
58606
58607
58608
58609
58610
58611
58612
58613
58614
58615
58616
58617
58618
58619
58620
58621
58622
58623
58624
58625
58626
58627
58628
58629
58630
58631
58632
58633
58634
58635
58636
58637
58638
58639
58640
58641
58642
58643
58644
58645
58646
58647
58648
58649
58650
58651
58652
58653
58654
58655
58656
58657
58658
58659
58660
58661
58662
58663
58664
58665
58666
58667
58668
58669
58670
58671
58672
58673
58674
58675
58676
58677
58678
58679
58680
58681
58682
58683
58684
58685
58686
58687
58688
58689
58690
58691
58692
58693
58694
58695
58696
58697
58698
58699
58700
58701
58702
58703
58704
58705
58706
58707
58708
58709
58710
58711
58712
58713
58714
58715
58716
58717
58718
58719
58720
58721
58722
58723
58724
58725
58726
58727
58728
58729
58730
58731
58732
58733
58734
58735
58736
58737
58738
58739
58740
58741
58742
58743
58744
58745
58746
58747
58748
58749
58750
58751
58752
58753
58754
58755
58756
58757
58758
58759
58760
58761
58762
58763
58764
58765
58766
58767
58768
58769
58770
58771
58772
58773
58774
58775
58776
58777
58778
58779
58780
58781
58782
58783
58784
58785
58786
58787
58788
58789
58790
58791
58792
58793
58794
58795
58796
58797
58798
58799
58800
58801
58802
58803
58804
58805
58806
58807
58808
58809
58810
58811
58812
58813
58814
58815
58816
58817
58818
58819
58820
58821
58822
58823
58824
58825
58826
58827
58828
58829
58830
58831
58832
58833
58834
58835
58836
58837
58838
58839
58840
58841
58842
58843
58844
58845
58846
58847
58848
58849
58850
58851
58852
58853
58854
58855
58856
58857
58858
58859
58860
58861
58862
58863
58864
58865
58866
58867
58868
58869
58870
58871
58872
58873
58874
58875
58876
58877
58878
58879
58880
58881
58882
58883
58884
58885
58886
58887
58888
58889
58890
58891
58892
58893
58894
58895
58896
58897
58898
58899
58900
58901
58902
58903
58904
58905
58906
58907
58908
58909
58910
58911
58912
58913
58914
58915
58916
58917
58918
58919
58920
58921
58922
58923
58924
58925
58926
58927
58928
58929
58930
58931
58932
58933
58934
58935
58936
58937
58938
58939
58940
58941
58942
58943
58944
58945
58946
58947
58948
58949
58950
58951
58952
58953
58954
58955
58956
58957
58958
58959
58960
58961
58962
58963
58964
58965
58966
58967
58968
58969
58970
58971
58972
58973
58974
58975
58976
58977
58978
58979
58980
58981
58982
58983
58984
58985
58986
58987
58988
58989
58990
58991
58992
58993
58994
58995
58996
58997
58998
58999
59000
59001
59002
59003
59004
59005
59006
59007
59008
59009
59010
59011
59012
59013
59014
59015
59016
59017
59018
59019
59020
59021
59022
59023
59024
59025
59026
59027
59028
59029
59030
59031
59032
59033
59034
59035
59036
59037
59038
59039
59040
59041
59042
59043
59044
59045
59046
59047
59048
59049
59050
59051
59052
59053
59054
59055
59056
59057
59058
59059
59060
59061
59062
59063
59064
59065
59066
59067
59068
59069
59070
59071
59072
59073
59074
59075
59076
59077
59078
59079
59080
59081
59082
59083
59084
59085
59086
59087
59088
59089
59090
59091
59092
59093
59094
59095
59096
59097
59098
59099
59100
59101
59102
59103
59104
59105
59106
59107
59108
59109
59110
59111
59112
59113
59114
59115
59116
59117
59118
59119
59120
59121
59122
59123
59124
59125
59126
59127
59128
59129
59130
59131
59132
59133
59134
59135
59136
59137
59138
59139
59140
59141
59142
59143
59144
59145
59146
59147
59148
59149
59150
59151
59152
59153
59154
59155
59156
59157
59158
59159
59160
59161
59162
59163
59164
59165
59166
59167
59168
59169
59170
59171
59172
59173
59174
59175
59176
59177
59178
59179
59180
59181
59182
59183
59184
59185
59186
59187
59188
59189
59190
59191
59192
59193
59194
59195
59196
59197
59198
59199
59200
59201
59202
59203
59204
59205
59206
59207
59208
59209
59210
59211
59212
59213
59214
59215
59216
59217
59218
59219
59220
59221
59222
59223
59224
59225
59226
59227
59228
59229
59230
59231
59232
59233
59234
59235
59236
59237
59238
59239
59240
59241
59242
59243
59244
59245
59246
59247
59248
59249
59250
59251
59252
59253
59254
59255
59256
59257
59258
59259
59260
59261
59262
59263
59264
59265
59266
59267
59268
59269
59270
59271
59272
59273
59274
59275
59276
59277
59278
59279
59280
59281
59282
59283
59284
59285
59286
59287
59288
59289
59290
59291
59292
59293
59294
59295
59296
59297
59298
59299
59300
59301
59302
59303
59304
59305
59306
59307
59308
59309
59310
59311
59312
59313
59314
59315
59316
59317
59318
59319
59320
59321
59322
59323
59324
59325
59326
59327
59328
59329
59330
59331
59332
59333
59334
59335
59336
59337
59338
59339
59340
59341
59342
59343
59344
59345
59346
59347
59348
59349
59350
59351
59352
59353
59354
59355
59356
59357
59358
59359
59360
59361
59362
59363
59364
59365
59366
59367
59368
59369
59370
59371
59372
59373
59374
59375
59376
59377
59378
59379
59380
59381
59382
59383
59384
59385
59386
59387
59388
59389
59390
59391
59392
59393
59394
59395
59396
59397
59398
59399
59400
59401
59402
59403
59404
59405
59406
59407
59408
59409
59410
59411
59412
59413
59414
59415
59416
59417
59418
59419
59420
59421
59422
59423
59424
59425
59426
59427
59428
59429
59430
59431
59432
59433
59434
59435
59436
59437
59438
59439
59440
59441
59442
59443
59444
59445
59446
59447
59448
59449
59450
59451
59452
59453
59454
59455
59456
59457
59458
59459
59460
59461
59462
59463
59464
59465
59466
59467
59468
59469
59470
59471
59472
59473
59474
59475
59476
59477
59478
59479
59480
59481
59482
59483
59484
59485
59486
59487
59488
59489
59490
59491
59492
59493
59494
59495
59496
59497
59498
59499
59500
59501
59502
59503
59504
59505
59506
59507
59508
59509
59510
59511
59512
59513
59514
59515
59516
59517
59518
59519
59520
59521
59522
59523
59524
59525
59526
59527
59528
59529
59530
59531
59532
59533
59534
59535
59536
59537
59538
59539
59540
59541
59542
59543
59544
59545
59546
59547
59548
59549
59550
59551
59552
59553
59554
59555
59556
59557
59558
59559
59560
59561
59562
59563
59564
59565
59566
59567
59568
59569
59570
59571
59572
59573
59574
59575
59576
59577
59578
59579
59580
59581
59582
59583
59584
59585
59586
59587
59588
59589
59590
59591
59592
59593
59594
59595
59596
59597
59598
59599
59600
59601
59602
59603
59604
59605
59606
59607
59608
59609
59610
59611
59612
59613
59614
59615
59616
59617
59618
59619
59620
59621
59622
59623
59624
59625
59626
59627
59628
59629
59630
59631
59632
59633
59634
59635
59636
59637
59638
59639
59640
59641
59642
59643
59644
59645
59646
59647
59648
59649
59650
59651
59652
59653
59654
59655
59656
59657
59658
59659
59660
59661
59662
59663
59664
59665
59666
59667
59668
59669
59670
59671
59672
59673
59674
59675
59676
59677
59678
59679
59680
59681
59682
59683
59684
59685
59686
59687
59688
59689
59690
59691
59692
59693
59694
59695
59696
59697
59698
59699
59700
59701
59702
59703
59704
59705
59706
59707
59708
59709
59710
59711
59712
59713
59714
59715
59716
59717
59718
59719
59720
59721
59722
59723
59724
59725
59726
59727
59728
59729
59730
59731
59732
59733
59734
59735
59736
59737
59738
59739
59740
59741
59742
59743
59744
59745
59746
59747
59748
59749
59750
59751
59752
59753
59754
59755
59756
59757
59758
59759
59760
59761
59762
59763
59764
59765
59766
59767
59768
59769
59770
59771
59772
59773
59774
59775
59776
59777
59778
59779
59780
59781
59782
59783
59784
59785
59786
59787
59788
59789
59790
59791
59792
59793
59794
59795
59796
59797
59798
59799
59800
59801
59802
59803
59804
59805
59806
59807
59808
59809
59810
59811
59812
59813
59814
59815
59816
59817
59818
59819
59820
59821
59822
59823
59824
59825
59826
59827
59828
59829
59830
59831
59832
59833
59834
59835
59836
59837
59838
59839
59840
59841
59842
59843
59844
59845
59846
59847
59848
59849
59850
59851
59852
59853
59854
59855
59856
59857
59858
59859
59860
59861
59862
59863
59864
59865
59866
59867
59868
59869
59870
59871
59872
59873
59874
59875
59876
59877
59878
59879
59880
59881
59882
59883
59884
59885
59886
59887
59888
59889
59890
59891
59892
59893
59894
59895
59896
59897
59898
59899
59900
59901
59902
59903
59904
59905
59906
59907
59908
59909
59910
59911
59912
59913
59914
59915
59916
59917
59918
59919
59920
59921
59922
59923
59924
59925
59926
59927
59928
59929
59930
59931
59932
59933
59934
59935
59936
59937
59938
59939
59940
59941
59942
59943
59944
59945
59946
59947
59948
59949
59950
59951
59952
59953
59954
59955
59956
59957
59958
59959
59960
59961
59962
59963
59964
59965
59966
59967
59968
59969
59970
59971
59972
59973
59974
59975
59976
59977
59978
59979
59980
59981
59982
59983
59984
59985
59986
59987
59988
59989
59990
59991
59992
59993
59994
59995
59996
59997
59998
59999
60000
60001
60002
60003
60004
60005
60006
60007
60008
60009
60010
60011
60012
60013
60014
60015
60016
60017
60018
60019
60020
60021
60022
60023
60024
60025
60026
60027
60028
60029
60030
60031
60032
60033
60034
60035
60036
60037
60038
60039
60040
60041
60042
60043
60044
60045
60046
60047
60048
60049
60050
60051
60052
60053
60054
60055
60056
60057
60058
60059
60060
60061
60062
60063
60064
60065
60066
60067
60068
60069
60070
60071
60072
60073
60074
60075
60076
60077
60078
60079
60080
60081
60082
60083
60084
60085
60086
60087
60088
60089
60090
60091
60092
60093
60094
60095
60096
60097
60098
60099
60100
60101
60102
60103
60104
60105
60106
60107
60108
60109
60110
60111
60112
60113
60114
60115
60116
60117
60118
60119
60120
60121
60122
60123
60124
60125
60126
60127
60128
60129
60130
60131
60132
60133
60134
60135
60136
60137
60138
60139
60140
60141
60142
60143
60144
60145
60146
60147
60148
60149
60150
60151
60152
60153
60154
60155
60156
60157
60158
60159
60160
60161
60162
60163
60164
60165
60166
60167
60168
60169
60170
60171
60172
60173
60174
60175
60176
60177
60178
60179
60180
60181
60182
60183
60184
60185
60186
60187
60188
60189
60190
60191
60192
60193
60194
60195
60196
60197
60198
60199
60200
60201
60202
60203
60204
60205
60206
60207
60208
60209
60210
60211
60212
60213
60214
60215
60216
60217
60218
60219
60220
60221
60222
60223
60224
60225
60226
60227
60228
60229
60230
60231
60232
60233
60234
60235
60236
60237
60238
60239
60240
60241
60242
60243
60244
60245
60246
60247
60248
60249
60250
60251
60252
60253
60254
60255
60256
60257
60258
60259
60260
60261
60262
60263
60264
60265
60266
60267
60268
60269
60270
60271
60272
60273
60274
60275
60276
60277
60278
60279
60280
60281
60282
60283
60284
60285
60286
60287
60288
60289
60290
60291
60292
60293
60294
60295
60296
60297
60298
60299
60300
60301
60302
60303
60304
60305
60306
60307
60308
60309
60310
60311
60312
60313
60314
60315
60316
60317
60318
60319
60320
60321
60322
60323
60324
60325
60326
60327
60328
60329
60330
60331
60332
60333
60334
60335
60336
60337
60338
60339
60340
60341
60342
60343
60344
60345
60346
60347
60348
60349
60350
60351
60352
60353
60354
60355
60356
60357
60358
60359
60360
60361
60362
60363
60364
60365
60366
60367
60368
60369
60370
60371
60372
60373
60374
60375
60376
60377
60378
60379
60380
60381
60382
60383
60384
60385
60386
60387
60388
60389
60390
60391
60392
60393
60394
60395
60396
60397
60398
60399
60400
60401
60402
60403
60404
60405
60406
60407
60408
60409
60410
60411
60412
60413
60414
60415
60416
60417
60418
60419
60420
60421
60422
60423
60424
60425
60426
60427
60428
60429
60430
60431
60432
60433
60434
60435
60436
60437
60438
60439
60440
60441
60442
60443
60444
60445
60446
60447
60448
60449
60450
60451
60452
60453
60454
60455
60456
60457
60458
60459
60460
60461
60462
60463
60464
60465
60466
60467
60468
60469
60470
60471
60472
60473
60474
60475
60476
60477
60478
60479
60480
60481
60482
60483
60484
60485
60486
60487
60488
60489
60490
60491
60492
60493
60494
60495
60496
60497
60498
60499
60500
60501
60502
60503
60504
60505
60506
60507
60508
60509
60510
60511
60512
60513
60514
60515
60516
60517
60518
60519
60520
60521
60522
60523
60524
60525
60526
60527
60528
60529
60530
60531
60532
60533
60534
60535
60536
60537
60538
60539
60540
60541
60542
60543
60544
60545
60546
60547
60548
60549
60550
60551
60552
60553
60554
60555
60556
60557
60558
60559
60560
60561
60562
60563
60564
60565
60566
60567
60568
60569
60570
60571
60572
60573
60574
60575
60576
60577
60578
60579
60580
60581
60582
60583
60584
60585
60586
60587
60588
60589
60590
60591
60592
60593
60594
60595
60596
60597
60598
60599
60600
60601
60602
60603
60604
60605
60606
60607
60608
60609
60610
60611
60612
60613
60614
60615
60616
60617
60618
60619
60620
60621
60622
60623
60624
60625
60626
60627
60628
60629
60630
60631
60632
60633
60634
60635
60636
60637
60638
60639
60640
60641
60642
60643
60644
60645
60646
60647
60648
60649
60650
60651
60652
60653
60654
60655
60656
60657
60658
60659
60660
60661
60662
60663
60664
60665
60666
60667
60668
60669
60670
60671
60672
60673
60674
60675
60676
60677
60678
60679
60680
60681
60682
60683
60684
60685
60686
60687
60688
60689
60690
60691
60692
60693
60694
60695
60696
60697
60698
60699
60700
60701
60702
60703
60704
60705
60706
60707
60708
60709
60710
60711
60712
60713
60714
60715
60716
60717
60718
60719
60720
60721
60722
60723
60724
60725
60726
60727
60728
60729
60730
60731
60732
60733
60734
60735
60736
60737
60738
60739
60740
60741
60742
60743
60744
60745
60746
60747
60748
60749
60750
60751
60752
60753
60754
60755
60756
60757
60758
60759
60760
60761
60762
60763
60764
60765
60766
60767
60768
60769
60770
60771
60772
60773
60774
60775
60776
60777
60778
60779
60780
60781
60782
60783
60784
60785
60786
60787
60788
60789
60790
60791
60792
60793
60794
60795
60796
60797
60798
60799
60800
60801
60802
60803
60804
60805
60806
60807
60808
60809
60810
60811
60812
60813
60814
60815
60816
60817
60818
60819
60820
60821
60822
60823
60824
60825
60826
60827
60828
60829
60830
60831
60832
60833
60834
60835
60836
60837
60838
60839
60840
60841
60842
60843
60844
60845
60846
60847
60848
60849
60850
60851
60852
60853
60854
60855
60856
60857
60858
60859
60860
60861
60862
60863
60864
60865
60866
60867
60868
60869
60870
60871
60872
60873
60874
60875
60876
60877
60878
60879
60880
60881
60882
60883
60884
60885
60886
60887
60888
60889
60890
60891
60892
60893
60894
60895
60896
60897
60898
60899
60900
60901
60902
60903
60904
60905
60906
60907
60908
60909
60910
60911
60912
60913
60914
60915
60916
60917
60918
60919
60920
60921
60922
60923
60924
60925
60926
60927
60928
60929
60930
60931
60932
60933
60934
60935
60936
60937
60938
60939
60940
60941
60942
60943
60944
60945
60946
60947
60948
60949
60950
60951
60952
60953
60954
60955
60956
60957
60958
60959
60960
60961
60962
60963
60964
60965
60966
60967
60968
60969
60970
60971
60972
60973
60974
60975
60976
60977
60978
60979
60980
60981
60982
60983
60984
60985
60986
60987
60988
60989
60990
60991
60992
60993
60994
60995
60996
60997
60998
60999
61000
61001
61002
61003
61004
61005
61006
61007
61008
61009
61010
61011
61012
61013
61014
61015
61016
61017
61018
61019
61020
61021
61022
61023
61024
61025
61026
61027
61028
61029
61030
61031
61032
61033
61034
61035
61036
61037
61038
61039
61040
61041
61042
61043
61044
61045
61046
61047
61048
61049
61050
61051
61052
61053
61054
61055
61056
61057
61058
61059
61060
61061
61062
61063
61064
61065
61066
61067
61068
61069
61070
61071
61072
61073
61074
61075
61076
61077
61078
61079
61080
61081
61082
61083
61084
61085
61086
61087
61088
61089
61090
61091
61092
61093
61094
61095
61096
61097
61098
61099
61100
61101
61102
61103
61104
61105
61106
61107
61108
61109
61110
61111
61112
61113
61114
61115
61116
61117
61118
61119
61120
61121
61122
61123
61124
61125
61126
61127
61128
61129
61130
61131
61132
61133
61134
61135
61136
61137
61138
61139
61140
61141
61142
61143
61144
61145
61146
61147
61148
61149
61150
61151
61152
61153
61154
61155
61156
61157
61158
61159
61160
61161
61162
61163
61164
61165
61166
61167
61168
61169
61170
61171
61172
61173
61174
61175
61176
61177
61178
61179
61180
61181
61182
61183
61184
61185
61186
61187
61188
61189
61190
61191
61192
61193
61194
61195
61196
61197
61198
61199
61200
61201
61202
61203
61204
61205
61206
61207
61208
61209
61210
61211
61212
61213
61214
61215
61216
61217
61218
61219
61220
61221
61222
61223
61224
61225
61226
61227
61228
61229
61230
61231
61232
61233
61234
61235
61236
61237
61238
61239
61240
61241
61242
61243
61244
61245
61246
61247
61248
61249
61250
61251
61252
61253
61254
61255
61256
61257
61258
61259
61260
61261
61262
61263
61264
61265
61266
61267
61268
61269
61270
61271
61272
61273
61274
61275
61276
61277
61278
61279
61280
61281
61282
61283
61284
61285
61286
61287
61288
61289
61290
61291
61292
61293
61294
61295
61296
61297
61298
61299
61300
61301
61302
61303
61304
61305
61306
61307
61308
61309
61310
61311
61312
61313
61314
61315
61316
61317
61318
61319
61320
61321
61322
61323
61324
61325
61326
61327
61328
61329
61330
61331
61332
61333
61334
61335
61336
61337
61338
61339
61340
61341
61342
61343
61344
61345
61346
61347
61348
61349
61350
61351
61352
61353
61354
61355
61356
61357
61358
61359
61360
61361
61362
61363
61364
61365
61366
61367
61368
61369
61370
61371
61372
61373
61374
61375
61376
61377
61378
61379
61380
61381
61382
61383
61384
61385
61386
61387
61388
61389
61390
61391
61392
61393
61394
61395
61396
61397
61398
61399
61400
61401
61402
61403
61404
61405
61406
61407
61408
61409
61410
61411
61412
61413
61414
61415
61416
61417
61418
61419
61420
61421
61422
61423
61424
61425
61426
61427
61428
61429
61430
61431
61432
61433
61434
61435
61436
61437
61438
61439
61440
61441
61442
61443
61444
61445
61446
61447
61448
61449
61450
61451
61452
61453
61454
61455
61456
61457
61458
61459
61460
61461
61462
61463
61464
61465
61466
61467
61468
61469
61470
61471
61472
61473
61474
61475
61476
61477
61478
61479
61480
61481
61482
61483
61484
61485
61486
61487
61488
61489
61490
61491
61492
61493
61494
61495
61496
61497
61498
61499
61500
61501
61502
61503
61504
61505
61506
61507
61508
61509
61510
61511
61512
61513
61514
61515
61516
61517
61518
61519
61520
61521
61522
61523
61524
61525
61526
61527
61528
61529
61530
61531
61532
61533
61534
61535
61536
61537
61538
61539
61540
61541
61542
61543
61544
61545
61546
61547
61548
61549
61550
61551
61552
61553
61554
61555
61556
61557
61558
61559
61560
61561
61562
61563
61564
61565
61566
61567
61568
61569
61570
61571
61572
61573
61574
61575
61576
61577
61578
61579
61580
61581
61582
61583
61584
61585
61586
61587
61588
61589
61590
61591
61592
61593
61594
61595
61596
61597
61598
61599
61600
61601
61602
61603
61604
61605
61606
61607
61608
61609
61610
61611
61612
61613
61614
61615
61616
61617
61618
61619
61620
61621
61622
61623
61624
61625
61626
61627
61628
61629
61630
61631
61632
61633
61634
61635
61636
61637
61638
61639
61640
61641
61642
61643
61644
61645
61646
61647
61648
61649
61650
61651
61652
61653
61654
61655
61656
61657
61658
61659
61660
61661
61662
61663
61664
61665
61666
61667
61668
61669
61670
61671
61672
61673
61674
61675
61676
61677
61678
61679
61680
61681
61682
61683
61684
61685
61686
61687
61688
61689
61690
61691
61692
61693
61694
61695
61696
61697
61698
61699
61700
61701
61702
61703
61704
61705
61706
61707
61708
61709
61710
61711
61712
61713
61714
61715
61716
61717
61718
61719
61720
61721
61722
61723
61724
61725
61726
61727
61728
61729
61730
61731
61732
61733
61734
61735
61736
61737
61738
61739
61740
61741
61742
61743
61744
61745
61746
61747
61748
61749
61750
61751
61752
61753
61754
61755
61756
61757
61758
61759
61760
61761
61762
61763
61764
61765
61766
61767
61768
61769
61770
61771
61772
61773
61774
61775
61776
61777
61778
61779
61780
61781
61782
61783
61784
61785
61786
61787
61788
61789
61790
61791
61792
61793
61794
61795
61796
61797
61798
61799
61800
61801
61802
61803
61804
61805
61806
61807
61808
61809
61810
61811
61812
61813
61814
61815
61816
61817
61818
61819
61820
61821
61822
61823
61824
61825
61826
61827
61828
61829
61830
61831
61832
61833
61834
61835
61836
61837
61838
61839
61840
61841
61842
61843
61844
61845
61846
61847
61848
61849
61850
61851
61852
61853
61854
61855
61856
61857
61858
61859
61860
61861
61862
61863
61864
61865
61866
61867
61868
61869
61870
61871
61872
61873
61874
61875
61876
61877
61878
61879
61880
61881
61882
61883
61884
61885
61886
61887
61888
61889
61890
61891
61892
61893
61894
61895
61896
61897
61898
61899
61900
61901
61902
61903
61904
61905
61906
61907
61908
61909
61910
61911
61912
61913
61914
61915
61916
61917
61918
61919
61920
61921
61922
61923
61924
61925
61926
61927
61928
61929
61930
61931
61932
61933
61934
61935
61936
61937
61938
61939
61940
61941
61942
61943
61944
61945
61946
61947
61948
61949
61950
# ! [doc = "Peripheral access API for MSPM0L130X microcontrollers (generated using svd2rust v0.30.2 ( ))\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.30.2/svd2rust/#peripheral-api\n[next]: https://github.com/rust-embedded/svd2rust/blob/master/CHANGELOG.md#unreleased\n[repository]: https://github.com/rust-embedded/svd2rust"]
# ! [deny (dead_code)]
# ! [deny (improper_ctypes)]
# ! [deny (missing_docs)]
# ! [deny (no_mangle_generic_items)]
# ! [deny (non_shorthand_field_patterns)]
# ! [deny (overflowing_literals)]
# ! [deny (path_statements)]
# ! [deny (patterns_in_fns_without_body)]
# ! [deny (private_bounds)]
# ! [deny (private_interfaces)]
# ! [deny (unconditional_recursion)]
# ! [deny (unused_allocation)]
# ! [deny (unused_comparisons)]
# ! [deny (unused_parens)]
# ! [deny (while_true)]
# ! [allow (non_camel_case_types)]
# ! [allow (non_snake_case)]
# ! [no_std]
use core :: ops :: Deref ; use core :: marker :: PhantomData ; # [doc = r"Number available in the NVIC for configuring priority"]
pub const NVIC_PRIO_BITS : u8 = 3 ; pub use cortex_m :: peripheral :: Peripherals as CorePeripherals ; # [cfg (feature = "rt")]
pub use cortex_m_rt :: interrupt ; # [cfg (feature = "rt")]
pub use self :: Interrupt as interrupt ; pub use cortex_m :: peripheral :: { CBP , CPUID , DCB , DWT , FPB , ITM , MPU , NVIC , SCB , SYST , TPIU , } ; # [allow (unused_imports)]
use generic :: * ; # [doc = r"Common register and bit access and modify traits"]
pub mod generic { use core :: marker ; # [doc = " Raw register type (`u8`, `u16`, `u32`, ...)"]
pub trait RawReg : Copy + Default + 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 = " Mask for bits of width 1"]
fn 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 > () } # [inline (always)]
fn 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 + PartialEq + From < Self > ; } # [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 = " 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 ; # [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 ; } # [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 ; # [doc = " Reset value of the register."]
# [inline (always)]
fn reset_value () -> Self :: Ux { Self :: RESET_VALUE } } # [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) where F : FnOnce (& mut W < REG >) -> & mut W < REG > , { self . register . set (f (& mut W { bits : REG :: RESET_VALUE & ! REG :: ONE_TO_MODIFY_FIELDS_BITMAP | REG :: ZERO_TO_MODIFY_FIELDS_BITMAP , _reg : marker :: PhantomData , }) . bits ,) ; } } 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) where F : FnOnce (& mut W < REG >) -> & mut W < REG > , { self . register . set (f (& mut W { bits : REG :: Ux :: default () , _reg : marker :: PhantomData , }) . bits ,) ; } } 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) where for < 'w > F : FnOnce (& R < REG > , & 'w mut W < REG >) -> & 'w mut W < REG > , { let bits = self . register . get () ; self . register . set (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 ,) ; } } # [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 , } } } pub struct FieldWriter < 'a , REG , const WI : u8 , const O : u8 , FI = u8 , Safety = Unsafe > where REG : Writable + RegisterSpec , FI : FieldSpec , { pub (crate) w : & 'a mut W < REG > , _field : marker :: PhantomData < (FI , Safety) > , } impl < 'a , REG , const WI : u8 , const O : u8 , FI , Safety > FieldWriter < 'a , REG , WI , O , 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 >) -> Self { Self { w , _field : marker :: PhantomData , } } } pub struct BitWriter < 'a , REG , const O : u8 , FI = bool , M = BitM > where REG : Writable + RegisterSpec , bool : From < FI > , { pub (crate) w : & 'a mut W < REG > , _field : marker :: PhantomData < (FI , M) > , } impl < 'a , REG , const O : u8 , FI , M > BitWriter < 'a , REG , O , 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 >) -> Self { Self { w , _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 > ; # [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 > 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 () } } # [doc (hidden)]
pub struct Safe ; # [doc (hidden)]
pub struct Unsafe ; # [doc = " Write field Proxy with unsafe `bits`"]
pub type FieldWriter < 'a , REG , const WI : u8 , const O : u8 , FI = u8 > = raw :: FieldWriter < 'a , REG , WI , O , FI , Unsafe > ; # [doc = " Write field Proxy with safe `bits`"]
pub type FieldWriterSafe < 'a , REG , const WI : u8 , const O : u8 , FI = u8 > = raw :: FieldWriter < 'a , REG , WI , O , FI , Safe > ; impl < 'a , REG , const WI : u8 , const OF : u8 , FI > FieldWriter < 'a , REG , WI , OF , FI > where REG : Writable + RegisterSpec , FI : FieldSpec , REG :: Ux : From < FI :: Ux > , { # [doc = " Field width"]
pub const WIDTH : u8 = WI ; # [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 > () << OF) ; self . w . bits |= (REG :: Ux :: from (value) & REG :: Ux :: mask :: < WI > ()) << OF ; self . w } # [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)) } } } impl < 'a , REG , const WI : u8 , const OF : u8 , FI > FieldWriterSafe < 'a , REG , WI , OF , FI > where REG : Writable + RegisterSpec , FI : FieldSpec , REG :: Ux : From < FI :: Ux > , { # [doc = " Field width"]
pub const WIDTH : u8 = WI ; # [doc = " Writes raw bits to the field"]
# [inline (always)]
pub fn bits (self , value : FI :: Ux) -> & 'a mut W < REG > { self . w . bits &= ! (REG :: Ux :: mask :: < WI > () << OF) ; self . w . bits |= (REG :: Ux :: from (value) & REG :: Ux :: mask :: < WI > ()) << OF ; self . w } # [doc = " Writes `variant` to the field"]
# [inline (always)]
pub fn variant (self , variant : FI) -> & 'a mut W < REG > { 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 , const O : u8 , FI = bool > = raw :: BitWriter <'a , REG , O , FI , $ mwv >; impl <'a , REG , const OF : u8 , FI > $ writer <'a , REG , OF , FI > where REG : Writable + RegisterSpec , bool : From < FI >, { # [doc = " Field width"]
pub const WIDTH : u8 = 1 ; # [doc = " Writes bit to the field"]
# [inline (always)]
pub fn bit (self , value : bool) -> &'a mut W < REG > { self . w . bits &= ! (REG :: Ux :: one () << OF) ; self . w . bits |= (REG :: Ux :: from (value) & REG :: Ux :: one ()) << OF ; 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 , const OF : u8 , FI > BitWriter < 'a , REG , OF , 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 () << OF ; self . w } # [doc = " Clears the field bit"]
# [inline (always)]
pub fn clear_bit (self) -> & 'a mut W < REG > { self . w . bits &= ! (REG :: Ux :: one () << OF) ; self . w } } impl < 'a , REG , const OF : u8 , FI > BitWriter1S < 'a , REG , OF , 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 () << OF ; self . w } } impl < 'a , REG , const OF : u8 , FI > BitWriter0C < 'a , REG , OF , 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 () << OF) ; self . w } } impl < 'a , REG , const OF : u8 , FI > BitWriter1C < 'a , REG , OF , 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 () << OF ; self . w } } impl < 'a , REG , const OF : u8 , FI > BitWriter0S < 'a , REG , OF , 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 () << OF) ; self . w } } impl < 'a , REG , const OF : u8 , FI > BitWriter1T < 'a , REG , OF , 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 () << OF ; self . w } } impl < 'a , REG , const OF : u8 , FI > BitWriter0T < 'a , REG , OF , 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 () << OF) ; self . w } } } # [cfg (feature = "rt")]
extern "C" { fn INT_GROUP0 () ; fn INT_GROUP1 () ; fn TIMG1 () ; fn ADC0 () ; fn SPI0 () ; fn UART1 () ; fn UART0 () ; fn TIMG0 () ; fn TIMG2 () ; fn TIMG4 () ; fn I2C0 () ; fn I2C1 () ; fn DMA () ; } # [doc (hidden)]
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 ; 32]
= [Vector { _handler : INT_GROUP0 } , Vector { _handler : INT_GROUP1 } , Vector { _handler : TIMG1 } , Vector { _reserved : 0 } , Vector { _handler : ADC0 } , Vector { _reserved : 0 } , Vector { _reserved : 0 } , Vector { _reserved : 0 } , Vector { _reserved : 0 } , Vector { _handler : SPI0 } , Vector { _reserved : 0 } , Vector { _reserved : 0 } , Vector { _reserved : 0 } , Vector { _handler : UART1 } , Vector { _reserved : 0 } , Vector { _handler : UART0 } , Vector { _handler : TIMG0 } , Vector { _reserved : 0 } , Vector { _handler : TIMG2 } , Vector { _reserved : 0 } , Vector { _handler : TIMG4 } , Vector { _reserved : 0 } , Vector { _reserved : 0 } , Vector { _reserved : 0 } , Vector { _handler : I2C0 } , Vector { _handler : I2C1 } , Vector { _reserved : 0 } , Vector { _reserved : 0 } , Vector { _reserved : 0 } , Vector { _reserved : 0 } , Vector { _reserved : 0 } , Vector { _handler : DMA } ,]
; # [doc = r"Enumeration of all the interrupts."]
# [derive (Copy , Clone , Debug , PartialEq , Eq)]
# [repr (u16)]
pub enum Interrupt { # [doc = "0 - 0x00000040"]
INT_GROUP0 = 0 , # [doc = "1 - 0x00000044"]
INT_GROUP1 = 1 , # [doc = "2 - 0x00000048"]
TIMG1 = 2 , # [doc = "4 - 0x00000050"]
ADC0 = 4 , # [doc = "9 - 0x00000064"]
SPI0 = 9 , # [doc = "13 - 0x00000074"]
UART1 = 13 , # [doc = "15 - 0x0000007C"]
UART0 = 15 , # [doc = "16 - 0x00000080"]
TIMG0 = 16 , # [doc = "18 - 0x00000088"]
TIMG2 = 18 , # [doc = "20 - 0x00000090"]
TIMG4 = 20 , # [doc = "24 - 0x000000A0"]
I2C0 = 24 , # [doc = "25 - 0x000000A4"]
I2C1 = 25 , # [doc = "31 - 0x000000BC"]
DMA = 31 , } unsafe impl cortex_m :: interrupt :: InterruptNumber for Interrupt { # [inline (always)]
fn number (self) -> u16 { self as u16 } } # [doc = "PERIPHERALREGION"]
pub struct UART0 { _marker : PhantomData < * const () > } unsafe impl Send for UART0 { } impl UART0 { # [doc = r"Pointer to the register block"]
pub const PTR : * const uart0 :: RegisterBlock = 0x4010_8000 as * const _ ; # [doc = r"Return the pointer to the register block"]
# [inline (always)]
pub const fn ptr () -> * const uart0 :: RegisterBlock { Self :: PTR } # [doc = r" Steal an instance of this peripheral"]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Ensure that the new instance of the peripheral cannot be used in a way"]
# [doc = r" that may race with any existing instances, for example by only"]
# [doc = r" accessing read-only or write-only registers, or by consuming the"]
# [doc = r" original peripheral and using critical sections to coordinate"]
# [doc = r" access between multiple new instances."]
# [doc = r""]
# [doc = r" Additionally, other software such as HALs may rely on only one"]
# [doc = r" peripheral instance existing to ensure memory safety; ensure"]
# [doc = r" no stolen instances are passed to such software."]
pub unsafe fn steal () -> Self { Self { _marker : PhantomData } } } impl Deref for UART0 { type Target = uart0 :: RegisterBlock ; # [inline (always)]
fn deref (& self) -> & Self :: Target { unsafe { & * Self :: PTR } } } impl core :: fmt :: Debug for UART0 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("UART0") . finish () } } # [doc = "PERIPHERALREGION"]
pub mod uart0 { # [doc = r"Register block"]
# [repr (C)]
pub struct RegisterBlock { _reserved0 : [u8 ; 0x0800]
, # [doc = "0x800 - Power enable"]
pub pwren : PWREN , # [doc = "0x804 - Reset Control"]
pub rstctl : RSTCTL , # [doc = "0x808 - Peripheral Clock Configuration Register"]
pub clkcfg : CLKCFG , _reserved3 : [u8 ; 0x08]
, # [doc = "0x814 - Status Register"]
pub gprcm_stat : GPRCM_STAT , _reserved4 : [u8 ; 0x07e8]
, # [doc = "0x1000 - Clock Divider"]
pub clkdiv : CLKDIV , _reserved5 : [u8 ; 0x04]
, # [doc = "0x1008 - Clock Select for Ultra Low Power peripherals"]
pub clksel : CLKSEL , _reserved6 : [u8 ; 0x0c]
, # [doc = "0x1018 - Peripheral Debug Control"]
pub pdbgctl : PDBGCTL , _reserved7 : [u8 ; 0x04]
, # [doc = "0x1020 - Interrupt index"]
pub int_event0_iidx : INT_EVENT0_IIDX , _reserved8 : [u8 ; 0x04]
, # [doc = "0x1028 - Interrupt mask"]
pub int_event0_imask : INT_EVENT0_IMASK , _reserved9 : [u8 ; 0x04]
, # [doc = "0x1030 - Raw interrupt status"]
pub int_event0_ris : INT_EVENT0_RIS , _reserved10 : [u8 ; 0x04]
, # [doc = "0x1038 - Masked interrupt status"]
pub int_event0_mis : INT_EVENT0_MIS , _reserved11 : [u8 ; 0x04]
, # [doc = "0x1040 - Interrupt set"]
pub int_event0_iset : INT_EVENT0_ISET , _reserved12 : [u8 ; 0x04]
, # [doc = "0x1048 - Interrupt clear"]
pub int_event0_iclr : INT_EVENT0_ICLR , _reserved13 : [u8 ; 0x04]
, # [doc = "0x1050 - Interrupt index"]
pub int_event1_iidx : INT_EVENT1_IIDX , _reserved14 : [u8 ; 0x04]
, # [doc = "0x1058 - Interrupt mask"]
pub int_event1_imask : INT_EVENT1_IMASK , _reserved15 : [u8 ; 0x04]
, # [doc = "0x1060 - Raw interrupt status"]
pub int_event1_ris : INT_EVENT1_RIS , _reserved16 : [u8 ; 0x04]
, # [doc = "0x1068 - Masked interrupt status"]
pub int_event1_mis : INT_EVENT1_MIS , _reserved17 : [u8 ; 0x04]
, # [doc = "0x1070 - Interrupt set"]
pub int_event1_iset : INT_EVENT1_ISET , _reserved18 : [u8 ; 0x04]
, # [doc = "0x1078 - Interrupt clear"]
pub int_event1_iclr : INT_EVENT1_ICLR , _reserved19 : [u8 ; 0x04]
, # [doc = "0x1080 - Interrupt index"]
pub int_event2_iidx : INT_EVENT2_IIDX , _reserved20 : [u8 ; 0x04]
, # [doc = "0x1088 - Interrupt mask"]
pub int_event2_imask : INT_EVENT2_IMASK , _reserved21 : [u8 ; 0x04]
, # [doc = "0x1090 - Raw interrupt status"]
pub int_event2_ris : INT_EVENT2_RIS , _reserved22 : [u8 ; 0x04]
, # [doc = "0x1098 - Masked interrupt status"]
pub int_event2_mis : INT_EVENT2_MIS , _reserved23 : [u8 ; 0x04]
, # [doc = "0x10a0 - Interrupt set"]
pub int_event2_iset : INT_EVENT2_ISET , _reserved24 : [u8 ; 0x04]
, # [doc = "0x10a8 - Interrupt clear"]
pub int_event2_iclr : INT_EVENT2_ICLR , _reserved25 : [u8 ; 0x34]
, # [doc = "0x10e0 - Event Mode"]
pub evt_mode : EVT_MODE , _reserved26 : [u8 ; 0x18]
, # [doc = "0x10fc - Module Description"]
pub desc : DESC , # [doc = "0x1100 - UART Control Register 0"]
pub ctl0 : CTL0 , # [doc = "0x1104 - UART Line Control Register"]
pub lcrh : LCRH , # [doc = "0x1108 - UART Status Register"]
pub stat : STAT , # [doc = "0x110c - UART Interrupt FIFO Level Select Register"]
pub ifls : IFLS , # [doc = "0x1110 - UART Integer Baud-Rate Divisor Register"]
pub ibrd : IBRD , # [doc = "0x1114 - UART Fractional Baud-Rate Divisor Register"]
pub fbrd : FBRD , # [doc = "0x1118 - Glitch Filter Control"]
pub gfctl : GFCTL , _reserved34 : [u8 ; 0x04]
, # [doc = "0x1120 - UART Transmit Data Register"]
pub txdata : TXDATA , # [doc = "0x1124 - UART Receive Data Register"]
pub rxdata : RXDATA , _reserved36 : [u8 ; 0x08]
, # [doc = "0x1130 - UART LIN Mode Counter Register"]
pub lincnt : LINCNT , # [doc = "0x1134 - UART LIN Mode Control Register"]
pub linctl : LINCTL , # [doc = "0x1138 - UART LIN Mode Capture 0 Register"]
pub linc0 : LINC0 , # [doc = "0x113c - UART LIN Mode Capture 1 Register"]
pub linc1 : LINC1 , # [doc = "0x1140 - eUSCI_Ax IrDA Control Word Register"]
pub irctl : IRCTL , _reserved41 : [u8 ; 0x04]
, # [doc = "0x1148 - Self Address Mask Register"]
pub amask : AMASK , # [doc = "0x114c - Self Address Register"]
pub addr : ADDR , _reserved43 : [u8 ; 0x10]
, # [doc = "0x1160 - Clock Divider"]
pub clkdiv2 : CLKDIV2 , } # [doc = "PWREN (rw) register accessor: Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pwren`]
module"]
pub type PWREN = crate :: Reg < pwren :: PWREN_SPEC > ; # [doc = "Power enable"]
pub mod pwren { # [doc = "Register `PWREN` reader"]
pub type R = crate :: R < PWREN_SPEC > ; # [doc = "Register `PWREN` writer"]
pub type W = crate :: W < PWREN_SPEC > ; # [doc = "Field `PWREN_ENABLE` reader - Enable the power"]
pub type PWREN_ENABLE_R = crate :: BitReader < PWREN_ENABLE_A > ; # [doc = "Enable the power\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PWREN_ENABLE_A { # [doc = "0: DISABLE"]
PWREN_ENABLE_DISABLE = 0 , # [doc = "1: ENABLE"]
PWREN_ENABLE_ENABLE = 1 , } impl From < PWREN_ENABLE_A > for bool { # [inline (always)]
fn from (variant : PWREN_ENABLE_A) -> Self { variant as u8 != 0 } } impl PWREN_ENABLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PWREN_ENABLE_A { match self . bits { false => PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE , true => PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_pwren_enable_disable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_pwren_enable_enable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE } } # [doc = "Field `PWREN_ENABLE` writer - Enable the power"]
pub type PWREN_ENABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PWREN_ENABLE_A > ; impl < 'a , REG , const O : u8 > PWREN_ENABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn pwren_enable_disable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn pwren_enable_enable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE) } } # [doc = "KEY to allow Power State Change\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum PWREN_KEY_AW { # [doc = "38: _TO_UNLOCK_W_"]
PWREN_KEY_UNLOCK_W = 38 , } impl From < PWREN_KEY_AW > for u8 { # [inline (always)]
fn from (variant : PWREN_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for PWREN_KEY_AW { type Ux = u8 ; } # [doc = "Field `PWREN_KEY` writer - KEY to allow Power State Change"]
pub type PWREN_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , PWREN_KEY_AW > ; impl < 'a , REG , const O : u8 > PWREN_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn pwren_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_KEY_AW :: PWREN_KEY_UNLOCK_W) } } impl R { # [doc = "Bit 0 - Enable the power"]
# [inline (always)]
pub fn pwren_enable (& self) -> PWREN_ENABLE_R { PWREN_ENABLE_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - Enable the power"]
# [inline (always)]
# [must_use]
pub fn pwren_enable (& mut self) -> PWREN_ENABLE_W < PWREN_SPEC , 0 > { PWREN_ENABLE_W :: new (self) } # [doc = "Bits 24:31 - KEY to allow Power State Change"]
# [inline (always)]
# [must_use]
pub fn pwren_key (& mut self) -> PWREN_KEY_W < PWREN_SPEC , 24 > { PWREN_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PWREN_SPEC ; impl crate :: RegisterSpec for PWREN_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pwren::R`](R) reader structure"]
impl crate :: Readable for PWREN_SPEC { } # [doc = "`write(|w| ..)` method takes [`pwren::W`](W) writer structure"]
impl crate :: Writable for PWREN_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PWREN to value 0"]
impl crate :: Resettable for PWREN_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RSTCTL (w) register accessor: Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rstctl`]
module"]
pub type RSTCTL = crate :: Reg < rstctl :: RSTCTL_SPEC > ; # [doc = "Reset Control"]
pub mod rstctl { # [doc = "Register `RSTCTL` writer"]
pub type W = crate :: W < RSTCTL_SPEC > ; # [doc = "Assert reset to the peripheral\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETASSERT_AW { # [doc = "0: NOP"]
RSTCTL_RESETASSERT_NOP = 0 , # [doc = "1: ASSERT"]
RSTCTL_RESETASSERT_ASSERT = 1 , } impl From < RSTCTL_RESETASSERT_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETASSERT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETASSERT` writer - Assert reset to the peripheral"]
pub type RSTCTL_RESETASSERT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETASSERT_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETASSERT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetassert_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_NOP) } # [doc = "ASSERT"]
# [inline (always)]
pub fn rstctl_resetassert_assert (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_ASSERT) } } # [doc = "Clear the RESETSTKY bit in the STAT register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETSTKYCLR_AW { # [doc = "0: NOP"]
RSTCTL_RESETSTKYCLR_NOP = 0 , # [doc = "1: CLR"]
RSTCTL_RESETSTKYCLR_CLR = 1 , } impl From < RSTCTL_RESETSTKYCLR_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETSTKYCLR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETSTKYCLR` writer - Clear the RESETSTKY bit in the STAT register"]
pub type RSTCTL_RESETSTKYCLR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETSTKYCLR_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETSTKYCLR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetstkyclr_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_NOP) } # [doc = "CLR"]
# [inline (always)]
pub fn rstctl_resetstkyclr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_CLR) } } # [doc = "Unlock key\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum RSTCTL_KEY_AW { # [doc = "177: _TO_UNLOCK_W_"]
RSTCTL_KEY_UNLOCK_W = 177 , } impl From < RSTCTL_KEY_AW > for u8 { # [inline (always)]
fn from (variant : RSTCTL_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for RSTCTL_KEY_AW { type Ux = u8 ; } # [doc = "Field `RSTCTL_KEY` writer - Unlock key"]
pub type RSTCTL_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , RSTCTL_KEY_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn rstctl_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_KEY_AW :: RSTCTL_KEY_UNLOCK_W) } } impl W { # [doc = "Bit 0 - Assert reset to the peripheral"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetassert (& mut self) -> RSTCTL_RESETASSERT_W < RSTCTL_SPEC , 0 > { RSTCTL_RESETASSERT_W :: new (self) } # [doc = "Bit 1 - Clear the RESETSTKY bit in the STAT register"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetstkyclr (& mut self) -> RSTCTL_RESETSTKYCLR_W < RSTCTL_SPEC , 1 > { RSTCTL_RESETSTKYCLR_W :: new (self) } # [doc = "Bits 24:31 - Unlock key"]
# [inline (always)]
# [must_use]
pub fn rstctl_key (& mut self) -> RSTCTL_KEY_W < RSTCTL_SPEC , 24 > { RSTCTL_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RSTCTL_SPEC ; impl crate :: RegisterSpec for RSTCTL_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`rstctl::W`](W) writer structure"]
impl crate :: Writable for RSTCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets RSTCTL to value 0"]
impl crate :: Resettable for RSTCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CLKCFG (rw) register accessor: Peripheral Clock Configuration Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkcfg::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkcfg::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clkcfg`]
module"]
pub type CLKCFG = crate :: Reg < clkcfg :: CLKCFG_SPEC > ; # [doc = "Peripheral Clock Configuration Register"]
pub mod clkcfg { # [doc = "Register `CLKCFG` reader"]
pub type R = crate :: R < CLKCFG_SPEC > ; # [doc = "Register `CLKCFG` writer"]
pub type W = crate :: W < CLKCFG_SPEC > ; # [doc = "Field `CLKCFG_BLOCKASYNC` reader - Async Clock Request is blocked from starting SYSOSC or forcing bus clock to 32MHz"]
pub type CLKCFG_BLOCKASYNC_R = crate :: BitReader < CLKCFG_BLOCKASYNC_A > ; # [doc = "Async Clock Request is blocked from starting SYSOSC or forcing bus clock to 32MHz\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKCFG_BLOCKASYNC_A { # [doc = "0: DISABLE"]
CLKCFG_BLOCKASYNC_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKCFG_BLOCKASYNC_ENABLE = 1 , } impl From < CLKCFG_BLOCKASYNC_A > for bool { # [inline (always)]
fn from (variant : CLKCFG_BLOCKASYNC_A) -> Self { variant as u8 != 0 } } impl CLKCFG_BLOCKASYNC_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKCFG_BLOCKASYNC_A { match self . bits { false => CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_DISABLE , true => CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clkcfg_blockasync_disable (& self) -> bool { * self == CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clkcfg_blockasync_enable (& self) -> bool { * self == CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_ENABLE } } # [doc = "Field `CLKCFG_BLOCKASYNC` writer - Async Clock Request is blocked from starting SYSOSC or forcing bus clock to 32MHz"]
pub type CLKCFG_BLOCKASYNC_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKCFG_BLOCKASYNC_A > ; impl < 'a , REG , const O : u8 > CLKCFG_BLOCKASYNC_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clkcfg_blockasync_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clkcfg_blockasync_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_ENABLE) } } # [doc = "KEY to Allow State Change -- 0xA9\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CLKCFG_KEY_AW { # [doc = "169: _UNLOCK_W_"]
CLKCFG_KEY_UNLOCK = 169 , } impl From < CLKCFG_KEY_AW > for u8 { # [inline (always)]
fn from (variant : CLKCFG_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for CLKCFG_KEY_AW { type Ux = u8 ; } # [doc = "Field `CLKCFG_KEY` writer - KEY to Allow State Change -- 0xA9"]
pub type CLKCFG_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , CLKCFG_KEY_AW > ; impl < 'a , REG , const O : u8 > CLKCFG_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_UNLOCK_W_"]
# [inline (always)]
pub fn clkcfg_key_unlock (self) -> & 'a mut crate :: W < REG > { self . variant (CLKCFG_KEY_AW :: CLKCFG_KEY_UNLOCK) } } impl R { # [doc = "Bit 8 - Async Clock Request is blocked from starting SYSOSC or forcing bus clock to 32MHz"]
# [inline (always)]
pub fn clkcfg_blockasync (& self) -> CLKCFG_BLOCKASYNC_R { CLKCFG_BLOCKASYNC_R :: new (((self . bits >> 8) & 1) != 0) } } impl W { # [doc = "Bit 8 - Async Clock Request is blocked from starting SYSOSC or forcing bus clock to 32MHz"]
# [inline (always)]
# [must_use]
pub fn clkcfg_blockasync (& mut self) -> CLKCFG_BLOCKASYNC_W < CLKCFG_SPEC , 8 > { CLKCFG_BLOCKASYNC_W :: new (self) } # [doc = "Bits 24:31 - KEY to Allow State Change -- 0xA9"]
# [inline (always)]
# [must_use]
pub fn clkcfg_key (& mut self) -> CLKCFG_KEY_W < CLKCFG_SPEC , 24 > { CLKCFG_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Peripheral Clock Configuration Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkcfg::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkcfg::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CLKCFG_SPEC ; impl crate :: RegisterSpec for CLKCFG_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`clkcfg::R`](R) reader structure"]
impl crate :: Readable for CLKCFG_SPEC { } # [doc = "`write(|w| ..)` method takes [`clkcfg::W`](W) writer structure"]
impl crate :: Writable for CLKCFG_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CLKCFG to value 0"]
impl crate :: Resettable for CLKCFG_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "GPRCM_STAT (r) register accessor: Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gprcm_stat::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gprcm_stat`]
module"]
pub type GPRCM_STAT = crate :: Reg < gprcm_stat :: GPRCM_STAT_SPEC > ; # [doc = "Status Register"]
pub mod gprcm_stat { # [doc = "Register `GPRCM_STAT` reader"]
pub type R = crate :: R < GPRCM_STAT_SPEC > ; # [doc = "Field `GPRCM_STAT_RESETSTKY` reader - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
pub type GPRCM_STAT_RESETSTKY_R = crate :: BitReader < GPRCM_STAT_RESETSTKY_A > ; # [doc = "This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum GPRCM_STAT_RESETSTKY_A { # [doc = "0: NORES"]
GPRCM_STAT_RESETSTKY_NORES = 0 , # [doc = "1: RESET"]
GPRCM_STAT_RESETSTKY_RESET = 1 , } impl From < GPRCM_STAT_RESETSTKY_A > for bool { # [inline (always)]
fn from (variant : GPRCM_STAT_RESETSTKY_A) -> Self { variant as u8 != 0 } } impl GPRCM_STAT_RESETSTKY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> GPRCM_STAT_RESETSTKY_A { match self . bits { false => GPRCM_STAT_RESETSTKY_A :: GPRCM_STAT_RESETSTKY_NORES , true => GPRCM_STAT_RESETSTKY_A :: GPRCM_STAT_RESETSTKY_RESET , } } # [doc = "NORES"]
# [inline (always)]
pub fn is_gprcm_stat_resetstky_nores (& self) -> bool { * self == GPRCM_STAT_RESETSTKY_A :: GPRCM_STAT_RESETSTKY_NORES } # [doc = "RESET"]
# [inline (always)]
pub fn is_gprcm_stat_resetstky_reset (& self) -> bool { * self == GPRCM_STAT_RESETSTKY_A :: GPRCM_STAT_RESETSTKY_RESET } } impl R { # [doc = "Bit 16 - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
# [inline (always)]
pub fn gprcm_stat_resetstky (& self) -> GPRCM_STAT_RESETSTKY_R { GPRCM_STAT_RESETSTKY_R :: new (((self . bits >> 16) & 1) != 0) } } # [doc = "Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gprcm_stat::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct GPRCM_STAT_SPEC ; impl crate :: RegisterSpec for GPRCM_STAT_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`gprcm_stat::R`](R) reader structure"]
impl crate :: Readable for GPRCM_STAT_SPEC { } # [doc = "`reset()` method sets GPRCM_STAT to value 0"]
impl crate :: Resettable for GPRCM_STAT_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CLKDIV (rw) register accessor: Clock Divider\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkdiv::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkdiv::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clkdiv`]
module"]
pub type CLKDIV = crate :: Reg < clkdiv :: CLKDIV_SPEC > ; # [doc = "Clock Divider"]
pub mod clkdiv { # [doc = "Register `CLKDIV` reader"]
pub type R = crate :: R < CLKDIV_SPEC > ; # [doc = "Register `CLKDIV` writer"]
pub type W = crate :: W < CLKDIV_SPEC > ; # [doc = "Field `CLKDIV_RATIO` reader - Selects divide ratio of module clock"]
pub type CLKDIV_RATIO_R = crate :: FieldReader < CLKDIV_RATIO_A > ; # [doc = "Selects divide ratio of module clock\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CLKDIV_RATIO_A { # [doc = "0: DIV_BY_1"]
CLKDIV_RATIO_DIV_BY_1 = 0 , # [doc = "1: DIV_BY_2"]
CLKDIV_RATIO_DIV_BY_2 = 1 , # [doc = "2: DIV_BY_3"]
CLKDIV_RATIO_DIV_BY_3 = 2 , # [doc = "3: DIV_BY_4"]
CLKDIV_RATIO_DIV_BY_4 = 3 , # [doc = "4: DIV_BY_5"]
CLKDIV_RATIO_DIV_BY_5 = 4 , # [doc = "5: DIV_BY_6"]
CLKDIV_RATIO_DIV_BY_6 = 5 , # [doc = "6: DIV_BY_7"]
CLKDIV_RATIO_DIV_BY_7 = 6 , # [doc = "7: DIV_BY_8"]
CLKDIV_RATIO_DIV_BY_8 = 7 , } impl From < CLKDIV_RATIO_A > for u8 { # [inline (always)]
fn from (variant : CLKDIV_RATIO_A) -> Self { variant as _ } } impl crate :: FieldSpec for CLKDIV_RATIO_A { type Ux = u8 ; } impl CLKDIV_RATIO_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKDIV_RATIO_A { match self . bits { 0 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_1 , 1 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_2 , 2 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_3 , 3 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_4 , 4 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_5 , 5 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_6 , 6 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_7 , 7 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_8 , _ => unreachable ! () , } } # [doc = "DIV_BY_1"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_1 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_1 } # [doc = "DIV_BY_2"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_2 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_2 } # [doc = "DIV_BY_3"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_3 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_3 } # [doc = "DIV_BY_4"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_4 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_4 } # [doc = "DIV_BY_5"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_5 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_5 } # [doc = "DIV_BY_6"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_6 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_6 } # [doc = "DIV_BY_7"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_7 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_7 } # [doc = "DIV_BY_8"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_8 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_8 } } # [doc = "Field `CLKDIV_RATIO` writer - Selects divide ratio of module clock"]
pub type CLKDIV_RATIO_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 3 , O , CLKDIV_RATIO_A > ; impl < 'a , REG , const O : u8 > CLKDIV_RATIO_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DIV_BY_1"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_1 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_1) } # [doc = "DIV_BY_2"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_2 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_2) } # [doc = "DIV_BY_3"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_3 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_3) } # [doc = "DIV_BY_4"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_4 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_4) } # [doc = "DIV_BY_5"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_5 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_5) } # [doc = "DIV_BY_6"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_6 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_6) } # [doc = "DIV_BY_7"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_7 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_7) } # [doc = "DIV_BY_8"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_8 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_8) } } impl R { # [doc = "Bits 0:2 - Selects divide ratio of module clock"]
# [inline (always)]
pub fn clkdiv_ratio (& self) -> CLKDIV_RATIO_R { CLKDIV_RATIO_R :: new ((self . bits & 7) as u8) } } impl W { # [doc = "Bits 0:2 - Selects divide ratio of module clock"]
# [inline (always)]
# [must_use]
pub fn clkdiv_ratio (& mut self) -> CLKDIV_RATIO_W < CLKDIV_SPEC , 0 > { CLKDIV_RATIO_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Clock Divider\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkdiv::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkdiv::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CLKDIV_SPEC ; impl crate :: RegisterSpec for CLKDIV_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`clkdiv::R`](R) reader structure"]
impl crate :: Readable for CLKDIV_SPEC { } # [doc = "`write(|w| ..)` method takes [`clkdiv::W`](W) writer structure"]
impl crate :: Writable for CLKDIV_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CLKDIV to value 0"]
impl crate :: Resettable for CLKDIV_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CLKSEL (rw) register accessor: Clock Select for Ultra Low Power peripherals\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clksel::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clksel::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clksel`]
module"]
pub type CLKSEL = crate :: Reg < clksel :: CLKSEL_SPEC > ; # [doc = "Clock Select for Ultra Low Power peripherals"]
pub mod clksel { # [doc = "Register `CLKSEL` reader"]
pub type R = crate :: R < CLKSEL_SPEC > ; # [doc = "Register `CLKSEL` writer"]
pub type W = crate :: W < CLKSEL_SPEC > ; # [doc = "Field `CLKSEL_LFCLK_SEL` reader - Selects LFCLK as clock source if enabled"]
pub type CLKSEL_LFCLK_SEL_R = crate :: BitReader < CLKSEL_LFCLK_SEL_A > ; # [doc = "Selects LFCLK as clock source if enabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKSEL_LFCLK_SEL_A { # [doc = "0: DISABLE"]
CLKSEL_LFCLK_SEL_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKSEL_LFCLK_SEL_ENABLE = 1 , } impl From < CLKSEL_LFCLK_SEL_A > for bool { # [inline (always)]
fn from (variant : CLKSEL_LFCLK_SEL_A) -> Self { variant as u8 != 0 } } impl CLKSEL_LFCLK_SEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKSEL_LFCLK_SEL_A { match self . bits { false => CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_DISABLE , true => CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clksel_lfclk_sel_disable (& self) -> bool { * self == CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clksel_lfclk_sel_enable (& self) -> bool { * self == CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_ENABLE } } # [doc = "Field `CLKSEL_LFCLK_SEL` writer - Selects LFCLK as clock source if enabled"]
pub type CLKSEL_LFCLK_SEL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKSEL_LFCLK_SEL_A > ; impl < 'a , REG , const O : u8 > CLKSEL_LFCLK_SEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clksel_lfclk_sel_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clksel_lfclk_sel_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_ENABLE) } } # [doc = "Field `CLKSEL_MFCLK_SEL` reader - Selects MFCLK as clock source if enabled"]
pub type CLKSEL_MFCLK_SEL_R = crate :: BitReader < CLKSEL_MFCLK_SEL_A > ; # [doc = "Selects MFCLK as clock source if enabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKSEL_MFCLK_SEL_A { # [doc = "0: DISABLE"]
CLKSEL_MFCLK_SEL_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKSEL_MFCLK_SEL_ENABLE = 1 , } impl From < CLKSEL_MFCLK_SEL_A > for bool { # [inline (always)]
fn from (variant : CLKSEL_MFCLK_SEL_A) -> Self { variant as u8 != 0 } } impl CLKSEL_MFCLK_SEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKSEL_MFCLK_SEL_A { match self . bits { false => CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_DISABLE , true => CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clksel_mfclk_sel_disable (& self) -> bool { * self == CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clksel_mfclk_sel_enable (& self) -> bool { * self == CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_ENABLE } } # [doc = "Field `CLKSEL_MFCLK_SEL` writer - Selects MFCLK as clock source if enabled"]
pub type CLKSEL_MFCLK_SEL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKSEL_MFCLK_SEL_A > ; impl < 'a , REG , const O : u8 > CLKSEL_MFCLK_SEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clksel_mfclk_sel_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clksel_mfclk_sel_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_ENABLE) } } # [doc = "Field `CLKSEL_BUSCLK_SEL` reader - Selects BUS CLK as clock source if enabled"]
pub type CLKSEL_BUSCLK_SEL_R = crate :: BitReader < CLKSEL_BUSCLK_SEL_A > ; # [doc = "Selects BUS CLK as clock source if enabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKSEL_BUSCLK_SEL_A { # [doc = "0: DISABLE"]
CLKSEL_BUSCLK_SEL_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKSEL_BUSCLK_SEL_ENABLE = 1 , } impl From < CLKSEL_BUSCLK_SEL_A > for bool { # [inline (always)]
fn from (variant : CLKSEL_BUSCLK_SEL_A) -> Self { variant as u8 != 0 } } impl CLKSEL_BUSCLK_SEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKSEL_BUSCLK_SEL_A { match self . bits { false => CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_DISABLE , true => CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clksel_busclk_sel_disable (& self) -> bool { * self == CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clksel_busclk_sel_enable (& self) -> bool { * self == CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_ENABLE } } # [doc = "Field `CLKSEL_BUSCLK_SEL` writer - Selects BUS CLK as clock source if enabled"]
pub type CLKSEL_BUSCLK_SEL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKSEL_BUSCLK_SEL_A > ; impl < 'a , REG , const O : u8 > CLKSEL_BUSCLK_SEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clksel_busclk_sel_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clksel_busclk_sel_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_ENABLE) } } impl R { # [doc = "Bit 1 - Selects LFCLK as clock source if enabled"]
# [inline (always)]
pub fn clksel_lfclk_sel (& self) -> CLKSEL_LFCLK_SEL_R { CLKSEL_LFCLK_SEL_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Selects MFCLK as clock source if enabled"]
# [inline (always)]
pub fn clksel_mfclk_sel (& self) -> CLKSEL_MFCLK_SEL_R { CLKSEL_MFCLK_SEL_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Selects BUS CLK as clock source if enabled"]
# [inline (always)]
pub fn clksel_busclk_sel (& self) -> CLKSEL_BUSCLK_SEL_R { CLKSEL_BUSCLK_SEL_R :: new (((self . bits >> 3) & 1) != 0) } } impl W { # [doc = "Bit 1 - Selects LFCLK as clock source if enabled"]
# [inline (always)]
# [must_use]
pub fn clksel_lfclk_sel (& mut self) -> CLKSEL_LFCLK_SEL_W < CLKSEL_SPEC , 1 > { CLKSEL_LFCLK_SEL_W :: new (self) } # [doc = "Bit 2 - Selects MFCLK as clock source if enabled"]
# [inline (always)]
# [must_use]
pub fn clksel_mfclk_sel (& mut self) -> CLKSEL_MFCLK_SEL_W < CLKSEL_SPEC , 2 > { CLKSEL_MFCLK_SEL_W :: new (self) } # [doc = "Bit 3 - Selects BUS CLK as clock source if enabled"]
# [inline (always)]
# [must_use]
pub fn clksel_busclk_sel (& mut self) -> CLKSEL_BUSCLK_SEL_W < CLKSEL_SPEC , 3 > { CLKSEL_BUSCLK_SEL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Clock Select for Ultra Low Power peripherals\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clksel::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clksel::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CLKSEL_SPEC ; impl crate :: RegisterSpec for CLKSEL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`clksel::R`](R) reader structure"]
impl crate :: Readable for CLKSEL_SPEC { } # [doc = "`write(|w| ..)` method takes [`clksel::W`](W) writer structure"]
impl crate :: Writable for CLKSEL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CLKSEL to value 0"]
impl crate :: Resettable for CLKSEL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "PDBGCTL (rw) register accessor: Peripheral Debug Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pdbgctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pdbgctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pdbgctl`]
module"]
pub type PDBGCTL = crate :: Reg < pdbgctl :: PDBGCTL_SPEC > ; # [doc = "Peripheral Debug Control"]
pub mod pdbgctl { # [doc = "Register `PDBGCTL` reader"]
pub type R = crate :: R < PDBGCTL_SPEC > ; # [doc = "Register `PDBGCTL` writer"]
pub type W = crate :: W < PDBGCTL_SPEC > ; # [doc = "Field `PDBGCTL_FREE` reader - Free run control"]
pub type PDBGCTL_FREE_R = crate :: BitReader < PDBGCTL_FREE_A > ; # [doc = "Free run control\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PDBGCTL_FREE_A { # [doc = "0: STOP"]
PDBGCTL_FREE_STOP = 0 , # [doc = "1: RUN"]
PDBGCTL_FREE_RUN = 1 , } impl From < PDBGCTL_FREE_A > for bool { # [inline (always)]
fn from (variant : PDBGCTL_FREE_A) -> Self { variant as u8 != 0 } } impl PDBGCTL_FREE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PDBGCTL_FREE_A { match self . bits { false => PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP , true => PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN , } } # [doc = "STOP"]
# [inline (always)]
pub fn is_pdbgctl_free_stop (& self) -> bool { * self == PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP } # [doc = "RUN"]
# [inline (always)]
pub fn is_pdbgctl_free_run (& self) -> bool { * self == PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN } } # [doc = "Field `PDBGCTL_FREE` writer - Free run control"]
pub type PDBGCTL_FREE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PDBGCTL_FREE_A > ; impl < 'a , REG , const O : u8 > PDBGCTL_FREE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "STOP"]
# [inline (always)]
pub fn pdbgctl_free_stop (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP) } # [doc = "RUN"]
# [inline (always)]
pub fn pdbgctl_free_run (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN) } } # [doc = "Field `PDBGCTL_SOFT` reader - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
pub type PDBGCTL_SOFT_R = crate :: BitReader < PDBGCTL_SOFT_A > ; # [doc = "Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PDBGCTL_SOFT_A { # [doc = "0: IMMEDIATE"]
PDBGCTL_SOFT_IMMEDIATE = 0 , # [doc = "1: DELAYED"]
PDBGCTL_SOFT_DELAYED = 1 , } impl From < PDBGCTL_SOFT_A > for bool { # [inline (always)]
fn from (variant : PDBGCTL_SOFT_A) -> Self { variant as u8 != 0 } } impl PDBGCTL_SOFT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PDBGCTL_SOFT_A { match self . bits { false => PDBGCTL_SOFT_A :: PDBGCTL_SOFT_IMMEDIATE , true => PDBGCTL_SOFT_A :: PDBGCTL_SOFT_DELAYED , } } # [doc = "IMMEDIATE"]
# [inline (always)]
pub fn is_pdbgctl_soft_immediate (& self) -> bool { * self == PDBGCTL_SOFT_A :: PDBGCTL_SOFT_IMMEDIATE } # [doc = "DELAYED"]
# [inline (always)]
pub fn is_pdbgctl_soft_delayed (& self) -> bool { * self == PDBGCTL_SOFT_A :: PDBGCTL_SOFT_DELAYED } } # [doc = "Field `PDBGCTL_SOFT` writer - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
pub type PDBGCTL_SOFT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PDBGCTL_SOFT_A > ; impl < 'a , REG , const O : u8 > PDBGCTL_SOFT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "IMMEDIATE"]
# [inline (always)]
pub fn pdbgctl_soft_immediate (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_SOFT_A :: PDBGCTL_SOFT_IMMEDIATE) } # [doc = "DELAYED"]
# [inline (always)]
pub fn pdbgctl_soft_delayed (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_SOFT_A :: PDBGCTL_SOFT_DELAYED) } } impl R { # [doc = "Bit 0 - Free run control"]
# [inline (always)]
pub fn pdbgctl_free (& self) -> PDBGCTL_FREE_R { PDBGCTL_FREE_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
# [inline (always)]
pub fn pdbgctl_soft (& self) -> PDBGCTL_SOFT_R { PDBGCTL_SOFT_R :: new (((self . bits >> 1) & 1) != 0) } } impl W { # [doc = "Bit 0 - Free run control"]
# [inline (always)]
# [must_use]
pub fn pdbgctl_free (& mut self) -> PDBGCTL_FREE_W < PDBGCTL_SPEC , 0 > { PDBGCTL_FREE_W :: new (self) } # [doc = "Bit 1 - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
# [inline (always)]
# [must_use]
pub fn pdbgctl_soft (& mut self) -> PDBGCTL_SOFT_W < PDBGCTL_SPEC , 1 > { PDBGCTL_SOFT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Peripheral Debug Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pdbgctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pdbgctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PDBGCTL_SPEC ; impl crate :: RegisterSpec for PDBGCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pdbgctl::R`](R) reader structure"]
impl crate :: Readable for PDBGCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`pdbgctl::W`](W) writer structure"]
impl crate :: Writable for PDBGCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PDBGCTL to value 0"]
impl crate :: Resettable for PDBGCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_IIDX (r) register accessor: Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_iidx`]
module"]
pub type INT_EVENT0_IIDX = crate :: Reg < int_event0_iidx :: INT_EVENT0_IIDX_SPEC > ; # [doc = "Interrupt index"]
pub mod int_event0_iidx { # [doc = "Register `INT_EVENT0_IIDX` reader"]
pub type R = crate :: R < INT_EVENT0_IIDX_SPEC > ; # [doc = "Field `INT_EVENT0_IIDX_STAT` reader - UART Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in UARTRIS and UARTMISC. 15h-1Fh = Reserved"]
pub type INT_EVENT0_IIDX_STAT_R = crate :: FieldReader < INT_EVENT0_IIDX_STAT_A > ; # [doc = "UART Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in UARTRIS and UARTMISC. 15h-1Fh = Reserved\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum INT_EVENT0_IIDX_STAT_A { # [doc = "0: NO_INTR"]
INT_EVENT0_IIDX_STAT_NO_INTR = 0 , # [doc = "1: RTFG"]
INT_EVENT0_IIDX_STAT_RTFG = 1 , # [doc = "2: FEFG"]
INT_EVENT0_IIDX_STAT_FEFG = 2 , # [doc = "3: PEFG"]
INT_EVENT0_IIDX_STAT_PEFG = 3 , # [doc = "4: BEFG"]
INT_EVENT0_IIDX_STAT_BEFG = 4 , # [doc = "5: OEFG"]
INT_EVENT0_IIDX_STAT_OEFG = 5 , # [doc = "6: RXNE"]
INT_EVENT0_IIDX_STAT_RXNE = 6 , # [doc = "7: RXPE"]
INT_EVENT0_IIDX_STAT_RXPE = 7 , # [doc = "8: LINC0"]
INT_EVENT0_IIDX_STAT_LINC0 = 8 , # [doc = "9: LINC1"]
INT_EVENT0_IIDX_STAT_LINC1 = 9 , # [doc = "10: LINOVF"]
INT_EVENT0_IIDX_STAT_LINOVF = 10 , # [doc = "11: RXIFG"]
INT_EVENT0_IIDX_STAT_RXIFG = 11 , # [doc = "12: TXIFG"]
INT_EVENT0_IIDX_STAT_TXIFG = 12 , # [doc = "13: EOT"]
INT_EVENT0_IIDX_STAT_EOT = 13 , # [doc = "14: MODE_9B"]
INT_EVENT0_IIDX_STAT_MODE_9B = 14 , # [doc = "15: CTS"]
INT_EVENT0_IIDX_STAT_CTS = 15 , # [doc = "16: DMA_DONE_RX"]
INT_EVENT0_IIDX_STAT_DMA_DONE_RX = 16 , # [doc = "17: DMA_DONE_TX"]
INT_EVENT0_IIDX_STAT_DMA_DONE_TX = 17 , # [doc = "18: NERR_EVT"]
INT_EVENT0_IIDX_STAT_NERR_EVT = 18 , } impl From < INT_EVENT0_IIDX_STAT_A > for u8 { # [inline (always)]
fn from (variant : INT_EVENT0_IIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for INT_EVENT0_IIDX_STAT_A { type Ux = u8 ; } impl INT_EVENT0_IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < INT_EVENT0_IIDX_STAT_A > { match self . bits { 0 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_NO_INTR) , 1 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_RTFG) , 2 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_FEFG) , 3 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_PEFG) , 4 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_BEFG) , 5 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_OEFG) , 6 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_RXNE) , 7 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_RXPE) , 8 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_LINC0) , 9 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_LINC1) , 10 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_LINOVF) , 11 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_RXIFG) , 12 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_TXIFG) , 13 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_EOT) , 14 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MODE_9B) , 15 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_CTS) , 16 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DMA_DONE_RX) , 17 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DMA_DONE_TX) , 18 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_NERR_EVT) , _ => None , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_no_intr (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_NO_INTR } # [doc = "RTFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_rtfg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_RTFG } # [doc = "FEFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_fefg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_FEFG } # [doc = "PEFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_pefg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_PEFG } # [doc = "BEFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_befg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_BEFG } # [doc = "OEFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_oefg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_OEFG } # [doc = "RXNE"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_rxne (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_RXNE } # [doc = "RXPE"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_rxpe (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_RXPE } # [doc = "LINC0"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_linc0 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_LINC0 } # [doc = "LINC1"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_linc1 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_LINC1 } # [doc = "LINOVF"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_linovf (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_LINOVF } # [doc = "RXIFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_rxifg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_RXIFG } # [doc = "TXIFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_txifg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_TXIFG } # [doc = "EOT"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_eot (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_EOT } # [doc = "MODE_9B"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_mode_9b (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MODE_9B } # [doc = "CTS"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_cts (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_CTS } # [doc = "DMA_DONE_RX"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dma_done_rx (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DMA_DONE_RX } # [doc = "DMA_DONE_TX"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dma_done_tx (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DMA_DONE_TX } # [doc = "NERR_EVT"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_nerr_evt (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_NERR_EVT } } impl R { # [doc = "Bits 0:7 - UART Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in UARTRIS and UARTMISC. 15h-1Fh = Reserved"]
# [inline (always)]
pub fn int_event0_iidx_stat (& self) -> INT_EVENT0_IIDX_STAT_R { INT_EVENT0_IIDX_STAT_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_IIDX_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event0_iidx::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT0_IIDX_SPEC { } # [doc = "`reset()` method sets INT_EVENT0_IIDX to value 0"]
impl crate :: Resettable for INT_EVENT0_IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_IMASK (rw) register accessor: Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_imask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_imask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_imask`]
module"]
pub type INT_EVENT0_IMASK = crate :: Reg < int_event0_imask :: INT_EVENT0_IMASK_SPEC > ; # [doc = "Interrupt mask"]
pub mod int_event0_imask { # [doc = "Register `INT_EVENT0_IMASK` reader"]
pub type R = crate :: R < INT_EVENT0_IMASK_SPEC > ; # [doc = "Register `INT_EVENT0_IMASK` writer"]
pub type W = crate :: W < INT_EVENT0_IMASK_SPEC > ; # [doc = "Field `INT_EVENT0_IMASK_RTOUT` reader - Enable UARTOUT Receive Time-Out Interrupt."]
pub type INT_EVENT0_IMASK_RTOUT_R = crate :: BitReader < INT_EVENT0_IMASK_RTOUT_A > ; # [doc = "Enable UARTOUT Receive Time-Out Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_RTOUT_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_RTOUT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_RTOUT_SET = 1 , } impl From < INT_EVENT0_IMASK_RTOUT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_RTOUT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_RTOUT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_RTOUT_A { match self . bits { false => INT_EVENT0_IMASK_RTOUT_A :: INT_EVENT0_IMASK_RTOUT_CLR , true => INT_EVENT0_IMASK_RTOUT_A :: INT_EVENT0_IMASK_RTOUT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_rtout_clr (& self) -> bool { * self == INT_EVENT0_IMASK_RTOUT_A :: INT_EVENT0_IMASK_RTOUT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_rtout_set (& self) -> bool { * self == INT_EVENT0_IMASK_RTOUT_A :: INT_EVENT0_IMASK_RTOUT_SET } } # [doc = "Field `INT_EVENT0_IMASK_RTOUT` writer - Enable UARTOUT Receive Time-Out Interrupt."]
pub type INT_EVENT0_IMASK_RTOUT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_RTOUT_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_RTOUT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_rtout_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_RTOUT_A :: INT_EVENT0_IMASK_RTOUT_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_rtout_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_RTOUT_A :: INT_EVENT0_IMASK_RTOUT_SET) } } # [doc = "Field `INT_EVENT0_IMASK_FRMERR` reader - Enable UART Framing Error Interrupt."]
pub type INT_EVENT0_IMASK_FRMERR_R = crate :: BitReader < INT_EVENT0_IMASK_FRMERR_A > ; # [doc = "Enable UART Framing Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_FRMERR_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_FRMERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_FRMERR_SET = 1 , } impl From < INT_EVENT0_IMASK_FRMERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_FRMERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_FRMERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_FRMERR_A { match self . bits { false => INT_EVENT0_IMASK_FRMERR_A :: INT_EVENT0_IMASK_FRMERR_CLR , true => INT_EVENT0_IMASK_FRMERR_A :: INT_EVENT0_IMASK_FRMERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_frmerr_clr (& self) -> bool { * self == INT_EVENT0_IMASK_FRMERR_A :: INT_EVENT0_IMASK_FRMERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_frmerr_set (& self) -> bool { * self == INT_EVENT0_IMASK_FRMERR_A :: INT_EVENT0_IMASK_FRMERR_SET } } # [doc = "Field `INT_EVENT0_IMASK_FRMERR` writer - Enable UART Framing Error Interrupt."]
pub type INT_EVENT0_IMASK_FRMERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_FRMERR_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_FRMERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_frmerr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_FRMERR_A :: INT_EVENT0_IMASK_FRMERR_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_frmerr_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_FRMERR_A :: INT_EVENT0_IMASK_FRMERR_SET) } } # [doc = "Field `INT_EVENT0_IMASK_PARERR` reader - Enable UART Parity Error Interrupt."]
pub type INT_EVENT0_IMASK_PARERR_R = crate :: BitReader < INT_EVENT0_IMASK_PARERR_A > ; # [doc = "Enable UART Parity Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_PARERR_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_PARERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_PARERR_SET = 1 , } impl From < INT_EVENT0_IMASK_PARERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_PARERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_PARERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_PARERR_A { match self . bits { false => INT_EVENT0_IMASK_PARERR_A :: INT_EVENT0_IMASK_PARERR_CLR , true => INT_EVENT0_IMASK_PARERR_A :: INT_EVENT0_IMASK_PARERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_parerr_clr (& self) -> bool { * self == INT_EVENT0_IMASK_PARERR_A :: INT_EVENT0_IMASK_PARERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_parerr_set (& self) -> bool { * self == INT_EVENT0_IMASK_PARERR_A :: INT_EVENT0_IMASK_PARERR_SET } } # [doc = "Field `INT_EVENT0_IMASK_PARERR` writer - Enable UART Parity Error Interrupt."]
pub type INT_EVENT0_IMASK_PARERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_PARERR_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_PARERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_parerr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_PARERR_A :: INT_EVENT0_IMASK_PARERR_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_parerr_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_PARERR_A :: INT_EVENT0_IMASK_PARERR_SET) } } # [doc = "Field `INT_EVENT0_IMASK_BRKERR` reader - Enable UART Break Error Interrupt."]
pub type INT_EVENT0_IMASK_BRKERR_R = crate :: BitReader < INT_EVENT0_IMASK_BRKERR_A > ; # [doc = "Enable UART Break Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_BRKERR_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_BRKERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_BRKERR_SET = 1 , } impl From < INT_EVENT0_IMASK_BRKERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_BRKERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_BRKERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_BRKERR_A { match self . bits { false => INT_EVENT0_IMASK_BRKERR_A :: INT_EVENT0_IMASK_BRKERR_CLR , true => INT_EVENT0_IMASK_BRKERR_A :: INT_EVENT0_IMASK_BRKERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_brkerr_clr (& self) -> bool { * self == INT_EVENT0_IMASK_BRKERR_A :: INT_EVENT0_IMASK_BRKERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_brkerr_set (& self) -> bool { * self == INT_EVENT0_IMASK_BRKERR_A :: INT_EVENT0_IMASK_BRKERR_SET } } # [doc = "Field `INT_EVENT0_IMASK_BRKERR` writer - Enable UART Break Error Interrupt."]
pub type INT_EVENT0_IMASK_BRKERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_BRKERR_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_BRKERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_brkerr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_BRKERR_A :: INT_EVENT0_IMASK_BRKERR_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_brkerr_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_BRKERR_A :: INT_EVENT0_IMASK_BRKERR_SET) } } # [doc = "Field `INT_EVENT0_IMASK_OVRERR` reader - Enable UART Receive Overrun Error Interrupt."]
pub type INT_EVENT0_IMASK_OVRERR_R = crate :: BitReader < INT_EVENT0_IMASK_OVRERR_A > ; # [doc = "Enable UART Receive Overrun Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_OVRERR_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_OVRERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_OVRERR_SET = 1 , } impl From < INT_EVENT0_IMASK_OVRERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_OVRERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_OVRERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_OVRERR_A { match self . bits { false => INT_EVENT0_IMASK_OVRERR_A :: INT_EVENT0_IMASK_OVRERR_CLR , true => INT_EVENT0_IMASK_OVRERR_A :: INT_EVENT0_IMASK_OVRERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_ovrerr_clr (& self) -> bool { * self == INT_EVENT0_IMASK_OVRERR_A :: INT_EVENT0_IMASK_OVRERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_ovrerr_set (& self) -> bool { * self == INT_EVENT0_IMASK_OVRERR_A :: INT_EVENT0_IMASK_OVRERR_SET } } # [doc = "Field `INT_EVENT0_IMASK_OVRERR` writer - Enable UART Receive Overrun Error Interrupt."]
pub type INT_EVENT0_IMASK_OVRERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_OVRERR_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_OVRERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_ovrerr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_OVRERR_A :: INT_EVENT0_IMASK_OVRERR_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_ovrerr_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_OVRERR_A :: INT_EVENT0_IMASK_OVRERR_SET) } } # [doc = "Field `INT_EVENT0_IMASK_RXNE` reader - Enable Negative Edge on UARTxRXD Interrupt."]
pub type INT_EVENT0_IMASK_RXNE_R = crate :: BitReader < INT_EVENT0_IMASK_RXNE_A > ; # [doc = "Enable Negative Edge on UARTxRXD Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_RXNE_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_RXNE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_RXNE_SET = 1 , } impl From < INT_EVENT0_IMASK_RXNE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_RXNE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_RXNE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_RXNE_A { match self . bits { false => INT_EVENT0_IMASK_RXNE_A :: INT_EVENT0_IMASK_RXNE_CLR , true => INT_EVENT0_IMASK_RXNE_A :: INT_EVENT0_IMASK_RXNE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_rxne_clr (& self) -> bool { * self == INT_EVENT0_IMASK_RXNE_A :: INT_EVENT0_IMASK_RXNE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_rxne_set (& self) -> bool { * self == INT_EVENT0_IMASK_RXNE_A :: INT_EVENT0_IMASK_RXNE_SET } } # [doc = "Field `INT_EVENT0_IMASK_RXNE` writer - Enable Negative Edge on UARTxRXD Interrupt."]
pub type INT_EVENT0_IMASK_RXNE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_RXNE_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_RXNE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_rxne_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_RXNE_A :: INT_EVENT0_IMASK_RXNE_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_rxne_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_RXNE_A :: INT_EVENT0_IMASK_RXNE_SET) } } # [doc = "Field `INT_EVENT0_IMASK_RXPE` reader - Enable Positive Edge on UARTxRXD Interrupt."]
pub type INT_EVENT0_IMASK_RXPE_R = crate :: BitReader < INT_EVENT0_IMASK_RXPE_A > ; # [doc = "Enable Positive Edge on UARTxRXD Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_RXPE_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_RXPE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_RXPE_SET = 1 , } impl From < INT_EVENT0_IMASK_RXPE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_RXPE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_RXPE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_RXPE_A { match self . bits { false => INT_EVENT0_IMASK_RXPE_A :: INT_EVENT0_IMASK_RXPE_CLR , true => INT_EVENT0_IMASK_RXPE_A :: INT_EVENT0_IMASK_RXPE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_rxpe_clr (& self) -> bool { * self == INT_EVENT0_IMASK_RXPE_A :: INT_EVENT0_IMASK_RXPE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_rxpe_set (& self) -> bool { * self == INT_EVENT0_IMASK_RXPE_A :: INT_EVENT0_IMASK_RXPE_SET } } # [doc = "Field `INT_EVENT0_IMASK_RXPE` writer - Enable Positive Edge on UARTxRXD Interrupt."]
pub type INT_EVENT0_IMASK_RXPE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_RXPE_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_RXPE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_rxpe_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_RXPE_A :: INT_EVENT0_IMASK_RXPE_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_rxpe_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_RXPE_A :: INT_EVENT0_IMASK_RXPE_SET) } } # [doc = "Field `INT_EVENT0_IMASK_LINC0` reader - Enable LIN Capture 0 / Match Interrupt ."]
pub type INT_EVENT0_IMASK_LINC0_R = crate :: BitReader < INT_EVENT0_IMASK_LINC0_A > ; # [doc = "Enable LIN Capture 0 / Match Interrupt .\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_LINC0_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_LINC0_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_LINC0_SET = 1 , } impl From < INT_EVENT0_IMASK_LINC0_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_LINC0_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_LINC0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_LINC0_A { match self . bits { false => INT_EVENT0_IMASK_LINC0_A :: INT_EVENT0_IMASK_LINC0_CLR , true => INT_EVENT0_IMASK_LINC0_A :: INT_EVENT0_IMASK_LINC0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_linc0_clr (& self) -> bool { * self == INT_EVENT0_IMASK_LINC0_A :: INT_EVENT0_IMASK_LINC0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_linc0_set (& self) -> bool { * self == INT_EVENT0_IMASK_LINC0_A :: INT_EVENT0_IMASK_LINC0_SET } } # [doc = "Field `INT_EVENT0_IMASK_LINC0` writer - Enable LIN Capture 0 / Match Interrupt ."]
pub type INT_EVENT0_IMASK_LINC0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_LINC0_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_LINC0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_linc0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_LINC0_A :: INT_EVENT0_IMASK_LINC0_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_linc0_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_LINC0_A :: INT_EVENT0_IMASK_LINC0_SET) } } # [doc = "Field `INT_EVENT0_IMASK_LINC1` reader - Enable LIN Capture 1 Interrupt."]
pub type INT_EVENT0_IMASK_LINC1_R = crate :: BitReader < INT_EVENT0_IMASK_LINC1_A > ; # [doc = "Enable LIN Capture 1 Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_LINC1_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_LINC1_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_LINC1_SET = 1 , } impl From < INT_EVENT0_IMASK_LINC1_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_LINC1_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_LINC1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_LINC1_A { match self . bits { false => INT_EVENT0_IMASK_LINC1_A :: INT_EVENT0_IMASK_LINC1_CLR , true => INT_EVENT0_IMASK_LINC1_A :: INT_EVENT0_IMASK_LINC1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_linc1_clr (& self) -> bool { * self == INT_EVENT0_IMASK_LINC1_A :: INT_EVENT0_IMASK_LINC1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_linc1_set (& self) -> bool { * self == INT_EVENT0_IMASK_LINC1_A :: INT_EVENT0_IMASK_LINC1_SET } } # [doc = "Field `INT_EVENT0_IMASK_LINC1` writer - Enable LIN Capture 1 Interrupt."]
pub type INT_EVENT0_IMASK_LINC1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_LINC1_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_LINC1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_linc1_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_LINC1_A :: INT_EVENT0_IMASK_LINC1_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_linc1_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_LINC1_A :: INT_EVENT0_IMASK_LINC1_SET) } } # [doc = "Field `INT_EVENT0_IMASK_LINOVF` reader - Enable LIN Hardware Counter Overflow Interrupt."]
pub type INT_EVENT0_IMASK_LINOVF_R = crate :: BitReader < INT_EVENT0_IMASK_LINOVF_A > ; # [doc = "Enable LIN Hardware Counter Overflow Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_LINOVF_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_LINOVF_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_LINOVF_SET = 1 , } impl From < INT_EVENT0_IMASK_LINOVF_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_LINOVF_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_LINOVF_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_LINOVF_A { match self . bits { false => INT_EVENT0_IMASK_LINOVF_A :: INT_EVENT0_IMASK_LINOVF_CLR , true => INT_EVENT0_IMASK_LINOVF_A :: INT_EVENT0_IMASK_LINOVF_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_linovf_clr (& self) -> bool { * self == INT_EVENT0_IMASK_LINOVF_A :: INT_EVENT0_IMASK_LINOVF_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_linovf_set (& self) -> bool { * self == INT_EVENT0_IMASK_LINOVF_A :: INT_EVENT0_IMASK_LINOVF_SET } } # [doc = "Field `INT_EVENT0_IMASK_LINOVF` writer - Enable LIN Hardware Counter Overflow Interrupt."]
pub type INT_EVENT0_IMASK_LINOVF_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_LINOVF_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_LINOVF_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_linovf_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_LINOVF_A :: INT_EVENT0_IMASK_LINOVF_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_linovf_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_LINOVF_A :: INT_EVENT0_IMASK_LINOVF_SET) } } # [doc = "Field `INT_EVENT0_IMASK_RXINT` reader - Enable UART Receive Interrupt."]
pub type INT_EVENT0_IMASK_RXINT_R = crate :: BitReader < INT_EVENT0_IMASK_RXINT_A > ; # [doc = "Enable UART Receive Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_RXINT_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_RXINT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_RXINT_SET = 1 , } impl From < INT_EVENT0_IMASK_RXINT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_RXINT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_RXINT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_RXINT_A { match self . bits { false => INT_EVENT0_IMASK_RXINT_A :: INT_EVENT0_IMASK_RXINT_CLR , true => INT_EVENT0_IMASK_RXINT_A :: INT_EVENT0_IMASK_RXINT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_rxint_clr (& self) -> bool { * self == INT_EVENT0_IMASK_RXINT_A :: INT_EVENT0_IMASK_RXINT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_rxint_set (& self) -> bool { * self == INT_EVENT0_IMASK_RXINT_A :: INT_EVENT0_IMASK_RXINT_SET } } # [doc = "Field `INT_EVENT0_IMASK_RXINT` writer - Enable UART Receive Interrupt."]
pub type INT_EVENT0_IMASK_RXINT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_RXINT_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_RXINT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_rxint_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_RXINT_A :: INT_EVENT0_IMASK_RXINT_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_rxint_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_RXINT_A :: INT_EVENT0_IMASK_RXINT_SET) } } # [doc = "Field `INT_EVENT0_IMASK_TXINT` reader - Enable UART Transmit Interrupt."]
pub type INT_EVENT0_IMASK_TXINT_R = crate :: BitReader < INT_EVENT0_IMASK_TXINT_A > ; # [doc = "Enable UART Transmit Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_TXINT_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_TXINT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_TXINT_SET = 1 , } impl From < INT_EVENT0_IMASK_TXINT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_TXINT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_TXINT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_TXINT_A { match self . bits { false => INT_EVENT0_IMASK_TXINT_A :: INT_EVENT0_IMASK_TXINT_CLR , true => INT_EVENT0_IMASK_TXINT_A :: INT_EVENT0_IMASK_TXINT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_txint_clr (& self) -> bool { * self == INT_EVENT0_IMASK_TXINT_A :: INT_EVENT0_IMASK_TXINT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_txint_set (& self) -> bool { * self == INT_EVENT0_IMASK_TXINT_A :: INT_EVENT0_IMASK_TXINT_SET } } # [doc = "Field `INT_EVENT0_IMASK_TXINT` writer - Enable UART Transmit Interrupt."]
pub type INT_EVENT0_IMASK_TXINT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_TXINT_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_TXINT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_txint_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_TXINT_A :: INT_EVENT0_IMASK_TXINT_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_txint_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_TXINT_A :: INT_EVENT0_IMASK_TXINT_SET) } } # [doc = "Field `INT_EVENT0_IMASK_EOT` reader - Enable UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer."]
pub type INT_EVENT0_IMASK_EOT_R = crate :: BitReader < INT_EVENT0_IMASK_EOT_A > ; # [doc = "Enable UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_EOT_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_EOT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_EOT_SET = 1 , } impl From < INT_EVENT0_IMASK_EOT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_EOT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_EOT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_EOT_A { match self . bits { false => INT_EVENT0_IMASK_EOT_A :: INT_EVENT0_IMASK_EOT_CLR , true => INT_EVENT0_IMASK_EOT_A :: INT_EVENT0_IMASK_EOT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_eot_clr (& self) -> bool { * self == INT_EVENT0_IMASK_EOT_A :: INT_EVENT0_IMASK_EOT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_eot_set (& self) -> bool { * self == INT_EVENT0_IMASK_EOT_A :: INT_EVENT0_IMASK_EOT_SET } } # [doc = "Field `INT_EVENT0_IMASK_EOT` writer - Enable UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer."]
pub type INT_EVENT0_IMASK_EOT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_EOT_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_EOT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_eot_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_EOT_A :: INT_EVENT0_IMASK_EOT_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_eot_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_EOT_A :: INT_EVENT0_IMASK_EOT_SET) } } # [doc = "Field `INT_EVENT0_IMASK_ADDR_MATCH` reader - Enable Address Match Interrupt."]
pub type INT_EVENT0_IMASK_ADDR_MATCH_R = crate :: BitReader < INT_EVENT0_IMASK_ADDR_MATCH_A > ; # [doc = "Enable Address Match Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_ADDR_MATCH_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_ADDR_MATCH_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_ADDR_MATCH_SET = 1 , } impl From < INT_EVENT0_IMASK_ADDR_MATCH_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_ADDR_MATCH_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_ADDR_MATCH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_ADDR_MATCH_A { match self . bits { false => INT_EVENT0_IMASK_ADDR_MATCH_A :: INT_EVENT0_IMASK_ADDR_MATCH_CLR , true => INT_EVENT0_IMASK_ADDR_MATCH_A :: INT_EVENT0_IMASK_ADDR_MATCH_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_addr_match_clr (& self) -> bool { * self == INT_EVENT0_IMASK_ADDR_MATCH_A :: INT_EVENT0_IMASK_ADDR_MATCH_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_addr_match_set (& self) -> bool { * self == INT_EVENT0_IMASK_ADDR_MATCH_A :: INT_EVENT0_IMASK_ADDR_MATCH_SET } } # [doc = "Field `INT_EVENT0_IMASK_ADDR_MATCH` writer - Enable Address Match Interrupt."]
pub type INT_EVENT0_IMASK_ADDR_MATCH_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_ADDR_MATCH_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_ADDR_MATCH_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_addr_match_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_ADDR_MATCH_A :: INT_EVENT0_IMASK_ADDR_MATCH_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_addr_match_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_ADDR_MATCH_A :: INT_EVENT0_IMASK_ADDR_MATCH_SET) } } # [doc = "Field `INT_EVENT0_IMASK_CTS` reader - Enable UART Clear to Send Modem Interrupt. 0 = Interrupt disabled"]
pub type INT_EVENT0_IMASK_CTS_R = crate :: BitReader < INT_EVENT0_IMASK_CTS_A > ; # [doc = "Enable UART Clear to Send Modem Interrupt. 0 = Interrupt disabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_CTS_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_CTS_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_CTS_SET = 1 , } impl From < INT_EVENT0_IMASK_CTS_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_CTS_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_CTS_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_CTS_A { match self . bits { false => INT_EVENT0_IMASK_CTS_A :: INT_EVENT0_IMASK_CTS_CLR , true => INT_EVENT0_IMASK_CTS_A :: INT_EVENT0_IMASK_CTS_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_cts_clr (& self) -> bool { * self == INT_EVENT0_IMASK_CTS_A :: INT_EVENT0_IMASK_CTS_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_cts_set (& self) -> bool { * self == INT_EVENT0_IMASK_CTS_A :: INT_EVENT0_IMASK_CTS_SET } } # [doc = "Field `INT_EVENT0_IMASK_CTS` writer - Enable UART Clear to Send Modem Interrupt. 0 = Interrupt disabled"]
pub type INT_EVENT0_IMASK_CTS_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_CTS_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_CTS_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_cts_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_CTS_A :: INT_EVENT0_IMASK_CTS_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_cts_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_CTS_A :: INT_EVENT0_IMASK_CTS_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DMA_DONE_RX` reader - Enable DMA Done on RX Event Channel"]
pub type INT_EVENT0_IMASK_DMA_DONE_RX_R = crate :: BitReader < INT_EVENT0_IMASK_DMA_DONE_RX_A > ; # [doc = "Enable DMA Done on RX Event Channel\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DMA_DONE_RX_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DMA_DONE_RX_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DMA_DONE_RX_SET = 1 , } impl From < INT_EVENT0_IMASK_DMA_DONE_RX_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DMA_DONE_RX_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DMA_DONE_RX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DMA_DONE_RX_A { match self . bits { false => INT_EVENT0_IMASK_DMA_DONE_RX_A :: INT_EVENT0_IMASK_DMA_DONE_RX_CLR , true => INT_EVENT0_IMASK_DMA_DONE_RX_A :: INT_EVENT0_IMASK_DMA_DONE_RX_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dma_done_rx_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DMA_DONE_RX_A :: INT_EVENT0_IMASK_DMA_DONE_RX_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dma_done_rx_set (& self) -> bool { * self == INT_EVENT0_IMASK_DMA_DONE_RX_A :: INT_EVENT0_IMASK_DMA_DONE_RX_SET } } # [doc = "Field `INT_EVENT0_IMASK_DMA_DONE_RX` writer - Enable DMA Done on RX Event Channel"]
pub type INT_EVENT0_IMASK_DMA_DONE_RX_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DMA_DONE_RX_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DMA_DONE_RX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dma_done_rx_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DMA_DONE_RX_A :: INT_EVENT0_IMASK_DMA_DONE_RX_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dma_done_rx_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DMA_DONE_RX_A :: INT_EVENT0_IMASK_DMA_DONE_RX_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DMA_DONE_TX` reader - Enable DMA Done on TX Event Channel"]
pub type INT_EVENT0_IMASK_DMA_DONE_TX_R = crate :: BitReader < INT_EVENT0_IMASK_DMA_DONE_TX_A > ; # [doc = "Enable DMA Done on TX Event Channel\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DMA_DONE_TX_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DMA_DONE_TX_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DMA_DONE_TX_SET = 1 , } impl From < INT_EVENT0_IMASK_DMA_DONE_TX_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DMA_DONE_TX_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DMA_DONE_TX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DMA_DONE_TX_A { match self . bits { false => INT_EVENT0_IMASK_DMA_DONE_TX_A :: INT_EVENT0_IMASK_DMA_DONE_TX_CLR , true => INT_EVENT0_IMASK_DMA_DONE_TX_A :: INT_EVENT0_IMASK_DMA_DONE_TX_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dma_done_tx_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DMA_DONE_TX_A :: INT_EVENT0_IMASK_DMA_DONE_TX_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dma_done_tx_set (& self) -> bool { * self == INT_EVENT0_IMASK_DMA_DONE_TX_A :: INT_EVENT0_IMASK_DMA_DONE_TX_SET } } # [doc = "Field `INT_EVENT0_IMASK_DMA_DONE_TX` writer - Enable DMA Done on TX Event Channel"]
pub type INT_EVENT0_IMASK_DMA_DONE_TX_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DMA_DONE_TX_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DMA_DONE_TX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dma_done_tx_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DMA_DONE_TX_A :: INT_EVENT0_IMASK_DMA_DONE_TX_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dma_done_tx_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DMA_DONE_TX_A :: INT_EVENT0_IMASK_DMA_DONE_TX_SET) } } # [doc = "Field `INT_EVENT0_IMASK_NERR` reader - Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal"]
pub type INT_EVENT0_IMASK_NERR_R = crate :: BitReader < INT_EVENT0_IMASK_NERR_A > ; # [doc = "Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_NERR_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_NERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_NERR_SET = 1 , } impl From < INT_EVENT0_IMASK_NERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_NERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_NERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_NERR_A { match self . bits { false => INT_EVENT0_IMASK_NERR_A :: INT_EVENT0_IMASK_NERR_CLR , true => INT_EVENT0_IMASK_NERR_A :: INT_EVENT0_IMASK_NERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_nerr_clr (& self) -> bool { * self == INT_EVENT0_IMASK_NERR_A :: INT_EVENT0_IMASK_NERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_nerr_set (& self) -> bool { * self == INT_EVENT0_IMASK_NERR_A :: INT_EVENT0_IMASK_NERR_SET } } # [doc = "Field `INT_EVENT0_IMASK_NERR` writer - Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal"]
pub type INT_EVENT0_IMASK_NERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_NERR_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_NERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_nerr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_NERR_A :: INT_EVENT0_IMASK_NERR_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_nerr_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_NERR_A :: INT_EVENT0_IMASK_NERR_SET) } } impl R { # [doc = "Bit 0 - Enable UARTOUT Receive Time-Out Interrupt."]
# [inline (always)]
pub fn int_event0_imask_rtout (& self) -> INT_EVENT0_IMASK_RTOUT_R { INT_EVENT0_IMASK_RTOUT_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Enable UART Framing Error Interrupt."]
# [inline (always)]
pub fn int_event0_imask_frmerr (& self) -> INT_EVENT0_IMASK_FRMERR_R { INT_EVENT0_IMASK_FRMERR_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Enable UART Parity Error Interrupt."]
# [inline (always)]
pub fn int_event0_imask_parerr (& self) -> INT_EVENT0_IMASK_PARERR_R { INT_EVENT0_IMASK_PARERR_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Enable UART Break Error Interrupt."]
# [inline (always)]
pub fn int_event0_imask_brkerr (& self) -> INT_EVENT0_IMASK_BRKERR_R { INT_EVENT0_IMASK_BRKERR_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - Enable UART Receive Overrun Error Interrupt."]
# [inline (always)]
pub fn int_event0_imask_ovrerr (& self) -> INT_EVENT0_IMASK_OVRERR_R { INT_EVENT0_IMASK_OVRERR_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Enable Negative Edge on UARTxRXD Interrupt."]
# [inline (always)]
pub fn int_event0_imask_rxne (& self) -> INT_EVENT0_IMASK_RXNE_R { INT_EVENT0_IMASK_RXNE_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - Enable Positive Edge on UARTxRXD Interrupt."]
# [inline (always)]
pub fn int_event0_imask_rxpe (& self) -> INT_EVENT0_IMASK_RXPE_R { INT_EVENT0_IMASK_RXPE_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 7 - Enable LIN Capture 0 / Match Interrupt ."]
# [inline (always)]
pub fn int_event0_imask_linc0 (& self) -> INT_EVENT0_IMASK_LINC0_R { INT_EVENT0_IMASK_LINC0_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - Enable LIN Capture 1 Interrupt."]
# [inline (always)]
pub fn int_event0_imask_linc1 (& self) -> INT_EVENT0_IMASK_LINC1_R { INT_EVENT0_IMASK_LINC1_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - Enable LIN Hardware Counter Overflow Interrupt."]
# [inline (always)]
pub fn int_event0_imask_linovf (& self) -> INT_EVENT0_IMASK_LINOVF_R { INT_EVENT0_IMASK_LINOVF_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - Enable UART Receive Interrupt."]
# [inline (always)]
pub fn int_event0_imask_rxint (& self) -> INT_EVENT0_IMASK_RXINT_R { INT_EVENT0_IMASK_RXINT_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bit 11 - Enable UART Transmit Interrupt."]
# [inline (always)]
pub fn int_event0_imask_txint (& self) -> INT_EVENT0_IMASK_TXINT_R { INT_EVENT0_IMASK_TXINT_R :: new (((self . bits >> 11) & 1) != 0) } # [doc = "Bit 12 - Enable UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer."]
# [inline (always)]
pub fn int_event0_imask_eot (& self) -> INT_EVENT0_IMASK_EOT_R { INT_EVENT0_IMASK_EOT_R :: new (((self . bits >> 12) & 1) != 0) } # [doc = "Bit 13 - Enable Address Match Interrupt."]
# [inline (always)]
pub fn int_event0_imask_addr_match (& self) -> INT_EVENT0_IMASK_ADDR_MATCH_R { INT_EVENT0_IMASK_ADDR_MATCH_R :: new (((self . bits >> 13) & 1) != 0) } # [doc = "Bit 14 - Enable UART Clear to Send Modem Interrupt. 0 = Interrupt disabled"]
# [inline (always)]
pub fn int_event0_imask_cts (& self) -> INT_EVENT0_IMASK_CTS_R { INT_EVENT0_IMASK_CTS_R :: new (((self . bits >> 14) & 1) != 0) } # [doc = "Bit 15 - Enable DMA Done on RX Event Channel"]
# [inline (always)]
pub fn int_event0_imask_dma_done_rx (& self) -> INT_EVENT0_IMASK_DMA_DONE_RX_R { INT_EVENT0_IMASK_DMA_DONE_RX_R :: new (((self . bits >> 15) & 1) != 0) } # [doc = "Bit 16 - Enable DMA Done on TX Event Channel"]
# [inline (always)]
pub fn int_event0_imask_dma_done_tx (& self) -> INT_EVENT0_IMASK_DMA_DONE_TX_R { INT_EVENT0_IMASK_DMA_DONE_TX_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 17 - Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal"]
# [inline (always)]
pub fn int_event0_imask_nerr (& self) -> INT_EVENT0_IMASK_NERR_R { INT_EVENT0_IMASK_NERR_R :: new (((self . bits >> 17) & 1) != 0) } } impl W { # [doc = "Bit 0 - Enable UARTOUT Receive Time-Out Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_rtout (& mut self) -> INT_EVENT0_IMASK_RTOUT_W < INT_EVENT0_IMASK_SPEC , 0 > { INT_EVENT0_IMASK_RTOUT_W :: new (self) } # [doc = "Bit 1 - Enable UART Framing Error Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_frmerr (& mut self) -> INT_EVENT0_IMASK_FRMERR_W < INT_EVENT0_IMASK_SPEC , 1 > { INT_EVENT0_IMASK_FRMERR_W :: new (self) } # [doc = "Bit 2 - Enable UART Parity Error Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_parerr (& mut self) -> INT_EVENT0_IMASK_PARERR_W < INT_EVENT0_IMASK_SPEC , 2 > { INT_EVENT0_IMASK_PARERR_W :: new (self) } # [doc = "Bit 3 - Enable UART Break Error Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_brkerr (& mut self) -> INT_EVENT0_IMASK_BRKERR_W < INT_EVENT0_IMASK_SPEC , 3 > { INT_EVENT0_IMASK_BRKERR_W :: new (self) } # [doc = "Bit 4 - Enable UART Receive Overrun Error Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_ovrerr (& mut self) -> INT_EVENT0_IMASK_OVRERR_W < INT_EVENT0_IMASK_SPEC , 4 > { INT_EVENT0_IMASK_OVRERR_W :: new (self) } # [doc = "Bit 5 - Enable Negative Edge on UARTxRXD Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_rxne (& mut self) -> INT_EVENT0_IMASK_RXNE_W < INT_EVENT0_IMASK_SPEC , 5 > { INT_EVENT0_IMASK_RXNE_W :: new (self) } # [doc = "Bit 6 - Enable Positive Edge on UARTxRXD Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_rxpe (& mut self) -> INT_EVENT0_IMASK_RXPE_W < INT_EVENT0_IMASK_SPEC , 6 > { INT_EVENT0_IMASK_RXPE_W :: new (self) } # [doc = "Bit 7 - Enable LIN Capture 0 / Match Interrupt ."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_linc0 (& mut self) -> INT_EVENT0_IMASK_LINC0_W < INT_EVENT0_IMASK_SPEC , 7 > { INT_EVENT0_IMASK_LINC0_W :: new (self) } # [doc = "Bit 8 - Enable LIN Capture 1 Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_linc1 (& mut self) -> INT_EVENT0_IMASK_LINC1_W < INT_EVENT0_IMASK_SPEC , 8 > { INT_EVENT0_IMASK_LINC1_W :: new (self) } # [doc = "Bit 9 - Enable LIN Hardware Counter Overflow Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_linovf (& mut self) -> INT_EVENT0_IMASK_LINOVF_W < INT_EVENT0_IMASK_SPEC , 9 > { INT_EVENT0_IMASK_LINOVF_W :: new (self) } # [doc = "Bit 10 - Enable UART Receive Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_rxint (& mut self) -> INT_EVENT0_IMASK_RXINT_W < INT_EVENT0_IMASK_SPEC , 10 > { INT_EVENT0_IMASK_RXINT_W :: new (self) } # [doc = "Bit 11 - Enable UART Transmit Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_txint (& mut self) -> INT_EVENT0_IMASK_TXINT_W < INT_EVENT0_IMASK_SPEC , 11 > { INT_EVENT0_IMASK_TXINT_W :: new (self) } # [doc = "Bit 12 - Enable UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_eot (& mut self) -> INT_EVENT0_IMASK_EOT_W < INT_EVENT0_IMASK_SPEC , 12 > { INT_EVENT0_IMASK_EOT_W :: new (self) } # [doc = "Bit 13 - Enable Address Match Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_addr_match (& mut self) -> INT_EVENT0_IMASK_ADDR_MATCH_W < INT_EVENT0_IMASK_SPEC , 13 > { INT_EVENT0_IMASK_ADDR_MATCH_W :: new (self) } # [doc = "Bit 14 - Enable UART Clear to Send Modem Interrupt. 0 = Interrupt disabled"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_cts (& mut self) -> INT_EVENT0_IMASK_CTS_W < INT_EVENT0_IMASK_SPEC , 14 > { INT_EVENT0_IMASK_CTS_W :: new (self) } # [doc = "Bit 15 - Enable DMA Done on RX Event Channel"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dma_done_rx (& mut self) -> INT_EVENT0_IMASK_DMA_DONE_RX_W < INT_EVENT0_IMASK_SPEC , 15 > { INT_EVENT0_IMASK_DMA_DONE_RX_W :: new (self) } # [doc = "Bit 16 - Enable DMA Done on TX Event Channel"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dma_done_tx (& mut self) -> INT_EVENT0_IMASK_DMA_DONE_TX_W < INT_EVENT0_IMASK_SPEC , 16 > { INT_EVENT0_IMASK_DMA_DONE_TX_W :: new (self) } # [doc = "Bit 17 - Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_nerr (& mut self) -> INT_EVENT0_IMASK_NERR_W < INT_EVENT0_IMASK_SPEC , 17 > { INT_EVENT0_IMASK_NERR_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_imask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_imask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_IMASK_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event0_imask::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT0_IMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`int_event0_imask::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT0_IMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT0_IMASK to value 0"]
impl crate :: Resettable for INT_EVENT0_IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_RIS (r) register accessor: Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_ris`]
module"]
pub type INT_EVENT0_RIS = crate :: Reg < int_event0_ris :: INT_EVENT0_RIS_SPEC > ; # [doc = "Raw interrupt status"]
pub mod int_event0_ris { # [doc = "Register `INT_EVENT0_RIS` reader"]
pub type R = crate :: R < INT_EVENT0_RIS_SPEC > ; # [doc = "Field `INT_EVENT0_RIS_RTOUT` reader - UARTOUT Receive Time-Out Interrupt."]
pub type INT_EVENT0_RIS_RTOUT_R = crate :: BitReader < INT_EVENT0_RIS_RTOUT_A > ; # [doc = "UARTOUT Receive Time-Out Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_RTOUT_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_RTOUT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_RTOUT_SET = 1 , } impl From < INT_EVENT0_RIS_RTOUT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_RTOUT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_RTOUT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_RTOUT_A { match self . bits { false => INT_EVENT0_RIS_RTOUT_A :: INT_EVENT0_RIS_RTOUT_CLR , true => INT_EVENT0_RIS_RTOUT_A :: INT_EVENT0_RIS_RTOUT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_rtout_clr (& self) -> bool { * self == INT_EVENT0_RIS_RTOUT_A :: INT_EVENT0_RIS_RTOUT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_rtout_set (& self) -> bool { * self == INT_EVENT0_RIS_RTOUT_A :: INT_EVENT0_RIS_RTOUT_SET } } # [doc = "Field `INT_EVENT0_RIS_FRMERR` reader - UART Framing Error Interrupt."]
pub type INT_EVENT0_RIS_FRMERR_R = crate :: BitReader < INT_EVENT0_RIS_FRMERR_A > ; # [doc = "UART Framing Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_FRMERR_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_FRMERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_FRMERR_SET = 1 , } impl From < INT_EVENT0_RIS_FRMERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_FRMERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_FRMERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_FRMERR_A { match self . bits { false => INT_EVENT0_RIS_FRMERR_A :: INT_EVENT0_RIS_FRMERR_CLR , true => INT_EVENT0_RIS_FRMERR_A :: INT_EVENT0_RIS_FRMERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_frmerr_clr (& self) -> bool { * self == INT_EVENT0_RIS_FRMERR_A :: INT_EVENT0_RIS_FRMERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_frmerr_set (& self) -> bool { * self == INT_EVENT0_RIS_FRMERR_A :: INT_EVENT0_RIS_FRMERR_SET } } # [doc = "Field `INT_EVENT0_RIS_PARERR` reader - UART Parity Error Interrupt."]
pub type INT_EVENT0_RIS_PARERR_R = crate :: BitReader < INT_EVENT0_RIS_PARERR_A > ; # [doc = "UART Parity Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_PARERR_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_PARERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_PARERR_SET = 1 , } impl From < INT_EVENT0_RIS_PARERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_PARERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_PARERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_PARERR_A { match self . bits { false => INT_EVENT0_RIS_PARERR_A :: INT_EVENT0_RIS_PARERR_CLR , true => INT_EVENT0_RIS_PARERR_A :: INT_EVENT0_RIS_PARERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_parerr_clr (& self) -> bool { * self == INT_EVENT0_RIS_PARERR_A :: INT_EVENT0_RIS_PARERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_parerr_set (& self) -> bool { * self == INT_EVENT0_RIS_PARERR_A :: INT_EVENT0_RIS_PARERR_SET } } # [doc = "Field `INT_EVENT0_RIS_BRKERR` reader - UART Break Error Interrupt."]
pub type INT_EVENT0_RIS_BRKERR_R = crate :: BitReader < INT_EVENT0_RIS_BRKERR_A > ; # [doc = "UART Break Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_BRKERR_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_BRKERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_BRKERR_SET = 1 , } impl From < INT_EVENT0_RIS_BRKERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_BRKERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_BRKERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_BRKERR_A { match self . bits { false => INT_EVENT0_RIS_BRKERR_A :: INT_EVENT0_RIS_BRKERR_CLR , true => INT_EVENT0_RIS_BRKERR_A :: INT_EVENT0_RIS_BRKERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_brkerr_clr (& self) -> bool { * self == INT_EVENT0_RIS_BRKERR_A :: INT_EVENT0_RIS_BRKERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_brkerr_set (& self) -> bool { * self == INT_EVENT0_RIS_BRKERR_A :: INT_EVENT0_RIS_BRKERR_SET } } # [doc = "Field `INT_EVENT0_RIS_OVRERR` reader - UART Receive Overrun Error Interrupt."]
pub type INT_EVENT0_RIS_OVRERR_R = crate :: BitReader < INT_EVENT0_RIS_OVRERR_A > ; # [doc = "UART Receive Overrun Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_OVRERR_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_OVRERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_OVRERR_SET = 1 , } impl From < INT_EVENT0_RIS_OVRERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_OVRERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_OVRERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_OVRERR_A { match self . bits { false => INT_EVENT0_RIS_OVRERR_A :: INT_EVENT0_RIS_OVRERR_CLR , true => INT_EVENT0_RIS_OVRERR_A :: INT_EVENT0_RIS_OVRERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_ovrerr_clr (& self) -> bool { * self == INT_EVENT0_RIS_OVRERR_A :: INT_EVENT0_RIS_OVRERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_ovrerr_set (& self) -> bool { * self == INT_EVENT0_RIS_OVRERR_A :: INT_EVENT0_RIS_OVRERR_SET } } # [doc = "Field `INT_EVENT0_RIS_RXNE` reader - Negative Edge on UARTxRXD Interrupt."]
pub type INT_EVENT0_RIS_RXNE_R = crate :: BitReader < INT_EVENT0_RIS_RXNE_A > ; # [doc = "Negative Edge on UARTxRXD Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_RXNE_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_RXNE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_RXNE_SET = 1 , } impl From < INT_EVENT0_RIS_RXNE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_RXNE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_RXNE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_RXNE_A { match self . bits { false => INT_EVENT0_RIS_RXNE_A :: INT_EVENT0_RIS_RXNE_CLR , true => INT_EVENT0_RIS_RXNE_A :: INT_EVENT0_RIS_RXNE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_rxne_clr (& self) -> bool { * self == INT_EVENT0_RIS_RXNE_A :: INT_EVENT0_RIS_RXNE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_rxne_set (& self) -> bool { * self == INT_EVENT0_RIS_RXNE_A :: INT_EVENT0_RIS_RXNE_SET } } # [doc = "Field `INT_EVENT0_RIS_RXPE` reader - Positive Edge on UARTxRXD Interrupt."]
pub type INT_EVENT0_RIS_RXPE_R = crate :: BitReader < INT_EVENT0_RIS_RXPE_A > ; # [doc = "Positive Edge on UARTxRXD Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_RXPE_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_RXPE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_RXPE_SET = 1 , } impl From < INT_EVENT0_RIS_RXPE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_RXPE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_RXPE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_RXPE_A { match self . bits { false => INT_EVENT0_RIS_RXPE_A :: INT_EVENT0_RIS_RXPE_CLR , true => INT_EVENT0_RIS_RXPE_A :: INT_EVENT0_RIS_RXPE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_rxpe_clr (& self) -> bool { * self == INT_EVENT0_RIS_RXPE_A :: INT_EVENT0_RIS_RXPE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_rxpe_set (& self) -> bool { * self == INT_EVENT0_RIS_RXPE_A :: INT_EVENT0_RIS_RXPE_SET } } # [doc = "Field `INT_EVENT0_RIS_LINC0` reader - LIN Capture 0 / Match Interrupt ."]
pub type INT_EVENT0_RIS_LINC0_R = crate :: BitReader < INT_EVENT0_RIS_LINC0_A > ; # [doc = "LIN Capture 0 / Match Interrupt .\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_LINC0_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_LINC0_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_LINC0_SET = 1 , } impl From < INT_EVENT0_RIS_LINC0_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_LINC0_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_LINC0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_LINC0_A { match self . bits { false => INT_EVENT0_RIS_LINC0_A :: INT_EVENT0_RIS_LINC0_CLR , true => INT_EVENT0_RIS_LINC0_A :: INT_EVENT0_RIS_LINC0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_linc0_clr (& self) -> bool { * self == INT_EVENT0_RIS_LINC0_A :: INT_EVENT0_RIS_LINC0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_linc0_set (& self) -> bool { * self == INT_EVENT0_RIS_LINC0_A :: INT_EVENT0_RIS_LINC0_SET } } # [doc = "Field `INT_EVENT0_RIS_LINC1` reader - LIN Capture 1 Interrupt."]
pub type INT_EVENT0_RIS_LINC1_R = crate :: BitReader < INT_EVENT0_RIS_LINC1_A > ; # [doc = "LIN Capture 1 Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_LINC1_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_LINC1_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_LINC1_SET = 1 , } impl From < INT_EVENT0_RIS_LINC1_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_LINC1_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_LINC1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_LINC1_A { match self . bits { false => INT_EVENT0_RIS_LINC1_A :: INT_EVENT0_RIS_LINC1_CLR , true => INT_EVENT0_RIS_LINC1_A :: INT_EVENT0_RIS_LINC1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_linc1_clr (& self) -> bool { * self == INT_EVENT0_RIS_LINC1_A :: INT_EVENT0_RIS_LINC1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_linc1_set (& self) -> bool { * self == INT_EVENT0_RIS_LINC1_A :: INT_EVENT0_RIS_LINC1_SET } } # [doc = "Field `INT_EVENT0_RIS_LINOVF` reader - LIN Hardware Counter Overflow Interrupt."]
pub type INT_EVENT0_RIS_LINOVF_R = crate :: BitReader < INT_EVENT0_RIS_LINOVF_A > ; # [doc = "LIN Hardware Counter Overflow Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_LINOVF_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_LINOVF_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_LINOVF_SET = 1 , } impl From < INT_EVENT0_RIS_LINOVF_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_LINOVF_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_LINOVF_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_LINOVF_A { match self . bits { false => INT_EVENT0_RIS_LINOVF_A :: INT_EVENT0_RIS_LINOVF_CLR , true => INT_EVENT0_RIS_LINOVF_A :: INT_EVENT0_RIS_LINOVF_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_linovf_clr (& self) -> bool { * self == INT_EVENT0_RIS_LINOVF_A :: INT_EVENT0_RIS_LINOVF_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_linovf_set (& self) -> bool { * self == INT_EVENT0_RIS_LINOVF_A :: INT_EVENT0_RIS_LINOVF_SET } } # [doc = "Field `INT_EVENT0_RIS_RXINT` reader - UART Receive Interrupt."]
pub type INT_EVENT0_RIS_RXINT_R = crate :: BitReader < INT_EVENT0_RIS_RXINT_A > ; # [doc = "UART Receive Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_RXINT_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_RXINT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_RXINT_SET = 1 , } impl From < INT_EVENT0_RIS_RXINT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_RXINT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_RXINT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_RXINT_A { match self . bits { false => INT_EVENT0_RIS_RXINT_A :: INT_EVENT0_RIS_RXINT_CLR , true => INT_EVENT0_RIS_RXINT_A :: INT_EVENT0_RIS_RXINT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_rxint_clr (& self) -> bool { * self == INT_EVENT0_RIS_RXINT_A :: INT_EVENT0_RIS_RXINT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_rxint_set (& self) -> bool { * self == INT_EVENT0_RIS_RXINT_A :: INT_EVENT0_RIS_RXINT_SET } } # [doc = "Field `INT_EVENT0_RIS_TXINT` reader - UART Transmit Interrupt."]
pub type INT_EVENT0_RIS_TXINT_R = crate :: BitReader < INT_EVENT0_RIS_TXINT_A > ; # [doc = "UART Transmit Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_TXINT_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_TXINT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_TXINT_SET = 1 , } impl From < INT_EVENT0_RIS_TXINT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_TXINT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_TXINT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_TXINT_A { match self . bits { false => INT_EVENT0_RIS_TXINT_A :: INT_EVENT0_RIS_TXINT_CLR , true => INT_EVENT0_RIS_TXINT_A :: INT_EVENT0_RIS_TXINT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_txint_clr (& self) -> bool { * self == INT_EVENT0_RIS_TXINT_A :: INT_EVENT0_RIS_TXINT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_txint_set (& self) -> bool { * self == INT_EVENT0_RIS_TXINT_A :: INT_EVENT0_RIS_TXINT_SET } } # [doc = "Field `INT_EVENT0_RIS_EOT` reader - UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer."]
pub type INT_EVENT0_RIS_EOT_R = crate :: BitReader < INT_EVENT0_RIS_EOT_A > ; # [doc = "UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_EOT_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_EOT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_EOT_SET = 1 , } impl From < INT_EVENT0_RIS_EOT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_EOT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_EOT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_EOT_A { match self . bits { false => INT_EVENT0_RIS_EOT_A :: INT_EVENT0_RIS_EOT_CLR , true => INT_EVENT0_RIS_EOT_A :: INT_EVENT0_RIS_EOT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_eot_clr (& self) -> bool { * self == INT_EVENT0_RIS_EOT_A :: INT_EVENT0_RIS_EOT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_eot_set (& self) -> bool { * self == INT_EVENT0_RIS_EOT_A :: INT_EVENT0_RIS_EOT_SET } } # [doc = "Field `INT_EVENT0_RIS_ADDR_MATCH` reader - Address Match Interrupt."]
pub type INT_EVENT0_RIS_ADDR_MATCH_R = crate :: BitReader < INT_EVENT0_RIS_ADDR_MATCH_A > ; # [doc = "Address Match Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_ADDR_MATCH_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_ADDR_MATCH_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_ADDR_MATCH_SET = 1 , } impl From < INT_EVENT0_RIS_ADDR_MATCH_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_ADDR_MATCH_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_ADDR_MATCH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_ADDR_MATCH_A { match self . bits { false => INT_EVENT0_RIS_ADDR_MATCH_A :: INT_EVENT0_RIS_ADDR_MATCH_CLR , true => INT_EVENT0_RIS_ADDR_MATCH_A :: INT_EVENT0_RIS_ADDR_MATCH_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_addr_match_clr (& self) -> bool { * self == INT_EVENT0_RIS_ADDR_MATCH_A :: INT_EVENT0_RIS_ADDR_MATCH_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_addr_match_set (& self) -> bool { * self == INT_EVENT0_RIS_ADDR_MATCH_A :: INT_EVENT0_RIS_ADDR_MATCH_SET } } # [doc = "Field `INT_EVENT0_RIS_CTS` reader - UART Clear to Send Modem Interrupt. 0 = Interrupt disabled"]
pub type INT_EVENT0_RIS_CTS_R = crate :: BitReader < INT_EVENT0_RIS_CTS_A > ; # [doc = "UART Clear to Send Modem Interrupt. 0 = Interrupt disabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_CTS_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_CTS_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_CTS_SET = 1 , } impl From < INT_EVENT0_RIS_CTS_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_CTS_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_CTS_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_CTS_A { match self . bits { false => INT_EVENT0_RIS_CTS_A :: INT_EVENT0_RIS_CTS_CLR , true => INT_EVENT0_RIS_CTS_A :: INT_EVENT0_RIS_CTS_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_cts_clr (& self) -> bool { * self == INT_EVENT0_RIS_CTS_A :: INT_EVENT0_RIS_CTS_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_cts_set (& self) -> bool { * self == INT_EVENT0_RIS_CTS_A :: INT_EVENT0_RIS_CTS_SET } } # [doc = "Field `INT_EVENT0_RIS_DMA_DONE_RX` reader - DMA Done on RX Event Channel"]
pub type INT_EVENT0_RIS_DMA_DONE_RX_R = crate :: BitReader < INT_EVENT0_RIS_DMA_DONE_RX_A > ; # [doc = "DMA Done on RX Event Channel\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DMA_DONE_RX_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DMA_DONE_RX_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DMA_DONE_RX_SET = 1 , } impl From < INT_EVENT0_RIS_DMA_DONE_RX_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DMA_DONE_RX_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DMA_DONE_RX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DMA_DONE_RX_A { match self . bits { false => INT_EVENT0_RIS_DMA_DONE_RX_A :: INT_EVENT0_RIS_DMA_DONE_RX_CLR , true => INT_EVENT0_RIS_DMA_DONE_RX_A :: INT_EVENT0_RIS_DMA_DONE_RX_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dma_done_rx_clr (& self) -> bool { * self == INT_EVENT0_RIS_DMA_DONE_RX_A :: INT_EVENT0_RIS_DMA_DONE_RX_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dma_done_rx_set (& self) -> bool { * self == INT_EVENT0_RIS_DMA_DONE_RX_A :: INT_EVENT0_RIS_DMA_DONE_RX_SET } } # [doc = "Field `INT_EVENT0_RIS_DMA_DONE_TX` reader - DMA Done on TX Event Channel"]
pub type INT_EVENT0_RIS_DMA_DONE_TX_R = crate :: BitReader < INT_EVENT0_RIS_DMA_DONE_TX_A > ; # [doc = "DMA Done on TX Event Channel\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DMA_DONE_TX_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DMA_DONE_TX_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DMA_DONE_TX_SET = 1 , } impl From < INT_EVENT0_RIS_DMA_DONE_TX_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DMA_DONE_TX_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DMA_DONE_TX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DMA_DONE_TX_A { match self . bits { false => INT_EVENT0_RIS_DMA_DONE_TX_A :: INT_EVENT0_RIS_DMA_DONE_TX_CLR , true => INT_EVENT0_RIS_DMA_DONE_TX_A :: INT_EVENT0_RIS_DMA_DONE_TX_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dma_done_tx_clr (& self) -> bool { * self == INT_EVENT0_RIS_DMA_DONE_TX_A :: INT_EVENT0_RIS_DMA_DONE_TX_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dma_done_tx_set (& self) -> bool { * self == INT_EVENT0_RIS_DMA_DONE_TX_A :: INT_EVENT0_RIS_DMA_DONE_TX_SET } } # [doc = "Field `INT_EVENT0_RIS_NERR` reader - Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal"]
pub type INT_EVENT0_RIS_NERR_R = crate :: BitReader < INT_EVENT0_RIS_NERR_A > ; # [doc = "Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_NERR_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_NERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_NERR_SET = 1 , } impl From < INT_EVENT0_RIS_NERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_NERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_NERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_NERR_A { match self . bits { false => INT_EVENT0_RIS_NERR_A :: INT_EVENT0_RIS_NERR_CLR , true => INT_EVENT0_RIS_NERR_A :: INT_EVENT0_RIS_NERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_nerr_clr (& self) -> bool { * self == INT_EVENT0_RIS_NERR_A :: INT_EVENT0_RIS_NERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_nerr_set (& self) -> bool { * self == INT_EVENT0_RIS_NERR_A :: INT_EVENT0_RIS_NERR_SET } } impl R { # [doc = "Bit 0 - UARTOUT Receive Time-Out Interrupt."]
# [inline (always)]
pub fn int_event0_ris_rtout (& self) -> INT_EVENT0_RIS_RTOUT_R { INT_EVENT0_RIS_RTOUT_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - UART Framing Error Interrupt."]
# [inline (always)]
pub fn int_event0_ris_frmerr (& self) -> INT_EVENT0_RIS_FRMERR_R { INT_EVENT0_RIS_FRMERR_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - UART Parity Error Interrupt."]
# [inline (always)]
pub fn int_event0_ris_parerr (& self) -> INT_EVENT0_RIS_PARERR_R { INT_EVENT0_RIS_PARERR_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - UART Break Error Interrupt."]
# [inline (always)]
pub fn int_event0_ris_brkerr (& self) -> INT_EVENT0_RIS_BRKERR_R { INT_EVENT0_RIS_BRKERR_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - UART Receive Overrun Error Interrupt."]
# [inline (always)]
pub fn int_event0_ris_ovrerr (& self) -> INT_EVENT0_RIS_OVRERR_R { INT_EVENT0_RIS_OVRERR_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Negative Edge on UARTxRXD Interrupt."]
# [inline (always)]
pub fn int_event0_ris_rxne (& self) -> INT_EVENT0_RIS_RXNE_R { INT_EVENT0_RIS_RXNE_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - Positive Edge on UARTxRXD Interrupt."]
# [inline (always)]
pub fn int_event0_ris_rxpe (& self) -> INT_EVENT0_RIS_RXPE_R { INT_EVENT0_RIS_RXPE_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 7 - LIN Capture 0 / Match Interrupt ."]
# [inline (always)]
pub fn int_event0_ris_linc0 (& self) -> INT_EVENT0_RIS_LINC0_R { INT_EVENT0_RIS_LINC0_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - LIN Capture 1 Interrupt."]
# [inline (always)]
pub fn int_event0_ris_linc1 (& self) -> INT_EVENT0_RIS_LINC1_R { INT_EVENT0_RIS_LINC1_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - LIN Hardware Counter Overflow Interrupt."]
# [inline (always)]
pub fn int_event0_ris_linovf (& self) -> INT_EVENT0_RIS_LINOVF_R { INT_EVENT0_RIS_LINOVF_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - UART Receive Interrupt."]
# [inline (always)]
pub fn int_event0_ris_rxint (& self) -> INT_EVENT0_RIS_RXINT_R { INT_EVENT0_RIS_RXINT_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bit 11 - UART Transmit Interrupt."]
# [inline (always)]
pub fn int_event0_ris_txint (& self) -> INT_EVENT0_RIS_TXINT_R { INT_EVENT0_RIS_TXINT_R :: new (((self . bits >> 11) & 1) != 0) } # [doc = "Bit 12 - UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer."]
# [inline (always)]
pub fn int_event0_ris_eot (& self) -> INT_EVENT0_RIS_EOT_R { INT_EVENT0_RIS_EOT_R :: new (((self . bits >> 12) & 1) != 0) } # [doc = "Bit 13 - Address Match Interrupt."]
# [inline (always)]
pub fn int_event0_ris_addr_match (& self) -> INT_EVENT0_RIS_ADDR_MATCH_R { INT_EVENT0_RIS_ADDR_MATCH_R :: new (((self . bits >> 13) & 1) != 0) } # [doc = "Bit 14 - UART Clear to Send Modem Interrupt. 0 = Interrupt disabled"]
# [inline (always)]
pub fn int_event0_ris_cts (& self) -> INT_EVENT0_RIS_CTS_R { INT_EVENT0_RIS_CTS_R :: new (((self . bits >> 14) & 1) != 0) } # [doc = "Bit 15 - DMA Done on RX Event Channel"]
# [inline (always)]
pub fn int_event0_ris_dma_done_rx (& self) -> INT_EVENT0_RIS_DMA_DONE_RX_R { INT_EVENT0_RIS_DMA_DONE_RX_R :: new (((self . bits >> 15) & 1) != 0) } # [doc = "Bit 16 - DMA Done on TX Event Channel"]
# [inline (always)]
pub fn int_event0_ris_dma_done_tx (& self) -> INT_EVENT0_RIS_DMA_DONE_TX_R { INT_EVENT0_RIS_DMA_DONE_TX_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 17 - Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal"]
# [inline (always)]
pub fn int_event0_ris_nerr (& self) -> INT_EVENT0_RIS_NERR_R { INT_EVENT0_RIS_NERR_R :: new (((self . bits >> 17) & 1) != 0) } } # [doc = "Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_RIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event0_ris::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT0_RIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT0_RIS to value 0"]
impl crate :: Resettable for INT_EVENT0_RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_MIS (r) register accessor: Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_mis`]
module"]
pub type INT_EVENT0_MIS = crate :: Reg < int_event0_mis :: INT_EVENT0_MIS_SPEC > ; # [doc = "Masked interrupt status"]
pub mod int_event0_mis { # [doc = "Register `INT_EVENT0_MIS` reader"]
pub type R = crate :: R < INT_EVENT0_MIS_SPEC > ; # [doc = "Field `INT_EVENT0_MIS_RTOUT` reader - Masked UARTOUT Receive Time-Out Interrupt."]
pub type INT_EVENT0_MIS_RTOUT_R = crate :: BitReader < INT_EVENT0_MIS_RTOUT_A > ; # [doc = "Masked UARTOUT Receive Time-Out Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_RTOUT_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_RTOUT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_RTOUT_SET = 1 , } impl From < INT_EVENT0_MIS_RTOUT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_RTOUT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_RTOUT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_RTOUT_A { match self . bits { false => INT_EVENT0_MIS_RTOUT_A :: INT_EVENT0_MIS_RTOUT_CLR , true => INT_EVENT0_MIS_RTOUT_A :: INT_EVENT0_MIS_RTOUT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_rtout_clr (& self) -> bool { * self == INT_EVENT0_MIS_RTOUT_A :: INT_EVENT0_MIS_RTOUT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_rtout_set (& self) -> bool { * self == INT_EVENT0_MIS_RTOUT_A :: INT_EVENT0_MIS_RTOUT_SET } } # [doc = "Field `INT_EVENT0_MIS_FRMERR` reader - Masked UART Framing Error Interrupt."]
pub type INT_EVENT0_MIS_FRMERR_R = crate :: BitReader < INT_EVENT0_MIS_FRMERR_A > ; # [doc = "Masked UART Framing Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_FRMERR_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_FRMERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_FRMERR_SET = 1 , } impl From < INT_EVENT0_MIS_FRMERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_FRMERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_FRMERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_FRMERR_A { match self . bits { false => INT_EVENT0_MIS_FRMERR_A :: INT_EVENT0_MIS_FRMERR_CLR , true => INT_EVENT0_MIS_FRMERR_A :: INT_EVENT0_MIS_FRMERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_frmerr_clr (& self) -> bool { * self == INT_EVENT0_MIS_FRMERR_A :: INT_EVENT0_MIS_FRMERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_frmerr_set (& self) -> bool { * self == INT_EVENT0_MIS_FRMERR_A :: INT_EVENT0_MIS_FRMERR_SET } } # [doc = "Field `INT_EVENT0_MIS_PARERR` reader - Masked UART Parity Error Interrupt."]
pub type INT_EVENT0_MIS_PARERR_R = crate :: BitReader < INT_EVENT0_MIS_PARERR_A > ; # [doc = "Masked UART Parity Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_PARERR_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_PARERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_PARERR_SET = 1 , } impl From < INT_EVENT0_MIS_PARERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_PARERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_PARERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_PARERR_A { match self . bits { false => INT_EVENT0_MIS_PARERR_A :: INT_EVENT0_MIS_PARERR_CLR , true => INT_EVENT0_MIS_PARERR_A :: INT_EVENT0_MIS_PARERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_parerr_clr (& self) -> bool { * self == INT_EVENT0_MIS_PARERR_A :: INT_EVENT0_MIS_PARERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_parerr_set (& self) -> bool { * self == INT_EVENT0_MIS_PARERR_A :: INT_EVENT0_MIS_PARERR_SET } } # [doc = "Field `INT_EVENT0_MIS_BRKERR` reader - Masked UART Break Error Interrupt."]
pub type INT_EVENT0_MIS_BRKERR_R = crate :: BitReader < INT_EVENT0_MIS_BRKERR_A > ; # [doc = "Masked UART Break Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_BRKERR_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_BRKERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_BRKERR_SET = 1 , } impl From < INT_EVENT0_MIS_BRKERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_BRKERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_BRKERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_BRKERR_A { match self . bits { false => INT_EVENT0_MIS_BRKERR_A :: INT_EVENT0_MIS_BRKERR_CLR , true => INT_EVENT0_MIS_BRKERR_A :: INT_EVENT0_MIS_BRKERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_brkerr_clr (& self) -> bool { * self == INT_EVENT0_MIS_BRKERR_A :: INT_EVENT0_MIS_BRKERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_brkerr_set (& self) -> bool { * self == INT_EVENT0_MIS_BRKERR_A :: INT_EVENT0_MIS_BRKERR_SET } } # [doc = "Field `INT_EVENT0_MIS_OVRERR` reader - Masked UART Receive Overrun Error Interrupt."]
pub type INT_EVENT0_MIS_OVRERR_R = crate :: BitReader < INT_EVENT0_MIS_OVRERR_A > ; # [doc = "Masked UART Receive Overrun Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_OVRERR_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_OVRERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_OVRERR_SET = 1 , } impl From < INT_EVENT0_MIS_OVRERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_OVRERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_OVRERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_OVRERR_A { match self . bits { false => INT_EVENT0_MIS_OVRERR_A :: INT_EVENT0_MIS_OVRERR_CLR , true => INT_EVENT0_MIS_OVRERR_A :: INT_EVENT0_MIS_OVRERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_ovrerr_clr (& self) -> bool { * self == INT_EVENT0_MIS_OVRERR_A :: INT_EVENT0_MIS_OVRERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_ovrerr_set (& self) -> bool { * self == INT_EVENT0_MIS_OVRERR_A :: INT_EVENT0_MIS_OVRERR_SET } } # [doc = "Field `INT_EVENT0_MIS_RXNE` reader - Masked Negative Edge on UARTxRXD Interrupt."]
pub type INT_EVENT0_MIS_RXNE_R = crate :: BitReader < INT_EVENT0_MIS_RXNE_A > ; # [doc = "Masked Negative Edge on UARTxRXD Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_RXNE_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_RXNE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_RXNE_SET = 1 , } impl From < INT_EVENT0_MIS_RXNE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_RXNE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_RXNE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_RXNE_A { match self . bits { false => INT_EVENT0_MIS_RXNE_A :: INT_EVENT0_MIS_RXNE_CLR , true => INT_EVENT0_MIS_RXNE_A :: INT_EVENT0_MIS_RXNE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_rxne_clr (& self) -> bool { * self == INT_EVENT0_MIS_RXNE_A :: INT_EVENT0_MIS_RXNE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_rxne_set (& self) -> bool { * self == INT_EVENT0_MIS_RXNE_A :: INT_EVENT0_MIS_RXNE_SET } } # [doc = "Field `INT_EVENT0_MIS_RXPE` reader - Masked Positive Edge on UARTxRXD Interrupt."]
pub type INT_EVENT0_MIS_RXPE_R = crate :: BitReader < INT_EVENT0_MIS_RXPE_A > ; # [doc = "Masked Positive Edge on UARTxRXD Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_RXPE_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_RXPE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_RXPE_SET = 1 , } impl From < INT_EVENT0_MIS_RXPE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_RXPE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_RXPE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_RXPE_A { match self . bits { false => INT_EVENT0_MIS_RXPE_A :: INT_EVENT0_MIS_RXPE_CLR , true => INT_EVENT0_MIS_RXPE_A :: INT_EVENT0_MIS_RXPE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_rxpe_clr (& self) -> bool { * self == INT_EVENT0_MIS_RXPE_A :: INT_EVENT0_MIS_RXPE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_rxpe_set (& self) -> bool { * self == INT_EVENT0_MIS_RXPE_A :: INT_EVENT0_MIS_RXPE_SET } } # [doc = "Field `INT_EVENT0_MIS_LINC0` reader - Masked LIN Capture 0 / Match Interrupt ."]
pub type INT_EVENT0_MIS_LINC0_R = crate :: BitReader < INT_EVENT0_MIS_LINC0_A > ; # [doc = "Masked LIN Capture 0 / Match Interrupt .\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_LINC0_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_LINC0_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_LINC0_SET = 1 , } impl From < INT_EVENT0_MIS_LINC0_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_LINC0_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_LINC0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_LINC0_A { match self . bits { false => INT_EVENT0_MIS_LINC0_A :: INT_EVENT0_MIS_LINC0_CLR , true => INT_EVENT0_MIS_LINC0_A :: INT_EVENT0_MIS_LINC0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_linc0_clr (& self) -> bool { * self == INT_EVENT0_MIS_LINC0_A :: INT_EVENT0_MIS_LINC0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_linc0_set (& self) -> bool { * self == INT_EVENT0_MIS_LINC0_A :: INT_EVENT0_MIS_LINC0_SET } } # [doc = "Field `INT_EVENT0_MIS_LINC1` reader - Masked LIN Capture 1 Interrupt."]
pub type INT_EVENT0_MIS_LINC1_R = crate :: BitReader < INT_EVENT0_MIS_LINC1_A > ; # [doc = "Masked LIN Capture 1 Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_LINC1_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_LINC1_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_LINC1_SET = 1 , } impl From < INT_EVENT0_MIS_LINC1_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_LINC1_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_LINC1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_LINC1_A { match self . bits { false => INT_EVENT0_MIS_LINC1_A :: INT_EVENT0_MIS_LINC1_CLR , true => INT_EVENT0_MIS_LINC1_A :: INT_EVENT0_MIS_LINC1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_linc1_clr (& self) -> bool { * self == INT_EVENT0_MIS_LINC1_A :: INT_EVENT0_MIS_LINC1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_linc1_set (& self) -> bool { * self == INT_EVENT0_MIS_LINC1_A :: INT_EVENT0_MIS_LINC1_SET } } # [doc = "Field `INT_EVENT0_MIS_LINOVF` reader - Masked LIN Hardware Counter Overflow Interrupt."]
pub type INT_EVENT0_MIS_LINOVF_R = crate :: BitReader < INT_EVENT0_MIS_LINOVF_A > ; # [doc = "Masked LIN Hardware Counter Overflow Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_LINOVF_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_LINOVF_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_LINOVF_SET = 1 , } impl From < INT_EVENT0_MIS_LINOVF_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_LINOVF_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_LINOVF_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_LINOVF_A { match self . bits { false => INT_EVENT0_MIS_LINOVF_A :: INT_EVENT0_MIS_LINOVF_CLR , true => INT_EVENT0_MIS_LINOVF_A :: INT_EVENT0_MIS_LINOVF_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_linovf_clr (& self) -> bool { * self == INT_EVENT0_MIS_LINOVF_A :: INT_EVENT0_MIS_LINOVF_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_linovf_set (& self) -> bool { * self == INT_EVENT0_MIS_LINOVF_A :: INT_EVENT0_MIS_LINOVF_SET } } # [doc = "Field `INT_EVENT0_MIS_RXINT` reader - Masked UART Receive Interrupt."]
pub type INT_EVENT0_MIS_RXINT_R = crate :: BitReader < INT_EVENT0_MIS_RXINT_A > ; # [doc = "Masked UART Receive Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_RXINT_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_RXINT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_RXINT_SET = 1 , } impl From < INT_EVENT0_MIS_RXINT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_RXINT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_RXINT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_RXINT_A { match self . bits { false => INT_EVENT0_MIS_RXINT_A :: INT_EVENT0_MIS_RXINT_CLR , true => INT_EVENT0_MIS_RXINT_A :: INT_EVENT0_MIS_RXINT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_rxint_clr (& self) -> bool { * self == INT_EVENT0_MIS_RXINT_A :: INT_EVENT0_MIS_RXINT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_rxint_set (& self) -> bool { * self == INT_EVENT0_MIS_RXINT_A :: INT_EVENT0_MIS_RXINT_SET } } # [doc = "Field `INT_EVENT0_MIS_TXINT` reader - Masked UART Transmit Interrupt."]
pub type INT_EVENT0_MIS_TXINT_R = crate :: BitReader < INT_EVENT0_MIS_TXINT_A > ; # [doc = "Masked UART Transmit Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_TXINT_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_TXINT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_TXINT_SET = 1 , } impl From < INT_EVENT0_MIS_TXINT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_TXINT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_TXINT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_TXINT_A { match self . bits { false => INT_EVENT0_MIS_TXINT_A :: INT_EVENT0_MIS_TXINT_CLR , true => INT_EVENT0_MIS_TXINT_A :: INT_EVENT0_MIS_TXINT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_txint_clr (& self) -> bool { * self == INT_EVENT0_MIS_TXINT_A :: INT_EVENT0_MIS_TXINT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_txint_set (& self) -> bool { * self == INT_EVENT0_MIS_TXINT_A :: INT_EVENT0_MIS_TXINT_SET } } # [doc = "Field `INT_EVENT0_MIS_EOT` reader - UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer."]
pub type INT_EVENT0_MIS_EOT_R = crate :: BitReader < INT_EVENT0_MIS_EOT_A > ; # [doc = "UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_EOT_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_EOT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_EOT_SET = 1 , } impl From < INT_EVENT0_MIS_EOT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_EOT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_EOT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_EOT_A { match self . bits { false => INT_EVENT0_MIS_EOT_A :: INT_EVENT0_MIS_EOT_CLR , true => INT_EVENT0_MIS_EOT_A :: INT_EVENT0_MIS_EOT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_eot_clr (& self) -> bool { * self == INT_EVENT0_MIS_EOT_A :: INT_EVENT0_MIS_EOT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_eot_set (& self) -> bool { * self == INT_EVENT0_MIS_EOT_A :: INT_EVENT0_MIS_EOT_SET } } # [doc = "Field `INT_EVENT0_MIS_ADDR_MATCH` reader - Masked Address Match Interrupt."]
pub type INT_EVENT0_MIS_ADDR_MATCH_R = crate :: BitReader < INT_EVENT0_MIS_ADDR_MATCH_A > ; # [doc = "Masked Address Match Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_ADDR_MATCH_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_ADDR_MATCH_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_ADDR_MATCH_SET = 1 , } impl From < INT_EVENT0_MIS_ADDR_MATCH_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_ADDR_MATCH_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_ADDR_MATCH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_ADDR_MATCH_A { match self . bits { false => INT_EVENT0_MIS_ADDR_MATCH_A :: INT_EVENT0_MIS_ADDR_MATCH_CLR , true => INT_EVENT0_MIS_ADDR_MATCH_A :: INT_EVENT0_MIS_ADDR_MATCH_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_addr_match_clr (& self) -> bool { * self == INT_EVENT0_MIS_ADDR_MATCH_A :: INT_EVENT0_MIS_ADDR_MATCH_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_addr_match_set (& self) -> bool { * self == INT_EVENT0_MIS_ADDR_MATCH_A :: INT_EVENT0_MIS_ADDR_MATCH_SET } } # [doc = "Field `INT_EVENT0_MIS_CTS` reader - Masked UART Clear to Send Modem Interrupt. 0 = Interrupt disabled"]
pub type INT_EVENT0_MIS_CTS_R = crate :: BitReader < INT_EVENT0_MIS_CTS_A > ; # [doc = "Masked UART Clear to Send Modem Interrupt. 0 = Interrupt disabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_CTS_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_CTS_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_CTS_SET = 1 , } impl From < INT_EVENT0_MIS_CTS_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_CTS_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_CTS_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_CTS_A { match self . bits { false => INT_EVENT0_MIS_CTS_A :: INT_EVENT0_MIS_CTS_CLR , true => INT_EVENT0_MIS_CTS_A :: INT_EVENT0_MIS_CTS_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_cts_clr (& self) -> bool { * self == INT_EVENT0_MIS_CTS_A :: INT_EVENT0_MIS_CTS_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_cts_set (& self) -> bool { * self == INT_EVENT0_MIS_CTS_A :: INT_EVENT0_MIS_CTS_SET } } # [doc = "Field `INT_EVENT0_MIS_DMA_DONE_RX` reader - Masked DMA Done on RX Event Channel"]
pub type INT_EVENT0_MIS_DMA_DONE_RX_R = crate :: BitReader < INT_EVENT0_MIS_DMA_DONE_RX_A > ; # [doc = "Masked DMA Done on RX Event Channel\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DMA_DONE_RX_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DMA_DONE_RX_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DMA_DONE_RX_SET = 1 , } impl From < INT_EVENT0_MIS_DMA_DONE_RX_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DMA_DONE_RX_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DMA_DONE_RX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DMA_DONE_RX_A { match self . bits { false => INT_EVENT0_MIS_DMA_DONE_RX_A :: INT_EVENT0_MIS_DMA_DONE_RX_CLR , true => INT_EVENT0_MIS_DMA_DONE_RX_A :: INT_EVENT0_MIS_DMA_DONE_RX_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dma_done_rx_clr (& self) -> bool { * self == INT_EVENT0_MIS_DMA_DONE_RX_A :: INT_EVENT0_MIS_DMA_DONE_RX_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dma_done_rx_set (& self) -> bool { * self == INT_EVENT0_MIS_DMA_DONE_RX_A :: INT_EVENT0_MIS_DMA_DONE_RX_SET } } # [doc = "Field `INT_EVENT0_MIS_DMA_DONE_TX` reader - Masked DMA Done on TX Event Channel"]
pub type INT_EVENT0_MIS_DMA_DONE_TX_R = crate :: BitReader < INT_EVENT0_MIS_DMA_DONE_TX_A > ; # [doc = "Masked DMA Done on TX Event Channel\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DMA_DONE_TX_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DMA_DONE_TX_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DMA_DONE_TX_SET = 1 , } impl From < INT_EVENT0_MIS_DMA_DONE_TX_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DMA_DONE_TX_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DMA_DONE_TX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DMA_DONE_TX_A { match self . bits { false => INT_EVENT0_MIS_DMA_DONE_TX_A :: INT_EVENT0_MIS_DMA_DONE_TX_CLR , true => INT_EVENT0_MIS_DMA_DONE_TX_A :: INT_EVENT0_MIS_DMA_DONE_TX_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dma_done_tx_clr (& self) -> bool { * self == INT_EVENT0_MIS_DMA_DONE_TX_A :: INT_EVENT0_MIS_DMA_DONE_TX_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dma_done_tx_set (& self) -> bool { * self == INT_EVENT0_MIS_DMA_DONE_TX_A :: INT_EVENT0_MIS_DMA_DONE_TX_SET } } # [doc = "Field `INT_EVENT0_MIS_NERR` reader - Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal"]
pub type INT_EVENT0_MIS_NERR_R = crate :: BitReader < INT_EVENT0_MIS_NERR_A > ; # [doc = "Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_NERR_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_NERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_NERR_SET = 1 , } impl From < INT_EVENT0_MIS_NERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_NERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_NERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_NERR_A { match self . bits { false => INT_EVENT0_MIS_NERR_A :: INT_EVENT0_MIS_NERR_CLR , true => INT_EVENT0_MIS_NERR_A :: INT_EVENT0_MIS_NERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_nerr_clr (& self) -> bool { * self == INT_EVENT0_MIS_NERR_A :: INT_EVENT0_MIS_NERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_nerr_set (& self) -> bool { * self == INT_EVENT0_MIS_NERR_A :: INT_EVENT0_MIS_NERR_SET } } impl R { # [doc = "Bit 0 - Masked UARTOUT Receive Time-Out Interrupt."]
# [inline (always)]
pub fn int_event0_mis_rtout (& self) -> INT_EVENT0_MIS_RTOUT_R { INT_EVENT0_MIS_RTOUT_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Masked UART Framing Error Interrupt."]
# [inline (always)]
pub fn int_event0_mis_frmerr (& self) -> INT_EVENT0_MIS_FRMERR_R { INT_EVENT0_MIS_FRMERR_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Masked UART Parity Error Interrupt."]
# [inline (always)]
pub fn int_event0_mis_parerr (& self) -> INT_EVENT0_MIS_PARERR_R { INT_EVENT0_MIS_PARERR_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Masked UART Break Error Interrupt."]
# [inline (always)]
pub fn int_event0_mis_brkerr (& self) -> INT_EVENT0_MIS_BRKERR_R { INT_EVENT0_MIS_BRKERR_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - Masked UART Receive Overrun Error Interrupt."]
# [inline (always)]
pub fn int_event0_mis_ovrerr (& self) -> INT_EVENT0_MIS_OVRERR_R { INT_EVENT0_MIS_OVRERR_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Masked Negative Edge on UARTxRXD Interrupt."]
# [inline (always)]
pub fn int_event0_mis_rxne (& self) -> INT_EVENT0_MIS_RXNE_R { INT_EVENT0_MIS_RXNE_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - Masked Positive Edge on UARTxRXD Interrupt."]
# [inline (always)]
pub fn int_event0_mis_rxpe (& self) -> INT_EVENT0_MIS_RXPE_R { INT_EVENT0_MIS_RXPE_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 7 - Masked LIN Capture 0 / Match Interrupt ."]
# [inline (always)]
pub fn int_event0_mis_linc0 (& self) -> INT_EVENT0_MIS_LINC0_R { INT_EVENT0_MIS_LINC0_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - Masked LIN Capture 1 Interrupt."]
# [inline (always)]
pub fn int_event0_mis_linc1 (& self) -> INT_EVENT0_MIS_LINC1_R { INT_EVENT0_MIS_LINC1_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - Masked LIN Hardware Counter Overflow Interrupt."]
# [inline (always)]
pub fn int_event0_mis_linovf (& self) -> INT_EVENT0_MIS_LINOVF_R { INT_EVENT0_MIS_LINOVF_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - Masked UART Receive Interrupt."]
# [inline (always)]
pub fn int_event0_mis_rxint (& self) -> INT_EVENT0_MIS_RXINT_R { INT_EVENT0_MIS_RXINT_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bit 11 - Masked UART Transmit Interrupt."]
# [inline (always)]
pub fn int_event0_mis_txint (& self) -> INT_EVENT0_MIS_TXINT_R { INT_EVENT0_MIS_TXINT_R :: new (((self . bits >> 11) & 1) != 0) } # [doc = "Bit 12 - UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer."]
# [inline (always)]
pub fn int_event0_mis_eot (& self) -> INT_EVENT0_MIS_EOT_R { INT_EVENT0_MIS_EOT_R :: new (((self . bits >> 12) & 1) != 0) } # [doc = "Bit 13 - Masked Address Match Interrupt."]
# [inline (always)]
pub fn int_event0_mis_addr_match (& self) -> INT_EVENT0_MIS_ADDR_MATCH_R { INT_EVENT0_MIS_ADDR_MATCH_R :: new (((self . bits >> 13) & 1) != 0) } # [doc = "Bit 14 - Masked UART Clear to Send Modem Interrupt. 0 = Interrupt disabled"]
# [inline (always)]
pub fn int_event0_mis_cts (& self) -> INT_EVENT0_MIS_CTS_R { INT_EVENT0_MIS_CTS_R :: new (((self . bits >> 14) & 1) != 0) } # [doc = "Bit 15 - Masked DMA Done on RX Event Channel"]
# [inline (always)]
pub fn int_event0_mis_dma_done_rx (& self) -> INT_EVENT0_MIS_DMA_DONE_RX_R { INT_EVENT0_MIS_DMA_DONE_RX_R :: new (((self . bits >> 15) & 1) != 0) } # [doc = "Bit 16 - Masked DMA Done on TX Event Channel"]
# [inline (always)]
pub fn int_event0_mis_dma_done_tx (& self) -> INT_EVENT0_MIS_DMA_DONE_TX_R { INT_EVENT0_MIS_DMA_DONE_TX_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 17 - Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal"]
# [inline (always)]
pub fn int_event0_mis_nerr (& self) -> INT_EVENT0_MIS_NERR_R { INT_EVENT0_MIS_NERR_R :: new (((self . bits >> 17) & 1) != 0) } } # [doc = "Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_MIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event0_mis::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT0_MIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT0_MIS to value 0"]
impl crate :: Resettable for INT_EVENT0_MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_ISET (w) register accessor: Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_iset`]
module"]
pub type INT_EVENT0_ISET = crate :: Reg < int_event0_iset :: INT_EVENT0_ISET_SPEC > ; # [doc = "Interrupt set"]
pub mod int_event0_iset { # [doc = "Register `INT_EVENT0_ISET` writer"]
pub type W = crate :: W < INT_EVENT0_ISET_SPEC > ; # [doc = "Set UARTOUT Receive Time-Out Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_RTOUT_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_RTOUT_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_RTOUT_SET = 1 , } impl From < INT_EVENT0_ISET_RTOUT_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_RTOUT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_RTOUT` writer - Set UARTOUT Receive Time-Out Interrupt."]
pub type INT_EVENT0_ISET_RTOUT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_RTOUT_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_RTOUT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_rtout_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_RTOUT_AW :: INT_EVENT0_ISET_RTOUT_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_rtout_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_RTOUT_AW :: INT_EVENT0_ISET_RTOUT_SET) } } # [doc = "Set UART Framing Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_FRMERR_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_FRMERR_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_FRMERR_SET = 1 , } impl From < INT_EVENT0_ISET_FRMERR_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_FRMERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_FRMERR` writer - Set UART Framing Error Interrupt."]
pub type INT_EVENT0_ISET_FRMERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_FRMERR_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_FRMERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_frmerr_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_FRMERR_AW :: INT_EVENT0_ISET_FRMERR_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_frmerr_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_FRMERR_AW :: INT_EVENT0_ISET_FRMERR_SET) } } # [doc = "Set UART Parity Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_PARERR_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_PARERR_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_PARERR_SET = 1 , } impl From < INT_EVENT0_ISET_PARERR_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_PARERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_PARERR` writer - Set UART Parity Error Interrupt."]
pub type INT_EVENT0_ISET_PARERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_PARERR_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_PARERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_parerr_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_PARERR_AW :: INT_EVENT0_ISET_PARERR_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_parerr_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_PARERR_AW :: INT_EVENT0_ISET_PARERR_SET) } } # [doc = "Set UART Break Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_BRKERR_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_BRKERR_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_BRKERR_SET = 1 , } impl From < INT_EVENT0_ISET_BRKERR_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_BRKERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_BRKERR` writer - Set UART Break Error Interrupt."]
pub type INT_EVENT0_ISET_BRKERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_BRKERR_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_BRKERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_brkerr_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_BRKERR_AW :: INT_EVENT0_ISET_BRKERR_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_brkerr_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_BRKERR_AW :: INT_EVENT0_ISET_BRKERR_SET) } } # [doc = "Set UART Receive Overrun Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_OVRERR_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_OVRERR_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_OVRERR_SET = 1 , } impl From < INT_EVENT0_ISET_OVRERR_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_OVRERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_OVRERR` writer - Set UART Receive Overrun Error Interrupt."]
pub type INT_EVENT0_ISET_OVRERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_OVRERR_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_OVRERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_ovrerr_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_OVRERR_AW :: INT_EVENT0_ISET_OVRERR_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_ovrerr_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_OVRERR_AW :: INT_EVENT0_ISET_OVRERR_SET) } } # [doc = "Set Negative Edge on UARTxRXD Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_RXNE_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_RXNE_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_RXNE_SET = 1 , } impl From < INT_EVENT0_ISET_RXNE_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_RXNE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_RXNE` writer - Set Negative Edge on UARTxRXD Interrupt."]
pub type INT_EVENT0_ISET_RXNE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_RXNE_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_RXNE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_rxne_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_RXNE_AW :: INT_EVENT0_ISET_RXNE_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_rxne_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_RXNE_AW :: INT_EVENT0_ISET_RXNE_SET) } } # [doc = "Set Positive Edge on UARTxRXD Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_RXPE_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_RXPE_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_RXPE_SET = 1 , } impl From < INT_EVENT0_ISET_RXPE_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_RXPE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_RXPE` writer - Set Positive Edge on UARTxRXD Interrupt."]
pub type INT_EVENT0_ISET_RXPE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_RXPE_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_RXPE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_rxpe_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_RXPE_AW :: INT_EVENT0_ISET_RXPE_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_rxpe_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_RXPE_AW :: INT_EVENT0_ISET_RXPE_SET) } } # [doc = "Set LIN Capture 0 / Match Interrupt .\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_LINC0_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_LINC0_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_LINC0_SET = 1 , } impl From < INT_EVENT0_ISET_LINC0_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_LINC0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_LINC0` writer - Set LIN Capture 0 / Match Interrupt ."]
pub type INT_EVENT0_ISET_LINC0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_LINC0_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_LINC0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_linc0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_LINC0_AW :: INT_EVENT0_ISET_LINC0_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_linc0_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_LINC0_AW :: INT_EVENT0_ISET_LINC0_SET) } } # [doc = "Set LIN Capture 1 Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_LINC1_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_LINC1_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_LINC1_SET = 1 , } impl From < INT_EVENT0_ISET_LINC1_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_LINC1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_LINC1` writer - Set LIN Capture 1 Interrupt."]
pub type INT_EVENT0_ISET_LINC1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_LINC1_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_LINC1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_linc1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_LINC1_AW :: INT_EVENT0_ISET_LINC1_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_linc1_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_LINC1_AW :: INT_EVENT0_ISET_LINC1_SET) } } # [doc = "Set LIN Hardware Counter Overflow Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_LINOVF_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_LINOVF_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_LINOVF_SET = 1 , } impl From < INT_EVENT0_ISET_LINOVF_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_LINOVF_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_LINOVF` writer - Set LIN Hardware Counter Overflow Interrupt."]
pub type INT_EVENT0_ISET_LINOVF_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_LINOVF_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_LINOVF_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_linovf_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_LINOVF_AW :: INT_EVENT0_ISET_LINOVF_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_linovf_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_LINOVF_AW :: INT_EVENT0_ISET_LINOVF_SET) } } # [doc = "Set UART Receive Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_RXINT_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_RXINT_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_RXINT_SET = 1 , } impl From < INT_EVENT0_ISET_RXINT_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_RXINT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_RXINT` writer - Set UART Receive Interrupt."]
pub type INT_EVENT0_ISET_RXINT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_RXINT_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_RXINT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_rxint_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_RXINT_AW :: INT_EVENT0_ISET_RXINT_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_rxint_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_RXINT_AW :: INT_EVENT0_ISET_RXINT_SET) } } # [doc = "Set UART Transmit Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_TXINT_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_TXINT_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_TXINT_SET = 1 , } impl From < INT_EVENT0_ISET_TXINT_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_TXINT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_TXINT` writer - Set UART Transmit Interrupt."]
pub type INT_EVENT0_ISET_TXINT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_TXINT_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_TXINT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_txint_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_TXINT_AW :: INT_EVENT0_ISET_TXINT_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_txint_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_TXINT_AW :: INT_EVENT0_ISET_TXINT_SET) } } # [doc = "Set UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_EOT_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_EOT_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_EOT_SET = 1 , } impl From < INT_EVENT0_ISET_EOT_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_EOT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_EOT` writer - Set UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer."]
pub type INT_EVENT0_ISET_EOT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_EOT_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_EOT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_eot_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_EOT_AW :: INT_EVENT0_ISET_EOT_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_eot_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_EOT_AW :: INT_EVENT0_ISET_EOT_SET) } } # [doc = "Set Address Match Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_ADDR_MATCH_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_ADDR_MATCH_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_ADDR_MATCH_SET = 1 , } impl From < INT_EVENT0_ISET_ADDR_MATCH_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_ADDR_MATCH_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_ADDR_MATCH` writer - Set Address Match Interrupt."]
pub type INT_EVENT0_ISET_ADDR_MATCH_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_ADDR_MATCH_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_ADDR_MATCH_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_addr_match_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_ADDR_MATCH_AW :: INT_EVENT0_ISET_ADDR_MATCH_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_addr_match_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_ADDR_MATCH_AW :: INT_EVENT0_ISET_ADDR_MATCH_SET) } } # [doc = "Set UART Clear to Send Modem Interrupt. 0 = Interrupt disabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_CTS_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_CTS_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_CTS_SET = 1 , } impl From < INT_EVENT0_ISET_CTS_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_CTS_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_CTS` writer - Set UART Clear to Send Modem Interrupt. 0 = Interrupt disabled"]
pub type INT_EVENT0_ISET_CTS_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_CTS_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_CTS_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_cts_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_CTS_AW :: INT_EVENT0_ISET_CTS_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_cts_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_CTS_AW :: INT_EVENT0_ISET_CTS_SET) } } # [doc = "Set DMA Done on RX Event Channel\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DMA_DONE_RX_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DMA_DONE_RX_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DMA_DONE_RX_SET = 1 , } impl From < INT_EVENT0_ISET_DMA_DONE_RX_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DMA_DONE_RX_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DMA_DONE_RX` writer - Set DMA Done on RX Event Channel"]
pub type INT_EVENT0_ISET_DMA_DONE_RX_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DMA_DONE_RX_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DMA_DONE_RX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dma_done_rx_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DMA_DONE_RX_AW :: INT_EVENT0_ISET_DMA_DONE_RX_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dma_done_rx_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DMA_DONE_RX_AW :: INT_EVENT0_ISET_DMA_DONE_RX_SET) } } # [doc = "Set DMA Done on TX Event Channel\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DMA_DONE_TX_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DMA_DONE_TX_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DMA_DONE_TX_SET = 1 , } impl From < INT_EVENT0_ISET_DMA_DONE_TX_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DMA_DONE_TX_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DMA_DONE_TX` writer - Set DMA Done on TX Event Channel"]
pub type INT_EVENT0_ISET_DMA_DONE_TX_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DMA_DONE_TX_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DMA_DONE_TX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dma_done_tx_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DMA_DONE_TX_AW :: INT_EVENT0_ISET_DMA_DONE_TX_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dma_done_tx_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DMA_DONE_TX_AW :: INT_EVENT0_ISET_DMA_DONE_TX_SET) } } # [doc = "Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_NERR_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_NERR_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_NERR_SET = 1 , } impl From < INT_EVENT0_ISET_NERR_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_NERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_NERR` writer - Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal"]
pub type INT_EVENT0_ISET_NERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_NERR_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_NERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_nerr_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_NERR_AW :: INT_EVENT0_ISET_NERR_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_nerr_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_NERR_AW :: INT_EVENT0_ISET_NERR_SET) } } impl W { # [doc = "Bit 0 - Set UARTOUT Receive Time-Out Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_rtout (& mut self) -> INT_EVENT0_ISET_RTOUT_W < INT_EVENT0_ISET_SPEC , 0 > { INT_EVENT0_ISET_RTOUT_W :: new (self) } # [doc = "Bit 1 - Set UART Framing Error Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_frmerr (& mut self) -> INT_EVENT0_ISET_FRMERR_W < INT_EVENT0_ISET_SPEC , 1 > { INT_EVENT0_ISET_FRMERR_W :: new (self) } # [doc = "Bit 2 - Set UART Parity Error Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_parerr (& mut self) -> INT_EVENT0_ISET_PARERR_W < INT_EVENT0_ISET_SPEC , 2 > { INT_EVENT0_ISET_PARERR_W :: new (self) } # [doc = "Bit 3 - Set UART Break Error Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_brkerr (& mut self) -> INT_EVENT0_ISET_BRKERR_W < INT_EVENT0_ISET_SPEC , 3 > { INT_EVENT0_ISET_BRKERR_W :: new (self) } # [doc = "Bit 4 - Set UART Receive Overrun Error Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_ovrerr (& mut self) -> INT_EVENT0_ISET_OVRERR_W < INT_EVENT0_ISET_SPEC , 4 > { INT_EVENT0_ISET_OVRERR_W :: new (self) } # [doc = "Bit 5 - Set Negative Edge on UARTxRXD Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_rxne (& mut self) -> INT_EVENT0_ISET_RXNE_W < INT_EVENT0_ISET_SPEC , 5 > { INT_EVENT0_ISET_RXNE_W :: new (self) } # [doc = "Bit 6 - Set Positive Edge on UARTxRXD Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_rxpe (& mut self) -> INT_EVENT0_ISET_RXPE_W < INT_EVENT0_ISET_SPEC , 6 > { INT_EVENT0_ISET_RXPE_W :: new (self) } # [doc = "Bit 7 - Set LIN Capture 0 / Match Interrupt ."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_linc0 (& mut self) -> INT_EVENT0_ISET_LINC0_W < INT_EVENT0_ISET_SPEC , 7 > { INT_EVENT0_ISET_LINC0_W :: new (self) } # [doc = "Bit 8 - Set LIN Capture 1 Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_linc1 (& mut self) -> INT_EVENT0_ISET_LINC1_W < INT_EVENT0_ISET_SPEC , 8 > { INT_EVENT0_ISET_LINC1_W :: new (self) } # [doc = "Bit 9 - Set LIN Hardware Counter Overflow Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_linovf (& mut self) -> INT_EVENT0_ISET_LINOVF_W < INT_EVENT0_ISET_SPEC , 9 > { INT_EVENT0_ISET_LINOVF_W :: new (self) } # [doc = "Bit 10 - Set UART Receive Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_rxint (& mut self) -> INT_EVENT0_ISET_RXINT_W < INT_EVENT0_ISET_SPEC , 10 > { INT_EVENT0_ISET_RXINT_W :: new (self) } # [doc = "Bit 11 - Set UART Transmit Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_txint (& mut self) -> INT_EVENT0_ISET_TXINT_W < INT_EVENT0_ISET_SPEC , 11 > { INT_EVENT0_ISET_TXINT_W :: new (self) } # [doc = "Bit 12 - Set UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_eot (& mut self) -> INT_EVENT0_ISET_EOT_W < INT_EVENT0_ISET_SPEC , 12 > { INT_EVENT0_ISET_EOT_W :: new (self) } # [doc = "Bit 13 - Set Address Match Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_addr_match (& mut self) -> INT_EVENT0_ISET_ADDR_MATCH_W < INT_EVENT0_ISET_SPEC , 13 > { INT_EVENT0_ISET_ADDR_MATCH_W :: new (self) } # [doc = "Bit 14 - Set UART Clear to Send Modem Interrupt. 0 = Interrupt disabled"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_cts (& mut self) -> INT_EVENT0_ISET_CTS_W < INT_EVENT0_ISET_SPEC , 14 > { INT_EVENT0_ISET_CTS_W :: new (self) } # [doc = "Bit 15 - Set DMA Done on RX Event Channel"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dma_done_rx (& mut self) -> INT_EVENT0_ISET_DMA_DONE_RX_W < INT_EVENT0_ISET_SPEC , 15 > { INT_EVENT0_ISET_DMA_DONE_RX_W :: new (self) } # [doc = "Bit 16 - Set DMA Done on TX Event Channel"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dma_done_tx (& mut self) -> INT_EVENT0_ISET_DMA_DONE_TX_W < INT_EVENT0_ISET_SPEC , 16 > { INT_EVENT0_ISET_DMA_DONE_TX_W :: new (self) } # [doc = "Bit 17 - Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_nerr (& mut self) -> INT_EVENT0_ISET_NERR_W < INT_EVENT0_ISET_SPEC , 17 > { INT_EVENT0_ISET_NERR_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_ISET_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event0_iset::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT0_ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT0_ISET to value 0"]
impl crate :: Resettable for INT_EVENT0_ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_ICLR (w) register accessor: Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_iclr`]
module"]
pub type INT_EVENT0_ICLR = crate :: Reg < int_event0_iclr :: INT_EVENT0_ICLR_SPEC > ; # [doc = "Interrupt clear"]
pub mod int_event0_iclr { # [doc = "Register `INT_EVENT0_ICLR` writer"]
pub type W = crate :: W < INT_EVENT0_ICLR_SPEC > ; # [doc = "Clear UARTOUT Receive Time-Out Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_RTOUT_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_RTOUT_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_RTOUT_CLR = 1 , } impl From < INT_EVENT0_ICLR_RTOUT_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_RTOUT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_RTOUT` writer - Clear UARTOUT Receive Time-Out Interrupt."]
pub type INT_EVENT0_ICLR_RTOUT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_RTOUT_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_RTOUT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_rtout_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_RTOUT_AW :: INT_EVENT0_ICLR_RTOUT_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_rtout_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_RTOUT_AW :: INT_EVENT0_ICLR_RTOUT_CLR) } } # [doc = "Clear UART Framing Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_FRMERR_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_FRMERR_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_FRMERR_CLR = 1 , } impl From < INT_EVENT0_ICLR_FRMERR_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_FRMERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_FRMERR` writer - Clear UART Framing Error Interrupt."]
pub type INT_EVENT0_ICLR_FRMERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_FRMERR_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_FRMERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_frmerr_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_FRMERR_AW :: INT_EVENT0_ICLR_FRMERR_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_frmerr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_FRMERR_AW :: INT_EVENT0_ICLR_FRMERR_CLR) } } # [doc = "Clear UART Parity Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_PARERR_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_PARERR_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_PARERR_CLR = 1 , } impl From < INT_EVENT0_ICLR_PARERR_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_PARERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_PARERR` writer - Clear UART Parity Error Interrupt."]
pub type INT_EVENT0_ICLR_PARERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_PARERR_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_PARERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_parerr_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_PARERR_AW :: INT_EVENT0_ICLR_PARERR_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_parerr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_PARERR_AW :: INT_EVENT0_ICLR_PARERR_CLR) } } # [doc = "Clear UART Break Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_BRKERR_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_BRKERR_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_BRKERR_CLR = 1 , } impl From < INT_EVENT0_ICLR_BRKERR_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_BRKERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_BRKERR` writer - Clear UART Break Error Interrupt."]
pub type INT_EVENT0_ICLR_BRKERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_BRKERR_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_BRKERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_brkerr_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_BRKERR_AW :: INT_EVENT0_ICLR_BRKERR_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_brkerr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_BRKERR_AW :: INT_EVENT0_ICLR_BRKERR_CLR) } } # [doc = "Clear UART Receive Overrun Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_OVRERR_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_OVRERR_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_OVRERR_CLR = 1 , } impl From < INT_EVENT0_ICLR_OVRERR_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_OVRERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_OVRERR` writer - Clear UART Receive Overrun Error Interrupt."]
pub type INT_EVENT0_ICLR_OVRERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_OVRERR_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_OVRERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_ovrerr_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_OVRERR_AW :: INT_EVENT0_ICLR_OVRERR_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_ovrerr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_OVRERR_AW :: INT_EVENT0_ICLR_OVRERR_CLR) } } # [doc = "Clear Negative Edge on UARTxRXD Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_RXNE_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_RXNE_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_RXNE_CLR = 1 , } impl From < INT_EVENT0_ICLR_RXNE_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_RXNE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_RXNE` writer - Clear Negative Edge on UARTxRXD Interrupt."]
pub type INT_EVENT0_ICLR_RXNE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_RXNE_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_RXNE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_rxne_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_RXNE_AW :: INT_EVENT0_ICLR_RXNE_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_rxne_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_RXNE_AW :: INT_EVENT0_ICLR_RXNE_CLR) } } # [doc = "Clear Positive Edge on UARTxRXD Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_RXPE_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_RXPE_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_RXPE_CLR = 1 , } impl From < INT_EVENT0_ICLR_RXPE_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_RXPE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_RXPE` writer - Clear Positive Edge on UARTxRXD Interrupt."]
pub type INT_EVENT0_ICLR_RXPE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_RXPE_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_RXPE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_rxpe_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_RXPE_AW :: INT_EVENT0_ICLR_RXPE_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_rxpe_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_RXPE_AW :: INT_EVENT0_ICLR_RXPE_CLR) } } # [doc = "Clear LIN Capture 0 / Match Interrupt .\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_LINC0_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_LINC0_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_LINC0_CLR = 1 , } impl From < INT_EVENT0_ICLR_LINC0_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_LINC0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_LINC0` writer - Clear LIN Capture 0 / Match Interrupt ."]
pub type INT_EVENT0_ICLR_LINC0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_LINC0_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_LINC0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_linc0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_LINC0_AW :: INT_EVENT0_ICLR_LINC0_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_linc0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_LINC0_AW :: INT_EVENT0_ICLR_LINC0_CLR) } } # [doc = "Clear LIN Capture 1 Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_LINC1_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_LINC1_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_LINC1_CLR = 1 , } impl From < INT_EVENT0_ICLR_LINC1_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_LINC1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_LINC1` writer - Clear LIN Capture 1 Interrupt."]
pub type INT_EVENT0_ICLR_LINC1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_LINC1_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_LINC1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_linc1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_LINC1_AW :: INT_EVENT0_ICLR_LINC1_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_linc1_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_LINC1_AW :: INT_EVENT0_ICLR_LINC1_CLR) } } # [doc = "Clear LIN Hardware Counter Overflow Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_LINOVF_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_LINOVF_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_LINOVF_CLR = 1 , } impl From < INT_EVENT0_ICLR_LINOVF_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_LINOVF_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_LINOVF` writer - Clear LIN Hardware Counter Overflow Interrupt."]
pub type INT_EVENT0_ICLR_LINOVF_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_LINOVF_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_LINOVF_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_linovf_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_LINOVF_AW :: INT_EVENT0_ICLR_LINOVF_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_linovf_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_LINOVF_AW :: INT_EVENT0_ICLR_LINOVF_CLR) } } # [doc = "Clear UART Receive Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_RXINT_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_RXINT_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_RXINT_CLR = 1 , } impl From < INT_EVENT0_ICLR_RXINT_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_RXINT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_RXINT` writer - Clear UART Receive Interrupt."]
pub type INT_EVENT0_ICLR_RXINT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_RXINT_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_RXINT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_rxint_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_RXINT_AW :: INT_EVENT0_ICLR_RXINT_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_rxint_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_RXINT_AW :: INT_EVENT0_ICLR_RXINT_CLR) } } # [doc = "Clear UART Transmit Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_TXINT_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_TXINT_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_TXINT_CLR = 1 , } impl From < INT_EVENT0_ICLR_TXINT_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_TXINT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_TXINT` writer - Clear UART Transmit Interrupt."]
pub type INT_EVENT0_ICLR_TXINT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_TXINT_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_TXINT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_txint_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_TXINT_AW :: INT_EVENT0_ICLR_TXINT_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_txint_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_TXINT_AW :: INT_EVENT0_ICLR_TXINT_CLR) } } # [doc = "Clear UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_EOT_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_EOT_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_EOT_CLR = 1 , } impl From < INT_EVENT0_ICLR_EOT_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_EOT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_EOT` writer - Clear UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer."]
pub type INT_EVENT0_ICLR_EOT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_EOT_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_EOT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_eot_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_EOT_AW :: INT_EVENT0_ICLR_EOT_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_eot_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_EOT_AW :: INT_EVENT0_ICLR_EOT_CLR) } } # [doc = "Clear Address Match Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_ADDR_MATCH_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_ADDR_MATCH_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_ADDR_MATCH_CLR = 1 , } impl From < INT_EVENT0_ICLR_ADDR_MATCH_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_ADDR_MATCH_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_ADDR_MATCH` writer - Clear Address Match Interrupt."]
pub type INT_EVENT0_ICLR_ADDR_MATCH_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_ADDR_MATCH_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_ADDR_MATCH_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_addr_match_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_ADDR_MATCH_AW :: INT_EVENT0_ICLR_ADDR_MATCH_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_addr_match_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_ADDR_MATCH_AW :: INT_EVENT0_ICLR_ADDR_MATCH_CLR) } } # [doc = "Clear UART Clear to Send Modem Interrupt. 0 = Interrupt disabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_CTS_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_CTS_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_CTS_CLR = 1 , } impl From < INT_EVENT0_ICLR_CTS_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_CTS_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_CTS` writer - Clear UART Clear to Send Modem Interrupt. 0 = Interrupt disabled"]
pub type INT_EVENT0_ICLR_CTS_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_CTS_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_CTS_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_cts_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_CTS_AW :: INT_EVENT0_ICLR_CTS_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_cts_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_CTS_AW :: INT_EVENT0_ICLR_CTS_CLR) } } # [doc = "Clear DMA Done on RX Event Channel\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DMA_DONE_RX_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DMA_DONE_RX_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DMA_DONE_RX_CLR = 1 , } impl From < INT_EVENT0_ICLR_DMA_DONE_RX_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DMA_DONE_RX_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DMA_DONE_RX` writer - Clear DMA Done on RX Event Channel"]
pub type INT_EVENT0_ICLR_DMA_DONE_RX_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DMA_DONE_RX_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DMA_DONE_RX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dma_done_rx_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DMA_DONE_RX_AW :: INT_EVENT0_ICLR_DMA_DONE_RX_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dma_done_rx_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DMA_DONE_RX_AW :: INT_EVENT0_ICLR_DMA_DONE_RX_CLR) } } # [doc = "Clear DMA Done on TX Event Channel\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DMA_DONE_TX_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DMA_DONE_TX_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DMA_DONE_TX_CLR = 1 , } impl From < INT_EVENT0_ICLR_DMA_DONE_TX_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DMA_DONE_TX_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DMA_DONE_TX` writer - Clear DMA Done on TX Event Channel"]
pub type INT_EVENT0_ICLR_DMA_DONE_TX_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DMA_DONE_TX_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DMA_DONE_TX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dma_done_tx_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DMA_DONE_TX_AW :: INT_EVENT0_ICLR_DMA_DONE_TX_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dma_done_tx_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DMA_DONE_TX_AW :: INT_EVENT0_ICLR_DMA_DONE_TX_CLR) } } # [doc = "Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_NERR_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_NERR_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_NERR_CLR = 1 , } impl From < INT_EVENT0_ICLR_NERR_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_NERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_NERR` writer - Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal"]
pub type INT_EVENT0_ICLR_NERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_NERR_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_NERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_nerr_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_NERR_AW :: INT_EVENT0_ICLR_NERR_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_nerr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_NERR_AW :: INT_EVENT0_ICLR_NERR_CLR) } } impl W { # [doc = "Bit 0 - Clear UARTOUT Receive Time-Out Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_rtout (& mut self) -> INT_EVENT0_ICLR_RTOUT_W < INT_EVENT0_ICLR_SPEC , 0 > { INT_EVENT0_ICLR_RTOUT_W :: new (self) } # [doc = "Bit 1 - Clear UART Framing Error Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_frmerr (& mut self) -> INT_EVENT0_ICLR_FRMERR_W < INT_EVENT0_ICLR_SPEC , 1 > { INT_EVENT0_ICLR_FRMERR_W :: new (self) } # [doc = "Bit 2 - Clear UART Parity Error Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_parerr (& mut self) -> INT_EVENT0_ICLR_PARERR_W < INT_EVENT0_ICLR_SPEC , 2 > { INT_EVENT0_ICLR_PARERR_W :: new (self) } # [doc = "Bit 3 - Clear UART Break Error Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_brkerr (& mut self) -> INT_EVENT0_ICLR_BRKERR_W < INT_EVENT0_ICLR_SPEC , 3 > { INT_EVENT0_ICLR_BRKERR_W :: new (self) } # [doc = "Bit 4 - Clear UART Receive Overrun Error Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_ovrerr (& mut self) -> INT_EVENT0_ICLR_OVRERR_W < INT_EVENT0_ICLR_SPEC , 4 > { INT_EVENT0_ICLR_OVRERR_W :: new (self) } # [doc = "Bit 5 - Clear Negative Edge on UARTxRXD Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_rxne (& mut self) -> INT_EVENT0_ICLR_RXNE_W < INT_EVENT0_ICLR_SPEC , 5 > { INT_EVENT0_ICLR_RXNE_W :: new (self) } # [doc = "Bit 6 - Clear Positive Edge on UARTxRXD Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_rxpe (& mut self) -> INT_EVENT0_ICLR_RXPE_W < INT_EVENT0_ICLR_SPEC , 6 > { INT_EVENT0_ICLR_RXPE_W :: new (self) } # [doc = "Bit 7 - Clear LIN Capture 0 / Match Interrupt ."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_linc0 (& mut self) -> INT_EVENT0_ICLR_LINC0_W < INT_EVENT0_ICLR_SPEC , 7 > { INT_EVENT0_ICLR_LINC0_W :: new (self) } # [doc = "Bit 8 - Clear LIN Capture 1 Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_linc1 (& mut self) -> INT_EVENT0_ICLR_LINC1_W < INT_EVENT0_ICLR_SPEC , 8 > { INT_EVENT0_ICLR_LINC1_W :: new (self) } # [doc = "Bit 9 - Clear LIN Hardware Counter Overflow Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_linovf (& mut self) -> INT_EVENT0_ICLR_LINOVF_W < INT_EVENT0_ICLR_SPEC , 9 > { INT_EVENT0_ICLR_LINOVF_W :: new (self) } # [doc = "Bit 10 - Clear UART Receive Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_rxint (& mut self) -> INT_EVENT0_ICLR_RXINT_W < INT_EVENT0_ICLR_SPEC , 10 > { INT_EVENT0_ICLR_RXINT_W :: new (self) } # [doc = "Bit 11 - Clear UART Transmit Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_txint (& mut self) -> INT_EVENT0_ICLR_TXINT_W < INT_EVENT0_ICLR_SPEC , 11 > { INT_EVENT0_ICLR_TXINT_W :: new (self) } # [doc = "Bit 12 - Clear UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_eot (& mut self) -> INT_EVENT0_ICLR_EOT_W < INT_EVENT0_ICLR_SPEC , 12 > { INT_EVENT0_ICLR_EOT_W :: new (self) } # [doc = "Bit 13 - Clear Address Match Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_addr_match (& mut self) -> INT_EVENT0_ICLR_ADDR_MATCH_W < INT_EVENT0_ICLR_SPEC , 13 > { INT_EVENT0_ICLR_ADDR_MATCH_W :: new (self) } # [doc = "Bit 14 - Clear UART Clear to Send Modem Interrupt. 0 = Interrupt disabled"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_cts (& mut self) -> INT_EVENT0_ICLR_CTS_W < INT_EVENT0_ICLR_SPEC , 14 > { INT_EVENT0_ICLR_CTS_W :: new (self) } # [doc = "Bit 15 - Clear DMA Done on RX Event Channel"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dma_done_rx (& mut self) -> INT_EVENT0_ICLR_DMA_DONE_RX_W < INT_EVENT0_ICLR_SPEC , 15 > { INT_EVENT0_ICLR_DMA_DONE_RX_W :: new (self) } # [doc = "Bit 16 - Clear DMA Done on TX Event Channel"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dma_done_tx (& mut self) -> INT_EVENT0_ICLR_DMA_DONE_TX_W < INT_EVENT0_ICLR_SPEC , 16 > { INT_EVENT0_ICLR_DMA_DONE_TX_W :: new (self) } # [doc = "Bit 17 - Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_nerr (& mut self) -> INT_EVENT0_ICLR_NERR_W < INT_EVENT0_ICLR_SPEC , 17 > { INT_EVENT0_ICLR_NERR_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_ICLR_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event0_iclr::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT0_ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT0_ICLR to value 0"]
impl crate :: Resettable for INT_EVENT0_ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_IIDX (r) register accessor: Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_iidx`]
module"]
pub type INT_EVENT1_IIDX = crate :: Reg < int_event1_iidx :: INT_EVENT1_IIDX_SPEC > ; # [doc = "Interrupt index"]
pub mod int_event1_iidx { # [doc = "Register `INT_EVENT1_IIDX` reader"]
pub type R = crate :: R < INT_EVENT1_IIDX_SPEC > ; # [doc = "Field `INT_EVENT1_IIDX_STAT` reader - UART Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in UARTRIS and UARTMISC. 15h-1Fh = Reserved"]
pub type INT_EVENT1_IIDX_STAT_R = crate :: FieldReader < INT_EVENT1_IIDX_STAT_A > ; # [doc = "UART Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in UARTRIS and UARTMISC. 15h-1Fh = Reserved\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum INT_EVENT1_IIDX_STAT_A { # [doc = "0: NO_INTR"]
INT_EVENT1_IIDX_STAT_NO_INTR = 0 , # [doc = "1: RTFG"]
INT_EVENT1_IIDX_STAT_RTFG = 1 , # [doc = "11: RXIFG"]
INT_EVENT1_IIDX_STAT_RXIFG = 11 , } impl From < INT_EVENT1_IIDX_STAT_A > for u8 { # [inline (always)]
fn from (variant : INT_EVENT1_IIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for INT_EVENT1_IIDX_STAT_A { type Ux = u8 ; } impl INT_EVENT1_IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < INT_EVENT1_IIDX_STAT_A > { match self . bits { 0 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_NO_INTR) , 1 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_RTFG) , 11 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_RXIFG) , _ => None , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_no_intr (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_NO_INTR } # [doc = "RTFG"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_rtfg (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_RTFG } # [doc = "RXIFG"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_rxifg (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_RXIFG } } impl R { # [doc = "Bits 0:7 - UART Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in UARTRIS and UARTMISC. 15h-1Fh = Reserved"]
# [inline (always)]
pub fn int_event1_iidx_stat (& self) -> INT_EVENT1_IIDX_STAT_R { INT_EVENT1_IIDX_STAT_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_IIDX_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event1_iidx::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT1_IIDX_SPEC { } # [doc = "`reset()` method sets INT_EVENT1_IIDX to value 0"]
impl crate :: Resettable for INT_EVENT1_IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_IMASK (rw) register accessor: Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_imask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_imask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_imask`]
module"]
pub type INT_EVENT1_IMASK = crate :: Reg < int_event1_imask :: INT_EVENT1_IMASK_SPEC > ; # [doc = "Interrupt mask"]
pub mod int_event1_imask { # [doc = "Register `INT_EVENT1_IMASK` reader"]
pub type R = crate :: R < INT_EVENT1_IMASK_SPEC > ; # [doc = "Register `INT_EVENT1_IMASK` writer"]
pub type W = crate :: W < INT_EVENT1_IMASK_SPEC > ; # [doc = "Field `INT_EVENT1_IMASK_RTOUT` reader - Enable UARTOUT Receive Time-Out Interrupt."]
pub type INT_EVENT1_IMASK_RTOUT_R = crate :: BitReader < INT_EVENT1_IMASK_RTOUT_A > ; # [doc = "Enable UARTOUT Receive Time-Out Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_RTOUT_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_RTOUT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_RTOUT_SET = 1 , } impl From < INT_EVENT1_IMASK_RTOUT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_RTOUT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_RTOUT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_RTOUT_A { match self . bits { false => INT_EVENT1_IMASK_RTOUT_A :: INT_EVENT1_IMASK_RTOUT_CLR , true => INT_EVENT1_IMASK_RTOUT_A :: INT_EVENT1_IMASK_RTOUT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_rtout_clr (& self) -> bool { * self == INT_EVENT1_IMASK_RTOUT_A :: INT_EVENT1_IMASK_RTOUT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_rtout_set (& self) -> bool { * self == INT_EVENT1_IMASK_RTOUT_A :: INT_EVENT1_IMASK_RTOUT_SET } } # [doc = "Field `INT_EVENT1_IMASK_RTOUT` writer - Enable UARTOUT Receive Time-Out Interrupt."]
pub type INT_EVENT1_IMASK_RTOUT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_RTOUT_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_RTOUT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_rtout_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_RTOUT_A :: INT_EVENT1_IMASK_RTOUT_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_rtout_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_RTOUT_A :: INT_EVENT1_IMASK_RTOUT_SET) } } # [doc = "Field `INT_EVENT1_IMASK_RXINT` reader - Enable UART Receive Interrupt."]
pub type INT_EVENT1_IMASK_RXINT_R = crate :: BitReader < INT_EVENT1_IMASK_RXINT_A > ; # [doc = "Enable UART Receive Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_RXINT_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_RXINT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_RXINT_SET = 1 , } impl From < INT_EVENT1_IMASK_RXINT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_RXINT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_RXINT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_RXINT_A { match self . bits { false => INT_EVENT1_IMASK_RXINT_A :: INT_EVENT1_IMASK_RXINT_CLR , true => INT_EVENT1_IMASK_RXINT_A :: INT_EVENT1_IMASK_RXINT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_rxint_clr (& self) -> bool { * self == INT_EVENT1_IMASK_RXINT_A :: INT_EVENT1_IMASK_RXINT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_rxint_set (& self) -> bool { * self == INT_EVENT1_IMASK_RXINT_A :: INT_EVENT1_IMASK_RXINT_SET } } # [doc = "Field `INT_EVENT1_IMASK_RXINT` writer - Enable UART Receive Interrupt."]
pub type INT_EVENT1_IMASK_RXINT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_RXINT_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_RXINT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_rxint_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_RXINT_A :: INT_EVENT1_IMASK_RXINT_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_rxint_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_RXINT_A :: INT_EVENT1_IMASK_RXINT_SET) } } impl R { # [doc = "Bit 0 - Enable UARTOUT Receive Time-Out Interrupt."]
# [inline (always)]
pub fn int_event1_imask_rtout (& self) -> INT_EVENT1_IMASK_RTOUT_R { INT_EVENT1_IMASK_RTOUT_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 10 - Enable UART Receive Interrupt."]
# [inline (always)]
pub fn int_event1_imask_rxint (& self) -> INT_EVENT1_IMASK_RXINT_R { INT_EVENT1_IMASK_RXINT_R :: new (((self . bits >> 10) & 1) != 0) } } impl W { # [doc = "Bit 0 - Enable UARTOUT Receive Time-Out Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_rtout (& mut self) -> INT_EVENT1_IMASK_RTOUT_W < INT_EVENT1_IMASK_SPEC , 0 > { INT_EVENT1_IMASK_RTOUT_W :: new (self) } # [doc = "Bit 10 - Enable UART Receive Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_rxint (& mut self) -> INT_EVENT1_IMASK_RXINT_W < INT_EVENT1_IMASK_SPEC , 10 > { INT_EVENT1_IMASK_RXINT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_imask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_imask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_IMASK_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event1_imask::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT1_IMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`int_event1_imask::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT1_IMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT1_IMASK to value 0"]
impl crate :: Resettable for INT_EVENT1_IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_RIS (r) register accessor: Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_ris`]
module"]
pub type INT_EVENT1_RIS = crate :: Reg < int_event1_ris :: INT_EVENT1_RIS_SPEC > ; # [doc = "Raw interrupt status"]
pub mod int_event1_ris { # [doc = "Register `INT_EVENT1_RIS` reader"]
pub type R = crate :: R < INT_EVENT1_RIS_SPEC > ; # [doc = "Field `INT_EVENT1_RIS_RTOUT` reader - UARTOUT Receive Time-Out Interrupt."]
pub type INT_EVENT1_RIS_RTOUT_R = crate :: BitReader < INT_EVENT1_RIS_RTOUT_A > ; # [doc = "UARTOUT Receive Time-Out Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_RTOUT_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_RTOUT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_RTOUT_SET = 1 , } impl From < INT_EVENT1_RIS_RTOUT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_RTOUT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_RTOUT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_RTOUT_A { match self . bits { false => INT_EVENT1_RIS_RTOUT_A :: INT_EVENT1_RIS_RTOUT_CLR , true => INT_EVENT1_RIS_RTOUT_A :: INT_EVENT1_RIS_RTOUT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_rtout_clr (& self) -> bool { * self == INT_EVENT1_RIS_RTOUT_A :: INT_EVENT1_RIS_RTOUT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_rtout_set (& self) -> bool { * self == INT_EVENT1_RIS_RTOUT_A :: INT_EVENT1_RIS_RTOUT_SET } } # [doc = "Field `INT_EVENT1_RIS_RXINT` reader - UART Receive Interrupt."]
pub type INT_EVENT1_RIS_RXINT_R = crate :: BitReader < INT_EVENT1_RIS_RXINT_A > ; # [doc = "UART Receive Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_RXINT_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_RXINT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_RXINT_SET = 1 , } impl From < INT_EVENT1_RIS_RXINT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_RXINT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_RXINT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_RXINT_A { match self . bits { false => INT_EVENT1_RIS_RXINT_A :: INT_EVENT1_RIS_RXINT_CLR , true => INT_EVENT1_RIS_RXINT_A :: INT_EVENT1_RIS_RXINT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_rxint_clr (& self) -> bool { * self == INT_EVENT1_RIS_RXINT_A :: INT_EVENT1_RIS_RXINT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_rxint_set (& self) -> bool { * self == INT_EVENT1_RIS_RXINT_A :: INT_EVENT1_RIS_RXINT_SET } } impl R { # [doc = "Bit 0 - UARTOUT Receive Time-Out Interrupt."]
# [inline (always)]
pub fn int_event1_ris_rtout (& self) -> INT_EVENT1_RIS_RTOUT_R { INT_EVENT1_RIS_RTOUT_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 10 - UART Receive Interrupt."]
# [inline (always)]
pub fn int_event1_ris_rxint (& self) -> INT_EVENT1_RIS_RXINT_R { INT_EVENT1_RIS_RXINT_R :: new (((self . bits >> 10) & 1) != 0) } } # [doc = "Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_RIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event1_ris::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT1_RIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT1_RIS to value 0"]
impl crate :: Resettable for INT_EVENT1_RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_MIS (r) register accessor: Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_mis`]
module"]
pub type INT_EVENT1_MIS = crate :: Reg < int_event1_mis :: INT_EVENT1_MIS_SPEC > ; # [doc = "Masked interrupt status"]
pub mod int_event1_mis { # [doc = "Register `INT_EVENT1_MIS` reader"]
pub type R = crate :: R < INT_EVENT1_MIS_SPEC > ; # [doc = "Field `INT_EVENT1_MIS_RTOUT` reader - Masked UARTOUT Receive Time-Out Interrupt."]
pub type INT_EVENT1_MIS_RTOUT_R = crate :: BitReader < INT_EVENT1_MIS_RTOUT_A > ; # [doc = "Masked UARTOUT Receive Time-Out Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_RTOUT_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_RTOUT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_RTOUT_SET = 1 , } impl From < INT_EVENT1_MIS_RTOUT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_RTOUT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_RTOUT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_RTOUT_A { match self . bits { false => INT_EVENT1_MIS_RTOUT_A :: INT_EVENT1_MIS_RTOUT_CLR , true => INT_EVENT1_MIS_RTOUT_A :: INT_EVENT1_MIS_RTOUT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_rtout_clr (& self) -> bool { * self == INT_EVENT1_MIS_RTOUT_A :: INT_EVENT1_MIS_RTOUT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_rtout_set (& self) -> bool { * self == INT_EVENT1_MIS_RTOUT_A :: INT_EVENT1_MIS_RTOUT_SET } } # [doc = "Field `INT_EVENT1_MIS_RXINT` reader - Masked UART Receive Interrupt."]
pub type INT_EVENT1_MIS_RXINT_R = crate :: BitReader < INT_EVENT1_MIS_RXINT_A > ; # [doc = "Masked UART Receive Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_RXINT_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_RXINT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_RXINT_SET = 1 , } impl From < INT_EVENT1_MIS_RXINT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_RXINT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_RXINT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_RXINT_A { match self . bits { false => INT_EVENT1_MIS_RXINT_A :: INT_EVENT1_MIS_RXINT_CLR , true => INT_EVENT1_MIS_RXINT_A :: INT_EVENT1_MIS_RXINT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_rxint_clr (& self) -> bool { * self == INT_EVENT1_MIS_RXINT_A :: INT_EVENT1_MIS_RXINT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_rxint_set (& self) -> bool { * self == INT_EVENT1_MIS_RXINT_A :: INT_EVENT1_MIS_RXINT_SET } } impl R { # [doc = "Bit 0 - Masked UARTOUT Receive Time-Out Interrupt."]
# [inline (always)]
pub fn int_event1_mis_rtout (& self) -> INT_EVENT1_MIS_RTOUT_R { INT_EVENT1_MIS_RTOUT_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 10 - Masked UART Receive Interrupt."]
# [inline (always)]
pub fn int_event1_mis_rxint (& self) -> INT_EVENT1_MIS_RXINT_R { INT_EVENT1_MIS_RXINT_R :: new (((self . bits >> 10) & 1) != 0) } } # [doc = "Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_MIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event1_mis::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT1_MIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT1_MIS to value 0"]
impl crate :: Resettable for INT_EVENT1_MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_ISET (w) register accessor: Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_iset`]
module"]
pub type INT_EVENT1_ISET = crate :: Reg < int_event1_iset :: INT_EVENT1_ISET_SPEC > ; # [doc = "Interrupt set"]
pub mod int_event1_iset { # [doc = "Register `INT_EVENT1_ISET` writer"]
pub type W = crate :: W < INT_EVENT1_ISET_SPEC > ; # [doc = "Set UARTOUT Receive Time-Out Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_RTOUT_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_RTOUT_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_RTOUT_SET = 1 , } impl From < INT_EVENT1_ISET_RTOUT_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_RTOUT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_RTOUT` writer - Set UARTOUT Receive Time-Out Interrupt."]
pub type INT_EVENT1_ISET_RTOUT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_RTOUT_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_RTOUT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_rtout_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_RTOUT_AW :: INT_EVENT1_ISET_RTOUT_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_rtout_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_RTOUT_AW :: INT_EVENT1_ISET_RTOUT_SET) } } # [doc = "Set UART Receive Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_RXINT_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_RXINT_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_RXINT_SET = 1 , } impl From < INT_EVENT1_ISET_RXINT_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_RXINT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_RXINT` writer - Set UART Receive Interrupt."]
pub type INT_EVENT1_ISET_RXINT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_RXINT_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_RXINT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_rxint_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_RXINT_AW :: INT_EVENT1_ISET_RXINT_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_rxint_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_RXINT_AW :: INT_EVENT1_ISET_RXINT_SET) } } impl W { # [doc = "Bit 0 - Set UARTOUT Receive Time-Out Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_rtout (& mut self) -> INT_EVENT1_ISET_RTOUT_W < INT_EVENT1_ISET_SPEC , 0 > { INT_EVENT1_ISET_RTOUT_W :: new (self) } # [doc = "Bit 10 - Set UART Receive Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_rxint (& mut self) -> INT_EVENT1_ISET_RXINT_W < INT_EVENT1_ISET_SPEC , 10 > { INT_EVENT1_ISET_RXINT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_ISET_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event1_iset::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT1_ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT1_ISET to value 0"]
impl crate :: Resettable for INT_EVENT1_ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_ICLR (w) register accessor: Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_iclr`]
module"]
pub type INT_EVENT1_ICLR = crate :: Reg < int_event1_iclr :: INT_EVENT1_ICLR_SPEC > ; # [doc = "Interrupt clear"]
pub mod int_event1_iclr { # [doc = "Register `INT_EVENT1_ICLR` writer"]
pub type W = crate :: W < INT_EVENT1_ICLR_SPEC > ; # [doc = "Clear UARTOUT Receive Time-Out Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_RTOUT_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_RTOUT_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_RTOUT_CLR = 1 , } impl From < INT_EVENT1_ICLR_RTOUT_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_RTOUT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_RTOUT` writer - Clear UARTOUT Receive Time-Out Interrupt."]
pub type INT_EVENT1_ICLR_RTOUT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_RTOUT_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_RTOUT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_rtout_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_RTOUT_AW :: INT_EVENT1_ICLR_RTOUT_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_rtout_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_RTOUT_AW :: INT_EVENT1_ICLR_RTOUT_CLR) } } # [doc = "Clear UART Receive Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_RXINT_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_RXINT_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_RXINT_CLR = 1 , } impl From < INT_EVENT1_ICLR_RXINT_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_RXINT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_RXINT` writer - Clear UART Receive Interrupt."]
pub type INT_EVENT1_ICLR_RXINT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_RXINT_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_RXINT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_rxint_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_RXINT_AW :: INT_EVENT1_ICLR_RXINT_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_rxint_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_RXINT_AW :: INT_EVENT1_ICLR_RXINT_CLR) } } impl W { # [doc = "Bit 0 - Clear UARTOUT Receive Time-Out Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_rtout (& mut self) -> INT_EVENT1_ICLR_RTOUT_W < INT_EVENT1_ICLR_SPEC , 0 > { INT_EVENT1_ICLR_RTOUT_W :: new (self) } # [doc = "Bit 10 - Clear UART Receive Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_rxint (& mut self) -> INT_EVENT1_ICLR_RXINT_W < INT_EVENT1_ICLR_SPEC , 10 > { INT_EVENT1_ICLR_RXINT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_ICLR_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event1_iclr::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT1_ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT1_ICLR to value 0"]
impl crate :: Resettable for INT_EVENT1_ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_IIDX (r) register accessor: Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_iidx`]
module"]
pub type INT_EVENT2_IIDX = crate :: Reg < int_event2_iidx :: INT_EVENT2_IIDX_SPEC > ; # [doc = "Interrupt index"]
pub mod int_event2_iidx { # [doc = "Register `INT_EVENT2_IIDX` reader"]
pub type R = crate :: R < INT_EVENT2_IIDX_SPEC > ; # [doc = "Field `INT_EVENT2_IIDX_STAT` reader - UART Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in UARTRIS and UARTMISC. 15h-1Fh = Reserved"]
pub type INT_EVENT2_IIDX_STAT_R = crate :: FieldReader < INT_EVENT2_IIDX_STAT_A > ; # [doc = "UART Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in UARTRIS and UARTMISC. 15h-1Fh = Reserved\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum INT_EVENT2_IIDX_STAT_A { # [doc = "0: NO_INTR"]
INT_EVENT2_IIDX_STAT_NO_INTR = 0 , # [doc = "12: TXIFG"]
INT_EVENT2_IIDX_STAT_TXIFG = 12 , } impl From < INT_EVENT2_IIDX_STAT_A > for u8 { # [inline (always)]
fn from (variant : INT_EVENT2_IIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for INT_EVENT2_IIDX_STAT_A { type Ux = u8 ; } impl INT_EVENT2_IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < INT_EVENT2_IIDX_STAT_A > { match self . bits { 0 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_NO_INTR) , 12 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_TXIFG) , _ => None , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_no_intr (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_NO_INTR } # [doc = "TXIFG"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_txifg (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_TXIFG } } impl R { # [doc = "Bits 0:7 - UART Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in UARTRIS and UARTMISC. 15h-1Fh = Reserved"]
# [inline (always)]
pub fn int_event2_iidx_stat (& self) -> INT_EVENT2_IIDX_STAT_R { INT_EVENT2_IIDX_STAT_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_IIDX_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event2_iidx::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT2_IIDX_SPEC { } # [doc = "`reset()` method sets INT_EVENT2_IIDX to value 0"]
impl crate :: Resettable for INT_EVENT2_IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_IMASK (rw) register accessor: Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_imask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_imask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_imask`]
module"]
pub type INT_EVENT2_IMASK = crate :: Reg < int_event2_imask :: INT_EVENT2_IMASK_SPEC > ; # [doc = "Interrupt mask"]
pub mod int_event2_imask { # [doc = "Register `INT_EVENT2_IMASK` reader"]
pub type R = crate :: R < INT_EVENT2_IMASK_SPEC > ; # [doc = "Register `INT_EVENT2_IMASK` writer"]
pub type W = crate :: W < INT_EVENT2_IMASK_SPEC > ; # [doc = "Field `INT_EVENT2_IMASK_TXINT` reader - Enable UART Transmit Interrupt."]
pub type INT_EVENT2_IMASK_TXINT_R = crate :: BitReader < INT_EVENT2_IMASK_TXINT_A > ; # [doc = "Enable UART Transmit Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_IMASK_TXINT_A { # [doc = "0: CLR"]
INT_EVENT2_IMASK_TXINT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_IMASK_TXINT_SET = 1 , } impl From < INT_EVENT2_IMASK_TXINT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_IMASK_TXINT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_IMASK_TXINT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_IMASK_TXINT_A { match self . bits { false => INT_EVENT2_IMASK_TXINT_A :: INT_EVENT2_IMASK_TXINT_CLR , true => INT_EVENT2_IMASK_TXINT_A :: INT_EVENT2_IMASK_TXINT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_imask_txint_clr (& self) -> bool { * self == INT_EVENT2_IMASK_TXINT_A :: INT_EVENT2_IMASK_TXINT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_imask_txint_set (& self) -> bool { * self == INT_EVENT2_IMASK_TXINT_A :: INT_EVENT2_IMASK_TXINT_SET } } # [doc = "Field `INT_EVENT2_IMASK_TXINT` writer - Enable UART Transmit Interrupt."]
pub type INT_EVENT2_IMASK_TXINT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_IMASK_TXINT_A > ; impl < 'a , REG , const O : u8 > INT_EVENT2_IMASK_TXINT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_imask_txint_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_TXINT_A :: INT_EVENT2_IMASK_TXINT_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_imask_txint_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_TXINT_A :: INT_EVENT2_IMASK_TXINT_SET) } } impl R { # [doc = "Bit 11 - Enable UART Transmit Interrupt."]
# [inline (always)]
pub fn int_event2_imask_txint (& self) -> INT_EVENT2_IMASK_TXINT_R { INT_EVENT2_IMASK_TXINT_R :: new (((self . bits >> 11) & 1) != 0) } } impl W { # [doc = "Bit 11 - Enable UART Transmit Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event2_imask_txint (& mut self) -> INT_EVENT2_IMASK_TXINT_W < INT_EVENT2_IMASK_SPEC , 11 > { INT_EVENT2_IMASK_TXINT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_imask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_imask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_IMASK_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event2_imask::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT2_IMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`int_event2_imask::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT2_IMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT2_IMASK to value 0"]
impl crate :: Resettable for INT_EVENT2_IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_RIS (r) register accessor: Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_ris`]
module"]
pub type INT_EVENT2_RIS = crate :: Reg < int_event2_ris :: INT_EVENT2_RIS_SPEC > ; # [doc = "Raw interrupt status"]
pub mod int_event2_ris { # [doc = "Register `INT_EVENT2_RIS` reader"]
pub type R = crate :: R < INT_EVENT2_RIS_SPEC > ; # [doc = "Field `INT_EVENT2_RIS_TXINT` reader - UART Transmit Interrupt."]
pub type INT_EVENT2_RIS_TXINT_R = crate :: BitReader < INT_EVENT2_RIS_TXINT_A > ; # [doc = "UART Transmit Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_RIS_TXINT_A { # [doc = "0: CLR"]
INT_EVENT2_RIS_TXINT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_RIS_TXINT_SET = 1 , } impl From < INT_EVENT2_RIS_TXINT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_RIS_TXINT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_RIS_TXINT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_RIS_TXINT_A { match self . bits { false => INT_EVENT2_RIS_TXINT_A :: INT_EVENT2_RIS_TXINT_CLR , true => INT_EVENT2_RIS_TXINT_A :: INT_EVENT2_RIS_TXINT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_ris_txint_clr (& self) -> bool { * self == INT_EVENT2_RIS_TXINT_A :: INT_EVENT2_RIS_TXINT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_ris_txint_set (& self) -> bool { * self == INT_EVENT2_RIS_TXINT_A :: INT_EVENT2_RIS_TXINT_SET } } impl R { # [doc = "Bit 11 - UART Transmit Interrupt."]
# [inline (always)]
pub fn int_event2_ris_txint (& self) -> INT_EVENT2_RIS_TXINT_R { INT_EVENT2_RIS_TXINT_R :: new (((self . bits >> 11) & 1) != 0) } } # [doc = "Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_RIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event2_ris::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT2_RIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT2_RIS to value 0"]
impl crate :: Resettable for INT_EVENT2_RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_MIS (r) register accessor: Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_mis`]
module"]
pub type INT_EVENT2_MIS = crate :: Reg < int_event2_mis :: INT_EVENT2_MIS_SPEC > ; # [doc = "Masked interrupt status"]
pub mod int_event2_mis { # [doc = "Register `INT_EVENT2_MIS` reader"]
pub type R = crate :: R < INT_EVENT2_MIS_SPEC > ; # [doc = "Field `INT_EVENT2_MIS_TXINT` reader - Masked UART Transmit Interrupt."]
pub type INT_EVENT2_MIS_TXINT_R = crate :: BitReader < INT_EVENT2_MIS_TXINT_A > ; # [doc = "Masked UART Transmit Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_MIS_TXINT_A { # [doc = "0: CLR"]
INT_EVENT2_MIS_TXINT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_MIS_TXINT_SET = 1 , } impl From < INT_EVENT2_MIS_TXINT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_MIS_TXINT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_MIS_TXINT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_MIS_TXINT_A { match self . bits { false => INT_EVENT2_MIS_TXINT_A :: INT_EVENT2_MIS_TXINT_CLR , true => INT_EVENT2_MIS_TXINT_A :: INT_EVENT2_MIS_TXINT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_mis_txint_clr (& self) -> bool { * self == INT_EVENT2_MIS_TXINT_A :: INT_EVENT2_MIS_TXINT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_mis_txint_set (& self) -> bool { * self == INT_EVENT2_MIS_TXINT_A :: INT_EVENT2_MIS_TXINT_SET } } impl R { # [doc = "Bit 11 - Masked UART Transmit Interrupt."]
# [inline (always)]
pub fn int_event2_mis_txint (& self) -> INT_EVENT2_MIS_TXINT_R { INT_EVENT2_MIS_TXINT_R :: new (((self . bits >> 11) & 1) != 0) } } # [doc = "Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_MIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event2_mis::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT2_MIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT2_MIS to value 0"]
impl crate :: Resettable for INT_EVENT2_MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_ISET (w) register accessor: Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_iset`]
module"]
pub type INT_EVENT2_ISET = crate :: Reg < int_event2_iset :: INT_EVENT2_ISET_SPEC > ; # [doc = "Interrupt set"]
pub mod int_event2_iset { # [doc = "Register `INT_EVENT2_ISET` writer"]
pub type W = crate :: W < INT_EVENT2_ISET_SPEC > ; # [doc = "Set UART Transmit Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ISET_TXINT_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ISET_TXINT_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT2_ISET_TXINT_SET = 1 , } impl From < INT_EVENT2_ISET_TXINT_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ISET_TXINT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ISET_TXINT` writer - Set UART Transmit Interrupt."]
pub type INT_EVENT2_ISET_TXINT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ISET_TXINT_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ISET_TXINT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iset_txint_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_TXINT_AW :: INT_EVENT2_ISET_TXINT_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_iset_txint_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_TXINT_AW :: INT_EVENT2_ISET_TXINT_SET) } } impl W { # [doc = "Bit 11 - Set UART Transmit Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event2_iset_txint (& mut self) -> INT_EVENT2_ISET_TXINT_W < INT_EVENT2_ISET_SPEC , 11 > { INT_EVENT2_ISET_TXINT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_ISET_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event2_iset::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT2_ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT2_ISET to value 0"]
impl crate :: Resettable for INT_EVENT2_ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_ICLR (w) register accessor: Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_iclr`]
module"]
pub type INT_EVENT2_ICLR = crate :: Reg < int_event2_iclr :: INT_EVENT2_ICLR_SPEC > ; # [doc = "Interrupt clear"]
pub mod int_event2_iclr { # [doc = "Register `INT_EVENT2_ICLR` writer"]
pub type W = crate :: W < INT_EVENT2_ICLR_SPEC > ; # [doc = "Clear UART Transmit Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ICLR_TXINT_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ICLR_TXINT_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT2_ICLR_TXINT_CLR = 1 , } impl From < INT_EVENT2_ICLR_TXINT_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ICLR_TXINT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ICLR_TXINT` writer - Clear UART Transmit Interrupt."]
pub type INT_EVENT2_ICLR_TXINT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ICLR_TXINT_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ICLR_TXINT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iclr_txint_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_TXINT_AW :: INT_EVENT2_ICLR_TXINT_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_iclr_txint_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_TXINT_AW :: INT_EVENT2_ICLR_TXINT_CLR) } } impl W { # [doc = "Bit 11 - Clear UART Transmit Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event2_iclr_txint (& mut self) -> INT_EVENT2_ICLR_TXINT_W < INT_EVENT2_ICLR_SPEC , 11 > { INT_EVENT2_ICLR_TXINT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_ICLR_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event2_iclr::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT2_ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT2_ICLR to value 0"]
impl crate :: Resettable for INT_EVENT2_ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "EVT_MODE (rw) register accessor: Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`evt_mode::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@evt_mode`]
module"]
pub type EVT_MODE = crate :: Reg < evt_mode :: EVT_MODE_SPEC > ; # [doc = "Event Mode"]
pub mod evt_mode { # [doc = "Register `EVT_MODE` reader"]
pub type R = crate :: R < EVT_MODE_SPEC > ; # [doc = "Register `EVT_MODE` writer"]
pub type W = crate :: W < EVT_MODE_SPEC > ; # [doc = "Field `EVT_MODE_INT0_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT0\\]"]
pub type EVT_MODE_INT0_CFG_R = crate :: FieldReader < EVT_MODE_INT0_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT0\\]\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_INT0_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_INT0_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_INT0_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_INT0_CFG_HARDWARE = 2 , } impl From < EVT_MODE_INT0_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_INT0_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_INT0_CFG_A { type Ux = u8 ; } impl EVT_MODE_INT0_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_INT0_CFG_A > { match self . bits { 0 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_DISABLE) , 1 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_SOFTWARE) , 2 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_disable (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_software (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_hardware (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_HARDWARE } } # [doc = "Field `EVT_MODE_EVT1_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT1\\]"]
pub type EVT_MODE_EVT1_CFG_R = crate :: FieldReader < EVT_MODE_EVT1_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT1\\]\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_EVT1_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_EVT1_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_EVT1_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_EVT1_CFG_HARDWARE = 2 , } impl From < EVT_MODE_EVT1_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_EVT1_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_EVT1_CFG_A { type Ux = u8 ; } impl EVT_MODE_EVT1_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_EVT1_CFG_A > { match self . bits { 0 => Some (EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_DISABLE) , 1 => Some (EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_SOFTWARE) , 2 => Some (EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_evt1_cfg_disable (& self) -> bool { * self == EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_evt1_cfg_software (& self) -> bool { * self == EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_evt1_cfg_hardware (& self) -> bool { * self == EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_HARDWARE } } # [doc = "Field `EVT_MODE_EVT2_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT2\\]"]
pub type EVT_MODE_EVT2_CFG_R = crate :: FieldReader < EVT_MODE_EVT2_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT2\\]\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_EVT2_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_EVT2_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_EVT2_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_EVT2_CFG_HARDWARE = 2 , } impl From < EVT_MODE_EVT2_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_EVT2_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_EVT2_CFG_A { type Ux = u8 ; } impl EVT_MODE_EVT2_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_EVT2_CFG_A > { match self . bits { 0 => Some (EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_DISABLE) , 1 => Some (EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_SOFTWARE) , 2 => Some (EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_evt2_cfg_disable (& self) -> bool { * self == EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_evt2_cfg_software (& self) -> bool { * self == EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_evt2_cfg_hardware (& self) -> bool { * self == EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_HARDWARE } } impl R { # [doc = "Bits 0:1 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT0\\]"]
# [inline (always)]
pub fn evt_mode_int0_cfg (& self) -> EVT_MODE_INT0_CFG_R { EVT_MODE_INT0_CFG_R :: new ((self . bits & 3) as u8) } # [doc = "Bits 2:3 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT1\\]"]
# [inline (always)]
pub fn evt_mode_evt1_cfg (& self) -> EVT_MODE_EVT1_CFG_R { EVT_MODE_EVT1_CFG_R :: new (((self . bits >> 2) & 3) as u8) } # [doc = "Bits 4:5 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT2\\]"]
# [inline (always)]
pub fn evt_mode_evt2_cfg (& self) -> EVT_MODE_EVT2_CFG_R { EVT_MODE_EVT2_CFG_R :: new (((self . bits >> 4) & 3) as u8) } } impl W { # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`evt_mode::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct EVT_MODE_SPEC ; impl crate :: RegisterSpec for EVT_MODE_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`evt_mode::R`](R) reader structure"]
impl crate :: Readable for EVT_MODE_SPEC { } # [doc = "`write(|w| ..)` method takes [`evt_mode::W`](W) writer structure"]
impl crate :: Writable for EVT_MODE_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets EVT_MODE to value 0"]
impl crate :: Resettable for EVT_MODE_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DESC (r) register accessor: Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@desc`]
module"]
pub type DESC = crate :: Reg < desc :: DESC_SPEC > ; # [doc = "Module Description"]
pub mod desc { # [doc = "Register `DESC` reader"]
pub type R = crate :: R < DESC_SPEC > ; # [doc = "Field `DESC_MINREV` reader - Minor rev of the IP"]
pub type DESC_MINREV_R = crate :: FieldReader ; # [doc = "Field `DESC_MAJREV` reader - Major rev of the IP"]
pub type DESC_MAJREV_R = crate :: FieldReader ; # [doc = "Field `DESC_INSTNUM` reader - Instance Number within the device. This will be a parameter to the RTL for modules that can have multiple instances"]
pub type DESC_INSTNUM_R = crate :: FieldReader ; # [doc = "Field `DESC_FEATUREVER` reader - Feature Set for the module *instance*"]
pub type DESC_FEATUREVER_R = crate :: FieldReader ; # [doc = "Field `DESC_MODULEID` reader - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
pub type DESC_MODULEID_R = crate :: FieldReader < u16 > ; impl R { # [doc = "Bits 0:3 - Minor rev of the IP"]
# [inline (always)]
pub fn desc_minrev (& self) -> DESC_MINREV_R { DESC_MINREV_R :: new ((self . bits & 0x0f) as u8) } # [doc = "Bits 4:7 - Major rev of the IP"]
# [inline (always)]
pub fn desc_majrev (& self) -> DESC_MAJREV_R { DESC_MAJREV_R :: new (((self . bits >> 4) & 0x0f) as u8) } # [doc = "Bits 8:11 - Instance Number within the device. This will be a parameter to the RTL for modules that can have multiple instances"]
# [inline (always)]
pub fn desc_instnum (& self) -> DESC_INSTNUM_R { DESC_INSTNUM_R :: new (((self . bits >> 8) & 0x0f) as u8) } # [doc = "Bits 12:15 - Feature Set for the module *instance*"]
# [inline (always)]
pub fn desc_featurever (& self) -> DESC_FEATUREVER_R { DESC_FEATUREVER_R :: new (((self . bits >> 12) & 0x0f) as u8) } # [doc = "Bits 16:31 - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
# [inline (always)]
pub fn desc_moduleid (& self) -> DESC_MODULEID_R { DESC_MODULEID_R :: new (((self . bits >> 16) & 0xffff) as u16) } } # [doc = "Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DESC_SPEC ; impl crate :: RegisterSpec for DESC_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`desc::R`](R) reader structure"]
impl crate :: Readable for DESC_SPEC { } # [doc = "`reset()` method sets DESC to value 0"]
impl crate :: Resettable for DESC_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTL0 (rw) register accessor: UART Control Register 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctl0`]
module"]
pub type CTL0 = crate :: Reg < ctl0 :: CTL0_SPEC > ; # [doc = "UART Control Register 0"]
pub mod ctl0 { # [doc = "Register `CTL0` reader"]
pub type R = crate :: R < CTL0_SPEC > ; # [doc = "Register `CTL0` writer"]
pub type W = crate :: W < CTL0_SPEC > ; # [doc = "Field `CTL0_ENABLE` reader - UART Module Enable. If the UART is disabled in the middle of transmission or reception, it completes the current character before stopping. If the ENABLE bit is not set, all registers can still be accessed and updated. It is recommended to setup and change the UART operation mode with having the ENABLE bit cleared to avoid unpredictable behavior during the setup or update. If disabled the UART module will not send or receive any data and the logic is held in reset state."]
pub type CTL0_ENABLE_R = crate :: BitReader < CTL0_ENABLE_A > ; # [doc = "UART Module Enable. If the UART is disabled in the middle of transmission or reception, it completes the current character before stopping. If the ENABLE bit is not set, all registers can still be accessed and updated. It is recommended to setup and change the UART operation mode with having the ENABLE bit cleared to avoid unpredictable behavior during the setup or update. If disabled the UART module will not send or receive any data and the logic is held in reset state.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_ENABLE_A { # [doc = "0: DISABLE"]
CTL0_ENABLE_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL0_ENABLE_ENABLE = 1 , } impl From < CTL0_ENABLE_A > for bool { # [inline (always)]
fn from (variant : CTL0_ENABLE_A) -> Self { variant as u8 != 0 } } impl CTL0_ENABLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_ENABLE_A { match self . bits { false => CTL0_ENABLE_A :: CTL0_ENABLE_DISABLE , true => CTL0_ENABLE_A :: CTL0_ENABLE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl0_enable_disable (& self) -> bool { * self == CTL0_ENABLE_A :: CTL0_ENABLE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl0_enable_enable (& self) -> bool { * self == CTL0_ENABLE_A :: CTL0_ENABLE_ENABLE } } # [doc = "Field `CTL0_ENABLE` writer - UART Module Enable. If the UART is disabled in the middle of transmission or reception, it completes the current character before stopping. If the ENABLE bit is not set, all registers can still be accessed and updated. It is recommended to setup and change the UART operation mode with having the ENABLE bit cleared to avoid unpredictable behavior during the setup or update. If disabled the UART module will not send or receive any data and the logic is held in reset state."]
pub type CTL0_ENABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_ENABLE_A > ; impl < 'a , REG , const O : u8 > CTL0_ENABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl0_enable_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_ENABLE_A :: CTL0_ENABLE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl0_enable_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_ENABLE_A :: CTL0_ENABLE_ENABLE) } } # [doc = "Field `CTL0_LBE` reader - UART Loop Back Enable"]
pub type CTL0_LBE_R = crate :: BitReader < CTL0_LBE_A > ; # [doc = "UART Loop Back Enable\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_LBE_A { # [doc = "0: DISABLE"]
CTL0_LBE_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL0_LBE_ENABLE = 1 , } impl From < CTL0_LBE_A > for bool { # [inline (always)]
fn from (variant : CTL0_LBE_A) -> Self { variant as u8 != 0 } } impl CTL0_LBE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_LBE_A { match self . bits { false => CTL0_LBE_A :: CTL0_LBE_DISABLE , true => CTL0_LBE_A :: CTL0_LBE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl0_lbe_disable (& self) -> bool { * self == CTL0_LBE_A :: CTL0_LBE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl0_lbe_enable (& self) -> bool { * self == CTL0_LBE_A :: CTL0_LBE_ENABLE } } # [doc = "Field `CTL0_LBE` writer - UART Loop Back Enable"]
pub type CTL0_LBE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_LBE_A > ; impl < 'a , REG , const O : u8 > CTL0_LBE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl0_lbe_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_LBE_A :: CTL0_LBE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl0_lbe_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_LBE_A :: CTL0_LBE_ENABLE) } } # [doc = "Field `CTL0_RXE` reader - UART Receive Enable If the UART is disabled in the middle of a receive, it completes the current character before stopping. #b#NOTE:#/b# To enable reception, the UARTEN bit must be set."]
pub type CTL0_RXE_R = crate :: BitReader < CTL0_RXE_A > ; # [doc = "UART Receive Enable If the UART is disabled in the middle of a receive, it completes the current character before stopping. #b#NOTE:#/b# To enable reception, the UARTEN bit must be set.\n\nValue on reset: 1"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_RXE_A { # [doc = "0: DISABLE"]
CTL0_RXE_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL0_RXE_ENABLE = 1 , } impl From < CTL0_RXE_A > for bool { # [inline (always)]
fn from (variant : CTL0_RXE_A) -> Self { variant as u8 != 0 } } impl CTL0_RXE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_RXE_A { match self . bits { false => CTL0_RXE_A :: CTL0_RXE_DISABLE , true => CTL0_RXE_A :: CTL0_RXE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl0_rxe_disable (& self) -> bool { * self == CTL0_RXE_A :: CTL0_RXE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl0_rxe_enable (& self) -> bool { * self == CTL0_RXE_A :: CTL0_RXE_ENABLE } } # [doc = "Field `CTL0_RXE` writer - UART Receive Enable If the UART is disabled in the middle of a receive, it completes the current character before stopping. #b#NOTE:#/b# To enable reception, the UARTEN bit must be set."]
pub type CTL0_RXE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_RXE_A > ; impl < 'a , REG , const O : u8 > CTL0_RXE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl0_rxe_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_RXE_A :: CTL0_RXE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl0_rxe_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_RXE_A :: CTL0_RXE_ENABLE) } } # [doc = "Field `CTL0_TXE` reader - UART Transmit Enable If the UART is disabled in the middle of a transmission, it completes the current character before stopping. #b#NOTE:#/b# To enable transmission, the UARTEN bit must be set."]
pub type CTL0_TXE_R = crate :: BitReader < CTL0_TXE_A > ; # [doc = "UART Transmit Enable If the UART is disabled in the middle of a transmission, it completes the current character before stopping. #b#NOTE:#/b# To enable transmission, the UARTEN bit must be set.\n\nValue on reset: 1"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_TXE_A { # [doc = "0: DISABLE"]
CTL0_TXE_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL0_TXE_ENABLE = 1 , } impl From < CTL0_TXE_A > for bool { # [inline (always)]
fn from (variant : CTL0_TXE_A) -> Self { variant as u8 != 0 } } impl CTL0_TXE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_TXE_A { match self . bits { false => CTL0_TXE_A :: CTL0_TXE_DISABLE , true => CTL0_TXE_A :: CTL0_TXE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl0_txe_disable (& self) -> bool { * self == CTL0_TXE_A :: CTL0_TXE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl0_txe_enable (& self) -> bool { * self == CTL0_TXE_A :: CTL0_TXE_ENABLE } } # [doc = "Field `CTL0_TXE` writer - UART Transmit Enable If the UART is disabled in the middle of a transmission, it completes the current character before stopping. #b#NOTE:#/b# To enable transmission, the UARTEN bit must be set."]
pub type CTL0_TXE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_TXE_A > ; impl < 'a , REG , const O : u8 > CTL0_TXE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl0_txe_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_TXE_A :: CTL0_TXE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl0_txe_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_TXE_A :: CTL0_TXE_ENABLE) } } # [doc = "Field `CTL0_TXD_OUT_EN` reader - TXD Pin Control Enable. When the transmit section of the UART is disabled (TXE = 0), the TXD pin can be controlled by the TXD_OUT bit. 1 = UARTxTXD pin can be controlled by TXD_OUT, if TXE = 0"]
pub type CTL0_TXD_OUT_EN_R = crate :: BitReader < CTL0_TXD_OUT_EN_A > ; # [doc = "TXD Pin Control Enable. When the transmit section of the UART is disabled (TXE = 0), the TXD pin can be controlled by the TXD_OUT bit. 1 = UARTxTXD pin can be controlled by TXD_OUT, if TXE = 0\n\nValue on reset: 1"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_TXD_OUT_EN_A { # [doc = "0: DISABLE"]
CTL0_TXD_OUT_EN_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL0_TXD_OUT_EN_ENABLE = 1 , } impl From < CTL0_TXD_OUT_EN_A > for bool { # [inline (always)]
fn from (variant : CTL0_TXD_OUT_EN_A) -> Self { variant as u8 != 0 } } impl CTL0_TXD_OUT_EN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_TXD_OUT_EN_A { match self . bits { false => CTL0_TXD_OUT_EN_A :: CTL0_TXD_OUT_EN_DISABLE , true => CTL0_TXD_OUT_EN_A :: CTL0_TXD_OUT_EN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl0_txd_out_en_disable (& self) -> bool { * self == CTL0_TXD_OUT_EN_A :: CTL0_TXD_OUT_EN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl0_txd_out_en_enable (& self) -> bool { * self == CTL0_TXD_OUT_EN_A :: CTL0_TXD_OUT_EN_ENABLE } } # [doc = "Field `CTL0_TXD_OUT_EN` writer - TXD Pin Control Enable. When the transmit section of the UART is disabled (TXE = 0), the TXD pin can be controlled by the TXD_OUT bit. 1 = UARTxTXD pin can be controlled by TXD_OUT, if TXE = 0"]
pub type CTL0_TXD_OUT_EN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_TXD_OUT_EN_A > ; impl < 'a , REG , const O : u8 > CTL0_TXD_OUT_EN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl0_txd_out_en_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_TXD_OUT_EN_A :: CTL0_TXD_OUT_EN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl0_txd_out_en_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_TXD_OUT_EN_A :: CTL0_TXD_OUT_EN_ENABLE) } } # [doc = "Field `CTL0_TXD_OUT` reader - TXD Pin Control Controls the TXD pin when TXD_OUT_EN = 1 and TXE = 0."]
pub type CTL0_TXD_OUT_R = crate :: BitReader < CTL0_TXD_OUT_A > ; # [doc = "TXD Pin Control Controls the TXD pin when TXD_OUT_EN = 1 and TXE = 0.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_TXD_OUT_A { # [doc = "0: LOW"]
CTL0_TXD_OUT_LOW = 0 , # [doc = "1: HIGH"]
CTL0_TXD_OUT_HIGH = 1 , } impl From < CTL0_TXD_OUT_A > for bool { # [inline (always)]
fn from (variant : CTL0_TXD_OUT_A) -> Self { variant as u8 != 0 } } impl CTL0_TXD_OUT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_TXD_OUT_A { match self . bits { false => CTL0_TXD_OUT_A :: CTL0_TXD_OUT_LOW , true => CTL0_TXD_OUT_A :: CTL0_TXD_OUT_HIGH , } } # [doc = "LOW"]
# [inline (always)]
pub fn is_ctl0_txd_out_low (& self) -> bool { * self == CTL0_TXD_OUT_A :: CTL0_TXD_OUT_LOW } # [doc = "HIGH"]
# [inline (always)]
pub fn is_ctl0_txd_out_high (& self) -> bool { * self == CTL0_TXD_OUT_A :: CTL0_TXD_OUT_HIGH } } # [doc = "Field `CTL0_TXD_OUT` writer - TXD Pin Control Controls the TXD pin when TXD_OUT_EN = 1 and TXE = 0."]
pub type CTL0_TXD_OUT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_TXD_OUT_A > ; impl < 'a , REG , const O : u8 > CTL0_TXD_OUT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "LOW"]
# [inline (always)]
pub fn ctl0_txd_out_low (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_TXD_OUT_A :: CTL0_TXD_OUT_LOW) } # [doc = "HIGH"]
# [inline (always)]
pub fn ctl0_txd_out_high (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_TXD_OUT_A :: CTL0_TXD_OUT_HIGH) } } # [doc = "Field `CTL0_MENC` reader - Manchester Encode enable"]
pub type CTL0_MENC_R = crate :: BitReader < CTL0_MENC_A > ; # [doc = "Manchester Encode enable\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_MENC_A { # [doc = "0: DISABLE"]
CTL0_MENC_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL0_MENC_ENABLE = 1 , } impl From < CTL0_MENC_A > for bool { # [inline (always)]
fn from (variant : CTL0_MENC_A) -> Self { variant as u8 != 0 } } impl CTL0_MENC_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_MENC_A { match self . bits { false => CTL0_MENC_A :: CTL0_MENC_DISABLE , true => CTL0_MENC_A :: CTL0_MENC_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl0_menc_disable (& self) -> bool { * self == CTL0_MENC_A :: CTL0_MENC_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl0_menc_enable (& self) -> bool { * self == CTL0_MENC_A :: CTL0_MENC_ENABLE } } # [doc = "Field `CTL0_MENC` writer - Manchester Encode enable"]
pub type CTL0_MENC_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_MENC_A > ; impl < 'a , REG , const O : u8 > CTL0_MENC_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl0_menc_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_MENC_A :: CTL0_MENC_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl0_menc_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_MENC_A :: CTL0_MENC_ENABLE) } } # [doc = "Field `CTL0_MODE` reader - Set the communication mode and protocol used. (Not defined settings uses the default setting: 0)"]
pub type CTL0_MODE_R = crate :: FieldReader < CTL0_MODE_A > ; # [doc = "Set the communication mode and protocol used. (Not defined settings uses the default setting: 0)\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTL0_MODE_A { # [doc = "0: UART"]
CTL0_MODE_UART = 0 , # [doc = "1: RS485"]
CTL0_MODE_RS485 = 1 , # [doc = "2: IDLELINE"]
CTL0_MODE_IDLELINE = 2 , # [doc = "3: ADDR9BIT"]
CTL0_MODE_ADDR9BIT = 3 , # [doc = "4: SMART"]
CTL0_MODE_SMART = 4 , # [doc = "5: DALI"]
CTL0_MODE_DALI = 5 , } impl From < CTL0_MODE_A > for u8 { # [inline (always)]
fn from (variant : CTL0_MODE_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTL0_MODE_A { type Ux = u8 ; } impl CTL0_MODE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTL0_MODE_A > { match self . bits { 0 => Some (CTL0_MODE_A :: CTL0_MODE_UART) , 1 => Some (CTL0_MODE_A :: CTL0_MODE_RS485) , 2 => Some (CTL0_MODE_A :: CTL0_MODE_IDLELINE) , 3 => Some (CTL0_MODE_A :: CTL0_MODE_ADDR9BIT) , 4 => Some (CTL0_MODE_A :: CTL0_MODE_SMART) , 5 => Some (CTL0_MODE_A :: CTL0_MODE_DALI) , _ => None , } } # [doc = "UART"]
# [inline (always)]
pub fn is_ctl0_mode_uart (& self) -> bool { * self == CTL0_MODE_A :: CTL0_MODE_UART } # [doc = "RS485"]
# [inline (always)]
pub fn is_ctl0_mode_rs485 (& self) -> bool { * self == CTL0_MODE_A :: CTL0_MODE_RS485 } # [doc = "IDLELINE"]
# [inline (always)]
pub fn is_ctl0_mode_idleline (& self) -> bool { * self == CTL0_MODE_A :: CTL0_MODE_IDLELINE } # [doc = "ADDR9BIT"]
# [inline (always)]
pub fn is_ctl0_mode_addr9bit (& self) -> bool { * self == CTL0_MODE_A :: CTL0_MODE_ADDR9BIT } # [doc = "SMART"]
# [inline (always)]
pub fn is_ctl0_mode_smart (& self) -> bool { * self == CTL0_MODE_A :: CTL0_MODE_SMART } # [doc = "DALI"]
# [inline (always)]
pub fn is_ctl0_mode_dali (& self) -> bool { * self == CTL0_MODE_A :: CTL0_MODE_DALI } } # [doc = "Field `CTL0_MODE` writer - Set the communication mode and protocol used. (Not defined settings uses the default setting: 0)"]
pub type CTL0_MODE_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CTL0_MODE_A > ; impl < 'a , REG , const O : u8 > CTL0_MODE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UART"]
# [inline (always)]
pub fn ctl0_mode_uart (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_MODE_A :: CTL0_MODE_UART) } # [doc = "RS485"]
# [inline (always)]
pub fn ctl0_mode_rs485 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_MODE_A :: CTL0_MODE_RS485) } # [doc = "IDLELINE"]
# [inline (always)]
pub fn ctl0_mode_idleline (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_MODE_A :: CTL0_MODE_IDLELINE) } # [doc = "ADDR9BIT"]
# [inline (always)]
pub fn ctl0_mode_addr9bit (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_MODE_A :: CTL0_MODE_ADDR9BIT) } # [doc = "SMART"]
# [inline (always)]
pub fn ctl0_mode_smart (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_MODE_A :: CTL0_MODE_SMART) } # [doc = "DALI"]
# [inline (always)]
pub fn ctl0_mode_dali (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_MODE_A :: CTL0_MODE_DALI) } } # [doc = "Field `CTL0_RTS` reader - Request to Send If RTSEN is set the RTS output signals is controlled by the hardware logic using the FIFO fill level or TXDATA buffer. If RTSEN is cleared the RTS output is controlled by the RTS bit. The bit is the complement of the UART request to send, RTS modem status output."]
pub type CTL0_RTS_R = crate :: BitReader < CTL0_RTS_A > ; # [doc = "Request to Send If RTSEN is set the RTS output signals is controlled by the hardware logic using the FIFO fill level or TXDATA buffer. If RTSEN is cleared the RTS output is controlled by the RTS bit. The bit is the complement of the UART request to send, RTS modem status output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_RTS_A { # [doc = "0: CLR"]
CTL0_RTS_CLR = 0 , # [doc = "1: SET"]
CTL0_RTS_SET = 1 , } impl From < CTL0_RTS_A > for bool { # [inline (always)]
fn from (variant : CTL0_RTS_A) -> Self { variant as u8 != 0 } } impl CTL0_RTS_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_RTS_A { match self . bits { false => CTL0_RTS_A :: CTL0_RTS_CLR , true => CTL0_RTS_A :: CTL0_RTS_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ctl0_rts_clr (& self) -> bool { * self == CTL0_RTS_A :: CTL0_RTS_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ctl0_rts_set (& self) -> bool { * self == CTL0_RTS_A :: CTL0_RTS_SET } } # [doc = "Field `CTL0_RTS` writer - Request to Send If RTSEN is set the RTS output signals is controlled by the hardware logic using the FIFO fill level or TXDATA buffer. If RTSEN is cleared the RTS output is controlled by the RTS bit. The bit is the complement of the UART request to send, RTS modem status output."]
pub type CTL0_RTS_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_RTS_A > ; impl < 'a , REG , const O : u8 > CTL0_RTS_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn ctl0_rts_clr (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_RTS_A :: CTL0_RTS_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn ctl0_rts_set (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_RTS_A :: CTL0_RTS_SET) } } # [doc = "Field `CTL0_RTSEN` reader - Enable hardware controlled Request to Send"]
pub type CTL0_RTSEN_R = crate :: BitReader < CTL0_RTSEN_A > ; # [doc = "Enable hardware controlled Request to Send\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_RTSEN_A { # [doc = "0: DISABLE"]
CTL0_RTSEN_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL0_RTSEN_ENABLE = 1 , } impl From < CTL0_RTSEN_A > for bool { # [inline (always)]
fn from (variant : CTL0_RTSEN_A) -> Self { variant as u8 != 0 } } impl CTL0_RTSEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_RTSEN_A { match self . bits { false => CTL0_RTSEN_A :: CTL0_RTSEN_DISABLE , true => CTL0_RTSEN_A :: CTL0_RTSEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl0_rtsen_disable (& self) -> bool { * self == CTL0_RTSEN_A :: CTL0_RTSEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl0_rtsen_enable (& self) -> bool { * self == CTL0_RTSEN_A :: CTL0_RTSEN_ENABLE } } # [doc = "Field `CTL0_RTSEN` writer - Enable hardware controlled Request to Send"]
pub type CTL0_RTSEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_RTSEN_A > ; impl < 'a , REG , const O : u8 > CTL0_RTSEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl0_rtsen_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_RTSEN_A :: CTL0_RTSEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl0_rtsen_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_RTSEN_A :: CTL0_RTSEN_ENABLE) } } # [doc = "Field `CTL0_CTSEN` reader - Enable Clear To Send"]
pub type CTL0_CTSEN_R = crate :: BitReader < CTL0_CTSEN_A > ; # [doc = "Enable Clear To Send\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_CTSEN_A { # [doc = "0: DISABLE"]
CTL0_CTSEN_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL0_CTSEN_ENABLE = 1 , } impl From < CTL0_CTSEN_A > for bool { # [inline (always)]
fn from (variant : CTL0_CTSEN_A) -> Self { variant as u8 != 0 } } impl CTL0_CTSEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_CTSEN_A { match self . bits { false => CTL0_CTSEN_A :: CTL0_CTSEN_DISABLE , true => CTL0_CTSEN_A :: CTL0_CTSEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl0_ctsen_disable (& self) -> bool { * self == CTL0_CTSEN_A :: CTL0_CTSEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl0_ctsen_enable (& self) -> bool { * self == CTL0_CTSEN_A :: CTL0_CTSEN_ENABLE } } # [doc = "Field `CTL0_CTSEN` writer - Enable Clear To Send"]
pub type CTL0_CTSEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_CTSEN_A > ; impl < 'a , REG , const O : u8 > CTL0_CTSEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl0_ctsen_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_CTSEN_A :: CTL0_CTSEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl0_ctsen_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_CTSEN_A :: CTL0_CTSEN_ENABLE) } } # [doc = "Field `CTL0_HSE` reader - High-Speed Bit Oversampling Enable #b#NOTE:#/b# The bit oversampling influences the UART baud-rate configuration (see and ). The state of this bit has no effect on clock generation in ISO7816 smart card mode (the SMART bit is set)."]
pub type CTL0_HSE_R = crate :: FieldReader < CTL0_HSE_A > ; # [doc = "High-Speed Bit Oversampling Enable #b#NOTE:#/b# The bit oversampling influences the UART baud-rate configuration (see and ). The state of this bit has no effect on clock generation in ISO7816 smart card mode (the SMART bit is set).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTL0_HSE_A { # [doc = "0: OVS16"]
CTL0_HSE_OVS16 = 0 , # [doc = "1: OVS8"]
CTL0_HSE_OVS8 = 1 , # [doc = "2: OVS3"]
CTL0_HSE_OVS3 = 2 , } impl From < CTL0_HSE_A > for u8 { # [inline (always)]
fn from (variant : CTL0_HSE_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTL0_HSE_A { type Ux = u8 ; } impl CTL0_HSE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTL0_HSE_A > { match self . bits { 0 => Some (CTL0_HSE_A :: CTL0_HSE_OVS16) , 1 => Some (CTL0_HSE_A :: CTL0_HSE_OVS8) , 2 => Some (CTL0_HSE_A :: CTL0_HSE_OVS3) , _ => None , } } # [doc = "OVS16"]
# [inline (always)]
pub fn is_ctl0_hse_ovs16 (& self) -> bool { * self == CTL0_HSE_A :: CTL0_HSE_OVS16 } # [doc = "OVS8"]
# [inline (always)]
pub fn is_ctl0_hse_ovs8 (& self) -> bool { * self == CTL0_HSE_A :: CTL0_HSE_OVS8 } # [doc = "OVS3"]
# [inline (always)]
pub fn is_ctl0_hse_ovs3 (& self) -> bool { * self == CTL0_HSE_A :: CTL0_HSE_OVS3 } } # [doc = "Field `CTL0_HSE` writer - High-Speed Bit Oversampling Enable #b#NOTE:#/b# The bit oversampling influences the UART baud-rate configuration (see and ). The state of this bit has no effect on clock generation in ISO7816 smart card mode (the SMART bit is set)."]
pub type CTL0_HSE_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , CTL0_HSE_A > ; impl < 'a , REG , const O : u8 > CTL0_HSE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "OVS16"]
# [inline (always)]
pub fn ctl0_hse_ovs16 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_HSE_A :: CTL0_HSE_OVS16) } # [doc = "OVS8"]
# [inline (always)]
pub fn ctl0_hse_ovs8 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_HSE_A :: CTL0_HSE_OVS8) } # [doc = "OVS3"]
# [inline (always)]
pub fn ctl0_hse_ovs3 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_HSE_A :: CTL0_HSE_OVS3) } } # [doc = "Field `CTL0_FEN` reader - UART Enable FIFOs"]
pub type CTL0_FEN_R = crate :: BitReader < CTL0_FEN_A > ; # [doc = "UART Enable FIFOs\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_FEN_A { # [doc = "0: DISABLE"]
CTL0_FEN_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL0_FEN_ENABLE = 1 , } impl From < CTL0_FEN_A > for bool { # [inline (always)]
fn from (variant : CTL0_FEN_A) -> Self { variant as u8 != 0 } } impl CTL0_FEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_FEN_A { match self . bits { false => CTL0_FEN_A :: CTL0_FEN_DISABLE , true => CTL0_FEN_A :: CTL0_FEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl0_fen_disable (& self) -> bool { * self == CTL0_FEN_A :: CTL0_FEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl0_fen_enable (& self) -> bool { * self == CTL0_FEN_A :: CTL0_FEN_ENABLE } } # [doc = "Field `CTL0_FEN` writer - UART Enable FIFOs"]
pub type CTL0_FEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_FEN_A > ; impl < 'a , REG , const O : u8 > CTL0_FEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl0_fen_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_FEN_A :: CTL0_FEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl0_fen_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_FEN_A :: CTL0_FEN_ENABLE) } } # [doc = "Field `CTL0_MAJVOTE` reader - When enabled with oversmapling of 16, samples samples 7, 8, and 9 are majority voted to decide the sampled bit value. The value correspond to al least 2 of the 3 samples is considered to be the received value. In case the 3 values do not match, RIS.NERR bit is set along with RDR.NERR When enabled with oversmapling of 8, samples samples 3, 4, and 5 are majority voted to decide the sampled bit value. The value correspond to al least 2 of the 3 samples is considered to be the received value. In case the 3 values donot match, RIS.NERR bit is set along with RDR.NERR When disabled, only a single sample of received bit is taken."]
pub type CTL0_MAJVOTE_R = crate :: BitReader < CTL0_MAJVOTE_A > ; # [doc = "When enabled with oversmapling of 16, samples samples 7, 8, and 9 are majority voted to decide the sampled bit value. The value correspond to al least 2 of the 3 samples is considered to be the received value. In case the 3 values do not match, RIS.NERR bit is set along with RDR.NERR When enabled with oversmapling of 8, samples samples 3, 4, and 5 are majority voted to decide the sampled bit value. The value correspond to al least 2 of the 3 samples is considered to be the received value. In case the 3 values donot match, RIS.NERR bit is set along with RDR.NERR When disabled, only a single sample of received bit is taken.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_MAJVOTE_A { # [doc = "0: DISABLE"]
CTL0_MAJVOTE_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL0_MAJVOTE_ENABLE = 1 , } impl From < CTL0_MAJVOTE_A > for bool { # [inline (always)]
fn from (variant : CTL0_MAJVOTE_A) -> Self { variant as u8 != 0 } } impl CTL0_MAJVOTE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_MAJVOTE_A { match self . bits { false => CTL0_MAJVOTE_A :: CTL0_MAJVOTE_DISABLE , true => CTL0_MAJVOTE_A :: CTL0_MAJVOTE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl0_majvote_disable (& self) -> bool { * self == CTL0_MAJVOTE_A :: CTL0_MAJVOTE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl0_majvote_enable (& self) -> bool { * self == CTL0_MAJVOTE_A :: CTL0_MAJVOTE_ENABLE } } # [doc = "Field `CTL0_MAJVOTE` writer - When enabled with oversmapling of 16, samples samples 7, 8, and 9 are majority voted to decide the sampled bit value. The value correspond to al least 2 of the 3 samples is considered to be the received value. In case the 3 values do not match, RIS.NERR bit is set along with RDR.NERR When enabled with oversmapling of 8, samples samples 3, 4, and 5 are majority voted to decide the sampled bit value. The value correspond to al least 2 of the 3 samples is considered to be the received value. In case the 3 values donot match, RIS.NERR bit is set along with RDR.NERR When disabled, only a single sample of received bit is taken."]
pub type CTL0_MAJVOTE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_MAJVOTE_A > ; impl < 'a , REG , const O : u8 > CTL0_MAJVOTE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl0_majvote_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_MAJVOTE_A :: CTL0_MAJVOTE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl0_majvote_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_MAJVOTE_A :: CTL0_MAJVOTE_ENABLE) } } # [doc = "Field `CTL0_MSBFIRST` reader - Most Significant Bit First This bit has effect both on the way protocol byte is transmitted and received. Notes: User needs to match the protocol to the correct value of this bit to send MSb or LSb first. The hardware engine will send the byte entirely based on this bit."]
pub type CTL0_MSBFIRST_R = crate :: BitReader < CTL0_MSBFIRST_A > ; # [doc = "Most Significant Bit First This bit has effect both on the way protocol byte is transmitted and received. Notes: User needs to match the protocol to the correct value of this bit to send MSb or LSb first. The hardware engine will send the byte entirely based on this bit.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_MSBFIRST_A { # [doc = "0: DISABLE"]
CTL0_MSBFIRST_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL0_MSBFIRST_ENABLE = 1 , } impl From < CTL0_MSBFIRST_A > for bool { # [inline (always)]
fn from (variant : CTL0_MSBFIRST_A) -> Self { variant as u8 != 0 } } impl CTL0_MSBFIRST_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_MSBFIRST_A { match self . bits { false => CTL0_MSBFIRST_A :: CTL0_MSBFIRST_DISABLE , true => CTL0_MSBFIRST_A :: CTL0_MSBFIRST_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl0_msbfirst_disable (& self) -> bool { * self == CTL0_MSBFIRST_A :: CTL0_MSBFIRST_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl0_msbfirst_enable (& self) -> bool { * self == CTL0_MSBFIRST_A :: CTL0_MSBFIRST_ENABLE } } # [doc = "Field `CTL0_MSBFIRST` writer - Most Significant Bit First This bit has effect both on the way protocol byte is transmitted and received. Notes: User needs to match the protocol to the correct value of this bit to send MSb or LSb first. The hardware engine will send the byte entirely based on this bit."]
pub type CTL0_MSBFIRST_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_MSBFIRST_A > ; impl < 'a , REG , const O : u8 > CTL0_MSBFIRST_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl0_msbfirst_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_MSBFIRST_A :: CTL0_MSBFIRST_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl0_msbfirst_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_MSBFIRST_A :: CTL0_MSBFIRST_ENABLE) } } impl R { # [doc = "Bit 0 - UART Module Enable. If the UART is disabled in the middle of transmission or reception, it completes the current character before stopping. If the ENABLE bit is not set, all registers can still be accessed and updated. It is recommended to setup and change the UART operation mode with having the ENABLE bit cleared to avoid unpredictable behavior during the setup or update. If disabled the UART module will not send or receive any data and the logic is held in reset state."]
# [inline (always)]
pub fn ctl0_enable (& self) -> CTL0_ENABLE_R { CTL0_ENABLE_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 2 - UART Loop Back Enable"]
# [inline (always)]
pub fn ctl0_lbe (& self) -> CTL0_LBE_R { CTL0_LBE_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - UART Receive Enable If the UART is disabled in the middle of a receive, it completes the current character before stopping. #b#NOTE:#/b# To enable reception, the UARTEN bit must be set."]
# [inline (always)]
pub fn ctl0_rxe (& self) -> CTL0_RXE_R { CTL0_RXE_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - UART Transmit Enable If the UART is disabled in the middle of a transmission, it completes the current character before stopping. #b#NOTE:#/b# To enable transmission, the UARTEN bit must be set."]
# [inline (always)]
pub fn ctl0_txe (& self) -> CTL0_TXE_R { CTL0_TXE_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - TXD Pin Control Enable. When the transmit section of the UART is disabled (TXE = 0), the TXD pin can be controlled by the TXD_OUT bit. 1 = UARTxTXD pin can be controlled by TXD_OUT, if TXE = 0"]
# [inline (always)]
pub fn ctl0_txd_out_en (& self) -> CTL0_TXD_OUT_EN_R { CTL0_TXD_OUT_EN_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - TXD Pin Control Controls the TXD pin when TXD_OUT_EN = 1 and TXE = 0."]
# [inline (always)]
pub fn ctl0_txd_out (& self) -> CTL0_TXD_OUT_R { CTL0_TXD_OUT_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 7 - Manchester Encode enable"]
# [inline (always)]
pub fn ctl0_menc (& self) -> CTL0_MENC_R { CTL0_MENC_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bits 8:10 - Set the communication mode and protocol used. (Not defined settings uses the default setting: 0)"]
# [inline (always)]
pub fn ctl0_mode (& self) -> CTL0_MODE_R { CTL0_MODE_R :: new (((self . bits >> 8) & 7) as u8) } # [doc = "Bit 12 - Request to Send If RTSEN is set the RTS output signals is controlled by the hardware logic using the FIFO fill level or TXDATA buffer. If RTSEN is cleared the RTS output is controlled by the RTS bit. The bit is the complement of the UART request to send, RTS modem status output."]
# [inline (always)]
pub fn ctl0_rts (& self) -> CTL0_RTS_R { CTL0_RTS_R :: new (((self . bits >> 12) & 1) != 0) } # [doc = "Bit 13 - Enable hardware controlled Request to Send"]
# [inline (always)]
pub fn ctl0_rtsen (& self) -> CTL0_RTSEN_R { CTL0_RTSEN_R :: new (((self . bits >> 13) & 1) != 0) } # [doc = "Bit 14 - Enable Clear To Send"]
# [inline (always)]
pub fn ctl0_ctsen (& self) -> CTL0_CTSEN_R { CTL0_CTSEN_R :: new (((self . bits >> 14) & 1) != 0) } # [doc = "Bits 15:16 - High-Speed Bit Oversampling Enable #b#NOTE:#/b# The bit oversampling influences the UART baud-rate configuration (see and ). The state of this bit has no effect on clock generation in ISO7816 smart card mode (the SMART bit is set)."]
# [inline (always)]
pub fn ctl0_hse (& self) -> CTL0_HSE_R { CTL0_HSE_R :: new (((self . bits >> 15) & 3) as u8) } # [doc = "Bit 17 - UART Enable FIFOs"]
# [inline (always)]
pub fn ctl0_fen (& self) -> CTL0_FEN_R { CTL0_FEN_R :: new (((self . bits >> 17) & 1) != 0) } # [doc = "Bit 18 - When enabled with oversmapling of 16, samples samples 7, 8, and 9 are majority voted to decide the sampled bit value. The value correspond to al least 2 of the 3 samples is considered to be the received value. In case the 3 values do not match, RIS.NERR bit is set along with RDR.NERR When enabled with oversmapling of 8, samples samples 3, 4, and 5 are majority voted to decide the sampled bit value. The value correspond to al least 2 of the 3 samples is considered to be the received value. In case the 3 values donot match, RIS.NERR bit is set along with RDR.NERR When disabled, only a single sample of received bit is taken."]
# [inline (always)]
pub fn ctl0_majvote (& self) -> CTL0_MAJVOTE_R { CTL0_MAJVOTE_R :: new (((self . bits >> 18) & 1) != 0) } # [doc = "Bit 19 - Most Significant Bit First This bit has effect both on the way protocol byte is transmitted and received. Notes: User needs to match the protocol to the correct value of this bit to send MSb or LSb first. The hardware engine will send the byte entirely based on this bit."]
# [inline (always)]
pub fn ctl0_msbfirst (& self) -> CTL0_MSBFIRST_R { CTL0_MSBFIRST_R :: new (((self . bits >> 19) & 1) != 0) } } impl W { # [doc = "Bit 0 - UART Module Enable. If the UART is disabled in the middle of transmission or reception, it completes the current character before stopping. If the ENABLE bit is not set, all registers can still be accessed and updated. It is recommended to setup and change the UART operation mode with having the ENABLE bit cleared to avoid unpredictable behavior during the setup or update. If disabled the UART module will not send or receive any data and the logic is held in reset state."]
# [inline (always)]
# [must_use]
pub fn ctl0_enable (& mut self) -> CTL0_ENABLE_W < CTL0_SPEC , 0 > { CTL0_ENABLE_W :: new (self) } # [doc = "Bit 2 - UART Loop Back Enable"]
# [inline (always)]
# [must_use]
pub fn ctl0_lbe (& mut self) -> CTL0_LBE_W < CTL0_SPEC , 2 > { CTL0_LBE_W :: new (self) } # [doc = "Bit 3 - UART Receive Enable If the UART is disabled in the middle of a receive, it completes the current character before stopping. #b#NOTE:#/b# To enable reception, the UARTEN bit must be set."]
# [inline (always)]
# [must_use]
pub fn ctl0_rxe (& mut self) -> CTL0_RXE_W < CTL0_SPEC , 3 > { CTL0_RXE_W :: new (self) } # [doc = "Bit 4 - UART Transmit Enable If the UART is disabled in the middle of a transmission, it completes the current character before stopping. #b#NOTE:#/b# To enable transmission, the UARTEN bit must be set."]
# [inline (always)]
# [must_use]
pub fn ctl0_txe (& mut self) -> CTL0_TXE_W < CTL0_SPEC , 4 > { CTL0_TXE_W :: new (self) } # [doc = "Bit 5 - TXD Pin Control Enable. When the transmit section of the UART is disabled (TXE = 0), the TXD pin can be controlled by the TXD_OUT bit. 1 = UARTxTXD pin can be controlled by TXD_OUT, if TXE = 0"]
# [inline (always)]
# [must_use]
pub fn ctl0_txd_out_en (& mut self) -> CTL0_TXD_OUT_EN_W < CTL0_SPEC , 5 > { CTL0_TXD_OUT_EN_W :: new (self) } # [doc = "Bit 6 - TXD Pin Control Controls the TXD pin when TXD_OUT_EN = 1 and TXE = 0."]
# [inline (always)]
# [must_use]
pub fn ctl0_txd_out (& mut self) -> CTL0_TXD_OUT_W < CTL0_SPEC , 6 > { CTL0_TXD_OUT_W :: new (self) } # [doc = "Bit 7 - Manchester Encode enable"]
# [inline (always)]
# [must_use]
pub fn ctl0_menc (& mut self) -> CTL0_MENC_W < CTL0_SPEC , 7 > { CTL0_MENC_W :: new (self) } # [doc = "Bits 8:10 - Set the communication mode and protocol used. (Not defined settings uses the default setting: 0)"]
# [inline (always)]
# [must_use]
pub fn ctl0_mode (& mut self) -> CTL0_MODE_W < CTL0_SPEC , 8 > { CTL0_MODE_W :: new (self) } # [doc = "Bit 12 - Request to Send If RTSEN is set the RTS output signals is controlled by the hardware logic using the FIFO fill level or TXDATA buffer. If RTSEN is cleared the RTS output is controlled by the RTS bit. The bit is the complement of the UART request to send, RTS modem status output."]
# [inline (always)]
# [must_use]
pub fn ctl0_rts (& mut self) -> CTL0_RTS_W < CTL0_SPEC , 12 > { CTL0_RTS_W :: new (self) } # [doc = "Bit 13 - Enable hardware controlled Request to Send"]
# [inline (always)]
# [must_use]
pub fn ctl0_rtsen (& mut self) -> CTL0_RTSEN_W < CTL0_SPEC , 13 > { CTL0_RTSEN_W :: new (self) } # [doc = "Bit 14 - Enable Clear To Send"]
# [inline (always)]
# [must_use]
pub fn ctl0_ctsen (& mut self) -> CTL0_CTSEN_W < CTL0_SPEC , 14 > { CTL0_CTSEN_W :: new (self) } # [doc = "Bits 15:16 - High-Speed Bit Oversampling Enable #b#NOTE:#/b# The bit oversampling influences the UART baud-rate configuration (see and ). The state of this bit has no effect on clock generation in ISO7816 smart card mode (the SMART bit is set)."]
# [inline (always)]
# [must_use]
pub fn ctl0_hse (& mut self) -> CTL0_HSE_W < CTL0_SPEC , 15 > { CTL0_HSE_W :: new (self) } # [doc = "Bit 17 - UART Enable FIFOs"]
# [inline (always)]
# [must_use]
pub fn ctl0_fen (& mut self) -> CTL0_FEN_W < CTL0_SPEC , 17 > { CTL0_FEN_W :: new (self) } # [doc = "Bit 18 - When enabled with oversmapling of 16, samples samples 7, 8, and 9 are majority voted to decide the sampled bit value. The value correspond to al least 2 of the 3 samples is considered to be the received value. In case the 3 values do not match, RIS.NERR bit is set along with RDR.NERR When enabled with oversmapling of 8, samples samples 3, 4, and 5 are majority voted to decide the sampled bit value. The value correspond to al least 2 of the 3 samples is considered to be the received value. In case the 3 values donot match, RIS.NERR bit is set along with RDR.NERR When disabled, only a single sample of received bit is taken."]
# [inline (always)]
# [must_use]
pub fn ctl0_majvote (& mut self) -> CTL0_MAJVOTE_W < CTL0_SPEC , 18 > { CTL0_MAJVOTE_W :: new (self) } # [doc = "Bit 19 - Most Significant Bit First This bit has effect both on the way protocol byte is transmitted and received. Notes: User needs to match the protocol to the correct value of this bit to send MSb or LSb first. The hardware engine will send the byte entirely based on this bit."]
# [inline (always)]
# [must_use]
pub fn ctl0_msbfirst (& mut self) -> CTL0_MSBFIRST_W < CTL0_SPEC , 19 > { CTL0_MSBFIRST_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "UART Control Register 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl0::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTL0_SPEC ; impl crate :: RegisterSpec for CTL0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ctl0::R`](R) reader structure"]
impl crate :: Readable for CTL0_SPEC { } # [doc = "`write(|w| ..)` method takes [`ctl0::W`](W) writer structure"]
impl crate :: Writable for CTL0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTL0 to value 0x38"]
impl crate :: Resettable for CTL0_SPEC { const RESET_VALUE : Self :: Ux = 0x38 ; } } # [doc = "LCRH (rw) register accessor: UART Line Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`lcrh::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`lcrh::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@lcrh`]
module"]
pub type LCRH = crate :: Reg < lcrh :: LCRH_SPEC > ; # [doc = "UART Line Control Register"]
pub mod lcrh { # [doc = "Register `LCRH` reader"]
pub type R = crate :: R < LCRH_SPEC > ; # [doc = "Register `LCRH` writer"]
pub type W = crate :: W < LCRH_SPEC > ; # [doc = "Field `LCRH_BRK` reader - UART Send Break (for LIN Protocol)"]
pub type LCRH_BRK_R = crate :: BitReader < LCRH_BRK_A > ; # [doc = "UART Send Break (for LIN Protocol)\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum LCRH_BRK_A { # [doc = "0: DISABLE"]
LCRH_BRK_DISABLE = 0 , # [doc = "1: ENABLE"]
LCRH_BRK_ENABLE = 1 , } impl From < LCRH_BRK_A > for bool { # [inline (always)]
fn from (variant : LCRH_BRK_A) -> Self { variant as u8 != 0 } } impl LCRH_BRK_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> LCRH_BRK_A { match self . bits { false => LCRH_BRK_A :: LCRH_BRK_DISABLE , true => LCRH_BRK_A :: LCRH_BRK_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_lcrh_brk_disable (& self) -> bool { * self == LCRH_BRK_A :: LCRH_BRK_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_lcrh_brk_enable (& self) -> bool { * self == LCRH_BRK_A :: LCRH_BRK_ENABLE } } # [doc = "Field `LCRH_BRK` writer - UART Send Break (for LIN Protocol)"]
pub type LCRH_BRK_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , LCRH_BRK_A > ; impl < 'a , REG , const O : u8 > LCRH_BRK_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn lcrh_brk_disable (self) -> & 'a mut crate :: W < REG > { self . variant (LCRH_BRK_A :: LCRH_BRK_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn lcrh_brk_enable (self) -> & 'a mut crate :: W < REG > { self . variant (LCRH_BRK_A :: LCRH_BRK_ENABLE) } } # [doc = "Field `LCRH_PEN` reader - UART Parity Enable"]
pub type LCRH_PEN_R = crate :: BitReader < LCRH_PEN_A > ; # [doc = "UART Parity Enable\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum LCRH_PEN_A { # [doc = "0: DISABLE"]
LCRH_PEN_DISABLE = 0 , # [doc = "1: ENABLE"]
LCRH_PEN_ENABLE = 1 , } impl From < LCRH_PEN_A > for bool { # [inline (always)]
fn from (variant : LCRH_PEN_A) -> Self { variant as u8 != 0 } } impl LCRH_PEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> LCRH_PEN_A { match self . bits { false => LCRH_PEN_A :: LCRH_PEN_DISABLE , true => LCRH_PEN_A :: LCRH_PEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_lcrh_pen_disable (& self) -> bool { * self == LCRH_PEN_A :: LCRH_PEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_lcrh_pen_enable (& self) -> bool { * self == LCRH_PEN_A :: LCRH_PEN_ENABLE } } # [doc = "Field `LCRH_PEN` writer - UART Parity Enable"]
pub type LCRH_PEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , LCRH_PEN_A > ; impl < 'a , REG , const O : u8 > LCRH_PEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn lcrh_pen_disable (self) -> & 'a mut crate :: W < REG > { self . variant (LCRH_PEN_A :: LCRH_PEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn lcrh_pen_enable (self) -> & 'a mut crate :: W < REG > { self . variant (LCRH_PEN_A :: LCRH_PEN_ENABLE) } } # [doc = "Field `LCRH_EPS` reader - UART Even Parity Select This bit has no effect when parity is disabled by the PEN bit. For 9-Bit UART Mode transmissions, this bit controls the address byte and data byte indication (9th bit). 0 = The transferred byte is a data byte 1 = The transferred byte is an address byte"]
pub type LCRH_EPS_R = crate :: BitReader < LCRH_EPS_A > ; # [doc = "UART Even Parity Select This bit has no effect when parity is disabled by the PEN bit. For 9-Bit UART Mode transmissions, this bit controls the address byte and data byte indication (9th bit). 0 = The transferred byte is a data byte 1 = The transferred byte is an address byte\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum LCRH_EPS_A { # [doc = "0: ODD"]
LCRH_EPS_ODD = 0 , # [doc = "1: EVEN"]
LCRH_EPS_EVEN = 1 , } impl From < LCRH_EPS_A > for bool { # [inline (always)]
fn from (variant : LCRH_EPS_A) -> Self { variant as u8 != 0 } } impl LCRH_EPS_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> LCRH_EPS_A { match self . bits { false => LCRH_EPS_A :: LCRH_EPS_ODD , true => LCRH_EPS_A :: LCRH_EPS_EVEN , } } # [doc = "ODD"]
# [inline (always)]
pub fn is_lcrh_eps_odd (& self) -> bool { * self == LCRH_EPS_A :: LCRH_EPS_ODD } # [doc = "EVEN"]
# [inline (always)]
pub fn is_lcrh_eps_even (& self) -> bool { * self == LCRH_EPS_A :: LCRH_EPS_EVEN } } # [doc = "Field `LCRH_EPS` writer - UART Even Parity Select This bit has no effect when parity is disabled by the PEN bit. For 9-Bit UART Mode transmissions, this bit controls the address byte and data byte indication (9th bit). 0 = The transferred byte is a data byte 1 = The transferred byte is an address byte"]
pub type LCRH_EPS_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , LCRH_EPS_A > ; impl < 'a , REG , const O : u8 > LCRH_EPS_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ODD"]
# [inline (always)]
pub fn lcrh_eps_odd (self) -> & 'a mut crate :: W < REG > { self . variant (LCRH_EPS_A :: LCRH_EPS_ODD) } # [doc = "EVEN"]
# [inline (always)]
pub fn lcrh_eps_even (self) -> & 'a mut crate :: W < REG > { self . variant (LCRH_EPS_A :: LCRH_EPS_EVEN) } } # [doc = "Field `LCRH_STP2` reader - UART Two Stop Bits Select When in 7816 smart card mode (the SMART bit is set in the UARTCTL register), the number of stop bits is forced to 2."]
pub type LCRH_STP2_R = crate :: BitReader < LCRH_STP2_A > ; # [doc = "UART Two Stop Bits Select When in 7816 smart card mode (the SMART bit is set in the UARTCTL register), the number of stop bits is forced to 2.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum LCRH_STP2_A { # [doc = "0: DISABLE"]
LCRH_STP2_DISABLE = 0 , # [doc = "1: ENABLE"]
LCRH_STP2_ENABLE = 1 , } impl From < LCRH_STP2_A > for bool { # [inline (always)]
fn from (variant : LCRH_STP2_A) -> Self { variant as u8 != 0 } } impl LCRH_STP2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> LCRH_STP2_A { match self . bits { false => LCRH_STP2_A :: LCRH_STP2_DISABLE , true => LCRH_STP2_A :: LCRH_STP2_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_lcrh_stp2_disable (& self) -> bool { * self == LCRH_STP2_A :: LCRH_STP2_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_lcrh_stp2_enable (& self) -> bool { * self == LCRH_STP2_A :: LCRH_STP2_ENABLE } } # [doc = "Field `LCRH_STP2` writer - UART Two Stop Bits Select When in 7816 smart card mode (the SMART bit is set in the UARTCTL register), the number of stop bits is forced to 2."]
pub type LCRH_STP2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , LCRH_STP2_A > ; impl < 'a , REG , const O : u8 > LCRH_STP2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn lcrh_stp2_disable (self) -> & 'a mut crate :: W < REG > { self . variant (LCRH_STP2_A :: LCRH_STP2_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn lcrh_stp2_enable (self) -> & 'a mut crate :: W < REG > { self . variant (LCRH_STP2_A :: LCRH_STP2_ENABLE) } } # [doc = "Field `LCRH_WLEN` reader - UART Word Length The bits indicate the number of data bits transmitted or received in a frame as follows:"]
pub type LCRH_WLEN_R = crate :: FieldReader < LCRH_WLEN_A > ; # [doc = "UART Word Length The bits indicate the number of data bits transmitted or received in a frame as follows:\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum LCRH_WLEN_A { # [doc = "0: DATABIT5"]
LCRH_WLEN_DATABIT5 = 0 , # [doc = "1: DATABIT6"]
LCRH_WLEN_DATABIT6 = 1 , # [doc = "2: DATABIT7"]
LCRH_WLEN_DATABIT7 = 2 , # [doc = "3: DATABIT8"]
LCRH_WLEN_DATABIT8 = 3 , } impl From < LCRH_WLEN_A > for u8 { # [inline (always)]
fn from (variant : LCRH_WLEN_A) -> Self { variant as _ } } impl crate :: FieldSpec for LCRH_WLEN_A { type Ux = u8 ; } impl LCRH_WLEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> LCRH_WLEN_A { match self . bits { 0 => LCRH_WLEN_A :: LCRH_WLEN_DATABIT5 , 1 => LCRH_WLEN_A :: LCRH_WLEN_DATABIT6 , 2 => LCRH_WLEN_A :: LCRH_WLEN_DATABIT7 , 3 => LCRH_WLEN_A :: LCRH_WLEN_DATABIT8 , _ => unreachable ! () , } } # [doc = "DATABIT5"]
# [inline (always)]
pub fn is_lcrh_wlen_databit5 (& self) -> bool { * self == LCRH_WLEN_A :: LCRH_WLEN_DATABIT5 } # [doc = "DATABIT6"]
# [inline (always)]
pub fn is_lcrh_wlen_databit6 (& self) -> bool { * self == LCRH_WLEN_A :: LCRH_WLEN_DATABIT6 } # [doc = "DATABIT7"]
# [inline (always)]
pub fn is_lcrh_wlen_databit7 (& self) -> bool { * self == LCRH_WLEN_A :: LCRH_WLEN_DATABIT7 } # [doc = "DATABIT8"]
# [inline (always)]
pub fn is_lcrh_wlen_databit8 (& self) -> bool { * self == LCRH_WLEN_A :: LCRH_WLEN_DATABIT8 } } # [doc = "Field `LCRH_WLEN` writer - UART Word Length The bits indicate the number of data bits transmitted or received in a frame as follows:"]
pub type LCRH_WLEN_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , LCRH_WLEN_A > ; impl < 'a , REG , const O : u8 > LCRH_WLEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DATABIT5"]
# [inline (always)]
pub fn lcrh_wlen_databit5 (self) -> & 'a mut crate :: W < REG > { self . variant (LCRH_WLEN_A :: LCRH_WLEN_DATABIT5) } # [doc = "DATABIT6"]
# [inline (always)]
pub fn lcrh_wlen_databit6 (self) -> & 'a mut crate :: W < REG > { self . variant (LCRH_WLEN_A :: LCRH_WLEN_DATABIT6) } # [doc = "DATABIT7"]
# [inline (always)]
pub fn lcrh_wlen_databit7 (self) -> & 'a mut crate :: W < REG > { self . variant (LCRH_WLEN_A :: LCRH_WLEN_DATABIT7) } # [doc = "DATABIT8"]
# [inline (always)]
pub fn lcrh_wlen_databit8 (self) -> & 'a mut crate :: W < REG > { self . variant (LCRH_WLEN_A :: LCRH_WLEN_DATABIT8) } } # [doc = "Field `LCRH_SPS` reader - UART Stick Parity Select The Stick Parity Select (SPS) bit is used to set either a permanent '1' or a permanent '0' as parity when transmitting or receiving data. Its purpose is to typically indicate the first byte of a package or to mark an address byte, for example in a multi-drop RS-485 network. 0h = Stick parity is disabled 1h = Stick parity is enabled. When bits PEN, EPS, and SPS of UARTLCRH are set, the parity bit is transmitted and checked as a 0. When bits PEN and SPS are set and EPS is cleared, the parity bit is transmitted and checked as a 1."]
pub type LCRH_SPS_R = crate :: BitReader < LCRH_SPS_A > ; # [doc = "UART Stick Parity Select The Stick Parity Select (SPS) bit is used to set either a permanent '1' or a permanent '0' as parity when transmitting or receiving data. Its purpose is to typically indicate the first byte of a package or to mark an address byte, for example in a multi-drop RS-485 network. 0h = Stick parity is disabled 1h = Stick parity is enabled. When bits PEN, EPS, and SPS of UARTLCRH are set, the parity bit is transmitted and checked as a 0. When bits PEN and SPS are set and EPS is cleared, the parity bit is transmitted and checked as a 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum LCRH_SPS_A { # [doc = "0: DISABLE"]
LCRH_SPS_DISABLE = 0 , # [doc = "1: ENABLE"]
LCRH_SPS_ENABLE = 1 , } impl From < LCRH_SPS_A > for bool { # [inline (always)]
fn from (variant : LCRH_SPS_A) -> Self { variant as u8 != 0 } } impl LCRH_SPS_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> LCRH_SPS_A { match self . bits { false => LCRH_SPS_A :: LCRH_SPS_DISABLE , true => LCRH_SPS_A :: LCRH_SPS_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_lcrh_sps_disable (& self) -> bool { * self == LCRH_SPS_A :: LCRH_SPS_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_lcrh_sps_enable (& self) -> bool { * self == LCRH_SPS_A :: LCRH_SPS_ENABLE } } # [doc = "Field `LCRH_SPS` writer - UART Stick Parity Select The Stick Parity Select (SPS) bit is used to set either a permanent '1' or a permanent '0' as parity when transmitting or receiving data. Its purpose is to typically indicate the first byte of a package or to mark an address byte, for example in a multi-drop RS-485 network. 0h = Stick parity is disabled 1h = Stick parity is enabled. When bits PEN, EPS, and SPS of UARTLCRH are set, the parity bit is transmitted and checked as a 0. When bits PEN and SPS are set and EPS is cleared, the parity bit is transmitted and checked as a 1."]
pub type LCRH_SPS_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , LCRH_SPS_A > ; impl < 'a , REG , const O : u8 > LCRH_SPS_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn lcrh_sps_disable (self) -> & 'a mut crate :: W < REG > { self . variant (LCRH_SPS_A :: LCRH_SPS_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn lcrh_sps_enable (self) -> & 'a mut crate :: W < REG > { self . variant (LCRH_SPS_A :: LCRH_SPS_ENABLE) } } # [doc = "Field `LCRH_SENDIDLE` reader - UART send IDLE pattern. When this bit is set an SENDIDLE period of 11 bit times will be sent on the TX line. The bit is cleared by hardware afterwards."]
pub type LCRH_SENDIDLE_R = crate :: BitReader < LCRH_SENDIDLE_A > ; # [doc = "UART send IDLE pattern. When this bit is set an SENDIDLE period of 11 bit times will be sent on the TX line. The bit is cleared by hardware afterwards.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum LCRH_SENDIDLE_A { # [doc = "0: DISABLE"]
LCRH_SENDIDLE_DISABLE = 0 , # [doc = "1: ENABLE"]
LCRH_SENDIDLE_ENABLE = 1 , } impl From < LCRH_SENDIDLE_A > for bool { # [inline (always)]
fn from (variant : LCRH_SENDIDLE_A) -> Self { variant as u8 != 0 } } impl LCRH_SENDIDLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> LCRH_SENDIDLE_A { match self . bits { false => LCRH_SENDIDLE_A :: LCRH_SENDIDLE_DISABLE , true => LCRH_SENDIDLE_A :: LCRH_SENDIDLE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_lcrh_sendidle_disable (& self) -> bool { * self == LCRH_SENDIDLE_A :: LCRH_SENDIDLE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_lcrh_sendidle_enable (& self) -> bool { * self == LCRH_SENDIDLE_A :: LCRH_SENDIDLE_ENABLE } } # [doc = "Field `LCRH_SENDIDLE` writer - UART send IDLE pattern. When this bit is set an SENDIDLE period of 11 bit times will be sent on the TX line. The bit is cleared by hardware afterwards."]
pub type LCRH_SENDIDLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , LCRH_SENDIDLE_A > ; impl < 'a , REG , const O : u8 > LCRH_SENDIDLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn lcrh_sendidle_disable (self) -> & 'a mut crate :: W < REG > { self . variant (LCRH_SENDIDLE_A :: LCRH_SENDIDLE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn lcrh_sendidle_enable (self) -> & 'a mut crate :: W < REG > { self . variant (LCRH_SENDIDLE_A :: LCRH_SENDIDLE_ENABLE) } } # [doc = "Field `LCRH_EXTDIR_SETUP` reader - Defines the number of UARTclk ticks the signal to control the external driver for the RS485 will be set before the START bit is send"]
pub type LCRH_EXTDIR_SETUP_R = crate :: FieldReader ; # [doc = "Field `LCRH_EXTDIR_SETUP` writer - Defines the number of UARTclk ticks the signal to control the external driver for the RS485 will be set before the START bit is send"]
pub type LCRH_EXTDIR_SETUP_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 5 , O > ; # [doc = "Field `LCRH_EXTDIR_HOLD` reader - Defines the number of UARTclk ticks the signal to control the external driver for the RS485 will be reset after the beginning of the stop bit. (If 2 STOP bits are enabled the beginning of the 2nd STOP bit.)"]
pub type LCRH_EXTDIR_HOLD_R = crate :: FieldReader ; # [doc = "Field `LCRH_EXTDIR_HOLD` writer - Defines the number of UARTclk ticks the signal to control the external driver for the RS485 will be reset after the beginning of the stop bit. (If 2 STOP bits are enabled the beginning of the 2nd STOP bit.)"]
pub type LCRH_EXTDIR_HOLD_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 5 , O > ; impl R { # [doc = "Bit 0 - UART Send Break (for LIN Protocol)"]
# [inline (always)]
pub fn lcrh_brk (& self) -> LCRH_BRK_R { LCRH_BRK_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - UART Parity Enable"]
# [inline (always)]
pub fn lcrh_pen (& self) -> LCRH_PEN_R { LCRH_PEN_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - UART Even Parity Select This bit has no effect when parity is disabled by the PEN bit. For 9-Bit UART Mode transmissions, this bit controls the address byte and data byte indication (9th bit). 0 = The transferred byte is a data byte 1 = The transferred byte is an address byte"]
# [inline (always)]
pub fn lcrh_eps (& self) -> LCRH_EPS_R { LCRH_EPS_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - UART Two Stop Bits Select When in 7816 smart card mode (the SMART bit is set in the UARTCTL register), the number of stop bits is forced to 2."]
# [inline (always)]
pub fn lcrh_stp2 (& self) -> LCRH_STP2_R { LCRH_STP2_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bits 4:5 - UART Word Length The bits indicate the number of data bits transmitted or received in a frame as follows:"]
# [inline (always)]
pub fn lcrh_wlen (& self) -> LCRH_WLEN_R { LCRH_WLEN_R :: new (((self . bits >> 4) & 3) as u8) } # [doc = "Bit 6 - UART Stick Parity Select The Stick Parity Select (SPS) bit is used to set either a permanent '1' or a permanent '0' as parity when transmitting or receiving data. Its purpose is to typically indicate the first byte of a package or to mark an address byte, for example in a multi-drop RS-485 network. 0h = Stick parity is disabled 1h = Stick parity is enabled. When bits PEN, EPS, and SPS of UARTLCRH are set, the parity bit is transmitted and checked as a 0. When bits PEN and SPS are set and EPS is cleared, the parity bit is transmitted and checked as a 1."]
# [inline (always)]
pub fn lcrh_sps (& self) -> LCRH_SPS_R { LCRH_SPS_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 7 - UART send IDLE pattern. When this bit is set an SENDIDLE period of 11 bit times will be sent on the TX line. The bit is cleared by hardware afterwards."]
# [inline (always)]
pub fn lcrh_sendidle (& self) -> LCRH_SENDIDLE_R { LCRH_SENDIDLE_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bits 16:20 - Defines the number of UARTclk ticks the signal to control the external driver for the RS485 will be set before the START bit is send"]
# [inline (always)]
pub fn lcrh_extdir_setup (& self) -> LCRH_EXTDIR_SETUP_R { LCRH_EXTDIR_SETUP_R :: new (((self . bits >> 16) & 0x1f) as u8) } # [doc = "Bits 21:25 - Defines the number of UARTclk ticks the signal to control the external driver for the RS485 will be reset after the beginning of the stop bit. (If 2 STOP bits are enabled the beginning of the 2nd STOP bit.)"]
# [inline (always)]
pub fn lcrh_extdir_hold (& self) -> LCRH_EXTDIR_HOLD_R { LCRH_EXTDIR_HOLD_R :: new (((self . bits >> 21) & 0x1f) as u8) } } impl W { # [doc = "Bit 0 - UART Send Break (for LIN Protocol)"]
# [inline (always)]
# [must_use]
pub fn lcrh_brk (& mut self) -> LCRH_BRK_W < LCRH_SPEC , 0 > { LCRH_BRK_W :: new (self) } # [doc = "Bit 1 - UART Parity Enable"]
# [inline (always)]
# [must_use]
pub fn lcrh_pen (& mut self) -> LCRH_PEN_W < LCRH_SPEC , 1 > { LCRH_PEN_W :: new (self) } # [doc = "Bit 2 - UART Even Parity Select This bit has no effect when parity is disabled by the PEN bit. For 9-Bit UART Mode transmissions, this bit controls the address byte and data byte indication (9th bit). 0 = The transferred byte is a data byte 1 = The transferred byte is an address byte"]
# [inline (always)]
# [must_use]
pub fn lcrh_eps (& mut self) -> LCRH_EPS_W < LCRH_SPEC , 2 > { LCRH_EPS_W :: new (self) } # [doc = "Bit 3 - UART Two Stop Bits Select When in 7816 smart card mode (the SMART bit is set in the UARTCTL register), the number of stop bits is forced to 2."]
# [inline (always)]
# [must_use]
pub fn lcrh_stp2 (& mut self) -> LCRH_STP2_W < LCRH_SPEC , 3 > { LCRH_STP2_W :: new (self) } # [doc = "Bits 4:5 - UART Word Length The bits indicate the number of data bits transmitted or received in a frame as follows:"]
# [inline (always)]
# [must_use]
pub fn lcrh_wlen (& mut self) -> LCRH_WLEN_W < LCRH_SPEC , 4 > { LCRH_WLEN_W :: new (self) } # [doc = "Bit 6 - UART Stick Parity Select The Stick Parity Select (SPS) bit is used to set either a permanent '1' or a permanent '0' as parity when transmitting or receiving data. Its purpose is to typically indicate the first byte of a package or to mark an address byte, for example in a multi-drop RS-485 network. 0h = Stick parity is disabled 1h = Stick parity is enabled. When bits PEN, EPS, and SPS of UARTLCRH are set, the parity bit is transmitted and checked as a 0. When bits PEN and SPS are set and EPS is cleared, the parity bit is transmitted and checked as a 1."]
# [inline (always)]
# [must_use]
pub fn lcrh_sps (& mut self) -> LCRH_SPS_W < LCRH_SPEC , 6 > { LCRH_SPS_W :: new (self) } # [doc = "Bit 7 - UART send IDLE pattern. When this bit is set an SENDIDLE period of 11 bit times will be sent on the TX line. The bit is cleared by hardware afterwards."]
# [inline (always)]
# [must_use]
pub fn lcrh_sendidle (& mut self) -> LCRH_SENDIDLE_W < LCRH_SPEC , 7 > { LCRH_SENDIDLE_W :: new (self) } # [doc = "Bits 16:20 - Defines the number of UARTclk ticks the signal to control the external driver for the RS485 will be set before the START bit is send"]
# [inline (always)]
# [must_use]
pub fn lcrh_extdir_setup (& mut self) -> LCRH_EXTDIR_SETUP_W < LCRH_SPEC , 16 > { LCRH_EXTDIR_SETUP_W :: new (self) } # [doc = "Bits 21:25 - Defines the number of UARTclk ticks the signal to control the external driver for the RS485 will be reset after the beginning of the stop bit. (If 2 STOP bits are enabled the beginning of the 2nd STOP bit.)"]
# [inline (always)]
# [must_use]
pub fn lcrh_extdir_hold (& mut self) -> LCRH_EXTDIR_HOLD_W < LCRH_SPEC , 21 > { LCRH_EXTDIR_HOLD_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "UART Line Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`lcrh::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`lcrh::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct LCRH_SPEC ; impl crate :: RegisterSpec for LCRH_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`lcrh::R`](R) reader structure"]
impl crate :: Readable for LCRH_SPEC { } # [doc = "`write(|w| ..)` method takes [`lcrh::W`](W) writer structure"]
impl crate :: Writable for LCRH_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets LCRH to value 0"]
impl crate :: Resettable for LCRH_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "STAT (r) register accessor: UART Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@stat`]
module"]
pub type STAT = crate :: Reg < stat :: STAT_SPEC > ; # [doc = "UART Status Register"]
pub mod stat { # [doc = "Register `STAT` reader"]
pub type R = crate :: R < STAT_SPEC > ; # [doc = "Field `STAT_BUSY` reader - UART Busy This bit is set as soon as the transmit FIFO or TXBuffer becomes non-empty (regardless of whether UART is enabled) or if a receive data is currently ongoing (after the start edge have been detected until a complete byte, including all stop bits, has been received by the shift register). In IDLE_Line mode the Busy signal also stays set during the idle time generation."]
pub type STAT_BUSY_R = crate :: BitReader < STAT_BUSY_A > ; # [doc = "UART Busy This bit is set as soon as the transmit FIFO or TXBuffer becomes non-empty (regardless of whether UART is enabled) or if a receive data is currently ongoing (after the start edge have been detected until a complete byte, including all stop bits, has been received by the shift register). In IDLE_Line mode the Busy signal also stays set during the idle time generation.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_BUSY_A { # [doc = "0: CLEARED"]
STAT_BUSY_CLEARED = 0 , # [doc = "1: SET"]
STAT_BUSY_SET = 1 , } impl From < STAT_BUSY_A > for bool { # [inline (always)]
fn from (variant : STAT_BUSY_A) -> Self { variant as u8 != 0 } } impl STAT_BUSY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_BUSY_A { match self . bits { false => STAT_BUSY_A :: STAT_BUSY_CLEARED , true => STAT_BUSY_A :: STAT_BUSY_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_stat_busy_cleared (& self) -> bool { * self == STAT_BUSY_A :: STAT_BUSY_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_stat_busy_set (& self) -> bool { * self == STAT_BUSY_A :: STAT_BUSY_SET } } # [doc = "Field `STAT_RXFE` reader - UART Receive FIFO Empty The meaning of this bit depends on the state of the FEN bit in the CTL0 register."]
pub type STAT_RXFE_R = crate :: BitReader < STAT_RXFE_A > ; # [doc = "UART Receive FIFO Empty The meaning of this bit depends on the state of the FEN bit in the CTL0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_RXFE_A { # [doc = "0: CLEARED"]
STAT_RXFE_CLEARED = 0 , # [doc = "1: SET"]
STAT_RXFE_SET = 1 , } impl From < STAT_RXFE_A > for bool { # [inline (always)]
fn from (variant : STAT_RXFE_A) -> Self { variant as u8 != 0 } } impl STAT_RXFE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_RXFE_A { match self . bits { false => STAT_RXFE_A :: STAT_RXFE_CLEARED , true => STAT_RXFE_A :: STAT_RXFE_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_stat_rxfe_cleared (& self) -> bool { * self == STAT_RXFE_A :: STAT_RXFE_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_stat_rxfe_set (& self) -> bool { * self == STAT_RXFE_A :: STAT_RXFE_SET } } # [doc = "Field `STAT_RXFF` reader - UART Receive FIFO Full The meaning of this bit depends on the state of the FEN bit in the CTL0 register."]
pub type STAT_RXFF_R = crate :: BitReader < STAT_RXFF_A > ; # [doc = "UART Receive FIFO Full The meaning of this bit depends on the state of the FEN bit in the CTL0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_RXFF_A { # [doc = "0: CLEARED"]
STAT_RXFF_CLEARED = 0 , # [doc = "1: SET"]
STAT_RXFF_SET = 1 , } impl From < STAT_RXFF_A > for bool { # [inline (always)]
fn from (variant : STAT_RXFF_A) -> Self { variant as u8 != 0 } } impl STAT_RXFF_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_RXFF_A { match self . bits { false => STAT_RXFF_A :: STAT_RXFF_CLEARED , true => STAT_RXFF_A :: STAT_RXFF_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_stat_rxff_cleared (& self) -> bool { * self == STAT_RXFF_A :: STAT_RXFF_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_stat_rxff_set (& self) -> bool { * self == STAT_RXFF_A :: STAT_RXFF_SET } } # [doc = "Field `STAT_TXFE` reader - UART Transmit FIFO Empty The meaning of this bit depends on the state of the FEN bit in the CTL0 register."]
pub type STAT_TXFE_R = crate :: BitReader < STAT_TXFE_A > ; # [doc = "UART Transmit FIFO Empty The meaning of this bit depends on the state of the FEN bit in the CTL0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_TXFE_A { # [doc = "0: CLEARED"]
STAT_TXFE_CLEARED = 0 , # [doc = "1: SET"]
STAT_TXFE_SET = 1 , } impl From < STAT_TXFE_A > for bool { # [inline (always)]
fn from (variant : STAT_TXFE_A) -> Self { variant as u8 != 0 } } impl STAT_TXFE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_TXFE_A { match self . bits { false => STAT_TXFE_A :: STAT_TXFE_CLEARED , true => STAT_TXFE_A :: STAT_TXFE_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_stat_txfe_cleared (& self) -> bool { * self == STAT_TXFE_A :: STAT_TXFE_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_stat_txfe_set (& self) -> bool { * self == STAT_TXFE_A :: STAT_TXFE_SET } } # [doc = "Field `STAT_TXFF` reader - UART Transmit FIFO Full The meaning of this bit depends on the state of the FEN bit in the CTL0 register."]
pub type STAT_TXFF_R = crate :: BitReader < STAT_TXFF_A > ; # [doc = "UART Transmit FIFO Full The meaning of this bit depends on the state of the FEN bit in the CTL0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_TXFF_A { # [doc = "0: CLEARED"]
STAT_TXFF_CLEARED = 0 , # [doc = "1: SET"]
STAT_TXFF_SET = 1 , } impl From < STAT_TXFF_A > for bool { # [inline (always)]
fn from (variant : STAT_TXFF_A) -> Self { variant as u8 != 0 } } impl STAT_TXFF_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_TXFF_A { match self . bits { false => STAT_TXFF_A :: STAT_TXFF_CLEARED , true => STAT_TXFF_A :: STAT_TXFF_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_stat_txff_cleared (& self) -> bool { * self == STAT_TXFF_A :: STAT_TXFF_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_stat_txff_set (& self) -> bool { * self == STAT_TXFF_A :: STAT_TXFF_SET } } # [doc = "Field `STAT_CTS` reader - Clear To Send"]
pub type STAT_CTS_R = crate :: BitReader < STAT_CTS_A > ; # [doc = "Clear To Send\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_CTS_A { # [doc = "0: CLEARED"]
STAT_CTS_CLEARED = 0 , # [doc = "1: SET"]
STAT_CTS_SET = 1 , } impl From < STAT_CTS_A > for bool { # [inline (always)]
fn from (variant : STAT_CTS_A) -> Self { variant as u8 != 0 } } impl STAT_CTS_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_CTS_A { match self . bits { false => STAT_CTS_A :: STAT_CTS_CLEARED , true => STAT_CTS_A :: STAT_CTS_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_stat_cts_cleared (& self) -> bool { * self == STAT_CTS_A :: STAT_CTS_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_stat_cts_set (& self) -> bool { * self == STAT_CTS_A :: STAT_CTS_SET } } # [doc = "Field `STAT_IDLE` reader - IDLE mode has been detected in Idleline-Mulitprocessor-Mode. The IDLE bit is used as an address tag for each block of characters. In idle-line multiprocessor format, this bit is set when a received character is an address."]
pub type STAT_IDLE_R = crate :: BitReader < STAT_IDLE_A > ; # [doc = "IDLE mode has been detected in Idleline-Mulitprocessor-Mode. The IDLE bit is used as an address tag for each block of characters. In idle-line multiprocessor format, this bit is set when a received character is an address.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_IDLE_A { # [doc = "0: CLEARED"]
STAT_IDLE_CLEARED = 0 , # [doc = "1: SET"]
STAT_IDLE_SET = 1 , } impl From < STAT_IDLE_A > for bool { # [inline (always)]
fn from (variant : STAT_IDLE_A) -> Self { variant as u8 != 0 } } impl STAT_IDLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_IDLE_A { match self . bits { false => STAT_IDLE_A :: STAT_IDLE_CLEARED , true => STAT_IDLE_A :: STAT_IDLE_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_stat_idle_cleared (& self) -> bool { * self == STAT_IDLE_A :: STAT_IDLE_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_stat_idle_set (& self) -> bool { * self == STAT_IDLE_A :: STAT_IDLE_SET } } impl R { # [doc = "Bit 0 - UART Busy This bit is set as soon as the transmit FIFO or TXBuffer becomes non-empty (regardless of whether UART is enabled) or if a receive data is currently ongoing (after the start edge have been detected until a complete byte, including all stop bits, has been received by the shift register). In IDLE_Line mode the Busy signal also stays set during the idle time generation."]
# [inline (always)]
pub fn stat_busy (& self) -> STAT_BUSY_R { STAT_BUSY_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 2 - UART Receive FIFO Empty The meaning of this bit depends on the state of the FEN bit in the CTL0 register."]
# [inline (always)]
pub fn stat_rxfe (& self) -> STAT_RXFE_R { STAT_RXFE_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - UART Receive FIFO Full The meaning of this bit depends on the state of the FEN bit in the CTL0 register."]
# [inline (always)]
pub fn stat_rxff (& self) -> STAT_RXFF_R { STAT_RXFF_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 6 - UART Transmit FIFO Empty The meaning of this bit depends on the state of the FEN bit in the CTL0 register."]
# [inline (always)]
pub fn stat_txfe (& self) -> STAT_TXFE_R { STAT_TXFE_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 7 - UART Transmit FIFO Full The meaning of this bit depends on the state of the FEN bit in the CTL0 register."]
# [inline (always)]
pub fn stat_txff (& self) -> STAT_TXFF_R { STAT_TXFF_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - Clear To Send"]
# [inline (always)]
pub fn stat_cts (& self) -> STAT_CTS_R { STAT_CTS_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - IDLE mode has been detected in Idleline-Mulitprocessor-Mode. The IDLE bit is used as an address tag for each block of characters. In idle-line multiprocessor format, this bit is set when a received character is an address."]
# [inline (always)]
pub fn stat_idle (& self) -> STAT_IDLE_R { STAT_IDLE_R :: new (((self . bits >> 9) & 1) != 0) } } # [doc = "UART Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct STAT_SPEC ; impl crate :: RegisterSpec for STAT_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`stat::R`](R) reader structure"]
impl crate :: Readable for STAT_SPEC { } # [doc = "`reset()` method sets STAT to value 0"]
impl crate :: Resettable for STAT_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "IFLS (rw) register accessor: UART Interrupt FIFO Level Select Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ifls::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ifls::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ifls`]
module"]
pub type IFLS = crate :: Reg < ifls :: IFLS_SPEC > ; # [doc = "UART Interrupt FIFO Level Select Register"]
pub mod ifls { # [doc = "Register `IFLS` reader"]
pub type R = crate :: R < IFLS_SPEC > ; # [doc = "Register `IFLS` writer"]
pub type W = crate :: W < IFLS_SPEC > ; # [doc = "Field `IFLS_TXIFLSEL` reader - UART Transmit Interrupt FIFO Level Select The trigger points for the transmit interrupt are as follows: Note: for undefined settings the default configuration is used."]
pub type IFLS_TXIFLSEL_R = crate :: FieldReader ; # [doc = "Field `IFLS_TXIFLSEL` writer - UART Transmit Interrupt FIFO Level Select The trigger points for the transmit interrupt are as follows: Note: for undefined settings the default configuration is used."]
pub type IFLS_TXIFLSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O > ; # [doc = "Field `IFLS_RXIFLSEL` reader - UART Receive Interrupt FIFO Level Select The trigger points for the receive interrupt are as follows: Note: In ULP domain the trigger levels are used for: 0: LVL_1_4 4: LVL_FULL For undefined settings the default configuration is used."]
pub type IFLS_RXIFLSEL_R = crate :: FieldReader ; # [doc = "Field `IFLS_RXIFLSEL` writer - UART Receive Interrupt FIFO Level Select The trigger points for the receive interrupt are as follows: Note: In ULP domain the trigger levels are used for: 0: LVL_1_4 4: LVL_FULL For undefined settings the default configuration is used."]
pub type IFLS_RXIFLSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O > ; # [doc = "Field `IFLS_RXTOSEL` reader - UART Receive Interrupt Timeout Select. When receiving no start edge for an additional character within the set bittimes a RX interrupt is set even if the FIFO level is not reached. A value of 0 disables this function."]
pub type IFLS_RXTOSEL_R = crate :: FieldReader ; # [doc = "Field `IFLS_RXTOSEL` writer - UART Receive Interrupt Timeout Select. When receiving no start edge for an additional character within the set bittimes a RX interrupt is set even if the FIFO level is not reached. A value of 0 disables this function."]
pub type IFLS_RXTOSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 4 , O > ; impl R { # [doc = "Bits 0:2 - UART Transmit Interrupt FIFO Level Select The trigger points for the transmit interrupt are as follows: Note: for undefined settings the default configuration is used."]
# [inline (always)]
pub fn ifls_txiflsel (& self) -> IFLS_TXIFLSEL_R { IFLS_TXIFLSEL_R :: new ((self . bits & 7) as u8) } # [doc = "Bits 4:6 - UART Receive Interrupt FIFO Level Select The trigger points for the receive interrupt are as follows: Note: In ULP domain the trigger levels are used for: 0: LVL_1_4 4: LVL_FULL For undefined settings the default configuration is used."]
# [inline (always)]
pub fn ifls_rxiflsel (& self) -> IFLS_RXIFLSEL_R { IFLS_RXIFLSEL_R :: new (((self . bits >> 4) & 7) as u8) } # [doc = "Bits 8:11 - UART Receive Interrupt Timeout Select. When receiving no start edge for an additional character within the set bittimes a RX interrupt is set even if the FIFO level is not reached. A value of 0 disables this function."]
# [inline (always)]
pub fn ifls_rxtosel (& self) -> IFLS_RXTOSEL_R { IFLS_RXTOSEL_R :: new (((self . bits >> 8) & 0x0f) as u8) } } impl W { # [doc = "Bits 0:2 - UART Transmit Interrupt FIFO Level Select The trigger points for the transmit interrupt are as follows: Note: for undefined settings the default configuration is used."]
# [inline (always)]
# [must_use]
pub fn ifls_txiflsel (& mut self) -> IFLS_TXIFLSEL_W < IFLS_SPEC , 0 > { IFLS_TXIFLSEL_W :: new (self) } # [doc = "Bits 4:6 - UART Receive Interrupt FIFO Level Select The trigger points for the receive interrupt are as follows: Note: In ULP domain the trigger levels are used for: 0: LVL_1_4 4: LVL_FULL For undefined settings the default configuration is used."]
# [inline (always)]
# [must_use]
pub fn ifls_rxiflsel (& mut self) -> IFLS_RXIFLSEL_W < IFLS_SPEC , 4 > { IFLS_RXIFLSEL_W :: new (self) } # [doc = "Bits 8:11 - UART Receive Interrupt Timeout Select. When receiving no start edge for an additional character within the set bittimes a RX interrupt is set even if the FIFO level is not reached. A value of 0 disables this function."]
# [inline (always)]
# [must_use]
pub fn ifls_rxtosel (& mut self) -> IFLS_RXTOSEL_W < IFLS_SPEC , 8 > { IFLS_RXTOSEL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "UART Interrupt FIFO Level Select Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ifls::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ifls::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IFLS_SPEC ; impl crate :: RegisterSpec for IFLS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ifls::R`](R) reader structure"]
impl crate :: Readable for IFLS_SPEC { } # [doc = "`write(|w| ..)` method takes [`ifls::W`](W) writer structure"]
impl crate :: Writable for IFLS_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets IFLS to value 0x22"]
impl crate :: Resettable for IFLS_SPEC { const RESET_VALUE : Self :: Ux = 0x22 ; } } # [doc = "IBRD (rw) register accessor: UART Integer Baud-Rate Divisor Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ibrd::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ibrd::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ibrd`]
module"]
pub type IBRD = crate :: Reg < ibrd :: IBRD_SPEC > ; # [doc = "UART Integer Baud-Rate Divisor Register"]
pub mod ibrd { # [doc = "Register `IBRD` reader"]
pub type R = crate :: R < IBRD_SPEC > ; # [doc = "Register `IBRD` writer"]
pub type W = crate :: W < IBRD_SPEC > ; # [doc = "Field `IBRD_DIVINT` reader - Integer Baud-Rate Divisor"]
pub type IBRD_DIVINT_R = crate :: FieldReader < u16 > ; # [doc = "Field `IBRD_DIVINT` writer - Integer Baud-Rate Divisor"]
pub type IBRD_DIVINT_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 16 , O , u16 > ; impl R { # [doc = "Bits 0:15 - Integer Baud-Rate Divisor"]
# [inline (always)]
pub fn ibrd_divint (& self) -> IBRD_DIVINT_R { IBRD_DIVINT_R :: new ((self . bits & 0xffff) as u16) } } impl W { # [doc = "Bits 0:15 - Integer Baud-Rate Divisor"]
# [inline (always)]
# [must_use]
pub fn ibrd_divint (& mut self) -> IBRD_DIVINT_W < IBRD_SPEC , 0 > { IBRD_DIVINT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "UART Integer Baud-Rate Divisor Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ibrd::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ibrd::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IBRD_SPEC ; impl crate :: RegisterSpec for IBRD_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ibrd::R`](R) reader structure"]
impl crate :: Readable for IBRD_SPEC { } # [doc = "`write(|w| ..)` method takes [`ibrd::W`](W) writer structure"]
impl crate :: Writable for IBRD_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets IBRD to value 0"]
impl crate :: Resettable for IBRD_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "FBRD (rw) register accessor: UART Fractional Baud-Rate Divisor Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fbrd::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fbrd::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fbrd`]
module"]
pub type FBRD = crate :: Reg < fbrd :: FBRD_SPEC > ; # [doc = "UART Fractional Baud-Rate Divisor Register"]
pub mod fbrd { # [doc = "Register `FBRD` reader"]
pub type R = crate :: R < FBRD_SPEC > ; # [doc = "Register `FBRD` writer"]
pub type W = crate :: W < FBRD_SPEC > ; # [doc = "Field `FBRD_DIVFRAC` reader - Fractional Baud-Rate Divisor"]
pub type FBRD_DIVFRAC_R = crate :: FieldReader ; # [doc = "Field `FBRD_DIVFRAC` writer - Fractional Baud-Rate Divisor"]
pub type FBRD_DIVFRAC_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 6 , O > ; impl R { # [doc = "Bits 0:5 - Fractional Baud-Rate Divisor"]
# [inline (always)]
pub fn fbrd_divfrac (& self) -> FBRD_DIVFRAC_R { FBRD_DIVFRAC_R :: new ((self . bits & 0x3f) as u8) } } impl W { # [doc = "Bits 0:5 - Fractional Baud-Rate Divisor"]
# [inline (always)]
# [must_use]
pub fn fbrd_divfrac (& mut self) -> FBRD_DIVFRAC_W < FBRD_SPEC , 0 > { FBRD_DIVFRAC_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "UART Fractional Baud-Rate Divisor Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fbrd::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fbrd::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FBRD_SPEC ; impl crate :: RegisterSpec for FBRD_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fbrd::R`](R) reader structure"]
impl crate :: Readable for FBRD_SPEC { } # [doc = "`write(|w| ..)` method takes [`fbrd::W`](W) writer structure"]
impl crate :: Writable for FBRD_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FBRD to value 0"]
impl crate :: Resettable for FBRD_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "GFCTL (rw) register accessor: Glitch Filter Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gfctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`gfctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gfctl`]
module"]
pub type GFCTL = crate :: Reg < gfctl :: GFCTL_SPEC > ; # [doc = "Glitch Filter Control"]
pub mod gfctl { # [doc = "Register `GFCTL` reader"]
pub type R = crate :: R < GFCTL_SPEC > ; # [doc = "Register `GFCTL` writer"]
pub type W = crate :: W < GFCTL_SPEC > ; # [doc = "Field `GFCTL_DGFSEL` reader - Glitch Suppression Pulse Width This field controls the pulse width select for glitch suppression on the RX line. The following values are the glitch suppression values in terms of functional clocks. In IRDA mode: Receive filter length. The minimum pulse length for receive is given by: t(MIN) = (DGFSEL) / f(IRTXCLK)"]
pub type GFCTL_DGFSEL_R = crate :: FieldReader < GFCTL_DGFSEL_A > ; # [doc = "Glitch Suppression Pulse Width This field controls the pulse width select for glitch suppression on the RX line. The following values are the glitch suppression values in terms of functional clocks. In IRDA mode: Receive filter length. The minimum pulse length for receive is given by: t(MIN) = (DGFSEL) / f(IRTXCLK)\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum GFCTL_DGFSEL_A { # [doc = "0: DISABLED"]
GFCTL_DGFSEL_DISABLED = 0 , } impl From < GFCTL_DGFSEL_A > for u8 { # [inline (always)]
fn from (variant : GFCTL_DGFSEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for GFCTL_DGFSEL_A { type Ux = u8 ; } impl GFCTL_DGFSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < GFCTL_DGFSEL_A > { match self . bits { 0 => Some (GFCTL_DGFSEL_A :: GFCTL_DGFSEL_DISABLED) , _ => None , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_gfctl_dgfsel_disabled (& self) -> bool { * self == GFCTL_DGFSEL_A :: GFCTL_DGFSEL_DISABLED } } # [doc = "Field `GFCTL_DGFSEL` writer - Glitch Suppression Pulse Width This field controls the pulse width select for glitch suppression on the RX line. The following values are the glitch suppression values in terms of functional clocks. In IRDA mode: Receive filter length. The minimum pulse length for receive is given by: t(MIN) = (DGFSEL) / f(IRTXCLK)"]
pub type GFCTL_DGFSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 6 , O , GFCTL_DGFSEL_A > ; impl < 'a , REG , const O : u8 > GFCTL_DGFSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLED"]
# [inline (always)]
pub fn gfctl_dgfsel_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_DGFSEL_A :: GFCTL_DGFSEL_DISABLED) } } # [doc = "Field `GFCTL_AGFEN` reader - Analog Glitch Suppression Enable"]
pub type GFCTL_AGFEN_R = crate :: BitReader < GFCTL_AGFEN_A > ; # [doc = "Analog Glitch Suppression Enable\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum GFCTL_AGFEN_A { # [doc = "0: DISABLE"]
GFCTL_AGFEN_DISABLE = 0 , # [doc = "1: ENABLE"]
GFCTL_AGFEN_ENABLE = 1 , } impl From < GFCTL_AGFEN_A > for bool { # [inline (always)]
fn from (variant : GFCTL_AGFEN_A) -> Self { variant as u8 != 0 } } impl GFCTL_AGFEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> GFCTL_AGFEN_A { match self . bits { false => GFCTL_AGFEN_A :: GFCTL_AGFEN_DISABLE , true => GFCTL_AGFEN_A :: GFCTL_AGFEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_gfctl_agfen_disable (& self) -> bool { * self == GFCTL_AGFEN_A :: GFCTL_AGFEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_gfctl_agfen_enable (& self) -> bool { * self == GFCTL_AGFEN_A :: GFCTL_AGFEN_ENABLE } } # [doc = "Field `GFCTL_AGFEN` writer - Analog Glitch Suppression Enable"]
pub type GFCTL_AGFEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , GFCTL_AGFEN_A > ; impl < 'a , REG , const O : u8 > GFCTL_AGFEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn gfctl_agfen_disable (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_AGFEN_A :: GFCTL_AGFEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn gfctl_agfen_enable (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_AGFEN_A :: GFCTL_AGFEN_ENABLE) } } # [doc = "Field `GFCTL_AGFSEL` reader - Analog Glitch Suppression Pulse Width This field controls the pulse width select for the analog glitch suppression on the RX line. See device datasheet for exact values. (ULP UART only)"]
pub type GFCTL_AGFSEL_R = crate :: FieldReader < GFCTL_AGFSEL_A > ; # [doc = "Analog Glitch Suppression Pulse Width This field controls the pulse width select for the analog glitch suppression on the RX line. See device datasheet for exact values. (ULP UART only)\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum GFCTL_AGFSEL_A { # [doc = "0: AGLIT_5"]
GFCTL_AGFSEL_AGLIT_5 = 0 , # [doc = "1: AGLIT_10"]
GFCTL_AGFSEL_AGLIT_10 = 1 , # [doc = "2: AGLIT_25"]
GFCTL_AGFSEL_AGLIT_25 = 2 , # [doc = "3: AGLIT_50"]
GFCTL_AGFSEL_AGLIT_50 = 3 , } impl From < GFCTL_AGFSEL_A > for u8 { # [inline (always)]
fn from (variant : GFCTL_AGFSEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for GFCTL_AGFSEL_A { type Ux = u8 ; } impl GFCTL_AGFSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> GFCTL_AGFSEL_A { match self . bits { 0 => GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_5 , 1 => GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_10 , 2 => GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_25 , 3 => GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_50 , _ => unreachable ! () , } } # [doc = "AGLIT_5"]
# [inline (always)]
pub fn is_gfctl_agfsel_aglit_5 (& self) -> bool { * self == GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_5 } # [doc = "AGLIT_10"]
# [inline (always)]
pub fn is_gfctl_agfsel_aglit_10 (& self) -> bool { * self == GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_10 } # [doc = "AGLIT_25"]
# [inline (always)]
pub fn is_gfctl_agfsel_aglit_25 (& self) -> bool { * self == GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_25 } # [doc = "AGLIT_50"]
# [inline (always)]
pub fn is_gfctl_agfsel_aglit_50 (& self) -> bool { * self == GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_50 } } # [doc = "Field `GFCTL_AGFSEL` writer - Analog Glitch Suppression Pulse Width This field controls the pulse width select for the analog glitch suppression on the RX line. See device datasheet for exact values. (ULP UART only)"]
pub type GFCTL_AGFSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , GFCTL_AGFSEL_A > ; impl < 'a , REG , const O : u8 > GFCTL_AGFSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "AGLIT_5"]
# [inline (always)]
pub fn gfctl_agfsel_aglit_5 (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_5) } # [doc = "AGLIT_10"]
# [inline (always)]
pub fn gfctl_agfsel_aglit_10 (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_10) } # [doc = "AGLIT_25"]
# [inline (always)]
pub fn gfctl_agfsel_aglit_25 (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_25) } # [doc = "AGLIT_50"]
# [inline (always)]
pub fn gfctl_agfsel_aglit_50 (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_50) } } # [doc = "Field `GFCTL_CHAIN` reader - Analog and digital noise filters chaining enable. 0 DISABLE: When 0, chaining is disabled and only digital filter output is available to IP logic for sampling 1 ENABLE: When 1, analog and digital glitch filters are chained and the output of the combination is made available to IP logic for sampling"]
pub type GFCTL_CHAIN_R = crate :: BitReader < GFCTL_CHAIN_A > ; # [doc = "Analog and digital noise filters chaining enable. 0 DISABLE: When 0, chaining is disabled and only digital filter output is available to IP logic for sampling 1 ENABLE: When 1, analog and digital glitch filters are chained and the output of the combination is made available to IP logic for sampling\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum GFCTL_CHAIN_A { # [doc = "0: DISABLED"]
GFCTL_CHAIN_DISABLED = 0 , # [doc = "1: ENABLED"]
GFCTL_CHAIN_ENABLED = 1 , } impl From < GFCTL_CHAIN_A > for bool { # [inline (always)]
fn from (variant : GFCTL_CHAIN_A) -> Self { variant as u8 != 0 } } impl GFCTL_CHAIN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> GFCTL_CHAIN_A { match self . bits { false => GFCTL_CHAIN_A :: GFCTL_CHAIN_DISABLED , true => GFCTL_CHAIN_A :: GFCTL_CHAIN_ENABLED , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_gfctl_chain_disabled (& self) -> bool { * self == GFCTL_CHAIN_A :: GFCTL_CHAIN_DISABLED } # [doc = "ENABLED"]
# [inline (always)]
pub fn is_gfctl_chain_enabled (& self) -> bool { * self == GFCTL_CHAIN_A :: GFCTL_CHAIN_ENABLED } } # [doc = "Field `GFCTL_CHAIN` writer - Analog and digital noise filters chaining enable. 0 DISABLE: When 0, chaining is disabled and only digital filter output is available to IP logic for sampling 1 ENABLE: When 1, analog and digital glitch filters are chained and the output of the combination is made available to IP logic for sampling"]
pub type GFCTL_CHAIN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , GFCTL_CHAIN_A > ; impl < 'a , REG , const O : u8 > GFCTL_CHAIN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn gfctl_chain_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_CHAIN_A :: GFCTL_CHAIN_DISABLED) } # [doc = "ENABLED"]
# [inline (always)]
pub fn gfctl_chain_enabled (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_CHAIN_A :: GFCTL_CHAIN_ENABLED) } } impl R { # [doc = "Bits 0:5 - Glitch Suppression Pulse Width This field controls the pulse width select for glitch suppression on the RX line. The following values are the glitch suppression values in terms of functional clocks. In IRDA mode: Receive filter length. The minimum pulse length for receive is given by: t(MIN) = (DGFSEL) / f(IRTXCLK)"]
# [inline (always)]
pub fn gfctl_dgfsel (& self) -> GFCTL_DGFSEL_R { GFCTL_DGFSEL_R :: new ((self . bits & 0x3f) as u8) } # [doc = "Bit 8 - Analog Glitch Suppression Enable"]
# [inline (always)]
pub fn gfctl_agfen (& self) -> GFCTL_AGFEN_R { GFCTL_AGFEN_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bits 9:10 - Analog Glitch Suppression Pulse Width This field controls the pulse width select for the analog glitch suppression on the RX line. See device datasheet for exact values. (ULP UART only)"]
# [inline (always)]
pub fn gfctl_agfsel (& self) -> GFCTL_AGFSEL_R { GFCTL_AGFSEL_R :: new (((self . bits >> 9) & 3) as u8) } # [doc = "Bit 11 - Analog and digital noise filters chaining enable. 0 DISABLE: When 0, chaining is disabled and only digital filter output is available to IP logic for sampling 1 ENABLE: When 1, analog and digital glitch filters are chained and the output of the combination is made available to IP logic for sampling"]
# [inline (always)]
pub fn gfctl_chain (& self) -> GFCTL_CHAIN_R { GFCTL_CHAIN_R :: new (((self . bits >> 11) & 1) != 0) } } impl W { # [doc = "Bits 0:5 - Glitch Suppression Pulse Width This field controls the pulse width select for glitch suppression on the RX line. The following values are the glitch suppression values in terms of functional clocks. In IRDA mode: Receive filter length. The minimum pulse length for receive is given by: t(MIN) = (DGFSEL) / f(IRTXCLK)"]
# [inline (always)]
# [must_use]
pub fn gfctl_dgfsel (& mut self) -> GFCTL_DGFSEL_W < GFCTL_SPEC , 0 > { GFCTL_DGFSEL_W :: new (self) } # [doc = "Bit 8 - Analog Glitch Suppression Enable"]
# [inline (always)]
# [must_use]
pub fn gfctl_agfen (& mut self) -> GFCTL_AGFEN_W < GFCTL_SPEC , 8 > { GFCTL_AGFEN_W :: new (self) } # [doc = "Bits 9:10 - Analog Glitch Suppression Pulse Width This field controls the pulse width select for the analog glitch suppression on the RX line. See device datasheet for exact values. (ULP UART only)"]
# [inline (always)]
# [must_use]
pub fn gfctl_agfsel (& mut self) -> GFCTL_AGFSEL_W < GFCTL_SPEC , 9 > { GFCTL_AGFSEL_W :: new (self) } # [doc = "Bit 11 - Analog and digital noise filters chaining enable. 0 DISABLE: When 0, chaining is disabled and only digital filter output is available to IP logic for sampling 1 ENABLE: When 1, analog and digital glitch filters are chained and the output of the combination is made available to IP logic for sampling"]
# [inline (always)]
# [must_use]
pub fn gfctl_chain (& mut self) -> GFCTL_CHAIN_W < GFCTL_SPEC , 11 > { GFCTL_CHAIN_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Glitch Filter Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gfctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`gfctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct GFCTL_SPEC ; impl crate :: RegisterSpec for GFCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`gfctl::R`](R) reader structure"]
impl crate :: Readable for GFCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`gfctl::W`](W) writer structure"]
impl crate :: Writable for GFCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets GFCTL to value 0"]
impl crate :: Resettable for GFCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "TXDATA (rw) register accessor: UART Transmit Data Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`txdata::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`txdata::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@txdata`]
module"]
pub type TXDATA = crate :: Reg < txdata :: TXDATA_SPEC > ; # [doc = "UART Transmit Data Register"]
pub mod txdata { # [doc = "Register `TXDATA` reader"]
pub type R = crate :: R < TXDATA_SPEC > ; # [doc = "Register `TXDATA` writer"]
pub type W = crate :: W < TXDATA_SPEC > ; # [doc = "Field `TXDATA_DATA` reader - Data Transmitted or Received Data that is to be transmitted via the UART is written to this field. When read, this field contains the data that was received by the UART."]
pub type TXDATA_DATA_R = crate :: FieldReader ; # [doc = "Field `TXDATA_DATA` writer - Data Transmitted or Received Data that is to be transmitted via the UART is written to this field. When read, this field contains the data that was received by the UART."]
pub type TXDATA_DATA_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O > ; impl R { # [doc = "Bits 0:7 - Data Transmitted or Received Data that is to be transmitted via the UART is written to this field. When read, this field contains the data that was received by the UART."]
# [inline (always)]
pub fn txdata_data (& self) -> TXDATA_DATA_R { TXDATA_DATA_R :: new ((self . bits & 0xff) as u8) } } impl W { # [doc = "Bits 0:7 - Data Transmitted or Received Data that is to be transmitted via the UART is written to this field. When read, this field contains the data that was received by the UART."]
# [inline (always)]
# [must_use]
pub fn txdata_data (& mut self) -> TXDATA_DATA_W < TXDATA_SPEC , 0 > { TXDATA_DATA_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "UART Transmit Data Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`txdata::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`txdata::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct TXDATA_SPEC ; impl crate :: RegisterSpec for TXDATA_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`txdata::R`](R) reader structure"]
impl crate :: Readable for TXDATA_SPEC { } # [doc = "`write(|w| ..)` method takes [`txdata::W`](W) writer structure"]
impl crate :: Writable for TXDATA_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets TXDATA to value 0"]
impl crate :: Resettable for TXDATA_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RXDATA (r) register accessor: UART Receive Data Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`rxdata::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rxdata`]
module"]
pub type RXDATA = crate :: Reg < rxdata :: RXDATA_SPEC > ; # [doc = "UART Receive Data Register"]
pub mod rxdata { # [doc = "Register `RXDATA` reader"]
pub type R = crate :: R < RXDATA_SPEC > ; # [doc = "Field `RXDATA_DATA` reader - Data Transmitted or Received Data that is to be transmitted via the UART is written to this field. When read, this field contains the data that was received by the UART."]
pub type RXDATA_DATA_R = crate :: FieldReader ; # [doc = "Field `RXDATA_FRMERR` reader - UART Framing Error Writing to this bit has no effect. The flag is cleared by writing 1 to the FRMERR bit in the UART EVENT ICLR register. This error is associated with the character at the top of the FIFO."]
pub type RXDATA_FRMERR_R = crate :: BitReader < RXDATA_FRMERR_A > ; # [doc = "UART Framing Error Writing to this bit has no effect. The flag is cleared by writing 1 to the FRMERR bit in the UART EVENT ICLR register. This error is associated with the character at the top of the FIFO.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RXDATA_FRMERR_A { # [doc = "0: CLR"]
RXDATA_FRMERR_CLR = 0 , # [doc = "1: SET"]
RXDATA_FRMERR_SET = 1 , } impl From < RXDATA_FRMERR_A > for bool { # [inline (always)]
fn from (variant : RXDATA_FRMERR_A) -> Self { variant as u8 != 0 } } impl RXDATA_FRMERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RXDATA_FRMERR_A { match self . bits { false => RXDATA_FRMERR_A :: RXDATA_FRMERR_CLR , true => RXDATA_FRMERR_A :: RXDATA_FRMERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_rxdata_frmerr_clr (& self) -> bool { * self == RXDATA_FRMERR_A :: RXDATA_FRMERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_rxdata_frmerr_set (& self) -> bool { * self == RXDATA_FRMERR_A :: RXDATA_FRMERR_SET } } # [doc = "Field `RXDATA_PARERR` reader - UART Parity Error Writing to this bit has no effect. The flag is cleared by writing 1 to the PARERR bit in the UART EVENT ICLR register."]
pub type RXDATA_PARERR_R = crate :: BitReader < RXDATA_PARERR_A > ; # [doc = "UART Parity Error Writing to this bit has no effect. The flag is cleared by writing 1 to the PARERR bit in the UART EVENT ICLR register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RXDATA_PARERR_A { # [doc = "0: CLR"]
RXDATA_PARERR_CLR = 0 , # [doc = "1: SET"]
RXDATA_PARERR_SET = 1 , } impl From < RXDATA_PARERR_A > for bool { # [inline (always)]
fn from (variant : RXDATA_PARERR_A) -> Self { variant as u8 != 0 } } impl RXDATA_PARERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RXDATA_PARERR_A { match self . bits { false => RXDATA_PARERR_A :: RXDATA_PARERR_CLR , true => RXDATA_PARERR_A :: RXDATA_PARERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_rxdata_parerr_clr (& self) -> bool { * self == RXDATA_PARERR_A :: RXDATA_PARERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_rxdata_parerr_set (& self) -> bool { * self == RXDATA_PARERR_A :: RXDATA_PARERR_SET } } # [doc = "Field `RXDATA_BRKERR` reader - UART Break Error Writing to this bit has no effect. The flag is cleared by writing 1 to the BRKERR bit in the UART EVENT ICLR register. This error is associated with the character at the top of the FIFO. When a break occurs, only one 0 character is loaded into the FIFO. The next character is only enabled after the receive data input goes to a 1 (marking state) and the next valid start bit is received."]
pub type RXDATA_BRKERR_R = crate :: BitReader < RXDATA_BRKERR_A > ; # [doc = "UART Break Error Writing to this bit has no effect. The flag is cleared by writing 1 to the BRKERR bit in the UART EVENT ICLR register. This error is associated with the character at the top of the FIFO. When a break occurs, only one 0 character is loaded into the FIFO. The next character is only enabled after the receive data input goes to a 1 (marking state) and the next valid start bit is received.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RXDATA_BRKERR_A { # [doc = "0: CLR"]
RXDATA_BRKERR_CLR = 0 , # [doc = "1: SET"]
RXDATA_BRKERR_SET = 1 , } impl From < RXDATA_BRKERR_A > for bool { # [inline (always)]
fn from (variant : RXDATA_BRKERR_A) -> Self { variant as u8 != 0 } } impl RXDATA_BRKERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RXDATA_BRKERR_A { match self . bits { false => RXDATA_BRKERR_A :: RXDATA_BRKERR_CLR , true => RXDATA_BRKERR_A :: RXDATA_BRKERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_rxdata_brkerr_clr (& self) -> bool { * self == RXDATA_BRKERR_A :: RXDATA_BRKERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_rxdata_brkerr_set (& self) -> bool { * self == RXDATA_BRKERR_A :: RXDATA_BRKERR_SET } } # [doc = "Field `RXDATA_OVRERR` reader - UART Receive Overrun Error Writing to this bit has no effect. The flag is cleared by writing 1 to the OVRERR bit in the UART EVENT ICLR register. In case of a receive FIFO overflow, the FIFO contents remain valid because no further data is written when the FIFO is full. Only the contents of the shift register are overwritten. The CPU must read the data in order to empty the FIFO."]
pub type RXDATA_OVRERR_R = crate :: BitReader < RXDATA_OVRERR_A > ; # [doc = "UART Receive Overrun Error Writing to this bit has no effect. The flag is cleared by writing 1 to the OVRERR bit in the UART EVENT ICLR register. In case of a receive FIFO overflow, the FIFO contents remain valid because no further data is written when the FIFO is full. Only the contents of the shift register are overwritten. The CPU must read the data in order to empty the FIFO.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RXDATA_OVRERR_A { # [doc = "0: CLR"]
RXDATA_OVRERR_CLR = 0 , # [doc = "1: SET"]
RXDATA_OVRERR_SET = 1 , } impl From < RXDATA_OVRERR_A > for bool { # [inline (always)]
fn from (variant : RXDATA_OVRERR_A) -> Self { variant as u8 != 0 } } impl RXDATA_OVRERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RXDATA_OVRERR_A { match self . bits { false => RXDATA_OVRERR_A :: RXDATA_OVRERR_CLR , true => RXDATA_OVRERR_A :: RXDATA_OVRERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_rxdata_ovrerr_clr (& self) -> bool { * self == RXDATA_OVRERR_A :: RXDATA_OVRERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_rxdata_ovrerr_set (& self) -> bool { * self == RXDATA_OVRERR_A :: RXDATA_OVRERR_SET } } # [doc = "Field `RXDATA_NERR` reader - Noise Error. Writing to this bit has no effect. The flag is cleared by writing 1 to the NERR bit in the UART EVENT ICLR register."]
pub type RXDATA_NERR_R = crate :: BitReader < RXDATA_NERR_A > ; # [doc = "Noise Error. Writing to this bit has no effect. The flag is cleared by writing 1 to the NERR bit in the UART EVENT ICLR register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RXDATA_NERR_A { # [doc = "0: CLR"]
RXDATA_NERR_CLR = 0 , # [doc = "1: SET"]
RXDATA_NERR_SET = 1 , } impl From < RXDATA_NERR_A > for bool { # [inline (always)]
fn from (variant : RXDATA_NERR_A) -> Self { variant as u8 != 0 } } impl RXDATA_NERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RXDATA_NERR_A { match self . bits { false => RXDATA_NERR_A :: RXDATA_NERR_CLR , true => RXDATA_NERR_A :: RXDATA_NERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_rxdata_nerr_clr (& self) -> bool { * self == RXDATA_NERR_A :: RXDATA_NERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_rxdata_nerr_set (& self) -> bool { * self == RXDATA_NERR_A :: RXDATA_NERR_SET } } impl R { # [doc = "Bits 0:7 - Data Transmitted or Received Data that is to be transmitted via the UART is written to this field. When read, this field contains the data that was received by the UART."]
# [inline (always)]
pub fn rxdata_data (& self) -> RXDATA_DATA_R { RXDATA_DATA_R :: new ((self . bits & 0xff) as u8) } # [doc = "Bit 8 - UART Framing Error Writing to this bit has no effect. The flag is cleared by writing 1 to the FRMERR bit in the UART EVENT ICLR register. This error is associated with the character at the top of the FIFO."]
# [inline (always)]
pub fn rxdata_frmerr (& self) -> RXDATA_FRMERR_R { RXDATA_FRMERR_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - UART Parity Error Writing to this bit has no effect. The flag is cleared by writing 1 to the PARERR bit in the UART EVENT ICLR register."]
# [inline (always)]
pub fn rxdata_parerr (& self) -> RXDATA_PARERR_R { RXDATA_PARERR_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - UART Break Error Writing to this bit has no effect. The flag is cleared by writing 1 to the BRKERR bit in the UART EVENT ICLR register. This error is associated with the character at the top of the FIFO. When a break occurs, only one 0 character is loaded into the FIFO. The next character is only enabled after the receive data input goes to a 1 (marking state) and the next valid start bit is received."]
# [inline (always)]
pub fn rxdata_brkerr (& self) -> RXDATA_BRKERR_R { RXDATA_BRKERR_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bit 11 - UART Receive Overrun Error Writing to this bit has no effect. The flag is cleared by writing 1 to the OVRERR bit in the UART EVENT ICLR register. In case of a receive FIFO overflow, the FIFO contents remain valid because no further data is written when the FIFO is full. Only the contents of the shift register are overwritten. The CPU must read the data in order to empty the FIFO."]
# [inline (always)]
pub fn rxdata_ovrerr (& self) -> RXDATA_OVRERR_R { RXDATA_OVRERR_R :: new (((self . bits >> 11) & 1) != 0) } # [doc = "Bit 12 - Noise Error. Writing to this bit has no effect. The flag is cleared by writing 1 to the NERR bit in the UART EVENT ICLR register."]
# [inline (always)]
pub fn rxdata_nerr (& self) -> RXDATA_NERR_R { RXDATA_NERR_R :: new (((self . bits >> 12) & 1) != 0) } } # [doc = "UART Receive Data Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`rxdata::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RXDATA_SPEC ; impl crate :: RegisterSpec for RXDATA_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`rxdata::R`](R) reader structure"]
impl crate :: Readable for RXDATA_SPEC { } # [doc = "`reset()` method sets RXDATA to value 0"]
impl crate :: Resettable for RXDATA_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "LINCNT (rw) register accessor: UART LIN Mode Counter Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`lincnt::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`lincnt::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@lincnt`]
module"]
pub type LINCNT = crate :: Reg < lincnt :: LINCNT_SPEC > ; # [doc = "UART LIN Mode Counter Register"]
pub mod lincnt { # [doc = "Register `LINCNT` reader"]
pub type R = crate :: R < LINCNT_SPEC > ; # [doc = "Register `LINCNT` writer"]
pub type W = crate :: W < LINCNT_SPEC > ; # [doc = "Field `LINCNT_VALUE` reader - 16 bit up counter clocked by the module clock of the UART."]
pub type LINCNT_VALUE_R = crate :: FieldReader < u16 > ; # [doc = "Field `LINCNT_VALUE` writer - 16 bit up counter clocked by the module clock of the UART."]
pub type LINCNT_VALUE_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 16 , O , u16 > ; impl R { # [doc = "Bits 0:15 - 16 bit up counter clocked by the module clock of the UART."]
# [inline (always)]
pub fn lincnt_value (& self) -> LINCNT_VALUE_R { LINCNT_VALUE_R :: new ((self . bits & 0xffff) as u16) } } impl W { # [doc = "Bits 0:15 - 16 bit up counter clocked by the module clock of the UART."]
# [inline (always)]
# [must_use]
pub fn lincnt_value (& mut self) -> LINCNT_VALUE_W < LINCNT_SPEC , 0 > { LINCNT_VALUE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "UART LIN Mode Counter Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`lincnt::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`lincnt::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct LINCNT_SPEC ; impl crate :: RegisterSpec for LINCNT_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`lincnt::R`](R) reader structure"]
impl crate :: Readable for LINCNT_SPEC { } # [doc = "`write(|w| ..)` method takes [`lincnt::W`](W) writer structure"]
impl crate :: Writable for LINCNT_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets LINCNT to value 0"]
impl crate :: Resettable for LINCNT_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "LINCTL (rw) register accessor: UART LIN Mode Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`linctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`linctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@linctl`]
module"]
pub type LINCTL = crate :: Reg < linctl :: LINCTL_SPEC > ; # [doc = "UART LIN Mode Control Register"]
pub mod linctl { # [doc = "Register `LINCTL` reader"]
pub type R = crate :: R < LINCTL_SPEC > ; # [doc = "Register `LINCTL` writer"]
pub type W = crate :: W < LINCTL_SPEC > ; # [doc = "Field `LINCTL_CTRENA` reader - LIN Counter Enable. LIN counter will only count when enabled."]
pub type LINCTL_CTRENA_R = crate :: BitReader < LINCTL_CTRENA_A > ; # [doc = "LIN Counter Enable. LIN counter will only count when enabled.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum LINCTL_CTRENA_A { # [doc = "0: DISABLE"]
LINCTL_CTRENA_DISABLE = 0 , # [doc = "1: ENABLE"]
LINCTL_CTRENA_ENABLE = 1 , } impl From < LINCTL_CTRENA_A > for bool { # [inline (always)]
fn from (variant : LINCTL_CTRENA_A) -> Self { variant as u8 != 0 } } impl LINCTL_CTRENA_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> LINCTL_CTRENA_A { match self . bits { false => LINCTL_CTRENA_A :: LINCTL_CTRENA_DISABLE , true => LINCTL_CTRENA_A :: LINCTL_CTRENA_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_linctl_ctrena_disable (& self) -> bool { * self == LINCTL_CTRENA_A :: LINCTL_CTRENA_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_linctl_ctrena_enable (& self) -> bool { * self == LINCTL_CTRENA_A :: LINCTL_CTRENA_ENABLE } } # [doc = "Field `LINCTL_CTRENA` writer - LIN Counter Enable. LIN counter will only count when enabled."]
pub type LINCTL_CTRENA_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , LINCTL_CTRENA_A > ; impl < 'a , REG , const O : u8 > LINCTL_CTRENA_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn linctl_ctrena_disable (self) -> & 'a mut crate :: W < REG > { self . variant (LINCTL_CTRENA_A :: LINCTL_CTRENA_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn linctl_ctrena_enable (self) -> & 'a mut crate :: W < REG > { self . variant (LINCTL_CTRENA_A :: LINCTL_CTRENA_ENABLE) } } # [doc = "Field `LINCTL_ZERONE` reader - Zero on negative Edge of RXD. When enabled the counter is set to 0 and starts counting on a negative edge of RXD"]
pub type LINCTL_ZERONE_R = crate :: BitReader < LINCTL_ZERONE_A > ; # [doc = "Zero on negative Edge of RXD. When enabled the counter is set to 0 and starts counting on a negative edge of RXD\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum LINCTL_ZERONE_A { # [doc = "0: DISABLE"]
LINCTL_ZERONE_DISABLE = 0 , # [doc = "1: ENABLE"]
LINCTL_ZERONE_ENABLE = 1 , } impl From < LINCTL_ZERONE_A > for bool { # [inline (always)]
fn from (variant : LINCTL_ZERONE_A) -> Self { variant as u8 != 0 } } impl LINCTL_ZERONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> LINCTL_ZERONE_A { match self . bits { false => LINCTL_ZERONE_A :: LINCTL_ZERONE_DISABLE , true => LINCTL_ZERONE_A :: LINCTL_ZERONE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_linctl_zerone_disable (& self) -> bool { * self == LINCTL_ZERONE_A :: LINCTL_ZERONE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_linctl_zerone_enable (& self) -> bool { * self == LINCTL_ZERONE_A :: LINCTL_ZERONE_ENABLE } } # [doc = "Field `LINCTL_ZERONE` writer - Zero on negative Edge of RXD. When enabled the counter is set to 0 and starts counting on a negative edge of RXD"]
pub type LINCTL_ZERONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , LINCTL_ZERONE_A > ; impl < 'a , REG , const O : u8 > LINCTL_ZERONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn linctl_zerone_disable (self) -> & 'a mut crate :: W < REG > { self . variant (LINCTL_ZERONE_A :: LINCTL_ZERONE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn linctl_zerone_enable (self) -> & 'a mut crate :: W < REG > { self . variant (LINCTL_ZERONE_A :: LINCTL_ZERONE_ENABLE) } } # [doc = "Field `LINCTL_CNTRXLOW` reader - Count while low Signal on RXD When counter is enabled and the signal on RXD is low, the counter increments."]
pub type LINCTL_CNTRXLOW_R = crate :: BitReader < LINCTL_CNTRXLOW_A > ; # [doc = "Count while low Signal on RXD When counter is enabled and the signal on RXD is low, the counter increments.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum LINCTL_CNTRXLOW_A { # [doc = "0: DISABLE"]
LINCTL_CNTRXLOW_DISABLE = 0 , # [doc = "1: ENABLE"]
LINCTL_CNTRXLOW_ENABLE = 1 , } impl From < LINCTL_CNTRXLOW_A > for bool { # [inline (always)]
fn from (variant : LINCTL_CNTRXLOW_A) -> Self { variant as u8 != 0 } } impl LINCTL_CNTRXLOW_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> LINCTL_CNTRXLOW_A { match self . bits { false => LINCTL_CNTRXLOW_A :: LINCTL_CNTRXLOW_DISABLE , true => LINCTL_CNTRXLOW_A :: LINCTL_CNTRXLOW_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_linctl_cntrxlow_disable (& self) -> bool { * self == LINCTL_CNTRXLOW_A :: LINCTL_CNTRXLOW_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_linctl_cntrxlow_enable (& self) -> bool { * self == LINCTL_CNTRXLOW_A :: LINCTL_CNTRXLOW_ENABLE } } # [doc = "Field `LINCTL_CNTRXLOW` writer - Count while low Signal on RXD When counter is enabled and the signal on RXD is low, the counter increments."]
pub type LINCTL_CNTRXLOW_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , LINCTL_CNTRXLOW_A > ; impl < 'a , REG , const O : u8 > LINCTL_CNTRXLOW_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn linctl_cntrxlow_disable (self) -> & 'a mut crate :: W < REG > { self . variant (LINCTL_CNTRXLOW_A :: LINCTL_CNTRXLOW_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn linctl_cntrxlow_enable (self) -> & 'a mut crate :: W < REG > { self . variant (LINCTL_CNTRXLOW_A :: LINCTL_CNTRXLOW_ENABLE) } } # [doc = "Field `LINCTL_LINC0CAP` reader - Capture Counter on negative RXD Edge. When enabled the counter value is captured to LINC0 register on each negative RXD edge. A LINC0 interrupt is triggered when enabled."]
pub type LINCTL_LINC0CAP_R = crate :: BitReader < LINCTL_LINC0CAP_A > ; # [doc = "Capture Counter on negative RXD Edge. When enabled the counter value is captured to LINC0 register on each negative RXD edge. A LINC0 interrupt is triggered when enabled.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum LINCTL_LINC0CAP_A { # [doc = "0: DISABLE"]
LINCTL_LINC0CAP_DISABLE = 0 , # [doc = "1: ENABLE"]
LINCTL_LINC0CAP_ENABLE = 1 , } impl From < LINCTL_LINC0CAP_A > for bool { # [inline (always)]
fn from (variant : LINCTL_LINC0CAP_A) -> Self { variant as u8 != 0 } } impl LINCTL_LINC0CAP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> LINCTL_LINC0CAP_A { match self . bits { false => LINCTL_LINC0CAP_A :: LINCTL_LINC0CAP_DISABLE , true => LINCTL_LINC0CAP_A :: LINCTL_LINC0CAP_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_linctl_linc0cap_disable (& self) -> bool { * self == LINCTL_LINC0CAP_A :: LINCTL_LINC0CAP_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_linctl_linc0cap_enable (& self) -> bool { * self == LINCTL_LINC0CAP_A :: LINCTL_LINC0CAP_ENABLE } } # [doc = "Field `LINCTL_LINC0CAP` writer - Capture Counter on negative RXD Edge. When enabled the counter value is captured to LINC0 register on each negative RXD edge. A LINC0 interrupt is triggered when enabled."]
pub type LINCTL_LINC0CAP_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , LINCTL_LINC0CAP_A > ; impl < 'a , REG , const O : u8 > LINCTL_LINC0CAP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn linctl_linc0cap_disable (self) -> & 'a mut crate :: W < REG > { self . variant (LINCTL_LINC0CAP_A :: LINCTL_LINC0CAP_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn linctl_linc0cap_enable (self) -> & 'a mut crate :: W < REG > { self . variant (LINCTL_LINC0CAP_A :: LINCTL_LINC0CAP_ENABLE) } } # [doc = "Field `LINCTL_LINC1CAP` reader - Capture Counter on positive RXD Edge. When enabled the counter value is captured to LINC1 register on each positive RXD edge. A LINC1 interrupt is triggered when enabled."]
pub type LINCTL_LINC1CAP_R = crate :: BitReader < LINCTL_LINC1CAP_A > ; # [doc = "Capture Counter on positive RXD Edge. When enabled the counter value is captured to LINC1 register on each positive RXD edge. A LINC1 interrupt is triggered when enabled.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum LINCTL_LINC1CAP_A { # [doc = "0: DISABLE"]
LINCTL_LINC1CAP_DISABLE = 0 , # [doc = "1: ENABLE"]
LINCTL_LINC1CAP_ENABLE = 1 , } impl From < LINCTL_LINC1CAP_A > for bool { # [inline (always)]
fn from (variant : LINCTL_LINC1CAP_A) -> Self { variant as u8 != 0 } } impl LINCTL_LINC1CAP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> LINCTL_LINC1CAP_A { match self . bits { false => LINCTL_LINC1CAP_A :: LINCTL_LINC1CAP_DISABLE , true => LINCTL_LINC1CAP_A :: LINCTL_LINC1CAP_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_linctl_linc1cap_disable (& self) -> bool { * self == LINCTL_LINC1CAP_A :: LINCTL_LINC1CAP_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_linctl_linc1cap_enable (& self) -> bool { * self == LINCTL_LINC1CAP_A :: LINCTL_LINC1CAP_ENABLE } } # [doc = "Field `LINCTL_LINC1CAP` writer - Capture Counter on positive RXD Edge. When enabled the counter value is captured to LINC1 register on each positive RXD edge. A LINC1 interrupt is triggered when enabled."]
pub type LINCTL_LINC1CAP_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , LINCTL_LINC1CAP_A > ; impl < 'a , REG , const O : u8 > LINCTL_LINC1CAP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn linctl_linc1cap_disable (self) -> & 'a mut crate :: W < REG > { self . variant (LINCTL_LINC1CAP_A :: LINCTL_LINC1CAP_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn linctl_linc1cap_enable (self) -> & 'a mut crate :: W < REG > { self . variant (LINCTL_LINC1CAP_A :: LINCTL_LINC1CAP_ENABLE) } } # [doc = "Field `LINCTL_LINC0_MATCH` reader - Counter Compare Match Mode When this bit is set to 1 a counter compare match with LINC0 register triggers an LINC0 interrupt when enabled."]
pub type LINCTL_LINC0_MATCH_R = crate :: BitReader < LINCTL_LINC0_MATCH_A > ; # [doc = "Counter Compare Match Mode When this bit is set to 1 a counter compare match with LINC0 register triggers an LINC0 interrupt when enabled.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum LINCTL_LINC0_MATCH_A { # [doc = "0: DISABLE"]
LINCTL_LINC0_MATCH_DISABLE = 0 , # [doc = "1: ENABLE"]
LINCTL_LINC0_MATCH_ENABLE = 1 , } impl From < LINCTL_LINC0_MATCH_A > for bool { # [inline (always)]
fn from (variant : LINCTL_LINC0_MATCH_A) -> Self { variant as u8 != 0 } } impl LINCTL_LINC0_MATCH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> LINCTL_LINC0_MATCH_A { match self . bits { false => LINCTL_LINC0_MATCH_A :: LINCTL_LINC0_MATCH_DISABLE , true => LINCTL_LINC0_MATCH_A :: LINCTL_LINC0_MATCH_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_linctl_linc0_match_disable (& self) -> bool { * self == LINCTL_LINC0_MATCH_A :: LINCTL_LINC0_MATCH_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_linctl_linc0_match_enable (& self) -> bool { * self == LINCTL_LINC0_MATCH_A :: LINCTL_LINC0_MATCH_ENABLE } } # [doc = "Field `LINCTL_LINC0_MATCH` writer - Counter Compare Match Mode When this bit is set to 1 a counter compare match with LINC0 register triggers an LINC0 interrupt when enabled."]
pub type LINCTL_LINC0_MATCH_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , LINCTL_LINC0_MATCH_A > ; impl < 'a , REG , const O : u8 > LINCTL_LINC0_MATCH_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn linctl_linc0_match_disable (self) -> & 'a mut crate :: W < REG > { self . variant (LINCTL_LINC0_MATCH_A :: LINCTL_LINC0_MATCH_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn linctl_linc0_match_enable (self) -> & 'a mut crate :: W < REG > { self . variant (LINCTL_LINC0_MATCH_A :: LINCTL_LINC0_MATCH_ENABLE) } } impl R { # [doc = "Bit 0 - LIN Counter Enable. LIN counter will only count when enabled."]
# [inline (always)]
pub fn linctl_ctrena (& self) -> LINCTL_CTRENA_R { LINCTL_CTRENA_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Zero on negative Edge of RXD. When enabled the counter is set to 0 and starts counting on a negative edge of RXD"]
# [inline (always)]
pub fn linctl_zerone (& self) -> LINCTL_ZERONE_R { LINCTL_ZERONE_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Count while low Signal on RXD When counter is enabled and the signal on RXD is low, the counter increments."]
# [inline (always)]
pub fn linctl_cntrxlow (& self) -> LINCTL_CNTRXLOW_R { LINCTL_CNTRXLOW_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 4 - Capture Counter on negative RXD Edge. When enabled the counter value is captured to LINC0 register on each negative RXD edge. A LINC0 interrupt is triggered when enabled."]
# [inline (always)]
pub fn linctl_linc0cap (& self) -> LINCTL_LINC0CAP_R { LINCTL_LINC0CAP_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Capture Counter on positive RXD Edge. When enabled the counter value is captured to LINC1 register on each positive RXD edge. A LINC1 interrupt is triggered when enabled."]
# [inline (always)]
pub fn linctl_linc1cap (& self) -> LINCTL_LINC1CAP_R { LINCTL_LINC1CAP_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - Counter Compare Match Mode When this bit is set to 1 a counter compare match with LINC0 register triggers an LINC0 interrupt when enabled."]
# [inline (always)]
pub fn linctl_linc0_match (& self) -> LINCTL_LINC0_MATCH_R { LINCTL_LINC0_MATCH_R :: new (((self . bits >> 6) & 1) != 0) } } impl W { # [doc = "Bit 0 - LIN Counter Enable. LIN counter will only count when enabled."]
# [inline (always)]
# [must_use]
pub fn linctl_ctrena (& mut self) -> LINCTL_CTRENA_W < LINCTL_SPEC , 0 > { LINCTL_CTRENA_W :: new (self) } # [doc = "Bit 1 - Zero on negative Edge of RXD. When enabled the counter is set to 0 and starts counting on a negative edge of RXD"]
# [inline (always)]
# [must_use]
pub fn linctl_zerone (& mut self) -> LINCTL_ZERONE_W < LINCTL_SPEC , 1 > { LINCTL_ZERONE_W :: new (self) } # [doc = "Bit 2 - Count while low Signal on RXD When counter is enabled and the signal on RXD is low, the counter increments."]
# [inline (always)]
# [must_use]
pub fn linctl_cntrxlow (& mut self) -> LINCTL_CNTRXLOW_W < LINCTL_SPEC , 2 > { LINCTL_CNTRXLOW_W :: new (self) } # [doc = "Bit 4 - Capture Counter on negative RXD Edge. When enabled the counter value is captured to LINC0 register on each negative RXD edge. A LINC0 interrupt is triggered when enabled."]
# [inline (always)]
# [must_use]
pub fn linctl_linc0cap (& mut self) -> LINCTL_LINC0CAP_W < LINCTL_SPEC , 4 > { LINCTL_LINC0CAP_W :: new (self) } # [doc = "Bit 5 - Capture Counter on positive RXD Edge. When enabled the counter value is captured to LINC1 register on each positive RXD edge. A LINC1 interrupt is triggered when enabled."]
# [inline (always)]
# [must_use]
pub fn linctl_linc1cap (& mut self) -> LINCTL_LINC1CAP_W < LINCTL_SPEC , 5 > { LINCTL_LINC1CAP_W :: new (self) } # [doc = "Bit 6 - Counter Compare Match Mode When this bit is set to 1 a counter compare match with LINC0 register triggers an LINC0 interrupt when enabled."]
# [inline (always)]
# [must_use]
pub fn linctl_linc0_match (& mut self) -> LINCTL_LINC0_MATCH_W < LINCTL_SPEC , 6 > { LINCTL_LINC0_MATCH_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "UART LIN Mode Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`linctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`linctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct LINCTL_SPEC ; impl crate :: RegisterSpec for LINCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`linctl::R`](R) reader structure"]
impl crate :: Readable for LINCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`linctl::W`](W) writer structure"]
impl crate :: Writable for LINCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets LINCTL to value 0"]
impl crate :: Resettable for LINCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "LINC0 (rw) register accessor: UART LIN Mode Capture 0 Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`linc0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`linc0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@linc0`]
module"]
pub type LINC0 = crate :: Reg < linc0 :: LINC0_SPEC > ; # [doc = "UART LIN Mode Capture 0 Register"]
pub mod linc0 { # [doc = "Register `LINC0` reader"]
pub type R = crate :: R < LINC0_SPEC > ; # [doc = "Register `LINC0` writer"]
pub type W = crate :: W < LINC0_SPEC > ; # [doc = "Field `LINC0_DATA` reader - 16 Bit Capture / Compare Register Captures current LINCTR value on RXD falling edge when enabled. It can generate a DATA interrupt on capture. If compare mode is enabled (DATA_MATCH = 1) a counter match can generate a LINC0 interrupt."]
pub type LINC0_DATA_R = crate :: FieldReader < u16 > ; # [doc = "Field `LINC0_DATA` writer - 16 Bit Capture / Compare Register Captures current LINCTR value on RXD falling edge when enabled. It can generate a DATA interrupt on capture. If compare mode is enabled (DATA_MATCH = 1) a counter match can generate a LINC0 interrupt."]
pub type LINC0_DATA_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 16 , O , u16 > ; impl R { # [doc = "Bits 0:15 - 16 Bit Capture / Compare Register Captures current LINCTR value on RXD falling edge when enabled. It can generate a DATA interrupt on capture. If compare mode is enabled (DATA_MATCH = 1) a counter match can generate a LINC0 interrupt."]
# [inline (always)]
pub fn linc0_data (& self) -> LINC0_DATA_R { LINC0_DATA_R :: new ((self . bits & 0xffff) as u16) } } impl W { # [doc = "Bits 0:15 - 16 Bit Capture / Compare Register Captures current LINCTR value on RXD falling edge when enabled. It can generate a DATA interrupt on capture. If compare mode is enabled (DATA_MATCH = 1) a counter match can generate a LINC0 interrupt."]
# [inline (always)]
# [must_use]
pub fn linc0_data (& mut self) -> LINC0_DATA_W < LINC0_SPEC , 0 > { LINC0_DATA_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "UART LIN Mode Capture 0 Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`linc0::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`linc0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct LINC0_SPEC ; impl crate :: RegisterSpec for LINC0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`linc0::R`](R) reader structure"]
impl crate :: Readable for LINC0_SPEC { } # [doc = "`write(|w| ..)` method takes [`linc0::W`](W) writer structure"]
impl crate :: Writable for LINC0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets LINC0 to value 0"]
impl crate :: Resettable for LINC0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "LINC1 (rw) register accessor: UART LIN Mode Capture 1 Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`linc1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`linc1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@linc1`]
module"]
pub type LINC1 = crate :: Reg < linc1 :: LINC1_SPEC > ; # [doc = "UART LIN Mode Capture 1 Register"]
pub mod linc1 { # [doc = "Register `LINC1` reader"]
pub type R = crate :: R < LINC1_SPEC > ; # [doc = "Register `LINC1` writer"]
pub type W = crate :: W < LINC1_SPEC > ; # [doc = "Field `LINC1_DATA` reader - 16 Bit Capture / Compare Register Captures current LINCTR value on RXD rising edge when enabled. It can generate a LINC1 interrupt on capture."]
pub type LINC1_DATA_R = crate :: FieldReader < u16 > ; # [doc = "Field `LINC1_DATA` writer - 16 Bit Capture / Compare Register Captures current LINCTR value on RXD rising edge when enabled. It can generate a LINC1 interrupt on capture."]
pub type LINC1_DATA_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 16 , O , u16 > ; impl R { # [doc = "Bits 0:15 - 16 Bit Capture / Compare Register Captures current LINCTR value on RXD rising edge when enabled. It can generate a LINC1 interrupt on capture."]
# [inline (always)]
pub fn linc1_data (& self) -> LINC1_DATA_R { LINC1_DATA_R :: new ((self . bits & 0xffff) as u16) } } impl W { # [doc = "Bits 0:15 - 16 Bit Capture / Compare Register Captures current LINCTR value on RXD rising edge when enabled. It can generate a LINC1 interrupt on capture."]
# [inline (always)]
# [must_use]
pub fn linc1_data (& mut self) -> LINC1_DATA_W < LINC1_SPEC , 0 > { LINC1_DATA_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "UART LIN Mode Capture 1 Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`linc1::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`linc1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct LINC1_SPEC ; impl crate :: RegisterSpec for LINC1_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`linc1::R`](R) reader structure"]
impl crate :: Readable for LINC1_SPEC { } # [doc = "`write(|w| ..)` method takes [`linc1::W`](W) writer structure"]
impl crate :: Writable for LINC1_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets LINC1 to value 0"]
impl crate :: Resettable for LINC1_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "IRCTL (rw) register accessor: eUSCI_Ax IrDA Control Word Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`irctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`irctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@irctl`]
module"]
pub type IRCTL = crate :: Reg < irctl :: IRCTL_SPEC > ; # [doc = "eUSCI_Ax IrDA Control Word Register"]
pub mod irctl { # [doc = "Register `IRCTL` reader"]
pub type R = crate :: R < IRCTL_SPEC > ; # [doc = "Register `IRCTL` writer"]
pub type W = crate :: W < IRCTL_SPEC > ; # [doc = "Field `IRCTL_IREN` reader - IrDA encoder/decoder enable"]
pub type IRCTL_IREN_R = crate :: BitReader < IRCTL_IREN_A > ; # [doc = "IrDA encoder/decoder enable\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IRCTL_IREN_A { # [doc = "0: DISABLE"]
IRCTL_IREN_DISABLE = 0 , # [doc = "1: ENABLE"]
IRCTL_IREN_ENABLE = 1 , } impl From < IRCTL_IREN_A > for bool { # [inline (always)]
fn from (variant : IRCTL_IREN_A) -> Self { variant as u8 != 0 } } impl IRCTL_IREN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IRCTL_IREN_A { match self . bits { false => IRCTL_IREN_A :: IRCTL_IREN_DISABLE , true => IRCTL_IREN_A :: IRCTL_IREN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_irctl_iren_disable (& self) -> bool { * self == IRCTL_IREN_A :: IRCTL_IREN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_irctl_iren_enable (& self) -> bool { * self == IRCTL_IREN_A :: IRCTL_IREN_ENABLE } } # [doc = "Field `IRCTL_IREN` writer - IrDA encoder/decoder enable"]
pub type IRCTL_IREN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IRCTL_IREN_A > ; impl < 'a , REG , const O : u8 > IRCTL_IREN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn irctl_iren_disable (self) -> & 'a mut crate :: W < REG > { self . variant (IRCTL_IREN_A :: IRCTL_IREN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn irctl_iren_enable (self) -> & 'a mut crate :: W < REG > { self . variant (IRCTL_IREN_A :: IRCTL_IREN_ENABLE) } } # [doc = "Field `IRCTL_IRTXCLK` reader - IrDA transmit pulse clock select"]
pub type IRCTL_IRTXCLK_R = crate :: BitReader < IRCTL_IRTXCLK_A > ; # [doc = "IrDA transmit pulse clock select\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IRCTL_IRTXCLK_A { # [doc = "0: BITCLK"]
IRCTL_IRTXCLK_BITCLK = 0 , # [doc = "1: BRCLK"]
IRCTL_IRTXCLK_BRCLK = 1 , } impl From < IRCTL_IRTXCLK_A > for bool { # [inline (always)]
fn from (variant : IRCTL_IRTXCLK_A) -> Self { variant as u8 != 0 } } impl IRCTL_IRTXCLK_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IRCTL_IRTXCLK_A { match self . bits { false => IRCTL_IRTXCLK_A :: IRCTL_IRTXCLK_BITCLK , true => IRCTL_IRTXCLK_A :: IRCTL_IRTXCLK_BRCLK , } } # [doc = "BITCLK"]
# [inline (always)]
pub fn is_irctl_irtxclk_bitclk (& self) -> bool { * self == IRCTL_IRTXCLK_A :: IRCTL_IRTXCLK_BITCLK } # [doc = "BRCLK"]
# [inline (always)]
pub fn is_irctl_irtxclk_brclk (& self) -> bool { * self == IRCTL_IRTXCLK_A :: IRCTL_IRTXCLK_BRCLK } } # [doc = "Field `IRCTL_IRTXCLK` writer - IrDA transmit pulse clock select"]
pub type IRCTL_IRTXCLK_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IRCTL_IRTXCLK_A > ; impl < 'a , REG , const O : u8 > IRCTL_IRTXCLK_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "BITCLK"]
# [inline (always)]
pub fn irctl_irtxclk_bitclk (self) -> & 'a mut crate :: W < REG > { self . variant (IRCTL_IRTXCLK_A :: IRCTL_IRTXCLK_BITCLK) } # [doc = "BRCLK"]
# [inline (always)]
pub fn irctl_irtxclk_brclk (self) -> & 'a mut crate :: W < REG > { self . variant (IRCTL_IRTXCLK_A :: IRCTL_IRTXCLK_BRCLK) } } # [doc = "Field `IRCTL_IRTXPL` reader - Transmit pulse length. Pulse length t(PULSE) = (IRTXPLx + 1) / \\[2 * f(IRTXCLK)\\]
(IRTXCLK = functional clock of the UART)"]
pub type IRCTL_IRTXPL_R = crate :: FieldReader ; # [doc = "Field `IRCTL_IRTXPL` writer - Transmit pulse length. Pulse length t(PULSE) = (IRTXPLx + 1) / \\[2 * f(IRTXCLK)\\]
(IRTXCLK = functional clock of the UART)"]
pub type IRCTL_IRTXPL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 6 , O > ; # [doc = "Field `IRCTL_IRRXPL` reader - IrDA receive input UCAxRXD polarity"]
pub type IRCTL_IRRXPL_R = crate :: BitReader < IRCTL_IRRXPL_A > ; # [doc = "IrDA receive input UCAxRXD polarity\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IRCTL_IRRXPL_A { # [doc = "0: HIGHPULSE"]
IRCTL_IRRXPL_HIGH = 0 , # [doc = "1: LOWPULSE"]
IRCTL_IRRXPL_LOW = 1 , } impl From < IRCTL_IRRXPL_A > for bool { # [inline (always)]
fn from (variant : IRCTL_IRRXPL_A) -> Self { variant as u8 != 0 } } impl IRCTL_IRRXPL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IRCTL_IRRXPL_A { match self . bits { false => IRCTL_IRRXPL_A :: IRCTL_IRRXPL_HIGH , true => IRCTL_IRRXPL_A :: IRCTL_IRRXPL_LOW , } } # [doc = "HIGHPULSE"]
# [inline (always)]
pub fn is_irctl_irrxpl_high (& self) -> bool { * self == IRCTL_IRRXPL_A :: IRCTL_IRRXPL_HIGH } # [doc = "LOWPULSE"]
# [inline (always)]
pub fn is_irctl_irrxpl_low (& self) -> bool { * self == IRCTL_IRRXPL_A :: IRCTL_IRRXPL_LOW } } # [doc = "Field `IRCTL_IRRXPL` writer - IrDA receive input UCAxRXD polarity"]
pub type IRCTL_IRRXPL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IRCTL_IRRXPL_A > ; impl < 'a , REG , const O : u8 > IRCTL_IRRXPL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "HIGHPULSE"]
# [inline (always)]
pub fn irctl_irrxpl_high (self) -> & 'a mut crate :: W < REG > { self . variant (IRCTL_IRRXPL_A :: IRCTL_IRRXPL_HIGH) } # [doc = "LOWPULSE"]
# [inline (always)]
pub fn irctl_irrxpl_low (self) -> & 'a mut crate :: W < REG > { self . variant (IRCTL_IRRXPL_A :: IRCTL_IRRXPL_LOW) } } impl R { # [doc = "Bit 0 - IrDA encoder/decoder enable"]
# [inline (always)]
pub fn irctl_iren (& self) -> IRCTL_IREN_R { IRCTL_IREN_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - IrDA transmit pulse clock select"]
# [inline (always)]
pub fn irctl_irtxclk (& self) -> IRCTL_IRTXCLK_R { IRCTL_IRTXCLK_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bits 2:7 - Transmit pulse length. Pulse length t(PULSE) = (IRTXPLx + 1) / \\[2 * f(IRTXCLK)\\]
(IRTXCLK = functional clock of the UART)"]
# [inline (always)]
pub fn irctl_irtxpl (& self) -> IRCTL_IRTXPL_R { IRCTL_IRTXPL_R :: new (((self . bits >> 2) & 0x3f) as u8) } # [doc = "Bit 9 - IrDA receive input UCAxRXD polarity"]
# [inline (always)]
pub fn irctl_irrxpl (& self) -> IRCTL_IRRXPL_R { IRCTL_IRRXPL_R :: new (((self . bits >> 9) & 1) != 0) } } impl W { # [doc = "Bit 0 - IrDA encoder/decoder enable"]
# [inline (always)]
# [must_use]
pub fn irctl_iren (& mut self) -> IRCTL_IREN_W < IRCTL_SPEC , 0 > { IRCTL_IREN_W :: new (self) } # [doc = "Bit 1 - IrDA transmit pulse clock select"]
# [inline (always)]
# [must_use]
pub fn irctl_irtxclk (& mut self) -> IRCTL_IRTXCLK_W < IRCTL_SPEC , 1 > { IRCTL_IRTXCLK_W :: new (self) } # [doc = "Bits 2:7 - Transmit pulse length. Pulse length t(PULSE) = (IRTXPLx + 1) / \\[2 * f(IRTXCLK)\\]
(IRTXCLK = functional clock of the UART)"]
# [inline (always)]
# [must_use]
pub fn irctl_irtxpl (& mut self) -> IRCTL_IRTXPL_W < IRCTL_SPEC , 2 > { IRCTL_IRTXPL_W :: new (self) } # [doc = "Bit 9 - IrDA receive input UCAxRXD polarity"]
# [inline (always)]
# [must_use]
pub fn irctl_irrxpl (& mut self) -> IRCTL_IRRXPL_W < IRCTL_SPEC , 9 > { IRCTL_IRRXPL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "eUSCI_Ax IrDA Control Word Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`irctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`irctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IRCTL_SPEC ; impl crate :: RegisterSpec for IRCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`irctl::R`](R) reader structure"]
impl crate :: Readable for IRCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`irctl::W`](W) writer structure"]
impl crate :: Writable for IRCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets IRCTL to value 0"]
impl crate :: Resettable for IRCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "AMASK (rw) register accessor: Self Address Mask Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`amask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`amask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@amask`]
module"]
pub type AMASK = crate :: Reg < amask :: AMASK_SPEC > ; # [doc = "Self Address Mask Register"]
pub mod amask { # [doc = "Register `AMASK` reader"]
pub type R = crate :: R < AMASK_SPEC > ; # [doc = "Register `AMASK` writer"]
pub type W = crate :: W < AMASK_SPEC > ; # [doc = "Field `AMASK_VALUE` reader - Self Address Mask for 9-Bit Mode This field contains the address mask that creates a set of addresses that should be matched. A 0 bit in the MSK bitfield configures, that the corresponding bit in the ADDR bitfield of the UART9BITADDR register is don't care. A 1 bit in the MSK bitfield configures, that the corresponding bit in the ADDR bitfield of the UART9BITADDR register must match."]
pub type AMASK_VALUE_R = crate :: FieldReader ; # [doc = "Field `AMASK_VALUE` writer - Self Address Mask for 9-Bit Mode This field contains the address mask that creates a set of addresses that should be matched. A 0 bit in the MSK bitfield configures, that the corresponding bit in the ADDR bitfield of the UART9BITADDR register is don't care. A 1 bit in the MSK bitfield configures, that the corresponding bit in the ADDR bitfield of the UART9BITADDR register must match."]
pub type AMASK_VALUE_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O > ; impl R { # [doc = "Bits 0:7 - Self Address Mask for 9-Bit Mode This field contains the address mask that creates a set of addresses that should be matched. A 0 bit in the MSK bitfield configures, that the corresponding bit in the ADDR bitfield of the UART9BITADDR register is don't care. A 1 bit in the MSK bitfield configures, that the corresponding bit in the ADDR bitfield of the UART9BITADDR register must match."]
# [inline (always)]
pub fn amask_value (& self) -> AMASK_VALUE_R { AMASK_VALUE_R :: new ((self . bits & 0xff) as u8) } } impl W { # [doc = "Bits 0:7 - Self Address Mask for 9-Bit Mode This field contains the address mask that creates a set of addresses that should be matched. A 0 bit in the MSK bitfield configures, that the corresponding bit in the ADDR bitfield of the UART9BITADDR register is don't care. A 1 bit in the MSK bitfield configures, that the corresponding bit in the ADDR bitfield of the UART9BITADDR register must match."]
# [inline (always)]
# [must_use]
pub fn amask_value (& mut self) -> AMASK_VALUE_W < AMASK_SPEC , 0 > { AMASK_VALUE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Self Address Mask Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`amask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`amask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct AMASK_SPEC ; impl crate :: RegisterSpec for AMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`amask::R`](R) reader structure"]
impl crate :: Readable for AMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`amask::W`](W) writer structure"]
impl crate :: Writable for AMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets AMASK to value 0xff"]
impl crate :: Resettable for AMASK_SPEC { const RESET_VALUE : Self :: Ux = 0xff ; } } # [doc = "ADDR (rw) register accessor: Self Address Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`addr::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`addr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@addr`]
module"]
pub type ADDR = crate :: Reg < addr :: ADDR_SPEC > ; # [doc = "Self Address Register"]
pub mod addr { # [doc = "Register `ADDR` reader"]
pub type R = crate :: R < ADDR_SPEC > ; # [doc = "Register `ADDR` writer"]
pub type W = crate :: W < ADDR_SPEC > ; # [doc = "Field `ADDR_VALUE` reader - Self Address for 9-Bit Mode This field contains the address that should be matched when UART9BITAMASK is FFh."]
pub type ADDR_VALUE_R = crate :: FieldReader ; # [doc = "Field `ADDR_VALUE` writer - Self Address for 9-Bit Mode This field contains the address that should be matched when UART9BITAMASK is FFh."]
pub type ADDR_VALUE_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O > ; impl R { # [doc = "Bits 0:7 - Self Address for 9-Bit Mode This field contains the address that should be matched when UART9BITAMASK is FFh."]
# [inline (always)]
pub fn addr_value (& self) -> ADDR_VALUE_R { ADDR_VALUE_R :: new ((self . bits & 0xff) as u8) } } impl W { # [doc = "Bits 0:7 - Self Address for 9-Bit Mode This field contains the address that should be matched when UART9BITAMASK is FFh."]
# [inline (always)]
# [must_use]
pub fn addr_value (& mut self) -> ADDR_VALUE_W < ADDR_SPEC , 0 > { ADDR_VALUE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Self Address Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`addr::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`addr::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ADDR_SPEC ; impl crate :: RegisterSpec for ADDR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`addr::R`](R) reader structure"]
impl crate :: Readable for ADDR_SPEC { } # [doc = "`write(|w| ..)` method takes [`addr::W`](W) writer structure"]
impl crate :: Writable for ADDR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets ADDR to value 0"]
impl crate :: Resettable for ADDR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CLKDIV2 (rw) register accessor: Clock Divider\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkdiv2::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkdiv2::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clkdiv2`]
module"]
pub type CLKDIV2 = crate :: Reg < clkdiv2 :: CLKDIV2_SPEC > ; # [doc = "Clock Divider"]
pub mod clkdiv2 { # [doc = "Register `CLKDIV2` reader"]
pub type R = crate :: R < CLKDIV2_SPEC > ; # [doc = "Register `CLKDIV2` writer"]
pub type W = crate :: W < CLKDIV2_SPEC > ; # [doc = "Field `CLKDIV2_RATIO` reader - Selects divide ratio of module clock"]
pub type CLKDIV2_RATIO_R = crate :: FieldReader < CLKDIV2_RATIO_A > ; # [doc = "Selects divide ratio of module clock\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CLKDIV2_RATIO_A { # [doc = "0: DIV_BY_1"]
CLKDIV2_RATIO_DIV_BY_1 = 0 , # [doc = "1: DIV_BY_2"]
CLKDIV2_RATIO_DIV_BY_2 = 1 , # [doc = "2: DIV_BY_3"]
CLKDIV2_RATIO_DIV_BY_3 = 2 , # [doc = "3: DIV_BY_4"]
CLKDIV2_RATIO_DIV_BY_4 = 3 , # [doc = "4: DIV_BY_5"]
CLKDIV2_RATIO_DIV_BY_5 = 4 , # [doc = "5: DIV_BY_6"]
CLKDIV2_RATIO_DIV_BY_6 = 5 , # [doc = "6: DIV_BY_7"]
CLKDIV2_RATIO_DIV_BY_7 = 6 , # [doc = "7: DIV_BY_8"]
CLKDIV2_RATIO_DIV_BY_8 = 7 , } impl From < CLKDIV2_RATIO_A > for u8 { # [inline (always)]
fn from (variant : CLKDIV2_RATIO_A) -> Self { variant as _ } } impl crate :: FieldSpec for CLKDIV2_RATIO_A { type Ux = u8 ; } impl CLKDIV2_RATIO_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKDIV2_RATIO_A { match self . bits { 0 => CLKDIV2_RATIO_A :: CLKDIV2_RATIO_DIV_BY_1 , 1 => CLKDIV2_RATIO_A :: CLKDIV2_RATIO_DIV_BY_2 , 2 => CLKDIV2_RATIO_A :: CLKDIV2_RATIO_DIV_BY_3 , 3 => CLKDIV2_RATIO_A :: CLKDIV2_RATIO_DIV_BY_4 , 4 => CLKDIV2_RATIO_A :: CLKDIV2_RATIO_DIV_BY_5 , 5 => CLKDIV2_RATIO_A :: CLKDIV2_RATIO_DIV_BY_6 , 6 => CLKDIV2_RATIO_A :: CLKDIV2_RATIO_DIV_BY_7 , 7 => CLKDIV2_RATIO_A :: CLKDIV2_RATIO_DIV_BY_8 , _ => unreachable ! () , } } # [doc = "DIV_BY_1"]
# [inline (always)]
pub fn is_clkdiv2_ratio_div_by_1 (& self) -> bool { * self == CLKDIV2_RATIO_A :: CLKDIV2_RATIO_DIV_BY_1 } # [doc = "DIV_BY_2"]
# [inline (always)]
pub fn is_clkdiv2_ratio_div_by_2 (& self) -> bool { * self == CLKDIV2_RATIO_A :: CLKDIV2_RATIO_DIV_BY_2 } # [doc = "DIV_BY_3"]
# [inline (always)]
pub fn is_clkdiv2_ratio_div_by_3 (& self) -> bool { * self == CLKDIV2_RATIO_A :: CLKDIV2_RATIO_DIV_BY_3 } # [doc = "DIV_BY_4"]
# [inline (always)]
pub fn is_clkdiv2_ratio_div_by_4 (& self) -> bool { * self == CLKDIV2_RATIO_A :: CLKDIV2_RATIO_DIV_BY_4 } # [doc = "DIV_BY_5"]
# [inline (always)]
pub fn is_clkdiv2_ratio_div_by_5 (& self) -> bool { * self == CLKDIV2_RATIO_A :: CLKDIV2_RATIO_DIV_BY_5 } # [doc = "DIV_BY_6"]
# [inline (always)]
pub fn is_clkdiv2_ratio_div_by_6 (& self) -> bool { * self == CLKDIV2_RATIO_A :: CLKDIV2_RATIO_DIV_BY_6 } # [doc = "DIV_BY_7"]
# [inline (always)]
pub fn is_clkdiv2_ratio_div_by_7 (& self) -> bool { * self == CLKDIV2_RATIO_A :: CLKDIV2_RATIO_DIV_BY_7 } # [doc = "DIV_BY_8"]
# [inline (always)]
pub fn is_clkdiv2_ratio_div_by_8 (& self) -> bool { * self == CLKDIV2_RATIO_A :: CLKDIV2_RATIO_DIV_BY_8 } } # [doc = "Field `CLKDIV2_RATIO` writer - Selects divide ratio of module clock"]
pub type CLKDIV2_RATIO_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 3 , O , CLKDIV2_RATIO_A > ; impl < 'a , REG , const O : u8 > CLKDIV2_RATIO_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DIV_BY_1"]
# [inline (always)]
pub fn clkdiv2_ratio_div_by_1 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV2_RATIO_A :: CLKDIV2_RATIO_DIV_BY_1) } # [doc = "DIV_BY_2"]
# [inline (always)]
pub fn clkdiv2_ratio_div_by_2 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV2_RATIO_A :: CLKDIV2_RATIO_DIV_BY_2) } # [doc = "DIV_BY_3"]
# [inline (always)]
pub fn clkdiv2_ratio_div_by_3 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV2_RATIO_A :: CLKDIV2_RATIO_DIV_BY_3) } # [doc = "DIV_BY_4"]
# [inline (always)]
pub fn clkdiv2_ratio_div_by_4 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV2_RATIO_A :: CLKDIV2_RATIO_DIV_BY_4) } # [doc = "DIV_BY_5"]
# [inline (always)]
pub fn clkdiv2_ratio_div_by_5 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV2_RATIO_A :: CLKDIV2_RATIO_DIV_BY_5) } # [doc = "DIV_BY_6"]
# [inline (always)]
pub fn clkdiv2_ratio_div_by_6 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV2_RATIO_A :: CLKDIV2_RATIO_DIV_BY_6) } # [doc = "DIV_BY_7"]
# [inline (always)]
pub fn clkdiv2_ratio_div_by_7 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV2_RATIO_A :: CLKDIV2_RATIO_DIV_BY_7) } # [doc = "DIV_BY_8"]
# [inline (always)]
pub fn clkdiv2_ratio_div_by_8 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV2_RATIO_A :: CLKDIV2_RATIO_DIV_BY_8) } } impl R { # [doc = "Bits 0:2 - Selects divide ratio of module clock"]
# [inline (always)]
pub fn clkdiv2_ratio (& self) -> CLKDIV2_RATIO_R { CLKDIV2_RATIO_R :: new ((self . bits & 7) as u8) } } impl W { # [doc = "Bits 0:2 - Selects divide ratio of module clock"]
# [inline (always)]
# [must_use]
pub fn clkdiv2_ratio (& mut self) -> CLKDIV2_RATIO_W < CLKDIV2_SPEC , 0 > { CLKDIV2_RATIO_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Clock Divider\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkdiv2::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkdiv2::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CLKDIV2_SPEC ; impl crate :: RegisterSpec for CLKDIV2_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`clkdiv2::R`](R) reader structure"]
impl crate :: Readable for CLKDIV2_SPEC { } # [doc = "`write(|w| ..)` method takes [`clkdiv2::W`](W) writer structure"]
impl crate :: Writable for CLKDIV2_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CLKDIV2 to value 0"]
impl crate :: Resettable for CLKDIV2_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } } # [doc = "F65NW"]
pub struct FLASHCTL { _marker : PhantomData < * const () > } unsafe impl Send for FLASHCTL { } impl FLASHCTL { # [doc = r"Pointer to the register block"]
pub const PTR : * const flashctl :: RegisterBlock = 0x400c_d000 as * const _ ; # [doc = r"Return the pointer to the register block"]
# [inline (always)]
pub const fn ptr () -> * const flashctl :: RegisterBlock { Self :: PTR } # [doc = r" Steal an instance of this peripheral"]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Ensure that the new instance of the peripheral cannot be used in a way"]
# [doc = r" that may race with any existing instances, for example by only"]
# [doc = r" accessing read-only or write-only registers, or by consuming the"]
# [doc = r" original peripheral and using critical sections to coordinate"]
# [doc = r" access between multiple new instances."]
# [doc = r""]
# [doc = r" Additionally, other software such as HALs may rely on only one"]
# [doc = r" peripheral instance existing to ensure memory safety; ensure"]
# [doc = r" no stolen instances are passed to such software."]
pub unsafe fn steal () -> Self { Self { _marker : PhantomData } } } impl Deref for FLASHCTL { type Target = flashctl :: RegisterBlock ; # [inline (always)]
fn deref (& self) -> & Self :: Target { unsafe { & * Self :: PTR } } } impl core :: fmt :: Debug for FLASHCTL { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("FLASHCTL") . finish () } } # [doc = "F65NW"]
pub mod flashctl { # [doc = r"Register block"]
# [repr (C)]
pub struct RegisterBlock { _reserved0 : [u8 ; 0x1020]
, # [doc = "0x1020 - Interrupt Index Register"]
pub iidx : IIDX , _reserved1 : [u8 ; 0x04]
, # [doc = "0x1028 - Interrupt Mask Register"]
pub imask : IMASK , _reserved2 : [u8 ; 0x04]
, # [doc = "0x1030 - Raw Interrupt Status Register"]
pub ris : RIS , _reserved3 : [u8 ; 0x04]
, # [doc = "0x1038 - Masked Interrupt Status Register"]
pub mis : MIS , _reserved4 : [u8 ; 0x04]
, # [doc = "0x1040 - Interrupt Set Register"]
pub iset : ISET , _reserved5 : [u8 ; 0x04]
, # [doc = "0x1048 - Interrupt Clear Register"]
pub iclr : ICLR , _reserved6 : [u8 ; 0x94]
, # [doc = "0x10e0 - Event Mode"]
pub evt_mode : EVT_MODE , _reserved7 : [u8 ; 0x18]
, # [doc = "0x10fc - Hardware Version Description Register"]
pub desc : DESC , # [doc = "0x1100 - Command Execute Register"]
pub cmdexec : CMDEXEC , # [doc = "0x1104 - Command Type Register"]
pub cmdtype : CMDTYPE , # [doc = "0x1108 - Command Control Register"]
pub cmdctl : CMDCTL , _reserved11 : [u8 ; 0x14]
, # [doc = "0x1120 - Command Address Register"]
pub cmdaddr : CMDADDR , # [doc = "0x1124 - Command Program Byte Enable Register"]
pub cmdbyten : CMDBYTEN , _reserved13 : [u8 ; 0x08]
, # [doc = "0x1130 - Command Data Register 0"]
pub cmddata0 : CMDDATA0 , # [doc = "0x1134 - Command Data Register 1"]
pub cmddata1 : CMDDATA1 , _reserved15 : [u8 ; 0x98]
, # [doc = "0x11d0 - Command Write Erase Protect A Register"]
pub cmdweprota : CMDWEPROTA , # [doc = "0x11d4 - Command Write Erase Protect B Register"]
pub cmdweprotb : CMDWEPROTB , _reserved17 : [u8 ; 0x38]
, # [doc = "0x1210 - Command Write Erase Protect Non-Main Register"]
pub cmdweprotnm : CMDWEPROTNM , # [doc = "0x1214 - Command Write Erase Protect Trim Register"]
pub cmdweprottr : CMDWEPROTTR , # [doc = "0x1218 - Command Write Erase Protect Engr Register"]
pub cmdweproten : CMDWEPROTEN , _reserved20 : [u8 ; 0x0194]
, # [doc = "0x13b0 - Command Configuration Register"]
pub cfgcmd : CFGCMD , # [doc = "0x13b4 - Pulse Counter Configuration Register"]
pub cfgpcnt : CFGPCNT , _reserved22 : [u8 ; 0x18]
, # [doc = "0x13d0 - Command Status Register"]
pub statcmd : STATCMD , # [doc = "0x13d4 - Address Status Register"]
pub stataddr : STATADDR , # [doc = "0x13d8 - Pulse Count Status Register"]
pub statpcnt : STATPCNT , # [doc = "0x13dc - Mode Status Register"]
pub statmode : STATMODE , _reserved26 : [u8 ; 0x10]
, # [doc = "0x13f0 - Global Information Register 0"]
pub gblinfo0 : GBLINFO0 , # [doc = "0x13f4 - Global Information Register 1"]
pub gblinfo1 : GBLINFO1 , # [doc = "0x13f8 - Global Information Register 2"]
pub gblinfo2 : GBLINFO2 , _reserved29 : [u8 ; 0x04]
, # [doc = "0x1400 - Bank Information Register 0 for Bank 0"]
pub bank0info0 : BANK0INFO0 , # [doc = "0x1404 - Bank Information Register 1 for Bank 0"]
pub bank0info1 : BANK0INFO1 , } # [doc = "IIDX (r) register accessor: Interrupt Index Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@iidx`]
module"]
pub type IIDX = crate :: Reg < iidx :: IIDX_SPEC > ; # [doc = "Interrupt Index Register"]
pub mod iidx { # [doc = "Register `IIDX` reader"]
pub type R = crate :: R < IIDX_SPEC > ; # [doc = "Field `IIDX_STAT` reader - Indicates which interrupt has fired. 0x0 means no event pending. The priority order is fixed. On each read, only one interrupt is indicated. On a read, the current interrupt (highest priority) is automatically cleared by the hardware and the corresponding interrupt flags in the RIS and MIS are cleared as well. After a read from the CPU (not from the debug interface), the register must be updated with the next highest priority interrupt."]
pub type IIDX_STAT_R = crate :: BitReader < IIDX_STAT_A > ; # [doc = "Indicates which interrupt has fired. 0x0 means no event pending. The priority order is fixed. On each read, only one interrupt is indicated. On a read, the current interrupt (highest priority) is automatically cleared by the hardware and the corresponding interrupt flags in the RIS and MIS are cleared as well. After a read from the CPU (not from the debug interface), the register must be updated with the next highest priority interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IIDX_STAT_A { # [doc = "0: NO_INTR"]
IIDX_STAT_NO_INTR = 0 , # [doc = "1: DONE"]
IIDX_STAT_DONE = 1 , } impl From < IIDX_STAT_A > for bool { # [inline (always)]
fn from (variant : IIDX_STAT_A) -> Self { variant as u8 != 0 } } impl IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IIDX_STAT_A { match self . bits { false => IIDX_STAT_A :: IIDX_STAT_NO_INTR , true => IIDX_STAT_A :: IIDX_STAT_DONE , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_iidx_stat_no_intr (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_NO_INTR } # [doc = "DONE"]
# [inline (always)]
pub fn is_iidx_stat_done (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_DONE } } impl R { # [doc = "Bit 0 - Indicates which interrupt has fired. 0x0 means no event pending. The priority order is fixed. On each read, only one interrupt is indicated. On a read, the current interrupt (highest priority) is automatically cleared by the hardware and the corresponding interrupt flags in the RIS and MIS are cleared as well. After a read from the CPU (not from the debug interface), the register must be updated with the next highest priority interrupt."]
# [inline (always)]
pub fn iidx_stat (& self) -> IIDX_STAT_R { IIDX_STAT_R :: new ((self . bits & 1) != 0) } } # [doc = "Interrupt Index Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IIDX_SPEC ; impl crate :: RegisterSpec for IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`iidx::R`](R) reader structure"]
impl crate :: Readable for IIDX_SPEC { } # [doc = "`reset()` method sets IIDX to value 0"]
impl crate :: Resettable for IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "IMASK (rw) register accessor: Interrupt Mask Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`imask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`imask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@imask`]
module"]
pub type IMASK = crate :: Reg < imask :: IMASK_SPEC > ; # [doc = "Interrupt Mask Register"]
pub mod imask { # [doc = "Register `IMASK` reader"]
pub type R = crate :: R < IMASK_SPEC > ; # [doc = "Register `IMASK` writer"]
pub type W = crate :: W < IMASK_SPEC > ; # [doc = "Field `IMASK_DONE` reader - Interrupt mask for DONE: 0: Interrupt is disabled in MIS register 1: Interrupt is enabled in MIS register"]
pub type IMASK_DONE_R = crate :: BitReader < IMASK_DONE_A > ; # [doc = "Interrupt mask for DONE: 0: Interrupt is disabled in MIS register 1: Interrupt is enabled in MIS register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_DONE_A { # [doc = "0: DISABLED"]
IMASK_DONE_DISABLED = 0 , # [doc = "1: ENABLED"]
IMASK_DONE_ENABLED = 1 , } impl From < IMASK_DONE_A > for bool { # [inline (always)]
fn from (variant : IMASK_DONE_A) -> Self { variant as u8 != 0 } } impl IMASK_DONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_DONE_A { match self . bits { false => IMASK_DONE_A :: IMASK_DONE_DISABLED , true => IMASK_DONE_A :: IMASK_DONE_ENABLED , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_imask_done_disabled (& self) -> bool { * self == IMASK_DONE_A :: IMASK_DONE_DISABLED } # [doc = "ENABLED"]
# [inline (always)]
pub fn is_imask_done_enabled (& self) -> bool { * self == IMASK_DONE_A :: IMASK_DONE_ENABLED } } # [doc = "Field `IMASK_DONE` writer - Interrupt mask for DONE: 0: Interrupt is disabled in MIS register 1: Interrupt is enabled in MIS register"]
pub type IMASK_DONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_DONE_A > ; impl < 'a , REG , const O : u8 > IMASK_DONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn imask_done_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_DONE_A :: IMASK_DONE_DISABLED) } # [doc = "ENABLED"]
# [inline (always)]
pub fn imask_done_enabled (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_DONE_A :: IMASK_DONE_ENABLED) } } impl R { # [doc = "Bit 0 - Interrupt mask for DONE: 0: Interrupt is disabled in MIS register 1: Interrupt is enabled in MIS register"]
# [inline (always)]
pub fn imask_done (& self) -> IMASK_DONE_R { IMASK_DONE_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - Interrupt mask for DONE: 0: Interrupt is disabled in MIS register 1: Interrupt is enabled in MIS register"]
# [inline (always)]
# [must_use]
pub fn imask_done (& mut self) -> IMASK_DONE_W < IMASK_SPEC , 0 > { IMASK_DONE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt Mask Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`imask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`imask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IMASK_SPEC ; impl crate :: RegisterSpec for IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`imask::R`](R) reader structure"]
impl crate :: Readable for IMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`imask::W`](W) writer structure"]
impl crate :: Writable for IMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets IMASK to value 0"]
impl crate :: Resettable for IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RIS (r) register accessor: Raw Interrupt Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ris`]
module"]
pub type RIS = crate :: Reg < ris :: RIS_SPEC > ; # [doc = "Raw Interrupt Status Register"]
pub mod ris { # [doc = "Register `RIS` reader"]
pub type R = crate :: R < RIS_SPEC > ; # [doc = "Field `RIS_DONE` reader - NoWrapper operation completed. This interrupt bit is set by firmware or the corresponding bit in the ISET register. It is cleared by the corresponding bit in in the ICLR register or reading the IIDX register when this interrupt is the highest priority."]
pub type RIS_DONE_R = crate :: BitReader < RIS_DONE_A > ; # [doc = "NoWrapper operation completed. This interrupt bit is set by firmware or the corresponding bit in the ISET register. It is cleared by the corresponding bit in in the ICLR register or reading the IIDX register when this interrupt is the highest priority.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_DONE_A { # [doc = "0: CLR"]
RIS_DONE_CLR = 0 , # [doc = "1: SET"]
RIS_DONE_SET = 1 , } impl From < RIS_DONE_A > for bool { # [inline (always)]
fn from (variant : RIS_DONE_A) -> Self { variant as u8 != 0 } } impl RIS_DONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_DONE_A { match self . bits { false => RIS_DONE_A :: RIS_DONE_CLR , true => RIS_DONE_A :: RIS_DONE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_done_clr (& self) -> bool { * self == RIS_DONE_A :: RIS_DONE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_done_set (& self) -> bool { * self == RIS_DONE_A :: RIS_DONE_SET } } impl R { # [doc = "Bit 0 - NoWrapper operation completed. This interrupt bit is set by firmware or the corresponding bit in the ISET register. It is cleared by the corresponding bit in in the ICLR register or reading the IIDX register when this interrupt is the highest priority."]
# [inline (always)]
pub fn ris_done (& self) -> RIS_DONE_R { RIS_DONE_R :: new ((self . bits & 1) != 0) } } # [doc = "Raw Interrupt Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RIS_SPEC ; impl crate :: RegisterSpec for RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ris::R`](R) reader structure"]
impl crate :: Readable for RIS_SPEC { } # [doc = "`reset()` method sets RIS to value 0"]
impl crate :: Resettable for RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "MIS (r) register accessor: Masked Interrupt Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mis`]
module"]
pub type MIS = crate :: Reg < mis :: MIS_SPEC > ; # [doc = "Masked Interrupt Status Register"]
pub mod mis { # [doc = "Register `MIS` reader"]
pub type R = crate :: R < MIS_SPEC > ; # [doc = "Field `MIS_DONE` reader - NoWrapper operation completed. This masked interrupt bit reflects the bitwise AND of the corresponding RIS and IMASK bits."]
pub type MIS_DONE_R = crate :: BitReader < MIS_DONE_A > ; # [doc = "NoWrapper operation completed. This masked interrupt bit reflects the bitwise AND of the corresponding RIS and IMASK bits.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_DONE_A { # [doc = "0: CLR"]
MIS_DONE_CLR = 0 , # [doc = "1: SET"]
MIS_DONE_SET = 1 , } impl From < MIS_DONE_A > for bool { # [inline (always)]
fn from (variant : MIS_DONE_A) -> Self { variant as u8 != 0 } } impl MIS_DONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_DONE_A { match self . bits { false => MIS_DONE_A :: MIS_DONE_CLR , true => MIS_DONE_A :: MIS_DONE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_done_clr (& self) -> bool { * self == MIS_DONE_A :: MIS_DONE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_done_set (& self) -> bool { * self == MIS_DONE_A :: MIS_DONE_SET } } impl R { # [doc = "Bit 0 - NoWrapper operation completed. This masked interrupt bit reflects the bitwise AND of the corresponding RIS and IMASK bits."]
# [inline (always)]
pub fn mis_done (& self) -> MIS_DONE_R { MIS_DONE_R :: new ((self . bits & 1) != 0) } } # [doc = "Masked Interrupt Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MIS_SPEC ; impl crate :: RegisterSpec for MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`mis::R`](R) reader structure"]
impl crate :: Readable for MIS_SPEC { } # [doc = "`reset()` method sets MIS to value 0"]
impl crate :: Resettable for MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "ISET (w) register accessor: Interrupt Set Register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@iset`]
module"]
pub type ISET = crate :: Reg < iset :: ISET_SPEC > ; # [doc = "Interrupt Set Register"]
pub mod iset { # [doc = "Register `ISET` writer"]
pub type W = crate :: W < ISET_SPEC > ; # [doc = "0: No effect 1: Set the DONE interrupt in the RIS register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_DONE_AW { # [doc = "0: NO_EFFECT"]
ISET_DONE_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_DONE_SET = 1 , } impl From < ISET_DONE_AW > for bool { # [inline (always)]
fn from (variant : ISET_DONE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_DONE` writer - 0: No effect 1: Set the DONE interrupt in the RIS register"]
pub type ISET_DONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_DONE_AW > ; impl < 'a , REG , const O : u8 > ISET_DONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_done_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_DONE_AW :: ISET_DONE_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_done_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_DONE_AW :: ISET_DONE_SET) } } impl W { # [doc = "Bit 0 - 0: No effect 1: Set the DONE interrupt in the RIS register"]
# [inline (always)]
# [must_use]
pub fn iset_done (& mut self) -> ISET_DONE_W < ISET_SPEC , 0 > { ISET_DONE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt Set Register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ISET_SPEC ; impl crate :: RegisterSpec for ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`iset::W`](W) writer structure"]
impl crate :: Writable for ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets ISET to value 0"]
impl crate :: Resettable for ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "ICLR (w) register accessor: Interrupt Clear Register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@iclr`]
module"]
pub type ICLR = crate :: Reg < iclr :: ICLR_SPEC > ; # [doc = "Interrupt Clear Register"]
pub mod iclr { # [doc = "Register `ICLR` writer"]
pub type W = crate :: W < ICLR_SPEC > ; # [doc = "0: No effect 1: Clear the DONE interrupt in the RIS register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_DONE_AW { # [doc = "0: NO_EFFECT"]
ICLR_DONE_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_DONE_CLR = 1 , } impl From < ICLR_DONE_AW > for bool { # [inline (always)]
fn from (variant : ICLR_DONE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_DONE` writer - 0: No effect 1: Clear the DONE interrupt in the RIS register"]
pub type ICLR_DONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_DONE_AW > ; impl < 'a , REG , const O : u8 > ICLR_DONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_done_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_DONE_AW :: ICLR_DONE_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_done_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_DONE_AW :: ICLR_DONE_CLR) } } impl W { # [doc = "Bit 0 - 0: No effect 1: Clear the DONE interrupt in the RIS register"]
# [inline (always)]
# [must_use]
pub fn iclr_done (& mut self) -> ICLR_DONE_W < ICLR_SPEC , 0 > { ICLR_DONE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt Clear Register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ICLR_SPEC ; impl crate :: RegisterSpec for ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`iclr::W`](W) writer structure"]
impl crate :: Writable for ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets ICLR to value 0"]
impl crate :: Resettable for ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "EVT_MODE (r) register accessor: Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@evt_mode`]
module"]
pub type EVT_MODE = crate :: Reg < evt_mode :: EVT_MODE_SPEC > ; # [doc = "Event Mode"]
pub mod evt_mode { # [doc = "Register `EVT_MODE` reader"]
pub type R = crate :: R < EVT_MODE_SPEC > ; # [doc = "Field `EVT_MODE_INT0_CFG` reader - Event line mode select for peripheral event"]
pub type EVT_MODE_INT0_CFG_R = crate :: FieldReader < EVT_MODE_INT0_CFG_A > ; # [doc = "Event line mode select for peripheral event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_INT0_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_INT0_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_INT0_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_INT0_CFG_HARDWARE = 2 , } impl From < EVT_MODE_INT0_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_INT0_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_INT0_CFG_A { type Ux = u8 ; } impl EVT_MODE_INT0_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_INT0_CFG_A > { match self . bits { 0 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_DISABLE) , 1 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_SOFTWARE) , 2 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_disable (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_software (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_hardware (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_HARDWARE } } impl R { # [doc = "Bits 0:1 - Event line mode select for peripheral event"]
# [inline (always)]
pub fn evt_mode_int0_cfg (& self) -> EVT_MODE_INT0_CFG_R { EVT_MODE_INT0_CFG_R :: new ((self . bits & 3) as u8) } } # [doc = "Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct EVT_MODE_SPEC ; impl crate :: RegisterSpec for EVT_MODE_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`evt_mode::R`](R) reader structure"]
impl crate :: Readable for EVT_MODE_SPEC { } # [doc = "`reset()` method sets EVT_MODE to value 0"]
impl crate :: Resettable for EVT_MODE_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DESC (r) register accessor: Hardware Version Description Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@desc`]
module"]
pub type DESC = crate :: Reg < desc :: DESC_SPEC > ; # [doc = "Hardware Version Description Register"]
pub mod desc { # [doc = "Register `DESC` reader"]
pub type R = crate :: R < DESC_SPEC > ; # [doc = "Field `DESC_MINREV` reader - Minor Revision"]
pub type DESC_MINREV_R = crate :: FieldReader ; # [doc = "Field `DESC_MAJREV` reader - Major Revision"]
pub type DESC_MAJREV_R = crate :: FieldReader ; # [doc = "Field `DESC_INSTNUM` reader - Instance number"]
pub type DESC_INSTNUM_R = crate :: FieldReader ; # [doc = "Field `DESC_FEATUREVER` reader - Feature set"]
pub type DESC_FEATUREVER_R = crate :: FieldReader ; # [doc = "Field `DESC_MODULEID` reader - Module ID"]
pub type DESC_MODULEID_R = crate :: FieldReader < u16 > ; impl R { # [doc = "Bits 0:3 - Minor Revision"]
# [inline (always)]
pub fn desc_minrev (& self) -> DESC_MINREV_R { DESC_MINREV_R :: new ((self . bits & 0x0f) as u8) } # [doc = "Bits 4:7 - Major Revision"]
# [inline (always)]
pub fn desc_majrev (& self) -> DESC_MAJREV_R { DESC_MAJREV_R :: new (((self . bits >> 4) & 0x0f) as u8) } # [doc = "Bits 8:11 - Instance number"]
# [inline (always)]
pub fn desc_instnum (& self) -> DESC_INSTNUM_R { DESC_INSTNUM_R :: new (((self . bits >> 8) & 0x0f) as u8) } # [doc = "Bits 12:15 - Feature set"]
# [inline (always)]
pub fn desc_featurever (& self) -> DESC_FEATUREVER_R { DESC_FEATUREVER_R :: new (((self . bits >> 12) & 0x0f) as u8) } # [doc = "Bits 16:31 - Module ID"]
# [inline (always)]
pub fn desc_moduleid (& self) -> DESC_MODULEID_R { DESC_MODULEID_R :: new (((self . bits >> 16) & 0xffff) as u16) } } # [doc = "Hardware Version Description Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DESC_SPEC ; impl crate :: RegisterSpec for DESC_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`desc::R`](R) reader structure"]
impl crate :: Readable for DESC_SPEC { } # [doc = "`reset()` method sets DESC to value 0"]
impl crate :: Resettable for DESC_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CMDEXEC (rw) register accessor: Command Execute Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cmdexec::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cmdexec::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cmdexec`]
module"]
pub type CMDEXEC = crate :: Reg < cmdexec :: CMDEXEC_SPEC > ; # [doc = "Command Execute Register"]
pub mod cmdexec { # [doc = "Register `CMDEXEC` reader"]
pub type R = crate :: R < CMDEXEC_SPEC > ; # [doc = "Register `CMDEXEC` writer"]
pub type W = crate :: W < CMDEXEC_SPEC > ; # [doc = "Field `CMDEXEC_VAL` reader - Command Execute value Initiates execution of the command specified in the CMDTYPE register."]
pub type CMDEXEC_VAL_R = crate :: BitReader < CMDEXEC_VAL_A > ; # [doc = "Command Execute value Initiates execution of the command specified in the CMDTYPE register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CMDEXEC_VAL_A { # [doc = "0: NOEXECUTE"]
CMDEXEC_VAL_NOEXECUTE = 0 , # [doc = "1: EXECUTE"]
CMDEXEC_VAL_EXECUTE = 1 , } impl From < CMDEXEC_VAL_A > for bool { # [inline (always)]
fn from (variant : CMDEXEC_VAL_A) -> Self { variant as u8 != 0 } } impl CMDEXEC_VAL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CMDEXEC_VAL_A { match self . bits { false => CMDEXEC_VAL_A :: CMDEXEC_VAL_NOEXECUTE , true => CMDEXEC_VAL_A :: CMDEXEC_VAL_EXECUTE , } } # [doc = "NOEXECUTE"]
# [inline (always)]
pub fn is_cmdexec_val_noexecute (& self) -> bool { * self == CMDEXEC_VAL_A :: CMDEXEC_VAL_NOEXECUTE } # [doc = "EXECUTE"]
# [inline (always)]
pub fn is_cmdexec_val_execute (& self) -> bool { * self == CMDEXEC_VAL_A :: CMDEXEC_VAL_EXECUTE } } # [doc = "Field `CMDEXEC_VAL` writer - Command Execute value Initiates execution of the command specified in the CMDTYPE register."]
pub type CMDEXEC_VAL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CMDEXEC_VAL_A > ; impl < 'a , REG , const O : u8 > CMDEXEC_VAL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOEXECUTE"]
# [inline (always)]
pub fn cmdexec_val_noexecute (self) -> & 'a mut crate :: W < REG > { self . variant (CMDEXEC_VAL_A :: CMDEXEC_VAL_NOEXECUTE) } # [doc = "EXECUTE"]
# [inline (always)]
pub fn cmdexec_val_execute (self) -> & 'a mut crate :: W < REG > { self . variant (CMDEXEC_VAL_A :: CMDEXEC_VAL_EXECUTE) } } impl R { # [doc = "Bit 0 - Command Execute value Initiates execution of the command specified in the CMDTYPE register."]
# [inline (always)]
pub fn cmdexec_val (& self) -> CMDEXEC_VAL_R { CMDEXEC_VAL_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - Command Execute value Initiates execution of the command specified in the CMDTYPE register."]
# [inline (always)]
# [must_use]
pub fn cmdexec_val (& mut self) -> CMDEXEC_VAL_W < CMDEXEC_SPEC , 0 > { CMDEXEC_VAL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Command Execute Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cmdexec::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cmdexec::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CMDEXEC_SPEC ; impl crate :: RegisterSpec for CMDEXEC_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cmdexec::R`](R) reader structure"]
impl crate :: Readable for CMDEXEC_SPEC { } # [doc = "`write(|w| ..)` method takes [`cmdexec::W`](W) writer structure"]
impl crate :: Writable for CMDEXEC_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CMDEXEC to value 0"]
impl crate :: Resettable for CMDEXEC_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CMDTYPE (rw) register accessor: Command Type Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cmdtype::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cmdtype::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cmdtype`]
module"]
pub type CMDTYPE = crate :: Reg < cmdtype :: CMDTYPE_SPEC > ; # [doc = "Command Type Register"]
pub mod cmdtype { # [doc = "Register `CMDTYPE` reader"]
pub type R = crate :: R < CMDTYPE_SPEC > ; # [doc = "Register `CMDTYPE` writer"]
pub type W = crate :: W < CMDTYPE_SPEC > ; # [doc = "Field `CMDTYPE_COMMAND` reader - Command type"]
pub type CMDTYPE_COMMAND_R = crate :: FieldReader < CMDTYPE_COMMAND_A > ; # [doc = "Command type\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CMDTYPE_COMMAND_A { # [doc = "0: NOOP"]
CMDTYPE_COMMAND_NOOP = 0 , # [doc = "1: PROGRAM"]
CMDTYPE_COMMAND_PROGRAM = 1 , # [doc = "2: ERASE"]
CMDTYPE_COMMAND_ERASE = 2 , # [doc = "3: READVERIFY"]
CMDTYPE_COMMAND_READVERIFY = 3 , # [doc = "4: MODECHANGE"]
CMDTYPE_COMMAND_MODECHANGE = 4 , # [doc = "5: CLEARSTATUS"]
CMDTYPE_COMMAND_CLEARSTATUS = 5 , # [doc = "6: BLANKVERIFY"]
CMDTYPE_COMMAND_BLANKVERIFY = 6 , } impl From < CMDTYPE_COMMAND_A > for u8 { # [inline (always)]
fn from (variant : CMDTYPE_COMMAND_A) -> Self { variant as _ } } impl crate :: FieldSpec for CMDTYPE_COMMAND_A { type Ux = u8 ; } impl CMDTYPE_COMMAND_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CMDTYPE_COMMAND_A > { match self . bits { 0 => Some (CMDTYPE_COMMAND_A :: CMDTYPE_COMMAND_NOOP) , 1 => Some (CMDTYPE_COMMAND_A :: CMDTYPE_COMMAND_PROGRAM) , 2 => Some (CMDTYPE_COMMAND_A :: CMDTYPE_COMMAND_ERASE) , 3 => Some (CMDTYPE_COMMAND_A :: CMDTYPE_COMMAND_READVERIFY) , 4 => Some (CMDTYPE_COMMAND_A :: CMDTYPE_COMMAND_MODECHANGE) , 5 => Some (CMDTYPE_COMMAND_A :: CMDTYPE_COMMAND_CLEARSTATUS) , 6 => Some (CMDTYPE_COMMAND_A :: CMDTYPE_COMMAND_BLANKVERIFY) , _ => None , } } # [doc = "NOOP"]
# [inline (always)]
pub fn is_cmdtype_command_noop (& self) -> bool { * self == CMDTYPE_COMMAND_A :: CMDTYPE_COMMAND_NOOP } # [doc = "PROGRAM"]
# [inline (always)]
pub fn is_cmdtype_command_program (& self) -> bool { * self == CMDTYPE_COMMAND_A :: CMDTYPE_COMMAND_PROGRAM } # [doc = "ERASE"]
# [inline (always)]
pub fn is_cmdtype_command_erase (& self) -> bool { * self == CMDTYPE_COMMAND_A :: CMDTYPE_COMMAND_ERASE } # [doc = "READVERIFY"]
# [inline (always)]
pub fn is_cmdtype_command_readverify (& self) -> bool { * self == CMDTYPE_COMMAND_A :: CMDTYPE_COMMAND_READVERIFY } # [doc = "MODECHANGE"]
# [inline (always)]
pub fn is_cmdtype_command_modechange (& self) -> bool { * self == CMDTYPE_COMMAND_A :: CMDTYPE_COMMAND_MODECHANGE } # [doc = "CLEARSTATUS"]
# [inline (always)]
pub fn is_cmdtype_command_clearstatus (& self) -> bool { * self == CMDTYPE_COMMAND_A :: CMDTYPE_COMMAND_CLEARSTATUS } # [doc = "BLANKVERIFY"]
# [inline (always)]
pub fn is_cmdtype_command_blankverify (& self) -> bool { * self == CMDTYPE_COMMAND_A :: CMDTYPE_COMMAND_BLANKVERIFY } } # [doc = "Field `CMDTYPE_COMMAND` writer - Command type"]
pub type CMDTYPE_COMMAND_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CMDTYPE_COMMAND_A > ; impl < 'a , REG , const O : u8 > CMDTYPE_COMMAND_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "NOOP"]
# [inline (always)]
pub fn cmdtype_command_noop (self) -> & 'a mut crate :: W < REG > { self . variant (CMDTYPE_COMMAND_A :: CMDTYPE_COMMAND_NOOP) } # [doc = "PROGRAM"]
# [inline (always)]
pub fn cmdtype_command_program (self) -> & 'a mut crate :: W < REG > { self . variant (CMDTYPE_COMMAND_A :: CMDTYPE_COMMAND_PROGRAM) } # [doc = "ERASE"]
# [inline (always)]
pub fn cmdtype_command_erase (self) -> & 'a mut crate :: W < REG > { self . variant (CMDTYPE_COMMAND_A :: CMDTYPE_COMMAND_ERASE) } # [doc = "READVERIFY"]
# [inline (always)]
pub fn cmdtype_command_readverify (self) -> & 'a mut crate :: W < REG > { self . variant (CMDTYPE_COMMAND_A :: CMDTYPE_COMMAND_READVERIFY) } # [doc = "MODECHANGE"]
# [inline (always)]
pub fn cmdtype_command_modechange (self) -> & 'a mut crate :: W < REG > { self . variant (CMDTYPE_COMMAND_A :: CMDTYPE_COMMAND_MODECHANGE) } # [doc = "CLEARSTATUS"]
# [inline (always)]
pub fn cmdtype_command_clearstatus (self) -> & 'a mut crate :: W < REG > { self . variant (CMDTYPE_COMMAND_A :: CMDTYPE_COMMAND_CLEARSTATUS) } # [doc = "BLANKVERIFY"]
# [inline (always)]
pub fn cmdtype_command_blankverify (self) -> & 'a mut crate :: W < REG > { self . variant (CMDTYPE_COMMAND_A :: CMDTYPE_COMMAND_BLANKVERIFY) } } # [doc = "Field `CMDTYPE_SIZE` reader - Command size"]
pub type CMDTYPE_SIZE_R = crate :: FieldReader < CMDTYPE_SIZE_A > ; # [doc = "Command size\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CMDTYPE_SIZE_A { # [doc = "0: ONEWORD"]
CMDTYPE_SIZE_ONEWORD = 0 , # [doc = "1: TWOWORD"]
CMDTYPE_SIZE_TWOWORD = 1 , # [doc = "2: FOURWORD"]
CMDTYPE_SIZE_FOURWORD = 2 , # [doc = "3: EIGHTWORD"]
CMDTYPE_SIZE_EIGHTWORD = 3 , # [doc = "4: SECTOR"]
CMDTYPE_SIZE_SECTOR = 4 , # [doc = "5: BANK"]
CMDTYPE_SIZE_BANK = 5 , } impl From < CMDTYPE_SIZE_A > for u8 { # [inline (always)]
fn from (variant : CMDTYPE_SIZE_A) -> Self { variant as _ } } impl crate :: FieldSpec for CMDTYPE_SIZE_A { type Ux = u8 ; } impl CMDTYPE_SIZE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CMDTYPE_SIZE_A > { match self . bits { 0 => Some (CMDTYPE_SIZE_A :: CMDTYPE_SIZE_ONEWORD) , 1 => Some (CMDTYPE_SIZE_A :: CMDTYPE_SIZE_TWOWORD) , 2 => Some (CMDTYPE_SIZE_A :: CMDTYPE_SIZE_FOURWORD) , 3 => Some (CMDTYPE_SIZE_A :: CMDTYPE_SIZE_EIGHTWORD) , 4 => Some (CMDTYPE_SIZE_A :: CMDTYPE_SIZE_SECTOR) , 5 => Some (CMDTYPE_SIZE_A :: CMDTYPE_SIZE_BANK) , _ => None , } } # [doc = "ONEWORD"]
# [inline (always)]
pub fn is_cmdtype_size_oneword (& self) -> bool { * self == CMDTYPE_SIZE_A :: CMDTYPE_SIZE_ONEWORD } # [doc = "TWOWORD"]
# [inline (always)]
pub fn is_cmdtype_size_twoword (& self) -> bool { * self == CMDTYPE_SIZE_A :: CMDTYPE_SIZE_TWOWORD } # [doc = "FOURWORD"]
# [inline (always)]
pub fn is_cmdtype_size_fourword (& self) -> bool { * self == CMDTYPE_SIZE_A :: CMDTYPE_SIZE_FOURWORD } # [doc = "EIGHTWORD"]
# [inline (always)]
pub fn is_cmdtype_size_eightword (& self) -> bool { * self == CMDTYPE_SIZE_A :: CMDTYPE_SIZE_EIGHTWORD } # [doc = "SECTOR"]
# [inline (always)]
pub fn is_cmdtype_size_sector (& self) -> bool { * self == CMDTYPE_SIZE_A :: CMDTYPE_SIZE_SECTOR } # [doc = "BANK"]
# [inline (always)]
pub fn is_cmdtype_size_bank (& self) -> bool { * self == CMDTYPE_SIZE_A :: CMDTYPE_SIZE_BANK } } # [doc = "Field `CMDTYPE_SIZE` writer - Command size"]
pub type CMDTYPE_SIZE_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CMDTYPE_SIZE_A > ; impl < 'a , REG , const O : u8 > CMDTYPE_SIZE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "ONEWORD"]
# [inline (always)]
pub fn cmdtype_size_oneword (self) -> & 'a mut crate :: W < REG > { self . variant (CMDTYPE_SIZE_A :: CMDTYPE_SIZE_ONEWORD) } # [doc = "TWOWORD"]
# [inline (always)]
pub fn cmdtype_size_twoword (self) -> & 'a mut crate :: W < REG > { self . variant (CMDTYPE_SIZE_A :: CMDTYPE_SIZE_TWOWORD) } # [doc = "FOURWORD"]
# [inline (always)]
pub fn cmdtype_size_fourword (self) -> & 'a mut crate :: W < REG > { self . variant (CMDTYPE_SIZE_A :: CMDTYPE_SIZE_FOURWORD) } # [doc = "EIGHTWORD"]
# [inline (always)]
pub fn cmdtype_size_eightword (self) -> & 'a mut crate :: W < REG > { self . variant (CMDTYPE_SIZE_A :: CMDTYPE_SIZE_EIGHTWORD) } # [doc = "SECTOR"]
# [inline (always)]
pub fn cmdtype_size_sector (self) -> & 'a mut crate :: W < REG > { self . variant (CMDTYPE_SIZE_A :: CMDTYPE_SIZE_SECTOR) } # [doc = "BANK"]
# [inline (always)]
pub fn cmdtype_size_bank (self) -> & 'a mut crate :: W < REG > { self . variant (CMDTYPE_SIZE_A :: CMDTYPE_SIZE_BANK) } } impl R { # [doc = "Bits 0:2 - Command type"]
# [inline (always)]
pub fn cmdtype_command (& self) -> CMDTYPE_COMMAND_R { CMDTYPE_COMMAND_R :: new ((self . bits & 7) as u8) } # [doc = "Bits 4:6 - Command size"]
# [inline (always)]
pub fn cmdtype_size (& self) -> CMDTYPE_SIZE_R { CMDTYPE_SIZE_R :: new (((self . bits >> 4) & 7) as u8) } } impl W { # [doc = "Bits 0:2 - Command type"]
# [inline (always)]
# [must_use]
pub fn cmdtype_command (& mut self) -> CMDTYPE_COMMAND_W < CMDTYPE_SPEC , 0 > { CMDTYPE_COMMAND_W :: new (self) } # [doc = "Bits 4:6 - Command size"]
# [inline (always)]
# [must_use]
pub fn cmdtype_size (& mut self) -> CMDTYPE_SIZE_W < CMDTYPE_SPEC , 4 > { CMDTYPE_SIZE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Command Type Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cmdtype::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cmdtype::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CMDTYPE_SPEC ; impl crate :: RegisterSpec for CMDTYPE_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cmdtype::R`](R) reader structure"]
impl crate :: Readable for CMDTYPE_SPEC { } # [doc = "`write(|w| ..)` method takes [`cmdtype::W`](W) writer structure"]
impl crate :: Writable for CMDTYPE_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CMDTYPE to value 0"]
impl crate :: Resettable for CMDTYPE_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CMDCTL (rw) register accessor: Command Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cmdctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cmdctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cmdctl`]
module"]
pub type CMDCTL = crate :: Reg < cmdctl :: CMDCTL_SPEC > ; # [doc = "Command Control Register"]
pub mod cmdctl { # [doc = "Register `CMDCTL` reader"]
pub type R = crate :: R < CMDCTL_SPEC > ; # [doc = "Register `CMDCTL` writer"]
pub type W = crate :: W < CMDCTL_SPEC > ; # [doc = "Field `CMDCTL_MODESEL` reader - Mode This field is only used for the Mode Change command type. Otherwise, bank and pump modes are set automaticlly via the NW hardware."]
pub type CMDCTL_MODESEL_R = crate :: FieldReader < CMDCTL_MODESEL_A > ; # [doc = "Mode This field is only used for the Mode Change command type. Otherwise, bank and pump modes are set automaticlly via the NW hardware.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CMDCTL_MODESEL_A { # [doc = "0: READ"]
CMDCTL_MODESEL_READ = 0 , # [doc = "2: RDMARG0"]
CMDCTL_MODESEL_RDMARG0 = 2 , # [doc = "4: RDMARG1"]
CMDCTL_MODESEL_RDMARG1 = 4 , # [doc = "6: RDMARG0B"]
CMDCTL_MODESEL_RDMARG0B = 6 , # [doc = "7: RDMARG1B"]
CMDCTL_MODESEL_RDMARG1B = 7 , # [doc = "9: PGMVER"]
CMDCTL_MODESEL_PGMVER = 9 , # [doc = "10: PGMSW"]
CMDCTL_MODESEL_PGMSW = 10 , # [doc = "11: ERASEVER"]
CMDCTL_MODESEL_ERASEVER = 11 , # [doc = "12: ERASESECT"]
CMDCTL_MODESEL_ERASESECT = 12 , # [doc = "14: PGMMW"]
CMDCTL_MODESEL_PGMMW = 14 , # [doc = "15: ERASEBNK"]
CMDCTL_MODESEL_ERASEBNK = 15 , } impl From < CMDCTL_MODESEL_A > for u8 { # [inline (always)]
fn from (variant : CMDCTL_MODESEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for CMDCTL_MODESEL_A { type Ux = u8 ; } impl CMDCTL_MODESEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CMDCTL_MODESEL_A > { match self . bits { 0 => Some (CMDCTL_MODESEL_A :: CMDCTL_MODESEL_READ) , 2 => Some (CMDCTL_MODESEL_A :: CMDCTL_MODESEL_RDMARG0) , 4 => Some (CMDCTL_MODESEL_A :: CMDCTL_MODESEL_RDMARG1) , 6 => Some (CMDCTL_MODESEL_A :: CMDCTL_MODESEL_RDMARG0B) , 7 => Some (CMDCTL_MODESEL_A :: CMDCTL_MODESEL_RDMARG1B) , 9 => Some (CMDCTL_MODESEL_A :: CMDCTL_MODESEL_PGMVER) , 10 => Some (CMDCTL_MODESEL_A :: CMDCTL_MODESEL_PGMSW) , 11 => Some (CMDCTL_MODESEL_A :: CMDCTL_MODESEL_ERASEVER) , 12 => Some (CMDCTL_MODESEL_A :: CMDCTL_MODESEL_ERASESECT) , 14 => Some (CMDCTL_MODESEL_A :: CMDCTL_MODESEL_PGMMW) , 15 => Some (CMDCTL_MODESEL_A :: CMDCTL_MODESEL_ERASEBNK) , _ => None , } } # [doc = "READ"]
# [inline (always)]
pub fn is_cmdctl_modesel_read (& self) -> bool { * self == CMDCTL_MODESEL_A :: CMDCTL_MODESEL_READ } # [doc = "RDMARG0"]
# [inline (always)]
pub fn is_cmdctl_modesel_rdmarg0 (& self) -> bool { * self == CMDCTL_MODESEL_A :: CMDCTL_MODESEL_RDMARG0 } # [doc = "RDMARG1"]
# [inline (always)]
pub fn is_cmdctl_modesel_rdmarg1 (& self) -> bool { * self == CMDCTL_MODESEL_A :: CMDCTL_MODESEL_RDMARG1 } # [doc = "RDMARG0B"]
# [inline (always)]
pub fn is_cmdctl_modesel_rdmarg0b (& self) -> bool { * self == CMDCTL_MODESEL_A :: CMDCTL_MODESEL_RDMARG0B } # [doc = "RDMARG1B"]
# [inline (always)]
pub fn is_cmdctl_modesel_rdmarg1b (& self) -> bool { * self == CMDCTL_MODESEL_A :: CMDCTL_MODESEL_RDMARG1B } # [doc = "PGMVER"]
# [inline (always)]
pub fn is_cmdctl_modesel_pgmver (& self) -> bool { * self == CMDCTL_MODESEL_A :: CMDCTL_MODESEL_PGMVER } # [doc = "PGMSW"]
# [inline (always)]
pub fn is_cmdctl_modesel_pgmsw (& self) -> bool { * self == CMDCTL_MODESEL_A :: CMDCTL_MODESEL_PGMSW } # [doc = "ERASEVER"]
# [inline (always)]
pub fn is_cmdctl_modesel_erasever (& self) -> bool { * self == CMDCTL_MODESEL_A :: CMDCTL_MODESEL_ERASEVER } # [doc = "ERASESECT"]
# [inline (always)]
pub fn is_cmdctl_modesel_erasesect (& self) -> bool { * self == CMDCTL_MODESEL_A :: CMDCTL_MODESEL_ERASESECT } # [doc = "PGMMW"]
# [inline (always)]
pub fn is_cmdctl_modesel_pgmmw (& self) -> bool { * self == CMDCTL_MODESEL_A :: CMDCTL_MODESEL_PGMMW } # [doc = "ERASEBNK"]
# [inline (always)]
pub fn is_cmdctl_modesel_erasebnk (& self) -> bool { * self == CMDCTL_MODESEL_A :: CMDCTL_MODESEL_ERASEBNK } } # [doc = "Field `CMDCTL_MODESEL` writer - Mode This field is only used for the Mode Change command type. Otherwise, bank and pump modes are set automaticlly via the NW hardware."]
pub type CMDCTL_MODESEL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 4 , O , CMDCTL_MODESEL_A > ; impl < 'a , REG , const O : u8 > CMDCTL_MODESEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "READ"]
# [inline (always)]
pub fn cmdctl_modesel_read (self) -> & 'a mut crate :: W < REG > { self . variant (CMDCTL_MODESEL_A :: CMDCTL_MODESEL_READ) } # [doc = "RDMARG0"]
# [inline (always)]
pub fn cmdctl_modesel_rdmarg0 (self) -> & 'a mut crate :: W < REG > { self . variant (CMDCTL_MODESEL_A :: CMDCTL_MODESEL_RDMARG0) } # [doc = "RDMARG1"]
# [inline (always)]
pub fn cmdctl_modesel_rdmarg1 (self) -> & 'a mut crate :: W < REG > { self . variant (CMDCTL_MODESEL_A :: CMDCTL_MODESEL_RDMARG1) } # [doc = "RDMARG0B"]
# [inline (always)]
pub fn cmdctl_modesel_rdmarg0b (self) -> & 'a mut crate :: W < REG > { self . variant (CMDCTL_MODESEL_A :: CMDCTL_MODESEL_RDMARG0B) } # [doc = "RDMARG1B"]
# [inline (always)]
pub fn cmdctl_modesel_rdmarg1b (self) -> & 'a mut crate :: W < REG > { self . variant (CMDCTL_MODESEL_A :: CMDCTL_MODESEL_RDMARG1B) } # [doc = "PGMVER"]
# [inline (always)]
pub fn cmdctl_modesel_pgmver (self) -> & 'a mut crate :: W < REG > { self . variant (CMDCTL_MODESEL_A :: CMDCTL_MODESEL_PGMVER) } # [doc = "PGMSW"]
# [inline (always)]
pub fn cmdctl_modesel_pgmsw (self) -> & 'a mut crate :: W < REG > { self . variant (CMDCTL_MODESEL_A :: CMDCTL_MODESEL_PGMSW) } # [doc = "ERASEVER"]
# [inline (always)]
pub fn cmdctl_modesel_erasever (self) -> & 'a mut crate :: W < REG > { self . variant (CMDCTL_MODESEL_A :: CMDCTL_MODESEL_ERASEVER) } # [doc = "ERASESECT"]
# [inline (always)]
pub fn cmdctl_modesel_erasesect (self) -> & 'a mut crate :: W < REG > { self . variant (CMDCTL_MODESEL_A :: CMDCTL_MODESEL_ERASESECT) } # [doc = "PGMMW"]
# [inline (always)]
pub fn cmdctl_modesel_pgmmw (self) -> & 'a mut crate :: W < REG > { self . variant (CMDCTL_MODESEL_A :: CMDCTL_MODESEL_PGMMW) } # [doc = "ERASEBNK"]
# [inline (always)]
pub fn cmdctl_modesel_erasebnk (self) -> & 'a mut crate :: W < REG > { self . variant (CMDCTL_MODESEL_A :: CMDCTL_MODESEL_ERASEBNK) } } # [doc = "Field `CMDCTL_REGIONSEL` reader - Bank Region A specific region ID can be written to this field to indicate to which region an operation should be applied if CMDCTL.ADDRXLATEOVR is set."]
pub type CMDCTL_REGIONSEL_R = crate :: FieldReader < CMDCTL_REGIONSEL_A > ; # [doc = "Bank Region A specific region ID can be written to this field to indicate to which region an operation should be applied if CMDCTL.ADDRXLATEOVR is set.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CMDCTL_REGIONSEL_A { # [doc = "1: MAIN"]
CMDCTL_REGIONSEL_MAIN = 1 , # [doc = "2: NONMAIN"]
CMDCTL_REGIONSEL_NONMAIN = 2 , # [doc = "4: TRIM"]
CMDCTL_REGIONSEL_TRIM = 4 , # [doc = "8: ENGR"]
CMDCTL_REGIONSEL_ENGR = 8 , } impl From < CMDCTL_REGIONSEL_A > for u8 { # [inline (always)]
fn from (variant : CMDCTL_REGIONSEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for CMDCTL_REGIONSEL_A { type Ux = u8 ; } impl CMDCTL_REGIONSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CMDCTL_REGIONSEL_A > { match self . bits { 1 => Some (CMDCTL_REGIONSEL_A :: CMDCTL_REGIONSEL_MAIN) , 2 => Some (CMDCTL_REGIONSEL_A :: CMDCTL_REGIONSEL_NONMAIN) , 4 => Some (CMDCTL_REGIONSEL_A :: CMDCTL_REGIONSEL_TRIM) , 8 => Some (CMDCTL_REGIONSEL_A :: CMDCTL_REGIONSEL_ENGR) , _ => None , } } # [doc = "MAIN"]
# [inline (always)]
pub fn is_cmdctl_regionsel_main (& self) -> bool { * self == CMDCTL_REGIONSEL_A :: CMDCTL_REGIONSEL_MAIN } # [doc = "NONMAIN"]
# [inline (always)]
pub fn is_cmdctl_regionsel_nonmain (& self) -> bool { * self == CMDCTL_REGIONSEL_A :: CMDCTL_REGIONSEL_NONMAIN } # [doc = "TRIM"]
# [inline (always)]
pub fn is_cmdctl_regionsel_trim (& self) -> bool { * self == CMDCTL_REGIONSEL_A :: CMDCTL_REGIONSEL_TRIM } # [doc = "ENGR"]
# [inline (always)]
pub fn is_cmdctl_regionsel_engr (& self) -> bool { * self == CMDCTL_REGIONSEL_A :: CMDCTL_REGIONSEL_ENGR } } # [doc = "Field `CMDCTL_REGIONSEL` writer - Bank Region A specific region ID can be written to this field to indicate to which region an operation should be applied if CMDCTL.ADDRXLATEOVR is set."]
pub type CMDCTL_REGIONSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 4 , O , CMDCTL_REGIONSEL_A > ; impl < 'a , REG , const O : u8 > CMDCTL_REGIONSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "MAIN"]
# [inline (always)]
pub fn cmdctl_regionsel_main (self) -> & 'a mut crate :: W < REG > { self . variant (CMDCTL_REGIONSEL_A :: CMDCTL_REGIONSEL_MAIN) } # [doc = "NONMAIN"]
# [inline (always)]
pub fn cmdctl_regionsel_nonmain (self) -> & 'a mut crate :: W < REG > { self . variant (CMDCTL_REGIONSEL_A :: CMDCTL_REGIONSEL_NONMAIN) } # [doc = "TRIM"]
# [inline (always)]
pub fn cmdctl_regionsel_trim (self) -> & 'a mut crate :: W < REG > { self . variant (CMDCTL_REGIONSEL_A :: CMDCTL_REGIONSEL_TRIM) } # [doc = "ENGR"]
# [inline (always)]
pub fn cmdctl_regionsel_engr (self) -> & 'a mut crate :: W < REG > { self . variant (CMDCTL_REGIONSEL_A :: CMDCTL_REGIONSEL_ENGR) } } # [doc = "Field `CMDCTL_ADDRXLATEOVR` reader - Override hardware address translation of address in CMDADDR from a system address to a bank address and bank ID. Use data written to CMDADDR directly as the bank address. Use the value written to CMDCTL.BANKSEL directly as the bank ID. Use the value written to CMDCTL.REGIONSEL directly as the region ID."]
pub type CMDCTL_ADDRXLATEOVR_R = crate :: BitReader < CMDCTL_ADDRXLATEOVR_A > ; # [doc = "Override hardware address translation of address in CMDADDR from a system address to a bank address and bank ID. Use data written to CMDADDR directly as the bank address. Use the value written to CMDCTL.BANKSEL directly as the bank ID. Use the value written to CMDCTL.REGIONSEL directly as the region ID.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CMDCTL_ADDRXLATEOVR_A { # [doc = "0: NOOVERRIDE"]
CMDCTL_ADDRXLATEOVR_NOOVERRIDE = 0 , # [doc = "1: OVERRIDE"]
CMDCTL_ADDRXLATEOVR_OVERRIDE = 1 , } impl From < CMDCTL_ADDRXLATEOVR_A > for bool { # [inline (always)]
fn from (variant : CMDCTL_ADDRXLATEOVR_A) -> Self { variant as u8 != 0 } } impl CMDCTL_ADDRXLATEOVR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CMDCTL_ADDRXLATEOVR_A { match self . bits { false => CMDCTL_ADDRXLATEOVR_A :: CMDCTL_ADDRXLATEOVR_NOOVERRIDE , true => CMDCTL_ADDRXLATEOVR_A :: CMDCTL_ADDRXLATEOVR_OVERRIDE , } } # [doc = "NOOVERRIDE"]
# [inline (always)]
pub fn is_cmdctl_addrxlateovr_nooverride (& self) -> bool { * self == CMDCTL_ADDRXLATEOVR_A :: CMDCTL_ADDRXLATEOVR_NOOVERRIDE } # [doc = "OVERRIDE"]
# [inline (always)]
pub fn is_cmdctl_addrxlateovr_override (& self) -> bool { * self == CMDCTL_ADDRXLATEOVR_A :: CMDCTL_ADDRXLATEOVR_OVERRIDE } } # [doc = "Field `CMDCTL_ADDRXLATEOVR` writer - Override hardware address translation of address in CMDADDR from a system address to a bank address and bank ID. Use data written to CMDADDR directly as the bank address. Use the value written to CMDCTL.BANKSEL directly as the bank ID. Use the value written to CMDCTL.REGIONSEL directly as the region ID."]
pub type CMDCTL_ADDRXLATEOVR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CMDCTL_ADDRXLATEOVR_A > ; impl < 'a , REG , const O : u8 > CMDCTL_ADDRXLATEOVR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOOVERRIDE"]
# [inline (always)]
pub fn cmdctl_addrxlateovr_nooverride (self) -> & 'a mut crate :: W < REG > { self . variant (CMDCTL_ADDRXLATEOVR_A :: CMDCTL_ADDRXLATEOVR_NOOVERRIDE) } # [doc = "OVERRIDE"]
# [inline (always)]
pub fn cmdctl_addrxlateovr_override (self) -> & 'a mut crate :: W < REG > { self . variant (CMDCTL_ADDRXLATEOVR_A :: CMDCTL_ADDRXLATEOVR_OVERRIDE) } } # [doc = "Field `CMDCTL_SSERASEDIS` reader - Disable Stair-Step Erase. If set, the default VHV trim voltage setting will be used for all erase pulses. By default, this bit is reset, meaning that the VHV voltage will be stepped during successive erase pulses. The step count, step voltage, begin and end voltages are all hard-wired."]
pub type CMDCTL_SSERASEDIS_R = crate :: BitReader < CMDCTL_SSERASEDIS_A > ; # [doc = "Disable Stair-Step Erase. If set, the default VHV trim voltage setting will be used for all erase pulses. By default, this bit is reset, meaning that the VHV voltage will be stepped during successive erase pulses. The step count, step voltage, begin and end voltages are all hard-wired.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CMDCTL_SSERASEDIS_A { # [doc = "0: ENABLE"]
CMDCTL_SSERASEDIS_ENABLE = 0 , # [doc = "1: DISABLE"]
CMDCTL_SSERASEDIS_DISABLE = 1 , } impl From < CMDCTL_SSERASEDIS_A > for bool { # [inline (always)]
fn from (variant : CMDCTL_SSERASEDIS_A) -> Self { variant as u8 != 0 } } impl CMDCTL_SSERASEDIS_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CMDCTL_SSERASEDIS_A { match self . bits { false => CMDCTL_SSERASEDIS_A :: CMDCTL_SSERASEDIS_ENABLE , true => CMDCTL_SSERASEDIS_A :: CMDCTL_SSERASEDIS_DISABLE , } } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_cmdctl_sserasedis_enable (& self) -> bool { * self == CMDCTL_SSERASEDIS_A :: CMDCTL_SSERASEDIS_ENABLE } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_cmdctl_sserasedis_disable (& self) -> bool { * self == CMDCTL_SSERASEDIS_A :: CMDCTL_SSERASEDIS_DISABLE } } # [doc = "Field `CMDCTL_SSERASEDIS` writer - Disable Stair-Step Erase. If set, the default VHV trim voltage setting will be used for all erase pulses. By default, this bit is reset, meaning that the VHV voltage will be stepped during successive erase pulses. The step count, step voltage, begin and end voltages are all hard-wired."]
pub type CMDCTL_SSERASEDIS_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CMDCTL_SSERASEDIS_A > ; impl < 'a , REG , const O : u8 > CMDCTL_SSERASEDIS_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ENABLE"]
# [inline (always)]
pub fn cmdctl_sserasedis_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CMDCTL_SSERASEDIS_A :: CMDCTL_SSERASEDIS_ENABLE) } # [doc = "DISABLE"]
# [inline (always)]
pub fn cmdctl_sserasedis_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CMDCTL_SSERASEDIS_A :: CMDCTL_SSERASEDIS_DISABLE) } } # [doc = "Field `CMDCTL_DATAVEREN` reader - Enable invalid data verify. This checks for 0-&amp;gt;1 transitions in the memory when a program operation is initiated. If such a transition is found, the program will fail with an error without doing any programming."]
pub type CMDCTL_DATAVEREN_R = crate :: BitReader < CMDCTL_DATAVEREN_A > ; # [doc = "Enable invalid data verify. This checks for 0-&amp;gt;1 transitions in the memory when a program operation is initiated. If such a transition is found, the program will fail with an error without doing any programming.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CMDCTL_DATAVEREN_A { # [doc = "0: DISABLE"]
CMDCTL_DATAVEREN_DISABLE = 0 , # [doc = "1: ENABLE"]
CMDCTL_DATAVEREN_ENABLE = 1 , } impl From < CMDCTL_DATAVEREN_A > for bool { # [inline (always)]
fn from (variant : CMDCTL_DATAVEREN_A) -> Self { variant as u8 != 0 } } impl CMDCTL_DATAVEREN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CMDCTL_DATAVEREN_A { match self . bits { false => CMDCTL_DATAVEREN_A :: CMDCTL_DATAVEREN_DISABLE , true => CMDCTL_DATAVEREN_A :: CMDCTL_DATAVEREN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_cmdctl_dataveren_disable (& self) -> bool { * self == CMDCTL_DATAVEREN_A :: CMDCTL_DATAVEREN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_cmdctl_dataveren_enable (& self) -> bool { * self == CMDCTL_DATAVEREN_A :: CMDCTL_DATAVEREN_ENABLE } } # [doc = "Field `CMDCTL_DATAVEREN` writer - Enable invalid data verify. This checks for 0-&amp;gt;1 transitions in the memory when a program operation is initiated. If such a transition is found, the program will fail with an error without doing any programming."]
pub type CMDCTL_DATAVEREN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CMDCTL_DATAVEREN_A > ; impl < 'a , REG , const O : u8 > CMDCTL_DATAVEREN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn cmdctl_dataveren_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CMDCTL_DATAVEREN_A :: CMDCTL_DATAVEREN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn cmdctl_dataveren_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CMDCTL_DATAVEREN_A :: CMDCTL_DATAVEREN_ENABLE) } } impl R { # [doc = "Bits 0:3 - Mode This field is only used for the Mode Change command type. Otherwise, bank and pump modes are set automaticlly via the NW hardware."]
# [inline (always)]
pub fn cmdctl_modesel (& self) -> CMDCTL_MODESEL_R { CMDCTL_MODESEL_R :: new ((self . bits & 0x0f) as u8) } # [doc = "Bits 9:12 - Bank Region A specific region ID can be written to this field to indicate to which region an operation should be applied if CMDCTL.ADDRXLATEOVR is set."]
# [inline (always)]
pub fn cmdctl_regionsel (& self) -> CMDCTL_REGIONSEL_R { CMDCTL_REGIONSEL_R :: new (((self . bits >> 9) & 0x0f) as u8) } # [doc = "Bit 16 - Override hardware address translation of address in CMDADDR from a system address to a bank address and bank ID. Use data written to CMDADDR directly as the bank address. Use the value written to CMDCTL.BANKSEL directly as the bank ID. Use the value written to CMDCTL.REGIONSEL directly as the region ID."]
# [inline (always)]
pub fn cmdctl_addrxlateovr (& self) -> CMDCTL_ADDRXLATEOVR_R { CMDCTL_ADDRXLATEOVR_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 20 - Disable Stair-Step Erase. If set, the default VHV trim voltage setting will be used for all erase pulses. By default, this bit is reset, meaning that the VHV voltage will be stepped during successive erase pulses. The step count, step voltage, begin and end voltages are all hard-wired."]
# [inline (always)]
pub fn cmdctl_sserasedis (& self) -> CMDCTL_SSERASEDIS_R { CMDCTL_SSERASEDIS_R :: new (((self . bits >> 20) & 1) != 0) } # [doc = "Bit 21 - Enable invalid data verify. This checks for 0-&amp;gt;1 transitions in the memory when a program operation is initiated. If such a transition is found, the program will fail with an error without doing any programming."]
# [inline (always)]
pub fn cmdctl_dataveren (& self) -> CMDCTL_DATAVEREN_R { CMDCTL_DATAVEREN_R :: new (((self . bits >> 21) & 1) != 0) } } impl W { # [doc = "Bits 0:3 - Mode This field is only used for the Mode Change command type. Otherwise, bank and pump modes are set automaticlly via the NW hardware."]
# [inline (always)]
# [must_use]
pub fn cmdctl_modesel (& mut self) -> CMDCTL_MODESEL_W < CMDCTL_SPEC , 0 > { CMDCTL_MODESEL_W :: new (self) } # [doc = "Bits 9:12 - Bank Region A specific region ID can be written to this field to indicate to which region an operation should be applied if CMDCTL.ADDRXLATEOVR is set."]
# [inline (always)]
# [must_use]
pub fn cmdctl_regionsel (& mut self) -> CMDCTL_REGIONSEL_W < CMDCTL_SPEC , 9 > { CMDCTL_REGIONSEL_W :: new (self) } # [doc = "Bit 16 - Override hardware address translation of address in CMDADDR from a system address to a bank address and bank ID. Use data written to CMDADDR directly as the bank address. Use the value written to CMDCTL.BANKSEL directly as the bank ID. Use the value written to CMDCTL.REGIONSEL directly as the region ID."]
# [inline (always)]
# [must_use]
pub fn cmdctl_addrxlateovr (& mut self) -> CMDCTL_ADDRXLATEOVR_W < CMDCTL_SPEC , 16 > { CMDCTL_ADDRXLATEOVR_W :: new (self) } # [doc = "Bit 20 - Disable Stair-Step Erase. If set, the default VHV trim voltage setting will be used for all erase pulses. By default, this bit is reset, meaning that the VHV voltage will be stepped during successive erase pulses. The step count, step voltage, begin and end voltages are all hard-wired."]
# [inline (always)]
# [must_use]
pub fn cmdctl_sserasedis (& mut self) -> CMDCTL_SSERASEDIS_W < CMDCTL_SPEC , 20 > { CMDCTL_SSERASEDIS_W :: new (self) } # [doc = "Bit 21 - Enable invalid data verify. This checks for 0-&amp;gt;1 transitions in the memory when a program operation is initiated. If such a transition is found, the program will fail with an error without doing any programming."]
# [inline (always)]
# [must_use]
pub fn cmdctl_dataveren (& mut self) -> CMDCTL_DATAVEREN_W < CMDCTL_SPEC , 21 > { CMDCTL_DATAVEREN_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Command Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cmdctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cmdctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CMDCTL_SPEC ; impl crate :: RegisterSpec for CMDCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cmdctl::R`](R) reader structure"]
impl crate :: Readable for CMDCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`cmdctl::W`](W) writer structure"]
impl crate :: Writable for CMDCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CMDCTL to value 0"]
impl crate :: Resettable for CMDCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CMDADDR (rw) register accessor: Command Address Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cmdaddr::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cmdaddr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cmdaddr`]
module"]
pub type CMDADDR = crate :: Reg < cmdaddr :: CMDADDR_SPEC > ; # [doc = "Command Address Register"]
pub mod cmdaddr { # [doc = "Register `CMDADDR` reader"]
pub type R = crate :: R < CMDADDR_SPEC > ; # [doc = "Register `CMDADDR` writer"]
pub type W = crate :: W < CMDADDR_SPEC > ; # [doc = "Field `CMDADDR_VAL` reader - Address value"]
pub type CMDADDR_VAL_R = crate :: FieldReader < u32 > ; # [doc = "Field `CMDADDR_VAL` writer - Address value"]
pub type CMDADDR_VAL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 32 , O , u32 > ; impl R { # [doc = "Bits 0:31 - Address value"]
# [inline (always)]
pub fn cmdaddr_val (& self) -> CMDADDR_VAL_R { CMDADDR_VAL_R :: new (self . bits) } } impl W { # [doc = "Bits 0:31 - Address value"]
# [inline (always)]
# [must_use]
pub fn cmdaddr_val (& mut self) -> CMDADDR_VAL_W < CMDADDR_SPEC , 0 > { CMDADDR_VAL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Command Address Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cmdaddr::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cmdaddr::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CMDADDR_SPEC ; impl crate :: RegisterSpec for CMDADDR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cmdaddr::R`](R) reader structure"]
impl crate :: Readable for CMDADDR_SPEC { } # [doc = "`write(|w| ..)` method takes [`cmdaddr::W`](W) writer structure"]
impl crate :: Writable for CMDADDR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CMDADDR to value 0"]
impl crate :: Resettable for CMDADDR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CMDBYTEN (rw) register accessor: Command Program Byte Enable Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cmdbyten::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cmdbyten::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cmdbyten`]
module"]
pub type CMDBYTEN = crate :: Reg < cmdbyten :: CMDBYTEN_SPEC > ; # [doc = "Command Program Byte Enable Register"]
pub mod cmdbyten { # [doc = "Register `CMDBYTEN` reader"]
pub type R = crate :: R < CMDBYTEN_SPEC > ; # [doc = "Register `CMDBYTEN` writer"]
pub type W = crate :: W < CMDBYTEN_SPEC > ; # [doc = "Field `CMDBYTEN_VAL` reader - Command Byte Enable value. A 1-bit per flash word byte value is placed in this register."]
pub type CMDBYTEN_VAL_R = crate :: FieldReader ; # [doc = "Field `CMDBYTEN_VAL` writer - Command Byte Enable value. A 1-bit per flash word byte value is placed in this register."]
pub type CMDBYTEN_VAL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O > ; impl R { # [doc = "Bits 0:7 - Command Byte Enable value. A 1-bit per flash word byte value is placed in this register."]
# [inline (always)]
pub fn cmdbyten_val (& self) -> CMDBYTEN_VAL_R { CMDBYTEN_VAL_R :: new ((self . bits & 0xff) as u8) } } impl W { # [doc = "Bits 0:7 - Command Byte Enable value. A 1-bit per flash word byte value is placed in this register."]
# [inline (always)]
# [must_use]
pub fn cmdbyten_val (& mut self) -> CMDBYTEN_VAL_W < CMDBYTEN_SPEC , 0 > { CMDBYTEN_VAL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Command Program Byte Enable Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cmdbyten::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cmdbyten::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CMDBYTEN_SPEC ; impl crate :: RegisterSpec for CMDBYTEN_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cmdbyten::R`](R) reader structure"]
impl crate :: Readable for CMDBYTEN_SPEC { } # [doc = "`write(|w| ..)` method takes [`cmdbyten::W`](W) writer structure"]
impl crate :: Writable for CMDBYTEN_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CMDBYTEN to value 0"]
impl crate :: Resettable for CMDBYTEN_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CMDDATA0 (rw) register accessor: Command Data Register 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cmddata0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cmddata0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cmddata0`]
module"]
pub type CMDDATA0 = crate :: Reg < cmddata0 :: CMDDATA0_SPEC > ; # [doc = "Command Data Register 0"]
pub mod cmddata0 { # [doc = "Register `CMDDATA0` reader"]
pub type R = crate :: R < CMDDATA0_SPEC > ; # [doc = "Register `CMDDATA0` writer"]
pub type W = crate :: W < CMDDATA0_SPEC > ; # [doc = "Field `CMDDATA0_VAL` reader - A 32-bit data value is placed in this field."]
pub type CMDDATA0_VAL_R = crate :: FieldReader < u32 > ; # [doc = "Field `CMDDATA0_VAL` writer - A 32-bit data value is placed in this field."]
pub type CMDDATA0_VAL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 32 , O , u32 > ; impl R { # [doc = "Bits 0:31 - A 32-bit data value is placed in this field."]
# [inline (always)]
pub fn cmddata0_val (& self) -> CMDDATA0_VAL_R { CMDDATA0_VAL_R :: new (self . bits) } } impl W { # [doc = "Bits 0:31 - A 32-bit data value is placed in this field."]
# [inline (always)]
# [must_use]
pub fn cmddata0_val (& mut self) -> CMDDATA0_VAL_W < CMDDATA0_SPEC , 0 > { CMDDATA0_VAL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Command Data Register 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cmddata0::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cmddata0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CMDDATA0_SPEC ; impl crate :: RegisterSpec for CMDDATA0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cmddata0::R`](R) reader structure"]
impl crate :: Readable for CMDDATA0_SPEC { } # [doc = "`write(|w| ..)` method takes [`cmddata0::W`](W) writer structure"]
impl crate :: Writable for CMDDATA0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CMDDATA0 to value 0"]
impl crate :: Resettable for CMDDATA0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CMDDATA1 (rw) register accessor: Command Data Register 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cmddata1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cmddata1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cmddata1`]
module"]
pub type CMDDATA1 = crate :: Reg < cmddata1 :: CMDDATA1_SPEC > ; # [doc = "Command Data Register 1"]
pub mod cmddata1 { # [doc = "Register `CMDDATA1` reader"]
pub type R = crate :: R < CMDDATA1_SPEC > ; # [doc = "Register `CMDDATA1` writer"]
pub type W = crate :: W < CMDDATA1_SPEC > ; # [doc = "Field `CMDDATA1_VAL` reader - A 32-bit data value is placed in this field."]
pub type CMDDATA1_VAL_R = crate :: FieldReader < u32 > ; # [doc = "Field `CMDDATA1_VAL` writer - A 32-bit data value is placed in this field."]
pub type CMDDATA1_VAL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 32 , O , u32 > ; impl R { # [doc = "Bits 0:31 - A 32-bit data value is placed in this field."]
# [inline (always)]
pub fn cmddata1_val (& self) -> CMDDATA1_VAL_R { CMDDATA1_VAL_R :: new (self . bits) } } impl W { # [doc = "Bits 0:31 - A 32-bit data value is placed in this field."]
# [inline (always)]
# [must_use]
pub fn cmddata1_val (& mut self) -> CMDDATA1_VAL_W < CMDDATA1_SPEC , 0 > { CMDDATA1_VAL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Command Data Register 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cmddata1::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cmddata1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CMDDATA1_SPEC ; impl crate :: RegisterSpec for CMDDATA1_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cmddata1::R`](R) reader structure"]
impl crate :: Readable for CMDDATA1_SPEC { } # [doc = "`write(|w| ..)` method takes [`cmddata1::W`](W) writer structure"]
impl crate :: Writable for CMDDATA1_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CMDDATA1 to value 0"]
impl crate :: Resettable for CMDDATA1_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CMDWEPROTA (rw) register accessor: Command Write Erase Protect A Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cmdweprota::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cmdweprota::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cmdweprota`]
module"]
pub type CMDWEPROTA = crate :: Reg < cmdweprota :: CMDWEPROTA_SPEC > ; # [doc = "Command Write Erase Protect A Register"]
pub mod cmdweprota { # [doc = "Register `CMDWEPROTA` reader"]
pub type R = crate :: R < CMDWEPROTA_SPEC > ; # [doc = "Register `CMDWEPROTA` writer"]
pub type W = crate :: W < CMDWEPROTA_SPEC > ; # [doc = "Field `CMDWEPROTA_VAL` reader - Each bit protects 1 sector. bit \\[0\\]: When 1, sector 0 of the flash memory will be protected from program and erase. bit \\[1\\]: When 1, sector 1 of the flash memory will be protected from program and erase. : : bit \\[31\\]: When 1, sector 31 of the flash memory will be protected from program and erase."]
pub type CMDWEPROTA_VAL_R = crate :: FieldReader < u32 > ; # [doc = "Field `CMDWEPROTA_VAL` writer - Each bit protects 1 sector. bit \\[0\\]: When 1, sector 0 of the flash memory will be protected from program and erase. bit \\[1\\]: When 1, sector 1 of the flash memory will be protected from program and erase. : : bit \\[31\\]: When 1, sector 31 of the flash memory will be protected from program and erase."]
pub type CMDWEPROTA_VAL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 32 , O , u32 > ; impl R { # [doc = "Bits 0:31 - Each bit protects 1 sector. bit \\[0\\]: When 1, sector 0 of the flash memory will be protected from program and erase. bit \\[1\\]: When 1, sector 1 of the flash memory will be protected from program and erase. : : bit \\[31\\]: When 1, sector 31 of the flash memory will be protected from program and erase."]
# [inline (always)]
pub fn cmdweprota_val (& self) -> CMDWEPROTA_VAL_R { CMDWEPROTA_VAL_R :: new (self . bits) } } impl W { # [doc = "Bits 0:31 - Each bit protects 1 sector. bit \\[0\\]: When 1, sector 0 of the flash memory will be protected from program and erase. bit \\[1\\]: When 1, sector 1 of the flash memory will be protected from program and erase. : : bit \\[31\\]: When 1, sector 31 of the flash memory will be protected from program and erase."]
# [inline (always)]
# [must_use]
pub fn cmdweprota_val (& mut self) -> CMDWEPROTA_VAL_W < CMDWEPROTA_SPEC , 0 > { CMDWEPROTA_VAL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Command Write Erase Protect A Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cmdweprota::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cmdweprota::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CMDWEPROTA_SPEC ; impl crate :: RegisterSpec for CMDWEPROTA_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cmdweprota::R`](R) reader structure"]
impl crate :: Readable for CMDWEPROTA_SPEC { } # [doc = "`write(|w| ..)` method takes [`cmdweprota::W`](W) writer structure"]
impl crate :: Writable for CMDWEPROTA_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CMDWEPROTA to value 0"]
impl crate :: Resettable for CMDWEPROTA_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CMDWEPROTB (rw) register accessor: Command Write Erase Protect B Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cmdweprotb::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cmdweprotb::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cmdweprotb`]
module"]
pub type CMDWEPROTB = crate :: Reg < cmdweprotb :: CMDWEPROTB_SPEC > ; # [doc = "Command Write Erase Protect B Register"]
pub mod cmdweprotb { # [doc = "Register `CMDWEPROTB` reader"]
pub type R = crate :: R < CMDWEPROTB_SPEC > ; # [doc = "Register `CMDWEPROTB` writer"]
pub type W = crate :: W < CMDWEPROTB_SPEC > ; # [doc = "Field `CMDWEPROTB_VAL` reader - Each bit protects a group of 8 sectors. When a bit is 1, the associated 8 sectors in the flash will be protected from program and erase. A maximum of 256 sectors can be protected with this register."]
pub type CMDWEPROTB_VAL_R = crate :: FieldReader ; # [doc = "Field `CMDWEPROTB_VAL` writer - Each bit protects a group of 8 sectors. When a bit is 1, the associated 8 sectors in the flash will be protected from program and erase. A maximum of 256 sectors can be protected with this register."]
pub type CMDWEPROTB_VAL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 4 , O > ; impl R { # [doc = "Bits 0:3 - Each bit protects a group of 8 sectors. When a bit is 1, the associated 8 sectors in the flash will be protected from program and erase. A maximum of 256 sectors can be protected with this register."]
# [inline (always)]
pub fn cmdweprotb_val (& self) -> CMDWEPROTB_VAL_R { CMDWEPROTB_VAL_R :: new ((self . bits & 0x0f) as u8) } } impl W { # [doc = "Bits 0:3 - Each bit protects a group of 8 sectors. When a bit is 1, the associated 8 sectors in the flash will be protected from program and erase. A maximum of 256 sectors can be protected with this register."]
# [inline (always)]
# [must_use]
pub fn cmdweprotb_val (& mut self) -> CMDWEPROTB_VAL_W < CMDWEPROTB_SPEC , 0 > { CMDWEPROTB_VAL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Command Write Erase Protect B Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cmdweprotb::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cmdweprotb::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CMDWEPROTB_SPEC ; impl crate :: RegisterSpec for CMDWEPROTB_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cmdweprotb::R`](R) reader structure"]
impl crate :: Readable for CMDWEPROTB_SPEC { } # [doc = "`write(|w| ..)` method takes [`cmdweprotb::W`](W) writer structure"]
impl crate :: Writable for CMDWEPROTB_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CMDWEPROTB to value 0"]
impl crate :: Resettable for CMDWEPROTB_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CMDWEPROTNM (rw) register accessor: Command Write Erase Protect Non-Main Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cmdweprotnm::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cmdweprotnm::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cmdweprotnm`]
module"]
pub type CMDWEPROTNM = crate :: Reg < cmdweprotnm :: CMDWEPROTNM_SPEC > ; # [doc = "Command Write Erase Protect Non-Main Register"]
pub mod cmdweprotnm { # [doc = "Register `CMDWEPROTNM` reader"]
pub type R = crate :: R < CMDWEPROTNM_SPEC > ; # [doc = "Register `CMDWEPROTNM` writer"]
pub type W = crate :: W < CMDWEPROTNM_SPEC > ; # [doc = "Field `CMDWEPROTNM_VAL` reader - Each bit protects 1 sector. bit \\[0\\]: When 1, sector 0 of the non-main region will be protected from program and erase. bit \\[1\\]: When 1, sector 1 of the non-main region will be protected from program and erase. : : bit \\[31\\]: When 1, sector 31 of the non-main will be protected from program and erase."]
pub type CMDWEPROTNM_VAL_R = crate :: BitReader ; # [doc = "Field `CMDWEPROTNM_VAL` writer - Each bit protects 1 sector. bit \\[0\\]: When 1, sector 0 of the non-main region will be protected from program and erase. bit \\[1\\]: When 1, sector 1 of the non-main region will be protected from program and erase. : : bit \\[31\\]: When 1, sector 31 of the non-main will be protected from program and erase."]
pub type CMDWEPROTNM_VAL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O > ; impl R { # [doc = "Bit 0 - Each bit protects 1 sector. bit \\[0\\]: When 1, sector 0 of the non-main region will be protected from program and erase. bit \\[1\\]: When 1, sector 1 of the non-main region will be protected from program and erase. : : bit \\[31\\]: When 1, sector 31 of the non-main will be protected from program and erase."]
# [inline (always)]
pub fn cmdweprotnm_val (& self) -> CMDWEPROTNM_VAL_R { CMDWEPROTNM_VAL_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - Each bit protects 1 sector. bit \\[0\\]: When 1, sector 0 of the non-main region will be protected from program and erase. bit \\[1\\]: When 1, sector 1 of the non-main region will be protected from program and erase. : : bit \\[31\\]: When 1, sector 31 of the non-main will be protected from program and erase."]
# [inline (always)]
# [must_use]
pub fn cmdweprotnm_val (& mut self) -> CMDWEPROTNM_VAL_W < CMDWEPROTNM_SPEC , 0 > { CMDWEPROTNM_VAL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Command Write Erase Protect Non-Main Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cmdweprotnm::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cmdweprotnm::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CMDWEPROTNM_SPEC ; impl crate :: RegisterSpec for CMDWEPROTNM_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cmdweprotnm::R`](R) reader structure"]
impl crate :: Readable for CMDWEPROTNM_SPEC { } # [doc = "`write(|w| ..)` method takes [`cmdweprotnm::W`](W) writer structure"]
impl crate :: Writable for CMDWEPROTNM_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CMDWEPROTNM to value 0"]
impl crate :: Resettable for CMDWEPROTNM_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CMDWEPROTTR (rw) register accessor: Command Write Erase Protect Trim Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cmdweprottr::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cmdweprottr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cmdweprottr`]
module"]
pub type CMDWEPROTTR = crate :: Reg < cmdweprottr :: CMDWEPROTTR_SPEC > ; # [doc = "Command Write Erase Protect Trim Register"]
pub mod cmdweprottr { # [doc = "Register `CMDWEPROTTR` reader"]
pub type R = crate :: R < CMDWEPROTTR_SPEC > ; # [doc = "Register `CMDWEPROTTR` writer"]
pub type W = crate :: W < CMDWEPROTTR_SPEC > ; # [doc = "Field `CMDWEPROTTR_VAL` reader - Each bit protects 1 sector. bit \\[0\\]: When 1, sector 0 of the engr region will be protected from program and erase. bit \\[1\\]: When 1, sector 1 of the engr region will be protected from program and erase. : : bit \\[31\\]: When 1, sector 31 of the engr region will be protected from program and erase."]
pub type CMDWEPROTTR_VAL_R = crate :: BitReader ; # [doc = "Field `CMDWEPROTTR_VAL` writer - Each bit protects 1 sector. bit \\[0\\]: When 1, sector 0 of the engr region will be protected from program and erase. bit \\[1\\]: When 1, sector 1 of the engr region will be protected from program and erase. : : bit \\[31\\]: When 1, sector 31 of the engr region will be protected from program and erase."]
pub type CMDWEPROTTR_VAL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O > ; impl R { # [doc = "Bit 0 - Each bit protects 1 sector. bit \\[0\\]: When 1, sector 0 of the engr region will be protected from program and erase. bit \\[1\\]: When 1, sector 1 of the engr region will be protected from program and erase. : : bit \\[31\\]: When 1, sector 31 of the engr region will be protected from program and erase."]
# [inline (always)]
pub fn cmdweprottr_val (& self) -> CMDWEPROTTR_VAL_R { CMDWEPROTTR_VAL_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - Each bit protects 1 sector. bit \\[0\\]: When 1, sector 0 of the engr region will be protected from program and erase. bit \\[1\\]: When 1, sector 1 of the engr region will be protected from program and erase. : : bit \\[31\\]: When 1, sector 31 of the engr region will be protected from program and erase."]
# [inline (always)]
# [must_use]
pub fn cmdweprottr_val (& mut self) -> CMDWEPROTTR_VAL_W < CMDWEPROTTR_SPEC , 0 > { CMDWEPROTTR_VAL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Command Write Erase Protect Trim Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cmdweprottr::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cmdweprottr::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CMDWEPROTTR_SPEC ; impl crate :: RegisterSpec for CMDWEPROTTR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cmdweprottr::R`](R) reader structure"]
impl crate :: Readable for CMDWEPROTTR_SPEC { } # [doc = "`write(|w| ..)` method takes [`cmdweprottr::W`](W) writer structure"]
impl crate :: Writable for CMDWEPROTTR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CMDWEPROTTR to value 0"]
impl crate :: Resettable for CMDWEPROTTR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CMDWEPROTEN (rw) register accessor: Command Write Erase Protect Engr Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cmdweproten::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cmdweproten::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cmdweproten`]
module"]
pub type CMDWEPROTEN = crate :: Reg < cmdweproten :: CMDWEPROTEN_SPEC > ; # [doc = "Command Write Erase Protect Engr Register"]
pub mod cmdweproten { # [doc = "Register `CMDWEPROTEN` reader"]
pub type R = crate :: R < CMDWEPROTEN_SPEC > ; # [doc = "Register `CMDWEPROTEN` writer"]
pub type W = crate :: W < CMDWEPROTEN_SPEC > ; # [doc = "Field `CMDWEPROTEN_VAL` reader - Each bit protects 1 sector. bit \\[0\\]: When 1, sector 0 of the engr region will be protected from program and erase. bit \\[1\\]: When 1, sector 1 of the engr region will be protected from program and erase. : : bit \\[31\\]: When 1, sector 31 of the engr region will be protected from program and erase."]
pub type CMDWEPROTEN_VAL_R = crate :: FieldReader ; # [doc = "Field `CMDWEPROTEN_VAL` writer - Each bit protects 1 sector. bit \\[0\\]: When 1, sector 0 of the engr region will be protected from program and erase. bit \\[1\\]: When 1, sector 1 of the engr region will be protected from program and erase. : : bit \\[31\\]: When 1, sector 31 of the engr region will be protected from program and erase."]
pub type CMDWEPROTEN_VAL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O > ; impl R { # [doc = "Bits 0:1 - Each bit protects 1 sector. bit \\[0\\]: When 1, sector 0 of the engr region will be protected from program and erase. bit \\[1\\]: When 1, sector 1 of the engr region will be protected from program and erase. : : bit \\[31\\]: When 1, sector 31 of the engr region will be protected from program and erase."]
# [inline (always)]
pub fn cmdweproten_val (& self) -> CMDWEPROTEN_VAL_R { CMDWEPROTEN_VAL_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = "Bits 0:1 - Each bit protects 1 sector. bit \\[0\\]: When 1, sector 0 of the engr region will be protected from program and erase. bit \\[1\\]: When 1, sector 1 of the engr region will be protected from program and erase. : : bit \\[31\\]: When 1, sector 31 of the engr region will be protected from program and erase."]
# [inline (always)]
# [must_use]
pub fn cmdweproten_val (& mut self) -> CMDWEPROTEN_VAL_W < CMDWEPROTEN_SPEC , 0 > { CMDWEPROTEN_VAL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Command Write Erase Protect Engr Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cmdweproten::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cmdweproten::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CMDWEPROTEN_SPEC ; impl crate :: RegisterSpec for CMDWEPROTEN_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cmdweproten::R`](R) reader structure"]
impl crate :: Readable for CMDWEPROTEN_SPEC { } # [doc = "`write(|w| ..)` method takes [`cmdweproten::W`](W) writer structure"]
impl crate :: Writable for CMDWEPROTEN_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CMDWEPROTEN to value 0"]
impl crate :: Resettable for CMDWEPROTEN_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CFGCMD (rw) register accessor: Command Configuration Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cfgcmd::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cfgcmd::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cfgcmd`]
module"]
pub type CFGCMD = crate :: Reg < cfgcmd :: CFGCMD_SPEC > ; # [doc = "Command Configuration Register"]
pub mod cfgcmd { # [doc = "Register `CFGCMD` reader"]
pub type R = crate :: R < CFGCMD_SPEC > ; # [doc = "Register `CFGCMD` writer"]
pub type W = crate :: W < CFGCMD_SPEC > ; # [doc = "Field `CFGCMD_WAITSTATE` reader - Wait State setting for program verify, erase verify and read verify"]
pub type CFGCMD_WAITSTATE_R = crate :: FieldReader ; # [doc = "Field `CFGCMD_WAITSTATE` writer - Wait State setting for program verify, erase verify and read verify"]
pub type CFGCMD_WAITSTATE_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 4 , O > ; impl R { # [doc = "Bits 0:3 - Wait State setting for program verify, erase verify and read verify"]
# [inline (always)]
pub fn cfgcmd_waitstate (& self) -> CFGCMD_WAITSTATE_R { CFGCMD_WAITSTATE_R :: new ((self . bits & 0x0f) as u8) } } impl W { # [doc = "Bits 0:3 - Wait State setting for program verify, erase verify and read verify"]
# [inline (always)]
# [must_use]
pub fn cfgcmd_waitstate (& mut self) -> CFGCMD_WAITSTATE_W < CFGCMD_SPEC , 0 > { CFGCMD_WAITSTATE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Command Configuration Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cfgcmd::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cfgcmd::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CFGCMD_SPEC ; impl crate :: RegisterSpec for CFGCMD_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cfgcmd::R`](R) reader structure"]
impl crate :: Readable for CFGCMD_SPEC { } # [doc = "`write(|w| ..)` method takes [`cfgcmd::W`](W) writer structure"]
impl crate :: Writable for CFGCMD_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CFGCMD to value 0"]
impl crate :: Resettable for CFGCMD_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CFGPCNT (rw) register accessor: Pulse Counter Configuration Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cfgpcnt::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cfgpcnt::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cfgpcnt`]
module"]
pub type CFGPCNT = crate :: Reg < cfgpcnt :: CFGPCNT_SPEC > ; # [doc = "Pulse Counter Configuration Register"]
pub mod cfgpcnt { # [doc = "Register `CFGPCNT` reader"]
pub type R = crate :: R < CFGPCNT_SPEC > ; # [doc = "Register `CFGPCNT` writer"]
pub type W = crate :: W < CFGPCNT_SPEC > ; # [doc = "Field `CFGPCNT_MAXPCNTOVR` reader - Override hard-wired maximum pulse count. If MAXERSPCNTOVR is not set, then setting this value alone will override the max pulse count for both program and erase. If MAXERSPCNTOVR is set, then this bit will only control the max pulse count setting for program. By default, this bit is 0, and a hard-wired max pulse count is used."]
pub type CFGPCNT_MAXPCNTOVR_R = crate :: BitReader < CFGPCNT_MAXPCNTOVR_A > ; # [doc = "Override hard-wired maximum pulse count. If MAXERSPCNTOVR is not set, then setting this value alone will override the max pulse count for both program and erase. If MAXERSPCNTOVR is set, then this bit will only control the max pulse count setting for program. By default, this bit is 0, and a hard-wired max pulse count is used.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CFGPCNT_MAXPCNTOVR_A { # [doc = "0: DEFAULT"]
CFGPCNT_MAXPCNTOVR_DEFAULT = 0 , # [doc = "1: OVERRIDE"]
CFGPCNT_MAXPCNTOVR_OVERRIDE = 1 , } impl From < CFGPCNT_MAXPCNTOVR_A > for bool { # [inline (always)]
fn from (variant : CFGPCNT_MAXPCNTOVR_A) -> Self { variant as u8 != 0 } } impl CFGPCNT_MAXPCNTOVR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CFGPCNT_MAXPCNTOVR_A { match self . bits { false => CFGPCNT_MAXPCNTOVR_A :: CFGPCNT_MAXPCNTOVR_DEFAULT , true => CFGPCNT_MAXPCNTOVR_A :: CFGPCNT_MAXPCNTOVR_OVERRIDE , } } # [doc = "DEFAULT"]
# [inline (always)]
pub fn is_cfgpcnt_maxpcntovr_default (& self) -> bool { * self == CFGPCNT_MAXPCNTOVR_A :: CFGPCNT_MAXPCNTOVR_DEFAULT } # [doc = "OVERRIDE"]
# [inline (always)]
pub fn is_cfgpcnt_maxpcntovr_override (& self) -> bool { * self == CFGPCNT_MAXPCNTOVR_A :: CFGPCNT_MAXPCNTOVR_OVERRIDE } } # [doc = "Field `CFGPCNT_MAXPCNTOVR` writer - Override hard-wired maximum pulse count. If MAXERSPCNTOVR is not set, then setting this value alone will override the max pulse count for both program and erase. If MAXERSPCNTOVR is set, then this bit will only control the max pulse count setting for program. By default, this bit is 0, and a hard-wired max pulse count is used."]
pub type CFGPCNT_MAXPCNTOVR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CFGPCNT_MAXPCNTOVR_A > ; impl < 'a , REG , const O : u8 > CFGPCNT_MAXPCNTOVR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DEFAULT"]
# [inline (always)]
pub fn cfgpcnt_maxpcntovr_default (self) -> & 'a mut crate :: W < REG > { self . variant (CFGPCNT_MAXPCNTOVR_A :: CFGPCNT_MAXPCNTOVR_DEFAULT) } # [doc = "OVERRIDE"]
# [inline (always)]
pub fn cfgpcnt_maxpcntovr_override (self) -> & 'a mut crate :: W < REG > { self . variant (CFGPCNT_MAXPCNTOVR_A :: CFGPCNT_MAXPCNTOVR_OVERRIDE) } } # [doc = "Field `CFGPCNT_MAXPCNTVAL` reader - Override maximum pulse counter with this value. If MAXPCNTOVR = 0, then this field is ignored. If MAXPCNTOVR = 1 and MAXERSPCNTOVR = 0, then this value will be used to override the max pulse count for both program and erase. Full max value will be {4'h0, MAXPCNTVAL} . If MAXPCNTOVR = 1 and MAXERSPCNTOVR = 1, then this value will be used to override the max pulse count for program only. Full max value will be {4'h0, MAXPCNTVAL}."]
pub type CFGPCNT_MAXPCNTVAL_R = crate :: FieldReader ; # [doc = "Field `CFGPCNT_MAXPCNTVAL` writer - Override maximum pulse counter with this value. If MAXPCNTOVR = 0, then this field is ignored. If MAXPCNTOVR = 1 and MAXERSPCNTOVR = 0, then this value will be used to override the max pulse count for both program and erase. Full max value will be {4'h0, MAXPCNTVAL} . If MAXPCNTOVR = 1 and MAXERSPCNTOVR = 1, then this value will be used to override the max pulse count for program only. Full max value will be {4'h0, MAXPCNTVAL}."]
pub type CFGPCNT_MAXPCNTVAL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O > ; impl R { # [doc = "Bit 0 - Override hard-wired maximum pulse count. If MAXERSPCNTOVR is not set, then setting this value alone will override the max pulse count for both program and erase. If MAXERSPCNTOVR is set, then this bit will only control the max pulse count setting for program. By default, this bit is 0, and a hard-wired max pulse count is used."]
# [inline (always)]
pub fn cfgpcnt_maxpcntovr (& self) -> CFGPCNT_MAXPCNTOVR_R { CFGPCNT_MAXPCNTOVR_R :: new ((self . bits & 1) != 0) } # [doc = "Bits 4:11 - Override maximum pulse counter with this value. If MAXPCNTOVR = 0, then this field is ignored. If MAXPCNTOVR = 1 and MAXERSPCNTOVR = 0, then this value will be used to override the max pulse count for both program and erase. Full max value will be {4'h0, MAXPCNTVAL} . If MAXPCNTOVR = 1 and MAXERSPCNTOVR = 1, then this value will be used to override the max pulse count for program only. Full max value will be {4'h0, MAXPCNTVAL}."]
# [inline (always)]
pub fn cfgpcnt_maxpcntval (& self) -> CFGPCNT_MAXPCNTVAL_R { CFGPCNT_MAXPCNTVAL_R :: new (((self . bits >> 4) & 0xff) as u8) } } impl W { # [doc = "Bit 0 - Override hard-wired maximum pulse count. If MAXERSPCNTOVR is not set, then setting this value alone will override the max pulse count for both program and erase. If MAXERSPCNTOVR is set, then this bit will only control the max pulse count setting for program. By default, this bit is 0, and a hard-wired max pulse count is used."]
# [inline (always)]
# [must_use]
pub fn cfgpcnt_maxpcntovr (& mut self) -> CFGPCNT_MAXPCNTOVR_W < CFGPCNT_SPEC , 0 > { CFGPCNT_MAXPCNTOVR_W :: new (self) } # [doc = "Bits 4:11 - Override maximum pulse counter with this value. If MAXPCNTOVR = 0, then this field is ignored. If MAXPCNTOVR = 1 and MAXERSPCNTOVR = 0, then this value will be used to override the max pulse count for both program and erase. Full max value will be {4'h0, MAXPCNTVAL} . If MAXPCNTOVR = 1 and MAXERSPCNTOVR = 1, then this value will be used to override the max pulse count for program only. Full max value will be {4'h0, MAXPCNTVAL}."]
# [inline (always)]
# [must_use]
pub fn cfgpcnt_maxpcntval (& mut self) -> CFGPCNT_MAXPCNTVAL_W < CFGPCNT_SPEC , 4 > { CFGPCNT_MAXPCNTVAL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Pulse Counter Configuration Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cfgpcnt::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cfgpcnt::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CFGPCNT_SPEC ; impl crate :: RegisterSpec for CFGPCNT_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cfgpcnt::R`](R) reader structure"]
impl crate :: Readable for CFGPCNT_SPEC { } # [doc = "`write(|w| ..)` method takes [`cfgpcnt::W`](W) writer structure"]
impl crate :: Writable for CFGPCNT_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CFGPCNT to value 0"]
impl crate :: Resettable for CFGPCNT_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "STATCMD (r) register accessor: Command Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`statcmd::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@statcmd`]
module"]
pub type STATCMD = crate :: Reg < statcmd :: STATCMD_SPEC > ; # [doc = "Command Status Register"]
pub mod statcmd { # [doc = "Register `STATCMD` reader"]
pub type R = crate :: R < STATCMD_SPEC > ; # [doc = "Field `STATCMD_CMDDONE` reader - Command Done"]
pub type STATCMD_CMDDONE_R = crate :: BitReader < STATCMD_CMDDONE_A > ; # [doc = "Command Done\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STATCMD_CMDDONE_A { # [doc = "0: STATNOTDONE"]
STATCMD_CMDDONE_STATNOTDONE = 0 , # [doc = "1: STATDONE"]
STATCMD_CMDDONE_STATDONE = 1 , } impl From < STATCMD_CMDDONE_A > for bool { # [inline (always)]
fn from (variant : STATCMD_CMDDONE_A) -> Self { variant as u8 != 0 } } impl STATCMD_CMDDONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STATCMD_CMDDONE_A { match self . bits { false => STATCMD_CMDDONE_A :: STATCMD_CMDDONE_STATNOTDONE , true => STATCMD_CMDDONE_A :: STATCMD_CMDDONE_STATDONE , } } # [doc = "STATNOTDONE"]
# [inline (always)]
pub fn is_statcmd_cmddone_statnotdone (& self) -> bool { * self == STATCMD_CMDDONE_A :: STATCMD_CMDDONE_STATNOTDONE } # [doc = "STATDONE"]
# [inline (always)]
pub fn is_statcmd_cmddone_statdone (& self) -> bool { * self == STATCMD_CMDDONE_A :: STATCMD_CMDDONE_STATDONE } } # [doc = "Field `STATCMD_CMDPASS` reader - Command Pass - valid when CMD_DONE field is 1"]
pub type STATCMD_CMDPASS_R = crate :: BitReader < STATCMD_CMDPASS_A > ; # [doc = "Command Pass - valid when CMD_DONE field is 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STATCMD_CMDPASS_A { # [doc = "0: STATFAIL"]
STATCMD_CMDPASS_STATFAIL = 0 , # [doc = "1: STATPASS"]
STATCMD_CMDPASS_STATPASS = 1 , } impl From < STATCMD_CMDPASS_A > for bool { # [inline (always)]
fn from (variant : STATCMD_CMDPASS_A) -> Self { variant as u8 != 0 } } impl STATCMD_CMDPASS_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STATCMD_CMDPASS_A { match self . bits { false => STATCMD_CMDPASS_A :: STATCMD_CMDPASS_STATFAIL , true => STATCMD_CMDPASS_A :: STATCMD_CMDPASS_STATPASS , } } # [doc = "STATFAIL"]
# [inline (always)]
pub fn is_statcmd_cmdpass_statfail (& self) -> bool { * self == STATCMD_CMDPASS_A :: STATCMD_CMDPASS_STATFAIL } # [doc = "STATPASS"]
# [inline (always)]
pub fn is_statcmd_cmdpass_statpass (& self) -> bool { * self == STATCMD_CMDPASS_A :: STATCMD_CMDPASS_STATPASS } } # [doc = "Field `STATCMD_CMDINPROGRESS` reader - Command In Progress"]
pub type STATCMD_CMDINPROGRESS_R = crate :: BitReader < STATCMD_CMDINPROGRESS_A > ; # [doc = "Command In Progress\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STATCMD_CMDINPROGRESS_A { # [doc = "0: STATCOMPLETE"]
STATCMD_CMDINPROGRESS_STATCOMPLETE = 0 , # [doc = "1: STATINPROGRESS"]
STATCMD_CMDINPROGRESS_STATINPROGRESS = 1 , } impl From < STATCMD_CMDINPROGRESS_A > for bool { # [inline (always)]
fn from (variant : STATCMD_CMDINPROGRESS_A) -> Self { variant as u8 != 0 } } impl STATCMD_CMDINPROGRESS_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STATCMD_CMDINPROGRESS_A { match self . bits { false => STATCMD_CMDINPROGRESS_A :: STATCMD_CMDINPROGRESS_STATCOMPLETE , true => STATCMD_CMDINPROGRESS_A :: STATCMD_CMDINPROGRESS_STATINPROGRESS , } } # [doc = "STATCOMPLETE"]
# [inline (always)]
pub fn is_statcmd_cmdinprogress_statcomplete (& self) -> bool { * self == STATCMD_CMDINPROGRESS_A :: STATCMD_CMDINPROGRESS_STATCOMPLETE } # [doc = "STATINPROGRESS"]
# [inline (always)]
pub fn is_statcmd_cmdinprogress_statinprogress (& self) -> bool { * self == STATCMD_CMDINPROGRESS_A :: STATCMD_CMDINPROGRESS_STATINPROGRESS } } # [doc = "Field `STATCMD_FAILWEPROT` reader - Command failed due to Write/Erase Protect Sector Violation"]
pub type STATCMD_FAILWEPROT_R = crate :: BitReader < STATCMD_FAILWEPROT_A > ; # [doc = "Command failed due to Write/Erase Protect Sector Violation\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STATCMD_FAILWEPROT_A { # [doc = "0: STATNOFAIL"]
STATCMD_FAILWEPROT_STATNOFAIL = 0 , # [doc = "1: STATFAIL"]
STATCMD_FAILWEPROT_STATFAIL = 1 , } impl From < STATCMD_FAILWEPROT_A > for bool { # [inline (always)]
fn from (variant : STATCMD_FAILWEPROT_A) -> Self { variant as u8 != 0 } } impl STATCMD_FAILWEPROT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STATCMD_FAILWEPROT_A { match self . bits { false => STATCMD_FAILWEPROT_A :: STATCMD_FAILWEPROT_STATNOFAIL , true => STATCMD_FAILWEPROT_A :: STATCMD_FAILWEPROT_STATFAIL , } } # [doc = "STATNOFAIL"]
# [inline (always)]
pub fn is_statcmd_failweprot_statnofail (& self) -> bool { * self == STATCMD_FAILWEPROT_A :: STATCMD_FAILWEPROT_STATNOFAIL } # [doc = "STATFAIL"]
# [inline (always)]
pub fn is_statcmd_failweprot_statfail (& self) -> bool { * self == STATCMD_FAILWEPROT_A :: STATCMD_FAILWEPROT_STATFAIL } } # [doc = "Field `STATCMD_FAILVERIFY` reader - Command failed due to verify error"]
pub type STATCMD_FAILVERIFY_R = crate :: BitReader < STATCMD_FAILVERIFY_A > ; # [doc = "Command failed due to verify error\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STATCMD_FAILVERIFY_A { # [doc = "0: STATNOFAIL"]
STATCMD_FAILVERIFY_STATNOFAIL = 0 , # [doc = "1: STATFAIL"]
STATCMD_FAILVERIFY_STATFAIL = 1 , } impl From < STATCMD_FAILVERIFY_A > for bool { # [inline (always)]
fn from (variant : STATCMD_FAILVERIFY_A) -> Self { variant as u8 != 0 } } impl STATCMD_FAILVERIFY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STATCMD_FAILVERIFY_A { match self . bits { false => STATCMD_FAILVERIFY_A :: STATCMD_FAILVERIFY_STATNOFAIL , true => STATCMD_FAILVERIFY_A :: STATCMD_FAILVERIFY_STATFAIL , } } # [doc = "STATNOFAIL"]
# [inline (always)]
pub fn is_statcmd_failverify_statnofail (& self) -> bool { * self == STATCMD_FAILVERIFY_A :: STATCMD_FAILVERIFY_STATNOFAIL } # [doc = "STATFAIL"]
# [inline (always)]
pub fn is_statcmd_failverify_statfail (& self) -> bool { * self == STATCMD_FAILVERIFY_A :: STATCMD_FAILVERIFY_STATFAIL } } # [doc = "Field `STATCMD_FAILILLADDR` reader - Command failed due to the use of an illegal address"]
pub type STATCMD_FAILILLADDR_R = crate :: BitReader < STATCMD_FAILILLADDR_A > ; # [doc = "Command failed due to the use of an illegal address\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STATCMD_FAILILLADDR_A { # [doc = "0: STATNOFAIL"]
STATCMD_FAILILLADDR_STATNOFAIL = 0 , # [doc = "1: STATFAIL"]
STATCMD_FAILILLADDR_STATFAIL = 1 , } impl From < STATCMD_FAILILLADDR_A > for bool { # [inline (always)]
fn from (variant : STATCMD_FAILILLADDR_A) -> Self { variant as u8 != 0 } } impl STATCMD_FAILILLADDR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STATCMD_FAILILLADDR_A { match self . bits { false => STATCMD_FAILILLADDR_A :: STATCMD_FAILILLADDR_STATNOFAIL , true => STATCMD_FAILILLADDR_A :: STATCMD_FAILILLADDR_STATFAIL , } } # [doc = "STATNOFAIL"]
# [inline (always)]
pub fn is_statcmd_faililladdr_statnofail (& self) -> bool { * self == STATCMD_FAILILLADDR_A :: STATCMD_FAILILLADDR_STATNOFAIL } # [doc = "STATFAIL"]
# [inline (always)]
pub fn is_statcmd_faililladdr_statfail (& self) -> bool { * self == STATCMD_FAILILLADDR_A :: STATCMD_FAILILLADDR_STATFAIL } } # [doc = "Field `STATCMD_FAILMODE` reader - Command failed because a bank has been set to a mode other than READ. Program and Erase commands cannot be initiated unless all banks are in READ mode."]
pub type STATCMD_FAILMODE_R = crate :: BitReader < STATCMD_FAILMODE_A > ; # [doc = "Command failed because a bank has been set to a mode other than READ. Program and Erase commands cannot be initiated unless all banks are in READ mode.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STATCMD_FAILMODE_A { # [doc = "0: STATNOFAIL"]
STATCMD_FAILMODE_STATNOFAIL = 0 , # [doc = "1: STATFAIL"]
STATCMD_FAILMODE_STATFAIL = 1 , } impl From < STATCMD_FAILMODE_A > for bool { # [inline (always)]
fn from (variant : STATCMD_FAILMODE_A) -> Self { variant as u8 != 0 } } impl STATCMD_FAILMODE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STATCMD_FAILMODE_A { match self . bits { false => STATCMD_FAILMODE_A :: STATCMD_FAILMODE_STATNOFAIL , true => STATCMD_FAILMODE_A :: STATCMD_FAILMODE_STATFAIL , } } # [doc = "STATNOFAIL"]
# [inline (always)]
pub fn is_statcmd_failmode_statnofail (& self) -> bool { * self == STATCMD_FAILMODE_A :: STATCMD_FAILMODE_STATNOFAIL } # [doc = "STATFAIL"]
# [inline (always)]
pub fn is_statcmd_failmode_statfail (& self) -> bool { * self == STATCMD_FAILMODE_A :: STATCMD_FAILMODE_STATFAIL } } # [doc = "Field `STATCMD_FAILINVDATA` reader - Program command failed because an attempt was made to program a stored 0 value to a 1."]
pub type STATCMD_FAILINVDATA_R = crate :: BitReader < STATCMD_FAILINVDATA_A > ; # [doc = "Program command failed because an attempt was made to program a stored 0 value to a 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STATCMD_FAILINVDATA_A { # [doc = "0: STATNOFAIL"]
STATCMD_FAILINVDATA_STATNOFAIL = 0 , # [doc = "1: STATFAIL"]
STATCMD_FAILINVDATA_STATFAIL = 1 , } impl From < STATCMD_FAILINVDATA_A > for bool { # [inline (always)]
fn from (variant : STATCMD_FAILINVDATA_A) -> Self { variant as u8 != 0 } } impl STATCMD_FAILINVDATA_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STATCMD_FAILINVDATA_A { match self . bits { false => STATCMD_FAILINVDATA_A :: STATCMD_FAILINVDATA_STATNOFAIL , true => STATCMD_FAILINVDATA_A :: STATCMD_FAILINVDATA_STATFAIL , } } # [doc = "STATNOFAIL"]
# [inline (always)]
pub fn is_statcmd_failinvdata_statnofail (& self) -> bool { * self == STATCMD_FAILINVDATA_A :: STATCMD_FAILINVDATA_STATNOFAIL } # [doc = "STATFAIL"]
# [inline (always)]
pub fn is_statcmd_failinvdata_statfail (& self) -> bool { * self == STATCMD_FAILINVDATA_A :: STATCMD_FAILINVDATA_STATFAIL } } # [doc = "Field `STATCMD_FAILMISC` reader - Command failed due to error other than write/erase protect violation or verify error. This is an extra bit in case a new failure mechanism is added which requires a status bit."]
pub type STATCMD_FAILMISC_R = crate :: BitReader < STATCMD_FAILMISC_A > ; # [doc = "Command failed due to error other than write/erase protect violation or verify error. This is an extra bit in case a new failure mechanism is added which requires a status bit.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STATCMD_FAILMISC_A { # [doc = "0: STATNOFAIL"]
STATCMD_FAILMISC_STATNOFAIL = 0 , # [doc = "1: STATFAIL"]
STATCMD_FAILMISC_STATFAIL = 1 , } impl From < STATCMD_FAILMISC_A > for bool { # [inline (always)]
fn from (variant : STATCMD_FAILMISC_A) -> Self { variant as u8 != 0 } } impl STATCMD_FAILMISC_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STATCMD_FAILMISC_A { match self . bits { false => STATCMD_FAILMISC_A :: STATCMD_FAILMISC_STATNOFAIL , true => STATCMD_FAILMISC_A :: STATCMD_FAILMISC_STATFAIL , } } # [doc = "STATNOFAIL"]
# [inline (always)]
pub fn is_statcmd_failmisc_statnofail (& self) -> bool { * self == STATCMD_FAILMISC_A :: STATCMD_FAILMISC_STATNOFAIL } # [doc = "STATFAIL"]
# [inline (always)]
pub fn is_statcmd_failmisc_statfail (& self) -> bool { * self == STATCMD_FAILMISC_A :: STATCMD_FAILMISC_STATFAIL } } impl R { # [doc = "Bit 0 - Command Done"]
# [inline (always)]
pub fn statcmd_cmddone (& self) -> STATCMD_CMDDONE_R { STATCMD_CMDDONE_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Command Pass - valid when CMD_DONE field is 1"]
# [inline (always)]
pub fn statcmd_cmdpass (& self) -> STATCMD_CMDPASS_R { STATCMD_CMDPASS_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Command In Progress"]
# [inline (always)]
pub fn statcmd_cmdinprogress (& self) -> STATCMD_CMDINPROGRESS_R { STATCMD_CMDINPROGRESS_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 4 - Command failed due to Write/Erase Protect Sector Violation"]
# [inline (always)]
pub fn statcmd_failweprot (& self) -> STATCMD_FAILWEPROT_R { STATCMD_FAILWEPROT_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Command failed due to verify error"]
# [inline (always)]
pub fn statcmd_failverify (& self) -> STATCMD_FAILVERIFY_R { STATCMD_FAILVERIFY_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - Command failed due to the use of an illegal address"]
# [inline (always)]
pub fn statcmd_faililladdr (& self) -> STATCMD_FAILILLADDR_R { STATCMD_FAILILLADDR_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 7 - Command failed because a bank has been set to a mode other than READ. Program and Erase commands cannot be initiated unless all banks are in READ mode."]
# [inline (always)]
pub fn statcmd_failmode (& self) -> STATCMD_FAILMODE_R { STATCMD_FAILMODE_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - Program command failed because an attempt was made to program a stored 0 value to a 1."]
# [inline (always)]
pub fn statcmd_failinvdata (& self) -> STATCMD_FAILINVDATA_R { STATCMD_FAILINVDATA_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 12 - Command failed due to error other than write/erase protect violation or verify error. This is an extra bit in case a new failure mechanism is added which requires a status bit."]
# [inline (always)]
pub fn statcmd_failmisc (& self) -> STATCMD_FAILMISC_R { STATCMD_FAILMISC_R :: new (((self . bits >> 12) & 1) != 0) } } # [doc = "Command Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`statcmd::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct STATCMD_SPEC ; impl crate :: RegisterSpec for STATCMD_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`statcmd::R`](R) reader structure"]
impl crate :: Readable for STATCMD_SPEC { } # [doc = "`reset()` method sets STATCMD to value 0"]
impl crate :: Resettable for STATCMD_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "STATADDR (r) register accessor: Address Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stataddr::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@stataddr`]
module"]
pub type STATADDR = crate :: Reg < stataddr :: STATADDR_SPEC > ; # [doc = "Address Status Register"]
pub mod stataddr { # [doc = "Register `STATADDR` reader"]
pub type R = crate :: R < STATADDR_SPEC > ; # [doc = "Field `STATADDR_BANKADDR` reader - Current Bank Address A bank offset address is stored in this register."]
pub type STATADDR_BANKADDR_R = crate :: FieldReader < u16 > ; # [doc = "Field `STATADDR_REGIONID` reader - Current Region ID A region indicator is stored in this register which represents the current flash region on which the state machine is operating."]
pub type STATADDR_REGIONID_R = crate :: FieldReader < STATADDR_REGIONID_A > ; # [doc = "Current Region ID A region indicator is stored in this register which represents the current flash region on which the state machine is operating.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum STATADDR_REGIONID_A { # [doc = "1: MAIN"]
STATADDR_REGIONID_MAIN = 1 , # [doc = "2: NONMAIN"]
STATADDR_REGIONID_NONMAIN = 2 , # [doc = "4: TRIM"]
STATADDR_REGIONID_TRIM = 4 , # [doc = "8: ENGR"]
STATADDR_REGIONID_ENGR = 8 , } impl From < STATADDR_REGIONID_A > for u8 { # [inline (always)]
fn from (variant : STATADDR_REGIONID_A) -> Self { variant as _ } } impl crate :: FieldSpec for STATADDR_REGIONID_A { type Ux = u8 ; } impl STATADDR_REGIONID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < STATADDR_REGIONID_A > { match self . bits { 1 => Some (STATADDR_REGIONID_A :: STATADDR_REGIONID_MAIN) , 2 => Some (STATADDR_REGIONID_A :: STATADDR_REGIONID_NONMAIN) , 4 => Some (STATADDR_REGIONID_A :: STATADDR_REGIONID_TRIM) , 8 => Some (STATADDR_REGIONID_A :: STATADDR_REGIONID_ENGR) , _ => None , } } # [doc = "MAIN"]
# [inline (always)]
pub fn is_stataddr_regionid_main (& self) -> bool { * self == STATADDR_REGIONID_A :: STATADDR_REGIONID_MAIN } # [doc = "NONMAIN"]
# [inline (always)]
pub fn is_stataddr_regionid_nonmain (& self) -> bool { * self == STATADDR_REGIONID_A :: STATADDR_REGIONID_NONMAIN } # [doc = "TRIM"]
# [inline (always)]
pub fn is_stataddr_regionid_trim (& self) -> bool { * self == STATADDR_REGIONID_A :: STATADDR_REGIONID_TRIM } # [doc = "ENGR"]
# [inline (always)]
pub fn is_stataddr_regionid_engr (& self) -> bool { * self == STATADDR_REGIONID_A :: STATADDR_REGIONID_ENGR } } # [doc = "Field `STATADDR_BANKID` reader - Current Bank ID A bank indicator is stored in this register which represents the current bank on which the state machine is operating. There is 1 bit per bank."]
pub type STATADDR_BANKID_R = crate :: FieldReader < STATADDR_BANKID_A > ; # [doc = "Current Bank ID A bank indicator is stored in this register which represents the current bank on which the state machine is operating. There is 1 bit per bank.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum STATADDR_BANKID_A { # [doc = "1: BANK0"]
STATADDR_BANKID_BANK0 = 1 , # [doc = "2: BANK1"]
STATADDR_BANKID_BANK1 = 2 , # [doc = "4: BANK2"]
STATADDR_BANKID_BANK2 = 4 , # [doc = "8: BANK3"]
STATADDR_BANKID_BANK3 = 8 , # [doc = "16: BANK4"]
STATADDR_BANKID_BANK4 = 16 , } impl From < STATADDR_BANKID_A > for u8 { # [inline (always)]
fn from (variant : STATADDR_BANKID_A) -> Self { variant as _ } } impl crate :: FieldSpec for STATADDR_BANKID_A { type Ux = u8 ; } impl STATADDR_BANKID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < STATADDR_BANKID_A > { match self . bits { 1 => Some (STATADDR_BANKID_A :: STATADDR_BANKID_BANK0) , 2 => Some (STATADDR_BANKID_A :: STATADDR_BANKID_BANK1) , 4 => Some (STATADDR_BANKID_A :: STATADDR_BANKID_BANK2) , 8 => Some (STATADDR_BANKID_A :: STATADDR_BANKID_BANK3) , 16 => Some (STATADDR_BANKID_A :: STATADDR_BANKID_BANK4) , _ => None , } } # [doc = "BANK0"]
# [inline (always)]
pub fn is_stataddr_bankid_bank0 (& self) -> bool { * self == STATADDR_BANKID_A :: STATADDR_BANKID_BANK0 } # [doc = "BANK1"]
# [inline (always)]
pub fn is_stataddr_bankid_bank1 (& self) -> bool { * self == STATADDR_BANKID_A :: STATADDR_BANKID_BANK1 } # [doc = "BANK2"]
# [inline (always)]
pub fn is_stataddr_bankid_bank2 (& self) -> bool { * self == STATADDR_BANKID_A :: STATADDR_BANKID_BANK2 } # [doc = "BANK3"]
# [inline (always)]
pub fn is_stataddr_bankid_bank3 (& self) -> bool { * self == STATADDR_BANKID_A :: STATADDR_BANKID_BANK3 } # [doc = "BANK4"]
# [inline (always)]
pub fn is_stataddr_bankid_bank4 (& self) -> bool { * self == STATADDR_BANKID_A :: STATADDR_BANKID_BANK4 } } impl R { # [doc = "Bits 0:15 - Current Bank Address A bank offset address is stored in this register."]
# [inline (always)]
pub fn stataddr_bankaddr (& self) -> STATADDR_BANKADDR_R { STATADDR_BANKADDR_R :: new ((self . bits & 0xffff) as u16) } # [doc = "Bits 16:20 - Current Region ID A region indicator is stored in this register which represents the current flash region on which the state machine is operating."]
# [inline (always)]
pub fn stataddr_regionid (& self) -> STATADDR_REGIONID_R { STATADDR_REGIONID_R :: new (((self . bits >> 16) & 0x1f) as u8) } # [doc = "Bits 21:25 - Current Bank ID A bank indicator is stored in this register which represents the current bank on which the state machine is operating. There is 1 bit per bank."]
# [inline (always)]
pub fn stataddr_bankid (& self) -> STATADDR_BANKID_R { STATADDR_BANKID_R :: new (((self . bits >> 21) & 0x1f) as u8) } } # [doc = "Address Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stataddr::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct STATADDR_SPEC ; impl crate :: RegisterSpec for STATADDR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`stataddr::R`](R) reader structure"]
impl crate :: Readable for STATADDR_SPEC { } # [doc = "`reset()` method sets STATADDR to value 0"]
impl crate :: Resettable for STATADDR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "STATPCNT (r) register accessor: Pulse Count Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`statpcnt::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@statpcnt`]
module"]
pub type STATPCNT = crate :: Reg < statpcnt :: STATPCNT_SPEC > ; # [doc = "Pulse Count Status Register"]
pub mod statpcnt { # [doc = "Register `STATPCNT` reader"]
pub type R = crate :: R < STATPCNT_SPEC > ; # [doc = "Field `STATPCNT_PULSECNT` reader - Current Pulse Counter Value"]
pub type STATPCNT_PULSECNT_R = crate :: FieldReader < u16 > ; impl R { # [doc = "Bits 0:11 - Current Pulse Counter Value"]
# [inline (always)]
pub fn statpcnt_pulsecnt (& self) -> STATPCNT_PULSECNT_R { STATPCNT_PULSECNT_R :: new ((self . bits & 0x0fff) as u16) } } # [doc = "Pulse Count Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`statpcnt::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct STATPCNT_SPEC ; impl crate :: RegisterSpec for STATPCNT_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`statpcnt::R`](R) reader structure"]
impl crate :: Readable for STATPCNT_SPEC { } # [doc = "`reset()` method sets STATPCNT to value 0"]
impl crate :: Resettable for STATPCNT_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "STATMODE (r) register accessor: Mode Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`statmode::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@statmode`]
module"]
pub type STATMODE = crate :: Reg < statmode :: STATMODE_SPEC > ; # [doc = "Mode Status Register"]
pub mod statmode { # [doc = "Register `STATMODE` reader"]
pub type R = crate :: R < STATMODE_SPEC > ; # [doc = "Field `STATMODE_BANKNOTINRD` reader - Bank not in read mode. Indicates which banks are not in READ mode. There is 1 bit per bank."]
pub type STATMODE_BANKNOTINRD_R = crate :: BitReader < STATMODE_BANKNOTINRD_A > ; # [doc = "Bank not in read mode. Indicates which banks are not in READ mode. There is 1 bit per bank.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STATMODE_BANKNOTINRD_A { # [doc = "1: BANK0"]
STATMODE_BANKNOTINRD_BANK0 = 1 , } impl From < STATMODE_BANKNOTINRD_A > for bool { # [inline (always)]
fn from (variant : STATMODE_BANKNOTINRD_A) -> Self { variant as u8 != 0 } } impl STATMODE_BANKNOTINRD_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < STATMODE_BANKNOTINRD_A > { match self . bits { true => Some (STATMODE_BANKNOTINRD_A :: STATMODE_BANKNOTINRD_BANK0) , _ => None , } } # [doc = "BANK0"]
# [inline (always)]
pub fn is_statmode_banknotinrd_bank0 (& self) -> bool { * self == STATMODE_BANKNOTINRD_A :: STATMODE_BANKNOTINRD_BANK0 } } # [doc = "Field `STATMODE_BANKMODE` reader - Indicates mode of bank(s) that are not in READ mode"]
pub type STATMODE_BANKMODE_R = crate :: FieldReader < STATMODE_BANKMODE_A > ; # [doc = "Indicates mode of bank(s) that are not in READ mode\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum STATMODE_BANKMODE_A { # [doc = "0: READ"]
STATMODE_BANKMODE_READ = 0 , # [doc = "2: RDMARG0"]
STATMODE_BANKMODE_RDMARG0 = 2 , # [doc = "4: RDMARG1"]
STATMODE_BANKMODE_RDMARG1 = 4 , # [doc = "6: RDMARG0B"]
STATMODE_BANKMODE_RDMARG0B = 6 , # [doc = "7: RDMARG1B"]
STATMODE_BANKMODE_RDMARG1B = 7 , # [doc = "9: PGMVER"]
STATMODE_BANKMODE_PGMVER = 9 , # [doc = "10: PGMSW"]
STATMODE_BANKMODE_PGMSW = 10 , # [doc = "11: ERASEVER"]
STATMODE_BANKMODE_ERASEVER = 11 , # [doc = "12: ERASESECT"]
STATMODE_BANKMODE_ERASESECT = 12 , # [doc = "14: PGMMW"]
STATMODE_BANKMODE_PGMMW = 14 , # [doc = "15: ERASEBNK"]
STATMODE_BANKMODE_ERASEBNK = 15 , } impl From < STATMODE_BANKMODE_A > for u8 { # [inline (always)]
fn from (variant : STATMODE_BANKMODE_A) -> Self { variant as _ } } impl crate :: FieldSpec for STATMODE_BANKMODE_A { type Ux = u8 ; } impl STATMODE_BANKMODE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < STATMODE_BANKMODE_A > { match self . bits { 0 => Some (STATMODE_BANKMODE_A :: STATMODE_BANKMODE_READ) , 2 => Some (STATMODE_BANKMODE_A :: STATMODE_BANKMODE_RDMARG0) , 4 => Some (STATMODE_BANKMODE_A :: STATMODE_BANKMODE_RDMARG1) , 6 => Some (STATMODE_BANKMODE_A :: STATMODE_BANKMODE_RDMARG0B) , 7 => Some (STATMODE_BANKMODE_A :: STATMODE_BANKMODE_RDMARG1B) , 9 => Some (STATMODE_BANKMODE_A :: STATMODE_BANKMODE_PGMVER) , 10 => Some (STATMODE_BANKMODE_A :: STATMODE_BANKMODE_PGMSW) , 11 => Some (STATMODE_BANKMODE_A :: STATMODE_BANKMODE_ERASEVER) , 12 => Some (STATMODE_BANKMODE_A :: STATMODE_BANKMODE_ERASESECT) , 14 => Some (STATMODE_BANKMODE_A :: STATMODE_BANKMODE_PGMMW) , 15 => Some (STATMODE_BANKMODE_A :: STATMODE_BANKMODE_ERASEBNK) , _ => None , } } # [doc = "READ"]
# [inline (always)]
pub fn is_statmode_bankmode_read (& self) -> bool { * self == STATMODE_BANKMODE_A :: STATMODE_BANKMODE_READ } # [doc = "RDMARG0"]
# [inline (always)]
pub fn is_statmode_bankmode_rdmarg0 (& self) -> bool { * self == STATMODE_BANKMODE_A :: STATMODE_BANKMODE_RDMARG0 } # [doc = "RDMARG1"]
# [inline (always)]
pub fn is_statmode_bankmode_rdmarg1 (& self) -> bool { * self == STATMODE_BANKMODE_A :: STATMODE_BANKMODE_RDMARG1 } # [doc = "RDMARG0B"]
# [inline (always)]
pub fn is_statmode_bankmode_rdmarg0b (& self) -> bool { * self == STATMODE_BANKMODE_A :: STATMODE_BANKMODE_RDMARG0B } # [doc = "RDMARG1B"]
# [inline (always)]
pub fn is_statmode_bankmode_rdmarg1b (& self) -> bool { * self == STATMODE_BANKMODE_A :: STATMODE_BANKMODE_RDMARG1B } # [doc = "PGMVER"]
# [inline (always)]
pub fn is_statmode_bankmode_pgmver (& self) -> bool { * self == STATMODE_BANKMODE_A :: STATMODE_BANKMODE_PGMVER } # [doc = "PGMSW"]
# [inline (always)]
pub fn is_statmode_bankmode_pgmsw (& self) -> bool { * self == STATMODE_BANKMODE_A :: STATMODE_BANKMODE_PGMSW } # [doc = "ERASEVER"]
# [inline (always)]
pub fn is_statmode_bankmode_erasever (& self) -> bool { * self == STATMODE_BANKMODE_A :: STATMODE_BANKMODE_ERASEVER } # [doc = "ERASESECT"]
# [inline (always)]
pub fn is_statmode_bankmode_erasesect (& self) -> bool { * self == STATMODE_BANKMODE_A :: STATMODE_BANKMODE_ERASESECT } # [doc = "PGMMW"]
# [inline (always)]
pub fn is_statmode_bankmode_pgmmw (& self) -> bool { * self == STATMODE_BANKMODE_A :: STATMODE_BANKMODE_PGMMW } # [doc = "ERASEBNK"]
# [inline (always)]
pub fn is_statmode_bankmode_erasebnk (& self) -> bool { * self == STATMODE_BANKMODE_A :: STATMODE_BANKMODE_ERASEBNK } } # [doc = "Field `STATMODE_BANK2TRDY` reader - Bank 2T Ready. Bank(s) are ready for 2T access. This is accomplished when the pump has fully driven power rails to the bank(s)."]
pub type STATMODE_BANK2TRDY_R = crate :: BitReader < STATMODE_BANK2TRDY_A > ; # [doc = "Bank 2T Ready. Bank(s) are ready for 2T access. This is accomplished when the pump has fully driven power rails to the bank(s).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STATMODE_BANK2TRDY_A { # [doc = "0: FALSE"]
STATMODE_BANK2TRDY_FALSE = 0 , # [doc = "1: TRUE"]
STATMODE_BANK2TRDY_TRUE = 1 , } impl From < STATMODE_BANK2TRDY_A > for bool { # [inline (always)]
fn from (variant : STATMODE_BANK2TRDY_A) -> Self { variant as u8 != 0 } } impl STATMODE_BANK2TRDY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STATMODE_BANK2TRDY_A { match self . bits { false => STATMODE_BANK2TRDY_A :: STATMODE_BANK2TRDY_FALSE , true => STATMODE_BANK2TRDY_A :: STATMODE_BANK2TRDY_TRUE , } } # [doc = "FALSE"]
# [inline (always)]
pub fn is_statmode_bank2trdy_false (& self) -> bool { * self == STATMODE_BANK2TRDY_A :: STATMODE_BANK2TRDY_FALSE } # [doc = "TRUE"]
# [inline (always)]
pub fn is_statmode_bank2trdy_true (& self) -> bool { * self == STATMODE_BANK2TRDY_A :: STATMODE_BANK2TRDY_TRUE } } # [doc = "Field `STATMODE_BANK1TRDY` reader - Bank 1T Ready. Bank(s) are ready for 1T access. This is accomplished when the bank and pump have been trimmed."]
pub type STATMODE_BANK1TRDY_R = crate :: BitReader < STATMODE_BANK1TRDY_A > ; # [doc = "Bank 1T Ready. Bank(s) are ready for 1T access. This is accomplished when the bank and pump have been trimmed.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STATMODE_BANK1TRDY_A { # [doc = "0: FALSE"]
STATMODE_BANK1TRDY_FALSE = 0 , # [doc = "1: TRUE"]
STATMODE_BANK1TRDY_TRUE = 1 , } impl From < STATMODE_BANK1TRDY_A > for bool { # [inline (always)]
fn from (variant : STATMODE_BANK1TRDY_A) -> Self { variant as u8 != 0 } } impl STATMODE_BANK1TRDY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STATMODE_BANK1TRDY_A { match self . bits { false => STATMODE_BANK1TRDY_A :: STATMODE_BANK1TRDY_FALSE , true => STATMODE_BANK1TRDY_A :: STATMODE_BANK1TRDY_TRUE , } } # [doc = "FALSE"]
# [inline (always)]
pub fn is_statmode_bank1trdy_false (& self) -> bool { * self == STATMODE_BANK1TRDY_A :: STATMODE_BANK1TRDY_FALSE } # [doc = "TRUE"]
# [inline (always)]
pub fn is_statmode_bank1trdy_true (& self) -> bool { * self == STATMODE_BANK1TRDY_A :: STATMODE_BANK1TRDY_TRUE } } impl R { # [doc = "Bit 0 - Bank not in read mode. Indicates which banks are not in READ mode. There is 1 bit per bank."]
# [inline (always)]
pub fn statmode_banknotinrd (& self) -> STATMODE_BANKNOTINRD_R { STATMODE_BANKNOTINRD_R :: new ((self . bits & 1) != 0) } # [doc = "Bits 8:11 - Indicates mode of bank(s) that are not in READ mode"]
# [inline (always)]
pub fn statmode_bankmode (& self) -> STATMODE_BANKMODE_R { STATMODE_BANKMODE_R :: new (((self . bits >> 8) & 0x0f) as u8) } # [doc = "Bit 16 - Bank 2T Ready. Bank(s) are ready for 2T access. This is accomplished when the pump has fully driven power rails to the bank(s)."]
# [inline (always)]
pub fn statmode_bank2trdy (& self) -> STATMODE_BANK2TRDY_R { STATMODE_BANK2TRDY_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 17 - Bank 1T Ready. Bank(s) are ready for 1T access. This is accomplished when the bank and pump have been trimmed."]
# [inline (always)]
pub fn statmode_bank1trdy (& self) -> STATMODE_BANK1TRDY_R { STATMODE_BANK1TRDY_R :: new (((self . bits >> 17) & 1) != 0) } } # [doc = "Mode Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`statmode::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct STATMODE_SPEC ; impl crate :: RegisterSpec for STATMODE_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`statmode::R`](R) reader structure"]
impl crate :: Readable for STATMODE_SPEC { } # [doc = "`reset()` method sets STATMODE to value 0"]
impl crate :: Resettable for STATMODE_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "GBLINFO0 (r) register accessor: Global Information Register 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gblinfo0::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gblinfo0`]
module"]
pub type GBLINFO0 = crate :: Reg < gblinfo0 :: GBLINFO0_SPEC > ; # [doc = "Global Information Register 0"]
pub mod gblinfo0 { # [doc = "Register `GBLINFO0` reader"]
pub type R = crate :: R < GBLINFO0_SPEC > ; # [doc = "Field `GBLINFO0_SECTORSIZE` reader - Sector size in bytes"]
pub type GBLINFO0_SECTORSIZE_R = crate :: FieldReader < GBLINFO0_SECTORSIZE_A > ; # [doc = "Sector size in bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u16)]
pub enum GBLINFO0_SECTORSIZE_A { # [doc = "1024: ONEKB"]
GBLINFO0_SECTORSIZE_ONEKB = 1024 , # [doc = "2048: TWOKB"]
GBLINFO0_SECTORSIZE_TWOKB = 2048 , } impl From < GBLINFO0_SECTORSIZE_A > for u16 { # [inline (always)]
fn from (variant : GBLINFO0_SECTORSIZE_A) -> Self { variant as _ } } impl crate :: FieldSpec for GBLINFO0_SECTORSIZE_A { type Ux = u16 ; } impl GBLINFO0_SECTORSIZE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < GBLINFO0_SECTORSIZE_A > { match self . bits { 1024 => Some (GBLINFO0_SECTORSIZE_A :: GBLINFO0_SECTORSIZE_ONEKB) , 2048 => Some (GBLINFO0_SECTORSIZE_A :: GBLINFO0_SECTORSIZE_TWOKB) , _ => None , } } # [doc = "ONEKB"]
# [inline (always)]
pub fn is_gblinfo0_sectorsize_onekb (& self) -> bool { * self == GBLINFO0_SECTORSIZE_A :: GBLINFO0_SECTORSIZE_ONEKB } # [doc = "TWOKB"]
# [inline (always)]
pub fn is_gblinfo0_sectorsize_twokb (& self) -> bool { * self == GBLINFO0_SECTORSIZE_A :: GBLINFO0_SECTORSIZE_TWOKB } } # [doc = "Field `GBLINFO0_NUMBANKS` reader - Number of banks instantiated Minimum: 1 Maximum: 5"]
pub type GBLINFO0_NUMBANKS_R = crate :: FieldReader ; impl R { # [doc = "Bits 0:15 - Sector size in bytes"]
# [inline (always)]
pub fn gblinfo0_sectorsize (& self) -> GBLINFO0_SECTORSIZE_R { GBLINFO0_SECTORSIZE_R :: new ((self . bits & 0xffff) as u16) } # [doc = "Bits 16:18 - Number of banks instantiated Minimum: 1 Maximum: 5"]
# [inline (always)]
pub fn gblinfo0_numbanks (& self) -> GBLINFO0_NUMBANKS_R { GBLINFO0_NUMBANKS_R :: new (((self . bits >> 16) & 7) as u8) } } # [doc = "Global Information Register 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gblinfo0::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct GBLINFO0_SPEC ; impl crate :: RegisterSpec for GBLINFO0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`gblinfo0::R`](R) reader structure"]
impl crate :: Readable for GBLINFO0_SPEC { } # [doc = "`reset()` method sets GBLINFO0 to value 0"]
impl crate :: Resettable for GBLINFO0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "GBLINFO1 (r) register accessor: Global Information Register 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gblinfo1::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gblinfo1`]
module"]
pub type GBLINFO1 = crate :: Reg < gblinfo1 :: GBLINFO1_SPEC > ; # [doc = "Global Information Register 1"]
pub mod gblinfo1 { # [doc = "Register `GBLINFO1` reader"]
pub type R = crate :: R < GBLINFO1_SPEC > ; # [doc = "Field `GBLINFO1_DATAWIDTH` reader - Data width in bits"]
pub type GBLINFO1_DATAWIDTH_R = crate :: FieldReader < GBLINFO1_DATAWIDTH_A > ; # [doc = "Data width in bits\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum GBLINFO1_DATAWIDTH_A { # [doc = "64: W64BIT"]
GBLINFO1_DATAWIDTH_W64BIT = 64 , # [doc = "128: W128BIT"]
GBLINFO1_DATAWIDTH_W128BIT = 128 , } impl From < GBLINFO1_DATAWIDTH_A > for u8 { # [inline (always)]
fn from (variant : GBLINFO1_DATAWIDTH_A) -> Self { variant as _ } } impl crate :: FieldSpec for GBLINFO1_DATAWIDTH_A { type Ux = u8 ; } impl GBLINFO1_DATAWIDTH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < GBLINFO1_DATAWIDTH_A > { match self . bits { 64 => Some (GBLINFO1_DATAWIDTH_A :: GBLINFO1_DATAWIDTH_W64BIT) , 128 => Some (GBLINFO1_DATAWIDTH_A :: GBLINFO1_DATAWIDTH_W128BIT) , _ => None , } } # [doc = "W64BIT"]
# [inline (always)]
pub fn is_gblinfo1_datawidth_w64bit (& self) -> bool { * self == GBLINFO1_DATAWIDTH_A :: GBLINFO1_DATAWIDTH_W64BIT } # [doc = "W128BIT"]
# [inline (always)]
pub fn is_gblinfo1_datawidth_w128bit (& self) -> bool { * self == GBLINFO1_DATAWIDTH_A :: GBLINFO1_DATAWIDTH_W128BIT } } # [doc = "Field `GBLINFO1_ECCWIDTH` reader - ECC data width in bits"]
pub type GBLINFO1_ECCWIDTH_R = crate :: FieldReader < GBLINFO1_ECCWIDTH_A > ; # [doc = "ECC data width in bits\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum GBLINFO1_ECCWIDTH_A { # [doc = "0: W0BIT"]
GBLINFO1_ECCWIDTH_W0BIT = 0 , # [doc = "8: W8BIT"]
GBLINFO1_ECCWIDTH_W8BIT = 8 , # [doc = "16: W16BIT"]
GBLINFO1_ECCWIDTH_W16BIT = 16 , } impl From < GBLINFO1_ECCWIDTH_A > for u8 { # [inline (always)]
fn from (variant : GBLINFO1_ECCWIDTH_A) -> Self { variant as _ } } impl crate :: FieldSpec for GBLINFO1_ECCWIDTH_A { type Ux = u8 ; } impl GBLINFO1_ECCWIDTH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < GBLINFO1_ECCWIDTH_A > { match self . bits { 0 => Some (GBLINFO1_ECCWIDTH_A :: GBLINFO1_ECCWIDTH_W0BIT) , 8 => Some (GBLINFO1_ECCWIDTH_A :: GBLINFO1_ECCWIDTH_W8BIT) , 16 => Some (GBLINFO1_ECCWIDTH_A :: GBLINFO1_ECCWIDTH_W16BIT) , _ => None , } } # [doc = "W0BIT"]
# [inline (always)]
pub fn is_gblinfo1_eccwidth_w0bit (& self) -> bool { * self == GBLINFO1_ECCWIDTH_A :: GBLINFO1_ECCWIDTH_W0BIT } # [doc = "W8BIT"]
# [inline (always)]
pub fn is_gblinfo1_eccwidth_w8bit (& self) -> bool { * self == GBLINFO1_ECCWIDTH_A :: GBLINFO1_ECCWIDTH_W8BIT } # [doc = "W16BIT"]
# [inline (always)]
pub fn is_gblinfo1_eccwidth_w16bit (& self) -> bool { * self == GBLINFO1_ECCWIDTH_A :: GBLINFO1_ECCWIDTH_W16BIT } } # [doc = "Field `GBLINFO1_REDWIDTH` reader - Redundant data width in bits"]
pub type GBLINFO1_REDWIDTH_R = crate :: FieldReader < GBLINFO1_REDWIDTH_A > ; # [doc = "Redundant data width in bits\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum GBLINFO1_REDWIDTH_A { # [doc = "0: W0BIT"]
GBLINFO1_REDWIDTH_W0BIT = 0 , # [doc = "2: W2BIT"]
GBLINFO1_REDWIDTH_W2BIT = 2 , # [doc = "4: W4BIT"]
GBLINFO1_REDWIDTH_W4BIT = 4 , } impl From < GBLINFO1_REDWIDTH_A > for u8 { # [inline (always)]
fn from (variant : GBLINFO1_REDWIDTH_A) -> Self { variant as _ } } impl crate :: FieldSpec for GBLINFO1_REDWIDTH_A { type Ux = u8 ; } impl GBLINFO1_REDWIDTH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < GBLINFO1_REDWIDTH_A > { match self . bits { 0 => Some (GBLINFO1_REDWIDTH_A :: GBLINFO1_REDWIDTH_W0BIT) , 2 => Some (GBLINFO1_REDWIDTH_A :: GBLINFO1_REDWIDTH_W2BIT) , 4 => Some (GBLINFO1_REDWIDTH_A :: GBLINFO1_REDWIDTH_W4BIT) , _ => None , } } # [doc = "W0BIT"]
# [inline (always)]
pub fn is_gblinfo1_redwidth_w0bit (& self) -> bool { * self == GBLINFO1_REDWIDTH_A :: GBLINFO1_REDWIDTH_W0BIT } # [doc = "W2BIT"]
# [inline (always)]
pub fn is_gblinfo1_redwidth_w2bit (& self) -> bool { * self == GBLINFO1_REDWIDTH_A :: GBLINFO1_REDWIDTH_W2BIT } # [doc = "W4BIT"]
# [inline (always)]
pub fn is_gblinfo1_redwidth_w4bit (& self) -> bool { * self == GBLINFO1_REDWIDTH_A :: GBLINFO1_REDWIDTH_W4BIT } } impl R { # [doc = "Bits 0:7 - Data width in bits"]
# [inline (always)]
pub fn gblinfo1_datawidth (& self) -> GBLINFO1_DATAWIDTH_R { GBLINFO1_DATAWIDTH_R :: new ((self . bits & 0xff) as u8) } # [doc = "Bits 8:12 - ECC data width in bits"]
# [inline (always)]
pub fn gblinfo1_eccwidth (& self) -> GBLINFO1_ECCWIDTH_R { GBLINFO1_ECCWIDTH_R :: new (((self . bits >> 8) & 0x1f) as u8) } # [doc = "Bits 16:18 - Redundant data width in bits"]
# [inline (always)]
pub fn gblinfo1_redwidth (& self) -> GBLINFO1_REDWIDTH_R { GBLINFO1_REDWIDTH_R :: new (((self . bits >> 16) & 7) as u8) } } # [doc = "Global Information Register 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gblinfo1::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct GBLINFO1_SPEC ; impl crate :: RegisterSpec for GBLINFO1_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`gblinfo1::R`](R) reader structure"]
impl crate :: Readable for GBLINFO1_SPEC { } # [doc = "`reset()` method sets GBLINFO1 to value 0"]
impl crate :: Resettable for GBLINFO1_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "GBLINFO2 (r) register accessor: Global Information Register 2\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gblinfo2::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gblinfo2`]
module"]
pub type GBLINFO2 = crate :: Reg < gblinfo2 :: GBLINFO2_SPEC > ; # [doc = "Global Information Register 2"]
pub mod gblinfo2 { # [doc = "Register `GBLINFO2` reader"]
pub type R = crate :: R < GBLINFO2_SPEC > ; # [doc = "Field `GBLINFO2_DATAREGISTERS` reader - Number of data registers present."]
pub type GBLINFO2_DATAREGISTERS_R = crate :: FieldReader ; impl R { # [doc = "Bits 0:3 - Number of data registers present."]
# [inline (always)]
pub fn gblinfo2_dataregisters (& self) -> GBLINFO2_DATAREGISTERS_R { GBLINFO2_DATAREGISTERS_R :: new ((self . bits & 0x0f) as u8) } } # [doc = "Global Information Register 2\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gblinfo2::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct GBLINFO2_SPEC ; impl crate :: RegisterSpec for GBLINFO2_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`gblinfo2::R`](R) reader structure"]
impl crate :: Readable for GBLINFO2_SPEC { } # [doc = "`reset()` method sets GBLINFO2 to value 0"]
impl crate :: Resettable for GBLINFO2_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "BANK0INFO0 (r) register accessor: Bank Information Register 0 for Bank 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`bank0info0::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@bank0info0`]
module"]
pub type BANK0INFO0 = crate :: Reg < bank0info0 :: BANK0INFO0_SPEC > ; # [doc = "Bank Information Register 0 for Bank 0"]
pub mod bank0info0 { # [doc = "Register `BANK0INFO0` reader"]
pub type R = crate :: R < BANK0INFO0_SPEC > ; # [doc = "Field `BANK0INFO0_MAINSIZE` reader - Main region size in sectors Minimum: 0x8 (8) Maximum: 0x200 (512)"]
pub type BANK0INFO0_MAINSIZE_R = crate :: FieldReader < BANK0INFO0_MAINSIZE_A > ; # [doc = "Main region size in sectors Minimum: 0x8 (8) Maximum: 0x200 (512)\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u16)]
pub enum BANK0INFO0_MAINSIZE_A { # [doc = "8: MINSECTORS"]
BANK0INFO0_MAINSIZE_MINSECTORS = 8 , # [doc = "512: MAXSECTORS"]
BANK0INFO0_MAINSIZE_MAXSECTORS = 512 , } impl From < BANK0INFO0_MAINSIZE_A > for u16 { # [inline (always)]
fn from (variant : BANK0INFO0_MAINSIZE_A) -> Self { variant as _ } } impl crate :: FieldSpec for BANK0INFO0_MAINSIZE_A { type Ux = u16 ; } impl BANK0INFO0_MAINSIZE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < BANK0INFO0_MAINSIZE_A > { match self . bits { 8 => Some (BANK0INFO0_MAINSIZE_A :: BANK0INFO0_MAINSIZE_MINSECTORS) , 512 => Some (BANK0INFO0_MAINSIZE_A :: BANK0INFO0_MAINSIZE_MAXSECTORS) , _ => None , } } # [doc = "MINSECTORS"]
# [inline (always)]
pub fn is_bank0info0_mainsize_minsectors (& self) -> bool { * self == BANK0INFO0_MAINSIZE_A :: BANK0INFO0_MAINSIZE_MINSECTORS } # [doc = "MAXSECTORS"]
# [inline (always)]
pub fn is_bank0info0_mainsize_maxsectors (& self) -> bool { * self == BANK0INFO0_MAINSIZE_A :: BANK0INFO0_MAINSIZE_MAXSECTORS } } impl R { # [doc = "Bits 0:11 - Main region size in sectors Minimum: 0x8 (8) Maximum: 0x200 (512)"]
# [inline (always)]
pub fn bank0info0_mainsize (& self) -> BANK0INFO0_MAINSIZE_R { BANK0INFO0_MAINSIZE_R :: new ((self . bits & 0x0fff) as u16) } } # [doc = "Bank Information Register 0 for Bank 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`bank0info0::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct BANK0INFO0_SPEC ; impl crate :: RegisterSpec for BANK0INFO0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`bank0info0::R`](R) reader structure"]
impl crate :: Readable for BANK0INFO0_SPEC { } # [doc = "`reset()` method sets BANK0INFO0 to value 0"]
impl crate :: Resettable for BANK0INFO0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "BANK0INFO1 (r) register accessor: Bank Information Register 1 for Bank 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`bank0info1::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@bank0info1`]
module"]
pub type BANK0INFO1 = crate :: Reg < bank0info1 :: BANK0INFO1_SPEC > ; # [doc = "Bank Information Register 1 for Bank 0"]
pub mod bank0info1 { # [doc = "Register `BANK0INFO1` reader"]
pub type R = crate :: R < BANK0INFO1_SPEC > ; # [doc = "Field `BANK0INFO1_NONMAINSIZE` reader - Non-main region size in sectors Minimum: 0x0 (0) Maximum: 0x10 (16)"]
pub type BANK0INFO1_NONMAINSIZE_R = crate :: FieldReader < BANK0INFO1_NONMAINSIZE_A > ; # [doc = "Non-main region size in sectors Minimum: 0x0 (0) Maximum: 0x10 (16)\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum BANK0INFO1_NONMAINSIZE_A { # [doc = "0: MINSECTORS"]
BANK0INFO1_NONMAINSIZE_MINSECTORS = 0 , # [doc = "32: MAXSECTORS"]
BANK0INFO1_NONMAINSIZE_MAXSECTORS = 32 , } impl From < BANK0INFO1_NONMAINSIZE_A > for u8 { # [inline (always)]
fn from (variant : BANK0INFO1_NONMAINSIZE_A) -> Self { variant as _ } } impl crate :: FieldSpec for BANK0INFO1_NONMAINSIZE_A { type Ux = u8 ; } impl BANK0INFO1_NONMAINSIZE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < BANK0INFO1_NONMAINSIZE_A > { match self . bits { 0 => Some (BANK0INFO1_NONMAINSIZE_A :: BANK0INFO1_NONMAINSIZE_MINSECTORS) , 32 => Some (BANK0INFO1_NONMAINSIZE_A :: BANK0INFO1_NONMAINSIZE_MAXSECTORS) , _ => None , } } # [doc = "MINSECTORS"]
# [inline (always)]
pub fn is_bank0info1_nonmainsize_minsectors (& self) -> bool { * self == BANK0INFO1_NONMAINSIZE_A :: BANK0INFO1_NONMAINSIZE_MINSECTORS } # [doc = "MAXSECTORS"]
# [inline (always)]
pub fn is_bank0info1_nonmainsize_maxsectors (& self) -> bool { * self == BANK0INFO1_NONMAINSIZE_A :: BANK0INFO1_NONMAINSIZE_MAXSECTORS } } # [doc = "Field `BANK0INFO1_TRIMSIZE` reader - Trim region size in sectors Minimum: 0x0 (0) Maximum: 0x10 (16)"]
pub type BANK0INFO1_TRIMSIZE_R = crate :: FieldReader < BANK0INFO1_TRIMSIZE_A > ; # [doc = "Trim region size in sectors Minimum: 0x0 (0) Maximum: 0x10 (16)\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum BANK0INFO1_TRIMSIZE_A { # [doc = "0: MINSECTORS"]
BANK0INFO1_TRIMSIZE_MINSECTORS = 0 , # [doc = "32: MAXSECTORS"]
BANK0INFO1_TRIMSIZE_MAXSECTORS = 32 , } impl From < BANK0INFO1_TRIMSIZE_A > for u8 { # [inline (always)]
fn from (variant : BANK0INFO1_TRIMSIZE_A) -> Self { variant as _ } } impl crate :: FieldSpec for BANK0INFO1_TRIMSIZE_A { type Ux = u8 ; } impl BANK0INFO1_TRIMSIZE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < BANK0INFO1_TRIMSIZE_A > { match self . bits { 0 => Some (BANK0INFO1_TRIMSIZE_A :: BANK0INFO1_TRIMSIZE_MINSECTORS) , 32 => Some (BANK0INFO1_TRIMSIZE_A :: BANK0INFO1_TRIMSIZE_MAXSECTORS) , _ => None , } } # [doc = "MINSECTORS"]
# [inline (always)]
pub fn is_bank0info1_trimsize_minsectors (& self) -> bool { * self == BANK0INFO1_TRIMSIZE_A :: BANK0INFO1_TRIMSIZE_MINSECTORS } # [doc = "MAXSECTORS"]
# [inline (always)]
pub fn is_bank0info1_trimsize_maxsectors (& self) -> bool { * self == BANK0INFO1_TRIMSIZE_A :: BANK0INFO1_TRIMSIZE_MAXSECTORS } } # [doc = "Field `BANK0INFO1_ENGRSIZE` reader - Engr region size in sectors Minimum: 0x0 (0) Maximum: 0x10 (16)"]
pub type BANK0INFO1_ENGRSIZE_R = crate :: FieldReader < BANK0INFO1_ENGRSIZE_A > ; # [doc = "Engr region size in sectors Minimum: 0x0 (0) Maximum: 0x10 (16)\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum BANK0INFO1_ENGRSIZE_A { # [doc = "0: MINSECTORS"]
BANK0INFO1_ENGRSIZE_MINSECTORS = 0 , # [doc = "32: MAXSECTORS"]
BANK0INFO1_ENGRSIZE_MAXSECTORS = 32 , } impl From < BANK0INFO1_ENGRSIZE_A > for u8 { # [inline (always)]
fn from (variant : BANK0INFO1_ENGRSIZE_A) -> Self { variant as _ } } impl crate :: FieldSpec for BANK0INFO1_ENGRSIZE_A { type Ux = u8 ; } impl BANK0INFO1_ENGRSIZE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < BANK0INFO1_ENGRSIZE_A > { match self . bits { 0 => Some (BANK0INFO1_ENGRSIZE_A :: BANK0INFO1_ENGRSIZE_MINSECTORS) , 32 => Some (BANK0INFO1_ENGRSIZE_A :: BANK0INFO1_ENGRSIZE_MAXSECTORS) , _ => None , } } # [doc = "MINSECTORS"]
# [inline (always)]
pub fn is_bank0info1_engrsize_minsectors (& self) -> bool { * self == BANK0INFO1_ENGRSIZE_A :: BANK0INFO1_ENGRSIZE_MINSECTORS } # [doc = "MAXSECTORS"]
# [inline (always)]
pub fn is_bank0info1_engrsize_maxsectors (& self) -> bool { * self == BANK0INFO1_ENGRSIZE_A :: BANK0INFO1_ENGRSIZE_MAXSECTORS } } impl R { # [doc = "Bits 0:7 - Non-main region size in sectors Minimum: 0x0 (0) Maximum: 0x10 (16)"]
# [inline (always)]
pub fn bank0info1_nonmainsize (& self) -> BANK0INFO1_NONMAINSIZE_R { BANK0INFO1_NONMAINSIZE_R :: new ((self . bits & 0xff) as u8) } # [doc = "Bits 8:15 - Trim region size in sectors Minimum: 0x0 (0) Maximum: 0x10 (16)"]
# [inline (always)]
pub fn bank0info1_trimsize (& self) -> BANK0INFO1_TRIMSIZE_R { BANK0INFO1_TRIMSIZE_R :: new (((self . bits >> 8) & 0xff) as u8) } # [doc = "Bits 16:23 - Engr region size in sectors Minimum: 0x0 (0) Maximum: 0x10 (16)"]
# [inline (always)]
pub fn bank0info1_engrsize (& self) -> BANK0INFO1_ENGRSIZE_R { BANK0INFO1_ENGRSIZE_R :: new (((self . bits >> 16) & 0xff) as u8) } } # [doc = "Bank Information Register 1 for Bank 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`bank0info1::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct BANK0INFO1_SPEC ; impl crate :: RegisterSpec for BANK0INFO1_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`bank0info1::R`](R) reader structure"]
impl crate :: Readable for BANK0INFO1_SPEC { } # [doc = "`reset()` method sets BANK0INFO1 to value 0"]
impl crate :: Resettable for BANK0INFO1_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } } # [doc = "PERIPHERALREGION"]
pub struct SPI0 { _marker : PhantomData < * const () > } unsafe impl Send for SPI0 { } impl SPI0 { # [doc = r"Pointer to the register block"]
pub const PTR : * const spi0 :: RegisterBlock = 0x4046_8000 as * const _ ; # [doc = r"Return the pointer to the register block"]
# [inline (always)]
pub const fn ptr () -> * const spi0 :: RegisterBlock { Self :: PTR } # [doc = r" Steal an instance of this peripheral"]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Ensure that the new instance of the peripheral cannot be used in a way"]
# [doc = r" that may race with any existing instances, for example by only"]
# [doc = r" accessing read-only or write-only registers, or by consuming the"]
# [doc = r" original peripheral and using critical sections to coordinate"]
# [doc = r" access between multiple new instances."]
# [doc = r""]
# [doc = r" Additionally, other software such as HALs may rely on only one"]
# [doc = r" peripheral instance existing to ensure memory safety; ensure"]
# [doc = r" no stolen instances are passed to such software."]
pub unsafe fn steal () -> Self { Self { _marker : PhantomData } } } impl Deref for SPI0 { type Target = spi0 :: RegisterBlock ; # [inline (always)]
fn deref (& self) -> & Self :: Target { unsafe { & * Self :: PTR } } } impl core :: fmt :: Debug for SPI0 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("SPI0") . finish () } } # [doc = "PERIPHERALREGION"]
pub mod spi0 { # [doc = r"Register block"]
# [repr (C)]
pub struct RegisterBlock { _reserved0 : [u8 ; 0x0800]
, # [doc = "0x800 - Power enable"]
pub pwren : PWREN , # [doc = "0x804 - Reset Control"]
pub rstctl : RSTCTL , # [doc = "0x808 - Peripheral Clock Configuration Register"]
pub clkcfg : CLKCFG , _reserved3 : [u8 ; 0x08]
, # [doc = "0x814 - Status Register"]
pub gprcm_stat : GPRCM_STAT , _reserved4 : [u8 ; 0x07e8]
, # [doc = "0x1000 - Clock Divider"]
pub clkdiv : CLKDIV , # [doc = "0x1004 - Clock Select for Ultra Low Power peripherals"]
pub clksel : CLKSEL , _reserved6 : [u8 ; 0x10]
, # [doc = "0x1018 - Peripheral Debug Control"]
pub pdbgctl : PDBGCTL , _reserved7 : [u8 ; 0x04]
, # [doc = "0x1020 - Interrupt Index Register"]
pub int_event0_iidx : INT_EVENT0_IIDX , _reserved8 : [u8 ; 0x04]
, # [doc = "0x1028 - Interrupt mask"]
pub int_event0_imask : INT_EVENT0_IMASK , _reserved9 : [u8 ; 0x04]
, # [doc = "0x1030 - Raw interrupt status"]
pub int_event0_ris : INT_EVENT0_RIS , _reserved10 : [u8 ; 0x04]
, # [doc = "0x1038 - Masked interrupt status"]
pub int_event0_mis : INT_EVENT0_MIS , _reserved11 : [u8 ; 0x04]
, # [doc = "0x1040 - Interrupt set"]
pub int_event0_iset : INT_EVENT0_ISET , _reserved12 : [u8 ; 0x04]
, # [doc = "0x1048 - Interrupt clear"]
pub int_event0_iclr : INT_EVENT0_ICLR , _reserved13 : [u8 ; 0x04]
, # [doc = "0x1050 - Interrupt Index Register"]
pub int_event1_iidx : INT_EVENT1_IIDX , _reserved14 : [u8 ; 0x04]
, # [doc = "0x1058 - Interrupt mask"]
pub int_event1_imask : INT_EVENT1_IMASK , _reserved15 : [u8 ; 0x04]
, # [doc = "0x1060 - Raw interrupt status"]
pub int_event1_ris : INT_EVENT1_RIS , _reserved16 : [u8 ; 0x04]
, # [doc = "0x1068 - Masked interrupt status"]
pub int_event1_mis : INT_EVENT1_MIS , _reserved17 : [u8 ; 0x04]
, # [doc = "0x1070 - Interrupt set"]
pub int_event1_iset : INT_EVENT1_ISET , _reserved18 : [u8 ; 0x04]
, # [doc = "0x1078 - Interrupt clear"]
pub int_event1_iclr : INT_EVENT1_ICLR , _reserved19 : [u8 ; 0x04]
, # [doc = "0x1080 - Interrupt Index Register"]
pub int_event2_iidx : INT_EVENT2_IIDX , _reserved20 : [u8 ; 0x04]
, # [doc = "0x1088 - Interrupt mask"]
pub int_event2_imask : INT_EVENT2_IMASK , _reserved21 : [u8 ; 0x04]
, # [doc = "0x1090 - Raw interrupt status"]
pub int_event2_ris : INT_EVENT2_RIS , _reserved22 : [u8 ; 0x04]
, # [doc = "0x1098 - Masked interrupt status"]
pub int_event2_mis : INT_EVENT2_MIS , _reserved23 : [u8 ; 0x04]
, # [doc = "0x10a0 - Interrupt set"]
pub int_event2_iset : INT_EVENT2_ISET , _reserved24 : [u8 ; 0x04]
, # [doc = "0x10a8 - Interrupt clear"]
pub int_event2_iclr : INT_EVENT2_ICLR , _reserved25 : [u8 ; 0x34]
, # [doc = "0x10e0 - Event Mode"]
pub evt_mode : EVT_MODE , _reserved26 : [u8 ; 0x1c]
, # [doc = "0x1100 - SPI control register 0"]
pub ctl0 : CTL0 , # [doc = "0x1104 - SPI control register 1"]
pub ctl1 : CTL1 , # [doc = "0x1108 - Clock prescaler and divider register."]
pub clkctl : CLKCTL , # [doc = "0x110c - UART Interrupt FIFO Level Select Register"]
pub ifls : IFLS , # [doc = "0x1110 - Status Register"]
pub stat : STAT , _reserved31 : [u8 ; 0x1c]
, # [doc = "0x1130 - RXDATA Register"]
pub rxdata : RXDATA , _reserved32 : [u8 ; 0x0c]
, # [doc = "0x1140 - TXDATA Register"]
pub txdata : TXDATA , } # [doc = "PWREN (rw) register accessor: Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pwren`]
module"]
pub type PWREN = crate :: Reg < pwren :: PWREN_SPEC > ; # [doc = "Power enable"]
pub mod pwren { # [doc = "Register `PWREN` reader"]
pub type R = crate :: R < PWREN_SPEC > ; # [doc = "Register `PWREN` writer"]
pub type W = crate :: W < PWREN_SPEC > ; # [doc = "Field `PWREN_ENABLE` reader - Enable the power"]
pub type PWREN_ENABLE_R = crate :: BitReader < PWREN_ENABLE_A > ; # [doc = "Enable the power\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PWREN_ENABLE_A { # [doc = "0: DISABLE"]
PWREN_ENABLE_DISABLE = 0 , # [doc = "1: ENABLE"]
PWREN_ENABLE_ENABLE = 1 , } impl From < PWREN_ENABLE_A > for bool { # [inline (always)]
fn from (variant : PWREN_ENABLE_A) -> Self { variant as u8 != 0 } } impl PWREN_ENABLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PWREN_ENABLE_A { match self . bits { false => PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE , true => PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_pwren_enable_disable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_pwren_enable_enable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE } } # [doc = "Field `PWREN_ENABLE` writer - Enable the power"]
pub type PWREN_ENABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PWREN_ENABLE_A > ; impl < 'a , REG , const O : u8 > PWREN_ENABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn pwren_enable_disable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn pwren_enable_enable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE) } } # [doc = "KEY to allow Power State Change\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum PWREN_KEY_AW { # [doc = "38: _TO_UNLOCK_W_"]
PWREN_KEY_UNLOCK_W = 38 , } impl From < PWREN_KEY_AW > for u8 { # [inline (always)]
fn from (variant : PWREN_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for PWREN_KEY_AW { type Ux = u8 ; } # [doc = "Field `PWREN_KEY` writer - KEY to allow Power State Change"]
pub type PWREN_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , PWREN_KEY_AW > ; impl < 'a , REG , const O : u8 > PWREN_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn pwren_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_KEY_AW :: PWREN_KEY_UNLOCK_W) } } impl R { # [doc = "Bit 0 - Enable the power"]
# [inline (always)]
pub fn pwren_enable (& self) -> PWREN_ENABLE_R { PWREN_ENABLE_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - Enable the power"]
# [inline (always)]
# [must_use]
pub fn pwren_enable (& mut self) -> PWREN_ENABLE_W < PWREN_SPEC , 0 > { PWREN_ENABLE_W :: new (self) } # [doc = "Bits 24:31 - KEY to allow Power State Change"]
# [inline (always)]
# [must_use]
pub fn pwren_key (& mut self) -> PWREN_KEY_W < PWREN_SPEC , 24 > { PWREN_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PWREN_SPEC ; impl crate :: RegisterSpec for PWREN_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pwren::R`](R) reader structure"]
impl crate :: Readable for PWREN_SPEC { } # [doc = "`write(|w| ..)` method takes [`pwren::W`](W) writer structure"]
impl crate :: Writable for PWREN_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PWREN to value 0"]
impl crate :: Resettable for PWREN_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RSTCTL (w) register accessor: Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rstctl`]
module"]
pub type RSTCTL = crate :: Reg < rstctl :: RSTCTL_SPEC > ; # [doc = "Reset Control"]
pub mod rstctl { # [doc = "Register `RSTCTL` writer"]
pub type W = crate :: W < RSTCTL_SPEC > ; # [doc = "Assert reset to the peripheral\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETASSERT_AW { # [doc = "0: NOP"]
RSTCTL_RESETASSERT_NOP = 0 , # [doc = "1: ASSERT"]
RSTCTL_RESETASSERT_ASSERT = 1 , } impl From < RSTCTL_RESETASSERT_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETASSERT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETASSERT` writer - Assert reset to the peripheral"]
pub type RSTCTL_RESETASSERT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETASSERT_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETASSERT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetassert_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_NOP) } # [doc = "ASSERT"]
# [inline (always)]
pub fn rstctl_resetassert_assert (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_ASSERT) } } # [doc = "Clear the RESETSTKY bit in the STAT register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETSTKYCLR_AW { # [doc = "0: NOP"]
RSTCTL_RESETSTKYCLR_NOP = 0 , # [doc = "1: CLR"]
RSTCTL_RESETSTKYCLR_CLR = 1 , } impl From < RSTCTL_RESETSTKYCLR_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETSTKYCLR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETSTKYCLR` writer - Clear the RESETSTKY bit in the STAT register"]
pub type RSTCTL_RESETSTKYCLR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETSTKYCLR_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETSTKYCLR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetstkyclr_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_NOP) } # [doc = "CLR"]
# [inline (always)]
pub fn rstctl_resetstkyclr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_CLR) } } # [doc = "Unlock key\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum RSTCTL_KEY_AW { # [doc = "177: _TO_UNLOCK_W_"]
RSTCTL_KEY_UNLOCK_W = 177 , } impl From < RSTCTL_KEY_AW > for u8 { # [inline (always)]
fn from (variant : RSTCTL_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for RSTCTL_KEY_AW { type Ux = u8 ; } # [doc = "Field `RSTCTL_KEY` writer - Unlock key"]
pub type RSTCTL_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , RSTCTL_KEY_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn rstctl_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_KEY_AW :: RSTCTL_KEY_UNLOCK_W) } } impl W { # [doc = "Bit 0 - Assert reset to the peripheral"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetassert (& mut self) -> RSTCTL_RESETASSERT_W < RSTCTL_SPEC , 0 > { RSTCTL_RESETASSERT_W :: new (self) } # [doc = "Bit 1 - Clear the RESETSTKY bit in the STAT register"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetstkyclr (& mut self) -> RSTCTL_RESETSTKYCLR_W < RSTCTL_SPEC , 1 > { RSTCTL_RESETSTKYCLR_W :: new (self) } # [doc = "Bits 24:31 - Unlock key"]
# [inline (always)]
# [must_use]
pub fn rstctl_key (& mut self) -> RSTCTL_KEY_W < RSTCTL_SPEC , 24 > { RSTCTL_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RSTCTL_SPEC ; impl crate :: RegisterSpec for RSTCTL_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`rstctl::W`](W) writer structure"]
impl crate :: Writable for RSTCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets RSTCTL to value 0"]
impl crate :: Resettable for RSTCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CLKCFG (rw) register accessor: Peripheral Clock Configuration Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkcfg::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkcfg::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clkcfg`]
module"]
pub type CLKCFG = crate :: Reg < clkcfg :: CLKCFG_SPEC > ; # [doc = "Peripheral Clock Configuration Register"]
pub mod clkcfg { # [doc = "Register `CLKCFG` reader"]
pub type R = crate :: R < CLKCFG_SPEC > ; # [doc = "Register `CLKCFG` writer"]
pub type W = crate :: W < CLKCFG_SPEC > ; # [doc = "Field `CLKCFG_BLOCKASYNC` reader - Async Clock Request is blocked from starting SYSOSC or forcing bus clock to 32MHz"]
pub type CLKCFG_BLOCKASYNC_R = crate :: BitReader < CLKCFG_BLOCKASYNC_A > ; # [doc = "Async Clock Request is blocked from starting SYSOSC or forcing bus clock to 32MHz\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKCFG_BLOCKASYNC_A { # [doc = "0: DISABLE"]
CLKCFG_BLOCKASYNC_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKCFG_BLOCKASYNC_ENABLE = 1 , } impl From < CLKCFG_BLOCKASYNC_A > for bool { # [inline (always)]
fn from (variant : CLKCFG_BLOCKASYNC_A) -> Self { variant as u8 != 0 } } impl CLKCFG_BLOCKASYNC_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKCFG_BLOCKASYNC_A { match self . bits { false => CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_DISABLE , true => CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clkcfg_blockasync_disable (& self) -> bool { * self == CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clkcfg_blockasync_enable (& self) -> bool { * self == CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_ENABLE } } # [doc = "Field `CLKCFG_BLOCKASYNC` writer - Async Clock Request is blocked from starting SYSOSC or forcing bus clock to 32MHz"]
pub type CLKCFG_BLOCKASYNC_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKCFG_BLOCKASYNC_A > ; impl < 'a , REG , const O : u8 > CLKCFG_BLOCKASYNC_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clkcfg_blockasync_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clkcfg_blockasync_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_ENABLE) } } # [doc = "KEY to Allow State Change -- 0xA9\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CLKCFG_KEY_AW { # [doc = "169: _UNLOCK_W_"]
CLKCFG_KEY_UNLOCK = 169 , } impl From < CLKCFG_KEY_AW > for u8 { # [inline (always)]
fn from (variant : CLKCFG_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for CLKCFG_KEY_AW { type Ux = u8 ; } # [doc = "Field `CLKCFG_KEY` writer - KEY to Allow State Change -- 0xA9"]
pub type CLKCFG_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , CLKCFG_KEY_AW > ; impl < 'a , REG , const O : u8 > CLKCFG_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_UNLOCK_W_"]
# [inline (always)]
pub fn clkcfg_key_unlock (self) -> & 'a mut crate :: W < REG > { self . variant (CLKCFG_KEY_AW :: CLKCFG_KEY_UNLOCK) } } impl R { # [doc = "Bit 8 - Async Clock Request is blocked from starting SYSOSC or forcing bus clock to 32MHz"]
# [inline (always)]
pub fn clkcfg_blockasync (& self) -> CLKCFG_BLOCKASYNC_R { CLKCFG_BLOCKASYNC_R :: new (((self . bits >> 8) & 1) != 0) } } impl W { # [doc = "Bit 8 - Async Clock Request is blocked from starting SYSOSC or forcing bus clock to 32MHz"]
# [inline (always)]
# [must_use]
pub fn clkcfg_blockasync (& mut self) -> CLKCFG_BLOCKASYNC_W < CLKCFG_SPEC , 8 > { CLKCFG_BLOCKASYNC_W :: new (self) } # [doc = "Bits 24:31 - KEY to Allow State Change -- 0xA9"]
# [inline (always)]
# [must_use]
pub fn clkcfg_key (& mut self) -> CLKCFG_KEY_W < CLKCFG_SPEC , 24 > { CLKCFG_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Peripheral Clock Configuration Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkcfg::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkcfg::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CLKCFG_SPEC ; impl crate :: RegisterSpec for CLKCFG_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`clkcfg::R`](R) reader structure"]
impl crate :: Readable for CLKCFG_SPEC { } # [doc = "`write(|w| ..)` method takes [`clkcfg::W`](W) writer structure"]
impl crate :: Writable for CLKCFG_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CLKCFG to value 0"]
impl crate :: Resettable for CLKCFG_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "GPRCM_STAT (r) register accessor: Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gprcm_stat::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gprcm_stat`]
module"]
pub type GPRCM_STAT = crate :: Reg < gprcm_stat :: GPRCM_STAT_SPEC > ; # [doc = "Status Register"]
pub mod gprcm_stat { # [doc = "Register `GPRCM_STAT` reader"]
pub type R = crate :: R < GPRCM_STAT_SPEC > ; # [doc = "Field `GPRCM_STAT_RESETSTKY` reader - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
pub type GPRCM_STAT_RESETSTKY_R = crate :: BitReader < GPRCM_STAT_RESETSTKY_A > ; # [doc = "This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum GPRCM_STAT_RESETSTKY_A { # [doc = "0: NORES"]
GPRCM_STAT_RESETSTKY_NORES = 0 , # [doc = "1: RESET"]
GPRCM_STAT_RESETSTKY_RESET = 1 , } impl From < GPRCM_STAT_RESETSTKY_A > for bool { # [inline (always)]
fn from (variant : GPRCM_STAT_RESETSTKY_A) -> Self { variant as u8 != 0 } } impl GPRCM_STAT_RESETSTKY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> GPRCM_STAT_RESETSTKY_A { match self . bits { false => GPRCM_STAT_RESETSTKY_A :: GPRCM_STAT_RESETSTKY_NORES , true => GPRCM_STAT_RESETSTKY_A :: GPRCM_STAT_RESETSTKY_RESET , } } # [doc = "NORES"]
# [inline (always)]
pub fn is_gprcm_stat_resetstky_nores (& self) -> bool { * self == GPRCM_STAT_RESETSTKY_A :: GPRCM_STAT_RESETSTKY_NORES } # [doc = "RESET"]
# [inline (always)]
pub fn is_gprcm_stat_resetstky_reset (& self) -> bool { * self == GPRCM_STAT_RESETSTKY_A :: GPRCM_STAT_RESETSTKY_RESET } } impl R { # [doc = "Bit 16 - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
# [inline (always)]
pub fn gprcm_stat_resetstky (& self) -> GPRCM_STAT_RESETSTKY_R { GPRCM_STAT_RESETSTKY_R :: new (((self . bits >> 16) & 1) != 0) } } # [doc = "Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gprcm_stat::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct GPRCM_STAT_SPEC ; impl crate :: RegisterSpec for GPRCM_STAT_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`gprcm_stat::R`](R) reader structure"]
impl crate :: Readable for GPRCM_STAT_SPEC { } # [doc = "`reset()` method sets GPRCM_STAT to value 0"]
impl crate :: Resettable for GPRCM_STAT_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CLKDIV (rw) register accessor: Clock Divider\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkdiv::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkdiv::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clkdiv`]
module"]
pub type CLKDIV = crate :: Reg < clkdiv :: CLKDIV_SPEC > ; # [doc = "Clock Divider"]
pub mod clkdiv { # [doc = "Register `CLKDIV` reader"]
pub type R = crate :: R < CLKDIV_SPEC > ; # [doc = "Register `CLKDIV` writer"]
pub type W = crate :: W < CLKDIV_SPEC > ; # [doc = "Field `CLKDIV_RATIO` reader - Selects divide ratio of module clock"]
pub type CLKDIV_RATIO_R = crate :: FieldReader < CLKDIV_RATIO_A > ; # [doc = "Selects divide ratio of module clock\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CLKDIV_RATIO_A { # [doc = "0: DIV_BY_1"]
CLKDIV_RATIO_DIV_BY_1 = 0 , # [doc = "1: DIV_BY_2"]
CLKDIV_RATIO_DIV_BY_2 = 1 , # [doc = "2: DIV_BY_3"]
CLKDIV_RATIO_DIV_BY_3 = 2 , # [doc = "3: DIV_BY_4"]
CLKDIV_RATIO_DIV_BY_4 = 3 , # [doc = "4: DIV_BY_5"]
CLKDIV_RATIO_DIV_BY_5 = 4 , # [doc = "5: DIV_BY_6"]
CLKDIV_RATIO_DIV_BY_6 = 5 , # [doc = "6: DIV_BY_7"]
CLKDIV_RATIO_DIV_BY_7 = 6 , # [doc = "7: DIV_BY_8"]
CLKDIV_RATIO_DIV_BY_8 = 7 , } impl From < CLKDIV_RATIO_A > for u8 { # [inline (always)]
fn from (variant : CLKDIV_RATIO_A) -> Self { variant as _ } } impl crate :: FieldSpec for CLKDIV_RATIO_A { type Ux = u8 ; } impl CLKDIV_RATIO_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKDIV_RATIO_A { match self . bits { 0 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_1 , 1 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_2 , 2 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_3 , 3 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_4 , 4 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_5 , 5 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_6 , 6 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_7 , 7 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_8 , _ => unreachable ! () , } } # [doc = "DIV_BY_1"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_1 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_1 } # [doc = "DIV_BY_2"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_2 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_2 } # [doc = "DIV_BY_3"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_3 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_3 } # [doc = "DIV_BY_4"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_4 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_4 } # [doc = "DIV_BY_5"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_5 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_5 } # [doc = "DIV_BY_6"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_6 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_6 } # [doc = "DIV_BY_7"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_7 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_7 } # [doc = "DIV_BY_8"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_8 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_8 } } # [doc = "Field `CLKDIV_RATIO` writer - Selects divide ratio of module clock"]
pub type CLKDIV_RATIO_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 3 , O , CLKDIV_RATIO_A > ; impl < 'a , REG , const O : u8 > CLKDIV_RATIO_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DIV_BY_1"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_1 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_1) } # [doc = "DIV_BY_2"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_2 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_2) } # [doc = "DIV_BY_3"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_3 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_3) } # [doc = "DIV_BY_4"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_4 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_4) } # [doc = "DIV_BY_5"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_5 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_5) } # [doc = "DIV_BY_6"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_6 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_6) } # [doc = "DIV_BY_7"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_7 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_7) } # [doc = "DIV_BY_8"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_8 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_8) } } impl R { # [doc = "Bits 0:2 - Selects divide ratio of module clock"]
# [inline (always)]
pub fn clkdiv_ratio (& self) -> CLKDIV_RATIO_R { CLKDIV_RATIO_R :: new ((self . bits & 7) as u8) } } impl W { # [doc = "Bits 0:2 - Selects divide ratio of module clock"]
# [inline (always)]
# [must_use]
pub fn clkdiv_ratio (& mut self) -> CLKDIV_RATIO_W < CLKDIV_SPEC , 0 > { CLKDIV_RATIO_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Clock Divider\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkdiv::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkdiv::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CLKDIV_SPEC ; impl crate :: RegisterSpec for CLKDIV_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`clkdiv::R`](R) reader structure"]
impl crate :: Readable for CLKDIV_SPEC { } # [doc = "`write(|w| ..)` method takes [`clkdiv::W`](W) writer structure"]
impl crate :: Writable for CLKDIV_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CLKDIV to value 0"]
impl crate :: Resettable for CLKDIV_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CLKSEL (rw) register accessor: Clock Select for Ultra Low Power peripherals\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clksel::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clksel::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clksel`]
module"]
pub type CLKSEL = crate :: Reg < clksel :: CLKSEL_SPEC > ; # [doc = "Clock Select for Ultra Low Power peripherals"]
pub mod clksel { # [doc = "Register `CLKSEL` reader"]
pub type R = crate :: R < CLKSEL_SPEC > ; # [doc = "Register `CLKSEL` writer"]
pub type W = crate :: W < CLKSEL_SPEC > ; # [doc = "Field `CLKSEL_LFCLK_SEL` reader - Selects LFCLK as clock source if enabled"]
pub type CLKSEL_LFCLK_SEL_R = crate :: BitReader < CLKSEL_LFCLK_SEL_A > ; # [doc = "Selects LFCLK as clock source if enabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKSEL_LFCLK_SEL_A { # [doc = "0: DISABLE"]
CLKSEL_LFCLK_SEL_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKSEL_LFCLK_SEL_ENABLE = 1 , } impl From < CLKSEL_LFCLK_SEL_A > for bool { # [inline (always)]
fn from (variant : CLKSEL_LFCLK_SEL_A) -> Self { variant as u8 != 0 } } impl CLKSEL_LFCLK_SEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKSEL_LFCLK_SEL_A { match self . bits { false => CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_DISABLE , true => CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clksel_lfclk_sel_disable (& self) -> bool { * self == CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clksel_lfclk_sel_enable (& self) -> bool { * self == CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_ENABLE } } # [doc = "Field `CLKSEL_LFCLK_SEL` writer - Selects LFCLK as clock source if enabled"]
pub type CLKSEL_LFCLK_SEL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKSEL_LFCLK_SEL_A > ; impl < 'a , REG , const O : u8 > CLKSEL_LFCLK_SEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clksel_lfclk_sel_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clksel_lfclk_sel_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_ENABLE) } } # [doc = "Field `CLKSEL_MFCLK_SEL` reader - Selects MFCLK as clock source if enabled"]
pub type CLKSEL_MFCLK_SEL_R = crate :: BitReader < CLKSEL_MFCLK_SEL_A > ; # [doc = "Selects MFCLK as clock source if enabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKSEL_MFCLK_SEL_A { # [doc = "0: DISABLE"]
CLKSEL_MFCLK_SEL_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKSEL_MFCLK_SEL_ENABLE = 1 , } impl From < CLKSEL_MFCLK_SEL_A > for bool { # [inline (always)]
fn from (variant : CLKSEL_MFCLK_SEL_A) -> Self { variant as u8 != 0 } } impl CLKSEL_MFCLK_SEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKSEL_MFCLK_SEL_A { match self . bits { false => CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_DISABLE , true => CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clksel_mfclk_sel_disable (& self) -> bool { * self == CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clksel_mfclk_sel_enable (& self) -> bool { * self == CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_ENABLE } } # [doc = "Field `CLKSEL_MFCLK_SEL` writer - Selects MFCLK as clock source if enabled"]
pub type CLKSEL_MFCLK_SEL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKSEL_MFCLK_SEL_A > ; impl < 'a , REG , const O : u8 > CLKSEL_MFCLK_SEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clksel_mfclk_sel_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clksel_mfclk_sel_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_ENABLE) } } # [doc = "Field `CLKSEL_SYSCLK_SEL` reader - Selects SYSCLK as clock source if enabled"]
pub type CLKSEL_SYSCLK_SEL_R = crate :: BitReader < CLKSEL_SYSCLK_SEL_A > ; # [doc = "Selects SYSCLK as clock source if enabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKSEL_SYSCLK_SEL_A { # [doc = "0: DISABLE"]
CLKSEL_SYSCLK_SEL_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKSEL_SYSCLK_SEL_ENABLE = 1 , } impl From < CLKSEL_SYSCLK_SEL_A > for bool { # [inline (always)]
fn from (variant : CLKSEL_SYSCLK_SEL_A) -> Self { variant as u8 != 0 } } impl CLKSEL_SYSCLK_SEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKSEL_SYSCLK_SEL_A { match self . bits { false => CLKSEL_SYSCLK_SEL_A :: CLKSEL_SYSCLK_SEL_DISABLE , true => CLKSEL_SYSCLK_SEL_A :: CLKSEL_SYSCLK_SEL_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clksel_sysclk_sel_disable (& self) -> bool { * self == CLKSEL_SYSCLK_SEL_A :: CLKSEL_SYSCLK_SEL_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clksel_sysclk_sel_enable (& self) -> bool { * self == CLKSEL_SYSCLK_SEL_A :: CLKSEL_SYSCLK_SEL_ENABLE } } # [doc = "Field `CLKSEL_SYSCLK_SEL` writer - Selects SYSCLK as clock source if enabled"]
pub type CLKSEL_SYSCLK_SEL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKSEL_SYSCLK_SEL_A > ; impl < 'a , REG , const O : u8 > CLKSEL_SYSCLK_SEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clksel_sysclk_sel_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_SYSCLK_SEL_A :: CLKSEL_SYSCLK_SEL_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clksel_sysclk_sel_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_SYSCLK_SEL_A :: CLKSEL_SYSCLK_SEL_ENABLE) } } impl R { # [doc = "Bit 1 - Selects LFCLK as clock source if enabled"]
# [inline (always)]
pub fn clksel_lfclk_sel (& self) -> CLKSEL_LFCLK_SEL_R { CLKSEL_LFCLK_SEL_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Selects MFCLK as clock source if enabled"]
# [inline (always)]
pub fn clksel_mfclk_sel (& self) -> CLKSEL_MFCLK_SEL_R { CLKSEL_MFCLK_SEL_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Selects SYSCLK as clock source if enabled"]
# [inline (always)]
pub fn clksel_sysclk_sel (& self) -> CLKSEL_SYSCLK_SEL_R { CLKSEL_SYSCLK_SEL_R :: new (((self . bits >> 3) & 1) != 0) } } impl W { # [doc = "Bit 1 - Selects LFCLK as clock source if enabled"]
# [inline (always)]
# [must_use]
pub fn clksel_lfclk_sel (& mut self) -> CLKSEL_LFCLK_SEL_W < CLKSEL_SPEC , 1 > { CLKSEL_LFCLK_SEL_W :: new (self) } # [doc = "Bit 2 - Selects MFCLK as clock source if enabled"]
# [inline (always)]
# [must_use]
pub fn clksel_mfclk_sel (& mut self) -> CLKSEL_MFCLK_SEL_W < CLKSEL_SPEC , 2 > { CLKSEL_MFCLK_SEL_W :: new (self) } # [doc = "Bit 3 - Selects SYSCLK as clock source if enabled"]
# [inline (always)]
# [must_use]
pub fn clksel_sysclk_sel (& mut self) -> CLKSEL_SYSCLK_SEL_W < CLKSEL_SPEC , 3 > { CLKSEL_SYSCLK_SEL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Clock Select for Ultra Low Power peripherals\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clksel::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clksel::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CLKSEL_SPEC ; impl crate :: RegisterSpec for CLKSEL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`clksel::R`](R) reader structure"]
impl crate :: Readable for CLKSEL_SPEC { } # [doc = "`write(|w| ..)` method takes [`clksel::W`](W) writer structure"]
impl crate :: Writable for CLKSEL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CLKSEL to value 0"]
impl crate :: Resettable for CLKSEL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "PDBGCTL (rw) register accessor: Peripheral Debug Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pdbgctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pdbgctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pdbgctl`]
module"]
pub type PDBGCTL = crate :: Reg < pdbgctl :: PDBGCTL_SPEC > ; # [doc = "Peripheral Debug Control"]
pub mod pdbgctl { # [doc = "Register `PDBGCTL` reader"]
pub type R = crate :: R < PDBGCTL_SPEC > ; # [doc = "Register `PDBGCTL` writer"]
pub type W = crate :: W < PDBGCTL_SPEC > ; # [doc = "Field `PDBGCTL_FREE` reader - Free run control"]
pub type PDBGCTL_FREE_R = crate :: BitReader < PDBGCTL_FREE_A > ; # [doc = "Free run control\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PDBGCTL_FREE_A { # [doc = "0: STOP"]
PDBGCTL_FREE_STOP = 0 , # [doc = "1: RUN"]
PDBGCTL_FREE_RUN = 1 , } impl From < PDBGCTL_FREE_A > for bool { # [inline (always)]
fn from (variant : PDBGCTL_FREE_A) -> Self { variant as u8 != 0 } } impl PDBGCTL_FREE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PDBGCTL_FREE_A { match self . bits { false => PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP , true => PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN , } } # [doc = "STOP"]
# [inline (always)]
pub fn is_pdbgctl_free_stop (& self) -> bool { * self == PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP } # [doc = "RUN"]
# [inline (always)]
pub fn is_pdbgctl_free_run (& self) -> bool { * self == PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN } } # [doc = "Field `PDBGCTL_FREE` writer - Free run control"]
pub type PDBGCTL_FREE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PDBGCTL_FREE_A > ; impl < 'a , REG , const O : u8 > PDBGCTL_FREE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "STOP"]
# [inline (always)]
pub fn pdbgctl_free_stop (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP) } # [doc = "RUN"]
# [inline (always)]
pub fn pdbgctl_free_run (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN) } } # [doc = "Field `PDBGCTL_SOFT` reader - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
pub type PDBGCTL_SOFT_R = crate :: BitReader < PDBGCTL_SOFT_A > ; # [doc = "Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PDBGCTL_SOFT_A { # [doc = "0: IMMEDIATE"]
PDBGCTL_SOFT_IMMEDIATE = 0 , # [doc = "1: DELAYED"]
PDBGCTL_SOFT_DELAYED = 1 , } impl From < PDBGCTL_SOFT_A > for bool { # [inline (always)]
fn from (variant : PDBGCTL_SOFT_A) -> Self { variant as u8 != 0 } } impl PDBGCTL_SOFT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PDBGCTL_SOFT_A { match self . bits { false => PDBGCTL_SOFT_A :: PDBGCTL_SOFT_IMMEDIATE , true => PDBGCTL_SOFT_A :: PDBGCTL_SOFT_DELAYED , } } # [doc = "IMMEDIATE"]
# [inline (always)]
pub fn is_pdbgctl_soft_immediate (& self) -> bool { * self == PDBGCTL_SOFT_A :: PDBGCTL_SOFT_IMMEDIATE } # [doc = "DELAYED"]
# [inline (always)]
pub fn is_pdbgctl_soft_delayed (& self) -> bool { * self == PDBGCTL_SOFT_A :: PDBGCTL_SOFT_DELAYED } } # [doc = "Field `PDBGCTL_SOFT` writer - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
pub type PDBGCTL_SOFT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PDBGCTL_SOFT_A > ; impl < 'a , REG , const O : u8 > PDBGCTL_SOFT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "IMMEDIATE"]
# [inline (always)]
pub fn pdbgctl_soft_immediate (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_SOFT_A :: PDBGCTL_SOFT_IMMEDIATE) } # [doc = "DELAYED"]
# [inline (always)]
pub fn pdbgctl_soft_delayed (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_SOFT_A :: PDBGCTL_SOFT_DELAYED) } } impl R { # [doc = "Bit 0 - Free run control"]
# [inline (always)]
pub fn pdbgctl_free (& self) -> PDBGCTL_FREE_R { PDBGCTL_FREE_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
# [inline (always)]
pub fn pdbgctl_soft (& self) -> PDBGCTL_SOFT_R { PDBGCTL_SOFT_R :: new (((self . bits >> 1) & 1) != 0) } } impl W { # [doc = "Bit 0 - Free run control"]
# [inline (always)]
# [must_use]
pub fn pdbgctl_free (& mut self) -> PDBGCTL_FREE_W < PDBGCTL_SPEC , 0 > { PDBGCTL_FREE_W :: new (self) } # [doc = "Bit 1 - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
# [inline (always)]
# [must_use]
pub fn pdbgctl_soft (& mut self) -> PDBGCTL_SOFT_W < PDBGCTL_SPEC , 1 > { PDBGCTL_SOFT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Peripheral Debug Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pdbgctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pdbgctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PDBGCTL_SPEC ; impl crate :: RegisterSpec for PDBGCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pdbgctl::R`](R) reader structure"]
impl crate :: Readable for PDBGCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`pdbgctl::W`](W) writer structure"]
impl crate :: Writable for PDBGCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PDBGCTL to value 0"]
impl crate :: Resettable for PDBGCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_IIDX (r) register accessor: Interrupt Index Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_iidx`]
module"]
pub type INT_EVENT0_IIDX = crate :: Reg < int_event0_iidx :: INT_EVENT0_IIDX_SPEC > ; # [doc = "Interrupt Index Register"]
pub mod int_event0_iidx { # [doc = "Register `INT_EVENT0_IIDX` reader"]
pub type R = crate :: R < INT_EVENT0_IIDX_SPEC > ; # [doc = "Field `INT_EVENT0_IIDX_STAT` reader - Interrupt index status"]
pub type INT_EVENT0_IIDX_STAT_R = crate :: FieldReader < INT_EVENT0_IIDX_STAT_A > ; # [doc = "Interrupt index status\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum INT_EVENT0_IIDX_STAT_A { # [doc = "0: NO_INTR"]
INT_EVENT0_IIDX_STAT_NO_INTR = 0 , # [doc = "1: RXFIFO_OFV_EVT"]
INT_EVENT0_IIDX_STAT_RXFIFO_OFV_EVT = 1 , # [doc = "2: PER_EVT"]
INT_EVENT0_IIDX_STAT_PER_EVT = 2 , # [doc = "3: RTOUT_EVT"]
INT_EVENT0_IIDX_STAT_RTOUT_EVT = 3 , # [doc = "4: RX_EVT"]
INT_EVENT0_IIDX_STAT_RX_EVT = 4 , # [doc = "5: TX_EVT"]
INT_EVENT0_IIDX_STAT_TX_EVT = 5 , # [doc = "6: TX_EMPTY"]
INT_EVENT0_IIDX_STAT_TX_EMPTY = 6 , # [doc = "7: IDLE_EVT"]
INT_EVENT0_IIDX_STAT_IDLE_EVT = 7 , # [doc = "8: DMA_DONE_RX_EVT"]
INT_EVENT0_IIDX_STAT_DMA_DONE_RX_EVT = 8 , # [doc = "9: DMA_DONE_TX_EVT"]
INT_EVENT0_IIDX_STAT_DMA_DONE_TX_EVT = 9 , # [doc = "10: TXFIFO_UNF_EVT"]
INT_EVENT0_IIDX_STAT_TXFIFO_UNF_EVT = 10 , # [doc = "11: RXFULL_EVT"]
INT_EVENT0_IIDX_STAT_RXFULL_EVT = 11 , } impl From < INT_EVENT0_IIDX_STAT_A > for u8 { # [inline (always)]
fn from (variant : INT_EVENT0_IIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for INT_EVENT0_IIDX_STAT_A { type Ux = u8 ; } impl INT_EVENT0_IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < INT_EVENT0_IIDX_STAT_A > { match self . bits { 0 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_NO_INTR) , 1 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_RXFIFO_OFV_EVT) , 2 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_PER_EVT) , 3 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_RTOUT_EVT) , 4 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_RX_EVT) , 5 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_TX_EVT) , 6 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_TX_EMPTY) , 7 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_IDLE_EVT) , 8 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DMA_DONE_RX_EVT) , 9 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DMA_DONE_TX_EVT) , 10 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_TXFIFO_UNF_EVT) , 11 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_RXFULL_EVT) , _ => None , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_no_intr (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_NO_INTR } # [doc = "RXFIFO_OFV_EVT"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_rxfifo_ofv_evt (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_RXFIFO_OFV_EVT } # [doc = "PER_EVT"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_per_evt (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_PER_EVT } # [doc = "RTOUT_EVT"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_rtout_evt (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_RTOUT_EVT } # [doc = "RX_EVT"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_rx_evt (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_RX_EVT } # [doc = "TX_EVT"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_tx_evt (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_TX_EVT } # [doc = "TX_EMPTY"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_tx_empty (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_TX_EMPTY } # [doc = "IDLE_EVT"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_idle_evt (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_IDLE_EVT } # [doc = "DMA_DONE_RX_EVT"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dma_done_rx_evt (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DMA_DONE_RX_EVT } # [doc = "DMA_DONE_TX_EVT"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dma_done_tx_evt (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DMA_DONE_TX_EVT } # [doc = "TXFIFO_UNF_EVT"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_txfifo_unf_evt (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_TXFIFO_UNF_EVT } # [doc = "RXFULL_EVT"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_rxfull_evt (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_RXFULL_EVT } } impl R { # [doc = "Bits 0:7 - Interrupt index status"]
# [inline (always)]
pub fn int_event0_iidx_stat (& self) -> INT_EVENT0_IIDX_STAT_R { INT_EVENT0_IIDX_STAT_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Interrupt Index Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_IIDX_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event0_iidx::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT0_IIDX_SPEC { } # [doc = "`reset()` method sets INT_EVENT0_IIDX to value 0"]
impl crate :: Resettable for INT_EVENT0_IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_IMASK (rw) register accessor: Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_imask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_imask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_imask`]
module"]
pub type INT_EVENT0_IMASK = crate :: Reg < int_event0_imask :: INT_EVENT0_IMASK_SPEC > ; # [doc = "Interrupt mask"]
pub mod int_event0_imask { # [doc = "Register `INT_EVENT0_IMASK` reader"]
pub type R = crate :: R < INT_EVENT0_IMASK_SPEC > ; # [doc = "Register `INT_EVENT0_IMASK` writer"]
pub type W = crate :: W < INT_EVENT0_IMASK_SPEC > ; # [doc = "Field `INT_EVENT0_IMASK_RXFIFO_OVF` reader - RXFIFO overflow event mask."]
pub type INT_EVENT0_IMASK_RXFIFO_OVF_R = crate :: BitReader < INT_EVENT0_IMASK_RXFIFO_OVF_A > ; # [doc = "RXFIFO overflow event mask.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_RXFIFO_OVF_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_RXFIFO_OVF_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_RXFIFO_OVF_SET = 1 , } impl From < INT_EVENT0_IMASK_RXFIFO_OVF_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_RXFIFO_OVF_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_RXFIFO_OVF_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_RXFIFO_OVF_A { match self . bits { false => INT_EVENT0_IMASK_RXFIFO_OVF_A :: INT_EVENT0_IMASK_RXFIFO_OVF_CLR , true => INT_EVENT0_IMASK_RXFIFO_OVF_A :: INT_EVENT0_IMASK_RXFIFO_OVF_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_rxfifo_ovf_clr (& self) -> bool { * self == INT_EVENT0_IMASK_RXFIFO_OVF_A :: INT_EVENT0_IMASK_RXFIFO_OVF_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_rxfifo_ovf_set (& self) -> bool { * self == INT_EVENT0_IMASK_RXFIFO_OVF_A :: INT_EVENT0_IMASK_RXFIFO_OVF_SET } } # [doc = "Field `INT_EVENT0_IMASK_RXFIFO_OVF` writer - RXFIFO overflow event mask."]
pub type INT_EVENT0_IMASK_RXFIFO_OVF_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_RXFIFO_OVF_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_RXFIFO_OVF_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_rxfifo_ovf_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_RXFIFO_OVF_A :: INT_EVENT0_IMASK_RXFIFO_OVF_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_rxfifo_ovf_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_RXFIFO_OVF_A :: INT_EVENT0_IMASK_RXFIFO_OVF_SET) } } # [doc = "Field `INT_EVENT0_IMASK_PER` reader - Parity error event mask."]
pub type INT_EVENT0_IMASK_PER_R = crate :: BitReader < INT_EVENT0_IMASK_PER_A > ; # [doc = "Parity error event mask.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_PER_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_PER_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_PER_SET = 1 , } impl From < INT_EVENT0_IMASK_PER_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_PER_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_PER_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_PER_A { match self . bits { false => INT_EVENT0_IMASK_PER_A :: INT_EVENT0_IMASK_PER_CLR , true => INT_EVENT0_IMASK_PER_A :: INT_EVENT0_IMASK_PER_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_per_clr (& self) -> bool { * self == INT_EVENT0_IMASK_PER_A :: INT_EVENT0_IMASK_PER_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_per_set (& self) -> bool { * self == INT_EVENT0_IMASK_PER_A :: INT_EVENT0_IMASK_PER_SET } } # [doc = "Field `INT_EVENT0_IMASK_PER` writer - Parity error event mask."]
pub type INT_EVENT0_IMASK_PER_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_PER_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_PER_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_per_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_PER_A :: INT_EVENT0_IMASK_PER_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_per_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_PER_A :: INT_EVENT0_IMASK_PER_SET) } } # [doc = "Field `INT_EVENT0_IMASK_RTOUT` reader - Enable SPI Receive Time-Out event mask."]
pub type INT_EVENT0_IMASK_RTOUT_R = crate :: BitReader < INT_EVENT0_IMASK_RTOUT_A > ; # [doc = "Enable SPI Receive Time-Out event mask.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_RTOUT_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_RTOUT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_RTOUT_SET = 1 , } impl From < INT_EVENT0_IMASK_RTOUT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_RTOUT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_RTOUT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_RTOUT_A { match self . bits { false => INT_EVENT0_IMASK_RTOUT_A :: INT_EVENT0_IMASK_RTOUT_CLR , true => INT_EVENT0_IMASK_RTOUT_A :: INT_EVENT0_IMASK_RTOUT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_rtout_clr (& self) -> bool { * self == INT_EVENT0_IMASK_RTOUT_A :: INT_EVENT0_IMASK_RTOUT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_rtout_set (& self) -> bool { * self == INT_EVENT0_IMASK_RTOUT_A :: INT_EVENT0_IMASK_RTOUT_SET } } # [doc = "Field `INT_EVENT0_IMASK_RTOUT` writer - Enable SPI Receive Time-Out event mask."]
pub type INT_EVENT0_IMASK_RTOUT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_RTOUT_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_RTOUT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_rtout_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_RTOUT_A :: INT_EVENT0_IMASK_RTOUT_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_rtout_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_RTOUT_A :: INT_EVENT0_IMASK_RTOUT_SET) } } # [doc = "Field `INT_EVENT0_IMASK_RX` reader - Receive FIFO event.This interrupt is set if the selected Receive FIFO level has been reached"]
pub type INT_EVENT0_IMASK_RX_R = crate :: BitReader < INT_EVENT0_IMASK_RX_A > ; # [doc = "Receive FIFO event.This interrupt is set if the selected Receive FIFO level has been reached\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_RX_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_RX_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_RX_SET = 1 , } impl From < INT_EVENT0_IMASK_RX_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_RX_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_RX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_RX_A { match self . bits { false => INT_EVENT0_IMASK_RX_A :: INT_EVENT0_IMASK_RX_CLR , true => INT_EVENT0_IMASK_RX_A :: INT_EVENT0_IMASK_RX_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_rx_clr (& self) -> bool { * self == INT_EVENT0_IMASK_RX_A :: INT_EVENT0_IMASK_RX_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_rx_set (& self) -> bool { * self == INT_EVENT0_IMASK_RX_A :: INT_EVENT0_IMASK_RX_SET } } # [doc = "Field `INT_EVENT0_IMASK_RX` writer - Receive FIFO event.This interrupt is set if the selected Receive FIFO level has been reached"]
pub type INT_EVENT0_IMASK_RX_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_RX_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_RX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_rx_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_RX_A :: INT_EVENT0_IMASK_RX_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_rx_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_RX_A :: INT_EVENT0_IMASK_RX_SET) } } # [doc = "Field `INT_EVENT0_IMASK_TX` reader - Transmit FIFO event mask."]
pub type INT_EVENT0_IMASK_TX_R = crate :: BitReader < INT_EVENT0_IMASK_TX_A > ; # [doc = "Transmit FIFO event mask.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_TX_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_TX_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_TX_SET = 1 , } impl From < INT_EVENT0_IMASK_TX_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_TX_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_TX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_TX_A { match self . bits { false => INT_EVENT0_IMASK_TX_A :: INT_EVENT0_IMASK_TX_CLR , true => INT_EVENT0_IMASK_TX_A :: INT_EVENT0_IMASK_TX_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_tx_clr (& self) -> bool { * self == INT_EVENT0_IMASK_TX_A :: INT_EVENT0_IMASK_TX_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_tx_set (& self) -> bool { * self == INT_EVENT0_IMASK_TX_A :: INT_EVENT0_IMASK_TX_SET } } # [doc = "Field `INT_EVENT0_IMASK_TX` writer - Transmit FIFO event mask."]
pub type INT_EVENT0_IMASK_TX_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_TX_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_TX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_tx_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_TX_A :: INT_EVENT0_IMASK_TX_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_tx_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_TX_A :: INT_EVENT0_IMASK_TX_SET) } } # [doc = "Field `INT_EVENT0_IMASK_TXEMPTY` reader - Transmit FIFO Empty event mask."]
pub type INT_EVENT0_IMASK_TXEMPTY_R = crate :: BitReader < INT_EVENT0_IMASK_TXEMPTY_A > ; # [doc = "Transmit FIFO Empty event mask.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_TXEMPTY_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_TXEMPTY_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_TXEMPTY_SET = 1 , } impl From < INT_EVENT0_IMASK_TXEMPTY_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_TXEMPTY_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_TXEMPTY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_TXEMPTY_A { match self . bits { false => INT_EVENT0_IMASK_TXEMPTY_A :: INT_EVENT0_IMASK_TXEMPTY_CLR , true => INT_EVENT0_IMASK_TXEMPTY_A :: INT_EVENT0_IMASK_TXEMPTY_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_txempty_clr (& self) -> bool { * self == INT_EVENT0_IMASK_TXEMPTY_A :: INT_EVENT0_IMASK_TXEMPTY_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_txempty_set (& self) -> bool { * self == INT_EVENT0_IMASK_TXEMPTY_A :: INT_EVENT0_IMASK_TXEMPTY_SET } } # [doc = "Field `INT_EVENT0_IMASK_TXEMPTY` writer - Transmit FIFO Empty event mask."]
pub type INT_EVENT0_IMASK_TXEMPTY_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_TXEMPTY_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_TXEMPTY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_txempty_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_TXEMPTY_A :: INT_EVENT0_IMASK_TXEMPTY_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_txempty_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_TXEMPTY_A :: INT_EVENT0_IMASK_TXEMPTY_SET) } } # [doc = "Field `INT_EVENT0_IMASK_IDLE` reader - SPI Idle event mask."]
pub type INT_EVENT0_IMASK_IDLE_R = crate :: BitReader < INT_EVENT0_IMASK_IDLE_A > ; # [doc = "SPI Idle event mask.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_IDLE_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_IDLE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_IDLE_SET = 1 , } impl From < INT_EVENT0_IMASK_IDLE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_IDLE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_IDLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_IDLE_A { match self . bits { false => INT_EVENT0_IMASK_IDLE_A :: INT_EVENT0_IMASK_IDLE_CLR , true => INT_EVENT0_IMASK_IDLE_A :: INT_EVENT0_IMASK_IDLE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_idle_clr (& self) -> bool { * self == INT_EVENT0_IMASK_IDLE_A :: INT_EVENT0_IMASK_IDLE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_idle_set (& self) -> bool { * self == INT_EVENT0_IMASK_IDLE_A :: INT_EVENT0_IMASK_IDLE_SET } } # [doc = "Field `INT_EVENT0_IMASK_IDLE` writer - SPI Idle event mask."]
pub type INT_EVENT0_IMASK_IDLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_IDLE_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_IDLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_idle_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_IDLE_A :: INT_EVENT0_IMASK_IDLE_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_idle_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_IDLE_A :: INT_EVENT0_IMASK_IDLE_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DMA_DONE_RX` reader - DMA Done 1 event for RX event mask."]
pub type INT_EVENT0_IMASK_DMA_DONE_RX_R = crate :: BitReader < INT_EVENT0_IMASK_DMA_DONE_RX_A > ; # [doc = "DMA Done 1 event for RX event mask.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DMA_DONE_RX_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DMA_DONE_RX_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DMA_DONE_RX_SET = 1 , } impl From < INT_EVENT0_IMASK_DMA_DONE_RX_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DMA_DONE_RX_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DMA_DONE_RX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DMA_DONE_RX_A { match self . bits { false => INT_EVENT0_IMASK_DMA_DONE_RX_A :: INT_EVENT0_IMASK_DMA_DONE_RX_CLR , true => INT_EVENT0_IMASK_DMA_DONE_RX_A :: INT_EVENT0_IMASK_DMA_DONE_RX_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dma_done_rx_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DMA_DONE_RX_A :: INT_EVENT0_IMASK_DMA_DONE_RX_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dma_done_rx_set (& self) -> bool { * self == INT_EVENT0_IMASK_DMA_DONE_RX_A :: INT_EVENT0_IMASK_DMA_DONE_RX_SET } } # [doc = "Field `INT_EVENT0_IMASK_DMA_DONE_RX` writer - DMA Done 1 event for RX event mask."]
pub type INT_EVENT0_IMASK_DMA_DONE_RX_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DMA_DONE_RX_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DMA_DONE_RX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dma_done_rx_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DMA_DONE_RX_A :: INT_EVENT0_IMASK_DMA_DONE_RX_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dma_done_rx_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DMA_DONE_RX_A :: INT_EVENT0_IMASK_DMA_DONE_RX_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DMA_DONE_TX` reader - DMA Done 1 event for TX event mask."]
pub type INT_EVENT0_IMASK_DMA_DONE_TX_R = crate :: BitReader < INT_EVENT0_IMASK_DMA_DONE_TX_A > ; # [doc = "DMA Done 1 event for TX event mask.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DMA_DONE_TX_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DMA_DONE_TX_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DMA_DONE_TX_SET = 1 , } impl From < INT_EVENT0_IMASK_DMA_DONE_TX_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DMA_DONE_TX_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DMA_DONE_TX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DMA_DONE_TX_A { match self . bits { false => INT_EVENT0_IMASK_DMA_DONE_TX_A :: INT_EVENT0_IMASK_DMA_DONE_TX_CLR , true => INT_EVENT0_IMASK_DMA_DONE_TX_A :: INT_EVENT0_IMASK_DMA_DONE_TX_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dma_done_tx_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DMA_DONE_TX_A :: INT_EVENT0_IMASK_DMA_DONE_TX_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dma_done_tx_set (& self) -> bool { * self == INT_EVENT0_IMASK_DMA_DONE_TX_A :: INT_EVENT0_IMASK_DMA_DONE_TX_SET } } # [doc = "Field `INT_EVENT0_IMASK_DMA_DONE_TX` writer - DMA Done 1 event for TX event mask."]
pub type INT_EVENT0_IMASK_DMA_DONE_TX_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DMA_DONE_TX_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DMA_DONE_TX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dma_done_tx_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DMA_DONE_TX_A :: INT_EVENT0_IMASK_DMA_DONE_TX_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dma_done_tx_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DMA_DONE_TX_A :: INT_EVENT0_IMASK_DMA_DONE_TX_SET) } } # [doc = "Field `INT_EVENT0_IMASK_TXFIFO_UNF` reader - TX FIFO underflow interrupt mask"]
pub type INT_EVENT0_IMASK_TXFIFO_UNF_R = crate :: BitReader < INT_EVENT0_IMASK_TXFIFO_UNF_A > ; # [doc = "TX FIFO underflow interrupt mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_TXFIFO_UNF_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_TXFIFO_UNF_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_TXFIFO_UNF_SET = 1 , } impl From < INT_EVENT0_IMASK_TXFIFO_UNF_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_TXFIFO_UNF_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_TXFIFO_UNF_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_TXFIFO_UNF_A { match self . bits { false => INT_EVENT0_IMASK_TXFIFO_UNF_A :: INT_EVENT0_IMASK_TXFIFO_UNF_CLR , true => INT_EVENT0_IMASK_TXFIFO_UNF_A :: INT_EVENT0_IMASK_TXFIFO_UNF_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_txfifo_unf_clr (& self) -> bool { * self == INT_EVENT0_IMASK_TXFIFO_UNF_A :: INT_EVENT0_IMASK_TXFIFO_UNF_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_txfifo_unf_set (& self) -> bool { * self == INT_EVENT0_IMASK_TXFIFO_UNF_A :: INT_EVENT0_IMASK_TXFIFO_UNF_SET } } # [doc = "Field `INT_EVENT0_IMASK_TXFIFO_UNF` writer - TX FIFO underflow interrupt mask"]
pub type INT_EVENT0_IMASK_TXFIFO_UNF_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_TXFIFO_UNF_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_TXFIFO_UNF_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_txfifo_unf_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_TXFIFO_UNF_A :: INT_EVENT0_IMASK_TXFIFO_UNF_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_txfifo_unf_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_TXFIFO_UNF_A :: INT_EVENT0_IMASK_TXFIFO_UNF_SET) } } # [doc = "Field `INT_EVENT0_IMASK_RXFULL` reader - RX FIFO Full Interrupt Mask"]
pub type INT_EVENT0_IMASK_RXFULL_R = crate :: BitReader < INT_EVENT0_IMASK_RXFULL_A > ; # [doc = "RX FIFO Full Interrupt Mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_RXFULL_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_RXFULL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_RXFULL_SET = 1 , } impl From < INT_EVENT0_IMASK_RXFULL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_RXFULL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_RXFULL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_RXFULL_A { match self . bits { false => INT_EVENT0_IMASK_RXFULL_A :: INT_EVENT0_IMASK_RXFULL_CLR , true => INT_EVENT0_IMASK_RXFULL_A :: INT_EVENT0_IMASK_RXFULL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_rxfull_clr (& self) -> bool { * self == INT_EVENT0_IMASK_RXFULL_A :: INT_EVENT0_IMASK_RXFULL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_rxfull_set (& self) -> bool { * self == INT_EVENT0_IMASK_RXFULL_A :: INT_EVENT0_IMASK_RXFULL_SET } } # [doc = "Field `INT_EVENT0_IMASK_RXFULL` writer - RX FIFO Full Interrupt Mask"]
pub type INT_EVENT0_IMASK_RXFULL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_RXFULL_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_RXFULL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_rxfull_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_RXFULL_A :: INT_EVENT0_IMASK_RXFULL_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_rxfull_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_RXFULL_A :: INT_EVENT0_IMASK_RXFULL_SET) } } impl R { # [doc = "Bit 0 - RXFIFO overflow event mask."]
# [inline (always)]
pub fn int_event0_imask_rxfifo_ovf (& self) -> INT_EVENT0_IMASK_RXFIFO_OVF_R { INT_EVENT0_IMASK_RXFIFO_OVF_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Parity error event mask."]
# [inline (always)]
pub fn int_event0_imask_per (& self) -> INT_EVENT0_IMASK_PER_R { INT_EVENT0_IMASK_PER_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Enable SPI Receive Time-Out event mask."]
# [inline (always)]
pub fn int_event0_imask_rtout (& self) -> INT_EVENT0_IMASK_RTOUT_R { INT_EVENT0_IMASK_RTOUT_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Receive FIFO event.This interrupt is set if the selected Receive FIFO level has been reached"]
# [inline (always)]
pub fn int_event0_imask_rx (& self) -> INT_EVENT0_IMASK_RX_R { INT_EVENT0_IMASK_RX_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - Transmit FIFO event mask."]
# [inline (always)]
pub fn int_event0_imask_tx (& self) -> INT_EVENT0_IMASK_TX_R { INT_EVENT0_IMASK_TX_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Transmit FIFO Empty event mask."]
# [inline (always)]
pub fn int_event0_imask_txempty (& self) -> INT_EVENT0_IMASK_TXEMPTY_R { INT_EVENT0_IMASK_TXEMPTY_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - SPI Idle event mask."]
# [inline (always)]
pub fn int_event0_imask_idle (& self) -> INT_EVENT0_IMASK_IDLE_R { INT_EVENT0_IMASK_IDLE_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 7 - DMA Done 1 event for RX event mask."]
# [inline (always)]
pub fn int_event0_imask_dma_done_rx (& self) -> INT_EVENT0_IMASK_DMA_DONE_RX_R { INT_EVENT0_IMASK_DMA_DONE_RX_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - DMA Done 1 event for TX event mask."]
# [inline (always)]
pub fn int_event0_imask_dma_done_tx (& self) -> INT_EVENT0_IMASK_DMA_DONE_TX_R { INT_EVENT0_IMASK_DMA_DONE_TX_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - TX FIFO underflow interrupt mask"]
# [inline (always)]
pub fn int_event0_imask_txfifo_unf (& self) -> INT_EVENT0_IMASK_TXFIFO_UNF_R { INT_EVENT0_IMASK_TXFIFO_UNF_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - RX FIFO Full Interrupt Mask"]
# [inline (always)]
pub fn int_event0_imask_rxfull (& self) -> INT_EVENT0_IMASK_RXFULL_R { INT_EVENT0_IMASK_RXFULL_R :: new (((self . bits >> 10) & 1) != 0) } } impl W { # [doc = "Bit 0 - RXFIFO overflow event mask."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_rxfifo_ovf (& mut self) -> INT_EVENT0_IMASK_RXFIFO_OVF_W < INT_EVENT0_IMASK_SPEC , 0 > { INT_EVENT0_IMASK_RXFIFO_OVF_W :: new (self) } # [doc = "Bit 1 - Parity error event mask."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_per (& mut self) -> INT_EVENT0_IMASK_PER_W < INT_EVENT0_IMASK_SPEC , 1 > { INT_EVENT0_IMASK_PER_W :: new (self) } # [doc = "Bit 2 - Enable SPI Receive Time-Out event mask."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_rtout (& mut self) -> INT_EVENT0_IMASK_RTOUT_W < INT_EVENT0_IMASK_SPEC , 2 > { INT_EVENT0_IMASK_RTOUT_W :: new (self) } # [doc = "Bit 3 - Receive FIFO event.This interrupt is set if the selected Receive FIFO level has been reached"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_rx (& mut self) -> INT_EVENT0_IMASK_RX_W < INT_EVENT0_IMASK_SPEC , 3 > { INT_EVENT0_IMASK_RX_W :: new (self) } # [doc = "Bit 4 - Transmit FIFO event mask."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_tx (& mut self) -> INT_EVENT0_IMASK_TX_W < INT_EVENT0_IMASK_SPEC , 4 > { INT_EVENT0_IMASK_TX_W :: new (self) } # [doc = "Bit 5 - Transmit FIFO Empty event mask."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_txempty (& mut self) -> INT_EVENT0_IMASK_TXEMPTY_W < INT_EVENT0_IMASK_SPEC , 5 > { INT_EVENT0_IMASK_TXEMPTY_W :: new (self) } # [doc = "Bit 6 - SPI Idle event mask."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_idle (& mut self) -> INT_EVENT0_IMASK_IDLE_W < INT_EVENT0_IMASK_SPEC , 6 > { INT_EVENT0_IMASK_IDLE_W :: new (self) } # [doc = "Bit 7 - DMA Done 1 event for RX event mask."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dma_done_rx (& mut self) -> INT_EVENT0_IMASK_DMA_DONE_RX_W < INT_EVENT0_IMASK_SPEC , 7 > { INT_EVENT0_IMASK_DMA_DONE_RX_W :: new (self) } # [doc = "Bit 8 - DMA Done 1 event for TX event mask."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dma_done_tx (& mut self) -> INT_EVENT0_IMASK_DMA_DONE_TX_W < INT_EVENT0_IMASK_SPEC , 8 > { INT_EVENT0_IMASK_DMA_DONE_TX_W :: new (self) } # [doc = "Bit 9 - TX FIFO underflow interrupt mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_txfifo_unf (& mut self) -> INT_EVENT0_IMASK_TXFIFO_UNF_W < INT_EVENT0_IMASK_SPEC , 9 > { INT_EVENT0_IMASK_TXFIFO_UNF_W :: new (self) } # [doc = "Bit 10 - RX FIFO Full Interrupt Mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_rxfull (& mut self) -> INT_EVENT0_IMASK_RXFULL_W < INT_EVENT0_IMASK_SPEC , 10 > { INT_EVENT0_IMASK_RXFULL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_imask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_imask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_IMASK_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event0_imask::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT0_IMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`int_event0_imask::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT0_IMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT0_IMASK to value 0"]
impl crate :: Resettable for INT_EVENT0_IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_RIS (r) register accessor: Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_ris`]
module"]
pub type INT_EVENT0_RIS = crate :: Reg < int_event0_ris :: INT_EVENT0_RIS_SPEC > ; # [doc = "Raw interrupt status"]
pub mod int_event0_ris { # [doc = "Register `INT_EVENT0_RIS` reader"]
pub type R = crate :: R < INT_EVENT0_RIS_SPEC > ; # [doc = "Field `INT_EVENT0_RIS_RXFIFO_OVF` reader - RXFIFO overflow event. This interrupt is set if an RX FIFO overflow has been detected."]
pub type INT_EVENT0_RIS_RXFIFO_OVF_R = crate :: BitReader < INT_EVENT0_RIS_RXFIFO_OVF_A > ; # [doc = "RXFIFO overflow event. This interrupt is set if an RX FIFO overflow has been detected.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_RXFIFO_OVF_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_RXFIFO_OVF_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_RXFIFO_OVF_SET = 1 , } impl From < INT_EVENT0_RIS_RXFIFO_OVF_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_RXFIFO_OVF_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_RXFIFO_OVF_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_RXFIFO_OVF_A { match self . bits { false => INT_EVENT0_RIS_RXFIFO_OVF_A :: INT_EVENT0_RIS_RXFIFO_OVF_CLR , true => INT_EVENT0_RIS_RXFIFO_OVF_A :: INT_EVENT0_RIS_RXFIFO_OVF_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_rxfifo_ovf_clr (& self) -> bool { * self == INT_EVENT0_RIS_RXFIFO_OVF_A :: INT_EVENT0_RIS_RXFIFO_OVF_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_rxfifo_ovf_set (& self) -> bool { * self == INT_EVENT0_RIS_RXFIFO_OVF_A :: INT_EVENT0_RIS_RXFIFO_OVF_SET } } # [doc = "Field `INT_EVENT0_RIS_PER` reader - Parity error event: this bit is set if a Parity error has been detected"]
pub type INT_EVENT0_RIS_PER_R = crate :: BitReader < INT_EVENT0_RIS_PER_A > ; # [doc = "Parity error event: this bit is set if a Parity error has been detected\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_PER_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_PER_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_PER_SET = 1 , } impl From < INT_EVENT0_RIS_PER_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_PER_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_PER_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_PER_A { match self . bits { false => INT_EVENT0_RIS_PER_A :: INT_EVENT0_RIS_PER_CLR , true => INT_EVENT0_RIS_PER_A :: INT_EVENT0_RIS_PER_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_per_clr (& self) -> bool { * self == INT_EVENT0_RIS_PER_A :: INT_EVENT0_RIS_PER_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_per_set (& self) -> bool { * self == INT_EVENT0_RIS_PER_A :: INT_EVENT0_RIS_PER_SET } } # [doc = "Field `INT_EVENT0_RIS_RTOUT` reader - SPI Receive Time-Out event."]
pub type INT_EVENT0_RIS_RTOUT_R = crate :: BitReader < INT_EVENT0_RIS_RTOUT_A > ; # [doc = "SPI Receive Time-Out event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_RTOUT_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_RTOUT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_RTOUT_SET = 1 , } impl From < INT_EVENT0_RIS_RTOUT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_RTOUT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_RTOUT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_RTOUT_A { match self . bits { false => INT_EVENT0_RIS_RTOUT_A :: INT_EVENT0_RIS_RTOUT_CLR , true => INT_EVENT0_RIS_RTOUT_A :: INT_EVENT0_RIS_RTOUT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_rtout_clr (& self) -> bool { * self == INT_EVENT0_RIS_RTOUT_A :: INT_EVENT0_RIS_RTOUT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_rtout_set (& self) -> bool { * self == INT_EVENT0_RIS_RTOUT_A :: INT_EVENT0_RIS_RTOUT_SET } } # [doc = "Field `INT_EVENT0_RIS_RX` reader - Receive FIFO event.This interrupt is set if the selected Receive FIFO level has been reached"]
pub type INT_EVENT0_RIS_RX_R = crate :: BitReader < INT_EVENT0_RIS_RX_A > ; # [doc = "Receive FIFO event.This interrupt is set if the selected Receive FIFO level has been reached\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_RX_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_RX_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_RX_SET = 1 , } impl From < INT_EVENT0_RIS_RX_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_RX_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_RX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_RX_A { match self . bits { false => INT_EVENT0_RIS_RX_A :: INT_EVENT0_RIS_RX_CLR , true => INT_EVENT0_RIS_RX_A :: INT_EVENT0_RIS_RX_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_rx_clr (& self) -> bool { * self == INT_EVENT0_RIS_RX_A :: INT_EVENT0_RIS_RX_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_rx_set (& self) -> bool { * self == INT_EVENT0_RIS_RX_A :: INT_EVENT0_RIS_RX_SET } } # [doc = "Field `INT_EVENT0_RIS_TX` reader - Transmit FIFO event..This interrupt is set if the selected Transmit FIFO level has been reached."]
pub type INT_EVENT0_RIS_TX_R = crate :: BitReader < INT_EVENT0_RIS_TX_A > ; # [doc = "Transmit FIFO event..This interrupt is set if the selected Transmit FIFO level has been reached.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_TX_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_TX_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_TX_SET = 1 , } impl From < INT_EVENT0_RIS_TX_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_TX_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_TX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_TX_A { match self . bits { false => INT_EVENT0_RIS_TX_A :: INT_EVENT0_RIS_TX_CLR , true => INT_EVENT0_RIS_TX_A :: INT_EVENT0_RIS_TX_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_tx_clr (& self) -> bool { * self == INT_EVENT0_RIS_TX_A :: INT_EVENT0_RIS_TX_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_tx_set (& self) -> bool { * self == INT_EVENT0_RIS_TX_A :: INT_EVENT0_RIS_TX_SET } } # [doc = "Field `INT_EVENT0_RIS_TXEMPTY` reader - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been move to the shift register."]
pub type INT_EVENT0_RIS_TXEMPTY_R = crate :: BitReader < INT_EVENT0_RIS_TXEMPTY_A > ; # [doc = "Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been move to the shift register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_TXEMPTY_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_TXEMPTY_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_TXEMPTY_SET = 1 , } impl From < INT_EVENT0_RIS_TXEMPTY_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_TXEMPTY_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_TXEMPTY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_TXEMPTY_A { match self . bits { false => INT_EVENT0_RIS_TXEMPTY_A :: INT_EVENT0_RIS_TXEMPTY_CLR , true => INT_EVENT0_RIS_TXEMPTY_A :: INT_EVENT0_RIS_TXEMPTY_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_txempty_clr (& self) -> bool { * self == INT_EVENT0_RIS_TXEMPTY_A :: INT_EVENT0_RIS_TXEMPTY_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_txempty_set (& self) -> bool { * self == INT_EVENT0_RIS_TXEMPTY_A :: INT_EVENT0_RIS_TXEMPTY_SET } } # [doc = "Field `INT_EVENT0_RIS_IDLE` reader - SPI has done finished transfers and changed into IDLE mode. This bit is set when BUSY goes low."]
pub type INT_EVENT0_RIS_IDLE_R = crate :: BitReader < INT_EVENT0_RIS_IDLE_A > ; # [doc = "SPI has done finished transfers and changed into IDLE mode. This bit is set when BUSY goes low.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_IDLE_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_IDLE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_IDLE_SET = 1 , } impl From < INT_EVENT0_RIS_IDLE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_IDLE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_IDLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_IDLE_A { match self . bits { false => INT_EVENT0_RIS_IDLE_A :: INT_EVENT0_RIS_IDLE_CLR , true => INT_EVENT0_RIS_IDLE_A :: INT_EVENT0_RIS_IDLE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_idle_clr (& self) -> bool { * self == INT_EVENT0_RIS_IDLE_A :: INT_EVENT0_RIS_IDLE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_idle_set (& self) -> bool { * self == INT_EVENT0_RIS_IDLE_A :: INT_EVENT0_RIS_IDLE_SET } } # [doc = "Field `INT_EVENT0_RIS_DMA_DONE_RX` reader - DMA Done 1 event for RX. This interrupt is set if the RX DMA channel sends the DONE signal. This allows the handling of the DMA event inside the mapped peripheral."]
pub type INT_EVENT0_RIS_DMA_DONE_RX_R = crate :: BitReader < INT_EVENT0_RIS_DMA_DONE_RX_A > ; # [doc = "DMA Done 1 event for RX. This interrupt is set if the RX DMA channel sends the DONE signal. This allows the handling of the DMA event inside the mapped peripheral.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DMA_DONE_RX_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DMA_DONE_RX_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DMA_DONE_RX_SET = 1 , } impl From < INT_EVENT0_RIS_DMA_DONE_RX_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DMA_DONE_RX_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DMA_DONE_RX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DMA_DONE_RX_A { match self . bits { false => INT_EVENT0_RIS_DMA_DONE_RX_A :: INT_EVENT0_RIS_DMA_DONE_RX_CLR , true => INT_EVENT0_RIS_DMA_DONE_RX_A :: INT_EVENT0_RIS_DMA_DONE_RX_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dma_done_rx_clr (& self) -> bool { * self == INT_EVENT0_RIS_DMA_DONE_RX_A :: INT_EVENT0_RIS_DMA_DONE_RX_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dma_done_rx_set (& self) -> bool { * self == INT_EVENT0_RIS_DMA_DONE_RX_A :: INT_EVENT0_RIS_DMA_DONE_RX_SET } } # [doc = "Field `INT_EVENT0_RIS_DMA_DONE_TX` reader - DMA Done 1 event for TX. This interrupt is set if the TX DMA channel sends the DONE signal. This allows the handling of the DMA event inside the mapped peripheral."]
pub type INT_EVENT0_RIS_DMA_DONE_TX_R = crate :: BitReader < INT_EVENT0_RIS_DMA_DONE_TX_A > ; # [doc = "DMA Done 1 event for TX. This interrupt is set if the TX DMA channel sends the DONE signal. This allows the handling of the DMA event inside the mapped peripheral.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DMA_DONE_TX_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DMA_DONE_TX_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DMA_DONE_TX_SET = 1 , } impl From < INT_EVENT0_RIS_DMA_DONE_TX_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DMA_DONE_TX_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DMA_DONE_TX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DMA_DONE_TX_A { match self . bits { false => INT_EVENT0_RIS_DMA_DONE_TX_A :: INT_EVENT0_RIS_DMA_DONE_TX_CLR , true => INT_EVENT0_RIS_DMA_DONE_TX_A :: INT_EVENT0_RIS_DMA_DONE_TX_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dma_done_tx_clr (& self) -> bool { * self == INT_EVENT0_RIS_DMA_DONE_TX_A :: INT_EVENT0_RIS_DMA_DONE_TX_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dma_done_tx_set (& self) -> bool { * self == INT_EVENT0_RIS_DMA_DONE_TX_A :: INT_EVENT0_RIS_DMA_DONE_TX_SET } } # [doc = "Field `INT_EVENT0_RIS_TXFIFO_UNF` reader - TX FIFO Underflow Interrupt"]
pub type INT_EVENT0_RIS_TXFIFO_UNF_R = crate :: BitReader < INT_EVENT0_RIS_TXFIFO_UNF_A > ; # [doc = "TX FIFO Underflow Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_TXFIFO_UNF_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_TXFIFO_UNF_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_TXFIFO_UNF_SET = 1 , } impl From < INT_EVENT0_RIS_TXFIFO_UNF_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_TXFIFO_UNF_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_TXFIFO_UNF_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_TXFIFO_UNF_A { match self . bits { false => INT_EVENT0_RIS_TXFIFO_UNF_A :: INT_EVENT0_RIS_TXFIFO_UNF_CLR , true => INT_EVENT0_RIS_TXFIFO_UNF_A :: INT_EVENT0_RIS_TXFIFO_UNF_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_txfifo_unf_clr (& self) -> bool { * self == INT_EVENT0_RIS_TXFIFO_UNF_A :: INT_EVENT0_RIS_TXFIFO_UNF_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_txfifo_unf_set (& self) -> bool { * self == INT_EVENT0_RIS_TXFIFO_UNF_A :: INT_EVENT0_RIS_TXFIFO_UNF_SET } } # [doc = "Field `INT_EVENT0_RIS_RXFULL` reader - RX FIFO Full Interrupt"]
pub type INT_EVENT0_RIS_RXFULL_R = crate :: BitReader < INT_EVENT0_RIS_RXFULL_A > ; # [doc = "RX FIFO Full Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_RXFULL_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_RXFULL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_RXFULL_SET = 1 , } impl From < INT_EVENT0_RIS_RXFULL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_RXFULL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_RXFULL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_RXFULL_A { match self . bits { false => INT_EVENT0_RIS_RXFULL_A :: INT_EVENT0_RIS_RXFULL_CLR , true => INT_EVENT0_RIS_RXFULL_A :: INT_EVENT0_RIS_RXFULL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_rxfull_clr (& self) -> bool { * self == INT_EVENT0_RIS_RXFULL_A :: INT_EVENT0_RIS_RXFULL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_rxfull_set (& self) -> bool { * self == INT_EVENT0_RIS_RXFULL_A :: INT_EVENT0_RIS_RXFULL_SET } } impl R { # [doc = "Bit 0 - RXFIFO overflow event. This interrupt is set if an RX FIFO overflow has been detected."]
# [inline (always)]
pub fn int_event0_ris_rxfifo_ovf (& self) -> INT_EVENT0_RIS_RXFIFO_OVF_R { INT_EVENT0_RIS_RXFIFO_OVF_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Parity error event: this bit is set if a Parity error has been detected"]
# [inline (always)]
pub fn int_event0_ris_per (& self) -> INT_EVENT0_RIS_PER_R { INT_EVENT0_RIS_PER_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - SPI Receive Time-Out event."]
# [inline (always)]
pub fn int_event0_ris_rtout (& self) -> INT_EVENT0_RIS_RTOUT_R { INT_EVENT0_RIS_RTOUT_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Receive FIFO event.This interrupt is set if the selected Receive FIFO level has been reached"]
# [inline (always)]
pub fn int_event0_ris_rx (& self) -> INT_EVENT0_RIS_RX_R { INT_EVENT0_RIS_RX_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - Transmit FIFO event..This interrupt is set if the selected Transmit FIFO level has been reached."]
# [inline (always)]
pub fn int_event0_ris_tx (& self) -> INT_EVENT0_RIS_TX_R { INT_EVENT0_RIS_TX_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been move to the shift register."]
# [inline (always)]
pub fn int_event0_ris_txempty (& self) -> INT_EVENT0_RIS_TXEMPTY_R { INT_EVENT0_RIS_TXEMPTY_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - SPI has done finished transfers and changed into IDLE mode. This bit is set when BUSY goes low."]
# [inline (always)]
pub fn int_event0_ris_idle (& self) -> INT_EVENT0_RIS_IDLE_R { INT_EVENT0_RIS_IDLE_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 7 - DMA Done 1 event for RX. This interrupt is set if the RX DMA channel sends the DONE signal. This allows the handling of the DMA event inside the mapped peripheral."]
# [inline (always)]
pub fn int_event0_ris_dma_done_rx (& self) -> INT_EVENT0_RIS_DMA_DONE_RX_R { INT_EVENT0_RIS_DMA_DONE_RX_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - DMA Done 1 event for TX. This interrupt is set if the TX DMA channel sends the DONE signal. This allows the handling of the DMA event inside the mapped peripheral."]
# [inline (always)]
pub fn int_event0_ris_dma_done_tx (& self) -> INT_EVENT0_RIS_DMA_DONE_TX_R { INT_EVENT0_RIS_DMA_DONE_TX_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - TX FIFO Underflow Interrupt"]
# [inline (always)]
pub fn int_event0_ris_txfifo_unf (& self) -> INT_EVENT0_RIS_TXFIFO_UNF_R { INT_EVENT0_RIS_TXFIFO_UNF_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - RX FIFO Full Interrupt"]
# [inline (always)]
pub fn int_event0_ris_rxfull (& self) -> INT_EVENT0_RIS_RXFULL_R { INT_EVENT0_RIS_RXFULL_R :: new (((self . bits >> 10) & 1) != 0) } } # [doc = "Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_RIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event0_ris::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT0_RIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT0_RIS to value 0"]
impl crate :: Resettable for INT_EVENT0_RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_MIS (r) register accessor: Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_mis`]
module"]
pub type INT_EVENT0_MIS = crate :: Reg < int_event0_mis :: INT_EVENT0_MIS_SPEC > ; # [doc = "Masked interrupt status"]
pub mod int_event0_mis { # [doc = "Register `INT_EVENT0_MIS` reader"]
pub type R = crate :: R < INT_EVENT0_MIS_SPEC > ; # [doc = "Field `INT_EVENT0_MIS_RXFIFO_OVF` reader - Masked RXFIFO overflow event. This interrupt is set if an RX FIFO overflow has been detected."]
pub type INT_EVENT0_MIS_RXFIFO_OVF_R = crate :: BitReader < INT_EVENT0_MIS_RXFIFO_OVF_A > ; # [doc = "Masked RXFIFO overflow event. This interrupt is set if an RX FIFO overflow has been detected.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_RXFIFO_OVF_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_RXFIFO_OVF_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_RXFIFO_OVF_SET = 1 , } impl From < INT_EVENT0_MIS_RXFIFO_OVF_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_RXFIFO_OVF_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_RXFIFO_OVF_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_RXFIFO_OVF_A { match self . bits { false => INT_EVENT0_MIS_RXFIFO_OVF_A :: INT_EVENT0_MIS_RXFIFO_OVF_CLR , true => INT_EVENT0_MIS_RXFIFO_OVF_A :: INT_EVENT0_MIS_RXFIFO_OVF_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_rxfifo_ovf_clr (& self) -> bool { * self == INT_EVENT0_MIS_RXFIFO_OVF_A :: INT_EVENT0_MIS_RXFIFO_OVF_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_rxfifo_ovf_set (& self) -> bool { * self == INT_EVENT0_MIS_RXFIFO_OVF_A :: INT_EVENT0_MIS_RXFIFO_OVF_SET } } # [doc = "Field `INT_EVENT0_MIS_PER` reader - Masked Parity error event: this bit if a Parity error has been detected"]
pub type INT_EVENT0_MIS_PER_R = crate :: BitReader < INT_EVENT0_MIS_PER_A > ; # [doc = "Masked Parity error event: this bit if a Parity error has been detected\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_PER_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_PER_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_PER_SET = 1 , } impl From < INT_EVENT0_MIS_PER_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_PER_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_PER_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_PER_A { match self . bits { false => INT_EVENT0_MIS_PER_A :: INT_EVENT0_MIS_PER_CLR , true => INT_EVENT0_MIS_PER_A :: INT_EVENT0_MIS_PER_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_per_clr (& self) -> bool { * self == INT_EVENT0_MIS_PER_A :: INT_EVENT0_MIS_PER_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_per_set (& self) -> bool { * self == INT_EVENT0_MIS_PER_A :: INT_EVENT0_MIS_PER_SET } } # [doc = "Field `INT_EVENT0_MIS_RTOUT` reader - Masked SPI Receive Time-Out Interrupt."]
pub type INT_EVENT0_MIS_RTOUT_R = crate :: BitReader < INT_EVENT0_MIS_RTOUT_A > ; # [doc = "Masked SPI Receive Time-Out Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_RTOUT_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_RTOUT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_RTOUT_SET = 1 , } impl From < INT_EVENT0_MIS_RTOUT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_RTOUT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_RTOUT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_RTOUT_A { match self . bits { false => INT_EVENT0_MIS_RTOUT_A :: INT_EVENT0_MIS_RTOUT_CLR , true => INT_EVENT0_MIS_RTOUT_A :: INT_EVENT0_MIS_RTOUT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_rtout_clr (& self) -> bool { * self == INT_EVENT0_MIS_RTOUT_A :: INT_EVENT0_MIS_RTOUT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_rtout_set (& self) -> bool { * self == INT_EVENT0_MIS_RTOUT_A :: INT_EVENT0_MIS_RTOUT_SET } } # [doc = "Field `INT_EVENT0_MIS_RX` reader - Masked receive FIFO event.This interrupt is set if the selected Receive FIFO level has been reached"]
pub type INT_EVENT0_MIS_RX_R = crate :: BitReader < INT_EVENT0_MIS_RX_A > ; # [doc = "Masked receive FIFO event.This interrupt is set if the selected Receive FIFO level has been reached\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_RX_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_RX_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_RX_SET = 1 , } impl From < INT_EVENT0_MIS_RX_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_RX_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_RX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_RX_A { match self . bits { false => INT_EVENT0_MIS_RX_A :: INT_EVENT0_MIS_RX_CLR , true => INT_EVENT0_MIS_RX_A :: INT_EVENT0_MIS_RX_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_rx_clr (& self) -> bool { * self == INT_EVENT0_MIS_RX_A :: INT_EVENT0_MIS_RX_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_rx_set (& self) -> bool { * self == INT_EVENT0_MIS_RX_A :: INT_EVENT0_MIS_RX_SET } } # [doc = "Field `INT_EVENT0_MIS_TX` reader - Masked Transmit FIFO event. This interrupt is set if the selected Transmit FIFO level has been reached."]
pub type INT_EVENT0_MIS_TX_R = crate :: BitReader < INT_EVENT0_MIS_TX_A > ; # [doc = "Masked Transmit FIFO event. This interrupt is set if the selected Transmit FIFO level has been reached.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_TX_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_TX_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_TX_SET = 1 , } impl From < INT_EVENT0_MIS_TX_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_TX_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_TX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_TX_A { match self . bits { false => INT_EVENT0_MIS_TX_A :: INT_EVENT0_MIS_TX_CLR , true => INT_EVENT0_MIS_TX_A :: INT_EVENT0_MIS_TX_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_tx_clr (& self) -> bool { * self == INT_EVENT0_MIS_TX_A :: INT_EVENT0_MIS_TX_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_tx_set (& self) -> bool { * self == INT_EVENT0_MIS_TX_A :: INT_EVENT0_MIS_TX_SET } } # [doc = "Field `INT_EVENT0_MIS_TXEMPTY` reader - Masked Transmit FIFO Empty event."]
pub type INT_EVENT0_MIS_TXEMPTY_R = crate :: BitReader < INT_EVENT0_MIS_TXEMPTY_A > ; # [doc = "Masked Transmit FIFO Empty event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_TXEMPTY_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_TXEMPTY_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_TXEMPTY_SET = 1 , } impl From < INT_EVENT0_MIS_TXEMPTY_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_TXEMPTY_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_TXEMPTY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_TXEMPTY_A { match self . bits { false => INT_EVENT0_MIS_TXEMPTY_A :: INT_EVENT0_MIS_TXEMPTY_CLR , true => INT_EVENT0_MIS_TXEMPTY_A :: INT_EVENT0_MIS_TXEMPTY_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_txempty_clr (& self) -> bool { * self == INT_EVENT0_MIS_TXEMPTY_A :: INT_EVENT0_MIS_TXEMPTY_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_txempty_set (& self) -> bool { * self == INT_EVENT0_MIS_TXEMPTY_A :: INT_EVENT0_MIS_TXEMPTY_SET } } # [doc = "Field `INT_EVENT0_MIS_IDLE` reader - Masked SPI IDLE mode event."]
pub type INT_EVENT0_MIS_IDLE_R = crate :: BitReader < INT_EVENT0_MIS_IDLE_A > ; # [doc = "Masked SPI IDLE mode event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_IDLE_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_IDLE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_IDLE_SET = 1 , } impl From < INT_EVENT0_MIS_IDLE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_IDLE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_IDLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_IDLE_A { match self . bits { false => INT_EVENT0_MIS_IDLE_A :: INT_EVENT0_MIS_IDLE_CLR , true => INT_EVENT0_MIS_IDLE_A :: INT_EVENT0_MIS_IDLE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_idle_clr (& self) -> bool { * self == INT_EVENT0_MIS_IDLE_A :: INT_EVENT0_MIS_IDLE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_idle_set (& self) -> bool { * self == INT_EVENT0_MIS_IDLE_A :: INT_EVENT0_MIS_IDLE_SET } } # [doc = "Field `INT_EVENT0_MIS_DMA_DONE_RX` reader - Masked DMA Done 1 event for RX."]
pub type INT_EVENT0_MIS_DMA_DONE_RX_R = crate :: BitReader < INT_EVENT0_MIS_DMA_DONE_RX_A > ; # [doc = "Masked DMA Done 1 event for RX.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DMA_DONE_RX_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DMA_DONE_RX_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DMA_DONE_RX_SET = 1 , } impl From < INT_EVENT0_MIS_DMA_DONE_RX_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DMA_DONE_RX_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DMA_DONE_RX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DMA_DONE_RX_A { match self . bits { false => INT_EVENT0_MIS_DMA_DONE_RX_A :: INT_EVENT0_MIS_DMA_DONE_RX_CLR , true => INT_EVENT0_MIS_DMA_DONE_RX_A :: INT_EVENT0_MIS_DMA_DONE_RX_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dma_done_rx_clr (& self) -> bool { * self == INT_EVENT0_MIS_DMA_DONE_RX_A :: INT_EVENT0_MIS_DMA_DONE_RX_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dma_done_rx_set (& self) -> bool { * self == INT_EVENT0_MIS_DMA_DONE_RX_A :: INT_EVENT0_MIS_DMA_DONE_RX_SET } } # [doc = "Field `INT_EVENT0_MIS_DMA_DONE_TX` reader - Masked DMA Done 1 event for TX."]
pub type INT_EVENT0_MIS_DMA_DONE_TX_R = crate :: BitReader < INT_EVENT0_MIS_DMA_DONE_TX_A > ; # [doc = "Masked DMA Done 1 event for TX.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DMA_DONE_TX_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DMA_DONE_TX_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DMA_DONE_TX_SET = 1 , } impl From < INT_EVENT0_MIS_DMA_DONE_TX_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DMA_DONE_TX_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DMA_DONE_TX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DMA_DONE_TX_A { match self . bits { false => INT_EVENT0_MIS_DMA_DONE_TX_A :: INT_EVENT0_MIS_DMA_DONE_TX_CLR , true => INT_EVENT0_MIS_DMA_DONE_TX_A :: INT_EVENT0_MIS_DMA_DONE_TX_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dma_done_tx_clr (& self) -> bool { * self == INT_EVENT0_MIS_DMA_DONE_TX_A :: INT_EVENT0_MIS_DMA_DONE_TX_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dma_done_tx_set (& self) -> bool { * self == INT_EVENT0_MIS_DMA_DONE_TX_A :: INT_EVENT0_MIS_DMA_DONE_TX_SET } } # [doc = "Field `INT_EVENT0_MIS_TXFIFO_UNF` reader - TX FIFO underflow interrupt"]
pub type INT_EVENT0_MIS_TXFIFO_UNF_R = crate :: BitReader < INT_EVENT0_MIS_TXFIFO_UNF_A > ; # [doc = "TX FIFO underflow interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_TXFIFO_UNF_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_TXFIFO_UNF_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_TXFIFO_UNF_SET = 1 , } impl From < INT_EVENT0_MIS_TXFIFO_UNF_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_TXFIFO_UNF_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_TXFIFO_UNF_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_TXFIFO_UNF_A { match self . bits { false => INT_EVENT0_MIS_TXFIFO_UNF_A :: INT_EVENT0_MIS_TXFIFO_UNF_CLR , true => INT_EVENT0_MIS_TXFIFO_UNF_A :: INT_EVENT0_MIS_TXFIFO_UNF_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_txfifo_unf_clr (& self) -> bool { * self == INT_EVENT0_MIS_TXFIFO_UNF_A :: INT_EVENT0_MIS_TXFIFO_UNF_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_txfifo_unf_set (& self) -> bool { * self == INT_EVENT0_MIS_TXFIFO_UNF_A :: INT_EVENT0_MIS_TXFIFO_UNF_SET } } # [doc = "Field `INT_EVENT0_MIS_RXFULL` reader - RX FIFO Full Interrupt"]
pub type INT_EVENT0_MIS_RXFULL_R = crate :: BitReader < INT_EVENT0_MIS_RXFULL_A > ; # [doc = "RX FIFO Full Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_RXFULL_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_RXFULL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_RXFULL_SET = 1 , } impl From < INT_EVENT0_MIS_RXFULL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_RXFULL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_RXFULL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_RXFULL_A { match self . bits { false => INT_EVENT0_MIS_RXFULL_A :: INT_EVENT0_MIS_RXFULL_CLR , true => INT_EVENT0_MIS_RXFULL_A :: INT_EVENT0_MIS_RXFULL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_rxfull_clr (& self) -> bool { * self == INT_EVENT0_MIS_RXFULL_A :: INT_EVENT0_MIS_RXFULL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_rxfull_set (& self) -> bool { * self == INT_EVENT0_MIS_RXFULL_A :: INT_EVENT0_MIS_RXFULL_SET } } impl R { # [doc = "Bit 0 - Masked RXFIFO overflow event. This interrupt is set if an RX FIFO overflow has been detected."]
# [inline (always)]
pub fn int_event0_mis_rxfifo_ovf (& self) -> INT_EVENT0_MIS_RXFIFO_OVF_R { INT_EVENT0_MIS_RXFIFO_OVF_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Masked Parity error event: this bit if a Parity error has been detected"]
# [inline (always)]
pub fn int_event0_mis_per (& self) -> INT_EVENT0_MIS_PER_R { INT_EVENT0_MIS_PER_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Masked SPI Receive Time-Out Interrupt."]
# [inline (always)]
pub fn int_event0_mis_rtout (& self) -> INT_EVENT0_MIS_RTOUT_R { INT_EVENT0_MIS_RTOUT_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Masked receive FIFO event.This interrupt is set if the selected Receive FIFO level has been reached"]
# [inline (always)]
pub fn int_event0_mis_rx (& self) -> INT_EVENT0_MIS_RX_R { INT_EVENT0_MIS_RX_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - Masked Transmit FIFO event. This interrupt is set if the selected Transmit FIFO level has been reached."]
# [inline (always)]
pub fn int_event0_mis_tx (& self) -> INT_EVENT0_MIS_TX_R { INT_EVENT0_MIS_TX_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Masked Transmit FIFO Empty event."]
# [inline (always)]
pub fn int_event0_mis_txempty (& self) -> INT_EVENT0_MIS_TXEMPTY_R { INT_EVENT0_MIS_TXEMPTY_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - Masked SPI IDLE mode event."]
# [inline (always)]
pub fn int_event0_mis_idle (& self) -> INT_EVENT0_MIS_IDLE_R { INT_EVENT0_MIS_IDLE_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 7 - Masked DMA Done 1 event for RX."]
# [inline (always)]
pub fn int_event0_mis_dma_done_rx (& self) -> INT_EVENT0_MIS_DMA_DONE_RX_R { INT_EVENT0_MIS_DMA_DONE_RX_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - Masked DMA Done 1 event for TX."]
# [inline (always)]
pub fn int_event0_mis_dma_done_tx (& self) -> INT_EVENT0_MIS_DMA_DONE_TX_R { INT_EVENT0_MIS_DMA_DONE_TX_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - TX FIFO underflow interrupt"]
# [inline (always)]
pub fn int_event0_mis_txfifo_unf (& self) -> INT_EVENT0_MIS_TXFIFO_UNF_R { INT_EVENT0_MIS_TXFIFO_UNF_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - RX FIFO Full Interrupt"]
# [inline (always)]
pub fn int_event0_mis_rxfull (& self) -> INT_EVENT0_MIS_RXFULL_R { INT_EVENT0_MIS_RXFULL_R :: new (((self . bits >> 10) & 1) != 0) } } # [doc = "Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_MIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event0_mis::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT0_MIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT0_MIS to value 0"]
impl crate :: Resettable for INT_EVENT0_MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_ISET (w) register accessor: Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_iset`]
module"]
pub type INT_EVENT0_ISET = crate :: Reg < int_event0_iset :: INT_EVENT0_ISET_SPEC > ; # [doc = "Interrupt set"]
pub mod int_event0_iset { # [doc = "Register `INT_EVENT0_ISET` writer"]
pub type W = crate :: W < INT_EVENT0_ISET_SPEC > ; # [doc = "Set RXFIFO overflow event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_RXFIFO_OVF_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_RXFIFO_OVF_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_RXFIFO_OVF_SET = 1 , } impl From < INT_EVENT0_ISET_RXFIFO_OVF_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_RXFIFO_OVF_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_RXFIFO_OVF` writer - Set RXFIFO overflow event."]
pub type INT_EVENT0_ISET_RXFIFO_OVF_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_RXFIFO_OVF_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_RXFIFO_OVF_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_rxfifo_ovf_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_RXFIFO_OVF_AW :: INT_EVENT0_ISET_RXFIFO_OVF_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_rxfifo_ovf_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_RXFIFO_OVF_AW :: INT_EVENT0_ISET_RXFIFO_OVF_SET) } } # [doc = "Set Parity error event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_PER_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_PER_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_PER_SET = 1 , } impl From < INT_EVENT0_ISET_PER_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_PER_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_PER` writer - Set Parity error event."]
pub type INT_EVENT0_ISET_PER_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_PER_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_PER_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_per_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_PER_AW :: INT_EVENT0_ISET_PER_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_per_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_PER_AW :: INT_EVENT0_ISET_PER_SET) } } # [doc = "Set SPI Receive Time-Out Event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_RTOUT_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_RTOUT_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_RTOUT_SET = 1 , } impl From < INT_EVENT0_ISET_RTOUT_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_RTOUT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_RTOUT` writer - Set SPI Receive Time-Out Event."]
pub type INT_EVENT0_ISET_RTOUT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_RTOUT_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_RTOUT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_rtout_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_RTOUT_AW :: INT_EVENT0_ISET_RTOUT_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_rtout_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_RTOUT_AW :: INT_EVENT0_ISET_RTOUT_SET) } } # [doc = "Set Receive FIFO event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_RX_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_RX_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_RX_SET = 1 , } impl From < INT_EVENT0_ISET_RX_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_RX_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_RX` writer - Set Receive FIFO event."]
pub type INT_EVENT0_ISET_RX_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_RX_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_RX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_rx_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_RX_AW :: INT_EVENT0_ISET_RX_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_rx_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_RX_AW :: INT_EVENT0_ISET_RX_SET) } } # [doc = "Set Transmit FIFO event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_TX_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_TX_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_TX_SET = 1 , } impl From < INT_EVENT0_ISET_TX_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_TX_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_TX` writer - Set Transmit FIFO event."]
pub type INT_EVENT0_ISET_TX_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_TX_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_TX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_tx_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_TX_AW :: INT_EVENT0_ISET_TX_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_tx_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_TX_AW :: INT_EVENT0_ISET_TX_SET) } } # [doc = "Set Transmit FIFO Empty event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_TXEMPTY_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_TXEMPTY_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_TXEMPTY_SET = 1 , } impl From < INT_EVENT0_ISET_TXEMPTY_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_TXEMPTY_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_TXEMPTY` writer - Set Transmit FIFO Empty event."]
pub type INT_EVENT0_ISET_TXEMPTY_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_TXEMPTY_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_TXEMPTY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_txempty_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_TXEMPTY_AW :: INT_EVENT0_ISET_TXEMPTY_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_txempty_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_TXEMPTY_AW :: INT_EVENT0_ISET_TXEMPTY_SET) } } # [doc = "Set SPI IDLE mode event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_IDLE_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_IDLE_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_IDLE_SET = 1 , } impl From < INT_EVENT0_ISET_IDLE_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_IDLE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_IDLE` writer - Set SPI IDLE mode event."]
pub type INT_EVENT0_ISET_IDLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_IDLE_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_IDLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_idle_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_IDLE_AW :: INT_EVENT0_ISET_IDLE_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_idle_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_IDLE_AW :: INT_EVENT0_ISET_IDLE_SET) } } # [doc = "Set DMA Done 1 event for RX.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DMA_DONE_RX_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DMA_DONE_RX_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DMA_DONE_RX_SET = 1 , } impl From < INT_EVENT0_ISET_DMA_DONE_RX_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DMA_DONE_RX_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DMA_DONE_RX` writer - Set DMA Done 1 event for RX."]
pub type INT_EVENT0_ISET_DMA_DONE_RX_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DMA_DONE_RX_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DMA_DONE_RX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dma_done_rx_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DMA_DONE_RX_AW :: INT_EVENT0_ISET_DMA_DONE_RX_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dma_done_rx_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DMA_DONE_RX_AW :: INT_EVENT0_ISET_DMA_DONE_RX_SET) } } # [doc = "Set DMA Done 1 event for TX.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DMA_DONE_TX_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DMA_DONE_TX_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DMA_DONE_TX_SET = 1 , } impl From < INT_EVENT0_ISET_DMA_DONE_TX_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DMA_DONE_TX_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DMA_DONE_TX` writer - Set DMA Done 1 event for TX."]
pub type INT_EVENT0_ISET_DMA_DONE_TX_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DMA_DONE_TX_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DMA_DONE_TX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dma_done_tx_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DMA_DONE_TX_AW :: INT_EVENT0_ISET_DMA_DONE_TX_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dma_done_tx_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DMA_DONE_TX_AW :: INT_EVENT0_ISET_DMA_DONE_TX_SET) } } # [doc = "Set TX FIFO Underflow Event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_TXFIFO_UNF_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_TXFIFO_UNF_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_TXFIFO_UNF_SET = 1 , } impl From < INT_EVENT0_ISET_TXFIFO_UNF_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_TXFIFO_UNF_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_TXFIFO_UNF` writer - Set TX FIFO Underflow Event"]
pub type INT_EVENT0_ISET_TXFIFO_UNF_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_TXFIFO_UNF_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_TXFIFO_UNF_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_txfifo_unf_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_TXFIFO_UNF_AW :: INT_EVENT0_ISET_TXFIFO_UNF_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_txfifo_unf_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_TXFIFO_UNF_AW :: INT_EVENT0_ISET_TXFIFO_UNF_SET) } } # [doc = "Set RX FIFO Full Event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_RXFULL_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_RXFULL_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_RXFULL_SET = 1 , } impl From < INT_EVENT0_ISET_RXFULL_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_RXFULL_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_RXFULL` writer - Set RX FIFO Full Event"]
pub type INT_EVENT0_ISET_RXFULL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_RXFULL_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_RXFULL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_rxfull_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_RXFULL_AW :: INT_EVENT0_ISET_RXFULL_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_rxfull_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_RXFULL_AW :: INT_EVENT0_ISET_RXFULL_SET) } } impl W { # [doc = "Bit 0 - Set RXFIFO overflow event."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_rxfifo_ovf (& mut self) -> INT_EVENT0_ISET_RXFIFO_OVF_W < INT_EVENT0_ISET_SPEC , 0 > { INT_EVENT0_ISET_RXFIFO_OVF_W :: new (self) } # [doc = "Bit 1 - Set Parity error event."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_per (& mut self) -> INT_EVENT0_ISET_PER_W < INT_EVENT0_ISET_SPEC , 1 > { INT_EVENT0_ISET_PER_W :: new (self) } # [doc = "Bit 2 - Set SPI Receive Time-Out Event."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_rtout (& mut self) -> INT_EVENT0_ISET_RTOUT_W < INT_EVENT0_ISET_SPEC , 2 > { INT_EVENT0_ISET_RTOUT_W :: new (self) } # [doc = "Bit 3 - Set Receive FIFO event."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_rx (& mut self) -> INT_EVENT0_ISET_RX_W < INT_EVENT0_ISET_SPEC , 3 > { INT_EVENT0_ISET_RX_W :: new (self) } # [doc = "Bit 4 - Set Transmit FIFO event."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_tx (& mut self) -> INT_EVENT0_ISET_TX_W < INT_EVENT0_ISET_SPEC , 4 > { INT_EVENT0_ISET_TX_W :: new (self) } # [doc = "Bit 5 - Set Transmit FIFO Empty event."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_txempty (& mut self) -> INT_EVENT0_ISET_TXEMPTY_W < INT_EVENT0_ISET_SPEC , 5 > { INT_EVENT0_ISET_TXEMPTY_W :: new (self) } # [doc = "Bit 6 - Set SPI IDLE mode event."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_idle (& mut self) -> INT_EVENT0_ISET_IDLE_W < INT_EVENT0_ISET_SPEC , 6 > { INT_EVENT0_ISET_IDLE_W :: new (self) } # [doc = "Bit 7 - Set DMA Done 1 event for RX."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dma_done_rx (& mut self) -> INT_EVENT0_ISET_DMA_DONE_RX_W < INT_EVENT0_ISET_SPEC , 7 > { INT_EVENT0_ISET_DMA_DONE_RX_W :: new (self) } # [doc = "Bit 8 - Set DMA Done 1 event for TX."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dma_done_tx (& mut self) -> INT_EVENT0_ISET_DMA_DONE_TX_W < INT_EVENT0_ISET_SPEC , 8 > { INT_EVENT0_ISET_DMA_DONE_TX_W :: new (self) } # [doc = "Bit 9 - Set TX FIFO Underflow Event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_txfifo_unf (& mut self) -> INT_EVENT0_ISET_TXFIFO_UNF_W < INT_EVENT0_ISET_SPEC , 9 > { INT_EVENT0_ISET_TXFIFO_UNF_W :: new (self) } # [doc = "Bit 10 - Set RX FIFO Full Event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_rxfull (& mut self) -> INT_EVENT0_ISET_RXFULL_W < INT_EVENT0_ISET_SPEC , 10 > { INT_EVENT0_ISET_RXFULL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_ISET_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event0_iset::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT0_ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT0_ISET to value 0"]
impl crate :: Resettable for INT_EVENT0_ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_ICLR (w) register accessor: Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_iclr`]
module"]
pub type INT_EVENT0_ICLR = crate :: Reg < int_event0_iclr :: INT_EVENT0_ICLR_SPEC > ; # [doc = "Interrupt clear"]
pub mod int_event0_iclr { # [doc = "Register `INT_EVENT0_ICLR` writer"]
pub type W = crate :: W < INT_EVENT0_ICLR_SPEC > ; # [doc = "Clear RXFIFO overflow event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_RXFIFO_OVF_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_RXFIFO_OVF_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_RXFIFO_OVF_CLR = 1 , } impl From < INT_EVENT0_ICLR_RXFIFO_OVF_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_RXFIFO_OVF_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_RXFIFO_OVF` writer - Clear RXFIFO overflow event."]
pub type INT_EVENT0_ICLR_RXFIFO_OVF_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_RXFIFO_OVF_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_RXFIFO_OVF_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_rxfifo_ovf_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_RXFIFO_OVF_AW :: INT_EVENT0_ICLR_RXFIFO_OVF_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_rxfifo_ovf_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_RXFIFO_OVF_AW :: INT_EVENT0_ICLR_RXFIFO_OVF_CLR) } } # [doc = "Clear Parity error event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_PER_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_PER_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_PER_CLR = 1 , } impl From < INT_EVENT0_ICLR_PER_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_PER_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_PER` writer - Clear Parity error event."]
pub type INT_EVENT0_ICLR_PER_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_PER_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_PER_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_per_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_PER_AW :: INT_EVENT0_ICLR_PER_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_per_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_PER_AW :: INT_EVENT0_ICLR_PER_CLR) } } # [doc = "Clear SPI Receive Time-Out Event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_RTOUT_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_RTOUT_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_RTOUT_CLR = 1 , } impl From < INT_EVENT0_ICLR_RTOUT_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_RTOUT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_RTOUT` writer - Clear SPI Receive Time-Out Event."]
pub type INT_EVENT0_ICLR_RTOUT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_RTOUT_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_RTOUT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_rtout_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_RTOUT_AW :: INT_EVENT0_ICLR_RTOUT_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_rtout_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_RTOUT_AW :: INT_EVENT0_ICLR_RTOUT_CLR) } } # [doc = "Clear Receive FIFO event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_RX_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_RX_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_RX_CLR = 1 , } impl From < INT_EVENT0_ICLR_RX_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_RX_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_RX` writer - Clear Receive FIFO event."]
pub type INT_EVENT0_ICLR_RX_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_RX_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_RX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_rx_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_RX_AW :: INT_EVENT0_ICLR_RX_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_rx_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_RX_AW :: INT_EVENT0_ICLR_RX_CLR) } } # [doc = "Clear Transmit FIFO event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_TX_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_TX_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_TX_CLR = 1 , } impl From < INT_EVENT0_ICLR_TX_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_TX_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_TX` writer - Clear Transmit FIFO event."]
pub type INT_EVENT0_ICLR_TX_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_TX_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_TX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_tx_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_TX_AW :: INT_EVENT0_ICLR_TX_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_tx_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_TX_AW :: INT_EVENT0_ICLR_TX_CLR) } } # [doc = "Clear Transmit FIFO Empty event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_TXEMPTY_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_TXEMPTY_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_TXEMPTY_CLR = 1 , } impl From < INT_EVENT0_ICLR_TXEMPTY_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_TXEMPTY_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_TXEMPTY` writer - Clear Transmit FIFO Empty event."]
pub type INT_EVENT0_ICLR_TXEMPTY_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_TXEMPTY_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_TXEMPTY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_txempty_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_TXEMPTY_AW :: INT_EVENT0_ICLR_TXEMPTY_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_txempty_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_TXEMPTY_AW :: INT_EVENT0_ICLR_TXEMPTY_CLR) } } # [doc = "Clear SPI IDLE mode event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_IDLE_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_IDLE_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_IDLE_CLR = 1 , } impl From < INT_EVENT0_ICLR_IDLE_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_IDLE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_IDLE` writer - Clear SPI IDLE mode event."]
pub type INT_EVENT0_ICLR_IDLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_IDLE_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_IDLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_idle_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_IDLE_AW :: INT_EVENT0_ICLR_IDLE_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_idle_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_IDLE_AW :: INT_EVENT0_ICLR_IDLE_CLR) } } # [doc = "Clear DMA Done 1 event for RX.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DMA_DONE_RX_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DMA_DONE_RX_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DMA_DONE_RX_CLR = 1 , } impl From < INT_EVENT0_ICLR_DMA_DONE_RX_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DMA_DONE_RX_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DMA_DONE_RX` writer - Clear DMA Done 1 event for RX."]
pub type INT_EVENT0_ICLR_DMA_DONE_RX_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DMA_DONE_RX_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DMA_DONE_RX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dma_done_rx_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DMA_DONE_RX_AW :: INT_EVENT0_ICLR_DMA_DONE_RX_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dma_done_rx_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DMA_DONE_RX_AW :: INT_EVENT0_ICLR_DMA_DONE_RX_CLR) } } # [doc = "Clear DMA Done 1 event for TX.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DMA_DONE_TX_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DMA_DONE_TX_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DMA_DONE_TX_CLR = 1 , } impl From < INT_EVENT0_ICLR_DMA_DONE_TX_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DMA_DONE_TX_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DMA_DONE_TX` writer - Clear DMA Done 1 event for TX."]
pub type INT_EVENT0_ICLR_DMA_DONE_TX_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DMA_DONE_TX_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DMA_DONE_TX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dma_done_tx_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DMA_DONE_TX_AW :: INT_EVENT0_ICLR_DMA_DONE_TX_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dma_done_tx_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DMA_DONE_TX_AW :: INT_EVENT0_ICLR_DMA_DONE_TX_CLR) } } # [doc = "Clear TXFIFO underflow event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_TXFIFO_UNF_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_TXFIFO_UNF_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_TXFIFO_UNF_CLR = 1 , } impl From < INT_EVENT0_ICLR_TXFIFO_UNF_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_TXFIFO_UNF_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_TXFIFO_UNF` writer - Clear TXFIFO underflow event"]
pub type INT_EVENT0_ICLR_TXFIFO_UNF_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_TXFIFO_UNF_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_TXFIFO_UNF_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_txfifo_unf_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_TXFIFO_UNF_AW :: INT_EVENT0_ICLR_TXFIFO_UNF_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_txfifo_unf_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_TXFIFO_UNF_AW :: INT_EVENT0_ICLR_TXFIFO_UNF_CLR) } } # [doc = "Clear RX FIFO underflow event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_RXFULL_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_RXFULL_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_RXFULL_CLR = 1 , } impl From < INT_EVENT0_ICLR_RXFULL_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_RXFULL_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_RXFULL` writer - Clear RX FIFO underflow event"]
pub type INT_EVENT0_ICLR_RXFULL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_RXFULL_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_RXFULL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_rxfull_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_RXFULL_AW :: INT_EVENT0_ICLR_RXFULL_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_rxfull_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_RXFULL_AW :: INT_EVENT0_ICLR_RXFULL_CLR) } } impl W { # [doc = "Bit 0 - Clear RXFIFO overflow event."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_rxfifo_ovf (& mut self) -> INT_EVENT0_ICLR_RXFIFO_OVF_W < INT_EVENT0_ICLR_SPEC , 0 > { INT_EVENT0_ICLR_RXFIFO_OVF_W :: new (self) } # [doc = "Bit 1 - Clear Parity error event."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_per (& mut self) -> INT_EVENT0_ICLR_PER_W < INT_EVENT0_ICLR_SPEC , 1 > { INT_EVENT0_ICLR_PER_W :: new (self) } # [doc = "Bit 2 - Clear SPI Receive Time-Out Event."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_rtout (& mut self) -> INT_EVENT0_ICLR_RTOUT_W < INT_EVENT0_ICLR_SPEC , 2 > { INT_EVENT0_ICLR_RTOUT_W :: new (self) } # [doc = "Bit 3 - Clear Receive FIFO event."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_rx (& mut self) -> INT_EVENT0_ICLR_RX_W < INT_EVENT0_ICLR_SPEC , 3 > { INT_EVENT0_ICLR_RX_W :: new (self) } # [doc = "Bit 4 - Clear Transmit FIFO event."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_tx (& mut self) -> INT_EVENT0_ICLR_TX_W < INT_EVENT0_ICLR_SPEC , 4 > { INT_EVENT0_ICLR_TX_W :: new (self) } # [doc = "Bit 5 - Clear Transmit FIFO Empty event."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_txempty (& mut self) -> INT_EVENT0_ICLR_TXEMPTY_W < INT_EVENT0_ICLR_SPEC , 5 > { INT_EVENT0_ICLR_TXEMPTY_W :: new (self) } # [doc = "Bit 6 - Clear SPI IDLE mode event."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_idle (& mut self) -> INT_EVENT0_ICLR_IDLE_W < INT_EVENT0_ICLR_SPEC , 6 > { INT_EVENT0_ICLR_IDLE_W :: new (self) } # [doc = "Bit 7 - Clear DMA Done 1 event for RX."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dma_done_rx (& mut self) -> INT_EVENT0_ICLR_DMA_DONE_RX_W < INT_EVENT0_ICLR_SPEC , 7 > { INT_EVENT0_ICLR_DMA_DONE_RX_W :: new (self) } # [doc = "Bit 8 - Clear DMA Done 1 event for TX."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dma_done_tx (& mut self) -> INT_EVENT0_ICLR_DMA_DONE_TX_W < INT_EVENT0_ICLR_SPEC , 8 > { INT_EVENT0_ICLR_DMA_DONE_TX_W :: new (self) } # [doc = "Bit 9 - Clear TXFIFO underflow event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_txfifo_unf (& mut self) -> INT_EVENT0_ICLR_TXFIFO_UNF_W < INT_EVENT0_ICLR_SPEC , 9 > { INT_EVENT0_ICLR_TXFIFO_UNF_W :: new (self) } # [doc = "Bit 10 - Clear RX FIFO underflow event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_rxfull (& mut self) -> INT_EVENT0_ICLR_RXFULL_W < INT_EVENT0_ICLR_SPEC , 10 > { INT_EVENT0_ICLR_RXFULL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_ICLR_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event0_iclr::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT0_ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT0_ICLR to value 0"]
impl crate :: Resettable for INT_EVENT0_ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_IIDX (r) register accessor: Interrupt Index Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_iidx`]
module"]
pub type INT_EVENT1_IIDX = crate :: Reg < int_event1_iidx :: INT_EVENT1_IIDX_SPEC > ; # [doc = "Interrupt Index Register"]
pub mod int_event1_iidx { # [doc = "Register `INT_EVENT1_IIDX` reader"]
pub type R = crate :: R < INT_EVENT1_IIDX_SPEC > ; # [doc = "Field `INT_EVENT1_IIDX_STAT` reader - Interrupt index status"]
pub type INT_EVENT1_IIDX_STAT_R = crate :: FieldReader < INT_EVENT1_IIDX_STAT_A > ; # [doc = "Interrupt index status\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum INT_EVENT1_IIDX_STAT_A { # [doc = "0: NO_INTR"]
INT_EVENT1_IIDX_STAT_NO_INTR = 0 , # [doc = "3: RTOUT_EVT"]
INT_EVENT1_IIDX_STAT_RTOUT_EVT = 3 , # [doc = "4: RX_EVT"]
INT_EVENT1_IIDX_STAT_RX_EVT = 4 , } impl From < INT_EVENT1_IIDX_STAT_A > for u8 { # [inline (always)]
fn from (variant : INT_EVENT1_IIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for INT_EVENT1_IIDX_STAT_A { type Ux = u8 ; } impl INT_EVENT1_IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < INT_EVENT1_IIDX_STAT_A > { match self . bits { 0 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_NO_INTR) , 3 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_RTOUT_EVT) , 4 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_RX_EVT) , _ => None , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_no_intr (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_NO_INTR } # [doc = "RTOUT_EVT"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_rtout_evt (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_RTOUT_EVT } # [doc = "RX_EVT"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_rx_evt (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_RX_EVT } } impl R { # [doc = "Bits 0:7 - Interrupt index status"]
# [inline (always)]
pub fn int_event1_iidx_stat (& self) -> INT_EVENT1_IIDX_STAT_R { INT_EVENT1_IIDX_STAT_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Interrupt Index Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_IIDX_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event1_iidx::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT1_IIDX_SPEC { } # [doc = "`reset()` method sets INT_EVENT1_IIDX to value 0"]
impl crate :: Resettable for INT_EVENT1_IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_IMASK (rw) register accessor: Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_imask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_imask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_imask`]
module"]
pub type INT_EVENT1_IMASK = crate :: Reg < int_event1_imask :: INT_EVENT1_IMASK_SPEC > ; # [doc = "Interrupt mask"]
pub mod int_event1_imask { # [doc = "Register `INT_EVENT1_IMASK` reader"]
pub type R = crate :: R < INT_EVENT1_IMASK_SPEC > ; # [doc = "Register `INT_EVENT1_IMASK` writer"]
pub type W = crate :: W < INT_EVENT1_IMASK_SPEC > ; # [doc = "Field `INT_EVENT1_IMASK_RTOUT` reader - SPI Receive Time-Out event mask."]
pub type INT_EVENT1_IMASK_RTOUT_R = crate :: BitReader < INT_EVENT1_IMASK_RTOUT_A > ; # [doc = "SPI Receive Time-Out event mask.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_RTOUT_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_RTOUT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_RTOUT_SET = 1 , } impl From < INT_EVENT1_IMASK_RTOUT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_RTOUT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_RTOUT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_RTOUT_A { match self . bits { false => INT_EVENT1_IMASK_RTOUT_A :: INT_EVENT1_IMASK_RTOUT_CLR , true => INT_EVENT1_IMASK_RTOUT_A :: INT_EVENT1_IMASK_RTOUT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_rtout_clr (& self) -> bool { * self == INT_EVENT1_IMASK_RTOUT_A :: INT_EVENT1_IMASK_RTOUT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_rtout_set (& self) -> bool { * self == INT_EVENT1_IMASK_RTOUT_A :: INT_EVENT1_IMASK_RTOUT_SET } } # [doc = "Field `INT_EVENT1_IMASK_RTOUT` writer - SPI Receive Time-Out event mask."]
pub type INT_EVENT1_IMASK_RTOUT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_RTOUT_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_RTOUT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_rtout_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_RTOUT_A :: INT_EVENT1_IMASK_RTOUT_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_rtout_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_RTOUT_A :: INT_EVENT1_IMASK_RTOUT_SET) } } # [doc = "Field `INT_EVENT1_IMASK_RX` reader - Receive FIFO event mask."]
pub type INT_EVENT1_IMASK_RX_R = crate :: BitReader < INT_EVENT1_IMASK_RX_A > ; # [doc = "Receive FIFO event mask.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_RX_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_RX_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_RX_SET = 1 , } impl From < INT_EVENT1_IMASK_RX_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_RX_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_RX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_RX_A { match self . bits { false => INT_EVENT1_IMASK_RX_A :: INT_EVENT1_IMASK_RX_CLR , true => INT_EVENT1_IMASK_RX_A :: INT_EVENT1_IMASK_RX_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_rx_clr (& self) -> bool { * self == INT_EVENT1_IMASK_RX_A :: INT_EVENT1_IMASK_RX_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_rx_set (& self) -> bool { * self == INT_EVENT1_IMASK_RX_A :: INT_EVENT1_IMASK_RX_SET } } # [doc = "Field `INT_EVENT1_IMASK_RX` writer - Receive FIFO event mask."]
pub type INT_EVENT1_IMASK_RX_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_RX_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_RX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_rx_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_RX_A :: INT_EVENT1_IMASK_RX_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_rx_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_RX_A :: INT_EVENT1_IMASK_RX_SET) } } impl R { # [doc = "Bit 2 - SPI Receive Time-Out event mask."]
# [inline (always)]
pub fn int_event1_imask_rtout (& self) -> INT_EVENT1_IMASK_RTOUT_R { INT_EVENT1_IMASK_RTOUT_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Receive FIFO event mask."]
# [inline (always)]
pub fn int_event1_imask_rx (& self) -> INT_EVENT1_IMASK_RX_R { INT_EVENT1_IMASK_RX_R :: new (((self . bits >> 3) & 1) != 0) } } impl W { # [doc = "Bit 2 - SPI Receive Time-Out event mask."]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_rtout (& mut self) -> INT_EVENT1_IMASK_RTOUT_W < INT_EVENT1_IMASK_SPEC , 2 > { INT_EVENT1_IMASK_RTOUT_W :: new (self) } # [doc = "Bit 3 - Receive FIFO event mask."]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_rx (& mut self) -> INT_EVENT1_IMASK_RX_W < INT_EVENT1_IMASK_SPEC , 3 > { INT_EVENT1_IMASK_RX_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_imask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_imask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_IMASK_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event1_imask::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT1_IMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`int_event1_imask::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT1_IMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT1_IMASK to value 0"]
impl crate :: Resettable for INT_EVENT1_IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_RIS (r) register accessor: Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_ris`]
module"]
pub type INT_EVENT1_RIS = crate :: Reg < int_event1_ris :: INT_EVENT1_RIS_SPEC > ; # [doc = "Raw interrupt status"]
pub mod int_event1_ris { # [doc = "Register `INT_EVENT1_RIS` reader"]
pub type R = crate :: R < INT_EVENT1_RIS_SPEC > ; # [doc = "Field `INT_EVENT1_RIS_RTOUT` reader - SPI Receive Time-Out Event."]
pub type INT_EVENT1_RIS_RTOUT_R = crate :: BitReader < INT_EVENT1_RIS_RTOUT_A > ; # [doc = "SPI Receive Time-Out Event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_RTOUT_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_RTOUT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_RTOUT_SET = 1 , } impl From < INT_EVENT1_RIS_RTOUT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_RTOUT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_RTOUT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_RTOUT_A { match self . bits { false => INT_EVENT1_RIS_RTOUT_A :: INT_EVENT1_RIS_RTOUT_CLR , true => INT_EVENT1_RIS_RTOUT_A :: INT_EVENT1_RIS_RTOUT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_rtout_clr (& self) -> bool { * self == INT_EVENT1_RIS_RTOUT_A :: INT_EVENT1_RIS_RTOUT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_rtout_set (& self) -> bool { * self == INT_EVENT1_RIS_RTOUT_A :: INT_EVENT1_RIS_RTOUT_SET } } # [doc = "Field `INT_EVENT1_RIS_RX` reader - Receive FIFO event.This interrupt is set if the selected Receive FIFO level has been reached"]
pub type INT_EVENT1_RIS_RX_R = crate :: BitReader < INT_EVENT1_RIS_RX_A > ; # [doc = "Receive FIFO event.This interrupt is set if the selected Receive FIFO level has been reached\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_RX_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_RX_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_RX_SET = 1 , } impl From < INT_EVENT1_RIS_RX_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_RX_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_RX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_RX_A { match self . bits { false => INT_EVENT1_RIS_RX_A :: INT_EVENT1_RIS_RX_CLR , true => INT_EVENT1_RIS_RX_A :: INT_EVENT1_RIS_RX_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_rx_clr (& self) -> bool { * self == INT_EVENT1_RIS_RX_A :: INT_EVENT1_RIS_RX_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_rx_set (& self) -> bool { * self == INT_EVENT1_RIS_RX_A :: INT_EVENT1_RIS_RX_SET } } impl R { # [doc = "Bit 2 - SPI Receive Time-Out Event."]
# [inline (always)]
pub fn int_event1_ris_rtout (& self) -> INT_EVENT1_RIS_RTOUT_R { INT_EVENT1_RIS_RTOUT_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Receive FIFO event.This interrupt is set if the selected Receive FIFO level has been reached"]
# [inline (always)]
pub fn int_event1_ris_rx (& self) -> INT_EVENT1_RIS_RX_R { INT_EVENT1_RIS_RX_R :: new (((self . bits >> 3) & 1) != 0) } } # [doc = "Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_RIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event1_ris::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT1_RIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT1_RIS to value 0"]
impl crate :: Resettable for INT_EVENT1_RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_MIS (r) register accessor: Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_mis`]
module"]
pub type INT_EVENT1_MIS = crate :: Reg < int_event1_mis :: INT_EVENT1_MIS_SPEC > ; # [doc = "Masked interrupt status"]
pub mod int_event1_mis { # [doc = "Register `INT_EVENT1_MIS` reader"]
pub type R = crate :: R < INT_EVENT1_MIS_SPEC > ; # [doc = "Field `INT_EVENT1_MIS_RTOUT` reader - SPI Receive Time-Out event mask."]
pub type INT_EVENT1_MIS_RTOUT_R = crate :: BitReader < INT_EVENT1_MIS_RTOUT_A > ; # [doc = "SPI Receive Time-Out event mask.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_RTOUT_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_RTOUT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_RTOUT_SET = 1 , } impl From < INT_EVENT1_MIS_RTOUT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_RTOUT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_RTOUT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_RTOUT_A { match self . bits { false => INT_EVENT1_MIS_RTOUT_A :: INT_EVENT1_MIS_RTOUT_CLR , true => INT_EVENT1_MIS_RTOUT_A :: INT_EVENT1_MIS_RTOUT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_rtout_clr (& self) -> bool { * self == INT_EVENT1_MIS_RTOUT_A :: INT_EVENT1_MIS_RTOUT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_rtout_set (& self) -> bool { * self == INT_EVENT1_MIS_RTOUT_A :: INT_EVENT1_MIS_RTOUT_SET } } # [doc = "Field `INT_EVENT1_MIS_RX` reader - Receive FIFO event mask."]
pub type INT_EVENT1_MIS_RX_R = crate :: BitReader < INT_EVENT1_MIS_RX_A > ; # [doc = "Receive FIFO event mask.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_RX_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_RX_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_RX_SET = 1 , } impl From < INT_EVENT1_MIS_RX_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_RX_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_RX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_RX_A { match self . bits { false => INT_EVENT1_MIS_RX_A :: INT_EVENT1_MIS_RX_CLR , true => INT_EVENT1_MIS_RX_A :: INT_EVENT1_MIS_RX_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_rx_clr (& self) -> bool { * self == INT_EVENT1_MIS_RX_A :: INT_EVENT1_MIS_RX_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_rx_set (& self) -> bool { * self == INT_EVENT1_MIS_RX_A :: INT_EVENT1_MIS_RX_SET } } impl R { # [doc = "Bit 2 - SPI Receive Time-Out event mask."]
# [inline (always)]
pub fn int_event1_mis_rtout (& self) -> INT_EVENT1_MIS_RTOUT_R { INT_EVENT1_MIS_RTOUT_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Receive FIFO event mask."]
# [inline (always)]
pub fn int_event1_mis_rx (& self) -> INT_EVENT1_MIS_RX_R { INT_EVENT1_MIS_RX_R :: new (((self . bits >> 3) & 1) != 0) } } # [doc = "Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_MIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event1_mis::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT1_MIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT1_MIS to value 0"]
impl crate :: Resettable for INT_EVENT1_MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_ISET (w) register accessor: Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_iset`]
module"]
pub type INT_EVENT1_ISET = crate :: Reg < int_event1_iset :: INT_EVENT1_ISET_SPEC > ; # [doc = "Interrupt set"]
pub mod int_event1_iset { # [doc = "Register `INT_EVENT1_ISET` writer"]
pub type W = crate :: W < INT_EVENT1_ISET_SPEC > ; # [doc = "Set SPI Receive Time-Out event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_RTOUT_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_RTOUT_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_RTOUT_SET = 1 , } impl From < INT_EVENT1_ISET_RTOUT_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_RTOUT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_RTOUT` writer - Set SPI Receive Time-Out event."]
pub type INT_EVENT1_ISET_RTOUT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_RTOUT_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_RTOUT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_rtout_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_RTOUT_AW :: INT_EVENT1_ISET_RTOUT_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_rtout_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_RTOUT_AW :: INT_EVENT1_ISET_RTOUT_SET) } } # [doc = "Set Receive FIFO event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_RX_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_RX_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_RX_SET = 1 , } impl From < INT_EVENT1_ISET_RX_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_RX_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_RX` writer - Set Receive FIFO event."]
pub type INT_EVENT1_ISET_RX_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_RX_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_RX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_rx_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_RX_AW :: INT_EVENT1_ISET_RX_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_rx_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_RX_AW :: INT_EVENT1_ISET_RX_SET) } } impl W { # [doc = "Bit 2 - Set SPI Receive Time-Out event."]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_rtout (& mut self) -> INT_EVENT1_ISET_RTOUT_W < INT_EVENT1_ISET_SPEC , 2 > { INT_EVENT1_ISET_RTOUT_W :: new (self) } # [doc = "Bit 3 - Set Receive FIFO event."]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_rx (& mut self) -> INT_EVENT1_ISET_RX_W < INT_EVENT1_ISET_SPEC , 3 > { INT_EVENT1_ISET_RX_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_ISET_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event1_iset::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT1_ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT1_ISET to value 0"]
impl crate :: Resettable for INT_EVENT1_ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_ICLR (w) register accessor: Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_iclr`]
module"]
pub type INT_EVENT1_ICLR = crate :: Reg < int_event1_iclr :: INT_EVENT1_ICLR_SPEC > ; # [doc = "Interrupt clear"]
pub mod int_event1_iclr { # [doc = "Register `INT_EVENT1_ICLR` writer"]
pub type W = crate :: W < INT_EVENT1_ICLR_SPEC > ; # [doc = "Clear SPI Receive Time-Out event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_RTOUT_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_RTOUT_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_RTOUT_CLR = 1 , } impl From < INT_EVENT1_ICLR_RTOUT_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_RTOUT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_RTOUT` writer - Clear SPI Receive Time-Out event."]
pub type INT_EVENT1_ICLR_RTOUT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_RTOUT_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_RTOUT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_rtout_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_RTOUT_AW :: INT_EVENT1_ICLR_RTOUT_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_rtout_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_RTOUT_AW :: INT_EVENT1_ICLR_RTOUT_CLR) } } # [doc = "Clear Receive FIFO event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_RX_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_RX_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_RX_CLR = 1 , } impl From < INT_EVENT1_ICLR_RX_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_RX_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_RX` writer - Clear Receive FIFO event."]
pub type INT_EVENT1_ICLR_RX_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_RX_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_RX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_rx_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_RX_AW :: INT_EVENT1_ICLR_RX_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_rx_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_RX_AW :: INT_EVENT1_ICLR_RX_CLR) } } impl W { # [doc = "Bit 2 - Clear SPI Receive Time-Out event."]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_rtout (& mut self) -> INT_EVENT1_ICLR_RTOUT_W < INT_EVENT1_ICLR_SPEC , 2 > { INT_EVENT1_ICLR_RTOUT_W :: new (self) } # [doc = "Bit 3 - Clear Receive FIFO event."]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_rx (& mut self) -> INT_EVENT1_ICLR_RX_W < INT_EVENT1_ICLR_SPEC , 3 > { INT_EVENT1_ICLR_RX_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_ICLR_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event1_iclr::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT1_ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT1_ICLR to value 0"]
impl crate :: Resettable for INT_EVENT1_ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_IIDX (r) register accessor: Interrupt Index Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_iidx`]
module"]
pub type INT_EVENT2_IIDX = crate :: Reg < int_event2_iidx :: INT_EVENT2_IIDX_SPEC > ; # [doc = "Interrupt Index Register"]
pub mod int_event2_iidx { # [doc = "Register `INT_EVENT2_IIDX` reader"]
pub type R = crate :: R < INT_EVENT2_IIDX_SPEC > ; # [doc = "Field `INT_EVENT2_IIDX_STAT` reader - Interrupt index status"]
pub type INT_EVENT2_IIDX_STAT_R = crate :: FieldReader < INT_EVENT2_IIDX_STAT_A > ; # [doc = "Interrupt index status\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum INT_EVENT2_IIDX_STAT_A { # [doc = "0: NO_INTR"]
INT_EVENT2_IIDX_STAT_NO_INTR = 0 , # [doc = "5: TX_EVT"]
INT_EVENT2_IIDX_STAT_TX_EVT = 5 , } impl From < INT_EVENT2_IIDX_STAT_A > for u8 { # [inline (always)]
fn from (variant : INT_EVENT2_IIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for INT_EVENT2_IIDX_STAT_A { type Ux = u8 ; } impl INT_EVENT2_IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < INT_EVENT2_IIDX_STAT_A > { match self . bits { 0 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_NO_INTR) , 5 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_TX_EVT) , _ => None , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_no_intr (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_NO_INTR } # [doc = "TX_EVT"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_tx_evt (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_TX_EVT } } impl R { # [doc = "Bits 0:7 - Interrupt index status"]
# [inline (always)]
pub fn int_event2_iidx_stat (& self) -> INT_EVENT2_IIDX_STAT_R { INT_EVENT2_IIDX_STAT_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Interrupt Index Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_IIDX_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event2_iidx::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT2_IIDX_SPEC { } # [doc = "`reset()` method sets INT_EVENT2_IIDX to value 0"]
impl crate :: Resettable for INT_EVENT2_IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_IMASK (rw) register accessor: Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_imask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_imask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_imask`]
module"]
pub type INT_EVENT2_IMASK = crate :: Reg < int_event2_imask :: INT_EVENT2_IMASK_SPEC > ; # [doc = "Interrupt mask"]
pub mod int_event2_imask { # [doc = "Register `INT_EVENT2_IMASK` reader"]
pub type R = crate :: R < INT_EVENT2_IMASK_SPEC > ; # [doc = "Register `INT_EVENT2_IMASK` writer"]
pub type W = crate :: W < INT_EVENT2_IMASK_SPEC > ; # [doc = "Field `INT_EVENT2_IMASK_TX` reader - Transmit FIFO event mask."]
pub type INT_EVENT2_IMASK_TX_R = crate :: BitReader < INT_EVENT2_IMASK_TX_A > ; # [doc = "Transmit FIFO event mask.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_IMASK_TX_A { # [doc = "0: CLR"]
INT_EVENT2_IMASK_TX_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_IMASK_TX_SET = 1 , } impl From < INT_EVENT2_IMASK_TX_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_IMASK_TX_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_IMASK_TX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_IMASK_TX_A { match self . bits { false => INT_EVENT2_IMASK_TX_A :: INT_EVENT2_IMASK_TX_CLR , true => INT_EVENT2_IMASK_TX_A :: INT_EVENT2_IMASK_TX_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_imask_tx_clr (& self) -> bool { * self == INT_EVENT2_IMASK_TX_A :: INT_EVENT2_IMASK_TX_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_imask_tx_set (& self) -> bool { * self == INT_EVENT2_IMASK_TX_A :: INT_EVENT2_IMASK_TX_SET } } # [doc = "Field `INT_EVENT2_IMASK_TX` writer - Transmit FIFO event mask."]
pub type INT_EVENT2_IMASK_TX_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_IMASK_TX_A > ; impl < 'a , REG , const O : u8 > INT_EVENT2_IMASK_TX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_imask_tx_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_TX_A :: INT_EVENT2_IMASK_TX_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_imask_tx_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_TX_A :: INT_EVENT2_IMASK_TX_SET) } } impl R { # [doc = "Bit 4 - Transmit FIFO event mask."]
# [inline (always)]
pub fn int_event2_imask_tx (& self) -> INT_EVENT2_IMASK_TX_R { INT_EVENT2_IMASK_TX_R :: new (((self . bits >> 4) & 1) != 0) } } impl W { # [doc = "Bit 4 - Transmit FIFO event mask."]
# [inline (always)]
# [must_use]
pub fn int_event2_imask_tx (& mut self) -> INT_EVENT2_IMASK_TX_W < INT_EVENT2_IMASK_SPEC , 4 > { INT_EVENT2_IMASK_TX_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_imask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_imask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_IMASK_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event2_imask::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT2_IMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`int_event2_imask::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT2_IMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT2_IMASK to value 0"]
impl crate :: Resettable for INT_EVENT2_IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_RIS (r) register accessor: Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_ris`]
module"]
pub type INT_EVENT2_RIS = crate :: Reg < int_event2_ris :: INT_EVENT2_RIS_SPEC > ; # [doc = "Raw interrupt status"]
pub mod int_event2_ris { # [doc = "Register `INT_EVENT2_RIS` reader"]
pub type R = crate :: R < INT_EVENT2_RIS_SPEC > ; # [doc = "Field `INT_EVENT2_RIS_TX` reader - Transmit FIFO event: A read returns the current mask for transmit FIFO interrupt. On a write of 1, the mask for transmit FIFO interrupt is set which means the interrupt state will be reflected in MIS.TXMIS. A write of 0 clears the mask which means MIS.TXMIS will not reflect the interrupt."]
pub type INT_EVENT2_RIS_TX_R = crate :: BitReader < INT_EVENT2_RIS_TX_A > ; # [doc = "Transmit FIFO event: A read returns the current mask for transmit FIFO interrupt. On a write of 1, the mask for transmit FIFO interrupt is set which means the interrupt state will be reflected in MIS.TXMIS. A write of 0 clears the mask which means MIS.TXMIS will not reflect the interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_RIS_TX_A { # [doc = "0: CLR"]
INT_EVENT2_RIS_TX_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_RIS_TX_SET = 1 , } impl From < INT_EVENT2_RIS_TX_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_RIS_TX_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_RIS_TX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_RIS_TX_A { match self . bits { false => INT_EVENT2_RIS_TX_A :: INT_EVENT2_RIS_TX_CLR , true => INT_EVENT2_RIS_TX_A :: INT_EVENT2_RIS_TX_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_ris_tx_clr (& self) -> bool { * self == INT_EVENT2_RIS_TX_A :: INT_EVENT2_RIS_TX_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_ris_tx_set (& self) -> bool { * self == INT_EVENT2_RIS_TX_A :: INT_EVENT2_RIS_TX_SET } } impl R { # [doc = "Bit 4 - Transmit FIFO event: A read returns the current mask for transmit FIFO interrupt. On a write of 1, the mask for transmit FIFO interrupt is set which means the interrupt state will be reflected in MIS.TXMIS. A write of 0 clears the mask which means MIS.TXMIS will not reflect the interrupt."]
# [inline (always)]
pub fn int_event2_ris_tx (& self) -> INT_EVENT2_RIS_TX_R { INT_EVENT2_RIS_TX_R :: new (((self . bits >> 4) & 1) != 0) } } # [doc = "Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_RIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event2_ris::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT2_RIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT2_RIS to value 0"]
impl crate :: Resettable for INT_EVENT2_RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_MIS (r) register accessor: Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_mis`]
module"]
pub type INT_EVENT2_MIS = crate :: Reg < int_event2_mis :: INT_EVENT2_MIS_SPEC > ; # [doc = "Masked interrupt status"]
pub mod int_event2_mis { # [doc = "Register `INT_EVENT2_MIS` reader"]
pub type R = crate :: R < INT_EVENT2_MIS_SPEC > ; # [doc = "Field `INT_EVENT2_MIS_TX` reader - Masked Transmit FIFO event"]
pub type INT_EVENT2_MIS_TX_R = crate :: BitReader < INT_EVENT2_MIS_TX_A > ; # [doc = "Masked Transmit FIFO event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_MIS_TX_A { # [doc = "0: CLR"]
INT_EVENT2_MIS_TX_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_MIS_TX_SET = 1 , } impl From < INT_EVENT2_MIS_TX_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_MIS_TX_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_MIS_TX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_MIS_TX_A { match self . bits { false => INT_EVENT2_MIS_TX_A :: INT_EVENT2_MIS_TX_CLR , true => INT_EVENT2_MIS_TX_A :: INT_EVENT2_MIS_TX_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_mis_tx_clr (& self) -> bool { * self == INT_EVENT2_MIS_TX_A :: INT_EVENT2_MIS_TX_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_mis_tx_set (& self) -> bool { * self == INT_EVENT2_MIS_TX_A :: INT_EVENT2_MIS_TX_SET } } impl R { # [doc = "Bit 4 - Masked Transmit FIFO event"]
# [inline (always)]
pub fn int_event2_mis_tx (& self) -> INT_EVENT2_MIS_TX_R { INT_EVENT2_MIS_TX_R :: new (((self . bits >> 4) & 1) != 0) } } # [doc = "Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_MIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event2_mis::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT2_MIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT2_MIS to value 0"]
impl crate :: Resettable for INT_EVENT2_MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_ISET (w) register accessor: Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_iset`]
module"]
pub type INT_EVENT2_ISET = crate :: Reg < int_event2_iset :: INT_EVENT2_ISET_SPEC > ; # [doc = "Interrupt set"]
pub mod int_event2_iset { # [doc = "Register `INT_EVENT2_ISET` writer"]
pub type W = crate :: W < INT_EVENT2_ISET_SPEC > ; # [doc = "Set Transmit FIFO event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ISET_TX_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ISET_TX_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT2_ISET_TX_SET = 1 , } impl From < INT_EVENT2_ISET_TX_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ISET_TX_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ISET_TX` writer - Set Transmit FIFO event."]
pub type INT_EVENT2_ISET_TX_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ISET_TX_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ISET_TX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iset_tx_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_TX_AW :: INT_EVENT2_ISET_TX_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_iset_tx_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_TX_AW :: INT_EVENT2_ISET_TX_SET) } } impl W { # [doc = "Bit 4 - Set Transmit FIFO event."]
# [inline (always)]
# [must_use]
pub fn int_event2_iset_tx (& mut self) -> INT_EVENT2_ISET_TX_W < INT_EVENT2_ISET_SPEC , 4 > { INT_EVENT2_ISET_TX_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_ISET_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event2_iset::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT2_ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT2_ISET to value 0"]
impl crate :: Resettable for INT_EVENT2_ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_ICLR (w) register accessor: Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_iclr`]
module"]
pub type INT_EVENT2_ICLR = crate :: Reg < int_event2_iclr :: INT_EVENT2_ICLR_SPEC > ; # [doc = "Interrupt clear"]
pub mod int_event2_iclr { # [doc = "Register `INT_EVENT2_ICLR` writer"]
pub type W = crate :: W < INT_EVENT2_ICLR_SPEC > ; # [doc = "Clear Transmit FIFO event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ICLR_TX_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ICLR_TX_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT2_ICLR_TX_CLR = 1 , } impl From < INT_EVENT2_ICLR_TX_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ICLR_TX_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ICLR_TX` writer - Clear Transmit FIFO event."]
pub type INT_EVENT2_ICLR_TX_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ICLR_TX_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ICLR_TX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iclr_tx_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_TX_AW :: INT_EVENT2_ICLR_TX_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_iclr_tx_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_TX_AW :: INT_EVENT2_ICLR_TX_CLR) } } impl W { # [doc = "Bit 4 - Clear Transmit FIFO event."]
# [inline (always)]
# [must_use]
pub fn int_event2_iclr_tx (& mut self) -> INT_EVENT2_ICLR_TX_W < INT_EVENT2_ICLR_SPEC , 4 > { INT_EVENT2_ICLR_TX_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_ICLR_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event2_iclr::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT2_ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT2_ICLR to value 0"]
impl crate :: Resettable for INT_EVENT2_ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "EVT_MODE (rw) register accessor: Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`evt_mode::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@evt_mode`]
module"]
pub type EVT_MODE = crate :: Reg < evt_mode :: EVT_MODE_SPEC > ; # [doc = "Event Mode"]
pub mod evt_mode { # [doc = "Register `EVT_MODE` reader"]
pub type R = crate :: R < EVT_MODE_SPEC > ; # [doc = "Register `EVT_MODE` writer"]
pub type W = crate :: W < EVT_MODE_SPEC > ; # [doc = "Field `EVT_MODE_INT0_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT0\\]"]
pub type EVT_MODE_INT0_CFG_R = crate :: FieldReader < EVT_MODE_INT0_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT0\\]\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_INT0_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_INT0_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_INT0_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_INT0_CFG_HARDWARE = 2 , } impl From < EVT_MODE_INT0_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_INT0_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_INT0_CFG_A { type Ux = u8 ; } impl EVT_MODE_INT0_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_INT0_CFG_A > { match self . bits { 0 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_DISABLE) , 1 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_SOFTWARE) , 2 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_disable (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_software (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_hardware (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_HARDWARE } } # [doc = "Field `EVT_MODE_INT1_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT1\\]"]
pub type EVT_MODE_INT1_CFG_R = crate :: FieldReader < EVT_MODE_INT1_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT1\\]\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_INT1_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_INT1_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_INT1_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_INT1_CFG_HARDWARE = 2 , } impl From < EVT_MODE_INT1_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_INT1_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_INT1_CFG_A { type Ux = u8 ; } impl EVT_MODE_INT1_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_INT1_CFG_A > { match self . bits { 0 => Some (EVT_MODE_INT1_CFG_A :: EVT_MODE_INT1_CFG_DISABLE) , 1 => Some (EVT_MODE_INT1_CFG_A :: EVT_MODE_INT1_CFG_SOFTWARE) , 2 => Some (EVT_MODE_INT1_CFG_A :: EVT_MODE_INT1_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_int1_cfg_disable (& self) -> bool { * self == EVT_MODE_INT1_CFG_A :: EVT_MODE_INT1_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_int1_cfg_software (& self) -> bool { * self == EVT_MODE_INT1_CFG_A :: EVT_MODE_INT1_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_int1_cfg_hardware (& self) -> bool { * self == EVT_MODE_INT1_CFG_A :: EVT_MODE_INT1_CFG_HARDWARE } } # [doc = "Field `EVT_MODE_INT2_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT2\\]"]
pub type EVT_MODE_INT2_CFG_R = crate :: FieldReader < EVT_MODE_INT2_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT2\\]\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_INT2_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_INT2_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_INT2_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_INT2_CFG_HARDWARE = 2 , } impl From < EVT_MODE_INT2_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_INT2_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_INT2_CFG_A { type Ux = u8 ; } impl EVT_MODE_INT2_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_INT2_CFG_A > { match self . bits { 0 => Some (EVT_MODE_INT2_CFG_A :: EVT_MODE_INT2_CFG_DISABLE) , 1 => Some (EVT_MODE_INT2_CFG_A :: EVT_MODE_INT2_CFG_SOFTWARE) , 2 => Some (EVT_MODE_INT2_CFG_A :: EVT_MODE_INT2_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_int2_cfg_disable (& self) -> bool { * self == EVT_MODE_INT2_CFG_A :: EVT_MODE_INT2_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_int2_cfg_software (& self) -> bool { * self == EVT_MODE_INT2_CFG_A :: EVT_MODE_INT2_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_int2_cfg_hardware (& self) -> bool { * self == EVT_MODE_INT2_CFG_A :: EVT_MODE_INT2_CFG_HARDWARE } } impl R { # [doc = "Bits 0:1 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT0\\]"]
# [inline (always)]
pub fn evt_mode_int0_cfg (& self) -> EVT_MODE_INT0_CFG_R { EVT_MODE_INT0_CFG_R :: new ((self . bits & 3) as u8) } # [doc = "Bits 2:3 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT1\\]"]
# [inline (always)]
pub fn evt_mode_int1_cfg (& self) -> EVT_MODE_INT1_CFG_R { EVT_MODE_INT1_CFG_R :: new (((self . bits >> 2) & 3) as u8) } # [doc = "Bits 4:5 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT2\\]"]
# [inline (always)]
pub fn evt_mode_int2_cfg (& self) -> EVT_MODE_INT2_CFG_R { EVT_MODE_INT2_CFG_R :: new (((self . bits >> 4) & 3) as u8) } } impl W { # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`evt_mode::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct EVT_MODE_SPEC ; impl crate :: RegisterSpec for EVT_MODE_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`evt_mode::R`](R) reader structure"]
impl crate :: Readable for EVT_MODE_SPEC { } # [doc = "`write(|w| ..)` method takes [`evt_mode::W`](W) writer structure"]
impl crate :: Writable for EVT_MODE_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets EVT_MODE to value 0"]
impl crate :: Resettable for EVT_MODE_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTL0 (rw) register accessor: SPI control register 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctl0`]
module"]
pub type CTL0 = crate :: Reg < ctl0 :: CTL0_SPEC > ; # [doc = "SPI control register 0"]
pub mod ctl0 { # [doc = "Register `CTL0` reader"]
pub type R = crate :: R < CTL0_SPEC > ; # [doc = "Register `CTL0` writer"]
pub type W = crate :: W < CTL0_SPEC > ; # [doc = "Field `CTL0_DSS` reader - Data Size Select. Values 0 - 2 are reserved and shall not be used. 3h = 4_BIT : 4-bit data SPI allows only values up to 16 Bit"]
pub type CTL0_DSS_R = crate :: FieldReader < CTL0_DSS_A > ; # [doc = "Data Size Select. Values 0 - 2 are reserved and shall not be used. 3h = 4_BIT : 4-bit data SPI allows only values up to 16 Bit\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTL0_DSS_A { # [doc = "3: DSS_4"]
CTL0_DSS_DSS_4 = 3 , # [doc = "4: DSS_5"]
CTL0_DSS_DSS_5 = 4 , # [doc = "5: DSS_6"]
CTL0_DSS_DSS_6 = 5 , # [doc = "6: DSS_7"]
CTL0_DSS_DSS_7 = 6 , # [doc = "7: DSS_8"]
CTL0_DSS_DSS_8 = 7 , # [doc = "8: DSS_9"]
CTL0_DSS_DSS_9 = 8 , # [doc = "9: DSS_10"]
CTL0_DSS_DSS_10 = 9 , # [doc = "10: DSS_11"]
CTL0_DSS_DSS_11 = 10 , # [doc = "11: DSS_12"]
CTL0_DSS_DSS_12 = 11 , # [doc = "12: DSS_13"]
CTL0_DSS_DSS_13 = 12 , # [doc = "13: DSS_14"]
CTL0_DSS_DSS_14 = 13 , # [doc = "14: DSS_15"]
CTL0_DSS_DSS_15 = 14 , # [doc = "15: DSS_16"]
CTL0_DSS_DSS_16 = 15 , # [doc = "31: DSS_32"]
CTL0_DSS_DSS_32 = 31 , } impl From < CTL0_DSS_A > for u8 { # [inline (always)]
fn from (variant : CTL0_DSS_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTL0_DSS_A { type Ux = u8 ; } impl CTL0_DSS_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTL0_DSS_A > { match self . bits { 3 => Some (CTL0_DSS_A :: CTL0_DSS_DSS_4) , 4 => Some (CTL0_DSS_A :: CTL0_DSS_DSS_5) , 5 => Some (CTL0_DSS_A :: CTL0_DSS_DSS_6) , 6 => Some (CTL0_DSS_A :: CTL0_DSS_DSS_7) , 7 => Some (CTL0_DSS_A :: CTL0_DSS_DSS_8) , 8 => Some (CTL0_DSS_A :: CTL0_DSS_DSS_9) , 9 => Some (CTL0_DSS_A :: CTL0_DSS_DSS_10) , 10 => Some (CTL0_DSS_A :: CTL0_DSS_DSS_11) , 11 => Some (CTL0_DSS_A :: CTL0_DSS_DSS_12) , 12 => Some (CTL0_DSS_A :: CTL0_DSS_DSS_13) , 13 => Some (CTL0_DSS_A :: CTL0_DSS_DSS_14) , 14 => Some (CTL0_DSS_A :: CTL0_DSS_DSS_15) , 15 => Some (CTL0_DSS_A :: CTL0_DSS_DSS_16) , 31 => Some (CTL0_DSS_A :: CTL0_DSS_DSS_32) , _ => None , } } # [doc = "DSS_4"]
# [inline (always)]
pub fn is_ctl0_dss_dss_4 (& self) -> bool { * self == CTL0_DSS_A :: CTL0_DSS_DSS_4 } # [doc = "DSS_5"]
# [inline (always)]
pub fn is_ctl0_dss_dss_5 (& self) -> bool { * self == CTL0_DSS_A :: CTL0_DSS_DSS_5 } # [doc = "DSS_6"]
# [inline (always)]
pub fn is_ctl0_dss_dss_6 (& self) -> bool { * self == CTL0_DSS_A :: CTL0_DSS_DSS_6 } # [doc = "DSS_7"]
# [inline (always)]
pub fn is_ctl0_dss_dss_7 (& self) -> bool { * self == CTL0_DSS_A :: CTL0_DSS_DSS_7 } # [doc = "DSS_8"]
# [inline (always)]
pub fn is_ctl0_dss_dss_8 (& self) -> bool { * self == CTL0_DSS_A :: CTL0_DSS_DSS_8 } # [doc = "DSS_9"]
# [inline (always)]
pub fn is_ctl0_dss_dss_9 (& self) -> bool { * self == CTL0_DSS_A :: CTL0_DSS_DSS_9 } # [doc = "DSS_10"]
# [inline (always)]
pub fn is_ctl0_dss_dss_10 (& self) -> bool { * self == CTL0_DSS_A :: CTL0_DSS_DSS_10 } # [doc = "DSS_11"]
# [inline (always)]
pub fn is_ctl0_dss_dss_11 (& self) -> bool { * self == CTL0_DSS_A :: CTL0_DSS_DSS_11 } # [doc = "DSS_12"]
# [inline (always)]
pub fn is_ctl0_dss_dss_12 (& self) -> bool { * self == CTL0_DSS_A :: CTL0_DSS_DSS_12 } # [doc = "DSS_13"]
# [inline (always)]
pub fn is_ctl0_dss_dss_13 (& self) -> bool { * self == CTL0_DSS_A :: CTL0_DSS_DSS_13 } # [doc = "DSS_14"]
# [inline (always)]
pub fn is_ctl0_dss_dss_14 (& self) -> bool { * self == CTL0_DSS_A :: CTL0_DSS_DSS_14 } # [doc = "DSS_15"]
# [inline (always)]
pub fn is_ctl0_dss_dss_15 (& self) -> bool { * self == CTL0_DSS_A :: CTL0_DSS_DSS_15 } # [doc = "DSS_16"]
# [inline (always)]
pub fn is_ctl0_dss_dss_16 (& self) -> bool { * self == CTL0_DSS_A :: CTL0_DSS_DSS_16 } # [doc = "DSS_32"]
# [inline (always)]
pub fn is_ctl0_dss_dss_32 (& self) -> bool { * self == CTL0_DSS_A :: CTL0_DSS_DSS_32 } } # [doc = "Field `CTL0_DSS` writer - Data Size Select. Values 0 - 2 are reserved and shall not be used. 3h = 4_BIT : 4-bit data SPI allows only values up to 16 Bit"]
pub type CTL0_DSS_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 5 , O , CTL0_DSS_A > ; impl < 'a , REG , const O : u8 > CTL0_DSS_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DSS_4"]
# [inline (always)]
pub fn ctl0_dss_dss_4 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_DSS_A :: CTL0_DSS_DSS_4) } # [doc = "DSS_5"]
# [inline (always)]
pub fn ctl0_dss_dss_5 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_DSS_A :: CTL0_DSS_DSS_5) } # [doc = "DSS_6"]
# [inline (always)]
pub fn ctl0_dss_dss_6 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_DSS_A :: CTL0_DSS_DSS_6) } # [doc = "DSS_7"]
# [inline (always)]
pub fn ctl0_dss_dss_7 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_DSS_A :: CTL0_DSS_DSS_7) } # [doc = "DSS_8"]
# [inline (always)]
pub fn ctl0_dss_dss_8 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_DSS_A :: CTL0_DSS_DSS_8) } # [doc = "DSS_9"]
# [inline (always)]
pub fn ctl0_dss_dss_9 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_DSS_A :: CTL0_DSS_DSS_9) } # [doc = "DSS_10"]
# [inline (always)]
pub fn ctl0_dss_dss_10 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_DSS_A :: CTL0_DSS_DSS_10) } # [doc = "DSS_11"]
# [inline (always)]
pub fn ctl0_dss_dss_11 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_DSS_A :: CTL0_DSS_DSS_11) } # [doc = "DSS_12"]
# [inline (always)]
pub fn ctl0_dss_dss_12 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_DSS_A :: CTL0_DSS_DSS_12) } # [doc = "DSS_13"]
# [inline (always)]
pub fn ctl0_dss_dss_13 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_DSS_A :: CTL0_DSS_DSS_13) } # [doc = "DSS_14"]
# [inline (always)]
pub fn ctl0_dss_dss_14 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_DSS_A :: CTL0_DSS_DSS_14) } # [doc = "DSS_15"]
# [inline (always)]
pub fn ctl0_dss_dss_15 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_DSS_A :: CTL0_DSS_DSS_15) } # [doc = "DSS_16"]
# [inline (always)]
pub fn ctl0_dss_dss_16 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_DSS_A :: CTL0_DSS_DSS_16) } # [doc = "DSS_32"]
# [inline (always)]
pub fn ctl0_dss_dss_32 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_DSS_A :: CTL0_DSS_DSS_32) } } # [doc = "Field `CTL0_FRF` reader - Frame format Select"]
pub type CTL0_FRF_R = crate :: FieldReader < CTL0_FRF_A > ; # [doc = "Frame format Select\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTL0_FRF_A { # [doc = "0: MOTOROLA_3WIRE"]
CTL0_FRF_MOTOROLA_3WIRE = 0 , # [doc = "1: MOTOROLA_4WIRE"]
CTL0_FRF_MOTOROLA_4WIRE = 1 , # [doc = "2: TI_SYNC"]
CTL0_FRF_TI_SYNC = 2 , # [doc = "3: MIRCOWIRE"]
CTL0_FRF_MIRCOWIRE = 3 , } impl From < CTL0_FRF_A > for u8 { # [inline (always)]
fn from (variant : CTL0_FRF_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTL0_FRF_A { type Ux = u8 ; } impl CTL0_FRF_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_FRF_A { match self . bits { 0 => CTL0_FRF_A :: CTL0_FRF_MOTOROLA_3WIRE , 1 => CTL0_FRF_A :: CTL0_FRF_MOTOROLA_4WIRE , 2 => CTL0_FRF_A :: CTL0_FRF_TI_SYNC , 3 => CTL0_FRF_A :: CTL0_FRF_MIRCOWIRE , _ => unreachable ! () , } } # [doc = "MOTOROLA_3WIRE"]
# [inline (always)]
pub fn is_ctl0_frf_motorola_3wire (& self) -> bool { * self == CTL0_FRF_A :: CTL0_FRF_MOTOROLA_3WIRE } # [doc = "MOTOROLA_4WIRE"]
# [inline (always)]
pub fn is_ctl0_frf_motorola_4wire (& self) -> bool { * self == CTL0_FRF_A :: CTL0_FRF_MOTOROLA_4WIRE } # [doc = "TI_SYNC"]
# [inline (always)]
pub fn is_ctl0_frf_ti_sync (& self) -> bool { * self == CTL0_FRF_A :: CTL0_FRF_TI_SYNC } # [doc = "MIRCOWIRE"]
# [inline (always)]
pub fn is_ctl0_frf_mircowire (& self) -> bool { * self == CTL0_FRF_A :: CTL0_FRF_MIRCOWIRE } } # [doc = "Field `CTL0_FRF` writer - Frame format Select"]
pub type CTL0_FRF_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , CTL0_FRF_A > ; impl < 'a , REG , const O : u8 > CTL0_FRF_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "MOTOROLA_3WIRE"]
# [inline (always)]
pub fn ctl0_frf_motorola_3wire (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_FRF_A :: CTL0_FRF_MOTOROLA_3WIRE) } # [doc = "MOTOROLA_4WIRE"]
# [inline (always)]
pub fn ctl0_frf_motorola_4wire (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_FRF_A :: CTL0_FRF_MOTOROLA_4WIRE) } # [doc = "TI_SYNC"]
# [inline (always)]
pub fn ctl0_frf_ti_sync (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_FRF_A :: CTL0_FRF_TI_SYNC) } # [doc = "MIRCOWIRE"]
# [inline (always)]
pub fn ctl0_frf_mircowire (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_FRF_A :: CTL0_FRF_MIRCOWIRE) } } # [doc = "Field `CTL0_PACKEN` reader - Packing Enable. When 1, packing feature is enabled inside the IP When 0, packing feature is disabled inside the IP"]
pub type CTL0_PACKEN_R = crate :: BitReader < CTL0_PACKEN_A > ; # [doc = "Packing Enable. When 1, packing feature is enabled inside the IP When 0, packing feature is disabled inside the IP\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_PACKEN_A { # [doc = "0: DISABLED"]
CTL0_PACKEN_DISABLED = 0 , # [doc = "1: ENABLED"]
CTL0_PACKEN_ENABLED = 1 , } impl From < CTL0_PACKEN_A > for bool { # [inline (always)]
fn from (variant : CTL0_PACKEN_A) -> Self { variant as u8 != 0 } } impl CTL0_PACKEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_PACKEN_A { match self . bits { false => CTL0_PACKEN_A :: CTL0_PACKEN_DISABLED , true => CTL0_PACKEN_A :: CTL0_PACKEN_ENABLED , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ctl0_packen_disabled (& self) -> bool { * self == CTL0_PACKEN_A :: CTL0_PACKEN_DISABLED } # [doc = "ENABLED"]
# [inline (always)]
pub fn is_ctl0_packen_enabled (& self) -> bool { * self == CTL0_PACKEN_A :: CTL0_PACKEN_ENABLED } } # [doc = "Field `CTL0_PACKEN` writer - Packing Enable. When 1, packing feature is enabled inside the IP When 0, packing feature is disabled inside the IP"]
pub type CTL0_PACKEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_PACKEN_A > ; impl < 'a , REG , const O : u8 > CTL0_PACKEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn ctl0_packen_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_PACKEN_A :: CTL0_PACKEN_DISABLED) } # [doc = "ENABLED"]
# [inline (always)]
pub fn ctl0_packen_enabled (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_PACKEN_A :: CTL0_PACKEN_ENABLED) } } # [doc = "Field `CTL0_SPO` reader - CLKOUT polarity (Motorola SPI frame format only)"]
pub type CTL0_SPO_R = crate :: BitReader < CTL0_SPO_A > ; # [doc = "CLKOUT polarity (Motorola SPI frame format only)\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_SPO_A { # [doc = "0: LOW"]
CTL0_SPO_LOW = 0 , # [doc = "1: HIGH"]
CTL0_SPO_HIGH = 1 , } impl From < CTL0_SPO_A > for bool { # [inline (always)]
fn from (variant : CTL0_SPO_A) -> Self { variant as u8 != 0 } } impl CTL0_SPO_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_SPO_A { match self . bits { false => CTL0_SPO_A :: CTL0_SPO_LOW , true => CTL0_SPO_A :: CTL0_SPO_HIGH , } } # [doc = "LOW"]
# [inline (always)]
pub fn is_ctl0_spo_low (& self) -> bool { * self == CTL0_SPO_A :: CTL0_SPO_LOW } # [doc = "HIGH"]
# [inline (always)]
pub fn is_ctl0_spo_high (& self) -> bool { * self == CTL0_SPO_A :: CTL0_SPO_HIGH } } # [doc = "Field `CTL0_SPO` writer - CLKOUT polarity (Motorola SPI frame format only)"]
pub type CTL0_SPO_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_SPO_A > ; impl < 'a , REG , const O : u8 > CTL0_SPO_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "LOW"]
# [inline (always)]
pub fn ctl0_spo_low (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_SPO_A :: CTL0_SPO_LOW) } # [doc = "HIGH"]
# [inline (always)]
pub fn ctl0_spo_high (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_SPO_A :: CTL0_SPO_HIGH) } } # [doc = "Field `CTL0_SPH` reader - CLKOUT phase (Motorola SPI frame format only) This bit selects the clock edge that captures data and enables it to change state. It has the most impact on the first bit transmitted by either permitting or not permitting a clock transition before the first data capture edge."]
pub type CTL0_SPH_R = crate :: BitReader < CTL0_SPH_A > ; # [doc = "CLKOUT phase (Motorola SPI frame format only) This bit selects the clock edge that captures data and enables it to change state. It has the most impact on the first bit transmitted by either permitting or not permitting a clock transition before the first data capture edge.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_SPH_A { # [doc = "0: FIRST"]
CTL0_SPH_FIRST = 0 , # [doc = "1: SECOND"]
CTL0_SPH_SECOND = 1 , } impl From < CTL0_SPH_A > for bool { # [inline (always)]
fn from (variant : CTL0_SPH_A) -> Self { variant as u8 != 0 } } impl CTL0_SPH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_SPH_A { match self . bits { false => CTL0_SPH_A :: CTL0_SPH_FIRST , true => CTL0_SPH_A :: CTL0_SPH_SECOND , } } # [doc = "FIRST"]
# [inline (always)]
pub fn is_ctl0_sph_first (& self) -> bool { * self == CTL0_SPH_A :: CTL0_SPH_FIRST } # [doc = "SECOND"]
# [inline (always)]
pub fn is_ctl0_sph_second (& self) -> bool { * self == CTL0_SPH_A :: CTL0_SPH_SECOND } } # [doc = "Field `CTL0_SPH` writer - CLKOUT phase (Motorola SPI frame format only) This bit selects the clock edge that captures data and enables it to change state. It has the most impact on the first bit transmitted by either permitting or not permitting a clock transition before the first data capture edge."]
pub type CTL0_SPH_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_SPH_A > ; impl < 'a , REG , const O : u8 > CTL0_SPH_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "FIRST"]
# [inline (always)]
pub fn ctl0_sph_first (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_SPH_A :: CTL0_SPH_FIRST) } # [doc = "SECOND"]
# [inline (always)]
pub fn ctl0_sph_second (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_SPH_A :: CTL0_SPH_SECOND) } } # [doc = "Field `CTL0_CSSEL` reader - Select the CS line to control on data transfer This bit is for controller mode only."]
pub type CTL0_CSSEL_R = crate :: FieldReader < CTL0_CSSEL_A > ; # [doc = "Select the CS line to control on data transfer This bit is for controller mode only.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTL0_CSSEL_A { # [doc = "0: CSSEL_0"]
CTL0_CSSEL_CSSEL_0 = 0 , # [doc = "1: CSSEL_1"]
CTL0_CSSEL_CSSEL_1 = 1 , # [doc = "2: CSSEL_2"]
CTL0_CSSEL_CSSEL_2 = 2 , # [doc = "3: CSSEL_3"]
CTL0_CSSEL_CSSEL_3 = 3 , } impl From < CTL0_CSSEL_A > for u8 { # [inline (always)]
fn from (variant : CTL0_CSSEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTL0_CSSEL_A { type Ux = u8 ; } impl CTL0_CSSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_CSSEL_A { match self . bits { 0 => CTL0_CSSEL_A :: CTL0_CSSEL_CSSEL_0 , 1 => CTL0_CSSEL_A :: CTL0_CSSEL_CSSEL_1 , 2 => CTL0_CSSEL_A :: CTL0_CSSEL_CSSEL_2 , 3 => CTL0_CSSEL_A :: CTL0_CSSEL_CSSEL_3 , _ => unreachable ! () , } } # [doc = "CSSEL_0"]
# [inline (always)]
pub fn is_ctl0_cssel_cssel_0 (& self) -> bool { * self == CTL0_CSSEL_A :: CTL0_CSSEL_CSSEL_0 } # [doc = "CSSEL_1"]
# [inline (always)]
pub fn is_ctl0_cssel_cssel_1 (& self) -> bool { * self == CTL0_CSSEL_A :: CTL0_CSSEL_CSSEL_1 } # [doc = "CSSEL_2"]
# [inline (always)]
pub fn is_ctl0_cssel_cssel_2 (& self) -> bool { * self == CTL0_CSSEL_A :: CTL0_CSSEL_CSSEL_2 } # [doc = "CSSEL_3"]
# [inline (always)]
pub fn is_ctl0_cssel_cssel_3 (& self) -> bool { * self == CTL0_CSSEL_A :: CTL0_CSSEL_CSSEL_3 } } # [doc = "Field `CTL0_CSSEL` writer - Select the CS line to control on data transfer This bit is for controller mode only."]
pub type CTL0_CSSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , CTL0_CSSEL_A > ; impl < 'a , REG , const O : u8 > CTL0_CSSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "CSSEL_0"]
# [inline (always)]
pub fn ctl0_cssel_cssel_0 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_CSSEL_A :: CTL0_CSSEL_CSSEL_0) } # [doc = "CSSEL_1"]
# [inline (always)]
pub fn ctl0_cssel_cssel_1 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_CSSEL_A :: CTL0_CSSEL_CSSEL_1) } # [doc = "CSSEL_2"]
# [inline (always)]
pub fn ctl0_cssel_cssel_2 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_CSSEL_A :: CTL0_CSSEL_CSSEL_2) } # [doc = "CSSEL_3"]
# [inline (always)]
pub fn ctl0_cssel_cssel_3 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_CSSEL_A :: CTL0_CSSEL_CSSEL_3) } } # [doc = "Field `CTL0_CSCLR` reader - Clear shift register counter on CS inactive This bit is relevant only in the peripheral, CTL1.MS=0."]
pub type CTL0_CSCLR_R = crate :: BitReader < CTL0_CSCLR_A > ; # [doc = "Clear shift register counter on CS inactive This bit is relevant only in the peripheral, CTL1.MS=0.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_CSCLR_A { # [doc = "0: DISABLE"]
CTL0_CSCLR_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL0_CSCLR_ENABLE = 1 , } impl From < CTL0_CSCLR_A > for bool { # [inline (always)]
fn from (variant : CTL0_CSCLR_A) -> Self { variant as u8 != 0 } } impl CTL0_CSCLR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_CSCLR_A { match self . bits { false => CTL0_CSCLR_A :: CTL0_CSCLR_DISABLE , true => CTL0_CSCLR_A :: CTL0_CSCLR_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl0_csclr_disable (& self) -> bool { * self == CTL0_CSCLR_A :: CTL0_CSCLR_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl0_csclr_enable (& self) -> bool { * self == CTL0_CSCLR_A :: CTL0_CSCLR_ENABLE } } # [doc = "Field `CTL0_CSCLR` writer - Clear shift register counter on CS inactive This bit is relevant only in the peripheral, CTL1.MS=0."]
pub type CTL0_CSCLR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_CSCLR_A > ; impl < 'a , REG , const O : u8 > CTL0_CSCLR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl0_csclr_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_CSCLR_A :: CTL0_CSCLR_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl0_csclr_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_CSCLR_A :: CTL0_CSCLR_ENABLE) } } impl R { # [doc = "Bits 0:4 - Data Size Select. Values 0 - 2 are reserved and shall not be used. 3h = 4_BIT : 4-bit data SPI allows only values up to 16 Bit"]
# [inline (always)]
pub fn ctl0_dss (& self) -> CTL0_DSS_R { CTL0_DSS_R :: new ((self . bits & 0x1f) as u8) } # [doc = "Bits 5:6 - Frame format Select"]
# [inline (always)]
pub fn ctl0_frf (& self) -> CTL0_FRF_R { CTL0_FRF_R :: new (((self . bits >> 5) & 3) as u8) } # [doc = "Bit 7 - Packing Enable. When 1, packing feature is enabled inside the IP When 0, packing feature is disabled inside the IP"]
# [inline (always)]
pub fn ctl0_packen (& self) -> CTL0_PACKEN_R { CTL0_PACKEN_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - CLKOUT polarity (Motorola SPI frame format only)"]
# [inline (always)]
pub fn ctl0_spo (& self) -> CTL0_SPO_R { CTL0_SPO_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - CLKOUT phase (Motorola SPI frame format only) This bit selects the clock edge that captures data and enables it to change state. It has the most impact on the first bit transmitted by either permitting or not permitting a clock transition before the first data capture edge."]
# [inline (always)]
pub fn ctl0_sph (& self) -> CTL0_SPH_R { CTL0_SPH_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bits 12:13 - Select the CS line to control on data transfer This bit is for controller mode only."]
# [inline (always)]
pub fn ctl0_cssel (& self) -> CTL0_CSSEL_R { CTL0_CSSEL_R :: new (((self . bits >> 12) & 3) as u8) } # [doc = "Bit 14 - Clear shift register counter on CS inactive This bit is relevant only in the peripheral, CTL1.MS=0."]
# [inline (always)]
pub fn ctl0_csclr (& self) -> CTL0_CSCLR_R { CTL0_CSCLR_R :: new (((self . bits >> 14) & 1) != 0) } } impl W { # [doc = "Bits 0:4 - Data Size Select. Values 0 - 2 are reserved and shall not be used. 3h = 4_BIT : 4-bit data SPI allows only values up to 16 Bit"]
# [inline (always)]
# [must_use]
pub fn ctl0_dss (& mut self) -> CTL0_DSS_W < CTL0_SPEC , 0 > { CTL0_DSS_W :: new (self) } # [doc = "Bits 5:6 - Frame format Select"]
# [inline (always)]
# [must_use]
pub fn ctl0_frf (& mut self) -> CTL0_FRF_W < CTL0_SPEC , 5 > { CTL0_FRF_W :: new (self) } # [doc = "Bit 7 - Packing Enable. When 1, packing feature is enabled inside the IP When 0, packing feature is disabled inside the IP"]
# [inline (always)]
# [must_use]
pub fn ctl0_packen (& mut self) -> CTL0_PACKEN_W < CTL0_SPEC , 7 > { CTL0_PACKEN_W :: new (self) } # [doc = "Bit 8 - CLKOUT polarity (Motorola SPI frame format only)"]
# [inline (always)]
# [must_use]
pub fn ctl0_spo (& mut self) -> CTL0_SPO_W < CTL0_SPEC , 8 > { CTL0_SPO_W :: new (self) } # [doc = "Bit 9 - CLKOUT phase (Motorola SPI frame format only) This bit selects the clock edge that captures data and enables it to change state. It has the most impact on the first bit transmitted by either permitting or not permitting a clock transition before the first data capture edge."]
# [inline (always)]
# [must_use]
pub fn ctl0_sph (& mut self) -> CTL0_SPH_W < CTL0_SPEC , 9 > { CTL0_SPH_W :: new (self) } # [doc = "Bits 12:13 - Select the CS line to control on data transfer This bit is for controller mode only."]
# [inline (always)]
# [must_use]
pub fn ctl0_cssel (& mut self) -> CTL0_CSSEL_W < CTL0_SPEC , 12 > { CTL0_CSSEL_W :: new (self) } # [doc = "Bit 14 - Clear shift register counter on CS inactive This bit is relevant only in the peripheral, CTL1.MS=0."]
# [inline (always)]
# [must_use]
pub fn ctl0_csclr (& mut self) -> CTL0_CSCLR_W < CTL0_SPEC , 14 > { CTL0_CSCLR_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "SPI control register 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl0::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTL0_SPEC ; impl crate :: RegisterSpec for CTL0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ctl0::R`](R) reader structure"]
impl crate :: Readable for CTL0_SPEC { } # [doc = "`write(|w| ..)` method takes [`ctl0::W`](W) writer structure"]
impl crate :: Writable for CTL0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTL0 to value 0"]
impl crate :: Resettable for CTL0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTL1 (rw) register accessor: SPI control register 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctl1`]
module"]
pub type CTL1 = crate :: Reg < ctl1 :: CTL1_SPEC > ; # [doc = "SPI control register 1"]
pub mod ctl1 { # [doc = "Register `CTL1` reader"]
pub type R = crate :: R < CTL1_SPEC > ; # [doc = "Register `CTL1` writer"]
pub type W = crate :: W < CTL1_SPEC > ; # [doc = "Field `CTL1_ENABLE` reader - SPI enable"]
pub type CTL1_ENABLE_R = crate :: BitReader < CTL1_ENABLE_A > ; # [doc = "SPI enable\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL1_ENABLE_A { # [doc = "0: DISABLE"]
CTL1_ENABLE_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL1_ENABLE_ENABLE = 1 , } impl From < CTL1_ENABLE_A > for bool { # [inline (always)]
fn from (variant : CTL1_ENABLE_A) -> Self { variant as u8 != 0 } } impl CTL1_ENABLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL1_ENABLE_A { match self . bits { false => CTL1_ENABLE_A :: CTL1_ENABLE_DISABLE , true => CTL1_ENABLE_A :: CTL1_ENABLE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl1_enable_disable (& self) -> bool { * self == CTL1_ENABLE_A :: CTL1_ENABLE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl1_enable_enable (& self) -> bool { * self == CTL1_ENABLE_A :: CTL1_ENABLE_ENABLE } } # [doc = "Field `CTL1_ENABLE` writer - SPI enable"]
pub type CTL1_ENABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL1_ENABLE_A > ; impl < 'a , REG , const O : u8 > CTL1_ENABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl1_enable_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_ENABLE_A :: CTL1_ENABLE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl1_enable_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_ENABLE_A :: CTL1_ENABLE_ENABLE) } } # [doc = "Field `CTL1_LBM` reader - Loop back mode"]
pub type CTL1_LBM_R = crate :: BitReader < CTL1_LBM_A > ; # [doc = "Loop back mode\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL1_LBM_A { # [doc = "0: DISABLE"]
CTL1_LBM_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL1_LBM_ENABLE = 1 , } impl From < CTL1_LBM_A > for bool { # [inline (always)]
fn from (variant : CTL1_LBM_A) -> Self { variant as u8 != 0 } } impl CTL1_LBM_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL1_LBM_A { match self . bits { false => CTL1_LBM_A :: CTL1_LBM_DISABLE , true => CTL1_LBM_A :: CTL1_LBM_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl1_lbm_disable (& self) -> bool { * self == CTL1_LBM_A :: CTL1_LBM_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl1_lbm_enable (& self) -> bool { * self == CTL1_LBM_A :: CTL1_LBM_ENABLE } } # [doc = "Field `CTL1_LBM` writer - Loop back mode"]
pub type CTL1_LBM_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL1_LBM_A > ; impl < 'a , REG , const O : u8 > CTL1_LBM_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl1_lbm_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_LBM_A :: CTL1_LBM_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl1_lbm_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_LBM_A :: CTL1_LBM_ENABLE) } } # [doc = "Field `CTL1_MS` reader - Controller or peripheral mode select. This bit can be modified only when SPI is disabled, CTL1.ENABLE=0."]
pub type CTL1_MS_R = crate :: BitReader < CTL1_MS_A > ; # [doc = "Controller or peripheral mode select. This bit can be modified only when SPI is disabled, CTL1.ENABLE=0.\n\nValue on reset: 1"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL1_MS_A { # [doc = "0: DISABLE"]
CTL1_MS_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL1_MS_ENABLE = 1 , } impl From < CTL1_MS_A > for bool { # [inline (always)]
fn from (variant : CTL1_MS_A) -> Self { variant as u8 != 0 } } impl CTL1_MS_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL1_MS_A { match self . bits { false => CTL1_MS_A :: CTL1_MS_DISABLE , true => CTL1_MS_A :: CTL1_MS_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl1_ms_disable (& self) -> bool { * self == CTL1_MS_A :: CTL1_MS_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl1_ms_enable (& self) -> bool { * self == CTL1_MS_A :: CTL1_MS_ENABLE } } # [doc = "Field `CTL1_MS` writer - Controller or peripheral mode select. This bit can be modified only when SPI is disabled, CTL1.ENABLE=0."]
pub type CTL1_MS_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL1_MS_A > ; impl < 'a , REG , const O : u8 > CTL1_MS_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl1_ms_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_MS_A :: CTL1_MS_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl1_ms_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_MS_A :: CTL1_MS_ENABLE) } } # [doc = "Field `CTL1_SOD` reader - Peripheral-mode: Data output disabled This bit is relevant only in the peripheral mode, CTL1.MS=1. In multiple-peripheral systems, it is possible for an SPI controller to broadcast a message to all peripherals in the system while ensuring that only one peripheral drives data onto its serial output line. In such systems the MISO lines from multiple peripherals could be tied together. To operate in such systems, this bitfield can be set if the SPI peripheral is not supposed to drive the MISO line:"]
pub type CTL1_SOD_R = crate :: BitReader < CTL1_SOD_A > ; # [doc = "Peripheral-mode: Data output disabled This bit is relevant only in the peripheral mode, CTL1.MS=1. In multiple-peripheral systems, it is possible for an SPI controller to broadcast a message to all peripherals in the system while ensuring that only one peripheral drives data onto its serial output line. In such systems the MISO lines from multiple peripherals could be tied together. To operate in such systems, this bitfield can be set if the SPI peripheral is not supposed to drive the MISO line:\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL1_SOD_A { # [doc = "0: DISABLE"]
CTL1_SOD_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL1_SOD_ENABLE = 1 , } impl From < CTL1_SOD_A > for bool { # [inline (always)]
fn from (variant : CTL1_SOD_A) -> Self { variant as u8 != 0 } } impl CTL1_SOD_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL1_SOD_A { match self . bits { false => CTL1_SOD_A :: CTL1_SOD_DISABLE , true => CTL1_SOD_A :: CTL1_SOD_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl1_sod_disable (& self) -> bool { * self == CTL1_SOD_A :: CTL1_SOD_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl1_sod_enable (& self) -> bool { * self == CTL1_SOD_A :: CTL1_SOD_ENABLE } } # [doc = "Field `CTL1_SOD` writer - Peripheral-mode: Data output disabled This bit is relevant only in the peripheral mode, CTL1.MS=1. In multiple-peripheral systems, it is possible for an SPI controller to broadcast a message to all peripherals in the system while ensuring that only one peripheral drives data onto its serial output line. In such systems the MISO lines from multiple peripherals could be tied together. To operate in such systems, this bitfield can be set if the SPI peripheral is not supposed to drive the MISO line:"]
pub type CTL1_SOD_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL1_SOD_A > ; impl < 'a , REG , const O : u8 > CTL1_SOD_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl1_sod_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_SOD_A :: CTL1_SOD_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl1_sod_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_SOD_A :: CTL1_SOD_ENABLE) } } # [doc = "Field `CTL1_MSB` reader - MSB first select. Controls the direction of the receive and transmit shift register."]
pub type CTL1_MSB_R = crate :: BitReader < CTL1_MSB_A > ; # [doc = "MSB first select. Controls the direction of the receive and transmit shift register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL1_MSB_A { # [doc = "0: DISABLE"]
CTL1_MSB_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL1_MSB_ENABLE = 1 , } impl From < CTL1_MSB_A > for bool { # [inline (always)]
fn from (variant : CTL1_MSB_A) -> Self { variant as u8 != 0 } } impl CTL1_MSB_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL1_MSB_A { match self . bits { false => CTL1_MSB_A :: CTL1_MSB_DISABLE , true => CTL1_MSB_A :: CTL1_MSB_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl1_msb_disable (& self) -> bool { * self == CTL1_MSB_A :: CTL1_MSB_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl1_msb_enable (& self) -> bool { * self == CTL1_MSB_A :: CTL1_MSB_ENABLE } } # [doc = "Field `CTL1_MSB` writer - MSB first select. Controls the direction of the receive and transmit shift register."]
pub type CTL1_MSB_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL1_MSB_A > ; impl < 'a , REG , const O : u8 > CTL1_MSB_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl1_msb_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_MSB_A :: CTL1_MSB_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl1_msb_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_MSB_A :: CTL1_MSB_ENABLE) } } # [doc = "Field `CTL1_PREN` reader - Parity receive enable If enabled, parity reception check will be done for both controller and peripheral modes In case of a parity miss-match the parity error flag RIS.PER will be set."]
pub type CTL1_PREN_R = crate :: BitReader < CTL1_PREN_A > ; # [doc = "Parity receive enable If enabled, parity reception check will be done for both controller and peripheral modes In case of a parity miss-match the parity error flag RIS.PER will be set.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL1_PREN_A { # [doc = "0: DISABLE"]
CTL1_PREN_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL1_PREN_ENABLE = 1 , } impl From < CTL1_PREN_A > for bool { # [inline (always)]
fn from (variant : CTL1_PREN_A) -> Self { variant as u8 != 0 } } impl CTL1_PREN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL1_PREN_A { match self . bits { false => CTL1_PREN_A :: CTL1_PREN_DISABLE , true => CTL1_PREN_A :: CTL1_PREN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl1_pren_disable (& self) -> bool { * self == CTL1_PREN_A :: CTL1_PREN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl1_pren_enable (& self) -> bool { * self == CTL1_PREN_A :: CTL1_PREN_ENABLE } } # [doc = "Field `CTL1_PREN` writer - Parity receive enable If enabled, parity reception check will be done for both controller and peripheral modes In case of a parity miss-match the parity error flag RIS.PER will be set."]
pub type CTL1_PREN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL1_PREN_A > ; impl < 'a , REG , const O : u8 > CTL1_PREN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl1_pren_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_PREN_A :: CTL1_PREN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl1_pren_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_PREN_A :: CTL1_PREN_ENABLE) } } # [doc = "Field `CTL1_PES` reader - Even Parity Select"]
pub type CTL1_PES_R = crate :: BitReader < CTL1_PES_A > ; # [doc = "Even Parity Select\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL1_PES_A { # [doc = "0: DISABLE"]
CTL1_PES_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL1_PES_ENABLE = 1 , } impl From < CTL1_PES_A > for bool { # [inline (always)]
fn from (variant : CTL1_PES_A) -> Self { variant as u8 != 0 } } impl CTL1_PES_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL1_PES_A { match self . bits { false => CTL1_PES_A :: CTL1_PES_DISABLE , true => CTL1_PES_A :: CTL1_PES_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl1_pes_disable (& self) -> bool { * self == CTL1_PES_A :: CTL1_PES_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl1_pes_enable (& self) -> bool { * self == CTL1_PES_A :: CTL1_PES_ENABLE } } # [doc = "Field `CTL1_PES` writer - Even Parity Select"]
pub type CTL1_PES_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL1_PES_A > ; impl < 'a , REG , const O : u8 > CTL1_PES_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl1_pes_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_PES_A :: CTL1_PES_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl1_pes_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_PES_A :: CTL1_PES_ENABLE) } } # [doc = "Field `CTL1_PBS` reader - Parity Bit Select"]
pub type CTL1_PBS_R = crate :: BitReader < CTL1_PBS_A > ; # [doc = "Parity Bit Select\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL1_PBS_A { # [doc = "0: DISABLE"]
CTL1_PBS_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL1_PBS_ENABLE = 1 , } impl From < CTL1_PBS_A > for bool { # [inline (always)]
fn from (variant : CTL1_PBS_A) -> Self { variant as u8 != 0 } } impl CTL1_PBS_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL1_PBS_A { match self . bits { false => CTL1_PBS_A :: CTL1_PBS_DISABLE , true => CTL1_PBS_A :: CTL1_PBS_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl1_pbs_disable (& self) -> bool { * self == CTL1_PBS_A :: CTL1_PBS_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl1_pbs_enable (& self) -> bool { * self == CTL1_PBS_A :: CTL1_PBS_ENABLE } } # [doc = "Field `CTL1_PBS` writer - Parity Bit Select"]
pub type CTL1_PBS_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL1_PBS_A > ; impl < 'a , REG , const O : u8 > CTL1_PBS_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl1_pbs_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_PBS_A :: CTL1_PBS_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl1_pbs_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_PBS_A :: CTL1_PBS_ENABLE) } } # [doc = "Field `CTL1_PTEN` reader - Parity transmit enable If enabled, parity transmission will be done for both controller and peripheral modes."]
pub type CTL1_PTEN_R = crate :: BitReader < CTL1_PTEN_A > ; # [doc = "Parity transmit enable If enabled, parity transmission will be done for both controller and peripheral modes.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL1_PTEN_A { # [doc = "0: DISABLE"]
CTL1_PTEN_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL1_PTEN_ENABLE = 1 , } impl From < CTL1_PTEN_A > for bool { # [inline (always)]
fn from (variant : CTL1_PTEN_A) -> Self { variant as u8 != 0 } } impl CTL1_PTEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL1_PTEN_A { match self . bits { false => CTL1_PTEN_A :: CTL1_PTEN_DISABLE , true => CTL1_PTEN_A :: CTL1_PTEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl1_pten_disable (& self) -> bool { * self == CTL1_PTEN_A :: CTL1_PTEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl1_pten_enable (& self) -> bool { * self == CTL1_PTEN_A :: CTL1_PTEN_ENABLE } } # [doc = "Field `CTL1_PTEN` writer - Parity transmit enable If enabled, parity transmission will be done for both controller and peripheral modes."]
pub type CTL1_PTEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL1_PTEN_A > ; impl < 'a , REG , const O : u8 > CTL1_PTEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl1_pten_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_PTEN_A :: CTL1_PTEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl1_pten_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_PTEN_A :: CTL1_PTEN_ENABLE) } } # [doc = "Field `CTL1_CDENABLE` reader - Command/Data Mode enable"]
pub type CTL1_CDENABLE_R = crate :: BitReader < CTL1_CDENABLE_A > ; # [doc = "Command/Data Mode enable\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL1_CDENABLE_A { # [doc = "0: DISABLE"]
CTL1_CDENABLE_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL1_CDENABLE_ENABLE = 1 , } impl From < CTL1_CDENABLE_A > for bool { # [inline (always)]
fn from (variant : CTL1_CDENABLE_A) -> Self { variant as u8 != 0 } } impl CTL1_CDENABLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL1_CDENABLE_A { match self . bits { false => CTL1_CDENABLE_A :: CTL1_CDENABLE_DISABLE , true => CTL1_CDENABLE_A :: CTL1_CDENABLE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl1_cdenable_disable (& self) -> bool { * self == CTL1_CDENABLE_A :: CTL1_CDENABLE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl1_cdenable_enable (& self) -> bool { * self == CTL1_CDENABLE_A :: CTL1_CDENABLE_ENABLE } } # [doc = "Field `CTL1_CDENABLE` writer - Command/Data Mode enable"]
pub type CTL1_CDENABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL1_CDENABLE_A > ; impl < 'a , REG , const O : u8 > CTL1_CDENABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl1_cdenable_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_CDENABLE_A :: CTL1_CDENABLE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl1_cdenable_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_CDENABLE_A :: CTL1_CDENABLE_ENABLE) } } # [doc = "Field `CTL1_CDMODE` reader - Command/Data Mode Value When CTL1.CDENABLE is 1, CS3 line is used as C/D signal to distinguish between Command (C/D low) and Data (C/D high) information. When a value is written into the CTL1.CDMODE bits, the C/D (CS3) line will go low for the given numbers of byte which are sent by the SPI, starting with the next value to be transmitted after which, C/D line will go high automatically 0: Manual mode with C/D signal as High 1-14: C/D is low while this number of bytes are being sent after which, this field sets to 0 and C/D goes high. Reading this field at any time returns the remaining number of command bytes. 15: Manual mode with C/D signal as Low."]
pub type CTL1_CDMODE_R = crate :: FieldReader < CTL1_CDMODE_A > ; # [doc = "Command/Data Mode Value When CTL1.CDENABLE is 1, CS3 line is used as C/D signal to distinguish between Command (C/D low) and Data (C/D high) information. When a value is written into the CTL1.CDMODE bits, the C/D (CS3) line will go low for the given numbers of byte which are sent by the SPI, starting with the next value to be transmitted after which, C/D line will go high automatically 0: Manual mode with C/D signal as High 1-14: C/D is low while this number of bytes are being sent after which, this field sets to 0 and C/D goes high. Reading this field at any time returns the remaining number of command bytes. 15: Manual mode with C/D signal as Low.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTL1_CDMODE_A { # [doc = "0: DATA"]
CTL1_CDMODE_DATA = 0 , # [doc = "15: COMMAND"]
CTL1_CDMODE_COMMAND = 15 , } impl From < CTL1_CDMODE_A > for u8 { # [inline (always)]
fn from (variant : CTL1_CDMODE_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTL1_CDMODE_A { type Ux = u8 ; } impl CTL1_CDMODE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTL1_CDMODE_A > { match self . bits { 0 => Some (CTL1_CDMODE_A :: CTL1_CDMODE_DATA) , 15 => Some (CTL1_CDMODE_A :: CTL1_CDMODE_COMMAND) , _ => None , } } # [doc = "DATA"]
# [inline (always)]
pub fn is_ctl1_cdmode_data (& self) -> bool { * self == CTL1_CDMODE_A :: CTL1_CDMODE_DATA } # [doc = "COMMAND"]
# [inline (always)]
pub fn is_ctl1_cdmode_command (& self) -> bool { * self == CTL1_CDMODE_A :: CTL1_CDMODE_COMMAND } } # [doc = "Field `CTL1_CDMODE` writer - Command/Data Mode Value When CTL1.CDENABLE is 1, CS3 line is used as C/D signal to distinguish between Command (C/D low) and Data (C/D high) information. When a value is written into the CTL1.CDMODE bits, the C/D (CS3) line will go low for the given numbers of byte which are sent by the SPI, starting with the next value to be transmitted after which, C/D line will go high automatically 0: Manual mode with C/D signal as High 1-14: C/D is low while this number of bytes are being sent after which, this field sets to 0 and C/D goes high. Reading this field at any time returns the remaining number of command bytes. 15: Manual mode with C/D signal as Low."]
pub type CTL1_CDMODE_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 4 , O , CTL1_CDMODE_A > ; impl < 'a , REG , const O : u8 > CTL1_CDMODE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DATA"]
# [inline (always)]
pub fn ctl1_cdmode_data (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_CDMODE_A :: CTL1_CDMODE_DATA) } # [doc = "COMMAND"]
# [inline (always)]
pub fn ctl1_cdmode_command (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_CDMODE_A :: CTL1_CDMODE_COMMAND) } } # [doc = "Field `CTL1_REPEATTX` reader - Counter to repeat last transfer 0: repeat last transfer is disabled. x: repeat the last transfer with the given number. The transfer will be started with writing a data into the TX Buffer. Sending the data will be repeated with the given value, so the data will be transferred X+1 times in total. The behavior is identical as if the data would be written into the TX Buffer that many times as defined by the value here. It can be used to clean a transfer or to pull a certain amount of data by a peripheral."]
pub type CTL1_REPEATTX_R = crate :: FieldReader < CTL1_REPEATTX_A > ; # [doc = "Counter to repeat last transfer 0: repeat last transfer is disabled. x: repeat the last transfer with the given number. The transfer will be started with writing a data into the TX Buffer. Sending the data will be repeated with the given value, so the data will be transferred X+1 times in total. The behavior is identical as if the data would be written into the TX Buffer that many times as defined by the value here. It can be used to clean a transfer or to pull a certain amount of data by a peripheral.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTL1_REPEATTX_A { # [doc = "0: DISABLE"]
CTL1_REPEATTX_DISABLE = 0 , } impl From < CTL1_REPEATTX_A > for u8 { # [inline (always)]
fn from (variant : CTL1_REPEATTX_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTL1_REPEATTX_A { type Ux = u8 ; } impl CTL1_REPEATTX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTL1_REPEATTX_A > { match self . bits { 0 => Some (CTL1_REPEATTX_A :: CTL1_REPEATTX_DISABLE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl1_repeattx_disable (& self) -> bool { * self == CTL1_REPEATTX_A :: CTL1_REPEATTX_DISABLE } } # [doc = "Field `CTL1_REPEATTX` writer - Counter to repeat last transfer 0: repeat last transfer is disabled. x: repeat the last transfer with the given number. The transfer will be started with writing a data into the TX Buffer. Sending the data will be repeated with the given value, so the data will be transferred X+1 times in total. The behavior is identical as if the data would be written into the TX Buffer that many times as defined by the value here. It can be used to clean a transfer or to pull a certain amount of data by a peripheral."]
pub type CTL1_REPEATTX_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , CTL1_REPEATTX_A > ; impl < 'a , REG , const O : u8 > CTL1_REPEATTX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl1_repeattx_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_REPEATTX_A :: CTL1_REPEATTX_DISABLE) } } # [doc = "Field `CTL1_RXTIMEOUT` reader - Receive Timeout (only for Peripheral mode) Defines the number of Clock Cycles before after which the Receive Timeout flag RTOUT is set. The time is calculated using the control register for the clock selection and divider in the Controller mode configuration. A value of 0 disables this function."]
pub type CTL1_RXTIMEOUT_R = crate :: FieldReader ; # [doc = "Field `CTL1_RXTIMEOUT` writer - Receive Timeout (only for Peripheral mode) Defines the number of Clock Cycles before after which the Receive Timeout flag RTOUT is set. The time is calculated using the control register for the clock selection and divider in the Controller mode configuration. A value of 0 disables this function."]
pub type CTL1_RXTIMEOUT_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 6 , O > ; impl R { # [doc = "Bit 0 - SPI enable"]
# [inline (always)]
pub fn ctl1_enable (& self) -> CTL1_ENABLE_R { CTL1_ENABLE_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Loop back mode"]
# [inline (always)]
pub fn ctl1_lbm (& self) -> CTL1_LBM_R { CTL1_LBM_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Controller or peripheral mode select. This bit can be modified only when SPI is disabled, CTL1.ENABLE=0."]
# [inline (always)]
pub fn ctl1_ms (& self) -> CTL1_MS_R { CTL1_MS_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Peripheral-mode: Data output disabled This bit is relevant only in the peripheral mode, CTL1.MS=1. In multiple-peripheral systems, it is possible for an SPI controller to broadcast a message to all peripherals in the system while ensuring that only one peripheral drives data onto its serial output line. In such systems the MISO lines from multiple peripherals could be tied together. To operate in such systems, this bitfield can be set if the SPI peripheral is not supposed to drive the MISO line:"]
# [inline (always)]
pub fn ctl1_sod (& self) -> CTL1_SOD_R { CTL1_SOD_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - MSB first select. Controls the direction of the receive and transmit shift register."]
# [inline (always)]
pub fn ctl1_msb (& self) -> CTL1_MSB_R { CTL1_MSB_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Parity receive enable If enabled, parity reception check will be done for both controller and peripheral modes In case of a parity miss-match the parity error flag RIS.PER will be set."]
# [inline (always)]
pub fn ctl1_pren (& self) -> CTL1_PREN_R { CTL1_PREN_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - Even Parity Select"]
# [inline (always)]
pub fn ctl1_pes (& self) -> CTL1_PES_R { CTL1_PES_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 7 - Parity Bit Select"]
# [inline (always)]
pub fn ctl1_pbs (& self) -> CTL1_PBS_R { CTL1_PBS_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - Parity transmit enable If enabled, parity transmission will be done for both controller and peripheral modes."]
# [inline (always)]
pub fn ctl1_pten (& self) -> CTL1_PTEN_R { CTL1_PTEN_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 11 - Command/Data Mode enable"]
# [inline (always)]
pub fn ctl1_cdenable (& self) -> CTL1_CDENABLE_R { CTL1_CDENABLE_R :: new (((self . bits >> 11) & 1) != 0) } # [doc = "Bits 12:15 - Command/Data Mode Value When CTL1.CDENABLE is 1, CS3 line is used as C/D signal to distinguish between Command (C/D low) and Data (C/D high) information. When a value is written into the CTL1.CDMODE bits, the C/D (CS3) line will go low for the given numbers of byte which are sent by the SPI, starting with the next value to be transmitted after which, C/D line will go high automatically 0: Manual mode with C/D signal as High 1-14: C/D is low while this number of bytes are being sent after which, this field sets to 0 and C/D goes high. Reading this field at any time returns the remaining number of command bytes. 15: Manual mode with C/D signal as Low."]
# [inline (always)]
pub fn ctl1_cdmode (& self) -> CTL1_CDMODE_R { CTL1_CDMODE_R :: new (((self . bits >> 12) & 0x0f) as u8) } # [doc = "Bits 16:23 - Counter to repeat last transfer 0: repeat last transfer is disabled. x: repeat the last transfer with the given number. The transfer will be started with writing a data into the TX Buffer. Sending the data will be repeated with the given value, so the data will be transferred X+1 times in total. The behavior is identical as if the data would be written into the TX Buffer that many times as defined by the value here. It can be used to clean a transfer or to pull a certain amount of data by a peripheral."]
# [inline (always)]
pub fn ctl1_repeattx (& self) -> CTL1_REPEATTX_R { CTL1_REPEATTX_R :: new (((self . bits >> 16) & 0xff) as u8) } # [doc = "Bits 24:29 - Receive Timeout (only for Peripheral mode) Defines the number of Clock Cycles before after which the Receive Timeout flag RTOUT is set. The time is calculated using the control register for the clock selection and divider in the Controller mode configuration. A value of 0 disables this function."]
# [inline (always)]
pub fn ctl1_rxtimeout (& self) -> CTL1_RXTIMEOUT_R { CTL1_RXTIMEOUT_R :: new (((self . bits >> 24) & 0x3f) as u8) } } impl W { # [doc = "Bit 0 - SPI enable"]
# [inline (always)]
# [must_use]
pub fn ctl1_enable (& mut self) -> CTL1_ENABLE_W < CTL1_SPEC , 0 > { CTL1_ENABLE_W :: new (self) } # [doc = "Bit 1 - Loop back mode"]
# [inline (always)]
# [must_use]
pub fn ctl1_lbm (& mut self) -> CTL1_LBM_W < CTL1_SPEC , 1 > { CTL1_LBM_W :: new (self) } # [doc = "Bit 2 - Controller or peripheral mode select. This bit can be modified only when SPI is disabled, CTL1.ENABLE=0."]
# [inline (always)]
# [must_use]
pub fn ctl1_ms (& mut self) -> CTL1_MS_W < CTL1_SPEC , 2 > { CTL1_MS_W :: new (self) } # [doc = "Bit 3 - Peripheral-mode: Data output disabled This bit is relevant only in the peripheral mode, CTL1.MS=1. In multiple-peripheral systems, it is possible for an SPI controller to broadcast a message to all peripherals in the system while ensuring that only one peripheral drives data onto its serial output line. In such systems the MISO lines from multiple peripherals could be tied together. To operate in such systems, this bitfield can be set if the SPI peripheral is not supposed to drive the MISO line:"]
# [inline (always)]
# [must_use]
pub fn ctl1_sod (& mut self) -> CTL1_SOD_W < CTL1_SPEC , 3 > { CTL1_SOD_W :: new (self) } # [doc = "Bit 4 - MSB first select. Controls the direction of the receive and transmit shift register."]
# [inline (always)]
# [must_use]
pub fn ctl1_msb (& mut self) -> CTL1_MSB_W < CTL1_SPEC , 4 > { CTL1_MSB_W :: new (self) } # [doc = "Bit 5 - Parity receive enable If enabled, parity reception check will be done for both controller and peripheral modes In case of a parity miss-match the parity error flag RIS.PER will be set."]
# [inline (always)]
# [must_use]
pub fn ctl1_pren (& mut self) -> CTL1_PREN_W < CTL1_SPEC , 5 > { CTL1_PREN_W :: new (self) } # [doc = "Bit 6 - Even Parity Select"]
# [inline (always)]
# [must_use]
pub fn ctl1_pes (& mut self) -> CTL1_PES_W < CTL1_SPEC , 6 > { CTL1_PES_W :: new (self) } # [doc = "Bit 7 - Parity Bit Select"]
# [inline (always)]
# [must_use]
pub fn ctl1_pbs (& mut self) -> CTL1_PBS_W < CTL1_SPEC , 7 > { CTL1_PBS_W :: new (self) } # [doc = "Bit 8 - Parity transmit enable If enabled, parity transmission will be done for both controller and peripheral modes."]
# [inline (always)]
# [must_use]
pub fn ctl1_pten (& mut self) -> CTL1_PTEN_W < CTL1_SPEC , 8 > { CTL1_PTEN_W :: new (self) } # [doc = "Bit 11 - Command/Data Mode enable"]
# [inline (always)]
# [must_use]
pub fn ctl1_cdenable (& mut self) -> CTL1_CDENABLE_W < CTL1_SPEC , 11 > { CTL1_CDENABLE_W :: new (self) } # [doc = "Bits 12:15 - Command/Data Mode Value When CTL1.CDENABLE is 1, CS3 line is used as C/D signal to distinguish between Command (C/D low) and Data (C/D high) information. When a value is written into the CTL1.CDMODE bits, the C/D (CS3) line will go low for the given numbers of byte which are sent by the SPI, starting with the next value to be transmitted after which, C/D line will go high automatically 0: Manual mode with C/D signal as High 1-14: C/D is low while this number of bytes are being sent after which, this field sets to 0 and C/D goes high. Reading this field at any time returns the remaining number of command bytes. 15: Manual mode with C/D signal as Low."]
# [inline (always)]
# [must_use]
pub fn ctl1_cdmode (& mut self) -> CTL1_CDMODE_W < CTL1_SPEC , 12 > { CTL1_CDMODE_W :: new (self) } # [doc = "Bits 16:23 - Counter to repeat last transfer 0: repeat last transfer is disabled. x: repeat the last transfer with the given number. The transfer will be started with writing a data into the TX Buffer. Sending the data will be repeated with the given value, so the data will be transferred X+1 times in total. The behavior is identical as if the data would be written into the TX Buffer that many times as defined by the value here. It can be used to clean a transfer or to pull a certain amount of data by a peripheral."]
# [inline (always)]
# [must_use]
pub fn ctl1_repeattx (& mut self) -> CTL1_REPEATTX_W < CTL1_SPEC , 16 > { CTL1_REPEATTX_W :: new (self) } # [doc = "Bits 24:29 - Receive Timeout (only for Peripheral mode) Defines the number of Clock Cycles before after which the Receive Timeout flag RTOUT is set. The time is calculated using the control register for the clock selection and divider in the Controller mode configuration. A value of 0 disables this function."]
# [inline (always)]
# [must_use]
pub fn ctl1_rxtimeout (& mut self) -> CTL1_RXTIMEOUT_W < CTL1_SPEC , 24 > { CTL1_RXTIMEOUT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "SPI control register 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl1::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTL1_SPEC ; impl crate :: RegisterSpec for CTL1_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ctl1::R`](R) reader structure"]
impl crate :: Readable for CTL1_SPEC { } # [doc = "`write(|w| ..)` method takes [`ctl1::W`](W) writer structure"]
impl crate :: Writable for CTL1_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTL1 to value 0x04"]
impl crate :: Resettable for CTL1_SPEC { const RESET_VALUE : Self :: Ux = 0x04 ; } } # [doc = "CLKCTL (rw) register accessor: Clock prescaler and divider register.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clkctl`]
module"]
pub type CLKCTL = crate :: Reg < clkctl :: CLKCTL_SPEC > ; # [doc = "Clock prescaler and divider register."]
pub mod clkctl { # [doc = "Register `CLKCTL` reader"]
pub type R = crate :: R < CLKCTL_SPEC > ; # [doc = "Register `CLKCTL` writer"]
pub type W = crate :: W < CLKCTL_SPEC > ; # [doc = "Field `CLKCTL_SCR` reader - Serial clock divider: This is used to generate the transmit and receive bit rate of the SPI. The SPI bit rate is (SPI's functional clock frequency)/((SCR+1)*2). SCR is a value from 0-1023."]
pub type CLKCTL_SCR_R = crate :: FieldReader < u16 > ; # [doc = "Field `CLKCTL_SCR` writer - Serial clock divider: This is used to generate the transmit and receive bit rate of the SPI. The SPI bit rate is (SPI's functional clock frequency)/((SCR+1)*2). SCR is a value from 0-1023."]
pub type CLKCTL_SCR_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 10 , O , u16 > ; # [doc = "Field `CLKCTL_DSAMPLE` reader - Delayed sampling value. In controller mode the data on the input pin will be delayed sampled by the defined clock cycles of internal functional clock hence relaxing the setup time of input data. This setting is useful in systems where the board delays and external peripheral delays are more than the input setup time of the controller. Please refer to the datasheet for values of controller input setup time and assess what DSAMPLE value meets the requirement of the system. Note: High values of DSAMPLE can cause HOLD time violations and must be factored in the calculations."]
pub type CLKCTL_DSAMPLE_R = crate :: FieldReader ; # [doc = "Field `CLKCTL_DSAMPLE` writer - Delayed sampling value. In controller mode the data on the input pin will be delayed sampled by the defined clock cycles of internal functional clock hence relaxing the setup time of input data. This setting is useful in systems where the board delays and external peripheral delays are more than the input setup time of the controller. Please refer to the datasheet for values of controller input setup time and assess what DSAMPLE value meets the requirement of the system. Note: High values of DSAMPLE can cause HOLD time violations and must be factored in the calculations."]
pub type CLKCTL_DSAMPLE_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 4 , O > ; impl R { # [doc = "Bits 0:9 - Serial clock divider: This is used to generate the transmit and receive bit rate of the SPI. The SPI bit rate is (SPI's functional clock frequency)/((SCR+1)*2). SCR is a value from 0-1023."]
# [inline (always)]
pub fn clkctl_scr (& self) -> CLKCTL_SCR_R { CLKCTL_SCR_R :: new ((self . bits & 0x03ff) as u16) } # [doc = "Bits 28:31 - Delayed sampling value. In controller mode the data on the input pin will be delayed sampled by the defined clock cycles of internal functional clock hence relaxing the setup time of input data. This setting is useful in systems where the board delays and external peripheral delays are more than the input setup time of the controller. Please refer to the datasheet for values of controller input setup time and assess what DSAMPLE value meets the requirement of the system. Note: High values of DSAMPLE can cause HOLD time violations and must be factored in the calculations."]
# [inline (always)]
pub fn clkctl_dsample (& self) -> CLKCTL_DSAMPLE_R { CLKCTL_DSAMPLE_R :: new (((self . bits >> 28) & 0x0f) as u8) } } impl W { # [doc = "Bits 0:9 - Serial clock divider: This is used to generate the transmit and receive bit rate of the SPI. The SPI bit rate is (SPI's functional clock frequency)/((SCR+1)*2). SCR is a value from 0-1023."]
# [inline (always)]
# [must_use]
pub fn clkctl_scr (& mut self) -> CLKCTL_SCR_W < CLKCTL_SPEC , 0 > { CLKCTL_SCR_W :: new (self) } # [doc = "Bits 28:31 - Delayed sampling value. In controller mode the data on the input pin will be delayed sampled by the defined clock cycles of internal functional clock hence relaxing the setup time of input data. This setting is useful in systems where the board delays and external peripheral delays are more than the input setup time of the controller. Please refer to the datasheet for values of controller input setup time and assess what DSAMPLE value meets the requirement of the system. Note: High values of DSAMPLE can cause HOLD time violations and must be factored in the calculations."]
# [inline (always)]
# [must_use]
pub fn clkctl_dsample (& mut self) -> CLKCTL_DSAMPLE_W < CLKCTL_SPEC , 28 > { CLKCTL_DSAMPLE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Clock prescaler and divider register.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CLKCTL_SPEC ; impl crate :: RegisterSpec for CLKCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`clkctl::R`](R) reader structure"]
impl crate :: Readable for CLKCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`clkctl::W`](W) writer structure"]
impl crate :: Writable for CLKCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CLKCTL to value 0"]
impl crate :: Resettable for CLKCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "IFLS (rw) register accessor: UART Interrupt FIFO Level Select Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ifls::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ifls::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ifls`]
module"]
pub type IFLS = crate :: Reg < ifls :: IFLS_SPEC > ; # [doc = "UART Interrupt FIFO Level Select Register"]
pub mod ifls { # [doc = "Register `IFLS` reader"]
pub type R = crate :: R < IFLS_SPEC > ; # [doc = "Register `IFLS` writer"]
pub type W = crate :: W < IFLS_SPEC > ; # [doc = "Field `IFLS_TXIFLSEL` reader - SPI Transmit Interrupt FIFO Level Select The trigger points for the transmit interrupt are as follows:"]
pub type IFLS_TXIFLSEL_R = crate :: FieldReader < IFLS_TXIFLSEL_A > ; # [doc = "SPI Transmit Interrupt FIFO Level Select The trigger points for the transmit interrupt are as follows:\n\nValue on reset: 2"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum IFLS_TXIFLSEL_A { # [doc = "0: LVL_OFF"]
IFLS_TXIFLSEL_LVL_OFF = 0 , # [doc = "1: LVL_3_4"]
IFLS_TXIFLSEL_LVL_3_4 = 1 , # [doc = "2: LVL_1_2"]
IFLS_TXIFLSEL_LVL_1_2 = 2 , # [doc = "3: LVL_1_4"]
IFLS_TXIFLSEL_LVL_1_4 = 3 , # [doc = "4: LVL_RES4"]
IFLS_TXIFLSEL_LVL_RES4 = 4 , # [doc = "5: LVL_EMPTY"]
IFLS_TXIFLSEL_LVL_EMPTY = 5 , # [doc = "6: LVL_RES6"]
IFLS_TXIFLSEL_LVL_RES6 = 6 , # [doc = "7: LEVEL_1"]
IFLS_TXIFLSEL_LEVEL_1 = 7 , } impl From < IFLS_TXIFLSEL_A > for u8 { # [inline (always)]
fn from (variant : IFLS_TXIFLSEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for IFLS_TXIFLSEL_A { type Ux = u8 ; } impl IFLS_TXIFLSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IFLS_TXIFLSEL_A { match self . bits { 0 => IFLS_TXIFLSEL_A :: IFLS_TXIFLSEL_LVL_OFF , 1 => IFLS_TXIFLSEL_A :: IFLS_TXIFLSEL_LVL_3_4 , 2 => IFLS_TXIFLSEL_A :: IFLS_TXIFLSEL_LVL_1_2 , 3 => IFLS_TXIFLSEL_A :: IFLS_TXIFLSEL_LVL_1_4 , 4 => IFLS_TXIFLSEL_A :: IFLS_TXIFLSEL_LVL_RES4 , 5 => IFLS_TXIFLSEL_A :: IFLS_TXIFLSEL_LVL_EMPTY , 6 => IFLS_TXIFLSEL_A :: IFLS_TXIFLSEL_LVL_RES6 , 7 => IFLS_TXIFLSEL_A :: IFLS_TXIFLSEL_LEVEL_1 , _ => unreachable ! () , } } # [doc = "LVL_OFF"]
# [inline (always)]
pub fn is_ifls_txiflsel_lvl_off (& self) -> bool { * self == IFLS_TXIFLSEL_A :: IFLS_TXIFLSEL_LVL_OFF } # [doc = "LVL_3_4"]
# [inline (always)]
pub fn is_ifls_txiflsel_lvl_3_4 (& self) -> bool { * self == IFLS_TXIFLSEL_A :: IFLS_TXIFLSEL_LVL_3_4 } # [doc = "LVL_1_2"]
# [inline (always)]
pub fn is_ifls_txiflsel_lvl_1_2 (& self) -> bool { * self == IFLS_TXIFLSEL_A :: IFLS_TXIFLSEL_LVL_1_2 } # [doc = "LVL_1_4"]
# [inline (always)]
pub fn is_ifls_txiflsel_lvl_1_4 (& self) -> bool { * self == IFLS_TXIFLSEL_A :: IFLS_TXIFLSEL_LVL_1_4 } # [doc = "LVL_RES4"]
# [inline (always)]
pub fn is_ifls_txiflsel_lvl_res4 (& self) -> bool { * self == IFLS_TXIFLSEL_A :: IFLS_TXIFLSEL_LVL_RES4 } # [doc = "LVL_EMPTY"]
# [inline (always)]
pub fn is_ifls_txiflsel_lvl_empty (& self) -> bool { * self == IFLS_TXIFLSEL_A :: IFLS_TXIFLSEL_LVL_EMPTY } # [doc = "LVL_RES6"]
# [inline (always)]
pub fn is_ifls_txiflsel_lvl_res6 (& self) -> bool { * self == IFLS_TXIFLSEL_A :: IFLS_TXIFLSEL_LVL_RES6 } # [doc = "LEVEL_1"]
# [inline (always)]
pub fn is_ifls_txiflsel_level_1 (& self) -> bool { * self == IFLS_TXIFLSEL_A :: IFLS_TXIFLSEL_LEVEL_1 } } # [doc = "Field `IFLS_TXIFLSEL` writer - SPI Transmit Interrupt FIFO Level Select The trigger points for the transmit interrupt are as follows:"]
pub type IFLS_TXIFLSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 3 , O , IFLS_TXIFLSEL_A > ; impl < 'a , REG , const O : u8 > IFLS_TXIFLSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "LVL_OFF"]
# [inline (always)]
pub fn ifls_txiflsel_lvl_off (self) -> & 'a mut crate :: W < REG > { self . variant (IFLS_TXIFLSEL_A :: IFLS_TXIFLSEL_LVL_OFF) } # [doc = "LVL_3_4"]
# [inline (always)]
pub fn ifls_txiflsel_lvl_3_4 (self) -> & 'a mut crate :: W < REG > { self . variant (IFLS_TXIFLSEL_A :: IFLS_TXIFLSEL_LVL_3_4) } # [doc = "LVL_1_2"]
# [inline (always)]
pub fn ifls_txiflsel_lvl_1_2 (self) -> & 'a mut crate :: W < REG > { self . variant (IFLS_TXIFLSEL_A :: IFLS_TXIFLSEL_LVL_1_2) } # [doc = "LVL_1_4"]
# [inline (always)]
pub fn ifls_txiflsel_lvl_1_4 (self) -> & 'a mut crate :: W < REG > { self . variant (IFLS_TXIFLSEL_A :: IFLS_TXIFLSEL_LVL_1_4) } # [doc = "LVL_RES4"]
# [inline (always)]
pub fn ifls_txiflsel_lvl_res4 (self) -> & 'a mut crate :: W < REG > { self . variant (IFLS_TXIFLSEL_A :: IFLS_TXIFLSEL_LVL_RES4) } # [doc = "LVL_EMPTY"]
# [inline (always)]
pub fn ifls_txiflsel_lvl_empty (self) -> & 'a mut crate :: W < REG > { self . variant (IFLS_TXIFLSEL_A :: IFLS_TXIFLSEL_LVL_EMPTY) } # [doc = "LVL_RES6"]
# [inline (always)]
pub fn ifls_txiflsel_lvl_res6 (self) -> & 'a mut crate :: W < REG > { self . variant (IFLS_TXIFLSEL_A :: IFLS_TXIFLSEL_LVL_RES6) } # [doc = "LEVEL_1"]
# [inline (always)]
pub fn ifls_txiflsel_level_1 (self) -> & 'a mut crate :: W < REG > { self . variant (IFLS_TXIFLSEL_A :: IFLS_TXIFLSEL_LEVEL_1) } } # [doc = "Field `IFLS_RXIFLSEL` reader - SPI Receive Interrupt FIFO Level Select The trigger points for the receive interrupt are as follows:"]
pub type IFLS_RXIFLSEL_R = crate :: FieldReader < IFLS_RXIFLSEL_A > ; # [doc = "SPI Receive Interrupt FIFO Level Select The trigger points for the receive interrupt are as follows:\n\nValue on reset: 2"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum IFLS_RXIFLSEL_A { # [doc = "0: LVL_OFF"]
IFLS_RXIFLSEL_LVL_OFF = 0 , # [doc = "1: LVL_1_4"]
IFLS_RXIFLSEL_LVL_1_4 = 1 , # [doc = "2: LVL_1_2"]
IFLS_RXIFLSEL_LVL_1_2 = 2 , # [doc = "3: LVL_3_4"]
IFLS_RXIFLSEL_LVL_3_4 = 3 , # [doc = "4: LVL_RES4"]
IFLS_RXIFLSEL_LVL_RES4 = 4 , # [doc = "5: LVL_FULL"]
IFLS_RXIFLSEL_LVL_FULL = 5 , # [doc = "6: LVL_RES6"]
IFLS_RXIFLSEL_LVL_RES6 = 6 , # [doc = "7: LEVEL_1"]
IFLS_RXIFLSEL_LEVEL_1 = 7 , } impl From < IFLS_RXIFLSEL_A > for u8 { # [inline (always)]
fn from (variant : IFLS_RXIFLSEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for IFLS_RXIFLSEL_A { type Ux = u8 ; } impl IFLS_RXIFLSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IFLS_RXIFLSEL_A { match self . bits { 0 => IFLS_RXIFLSEL_A :: IFLS_RXIFLSEL_LVL_OFF , 1 => IFLS_RXIFLSEL_A :: IFLS_RXIFLSEL_LVL_1_4 , 2 => IFLS_RXIFLSEL_A :: IFLS_RXIFLSEL_LVL_1_2 , 3 => IFLS_RXIFLSEL_A :: IFLS_RXIFLSEL_LVL_3_4 , 4 => IFLS_RXIFLSEL_A :: IFLS_RXIFLSEL_LVL_RES4 , 5 => IFLS_RXIFLSEL_A :: IFLS_RXIFLSEL_LVL_FULL , 6 => IFLS_RXIFLSEL_A :: IFLS_RXIFLSEL_LVL_RES6 , 7 => IFLS_RXIFLSEL_A :: IFLS_RXIFLSEL_LEVEL_1 , _ => unreachable ! () , } } # [doc = "LVL_OFF"]
# [inline (always)]
pub fn is_ifls_rxiflsel_lvl_off (& self) -> bool { * self == IFLS_RXIFLSEL_A :: IFLS_RXIFLSEL_LVL_OFF } # [doc = "LVL_1_4"]
# [inline (always)]
pub fn is_ifls_rxiflsel_lvl_1_4 (& self) -> bool { * self == IFLS_RXIFLSEL_A :: IFLS_RXIFLSEL_LVL_1_4 } # [doc = "LVL_1_2"]
# [inline (always)]
pub fn is_ifls_rxiflsel_lvl_1_2 (& self) -> bool { * self == IFLS_RXIFLSEL_A :: IFLS_RXIFLSEL_LVL_1_2 } # [doc = "LVL_3_4"]
# [inline (always)]
pub fn is_ifls_rxiflsel_lvl_3_4 (& self) -> bool { * self == IFLS_RXIFLSEL_A :: IFLS_RXIFLSEL_LVL_3_4 } # [doc = "LVL_RES4"]
# [inline (always)]
pub fn is_ifls_rxiflsel_lvl_res4 (& self) -> bool { * self == IFLS_RXIFLSEL_A :: IFLS_RXIFLSEL_LVL_RES4 } # [doc = "LVL_FULL"]
# [inline (always)]
pub fn is_ifls_rxiflsel_lvl_full (& self) -> bool { * self == IFLS_RXIFLSEL_A :: IFLS_RXIFLSEL_LVL_FULL } # [doc = "LVL_RES6"]
# [inline (always)]
pub fn is_ifls_rxiflsel_lvl_res6 (& self) -> bool { * self == IFLS_RXIFLSEL_A :: IFLS_RXIFLSEL_LVL_RES6 } # [doc = "LEVEL_1"]
# [inline (always)]
pub fn is_ifls_rxiflsel_level_1 (& self) -> bool { * self == IFLS_RXIFLSEL_A :: IFLS_RXIFLSEL_LEVEL_1 } } # [doc = "Field `IFLS_RXIFLSEL` writer - SPI Receive Interrupt FIFO Level Select The trigger points for the receive interrupt are as follows:"]
pub type IFLS_RXIFLSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 3 , O , IFLS_RXIFLSEL_A > ; impl < 'a , REG , const O : u8 > IFLS_RXIFLSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "LVL_OFF"]
# [inline (always)]
pub fn ifls_rxiflsel_lvl_off (self) -> & 'a mut crate :: W < REG > { self . variant (IFLS_RXIFLSEL_A :: IFLS_RXIFLSEL_LVL_OFF) } # [doc = "LVL_1_4"]
# [inline (always)]
pub fn ifls_rxiflsel_lvl_1_4 (self) -> & 'a mut crate :: W < REG > { self . variant (IFLS_RXIFLSEL_A :: IFLS_RXIFLSEL_LVL_1_4) } # [doc = "LVL_1_2"]
# [inline (always)]
pub fn ifls_rxiflsel_lvl_1_2 (self) -> & 'a mut crate :: W < REG > { self . variant (IFLS_RXIFLSEL_A :: IFLS_RXIFLSEL_LVL_1_2) } # [doc = "LVL_3_4"]
# [inline (always)]
pub fn ifls_rxiflsel_lvl_3_4 (self) -> & 'a mut crate :: W < REG > { self . variant (IFLS_RXIFLSEL_A :: IFLS_RXIFLSEL_LVL_3_4) } # [doc = "LVL_RES4"]
# [inline (always)]
pub fn ifls_rxiflsel_lvl_res4 (self) -> & 'a mut crate :: W < REG > { self . variant (IFLS_RXIFLSEL_A :: IFLS_RXIFLSEL_LVL_RES4) } # [doc = "LVL_FULL"]
# [inline (always)]
pub fn ifls_rxiflsel_lvl_full (self) -> & 'a mut crate :: W < REG > { self . variant (IFLS_RXIFLSEL_A :: IFLS_RXIFLSEL_LVL_FULL) } # [doc = "LVL_RES6"]
# [inline (always)]
pub fn ifls_rxiflsel_lvl_res6 (self) -> & 'a mut crate :: W < REG > { self . variant (IFLS_RXIFLSEL_A :: IFLS_RXIFLSEL_LVL_RES6) } # [doc = "LEVEL_1"]
# [inline (always)]
pub fn ifls_rxiflsel_level_1 (self) -> & 'a mut crate :: W < REG > { self . variant (IFLS_RXIFLSEL_A :: IFLS_RXIFLSEL_LEVEL_1) } } impl R { # [doc = "Bits 0:2 - SPI Transmit Interrupt FIFO Level Select The trigger points for the transmit interrupt are as follows:"]
# [inline (always)]
pub fn ifls_txiflsel (& self) -> IFLS_TXIFLSEL_R { IFLS_TXIFLSEL_R :: new ((self . bits & 7) as u8) } # [doc = "Bits 3:5 - SPI Receive Interrupt FIFO Level Select The trigger points for the receive interrupt are as follows:"]
# [inline (always)]
pub fn ifls_rxiflsel (& self) -> IFLS_RXIFLSEL_R { IFLS_RXIFLSEL_R :: new (((self . bits >> 3) & 7) as u8) } } impl W { # [doc = "Bits 0:2 - SPI Transmit Interrupt FIFO Level Select The trigger points for the transmit interrupt are as follows:"]
# [inline (always)]
# [must_use]
pub fn ifls_txiflsel (& mut self) -> IFLS_TXIFLSEL_W < IFLS_SPEC , 0 > { IFLS_TXIFLSEL_W :: new (self) } # [doc = "Bits 3:5 - SPI Receive Interrupt FIFO Level Select The trigger points for the receive interrupt are as follows:"]
# [inline (always)]
# [must_use]
pub fn ifls_rxiflsel (& mut self) -> IFLS_RXIFLSEL_W < IFLS_SPEC , 3 > { IFLS_RXIFLSEL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "UART Interrupt FIFO Level Select Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ifls::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ifls::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IFLS_SPEC ; impl crate :: RegisterSpec for IFLS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ifls::R`](R) reader structure"]
impl crate :: Readable for IFLS_SPEC { } # [doc = "`write(|w| ..)` method takes [`ifls::W`](W) writer structure"]
impl crate :: Writable for IFLS_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets IFLS to value 0x12"]
impl crate :: Resettable for IFLS_SPEC { const RESET_VALUE : Self :: Ux = 0x12 ; } } # [doc = "STAT (r) register accessor: Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@stat`]
module"]
pub type STAT = crate :: Reg < stat :: STAT_SPEC > ; # [doc = "Status Register"]
pub mod stat { # [doc = "Register `STAT` reader"]
pub type R = crate :: R < STAT_SPEC > ; # [doc = "Field `STAT_TFE` reader - Transmit FIFO empty."]
pub type STAT_TFE_R = crate :: BitReader < STAT_TFE_A > ; # [doc = "Transmit FIFO empty.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_TFE_A { # [doc = "0: NOT_EMPTY"]
STAT_TFE_NOT_EMPTY = 0 , # [doc = "1: EMPTY"]
STAT_TFE_EMPTY = 1 , } impl From < STAT_TFE_A > for bool { # [inline (always)]
fn from (variant : STAT_TFE_A) -> Self { variant as u8 != 0 } } impl STAT_TFE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_TFE_A { match self . bits { false => STAT_TFE_A :: STAT_TFE_NOT_EMPTY , true => STAT_TFE_A :: STAT_TFE_EMPTY , } } # [doc = "NOT_EMPTY"]
# [inline (always)]
pub fn is_stat_tfe_not_empty (& self) -> bool { * self == STAT_TFE_A :: STAT_TFE_NOT_EMPTY } # [doc = "EMPTY"]
# [inline (always)]
pub fn is_stat_tfe_empty (& self) -> bool { * self == STAT_TFE_A :: STAT_TFE_EMPTY } } # [doc = "Field `STAT_TNF` reader - Transmit FIFO not full"]
pub type STAT_TNF_R = crate :: BitReader < STAT_TNF_A > ; # [doc = "Transmit FIFO not full\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_TNF_A { # [doc = "0: FULL"]
STAT_TNF_FULL = 0 , # [doc = "1: NOT_FULL"]
STAT_TNF_NOT_FULL = 1 , } impl From < STAT_TNF_A > for bool { # [inline (always)]
fn from (variant : STAT_TNF_A) -> Self { variant as u8 != 0 } } impl STAT_TNF_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_TNF_A { match self . bits { false => STAT_TNF_A :: STAT_TNF_FULL , true => STAT_TNF_A :: STAT_TNF_NOT_FULL , } } # [doc = "FULL"]
# [inline (always)]
pub fn is_stat_tnf_full (& self) -> bool { * self == STAT_TNF_A :: STAT_TNF_FULL } # [doc = "NOT_FULL"]
# [inline (always)]
pub fn is_stat_tnf_not_full (& self) -> bool { * self == STAT_TNF_A :: STAT_TNF_NOT_FULL } } # [doc = "Field `STAT_RFE` reader - Receive FIFO empty."]
pub type STAT_RFE_R = crate :: BitReader < STAT_RFE_A > ; # [doc = "Receive FIFO empty.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_RFE_A { # [doc = "0: NOT_EMPTY"]
STAT_RFE_NOT_EMPTY = 0 , # [doc = "1: EMPTY"]
STAT_RFE_EMPTY = 1 , } impl From < STAT_RFE_A > for bool { # [inline (always)]
fn from (variant : STAT_RFE_A) -> Self { variant as u8 != 0 } } impl STAT_RFE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_RFE_A { match self . bits { false => STAT_RFE_A :: STAT_RFE_NOT_EMPTY , true => STAT_RFE_A :: STAT_RFE_EMPTY , } } # [doc = "NOT_EMPTY"]
# [inline (always)]
pub fn is_stat_rfe_not_empty (& self) -> bool { * self == STAT_RFE_A :: STAT_RFE_NOT_EMPTY } # [doc = "EMPTY"]
# [inline (always)]
pub fn is_stat_rfe_empty (& self) -> bool { * self == STAT_RFE_A :: STAT_RFE_EMPTY } } # [doc = "Field `STAT_RNF` reader - Receive FIFO not full"]
pub type STAT_RNF_R = crate :: BitReader < STAT_RNF_A > ; # [doc = "Receive FIFO not full\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_RNF_A { # [doc = "0: FULL"]
STAT_RNF_FULL = 0 , # [doc = "1: NOT_FULL"]
STAT_RNF_NOT_FULL = 1 , } impl From < STAT_RNF_A > for bool { # [inline (always)]
fn from (variant : STAT_RNF_A) -> Self { variant as u8 != 0 } } impl STAT_RNF_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_RNF_A { match self . bits { false => STAT_RNF_A :: STAT_RNF_FULL , true => STAT_RNF_A :: STAT_RNF_NOT_FULL , } } # [doc = "FULL"]
# [inline (always)]
pub fn is_stat_rnf_full (& self) -> bool { * self == STAT_RNF_A :: STAT_RNF_FULL } # [doc = "NOT_FULL"]
# [inline (always)]
pub fn is_stat_rnf_not_full (& self) -> bool { * self == STAT_RNF_A :: STAT_RNF_NOT_FULL } } # [doc = "Field `STAT_BUSY` reader - Busy"]
pub type STAT_BUSY_R = crate :: BitReader < STAT_BUSY_A > ; # [doc = "Busy\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_BUSY_A { # [doc = "0: IDLE"]
STAT_BUSY_IDLE = 0 , # [doc = "1: ACTIVE"]
STAT_BUSY_ACTIVE = 1 , } impl From < STAT_BUSY_A > for bool { # [inline (always)]
fn from (variant : STAT_BUSY_A) -> Self { variant as u8 != 0 } } impl STAT_BUSY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_BUSY_A { match self . bits { false => STAT_BUSY_A :: STAT_BUSY_IDLE , true => STAT_BUSY_A :: STAT_BUSY_ACTIVE , } } # [doc = "IDLE"]
# [inline (always)]
pub fn is_stat_busy_idle (& self) -> bool { * self == STAT_BUSY_A :: STAT_BUSY_IDLE } # [doc = "ACTIVE"]
# [inline (always)]
pub fn is_stat_busy_active (& self) -> bool { * self == STAT_BUSY_A :: STAT_BUSY_ACTIVE } } impl R { # [doc = "Bit 0 - Transmit FIFO empty."]
# [inline (always)]
pub fn stat_tfe (& self) -> STAT_TFE_R { STAT_TFE_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Transmit FIFO not full"]
# [inline (always)]
pub fn stat_tnf (& self) -> STAT_TNF_R { STAT_TNF_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Receive FIFO empty."]
# [inline (always)]
pub fn stat_rfe (& self) -> STAT_RFE_R { STAT_RFE_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Receive FIFO not full"]
# [inline (always)]
pub fn stat_rnf (& self) -> STAT_RNF_R { STAT_RNF_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - Busy"]
# [inline (always)]
pub fn stat_busy (& self) -> STAT_BUSY_R { STAT_BUSY_R :: new (((self . bits >> 4) & 1) != 0) } } # [doc = "Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct STAT_SPEC ; impl crate :: RegisterSpec for STAT_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`stat::R`](R) reader structure"]
impl crate :: Readable for STAT_SPEC { } # [doc = "`reset()` method sets STAT to value 0"]
impl crate :: Resettable for STAT_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RXDATA (r) register accessor: RXDATA Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`rxdata::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rxdata`]
module"]
pub type RXDATA = crate :: Reg < rxdata :: RXDATA_SPEC > ; # [doc = "RXDATA Register"]
pub mod rxdata { # [doc = "Register `RXDATA` reader"]
pub type R = crate :: R < RXDATA_SPEC > ; # [doc = "Field `RXDATA_DATA` reader - Received Data When PACKEN=1,two entries of the FIFO are returned as a 32-bit value. When PACKEN=0, 1 entry of FIFO is returned as 16-bit value. As data values are removed by the receive logic from the incoming data frame, they are placed into the entry in the receive FIFO, pointed to by the current FIFO write pointer. Received data less than 16 bits is automatically right justified in the receive buffer."]
pub type RXDATA_DATA_R = crate :: FieldReader < u16 > ; impl R { # [doc = "Bits 0:15 - Received Data When PACKEN=1,two entries of the FIFO are returned as a 32-bit value. When PACKEN=0, 1 entry of FIFO is returned as 16-bit value. As data values are removed by the receive logic from the incoming data frame, they are placed into the entry in the receive FIFO, pointed to by the current FIFO write pointer. Received data less than 16 bits is automatically right justified in the receive buffer."]
# [inline (always)]
pub fn rxdata_data (& self) -> RXDATA_DATA_R { RXDATA_DATA_R :: new ((self . bits & 0xffff) as u16) } } # [doc = "RXDATA Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`rxdata::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RXDATA_SPEC ; impl crate :: RegisterSpec for RXDATA_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`rxdata::R`](R) reader structure"]
impl crate :: Readable for RXDATA_SPEC { } # [doc = "`reset()` method sets RXDATA to value 0"]
impl crate :: Resettable for RXDATA_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "TXDATA (rw) register accessor: TXDATA Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`txdata::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`txdata::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@txdata`]
module"]
pub type TXDATA = crate :: Reg < txdata :: TXDATA_SPEC > ; # [doc = "TXDATA Register"]
pub mod txdata { # [doc = "Register `TXDATA` reader"]
pub type R = crate :: R < TXDATA_SPEC > ; # [doc = "Register `TXDATA` writer"]
pub type W = crate :: W < TXDATA_SPEC > ; # [doc = "Field `TXDATA_DATA` reader - Transmit Data WWhen read, last written value will be returned. If the last write to this field was a 32-bit write (with PACKEN=1), 32-bits will be returned and if the last write was a 16-bit write (PACKEN=0), those 16-bits will be returned. When written, one or two FIFO entries will be written depending on PACKEN value. Data values are removed from the transmit FIFO one value at a time by the transmit logic. It is loaded into the transmit serial shifter, then serially shifted out onto the TXD output pin at the programmed bit rate. When a data size of less than 16 bits is selected, the user must right-justify data written to the transmit FIFO. The transmit logic ignores the unused bits."]
pub type TXDATA_DATA_R = crate :: FieldReader < u16 > ; # [doc = "Field `TXDATA_DATA` writer - Transmit Data WWhen read, last written value will be returned. If the last write to this field was a 32-bit write (with PACKEN=1), 32-bits will be returned and if the last write was a 16-bit write (PACKEN=0), those 16-bits will be returned. When written, one or two FIFO entries will be written depending on PACKEN value. Data values are removed from the transmit FIFO one value at a time by the transmit logic. It is loaded into the transmit serial shifter, then serially shifted out onto the TXD output pin at the programmed bit rate. When a data size of less than 16 bits is selected, the user must right-justify data written to the transmit FIFO. The transmit logic ignores the unused bits."]
pub type TXDATA_DATA_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 16 , O , u16 > ; impl R { # [doc = "Bits 0:15 - Transmit Data WWhen read, last written value will be returned. If the last write to this field was a 32-bit write (with PACKEN=1), 32-bits will be returned and if the last write was a 16-bit write (PACKEN=0), those 16-bits will be returned. When written, one or two FIFO entries will be written depending on PACKEN value. Data values are removed from the transmit FIFO one value at a time by the transmit logic. It is loaded into the transmit serial shifter, then serially shifted out onto the TXD output pin at the programmed bit rate. When a data size of less than 16 bits is selected, the user must right-justify data written to the transmit FIFO. The transmit logic ignores the unused bits."]
# [inline (always)]
pub fn txdata_data (& self) -> TXDATA_DATA_R { TXDATA_DATA_R :: new ((self . bits & 0xffff) as u16) } } impl W { # [doc = "Bits 0:15 - Transmit Data WWhen read, last written value will be returned. If the last write to this field was a 32-bit write (with PACKEN=1), 32-bits will be returned and if the last write was a 16-bit write (PACKEN=0), those 16-bits will be returned. When written, one or two FIFO entries will be written depending on PACKEN value. Data values are removed from the transmit FIFO one value at a time by the transmit logic. It is loaded into the transmit serial shifter, then serially shifted out onto the TXD output pin at the programmed bit rate. When a data size of less than 16 bits is selected, the user must right-justify data written to the transmit FIFO. The transmit logic ignores the unused bits."]
# [inline (always)]
# [must_use]
pub fn txdata_data (& mut self) -> TXDATA_DATA_W < TXDATA_SPEC , 0 > { TXDATA_DATA_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "TXDATA Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`txdata::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`txdata::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct TXDATA_SPEC ; impl crate :: RegisterSpec for TXDATA_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`txdata::R`](R) reader structure"]
impl crate :: Readable for TXDATA_SPEC { } # [doc = "`write(|w| ..)` method takes [`txdata::W`](W) writer structure"]
impl crate :: Writable for TXDATA_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets TXDATA to value 0"]
impl crate :: Resettable for TXDATA_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } } # [doc = "PERIPHERALREGION"]
pub struct I2C0 { _marker : PhantomData < * const () > } unsafe impl Send for I2C0 { } impl I2C0 { # [doc = r"Pointer to the register block"]
pub const PTR : * const i2c0 :: RegisterBlock = 0x400f_0000 as * const _ ; # [doc = r"Return the pointer to the register block"]
# [inline (always)]
pub const fn ptr () -> * const i2c0 :: RegisterBlock { Self :: PTR } # [doc = r" Steal an instance of this peripheral"]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Ensure that the new instance of the peripheral cannot be used in a way"]
# [doc = r" that may race with any existing instances, for example by only"]
# [doc = r" accessing read-only or write-only registers, or by consuming the"]
# [doc = r" original peripheral and using critical sections to coordinate"]
# [doc = r" access between multiple new instances."]
# [doc = r""]
# [doc = r" Additionally, other software such as HALs may rely on only one"]
# [doc = r" peripheral instance existing to ensure memory safety; ensure"]
# [doc = r" no stolen instances are passed to such software."]
pub unsafe fn steal () -> Self { Self { _marker : PhantomData } } } impl Deref for I2C0 { type Target = i2c0 :: RegisterBlock ; # [inline (always)]
fn deref (& self) -> & Self :: Target { unsafe { & * Self :: PTR } } } impl core :: fmt :: Debug for I2C0 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("I2C0") . finish () } } # [doc = "PERIPHERALREGION"]
pub mod i2c0 { # [doc = r"Register block"]
# [repr (C)]
pub struct RegisterBlock { _reserved0 : [u8 ; 0x0800]
, # [doc = "0x800 - Power enable"]
pub pwren : PWREN , # [doc = "0x804 - Reset Control"]
pub rstctl : RSTCTL , # [doc = "0x808 - Peripheral Clock Configuration Register"]
pub clkcfg : CLKCFG , _reserved3 : [u8 ; 0x08]
, # [doc = "0x814 - Status Register"]
pub stat : STAT , _reserved4 : [u8 ; 0x07e8]
, # [doc = "0x1000 - Clock Divider"]
pub clkdiv : CLKDIV , # [doc = "0x1004 - Clock Select for Ultra Low Power peripherals"]
pub clksel : CLKSEL , _reserved6 : [u8 ; 0x10]
, # [doc = "0x1018 - Peripheral Debug Control"]
pub pdbgctl : PDBGCTL , _reserved7 : [u8 ; 0x04]
, # [doc = "0x1020 - Interrupt index"]
pub int_event0_iidx : INT_EVENT0_IIDX , _reserved8 : [u8 ; 0x04]
, # [doc = "0x1028 - Interrupt mask"]
pub int_event0_imask : INT_EVENT0_IMASK , _reserved9 : [u8 ; 0x04]
, # [doc = "0x1030 - Raw interrupt status"]
pub int_event0_ris : INT_EVENT0_RIS , _reserved10 : [u8 ; 0x04]
, # [doc = "0x1038 - Masked interrupt status"]
pub int_event0_mis : INT_EVENT0_MIS , _reserved11 : [u8 ; 0x04]
, # [doc = "0x1040 - Interrupt set"]
pub int_event0_iset : INT_EVENT0_ISET , _reserved12 : [u8 ; 0x04]
, # [doc = "0x1048 - Interrupt clear"]
pub int_event0_iclr : INT_EVENT0_ICLR , _reserved13 : [u8 ; 0x04]
, # [doc = "0x1050 - Interrupt index"]
pub int_event1_iidx : INT_EVENT1_IIDX , _reserved14 : [u8 ; 0x04]
, # [doc = "0x1058 - Interrupt mask"]
pub int_event1_imask : INT_EVENT1_IMASK , _reserved15 : [u8 ; 0x04]
, # [doc = "0x1060 - Raw interrupt status"]
pub int_event1_ris : INT_EVENT1_RIS , _reserved16 : [u8 ; 0x04]
, # [doc = "0x1068 - Masked interrupt status"]
pub int_event1_mis : INT_EVENT1_MIS , _reserved17 : [u8 ; 0x04]
, # [doc = "0x1070 - Interrupt set"]
pub int_event1_iset : INT_EVENT1_ISET , _reserved18 : [u8 ; 0x04]
, # [doc = "0x1078 - Interrupt clear"]
pub int_event1_iclr : INT_EVENT1_ICLR , _reserved19 : [u8 ; 0x04]
, # [doc = "0x1080 - Interrupt index"]
pub int_event2_iidx : INT_EVENT2_IIDX , _reserved20 : [u8 ; 0x04]
, # [doc = "0x1088 - Interrupt mask"]
pub int_event2_imask : INT_EVENT2_IMASK , _reserved21 : [u8 ; 0x04]
, # [doc = "0x1090 - Raw interrupt status"]
pub int_event2_ris : INT_EVENT2_RIS , _reserved22 : [u8 ; 0x04]
, # [doc = "0x1098 - Masked interrupt status"]
pub int_event2_mis : INT_EVENT2_MIS , _reserved23 : [u8 ; 0x04]
, # [doc = "0x10a0 - Interrupt set"]
pub int_event2_iset : INT_EVENT2_ISET , _reserved24 : [u8 ; 0x04]
, # [doc = "0x10a8 - Interrupt clear"]
pub int_event2_iclr : INT_EVENT2_ICLR , _reserved25 : [u8 ; 0x34]
, # [doc = "0x10e0 - Event Mode"]
pub evt_mode : EVT_MODE , _reserved26 : [u8 ; 0x18]
, # [doc = "0x10fc - Module Description"]
pub desc : DESC , _reserved27 : [u8 ; 0x0100]
, # [doc = "0x1200 - I2C Glitch Filter Control"]
pub gfctl : GFCTL , # [doc = "0x1204 - I2C Timeout Count Control Register"]
pub timeout_ctl : TIMEOUT_CTL , # [doc = "0x1208 - I2C Timeout Count Register"]
pub timeout_cnt : TIMEOUT_CNT , _reserved30 : [u8 ; 0x04]
, # [doc = "0x1210 - I2C Master Slave Address Register"]
pub msa : MSA , # [doc = "0x1214 - I2C Master Control Register"]
pub mctr : MCTR , # [doc = "0x1218 - I2C Master Status Register"]
pub msr : MSR , # [doc = "0x121c - I2C Master RXData"]
pub mrxdata : MRXDATA , # [doc = "0x1220 - I2C Master TXData"]
pub mtxdata : MTXDATA , # [doc = "0x1224 - I2C Master Timer Period"]
pub mtpr : MTPR , # [doc = "0x1228 - I2C Master Configuration"]
pub mcr : MCR , _reserved37 : [u8 ; 0x08]
, # [doc = "0x1234 - I2C Master Bus Monitor"]
pub mbmon : MBMON , # [doc = "0x1238 - I2C Master FIFO Control"]
pub mfifoctl : MFIFOCTL , # [doc = "0x123c - I2C Master FIFO Status Register"]
pub mfifosr : MFIFOSR , # [doc = "0x1240 - I2C master PEC control register"]
pub master_i2cpecctl : MASTER_I2CPECCTL , # [doc = "0x1244 - I2C master PEC status register"]
pub master_pecsr : MASTER_PECSR , _reserved42 : [u8 ; 0x08]
, # [doc = "0x1250 - I2C Slave Own Address"]
pub soar : SOAR , # [doc = "0x1254 - I2C Slave Own Address 2"]
pub soar2 : SOAR2 , # [doc = "0x1258 - I2C Slave Control Register"]
pub sctr : SCTR , # [doc = "0x125c - I2C Slave Status Register"]
pub ssr : SSR , # [doc = "0x1260 - I2C Slave RXData"]
pub srxdata : SRXDATA , # [doc = "0x1264 - I2C Slave TXData"]
pub stxdata : STXDATA , # [doc = "0x1268 - I2C Slave ACK Control"]
pub sackctl : SACKCTL , # [doc = "0x126c - I2C Slave FIFO Control"]
pub sfifoctl : SFIFOCTL , # [doc = "0x1270 - I2C Slave FIFO Status Register"]
pub sfifosr : SFIFOSR , # [doc = "0x1274 - I2C Slave PEC control register"]
pub slave_pecctl : SLAVE_PECCTL , # [doc = "0x1278 - I2C slave PEC status register"]
pub slave_pecsr : SLAVE_PECSR , } # [doc = "PWREN (rw) register accessor: Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pwren`]
module"]
pub type PWREN = crate :: Reg < pwren :: PWREN_SPEC > ; # [doc = "Power enable"]
pub mod pwren { # [doc = "Register `PWREN` reader"]
pub type R = crate :: R < PWREN_SPEC > ; # [doc = "Register `PWREN` writer"]
pub type W = crate :: W < PWREN_SPEC > ; # [doc = "Field `PWREN_ENABLE` reader - Enable the power"]
pub type PWREN_ENABLE_R = crate :: BitReader < PWREN_ENABLE_A > ; # [doc = "Enable the power\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PWREN_ENABLE_A { # [doc = "0: DISABLE"]
PWREN_ENABLE_DISABLE = 0 , # [doc = "1: ENABLE"]
PWREN_ENABLE_ENABLE = 1 , } impl From < PWREN_ENABLE_A > for bool { # [inline (always)]
fn from (variant : PWREN_ENABLE_A) -> Self { variant as u8 != 0 } } impl PWREN_ENABLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PWREN_ENABLE_A { match self . bits { false => PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE , true => PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_pwren_enable_disable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_pwren_enable_enable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE } } # [doc = "Field `PWREN_ENABLE` writer - Enable the power"]
pub type PWREN_ENABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PWREN_ENABLE_A > ; impl < 'a , REG , const O : u8 > PWREN_ENABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn pwren_enable_disable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn pwren_enable_enable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE) } } # [doc = "KEY to allow Power State Change\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum PWREN_KEY_AW { # [doc = "38: _TO_UNLOCK_W_"]
PWREN_KEY_UNLOCK_W = 38 , } impl From < PWREN_KEY_AW > for u8 { # [inline (always)]
fn from (variant : PWREN_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for PWREN_KEY_AW { type Ux = u8 ; } # [doc = "Field `PWREN_KEY` writer - KEY to allow Power State Change"]
pub type PWREN_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , PWREN_KEY_AW > ; impl < 'a , REG , const O : u8 > PWREN_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn pwren_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_KEY_AW :: PWREN_KEY_UNLOCK_W) } } impl R { # [doc = "Bit 0 - Enable the power"]
# [inline (always)]
pub fn pwren_enable (& self) -> PWREN_ENABLE_R { PWREN_ENABLE_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - Enable the power"]
# [inline (always)]
# [must_use]
pub fn pwren_enable (& mut self) -> PWREN_ENABLE_W < PWREN_SPEC , 0 > { PWREN_ENABLE_W :: new (self) } # [doc = "Bits 24:31 - KEY to allow Power State Change"]
# [inline (always)]
# [must_use]
pub fn pwren_key (& mut self) -> PWREN_KEY_W < PWREN_SPEC , 24 > { PWREN_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PWREN_SPEC ; impl crate :: RegisterSpec for PWREN_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pwren::R`](R) reader structure"]
impl crate :: Readable for PWREN_SPEC { } # [doc = "`write(|w| ..)` method takes [`pwren::W`](W) writer structure"]
impl crate :: Writable for PWREN_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PWREN to value 0"]
impl crate :: Resettable for PWREN_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RSTCTL (w) register accessor: Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rstctl`]
module"]
pub type RSTCTL = crate :: Reg < rstctl :: RSTCTL_SPEC > ; # [doc = "Reset Control"]
pub mod rstctl { # [doc = "Register `RSTCTL` writer"]
pub type W = crate :: W < RSTCTL_SPEC > ; # [doc = "Assert reset to the peripheral\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETASSERT_AW { # [doc = "0: NOP"]
RSTCTL_RESETASSERT_NOP = 0 , # [doc = "1: ASSERT"]
RSTCTL_RESETASSERT_ASSERT = 1 , } impl From < RSTCTL_RESETASSERT_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETASSERT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETASSERT` writer - Assert reset to the peripheral"]
pub type RSTCTL_RESETASSERT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETASSERT_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETASSERT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetassert_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_NOP) } # [doc = "ASSERT"]
# [inline (always)]
pub fn rstctl_resetassert_assert (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_ASSERT) } } # [doc = "Clear the RESETSTKY bit in the STAT register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETSTKYCLR_AW { # [doc = "0: NOP"]
RSTCTL_RESETSTKYCLR_NOP = 0 , # [doc = "1: CLR"]
RSTCTL_RESETSTKYCLR_CLR = 1 , } impl From < RSTCTL_RESETSTKYCLR_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETSTKYCLR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETSTKYCLR` writer - Clear the RESETSTKY bit in the STAT register"]
pub type RSTCTL_RESETSTKYCLR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETSTKYCLR_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETSTKYCLR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetstkyclr_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_NOP) } # [doc = "CLR"]
# [inline (always)]
pub fn rstctl_resetstkyclr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_CLR) } } # [doc = "Unlock key\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum RSTCTL_KEY_AW { # [doc = "177: _TO_UNLOCK_W_"]
RSTCTL_KEY_UNLOCK_W = 177 , } impl From < RSTCTL_KEY_AW > for u8 { # [inline (always)]
fn from (variant : RSTCTL_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for RSTCTL_KEY_AW { type Ux = u8 ; } # [doc = "Field `RSTCTL_KEY` writer - Unlock key"]
pub type RSTCTL_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , RSTCTL_KEY_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn rstctl_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_KEY_AW :: RSTCTL_KEY_UNLOCK_W) } } impl W { # [doc = "Bit 0 - Assert reset to the peripheral"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetassert (& mut self) -> RSTCTL_RESETASSERT_W < RSTCTL_SPEC , 0 > { RSTCTL_RESETASSERT_W :: new (self) } # [doc = "Bit 1 - Clear the RESETSTKY bit in the STAT register"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetstkyclr (& mut self) -> RSTCTL_RESETSTKYCLR_W < RSTCTL_SPEC , 1 > { RSTCTL_RESETSTKYCLR_W :: new (self) } # [doc = "Bits 24:31 - Unlock key"]
# [inline (always)]
# [must_use]
pub fn rstctl_key (& mut self) -> RSTCTL_KEY_W < RSTCTL_SPEC , 24 > { RSTCTL_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RSTCTL_SPEC ; impl crate :: RegisterSpec for RSTCTL_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`rstctl::W`](W) writer structure"]
impl crate :: Writable for RSTCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets RSTCTL to value 0"]
impl crate :: Resettable for RSTCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CLKCFG (rw) register accessor: Peripheral Clock Configuration Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkcfg::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkcfg::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clkcfg`]
module"]
pub type CLKCFG = crate :: Reg < clkcfg :: CLKCFG_SPEC > ; # [doc = "Peripheral Clock Configuration Register"]
pub mod clkcfg { # [doc = "Register `CLKCFG` reader"]
pub type R = crate :: R < CLKCFG_SPEC > ; # [doc = "Register `CLKCFG` writer"]
pub type W = crate :: W < CLKCFG_SPEC > ; # [doc = "Field `CLKCFG_BLOCKASYNC` reader - Async Clock Request is blocked from starting SYSOSC or forcing bus clock to 32MHz"]
pub type CLKCFG_BLOCKASYNC_R = crate :: BitReader < CLKCFG_BLOCKASYNC_A > ; # [doc = "Async Clock Request is blocked from starting SYSOSC or forcing bus clock to 32MHz\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKCFG_BLOCKASYNC_A { # [doc = "0: DISABLE"]
CLKCFG_BLOCKASYNC_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKCFG_BLOCKASYNC_ENABLE = 1 , } impl From < CLKCFG_BLOCKASYNC_A > for bool { # [inline (always)]
fn from (variant : CLKCFG_BLOCKASYNC_A) -> Self { variant as u8 != 0 } } impl CLKCFG_BLOCKASYNC_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKCFG_BLOCKASYNC_A { match self . bits { false => CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_DISABLE , true => CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clkcfg_blockasync_disable (& self) -> bool { * self == CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clkcfg_blockasync_enable (& self) -> bool { * self == CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_ENABLE } } # [doc = "Field `CLKCFG_BLOCKASYNC` writer - Async Clock Request is blocked from starting SYSOSC or forcing bus clock to 32MHz"]
pub type CLKCFG_BLOCKASYNC_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKCFG_BLOCKASYNC_A > ; impl < 'a , REG , const O : u8 > CLKCFG_BLOCKASYNC_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clkcfg_blockasync_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clkcfg_blockasync_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_ENABLE) } } # [doc = "KEY to Allow State Change -- 0xA9\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CLKCFG_KEY_AW { # [doc = "169: _UNLOCK_W_"]
CLKCFG_KEY_UNLOCK = 169 , } impl From < CLKCFG_KEY_AW > for u8 { # [inline (always)]
fn from (variant : CLKCFG_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for CLKCFG_KEY_AW { type Ux = u8 ; } # [doc = "Field `CLKCFG_KEY` writer - KEY to Allow State Change -- 0xA9"]
pub type CLKCFG_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , CLKCFG_KEY_AW > ; impl < 'a , REG , const O : u8 > CLKCFG_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_UNLOCK_W_"]
# [inline (always)]
pub fn clkcfg_key_unlock (self) -> & 'a mut crate :: W < REG > { self . variant (CLKCFG_KEY_AW :: CLKCFG_KEY_UNLOCK) } } impl R { # [doc = "Bit 8 - Async Clock Request is blocked from starting SYSOSC or forcing bus clock to 32MHz"]
# [inline (always)]
pub fn clkcfg_blockasync (& self) -> CLKCFG_BLOCKASYNC_R { CLKCFG_BLOCKASYNC_R :: new (((self . bits >> 8) & 1) != 0) } } impl W { # [doc = "Bit 8 - Async Clock Request is blocked from starting SYSOSC or forcing bus clock to 32MHz"]
# [inline (always)]
# [must_use]
pub fn clkcfg_blockasync (& mut self) -> CLKCFG_BLOCKASYNC_W < CLKCFG_SPEC , 8 > { CLKCFG_BLOCKASYNC_W :: new (self) } # [doc = "Bits 24:31 - KEY to Allow State Change -- 0xA9"]
# [inline (always)]
# [must_use]
pub fn clkcfg_key (& mut self) -> CLKCFG_KEY_W < CLKCFG_SPEC , 24 > { CLKCFG_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Peripheral Clock Configuration Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkcfg::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkcfg::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CLKCFG_SPEC ; impl crate :: RegisterSpec for CLKCFG_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`clkcfg::R`](R) reader structure"]
impl crate :: Readable for CLKCFG_SPEC { } # [doc = "`write(|w| ..)` method takes [`clkcfg::W`](W) writer structure"]
impl crate :: Writable for CLKCFG_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CLKCFG to value 0"]
impl crate :: Resettable for CLKCFG_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "STAT (r) register accessor: Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@stat`]
module"]
pub type STAT = crate :: Reg < stat :: STAT_SPEC > ; # [doc = "Status Register"]
pub mod stat { # [doc = "Register `STAT` reader"]
pub type R = crate :: R < STAT_SPEC > ; # [doc = "Field `STAT_RESETSTKY` reader - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
pub type STAT_RESETSTKY_R = crate :: BitReader < STAT_RESETSTKY_A > ; # [doc = "This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_RESETSTKY_A { # [doc = "0: NORES"]
STAT_RESETSTKY_NORES = 0 , # [doc = "1: RESET"]
STAT_RESETSTKY_RESET = 1 , } impl From < STAT_RESETSTKY_A > for bool { # [inline (always)]
fn from (variant : STAT_RESETSTKY_A) -> Self { variant as u8 != 0 } } impl STAT_RESETSTKY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_RESETSTKY_A { match self . bits { false => STAT_RESETSTKY_A :: STAT_RESETSTKY_NORES , true => STAT_RESETSTKY_A :: STAT_RESETSTKY_RESET , } } # [doc = "NORES"]
# [inline (always)]
pub fn is_stat_resetstky_nores (& self) -> bool { * self == STAT_RESETSTKY_A :: STAT_RESETSTKY_NORES } # [doc = "RESET"]
# [inline (always)]
pub fn is_stat_resetstky_reset (& self) -> bool { * self == STAT_RESETSTKY_A :: STAT_RESETSTKY_RESET } } impl R { # [doc = "Bit 16 - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
# [inline (always)]
pub fn stat_resetstky (& self) -> STAT_RESETSTKY_R { STAT_RESETSTKY_R :: new (((self . bits >> 16) & 1) != 0) } } # [doc = "Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct STAT_SPEC ; impl crate :: RegisterSpec for STAT_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`stat::R`](R) reader structure"]
impl crate :: Readable for STAT_SPEC { } # [doc = "`reset()` method sets STAT to value 0"]
impl crate :: Resettable for STAT_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CLKDIV (rw) register accessor: Clock Divider\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkdiv::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkdiv::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clkdiv`]
module"]
pub type CLKDIV = crate :: Reg < clkdiv :: CLKDIV_SPEC > ; # [doc = "Clock Divider"]
pub mod clkdiv { # [doc = "Register `CLKDIV` reader"]
pub type R = crate :: R < CLKDIV_SPEC > ; # [doc = "Register `CLKDIV` writer"]
pub type W = crate :: W < CLKDIV_SPEC > ; # [doc = "Field `CLKDIV_RATIO` reader - Selects divide ratio of module clock"]
pub type CLKDIV_RATIO_R = crate :: FieldReader < CLKDIV_RATIO_A > ; # [doc = "Selects divide ratio of module clock\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CLKDIV_RATIO_A { # [doc = "0: DIV_BY_1"]
CLKDIV_RATIO_DIV_BY_1 = 0 , # [doc = "1: DIV_BY_2"]
CLKDIV_RATIO_DIV_BY_2 = 1 , # [doc = "2: DIV_BY_3"]
CLKDIV_RATIO_DIV_BY_3 = 2 , # [doc = "3: DIV_BY_4"]
CLKDIV_RATIO_DIV_BY_4 = 3 , # [doc = "4: DIV_BY_5"]
CLKDIV_RATIO_DIV_BY_5 = 4 , # [doc = "5: DIV_BY_6"]
CLKDIV_RATIO_DIV_BY_6 = 5 , # [doc = "6: DIV_BY_7"]
CLKDIV_RATIO_DIV_BY_7 = 6 , # [doc = "7: DIV_BY_8"]
CLKDIV_RATIO_DIV_BY_8 = 7 , } impl From < CLKDIV_RATIO_A > for u8 { # [inline (always)]
fn from (variant : CLKDIV_RATIO_A) -> Self { variant as _ } } impl crate :: FieldSpec for CLKDIV_RATIO_A { type Ux = u8 ; } impl CLKDIV_RATIO_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKDIV_RATIO_A { match self . bits { 0 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_1 , 1 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_2 , 2 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_3 , 3 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_4 , 4 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_5 , 5 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_6 , 6 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_7 , 7 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_8 , _ => unreachable ! () , } } # [doc = "DIV_BY_1"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_1 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_1 } # [doc = "DIV_BY_2"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_2 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_2 } # [doc = "DIV_BY_3"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_3 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_3 } # [doc = "DIV_BY_4"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_4 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_4 } # [doc = "DIV_BY_5"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_5 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_5 } # [doc = "DIV_BY_6"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_6 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_6 } # [doc = "DIV_BY_7"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_7 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_7 } # [doc = "DIV_BY_8"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_8 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_8 } } # [doc = "Field `CLKDIV_RATIO` writer - Selects divide ratio of module clock"]
pub type CLKDIV_RATIO_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 3 , O , CLKDIV_RATIO_A > ; impl < 'a , REG , const O : u8 > CLKDIV_RATIO_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DIV_BY_1"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_1 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_1) } # [doc = "DIV_BY_2"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_2 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_2) } # [doc = "DIV_BY_3"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_3 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_3) } # [doc = "DIV_BY_4"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_4 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_4) } # [doc = "DIV_BY_5"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_5 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_5) } # [doc = "DIV_BY_6"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_6 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_6) } # [doc = "DIV_BY_7"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_7 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_7) } # [doc = "DIV_BY_8"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_8 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_8) } } impl R { # [doc = "Bits 0:2 - Selects divide ratio of module clock"]
# [inline (always)]
pub fn clkdiv_ratio (& self) -> CLKDIV_RATIO_R { CLKDIV_RATIO_R :: new ((self . bits & 7) as u8) } } impl W { # [doc = "Bits 0:2 - Selects divide ratio of module clock"]
# [inline (always)]
# [must_use]
pub fn clkdiv_ratio (& mut self) -> CLKDIV_RATIO_W < CLKDIV_SPEC , 0 > { CLKDIV_RATIO_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Clock Divider\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkdiv::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkdiv::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CLKDIV_SPEC ; impl crate :: RegisterSpec for CLKDIV_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`clkdiv::R`](R) reader structure"]
impl crate :: Readable for CLKDIV_SPEC { } # [doc = "`write(|w| ..)` method takes [`clkdiv::W`](W) writer structure"]
impl crate :: Writable for CLKDIV_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CLKDIV to value 0"]
impl crate :: Resettable for CLKDIV_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CLKSEL (rw) register accessor: Clock Select for Ultra Low Power peripherals\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clksel::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clksel::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clksel`]
module"]
pub type CLKSEL = crate :: Reg < clksel :: CLKSEL_SPEC > ; # [doc = "Clock Select for Ultra Low Power peripherals"]
pub mod clksel { # [doc = "Register `CLKSEL` reader"]
pub type R = crate :: R < CLKSEL_SPEC > ; # [doc = "Register `CLKSEL` writer"]
pub type W = crate :: W < CLKSEL_SPEC > ; # [doc = "Field `CLKSEL_MFCLK_SEL` reader - Selects MFCLK as clock source if enabled"]
pub type CLKSEL_MFCLK_SEL_R = crate :: BitReader < CLKSEL_MFCLK_SEL_A > ; # [doc = "Selects MFCLK as clock source if enabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKSEL_MFCLK_SEL_A { # [doc = "0: DISABLE"]
CLKSEL_MFCLK_SEL_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKSEL_MFCLK_SEL_ENABLE = 1 , } impl From < CLKSEL_MFCLK_SEL_A > for bool { # [inline (always)]
fn from (variant : CLKSEL_MFCLK_SEL_A) -> Self { variant as u8 != 0 } } impl CLKSEL_MFCLK_SEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKSEL_MFCLK_SEL_A { match self . bits { false => CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_DISABLE , true => CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clksel_mfclk_sel_disable (& self) -> bool { * self == CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clksel_mfclk_sel_enable (& self) -> bool { * self == CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_ENABLE } } # [doc = "Field `CLKSEL_MFCLK_SEL` writer - Selects MFCLK as clock source if enabled"]
pub type CLKSEL_MFCLK_SEL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKSEL_MFCLK_SEL_A > ; impl < 'a , REG , const O : u8 > CLKSEL_MFCLK_SEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clksel_mfclk_sel_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clksel_mfclk_sel_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_ENABLE) } } # [doc = "Field `CLKSEL_BUSCLK_SEL` reader - Selects BUSCLK as clock source if enabled"]
pub type CLKSEL_BUSCLK_SEL_R = crate :: BitReader < CLKSEL_BUSCLK_SEL_A > ; # [doc = "Selects BUSCLK as clock source if enabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKSEL_BUSCLK_SEL_A { # [doc = "0: DISABLE"]
CLKSEL_BUSCLK_SEL_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKSEL_BUSCLK_SEL_ENABLE = 1 , } impl From < CLKSEL_BUSCLK_SEL_A > for bool { # [inline (always)]
fn from (variant : CLKSEL_BUSCLK_SEL_A) -> Self { variant as u8 != 0 } } impl CLKSEL_BUSCLK_SEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKSEL_BUSCLK_SEL_A { match self . bits { false => CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_DISABLE , true => CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clksel_busclk_sel_disable (& self) -> bool { * self == CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clksel_busclk_sel_enable (& self) -> bool { * self == CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_ENABLE } } # [doc = "Field `CLKSEL_BUSCLK_SEL` writer - Selects BUSCLK as clock source if enabled"]
pub type CLKSEL_BUSCLK_SEL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKSEL_BUSCLK_SEL_A > ; impl < 'a , REG , const O : u8 > CLKSEL_BUSCLK_SEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clksel_busclk_sel_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clksel_busclk_sel_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_ENABLE) } } impl R { # [doc = "Bit 2 - Selects MFCLK as clock source if enabled"]
# [inline (always)]
pub fn clksel_mfclk_sel (& self) -> CLKSEL_MFCLK_SEL_R { CLKSEL_MFCLK_SEL_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Selects BUSCLK as clock source if enabled"]
# [inline (always)]
pub fn clksel_busclk_sel (& self) -> CLKSEL_BUSCLK_SEL_R { CLKSEL_BUSCLK_SEL_R :: new (((self . bits >> 3) & 1) != 0) } } impl W { # [doc = "Bit 2 - Selects MFCLK as clock source if enabled"]
# [inline (always)]
# [must_use]
pub fn clksel_mfclk_sel (& mut self) -> CLKSEL_MFCLK_SEL_W < CLKSEL_SPEC , 2 > { CLKSEL_MFCLK_SEL_W :: new (self) } # [doc = "Bit 3 - Selects BUSCLK as clock source if enabled"]
# [inline (always)]
# [must_use]
pub fn clksel_busclk_sel (& mut self) -> CLKSEL_BUSCLK_SEL_W < CLKSEL_SPEC , 3 > { CLKSEL_BUSCLK_SEL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Clock Select for Ultra Low Power peripherals\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clksel::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clksel::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CLKSEL_SPEC ; impl crate :: RegisterSpec for CLKSEL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`clksel::R`](R) reader structure"]
impl crate :: Readable for CLKSEL_SPEC { } # [doc = "`write(|w| ..)` method takes [`clksel::W`](W) writer structure"]
impl crate :: Writable for CLKSEL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CLKSEL to value 0"]
impl crate :: Resettable for CLKSEL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "PDBGCTL (rw) register accessor: Peripheral Debug Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pdbgctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pdbgctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pdbgctl`]
module"]
pub type PDBGCTL = crate :: Reg < pdbgctl :: PDBGCTL_SPEC > ; # [doc = "Peripheral Debug Control"]
pub mod pdbgctl { # [doc = "Register `PDBGCTL` reader"]
pub type R = crate :: R < PDBGCTL_SPEC > ; # [doc = "Register `PDBGCTL` writer"]
pub type W = crate :: W < PDBGCTL_SPEC > ; # [doc = "Field `PDBGCTL_FREE` reader - Free run control"]
pub type PDBGCTL_FREE_R = crate :: BitReader < PDBGCTL_FREE_A > ; # [doc = "Free run control\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PDBGCTL_FREE_A { # [doc = "0: STOP"]
PDBGCTL_FREE_STOP = 0 , # [doc = "1: RUN"]
PDBGCTL_FREE_RUN = 1 , } impl From < PDBGCTL_FREE_A > for bool { # [inline (always)]
fn from (variant : PDBGCTL_FREE_A) -> Self { variant as u8 != 0 } } impl PDBGCTL_FREE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PDBGCTL_FREE_A { match self . bits { false => PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP , true => PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN , } } # [doc = "STOP"]
# [inline (always)]
pub fn is_pdbgctl_free_stop (& self) -> bool { * self == PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP } # [doc = "RUN"]
# [inline (always)]
pub fn is_pdbgctl_free_run (& self) -> bool { * self == PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN } } # [doc = "Field `PDBGCTL_FREE` writer - Free run control"]
pub type PDBGCTL_FREE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PDBGCTL_FREE_A > ; impl < 'a , REG , const O : u8 > PDBGCTL_FREE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "STOP"]
# [inline (always)]
pub fn pdbgctl_free_stop (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP) } # [doc = "RUN"]
# [inline (always)]
pub fn pdbgctl_free_run (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN) } } # [doc = "Field `PDBGCTL_SOFT` reader - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
pub type PDBGCTL_SOFT_R = crate :: BitReader < PDBGCTL_SOFT_A > ; # [doc = "Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PDBGCTL_SOFT_A { # [doc = "0: IMMEDIATE"]
PDBGCTL_SOFT_IMMEDIATE = 0 , # [doc = "1: DELAYED"]
PDBGCTL_SOFT_DELAYED = 1 , } impl From < PDBGCTL_SOFT_A > for bool { # [inline (always)]
fn from (variant : PDBGCTL_SOFT_A) -> Self { variant as u8 != 0 } } impl PDBGCTL_SOFT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PDBGCTL_SOFT_A { match self . bits { false => PDBGCTL_SOFT_A :: PDBGCTL_SOFT_IMMEDIATE , true => PDBGCTL_SOFT_A :: PDBGCTL_SOFT_DELAYED , } } # [doc = "IMMEDIATE"]
# [inline (always)]
pub fn is_pdbgctl_soft_immediate (& self) -> bool { * self == PDBGCTL_SOFT_A :: PDBGCTL_SOFT_IMMEDIATE } # [doc = "DELAYED"]
# [inline (always)]
pub fn is_pdbgctl_soft_delayed (& self) -> bool { * self == PDBGCTL_SOFT_A :: PDBGCTL_SOFT_DELAYED } } # [doc = "Field `PDBGCTL_SOFT` writer - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
pub type PDBGCTL_SOFT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PDBGCTL_SOFT_A > ; impl < 'a , REG , const O : u8 > PDBGCTL_SOFT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "IMMEDIATE"]
# [inline (always)]
pub fn pdbgctl_soft_immediate (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_SOFT_A :: PDBGCTL_SOFT_IMMEDIATE) } # [doc = "DELAYED"]
# [inline (always)]
pub fn pdbgctl_soft_delayed (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_SOFT_A :: PDBGCTL_SOFT_DELAYED) } } impl R { # [doc = "Bit 0 - Free run control"]
# [inline (always)]
pub fn pdbgctl_free (& self) -> PDBGCTL_FREE_R { PDBGCTL_FREE_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
# [inline (always)]
pub fn pdbgctl_soft (& self) -> PDBGCTL_SOFT_R { PDBGCTL_SOFT_R :: new (((self . bits >> 1) & 1) != 0) } } impl W { # [doc = "Bit 0 - Free run control"]
# [inline (always)]
# [must_use]
pub fn pdbgctl_free (& mut self) -> PDBGCTL_FREE_W < PDBGCTL_SPEC , 0 > { PDBGCTL_FREE_W :: new (self) } # [doc = "Bit 1 - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
# [inline (always)]
# [must_use]
pub fn pdbgctl_soft (& mut self) -> PDBGCTL_SOFT_W < PDBGCTL_SPEC , 1 > { PDBGCTL_SOFT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Peripheral Debug Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pdbgctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pdbgctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PDBGCTL_SPEC ; impl crate :: RegisterSpec for PDBGCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pdbgctl::R`](R) reader structure"]
impl crate :: Readable for PDBGCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`pdbgctl::W`](W) writer structure"]
impl crate :: Writable for PDBGCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PDBGCTL to value 0"]
impl crate :: Resettable for PDBGCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_IIDX (r) register accessor: Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_iidx`]
module"]
pub type INT_EVENT0_IIDX = crate :: Reg < int_event0_iidx :: INT_EVENT0_IIDX_SPEC > ; # [doc = "Interrupt index"]
pub mod int_event0_iidx { # [doc = "Register `INT_EVENT0_IIDX` reader"]
pub type R = crate :: R < INT_EVENT0_IIDX_SPEC > ; # [doc = "Field `INT_EVENT0_IIDX_STAT` reader - I2C Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in RIS and MISC. 15h-1Fh = Reserved"]
pub type INT_EVENT0_IIDX_STAT_R = crate :: FieldReader < INT_EVENT0_IIDX_STAT_A > ; # [doc = "I2C Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in RIS and MISC. 15h-1Fh = Reserved\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum INT_EVENT0_IIDX_STAT_A { # [doc = "0: NO_INTR"]
INT_EVENT0_IIDX_STAT_NO_INTR = 0 , # [doc = "1: MRXDONEFG"]
INT_EVENT0_IIDX_STAT_MRXDONEFG = 1 , # [doc = "2: MTXDONEFG"]
INT_EVENT0_IIDX_STAT_MTXDONEFG = 2 , # [doc = "3: MRXFIFOTRG"]
INT_EVENT0_IIDX_STAT_MRXFIFOTRG = 3 , # [doc = "4: MTXFIFOTRG"]
INT_EVENT0_IIDX_STAT_MTXFIFOTRG = 4 , # [doc = "5: MRXFIFOFULL"]
INT_EVENT0_IIDX_STAT_MRXFIFOFULL = 5 , # [doc = "6: MTX_EMPTY"]
INT_EVENT0_IIDX_STAT_MTX_EMPTY = 6 , # [doc = "8: MNACKFG"]
INT_EVENT0_IIDX_STAT_MNACKFG = 8 , # [doc = "9: MSTARTFG"]
INT_EVENT0_IIDX_STAT_MSTARTFG = 9 , # [doc = "10: MSTOPFG"]
INT_EVENT0_IIDX_STAT_MSTOPFG = 10 , # [doc = "11: MARBLOSTFG"]
INT_EVENT0_IIDX_STAT_MARBLOSTFG = 11 , # [doc = "12: MDMA_DONE1_CH2"]
INT_EVENT0_IIDX_STAT_MDMA_DONE1_CH2 = 12 , # [doc = "13: MDMA_DONE1_CH3"]
INT_EVENT0_IIDX_STAT_MDMA_DONE1_CH3 = 13 , # [doc = "14: MPEC_RX_ERR"]
INT_EVENT0_IIDX_STAT_MPEC_RX_ERR = 14 , # [doc = "15: TIMEOUTA"]
INT_EVENT0_IIDX_STAT_TIMEOUTA = 15 , # [doc = "16: TIMEOUTB"]
INT_EVENT0_IIDX_STAT_TIMEOUTB = 16 , # [doc = "17: SRXDONEFG"]
INT_EVENT0_IIDX_STAT_SRXDONEFG = 17 , # [doc = "18: STXDONEFG"]
INT_EVENT0_IIDX_STAT_STXDONEFG = 18 , # [doc = "19: SRXFIFOTRG"]
INT_EVENT0_IIDX_STAT_SRXFIFOTRG = 19 , # [doc = "20: STXFIFOTRG"]
INT_EVENT0_IIDX_STAT_STXFIFOTRG = 20 , # [doc = "21: SRXFIFOFULL"]
INT_EVENT0_IIDX_STAT_SRXFIFOFULL = 21 , # [doc = "22: STXEMPTY"]
INT_EVENT0_IIDX_STAT_STXEMPTY = 22 , # [doc = "23: SSTARTFG"]
INT_EVENT0_IIDX_STAT_SSTARTFG = 23 , # [doc = "24: SSTOPFG"]
INT_EVENT0_IIDX_STAT_SSTOPFG = 24 , # [doc = "25: SGENCALL"]
INT_EVENT0_IIDX_STAT_SGENCALL = 25 , # [doc = "26: SDMA_DONE1_CH2"]
INT_EVENT0_IIDX_STAT_SDMA_DONE1_CH2 = 26 , # [doc = "27: SDMA_DONE1_CH3"]
INT_EVENT0_IIDX_STAT_SDMA_DONE1_CH3 = 27 , # [doc = "28: SPEC_RX_ERR"]
INT_EVENT0_IIDX_STAT_SPEC_RX_ERR = 28 , # [doc = "29: STX_UNFL"]
INT_EVENT0_IIDX_STAT_STX_UNFL = 29 , # [doc = "30: SRX_OVFL"]
INT_EVENT0_IIDX_STAT_SRX_OVFL = 30 , # [doc = "31: SARBLOST"]
INT_EVENT0_IIDX_STAT_SARBLOST = 31 , # [doc = "32: INTR_OVFL"]
INT_EVENT0_IIDX_STAT_INTR_OVFL = 32 , } impl From < INT_EVENT0_IIDX_STAT_A > for u8 { # [inline (always)]
fn from (variant : INT_EVENT0_IIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for INT_EVENT0_IIDX_STAT_A { type Ux = u8 ; } impl INT_EVENT0_IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < INT_EVENT0_IIDX_STAT_A > { match self . bits { 0 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_NO_INTR) , 1 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MRXDONEFG) , 2 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MTXDONEFG) , 3 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MRXFIFOTRG) , 4 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MTXFIFOTRG) , 5 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MRXFIFOFULL) , 6 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MTX_EMPTY) , 8 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MNACKFG) , 9 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MSTARTFG) , 10 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MSTOPFG) , 11 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MARBLOSTFG) , 12 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MDMA_DONE1_CH2) , 13 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MDMA_DONE1_CH3) , 14 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MPEC_RX_ERR) , 15 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_TIMEOUTA) , 16 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_TIMEOUTB) , 17 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SRXDONEFG) , 18 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_STXDONEFG) , 19 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SRXFIFOTRG) , 20 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_STXFIFOTRG) , 21 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SRXFIFOFULL) , 22 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_STXEMPTY) , 23 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SSTARTFG) , 24 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SSTOPFG) , 25 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SGENCALL) , 26 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SDMA_DONE1_CH2) , 27 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SDMA_DONE1_CH3) , 28 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SPEC_RX_ERR) , 29 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_STX_UNFL) , 30 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SRX_OVFL) , 31 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SARBLOST) , 32 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_INTR_OVFL) , _ => None , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_no_intr (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_NO_INTR } # [doc = "MRXDONEFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_mrxdonefg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MRXDONEFG } # [doc = "MTXDONEFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_mtxdonefg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MTXDONEFG } # [doc = "MRXFIFOTRG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_mrxfifotrg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MRXFIFOTRG } # [doc = "MTXFIFOTRG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_mtxfifotrg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MTXFIFOTRG } # [doc = "MRXFIFOFULL"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_mrxfifofull (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MRXFIFOFULL } # [doc = "MTX_EMPTY"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_mtx_empty (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MTX_EMPTY } # [doc = "MNACKFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_mnackfg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MNACKFG } # [doc = "MSTARTFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_mstartfg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MSTARTFG } # [doc = "MSTOPFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_mstopfg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MSTOPFG } # [doc = "MARBLOSTFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_marblostfg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MARBLOSTFG } # [doc = "MDMA_DONE1_CH2"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_mdma_done1_ch2 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MDMA_DONE1_CH2 } # [doc = "MDMA_DONE1_CH3"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_mdma_done1_ch3 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MDMA_DONE1_CH3 } # [doc = "MPEC_RX_ERR"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_mpec_rx_err (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MPEC_RX_ERR } # [doc = "TIMEOUTA"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_timeouta (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_TIMEOUTA } # [doc = "TIMEOUTB"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_timeoutb (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_TIMEOUTB } # [doc = "SRXDONEFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_srxdonefg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SRXDONEFG } # [doc = "STXDONEFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_stxdonefg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_STXDONEFG } # [doc = "SRXFIFOTRG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_srxfifotrg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SRXFIFOTRG } # [doc = "STXFIFOTRG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_stxfifotrg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_STXFIFOTRG } # [doc = "SRXFIFOFULL"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_srxfifofull (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SRXFIFOFULL } # [doc = "STXEMPTY"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_stxempty (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_STXEMPTY } # [doc = "SSTARTFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_sstartfg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SSTARTFG } # [doc = "SSTOPFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_sstopfg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SSTOPFG } # [doc = "SGENCALL"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_sgencall (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SGENCALL } # [doc = "SDMA_DONE1_CH2"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_sdma_done1_ch2 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SDMA_DONE1_CH2 } # [doc = "SDMA_DONE1_CH3"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_sdma_done1_ch3 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SDMA_DONE1_CH3 } # [doc = "SPEC_RX_ERR"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_spec_rx_err (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SPEC_RX_ERR } # [doc = "STX_UNFL"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_stx_unfl (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_STX_UNFL } # [doc = "SRX_OVFL"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_srx_ovfl (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SRX_OVFL } # [doc = "SARBLOST"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_sarblost (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SARBLOST } # [doc = "INTR_OVFL"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_intr_ovfl (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_INTR_OVFL } } impl R { # [doc = "Bits 0:7 - I2C Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in RIS and MISC. 15h-1Fh = Reserved"]
# [inline (always)]
pub fn int_event0_iidx_stat (& self) -> INT_EVENT0_IIDX_STAT_R { INT_EVENT0_IIDX_STAT_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_IIDX_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event0_iidx::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT0_IIDX_SPEC { } # [doc = "`reset()` method sets INT_EVENT0_IIDX to value 0"]
impl crate :: Resettable for INT_EVENT0_IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_IMASK (rw) register accessor: Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_imask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_imask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_imask`]
module"]
pub type INT_EVENT0_IMASK = crate :: Reg < int_event0_imask :: INT_EVENT0_IMASK_SPEC > ; # [doc = "Interrupt mask"]
pub mod int_event0_imask { # [doc = "Register `INT_EVENT0_IMASK` reader"]
pub type R = crate :: R < INT_EVENT0_IMASK_SPEC > ; # [doc = "Register `INT_EVENT0_IMASK` writer"]
pub type W = crate :: W < INT_EVENT0_IMASK_SPEC > ; # [doc = "Field `INT_EVENT0_IMASK_MRXDONE` reader - Master Receive Transaction completed Interrupt"]
pub type INT_EVENT0_IMASK_MRXDONE_R = crate :: BitReader < INT_EVENT0_IMASK_MRXDONE_A > ; # [doc = "Master Receive Transaction completed Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_MRXDONE_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_MRXDONE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_MRXDONE_SET = 1 , } impl From < INT_EVENT0_IMASK_MRXDONE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_MRXDONE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_MRXDONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_MRXDONE_A { match self . bits { false => INT_EVENT0_IMASK_MRXDONE_A :: INT_EVENT0_IMASK_MRXDONE_CLR , true => INT_EVENT0_IMASK_MRXDONE_A :: INT_EVENT0_IMASK_MRXDONE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_mrxdone_clr (& self) -> bool { * self == INT_EVENT0_IMASK_MRXDONE_A :: INT_EVENT0_IMASK_MRXDONE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_mrxdone_set (& self) -> bool { * self == INT_EVENT0_IMASK_MRXDONE_A :: INT_EVENT0_IMASK_MRXDONE_SET } } # [doc = "Field `INT_EVENT0_IMASK_MRXDONE` writer - Master Receive Transaction completed Interrupt"]
pub type INT_EVENT0_IMASK_MRXDONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_MRXDONE_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_MRXDONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_mrxdone_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MRXDONE_A :: INT_EVENT0_IMASK_MRXDONE_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_mrxdone_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MRXDONE_A :: INT_EVENT0_IMASK_MRXDONE_SET) } } # [doc = "Field `INT_EVENT0_IMASK_MTXDONE` reader - Master Transmit Transaction completed Interrupt"]
pub type INT_EVENT0_IMASK_MTXDONE_R = crate :: BitReader < INT_EVENT0_IMASK_MTXDONE_A > ; # [doc = "Master Transmit Transaction completed Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_MTXDONE_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_MTXDONE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_MTXDONE_SET = 1 , } impl From < INT_EVENT0_IMASK_MTXDONE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_MTXDONE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_MTXDONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_MTXDONE_A { match self . bits { false => INT_EVENT0_IMASK_MTXDONE_A :: INT_EVENT0_IMASK_MTXDONE_CLR , true => INT_EVENT0_IMASK_MTXDONE_A :: INT_EVENT0_IMASK_MTXDONE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_mtxdone_clr (& self) -> bool { * self == INT_EVENT0_IMASK_MTXDONE_A :: INT_EVENT0_IMASK_MTXDONE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_mtxdone_set (& self) -> bool { * self == INT_EVENT0_IMASK_MTXDONE_A :: INT_EVENT0_IMASK_MTXDONE_SET } } # [doc = "Field `INT_EVENT0_IMASK_MTXDONE` writer - Master Transmit Transaction completed Interrupt"]
pub type INT_EVENT0_IMASK_MTXDONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_MTXDONE_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_MTXDONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_mtxdone_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MTXDONE_A :: INT_EVENT0_IMASK_MTXDONE_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_mtxdone_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MTXDONE_A :: INT_EVENT0_IMASK_MTXDONE_SET) } } # [doc = "Field `INT_EVENT0_IMASK_MRXFIFOTRG` reader - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT0_IMASK_MRXFIFOTRG_R = crate :: BitReader < INT_EVENT0_IMASK_MRXFIFOTRG_A > ; # [doc = "Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_MRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_MRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_MRXFIFOTRG_SET = 1 , } impl From < INT_EVENT0_IMASK_MRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_MRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_MRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_MRXFIFOTRG_A { match self . bits { false => INT_EVENT0_IMASK_MRXFIFOTRG_A :: INT_EVENT0_IMASK_MRXFIFOTRG_CLR , true => INT_EVENT0_IMASK_MRXFIFOTRG_A :: INT_EVENT0_IMASK_MRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_mrxfifotrg_clr (& self) -> bool { * self == INT_EVENT0_IMASK_MRXFIFOTRG_A :: INT_EVENT0_IMASK_MRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_mrxfifotrg_set (& self) -> bool { * self == INT_EVENT0_IMASK_MRXFIFOTRG_A :: INT_EVENT0_IMASK_MRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT0_IMASK_MRXFIFOTRG` writer - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT0_IMASK_MRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_MRXFIFOTRG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_MRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_mrxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MRXFIFOTRG_A :: INT_EVENT0_IMASK_MRXFIFOTRG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_mrxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MRXFIFOTRG_A :: INT_EVENT0_IMASK_MRXFIFOTRG_SET) } } # [doc = "Field `INT_EVENT0_IMASK_MTXFIFOTRG` reader - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT0_IMASK_MTXFIFOTRG_R = crate :: BitReader < INT_EVENT0_IMASK_MTXFIFOTRG_A > ; # [doc = "Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_MTXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_MTXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_MTXFIFOTRG_SET = 1 , } impl From < INT_EVENT0_IMASK_MTXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_MTXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_MTXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_MTXFIFOTRG_A { match self . bits { false => INT_EVENT0_IMASK_MTXFIFOTRG_A :: INT_EVENT0_IMASK_MTXFIFOTRG_CLR , true => INT_EVENT0_IMASK_MTXFIFOTRG_A :: INT_EVENT0_IMASK_MTXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_mtxfifotrg_clr (& self) -> bool { * self == INT_EVENT0_IMASK_MTXFIFOTRG_A :: INT_EVENT0_IMASK_MTXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_mtxfifotrg_set (& self) -> bool { * self == INT_EVENT0_IMASK_MTXFIFOTRG_A :: INT_EVENT0_IMASK_MTXFIFOTRG_SET } } # [doc = "Field `INT_EVENT0_IMASK_MTXFIFOTRG` writer - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT0_IMASK_MTXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_MTXFIFOTRG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_MTXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_mtxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MTXFIFOTRG_A :: INT_EVENT0_IMASK_MTXFIFOTRG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_mtxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MTXFIFOTRG_A :: INT_EVENT0_IMASK_MTXFIFOTRG_SET) } } # [doc = "Field `INT_EVENT0_IMASK_MRXFIFOFULL` reader - RXFIFO full event. This interrupt is set if an RX FIFO is full."]
pub type INT_EVENT0_IMASK_MRXFIFOFULL_R = crate :: BitReader < INT_EVENT0_IMASK_MRXFIFOFULL_A > ; # [doc = "RXFIFO full event. This interrupt is set if an RX FIFO is full.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_MRXFIFOFULL_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_MRXFIFOFULL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_MRXFIFOFULL_SET = 1 , } impl From < INT_EVENT0_IMASK_MRXFIFOFULL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_MRXFIFOFULL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_MRXFIFOFULL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_MRXFIFOFULL_A { match self . bits { false => INT_EVENT0_IMASK_MRXFIFOFULL_A :: INT_EVENT0_IMASK_MRXFIFOFULL_CLR , true => INT_EVENT0_IMASK_MRXFIFOFULL_A :: INT_EVENT0_IMASK_MRXFIFOFULL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_mrxfifofull_clr (& self) -> bool { * self == INT_EVENT0_IMASK_MRXFIFOFULL_A :: INT_EVENT0_IMASK_MRXFIFOFULL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_mrxfifofull_set (& self) -> bool { * self == INT_EVENT0_IMASK_MRXFIFOFULL_A :: INT_EVENT0_IMASK_MRXFIFOFULL_SET } } # [doc = "Field `INT_EVENT0_IMASK_MRXFIFOFULL` writer - RXFIFO full event. This interrupt is set if an RX FIFO is full."]
pub type INT_EVENT0_IMASK_MRXFIFOFULL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_MRXFIFOFULL_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_MRXFIFOFULL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_mrxfifofull_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MRXFIFOFULL_A :: INT_EVENT0_IMASK_MRXFIFOFULL_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_mrxfifofull_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MRXFIFOFULL_A :: INT_EVENT0_IMASK_MRXFIFOFULL_SET) } } # [doc = "Field `INT_EVENT0_IMASK_MTXEMPTY` reader - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
pub type INT_EVENT0_IMASK_MTXEMPTY_R = crate :: BitReader < INT_EVENT0_IMASK_MTXEMPTY_A > ; # [doc = "Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_MTXEMPTY_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_MTXEMPTY_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_MTXEMPTY_SET = 1 , } impl From < INT_EVENT0_IMASK_MTXEMPTY_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_MTXEMPTY_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_MTXEMPTY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_MTXEMPTY_A { match self . bits { false => INT_EVENT0_IMASK_MTXEMPTY_A :: INT_EVENT0_IMASK_MTXEMPTY_CLR , true => INT_EVENT0_IMASK_MTXEMPTY_A :: INT_EVENT0_IMASK_MTXEMPTY_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_mtxempty_clr (& self) -> bool { * self == INT_EVENT0_IMASK_MTXEMPTY_A :: INT_EVENT0_IMASK_MTXEMPTY_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_mtxempty_set (& self) -> bool { * self == INT_EVENT0_IMASK_MTXEMPTY_A :: INT_EVENT0_IMASK_MTXEMPTY_SET } } # [doc = "Field `INT_EVENT0_IMASK_MTXEMPTY` writer - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
pub type INT_EVENT0_IMASK_MTXEMPTY_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_MTXEMPTY_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_MTXEMPTY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_mtxempty_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MTXEMPTY_A :: INT_EVENT0_IMASK_MTXEMPTY_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_mtxempty_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MTXEMPTY_A :: INT_EVENT0_IMASK_MTXEMPTY_SET) } } # [doc = "Field `INT_EVENT0_IMASK_MNACK` reader - Address/Data NACK Interrupt"]
pub type INT_EVENT0_IMASK_MNACK_R = crate :: BitReader < INT_EVENT0_IMASK_MNACK_A > ; # [doc = "Address/Data NACK Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_MNACK_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_MNACK_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_MNACK_SET = 1 , } impl From < INT_EVENT0_IMASK_MNACK_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_MNACK_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_MNACK_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_MNACK_A { match self . bits { false => INT_EVENT0_IMASK_MNACK_A :: INT_EVENT0_IMASK_MNACK_CLR , true => INT_EVENT0_IMASK_MNACK_A :: INT_EVENT0_IMASK_MNACK_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_mnack_clr (& self) -> bool { * self == INT_EVENT0_IMASK_MNACK_A :: INT_EVENT0_IMASK_MNACK_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_mnack_set (& self) -> bool { * self == INT_EVENT0_IMASK_MNACK_A :: INT_EVENT0_IMASK_MNACK_SET } } # [doc = "Field `INT_EVENT0_IMASK_MNACK` writer - Address/Data NACK Interrupt"]
pub type INT_EVENT0_IMASK_MNACK_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_MNACK_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_MNACK_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_mnack_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MNACK_A :: INT_EVENT0_IMASK_MNACK_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_mnack_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MNACK_A :: INT_EVENT0_IMASK_MNACK_SET) } } # [doc = "Field `INT_EVENT0_IMASK_MSTART` reader - START Detection Interrupt"]
pub type INT_EVENT0_IMASK_MSTART_R = crate :: BitReader < INT_EVENT0_IMASK_MSTART_A > ; # [doc = "START Detection Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_MSTART_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_MSTART_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_MSTART_SET = 1 , } impl From < INT_EVENT0_IMASK_MSTART_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_MSTART_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_MSTART_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_MSTART_A { match self . bits { false => INT_EVENT0_IMASK_MSTART_A :: INT_EVENT0_IMASK_MSTART_CLR , true => INT_EVENT0_IMASK_MSTART_A :: INT_EVENT0_IMASK_MSTART_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_mstart_clr (& self) -> bool { * self == INT_EVENT0_IMASK_MSTART_A :: INT_EVENT0_IMASK_MSTART_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_mstart_set (& self) -> bool { * self == INT_EVENT0_IMASK_MSTART_A :: INT_EVENT0_IMASK_MSTART_SET } } # [doc = "Field `INT_EVENT0_IMASK_MSTART` writer - START Detection Interrupt"]
pub type INT_EVENT0_IMASK_MSTART_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_MSTART_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_MSTART_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_mstart_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MSTART_A :: INT_EVENT0_IMASK_MSTART_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_mstart_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MSTART_A :: INT_EVENT0_IMASK_MSTART_SET) } } # [doc = "Field `INT_EVENT0_IMASK_MSTOP` reader - STOP Detection Interrupt"]
pub type INT_EVENT0_IMASK_MSTOP_R = crate :: BitReader < INT_EVENT0_IMASK_MSTOP_A > ; # [doc = "STOP Detection Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_MSTOP_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_MSTOP_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_MSTOP_SET = 1 , } impl From < INT_EVENT0_IMASK_MSTOP_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_MSTOP_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_MSTOP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_MSTOP_A { match self . bits { false => INT_EVENT0_IMASK_MSTOP_A :: INT_EVENT0_IMASK_MSTOP_CLR , true => INT_EVENT0_IMASK_MSTOP_A :: INT_EVENT0_IMASK_MSTOP_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_mstop_clr (& self) -> bool { * self == INT_EVENT0_IMASK_MSTOP_A :: INT_EVENT0_IMASK_MSTOP_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_mstop_set (& self) -> bool { * self == INT_EVENT0_IMASK_MSTOP_A :: INT_EVENT0_IMASK_MSTOP_SET } } # [doc = "Field `INT_EVENT0_IMASK_MSTOP` writer - STOP Detection Interrupt"]
pub type INT_EVENT0_IMASK_MSTOP_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_MSTOP_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_MSTOP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_mstop_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MSTOP_A :: INT_EVENT0_IMASK_MSTOP_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_mstop_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MSTOP_A :: INT_EVENT0_IMASK_MSTOP_SET) } } # [doc = "Field `INT_EVENT0_IMASK_MARBLOST` reader - Arbitration Lost Interrupt"]
pub type INT_EVENT0_IMASK_MARBLOST_R = crate :: BitReader < INT_EVENT0_IMASK_MARBLOST_A > ; # [doc = "Arbitration Lost Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_MARBLOST_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_MARBLOST_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_MARBLOST_SET = 1 , } impl From < INT_EVENT0_IMASK_MARBLOST_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_MARBLOST_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_MARBLOST_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_MARBLOST_A { match self . bits { false => INT_EVENT0_IMASK_MARBLOST_A :: INT_EVENT0_IMASK_MARBLOST_CLR , true => INT_EVENT0_IMASK_MARBLOST_A :: INT_EVENT0_IMASK_MARBLOST_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_marblost_clr (& self) -> bool { * self == INT_EVENT0_IMASK_MARBLOST_A :: INT_EVENT0_IMASK_MARBLOST_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_marblost_set (& self) -> bool { * self == INT_EVENT0_IMASK_MARBLOST_A :: INT_EVENT0_IMASK_MARBLOST_SET } } # [doc = "Field `INT_EVENT0_IMASK_MARBLOST` writer - Arbitration Lost Interrupt"]
pub type INT_EVENT0_IMASK_MARBLOST_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_MARBLOST_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_MARBLOST_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_marblost_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MARBLOST_A :: INT_EVENT0_IMASK_MARBLOST_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_marblost_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MARBLOST_A :: INT_EVENT0_IMASK_MARBLOST_SET) } } # [doc = "Field `INT_EVENT0_IMASK_MDMA_DONE1_2` reader - DMA Done 1 on Event Channel 2"]
pub type INT_EVENT0_IMASK_MDMA_DONE1_2_R = crate :: BitReader < INT_EVENT0_IMASK_MDMA_DONE1_2_A > ; # [doc = "DMA Done 1 on Event Channel 2\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_MDMA_DONE1_2_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_MDMA_DONE1_2_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_MDMA_DONE1_2_SET = 1 , } impl From < INT_EVENT0_IMASK_MDMA_DONE1_2_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_MDMA_DONE1_2_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_MDMA_DONE1_2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_MDMA_DONE1_2_A { match self . bits { false => INT_EVENT0_IMASK_MDMA_DONE1_2_A :: INT_EVENT0_IMASK_MDMA_DONE1_2_CLR , true => INT_EVENT0_IMASK_MDMA_DONE1_2_A :: INT_EVENT0_IMASK_MDMA_DONE1_2_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_mdma_done1_2_clr (& self) -> bool { * self == INT_EVENT0_IMASK_MDMA_DONE1_2_A :: INT_EVENT0_IMASK_MDMA_DONE1_2_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_mdma_done1_2_set (& self) -> bool { * self == INT_EVENT0_IMASK_MDMA_DONE1_2_A :: INT_EVENT0_IMASK_MDMA_DONE1_2_SET } } # [doc = "Field `INT_EVENT0_IMASK_MDMA_DONE1_2` writer - DMA Done 1 on Event Channel 2"]
pub type INT_EVENT0_IMASK_MDMA_DONE1_2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_MDMA_DONE1_2_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_MDMA_DONE1_2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_mdma_done1_2_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MDMA_DONE1_2_A :: INT_EVENT0_IMASK_MDMA_DONE1_2_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_mdma_done1_2_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MDMA_DONE1_2_A :: INT_EVENT0_IMASK_MDMA_DONE1_2_SET) } } # [doc = "Field `INT_EVENT0_IMASK_MDMA_DONE1_3` reader - DMA Done 1 on Event Channel 3"]
pub type INT_EVENT0_IMASK_MDMA_DONE1_3_R = crate :: BitReader < INT_EVENT0_IMASK_MDMA_DONE1_3_A > ; # [doc = "DMA Done 1 on Event Channel 3\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_MDMA_DONE1_3_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_MDMA_DONE1_3_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_MDMA_DONE1_3_SET = 1 , } impl From < INT_EVENT0_IMASK_MDMA_DONE1_3_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_MDMA_DONE1_3_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_MDMA_DONE1_3_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_MDMA_DONE1_3_A { match self . bits { false => INT_EVENT0_IMASK_MDMA_DONE1_3_A :: INT_EVENT0_IMASK_MDMA_DONE1_3_CLR , true => INT_EVENT0_IMASK_MDMA_DONE1_3_A :: INT_EVENT0_IMASK_MDMA_DONE1_3_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_mdma_done1_3_clr (& self) -> bool { * self == INT_EVENT0_IMASK_MDMA_DONE1_3_A :: INT_EVENT0_IMASK_MDMA_DONE1_3_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_mdma_done1_3_set (& self) -> bool { * self == INT_EVENT0_IMASK_MDMA_DONE1_3_A :: INT_EVENT0_IMASK_MDMA_DONE1_3_SET } } # [doc = "Field `INT_EVENT0_IMASK_MDMA_DONE1_3` writer - DMA Done 1 on Event Channel 3"]
pub type INT_EVENT0_IMASK_MDMA_DONE1_3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_MDMA_DONE1_3_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_MDMA_DONE1_3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_mdma_done1_3_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MDMA_DONE1_3_A :: INT_EVENT0_IMASK_MDMA_DONE1_3_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_mdma_done1_3_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MDMA_DONE1_3_A :: INT_EVENT0_IMASK_MDMA_DONE1_3_SET) } } # [doc = "Field `INT_EVENT0_IMASK_MPEC_RX_ERR` reader - Master RX Pec Error Interrupt"]
pub type INT_EVENT0_IMASK_MPEC_RX_ERR_R = crate :: BitReader < INT_EVENT0_IMASK_MPEC_RX_ERR_A > ; # [doc = "Master RX Pec Error Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_MPEC_RX_ERR_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_MPEC_RX_ERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_MPEC_RX_ERR_SET = 1 , } impl From < INT_EVENT0_IMASK_MPEC_RX_ERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_MPEC_RX_ERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_MPEC_RX_ERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_MPEC_RX_ERR_A { match self . bits { false => INT_EVENT0_IMASK_MPEC_RX_ERR_A :: INT_EVENT0_IMASK_MPEC_RX_ERR_CLR , true => INT_EVENT0_IMASK_MPEC_RX_ERR_A :: INT_EVENT0_IMASK_MPEC_RX_ERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_mpec_rx_err_clr (& self) -> bool { * self == INT_EVENT0_IMASK_MPEC_RX_ERR_A :: INT_EVENT0_IMASK_MPEC_RX_ERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_mpec_rx_err_set (& self) -> bool { * self == INT_EVENT0_IMASK_MPEC_RX_ERR_A :: INT_EVENT0_IMASK_MPEC_RX_ERR_SET } } # [doc = "Field `INT_EVENT0_IMASK_MPEC_RX_ERR` writer - Master RX Pec Error Interrupt"]
pub type INT_EVENT0_IMASK_MPEC_RX_ERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_MPEC_RX_ERR_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_MPEC_RX_ERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_mpec_rx_err_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MPEC_RX_ERR_A :: INT_EVENT0_IMASK_MPEC_RX_ERR_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_mpec_rx_err_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MPEC_RX_ERR_A :: INT_EVENT0_IMASK_MPEC_RX_ERR_SET) } } # [doc = "Field `INT_EVENT0_IMASK_TIMEOUTA` reader - Timeout A Interrupt"]
pub type INT_EVENT0_IMASK_TIMEOUTA_R = crate :: BitReader < INT_EVENT0_IMASK_TIMEOUTA_A > ; # [doc = "Timeout A Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_TIMEOUTA_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_TIMEOUTA_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_TIMEOUTA_SET = 1 , } impl From < INT_EVENT0_IMASK_TIMEOUTA_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_TIMEOUTA_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_TIMEOUTA_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_TIMEOUTA_A { match self . bits { false => INT_EVENT0_IMASK_TIMEOUTA_A :: INT_EVENT0_IMASK_TIMEOUTA_CLR , true => INT_EVENT0_IMASK_TIMEOUTA_A :: INT_EVENT0_IMASK_TIMEOUTA_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_timeouta_clr (& self) -> bool { * self == INT_EVENT0_IMASK_TIMEOUTA_A :: INT_EVENT0_IMASK_TIMEOUTA_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_timeouta_set (& self) -> bool { * self == INT_EVENT0_IMASK_TIMEOUTA_A :: INT_EVENT0_IMASK_TIMEOUTA_SET } } # [doc = "Field `INT_EVENT0_IMASK_TIMEOUTA` writer - Timeout A Interrupt"]
pub type INT_EVENT0_IMASK_TIMEOUTA_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_TIMEOUTA_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_TIMEOUTA_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_timeouta_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_TIMEOUTA_A :: INT_EVENT0_IMASK_TIMEOUTA_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_timeouta_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_TIMEOUTA_A :: INT_EVENT0_IMASK_TIMEOUTA_SET) } } # [doc = "Field `INT_EVENT0_IMASK_TIMEOUTB` reader - Timeout B Interrupt"]
pub type INT_EVENT0_IMASK_TIMEOUTB_R = crate :: BitReader < INT_EVENT0_IMASK_TIMEOUTB_A > ; # [doc = "Timeout B Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_TIMEOUTB_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_TIMEOUTB_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_TIMEOUTB_SET = 1 , } impl From < INT_EVENT0_IMASK_TIMEOUTB_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_TIMEOUTB_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_TIMEOUTB_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_TIMEOUTB_A { match self . bits { false => INT_EVENT0_IMASK_TIMEOUTB_A :: INT_EVENT0_IMASK_TIMEOUTB_CLR , true => INT_EVENT0_IMASK_TIMEOUTB_A :: INT_EVENT0_IMASK_TIMEOUTB_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_timeoutb_clr (& self) -> bool { * self == INT_EVENT0_IMASK_TIMEOUTB_A :: INT_EVENT0_IMASK_TIMEOUTB_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_timeoutb_set (& self) -> bool { * self == INT_EVENT0_IMASK_TIMEOUTB_A :: INT_EVENT0_IMASK_TIMEOUTB_SET } } # [doc = "Field `INT_EVENT0_IMASK_TIMEOUTB` writer - Timeout B Interrupt"]
pub type INT_EVENT0_IMASK_TIMEOUTB_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_TIMEOUTB_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_TIMEOUTB_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_timeoutb_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_TIMEOUTB_A :: INT_EVENT0_IMASK_TIMEOUTB_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_timeoutb_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_TIMEOUTB_A :: INT_EVENT0_IMASK_TIMEOUTB_SET) } } # [doc = "Field `INT_EVENT0_IMASK_SRXDONE` reader - Slave Receive Data Interrupt Signals that a byte has been received"]
pub type INT_EVENT0_IMASK_SRXDONE_R = crate :: BitReader < INT_EVENT0_IMASK_SRXDONE_A > ; # [doc = "Slave Receive Data Interrupt Signals that a byte has been received\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_SRXDONE_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_SRXDONE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_SRXDONE_SET = 1 , } impl From < INT_EVENT0_IMASK_SRXDONE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_SRXDONE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_SRXDONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_SRXDONE_A { match self . bits { false => INT_EVENT0_IMASK_SRXDONE_A :: INT_EVENT0_IMASK_SRXDONE_CLR , true => INT_EVENT0_IMASK_SRXDONE_A :: INT_EVENT0_IMASK_SRXDONE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_srxdone_clr (& self) -> bool { * self == INT_EVENT0_IMASK_SRXDONE_A :: INT_EVENT0_IMASK_SRXDONE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_srxdone_set (& self) -> bool { * self == INT_EVENT0_IMASK_SRXDONE_A :: INT_EVENT0_IMASK_SRXDONE_SET } } # [doc = "Field `INT_EVENT0_IMASK_SRXDONE` writer - Slave Receive Data Interrupt Signals that a byte has been received"]
pub type INT_EVENT0_IMASK_SRXDONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_SRXDONE_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_SRXDONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_srxdone_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SRXDONE_A :: INT_EVENT0_IMASK_SRXDONE_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_srxdone_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SRXDONE_A :: INT_EVENT0_IMASK_SRXDONE_SET) } } # [doc = "Field `INT_EVENT0_IMASK_STXDONE` reader - Slave Transmit Transaction completed Interrupt"]
pub type INT_EVENT0_IMASK_STXDONE_R = crate :: BitReader < INT_EVENT0_IMASK_STXDONE_A > ; # [doc = "Slave Transmit Transaction completed Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_STXDONE_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_STXDONE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_STXDONE_SET = 1 , } impl From < INT_EVENT0_IMASK_STXDONE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_STXDONE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_STXDONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_STXDONE_A { match self . bits { false => INT_EVENT0_IMASK_STXDONE_A :: INT_EVENT0_IMASK_STXDONE_CLR , true => INT_EVENT0_IMASK_STXDONE_A :: INT_EVENT0_IMASK_STXDONE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_stxdone_clr (& self) -> bool { * self == INT_EVENT0_IMASK_STXDONE_A :: INT_EVENT0_IMASK_STXDONE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_stxdone_set (& self) -> bool { * self == INT_EVENT0_IMASK_STXDONE_A :: INT_EVENT0_IMASK_STXDONE_SET } } # [doc = "Field `INT_EVENT0_IMASK_STXDONE` writer - Slave Transmit Transaction completed Interrupt"]
pub type INT_EVENT0_IMASK_STXDONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_STXDONE_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_STXDONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_stxdone_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_STXDONE_A :: INT_EVENT0_IMASK_STXDONE_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_stxdone_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_STXDONE_A :: INT_EVENT0_IMASK_STXDONE_SET) } } # [doc = "Field `INT_EVENT0_IMASK_SRXFIFOTRG` reader - Slave Receive FIFO Trigger"]
pub type INT_EVENT0_IMASK_SRXFIFOTRG_R = crate :: BitReader < INT_EVENT0_IMASK_SRXFIFOTRG_A > ; # [doc = "Slave Receive FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_SRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_SRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_SRXFIFOTRG_SET = 1 , } impl From < INT_EVENT0_IMASK_SRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_SRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_SRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_SRXFIFOTRG_A { match self . bits { false => INT_EVENT0_IMASK_SRXFIFOTRG_A :: INT_EVENT0_IMASK_SRXFIFOTRG_CLR , true => INT_EVENT0_IMASK_SRXFIFOTRG_A :: INT_EVENT0_IMASK_SRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_srxfifotrg_clr (& self) -> bool { * self == INT_EVENT0_IMASK_SRXFIFOTRG_A :: INT_EVENT0_IMASK_SRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_srxfifotrg_set (& self) -> bool { * self == INT_EVENT0_IMASK_SRXFIFOTRG_A :: INT_EVENT0_IMASK_SRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT0_IMASK_SRXFIFOTRG` writer - Slave Receive FIFO Trigger"]
pub type INT_EVENT0_IMASK_SRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_SRXFIFOTRG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_SRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_srxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SRXFIFOTRG_A :: INT_EVENT0_IMASK_SRXFIFOTRG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_srxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SRXFIFOTRG_A :: INT_EVENT0_IMASK_SRXFIFOTRG_SET) } } # [doc = "Field `INT_EVENT0_IMASK_STXFIFOTRG` reader - Slave Transmit FIFO Trigger"]
pub type INT_EVENT0_IMASK_STXFIFOTRG_R = crate :: BitReader < INT_EVENT0_IMASK_STXFIFOTRG_A > ; # [doc = "Slave Transmit FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_STXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_STXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_STXFIFOTRG_SET = 1 , } impl From < INT_EVENT0_IMASK_STXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_STXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_STXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_STXFIFOTRG_A { match self . bits { false => INT_EVENT0_IMASK_STXFIFOTRG_A :: INT_EVENT0_IMASK_STXFIFOTRG_CLR , true => INT_EVENT0_IMASK_STXFIFOTRG_A :: INT_EVENT0_IMASK_STXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_stxfifotrg_clr (& self) -> bool { * self == INT_EVENT0_IMASK_STXFIFOTRG_A :: INT_EVENT0_IMASK_STXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_stxfifotrg_set (& self) -> bool { * self == INT_EVENT0_IMASK_STXFIFOTRG_A :: INT_EVENT0_IMASK_STXFIFOTRG_SET } } # [doc = "Field `INT_EVENT0_IMASK_STXFIFOTRG` writer - Slave Transmit FIFO Trigger"]
pub type INT_EVENT0_IMASK_STXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_STXFIFOTRG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_STXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_stxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_STXFIFOTRG_A :: INT_EVENT0_IMASK_STXFIFOTRG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_stxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_STXFIFOTRG_A :: INT_EVENT0_IMASK_STXFIFOTRG_SET) } } # [doc = "Field `INT_EVENT0_IMASK_SRXFIFOFULL` reader - RXFIFO full event. This interrupt is set if an Slave RX FIFO is full."]
pub type INT_EVENT0_IMASK_SRXFIFOFULL_R = crate :: BitReader < INT_EVENT0_IMASK_SRXFIFOFULL_A > ; # [doc = "RXFIFO full event. This interrupt is set if an Slave RX FIFO is full.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_SRXFIFOFULL_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_SRXFIFOFULL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_SRXFIFOFULL_SET = 1 , } impl From < INT_EVENT0_IMASK_SRXFIFOFULL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_SRXFIFOFULL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_SRXFIFOFULL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_SRXFIFOFULL_A { match self . bits { false => INT_EVENT0_IMASK_SRXFIFOFULL_A :: INT_EVENT0_IMASK_SRXFIFOFULL_CLR , true => INT_EVENT0_IMASK_SRXFIFOFULL_A :: INT_EVENT0_IMASK_SRXFIFOFULL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_srxfifofull_clr (& self) -> bool { * self == INT_EVENT0_IMASK_SRXFIFOFULL_A :: INT_EVENT0_IMASK_SRXFIFOFULL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_srxfifofull_set (& self) -> bool { * self == INT_EVENT0_IMASK_SRXFIFOFULL_A :: INT_EVENT0_IMASK_SRXFIFOFULL_SET } } # [doc = "Field `INT_EVENT0_IMASK_SRXFIFOFULL` writer - RXFIFO full event. This interrupt is set if an Slave RX FIFO is full."]
pub type INT_EVENT0_IMASK_SRXFIFOFULL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_SRXFIFOFULL_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_SRXFIFOFULL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_srxfifofull_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SRXFIFOFULL_A :: INT_EVENT0_IMASK_SRXFIFOFULL_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_srxfifofull_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SRXFIFOFULL_A :: INT_EVENT0_IMASK_SRXFIFOFULL_SET) } } # [doc = "Field `INT_EVENT0_IMASK_STXEMPTY` reader - Slave Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
pub type INT_EVENT0_IMASK_STXEMPTY_R = crate :: BitReader < INT_EVENT0_IMASK_STXEMPTY_A > ; # [doc = "Slave Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_STXEMPTY_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_STXEMPTY_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_STXEMPTY_SET = 1 , } impl From < INT_EVENT0_IMASK_STXEMPTY_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_STXEMPTY_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_STXEMPTY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_STXEMPTY_A { match self . bits { false => INT_EVENT0_IMASK_STXEMPTY_A :: INT_EVENT0_IMASK_STXEMPTY_CLR , true => INT_EVENT0_IMASK_STXEMPTY_A :: INT_EVENT0_IMASK_STXEMPTY_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_stxempty_clr (& self) -> bool { * self == INT_EVENT0_IMASK_STXEMPTY_A :: INT_EVENT0_IMASK_STXEMPTY_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_stxempty_set (& self) -> bool { * self == INT_EVENT0_IMASK_STXEMPTY_A :: INT_EVENT0_IMASK_STXEMPTY_SET } } # [doc = "Field `INT_EVENT0_IMASK_STXEMPTY` writer - Slave Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
pub type INT_EVENT0_IMASK_STXEMPTY_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_STXEMPTY_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_STXEMPTY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_stxempty_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_STXEMPTY_A :: INT_EVENT0_IMASK_STXEMPTY_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_stxempty_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_STXEMPTY_A :: INT_EVENT0_IMASK_STXEMPTY_SET) } } # [doc = "Field `INT_EVENT0_IMASK_SSTART` reader - Start Condition Interrupt"]
pub type INT_EVENT0_IMASK_SSTART_R = crate :: BitReader < INT_EVENT0_IMASK_SSTART_A > ; # [doc = "Start Condition Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_SSTART_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_SSTART_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_SSTART_SET = 1 , } impl From < INT_EVENT0_IMASK_SSTART_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_SSTART_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_SSTART_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_SSTART_A { match self . bits { false => INT_EVENT0_IMASK_SSTART_A :: INT_EVENT0_IMASK_SSTART_CLR , true => INT_EVENT0_IMASK_SSTART_A :: INT_EVENT0_IMASK_SSTART_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_sstart_clr (& self) -> bool { * self == INT_EVENT0_IMASK_SSTART_A :: INT_EVENT0_IMASK_SSTART_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_sstart_set (& self) -> bool { * self == INT_EVENT0_IMASK_SSTART_A :: INT_EVENT0_IMASK_SSTART_SET } } # [doc = "Field `INT_EVENT0_IMASK_SSTART` writer - Start Condition Interrupt"]
pub type INT_EVENT0_IMASK_SSTART_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_SSTART_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_SSTART_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_sstart_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SSTART_A :: INT_EVENT0_IMASK_SSTART_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_sstart_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SSTART_A :: INT_EVENT0_IMASK_SSTART_SET) } } # [doc = "Field `INT_EVENT0_IMASK_SSTOP` reader - Stop Condition Interrupt"]
pub type INT_EVENT0_IMASK_SSTOP_R = crate :: BitReader < INT_EVENT0_IMASK_SSTOP_A > ; # [doc = "Stop Condition Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_SSTOP_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_SSTOP_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_SSTOP_SET = 1 , } impl From < INT_EVENT0_IMASK_SSTOP_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_SSTOP_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_SSTOP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_SSTOP_A { match self . bits { false => INT_EVENT0_IMASK_SSTOP_A :: INT_EVENT0_IMASK_SSTOP_CLR , true => INT_EVENT0_IMASK_SSTOP_A :: INT_EVENT0_IMASK_SSTOP_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_sstop_clr (& self) -> bool { * self == INT_EVENT0_IMASK_SSTOP_A :: INT_EVENT0_IMASK_SSTOP_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_sstop_set (& self) -> bool { * self == INT_EVENT0_IMASK_SSTOP_A :: INT_EVENT0_IMASK_SSTOP_SET } } # [doc = "Field `INT_EVENT0_IMASK_SSTOP` writer - Stop Condition Interrupt"]
pub type INT_EVENT0_IMASK_SSTOP_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_SSTOP_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_SSTOP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_sstop_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SSTOP_A :: INT_EVENT0_IMASK_SSTOP_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_sstop_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SSTOP_A :: INT_EVENT0_IMASK_SSTOP_SET) } } # [doc = "Field `INT_EVENT0_IMASK_SGENCALL` reader - General Call Interrupt"]
pub type INT_EVENT0_IMASK_SGENCALL_R = crate :: BitReader < INT_EVENT0_IMASK_SGENCALL_A > ; # [doc = "General Call Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_SGENCALL_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_SGENCALL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_SGENCALL_SET = 1 , } impl From < INT_EVENT0_IMASK_SGENCALL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_SGENCALL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_SGENCALL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_SGENCALL_A { match self . bits { false => INT_EVENT0_IMASK_SGENCALL_A :: INT_EVENT0_IMASK_SGENCALL_CLR , true => INT_EVENT0_IMASK_SGENCALL_A :: INT_EVENT0_IMASK_SGENCALL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_sgencall_clr (& self) -> bool { * self == INT_EVENT0_IMASK_SGENCALL_A :: INT_EVENT0_IMASK_SGENCALL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_sgencall_set (& self) -> bool { * self == INT_EVENT0_IMASK_SGENCALL_A :: INT_EVENT0_IMASK_SGENCALL_SET } } # [doc = "Field `INT_EVENT0_IMASK_SGENCALL` writer - General Call Interrupt"]
pub type INT_EVENT0_IMASK_SGENCALL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_SGENCALL_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_SGENCALL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_sgencall_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SGENCALL_A :: INT_EVENT0_IMASK_SGENCALL_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_sgencall_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SGENCALL_A :: INT_EVENT0_IMASK_SGENCALL_SET) } } # [doc = "Field `INT_EVENT0_IMASK_SDMA_DONE1_2` reader - Slave DMA Done 1 on Event Channel 2"]
pub type INT_EVENT0_IMASK_SDMA_DONE1_2_R = crate :: BitReader < INT_EVENT0_IMASK_SDMA_DONE1_2_A > ; # [doc = "Slave DMA Done 1 on Event Channel 2\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_SDMA_DONE1_2_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_SDMA_DONE1_2_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_SDMA_DONE1_2_SET = 1 , } impl From < INT_EVENT0_IMASK_SDMA_DONE1_2_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_SDMA_DONE1_2_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_SDMA_DONE1_2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_SDMA_DONE1_2_A { match self . bits { false => INT_EVENT0_IMASK_SDMA_DONE1_2_A :: INT_EVENT0_IMASK_SDMA_DONE1_2_CLR , true => INT_EVENT0_IMASK_SDMA_DONE1_2_A :: INT_EVENT0_IMASK_SDMA_DONE1_2_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_sdma_done1_2_clr (& self) -> bool { * self == INT_EVENT0_IMASK_SDMA_DONE1_2_A :: INT_EVENT0_IMASK_SDMA_DONE1_2_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_sdma_done1_2_set (& self) -> bool { * self == INT_EVENT0_IMASK_SDMA_DONE1_2_A :: INT_EVENT0_IMASK_SDMA_DONE1_2_SET } } # [doc = "Field `INT_EVENT0_IMASK_SDMA_DONE1_2` writer - Slave DMA Done 1 on Event Channel 2"]
pub type INT_EVENT0_IMASK_SDMA_DONE1_2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_SDMA_DONE1_2_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_SDMA_DONE1_2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_sdma_done1_2_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SDMA_DONE1_2_A :: INT_EVENT0_IMASK_SDMA_DONE1_2_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_sdma_done1_2_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SDMA_DONE1_2_A :: INT_EVENT0_IMASK_SDMA_DONE1_2_SET) } } # [doc = "Field `INT_EVENT0_IMASK_SDMA_DONE1_3` reader - Slave DMA Done 1 on Event Channel 3"]
pub type INT_EVENT0_IMASK_SDMA_DONE1_3_R = crate :: BitReader < INT_EVENT0_IMASK_SDMA_DONE1_3_A > ; # [doc = "Slave DMA Done 1 on Event Channel 3\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_SDMA_DONE1_3_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_SDMA_DONE1_3_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_SDMA_DONE1_3_SET = 1 , } impl From < INT_EVENT0_IMASK_SDMA_DONE1_3_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_SDMA_DONE1_3_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_SDMA_DONE1_3_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_SDMA_DONE1_3_A { match self . bits { false => INT_EVENT0_IMASK_SDMA_DONE1_3_A :: INT_EVENT0_IMASK_SDMA_DONE1_3_CLR , true => INT_EVENT0_IMASK_SDMA_DONE1_3_A :: INT_EVENT0_IMASK_SDMA_DONE1_3_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_sdma_done1_3_clr (& self) -> bool { * self == INT_EVENT0_IMASK_SDMA_DONE1_3_A :: INT_EVENT0_IMASK_SDMA_DONE1_3_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_sdma_done1_3_set (& self) -> bool { * self == INT_EVENT0_IMASK_SDMA_DONE1_3_A :: INT_EVENT0_IMASK_SDMA_DONE1_3_SET } } # [doc = "Field `INT_EVENT0_IMASK_SDMA_DONE1_3` writer - Slave DMA Done 1 on Event Channel 3"]
pub type INT_EVENT0_IMASK_SDMA_DONE1_3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_SDMA_DONE1_3_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_SDMA_DONE1_3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_sdma_done1_3_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SDMA_DONE1_3_A :: INT_EVENT0_IMASK_SDMA_DONE1_3_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_sdma_done1_3_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SDMA_DONE1_3_A :: INT_EVENT0_IMASK_SDMA_DONE1_3_SET) } } # [doc = "Field `INT_EVENT0_IMASK_SPEC_RX_ERR` reader - Slave RX Pec Error Interrupt"]
pub type INT_EVENT0_IMASK_SPEC_RX_ERR_R = crate :: BitReader < INT_EVENT0_IMASK_SPEC_RX_ERR_A > ; # [doc = "Slave RX Pec Error Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_SPEC_RX_ERR_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_SPEC_RX_ERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_SPEC_RX_ERR_SET = 1 , } impl From < INT_EVENT0_IMASK_SPEC_RX_ERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_SPEC_RX_ERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_SPEC_RX_ERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_SPEC_RX_ERR_A { match self . bits { false => INT_EVENT0_IMASK_SPEC_RX_ERR_A :: INT_EVENT0_IMASK_SPEC_RX_ERR_CLR , true => INT_EVENT0_IMASK_SPEC_RX_ERR_A :: INT_EVENT0_IMASK_SPEC_RX_ERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_spec_rx_err_clr (& self) -> bool { * self == INT_EVENT0_IMASK_SPEC_RX_ERR_A :: INT_EVENT0_IMASK_SPEC_RX_ERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_spec_rx_err_set (& self) -> bool { * self == INT_EVENT0_IMASK_SPEC_RX_ERR_A :: INT_EVENT0_IMASK_SPEC_RX_ERR_SET } } # [doc = "Field `INT_EVENT0_IMASK_SPEC_RX_ERR` writer - Slave RX Pec Error Interrupt"]
pub type INT_EVENT0_IMASK_SPEC_RX_ERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_SPEC_RX_ERR_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_SPEC_RX_ERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_spec_rx_err_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SPEC_RX_ERR_A :: INT_EVENT0_IMASK_SPEC_RX_ERR_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_spec_rx_err_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SPEC_RX_ERR_A :: INT_EVENT0_IMASK_SPEC_RX_ERR_SET) } } # [doc = "Field `INT_EVENT0_IMASK_STX_UNFL` reader - Slave TX FIFO underflow"]
pub type INT_EVENT0_IMASK_STX_UNFL_R = crate :: BitReader < INT_EVENT0_IMASK_STX_UNFL_A > ; # [doc = "Slave TX FIFO underflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_STX_UNFL_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_STX_UNFL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_STX_UNFL_SET = 1 , } impl From < INT_EVENT0_IMASK_STX_UNFL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_STX_UNFL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_STX_UNFL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_STX_UNFL_A { match self . bits { false => INT_EVENT0_IMASK_STX_UNFL_A :: INT_EVENT0_IMASK_STX_UNFL_CLR , true => INT_EVENT0_IMASK_STX_UNFL_A :: INT_EVENT0_IMASK_STX_UNFL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_stx_unfl_clr (& self) -> bool { * self == INT_EVENT0_IMASK_STX_UNFL_A :: INT_EVENT0_IMASK_STX_UNFL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_stx_unfl_set (& self) -> bool { * self == INT_EVENT0_IMASK_STX_UNFL_A :: INT_EVENT0_IMASK_STX_UNFL_SET } } # [doc = "Field `INT_EVENT0_IMASK_STX_UNFL` writer - Slave TX FIFO underflow"]
pub type INT_EVENT0_IMASK_STX_UNFL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_STX_UNFL_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_STX_UNFL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_stx_unfl_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_STX_UNFL_A :: INT_EVENT0_IMASK_STX_UNFL_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_stx_unfl_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_STX_UNFL_A :: INT_EVENT0_IMASK_STX_UNFL_SET) } } # [doc = "Field `INT_EVENT0_IMASK_SRX_OVFL` reader - Slave RX FIFO overflow"]
pub type INT_EVENT0_IMASK_SRX_OVFL_R = crate :: BitReader < INT_EVENT0_IMASK_SRX_OVFL_A > ; # [doc = "Slave RX FIFO overflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_SRX_OVFL_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_SRX_OVFL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_SRX_OVFL_SET = 1 , } impl From < INT_EVENT0_IMASK_SRX_OVFL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_SRX_OVFL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_SRX_OVFL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_SRX_OVFL_A { match self . bits { false => INT_EVENT0_IMASK_SRX_OVFL_A :: INT_EVENT0_IMASK_SRX_OVFL_CLR , true => INT_EVENT0_IMASK_SRX_OVFL_A :: INT_EVENT0_IMASK_SRX_OVFL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_srx_ovfl_clr (& self) -> bool { * self == INT_EVENT0_IMASK_SRX_OVFL_A :: INT_EVENT0_IMASK_SRX_OVFL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_srx_ovfl_set (& self) -> bool { * self == INT_EVENT0_IMASK_SRX_OVFL_A :: INT_EVENT0_IMASK_SRX_OVFL_SET } } # [doc = "Field `INT_EVENT0_IMASK_SRX_OVFL` writer - Slave RX FIFO overflow"]
pub type INT_EVENT0_IMASK_SRX_OVFL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_SRX_OVFL_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_SRX_OVFL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_srx_ovfl_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SRX_OVFL_A :: INT_EVENT0_IMASK_SRX_OVFL_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_srx_ovfl_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SRX_OVFL_A :: INT_EVENT0_IMASK_SRX_OVFL_SET) } } # [doc = "Field `INT_EVENT0_IMASK_SARBLOST` reader - Slave Arbitration Lost"]
pub type INT_EVENT0_IMASK_SARBLOST_R = crate :: BitReader < INT_EVENT0_IMASK_SARBLOST_A > ; # [doc = "Slave Arbitration Lost\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_SARBLOST_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_SARBLOST_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_SARBLOST_SET = 1 , } impl From < INT_EVENT0_IMASK_SARBLOST_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_SARBLOST_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_SARBLOST_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_SARBLOST_A { match self . bits { false => INT_EVENT0_IMASK_SARBLOST_A :: INT_EVENT0_IMASK_SARBLOST_CLR , true => INT_EVENT0_IMASK_SARBLOST_A :: INT_EVENT0_IMASK_SARBLOST_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_sarblost_clr (& self) -> bool { * self == INT_EVENT0_IMASK_SARBLOST_A :: INT_EVENT0_IMASK_SARBLOST_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_sarblost_set (& self) -> bool { * self == INT_EVENT0_IMASK_SARBLOST_A :: INT_EVENT0_IMASK_SARBLOST_SET } } # [doc = "Field `INT_EVENT0_IMASK_SARBLOST` writer - Slave Arbitration Lost"]
pub type INT_EVENT0_IMASK_SARBLOST_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_SARBLOST_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_SARBLOST_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_sarblost_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SARBLOST_A :: INT_EVENT0_IMASK_SARBLOST_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_sarblost_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SARBLOST_A :: INT_EVENT0_IMASK_SARBLOST_SET) } } # [doc = "Field `INT_EVENT0_IMASK_INTR_OVFL` reader - Interrupt Overflow Interrupt Mask"]
pub type INT_EVENT0_IMASK_INTR_OVFL_R = crate :: BitReader < INT_EVENT0_IMASK_INTR_OVFL_A > ; # [doc = "Interrupt Overflow Interrupt Mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_INTR_OVFL_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_INTR_OVFL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_INTR_OVFL_SET = 1 , } impl From < INT_EVENT0_IMASK_INTR_OVFL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_INTR_OVFL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_INTR_OVFL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_INTR_OVFL_A { match self . bits { false => INT_EVENT0_IMASK_INTR_OVFL_A :: INT_EVENT0_IMASK_INTR_OVFL_CLR , true => INT_EVENT0_IMASK_INTR_OVFL_A :: INT_EVENT0_IMASK_INTR_OVFL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_intr_ovfl_clr (& self) -> bool { * self == INT_EVENT0_IMASK_INTR_OVFL_A :: INT_EVENT0_IMASK_INTR_OVFL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_intr_ovfl_set (& self) -> bool { * self == INT_EVENT0_IMASK_INTR_OVFL_A :: INT_EVENT0_IMASK_INTR_OVFL_SET } } # [doc = "Field `INT_EVENT0_IMASK_INTR_OVFL` writer - Interrupt Overflow Interrupt Mask"]
pub type INT_EVENT0_IMASK_INTR_OVFL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_INTR_OVFL_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_INTR_OVFL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_intr_ovfl_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_INTR_OVFL_A :: INT_EVENT0_IMASK_INTR_OVFL_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_intr_ovfl_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_INTR_OVFL_A :: INT_EVENT0_IMASK_INTR_OVFL_SET) } } impl R { # [doc = "Bit 0 - Master Receive Transaction completed Interrupt"]
# [inline (always)]
pub fn int_event0_imask_mrxdone (& self) -> INT_EVENT0_IMASK_MRXDONE_R { INT_EVENT0_IMASK_MRXDONE_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Master Transmit Transaction completed Interrupt"]
# [inline (always)]
pub fn int_event0_imask_mtxdone (& self) -> INT_EVENT0_IMASK_MTXDONE_R { INT_EVENT0_IMASK_MTXDONE_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
pub fn int_event0_imask_mrxfifotrg (& self) -> INT_EVENT0_IMASK_MRXFIFOTRG_R { INT_EVENT0_IMASK_MRXFIFOTRG_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
pub fn int_event0_imask_mtxfifotrg (& self) -> INT_EVENT0_IMASK_MTXFIFOTRG_R { INT_EVENT0_IMASK_MTXFIFOTRG_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - RXFIFO full event. This interrupt is set if an RX FIFO is full."]
# [inline (always)]
pub fn int_event0_imask_mrxfifofull (& self) -> INT_EVENT0_IMASK_MRXFIFOFULL_R { INT_EVENT0_IMASK_MRXFIFOFULL_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
# [inline (always)]
pub fn int_event0_imask_mtxempty (& self) -> INT_EVENT0_IMASK_MTXEMPTY_R { INT_EVENT0_IMASK_MTXEMPTY_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 7 - Address/Data NACK Interrupt"]
# [inline (always)]
pub fn int_event0_imask_mnack (& self) -> INT_EVENT0_IMASK_MNACK_R { INT_EVENT0_IMASK_MNACK_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - START Detection Interrupt"]
# [inline (always)]
pub fn int_event0_imask_mstart (& self) -> INT_EVENT0_IMASK_MSTART_R { INT_EVENT0_IMASK_MSTART_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - STOP Detection Interrupt"]
# [inline (always)]
pub fn int_event0_imask_mstop (& self) -> INT_EVENT0_IMASK_MSTOP_R { INT_EVENT0_IMASK_MSTOP_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - Arbitration Lost Interrupt"]
# [inline (always)]
pub fn int_event0_imask_marblost (& self) -> INT_EVENT0_IMASK_MARBLOST_R { INT_EVENT0_IMASK_MARBLOST_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bit 11 - DMA Done 1 on Event Channel 2"]
# [inline (always)]
pub fn int_event0_imask_mdma_done1_2 (& self) -> INT_EVENT0_IMASK_MDMA_DONE1_2_R { INT_EVENT0_IMASK_MDMA_DONE1_2_R :: new (((self . bits >> 11) & 1) != 0) } # [doc = "Bit 12 - DMA Done 1 on Event Channel 3"]
# [inline (always)]
pub fn int_event0_imask_mdma_done1_3 (& self) -> INT_EVENT0_IMASK_MDMA_DONE1_3_R { INT_EVENT0_IMASK_MDMA_DONE1_3_R :: new (((self . bits >> 12) & 1) != 0) } # [doc = "Bit 13 - Master RX Pec Error Interrupt"]
# [inline (always)]
pub fn int_event0_imask_mpec_rx_err (& self) -> INT_EVENT0_IMASK_MPEC_RX_ERR_R { INT_EVENT0_IMASK_MPEC_RX_ERR_R :: new (((self . bits >> 13) & 1) != 0) } # [doc = "Bit 14 - Timeout A Interrupt"]
# [inline (always)]
pub fn int_event0_imask_timeouta (& self) -> INT_EVENT0_IMASK_TIMEOUTA_R { INT_EVENT0_IMASK_TIMEOUTA_R :: new (((self . bits >> 14) & 1) != 0) } # [doc = "Bit 15 - Timeout B Interrupt"]
# [inline (always)]
pub fn int_event0_imask_timeoutb (& self) -> INT_EVENT0_IMASK_TIMEOUTB_R { INT_EVENT0_IMASK_TIMEOUTB_R :: new (((self . bits >> 15) & 1) != 0) } # [doc = "Bit 16 - Slave Receive Data Interrupt Signals that a byte has been received"]
# [inline (always)]
pub fn int_event0_imask_srxdone (& self) -> INT_EVENT0_IMASK_SRXDONE_R { INT_EVENT0_IMASK_SRXDONE_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 17 - Slave Transmit Transaction completed Interrupt"]
# [inline (always)]
pub fn int_event0_imask_stxdone (& self) -> INT_EVENT0_IMASK_STXDONE_R { INT_EVENT0_IMASK_STXDONE_R :: new (((self . bits >> 17) & 1) != 0) } # [doc = "Bit 18 - Slave Receive FIFO Trigger"]
# [inline (always)]
pub fn int_event0_imask_srxfifotrg (& self) -> INT_EVENT0_IMASK_SRXFIFOTRG_R { INT_EVENT0_IMASK_SRXFIFOTRG_R :: new (((self . bits >> 18) & 1) != 0) } # [doc = "Bit 19 - Slave Transmit FIFO Trigger"]
# [inline (always)]
pub fn int_event0_imask_stxfifotrg (& self) -> INT_EVENT0_IMASK_STXFIFOTRG_R { INT_EVENT0_IMASK_STXFIFOTRG_R :: new (((self . bits >> 19) & 1) != 0) } # [doc = "Bit 20 - RXFIFO full event. This interrupt is set if an Slave RX FIFO is full."]
# [inline (always)]
pub fn int_event0_imask_srxfifofull (& self) -> INT_EVENT0_IMASK_SRXFIFOFULL_R { INT_EVENT0_IMASK_SRXFIFOFULL_R :: new (((self . bits >> 20) & 1) != 0) } # [doc = "Bit 21 - Slave Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
# [inline (always)]
pub fn int_event0_imask_stxempty (& self) -> INT_EVENT0_IMASK_STXEMPTY_R { INT_EVENT0_IMASK_STXEMPTY_R :: new (((self . bits >> 21) & 1) != 0) } # [doc = "Bit 22 - Start Condition Interrupt"]
# [inline (always)]
pub fn int_event0_imask_sstart (& self) -> INT_EVENT0_IMASK_SSTART_R { INT_EVENT0_IMASK_SSTART_R :: new (((self . bits >> 22) & 1) != 0) } # [doc = "Bit 23 - Stop Condition Interrupt"]
# [inline (always)]
pub fn int_event0_imask_sstop (& self) -> INT_EVENT0_IMASK_SSTOP_R { INT_EVENT0_IMASK_SSTOP_R :: new (((self . bits >> 23) & 1) != 0) } # [doc = "Bit 24 - General Call Interrupt"]
# [inline (always)]
pub fn int_event0_imask_sgencall (& self) -> INT_EVENT0_IMASK_SGENCALL_R { INT_EVENT0_IMASK_SGENCALL_R :: new (((self . bits >> 24) & 1) != 0) } # [doc = "Bit 25 - Slave DMA Done 1 on Event Channel 2"]
# [inline (always)]
pub fn int_event0_imask_sdma_done1_2 (& self) -> INT_EVENT0_IMASK_SDMA_DONE1_2_R { INT_EVENT0_IMASK_SDMA_DONE1_2_R :: new (((self . bits >> 25) & 1) != 0) } # [doc = "Bit 26 - Slave DMA Done 1 on Event Channel 3"]
# [inline (always)]
pub fn int_event0_imask_sdma_done1_3 (& self) -> INT_EVENT0_IMASK_SDMA_DONE1_3_R { INT_EVENT0_IMASK_SDMA_DONE1_3_R :: new (((self . bits >> 26) & 1) != 0) } # [doc = "Bit 27 - Slave RX Pec Error Interrupt"]
# [inline (always)]
pub fn int_event0_imask_spec_rx_err (& self) -> INT_EVENT0_IMASK_SPEC_RX_ERR_R { INT_EVENT0_IMASK_SPEC_RX_ERR_R :: new (((self . bits >> 27) & 1) != 0) } # [doc = "Bit 28 - Slave TX FIFO underflow"]
# [inline (always)]
pub fn int_event0_imask_stx_unfl (& self) -> INT_EVENT0_IMASK_STX_UNFL_R { INT_EVENT0_IMASK_STX_UNFL_R :: new (((self . bits >> 28) & 1) != 0) } # [doc = "Bit 29 - Slave RX FIFO overflow"]
# [inline (always)]
pub fn int_event0_imask_srx_ovfl (& self) -> INT_EVENT0_IMASK_SRX_OVFL_R { INT_EVENT0_IMASK_SRX_OVFL_R :: new (((self . bits >> 29) & 1) != 0) } # [doc = "Bit 30 - Slave Arbitration Lost"]
# [inline (always)]
pub fn int_event0_imask_sarblost (& self) -> INT_EVENT0_IMASK_SARBLOST_R { INT_EVENT0_IMASK_SARBLOST_R :: new (((self . bits >> 30) & 1) != 0) } # [doc = "Bit 31 - Interrupt Overflow Interrupt Mask"]
# [inline (always)]
pub fn int_event0_imask_intr_ovfl (& self) -> INT_EVENT0_IMASK_INTR_OVFL_R { INT_EVENT0_IMASK_INTR_OVFL_R :: new (((self . bits >> 31) & 1) != 0) } } impl W { # [doc = "Bit 0 - Master Receive Transaction completed Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_mrxdone (& mut self) -> INT_EVENT0_IMASK_MRXDONE_W < INT_EVENT0_IMASK_SPEC , 0 > { INT_EVENT0_IMASK_MRXDONE_W :: new (self) } # [doc = "Bit 1 - Master Transmit Transaction completed Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_mtxdone (& mut self) -> INT_EVENT0_IMASK_MTXDONE_W < INT_EVENT0_IMASK_SPEC , 1 > { INT_EVENT0_IMASK_MTXDONE_W :: new (self) } # [doc = "Bit 2 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_mrxfifotrg (& mut self) -> INT_EVENT0_IMASK_MRXFIFOTRG_W < INT_EVENT0_IMASK_SPEC , 2 > { INT_EVENT0_IMASK_MRXFIFOTRG_W :: new (self) } # [doc = "Bit 3 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_mtxfifotrg (& mut self) -> INT_EVENT0_IMASK_MTXFIFOTRG_W < INT_EVENT0_IMASK_SPEC , 3 > { INT_EVENT0_IMASK_MTXFIFOTRG_W :: new (self) } # [doc = "Bit 4 - RXFIFO full event. This interrupt is set if an RX FIFO is full."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_mrxfifofull (& mut self) -> INT_EVENT0_IMASK_MRXFIFOFULL_W < INT_EVENT0_IMASK_SPEC , 4 > { INT_EVENT0_IMASK_MRXFIFOFULL_W :: new (self) } # [doc = "Bit 5 - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_mtxempty (& mut self) -> INT_EVENT0_IMASK_MTXEMPTY_W < INT_EVENT0_IMASK_SPEC , 5 > { INT_EVENT0_IMASK_MTXEMPTY_W :: new (self) } # [doc = "Bit 7 - Address/Data NACK Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_mnack (& mut self) -> INT_EVENT0_IMASK_MNACK_W < INT_EVENT0_IMASK_SPEC , 7 > { INT_EVENT0_IMASK_MNACK_W :: new (self) } # [doc = "Bit 8 - START Detection Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_mstart (& mut self) -> INT_EVENT0_IMASK_MSTART_W < INT_EVENT0_IMASK_SPEC , 8 > { INT_EVENT0_IMASK_MSTART_W :: new (self) } # [doc = "Bit 9 - STOP Detection Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_mstop (& mut self) -> INT_EVENT0_IMASK_MSTOP_W < INT_EVENT0_IMASK_SPEC , 9 > { INT_EVENT0_IMASK_MSTOP_W :: new (self) } # [doc = "Bit 10 - Arbitration Lost Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_marblost (& mut self) -> INT_EVENT0_IMASK_MARBLOST_W < INT_EVENT0_IMASK_SPEC , 10 > { INT_EVENT0_IMASK_MARBLOST_W :: new (self) } # [doc = "Bit 11 - DMA Done 1 on Event Channel 2"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_mdma_done1_2 (& mut self) -> INT_EVENT0_IMASK_MDMA_DONE1_2_W < INT_EVENT0_IMASK_SPEC , 11 > { INT_EVENT0_IMASK_MDMA_DONE1_2_W :: new (self) } # [doc = "Bit 12 - DMA Done 1 on Event Channel 3"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_mdma_done1_3 (& mut self) -> INT_EVENT0_IMASK_MDMA_DONE1_3_W < INT_EVENT0_IMASK_SPEC , 12 > { INT_EVENT0_IMASK_MDMA_DONE1_3_W :: new (self) } # [doc = "Bit 13 - Master RX Pec Error Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_mpec_rx_err (& mut self) -> INT_EVENT0_IMASK_MPEC_RX_ERR_W < INT_EVENT0_IMASK_SPEC , 13 > { INT_EVENT0_IMASK_MPEC_RX_ERR_W :: new (self) } # [doc = "Bit 14 - Timeout A Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_timeouta (& mut self) -> INT_EVENT0_IMASK_TIMEOUTA_W < INT_EVENT0_IMASK_SPEC , 14 > { INT_EVENT0_IMASK_TIMEOUTA_W :: new (self) } # [doc = "Bit 15 - Timeout B Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_timeoutb (& mut self) -> INT_EVENT0_IMASK_TIMEOUTB_W < INT_EVENT0_IMASK_SPEC , 15 > { INT_EVENT0_IMASK_TIMEOUTB_W :: new (self) } # [doc = "Bit 16 - Slave Receive Data Interrupt Signals that a byte has been received"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_srxdone (& mut self) -> INT_EVENT0_IMASK_SRXDONE_W < INT_EVENT0_IMASK_SPEC , 16 > { INT_EVENT0_IMASK_SRXDONE_W :: new (self) } # [doc = "Bit 17 - Slave Transmit Transaction completed Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_stxdone (& mut self) -> INT_EVENT0_IMASK_STXDONE_W < INT_EVENT0_IMASK_SPEC , 17 > { INT_EVENT0_IMASK_STXDONE_W :: new (self) } # [doc = "Bit 18 - Slave Receive FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_srxfifotrg (& mut self) -> INT_EVENT0_IMASK_SRXFIFOTRG_W < INT_EVENT0_IMASK_SPEC , 18 > { INT_EVENT0_IMASK_SRXFIFOTRG_W :: new (self) } # [doc = "Bit 19 - Slave Transmit FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_stxfifotrg (& mut self) -> INT_EVENT0_IMASK_STXFIFOTRG_W < INT_EVENT0_IMASK_SPEC , 19 > { INT_EVENT0_IMASK_STXFIFOTRG_W :: new (self) } # [doc = "Bit 20 - RXFIFO full event. This interrupt is set if an Slave RX FIFO is full."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_srxfifofull (& mut self) -> INT_EVENT0_IMASK_SRXFIFOFULL_W < INT_EVENT0_IMASK_SPEC , 20 > { INT_EVENT0_IMASK_SRXFIFOFULL_W :: new (self) } # [doc = "Bit 21 - Slave Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_stxempty (& mut self) -> INT_EVENT0_IMASK_STXEMPTY_W < INT_EVENT0_IMASK_SPEC , 21 > { INT_EVENT0_IMASK_STXEMPTY_W :: new (self) } # [doc = "Bit 22 - Start Condition Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_sstart (& mut self) -> INT_EVENT0_IMASK_SSTART_W < INT_EVENT0_IMASK_SPEC , 22 > { INT_EVENT0_IMASK_SSTART_W :: new (self) } # [doc = "Bit 23 - Stop Condition Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_sstop (& mut self) -> INT_EVENT0_IMASK_SSTOP_W < INT_EVENT0_IMASK_SPEC , 23 > { INT_EVENT0_IMASK_SSTOP_W :: new (self) } # [doc = "Bit 24 - General Call Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_sgencall (& mut self) -> INT_EVENT0_IMASK_SGENCALL_W < INT_EVENT0_IMASK_SPEC , 24 > { INT_EVENT0_IMASK_SGENCALL_W :: new (self) } # [doc = "Bit 25 - Slave DMA Done 1 on Event Channel 2"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_sdma_done1_2 (& mut self) -> INT_EVENT0_IMASK_SDMA_DONE1_2_W < INT_EVENT0_IMASK_SPEC , 25 > { INT_EVENT0_IMASK_SDMA_DONE1_2_W :: new (self) } # [doc = "Bit 26 - Slave DMA Done 1 on Event Channel 3"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_sdma_done1_3 (& mut self) -> INT_EVENT0_IMASK_SDMA_DONE1_3_W < INT_EVENT0_IMASK_SPEC , 26 > { INT_EVENT0_IMASK_SDMA_DONE1_3_W :: new (self) } # [doc = "Bit 27 - Slave RX Pec Error Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_spec_rx_err (& mut self) -> INT_EVENT0_IMASK_SPEC_RX_ERR_W < INT_EVENT0_IMASK_SPEC , 27 > { INT_EVENT0_IMASK_SPEC_RX_ERR_W :: new (self) } # [doc = "Bit 28 - Slave TX FIFO underflow"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_stx_unfl (& mut self) -> INT_EVENT0_IMASK_STX_UNFL_W < INT_EVENT0_IMASK_SPEC , 28 > { INT_EVENT0_IMASK_STX_UNFL_W :: new (self) } # [doc = "Bit 29 - Slave RX FIFO overflow"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_srx_ovfl (& mut self) -> INT_EVENT0_IMASK_SRX_OVFL_W < INT_EVENT0_IMASK_SPEC , 29 > { INT_EVENT0_IMASK_SRX_OVFL_W :: new (self) } # [doc = "Bit 30 - Slave Arbitration Lost"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_sarblost (& mut self) -> INT_EVENT0_IMASK_SARBLOST_W < INT_EVENT0_IMASK_SPEC , 30 > { INT_EVENT0_IMASK_SARBLOST_W :: new (self) } # [doc = "Bit 31 - Interrupt Overflow Interrupt Mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_intr_ovfl (& mut self) -> INT_EVENT0_IMASK_INTR_OVFL_W < INT_EVENT0_IMASK_SPEC , 31 > { INT_EVENT0_IMASK_INTR_OVFL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_imask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_imask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_IMASK_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event0_imask::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT0_IMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`int_event0_imask::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT0_IMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT0_IMASK to value 0"]
impl crate :: Resettable for INT_EVENT0_IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_RIS (r) register accessor: Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_ris`]
module"]
pub type INT_EVENT0_RIS = crate :: Reg < int_event0_ris :: INT_EVENT0_RIS_SPEC > ; # [doc = "Raw interrupt status"]
pub mod int_event0_ris { # [doc = "Register `INT_EVENT0_RIS` reader"]
pub type R = crate :: R < INT_EVENT0_RIS_SPEC > ; # [doc = "Field `INT_EVENT0_RIS_MRXDONE` reader - Master Receive Transaction completed Interrupt"]
pub type INT_EVENT0_RIS_MRXDONE_R = crate :: BitReader < INT_EVENT0_RIS_MRXDONE_A > ; # [doc = "Master Receive Transaction completed Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_MRXDONE_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_MRXDONE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_MRXDONE_SET = 1 , } impl From < INT_EVENT0_RIS_MRXDONE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_MRXDONE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_MRXDONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_MRXDONE_A { match self . bits { false => INT_EVENT0_RIS_MRXDONE_A :: INT_EVENT0_RIS_MRXDONE_CLR , true => INT_EVENT0_RIS_MRXDONE_A :: INT_EVENT0_RIS_MRXDONE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_mrxdone_clr (& self) -> bool { * self == INT_EVENT0_RIS_MRXDONE_A :: INT_EVENT0_RIS_MRXDONE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_mrxdone_set (& self) -> bool { * self == INT_EVENT0_RIS_MRXDONE_A :: INT_EVENT0_RIS_MRXDONE_SET } } # [doc = "Field `INT_EVENT0_RIS_MTXDONE` reader - Master Transmit Transaction completed Interrupt"]
pub type INT_EVENT0_RIS_MTXDONE_R = crate :: BitReader < INT_EVENT0_RIS_MTXDONE_A > ; # [doc = "Master Transmit Transaction completed Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_MTXDONE_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_MTXDONE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_MTXDONE_SET = 1 , } impl From < INT_EVENT0_RIS_MTXDONE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_MTXDONE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_MTXDONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_MTXDONE_A { match self . bits { false => INT_EVENT0_RIS_MTXDONE_A :: INT_EVENT0_RIS_MTXDONE_CLR , true => INT_EVENT0_RIS_MTXDONE_A :: INT_EVENT0_RIS_MTXDONE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_mtxdone_clr (& self) -> bool { * self == INT_EVENT0_RIS_MTXDONE_A :: INT_EVENT0_RIS_MTXDONE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_mtxdone_set (& self) -> bool { * self == INT_EVENT0_RIS_MTXDONE_A :: INT_EVENT0_RIS_MTXDONE_SET } } # [doc = "Field `INT_EVENT0_RIS_MRXFIFOTRG` reader - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT0_RIS_MRXFIFOTRG_R = crate :: BitReader < INT_EVENT0_RIS_MRXFIFOTRG_A > ; # [doc = "Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_MRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_MRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_MRXFIFOTRG_SET = 1 , } impl From < INT_EVENT0_RIS_MRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_MRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_MRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_MRXFIFOTRG_A { match self . bits { false => INT_EVENT0_RIS_MRXFIFOTRG_A :: INT_EVENT0_RIS_MRXFIFOTRG_CLR , true => INT_EVENT0_RIS_MRXFIFOTRG_A :: INT_EVENT0_RIS_MRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_mrxfifotrg_clr (& self) -> bool { * self == INT_EVENT0_RIS_MRXFIFOTRG_A :: INT_EVENT0_RIS_MRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_mrxfifotrg_set (& self) -> bool { * self == INT_EVENT0_RIS_MRXFIFOTRG_A :: INT_EVENT0_RIS_MRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT0_RIS_MTXFIFOTRG` reader - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT0_RIS_MTXFIFOTRG_R = crate :: BitReader < INT_EVENT0_RIS_MTXFIFOTRG_A > ; # [doc = "Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_MTXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_MTXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_MTXFIFOTRG_SET = 1 , } impl From < INT_EVENT0_RIS_MTXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_MTXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_MTXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_MTXFIFOTRG_A { match self . bits { false => INT_EVENT0_RIS_MTXFIFOTRG_A :: INT_EVENT0_RIS_MTXFIFOTRG_CLR , true => INT_EVENT0_RIS_MTXFIFOTRG_A :: INT_EVENT0_RIS_MTXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_mtxfifotrg_clr (& self) -> bool { * self == INT_EVENT0_RIS_MTXFIFOTRG_A :: INT_EVENT0_RIS_MTXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_mtxfifotrg_set (& self) -> bool { * self == INT_EVENT0_RIS_MTXFIFOTRG_A :: INT_EVENT0_RIS_MTXFIFOTRG_SET } } # [doc = "Field `INT_EVENT0_RIS_MRXFIFOFULL` reader - RXFIFO full event. This interrupt is set if an RX FIFO is full."]
pub type INT_EVENT0_RIS_MRXFIFOFULL_R = crate :: BitReader < INT_EVENT0_RIS_MRXFIFOFULL_A > ; # [doc = "RXFIFO full event. This interrupt is set if an RX FIFO is full.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_MRXFIFOFULL_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_MRXFIFOFULL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_MRXFIFOFULL_SET = 1 , } impl From < INT_EVENT0_RIS_MRXFIFOFULL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_MRXFIFOFULL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_MRXFIFOFULL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_MRXFIFOFULL_A { match self . bits { false => INT_EVENT0_RIS_MRXFIFOFULL_A :: INT_EVENT0_RIS_MRXFIFOFULL_CLR , true => INT_EVENT0_RIS_MRXFIFOFULL_A :: INT_EVENT0_RIS_MRXFIFOFULL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_mrxfifofull_clr (& self) -> bool { * self == INT_EVENT0_RIS_MRXFIFOFULL_A :: INT_EVENT0_RIS_MRXFIFOFULL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_mrxfifofull_set (& self) -> bool { * self == INT_EVENT0_RIS_MRXFIFOFULL_A :: INT_EVENT0_RIS_MRXFIFOFULL_SET } } # [doc = "Field `INT_EVENT0_RIS_MTXEMPTY` reader - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
pub type INT_EVENT0_RIS_MTXEMPTY_R = crate :: BitReader < INT_EVENT0_RIS_MTXEMPTY_A > ; # [doc = "Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_MTXEMPTY_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_MTXEMPTY_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_MTXEMPTY_SET = 1 , } impl From < INT_EVENT0_RIS_MTXEMPTY_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_MTXEMPTY_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_MTXEMPTY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_MTXEMPTY_A { match self . bits { false => INT_EVENT0_RIS_MTXEMPTY_A :: INT_EVENT0_RIS_MTXEMPTY_CLR , true => INT_EVENT0_RIS_MTXEMPTY_A :: INT_EVENT0_RIS_MTXEMPTY_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_mtxempty_clr (& self) -> bool { * self == INT_EVENT0_RIS_MTXEMPTY_A :: INT_EVENT0_RIS_MTXEMPTY_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_mtxempty_set (& self) -> bool { * self == INT_EVENT0_RIS_MTXEMPTY_A :: INT_EVENT0_RIS_MTXEMPTY_SET } } # [doc = "Field `INT_EVENT0_RIS_MNACK` reader - Address/Data NACK Interrupt"]
pub type INT_EVENT0_RIS_MNACK_R = crate :: BitReader < INT_EVENT0_RIS_MNACK_A > ; # [doc = "Address/Data NACK Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_MNACK_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_MNACK_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_MNACK_SET = 1 , } impl From < INT_EVENT0_RIS_MNACK_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_MNACK_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_MNACK_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_MNACK_A { match self . bits { false => INT_EVENT0_RIS_MNACK_A :: INT_EVENT0_RIS_MNACK_CLR , true => INT_EVENT0_RIS_MNACK_A :: INT_EVENT0_RIS_MNACK_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_mnack_clr (& self) -> bool { * self == INT_EVENT0_RIS_MNACK_A :: INT_EVENT0_RIS_MNACK_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_mnack_set (& self) -> bool { * self == INT_EVENT0_RIS_MNACK_A :: INT_EVENT0_RIS_MNACK_SET } } # [doc = "Field `INT_EVENT0_RIS_MSTART` reader - START Detection Interrupt"]
pub type INT_EVENT0_RIS_MSTART_R = crate :: BitReader < INT_EVENT0_RIS_MSTART_A > ; # [doc = "START Detection Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_MSTART_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_MSTART_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_MSTART_SET = 1 , } impl From < INT_EVENT0_RIS_MSTART_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_MSTART_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_MSTART_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_MSTART_A { match self . bits { false => INT_EVENT0_RIS_MSTART_A :: INT_EVENT0_RIS_MSTART_CLR , true => INT_EVENT0_RIS_MSTART_A :: INT_EVENT0_RIS_MSTART_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_mstart_clr (& self) -> bool { * self == INT_EVENT0_RIS_MSTART_A :: INT_EVENT0_RIS_MSTART_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_mstart_set (& self) -> bool { * self == INT_EVENT0_RIS_MSTART_A :: INT_EVENT0_RIS_MSTART_SET } } # [doc = "Field `INT_EVENT0_RIS_MSTOP` reader - STOP Detection Interrupt"]
pub type INT_EVENT0_RIS_MSTOP_R = crate :: BitReader < INT_EVENT0_RIS_MSTOP_A > ; # [doc = "STOP Detection Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_MSTOP_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_MSTOP_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_MSTOP_SET = 1 , } impl From < INT_EVENT0_RIS_MSTOP_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_MSTOP_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_MSTOP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_MSTOP_A { match self . bits { false => INT_EVENT0_RIS_MSTOP_A :: INT_EVENT0_RIS_MSTOP_CLR , true => INT_EVENT0_RIS_MSTOP_A :: INT_EVENT0_RIS_MSTOP_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_mstop_clr (& self) -> bool { * self == INT_EVENT0_RIS_MSTOP_A :: INT_EVENT0_RIS_MSTOP_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_mstop_set (& self) -> bool { * self == INT_EVENT0_RIS_MSTOP_A :: INT_EVENT0_RIS_MSTOP_SET } } # [doc = "Field `INT_EVENT0_RIS_MARBLOST` reader - Arbitration Lost Interrupt"]
pub type INT_EVENT0_RIS_MARBLOST_R = crate :: BitReader < INT_EVENT0_RIS_MARBLOST_A > ; # [doc = "Arbitration Lost Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_MARBLOST_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_MARBLOST_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_MARBLOST_SET = 1 , } impl From < INT_EVENT0_RIS_MARBLOST_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_MARBLOST_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_MARBLOST_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_MARBLOST_A { match self . bits { false => INT_EVENT0_RIS_MARBLOST_A :: INT_EVENT0_RIS_MARBLOST_CLR , true => INT_EVENT0_RIS_MARBLOST_A :: INT_EVENT0_RIS_MARBLOST_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_marblost_clr (& self) -> bool { * self == INT_EVENT0_RIS_MARBLOST_A :: INT_EVENT0_RIS_MARBLOST_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_marblost_set (& self) -> bool { * self == INT_EVENT0_RIS_MARBLOST_A :: INT_EVENT0_RIS_MARBLOST_SET } } # [doc = "Field `INT_EVENT0_RIS_MDMA_DONE1_2` reader - DMA Done 1 on Event Channel 2"]
pub type INT_EVENT0_RIS_MDMA_DONE1_2_R = crate :: BitReader < INT_EVENT0_RIS_MDMA_DONE1_2_A > ; # [doc = "DMA Done 1 on Event Channel 2\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_MDMA_DONE1_2_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_MDMA_DONE1_2_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_MDMA_DONE1_2_SET = 1 , } impl From < INT_EVENT0_RIS_MDMA_DONE1_2_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_MDMA_DONE1_2_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_MDMA_DONE1_2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_MDMA_DONE1_2_A { match self . bits { false => INT_EVENT0_RIS_MDMA_DONE1_2_A :: INT_EVENT0_RIS_MDMA_DONE1_2_CLR , true => INT_EVENT0_RIS_MDMA_DONE1_2_A :: INT_EVENT0_RIS_MDMA_DONE1_2_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_mdma_done1_2_clr (& self) -> bool { * self == INT_EVENT0_RIS_MDMA_DONE1_2_A :: INT_EVENT0_RIS_MDMA_DONE1_2_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_mdma_done1_2_set (& self) -> bool { * self == INT_EVENT0_RIS_MDMA_DONE1_2_A :: INT_EVENT0_RIS_MDMA_DONE1_2_SET } } # [doc = "Field `INT_EVENT0_RIS_MDMA_DONE1_3` reader - DMA Done 1 on Event Channel 3"]
pub type INT_EVENT0_RIS_MDMA_DONE1_3_R = crate :: BitReader < INT_EVENT0_RIS_MDMA_DONE1_3_A > ; # [doc = "DMA Done 1 on Event Channel 3\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_MDMA_DONE1_3_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_MDMA_DONE1_3_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_MDMA_DONE1_3_SET = 1 , } impl From < INT_EVENT0_RIS_MDMA_DONE1_3_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_MDMA_DONE1_3_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_MDMA_DONE1_3_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_MDMA_DONE1_3_A { match self . bits { false => INT_EVENT0_RIS_MDMA_DONE1_3_A :: INT_EVENT0_RIS_MDMA_DONE1_3_CLR , true => INT_EVENT0_RIS_MDMA_DONE1_3_A :: INT_EVENT0_RIS_MDMA_DONE1_3_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_mdma_done1_3_clr (& self) -> bool { * self == INT_EVENT0_RIS_MDMA_DONE1_3_A :: INT_EVENT0_RIS_MDMA_DONE1_3_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_mdma_done1_3_set (& self) -> bool { * self == INT_EVENT0_RIS_MDMA_DONE1_3_A :: INT_EVENT0_RIS_MDMA_DONE1_3_SET } } # [doc = "Field `INT_EVENT0_RIS_MPEC_RX_ERR` reader - Master RX Pec Error Interrupt"]
pub type INT_EVENT0_RIS_MPEC_RX_ERR_R = crate :: BitReader < INT_EVENT0_RIS_MPEC_RX_ERR_A > ; # [doc = "Master RX Pec Error Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_MPEC_RX_ERR_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_MPEC_RX_ERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_MPEC_RX_ERR_SET = 1 , } impl From < INT_EVENT0_RIS_MPEC_RX_ERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_MPEC_RX_ERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_MPEC_RX_ERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_MPEC_RX_ERR_A { match self . bits { false => INT_EVENT0_RIS_MPEC_RX_ERR_A :: INT_EVENT0_RIS_MPEC_RX_ERR_CLR , true => INT_EVENT0_RIS_MPEC_RX_ERR_A :: INT_EVENT0_RIS_MPEC_RX_ERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_mpec_rx_err_clr (& self) -> bool { * self == INT_EVENT0_RIS_MPEC_RX_ERR_A :: INT_EVENT0_RIS_MPEC_RX_ERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_mpec_rx_err_set (& self) -> bool { * self == INT_EVENT0_RIS_MPEC_RX_ERR_A :: INT_EVENT0_RIS_MPEC_RX_ERR_SET } } # [doc = "Field `INT_EVENT0_RIS_TIMEOUTA` reader - Timeout A Interrupt"]
pub type INT_EVENT0_RIS_TIMEOUTA_R = crate :: BitReader < INT_EVENT0_RIS_TIMEOUTA_A > ; # [doc = "Timeout A Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_TIMEOUTA_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_TIMEOUTA_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_TIMEOUTA_SET = 1 , } impl From < INT_EVENT0_RIS_TIMEOUTA_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_TIMEOUTA_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_TIMEOUTA_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_TIMEOUTA_A { match self . bits { false => INT_EVENT0_RIS_TIMEOUTA_A :: INT_EVENT0_RIS_TIMEOUTA_CLR , true => INT_EVENT0_RIS_TIMEOUTA_A :: INT_EVENT0_RIS_TIMEOUTA_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_timeouta_clr (& self) -> bool { * self == INT_EVENT0_RIS_TIMEOUTA_A :: INT_EVENT0_RIS_TIMEOUTA_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_timeouta_set (& self) -> bool { * self == INT_EVENT0_RIS_TIMEOUTA_A :: INT_EVENT0_RIS_TIMEOUTA_SET } } # [doc = "Field `INT_EVENT0_RIS_TIMEOUTB` reader - Timeout B Interrupt"]
pub type INT_EVENT0_RIS_TIMEOUTB_R = crate :: BitReader < INT_EVENT0_RIS_TIMEOUTB_A > ; # [doc = "Timeout B Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_TIMEOUTB_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_TIMEOUTB_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_TIMEOUTB_SET = 1 , } impl From < INT_EVENT0_RIS_TIMEOUTB_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_TIMEOUTB_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_TIMEOUTB_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_TIMEOUTB_A { match self . bits { false => INT_EVENT0_RIS_TIMEOUTB_A :: INT_EVENT0_RIS_TIMEOUTB_CLR , true => INT_EVENT0_RIS_TIMEOUTB_A :: INT_EVENT0_RIS_TIMEOUTB_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_timeoutb_clr (& self) -> bool { * self == INT_EVENT0_RIS_TIMEOUTB_A :: INT_EVENT0_RIS_TIMEOUTB_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_timeoutb_set (& self) -> bool { * self == INT_EVENT0_RIS_TIMEOUTB_A :: INT_EVENT0_RIS_TIMEOUTB_SET } } # [doc = "Field `INT_EVENT0_RIS_SRXDONE` reader - Slave Receive Data Interrupt Signals that a byte has been received"]
pub type INT_EVENT0_RIS_SRXDONE_R = crate :: BitReader < INT_EVENT0_RIS_SRXDONE_A > ; # [doc = "Slave Receive Data Interrupt Signals that a byte has been received\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_SRXDONE_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_SRXDONE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_SRXDONE_SET = 1 , } impl From < INT_EVENT0_RIS_SRXDONE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_SRXDONE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_SRXDONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_SRXDONE_A { match self . bits { false => INT_EVENT0_RIS_SRXDONE_A :: INT_EVENT0_RIS_SRXDONE_CLR , true => INT_EVENT0_RIS_SRXDONE_A :: INT_EVENT0_RIS_SRXDONE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_srxdone_clr (& self) -> bool { * self == INT_EVENT0_RIS_SRXDONE_A :: INT_EVENT0_RIS_SRXDONE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_srxdone_set (& self) -> bool { * self == INT_EVENT0_RIS_SRXDONE_A :: INT_EVENT0_RIS_SRXDONE_SET } } # [doc = "Field `INT_EVENT0_RIS_STXDONE` reader - Slave Transmit Transaction completed Interrupt"]
pub type INT_EVENT0_RIS_STXDONE_R = crate :: BitReader < INT_EVENT0_RIS_STXDONE_A > ; # [doc = "Slave Transmit Transaction completed Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_STXDONE_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_STXDONE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_STXDONE_SET = 1 , } impl From < INT_EVENT0_RIS_STXDONE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_STXDONE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_STXDONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_STXDONE_A { match self . bits { false => INT_EVENT0_RIS_STXDONE_A :: INT_EVENT0_RIS_STXDONE_CLR , true => INT_EVENT0_RIS_STXDONE_A :: INT_EVENT0_RIS_STXDONE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_stxdone_clr (& self) -> bool { * self == INT_EVENT0_RIS_STXDONE_A :: INT_EVENT0_RIS_STXDONE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_stxdone_set (& self) -> bool { * self == INT_EVENT0_RIS_STXDONE_A :: INT_EVENT0_RIS_STXDONE_SET } } # [doc = "Field `INT_EVENT0_RIS_SRXFIFOTRG` reader - Slave Receive FIFO Trigger"]
pub type INT_EVENT0_RIS_SRXFIFOTRG_R = crate :: BitReader < INT_EVENT0_RIS_SRXFIFOTRG_A > ; # [doc = "Slave Receive FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_SRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_SRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_SRXFIFOTRG_SET = 1 , } impl From < INT_EVENT0_RIS_SRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_SRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_SRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_SRXFIFOTRG_A { match self . bits { false => INT_EVENT0_RIS_SRXFIFOTRG_A :: INT_EVENT0_RIS_SRXFIFOTRG_CLR , true => INT_EVENT0_RIS_SRXFIFOTRG_A :: INT_EVENT0_RIS_SRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_srxfifotrg_clr (& self) -> bool { * self == INT_EVENT0_RIS_SRXFIFOTRG_A :: INT_EVENT0_RIS_SRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_srxfifotrg_set (& self) -> bool { * self == INT_EVENT0_RIS_SRXFIFOTRG_A :: INT_EVENT0_RIS_SRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT0_RIS_STXFIFOTRG` reader - Slave Transmit FIFO Trigger"]
pub type INT_EVENT0_RIS_STXFIFOTRG_R = crate :: BitReader < INT_EVENT0_RIS_STXFIFOTRG_A > ; # [doc = "Slave Transmit FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_STXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_STXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_STXFIFOTRG_SET = 1 , } impl From < INT_EVENT0_RIS_STXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_STXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_STXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_STXFIFOTRG_A { match self . bits { false => INT_EVENT0_RIS_STXFIFOTRG_A :: INT_EVENT0_RIS_STXFIFOTRG_CLR , true => INT_EVENT0_RIS_STXFIFOTRG_A :: INT_EVENT0_RIS_STXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_stxfifotrg_clr (& self) -> bool { * self == INT_EVENT0_RIS_STXFIFOTRG_A :: INT_EVENT0_RIS_STXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_stxfifotrg_set (& self) -> bool { * self == INT_EVENT0_RIS_STXFIFOTRG_A :: INT_EVENT0_RIS_STXFIFOTRG_SET } } # [doc = "Field `INT_EVENT0_RIS_SRXFIFOFULL` reader - RXFIFO full event. This interrupt is set if an RX FIFO is full."]
pub type INT_EVENT0_RIS_SRXFIFOFULL_R = crate :: BitReader < INT_EVENT0_RIS_SRXFIFOFULL_A > ; # [doc = "RXFIFO full event. This interrupt is set if an RX FIFO is full.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_SRXFIFOFULL_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_SRXFIFOFULL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_SRXFIFOFULL_SET = 1 , } impl From < INT_EVENT0_RIS_SRXFIFOFULL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_SRXFIFOFULL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_SRXFIFOFULL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_SRXFIFOFULL_A { match self . bits { false => INT_EVENT0_RIS_SRXFIFOFULL_A :: INT_EVENT0_RIS_SRXFIFOFULL_CLR , true => INT_EVENT0_RIS_SRXFIFOFULL_A :: INT_EVENT0_RIS_SRXFIFOFULL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_srxfifofull_clr (& self) -> bool { * self == INT_EVENT0_RIS_SRXFIFOFULL_A :: INT_EVENT0_RIS_SRXFIFOFULL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_srxfifofull_set (& self) -> bool { * self == INT_EVENT0_RIS_SRXFIFOFULL_A :: INT_EVENT0_RIS_SRXFIFOFULL_SET } } # [doc = "Field `INT_EVENT0_RIS_STXEMPTY` reader - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
pub type INT_EVENT0_RIS_STXEMPTY_R = crate :: BitReader < INT_EVENT0_RIS_STXEMPTY_A > ; # [doc = "Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_STXEMPTY_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_STXEMPTY_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_STXEMPTY_SET = 1 , } impl From < INT_EVENT0_RIS_STXEMPTY_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_STXEMPTY_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_STXEMPTY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_STXEMPTY_A { match self . bits { false => INT_EVENT0_RIS_STXEMPTY_A :: INT_EVENT0_RIS_STXEMPTY_CLR , true => INT_EVENT0_RIS_STXEMPTY_A :: INT_EVENT0_RIS_STXEMPTY_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_stxempty_clr (& self) -> bool { * self == INT_EVENT0_RIS_STXEMPTY_A :: INT_EVENT0_RIS_STXEMPTY_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_stxempty_set (& self) -> bool { * self == INT_EVENT0_RIS_STXEMPTY_A :: INT_EVENT0_RIS_STXEMPTY_SET } } # [doc = "Field `INT_EVENT0_RIS_SSTART` reader - Start Condition Interrupt"]
pub type INT_EVENT0_RIS_SSTART_R = crate :: BitReader < INT_EVENT0_RIS_SSTART_A > ; # [doc = "Start Condition Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_SSTART_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_SSTART_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_SSTART_SET = 1 , } impl From < INT_EVENT0_RIS_SSTART_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_SSTART_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_SSTART_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_SSTART_A { match self . bits { false => INT_EVENT0_RIS_SSTART_A :: INT_EVENT0_RIS_SSTART_CLR , true => INT_EVENT0_RIS_SSTART_A :: INT_EVENT0_RIS_SSTART_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_sstart_clr (& self) -> bool { * self == INT_EVENT0_RIS_SSTART_A :: INT_EVENT0_RIS_SSTART_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_sstart_set (& self) -> bool { * self == INT_EVENT0_RIS_SSTART_A :: INT_EVENT0_RIS_SSTART_SET } } # [doc = "Field `INT_EVENT0_RIS_SSTOP` reader - Stop Condition Interrupt"]
pub type INT_EVENT0_RIS_SSTOP_R = crate :: BitReader < INT_EVENT0_RIS_SSTOP_A > ; # [doc = "Stop Condition Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_SSTOP_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_SSTOP_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_SSTOP_SET = 1 , } impl From < INT_EVENT0_RIS_SSTOP_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_SSTOP_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_SSTOP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_SSTOP_A { match self . bits { false => INT_EVENT0_RIS_SSTOP_A :: INT_EVENT0_RIS_SSTOP_CLR , true => INT_EVENT0_RIS_SSTOP_A :: INT_EVENT0_RIS_SSTOP_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_sstop_clr (& self) -> bool { * self == INT_EVENT0_RIS_SSTOP_A :: INT_EVENT0_RIS_SSTOP_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_sstop_set (& self) -> bool { * self == INT_EVENT0_RIS_SSTOP_A :: INT_EVENT0_RIS_SSTOP_SET } } # [doc = "Field `INT_EVENT0_RIS_SGENCALL` reader - General Call Interrupt"]
pub type INT_EVENT0_RIS_SGENCALL_R = crate :: BitReader < INT_EVENT0_RIS_SGENCALL_A > ; # [doc = "General Call Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_SGENCALL_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_SGENCALL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_SGENCALL_SET = 1 , } impl From < INT_EVENT0_RIS_SGENCALL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_SGENCALL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_SGENCALL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_SGENCALL_A { match self . bits { false => INT_EVENT0_RIS_SGENCALL_A :: INT_EVENT0_RIS_SGENCALL_CLR , true => INT_EVENT0_RIS_SGENCALL_A :: INT_EVENT0_RIS_SGENCALL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_sgencall_clr (& self) -> bool { * self == INT_EVENT0_RIS_SGENCALL_A :: INT_EVENT0_RIS_SGENCALL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_sgencall_set (& self) -> bool { * self == INT_EVENT0_RIS_SGENCALL_A :: INT_EVENT0_RIS_SGENCALL_SET } } # [doc = "Field `INT_EVENT0_RIS_SDMA_DONE1_2` reader - DMA Done 1 on Event Channel 2"]
pub type INT_EVENT0_RIS_SDMA_DONE1_2_R = crate :: BitReader < INT_EVENT0_RIS_SDMA_DONE1_2_A > ; # [doc = "DMA Done 1 on Event Channel 2\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_SDMA_DONE1_2_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_SDMA_DONE1_2_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_SDMA_DONE1_2_SET = 1 , } impl From < INT_EVENT0_RIS_SDMA_DONE1_2_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_SDMA_DONE1_2_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_SDMA_DONE1_2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_SDMA_DONE1_2_A { match self . bits { false => INT_EVENT0_RIS_SDMA_DONE1_2_A :: INT_EVENT0_RIS_SDMA_DONE1_2_CLR , true => INT_EVENT0_RIS_SDMA_DONE1_2_A :: INT_EVENT0_RIS_SDMA_DONE1_2_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_sdma_done1_2_clr (& self) -> bool { * self == INT_EVENT0_RIS_SDMA_DONE1_2_A :: INT_EVENT0_RIS_SDMA_DONE1_2_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_sdma_done1_2_set (& self) -> bool { * self == INT_EVENT0_RIS_SDMA_DONE1_2_A :: INT_EVENT0_RIS_SDMA_DONE1_2_SET } } # [doc = "Field `INT_EVENT0_RIS_SDMA_DONE1_3` reader - DMA Done 1 on Event Channel 3"]
pub type INT_EVENT0_RIS_SDMA_DONE1_3_R = crate :: BitReader < INT_EVENT0_RIS_SDMA_DONE1_3_A > ; # [doc = "DMA Done 1 on Event Channel 3\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_SDMA_DONE1_3_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_SDMA_DONE1_3_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_SDMA_DONE1_3_SET = 1 , } impl From < INT_EVENT0_RIS_SDMA_DONE1_3_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_SDMA_DONE1_3_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_SDMA_DONE1_3_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_SDMA_DONE1_3_A { match self . bits { false => INT_EVENT0_RIS_SDMA_DONE1_3_A :: INT_EVENT0_RIS_SDMA_DONE1_3_CLR , true => INT_EVENT0_RIS_SDMA_DONE1_3_A :: INT_EVENT0_RIS_SDMA_DONE1_3_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_sdma_done1_3_clr (& self) -> bool { * self == INT_EVENT0_RIS_SDMA_DONE1_3_A :: INT_EVENT0_RIS_SDMA_DONE1_3_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_sdma_done1_3_set (& self) -> bool { * self == INT_EVENT0_RIS_SDMA_DONE1_3_A :: INT_EVENT0_RIS_SDMA_DONE1_3_SET } } # [doc = "Field `INT_EVENT0_RIS_SPEC_RX_ERR` reader - Slave RX Pec Error Interrupt"]
pub type INT_EVENT0_RIS_SPEC_RX_ERR_R = crate :: BitReader < INT_EVENT0_RIS_SPEC_RX_ERR_A > ; # [doc = "Slave RX Pec Error Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_SPEC_RX_ERR_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_SPEC_RX_ERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_SPEC_RX_ERR_SET = 1 , } impl From < INT_EVENT0_RIS_SPEC_RX_ERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_SPEC_RX_ERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_SPEC_RX_ERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_SPEC_RX_ERR_A { match self . bits { false => INT_EVENT0_RIS_SPEC_RX_ERR_A :: INT_EVENT0_RIS_SPEC_RX_ERR_CLR , true => INT_EVENT0_RIS_SPEC_RX_ERR_A :: INT_EVENT0_RIS_SPEC_RX_ERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_spec_rx_err_clr (& self) -> bool { * self == INT_EVENT0_RIS_SPEC_RX_ERR_A :: INT_EVENT0_RIS_SPEC_RX_ERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_spec_rx_err_set (& self) -> bool { * self == INT_EVENT0_RIS_SPEC_RX_ERR_A :: INT_EVENT0_RIS_SPEC_RX_ERR_SET } } # [doc = "Field `INT_EVENT0_RIS_STX_UNFL` reader - Slave TX FIFO underflow"]
pub type INT_EVENT0_RIS_STX_UNFL_R = crate :: BitReader < INT_EVENT0_RIS_STX_UNFL_A > ; # [doc = "Slave TX FIFO underflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_STX_UNFL_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_STX_UNFL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_STX_UNFL_SET = 1 , } impl From < INT_EVENT0_RIS_STX_UNFL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_STX_UNFL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_STX_UNFL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_STX_UNFL_A { match self . bits { false => INT_EVENT0_RIS_STX_UNFL_A :: INT_EVENT0_RIS_STX_UNFL_CLR , true => INT_EVENT0_RIS_STX_UNFL_A :: INT_EVENT0_RIS_STX_UNFL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_stx_unfl_clr (& self) -> bool { * self == INT_EVENT0_RIS_STX_UNFL_A :: INT_EVENT0_RIS_STX_UNFL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_stx_unfl_set (& self) -> bool { * self == INT_EVENT0_RIS_STX_UNFL_A :: INT_EVENT0_RIS_STX_UNFL_SET } } # [doc = "Field `INT_EVENT0_RIS_SRX_OVFL` reader - Slave RX FIFO overflow"]
pub type INT_EVENT0_RIS_SRX_OVFL_R = crate :: BitReader < INT_EVENT0_RIS_SRX_OVFL_A > ; # [doc = "Slave RX FIFO overflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_SRX_OVFL_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_SRX_OVFL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_SRX_OVFL_SET = 1 , } impl From < INT_EVENT0_RIS_SRX_OVFL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_SRX_OVFL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_SRX_OVFL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_SRX_OVFL_A { match self . bits { false => INT_EVENT0_RIS_SRX_OVFL_A :: INT_EVENT0_RIS_SRX_OVFL_CLR , true => INT_EVENT0_RIS_SRX_OVFL_A :: INT_EVENT0_RIS_SRX_OVFL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_srx_ovfl_clr (& self) -> bool { * self == INT_EVENT0_RIS_SRX_OVFL_A :: INT_EVENT0_RIS_SRX_OVFL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_srx_ovfl_set (& self) -> bool { * self == INT_EVENT0_RIS_SRX_OVFL_A :: INT_EVENT0_RIS_SRX_OVFL_SET } } # [doc = "Field `INT_EVENT0_RIS_SARBLOST` reader - Slave Arbitration Lost"]
pub type INT_EVENT0_RIS_SARBLOST_R = crate :: BitReader < INT_EVENT0_RIS_SARBLOST_A > ; # [doc = "Slave Arbitration Lost\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_SARBLOST_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_SARBLOST_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_SARBLOST_SET = 1 , } impl From < INT_EVENT0_RIS_SARBLOST_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_SARBLOST_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_SARBLOST_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_SARBLOST_A { match self . bits { false => INT_EVENT0_RIS_SARBLOST_A :: INT_EVENT0_RIS_SARBLOST_CLR , true => INT_EVENT0_RIS_SARBLOST_A :: INT_EVENT0_RIS_SARBLOST_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_sarblost_clr (& self) -> bool { * self == INT_EVENT0_RIS_SARBLOST_A :: INT_EVENT0_RIS_SARBLOST_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_sarblost_set (& self) -> bool { * self == INT_EVENT0_RIS_SARBLOST_A :: INT_EVENT0_RIS_SARBLOST_SET } } # [doc = "Field `INT_EVENT0_RIS_INTR_OVFL` reader - Interrupt overflow interrupt It is set when SSTART or SSTOP interrupts overflow i.e. occur twice without being serviced"]
pub type INT_EVENT0_RIS_INTR_OVFL_R = crate :: BitReader < INT_EVENT0_RIS_INTR_OVFL_A > ; # [doc = "Interrupt overflow interrupt It is set when SSTART or SSTOP interrupts overflow i.e. occur twice without being serviced\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_INTR_OVFL_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_INTR_OVFL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_INTR_OVFL_SET = 1 , } impl From < INT_EVENT0_RIS_INTR_OVFL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_INTR_OVFL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_INTR_OVFL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_INTR_OVFL_A { match self . bits { false => INT_EVENT0_RIS_INTR_OVFL_A :: INT_EVENT0_RIS_INTR_OVFL_CLR , true => INT_EVENT0_RIS_INTR_OVFL_A :: INT_EVENT0_RIS_INTR_OVFL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_intr_ovfl_clr (& self) -> bool { * self == INT_EVENT0_RIS_INTR_OVFL_A :: INT_EVENT0_RIS_INTR_OVFL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_intr_ovfl_set (& self) -> bool { * self == INT_EVENT0_RIS_INTR_OVFL_A :: INT_EVENT0_RIS_INTR_OVFL_SET } } impl R { # [doc = "Bit 0 - Master Receive Transaction completed Interrupt"]
# [inline (always)]
pub fn int_event0_ris_mrxdone (& self) -> INT_EVENT0_RIS_MRXDONE_R { INT_EVENT0_RIS_MRXDONE_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Master Transmit Transaction completed Interrupt"]
# [inline (always)]
pub fn int_event0_ris_mtxdone (& self) -> INT_EVENT0_RIS_MTXDONE_R { INT_EVENT0_RIS_MTXDONE_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
pub fn int_event0_ris_mrxfifotrg (& self) -> INT_EVENT0_RIS_MRXFIFOTRG_R { INT_EVENT0_RIS_MRXFIFOTRG_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
pub fn int_event0_ris_mtxfifotrg (& self) -> INT_EVENT0_RIS_MTXFIFOTRG_R { INT_EVENT0_RIS_MTXFIFOTRG_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - RXFIFO full event. This interrupt is set if an RX FIFO is full."]
# [inline (always)]
pub fn int_event0_ris_mrxfifofull (& self) -> INT_EVENT0_RIS_MRXFIFOFULL_R { INT_EVENT0_RIS_MRXFIFOFULL_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
# [inline (always)]
pub fn int_event0_ris_mtxempty (& self) -> INT_EVENT0_RIS_MTXEMPTY_R { INT_EVENT0_RIS_MTXEMPTY_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 7 - Address/Data NACK Interrupt"]
# [inline (always)]
pub fn int_event0_ris_mnack (& self) -> INT_EVENT0_RIS_MNACK_R { INT_EVENT0_RIS_MNACK_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - START Detection Interrupt"]
# [inline (always)]
pub fn int_event0_ris_mstart (& self) -> INT_EVENT0_RIS_MSTART_R { INT_EVENT0_RIS_MSTART_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - STOP Detection Interrupt"]
# [inline (always)]
pub fn int_event0_ris_mstop (& self) -> INT_EVENT0_RIS_MSTOP_R { INT_EVENT0_RIS_MSTOP_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - Arbitration Lost Interrupt"]
# [inline (always)]
pub fn int_event0_ris_marblost (& self) -> INT_EVENT0_RIS_MARBLOST_R { INT_EVENT0_RIS_MARBLOST_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bit 11 - DMA Done 1 on Event Channel 2"]
# [inline (always)]
pub fn int_event0_ris_mdma_done1_2 (& self) -> INT_EVENT0_RIS_MDMA_DONE1_2_R { INT_EVENT0_RIS_MDMA_DONE1_2_R :: new (((self . bits >> 11) & 1) != 0) } # [doc = "Bit 12 - DMA Done 1 on Event Channel 3"]
# [inline (always)]
pub fn int_event0_ris_mdma_done1_3 (& self) -> INT_EVENT0_RIS_MDMA_DONE1_3_R { INT_EVENT0_RIS_MDMA_DONE1_3_R :: new (((self . bits >> 12) & 1) != 0) } # [doc = "Bit 13 - Master RX Pec Error Interrupt"]
# [inline (always)]
pub fn int_event0_ris_mpec_rx_err (& self) -> INT_EVENT0_RIS_MPEC_RX_ERR_R { INT_EVENT0_RIS_MPEC_RX_ERR_R :: new (((self . bits >> 13) & 1) != 0) } # [doc = "Bit 14 - Timeout A Interrupt"]
# [inline (always)]
pub fn int_event0_ris_timeouta (& self) -> INT_EVENT0_RIS_TIMEOUTA_R { INT_EVENT0_RIS_TIMEOUTA_R :: new (((self . bits >> 14) & 1) != 0) } # [doc = "Bit 15 - Timeout B Interrupt"]
# [inline (always)]
pub fn int_event0_ris_timeoutb (& self) -> INT_EVENT0_RIS_TIMEOUTB_R { INT_EVENT0_RIS_TIMEOUTB_R :: new (((self . bits >> 15) & 1) != 0) } # [doc = "Bit 16 - Slave Receive Data Interrupt Signals that a byte has been received"]
# [inline (always)]
pub fn int_event0_ris_srxdone (& self) -> INT_EVENT0_RIS_SRXDONE_R { INT_EVENT0_RIS_SRXDONE_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 17 - Slave Transmit Transaction completed Interrupt"]
# [inline (always)]
pub fn int_event0_ris_stxdone (& self) -> INT_EVENT0_RIS_STXDONE_R { INT_EVENT0_RIS_STXDONE_R :: new (((self . bits >> 17) & 1) != 0) } # [doc = "Bit 18 - Slave Receive FIFO Trigger"]
# [inline (always)]
pub fn int_event0_ris_srxfifotrg (& self) -> INT_EVENT0_RIS_SRXFIFOTRG_R { INT_EVENT0_RIS_SRXFIFOTRG_R :: new (((self . bits >> 18) & 1) != 0) } # [doc = "Bit 19 - Slave Transmit FIFO Trigger"]
# [inline (always)]
pub fn int_event0_ris_stxfifotrg (& self) -> INT_EVENT0_RIS_STXFIFOTRG_R { INT_EVENT0_RIS_STXFIFOTRG_R :: new (((self . bits >> 19) & 1) != 0) } # [doc = "Bit 20 - RXFIFO full event. This interrupt is set if an RX FIFO is full."]
# [inline (always)]
pub fn int_event0_ris_srxfifofull (& self) -> INT_EVENT0_RIS_SRXFIFOFULL_R { INT_EVENT0_RIS_SRXFIFOFULL_R :: new (((self . bits >> 20) & 1) != 0) } # [doc = "Bit 21 - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
# [inline (always)]
pub fn int_event0_ris_stxempty (& self) -> INT_EVENT0_RIS_STXEMPTY_R { INT_EVENT0_RIS_STXEMPTY_R :: new (((self . bits >> 21) & 1) != 0) } # [doc = "Bit 22 - Start Condition Interrupt"]
# [inline (always)]
pub fn int_event0_ris_sstart (& self) -> INT_EVENT0_RIS_SSTART_R { INT_EVENT0_RIS_SSTART_R :: new (((self . bits >> 22) & 1) != 0) } # [doc = "Bit 23 - Stop Condition Interrupt"]
# [inline (always)]
pub fn int_event0_ris_sstop (& self) -> INT_EVENT0_RIS_SSTOP_R { INT_EVENT0_RIS_SSTOP_R :: new (((self . bits >> 23) & 1) != 0) } # [doc = "Bit 24 - General Call Interrupt"]
# [inline (always)]
pub fn int_event0_ris_sgencall (& self) -> INT_EVENT0_RIS_SGENCALL_R { INT_EVENT0_RIS_SGENCALL_R :: new (((self . bits >> 24) & 1) != 0) } # [doc = "Bit 25 - DMA Done 1 on Event Channel 2"]
# [inline (always)]
pub fn int_event0_ris_sdma_done1_2 (& self) -> INT_EVENT0_RIS_SDMA_DONE1_2_R { INT_EVENT0_RIS_SDMA_DONE1_2_R :: new (((self . bits >> 25) & 1) != 0) } # [doc = "Bit 26 - DMA Done 1 on Event Channel 3"]
# [inline (always)]
pub fn int_event0_ris_sdma_done1_3 (& self) -> INT_EVENT0_RIS_SDMA_DONE1_3_R { INT_EVENT0_RIS_SDMA_DONE1_3_R :: new (((self . bits >> 26) & 1) != 0) } # [doc = "Bit 27 - Slave RX Pec Error Interrupt"]
# [inline (always)]
pub fn int_event0_ris_spec_rx_err (& self) -> INT_EVENT0_RIS_SPEC_RX_ERR_R { INT_EVENT0_RIS_SPEC_RX_ERR_R :: new (((self . bits >> 27) & 1) != 0) } # [doc = "Bit 28 - Slave TX FIFO underflow"]
# [inline (always)]
pub fn int_event0_ris_stx_unfl (& self) -> INT_EVENT0_RIS_STX_UNFL_R { INT_EVENT0_RIS_STX_UNFL_R :: new (((self . bits >> 28) & 1) != 0) } # [doc = "Bit 29 - Slave RX FIFO overflow"]
# [inline (always)]
pub fn int_event0_ris_srx_ovfl (& self) -> INT_EVENT0_RIS_SRX_OVFL_R { INT_EVENT0_RIS_SRX_OVFL_R :: new (((self . bits >> 29) & 1) != 0) } # [doc = "Bit 30 - Slave Arbitration Lost"]
# [inline (always)]
pub fn int_event0_ris_sarblost (& self) -> INT_EVENT0_RIS_SARBLOST_R { INT_EVENT0_RIS_SARBLOST_R :: new (((self . bits >> 30) & 1) != 0) } # [doc = "Bit 31 - Interrupt overflow interrupt It is set when SSTART or SSTOP interrupts overflow i.e. occur twice without being serviced"]
# [inline (always)]
pub fn int_event0_ris_intr_ovfl (& self) -> INT_EVENT0_RIS_INTR_OVFL_R { INT_EVENT0_RIS_INTR_OVFL_R :: new (((self . bits >> 31) & 1) != 0) } } # [doc = "Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_RIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event0_ris::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT0_RIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT0_RIS to value 0"]
impl crate :: Resettable for INT_EVENT0_RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_MIS (r) register accessor: Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_mis`]
module"]
pub type INT_EVENT0_MIS = crate :: Reg < int_event0_mis :: INT_EVENT0_MIS_SPEC > ; # [doc = "Masked interrupt status"]
pub mod int_event0_mis { # [doc = "Register `INT_EVENT0_MIS` reader"]
pub type R = crate :: R < INT_EVENT0_MIS_SPEC > ; # [doc = "Field `INT_EVENT0_MIS_MRXDONE` reader - Master Receive Data Interrupt"]
pub type INT_EVENT0_MIS_MRXDONE_R = crate :: BitReader < INT_EVENT0_MIS_MRXDONE_A > ; # [doc = "Master Receive Data Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_MRXDONE_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_MRXDONE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_MRXDONE_SET = 1 , } impl From < INT_EVENT0_MIS_MRXDONE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_MRXDONE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_MRXDONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_MRXDONE_A { match self . bits { false => INT_EVENT0_MIS_MRXDONE_A :: INT_EVENT0_MIS_MRXDONE_CLR , true => INT_EVENT0_MIS_MRXDONE_A :: INT_EVENT0_MIS_MRXDONE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_mrxdone_clr (& self) -> bool { * self == INT_EVENT0_MIS_MRXDONE_A :: INT_EVENT0_MIS_MRXDONE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_mrxdone_set (& self) -> bool { * self == INT_EVENT0_MIS_MRXDONE_A :: INT_EVENT0_MIS_MRXDONE_SET } } # [doc = "Field `INT_EVENT0_MIS_MTXDONE` reader - Master Transmit Transaction completed Interrupt"]
pub type INT_EVENT0_MIS_MTXDONE_R = crate :: BitReader < INT_EVENT0_MIS_MTXDONE_A > ; # [doc = "Master Transmit Transaction completed Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_MTXDONE_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_MTXDONE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_MTXDONE_SET = 1 , } impl From < INT_EVENT0_MIS_MTXDONE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_MTXDONE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_MTXDONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_MTXDONE_A { match self . bits { false => INT_EVENT0_MIS_MTXDONE_A :: INT_EVENT0_MIS_MTXDONE_CLR , true => INT_EVENT0_MIS_MTXDONE_A :: INT_EVENT0_MIS_MTXDONE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_mtxdone_clr (& self) -> bool { * self == INT_EVENT0_MIS_MTXDONE_A :: INT_EVENT0_MIS_MTXDONE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_mtxdone_set (& self) -> bool { * self == INT_EVENT0_MIS_MTXDONE_A :: INT_EVENT0_MIS_MTXDONE_SET } } # [doc = "Field `INT_EVENT0_MIS_MRXFIFOTRG` reader - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT0_MIS_MRXFIFOTRG_R = crate :: BitReader < INT_EVENT0_MIS_MRXFIFOTRG_A > ; # [doc = "Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_MRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_MRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_MRXFIFOTRG_SET = 1 , } impl From < INT_EVENT0_MIS_MRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_MRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_MRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_MRXFIFOTRG_A { match self . bits { false => INT_EVENT0_MIS_MRXFIFOTRG_A :: INT_EVENT0_MIS_MRXFIFOTRG_CLR , true => INT_EVENT0_MIS_MRXFIFOTRG_A :: INT_EVENT0_MIS_MRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_mrxfifotrg_clr (& self) -> bool { * self == INT_EVENT0_MIS_MRXFIFOTRG_A :: INT_EVENT0_MIS_MRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_mrxfifotrg_set (& self) -> bool { * self == INT_EVENT0_MIS_MRXFIFOTRG_A :: INT_EVENT0_MIS_MRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT0_MIS_MTXFIFOTRG` reader - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT0_MIS_MTXFIFOTRG_R = crate :: BitReader < INT_EVENT0_MIS_MTXFIFOTRG_A > ; # [doc = "Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_MTXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_MTXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_MTXFIFOTRG_SET = 1 , } impl From < INT_EVENT0_MIS_MTXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_MTXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_MTXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_MTXFIFOTRG_A { match self . bits { false => INT_EVENT0_MIS_MTXFIFOTRG_A :: INT_EVENT0_MIS_MTXFIFOTRG_CLR , true => INT_EVENT0_MIS_MTXFIFOTRG_A :: INT_EVENT0_MIS_MTXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_mtxfifotrg_clr (& self) -> bool { * self == INT_EVENT0_MIS_MTXFIFOTRG_A :: INT_EVENT0_MIS_MTXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_mtxfifotrg_set (& self) -> bool { * self == INT_EVENT0_MIS_MTXFIFOTRG_A :: INT_EVENT0_MIS_MTXFIFOTRG_SET } } # [doc = "Field `INT_EVENT0_MIS_MRXFIFOFULL` reader - RXFIFO full event. This interrupt is set if the RX FIFO is full."]
pub type INT_EVENT0_MIS_MRXFIFOFULL_R = crate :: BitReader < INT_EVENT0_MIS_MRXFIFOFULL_A > ; # [doc = "RXFIFO full event. This interrupt is set if the RX FIFO is full.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_MRXFIFOFULL_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_MRXFIFOFULL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_MRXFIFOFULL_SET = 1 , } impl From < INT_EVENT0_MIS_MRXFIFOFULL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_MRXFIFOFULL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_MRXFIFOFULL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_MRXFIFOFULL_A { match self . bits { false => INT_EVENT0_MIS_MRXFIFOFULL_A :: INT_EVENT0_MIS_MRXFIFOFULL_CLR , true => INT_EVENT0_MIS_MRXFIFOFULL_A :: INT_EVENT0_MIS_MRXFIFOFULL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_mrxfifofull_clr (& self) -> bool { * self == INT_EVENT0_MIS_MRXFIFOFULL_A :: INT_EVENT0_MIS_MRXFIFOFULL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_mrxfifofull_set (& self) -> bool { * self == INT_EVENT0_MIS_MRXFIFOFULL_A :: INT_EVENT0_MIS_MRXFIFOFULL_SET } } # [doc = "Field `INT_EVENT0_MIS_MTXEMPTY` reader - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
pub type INT_EVENT0_MIS_MTXEMPTY_R = crate :: BitReader < INT_EVENT0_MIS_MTXEMPTY_A > ; # [doc = "Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_MTXEMPTY_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_MTXEMPTY_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_MTXEMPTY_SET = 1 , } impl From < INT_EVENT0_MIS_MTXEMPTY_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_MTXEMPTY_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_MTXEMPTY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_MTXEMPTY_A { match self . bits { false => INT_EVENT0_MIS_MTXEMPTY_A :: INT_EVENT0_MIS_MTXEMPTY_CLR , true => INT_EVENT0_MIS_MTXEMPTY_A :: INT_EVENT0_MIS_MTXEMPTY_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_mtxempty_clr (& self) -> bool { * self == INT_EVENT0_MIS_MTXEMPTY_A :: INT_EVENT0_MIS_MTXEMPTY_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_mtxempty_set (& self) -> bool { * self == INT_EVENT0_MIS_MTXEMPTY_A :: INT_EVENT0_MIS_MTXEMPTY_SET } } # [doc = "Field `INT_EVENT0_MIS_MNACK` reader - Address/Data NACK Interrupt"]
pub type INT_EVENT0_MIS_MNACK_R = crate :: BitReader < INT_EVENT0_MIS_MNACK_A > ; # [doc = "Address/Data NACK Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_MNACK_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_MNACK_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_MNACK_SET = 1 , } impl From < INT_EVENT0_MIS_MNACK_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_MNACK_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_MNACK_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_MNACK_A { match self . bits { false => INT_EVENT0_MIS_MNACK_A :: INT_EVENT0_MIS_MNACK_CLR , true => INT_EVENT0_MIS_MNACK_A :: INT_EVENT0_MIS_MNACK_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_mnack_clr (& self) -> bool { * self == INT_EVENT0_MIS_MNACK_A :: INT_EVENT0_MIS_MNACK_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_mnack_set (& self) -> bool { * self == INT_EVENT0_MIS_MNACK_A :: INT_EVENT0_MIS_MNACK_SET } } # [doc = "Field `INT_EVENT0_MIS_MSTART` reader - START Detection Interrupt"]
pub type INT_EVENT0_MIS_MSTART_R = crate :: BitReader < INT_EVENT0_MIS_MSTART_A > ; # [doc = "START Detection Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_MSTART_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_MSTART_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_MSTART_SET = 1 , } impl From < INT_EVENT0_MIS_MSTART_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_MSTART_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_MSTART_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_MSTART_A { match self . bits { false => INT_EVENT0_MIS_MSTART_A :: INT_EVENT0_MIS_MSTART_CLR , true => INT_EVENT0_MIS_MSTART_A :: INT_EVENT0_MIS_MSTART_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_mstart_clr (& self) -> bool { * self == INT_EVENT0_MIS_MSTART_A :: INT_EVENT0_MIS_MSTART_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_mstart_set (& self) -> bool { * self == INT_EVENT0_MIS_MSTART_A :: INT_EVENT0_MIS_MSTART_SET } } # [doc = "Field `INT_EVENT0_MIS_MSTOP` reader - STOP Detection Interrupt"]
pub type INT_EVENT0_MIS_MSTOP_R = crate :: BitReader < INT_EVENT0_MIS_MSTOP_A > ; # [doc = "STOP Detection Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_MSTOP_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_MSTOP_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_MSTOP_SET = 1 , } impl From < INT_EVENT0_MIS_MSTOP_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_MSTOP_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_MSTOP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_MSTOP_A { match self . bits { false => INT_EVENT0_MIS_MSTOP_A :: INT_EVENT0_MIS_MSTOP_CLR , true => INT_EVENT0_MIS_MSTOP_A :: INT_EVENT0_MIS_MSTOP_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_mstop_clr (& self) -> bool { * self == INT_EVENT0_MIS_MSTOP_A :: INT_EVENT0_MIS_MSTOP_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_mstop_set (& self) -> bool { * self == INT_EVENT0_MIS_MSTOP_A :: INT_EVENT0_MIS_MSTOP_SET } } # [doc = "Field `INT_EVENT0_MIS_MARBLOST` reader - Arbitration Lost Interrupt"]
pub type INT_EVENT0_MIS_MARBLOST_R = crate :: BitReader < INT_EVENT0_MIS_MARBLOST_A > ; # [doc = "Arbitration Lost Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_MARBLOST_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_MARBLOST_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_MARBLOST_SET = 1 , } impl From < INT_EVENT0_MIS_MARBLOST_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_MARBLOST_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_MARBLOST_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_MARBLOST_A { match self . bits { false => INT_EVENT0_MIS_MARBLOST_A :: INT_EVENT0_MIS_MARBLOST_CLR , true => INT_EVENT0_MIS_MARBLOST_A :: INT_EVENT0_MIS_MARBLOST_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_marblost_clr (& self) -> bool { * self == INT_EVENT0_MIS_MARBLOST_A :: INT_EVENT0_MIS_MARBLOST_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_marblost_set (& self) -> bool { * self == INT_EVENT0_MIS_MARBLOST_A :: INT_EVENT0_MIS_MARBLOST_SET } } # [doc = "Field `INT_EVENT0_MIS_MDMA_DONE1_2` reader - DMA Done 1 on Event Channel 2"]
pub type INT_EVENT0_MIS_MDMA_DONE1_2_R = crate :: BitReader < INT_EVENT0_MIS_MDMA_DONE1_2_A > ; # [doc = "DMA Done 1 on Event Channel 2\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_MDMA_DONE1_2_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_MDMA_DONE1_2_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_MDMA_DONE1_2_SET = 1 , } impl From < INT_EVENT0_MIS_MDMA_DONE1_2_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_MDMA_DONE1_2_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_MDMA_DONE1_2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_MDMA_DONE1_2_A { match self . bits { false => INT_EVENT0_MIS_MDMA_DONE1_2_A :: INT_EVENT0_MIS_MDMA_DONE1_2_CLR , true => INT_EVENT0_MIS_MDMA_DONE1_2_A :: INT_EVENT0_MIS_MDMA_DONE1_2_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_mdma_done1_2_clr (& self) -> bool { * self == INT_EVENT0_MIS_MDMA_DONE1_2_A :: INT_EVENT0_MIS_MDMA_DONE1_2_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_mdma_done1_2_set (& self) -> bool { * self == INT_EVENT0_MIS_MDMA_DONE1_2_A :: INT_EVENT0_MIS_MDMA_DONE1_2_SET } } # [doc = "Field `INT_EVENT0_MIS_MDMA_DONE1_3` reader - DMA Done 1 on Event Channel 3"]
pub type INT_EVENT0_MIS_MDMA_DONE1_3_R = crate :: BitReader < INT_EVENT0_MIS_MDMA_DONE1_3_A > ; # [doc = "DMA Done 1 on Event Channel 3\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_MDMA_DONE1_3_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_MDMA_DONE1_3_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_MDMA_DONE1_3_SET = 1 , } impl From < INT_EVENT0_MIS_MDMA_DONE1_3_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_MDMA_DONE1_3_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_MDMA_DONE1_3_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_MDMA_DONE1_3_A { match self . bits { false => INT_EVENT0_MIS_MDMA_DONE1_3_A :: INT_EVENT0_MIS_MDMA_DONE1_3_CLR , true => INT_EVENT0_MIS_MDMA_DONE1_3_A :: INT_EVENT0_MIS_MDMA_DONE1_3_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_mdma_done1_3_clr (& self) -> bool { * self == INT_EVENT0_MIS_MDMA_DONE1_3_A :: INT_EVENT0_MIS_MDMA_DONE1_3_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_mdma_done1_3_set (& self) -> bool { * self == INT_EVENT0_MIS_MDMA_DONE1_3_A :: INT_EVENT0_MIS_MDMA_DONE1_3_SET } } # [doc = "Field `INT_EVENT0_MIS_MPEC_RX_ERR` reader - Master RX Pec Error Interrupt"]
pub type INT_EVENT0_MIS_MPEC_RX_ERR_R = crate :: BitReader < INT_EVENT0_MIS_MPEC_RX_ERR_A > ; # [doc = "Master RX Pec Error Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_MPEC_RX_ERR_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_MPEC_RX_ERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_MPEC_RX_ERR_SET = 1 , } impl From < INT_EVENT0_MIS_MPEC_RX_ERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_MPEC_RX_ERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_MPEC_RX_ERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_MPEC_RX_ERR_A { match self . bits { false => INT_EVENT0_MIS_MPEC_RX_ERR_A :: INT_EVENT0_MIS_MPEC_RX_ERR_CLR , true => INT_EVENT0_MIS_MPEC_RX_ERR_A :: INT_EVENT0_MIS_MPEC_RX_ERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_mpec_rx_err_clr (& self) -> bool { * self == INT_EVENT0_MIS_MPEC_RX_ERR_A :: INT_EVENT0_MIS_MPEC_RX_ERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_mpec_rx_err_set (& self) -> bool { * self == INT_EVENT0_MIS_MPEC_RX_ERR_A :: INT_EVENT0_MIS_MPEC_RX_ERR_SET } } # [doc = "Field `INT_EVENT0_MIS_TIMEOUTA` reader - Timeout A Interrupt"]
pub type INT_EVENT0_MIS_TIMEOUTA_R = crate :: BitReader < INT_EVENT0_MIS_TIMEOUTA_A > ; # [doc = "Timeout A Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_TIMEOUTA_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_TIMEOUTA_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_TIMEOUTA_SET = 1 , } impl From < INT_EVENT0_MIS_TIMEOUTA_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_TIMEOUTA_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_TIMEOUTA_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_TIMEOUTA_A { match self . bits { false => INT_EVENT0_MIS_TIMEOUTA_A :: INT_EVENT0_MIS_TIMEOUTA_CLR , true => INT_EVENT0_MIS_TIMEOUTA_A :: INT_EVENT0_MIS_TIMEOUTA_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_timeouta_clr (& self) -> bool { * self == INT_EVENT0_MIS_TIMEOUTA_A :: INT_EVENT0_MIS_TIMEOUTA_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_timeouta_set (& self) -> bool { * self == INT_EVENT0_MIS_TIMEOUTA_A :: INT_EVENT0_MIS_TIMEOUTA_SET } } # [doc = "Field `INT_EVENT0_MIS_TIMEOUTB` reader - Timeout B Interrupt"]
pub type INT_EVENT0_MIS_TIMEOUTB_R = crate :: BitReader < INT_EVENT0_MIS_TIMEOUTB_A > ; # [doc = "Timeout B Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_TIMEOUTB_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_TIMEOUTB_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_TIMEOUTB_SET = 1 , } impl From < INT_EVENT0_MIS_TIMEOUTB_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_TIMEOUTB_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_TIMEOUTB_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_TIMEOUTB_A { match self . bits { false => INT_EVENT0_MIS_TIMEOUTB_A :: INT_EVENT0_MIS_TIMEOUTB_CLR , true => INT_EVENT0_MIS_TIMEOUTB_A :: INT_EVENT0_MIS_TIMEOUTB_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_timeoutb_clr (& self) -> bool { * self == INT_EVENT0_MIS_TIMEOUTB_A :: INT_EVENT0_MIS_TIMEOUTB_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_timeoutb_set (& self) -> bool { * self == INT_EVENT0_MIS_TIMEOUTB_A :: INT_EVENT0_MIS_TIMEOUTB_SET } } # [doc = "Field `INT_EVENT0_MIS_SRXDONE` reader - Slave Receive Data Interrupt Signals that a byte has been received"]
pub type INT_EVENT0_MIS_SRXDONE_R = crate :: BitReader < INT_EVENT0_MIS_SRXDONE_A > ; # [doc = "Slave Receive Data Interrupt Signals that a byte has been received\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_SRXDONE_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_SRXDONE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_SRXDONE_SET = 1 , } impl From < INT_EVENT0_MIS_SRXDONE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_SRXDONE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_SRXDONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_SRXDONE_A { match self . bits { false => INT_EVENT0_MIS_SRXDONE_A :: INT_EVENT0_MIS_SRXDONE_CLR , true => INT_EVENT0_MIS_SRXDONE_A :: INT_EVENT0_MIS_SRXDONE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_srxdone_clr (& self) -> bool { * self == INT_EVENT0_MIS_SRXDONE_A :: INT_EVENT0_MIS_SRXDONE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_srxdone_set (& self) -> bool { * self == INT_EVENT0_MIS_SRXDONE_A :: INT_EVENT0_MIS_SRXDONE_SET } } # [doc = "Field `INT_EVENT0_MIS_STXDONE` reader - Slave Transmit Transaction completed Interrupt"]
pub type INT_EVENT0_MIS_STXDONE_R = crate :: BitReader < INT_EVENT0_MIS_STXDONE_A > ; # [doc = "Slave Transmit Transaction completed Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_STXDONE_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_STXDONE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_STXDONE_SET = 1 , } impl From < INT_EVENT0_MIS_STXDONE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_STXDONE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_STXDONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_STXDONE_A { match self . bits { false => INT_EVENT0_MIS_STXDONE_A :: INT_EVENT0_MIS_STXDONE_CLR , true => INT_EVENT0_MIS_STXDONE_A :: INT_EVENT0_MIS_STXDONE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_stxdone_clr (& self) -> bool { * self == INT_EVENT0_MIS_STXDONE_A :: INT_EVENT0_MIS_STXDONE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_stxdone_set (& self) -> bool { * self == INT_EVENT0_MIS_STXDONE_A :: INT_EVENT0_MIS_STXDONE_SET } } # [doc = "Field `INT_EVENT0_MIS_SRXFIFOTRG` reader - Slave Receive FIFO Trigger"]
pub type INT_EVENT0_MIS_SRXFIFOTRG_R = crate :: BitReader < INT_EVENT0_MIS_SRXFIFOTRG_A > ; # [doc = "Slave Receive FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_SRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_SRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_SRXFIFOTRG_SET = 1 , } impl From < INT_EVENT0_MIS_SRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_SRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_SRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_SRXFIFOTRG_A { match self . bits { false => INT_EVENT0_MIS_SRXFIFOTRG_A :: INT_EVENT0_MIS_SRXFIFOTRG_CLR , true => INT_EVENT0_MIS_SRXFIFOTRG_A :: INT_EVENT0_MIS_SRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_srxfifotrg_clr (& self) -> bool { * self == INT_EVENT0_MIS_SRXFIFOTRG_A :: INT_EVENT0_MIS_SRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_srxfifotrg_set (& self) -> bool { * self == INT_EVENT0_MIS_SRXFIFOTRG_A :: INT_EVENT0_MIS_SRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT0_MIS_STXFIFOTRG` reader - Slave Transmit FIFO Trigger"]
pub type INT_EVENT0_MIS_STXFIFOTRG_R = crate :: BitReader < INT_EVENT0_MIS_STXFIFOTRG_A > ; # [doc = "Slave Transmit FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_STXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_STXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_STXFIFOTRG_SET = 1 , } impl From < INT_EVENT0_MIS_STXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_STXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_STXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_STXFIFOTRG_A { match self . bits { false => INT_EVENT0_MIS_STXFIFOTRG_A :: INT_EVENT0_MIS_STXFIFOTRG_CLR , true => INT_EVENT0_MIS_STXFIFOTRG_A :: INT_EVENT0_MIS_STXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_stxfifotrg_clr (& self) -> bool { * self == INT_EVENT0_MIS_STXFIFOTRG_A :: INT_EVENT0_MIS_STXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_stxfifotrg_set (& self) -> bool { * self == INT_EVENT0_MIS_STXFIFOTRG_A :: INT_EVENT0_MIS_STXFIFOTRG_SET } } # [doc = "Field `INT_EVENT0_MIS_SRXFIFOFULL` reader - RXFIFO full event. This interrupt is set if an RX FIFO is full."]
pub type INT_EVENT0_MIS_SRXFIFOFULL_R = crate :: BitReader < INT_EVENT0_MIS_SRXFIFOFULL_A > ; # [doc = "RXFIFO full event. This interrupt is set if an RX FIFO is full.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_SRXFIFOFULL_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_SRXFIFOFULL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_SRXFIFOFULL_SET = 1 , } impl From < INT_EVENT0_MIS_SRXFIFOFULL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_SRXFIFOFULL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_SRXFIFOFULL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_SRXFIFOFULL_A { match self . bits { false => INT_EVENT0_MIS_SRXFIFOFULL_A :: INT_EVENT0_MIS_SRXFIFOFULL_CLR , true => INT_EVENT0_MIS_SRXFIFOFULL_A :: INT_EVENT0_MIS_SRXFIFOFULL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_srxfifofull_clr (& self) -> bool { * self == INT_EVENT0_MIS_SRXFIFOFULL_A :: INT_EVENT0_MIS_SRXFIFOFULL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_srxfifofull_set (& self) -> bool { * self == INT_EVENT0_MIS_SRXFIFOFULL_A :: INT_EVENT0_MIS_SRXFIFOFULL_SET } } # [doc = "Field `INT_EVENT0_MIS_STXEMPTY` reader - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
pub type INT_EVENT0_MIS_STXEMPTY_R = crate :: BitReader < INT_EVENT0_MIS_STXEMPTY_A > ; # [doc = "Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_STXEMPTY_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_STXEMPTY_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_STXEMPTY_SET = 1 , } impl From < INT_EVENT0_MIS_STXEMPTY_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_STXEMPTY_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_STXEMPTY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_STXEMPTY_A { match self . bits { false => INT_EVENT0_MIS_STXEMPTY_A :: INT_EVENT0_MIS_STXEMPTY_CLR , true => INT_EVENT0_MIS_STXEMPTY_A :: INT_EVENT0_MIS_STXEMPTY_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_stxempty_clr (& self) -> bool { * self == INT_EVENT0_MIS_STXEMPTY_A :: INT_EVENT0_MIS_STXEMPTY_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_stxempty_set (& self) -> bool { * self == INT_EVENT0_MIS_STXEMPTY_A :: INT_EVENT0_MIS_STXEMPTY_SET } } # [doc = "Field `INT_EVENT0_MIS_SSTART` reader - Slave START Detection Interrupt"]
pub type INT_EVENT0_MIS_SSTART_R = crate :: BitReader < INT_EVENT0_MIS_SSTART_A > ; # [doc = "Slave START Detection Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_SSTART_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_SSTART_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_SSTART_SET = 1 , } impl From < INT_EVENT0_MIS_SSTART_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_SSTART_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_SSTART_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_SSTART_A { match self . bits { false => INT_EVENT0_MIS_SSTART_A :: INT_EVENT0_MIS_SSTART_CLR , true => INT_EVENT0_MIS_SSTART_A :: INT_EVENT0_MIS_SSTART_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_sstart_clr (& self) -> bool { * self == INT_EVENT0_MIS_SSTART_A :: INT_EVENT0_MIS_SSTART_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_sstart_set (& self) -> bool { * self == INT_EVENT0_MIS_SSTART_A :: INT_EVENT0_MIS_SSTART_SET } } # [doc = "Field `INT_EVENT0_MIS_SSTOP` reader - Slave STOP Detection Interrupt"]
pub type INT_EVENT0_MIS_SSTOP_R = crate :: BitReader < INT_EVENT0_MIS_SSTOP_A > ; # [doc = "Slave STOP Detection Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_SSTOP_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_SSTOP_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_SSTOP_SET = 1 , } impl From < INT_EVENT0_MIS_SSTOP_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_SSTOP_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_SSTOP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_SSTOP_A { match self . bits { false => INT_EVENT0_MIS_SSTOP_A :: INT_EVENT0_MIS_SSTOP_CLR , true => INT_EVENT0_MIS_SSTOP_A :: INT_EVENT0_MIS_SSTOP_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_sstop_clr (& self) -> bool { * self == INT_EVENT0_MIS_SSTOP_A :: INT_EVENT0_MIS_SSTOP_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_sstop_set (& self) -> bool { * self == INT_EVENT0_MIS_SSTOP_A :: INT_EVENT0_MIS_SSTOP_SET } } # [doc = "Field `INT_EVENT0_MIS_SGENCALL` reader - General Call Interrupt"]
pub type INT_EVENT0_MIS_SGENCALL_R = crate :: BitReader < INT_EVENT0_MIS_SGENCALL_A > ; # [doc = "General Call Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_SGENCALL_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_SGENCALL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_SGENCALL_SET = 1 , } impl From < INT_EVENT0_MIS_SGENCALL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_SGENCALL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_SGENCALL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_SGENCALL_A { match self . bits { false => INT_EVENT0_MIS_SGENCALL_A :: INT_EVENT0_MIS_SGENCALL_CLR , true => INT_EVENT0_MIS_SGENCALL_A :: INT_EVENT0_MIS_SGENCALL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_sgencall_clr (& self) -> bool { * self == INT_EVENT0_MIS_SGENCALL_A :: INT_EVENT0_MIS_SGENCALL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_sgencall_set (& self) -> bool { * self == INT_EVENT0_MIS_SGENCALL_A :: INT_EVENT0_MIS_SGENCALL_SET } } # [doc = "Field `INT_EVENT0_MIS_SDMA_DONE1_2` reader - DMA Done 1 on Event Channel 2"]
pub type INT_EVENT0_MIS_SDMA_DONE1_2_R = crate :: BitReader < INT_EVENT0_MIS_SDMA_DONE1_2_A > ; # [doc = "DMA Done 1 on Event Channel 2\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_SDMA_DONE1_2_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_SDMA_DONE1_2_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_SDMA_DONE1_2_SET = 1 , } impl From < INT_EVENT0_MIS_SDMA_DONE1_2_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_SDMA_DONE1_2_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_SDMA_DONE1_2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_SDMA_DONE1_2_A { match self . bits { false => INT_EVENT0_MIS_SDMA_DONE1_2_A :: INT_EVENT0_MIS_SDMA_DONE1_2_CLR , true => INT_EVENT0_MIS_SDMA_DONE1_2_A :: INT_EVENT0_MIS_SDMA_DONE1_2_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_sdma_done1_2_clr (& self) -> bool { * self == INT_EVENT0_MIS_SDMA_DONE1_2_A :: INT_EVENT0_MIS_SDMA_DONE1_2_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_sdma_done1_2_set (& self) -> bool { * self == INT_EVENT0_MIS_SDMA_DONE1_2_A :: INT_EVENT0_MIS_SDMA_DONE1_2_SET } } # [doc = "Field `INT_EVENT0_MIS_SDMA_DONE1_3` reader - DMA Done 1 on Event Channel 3"]
pub type INT_EVENT0_MIS_SDMA_DONE1_3_R = crate :: BitReader < INT_EVENT0_MIS_SDMA_DONE1_3_A > ; # [doc = "DMA Done 1 on Event Channel 3\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_SDMA_DONE1_3_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_SDMA_DONE1_3_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_SDMA_DONE1_3_SET = 1 , } impl From < INT_EVENT0_MIS_SDMA_DONE1_3_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_SDMA_DONE1_3_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_SDMA_DONE1_3_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_SDMA_DONE1_3_A { match self . bits { false => INT_EVENT0_MIS_SDMA_DONE1_3_A :: INT_EVENT0_MIS_SDMA_DONE1_3_CLR , true => INT_EVENT0_MIS_SDMA_DONE1_3_A :: INT_EVENT0_MIS_SDMA_DONE1_3_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_sdma_done1_3_clr (& self) -> bool { * self == INT_EVENT0_MIS_SDMA_DONE1_3_A :: INT_EVENT0_MIS_SDMA_DONE1_3_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_sdma_done1_3_set (& self) -> bool { * self == INT_EVENT0_MIS_SDMA_DONE1_3_A :: INT_EVENT0_MIS_SDMA_DONE1_3_SET } } # [doc = "Field `INT_EVENT0_MIS_SPEC_RX_ERR` reader - Slave RX Pec Error Interrupt"]
pub type INT_EVENT0_MIS_SPEC_RX_ERR_R = crate :: BitReader < INT_EVENT0_MIS_SPEC_RX_ERR_A > ; # [doc = "Slave RX Pec Error Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_SPEC_RX_ERR_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_SPEC_RX_ERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_SPEC_RX_ERR_SET = 1 , } impl From < INT_EVENT0_MIS_SPEC_RX_ERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_SPEC_RX_ERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_SPEC_RX_ERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_SPEC_RX_ERR_A { match self . bits { false => INT_EVENT0_MIS_SPEC_RX_ERR_A :: INT_EVENT0_MIS_SPEC_RX_ERR_CLR , true => INT_EVENT0_MIS_SPEC_RX_ERR_A :: INT_EVENT0_MIS_SPEC_RX_ERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_spec_rx_err_clr (& self) -> bool { * self == INT_EVENT0_MIS_SPEC_RX_ERR_A :: INT_EVENT0_MIS_SPEC_RX_ERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_spec_rx_err_set (& self) -> bool { * self == INT_EVENT0_MIS_SPEC_RX_ERR_A :: INT_EVENT0_MIS_SPEC_RX_ERR_SET } } # [doc = "Field `INT_EVENT0_MIS_STX_UNFL` reader - Slave TX FIFO underflow"]
pub type INT_EVENT0_MIS_STX_UNFL_R = crate :: BitReader < INT_EVENT0_MIS_STX_UNFL_A > ; # [doc = "Slave TX FIFO underflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_STX_UNFL_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_STX_UNFL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_STX_UNFL_SET = 1 , } impl From < INT_EVENT0_MIS_STX_UNFL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_STX_UNFL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_STX_UNFL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_STX_UNFL_A { match self . bits { false => INT_EVENT0_MIS_STX_UNFL_A :: INT_EVENT0_MIS_STX_UNFL_CLR , true => INT_EVENT0_MIS_STX_UNFL_A :: INT_EVENT0_MIS_STX_UNFL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_stx_unfl_clr (& self) -> bool { * self == INT_EVENT0_MIS_STX_UNFL_A :: INT_EVENT0_MIS_STX_UNFL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_stx_unfl_set (& self) -> bool { * self == INT_EVENT0_MIS_STX_UNFL_A :: INT_EVENT0_MIS_STX_UNFL_SET } } # [doc = "Field `INT_EVENT0_MIS_SRX_OVFL` reader - Slave RX FIFO overflow"]
pub type INT_EVENT0_MIS_SRX_OVFL_R = crate :: BitReader < INT_EVENT0_MIS_SRX_OVFL_A > ; # [doc = "Slave RX FIFO overflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_SRX_OVFL_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_SRX_OVFL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_SRX_OVFL_SET = 1 , } impl From < INT_EVENT0_MIS_SRX_OVFL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_SRX_OVFL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_SRX_OVFL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_SRX_OVFL_A { match self . bits { false => INT_EVENT0_MIS_SRX_OVFL_A :: INT_EVENT0_MIS_SRX_OVFL_CLR , true => INT_EVENT0_MIS_SRX_OVFL_A :: INT_EVENT0_MIS_SRX_OVFL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_srx_ovfl_clr (& self) -> bool { * self == INT_EVENT0_MIS_SRX_OVFL_A :: INT_EVENT0_MIS_SRX_OVFL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_srx_ovfl_set (& self) -> bool { * self == INT_EVENT0_MIS_SRX_OVFL_A :: INT_EVENT0_MIS_SRX_OVFL_SET } } # [doc = "Field `INT_EVENT0_MIS_SARBLOST` reader - Slave Arbitration Lost"]
pub type INT_EVENT0_MIS_SARBLOST_R = crate :: BitReader < INT_EVENT0_MIS_SARBLOST_A > ; # [doc = "Slave Arbitration Lost\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_SARBLOST_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_SARBLOST_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_SARBLOST_SET = 1 , } impl From < INT_EVENT0_MIS_SARBLOST_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_SARBLOST_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_SARBLOST_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_SARBLOST_A { match self . bits { false => INT_EVENT0_MIS_SARBLOST_A :: INT_EVENT0_MIS_SARBLOST_CLR , true => INT_EVENT0_MIS_SARBLOST_A :: INT_EVENT0_MIS_SARBLOST_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_sarblost_clr (& self) -> bool { * self == INT_EVENT0_MIS_SARBLOST_A :: INT_EVENT0_MIS_SARBLOST_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_sarblost_set (& self) -> bool { * self == INT_EVENT0_MIS_SARBLOST_A :: INT_EVENT0_MIS_SARBLOST_SET } } # [doc = "Field `INT_EVENT0_MIS_INTR_OVFL` reader - Interrupt overflow"]
pub type INT_EVENT0_MIS_INTR_OVFL_R = crate :: BitReader < INT_EVENT0_MIS_INTR_OVFL_A > ; # [doc = "Interrupt overflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_INTR_OVFL_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_INTR_OVFL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_INTR_OVFL_SET = 1 , } impl From < INT_EVENT0_MIS_INTR_OVFL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_INTR_OVFL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_INTR_OVFL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_INTR_OVFL_A { match self . bits { false => INT_EVENT0_MIS_INTR_OVFL_A :: INT_EVENT0_MIS_INTR_OVFL_CLR , true => INT_EVENT0_MIS_INTR_OVFL_A :: INT_EVENT0_MIS_INTR_OVFL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_intr_ovfl_clr (& self) -> bool { * self == INT_EVENT0_MIS_INTR_OVFL_A :: INT_EVENT0_MIS_INTR_OVFL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_intr_ovfl_set (& self) -> bool { * self == INT_EVENT0_MIS_INTR_OVFL_A :: INT_EVENT0_MIS_INTR_OVFL_SET } } impl R { # [doc = "Bit 0 - Master Receive Data Interrupt"]
# [inline (always)]
pub fn int_event0_mis_mrxdone (& self) -> INT_EVENT0_MIS_MRXDONE_R { INT_EVENT0_MIS_MRXDONE_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Master Transmit Transaction completed Interrupt"]
# [inline (always)]
pub fn int_event0_mis_mtxdone (& self) -> INT_EVENT0_MIS_MTXDONE_R { INT_EVENT0_MIS_MTXDONE_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
pub fn int_event0_mis_mrxfifotrg (& self) -> INT_EVENT0_MIS_MRXFIFOTRG_R { INT_EVENT0_MIS_MRXFIFOTRG_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
pub fn int_event0_mis_mtxfifotrg (& self) -> INT_EVENT0_MIS_MTXFIFOTRG_R { INT_EVENT0_MIS_MTXFIFOTRG_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - RXFIFO full event. This interrupt is set if the RX FIFO is full."]
# [inline (always)]
pub fn int_event0_mis_mrxfifofull (& self) -> INT_EVENT0_MIS_MRXFIFOFULL_R { INT_EVENT0_MIS_MRXFIFOFULL_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
# [inline (always)]
pub fn int_event0_mis_mtxempty (& self) -> INT_EVENT0_MIS_MTXEMPTY_R { INT_EVENT0_MIS_MTXEMPTY_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 7 - Address/Data NACK Interrupt"]
# [inline (always)]
pub fn int_event0_mis_mnack (& self) -> INT_EVENT0_MIS_MNACK_R { INT_EVENT0_MIS_MNACK_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - START Detection Interrupt"]
# [inline (always)]
pub fn int_event0_mis_mstart (& self) -> INT_EVENT0_MIS_MSTART_R { INT_EVENT0_MIS_MSTART_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - STOP Detection Interrupt"]
# [inline (always)]
pub fn int_event0_mis_mstop (& self) -> INT_EVENT0_MIS_MSTOP_R { INT_EVENT0_MIS_MSTOP_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - Arbitration Lost Interrupt"]
# [inline (always)]
pub fn int_event0_mis_marblost (& self) -> INT_EVENT0_MIS_MARBLOST_R { INT_EVENT0_MIS_MARBLOST_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bit 11 - DMA Done 1 on Event Channel 2"]
# [inline (always)]
pub fn int_event0_mis_mdma_done1_2 (& self) -> INT_EVENT0_MIS_MDMA_DONE1_2_R { INT_EVENT0_MIS_MDMA_DONE1_2_R :: new (((self . bits >> 11) & 1) != 0) } # [doc = "Bit 12 - DMA Done 1 on Event Channel 3"]
# [inline (always)]
pub fn int_event0_mis_mdma_done1_3 (& self) -> INT_EVENT0_MIS_MDMA_DONE1_3_R { INT_EVENT0_MIS_MDMA_DONE1_3_R :: new (((self . bits >> 12) & 1) != 0) } # [doc = "Bit 13 - Master RX Pec Error Interrupt"]
# [inline (always)]
pub fn int_event0_mis_mpec_rx_err (& self) -> INT_EVENT0_MIS_MPEC_RX_ERR_R { INT_EVENT0_MIS_MPEC_RX_ERR_R :: new (((self . bits >> 13) & 1) != 0) } # [doc = "Bit 14 - Timeout A Interrupt"]
# [inline (always)]
pub fn int_event0_mis_timeouta (& self) -> INT_EVENT0_MIS_TIMEOUTA_R { INT_EVENT0_MIS_TIMEOUTA_R :: new (((self . bits >> 14) & 1) != 0) } # [doc = "Bit 15 - Timeout B Interrupt"]
# [inline (always)]
pub fn int_event0_mis_timeoutb (& self) -> INT_EVENT0_MIS_TIMEOUTB_R { INT_EVENT0_MIS_TIMEOUTB_R :: new (((self . bits >> 15) & 1) != 0) } # [doc = "Bit 16 - Slave Receive Data Interrupt Signals that a byte has been received"]
# [inline (always)]
pub fn int_event0_mis_srxdone (& self) -> INT_EVENT0_MIS_SRXDONE_R { INT_EVENT0_MIS_SRXDONE_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 17 - Slave Transmit Transaction completed Interrupt"]
# [inline (always)]
pub fn int_event0_mis_stxdone (& self) -> INT_EVENT0_MIS_STXDONE_R { INT_EVENT0_MIS_STXDONE_R :: new (((self . bits >> 17) & 1) != 0) } # [doc = "Bit 18 - Slave Receive FIFO Trigger"]
# [inline (always)]
pub fn int_event0_mis_srxfifotrg (& self) -> INT_EVENT0_MIS_SRXFIFOTRG_R { INT_EVENT0_MIS_SRXFIFOTRG_R :: new (((self . bits >> 18) & 1) != 0) } # [doc = "Bit 19 - Slave Transmit FIFO Trigger"]
# [inline (always)]
pub fn int_event0_mis_stxfifotrg (& self) -> INT_EVENT0_MIS_STXFIFOTRG_R { INT_EVENT0_MIS_STXFIFOTRG_R :: new (((self . bits >> 19) & 1) != 0) } # [doc = "Bit 20 - RXFIFO full event. This interrupt is set if an RX FIFO is full."]
# [inline (always)]
pub fn int_event0_mis_srxfifofull (& self) -> INT_EVENT0_MIS_SRXFIFOFULL_R { INT_EVENT0_MIS_SRXFIFOFULL_R :: new (((self . bits >> 20) & 1) != 0) } # [doc = "Bit 21 - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
# [inline (always)]
pub fn int_event0_mis_stxempty (& self) -> INT_EVENT0_MIS_STXEMPTY_R { INT_EVENT0_MIS_STXEMPTY_R :: new (((self . bits >> 21) & 1) != 0) } # [doc = "Bit 22 - Slave START Detection Interrupt"]
# [inline (always)]
pub fn int_event0_mis_sstart (& self) -> INT_EVENT0_MIS_SSTART_R { INT_EVENT0_MIS_SSTART_R :: new (((self . bits >> 22) & 1) != 0) } # [doc = "Bit 23 - Slave STOP Detection Interrupt"]
# [inline (always)]
pub fn int_event0_mis_sstop (& self) -> INT_EVENT0_MIS_SSTOP_R { INT_EVENT0_MIS_SSTOP_R :: new (((self . bits >> 23) & 1) != 0) } # [doc = "Bit 24 - General Call Interrupt"]
# [inline (always)]
pub fn int_event0_mis_sgencall (& self) -> INT_EVENT0_MIS_SGENCALL_R { INT_EVENT0_MIS_SGENCALL_R :: new (((self . bits >> 24) & 1) != 0) } # [doc = "Bit 25 - DMA Done 1 on Event Channel 2"]
# [inline (always)]
pub fn int_event0_mis_sdma_done1_2 (& self) -> INT_EVENT0_MIS_SDMA_DONE1_2_R { INT_EVENT0_MIS_SDMA_DONE1_2_R :: new (((self . bits >> 25) & 1) != 0) } # [doc = "Bit 26 - DMA Done 1 on Event Channel 3"]
# [inline (always)]
pub fn int_event0_mis_sdma_done1_3 (& self) -> INT_EVENT0_MIS_SDMA_DONE1_3_R { INT_EVENT0_MIS_SDMA_DONE1_3_R :: new (((self . bits >> 26) & 1) != 0) } # [doc = "Bit 27 - Slave RX Pec Error Interrupt"]
# [inline (always)]
pub fn int_event0_mis_spec_rx_err (& self) -> INT_EVENT0_MIS_SPEC_RX_ERR_R { INT_EVENT0_MIS_SPEC_RX_ERR_R :: new (((self . bits >> 27) & 1) != 0) } # [doc = "Bit 28 - Slave TX FIFO underflow"]
# [inline (always)]
pub fn int_event0_mis_stx_unfl (& self) -> INT_EVENT0_MIS_STX_UNFL_R { INT_EVENT0_MIS_STX_UNFL_R :: new (((self . bits >> 28) & 1) != 0) } # [doc = "Bit 29 - Slave RX FIFO overflow"]
# [inline (always)]
pub fn int_event0_mis_srx_ovfl (& self) -> INT_EVENT0_MIS_SRX_OVFL_R { INT_EVENT0_MIS_SRX_OVFL_R :: new (((self . bits >> 29) & 1) != 0) } # [doc = "Bit 30 - Slave Arbitration Lost"]
# [inline (always)]
pub fn int_event0_mis_sarblost (& self) -> INT_EVENT0_MIS_SARBLOST_R { INT_EVENT0_MIS_SARBLOST_R :: new (((self . bits >> 30) & 1) != 0) } # [doc = "Bit 31 - Interrupt overflow"]
# [inline (always)]
pub fn int_event0_mis_intr_ovfl (& self) -> INT_EVENT0_MIS_INTR_OVFL_R { INT_EVENT0_MIS_INTR_OVFL_R :: new (((self . bits >> 31) & 1) != 0) } } # [doc = "Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_MIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event0_mis::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT0_MIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT0_MIS to value 0"]
impl crate :: Resettable for INT_EVENT0_MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_ISET (w) register accessor: Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_iset`]
module"]
pub type INT_EVENT0_ISET = crate :: Reg < int_event0_iset :: INT_EVENT0_ISET_SPEC > ; # [doc = "Interrupt set"]
pub mod int_event0_iset { # [doc = "Register `INT_EVENT0_ISET` writer"]
pub type W = crate :: W < INT_EVENT0_ISET_SPEC > ; # [doc = "Master Receive Data Interrupt Signals that a byte has been received\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_MRXDONE_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_MRXDONE_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_MRXDONE_SET = 1 , } impl From < INT_EVENT0_ISET_MRXDONE_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_MRXDONE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_MRXDONE` writer - Master Receive Data Interrupt Signals that a byte has been received"]
pub type INT_EVENT0_ISET_MRXDONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_MRXDONE_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_MRXDONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_mrxdone_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MRXDONE_AW :: INT_EVENT0_ISET_MRXDONE_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_mrxdone_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MRXDONE_AW :: INT_EVENT0_ISET_MRXDONE_SET) } } # [doc = "Master Transmit Transaction completed Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_MTXDONE_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_MTXDONE_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_MTXDONE_SET = 1 , } impl From < INT_EVENT0_ISET_MTXDONE_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_MTXDONE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_MTXDONE` writer - Master Transmit Transaction completed Interrupt"]
pub type INT_EVENT0_ISET_MTXDONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_MTXDONE_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_MTXDONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_mtxdone_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MTXDONE_AW :: INT_EVENT0_ISET_MTXDONE_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_mtxdone_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MTXDONE_AW :: INT_EVENT0_ISET_MTXDONE_SET) } } # [doc = "Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_MRXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_MRXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_MRXFIFOTRG_SET = 1 , } impl From < INT_EVENT0_ISET_MRXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_MRXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_MRXFIFOTRG` writer - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT0_ISET_MRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_MRXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_MRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_mrxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MRXFIFOTRG_AW :: INT_EVENT0_ISET_MRXFIFOTRG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_mrxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MRXFIFOTRG_AW :: INT_EVENT0_ISET_MRXFIFOTRG_SET) } } # [doc = "Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_MTXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_MTXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_MTXFIFOTRG_SET = 1 , } impl From < INT_EVENT0_ISET_MTXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_MTXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_MTXFIFOTRG` writer - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT0_ISET_MTXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_MTXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_MTXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_mtxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MTXFIFOTRG_AW :: INT_EVENT0_ISET_MTXFIFOTRG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_mtxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MTXFIFOTRG_AW :: INT_EVENT0_ISET_MTXFIFOTRG_SET) } } # [doc = "RXFIFO full event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_MRXFIFOFULL_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_MRXFIFOFULL_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_MRXFIFOFULL_SET = 1 , } impl From < INT_EVENT0_ISET_MRXFIFOFULL_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_MRXFIFOFULL_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_MRXFIFOFULL` writer - RXFIFO full event."]
pub type INT_EVENT0_ISET_MRXFIFOFULL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_MRXFIFOFULL_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_MRXFIFOFULL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_mrxfifofull_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MRXFIFOFULL_AW :: INT_EVENT0_ISET_MRXFIFOFULL_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_mrxfifofull_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MRXFIFOFULL_AW :: INT_EVENT0_ISET_MRXFIFOFULL_SET) } } # [doc = "Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_MTXEMPTY_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_MTXEMPTY_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_MTXEMPTY_SET = 1 , } impl From < INT_EVENT0_ISET_MTXEMPTY_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_MTXEMPTY_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_MTXEMPTY` writer - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
pub type INT_EVENT0_ISET_MTXEMPTY_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_MTXEMPTY_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_MTXEMPTY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_mtxempty_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MTXEMPTY_AW :: INT_EVENT0_ISET_MTXEMPTY_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_mtxempty_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MTXEMPTY_AW :: INT_EVENT0_ISET_MTXEMPTY_SET) } } # [doc = "Address/Data NACK Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_MNACK_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_MNACK_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_MNACK_SET = 1 , } impl From < INT_EVENT0_ISET_MNACK_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_MNACK_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_MNACK` writer - Address/Data NACK Interrupt"]
pub type INT_EVENT0_ISET_MNACK_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_MNACK_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_MNACK_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_mnack_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MNACK_AW :: INT_EVENT0_ISET_MNACK_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_mnack_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MNACK_AW :: INT_EVENT0_ISET_MNACK_SET) } } # [doc = "START Detection Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_MSTART_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_MSTART_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_MSTART_SET = 1 , } impl From < INT_EVENT0_ISET_MSTART_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_MSTART_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_MSTART` writer - START Detection Interrupt"]
pub type INT_EVENT0_ISET_MSTART_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_MSTART_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_MSTART_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_mstart_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MSTART_AW :: INT_EVENT0_ISET_MSTART_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_mstart_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MSTART_AW :: INT_EVENT0_ISET_MSTART_SET) } } # [doc = "STOP Detection Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_MSTOP_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_MSTOP_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_MSTOP_SET = 1 , } impl From < INT_EVENT0_ISET_MSTOP_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_MSTOP_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_MSTOP` writer - STOP Detection Interrupt"]
pub type INT_EVENT0_ISET_MSTOP_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_MSTOP_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_MSTOP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_mstop_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MSTOP_AW :: INT_EVENT0_ISET_MSTOP_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_mstop_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MSTOP_AW :: INT_EVENT0_ISET_MSTOP_SET) } } # [doc = "Arbitration Lost Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_MARBLOST_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_MARBLOST_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_MARBLOST_SET = 1 , } impl From < INT_EVENT0_ISET_MARBLOST_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_MARBLOST_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_MARBLOST` writer - Arbitration Lost Interrupt"]
pub type INT_EVENT0_ISET_MARBLOST_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_MARBLOST_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_MARBLOST_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_marblost_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MARBLOST_AW :: INT_EVENT0_ISET_MARBLOST_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_marblost_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MARBLOST_AW :: INT_EVENT0_ISET_MARBLOST_SET) } } # [doc = "DMA Done 1 on Event Channel 2\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_MDMA_DONE1_2_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_MDMA_DONE1_2_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_MDMA_DONE1_2_SET = 1 , } impl From < INT_EVENT0_ISET_MDMA_DONE1_2_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_MDMA_DONE1_2_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_MDMA_DONE1_2` writer - DMA Done 1 on Event Channel 2"]
pub type INT_EVENT0_ISET_MDMA_DONE1_2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_MDMA_DONE1_2_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_MDMA_DONE1_2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_mdma_done1_2_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MDMA_DONE1_2_AW :: INT_EVENT0_ISET_MDMA_DONE1_2_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_mdma_done1_2_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MDMA_DONE1_2_AW :: INT_EVENT0_ISET_MDMA_DONE1_2_SET) } } # [doc = "DMA Done 1 on Event Channel 3\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_MDMA_DONE1_3_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_MDMA_DONE1_3_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_MDMA_DONE1_3_SET = 1 , } impl From < INT_EVENT0_ISET_MDMA_DONE1_3_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_MDMA_DONE1_3_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_MDMA_DONE1_3` writer - DMA Done 1 on Event Channel 3"]
pub type INT_EVENT0_ISET_MDMA_DONE1_3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_MDMA_DONE1_3_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_MDMA_DONE1_3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_mdma_done1_3_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MDMA_DONE1_3_AW :: INT_EVENT0_ISET_MDMA_DONE1_3_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_mdma_done1_3_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MDMA_DONE1_3_AW :: INT_EVENT0_ISET_MDMA_DONE1_3_SET) } } # [doc = "Master RX Pec Error Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_MPEC_RX_ERR_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_MPEC_RX_ERR_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_MPEC_RX_ERR_SET = 1 , } impl From < INT_EVENT0_ISET_MPEC_RX_ERR_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_MPEC_RX_ERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_MPEC_RX_ERR` writer - Master RX Pec Error Interrupt"]
pub type INT_EVENT0_ISET_MPEC_RX_ERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_MPEC_RX_ERR_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_MPEC_RX_ERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_mpec_rx_err_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MPEC_RX_ERR_AW :: INT_EVENT0_ISET_MPEC_RX_ERR_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_mpec_rx_err_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MPEC_RX_ERR_AW :: INT_EVENT0_ISET_MPEC_RX_ERR_SET) } } # [doc = "Timeout A interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_TIMEOUTA_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_TIMEOUTA_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_TIMEOUTA_SET = 1 , } impl From < INT_EVENT0_ISET_TIMEOUTA_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_TIMEOUTA_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_TIMEOUTA` writer - Timeout A interrupt"]
pub type INT_EVENT0_ISET_TIMEOUTA_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_TIMEOUTA_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_TIMEOUTA_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_timeouta_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_TIMEOUTA_AW :: INT_EVENT0_ISET_TIMEOUTA_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_timeouta_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_TIMEOUTA_AW :: INT_EVENT0_ISET_TIMEOUTA_SET) } } # [doc = "Timeout B Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_TIMEOUTB_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_TIMEOUTB_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_TIMEOUTB_SET = 1 , } impl From < INT_EVENT0_ISET_TIMEOUTB_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_TIMEOUTB_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_TIMEOUTB` writer - Timeout B Interrupt"]
pub type INT_EVENT0_ISET_TIMEOUTB_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_TIMEOUTB_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_TIMEOUTB_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_timeoutb_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_TIMEOUTB_AW :: INT_EVENT0_ISET_TIMEOUTB_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_timeoutb_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_TIMEOUTB_AW :: INT_EVENT0_ISET_TIMEOUTB_SET) } } # [doc = "Slave Receive Data Interrupt Signals that a byte has been received\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_SRXDONE_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_SRXDONE_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_SRXDONE_SET = 1 , } impl From < INT_EVENT0_ISET_SRXDONE_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_SRXDONE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_SRXDONE` writer - Slave Receive Data Interrupt Signals that a byte has been received"]
pub type INT_EVENT0_ISET_SRXDONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_SRXDONE_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_SRXDONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_srxdone_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SRXDONE_AW :: INT_EVENT0_ISET_SRXDONE_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_srxdone_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SRXDONE_AW :: INT_EVENT0_ISET_SRXDONE_SET) } } # [doc = "Slave Transmit Transaction completed Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_STXDONE_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_STXDONE_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_STXDONE_SET = 1 , } impl From < INT_EVENT0_ISET_STXDONE_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_STXDONE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_STXDONE` writer - Slave Transmit Transaction completed Interrupt"]
pub type INT_EVENT0_ISET_STXDONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_STXDONE_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_STXDONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_stxdone_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_STXDONE_AW :: INT_EVENT0_ISET_STXDONE_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_stxdone_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_STXDONE_AW :: INT_EVENT0_ISET_STXDONE_SET) } } # [doc = "Slave Receive FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_SRXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_SRXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_SRXFIFOTRG_SET = 1 , } impl From < INT_EVENT0_ISET_SRXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_SRXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_SRXFIFOTRG` writer - Slave Receive FIFO Trigger"]
pub type INT_EVENT0_ISET_SRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_SRXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_SRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_srxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SRXFIFOTRG_AW :: INT_EVENT0_ISET_SRXFIFOTRG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_srxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SRXFIFOTRG_AW :: INT_EVENT0_ISET_SRXFIFOTRG_SET) } } # [doc = "Slave Transmit FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_STXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_STXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_STXFIFOTRG_SET = 1 , } impl From < INT_EVENT0_ISET_STXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_STXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_STXFIFOTRG` writer - Slave Transmit FIFO Trigger"]
pub type INT_EVENT0_ISET_STXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_STXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_STXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_stxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_STXFIFOTRG_AW :: INT_EVENT0_ISET_STXFIFOTRG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_stxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_STXFIFOTRG_AW :: INT_EVENT0_ISET_STXFIFOTRG_SET) } } # [doc = "RXFIFO full event. This interrupt is set if an RX FIFO is full.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_SRXFIFOFULL_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_SRXFIFOFULL_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_SRXFIFOFULL_SET = 1 , } impl From < INT_EVENT0_ISET_SRXFIFOFULL_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_SRXFIFOFULL_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_SRXFIFOFULL` writer - RXFIFO full event. This interrupt is set if an RX FIFO is full."]
pub type INT_EVENT0_ISET_SRXFIFOFULL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_SRXFIFOFULL_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_SRXFIFOFULL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_srxfifofull_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SRXFIFOFULL_AW :: INT_EVENT0_ISET_SRXFIFOFULL_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_srxfifofull_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SRXFIFOFULL_AW :: INT_EVENT0_ISET_SRXFIFOFULL_SET) } } # [doc = "Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_STXEMPTY_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_STXEMPTY_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_STXEMPTY_SET = 1 , } impl From < INT_EVENT0_ISET_STXEMPTY_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_STXEMPTY_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_STXEMPTY` writer - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
pub type INT_EVENT0_ISET_STXEMPTY_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_STXEMPTY_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_STXEMPTY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_stxempty_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_STXEMPTY_AW :: INT_EVENT0_ISET_STXEMPTY_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_stxempty_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_STXEMPTY_AW :: INT_EVENT0_ISET_STXEMPTY_SET) } } # [doc = "Start Condition Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_SSTART_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_SSTART_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_SSTART_SET = 1 , } impl From < INT_EVENT0_ISET_SSTART_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_SSTART_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_SSTART` writer - Start Condition Interrupt"]
pub type INT_EVENT0_ISET_SSTART_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_SSTART_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_SSTART_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_sstart_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SSTART_AW :: INT_EVENT0_ISET_SSTART_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_sstart_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SSTART_AW :: INT_EVENT0_ISET_SSTART_SET) } } # [doc = "Stop Condition Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_SSTOP_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_SSTOP_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_SSTOP_SET = 1 , } impl From < INT_EVENT0_ISET_SSTOP_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_SSTOP_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_SSTOP` writer - Stop Condition Interrupt"]
pub type INT_EVENT0_ISET_SSTOP_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_SSTOP_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_SSTOP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_sstop_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SSTOP_AW :: INT_EVENT0_ISET_SSTOP_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_sstop_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SSTOP_AW :: INT_EVENT0_ISET_SSTOP_SET) } } # [doc = "General Call Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_SGENCALL_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_SGENCALL_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_SGENCALL_SET = 1 , } impl From < INT_EVENT0_ISET_SGENCALL_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_SGENCALL_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_SGENCALL` writer - General Call Interrupt"]
pub type INT_EVENT0_ISET_SGENCALL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_SGENCALL_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_SGENCALL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_sgencall_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SGENCALL_AW :: INT_EVENT0_ISET_SGENCALL_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_sgencall_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SGENCALL_AW :: INT_EVENT0_ISET_SGENCALL_SET) } } # [doc = "DMA Done 1 on Event Channel 2\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_SDMA_DONE1_2_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_SDMA_DONE1_2_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_SDMA_DONE1_2_SET = 1 , } impl From < INT_EVENT0_ISET_SDMA_DONE1_2_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_SDMA_DONE1_2_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_SDMA_DONE1_2` writer - DMA Done 1 on Event Channel 2"]
pub type INT_EVENT0_ISET_SDMA_DONE1_2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_SDMA_DONE1_2_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_SDMA_DONE1_2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_sdma_done1_2_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SDMA_DONE1_2_AW :: INT_EVENT0_ISET_SDMA_DONE1_2_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_sdma_done1_2_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SDMA_DONE1_2_AW :: INT_EVENT0_ISET_SDMA_DONE1_2_SET) } } # [doc = "DMA Done 1 on Event Channel 3\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_SDMA_DONE1_3_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_SDMA_DONE1_3_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_SDMA_DONE1_3_SET = 1 , } impl From < INT_EVENT0_ISET_SDMA_DONE1_3_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_SDMA_DONE1_3_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_SDMA_DONE1_3` writer - DMA Done 1 on Event Channel 3"]
pub type INT_EVENT0_ISET_SDMA_DONE1_3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_SDMA_DONE1_3_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_SDMA_DONE1_3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_sdma_done1_3_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SDMA_DONE1_3_AW :: INT_EVENT0_ISET_SDMA_DONE1_3_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_sdma_done1_3_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SDMA_DONE1_3_AW :: INT_EVENT0_ISET_SDMA_DONE1_3_SET) } } # [doc = "Slave RX Pec Error Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_SPEC_RX_ERR_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_SPEC_RX_ERR_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_SPEC_RX_ERR_SET = 1 , } impl From < INT_EVENT0_ISET_SPEC_RX_ERR_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_SPEC_RX_ERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_SPEC_RX_ERR` writer - Slave RX Pec Error Interrupt"]
pub type INT_EVENT0_ISET_SPEC_RX_ERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_SPEC_RX_ERR_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_SPEC_RX_ERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_spec_rx_err_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SPEC_RX_ERR_AW :: INT_EVENT0_ISET_SPEC_RX_ERR_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_spec_rx_err_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SPEC_RX_ERR_AW :: INT_EVENT0_ISET_SPEC_RX_ERR_SET) } } # [doc = "Slave TX FIFO underflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_STX_UNFL_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_STX_UNFL_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_STX_UNFL_SET = 1 , } impl From < INT_EVENT0_ISET_STX_UNFL_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_STX_UNFL_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_STX_UNFL` writer - Slave TX FIFO underflow"]
pub type INT_EVENT0_ISET_STX_UNFL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_STX_UNFL_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_STX_UNFL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_stx_unfl_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_STX_UNFL_AW :: INT_EVENT0_ISET_STX_UNFL_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_stx_unfl_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_STX_UNFL_AW :: INT_EVENT0_ISET_STX_UNFL_SET) } } # [doc = "Slave RX FIFO overflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_SRX_OVFL_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_SRX_OVFL_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_SRX_OVFL_SET = 1 , } impl From < INT_EVENT0_ISET_SRX_OVFL_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_SRX_OVFL_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_SRX_OVFL` writer - Slave RX FIFO overflow"]
pub type INT_EVENT0_ISET_SRX_OVFL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_SRX_OVFL_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_SRX_OVFL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_srx_ovfl_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SRX_OVFL_AW :: INT_EVENT0_ISET_SRX_OVFL_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_srx_ovfl_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SRX_OVFL_AW :: INT_EVENT0_ISET_SRX_OVFL_SET) } } # [doc = "Slave Arbitration Lost\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_SARBLOST_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_SARBLOST_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_SARBLOST_SET = 1 , } impl From < INT_EVENT0_ISET_SARBLOST_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_SARBLOST_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_SARBLOST` writer - Slave Arbitration Lost"]
pub type INT_EVENT0_ISET_SARBLOST_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_SARBLOST_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_SARBLOST_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_sarblost_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SARBLOST_AW :: INT_EVENT0_ISET_SARBLOST_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_sarblost_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SARBLOST_AW :: INT_EVENT0_ISET_SARBLOST_SET) } } # [doc = "Interrupt overflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_INTR_OVFL_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_INTR_OVFL_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_INTR_OVFL_SET = 1 , } impl From < INT_EVENT0_ISET_INTR_OVFL_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_INTR_OVFL_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_INTR_OVFL` writer - Interrupt overflow"]
pub type INT_EVENT0_ISET_INTR_OVFL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_INTR_OVFL_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_INTR_OVFL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_intr_ovfl_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_INTR_OVFL_AW :: INT_EVENT0_ISET_INTR_OVFL_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_intr_ovfl_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_INTR_OVFL_AW :: INT_EVENT0_ISET_INTR_OVFL_SET) } } impl W { # [doc = "Bit 0 - Master Receive Data Interrupt Signals that a byte has been received"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_mrxdone (& mut self) -> INT_EVENT0_ISET_MRXDONE_W < INT_EVENT0_ISET_SPEC , 0 > { INT_EVENT0_ISET_MRXDONE_W :: new (self) } # [doc = "Bit 1 - Master Transmit Transaction completed Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_mtxdone (& mut self) -> INT_EVENT0_ISET_MTXDONE_W < INT_EVENT0_ISET_SPEC , 1 > { INT_EVENT0_ISET_MTXDONE_W :: new (self) } # [doc = "Bit 2 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_mrxfifotrg (& mut self) -> INT_EVENT0_ISET_MRXFIFOTRG_W < INT_EVENT0_ISET_SPEC , 2 > { INT_EVENT0_ISET_MRXFIFOTRG_W :: new (self) } # [doc = "Bit 3 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_mtxfifotrg (& mut self) -> INT_EVENT0_ISET_MTXFIFOTRG_W < INT_EVENT0_ISET_SPEC , 3 > { INT_EVENT0_ISET_MTXFIFOTRG_W :: new (self) } # [doc = "Bit 4 - RXFIFO full event."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_mrxfifofull (& mut self) -> INT_EVENT0_ISET_MRXFIFOFULL_W < INT_EVENT0_ISET_SPEC , 4 > { INT_EVENT0_ISET_MRXFIFOFULL_W :: new (self) } # [doc = "Bit 5 - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_mtxempty (& mut self) -> INT_EVENT0_ISET_MTXEMPTY_W < INT_EVENT0_ISET_SPEC , 5 > { INT_EVENT0_ISET_MTXEMPTY_W :: new (self) } # [doc = "Bit 7 - Address/Data NACK Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_mnack (& mut self) -> INT_EVENT0_ISET_MNACK_W < INT_EVENT0_ISET_SPEC , 7 > { INT_EVENT0_ISET_MNACK_W :: new (self) } # [doc = "Bit 8 - START Detection Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_mstart (& mut self) -> INT_EVENT0_ISET_MSTART_W < INT_EVENT0_ISET_SPEC , 8 > { INT_EVENT0_ISET_MSTART_W :: new (self) } # [doc = "Bit 9 - STOP Detection Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_mstop (& mut self) -> INT_EVENT0_ISET_MSTOP_W < INT_EVENT0_ISET_SPEC , 9 > { INT_EVENT0_ISET_MSTOP_W :: new (self) } # [doc = "Bit 10 - Arbitration Lost Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_marblost (& mut self) -> INT_EVENT0_ISET_MARBLOST_W < INT_EVENT0_ISET_SPEC , 10 > { INT_EVENT0_ISET_MARBLOST_W :: new (self) } # [doc = "Bit 11 - DMA Done 1 on Event Channel 2"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_mdma_done1_2 (& mut self) -> INT_EVENT0_ISET_MDMA_DONE1_2_W < INT_EVENT0_ISET_SPEC , 11 > { INT_EVENT0_ISET_MDMA_DONE1_2_W :: new (self) } # [doc = "Bit 12 - DMA Done 1 on Event Channel 3"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_mdma_done1_3 (& mut self) -> INT_EVENT0_ISET_MDMA_DONE1_3_W < INT_EVENT0_ISET_SPEC , 12 > { INT_EVENT0_ISET_MDMA_DONE1_3_W :: new (self) } # [doc = "Bit 13 - Master RX Pec Error Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_mpec_rx_err (& mut self) -> INT_EVENT0_ISET_MPEC_RX_ERR_W < INT_EVENT0_ISET_SPEC , 13 > { INT_EVENT0_ISET_MPEC_RX_ERR_W :: new (self) } # [doc = "Bit 14 - Timeout A interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_timeouta (& mut self) -> INT_EVENT0_ISET_TIMEOUTA_W < INT_EVENT0_ISET_SPEC , 14 > { INT_EVENT0_ISET_TIMEOUTA_W :: new (self) } # [doc = "Bit 15 - Timeout B Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_timeoutb (& mut self) -> INT_EVENT0_ISET_TIMEOUTB_W < INT_EVENT0_ISET_SPEC , 15 > { INT_EVENT0_ISET_TIMEOUTB_W :: new (self) } # [doc = "Bit 16 - Slave Receive Data Interrupt Signals that a byte has been received"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_srxdone (& mut self) -> INT_EVENT0_ISET_SRXDONE_W < INT_EVENT0_ISET_SPEC , 16 > { INT_EVENT0_ISET_SRXDONE_W :: new (self) } # [doc = "Bit 17 - Slave Transmit Transaction completed Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_stxdone (& mut self) -> INT_EVENT0_ISET_STXDONE_W < INT_EVENT0_ISET_SPEC , 17 > { INT_EVENT0_ISET_STXDONE_W :: new (self) } # [doc = "Bit 18 - Slave Receive FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_srxfifotrg (& mut self) -> INT_EVENT0_ISET_SRXFIFOTRG_W < INT_EVENT0_ISET_SPEC , 18 > { INT_EVENT0_ISET_SRXFIFOTRG_W :: new (self) } # [doc = "Bit 19 - Slave Transmit FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_stxfifotrg (& mut self) -> INT_EVENT0_ISET_STXFIFOTRG_W < INT_EVENT0_ISET_SPEC , 19 > { INT_EVENT0_ISET_STXFIFOTRG_W :: new (self) } # [doc = "Bit 20 - RXFIFO full event. This interrupt is set if an RX FIFO is full."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_srxfifofull (& mut self) -> INT_EVENT0_ISET_SRXFIFOFULL_W < INT_EVENT0_ISET_SPEC , 20 > { INT_EVENT0_ISET_SRXFIFOFULL_W :: new (self) } # [doc = "Bit 21 - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_stxempty (& mut self) -> INT_EVENT0_ISET_STXEMPTY_W < INT_EVENT0_ISET_SPEC , 21 > { INT_EVENT0_ISET_STXEMPTY_W :: new (self) } # [doc = "Bit 22 - Start Condition Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_sstart (& mut self) -> INT_EVENT0_ISET_SSTART_W < INT_EVENT0_ISET_SPEC , 22 > { INT_EVENT0_ISET_SSTART_W :: new (self) } # [doc = "Bit 23 - Stop Condition Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_sstop (& mut self) -> INT_EVENT0_ISET_SSTOP_W < INT_EVENT0_ISET_SPEC , 23 > { INT_EVENT0_ISET_SSTOP_W :: new (self) } # [doc = "Bit 24 - General Call Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_sgencall (& mut self) -> INT_EVENT0_ISET_SGENCALL_W < INT_EVENT0_ISET_SPEC , 24 > { INT_EVENT0_ISET_SGENCALL_W :: new (self) } # [doc = "Bit 25 - DMA Done 1 on Event Channel 2"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_sdma_done1_2 (& mut self) -> INT_EVENT0_ISET_SDMA_DONE1_2_W < INT_EVENT0_ISET_SPEC , 25 > { INT_EVENT0_ISET_SDMA_DONE1_2_W :: new (self) } # [doc = "Bit 26 - DMA Done 1 on Event Channel 3"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_sdma_done1_3 (& mut self) -> INT_EVENT0_ISET_SDMA_DONE1_3_W < INT_EVENT0_ISET_SPEC , 26 > { INT_EVENT0_ISET_SDMA_DONE1_3_W :: new (self) } # [doc = "Bit 27 - Slave RX Pec Error Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_spec_rx_err (& mut self) -> INT_EVENT0_ISET_SPEC_RX_ERR_W < INT_EVENT0_ISET_SPEC , 27 > { INT_EVENT0_ISET_SPEC_RX_ERR_W :: new (self) } # [doc = "Bit 28 - Slave TX FIFO underflow"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_stx_unfl (& mut self) -> INT_EVENT0_ISET_STX_UNFL_W < INT_EVENT0_ISET_SPEC , 28 > { INT_EVENT0_ISET_STX_UNFL_W :: new (self) } # [doc = "Bit 29 - Slave RX FIFO overflow"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_srx_ovfl (& mut self) -> INT_EVENT0_ISET_SRX_OVFL_W < INT_EVENT0_ISET_SPEC , 29 > { INT_EVENT0_ISET_SRX_OVFL_W :: new (self) } # [doc = "Bit 30 - Slave Arbitration Lost"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_sarblost (& mut self) -> INT_EVENT0_ISET_SARBLOST_W < INT_EVENT0_ISET_SPEC , 30 > { INT_EVENT0_ISET_SARBLOST_W :: new (self) } # [doc = "Bit 31 - Interrupt overflow"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_intr_ovfl (& mut self) -> INT_EVENT0_ISET_INTR_OVFL_W < INT_EVENT0_ISET_SPEC , 31 > { INT_EVENT0_ISET_INTR_OVFL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_ISET_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event0_iset::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT0_ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT0_ISET to value 0"]
impl crate :: Resettable for INT_EVENT0_ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_ICLR (w) register accessor: Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_iclr`]
module"]
pub type INT_EVENT0_ICLR = crate :: Reg < int_event0_iclr :: INT_EVENT0_ICLR_SPEC > ; # [doc = "Interrupt clear"]
pub mod int_event0_iclr { # [doc = "Register `INT_EVENT0_ICLR` writer"]
pub type W = crate :: W < INT_EVENT0_ICLR_SPEC > ; # [doc = "Master Receive Data Interrupt Signals that a byte has been received\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_MRXDONE_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_MRXDONE_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_MRXDONE_CLR = 1 , } impl From < INT_EVENT0_ICLR_MRXDONE_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_MRXDONE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_MRXDONE` writer - Master Receive Data Interrupt Signals that a byte has been received"]
pub type INT_EVENT0_ICLR_MRXDONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_MRXDONE_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_MRXDONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_mrxdone_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MRXDONE_AW :: INT_EVENT0_ICLR_MRXDONE_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_mrxdone_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MRXDONE_AW :: INT_EVENT0_ICLR_MRXDONE_CLR) } } # [doc = "Master Transmit Transaction completed Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_MTXDONE_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_MTXDONE_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_MTXDONE_CLR = 1 , } impl From < INT_EVENT0_ICLR_MTXDONE_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_MTXDONE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_MTXDONE` writer - Master Transmit Transaction completed Interrupt"]
pub type INT_EVENT0_ICLR_MTXDONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_MTXDONE_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_MTXDONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_mtxdone_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MTXDONE_AW :: INT_EVENT0_ICLR_MTXDONE_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_mtxdone_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MTXDONE_AW :: INT_EVENT0_ICLR_MTXDONE_CLR) } } # [doc = "Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_MRXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_MRXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_MRXFIFOTRG_CLR = 1 , } impl From < INT_EVENT0_ICLR_MRXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_MRXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_MRXFIFOTRG` writer - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT0_ICLR_MRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_MRXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_MRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_mrxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MRXFIFOTRG_AW :: INT_EVENT0_ICLR_MRXFIFOTRG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_mrxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MRXFIFOTRG_AW :: INT_EVENT0_ICLR_MRXFIFOTRG_CLR) } } # [doc = "Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_MTXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_MTXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_MTXFIFOTRG_CLR = 1 , } impl From < INT_EVENT0_ICLR_MTXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_MTXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_MTXFIFOTRG` writer - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT0_ICLR_MTXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_MTXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_MTXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_mtxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MTXFIFOTRG_AW :: INT_EVENT0_ICLR_MTXFIFOTRG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_mtxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MTXFIFOTRG_AW :: INT_EVENT0_ICLR_MTXFIFOTRG_CLR) } } # [doc = "RXFIFO full event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_MRXFIFOFULL_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_MRXFIFOFULL_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_MRXFIFOFULL_CLR = 1 , } impl From < INT_EVENT0_ICLR_MRXFIFOFULL_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_MRXFIFOFULL_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_MRXFIFOFULL` writer - RXFIFO full event."]
pub type INT_EVENT0_ICLR_MRXFIFOFULL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_MRXFIFOFULL_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_MRXFIFOFULL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_mrxfifofull_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MRXFIFOFULL_AW :: INT_EVENT0_ICLR_MRXFIFOFULL_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_mrxfifofull_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MRXFIFOFULL_AW :: INT_EVENT0_ICLR_MRXFIFOFULL_CLR) } } # [doc = "Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_MTXEMPTY_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_MTXEMPTY_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_MTXEMPTY_CLR = 1 , } impl From < INT_EVENT0_ICLR_MTXEMPTY_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_MTXEMPTY_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_MTXEMPTY` writer - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
pub type INT_EVENT0_ICLR_MTXEMPTY_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_MTXEMPTY_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_MTXEMPTY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_mtxempty_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MTXEMPTY_AW :: INT_EVENT0_ICLR_MTXEMPTY_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_mtxempty_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MTXEMPTY_AW :: INT_EVENT0_ICLR_MTXEMPTY_CLR) } } # [doc = "Address/Data NACK Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_MNACK_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_MNACK_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_MNACK_CLR = 1 , } impl From < INT_EVENT0_ICLR_MNACK_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_MNACK_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_MNACK` writer - Address/Data NACK Interrupt"]
pub type INT_EVENT0_ICLR_MNACK_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_MNACK_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_MNACK_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_mnack_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MNACK_AW :: INT_EVENT0_ICLR_MNACK_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_mnack_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MNACK_AW :: INT_EVENT0_ICLR_MNACK_CLR) } } # [doc = "START Detection Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_MSTART_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_MSTART_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_MSTART_CLR = 1 , } impl From < INT_EVENT0_ICLR_MSTART_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_MSTART_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_MSTART` writer - START Detection Interrupt"]
pub type INT_EVENT0_ICLR_MSTART_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_MSTART_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_MSTART_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_mstart_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MSTART_AW :: INT_EVENT0_ICLR_MSTART_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_mstart_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MSTART_AW :: INT_EVENT0_ICLR_MSTART_CLR) } } # [doc = "STOP Detection Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_MSTOP_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_MSTOP_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_MSTOP_CLR = 1 , } impl From < INT_EVENT0_ICLR_MSTOP_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_MSTOP_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_MSTOP` writer - STOP Detection Interrupt"]
pub type INT_EVENT0_ICLR_MSTOP_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_MSTOP_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_MSTOP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_mstop_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MSTOP_AW :: INT_EVENT0_ICLR_MSTOP_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_mstop_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MSTOP_AW :: INT_EVENT0_ICLR_MSTOP_CLR) } } # [doc = "Arbitration Lost Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_MARBLOST_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_MARBLOST_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_MARBLOST_CLR = 1 , } impl From < INT_EVENT0_ICLR_MARBLOST_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_MARBLOST_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_MARBLOST` writer - Arbitration Lost Interrupt"]
pub type INT_EVENT0_ICLR_MARBLOST_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_MARBLOST_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_MARBLOST_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_marblost_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MARBLOST_AW :: INT_EVENT0_ICLR_MARBLOST_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_marblost_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MARBLOST_AW :: INT_EVENT0_ICLR_MARBLOST_CLR) } } # [doc = "DMA Done 1 on Event Channel 2\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_MDMA_DONE1_2_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_MDMA_DONE1_2_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_MDMA_DONE1_2_CLR = 1 , } impl From < INT_EVENT0_ICLR_MDMA_DONE1_2_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_MDMA_DONE1_2_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_MDMA_DONE1_2` writer - DMA Done 1 on Event Channel 2"]
pub type INT_EVENT0_ICLR_MDMA_DONE1_2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_MDMA_DONE1_2_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_MDMA_DONE1_2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_mdma_done1_2_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MDMA_DONE1_2_AW :: INT_EVENT0_ICLR_MDMA_DONE1_2_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_mdma_done1_2_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MDMA_DONE1_2_AW :: INT_EVENT0_ICLR_MDMA_DONE1_2_CLR) } } # [doc = "DMA Done 1 on Event Channel 3\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_MDMA_DONE1_3_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_MDMA_DONE1_3_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_MDMA_DONE1_3_CLR = 1 , } impl From < INT_EVENT0_ICLR_MDMA_DONE1_3_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_MDMA_DONE1_3_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_MDMA_DONE1_3` writer - DMA Done 1 on Event Channel 3"]
pub type INT_EVENT0_ICLR_MDMA_DONE1_3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_MDMA_DONE1_3_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_MDMA_DONE1_3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_mdma_done1_3_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MDMA_DONE1_3_AW :: INT_EVENT0_ICLR_MDMA_DONE1_3_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_mdma_done1_3_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MDMA_DONE1_3_AW :: INT_EVENT0_ICLR_MDMA_DONE1_3_CLR) } } # [doc = "Master RX Pec Error Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_MPEC_RX_ERR_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_MPEC_RX_ERR_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_MPEC_RX_ERR_CLR = 1 , } impl From < INT_EVENT0_ICLR_MPEC_RX_ERR_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_MPEC_RX_ERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_MPEC_RX_ERR` writer - Master RX Pec Error Interrupt"]
pub type INT_EVENT0_ICLR_MPEC_RX_ERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_MPEC_RX_ERR_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_MPEC_RX_ERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_mpec_rx_err_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MPEC_RX_ERR_AW :: INT_EVENT0_ICLR_MPEC_RX_ERR_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_mpec_rx_err_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MPEC_RX_ERR_AW :: INT_EVENT0_ICLR_MPEC_RX_ERR_CLR) } } # [doc = "Timeout A interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_TIMEOUTA_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_TIMEOUTA_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_TIMEOUTA_CLR = 1 , } impl From < INT_EVENT0_ICLR_TIMEOUTA_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_TIMEOUTA_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_TIMEOUTA` writer - Timeout A interrupt"]
pub type INT_EVENT0_ICLR_TIMEOUTA_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_TIMEOUTA_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_TIMEOUTA_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_timeouta_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_TIMEOUTA_AW :: INT_EVENT0_ICLR_TIMEOUTA_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_timeouta_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_TIMEOUTA_AW :: INT_EVENT0_ICLR_TIMEOUTA_CLR) } } # [doc = "Timeout B Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_TIMEOUTB_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_TIMEOUTB_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_TIMEOUTB_CLR = 1 , } impl From < INT_EVENT0_ICLR_TIMEOUTB_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_TIMEOUTB_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_TIMEOUTB` writer - Timeout B Interrupt"]
pub type INT_EVENT0_ICLR_TIMEOUTB_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_TIMEOUTB_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_TIMEOUTB_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_timeoutb_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_TIMEOUTB_AW :: INT_EVENT0_ICLR_TIMEOUTB_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_timeoutb_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_TIMEOUTB_AW :: INT_EVENT0_ICLR_TIMEOUTB_CLR) } } # [doc = "Slave Receive Data Interrupt Signals that a byte has been received\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_SRXDONE_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_SRXDONE_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_SRXDONE_CLR = 1 , } impl From < INT_EVENT0_ICLR_SRXDONE_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_SRXDONE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_SRXDONE` writer - Slave Receive Data Interrupt Signals that a byte has been received"]
pub type INT_EVENT0_ICLR_SRXDONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_SRXDONE_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_SRXDONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_srxdone_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SRXDONE_AW :: INT_EVENT0_ICLR_SRXDONE_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_srxdone_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SRXDONE_AW :: INT_EVENT0_ICLR_SRXDONE_CLR) } } # [doc = "Slave Transmit Transaction completed Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_STXDONE_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_STXDONE_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_STXDONE_CLR = 1 , } impl From < INT_EVENT0_ICLR_STXDONE_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_STXDONE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_STXDONE` writer - Slave Transmit Transaction completed Interrupt"]
pub type INT_EVENT0_ICLR_STXDONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_STXDONE_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_STXDONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_stxdone_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_STXDONE_AW :: INT_EVENT0_ICLR_STXDONE_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_stxdone_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_STXDONE_AW :: INT_EVENT0_ICLR_STXDONE_CLR) } } # [doc = "Slave Receive FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_SRXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_SRXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_SRXFIFOTRG_CLR = 1 , } impl From < INT_EVENT0_ICLR_SRXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_SRXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_SRXFIFOTRG` writer - Slave Receive FIFO Trigger"]
pub type INT_EVENT0_ICLR_SRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_SRXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_SRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_srxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SRXFIFOTRG_AW :: INT_EVENT0_ICLR_SRXFIFOTRG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_srxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SRXFIFOTRG_AW :: INT_EVENT0_ICLR_SRXFIFOTRG_CLR) } } # [doc = "Slave Transmit FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_STXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_STXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_STXFIFOTRG_CLR = 1 , } impl From < INT_EVENT0_ICLR_STXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_STXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_STXFIFOTRG` writer - Slave Transmit FIFO Trigger"]
pub type INT_EVENT0_ICLR_STXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_STXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_STXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_stxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_STXFIFOTRG_AW :: INT_EVENT0_ICLR_STXFIFOTRG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_stxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_STXFIFOTRG_AW :: INT_EVENT0_ICLR_STXFIFOTRG_CLR) } } # [doc = "RXFIFO full event. This interrupt is set if an RX FIFO is full.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_SRXFIFOFULL_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_SRXFIFOFULL_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_SRXFIFOFULL_CLR = 1 , } impl From < INT_EVENT0_ICLR_SRXFIFOFULL_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_SRXFIFOFULL_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_SRXFIFOFULL` writer - RXFIFO full event. This interrupt is set if an RX FIFO is full."]
pub type INT_EVENT0_ICLR_SRXFIFOFULL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_SRXFIFOFULL_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_SRXFIFOFULL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_srxfifofull_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SRXFIFOFULL_AW :: INT_EVENT0_ICLR_SRXFIFOFULL_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_srxfifofull_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SRXFIFOFULL_AW :: INT_EVENT0_ICLR_SRXFIFOFULL_CLR) } } # [doc = "Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_STXEMPTY_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_STXEMPTY_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_STXEMPTY_CLR = 1 , } impl From < INT_EVENT0_ICLR_STXEMPTY_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_STXEMPTY_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_STXEMPTY` writer - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
pub type INT_EVENT0_ICLR_STXEMPTY_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_STXEMPTY_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_STXEMPTY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_stxempty_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_STXEMPTY_AW :: INT_EVENT0_ICLR_STXEMPTY_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_stxempty_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_STXEMPTY_AW :: INT_EVENT0_ICLR_STXEMPTY_CLR) } } # [doc = "Slave START Detection Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_SSTART_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_SSTART_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_SSTART_CLR = 1 , } impl From < INT_EVENT0_ICLR_SSTART_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_SSTART_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_SSTART` writer - Slave START Detection Interrupt"]
pub type INT_EVENT0_ICLR_SSTART_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_SSTART_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_SSTART_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_sstart_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SSTART_AW :: INT_EVENT0_ICLR_SSTART_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_sstart_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SSTART_AW :: INT_EVENT0_ICLR_SSTART_CLR) } } # [doc = "Slave STOP Detection Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_SSTOP_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_SSTOP_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_SSTOP_CLR = 1 , } impl From < INT_EVENT0_ICLR_SSTOP_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_SSTOP_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_SSTOP` writer - Slave STOP Detection Interrupt"]
pub type INT_EVENT0_ICLR_SSTOP_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_SSTOP_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_SSTOP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_sstop_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SSTOP_AW :: INT_EVENT0_ICLR_SSTOP_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_sstop_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SSTOP_AW :: INT_EVENT0_ICLR_SSTOP_CLR) } } # [doc = "General Call Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_SGENCALL_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_SGENCALL_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_SGENCALL_CLR = 1 , } impl From < INT_EVENT0_ICLR_SGENCALL_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_SGENCALL_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_SGENCALL` writer - General Call Interrupt"]
pub type INT_EVENT0_ICLR_SGENCALL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_SGENCALL_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_SGENCALL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_sgencall_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SGENCALL_AW :: INT_EVENT0_ICLR_SGENCALL_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_sgencall_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SGENCALL_AW :: INT_EVENT0_ICLR_SGENCALL_CLR) } } # [doc = "DMA Done 1 on Event Channel 2\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_SDMA_DONE1_2_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_SDMA_DONE1_2_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_SDMA_DONE1_2_CLR = 1 , } impl From < INT_EVENT0_ICLR_SDMA_DONE1_2_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_SDMA_DONE1_2_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_SDMA_DONE1_2` writer - DMA Done 1 on Event Channel 2"]
pub type INT_EVENT0_ICLR_SDMA_DONE1_2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_SDMA_DONE1_2_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_SDMA_DONE1_2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_sdma_done1_2_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SDMA_DONE1_2_AW :: INT_EVENT0_ICLR_SDMA_DONE1_2_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_sdma_done1_2_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SDMA_DONE1_2_AW :: INT_EVENT0_ICLR_SDMA_DONE1_2_CLR) } } # [doc = "DMA Done 1 on Event Channel 3\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_SDMA_DONE1_3_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_SDMA_DONE1_3_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_SDMA_DONE1_3_CLR = 1 , } impl From < INT_EVENT0_ICLR_SDMA_DONE1_3_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_SDMA_DONE1_3_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_SDMA_DONE1_3` writer - DMA Done 1 on Event Channel 3"]
pub type INT_EVENT0_ICLR_SDMA_DONE1_3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_SDMA_DONE1_3_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_SDMA_DONE1_3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_sdma_done1_3_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SDMA_DONE1_3_AW :: INT_EVENT0_ICLR_SDMA_DONE1_3_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_sdma_done1_3_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SDMA_DONE1_3_AW :: INT_EVENT0_ICLR_SDMA_DONE1_3_CLR) } } # [doc = "Slave RX Pec Error Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_SPEC_RX_ERR_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_SPEC_RX_ERR_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_SPEC_RX_ERR_CLR = 1 , } impl From < INT_EVENT0_ICLR_SPEC_RX_ERR_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_SPEC_RX_ERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_SPEC_RX_ERR` writer - Slave RX Pec Error Interrupt"]
pub type INT_EVENT0_ICLR_SPEC_RX_ERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_SPEC_RX_ERR_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_SPEC_RX_ERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_spec_rx_err_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SPEC_RX_ERR_AW :: INT_EVENT0_ICLR_SPEC_RX_ERR_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_spec_rx_err_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SPEC_RX_ERR_AW :: INT_EVENT0_ICLR_SPEC_RX_ERR_CLR) } } # [doc = "Slave TX FIFO underflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_STX_UNFL_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_STX_UNFL_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_STX_UNFL_CLR = 1 , } impl From < INT_EVENT0_ICLR_STX_UNFL_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_STX_UNFL_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_STX_UNFL` writer - Slave TX FIFO underflow"]
pub type INT_EVENT0_ICLR_STX_UNFL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_STX_UNFL_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_STX_UNFL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_stx_unfl_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_STX_UNFL_AW :: INT_EVENT0_ICLR_STX_UNFL_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_stx_unfl_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_STX_UNFL_AW :: INT_EVENT0_ICLR_STX_UNFL_CLR) } } # [doc = "Slave RX FIFO overflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_SRX_OVFL_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_SRX_OVFL_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_SRX_OVFL_CLR = 1 , } impl From < INT_EVENT0_ICLR_SRX_OVFL_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_SRX_OVFL_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_SRX_OVFL` writer - Slave RX FIFO overflow"]
pub type INT_EVENT0_ICLR_SRX_OVFL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_SRX_OVFL_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_SRX_OVFL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_srx_ovfl_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SRX_OVFL_AW :: INT_EVENT0_ICLR_SRX_OVFL_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_srx_ovfl_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SRX_OVFL_AW :: INT_EVENT0_ICLR_SRX_OVFL_CLR) } } # [doc = "Slave Arbitration Lost\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_SARBLOST_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_SARBLOST_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_SARBLOST_CLR = 1 , } impl From < INT_EVENT0_ICLR_SARBLOST_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_SARBLOST_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_SARBLOST` writer - Slave Arbitration Lost"]
pub type INT_EVENT0_ICLR_SARBLOST_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_SARBLOST_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_SARBLOST_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_sarblost_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SARBLOST_AW :: INT_EVENT0_ICLR_SARBLOST_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_sarblost_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SARBLOST_AW :: INT_EVENT0_ICLR_SARBLOST_CLR) } } # [doc = "Interrupt overflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_INTR_OVFL_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_INTR_OVFL_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_INTR_OVFL_CLR = 1 , } impl From < INT_EVENT0_ICLR_INTR_OVFL_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_INTR_OVFL_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_INTR_OVFL` writer - Interrupt overflow"]
pub type INT_EVENT0_ICLR_INTR_OVFL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_INTR_OVFL_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_INTR_OVFL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_intr_ovfl_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_INTR_OVFL_AW :: INT_EVENT0_ICLR_INTR_OVFL_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_intr_ovfl_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_INTR_OVFL_AW :: INT_EVENT0_ICLR_INTR_OVFL_CLR) } } impl W { # [doc = "Bit 0 - Master Receive Data Interrupt Signals that a byte has been received"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_mrxdone (& mut self) -> INT_EVENT0_ICLR_MRXDONE_W < INT_EVENT0_ICLR_SPEC , 0 > { INT_EVENT0_ICLR_MRXDONE_W :: new (self) } # [doc = "Bit 1 - Master Transmit Transaction completed Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_mtxdone (& mut self) -> INT_EVENT0_ICLR_MTXDONE_W < INT_EVENT0_ICLR_SPEC , 1 > { INT_EVENT0_ICLR_MTXDONE_W :: new (self) } # [doc = "Bit 2 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_mrxfifotrg (& mut self) -> INT_EVENT0_ICLR_MRXFIFOTRG_W < INT_EVENT0_ICLR_SPEC , 2 > { INT_EVENT0_ICLR_MRXFIFOTRG_W :: new (self) } # [doc = "Bit 3 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_mtxfifotrg (& mut self) -> INT_EVENT0_ICLR_MTXFIFOTRG_W < INT_EVENT0_ICLR_SPEC , 3 > { INT_EVENT0_ICLR_MTXFIFOTRG_W :: new (self) } # [doc = "Bit 4 - RXFIFO full event."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_mrxfifofull (& mut self) -> INT_EVENT0_ICLR_MRXFIFOFULL_W < INT_EVENT0_ICLR_SPEC , 4 > { INT_EVENT0_ICLR_MRXFIFOFULL_W :: new (self) } # [doc = "Bit 5 - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_mtxempty (& mut self) -> INT_EVENT0_ICLR_MTXEMPTY_W < INT_EVENT0_ICLR_SPEC , 5 > { INT_EVENT0_ICLR_MTXEMPTY_W :: new (self) } # [doc = "Bit 7 - Address/Data NACK Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_mnack (& mut self) -> INT_EVENT0_ICLR_MNACK_W < INT_EVENT0_ICLR_SPEC , 7 > { INT_EVENT0_ICLR_MNACK_W :: new (self) } # [doc = "Bit 8 - START Detection Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_mstart (& mut self) -> INT_EVENT0_ICLR_MSTART_W < INT_EVENT0_ICLR_SPEC , 8 > { INT_EVENT0_ICLR_MSTART_W :: new (self) } # [doc = "Bit 9 - STOP Detection Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_mstop (& mut self) -> INT_EVENT0_ICLR_MSTOP_W < INT_EVENT0_ICLR_SPEC , 9 > { INT_EVENT0_ICLR_MSTOP_W :: new (self) } # [doc = "Bit 10 - Arbitration Lost Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_marblost (& mut self) -> INT_EVENT0_ICLR_MARBLOST_W < INT_EVENT0_ICLR_SPEC , 10 > { INT_EVENT0_ICLR_MARBLOST_W :: new (self) } # [doc = "Bit 11 - DMA Done 1 on Event Channel 2"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_mdma_done1_2 (& mut self) -> INT_EVENT0_ICLR_MDMA_DONE1_2_W < INT_EVENT0_ICLR_SPEC , 11 > { INT_EVENT0_ICLR_MDMA_DONE1_2_W :: new (self) } # [doc = "Bit 12 - DMA Done 1 on Event Channel 3"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_mdma_done1_3 (& mut self) -> INT_EVENT0_ICLR_MDMA_DONE1_3_W < INT_EVENT0_ICLR_SPEC , 12 > { INT_EVENT0_ICLR_MDMA_DONE1_3_W :: new (self) } # [doc = "Bit 13 - Master RX Pec Error Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_mpec_rx_err (& mut self) -> INT_EVENT0_ICLR_MPEC_RX_ERR_W < INT_EVENT0_ICLR_SPEC , 13 > { INT_EVENT0_ICLR_MPEC_RX_ERR_W :: new (self) } # [doc = "Bit 14 - Timeout A interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_timeouta (& mut self) -> INT_EVENT0_ICLR_TIMEOUTA_W < INT_EVENT0_ICLR_SPEC , 14 > { INT_EVENT0_ICLR_TIMEOUTA_W :: new (self) } # [doc = "Bit 15 - Timeout B Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_timeoutb (& mut self) -> INT_EVENT0_ICLR_TIMEOUTB_W < INT_EVENT0_ICLR_SPEC , 15 > { INT_EVENT0_ICLR_TIMEOUTB_W :: new (self) } # [doc = "Bit 16 - Slave Receive Data Interrupt Signals that a byte has been received"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_srxdone (& mut self) -> INT_EVENT0_ICLR_SRXDONE_W < INT_EVENT0_ICLR_SPEC , 16 > { INT_EVENT0_ICLR_SRXDONE_W :: new (self) } # [doc = "Bit 17 - Slave Transmit Transaction completed Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_stxdone (& mut self) -> INT_EVENT0_ICLR_STXDONE_W < INT_EVENT0_ICLR_SPEC , 17 > { INT_EVENT0_ICLR_STXDONE_W :: new (self) } # [doc = "Bit 18 - Slave Receive FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_srxfifotrg (& mut self) -> INT_EVENT0_ICLR_SRXFIFOTRG_W < INT_EVENT0_ICLR_SPEC , 18 > { INT_EVENT0_ICLR_SRXFIFOTRG_W :: new (self) } # [doc = "Bit 19 - Slave Transmit FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_stxfifotrg (& mut self) -> INT_EVENT0_ICLR_STXFIFOTRG_W < INT_EVENT0_ICLR_SPEC , 19 > { INT_EVENT0_ICLR_STXFIFOTRG_W :: new (self) } # [doc = "Bit 20 - RXFIFO full event. This interrupt is set if an RX FIFO is full."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_srxfifofull (& mut self) -> INT_EVENT0_ICLR_SRXFIFOFULL_W < INT_EVENT0_ICLR_SPEC , 20 > { INT_EVENT0_ICLR_SRXFIFOFULL_W :: new (self) } # [doc = "Bit 21 - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_stxempty (& mut self) -> INT_EVENT0_ICLR_STXEMPTY_W < INT_EVENT0_ICLR_SPEC , 21 > { INT_EVENT0_ICLR_STXEMPTY_W :: new (self) } # [doc = "Bit 22 - Slave START Detection Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_sstart (& mut self) -> INT_EVENT0_ICLR_SSTART_W < INT_EVENT0_ICLR_SPEC , 22 > { INT_EVENT0_ICLR_SSTART_W :: new (self) } # [doc = "Bit 23 - Slave STOP Detection Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_sstop (& mut self) -> INT_EVENT0_ICLR_SSTOP_W < INT_EVENT0_ICLR_SPEC , 23 > { INT_EVENT0_ICLR_SSTOP_W :: new (self) } # [doc = "Bit 24 - General Call Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_sgencall (& mut self) -> INT_EVENT0_ICLR_SGENCALL_W < INT_EVENT0_ICLR_SPEC , 24 > { INT_EVENT0_ICLR_SGENCALL_W :: new (self) } # [doc = "Bit 25 - DMA Done 1 on Event Channel 2"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_sdma_done1_2 (& mut self) -> INT_EVENT0_ICLR_SDMA_DONE1_2_W < INT_EVENT0_ICLR_SPEC , 25 > { INT_EVENT0_ICLR_SDMA_DONE1_2_W :: new (self) } # [doc = "Bit 26 - DMA Done 1 on Event Channel 3"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_sdma_done1_3 (& mut self) -> INT_EVENT0_ICLR_SDMA_DONE1_3_W < INT_EVENT0_ICLR_SPEC , 26 > { INT_EVENT0_ICLR_SDMA_DONE1_3_W :: new (self) } # [doc = "Bit 27 - Slave RX Pec Error Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_spec_rx_err (& mut self) -> INT_EVENT0_ICLR_SPEC_RX_ERR_W < INT_EVENT0_ICLR_SPEC , 27 > { INT_EVENT0_ICLR_SPEC_RX_ERR_W :: new (self) } # [doc = "Bit 28 - Slave TX FIFO underflow"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_stx_unfl (& mut self) -> INT_EVENT0_ICLR_STX_UNFL_W < INT_EVENT0_ICLR_SPEC , 28 > { INT_EVENT0_ICLR_STX_UNFL_W :: new (self) } # [doc = "Bit 29 - Slave RX FIFO overflow"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_srx_ovfl (& mut self) -> INT_EVENT0_ICLR_SRX_OVFL_W < INT_EVENT0_ICLR_SPEC , 29 > { INT_EVENT0_ICLR_SRX_OVFL_W :: new (self) } # [doc = "Bit 30 - Slave Arbitration Lost"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_sarblost (& mut self) -> INT_EVENT0_ICLR_SARBLOST_W < INT_EVENT0_ICLR_SPEC , 30 > { INT_EVENT0_ICLR_SARBLOST_W :: new (self) } # [doc = "Bit 31 - Interrupt overflow"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_intr_ovfl (& mut self) -> INT_EVENT0_ICLR_INTR_OVFL_W < INT_EVENT0_ICLR_SPEC , 31 > { INT_EVENT0_ICLR_INTR_OVFL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_ICLR_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event0_iclr::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT0_ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT0_ICLR to value 0"]
impl crate :: Resettable for INT_EVENT0_ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_IIDX (r) register accessor: Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_iidx`]
module"]
pub type INT_EVENT1_IIDX = crate :: Reg < int_event1_iidx :: INT_EVENT1_IIDX_SPEC > ; # [doc = "Interrupt index"]
pub mod int_event1_iidx { # [doc = "Register `INT_EVENT1_IIDX` reader"]
pub type R = crate :: R < INT_EVENT1_IIDX_SPEC > ; # [doc = "Field `INT_EVENT1_IIDX_STAT` reader - I2C Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in RIS and MISC. 15h-1Fh = Reserved"]
pub type INT_EVENT1_IIDX_STAT_R = crate :: FieldReader < INT_EVENT1_IIDX_STAT_A > ; # [doc = "I2C Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in RIS and MISC. 15h-1Fh = Reserved\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum INT_EVENT1_IIDX_STAT_A { # [doc = "0: NO_INTR"]
INT_EVENT1_IIDX_STAT_NO_INTR = 0 , # [doc = "1: MRXFIFOTRG"]
INT_EVENT1_IIDX_STAT_MRXFIFOTRG = 1 , # [doc = "2: MTXFIFOTRG"]
INT_EVENT1_IIDX_STAT_MTXFIFOTRG = 2 , # [doc = "3: SRXFIFOTRG"]
INT_EVENT1_IIDX_STAT_SRXFIFOTRG = 3 , # [doc = "4: STXFIFOTRG"]
INT_EVENT1_IIDX_STAT_STXFIFOTRG = 4 , } impl From < INT_EVENT1_IIDX_STAT_A > for u8 { # [inline (always)]
fn from (variant : INT_EVENT1_IIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for INT_EVENT1_IIDX_STAT_A { type Ux = u8 ; } impl INT_EVENT1_IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < INT_EVENT1_IIDX_STAT_A > { match self . bits { 0 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_NO_INTR) , 1 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_MRXFIFOTRG) , 2 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_MTXFIFOTRG) , 3 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_SRXFIFOTRG) , 4 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_STXFIFOTRG) , _ => None , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_no_intr (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_NO_INTR } # [doc = "MRXFIFOTRG"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_mrxfifotrg (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_MRXFIFOTRG } # [doc = "MTXFIFOTRG"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_mtxfifotrg (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_MTXFIFOTRG } # [doc = "SRXFIFOTRG"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_srxfifotrg (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_SRXFIFOTRG } # [doc = "STXFIFOTRG"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_stxfifotrg (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_STXFIFOTRG } } impl R { # [doc = "Bits 0:7 - I2C Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in RIS and MISC. 15h-1Fh = Reserved"]
# [inline (always)]
pub fn int_event1_iidx_stat (& self) -> INT_EVENT1_IIDX_STAT_R { INT_EVENT1_IIDX_STAT_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_IIDX_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event1_iidx::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT1_IIDX_SPEC { } # [doc = "`reset()` method sets INT_EVENT1_IIDX to value 0"]
impl crate :: Resettable for INT_EVENT1_IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_IMASK (rw) register accessor: Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_imask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_imask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_imask`]
module"]
pub type INT_EVENT1_IMASK = crate :: Reg < int_event1_imask :: INT_EVENT1_IMASK_SPEC > ; # [doc = "Interrupt mask"]
pub mod int_event1_imask { # [doc = "Register `INT_EVENT1_IMASK` reader"]
pub type R = crate :: R < INT_EVENT1_IMASK_SPEC > ; # [doc = "Register `INT_EVENT1_IMASK` writer"]
pub type W = crate :: W < INT_EVENT1_IMASK_SPEC > ; # [doc = "Field `INT_EVENT1_IMASK_MRXFIFOTRG` reader - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT1_IMASK_MRXFIFOTRG_R = crate :: BitReader < INT_EVENT1_IMASK_MRXFIFOTRG_A > ; # [doc = "Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_MRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_MRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_MRXFIFOTRG_SET = 1 , } impl From < INT_EVENT1_IMASK_MRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_MRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_MRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_MRXFIFOTRG_A { match self . bits { false => INT_EVENT1_IMASK_MRXFIFOTRG_A :: INT_EVENT1_IMASK_MRXFIFOTRG_CLR , true => INT_EVENT1_IMASK_MRXFIFOTRG_A :: INT_EVENT1_IMASK_MRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_mrxfifotrg_clr (& self) -> bool { * self == INT_EVENT1_IMASK_MRXFIFOTRG_A :: INT_EVENT1_IMASK_MRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_mrxfifotrg_set (& self) -> bool { * self == INT_EVENT1_IMASK_MRXFIFOTRG_A :: INT_EVENT1_IMASK_MRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT1_IMASK_MRXFIFOTRG` writer - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT1_IMASK_MRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_MRXFIFOTRG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_MRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_mrxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_MRXFIFOTRG_A :: INT_EVENT1_IMASK_MRXFIFOTRG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_mrxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_MRXFIFOTRG_A :: INT_EVENT1_IMASK_MRXFIFOTRG_SET) } } # [doc = "Field `INT_EVENT1_IMASK_MTXFIFOTRG` reader - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT1_IMASK_MTXFIFOTRG_R = crate :: BitReader < INT_EVENT1_IMASK_MTXFIFOTRG_A > ; # [doc = "Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_MTXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_MTXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_MTXFIFOTRG_SET = 1 , } impl From < INT_EVENT1_IMASK_MTXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_MTXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_MTXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_MTXFIFOTRG_A { match self . bits { false => INT_EVENT1_IMASK_MTXFIFOTRG_A :: INT_EVENT1_IMASK_MTXFIFOTRG_CLR , true => INT_EVENT1_IMASK_MTXFIFOTRG_A :: INT_EVENT1_IMASK_MTXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_mtxfifotrg_clr (& self) -> bool { * self == INT_EVENT1_IMASK_MTXFIFOTRG_A :: INT_EVENT1_IMASK_MTXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_mtxfifotrg_set (& self) -> bool { * self == INT_EVENT1_IMASK_MTXFIFOTRG_A :: INT_EVENT1_IMASK_MTXFIFOTRG_SET } } # [doc = "Field `INT_EVENT1_IMASK_MTXFIFOTRG` writer - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT1_IMASK_MTXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_MTXFIFOTRG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_MTXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_mtxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_MTXFIFOTRG_A :: INT_EVENT1_IMASK_MTXFIFOTRG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_mtxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_MTXFIFOTRG_A :: INT_EVENT1_IMASK_MTXFIFOTRG_SET) } } # [doc = "Field `INT_EVENT1_IMASK_SRXFIFOTRG` reader - Slave Receive FIFO Trigger"]
pub type INT_EVENT1_IMASK_SRXFIFOTRG_R = crate :: BitReader < INT_EVENT1_IMASK_SRXFIFOTRG_A > ; # [doc = "Slave Receive FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_SRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_SRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_SRXFIFOTRG_SET = 1 , } impl From < INT_EVENT1_IMASK_SRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_SRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_SRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_SRXFIFOTRG_A { match self . bits { false => INT_EVENT1_IMASK_SRXFIFOTRG_A :: INT_EVENT1_IMASK_SRXFIFOTRG_CLR , true => INT_EVENT1_IMASK_SRXFIFOTRG_A :: INT_EVENT1_IMASK_SRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_srxfifotrg_clr (& self) -> bool { * self == INT_EVENT1_IMASK_SRXFIFOTRG_A :: INT_EVENT1_IMASK_SRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_srxfifotrg_set (& self) -> bool { * self == INT_EVENT1_IMASK_SRXFIFOTRG_A :: INT_EVENT1_IMASK_SRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT1_IMASK_SRXFIFOTRG` writer - Slave Receive FIFO Trigger"]
pub type INT_EVENT1_IMASK_SRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_SRXFIFOTRG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_SRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_srxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_SRXFIFOTRG_A :: INT_EVENT1_IMASK_SRXFIFOTRG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_srxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_SRXFIFOTRG_A :: INT_EVENT1_IMASK_SRXFIFOTRG_SET) } } # [doc = "Field `INT_EVENT1_IMASK_STXFIFOTRG` reader - Slave Transmit FIFO Trigger"]
pub type INT_EVENT1_IMASK_STXFIFOTRG_R = crate :: BitReader < INT_EVENT1_IMASK_STXFIFOTRG_A > ; # [doc = "Slave Transmit FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_STXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_STXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_STXFIFOTRG_SET = 1 , } impl From < INT_EVENT1_IMASK_STXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_STXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_STXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_STXFIFOTRG_A { match self . bits { false => INT_EVENT1_IMASK_STXFIFOTRG_A :: INT_EVENT1_IMASK_STXFIFOTRG_CLR , true => INT_EVENT1_IMASK_STXFIFOTRG_A :: INT_EVENT1_IMASK_STXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_stxfifotrg_clr (& self) -> bool { * self == INT_EVENT1_IMASK_STXFIFOTRG_A :: INT_EVENT1_IMASK_STXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_stxfifotrg_set (& self) -> bool { * self == INT_EVENT1_IMASK_STXFIFOTRG_A :: INT_EVENT1_IMASK_STXFIFOTRG_SET } } # [doc = "Field `INT_EVENT1_IMASK_STXFIFOTRG` writer - Slave Transmit FIFO Trigger"]
pub type INT_EVENT1_IMASK_STXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_STXFIFOTRG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_STXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_stxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_STXFIFOTRG_A :: INT_EVENT1_IMASK_STXFIFOTRG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_stxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_STXFIFOTRG_A :: INT_EVENT1_IMASK_STXFIFOTRG_SET) } } impl R { # [doc = "Bit 0 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
pub fn int_event1_imask_mrxfifotrg (& self) -> INT_EVENT1_IMASK_MRXFIFOTRG_R { INT_EVENT1_IMASK_MRXFIFOTRG_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
pub fn int_event1_imask_mtxfifotrg (& self) -> INT_EVENT1_IMASK_MTXFIFOTRG_R { INT_EVENT1_IMASK_MTXFIFOTRG_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Slave Receive FIFO Trigger"]
# [inline (always)]
pub fn int_event1_imask_srxfifotrg (& self) -> INT_EVENT1_IMASK_SRXFIFOTRG_R { INT_EVENT1_IMASK_SRXFIFOTRG_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Slave Transmit FIFO Trigger"]
# [inline (always)]
pub fn int_event1_imask_stxfifotrg (& self) -> INT_EVENT1_IMASK_STXFIFOTRG_R { INT_EVENT1_IMASK_STXFIFOTRG_R :: new (((self . bits >> 3) & 1) != 0) } } impl W { # [doc = "Bit 0 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_mrxfifotrg (& mut self) -> INT_EVENT1_IMASK_MRXFIFOTRG_W < INT_EVENT1_IMASK_SPEC , 0 > { INT_EVENT1_IMASK_MRXFIFOTRG_W :: new (self) } # [doc = "Bit 1 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_mtxfifotrg (& mut self) -> INT_EVENT1_IMASK_MTXFIFOTRG_W < INT_EVENT1_IMASK_SPEC , 1 > { INT_EVENT1_IMASK_MTXFIFOTRG_W :: new (self) } # [doc = "Bit 2 - Slave Receive FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_srxfifotrg (& mut self) -> INT_EVENT1_IMASK_SRXFIFOTRG_W < INT_EVENT1_IMASK_SPEC , 2 > { INT_EVENT1_IMASK_SRXFIFOTRG_W :: new (self) } # [doc = "Bit 3 - Slave Transmit FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_stxfifotrg (& mut self) -> INT_EVENT1_IMASK_STXFIFOTRG_W < INT_EVENT1_IMASK_SPEC , 3 > { INT_EVENT1_IMASK_STXFIFOTRG_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_imask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_imask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_IMASK_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event1_imask::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT1_IMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`int_event1_imask::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT1_IMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT1_IMASK to value 0"]
impl crate :: Resettable for INT_EVENT1_IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_RIS (r) register accessor: Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_ris`]
module"]
pub type INT_EVENT1_RIS = crate :: Reg < int_event1_ris :: INT_EVENT1_RIS_SPEC > ; # [doc = "Raw interrupt status"]
pub mod int_event1_ris { # [doc = "Register `INT_EVENT1_RIS` reader"]
pub type R = crate :: R < INT_EVENT1_RIS_SPEC > ; # [doc = "Field `INT_EVENT1_RIS_MRXFIFOTRG` reader - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT1_RIS_MRXFIFOTRG_R = crate :: BitReader < INT_EVENT1_RIS_MRXFIFOTRG_A > ; # [doc = "Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_MRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_MRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_MRXFIFOTRG_SET = 1 , } impl From < INT_EVENT1_RIS_MRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_MRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_MRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_MRXFIFOTRG_A { match self . bits { false => INT_EVENT1_RIS_MRXFIFOTRG_A :: INT_EVENT1_RIS_MRXFIFOTRG_CLR , true => INT_EVENT1_RIS_MRXFIFOTRG_A :: INT_EVENT1_RIS_MRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_mrxfifotrg_clr (& self) -> bool { * self == INT_EVENT1_RIS_MRXFIFOTRG_A :: INT_EVENT1_RIS_MRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_mrxfifotrg_set (& self) -> bool { * self == INT_EVENT1_RIS_MRXFIFOTRG_A :: INT_EVENT1_RIS_MRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT1_RIS_MTXFIFOTRG` reader - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT1_RIS_MTXFIFOTRG_R = crate :: BitReader < INT_EVENT1_RIS_MTXFIFOTRG_A > ; # [doc = "Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_MTXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_MTXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_MTXFIFOTRG_SET = 1 , } impl From < INT_EVENT1_RIS_MTXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_MTXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_MTXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_MTXFIFOTRG_A { match self . bits { false => INT_EVENT1_RIS_MTXFIFOTRG_A :: INT_EVENT1_RIS_MTXFIFOTRG_CLR , true => INT_EVENT1_RIS_MTXFIFOTRG_A :: INT_EVENT1_RIS_MTXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_mtxfifotrg_clr (& self) -> bool { * self == INT_EVENT1_RIS_MTXFIFOTRG_A :: INT_EVENT1_RIS_MTXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_mtxfifotrg_set (& self) -> bool { * self == INT_EVENT1_RIS_MTXFIFOTRG_A :: INT_EVENT1_RIS_MTXFIFOTRG_SET } } # [doc = "Field `INT_EVENT1_RIS_SRXFIFOTRG` reader - Slave Receive FIFO Trigger"]
pub type INT_EVENT1_RIS_SRXFIFOTRG_R = crate :: BitReader < INT_EVENT1_RIS_SRXFIFOTRG_A > ; # [doc = "Slave Receive FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_SRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_SRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_SRXFIFOTRG_SET = 1 , } impl From < INT_EVENT1_RIS_SRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_SRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_SRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_SRXFIFOTRG_A { match self . bits { false => INT_EVENT1_RIS_SRXFIFOTRG_A :: INT_EVENT1_RIS_SRXFIFOTRG_CLR , true => INT_EVENT1_RIS_SRXFIFOTRG_A :: INT_EVENT1_RIS_SRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_srxfifotrg_clr (& self) -> bool { * self == INT_EVENT1_RIS_SRXFIFOTRG_A :: INT_EVENT1_RIS_SRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_srxfifotrg_set (& self) -> bool { * self == INT_EVENT1_RIS_SRXFIFOTRG_A :: INT_EVENT1_RIS_SRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT1_RIS_STXFIFOTRG` reader - Slave Transmit FIFO Trigger"]
pub type INT_EVENT1_RIS_STXFIFOTRG_R = crate :: BitReader < INT_EVENT1_RIS_STXFIFOTRG_A > ; # [doc = "Slave Transmit FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_STXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_STXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_STXFIFOTRG_SET = 1 , } impl From < INT_EVENT1_RIS_STXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_STXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_STXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_STXFIFOTRG_A { match self . bits { false => INT_EVENT1_RIS_STXFIFOTRG_A :: INT_EVENT1_RIS_STXFIFOTRG_CLR , true => INT_EVENT1_RIS_STXFIFOTRG_A :: INT_EVENT1_RIS_STXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_stxfifotrg_clr (& self) -> bool { * self == INT_EVENT1_RIS_STXFIFOTRG_A :: INT_EVENT1_RIS_STXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_stxfifotrg_set (& self) -> bool { * self == INT_EVENT1_RIS_STXFIFOTRG_A :: INT_EVENT1_RIS_STXFIFOTRG_SET } } impl R { # [doc = "Bit 0 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
pub fn int_event1_ris_mrxfifotrg (& self) -> INT_EVENT1_RIS_MRXFIFOTRG_R { INT_EVENT1_RIS_MRXFIFOTRG_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
pub fn int_event1_ris_mtxfifotrg (& self) -> INT_EVENT1_RIS_MTXFIFOTRG_R { INT_EVENT1_RIS_MTXFIFOTRG_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Slave Receive FIFO Trigger"]
# [inline (always)]
pub fn int_event1_ris_srxfifotrg (& self) -> INT_EVENT1_RIS_SRXFIFOTRG_R { INT_EVENT1_RIS_SRXFIFOTRG_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Slave Transmit FIFO Trigger"]
# [inline (always)]
pub fn int_event1_ris_stxfifotrg (& self) -> INT_EVENT1_RIS_STXFIFOTRG_R { INT_EVENT1_RIS_STXFIFOTRG_R :: new (((self . bits >> 3) & 1) != 0) } } # [doc = "Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_RIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event1_ris::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT1_RIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT1_RIS to value 0"]
impl crate :: Resettable for INT_EVENT1_RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_MIS (r) register accessor: Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_mis`]
module"]
pub type INT_EVENT1_MIS = crate :: Reg < int_event1_mis :: INT_EVENT1_MIS_SPEC > ; # [doc = "Masked interrupt status"]
pub mod int_event1_mis { # [doc = "Register `INT_EVENT1_MIS` reader"]
pub type R = crate :: R < INT_EVENT1_MIS_SPEC > ; # [doc = "Field `INT_EVENT1_MIS_MRXFIFOTRG` reader - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT1_MIS_MRXFIFOTRG_R = crate :: BitReader < INT_EVENT1_MIS_MRXFIFOTRG_A > ; # [doc = "Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_MRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_MRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_MRXFIFOTRG_SET = 1 , } impl From < INT_EVENT1_MIS_MRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_MRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_MRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_MRXFIFOTRG_A { match self . bits { false => INT_EVENT1_MIS_MRXFIFOTRG_A :: INT_EVENT1_MIS_MRXFIFOTRG_CLR , true => INT_EVENT1_MIS_MRXFIFOTRG_A :: INT_EVENT1_MIS_MRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_mrxfifotrg_clr (& self) -> bool { * self == INT_EVENT1_MIS_MRXFIFOTRG_A :: INT_EVENT1_MIS_MRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_mrxfifotrg_set (& self) -> bool { * self == INT_EVENT1_MIS_MRXFIFOTRG_A :: INT_EVENT1_MIS_MRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT1_MIS_MTXFIFOTRG` reader - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT1_MIS_MTXFIFOTRG_R = crate :: BitReader < INT_EVENT1_MIS_MTXFIFOTRG_A > ; # [doc = "Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_MTXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_MTXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_MTXFIFOTRG_SET = 1 , } impl From < INT_EVENT1_MIS_MTXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_MTXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_MTXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_MTXFIFOTRG_A { match self . bits { false => INT_EVENT1_MIS_MTXFIFOTRG_A :: INT_EVENT1_MIS_MTXFIFOTRG_CLR , true => INT_EVENT1_MIS_MTXFIFOTRG_A :: INT_EVENT1_MIS_MTXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_mtxfifotrg_clr (& self) -> bool { * self == INT_EVENT1_MIS_MTXFIFOTRG_A :: INT_EVENT1_MIS_MTXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_mtxfifotrg_set (& self) -> bool { * self == INT_EVENT1_MIS_MTXFIFOTRG_A :: INT_EVENT1_MIS_MTXFIFOTRG_SET } } # [doc = "Field `INT_EVENT1_MIS_SRXFIFOTRG` reader - Slave Receive FIFO Trigger"]
pub type INT_EVENT1_MIS_SRXFIFOTRG_R = crate :: BitReader < INT_EVENT1_MIS_SRXFIFOTRG_A > ; # [doc = "Slave Receive FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_SRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_SRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_SRXFIFOTRG_SET = 1 , } impl From < INT_EVENT1_MIS_SRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_SRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_SRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_SRXFIFOTRG_A { match self . bits { false => INT_EVENT1_MIS_SRXFIFOTRG_A :: INT_EVENT1_MIS_SRXFIFOTRG_CLR , true => INT_EVENT1_MIS_SRXFIFOTRG_A :: INT_EVENT1_MIS_SRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_srxfifotrg_clr (& self) -> bool { * self == INT_EVENT1_MIS_SRXFIFOTRG_A :: INT_EVENT1_MIS_SRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_srxfifotrg_set (& self) -> bool { * self == INT_EVENT1_MIS_SRXFIFOTRG_A :: INT_EVENT1_MIS_SRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT1_MIS_STXFIFOTRG` reader - Slave Transmit FIFO Trigger"]
pub type INT_EVENT1_MIS_STXFIFOTRG_R = crate :: BitReader < INT_EVENT1_MIS_STXFIFOTRG_A > ; # [doc = "Slave Transmit FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_STXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_STXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_STXFIFOTRG_SET = 1 , } impl From < INT_EVENT1_MIS_STXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_STXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_STXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_STXFIFOTRG_A { match self . bits { false => INT_EVENT1_MIS_STXFIFOTRG_A :: INT_EVENT1_MIS_STXFIFOTRG_CLR , true => INT_EVENT1_MIS_STXFIFOTRG_A :: INT_EVENT1_MIS_STXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_stxfifotrg_clr (& self) -> bool { * self == INT_EVENT1_MIS_STXFIFOTRG_A :: INT_EVENT1_MIS_STXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_stxfifotrg_set (& self) -> bool { * self == INT_EVENT1_MIS_STXFIFOTRG_A :: INT_EVENT1_MIS_STXFIFOTRG_SET } } impl R { # [doc = "Bit 0 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
pub fn int_event1_mis_mrxfifotrg (& self) -> INT_EVENT1_MIS_MRXFIFOTRG_R { INT_EVENT1_MIS_MRXFIFOTRG_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
pub fn int_event1_mis_mtxfifotrg (& self) -> INT_EVENT1_MIS_MTXFIFOTRG_R { INT_EVENT1_MIS_MTXFIFOTRG_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Slave Receive FIFO Trigger"]
# [inline (always)]
pub fn int_event1_mis_srxfifotrg (& self) -> INT_EVENT1_MIS_SRXFIFOTRG_R { INT_EVENT1_MIS_SRXFIFOTRG_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Slave Transmit FIFO Trigger"]
# [inline (always)]
pub fn int_event1_mis_stxfifotrg (& self) -> INT_EVENT1_MIS_STXFIFOTRG_R { INT_EVENT1_MIS_STXFIFOTRG_R :: new (((self . bits >> 3) & 1) != 0) } } # [doc = "Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_MIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event1_mis::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT1_MIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT1_MIS to value 0"]
impl crate :: Resettable for INT_EVENT1_MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_ISET (w) register accessor: Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_iset`]
module"]
pub type INT_EVENT1_ISET = crate :: Reg < int_event1_iset :: INT_EVENT1_ISET_SPEC > ; # [doc = "Interrupt set"]
pub mod int_event1_iset { # [doc = "Register `INT_EVENT1_ISET` writer"]
pub type W = crate :: W < INT_EVENT1_ISET_SPEC > ; # [doc = "Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_MRXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_MRXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_MRXFIFOTRG_SET = 1 , } impl From < INT_EVENT1_ISET_MRXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_MRXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_MRXFIFOTRG` writer - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT1_ISET_MRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_MRXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_MRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_mrxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_MRXFIFOTRG_AW :: INT_EVENT1_ISET_MRXFIFOTRG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_mrxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_MRXFIFOTRG_AW :: INT_EVENT1_ISET_MRXFIFOTRG_SET) } } # [doc = "Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_MTXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_MTXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_MTXFIFOTRG_SET = 1 , } impl From < INT_EVENT1_ISET_MTXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_MTXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_MTXFIFOTRG` writer - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT1_ISET_MTXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_MTXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_MTXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_mtxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_MTXFIFOTRG_AW :: INT_EVENT1_ISET_MTXFIFOTRG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_mtxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_MTXFIFOTRG_AW :: INT_EVENT1_ISET_MTXFIFOTRG_SET) } } # [doc = "Slave Receive FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_SRXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_SRXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_SRXFIFOTRG_SET = 1 , } impl From < INT_EVENT1_ISET_SRXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_SRXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_SRXFIFOTRG` writer - Slave Receive FIFO Trigger"]
pub type INT_EVENT1_ISET_SRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_SRXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_SRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_srxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_SRXFIFOTRG_AW :: INT_EVENT1_ISET_SRXFIFOTRG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_srxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_SRXFIFOTRG_AW :: INT_EVENT1_ISET_SRXFIFOTRG_SET) } } # [doc = "Slave Transmit FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_STXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_STXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_STXFIFOTRG_SET = 1 , } impl From < INT_EVENT1_ISET_STXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_STXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_STXFIFOTRG` writer - Slave Transmit FIFO Trigger"]
pub type INT_EVENT1_ISET_STXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_STXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_STXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_stxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_STXFIFOTRG_AW :: INT_EVENT1_ISET_STXFIFOTRG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_stxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_STXFIFOTRG_AW :: INT_EVENT1_ISET_STXFIFOTRG_SET) } } impl W { # [doc = "Bit 0 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_mrxfifotrg (& mut self) -> INT_EVENT1_ISET_MRXFIFOTRG_W < INT_EVENT1_ISET_SPEC , 0 > { INT_EVENT1_ISET_MRXFIFOTRG_W :: new (self) } # [doc = "Bit 1 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_mtxfifotrg (& mut self) -> INT_EVENT1_ISET_MTXFIFOTRG_W < INT_EVENT1_ISET_SPEC , 1 > { INT_EVENT1_ISET_MTXFIFOTRG_W :: new (self) } # [doc = "Bit 2 - Slave Receive FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_srxfifotrg (& mut self) -> INT_EVENT1_ISET_SRXFIFOTRG_W < INT_EVENT1_ISET_SPEC , 2 > { INT_EVENT1_ISET_SRXFIFOTRG_W :: new (self) } # [doc = "Bit 3 - Slave Transmit FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_stxfifotrg (& mut self) -> INT_EVENT1_ISET_STXFIFOTRG_W < INT_EVENT1_ISET_SPEC , 3 > { INT_EVENT1_ISET_STXFIFOTRG_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_ISET_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event1_iset::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT1_ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT1_ISET to value 0"]
impl crate :: Resettable for INT_EVENT1_ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_ICLR (w) register accessor: Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_iclr`]
module"]
pub type INT_EVENT1_ICLR = crate :: Reg < int_event1_iclr :: INT_EVENT1_ICLR_SPEC > ; # [doc = "Interrupt clear"]
pub mod int_event1_iclr { # [doc = "Register `INT_EVENT1_ICLR` writer"]
pub type W = crate :: W < INT_EVENT1_ICLR_SPEC > ; # [doc = "Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_MRXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_MRXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_MRXFIFOTRG_CLR = 1 , } impl From < INT_EVENT1_ICLR_MRXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_MRXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_MRXFIFOTRG` writer - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT1_ICLR_MRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_MRXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_MRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_mrxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_MRXFIFOTRG_AW :: INT_EVENT1_ICLR_MRXFIFOTRG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_mrxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_MRXFIFOTRG_AW :: INT_EVENT1_ICLR_MRXFIFOTRG_CLR) } } # [doc = "Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_MTXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_MTXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_MTXFIFOTRG_CLR = 1 , } impl From < INT_EVENT1_ICLR_MTXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_MTXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_MTXFIFOTRG` writer - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT1_ICLR_MTXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_MTXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_MTXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_mtxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_MTXFIFOTRG_AW :: INT_EVENT1_ICLR_MTXFIFOTRG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_mtxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_MTXFIFOTRG_AW :: INT_EVENT1_ICLR_MTXFIFOTRG_CLR) } } # [doc = "Slave Receive FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_SRXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_SRXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_SRXFIFOTRG_CLR = 1 , } impl From < INT_EVENT1_ICLR_SRXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_SRXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_SRXFIFOTRG` writer - Slave Receive FIFO Trigger"]
pub type INT_EVENT1_ICLR_SRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_SRXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_SRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_srxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_SRXFIFOTRG_AW :: INT_EVENT1_ICLR_SRXFIFOTRG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_srxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_SRXFIFOTRG_AW :: INT_EVENT1_ICLR_SRXFIFOTRG_CLR) } } # [doc = "Slave Transmit FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_STXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_STXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_STXFIFOTRG_CLR = 1 , } impl From < INT_EVENT1_ICLR_STXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_STXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_STXFIFOTRG` writer - Slave Transmit FIFO Trigger"]
pub type INT_EVENT1_ICLR_STXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_STXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_STXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_stxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_STXFIFOTRG_AW :: INT_EVENT1_ICLR_STXFIFOTRG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_stxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_STXFIFOTRG_AW :: INT_EVENT1_ICLR_STXFIFOTRG_CLR) } } impl W { # [doc = "Bit 0 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_mrxfifotrg (& mut self) -> INT_EVENT1_ICLR_MRXFIFOTRG_W < INT_EVENT1_ICLR_SPEC , 0 > { INT_EVENT1_ICLR_MRXFIFOTRG_W :: new (self) } # [doc = "Bit 1 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_mtxfifotrg (& mut self) -> INT_EVENT1_ICLR_MTXFIFOTRG_W < INT_EVENT1_ICLR_SPEC , 1 > { INT_EVENT1_ICLR_MTXFIFOTRG_W :: new (self) } # [doc = "Bit 2 - Slave Receive FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_srxfifotrg (& mut self) -> INT_EVENT1_ICLR_SRXFIFOTRG_W < INT_EVENT1_ICLR_SPEC , 2 > { INT_EVENT1_ICLR_SRXFIFOTRG_W :: new (self) } # [doc = "Bit 3 - Slave Transmit FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_stxfifotrg (& mut self) -> INT_EVENT1_ICLR_STXFIFOTRG_W < INT_EVENT1_ICLR_SPEC , 3 > { INT_EVENT1_ICLR_STXFIFOTRG_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_ICLR_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event1_iclr::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT1_ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT1_ICLR to value 0"]
impl crate :: Resettable for INT_EVENT1_ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_IIDX (r) register accessor: Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_iidx`]
module"]
pub type INT_EVENT2_IIDX = crate :: Reg < int_event2_iidx :: INT_EVENT2_IIDX_SPEC > ; # [doc = "Interrupt index"]
pub mod int_event2_iidx { # [doc = "Register `INT_EVENT2_IIDX` reader"]
pub type R = crate :: R < INT_EVENT2_IIDX_SPEC > ; # [doc = "Field `INT_EVENT2_IIDX_STAT` reader - I2C Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in RIS and MISC. 15h-1Fh = Reserved"]
pub type INT_EVENT2_IIDX_STAT_R = crate :: FieldReader < INT_EVENT2_IIDX_STAT_A > ; # [doc = "I2C Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in RIS and MISC. 15h-1Fh = Reserved\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum INT_EVENT2_IIDX_STAT_A { # [doc = "0: NO_INTR"]
INT_EVENT2_IIDX_STAT_NO_INTR = 0 , # [doc = "1: MRXFIFOTRG"]
INT_EVENT2_IIDX_STAT_MRXFIFOTRG = 1 , # [doc = "2: MTXFIFOTRG"]
INT_EVENT2_IIDX_STAT_MTXFIFOTRG = 2 , # [doc = "3: SRXFIFOTRG"]
INT_EVENT2_IIDX_STAT_SRXFIFOTRG = 3 , # [doc = "4: STXFIFOTRG"]
INT_EVENT2_IIDX_STAT_STXFIFOTRG = 4 , } impl From < INT_EVENT2_IIDX_STAT_A > for u8 { # [inline (always)]
fn from (variant : INT_EVENT2_IIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for INT_EVENT2_IIDX_STAT_A { type Ux = u8 ; } impl INT_EVENT2_IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < INT_EVENT2_IIDX_STAT_A > { match self . bits { 0 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_NO_INTR) , 1 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MRXFIFOTRG) , 2 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MTXFIFOTRG) , 3 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_SRXFIFOTRG) , 4 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_STXFIFOTRG) , _ => None , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_no_intr (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_NO_INTR } # [doc = "MRXFIFOTRG"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_mrxfifotrg (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MRXFIFOTRG } # [doc = "MTXFIFOTRG"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_mtxfifotrg (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MTXFIFOTRG } # [doc = "SRXFIFOTRG"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_srxfifotrg (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_SRXFIFOTRG } # [doc = "STXFIFOTRG"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_stxfifotrg (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_STXFIFOTRG } } impl R { # [doc = "Bits 0:7 - I2C Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in RIS and MISC. 15h-1Fh = Reserved"]
# [inline (always)]
pub fn int_event2_iidx_stat (& self) -> INT_EVENT2_IIDX_STAT_R { INT_EVENT2_IIDX_STAT_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_IIDX_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event2_iidx::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT2_IIDX_SPEC { } # [doc = "`reset()` method sets INT_EVENT2_IIDX to value 0"]
impl crate :: Resettable for INT_EVENT2_IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_IMASK (rw) register accessor: Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_imask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_imask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_imask`]
module"]
pub type INT_EVENT2_IMASK = crate :: Reg < int_event2_imask :: INT_EVENT2_IMASK_SPEC > ; # [doc = "Interrupt mask"]
pub mod int_event2_imask { # [doc = "Register `INT_EVENT2_IMASK` reader"]
pub type R = crate :: R < INT_EVENT2_IMASK_SPEC > ; # [doc = "Register `INT_EVENT2_IMASK` writer"]
pub type W = crate :: W < INT_EVENT2_IMASK_SPEC > ; # [doc = "Field `INT_EVENT2_IMASK_MRXFIFOTRG` reader - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT2_IMASK_MRXFIFOTRG_R = crate :: BitReader < INT_EVENT2_IMASK_MRXFIFOTRG_A > ; # [doc = "Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_IMASK_MRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT2_IMASK_MRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_IMASK_MRXFIFOTRG_SET = 1 , } impl From < INT_EVENT2_IMASK_MRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_IMASK_MRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_IMASK_MRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_IMASK_MRXFIFOTRG_A { match self . bits { false => INT_EVENT2_IMASK_MRXFIFOTRG_A :: INT_EVENT2_IMASK_MRXFIFOTRG_CLR , true => INT_EVENT2_IMASK_MRXFIFOTRG_A :: INT_EVENT2_IMASK_MRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_imask_mrxfifotrg_clr (& self) -> bool { * self == INT_EVENT2_IMASK_MRXFIFOTRG_A :: INT_EVENT2_IMASK_MRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_imask_mrxfifotrg_set (& self) -> bool { * self == INT_EVENT2_IMASK_MRXFIFOTRG_A :: INT_EVENT2_IMASK_MRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT2_IMASK_MRXFIFOTRG` writer - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT2_IMASK_MRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_IMASK_MRXFIFOTRG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT2_IMASK_MRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_imask_mrxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_MRXFIFOTRG_A :: INT_EVENT2_IMASK_MRXFIFOTRG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_imask_mrxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_MRXFIFOTRG_A :: INT_EVENT2_IMASK_MRXFIFOTRG_SET) } } # [doc = "Field `INT_EVENT2_IMASK_MTXFIFOTRG` reader - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT2_IMASK_MTXFIFOTRG_R = crate :: BitReader < INT_EVENT2_IMASK_MTXFIFOTRG_A > ; # [doc = "Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_IMASK_MTXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT2_IMASK_MTXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_IMASK_MTXFIFOTRG_SET = 1 , } impl From < INT_EVENT2_IMASK_MTXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_IMASK_MTXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_IMASK_MTXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_IMASK_MTXFIFOTRG_A { match self . bits { false => INT_EVENT2_IMASK_MTXFIFOTRG_A :: INT_EVENT2_IMASK_MTXFIFOTRG_CLR , true => INT_EVENT2_IMASK_MTXFIFOTRG_A :: INT_EVENT2_IMASK_MTXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_imask_mtxfifotrg_clr (& self) -> bool { * self == INT_EVENT2_IMASK_MTXFIFOTRG_A :: INT_EVENT2_IMASK_MTXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_imask_mtxfifotrg_set (& self) -> bool { * self == INT_EVENT2_IMASK_MTXFIFOTRG_A :: INT_EVENT2_IMASK_MTXFIFOTRG_SET } } # [doc = "Field `INT_EVENT2_IMASK_MTXFIFOTRG` writer - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT2_IMASK_MTXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_IMASK_MTXFIFOTRG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT2_IMASK_MTXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_imask_mtxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_MTXFIFOTRG_A :: INT_EVENT2_IMASK_MTXFIFOTRG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_imask_mtxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_MTXFIFOTRG_A :: INT_EVENT2_IMASK_MTXFIFOTRG_SET) } } # [doc = "Field `INT_EVENT2_IMASK_SRXFIFOTRG` reader - Slave Receive FIFO Trigger"]
pub type INT_EVENT2_IMASK_SRXFIFOTRG_R = crate :: BitReader < INT_EVENT2_IMASK_SRXFIFOTRG_A > ; # [doc = "Slave Receive FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_IMASK_SRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT2_IMASK_SRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_IMASK_SRXFIFOTRG_SET = 1 , } impl From < INT_EVENT2_IMASK_SRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_IMASK_SRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_IMASK_SRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_IMASK_SRXFIFOTRG_A { match self . bits { false => INT_EVENT2_IMASK_SRXFIFOTRG_A :: INT_EVENT2_IMASK_SRXFIFOTRG_CLR , true => INT_EVENT2_IMASK_SRXFIFOTRG_A :: INT_EVENT2_IMASK_SRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_imask_srxfifotrg_clr (& self) -> bool { * self == INT_EVENT2_IMASK_SRXFIFOTRG_A :: INT_EVENT2_IMASK_SRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_imask_srxfifotrg_set (& self) -> bool { * self == INT_EVENT2_IMASK_SRXFIFOTRG_A :: INT_EVENT2_IMASK_SRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT2_IMASK_SRXFIFOTRG` writer - Slave Receive FIFO Trigger"]
pub type INT_EVENT2_IMASK_SRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_IMASK_SRXFIFOTRG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT2_IMASK_SRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_imask_srxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_SRXFIFOTRG_A :: INT_EVENT2_IMASK_SRXFIFOTRG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_imask_srxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_SRXFIFOTRG_A :: INT_EVENT2_IMASK_SRXFIFOTRG_SET) } } # [doc = "Field `INT_EVENT2_IMASK_STXFIFOTRG` reader - Slave Transmit FIFO Trigger"]
pub type INT_EVENT2_IMASK_STXFIFOTRG_R = crate :: BitReader < INT_EVENT2_IMASK_STXFIFOTRG_A > ; # [doc = "Slave Transmit FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_IMASK_STXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT2_IMASK_STXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_IMASK_STXFIFOTRG_SET = 1 , } impl From < INT_EVENT2_IMASK_STXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_IMASK_STXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_IMASK_STXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_IMASK_STXFIFOTRG_A { match self . bits { false => INT_EVENT2_IMASK_STXFIFOTRG_A :: INT_EVENT2_IMASK_STXFIFOTRG_CLR , true => INT_EVENT2_IMASK_STXFIFOTRG_A :: INT_EVENT2_IMASK_STXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_imask_stxfifotrg_clr (& self) -> bool { * self == INT_EVENT2_IMASK_STXFIFOTRG_A :: INT_EVENT2_IMASK_STXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_imask_stxfifotrg_set (& self) -> bool { * self == INT_EVENT2_IMASK_STXFIFOTRG_A :: INT_EVENT2_IMASK_STXFIFOTRG_SET } } # [doc = "Field `INT_EVENT2_IMASK_STXFIFOTRG` writer - Slave Transmit FIFO Trigger"]
pub type INT_EVENT2_IMASK_STXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_IMASK_STXFIFOTRG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT2_IMASK_STXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_imask_stxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_STXFIFOTRG_A :: INT_EVENT2_IMASK_STXFIFOTRG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_imask_stxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_STXFIFOTRG_A :: INT_EVENT2_IMASK_STXFIFOTRG_SET) } } impl R { # [doc = "Bit 0 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
pub fn int_event2_imask_mrxfifotrg (& self) -> INT_EVENT2_IMASK_MRXFIFOTRG_R { INT_EVENT2_IMASK_MRXFIFOTRG_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
pub fn int_event2_imask_mtxfifotrg (& self) -> INT_EVENT2_IMASK_MTXFIFOTRG_R { INT_EVENT2_IMASK_MTXFIFOTRG_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Slave Receive FIFO Trigger"]
# [inline (always)]
pub fn int_event2_imask_srxfifotrg (& self) -> INT_EVENT2_IMASK_SRXFIFOTRG_R { INT_EVENT2_IMASK_SRXFIFOTRG_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Slave Transmit FIFO Trigger"]
# [inline (always)]
pub fn int_event2_imask_stxfifotrg (& self) -> INT_EVENT2_IMASK_STXFIFOTRG_R { INT_EVENT2_IMASK_STXFIFOTRG_R :: new (((self . bits >> 3) & 1) != 0) } } impl W { # [doc = "Bit 0 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event2_imask_mrxfifotrg (& mut self) -> INT_EVENT2_IMASK_MRXFIFOTRG_W < INT_EVENT2_IMASK_SPEC , 0 > { INT_EVENT2_IMASK_MRXFIFOTRG_W :: new (self) } # [doc = "Bit 1 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event2_imask_mtxfifotrg (& mut self) -> INT_EVENT2_IMASK_MTXFIFOTRG_W < INT_EVENT2_IMASK_SPEC , 1 > { INT_EVENT2_IMASK_MTXFIFOTRG_W :: new (self) } # [doc = "Bit 2 - Slave Receive FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event2_imask_srxfifotrg (& mut self) -> INT_EVENT2_IMASK_SRXFIFOTRG_W < INT_EVENT2_IMASK_SPEC , 2 > { INT_EVENT2_IMASK_SRXFIFOTRG_W :: new (self) } # [doc = "Bit 3 - Slave Transmit FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event2_imask_stxfifotrg (& mut self) -> INT_EVENT2_IMASK_STXFIFOTRG_W < INT_EVENT2_IMASK_SPEC , 3 > { INT_EVENT2_IMASK_STXFIFOTRG_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_imask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_imask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_IMASK_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event2_imask::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT2_IMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`int_event2_imask::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT2_IMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT2_IMASK to value 0"]
impl crate :: Resettable for INT_EVENT2_IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_RIS (r) register accessor: Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_ris`]
module"]
pub type INT_EVENT2_RIS = crate :: Reg < int_event2_ris :: INT_EVENT2_RIS_SPEC > ; # [doc = "Raw interrupt status"]
pub mod int_event2_ris { # [doc = "Register `INT_EVENT2_RIS` reader"]
pub type R = crate :: R < INT_EVENT2_RIS_SPEC > ; # [doc = "Field `INT_EVENT2_RIS_MRXFIFOTRG` reader - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT2_RIS_MRXFIFOTRG_R = crate :: BitReader < INT_EVENT2_RIS_MRXFIFOTRG_A > ; # [doc = "Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_RIS_MRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT2_RIS_MRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_RIS_MRXFIFOTRG_SET = 1 , } impl From < INT_EVENT2_RIS_MRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_RIS_MRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_RIS_MRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_RIS_MRXFIFOTRG_A { match self . bits { false => INT_EVENT2_RIS_MRXFIFOTRG_A :: INT_EVENT2_RIS_MRXFIFOTRG_CLR , true => INT_EVENT2_RIS_MRXFIFOTRG_A :: INT_EVENT2_RIS_MRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_ris_mrxfifotrg_clr (& self) -> bool { * self == INT_EVENT2_RIS_MRXFIFOTRG_A :: INT_EVENT2_RIS_MRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_ris_mrxfifotrg_set (& self) -> bool { * self == INT_EVENT2_RIS_MRXFIFOTRG_A :: INT_EVENT2_RIS_MRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT2_RIS_MTXFIFOTRG` reader - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT2_RIS_MTXFIFOTRG_R = crate :: BitReader < INT_EVENT2_RIS_MTXFIFOTRG_A > ; # [doc = "Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_RIS_MTXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT2_RIS_MTXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_RIS_MTXFIFOTRG_SET = 1 , } impl From < INT_EVENT2_RIS_MTXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_RIS_MTXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_RIS_MTXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_RIS_MTXFIFOTRG_A { match self . bits { false => INT_EVENT2_RIS_MTXFIFOTRG_A :: INT_EVENT2_RIS_MTXFIFOTRG_CLR , true => INT_EVENT2_RIS_MTXFIFOTRG_A :: INT_EVENT2_RIS_MTXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_ris_mtxfifotrg_clr (& self) -> bool { * self == INT_EVENT2_RIS_MTXFIFOTRG_A :: INT_EVENT2_RIS_MTXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_ris_mtxfifotrg_set (& self) -> bool { * self == INT_EVENT2_RIS_MTXFIFOTRG_A :: INT_EVENT2_RIS_MTXFIFOTRG_SET } } # [doc = "Field `INT_EVENT2_RIS_SRXFIFOTRG` reader - Slave Receive FIFO Trigger"]
pub type INT_EVENT2_RIS_SRXFIFOTRG_R = crate :: BitReader < INT_EVENT2_RIS_SRXFIFOTRG_A > ; # [doc = "Slave Receive FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_RIS_SRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT2_RIS_SRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_RIS_SRXFIFOTRG_SET = 1 , } impl From < INT_EVENT2_RIS_SRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_RIS_SRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_RIS_SRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_RIS_SRXFIFOTRG_A { match self . bits { false => INT_EVENT2_RIS_SRXFIFOTRG_A :: INT_EVENT2_RIS_SRXFIFOTRG_CLR , true => INT_EVENT2_RIS_SRXFIFOTRG_A :: INT_EVENT2_RIS_SRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_ris_srxfifotrg_clr (& self) -> bool { * self == INT_EVENT2_RIS_SRXFIFOTRG_A :: INT_EVENT2_RIS_SRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_ris_srxfifotrg_set (& self) -> bool { * self == INT_EVENT2_RIS_SRXFIFOTRG_A :: INT_EVENT2_RIS_SRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT2_RIS_STXFIFOTRG` reader - Slave Transmit FIFO Trigger"]
pub type INT_EVENT2_RIS_STXFIFOTRG_R = crate :: BitReader < INT_EVENT2_RIS_STXFIFOTRG_A > ; # [doc = "Slave Transmit FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_RIS_STXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT2_RIS_STXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_RIS_STXFIFOTRG_SET = 1 , } impl From < INT_EVENT2_RIS_STXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_RIS_STXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_RIS_STXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_RIS_STXFIFOTRG_A { match self . bits { false => INT_EVENT2_RIS_STXFIFOTRG_A :: INT_EVENT2_RIS_STXFIFOTRG_CLR , true => INT_EVENT2_RIS_STXFIFOTRG_A :: INT_EVENT2_RIS_STXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_ris_stxfifotrg_clr (& self) -> bool { * self == INT_EVENT2_RIS_STXFIFOTRG_A :: INT_EVENT2_RIS_STXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_ris_stxfifotrg_set (& self) -> bool { * self == INT_EVENT2_RIS_STXFIFOTRG_A :: INT_EVENT2_RIS_STXFIFOTRG_SET } } impl R { # [doc = "Bit 0 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
pub fn int_event2_ris_mrxfifotrg (& self) -> INT_EVENT2_RIS_MRXFIFOTRG_R { INT_EVENT2_RIS_MRXFIFOTRG_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
pub fn int_event2_ris_mtxfifotrg (& self) -> INT_EVENT2_RIS_MTXFIFOTRG_R { INT_EVENT2_RIS_MTXFIFOTRG_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Slave Receive FIFO Trigger"]
# [inline (always)]
pub fn int_event2_ris_srxfifotrg (& self) -> INT_EVENT2_RIS_SRXFIFOTRG_R { INT_EVENT2_RIS_SRXFIFOTRG_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Slave Transmit FIFO Trigger"]
# [inline (always)]
pub fn int_event2_ris_stxfifotrg (& self) -> INT_EVENT2_RIS_STXFIFOTRG_R { INT_EVENT2_RIS_STXFIFOTRG_R :: new (((self . bits >> 3) & 1) != 0) } } # [doc = "Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_RIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event2_ris::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT2_RIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT2_RIS to value 0"]
impl crate :: Resettable for INT_EVENT2_RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_MIS (r) register accessor: Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_mis`]
module"]
pub type INT_EVENT2_MIS = crate :: Reg < int_event2_mis :: INT_EVENT2_MIS_SPEC > ; # [doc = "Masked interrupt status"]
pub mod int_event2_mis { # [doc = "Register `INT_EVENT2_MIS` reader"]
pub type R = crate :: R < INT_EVENT2_MIS_SPEC > ; # [doc = "Field `INT_EVENT2_MIS_MRXFIFOTRG` reader - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT2_MIS_MRXFIFOTRG_R = crate :: BitReader < INT_EVENT2_MIS_MRXFIFOTRG_A > ; # [doc = "Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_MIS_MRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT2_MIS_MRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_MIS_MRXFIFOTRG_SET = 1 , } impl From < INT_EVENT2_MIS_MRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_MIS_MRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_MIS_MRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_MIS_MRXFIFOTRG_A { match self . bits { false => INT_EVENT2_MIS_MRXFIFOTRG_A :: INT_EVENT2_MIS_MRXFIFOTRG_CLR , true => INT_EVENT2_MIS_MRXFIFOTRG_A :: INT_EVENT2_MIS_MRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_mis_mrxfifotrg_clr (& self) -> bool { * self == INT_EVENT2_MIS_MRXFIFOTRG_A :: INT_EVENT2_MIS_MRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_mis_mrxfifotrg_set (& self) -> bool { * self == INT_EVENT2_MIS_MRXFIFOTRG_A :: INT_EVENT2_MIS_MRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT2_MIS_MTXFIFOTRG` reader - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT2_MIS_MTXFIFOTRG_R = crate :: BitReader < INT_EVENT2_MIS_MTXFIFOTRG_A > ; # [doc = "Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_MIS_MTXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT2_MIS_MTXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_MIS_MTXFIFOTRG_SET = 1 , } impl From < INT_EVENT2_MIS_MTXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_MIS_MTXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_MIS_MTXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_MIS_MTXFIFOTRG_A { match self . bits { false => INT_EVENT2_MIS_MTXFIFOTRG_A :: INT_EVENT2_MIS_MTXFIFOTRG_CLR , true => INT_EVENT2_MIS_MTXFIFOTRG_A :: INT_EVENT2_MIS_MTXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_mis_mtxfifotrg_clr (& self) -> bool { * self == INT_EVENT2_MIS_MTXFIFOTRG_A :: INT_EVENT2_MIS_MTXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_mis_mtxfifotrg_set (& self) -> bool { * self == INT_EVENT2_MIS_MTXFIFOTRG_A :: INT_EVENT2_MIS_MTXFIFOTRG_SET } } # [doc = "Field `INT_EVENT2_MIS_SRXFIFOTRG` reader - Slave Receive FIFO Trigger"]
pub type INT_EVENT2_MIS_SRXFIFOTRG_R = crate :: BitReader < INT_EVENT2_MIS_SRXFIFOTRG_A > ; # [doc = "Slave Receive FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_MIS_SRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT2_MIS_SRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_MIS_SRXFIFOTRG_SET = 1 , } impl From < INT_EVENT2_MIS_SRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_MIS_SRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_MIS_SRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_MIS_SRXFIFOTRG_A { match self . bits { false => INT_EVENT2_MIS_SRXFIFOTRG_A :: INT_EVENT2_MIS_SRXFIFOTRG_CLR , true => INT_EVENT2_MIS_SRXFIFOTRG_A :: INT_EVENT2_MIS_SRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_mis_srxfifotrg_clr (& self) -> bool { * self == INT_EVENT2_MIS_SRXFIFOTRG_A :: INT_EVENT2_MIS_SRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_mis_srxfifotrg_set (& self) -> bool { * self == INT_EVENT2_MIS_SRXFIFOTRG_A :: INT_EVENT2_MIS_SRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT2_MIS_STXFIFOTRG` reader - Slave Transmit FIFO Trigger"]
pub type INT_EVENT2_MIS_STXFIFOTRG_R = crate :: BitReader < INT_EVENT2_MIS_STXFIFOTRG_A > ; # [doc = "Slave Transmit FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_MIS_STXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT2_MIS_STXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_MIS_STXFIFOTRG_SET = 1 , } impl From < INT_EVENT2_MIS_STXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_MIS_STXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_MIS_STXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_MIS_STXFIFOTRG_A { match self . bits { false => INT_EVENT2_MIS_STXFIFOTRG_A :: INT_EVENT2_MIS_STXFIFOTRG_CLR , true => INT_EVENT2_MIS_STXFIFOTRG_A :: INT_EVENT2_MIS_STXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_mis_stxfifotrg_clr (& self) -> bool { * self == INT_EVENT2_MIS_STXFIFOTRG_A :: INT_EVENT2_MIS_STXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_mis_stxfifotrg_set (& self) -> bool { * self == INT_EVENT2_MIS_STXFIFOTRG_A :: INT_EVENT2_MIS_STXFIFOTRG_SET } } impl R { # [doc = "Bit 0 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
pub fn int_event2_mis_mrxfifotrg (& self) -> INT_EVENT2_MIS_MRXFIFOTRG_R { INT_EVENT2_MIS_MRXFIFOTRG_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
pub fn int_event2_mis_mtxfifotrg (& self) -> INT_EVENT2_MIS_MTXFIFOTRG_R { INT_EVENT2_MIS_MTXFIFOTRG_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Slave Receive FIFO Trigger"]
# [inline (always)]
pub fn int_event2_mis_srxfifotrg (& self) -> INT_EVENT2_MIS_SRXFIFOTRG_R { INT_EVENT2_MIS_SRXFIFOTRG_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Slave Transmit FIFO Trigger"]
# [inline (always)]
pub fn int_event2_mis_stxfifotrg (& self) -> INT_EVENT2_MIS_STXFIFOTRG_R { INT_EVENT2_MIS_STXFIFOTRG_R :: new (((self . bits >> 3) & 1) != 0) } } # [doc = "Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_MIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event2_mis::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT2_MIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT2_MIS to value 0"]
impl crate :: Resettable for INT_EVENT2_MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_ISET (w) register accessor: Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_iset`]
module"]
pub type INT_EVENT2_ISET = crate :: Reg < int_event2_iset :: INT_EVENT2_ISET_SPEC > ; # [doc = "Interrupt set"]
pub mod int_event2_iset { # [doc = "Register `INT_EVENT2_ISET` writer"]
pub type W = crate :: W < INT_EVENT2_ISET_SPEC > ; # [doc = "Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ISET_MRXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ISET_MRXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT2_ISET_MRXFIFOTRG_SET = 1 , } impl From < INT_EVENT2_ISET_MRXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ISET_MRXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ISET_MRXFIFOTRG` writer - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT2_ISET_MRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ISET_MRXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ISET_MRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iset_mrxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_MRXFIFOTRG_AW :: INT_EVENT2_ISET_MRXFIFOTRG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_iset_mrxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_MRXFIFOTRG_AW :: INT_EVENT2_ISET_MRXFIFOTRG_SET) } } # [doc = "Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ISET_MTXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ISET_MTXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT2_ISET_MTXFIFOTRG_SET = 1 , } impl From < INT_EVENT2_ISET_MTXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ISET_MTXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ISET_MTXFIFOTRG` writer - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT2_ISET_MTXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ISET_MTXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ISET_MTXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iset_mtxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_MTXFIFOTRG_AW :: INT_EVENT2_ISET_MTXFIFOTRG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_iset_mtxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_MTXFIFOTRG_AW :: INT_EVENT2_ISET_MTXFIFOTRG_SET) } } # [doc = "Slave Receive FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ISET_SRXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ISET_SRXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT2_ISET_SRXFIFOTRG_SET = 1 , } impl From < INT_EVENT2_ISET_SRXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ISET_SRXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ISET_SRXFIFOTRG` writer - Slave Receive FIFO Trigger"]
pub type INT_EVENT2_ISET_SRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ISET_SRXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ISET_SRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iset_srxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_SRXFIFOTRG_AW :: INT_EVENT2_ISET_SRXFIFOTRG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_iset_srxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_SRXFIFOTRG_AW :: INT_EVENT2_ISET_SRXFIFOTRG_SET) } } # [doc = "Slave Transmit FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ISET_STXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ISET_STXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT2_ISET_STXFIFOTRG_SET = 1 , } impl From < INT_EVENT2_ISET_STXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ISET_STXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ISET_STXFIFOTRG` writer - Slave Transmit FIFO Trigger"]
pub type INT_EVENT2_ISET_STXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ISET_STXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ISET_STXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iset_stxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_STXFIFOTRG_AW :: INT_EVENT2_ISET_STXFIFOTRG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_iset_stxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_STXFIFOTRG_AW :: INT_EVENT2_ISET_STXFIFOTRG_SET) } } impl W { # [doc = "Bit 0 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event2_iset_mrxfifotrg (& mut self) -> INT_EVENT2_ISET_MRXFIFOTRG_W < INT_EVENT2_ISET_SPEC , 0 > { INT_EVENT2_ISET_MRXFIFOTRG_W :: new (self) } # [doc = "Bit 1 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event2_iset_mtxfifotrg (& mut self) -> INT_EVENT2_ISET_MTXFIFOTRG_W < INT_EVENT2_ISET_SPEC , 1 > { INT_EVENT2_ISET_MTXFIFOTRG_W :: new (self) } # [doc = "Bit 2 - Slave Receive FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event2_iset_srxfifotrg (& mut self) -> INT_EVENT2_ISET_SRXFIFOTRG_W < INT_EVENT2_ISET_SPEC , 2 > { INT_EVENT2_ISET_SRXFIFOTRG_W :: new (self) } # [doc = "Bit 3 - Slave Transmit FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event2_iset_stxfifotrg (& mut self) -> INT_EVENT2_ISET_STXFIFOTRG_W < INT_EVENT2_ISET_SPEC , 3 > { INT_EVENT2_ISET_STXFIFOTRG_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_ISET_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event2_iset::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT2_ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT2_ISET to value 0"]
impl crate :: Resettable for INT_EVENT2_ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_ICLR (w) register accessor: Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_iclr`]
module"]
pub type INT_EVENT2_ICLR = crate :: Reg < int_event2_iclr :: INT_EVENT2_ICLR_SPEC > ; # [doc = "Interrupt clear"]
pub mod int_event2_iclr { # [doc = "Register `INT_EVENT2_ICLR` writer"]
pub type W = crate :: W < INT_EVENT2_ICLR_SPEC > ; # [doc = "Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ICLR_MRXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ICLR_MRXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT2_ICLR_MRXFIFOTRG_CLR = 1 , } impl From < INT_EVENT2_ICLR_MRXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ICLR_MRXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ICLR_MRXFIFOTRG` writer - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT2_ICLR_MRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ICLR_MRXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ICLR_MRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iclr_mrxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_MRXFIFOTRG_AW :: INT_EVENT2_ICLR_MRXFIFOTRG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_iclr_mrxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_MRXFIFOTRG_AW :: INT_EVENT2_ICLR_MRXFIFOTRG_CLR) } } # [doc = "Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ICLR_MTXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ICLR_MTXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT2_ICLR_MTXFIFOTRG_CLR = 1 , } impl From < INT_EVENT2_ICLR_MTXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ICLR_MTXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ICLR_MTXFIFOTRG` writer - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT2_ICLR_MTXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ICLR_MTXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ICLR_MTXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iclr_mtxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_MTXFIFOTRG_AW :: INT_EVENT2_ICLR_MTXFIFOTRG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_iclr_mtxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_MTXFIFOTRG_AW :: INT_EVENT2_ICLR_MTXFIFOTRG_CLR) } } # [doc = "Slave Receive FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ICLR_SRXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ICLR_SRXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT2_ICLR_SRXFIFOTRG_CLR = 1 , } impl From < INT_EVENT2_ICLR_SRXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ICLR_SRXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ICLR_SRXFIFOTRG` writer - Slave Receive FIFO Trigger"]
pub type INT_EVENT2_ICLR_SRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ICLR_SRXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ICLR_SRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iclr_srxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_SRXFIFOTRG_AW :: INT_EVENT2_ICLR_SRXFIFOTRG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_iclr_srxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_SRXFIFOTRG_AW :: INT_EVENT2_ICLR_SRXFIFOTRG_CLR) } } # [doc = "Slave Transmit FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ICLR_STXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ICLR_STXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT2_ICLR_STXFIFOTRG_CLR = 1 , } impl From < INT_EVENT2_ICLR_STXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ICLR_STXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ICLR_STXFIFOTRG` writer - Slave Transmit FIFO Trigger"]
pub type INT_EVENT2_ICLR_STXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ICLR_STXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ICLR_STXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iclr_stxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_STXFIFOTRG_AW :: INT_EVENT2_ICLR_STXFIFOTRG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_iclr_stxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_STXFIFOTRG_AW :: INT_EVENT2_ICLR_STXFIFOTRG_CLR) } } impl W { # [doc = "Bit 0 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event2_iclr_mrxfifotrg (& mut self) -> INT_EVENT2_ICLR_MRXFIFOTRG_W < INT_EVENT2_ICLR_SPEC , 0 > { INT_EVENT2_ICLR_MRXFIFOTRG_W :: new (self) } # [doc = "Bit 1 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event2_iclr_mtxfifotrg (& mut self) -> INT_EVENT2_ICLR_MTXFIFOTRG_W < INT_EVENT2_ICLR_SPEC , 1 > { INT_EVENT2_ICLR_MTXFIFOTRG_W :: new (self) } # [doc = "Bit 2 - Slave Receive FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event2_iclr_srxfifotrg (& mut self) -> INT_EVENT2_ICLR_SRXFIFOTRG_W < INT_EVENT2_ICLR_SPEC , 2 > { INT_EVENT2_ICLR_SRXFIFOTRG_W :: new (self) } # [doc = "Bit 3 - Slave Transmit FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event2_iclr_stxfifotrg (& mut self) -> INT_EVENT2_ICLR_STXFIFOTRG_W < INT_EVENT2_ICLR_SPEC , 3 > { INT_EVENT2_ICLR_STXFIFOTRG_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_ICLR_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event2_iclr::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT2_ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT2_ICLR to value 0"]
impl crate :: Resettable for INT_EVENT2_ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "EVT_MODE (rw) register accessor: Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`evt_mode::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@evt_mode`]
module"]
pub type EVT_MODE = crate :: Reg < evt_mode :: EVT_MODE_SPEC > ; # [doc = "Event Mode"]
pub mod evt_mode { # [doc = "Register `EVT_MODE` reader"]
pub type R = crate :: R < EVT_MODE_SPEC > ; # [doc = "Register `EVT_MODE` writer"]
pub type W = crate :: W < EVT_MODE_SPEC > ; # [doc = "Field `EVT_MODE_INT0_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT0\\]"]
pub type EVT_MODE_INT0_CFG_R = crate :: FieldReader < EVT_MODE_INT0_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT0\\]\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_INT0_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_INT0_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_INT0_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_INT0_CFG_HARDWARE = 2 , } impl From < EVT_MODE_INT0_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_INT0_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_INT0_CFG_A { type Ux = u8 ; } impl EVT_MODE_INT0_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_INT0_CFG_A > { match self . bits { 0 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_DISABLE) , 1 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_SOFTWARE) , 2 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_disable (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_software (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_hardware (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_HARDWARE } } # [doc = "Field `EVT_MODE_INT1_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT1\\]"]
pub type EVT_MODE_INT1_CFG_R = crate :: FieldReader < EVT_MODE_INT1_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT1\\]\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_INT1_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_INT1_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_INT1_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_INT1_CFG_HARDWARE = 2 , } impl From < EVT_MODE_INT1_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_INT1_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_INT1_CFG_A { type Ux = u8 ; } impl EVT_MODE_INT1_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_INT1_CFG_A > { match self . bits { 0 => Some (EVT_MODE_INT1_CFG_A :: EVT_MODE_INT1_CFG_DISABLE) , 1 => Some (EVT_MODE_INT1_CFG_A :: EVT_MODE_INT1_CFG_SOFTWARE) , 2 => Some (EVT_MODE_INT1_CFG_A :: EVT_MODE_INT1_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_int1_cfg_disable (& self) -> bool { * self == EVT_MODE_INT1_CFG_A :: EVT_MODE_INT1_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_int1_cfg_software (& self) -> bool { * self == EVT_MODE_INT1_CFG_A :: EVT_MODE_INT1_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_int1_cfg_hardware (& self) -> bool { * self == EVT_MODE_INT1_CFG_A :: EVT_MODE_INT1_CFG_HARDWARE } } # [doc = "Field `EVT_MODE_EVT2_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT2\\]"]
pub type EVT_MODE_EVT2_CFG_R = crate :: FieldReader < EVT_MODE_EVT2_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT2\\]\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_EVT2_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_EVT2_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_EVT2_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_EVT2_CFG_HARDWARE = 2 , } impl From < EVT_MODE_EVT2_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_EVT2_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_EVT2_CFG_A { type Ux = u8 ; } impl EVT_MODE_EVT2_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_EVT2_CFG_A > { match self . bits { 0 => Some (EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_DISABLE) , 1 => Some (EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_SOFTWARE) , 2 => Some (EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_evt2_cfg_disable (& self) -> bool { * self == EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_evt2_cfg_software (& self) -> bool { * self == EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_evt2_cfg_hardware (& self) -> bool { * self == EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_HARDWARE } } impl R { # [doc = "Bits 0:1 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT0\\]"]
# [inline (always)]
pub fn evt_mode_int0_cfg (& self) -> EVT_MODE_INT0_CFG_R { EVT_MODE_INT0_CFG_R :: new ((self . bits & 3) as u8) } # [doc = "Bits 2:3 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT1\\]"]
# [inline (always)]
pub fn evt_mode_int1_cfg (& self) -> EVT_MODE_INT1_CFG_R { EVT_MODE_INT1_CFG_R :: new (((self . bits >> 2) & 3) as u8) } # [doc = "Bits 4:5 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT2\\]"]
# [inline (always)]
pub fn evt_mode_evt2_cfg (& self) -> EVT_MODE_EVT2_CFG_R { EVT_MODE_EVT2_CFG_R :: new (((self . bits >> 4) & 3) as u8) } } impl W { # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`evt_mode::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct EVT_MODE_SPEC ; impl crate :: RegisterSpec for EVT_MODE_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`evt_mode::R`](R) reader structure"]
impl crate :: Readable for EVT_MODE_SPEC { } # [doc = "`write(|w| ..)` method takes [`evt_mode::W`](W) writer structure"]
impl crate :: Writable for EVT_MODE_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets EVT_MODE to value 0"]
impl crate :: Resettable for EVT_MODE_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DESC (r) register accessor: Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@desc`]
module"]
pub type DESC = crate :: Reg < desc :: DESC_SPEC > ; # [doc = "Module Description"]
pub mod desc { # [doc = "Register `DESC` reader"]
pub type R = crate :: R < DESC_SPEC > ; # [doc = "Field `DESC_MINREV` reader - Minor rev of the IP"]
pub type DESC_MINREV_R = crate :: FieldReader ; # [doc = "Field `DESC_MAJREV` reader - Major rev of the IP"]
pub type DESC_MAJREV_R = crate :: FieldReader ; # [doc = "Field `DESC_INSTNUM` reader - Instance Number within the device. This will be a parameter to the RTL for modules that can have multiple instances"]
pub type DESC_INSTNUM_R = crate :: FieldReader ; # [doc = "Field `DESC_FEATUREVER` reader - Feature Set for the module *instance*"]
pub type DESC_FEATUREVER_R = crate :: FieldReader ; # [doc = "Field `DESC_MODULEID` reader - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
pub type DESC_MODULEID_R = crate :: FieldReader < u16 > ; impl R { # [doc = "Bits 0:3 - Minor rev of the IP"]
# [inline (always)]
pub fn desc_minrev (& self) -> DESC_MINREV_R { DESC_MINREV_R :: new ((self . bits & 0x0f) as u8) } # [doc = "Bits 4:7 - Major rev of the IP"]
# [inline (always)]
pub fn desc_majrev (& self) -> DESC_MAJREV_R { DESC_MAJREV_R :: new (((self . bits >> 4) & 0x0f) as u8) } # [doc = "Bits 8:11 - Instance Number within the device. This will be a parameter to the RTL for modules that can have multiple instances"]
# [inline (always)]
pub fn desc_instnum (& self) -> DESC_INSTNUM_R { DESC_INSTNUM_R :: new (((self . bits >> 8) & 0x0f) as u8) } # [doc = "Bits 12:15 - Feature Set for the module *instance*"]
# [inline (always)]
pub fn desc_featurever (& self) -> DESC_FEATUREVER_R { DESC_FEATUREVER_R :: new (((self . bits >> 12) & 0x0f) as u8) } # [doc = "Bits 16:31 - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
# [inline (always)]
pub fn desc_moduleid (& self) -> DESC_MODULEID_R { DESC_MODULEID_R :: new (((self . bits >> 16) & 0xffff) as u16) } } # [doc = "Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DESC_SPEC ; impl crate :: RegisterSpec for DESC_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`desc::R`](R) reader structure"]
impl crate :: Readable for DESC_SPEC { } # [doc = "`reset()` method sets DESC to value 0"]
impl crate :: Resettable for DESC_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "GFCTL (rw) register accessor: I2C Glitch Filter Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gfctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`gfctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gfctl`]
module"]
pub type GFCTL = crate :: Reg < gfctl :: GFCTL_SPEC > ; # [doc = "I2C Glitch Filter Control"]
pub mod gfctl { # [doc = "Register `GFCTL` reader"]
pub type R = crate :: R < GFCTL_SPEC > ; # [doc = "Register `GFCTL` writer"]
pub type W = crate :: W < GFCTL_SPEC > ; # [doc = "Field `GFCTL_DGFSEL` reader - Glitch Suppression Pulse Width This field controls the pulse width select for glitch suppression on the SCL and SDA lines. The following values are the glitch suppression values in terms of functional clocks. (Core Domain only)"]
pub type GFCTL_DGFSEL_R = crate :: FieldReader < GFCTL_DGFSEL_A > ; # [doc = "Glitch Suppression Pulse Width This field controls the pulse width select for glitch suppression on the SCL and SDA lines. The following values are the glitch suppression values in terms of functional clocks. (Core Domain only)\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum GFCTL_DGFSEL_A { # [doc = "0: DISABLED"]
GFCTL_DGFSEL_DISABLED = 0 , # [doc = "1: CLK_1"]
GFCTL_DGFSEL_CLK_1 = 1 , # [doc = "2: CLK_2"]
GFCTL_DGFSEL_CLK_2 = 2 , # [doc = "3: CLK_3"]
GFCTL_DGFSEL_CLK_3 = 3 , # [doc = "4: CLK_4"]
GFCTL_DGFSEL_CLK_4 = 4 , # [doc = "5: CLK_8"]
GFCTL_DGFSEL_CLK_8 = 5 , # [doc = "6: CLK_16"]
GFCTL_DGFSEL_CLK_16 = 6 , # [doc = "7: CLK_31"]
GFCTL_DGFSEL_CLK_31 = 7 , } impl From < GFCTL_DGFSEL_A > for u8 { # [inline (always)]
fn from (variant : GFCTL_DGFSEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for GFCTL_DGFSEL_A { type Ux = u8 ; } impl GFCTL_DGFSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> GFCTL_DGFSEL_A { match self . bits { 0 => GFCTL_DGFSEL_A :: GFCTL_DGFSEL_DISABLED , 1 => GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_1 , 2 => GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_2 , 3 => GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_3 , 4 => GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_4 , 5 => GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_8 , 6 => GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_16 , 7 => GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_31 , _ => unreachable ! () , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_gfctl_dgfsel_disabled (& self) -> bool { * self == GFCTL_DGFSEL_A :: GFCTL_DGFSEL_DISABLED } # [doc = "CLK_1"]
# [inline (always)]
pub fn is_gfctl_dgfsel_clk_1 (& self) -> bool { * self == GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_1 } # [doc = "CLK_2"]
# [inline (always)]
pub fn is_gfctl_dgfsel_clk_2 (& self) -> bool { * self == GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_2 } # [doc = "CLK_3"]
# [inline (always)]
pub fn is_gfctl_dgfsel_clk_3 (& self) -> bool { * self == GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_3 } # [doc = "CLK_4"]
# [inline (always)]
pub fn is_gfctl_dgfsel_clk_4 (& self) -> bool { * self == GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_4 } # [doc = "CLK_8"]
# [inline (always)]
pub fn is_gfctl_dgfsel_clk_8 (& self) -> bool { * self == GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_8 } # [doc = "CLK_16"]
# [inline (always)]
pub fn is_gfctl_dgfsel_clk_16 (& self) -> bool { * self == GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_16 } # [doc = "CLK_31"]
# [inline (always)]
pub fn is_gfctl_dgfsel_clk_31 (& self) -> bool { * self == GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_31 } } # [doc = "Field `GFCTL_DGFSEL` writer - Glitch Suppression Pulse Width This field controls the pulse width select for glitch suppression on the SCL and SDA lines. The following values are the glitch suppression values in terms of functional clocks. (Core Domain only)"]
pub type GFCTL_DGFSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 3 , O , GFCTL_DGFSEL_A > ; impl < 'a , REG , const O : u8 > GFCTL_DGFSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLED"]
# [inline (always)]
pub fn gfctl_dgfsel_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_DGFSEL_A :: GFCTL_DGFSEL_DISABLED) } # [doc = "CLK_1"]
# [inline (always)]
pub fn gfctl_dgfsel_clk_1 (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_1) } # [doc = "CLK_2"]
# [inline (always)]
pub fn gfctl_dgfsel_clk_2 (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_2) } # [doc = "CLK_3"]
# [inline (always)]
pub fn gfctl_dgfsel_clk_3 (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_3) } # [doc = "CLK_4"]
# [inline (always)]
pub fn gfctl_dgfsel_clk_4 (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_4) } # [doc = "CLK_8"]
# [inline (always)]
pub fn gfctl_dgfsel_clk_8 (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_8) } # [doc = "CLK_16"]
# [inline (always)]
pub fn gfctl_dgfsel_clk_16 (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_16) } # [doc = "CLK_31"]
# [inline (always)]
pub fn gfctl_dgfsel_clk_31 (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_31) } } # [doc = "Field `GFCTL_AGFEN` reader - Analog Glitch Suppression Enable"]
pub type GFCTL_AGFEN_R = crate :: BitReader < GFCTL_AGFEN_A > ; # [doc = "Analog Glitch Suppression Enable\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum GFCTL_AGFEN_A { # [doc = "0: DISABLE"]
GFCTL_AGFEN_DISABLE = 0 , # [doc = "1: ENABLE"]
GFCTL_AGFEN_ENABLE = 1 , } impl From < GFCTL_AGFEN_A > for bool { # [inline (always)]
fn from (variant : GFCTL_AGFEN_A) -> Self { variant as u8 != 0 } } impl GFCTL_AGFEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> GFCTL_AGFEN_A { match self . bits { false => GFCTL_AGFEN_A :: GFCTL_AGFEN_DISABLE , true => GFCTL_AGFEN_A :: GFCTL_AGFEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_gfctl_agfen_disable (& self) -> bool { * self == GFCTL_AGFEN_A :: GFCTL_AGFEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_gfctl_agfen_enable (& self) -> bool { * self == GFCTL_AGFEN_A :: GFCTL_AGFEN_ENABLE } } # [doc = "Field `GFCTL_AGFEN` writer - Analog Glitch Suppression Enable"]
pub type GFCTL_AGFEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , GFCTL_AGFEN_A > ; impl < 'a , REG , const O : u8 > GFCTL_AGFEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn gfctl_agfen_disable (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_AGFEN_A :: GFCTL_AGFEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn gfctl_agfen_enable (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_AGFEN_A :: GFCTL_AGFEN_ENABLE) } } # [doc = "Field `GFCTL_AGFSEL` reader - Analog Glitch Suppression Pulse Width This field controls the pulse width select for the analog glitch suppression on SCL and SDA lines. See device datasheet for exact values. (ULP I2C only)"]
pub type GFCTL_AGFSEL_R = crate :: FieldReader < GFCTL_AGFSEL_A > ; # [doc = "Analog Glitch Suppression Pulse Width This field controls the pulse width select for the analog glitch suppression on SCL and SDA lines. See device datasheet for exact values. (ULP I2C only)\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum GFCTL_AGFSEL_A { # [doc = "0: AGLIT_5"]
GFCTL_AGFSEL_AGLIT_5 = 0 , # [doc = "1: AGLIT_10"]
GFCTL_AGFSEL_AGLIT_10 = 1 , # [doc = "2: AGLIT_25"]
GFCTL_AGFSEL_AGLIT_25 = 2 , # [doc = "3: AGLIT_50"]
GFCTL_AGFSEL_AGLIT_50 = 3 , } impl From < GFCTL_AGFSEL_A > for u8 { # [inline (always)]
fn from (variant : GFCTL_AGFSEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for GFCTL_AGFSEL_A { type Ux = u8 ; } impl GFCTL_AGFSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> GFCTL_AGFSEL_A { match self . bits { 0 => GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_5 , 1 => GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_10 , 2 => GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_25 , 3 => GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_50 , _ => unreachable ! () , } } # [doc = "AGLIT_5"]
# [inline (always)]
pub fn is_gfctl_agfsel_aglit_5 (& self) -> bool { * self == GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_5 } # [doc = "AGLIT_10"]
# [inline (always)]
pub fn is_gfctl_agfsel_aglit_10 (& self) -> bool { * self == GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_10 } # [doc = "AGLIT_25"]
# [inline (always)]
pub fn is_gfctl_agfsel_aglit_25 (& self) -> bool { * self == GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_25 } # [doc = "AGLIT_50"]
# [inline (always)]
pub fn is_gfctl_agfsel_aglit_50 (& self) -> bool { * self == GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_50 } } # [doc = "Field `GFCTL_AGFSEL` writer - Analog Glitch Suppression Pulse Width This field controls the pulse width select for the analog glitch suppression on SCL and SDA lines. See device datasheet for exact values. (ULP I2C only)"]
pub type GFCTL_AGFSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , GFCTL_AGFSEL_A > ; impl < 'a , REG , const O : u8 > GFCTL_AGFSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "AGLIT_5"]
# [inline (always)]
pub fn gfctl_agfsel_aglit_5 (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_5) } # [doc = "AGLIT_10"]
# [inline (always)]
pub fn gfctl_agfsel_aglit_10 (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_10) } # [doc = "AGLIT_25"]
# [inline (always)]
pub fn gfctl_agfsel_aglit_25 (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_25) } # [doc = "AGLIT_50"]
# [inline (always)]
pub fn gfctl_agfsel_aglit_50 (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_50) } } # [doc = "Field `GFCTL_CHAIN` reader - Analog and digital noise filters chaining enable."]
pub type GFCTL_CHAIN_R = crate :: BitReader < GFCTL_CHAIN_A > ; # [doc = "Analog and digital noise filters chaining enable.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum GFCTL_CHAIN_A { # [doc = "0: DISABLE"]
GFCTL_CHAIN_DISABLE = 0 , # [doc = "1: ENABLE"]
GFCTL_CHAIN_ENABLE = 1 , } impl From < GFCTL_CHAIN_A > for bool { # [inline (always)]
fn from (variant : GFCTL_CHAIN_A) -> Self { variant as u8 != 0 } } impl GFCTL_CHAIN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> GFCTL_CHAIN_A { match self . bits { false => GFCTL_CHAIN_A :: GFCTL_CHAIN_DISABLE , true => GFCTL_CHAIN_A :: GFCTL_CHAIN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_gfctl_chain_disable (& self) -> bool { * self == GFCTL_CHAIN_A :: GFCTL_CHAIN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_gfctl_chain_enable (& self) -> bool { * self == GFCTL_CHAIN_A :: GFCTL_CHAIN_ENABLE } } # [doc = "Field `GFCTL_CHAIN` writer - Analog and digital noise filters chaining enable."]
pub type GFCTL_CHAIN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , GFCTL_CHAIN_A > ; impl < 'a , REG , const O : u8 > GFCTL_CHAIN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn gfctl_chain_disable (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_CHAIN_A :: GFCTL_CHAIN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn gfctl_chain_enable (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_CHAIN_A :: GFCTL_CHAIN_ENABLE) } } impl R { # [doc = "Bits 0:2 - Glitch Suppression Pulse Width This field controls the pulse width select for glitch suppression on the SCL and SDA lines. The following values are the glitch suppression values in terms of functional clocks. (Core Domain only)"]
# [inline (always)]
pub fn gfctl_dgfsel (& self) -> GFCTL_DGFSEL_R { GFCTL_DGFSEL_R :: new ((self . bits & 7) as u8) } # [doc = "Bit 8 - Analog Glitch Suppression Enable"]
# [inline (always)]
pub fn gfctl_agfen (& self) -> GFCTL_AGFEN_R { GFCTL_AGFEN_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bits 9:10 - Analog Glitch Suppression Pulse Width This field controls the pulse width select for the analog glitch suppression on SCL and SDA lines. See device datasheet for exact values. (ULP I2C only)"]
# [inline (always)]
pub fn gfctl_agfsel (& self) -> GFCTL_AGFSEL_R { GFCTL_AGFSEL_R :: new (((self . bits >> 9) & 3) as u8) } # [doc = "Bit 11 - Analog and digital noise filters chaining enable."]
# [inline (always)]
pub fn gfctl_chain (& self) -> GFCTL_CHAIN_R { GFCTL_CHAIN_R :: new (((self . bits >> 11) & 1) != 0) } } impl W { # [doc = "Bits 0:2 - Glitch Suppression Pulse Width This field controls the pulse width select for glitch suppression on the SCL and SDA lines. The following values are the glitch suppression values in terms of functional clocks. (Core Domain only)"]
# [inline (always)]
# [must_use]
pub fn gfctl_dgfsel (& mut self) -> GFCTL_DGFSEL_W < GFCTL_SPEC , 0 > { GFCTL_DGFSEL_W :: new (self) } # [doc = "Bit 8 - Analog Glitch Suppression Enable"]
# [inline (always)]
# [must_use]
pub fn gfctl_agfen (& mut self) -> GFCTL_AGFEN_W < GFCTL_SPEC , 8 > { GFCTL_AGFEN_W :: new (self) } # [doc = "Bits 9:10 - Analog Glitch Suppression Pulse Width This field controls the pulse width select for the analog glitch suppression on SCL and SDA lines. See device datasheet for exact values. (ULP I2C only)"]
# [inline (always)]
# [must_use]
pub fn gfctl_agfsel (& mut self) -> GFCTL_AGFSEL_W < GFCTL_SPEC , 9 > { GFCTL_AGFSEL_W :: new (self) } # [doc = "Bit 11 - Analog and digital noise filters chaining enable."]
# [inline (always)]
# [must_use]
pub fn gfctl_chain (& mut self) -> GFCTL_CHAIN_W < GFCTL_SPEC , 11 > { GFCTL_CHAIN_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "I2C Glitch Filter Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gfctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`gfctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct GFCTL_SPEC ; impl crate :: RegisterSpec for GFCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`gfctl::R`](R) reader structure"]
impl crate :: Readable for GFCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`gfctl::W`](W) writer structure"]
impl crate :: Writable for GFCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets GFCTL to value 0"]
impl crate :: Resettable for GFCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "TIMEOUT_CTL (rw) register accessor: I2C Timeout Count Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`timeout_ctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`timeout_ctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@timeout_ctl`]
module"]
pub type TIMEOUT_CTL = crate :: Reg < timeout_ctl :: TIMEOUT_CTL_SPEC > ; # [doc = "I2C Timeout Count Control Register"]
pub mod timeout_ctl { # [doc = "Register `TIMEOUT_CTL` reader"]
pub type R = crate :: R < TIMEOUT_CTL_SPEC > ; # [doc = "Register `TIMEOUT_CTL` writer"]
pub type W = crate :: W < TIMEOUT_CTL_SPEC > ; # [doc = "Field `TIMEOUT_CTL_TCNTLA` reader - Timeout counter A load value Counter A is used for SCL low detection. This field contains the upper 8 bits of a 12-bit pre-load value for the Timeout A count. NOTE: The value of CNTLA must be greater than 1h. Each count is equal to 520 times the timeout period of functional clock. For example, with 8MHz functional clock and a 100KHz operating I2C clock, one timeout period will be equal to (1 / 8MHz) * 520 or 65 us."]
pub type TIMEOUT_CTL_TCNTLA_R = crate :: FieldReader ; # [doc = "Field `TIMEOUT_CTL_TCNTLA` writer - Timeout counter A load value Counter A is used for SCL low detection. This field contains the upper 8 bits of a 12-bit pre-load value for the Timeout A count. NOTE: The value of CNTLA must be greater than 1h. Each count is equal to 520 times the timeout period of functional clock. For example, with 8MHz functional clock and a 100KHz operating I2C clock, one timeout period will be equal to (1 / 8MHz) * 520 or 65 us."]
pub type TIMEOUT_CTL_TCNTLA_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O > ; # [doc = "Field `TIMEOUT_CTL_TCNTAEN` reader - Timeout Counter A Enable"]
pub type TIMEOUT_CTL_TCNTAEN_R = crate :: BitReader < TIMEOUT_CTL_TCNTAEN_A > ; # [doc = "Timeout Counter A Enable\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum TIMEOUT_CTL_TCNTAEN_A { # [doc = "0: DISABLE"]
TIMEOUT_CTL_TCNTAEN_DISABLE = 0 , # [doc = "1: ENABLE"]
TIMEOUT_CTL_TCNTAEN_ENABLE = 1 , } impl From < TIMEOUT_CTL_TCNTAEN_A > for bool { # [inline (always)]
fn from (variant : TIMEOUT_CTL_TCNTAEN_A) -> Self { variant as u8 != 0 } } impl TIMEOUT_CTL_TCNTAEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> TIMEOUT_CTL_TCNTAEN_A { match self . bits { false => TIMEOUT_CTL_TCNTAEN_A :: TIMEOUT_CTL_TCNTAEN_DISABLE , true => TIMEOUT_CTL_TCNTAEN_A :: TIMEOUT_CTL_TCNTAEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_timeout_ctl_tcntaen_disable (& self) -> bool { * self == TIMEOUT_CTL_TCNTAEN_A :: TIMEOUT_CTL_TCNTAEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_timeout_ctl_tcntaen_enable (& self) -> bool { * self == TIMEOUT_CTL_TCNTAEN_A :: TIMEOUT_CTL_TCNTAEN_ENABLE } } # [doc = "Field `TIMEOUT_CTL_TCNTAEN` writer - Timeout Counter A Enable"]
pub type TIMEOUT_CTL_TCNTAEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , TIMEOUT_CTL_TCNTAEN_A > ; impl < 'a , REG , const O : u8 > TIMEOUT_CTL_TCNTAEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn timeout_ctl_tcntaen_disable (self) -> & 'a mut crate :: W < REG > { self . variant (TIMEOUT_CTL_TCNTAEN_A :: TIMEOUT_CTL_TCNTAEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn timeout_ctl_tcntaen_enable (self) -> & 'a mut crate :: W < REG > { self . variant (TIMEOUT_CTL_TCNTAEN_A :: TIMEOUT_CTL_TCNTAEN_ENABLE) } } # [doc = "Field `TIMEOUT_CTL_TCNTLB` reader - Timeout Count B Load: Counter B is used for SCL High Detection. This field contains the upper 8 bits of a 12-bit pre-load value for the Timeout B count. NOTE: The value of CNTLB must be greater than 1h. Each count is equal to 1* clock period. For example, with 10MHz functional clock one timeout period will be equal to1*100ns."]
pub type TIMEOUT_CTL_TCNTLB_R = crate :: FieldReader ; # [doc = "Field `TIMEOUT_CTL_TCNTLB` writer - Timeout Count B Load: Counter B is used for SCL High Detection. This field contains the upper 8 bits of a 12-bit pre-load value for the Timeout B count. NOTE: The value of CNTLB must be greater than 1h. Each count is equal to 1* clock period. For example, with 10MHz functional clock one timeout period will be equal to1*100ns."]
pub type TIMEOUT_CTL_TCNTLB_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O > ; # [doc = "Field `TIMEOUT_CTL_TCNTBEN` reader - Timeout Counter B Enable"]
pub type TIMEOUT_CTL_TCNTBEN_R = crate :: BitReader < TIMEOUT_CTL_TCNTBEN_A > ; # [doc = "Timeout Counter B Enable\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum TIMEOUT_CTL_TCNTBEN_A { # [doc = "0: DISABLE"]
TIMEOUT_CTL_TCNTBEN_DISABLE = 0 , # [doc = "1: ENABLE"]
TIMEOUT_CTL_TCNTBEN_ENABLE = 1 , } impl From < TIMEOUT_CTL_TCNTBEN_A > for bool { # [inline (always)]
fn from (variant : TIMEOUT_CTL_TCNTBEN_A) -> Self { variant as u8 != 0 } } impl TIMEOUT_CTL_TCNTBEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> TIMEOUT_CTL_TCNTBEN_A { match self . bits { false => TIMEOUT_CTL_TCNTBEN_A :: TIMEOUT_CTL_TCNTBEN_DISABLE , true => TIMEOUT_CTL_TCNTBEN_A :: TIMEOUT_CTL_TCNTBEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_timeout_ctl_tcntben_disable (& self) -> bool { * self == TIMEOUT_CTL_TCNTBEN_A :: TIMEOUT_CTL_TCNTBEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_timeout_ctl_tcntben_enable (& self) -> bool { * self == TIMEOUT_CTL_TCNTBEN_A :: TIMEOUT_CTL_TCNTBEN_ENABLE } } # [doc = "Field `TIMEOUT_CTL_TCNTBEN` writer - Timeout Counter B Enable"]
pub type TIMEOUT_CTL_TCNTBEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , TIMEOUT_CTL_TCNTBEN_A > ; impl < 'a , REG , const O : u8 > TIMEOUT_CTL_TCNTBEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn timeout_ctl_tcntben_disable (self) -> & 'a mut crate :: W < REG > { self . variant (TIMEOUT_CTL_TCNTBEN_A :: TIMEOUT_CTL_TCNTBEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn timeout_ctl_tcntben_enable (self) -> & 'a mut crate :: W < REG > { self . variant (TIMEOUT_CTL_TCNTBEN_A :: TIMEOUT_CTL_TCNTBEN_ENABLE) } } impl R { # [doc = "Bits 0:7 - Timeout counter A load value Counter A is used for SCL low detection. This field contains the upper 8 bits of a 12-bit pre-load value for the Timeout A count. NOTE: The value of CNTLA must be greater than 1h. Each count is equal to 520 times the timeout period of functional clock. For example, with 8MHz functional clock and a 100KHz operating I2C clock, one timeout period will be equal to (1 / 8MHz) * 520 or 65 us."]
# [inline (always)]
pub fn timeout_ctl_tcntla (& self) -> TIMEOUT_CTL_TCNTLA_R { TIMEOUT_CTL_TCNTLA_R :: new ((self . bits & 0xff) as u8) } # [doc = "Bit 15 - Timeout Counter A Enable"]
# [inline (always)]
pub fn timeout_ctl_tcntaen (& self) -> TIMEOUT_CTL_TCNTAEN_R { TIMEOUT_CTL_TCNTAEN_R :: new (((self . bits >> 15) & 1) != 0) } # [doc = "Bits 16:23 - Timeout Count B Load: Counter B is used for SCL High Detection. This field contains the upper 8 bits of a 12-bit pre-load value for the Timeout B count. NOTE: The value of CNTLB must be greater than 1h. Each count is equal to 1* clock period. For example, with 10MHz functional clock one timeout period will be equal to1*100ns."]
# [inline (always)]
pub fn timeout_ctl_tcntlb (& self) -> TIMEOUT_CTL_TCNTLB_R { TIMEOUT_CTL_TCNTLB_R :: new (((self . bits >> 16) & 0xff) as u8) } # [doc = "Bit 31 - Timeout Counter B Enable"]
# [inline (always)]
pub fn timeout_ctl_tcntben (& self) -> TIMEOUT_CTL_TCNTBEN_R { TIMEOUT_CTL_TCNTBEN_R :: new (((self . bits >> 31) & 1) != 0) } } impl W { # [doc = "Bits 0:7 - Timeout counter A load value Counter A is used for SCL low detection. This field contains the upper 8 bits of a 12-bit pre-load value for the Timeout A count. NOTE: The value of CNTLA must be greater than 1h. Each count is equal to 520 times the timeout period of functional clock. For example, with 8MHz functional clock and a 100KHz operating I2C clock, one timeout period will be equal to (1 / 8MHz) * 520 or 65 us."]
# [inline (always)]
# [must_use]
pub fn timeout_ctl_tcntla (& mut self) -> TIMEOUT_CTL_TCNTLA_W < TIMEOUT_CTL_SPEC , 0 > { TIMEOUT_CTL_TCNTLA_W :: new (self) } # [doc = "Bit 15 - Timeout Counter A Enable"]
# [inline (always)]
# [must_use]
pub fn timeout_ctl_tcntaen (& mut self) -> TIMEOUT_CTL_TCNTAEN_W < TIMEOUT_CTL_SPEC , 15 > { TIMEOUT_CTL_TCNTAEN_W :: new (self) } # [doc = "Bits 16:23 - Timeout Count B Load: Counter B is used for SCL High Detection. This field contains the upper 8 bits of a 12-bit pre-load value for the Timeout B count. NOTE: The value of CNTLB must be greater than 1h. Each count is equal to 1* clock period. For example, with 10MHz functional clock one timeout period will be equal to1*100ns."]
# [inline (always)]
# [must_use]
pub fn timeout_ctl_tcntlb (& mut self) -> TIMEOUT_CTL_TCNTLB_W < TIMEOUT_CTL_SPEC , 16 > { TIMEOUT_CTL_TCNTLB_W :: new (self) } # [doc = "Bit 31 - Timeout Counter B Enable"]
# [inline (always)]
# [must_use]
pub fn timeout_ctl_tcntben (& mut self) -> TIMEOUT_CTL_TCNTBEN_W < TIMEOUT_CTL_SPEC , 31 > { TIMEOUT_CTL_TCNTBEN_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "I2C Timeout Count Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`timeout_ctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`timeout_ctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct TIMEOUT_CTL_SPEC ; impl crate :: RegisterSpec for TIMEOUT_CTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`timeout_ctl::R`](R) reader structure"]
impl crate :: Readable for TIMEOUT_CTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`timeout_ctl::W`](W) writer structure"]
impl crate :: Writable for TIMEOUT_CTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets TIMEOUT_CTL to value 0x0002_0002"]
impl crate :: Resettable for TIMEOUT_CTL_SPEC { const RESET_VALUE : Self :: Ux = 0x0002_0002 ; } } # [doc = "TIMEOUT_CNT (r) register accessor: I2C Timeout Count Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`timeout_cnt::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@timeout_cnt`]
module"]
pub type TIMEOUT_CNT = crate :: Reg < timeout_cnt :: TIMEOUT_CNT_SPEC > ; # [doc = "I2C Timeout Count Register"]
pub mod timeout_cnt { # [doc = "Register `TIMEOUT_CNT` reader"]
pub type R = crate :: R < TIMEOUT_CNT_SPEC > ; # [doc = "Field `TIMEOUT_CNT_TCNTA` reader - Timeout Count A Current Count: This field contains the upper 8 bits of a 12-bit current counter for timeout counter A"]
pub type TIMEOUT_CNT_TCNTA_R = crate :: FieldReader ; # [doc = "Field `TIMEOUT_CNT_TCNTB` reader - Timeout Count B Current Count: This field contains the upper 8 bits of a 12-bit current counter for timeout counter B"]
pub type TIMEOUT_CNT_TCNTB_R = crate :: FieldReader ; impl R { # [doc = "Bits 0:7 - Timeout Count A Current Count: This field contains the upper 8 bits of a 12-bit current counter for timeout counter A"]
# [inline (always)]
pub fn timeout_cnt_tcnta (& self) -> TIMEOUT_CNT_TCNTA_R { TIMEOUT_CNT_TCNTA_R :: new ((self . bits & 0xff) as u8) } # [doc = "Bits 16:23 - Timeout Count B Current Count: This field contains the upper 8 bits of a 12-bit current counter for timeout counter B"]
# [inline (always)]
pub fn timeout_cnt_tcntb (& self) -> TIMEOUT_CNT_TCNTB_R { TIMEOUT_CNT_TCNTB_R :: new (((self . bits >> 16) & 0xff) as u8) } } # [doc = "I2C Timeout Count Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`timeout_cnt::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct TIMEOUT_CNT_SPEC ; impl crate :: RegisterSpec for TIMEOUT_CNT_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`timeout_cnt::R`](R) reader structure"]
impl crate :: Readable for TIMEOUT_CNT_SPEC { } # [doc = "`reset()` method sets TIMEOUT_CNT to value 0x0002_0002"]
impl crate :: Resettable for TIMEOUT_CNT_SPEC { const RESET_VALUE : Self :: Ux = 0x0002_0002 ; } } # [doc = "MSA (rw) register accessor: I2C Master Slave Address Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`msa::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`msa::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@msa`]
module"]
pub type MSA = crate :: Reg < msa :: MSA_SPEC > ; # [doc = "I2C Master Slave Address Register"]
pub mod msa { # [doc = "Register `MSA` reader"]
pub type R = crate :: R < MSA_SPEC > ; # [doc = "Register `MSA` writer"]
pub type W = crate :: W < MSA_SPEC > ; # [doc = "Field `MSA_DIR` reader - Receive/Send The DIR bit specifies if the next master operation is a Receive (High) or Transmit (Low). 0h = Transmit 1h = Receive"]
pub type MSA_DIR_R = crate :: BitReader < MSA_DIR_A > ; # [doc = "Receive/Send The DIR bit specifies if the next master operation is a Receive (High) or Transmit (Low). 0h = Transmit 1h = Receive\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MSA_DIR_A { # [doc = "0: TRANSMIT"]
MSA_DIR_TRANSMIT = 0 , # [doc = "1: RECEIVE"]
MSA_DIR_RECEIVE = 1 , } impl From < MSA_DIR_A > for bool { # [inline (always)]
fn from (variant : MSA_DIR_A) -> Self { variant as u8 != 0 } } impl MSA_DIR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MSA_DIR_A { match self . bits { false => MSA_DIR_A :: MSA_DIR_TRANSMIT , true => MSA_DIR_A :: MSA_DIR_RECEIVE , } } # [doc = "TRANSMIT"]
# [inline (always)]
pub fn is_msa_dir_transmit (& self) -> bool { * self == MSA_DIR_A :: MSA_DIR_TRANSMIT } # [doc = "RECEIVE"]
# [inline (always)]
pub fn is_msa_dir_receive (& self) -> bool { * self == MSA_DIR_A :: MSA_DIR_RECEIVE } } # [doc = "Field `MSA_DIR` writer - Receive/Send The DIR bit specifies if the next master operation is a Receive (High) or Transmit (Low). 0h = Transmit 1h = Receive"]
pub type MSA_DIR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MSA_DIR_A > ; impl < 'a , REG , const O : u8 > MSA_DIR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "TRANSMIT"]
# [inline (always)]
pub fn msa_dir_transmit (self) -> & 'a mut crate :: W < REG > { self . variant (MSA_DIR_A :: MSA_DIR_TRANSMIT) } # [doc = "RECEIVE"]
# [inline (always)]
pub fn msa_dir_receive (self) -> & 'a mut crate :: W < REG > { self . variant (MSA_DIR_A :: MSA_DIR_RECEIVE) } } # [doc = "Field `MSA_SADDR` reader - I2C Slave Address This field specifies bits A9 through A0 of the slave address. In 7-bit addressing mode as selected by MSA.MODE bit, the top 3 bits are don't care"]
pub type MSA_SADDR_R = crate :: FieldReader < u16 > ; # [doc = "Field `MSA_SADDR` writer - I2C Slave Address This field specifies bits A9 through A0 of the slave address. In 7-bit addressing mode as selected by MSA.MODE bit, the top 3 bits are don't care"]
pub type MSA_SADDR_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 10 , O , u16 > ; # [doc = "Field `MSA_MMODE` reader - This bit selects the adressing mode to be used in master mode When 0, 7-bit addressing is used. When 1, 10-bit addressing is used."]
pub type MSA_MMODE_R = crate :: BitReader < MSA_MMODE_A > ; # [doc = "This bit selects the adressing mode to be used in master mode When 0, 7-bit addressing is used. When 1, 10-bit addressing is used.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MSA_MMODE_A { # [doc = "0: MODE7"]
MSA_MMODE_MODE7 = 0 , # [doc = "1: MODE10"]
MSA_MMODE_MODE10 = 1 , } impl From < MSA_MMODE_A > for bool { # [inline (always)]
fn from (variant : MSA_MMODE_A) -> Self { variant as u8 != 0 } } impl MSA_MMODE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MSA_MMODE_A { match self . bits { false => MSA_MMODE_A :: MSA_MMODE_MODE7 , true => MSA_MMODE_A :: MSA_MMODE_MODE10 , } } # [doc = "MODE7"]
# [inline (always)]
pub fn is_msa_mmode_mode7 (& self) -> bool { * self == MSA_MMODE_A :: MSA_MMODE_MODE7 } # [doc = "MODE10"]
# [inline (always)]
pub fn is_msa_mmode_mode10 (& self) -> bool { * self == MSA_MMODE_A :: MSA_MMODE_MODE10 } } # [doc = "Field `MSA_MMODE` writer - This bit selects the adressing mode to be used in master mode When 0, 7-bit addressing is used. When 1, 10-bit addressing is used."]
pub type MSA_MMODE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MSA_MMODE_A > ; impl < 'a , REG , const O : u8 > MSA_MMODE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "MODE7"]
# [inline (always)]
pub fn msa_mmode_mode7 (self) -> & 'a mut crate :: W < REG > { self . variant (MSA_MMODE_A :: MSA_MMODE_MODE7) } # [doc = "MODE10"]
# [inline (always)]
pub fn msa_mmode_mode10 (self) -> & 'a mut crate :: W < REG > { self . variant (MSA_MMODE_A :: MSA_MMODE_MODE10) } } impl R { # [doc = "Bit 0 - Receive/Send The DIR bit specifies if the next master operation is a Receive (High) or Transmit (Low). 0h = Transmit 1h = Receive"]
# [inline (always)]
pub fn msa_dir (& self) -> MSA_DIR_R { MSA_DIR_R :: new ((self . bits & 1) != 0) } # [doc = "Bits 1:10 - I2C Slave Address This field specifies bits A9 through A0 of the slave address. In 7-bit addressing mode as selected by MSA.MODE bit, the top 3 bits are don't care"]
# [inline (always)]
pub fn msa_saddr (& self) -> MSA_SADDR_R { MSA_SADDR_R :: new (((self . bits >> 1) & 0x03ff) as u16) } # [doc = "Bit 15 - This bit selects the adressing mode to be used in master mode When 0, 7-bit addressing is used. When 1, 10-bit addressing is used."]
# [inline (always)]
pub fn msa_mmode (& self) -> MSA_MMODE_R { MSA_MMODE_R :: new (((self . bits >> 15) & 1) != 0) } } impl W { # [doc = "Bit 0 - Receive/Send The DIR bit specifies if the next master operation is a Receive (High) or Transmit (Low). 0h = Transmit 1h = Receive"]
# [inline (always)]
# [must_use]
pub fn msa_dir (& mut self) -> MSA_DIR_W < MSA_SPEC , 0 > { MSA_DIR_W :: new (self) } # [doc = "Bits 1:10 - I2C Slave Address This field specifies bits A9 through A0 of the slave address. In 7-bit addressing mode as selected by MSA.MODE bit, the top 3 bits are don't care"]
# [inline (always)]
# [must_use]
pub fn msa_saddr (& mut self) -> MSA_SADDR_W < MSA_SPEC , 1 > { MSA_SADDR_W :: new (self) } # [doc = "Bit 15 - This bit selects the adressing mode to be used in master mode When 0, 7-bit addressing is used. When 1, 10-bit addressing is used."]
# [inline (always)]
# [must_use]
pub fn msa_mmode (& mut self) -> MSA_MMODE_W < MSA_SPEC , 15 > { MSA_MMODE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "I2C Master Slave Address Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`msa::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`msa::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MSA_SPEC ; impl crate :: RegisterSpec for MSA_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`msa::R`](R) reader structure"]
impl crate :: Readable for MSA_SPEC { } # [doc = "`write(|w| ..)` method takes [`msa::W`](W) writer structure"]
impl crate :: Writable for MSA_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets MSA to value 0"]
impl crate :: Resettable for MSA_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "MCTR (rw) register accessor: I2C Master Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mctr::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mctr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mctr`]
module"]
pub type MCTR = crate :: Reg < mctr :: MCTR_SPEC > ; # [doc = "I2C Master Control Register"]
pub mod mctr { # [doc = "Register `MCTR` reader"]
pub type R = crate :: R < MCTR_SPEC > ; # [doc = "Register `MCTR` writer"]
pub type W = crate :: W < MCTR_SPEC > ; # [doc = "Field `MCTR_BURSTRUN` reader - I2C Master Enable and start transaction"]
pub type MCTR_BURSTRUN_R = crate :: BitReader < MCTR_BURSTRUN_A > ; # [doc = "I2C Master Enable and start transaction\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MCTR_BURSTRUN_A { # [doc = "0: DISABLE"]
MCTR_BURSTRUN_DISABLE = 0 , # [doc = "1: ENABLE"]
MCTR_BURSTRUN_ENABLE = 1 , } impl From < MCTR_BURSTRUN_A > for bool { # [inline (always)]
fn from (variant : MCTR_BURSTRUN_A) -> Self { variant as u8 != 0 } } impl MCTR_BURSTRUN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MCTR_BURSTRUN_A { match self . bits { false => MCTR_BURSTRUN_A :: MCTR_BURSTRUN_DISABLE , true => MCTR_BURSTRUN_A :: MCTR_BURSTRUN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_mctr_burstrun_disable (& self) -> bool { * self == MCTR_BURSTRUN_A :: MCTR_BURSTRUN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_mctr_burstrun_enable (& self) -> bool { * self == MCTR_BURSTRUN_A :: MCTR_BURSTRUN_ENABLE } } # [doc = "Field `MCTR_BURSTRUN` writer - I2C Master Enable and start transaction"]
pub type MCTR_BURSTRUN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MCTR_BURSTRUN_A > ; impl < 'a , REG , const O : u8 > MCTR_BURSTRUN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn mctr_burstrun_disable (self) -> & 'a mut crate :: W < REG > { self . variant (MCTR_BURSTRUN_A :: MCTR_BURSTRUN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn mctr_burstrun_enable (self) -> & 'a mut crate :: W < REG > { self . variant (MCTR_BURSTRUN_A :: MCTR_BURSTRUN_ENABLE) } } # [doc = "Field `MCTR_START` reader - Generate START"]
pub type MCTR_START_R = crate :: BitReader < MCTR_START_A > ; # [doc = "Generate START\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MCTR_START_A { # [doc = "0: DISABLE"]
MCTR_START_DISABLE = 0 , # [doc = "1: ENABLE"]
MCTR_START_ENABLE = 1 , } impl From < MCTR_START_A > for bool { # [inline (always)]
fn from (variant : MCTR_START_A) -> Self { variant as u8 != 0 } } impl MCTR_START_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MCTR_START_A { match self . bits { false => MCTR_START_A :: MCTR_START_DISABLE , true => MCTR_START_A :: MCTR_START_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_mctr_start_disable (& self) -> bool { * self == MCTR_START_A :: MCTR_START_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_mctr_start_enable (& self) -> bool { * self == MCTR_START_A :: MCTR_START_ENABLE } } # [doc = "Field `MCTR_START` writer - Generate START"]
pub type MCTR_START_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MCTR_START_A > ; impl < 'a , REG , const O : u8 > MCTR_START_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn mctr_start_disable (self) -> & 'a mut crate :: W < REG > { self . variant (MCTR_START_A :: MCTR_START_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn mctr_start_enable (self) -> & 'a mut crate :: W < REG > { self . variant (MCTR_START_A :: MCTR_START_ENABLE) } } # [doc = "Field `MCTR_STOP` reader - Generate STOP"]
pub type MCTR_STOP_R = crate :: BitReader < MCTR_STOP_A > ; # [doc = "Generate STOP\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MCTR_STOP_A { # [doc = "0: DISABLE"]
MCTR_STOP_DISABLE = 0 , # [doc = "1: ENABLE"]
MCTR_STOP_ENABLE = 1 , } impl From < MCTR_STOP_A > for bool { # [inline (always)]
fn from (variant : MCTR_STOP_A) -> Self { variant as u8 != 0 } } impl MCTR_STOP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MCTR_STOP_A { match self . bits { false => MCTR_STOP_A :: MCTR_STOP_DISABLE , true => MCTR_STOP_A :: MCTR_STOP_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_mctr_stop_disable (& self) -> bool { * self == MCTR_STOP_A :: MCTR_STOP_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_mctr_stop_enable (& self) -> bool { * self == MCTR_STOP_A :: MCTR_STOP_ENABLE } } # [doc = "Field `MCTR_STOP` writer - Generate STOP"]
pub type MCTR_STOP_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MCTR_STOP_A > ; impl < 'a , REG , const O : u8 > MCTR_STOP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn mctr_stop_disable (self) -> & 'a mut crate :: W < REG > { self . variant (MCTR_STOP_A :: MCTR_STOP_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn mctr_stop_enable (self) -> & 'a mut crate :: W < REG > { self . variant (MCTR_STOP_A :: MCTR_STOP_ENABLE) } } # [doc = "Field `MCTR_ACK` reader - Data Acknowledge Enable. Software needs to configure this bit to send the ACK or NACK. See field decoding in Table: MCTR Field decoding."]
pub type MCTR_ACK_R = crate :: BitReader < MCTR_ACK_A > ; # [doc = "Data Acknowledge Enable. Software needs to configure this bit to send the ACK or NACK. See field decoding in Table: MCTR Field decoding.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MCTR_ACK_A { # [doc = "0: DISABLE"]
MCTR_ACK_DISABLE = 0 , # [doc = "1: ENABLE"]
MCTR_ACK_ENABLE = 1 , } impl From < MCTR_ACK_A > for bool { # [inline (always)]
fn from (variant : MCTR_ACK_A) -> Self { variant as u8 != 0 } } impl MCTR_ACK_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MCTR_ACK_A { match self . bits { false => MCTR_ACK_A :: MCTR_ACK_DISABLE , true => MCTR_ACK_A :: MCTR_ACK_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_mctr_ack_disable (& self) -> bool { * self == MCTR_ACK_A :: MCTR_ACK_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_mctr_ack_enable (& self) -> bool { * self == MCTR_ACK_A :: MCTR_ACK_ENABLE } } # [doc = "Field `MCTR_ACK` writer - Data Acknowledge Enable. Software needs to configure this bit to send the ACK or NACK. See field decoding in Table: MCTR Field decoding."]
pub type MCTR_ACK_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MCTR_ACK_A > ; impl < 'a , REG , const O : u8 > MCTR_ACK_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn mctr_ack_disable (self) -> & 'a mut crate :: W < REG > { self . variant (MCTR_ACK_A :: MCTR_ACK_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn mctr_ack_enable (self) -> & 'a mut crate :: W < REG > { self . variant (MCTR_ACK_A :: MCTR_ACK_ENABLE) } } # [doc = "Field `MCTR_MACKOEN` reader - Master ACK overrride Enable"]
pub type MCTR_MACKOEN_R = crate :: BitReader < MCTR_MACKOEN_A > ; # [doc = "Master ACK overrride Enable\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MCTR_MACKOEN_A { # [doc = "0: DISABLE"]
MCTR_MACKOEN_DISABLE = 0 , # [doc = "1: ENABLE"]
MCTR_MACKOEN_ENABLE = 1 , } impl From < MCTR_MACKOEN_A > for bool { # [inline (always)]
fn from (variant : MCTR_MACKOEN_A) -> Self { variant as u8 != 0 } } impl MCTR_MACKOEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MCTR_MACKOEN_A { match self . bits { false => MCTR_MACKOEN_A :: MCTR_MACKOEN_DISABLE , true => MCTR_MACKOEN_A :: MCTR_MACKOEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_mctr_mackoen_disable (& self) -> bool { * self == MCTR_MACKOEN_A :: MCTR_MACKOEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_mctr_mackoen_enable (& self) -> bool { * self == MCTR_MACKOEN_A :: MCTR_MACKOEN_ENABLE } } # [doc = "Field `MCTR_MACKOEN` writer - Master ACK overrride Enable"]
pub type MCTR_MACKOEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MCTR_MACKOEN_A > ; impl < 'a , REG , const O : u8 > MCTR_MACKOEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn mctr_mackoen_disable (self) -> & 'a mut crate :: W < REG > { self . variant (MCTR_MACKOEN_A :: MCTR_MACKOEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn mctr_mackoen_enable (self) -> & 'a mut crate :: W < REG > { self . variant (MCTR_MACKOEN_A :: MCTR_MACKOEN_ENABLE) } } # [doc = "Field `MCTR_RD_ON_TXEMPTY` reader - Read on TX Empty"]
pub type MCTR_RD_ON_TXEMPTY_R = crate :: BitReader < MCTR_RD_ON_TXEMPTY_A > ; # [doc = "Read on TX Empty\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MCTR_RD_ON_TXEMPTY_A { # [doc = "0: DISABLE"]
MCTR_RD_ON_TXEMPTY_DISABLE = 0 , # [doc = "1: ENABLE"]
MCTR_RD_ON_TXEMPTY_ENABLE = 1 , } impl From < MCTR_RD_ON_TXEMPTY_A > for bool { # [inline (always)]
fn from (variant : MCTR_RD_ON_TXEMPTY_A) -> Self { variant as u8 != 0 } } impl MCTR_RD_ON_TXEMPTY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MCTR_RD_ON_TXEMPTY_A { match self . bits { false => MCTR_RD_ON_TXEMPTY_A :: MCTR_RD_ON_TXEMPTY_DISABLE , true => MCTR_RD_ON_TXEMPTY_A :: MCTR_RD_ON_TXEMPTY_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_mctr_rd_on_txempty_disable (& self) -> bool { * self == MCTR_RD_ON_TXEMPTY_A :: MCTR_RD_ON_TXEMPTY_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_mctr_rd_on_txempty_enable (& self) -> bool { * self == MCTR_RD_ON_TXEMPTY_A :: MCTR_RD_ON_TXEMPTY_ENABLE } } # [doc = "Field `MCTR_RD_ON_TXEMPTY` writer - Read on TX Empty"]
pub type MCTR_RD_ON_TXEMPTY_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MCTR_RD_ON_TXEMPTY_A > ; impl < 'a , REG , const O : u8 > MCTR_RD_ON_TXEMPTY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn mctr_rd_on_txempty_disable (self) -> & 'a mut crate :: W < REG > { self . variant (MCTR_RD_ON_TXEMPTY_A :: MCTR_RD_ON_TXEMPTY_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn mctr_rd_on_txempty_enable (self) -> & 'a mut crate :: W < REG > { self . variant (MCTR_RD_ON_TXEMPTY_A :: MCTR_RD_ON_TXEMPTY_ENABLE) } } # [doc = "Field `MCTR_MBLEN` reader - I2C transaction length This field contains the programmed length of bytes of the Transaction."]
pub type MCTR_MBLEN_R = crate :: FieldReader < u16 > ; # [doc = "Field `MCTR_MBLEN` writer - I2C transaction length This field contains the programmed length of bytes of the Transaction."]
pub type MCTR_MBLEN_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 12 , O , u16 > ; impl R { # [doc = "Bit 0 - I2C Master Enable and start transaction"]
# [inline (always)]
pub fn mctr_burstrun (& self) -> MCTR_BURSTRUN_R { MCTR_BURSTRUN_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Generate START"]
# [inline (always)]
pub fn mctr_start (& self) -> MCTR_START_R { MCTR_START_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Generate STOP"]
# [inline (always)]
pub fn mctr_stop (& self) -> MCTR_STOP_R { MCTR_STOP_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Data Acknowledge Enable. Software needs to configure this bit to send the ACK or NACK. See field decoding in Table: MCTR Field decoding."]
# [inline (always)]
pub fn mctr_ack (& self) -> MCTR_ACK_R { MCTR_ACK_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - Master ACK overrride Enable"]
# [inline (always)]
pub fn mctr_mackoen (& self) -> MCTR_MACKOEN_R { MCTR_MACKOEN_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Read on TX Empty"]
# [inline (always)]
pub fn mctr_rd_on_txempty (& self) -> MCTR_RD_ON_TXEMPTY_R { MCTR_RD_ON_TXEMPTY_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bits 16:27 - I2C transaction length This field contains the programmed length of bytes of the Transaction."]
# [inline (always)]
pub fn mctr_mblen (& self) -> MCTR_MBLEN_R { MCTR_MBLEN_R :: new (((self . bits >> 16) & 0x0fff) as u16) } } impl W { # [doc = "Bit 0 - I2C Master Enable and start transaction"]
# [inline (always)]
# [must_use]
pub fn mctr_burstrun (& mut self) -> MCTR_BURSTRUN_W < MCTR_SPEC , 0 > { MCTR_BURSTRUN_W :: new (self) } # [doc = "Bit 1 - Generate START"]
# [inline (always)]
# [must_use]
pub fn mctr_start (& mut self) -> MCTR_START_W < MCTR_SPEC , 1 > { MCTR_START_W :: new (self) } # [doc = "Bit 2 - Generate STOP"]
# [inline (always)]
# [must_use]
pub fn mctr_stop (& mut self) -> MCTR_STOP_W < MCTR_SPEC , 2 > { MCTR_STOP_W :: new (self) } # [doc = "Bit 3 - Data Acknowledge Enable. Software needs to configure this bit to send the ACK or NACK. See field decoding in Table: MCTR Field decoding."]
# [inline (always)]
# [must_use]
pub fn mctr_ack (& mut self) -> MCTR_ACK_W < MCTR_SPEC , 3 > { MCTR_ACK_W :: new (self) } # [doc = "Bit 4 - Master ACK overrride Enable"]
# [inline (always)]
# [must_use]
pub fn mctr_mackoen (& mut self) -> MCTR_MACKOEN_W < MCTR_SPEC , 4 > { MCTR_MACKOEN_W :: new (self) } # [doc = "Bit 5 - Read on TX Empty"]
# [inline (always)]
# [must_use]
pub fn mctr_rd_on_txempty (& mut self) -> MCTR_RD_ON_TXEMPTY_W < MCTR_SPEC , 5 > { MCTR_RD_ON_TXEMPTY_W :: new (self) } # [doc = "Bits 16:27 - I2C transaction length This field contains the programmed length of bytes of the Transaction."]
# [inline (always)]
# [must_use]
pub fn mctr_mblen (& mut self) -> MCTR_MBLEN_W < MCTR_SPEC , 16 > { MCTR_MBLEN_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "I2C Master Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mctr::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mctr::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MCTR_SPEC ; impl crate :: RegisterSpec for MCTR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`mctr::R`](R) reader structure"]
impl crate :: Readable for MCTR_SPEC { } # [doc = "`write(|w| ..)` method takes [`mctr::W`](W) writer structure"]
impl crate :: Writable for MCTR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets MCTR to value 0"]
impl crate :: Resettable for MCTR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "MSR (r) register accessor: I2C Master Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`msr::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@msr`]
module"]
pub type MSR = crate :: Reg < msr :: MSR_SPEC > ; # [doc = "I2C Master Status Register"]
pub mod msr { # [doc = "Register `MSR` reader"]
pub type R = crate :: R < MSR_SPEC > ; # [doc = "Field `MSR_BUSY` reader - I2C Master FSM Busy The BUSY bit is set during an ongoing transaction, so is set during the transmit/receive of the amount of data set in MBLEN including START, RESTART, Address and STOP signal generation when required for the current transaction."]
pub type MSR_BUSY_R = crate :: BitReader < MSR_BUSY_A > ; # [doc = "I2C Master FSM Busy The BUSY bit is set during an ongoing transaction, so is set during the transmit/receive of the amount of data set in MBLEN including START, RESTART, Address and STOP signal generation when required for the current transaction.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MSR_BUSY_A { # [doc = "0: CLEARED"]
MSR_BUSY_CLEARED = 0 , # [doc = "1: SET"]
MSR_BUSY_SET = 1 , } impl From < MSR_BUSY_A > for bool { # [inline (always)]
fn from (variant : MSR_BUSY_A) -> Self { variant as u8 != 0 } } impl MSR_BUSY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MSR_BUSY_A { match self . bits { false => MSR_BUSY_A :: MSR_BUSY_CLEARED , true => MSR_BUSY_A :: MSR_BUSY_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_msr_busy_cleared (& self) -> bool { * self == MSR_BUSY_A :: MSR_BUSY_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_msr_busy_set (& self) -> bool { * self == MSR_BUSY_A :: MSR_BUSY_SET } } # [doc = "Field `MSR_ERR` reader - Error The error can be from the slave address not being acknowledged or the transmit data not being acknowledged."]
pub type MSR_ERR_R = crate :: BitReader < MSR_ERR_A > ; # [doc = "Error The error can be from the slave address not being acknowledged or the transmit data not being acknowledged.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MSR_ERR_A { # [doc = "0: CLEARED"]
MSR_ERR_CLEARED = 0 , # [doc = "1: SET"]
MSR_ERR_SET = 1 , } impl From < MSR_ERR_A > for bool { # [inline (always)]
fn from (variant : MSR_ERR_A) -> Self { variant as u8 != 0 } } impl MSR_ERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MSR_ERR_A { match self . bits { false => MSR_ERR_A :: MSR_ERR_CLEARED , true => MSR_ERR_A :: MSR_ERR_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_msr_err_cleared (& self) -> bool { * self == MSR_ERR_A :: MSR_ERR_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_msr_err_set (& self) -> bool { * self == MSR_ERR_A :: MSR_ERR_SET } } # [doc = "Field `MSR_ADRACK` reader - Acknowledge Address"]
pub type MSR_ADRACK_R = crate :: BitReader < MSR_ADRACK_A > ; # [doc = "Acknowledge Address\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MSR_ADRACK_A { # [doc = "0: CLEARED"]
MSR_ADRACK_CLEARED = 0 , # [doc = "1: SET"]
MSR_ADRACK_SET = 1 , } impl From < MSR_ADRACK_A > for bool { # [inline (always)]
fn from (variant : MSR_ADRACK_A) -> Self { variant as u8 != 0 } } impl MSR_ADRACK_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MSR_ADRACK_A { match self . bits { false => MSR_ADRACK_A :: MSR_ADRACK_CLEARED , true => MSR_ADRACK_A :: MSR_ADRACK_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_msr_adrack_cleared (& self) -> bool { * self == MSR_ADRACK_A :: MSR_ADRACK_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_msr_adrack_set (& self) -> bool { * self == MSR_ADRACK_A :: MSR_ADRACK_SET } } # [doc = "Field `MSR_DATACK` reader - Acknowledge Data"]
pub type MSR_DATACK_R = crate :: BitReader < MSR_DATACK_A > ; # [doc = "Acknowledge Data\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MSR_DATACK_A { # [doc = "0: CLEARED"]
MSR_DATACK_CLEARED = 0 , # [doc = "1: SET"]
MSR_DATACK_SET = 1 , } impl From < MSR_DATACK_A > for bool { # [inline (always)]
fn from (variant : MSR_DATACK_A) -> Self { variant as u8 != 0 } } impl MSR_DATACK_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MSR_DATACK_A { match self . bits { false => MSR_DATACK_A :: MSR_DATACK_CLEARED , true => MSR_DATACK_A :: MSR_DATACK_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_msr_datack_cleared (& self) -> bool { * self == MSR_DATACK_A :: MSR_DATACK_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_msr_datack_set (& self) -> bool { * self == MSR_DATACK_A :: MSR_DATACK_SET } } # [doc = "Field `MSR_ARBLST` reader - Arbitration Lost"]
pub type MSR_ARBLST_R = crate :: BitReader < MSR_ARBLST_A > ; # [doc = "Arbitration Lost\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MSR_ARBLST_A { # [doc = "0: CLEARED"]
MSR_ARBLST_CLEARED = 0 , # [doc = "1: SET"]
MSR_ARBLST_SET = 1 , } impl From < MSR_ARBLST_A > for bool { # [inline (always)]
fn from (variant : MSR_ARBLST_A) -> Self { variant as u8 != 0 } } impl MSR_ARBLST_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MSR_ARBLST_A { match self . bits { false => MSR_ARBLST_A :: MSR_ARBLST_CLEARED , true => MSR_ARBLST_A :: MSR_ARBLST_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_msr_arblst_cleared (& self) -> bool { * self == MSR_ARBLST_A :: MSR_ARBLST_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_msr_arblst_set (& self) -> bool { * self == MSR_ARBLST_A :: MSR_ARBLST_SET } } # [doc = "Field `MSR_IDLE` reader - I2C Idle"]
pub type MSR_IDLE_R = crate :: BitReader < MSR_IDLE_A > ; # [doc = "I2C Idle\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MSR_IDLE_A { # [doc = "0: CLEARED"]
MSR_IDLE_CLEARED = 0 , # [doc = "1: SET"]
MSR_IDLE_SET = 1 , } impl From < MSR_IDLE_A > for bool { # [inline (always)]
fn from (variant : MSR_IDLE_A) -> Self { variant as u8 != 0 } } impl MSR_IDLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MSR_IDLE_A { match self . bits { false => MSR_IDLE_A :: MSR_IDLE_CLEARED , true => MSR_IDLE_A :: MSR_IDLE_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_msr_idle_cleared (& self) -> bool { * self == MSR_IDLE_A :: MSR_IDLE_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_msr_idle_set (& self) -> bool { * self == MSR_IDLE_A :: MSR_IDLE_SET } } # [doc = "Field `MSR_BUSBSY` reader - I2C Bus is Busy Master State Machine will wait until this bit is cleared before starting a transaction. When first enabling the Master in multi master environments, FW should wait for one I2C clock period after setting ACTIVE high before writing to the MTCR register to start the transaction so that if SCL goes low it will trigger the BUSBSY."]
pub type MSR_BUSBSY_R = crate :: BitReader < MSR_BUSBSY_A > ; # [doc = "I2C Bus is Busy Master State Machine will wait until this bit is cleared before starting a transaction. When first enabling the Master in multi master environments, FW should wait for one I2C clock period after setting ACTIVE high before writing to the MTCR register to start the transaction so that if SCL goes low it will trigger the BUSBSY.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MSR_BUSBSY_A { # [doc = "0: CLEARED"]
MSR_BUSBSY_CLEARED = 0 , # [doc = "1: SET"]
MSR_BUSBSY_SET = 1 , } impl From < MSR_BUSBSY_A > for bool { # [inline (always)]
fn from (variant : MSR_BUSBSY_A) -> Self { variant as u8 != 0 } } impl MSR_BUSBSY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MSR_BUSBSY_A { match self . bits { false => MSR_BUSBSY_A :: MSR_BUSBSY_CLEARED , true => MSR_BUSBSY_A :: MSR_BUSBSY_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_msr_busbsy_cleared (& self) -> bool { * self == MSR_BUSBSY_A :: MSR_BUSBSY_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_msr_busbsy_set (& self) -> bool { * self == MSR_BUSBSY_A :: MSR_BUSBSY_SET } } # [doc = "Field `MSR_MBCNT` reader - I2C Master Transaction Count This field contains the current count-down value of the transaction."]
pub type MSR_MBCNT_R = crate :: FieldReader < u16 > ; impl R { # [doc = "Bit 0 - I2C Master FSM Busy The BUSY bit is set during an ongoing transaction, so is set during the transmit/receive of the amount of data set in MBLEN including START, RESTART, Address and STOP signal generation when required for the current transaction."]
# [inline (always)]
pub fn msr_busy (& self) -> MSR_BUSY_R { MSR_BUSY_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Error The error can be from the slave address not being acknowledged or the transmit data not being acknowledged."]
# [inline (always)]
pub fn msr_err (& self) -> MSR_ERR_R { MSR_ERR_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Acknowledge Address"]
# [inline (always)]
pub fn msr_adrack (& self) -> MSR_ADRACK_R { MSR_ADRACK_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Acknowledge Data"]
# [inline (always)]
pub fn msr_datack (& self) -> MSR_DATACK_R { MSR_DATACK_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - Arbitration Lost"]
# [inline (always)]
pub fn msr_arblst (& self) -> MSR_ARBLST_R { MSR_ARBLST_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - I2C Idle"]
# [inline (always)]
pub fn msr_idle (& self) -> MSR_IDLE_R { MSR_IDLE_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - I2C Bus is Busy Master State Machine will wait until this bit is cleared before starting a transaction. When first enabling the Master in multi master environments, FW should wait for one I2C clock period after setting ACTIVE high before writing to the MTCR register to start the transaction so that if SCL goes low it will trigger the BUSBSY."]
# [inline (always)]
pub fn msr_busbsy (& self) -> MSR_BUSBSY_R { MSR_BUSBSY_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bits 16:27 - I2C Master Transaction Count This field contains the current count-down value of the transaction."]
# [inline (always)]
pub fn msr_mbcnt (& self) -> MSR_MBCNT_R { MSR_MBCNT_R :: new (((self . bits >> 16) & 0x0fff) as u16) } } # [doc = "I2C Master Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`msr::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MSR_SPEC ; impl crate :: RegisterSpec for MSR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`msr::R`](R) reader structure"]
impl crate :: Readable for MSR_SPEC { } # [doc = "`reset()` method sets MSR to value 0"]
impl crate :: Resettable for MSR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "MRXDATA (r) register accessor: I2C Master RXData\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mrxdata::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mrxdata`]
module"]
pub type MRXDATA = crate :: Reg < mrxdata :: MRXDATA_SPEC > ; # [doc = "I2C Master RXData"]
pub mod mrxdata { # [doc = "Register `MRXDATA` reader"]
pub type R = crate :: R < MRXDATA_SPEC > ; # [doc = "Field `MRXDATA_VALUE` reader - Received Data. This field contains the last received data."]
pub type MRXDATA_VALUE_R = crate :: FieldReader ; impl R { # [doc = "Bits 0:7 - Received Data. This field contains the last received data."]
# [inline (always)]
pub fn mrxdata_value (& self) -> MRXDATA_VALUE_R { MRXDATA_VALUE_R :: new ((self . bits & 0xff) as u8) } } # [doc = "I2C Master RXData\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mrxdata::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MRXDATA_SPEC ; impl crate :: RegisterSpec for MRXDATA_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`mrxdata::R`](R) reader structure"]
impl crate :: Readable for MRXDATA_SPEC { } # [doc = "`reset()` method sets MRXDATA to value 0"]
impl crate :: Resettable for MRXDATA_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "MTXDATA (rw) register accessor: I2C Master TXData\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mtxdata::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mtxdata::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mtxdata`]
module"]
pub type MTXDATA = crate :: Reg < mtxdata :: MTXDATA_SPEC > ; # [doc = "I2C Master TXData"]
pub mod mtxdata { # [doc = "Register `MTXDATA` reader"]
pub type R = crate :: R < MTXDATA_SPEC > ; # [doc = "Register `MTXDATA` writer"]
pub type W = crate :: W < MTXDATA_SPEC > ; # [doc = "Field `MTXDATA_VALUE` reader - Transmit Data This byte contains the data to be transferred during the next transaction."]
pub type MTXDATA_VALUE_R = crate :: FieldReader ; # [doc = "Field `MTXDATA_VALUE` writer - Transmit Data This byte contains the data to be transferred during the next transaction."]
pub type MTXDATA_VALUE_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O > ; impl R { # [doc = "Bits 0:7 - Transmit Data This byte contains the data to be transferred during the next transaction."]
# [inline (always)]
pub fn mtxdata_value (& self) -> MTXDATA_VALUE_R { MTXDATA_VALUE_R :: new ((self . bits & 0xff) as u8) } } impl W { # [doc = "Bits 0:7 - Transmit Data This byte contains the data to be transferred during the next transaction."]
# [inline (always)]
# [must_use]
pub fn mtxdata_value (& mut self) -> MTXDATA_VALUE_W < MTXDATA_SPEC , 0 > { MTXDATA_VALUE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "I2C Master TXData\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mtxdata::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mtxdata::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MTXDATA_SPEC ; impl crate :: RegisterSpec for MTXDATA_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`mtxdata::R`](R) reader structure"]
impl crate :: Readable for MTXDATA_SPEC { } # [doc = "`write(|w| ..)` method takes [`mtxdata::W`](W) writer structure"]
impl crate :: Writable for MTXDATA_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets MTXDATA to value 0"]
impl crate :: Resettable for MTXDATA_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "MTPR (rw) register accessor: I2C Master Timer Period\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mtpr::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mtpr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mtpr`]
module"]
pub type MTPR = crate :: Reg < mtpr :: MTPR_SPEC > ; # [doc = "I2C Master Timer Period"]
pub mod mtpr { # [doc = "Register `MTPR` reader"]
pub type R = crate :: R < MTPR_SPEC > ; # [doc = "Register `MTPR` writer"]
pub type W = crate :: W < MTPR_SPEC > ; # [doc = "Field `MTPR_TPR` reader - Timer Period This field is used in the equation to configure SCL_PERIOD : SCL_PERIOD = (1 + TPR ) * (SCL_LP + SCL_HP ) * INT_CLK_PRD where: SCL_PRD is the SCL line period (I2C clock). TPR is the Timer Period register value (range of 1 to 127). SCL_LP is the SCL Low period (fixed at 6). SCL_HP is the SCL High period (fixed at 4). CLK_PRD is the functional clock period in ns."]
pub type MTPR_TPR_R = crate :: FieldReader ; # [doc = "Field `MTPR_TPR` writer - Timer Period This field is used in the equation to configure SCL_PERIOD : SCL_PERIOD = (1 + TPR ) * (SCL_LP + SCL_HP ) * INT_CLK_PRD where: SCL_PRD is the SCL line period (I2C clock). TPR is the Timer Period register value (range of 1 to 127). SCL_LP is the SCL Low period (fixed at 6). SCL_HP is the SCL High period (fixed at 4). CLK_PRD is the functional clock period in ns."]
pub type MTPR_TPR_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 7 , O > ; impl R { # [doc = "Bits 0:6 - Timer Period This field is used in the equation to configure SCL_PERIOD : SCL_PERIOD = (1 + TPR ) * (SCL_LP + SCL_HP ) * INT_CLK_PRD where: SCL_PRD is the SCL line period (I2C clock). TPR is the Timer Period register value (range of 1 to 127). SCL_LP is the SCL Low period (fixed at 6). SCL_HP is the SCL High period (fixed at 4). CLK_PRD is the functional clock period in ns."]
# [inline (always)]
pub fn mtpr_tpr (& self) -> MTPR_TPR_R { MTPR_TPR_R :: new ((self . bits & 0x7f) as u8) } } impl W { # [doc = "Bits 0:6 - Timer Period This field is used in the equation to configure SCL_PERIOD : SCL_PERIOD = (1 + TPR ) * (SCL_LP + SCL_HP ) * INT_CLK_PRD where: SCL_PRD is the SCL line period (I2C clock). TPR is the Timer Period register value (range of 1 to 127). SCL_LP is the SCL Low period (fixed at 6). SCL_HP is the SCL High period (fixed at 4). CLK_PRD is the functional clock period in ns."]
# [inline (always)]
# [must_use]
pub fn mtpr_tpr (& mut self) -> MTPR_TPR_W < MTPR_SPEC , 0 > { MTPR_TPR_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "I2C Master Timer Period\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mtpr::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mtpr::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MTPR_SPEC ; impl crate :: RegisterSpec for MTPR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`mtpr::R`](R) reader structure"]
impl crate :: Readable for MTPR_SPEC { } # [doc = "`write(|w| ..)` method takes [`mtpr::W`](W) writer structure"]
impl crate :: Writable for MTPR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets MTPR to value 0x01"]
impl crate :: Resettable for MTPR_SPEC { const RESET_VALUE : Self :: Ux = 0x01 ; } } # [doc = "MCR (rw) register accessor: I2C Master Configuration\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mcr::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mcr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mcr`]
module"]
pub type MCR = crate :: Reg < mcr :: MCR_SPEC > ; # [doc = "I2C Master Configuration"]
pub mod mcr { # [doc = "Register `MCR` reader"]
pub type R = crate :: R < MCR_SPEC > ; # [doc = "Register `MCR` writer"]
pub type W = crate :: W < MCR_SPEC > ; # [doc = "Field `MCR_ACTIVE` reader - Device Active After this bit has been set, it should not be set again unless it has been cleared by writing a 0 or by a reset, otherwise transfer failures may occur."]
pub type MCR_ACTIVE_R = crate :: BitReader < MCR_ACTIVE_A > ; # [doc = "Device Active After this bit has been set, it should not be set again unless it has been cleared by writing a 0 or by a reset, otherwise transfer failures may occur.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MCR_ACTIVE_A { # [doc = "0: DISABLE"]
MCR_ACTIVE_DISABLE = 0 , # [doc = "1: ENABLE"]
MCR_ACTIVE_ENABLE = 1 , } impl From < MCR_ACTIVE_A > for bool { # [inline (always)]
fn from (variant : MCR_ACTIVE_A) -> Self { variant as u8 != 0 } } impl MCR_ACTIVE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MCR_ACTIVE_A { match self . bits { false => MCR_ACTIVE_A :: MCR_ACTIVE_DISABLE , true => MCR_ACTIVE_A :: MCR_ACTIVE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_mcr_active_disable (& self) -> bool { * self == MCR_ACTIVE_A :: MCR_ACTIVE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_mcr_active_enable (& self) -> bool { * self == MCR_ACTIVE_A :: MCR_ACTIVE_ENABLE } } # [doc = "Field `MCR_ACTIVE` writer - Device Active After this bit has been set, it should not be set again unless it has been cleared by writing a 0 or by a reset, otherwise transfer failures may occur."]
pub type MCR_ACTIVE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MCR_ACTIVE_A > ; impl < 'a , REG , const O : u8 > MCR_ACTIVE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn mcr_active_disable (self) -> & 'a mut crate :: W < REG > { self . variant (MCR_ACTIVE_A :: MCR_ACTIVE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn mcr_active_enable (self) -> & 'a mut crate :: W < REG > { self . variant (MCR_ACTIVE_A :: MCR_ACTIVE_ENABLE) } } # [doc = "Field `MCR_MMST` reader - Multimaster mode. In Multimaster mode the SCL high time counts once the SCL line has been detected high. If this is not enabled the high time counts as soon as the SCL line has been set high by the I2C controller."]
pub type MCR_MMST_R = crate :: BitReader < MCR_MMST_A > ; # [doc = "Multimaster mode. In Multimaster mode the SCL high time counts once the SCL line has been detected high. If this is not enabled the high time counts as soon as the SCL line has been set high by the I2C controller.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MCR_MMST_A { # [doc = "0: DISABLE"]
MCR_MMST_DISABLE = 0 , # [doc = "1: ENABLE"]
MCR_MMST_ENABLE = 1 , } impl From < MCR_MMST_A > for bool { # [inline (always)]
fn from (variant : MCR_MMST_A) -> Self { variant as u8 != 0 } } impl MCR_MMST_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MCR_MMST_A { match self . bits { false => MCR_MMST_A :: MCR_MMST_DISABLE , true => MCR_MMST_A :: MCR_MMST_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_mcr_mmst_disable (& self) -> bool { * self == MCR_MMST_A :: MCR_MMST_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_mcr_mmst_enable (& self) -> bool { * self == MCR_MMST_A :: MCR_MMST_ENABLE } } # [doc = "Field `MCR_MMST` writer - Multimaster mode. In Multimaster mode the SCL high time counts once the SCL line has been detected high. If this is not enabled the high time counts as soon as the SCL line has been set high by the I2C controller."]
pub type MCR_MMST_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MCR_MMST_A > ; impl < 'a , REG , const O : u8 > MCR_MMST_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn mcr_mmst_disable (self) -> & 'a mut crate :: W < REG > { self . variant (MCR_MMST_A :: MCR_MMST_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn mcr_mmst_enable (self) -> & 'a mut crate :: W < REG > { self . variant (MCR_MMST_A :: MCR_MMST_ENABLE) } } # [doc = "Field `MCR_CLKSTRETCH` reader - Clock Stretching. This bit controls the support for clock stretching of the I2C bus."]
pub type MCR_CLKSTRETCH_R = crate :: BitReader < MCR_CLKSTRETCH_A > ; # [doc = "Clock Stretching. This bit controls the support for clock stretching of the I2C bus.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MCR_CLKSTRETCH_A { # [doc = "0: DISABLE"]
MCR_CLKSTRETCH_DISABLE = 0 , # [doc = "1: ENABLE"]
MCR_CLKSTRETCH_ENABLE = 1 , } impl From < MCR_CLKSTRETCH_A > for bool { # [inline (always)]
fn from (variant : MCR_CLKSTRETCH_A) -> Self { variant as u8 != 0 } } impl MCR_CLKSTRETCH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MCR_CLKSTRETCH_A { match self . bits { false => MCR_CLKSTRETCH_A :: MCR_CLKSTRETCH_DISABLE , true => MCR_CLKSTRETCH_A :: MCR_CLKSTRETCH_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_mcr_clkstretch_disable (& self) -> bool { * self == MCR_CLKSTRETCH_A :: MCR_CLKSTRETCH_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_mcr_clkstretch_enable (& self) -> bool { * self == MCR_CLKSTRETCH_A :: MCR_CLKSTRETCH_ENABLE } } # [doc = "Field `MCR_CLKSTRETCH` writer - Clock Stretching. This bit controls the support for clock stretching of the I2C bus."]
pub type MCR_CLKSTRETCH_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MCR_CLKSTRETCH_A > ; impl < 'a , REG , const O : u8 > MCR_CLKSTRETCH_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn mcr_clkstretch_disable (self) -> & 'a mut crate :: W < REG > { self . variant (MCR_CLKSTRETCH_A :: MCR_CLKSTRETCH_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn mcr_clkstretch_enable (self) -> & 'a mut crate :: W < REG > { self . variant (MCR_CLKSTRETCH_A :: MCR_CLKSTRETCH_ENABLE) } } # [doc = "Field `MCR_LPBK` reader - I2C Loopback"]
pub type MCR_LPBK_R = crate :: BitReader < MCR_LPBK_A > ; # [doc = "I2C Loopback\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MCR_LPBK_A { # [doc = "0: DISABLE"]
MCR_LPBK_DISABLE = 0 , # [doc = "1: ENABLE"]
MCR_LPBK_ENABLE = 1 , } impl From < MCR_LPBK_A > for bool { # [inline (always)]
fn from (variant : MCR_LPBK_A) -> Self { variant as u8 != 0 } } impl MCR_LPBK_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MCR_LPBK_A { match self . bits { false => MCR_LPBK_A :: MCR_LPBK_DISABLE , true => MCR_LPBK_A :: MCR_LPBK_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_mcr_lpbk_disable (& self) -> bool { * self == MCR_LPBK_A :: MCR_LPBK_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_mcr_lpbk_enable (& self) -> bool { * self == MCR_LPBK_A :: MCR_LPBK_ENABLE } } # [doc = "Field `MCR_LPBK` writer - I2C Loopback"]
pub type MCR_LPBK_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MCR_LPBK_A > ; impl < 'a , REG , const O : u8 > MCR_LPBK_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn mcr_lpbk_disable (self) -> & 'a mut crate :: W < REG > { self . variant (MCR_LPBK_A :: MCR_LPBK_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn mcr_lpbk_enable (self) -> & 'a mut crate :: W < REG > { self . variant (MCR_LPBK_A :: MCR_LPBK_ENABLE) } } impl R { # [doc = "Bit 0 - Device Active After this bit has been set, it should not be set again unless it has been cleared by writing a 0 or by a reset, otherwise transfer failures may occur."]
# [inline (always)]
pub fn mcr_active (& self) -> MCR_ACTIVE_R { MCR_ACTIVE_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Multimaster mode. In Multimaster mode the SCL high time counts once the SCL line has been detected high. If this is not enabled the high time counts as soon as the SCL line has been set high by the I2C controller."]
# [inline (always)]
pub fn mcr_mmst (& self) -> MCR_MMST_R { MCR_MMST_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Clock Stretching. This bit controls the support for clock stretching of the I2C bus."]
# [inline (always)]
pub fn mcr_clkstretch (& self) -> MCR_CLKSTRETCH_R { MCR_CLKSTRETCH_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 8 - I2C Loopback"]
# [inline (always)]
pub fn mcr_lpbk (& self) -> MCR_LPBK_R { MCR_LPBK_R :: new (((self . bits >> 8) & 1) != 0) } } impl W { # [doc = "Bit 0 - Device Active After this bit has been set, it should not be set again unless it has been cleared by writing a 0 or by a reset, otherwise transfer failures may occur."]
# [inline (always)]
# [must_use]
pub fn mcr_active (& mut self) -> MCR_ACTIVE_W < MCR_SPEC , 0 > { MCR_ACTIVE_W :: new (self) } # [doc = "Bit 1 - Multimaster mode. In Multimaster mode the SCL high time counts once the SCL line has been detected high. If this is not enabled the high time counts as soon as the SCL line has been set high by the I2C controller."]
# [inline (always)]
# [must_use]
pub fn mcr_mmst (& mut self) -> MCR_MMST_W < MCR_SPEC , 1 > { MCR_MMST_W :: new (self) } # [doc = "Bit 2 - Clock Stretching. This bit controls the support for clock stretching of the I2C bus."]
# [inline (always)]
# [must_use]
pub fn mcr_clkstretch (& mut self) -> MCR_CLKSTRETCH_W < MCR_SPEC , 2 > { MCR_CLKSTRETCH_W :: new (self) } # [doc = "Bit 8 - I2C Loopback"]
# [inline (always)]
# [must_use]
pub fn mcr_lpbk (& mut self) -> MCR_LPBK_W < MCR_SPEC , 8 > { MCR_LPBK_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "I2C Master Configuration\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mcr::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mcr::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MCR_SPEC ; impl crate :: RegisterSpec for MCR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`mcr::R`](R) reader structure"]
impl crate :: Readable for MCR_SPEC { } # [doc = "`write(|w| ..)` method takes [`mcr::W`](W) writer structure"]
impl crate :: Writable for MCR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets MCR to value 0"]
impl crate :: Resettable for MCR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "MBMON (r) register accessor: I2C Master Bus Monitor\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mbmon::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mbmon`]
module"]
pub type MBMON = crate :: Reg < mbmon :: MBMON_SPEC > ; # [doc = "I2C Master Bus Monitor"]
pub mod mbmon { # [doc = "Register `MBMON` reader"]
pub type R = crate :: R < MBMON_SPEC > ; # [doc = "Field `MBMON_SCL` reader - I2C SCL Status"]
pub type MBMON_SCL_R = crate :: BitReader < MBMON_SCL_A > ; # [doc = "I2C SCL Status\n\nValue on reset: 1"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MBMON_SCL_A { # [doc = "0: CLEARED"]
MBMON_SCL_CLEARED = 0 , # [doc = "1: SET"]
MBMON_SCL_SET = 1 , } impl From < MBMON_SCL_A > for bool { # [inline (always)]
fn from (variant : MBMON_SCL_A) -> Self { variant as u8 != 0 } } impl MBMON_SCL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MBMON_SCL_A { match self . bits { false => MBMON_SCL_A :: MBMON_SCL_CLEARED , true => MBMON_SCL_A :: MBMON_SCL_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_mbmon_scl_cleared (& self) -> bool { * self == MBMON_SCL_A :: MBMON_SCL_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_mbmon_scl_set (& self) -> bool { * self == MBMON_SCL_A :: MBMON_SCL_SET } } # [doc = "Field `MBMON_SDA` reader - I2C SDA Status"]
pub type MBMON_SDA_R = crate :: BitReader < MBMON_SDA_A > ; # [doc = "I2C SDA Status\n\nValue on reset: 1"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MBMON_SDA_A { # [doc = "0: CLEARED"]
MBMON_SDA_CLEARED = 0 , # [doc = "1: SET"]
MBMON_SDA_SET = 1 , } impl From < MBMON_SDA_A > for bool { # [inline (always)]
fn from (variant : MBMON_SDA_A) -> Self { variant as u8 != 0 } } impl MBMON_SDA_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MBMON_SDA_A { match self . bits { false => MBMON_SDA_A :: MBMON_SDA_CLEARED , true => MBMON_SDA_A :: MBMON_SDA_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_mbmon_sda_cleared (& self) -> bool { * self == MBMON_SDA_A :: MBMON_SDA_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_mbmon_sda_set (& self) -> bool { * self == MBMON_SDA_A :: MBMON_SDA_SET } } impl R { # [doc = "Bit 0 - I2C SCL Status"]
# [inline (always)]
pub fn mbmon_scl (& self) -> MBMON_SCL_R { MBMON_SCL_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - I2C SDA Status"]
# [inline (always)]
pub fn mbmon_sda (& self) -> MBMON_SDA_R { MBMON_SDA_R :: new (((self . bits >> 1) & 1) != 0) } } # [doc = "I2C Master Bus Monitor\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mbmon::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MBMON_SPEC ; impl crate :: RegisterSpec for MBMON_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`mbmon::R`](R) reader structure"]
impl crate :: Readable for MBMON_SPEC { } # [doc = "`reset()` method sets MBMON to value 0x03"]
impl crate :: Resettable for MBMON_SPEC { const RESET_VALUE : Self :: Ux = 0x03 ; } } # [doc = "MFIFOCTL (rw) register accessor: I2C Master FIFO Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mfifoctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mfifoctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mfifoctl`]
module"]
pub type MFIFOCTL = crate :: Reg < mfifoctl :: MFIFOCTL_SPEC > ; # [doc = "I2C Master FIFO Control"]
pub mod mfifoctl { # [doc = "Register `MFIFOCTL` reader"]
pub type R = crate :: R < MFIFOCTL_SPEC > ; # [doc = "Register `MFIFOCTL` writer"]
pub type W = crate :: W < MFIFOCTL_SPEC > ; # [doc = "Field `MFIFOCTL_TXTRIG` reader - TX FIFO Trigger Indicates at what fill level in the TX FIFO a trigger will be generated."]
pub type MFIFOCTL_TXTRIG_R = crate :: FieldReader < MFIFOCTL_TXTRIG_A > ; # [doc = "TX FIFO Trigger Indicates at what fill level in the TX FIFO a trigger will be generated.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum MFIFOCTL_TXTRIG_A { # [doc = "4: LEVEL_4"]
MFIFOCTL_TXTRIG_LEVEL_4 = 4 , # [doc = "5: LEVEL_5"]
MFIFOCTL_TXTRIG_LEVEL_5 = 5 , # [doc = "6: LEVEL_6"]
MFIFOCTL_TXTRIG_LEVEL_6 = 6 , # [doc = "7: LEVEL_7"]
MFIFOCTL_TXTRIG_LEVEL_7 = 7 , } impl From < MFIFOCTL_TXTRIG_A > for u8 { # [inline (always)]
fn from (variant : MFIFOCTL_TXTRIG_A) -> Self { variant as _ } } impl crate :: FieldSpec for MFIFOCTL_TXTRIG_A { type Ux = u8 ; } impl MFIFOCTL_TXTRIG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < MFIFOCTL_TXTRIG_A > { match self . bits { 4 => Some (MFIFOCTL_TXTRIG_A :: MFIFOCTL_TXTRIG_LEVEL_4) , 5 => Some (MFIFOCTL_TXTRIG_A :: MFIFOCTL_TXTRIG_LEVEL_5) , 6 => Some (MFIFOCTL_TXTRIG_A :: MFIFOCTL_TXTRIG_LEVEL_6) , 7 => Some (MFIFOCTL_TXTRIG_A :: MFIFOCTL_TXTRIG_LEVEL_7) , _ => None , } } # [doc = "LEVEL_4"]
# [inline (always)]
pub fn is_mfifoctl_txtrig_level_4 (& self) -> bool { * self == MFIFOCTL_TXTRIG_A :: MFIFOCTL_TXTRIG_LEVEL_4 } # [doc = "LEVEL_5"]
# [inline (always)]
pub fn is_mfifoctl_txtrig_level_5 (& self) -> bool { * self == MFIFOCTL_TXTRIG_A :: MFIFOCTL_TXTRIG_LEVEL_5 } # [doc = "LEVEL_6"]
# [inline (always)]
pub fn is_mfifoctl_txtrig_level_6 (& self) -> bool { * self == MFIFOCTL_TXTRIG_A :: MFIFOCTL_TXTRIG_LEVEL_6 } # [doc = "LEVEL_7"]
# [inline (always)]
pub fn is_mfifoctl_txtrig_level_7 (& self) -> bool { * self == MFIFOCTL_TXTRIG_A :: MFIFOCTL_TXTRIG_LEVEL_7 } } # [doc = "Field `MFIFOCTL_TXTRIG` writer - TX FIFO Trigger Indicates at what fill level in the TX FIFO a trigger will be generated."]
pub type MFIFOCTL_TXTRIG_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , MFIFOCTL_TXTRIG_A > ; impl < 'a , REG , const O : u8 > MFIFOCTL_TXTRIG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "LEVEL_4"]
# [inline (always)]
pub fn mfifoctl_txtrig_level_4 (self) -> & 'a mut crate :: W < REG > { self . variant (MFIFOCTL_TXTRIG_A :: MFIFOCTL_TXTRIG_LEVEL_4) } # [doc = "LEVEL_5"]
# [inline (always)]
pub fn mfifoctl_txtrig_level_5 (self) -> & 'a mut crate :: W < REG > { self . variant (MFIFOCTL_TXTRIG_A :: MFIFOCTL_TXTRIG_LEVEL_5) } # [doc = "LEVEL_6"]
# [inline (always)]
pub fn mfifoctl_txtrig_level_6 (self) -> & 'a mut crate :: W < REG > { self . variant (MFIFOCTL_TXTRIG_A :: MFIFOCTL_TXTRIG_LEVEL_6) } # [doc = "LEVEL_7"]
# [inline (always)]
pub fn mfifoctl_txtrig_level_7 (self) -> & 'a mut crate :: W < REG > { self . variant (MFIFOCTL_TXTRIG_A :: MFIFOCTL_TXTRIG_LEVEL_7) } } # [doc = "Field `MFIFOCTL_TXFLUSH` reader - TX FIFO Flush Setting this bit will Flush the TX FIFO. Before reseting this bit to stop Flush the TXFIFOCNT should be checked to be 8 and indicating that the Flush has completed."]
pub type MFIFOCTL_TXFLUSH_R = crate :: BitReader < MFIFOCTL_TXFLUSH_A > ; # [doc = "TX FIFO Flush Setting this bit will Flush the TX FIFO. Before reseting this bit to stop Flush the TXFIFOCNT should be checked to be 8 and indicating that the Flush has completed.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MFIFOCTL_TXFLUSH_A { # [doc = "0: NOFLUSH"]
MFIFOCTL_TXFLUSH_NOFLUSH = 0 , # [doc = "1: FLUSH"]
MFIFOCTL_TXFLUSH_FLUSH = 1 , } impl From < MFIFOCTL_TXFLUSH_A > for bool { # [inline (always)]
fn from (variant : MFIFOCTL_TXFLUSH_A) -> Self { variant as u8 != 0 } } impl MFIFOCTL_TXFLUSH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MFIFOCTL_TXFLUSH_A { match self . bits { false => MFIFOCTL_TXFLUSH_A :: MFIFOCTL_TXFLUSH_NOFLUSH , true => MFIFOCTL_TXFLUSH_A :: MFIFOCTL_TXFLUSH_FLUSH , } } # [doc = "NOFLUSH"]
# [inline (always)]
pub fn is_mfifoctl_txflush_noflush (& self) -> bool { * self == MFIFOCTL_TXFLUSH_A :: MFIFOCTL_TXFLUSH_NOFLUSH } # [doc = "FLUSH"]
# [inline (always)]
pub fn is_mfifoctl_txflush_flush (& self) -> bool { * self == MFIFOCTL_TXFLUSH_A :: MFIFOCTL_TXFLUSH_FLUSH } } # [doc = "Field `MFIFOCTL_TXFLUSH` writer - TX FIFO Flush Setting this bit will Flush the TX FIFO. Before reseting this bit to stop Flush the TXFIFOCNT should be checked to be 8 and indicating that the Flush has completed."]
pub type MFIFOCTL_TXFLUSH_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MFIFOCTL_TXFLUSH_A > ; impl < 'a , REG , const O : u8 > MFIFOCTL_TXFLUSH_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOFLUSH"]
# [inline (always)]
pub fn mfifoctl_txflush_noflush (self) -> & 'a mut crate :: W < REG > { self . variant (MFIFOCTL_TXFLUSH_A :: MFIFOCTL_TXFLUSH_NOFLUSH) } # [doc = "FLUSH"]
# [inline (always)]
pub fn mfifoctl_txflush_flush (self) -> & 'a mut crate :: W < REG > { self . variant (MFIFOCTL_TXFLUSH_A :: MFIFOCTL_TXFLUSH_FLUSH) } } # [doc = "Field `MFIFOCTL_RXTRIG` reader - RX FIFO Trigger Indicates at what fill level in the RX FIFO a trigger will be generated. Note: Programming RXTRIG to 0x0 has no effect since no data is present to transfer out of RX FIFO."]
pub type MFIFOCTL_RXTRIG_R = crate :: FieldReader < MFIFOCTL_RXTRIG_A > ; # [doc = "RX FIFO Trigger Indicates at what fill level in the RX FIFO a trigger will be generated. Note: Programming RXTRIG to 0x0 has no effect since no data is present to transfer out of RX FIFO.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum MFIFOCTL_RXTRIG_A { # [doc = "4: LEVEL_5"]
MFIFOCTL_RXTRIG_LEVEL_5 = 4 , # [doc = "5: LEVEL_6"]
MFIFOCTL_RXTRIG_LEVEL_6 = 5 , # [doc = "6: LEVEL_7"]
MFIFOCTL_RXTRIG_LEVEL_7 = 6 , # [doc = "7: LEVEL_8"]
MFIFOCTL_RXTRIG_LEVEL_8 = 7 , } impl From < MFIFOCTL_RXTRIG_A > for u8 { # [inline (always)]
fn from (variant : MFIFOCTL_RXTRIG_A) -> Self { variant as _ } } impl crate :: FieldSpec for MFIFOCTL_RXTRIG_A { type Ux = u8 ; } impl MFIFOCTL_RXTRIG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < MFIFOCTL_RXTRIG_A > { match self . bits { 4 => Some (MFIFOCTL_RXTRIG_A :: MFIFOCTL_RXTRIG_LEVEL_5) , 5 => Some (MFIFOCTL_RXTRIG_A :: MFIFOCTL_RXTRIG_LEVEL_6) , 6 => Some (MFIFOCTL_RXTRIG_A :: MFIFOCTL_RXTRIG_LEVEL_7) , 7 => Some (MFIFOCTL_RXTRIG_A :: MFIFOCTL_RXTRIG_LEVEL_8) , _ => None , } } # [doc = "LEVEL_5"]
# [inline (always)]
pub fn is_mfifoctl_rxtrig_level_5 (& self) -> bool { * self == MFIFOCTL_RXTRIG_A :: MFIFOCTL_RXTRIG_LEVEL_5 } # [doc = "LEVEL_6"]
# [inline (always)]
pub fn is_mfifoctl_rxtrig_level_6 (& self) -> bool { * self == MFIFOCTL_RXTRIG_A :: MFIFOCTL_RXTRIG_LEVEL_6 } # [doc = "LEVEL_7"]
# [inline (always)]
pub fn is_mfifoctl_rxtrig_level_7 (& self) -> bool { * self == MFIFOCTL_RXTRIG_A :: MFIFOCTL_RXTRIG_LEVEL_7 } # [doc = "LEVEL_8"]
# [inline (always)]
pub fn is_mfifoctl_rxtrig_level_8 (& self) -> bool { * self == MFIFOCTL_RXTRIG_A :: MFIFOCTL_RXTRIG_LEVEL_8 } } # [doc = "Field `MFIFOCTL_RXTRIG` writer - RX FIFO Trigger Indicates at what fill level in the RX FIFO a trigger will be generated. Note: Programming RXTRIG to 0x0 has no effect since no data is present to transfer out of RX FIFO."]
pub type MFIFOCTL_RXTRIG_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , MFIFOCTL_RXTRIG_A > ; impl < 'a , REG , const O : u8 > MFIFOCTL_RXTRIG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "LEVEL_5"]
# [inline (always)]
pub fn mfifoctl_rxtrig_level_5 (self) -> & 'a mut crate :: W < REG > { self . variant (MFIFOCTL_RXTRIG_A :: MFIFOCTL_RXTRIG_LEVEL_5) } # [doc = "LEVEL_6"]
# [inline (always)]
pub fn mfifoctl_rxtrig_level_6 (self) -> & 'a mut crate :: W < REG > { self . variant (MFIFOCTL_RXTRIG_A :: MFIFOCTL_RXTRIG_LEVEL_6) } # [doc = "LEVEL_7"]
# [inline (always)]
pub fn mfifoctl_rxtrig_level_7 (self) -> & 'a mut crate :: W < REG > { self . variant (MFIFOCTL_RXTRIG_A :: MFIFOCTL_RXTRIG_LEVEL_7) } # [doc = "LEVEL_8"]
# [inline (always)]
pub fn mfifoctl_rxtrig_level_8 (self) -> & 'a mut crate :: W < REG > { self . variant (MFIFOCTL_RXTRIG_A :: MFIFOCTL_RXTRIG_LEVEL_8) } } # [doc = "Field `MFIFOCTL_RXFLUSH` reader - RX FIFO Flush Setting this bit will Flush the RX FIFO. Before reseting this bit to stop Flush the RXFIFOCNT should be checked to be 0 and indicating that the Flush has completed."]
pub type MFIFOCTL_RXFLUSH_R = crate :: BitReader < MFIFOCTL_RXFLUSH_A > ; # [doc = "RX FIFO Flush Setting this bit will Flush the RX FIFO. Before reseting this bit to stop Flush the RXFIFOCNT should be checked to be 0 and indicating that the Flush has completed.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MFIFOCTL_RXFLUSH_A { # [doc = "0: NOFLUSH"]
MFIFOCTL_RXFLUSH_NOFLUSH = 0 , # [doc = "1: FLUSH"]
MFIFOCTL_RXFLUSH_FLUSH = 1 , } impl From < MFIFOCTL_RXFLUSH_A > for bool { # [inline (always)]
fn from (variant : MFIFOCTL_RXFLUSH_A) -> Self { variant as u8 != 0 } } impl MFIFOCTL_RXFLUSH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MFIFOCTL_RXFLUSH_A { match self . bits { false => MFIFOCTL_RXFLUSH_A :: MFIFOCTL_RXFLUSH_NOFLUSH , true => MFIFOCTL_RXFLUSH_A :: MFIFOCTL_RXFLUSH_FLUSH , } } # [doc = "NOFLUSH"]
# [inline (always)]
pub fn is_mfifoctl_rxflush_noflush (& self) -> bool { * self == MFIFOCTL_RXFLUSH_A :: MFIFOCTL_RXFLUSH_NOFLUSH } # [doc = "FLUSH"]
# [inline (always)]
pub fn is_mfifoctl_rxflush_flush (& self) -> bool { * self == MFIFOCTL_RXFLUSH_A :: MFIFOCTL_RXFLUSH_FLUSH } } # [doc = "Field `MFIFOCTL_RXFLUSH` writer - RX FIFO Flush Setting this bit will Flush the RX FIFO. Before reseting this bit to stop Flush the RXFIFOCNT should be checked to be 0 and indicating that the Flush has completed."]
pub type MFIFOCTL_RXFLUSH_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MFIFOCTL_RXFLUSH_A > ; impl < 'a , REG , const O : u8 > MFIFOCTL_RXFLUSH_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOFLUSH"]
# [inline (always)]
pub fn mfifoctl_rxflush_noflush (self) -> & 'a mut crate :: W < REG > { self . variant (MFIFOCTL_RXFLUSH_A :: MFIFOCTL_RXFLUSH_NOFLUSH) } # [doc = "FLUSH"]
# [inline (always)]
pub fn mfifoctl_rxflush_flush (self) -> & 'a mut crate :: W < REG > { self . variant (MFIFOCTL_RXFLUSH_A :: MFIFOCTL_RXFLUSH_FLUSH) } } impl R { # [doc = "Bits 0:2 - TX FIFO Trigger Indicates at what fill level in the TX FIFO a trigger will be generated."]
# [inline (always)]
pub fn mfifoctl_txtrig (& self) -> MFIFOCTL_TXTRIG_R { MFIFOCTL_TXTRIG_R :: new ((self . bits & 7) as u8) } # [doc = "Bit 7 - TX FIFO Flush Setting this bit will Flush the TX FIFO. Before reseting this bit to stop Flush the TXFIFOCNT should be checked to be 8 and indicating that the Flush has completed."]
# [inline (always)]
pub fn mfifoctl_txflush (& self) -> MFIFOCTL_TXFLUSH_R { MFIFOCTL_TXFLUSH_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bits 8:10 - RX FIFO Trigger Indicates at what fill level in the RX FIFO a trigger will be generated. Note: Programming RXTRIG to 0x0 has no effect since no data is present to transfer out of RX FIFO."]
# [inline (always)]
pub fn mfifoctl_rxtrig (& self) -> MFIFOCTL_RXTRIG_R { MFIFOCTL_RXTRIG_R :: new (((self . bits >> 8) & 7) as u8) } # [doc = "Bit 15 - RX FIFO Flush Setting this bit will Flush the RX FIFO. Before reseting this bit to stop Flush the RXFIFOCNT should be checked to be 0 and indicating that the Flush has completed."]
# [inline (always)]
pub fn mfifoctl_rxflush (& self) -> MFIFOCTL_RXFLUSH_R { MFIFOCTL_RXFLUSH_R :: new (((self . bits >> 15) & 1) != 0) } } impl W { # [doc = "Bits 0:2 - TX FIFO Trigger Indicates at what fill level in the TX FIFO a trigger will be generated."]
# [inline (always)]
# [must_use]
pub fn mfifoctl_txtrig (& mut self) -> MFIFOCTL_TXTRIG_W < MFIFOCTL_SPEC , 0 > { MFIFOCTL_TXTRIG_W :: new (self) } # [doc = "Bit 7 - TX FIFO Flush Setting this bit will Flush the TX FIFO. Before reseting this bit to stop Flush the TXFIFOCNT should be checked to be 8 and indicating that the Flush has completed."]
# [inline (always)]
# [must_use]
pub fn mfifoctl_txflush (& mut self) -> MFIFOCTL_TXFLUSH_W < MFIFOCTL_SPEC , 7 > { MFIFOCTL_TXFLUSH_W :: new (self) } # [doc = "Bits 8:10 - RX FIFO Trigger Indicates at what fill level in the RX FIFO a trigger will be generated. Note: Programming RXTRIG to 0x0 has no effect since no data is present to transfer out of RX FIFO."]
# [inline (always)]
# [must_use]
pub fn mfifoctl_rxtrig (& mut self) -> MFIFOCTL_RXTRIG_W < MFIFOCTL_SPEC , 8 > { MFIFOCTL_RXTRIG_W :: new (self) } # [doc = "Bit 15 - RX FIFO Flush Setting this bit will Flush the RX FIFO. Before reseting this bit to stop Flush the RXFIFOCNT should be checked to be 0 and indicating that the Flush has completed."]
# [inline (always)]
# [must_use]
pub fn mfifoctl_rxflush (& mut self) -> MFIFOCTL_RXFLUSH_W < MFIFOCTL_SPEC , 15 > { MFIFOCTL_RXFLUSH_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "I2C Master FIFO Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mfifoctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mfifoctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MFIFOCTL_SPEC ; impl crate :: RegisterSpec for MFIFOCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`mfifoctl::R`](R) reader structure"]
impl crate :: Readable for MFIFOCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`mfifoctl::W`](W) writer structure"]
impl crate :: Writable for MFIFOCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets MFIFOCTL to value 0"]
impl crate :: Resettable for MFIFOCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "MFIFOSR (r) register accessor: I2C Master FIFO Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mfifosr::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mfifosr`]
module"]
pub type MFIFOSR = crate :: Reg < mfifosr :: MFIFOSR_SPEC > ; # [doc = "I2C Master FIFO Status Register"]
pub mod mfifosr { # [doc = "Register `MFIFOSR` reader"]
pub type R = crate :: R < MFIFOSR_SPEC > ; # [doc = "Field `MFIFOSR_RXFIFOCNT` reader - Number of Bytes which could be read from the RX FIFO"]
pub type MFIFOSR_RXFIFOCNT_R = crate :: FieldReader ; # [doc = "Field `MFIFOSR_RXFLUSH` reader - RX FIFO Flush When this bit is set a Flush operation for the RX FIFO is active. Clear the RXFLUSH bit in the control register to stop."]
pub type MFIFOSR_RXFLUSH_R = crate :: BitReader < MFIFOSR_RXFLUSH_A > ; # [doc = "RX FIFO Flush When this bit is set a Flush operation for the RX FIFO is active. Clear the RXFLUSH bit in the control register to stop.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MFIFOSR_RXFLUSH_A { # [doc = "0: INACTIVE"]
MFIFOSR_RXFLUSH_INACTIVE = 0 , # [doc = "1: ACTIVE"]
MFIFOSR_RXFLUSH_ACTIVE = 1 , } impl From < MFIFOSR_RXFLUSH_A > for bool { # [inline (always)]
fn from (variant : MFIFOSR_RXFLUSH_A) -> Self { variant as u8 != 0 } } impl MFIFOSR_RXFLUSH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MFIFOSR_RXFLUSH_A { match self . bits { false => MFIFOSR_RXFLUSH_A :: MFIFOSR_RXFLUSH_INACTIVE , true => MFIFOSR_RXFLUSH_A :: MFIFOSR_RXFLUSH_ACTIVE , } } # [doc = "INACTIVE"]
# [inline (always)]
pub fn is_mfifosr_rxflush_inactive (& self) -> bool { * self == MFIFOSR_RXFLUSH_A :: MFIFOSR_RXFLUSH_INACTIVE } # [doc = "ACTIVE"]
# [inline (always)]
pub fn is_mfifosr_rxflush_active (& self) -> bool { * self == MFIFOSR_RXFLUSH_A :: MFIFOSR_RXFLUSH_ACTIVE } } # [doc = "Field `MFIFOSR_TXFIFOCNT` reader - Number of Bytes which could be put into the TX FIFO"]
pub type MFIFOSR_TXFIFOCNT_R = crate :: FieldReader ; # [doc = "Field `MFIFOSR_TXFLUSH` reader - TX FIFO Flush When this bit is set a Flush operation for the TX FIFO is active. Clear the TXFLUSH bit in the control register to stop."]
pub type MFIFOSR_TXFLUSH_R = crate :: BitReader < MFIFOSR_TXFLUSH_A > ; # [doc = "TX FIFO Flush When this bit is set a Flush operation for the TX FIFO is active. Clear the TXFLUSH bit in the control register to stop.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MFIFOSR_TXFLUSH_A { # [doc = "0: INACTIVE"]
MFIFOSR_TXFLUSH_INACTIVE = 0 , # [doc = "1: ACTIVE"]
MFIFOSR_TXFLUSH_ACTIVE = 1 , } impl From < MFIFOSR_TXFLUSH_A > for bool { # [inline (always)]
fn from (variant : MFIFOSR_TXFLUSH_A) -> Self { variant as u8 != 0 } } impl MFIFOSR_TXFLUSH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MFIFOSR_TXFLUSH_A { match self . bits { false => MFIFOSR_TXFLUSH_A :: MFIFOSR_TXFLUSH_INACTIVE , true => MFIFOSR_TXFLUSH_A :: MFIFOSR_TXFLUSH_ACTIVE , } } # [doc = "INACTIVE"]
# [inline (always)]
pub fn is_mfifosr_txflush_inactive (& self) -> bool { * self == MFIFOSR_TXFLUSH_A :: MFIFOSR_TXFLUSH_INACTIVE } # [doc = "ACTIVE"]
# [inline (always)]
pub fn is_mfifosr_txflush_active (& self) -> bool { * self == MFIFOSR_TXFLUSH_A :: MFIFOSR_TXFLUSH_ACTIVE } } impl R { # [doc = "Bits 0:3 - Number of Bytes which could be read from the RX FIFO"]
# [inline (always)]
pub fn mfifosr_rxfifocnt (& self) -> MFIFOSR_RXFIFOCNT_R { MFIFOSR_RXFIFOCNT_R :: new ((self . bits & 0x0f) as u8) } # [doc = "Bit 7 - RX FIFO Flush When this bit is set a Flush operation for the RX FIFO is active. Clear the RXFLUSH bit in the control register to stop."]
# [inline (always)]
pub fn mfifosr_rxflush (& self) -> MFIFOSR_RXFLUSH_R { MFIFOSR_RXFLUSH_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bits 8:11 - Number of Bytes which could be put into the TX FIFO"]
# [inline (always)]
pub fn mfifosr_txfifocnt (& self) -> MFIFOSR_TXFIFOCNT_R { MFIFOSR_TXFIFOCNT_R :: new (((self . bits >> 8) & 0x0f) as u8) } # [doc = "Bit 15 - TX FIFO Flush When this bit is set a Flush operation for the TX FIFO is active. Clear the TXFLUSH bit in the control register to stop."]
# [inline (always)]
pub fn mfifosr_txflush (& self) -> MFIFOSR_TXFLUSH_R { MFIFOSR_TXFLUSH_R :: new (((self . bits >> 15) & 1) != 0) } } # [doc = "I2C Master FIFO Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mfifosr::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MFIFOSR_SPEC ; impl crate :: RegisterSpec for MFIFOSR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`mfifosr::R`](R) reader structure"]
impl crate :: Readable for MFIFOSR_SPEC { } # [doc = "`reset()` method sets MFIFOSR to value 0x0800"]
impl crate :: Resettable for MFIFOSR_SPEC { const RESET_VALUE : Self :: Ux = 0x0800 ; } } # [doc = "MASTER_I2CPECCTL (rw) register accessor: I2C master PEC control register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`master_i2cpecctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`master_i2cpecctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@master_i2cpecctl`]
module"]
pub type MASTER_I2CPECCTL = crate :: Reg < master_i2cpecctl :: MASTER_I2CPECCTL_SPEC > ; # [doc = "I2C master PEC control register"]
pub mod master_i2cpecctl { # [doc = "Register `MASTER_I2CPECCTL` reader"]
pub type R = crate :: R < MASTER_I2CPECCTL_SPEC > ; # [doc = "Register `MASTER_I2CPECCTL` writer"]
pub type W = crate :: W < MASTER_I2CPECCTL_SPEC > ; # [doc = "Field `MASTER_I2CPECCTL_PECCNT` reader - PEC Count When this field is non zero, the number of I2C bytes are counted (Note that although the PEC is calculated on the I2C address it is not counted at a byte). When the byte count = PECCNT and the state machine is transmitting, the contents of the LSFR is loaded into the shift register instead of the byte received from the Tx FIFO. When the state machine is receiving, after the last bit of this byte is received the LSFR is checked and if it is non-zero, a PEC RX Error interrupt is generated. The I2C packet must be padded to include the PEC byte for both transmit and receive. In transmit mode the FIFO must be loaded with a dummy PEC byte. In receive mode the PEC byte will be passed to the Rx FIFO. In the normal Master use case, FW would set PECEN=1 and PECCNT=SMB packet length (Not including Slave Address byte, but including the PEC byte). FW would then configure DMA to allow the packet to complete unassisted and write MCTR to initiate the transaction. Note that when the byte count = PEC CNT, the byte count is reset to 0 and multiple PEC calculation can automatically occur within a single I2C transaction. Note that any write to the MASTER_I2CPECCTL Register will clear the current PEC Byte Count in the Master State Machine."]
pub type MASTER_I2CPECCTL_PECCNT_R = crate :: FieldReader < u16 > ; # [doc = "Field `MASTER_I2CPECCTL_PECCNT` writer - PEC Count When this field is non zero, the number of I2C bytes are counted (Note that although the PEC is calculated on the I2C address it is not counted at a byte). When the byte count = PECCNT and the state machine is transmitting, the contents of the LSFR is loaded into the shift register instead of the byte received from the Tx FIFO. When the state machine is receiving, after the last bit of this byte is received the LSFR is checked and if it is non-zero, a PEC RX Error interrupt is generated. The I2C packet must be padded to include the PEC byte for both transmit and receive. In transmit mode the FIFO must be loaded with a dummy PEC byte. In receive mode the PEC byte will be passed to the Rx FIFO. In the normal Master use case, FW would set PECEN=1 and PECCNT=SMB packet length (Not including Slave Address byte, but including the PEC byte). FW would then configure DMA to allow the packet to complete unassisted and write MCTR to initiate the transaction. Note that when the byte count = PEC CNT, the byte count is reset to 0 and multiple PEC calculation can automatically occur within a single I2C transaction. Note that any write to the MASTER_I2CPECCTL Register will clear the current PEC Byte Count in the Master State Machine."]
pub type MASTER_I2CPECCTL_PECCNT_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 9 , O , u16 > ; # [doc = "Field `MASTER_I2CPECCTL_PECEN` reader - PEC Enable This bit enables the SMB Packet Error Checking (PEC). When enabled the PEC is calculated on all bits accept the Start, Stop, Ack and Nack. The PEC LSFR and the Byte Counter is set to 0 when the State Machine is in the IDLE state, which occur following a Stop or when a timeout occurs. The Counter is also set to 0 after the PEC byte is sent or received. Note that the NACK is automatically send following a PEC byte that results in a PEC error. The PEC Polynomial is x^8 + x^2 + x^1 + 1."]
pub type MASTER_I2CPECCTL_PECEN_R = crate :: BitReader < MASTER_I2CPECCTL_PECEN_A > ; # [doc = "PEC Enable This bit enables the SMB Packet Error Checking (PEC). When enabled the PEC is calculated on all bits accept the Start, Stop, Ack and Nack. The PEC LSFR and the Byte Counter is set to 0 when the State Machine is in the IDLE state, which occur following a Stop or when a timeout occurs. The Counter is also set to 0 after the PEC byte is sent or received. Note that the NACK is automatically send following a PEC byte that results in a PEC error. The PEC Polynomial is x^8 + x^2 + x^1 + 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MASTER_I2CPECCTL_PECEN_A { # [doc = "0: DISABLE"]
MASTER_I2CPECCTL_PECEN_DISABLE = 0 , # [doc = "1: ENABLE"]
MASTER_I2CPECCTL_PECEN_ENABLE = 1 , } impl From < MASTER_I2CPECCTL_PECEN_A > for bool { # [inline (always)]
fn from (variant : MASTER_I2CPECCTL_PECEN_A) -> Self { variant as u8 != 0 } } impl MASTER_I2CPECCTL_PECEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MASTER_I2CPECCTL_PECEN_A { match self . bits { false => MASTER_I2CPECCTL_PECEN_A :: MASTER_I2CPECCTL_PECEN_DISABLE , true => MASTER_I2CPECCTL_PECEN_A :: MASTER_I2CPECCTL_PECEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_master_i2cpecctl_pecen_disable (& self) -> bool { * self == MASTER_I2CPECCTL_PECEN_A :: MASTER_I2CPECCTL_PECEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_master_i2cpecctl_pecen_enable (& self) -> bool { * self == MASTER_I2CPECCTL_PECEN_A :: MASTER_I2CPECCTL_PECEN_ENABLE } } # [doc = "Field `MASTER_I2CPECCTL_PECEN` writer - PEC Enable This bit enables the SMB Packet Error Checking (PEC). When enabled the PEC is calculated on all bits accept the Start, Stop, Ack and Nack. The PEC LSFR and the Byte Counter is set to 0 when the State Machine is in the IDLE state, which occur following a Stop or when a timeout occurs. The Counter is also set to 0 after the PEC byte is sent or received. Note that the NACK is automatically send following a PEC byte that results in a PEC error. The PEC Polynomial is x^8 + x^2 + x^1 + 1."]
pub type MASTER_I2CPECCTL_PECEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MASTER_I2CPECCTL_PECEN_A > ; impl < 'a , REG , const O : u8 > MASTER_I2CPECCTL_PECEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn master_i2cpecctl_pecen_disable (self) -> & 'a mut crate :: W < REG > { self . variant (MASTER_I2CPECCTL_PECEN_A :: MASTER_I2CPECCTL_PECEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn master_i2cpecctl_pecen_enable (self) -> & 'a mut crate :: W < REG > { self . variant (MASTER_I2CPECCTL_PECEN_A :: MASTER_I2CPECCTL_PECEN_ENABLE) } } impl R { # [doc = "Bits 0:8 - PEC Count When this field is non zero, the number of I2C bytes are counted (Note that although the PEC is calculated on the I2C address it is not counted at a byte). When the byte count = PECCNT and the state machine is transmitting, the contents of the LSFR is loaded into the shift register instead of the byte received from the Tx FIFO. When the state machine is receiving, after the last bit of this byte is received the LSFR is checked and if it is non-zero, a PEC RX Error interrupt is generated. The I2C packet must be padded to include the PEC byte for both transmit and receive. In transmit mode the FIFO must be loaded with a dummy PEC byte. In receive mode the PEC byte will be passed to the Rx FIFO. In the normal Master use case, FW would set PECEN=1 and PECCNT=SMB packet length (Not including Slave Address byte, but including the PEC byte). FW would then configure DMA to allow the packet to complete unassisted and write MCTR to initiate the transaction. Note that when the byte count = PEC CNT, the byte count is reset to 0 and multiple PEC calculation can automatically occur within a single I2C transaction. Note that any write to the MASTER_I2CPECCTL Register will clear the current PEC Byte Count in the Master State Machine."]
# [inline (always)]
pub fn master_i2cpecctl_peccnt (& self) -> MASTER_I2CPECCTL_PECCNT_R { MASTER_I2CPECCTL_PECCNT_R :: new ((self . bits & 0x01ff) as u16) } # [doc = "Bit 12 - PEC Enable This bit enables the SMB Packet Error Checking (PEC). When enabled the PEC is calculated on all bits accept the Start, Stop, Ack and Nack. The PEC LSFR and the Byte Counter is set to 0 when the State Machine is in the IDLE state, which occur following a Stop or when a timeout occurs. The Counter is also set to 0 after the PEC byte is sent or received. Note that the NACK is automatically send following a PEC byte that results in a PEC error. The PEC Polynomial is x^8 + x^2 + x^1 + 1."]
# [inline (always)]
pub fn master_i2cpecctl_pecen (& self) -> MASTER_I2CPECCTL_PECEN_R { MASTER_I2CPECCTL_PECEN_R :: new (((self . bits >> 12) & 1) != 0) } } impl W { # [doc = "Bits 0:8 - PEC Count When this field is non zero, the number of I2C bytes are counted (Note that although the PEC is calculated on the I2C address it is not counted at a byte). When the byte count = PECCNT and the state machine is transmitting, the contents of the LSFR is loaded into the shift register instead of the byte received from the Tx FIFO. When the state machine is receiving, after the last bit of this byte is received the LSFR is checked and if it is non-zero, a PEC RX Error interrupt is generated. The I2C packet must be padded to include the PEC byte for both transmit and receive. In transmit mode the FIFO must be loaded with a dummy PEC byte. In receive mode the PEC byte will be passed to the Rx FIFO. In the normal Master use case, FW would set PECEN=1 and PECCNT=SMB packet length (Not including Slave Address byte, but including the PEC byte). FW would then configure DMA to allow the packet to complete unassisted and write MCTR to initiate the transaction. Note that when the byte count = PEC CNT, the byte count is reset to 0 and multiple PEC calculation can automatically occur within a single I2C transaction. Note that any write to the MASTER_I2CPECCTL Register will clear the current PEC Byte Count in the Master State Machine."]
# [inline (always)]
# [must_use]
pub fn master_i2cpecctl_peccnt (& mut self) -> MASTER_I2CPECCTL_PECCNT_W < MASTER_I2CPECCTL_SPEC , 0 > { MASTER_I2CPECCTL_PECCNT_W :: new (self) } # [doc = "Bit 12 - PEC Enable This bit enables the SMB Packet Error Checking (PEC). When enabled the PEC is calculated on all bits accept the Start, Stop, Ack and Nack. The PEC LSFR and the Byte Counter is set to 0 when the State Machine is in the IDLE state, which occur following a Stop or when a timeout occurs. The Counter is also set to 0 after the PEC byte is sent or received. Note that the NACK is automatically send following a PEC byte that results in a PEC error. The PEC Polynomial is x^8 + x^2 + x^1 + 1."]
# [inline (always)]
# [must_use]
pub fn master_i2cpecctl_pecen (& mut self) -> MASTER_I2CPECCTL_PECEN_W < MASTER_I2CPECCTL_SPEC , 12 > { MASTER_I2CPECCTL_PECEN_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "I2C master PEC control register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`master_i2cpecctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`master_i2cpecctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MASTER_I2CPECCTL_SPEC ; impl crate :: RegisterSpec for MASTER_I2CPECCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`master_i2cpecctl::R`](R) reader structure"]
impl crate :: Readable for MASTER_I2CPECCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`master_i2cpecctl::W`](W) writer structure"]
impl crate :: Writable for MASTER_I2CPECCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets MASTER_I2CPECCTL to value 0"]
impl crate :: Resettable for MASTER_I2CPECCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "MASTER_PECSR (r) register accessor: I2C master PEC status register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`master_pecsr::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@master_pecsr`]
module"]
pub type MASTER_PECSR = crate :: Reg < master_pecsr :: MASTER_PECSR_SPEC > ; # [doc = "I2C master PEC status register"]
pub mod master_pecsr { # [doc = "Register `MASTER_PECSR` reader"]
pub type R = crate :: R < MASTER_PECSR_SPEC > ; # [doc = "Field `MASTER_PECSR_PECBYTECNT` reader - PEC Byte Count This is the current PEC Byte Count of the Master State Machine."]
pub type MASTER_PECSR_PECBYTECNT_R = crate :: FieldReader < u16 > ; # [doc = "Field `MASTER_PECSR_PECSTS_CHECK` reader - This status bit indicates if the PEC was checked in the transaction that occurred before the last Stop. Latched on Stop."]
pub type MASTER_PECSR_PECSTS_CHECK_R = crate :: BitReader < MASTER_PECSR_PECSTS_CHECK_A > ; # [doc = "This status bit indicates if the PEC was checked in the transaction that occurred before the last Stop. Latched on Stop.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MASTER_PECSR_PECSTS_CHECK_A { # [doc = "0: CLEARED"]
MASTER_PECSR_PECSTS_CHECK_CLEARED = 0 , # [doc = "1: SET"]
MASTER_PECSR_PECSTS_CHECK_SET = 1 , } impl From < MASTER_PECSR_PECSTS_CHECK_A > for bool { # [inline (always)]
fn from (variant : MASTER_PECSR_PECSTS_CHECK_A) -> Self { variant as u8 != 0 } } impl MASTER_PECSR_PECSTS_CHECK_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MASTER_PECSR_PECSTS_CHECK_A { match self . bits { false => MASTER_PECSR_PECSTS_CHECK_A :: MASTER_PECSR_PECSTS_CHECK_CLEARED , true => MASTER_PECSR_PECSTS_CHECK_A :: MASTER_PECSR_PECSTS_CHECK_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_master_pecsr_pecsts_check_cleared (& self) -> bool { * self == MASTER_PECSR_PECSTS_CHECK_A :: MASTER_PECSR_PECSTS_CHECK_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_master_pecsr_pecsts_check_set (& self) -> bool { * self == MASTER_PECSR_PECSTS_CHECK_A :: MASTER_PECSR_PECSTS_CHECK_SET } } # [doc = "Field `MASTER_PECSR_PECSTS_ERROR` reader - This status bit indicates if a PEC check error occurred in the transaction that occurred before the last Stop. Latched on Stop."]
pub type MASTER_PECSR_PECSTS_ERROR_R = crate :: BitReader < MASTER_PECSR_PECSTS_ERROR_A > ; # [doc = "This status bit indicates if a PEC check error occurred in the transaction that occurred before the last Stop. Latched on Stop.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MASTER_PECSR_PECSTS_ERROR_A { # [doc = "0: CLEARED"]
MASTER_PECSR_PECSTS_ERROR_CLEARED = 0 , # [doc = "1: SET"]
MASTER_PECSR_PECSTS_ERROR_SET = 1 , } impl From < MASTER_PECSR_PECSTS_ERROR_A > for bool { # [inline (always)]
fn from (variant : MASTER_PECSR_PECSTS_ERROR_A) -> Self { variant as u8 != 0 } } impl MASTER_PECSR_PECSTS_ERROR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MASTER_PECSR_PECSTS_ERROR_A { match self . bits { false => MASTER_PECSR_PECSTS_ERROR_A :: MASTER_PECSR_PECSTS_ERROR_CLEARED , true => MASTER_PECSR_PECSTS_ERROR_A :: MASTER_PECSR_PECSTS_ERROR_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_master_pecsr_pecsts_error_cleared (& self) -> bool { * self == MASTER_PECSR_PECSTS_ERROR_A :: MASTER_PECSR_PECSTS_ERROR_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_master_pecsr_pecsts_error_set (& self) -> bool { * self == MASTER_PECSR_PECSTS_ERROR_A :: MASTER_PECSR_PECSTS_ERROR_SET } } impl R { # [doc = "Bits 0:8 - PEC Byte Count This is the current PEC Byte Count of the Master State Machine."]
# [inline (always)]
pub fn master_pecsr_pecbytecnt (& self) -> MASTER_PECSR_PECBYTECNT_R { MASTER_PECSR_PECBYTECNT_R :: new ((self . bits & 0x01ff) as u16) } # [doc = "Bit 16 - This status bit indicates if the PEC was checked in the transaction that occurred before the last Stop. Latched on Stop."]
# [inline (always)]
pub fn master_pecsr_pecsts_check (& self) -> MASTER_PECSR_PECSTS_CHECK_R { MASTER_PECSR_PECSTS_CHECK_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 17 - This status bit indicates if a PEC check error occurred in the transaction that occurred before the last Stop. Latched on Stop."]
# [inline (always)]
pub fn master_pecsr_pecsts_error (& self) -> MASTER_PECSR_PECSTS_ERROR_R { MASTER_PECSR_PECSTS_ERROR_R :: new (((self . bits >> 17) & 1) != 0) } } # [doc = "I2C master PEC status register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`master_pecsr::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MASTER_PECSR_SPEC ; impl crate :: RegisterSpec for MASTER_PECSR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`master_pecsr::R`](R) reader structure"]
impl crate :: Readable for MASTER_PECSR_SPEC { } # [doc = "`reset()` method sets MASTER_PECSR to value 0"]
impl crate :: Resettable for MASTER_PECSR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "SOAR (rw) register accessor: I2C Slave Own Address\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`soar::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`soar::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@soar`]
module"]
pub type SOAR = crate :: Reg < soar :: SOAR_SPEC > ; # [doc = "I2C Slave Own Address"]
pub mod soar { # [doc = "Register `SOAR` reader"]
pub type R = crate :: R < SOAR_SPEC > ; # [doc = "Register `SOAR` writer"]
pub type W = crate :: W < SOAR_SPEC > ; # [doc = "Field `SOAR_OAR` reader - I2C Slave Own Address: This field specifies bits A9 through A0 of the slave address. In 7-bit addressing mode as selected by I2CSOAR.MODE bit, the top 3 bits are don't care"]
pub type SOAR_OAR_R = crate :: FieldReader < u16 > ; # [doc = "Field `SOAR_OAR` writer - I2C Slave Own Address: This field specifies bits A9 through A0 of the slave address. In 7-bit addressing mode as selected by I2CSOAR.MODE bit, the top 3 bits are don't care"]
pub type SOAR_OAR_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 10 , O , u16 > ; # [doc = "Field `SOAR_OAREN` reader - I2C Slave Own Address Enable"]
pub type SOAR_OAREN_R = crate :: BitReader < SOAR_OAREN_A > ; # [doc = "I2C Slave Own Address Enable\n\nValue on reset: 1"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SOAR_OAREN_A { # [doc = "0: DISABLE"]
SOAR_OAREN_DISABLE = 0 , # [doc = "1: ENABLE"]
SOAR_OAREN_ENABLE = 1 , } impl From < SOAR_OAREN_A > for bool { # [inline (always)]
fn from (variant : SOAR_OAREN_A) -> Self { variant as u8 != 0 } } impl SOAR_OAREN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SOAR_OAREN_A { match self . bits { false => SOAR_OAREN_A :: SOAR_OAREN_DISABLE , true => SOAR_OAREN_A :: SOAR_OAREN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_soar_oaren_disable (& self) -> bool { * self == SOAR_OAREN_A :: SOAR_OAREN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_soar_oaren_enable (& self) -> bool { * self == SOAR_OAREN_A :: SOAR_OAREN_ENABLE } } # [doc = "Field `SOAR_OAREN` writer - I2C Slave Own Address Enable"]
pub type SOAR_OAREN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SOAR_OAREN_A > ; impl < 'a , REG , const O : u8 > SOAR_OAREN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn soar_oaren_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SOAR_OAREN_A :: SOAR_OAREN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn soar_oaren_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SOAR_OAREN_A :: SOAR_OAREN_ENABLE) } } # [doc = "Field `SOAR_SMODE` reader - This bit selects the adressing mode to be used in slave mode. When 0, 7-bit addressing is used. When 1, 10-bit addressing is used."]
pub type SOAR_SMODE_R = crate :: BitReader < SOAR_SMODE_A > ; # [doc = "This bit selects the adressing mode to be used in slave mode. When 0, 7-bit addressing is used. When 1, 10-bit addressing is used.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SOAR_SMODE_A { # [doc = "0: MODE7"]
SOAR_SMODE_MODE7 = 0 , # [doc = "1: MODE10"]
SOAR_SMODE_MODE10 = 1 , } impl From < SOAR_SMODE_A > for bool { # [inline (always)]
fn from (variant : SOAR_SMODE_A) -> Self { variant as u8 != 0 } } impl SOAR_SMODE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SOAR_SMODE_A { match self . bits { false => SOAR_SMODE_A :: SOAR_SMODE_MODE7 , true => SOAR_SMODE_A :: SOAR_SMODE_MODE10 , } } # [doc = "MODE7"]
# [inline (always)]
pub fn is_soar_smode_mode7 (& self) -> bool { * self == SOAR_SMODE_A :: SOAR_SMODE_MODE7 } # [doc = "MODE10"]
# [inline (always)]
pub fn is_soar_smode_mode10 (& self) -> bool { * self == SOAR_SMODE_A :: SOAR_SMODE_MODE10 } } # [doc = "Field `SOAR_SMODE` writer - This bit selects the adressing mode to be used in slave mode. When 0, 7-bit addressing is used. When 1, 10-bit addressing is used."]
pub type SOAR_SMODE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SOAR_SMODE_A > ; impl < 'a , REG , const O : u8 > SOAR_SMODE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "MODE7"]
# [inline (always)]
pub fn soar_smode_mode7 (self) -> & 'a mut crate :: W < REG > { self . variant (SOAR_SMODE_A :: SOAR_SMODE_MODE7) } # [doc = "MODE10"]
# [inline (always)]
pub fn soar_smode_mode10 (self) -> & 'a mut crate :: W < REG > { self . variant (SOAR_SMODE_A :: SOAR_SMODE_MODE10) } } impl R { # [doc = "Bits 0:9 - I2C Slave Own Address: This field specifies bits A9 through A0 of the slave address. In 7-bit addressing mode as selected by I2CSOAR.MODE bit, the top 3 bits are don't care"]
# [inline (always)]
pub fn soar_oar (& self) -> SOAR_OAR_R { SOAR_OAR_R :: new ((self . bits & 0x03ff) as u16) } # [doc = "Bit 14 - I2C Slave Own Address Enable"]
# [inline (always)]
pub fn soar_oaren (& self) -> SOAR_OAREN_R { SOAR_OAREN_R :: new (((self . bits >> 14) & 1) != 0) } # [doc = "Bit 15 - This bit selects the adressing mode to be used in slave mode. When 0, 7-bit addressing is used. When 1, 10-bit addressing is used."]
# [inline (always)]
pub fn soar_smode (& self) -> SOAR_SMODE_R { SOAR_SMODE_R :: new (((self . bits >> 15) & 1) != 0) } } impl W { # [doc = "Bits 0:9 - I2C Slave Own Address: This field specifies bits A9 through A0 of the slave address. In 7-bit addressing mode as selected by I2CSOAR.MODE bit, the top 3 bits are don't care"]
# [inline (always)]
# [must_use]
pub fn soar_oar (& mut self) -> SOAR_OAR_W < SOAR_SPEC , 0 > { SOAR_OAR_W :: new (self) } # [doc = "Bit 14 - I2C Slave Own Address Enable"]
# [inline (always)]
# [must_use]
pub fn soar_oaren (& mut self) -> SOAR_OAREN_W < SOAR_SPEC , 14 > { SOAR_OAREN_W :: new (self) } # [doc = "Bit 15 - This bit selects the adressing mode to be used in slave mode. When 0, 7-bit addressing is used. When 1, 10-bit addressing is used."]
# [inline (always)]
# [must_use]
pub fn soar_smode (& mut self) -> SOAR_SMODE_W < SOAR_SPEC , 15 > { SOAR_SMODE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "I2C Slave Own Address\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`soar::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`soar::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SOAR_SPEC ; impl crate :: RegisterSpec for SOAR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`soar::R`](R) reader structure"]
impl crate :: Readable for SOAR_SPEC { } # [doc = "`write(|w| ..)` method takes [`soar::W`](W) writer structure"]
impl crate :: Writable for SOAR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets SOAR to value 0x4000"]
impl crate :: Resettable for SOAR_SPEC { const RESET_VALUE : Self :: Ux = 0x4000 ; } } # [doc = "SOAR2 (rw) register accessor: I2C Slave Own Address 2\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`soar2::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`soar2::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@soar2`]
module"]
pub type SOAR2 = crate :: Reg < soar2 :: SOAR2_SPEC > ; # [doc = "I2C Slave Own Address 2"]
pub mod soar2 { # [doc = "Register `SOAR2` reader"]
pub type R = crate :: R < SOAR2_SPEC > ; # [doc = "Register `SOAR2` writer"]
pub type W = crate :: W < SOAR2_SPEC > ; # [doc = "Field `SOAR2_OAR2` reader - I2C Slave Own Address 2 This field specifies the alternate OAR2 address."]
pub type SOAR2_OAR2_R = crate :: FieldReader ; # [doc = "Field `SOAR2_OAR2` writer - I2C Slave Own Address 2 This field specifies the alternate OAR2 address."]
pub type SOAR2_OAR2_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 7 , O > ; # [doc = "Field `SOAR2_OAR2EN` reader - I2C Slave Own Address 2 Enable"]
pub type SOAR2_OAR2EN_R = crate :: BitReader < SOAR2_OAR2EN_A > ; # [doc = "I2C Slave Own Address 2 Enable\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SOAR2_OAR2EN_A { # [doc = "0: DISABLE"]
SOAR2_OAR2EN_DISABLE = 0 , # [doc = "1: ENABLE"]
SOAR2_OAR2EN_ENABLE = 1 , } impl From < SOAR2_OAR2EN_A > for bool { # [inline (always)]
fn from (variant : SOAR2_OAR2EN_A) -> Self { variant as u8 != 0 } } impl SOAR2_OAR2EN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SOAR2_OAR2EN_A { match self . bits { false => SOAR2_OAR2EN_A :: SOAR2_OAR2EN_DISABLE , true => SOAR2_OAR2EN_A :: SOAR2_OAR2EN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_soar2_oar2en_disable (& self) -> bool { * self == SOAR2_OAR2EN_A :: SOAR2_OAR2EN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_soar2_oar2en_enable (& self) -> bool { * self == SOAR2_OAR2EN_A :: SOAR2_OAR2EN_ENABLE } } # [doc = "Field `SOAR2_OAR2EN` writer - I2C Slave Own Address 2 Enable"]
pub type SOAR2_OAR2EN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SOAR2_OAR2EN_A > ; impl < 'a , REG , const O : u8 > SOAR2_OAR2EN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn soar2_oar2en_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SOAR2_OAR2EN_A :: SOAR2_OAR2EN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn soar2_oar2en_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SOAR2_OAR2EN_A :: SOAR2_OAR2EN_ENABLE) } } # [doc = "Field `SOAR2_OAR2_MASK` reader - I2C Slave Own Address 2 Mask: This field specifies bits A6 through A0 of the slave address. The bits with value 1 in SOAR2.OAR2_MASK field will make the corresponding incoming address bits to match by default regardless of the value inside SOAR2.OAR2 i.e. corresponding SOAR2.OAR2 bit is a dont care."]
pub type SOAR2_OAR2_MASK_R = crate :: FieldReader ; # [doc = "Field `SOAR2_OAR2_MASK` writer - I2C Slave Own Address 2 Mask: This field specifies bits A6 through A0 of the slave address. The bits with value 1 in SOAR2.OAR2_MASK field will make the corresponding incoming address bits to match by default regardless of the value inside SOAR2.OAR2 i.e. corresponding SOAR2.OAR2 bit is a dont care."]
pub type SOAR2_OAR2_MASK_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 7 , O > ; impl R { # [doc = "Bits 0:6 - I2C Slave Own Address 2 This field specifies the alternate OAR2 address."]
# [inline (always)]
pub fn soar2_oar2 (& self) -> SOAR2_OAR2_R { SOAR2_OAR2_R :: new ((self . bits & 0x7f) as u8) } # [doc = "Bit 7 - I2C Slave Own Address 2 Enable"]
# [inline (always)]
pub fn soar2_oar2en (& self) -> SOAR2_OAR2EN_R { SOAR2_OAR2EN_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bits 16:22 - I2C Slave Own Address 2 Mask: This field specifies bits A6 through A0 of the slave address. The bits with value 1 in SOAR2.OAR2_MASK field will make the corresponding incoming address bits to match by default regardless of the value inside SOAR2.OAR2 i.e. corresponding SOAR2.OAR2 bit is a dont care."]
# [inline (always)]
pub fn soar2_oar2_mask (& self) -> SOAR2_OAR2_MASK_R { SOAR2_OAR2_MASK_R :: new (((self . bits >> 16) & 0x7f) as u8) } } impl W { # [doc = "Bits 0:6 - I2C Slave Own Address 2 This field specifies the alternate OAR2 address."]
# [inline (always)]
# [must_use]
pub fn soar2_oar2 (& mut self) -> SOAR2_OAR2_W < SOAR2_SPEC , 0 > { SOAR2_OAR2_W :: new (self) } # [doc = "Bit 7 - I2C Slave Own Address 2 Enable"]
# [inline (always)]
# [must_use]
pub fn soar2_oar2en (& mut self) -> SOAR2_OAR2EN_W < SOAR2_SPEC , 7 > { SOAR2_OAR2EN_W :: new (self) } # [doc = "Bits 16:22 - I2C Slave Own Address 2 Mask: This field specifies bits A6 through A0 of the slave address. The bits with value 1 in SOAR2.OAR2_MASK field will make the corresponding incoming address bits to match by default regardless of the value inside SOAR2.OAR2 i.e. corresponding SOAR2.OAR2 bit is a dont care."]
# [inline (always)]
# [must_use]
pub fn soar2_oar2_mask (& mut self) -> SOAR2_OAR2_MASK_W < SOAR2_SPEC , 16 > { SOAR2_OAR2_MASK_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "I2C Slave Own Address 2\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`soar2::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`soar2::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SOAR2_SPEC ; impl crate :: RegisterSpec for SOAR2_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`soar2::R`](R) reader structure"]
impl crate :: Readable for SOAR2_SPEC { } # [doc = "`write(|w| ..)` method takes [`soar2::W`](W) writer structure"]
impl crate :: Writable for SOAR2_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets SOAR2 to value 0"]
impl crate :: Resettable for SOAR2_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "SCTR (rw) register accessor: I2C Slave Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`sctr::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sctr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sctr`]
module"]
pub type SCTR = crate :: Reg < sctr :: SCTR_SPEC > ; # [doc = "I2C Slave Control Register"]
pub mod sctr { # [doc = "Register `SCTR` reader"]
pub type R = crate :: R < SCTR_SPEC > ; # [doc = "Register `SCTR` writer"]
pub type W = crate :: W < SCTR_SPEC > ; # [doc = "Field `SCTR_ACTIVE` reader - Device Active. Setting this bit enables the slave functionality."]
pub type SCTR_ACTIVE_R = crate :: BitReader < SCTR_ACTIVE_A > ; # [doc = "Device Active. Setting this bit enables the slave functionality.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SCTR_ACTIVE_A { # [doc = "0: DISABLE"]
SCTR_ACTIVE_DISABLE = 0 , # [doc = "1: ENABLE"]
SCTR_ACTIVE_ENABLE = 1 , } impl From < SCTR_ACTIVE_A > for bool { # [inline (always)]
fn from (variant : SCTR_ACTIVE_A) -> Self { variant as u8 != 0 } } impl SCTR_ACTIVE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SCTR_ACTIVE_A { match self . bits { false => SCTR_ACTIVE_A :: SCTR_ACTIVE_DISABLE , true => SCTR_ACTIVE_A :: SCTR_ACTIVE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sctr_active_disable (& self) -> bool { * self == SCTR_ACTIVE_A :: SCTR_ACTIVE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sctr_active_enable (& self) -> bool { * self == SCTR_ACTIVE_A :: SCTR_ACTIVE_ENABLE } } # [doc = "Field `SCTR_ACTIVE` writer - Device Active. Setting this bit enables the slave functionality."]
pub type SCTR_ACTIVE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SCTR_ACTIVE_A > ; impl < 'a , REG , const O : u8 > SCTR_ACTIVE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sctr_active_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_ACTIVE_A :: SCTR_ACTIVE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sctr_active_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_ACTIVE_A :: SCTR_ACTIVE_ENABLE) } } # [doc = "Field `SCTR_GENCALL` reader - General call response enable. This bit is only available in UCBxI2COA0. Modify only when UCSWRST = 1. 0b = Do not respond to a general call 1b = Respond to a general call"]
pub type SCTR_GENCALL_R = crate :: BitReader < SCTR_GENCALL_A > ; # [doc = "General call response enable. This bit is only available in UCBxI2COA0. Modify only when UCSWRST = 1. 0b = Do not respond to a general call 1b = Respond to a general call\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SCTR_GENCALL_A { # [doc = "0: DISABLE"]
SCTR_GENCALL_DISABLE = 0 , # [doc = "1: ENABLE"]
SCTR_GENCALL_ENABLE = 1 , } impl From < SCTR_GENCALL_A > for bool { # [inline (always)]
fn from (variant : SCTR_GENCALL_A) -> Self { variant as u8 != 0 } } impl SCTR_GENCALL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SCTR_GENCALL_A { match self . bits { false => SCTR_GENCALL_A :: SCTR_GENCALL_DISABLE , true => SCTR_GENCALL_A :: SCTR_GENCALL_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sctr_gencall_disable (& self) -> bool { * self == SCTR_GENCALL_A :: SCTR_GENCALL_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sctr_gencall_enable (& self) -> bool { * self == SCTR_GENCALL_A :: SCTR_GENCALL_ENABLE } } # [doc = "Field `SCTR_GENCALL` writer - General call response enable. This bit is only available in UCBxI2COA0. Modify only when UCSWRST = 1. 0b = Do not respond to a general call 1b = Respond to a general call"]
pub type SCTR_GENCALL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SCTR_GENCALL_A > ; impl < 'a , REG , const O : u8 > SCTR_GENCALL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sctr_gencall_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_GENCALL_A :: SCTR_GENCALL_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sctr_gencall_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_GENCALL_A :: SCTR_GENCALL_ENABLE) } } # [doc = "Field `SCTR_SCLKSTRETCH` reader - Slave Clock Stretch Enable"]
pub type SCTR_SCLKSTRETCH_R = crate :: BitReader < SCTR_SCLKSTRETCH_A > ; # [doc = "Slave Clock Stretch Enable\n\nValue on reset: 1"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SCTR_SCLKSTRETCH_A { # [doc = "0: DISABLE"]
SCTR_SCLKSTRETCH_DISABLE = 0 , # [doc = "1: ENABLE"]
SCTR_SCLKSTRETCH_ENABLE = 1 , } impl From < SCTR_SCLKSTRETCH_A > for bool { # [inline (always)]
fn from (variant : SCTR_SCLKSTRETCH_A) -> Self { variant as u8 != 0 } } impl SCTR_SCLKSTRETCH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SCTR_SCLKSTRETCH_A { match self . bits { false => SCTR_SCLKSTRETCH_A :: SCTR_SCLKSTRETCH_DISABLE , true => SCTR_SCLKSTRETCH_A :: SCTR_SCLKSTRETCH_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sctr_sclkstretch_disable (& self) -> bool { * self == SCTR_SCLKSTRETCH_A :: SCTR_SCLKSTRETCH_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sctr_sclkstretch_enable (& self) -> bool { * self == SCTR_SCLKSTRETCH_A :: SCTR_SCLKSTRETCH_ENABLE } } # [doc = "Field `SCTR_SCLKSTRETCH` writer - Slave Clock Stretch Enable"]
pub type SCTR_SCLKSTRETCH_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SCTR_SCLKSTRETCH_A > ; impl < 'a , REG , const O : u8 > SCTR_SCLKSTRETCH_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sctr_sclkstretch_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_SCLKSTRETCH_A :: SCTR_SCLKSTRETCH_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sctr_sclkstretch_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_SCLKSTRETCH_A :: SCTR_SCLKSTRETCH_ENABLE) } } # [doc = "Field `SCTR_TXEMPTY_ON_TREQ` reader - Tx Empty Interrupt on TREQ"]
pub type SCTR_TXEMPTY_ON_TREQ_R = crate :: BitReader < SCTR_TXEMPTY_ON_TREQ_A > ; # [doc = "Tx Empty Interrupt on TREQ\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SCTR_TXEMPTY_ON_TREQ_A { # [doc = "0: DISABLE"]
SCTR_TXEMPTY_ON_TREQ_DISABLE = 0 , # [doc = "1: ENABLE"]
SCTR_TXEMPTY_ON_TREQ_ENABLE = 1 , } impl From < SCTR_TXEMPTY_ON_TREQ_A > for bool { # [inline (always)]
fn from (variant : SCTR_TXEMPTY_ON_TREQ_A) -> Self { variant as u8 != 0 } } impl SCTR_TXEMPTY_ON_TREQ_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SCTR_TXEMPTY_ON_TREQ_A { match self . bits { false => SCTR_TXEMPTY_ON_TREQ_A :: SCTR_TXEMPTY_ON_TREQ_DISABLE , true => SCTR_TXEMPTY_ON_TREQ_A :: SCTR_TXEMPTY_ON_TREQ_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sctr_txempty_on_treq_disable (& self) -> bool { * self == SCTR_TXEMPTY_ON_TREQ_A :: SCTR_TXEMPTY_ON_TREQ_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sctr_txempty_on_treq_enable (& self) -> bool { * self == SCTR_TXEMPTY_ON_TREQ_A :: SCTR_TXEMPTY_ON_TREQ_ENABLE } } # [doc = "Field `SCTR_TXEMPTY_ON_TREQ` writer - Tx Empty Interrupt on TREQ"]
pub type SCTR_TXEMPTY_ON_TREQ_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SCTR_TXEMPTY_ON_TREQ_A > ; impl < 'a , REG , const O : u8 > SCTR_TXEMPTY_ON_TREQ_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sctr_txempty_on_treq_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_TXEMPTY_ON_TREQ_A :: SCTR_TXEMPTY_ON_TREQ_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sctr_txempty_on_treq_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_TXEMPTY_ON_TREQ_A :: SCTR_TXEMPTY_ON_TREQ_ENABLE) } } # [doc = "Field `SCTR_TXTRIG_TXMODE` reader - Tx Trigger when slave FSM is in Tx Mode"]
pub type SCTR_TXTRIG_TXMODE_R = crate :: BitReader < SCTR_TXTRIG_TXMODE_A > ; # [doc = "Tx Trigger when slave FSM is in Tx Mode\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SCTR_TXTRIG_TXMODE_A { # [doc = "0: DISABLE"]
SCTR_TXTRIG_TXMODE_DISABLE = 0 , # [doc = "1: ENABLE"]
SCTR_TXTRIG_TXMODE_ENABLE = 1 , } impl From < SCTR_TXTRIG_TXMODE_A > for bool { # [inline (always)]
fn from (variant : SCTR_TXTRIG_TXMODE_A) -> Self { variant as u8 != 0 } } impl SCTR_TXTRIG_TXMODE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SCTR_TXTRIG_TXMODE_A { match self . bits { false => SCTR_TXTRIG_TXMODE_A :: SCTR_TXTRIG_TXMODE_DISABLE , true => SCTR_TXTRIG_TXMODE_A :: SCTR_TXTRIG_TXMODE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sctr_txtrig_txmode_disable (& self) -> bool { * self == SCTR_TXTRIG_TXMODE_A :: SCTR_TXTRIG_TXMODE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sctr_txtrig_txmode_enable (& self) -> bool { * self == SCTR_TXTRIG_TXMODE_A :: SCTR_TXTRIG_TXMODE_ENABLE } } # [doc = "Field `SCTR_TXTRIG_TXMODE` writer - Tx Trigger when slave FSM is in Tx Mode"]
pub type SCTR_TXTRIG_TXMODE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SCTR_TXTRIG_TXMODE_A > ; impl < 'a , REG , const O : u8 > SCTR_TXTRIG_TXMODE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sctr_txtrig_txmode_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_TXTRIG_TXMODE_A :: SCTR_TXTRIG_TXMODE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sctr_txtrig_txmode_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_TXTRIG_TXMODE_A :: SCTR_TXTRIG_TXMODE_ENABLE) } } # [doc = "Field `SCTR_TXWAIT_STALE_TXFIFO` reader - Tx transfer waits when stale data in Tx FIFO. This prevents stale bytes left in the TX FIFO from automatically being sent on the next I2C packet. Note: this should be used with TXEMPTY_ON_TREQ set to prevent the Slave State Machine from waiting for TX FIFO data without an interrupt notification when the FIFO data is stale."]
pub type SCTR_TXWAIT_STALE_TXFIFO_R = crate :: BitReader < SCTR_TXWAIT_STALE_TXFIFO_A > ; # [doc = "Tx transfer waits when stale data in Tx FIFO. This prevents stale bytes left in the TX FIFO from automatically being sent on the next I2C packet. Note: this should be used with TXEMPTY_ON_TREQ set to prevent the Slave State Machine from waiting for TX FIFO data without an interrupt notification when the FIFO data is stale.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SCTR_TXWAIT_STALE_TXFIFO_A { # [doc = "0: DISABLE"]
SCTR_TXWAIT_STALE_TXFIFO_DISABLE = 0 , # [doc = "1: ENABLE"]
SCTR_TXWAIT_STALE_TXFIFO_ENABLE = 1 , } impl From < SCTR_TXWAIT_STALE_TXFIFO_A > for bool { # [inline (always)]
fn from (variant : SCTR_TXWAIT_STALE_TXFIFO_A) -> Self { variant as u8 != 0 } } impl SCTR_TXWAIT_STALE_TXFIFO_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SCTR_TXWAIT_STALE_TXFIFO_A { match self . bits { false => SCTR_TXWAIT_STALE_TXFIFO_A :: SCTR_TXWAIT_STALE_TXFIFO_DISABLE , true => SCTR_TXWAIT_STALE_TXFIFO_A :: SCTR_TXWAIT_STALE_TXFIFO_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sctr_txwait_stale_txfifo_disable (& self) -> bool { * self == SCTR_TXWAIT_STALE_TXFIFO_A :: SCTR_TXWAIT_STALE_TXFIFO_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sctr_txwait_stale_txfifo_enable (& self) -> bool { * self == SCTR_TXWAIT_STALE_TXFIFO_A :: SCTR_TXWAIT_STALE_TXFIFO_ENABLE } } # [doc = "Field `SCTR_TXWAIT_STALE_TXFIFO` writer - Tx transfer waits when stale data in Tx FIFO. This prevents stale bytes left in the TX FIFO from automatically being sent on the next I2C packet. Note: this should be used with TXEMPTY_ON_TREQ set to prevent the Slave State Machine from waiting for TX FIFO data without an interrupt notification when the FIFO data is stale."]
pub type SCTR_TXWAIT_STALE_TXFIFO_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SCTR_TXWAIT_STALE_TXFIFO_A > ; impl < 'a , REG , const O : u8 > SCTR_TXWAIT_STALE_TXFIFO_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sctr_txwait_stale_txfifo_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_TXWAIT_STALE_TXFIFO_A :: SCTR_TXWAIT_STALE_TXFIFO_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sctr_txwait_stale_txfifo_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_TXWAIT_STALE_TXFIFO_A :: SCTR_TXWAIT_STALE_TXFIFO_ENABLE) } } # [doc = "Field `SCTR_RXFULL_ON_RREQ` reader - Rx full interrupt generated on RREQ condition as indicated in SSR"]
pub type SCTR_RXFULL_ON_RREQ_R = crate :: BitReader < SCTR_RXFULL_ON_RREQ_A > ; # [doc = "Rx full interrupt generated on RREQ condition as indicated in SSR\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SCTR_RXFULL_ON_RREQ_A { # [doc = "0: DISABLE"]
SCTR_RXFULL_ON_RREQ_DISABLE = 0 , # [doc = "1: ENABLE"]
SCTR_RXFULL_ON_RREQ_ENABLE = 1 , } impl From < SCTR_RXFULL_ON_RREQ_A > for bool { # [inline (always)]
fn from (variant : SCTR_RXFULL_ON_RREQ_A) -> Self { variant as u8 != 0 } } impl SCTR_RXFULL_ON_RREQ_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SCTR_RXFULL_ON_RREQ_A { match self . bits { false => SCTR_RXFULL_ON_RREQ_A :: SCTR_RXFULL_ON_RREQ_DISABLE , true => SCTR_RXFULL_ON_RREQ_A :: SCTR_RXFULL_ON_RREQ_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sctr_rxfull_on_rreq_disable (& self) -> bool { * self == SCTR_RXFULL_ON_RREQ_A :: SCTR_RXFULL_ON_RREQ_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sctr_rxfull_on_rreq_enable (& self) -> bool { * self == SCTR_RXFULL_ON_RREQ_A :: SCTR_RXFULL_ON_RREQ_ENABLE } } # [doc = "Field `SCTR_RXFULL_ON_RREQ` writer - Rx full interrupt generated on RREQ condition as indicated in SSR"]
pub type SCTR_RXFULL_ON_RREQ_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SCTR_RXFULL_ON_RREQ_A > ; impl < 'a , REG , const O : u8 > SCTR_RXFULL_ON_RREQ_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sctr_rxfull_on_rreq_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_RXFULL_ON_RREQ_A :: SCTR_RXFULL_ON_RREQ_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sctr_rxfull_on_rreq_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_RXFULL_ON_RREQ_A :: SCTR_RXFULL_ON_RREQ_ENABLE) } } # [doc = "Field `SCTR_EN_DEFHOSTADR` reader - Enable Default Host Address"]
pub type SCTR_EN_DEFHOSTADR_R = crate :: BitReader < SCTR_EN_DEFHOSTADR_A > ; # [doc = "Enable Default Host Address\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SCTR_EN_DEFHOSTADR_A { # [doc = "0: DISABLE"]
SCTR_EN_DEFHOSTADR_DISABLE = 0 , # [doc = "1: ENABLE"]
SCTR_EN_DEFHOSTADR_ENABLE = 1 , } impl From < SCTR_EN_DEFHOSTADR_A > for bool { # [inline (always)]
fn from (variant : SCTR_EN_DEFHOSTADR_A) -> Self { variant as u8 != 0 } } impl SCTR_EN_DEFHOSTADR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SCTR_EN_DEFHOSTADR_A { match self . bits { false => SCTR_EN_DEFHOSTADR_A :: SCTR_EN_DEFHOSTADR_DISABLE , true => SCTR_EN_DEFHOSTADR_A :: SCTR_EN_DEFHOSTADR_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sctr_en_defhostadr_disable (& self) -> bool { * self == SCTR_EN_DEFHOSTADR_A :: SCTR_EN_DEFHOSTADR_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sctr_en_defhostadr_enable (& self) -> bool { * self == SCTR_EN_DEFHOSTADR_A :: SCTR_EN_DEFHOSTADR_ENABLE } } # [doc = "Field `SCTR_EN_DEFHOSTADR` writer - Enable Default Host Address"]
pub type SCTR_EN_DEFHOSTADR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SCTR_EN_DEFHOSTADR_A > ; impl < 'a , REG , const O : u8 > SCTR_EN_DEFHOSTADR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sctr_en_defhostadr_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_EN_DEFHOSTADR_A :: SCTR_EN_DEFHOSTADR_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sctr_en_defhostadr_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_EN_DEFHOSTADR_A :: SCTR_EN_DEFHOSTADR_ENABLE) } } # [doc = "Field `SCTR_EN_ALRESPADR` reader - Enable Alert Response Address"]
pub type SCTR_EN_ALRESPADR_R = crate :: BitReader < SCTR_EN_ALRESPADR_A > ; # [doc = "Enable Alert Response Address\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SCTR_EN_ALRESPADR_A { # [doc = "0: DISABLE"]
SCTR_EN_ALRESPADR_DISABLE = 0 , # [doc = "1: ENABLE"]
SCTR_EN_ALRESPADR_ENABLE = 1 , } impl From < SCTR_EN_ALRESPADR_A > for bool { # [inline (always)]
fn from (variant : SCTR_EN_ALRESPADR_A) -> Self { variant as u8 != 0 } } impl SCTR_EN_ALRESPADR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SCTR_EN_ALRESPADR_A { match self . bits { false => SCTR_EN_ALRESPADR_A :: SCTR_EN_ALRESPADR_DISABLE , true => SCTR_EN_ALRESPADR_A :: SCTR_EN_ALRESPADR_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sctr_en_alrespadr_disable (& self) -> bool { * self == SCTR_EN_ALRESPADR_A :: SCTR_EN_ALRESPADR_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sctr_en_alrespadr_enable (& self) -> bool { * self == SCTR_EN_ALRESPADR_A :: SCTR_EN_ALRESPADR_ENABLE } } # [doc = "Field `SCTR_EN_ALRESPADR` writer - Enable Alert Response Address"]
pub type SCTR_EN_ALRESPADR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SCTR_EN_ALRESPADR_A > ; impl < 'a , REG , const O : u8 > SCTR_EN_ALRESPADR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sctr_en_alrespadr_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_EN_ALRESPADR_A :: SCTR_EN_ALRESPADR_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sctr_en_alrespadr_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_EN_ALRESPADR_A :: SCTR_EN_ALRESPADR_ENABLE) } } # [doc = "Field `SCTR_EN_DEFDEVADR` reader - Enable Deault device address"]
pub type SCTR_EN_DEFDEVADR_R = crate :: BitReader < SCTR_EN_DEFDEVADR_A > ; # [doc = "Enable Deault device address\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SCTR_EN_DEFDEVADR_A { # [doc = "0: DISABLE"]
SCTR_EN_DEFDEVADR_DISABLE = 0 , # [doc = "1: ENABLE"]
SCTR_EN_DEFDEVADR_ENABLE = 1 , } impl From < SCTR_EN_DEFDEVADR_A > for bool { # [inline (always)]
fn from (variant : SCTR_EN_DEFDEVADR_A) -> Self { variant as u8 != 0 } } impl SCTR_EN_DEFDEVADR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SCTR_EN_DEFDEVADR_A { match self . bits { false => SCTR_EN_DEFDEVADR_A :: SCTR_EN_DEFDEVADR_DISABLE , true => SCTR_EN_DEFDEVADR_A :: SCTR_EN_DEFDEVADR_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sctr_en_defdevadr_disable (& self) -> bool { * self == SCTR_EN_DEFDEVADR_A :: SCTR_EN_DEFDEVADR_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sctr_en_defdevadr_enable (& self) -> bool { * self == SCTR_EN_DEFDEVADR_A :: SCTR_EN_DEFDEVADR_ENABLE } } # [doc = "Field `SCTR_EN_DEFDEVADR` writer - Enable Deault device address"]
pub type SCTR_EN_DEFDEVADR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SCTR_EN_DEFDEVADR_A > ; impl < 'a , REG , const O : u8 > SCTR_EN_DEFDEVADR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sctr_en_defdevadr_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_EN_DEFDEVADR_A :: SCTR_EN_DEFDEVADR_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sctr_en_defdevadr_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_EN_DEFDEVADR_A :: SCTR_EN_DEFDEVADR_ENABLE) } } # [doc = "Field `SCTR_SWUEN` reader - Slave Wakeup Enable"]
pub type SCTR_SWUEN_R = crate :: BitReader < SCTR_SWUEN_A > ; # [doc = "Slave Wakeup Enable\n\nValue on reset: 1"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SCTR_SWUEN_A { # [doc = "0: DISABLE"]
SCTR_SWUEN_DISABLE = 0 , # [doc = "1: ENABLE"]
SCTR_SWUEN_ENABLE = 1 , } impl From < SCTR_SWUEN_A > for bool { # [inline (always)]
fn from (variant : SCTR_SWUEN_A) -> Self { variant as u8 != 0 } } impl SCTR_SWUEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SCTR_SWUEN_A { match self . bits { false => SCTR_SWUEN_A :: SCTR_SWUEN_DISABLE , true => SCTR_SWUEN_A :: SCTR_SWUEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sctr_swuen_disable (& self) -> bool { * self == SCTR_SWUEN_A :: SCTR_SWUEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sctr_swuen_enable (& self) -> bool { * self == SCTR_SWUEN_A :: SCTR_SWUEN_ENABLE } } # [doc = "Field `SCTR_SWUEN` writer - Slave Wakeup Enable"]
pub type SCTR_SWUEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SCTR_SWUEN_A > ; impl < 'a , REG , const O : u8 > SCTR_SWUEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sctr_swuen_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_SWUEN_A :: SCTR_SWUEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sctr_swuen_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_SWUEN_A :: SCTR_SWUEN_ENABLE) } } impl R { # [doc = "Bit 0 - Device Active. Setting this bit enables the slave functionality."]
# [inline (always)]
pub fn sctr_active (& self) -> SCTR_ACTIVE_R { SCTR_ACTIVE_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - General call response enable. This bit is only available in UCBxI2COA0. Modify only when UCSWRST = 1. 0b = Do not respond to a general call 1b = Respond to a general call"]
# [inline (always)]
pub fn sctr_gencall (& self) -> SCTR_GENCALL_R { SCTR_GENCALL_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Slave Clock Stretch Enable"]
# [inline (always)]
pub fn sctr_sclkstretch (& self) -> SCTR_SCLKSTRETCH_R { SCTR_SCLKSTRETCH_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Tx Empty Interrupt on TREQ"]
# [inline (always)]
pub fn sctr_txempty_on_treq (& self) -> SCTR_TXEMPTY_ON_TREQ_R { SCTR_TXEMPTY_ON_TREQ_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - Tx Trigger when slave FSM is in Tx Mode"]
# [inline (always)]
pub fn sctr_txtrig_txmode (& self) -> SCTR_TXTRIG_TXMODE_R { SCTR_TXTRIG_TXMODE_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Tx transfer waits when stale data in Tx FIFO. This prevents stale bytes left in the TX FIFO from automatically being sent on the next I2C packet. Note: this should be used with TXEMPTY_ON_TREQ set to prevent the Slave State Machine from waiting for TX FIFO data without an interrupt notification when the FIFO data is stale."]
# [inline (always)]
pub fn sctr_txwait_stale_txfifo (& self) -> SCTR_TXWAIT_STALE_TXFIFO_R { SCTR_TXWAIT_STALE_TXFIFO_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - Rx full interrupt generated on RREQ condition as indicated in SSR"]
# [inline (always)]
pub fn sctr_rxfull_on_rreq (& self) -> SCTR_RXFULL_ON_RREQ_R { SCTR_RXFULL_ON_RREQ_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 7 - Enable Default Host Address"]
# [inline (always)]
pub fn sctr_en_defhostadr (& self) -> SCTR_EN_DEFHOSTADR_R { SCTR_EN_DEFHOSTADR_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - Enable Alert Response Address"]
# [inline (always)]
pub fn sctr_en_alrespadr (& self) -> SCTR_EN_ALRESPADR_R { SCTR_EN_ALRESPADR_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - Enable Deault device address"]
# [inline (always)]
pub fn sctr_en_defdevadr (& self) -> SCTR_EN_DEFDEVADR_R { SCTR_EN_DEFDEVADR_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - Slave Wakeup Enable"]
# [inline (always)]
pub fn sctr_swuen (& self) -> SCTR_SWUEN_R { SCTR_SWUEN_R :: new (((self . bits >> 10) & 1) != 0) } } impl W { # [doc = "Bit 0 - Device Active. Setting this bit enables the slave functionality."]
# [inline (always)]
# [must_use]
pub fn sctr_active (& mut self) -> SCTR_ACTIVE_W < SCTR_SPEC , 0 > { SCTR_ACTIVE_W :: new (self) } # [doc = "Bit 1 - General call response enable. This bit is only available in UCBxI2COA0. Modify only when UCSWRST = 1. 0b = Do not respond to a general call 1b = Respond to a general call"]
# [inline (always)]
# [must_use]
pub fn sctr_gencall (& mut self) -> SCTR_GENCALL_W < SCTR_SPEC , 1 > { SCTR_GENCALL_W :: new (self) } # [doc = "Bit 2 - Slave Clock Stretch Enable"]
# [inline (always)]
# [must_use]
pub fn sctr_sclkstretch (& mut self) -> SCTR_SCLKSTRETCH_W < SCTR_SPEC , 2 > { SCTR_SCLKSTRETCH_W :: new (self) } # [doc = "Bit 3 - Tx Empty Interrupt on TREQ"]
# [inline (always)]
# [must_use]
pub fn sctr_txempty_on_treq (& mut self) -> SCTR_TXEMPTY_ON_TREQ_W < SCTR_SPEC , 3 > { SCTR_TXEMPTY_ON_TREQ_W :: new (self) } # [doc = "Bit 4 - Tx Trigger when slave FSM is in Tx Mode"]
# [inline (always)]
# [must_use]
pub fn sctr_txtrig_txmode (& mut self) -> SCTR_TXTRIG_TXMODE_W < SCTR_SPEC , 4 > { SCTR_TXTRIG_TXMODE_W :: new (self) } # [doc = "Bit 5 - Tx transfer waits when stale data in Tx FIFO. This prevents stale bytes left in the TX FIFO from automatically being sent on the next I2C packet. Note: this should be used with TXEMPTY_ON_TREQ set to prevent the Slave State Machine from waiting for TX FIFO data without an interrupt notification when the FIFO data is stale."]
# [inline (always)]
# [must_use]
pub fn sctr_txwait_stale_txfifo (& mut self) -> SCTR_TXWAIT_STALE_TXFIFO_W < SCTR_SPEC , 5 > { SCTR_TXWAIT_STALE_TXFIFO_W :: new (self) } # [doc = "Bit 6 - Rx full interrupt generated on RREQ condition as indicated in SSR"]
# [inline (always)]
# [must_use]
pub fn sctr_rxfull_on_rreq (& mut self) -> SCTR_RXFULL_ON_RREQ_W < SCTR_SPEC , 6 > { SCTR_RXFULL_ON_RREQ_W :: new (self) } # [doc = "Bit 7 - Enable Default Host Address"]
# [inline (always)]
# [must_use]
pub fn sctr_en_defhostadr (& mut self) -> SCTR_EN_DEFHOSTADR_W < SCTR_SPEC , 7 > { SCTR_EN_DEFHOSTADR_W :: new (self) } # [doc = "Bit 8 - Enable Alert Response Address"]
# [inline (always)]
# [must_use]
pub fn sctr_en_alrespadr (& mut self) -> SCTR_EN_ALRESPADR_W < SCTR_SPEC , 8 > { SCTR_EN_ALRESPADR_W :: new (self) } # [doc = "Bit 9 - Enable Deault device address"]
# [inline (always)]
# [must_use]
pub fn sctr_en_defdevadr (& mut self) -> SCTR_EN_DEFDEVADR_W < SCTR_SPEC , 9 > { SCTR_EN_DEFDEVADR_W :: new (self) } # [doc = "Bit 10 - Slave Wakeup Enable"]
# [inline (always)]
# [must_use]
pub fn sctr_swuen (& mut self) -> SCTR_SWUEN_W < SCTR_SPEC , 10 > { SCTR_SWUEN_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "I2C Slave Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`sctr::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sctr::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SCTR_SPEC ; impl crate :: RegisterSpec for SCTR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`sctr::R`](R) reader structure"]
impl crate :: Readable for SCTR_SPEC { } # [doc = "`write(|w| ..)` method takes [`sctr::W`](W) writer structure"]
impl crate :: Writable for SCTR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets SCTR to value 0x0404"]
impl crate :: Resettable for SCTR_SPEC { const RESET_VALUE : Self :: Ux = 0x0404 ; } } # [doc = "SSR (r) register accessor: I2C Slave Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ssr::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ssr`]
module"]
pub type SSR = crate :: Reg < ssr :: SSR_SPEC > ; # [doc = "I2C Slave Status Register"]
pub mod ssr { # [doc = "Register `SSR` reader"]
pub type R = crate :: R < SSR_SPEC > ; # [doc = "Field `SSR_RREQ` reader - Receive Request"]
pub type SSR_RREQ_R = crate :: BitReader < SSR_RREQ_A > ; # [doc = "Receive Request\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SSR_RREQ_A { # [doc = "0: CLEARED"]
SSR_RREQ_CLEARED = 0 , # [doc = "1: SET"]
SSR_RREQ_SET = 1 , } impl From < SSR_RREQ_A > for bool { # [inline (always)]
fn from (variant : SSR_RREQ_A) -> Self { variant as u8 != 0 } } impl SSR_RREQ_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SSR_RREQ_A { match self . bits { false => SSR_RREQ_A :: SSR_RREQ_CLEARED , true => SSR_RREQ_A :: SSR_RREQ_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_ssr_rreq_cleared (& self) -> bool { * self == SSR_RREQ_A :: SSR_RREQ_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_ssr_rreq_set (& self) -> bool { * self == SSR_RREQ_A :: SSR_RREQ_SET } } # [doc = "Field `SSR_TREQ` reader - Transmit Request"]
pub type SSR_TREQ_R = crate :: BitReader < SSR_TREQ_A > ; # [doc = "Transmit Request\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SSR_TREQ_A { # [doc = "0: CLEARED"]
SSR_TREQ_CLEARED = 0 , # [doc = "1: SET"]
SSR_TREQ_SET = 1 , } impl From < SSR_TREQ_A > for bool { # [inline (always)]
fn from (variant : SSR_TREQ_A) -> Self { variant as u8 != 0 } } impl SSR_TREQ_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SSR_TREQ_A { match self . bits { false => SSR_TREQ_A :: SSR_TREQ_CLEARED , true => SSR_TREQ_A :: SSR_TREQ_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_ssr_treq_cleared (& self) -> bool { * self == SSR_TREQ_A :: SSR_TREQ_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_ssr_treq_set (& self) -> bool { * self == SSR_TREQ_A :: SSR_TREQ_SET } } # [doc = "Field `SSR_RXMODE` reader - Slave FSM is in Rx MODE"]
pub type SSR_RXMODE_R = crate :: BitReader < SSR_RXMODE_A > ; # [doc = "Slave FSM is in Rx MODE\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SSR_RXMODE_A { # [doc = "0: CLEARED"]
SSR_RXMODE_CLEARED = 0 , # [doc = "1: SET"]
SSR_RXMODE_SET = 1 , } impl From < SSR_RXMODE_A > for bool { # [inline (always)]
fn from (variant : SSR_RXMODE_A) -> Self { variant as u8 != 0 } } impl SSR_RXMODE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SSR_RXMODE_A { match self . bits { false => SSR_RXMODE_A :: SSR_RXMODE_CLEARED , true => SSR_RXMODE_A :: SSR_RXMODE_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_ssr_rxmode_cleared (& self) -> bool { * self == SSR_RXMODE_A :: SSR_RXMODE_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_ssr_rxmode_set (& self) -> bool { * self == SSR_RXMODE_A :: SSR_RXMODE_SET } } # [doc = "Field `SSR_OAR2SEL` reader - OAR2 Address Matched This bit gets reevaluated after every address comparison."]
pub type SSR_OAR2SEL_R = crate :: BitReader < SSR_OAR2SEL_A > ; # [doc = "OAR2 Address Matched This bit gets reevaluated after every address comparison.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SSR_OAR2SEL_A { # [doc = "0: CLEARED"]
SSR_OAR2SEL_CLEARED = 0 , # [doc = "1: SET"]
SSR_OAR2SEL_SET = 1 , } impl From < SSR_OAR2SEL_A > for bool { # [inline (always)]
fn from (variant : SSR_OAR2SEL_A) -> Self { variant as u8 != 0 } } impl SSR_OAR2SEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SSR_OAR2SEL_A { match self . bits { false => SSR_OAR2SEL_A :: SSR_OAR2SEL_CLEARED , true => SSR_OAR2SEL_A :: SSR_OAR2SEL_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_ssr_oar2sel_cleared (& self) -> bool { * self == SSR_OAR2SEL_A :: SSR_OAR2SEL_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_ssr_oar2sel_set (& self) -> bool { * self == SSR_OAR2SEL_A :: SSR_OAR2SEL_SET } } # [doc = "Field `SSR_QCMDST` reader - Quick Command Status Value Description: 0: The last transaction was a normal transaction or a transaction has not occurred. 1: The last transaction was a Quick Command transaction"]
pub type SSR_QCMDST_R = crate :: BitReader < SSR_QCMDST_A > ; # [doc = "Quick Command Status Value Description: 0: The last transaction was a normal transaction or a transaction has not occurred. 1: The last transaction was a Quick Command transaction\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SSR_QCMDST_A { # [doc = "0: CLEARED"]
SSR_QCMDST_CLEARED = 0 , # [doc = "1: SET"]
SSR_QCMDST_SET = 1 , } impl From < SSR_QCMDST_A > for bool { # [inline (always)]
fn from (variant : SSR_QCMDST_A) -> Self { variant as u8 != 0 } } impl SSR_QCMDST_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SSR_QCMDST_A { match self . bits { false => SSR_QCMDST_A :: SSR_QCMDST_CLEARED , true => SSR_QCMDST_A :: SSR_QCMDST_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_ssr_qcmdst_cleared (& self) -> bool { * self == SSR_QCMDST_A :: SSR_QCMDST_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_ssr_qcmdst_set (& self) -> bool { * self == SSR_QCMDST_A :: SSR_QCMDST_SET } } # [doc = "Field `SSR_QCMDRW` reader - Quick Command Read / Write This bit only has meaning when the QCMDST bit is set. Value Description: 0: Quick command was a write 1: Quick command was a read"]
pub type SSR_QCMDRW_R = crate :: BitReader < SSR_QCMDRW_A > ; # [doc = "Quick Command Read / Write This bit only has meaning when the QCMDST bit is set. Value Description: 0: Quick command was a write 1: Quick command was a read\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SSR_QCMDRW_A { # [doc = "0: CLEARED"]
SSR_QCMDRW_CLEARED = 0 , # [doc = "1: SET"]
SSR_QCMDRW_SET = 1 , } impl From < SSR_QCMDRW_A > for bool { # [inline (always)]
fn from (variant : SSR_QCMDRW_A) -> Self { variant as u8 != 0 } } impl SSR_QCMDRW_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SSR_QCMDRW_A { match self . bits { false => SSR_QCMDRW_A :: SSR_QCMDRW_CLEARED , true => SSR_QCMDRW_A :: SSR_QCMDRW_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_ssr_qcmdrw_cleared (& self) -> bool { * self == SSR_QCMDRW_A :: SSR_QCMDRW_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_ssr_qcmdrw_set (& self) -> bool { * self == SSR_QCMDRW_A :: SSR_QCMDRW_SET } } # [doc = "Field `SSR_BUSBSY` reader - I2C bus is busy"]
pub type SSR_BUSBSY_R = crate :: BitReader < SSR_BUSBSY_A > ; # [doc = "I2C bus is busy\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SSR_BUSBSY_A { # [doc = "0: CLEARED"]
SSR_BUSBSY_CLEARED = 0 , # [doc = "1: SET"]
SSR_BUSBSY_SET = 1 , } impl From < SSR_BUSBSY_A > for bool { # [inline (always)]
fn from (variant : SSR_BUSBSY_A) -> Self { variant as u8 != 0 } } impl SSR_BUSBSY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SSR_BUSBSY_A { match self . bits { false => SSR_BUSBSY_A :: SSR_BUSBSY_CLEARED , true => SSR_BUSBSY_A :: SSR_BUSBSY_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_ssr_busbsy_cleared (& self) -> bool { * self == SSR_BUSBSY_A :: SSR_BUSBSY_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_ssr_busbsy_set (& self) -> bool { * self == SSR_BUSBSY_A :: SSR_BUSBSY_SET } } # [doc = "Field `SSR_TXMODE` reader - Slave FSM is in TX MODE"]
pub type SSR_TXMODE_R = crate :: BitReader < SSR_TXMODE_A > ; # [doc = "Slave FSM is in TX MODE\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SSR_TXMODE_A { # [doc = "0: CLEARED"]
SSR_TXMODE_CLEARED = 0 , # [doc = "1: SET"]
SSR_TXMODE_SET = 1 , } impl From < SSR_TXMODE_A > for bool { # [inline (always)]
fn from (variant : SSR_TXMODE_A) -> Self { variant as u8 != 0 } } impl SSR_TXMODE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SSR_TXMODE_A { match self . bits { false => SSR_TXMODE_A :: SSR_TXMODE_CLEARED , true => SSR_TXMODE_A :: SSR_TXMODE_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_ssr_txmode_cleared (& self) -> bool { * self == SSR_TXMODE_A :: SSR_TXMODE_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_ssr_txmode_set (& self) -> bool { * self == SSR_TXMODE_A :: SSR_TXMODE_SET } } # [doc = "Field `SSR_STALE_TXFIFO` reader - Stale Tx FIFO"]
pub type SSR_STALE_TXFIFO_R = crate :: BitReader < SSR_STALE_TXFIFO_A > ; # [doc = "Stale Tx FIFO\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SSR_STALE_TXFIFO_A { # [doc = "0: CLEARED"]
SSR_STALE_TXFIFO_CLEARED = 0 , # [doc = "1: SET"]
SSR_STALE_TXFIFO_SET = 1 , } impl From < SSR_STALE_TXFIFO_A > for bool { # [inline (always)]
fn from (variant : SSR_STALE_TXFIFO_A) -> Self { variant as u8 != 0 } } impl SSR_STALE_TXFIFO_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SSR_STALE_TXFIFO_A { match self . bits { false => SSR_STALE_TXFIFO_A :: SSR_STALE_TXFIFO_CLEARED , true => SSR_STALE_TXFIFO_A :: SSR_STALE_TXFIFO_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_ssr_stale_txfifo_cleared (& self) -> bool { * self == SSR_STALE_TXFIFO_A :: SSR_STALE_TXFIFO_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_ssr_stale_txfifo_set (& self) -> bool { * self == SSR_STALE_TXFIFO_A :: SSR_STALE_TXFIFO_SET } } # [doc = "Field `SSR_ADDRMATCH` reader - Indicates the address for which slave address match happened"]
pub type SSR_ADDRMATCH_R = crate :: FieldReader < u16 > ; impl R { # [doc = "Bit 0 - Receive Request"]
# [inline (always)]
pub fn ssr_rreq (& self) -> SSR_RREQ_R { SSR_RREQ_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Transmit Request"]
# [inline (always)]
pub fn ssr_treq (& self) -> SSR_TREQ_R { SSR_TREQ_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Slave FSM is in Rx MODE"]
# [inline (always)]
pub fn ssr_rxmode (& self) -> SSR_RXMODE_R { SSR_RXMODE_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - OAR2 Address Matched This bit gets reevaluated after every address comparison."]
# [inline (always)]
pub fn ssr_oar2sel (& self) -> SSR_OAR2SEL_R { SSR_OAR2SEL_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - Quick Command Status Value Description: 0: The last transaction was a normal transaction or a transaction has not occurred. 1: The last transaction was a Quick Command transaction"]
# [inline (always)]
pub fn ssr_qcmdst (& self) -> SSR_QCMDST_R { SSR_QCMDST_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Quick Command Read / Write This bit only has meaning when the QCMDST bit is set. Value Description: 0: Quick command was a write 1: Quick command was a read"]
# [inline (always)]
pub fn ssr_qcmdrw (& self) -> SSR_QCMDRW_R { SSR_QCMDRW_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - I2C bus is busy"]
# [inline (always)]
pub fn ssr_busbsy (& self) -> SSR_BUSBSY_R { SSR_BUSBSY_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 7 - Slave FSM is in TX MODE"]
# [inline (always)]
pub fn ssr_txmode (& self) -> SSR_TXMODE_R { SSR_TXMODE_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - Stale Tx FIFO"]
# [inline (always)]
pub fn ssr_stale_txfifo (& self) -> SSR_STALE_TXFIFO_R { SSR_STALE_TXFIFO_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bits 9:18 - Indicates the address for which slave address match happened"]
# [inline (always)]
pub fn ssr_addrmatch (& self) -> SSR_ADDRMATCH_R { SSR_ADDRMATCH_R :: new (((self . bits >> 9) & 0x03ff) as u16) } } # [doc = "I2C Slave Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ssr::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SSR_SPEC ; impl crate :: RegisterSpec for SSR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ssr::R`](R) reader structure"]
impl crate :: Readable for SSR_SPEC { } # [doc = "`reset()` method sets SSR to value 0"]
impl crate :: Resettable for SSR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "SRXDATA (r) register accessor: I2C Slave RXData\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`srxdata::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@srxdata`]
module"]
pub type SRXDATA = crate :: Reg < srxdata :: SRXDATA_SPEC > ; # [doc = "I2C Slave RXData"]
pub mod srxdata { # [doc = "Register `SRXDATA` reader"]
pub type R = crate :: R < SRXDATA_SPEC > ; # [doc = "Field `SRXDATA_VALUE` reader - Received Data. This field contains the last received data."]
pub type SRXDATA_VALUE_R = crate :: FieldReader ; impl R { # [doc = "Bits 0:7 - Received Data. This field contains the last received data."]
# [inline (always)]
pub fn srxdata_value (& self) -> SRXDATA_VALUE_R { SRXDATA_VALUE_R :: new ((self . bits & 0xff) as u8) } } # [doc = "I2C Slave RXData\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`srxdata::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SRXDATA_SPEC ; impl crate :: RegisterSpec for SRXDATA_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`srxdata::R`](R) reader structure"]
impl crate :: Readable for SRXDATA_SPEC { } # [doc = "`reset()` method sets SRXDATA to value 0"]
impl crate :: Resettable for SRXDATA_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "STXDATA (rw) register accessor: I2C Slave TXData\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stxdata::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`stxdata::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@stxdata`]
module"]
pub type STXDATA = crate :: Reg < stxdata :: STXDATA_SPEC > ; # [doc = "I2C Slave TXData"]
pub mod stxdata { # [doc = "Register `STXDATA` reader"]
pub type R = crate :: R < STXDATA_SPEC > ; # [doc = "Register `STXDATA` writer"]
pub type W = crate :: W < STXDATA_SPEC > ; # [doc = "Field `STXDATA_VALUE` reader - Transmit Data This byte contains the data to be transferred during the next transaction."]
pub type STXDATA_VALUE_R = crate :: FieldReader ; # [doc = "Field `STXDATA_VALUE` writer - Transmit Data This byte contains the data to be transferred during the next transaction."]
pub type STXDATA_VALUE_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O > ; impl R { # [doc = "Bits 0:7 - Transmit Data This byte contains the data to be transferred during the next transaction."]
# [inline (always)]
pub fn stxdata_value (& self) -> STXDATA_VALUE_R { STXDATA_VALUE_R :: new ((self . bits & 0xff) as u8) } } impl W { # [doc = "Bits 0:7 - Transmit Data This byte contains the data to be transferred during the next transaction."]
# [inline (always)]
# [must_use]
pub fn stxdata_value (& mut self) -> STXDATA_VALUE_W < STXDATA_SPEC , 0 > { STXDATA_VALUE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "I2C Slave TXData\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stxdata::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`stxdata::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct STXDATA_SPEC ; impl crate :: RegisterSpec for STXDATA_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`stxdata::R`](R) reader structure"]
impl crate :: Readable for STXDATA_SPEC { } # [doc = "`write(|w| ..)` method takes [`stxdata::W`](W) writer structure"]
impl crate :: Writable for STXDATA_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets STXDATA to value 0"]
impl crate :: Resettable for STXDATA_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "SACKCTL (rw) register accessor: I2C Slave ACK Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`sackctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sackctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sackctl`]
module"]
pub type SACKCTL = crate :: Reg < sackctl :: SACKCTL_SPEC > ; # [doc = "I2C Slave ACK Control"]
pub mod sackctl { # [doc = "Register `SACKCTL` reader"]
pub type R = crate :: R < SACKCTL_SPEC > ; # [doc = "Register `SACKCTL` writer"]
pub type W = crate :: W < SACKCTL_SPEC > ; # [doc = "Field `SACKCTL_ACKOEN` reader - I2C Slave ACK Override Enable"]
pub type SACKCTL_ACKOEN_R = crate :: BitReader < SACKCTL_ACKOEN_A > ; # [doc = "I2C Slave ACK Override Enable\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SACKCTL_ACKOEN_A { # [doc = "0: DISABLE"]
SACKCTL_ACKOEN_DISABLE = 0 , # [doc = "1: ENABLE"]
SACKCTL_ACKOEN_ENABLE = 1 , } impl From < SACKCTL_ACKOEN_A > for bool { # [inline (always)]
fn from (variant : SACKCTL_ACKOEN_A) -> Self { variant as u8 != 0 } } impl SACKCTL_ACKOEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SACKCTL_ACKOEN_A { match self . bits { false => SACKCTL_ACKOEN_A :: SACKCTL_ACKOEN_DISABLE , true => SACKCTL_ACKOEN_A :: SACKCTL_ACKOEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sackctl_ackoen_disable (& self) -> bool { * self == SACKCTL_ACKOEN_A :: SACKCTL_ACKOEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sackctl_ackoen_enable (& self) -> bool { * self == SACKCTL_ACKOEN_A :: SACKCTL_ACKOEN_ENABLE } } # [doc = "Field `SACKCTL_ACKOEN` writer - I2C Slave ACK Override Enable"]
pub type SACKCTL_ACKOEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SACKCTL_ACKOEN_A > ; impl < 'a , REG , const O : u8 > SACKCTL_ACKOEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sackctl_ackoen_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SACKCTL_ACKOEN_A :: SACKCTL_ACKOEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sackctl_ackoen_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SACKCTL_ACKOEN_A :: SACKCTL_ACKOEN_ENABLE) } } # [doc = "Field `SACKCTL_ACKOVAL` reader - I2C Slave ACK Override Value Note: for General Call this bit will be ignored if set to NACK and slave continues to receive data."]
pub type SACKCTL_ACKOVAL_R = crate :: BitReader < SACKCTL_ACKOVAL_A > ; # [doc = "I2C Slave ACK Override Value Note: for General Call this bit will be ignored if set to NACK and slave continues to receive data.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SACKCTL_ACKOVAL_A { # [doc = "0: DISABLE"]
SACKCTL_ACKOVAL_DISABLE = 0 , # [doc = "1: ENABLE"]
SACKCTL_ACKOVAL_ENABLE = 1 , } impl From < SACKCTL_ACKOVAL_A > for bool { # [inline (always)]
fn from (variant : SACKCTL_ACKOVAL_A) -> Self { variant as u8 != 0 } } impl SACKCTL_ACKOVAL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SACKCTL_ACKOVAL_A { match self . bits { false => SACKCTL_ACKOVAL_A :: SACKCTL_ACKOVAL_DISABLE , true => SACKCTL_ACKOVAL_A :: SACKCTL_ACKOVAL_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sackctl_ackoval_disable (& self) -> bool { * self == SACKCTL_ACKOVAL_A :: SACKCTL_ACKOVAL_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sackctl_ackoval_enable (& self) -> bool { * self == SACKCTL_ACKOVAL_A :: SACKCTL_ACKOVAL_ENABLE } } # [doc = "Field `SACKCTL_ACKOVAL` writer - I2C Slave ACK Override Value Note: for General Call this bit will be ignored if set to NACK and slave continues to receive data."]
pub type SACKCTL_ACKOVAL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SACKCTL_ACKOVAL_A > ; impl < 'a , REG , const O : u8 > SACKCTL_ACKOVAL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sackctl_ackoval_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SACKCTL_ACKOVAL_A :: SACKCTL_ACKOVAL_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sackctl_ackoval_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SACKCTL_ACKOVAL_A :: SACKCTL_ACKOVAL_ENABLE) } } # [doc = "Field `SACKCTL_ACKOEN_ON_START` reader - When set this bit will automatically turn on the Slave ACKOEN field following a Start Condition."]
pub type SACKCTL_ACKOEN_ON_START_R = crate :: BitReader < SACKCTL_ACKOEN_ON_START_A > ; # [doc = "When set this bit will automatically turn on the Slave ACKOEN field following a Start Condition.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SACKCTL_ACKOEN_ON_START_A { # [doc = "0: DISABLE"]
SACKCTL_ACKOEN_ON_START_DISABLE = 0 , # [doc = "1: ENABLE"]
SACKCTL_ACKOEN_ON_START_ENABLE = 1 , } impl From < SACKCTL_ACKOEN_ON_START_A > for bool { # [inline (always)]
fn from (variant : SACKCTL_ACKOEN_ON_START_A) -> Self { variant as u8 != 0 } } impl SACKCTL_ACKOEN_ON_START_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SACKCTL_ACKOEN_ON_START_A { match self . bits { false => SACKCTL_ACKOEN_ON_START_A :: SACKCTL_ACKOEN_ON_START_DISABLE , true => SACKCTL_ACKOEN_ON_START_A :: SACKCTL_ACKOEN_ON_START_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sackctl_ackoen_on_start_disable (& self) -> bool { * self == SACKCTL_ACKOEN_ON_START_A :: SACKCTL_ACKOEN_ON_START_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sackctl_ackoen_on_start_enable (& self) -> bool { * self == SACKCTL_ACKOEN_ON_START_A :: SACKCTL_ACKOEN_ON_START_ENABLE } } # [doc = "Field `SACKCTL_ACKOEN_ON_START` writer - When set this bit will automatically turn on the Slave ACKOEN field following a Start Condition."]
pub type SACKCTL_ACKOEN_ON_START_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SACKCTL_ACKOEN_ON_START_A > ; impl < 'a , REG , const O : u8 > SACKCTL_ACKOEN_ON_START_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sackctl_ackoen_on_start_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SACKCTL_ACKOEN_ON_START_A :: SACKCTL_ACKOEN_ON_START_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sackctl_ackoen_on_start_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SACKCTL_ACKOEN_ON_START_A :: SACKCTL_ACKOEN_ON_START_ENABLE) } } # [doc = "Field `SACKCTL_ACKOEN_ON_PECNEXT` reader - When set this bit will automatically turn on the Slave ACKOEN field following the ACK/NACK of the byte received just prior to the PEC byte. Note that when ACKOEN is set the PEC byte will not automatically be ACKed/NACKed by the State Machine and FW must perform this function by writing SLAVE_SACKCTL."]
pub type SACKCTL_ACKOEN_ON_PECNEXT_R = crate :: BitReader < SACKCTL_ACKOEN_ON_PECNEXT_A > ; # [doc = "When set this bit will automatically turn on the Slave ACKOEN field following the ACK/NACK of the byte received just prior to the PEC byte. Note that when ACKOEN is set the PEC byte will not automatically be ACKed/NACKed by the State Machine and FW must perform this function by writing SLAVE_SACKCTL.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SACKCTL_ACKOEN_ON_PECNEXT_A { # [doc = "0: DISABLE"]
SACKCTL_ACKOEN_ON_PECNEXT_DISABLE = 0 , # [doc = "1: ENABLE"]
SACKCTL_ACKOEN_ON_PECNEXT_ENABLE = 1 , } impl From < SACKCTL_ACKOEN_ON_PECNEXT_A > for bool { # [inline (always)]
fn from (variant : SACKCTL_ACKOEN_ON_PECNEXT_A) -> Self { variant as u8 != 0 } } impl SACKCTL_ACKOEN_ON_PECNEXT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SACKCTL_ACKOEN_ON_PECNEXT_A { match self . bits { false => SACKCTL_ACKOEN_ON_PECNEXT_A :: SACKCTL_ACKOEN_ON_PECNEXT_DISABLE , true => SACKCTL_ACKOEN_ON_PECNEXT_A :: SACKCTL_ACKOEN_ON_PECNEXT_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sackctl_ackoen_on_pecnext_disable (& self) -> bool { * self == SACKCTL_ACKOEN_ON_PECNEXT_A :: SACKCTL_ACKOEN_ON_PECNEXT_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sackctl_ackoen_on_pecnext_enable (& self) -> bool { * self == SACKCTL_ACKOEN_ON_PECNEXT_A :: SACKCTL_ACKOEN_ON_PECNEXT_ENABLE } } # [doc = "Field `SACKCTL_ACKOEN_ON_PECNEXT` writer - When set this bit will automatically turn on the Slave ACKOEN field following the ACK/NACK of the byte received just prior to the PEC byte. Note that when ACKOEN is set the PEC byte will not automatically be ACKed/NACKed by the State Machine and FW must perform this function by writing SLAVE_SACKCTL."]
pub type SACKCTL_ACKOEN_ON_PECNEXT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SACKCTL_ACKOEN_ON_PECNEXT_A > ; impl < 'a , REG , const O : u8 > SACKCTL_ACKOEN_ON_PECNEXT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sackctl_ackoen_on_pecnext_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SACKCTL_ACKOEN_ON_PECNEXT_A :: SACKCTL_ACKOEN_ON_PECNEXT_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sackctl_ackoen_on_pecnext_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SACKCTL_ACKOEN_ON_PECNEXT_A :: SACKCTL_ACKOEN_ON_PECNEXT_ENABLE) } } # [doc = "Field `SACKCTL_ACKOEN_ON_PECDONE` reader - When set this bit will automatically turn on the Slave ACKOEN field following the ACK/NACK of the received PEC byte."]
pub type SACKCTL_ACKOEN_ON_PECDONE_R = crate :: BitReader < SACKCTL_ACKOEN_ON_PECDONE_A > ; # [doc = "When set this bit will automatically turn on the Slave ACKOEN field following the ACK/NACK of the received PEC byte.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SACKCTL_ACKOEN_ON_PECDONE_A { # [doc = "0: DISABLE"]
SACKCTL_ACKOEN_ON_PECDONE_DISABLE = 0 , # [doc = "1: ENABLE"]
SACKCTL_ACKOEN_ON_PECDONE_ENABLE = 1 , } impl From < SACKCTL_ACKOEN_ON_PECDONE_A > for bool { # [inline (always)]
fn from (variant : SACKCTL_ACKOEN_ON_PECDONE_A) -> Self { variant as u8 != 0 } } impl SACKCTL_ACKOEN_ON_PECDONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SACKCTL_ACKOEN_ON_PECDONE_A { match self . bits { false => SACKCTL_ACKOEN_ON_PECDONE_A :: SACKCTL_ACKOEN_ON_PECDONE_DISABLE , true => SACKCTL_ACKOEN_ON_PECDONE_A :: SACKCTL_ACKOEN_ON_PECDONE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sackctl_ackoen_on_pecdone_disable (& self) -> bool { * self == SACKCTL_ACKOEN_ON_PECDONE_A :: SACKCTL_ACKOEN_ON_PECDONE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sackctl_ackoen_on_pecdone_enable (& self) -> bool { * self == SACKCTL_ACKOEN_ON_PECDONE_A :: SACKCTL_ACKOEN_ON_PECDONE_ENABLE } } # [doc = "Field `SACKCTL_ACKOEN_ON_PECDONE` writer - When set this bit will automatically turn on the Slave ACKOEN field following the ACK/NACK of the received PEC byte."]
pub type SACKCTL_ACKOEN_ON_PECDONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SACKCTL_ACKOEN_ON_PECDONE_A > ; impl < 'a , REG , const O : u8 > SACKCTL_ACKOEN_ON_PECDONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sackctl_ackoen_on_pecdone_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SACKCTL_ACKOEN_ON_PECDONE_A :: SACKCTL_ACKOEN_ON_PECDONE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sackctl_ackoen_on_pecdone_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SACKCTL_ACKOEN_ON_PECDONE_A :: SACKCTL_ACKOEN_ON_PECDONE_ENABLE) } } impl R { # [doc = "Bit 0 - I2C Slave ACK Override Enable"]
# [inline (always)]
pub fn sackctl_ackoen (& self) -> SACKCTL_ACKOEN_R { SACKCTL_ACKOEN_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - I2C Slave ACK Override Value Note: for General Call this bit will be ignored if set to NACK and slave continues to receive data."]
# [inline (always)]
pub fn sackctl_ackoval (& self) -> SACKCTL_ACKOVAL_R { SACKCTL_ACKOVAL_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - When set this bit will automatically turn on the Slave ACKOEN field following a Start Condition."]
# [inline (always)]
pub fn sackctl_ackoen_on_start (& self) -> SACKCTL_ACKOEN_ON_START_R { SACKCTL_ACKOEN_ON_START_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - When set this bit will automatically turn on the Slave ACKOEN field following the ACK/NACK of the byte received just prior to the PEC byte. Note that when ACKOEN is set the PEC byte will not automatically be ACKed/NACKed by the State Machine and FW must perform this function by writing SLAVE_SACKCTL."]
# [inline (always)]
pub fn sackctl_ackoen_on_pecnext (& self) -> SACKCTL_ACKOEN_ON_PECNEXT_R { SACKCTL_ACKOEN_ON_PECNEXT_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - When set this bit will automatically turn on the Slave ACKOEN field following the ACK/NACK of the received PEC byte."]
# [inline (always)]
pub fn sackctl_ackoen_on_pecdone (& self) -> SACKCTL_ACKOEN_ON_PECDONE_R { SACKCTL_ACKOEN_ON_PECDONE_R :: new (((self . bits >> 4) & 1) != 0) } } impl W { # [doc = "Bit 0 - I2C Slave ACK Override Enable"]
# [inline (always)]
# [must_use]
pub fn sackctl_ackoen (& mut self) -> SACKCTL_ACKOEN_W < SACKCTL_SPEC , 0 > { SACKCTL_ACKOEN_W :: new (self) } # [doc = "Bit 1 - I2C Slave ACK Override Value Note: for General Call this bit will be ignored if set to NACK and slave continues to receive data."]
# [inline (always)]
# [must_use]
pub fn sackctl_ackoval (& mut self) -> SACKCTL_ACKOVAL_W < SACKCTL_SPEC , 1 > { SACKCTL_ACKOVAL_W :: new (self) } # [doc = "Bit 2 - When set this bit will automatically turn on the Slave ACKOEN field following a Start Condition."]
# [inline (always)]
# [must_use]
pub fn sackctl_ackoen_on_start (& mut self) -> SACKCTL_ACKOEN_ON_START_W < SACKCTL_SPEC , 2 > { SACKCTL_ACKOEN_ON_START_W :: new (self) } # [doc = "Bit 3 - When set this bit will automatically turn on the Slave ACKOEN field following the ACK/NACK of the byte received just prior to the PEC byte. Note that when ACKOEN is set the PEC byte will not automatically be ACKed/NACKed by the State Machine and FW must perform this function by writing SLAVE_SACKCTL."]
# [inline (always)]
# [must_use]
pub fn sackctl_ackoen_on_pecnext (& mut self) -> SACKCTL_ACKOEN_ON_PECNEXT_W < SACKCTL_SPEC , 3 > { SACKCTL_ACKOEN_ON_PECNEXT_W :: new (self) } # [doc = "Bit 4 - When set this bit will automatically turn on the Slave ACKOEN field following the ACK/NACK of the received PEC byte."]
# [inline (always)]
# [must_use]
pub fn sackctl_ackoen_on_pecdone (& mut self) -> SACKCTL_ACKOEN_ON_PECDONE_W < SACKCTL_SPEC , 4 > { SACKCTL_ACKOEN_ON_PECDONE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "I2C Slave ACK Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`sackctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sackctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SACKCTL_SPEC ; impl crate :: RegisterSpec for SACKCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`sackctl::R`](R) reader structure"]
impl crate :: Readable for SACKCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`sackctl::W`](W) writer structure"]
impl crate :: Writable for SACKCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets SACKCTL to value 0"]
impl crate :: Resettable for SACKCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "SFIFOCTL (rw) register accessor: I2C Slave FIFO Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`sfifoctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sfifoctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sfifoctl`]
module"]
pub type SFIFOCTL = crate :: Reg < sfifoctl :: SFIFOCTL_SPEC > ; # [doc = "I2C Slave FIFO Control"]
pub mod sfifoctl { # [doc = "Register `SFIFOCTL` reader"]
pub type R = crate :: R < SFIFOCTL_SPEC > ; # [doc = "Register `SFIFOCTL` writer"]
pub type W = crate :: W < SFIFOCTL_SPEC > ; # [doc = "Field `SFIFOCTL_TXTRIG` reader - TX FIFO Trigger Indicates at what fill level in the TX FIFO a trigger will be generated."]
pub type SFIFOCTL_TXTRIG_R = crate :: FieldReader < SFIFOCTL_TXTRIG_A > ; # [doc = "TX FIFO Trigger Indicates at what fill level in the TX FIFO a trigger will be generated.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum SFIFOCTL_TXTRIG_A { # [doc = "4: LEVEL_4"]
SFIFOCTL_TXTRIG_LEVEL_4 = 4 , # [doc = "5: LEVEL_5"]
SFIFOCTL_TXTRIG_LEVEL_5 = 5 , # [doc = "6: LEVEL_6"]
SFIFOCTL_TXTRIG_LEVEL_6 = 6 , # [doc = "7: LEVEL_7"]
SFIFOCTL_TXTRIG_LEVEL_7 = 7 , } impl From < SFIFOCTL_TXTRIG_A > for u8 { # [inline (always)]
fn from (variant : SFIFOCTL_TXTRIG_A) -> Self { variant as _ } } impl crate :: FieldSpec for SFIFOCTL_TXTRIG_A { type Ux = u8 ; } impl SFIFOCTL_TXTRIG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < SFIFOCTL_TXTRIG_A > { match self . bits { 4 => Some (SFIFOCTL_TXTRIG_A :: SFIFOCTL_TXTRIG_LEVEL_4) , 5 => Some (SFIFOCTL_TXTRIG_A :: SFIFOCTL_TXTRIG_LEVEL_5) , 6 => Some (SFIFOCTL_TXTRIG_A :: SFIFOCTL_TXTRIG_LEVEL_6) , 7 => Some (SFIFOCTL_TXTRIG_A :: SFIFOCTL_TXTRIG_LEVEL_7) , _ => None , } } # [doc = "LEVEL_4"]
# [inline (always)]
pub fn is_sfifoctl_txtrig_level_4 (& self) -> bool { * self == SFIFOCTL_TXTRIG_A :: SFIFOCTL_TXTRIG_LEVEL_4 } # [doc = "LEVEL_5"]
# [inline (always)]
pub fn is_sfifoctl_txtrig_level_5 (& self) -> bool { * self == SFIFOCTL_TXTRIG_A :: SFIFOCTL_TXTRIG_LEVEL_5 } # [doc = "LEVEL_6"]
# [inline (always)]
pub fn is_sfifoctl_txtrig_level_6 (& self) -> bool { * self == SFIFOCTL_TXTRIG_A :: SFIFOCTL_TXTRIG_LEVEL_6 } # [doc = "LEVEL_7"]
# [inline (always)]
pub fn is_sfifoctl_txtrig_level_7 (& self) -> bool { * self == SFIFOCTL_TXTRIG_A :: SFIFOCTL_TXTRIG_LEVEL_7 } } # [doc = "Field `SFIFOCTL_TXTRIG` writer - TX FIFO Trigger Indicates at what fill level in the TX FIFO a trigger will be generated."]
pub type SFIFOCTL_TXTRIG_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , SFIFOCTL_TXTRIG_A > ; impl < 'a , REG , const O : u8 > SFIFOCTL_TXTRIG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "LEVEL_4"]
# [inline (always)]
pub fn sfifoctl_txtrig_level_4 (self) -> & 'a mut crate :: W < REG > { self . variant (SFIFOCTL_TXTRIG_A :: SFIFOCTL_TXTRIG_LEVEL_4) } # [doc = "LEVEL_5"]
# [inline (always)]
pub fn sfifoctl_txtrig_level_5 (self) -> & 'a mut crate :: W < REG > { self . variant (SFIFOCTL_TXTRIG_A :: SFIFOCTL_TXTRIG_LEVEL_5) } # [doc = "LEVEL_6"]
# [inline (always)]
pub fn sfifoctl_txtrig_level_6 (self) -> & 'a mut crate :: W < REG > { self . variant (SFIFOCTL_TXTRIG_A :: SFIFOCTL_TXTRIG_LEVEL_6) } # [doc = "LEVEL_7"]
# [inline (always)]
pub fn sfifoctl_txtrig_level_7 (self) -> & 'a mut crate :: W < REG > { self . variant (SFIFOCTL_TXTRIG_A :: SFIFOCTL_TXTRIG_LEVEL_7) } } # [doc = "Field `SFIFOCTL_TXFLUSH` reader - TX FIFO Flush Setting this bit will Flush the TX FIFO. Before reseting this bit to stop Flush the TXFIFOCNT should be checked to be 8 and indicating that the Flush has completed."]
pub type SFIFOCTL_TXFLUSH_R = crate :: BitReader < SFIFOCTL_TXFLUSH_A > ; # [doc = "TX FIFO Flush Setting this bit will Flush the TX FIFO. Before reseting this bit to stop Flush the TXFIFOCNT should be checked to be 8 and indicating that the Flush has completed.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SFIFOCTL_TXFLUSH_A { # [doc = "0: NOFLUSH"]
SFIFOCTL_TXFLUSH_NOFLUSH = 0 , # [doc = "1: FLUSH"]
SFIFOCTL_TXFLUSH_FLUSH = 1 , } impl From < SFIFOCTL_TXFLUSH_A > for bool { # [inline (always)]
fn from (variant : SFIFOCTL_TXFLUSH_A) -> Self { variant as u8 != 0 } } impl SFIFOCTL_TXFLUSH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SFIFOCTL_TXFLUSH_A { match self . bits { false => SFIFOCTL_TXFLUSH_A :: SFIFOCTL_TXFLUSH_NOFLUSH , true => SFIFOCTL_TXFLUSH_A :: SFIFOCTL_TXFLUSH_FLUSH , } } # [doc = "NOFLUSH"]
# [inline (always)]
pub fn is_sfifoctl_txflush_noflush (& self) -> bool { * self == SFIFOCTL_TXFLUSH_A :: SFIFOCTL_TXFLUSH_NOFLUSH } # [doc = "FLUSH"]
# [inline (always)]
pub fn is_sfifoctl_txflush_flush (& self) -> bool { * self == SFIFOCTL_TXFLUSH_A :: SFIFOCTL_TXFLUSH_FLUSH } } # [doc = "Field `SFIFOCTL_TXFLUSH` writer - TX FIFO Flush Setting this bit will Flush the TX FIFO. Before reseting this bit to stop Flush the TXFIFOCNT should be checked to be 8 and indicating that the Flush has completed."]
pub type SFIFOCTL_TXFLUSH_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SFIFOCTL_TXFLUSH_A > ; impl < 'a , REG , const O : u8 > SFIFOCTL_TXFLUSH_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOFLUSH"]
# [inline (always)]
pub fn sfifoctl_txflush_noflush (self) -> & 'a mut crate :: W < REG > { self . variant (SFIFOCTL_TXFLUSH_A :: SFIFOCTL_TXFLUSH_NOFLUSH) } # [doc = "FLUSH"]
# [inline (always)]
pub fn sfifoctl_txflush_flush (self) -> & 'a mut crate :: W < REG > { self . variant (SFIFOCTL_TXFLUSH_A :: SFIFOCTL_TXFLUSH_FLUSH) } } # [doc = "Field `SFIFOCTL_RXTRIG` reader - RX FIFO Trigger Indicates at what fill level in the RX FIFO a trigger will be generated. Note: Programming RXTRIG to 0x0 has no effect since no data is present to transfer out of RX FIFO."]
pub type SFIFOCTL_RXTRIG_R = crate :: FieldReader < SFIFOCTL_RXTRIG_A > ; # [doc = "RX FIFO Trigger Indicates at what fill level in the RX FIFO a trigger will be generated. Note: Programming RXTRIG to 0x0 has no effect since no data is present to transfer out of RX FIFO.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum SFIFOCTL_RXTRIG_A { # [doc = "4: LEVEL_5"]
SFIFOCTL_RXTRIG_LEVEL_5 = 4 , # [doc = "5: LEVEL_6"]
SFIFOCTL_RXTRIG_LEVEL_6 = 5 , # [doc = "6: LEVEL_7"]
SFIFOCTL_RXTRIG_LEVEL_7 = 6 , # [doc = "7: LEVEL_8"]
SFIFOCTL_RXTRIG_LEVEL_8 = 7 , } impl From < SFIFOCTL_RXTRIG_A > for u8 { # [inline (always)]
fn from (variant : SFIFOCTL_RXTRIG_A) -> Self { variant as _ } } impl crate :: FieldSpec for SFIFOCTL_RXTRIG_A { type Ux = u8 ; } impl SFIFOCTL_RXTRIG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < SFIFOCTL_RXTRIG_A > { match self . bits { 4 => Some (SFIFOCTL_RXTRIG_A :: SFIFOCTL_RXTRIG_LEVEL_5) , 5 => Some (SFIFOCTL_RXTRIG_A :: SFIFOCTL_RXTRIG_LEVEL_6) , 6 => Some (SFIFOCTL_RXTRIG_A :: SFIFOCTL_RXTRIG_LEVEL_7) , 7 => Some (SFIFOCTL_RXTRIG_A :: SFIFOCTL_RXTRIG_LEVEL_8) , _ => None , } } # [doc = "LEVEL_5"]
# [inline (always)]
pub fn is_sfifoctl_rxtrig_level_5 (& self) -> bool { * self == SFIFOCTL_RXTRIG_A :: SFIFOCTL_RXTRIG_LEVEL_5 } # [doc = "LEVEL_6"]
# [inline (always)]
pub fn is_sfifoctl_rxtrig_level_6 (& self) -> bool { * self == SFIFOCTL_RXTRIG_A :: SFIFOCTL_RXTRIG_LEVEL_6 } # [doc = "LEVEL_7"]
# [inline (always)]
pub fn is_sfifoctl_rxtrig_level_7 (& self) -> bool { * self == SFIFOCTL_RXTRIG_A :: SFIFOCTL_RXTRIG_LEVEL_7 } # [doc = "LEVEL_8"]
# [inline (always)]
pub fn is_sfifoctl_rxtrig_level_8 (& self) -> bool { * self == SFIFOCTL_RXTRIG_A :: SFIFOCTL_RXTRIG_LEVEL_8 } } # [doc = "Field `SFIFOCTL_RXTRIG` writer - RX FIFO Trigger Indicates at what fill level in the RX FIFO a trigger will be generated. Note: Programming RXTRIG to 0x0 has no effect since no data is present to transfer out of RX FIFO."]
pub type SFIFOCTL_RXTRIG_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , SFIFOCTL_RXTRIG_A > ; impl < 'a , REG , const O : u8 > SFIFOCTL_RXTRIG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "LEVEL_5"]
# [inline (always)]
pub fn sfifoctl_rxtrig_level_5 (self) -> & 'a mut crate :: W < REG > { self . variant (SFIFOCTL_RXTRIG_A :: SFIFOCTL_RXTRIG_LEVEL_5) } # [doc = "LEVEL_6"]
# [inline (always)]
pub fn sfifoctl_rxtrig_level_6 (self) -> & 'a mut crate :: W < REG > { self . variant (SFIFOCTL_RXTRIG_A :: SFIFOCTL_RXTRIG_LEVEL_6) } # [doc = "LEVEL_7"]
# [inline (always)]
pub fn sfifoctl_rxtrig_level_7 (self) -> & 'a mut crate :: W < REG > { self . variant (SFIFOCTL_RXTRIG_A :: SFIFOCTL_RXTRIG_LEVEL_7) } # [doc = "LEVEL_8"]
# [inline (always)]
pub fn sfifoctl_rxtrig_level_8 (self) -> & 'a mut crate :: W < REG > { self . variant (SFIFOCTL_RXTRIG_A :: SFIFOCTL_RXTRIG_LEVEL_8) } } # [doc = "Field `SFIFOCTL_RXFLUSH` reader - RX FIFO Flush Setting this bit will Flush the RX FIFO. Before reseting this bit to stop Flush the RXFIFOCNT should be checked to be 0 and indicating that the Flush has completed."]
pub type SFIFOCTL_RXFLUSH_R = crate :: BitReader < SFIFOCTL_RXFLUSH_A > ; # [doc = "RX FIFO Flush Setting this bit will Flush the RX FIFO. Before reseting this bit to stop Flush the RXFIFOCNT should be checked to be 0 and indicating that the Flush has completed.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SFIFOCTL_RXFLUSH_A { # [doc = "0: NOFLUSH"]
SFIFOCTL_RXFLUSH_NOFLUSH = 0 , # [doc = "1: FLUSH"]
SFIFOCTL_RXFLUSH_FLUSH = 1 , } impl From < SFIFOCTL_RXFLUSH_A > for bool { # [inline (always)]
fn from (variant : SFIFOCTL_RXFLUSH_A) -> Self { variant as u8 != 0 } } impl SFIFOCTL_RXFLUSH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SFIFOCTL_RXFLUSH_A { match self . bits { false => SFIFOCTL_RXFLUSH_A :: SFIFOCTL_RXFLUSH_NOFLUSH , true => SFIFOCTL_RXFLUSH_A :: SFIFOCTL_RXFLUSH_FLUSH , } } # [doc = "NOFLUSH"]
# [inline (always)]
pub fn is_sfifoctl_rxflush_noflush (& self) -> bool { * self == SFIFOCTL_RXFLUSH_A :: SFIFOCTL_RXFLUSH_NOFLUSH } # [doc = "FLUSH"]
# [inline (always)]
pub fn is_sfifoctl_rxflush_flush (& self) -> bool { * self == SFIFOCTL_RXFLUSH_A :: SFIFOCTL_RXFLUSH_FLUSH } } # [doc = "Field `SFIFOCTL_RXFLUSH` writer - RX FIFO Flush Setting this bit will Flush the RX FIFO. Before reseting this bit to stop Flush the RXFIFOCNT should be checked to be 0 and indicating that the Flush has completed."]
pub type SFIFOCTL_RXFLUSH_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SFIFOCTL_RXFLUSH_A > ; impl < 'a , REG , const O : u8 > SFIFOCTL_RXFLUSH_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOFLUSH"]
# [inline (always)]
pub fn sfifoctl_rxflush_noflush (self) -> & 'a mut crate :: W < REG > { self . variant (SFIFOCTL_RXFLUSH_A :: SFIFOCTL_RXFLUSH_NOFLUSH) } # [doc = "FLUSH"]
# [inline (always)]
pub fn sfifoctl_rxflush_flush (self) -> & 'a mut crate :: W < REG > { self . variant (SFIFOCTL_RXFLUSH_A :: SFIFOCTL_RXFLUSH_FLUSH) } } impl R { # [doc = "Bits 0:2 - TX FIFO Trigger Indicates at what fill level in the TX FIFO a trigger will be generated."]
# [inline (always)]
pub fn sfifoctl_txtrig (& self) -> SFIFOCTL_TXTRIG_R { SFIFOCTL_TXTRIG_R :: new ((self . bits & 7) as u8) } # [doc = "Bit 7 - TX FIFO Flush Setting this bit will Flush the TX FIFO. Before reseting this bit to stop Flush the TXFIFOCNT should be checked to be 8 and indicating that the Flush has completed."]
# [inline (always)]
pub fn sfifoctl_txflush (& self) -> SFIFOCTL_TXFLUSH_R { SFIFOCTL_TXFLUSH_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bits 8:10 - RX FIFO Trigger Indicates at what fill level in the RX FIFO a trigger will be generated. Note: Programming RXTRIG to 0x0 has no effect since no data is present to transfer out of RX FIFO."]
# [inline (always)]
pub fn sfifoctl_rxtrig (& self) -> SFIFOCTL_RXTRIG_R { SFIFOCTL_RXTRIG_R :: new (((self . bits >> 8) & 7) as u8) } # [doc = "Bit 15 - RX FIFO Flush Setting this bit will Flush the RX FIFO. Before reseting this bit to stop Flush the RXFIFOCNT should be checked to be 0 and indicating that the Flush has completed."]
# [inline (always)]
pub fn sfifoctl_rxflush (& self) -> SFIFOCTL_RXFLUSH_R { SFIFOCTL_RXFLUSH_R :: new (((self . bits >> 15) & 1) != 0) } } impl W { # [doc = "Bits 0:2 - TX FIFO Trigger Indicates at what fill level in the TX FIFO a trigger will be generated."]
# [inline (always)]
# [must_use]
pub fn sfifoctl_txtrig (& mut self) -> SFIFOCTL_TXTRIG_W < SFIFOCTL_SPEC , 0 > { SFIFOCTL_TXTRIG_W :: new (self) } # [doc = "Bit 7 - TX FIFO Flush Setting this bit will Flush the TX FIFO. Before reseting this bit to stop Flush the TXFIFOCNT should be checked to be 8 and indicating that the Flush has completed."]
# [inline (always)]
# [must_use]
pub fn sfifoctl_txflush (& mut self) -> SFIFOCTL_TXFLUSH_W < SFIFOCTL_SPEC , 7 > { SFIFOCTL_TXFLUSH_W :: new (self) } # [doc = "Bits 8:10 - RX FIFO Trigger Indicates at what fill level in the RX FIFO a trigger will be generated. Note: Programming RXTRIG to 0x0 has no effect since no data is present to transfer out of RX FIFO."]
# [inline (always)]
# [must_use]
pub fn sfifoctl_rxtrig (& mut self) -> SFIFOCTL_RXTRIG_W < SFIFOCTL_SPEC , 8 > { SFIFOCTL_RXTRIG_W :: new (self) } # [doc = "Bit 15 - RX FIFO Flush Setting this bit will Flush the RX FIFO. Before reseting this bit to stop Flush the RXFIFOCNT should be checked to be 0 and indicating that the Flush has completed."]
# [inline (always)]
# [must_use]
pub fn sfifoctl_rxflush (& mut self) -> SFIFOCTL_RXFLUSH_W < SFIFOCTL_SPEC , 15 > { SFIFOCTL_RXFLUSH_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "I2C Slave FIFO Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`sfifoctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sfifoctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SFIFOCTL_SPEC ; impl crate :: RegisterSpec for SFIFOCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`sfifoctl::R`](R) reader structure"]
impl crate :: Readable for SFIFOCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`sfifoctl::W`](W) writer structure"]
impl crate :: Writable for SFIFOCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets SFIFOCTL to value 0"]
impl crate :: Resettable for SFIFOCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "SFIFOSR (r) register accessor: I2C Slave FIFO Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`sfifosr::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sfifosr`]
module"]
pub type SFIFOSR = crate :: Reg < sfifosr :: SFIFOSR_SPEC > ; # [doc = "I2C Slave FIFO Status Register"]
pub mod sfifosr { # [doc = "Register `SFIFOSR` reader"]
pub type R = crate :: R < SFIFOSR_SPEC > ; # [doc = "Field `SFIFOSR_RXFIFOCNT` reader - Number of Bytes which could be read from the RX FIFO"]
pub type SFIFOSR_RXFIFOCNT_R = crate :: FieldReader ; # [doc = "Field `SFIFOSR_RXFLUSH` reader - RX FIFO Flush When this bit is set a Flush operation for the RX FIFO is active. Clear the RXFLUSH bit in the control register to stop."]
pub type SFIFOSR_RXFLUSH_R = crate :: BitReader < SFIFOSR_RXFLUSH_A > ; # [doc = "RX FIFO Flush When this bit is set a Flush operation for the RX FIFO is active. Clear the RXFLUSH bit in the control register to stop.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SFIFOSR_RXFLUSH_A { # [doc = "0: INACTIVE"]
SFIFOSR_RXFLUSH_INACTIVE = 0 , # [doc = "1: ACTIVE"]
SFIFOSR_RXFLUSH_ACTIVE = 1 , } impl From < SFIFOSR_RXFLUSH_A > for bool { # [inline (always)]
fn from (variant : SFIFOSR_RXFLUSH_A) -> Self { variant as u8 != 0 } } impl SFIFOSR_RXFLUSH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SFIFOSR_RXFLUSH_A { match self . bits { false => SFIFOSR_RXFLUSH_A :: SFIFOSR_RXFLUSH_INACTIVE , true => SFIFOSR_RXFLUSH_A :: SFIFOSR_RXFLUSH_ACTIVE , } } # [doc = "INACTIVE"]
# [inline (always)]
pub fn is_sfifosr_rxflush_inactive (& self) -> bool { * self == SFIFOSR_RXFLUSH_A :: SFIFOSR_RXFLUSH_INACTIVE } # [doc = "ACTIVE"]
# [inline (always)]
pub fn is_sfifosr_rxflush_active (& self) -> bool { * self == SFIFOSR_RXFLUSH_A :: SFIFOSR_RXFLUSH_ACTIVE } } # [doc = "Field `SFIFOSR_TXFIFOCNT` reader - Number of Bytes which could be put into the TX FIFO"]
pub type SFIFOSR_TXFIFOCNT_R = crate :: FieldReader ; # [doc = "Field `SFIFOSR_TXFLUSH` reader - TX FIFO Flush When this bit is set a Flush operation for the TX FIFO is active. Clear the TXFLUSH bit in the control register to stop."]
pub type SFIFOSR_TXFLUSH_R = crate :: BitReader < SFIFOSR_TXFLUSH_A > ; # [doc = "TX FIFO Flush When this bit is set a Flush operation for the TX FIFO is active. Clear the TXFLUSH bit in the control register to stop.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SFIFOSR_TXFLUSH_A { # [doc = "0: INACTIVE"]
SFIFOSR_TXFLUSH_INACTIVE = 0 , # [doc = "1: ACTIVE"]
SFIFOSR_TXFLUSH_ACTIVE = 1 , } impl From < SFIFOSR_TXFLUSH_A > for bool { # [inline (always)]
fn from (variant : SFIFOSR_TXFLUSH_A) -> Self { variant as u8 != 0 } } impl SFIFOSR_TXFLUSH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SFIFOSR_TXFLUSH_A { match self . bits { false => SFIFOSR_TXFLUSH_A :: SFIFOSR_TXFLUSH_INACTIVE , true => SFIFOSR_TXFLUSH_A :: SFIFOSR_TXFLUSH_ACTIVE , } } # [doc = "INACTIVE"]
# [inline (always)]
pub fn is_sfifosr_txflush_inactive (& self) -> bool { * self == SFIFOSR_TXFLUSH_A :: SFIFOSR_TXFLUSH_INACTIVE } # [doc = "ACTIVE"]
# [inline (always)]
pub fn is_sfifosr_txflush_active (& self) -> bool { * self == SFIFOSR_TXFLUSH_A :: SFIFOSR_TXFLUSH_ACTIVE } } impl R { # [doc = "Bits 0:3 - Number of Bytes which could be read from the RX FIFO"]
# [inline (always)]
pub fn sfifosr_rxfifocnt (& self) -> SFIFOSR_RXFIFOCNT_R { SFIFOSR_RXFIFOCNT_R :: new ((self . bits & 0x0f) as u8) } # [doc = "Bit 7 - RX FIFO Flush When this bit is set a Flush operation for the RX FIFO is active. Clear the RXFLUSH bit in the control register to stop."]
# [inline (always)]
pub fn sfifosr_rxflush (& self) -> SFIFOSR_RXFLUSH_R { SFIFOSR_RXFLUSH_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bits 8:11 - Number of Bytes which could be put into the TX FIFO"]
# [inline (always)]
pub fn sfifosr_txfifocnt (& self) -> SFIFOSR_TXFIFOCNT_R { SFIFOSR_TXFIFOCNT_R :: new (((self . bits >> 8) & 0x0f) as u8) } # [doc = "Bit 15 - TX FIFO Flush When this bit is set a Flush operation for the TX FIFO is active. Clear the TXFLUSH bit in the control register to stop."]
# [inline (always)]
pub fn sfifosr_txflush (& self) -> SFIFOSR_TXFLUSH_R { SFIFOSR_TXFLUSH_R :: new (((self . bits >> 15) & 1) != 0) } } # [doc = "I2C Slave FIFO Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`sfifosr::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SFIFOSR_SPEC ; impl crate :: RegisterSpec for SFIFOSR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`sfifosr::R`](R) reader structure"]
impl crate :: Readable for SFIFOSR_SPEC { } # [doc = "`reset()` method sets SFIFOSR to value 0x0800"]
impl crate :: Resettable for SFIFOSR_SPEC { const RESET_VALUE : Self :: Ux = 0x0800 ; } } # [doc = "SLAVE_PECCTL (rw) register accessor: I2C Slave PEC control register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`slave_pecctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`slave_pecctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@slave_pecctl`]
module"]
pub type SLAVE_PECCTL = crate :: Reg < slave_pecctl :: SLAVE_PECCTL_SPEC > ; # [doc = "I2C Slave PEC control register"]
pub mod slave_pecctl { # [doc = "Register `SLAVE_PECCTL` reader"]
pub type R = crate :: R < SLAVE_PECCTL_SPEC > ; # [doc = "Register `SLAVE_PECCTL` writer"]
pub type W = crate :: W < SLAVE_PECCTL_SPEC > ; # [doc = "Field `SLAVE_PECCTL_PECCNT` reader - When this field is non zero, the number of I2C data bytes are counted. When the byte count = PECCNT and the state machine is transmitting, the contents of the LSFR is loaded into the shift register instead of the byte received from the Tx FIFO. When the state machine is receiving, after the last bit of this byte is received the LSFR is checked and if it is non-zero, a PEC RX Error interrupt is generated. The I2C packet must be padded to include the PEC byte for both transmit and receive. In transmit mode the FIFO must be loaded with a dummy PEC byte. In receive mode the PEC byte will be passed to the Rx FIFO. In the normal Slave use case, FW would set PECEN=1 and PECCNT=0 and use the ACKOEN until the remaining SMB packet length is known. FW would then set the PECCNT to the remaining packet length (Including PEC bye). FW would then configure DMA to allow the packet to complete unassisted and exit NoAck mode. Note that when the byte count = PEC CNT, the byte count is reset to 0 and multiple PEC calculation can automatically occur within a single I2C transaction"]
pub type SLAVE_PECCTL_PECCNT_R = crate :: FieldReader < u16 > ; # [doc = "Field `SLAVE_PECCTL_PECCNT` writer - When this field is non zero, the number of I2C data bytes are counted. When the byte count = PECCNT and the state machine is transmitting, the contents of the LSFR is loaded into the shift register instead of the byte received from the Tx FIFO. When the state machine is receiving, after the last bit of this byte is received the LSFR is checked and if it is non-zero, a PEC RX Error interrupt is generated. The I2C packet must be padded to include the PEC byte for both transmit and receive. In transmit mode the FIFO must be loaded with a dummy PEC byte. In receive mode the PEC byte will be passed to the Rx FIFO. In the normal Slave use case, FW would set PECEN=1 and PECCNT=0 and use the ACKOEN until the remaining SMB packet length is known. FW would then set the PECCNT to the remaining packet length (Including PEC bye). FW would then configure DMA to allow the packet to complete unassisted and exit NoAck mode. Note that when the byte count = PEC CNT, the byte count is reset to 0 and multiple PEC calculation can automatically occur within a single I2C transaction"]
pub type SLAVE_PECCTL_PECCNT_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 9 , O , u16 > ; # [doc = "Field `SLAVE_PECCTL_PECEN` reader - PEC Enable This bit enables the SMB Packet Error Checking (PEC). When enabled the PEC is calculated on all bits accept the Start, Stop, Ack and Nack. The PEC LSFR and the Byte Counter is set to 0 when the State Machine is in the IDLE state, which occur following a Stop or when a timeout occurs. The Counter is also set to 0 after the PEC byte is sent or received. Note that the NACK is automatically send following a PEC byte that results in a PEC error. The PEC Polynomial is x^8 + x^2 + x^1 + 1."]
pub type SLAVE_PECCTL_PECEN_R = crate :: BitReader < SLAVE_PECCTL_PECEN_A > ; # [doc = "PEC Enable This bit enables the SMB Packet Error Checking (PEC). When enabled the PEC is calculated on all bits accept the Start, Stop, Ack and Nack. The PEC LSFR and the Byte Counter is set to 0 when the State Machine is in the IDLE state, which occur following a Stop or when a timeout occurs. The Counter is also set to 0 after the PEC byte is sent or received. Note that the NACK is automatically send following a PEC byte that results in a PEC error. The PEC Polynomial is x^8 + x^2 + x^1 + 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SLAVE_PECCTL_PECEN_A { # [doc = "0: DISABLE"]
SLAVE_PECCTL_PECEN_DISABLE = 0 , # [doc = "1: ENABLE"]
SLAVE_PECCTL_PECEN_ENABLE = 1 , } impl From < SLAVE_PECCTL_PECEN_A > for bool { # [inline (always)]
fn from (variant : SLAVE_PECCTL_PECEN_A) -> Self { variant as u8 != 0 } } impl SLAVE_PECCTL_PECEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SLAVE_PECCTL_PECEN_A { match self . bits { false => SLAVE_PECCTL_PECEN_A :: SLAVE_PECCTL_PECEN_DISABLE , true => SLAVE_PECCTL_PECEN_A :: SLAVE_PECCTL_PECEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_slave_pecctl_pecen_disable (& self) -> bool { * self == SLAVE_PECCTL_PECEN_A :: SLAVE_PECCTL_PECEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_slave_pecctl_pecen_enable (& self) -> bool { * self == SLAVE_PECCTL_PECEN_A :: SLAVE_PECCTL_PECEN_ENABLE } } # [doc = "Field `SLAVE_PECCTL_PECEN` writer - PEC Enable This bit enables the SMB Packet Error Checking (PEC). When enabled the PEC is calculated on all bits accept the Start, Stop, Ack and Nack. The PEC LSFR and the Byte Counter is set to 0 when the State Machine is in the IDLE state, which occur following a Stop or when a timeout occurs. The Counter is also set to 0 after the PEC byte is sent or received. Note that the NACK is automatically send following a PEC byte that results in a PEC error. The PEC Polynomial is x^8 + x^2 + x^1 + 1."]
pub type SLAVE_PECCTL_PECEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SLAVE_PECCTL_PECEN_A > ; impl < 'a , REG , const O : u8 > SLAVE_PECCTL_PECEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn slave_pecctl_pecen_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SLAVE_PECCTL_PECEN_A :: SLAVE_PECCTL_PECEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn slave_pecctl_pecen_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SLAVE_PECCTL_PECEN_A :: SLAVE_PECCTL_PECEN_ENABLE) } } impl R { # [doc = "Bits 0:8 - When this field is non zero, the number of I2C data bytes are counted. When the byte count = PECCNT and the state machine is transmitting, the contents of the LSFR is loaded into the shift register instead of the byte received from the Tx FIFO. When the state machine is receiving, after the last bit of this byte is received the LSFR is checked and if it is non-zero, a PEC RX Error interrupt is generated. The I2C packet must be padded to include the PEC byte for both transmit and receive. In transmit mode the FIFO must be loaded with a dummy PEC byte. In receive mode the PEC byte will be passed to the Rx FIFO. In the normal Slave use case, FW would set PECEN=1 and PECCNT=0 and use the ACKOEN until the remaining SMB packet length is known. FW would then set the PECCNT to the remaining packet length (Including PEC bye). FW would then configure DMA to allow the packet to complete unassisted and exit NoAck mode. Note that when the byte count = PEC CNT, the byte count is reset to 0 and multiple PEC calculation can automatically occur within a single I2C transaction"]
# [inline (always)]
pub fn slave_pecctl_peccnt (& self) -> SLAVE_PECCTL_PECCNT_R { SLAVE_PECCTL_PECCNT_R :: new ((self . bits & 0x01ff) as u16) } # [doc = "Bit 12 - PEC Enable This bit enables the SMB Packet Error Checking (PEC). When enabled the PEC is calculated on all bits accept the Start, Stop, Ack and Nack. The PEC LSFR and the Byte Counter is set to 0 when the State Machine is in the IDLE state, which occur following a Stop or when a timeout occurs. The Counter is also set to 0 after the PEC byte is sent or received. Note that the NACK is automatically send following a PEC byte that results in a PEC error. The PEC Polynomial is x^8 + x^2 + x^1 + 1."]
# [inline (always)]
pub fn slave_pecctl_pecen (& self) -> SLAVE_PECCTL_PECEN_R { SLAVE_PECCTL_PECEN_R :: new (((self . bits >> 12) & 1) != 0) } } impl W { # [doc = "Bits 0:8 - When this field is non zero, the number of I2C data bytes are counted. When the byte count = PECCNT and the state machine is transmitting, the contents of the LSFR is loaded into the shift register instead of the byte received from the Tx FIFO. When the state machine is receiving, after the last bit of this byte is received the LSFR is checked and if it is non-zero, a PEC RX Error interrupt is generated. The I2C packet must be padded to include the PEC byte for both transmit and receive. In transmit mode the FIFO must be loaded with a dummy PEC byte. In receive mode the PEC byte will be passed to the Rx FIFO. In the normal Slave use case, FW would set PECEN=1 and PECCNT=0 and use the ACKOEN until the remaining SMB packet length is known. FW would then set the PECCNT to the remaining packet length (Including PEC bye). FW would then configure DMA to allow the packet to complete unassisted and exit NoAck mode. Note that when the byte count = PEC CNT, the byte count is reset to 0 and multiple PEC calculation can automatically occur within a single I2C transaction"]
# [inline (always)]
# [must_use]
pub fn slave_pecctl_peccnt (& mut self) -> SLAVE_PECCTL_PECCNT_W < SLAVE_PECCTL_SPEC , 0 > { SLAVE_PECCTL_PECCNT_W :: new (self) } # [doc = "Bit 12 - PEC Enable This bit enables the SMB Packet Error Checking (PEC). When enabled the PEC is calculated on all bits accept the Start, Stop, Ack and Nack. The PEC LSFR and the Byte Counter is set to 0 when the State Machine is in the IDLE state, which occur following a Stop or when a timeout occurs. The Counter is also set to 0 after the PEC byte is sent or received. Note that the NACK is automatically send following a PEC byte that results in a PEC error. The PEC Polynomial is x^8 + x^2 + x^1 + 1."]
# [inline (always)]
# [must_use]
pub fn slave_pecctl_pecen (& mut self) -> SLAVE_PECCTL_PECEN_W < SLAVE_PECCTL_SPEC , 12 > { SLAVE_PECCTL_PECEN_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "I2C Slave PEC control register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`slave_pecctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`slave_pecctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SLAVE_PECCTL_SPEC ; impl crate :: RegisterSpec for SLAVE_PECCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`slave_pecctl::R`](R) reader structure"]
impl crate :: Readable for SLAVE_PECCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`slave_pecctl::W`](W) writer structure"]
impl crate :: Writable for SLAVE_PECCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets SLAVE_PECCTL to value 0"]
impl crate :: Resettable for SLAVE_PECCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "SLAVE_PECSR (r) register accessor: I2C slave PEC status register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`slave_pecsr::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@slave_pecsr`]
module"]
pub type SLAVE_PECSR = crate :: Reg < slave_pecsr :: SLAVE_PECSR_SPEC > ; # [doc = "I2C slave PEC status register"]
pub mod slave_pecsr { # [doc = "Register `SLAVE_PECSR` reader"]
pub type R = crate :: R < SLAVE_PECSR_SPEC > ; # [doc = "Field `SLAVE_PECSR_PECBYTECNT` reader - This is the current PEC Byte Count of the Slave State Machine."]
pub type SLAVE_PECSR_PECBYTECNT_R = crate :: FieldReader < u16 > ; # [doc = "Field `SLAVE_PECSR_PECSTS_CHECK` reader - This status bit indicates if the PEC was checked in the transaction that occurred before the last Stop. Latched on Stop."]
pub type SLAVE_PECSR_PECSTS_CHECK_R = crate :: BitReader < SLAVE_PECSR_PECSTS_CHECK_A > ; # [doc = "This status bit indicates if the PEC was checked in the transaction that occurred before the last Stop. Latched on Stop.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SLAVE_PECSR_PECSTS_CHECK_A { # [doc = "0: CLEARED"]
SLAVE_PECSR_PECSTS_CHECK_CLEARED = 0 , # [doc = "1: SET"]
SLAVE_PECSR_PECSTS_CHECK_SET = 1 , } impl From < SLAVE_PECSR_PECSTS_CHECK_A > for bool { # [inline (always)]
fn from (variant : SLAVE_PECSR_PECSTS_CHECK_A) -> Self { variant as u8 != 0 } } impl SLAVE_PECSR_PECSTS_CHECK_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SLAVE_PECSR_PECSTS_CHECK_A { match self . bits { false => SLAVE_PECSR_PECSTS_CHECK_A :: SLAVE_PECSR_PECSTS_CHECK_CLEARED , true => SLAVE_PECSR_PECSTS_CHECK_A :: SLAVE_PECSR_PECSTS_CHECK_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_slave_pecsr_pecsts_check_cleared (& self) -> bool { * self == SLAVE_PECSR_PECSTS_CHECK_A :: SLAVE_PECSR_PECSTS_CHECK_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_slave_pecsr_pecsts_check_set (& self) -> bool { * self == SLAVE_PECSR_PECSTS_CHECK_A :: SLAVE_PECSR_PECSTS_CHECK_SET } } # [doc = "Field `SLAVE_PECSR_PECSTS_ERROR` reader - This status bit indicates if a PEC check error occurred in the transaction that occurred before the last Stop. Latched on Stop."]
pub type SLAVE_PECSR_PECSTS_ERROR_R = crate :: BitReader < SLAVE_PECSR_PECSTS_ERROR_A > ; # [doc = "This status bit indicates if a PEC check error occurred in the transaction that occurred before the last Stop. Latched on Stop.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SLAVE_PECSR_PECSTS_ERROR_A { # [doc = "0: CLEARED"]
SLAVE_PECSR_PECSTS_ERROR_CLEARED = 0 , # [doc = "1: SET"]
SLAVE_PECSR_PECSTS_ERROR_SET = 1 , } impl From < SLAVE_PECSR_PECSTS_ERROR_A > for bool { # [inline (always)]
fn from (variant : SLAVE_PECSR_PECSTS_ERROR_A) -> Self { variant as u8 != 0 } } impl SLAVE_PECSR_PECSTS_ERROR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SLAVE_PECSR_PECSTS_ERROR_A { match self . bits { false => SLAVE_PECSR_PECSTS_ERROR_A :: SLAVE_PECSR_PECSTS_ERROR_CLEARED , true => SLAVE_PECSR_PECSTS_ERROR_A :: SLAVE_PECSR_PECSTS_ERROR_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_slave_pecsr_pecsts_error_cleared (& self) -> bool { * self == SLAVE_PECSR_PECSTS_ERROR_A :: SLAVE_PECSR_PECSTS_ERROR_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_slave_pecsr_pecsts_error_set (& self) -> bool { * self == SLAVE_PECSR_PECSTS_ERROR_A :: SLAVE_PECSR_PECSTS_ERROR_SET } } impl R { # [doc = "Bits 0:8 - This is the current PEC Byte Count of the Slave State Machine."]
# [inline (always)]
pub fn slave_pecsr_pecbytecnt (& self) -> SLAVE_PECSR_PECBYTECNT_R { SLAVE_PECSR_PECBYTECNT_R :: new ((self . bits & 0x01ff) as u16) } # [doc = "Bit 16 - This status bit indicates if the PEC was checked in the transaction that occurred before the last Stop. Latched on Stop."]
# [inline (always)]
pub fn slave_pecsr_pecsts_check (& self) -> SLAVE_PECSR_PECSTS_CHECK_R { SLAVE_PECSR_PECSTS_CHECK_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 17 - This status bit indicates if a PEC check error occurred in the transaction that occurred before the last Stop. Latched on Stop."]
# [inline (always)]
pub fn slave_pecsr_pecsts_error (& self) -> SLAVE_PECSR_PECSTS_ERROR_R { SLAVE_PECSR_PECSTS_ERROR_R :: new (((self . bits >> 17) & 1) != 0) } } # [doc = "I2C slave PEC status register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`slave_pecsr::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SLAVE_PECSR_SPEC ; impl crate :: RegisterSpec for SLAVE_PECSR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`slave_pecsr::R`](R) reader structure"]
impl crate :: Readable for SLAVE_PECSR_SPEC { } # [doc = "`reset()` method sets SLAVE_PECSR to value 0"]
impl crate :: Resettable for SLAVE_PECSR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } } # [doc = "CPUSSMMR"]
pub struct CPUSS { _marker : PhantomData < * const () > } unsafe impl Send for CPUSS { } impl CPUSS { # [doc = r"Pointer to the register block"]
pub const PTR : * const cpuss :: RegisterBlock = 0x4040_0000 as * const _ ; # [doc = r"Return the pointer to the register block"]
# [inline (always)]
pub const fn ptr () -> * const cpuss :: RegisterBlock { Self :: PTR } # [doc = r" Steal an instance of this peripheral"]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Ensure that the new instance of the peripheral cannot be used in a way"]
# [doc = r" that may race with any existing instances, for example by only"]
# [doc = r" accessing read-only or write-only registers, or by consuming the"]
# [doc = r" original peripheral and using critical sections to coordinate"]
# [doc = r" access between multiple new instances."]
# [doc = r""]
# [doc = r" Additionally, other software such as HALs may rely on only one"]
# [doc = r" peripheral instance existing to ensure memory safety; ensure"]
# [doc = r" no stolen instances are passed to such software."]
pub unsafe fn steal () -> Self { Self { _marker : PhantomData } } } impl Deref for CPUSS { type Target = cpuss :: RegisterBlock ; # [inline (always)]
fn deref (& self) -> & Self :: Target { unsafe { & * Self :: PTR } } } impl core :: fmt :: Debug for CPUSS { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("CPUSS") . finish () } } # [doc = "CPUSSMMR"]
pub mod cpuss { # [doc = r"Register block"]
# [repr (C)]
pub struct RegisterBlock { _reserved0 : [u8 ; 0x10e0]
, # [doc = "0x10e0 - Event Mode"]
pub evt_mode : EVT_MODE , _reserved1 : [u8 ; 0x18]
, # [doc = "0x10fc - Module Description"]
pub desc : DESC , # [doc = "0x1100 - Interrupt index"]
pub int_group0_iidx : INT_GROUP0_IIDX , _reserved3 : [u8 ; 0x04]
, # [doc = "0x1108 - Interrupt mask"]
pub int_group0_imask : INT_GROUP0_IMASK , _reserved4 : [u8 ; 0x04]
, # [doc = "0x1110 - Raw interrupt status"]
pub int_group0_ris : INT_GROUP0_RIS , _reserved5 : [u8 ; 0x04]
, # [doc = "0x1118 - Masked interrupt status"]
pub int_group0_mis : INT_GROUP0_MIS , _reserved6 : [u8 ; 0x04]
, # [doc = "0x1120 - Interrupt set"]
pub int_group0_iset : INT_GROUP0_ISET , _reserved7 : [u8 ; 0x04]
, # [doc = "0x1128 - Interrupt clear"]
pub int_group0_iclr : INT_GROUP0_ICLR , _reserved8 : [u8 ; 0x04]
, # [doc = "0x1130 - Interrupt index"]
pub int_group1_iidx : INT_GROUP1_IIDX , _reserved9 : [u8 ; 0x04]
, # [doc = "0x1138 - Interrupt mask"]
pub int_group1_imask : INT_GROUP1_IMASK , _reserved10 : [u8 ; 0x04]
, # [doc = "0x1140 - Raw interrupt status"]
pub int_group1_ris : INT_GROUP1_RIS , _reserved11 : [u8 ; 0x04]
, # [doc = "0x1148 - Masked interrupt status"]
pub int_group1_mis : INT_GROUP1_MIS , _reserved12 : [u8 ; 0x04]
, # [doc = "0x1150 - Interrupt set"]
pub int_group1_iset : INT_GROUP1_ISET , _reserved13 : [u8 ; 0x04]
, # [doc = "0x1158 - Interrupt clear"]
pub int_group1_iclr : INT_GROUP1_ICLR , _reserved14 : [u8 ; 0x01a4]
, # [doc = "0x1300 - Prefetch/Cache control"]
pub ctl : CTL , } # [doc = "EVT_MODE (r) register accessor: Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@evt_mode`]
module"]
pub type EVT_MODE = crate :: Reg < evt_mode :: EVT_MODE_SPEC > ; # [doc = "Event Mode"]
pub mod evt_mode { # [doc = "Register `EVT_MODE` reader"]
pub type R = crate :: R < EVT_MODE_SPEC > ; # [doc = "Field `EVT_MODE_INT_CFG` reader - Event line mode select"]
pub type EVT_MODE_INT_CFG_R = crate :: FieldReader < EVT_MODE_INT_CFG_A > ; # [doc = "Event line mode select\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_INT_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_INT_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_INT_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_INT_CFG_HARDWARE = 2 , } impl From < EVT_MODE_INT_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_INT_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_INT_CFG_A { type Ux = u8 ; } impl EVT_MODE_INT_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_INT_CFG_A > { match self . bits { 0 => Some (EVT_MODE_INT_CFG_A :: EVT_MODE_INT_CFG_DISABLE) , 1 => Some (EVT_MODE_INT_CFG_A :: EVT_MODE_INT_CFG_SOFTWARE) , 2 => Some (EVT_MODE_INT_CFG_A :: EVT_MODE_INT_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_int_cfg_disable (& self) -> bool { * self == EVT_MODE_INT_CFG_A :: EVT_MODE_INT_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_int_cfg_software (& self) -> bool { * self == EVT_MODE_INT_CFG_A :: EVT_MODE_INT_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_int_cfg_hardware (& self) -> bool { * self == EVT_MODE_INT_CFG_A :: EVT_MODE_INT_CFG_HARDWARE } } impl R { # [doc = "Bits 0:1 - Event line mode select"]
# [inline (always)]
pub fn evt_mode_int_cfg (& self) -> EVT_MODE_INT_CFG_R { EVT_MODE_INT_CFG_R :: new ((self . bits & 3) as u8) } } # [doc = "Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct EVT_MODE_SPEC ; impl crate :: RegisterSpec for EVT_MODE_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`evt_mode::R`](R) reader structure"]
impl crate :: Readable for EVT_MODE_SPEC { } # [doc = "`reset()` method sets EVT_MODE to value 0"]
impl crate :: Resettable for EVT_MODE_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DESC (r) register accessor: Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@desc`]
module"]
pub type DESC = crate :: Reg < desc :: DESC_SPEC > ; # [doc = "Module Description"]
pub mod desc { # [doc = "Register `DESC` reader"]
pub type R = crate :: R < DESC_SPEC > ; # [doc = "Field `DESC_MINREV` reader - Minor rev of the IP"]
pub type DESC_MINREV_R = crate :: FieldReader ; # [doc = "Field `DESC_MAJREV` reader - Major rev of the IP"]
pub type DESC_MAJREV_R = crate :: FieldReader ; # [doc = "Field `DESC_FEATUREVER` reader - Feature Set for the module *instance*"]
pub type DESC_FEATUREVER_R = crate :: FieldReader ; # [doc = "Field `DESC_MODULEID` reader - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
pub type DESC_MODULEID_R = crate :: FieldReader < u16 > ; impl R { # [doc = "Bits 0:3 - Minor rev of the IP"]
# [inline (always)]
pub fn desc_minrev (& self) -> DESC_MINREV_R { DESC_MINREV_R :: new ((self . bits & 0x0f) as u8) } # [doc = "Bits 4:7 - Major rev of the IP"]
# [inline (always)]
pub fn desc_majrev (& self) -> DESC_MAJREV_R { DESC_MAJREV_R :: new (((self . bits >> 4) & 0x0f) as u8) } # [doc = "Bits 12:15 - Feature Set for the module *instance*"]
# [inline (always)]
pub fn desc_featurever (& self) -> DESC_FEATUREVER_R { DESC_FEATUREVER_R :: new (((self . bits >> 12) & 0x0f) as u8) } # [doc = "Bits 16:31 - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
# [inline (always)]
pub fn desc_moduleid (& self) -> DESC_MODULEID_R { DESC_MODULEID_R :: new (((self . bits >> 16) & 0xffff) as u16) } } # [doc = "Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DESC_SPEC ; impl crate :: RegisterSpec for DESC_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`desc::R`](R) reader structure"]
impl crate :: Readable for DESC_SPEC { } # [doc = "`reset()` method sets DESC to value 0"]
impl crate :: Resettable for DESC_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_GROUP0_IIDX (r) register accessor: Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_group0_iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_group0_iidx`]
module"]
pub type INT_GROUP0_IIDX = crate :: Reg < int_group0_iidx :: INT_GROUP0_IIDX_SPEC > ; # [doc = "Interrupt index"]
pub mod int_group0_iidx { # [doc = "Register `INT_GROUP0_IIDX` reader"]
pub type R = crate :: R < INT_GROUP0_IIDX_SPEC > ; # [doc = "Field `INT_GROUP0_IIDX_STAT` reader - Interrupt index status"]
pub type INT_GROUP0_IIDX_STAT_R = crate :: FieldReader < INT_GROUP0_IIDX_STAT_A > ; # [doc = "Interrupt index status\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum INT_GROUP0_IIDX_STAT_A { # [doc = "0: NO_INTR"]
INT_GROUP0_IIDX_STAT_NO_INTR = 0 , # [doc = "1: INT0"]
INT_GROUP0_IIDX_STAT_INT0 = 1 , # [doc = "2: INT1"]
INT_GROUP0_IIDX_STAT_INT1 = 2 , # [doc = "3: INT2"]
INT_GROUP0_IIDX_STAT_INT2 = 3 , # [doc = "4: INT3"]
INT_GROUP0_IIDX_STAT_INT3 = 4 , # [doc = "5: INT4"]
INT_GROUP0_IIDX_STAT_INT4 = 5 , # [doc = "6: INT5"]
INT_GROUP0_IIDX_STAT_INT5 = 6 , # [doc = "7: INT6"]
INT_GROUP0_IIDX_STAT_INT6 = 7 , # [doc = "8: INT7"]
INT_GROUP0_IIDX_STAT_INT7 = 8 , } impl From < INT_GROUP0_IIDX_STAT_A > for u8 { # [inline (always)]
fn from (variant : INT_GROUP0_IIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for INT_GROUP0_IIDX_STAT_A { type Ux = u8 ; } impl INT_GROUP0_IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < INT_GROUP0_IIDX_STAT_A > { match self . bits { 0 => Some (INT_GROUP0_IIDX_STAT_A :: INT_GROUP0_IIDX_STAT_NO_INTR) , 1 => Some (INT_GROUP0_IIDX_STAT_A :: INT_GROUP0_IIDX_STAT_INT0) , 2 => Some (INT_GROUP0_IIDX_STAT_A :: INT_GROUP0_IIDX_STAT_INT1) , 3 => Some (INT_GROUP0_IIDX_STAT_A :: INT_GROUP0_IIDX_STAT_INT2) , 4 => Some (INT_GROUP0_IIDX_STAT_A :: INT_GROUP0_IIDX_STAT_INT3) , 5 => Some (INT_GROUP0_IIDX_STAT_A :: INT_GROUP0_IIDX_STAT_INT4) , 6 => Some (INT_GROUP0_IIDX_STAT_A :: INT_GROUP0_IIDX_STAT_INT5) , 7 => Some (INT_GROUP0_IIDX_STAT_A :: INT_GROUP0_IIDX_STAT_INT6) , 8 => Some (INT_GROUP0_IIDX_STAT_A :: INT_GROUP0_IIDX_STAT_INT7) , _ => None , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_int_group0_iidx_stat_no_intr (& self) -> bool { * self == INT_GROUP0_IIDX_STAT_A :: INT_GROUP0_IIDX_STAT_NO_INTR } # [doc = "INT0"]
# [inline (always)]
pub fn is_int_group0_iidx_stat_int0 (& self) -> bool { * self == INT_GROUP0_IIDX_STAT_A :: INT_GROUP0_IIDX_STAT_INT0 } # [doc = "INT1"]
# [inline (always)]
pub fn is_int_group0_iidx_stat_int1 (& self) -> bool { * self == INT_GROUP0_IIDX_STAT_A :: INT_GROUP0_IIDX_STAT_INT1 } # [doc = "INT2"]
# [inline (always)]
pub fn is_int_group0_iidx_stat_int2 (& self) -> bool { * self == INT_GROUP0_IIDX_STAT_A :: INT_GROUP0_IIDX_STAT_INT2 } # [doc = "INT3"]
# [inline (always)]
pub fn is_int_group0_iidx_stat_int3 (& self) -> bool { * self == INT_GROUP0_IIDX_STAT_A :: INT_GROUP0_IIDX_STAT_INT3 } # [doc = "INT4"]
# [inline (always)]
pub fn is_int_group0_iidx_stat_int4 (& self) -> bool { * self == INT_GROUP0_IIDX_STAT_A :: INT_GROUP0_IIDX_STAT_INT4 } # [doc = "INT5"]
# [inline (always)]
pub fn is_int_group0_iidx_stat_int5 (& self) -> bool { * self == INT_GROUP0_IIDX_STAT_A :: INT_GROUP0_IIDX_STAT_INT5 } # [doc = "INT6"]
# [inline (always)]
pub fn is_int_group0_iidx_stat_int6 (& self) -> bool { * self == INT_GROUP0_IIDX_STAT_A :: INT_GROUP0_IIDX_STAT_INT6 } # [doc = "INT7"]
# [inline (always)]
pub fn is_int_group0_iidx_stat_int7 (& self) -> bool { * self == INT_GROUP0_IIDX_STAT_A :: INT_GROUP0_IIDX_STAT_INT7 } } impl R { # [doc = "Bits 0:7 - Interrupt index status"]
# [inline (always)]
pub fn int_group0_iidx_stat (& self) -> INT_GROUP0_IIDX_STAT_R { INT_GROUP0_IIDX_STAT_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_group0_iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_GROUP0_IIDX_SPEC ; impl crate :: RegisterSpec for INT_GROUP0_IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_group0_iidx::R`](R) reader structure"]
impl crate :: Readable for INT_GROUP0_IIDX_SPEC { } # [doc = "`reset()` method sets INT_GROUP0_IIDX to value 0"]
impl crate :: Resettable for INT_GROUP0_IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_GROUP0_IMASK (r) register accessor: Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_group0_imask::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_group0_imask`]
module"]
pub type INT_GROUP0_IMASK = crate :: Reg < int_group0_imask :: INT_GROUP0_IMASK_SPEC > ; # [doc = "Interrupt mask"]
pub mod int_group0_imask { # [doc = "Register `INT_GROUP0_IMASK` reader"]
pub type R = crate :: R < INT_GROUP0_IMASK_SPEC > ; # [doc = "Field `INT_GROUP0_IMASK_INT` reader - Masks the corresponding interrupt"]
pub type INT_GROUP0_IMASK_INT_R = crate :: FieldReader < INT_GROUP0_IMASK_INT_A > ; # [doc = "Masks the corresponding interrupt\n\nValue on reset: 255"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum INT_GROUP0_IMASK_INT_A { # [doc = "0: CLR"]
INT_GROUP0_IMASK_INT_CLR = 0 , # [doc = "1: SET"]
INT_GROUP0_IMASK_INT_SET = 1 , } impl From < INT_GROUP0_IMASK_INT_A > for u8 { # [inline (always)]
fn from (variant : INT_GROUP0_IMASK_INT_A) -> Self { variant as _ } } impl crate :: FieldSpec for INT_GROUP0_IMASK_INT_A { type Ux = u8 ; } impl INT_GROUP0_IMASK_INT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < INT_GROUP0_IMASK_INT_A > { match self . bits { 0 => Some (INT_GROUP0_IMASK_INT_A :: INT_GROUP0_IMASK_INT_CLR) , 1 => Some (INT_GROUP0_IMASK_INT_A :: INT_GROUP0_IMASK_INT_SET) , _ => None , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_group0_imask_int_clr (& self) -> bool { * self == INT_GROUP0_IMASK_INT_A :: INT_GROUP0_IMASK_INT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_group0_imask_int_set (& self) -> bool { * self == INT_GROUP0_IMASK_INT_A :: INT_GROUP0_IMASK_INT_SET } } impl R { # [doc = "Bits 0:7 - Masks the corresponding interrupt"]
# [inline (always)]
pub fn int_group0_imask_int (& self) -> INT_GROUP0_IMASK_INT_R { INT_GROUP0_IMASK_INT_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_group0_imask::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_GROUP0_IMASK_SPEC ; impl crate :: RegisterSpec for INT_GROUP0_IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_group0_imask::R`](R) reader structure"]
impl crate :: Readable for INT_GROUP0_IMASK_SPEC { } # [doc = "`reset()` method sets INT_GROUP0_IMASK to value 0xff"]
impl crate :: Resettable for INT_GROUP0_IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0xff ; } } # [doc = "INT_GROUP0_RIS (r) register accessor: Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_group0_ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_group0_ris`]
module"]
pub type INT_GROUP0_RIS = crate :: Reg < int_group0_ris :: INT_GROUP0_RIS_SPEC > ; # [doc = "Raw interrupt status"]
pub mod int_group0_ris { # [doc = "Register `INT_GROUP0_RIS` reader"]
pub type R = crate :: R < INT_GROUP0_RIS_SPEC > ; # [doc = "Field `INT_GROUP0_RIS_INT` reader - Raw interrupt status for INT"]
pub type INT_GROUP0_RIS_INT_R = crate :: FieldReader < INT_GROUP0_RIS_INT_A > ; # [doc = "Raw interrupt status for INT\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum INT_GROUP0_RIS_INT_A { # [doc = "0: CLR"]
INT_GROUP0_RIS_INT_CLR = 0 , # [doc = "1: SET"]
INT_GROUP0_RIS_INT_SET = 1 , } impl From < INT_GROUP0_RIS_INT_A > for u8 { # [inline (always)]
fn from (variant : INT_GROUP0_RIS_INT_A) -> Self { variant as _ } } impl crate :: FieldSpec for INT_GROUP0_RIS_INT_A { type Ux = u8 ; } impl INT_GROUP0_RIS_INT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < INT_GROUP0_RIS_INT_A > { match self . bits { 0 => Some (INT_GROUP0_RIS_INT_A :: INT_GROUP0_RIS_INT_CLR) , 1 => Some (INT_GROUP0_RIS_INT_A :: INT_GROUP0_RIS_INT_SET) , _ => None , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_group0_ris_int_clr (& self) -> bool { * self == INT_GROUP0_RIS_INT_A :: INT_GROUP0_RIS_INT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_group0_ris_int_set (& self) -> bool { * self == INT_GROUP0_RIS_INT_A :: INT_GROUP0_RIS_INT_SET } } impl R { # [doc = "Bits 0:7 - Raw interrupt status for INT"]
# [inline (always)]
pub fn int_group0_ris_int (& self) -> INT_GROUP0_RIS_INT_R { INT_GROUP0_RIS_INT_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_group0_ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_GROUP0_RIS_SPEC ; impl crate :: RegisterSpec for INT_GROUP0_RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_group0_ris::R`](R) reader structure"]
impl crate :: Readable for INT_GROUP0_RIS_SPEC { } # [doc = "`reset()` method sets INT_GROUP0_RIS to value 0"]
impl crate :: Resettable for INT_GROUP0_RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_GROUP0_MIS (r) register accessor: Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_group0_mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_group0_mis`]
module"]
pub type INT_GROUP0_MIS = crate :: Reg < int_group0_mis :: INT_GROUP0_MIS_SPEC > ; # [doc = "Masked interrupt status"]
pub mod int_group0_mis { # [doc = "Register `INT_GROUP0_MIS` reader"]
pub type R = crate :: R < INT_GROUP0_MIS_SPEC > ; # [doc = "Field `INT_GROUP0_MIS_INT` reader - Masked interrupt status for INT0"]
pub type INT_GROUP0_MIS_INT_R = crate :: BitReader < INT_GROUP0_MIS_INT_A > ; # [doc = "Masked interrupt status for INT0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_GROUP0_MIS_INT_A { # [doc = "0: CLR"]
INT_GROUP0_MIS_INT_CLR = 0 , # [doc = "1: SET"]
INT_GROUP0_MIS_INT_SET = 1 , } impl From < INT_GROUP0_MIS_INT_A > for bool { # [inline (always)]
fn from (variant : INT_GROUP0_MIS_INT_A) -> Self { variant as u8 != 0 } } impl INT_GROUP0_MIS_INT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_GROUP0_MIS_INT_A { match self . bits { false => INT_GROUP0_MIS_INT_A :: INT_GROUP0_MIS_INT_CLR , true => INT_GROUP0_MIS_INT_A :: INT_GROUP0_MIS_INT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_group0_mis_int_clr (& self) -> bool { * self == INT_GROUP0_MIS_INT_A :: INT_GROUP0_MIS_INT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_group0_mis_int_set (& self) -> bool { * self == INT_GROUP0_MIS_INT_A :: INT_GROUP0_MIS_INT_SET } } impl R { # [doc = "Bit 0 - Masked interrupt status for INT0"]
# [inline (always)]
pub fn int_group0_mis_int (& self) -> INT_GROUP0_MIS_INT_R { INT_GROUP0_MIS_INT_R :: new ((self . bits & 1) != 0) } } # [doc = "Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_group0_mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_GROUP0_MIS_SPEC ; impl crate :: RegisterSpec for INT_GROUP0_MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_group0_mis::R`](R) reader structure"]
impl crate :: Readable for INT_GROUP0_MIS_SPEC { } # [doc = "`reset()` method sets INT_GROUP0_MIS to value 0"]
impl crate :: Resettable for INT_GROUP0_MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_GROUP0_ISET (w) register accessor: Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_group0_iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_group0_iset`]
module"]
pub type INT_GROUP0_ISET = crate :: Reg < int_group0_iset :: INT_GROUP0_ISET_SPEC > ; # [doc = "Interrupt set"]
pub mod int_group0_iset { # [doc = "Register `INT_GROUP0_ISET` writer"]
pub type W = crate :: W < INT_GROUP0_ISET_SPEC > ; # [doc = "Sets INT in RIS register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_GROUP0_ISET_INT_AW { # [doc = "0: NO_EFFECT"]
INT_GROUP0_ISET_INT_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_GROUP0_ISET_INT_SET = 1 , } impl From < INT_GROUP0_ISET_INT_AW > for bool { # [inline (always)]
fn from (variant : INT_GROUP0_ISET_INT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_GROUP0_ISET_INT` writer - Sets INT in RIS register"]
pub type INT_GROUP0_ISET_INT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_GROUP0_ISET_INT_AW > ; impl < 'a , REG , const O : u8 > INT_GROUP0_ISET_INT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_group0_iset_int_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_GROUP0_ISET_INT_AW :: INT_GROUP0_ISET_INT_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_group0_iset_int_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_GROUP0_ISET_INT_AW :: INT_GROUP0_ISET_INT_SET) } } impl W { # [doc = "Bit 0 - Sets INT in RIS register"]
# [inline (always)]
# [must_use]
pub fn int_group0_iset_int (& mut self) -> INT_GROUP0_ISET_INT_W < INT_GROUP0_ISET_SPEC , 0 > { INT_GROUP0_ISET_INT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_group0_iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_GROUP0_ISET_SPEC ; impl crate :: RegisterSpec for INT_GROUP0_ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_group0_iset::W`](W) writer structure"]
impl crate :: Writable for INT_GROUP0_ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_GROUP0_ISET to value 0"]
impl crate :: Resettable for INT_GROUP0_ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_GROUP0_ICLR (w) register accessor: Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_group0_iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_group0_iclr`]
module"]
pub type INT_GROUP0_ICLR = crate :: Reg < int_group0_iclr :: INT_GROUP0_ICLR_SPEC > ; # [doc = "Interrupt clear"]
pub mod int_group0_iclr { # [doc = "Register `INT_GROUP0_ICLR` writer"]
pub type W = crate :: W < INT_GROUP0_ICLR_SPEC > ; # [doc = "Clears INT in RIS register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_GROUP0_ICLR_INT_AW { # [doc = "0: NO_EFFECT"]
INT_GROUP0_ICLR_INT_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_GROUP0_ICLR_INT_CLR = 1 , } impl From < INT_GROUP0_ICLR_INT_AW > for bool { # [inline (always)]
fn from (variant : INT_GROUP0_ICLR_INT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_GROUP0_ICLR_INT` writer - Clears INT in RIS register"]
pub type INT_GROUP0_ICLR_INT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_GROUP0_ICLR_INT_AW > ; impl < 'a , REG , const O : u8 > INT_GROUP0_ICLR_INT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_group0_iclr_int_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_GROUP0_ICLR_INT_AW :: INT_GROUP0_ICLR_INT_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_group0_iclr_int_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_GROUP0_ICLR_INT_AW :: INT_GROUP0_ICLR_INT_CLR) } } impl W { # [doc = "Bit 0 - Clears INT in RIS register"]
# [inline (always)]
# [must_use]
pub fn int_group0_iclr_int (& mut self) -> INT_GROUP0_ICLR_INT_W < INT_GROUP0_ICLR_SPEC , 0 > { INT_GROUP0_ICLR_INT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_group0_iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_GROUP0_ICLR_SPEC ; impl crate :: RegisterSpec for INT_GROUP0_ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_group0_iclr::W`](W) writer structure"]
impl crate :: Writable for INT_GROUP0_ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_GROUP0_ICLR to value 0"]
impl crate :: Resettable for INT_GROUP0_ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_GROUP1_IIDX (r) register accessor: Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_group1_iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_group1_iidx`]
module"]
pub type INT_GROUP1_IIDX = crate :: Reg < int_group1_iidx :: INT_GROUP1_IIDX_SPEC > ; # [doc = "Interrupt index"]
pub mod int_group1_iidx { # [doc = "Register `INT_GROUP1_IIDX` reader"]
pub type R = crate :: R < INT_GROUP1_IIDX_SPEC > ; # [doc = "Field `INT_GROUP1_IIDX_STAT` reader - Interrupt index status"]
pub type INT_GROUP1_IIDX_STAT_R = crate :: FieldReader < INT_GROUP1_IIDX_STAT_A > ; # [doc = "Interrupt index status\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum INT_GROUP1_IIDX_STAT_A { # [doc = "0: NO_INTR"]
INT_GROUP1_IIDX_STAT_NO_INTR = 0 , # [doc = "1: INT0"]
INT_GROUP1_IIDX_STAT_INT0 = 1 , # [doc = "2: INT1"]
INT_GROUP1_IIDX_STAT_INT1 = 2 , # [doc = "3: INT2"]
INT_GROUP1_IIDX_STAT_INT2 = 3 , # [doc = "4: INT3"]
INT_GROUP1_IIDX_STAT_INT3 = 4 , # [doc = "5: INT4"]
INT_GROUP1_IIDX_STAT_INT4 = 5 , # [doc = "6: INT5"]
INT_GROUP1_IIDX_STAT_INT5 = 6 , # [doc = "7: INT6"]
INT_GROUP1_IIDX_STAT_INT6 = 7 , # [doc = "8: INT7"]
INT_GROUP1_IIDX_STAT_INT7 = 8 , } impl From < INT_GROUP1_IIDX_STAT_A > for u8 { # [inline (always)]
fn from (variant : INT_GROUP1_IIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for INT_GROUP1_IIDX_STAT_A { type Ux = u8 ; } impl INT_GROUP1_IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < INT_GROUP1_IIDX_STAT_A > { match self . bits { 0 => Some (INT_GROUP1_IIDX_STAT_A :: INT_GROUP1_IIDX_STAT_NO_INTR) , 1 => Some (INT_GROUP1_IIDX_STAT_A :: INT_GROUP1_IIDX_STAT_INT0) , 2 => Some (INT_GROUP1_IIDX_STAT_A :: INT_GROUP1_IIDX_STAT_INT1) , 3 => Some (INT_GROUP1_IIDX_STAT_A :: INT_GROUP1_IIDX_STAT_INT2) , 4 => Some (INT_GROUP1_IIDX_STAT_A :: INT_GROUP1_IIDX_STAT_INT3) , 5 => Some (INT_GROUP1_IIDX_STAT_A :: INT_GROUP1_IIDX_STAT_INT4) , 6 => Some (INT_GROUP1_IIDX_STAT_A :: INT_GROUP1_IIDX_STAT_INT5) , 7 => Some (INT_GROUP1_IIDX_STAT_A :: INT_GROUP1_IIDX_STAT_INT6) , 8 => Some (INT_GROUP1_IIDX_STAT_A :: INT_GROUP1_IIDX_STAT_INT7) , _ => None , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_int_group1_iidx_stat_no_intr (& self) -> bool { * self == INT_GROUP1_IIDX_STAT_A :: INT_GROUP1_IIDX_STAT_NO_INTR } # [doc = "INT0"]
# [inline (always)]
pub fn is_int_group1_iidx_stat_int0 (& self) -> bool { * self == INT_GROUP1_IIDX_STAT_A :: INT_GROUP1_IIDX_STAT_INT0 } # [doc = "INT1"]
# [inline (always)]
pub fn is_int_group1_iidx_stat_int1 (& self) -> bool { * self == INT_GROUP1_IIDX_STAT_A :: INT_GROUP1_IIDX_STAT_INT1 } # [doc = "INT2"]
# [inline (always)]
pub fn is_int_group1_iidx_stat_int2 (& self) -> bool { * self == INT_GROUP1_IIDX_STAT_A :: INT_GROUP1_IIDX_STAT_INT2 } # [doc = "INT3"]
# [inline (always)]
pub fn is_int_group1_iidx_stat_int3 (& self) -> bool { * self == INT_GROUP1_IIDX_STAT_A :: INT_GROUP1_IIDX_STAT_INT3 } # [doc = "INT4"]
# [inline (always)]
pub fn is_int_group1_iidx_stat_int4 (& self) -> bool { * self == INT_GROUP1_IIDX_STAT_A :: INT_GROUP1_IIDX_STAT_INT4 } # [doc = "INT5"]
# [inline (always)]
pub fn is_int_group1_iidx_stat_int5 (& self) -> bool { * self == INT_GROUP1_IIDX_STAT_A :: INT_GROUP1_IIDX_STAT_INT5 } # [doc = "INT6"]
# [inline (always)]
pub fn is_int_group1_iidx_stat_int6 (& self) -> bool { * self == INT_GROUP1_IIDX_STAT_A :: INT_GROUP1_IIDX_STAT_INT6 } # [doc = "INT7"]
# [inline (always)]
pub fn is_int_group1_iidx_stat_int7 (& self) -> bool { * self == INT_GROUP1_IIDX_STAT_A :: INT_GROUP1_IIDX_STAT_INT7 } } impl R { # [doc = "Bits 0:7 - Interrupt index status"]
# [inline (always)]
pub fn int_group1_iidx_stat (& self) -> INT_GROUP1_IIDX_STAT_R { INT_GROUP1_IIDX_STAT_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_group1_iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_GROUP1_IIDX_SPEC ; impl crate :: RegisterSpec for INT_GROUP1_IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_group1_iidx::R`](R) reader structure"]
impl crate :: Readable for INT_GROUP1_IIDX_SPEC { } # [doc = "`reset()` method sets INT_GROUP1_IIDX to value 0"]
impl crate :: Resettable for INT_GROUP1_IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_GROUP1_IMASK (r) register accessor: Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_group1_imask::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_group1_imask`]
module"]
pub type INT_GROUP1_IMASK = crate :: Reg < int_group1_imask :: INT_GROUP1_IMASK_SPEC > ; # [doc = "Interrupt mask"]
pub mod int_group1_imask { # [doc = "Register `INT_GROUP1_IMASK` reader"]
pub type R = crate :: R < INT_GROUP1_IMASK_SPEC > ; # [doc = "Field `INT_GROUP1_IMASK_INT` reader - Masks the corresponding interrupt"]
pub type INT_GROUP1_IMASK_INT_R = crate :: FieldReader < INT_GROUP1_IMASK_INT_A > ; # [doc = "Masks the corresponding interrupt\n\nValue on reset: 255"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum INT_GROUP1_IMASK_INT_A { # [doc = "0: CLR"]
INT_GROUP1_IMASK_INT_CLR = 0 , # [doc = "1: SET"]
INT_GROUP1_IMASK_INT_SET = 1 , } impl From < INT_GROUP1_IMASK_INT_A > for u8 { # [inline (always)]
fn from (variant : INT_GROUP1_IMASK_INT_A) -> Self { variant as _ } } impl crate :: FieldSpec for INT_GROUP1_IMASK_INT_A { type Ux = u8 ; } impl INT_GROUP1_IMASK_INT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < INT_GROUP1_IMASK_INT_A > { match self . bits { 0 => Some (INT_GROUP1_IMASK_INT_A :: INT_GROUP1_IMASK_INT_CLR) , 1 => Some (INT_GROUP1_IMASK_INT_A :: INT_GROUP1_IMASK_INT_SET) , _ => None , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_group1_imask_int_clr (& self) -> bool { * self == INT_GROUP1_IMASK_INT_A :: INT_GROUP1_IMASK_INT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_group1_imask_int_set (& self) -> bool { * self == INT_GROUP1_IMASK_INT_A :: INT_GROUP1_IMASK_INT_SET } } impl R { # [doc = "Bits 0:7 - Masks the corresponding interrupt"]
# [inline (always)]
pub fn int_group1_imask_int (& self) -> INT_GROUP1_IMASK_INT_R { INT_GROUP1_IMASK_INT_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_group1_imask::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_GROUP1_IMASK_SPEC ; impl crate :: RegisterSpec for INT_GROUP1_IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_group1_imask::R`](R) reader structure"]
impl crate :: Readable for INT_GROUP1_IMASK_SPEC { } # [doc = "`reset()` method sets INT_GROUP1_IMASK to value 0xff"]
impl crate :: Resettable for INT_GROUP1_IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0xff ; } } # [doc = "INT_GROUP1_RIS (r) register accessor: Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_group1_ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_group1_ris`]
module"]
pub type INT_GROUP1_RIS = crate :: Reg < int_group1_ris :: INT_GROUP1_RIS_SPEC > ; # [doc = "Raw interrupt status"]
pub mod int_group1_ris { # [doc = "Register `INT_GROUP1_RIS` reader"]
pub type R = crate :: R < INT_GROUP1_RIS_SPEC > ; # [doc = "Field `INT_GROUP1_RIS_INT` reader - Raw interrupt status for INT"]
pub type INT_GROUP1_RIS_INT_R = crate :: BitReader < INT_GROUP1_RIS_INT_A > ; # [doc = "Raw interrupt status for INT\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_GROUP1_RIS_INT_A { # [doc = "0: CLR"]
INT_GROUP1_RIS_INT_CLR = 0 , # [doc = "1: SET"]
INT_GROUP1_RIS_INT_SET = 1 , } impl From < INT_GROUP1_RIS_INT_A > for bool { # [inline (always)]
fn from (variant : INT_GROUP1_RIS_INT_A) -> Self { variant as u8 != 0 } } impl INT_GROUP1_RIS_INT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_GROUP1_RIS_INT_A { match self . bits { false => INT_GROUP1_RIS_INT_A :: INT_GROUP1_RIS_INT_CLR , true => INT_GROUP1_RIS_INT_A :: INT_GROUP1_RIS_INT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_group1_ris_int_clr (& self) -> bool { * self == INT_GROUP1_RIS_INT_A :: INT_GROUP1_RIS_INT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_group1_ris_int_set (& self) -> bool { * self == INT_GROUP1_RIS_INT_A :: INT_GROUP1_RIS_INT_SET } } impl R { # [doc = "Bit 0 - Raw interrupt status for INT"]
# [inline (always)]
pub fn int_group1_ris_int (& self) -> INT_GROUP1_RIS_INT_R { INT_GROUP1_RIS_INT_R :: new ((self . bits & 1) != 0) } } # [doc = "Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_group1_ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_GROUP1_RIS_SPEC ; impl crate :: RegisterSpec for INT_GROUP1_RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_group1_ris::R`](R) reader structure"]
impl crate :: Readable for INT_GROUP1_RIS_SPEC { } # [doc = "`reset()` method sets INT_GROUP1_RIS to value 0"]
impl crate :: Resettable for INT_GROUP1_RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_GROUP1_MIS (r) register accessor: Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_group1_mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_group1_mis`]
module"]
pub type INT_GROUP1_MIS = crate :: Reg < int_group1_mis :: INT_GROUP1_MIS_SPEC > ; # [doc = "Masked interrupt status"]
pub mod int_group1_mis { # [doc = "Register `INT_GROUP1_MIS` reader"]
pub type R = crate :: R < INT_GROUP1_MIS_SPEC > ; # [doc = "Field `INT_GROUP1_MIS_INT` reader - Masked interrupt status for INT0"]
pub type INT_GROUP1_MIS_INT_R = crate :: BitReader < INT_GROUP1_MIS_INT_A > ; # [doc = "Masked interrupt status for INT0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_GROUP1_MIS_INT_A { # [doc = "0: CLR"]
INT_GROUP1_MIS_INT_CLR = 0 , # [doc = "1: SET"]
INT_GROUP1_MIS_INT_SET = 1 , } impl From < INT_GROUP1_MIS_INT_A > for bool { # [inline (always)]
fn from (variant : INT_GROUP1_MIS_INT_A) -> Self { variant as u8 != 0 } } impl INT_GROUP1_MIS_INT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_GROUP1_MIS_INT_A { match self . bits { false => INT_GROUP1_MIS_INT_A :: INT_GROUP1_MIS_INT_CLR , true => INT_GROUP1_MIS_INT_A :: INT_GROUP1_MIS_INT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_group1_mis_int_clr (& self) -> bool { * self == INT_GROUP1_MIS_INT_A :: INT_GROUP1_MIS_INT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_group1_mis_int_set (& self) -> bool { * self == INT_GROUP1_MIS_INT_A :: INT_GROUP1_MIS_INT_SET } } impl R { # [doc = "Bit 0 - Masked interrupt status for INT0"]
# [inline (always)]
pub fn int_group1_mis_int (& self) -> INT_GROUP1_MIS_INT_R { INT_GROUP1_MIS_INT_R :: new ((self . bits & 1) != 0) } } # [doc = "Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_group1_mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_GROUP1_MIS_SPEC ; impl crate :: RegisterSpec for INT_GROUP1_MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_group1_mis::R`](R) reader structure"]
impl crate :: Readable for INT_GROUP1_MIS_SPEC { } # [doc = "`reset()` method sets INT_GROUP1_MIS to value 0"]
impl crate :: Resettable for INT_GROUP1_MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_GROUP1_ISET (w) register accessor: Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_group1_iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_group1_iset`]
module"]
pub type INT_GROUP1_ISET = crate :: Reg < int_group1_iset :: INT_GROUP1_ISET_SPEC > ; # [doc = "Interrupt set"]
pub mod int_group1_iset { # [doc = "Register `INT_GROUP1_ISET` writer"]
pub type W = crate :: W < INT_GROUP1_ISET_SPEC > ; # [doc = "Sets INT in RIS register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_GROUP1_ISET_INT_AW { # [doc = "0: NO_EFFECT"]
INT_GROUP1_ISET_INT_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_GROUP1_ISET_INT_SET = 1 , } impl From < INT_GROUP1_ISET_INT_AW > for bool { # [inline (always)]
fn from (variant : INT_GROUP1_ISET_INT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_GROUP1_ISET_INT` writer - Sets INT in RIS register"]
pub type INT_GROUP1_ISET_INT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_GROUP1_ISET_INT_AW > ; impl < 'a , REG , const O : u8 > INT_GROUP1_ISET_INT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_group1_iset_int_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_GROUP1_ISET_INT_AW :: INT_GROUP1_ISET_INT_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_group1_iset_int_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_GROUP1_ISET_INT_AW :: INT_GROUP1_ISET_INT_SET) } } impl W { # [doc = "Bit 0 - Sets INT in RIS register"]
# [inline (always)]
# [must_use]
pub fn int_group1_iset_int (& mut self) -> INT_GROUP1_ISET_INT_W < INT_GROUP1_ISET_SPEC , 0 > { INT_GROUP1_ISET_INT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_group1_iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_GROUP1_ISET_SPEC ; impl crate :: RegisterSpec for INT_GROUP1_ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_group1_iset::W`](W) writer structure"]
impl crate :: Writable for INT_GROUP1_ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_GROUP1_ISET to value 0"]
impl crate :: Resettable for INT_GROUP1_ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_GROUP1_ICLR (w) register accessor: Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_group1_iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_group1_iclr`]
module"]
pub type INT_GROUP1_ICLR = crate :: Reg < int_group1_iclr :: INT_GROUP1_ICLR_SPEC > ; # [doc = "Interrupt clear"]
pub mod int_group1_iclr { # [doc = "Register `INT_GROUP1_ICLR` writer"]
pub type W = crate :: W < INT_GROUP1_ICLR_SPEC > ; # [doc = "Clears INT in RIS register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_GROUP1_ICLR_INT_AW { # [doc = "0: NO_EFFECT"]
INT_GROUP1_ICLR_INT_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_GROUP1_ICLR_INT_CLR = 1 , } impl From < INT_GROUP1_ICLR_INT_AW > for bool { # [inline (always)]
fn from (variant : INT_GROUP1_ICLR_INT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_GROUP1_ICLR_INT` writer - Clears INT in RIS register"]
pub type INT_GROUP1_ICLR_INT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_GROUP1_ICLR_INT_AW > ; impl < 'a , REG , const O : u8 > INT_GROUP1_ICLR_INT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_group1_iclr_int_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_GROUP1_ICLR_INT_AW :: INT_GROUP1_ICLR_INT_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_group1_iclr_int_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_GROUP1_ICLR_INT_AW :: INT_GROUP1_ICLR_INT_CLR) } } impl W { # [doc = "Bit 0 - Clears INT in RIS register"]
# [inline (always)]
# [must_use]
pub fn int_group1_iclr_int (& mut self) -> INT_GROUP1_ICLR_INT_W < INT_GROUP1_ICLR_SPEC , 0 > { INT_GROUP1_ICLR_INT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_group1_iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_GROUP1_ICLR_SPEC ; impl crate :: RegisterSpec for INT_GROUP1_ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_group1_iclr::W`](W) writer structure"]
impl crate :: Writable for INT_GROUP1_ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_GROUP1_ICLR to value 0"]
impl crate :: Resettable for INT_GROUP1_ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTL (rw) register accessor: Prefetch/Cache control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctl`]
module"]
pub type CTL = crate :: Reg < ctl :: CTL_SPEC > ; # [doc = "Prefetch/Cache control"]
pub mod ctl { # [doc = "Register `CTL` reader"]
pub type R = crate :: R < CTL_SPEC > ; # [doc = "Register `CTL` writer"]
pub type W = crate :: W < CTL_SPEC > ; # [doc = "Field `CTL_PREFETCH` reader - Used to enable/disable instruction prefetch to Flash."]
pub type CTL_PREFETCH_R = crate :: BitReader < CTL_PREFETCH_A > ; # [doc = "Used to enable/disable instruction prefetch to Flash.\n\nValue on reset: 1"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL_PREFETCH_A { # [doc = "0: DISABLE"]
CTL_PREFETCH_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL_PREFETCH_ENABLE = 1 , } impl From < CTL_PREFETCH_A > for bool { # [inline (always)]
fn from (variant : CTL_PREFETCH_A) -> Self { variant as u8 != 0 } } impl CTL_PREFETCH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL_PREFETCH_A { match self . bits { false => CTL_PREFETCH_A :: CTL_PREFETCH_DISABLE , true => CTL_PREFETCH_A :: CTL_PREFETCH_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl_prefetch_disable (& self) -> bool { * self == CTL_PREFETCH_A :: CTL_PREFETCH_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl_prefetch_enable (& self) -> bool { * self == CTL_PREFETCH_A :: CTL_PREFETCH_ENABLE } } # [doc = "Field `CTL_PREFETCH` writer - Used to enable/disable instruction prefetch to Flash."]
pub type CTL_PREFETCH_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL_PREFETCH_A > ; impl < 'a , REG , const O : u8 > CTL_PREFETCH_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl_prefetch_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL_PREFETCH_A :: CTL_PREFETCH_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl_prefetch_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL_PREFETCH_A :: CTL_PREFETCH_ENABLE) } } # [doc = "Field `CTL_ICACHE` reader - Used to enable/disable Instruction caching on flash access."]
pub type CTL_ICACHE_R = crate :: BitReader < CTL_ICACHE_A > ; # [doc = "Used to enable/disable Instruction caching on flash access.\n\nValue on reset: 1"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL_ICACHE_A { # [doc = "0: DISABLE"]
CTL_ICACHE_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL_ICACHE_ENABLE = 1 , } impl From < CTL_ICACHE_A > for bool { # [inline (always)]
fn from (variant : CTL_ICACHE_A) -> Self { variant as u8 != 0 } } impl CTL_ICACHE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL_ICACHE_A { match self . bits { false => CTL_ICACHE_A :: CTL_ICACHE_DISABLE , true => CTL_ICACHE_A :: CTL_ICACHE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl_icache_disable (& self) -> bool { * self == CTL_ICACHE_A :: CTL_ICACHE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl_icache_enable (& self) -> bool { * self == CTL_ICACHE_A :: CTL_ICACHE_ENABLE } } # [doc = "Field `CTL_ICACHE` writer - Used to enable/disable Instruction caching on flash access."]
pub type CTL_ICACHE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL_ICACHE_A > ; impl < 'a , REG , const O : u8 > CTL_ICACHE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl_icache_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL_ICACHE_A :: CTL_ICACHE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl_icache_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL_ICACHE_A :: CTL_ICACHE_ENABLE) } } # [doc = "Field `CTL_LITEN` reader - Literal caching and prefetch enable. This bit is a subset of ICACHE/PREFETCH bit i.e. literal caching or literal prefetching will only happen if ICACHE or PREFETCH bits have been set respectively When enabled, the cache and prefetcher structures inside CPUSS will cache and prefetch literals When disabled, the cache and prefetcher structures inside CPUSS will not cache and prefetch literals"]
pub type CTL_LITEN_R = crate :: BitReader < CTL_LITEN_A > ; # [doc = "Literal caching and prefetch enable. This bit is a subset of ICACHE/PREFETCH bit i.e. literal caching or literal prefetching will only happen if ICACHE or PREFETCH bits have been set respectively When enabled, the cache and prefetcher structures inside CPUSS will cache and prefetch literals When disabled, the cache and prefetcher structures inside CPUSS will not cache and prefetch literals\n\nValue on reset: 1"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL_LITEN_A { # [doc = "0: DISABLE"]
CTL_LITEN_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL_LITEN_ENABLE = 1 , } impl From < CTL_LITEN_A > for bool { # [inline (always)]
fn from (variant : CTL_LITEN_A) -> Self { variant as u8 != 0 } } impl CTL_LITEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL_LITEN_A { match self . bits { false => CTL_LITEN_A :: CTL_LITEN_DISABLE , true => CTL_LITEN_A :: CTL_LITEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl_liten_disable (& self) -> bool { * self == CTL_LITEN_A :: CTL_LITEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl_liten_enable (& self) -> bool { * self == CTL_LITEN_A :: CTL_LITEN_ENABLE } } # [doc = "Field `CTL_LITEN` writer - Literal caching and prefetch enable. This bit is a subset of ICACHE/PREFETCH bit i.e. literal caching or literal prefetching will only happen if ICACHE or PREFETCH bits have been set respectively When enabled, the cache and prefetcher structures inside CPUSS will cache and prefetch literals When disabled, the cache and prefetcher structures inside CPUSS will not cache and prefetch literals"]
pub type CTL_LITEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL_LITEN_A > ; impl < 'a , REG , const O : u8 > CTL_LITEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl_liten_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL_LITEN_A :: CTL_LITEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl_liten_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL_LITEN_A :: CTL_LITEN_ENABLE) } } impl R { # [doc = "Bit 0 - Used to enable/disable instruction prefetch to Flash."]
# [inline (always)]
pub fn ctl_prefetch (& self) -> CTL_PREFETCH_R { CTL_PREFETCH_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Used to enable/disable Instruction caching on flash access."]
# [inline (always)]
pub fn ctl_icache (& self) -> CTL_ICACHE_R { CTL_ICACHE_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Literal caching and prefetch enable. This bit is a subset of ICACHE/PREFETCH bit i.e. literal caching or literal prefetching will only happen if ICACHE or PREFETCH bits have been set respectively When enabled, the cache and prefetcher structures inside CPUSS will cache and prefetch literals When disabled, the cache and prefetcher structures inside CPUSS will not cache and prefetch literals"]
# [inline (always)]
pub fn ctl_liten (& self) -> CTL_LITEN_R { CTL_LITEN_R :: new (((self . bits >> 2) & 1) != 0) } } impl W { # [doc = "Bit 0 - Used to enable/disable instruction prefetch to Flash."]
# [inline (always)]
# [must_use]
pub fn ctl_prefetch (& mut self) -> CTL_PREFETCH_W < CTL_SPEC , 0 > { CTL_PREFETCH_W :: new (self) } # [doc = "Bit 1 - Used to enable/disable Instruction caching on flash access."]
# [inline (always)]
# [must_use]
pub fn ctl_icache (& mut self) -> CTL_ICACHE_W < CTL_SPEC , 1 > { CTL_ICACHE_W :: new (self) } # [doc = "Bit 2 - Literal caching and prefetch enable. This bit is a subset of ICACHE/PREFETCH bit i.e. literal caching or literal prefetching will only happen if ICACHE or PREFETCH bits have been set respectively When enabled, the cache and prefetcher structures inside CPUSS will cache and prefetch literals When disabled, the cache and prefetcher structures inside CPUSS will not cache and prefetch literals"]
# [inline (always)]
# [must_use]
pub fn ctl_liten (& mut self) -> CTL_LITEN_W < CTL_SPEC , 2 > { CTL_LITEN_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Prefetch/Cache control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTL_SPEC ; impl crate :: RegisterSpec for CTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ctl::R`](R) reader structure"]
impl crate :: Readable for CTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`ctl::W`](W) writer structure"]
impl crate :: Writable for CTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTL to value 0x07"]
impl crate :: Resettable for CTL_SPEC { const RESET_VALUE : Self :: Ux = 0x07 ; } } } # [doc = "PERIPHERALREGION"]
pub struct GPIOA { _marker : PhantomData < * const () > } unsafe impl Send for GPIOA { } impl GPIOA { # [doc = r"Pointer to the register block"]
pub const PTR : * const gpioa :: RegisterBlock = 0x400a_0000 as * const _ ; # [doc = r"Return the pointer to the register block"]
# [inline (always)]
pub const fn ptr () -> * const gpioa :: RegisterBlock { Self :: PTR } # [doc = r" Steal an instance of this peripheral"]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Ensure that the new instance of the peripheral cannot be used in a way"]
# [doc = r" that may race with any existing instances, for example by only"]
# [doc = r" accessing read-only or write-only registers, or by consuming the"]
# [doc = r" original peripheral and using critical sections to coordinate"]
# [doc = r" access between multiple new instances."]
# [doc = r""]
# [doc = r" Additionally, other software such as HALs may rely on only one"]
# [doc = r" peripheral instance existing to ensure memory safety; ensure"]
# [doc = r" no stolen instances are passed to such software."]
pub unsafe fn steal () -> Self { Self { _marker : PhantomData } } } impl Deref for GPIOA { type Target = gpioa :: RegisterBlock ; # [inline (always)]
fn deref (& self) -> & Self :: Target { unsafe { & * Self :: PTR } } } impl core :: fmt :: Debug for GPIOA { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("GPIOA") . finish () } } # [doc = "PERIPHERALREGION"]
pub mod gpioa { # [doc = r"Register block"]
# [repr (C)]
pub struct RegisterBlock { _reserved0 : [u8 ; 0x0400]
, # [doc = "0x400 - Subsciber Port 0"]
pub fsub_0 : FSUB_0 , # [doc = "0x404 - Subscriber Port 1"]
pub fsub_1 : FSUB_1 , _reserved2 : [u8 ; 0x3c]
, # [doc = "0x444 - Publisher Port 0"]
pub fpub_0 : FPUB_0 , # [doc = "0x448 - Publisher Port 1"]
pub fpub_1 : FPUB_1 , _reserved4 : [u8 ; 0x03b4]
, # [doc = "0x800 - Power enable"]
pub pwren : PWREN , # [doc = "0x804 - Reset Control"]
pub rstctl : RSTCTL , _reserved6 : [u8 ; 0x0c]
, # [doc = "0x814 - Status Register"]
pub stat : STAT , _reserved7 : [u8 ; 0x07f8]
, # [doc = "0x1010 - Clock Override"]
pub clkovr : CLKOVR , _reserved8 : [u8 ; 0x04]
, # [doc = "0x1018 - Peripheral Debug Control"]
pub pdbgctl : PDBGCTL , _reserved9 : [u8 ; 0x04]
, # [doc = "0x1020 - Interrupt index"]
pub int_event0_iidx : INT_EVENT0_IIDX , _reserved10 : [u8 ; 0x04]
, # [doc = "0x1028 - Interrupt mask"]
pub int_event0_imask : INT_EVENT0_IMASK , _reserved11 : [u8 ; 0x04]
, # [doc = "0x1030 - Raw interrupt status"]
pub int_event0_ris : INT_EVENT0_RIS , _reserved12 : [u8 ; 0x04]
, # [doc = "0x1038 - Masked interrupt status"]
pub int_event0_mis : INT_EVENT0_MIS , _reserved13 : [u8 ; 0x04]
, # [doc = "0x1040 - Interrupt set"]
pub int_event0_iset : INT_EVENT0_ISET , _reserved14 : [u8 ; 0x04]
, # [doc = "0x1048 - Interrupt clear"]
pub int_event0_iclr : INT_EVENT0_ICLR , _reserved15 : [u8 ; 0x04]
, # [doc = "0x1050 - Interrupt index"]
pub int_event1_iidx : INT_EVENT1_IIDX , _reserved16 : [u8 ; 0x04]
, # [doc = "0x1058 - Interrupt mask"]
pub int_event1_imask : INT_EVENT1_IMASK , _reserved17 : [u8 ; 0x04]
, # [doc = "0x1060 - Raw interrupt status"]
pub int_event1_ris : INT_EVENT1_RIS , _reserved18 : [u8 ; 0x04]
, # [doc = "0x1068 - Masked interrupt status"]
pub int_event1_mis : INT_EVENT1_MIS , _reserved19 : [u8 ; 0x04]
, # [doc = "0x1070 - Interrupt set"]
pub int_event1_iset : INT_EVENT1_ISET , _reserved20 : [u8 ; 0x04]
, # [doc = "0x1078 - Interrupt clear"]
pub int_event1_iclr : INT_EVENT1_ICLR , _reserved21 : [u8 ; 0x04]
, # [doc = "0x1080 - Interrupt index"]
pub int_event2_iidx : INT_EVENT2_IIDX , _reserved22 : [u8 ; 0x04]
, # [doc = "0x1088 - Interrupt mask"]
pub int_event2_imask : INT_EVENT2_IMASK , _reserved23 : [u8 ; 0x04]
, # [doc = "0x1090 - Raw interrupt status"]
pub int_event2_ris : INT_EVENT2_RIS , _reserved24 : [u8 ; 0x04]
, # [doc = "0x1098 - Masked interrupt status"]
pub int_event2_mis : INT_EVENT2_MIS , _reserved25 : [u8 ; 0x04]
, # [doc = "0x10a0 - Interrupt set"]
pub int_event2_iset : INT_EVENT2_ISET , _reserved26 : [u8 ; 0x04]
, # [doc = "0x10a8 - Interrupt clear"]
pub int_event2_iclr : INT_EVENT2_ICLR , _reserved27 : [u8 ; 0x34]
, # [doc = "0x10e0 - Event Mode"]
pub evt_mode : EVT_MODE , _reserved28 : [u8 ; 0x18]
, # [doc = "0x10fc - Module Description"]
pub desc : DESC , _reserved29 : [u8 ; 0x0100]
, # [doc = "0x1200 - Data output 3 to 0"]
pub dout3_0 : DOUT3_0 , # [doc = "0x1204 - Data output 7 to 4"]
pub dout7_4 : DOUT7_4 , # [doc = "0x1208 - Data output 11 to 8"]
pub dout11_8 : DOUT11_8 , # [doc = "0x120c - Data output 15 to 12"]
pub dout15_12 : DOUT15_12 , # [doc = "0x1210 - Data output 19 to 16"]
pub dout19_16 : DOUT19_16 , # [doc = "0x1214 - Data output 23 to 20"]
pub dout23_20 : DOUT23_20 , # [doc = "0x1218 - Data output 27 to 24"]
pub dout27_24 : DOUT27_24 , # [doc = "0x121c - Data output 31 to 28"]
pub dout31_28 : DOUT31_28 , _reserved37 : [u8 ; 0x60]
, # [doc = "0x1280 - Data output 31 to 0"]
pub dout31_0 : DOUT31_0 , _reserved38 : [u8 ; 0x0c]
, # [doc = "0x1290 - Data output set 31 to 0"]
pub doutset31_0 : DOUTSET31_0 , _reserved39 : [u8 ; 0x0c]
, # [doc = "0x12a0 - Data output clear 31 to 0"]
pub doutclr31_0 : DOUTCLR31_0 , _reserved40 : [u8 ; 0x0c]
, # [doc = "0x12b0 - Data output toggle 31 to 0"]
pub douttgl31_0 : DOUTTGL31_0 , _reserved41 : [u8 ; 0x0c]
, # [doc = "0x12c0 - Data output enable 31 to 0"]
pub doe31_0 : DOE31_0 , _reserved42 : [u8 ; 0x0c]
, # [doc = "0x12d0 - Data output enable set 31 to 0"]
pub doeset31_0 : DOESET31_0 , _reserved43 : [u8 ; 0x0c]
, # [doc = "0x12e0 - Data output enable clear 31 to 0"]
pub doeclr31_0 : DOECLR31_0 , _reserved44 : [u8 ; 0x1c]
, # [doc = "0x1300 - Data input 3 to 0"]
pub din3_0 : DIN3_0 , # [doc = "0x1304 - Data input 7 to 4"]
pub din7_4 : DIN7_4 , # [doc = "0x1308 - Data input 11 to 8"]
pub din11_8 : DIN11_8 , # [doc = "0x130c - Data input 15 to 12"]
pub din15_12 : DIN15_12 , # [doc = "0x1310 - Data input 19 to 16"]
pub din19_16 : DIN19_16 , # [doc = "0x1314 - Data input 23 to 20"]
pub din23_20 : DIN23_20 , # [doc = "0x1318 - Data input 27 to 24"]
pub din27_24 : DIN27_24 , # [doc = "0x131c - Data input 31 to 28"]
pub din31_28 : DIN31_28 , _reserved52 : [u8 ; 0x60]
, # [doc = "0x1380 - Data input 31 to 0"]
pub din31_0 : DIN31_0 , _reserved53 : [u8 ; 0x0c]
, # [doc = "0x1390 - Polarity 15 to 0"]
pub polarity15_0 : POLARITY15_0 , _reserved54 : [u8 ; 0x0c]
, # [doc = "0x13a0 - Polarity 31 to 16"]
pub polarity31_16 : POLARITY31_16 , _reserved55 : [u8 ; 0x5c]
, # [doc = "0x1400 - FAST WAKE GLOBAL EN"]
pub ctl : CTL , # [doc = "0x1404 - FAST WAKE ENABLE"]
pub fastwake : FASTWAKE , _reserved57 : [u8 ; 0xf8]
, # [doc = "0x1500 - Subscriber 0 configuration"]
pub sub0cfg : SUB0CFG , _reserved58 : [u8 ; 0x04]
, # [doc = "0x1508 - Filter Enable 15 to 0"]
pub filteren15_0 : FILTEREN15_0 , # [doc = "0x150c - Filter Enable 31 to 16"]
pub filteren31_16 : FILTEREN31_16 , # [doc = "0x1510 - DMA Write MASK"]
pub dmamask : DMAMASK , _reserved61 : [u8 ; 0x0c]
, # [doc = "0x1520 - Subscriber 1 configuration"]
pub sub1cfg : SUB1CFG , } # [doc = "FSUB_0 (rw) register accessor: Subsciber Port 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fsub_0`]
module"]
pub type FSUB_0 = crate :: Reg < fsub_0 :: FSUB_0_SPEC > ; # [doc = "Subsciber Port 0"]
pub mod fsub_0 { # [doc = "Register `FSUB_0` reader"]
pub type R = crate :: R < FSUB_0_SPEC > ; # [doc = "Register `FSUB_0` writer"]
pub type W = crate :: W < FSUB_0_SPEC > ; # [doc = "Field `FSUB_0_CHANID` reader - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FSUB_0_CHANID_R = crate :: FieldReader < FSUB_0_CHANID_A > ; # [doc = "0 = disconnected. 1-15 = connected to channelID = CHANID.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FSUB_0_CHANID_A { # [doc = "0: UNCONNECTED"]
FSUB_0_CHANID_UNCONNECTED = 0 , } impl From < FSUB_0_CHANID_A > for u8 { # [inline (always)]
fn from (variant : FSUB_0_CHANID_A) -> Self { variant as _ } } impl crate :: FieldSpec for FSUB_0_CHANID_A { type Ux = u8 ; } impl FSUB_0_CHANID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < FSUB_0_CHANID_A > { match self . bits { 0 => Some (FSUB_0_CHANID_A :: FSUB_0_CHANID_UNCONNECTED) , _ => None , } } # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn is_fsub_0_chanid_unconnected (& self) -> bool { * self == FSUB_0_CHANID_A :: FSUB_0_CHANID_UNCONNECTED } } # [doc = "Field `FSUB_0_CHANID` writer - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FSUB_0_CHANID_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , FSUB_0_CHANID_A > ; impl < 'a , REG , const O : u8 > FSUB_0_CHANID_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn fsub_0_chanid_unconnected (self) -> & 'a mut crate :: W < REG > { self . variant (FSUB_0_CHANID_A :: FSUB_0_CHANID_UNCONNECTED) } } impl R { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
pub fn fsub_0_chanid (& self) -> FSUB_0_CHANID_R { FSUB_0_CHANID_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
# [must_use]
pub fn fsub_0_chanid (& mut self) -> FSUB_0_CHANID_W < FSUB_0_SPEC , 0 > { FSUB_0_CHANID_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Subsciber Port 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_0::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FSUB_0_SPEC ; impl crate :: RegisterSpec for FSUB_0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fsub_0::R`](R) reader structure"]
impl crate :: Readable for FSUB_0_SPEC { } # [doc = "`write(|w| ..)` method takes [`fsub_0::W`](W) writer structure"]
impl crate :: Writable for FSUB_0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FSUB_0 to value 0"]
impl crate :: Resettable for FSUB_0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "FSUB_1 (rw) register accessor: Subscriber Port 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fsub_1`]
module"]
pub type FSUB_1 = crate :: Reg < fsub_1 :: FSUB_1_SPEC > ; # [doc = "Subscriber Port 1"]
pub mod fsub_1 { # [doc = "Register `FSUB_1` reader"]
pub type R = crate :: R < FSUB_1_SPEC > ; # [doc = "Register `FSUB_1` writer"]
pub type W = crate :: W < FSUB_1_SPEC > ; # [doc = "Field `FSUB_1_CHANID` reader - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FSUB_1_CHANID_R = crate :: FieldReader < FSUB_1_CHANID_A > ; # [doc = "0 = disconnected. 1-15 = connected to channelID = CHANID.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FSUB_1_CHANID_A { # [doc = "0: UNCONNECTED"]
FSUB_1_CHANID_UNCONNECTED = 0 , } impl From < FSUB_1_CHANID_A > for u8 { # [inline (always)]
fn from (variant : FSUB_1_CHANID_A) -> Self { variant as _ } } impl crate :: FieldSpec for FSUB_1_CHANID_A { type Ux = u8 ; } impl FSUB_1_CHANID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < FSUB_1_CHANID_A > { match self . bits { 0 => Some (FSUB_1_CHANID_A :: FSUB_1_CHANID_UNCONNECTED) , _ => None , } } # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn is_fsub_1_chanid_unconnected (& self) -> bool { * self == FSUB_1_CHANID_A :: FSUB_1_CHANID_UNCONNECTED } } # [doc = "Field `FSUB_1_CHANID` writer - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FSUB_1_CHANID_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , FSUB_1_CHANID_A > ; impl < 'a , REG , const O : u8 > FSUB_1_CHANID_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn fsub_1_chanid_unconnected (self) -> & 'a mut crate :: W < REG > { self . variant (FSUB_1_CHANID_A :: FSUB_1_CHANID_UNCONNECTED) } } impl R { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
pub fn fsub_1_chanid (& self) -> FSUB_1_CHANID_R { FSUB_1_CHANID_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
# [must_use]
pub fn fsub_1_chanid (& mut self) -> FSUB_1_CHANID_W < FSUB_1_SPEC , 0 > { FSUB_1_CHANID_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Subscriber Port 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_1::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FSUB_1_SPEC ; impl crate :: RegisterSpec for FSUB_1_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fsub_1::R`](R) reader structure"]
impl crate :: Readable for FSUB_1_SPEC { } # [doc = "`write(|w| ..)` method takes [`fsub_1::W`](W) writer structure"]
impl crate :: Writable for FSUB_1_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FSUB_1 to value 0"]
impl crate :: Resettable for FSUB_1_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "FPUB_0 (rw) register accessor: Publisher Port 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fpub_0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fpub_0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fpub_0`]
module"]
pub type FPUB_0 = crate :: Reg < fpub_0 :: FPUB_0_SPEC > ; # [doc = "Publisher Port 0"]
pub mod fpub_0 { # [doc = "Register `FPUB_0` reader"]
pub type R = crate :: R < FPUB_0_SPEC > ; # [doc = "Register `FPUB_0` writer"]
pub type W = crate :: W < FPUB_0_SPEC > ; # [doc = "Field `FPUB_0_CHANID` reader - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FPUB_0_CHANID_R = crate :: FieldReader < FPUB_0_CHANID_A > ; # [doc = "0 = disconnected. 1-15 = connected to channelID = CHANID.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FPUB_0_CHANID_A { # [doc = "0: UNCONNECTED"]
FPUB_0_CHANID_UNCONNECTED = 0 , } impl From < FPUB_0_CHANID_A > for u8 { # [inline (always)]
fn from (variant : FPUB_0_CHANID_A) -> Self { variant as _ } } impl crate :: FieldSpec for FPUB_0_CHANID_A { type Ux = u8 ; } impl FPUB_0_CHANID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < FPUB_0_CHANID_A > { match self . bits { 0 => Some (FPUB_0_CHANID_A :: FPUB_0_CHANID_UNCONNECTED) , _ => None , } } # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn is_fpub_0_chanid_unconnected (& self) -> bool { * self == FPUB_0_CHANID_A :: FPUB_0_CHANID_UNCONNECTED } } # [doc = "Field `FPUB_0_CHANID` writer - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FPUB_0_CHANID_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , FPUB_0_CHANID_A > ; impl < 'a , REG , const O : u8 > FPUB_0_CHANID_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn fpub_0_chanid_unconnected (self) -> & 'a mut crate :: W < REG > { self . variant (FPUB_0_CHANID_A :: FPUB_0_CHANID_UNCONNECTED) } } impl R { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
pub fn fpub_0_chanid (& self) -> FPUB_0_CHANID_R { FPUB_0_CHANID_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
# [must_use]
pub fn fpub_0_chanid (& mut self) -> FPUB_0_CHANID_W < FPUB_0_SPEC , 0 > { FPUB_0_CHANID_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Publisher Port 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fpub_0::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fpub_0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FPUB_0_SPEC ; impl crate :: RegisterSpec for FPUB_0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fpub_0::R`](R) reader structure"]
impl crate :: Readable for FPUB_0_SPEC { } # [doc = "`write(|w| ..)` method takes [`fpub_0::W`](W) writer structure"]
impl crate :: Writable for FPUB_0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FPUB_0 to value 0"]
impl crate :: Resettable for FPUB_0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "FPUB_1 (rw) register accessor: Publisher Port 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fpub_1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fpub_1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fpub_1`]
module"]
pub type FPUB_1 = crate :: Reg < fpub_1 :: FPUB_1_SPEC > ; # [doc = "Publisher Port 1"]
pub mod fpub_1 { # [doc = "Register `FPUB_1` reader"]
pub type R = crate :: R < FPUB_1_SPEC > ; # [doc = "Register `FPUB_1` writer"]
pub type W = crate :: W < FPUB_1_SPEC > ; # [doc = "Field `FPUB_1_CHANID` reader - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FPUB_1_CHANID_R = crate :: FieldReader < FPUB_1_CHANID_A > ; # [doc = "0 = disconnected. 1-15 = connected to channelID = CHANID.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FPUB_1_CHANID_A { # [doc = "0: UNCONNECTED"]
FPUB_1_CHANID_UNCONNECTED = 0 , } impl From < FPUB_1_CHANID_A > for u8 { # [inline (always)]
fn from (variant : FPUB_1_CHANID_A) -> Self { variant as _ } } impl crate :: FieldSpec for FPUB_1_CHANID_A { type Ux = u8 ; } impl FPUB_1_CHANID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < FPUB_1_CHANID_A > { match self . bits { 0 => Some (FPUB_1_CHANID_A :: FPUB_1_CHANID_UNCONNECTED) , _ => None , } } # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn is_fpub_1_chanid_unconnected (& self) -> bool { * self == FPUB_1_CHANID_A :: FPUB_1_CHANID_UNCONNECTED } } # [doc = "Field `FPUB_1_CHANID` writer - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FPUB_1_CHANID_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , FPUB_1_CHANID_A > ; impl < 'a , REG , const O : u8 > FPUB_1_CHANID_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn fpub_1_chanid_unconnected (self) -> & 'a mut crate :: W < REG > { self . variant (FPUB_1_CHANID_A :: FPUB_1_CHANID_UNCONNECTED) } } impl R { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
pub fn fpub_1_chanid (& self) -> FPUB_1_CHANID_R { FPUB_1_CHANID_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
# [must_use]
pub fn fpub_1_chanid (& mut self) -> FPUB_1_CHANID_W < FPUB_1_SPEC , 0 > { FPUB_1_CHANID_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Publisher Port 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fpub_1::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fpub_1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FPUB_1_SPEC ; impl crate :: RegisterSpec for FPUB_1_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fpub_1::R`](R) reader structure"]
impl crate :: Readable for FPUB_1_SPEC { } # [doc = "`write(|w| ..)` method takes [`fpub_1::W`](W) writer structure"]
impl crate :: Writable for FPUB_1_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FPUB_1 to value 0"]
impl crate :: Resettable for FPUB_1_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "PWREN (rw) register accessor: Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pwren`]
module"]
pub type PWREN = crate :: Reg < pwren :: PWREN_SPEC > ; # [doc = "Power enable"]
pub mod pwren { # [doc = "Register `PWREN` reader"]
pub type R = crate :: R < PWREN_SPEC > ; # [doc = "Register `PWREN` writer"]
pub type W = crate :: W < PWREN_SPEC > ; # [doc = "Field `PWREN_ENABLE` reader - Enable the power"]
pub type PWREN_ENABLE_R = crate :: BitReader < PWREN_ENABLE_A > ; # [doc = "Enable the power\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PWREN_ENABLE_A { # [doc = "0: DISABLE"]
PWREN_ENABLE_DISABLE = 0 , # [doc = "1: ENABLE"]
PWREN_ENABLE_ENABLE = 1 , } impl From < PWREN_ENABLE_A > for bool { # [inline (always)]
fn from (variant : PWREN_ENABLE_A) -> Self { variant as u8 != 0 } } impl PWREN_ENABLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PWREN_ENABLE_A { match self . bits { false => PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE , true => PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_pwren_enable_disable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_pwren_enable_enable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE } } # [doc = "Field `PWREN_ENABLE` writer - Enable the power"]
pub type PWREN_ENABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PWREN_ENABLE_A > ; impl < 'a , REG , const O : u8 > PWREN_ENABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn pwren_enable_disable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn pwren_enable_enable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE) } } # [doc = "KEY to allow Power State Change\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum PWREN_KEY_AW { # [doc = "38: _TO_UNLOCK_W_"]
PWREN_KEY_UNLOCK_W = 38 , } impl From < PWREN_KEY_AW > for u8 { # [inline (always)]
fn from (variant : PWREN_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for PWREN_KEY_AW { type Ux = u8 ; } # [doc = "Field `PWREN_KEY` writer - KEY to allow Power State Change"]
pub type PWREN_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , PWREN_KEY_AW > ; impl < 'a , REG , const O : u8 > PWREN_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn pwren_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_KEY_AW :: PWREN_KEY_UNLOCK_W) } } impl R { # [doc = "Bit 0 - Enable the power"]
# [inline (always)]
pub fn pwren_enable (& self) -> PWREN_ENABLE_R { PWREN_ENABLE_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - Enable the power"]
# [inline (always)]
# [must_use]
pub fn pwren_enable (& mut self) -> PWREN_ENABLE_W < PWREN_SPEC , 0 > { PWREN_ENABLE_W :: new (self) } # [doc = "Bits 24:31 - KEY to allow Power State Change"]
# [inline (always)]
# [must_use]
pub fn pwren_key (& mut self) -> PWREN_KEY_W < PWREN_SPEC , 24 > { PWREN_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PWREN_SPEC ; impl crate :: RegisterSpec for PWREN_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pwren::R`](R) reader structure"]
impl crate :: Readable for PWREN_SPEC { } # [doc = "`write(|w| ..)` method takes [`pwren::W`](W) writer structure"]
impl crate :: Writable for PWREN_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PWREN to value 0"]
impl crate :: Resettable for PWREN_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RSTCTL (w) register accessor: Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rstctl`]
module"]
pub type RSTCTL = crate :: Reg < rstctl :: RSTCTL_SPEC > ; # [doc = "Reset Control"]
pub mod rstctl { # [doc = "Register `RSTCTL` writer"]
pub type W = crate :: W < RSTCTL_SPEC > ; # [doc = "Assert reset to the peripheral\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETASSERT_AW { # [doc = "0: NOP"]
RSTCTL_RESETASSERT_NOP = 0 , # [doc = "1: ASSERT"]
RSTCTL_RESETASSERT_ASSERT = 1 , } impl From < RSTCTL_RESETASSERT_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETASSERT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETASSERT` writer - Assert reset to the peripheral"]
pub type RSTCTL_RESETASSERT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETASSERT_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETASSERT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetassert_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_NOP) } # [doc = "ASSERT"]
# [inline (always)]
pub fn rstctl_resetassert_assert (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_ASSERT) } } # [doc = "Clear the RESETSTKY bit in the STAT register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETSTKYCLR_AW { # [doc = "0: NOP"]
RSTCTL_RESETSTKYCLR_NOP = 0 , # [doc = "1: CLR"]
RSTCTL_RESETSTKYCLR_CLR = 1 , } impl From < RSTCTL_RESETSTKYCLR_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETSTKYCLR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETSTKYCLR` writer - Clear the RESETSTKY bit in the STAT register"]
pub type RSTCTL_RESETSTKYCLR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETSTKYCLR_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETSTKYCLR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetstkyclr_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_NOP) } # [doc = "CLR"]
# [inline (always)]
pub fn rstctl_resetstkyclr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_CLR) } } # [doc = "Unlock key\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum RSTCTL_KEY_AW { # [doc = "177: _TO_UNLOCK_W_"]
RSTCTL_KEY_UNLOCK_W = 177 , } impl From < RSTCTL_KEY_AW > for u8 { # [inline (always)]
fn from (variant : RSTCTL_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for RSTCTL_KEY_AW { type Ux = u8 ; } # [doc = "Field `RSTCTL_KEY` writer - Unlock key"]
pub type RSTCTL_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , RSTCTL_KEY_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn rstctl_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_KEY_AW :: RSTCTL_KEY_UNLOCK_W) } } impl W { # [doc = "Bit 0 - Assert reset to the peripheral"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetassert (& mut self) -> RSTCTL_RESETASSERT_W < RSTCTL_SPEC , 0 > { RSTCTL_RESETASSERT_W :: new (self) } # [doc = "Bit 1 - Clear the RESETSTKY bit in the STAT register"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetstkyclr (& mut self) -> RSTCTL_RESETSTKYCLR_W < RSTCTL_SPEC , 1 > { RSTCTL_RESETSTKYCLR_W :: new (self) } # [doc = "Bits 24:31 - Unlock key"]
# [inline (always)]
# [must_use]
pub fn rstctl_key (& mut self) -> RSTCTL_KEY_W < RSTCTL_SPEC , 24 > { RSTCTL_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RSTCTL_SPEC ; impl crate :: RegisterSpec for RSTCTL_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`rstctl::W`](W) writer structure"]
impl crate :: Writable for RSTCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets RSTCTL to value 0"]
impl crate :: Resettable for RSTCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "STAT (r) register accessor: Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@stat`]
module"]
pub type STAT = crate :: Reg < stat :: STAT_SPEC > ; # [doc = "Status Register"]
pub mod stat { # [doc = "Register `STAT` reader"]
pub type R = crate :: R < STAT_SPEC > ; # [doc = "Field `STAT_RESETSTKY` reader - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
pub type STAT_RESETSTKY_R = crate :: BitReader < STAT_RESETSTKY_A > ; # [doc = "This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_RESETSTKY_A { # [doc = "0: NORES"]
STAT_RESETSTKY_NORES = 0 , # [doc = "1: RESET"]
STAT_RESETSTKY_RESET = 1 , } impl From < STAT_RESETSTKY_A > for bool { # [inline (always)]
fn from (variant : STAT_RESETSTKY_A) -> Self { variant as u8 != 0 } } impl STAT_RESETSTKY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_RESETSTKY_A { match self . bits { false => STAT_RESETSTKY_A :: STAT_RESETSTKY_NORES , true => STAT_RESETSTKY_A :: STAT_RESETSTKY_RESET , } } # [doc = "NORES"]
# [inline (always)]
pub fn is_stat_resetstky_nores (& self) -> bool { * self == STAT_RESETSTKY_A :: STAT_RESETSTKY_NORES } # [doc = "RESET"]
# [inline (always)]
pub fn is_stat_resetstky_reset (& self) -> bool { * self == STAT_RESETSTKY_A :: STAT_RESETSTKY_RESET } } impl R { # [doc = "Bit 16 - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
# [inline (always)]
pub fn stat_resetstky (& self) -> STAT_RESETSTKY_R { STAT_RESETSTKY_R :: new (((self . bits >> 16) & 1) != 0) } } # [doc = "Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct STAT_SPEC ; impl crate :: RegisterSpec for STAT_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`stat::R`](R) reader structure"]
impl crate :: Readable for STAT_SPEC { } # [doc = "`reset()` method sets STAT to value 0"]
impl crate :: Resettable for STAT_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CLKOVR (rw) register accessor: Clock Override\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkovr::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkovr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clkovr`]
module"]
pub type CLKOVR = crate :: Reg < clkovr :: CLKOVR_SPEC > ; # [doc = "Clock Override"]
pub mod clkovr { # [doc = "Register `CLKOVR` reader"]
pub type R = crate :: R < CLKOVR_SPEC > ; # [doc = "Register `CLKOVR` writer"]
pub type W = crate :: W < CLKOVR_SPEC > ; # [doc = "Field `CLKOVR_OVERRIDE` reader - Unlocks the functionality of \\[RUN_STOP\\]
to override the automatic peripheral clock request"]
pub type CLKOVR_OVERRIDE_R = crate :: BitReader < CLKOVR_OVERRIDE_A > ; # [doc = "Unlocks the functionality of \\[RUN_STOP\\]
to override the automatic peripheral clock request\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKOVR_OVERRIDE_A { # [doc = "0: DISABLED"]
CLKOVR_OVERRIDE_DISABLED = 0 , # [doc = "1: ENABLED"]
CLKOVR_OVERRIDE_ENABLED = 1 , } impl From < CLKOVR_OVERRIDE_A > for bool { # [inline (always)]
fn from (variant : CLKOVR_OVERRIDE_A) -> Self { variant as u8 != 0 } } impl CLKOVR_OVERRIDE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKOVR_OVERRIDE_A { match self . bits { false => CLKOVR_OVERRIDE_A :: CLKOVR_OVERRIDE_DISABLED , true => CLKOVR_OVERRIDE_A :: CLKOVR_OVERRIDE_ENABLED , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_clkovr_override_disabled (& self) -> bool { * self == CLKOVR_OVERRIDE_A :: CLKOVR_OVERRIDE_DISABLED } # [doc = "ENABLED"]
# [inline (always)]
pub fn is_clkovr_override_enabled (& self) -> bool { * self == CLKOVR_OVERRIDE_A :: CLKOVR_OVERRIDE_ENABLED } } # [doc = "Field `CLKOVR_OVERRIDE` writer - Unlocks the functionality of \\[RUN_STOP\\]
to override the automatic peripheral clock request"]
pub type CLKOVR_OVERRIDE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKOVR_OVERRIDE_A > ; impl < 'a , REG , const O : u8 > CLKOVR_OVERRIDE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn clkovr_override_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CLKOVR_OVERRIDE_A :: CLKOVR_OVERRIDE_DISABLED) } # [doc = "ENABLED"]
# [inline (always)]
pub fn clkovr_override_enabled (self) -> & 'a mut crate :: W < REG > { self . variant (CLKOVR_OVERRIDE_A :: CLKOVR_OVERRIDE_ENABLED) } } # [doc = "Field `CLKOVR_RUN_STOP` reader - If \\[OVERRIDE\\]
is enabled, this register is used to manually control the peripheral's clock request to the system"]
pub type CLKOVR_RUN_STOP_R = crate :: BitReader < CLKOVR_RUN_STOP_A > ; # [doc = "If \\[OVERRIDE\\]
is enabled, this register is used to manually control the peripheral's clock request to the system\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKOVR_RUN_STOP_A { # [doc = "0: RUN"]
CLKOVR_RUN_STOP_RUN = 0 , # [doc = "1: STOP"]
CLKOVR_RUN_STOP_STOP = 1 , } impl From < CLKOVR_RUN_STOP_A > for bool { # [inline (always)]
fn from (variant : CLKOVR_RUN_STOP_A) -> Self { variant as u8 != 0 } } impl CLKOVR_RUN_STOP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKOVR_RUN_STOP_A { match self . bits { false => CLKOVR_RUN_STOP_A :: CLKOVR_RUN_STOP_RUN , true => CLKOVR_RUN_STOP_A :: CLKOVR_RUN_STOP_STOP , } } # [doc = "RUN"]
# [inline (always)]
pub fn is_clkovr_run_stop_run (& self) -> bool { * self == CLKOVR_RUN_STOP_A :: CLKOVR_RUN_STOP_RUN } # [doc = "STOP"]
# [inline (always)]
pub fn is_clkovr_run_stop_stop (& self) -> bool { * self == CLKOVR_RUN_STOP_A :: CLKOVR_RUN_STOP_STOP } } # [doc = "Field `CLKOVR_RUN_STOP` writer - If \\[OVERRIDE\\]
is enabled, this register is used to manually control the peripheral's clock request to the system"]
pub type CLKOVR_RUN_STOP_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKOVR_RUN_STOP_A > ; impl < 'a , REG , const O : u8 > CLKOVR_RUN_STOP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "RUN"]
# [inline (always)]
pub fn clkovr_run_stop_run (self) -> & 'a mut crate :: W < REG > { self . variant (CLKOVR_RUN_STOP_A :: CLKOVR_RUN_STOP_RUN) } # [doc = "STOP"]
# [inline (always)]
pub fn clkovr_run_stop_stop (self) -> & 'a mut crate :: W < REG > { self . variant (CLKOVR_RUN_STOP_A :: CLKOVR_RUN_STOP_STOP) } } impl R { # [doc = "Bit 0 - Unlocks the functionality of \\[RUN_STOP\\]
to override the automatic peripheral clock request"]
# [inline (always)]
pub fn clkovr_override (& self) -> CLKOVR_OVERRIDE_R { CLKOVR_OVERRIDE_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - If \\[OVERRIDE\\]
is enabled, this register is used to manually control the peripheral's clock request to the system"]
# [inline (always)]
pub fn clkovr_run_stop (& self) -> CLKOVR_RUN_STOP_R { CLKOVR_RUN_STOP_R :: new (((self . bits >> 1) & 1) != 0) } } impl W { # [doc = "Bit 0 - Unlocks the functionality of \\[RUN_STOP\\]
to override the automatic peripheral clock request"]
# [inline (always)]
# [must_use]
pub fn clkovr_override (& mut self) -> CLKOVR_OVERRIDE_W < CLKOVR_SPEC , 0 > { CLKOVR_OVERRIDE_W :: new (self) } # [doc = "Bit 1 - If \\[OVERRIDE\\]
is enabled, this register is used to manually control the peripheral's clock request to the system"]
# [inline (always)]
# [must_use]
pub fn clkovr_run_stop (& mut self) -> CLKOVR_RUN_STOP_W < CLKOVR_SPEC , 1 > { CLKOVR_RUN_STOP_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Clock Override\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkovr::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkovr::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CLKOVR_SPEC ; impl crate :: RegisterSpec for CLKOVR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`clkovr::R`](R) reader structure"]
impl crate :: Readable for CLKOVR_SPEC { } # [doc = "`write(|w| ..)` method takes [`clkovr::W`](W) writer structure"]
impl crate :: Writable for CLKOVR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CLKOVR to value 0"]
impl crate :: Resettable for CLKOVR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "PDBGCTL (rw) register accessor: Peripheral Debug Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pdbgctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pdbgctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pdbgctl`]
module"]
pub type PDBGCTL = crate :: Reg < pdbgctl :: PDBGCTL_SPEC > ; # [doc = "Peripheral Debug Control"]
pub mod pdbgctl { # [doc = "Register `PDBGCTL` reader"]
pub type R = crate :: R < PDBGCTL_SPEC > ; # [doc = "Register `PDBGCTL` writer"]
pub type W = crate :: W < PDBGCTL_SPEC > ; # [doc = "Field `PDBGCTL_FREE` reader - Free run control"]
pub type PDBGCTL_FREE_R = crate :: BitReader < PDBGCTL_FREE_A > ; # [doc = "Free run control\n\nValue on reset: 1"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PDBGCTL_FREE_A { # [doc = "0: STOP"]
PDBGCTL_FREE_STOP = 0 , # [doc = "1: RUN"]
PDBGCTL_FREE_RUN = 1 , } impl From < PDBGCTL_FREE_A > for bool { # [inline (always)]
fn from (variant : PDBGCTL_FREE_A) -> Self { variant as u8 != 0 } } impl PDBGCTL_FREE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PDBGCTL_FREE_A { match self . bits { false => PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP , true => PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN , } } # [doc = "STOP"]
# [inline (always)]
pub fn is_pdbgctl_free_stop (& self) -> bool { * self == PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP } # [doc = "RUN"]
# [inline (always)]
pub fn is_pdbgctl_free_run (& self) -> bool { * self == PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN } } # [doc = "Field `PDBGCTL_FREE` writer - Free run control"]
pub type PDBGCTL_FREE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PDBGCTL_FREE_A > ; impl < 'a , REG , const O : u8 > PDBGCTL_FREE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "STOP"]
# [inline (always)]
pub fn pdbgctl_free_stop (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP) } # [doc = "RUN"]
# [inline (always)]
pub fn pdbgctl_free_run (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN) } } impl R { # [doc = "Bit 0 - Free run control"]
# [inline (always)]
pub fn pdbgctl_free (& self) -> PDBGCTL_FREE_R { PDBGCTL_FREE_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - Free run control"]
# [inline (always)]
# [must_use]
pub fn pdbgctl_free (& mut self) -> PDBGCTL_FREE_W < PDBGCTL_SPEC , 0 > { PDBGCTL_FREE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Peripheral Debug Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pdbgctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pdbgctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PDBGCTL_SPEC ; impl crate :: RegisterSpec for PDBGCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pdbgctl::R`](R) reader structure"]
impl crate :: Readable for PDBGCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`pdbgctl::W`](W) writer structure"]
impl crate :: Writable for PDBGCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PDBGCTL to value 0x01"]
impl crate :: Resettable for PDBGCTL_SPEC { const RESET_VALUE : Self :: Ux = 0x01 ; } } # [doc = "INT_EVENT0_IIDX (r) register accessor: Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_iidx`]
module"]
pub type INT_EVENT0_IIDX = crate :: Reg < int_event0_iidx :: INT_EVENT0_IIDX_SPEC > ; # [doc = "Interrupt index"]
pub mod int_event0_iidx { # [doc = "Register `INT_EVENT0_IIDX` reader"]
pub type R = crate :: R < INT_EVENT0_IIDX_SPEC > ; # [doc = "Field `INT_EVENT0_IIDX_STAT` reader - Interrupt index status"]
pub type INT_EVENT0_IIDX_STAT_R = crate :: FieldReader < INT_EVENT0_IIDX_STAT_A > ; # [doc = "Interrupt index status\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum INT_EVENT0_IIDX_STAT_A { # [doc = "0: NO_INTR"]
INT_EVENT0_IIDX_STAT_NO_INTR = 0 , # [doc = "1: DIO0"]
INT_EVENT0_IIDX_STAT_DIO0 = 1 , # [doc = "2: DIO1"]
INT_EVENT0_IIDX_STAT_DIO1 = 2 , # [doc = "3: DIO2"]
INT_EVENT0_IIDX_STAT_DIO2 = 3 , # [doc = "4: DIO3"]
INT_EVENT0_IIDX_STAT_DIO3 = 4 , # [doc = "5: DIO4"]
INT_EVENT0_IIDX_STAT_DIO4 = 5 , # [doc = "6: DIO5"]
INT_EVENT0_IIDX_STAT_DIO5 = 6 , # [doc = "7: DIO6"]
INT_EVENT0_IIDX_STAT_DIO6 = 7 , # [doc = "8: DIO7"]
INT_EVENT0_IIDX_STAT_DIO7 = 8 , # [doc = "9: DIO8"]
INT_EVENT0_IIDX_STAT_DIO8 = 9 , # [doc = "10: DIO9"]
INT_EVENT0_IIDX_STAT_DIO9 = 10 , # [doc = "11: DIO10"]
INT_EVENT0_IIDX_STAT_DIO10 = 11 , # [doc = "12: DIO11"]
INT_EVENT0_IIDX_STAT_DIO11 = 12 , # [doc = "13: DIO12"]
INT_EVENT0_IIDX_STAT_DIO12 = 13 , # [doc = "14: DIO13"]
INT_EVENT0_IIDX_STAT_DIO13 = 14 , # [doc = "15: DIO14"]
INT_EVENT0_IIDX_STAT_DIO14 = 15 , # [doc = "16: DIO15"]
INT_EVENT0_IIDX_STAT_DIO15 = 16 , # [doc = "17: DIO16"]
INT_EVENT0_IIDX_STAT_DIO16 = 17 , # [doc = "18: DIO17"]
INT_EVENT0_IIDX_STAT_DIO17 = 18 , # [doc = "19: DIO18"]
INT_EVENT0_IIDX_STAT_DIO18 = 19 , # [doc = "20: DIO19"]
INT_EVENT0_IIDX_STAT_DIO19 = 20 , # [doc = "21: DIO20"]
INT_EVENT0_IIDX_STAT_DIO20 = 21 , # [doc = "22: DIO21"]
INT_EVENT0_IIDX_STAT_DIO21 = 22 , # [doc = "23: DIO22"]
INT_EVENT0_IIDX_STAT_DIO22 = 23 , # [doc = "24: DIO23"]
INT_EVENT0_IIDX_STAT_DIO23 = 24 , # [doc = "25: DIO24"]
INT_EVENT0_IIDX_STAT_DIO24 = 25 , # [doc = "26: DIO25"]
INT_EVENT0_IIDX_STAT_DIO25 = 26 , # [doc = "27: DIO26"]
INT_EVENT0_IIDX_STAT_DIO26 = 27 , # [doc = "28: DIO27"]
INT_EVENT0_IIDX_STAT_DIO27 = 28 , # [doc = "29: DIO28"]
INT_EVENT0_IIDX_STAT_DIO28 = 29 , # [doc = "30: DIO29"]
INT_EVENT0_IIDX_STAT_DIO29 = 30 , # [doc = "31: DIO30"]
INT_EVENT0_IIDX_STAT_DIO30 = 31 , # [doc = "32: DIO31"]
INT_EVENT0_IIDX_STAT_DIO31 = 32 , } impl From < INT_EVENT0_IIDX_STAT_A > for u8 { # [inline (always)]
fn from (variant : INT_EVENT0_IIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for INT_EVENT0_IIDX_STAT_A { type Ux = u8 ; } impl INT_EVENT0_IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < INT_EVENT0_IIDX_STAT_A > { match self . bits { 0 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_NO_INTR) , 1 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO0) , 2 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO1) , 3 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO2) , 4 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO3) , 5 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO4) , 6 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO5) , 7 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO6) , 8 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO7) , 9 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO8) , 10 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO9) , 11 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO10) , 12 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO11) , 13 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO12) , 14 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO13) , 15 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO14) , 16 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO15) , 17 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO16) , 18 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO17) , 19 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO18) , 20 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO19) , 21 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO20) , 22 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO21) , 23 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO22) , 24 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO23) , 25 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO24) , 26 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO25) , 27 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO26) , 28 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO27) , 29 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO28) , 30 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO29) , 31 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO30) , 32 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO31) , _ => None , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_no_intr (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_NO_INTR } # [doc = "DIO0"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dio0 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO0 } # [doc = "DIO1"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dio1 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO1 } # [doc = "DIO2"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dio2 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO2 } # [doc = "DIO3"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dio3 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO3 } # [doc = "DIO4"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dio4 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO4 } # [doc = "DIO5"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dio5 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO5 } # [doc = "DIO6"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dio6 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO6 } # [doc = "DIO7"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dio7 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO7 } # [doc = "DIO8"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dio8 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO8 } # [doc = "DIO9"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dio9 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO9 } # [doc = "DIO10"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dio10 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO10 } # [doc = "DIO11"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dio11 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO11 } # [doc = "DIO12"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dio12 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO12 } # [doc = "DIO13"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dio13 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO13 } # [doc = "DIO14"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dio14 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO14 } # [doc = "DIO15"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dio15 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO15 } # [doc = "DIO16"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dio16 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO16 } # [doc = "DIO17"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dio17 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO17 } # [doc = "DIO18"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dio18 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO18 } # [doc = "DIO19"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dio19 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO19 } # [doc = "DIO20"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dio20 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO20 } # [doc = "DIO21"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dio21 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO21 } # [doc = "DIO22"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dio22 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO22 } # [doc = "DIO23"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dio23 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO23 } # [doc = "DIO24"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dio24 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO24 } # [doc = "DIO25"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dio25 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO25 } # [doc = "DIO26"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dio26 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO26 } # [doc = "DIO27"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dio27 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO27 } # [doc = "DIO28"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dio28 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO28 } # [doc = "DIO29"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dio29 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO29 } # [doc = "DIO30"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dio30 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO30 } # [doc = "DIO31"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dio31 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DIO31 } } impl R { # [doc = "Bits 0:7 - Interrupt index status"]
# [inline (always)]
pub fn int_event0_iidx_stat (& self) -> INT_EVENT0_IIDX_STAT_R { INT_EVENT0_IIDX_STAT_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_IIDX_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event0_iidx::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT0_IIDX_SPEC { } # [doc = "`reset()` method sets INT_EVENT0_IIDX to value 0"]
impl crate :: Resettable for INT_EVENT0_IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_IMASK (rw) register accessor: Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_imask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_imask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_imask`]
module"]
pub type INT_EVENT0_IMASK = crate :: Reg < int_event0_imask :: INT_EVENT0_IMASK_SPEC > ; # [doc = "Interrupt mask"]
pub mod int_event0_imask { # [doc = "Register `INT_EVENT0_IMASK` reader"]
pub type R = crate :: R < INT_EVENT0_IMASK_SPEC > ; # [doc = "Register `INT_EVENT0_IMASK` writer"]
pub type W = crate :: W < INT_EVENT0_IMASK_SPEC > ; # [doc = "Field `INT_EVENT0_IMASK_DIO0` reader - DIO0 event mask"]
pub type INT_EVENT0_IMASK_DIO0_R = crate :: BitReader < INT_EVENT0_IMASK_DIO0_A > ; # [doc = "DIO0 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DIO0_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DIO0_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DIO0_SET = 1 , } impl From < INT_EVENT0_IMASK_DIO0_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DIO0_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DIO0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DIO0_A { match self . bits { false => INT_EVENT0_IMASK_DIO0_A :: INT_EVENT0_IMASK_DIO0_CLR , true => INT_EVENT0_IMASK_DIO0_A :: INT_EVENT0_IMASK_DIO0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dio0_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DIO0_A :: INT_EVENT0_IMASK_DIO0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dio0_set (& self) -> bool { * self == INT_EVENT0_IMASK_DIO0_A :: INT_EVENT0_IMASK_DIO0_SET } } # [doc = "Field `INT_EVENT0_IMASK_DIO0` writer - DIO0 event mask"]
pub type INT_EVENT0_IMASK_DIO0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DIO0_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DIO0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dio0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO0_A :: INT_EVENT0_IMASK_DIO0_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dio0_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO0_A :: INT_EVENT0_IMASK_DIO0_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DIO1` reader - DIO1 event mask"]
pub type INT_EVENT0_IMASK_DIO1_R = crate :: BitReader < INT_EVENT0_IMASK_DIO1_A > ; # [doc = "DIO1 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DIO1_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DIO1_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DIO1_SET = 1 , } impl From < INT_EVENT0_IMASK_DIO1_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DIO1_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DIO1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DIO1_A { match self . bits { false => INT_EVENT0_IMASK_DIO1_A :: INT_EVENT0_IMASK_DIO1_CLR , true => INT_EVENT0_IMASK_DIO1_A :: INT_EVENT0_IMASK_DIO1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dio1_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DIO1_A :: INT_EVENT0_IMASK_DIO1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dio1_set (& self) -> bool { * self == INT_EVENT0_IMASK_DIO1_A :: INT_EVENT0_IMASK_DIO1_SET } } # [doc = "Field `INT_EVENT0_IMASK_DIO1` writer - DIO1 event mask"]
pub type INT_EVENT0_IMASK_DIO1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DIO1_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DIO1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dio1_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO1_A :: INT_EVENT0_IMASK_DIO1_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dio1_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO1_A :: INT_EVENT0_IMASK_DIO1_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DIO2` reader - DIO2 event mask"]
pub type INT_EVENT0_IMASK_DIO2_R = crate :: BitReader < INT_EVENT0_IMASK_DIO2_A > ; # [doc = "DIO2 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DIO2_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DIO2_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DIO2_SET = 1 , } impl From < INT_EVENT0_IMASK_DIO2_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DIO2_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DIO2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DIO2_A { match self . bits { false => INT_EVENT0_IMASK_DIO2_A :: INT_EVENT0_IMASK_DIO2_CLR , true => INT_EVENT0_IMASK_DIO2_A :: INT_EVENT0_IMASK_DIO2_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dio2_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DIO2_A :: INT_EVENT0_IMASK_DIO2_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dio2_set (& self) -> bool { * self == INT_EVENT0_IMASK_DIO2_A :: INT_EVENT0_IMASK_DIO2_SET } } # [doc = "Field `INT_EVENT0_IMASK_DIO2` writer - DIO2 event mask"]
pub type INT_EVENT0_IMASK_DIO2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DIO2_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DIO2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dio2_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO2_A :: INT_EVENT0_IMASK_DIO2_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dio2_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO2_A :: INT_EVENT0_IMASK_DIO2_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DIO3` reader - DIO3 event mask"]
pub type INT_EVENT0_IMASK_DIO3_R = crate :: BitReader < INT_EVENT0_IMASK_DIO3_A > ; # [doc = "DIO3 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DIO3_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DIO3_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DIO3_SET = 1 , } impl From < INT_EVENT0_IMASK_DIO3_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DIO3_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DIO3_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DIO3_A { match self . bits { false => INT_EVENT0_IMASK_DIO3_A :: INT_EVENT0_IMASK_DIO3_CLR , true => INT_EVENT0_IMASK_DIO3_A :: INT_EVENT0_IMASK_DIO3_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dio3_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DIO3_A :: INT_EVENT0_IMASK_DIO3_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dio3_set (& self) -> bool { * self == INT_EVENT0_IMASK_DIO3_A :: INT_EVENT0_IMASK_DIO3_SET } } # [doc = "Field `INT_EVENT0_IMASK_DIO3` writer - DIO3 event mask"]
pub type INT_EVENT0_IMASK_DIO3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DIO3_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DIO3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dio3_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO3_A :: INT_EVENT0_IMASK_DIO3_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dio3_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO3_A :: INT_EVENT0_IMASK_DIO3_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DIO4` reader - DIO4 event mask"]
pub type INT_EVENT0_IMASK_DIO4_R = crate :: BitReader < INT_EVENT0_IMASK_DIO4_A > ; # [doc = "DIO4 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DIO4_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DIO4_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DIO4_SET = 1 , } impl From < INT_EVENT0_IMASK_DIO4_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DIO4_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DIO4_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DIO4_A { match self . bits { false => INT_EVENT0_IMASK_DIO4_A :: INT_EVENT0_IMASK_DIO4_CLR , true => INT_EVENT0_IMASK_DIO4_A :: INT_EVENT0_IMASK_DIO4_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dio4_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DIO4_A :: INT_EVENT0_IMASK_DIO4_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dio4_set (& self) -> bool { * self == INT_EVENT0_IMASK_DIO4_A :: INT_EVENT0_IMASK_DIO4_SET } } # [doc = "Field `INT_EVENT0_IMASK_DIO4` writer - DIO4 event mask"]
pub type INT_EVENT0_IMASK_DIO4_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DIO4_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DIO4_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dio4_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO4_A :: INT_EVENT0_IMASK_DIO4_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dio4_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO4_A :: INT_EVENT0_IMASK_DIO4_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DIO5` reader - DIO5 event mask"]
pub type INT_EVENT0_IMASK_DIO5_R = crate :: BitReader < INT_EVENT0_IMASK_DIO5_A > ; # [doc = "DIO5 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DIO5_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DIO5_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DIO5_SET = 1 , } impl From < INT_EVENT0_IMASK_DIO5_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DIO5_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DIO5_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DIO5_A { match self . bits { false => INT_EVENT0_IMASK_DIO5_A :: INT_EVENT0_IMASK_DIO5_CLR , true => INT_EVENT0_IMASK_DIO5_A :: INT_EVENT0_IMASK_DIO5_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dio5_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DIO5_A :: INT_EVENT0_IMASK_DIO5_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dio5_set (& self) -> bool { * self == INT_EVENT0_IMASK_DIO5_A :: INT_EVENT0_IMASK_DIO5_SET } } # [doc = "Field `INT_EVENT0_IMASK_DIO5` writer - DIO5 event mask"]
pub type INT_EVENT0_IMASK_DIO5_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DIO5_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DIO5_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dio5_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO5_A :: INT_EVENT0_IMASK_DIO5_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dio5_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO5_A :: INT_EVENT0_IMASK_DIO5_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DIO6` reader - DIO6 event mask"]
pub type INT_EVENT0_IMASK_DIO6_R = crate :: BitReader < INT_EVENT0_IMASK_DIO6_A > ; # [doc = "DIO6 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DIO6_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DIO6_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DIO6_SET = 1 , } impl From < INT_EVENT0_IMASK_DIO6_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DIO6_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DIO6_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DIO6_A { match self . bits { false => INT_EVENT0_IMASK_DIO6_A :: INT_EVENT0_IMASK_DIO6_CLR , true => INT_EVENT0_IMASK_DIO6_A :: INT_EVENT0_IMASK_DIO6_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dio6_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DIO6_A :: INT_EVENT0_IMASK_DIO6_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dio6_set (& self) -> bool { * self == INT_EVENT0_IMASK_DIO6_A :: INT_EVENT0_IMASK_DIO6_SET } } # [doc = "Field `INT_EVENT0_IMASK_DIO6` writer - DIO6 event mask"]
pub type INT_EVENT0_IMASK_DIO6_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DIO6_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DIO6_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dio6_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO6_A :: INT_EVENT0_IMASK_DIO6_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dio6_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO6_A :: INT_EVENT0_IMASK_DIO6_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DIO7` reader - DIO7 event mask"]
pub type INT_EVENT0_IMASK_DIO7_R = crate :: BitReader < INT_EVENT0_IMASK_DIO7_A > ; # [doc = "DIO7 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DIO7_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DIO7_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DIO7_SET = 1 , } impl From < INT_EVENT0_IMASK_DIO7_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DIO7_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DIO7_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DIO7_A { match self . bits { false => INT_EVENT0_IMASK_DIO7_A :: INT_EVENT0_IMASK_DIO7_CLR , true => INT_EVENT0_IMASK_DIO7_A :: INT_EVENT0_IMASK_DIO7_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dio7_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DIO7_A :: INT_EVENT0_IMASK_DIO7_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dio7_set (& self) -> bool { * self == INT_EVENT0_IMASK_DIO7_A :: INT_EVENT0_IMASK_DIO7_SET } } # [doc = "Field `INT_EVENT0_IMASK_DIO7` writer - DIO7 event mask"]
pub type INT_EVENT0_IMASK_DIO7_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DIO7_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DIO7_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dio7_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO7_A :: INT_EVENT0_IMASK_DIO7_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dio7_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO7_A :: INT_EVENT0_IMASK_DIO7_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DIO8` reader - DIO8 event mask"]
pub type INT_EVENT0_IMASK_DIO8_R = crate :: BitReader < INT_EVENT0_IMASK_DIO8_A > ; # [doc = "DIO8 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DIO8_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DIO8_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DIO8_SET = 1 , } impl From < INT_EVENT0_IMASK_DIO8_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DIO8_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DIO8_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DIO8_A { match self . bits { false => INT_EVENT0_IMASK_DIO8_A :: INT_EVENT0_IMASK_DIO8_CLR , true => INT_EVENT0_IMASK_DIO8_A :: INT_EVENT0_IMASK_DIO8_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dio8_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DIO8_A :: INT_EVENT0_IMASK_DIO8_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dio8_set (& self) -> bool { * self == INT_EVENT0_IMASK_DIO8_A :: INT_EVENT0_IMASK_DIO8_SET } } # [doc = "Field `INT_EVENT0_IMASK_DIO8` writer - DIO8 event mask"]
pub type INT_EVENT0_IMASK_DIO8_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DIO8_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DIO8_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dio8_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO8_A :: INT_EVENT0_IMASK_DIO8_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dio8_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO8_A :: INT_EVENT0_IMASK_DIO8_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DIO9` reader - DIO9 event mask"]
pub type INT_EVENT0_IMASK_DIO9_R = crate :: BitReader < INT_EVENT0_IMASK_DIO9_A > ; # [doc = "DIO9 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DIO9_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DIO9_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DIO9_SET = 1 , } impl From < INT_EVENT0_IMASK_DIO9_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DIO9_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DIO9_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DIO9_A { match self . bits { false => INT_EVENT0_IMASK_DIO9_A :: INT_EVENT0_IMASK_DIO9_CLR , true => INT_EVENT0_IMASK_DIO9_A :: INT_EVENT0_IMASK_DIO9_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dio9_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DIO9_A :: INT_EVENT0_IMASK_DIO9_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dio9_set (& self) -> bool { * self == INT_EVENT0_IMASK_DIO9_A :: INT_EVENT0_IMASK_DIO9_SET } } # [doc = "Field `INT_EVENT0_IMASK_DIO9` writer - DIO9 event mask"]
pub type INT_EVENT0_IMASK_DIO9_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DIO9_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DIO9_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dio9_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO9_A :: INT_EVENT0_IMASK_DIO9_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dio9_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO9_A :: INT_EVENT0_IMASK_DIO9_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DIO10` reader - DIO10 event mask"]
pub type INT_EVENT0_IMASK_DIO10_R = crate :: BitReader < INT_EVENT0_IMASK_DIO10_A > ; # [doc = "DIO10 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DIO10_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DIO10_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DIO10_SET = 1 , } impl From < INT_EVENT0_IMASK_DIO10_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DIO10_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DIO10_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DIO10_A { match self . bits { false => INT_EVENT0_IMASK_DIO10_A :: INT_EVENT0_IMASK_DIO10_CLR , true => INT_EVENT0_IMASK_DIO10_A :: INT_EVENT0_IMASK_DIO10_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dio10_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DIO10_A :: INT_EVENT0_IMASK_DIO10_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dio10_set (& self) -> bool { * self == INT_EVENT0_IMASK_DIO10_A :: INT_EVENT0_IMASK_DIO10_SET } } # [doc = "Field `INT_EVENT0_IMASK_DIO10` writer - DIO10 event mask"]
pub type INT_EVENT0_IMASK_DIO10_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DIO10_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DIO10_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dio10_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO10_A :: INT_EVENT0_IMASK_DIO10_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dio10_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO10_A :: INT_EVENT0_IMASK_DIO10_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DIO11` reader - DIO11 event mask"]
pub type INT_EVENT0_IMASK_DIO11_R = crate :: BitReader < INT_EVENT0_IMASK_DIO11_A > ; # [doc = "DIO11 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DIO11_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DIO11_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DIO11_SET = 1 , } impl From < INT_EVENT0_IMASK_DIO11_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DIO11_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DIO11_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DIO11_A { match self . bits { false => INT_EVENT0_IMASK_DIO11_A :: INT_EVENT0_IMASK_DIO11_CLR , true => INT_EVENT0_IMASK_DIO11_A :: INT_EVENT0_IMASK_DIO11_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dio11_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DIO11_A :: INT_EVENT0_IMASK_DIO11_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dio11_set (& self) -> bool { * self == INT_EVENT0_IMASK_DIO11_A :: INT_EVENT0_IMASK_DIO11_SET } } # [doc = "Field `INT_EVENT0_IMASK_DIO11` writer - DIO11 event mask"]
pub type INT_EVENT0_IMASK_DIO11_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DIO11_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DIO11_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dio11_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO11_A :: INT_EVENT0_IMASK_DIO11_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dio11_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO11_A :: INT_EVENT0_IMASK_DIO11_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DIO12` reader - DIO12 event mask"]
pub type INT_EVENT0_IMASK_DIO12_R = crate :: BitReader < INT_EVENT0_IMASK_DIO12_A > ; # [doc = "DIO12 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DIO12_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DIO12_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DIO12_SET = 1 , } impl From < INT_EVENT0_IMASK_DIO12_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DIO12_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DIO12_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DIO12_A { match self . bits { false => INT_EVENT0_IMASK_DIO12_A :: INT_EVENT0_IMASK_DIO12_CLR , true => INT_EVENT0_IMASK_DIO12_A :: INT_EVENT0_IMASK_DIO12_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dio12_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DIO12_A :: INT_EVENT0_IMASK_DIO12_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dio12_set (& self) -> bool { * self == INT_EVENT0_IMASK_DIO12_A :: INT_EVENT0_IMASK_DIO12_SET } } # [doc = "Field `INT_EVENT0_IMASK_DIO12` writer - DIO12 event mask"]
pub type INT_EVENT0_IMASK_DIO12_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DIO12_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DIO12_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dio12_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO12_A :: INT_EVENT0_IMASK_DIO12_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dio12_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO12_A :: INT_EVENT0_IMASK_DIO12_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DIO13` reader - DIO13 event mask"]
pub type INT_EVENT0_IMASK_DIO13_R = crate :: BitReader < INT_EVENT0_IMASK_DIO13_A > ; # [doc = "DIO13 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DIO13_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DIO13_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DIO13_SET = 1 , } impl From < INT_EVENT0_IMASK_DIO13_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DIO13_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DIO13_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DIO13_A { match self . bits { false => INT_EVENT0_IMASK_DIO13_A :: INT_EVENT0_IMASK_DIO13_CLR , true => INT_EVENT0_IMASK_DIO13_A :: INT_EVENT0_IMASK_DIO13_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dio13_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DIO13_A :: INT_EVENT0_IMASK_DIO13_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dio13_set (& self) -> bool { * self == INT_EVENT0_IMASK_DIO13_A :: INT_EVENT0_IMASK_DIO13_SET } } # [doc = "Field `INT_EVENT0_IMASK_DIO13` writer - DIO13 event mask"]
pub type INT_EVENT0_IMASK_DIO13_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DIO13_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DIO13_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dio13_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO13_A :: INT_EVENT0_IMASK_DIO13_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dio13_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO13_A :: INT_EVENT0_IMASK_DIO13_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DIO14` reader - DIO14 event mask"]
pub type INT_EVENT0_IMASK_DIO14_R = crate :: BitReader < INT_EVENT0_IMASK_DIO14_A > ; # [doc = "DIO14 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DIO14_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DIO14_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DIO14_SET = 1 , } impl From < INT_EVENT0_IMASK_DIO14_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DIO14_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DIO14_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DIO14_A { match self . bits { false => INT_EVENT0_IMASK_DIO14_A :: INT_EVENT0_IMASK_DIO14_CLR , true => INT_EVENT0_IMASK_DIO14_A :: INT_EVENT0_IMASK_DIO14_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dio14_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DIO14_A :: INT_EVENT0_IMASK_DIO14_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dio14_set (& self) -> bool { * self == INT_EVENT0_IMASK_DIO14_A :: INT_EVENT0_IMASK_DIO14_SET } } # [doc = "Field `INT_EVENT0_IMASK_DIO14` writer - DIO14 event mask"]
pub type INT_EVENT0_IMASK_DIO14_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DIO14_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DIO14_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dio14_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO14_A :: INT_EVENT0_IMASK_DIO14_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dio14_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO14_A :: INT_EVENT0_IMASK_DIO14_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DIO15` reader - DIO15 event mask"]
pub type INT_EVENT0_IMASK_DIO15_R = crate :: BitReader < INT_EVENT0_IMASK_DIO15_A > ; # [doc = "DIO15 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DIO15_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DIO15_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DIO15_SET = 1 , } impl From < INT_EVENT0_IMASK_DIO15_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DIO15_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DIO15_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DIO15_A { match self . bits { false => INT_EVENT0_IMASK_DIO15_A :: INT_EVENT0_IMASK_DIO15_CLR , true => INT_EVENT0_IMASK_DIO15_A :: INT_EVENT0_IMASK_DIO15_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dio15_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DIO15_A :: INT_EVENT0_IMASK_DIO15_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dio15_set (& self) -> bool { * self == INT_EVENT0_IMASK_DIO15_A :: INT_EVENT0_IMASK_DIO15_SET } } # [doc = "Field `INT_EVENT0_IMASK_DIO15` writer - DIO15 event mask"]
pub type INT_EVENT0_IMASK_DIO15_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DIO15_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DIO15_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dio15_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO15_A :: INT_EVENT0_IMASK_DIO15_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dio15_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO15_A :: INT_EVENT0_IMASK_DIO15_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DIO16` reader - DIO16 event mask"]
pub type INT_EVENT0_IMASK_DIO16_R = crate :: BitReader < INT_EVENT0_IMASK_DIO16_A > ; # [doc = "DIO16 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DIO16_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DIO16_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DIO16_SET = 1 , } impl From < INT_EVENT0_IMASK_DIO16_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DIO16_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DIO16_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DIO16_A { match self . bits { false => INT_EVENT0_IMASK_DIO16_A :: INT_EVENT0_IMASK_DIO16_CLR , true => INT_EVENT0_IMASK_DIO16_A :: INT_EVENT0_IMASK_DIO16_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dio16_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DIO16_A :: INT_EVENT0_IMASK_DIO16_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dio16_set (& self) -> bool { * self == INT_EVENT0_IMASK_DIO16_A :: INT_EVENT0_IMASK_DIO16_SET } } # [doc = "Field `INT_EVENT0_IMASK_DIO16` writer - DIO16 event mask"]
pub type INT_EVENT0_IMASK_DIO16_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DIO16_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DIO16_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dio16_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO16_A :: INT_EVENT0_IMASK_DIO16_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dio16_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO16_A :: INT_EVENT0_IMASK_DIO16_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DIO17` reader - DIO17 event mask"]
pub type INT_EVENT0_IMASK_DIO17_R = crate :: BitReader < INT_EVENT0_IMASK_DIO17_A > ; # [doc = "DIO17 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DIO17_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DIO17_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DIO17_SET = 1 , } impl From < INT_EVENT0_IMASK_DIO17_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DIO17_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DIO17_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DIO17_A { match self . bits { false => INT_EVENT0_IMASK_DIO17_A :: INT_EVENT0_IMASK_DIO17_CLR , true => INT_EVENT0_IMASK_DIO17_A :: INT_EVENT0_IMASK_DIO17_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dio17_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DIO17_A :: INT_EVENT0_IMASK_DIO17_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dio17_set (& self) -> bool { * self == INT_EVENT0_IMASK_DIO17_A :: INT_EVENT0_IMASK_DIO17_SET } } # [doc = "Field `INT_EVENT0_IMASK_DIO17` writer - DIO17 event mask"]
pub type INT_EVENT0_IMASK_DIO17_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DIO17_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DIO17_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dio17_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO17_A :: INT_EVENT0_IMASK_DIO17_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dio17_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO17_A :: INT_EVENT0_IMASK_DIO17_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DIO18` reader - DIO18 event mask"]
pub type INT_EVENT0_IMASK_DIO18_R = crate :: BitReader < INT_EVENT0_IMASK_DIO18_A > ; # [doc = "DIO18 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DIO18_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DIO18_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DIO18_SET = 1 , } impl From < INT_EVENT0_IMASK_DIO18_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DIO18_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DIO18_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DIO18_A { match self . bits { false => INT_EVENT0_IMASK_DIO18_A :: INT_EVENT0_IMASK_DIO18_CLR , true => INT_EVENT0_IMASK_DIO18_A :: INT_EVENT0_IMASK_DIO18_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dio18_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DIO18_A :: INT_EVENT0_IMASK_DIO18_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dio18_set (& self) -> bool { * self == INT_EVENT0_IMASK_DIO18_A :: INT_EVENT0_IMASK_DIO18_SET } } # [doc = "Field `INT_EVENT0_IMASK_DIO18` writer - DIO18 event mask"]
pub type INT_EVENT0_IMASK_DIO18_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DIO18_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DIO18_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dio18_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO18_A :: INT_EVENT0_IMASK_DIO18_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dio18_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO18_A :: INT_EVENT0_IMASK_DIO18_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DIO19` reader - DIO19 event mask"]
pub type INT_EVENT0_IMASK_DIO19_R = crate :: BitReader < INT_EVENT0_IMASK_DIO19_A > ; # [doc = "DIO19 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DIO19_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DIO19_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DIO19_SET = 1 , } impl From < INT_EVENT0_IMASK_DIO19_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DIO19_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DIO19_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DIO19_A { match self . bits { false => INT_EVENT0_IMASK_DIO19_A :: INT_EVENT0_IMASK_DIO19_CLR , true => INT_EVENT0_IMASK_DIO19_A :: INT_EVENT0_IMASK_DIO19_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dio19_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DIO19_A :: INT_EVENT0_IMASK_DIO19_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dio19_set (& self) -> bool { * self == INT_EVENT0_IMASK_DIO19_A :: INT_EVENT0_IMASK_DIO19_SET } } # [doc = "Field `INT_EVENT0_IMASK_DIO19` writer - DIO19 event mask"]
pub type INT_EVENT0_IMASK_DIO19_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DIO19_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DIO19_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dio19_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO19_A :: INT_EVENT0_IMASK_DIO19_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dio19_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO19_A :: INT_EVENT0_IMASK_DIO19_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DIO20` reader - DIO20 event mask"]
pub type INT_EVENT0_IMASK_DIO20_R = crate :: BitReader < INT_EVENT0_IMASK_DIO20_A > ; # [doc = "DIO20 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DIO20_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DIO20_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DIO20_SET = 1 , } impl From < INT_EVENT0_IMASK_DIO20_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DIO20_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DIO20_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DIO20_A { match self . bits { false => INT_EVENT0_IMASK_DIO20_A :: INT_EVENT0_IMASK_DIO20_CLR , true => INT_EVENT0_IMASK_DIO20_A :: INT_EVENT0_IMASK_DIO20_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dio20_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DIO20_A :: INT_EVENT0_IMASK_DIO20_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dio20_set (& self) -> bool { * self == INT_EVENT0_IMASK_DIO20_A :: INT_EVENT0_IMASK_DIO20_SET } } # [doc = "Field `INT_EVENT0_IMASK_DIO20` writer - DIO20 event mask"]
pub type INT_EVENT0_IMASK_DIO20_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DIO20_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DIO20_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dio20_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO20_A :: INT_EVENT0_IMASK_DIO20_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dio20_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO20_A :: INT_EVENT0_IMASK_DIO20_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DIO21` reader - DIO21 event mask"]
pub type INT_EVENT0_IMASK_DIO21_R = crate :: BitReader < INT_EVENT0_IMASK_DIO21_A > ; # [doc = "DIO21 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DIO21_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DIO21_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DIO21_SET = 1 , } impl From < INT_EVENT0_IMASK_DIO21_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DIO21_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DIO21_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DIO21_A { match self . bits { false => INT_EVENT0_IMASK_DIO21_A :: INT_EVENT0_IMASK_DIO21_CLR , true => INT_EVENT0_IMASK_DIO21_A :: INT_EVENT0_IMASK_DIO21_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dio21_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DIO21_A :: INT_EVENT0_IMASK_DIO21_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dio21_set (& self) -> bool { * self == INT_EVENT0_IMASK_DIO21_A :: INT_EVENT0_IMASK_DIO21_SET } } # [doc = "Field `INT_EVENT0_IMASK_DIO21` writer - DIO21 event mask"]
pub type INT_EVENT0_IMASK_DIO21_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DIO21_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DIO21_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dio21_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO21_A :: INT_EVENT0_IMASK_DIO21_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dio21_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO21_A :: INT_EVENT0_IMASK_DIO21_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DIO22` reader - DIO22 event mask"]
pub type INT_EVENT0_IMASK_DIO22_R = crate :: BitReader < INT_EVENT0_IMASK_DIO22_A > ; # [doc = "DIO22 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DIO22_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DIO22_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DIO22_SET = 1 , } impl From < INT_EVENT0_IMASK_DIO22_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DIO22_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DIO22_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DIO22_A { match self . bits { false => INT_EVENT0_IMASK_DIO22_A :: INT_EVENT0_IMASK_DIO22_CLR , true => INT_EVENT0_IMASK_DIO22_A :: INT_EVENT0_IMASK_DIO22_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dio22_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DIO22_A :: INT_EVENT0_IMASK_DIO22_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dio22_set (& self) -> bool { * self == INT_EVENT0_IMASK_DIO22_A :: INT_EVENT0_IMASK_DIO22_SET } } # [doc = "Field `INT_EVENT0_IMASK_DIO22` writer - DIO22 event mask"]
pub type INT_EVENT0_IMASK_DIO22_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DIO22_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DIO22_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dio22_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO22_A :: INT_EVENT0_IMASK_DIO22_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dio22_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO22_A :: INT_EVENT0_IMASK_DIO22_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DIO23` reader - DIO23 event mask"]
pub type INT_EVENT0_IMASK_DIO23_R = crate :: BitReader < INT_EVENT0_IMASK_DIO23_A > ; # [doc = "DIO23 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DIO23_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DIO23_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DIO23_SET = 1 , } impl From < INT_EVENT0_IMASK_DIO23_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DIO23_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DIO23_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DIO23_A { match self . bits { false => INT_EVENT0_IMASK_DIO23_A :: INT_EVENT0_IMASK_DIO23_CLR , true => INT_EVENT0_IMASK_DIO23_A :: INT_EVENT0_IMASK_DIO23_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dio23_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DIO23_A :: INT_EVENT0_IMASK_DIO23_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dio23_set (& self) -> bool { * self == INT_EVENT0_IMASK_DIO23_A :: INT_EVENT0_IMASK_DIO23_SET } } # [doc = "Field `INT_EVENT0_IMASK_DIO23` writer - DIO23 event mask"]
pub type INT_EVENT0_IMASK_DIO23_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DIO23_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DIO23_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dio23_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO23_A :: INT_EVENT0_IMASK_DIO23_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dio23_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO23_A :: INT_EVENT0_IMASK_DIO23_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DIO24` reader - DIO24 event mask"]
pub type INT_EVENT0_IMASK_DIO24_R = crate :: BitReader < INT_EVENT0_IMASK_DIO24_A > ; # [doc = "DIO24 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DIO24_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DIO24_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DIO24_SET = 1 , } impl From < INT_EVENT0_IMASK_DIO24_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DIO24_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DIO24_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DIO24_A { match self . bits { false => INT_EVENT0_IMASK_DIO24_A :: INT_EVENT0_IMASK_DIO24_CLR , true => INT_EVENT0_IMASK_DIO24_A :: INT_EVENT0_IMASK_DIO24_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dio24_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DIO24_A :: INT_EVENT0_IMASK_DIO24_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dio24_set (& self) -> bool { * self == INT_EVENT0_IMASK_DIO24_A :: INT_EVENT0_IMASK_DIO24_SET } } # [doc = "Field `INT_EVENT0_IMASK_DIO24` writer - DIO24 event mask"]
pub type INT_EVENT0_IMASK_DIO24_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DIO24_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DIO24_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dio24_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO24_A :: INT_EVENT0_IMASK_DIO24_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dio24_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO24_A :: INT_EVENT0_IMASK_DIO24_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DIO25` reader - DIO25 event mask"]
pub type INT_EVENT0_IMASK_DIO25_R = crate :: BitReader < INT_EVENT0_IMASK_DIO25_A > ; # [doc = "DIO25 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DIO25_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DIO25_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DIO25_SET = 1 , } impl From < INT_EVENT0_IMASK_DIO25_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DIO25_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DIO25_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DIO25_A { match self . bits { false => INT_EVENT0_IMASK_DIO25_A :: INT_EVENT0_IMASK_DIO25_CLR , true => INT_EVENT0_IMASK_DIO25_A :: INT_EVENT0_IMASK_DIO25_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dio25_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DIO25_A :: INT_EVENT0_IMASK_DIO25_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dio25_set (& self) -> bool { * self == INT_EVENT0_IMASK_DIO25_A :: INT_EVENT0_IMASK_DIO25_SET } } # [doc = "Field `INT_EVENT0_IMASK_DIO25` writer - DIO25 event mask"]
pub type INT_EVENT0_IMASK_DIO25_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DIO25_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DIO25_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dio25_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO25_A :: INT_EVENT0_IMASK_DIO25_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dio25_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO25_A :: INT_EVENT0_IMASK_DIO25_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DIO26` reader - DIO26 event mask"]
pub type INT_EVENT0_IMASK_DIO26_R = crate :: BitReader < INT_EVENT0_IMASK_DIO26_A > ; # [doc = "DIO26 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DIO26_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DIO26_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DIO26_SET = 1 , } impl From < INT_EVENT0_IMASK_DIO26_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DIO26_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DIO26_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DIO26_A { match self . bits { false => INT_EVENT0_IMASK_DIO26_A :: INT_EVENT0_IMASK_DIO26_CLR , true => INT_EVENT0_IMASK_DIO26_A :: INT_EVENT0_IMASK_DIO26_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dio26_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DIO26_A :: INT_EVENT0_IMASK_DIO26_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dio26_set (& self) -> bool { * self == INT_EVENT0_IMASK_DIO26_A :: INT_EVENT0_IMASK_DIO26_SET } } # [doc = "Field `INT_EVENT0_IMASK_DIO26` writer - DIO26 event mask"]
pub type INT_EVENT0_IMASK_DIO26_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DIO26_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DIO26_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dio26_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO26_A :: INT_EVENT0_IMASK_DIO26_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dio26_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO26_A :: INT_EVENT0_IMASK_DIO26_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DIO27` reader - DIO27 event mask"]
pub type INT_EVENT0_IMASK_DIO27_R = crate :: BitReader < INT_EVENT0_IMASK_DIO27_A > ; # [doc = "DIO27 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DIO27_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DIO27_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DIO27_SET = 1 , } impl From < INT_EVENT0_IMASK_DIO27_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DIO27_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DIO27_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DIO27_A { match self . bits { false => INT_EVENT0_IMASK_DIO27_A :: INT_EVENT0_IMASK_DIO27_CLR , true => INT_EVENT0_IMASK_DIO27_A :: INT_EVENT0_IMASK_DIO27_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dio27_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DIO27_A :: INT_EVENT0_IMASK_DIO27_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dio27_set (& self) -> bool { * self == INT_EVENT0_IMASK_DIO27_A :: INT_EVENT0_IMASK_DIO27_SET } } # [doc = "Field `INT_EVENT0_IMASK_DIO27` writer - DIO27 event mask"]
pub type INT_EVENT0_IMASK_DIO27_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DIO27_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DIO27_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dio27_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO27_A :: INT_EVENT0_IMASK_DIO27_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dio27_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO27_A :: INT_EVENT0_IMASK_DIO27_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DIO28` reader - DIO28 event mask"]
pub type INT_EVENT0_IMASK_DIO28_R = crate :: BitReader < INT_EVENT0_IMASK_DIO28_A > ; # [doc = "DIO28 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DIO28_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DIO28_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DIO28_SET = 1 , } impl From < INT_EVENT0_IMASK_DIO28_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DIO28_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DIO28_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DIO28_A { match self . bits { false => INT_EVENT0_IMASK_DIO28_A :: INT_EVENT0_IMASK_DIO28_CLR , true => INT_EVENT0_IMASK_DIO28_A :: INT_EVENT0_IMASK_DIO28_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dio28_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DIO28_A :: INT_EVENT0_IMASK_DIO28_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dio28_set (& self) -> bool { * self == INT_EVENT0_IMASK_DIO28_A :: INT_EVENT0_IMASK_DIO28_SET } } # [doc = "Field `INT_EVENT0_IMASK_DIO28` writer - DIO28 event mask"]
pub type INT_EVENT0_IMASK_DIO28_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DIO28_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DIO28_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dio28_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO28_A :: INT_EVENT0_IMASK_DIO28_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dio28_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO28_A :: INT_EVENT0_IMASK_DIO28_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DIO29` reader - DIO29 event mask"]
pub type INT_EVENT0_IMASK_DIO29_R = crate :: BitReader < INT_EVENT0_IMASK_DIO29_A > ; # [doc = "DIO29 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DIO29_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DIO29_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DIO29_SET = 1 , } impl From < INT_EVENT0_IMASK_DIO29_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DIO29_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DIO29_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DIO29_A { match self . bits { false => INT_EVENT0_IMASK_DIO29_A :: INT_EVENT0_IMASK_DIO29_CLR , true => INT_EVENT0_IMASK_DIO29_A :: INT_EVENT0_IMASK_DIO29_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dio29_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DIO29_A :: INT_EVENT0_IMASK_DIO29_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dio29_set (& self) -> bool { * self == INT_EVENT0_IMASK_DIO29_A :: INT_EVENT0_IMASK_DIO29_SET } } # [doc = "Field `INT_EVENT0_IMASK_DIO29` writer - DIO29 event mask"]
pub type INT_EVENT0_IMASK_DIO29_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DIO29_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DIO29_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dio29_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO29_A :: INT_EVENT0_IMASK_DIO29_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dio29_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO29_A :: INT_EVENT0_IMASK_DIO29_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DIO30` reader - DIO30 event mask"]
pub type INT_EVENT0_IMASK_DIO30_R = crate :: BitReader < INT_EVENT0_IMASK_DIO30_A > ; # [doc = "DIO30 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DIO30_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DIO30_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DIO30_SET = 1 , } impl From < INT_EVENT0_IMASK_DIO30_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DIO30_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DIO30_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DIO30_A { match self . bits { false => INT_EVENT0_IMASK_DIO30_A :: INT_EVENT0_IMASK_DIO30_CLR , true => INT_EVENT0_IMASK_DIO30_A :: INT_EVENT0_IMASK_DIO30_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dio30_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DIO30_A :: INT_EVENT0_IMASK_DIO30_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dio30_set (& self) -> bool { * self == INT_EVENT0_IMASK_DIO30_A :: INT_EVENT0_IMASK_DIO30_SET } } # [doc = "Field `INT_EVENT0_IMASK_DIO30` writer - DIO30 event mask"]
pub type INT_EVENT0_IMASK_DIO30_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DIO30_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DIO30_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dio30_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO30_A :: INT_EVENT0_IMASK_DIO30_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dio30_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO30_A :: INT_EVENT0_IMASK_DIO30_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DIO31` reader - DIO31 event mask"]
pub type INT_EVENT0_IMASK_DIO31_R = crate :: BitReader < INT_EVENT0_IMASK_DIO31_A > ; # [doc = "DIO31 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DIO31_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DIO31_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DIO31_SET = 1 , } impl From < INT_EVENT0_IMASK_DIO31_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DIO31_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DIO31_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DIO31_A { match self . bits { false => INT_EVENT0_IMASK_DIO31_A :: INT_EVENT0_IMASK_DIO31_CLR , true => INT_EVENT0_IMASK_DIO31_A :: INT_EVENT0_IMASK_DIO31_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dio31_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DIO31_A :: INT_EVENT0_IMASK_DIO31_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dio31_set (& self) -> bool { * self == INT_EVENT0_IMASK_DIO31_A :: INT_EVENT0_IMASK_DIO31_SET } } # [doc = "Field `INT_EVENT0_IMASK_DIO31` writer - DIO31 event mask"]
pub type INT_EVENT0_IMASK_DIO31_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DIO31_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DIO31_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dio31_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO31_A :: INT_EVENT0_IMASK_DIO31_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dio31_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DIO31_A :: INT_EVENT0_IMASK_DIO31_SET) } } impl R { # [doc = "Bit 0 - DIO0 event mask"]
# [inline (always)]
pub fn int_event0_imask_dio0 (& self) -> INT_EVENT0_IMASK_DIO0_R { INT_EVENT0_IMASK_DIO0_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - DIO1 event mask"]
# [inline (always)]
pub fn int_event0_imask_dio1 (& self) -> INT_EVENT0_IMASK_DIO1_R { INT_EVENT0_IMASK_DIO1_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - DIO2 event mask"]
# [inline (always)]
pub fn int_event0_imask_dio2 (& self) -> INT_EVENT0_IMASK_DIO2_R { INT_EVENT0_IMASK_DIO2_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - DIO3 event mask"]
# [inline (always)]
pub fn int_event0_imask_dio3 (& self) -> INT_EVENT0_IMASK_DIO3_R { INT_EVENT0_IMASK_DIO3_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - DIO4 event mask"]
# [inline (always)]
pub fn int_event0_imask_dio4 (& self) -> INT_EVENT0_IMASK_DIO4_R { INT_EVENT0_IMASK_DIO4_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - DIO5 event mask"]
# [inline (always)]
pub fn int_event0_imask_dio5 (& self) -> INT_EVENT0_IMASK_DIO5_R { INT_EVENT0_IMASK_DIO5_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - DIO6 event mask"]
# [inline (always)]
pub fn int_event0_imask_dio6 (& self) -> INT_EVENT0_IMASK_DIO6_R { INT_EVENT0_IMASK_DIO6_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 7 - DIO7 event mask"]
# [inline (always)]
pub fn int_event0_imask_dio7 (& self) -> INT_EVENT0_IMASK_DIO7_R { INT_EVENT0_IMASK_DIO7_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - DIO8 event mask"]
# [inline (always)]
pub fn int_event0_imask_dio8 (& self) -> INT_EVENT0_IMASK_DIO8_R { INT_EVENT0_IMASK_DIO8_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - DIO9 event mask"]
# [inline (always)]
pub fn int_event0_imask_dio9 (& self) -> INT_EVENT0_IMASK_DIO9_R { INT_EVENT0_IMASK_DIO9_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - DIO10 event mask"]
# [inline (always)]
pub fn int_event0_imask_dio10 (& self) -> INT_EVENT0_IMASK_DIO10_R { INT_EVENT0_IMASK_DIO10_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bit 11 - DIO11 event mask"]
# [inline (always)]
pub fn int_event0_imask_dio11 (& self) -> INT_EVENT0_IMASK_DIO11_R { INT_EVENT0_IMASK_DIO11_R :: new (((self . bits >> 11) & 1) != 0) } # [doc = "Bit 12 - DIO12 event mask"]
# [inline (always)]
pub fn int_event0_imask_dio12 (& self) -> INT_EVENT0_IMASK_DIO12_R { INT_EVENT0_IMASK_DIO12_R :: new (((self . bits >> 12) & 1) != 0) } # [doc = "Bit 13 - DIO13 event mask"]
# [inline (always)]
pub fn int_event0_imask_dio13 (& self) -> INT_EVENT0_IMASK_DIO13_R { INT_EVENT0_IMASK_DIO13_R :: new (((self . bits >> 13) & 1) != 0) } # [doc = "Bit 14 - DIO14 event mask"]
# [inline (always)]
pub fn int_event0_imask_dio14 (& self) -> INT_EVENT0_IMASK_DIO14_R { INT_EVENT0_IMASK_DIO14_R :: new (((self . bits >> 14) & 1) != 0) } # [doc = "Bit 15 - DIO15 event mask"]
# [inline (always)]
pub fn int_event0_imask_dio15 (& self) -> INT_EVENT0_IMASK_DIO15_R { INT_EVENT0_IMASK_DIO15_R :: new (((self . bits >> 15) & 1) != 0) } # [doc = "Bit 16 - DIO16 event mask"]
# [inline (always)]
pub fn int_event0_imask_dio16 (& self) -> INT_EVENT0_IMASK_DIO16_R { INT_EVENT0_IMASK_DIO16_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 17 - DIO17 event mask"]
# [inline (always)]
pub fn int_event0_imask_dio17 (& self) -> INT_EVENT0_IMASK_DIO17_R { INT_EVENT0_IMASK_DIO17_R :: new (((self . bits >> 17) & 1) != 0) } # [doc = "Bit 18 - DIO18 event mask"]
# [inline (always)]
pub fn int_event0_imask_dio18 (& self) -> INT_EVENT0_IMASK_DIO18_R { INT_EVENT0_IMASK_DIO18_R :: new (((self . bits >> 18) & 1) != 0) } # [doc = "Bit 19 - DIO19 event mask"]
# [inline (always)]
pub fn int_event0_imask_dio19 (& self) -> INT_EVENT0_IMASK_DIO19_R { INT_EVENT0_IMASK_DIO19_R :: new (((self . bits >> 19) & 1) != 0) } # [doc = "Bit 20 - DIO20 event mask"]
# [inline (always)]
pub fn int_event0_imask_dio20 (& self) -> INT_EVENT0_IMASK_DIO20_R { INT_EVENT0_IMASK_DIO20_R :: new (((self . bits >> 20) & 1) != 0) } # [doc = "Bit 21 - DIO21 event mask"]
# [inline (always)]
pub fn int_event0_imask_dio21 (& self) -> INT_EVENT0_IMASK_DIO21_R { INT_EVENT0_IMASK_DIO21_R :: new (((self . bits >> 21) & 1) != 0) } # [doc = "Bit 22 - DIO22 event mask"]
# [inline (always)]
pub fn int_event0_imask_dio22 (& self) -> INT_EVENT0_IMASK_DIO22_R { INT_EVENT0_IMASK_DIO22_R :: new (((self . bits >> 22) & 1) != 0) } # [doc = "Bit 23 - DIO23 event mask"]
# [inline (always)]
pub fn int_event0_imask_dio23 (& self) -> INT_EVENT0_IMASK_DIO23_R { INT_EVENT0_IMASK_DIO23_R :: new (((self . bits >> 23) & 1) != 0) } # [doc = "Bit 24 - DIO24 event mask"]
# [inline (always)]
pub fn int_event0_imask_dio24 (& self) -> INT_EVENT0_IMASK_DIO24_R { INT_EVENT0_IMASK_DIO24_R :: new (((self . bits >> 24) & 1) != 0) } # [doc = "Bit 25 - DIO25 event mask"]
# [inline (always)]
pub fn int_event0_imask_dio25 (& self) -> INT_EVENT0_IMASK_DIO25_R { INT_EVENT0_IMASK_DIO25_R :: new (((self . bits >> 25) & 1) != 0) } # [doc = "Bit 26 - DIO26 event mask"]
# [inline (always)]
pub fn int_event0_imask_dio26 (& self) -> INT_EVENT0_IMASK_DIO26_R { INT_EVENT0_IMASK_DIO26_R :: new (((self . bits >> 26) & 1) != 0) } # [doc = "Bit 27 - DIO27 event mask"]
# [inline (always)]
pub fn int_event0_imask_dio27 (& self) -> INT_EVENT0_IMASK_DIO27_R { INT_EVENT0_IMASK_DIO27_R :: new (((self . bits >> 27) & 1) != 0) } # [doc = "Bit 28 - DIO28 event mask"]
# [inline (always)]
pub fn int_event0_imask_dio28 (& self) -> INT_EVENT0_IMASK_DIO28_R { INT_EVENT0_IMASK_DIO28_R :: new (((self . bits >> 28) & 1) != 0) } # [doc = "Bit 29 - DIO29 event mask"]
# [inline (always)]
pub fn int_event0_imask_dio29 (& self) -> INT_EVENT0_IMASK_DIO29_R { INT_EVENT0_IMASK_DIO29_R :: new (((self . bits >> 29) & 1) != 0) } # [doc = "Bit 30 - DIO30 event mask"]
# [inline (always)]
pub fn int_event0_imask_dio30 (& self) -> INT_EVENT0_IMASK_DIO30_R { INT_EVENT0_IMASK_DIO30_R :: new (((self . bits >> 30) & 1) != 0) } # [doc = "Bit 31 - DIO31 event mask"]
# [inline (always)]
pub fn int_event0_imask_dio31 (& self) -> INT_EVENT0_IMASK_DIO31_R { INT_EVENT0_IMASK_DIO31_R :: new (((self . bits >> 31) & 1) != 0) } } impl W { # [doc = "Bit 0 - DIO0 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dio0 (& mut self) -> INT_EVENT0_IMASK_DIO0_W < INT_EVENT0_IMASK_SPEC , 0 > { INT_EVENT0_IMASK_DIO0_W :: new (self) } # [doc = "Bit 1 - DIO1 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dio1 (& mut self) -> INT_EVENT0_IMASK_DIO1_W < INT_EVENT0_IMASK_SPEC , 1 > { INT_EVENT0_IMASK_DIO1_W :: new (self) } # [doc = "Bit 2 - DIO2 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dio2 (& mut self) -> INT_EVENT0_IMASK_DIO2_W < INT_EVENT0_IMASK_SPEC , 2 > { INT_EVENT0_IMASK_DIO2_W :: new (self) } # [doc = "Bit 3 - DIO3 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dio3 (& mut self) -> INT_EVENT0_IMASK_DIO3_W < INT_EVENT0_IMASK_SPEC , 3 > { INT_EVENT0_IMASK_DIO3_W :: new (self) } # [doc = "Bit 4 - DIO4 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dio4 (& mut self) -> INT_EVENT0_IMASK_DIO4_W < INT_EVENT0_IMASK_SPEC , 4 > { INT_EVENT0_IMASK_DIO4_W :: new (self) } # [doc = "Bit 5 - DIO5 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dio5 (& mut self) -> INT_EVENT0_IMASK_DIO5_W < INT_EVENT0_IMASK_SPEC , 5 > { INT_EVENT0_IMASK_DIO5_W :: new (self) } # [doc = "Bit 6 - DIO6 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dio6 (& mut self) -> INT_EVENT0_IMASK_DIO6_W < INT_EVENT0_IMASK_SPEC , 6 > { INT_EVENT0_IMASK_DIO6_W :: new (self) } # [doc = "Bit 7 - DIO7 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dio7 (& mut self) -> INT_EVENT0_IMASK_DIO7_W < INT_EVENT0_IMASK_SPEC , 7 > { INT_EVENT0_IMASK_DIO7_W :: new (self) } # [doc = "Bit 8 - DIO8 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dio8 (& mut self) -> INT_EVENT0_IMASK_DIO8_W < INT_EVENT0_IMASK_SPEC , 8 > { INT_EVENT0_IMASK_DIO8_W :: new (self) } # [doc = "Bit 9 - DIO9 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dio9 (& mut self) -> INT_EVENT0_IMASK_DIO9_W < INT_EVENT0_IMASK_SPEC , 9 > { INT_EVENT0_IMASK_DIO9_W :: new (self) } # [doc = "Bit 10 - DIO10 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dio10 (& mut self) -> INT_EVENT0_IMASK_DIO10_W < INT_EVENT0_IMASK_SPEC , 10 > { INT_EVENT0_IMASK_DIO10_W :: new (self) } # [doc = "Bit 11 - DIO11 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dio11 (& mut self) -> INT_EVENT0_IMASK_DIO11_W < INT_EVENT0_IMASK_SPEC , 11 > { INT_EVENT0_IMASK_DIO11_W :: new (self) } # [doc = "Bit 12 - DIO12 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dio12 (& mut self) -> INT_EVENT0_IMASK_DIO12_W < INT_EVENT0_IMASK_SPEC , 12 > { INT_EVENT0_IMASK_DIO12_W :: new (self) } # [doc = "Bit 13 - DIO13 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dio13 (& mut self) -> INT_EVENT0_IMASK_DIO13_W < INT_EVENT0_IMASK_SPEC , 13 > { INT_EVENT0_IMASK_DIO13_W :: new (self) } # [doc = "Bit 14 - DIO14 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dio14 (& mut self) -> INT_EVENT0_IMASK_DIO14_W < INT_EVENT0_IMASK_SPEC , 14 > { INT_EVENT0_IMASK_DIO14_W :: new (self) } # [doc = "Bit 15 - DIO15 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dio15 (& mut self) -> INT_EVENT0_IMASK_DIO15_W < INT_EVENT0_IMASK_SPEC , 15 > { INT_EVENT0_IMASK_DIO15_W :: new (self) } # [doc = "Bit 16 - DIO16 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dio16 (& mut self) -> INT_EVENT0_IMASK_DIO16_W < INT_EVENT0_IMASK_SPEC , 16 > { INT_EVENT0_IMASK_DIO16_W :: new (self) } # [doc = "Bit 17 - DIO17 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dio17 (& mut self) -> INT_EVENT0_IMASK_DIO17_W < INT_EVENT0_IMASK_SPEC , 17 > { INT_EVENT0_IMASK_DIO17_W :: new (self) } # [doc = "Bit 18 - DIO18 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dio18 (& mut self) -> INT_EVENT0_IMASK_DIO18_W < INT_EVENT0_IMASK_SPEC , 18 > { INT_EVENT0_IMASK_DIO18_W :: new (self) } # [doc = "Bit 19 - DIO19 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dio19 (& mut self) -> INT_EVENT0_IMASK_DIO19_W < INT_EVENT0_IMASK_SPEC , 19 > { INT_EVENT0_IMASK_DIO19_W :: new (self) } # [doc = "Bit 20 - DIO20 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dio20 (& mut self) -> INT_EVENT0_IMASK_DIO20_W < INT_EVENT0_IMASK_SPEC , 20 > { INT_EVENT0_IMASK_DIO20_W :: new (self) } # [doc = "Bit 21 - DIO21 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dio21 (& mut self) -> INT_EVENT0_IMASK_DIO21_W < INT_EVENT0_IMASK_SPEC , 21 > { INT_EVENT0_IMASK_DIO21_W :: new (self) } # [doc = "Bit 22 - DIO22 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dio22 (& mut self) -> INT_EVENT0_IMASK_DIO22_W < INT_EVENT0_IMASK_SPEC , 22 > { INT_EVENT0_IMASK_DIO22_W :: new (self) } # [doc = "Bit 23 - DIO23 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dio23 (& mut self) -> INT_EVENT0_IMASK_DIO23_W < INT_EVENT0_IMASK_SPEC , 23 > { INT_EVENT0_IMASK_DIO23_W :: new (self) } # [doc = "Bit 24 - DIO24 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dio24 (& mut self) -> INT_EVENT0_IMASK_DIO24_W < INT_EVENT0_IMASK_SPEC , 24 > { INT_EVENT0_IMASK_DIO24_W :: new (self) } # [doc = "Bit 25 - DIO25 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dio25 (& mut self) -> INT_EVENT0_IMASK_DIO25_W < INT_EVENT0_IMASK_SPEC , 25 > { INT_EVENT0_IMASK_DIO25_W :: new (self) } # [doc = "Bit 26 - DIO26 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dio26 (& mut self) -> INT_EVENT0_IMASK_DIO26_W < INT_EVENT0_IMASK_SPEC , 26 > { INT_EVENT0_IMASK_DIO26_W :: new (self) } # [doc = "Bit 27 - DIO27 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dio27 (& mut self) -> INT_EVENT0_IMASK_DIO27_W < INT_EVENT0_IMASK_SPEC , 27 > { INT_EVENT0_IMASK_DIO27_W :: new (self) } # [doc = "Bit 28 - DIO28 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dio28 (& mut self) -> INT_EVENT0_IMASK_DIO28_W < INT_EVENT0_IMASK_SPEC , 28 > { INT_EVENT0_IMASK_DIO28_W :: new (self) } # [doc = "Bit 29 - DIO29 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dio29 (& mut self) -> INT_EVENT0_IMASK_DIO29_W < INT_EVENT0_IMASK_SPEC , 29 > { INT_EVENT0_IMASK_DIO29_W :: new (self) } # [doc = "Bit 30 - DIO30 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dio30 (& mut self) -> INT_EVENT0_IMASK_DIO30_W < INT_EVENT0_IMASK_SPEC , 30 > { INT_EVENT0_IMASK_DIO30_W :: new (self) } # [doc = "Bit 31 - DIO31 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dio31 (& mut self) -> INT_EVENT0_IMASK_DIO31_W < INT_EVENT0_IMASK_SPEC , 31 > { INT_EVENT0_IMASK_DIO31_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_imask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_imask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_IMASK_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event0_imask::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT0_IMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`int_event0_imask::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT0_IMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT0_IMASK to value 0"]
impl crate :: Resettable for INT_EVENT0_IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_RIS (r) register accessor: Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_ris`]
module"]
pub type INT_EVENT0_RIS = crate :: Reg < int_event0_ris :: INT_EVENT0_RIS_SPEC > ; # [doc = "Raw interrupt status"]
pub mod int_event0_ris { # [doc = "Register `INT_EVENT0_RIS` reader"]
pub type R = crate :: R < INT_EVENT0_RIS_SPEC > ; # [doc = "Field `INT_EVENT0_RIS_DIO0` reader - DIO0 event"]
pub type INT_EVENT0_RIS_DIO0_R = crate :: BitReader < INT_EVENT0_RIS_DIO0_A > ; # [doc = "DIO0 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DIO0_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DIO0_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DIO0_SET = 1 , } impl From < INT_EVENT0_RIS_DIO0_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DIO0_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DIO0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DIO0_A { match self . bits { false => INT_EVENT0_RIS_DIO0_A :: INT_EVENT0_RIS_DIO0_CLR , true => INT_EVENT0_RIS_DIO0_A :: INT_EVENT0_RIS_DIO0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dio0_clr (& self) -> bool { * self == INT_EVENT0_RIS_DIO0_A :: INT_EVENT0_RIS_DIO0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dio0_set (& self) -> bool { * self == INT_EVENT0_RIS_DIO0_A :: INT_EVENT0_RIS_DIO0_SET } } # [doc = "Field `INT_EVENT0_RIS_DIO1` reader - DIO1 event"]
pub type INT_EVENT0_RIS_DIO1_R = crate :: BitReader < INT_EVENT0_RIS_DIO1_A > ; # [doc = "DIO1 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DIO1_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DIO1_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DIO1_SET = 1 , } impl From < INT_EVENT0_RIS_DIO1_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DIO1_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DIO1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DIO1_A { match self . bits { false => INT_EVENT0_RIS_DIO1_A :: INT_EVENT0_RIS_DIO1_CLR , true => INT_EVENT0_RIS_DIO1_A :: INT_EVENT0_RIS_DIO1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dio1_clr (& self) -> bool { * self == INT_EVENT0_RIS_DIO1_A :: INT_EVENT0_RIS_DIO1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dio1_set (& self) -> bool { * self == INT_EVENT0_RIS_DIO1_A :: INT_EVENT0_RIS_DIO1_SET } } # [doc = "Field `INT_EVENT0_RIS_DIO2` reader - DIO2 event"]
pub type INT_EVENT0_RIS_DIO2_R = crate :: BitReader < INT_EVENT0_RIS_DIO2_A > ; # [doc = "DIO2 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DIO2_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DIO2_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DIO2_SET = 1 , } impl From < INT_EVENT0_RIS_DIO2_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DIO2_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DIO2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DIO2_A { match self . bits { false => INT_EVENT0_RIS_DIO2_A :: INT_EVENT0_RIS_DIO2_CLR , true => INT_EVENT0_RIS_DIO2_A :: INT_EVENT0_RIS_DIO2_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dio2_clr (& self) -> bool { * self == INT_EVENT0_RIS_DIO2_A :: INT_EVENT0_RIS_DIO2_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dio2_set (& self) -> bool { * self == INT_EVENT0_RIS_DIO2_A :: INT_EVENT0_RIS_DIO2_SET } } # [doc = "Field `INT_EVENT0_RIS_DIO3` reader - DIO3 event"]
pub type INT_EVENT0_RIS_DIO3_R = crate :: BitReader < INT_EVENT0_RIS_DIO3_A > ; # [doc = "DIO3 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DIO3_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DIO3_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DIO3_SET = 1 , } impl From < INT_EVENT0_RIS_DIO3_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DIO3_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DIO3_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DIO3_A { match self . bits { false => INT_EVENT0_RIS_DIO3_A :: INT_EVENT0_RIS_DIO3_CLR , true => INT_EVENT0_RIS_DIO3_A :: INT_EVENT0_RIS_DIO3_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dio3_clr (& self) -> bool { * self == INT_EVENT0_RIS_DIO3_A :: INT_EVENT0_RIS_DIO3_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dio3_set (& self) -> bool { * self == INT_EVENT0_RIS_DIO3_A :: INT_EVENT0_RIS_DIO3_SET } } # [doc = "Field `INT_EVENT0_RIS_DIO4` reader - DIO4 event"]
pub type INT_EVENT0_RIS_DIO4_R = crate :: BitReader < INT_EVENT0_RIS_DIO4_A > ; # [doc = "DIO4 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DIO4_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DIO4_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DIO4_SET = 1 , } impl From < INT_EVENT0_RIS_DIO4_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DIO4_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DIO4_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DIO4_A { match self . bits { false => INT_EVENT0_RIS_DIO4_A :: INT_EVENT0_RIS_DIO4_CLR , true => INT_EVENT0_RIS_DIO4_A :: INT_EVENT0_RIS_DIO4_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dio4_clr (& self) -> bool { * self == INT_EVENT0_RIS_DIO4_A :: INT_EVENT0_RIS_DIO4_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dio4_set (& self) -> bool { * self == INT_EVENT0_RIS_DIO4_A :: INT_EVENT0_RIS_DIO4_SET } } # [doc = "Field `INT_EVENT0_RIS_DIO5` reader - DIO5 event"]
pub type INT_EVENT0_RIS_DIO5_R = crate :: BitReader < INT_EVENT0_RIS_DIO5_A > ; # [doc = "DIO5 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DIO5_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DIO5_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DIO5_SET = 1 , } impl From < INT_EVENT0_RIS_DIO5_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DIO5_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DIO5_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DIO5_A { match self . bits { false => INT_EVENT0_RIS_DIO5_A :: INT_EVENT0_RIS_DIO5_CLR , true => INT_EVENT0_RIS_DIO5_A :: INT_EVENT0_RIS_DIO5_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dio5_clr (& self) -> bool { * self == INT_EVENT0_RIS_DIO5_A :: INT_EVENT0_RIS_DIO5_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dio5_set (& self) -> bool { * self == INT_EVENT0_RIS_DIO5_A :: INT_EVENT0_RIS_DIO5_SET } } # [doc = "Field `INT_EVENT0_RIS_DIO6` reader - DIO6 event"]
pub type INT_EVENT0_RIS_DIO6_R = crate :: BitReader < INT_EVENT0_RIS_DIO6_A > ; # [doc = "DIO6 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DIO6_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DIO6_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DIO6_SET = 1 , } impl From < INT_EVENT0_RIS_DIO6_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DIO6_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DIO6_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DIO6_A { match self . bits { false => INT_EVENT0_RIS_DIO6_A :: INT_EVENT0_RIS_DIO6_CLR , true => INT_EVENT0_RIS_DIO6_A :: INT_EVENT0_RIS_DIO6_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dio6_clr (& self) -> bool { * self == INT_EVENT0_RIS_DIO6_A :: INT_EVENT0_RIS_DIO6_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dio6_set (& self) -> bool { * self == INT_EVENT0_RIS_DIO6_A :: INT_EVENT0_RIS_DIO6_SET } } # [doc = "Field `INT_EVENT0_RIS_DIO7` reader - DIO7 event"]
pub type INT_EVENT0_RIS_DIO7_R = crate :: BitReader < INT_EVENT0_RIS_DIO7_A > ; # [doc = "DIO7 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DIO7_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DIO7_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DIO7_SET = 1 , } impl From < INT_EVENT0_RIS_DIO7_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DIO7_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DIO7_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DIO7_A { match self . bits { false => INT_EVENT0_RIS_DIO7_A :: INT_EVENT0_RIS_DIO7_CLR , true => INT_EVENT0_RIS_DIO7_A :: INT_EVENT0_RIS_DIO7_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dio7_clr (& self) -> bool { * self == INT_EVENT0_RIS_DIO7_A :: INT_EVENT0_RIS_DIO7_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dio7_set (& self) -> bool { * self == INT_EVENT0_RIS_DIO7_A :: INT_EVENT0_RIS_DIO7_SET } } # [doc = "Field `INT_EVENT0_RIS_DIO8` reader - DIO8 event"]
pub type INT_EVENT0_RIS_DIO8_R = crate :: BitReader < INT_EVENT0_RIS_DIO8_A > ; # [doc = "DIO8 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DIO8_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DIO8_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DIO8_SET = 1 , } impl From < INT_EVENT0_RIS_DIO8_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DIO8_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DIO8_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DIO8_A { match self . bits { false => INT_EVENT0_RIS_DIO8_A :: INT_EVENT0_RIS_DIO8_CLR , true => INT_EVENT0_RIS_DIO8_A :: INT_EVENT0_RIS_DIO8_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dio8_clr (& self) -> bool { * self == INT_EVENT0_RIS_DIO8_A :: INT_EVENT0_RIS_DIO8_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dio8_set (& self) -> bool { * self == INT_EVENT0_RIS_DIO8_A :: INT_EVENT0_RIS_DIO8_SET } } # [doc = "Field `INT_EVENT0_RIS_DIO9` reader - DIO9 event"]
pub type INT_EVENT0_RIS_DIO9_R = crate :: BitReader < INT_EVENT0_RIS_DIO9_A > ; # [doc = "DIO9 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DIO9_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DIO9_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DIO9_SET = 1 , } impl From < INT_EVENT0_RIS_DIO9_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DIO9_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DIO9_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DIO9_A { match self . bits { false => INT_EVENT0_RIS_DIO9_A :: INT_EVENT0_RIS_DIO9_CLR , true => INT_EVENT0_RIS_DIO9_A :: INT_EVENT0_RIS_DIO9_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dio9_clr (& self) -> bool { * self == INT_EVENT0_RIS_DIO9_A :: INT_EVENT0_RIS_DIO9_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dio9_set (& self) -> bool { * self == INT_EVENT0_RIS_DIO9_A :: INT_EVENT0_RIS_DIO9_SET } } # [doc = "Field `INT_EVENT0_RIS_DIO10` reader - DIO10 event"]
pub type INT_EVENT0_RIS_DIO10_R = crate :: BitReader < INT_EVENT0_RIS_DIO10_A > ; # [doc = "DIO10 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DIO10_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DIO10_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DIO10_SET = 1 , } impl From < INT_EVENT0_RIS_DIO10_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DIO10_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DIO10_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DIO10_A { match self . bits { false => INT_EVENT0_RIS_DIO10_A :: INT_EVENT0_RIS_DIO10_CLR , true => INT_EVENT0_RIS_DIO10_A :: INT_EVENT0_RIS_DIO10_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dio10_clr (& self) -> bool { * self == INT_EVENT0_RIS_DIO10_A :: INT_EVENT0_RIS_DIO10_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dio10_set (& self) -> bool { * self == INT_EVENT0_RIS_DIO10_A :: INT_EVENT0_RIS_DIO10_SET } } # [doc = "Field `INT_EVENT0_RIS_DIO11` reader - DIO11 event"]
pub type INT_EVENT0_RIS_DIO11_R = crate :: BitReader < INT_EVENT0_RIS_DIO11_A > ; # [doc = "DIO11 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DIO11_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DIO11_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DIO11_SET = 1 , } impl From < INT_EVENT0_RIS_DIO11_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DIO11_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DIO11_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DIO11_A { match self . bits { false => INT_EVENT0_RIS_DIO11_A :: INT_EVENT0_RIS_DIO11_CLR , true => INT_EVENT0_RIS_DIO11_A :: INT_EVENT0_RIS_DIO11_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dio11_clr (& self) -> bool { * self == INT_EVENT0_RIS_DIO11_A :: INT_EVENT0_RIS_DIO11_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dio11_set (& self) -> bool { * self == INT_EVENT0_RIS_DIO11_A :: INT_EVENT0_RIS_DIO11_SET } } # [doc = "Field `INT_EVENT0_RIS_DIO12` reader - DIO12 event"]
pub type INT_EVENT0_RIS_DIO12_R = crate :: BitReader < INT_EVENT0_RIS_DIO12_A > ; # [doc = "DIO12 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DIO12_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DIO12_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DIO12_SET = 1 , } impl From < INT_EVENT0_RIS_DIO12_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DIO12_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DIO12_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DIO12_A { match self . bits { false => INT_EVENT0_RIS_DIO12_A :: INT_EVENT0_RIS_DIO12_CLR , true => INT_EVENT0_RIS_DIO12_A :: INT_EVENT0_RIS_DIO12_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dio12_clr (& self) -> bool { * self == INT_EVENT0_RIS_DIO12_A :: INT_EVENT0_RIS_DIO12_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dio12_set (& self) -> bool { * self == INT_EVENT0_RIS_DIO12_A :: INT_EVENT0_RIS_DIO12_SET } } # [doc = "Field `INT_EVENT0_RIS_DIO13` reader - DIO13 event"]
pub type INT_EVENT0_RIS_DIO13_R = crate :: BitReader < INT_EVENT0_RIS_DIO13_A > ; # [doc = "DIO13 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DIO13_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DIO13_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DIO13_SET = 1 , } impl From < INT_EVENT0_RIS_DIO13_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DIO13_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DIO13_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DIO13_A { match self . bits { false => INT_EVENT0_RIS_DIO13_A :: INT_EVENT0_RIS_DIO13_CLR , true => INT_EVENT0_RIS_DIO13_A :: INT_EVENT0_RIS_DIO13_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dio13_clr (& self) -> bool { * self == INT_EVENT0_RIS_DIO13_A :: INT_EVENT0_RIS_DIO13_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dio13_set (& self) -> bool { * self == INT_EVENT0_RIS_DIO13_A :: INT_EVENT0_RIS_DIO13_SET } } # [doc = "Field `INT_EVENT0_RIS_DIO14` reader - DIO14 event"]
pub type INT_EVENT0_RIS_DIO14_R = crate :: BitReader < INT_EVENT0_RIS_DIO14_A > ; # [doc = "DIO14 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DIO14_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DIO14_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DIO14_SET = 1 , } impl From < INT_EVENT0_RIS_DIO14_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DIO14_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DIO14_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DIO14_A { match self . bits { false => INT_EVENT0_RIS_DIO14_A :: INT_EVENT0_RIS_DIO14_CLR , true => INT_EVENT0_RIS_DIO14_A :: INT_EVENT0_RIS_DIO14_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dio14_clr (& self) -> bool { * self == INT_EVENT0_RIS_DIO14_A :: INT_EVENT0_RIS_DIO14_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dio14_set (& self) -> bool { * self == INT_EVENT0_RIS_DIO14_A :: INT_EVENT0_RIS_DIO14_SET } } # [doc = "Field `INT_EVENT0_RIS_DIO15` reader - DIO15 event"]
pub type INT_EVENT0_RIS_DIO15_R = crate :: BitReader < INT_EVENT0_RIS_DIO15_A > ; # [doc = "DIO15 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DIO15_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DIO15_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DIO15_SET = 1 , } impl From < INT_EVENT0_RIS_DIO15_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DIO15_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DIO15_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DIO15_A { match self . bits { false => INT_EVENT0_RIS_DIO15_A :: INT_EVENT0_RIS_DIO15_CLR , true => INT_EVENT0_RIS_DIO15_A :: INT_EVENT0_RIS_DIO15_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dio15_clr (& self) -> bool { * self == INT_EVENT0_RIS_DIO15_A :: INT_EVENT0_RIS_DIO15_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dio15_set (& self) -> bool { * self == INT_EVENT0_RIS_DIO15_A :: INT_EVENT0_RIS_DIO15_SET } } # [doc = "Field `INT_EVENT0_RIS_DIO16` reader - DIO16 event"]
pub type INT_EVENT0_RIS_DIO16_R = crate :: BitReader < INT_EVENT0_RIS_DIO16_A > ; # [doc = "DIO16 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DIO16_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DIO16_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DIO16_SET = 1 , } impl From < INT_EVENT0_RIS_DIO16_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DIO16_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DIO16_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DIO16_A { match self . bits { false => INT_EVENT0_RIS_DIO16_A :: INT_EVENT0_RIS_DIO16_CLR , true => INT_EVENT0_RIS_DIO16_A :: INT_EVENT0_RIS_DIO16_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dio16_clr (& self) -> bool { * self == INT_EVENT0_RIS_DIO16_A :: INT_EVENT0_RIS_DIO16_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dio16_set (& self) -> bool { * self == INT_EVENT0_RIS_DIO16_A :: INT_EVENT0_RIS_DIO16_SET } } # [doc = "Field `INT_EVENT0_RIS_DIO17` reader - DIO17 event"]
pub type INT_EVENT0_RIS_DIO17_R = crate :: BitReader < INT_EVENT0_RIS_DIO17_A > ; # [doc = "DIO17 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DIO17_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DIO17_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DIO17_SET = 1 , } impl From < INT_EVENT0_RIS_DIO17_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DIO17_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DIO17_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DIO17_A { match self . bits { false => INT_EVENT0_RIS_DIO17_A :: INT_EVENT0_RIS_DIO17_CLR , true => INT_EVENT0_RIS_DIO17_A :: INT_EVENT0_RIS_DIO17_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dio17_clr (& self) -> bool { * self == INT_EVENT0_RIS_DIO17_A :: INT_EVENT0_RIS_DIO17_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dio17_set (& self) -> bool { * self == INT_EVENT0_RIS_DIO17_A :: INT_EVENT0_RIS_DIO17_SET } } # [doc = "Field `INT_EVENT0_RIS_DIO18` reader - DIO18 event"]
pub type INT_EVENT0_RIS_DIO18_R = crate :: BitReader < INT_EVENT0_RIS_DIO18_A > ; # [doc = "DIO18 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DIO18_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DIO18_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DIO18_SET = 1 , } impl From < INT_EVENT0_RIS_DIO18_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DIO18_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DIO18_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DIO18_A { match self . bits { false => INT_EVENT0_RIS_DIO18_A :: INT_EVENT0_RIS_DIO18_CLR , true => INT_EVENT0_RIS_DIO18_A :: INT_EVENT0_RIS_DIO18_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dio18_clr (& self) -> bool { * self == INT_EVENT0_RIS_DIO18_A :: INT_EVENT0_RIS_DIO18_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dio18_set (& self) -> bool { * self == INT_EVENT0_RIS_DIO18_A :: INT_EVENT0_RIS_DIO18_SET } } # [doc = "Field `INT_EVENT0_RIS_DIO19` reader - DIO19 event"]
pub type INT_EVENT0_RIS_DIO19_R = crate :: BitReader < INT_EVENT0_RIS_DIO19_A > ; # [doc = "DIO19 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DIO19_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DIO19_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DIO19_SET = 1 , } impl From < INT_EVENT0_RIS_DIO19_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DIO19_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DIO19_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DIO19_A { match self . bits { false => INT_EVENT0_RIS_DIO19_A :: INT_EVENT0_RIS_DIO19_CLR , true => INT_EVENT0_RIS_DIO19_A :: INT_EVENT0_RIS_DIO19_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dio19_clr (& self) -> bool { * self == INT_EVENT0_RIS_DIO19_A :: INT_EVENT0_RIS_DIO19_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dio19_set (& self) -> bool { * self == INT_EVENT0_RIS_DIO19_A :: INT_EVENT0_RIS_DIO19_SET } } # [doc = "Field `INT_EVENT0_RIS_DIO20` reader - DIO20 event"]
pub type INT_EVENT0_RIS_DIO20_R = crate :: BitReader < INT_EVENT0_RIS_DIO20_A > ; # [doc = "DIO20 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DIO20_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DIO20_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DIO20_SET = 1 , } impl From < INT_EVENT0_RIS_DIO20_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DIO20_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DIO20_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DIO20_A { match self . bits { false => INT_EVENT0_RIS_DIO20_A :: INT_EVENT0_RIS_DIO20_CLR , true => INT_EVENT0_RIS_DIO20_A :: INT_EVENT0_RIS_DIO20_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dio20_clr (& self) -> bool { * self == INT_EVENT0_RIS_DIO20_A :: INT_EVENT0_RIS_DIO20_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dio20_set (& self) -> bool { * self == INT_EVENT0_RIS_DIO20_A :: INT_EVENT0_RIS_DIO20_SET } } # [doc = "Field `INT_EVENT0_RIS_DIO21` reader - DIO21 event"]
pub type INT_EVENT0_RIS_DIO21_R = crate :: BitReader < INT_EVENT0_RIS_DIO21_A > ; # [doc = "DIO21 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DIO21_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DIO21_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DIO21_SET = 1 , } impl From < INT_EVENT0_RIS_DIO21_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DIO21_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DIO21_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DIO21_A { match self . bits { false => INT_EVENT0_RIS_DIO21_A :: INT_EVENT0_RIS_DIO21_CLR , true => INT_EVENT0_RIS_DIO21_A :: INT_EVENT0_RIS_DIO21_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dio21_clr (& self) -> bool { * self == INT_EVENT0_RIS_DIO21_A :: INT_EVENT0_RIS_DIO21_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dio21_set (& self) -> bool { * self == INT_EVENT0_RIS_DIO21_A :: INT_EVENT0_RIS_DIO21_SET } } # [doc = "Field `INT_EVENT0_RIS_DIO22` reader - DIO22 event"]
pub type INT_EVENT0_RIS_DIO22_R = crate :: BitReader < INT_EVENT0_RIS_DIO22_A > ; # [doc = "DIO22 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DIO22_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DIO22_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DIO22_SET = 1 , } impl From < INT_EVENT0_RIS_DIO22_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DIO22_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DIO22_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DIO22_A { match self . bits { false => INT_EVENT0_RIS_DIO22_A :: INT_EVENT0_RIS_DIO22_CLR , true => INT_EVENT0_RIS_DIO22_A :: INT_EVENT0_RIS_DIO22_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dio22_clr (& self) -> bool { * self == INT_EVENT0_RIS_DIO22_A :: INT_EVENT0_RIS_DIO22_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dio22_set (& self) -> bool { * self == INT_EVENT0_RIS_DIO22_A :: INT_EVENT0_RIS_DIO22_SET } } # [doc = "Field `INT_EVENT0_RIS_DIO23` reader - DIO23 event"]
pub type INT_EVENT0_RIS_DIO23_R = crate :: BitReader < INT_EVENT0_RIS_DIO23_A > ; # [doc = "DIO23 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DIO23_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DIO23_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DIO23_SET = 1 , } impl From < INT_EVENT0_RIS_DIO23_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DIO23_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DIO23_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DIO23_A { match self . bits { false => INT_EVENT0_RIS_DIO23_A :: INT_EVENT0_RIS_DIO23_CLR , true => INT_EVENT0_RIS_DIO23_A :: INT_EVENT0_RIS_DIO23_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dio23_clr (& self) -> bool { * self == INT_EVENT0_RIS_DIO23_A :: INT_EVENT0_RIS_DIO23_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dio23_set (& self) -> bool { * self == INT_EVENT0_RIS_DIO23_A :: INT_EVENT0_RIS_DIO23_SET } } # [doc = "Field `INT_EVENT0_RIS_DIO24` reader - DIO24 event"]
pub type INT_EVENT0_RIS_DIO24_R = crate :: BitReader < INT_EVENT0_RIS_DIO24_A > ; # [doc = "DIO24 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DIO24_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DIO24_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DIO24_SET = 1 , } impl From < INT_EVENT0_RIS_DIO24_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DIO24_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DIO24_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DIO24_A { match self . bits { false => INT_EVENT0_RIS_DIO24_A :: INT_EVENT0_RIS_DIO24_CLR , true => INT_EVENT0_RIS_DIO24_A :: INT_EVENT0_RIS_DIO24_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dio24_clr (& self) -> bool { * self == INT_EVENT0_RIS_DIO24_A :: INT_EVENT0_RIS_DIO24_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dio24_set (& self) -> bool { * self == INT_EVENT0_RIS_DIO24_A :: INT_EVENT0_RIS_DIO24_SET } } # [doc = "Field `INT_EVENT0_RIS_DIO25` reader - DIO25 event"]
pub type INT_EVENT0_RIS_DIO25_R = crate :: BitReader < INT_EVENT0_RIS_DIO25_A > ; # [doc = "DIO25 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DIO25_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DIO25_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DIO25_SET = 1 , } impl From < INT_EVENT0_RIS_DIO25_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DIO25_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DIO25_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DIO25_A { match self . bits { false => INT_EVENT0_RIS_DIO25_A :: INT_EVENT0_RIS_DIO25_CLR , true => INT_EVENT0_RIS_DIO25_A :: INT_EVENT0_RIS_DIO25_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dio25_clr (& self) -> bool { * self == INT_EVENT0_RIS_DIO25_A :: INT_EVENT0_RIS_DIO25_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dio25_set (& self) -> bool { * self == INT_EVENT0_RIS_DIO25_A :: INT_EVENT0_RIS_DIO25_SET } } # [doc = "Field `INT_EVENT0_RIS_DIO26` reader - DIO26 event"]
pub type INT_EVENT0_RIS_DIO26_R = crate :: BitReader < INT_EVENT0_RIS_DIO26_A > ; # [doc = "DIO26 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DIO26_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DIO26_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DIO26_SET = 1 , } impl From < INT_EVENT0_RIS_DIO26_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DIO26_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DIO26_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DIO26_A { match self . bits { false => INT_EVENT0_RIS_DIO26_A :: INT_EVENT0_RIS_DIO26_CLR , true => INT_EVENT0_RIS_DIO26_A :: INT_EVENT0_RIS_DIO26_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dio26_clr (& self) -> bool { * self == INT_EVENT0_RIS_DIO26_A :: INT_EVENT0_RIS_DIO26_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dio26_set (& self) -> bool { * self == INT_EVENT0_RIS_DIO26_A :: INT_EVENT0_RIS_DIO26_SET } } # [doc = "Field `INT_EVENT0_RIS_DIO27` reader - DIO27 event"]
pub type INT_EVENT0_RIS_DIO27_R = crate :: BitReader < INT_EVENT0_RIS_DIO27_A > ; # [doc = "DIO27 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DIO27_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DIO27_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DIO27_SET = 1 , } impl From < INT_EVENT0_RIS_DIO27_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DIO27_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DIO27_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DIO27_A { match self . bits { false => INT_EVENT0_RIS_DIO27_A :: INT_EVENT0_RIS_DIO27_CLR , true => INT_EVENT0_RIS_DIO27_A :: INT_EVENT0_RIS_DIO27_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dio27_clr (& self) -> bool { * self == INT_EVENT0_RIS_DIO27_A :: INT_EVENT0_RIS_DIO27_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dio27_set (& self) -> bool { * self == INT_EVENT0_RIS_DIO27_A :: INT_EVENT0_RIS_DIO27_SET } } # [doc = "Field `INT_EVENT0_RIS_DIO28` reader - DIO28 event"]
pub type INT_EVENT0_RIS_DIO28_R = crate :: BitReader < INT_EVENT0_RIS_DIO28_A > ; # [doc = "DIO28 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DIO28_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DIO28_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DIO28_SET = 1 , } impl From < INT_EVENT0_RIS_DIO28_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DIO28_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DIO28_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DIO28_A { match self . bits { false => INT_EVENT0_RIS_DIO28_A :: INT_EVENT0_RIS_DIO28_CLR , true => INT_EVENT0_RIS_DIO28_A :: INT_EVENT0_RIS_DIO28_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dio28_clr (& self) -> bool { * self == INT_EVENT0_RIS_DIO28_A :: INT_EVENT0_RIS_DIO28_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dio28_set (& self) -> bool { * self == INT_EVENT0_RIS_DIO28_A :: INT_EVENT0_RIS_DIO28_SET } } # [doc = "Field `INT_EVENT0_RIS_DIO29` reader - DIO29 event"]
pub type INT_EVENT0_RIS_DIO29_R = crate :: BitReader < INT_EVENT0_RIS_DIO29_A > ; # [doc = "DIO29 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DIO29_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DIO29_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DIO29_SET = 1 , } impl From < INT_EVENT0_RIS_DIO29_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DIO29_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DIO29_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DIO29_A { match self . bits { false => INT_EVENT0_RIS_DIO29_A :: INT_EVENT0_RIS_DIO29_CLR , true => INT_EVENT0_RIS_DIO29_A :: INT_EVENT0_RIS_DIO29_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dio29_clr (& self) -> bool { * self == INT_EVENT0_RIS_DIO29_A :: INT_EVENT0_RIS_DIO29_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dio29_set (& self) -> bool { * self == INT_EVENT0_RIS_DIO29_A :: INT_EVENT0_RIS_DIO29_SET } } # [doc = "Field `INT_EVENT0_RIS_DIO30` reader - DIO30 event"]
pub type INT_EVENT0_RIS_DIO30_R = crate :: BitReader < INT_EVENT0_RIS_DIO30_A > ; # [doc = "DIO30 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DIO30_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DIO30_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DIO30_SET = 1 , } impl From < INT_EVENT0_RIS_DIO30_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DIO30_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DIO30_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DIO30_A { match self . bits { false => INT_EVENT0_RIS_DIO30_A :: INT_EVENT0_RIS_DIO30_CLR , true => INT_EVENT0_RIS_DIO30_A :: INT_EVENT0_RIS_DIO30_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dio30_clr (& self) -> bool { * self == INT_EVENT0_RIS_DIO30_A :: INT_EVENT0_RIS_DIO30_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dio30_set (& self) -> bool { * self == INT_EVENT0_RIS_DIO30_A :: INT_EVENT0_RIS_DIO30_SET } } # [doc = "Field `INT_EVENT0_RIS_DIO31` reader - DIO31 event"]
pub type INT_EVENT0_RIS_DIO31_R = crate :: BitReader < INT_EVENT0_RIS_DIO31_A > ; # [doc = "DIO31 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DIO31_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DIO31_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DIO31_SET = 1 , } impl From < INT_EVENT0_RIS_DIO31_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DIO31_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DIO31_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DIO31_A { match self . bits { false => INT_EVENT0_RIS_DIO31_A :: INT_EVENT0_RIS_DIO31_CLR , true => INT_EVENT0_RIS_DIO31_A :: INT_EVENT0_RIS_DIO31_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dio31_clr (& self) -> bool { * self == INT_EVENT0_RIS_DIO31_A :: INT_EVENT0_RIS_DIO31_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dio31_set (& self) -> bool { * self == INT_EVENT0_RIS_DIO31_A :: INT_EVENT0_RIS_DIO31_SET } } impl R { # [doc = "Bit 0 - DIO0 event"]
# [inline (always)]
pub fn int_event0_ris_dio0 (& self) -> INT_EVENT0_RIS_DIO0_R { INT_EVENT0_RIS_DIO0_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - DIO1 event"]
# [inline (always)]
pub fn int_event0_ris_dio1 (& self) -> INT_EVENT0_RIS_DIO1_R { INT_EVENT0_RIS_DIO1_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - DIO2 event"]
# [inline (always)]
pub fn int_event0_ris_dio2 (& self) -> INT_EVENT0_RIS_DIO2_R { INT_EVENT0_RIS_DIO2_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - DIO3 event"]
# [inline (always)]
pub fn int_event0_ris_dio3 (& self) -> INT_EVENT0_RIS_DIO3_R { INT_EVENT0_RIS_DIO3_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - DIO4 event"]
# [inline (always)]
pub fn int_event0_ris_dio4 (& self) -> INT_EVENT0_RIS_DIO4_R { INT_EVENT0_RIS_DIO4_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - DIO5 event"]
# [inline (always)]
pub fn int_event0_ris_dio5 (& self) -> INT_EVENT0_RIS_DIO5_R { INT_EVENT0_RIS_DIO5_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - DIO6 event"]
# [inline (always)]
pub fn int_event0_ris_dio6 (& self) -> INT_EVENT0_RIS_DIO6_R { INT_EVENT0_RIS_DIO6_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 7 - DIO7 event"]
# [inline (always)]
pub fn int_event0_ris_dio7 (& self) -> INT_EVENT0_RIS_DIO7_R { INT_EVENT0_RIS_DIO7_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - DIO8 event"]
# [inline (always)]
pub fn int_event0_ris_dio8 (& self) -> INT_EVENT0_RIS_DIO8_R { INT_EVENT0_RIS_DIO8_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - DIO9 event"]
# [inline (always)]
pub fn int_event0_ris_dio9 (& self) -> INT_EVENT0_RIS_DIO9_R { INT_EVENT0_RIS_DIO9_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - DIO10 event"]
# [inline (always)]
pub fn int_event0_ris_dio10 (& self) -> INT_EVENT0_RIS_DIO10_R { INT_EVENT0_RIS_DIO10_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bit 11 - DIO11 event"]
# [inline (always)]
pub fn int_event0_ris_dio11 (& self) -> INT_EVENT0_RIS_DIO11_R { INT_EVENT0_RIS_DIO11_R :: new (((self . bits >> 11) & 1) != 0) } # [doc = "Bit 12 - DIO12 event"]
# [inline (always)]
pub fn int_event0_ris_dio12 (& self) -> INT_EVENT0_RIS_DIO12_R { INT_EVENT0_RIS_DIO12_R :: new (((self . bits >> 12) & 1) != 0) } # [doc = "Bit 13 - DIO13 event"]
# [inline (always)]
pub fn int_event0_ris_dio13 (& self) -> INT_EVENT0_RIS_DIO13_R { INT_EVENT0_RIS_DIO13_R :: new (((self . bits >> 13) & 1) != 0) } # [doc = "Bit 14 - DIO14 event"]
# [inline (always)]
pub fn int_event0_ris_dio14 (& self) -> INT_EVENT0_RIS_DIO14_R { INT_EVENT0_RIS_DIO14_R :: new (((self . bits >> 14) & 1) != 0) } # [doc = "Bit 15 - DIO15 event"]
# [inline (always)]
pub fn int_event0_ris_dio15 (& self) -> INT_EVENT0_RIS_DIO15_R { INT_EVENT0_RIS_DIO15_R :: new (((self . bits >> 15) & 1) != 0) } # [doc = "Bit 16 - DIO16 event"]
# [inline (always)]
pub fn int_event0_ris_dio16 (& self) -> INT_EVENT0_RIS_DIO16_R { INT_EVENT0_RIS_DIO16_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 17 - DIO17 event"]
# [inline (always)]
pub fn int_event0_ris_dio17 (& self) -> INT_EVENT0_RIS_DIO17_R { INT_EVENT0_RIS_DIO17_R :: new (((self . bits >> 17) & 1) != 0) } # [doc = "Bit 18 - DIO18 event"]
# [inline (always)]
pub fn int_event0_ris_dio18 (& self) -> INT_EVENT0_RIS_DIO18_R { INT_EVENT0_RIS_DIO18_R :: new (((self . bits >> 18) & 1) != 0) } # [doc = "Bit 19 - DIO19 event"]
# [inline (always)]
pub fn int_event0_ris_dio19 (& self) -> INT_EVENT0_RIS_DIO19_R { INT_EVENT0_RIS_DIO19_R :: new (((self . bits >> 19) & 1) != 0) } # [doc = "Bit 20 - DIO20 event"]
# [inline (always)]
pub fn int_event0_ris_dio20 (& self) -> INT_EVENT0_RIS_DIO20_R { INT_EVENT0_RIS_DIO20_R :: new (((self . bits >> 20) & 1) != 0) } # [doc = "Bit 21 - DIO21 event"]
# [inline (always)]
pub fn int_event0_ris_dio21 (& self) -> INT_EVENT0_RIS_DIO21_R { INT_EVENT0_RIS_DIO21_R :: new (((self . bits >> 21) & 1) != 0) } # [doc = "Bit 22 - DIO22 event"]
# [inline (always)]
pub fn int_event0_ris_dio22 (& self) -> INT_EVENT0_RIS_DIO22_R { INT_EVENT0_RIS_DIO22_R :: new (((self . bits >> 22) & 1) != 0) } # [doc = "Bit 23 - DIO23 event"]
# [inline (always)]
pub fn int_event0_ris_dio23 (& self) -> INT_EVENT0_RIS_DIO23_R { INT_EVENT0_RIS_DIO23_R :: new (((self . bits >> 23) & 1) != 0) } # [doc = "Bit 24 - DIO24 event"]
# [inline (always)]
pub fn int_event0_ris_dio24 (& self) -> INT_EVENT0_RIS_DIO24_R { INT_EVENT0_RIS_DIO24_R :: new (((self . bits >> 24) & 1) != 0) } # [doc = "Bit 25 - DIO25 event"]
# [inline (always)]
pub fn int_event0_ris_dio25 (& self) -> INT_EVENT0_RIS_DIO25_R { INT_EVENT0_RIS_DIO25_R :: new (((self . bits >> 25) & 1) != 0) } # [doc = "Bit 26 - DIO26 event"]
# [inline (always)]
pub fn int_event0_ris_dio26 (& self) -> INT_EVENT0_RIS_DIO26_R { INT_EVENT0_RIS_DIO26_R :: new (((self . bits >> 26) & 1) != 0) } # [doc = "Bit 27 - DIO27 event"]
# [inline (always)]
pub fn int_event0_ris_dio27 (& self) -> INT_EVENT0_RIS_DIO27_R { INT_EVENT0_RIS_DIO27_R :: new (((self . bits >> 27) & 1) != 0) } # [doc = "Bit 28 - DIO28 event"]
# [inline (always)]
pub fn int_event0_ris_dio28 (& self) -> INT_EVENT0_RIS_DIO28_R { INT_EVENT0_RIS_DIO28_R :: new (((self . bits >> 28) & 1) != 0) } # [doc = "Bit 29 - DIO29 event"]
# [inline (always)]
pub fn int_event0_ris_dio29 (& self) -> INT_EVENT0_RIS_DIO29_R { INT_EVENT0_RIS_DIO29_R :: new (((self . bits >> 29) & 1) != 0) } # [doc = "Bit 30 - DIO30 event"]
# [inline (always)]
pub fn int_event0_ris_dio30 (& self) -> INT_EVENT0_RIS_DIO30_R { INT_EVENT0_RIS_DIO30_R :: new (((self . bits >> 30) & 1) != 0) } # [doc = "Bit 31 - DIO31 event"]
# [inline (always)]
pub fn int_event0_ris_dio31 (& self) -> INT_EVENT0_RIS_DIO31_R { INT_EVENT0_RIS_DIO31_R :: new (((self . bits >> 31) & 1) != 0) } } # [doc = "Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_RIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event0_ris::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT0_RIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT0_RIS to value 0"]
impl crate :: Resettable for INT_EVENT0_RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_MIS (r) register accessor: Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_mis`]
module"]
pub type INT_EVENT0_MIS = crate :: Reg < int_event0_mis :: INT_EVENT0_MIS_SPEC > ; # [doc = "Masked interrupt status"]
pub mod int_event0_mis { # [doc = "Register `INT_EVENT0_MIS` reader"]
pub type R = crate :: R < INT_EVENT0_MIS_SPEC > ; # [doc = "Field `INT_EVENT0_MIS_DIO0` reader - DIO0 event"]
pub type INT_EVENT0_MIS_DIO0_R = crate :: BitReader < INT_EVENT0_MIS_DIO0_A > ; # [doc = "DIO0 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DIO0_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DIO0_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DIO0_SET = 1 , } impl From < INT_EVENT0_MIS_DIO0_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DIO0_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DIO0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DIO0_A { match self . bits { false => INT_EVENT0_MIS_DIO0_A :: INT_EVENT0_MIS_DIO0_CLR , true => INT_EVENT0_MIS_DIO0_A :: INT_EVENT0_MIS_DIO0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dio0_clr (& self) -> bool { * self == INT_EVENT0_MIS_DIO0_A :: INT_EVENT0_MIS_DIO0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dio0_set (& self) -> bool { * self == INT_EVENT0_MIS_DIO0_A :: INT_EVENT0_MIS_DIO0_SET } } # [doc = "Field `INT_EVENT0_MIS_DIO1` reader - DIO1 event"]
pub type INT_EVENT0_MIS_DIO1_R = crate :: BitReader < INT_EVENT0_MIS_DIO1_A > ; # [doc = "DIO1 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DIO1_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DIO1_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DIO1_SET = 1 , } impl From < INT_EVENT0_MIS_DIO1_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DIO1_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DIO1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DIO1_A { match self . bits { false => INT_EVENT0_MIS_DIO1_A :: INT_EVENT0_MIS_DIO1_CLR , true => INT_EVENT0_MIS_DIO1_A :: INT_EVENT0_MIS_DIO1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dio1_clr (& self) -> bool { * self == INT_EVENT0_MIS_DIO1_A :: INT_EVENT0_MIS_DIO1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dio1_set (& self) -> bool { * self == INT_EVENT0_MIS_DIO1_A :: INT_EVENT0_MIS_DIO1_SET } } # [doc = "Field `INT_EVENT0_MIS_DIO2` reader - DIO2 event"]
pub type INT_EVENT0_MIS_DIO2_R = crate :: BitReader < INT_EVENT0_MIS_DIO2_A > ; # [doc = "DIO2 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DIO2_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DIO2_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DIO2_SET = 1 , } impl From < INT_EVENT0_MIS_DIO2_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DIO2_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DIO2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DIO2_A { match self . bits { false => INT_EVENT0_MIS_DIO2_A :: INT_EVENT0_MIS_DIO2_CLR , true => INT_EVENT0_MIS_DIO2_A :: INT_EVENT0_MIS_DIO2_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dio2_clr (& self) -> bool { * self == INT_EVENT0_MIS_DIO2_A :: INT_EVENT0_MIS_DIO2_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dio2_set (& self) -> bool { * self == INT_EVENT0_MIS_DIO2_A :: INT_EVENT0_MIS_DIO2_SET } } # [doc = "Field `INT_EVENT0_MIS_DIO3` reader - DIO3 event"]
pub type INT_EVENT0_MIS_DIO3_R = crate :: BitReader < INT_EVENT0_MIS_DIO3_A > ; # [doc = "DIO3 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DIO3_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DIO3_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DIO3_SET = 1 , } impl From < INT_EVENT0_MIS_DIO3_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DIO3_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DIO3_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DIO3_A { match self . bits { false => INT_EVENT0_MIS_DIO3_A :: INT_EVENT0_MIS_DIO3_CLR , true => INT_EVENT0_MIS_DIO3_A :: INT_EVENT0_MIS_DIO3_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dio3_clr (& self) -> bool { * self == INT_EVENT0_MIS_DIO3_A :: INT_EVENT0_MIS_DIO3_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dio3_set (& self) -> bool { * self == INT_EVENT0_MIS_DIO3_A :: INT_EVENT0_MIS_DIO3_SET } } # [doc = "Field `INT_EVENT0_MIS_DIO4` reader - DIO4 event"]
pub type INT_EVENT0_MIS_DIO4_R = crate :: BitReader < INT_EVENT0_MIS_DIO4_A > ; # [doc = "DIO4 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DIO4_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DIO4_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DIO4_SET = 1 , } impl From < INT_EVENT0_MIS_DIO4_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DIO4_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DIO4_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DIO4_A { match self . bits { false => INT_EVENT0_MIS_DIO4_A :: INT_EVENT0_MIS_DIO4_CLR , true => INT_EVENT0_MIS_DIO4_A :: INT_EVENT0_MIS_DIO4_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dio4_clr (& self) -> bool { * self == INT_EVENT0_MIS_DIO4_A :: INT_EVENT0_MIS_DIO4_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dio4_set (& self) -> bool { * self == INT_EVENT0_MIS_DIO4_A :: INT_EVENT0_MIS_DIO4_SET } } # [doc = "Field `INT_EVENT0_MIS_DIO5` reader - DIO5 event"]
pub type INT_EVENT0_MIS_DIO5_R = crate :: BitReader < INT_EVENT0_MIS_DIO5_A > ; # [doc = "DIO5 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DIO5_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DIO5_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DIO5_SET = 1 , } impl From < INT_EVENT0_MIS_DIO5_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DIO5_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DIO5_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DIO5_A { match self . bits { false => INT_EVENT0_MIS_DIO5_A :: INT_EVENT0_MIS_DIO5_CLR , true => INT_EVENT0_MIS_DIO5_A :: INT_EVENT0_MIS_DIO5_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dio5_clr (& self) -> bool { * self == INT_EVENT0_MIS_DIO5_A :: INT_EVENT0_MIS_DIO5_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dio5_set (& self) -> bool { * self == INT_EVENT0_MIS_DIO5_A :: INT_EVENT0_MIS_DIO5_SET } } # [doc = "Field `INT_EVENT0_MIS_DIO6` reader - DIO6 event"]
pub type INT_EVENT0_MIS_DIO6_R = crate :: BitReader < INT_EVENT0_MIS_DIO6_A > ; # [doc = "DIO6 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DIO6_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DIO6_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DIO6_SET = 1 , } impl From < INT_EVENT0_MIS_DIO6_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DIO6_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DIO6_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DIO6_A { match self . bits { false => INT_EVENT0_MIS_DIO6_A :: INT_EVENT0_MIS_DIO6_CLR , true => INT_EVENT0_MIS_DIO6_A :: INT_EVENT0_MIS_DIO6_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dio6_clr (& self) -> bool { * self == INT_EVENT0_MIS_DIO6_A :: INT_EVENT0_MIS_DIO6_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dio6_set (& self) -> bool { * self == INT_EVENT0_MIS_DIO6_A :: INT_EVENT0_MIS_DIO6_SET } } # [doc = "Field `INT_EVENT0_MIS_DIO7` reader - DIO7 event"]
pub type INT_EVENT0_MIS_DIO7_R = crate :: BitReader < INT_EVENT0_MIS_DIO7_A > ; # [doc = "DIO7 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DIO7_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DIO7_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DIO7_SET = 1 , } impl From < INT_EVENT0_MIS_DIO7_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DIO7_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DIO7_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DIO7_A { match self . bits { false => INT_EVENT0_MIS_DIO7_A :: INT_EVENT0_MIS_DIO7_CLR , true => INT_EVENT0_MIS_DIO7_A :: INT_EVENT0_MIS_DIO7_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dio7_clr (& self) -> bool { * self == INT_EVENT0_MIS_DIO7_A :: INT_EVENT0_MIS_DIO7_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dio7_set (& self) -> bool { * self == INT_EVENT0_MIS_DIO7_A :: INT_EVENT0_MIS_DIO7_SET } } # [doc = "Field `INT_EVENT0_MIS_DIO8` reader - DIO8 event"]
pub type INT_EVENT0_MIS_DIO8_R = crate :: BitReader < INT_EVENT0_MIS_DIO8_A > ; # [doc = "DIO8 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DIO8_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DIO8_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DIO8_SET = 1 , } impl From < INT_EVENT0_MIS_DIO8_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DIO8_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DIO8_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DIO8_A { match self . bits { false => INT_EVENT0_MIS_DIO8_A :: INT_EVENT0_MIS_DIO8_CLR , true => INT_EVENT0_MIS_DIO8_A :: INT_EVENT0_MIS_DIO8_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dio8_clr (& self) -> bool { * self == INT_EVENT0_MIS_DIO8_A :: INT_EVENT0_MIS_DIO8_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dio8_set (& self) -> bool { * self == INT_EVENT0_MIS_DIO8_A :: INT_EVENT0_MIS_DIO8_SET } } # [doc = "Field `INT_EVENT0_MIS_DIO9` reader - DIO9 event"]
pub type INT_EVENT0_MIS_DIO9_R = crate :: BitReader < INT_EVENT0_MIS_DIO9_A > ; # [doc = "DIO9 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DIO9_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DIO9_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DIO9_SET = 1 , } impl From < INT_EVENT0_MIS_DIO9_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DIO9_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DIO9_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DIO9_A { match self . bits { false => INT_EVENT0_MIS_DIO9_A :: INT_EVENT0_MIS_DIO9_CLR , true => INT_EVENT0_MIS_DIO9_A :: INT_EVENT0_MIS_DIO9_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dio9_clr (& self) -> bool { * self == INT_EVENT0_MIS_DIO9_A :: INT_EVENT0_MIS_DIO9_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dio9_set (& self) -> bool { * self == INT_EVENT0_MIS_DIO9_A :: INT_EVENT0_MIS_DIO9_SET } } # [doc = "Field `INT_EVENT0_MIS_DIO10` reader - DIO10 event"]
pub type INT_EVENT0_MIS_DIO10_R = crate :: BitReader < INT_EVENT0_MIS_DIO10_A > ; # [doc = "DIO10 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DIO10_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DIO10_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DIO10_SET = 1 , } impl From < INT_EVENT0_MIS_DIO10_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DIO10_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DIO10_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DIO10_A { match self . bits { false => INT_EVENT0_MIS_DIO10_A :: INT_EVENT0_MIS_DIO10_CLR , true => INT_EVENT0_MIS_DIO10_A :: INT_EVENT0_MIS_DIO10_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dio10_clr (& self) -> bool { * self == INT_EVENT0_MIS_DIO10_A :: INT_EVENT0_MIS_DIO10_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dio10_set (& self) -> bool { * self == INT_EVENT0_MIS_DIO10_A :: INT_EVENT0_MIS_DIO10_SET } } # [doc = "Field `INT_EVENT0_MIS_DIO11` reader - DIO11 event"]
pub type INT_EVENT0_MIS_DIO11_R = crate :: BitReader < INT_EVENT0_MIS_DIO11_A > ; # [doc = "DIO11 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DIO11_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DIO11_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DIO11_SET = 1 , } impl From < INT_EVENT0_MIS_DIO11_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DIO11_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DIO11_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DIO11_A { match self . bits { false => INT_EVENT0_MIS_DIO11_A :: INT_EVENT0_MIS_DIO11_CLR , true => INT_EVENT0_MIS_DIO11_A :: INT_EVENT0_MIS_DIO11_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dio11_clr (& self) -> bool { * self == INT_EVENT0_MIS_DIO11_A :: INT_EVENT0_MIS_DIO11_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dio11_set (& self) -> bool { * self == INT_EVENT0_MIS_DIO11_A :: INT_EVENT0_MIS_DIO11_SET } } # [doc = "Field `INT_EVENT0_MIS_DIO12` reader - DIO12 event"]
pub type INT_EVENT0_MIS_DIO12_R = crate :: BitReader < INT_EVENT0_MIS_DIO12_A > ; # [doc = "DIO12 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DIO12_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DIO12_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DIO12_SET = 1 , } impl From < INT_EVENT0_MIS_DIO12_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DIO12_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DIO12_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DIO12_A { match self . bits { false => INT_EVENT0_MIS_DIO12_A :: INT_EVENT0_MIS_DIO12_CLR , true => INT_EVENT0_MIS_DIO12_A :: INT_EVENT0_MIS_DIO12_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dio12_clr (& self) -> bool { * self == INT_EVENT0_MIS_DIO12_A :: INT_EVENT0_MIS_DIO12_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dio12_set (& self) -> bool { * self == INT_EVENT0_MIS_DIO12_A :: INT_EVENT0_MIS_DIO12_SET } } # [doc = "Field `INT_EVENT0_MIS_DIO13` reader - DIO13 event"]
pub type INT_EVENT0_MIS_DIO13_R = crate :: BitReader < INT_EVENT0_MIS_DIO13_A > ; # [doc = "DIO13 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DIO13_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DIO13_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DIO13_SET = 1 , } impl From < INT_EVENT0_MIS_DIO13_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DIO13_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DIO13_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DIO13_A { match self . bits { false => INT_EVENT0_MIS_DIO13_A :: INT_EVENT0_MIS_DIO13_CLR , true => INT_EVENT0_MIS_DIO13_A :: INT_EVENT0_MIS_DIO13_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dio13_clr (& self) -> bool { * self == INT_EVENT0_MIS_DIO13_A :: INT_EVENT0_MIS_DIO13_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dio13_set (& self) -> bool { * self == INT_EVENT0_MIS_DIO13_A :: INT_EVENT0_MIS_DIO13_SET } } # [doc = "Field `INT_EVENT0_MIS_DIO14` reader - DIO14 event"]
pub type INT_EVENT0_MIS_DIO14_R = crate :: BitReader < INT_EVENT0_MIS_DIO14_A > ; # [doc = "DIO14 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DIO14_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DIO14_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DIO14_SET = 1 , } impl From < INT_EVENT0_MIS_DIO14_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DIO14_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DIO14_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DIO14_A { match self . bits { false => INT_EVENT0_MIS_DIO14_A :: INT_EVENT0_MIS_DIO14_CLR , true => INT_EVENT0_MIS_DIO14_A :: INT_EVENT0_MIS_DIO14_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dio14_clr (& self) -> bool { * self == INT_EVENT0_MIS_DIO14_A :: INT_EVENT0_MIS_DIO14_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dio14_set (& self) -> bool { * self == INT_EVENT0_MIS_DIO14_A :: INT_EVENT0_MIS_DIO14_SET } } # [doc = "Field `INT_EVENT0_MIS_DIO15` reader - DIO15 event"]
pub type INT_EVENT0_MIS_DIO15_R = crate :: BitReader < INT_EVENT0_MIS_DIO15_A > ; # [doc = "DIO15 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DIO15_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DIO15_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DIO15_SET = 1 , } impl From < INT_EVENT0_MIS_DIO15_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DIO15_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DIO15_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DIO15_A { match self . bits { false => INT_EVENT0_MIS_DIO15_A :: INT_EVENT0_MIS_DIO15_CLR , true => INT_EVENT0_MIS_DIO15_A :: INT_EVENT0_MIS_DIO15_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dio15_clr (& self) -> bool { * self == INT_EVENT0_MIS_DIO15_A :: INT_EVENT0_MIS_DIO15_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dio15_set (& self) -> bool { * self == INT_EVENT0_MIS_DIO15_A :: INT_EVENT0_MIS_DIO15_SET } } # [doc = "Field `INT_EVENT0_MIS_DIO16` reader - DIO16 event"]
pub type INT_EVENT0_MIS_DIO16_R = crate :: BitReader < INT_EVENT0_MIS_DIO16_A > ; # [doc = "DIO16 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DIO16_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DIO16_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DIO16_SET = 1 , } impl From < INT_EVENT0_MIS_DIO16_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DIO16_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DIO16_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DIO16_A { match self . bits { false => INT_EVENT0_MIS_DIO16_A :: INT_EVENT0_MIS_DIO16_CLR , true => INT_EVENT0_MIS_DIO16_A :: INT_EVENT0_MIS_DIO16_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dio16_clr (& self) -> bool { * self == INT_EVENT0_MIS_DIO16_A :: INT_EVENT0_MIS_DIO16_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dio16_set (& self) -> bool { * self == INT_EVENT0_MIS_DIO16_A :: INT_EVENT0_MIS_DIO16_SET } } # [doc = "Field `INT_EVENT0_MIS_DIO17` reader - DIO17 event"]
pub type INT_EVENT0_MIS_DIO17_R = crate :: BitReader < INT_EVENT0_MIS_DIO17_A > ; # [doc = "DIO17 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DIO17_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DIO17_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DIO17_SET = 1 , } impl From < INT_EVENT0_MIS_DIO17_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DIO17_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DIO17_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DIO17_A { match self . bits { false => INT_EVENT0_MIS_DIO17_A :: INT_EVENT0_MIS_DIO17_CLR , true => INT_EVENT0_MIS_DIO17_A :: INT_EVENT0_MIS_DIO17_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dio17_clr (& self) -> bool { * self == INT_EVENT0_MIS_DIO17_A :: INT_EVENT0_MIS_DIO17_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dio17_set (& self) -> bool { * self == INT_EVENT0_MIS_DIO17_A :: INT_EVENT0_MIS_DIO17_SET } } # [doc = "Field `INT_EVENT0_MIS_DIO18` reader - DIO18 event"]
pub type INT_EVENT0_MIS_DIO18_R = crate :: BitReader < INT_EVENT0_MIS_DIO18_A > ; # [doc = "DIO18 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DIO18_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DIO18_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DIO18_SET = 1 , } impl From < INT_EVENT0_MIS_DIO18_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DIO18_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DIO18_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DIO18_A { match self . bits { false => INT_EVENT0_MIS_DIO18_A :: INT_EVENT0_MIS_DIO18_CLR , true => INT_EVENT0_MIS_DIO18_A :: INT_EVENT0_MIS_DIO18_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dio18_clr (& self) -> bool { * self == INT_EVENT0_MIS_DIO18_A :: INT_EVENT0_MIS_DIO18_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dio18_set (& self) -> bool { * self == INT_EVENT0_MIS_DIO18_A :: INT_EVENT0_MIS_DIO18_SET } } # [doc = "Field `INT_EVENT0_MIS_DIO19` reader - DIO19 event"]
pub type INT_EVENT0_MIS_DIO19_R = crate :: BitReader < INT_EVENT0_MIS_DIO19_A > ; # [doc = "DIO19 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DIO19_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DIO19_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DIO19_SET = 1 , } impl From < INT_EVENT0_MIS_DIO19_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DIO19_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DIO19_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DIO19_A { match self . bits { false => INT_EVENT0_MIS_DIO19_A :: INT_EVENT0_MIS_DIO19_CLR , true => INT_EVENT0_MIS_DIO19_A :: INT_EVENT0_MIS_DIO19_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dio19_clr (& self) -> bool { * self == INT_EVENT0_MIS_DIO19_A :: INT_EVENT0_MIS_DIO19_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dio19_set (& self) -> bool { * self == INT_EVENT0_MIS_DIO19_A :: INT_EVENT0_MIS_DIO19_SET } } # [doc = "Field `INT_EVENT0_MIS_DIO20` reader - DIO20 event"]
pub type INT_EVENT0_MIS_DIO20_R = crate :: BitReader < INT_EVENT0_MIS_DIO20_A > ; # [doc = "DIO20 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DIO20_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DIO20_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DIO20_SET = 1 , } impl From < INT_EVENT0_MIS_DIO20_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DIO20_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DIO20_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DIO20_A { match self . bits { false => INT_EVENT0_MIS_DIO20_A :: INT_EVENT0_MIS_DIO20_CLR , true => INT_EVENT0_MIS_DIO20_A :: INT_EVENT0_MIS_DIO20_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dio20_clr (& self) -> bool { * self == INT_EVENT0_MIS_DIO20_A :: INT_EVENT0_MIS_DIO20_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dio20_set (& self) -> bool { * self == INT_EVENT0_MIS_DIO20_A :: INT_EVENT0_MIS_DIO20_SET } } # [doc = "Field `INT_EVENT0_MIS_DIO21` reader - DIO21 event"]
pub type INT_EVENT0_MIS_DIO21_R = crate :: BitReader < INT_EVENT0_MIS_DIO21_A > ; # [doc = "DIO21 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DIO21_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DIO21_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DIO21_SET = 1 , } impl From < INT_EVENT0_MIS_DIO21_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DIO21_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DIO21_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DIO21_A { match self . bits { false => INT_EVENT0_MIS_DIO21_A :: INT_EVENT0_MIS_DIO21_CLR , true => INT_EVENT0_MIS_DIO21_A :: INT_EVENT0_MIS_DIO21_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dio21_clr (& self) -> bool { * self == INT_EVENT0_MIS_DIO21_A :: INT_EVENT0_MIS_DIO21_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dio21_set (& self) -> bool { * self == INT_EVENT0_MIS_DIO21_A :: INT_EVENT0_MIS_DIO21_SET } } # [doc = "Field `INT_EVENT0_MIS_DIO22` reader - DIO22 event"]
pub type INT_EVENT0_MIS_DIO22_R = crate :: BitReader < INT_EVENT0_MIS_DIO22_A > ; # [doc = "DIO22 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DIO22_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DIO22_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DIO22_SET = 1 , } impl From < INT_EVENT0_MIS_DIO22_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DIO22_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DIO22_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DIO22_A { match self . bits { false => INT_EVENT0_MIS_DIO22_A :: INT_EVENT0_MIS_DIO22_CLR , true => INT_EVENT0_MIS_DIO22_A :: INT_EVENT0_MIS_DIO22_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dio22_clr (& self) -> bool { * self == INT_EVENT0_MIS_DIO22_A :: INT_EVENT0_MIS_DIO22_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dio22_set (& self) -> bool { * self == INT_EVENT0_MIS_DIO22_A :: INT_EVENT0_MIS_DIO22_SET } } # [doc = "Field `INT_EVENT0_MIS_DIO23` reader - DIO23 event"]
pub type INT_EVENT0_MIS_DIO23_R = crate :: BitReader < INT_EVENT0_MIS_DIO23_A > ; # [doc = "DIO23 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DIO23_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DIO23_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DIO23_SET = 1 , } impl From < INT_EVENT0_MIS_DIO23_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DIO23_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DIO23_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DIO23_A { match self . bits { false => INT_EVENT0_MIS_DIO23_A :: INT_EVENT0_MIS_DIO23_CLR , true => INT_EVENT0_MIS_DIO23_A :: INT_EVENT0_MIS_DIO23_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dio23_clr (& self) -> bool { * self == INT_EVENT0_MIS_DIO23_A :: INT_EVENT0_MIS_DIO23_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dio23_set (& self) -> bool { * self == INT_EVENT0_MIS_DIO23_A :: INT_EVENT0_MIS_DIO23_SET } } # [doc = "Field `INT_EVENT0_MIS_DIO24` reader - DIO24 event"]
pub type INT_EVENT0_MIS_DIO24_R = crate :: BitReader < INT_EVENT0_MIS_DIO24_A > ; # [doc = "DIO24 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DIO24_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DIO24_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DIO24_SET = 1 , } impl From < INT_EVENT0_MIS_DIO24_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DIO24_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DIO24_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DIO24_A { match self . bits { false => INT_EVENT0_MIS_DIO24_A :: INT_EVENT0_MIS_DIO24_CLR , true => INT_EVENT0_MIS_DIO24_A :: INT_EVENT0_MIS_DIO24_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dio24_clr (& self) -> bool { * self == INT_EVENT0_MIS_DIO24_A :: INT_EVENT0_MIS_DIO24_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dio24_set (& self) -> bool { * self == INT_EVENT0_MIS_DIO24_A :: INT_EVENT0_MIS_DIO24_SET } } # [doc = "Field `INT_EVENT0_MIS_DIO25` reader - DIO25 event"]
pub type INT_EVENT0_MIS_DIO25_R = crate :: BitReader < INT_EVENT0_MIS_DIO25_A > ; # [doc = "DIO25 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DIO25_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DIO25_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DIO25_SET = 1 , } impl From < INT_EVENT0_MIS_DIO25_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DIO25_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DIO25_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DIO25_A { match self . bits { false => INT_EVENT0_MIS_DIO25_A :: INT_EVENT0_MIS_DIO25_CLR , true => INT_EVENT0_MIS_DIO25_A :: INT_EVENT0_MIS_DIO25_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dio25_clr (& self) -> bool { * self == INT_EVENT0_MIS_DIO25_A :: INT_EVENT0_MIS_DIO25_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dio25_set (& self) -> bool { * self == INT_EVENT0_MIS_DIO25_A :: INT_EVENT0_MIS_DIO25_SET } } # [doc = "Field `INT_EVENT0_MIS_DIO26` reader - DIO26 event"]
pub type INT_EVENT0_MIS_DIO26_R = crate :: BitReader < INT_EVENT0_MIS_DIO26_A > ; # [doc = "DIO26 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DIO26_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DIO26_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DIO26_SET = 1 , } impl From < INT_EVENT0_MIS_DIO26_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DIO26_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DIO26_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DIO26_A { match self . bits { false => INT_EVENT0_MIS_DIO26_A :: INT_EVENT0_MIS_DIO26_CLR , true => INT_EVENT0_MIS_DIO26_A :: INT_EVENT0_MIS_DIO26_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dio26_clr (& self) -> bool { * self == INT_EVENT0_MIS_DIO26_A :: INT_EVENT0_MIS_DIO26_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dio26_set (& self) -> bool { * self == INT_EVENT0_MIS_DIO26_A :: INT_EVENT0_MIS_DIO26_SET } } # [doc = "Field `INT_EVENT0_MIS_DIO27` reader - DIO27 event"]
pub type INT_EVENT0_MIS_DIO27_R = crate :: BitReader < INT_EVENT0_MIS_DIO27_A > ; # [doc = "DIO27 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DIO27_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DIO27_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DIO27_SET = 1 , } impl From < INT_EVENT0_MIS_DIO27_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DIO27_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DIO27_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DIO27_A { match self . bits { false => INT_EVENT0_MIS_DIO27_A :: INT_EVENT0_MIS_DIO27_CLR , true => INT_EVENT0_MIS_DIO27_A :: INT_EVENT0_MIS_DIO27_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dio27_clr (& self) -> bool { * self == INT_EVENT0_MIS_DIO27_A :: INT_EVENT0_MIS_DIO27_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dio27_set (& self) -> bool { * self == INT_EVENT0_MIS_DIO27_A :: INT_EVENT0_MIS_DIO27_SET } } # [doc = "Field `INT_EVENT0_MIS_DIO28` reader - DIO28 event"]
pub type INT_EVENT0_MIS_DIO28_R = crate :: BitReader < INT_EVENT0_MIS_DIO28_A > ; # [doc = "DIO28 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DIO28_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DIO28_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DIO28_SET = 1 , } impl From < INT_EVENT0_MIS_DIO28_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DIO28_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DIO28_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DIO28_A { match self . bits { false => INT_EVENT0_MIS_DIO28_A :: INT_EVENT0_MIS_DIO28_CLR , true => INT_EVENT0_MIS_DIO28_A :: INT_EVENT0_MIS_DIO28_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dio28_clr (& self) -> bool { * self == INT_EVENT0_MIS_DIO28_A :: INT_EVENT0_MIS_DIO28_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dio28_set (& self) -> bool { * self == INT_EVENT0_MIS_DIO28_A :: INT_EVENT0_MIS_DIO28_SET } } # [doc = "Field `INT_EVENT0_MIS_DIO29` reader - DIO29 event"]
pub type INT_EVENT0_MIS_DIO29_R = crate :: BitReader < INT_EVENT0_MIS_DIO29_A > ; # [doc = "DIO29 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DIO29_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DIO29_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DIO29_SET = 1 , } impl From < INT_EVENT0_MIS_DIO29_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DIO29_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DIO29_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DIO29_A { match self . bits { false => INT_EVENT0_MIS_DIO29_A :: INT_EVENT0_MIS_DIO29_CLR , true => INT_EVENT0_MIS_DIO29_A :: INT_EVENT0_MIS_DIO29_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dio29_clr (& self) -> bool { * self == INT_EVENT0_MIS_DIO29_A :: INT_EVENT0_MIS_DIO29_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dio29_set (& self) -> bool { * self == INT_EVENT0_MIS_DIO29_A :: INT_EVENT0_MIS_DIO29_SET } } # [doc = "Field `INT_EVENT0_MIS_DIO30` reader - DIO30 event"]
pub type INT_EVENT0_MIS_DIO30_R = crate :: BitReader < INT_EVENT0_MIS_DIO30_A > ; # [doc = "DIO30 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DIO30_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DIO30_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DIO30_SET = 1 , } impl From < INT_EVENT0_MIS_DIO30_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DIO30_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DIO30_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DIO30_A { match self . bits { false => INT_EVENT0_MIS_DIO30_A :: INT_EVENT0_MIS_DIO30_CLR , true => INT_EVENT0_MIS_DIO30_A :: INT_EVENT0_MIS_DIO30_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dio30_clr (& self) -> bool { * self == INT_EVENT0_MIS_DIO30_A :: INT_EVENT0_MIS_DIO30_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dio30_set (& self) -> bool { * self == INT_EVENT0_MIS_DIO30_A :: INT_EVENT0_MIS_DIO30_SET } } # [doc = "Field `INT_EVENT0_MIS_DIO31` reader - DIO31 event"]
pub type INT_EVENT0_MIS_DIO31_R = crate :: BitReader < INT_EVENT0_MIS_DIO31_A > ; # [doc = "DIO31 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DIO31_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DIO31_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DIO31_SET = 1 , } impl From < INT_EVENT0_MIS_DIO31_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DIO31_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DIO31_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DIO31_A { match self . bits { false => INT_EVENT0_MIS_DIO31_A :: INT_EVENT0_MIS_DIO31_CLR , true => INT_EVENT0_MIS_DIO31_A :: INT_EVENT0_MIS_DIO31_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dio31_clr (& self) -> bool { * self == INT_EVENT0_MIS_DIO31_A :: INT_EVENT0_MIS_DIO31_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dio31_set (& self) -> bool { * self == INT_EVENT0_MIS_DIO31_A :: INT_EVENT0_MIS_DIO31_SET } } impl R { # [doc = "Bit 0 - DIO0 event"]
# [inline (always)]
pub fn int_event0_mis_dio0 (& self) -> INT_EVENT0_MIS_DIO0_R { INT_EVENT0_MIS_DIO0_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - DIO1 event"]
# [inline (always)]
pub fn int_event0_mis_dio1 (& self) -> INT_EVENT0_MIS_DIO1_R { INT_EVENT0_MIS_DIO1_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - DIO2 event"]
# [inline (always)]
pub fn int_event0_mis_dio2 (& self) -> INT_EVENT0_MIS_DIO2_R { INT_EVENT0_MIS_DIO2_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - DIO3 event"]
# [inline (always)]
pub fn int_event0_mis_dio3 (& self) -> INT_EVENT0_MIS_DIO3_R { INT_EVENT0_MIS_DIO3_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - DIO4 event"]
# [inline (always)]
pub fn int_event0_mis_dio4 (& self) -> INT_EVENT0_MIS_DIO4_R { INT_EVENT0_MIS_DIO4_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - DIO5 event"]
# [inline (always)]
pub fn int_event0_mis_dio5 (& self) -> INT_EVENT0_MIS_DIO5_R { INT_EVENT0_MIS_DIO5_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - DIO6 event"]
# [inline (always)]
pub fn int_event0_mis_dio6 (& self) -> INT_EVENT0_MIS_DIO6_R { INT_EVENT0_MIS_DIO6_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 7 - DIO7 event"]
# [inline (always)]
pub fn int_event0_mis_dio7 (& self) -> INT_EVENT0_MIS_DIO7_R { INT_EVENT0_MIS_DIO7_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - DIO8 event"]
# [inline (always)]
pub fn int_event0_mis_dio8 (& self) -> INT_EVENT0_MIS_DIO8_R { INT_EVENT0_MIS_DIO8_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - DIO9 event"]
# [inline (always)]
pub fn int_event0_mis_dio9 (& self) -> INT_EVENT0_MIS_DIO9_R { INT_EVENT0_MIS_DIO9_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - DIO10 event"]
# [inline (always)]
pub fn int_event0_mis_dio10 (& self) -> INT_EVENT0_MIS_DIO10_R { INT_EVENT0_MIS_DIO10_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bit 11 - DIO11 event"]
# [inline (always)]
pub fn int_event0_mis_dio11 (& self) -> INT_EVENT0_MIS_DIO11_R { INT_EVENT0_MIS_DIO11_R :: new (((self . bits >> 11) & 1) != 0) } # [doc = "Bit 12 - DIO12 event"]
# [inline (always)]
pub fn int_event0_mis_dio12 (& self) -> INT_EVENT0_MIS_DIO12_R { INT_EVENT0_MIS_DIO12_R :: new (((self . bits >> 12) & 1) != 0) } # [doc = "Bit 13 - DIO13 event"]
# [inline (always)]
pub fn int_event0_mis_dio13 (& self) -> INT_EVENT0_MIS_DIO13_R { INT_EVENT0_MIS_DIO13_R :: new (((self . bits >> 13) & 1) != 0) } # [doc = "Bit 14 - DIO14 event"]
# [inline (always)]
pub fn int_event0_mis_dio14 (& self) -> INT_EVENT0_MIS_DIO14_R { INT_EVENT0_MIS_DIO14_R :: new (((self . bits >> 14) & 1) != 0) } # [doc = "Bit 15 - DIO15 event"]
# [inline (always)]
pub fn int_event0_mis_dio15 (& self) -> INT_EVENT0_MIS_DIO15_R { INT_EVENT0_MIS_DIO15_R :: new (((self . bits >> 15) & 1) != 0) } # [doc = "Bit 16 - DIO16 event"]
# [inline (always)]
pub fn int_event0_mis_dio16 (& self) -> INT_EVENT0_MIS_DIO16_R { INT_EVENT0_MIS_DIO16_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 17 - DIO17 event"]
# [inline (always)]
pub fn int_event0_mis_dio17 (& self) -> INT_EVENT0_MIS_DIO17_R { INT_EVENT0_MIS_DIO17_R :: new (((self . bits >> 17) & 1) != 0) } # [doc = "Bit 18 - DIO18 event"]
# [inline (always)]
pub fn int_event0_mis_dio18 (& self) -> INT_EVENT0_MIS_DIO18_R { INT_EVENT0_MIS_DIO18_R :: new (((self . bits >> 18) & 1) != 0) } # [doc = "Bit 19 - DIO19 event"]
# [inline (always)]
pub fn int_event0_mis_dio19 (& self) -> INT_EVENT0_MIS_DIO19_R { INT_EVENT0_MIS_DIO19_R :: new (((self . bits >> 19) & 1) != 0) } # [doc = "Bit 20 - DIO20 event"]
# [inline (always)]
pub fn int_event0_mis_dio20 (& self) -> INT_EVENT0_MIS_DIO20_R { INT_EVENT0_MIS_DIO20_R :: new (((self . bits >> 20) & 1) != 0) } # [doc = "Bit 21 - DIO21 event"]
# [inline (always)]
pub fn int_event0_mis_dio21 (& self) -> INT_EVENT0_MIS_DIO21_R { INT_EVENT0_MIS_DIO21_R :: new (((self . bits >> 21) & 1) != 0) } # [doc = "Bit 22 - DIO22 event"]
# [inline (always)]
pub fn int_event0_mis_dio22 (& self) -> INT_EVENT0_MIS_DIO22_R { INT_EVENT0_MIS_DIO22_R :: new (((self . bits >> 22) & 1) != 0) } # [doc = "Bit 23 - DIO23 event"]
# [inline (always)]
pub fn int_event0_mis_dio23 (& self) -> INT_EVENT0_MIS_DIO23_R { INT_EVENT0_MIS_DIO23_R :: new (((self . bits >> 23) & 1) != 0) } # [doc = "Bit 24 - DIO24 event"]
# [inline (always)]
pub fn int_event0_mis_dio24 (& self) -> INT_EVENT0_MIS_DIO24_R { INT_EVENT0_MIS_DIO24_R :: new (((self . bits >> 24) & 1) != 0) } # [doc = "Bit 25 - DIO25 event"]
# [inline (always)]
pub fn int_event0_mis_dio25 (& self) -> INT_EVENT0_MIS_DIO25_R { INT_EVENT0_MIS_DIO25_R :: new (((self . bits >> 25) & 1) != 0) } # [doc = "Bit 26 - DIO26 event"]
# [inline (always)]
pub fn int_event0_mis_dio26 (& self) -> INT_EVENT0_MIS_DIO26_R { INT_EVENT0_MIS_DIO26_R :: new (((self . bits >> 26) & 1) != 0) } # [doc = "Bit 27 - DIO27 event"]
# [inline (always)]
pub fn int_event0_mis_dio27 (& self) -> INT_EVENT0_MIS_DIO27_R { INT_EVENT0_MIS_DIO27_R :: new (((self . bits >> 27) & 1) != 0) } # [doc = "Bit 28 - DIO28 event"]
# [inline (always)]
pub fn int_event0_mis_dio28 (& self) -> INT_EVENT0_MIS_DIO28_R { INT_EVENT0_MIS_DIO28_R :: new (((self . bits >> 28) & 1) != 0) } # [doc = "Bit 29 - DIO29 event"]
# [inline (always)]
pub fn int_event0_mis_dio29 (& self) -> INT_EVENT0_MIS_DIO29_R { INT_EVENT0_MIS_DIO29_R :: new (((self . bits >> 29) & 1) != 0) } # [doc = "Bit 30 - DIO30 event"]
# [inline (always)]
pub fn int_event0_mis_dio30 (& self) -> INT_EVENT0_MIS_DIO30_R { INT_EVENT0_MIS_DIO30_R :: new (((self . bits >> 30) & 1) != 0) } # [doc = "Bit 31 - DIO31 event"]
# [inline (always)]
pub fn int_event0_mis_dio31 (& self) -> INT_EVENT0_MIS_DIO31_R { INT_EVENT0_MIS_DIO31_R :: new (((self . bits >> 31) & 1) != 0) } } # [doc = "Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_MIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event0_mis::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT0_MIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT0_MIS to value 0"]
impl crate :: Resettable for INT_EVENT0_MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_ISET (w) register accessor: Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_iset`]
module"]
pub type INT_EVENT0_ISET = crate :: Reg < int_event0_iset :: INT_EVENT0_ISET_SPEC > ; # [doc = "Interrupt set"]
pub mod int_event0_iset { # [doc = "Register `INT_EVENT0_ISET` writer"]
pub type W = crate :: W < INT_EVENT0_ISET_SPEC > ; # [doc = "DIO0 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DIO0_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DIO0_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DIO0_SET = 1 , } impl From < INT_EVENT0_ISET_DIO0_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DIO0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DIO0` writer - DIO0 event"]
pub type INT_EVENT0_ISET_DIO0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DIO0_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DIO0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dio0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO0_AW :: INT_EVENT0_ISET_DIO0_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dio0_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO0_AW :: INT_EVENT0_ISET_DIO0_SET) } } # [doc = "DIO1 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DIO1_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DIO1_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DIO1_SET = 1 , } impl From < INT_EVENT0_ISET_DIO1_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DIO1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DIO1` writer - DIO1 event"]
pub type INT_EVENT0_ISET_DIO1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DIO1_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DIO1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dio1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO1_AW :: INT_EVENT0_ISET_DIO1_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dio1_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO1_AW :: INT_EVENT0_ISET_DIO1_SET) } } # [doc = "DIO2 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DIO2_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DIO2_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DIO2_SET = 1 , } impl From < INT_EVENT0_ISET_DIO2_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DIO2_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DIO2` writer - DIO2 event"]
pub type INT_EVENT0_ISET_DIO2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DIO2_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DIO2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dio2_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO2_AW :: INT_EVENT0_ISET_DIO2_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dio2_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO2_AW :: INT_EVENT0_ISET_DIO2_SET) } } # [doc = "DIO3 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DIO3_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DIO3_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DIO3_SET = 1 , } impl From < INT_EVENT0_ISET_DIO3_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DIO3_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DIO3` writer - DIO3 event"]
pub type INT_EVENT0_ISET_DIO3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DIO3_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DIO3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dio3_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO3_AW :: INT_EVENT0_ISET_DIO3_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dio3_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO3_AW :: INT_EVENT0_ISET_DIO3_SET) } } # [doc = "DIO4 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DIO4_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DIO4_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DIO4_SET = 1 , } impl From < INT_EVENT0_ISET_DIO4_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DIO4_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DIO4` writer - DIO4 event"]
pub type INT_EVENT0_ISET_DIO4_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DIO4_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DIO4_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dio4_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO4_AW :: INT_EVENT0_ISET_DIO4_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dio4_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO4_AW :: INT_EVENT0_ISET_DIO4_SET) } } # [doc = "DIO5 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DIO5_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DIO5_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DIO5_SET = 1 , } impl From < INT_EVENT0_ISET_DIO5_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DIO5_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DIO5` writer - DIO5 event"]
pub type INT_EVENT0_ISET_DIO5_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DIO5_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DIO5_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dio5_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO5_AW :: INT_EVENT0_ISET_DIO5_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dio5_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO5_AW :: INT_EVENT0_ISET_DIO5_SET) } } # [doc = "DIO6 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DIO6_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DIO6_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DIO6_SET = 1 , } impl From < INT_EVENT0_ISET_DIO6_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DIO6_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DIO6` writer - DIO6 event"]
pub type INT_EVENT0_ISET_DIO6_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DIO6_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DIO6_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dio6_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO6_AW :: INT_EVENT0_ISET_DIO6_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dio6_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO6_AW :: INT_EVENT0_ISET_DIO6_SET) } } # [doc = "DIO7 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DIO7_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DIO7_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DIO7_SET = 1 , } impl From < INT_EVENT0_ISET_DIO7_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DIO7_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DIO7` writer - DIO7 event"]
pub type INT_EVENT0_ISET_DIO7_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DIO7_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DIO7_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dio7_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO7_AW :: INT_EVENT0_ISET_DIO7_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dio7_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO7_AW :: INT_EVENT0_ISET_DIO7_SET) } } # [doc = "DIO8 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DIO8_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DIO8_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DIO8_SET = 1 , } impl From < INT_EVENT0_ISET_DIO8_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DIO8_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DIO8` writer - DIO8 event"]
pub type INT_EVENT0_ISET_DIO8_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DIO8_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DIO8_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dio8_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO8_AW :: INT_EVENT0_ISET_DIO8_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dio8_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO8_AW :: INT_EVENT0_ISET_DIO8_SET) } } # [doc = "DIO9 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DIO9_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DIO9_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DIO9_SET = 1 , } impl From < INT_EVENT0_ISET_DIO9_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DIO9_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DIO9` writer - DIO9 event"]
pub type INT_EVENT0_ISET_DIO9_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DIO9_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DIO9_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dio9_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO9_AW :: INT_EVENT0_ISET_DIO9_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dio9_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO9_AW :: INT_EVENT0_ISET_DIO9_SET) } } # [doc = "DIO10 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DIO10_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DIO10_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DIO10_SET = 1 , } impl From < INT_EVENT0_ISET_DIO10_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DIO10_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DIO10` writer - DIO10 event"]
pub type INT_EVENT0_ISET_DIO10_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DIO10_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DIO10_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dio10_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO10_AW :: INT_EVENT0_ISET_DIO10_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dio10_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO10_AW :: INT_EVENT0_ISET_DIO10_SET) } } # [doc = "DIO11 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DIO11_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DIO11_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DIO11_SET = 1 , } impl From < INT_EVENT0_ISET_DIO11_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DIO11_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DIO11` writer - DIO11 event"]
pub type INT_EVENT0_ISET_DIO11_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DIO11_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DIO11_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dio11_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO11_AW :: INT_EVENT0_ISET_DIO11_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dio11_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO11_AW :: INT_EVENT0_ISET_DIO11_SET) } } # [doc = "DIO12 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DIO12_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DIO12_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DIO12_SET = 1 , } impl From < INT_EVENT0_ISET_DIO12_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DIO12_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DIO12` writer - DIO12 event"]
pub type INT_EVENT0_ISET_DIO12_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DIO12_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DIO12_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dio12_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO12_AW :: INT_EVENT0_ISET_DIO12_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dio12_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO12_AW :: INT_EVENT0_ISET_DIO12_SET) } } # [doc = "DIO13 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DIO13_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DIO13_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DIO13_SET = 1 , } impl From < INT_EVENT0_ISET_DIO13_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DIO13_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DIO13` writer - DIO13 event"]
pub type INT_EVENT0_ISET_DIO13_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DIO13_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DIO13_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dio13_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO13_AW :: INT_EVENT0_ISET_DIO13_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dio13_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO13_AW :: INT_EVENT0_ISET_DIO13_SET) } } # [doc = "DIO14 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DIO14_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DIO14_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DIO14_SET = 1 , } impl From < INT_EVENT0_ISET_DIO14_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DIO14_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DIO14` writer - DIO14 event"]
pub type INT_EVENT0_ISET_DIO14_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DIO14_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DIO14_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dio14_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO14_AW :: INT_EVENT0_ISET_DIO14_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dio14_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO14_AW :: INT_EVENT0_ISET_DIO14_SET) } } # [doc = "DIO15 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DIO15_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DIO15_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DIO15_SET = 1 , } impl From < INT_EVENT0_ISET_DIO15_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DIO15_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DIO15` writer - DIO15 event"]
pub type INT_EVENT0_ISET_DIO15_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DIO15_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DIO15_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dio15_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO15_AW :: INT_EVENT0_ISET_DIO15_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dio15_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO15_AW :: INT_EVENT0_ISET_DIO15_SET) } } # [doc = "DIO16 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DIO16_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DIO16_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DIO16_SET = 1 , } impl From < INT_EVENT0_ISET_DIO16_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DIO16_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DIO16` writer - DIO16 event"]
pub type INT_EVENT0_ISET_DIO16_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DIO16_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DIO16_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dio16_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO16_AW :: INT_EVENT0_ISET_DIO16_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dio16_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO16_AW :: INT_EVENT0_ISET_DIO16_SET) } } # [doc = "DIO17 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DIO17_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DIO17_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DIO17_SET = 1 , } impl From < INT_EVENT0_ISET_DIO17_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DIO17_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DIO17` writer - DIO17 event"]
pub type INT_EVENT0_ISET_DIO17_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DIO17_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DIO17_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dio17_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO17_AW :: INT_EVENT0_ISET_DIO17_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dio17_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO17_AW :: INT_EVENT0_ISET_DIO17_SET) } } # [doc = "DIO18 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DIO18_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DIO18_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DIO18_SET = 1 , } impl From < INT_EVENT0_ISET_DIO18_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DIO18_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DIO18` writer - DIO18 event"]
pub type INT_EVENT0_ISET_DIO18_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DIO18_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DIO18_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dio18_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO18_AW :: INT_EVENT0_ISET_DIO18_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dio18_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO18_AW :: INT_EVENT0_ISET_DIO18_SET) } } # [doc = "DIO19 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DIO19_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DIO19_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DIO19_SET = 1 , } impl From < INT_EVENT0_ISET_DIO19_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DIO19_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DIO19` writer - DIO19 event"]
pub type INT_EVENT0_ISET_DIO19_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DIO19_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DIO19_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dio19_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO19_AW :: INT_EVENT0_ISET_DIO19_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dio19_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO19_AW :: INT_EVENT0_ISET_DIO19_SET) } } # [doc = "DIO20 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DIO20_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DIO20_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DIO20_SET = 1 , } impl From < INT_EVENT0_ISET_DIO20_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DIO20_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DIO20` writer - DIO20 event"]
pub type INT_EVENT0_ISET_DIO20_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DIO20_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DIO20_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dio20_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO20_AW :: INT_EVENT0_ISET_DIO20_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dio20_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO20_AW :: INT_EVENT0_ISET_DIO20_SET) } } # [doc = "DIO21 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DIO21_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DIO21_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DIO21_SET = 1 , } impl From < INT_EVENT0_ISET_DIO21_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DIO21_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DIO21` writer - DIO21 event"]
pub type INT_EVENT0_ISET_DIO21_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DIO21_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DIO21_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dio21_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO21_AW :: INT_EVENT0_ISET_DIO21_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dio21_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO21_AW :: INT_EVENT0_ISET_DIO21_SET) } } # [doc = "DIO22 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DIO22_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DIO22_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DIO22_SET = 1 , } impl From < INT_EVENT0_ISET_DIO22_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DIO22_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DIO22` writer - DIO22 event"]
pub type INT_EVENT0_ISET_DIO22_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DIO22_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DIO22_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dio22_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO22_AW :: INT_EVENT0_ISET_DIO22_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dio22_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO22_AW :: INT_EVENT0_ISET_DIO22_SET) } } # [doc = "DIO23 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DIO23_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DIO23_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DIO23_SET = 1 , } impl From < INT_EVENT0_ISET_DIO23_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DIO23_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DIO23` writer - DIO23 event"]
pub type INT_EVENT0_ISET_DIO23_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DIO23_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DIO23_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dio23_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO23_AW :: INT_EVENT0_ISET_DIO23_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dio23_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO23_AW :: INT_EVENT0_ISET_DIO23_SET) } } # [doc = "DIO24 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DIO24_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DIO24_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DIO24_SET = 1 , } impl From < INT_EVENT0_ISET_DIO24_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DIO24_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DIO24` writer - DIO24 event"]
pub type INT_EVENT0_ISET_DIO24_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DIO24_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DIO24_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dio24_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO24_AW :: INT_EVENT0_ISET_DIO24_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dio24_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO24_AW :: INT_EVENT0_ISET_DIO24_SET) } } # [doc = "DIO25 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DIO25_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DIO25_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DIO25_SET = 1 , } impl From < INT_EVENT0_ISET_DIO25_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DIO25_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DIO25` writer - DIO25 event"]
pub type INT_EVENT0_ISET_DIO25_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DIO25_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DIO25_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dio25_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO25_AW :: INT_EVENT0_ISET_DIO25_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dio25_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO25_AW :: INT_EVENT0_ISET_DIO25_SET) } } # [doc = "DIO26 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DIO26_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DIO26_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DIO26_SET = 1 , } impl From < INT_EVENT0_ISET_DIO26_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DIO26_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DIO26` writer - DIO26 event"]
pub type INT_EVENT0_ISET_DIO26_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DIO26_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DIO26_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dio26_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO26_AW :: INT_EVENT0_ISET_DIO26_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dio26_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO26_AW :: INT_EVENT0_ISET_DIO26_SET) } } # [doc = "DIO27 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DIO27_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DIO27_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DIO27_SET = 1 , } impl From < INT_EVENT0_ISET_DIO27_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DIO27_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DIO27` writer - DIO27 event"]
pub type INT_EVENT0_ISET_DIO27_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DIO27_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DIO27_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dio27_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO27_AW :: INT_EVENT0_ISET_DIO27_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dio27_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO27_AW :: INT_EVENT0_ISET_DIO27_SET) } } # [doc = "DIO28 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DIO28_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DIO28_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DIO28_SET = 1 , } impl From < INT_EVENT0_ISET_DIO28_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DIO28_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DIO28` writer - DIO28 event"]
pub type INT_EVENT0_ISET_DIO28_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DIO28_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DIO28_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dio28_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO28_AW :: INT_EVENT0_ISET_DIO28_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dio28_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO28_AW :: INT_EVENT0_ISET_DIO28_SET) } } # [doc = "DIO29 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DIO29_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DIO29_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DIO29_SET = 1 , } impl From < INT_EVENT0_ISET_DIO29_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DIO29_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DIO29` writer - DIO29 event"]
pub type INT_EVENT0_ISET_DIO29_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DIO29_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DIO29_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dio29_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO29_AW :: INT_EVENT0_ISET_DIO29_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dio29_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO29_AW :: INT_EVENT0_ISET_DIO29_SET) } } # [doc = "DIO30 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DIO30_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DIO30_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DIO30_SET = 1 , } impl From < INT_EVENT0_ISET_DIO30_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DIO30_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DIO30` writer - DIO30 event"]
pub type INT_EVENT0_ISET_DIO30_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DIO30_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DIO30_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dio30_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO30_AW :: INT_EVENT0_ISET_DIO30_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dio30_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO30_AW :: INT_EVENT0_ISET_DIO30_SET) } } # [doc = "DIO31 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DIO31_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DIO31_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DIO31_SET = 1 , } impl From < INT_EVENT0_ISET_DIO31_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DIO31_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DIO31` writer - DIO31 event"]
pub type INT_EVENT0_ISET_DIO31_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DIO31_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DIO31_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dio31_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO31_AW :: INT_EVENT0_ISET_DIO31_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dio31_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DIO31_AW :: INT_EVENT0_ISET_DIO31_SET) } } impl W { # [doc = "Bit 0 - DIO0 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dio0 (& mut self) -> INT_EVENT0_ISET_DIO0_W < INT_EVENT0_ISET_SPEC , 0 > { INT_EVENT0_ISET_DIO0_W :: new (self) } # [doc = "Bit 1 - DIO1 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dio1 (& mut self) -> INT_EVENT0_ISET_DIO1_W < INT_EVENT0_ISET_SPEC , 1 > { INT_EVENT0_ISET_DIO1_W :: new (self) } # [doc = "Bit 2 - DIO2 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dio2 (& mut self) -> INT_EVENT0_ISET_DIO2_W < INT_EVENT0_ISET_SPEC , 2 > { INT_EVENT0_ISET_DIO2_W :: new (self) } # [doc = "Bit 3 - DIO3 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dio3 (& mut self) -> INT_EVENT0_ISET_DIO3_W < INT_EVENT0_ISET_SPEC , 3 > { INT_EVENT0_ISET_DIO3_W :: new (self) } # [doc = "Bit 4 - DIO4 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dio4 (& mut self) -> INT_EVENT0_ISET_DIO4_W < INT_EVENT0_ISET_SPEC , 4 > { INT_EVENT0_ISET_DIO4_W :: new (self) } # [doc = "Bit 5 - DIO5 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dio5 (& mut self) -> INT_EVENT0_ISET_DIO5_W < INT_EVENT0_ISET_SPEC , 5 > { INT_EVENT0_ISET_DIO5_W :: new (self) } # [doc = "Bit 6 - DIO6 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dio6 (& mut self) -> INT_EVENT0_ISET_DIO6_W < INT_EVENT0_ISET_SPEC , 6 > { INT_EVENT0_ISET_DIO6_W :: new (self) } # [doc = "Bit 7 - DIO7 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dio7 (& mut self) -> INT_EVENT0_ISET_DIO7_W < INT_EVENT0_ISET_SPEC , 7 > { INT_EVENT0_ISET_DIO7_W :: new (self) } # [doc = "Bit 8 - DIO8 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dio8 (& mut self) -> INT_EVENT0_ISET_DIO8_W < INT_EVENT0_ISET_SPEC , 8 > { INT_EVENT0_ISET_DIO8_W :: new (self) } # [doc = "Bit 9 - DIO9 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dio9 (& mut self) -> INT_EVENT0_ISET_DIO9_W < INT_EVENT0_ISET_SPEC , 9 > { INT_EVENT0_ISET_DIO9_W :: new (self) } # [doc = "Bit 10 - DIO10 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dio10 (& mut self) -> INT_EVENT0_ISET_DIO10_W < INT_EVENT0_ISET_SPEC , 10 > { INT_EVENT0_ISET_DIO10_W :: new (self) } # [doc = "Bit 11 - DIO11 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dio11 (& mut self) -> INT_EVENT0_ISET_DIO11_W < INT_EVENT0_ISET_SPEC , 11 > { INT_EVENT0_ISET_DIO11_W :: new (self) } # [doc = "Bit 12 - DIO12 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dio12 (& mut self) -> INT_EVENT0_ISET_DIO12_W < INT_EVENT0_ISET_SPEC , 12 > { INT_EVENT0_ISET_DIO12_W :: new (self) } # [doc = "Bit 13 - DIO13 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dio13 (& mut self) -> INT_EVENT0_ISET_DIO13_W < INT_EVENT0_ISET_SPEC , 13 > { INT_EVENT0_ISET_DIO13_W :: new (self) } # [doc = "Bit 14 - DIO14 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dio14 (& mut self) -> INT_EVENT0_ISET_DIO14_W < INT_EVENT0_ISET_SPEC , 14 > { INT_EVENT0_ISET_DIO14_W :: new (self) } # [doc = "Bit 15 - DIO15 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dio15 (& mut self) -> INT_EVENT0_ISET_DIO15_W < INT_EVENT0_ISET_SPEC , 15 > { INT_EVENT0_ISET_DIO15_W :: new (self) } # [doc = "Bit 16 - DIO16 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dio16 (& mut self) -> INT_EVENT0_ISET_DIO16_W < INT_EVENT0_ISET_SPEC , 16 > { INT_EVENT0_ISET_DIO16_W :: new (self) } # [doc = "Bit 17 - DIO17 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dio17 (& mut self) -> INT_EVENT0_ISET_DIO17_W < INT_EVENT0_ISET_SPEC , 17 > { INT_EVENT0_ISET_DIO17_W :: new (self) } # [doc = "Bit 18 - DIO18 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dio18 (& mut self) -> INT_EVENT0_ISET_DIO18_W < INT_EVENT0_ISET_SPEC , 18 > { INT_EVENT0_ISET_DIO18_W :: new (self) } # [doc = "Bit 19 - DIO19 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dio19 (& mut self) -> INT_EVENT0_ISET_DIO19_W < INT_EVENT0_ISET_SPEC , 19 > { INT_EVENT0_ISET_DIO19_W :: new (self) } # [doc = "Bit 20 - DIO20 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dio20 (& mut self) -> INT_EVENT0_ISET_DIO20_W < INT_EVENT0_ISET_SPEC , 20 > { INT_EVENT0_ISET_DIO20_W :: new (self) } # [doc = "Bit 21 - DIO21 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dio21 (& mut self) -> INT_EVENT0_ISET_DIO21_W < INT_EVENT0_ISET_SPEC , 21 > { INT_EVENT0_ISET_DIO21_W :: new (self) } # [doc = "Bit 22 - DIO22 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dio22 (& mut self) -> INT_EVENT0_ISET_DIO22_W < INT_EVENT0_ISET_SPEC , 22 > { INT_EVENT0_ISET_DIO22_W :: new (self) } # [doc = "Bit 23 - DIO23 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dio23 (& mut self) -> INT_EVENT0_ISET_DIO23_W < INT_EVENT0_ISET_SPEC , 23 > { INT_EVENT0_ISET_DIO23_W :: new (self) } # [doc = "Bit 24 - DIO24 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dio24 (& mut self) -> INT_EVENT0_ISET_DIO24_W < INT_EVENT0_ISET_SPEC , 24 > { INT_EVENT0_ISET_DIO24_W :: new (self) } # [doc = "Bit 25 - DIO25 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dio25 (& mut self) -> INT_EVENT0_ISET_DIO25_W < INT_EVENT0_ISET_SPEC , 25 > { INT_EVENT0_ISET_DIO25_W :: new (self) } # [doc = "Bit 26 - DIO26 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dio26 (& mut self) -> INT_EVENT0_ISET_DIO26_W < INT_EVENT0_ISET_SPEC , 26 > { INT_EVENT0_ISET_DIO26_W :: new (self) } # [doc = "Bit 27 - DIO27 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dio27 (& mut self) -> INT_EVENT0_ISET_DIO27_W < INT_EVENT0_ISET_SPEC , 27 > { INT_EVENT0_ISET_DIO27_W :: new (self) } # [doc = "Bit 28 - DIO28 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dio28 (& mut self) -> INT_EVENT0_ISET_DIO28_W < INT_EVENT0_ISET_SPEC , 28 > { INT_EVENT0_ISET_DIO28_W :: new (self) } # [doc = "Bit 29 - DIO29 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dio29 (& mut self) -> INT_EVENT0_ISET_DIO29_W < INT_EVENT0_ISET_SPEC , 29 > { INT_EVENT0_ISET_DIO29_W :: new (self) } # [doc = "Bit 30 - DIO30 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dio30 (& mut self) -> INT_EVENT0_ISET_DIO30_W < INT_EVENT0_ISET_SPEC , 30 > { INT_EVENT0_ISET_DIO30_W :: new (self) } # [doc = "Bit 31 - DIO31 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dio31 (& mut self) -> INT_EVENT0_ISET_DIO31_W < INT_EVENT0_ISET_SPEC , 31 > { INT_EVENT0_ISET_DIO31_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_ISET_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event0_iset::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT0_ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT0_ISET to value 0"]
impl crate :: Resettable for INT_EVENT0_ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_ICLR (w) register accessor: Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_iclr`]
module"]
pub type INT_EVENT0_ICLR = crate :: Reg < int_event0_iclr :: INT_EVENT0_ICLR_SPEC > ; # [doc = "Interrupt clear"]
pub mod int_event0_iclr { # [doc = "Register `INT_EVENT0_ICLR` writer"]
pub type W = crate :: W < INT_EVENT0_ICLR_SPEC > ; # [doc = "DIO0 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DIO0_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DIO0_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DIO0_CLR = 1 , } impl From < INT_EVENT0_ICLR_DIO0_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DIO0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DIO0` writer - DIO0 event"]
pub type INT_EVENT0_ICLR_DIO0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DIO0_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DIO0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dio0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO0_AW :: INT_EVENT0_ICLR_DIO0_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dio0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO0_AW :: INT_EVENT0_ICLR_DIO0_CLR) } } # [doc = "DIO1 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DIO1_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DIO1_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DIO1_CLR = 1 , } impl From < INT_EVENT0_ICLR_DIO1_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DIO1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DIO1` writer - DIO1 event"]
pub type INT_EVENT0_ICLR_DIO1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DIO1_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DIO1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dio1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO1_AW :: INT_EVENT0_ICLR_DIO1_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dio1_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO1_AW :: INT_EVENT0_ICLR_DIO1_CLR) } } # [doc = "DIO2 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DIO2_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DIO2_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DIO2_CLR = 1 , } impl From < INT_EVENT0_ICLR_DIO2_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DIO2_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DIO2` writer - DIO2 event"]
pub type INT_EVENT0_ICLR_DIO2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DIO2_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DIO2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dio2_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO2_AW :: INT_EVENT0_ICLR_DIO2_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dio2_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO2_AW :: INT_EVENT0_ICLR_DIO2_CLR) } } # [doc = "DIO3 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DIO3_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DIO3_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DIO3_CLR = 1 , } impl From < INT_EVENT0_ICLR_DIO3_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DIO3_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DIO3` writer - DIO3 event"]
pub type INT_EVENT0_ICLR_DIO3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DIO3_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DIO3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dio3_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO3_AW :: INT_EVENT0_ICLR_DIO3_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dio3_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO3_AW :: INT_EVENT0_ICLR_DIO3_CLR) } } # [doc = "DIO4 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DIO4_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DIO4_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DIO4_CLR = 1 , } impl From < INT_EVENT0_ICLR_DIO4_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DIO4_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DIO4` writer - DIO4 event"]
pub type INT_EVENT0_ICLR_DIO4_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DIO4_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DIO4_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dio4_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO4_AW :: INT_EVENT0_ICLR_DIO4_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dio4_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO4_AW :: INT_EVENT0_ICLR_DIO4_CLR) } } # [doc = "DIO5 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DIO5_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DIO5_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DIO5_CLR = 1 , } impl From < INT_EVENT0_ICLR_DIO5_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DIO5_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DIO5` writer - DIO5 event"]
pub type INT_EVENT0_ICLR_DIO5_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DIO5_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DIO5_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dio5_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO5_AW :: INT_EVENT0_ICLR_DIO5_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dio5_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO5_AW :: INT_EVENT0_ICLR_DIO5_CLR) } } # [doc = "DIO6 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DIO6_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DIO6_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DIO6_CLR = 1 , } impl From < INT_EVENT0_ICLR_DIO6_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DIO6_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DIO6` writer - DIO6 event"]
pub type INT_EVENT0_ICLR_DIO6_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DIO6_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DIO6_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dio6_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO6_AW :: INT_EVENT0_ICLR_DIO6_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dio6_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO6_AW :: INT_EVENT0_ICLR_DIO6_CLR) } } # [doc = "DIO7 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DIO7_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DIO7_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DIO7_CLR = 1 , } impl From < INT_EVENT0_ICLR_DIO7_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DIO7_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DIO7` writer - DIO7 event"]
pub type INT_EVENT0_ICLR_DIO7_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DIO7_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DIO7_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dio7_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO7_AW :: INT_EVENT0_ICLR_DIO7_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dio7_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO7_AW :: INT_EVENT0_ICLR_DIO7_CLR) } } # [doc = "DIO8 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DIO8_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DIO8_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DIO8_CLR = 1 , } impl From < INT_EVENT0_ICLR_DIO8_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DIO8_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DIO8` writer - DIO8 event"]
pub type INT_EVENT0_ICLR_DIO8_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DIO8_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DIO8_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dio8_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO8_AW :: INT_EVENT0_ICLR_DIO8_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dio8_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO8_AW :: INT_EVENT0_ICLR_DIO8_CLR) } } # [doc = "DIO9 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DIO9_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DIO9_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DIO9_CLR = 1 , } impl From < INT_EVENT0_ICLR_DIO9_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DIO9_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DIO9` writer - DIO9 event"]
pub type INT_EVENT0_ICLR_DIO9_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DIO9_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DIO9_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dio9_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO9_AW :: INT_EVENT0_ICLR_DIO9_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dio9_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO9_AW :: INT_EVENT0_ICLR_DIO9_CLR) } } # [doc = "DIO10 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DIO10_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DIO10_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DIO10_CLR = 1 , } impl From < INT_EVENT0_ICLR_DIO10_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DIO10_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DIO10` writer - DIO10 event"]
pub type INT_EVENT0_ICLR_DIO10_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DIO10_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DIO10_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dio10_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO10_AW :: INT_EVENT0_ICLR_DIO10_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dio10_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO10_AW :: INT_EVENT0_ICLR_DIO10_CLR) } } # [doc = "DIO11 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DIO11_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DIO11_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DIO11_CLR = 1 , } impl From < INT_EVENT0_ICLR_DIO11_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DIO11_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DIO11` writer - DIO11 event"]
pub type INT_EVENT0_ICLR_DIO11_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DIO11_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DIO11_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dio11_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO11_AW :: INT_EVENT0_ICLR_DIO11_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dio11_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO11_AW :: INT_EVENT0_ICLR_DIO11_CLR) } } # [doc = "DIO12 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DIO12_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DIO12_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DIO12_CLR = 1 , } impl From < INT_EVENT0_ICLR_DIO12_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DIO12_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DIO12` writer - DIO12 event"]
pub type INT_EVENT0_ICLR_DIO12_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DIO12_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DIO12_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dio12_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO12_AW :: INT_EVENT0_ICLR_DIO12_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dio12_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO12_AW :: INT_EVENT0_ICLR_DIO12_CLR) } } # [doc = "DIO13 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DIO13_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DIO13_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DIO13_CLR = 1 , } impl From < INT_EVENT0_ICLR_DIO13_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DIO13_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DIO13` writer - DIO13 event"]
pub type INT_EVENT0_ICLR_DIO13_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DIO13_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DIO13_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dio13_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO13_AW :: INT_EVENT0_ICLR_DIO13_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dio13_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO13_AW :: INT_EVENT0_ICLR_DIO13_CLR) } } # [doc = "DIO14 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DIO14_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DIO14_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DIO14_CLR = 1 , } impl From < INT_EVENT0_ICLR_DIO14_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DIO14_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DIO14` writer - DIO14 event"]
pub type INT_EVENT0_ICLR_DIO14_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DIO14_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DIO14_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dio14_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO14_AW :: INT_EVENT0_ICLR_DIO14_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dio14_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO14_AW :: INT_EVENT0_ICLR_DIO14_CLR) } } # [doc = "DIO15 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DIO15_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DIO15_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DIO15_CLR = 1 , } impl From < INT_EVENT0_ICLR_DIO15_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DIO15_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DIO15` writer - DIO15 event"]
pub type INT_EVENT0_ICLR_DIO15_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DIO15_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DIO15_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dio15_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO15_AW :: INT_EVENT0_ICLR_DIO15_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dio15_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO15_AW :: INT_EVENT0_ICLR_DIO15_CLR) } } # [doc = "DIO16 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DIO16_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DIO16_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DIO16_CLR = 1 , } impl From < INT_EVENT0_ICLR_DIO16_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DIO16_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DIO16` writer - DIO16 event"]
pub type INT_EVENT0_ICLR_DIO16_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DIO16_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DIO16_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dio16_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO16_AW :: INT_EVENT0_ICLR_DIO16_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dio16_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO16_AW :: INT_EVENT0_ICLR_DIO16_CLR) } } # [doc = "DIO17 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DIO17_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DIO17_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DIO17_CLR = 1 , } impl From < INT_EVENT0_ICLR_DIO17_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DIO17_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DIO17` writer - DIO17 event"]
pub type INT_EVENT0_ICLR_DIO17_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DIO17_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DIO17_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dio17_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO17_AW :: INT_EVENT0_ICLR_DIO17_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dio17_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO17_AW :: INT_EVENT0_ICLR_DIO17_CLR) } } # [doc = "DIO18 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DIO18_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DIO18_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DIO18_CLR = 1 , } impl From < INT_EVENT0_ICLR_DIO18_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DIO18_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DIO18` writer - DIO18 event"]
pub type INT_EVENT0_ICLR_DIO18_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DIO18_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DIO18_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dio18_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO18_AW :: INT_EVENT0_ICLR_DIO18_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dio18_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO18_AW :: INT_EVENT0_ICLR_DIO18_CLR) } } # [doc = "DIO19 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DIO19_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DIO19_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DIO19_CLR = 1 , } impl From < INT_EVENT0_ICLR_DIO19_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DIO19_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DIO19` writer - DIO19 event"]
pub type INT_EVENT0_ICLR_DIO19_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DIO19_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DIO19_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dio19_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO19_AW :: INT_EVENT0_ICLR_DIO19_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dio19_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO19_AW :: INT_EVENT0_ICLR_DIO19_CLR) } } # [doc = "DIO20 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DIO20_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DIO20_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DIO20_CLR = 1 , } impl From < INT_EVENT0_ICLR_DIO20_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DIO20_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DIO20` writer - DIO20 event"]
pub type INT_EVENT0_ICLR_DIO20_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DIO20_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DIO20_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dio20_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO20_AW :: INT_EVENT0_ICLR_DIO20_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dio20_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO20_AW :: INT_EVENT0_ICLR_DIO20_CLR) } } # [doc = "DIO21 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DIO21_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DIO21_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DIO21_CLR = 1 , } impl From < INT_EVENT0_ICLR_DIO21_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DIO21_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DIO21` writer - DIO21 event"]
pub type INT_EVENT0_ICLR_DIO21_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DIO21_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DIO21_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dio21_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO21_AW :: INT_EVENT0_ICLR_DIO21_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dio21_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO21_AW :: INT_EVENT0_ICLR_DIO21_CLR) } } # [doc = "DIO22 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DIO22_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DIO22_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DIO22_CLR = 1 , } impl From < INT_EVENT0_ICLR_DIO22_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DIO22_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DIO22` writer - DIO22 event"]
pub type INT_EVENT0_ICLR_DIO22_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DIO22_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DIO22_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dio22_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO22_AW :: INT_EVENT0_ICLR_DIO22_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dio22_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO22_AW :: INT_EVENT0_ICLR_DIO22_CLR) } } # [doc = "DIO23 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DIO23_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DIO23_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DIO23_CLR = 1 , } impl From < INT_EVENT0_ICLR_DIO23_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DIO23_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DIO23` writer - DIO23 event"]
pub type INT_EVENT0_ICLR_DIO23_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DIO23_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DIO23_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dio23_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO23_AW :: INT_EVENT0_ICLR_DIO23_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dio23_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO23_AW :: INT_EVENT0_ICLR_DIO23_CLR) } } # [doc = "DIO24 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DIO24_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DIO24_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DIO24_CLR = 1 , } impl From < INT_EVENT0_ICLR_DIO24_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DIO24_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DIO24` writer - DIO24 event"]
pub type INT_EVENT0_ICLR_DIO24_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DIO24_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DIO24_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dio24_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO24_AW :: INT_EVENT0_ICLR_DIO24_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dio24_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO24_AW :: INT_EVENT0_ICLR_DIO24_CLR) } } # [doc = "DIO25 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DIO25_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DIO25_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DIO25_CLR = 1 , } impl From < INT_EVENT0_ICLR_DIO25_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DIO25_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DIO25` writer - DIO25 event"]
pub type INT_EVENT0_ICLR_DIO25_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DIO25_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DIO25_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dio25_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO25_AW :: INT_EVENT0_ICLR_DIO25_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dio25_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO25_AW :: INT_EVENT0_ICLR_DIO25_CLR) } } # [doc = "DIO26 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DIO26_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DIO26_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DIO26_CLR = 1 , } impl From < INT_EVENT0_ICLR_DIO26_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DIO26_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DIO26` writer - DIO26 event"]
pub type INT_EVENT0_ICLR_DIO26_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DIO26_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DIO26_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dio26_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO26_AW :: INT_EVENT0_ICLR_DIO26_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dio26_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO26_AW :: INT_EVENT0_ICLR_DIO26_CLR) } } # [doc = "DIO27 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DIO27_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DIO27_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DIO27_CLR = 1 , } impl From < INT_EVENT0_ICLR_DIO27_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DIO27_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DIO27` writer - DIO27 event"]
pub type INT_EVENT0_ICLR_DIO27_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DIO27_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DIO27_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dio27_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO27_AW :: INT_EVENT0_ICLR_DIO27_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dio27_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO27_AW :: INT_EVENT0_ICLR_DIO27_CLR) } } # [doc = "DIO28 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DIO28_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DIO28_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DIO28_CLR = 1 , } impl From < INT_EVENT0_ICLR_DIO28_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DIO28_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DIO28` writer - DIO28 event"]
pub type INT_EVENT0_ICLR_DIO28_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DIO28_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DIO28_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dio28_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO28_AW :: INT_EVENT0_ICLR_DIO28_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dio28_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO28_AW :: INT_EVENT0_ICLR_DIO28_CLR) } } # [doc = "DIO29 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DIO29_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DIO29_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DIO29_CLR = 1 , } impl From < INT_EVENT0_ICLR_DIO29_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DIO29_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DIO29` writer - DIO29 event"]
pub type INT_EVENT0_ICLR_DIO29_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DIO29_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DIO29_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dio29_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO29_AW :: INT_EVENT0_ICLR_DIO29_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dio29_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO29_AW :: INT_EVENT0_ICLR_DIO29_CLR) } } # [doc = "DIO30 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DIO30_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DIO30_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DIO30_CLR = 1 , } impl From < INT_EVENT0_ICLR_DIO30_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DIO30_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DIO30` writer - DIO30 event"]
pub type INT_EVENT0_ICLR_DIO30_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DIO30_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DIO30_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dio30_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO30_AW :: INT_EVENT0_ICLR_DIO30_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dio30_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO30_AW :: INT_EVENT0_ICLR_DIO30_CLR) } } # [doc = "DIO31 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DIO31_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DIO31_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DIO31_CLR = 1 , } impl From < INT_EVENT0_ICLR_DIO31_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DIO31_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DIO31` writer - DIO31 event"]
pub type INT_EVENT0_ICLR_DIO31_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DIO31_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DIO31_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dio31_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO31_AW :: INT_EVENT0_ICLR_DIO31_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dio31_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DIO31_AW :: INT_EVENT0_ICLR_DIO31_CLR) } } impl W { # [doc = "Bit 0 - DIO0 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dio0 (& mut self) -> INT_EVENT0_ICLR_DIO0_W < INT_EVENT0_ICLR_SPEC , 0 > { INT_EVENT0_ICLR_DIO0_W :: new (self) } # [doc = "Bit 1 - DIO1 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dio1 (& mut self) -> INT_EVENT0_ICLR_DIO1_W < INT_EVENT0_ICLR_SPEC , 1 > { INT_EVENT0_ICLR_DIO1_W :: new (self) } # [doc = "Bit 2 - DIO2 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dio2 (& mut self) -> INT_EVENT0_ICLR_DIO2_W < INT_EVENT0_ICLR_SPEC , 2 > { INT_EVENT0_ICLR_DIO2_W :: new (self) } # [doc = "Bit 3 - DIO3 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dio3 (& mut self) -> INT_EVENT0_ICLR_DIO3_W < INT_EVENT0_ICLR_SPEC , 3 > { INT_EVENT0_ICLR_DIO3_W :: new (self) } # [doc = "Bit 4 - DIO4 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dio4 (& mut self) -> INT_EVENT0_ICLR_DIO4_W < INT_EVENT0_ICLR_SPEC , 4 > { INT_EVENT0_ICLR_DIO4_W :: new (self) } # [doc = "Bit 5 - DIO5 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dio5 (& mut self) -> INT_EVENT0_ICLR_DIO5_W < INT_EVENT0_ICLR_SPEC , 5 > { INT_EVENT0_ICLR_DIO5_W :: new (self) } # [doc = "Bit 6 - DIO6 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dio6 (& mut self) -> INT_EVENT0_ICLR_DIO6_W < INT_EVENT0_ICLR_SPEC , 6 > { INT_EVENT0_ICLR_DIO6_W :: new (self) } # [doc = "Bit 7 - DIO7 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dio7 (& mut self) -> INT_EVENT0_ICLR_DIO7_W < INT_EVENT0_ICLR_SPEC , 7 > { INT_EVENT0_ICLR_DIO7_W :: new (self) } # [doc = "Bit 8 - DIO8 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dio8 (& mut self) -> INT_EVENT0_ICLR_DIO8_W < INT_EVENT0_ICLR_SPEC , 8 > { INT_EVENT0_ICLR_DIO8_W :: new (self) } # [doc = "Bit 9 - DIO9 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dio9 (& mut self) -> INT_EVENT0_ICLR_DIO9_W < INT_EVENT0_ICLR_SPEC , 9 > { INT_EVENT0_ICLR_DIO9_W :: new (self) } # [doc = "Bit 10 - DIO10 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dio10 (& mut self) -> INT_EVENT0_ICLR_DIO10_W < INT_EVENT0_ICLR_SPEC , 10 > { INT_EVENT0_ICLR_DIO10_W :: new (self) } # [doc = "Bit 11 - DIO11 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dio11 (& mut self) -> INT_EVENT0_ICLR_DIO11_W < INT_EVENT0_ICLR_SPEC , 11 > { INT_EVENT0_ICLR_DIO11_W :: new (self) } # [doc = "Bit 12 - DIO12 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dio12 (& mut self) -> INT_EVENT0_ICLR_DIO12_W < INT_EVENT0_ICLR_SPEC , 12 > { INT_EVENT0_ICLR_DIO12_W :: new (self) } # [doc = "Bit 13 - DIO13 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dio13 (& mut self) -> INT_EVENT0_ICLR_DIO13_W < INT_EVENT0_ICLR_SPEC , 13 > { INT_EVENT0_ICLR_DIO13_W :: new (self) } # [doc = "Bit 14 - DIO14 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dio14 (& mut self) -> INT_EVENT0_ICLR_DIO14_W < INT_EVENT0_ICLR_SPEC , 14 > { INT_EVENT0_ICLR_DIO14_W :: new (self) } # [doc = "Bit 15 - DIO15 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dio15 (& mut self) -> INT_EVENT0_ICLR_DIO15_W < INT_EVENT0_ICLR_SPEC , 15 > { INT_EVENT0_ICLR_DIO15_W :: new (self) } # [doc = "Bit 16 - DIO16 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dio16 (& mut self) -> INT_EVENT0_ICLR_DIO16_W < INT_EVENT0_ICLR_SPEC , 16 > { INT_EVENT0_ICLR_DIO16_W :: new (self) } # [doc = "Bit 17 - DIO17 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dio17 (& mut self) -> INT_EVENT0_ICLR_DIO17_W < INT_EVENT0_ICLR_SPEC , 17 > { INT_EVENT0_ICLR_DIO17_W :: new (self) } # [doc = "Bit 18 - DIO18 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dio18 (& mut self) -> INT_EVENT0_ICLR_DIO18_W < INT_EVENT0_ICLR_SPEC , 18 > { INT_EVENT0_ICLR_DIO18_W :: new (self) } # [doc = "Bit 19 - DIO19 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dio19 (& mut self) -> INT_EVENT0_ICLR_DIO19_W < INT_EVENT0_ICLR_SPEC , 19 > { INT_EVENT0_ICLR_DIO19_W :: new (self) } # [doc = "Bit 20 - DIO20 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dio20 (& mut self) -> INT_EVENT0_ICLR_DIO20_W < INT_EVENT0_ICLR_SPEC , 20 > { INT_EVENT0_ICLR_DIO20_W :: new (self) } # [doc = "Bit 21 - DIO21 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dio21 (& mut self) -> INT_EVENT0_ICLR_DIO21_W < INT_EVENT0_ICLR_SPEC , 21 > { INT_EVENT0_ICLR_DIO21_W :: new (self) } # [doc = "Bit 22 - DIO22 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dio22 (& mut self) -> INT_EVENT0_ICLR_DIO22_W < INT_EVENT0_ICLR_SPEC , 22 > { INT_EVENT0_ICLR_DIO22_W :: new (self) } # [doc = "Bit 23 - DIO23 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dio23 (& mut self) -> INT_EVENT0_ICLR_DIO23_W < INT_EVENT0_ICLR_SPEC , 23 > { INT_EVENT0_ICLR_DIO23_W :: new (self) } # [doc = "Bit 24 - DIO24 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dio24 (& mut self) -> INT_EVENT0_ICLR_DIO24_W < INT_EVENT0_ICLR_SPEC , 24 > { INT_EVENT0_ICLR_DIO24_W :: new (self) } # [doc = "Bit 25 - DIO25 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dio25 (& mut self) -> INT_EVENT0_ICLR_DIO25_W < INT_EVENT0_ICLR_SPEC , 25 > { INT_EVENT0_ICLR_DIO25_W :: new (self) } # [doc = "Bit 26 - DIO26 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dio26 (& mut self) -> INT_EVENT0_ICLR_DIO26_W < INT_EVENT0_ICLR_SPEC , 26 > { INT_EVENT0_ICLR_DIO26_W :: new (self) } # [doc = "Bit 27 - DIO27 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dio27 (& mut self) -> INT_EVENT0_ICLR_DIO27_W < INT_EVENT0_ICLR_SPEC , 27 > { INT_EVENT0_ICLR_DIO27_W :: new (self) } # [doc = "Bit 28 - DIO28 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dio28 (& mut self) -> INT_EVENT0_ICLR_DIO28_W < INT_EVENT0_ICLR_SPEC , 28 > { INT_EVENT0_ICLR_DIO28_W :: new (self) } # [doc = "Bit 29 - DIO29 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dio29 (& mut self) -> INT_EVENT0_ICLR_DIO29_W < INT_EVENT0_ICLR_SPEC , 29 > { INT_EVENT0_ICLR_DIO29_W :: new (self) } # [doc = "Bit 30 - DIO30 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dio30 (& mut self) -> INT_EVENT0_ICLR_DIO30_W < INT_EVENT0_ICLR_SPEC , 30 > { INT_EVENT0_ICLR_DIO30_W :: new (self) } # [doc = "Bit 31 - DIO31 event"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dio31 (& mut self) -> INT_EVENT0_ICLR_DIO31_W < INT_EVENT0_ICLR_SPEC , 31 > { INT_EVENT0_ICLR_DIO31_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_ICLR_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event0_iclr::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT0_ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT0_ICLR to value 0"]
impl crate :: Resettable for INT_EVENT0_ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_IIDX (r) register accessor: Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_iidx`]
module"]
pub type INT_EVENT1_IIDX = crate :: Reg < int_event1_iidx :: INT_EVENT1_IIDX_SPEC > ; # [doc = "Interrupt index"]
pub mod int_event1_iidx { # [doc = "Register `INT_EVENT1_IIDX` reader"]
pub type R = crate :: R < INT_EVENT1_IIDX_SPEC > ; # [doc = "Field `INT_EVENT1_IIDX_STAT` reader - Interrupt index status"]
pub type INT_EVENT1_IIDX_STAT_R = crate :: FieldReader < INT_EVENT1_IIDX_STAT_A > ; # [doc = "Interrupt index status\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum INT_EVENT1_IIDX_STAT_A { # [doc = "0: NO_INTR"]
INT_EVENT1_IIDX_STAT_NO_INTR = 0 , # [doc = "1: DIO0"]
INT_EVENT1_IIDX_STAT_DIO0 = 1 , # [doc = "2: DIO1"]
INT_EVENT1_IIDX_STAT_DIO1 = 2 , # [doc = "3: DIO2"]
INT_EVENT1_IIDX_STAT_DIO2 = 3 , # [doc = "4: DIO3"]
INT_EVENT1_IIDX_STAT_DIO3 = 4 , # [doc = "5: DIO4"]
INT_EVENT1_IIDX_STAT_DIO4 = 5 , # [doc = "6: DIO5"]
INT_EVENT1_IIDX_STAT_DIO5 = 6 , # [doc = "7: DIO6"]
INT_EVENT1_IIDX_STAT_DIO6 = 7 , # [doc = "8: DIO7"]
INT_EVENT1_IIDX_STAT_DIO7 = 8 , # [doc = "9: DIO8"]
INT_EVENT1_IIDX_STAT_DIO8 = 9 , # [doc = "10: DIO9"]
INT_EVENT1_IIDX_STAT_DIO9 = 10 , # [doc = "11: DIO10"]
INT_EVENT1_IIDX_STAT_DIO10 = 11 , # [doc = "12: DIO11"]
INT_EVENT1_IIDX_STAT_DIO11 = 12 , # [doc = "13: DIO12"]
INT_EVENT1_IIDX_STAT_DIO12 = 13 , # [doc = "14: DIO13"]
INT_EVENT1_IIDX_STAT_DIO13 = 14 , # [doc = "15: DIO14"]
INT_EVENT1_IIDX_STAT_DIO14 = 15 , # [doc = "16: DIO15"]
INT_EVENT1_IIDX_STAT_DIO15 = 16 , } impl From < INT_EVENT1_IIDX_STAT_A > for u8 { # [inline (always)]
fn from (variant : INT_EVENT1_IIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for INT_EVENT1_IIDX_STAT_A { type Ux = u8 ; } impl INT_EVENT1_IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < INT_EVENT1_IIDX_STAT_A > { match self . bits { 0 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_NO_INTR) , 1 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_DIO0) , 2 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_DIO1) , 3 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_DIO2) , 4 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_DIO3) , 5 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_DIO4) , 6 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_DIO5) , 7 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_DIO6) , 8 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_DIO7) , 9 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_DIO8) , 10 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_DIO9) , 11 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_DIO10) , 12 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_DIO11) , 13 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_DIO12) , 14 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_DIO13) , 15 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_DIO14) , 16 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_DIO15) , _ => None , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_no_intr (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_NO_INTR } # [doc = "DIO0"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_dio0 (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_DIO0 } # [doc = "DIO1"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_dio1 (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_DIO1 } # [doc = "DIO2"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_dio2 (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_DIO2 } # [doc = "DIO3"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_dio3 (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_DIO3 } # [doc = "DIO4"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_dio4 (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_DIO4 } # [doc = "DIO5"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_dio5 (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_DIO5 } # [doc = "DIO6"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_dio6 (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_DIO6 } # [doc = "DIO7"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_dio7 (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_DIO7 } # [doc = "DIO8"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_dio8 (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_DIO8 } # [doc = "DIO9"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_dio9 (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_DIO9 } # [doc = "DIO10"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_dio10 (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_DIO10 } # [doc = "DIO11"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_dio11 (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_DIO11 } # [doc = "DIO12"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_dio12 (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_DIO12 } # [doc = "DIO13"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_dio13 (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_DIO13 } # [doc = "DIO14"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_dio14 (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_DIO14 } # [doc = "DIO15"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_dio15 (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_DIO15 } } impl R { # [doc = "Bits 0:7 - Interrupt index status"]
# [inline (always)]
pub fn int_event1_iidx_stat (& self) -> INT_EVENT1_IIDX_STAT_R { INT_EVENT1_IIDX_STAT_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_IIDX_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event1_iidx::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT1_IIDX_SPEC { } # [doc = "`reset()` method sets INT_EVENT1_IIDX to value 0"]
impl crate :: Resettable for INT_EVENT1_IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_IMASK (rw) register accessor: Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_imask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_imask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_imask`]
module"]
pub type INT_EVENT1_IMASK = crate :: Reg < int_event1_imask :: INT_EVENT1_IMASK_SPEC > ; # [doc = "Interrupt mask"]
pub mod int_event1_imask { # [doc = "Register `INT_EVENT1_IMASK` reader"]
pub type R = crate :: R < INT_EVENT1_IMASK_SPEC > ; # [doc = "Register `INT_EVENT1_IMASK` writer"]
pub type W = crate :: W < INT_EVENT1_IMASK_SPEC > ; # [doc = "Field `INT_EVENT1_IMASK_DIO0` reader - DIO0 event mask"]
pub type INT_EVENT1_IMASK_DIO0_R = crate :: BitReader < INT_EVENT1_IMASK_DIO0_A > ; # [doc = "DIO0 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_DIO0_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_DIO0_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_DIO0_SET = 1 , } impl From < INT_EVENT1_IMASK_DIO0_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_DIO0_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_DIO0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_DIO0_A { match self . bits { false => INT_EVENT1_IMASK_DIO0_A :: INT_EVENT1_IMASK_DIO0_CLR , true => INT_EVENT1_IMASK_DIO0_A :: INT_EVENT1_IMASK_DIO0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_dio0_clr (& self) -> bool { * self == INT_EVENT1_IMASK_DIO0_A :: INT_EVENT1_IMASK_DIO0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_dio0_set (& self) -> bool { * self == INT_EVENT1_IMASK_DIO0_A :: INT_EVENT1_IMASK_DIO0_SET } } # [doc = "Field `INT_EVENT1_IMASK_DIO0` writer - DIO0 event mask"]
pub type INT_EVENT1_IMASK_DIO0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_DIO0_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_DIO0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_dio0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_DIO0_A :: INT_EVENT1_IMASK_DIO0_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_dio0_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_DIO0_A :: INT_EVENT1_IMASK_DIO0_SET) } } # [doc = "Field `INT_EVENT1_IMASK_DIO1` reader - DIO1 event mask"]
pub type INT_EVENT1_IMASK_DIO1_R = crate :: BitReader < INT_EVENT1_IMASK_DIO1_A > ; # [doc = "DIO1 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_DIO1_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_DIO1_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_DIO1_SET = 1 , } impl From < INT_EVENT1_IMASK_DIO1_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_DIO1_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_DIO1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_DIO1_A { match self . bits { false => INT_EVENT1_IMASK_DIO1_A :: INT_EVENT1_IMASK_DIO1_CLR , true => INT_EVENT1_IMASK_DIO1_A :: INT_EVENT1_IMASK_DIO1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_dio1_clr (& self) -> bool { * self == INT_EVENT1_IMASK_DIO1_A :: INT_EVENT1_IMASK_DIO1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_dio1_set (& self) -> bool { * self == INT_EVENT1_IMASK_DIO1_A :: INT_EVENT1_IMASK_DIO1_SET } } # [doc = "Field `INT_EVENT1_IMASK_DIO1` writer - DIO1 event mask"]
pub type INT_EVENT1_IMASK_DIO1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_DIO1_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_DIO1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_dio1_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_DIO1_A :: INT_EVENT1_IMASK_DIO1_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_dio1_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_DIO1_A :: INT_EVENT1_IMASK_DIO1_SET) } } # [doc = "Field `INT_EVENT1_IMASK_DIO2` reader - DIO2 event mask"]
pub type INT_EVENT1_IMASK_DIO2_R = crate :: BitReader < INT_EVENT1_IMASK_DIO2_A > ; # [doc = "DIO2 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_DIO2_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_DIO2_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_DIO2_SET = 1 , } impl From < INT_EVENT1_IMASK_DIO2_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_DIO2_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_DIO2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_DIO2_A { match self . bits { false => INT_EVENT1_IMASK_DIO2_A :: INT_EVENT1_IMASK_DIO2_CLR , true => INT_EVENT1_IMASK_DIO2_A :: INT_EVENT1_IMASK_DIO2_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_dio2_clr (& self) -> bool { * self == INT_EVENT1_IMASK_DIO2_A :: INT_EVENT1_IMASK_DIO2_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_dio2_set (& self) -> bool { * self == INT_EVENT1_IMASK_DIO2_A :: INT_EVENT1_IMASK_DIO2_SET } } # [doc = "Field `INT_EVENT1_IMASK_DIO2` writer - DIO2 event mask"]
pub type INT_EVENT1_IMASK_DIO2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_DIO2_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_DIO2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_dio2_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_DIO2_A :: INT_EVENT1_IMASK_DIO2_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_dio2_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_DIO2_A :: INT_EVENT1_IMASK_DIO2_SET) } } # [doc = "Field `INT_EVENT1_IMASK_DIO3` reader - DIO3 event mask"]
pub type INT_EVENT1_IMASK_DIO3_R = crate :: BitReader < INT_EVENT1_IMASK_DIO3_A > ; # [doc = "DIO3 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_DIO3_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_DIO3_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_DIO3_SET = 1 , } impl From < INT_EVENT1_IMASK_DIO3_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_DIO3_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_DIO3_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_DIO3_A { match self . bits { false => INT_EVENT1_IMASK_DIO3_A :: INT_EVENT1_IMASK_DIO3_CLR , true => INT_EVENT1_IMASK_DIO3_A :: INT_EVENT1_IMASK_DIO3_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_dio3_clr (& self) -> bool { * self == INT_EVENT1_IMASK_DIO3_A :: INT_EVENT1_IMASK_DIO3_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_dio3_set (& self) -> bool { * self == INT_EVENT1_IMASK_DIO3_A :: INT_EVENT1_IMASK_DIO3_SET } } # [doc = "Field `INT_EVENT1_IMASK_DIO3` writer - DIO3 event mask"]
pub type INT_EVENT1_IMASK_DIO3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_DIO3_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_DIO3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_dio3_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_DIO3_A :: INT_EVENT1_IMASK_DIO3_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_dio3_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_DIO3_A :: INT_EVENT1_IMASK_DIO3_SET) } } # [doc = "Field `INT_EVENT1_IMASK_DIO4` reader - DIO4 event mask"]
pub type INT_EVENT1_IMASK_DIO4_R = crate :: BitReader < INT_EVENT1_IMASK_DIO4_A > ; # [doc = "DIO4 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_DIO4_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_DIO4_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_DIO4_SET = 1 , } impl From < INT_EVENT1_IMASK_DIO4_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_DIO4_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_DIO4_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_DIO4_A { match self . bits { false => INT_EVENT1_IMASK_DIO4_A :: INT_EVENT1_IMASK_DIO4_CLR , true => INT_EVENT1_IMASK_DIO4_A :: INT_EVENT1_IMASK_DIO4_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_dio4_clr (& self) -> bool { * self == INT_EVENT1_IMASK_DIO4_A :: INT_EVENT1_IMASK_DIO4_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_dio4_set (& self) -> bool { * self == INT_EVENT1_IMASK_DIO4_A :: INT_EVENT1_IMASK_DIO4_SET } } # [doc = "Field `INT_EVENT1_IMASK_DIO4` writer - DIO4 event mask"]
pub type INT_EVENT1_IMASK_DIO4_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_DIO4_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_DIO4_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_dio4_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_DIO4_A :: INT_EVENT1_IMASK_DIO4_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_dio4_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_DIO4_A :: INT_EVENT1_IMASK_DIO4_SET) } } # [doc = "Field `INT_EVENT1_IMASK_DIO5` reader - DIO5 event mask"]
pub type INT_EVENT1_IMASK_DIO5_R = crate :: BitReader < INT_EVENT1_IMASK_DIO5_A > ; # [doc = "DIO5 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_DIO5_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_DIO5_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_DIO5_SET = 1 , } impl From < INT_EVENT1_IMASK_DIO5_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_DIO5_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_DIO5_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_DIO5_A { match self . bits { false => INT_EVENT1_IMASK_DIO5_A :: INT_EVENT1_IMASK_DIO5_CLR , true => INT_EVENT1_IMASK_DIO5_A :: INT_EVENT1_IMASK_DIO5_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_dio5_clr (& self) -> bool { * self == INT_EVENT1_IMASK_DIO5_A :: INT_EVENT1_IMASK_DIO5_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_dio5_set (& self) -> bool { * self == INT_EVENT1_IMASK_DIO5_A :: INT_EVENT1_IMASK_DIO5_SET } } # [doc = "Field `INT_EVENT1_IMASK_DIO5` writer - DIO5 event mask"]
pub type INT_EVENT1_IMASK_DIO5_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_DIO5_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_DIO5_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_dio5_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_DIO5_A :: INT_EVENT1_IMASK_DIO5_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_dio5_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_DIO5_A :: INT_EVENT1_IMASK_DIO5_SET) } } # [doc = "Field `INT_EVENT1_IMASK_DIO6` reader - DIO6 event mask"]
pub type INT_EVENT1_IMASK_DIO6_R = crate :: BitReader < INT_EVENT1_IMASK_DIO6_A > ; # [doc = "DIO6 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_DIO6_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_DIO6_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_DIO6_SET = 1 , } impl From < INT_EVENT1_IMASK_DIO6_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_DIO6_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_DIO6_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_DIO6_A { match self . bits { false => INT_EVENT1_IMASK_DIO6_A :: INT_EVENT1_IMASK_DIO6_CLR , true => INT_EVENT1_IMASK_DIO6_A :: INT_EVENT1_IMASK_DIO6_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_dio6_clr (& self) -> bool { * self == INT_EVENT1_IMASK_DIO6_A :: INT_EVENT1_IMASK_DIO6_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_dio6_set (& self) -> bool { * self == INT_EVENT1_IMASK_DIO6_A :: INT_EVENT1_IMASK_DIO6_SET } } # [doc = "Field `INT_EVENT1_IMASK_DIO6` writer - DIO6 event mask"]
pub type INT_EVENT1_IMASK_DIO6_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_DIO6_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_DIO6_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_dio6_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_DIO6_A :: INT_EVENT1_IMASK_DIO6_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_dio6_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_DIO6_A :: INT_EVENT1_IMASK_DIO6_SET) } } # [doc = "Field `INT_EVENT1_IMASK_DIO7` reader - DIO7 event mask"]
pub type INT_EVENT1_IMASK_DIO7_R = crate :: BitReader < INT_EVENT1_IMASK_DIO7_A > ; # [doc = "DIO7 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_DIO7_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_DIO7_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_DIO7_SET = 1 , } impl From < INT_EVENT1_IMASK_DIO7_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_DIO7_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_DIO7_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_DIO7_A { match self . bits { false => INT_EVENT1_IMASK_DIO7_A :: INT_EVENT1_IMASK_DIO7_CLR , true => INT_EVENT1_IMASK_DIO7_A :: INT_EVENT1_IMASK_DIO7_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_dio7_clr (& self) -> bool { * self == INT_EVENT1_IMASK_DIO7_A :: INT_EVENT1_IMASK_DIO7_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_dio7_set (& self) -> bool { * self == INT_EVENT1_IMASK_DIO7_A :: INT_EVENT1_IMASK_DIO7_SET } } # [doc = "Field `INT_EVENT1_IMASK_DIO7` writer - DIO7 event mask"]
pub type INT_EVENT1_IMASK_DIO7_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_DIO7_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_DIO7_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_dio7_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_DIO7_A :: INT_EVENT1_IMASK_DIO7_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_dio7_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_DIO7_A :: INT_EVENT1_IMASK_DIO7_SET) } } # [doc = "Field `INT_EVENT1_IMASK_DIO8` reader - DIO8 event mask"]
pub type INT_EVENT1_IMASK_DIO8_R = crate :: BitReader < INT_EVENT1_IMASK_DIO8_A > ; # [doc = "DIO8 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_DIO8_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_DIO8_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_DIO8_SET = 1 , } impl From < INT_EVENT1_IMASK_DIO8_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_DIO8_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_DIO8_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_DIO8_A { match self . bits { false => INT_EVENT1_IMASK_DIO8_A :: INT_EVENT1_IMASK_DIO8_CLR , true => INT_EVENT1_IMASK_DIO8_A :: INT_EVENT1_IMASK_DIO8_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_dio8_clr (& self) -> bool { * self == INT_EVENT1_IMASK_DIO8_A :: INT_EVENT1_IMASK_DIO8_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_dio8_set (& self) -> bool { * self == INT_EVENT1_IMASK_DIO8_A :: INT_EVENT1_IMASK_DIO8_SET } } # [doc = "Field `INT_EVENT1_IMASK_DIO8` writer - DIO8 event mask"]
pub type INT_EVENT1_IMASK_DIO8_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_DIO8_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_DIO8_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_dio8_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_DIO8_A :: INT_EVENT1_IMASK_DIO8_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_dio8_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_DIO8_A :: INT_EVENT1_IMASK_DIO8_SET) } } # [doc = "Field `INT_EVENT1_IMASK_DIO9` reader - DIO9 event mask"]
pub type INT_EVENT1_IMASK_DIO9_R = crate :: BitReader < INT_EVENT1_IMASK_DIO9_A > ; # [doc = "DIO9 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_DIO9_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_DIO9_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_DIO9_SET = 1 , } impl From < INT_EVENT1_IMASK_DIO9_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_DIO9_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_DIO9_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_DIO9_A { match self . bits { false => INT_EVENT1_IMASK_DIO9_A :: INT_EVENT1_IMASK_DIO9_CLR , true => INT_EVENT1_IMASK_DIO9_A :: INT_EVENT1_IMASK_DIO9_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_dio9_clr (& self) -> bool { * self == INT_EVENT1_IMASK_DIO9_A :: INT_EVENT1_IMASK_DIO9_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_dio9_set (& self) -> bool { * self == INT_EVENT1_IMASK_DIO9_A :: INT_EVENT1_IMASK_DIO9_SET } } # [doc = "Field `INT_EVENT1_IMASK_DIO9` writer - DIO9 event mask"]
pub type INT_EVENT1_IMASK_DIO9_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_DIO9_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_DIO9_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_dio9_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_DIO9_A :: INT_EVENT1_IMASK_DIO9_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_dio9_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_DIO9_A :: INT_EVENT1_IMASK_DIO9_SET) } } # [doc = "Field `INT_EVENT1_IMASK_DIO10` reader - DIO10 event mask"]
pub type INT_EVENT1_IMASK_DIO10_R = crate :: BitReader < INT_EVENT1_IMASK_DIO10_A > ; # [doc = "DIO10 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_DIO10_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_DIO10_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_DIO10_SET = 1 , } impl From < INT_EVENT1_IMASK_DIO10_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_DIO10_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_DIO10_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_DIO10_A { match self . bits { false => INT_EVENT1_IMASK_DIO10_A :: INT_EVENT1_IMASK_DIO10_CLR , true => INT_EVENT1_IMASK_DIO10_A :: INT_EVENT1_IMASK_DIO10_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_dio10_clr (& self) -> bool { * self == INT_EVENT1_IMASK_DIO10_A :: INT_EVENT1_IMASK_DIO10_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_dio10_set (& self) -> bool { * self == INT_EVENT1_IMASK_DIO10_A :: INT_EVENT1_IMASK_DIO10_SET } } # [doc = "Field `INT_EVENT1_IMASK_DIO10` writer - DIO10 event mask"]
pub type INT_EVENT1_IMASK_DIO10_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_DIO10_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_DIO10_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_dio10_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_DIO10_A :: INT_EVENT1_IMASK_DIO10_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_dio10_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_DIO10_A :: INT_EVENT1_IMASK_DIO10_SET) } } # [doc = "Field `INT_EVENT1_IMASK_DIO11` reader - DIO11 event mask"]
pub type INT_EVENT1_IMASK_DIO11_R = crate :: BitReader < INT_EVENT1_IMASK_DIO11_A > ; # [doc = "DIO11 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_DIO11_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_DIO11_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_DIO11_SET = 1 , } impl From < INT_EVENT1_IMASK_DIO11_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_DIO11_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_DIO11_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_DIO11_A { match self . bits { false => INT_EVENT1_IMASK_DIO11_A :: INT_EVENT1_IMASK_DIO11_CLR , true => INT_EVENT1_IMASK_DIO11_A :: INT_EVENT1_IMASK_DIO11_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_dio11_clr (& self) -> bool { * self == INT_EVENT1_IMASK_DIO11_A :: INT_EVENT1_IMASK_DIO11_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_dio11_set (& self) -> bool { * self == INT_EVENT1_IMASK_DIO11_A :: INT_EVENT1_IMASK_DIO11_SET } } # [doc = "Field `INT_EVENT1_IMASK_DIO11` writer - DIO11 event mask"]
pub type INT_EVENT1_IMASK_DIO11_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_DIO11_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_DIO11_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_dio11_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_DIO11_A :: INT_EVENT1_IMASK_DIO11_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_dio11_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_DIO11_A :: INT_EVENT1_IMASK_DIO11_SET) } } # [doc = "Field `INT_EVENT1_IMASK_DIO12` reader - DIO12 event mask"]
pub type INT_EVENT1_IMASK_DIO12_R = crate :: BitReader < INT_EVENT1_IMASK_DIO12_A > ; # [doc = "DIO12 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_DIO12_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_DIO12_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_DIO12_SET = 1 , } impl From < INT_EVENT1_IMASK_DIO12_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_DIO12_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_DIO12_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_DIO12_A { match self . bits { false => INT_EVENT1_IMASK_DIO12_A :: INT_EVENT1_IMASK_DIO12_CLR , true => INT_EVENT1_IMASK_DIO12_A :: INT_EVENT1_IMASK_DIO12_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_dio12_clr (& self) -> bool { * self == INT_EVENT1_IMASK_DIO12_A :: INT_EVENT1_IMASK_DIO12_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_dio12_set (& self) -> bool { * self == INT_EVENT1_IMASK_DIO12_A :: INT_EVENT1_IMASK_DIO12_SET } } # [doc = "Field `INT_EVENT1_IMASK_DIO12` writer - DIO12 event mask"]
pub type INT_EVENT1_IMASK_DIO12_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_DIO12_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_DIO12_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_dio12_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_DIO12_A :: INT_EVENT1_IMASK_DIO12_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_dio12_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_DIO12_A :: INT_EVENT1_IMASK_DIO12_SET) } } # [doc = "Field `INT_EVENT1_IMASK_DIO13` reader - DIO13 event mask"]
pub type INT_EVENT1_IMASK_DIO13_R = crate :: BitReader < INT_EVENT1_IMASK_DIO13_A > ; # [doc = "DIO13 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_DIO13_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_DIO13_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_DIO13_SET = 1 , } impl From < INT_EVENT1_IMASK_DIO13_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_DIO13_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_DIO13_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_DIO13_A { match self . bits { false => INT_EVENT1_IMASK_DIO13_A :: INT_EVENT1_IMASK_DIO13_CLR , true => INT_EVENT1_IMASK_DIO13_A :: INT_EVENT1_IMASK_DIO13_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_dio13_clr (& self) -> bool { * self == INT_EVENT1_IMASK_DIO13_A :: INT_EVENT1_IMASK_DIO13_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_dio13_set (& self) -> bool { * self == INT_EVENT1_IMASK_DIO13_A :: INT_EVENT1_IMASK_DIO13_SET } } # [doc = "Field `INT_EVENT1_IMASK_DIO13` writer - DIO13 event mask"]
pub type INT_EVENT1_IMASK_DIO13_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_DIO13_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_DIO13_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_dio13_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_DIO13_A :: INT_EVENT1_IMASK_DIO13_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_dio13_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_DIO13_A :: INT_EVENT1_IMASK_DIO13_SET) } } # [doc = "Field `INT_EVENT1_IMASK_DIO14` reader - DIO14 event mask"]
pub type INT_EVENT1_IMASK_DIO14_R = crate :: BitReader < INT_EVENT1_IMASK_DIO14_A > ; # [doc = "DIO14 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_DIO14_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_DIO14_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_DIO14_SET = 1 , } impl From < INT_EVENT1_IMASK_DIO14_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_DIO14_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_DIO14_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_DIO14_A { match self . bits { false => INT_EVENT1_IMASK_DIO14_A :: INT_EVENT1_IMASK_DIO14_CLR , true => INT_EVENT1_IMASK_DIO14_A :: INT_EVENT1_IMASK_DIO14_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_dio14_clr (& self) -> bool { * self == INT_EVENT1_IMASK_DIO14_A :: INT_EVENT1_IMASK_DIO14_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_dio14_set (& self) -> bool { * self == INT_EVENT1_IMASK_DIO14_A :: INT_EVENT1_IMASK_DIO14_SET } } # [doc = "Field `INT_EVENT1_IMASK_DIO14` writer - DIO14 event mask"]
pub type INT_EVENT1_IMASK_DIO14_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_DIO14_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_DIO14_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_dio14_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_DIO14_A :: INT_EVENT1_IMASK_DIO14_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_dio14_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_DIO14_A :: INT_EVENT1_IMASK_DIO14_SET) } } # [doc = "Field `INT_EVENT1_IMASK_DIO15` reader - DIO15 event mask"]
pub type INT_EVENT1_IMASK_DIO15_R = crate :: BitReader < INT_EVENT1_IMASK_DIO15_A > ; # [doc = "DIO15 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_DIO15_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_DIO15_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_DIO15_SET = 1 , } impl From < INT_EVENT1_IMASK_DIO15_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_DIO15_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_DIO15_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_DIO15_A { match self . bits { false => INT_EVENT1_IMASK_DIO15_A :: INT_EVENT1_IMASK_DIO15_CLR , true => INT_EVENT1_IMASK_DIO15_A :: INT_EVENT1_IMASK_DIO15_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_dio15_clr (& self) -> bool { * self == INT_EVENT1_IMASK_DIO15_A :: INT_EVENT1_IMASK_DIO15_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_dio15_set (& self) -> bool { * self == INT_EVENT1_IMASK_DIO15_A :: INT_EVENT1_IMASK_DIO15_SET } } # [doc = "Field `INT_EVENT1_IMASK_DIO15` writer - DIO15 event mask"]
pub type INT_EVENT1_IMASK_DIO15_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_DIO15_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_DIO15_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_dio15_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_DIO15_A :: INT_EVENT1_IMASK_DIO15_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_dio15_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_DIO15_A :: INT_EVENT1_IMASK_DIO15_SET) } } impl R { # [doc = "Bit 0 - DIO0 event mask"]
# [inline (always)]
pub fn int_event1_imask_dio0 (& self) -> INT_EVENT1_IMASK_DIO0_R { INT_EVENT1_IMASK_DIO0_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - DIO1 event mask"]
# [inline (always)]
pub fn int_event1_imask_dio1 (& self) -> INT_EVENT1_IMASK_DIO1_R { INT_EVENT1_IMASK_DIO1_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - DIO2 event mask"]
# [inline (always)]
pub fn int_event1_imask_dio2 (& self) -> INT_EVENT1_IMASK_DIO2_R { INT_EVENT1_IMASK_DIO2_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - DIO3 event mask"]
# [inline (always)]
pub fn int_event1_imask_dio3 (& self) -> INT_EVENT1_IMASK_DIO3_R { INT_EVENT1_IMASK_DIO3_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - DIO4 event mask"]
# [inline (always)]
pub fn int_event1_imask_dio4 (& self) -> INT_EVENT1_IMASK_DIO4_R { INT_EVENT1_IMASK_DIO4_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - DIO5 event mask"]
# [inline (always)]
pub fn int_event1_imask_dio5 (& self) -> INT_EVENT1_IMASK_DIO5_R { INT_EVENT1_IMASK_DIO5_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - DIO6 event mask"]
# [inline (always)]
pub fn int_event1_imask_dio6 (& self) -> INT_EVENT1_IMASK_DIO6_R { INT_EVENT1_IMASK_DIO6_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 7 - DIO7 event mask"]
# [inline (always)]
pub fn int_event1_imask_dio7 (& self) -> INT_EVENT1_IMASK_DIO7_R { INT_EVENT1_IMASK_DIO7_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - DIO8 event mask"]
# [inline (always)]
pub fn int_event1_imask_dio8 (& self) -> INT_EVENT1_IMASK_DIO8_R { INT_EVENT1_IMASK_DIO8_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - DIO9 event mask"]
# [inline (always)]
pub fn int_event1_imask_dio9 (& self) -> INT_EVENT1_IMASK_DIO9_R { INT_EVENT1_IMASK_DIO9_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - DIO10 event mask"]
# [inline (always)]
pub fn int_event1_imask_dio10 (& self) -> INT_EVENT1_IMASK_DIO10_R { INT_EVENT1_IMASK_DIO10_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bit 11 - DIO11 event mask"]
# [inline (always)]
pub fn int_event1_imask_dio11 (& self) -> INT_EVENT1_IMASK_DIO11_R { INT_EVENT1_IMASK_DIO11_R :: new (((self . bits >> 11) & 1) != 0) } # [doc = "Bit 12 - DIO12 event mask"]
# [inline (always)]
pub fn int_event1_imask_dio12 (& self) -> INT_EVENT1_IMASK_DIO12_R { INT_EVENT1_IMASK_DIO12_R :: new (((self . bits >> 12) & 1) != 0) } # [doc = "Bit 13 - DIO13 event mask"]
# [inline (always)]
pub fn int_event1_imask_dio13 (& self) -> INT_EVENT1_IMASK_DIO13_R { INT_EVENT1_IMASK_DIO13_R :: new (((self . bits >> 13) & 1) != 0) } # [doc = "Bit 14 - DIO14 event mask"]
# [inline (always)]
pub fn int_event1_imask_dio14 (& self) -> INT_EVENT1_IMASK_DIO14_R { INT_EVENT1_IMASK_DIO14_R :: new (((self . bits >> 14) & 1) != 0) } # [doc = "Bit 15 - DIO15 event mask"]
# [inline (always)]
pub fn int_event1_imask_dio15 (& self) -> INT_EVENT1_IMASK_DIO15_R { INT_EVENT1_IMASK_DIO15_R :: new (((self . bits >> 15) & 1) != 0) } } impl W { # [doc = "Bit 0 - DIO0 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_dio0 (& mut self) -> INT_EVENT1_IMASK_DIO0_W < INT_EVENT1_IMASK_SPEC , 0 > { INT_EVENT1_IMASK_DIO0_W :: new (self) } # [doc = "Bit 1 - DIO1 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_dio1 (& mut self) -> INT_EVENT1_IMASK_DIO1_W < INT_EVENT1_IMASK_SPEC , 1 > { INT_EVENT1_IMASK_DIO1_W :: new (self) } # [doc = "Bit 2 - DIO2 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_dio2 (& mut self) -> INT_EVENT1_IMASK_DIO2_W < INT_EVENT1_IMASK_SPEC , 2 > { INT_EVENT1_IMASK_DIO2_W :: new (self) } # [doc = "Bit 3 - DIO3 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_dio3 (& mut self) -> INT_EVENT1_IMASK_DIO3_W < INT_EVENT1_IMASK_SPEC , 3 > { INT_EVENT1_IMASK_DIO3_W :: new (self) } # [doc = "Bit 4 - DIO4 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_dio4 (& mut self) -> INT_EVENT1_IMASK_DIO4_W < INT_EVENT1_IMASK_SPEC , 4 > { INT_EVENT1_IMASK_DIO4_W :: new (self) } # [doc = "Bit 5 - DIO5 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_dio5 (& mut self) -> INT_EVENT1_IMASK_DIO5_W < INT_EVENT1_IMASK_SPEC , 5 > { INT_EVENT1_IMASK_DIO5_W :: new (self) } # [doc = "Bit 6 - DIO6 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_dio6 (& mut self) -> INT_EVENT1_IMASK_DIO6_W < INT_EVENT1_IMASK_SPEC , 6 > { INT_EVENT1_IMASK_DIO6_W :: new (self) } # [doc = "Bit 7 - DIO7 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_dio7 (& mut self) -> INT_EVENT1_IMASK_DIO7_W < INT_EVENT1_IMASK_SPEC , 7 > { INT_EVENT1_IMASK_DIO7_W :: new (self) } # [doc = "Bit 8 - DIO8 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_dio8 (& mut self) -> INT_EVENT1_IMASK_DIO8_W < INT_EVENT1_IMASK_SPEC , 8 > { INT_EVENT1_IMASK_DIO8_W :: new (self) } # [doc = "Bit 9 - DIO9 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_dio9 (& mut self) -> INT_EVENT1_IMASK_DIO9_W < INT_EVENT1_IMASK_SPEC , 9 > { INT_EVENT1_IMASK_DIO9_W :: new (self) } # [doc = "Bit 10 - DIO10 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_dio10 (& mut self) -> INT_EVENT1_IMASK_DIO10_W < INT_EVENT1_IMASK_SPEC , 10 > { INT_EVENT1_IMASK_DIO10_W :: new (self) } # [doc = "Bit 11 - DIO11 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_dio11 (& mut self) -> INT_EVENT1_IMASK_DIO11_W < INT_EVENT1_IMASK_SPEC , 11 > { INT_EVENT1_IMASK_DIO11_W :: new (self) } # [doc = "Bit 12 - DIO12 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_dio12 (& mut self) -> INT_EVENT1_IMASK_DIO12_W < INT_EVENT1_IMASK_SPEC , 12 > { INT_EVENT1_IMASK_DIO12_W :: new (self) } # [doc = "Bit 13 - DIO13 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_dio13 (& mut self) -> INT_EVENT1_IMASK_DIO13_W < INT_EVENT1_IMASK_SPEC , 13 > { INT_EVENT1_IMASK_DIO13_W :: new (self) } # [doc = "Bit 14 - DIO14 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_dio14 (& mut self) -> INT_EVENT1_IMASK_DIO14_W < INT_EVENT1_IMASK_SPEC , 14 > { INT_EVENT1_IMASK_DIO14_W :: new (self) } # [doc = "Bit 15 - DIO15 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_dio15 (& mut self) -> INT_EVENT1_IMASK_DIO15_W < INT_EVENT1_IMASK_SPEC , 15 > { INT_EVENT1_IMASK_DIO15_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_imask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_imask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_IMASK_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event1_imask::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT1_IMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`int_event1_imask::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT1_IMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT1_IMASK to value 0"]
impl crate :: Resettable for INT_EVENT1_IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_RIS (r) register accessor: Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_ris`]
module"]
pub type INT_EVENT1_RIS = crate :: Reg < int_event1_ris :: INT_EVENT1_RIS_SPEC > ; # [doc = "Raw interrupt status"]
pub mod int_event1_ris { # [doc = "Register `INT_EVENT1_RIS` reader"]
pub type R = crate :: R < INT_EVENT1_RIS_SPEC > ; # [doc = "Field `INT_EVENT1_RIS_DIO0` reader - DIO0 event"]
pub type INT_EVENT1_RIS_DIO0_R = crate :: BitReader < INT_EVENT1_RIS_DIO0_A > ; # [doc = "DIO0 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_DIO0_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_DIO0_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_DIO0_SET = 1 , } impl From < INT_EVENT1_RIS_DIO0_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_DIO0_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_DIO0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_DIO0_A { match self . bits { false => INT_EVENT1_RIS_DIO0_A :: INT_EVENT1_RIS_DIO0_CLR , true => INT_EVENT1_RIS_DIO0_A :: INT_EVENT1_RIS_DIO0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_dio0_clr (& self) -> bool { * self == INT_EVENT1_RIS_DIO0_A :: INT_EVENT1_RIS_DIO0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_dio0_set (& self) -> bool { * self == INT_EVENT1_RIS_DIO0_A :: INT_EVENT1_RIS_DIO0_SET } } # [doc = "Field `INT_EVENT1_RIS_DIO1` reader - DIO1 event"]
pub type INT_EVENT1_RIS_DIO1_R = crate :: BitReader < INT_EVENT1_RIS_DIO1_A > ; # [doc = "DIO1 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_DIO1_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_DIO1_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_DIO1_SET = 1 , } impl From < INT_EVENT1_RIS_DIO1_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_DIO1_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_DIO1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_DIO1_A { match self . bits { false => INT_EVENT1_RIS_DIO1_A :: INT_EVENT1_RIS_DIO1_CLR , true => INT_EVENT1_RIS_DIO1_A :: INT_EVENT1_RIS_DIO1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_dio1_clr (& self) -> bool { * self == INT_EVENT1_RIS_DIO1_A :: INT_EVENT1_RIS_DIO1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_dio1_set (& self) -> bool { * self == INT_EVENT1_RIS_DIO1_A :: INT_EVENT1_RIS_DIO1_SET } } # [doc = "Field `INT_EVENT1_RIS_DIO2` reader - DIO2 event"]
pub type INT_EVENT1_RIS_DIO2_R = crate :: BitReader < INT_EVENT1_RIS_DIO2_A > ; # [doc = "DIO2 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_DIO2_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_DIO2_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_DIO2_SET = 1 , } impl From < INT_EVENT1_RIS_DIO2_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_DIO2_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_DIO2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_DIO2_A { match self . bits { false => INT_EVENT1_RIS_DIO2_A :: INT_EVENT1_RIS_DIO2_CLR , true => INT_EVENT1_RIS_DIO2_A :: INT_EVENT1_RIS_DIO2_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_dio2_clr (& self) -> bool { * self == INT_EVENT1_RIS_DIO2_A :: INT_EVENT1_RIS_DIO2_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_dio2_set (& self) -> bool { * self == INT_EVENT1_RIS_DIO2_A :: INT_EVENT1_RIS_DIO2_SET } } # [doc = "Field `INT_EVENT1_RIS_DIO3` reader - DIO3 event"]
pub type INT_EVENT1_RIS_DIO3_R = crate :: BitReader < INT_EVENT1_RIS_DIO3_A > ; # [doc = "DIO3 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_DIO3_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_DIO3_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_DIO3_SET = 1 , } impl From < INT_EVENT1_RIS_DIO3_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_DIO3_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_DIO3_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_DIO3_A { match self . bits { false => INT_EVENT1_RIS_DIO3_A :: INT_EVENT1_RIS_DIO3_CLR , true => INT_EVENT1_RIS_DIO3_A :: INT_EVENT1_RIS_DIO3_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_dio3_clr (& self) -> bool { * self == INT_EVENT1_RIS_DIO3_A :: INT_EVENT1_RIS_DIO3_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_dio3_set (& self) -> bool { * self == INT_EVENT1_RIS_DIO3_A :: INT_EVENT1_RIS_DIO3_SET } } # [doc = "Field `INT_EVENT1_RIS_DIO4` reader - DIO4 event"]
pub type INT_EVENT1_RIS_DIO4_R = crate :: BitReader < INT_EVENT1_RIS_DIO4_A > ; # [doc = "DIO4 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_DIO4_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_DIO4_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_DIO4_SET = 1 , } impl From < INT_EVENT1_RIS_DIO4_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_DIO4_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_DIO4_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_DIO4_A { match self . bits { false => INT_EVENT1_RIS_DIO4_A :: INT_EVENT1_RIS_DIO4_CLR , true => INT_EVENT1_RIS_DIO4_A :: INT_EVENT1_RIS_DIO4_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_dio4_clr (& self) -> bool { * self == INT_EVENT1_RIS_DIO4_A :: INT_EVENT1_RIS_DIO4_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_dio4_set (& self) -> bool { * self == INT_EVENT1_RIS_DIO4_A :: INT_EVENT1_RIS_DIO4_SET } } # [doc = "Field `INT_EVENT1_RIS_DIO5` reader - DIO5 event"]
pub type INT_EVENT1_RIS_DIO5_R = crate :: BitReader < INT_EVENT1_RIS_DIO5_A > ; # [doc = "DIO5 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_DIO5_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_DIO5_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_DIO5_SET = 1 , } impl From < INT_EVENT1_RIS_DIO5_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_DIO5_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_DIO5_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_DIO5_A { match self . bits { false => INT_EVENT1_RIS_DIO5_A :: INT_EVENT1_RIS_DIO5_CLR , true => INT_EVENT1_RIS_DIO5_A :: INT_EVENT1_RIS_DIO5_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_dio5_clr (& self) -> bool { * self == INT_EVENT1_RIS_DIO5_A :: INT_EVENT1_RIS_DIO5_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_dio5_set (& self) -> bool { * self == INT_EVENT1_RIS_DIO5_A :: INT_EVENT1_RIS_DIO5_SET } } # [doc = "Field `INT_EVENT1_RIS_DIO6` reader - DIO6 event"]
pub type INT_EVENT1_RIS_DIO6_R = crate :: BitReader < INT_EVENT1_RIS_DIO6_A > ; # [doc = "DIO6 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_DIO6_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_DIO6_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_DIO6_SET = 1 , } impl From < INT_EVENT1_RIS_DIO6_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_DIO6_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_DIO6_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_DIO6_A { match self . bits { false => INT_EVENT1_RIS_DIO6_A :: INT_EVENT1_RIS_DIO6_CLR , true => INT_EVENT1_RIS_DIO6_A :: INT_EVENT1_RIS_DIO6_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_dio6_clr (& self) -> bool { * self == INT_EVENT1_RIS_DIO6_A :: INT_EVENT1_RIS_DIO6_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_dio6_set (& self) -> bool { * self == INT_EVENT1_RIS_DIO6_A :: INT_EVENT1_RIS_DIO6_SET } } # [doc = "Field `INT_EVENT1_RIS_DIO7` reader - DIO7 event"]
pub type INT_EVENT1_RIS_DIO7_R = crate :: BitReader < INT_EVENT1_RIS_DIO7_A > ; # [doc = "DIO7 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_DIO7_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_DIO7_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_DIO7_SET = 1 , } impl From < INT_EVENT1_RIS_DIO7_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_DIO7_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_DIO7_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_DIO7_A { match self . bits { false => INT_EVENT1_RIS_DIO7_A :: INT_EVENT1_RIS_DIO7_CLR , true => INT_EVENT1_RIS_DIO7_A :: INT_EVENT1_RIS_DIO7_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_dio7_clr (& self) -> bool { * self == INT_EVENT1_RIS_DIO7_A :: INT_EVENT1_RIS_DIO7_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_dio7_set (& self) -> bool { * self == INT_EVENT1_RIS_DIO7_A :: INT_EVENT1_RIS_DIO7_SET } } # [doc = "Field `INT_EVENT1_RIS_DIO8` reader - DIO8 event"]
pub type INT_EVENT1_RIS_DIO8_R = crate :: BitReader < INT_EVENT1_RIS_DIO8_A > ; # [doc = "DIO8 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_DIO8_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_DIO8_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_DIO8_SET = 1 , } impl From < INT_EVENT1_RIS_DIO8_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_DIO8_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_DIO8_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_DIO8_A { match self . bits { false => INT_EVENT1_RIS_DIO8_A :: INT_EVENT1_RIS_DIO8_CLR , true => INT_EVENT1_RIS_DIO8_A :: INT_EVENT1_RIS_DIO8_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_dio8_clr (& self) -> bool { * self == INT_EVENT1_RIS_DIO8_A :: INT_EVENT1_RIS_DIO8_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_dio8_set (& self) -> bool { * self == INT_EVENT1_RIS_DIO8_A :: INT_EVENT1_RIS_DIO8_SET } } # [doc = "Field `INT_EVENT1_RIS_DIO9` reader - DIO9 event"]
pub type INT_EVENT1_RIS_DIO9_R = crate :: BitReader < INT_EVENT1_RIS_DIO9_A > ; # [doc = "DIO9 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_DIO9_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_DIO9_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_DIO9_SET = 1 , } impl From < INT_EVENT1_RIS_DIO9_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_DIO9_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_DIO9_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_DIO9_A { match self . bits { false => INT_EVENT1_RIS_DIO9_A :: INT_EVENT1_RIS_DIO9_CLR , true => INT_EVENT1_RIS_DIO9_A :: INT_EVENT1_RIS_DIO9_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_dio9_clr (& self) -> bool { * self == INT_EVENT1_RIS_DIO9_A :: INT_EVENT1_RIS_DIO9_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_dio9_set (& self) -> bool { * self == INT_EVENT1_RIS_DIO9_A :: INT_EVENT1_RIS_DIO9_SET } } # [doc = "Field `INT_EVENT1_RIS_DIO10` reader - DIO10 event"]
pub type INT_EVENT1_RIS_DIO10_R = crate :: BitReader < INT_EVENT1_RIS_DIO10_A > ; # [doc = "DIO10 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_DIO10_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_DIO10_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_DIO10_SET = 1 , } impl From < INT_EVENT1_RIS_DIO10_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_DIO10_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_DIO10_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_DIO10_A { match self . bits { false => INT_EVENT1_RIS_DIO10_A :: INT_EVENT1_RIS_DIO10_CLR , true => INT_EVENT1_RIS_DIO10_A :: INT_EVENT1_RIS_DIO10_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_dio10_clr (& self) -> bool { * self == INT_EVENT1_RIS_DIO10_A :: INT_EVENT1_RIS_DIO10_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_dio10_set (& self) -> bool { * self == INT_EVENT1_RIS_DIO10_A :: INT_EVENT1_RIS_DIO10_SET } } # [doc = "Field `INT_EVENT1_RIS_DIO11` reader - DIO11 event"]
pub type INT_EVENT1_RIS_DIO11_R = crate :: BitReader < INT_EVENT1_RIS_DIO11_A > ; # [doc = "DIO11 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_DIO11_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_DIO11_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_DIO11_SET = 1 , } impl From < INT_EVENT1_RIS_DIO11_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_DIO11_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_DIO11_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_DIO11_A { match self . bits { false => INT_EVENT1_RIS_DIO11_A :: INT_EVENT1_RIS_DIO11_CLR , true => INT_EVENT1_RIS_DIO11_A :: INT_EVENT1_RIS_DIO11_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_dio11_clr (& self) -> bool { * self == INT_EVENT1_RIS_DIO11_A :: INT_EVENT1_RIS_DIO11_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_dio11_set (& self) -> bool { * self == INT_EVENT1_RIS_DIO11_A :: INT_EVENT1_RIS_DIO11_SET } } # [doc = "Field `INT_EVENT1_RIS_DIO12` reader - DIO12 event"]
pub type INT_EVENT1_RIS_DIO12_R = crate :: BitReader < INT_EVENT1_RIS_DIO12_A > ; # [doc = "DIO12 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_DIO12_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_DIO12_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_DIO12_SET = 1 , } impl From < INT_EVENT1_RIS_DIO12_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_DIO12_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_DIO12_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_DIO12_A { match self . bits { false => INT_EVENT1_RIS_DIO12_A :: INT_EVENT1_RIS_DIO12_CLR , true => INT_EVENT1_RIS_DIO12_A :: INT_EVENT1_RIS_DIO12_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_dio12_clr (& self) -> bool { * self == INT_EVENT1_RIS_DIO12_A :: INT_EVENT1_RIS_DIO12_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_dio12_set (& self) -> bool { * self == INT_EVENT1_RIS_DIO12_A :: INT_EVENT1_RIS_DIO12_SET } } # [doc = "Field `INT_EVENT1_RIS_DIO13` reader - DIO13 event"]
pub type INT_EVENT1_RIS_DIO13_R = crate :: BitReader < INT_EVENT1_RIS_DIO13_A > ; # [doc = "DIO13 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_DIO13_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_DIO13_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_DIO13_SET = 1 , } impl From < INT_EVENT1_RIS_DIO13_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_DIO13_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_DIO13_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_DIO13_A { match self . bits { false => INT_EVENT1_RIS_DIO13_A :: INT_EVENT1_RIS_DIO13_CLR , true => INT_EVENT1_RIS_DIO13_A :: INT_EVENT1_RIS_DIO13_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_dio13_clr (& self) -> bool { * self == INT_EVENT1_RIS_DIO13_A :: INT_EVENT1_RIS_DIO13_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_dio13_set (& self) -> bool { * self == INT_EVENT1_RIS_DIO13_A :: INT_EVENT1_RIS_DIO13_SET } } # [doc = "Field `INT_EVENT1_RIS_DIO14` reader - DIO14 event"]
pub type INT_EVENT1_RIS_DIO14_R = crate :: BitReader < INT_EVENT1_RIS_DIO14_A > ; # [doc = "DIO14 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_DIO14_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_DIO14_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_DIO14_SET = 1 , } impl From < INT_EVENT1_RIS_DIO14_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_DIO14_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_DIO14_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_DIO14_A { match self . bits { false => INT_EVENT1_RIS_DIO14_A :: INT_EVENT1_RIS_DIO14_CLR , true => INT_EVENT1_RIS_DIO14_A :: INT_EVENT1_RIS_DIO14_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_dio14_clr (& self) -> bool { * self == INT_EVENT1_RIS_DIO14_A :: INT_EVENT1_RIS_DIO14_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_dio14_set (& self) -> bool { * self == INT_EVENT1_RIS_DIO14_A :: INT_EVENT1_RIS_DIO14_SET } } # [doc = "Field `INT_EVENT1_RIS_DIO15` reader - DIO15 event"]
pub type INT_EVENT1_RIS_DIO15_R = crate :: BitReader < INT_EVENT1_RIS_DIO15_A > ; # [doc = "DIO15 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_DIO15_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_DIO15_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_DIO15_SET = 1 , } impl From < INT_EVENT1_RIS_DIO15_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_DIO15_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_DIO15_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_DIO15_A { match self . bits { false => INT_EVENT1_RIS_DIO15_A :: INT_EVENT1_RIS_DIO15_CLR , true => INT_EVENT1_RIS_DIO15_A :: INT_EVENT1_RIS_DIO15_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_dio15_clr (& self) -> bool { * self == INT_EVENT1_RIS_DIO15_A :: INT_EVENT1_RIS_DIO15_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_dio15_set (& self) -> bool { * self == INT_EVENT1_RIS_DIO15_A :: INT_EVENT1_RIS_DIO15_SET } } impl R { # [doc = "Bit 0 - DIO0 event"]
# [inline (always)]
pub fn int_event1_ris_dio0 (& self) -> INT_EVENT1_RIS_DIO0_R { INT_EVENT1_RIS_DIO0_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - DIO1 event"]
# [inline (always)]
pub fn int_event1_ris_dio1 (& self) -> INT_EVENT1_RIS_DIO1_R { INT_EVENT1_RIS_DIO1_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - DIO2 event"]
# [inline (always)]
pub fn int_event1_ris_dio2 (& self) -> INT_EVENT1_RIS_DIO2_R { INT_EVENT1_RIS_DIO2_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - DIO3 event"]
# [inline (always)]
pub fn int_event1_ris_dio3 (& self) -> INT_EVENT1_RIS_DIO3_R { INT_EVENT1_RIS_DIO3_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - DIO4 event"]
# [inline (always)]
pub fn int_event1_ris_dio4 (& self) -> INT_EVENT1_RIS_DIO4_R { INT_EVENT1_RIS_DIO4_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - DIO5 event"]
# [inline (always)]
pub fn int_event1_ris_dio5 (& self) -> INT_EVENT1_RIS_DIO5_R { INT_EVENT1_RIS_DIO5_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - DIO6 event"]
# [inline (always)]
pub fn int_event1_ris_dio6 (& self) -> INT_EVENT1_RIS_DIO6_R { INT_EVENT1_RIS_DIO6_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 7 - DIO7 event"]
# [inline (always)]
pub fn int_event1_ris_dio7 (& self) -> INT_EVENT1_RIS_DIO7_R { INT_EVENT1_RIS_DIO7_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - DIO8 event"]
# [inline (always)]
pub fn int_event1_ris_dio8 (& self) -> INT_EVENT1_RIS_DIO8_R { INT_EVENT1_RIS_DIO8_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - DIO9 event"]
# [inline (always)]
pub fn int_event1_ris_dio9 (& self) -> INT_EVENT1_RIS_DIO9_R { INT_EVENT1_RIS_DIO9_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - DIO10 event"]
# [inline (always)]
pub fn int_event1_ris_dio10 (& self) -> INT_EVENT1_RIS_DIO10_R { INT_EVENT1_RIS_DIO10_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bit 11 - DIO11 event"]
# [inline (always)]
pub fn int_event1_ris_dio11 (& self) -> INT_EVENT1_RIS_DIO11_R { INT_EVENT1_RIS_DIO11_R :: new (((self . bits >> 11) & 1) != 0) } # [doc = "Bit 12 - DIO12 event"]
# [inline (always)]
pub fn int_event1_ris_dio12 (& self) -> INT_EVENT1_RIS_DIO12_R { INT_EVENT1_RIS_DIO12_R :: new (((self . bits >> 12) & 1) != 0) } # [doc = "Bit 13 - DIO13 event"]
# [inline (always)]
pub fn int_event1_ris_dio13 (& self) -> INT_EVENT1_RIS_DIO13_R { INT_EVENT1_RIS_DIO13_R :: new (((self . bits >> 13) & 1) != 0) } # [doc = "Bit 14 - DIO14 event"]
# [inline (always)]
pub fn int_event1_ris_dio14 (& self) -> INT_EVENT1_RIS_DIO14_R { INT_EVENT1_RIS_DIO14_R :: new (((self . bits >> 14) & 1) != 0) } # [doc = "Bit 15 - DIO15 event"]
# [inline (always)]
pub fn int_event1_ris_dio15 (& self) -> INT_EVENT1_RIS_DIO15_R { INT_EVENT1_RIS_DIO15_R :: new (((self . bits >> 15) & 1) != 0) } } # [doc = "Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_RIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event1_ris::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT1_RIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT1_RIS to value 0"]
impl crate :: Resettable for INT_EVENT1_RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_MIS (r) register accessor: Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_mis`]
module"]
pub type INT_EVENT1_MIS = crate :: Reg < int_event1_mis :: INT_EVENT1_MIS_SPEC > ; # [doc = "Masked interrupt status"]
pub mod int_event1_mis { # [doc = "Register `INT_EVENT1_MIS` reader"]
pub type R = crate :: R < INT_EVENT1_MIS_SPEC > ; # [doc = "Field `INT_EVENT1_MIS_DIO0` reader - DIO0 event"]
pub type INT_EVENT1_MIS_DIO0_R = crate :: BitReader < INT_EVENT1_MIS_DIO0_A > ; # [doc = "DIO0 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_DIO0_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_DIO0_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_DIO0_SET = 1 , } impl From < INT_EVENT1_MIS_DIO0_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_DIO0_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_DIO0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_DIO0_A { match self . bits { false => INT_EVENT1_MIS_DIO0_A :: INT_EVENT1_MIS_DIO0_CLR , true => INT_EVENT1_MIS_DIO0_A :: INT_EVENT1_MIS_DIO0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_dio0_clr (& self) -> bool { * self == INT_EVENT1_MIS_DIO0_A :: INT_EVENT1_MIS_DIO0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_dio0_set (& self) -> bool { * self == INT_EVENT1_MIS_DIO0_A :: INT_EVENT1_MIS_DIO0_SET } } # [doc = "Field `INT_EVENT1_MIS_DIO1` reader - DIO1 event"]
pub type INT_EVENT1_MIS_DIO1_R = crate :: BitReader < INT_EVENT1_MIS_DIO1_A > ; # [doc = "DIO1 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_DIO1_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_DIO1_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_DIO1_SET = 1 , } impl From < INT_EVENT1_MIS_DIO1_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_DIO1_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_DIO1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_DIO1_A { match self . bits { false => INT_EVENT1_MIS_DIO1_A :: INT_EVENT1_MIS_DIO1_CLR , true => INT_EVENT1_MIS_DIO1_A :: INT_EVENT1_MIS_DIO1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_dio1_clr (& self) -> bool { * self == INT_EVENT1_MIS_DIO1_A :: INT_EVENT1_MIS_DIO1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_dio1_set (& self) -> bool { * self == INT_EVENT1_MIS_DIO1_A :: INT_EVENT1_MIS_DIO1_SET } } # [doc = "Field `INT_EVENT1_MIS_DIO2` reader - DIO2 event"]
pub type INT_EVENT1_MIS_DIO2_R = crate :: BitReader < INT_EVENT1_MIS_DIO2_A > ; # [doc = "DIO2 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_DIO2_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_DIO2_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_DIO2_SET = 1 , } impl From < INT_EVENT1_MIS_DIO2_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_DIO2_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_DIO2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_DIO2_A { match self . bits { false => INT_EVENT1_MIS_DIO2_A :: INT_EVENT1_MIS_DIO2_CLR , true => INT_EVENT1_MIS_DIO2_A :: INT_EVENT1_MIS_DIO2_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_dio2_clr (& self) -> bool { * self == INT_EVENT1_MIS_DIO2_A :: INT_EVENT1_MIS_DIO2_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_dio2_set (& self) -> bool { * self == INT_EVENT1_MIS_DIO2_A :: INT_EVENT1_MIS_DIO2_SET } } # [doc = "Field `INT_EVENT1_MIS_DIO3` reader - DIO3 event"]
pub type INT_EVENT1_MIS_DIO3_R = crate :: BitReader < INT_EVENT1_MIS_DIO3_A > ; # [doc = "DIO3 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_DIO3_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_DIO3_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_DIO3_SET = 1 , } impl From < INT_EVENT1_MIS_DIO3_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_DIO3_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_DIO3_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_DIO3_A { match self . bits { false => INT_EVENT1_MIS_DIO3_A :: INT_EVENT1_MIS_DIO3_CLR , true => INT_EVENT1_MIS_DIO3_A :: INT_EVENT1_MIS_DIO3_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_dio3_clr (& self) -> bool { * self == INT_EVENT1_MIS_DIO3_A :: INT_EVENT1_MIS_DIO3_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_dio3_set (& self) -> bool { * self == INT_EVENT1_MIS_DIO3_A :: INT_EVENT1_MIS_DIO3_SET } } # [doc = "Field `INT_EVENT1_MIS_DIO4` reader - DIO4 event"]
pub type INT_EVENT1_MIS_DIO4_R = crate :: BitReader < INT_EVENT1_MIS_DIO4_A > ; # [doc = "DIO4 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_DIO4_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_DIO4_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_DIO4_SET = 1 , } impl From < INT_EVENT1_MIS_DIO4_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_DIO4_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_DIO4_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_DIO4_A { match self . bits { false => INT_EVENT1_MIS_DIO4_A :: INT_EVENT1_MIS_DIO4_CLR , true => INT_EVENT1_MIS_DIO4_A :: INT_EVENT1_MIS_DIO4_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_dio4_clr (& self) -> bool { * self == INT_EVENT1_MIS_DIO4_A :: INT_EVENT1_MIS_DIO4_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_dio4_set (& self) -> bool { * self == INT_EVENT1_MIS_DIO4_A :: INT_EVENT1_MIS_DIO4_SET } } # [doc = "Field `INT_EVENT1_MIS_DIO5` reader - DIO5 event"]
pub type INT_EVENT1_MIS_DIO5_R = crate :: BitReader < INT_EVENT1_MIS_DIO5_A > ; # [doc = "DIO5 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_DIO5_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_DIO5_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_DIO5_SET = 1 , } impl From < INT_EVENT1_MIS_DIO5_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_DIO5_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_DIO5_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_DIO5_A { match self . bits { false => INT_EVENT1_MIS_DIO5_A :: INT_EVENT1_MIS_DIO5_CLR , true => INT_EVENT1_MIS_DIO5_A :: INT_EVENT1_MIS_DIO5_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_dio5_clr (& self) -> bool { * self == INT_EVENT1_MIS_DIO5_A :: INT_EVENT1_MIS_DIO5_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_dio5_set (& self) -> bool { * self == INT_EVENT1_MIS_DIO5_A :: INT_EVENT1_MIS_DIO5_SET } } # [doc = "Field `INT_EVENT1_MIS_DIO6` reader - DIO6 event"]
pub type INT_EVENT1_MIS_DIO6_R = crate :: BitReader < INT_EVENT1_MIS_DIO6_A > ; # [doc = "DIO6 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_DIO6_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_DIO6_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_DIO6_SET = 1 , } impl From < INT_EVENT1_MIS_DIO6_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_DIO6_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_DIO6_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_DIO6_A { match self . bits { false => INT_EVENT1_MIS_DIO6_A :: INT_EVENT1_MIS_DIO6_CLR , true => INT_EVENT1_MIS_DIO6_A :: INT_EVENT1_MIS_DIO6_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_dio6_clr (& self) -> bool { * self == INT_EVENT1_MIS_DIO6_A :: INT_EVENT1_MIS_DIO6_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_dio6_set (& self) -> bool { * self == INT_EVENT1_MIS_DIO6_A :: INT_EVENT1_MIS_DIO6_SET } } # [doc = "Field `INT_EVENT1_MIS_DIO7` reader - DIO7 event"]
pub type INT_EVENT1_MIS_DIO7_R = crate :: BitReader < INT_EVENT1_MIS_DIO7_A > ; # [doc = "DIO7 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_DIO7_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_DIO7_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_DIO7_SET = 1 , } impl From < INT_EVENT1_MIS_DIO7_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_DIO7_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_DIO7_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_DIO7_A { match self . bits { false => INT_EVENT1_MIS_DIO7_A :: INT_EVENT1_MIS_DIO7_CLR , true => INT_EVENT1_MIS_DIO7_A :: INT_EVENT1_MIS_DIO7_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_dio7_clr (& self) -> bool { * self == INT_EVENT1_MIS_DIO7_A :: INT_EVENT1_MIS_DIO7_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_dio7_set (& self) -> bool { * self == INT_EVENT1_MIS_DIO7_A :: INT_EVENT1_MIS_DIO7_SET } } # [doc = "Field `INT_EVENT1_MIS_DIO8` reader - DIO8 event"]
pub type INT_EVENT1_MIS_DIO8_R = crate :: BitReader < INT_EVENT1_MIS_DIO8_A > ; # [doc = "DIO8 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_DIO8_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_DIO8_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_DIO8_SET = 1 , } impl From < INT_EVENT1_MIS_DIO8_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_DIO8_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_DIO8_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_DIO8_A { match self . bits { false => INT_EVENT1_MIS_DIO8_A :: INT_EVENT1_MIS_DIO8_CLR , true => INT_EVENT1_MIS_DIO8_A :: INT_EVENT1_MIS_DIO8_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_dio8_clr (& self) -> bool { * self == INT_EVENT1_MIS_DIO8_A :: INT_EVENT1_MIS_DIO8_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_dio8_set (& self) -> bool { * self == INT_EVENT1_MIS_DIO8_A :: INT_EVENT1_MIS_DIO8_SET } } # [doc = "Field `INT_EVENT1_MIS_DIO9` reader - DIO9 event"]
pub type INT_EVENT1_MIS_DIO9_R = crate :: BitReader < INT_EVENT1_MIS_DIO9_A > ; # [doc = "DIO9 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_DIO9_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_DIO9_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_DIO9_SET = 1 , } impl From < INT_EVENT1_MIS_DIO9_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_DIO9_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_DIO9_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_DIO9_A { match self . bits { false => INT_EVENT1_MIS_DIO9_A :: INT_EVENT1_MIS_DIO9_CLR , true => INT_EVENT1_MIS_DIO9_A :: INT_EVENT1_MIS_DIO9_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_dio9_clr (& self) -> bool { * self == INT_EVENT1_MIS_DIO9_A :: INT_EVENT1_MIS_DIO9_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_dio9_set (& self) -> bool { * self == INT_EVENT1_MIS_DIO9_A :: INT_EVENT1_MIS_DIO9_SET } } # [doc = "Field `INT_EVENT1_MIS_DIO10` reader - DIO10 event"]
pub type INT_EVENT1_MIS_DIO10_R = crate :: BitReader < INT_EVENT1_MIS_DIO10_A > ; # [doc = "DIO10 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_DIO10_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_DIO10_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_DIO10_SET = 1 , } impl From < INT_EVENT1_MIS_DIO10_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_DIO10_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_DIO10_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_DIO10_A { match self . bits { false => INT_EVENT1_MIS_DIO10_A :: INT_EVENT1_MIS_DIO10_CLR , true => INT_EVENT1_MIS_DIO10_A :: INT_EVENT1_MIS_DIO10_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_dio10_clr (& self) -> bool { * self == INT_EVENT1_MIS_DIO10_A :: INT_EVENT1_MIS_DIO10_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_dio10_set (& self) -> bool { * self == INT_EVENT1_MIS_DIO10_A :: INT_EVENT1_MIS_DIO10_SET } } # [doc = "Field `INT_EVENT1_MIS_DIO11` reader - DIO11 event"]
pub type INT_EVENT1_MIS_DIO11_R = crate :: BitReader < INT_EVENT1_MIS_DIO11_A > ; # [doc = "DIO11 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_DIO11_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_DIO11_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_DIO11_SET = 1 , } impl From < INT_EVENT1_MIS_DIO11_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_DIO11_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_DIO11_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_DIO11_A { match self . bits { false => INT_EVENT1_MIS_DIO11_A :: INT_EVENT1_MIS_DIO11_CLR , true => INT_EVENT1_MIS_DIO11_A :: INT_EVENT1_MIS_DIO11_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_dio11_clr (& self) -> bool { * self == INT_EVENT1_MIS_DIO11_A :: INT_EVENT1_MIS_DIO11_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_dio11_set (& self) -> bool { * self == INT_EVENT1_MIS_DIO11_A :: INT_EVENT1_MIS_DIO11_SET } } # [doc = "Field `INT_EVENT1_MIS_DIO12` reader - DIO12 event"]
pub type INT_EVENT1_MIS_DIO12_R = crate :: BitReader < INT_EVENT1_MIS_DIO12_A > ; # [doc = "DIO12 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_DIO12_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_DIO12_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_DIO12_SET = 1 , } impl From < INT_EVENT1_MIS_DIO12_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_DIO12_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_DIO12_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_DIO12_A { match self . bits { false => INT_EVENT1_MIS_DIO12_A :: INT_EVENT1_MIS_DIO12_CLR , true => INT_EVENT1_MIS_DIO12_A :: INT_EVENT1_MIS_DIO12_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_dio12_clr (& self) -> bool { * self == INT_EVENT1_MIS_DIO12_A :: INT_EVENT1_MIS_DIO12_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_dio12_set (& self) -> bool { * self == INT_EVENT1_MIS_DIO12_A :: INT_EVENT1_MIS_DIO12_SET } } # [doc = "Field `INT_EVENT1_MIS_DIO13` reader - DIO13 event"]
pub type INT_EVENT1_MIS_DIO13_R = crate :: BitReader < INT_EVENT1_MIS_DIO13_A > ; # [doc = "DIO13 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_DIO13_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_DIO13_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_DIO13_SET = 1 , } impl From < INT_EVENT1_MIS_DIO13_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_DIO13_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_DIO13_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_DIO13_A { match self . bits { false => INT_EVENT1_MIS_DIO13_A :: INT_EVENT1_MIS_DIO13_CLR , true => INT_EVENT1_MIS_DIO13_A :: INT_EVENT1_MIS_DIO13_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_dio13_clr (& self) -> bool { * self == INT_EVENT1_MIS_DIO13_A :: INT_EVENT1_MIS_DIO13_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_dio13_set (& self) -> bool { * self == INT_EVENT1_MIS_DIO13_A :: INT_EVENT1_MIS_DIO13_SET } } # [doc = "Field `INT_EVENT1_MIS_DIO14` reader - DIO14 event"]
pub type INT_EVENT1_MIS_DIO14_R = crate :: BitReader < INT_EVENT1_MIS_DIO14_A > ; # [doc = "DIO14 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_DIO14_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_DIO14_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_DIO14_SET = 1 , } impl From < INT_EVENT1_MIS_DIO14_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_DIO14_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_DIO14_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_DIO14_A { match self . bits { false => INT_EVENT1_MIS_DIO14_A :: INT_EVENT1_MIS_DIO14_CLR , true => INT_EVENT1_MIS_DIO14_A :: INT_EVENT1_MIS_DIO14_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_dio14_clr (& self) -> bool { * self == INT_EVENT1_MIS_DIO14_A :: INT_EVENT1_MIS_DIO14_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_dio14_set (& self) -> bool { * self == INT_EVENT1_MIS_DIO14_A :: INT_EVENT1_MIS_DIO14_SET } } # [doc = "Field `INT_EVENT1_MIS_DIO15` reader - DIO15 event"]
pub type INT_EVENT1_MIS_DIO15_R = crate :: BitReader < INT_EVENT1_MIS_DIO15_A > ; # [doc = "DIO15 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_DIO15_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_DIO15_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_DIO15_SET = 1 , } impl From < INT_EVENT1_MIS_DIO15_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_DIO15_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_DIO15_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_DIO15_A { match self . bits { false => INT_EVENT1_MIS_DIO15_A :: INT_EVENT1_MIS_DIO15_CLR , true => INT_EVENT1_MIS_DIO15_A :: INT_EVENT1_MIS_DIO15_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_dio15_clr (& self) -> bool { * self == INT_EVENT1_MIS_DIO15_A :: INT_EVENT1_MIS_DIO15_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_dio15_set (& self) -> bool { * self == INT_EVENT1_MIS_DIO15_A :: INT_EVENT1_MIS_DIO15_SET } } impl R { # [doc = "Bit 0 - DIO0 event"]
# [inline (always)]
pub fn int_event1_mis_dio0 (& self) -> INT_EVENT1_MIS_DIO0_R { INT_EVENT1_MIS_DIO0_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - DIO1 event"]
# [inline (always)]
pub fn int_event1_mis_dio1 (& self) -> INT_EVENT1_MIS_DIO1_R { INT_EVENT1_MIS_DIO1_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - DIO2 event"]
# [inline (always)]
pub fn int_event1_mis_dio2 (& self) -> INT_EVENT1_MIS_DIO2_R { INT_EVENT1_MIS_DIO2_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - DIO3 event"]
# [inline (always)]
pub fn int_event1_mis_dio3 (& self) -> INT_EVENT1_MIS_DIO3_R { INT_EVENT1_MIS_DIO3_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - DIO4 event"]
# [inline (always)]
pub fn int_event1_mis_dio4 (& self) -> INT_EVENT1_MIS_DIO4_R { INT_EVENT1_MIS_DIO4_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - DIO5 event"]
# [inline (always)]
pub fn int_event1_mis_dio5 (& self) -> INT_EVENT1_MIS_DIO5_R { INT_EVENT1_MIS_DIO5_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - DIO6 event"]
# [inline (always)]
pub fn int_event1_mis_dio6 (& self) -> INT_EVENT1_MIS_DIO6_R { INT_EVENT1_MIS_DIO6_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 7 - DIO7 event"]
# [inline (always)]
pub fn int_event1_mis_dio7 (& self) -> INT_EVENT1_MIS_DIO7_R { INT_EVENT1_MIS_DIO7_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - DIO8 event"]
# [inline (always)]
pub fn int_event1_mis_dio8 (& self) -> INT_EVENT1_MIS_DIO8_R { INT_EVENT1_MIS_DIO8_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - DIO9 event"]
# [inline (always)]
pub fn int_event1_mis_dio9 (& self) -> INT_EVENT1_MIS_DIO9_R { INT_EVENT1_MIS_DIO9_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - DIO10 event"]
# [inline (always)]
pub fn int_event1_mis_dio10 (& self) -> INT_EVENT1_MIS_DIO10_R { INT_EVENT1_MIS_DIO10_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bit 11 - DIO11 event"]
# [inline (always)]
pub fn int_event1_mis_dio11 (& self) -> INT_EVENT1_MIS_DIO11_R { INT_EVENT1_MIS_DIO11_R :: new (((self . bits >> 11) & 1) != 0) } # [doc = "Bit 12 - DIO12 event"]
# [inline (always)]
pub fn int_event1_mis_dio12 (& self) -> INT_EVENT1_MIS_DIO12_R { INT_EVENT1_MIS_DIO12_R :: new (((self . bits >> 12) & 1) != 0) } # [doc = "Bit 13 - DIO13 event"]
# [inline (always)]
pub fn int_event1_mis_dio13 (& self) -> INT_EVENT1_MIS_DIO13_R { INT_EVENT1_MIS_DIO13_R :: new (((self . bits >> 13) & 1) != 0) } # [doc = "Bit 14 - DIO14 event"]
# [inline (always)]
pub fn int_event1_mis_dio14 (& self) -> INT_EVENT1_MIS_DIO14_R { INT_EVENT1_MIS_DIO14_R :: new (((self . bits >> 14) & 1) != 0) } # [doc = "Bit 15 - DIO15 event"]
# [inline (always)]
pub fn int_event1_mis_dio15 (& self) -> INT_EVENT1_MIS_DIO15_R { INT_EVENT1_MIS_DIO15_R :: new (((self . bits >> 15) & 1) != 0) } } # [doc = "Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_MIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event1_mis::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT1_MIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT1_MIS to value 0"]
impl crate :: Resettable for INT_EVENT1_MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_ISET (w) register accessor: Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_iset`]
module"]
pub type INT_EVENT1_ISET = crate :: Reg < int_event1_iset :: INT_EVENT1_ISET_SPEC > ; # [doc = "Interrupt set"]
pub mod int_event1_iset { # [doc = "Register `INT_EVENT1_ISET` writer"]
pub type W = crate :: W < INT_EVENT1_ISET_SPEC > ; # [doc = "DIO0 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_DIO0_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_DIO0_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_DIO0_SET = 1 , } impl From < INT_EVENT1_ISET_DIO0_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_DIO0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_DIO0` writer - DIO0 event"]
pub type INT_EVENT1_ISET_DIO0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_DIO0_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_DIO0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_dio0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_DIO0_AW :: INT_EVENT1_ISET_DIO0_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_dio0_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_DIO0_AW :: INT_EVENT1_ISET_DIO0_SET) } } # [doc = "DIO1 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_DIO1_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_DIO1_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_DIO1_SET = 1 , } impl From < INT_EVENT1_ISET_DIO1_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_DIO1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_DIO1` writer - DIO1 event"]
pub type INT_EVENT1_ISET_DIO1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_DIO1_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_DIO1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_dio1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_DIO1_AW :: INT_EVENT1_ISET_DIO1_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_dio1_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_DIO1_AW :: INT_EVENT1_ISET_DIO1_SET) } } # [doc = "DIO2 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_DIO2_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_DIO2_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_DIO2_SET = 1 , } impl From < INT_EVENT1_ISET_DIO2_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_DIO2_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_DIO2` writer - DIO2 event"]
pub type INT_EVENT1_ISET_DIO2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_DIO2_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_DIO2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_dio2_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_DIO2_AW :: INT_EVENT1_ISET_DIO2_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_dio2_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_DIO2_AW :: INT_EVENT1_ISET_DIO2_SET) } } # [doc = "DIO3 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_DIO3_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_DIO3_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_DIO3_SET = 1 , } impl From < INT_EVENT1_ISET_DIO3_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_DIO3_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_DIO3` writer - DIO3 event"]
pub type INT_EVENT1_ISET_DIO3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_DIO3_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_DIO3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_dio3_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_DIO3_AW :: INT_EVENT1_ISET_DIO3_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_dio3_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_DIO3_AW :: INT_EVENT1_ISET_DIO3_SET) } } # [doc = "DIO4 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_DIO4_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_DIO4_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_DIO4_SET = 1 , } impl From < INT_EVENT1_ISET_DIO4_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_DIO4_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_DIO4` writer - DIO4 event"]
pub type INT_EVENT1_ISET_DIO4_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_DIO4_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_DIO4_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_dio4_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_DIO4_AW :: INT_EVENT1_ISET_DIO4_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_dio4_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_DIO4_AW :: INT_EVENT1_ISET_DIO4_SET) } } # [doc = "DIO5 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_DIO5_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_DIO5_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_DIO5_SET = 1 , } impl From < INT_EVENT1_ISET_DIO5_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_DIO5_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_DIO5` writer - DIO5 event"]
pub type INT_EVENT1_ISET_DIO5_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_DIO5_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_DIO5_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_dio5_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_DIO5_AW :: INT_EVENT1_ISET_DIO5_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_dio5_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_DIO5_AW :: INT_EVENT1_ISET_DIO5_SET) } } # [doc = "DIO6 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_DIO6_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_DIO6_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_DIO6_SET = 1 , } impl From < INT_EVENT1_ISET_DIO6_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_DIO6_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_DIO6` writer - DIO6 event"]
pub type INT_EVENT1_ISET_DIO6_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_DIO6_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_DIO6_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_dio6_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_DIO6_AW :: INT_EVENT1_ISET_DIO6_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_dio6_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_DIO6_AW :: INT_EVENT1_ISET_DIO6_SET) } } # [doc = "DIO7 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_DIO7_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_DIO7_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_DIO7_SET = 1 , } impl From < INT_EVENT1_ISET_DIO7_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_DIO7_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_DIO7` writer - DIO7 event"]
pub type INT_EVENT1_ISET_DIO7_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_DIO7_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_DIO7_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_dio7_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_DIO7_AW :: INT_EVENT1_ISET_DIO7_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_dio7_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_DIO7_AW :: INT_EVENT1_ISET_DIO7_SET) } } # [doc = "DIO8 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_DIO8_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_DIO8_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_DIO8_SET = 1 , } impl From < INT_EVENT1_ISET_DIO8_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_DIO8_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_DIO8` writer - DIO8 event"]
pub type INT_EVENT1_ISET_DIO8_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_DIO8_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_DIO8_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_dio8_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_DIO8_AW :: INT_EVENT1_ISET_DIO8_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_dio8_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_DIO8_AW :: INT_EVENT1_ISET_DIO8_SET) } } # [doc = "DIO9 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_DIO9_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_DIO9_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_DIO9_SET = 1 , } impl From < INT_EVENT1_ISET_DIO9_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_DIO9_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_DIO9` writer - DIO9 event"]
pub type INT_EVENT1_ISET_DIO9_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_DIO9_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_DIO9_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_dio9_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_DIO9_AW :: INT_EVENT1_ISET_DIO9_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_dio9_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_DIO9_AW :: INT_EVENT1_ISET_DIO9_SET) } } # [doc = "DIO10 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_DIO10_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_DIO10_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_DIO10_SET = 1 , } impl From < INT_EVENT1_ISET_DIO10_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_DIO10_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_DIO10` writer - DIO10 event"]
pub type INT_EVENT1_ISET_DIO10_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_DIO10_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_DIO10_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_dio10_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_DIO10_AW :: INT_EVENT1_ISET_DIO10_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_dio10_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_DIO10_AW :: INT_EVENT1_ISET_DIO10_SET) } } # [doc = "DIO11 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_DIO11_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_DIO11_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_DIO11_SET = 1 , } impl From < INT_EVENT1_ISET_DIO11_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_DIO11_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_DIO11` writer - DIO11 event"]
pub type INT_EVENT1_ISET_DIO11_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_DIO11_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_DIO11_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_dio11_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_DIO11_AW :: INT_EVENT1_ISET_DIO11_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_dio11_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_DIO11_AW :: INT_EVENT1_ISET_DIO11_SET) } } # [doc = "DIO12 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_DIO12_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_DIO12_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_DIO12_SET = 1 , } impl From < INT_EVENT1_ISET_DIO12_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_DIO12_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_DIO12` writer - DIO12 event"]
pub type INT_EVENT1_ISET_DIO12_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_DIO12_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_DIO12_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_dio12_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_DIO12_AW :: INT_EVENT1_ISET_DIO12_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_dio12_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_DIO12_AW :: INT_EVENT1_ISET_DIO12_SET) } } # [doc = "DIO13 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_DIO13_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_DIO13_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_DIO13_SET = 1 , } impl From < INT_EVENT1_ISET_DIO13_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_DIO13_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_DIO13` writer - DIO13 event"]
pub type INT_EVENT1_ISET_DIO13_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_DIO13_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_DIO13_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_dio13_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_DIO13_AW :: INT_EVENT1_ISET_DIO13_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_dio13_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_DIO13_AW :: INT_EVENT1_ISET_DIO13_SET) } } # [doc = "DIO14 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_DIO14_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_DIO14_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_DIO14_SET = 1 , } impl From < INT_EVENT1_ISET_DIO14_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_DIO14_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_DIO14` writer - DIO14 event"]
pub type INT_EVENT1_ISET_DIO14_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_DIO14_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_DIO14_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_dio14_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_DIO14_AW :: INT_EVENT1_ISET_DIO14_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_dio14_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_DIO14_AW :: INT_EVENT1_ISET_DIO14_SET) } } # [doc = "DIO15 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_DIO15_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_DIO15_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_DIO15_SET = 1 , } impl From < INT_EVENT1_ISET_DIO15_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_DIO15_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_DIO15` writer - DIO15 event"]
pub type INT_EVENT1_ISET_DIO15_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_DIO15_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_DIO15_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_dio15_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_DIO15_AW :: INT_EVENT1_ISET_DIO15_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_dio15_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_DIO15_AW :: INT_EVENT1_ISET_DIO15_SET) } } impl W { # [doc = "Bit 0 - DIO0 event"]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_dio0 (& mut self) -> INT_EVENT1_ISET_DIO0_W < INT_EVENT1_ISET_SPEC , 0 > { INT_EVENT1_ISET_DIO0_W :: new (self) } # [doc = "Bit 1 - DIO1 event"]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_dio1 (& mut self) -> INT_EVENT1_ISET_DIO1_W < INT_EVENT1_ISET_SPEC , 1 > { INT_EVENT1_ISET_DIO1_W :: new (self) } # [doc = "Bit 2 - DIO2 event"]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_dio2 (& mut self) -> INT_EVENT1_ISET_DIO2_W < INT_EVENT1_ISET_SPEC , 2 > { INT_EVENT1_ISET_DIO2_W :: new (self) } # [doc = "Bit 3 - DIO3 event"]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_dio3 (& mut self) -> INT_EVENT1_ISET_DIO3_W < INT_EVENT1_ISET_SPEC , 3 > { INT_EVENT1_ISET_DIO3_W :: new (self) } # [doc = "Bit 4 - DIO4 event"]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_dio4 (& mut self) -> INT_EVENT1_ISET_DIO4_W < INT_EVENT1_ISET_SPEC , 4 > { INT_EVENT1_ISET_DIO4_W :: new (self) } # [doc = "Bit 5 - DIO5 event"]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_dio5 (& mut self) -> INT_EVENT1_ISET_DIO5_W < INT_EVENT1_ISET_SPEC , 5 > { INT_EVENT1_ISET_DIO5_W :: new (self) } # [doc = "Bit 6 - DIO6 event"]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_dio6 (& mut self) -> INT_EVENT1_ISET_DIO6_W < INT_EVENT1_ISET_SPEC , 6 > { INT_EVENT1_ISET_DIO6_W :: new (self) } # [doc = "Bit 7 - DIO7 event"]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_dio7 (& mut self) -> INT_EVENT1_ISET_DIO7_W < INT_EVENT1_ISET_SPEC , 7 > { INT_EVENT1_ISET_DIO7_W :: new (self) } # [doc = "Bit 8 - DIO8 event"]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_dio8 (& mut self) -> INT_EVENT1_ISET_DIO8_W < INT_EVENT1_ISET_SPEC , 8 > { INT_EVENT1_ISET_DIO8_W :: new (self) } # [doc = "Bit 9 - DIO9 event"]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_dio9 (& mut self) -> INT_EVENT1_ISET_DIO9_W < INT_EVENT1_ISET_SPEC , 9 > { INT_EVENT1_ISET_DIO9_W :: new (self) } # [doc = "Bit 10 - DIO10 event"]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_dio10 (& mut self) -> INT_EVENT1_ISET_DIO10_W < INT_EVENT1_ISET_SPEC , 10 > { INT_EVENT1_ISET_DIO10_W :: new (self) } # [doc = "Bit 11 - DIO11 event"]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_dio11 (& mut self) -> INT_EVENT1_ISET_DIO11_W < INT_EVENT1_ISET_SPEC , 11 > { INT_EVENT1_ISET_DIO11_W :: new (self) } # [doc = "Bit 12 - DIO12 event"]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_dio12 (& mut self) -> INT_EVENT1_ISET_DIO12_W < INT_EVENT1_ISET_SPEC , 12 > { INT_EVENT1_ISET_DIO12_W :: new (self) } # [doc = "Bit 13 - DIO13 event"]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_dio13 (& mut self) -> INT_EVENT1_ISET_DIO13_W < INT_EVENT1_ISET_SPEC , 13 > { INT_EVENT1_ISET_DIO13_W :: new (self) } # [doc = "Bit 14 - DIO14 event"]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_dio14 (& mut self) -> INT_EVENT1_ISET_DIO14_W < INT_EVENT1_ISET_SPEC , 14 > { INT_EVENT1_ISET_DIO14_W :: new (self) } # [doc = "Bit 15 - DIO15 event"]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_dio15 (& mut self) -> INT_EVENT1_ISET_DIO15_W < INT_EVENT1_ISET_SPEC , 15 > { INT_EVENT1_ISET_DIO15_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_ISET_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event1_iset::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT1_ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT1_ISET to value 0"]
impl crate :: Resettable for INT_EVENT1_ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_ICLR (w) register accessor: Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_iclr`]
module"]
pub type INT_EVENT1_ICLR = crate :: Reg < int_event1_iclr :: INT_EVENT1_ICLR_SPEC > ; # [doc = "Interrupt clear"]
pub mod int_event1_iclr { # [doc = "Register `INT_EVENT1_ICLR` writer"]
pub type W = crate :: W < INT_EVENT1_ICLR_SPEC > ; # [doc = "DIO0 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_DIO0_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_DIO0_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_DIO0_CLR = 1 , } impl From < INT_EVENT1_ICLR_DIO0_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_DIO0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_DIO0` writer - DIO0 event"]
pub type INT_EVENT1_ICLR_DIO0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_DIO0_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_DIO0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_dio0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_DIO0_AW :: INT_EVENT1_ICLR_DIO0_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_dio0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_DIO0_AW :: INT_EVENT1_ICLR_DIO0_CLR) } } # [doc = "DIO1 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_DIO1_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_DIO1_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_DIO1_CLR = 1 , } impl From < INT_EVENT1_ICLR_DIO1_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_DIO1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_DIO1` writer - DIO1 event"]
pub type INT_EVENT1_ICLR_DIO1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_DIO1_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_DIO1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_dio1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_DIO1_AW :: INT_EVENT1_ICLR_DIO1_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_dio1_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_DIO1_AW :: INT_EVENT1_ICLR_DIO1_CLR) } } # [doc = "DIO2 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_DIO2_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_DIO2_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_DIO2_CLR = 1 , } impl From < INT_EVENT1_ICLR_DIO2_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_DIO2_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_DIO2` writer - DIO2 event"]
pub type INT_EVENT1_ICLR_DIO2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_DIO2_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_DIO2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_dio2_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_DIO2_AW :: INT_EVENT1_ICLR_DIO2_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_dio2_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_DIO2_AW :: INT_EVENT1_ICLR_DIO2_CLR) } } # [doc = "DIO3 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_DIO3_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_DIO3_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_DIO3_CLR = 1 , } impl From < INT_EVENT1_ICLR_DIO3_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_DIO3_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_DIO3` writer - DIO3 event"]
pub type INT_EVENT1_ICLR_DIO3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_DIO3_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_DIO3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_dio3_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_DIO3_AW :: INT_EVENT1_ICLR_DIO3_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_dio3_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_DIO3_AW :: INT_EVENT1_ICLR_DIO3_CLR) } } # [doc = "DIO4 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_DIO4_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_DIO4_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_DIO4_CLR = 1 , } impl From < INT_EVENT1_ICLR_DIO4_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_DIO4_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_DIO4` writer - DIO4 event"]
pub type INT_EVENT1_ICLR_DIO4_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_DIO4_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_DIO4_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_dio4_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_DIO4_AW :: INT_EVENT1_ICLR_DIO4_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_dio4_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_DIO4_AW :: INT_EVENT1_ICLR_DIO4_CLR) } } # [doc = "DIO5 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_DIO5_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_DIO5_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_DIO5_CLR = 1 , } impl From < INT_EVENT1_ICLR_DIO5_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_DIO5_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_DIO5` writer - DIO5 event"]
pub type INT_EVENT1_ICLR_DIO5_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_DIO5_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_DIO5_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_dio5_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_DIO5_AW :: INT_EVENT1_ICLR_DIO5_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_dio5_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_DIO5_AW :: INT_EVENT1_ICLR_DIO5_CLR) } } # [doc = "DIO6 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_DIO6_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_DIO6_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_DIO6_CLR = 1 , } impl From < INT_EVENT1_ICLR_DIO6_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_DIO6_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_DIO6` writer - DIO6 event"]
pub type INT_EVENT1_ICLR_DIO6_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_DIO6_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_DIO6_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_dio6_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_DIO6_AW :: INT_EVENT1_ICLR_DIO6_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_dio6_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_DIO6_AW :: INT_EVENT1_ICLR_DIO6_CLR) } } # [doc = "DIO7 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_DIO7_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_DIO7_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_DIO7_CLR = 1 , } impl From < INT_EVENT1_ICLR_DIO7_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_DIO7_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_DIO7` writer - DIO7 event"]
pub type INT_EVENT1_ICLR_DIO7_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_DIO7_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_DIO7_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_dio7_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_DIO7_AW :: INT_EVENT1_ICLR_DIO7_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_dio7_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_DIO7_AW :: INT_EVENT1_ICLR_DIO7_CLR) } } # [doc = "DIO8 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_DIO8_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_DIO8_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_DIO8_CLR = 1 , } impl From < INT_EVENT1_ICLR_DIO8_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_DIO8_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_DIO8` writer - DIO8 event"]
pub type INT_EVENT1_ICLR_DIO8_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_DIO8_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_DIO8_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_dio8_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_DIO8_AW :: INT_EVENT1_ICLR_DIO8_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_dio8_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_DIO8_AW :: INT_EVENT1_ICLR_DIO8_CLR) } } # [doc = "DIO9 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_DIO9_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_DIO9_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_DIO9_CLR = 1 , } impl From < INT_EVENT1_ICLR_DIO9_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_DIO9_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_DIO9` writer - DIO9 event"]
pub type INT_EVENT1_ICLR_DIO9_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_DIO9_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_DIO9_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_dio9_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_DIO9_AW :: INT_EVENT1_ICLR_DIO9_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_dio9_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_DIO9_AW :: INT_EVENT1_ICLR_DIO9_CLR) } } # [doc = "DIO10 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_DIO10_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_DIO10_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_DIO10_CLR = 1 , } impl From < INT_EVENT1_ICLR_DIO10_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_DIO10_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_DIO10` writer - DIO10 event"]
pub type INT_EVENT1_ICLR_DIO10_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_DIO10_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_DIO10_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_dio10_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_DIO10_AW :: INT_EVENT1_ICLR_DIO10_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_dio10_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_DIO10_AW :: INT_EVENT1_ICLR_DIO10_CLR) } } # [doc = "DIO11 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_DIO11_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_DIO11_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_DIO11_CLR = 1 , } impl From < INT_EVENT1_ICLR_DIO11_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_DIO11_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_DIO11` writer - DIO11 event"]
pub type INT_EVENT1_ICLR_DIO11_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_DIO11_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_DIO11_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_dio11_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_DIO11_AW :: INT_EVENT1_ICLR_DIO11_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_dio11_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_DIO11_AW :: INT_EVENT1_ICLR_DIO11_CLR) } } # [doc = "DIO12 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_DIO12_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_DIO12_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_DIO12_CLR = 1 , } impl From < INT_EVENT1_ICLR_DIO12_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_DIO12_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_DIO12` writer - DIO12 event"]
pub type INT_EVENT1_ICLR_DIO12_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_DIO12_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_DIO12_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_dio12_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_DIO12_AW :: INT_EVENT1_ICLR_DIO12_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_dio12_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_DIO12_AW :: INT_EVENT1_ICLR_DIO12_CLR) } } # [doc = "DIO13 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_DIO13_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_DIO13_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_DIO13_CLR = 1 , } impl From < INT_EVENT1_ICLR_DIO13_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_DIO13_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_DIO13` writer - DIO13 event"]
pub type INT_EVENT1_ICLR_DIO13_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_DIO13_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_DIO13_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_dio13_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_DIO13_AW :: INT_EVENT1_ICLR_DIO13_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_dio13_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_DIO13_AW :: INT_EVENT1_ICLR_DIO13_CLR) } } # [doc = "DIO14 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_DIO14_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_DIO14_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_DIO14_CLR = 1 , } impl From < INT_EVENT1_ICLR_DIO14_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_DIO14_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_DIO14` writer - DIO14 event"]
pub type INT_EVENT1_ICLR_DIO14_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_DIO14_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_DIO14_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_dio14_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_DIO14_AW :: INT_EVENT1_ICLR_DIO14_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_dio14_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_DIO14_AW :: INT_EVENT1_ICLR_DIO14_CLR) } } # [doc = "DIO15 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_DIO15_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_DIO15_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_DIO15_CLR = 1 , } impl From < INT_EVENT1_ICLR_DIO15_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_DIO15_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_DIO15` writer - DIO15 event"]
pub type INT_EVENT1_ICLR_DIO15_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_DIO15_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_DIO15_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_dio15_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_DIO15_AW :: INT_EVENT1_ICLR_DIO15_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_dio15_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_DIO15_AW :: INT_EVENT1_ICLR_DIO15_CLR) } } impl W { # [doc = "Bit 0 - DIO0 event"]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_dio0 (& mut self) -> INT_EVENT1_ICLR_DIO0_W < INT_EVENT1_ICLR_SPEC , 0 > { INT_EVENT1_ICLR_DIO0_W :: new (self) } # [doc = "Bit 1 - DIO1 event"]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_dio1 (& mut self) -> INT_EVENT1_ICLR_DIO1_W < INT_EVENT1_ICLR_SPEC , 1 > { INT_EVENT1_ICLR_DIO1_W :: new (self) } # [doc = "Bit 2 - DIO2 event"]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_dio2 (& mut self) -> INT_EVENT1_ICLR_DIO2_W < INT_EVENT1_ICLR_SPEC , 2 > { INT_EVENT1_ICLR_DIO2_W :: new (self) } # [doc = "Bit 3 - DIO3 event"]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_dio3 (& mut self) -> INT_EVENT1_ICLR_DIO3_W < INT_EVENT1_ICLR_SPEC , 3 > { INT_EVENT1_ICLR_DIO3_W :: new (self) } # [doc = "Bit 4 - DIO4 event"]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_dio4 (& mut self) -> INT_EVENT1_ICLR_DIO4_W < INT_EVENT1_ICLR_SPEC , 4 > { INT_EVENT1_ICLR_DIO4_W :: new (self) } # [doc = "Bit 5 - DIO5 event"]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_dio5 (& mut self) -> INT_EVENT1_ICLR_DIO5_W < INT_EVENT1_ICLR_SPEC , 5 > { INT_EVENT1_ICLR_DIO5_W :: new (self) } # [doc = "Bit 6 - DIO6 event"]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_dio6 (& mut self) -> INT_EVENT1_ICLR_DIO6_W < INT_EVENT1_ICLR_SPEC , 6 > { INT_EVENT1_ICLR_DIO6_W :: new (self) } # [doc = "Bit 7 - DIO7 event"]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_dio7 (& mut self) -> INT_EVENT1_ICLR_DIO7_W < INT_EVENT1_ICLR_SPEC , 7 > { INT_EVENT1_ICLR_DIO7_W :: new (self) } # [doc = "Bit 8 - DIO8 event"]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_dio8 (& mut self) -> INT_EVENT1_ICLR_DIO8_W < INT_EVENT1_ICLR_SPEC , 8 > { INT_EVENT1_ICLR_DIO8_W :: new (self) } # [doc = "Bit 9 - DIO9 event"]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_dio9 (& mut self) -> INT_EVENT1_ICLR_DIO9_W < INT_EVENT1_ICLR_SPEC , 9 > { INT_EVENT1_ICLR_DIO9_W :: new (self) } # [doc = "Bit 10 - DIO10 event"]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_dio10 (& mut self) -> INT_EVENT1_ICLR_DIO10_W < INT_EVENT1_ICLR_SPEC , 10 > { INT_EVENT1_ICLR_DIO10_W :: new (self) } # [doc = "Bit 11 - DIO11 event"]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_dio11 (& mut self) -> INT_EVENT1_ICLR_DIO11_W < INT_EVENT1_ICLR_SPEC , 11 > { INT_EVENT1_ICLR_DIO11_W :: new (self) } # [doc = "Bit 12 - DIO12 event"]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_dio12 (& mut self) -> INT_EVENT1_ICLR_DIO12_W < INT_EVENT1_ICLR_SPEC , 12 > { INT_EVENT1_ICLR_DIO12_W :: new (self) } # [doc = "Bit 13 - DIO13 event"]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_dio13 (& mut self) -> INT_EVENT1_ICLR_DIO13_W < INT_EVENT1_ICLR_SPEC , 13 > { INT_EVENT1_ICLR_DIO13_W :: new (self) } # [doc = "Bit 14 - DIO14 event"]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_dio14 (& mut self) -> INT_EVENT1_ICLR_DIO14_W < INT_EVENT1_ICLR_SPEC , 14 > { INT_EVENT1_ICLR_DIO14_W :: new (self) } # [doc = "Bit 15 - DIO15 event"]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_dio15 (& mut self) -> INT_EVENT1_ICLR_DIO15_W < INT_EVENT1_ICLR_SPEC , 15 > { INT_EVENT1_ICLR_DIO15_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_ICLR_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event1_iclr::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT1_ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT1_ICLR to value 0"]
impl crate :: Resettable for INT_EVENT1_ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_IIDX (r) register accessor: Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_iidx`]
module"]
pub type INT_EVENT2_IIDX = crate :: Reg < int_event2_iidx :: INT_EVENT2_IIDX_SPEC > ; # [doc = "Interrupt index"]
pub mod int_event2_iidx { # [doc = "Register `INT_EVENT2_IIDX` reader"]
pub type R = crate :: R < INT_EVENT2_IIDX_SPEC > ; # [doc = "Field `INT_EVENT2_IIDX_STAT` reader - Interrupt index status"]
pub type INT_EVENT2_IIDX_STAT_R = crate :: FieldReader < INT_EVENT2_IIDX_STAT_A > ; # [doc = "Interrupt index status\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum INT_EVENT2_IIDX_STAT_A { # [doc = "0: NO_INTR"]
INT_EVENT2_IIDX_STAT_NO_INTR = 0 , # [doc = "1: DIO16"]
INT_EVENT2_IIDX_STAT_DIO16 = 1 , # [doc = "2: DIO17"]
INT_EVENT2_IIDX_STAT_DIO17 = 2 , # [doc = "3: DIO18"]
INT_EVENT2_IIDX_STAT_DIO18 = 3 , # [doc = "4: DIO19"]
INT_EVENT2_IIDX_STAT_DIO19 = 4 , # [doc = "5: DIO20"]
INT_EVENT2_IIDX_STAT_DIO20 = 5 , # [doc = "6: DIO21"]
INT_EVENT2_IIDX_STAT_DIO21 = 6 , # [doc = "7: DIO22"]
INT_EVENT2_IIDX_STAT_DIO22 = 7 , # [doc = "8: DIO23"]
INT_EVENT2_IIDX_STAT_DIO23 = 8 , # [doc = "9: DIO24"]
INT_EVENT2_IIDX_STAT_DIO24 = 9 , # [doc = "10: DIO25"]
INT_EVENT2_IIDX_STAT_DIO25 = 10 , # [doc = "11: DIO26"]
INT_EVENT2_IIDX_STAT_DIO26 = 11 , # [doc = "12: DIO27"]
INT_EVENT2_IIDX_STAT_DIO27 = 12 , # [doc = "13: DIO28"]
INT_EVENT2_IIDX_STAT_DIO28 = 13 , # [doc = "14: DIO29"]
INT_EVENT2_IIDX_STAT_DIO29 = 14 , # [doc = "15: DIO30"]
INT_EVENT2_IIDX_STAT_DIO30 = 15 , # [doc = "16: DIO31"]
INT_EVENT2_IIDX_STAT_DIO31 = 16 , } impl From < INT_EVENT2_IIDX_STAT_A > for u8 { # [inline (always)]
fn from (variant : INT_EVENT2_IIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for INT_EVENT2_IIDX_STAT_A { type Ux = u8 ; } impl INT_EVENT2_IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < INT_EVENT2_IIDX_STAT_A > { match self . bits { 0 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_NO_INTR) , 1 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_DIO16) , 2 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_DIO17) , 3 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_DIO18) , 4 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_DIO19) , 5 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_DIO20) , 6 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_DIO21) , 7 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_DIO22) , 8 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_DIO23) , 9 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_DIO24) , 10 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_DIO25) , 11 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_DIO26) , 12 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_DIO27) , 13 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_DIO28) , 14 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_DIO29) , 15 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_DIO30) , 16 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_DIO31) , _ => None , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_no_intr (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_NO_INTR } # [doc = "DIO16"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_dio16 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_DIO16 } # [doc = "DIO17"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_dio17 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_DIO17 } # [doc = "DIO18"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_dio18 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_DIO18 } # [doc = "DIO19"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_dio19 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_DIO19 } # [doc = "DIO20"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_dio20 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_DIO20 } # [doc = "DIO21"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_dio21 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_DIO21 } # [doc = "DIO22"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_dio22 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_DIO22 } # [doc = "DIO23"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_dio23 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_DIO23 } # [doc = "DIO24"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_dio24 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_DIO24 } # [doc = "DIO25"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_dio25 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_DIO25 } # [doc = "DIO26"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_dio26 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_DIO26 } # [doc = "DIO27"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_dio27 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_DIO27 } # [doc = "DIO28"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_dio28 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_DIO28 } # [doc = "DIO29"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_dio29 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_DIO29 } # [doc = "DIO30"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_dio30 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_DIO30 } # [doc = "DIO31"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_dio31 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_DIO31 } } impl R { # [doc = "Bits 0:7 - Interrupt index status"]
# [inline (always)]
pub fn int_event2_iidx_stat (& self) -> INT_EVENT2_IIDX_STAT_R { INT_EVENT2_IIDX_STAT_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_IIDX_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event2_iidx::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT2_IIDX_SPEC { } # [doc = "`reset()` method sets INT_EVENT2_IIDX to value 0"]
impl crate :: Resettable for INT_EVENT2_IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_IMASK (rw) register accessor: Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_imask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_imask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_imask`]
module"]
pub type INT_EVENT2_IMASK = crate :: Reg < int_event2_imask :: INT_EVENT2_IMASK_SPEC > ; # [doc = "Interrupt mask"]
pub mod int_event2_imask { # [doc = "Register `INT_EVENT2_IMASK` reader"]
pub type R = crate :: R < INT_EVENT2_IMASK_SPEC > ; # [doc = "Register `INT_EVENT2_IMASK` writer"]
pub type W = crate :: W < INT_EVENT2_IMASK_SPEC > ; # [doc = "Field `INT_EVENT2_IMASK_DIO16` reader - DIO16 event mask"]
pub type INT_EVENT2_IMASK_DIO16_R = crate :: BitReader < INT_EVENT2_IMASK_DIO16_A > ; # [doc = "DIO16 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_IMASK_DIO16_A { # [doc = "0: CLR"]
INT_EVENT2_IMASK_DIO16_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_IMASK_DIO16_SET = 1 , } impl From < INT_EVENT2_IMASK_DIO16_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_IMASK_DIO16_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_IMASK_DIO16_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_IMASK_DIO16_A { match self . bits { false => INT_EVENT2_IMASK_DIO16_A :: INT_EVENT2_IMASK_DIO16_CLR , true => INT_EVENT2_IMASK_DIO16_A :: INT_EVENT2_IMASK_DIO16_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_imask_dio16_clr (& self) -> bool { * self == INT_EVENT2_IMASK_DIO16_A :: INT_EVENT2_IMASK_DIO16_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_imask_dio16_set (& self) -> bool { * self == INT_EVENT2_IMASK_DIO16_A :: INT_EVENT2_IMASK_DIO16_SET } } # [doc = "Field `INT_EVENT2_IMASK_DIO16` writer - DIO16 event mask"]
pub type INT_EVENT2_IMASK_DIO16_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_IMASK_DIO16_A > ; impl < 'a , REG , const O : u8 > INT_EVENT2_IMASK_DIO16_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_imask_dio16_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_DIO16_A :: INT_EVENT2_IMASK_DIO16_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_imask_dio16_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_DIO16_A :: INT_EVENT2_IMASK_DIO16_SET) } } # [doc = "Field `INT_EVENT2_IMASK_DIO17` reader - DIO17 event mask"]
pub type INT_EVENT2_IMASK_DIO17_R = crate :: BitReader < INT_EVENT2_IMASK_DIO17_A > ; # [doc = "DIO17 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_IMASK_DIO17_A { # [doc = "0: CLR"]
INT_EVENT2_IMASK_DIO17_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_IMASK_DIO17_SET = 1 , } impl From < INT_EVENT2_IMASK_DIO17_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_IMASK_DIO17_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_IMASK_DIO17_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_IMASK_DIO17_A { match self . bits { false => INT_EVENT2_IMASK_DIO17_A :: INT_EVENT2_IMASK_DIO17_CLR , true => INT_EVENT2_IMASK_DIO17_A :: INT_EVENT2_IMASK_DIO17_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_imask_dio17_clr (& self) -> bool { * self == INT_EVENT2_IMASK_DIO17_A :: INT_EVENT2_IMASK_DIO17_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_imask_dio17_set (& self) -> bool { * self == INT_EVENT2_IMASK_DIO17_A :: INT_EVENT2_IMASK_DIO17_SET } } # [doc = "Field `INT_EVENT2_IMASK_DIO17` writer - DIO17 event mask"]
pub type INT_EVENT2_IMASK_DIO17_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_IMASK_DIO17_A > ; impl < 'a , REG , const O : u8 > INT_EVENT2_IMASK_DIO17_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_imask_dio17_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_DIO17_A :: INT_EVENT2_IMASK_DIO17_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_imask_dio17_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_DIO17_A :: INT_EVENT2_IMASK_DIO17_SET) } } # [doc = "Field `INT_EVENT2_IMASK_DIO18` reader - DIO18 event mask"]
pub type INT_EVENT2_IMASK_DIO18_R = crate :: BitReader < INT_EVENT2_IMASK_DIO18_A > ; # [doc = "DIO18 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_IMASK_DIO18_A { # [doc = "0: CLR"]
INT_EVENT2_IMASK_DIO18_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_IMASK_DIO18_SET = 1 , } impl From < INT_EVENT2_IMASK_DIO18_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_IMASK_DIO18_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_IMASK_DIO18_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_IMASK_DIO18_A { match self . bits { false => INT_EVENT2_IMASK_DIO18_A :: INT_EVENT2_IMASK_DIO18_CLR , true => INT_EVENT2_IMASK_DIO18_A :: INT_EVENT2_IMASK_DIO18_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_imask_dio18_clr (& self) -> bool { * self == INT_EVENT2_IMASK_DIO18_A :: INT_EVENT2_IMASK_DIO18_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_imask_dio18_set (& self) -> bool { * self == INT_EVENT2_IMASK_DIO18_A :: INT_EVENT2_IMASK_DIO18_SET } } # [doc = "Field `INT_EVENT2_IMASK_DIO18` writer - DIO18 event mask"]
pub type INT_EVENT2_IMASK_DIO18_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_IMASK_DIO18_A > ; impl < 'a , REG , const O : u8 > INT_EVENT2_IMASK_DIO18_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_imask_dio18_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_DIO18_A :: INT_EVENT2_IMASK_DIO18_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_imask_dio18_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_DIO18_A :: INT_EVENT2_IMASK_DIO18_SET) } } # [doc = "Field `INT_EVENT2_IMASK_DIO19` reader - DIO19 event mask"]
pub type INT_EVENT2_IMASK_DIO19_R = crate :: BitReader < INT_EVENT2_IMASK_DIO19_A > ; # [doc = "DIO19 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_IMASK_DIO19_A { # [doc = "0: CLR"]
INT_EVENT2_IMASK_DIO19_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_IMASK_DIO19_SET = 1 , } impl From < INT_EVENT2_IMASK_DIO19_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_IMASK_DIO19_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_IMASK_DIO19_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_IMASK_DIO19_A { match self . bits { false => INT_EVENT2_IMASK_DIO19_A :: INT_EVENT2_IMASK_DIO19_CLR , true => INT_EVENT2_IMASK_DIO19_A :: INT_EVENT2_IMASK_DIO19_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_imask_dio19_clr (& self) -> bool { * self == INT_EVENT2_IMASK_DIO19_A :: INT_EVENT2_IMASK_DIO19_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_imask_dio19_set (& self) -> bool { * self == INT_EVENT2_IMASK_DIO19_A :: INT_EVENT2_IMASK_DIO19_SET } } # [doc = "Field `INT_EVENT2_IMASK_DIO19` writer - DIO19 event mask"]
pub type INT_EVENT2_IMASK_DIO19_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_IMASK_DIO19_A > ; impl < 'a , REG , const O : u8 > INT_EVENT2_IMASK_DIO19_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_imask_dio19_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_DIO19_A :: INT_EVENT2_IMASK_DIO19_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_imask_dio19_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_DIO19_A :: INT_EVENT2_IMASK_DIO19_SET) } } # [doc = "Field `INT_EVENT2_IMASK_DIO20` reader - DIO20 event mask"]
pub type INT_EVENT2_IMASK_DIO20_R = crate :: BitReader < INT_EVENT2_IMASK_DIO20_A > ; # [doc = "DIO20 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_IMASK_DIO20_A { # [doc = "0: CLR"]
INT_EVENT2_IMASK_DIO20_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_IMASK_DIO20_SET = 1 , } impl From < INT_EVENT2_IMASK_DIO20_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_IMASK_DIO20_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_IMASK_DIO20_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_IMASK_DIO20_A { match self . bits { false => INT_EVENT2_IMASK_DIO20_A :: INT_EVENT2_IMASK_DIO20_CLR , true => INT_EVENT2_IMASK_DIO20_A :: INT_EVENT2_IMASK_DIO20_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_imask_dio20_clr (& self) -> bool { * self == INT_EVENT2_IMASK_DIO20_A :: INT_EVENT2_IMASK_DIO20_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_imask_dio20_set (& self) -> bool { * self == INT_EVENT2_IMASK_DIO20_A :: INT_EVENT2_IMASK_DIO20_SET } } # [doc = "Field `INT_EVENT2_IMASK_DIO20` writer - DIO20 event mask"]
pub type INT_EVENT2_IMASK_DIO20_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_IMASK_DIO20_A > ; impl < 'a , REG , const O : u8 > INT_EVENT2_IMASK_DIO20_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_imask_dio20_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_DIO20_A :: INT_EVENT2_IMASK_DIO20_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_imask_dio20_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_DIO20_A :: INT_EVENT2_IMASK_DIO20_SET) } } # [doc = "Field `INT_EVENT2_IMASK_DIO21` reader - DIO21 event mask"]
pub type INT_EVENT2_IMASK_DIO21_R = crate :: BitReader < INT_EVENT2_IMASK_DIO21_A > ; # [doc = "DIO21 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_IMASK_DIO21_A { # [doc = "0: CLR"]
INT_EVENT2_IMASK_DIO21_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_IMASK_DIO21_SET = 1 , } impl From < INT_EVENT2_IMASK_DIO21_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_IMASK_DIO21_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_IMASK_DIO21_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_IMASK_DIO21_A { match self . bits { false => INT_EVENT2_IMASK_DIO21_A :: INT_EVENT2_IMASK_DIO21_CLR , true => INT_EVENT2_IMASK_DIO21_A :: INT_EVENT2_IMASK_DIO21_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_imask_dio21_clr (& self) -> bool { * self == INT_EVENT2_IMASK_DIO21_A :: INT_EVENT2_IMASK_DIO21_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_imask_dio21_set (& self) -> bool { * self == INT_EVENT2_IMASK_DIO21_A :: INT_EVENT2_IMASK_DIO21_SET } } # [doc = "Field `INT_EVENT2_IMASK_DIO21` writer - DIO21 event mask"]
pub type INT_EVENT2_IMASK_DIO21_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_IMASK_DIO21_A > ; impl < 'a , REG , const O : u8 > INT_EVENT2_IMASK_DIO21_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_imask_dio21_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_DIO21_A :: INT_EVENT2_IMASK_DIO21_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_imask_dio21_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_DIO21_A :: INT_EVENT2_IMASK_DIO21_SET) } } # [doc = "Field `INT_EVENT2_IMASK_DIO22` reader - DIO22 event mask"]
pub type INT_EVENT2_IMASK_DIO22_R = crate :: BitReader < INT_EVENT2_IMASK_DIO22_A > ; # [doc = "DIO22 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_IMASK_DIO22_A { # [doc = "0: CLR"]
INT_EVENT2_IMASK_DIO22_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_IMASK_DIO22_SET = 1 , } impl From < INT_EVENT2_IMASK_DIO22_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_IMASK_DIO22_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_IMASK_DIO22_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_IMASK_DIO22_A { match self . bits { false => INT_EVENT2_IMASK_DIO22_A :: INT_EVENT2_IMASK_DIO22_CLR , true => INT_EVENT2_IMASK_DIO22_A :: INT_EVENT2_IMASK_DIO22_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_imask_dio22_clr (& self) -> bool { * self == INT_EVENT2_IMASK_DIO22_A :: INT_EVENT2_IMASK_DIO22_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_imask_dio22_set (& self) -> bool { * self == INT_EVENT2_IMASK_DIO22_A :: INT_EVENT2_IMASK_DIO22_SET } } # [doc = "Field `INT_EVENT2_IMASK_DIO22` writer - DIO22 event mask"]
pub type INT_EVENT2_IMASK_DIO22_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_IMASK_DIO22_A > ; impl < 'a , REG , const O : u8 > INT_EVENT2_IMASK_DIO22_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_imask_dio22_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_DIO22_A :: INT_EVENT2_IMASK_DIO22_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_imask_dio22_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_DIO22_A :: INT_EVENT2_IMASK_DIO22_SET) } } # [doc = "Field `INT_EVENT2_IMASK_DIO23` reader - DIO23 event mask"]
pub type INT_EVENT2_IMASK_DIO23_R = crate :: BitReader < INT_EVENT2_IMASK_DIO23_A > ; # [doc = "DIO23 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_IMASK_DIO23_A { # [doc = "0: CLR"]
INT_EVENT2_IMASK_DIO23_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_IMASK_DIO23_SET = 1 , } impl From < INT_EVENT2_IMASK_DIO23_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_IMASK_DIO23_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_IMASK_DIO23_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_IMASK_DIO23_A { match self . bits { false => INT_EVENT2_IMASK_DIO23_A :: INT_EVENT2_IMASK_DIO23_CLR , true => INT_EVENT2_IMASK_DIO23_A :: INT_EVENT2_IMASK_DIO23_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_imask_dio23_clr (& self) -> bool { * self == INT_EVENT2_IMASK_DIO23_A :: INT_EVENT2_IMASK_DIO23_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_imask_dio23_set (& self) -> bool { * self == INT_EVENT2_IMASK_DIO23_A :: INT_EVENT2_IMASK_DIO23_SET } } # [doc = "Field `INT_EVENT2_IMASK_DIO23` writer - DIO23 event mask"]
pub type INT_EVENT2_IMASK_DIO23_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_IMASK_DIO23_A > ; impl < 'a , REG , const O : u8 > INT_EVENT2_IMASK_DIO23_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_imask_dio23_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_DIO23_A :: INT_EVENT2_IMASK_DIO23_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_imask_dio23_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_DIO23_A :: INT_EVENT2_IMASK_DIO23_SET) } } # [doc = "Field `INT_EVENT2_IMASK_DIO24` reader - DIO24 event mask"]
pub type INT_EVENT2_IMASK_DIO24_R = crate :: BitReader < INT_EVENT2_IMASK_DIO24_A > ; # [doc = "DIO24 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_IMASK_DIO24_A { # [doc = "0: CLR"]
INT_EVENT2_IMASK_DIO24_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_IMASK_DIO24_SET = 1 , } impl From < INT_EVENT2_IMASK_DIO24_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_IMASK_DIO24_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_IMASK_DIO24_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_IMASK_DIO24_A { match self . bits { false => INT_EVENT2_IMASK_DIO24_A :: INT_EVENT2_IMASK_DIO24_CLR , true => INT_EVENT2_IMASK_DIO24_A :: INT_EVENT2_IMASK_DIO24_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_imask_dio24_clr (& self) -> bool { * self == INT_EVENT2_IMASK_DIO24_A :: INT_EVENT2_IMASK_DIO24_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_imask_dio24_set (& self) -> bool { * self == INT_EVENT2_IMASK_DIO24_A :: INT_EVENT2_IMASK_DIO24_SET } } # [doc = "Field `INT_EVENT2_IMASK_DIO24` writer - DIO24 event mask"]
pub type INT_EVENT2_IMASK_DIO24_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_IMASK_DIO24_A > ; impl < 'a , REG , const O : u8 > INT_EVENT2_IMASK_DIO24_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_imask_dio24_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_DIO24_A :: INT_EVENT2_IMASK_DIO24_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_imask_dio24_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_DIO24_A :: INT_EVENT2_IMASK_DIO24_SET) } } # [doc = "Field `INT_EVENT2_IMASK_DIO25` reader - DIO25 event mask"]
pub type INT_EVENT2_IMASK_DIO25_R = crate :: BitReader < INT_EVENT2_IMASK_DIO25_A > ; # [doc = "DIO25 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_IMASK_DIO25_A { # [doc = "0: CLR"]
INT_EVENT2_IMASK_DIO25_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_IMASK_DIO25_SET = 1 , } impl From < INT_EVENT2_IMASK_DIO25_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_IMASK_DIO25_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_IMASK_DIO25_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_IMASK_DIO25_A { match self . bits { false => INT_EVENT2_IMASK_DIO25_A :: INT_EVENT2_IMASK_DIO25_CLR , true => INT_EVENT2_IMASK_DIO25_A :: INT_EVENT2_IMASK_DIO25_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_imask_dio25_clr (& self) -> bool { * self == INT_EVENT2_IMASK_DIO25_A :: INT_EVENT2_IMASK_DIO25_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_imask_dio25_set (& self) -> bool { * self == INT_EVENT2_IMASK_DIO25_A :: INT_EVENT2_IMASK_DIO25_SET } } # [doc = "Field `INT_EVENT2_IMASK_DIO25` writer - DIO25 event mask"]
pub type INT_EVENT2_IMASK_DIO25_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_IMASK_DIO25_A > ; impl < 'a , REG , const O : u8 > INT_EVENT2_IMASK_DIO25_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_imask_dio25_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_DIO25_A :: INT_EVENT2_IMASK_DIO25_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_imask_dio25_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_DIO25_A :: INT_EVENT2_IMASK_DIO25_SET) } } # [doc = "Field `INT_EVENT2_IMASK_DIO26` reader - DIO26 event mask"]
pub type INT_EVENT2_IMASK_DIO26_R = crate :: BitReader < INT_EVENT2_IMASK_DIO26_A > ; # [doc = "DIO26 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_IMASK_DIO26_A { # [doc = "0: CLR"]
INT_EVENT2_IMASK_DIO26_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_IMASK_DIO26_SET = 1 , } impl From < INT_EVENT2_IMASK_DIO26_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_IMASK_DIO26_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_IMASK_DIO26_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_IMASK_DIO26_A { match self . bits { false => INT_EVENT2_IMASK_DIO26_A :: INT_EVENT2_IMASK_DIO26_CLR , true => INT_EVENT2_IMASK_DIO26_A :: INT_EVENT2_IMASK_DIO26_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_imask_dio26_clr (& self) -> bool { * self == INT_EVENT2_IMASK_DIO26_A :: INT_EVENT2_IMASK_DIO26_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_imask_dio26_set (& self) -> bool { * self == INT_EVENT2_IMASK_DIO26_A :: INT_EVENT2_IMASK_DIO26_SET } } # [doc = "Field `INT_EVENT2_IMASK_DIO26` writer - DIO26 event mask"]
pub type INT_EVENT2_IMASK_DIO26_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_IMASK_DIO26_A > ; impl < 'a , REG , const O : u8 > INT_EVENT2_IMASK_DIO26_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_imask_dio26_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_DIO26_A :: INT_EVENT2_IMASK_DIO26_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_imask_dio26_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_DIO26_A :: INT_EVENT2_IMASK_DIO26_SET) } } # [doc = "Field `INT_EVENT2_IMASK_DIO27` reader - DIO27 event mask"]
pub type INT_EVENT2_IMASK_DIO27_R = crate :: BitReader < INT_EVENT2_IMASK_DIO27_A > ; # [doc = "DIO27 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_IMASK_DIO27_A { # [doc = "0: CLR"]
INT_EVENT2_IMASK_DIO27_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_IMASK_DIO27_SET = 1 , } impl From < INT_EVENT2_IMASK_DIO27_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_IMASK_DIO27_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_IMASK_DIO27_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_IMASK_DIO27_A { match self . bits { false => INT_EVENT2_IMASK_DIO27_A :: INT_EVENT2_IMASK_DIO27_CLR , true => INT_EVENT2_IMASK_DIO27_A :: INT_EVENT2_IMASK_DIO27_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_imask_dio27_clr (& self) -> bool { * self == INT_EVENT2_IMASK_DIO27_A :: INT_EVENT2_IMASK_DIO27_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_imask_dio27_set (& self) -> bool { * self == INT_EVENT2_IMASK_DIO27_A :: INT_EVENT2_IMASK_DIO27_SET } } # [doc = "Field `INT_EVENT2_IMASK_DIO27` writer - DIO27 event mask"]
pub type INT_EVENT2_IMASK_DIO27_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_IMASK_DIO27_A > ; impl < 'a , REG , const O : u8 > INT_EVENT2_IMASK_DIO27_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_imask_dio27_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_DIO27_A :: INT_EVENT2_IMASK_DIO27_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_imask_dio27_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_DIO27_A :: INT_EVENT2_IMASK_DIO27_SET) } } # [doc = "Field `INT_EVENT2_IMASK_DIO28` reader - DIO28 event mask"]
pub type INT_EVENT2_IMASK_DIO28_R = crate :: BitReader < INT_EVENT2_IMASK_DIO28_A > ; # [doc = "DIO28 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_IMASK_DIO28_A { # [doc = "0: CLR"]
INT_EVENT2_IMASK_DIO28_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_IMASK_DIO28_SET = 1 , } impl From < INT_EVENT2_IMASK_DIO28_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_IMASK_DIO28_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_IMASK_DIO28_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_IMASK_DIO28_A { match self . bits { false => INT_EVENT2_IMASK_DIO28_A :: INT_EVENT2_IMASK_DIO28_CLR , true => INT_EVENT2_IMASK_DIO28_A :: INT_EVENT2_IMASK_DIO28_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_imask_dio28_clr (& self) -> bool { * self == INT_EVENT2_IMASK_DIO28_A :: INT_EVENT2_IMASK_DIO28_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_imask_dio28_set (& self) -> bool { * self == INT_EVENT2_IMASK_DIO28_A :: INT_EVENT2_IMASK_DIO28_SET } } # [doc = "Field `INT_EVENT2_IMASK_DIO28` writer - DIO28 event mask"]
pub type INT_EVENT2_IMASK_DIO28_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_IMASK_DIO28_A > ; impl < 'a , REG , const O : u8 > INT_EVENT2_IMASK_DIO28_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_imask_dio28_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_DIO28_A :: INT_EVENT2_IMASK_DIO28_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_imask_dio28_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_DIO28_A :: INT_EVENT2_IMASK_DIO28_SET) } } # [doc = "Field `INT_EVENT2_IMASK_DIO29` reader - DIO29 event mask"]
pub type INT_EVENT2_IMASK_DIO29_R = crate :: BitReader < INT_EVENT2_IMASK_DIO29_A > ; # [doc = "DIO29 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_IMASK_DIO29_A { # [doc = "0: CLR"]
INT_EVENT2_IMASK_DIO29_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_IMASK_DIO29_SET = 1 , } impl From < INT_EVENT2_IMASK_DIO29_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_IMASK_DIO29_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_IMASK_DIO29_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_IMASK_DIO29_A { match self . bits { false => INT_EVENT2_IMASK_DIO29_A :: INT_EVENT2_IMASK_DIO29_CLR , true => INT_EVENT2_IMASK_DIO29_A :: INT_EVENT2_IMASK_DIO29_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_imask_dio29_clr (& self) -> bool { * self == INT_EVENT2_IMASK_DIO29_A :: INT_EVENT2_IMASK_DIO29_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_imask_dio29_set (& self) -> bool { * self == INT_EVENT2_IMASK_DIO29_A :: INT_EVENT2_IMASK_DIO29_SET } } # [doc = "Field `INT_EVENT2_IMASK_DIO29` writer - DIO29 event mask"]
pub type INT_EVENT2_IMASK_DIO29_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_IMASK_DIO29_A > ; impl < 'a , REG , const O : u8 > INT_EVENT2_IMASK_DIO29_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_imask_dio29_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_DIO29_A :: INT_EVENT2_IMASK_DIO29_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_imask_dio29_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_DIO29_A :: INT_EVENT2_IMASK_DIO29_SET) } } # [doc = "Field `INT_EVENT2_IMASK_DIO30` reader - DIO30 event mask"]
pub type INT_EVENT2_IMASK_DIO30_R = crate :: BitReader < INT_EVENT2_IMASK_DIO30_A > ; # [doc = "DIO30 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_IMASK_DIO30_A { # [doc = "0: CLR"]
INT_EVENT2_IMASK_DIO30_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_IMASK_DIO30_SET = 1 , } impl From < INT_EVENT2_IMASK_DIO30_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_IMASK_DIO30_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_IMASK_DIO30_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_IMASK_DIO30_A { match self . bits { false => INT_EVENT2_IMASK_DIO30_A :: INT_EVENT2_IMASK_DIO30_CLR , true => INT_EVENT2_IMASK_DIO30_A :: INT_EVENT2_IMASK_DIO30_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_imask_dio30_clr (& self) -> bool { * self == INT_EVENT2_IMASK_DIO30_A :: INT_EVENT2_IMASK_DIO30_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_imask_dio30_set (& self) -> bool { * self == INT_EVENT2_IMASK_DIO30_A :: INT_EVENT2_IMASK_DIO30_SET } } # [doc = "Field `INT_EVENT2_IMASK_DIO30` writer - DIO30 event mask"]
pub type INT_EVENT2_IMASK_DIO30_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_IMASK_DIO30_A > ; impl < 'a , REG , const O : u8 > INT_EVENT2_IMASK_DIO30_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_imask_dio30_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_DIO30_A :: INT_EVENT2_IMASK_DIO30_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_imask_dio30_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_DIO30_A :: INT_EVENT2_IMASK_DIO30_SET) } } # [doc = "Field `INT_EVENT2_IMASK_DIO31` reader - DIO31 event mask"]
pub type INT_EVENT2_IMASK_DIO31_R = crate :: BitReader < INT_EVENT2_IMASK_DIO31_A > ; # [doc = "DIO31 event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_IMASK_DIO31_A { # [doc = "0: CLR"]
INT_EVENT2_IMASK_DIO31_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_IMASK_DIO31_SET = 1 , } impl From < INT_EVENT2_IMASK_DIO31_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_IMASK_DIO31_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_IMASK_DIO31_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_IMASK_DIO31_A { match self . bits { false => INT_EVENT2_IMASK_DIO31_A :: INT_EVENT2_IMASK_DIO31_CLR , true => INT_EVENT2_IMASK_DIO31_A :: INT_EVENT2_IMASK_DIO31_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_imask_dio31_clr (& self) -> bool { * self == INT_EVENT2_IMASK_DIO31_A :: INT_EVENT2_IMASK_DIO31_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_imask_dio31_set (& self) -> bool { * self == INT_EVENT2_IMASK_DIO31_A :: INT_EVENT2_IMASK_DIO31_SET } } # [doc = "Field `INT_EVENT2_IMASK_DIO31` writer - DIO31 event mask"]
pub type INT_EVENT2_IMASK_DIO31_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_IMASK_DIO31_A > ; impl < 'a , REG , const O : u8 > INT_EVENT2_IMASK_DIO31_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_imask_dio31_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_DIO31_A :: INT_EVENT2_IMASK_DIO31_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_imask_dio31_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_DIO31_A :: INT_EVENT2_IMASK_DIO31_SET) } } impl R { # [doc = "Bit 16 - DIO16 event mask"]
# [inline (always)]
pub fn int_event2_imask_dio16 (& self) -> INT_EVENT2_IMASK_DIO16_R { INT_EVENT2_IMASK_DIO16_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 17 - DIO17 event mask"]
# [inline (always)]
pub fn int_event2_imask_dio17 (& self) -> INT_EVENT2_IMASK_DIO17_R { INT_EVENT2_IMASK_DIO17_R :: new (((self . bits >> 17) & 1) != 0) } # [doc = "Bit 18 - DIO18 event mask"]
# [inline (always)]
pub fn int_event2_imask_dio18 (& self) -> INT_EVENT2_IMASK_DIO18_R { INT_EVENT2_IMASK_DIO18_R :: new (((self . bits >> 18) & 1) != 0) } # [doc = "Bit 19 - DIO19 event mask"]
# [inline (always)]
pub fn int_event2_imask_dio19 (& self) -> INT_EVENT2_IMASK_DIO19_R { INT_EVENT2_IMASK_DIO19_R :: new (((self . bits >> 19) & 1) != 0) } # [doc = "Bit 20 - DIO20 event mask"]
# [inline (always)]
pub fn int_event2_imask_dio20 (& self) -> INT_EVENT2_IMASK_DIO20_R { INT_EVENT2_IMASK_DIO20_R :: new (((self . bits >> 20) & 1) != 0) } # [doc = "Bit 21 - DIO21 event mask"]
# [inline (always)]
pub fn int_event2_imask_dio21 (& self) -> INT_EVENT2_IMASK_DIO21_R { INT_EVENT2_IMASK_DIO21_R :: new (((self . bits >> 21) & 1) != 0) } # [doc = "Bit 22 - DIO22 event mask"]
# [inline (always)]
pub fn int_event2_imask_dio22 (& self) -> INT_EVENT2_IMASK_DIO22_R { INT_EVENT2_IMASK_DIO22_R :: new (((self . bits >> 22) & 1) != 0) } # [doc = "Bit 23 - DIO23 event mask"]
# [inline (always)]
pub fn int_event2_imask_dio23 (& self) -> INT_EVENT2_IMASK_DIO23_R { INT_EVENT2_IMASK_DIO23_R :: new (((self . bits >> 23) & 1) != 0) } # [doc = "Bit 24 - DIO24 event mask"]
# [inline (always)]
pub fn int_event2_imask_dio24 (& self) -> INT_EVENT2_IMASK_DIO24_R { INT_EVENT2_IMASK_DIO24_R :: new (((self . bits >> 24) & 1) != 0) } # [doc = "Bit 25 - DIO25 event mask"]
# [inline (always)]
pub fn int_event2_imask_dio25 (& self) -> INT_EVENT2_IMASK_DIO25_R { INT_EVENT2_IMASK_DIO25_R :: new (((self . bits >> 25) & 1) != 0) } # [doc = "Bit 26 - DIO26 event mask"]
# [inline (always)]
pub fn int_event2_imask_dio26 (& self) -> INT_EVENT2_IMASK_DIO26_R { INT_EVENT2_IMASK_DIO26_R :: new (((self . bits >> 26) & 1) != 0) } # [doc = "Bit 27 - DIO27 event mask"]
# [inline (always)]
pub fn int_event2_imask_dio27 (& self) -> INT_EVENT2_IMASK_DIO27_R { INT_EVENT2_IMASK_DIO27_R :: new (((self . bits >> 27) & 1) != 0) } # [doc = "Bit 28 - DIO28 event mask"]
# [inline (always)]
pub fn int_event2_imask_dio28 (& self) -> INT_EVENT2_IMASK_DIO28_R { INT_EVENT2_IMASK_DIO28_R :: new (((self . bits >> 28) & 1) != 0) } # [doc = "Bit 29 - DIO29 event mask"]
# [inline (always)]
pub fn int_event2_imask_dio29 (& self) -> INT_EVENT2_IMASK_DIO29_R { INT_EVENT2_IMASK_DIO29_R :: new (((self . bits >> 29) & 1) != 0) } # [doc = "Bit 30 - DIO30 event mask"]
# [inline (always)]
pub fn int_event2_imask_dio30 (& self) -> INT_EVENT2_IMASK_DIO30_R { INT_EVENT2_IMASK_DIO30_R :: new (((self . bits >> 30) & 1) != 0) } # [doc = "Bit 31 - DIO31 event mask"]
# [inline (always)]
pub fn int_event2_imask_dio31 (& self) -> INT_EVENT2_IMASK_DIO31_R { INT_EVENT2_IMASK_DIO31_R :: new (((self . bits >> 31) & 1) != 0) } } impl W { # [doc = "Bit 16 - DIO16 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event2_imask_dio16 (& mut self) -> INT_EVENT2_IMASK_DIO16_W < INT_EVENT2_IMASK_SPEC , 16 > { INT_EVENT2_IMASK_DIO16_W :: new (self) } # [doc = "Bit 17 - DIO17 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event2_imask_dio17 (& mut self) -> INT_EVENT2_IMASK_DIO17_W < INT_EVENT2_IMASK_SPEC , 17 > { INT_EVENT2_IMASK_DIO17_W :: new (self) } # [doc = "Bit 18 - DIO18 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event2_imask_dio18 (& mut self) -> INT_EVENT2_IMASK_DIO18_W < INT_EVENT2_IMASK_SPEC , 18 > { INT_EVENT2_IMASK_DIO18_W :: new (self) } # [doc = "Bit 19 - DIO19 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event2_imask_dio19 (& mut self) -> INT_EVENT2_IMASK_DIO19_W < INT_EVENT2_IMASK_SPEC , 19 > { INT_EVENT2_IMASK_DIO19_W :: new (self) } # [doc = "Bit 20 - DIO20 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event2_imask_dio20 (& mut self) -> INT_EVENT2_IMASK_DIO20_W < INT_EVENT2_IMASK_SPEC , 20 > { INT_EVENT2_IMASK_DIO20_W :: new (self) } # [doc = "Bit 21 - DIO21 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event2_imask_dio21 (& mut self) -> INT_EVENT2_IMASK_DIO21_W < INT_EVENT2_IMASK_SPEC , 21 > { INT_EVENT2_IMASK_DIO21_W :: new (self) } # [doc = "Bit 22 - DIO22 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event2_imask_dio22 (& mut self) -> INT_EVENT2_IMASK_DIO22_W < INT_EVENT2_IMASK_SPEC , 22 > { INT_EVENT2_IMASK_DIO22_W :: new (self) } # [doc = "Bit 23 - DIO23 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event2_imask_dio23 (& mut self) -> INT_EVENT2_IMASK_DIO23_W < INT_EVENT2_IMASK_SPEC , 23 > { INT_EVENT2_IMASK_DIO23_W :: new (self) } # [doc = "Bit 24 - DIO24 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event2_imask_dio24 (& mut self) -> INT_EVENT2_IMASK_DIO24_W < INT_EVENT2_IMASK_SPEC , 24 > { INT_EVENT2_IMASK_DIO24_W :: new (self) } # [doc = "Bit 25 - DIO25 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event2_imask_dio25 (& mut self) -> INT_EVENT2_IMASK_DIO25_W < INT_EVENT2_IMASK_SPEC , 25 > { INT_EVENT2_IMASK_DIO25_W :: new (self) } # [doc = "Bit 26 - DIO26 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event2_imask_dio26 (& mut self) -> INT_EVENT2_IMASK_DIO26_W < INT_EVENT2_IMASK_SPEC , 26 > { INT_EVENT2_IMASK_DIO26_W :: new (self) } # [doc = "Bit 27 - DIO27 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event2_imask_dio27 (& mut self) -> INT_EVENT2_IMASK_DIO27_W < INT_EVENT2_IMASK_SPEC , 27 > { INT_EVENT2_IMASK_DIO27_W :: new (self) } # [doc = "Bit 28 - DIO28 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event2_imask_dio28 (& mut self) -> INT_EVENT2_IMASK_DIO28_W < INT_EVENT2_IMASK_SPEC , 28 > { INT_EVENT2_IMASK_DIO28_W :: new (self) } # [doc = "Bit 29 - DIO29 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event2_imask_dio29 (& mut self) -> INT_EVENT2_IMASK_DIO29_W < INT_EVENT2_IMASK_SPEC , 29 > { INT_EVENT2_IMASK_DIO29_W :: new (self) } # [doc = "Bit 30 - DIO30 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event2_imask_dio30 (& mut self) -> INT_EVENT2_IMASK_DIO30_W < INT_EVENT2_IMASK_SPEC , 30 > { INT_EVENT2_IMASK_DIO30_W :: new (self) } # [doc = "Bit 31 - DIO31 event mask"]
# [inline (always)]
# [must_use]
pub fn int_event2_imask_dio31 (& mut self) -> INT_EVENT2_IMASK_DIO31_W < INT_EVENT2_IMASK_SPEC , 31 > { INT_EVENT2_IMASK_DIO31_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_imask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_imask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_IMASK_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event2_imask::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT2_IMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`int_event2_imask::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT2_IMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT2_IMASK to value 0"]
impl crate :: Resettable for INT_EVENT2_IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_RIS (r) register accessor: Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_ris`]
module"]
pub type INT_EVENT2_RIS = crate :: Reg < int_event2_ris :: INT_EVENT2_RIS_SPEC > ; # [doc = "Raw interrupt status"]
pub mod int_event2_ris { # [doc = "Register `INT_EVENT2_RIS` reader"]
pub type R = crate :: R < INT_EVENT2_RIS_SPEC > ; # [doc = "Field `INT_EVENT2_RIS_DIO16` reader - DIO16 event"]
pub type INT_EVENT2_RIS_DIO16_R = crate :: BitReader < INT_EVENT2_RIS_DIO16_A > ; # [doc = "DIO16 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_RIS_DIO16_A { # [doc = "0: CLR"]
INT_EVENT2_RIS_DIO16_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_RIS_DIO16_SET = 1 , } impl From < INT_EVENT2_RIS_DIO16_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_RIS_DIO16_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_RIS_DIO16_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_RIS_DIO16_A { match self . bits { false => INT_EVENT2_RIS_DIO16_A :: INT_EVENT2_RIS_DIO16_CLR , true => INT_EVENT2_RIS_DIO16_A :: INT_EVENT2_RIS_DIO16_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_ris_dio16_clr (& self) -> bool { * self == INT_EVENT2_RIS_DIO16_A :: INT_EVENT2_RIS_DIO16_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_ris_dio16_set (& self) -> bool { * self == INT_EVENT2_RIS_DIO16_A :: INT_EVENT2_RIS_DIO16_SET } } # [doc = "Field `INT_EVENT2_RIS_DIO17` reader - DIO17 event"]
pub type INT_EVENT2_RIS_DIO17_R = crate :: BitReader < INT_EVENT2_RIS_DIO17_A > ; # [doc = "DIO17 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_RIS_DIO17_A { # [doc = "0: CLR"]
INT_EVENT2_RIS_DIO17_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_RIS_DIO17_SET = 1 , } impl From < INT_EVENT2_RIS_DIO17_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_RIS_DIO17_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_RIS_DIO17_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_RIS_DIO17_A { match self . bits { false => INT_EVENT2_RIS_DIO17_A :: INT_EVENT2_RIS_DIO17_CLR , true => INT_EVENT2_RIS_DIO17_A :: INT_EVENT2_RIS_DIO17_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_ris_dio17_clr (& self) -> bool { * self == INT_EVENT2_RIS_DIO17_A :: INT_EVENT2_RIS_DIO17_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_ris_dio17_set (& self) -> bool { * self == INT_EVENT2_RIS_DIO17_A :: INT_EVENT2_RIS_DIO17_SET } } # [doc = "Field `INT_EVENT2_RIS_DIO18` reader - DIO18 event"]
pub type INT_EVENT2_RIS_DIO18_R = crate :: BitReader < INT_EVENT2_RIS_DIO18_A > ; # [doc = "DIO18 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_RIS_DIO18_A { # [doc = "0: CLR"]
INT_EVENT2_RIS_DIO18_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_RIS_DIO18_SET = 1 , } impl From < INT_EVENT2_RIS_DIO18_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_RIS_DIO18_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_RIS_DIO18_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_RIS_DIO18_A { match self . bits { false => INT_EVENT2_RIS_DIO18_A :: INT_EVENT2_RIS_DIO18_CLR , true => INT_EVENT2_RIS_DIO18_A :: INT_EVENT2_RIS_DIO18_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_ris_dio18_clr (& self) -> bool { * self == INT_EVENT2_RIS_DIO18_A :: INT_EVENT2_RIS_DIO18_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_ris_dio18_set (& self) -> bool { * self == INT_EVENT2_RIS_DIO18_A :: INT_EVENT2_RIS_DIO18_SET } } # [doc = "Field `INT_EVENT2_RIS_DIO19` reader - DIO19 event"]
pub type INT_EVENT2_RIS_DIO19_R = crate :: BitReader < INT_EVENT2_RIS_DIO19_A > ; # [doc = "DIO19 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_RIS_DIO19_A { # [doc = "0: CLR"]
INT_EVENT2_RIS_DIO19_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_RIS_DIO19_SET = 1 , } impl From < INT_EVENT2_RIS_DIO19_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_RIS_DIO19_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_RIS_DIO19_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_RIS_DIO19_A { match self . bits { false => INT_EVENT2_RIS_DIO19_A :: INT_EVENT2_RIS_DIO19_CLR , true => INT_EVENT2_RIS_DIO19_A :: INT_EVENT2_RIS_DIO19_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_ris_dio19_clr (& self) -> bool { * self == INT_EVENT2_RIS_DIO19_A :: INT_EVENT2_RIS_DIO19_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_ris_dio19_set (& self) -> bool { * self == INT_EVENT2_RIS_DIO19_A :: INT_EVENT2_RIS_DIO19_SET } } # [doc = "Field `INT_EVENT2_RIS_DIO20` reader - DIO20 event"]
pub type INT_EVENT2_RIS_DIO20_R = crate :: BitReader < INT_EVENT2_RIS_DIO20_A > ; # [doc = "DIO20 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_RIS_DIO20_A { # [doc = "0: CLR"]
INT_EVENT2_RIS_DIO20_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_RIS_DIO20_SET = 1 , } impl From < INT_EVENT2_RIS_DIO20_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_RIS_DIO20_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_RIS_DIO20_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_RIS_DIO20_A { match self . bits { false => INT_EVENT2_RIS_DIO20_A :: INT_EVENT2_RIS_DIO20_CLR , true => INT_EVENT2_RIS_DIO20_A :: INT_EVENT2_RIS_DIO20_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_ris_dio20_clr (& self) -> bool { * self == INT_EVENT2_RIS_DIO20_A :: INT_EVENT2_RIS_DIO20_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_ris_dio20_set (& self) -> bool { * self == INT_EVENT2_RIS_DIO20_A :: INT_EVENT2_RIS_DIO20_SET } } # [doc = "Field `INT_EVENT2_RIS_DIO21` reader - DIO21 event"]
pub type INT_EVENT2_RIS_DIO21_R = crate :: BitReader < INT_EVENT2_RIS_DIO21_A > ; # [doc = "DIO21 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_RIS_DIO21_A { # [doc = "0: CLR"]
INT_EVENT2_RIS_DIO21_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_RIS_DIO21_SET = 1 , } impl From < INT_EVENT2_RIS_DIO21_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_RIS_DIO21_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_RIS_DIO21_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_RIS_DIO21_A { match self . bits { false => INT_EVENT2_RIS_DIO21_A :: INT_EVENT2_RIS_DIO21_CLR , true => INT_EVENT2_RIS_DIO21_A :: INT_EVENT2_RIS_DIO21_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_ris_dio21_clr (& self) -> bool { * self == INT_EVENT2_RIS_DIO21_A :: INT_EVENT2_RIS_DIO21_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_ris_dio21_set (& self) -> bool { * self == INT_EVENT2_RIS_DIO21_A :: INT_EVENT2_RIS_DIO21_SET } } # [doc = "Field `INT_EVENT2_RIS_DIO22` reader - DIO22 event"]
pub type INT_EVENT2_RIS_DIO22_R = crate :: BitReader < INT_EVENT2_RIS_DIO22_A > ; # [doc = "DIO22 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_RIS_DIO22_A { # [doc = "0: CLR"]
INT_EVENT2_RIS_DIO22_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_RIS_DIO22_SET = 1 , } impl From < INT_EVENT2_RIS_DIO22_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_RIS_DIO22_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_RIS_DIO22_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_RIS_DIO22_A { match self . bits { false => INT_EVENT2_RIS_DIO22_A :: INT_EVENT2_RIS_DIO22_CLR , true => INT_EVENT2_RIS_DIO22_A :: INT_EVENT2_RIS_DIO22_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_ris_dio22_clr (& self) -> bool { * self == INT_EVENT2_RIS_DIO22_A :: INT_EVENT2_RIS_DIO22_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_ris_dio22_set (& self) -> bool { * self == INT_EVENT2_RIS_DIO22_A :: INT_EVENT2_RIS_DIO22_SET } } # [doc = "Field `INT_EVENT2_RIS_DIO23` reader - DIO23 event"]
pub type INT_EVENT2_RIS_DIO23_R = crate :: BitReader < INT_EVENT2_RIS_DIO23_A > ; # [doc = "DIO23 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_RIS_DIO23_A { # [doc = "0: CLR"]
INT_EVENT2_RIS_DIO23_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_RIS_DIO23_SET = 1 , } impl From < INT_EVENT2_RIS_DIO23_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_RIS_DIO23_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_RIS_DIO23_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_RIS_DIO23_A { match self . bits { false => INT_EVENT2_RIS_DIO23_A :: INT_EVENT2_RIS_DIO23_CLR , true => INT_EVENT2_RIS_DIO23_A :: INT_EVENT2_RIS_DIO23_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_ris_dio23_clr (& self) -> bool { * self == INT_EVENT2_RIS_DIO23_A :: INT_EVENT2_RIS_DIO23_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_ris_dio23_set (& self) -> bool { * self == INT_EVENT2_RIS_DIO23_A :: INT_EVENT2_RIS_DIO23_SET } } # [doc = "Field `INT_EVENT2_RIS_DIO24` reader - DIO24 event"]
pub type INT_EVENT2_RIS_DIO24_R = crate :: BitReader < INT_EVENT2_RIS_DIO24_A > ; # [doc = "DIO24 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_RIS_DIO24_A { # [doc = "0: CLR"]
INT_EVENT2_RIS_DIO24_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_RIS_DIO24_SET = 1 , } impl From < INT_EVENT2_RIS_DIO24_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_RIS_DIO24_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_RIS_DIO24_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_RIS_DIO24_A { match self . bits { false => INT_EVENT2_RIS_DIO24_A :: INT_EVENT2_RIS_DIO24_CLR , true => INT_EVENT2_RIS_DIO24_A :: INT_EVENT2_RIS_DIO24_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_ris_dio24_clr (& self) -> bool { * self == INT_EVENT2_RIS_DIO24_A :: INT_EVENT2_RIS_DIO24_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_ris_dio24_set (& self) -> bool { * self == INT_EVENT2_RIS_DIO24_A :: INT_EVENT2_RIS_DIO24_SET } } # [doc = "Field `INT_EVENT2_RIS_DIO25` reader - DIO25 event"]
pub type INT_EVENT2_RIS_DIO25_R = crate :: BitReader < INT_EVENT2_RIS_DIO25_A > ; # [doc = "DIO25 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_RIS_DIO25_A { # [doc = "0: CLR"]
INT_EVENT2_RIS_DIO25_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_RIS_DIO25_SET = 1 , } impl From < INT_EVENT2_RIS_DIO25_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_RIS_DIO25_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_RIS_DIO25_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_RIS_DIO25_A { match self . bits { false => INT_EVENT2_RIS_DIO25_A :: INT_EVENT2_RIS_DIO25_CLR , true => INT_EVENT2_RIS_DIO25_A :: INT_EVENT2_RIS_DIO25_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_ris_dio25_clr (& self) -> bool { * self == INT_EVENT2_RIS_DIO25_A :: INT_EVENT2_RIS_DIO25_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_ris_dio25_set (& self) -> bool { * self == INT_EVENT2_RIS_DIO25_A :: INT_EVENT2_RIS_DIO25_SET } } # [doc = "Field `INT_EVENT2_RIS_DIO26` reader - DIO26 event"]
pub type INT_EVENT2_RIS_DIO26_R = crate :: BitReader < INT_EVENT2_RIS_DIO26_A > ; # [doc = "DIO26 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_RIS_DIO26_A { # [doc = "0: CLR"]
INT_EVENT2_RIS_DIO26_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_RIS_DIO26_SET = 1 , } impl From < INT_EVENT2_RIS_DIO26_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_RIS_DIO26_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_RIS_DIO26_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_RIS_DIO26_A { match self . bits { false => INT_EVENT2_RIS_DIO26_A :: INT_EVENT2_RIS_DIO26_CLR , true => INT_EVENT2_RIS_DIO26_A :: INT_EVENT2_RIS_DIO26_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_ris_dio26_clr (& self) -> bool { * self == INT_EVENT2_RIS_DIO26_A :: INT_EVENT2_RIS_DIO26_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_ris_dio26_set (& self) -> bool { * self == INT_EVENT2_RIS_DIO26_A :: INT_EVENT2_RIS_DIO26_SET } } # [doc = "Field `INT_EVENT2_RIS_DIO27` reader - DIO27 event"]
pub type INT_EVENT2_RIS_DIO27_R = crate :: BitReader < INT_EVENT2_RIS_DIO27_A > ; # [doc = "DIO27 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_RIS_DIO27_A { # [doc = "0: CLR"]
INT_EVENT2_RIS_DIO27_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_RIS_DIO27_SET = 1 , } impl From < INT_EVENT2_RIS_DIO27_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_RIS_DIO27_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_RIS_DIO27_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_RIS_DIO27_A { match self . bits { false => INT_EVENT2_RIS_DIO27_A :: INT_EVENT2_RIS_DIO27_CLR , true => INT_EVENT2_RIS_DIO27_A :: INT_EVENT2_RIS_DIO27_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_ris_dio27_clr (& self) -> bool { * self == INT_EVENT2_RIS_DIO27_A :: INT_EVENT2_RIS_DIO27_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_ris_dio27_set (& self) -> bool { * self == INT_EVENT2_RIS_DIO27_A :: INT_EVENT2_RIS_DIO27_SET } } # [doc = "Field `INT_EVENT2_RIS_DIO28` reader - DIO28 event"]
pub type INT_EVENT2_RIS_DIO28_R = crate :: BitReader < INT_EVENT2_RIS_DIO28_A > ; # [doc = "DIO28 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_RIS_DIO28_A { # [doc = "0: CLR"]
INT_EVENT2_RIS_DIO28_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_RIS_DIO28_SET = 1 , } impl From < INT_EVENT2_RIS_DIO28_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_RIS_DIO28_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_RIS_DIO28_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_RIS_DIO28_A { match self . bits { false => INT_EVENT2_RIS_DIO28_A :: INT_EVENT2_RIS_DIO28_CLR , true => INT_EVENT2_RIS_DIO28_A :: INT_EVENT2_RIS_DIO28_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_ris_dio28_clr (& self) -> bool { * self == INT_EVENT2_RIS_DIO28_A :: INT_EVENT2_RIS_DIO28_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_ris_dio28_set (& self) -> bool { * self == INT_EVENT2_RIS_DIO28_A :: INT_EVENT2_RIS_DIO28_SET } } # [doc = "Field `INT_EVENT2_RIS_DIO29` reader - DIO29 event"]
pub type INT_EVENT2_RIS_DIO29_R = crate :: BitReader < INT_EVENT2_RIS_DIO29_A > ; # [doc = "DIO29 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_RIS_DIO29_A { # [doc = "0: CLR"]
INT_EVENT2_RIS_DIO29_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_RIS_DIO29_SET = 1 , } impl From < INT_EVENT2_RIS_DIO29_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_RIS_DIO29_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_RIS_DIO29_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_RIS_DIO29_A { match self . bits { false => INT_EVENT2_RIS_DIO29_A :: INT_EVENT2_RIS_DIO29_CLR , true => INT_EVENT2_RIS_DIO29_A :: INT_EVENT2_RIS_DIO29_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_ris_dio29_clr (& self) -> bool { * self == INT_EVENT2_RIS_DIO29_A :: INT_EVENT2_RIS_DIO29_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_ris_dio29_set (& self) -> bool { * self == INT_EVENT2_RIS_DIO29_A :: INT_EVENT2_RIS_DIO29_SET } } # [doc = "Field `INT_EVENT2_RIS_DIO30` reader - DIO30 event"]
pub type INT_EVENT2_RIS_DIO30_R = crate :: BitReader < INT_EVENT2_RIS_DIO30_A > ; # [doc = "DIO30 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_RIS_DIO30_A { # [doc = "0: CLR"]
INT_EVENT2_RIS_DIO30_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_RIS_DIO30_SET = 1 , } impl From < INT_EVENT2_RIS_DIO30_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_RIS_DIO30_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_RIS_DIO30_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_RIS_DIO30_A { match self . bits { false => INT_EVENT2_RIS_DIO30_A :: INT_EVENT2_RIS_DIO30_CLR , true => INT_EVENT2_RIS_DIO30_A :: INT_EVENT2_RIS_DIO30_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_ris_dio30_clr (& self) -> bool { * self == INT_EVENT2_RIS_DIO30_A :: INT_EVENT2_RIS_DIO30_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_ris_dio30_set (& self) -> bool { * self == INT_EVENT2_RIS_DIO30_A :: INT_EVENT2_RIS_DIO30_SET } } # [doc = "Field `INT_EVENT2_RIS_DIO31` reader - DIO31 event"]
pub type INT_EVENT2_RIS_DIO31_R = crate :: BitReader < INT_EVENT2_RIS_DIO31_A > ; # [doc = "DIO31 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_RIS_DIO31_A { # [doc = "0: CLR"]
INT_EVENT2_RIS_DIO31_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_RIS_DIO31_SET = 1 , } impl From < INT_EVENT2_RIS_DIO31_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_RIS_DIO31_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_RIS_DIO31_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_RIS_DIO31_A { match self . bits { false => INT_EVENT2_RIS_DIO31_A :: INT_EVENT2_RIS_DIO31_CLR , true => INT_EVENT2_RIS_DIO31_A :: INT_EVENT2_RIS_DIO31_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_ris_dio31_clr (& self) -> bool { * self == INT_EVENT2_RIS_DIO31_A :: INT_EVENT2_RIS_DIO31_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_ris_dio31_set (& self) -> bool { * self == INT_EVENT2_RIS_DIO31_A :: INT_EVENT2_RIS_DIO31_SET } } impl R { # [doc = "Bit 16 - DIO16 event"]
# [inline (always)]
pub fn int_event2_ris_dio16 (& self) -> INT_EVENT2_RIS_DIO16_R { INT_EVENT2_RIS_DIO16_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 17 - DIO17 event"]
# [inline (always)]
pub fn int_event2_ris_dio17 (& self) -> INT_EVENT2_RIS_DIO17_R { INT_EVENT2_RIS_DIO17_R :: new (((self . bits >> 17) & 1) != 0) } # [doc = "Bit 18 - DIO18 event"]
# [inline (always)]
pub fn int_event2_ris_dio18 (& self) -> INT_EVENT2_RIS_DIO18_R { INT_EVENT2_RIS_DIO18_R :: new (((self . bits >> 18) & 1) != 0) } # [doc = "Bit 19 - DIO19 event"]
# [inline (always)]
pub fn int_event2_ris_dio19 (& self) -> INT_EVENT2_RIS_DIO19_R { INT_EVENT2_RIS_DIO19_R :: new (((self . bits >> 19) & 1) != 0) } # [doc = "Bit 20 - DIO20 event"]
# [inline (always)]
pub fn int_event2_ris_dio20 (& self) -> INT_EVENT2_RIS_DIO20_R { INT_EVENT2_RIS_DIO20_R :: new (((self . bits >> 20) & 1) != 0) } # [doc = "Bit 21 - DIO21 event"]
# [inline (always)]
pub fn int_event2_ris_dio21 (& self) -> INT_EVENT2_RIS_DIO21_R { INT_EVENT2_RIS_DIO21_R :: new (((self . bits >> 21) & 1) != 0) } # [doc = "Bit 22 - DIO22 event"]
# [inline (always)]
pub fn int_event2_ris_dio22 (& self) -> INT_EVENT2_RIS_DIO22_R { INT_EVENT2_RIS_DIO22_R :: new (((self . bits >> 22) & 1) != 0) } # [doc = "Bit 23 - DIO23 event"]
# [inline (always)]
pub fn int_event2_ris_dio23 (& self) -> INT_EVENT2_RIS_DIO23_R { INT_EVENT2_RIS_DIO23_R :: new (((self . bits >> 23) & 1) != 0) } # [doc = "Bit 24 - DIO24 event"]
# [inline (always)]
pub fn int_event2_ris_dio24 (& self) -> INT_EVENT2_RIS_DIO24_R { INT_EVENT2_RIS_DIO24_R :: new (((self . bits >> 24) & 1) != 0) } # [doc = "Bit 25 - DIO25 event"]
# [inline (always)]
pub fn int_event2_ris_dio25 (& self) -> INT_EVENT2_RIS_DIO25_R { INT_EVENT2_RIS_DIO25_R :: new (((self . bits >> 25) & 1) != 0) } # [doc = "Bit 26 - DIO26 event"]
# [inline (always)]
pub fn int_event2_ris_dio26 (& self) -> INT_EVENT2_RIS_DIO26_R { INT_EVENT2_RIS_DIO26_R :: new (((self . bits >> 26) & 1) != 0) } # [doc = "Bit 27 - DIO27 event"]
# [inline (always)]
pub fn int_event2_ris_dio27 (& self) -> INT_EVENT2_RIS_DIO27_R { INT_EVENT2_RIS_DIO27_R :: new (((self . bits >> 27) & 1) != 0) } # [doc = "Bit 28 - DIO28 event"]
# [inline (always)]
pub fn int_event2_ris_dio28 (& self) -> INT_EVENT2_RIS_DIO28_R { INT_EVENT2_RIS_DIO28_R :: new (((self . bits >> 28) & 1) != 0) } # [doc = "Bit 29 - DIO29 event"]
# [inline (always)]
pub fn int_event2_ris_dio29 (& self) -> INT_EVENT2_RIS_DIO29_R { INT_EVENT2_RIS_DIO29_R :: new (((self . bits >> 29) & 1) != 0) } # [doc = "Bit 30 - DIO30 event"]
# [inline (always)]
pub fn int_event2_ris_dio30 (& self) -> INT_EVENT2_RIS_DIO30_R { INT_EVENT2_RIS_DIO30_R :: new (((self . bits >> 30) & 1) != 0) } # [doc = "Bit 31 - DIO31 event"]
# [inline (always)]
pub fn int_event2_ris_dio31 (& self) -> INT_EVENT2_RIS_DIO31_R { INT_EVENT2_RIS_DIO31_R :: new (((self . bits >> 31) & 1) != 0) } } # [doc = "Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_RIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event2_ris::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT2_RIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT2_RIS to value 0"]
impl crate :: Resettable for INT_EVENT2_RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_MIS (r) register accessor: Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_mis`]
module"]
pub type INT_EVENT2_MIS = crate :: Reg < int_event2_mis :: INT_EVENT2_MIS_SPEC > ; # [doc = "Masked interrupt status"]
pub mod int_event2_mis { # [doc = "Register `INT_EVENT2_MIS` reader"]
pub type R = crate :: R < INT_EVENT2_MIS_SPEC > ; # [doc = "Field `INT_EVENT2_MIS_DIO16` reader - DIO16 event"]
pub type INT_EVENT2_MIS_DIO16_R = crate :: BitReader < INT_EVENT2_MIS_DIO16_A > ; # [doc = "DIO16 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_MIS_DIO16_A { # [doc = "0: CLR"]
INT_EVENT2_MIS_DIO16_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_MIS_DIO16_SET = 1 , } impl From < INT_EVENT2_MIS_DIO16_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_MIS_DIO16_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_MIS_DIO16_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_MIS_DIO16_A { match self . bits { false => INT_EVENT2_MIS_DIO16_A :: INT_EVENT2_MIS_DIO16_CLR , true => INT_EVENT2_MIS_DIO16_A :: INT_EVENT2_MIS_DIO16_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_mis_dio16_clr (& self) -> bool { * self == INT_EVENT2_MIS_DIO16_A :: INT_EVENT2_MIS_DIO16_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_mis_dio16_set (& self) -> bool { * self == INT_EVENT2_MIS_DIO16_A :: INT_EVENT2_MIS_DIO16_SET } } # [doc = "Field `INT_EVENT2_MIS_DIO17` reader - DIO17 event"]
pub type INT_EVENT2_MIS_DIO17_R = crate :: BitReader < INT_EVENT2_MIS_DIO17_A > ; # [doc = "DIO17 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_MIS_DIO17_A { # [doc = "0: CLR"]
INT_EVENT2_MIS_DIO17_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_MIS_DIO17_SET = 1 , } impl From < INT_EVENT2_MIS_DIO17_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_MIS_DIO17_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_MIS_DIO17_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_MIS_DIO17_A { match self . bits { false => INT_EVENT2_MIS_DIO17_A :: INT_EVENT2_MIS_DIO17_CLR , true => INT_EVENT2_MIS_DIO17_A :: INT_EVENT2_MIS_DIO17_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_mis_dio17_clr (& self) -> bool { * self == INT_EVENT2_MIS_DIO17_A :: INT_EVENT2_MIS_DIO17_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_mis_dio17_set (& self) -> bool { * self == INT_EVENT2_MIS_DIO17_A :: INT_EVENT2_MIS_DIO17_SET } } # [doc = "Field `INT_EVENT2_MIS_DIO18` reader - DIO18 event"]
pub type INT_EVENT2_MIS_DIO18_R = crate :: BitReader < INT_EVENT2_MIS_DIO18_A > ; # [doc = "DIO18 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_MIS_DIO18_A { # [doc = "0: CLR"]
INT_EVENT2_MIS_DIO18_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_MIS_DIO18_SET = 1 , } impl From < INT_EVENT2_MIS_DIO18_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_MIS_DIO18_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_MIS_DIO18_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_MIS_DIO18_A { match self . bits { false => INT_EVENT2_MIS_DIO18_A :: INT_EVENT2_MIS_DIO18_CLR , true => INT_EVENT2_MIS_DIO18_A :: INT_EVENT2_MIS_DIO18_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_mis_dio18_clr (& self) -> bool { * self == INT_EVENT2_MIS_DIO18_A :: INT_EVENT2_MIS_DIO18_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_mis_dio18_set (& self) -> bool { * self == INT_EVENT2_MIS_DIO18_A :: INT_EVENT2_MIS_DIO18_SET } } # [doc = "Field `INT_EVENT2_MIS_DIO19` reader - DIO19 event"]
pub type INT_EVENT2_MIS_DIO19_R = crate :: BitReader < INT_EVENT2_MIS_DIO19_A > ; # [doc = "DIO19 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_MIS_DIO19_A { # [doc = "0: CLR"]
INT_EVENT2_MIS_DIO19_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_MIS_DIO19_SET = 1 , } impl From < INT_EVENT2_MIS_DIO19_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_MIS_DIO19_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_MIS_DIO19_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_MIS_DIO19_A { match self . bits { false => INT_EVENT2_MIS_DIO19_A :: INT_EVENT2_MIS_DIO19_CLR , true => INT_EVENT2_MIS_DIO19_A :: INT_EVENT2_MIS_DIO19_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_mis_dio19_clr (& self) -> bool { * self == INT_EVENT2_MIS_DIO19_A :: INT_EVENT2_MIS_DIO19_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_mis_dio19_set (& self) -> bool { * self == INT_EVENT2_MIS_DIO19_A :: INT_EVENT2_MIS_DIO19_SET } } # [doc = "Field `INT_EVENT2_MIS_DIO20` reader - DIO20 event"]
pub type INT_EVENT2_MIS_DIO20_R = crate :: BitReader < INT_EVENT2_MIS_DIO20_A > ; # [doc = "DIO20 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_MIS_DIO20_A { # [doc = "0: CLR"]
INT_EVENT2_MIS_DIO20_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_MIS_DIO20_SET = 1 , } impl From < INT_EVENT2_MIS_DIO20_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_MIS_DIO20_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_MIS_DIO20_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_MIS_DIO20_A { match self . bits { false => INT_EVENT2_MIS_DIO20_A :: INT_EVENT2_MIS_DIO20_CLR , true => INT_EVENT2_MIS_DIO20_A :: INT_EVENT2_MIS_DIO20_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_mis_dio20_clr (& self) -> bool { * self == INT_EVENT2_MIS_DIO20_A :: INT_EVENT2_MIS_DIO20_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_mis_dio20_set (& self) -> bool { * self == INT_EVENT2_MIS_DIO20_A :: INT_EVENT2_MIS_DIO20_SET } } # [doc = "Field `INT_EVENT2_MIS_DIO21` reader - DIO21 event"]
pub type INT_EVENT2_MIS_DIO21_R = crate :: BitReader < INT_EVENT2_MIS_DIO21_A > ; # [doc = "DIO21 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_MIS_DIO21_A { # [doc = "0: CLR"]
INT_EVENT2_MIS_DIO21_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_MIS_DIO21_SET = 1 , } impl From < INT_EVENT2_MIS_DIO21_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_MIS_DIO21_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_MIS_DIO21_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_MIS_DIO21_A { match self . bits { false => INT_EVENT2_MIS_DIO21_A :: INT_EVENT2_MIS_DIO21_CLR , true => INT_EVENT2_MIS_DIO21_A :: INT_EVENT2_MIS_DIO21_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_mis_dio21_clr (& self) -> bool { * self == INT_EVENT2_MIS_DIO21_A :: INT_EVENT2_MIS_DIO21_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_mis_dio21_set (& self) -> bool { * self == INT_EVENT2_MIS_DIO21_A :: INT_EVENT2_MIS_DIO21_SET } } # [doc = "Field `INT_EVENT2_MIS_DIO22` reader - DIO22 event"]
pub type INT_EVENT2_MIS_DIO22_R = crate :: BitReader < INT_EVENT2_MIS_DIO22_A > ; # [doc = "DIO22 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_MIS_DIO22_A { # [doc = "0: CLR"]
INT_EVENT2_MIS_DIO22_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_MIS_DIO22_SET = 1 , } impl From < INT_EVENT2_MIS_DIO22_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_MIS_DIO22_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_MIS_DIO22_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_MIS_DIO22_A { match self . bits { false => INT_EVENT2_MIS_DIO22_A :: INT_EVENT2_MIS_DIO22_CLR , true => INT_EVENT2_MIS_DIO22_A :: INT_EVENT2_MIS_DIO22_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_mis_dio22_clr (& self) -> bool { * self == INT_EVENT2_MIS_DIO22_A :: INT_EVENT2_MIS_DIO22_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_mis_dio22_set (& self) -> bool { * self == INT_EVENT2_MIS_DIO22_A :: INT_EVENT2_MIS_DIO22_SET } } # [doc = "Field `INT_EVENT2_MIS_DIO23` reader - DIO23 event"]
pub type INT_EVENT2_MIS_DIO23_R = crate :: BitReader < INT_EVENT2_MIS_DIO23_A > ; # [doc = "DIO23 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_MIS_DIO23_A { # [doc = "0: CLR"]
INT_EVENT2_MIS_DIO23_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_MIS_DIO23_SET = 1 , } impl From < INT_EVENT2_MIS_DIO23_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_MIS_DIO23_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_MIS_DIO23_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_MIS_DIO23_A { match self . bits { false => INT_EVENT2_MIS_DIO23_A :: INT_EVENT2_MIS_DIO23_CLR , true => INT_EVENT2_MIS_DIO23_A :: INT_EVENT2_MIS_DIO23_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_mis_dio23_clr (& self) -> bool { * self == INT_EVENT2_MIS_DIO23_A :: INT_EVENT2_MIS_DIO23_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_mis_dio23_set (& self) -> bool { * self == INT_EVENT2_MIS_DIO23_A :: INT_EVENT2_MIS_DIO23_SET } } # [doc = "Field `INT_EVENT2_MIS_DIO24` reader - DIO24 event"]
pub type INT_EVENT2_MIS_DIO24_R = crate :: BitReader < INT_EVENT2_MIS_DIO24_A > ; # [doc = "DIO24 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_MIS_DIO24_A { # [doc = "0: CLR"]
INT_EVENT2_MIS_DIO24_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_MIS_DIO24_SET = 1 , } impl From < INT_EVENT2_MIS_DIO24_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_MIS_DIO24_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_MIS_DIO24_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_MIS_DIO24_A { match self . bits { false => INT_EVENT2_MIS_DIO24_A :: INT_EVENT2_MIS_DIO24_CLR , true => INT_EVENT2_MIS_DIO24_A :: INT_EVENT2_MIS_DIO24_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_mis_dio24_clr (& self) -> bool { * self == INT_EVENT2_MIS_DIO24_A :: INT_EVENT2_MIS_DIO24_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_mis_dio24_set (& self) -> bool { * self == INT_EVENT2_MIS_DIO24_A :: INT_EVENT2_MIS_DIO24_SET } } # [doc = "Field `INT_EVENT2_MIS_DIO25` reader - DIO25 event"]
pub type INT_EVENT2_MIS_DIO25_R = crate :: BitReader < INT_EVENT2_MIS_DIO25_A > ; # [doc = "DIO25 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_MIS_DIO25_A { # [doc = "0: CLR"]
INT_EVENT2_MIS_DIO25_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_MIS_DIO25_SET = 1 , } impl From < INT_EVENT2_MIS_DIO25_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_MIS_DIO25_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_MIS_DIO25_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_MIS_DIO25_A { match self . bits { false => INT_EVENT2_MIS_DIO25_A :: INT_EVENT2_MIS_DIO25_CLR , true => INT_EVENT2_MIS_DIO25_A :: INT_EVENT2_MIS_DIO25_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_mis_dio25_clr (& self) -> bool { * self == INT_EVENT2_MIS_DIO25_A :: INT_EVENT2_MIS_DIO25_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_mis_dio25_set (& self) -> bool { * self == INT_EVENT2_MIS_DIO25_A :: INT_EVENT2_MIS_DIO25_SET } } # [doc = "Field `INT_EVENT2_MIS_DIO26` reader - DIO26 event"]
pub type INT_EVENT2_MIS_DIO26_R = crate :: BitReader < INT_EVENT2_MIS_DIO26_A > ; # [doc = "DIO26 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_MIS_DIO26_A { # [doc = "0: CLR"]
INT_EVENT2_MIS_DIO26_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_MIS_DIO26_SET = 1 , } impl From < INT_EVENT2_MIS_DIO26_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_MIS_DIO26_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_MIS_DIO26_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_MIS_DIO26_A { match self . bits { false => INT_EVENT2_MIS_DIO26_A :: INT_EVENT2_MIS_DIO26_CLR , true => INT_EVENT2_MIS_DIO26_A :: INT_EVENT2_MIS_DIO26_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_mis_dio26_clr (& self) -> bool { * self == INT_EVENT2_MIS_DIO26_A :: INT_EVENT2_MIS_DIO26_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_mis_dio26_set (& self) -> bool { * self == INT_EVENT2_MIS_DIO26_A :: INT_EVENT2_MIS_DIO26_SET } } # [doc = "Field `INT_EVENT2_MIS_DIO27` reader - DIO27 event"]
pub type INT_EVENT2_MIS_DIO27_R = crate :: BitReader < INT_EVENT2_MIS_DIO27_A > ; # [doc = "DIO27 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_MIS_DIO27_A { # [doc = "0: CLR"]
INT_EVENT2_MIS_DIO27_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_MIS_DIO27_SET = 1 , } impl From < INT_EVENT2_MIS_DIO27_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_MIS_DIO27_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_MIS_DIO27_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_MIS_DIO27_A { match self . bits { false => INT_EVENT2_MIS_DIO27_A :: INT_EVENT2_MIS_DIO27_CLR , true => INT_EVENT2_MIS_DIO27_A :: INT_EVENT2_MIS_DIO27_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_mis_dio27_clr (& self) -> bool { * self == INT_EVENT2_MIS_DIO27_A :: INT_EVENT2_MIS_DIO27_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_mis_dio27_set (& self) -> bool { * self == INT_EVENT2_MIS_DIO27_A :: INT_EVENT2_MIS_DIO27_SET } } # [doc = "Field `INT_EVENT2_MIS_DIO28` reader - DIO28 event"]
pub type INT_EVENT2_MIS_DIO28_R = crate :: BitReader < INT_EVENT2_MIS_DIO28_A > ; # [doc = "DIO28 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_MIS_DIO28_A { # [doc = "0: CLR"]
INT_EVENT2_MIS_DIO28_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_MIS_DIO28_SET = 1 , } impl From < INT_EVENT2_MIS_DIO28_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_MIS_DIO28_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_MIS_DIO28_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_MIS_DIO28_A { match self . bits { false => INT_EVENT2_MIS_DIO28_A :: INT_EVENT2_MIS_DIO28_CLR , true => INT_EVENT2_MIS_DIO28_A :: INT_EVENT2_MIS_DIO28_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_mis_dio28_clr (& self) -> bool { * self == INT_EVENT2_MIS_DIO28_A :: INT_EVENT2_MIS_DIO28_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_mis_dio28_set (& self) -> bool { * self == INT_EVENT2_MIS_DIO28_A :: INT_EVENT2_MIS_DIO28_SET } } # [doc = "Field `INT_EVENT2_MIS_DIO29` reader - DIO29 event"]
pub type INT_EVENT2_MIS_DIO29_R = crate :: BitReader < INT_EVENT2_MIS_DIO29_A > ; # [doc = "DIO29 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_MIS_DIO29_A { # [doc = "0: CLR"]
INT_EVENT2_MIS_DIO29_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_MIS_DIO29_SET = 1 , } impl From < INT_EVENT2_MIS_DIO29_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_MIS_DIO29_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_MIS_DIO29_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_MIS_DIO29_A { match self . bits { false => INT_EVENT2_MIS_DIO29_A :: INT_EVENT2_MIS_DIO29_CLR , true => INT_EVENT2_MIS_DIO29_A :: INT_EVENT2_MIS_DIO29_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_mis_dio29_clr (& self) -> bool { * self == INT_EVENT2_MIS_DIO29_A :: INT_EVENT2_MIS_DIO29_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_mis_dio29_set (& self) -> bool { * self == INT_EVENT2_MIS_DIO29_A :: INT_EVENT2_MIS_DIO29_SET } } # [doc = "Field `INT_EVENT2_MIS_DIO30` reader - DIO30 event"]
pub type INT_EVENT2_MIS_DIO30_R = crate :: BitReader < INT_EVENT2_MIS_DIO30_A > ; # [doc = "DIO30 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_MIS_DIO30_A { # [doc = "0: CLR"]
INT_EVENT2_MIS_DIO30_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_MIS_DIO30_SET = 1 , } impl From < INT_EVENT2_MIS_DIO30_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_MIS_DIO30_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_MIS_DIO30_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_MIS_DIO30_A { match self . bits { false => INT_EVENT2_MIS_DIO30_A :: INT_EVENT2_MIS_DIO30_CLR , true => INT_EVENT2_MIS_DIO30_A :: INT_EVENT2_MIS_DIO30_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_mis_dio30_clr (& self) -> bool { * self == INT_EVENT2_MIS_DIO30_A :: INT_EVENT2_MIS_DIO30_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_mis_dio30_set (& self) -> bool { * self == INT_EVENT2_MIS_DIO30_A :: INT_EVENT2_MIS_DIO30_SET } } # [doc = "Field `INT_EVENT2_MIS_DIO31` reader - DIO31 event"]
pub type INT_EVENT2_MIS_DIO31_R = crate :: BitReader < INT_EVENT2_MIS_DIO31_A > ; # [doc = "DIO31 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_MIS_DIO31_A { # [doc = "0: CLR"]
INT_EVENT2_MIS_DIO31_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_MIS_DIO31_SET = 1 , } impl From < INT_EVENT2_MIS_DIO31_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_MIS_DIO31_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_MIS_DIO31_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_MIS_DIO31_A { match self . bits { false => INT_EVENT2_MIS_DIO31_A :: INT_EVENT2_MIS_DIO31_CLR , true => INT_EVENT2_MIS_DIO31_A :: INT_EVENT2_MIS_DIO31_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_mis_dio31_clr (& self) -> bool { * self == INT_EVENT2_MIS_DIO31_A :: INT_EVENT2_MIS_DIO31_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_mis_dio31_set (& self) -> bool { * self == INT_EVENT2_MIS_DIO31_A :: INT_EVENT2_MIS_DIO31_SET } } impl R { # [doc = "Bit 16 - DIO16 event"]
# [inline (always)]
pub fn int_event2_mis_dio16 (& self) -> INT_EVENT2_MIS_DIO16_R { INT_EVENT2_MIS_DIO16_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 17 - DIO17 event"]
# [inline (always)]
pub fn int_event2_mis_dio17 (& self) -> INT_EVENT2_MIS_DIO17_R { INT_EVENT2_MIS_DIO17_R :: new (((self . bits >> 17) & 1) != 0) } # [doc = "Bit 18 - DIO18 event"]
# [inline (always)]
pub fn int_event2_mis_dio18 (& self) -> INT_EVENT2_MIS_DIO18_R { INT_EVENT2_MIS_DIO18_R :: new (((self . bits >> 18) & 1) != 0) } # [doc = "Bit 19 - DIO19 event"]
# [inline (always)]
pub fn int_event2_mis_dio19 (& self) -> INT_EVENT2_MIS_DIO19_R { INT_EVENT2_MIS_DIO19_R :: new (((self . bits >> 19) & 1) != 0) } # [doc = "Bit 20 - DIO20 event"]
# [inline (always)]
pub fn int_event2_mis_dio20 (& self) -> INT_EVENT2_MIS_DIO20_R { INT_EVENT2_MIS_DIO20_R :: new (((self . bits >> 20) & 1) != 0) } # [doc = "Bit 21 - DIO21 event"]
# [inline (always)]
pub fn int_event2_mis_dio21 (& self) -> INT_EVENT2_MIS_DIO21_R { INT_EVENT2_MIS_DIO21_R :: new (((self . bits >> 21) & 1) != 0) } # [doc = "Bit 22 - DIO22 event"]
# [inline (always)]
pub fn int_event2_mis_dio22 (& self) -> INT_EVENT2_MIS_DIO22_R { INT_EVENT2_MIS_DIO22_R :: new (((self . bits >> 22) & 1) != 0) } # [doc = "Bit 23 - DIO23 event"]
# [inline (always)]
pub fn int_event2_mis_dio23 (& self) -> INT_EVENT2_MIS_DIO23_R { INT_EVENT2_MIS_DIO23_R :: new (((self . bits >> 23) & 1) != 0) } # [doc = "Bit 24 - DIO24 event"]
# [inline (always)]
pub fn int_event2_mis_dio24 (& self) -> INT_EVENT2_MIS_DIO24_R { INT_EVENT2_MIS_DIO24_R :: new (((self . bits >> 24) & 1) != 0) } # [doc = "Bit 25 - DIO25 event"]
# [inline (always)]
pub fn int_event2_mis_dio25 (& self) -> INT_EVENT2_MIS_DIO25_R { INT_EVENT2_MIS_DIO25_R :: new (((self . bits >> 25) & 1) != 0) } # [doc = "Bit 26 - DIO26 event"]
# [inline (always)]
pub fn int_event2_mis_dio26 (& self) -> INT_EVENT2_MIS_DIO26_R { INT_EVENT2_MIS_DIO26_R :: new (((self . bits >> 26) & 1) != 0) } # [doc = "Bit 27 - DIO27 event"]
# [inline (always)]
pub fn int_event2_mis_dio27 (& self) -> INT_EVENT2_MIS_DIO27_R { INT_EVENT2_MIS_DIO27_R :: new (((self . bits >> 27) & 1) != 0) } # [doc = "Bit 28 - DIO28 event"]
# [inline (always)]
pub fn int_event2_mis_dio28 (& self) -> INT_EVENT2_MIS_DIO28_R { INT_EVENT2_MIS_DIO28_R :: new (((self . bits >> 28) & 1) != 0) } # [doc = "Bit 29 - DIO29 event"]
# [inline (always)]
pub fn int_event2_mis_dio29 (& self) -> INT_EVENT2_MIS_DIO29_R { INT_EVENT2_MIS_DIO29_R :: new (((self . bits >> 29) & 1) != 0) } # [doc = "Bit 30 - DIO30 event"]
# [inline (always)]
pub fn int_event2_mis_dio30 (& self) -> INT_EVENT2_MIS_DIO30_R { INT_EVENT2_MIS_DIO30_R :: new (((self . bits >> 30) & 1) != 0) } # [doc = "Bit 31 - DIO31 event"]
# [inline (always)]
pub fn int_event2_mis_dio31 (& self) -> INT_EVENT2_MIS_DIO31_R { INT_EVENT2_MIS_DIO31_R :: new (((self . bits >> 31) & 1) != 0) } } # [doc = "Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_MIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event2_mis::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT2_MIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT2_MIS to value 0"]
impl crate :: Resettable for INT_EVENT2_MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_ISET (w) register accessor: Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_iset`]
module"]
pub type INT_EVENT2_ISET = crate :: Reg < int_event2_iset :: INT_EVENT2_ISET_SPEC > ; # [doc = "Interrupt set"]
pub mod int_event2_iset { # [doc = "Register `INT_EVENT2_ISET` writer"]
pub type W = crate :: W < INT_EVENT2_ISET_SPEC > ; # [doc = "DIO16 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ISET_DIO16_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ISET_DIO16_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT2_ISET_DIO16_SET = 1 , } impl From < INT_EVENT2_ISET_DIO16_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ISET_DIO16_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ISET_DIO16` writer - DIO16 event"]
pub type INT_EVENT2_ISET_DIO16_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ISET_DIO16_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ISET_DIO16_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iset_dio16_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_DIO16_AW :: INT_EVENT2_ISET_DIO16_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_iset_dio16_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_DIO16_AW :: INT_EVENT2_ISET_DIO16_SET) } } # [doc = "DIO17 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ISET_DIO17_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ISET_DIO17_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT2_ISET_DIO17_SET = 1 , } impl From < INT_EVENT2_ISET_DIO17_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ISET_DIO17_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ISET_DIO17` writer - DIO17 event"]
pub type INT_EVENT2_ISET_DIO17_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ISET_DIO17_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ISET_DIO17_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iset_dio17_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_DIO17_AW :: INT_EVENT2_ISET_DIO17_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_iset_dio17_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_DIO17_AW :: INT_EVENT2_ISET_DIO17_SET) } } # [doc = "DIO18 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ISET_DIO18_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ISET_DIO18_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT2_ISET_DIO18_SET = 1 , } impl From < INT_EVENT2_ISET_DIO18_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ISET_DIO18_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ISET_DIO18` writer - DIO18 event"]
pub type INT_EVENT2_ISET_DIO18_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ISET_DIO18_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ISET_DIO18_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iset_dio18_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_DIO18_AW :: INT_EVENT2_ISET_DIO18_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_iset_dio18_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_DIO18_AW :: INT_EVENT2_ISET_DIO18_SET) } } # [doc = "DIO19 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ISET_DIO19_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ISET_DIO19_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT2_ISET_DIO19_SET = 1 , } impl From < INT_EVENT2_ISET_DIO19_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ISET_DIO19_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ISET_DIO19` writer - DIO19 event"]
pub type INT_EVENT2_ISET_DIO19_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ISET_DIO19_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ISET_DIO19_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iset_dio19_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_DIO19_AW :: INT_EVENT2_ISET_DIO19_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_iset_dio19_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_DIO19_AW :: INT_EVENT2_ISET_DIO19_SET) } } # [doc = "DIO20 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ISET_DIO20_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ISET_DIO20_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT2_ISET_DIO20_SET = 1 , } impl From < INT_EVENT2_ISET_DIO20_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ISET_DIO20_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ISET_DIO20` writer - DIO20 event"]
pub type INT_EVENT2_ISET_DIO20_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ISET_DIO20_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ISET_DIO20_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iset_dio20_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_DIO20_AW :: INT_EVENT2_ISET_DIO20_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_iset_dio20_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_DIO20_AW :: INT_EVENT2_ISET_DIO20_SET) } } # [doc = "DIO21 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ISET_DIO21_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ISET_DIO21_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT2_ISET_DIO21_SET = 1 , } impl From < INT_EVENT2_ISET_DIO21_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ISET_DIO21_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ISET_DIO21` writer - DIO21 event"]
pub type INT_EVENT2_ISET_DIO21_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ISET_DIO21_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ISET_DIO21_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iset_dio21_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_DIO21_AW :: INT_EVENT2_ISET_DIO21_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_iset_dio21_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_DIO21_AW :: INT_EVENT2_ISET_DIO21_SET) } } # [doc = "DIO22 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ISET_DIO22_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ISET_DIO22_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT2_ISET_DIO22_SET = 1 , } impl From < INT_EVENT2_ISET_DIO22_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ISET_DIO22_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ISET_DIO22` writer - DIO22 event"]
pub type INT_EVENT2_ISET_DIO22_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ISET_DIO22_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ISET_DIO22_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iset_dio22_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_DIO22_AW :: INT_EVENT2_ISET_DIO22_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_iset_dio22_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_DIO22_AW :: INT_EVENT2_ISET_DIO22_SET) } } # [doc = "DIO23 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ISET_DIO23_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ISET_DIO23_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT2_ISET_DIO23_SET = 1 , } impl From < INT_EVENT2_ISET_DIO23_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ISET_DIO23_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ISET_DIO23` writer - DIO23 event"]
pub type INT_EVENT2_ISET_DIO23_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ISET_DIO23_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ISET_DIO23_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iset_dio23_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_DIO23_AW :: INT_EVENT2_ISET_DIO23_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_iset_dio23_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_DIO23_AW :: INT_EVENT2_ISET_DIO23_SET) } } # [doc = "DIO24 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ISET_DIO24_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ISET_DIO24_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT2_ISET_DIO24_SET = 1 , } impl From < INT_EVENT2_ISET_DIO24_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ISET_DIO24_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ISET_DIO24` writer - DIO24 event"]
pub type INT_EVENT2_ISET_DIO24_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ISET_DIO24_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ISET_DIO24_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iset_dio24_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_DIO24_AW :: INT_EVENT2_ISET_DIO24_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_iset_dio24_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_DIO24_AW :: INT_EVENT2_ISET_DIO24_SET) } } # [doc = "DIO25 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ISET_DIO25_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ISET_DIO25_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT2_ISET_DIO25_SET = 1 , } impl From < INT_EVENT2_ISET_DIO25_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ISET_DIO25_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ISET_DIO25` writer - DIO25 event"]
pub type INT_EVENT2_ISET_DIO25_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ISET_DIO25_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ISET_DIO25_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iset_dio25_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_DIO25_AW :: INT_EVENT2_ISET_DIO25_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_iset_dio25_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_DIO25_AW :: INT_EVENT2_ISET_DIO25_SET) } } # [doc = "DIO26 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ISET_DIO26_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ISET_DIO26_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT2_ISET_DIO26_SET = 1 , } impl From < INT_EVENT2_ISET_DIO26_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ISET_DIO26_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ISET_DIO26` writer - DIO26 event"]
pub type INT_EVENT2_ISET_DIO26_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ISET_DIO26_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ISET_DIO26_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iset_dio26_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_DIO26_AW :: INT_EVENT2_ISET_DIO26_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_iset_dio26_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_DIO26_AW :: INT_EVENT2_ISET_DIO26_SET) } } # [doc = "DIO27 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ISET_DIO27_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ISET_DIO27_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT2_ISET_DIO27_SET = 1 , } impl From < INT_EVENT2_ISET_DIO27_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ISET_DIO27_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ISET_DIO27` writer - DIO27 event"]
pub type INT_EVENT2_ISET_DIO27_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ISET_DIO27_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ISET_DIO27_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iset_dio27_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_DIO27_AW :: INT_EVENT2_ISET_DIO27_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_iset_dio27_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_DIO27_AW :: INT_EVENT2_ISET_DIO27_SET) } } # [doc = "DIO28 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ISET_DIO28_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ISET_DIO28_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT2_ISET_DIO28_SET = 1 , } impl From < INT_EVENT2_ISET_DIO28_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ISET_DIO28_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ISET_DIO28` writer - DIO28 event"]
pub type INT_EVENT2_ISET_DIO28_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ISET_DIO28_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ISET_DIO28_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iset_dio28_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_DIO28_AW :: INT_EVENT2_ISET_DIO28_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_iset_dio28_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_DIO28_AW :: INT_EVENT2_ISET_DIO28_SET) } } # [doc = "DIO29 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ISET_DIO29_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ISET_DIO29_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT2_ISET_DIO29_SET = 1 , } impl From < INT_EVENT2_ISET_DIO29_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ISET_DIO29_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ISET_DIO29` writer - DIO29 event"]
pub type INT_EVENT2_ISET_DIO29_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ISET_DIO29_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ISET_DIO29_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iset_dio29_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_DIO29_AW :: INT_EVENT2_ISET_DIO29_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_iset_dio29_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_DIO29_AW :: INT_EVENT2_ISET_DIO29_SET) } } # [doc = "DIO30 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ISET_DIO30_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ISET_DIO30_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT2_ISET_DIO30_SET = 1 , } impl From < INT_EVENT2_ISET_DIO30_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ISET_DIO30_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ISET_DIO30` writer - DIO30 event"]
pub type INT_EVENT2_ISET_DIO30_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ISET_DIO30_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ISET_DIO30_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iset_dio30_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_DIO30_AW :: INT_EVENT2_ISET_DIO30_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_iset_dio30_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_DIO30_AW :: INT_EVENT2_ISET_DIO30_SET) } } # [doc = "DIO31 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ISET_DIO31_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ISET_DIO31_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT2_ISET_DIO31_SET = 1 , } impl From < INT_EVENT2_ISET_DIO31_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ISET_DIO31_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ISET_DIO31` writer - DIO31 event"]
pub type INT_EVENT2_ISET_DIO31_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ISET_DIO31_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ISET_DIO31_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iset_dio31_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_DIO31_AW :: INT_EVENT2_ISET_DIO31_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_iset_dio31_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_DIO31_AW :: INT_EVENT2_ISET_DIO31_SET) } } impl W { # [doc = "Bit 16 - DIO16 event"]
# [inline (always)]
# [must_use]
pub fn int_event2_iset_dio16 (& mut self) -> INT_EVENT2_ISET_DIO16_W < INT_EVENT2_ISET_SPEC , 16 > { INT_EVENT2_ISET_DIO16_W :: new (self) } # [doc = "Bit 17 - DIO17 event"]
# [inline (always)]
# [must_use]
pub fn int_event2_iset_dio17 (& mut self) -> INT_EVENT2_ISET_DIO17_W < INT_EVENT2_ISET_SPEC , 17 > { INT_EVENT2_ISET_DIO17_W :: new (self) } # [doc = "Bit 18 - DIO18 event"]
# [inline (always)]
# [must_use]
pub fn int_event2_iset_dio18 (& mut self) -> INT_EVENT2_ISET_DIO18_W < INT_EVENT2_ISET_SPEC , 18 > { INT_EVENT2_ISET_DIO18_W :: new (self) } # [doc = "Bit 19 - DIO19 event"]
# [inline (always)]
# [must_use]
pub fn int_event2_iset_dio19 (& mut self) -> INT_EVENT2_ISET_DIO19_W < INT_EVENT2_ISET_SPEC , 19 > { INT_EVENT2_ISET_DIO19_W :: new (self) } # [doc = "Bit 20 - DIO20 event"]
# [inline (always)]
# [must_use]
pub fn int_event2_iset_dio20 (& mut self) -> INT_EVENT2_ISET_DIO20_W < INT_EVENT2_ISET_SPEC , 20 > { INT_EVENT2_ISET_DIO20_W :: new (self) } # [doc = "Bit 21 - DIO21 event"]
# [inline (always)]
# [must_use]
pub fn int_event2_iset_dio21 (& mut self) -> INT_EVENT2_ISET_DIO21_W < INT_EVENT2_ISET_SPEC , 21 > { INT_EVENT2_ISET_DIO21_W :: new (self) } # [doc = "Bit 22 - DIO22 event"]
# [inline (always)]
# [must_use]
pub fn int_event2_iset_dio22 (& mut self) -> INT_EVENT2_ISET_DIO22_W < INT_EVENT2_ISET_SPEC , 22 > { INT_EVENT2_ISET_DIO22_W :: new (self) } # [doc = "Bit 23 - DIO23 event"]
# [inline (always)]
# [must_use]
pub fn int_event2_iset_dio23 (& mut self) -> INT_EVENT2_ISET_DIO23_W < INT_EVENT2_ISET_SPEC , 23 > { INT_EVENT2_ISET_DIO23_W :: new (self) } # [doc = "Bit 24 - DIO24 event"]
# [inline (always)]
# [must_use]
pub fn int_event2_iset_dio24 (& mut self) -> INT_EVENT2_ISET_DIO24_W < INT_EVENT2_ISET_SPEC , 24 > { INT_EVENT2_ISET_DIO24_W :: new (self) } # [doc = "Bit 25 - DIO25 event"]
# [inline (always)]
# [must_use]
pub fn int_event2_iset_dio25 (& mut self) -> INT_EVENT2_ISET_DIO25_W < INT_EVENT2_ISET_SPEC , 25 > { INT_EVENT2_ISET_DIO25_W :: new (self) } # [doc = "Bit 26 - DIO26 event"]
# [inline (always)]
# [must_use]
pub fn int_event2_iset_dio26 (& mut self) -> INT_EVENT2_ISET_DIO26_W < INT_EVENT2_ISET_SPEC , 26 > { INT_EVENT2_ISET_DIO26_W :: new (self) } # [doc = "Bit 27 - DIO27 event"]
# [inline (always)]
# [must_use]
pub fn int_event2_iset_dio27 (& mut self) -> INT_EVENT2_ISET_DIO27_W < INT_EVENT2_ISET_SPEC , 27 > { INT_EVENT2_ISET_DIO27_W :: new (self) } # [doc = "Bit 28 - DIO28 event"]
# [inline (always)]
# [must_use]
pub fn int_event2_iset_dio28 (& mut self) -> INT_EVENT2_ISET_DIO28_W < INT_EVENT2_ISET_SPEC , 28 > { INT_EVENT2_ISET_DIO28_W :: new (self) } # [doc = "Bit 29 - DIO29 event"]
# [inline (always)]
# [must_use]
pub fn int_event2_iset_dio29 (& mut self) -> INT_EVENT2_ISET_DIO29_W < INT_EVENT2_ISET_SPEC , 29 > { INT_EVENT2_ISET_DIO29_W :: new (self) } # [doc = "Bit 30 - DIO30 event"]
# [inline (always)]
# [must_use]
pub fn int_event2_iset_dio30 (& mut self) -> INT_EVENT2_ISET_DIO30_W < INT_EVENT2_ISET_SPEC , 30 > { INT_EVENT2_ISET_DIO30_W :: new (self) } # [doc = "Bit 31 - DIO31 event"]
# [inline (always)]
# [must_use]
pub fn int_event2_iset_dio31 (& mut self) -> INT_EVENT2_ISET_DIO31_W < INT_EVENT2_ISET_SPEC , 31 > { INT_EVENT2_ISET_DIO31_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_ISET_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event2_iset::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT2_ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT2_ISET to value 0"]
impl crate :: Resettable for INT_EVENT2_ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_ICLR (w) register accessor: Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_iclr`]
module"]
pub type INT_EVENT2_ICLR = crate :: Reg < int_event2_iclr :: INT_EVENT2_ICLR_SPEC > ; # [doc = "Interrupt clear"]
pub mod int_event2_iclr { # [doc = "Register `INT_EVENT2_ICLR` writer"]
pub type W = crate :: W < INT_EVENT2_ICLR_SPEC > ; # [doc = "DIO16 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ICLR_DIO16_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ICLR_DIO16_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT2_ICLR_DIO16_CLR = 1 , } impl From < INT_EVENT2_ICLR_DIO16_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ICLR_DIO16_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ICLR_DIO16` writer - DIO16 event"]
pub type INT_EVENT2_ICLR_DIO16_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ICLR_DIO16_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ICLR_DIO16_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iclr_dio16_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_DIO16_AW :: INT_EVENT2_ICLR_DIO16_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_iclr_dio16_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_DIO16_AW :: INT_EVENT2_ICLR_DIO16_CLR) } } # [doc = "DIO17 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ICLR_DIO17_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ICLR_DIO17_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT2_ICLR_DIO17_CLR = 1 , } impl From < INT_EVENT2_ICLR_DIO17_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ICLR_DIO17_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ICLR_DIO17` writer - DIO17 event"]
pub type INT_EVENT2_ICLR_DIO17_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ICLR_DIO17_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ICLR_DIO17_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iclr_dio17_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_DIO17_AW :: INT_EVENT2_ICLR_DIO17_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_iclr_dio17_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_DIO17_AW :: INT_EVENT2_ICLR_DIO17_CLR) } } # [doc = "DIO18 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ICLR_DIO18_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ICLR_DIO18_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT2_ICLR_DIO18_CLR = 1 , } impl From < INT_EVENT2_ICLR_DIO18_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ICLR_DIO18_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ICLR_DIO18` writer - DIO18 event"]
pub type INT_EVENT2_ICLR_DIO18_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ICLR_DIO18_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ICLR_DIO18_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iclr_dio18_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_DIO18_AW :: INT_EVENT2_ICLR_DIO18_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_iclr_dio18_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_DIO18_AW :: INT_EVENT2_ICLR_DIO18_CLR) } } # [doc = "DIO19 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ICLR_DIO19_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ICLR_DIO19_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT2_ICLR_DIO19_CLR = 1 , } impl From < INT_EVENT2_ICLR_DIO19_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ICLR_DIO19_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ICLR_DIO19` writer - DIO19 event"]
pub type INT_EVENT2_ICLR_DIO19_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ICLR_DIO19_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ICLR_DIO19_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iclr_dio19_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_DIO19_AW :: INT_EVENT2_ICLR_DIO19_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_iclr_dio19_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_DIO19_AW :: INT_EVENT2_ICLR_DIO19_CLR) } } # [doc = "DIO20 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ICLR_DIO20_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ICLR_DIO20_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT2_ICLR_DIO20_CLR = 1 , } impl From < INT_EVENT2_ICLR_DIO20_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ICLR_DIO20_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ICLR_DIO20` writer - DIO20 event"]
pub type INT_EVENT2_ICLR_DIO20_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ICLR_DIO20_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ICLR_DIO20_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iclr_dio20_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_DIO20_AW :: INT_EVENT2_ICLR_DIO20_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_iclr_dio20_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_DIO20_AW :: INT_EVENT2_ICLR_DIO20_CLR) } } # [doc = "DIO21 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ICLR_DIO21_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ICLR_DIO21_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT2_ICLR_DIO21_CLR = 1 , } impl From < INT_EVENT2_ICLR_DIO21_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ICLR_DIO21_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ICLR_DIO21` writer - DIO21 event"]
pub type INT_EVENT2_ICLR_DIO21_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ICLR_DIO21_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ICLR_DIO21_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iclr_dio21_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_DIO21_AW :: INT_EVENT2_ICLR_DIO21_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_iclr_dio21_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_DIO21_AW :: INT_EVENT2_ICLR_DIO21_CLR) } } # [doc = "DIO22 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ICLR_DIO22_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ICLR_DIO22_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT2_ICLR_DIO22_CLR = 1 , } impl From < INT_EVENT2_ICLR_DIO22_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ICLR_DIO22_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ICLR_DIO22` writer - DIO22 event"]
pub type INT_EVENT2_ICLR_DIO22_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ICLR_DIO22_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ICLR_DIO22_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iclr_dio22_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_DIO22_AW :: INT_EVENT2_ICLR_DIO22_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_iclr_dio22_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_DIO22_AW :: INT_EVENT2_ICLR_DIO22_CLR) } } # [doc = "DIO23 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ICLR_DIO23_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ICLR_DIO23_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT2_ICLR_DIO23_CLR = 1 , } impl From < INT_EVENT2_ICLR_DIO23_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ICLR_DIO23_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ICLR_DIO23` writer - DIO23 event"]
pub type INT_EVENT2_ICLR_DIO23_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ICLR_DIO23_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ICLR_DIO23_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iclr_dio23_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_DIO23_AW :: INT_EVENT2_ICLR_DIO23_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_iclr_dio23_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_DIO23_AW :: INT_EVENT2_ICLR_DIO23_CLR) } } # [doc = "DIO24 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ICLR_DIO24_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ICLR_DIO24_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT2_ICLR_DIO24_CLR = 1 , } impl From < INT_EVENT2_ICLR_DIO24_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ICLR_DIO24_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ICLR_DIO24` writer - DIO24 event"]
pub type INT_EVENT2_ICLR_DIO24_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ICLR_DIO24_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ICLR_DIO24_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iclr_dio24_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_DIO24_AW :: INT_EVENT2_ICLR_DIO24_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_iclr_dio24_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_DIO24_AW :: INT_EVENT2_ICLR_DIO24_CLR) } } # [doc = "DIO25 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ICLR_DIO25_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ICLR_DIO25_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT2_ICLR_DIO25_CLR = 1 , } impl From < INT_EVENT2_ICLR_DIO25_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ICLR_DIO25_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ICLR_DIO25` writer - DIO25 event"]
pub type INT_EVENT2_ICLR_DIO25_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ICLR_DIO25_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ICLR_DIO25_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iclr_dio25_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_DIO25_AW :: INT_EVENT2_ICLR_DIO25_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_iclr_dio25_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_DIO25_AW :: INT_EVENT2_ICLR_DIO25_CLR) } } # [doc = "DIO26 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ICLR_DIO26_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ICLR_DIO26_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT2_ICLR_DIO26_CLR = 1 , } impl From < INT_EVENT2_ICLR_DIO26_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ICLR_DIO26_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ICLR_DIO26` writer - DIO26 event"]
pub type INT_EVENT2_ICLR_DIO26_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ICLR_DIO26_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ICLR_DIO26_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iclr_dio26_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_DIO26_AW :: INT_EVENT2_ICLR_DIO26_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_iclr_dio26_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_DIO26_AW :: INT_EVENT2_ICLR_DIO26_CLR) } } # [doc = "DIO27 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ICLR_DIO27_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ICLR_DIO27_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT2_ICLR_DIO27_CLR = 1 , } impl From < INT_EVENT2_ICLR_DIO27_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ICLR_DIO27_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ICLR_DIO27` writer - DIO27 event"]
pub type INT_EVENT2_ICLR_DIO27_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ICLR_DIO27_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ICLR_DIO27_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iclr_dio27_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_DIO27_AW :: INT_EVENT2_ICLR_DIO27_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_iclr_dio27_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_DIO27_AW :: INT_EVENT2_ICLR_DIO27_CLR) } } # [doc = "DIO28 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ICLR_DIO28_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ICLR_DIO28_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT2_ICLR_DIO28_CLR = 1 , } impl From < INT_EVENT2_ICLR_DIO28_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ICLR_DIO28_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ICLR_DIO28` writer - DIO28 event"]
pub type INT_EVENT2_ICLR_DIO28_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ICLR_DIO28_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ICLR_DIO28_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iclr_dio28_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_DIO28_AW :: INT_EVENT2_ICLR_DIO28_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_iclr_dio28_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_DIO28_AW :: INT_EVENT2_ICLR_DIO28_CLR) } } # [doc = "DIO29 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ICLR_DIO29_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ICLR_DIO29_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT2_ICLR_DIO29_CLR = 1 , } impl From < INT_EVENT2_ICLR_DIO29_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ICLR_DIO29_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ICLR_DIO29` writer - DIO29 event"]
pub type INT_EVENT2_ICLR_DIO29_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ICLR_DIO29_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ICLR_DIO29_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iclr_dio29_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_DIO29_AW :: INT_EVENT2_ICLR_DIO29_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_iclr_dio29_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_DIO29_AW :: INT_EVENT2_ICLR_DIO29_CLR) } } # [doc = "DIO30 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ICLR_DIO30_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ICLR_DIO30_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT2_ICLR_DIO30_CLR = 1 , } impl From < INT_EVENT2_ICLR_DIO30_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ICLR_DIO30_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ICLR_DIO30` writer - DIO30 event"]
pub type INT_EVENT2_ICLR_DIO30_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ICLR_DIO30_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ICLR_DIO30_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iclr_dio30_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_DIO30_AW :: INT_EVENT2_ICLR_DIO30_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_iclr_dio30_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_DIO30_AW :: INT_EVENT2_ICLR_DIO30_CLR) } } # [doc = "DIO31 event\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ICLR_DIO31_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ICLR_DIO31_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT2_ICLR_DIO31_CLR = 1 , } impl From < INT_EVENT2_ICLR_DIO31_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ICLR_DIO31_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ICLR_DIO31` writer - DIO31 event"]
pub type INT_EVENT2_ICLR_DIO31_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ICLR_DIO31_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ICLR_DIO31_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iclr_dio31_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_DIO31_AW :: INT_EVENT2_ICLR_DIO31_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_iclr_dio31_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_DIO31_AW :: INT_EVENT2_ICLR_DIO31_CLR) } } impl W { # [doc = "Bit 16 - DIO16 event"]
# [inline (always)]
# [must_use]
pub fn int_event2_iclr_dio16 (& mut self) -> INT_EVENT2_ICLR_DIO16_W < INT_EVENT2_ICLR_SPEC , 16 > { INT_EVENT2_ICLR_DIO16_W :: new (self) } # [doc = "Bit 17 - DIO17 event"]
# [inline (always)]
# [must_use]
pub fn int_event2_iclr_dio17 (& mut self) -> INT_EVENT2_ICLR_DIO17_W < INT_EVENT2_ICLR_SPEC , 17 > { INT_EVENT2_ICLR_DIO17_W :: new (self) } # [doc = "Bit 18 - DIO18 event"]
# [inline (always)]
# [must_use]
pub fn int_event2_iclr_dio18 (& mut self) -> INT_EVENT2_ICLR_DIO18_W < INT_EVENT2_ICLR_SPEC , 18 > { INT_EVENT2_ICLR_DIO18_W :: new (self) } # [doc = "Bit 19 - DIO19 event"]
# [inline (always)]
# [must_use]
pub fn int_event2_iclr_dio19 (& mut self) -> INT_EVENT2_ICLR_DIO19_W < INT_EVENT2_ICLR_SPEC , 19 > { INT_EVENT2_ICLR_DIO19_W :: new (self) } # [doc = "Bit 20 - DIO20 event"]
# [inline (always)]
# [must_use]
pub fn int_event2_iclr_dio20 (& mut self) -> INT_EVENT2_ICLR_DIO20_W < INT_EVENT2_ICLR_SPEC , 20 > { INT_EVENT2_ICLR_DIO20_W :: new (self) } # [doc = "Bit 21 - DIO21 event"]
# [inline (always)]
# [must_use]
pub fn int_event2_iclr_dio21 (& mut self) -> INT_EVENT2_ICLR_DIO21_W < INT_EVENT2_ICLR_SPEC , 21 > { INT_EVENT2_ICLR_DIO21_W :: new (self) } # [doc = "Bit 22 - DIO22 event"]
# [inline (always)]
# [must_use]
pub fn int_event2_iclr_dio22 (& mut self) -> INT_EVENT2_ICLR_DIO22_W < INT_EVENT2_ICLR_SPEC , 22 > { INT_EVENT2_ICLR_DIO22_W :: new (self) } # [doc = "Bit 23 - DIO23 event"]
# [inline (always)]
# [must_use]
pub fn int_event2_iclr_dio23 (& mut self) -> INT_EVENT2_ICLR_DIO23_W < INT_EVENT2_ICLR_SPEC , 23 > { INT_EVENT2_ICLR_DIO23_W :: new (self) } # [doc = "Bit 24 - DIO24 event"]
# [inline (always)]
# [must_use]
pub fn int_event2_iclr_dio24 (& mut self) -> INT_EVENT2_ICLR_DIO24_W < INT_EVENT2_ICLR_SPEC , 24 > { INT_EVENT2_ICLR_DIO24_W :: new (self) } # [doc = "Bit 25 - DIO25 event"]
# [inline (always)]
# [must_use]
pub fn int_event2_iclr_dio25 (& mut self) -> INT_EVENT2_ICLR_DIO25_W < INT_EVENT2_ICLR_SPEC , 25 > { INT_EVENT2_ICLR_DIO25_W :: new (self) } # [doc = "Bit 26 - DIO26 event"]
# [inline (always)]
# [must_use]
pub fn int_event2_iclr_dio26 (& mut self) -> INT_EVENT2_ICLR_DIO26_W < INT_EVENT2_ICLR_SPEC , 26 > { INT_EVENT2_ICLR_DIO26_W :: new (self) } # [doc = "Bit 27 - DIO27 event"]
# [inline (always)]
# [must_use]
pub fn int_event2_iclr_dio27 (& mut self) -> INT_EVENT2_ICLR_DIO27_W < INT_EVENT2_ICLR_SPEC , 27 > { INT_EVENT2_ICLR_DIO27_W :: new (self) } # [doc = "Bit 28 - DIO28 event"]
# [inline (always)]
# [must_use]
pub fn int_event2_iclr_dio28 (& mut self) -> INT_EVENT2_ICLR_DIO28_W < INT_EVENT2_ICLR_SPEC , 28 > { INT_EVENT2_ICLR_DIO28_W :: new (self) } # [doc = "Bit 29 - DIO29 event"]
# [inline (always)]
# [must_use]
pub fn int_event2_iclr_dio29 (& mut self) -> INT_EVENT2_ICLR_DIO29_W < INT_EVENT2_ICLR_SPEC , 29 > { INT_EVENT2_ICLR_DIO29_W :: new (self) } # [doc = "Bit 30 - DIO30 event"]
# [inline (always)]
# [must_use]
pub fn int_event2_iclr_dio30 (& mut self) -> INT_EVENT2_ICLR_DIO30_W < INT_EVENT2_ICLR_SPEC , 30 > { INT_EVENT2_ICLR_DIO30_W :: new (self) } # [doc = "Bit 31 - DIO31 event"]
# [inline (always)]
# [must_use]
pub fn int_event2_iclr_dio31 (& mut self) -> INT_EVENT2_ICLR_DIO31_W < INT_EVENT2_ICLR_SPEC , 31 > { INT_EVENT2_ICLR_DIO31_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_ICLR_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event2_iclr::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT2_ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT2_ICLR to value 0"]
impl crate :: Resettable for INT_EVENT2_ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "EVT_MODE (rw) register accessor: Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`evt_mode::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@evt_mode`]
module"]
pub type EVT_MODE = crate :: Reg < evt_mode :: EVT_MODE_SPEC > ; # [doc = "Event Mode"]
pub mod evt_mode { # [doc = "Register `EVT_MODE` reader"]
pub type R = crate :: R < EVT_MODE_SPEC > ; # [doc = "Register `EVT_MODE` writer"]
pub type W = crate :: W < EVT_MODE_SPEC > ; # [doc = "Field `EVT_MODE_INT0_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT0\\]"]
pub type EVT_MODE_INT0_CFG_R = crate :: FieldReader < EVT_MODE_INT0_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT0\\]\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_INT0_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_INT0_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_INT0_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_INT0_CFG_HARDWARE = 2 , } impl From < EVT_MODE_INT0_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_INT0_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_INT0_CFG_A { type Ux = u8 ; } impl EVT_MODE_INT0_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_INT0_CFG_A > { match self . bits { 0 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_DISABLE) , 1 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_SOFTWARE) , 2 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_disable (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_software (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_hardware (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_HARDWARE } } # [doc = "Field `EVT_MODE_EVT1_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT1\\]"]
pub type EVT_MODE_EVT1_CFG_R = crate :: FieldReader < EVT_MODE_EVT1_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT1\\]\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_EVT1_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_EVT1_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_EVT1_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_EVT1_CFG_HARDWARE = 2 , } impl From < EVT_MODE_EVT1_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_EVT1_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_EVT1_CFG_A { type Ux = u8 ; } impl EVT_MODE_EVT1_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_EVT1_CFG_A > { match self . bits { 0 => Some (EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_DISABLE) , 1 => Some (EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_SOFTWARE) , 2 => Some (EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_evt1_cfg_disable (& self) -> bool { * self == EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_evt1_cfg_software (& self) -> bool { * self == EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_evt1_cfg_hardware (& self) -> bool { * self == EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_HARDWARE } } # [doc = "Field `EVT_MODE_EVT2_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT2\\]"]
pub type EVT_MODE_EVT2_CFG_R = crate :: FieldReader < EVT_MODE_EVT2_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT2\\]\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_EVT2_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_EVT2_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_EVT2_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_EVT2_CFG_HARDWARE = 2 , } impl From < EVT_MODE_EVT2_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_EVT2_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_EVT2_CFG_A { type Ux = u8 ; } impl EVT_MODE_EVT2_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_EVT2_CFG_A > { match self . bits { 0 => Some (EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_DISABLE) , 1 => Some (EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_SOFTWARE) , 2 => Some (EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_evt2_cfg_disable (& self) -> bool { * self == EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_evt2_cfg_software (& self) -> bool { * self == EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_evt2_cfg_hardware (& self) -> bool { * self == EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_HARDWARE } } impl R { # [doc = "Bits 0:1 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT0\\]"]
# [inline (always)]
pub fn evt_mode_int0_cfg (& self) -> EVT_MODE_INT0_CFG_R { EVT_MODE_INT0_CFG_R :: new ((self . bits & 3) as u8) } # [doc = "Bits 2:3 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT1\\]"]
# [inline (always)]
pub fn evt_mode_evt1_cfg (& self) -> EVT_MODE_EVT1_CFG_R { EVT_MODE_EVT1_CFG_R :: new (((self . bits >> 2) & 3) as u8) } # [doc = "Bits 4:5 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT2\\]"]
# [inline (always)]
pub fn evt_mode_evt2_cfg (& self) -> EVT_MODE_EVT2_CFG_R { EVT_MODE_EVT2_CFG_R :: new (((self . bits >> 4) & 3) as u8) } } impl W { # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`evt_mode::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct EVT_MODE_SPEC ; impl crate :: RegisterSpec for EVT_MODE_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`evt_mode::R`](R) reader structure"]
impl crate :: Readable for EVT_MODE_SPEC { } # [doc = "`write(|w| ..)` method takes [`evt_mode::W`](W) writer structure"]
impl crate :: Writable for EVT_MODE_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets EVT_MODE to value 0"]
impl crate :: Resettable for EVT_MODE_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DESC (r) register accessor: Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@desc`]
module"]
pub type DESC = crate :: Reg < desc :: DESC_SPEC > ; # [doc = "Module Description"]
pub mod desc { # [doc = "Register `DESC` reader"]
pub type R = crate :: R < DESC_SPEC > ; # [doc = "Field `DESC_MINREV` reader - Minor rev of the IP"]
pub type DESC_MINREV_R = crate :: FieldReader ; # [doc = "Field `DESC_MAJREV` reader - Major rev of the IP"]
pub type DESC_MAJREV_R = crate :: FieldReader ; # [doc = "Field `DESC_FEATUREVER` reader - Feature Set for the module *instance*"]
pub type DESC_FEATUREVER_R = crate :: FieldReader ; # [doc = "Field `DESC_MODULEID` reader - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
pub type DESC_MODULEID_R = crate :: FieldReader < u16 > ; impl R { # [doc = "Bits 0:3 - Minor rev of the IP"]
# [inline (always)]
pub fn desc_minrev (& self) -> DESC_MINREV_R { DESC_MINREV_R :: new ((self . bits & 0x0f) as u8) } # [doc = "Bits 4:7 - Major rev of the IP"]
# [inline (always)]
pub fn desc_majrev (& self) -> DESC_MAJREV_R { DESC_MAJREV_R :: new (((self . bits >> 4) & 0x0f) as u8) } # [doc = "Bits 12:15 - Feature Set for the module *instance*"]
# [inline (always)]
pub fn desc_featurever (& self) -> DESC_FEATUREVER_R { DESC_FEATUREVER_R :: new (((self . bits >> 12) & 0x0f) as u8) } # [doc = "Bits 16:31 - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
# [inline (always)]
pub fn desc_moduleid (& self) -> DESC_MODULEID_R { DESC_MODULEID_R :: new (((self . bits >> 16) & 0xffff) as u16) } } # [doc = "Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DESC_SPEC ; impl crate :: RegisterSpec for DESC_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`desc::R`](R) reader structure"]
impl crate :: Readable for DESC_SPEC { } # [doc = "`reset()` method sets DESC to value 0"]
impl crate :: Resettable for DESC_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DOUT3_0 (w) register accessor: Data output 3 to 0\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dout3_0::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dout3_0`]
module"]
pub type DOUT3_0 = crate :: Reg < dout3_0 :: DOUT3_0_SPEC > ; # [doc = "Data output 3 to 0"]
pub mod dout3_0 { # [doc = "Register `DOUT3_0` writer"]
pub type W = crate :: W < DOUT3_0_SPEC > ; # [doc = "This bit sets the value of the pin configured as DIO0 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT3_0_DIO0_AW { # [doc = "0: ZERO"]
DOUT3_0_DIO0_ZERO = 0 , # [doc = "1: ONE"]
DOUT3_0_DIO0_ONE = 1 , } impl From < DOUT3_0_DIO0_AW > for bool { # [inline (always)]
fn from (variant : DOUT3_0_DIO0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUT3_0_DIO0` writer - This bit sets the value of the pin configured as DIO0 when the output is enabled through DOE31_0 register."]
pub type DOUT3_0_DIO0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT3_0_DIO0_AW > ; impl < 'a , REG , const O : u8 > DOUT3_0_DIO0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout3_0_dio0_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT3_0_DIO0_AW :: DOUT3_0_DIO0_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout3_0_dio0_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT3_0_DIO0_AW :: DOUT3_0_DIO0_ONE) } } # [doc = "This bit sets the value of the pin configured as DIO1 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT3_0_DIO1_AW { # [doc = "0: ZERO"]
DOUT3_0_DIO1_ZERO = 0 , # [doc = "1: ONE"]
DOUT3_0_DIO1_ONE = 1 , } impl From < DOUT3_0_DIO1_AW > for bool { # [inline (always)]
fn from (variant : DOUT3_0_DIO1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUT3_0_DIO1` writer - This bit sets the value of the pin configured as DIO1 when the output is enabled through DOE31_0 register."]
pub type DOUT3_0_DIO1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT3_0_DIO1_AW > ; impl < 'a , REG , const O : u8 > DOUT3_0_DIO1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout3_0_dio1_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT3_0_DIO1_AW :: DOUT3_0_DIO1_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout3_0_dio1_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT3_0_DIO1_AW :: DOUT3_0_DIO1_ONE) } } # [doc = "This bit sets the value of the pin configured as DIO2 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT3_0_DIO2_AW { # [doc = "0: ZERO"]
DOUT3_0_DIO2_ZERO = 0 , # [doc = "1: ONE"]
DOUT3_0_DIO2_ONE = 1 , } impl From < DOUT3_0_DIO2_AW > for bool { # [inline (always)]
fn from (variant : DOUT3_0_DIO2_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUT3_0_DIO2` writer - This bit sets the value of the pin configured as DIO2 when the output is enabled through DOE31_0 register."]
pub type DOUT3_0_DIO2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT3_0_DIO2_AW > ; impl < 'a , REG , const O : u8 > DOUT3_0_DIO2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout3_0_dio2_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT3_0_DIO2_AW :: DOUT3_0_DIO2_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout3_0_dio2_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT3_0_DIO2_AW :: DOUT3_0_DIO2_ONE) } } # [doc = "This bit sets the value of the pin configured as DIO3 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT3_0_DIO3_AW { # [doc = "0: ZERO"]
DOUT3_0_DIO3_ZERO = 0 , # [doc = "1: ONE"]
DOUT3_0_DIO3_ONE = 1 , } impl From < DOUT3_0_DIO3_AW > for bool { # [inline (always)]
fn from (variant : DOUT3_0_DIO3_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUT3_0_DIO3` writer - This bit sets the value of the pin configured as DIO3 when the output is enabled through DOE31_0 register."]
pub type DOUT3_0_DIO3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT3_0_DIO3_AW > ; impl < 'a , REG , const O : u8 > DOUT3_0_DIO3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout3_0_dio3_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT3_0_DIO3_AW :: DOUT3_0_DIO3_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout3_0_dio3_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT3_0_DIO3_AW :: DOUT3_0_DIO3_ONE) } } impl W { # [doc = "Bit 0 - This bit sets the value of the pin configured as DIO0 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout3_0_dio0 (& mut self) -> DOUT3_0_DIO0_W < DOUT3_0_SPEC , 0 > { DOUT3_0_DIO0_W :: new (self) } # [doc = "Bit 8 - This bit sets the value of the pin configured as DIO1 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout3_0_dio1 (& mut self) -> DOUT3_0_DIO1_W < DOUT3_0_SPEC , 8 > { DOUT3_0_DIO1_W :: new (self) } # [doc = "Bit 16 - This bit sets the value of the pin configured as DIO2 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout3_0_dio2 (& mut self) -> DOUT3_0_DIO2_W < DOUT3_0_SPEC , 16 > { DOUT3_0_DIO2_W :: new (self) } # [doc = "Bit 24 - This bit sets the value of the pin configured as DIO3 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout3_0_dio3 (& mut self) -> DOUT3_0_DIO3_W < DOUT3_0_SPEC , 24 > { DOUT3_0_DIO3_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Data output 3 to 0\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dout3_0::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DOUT3_0_SPEC ; impl crate :: RegisterSpec for DOUT3_0_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`dout3_0::W`](W) writer structure"]
impl crate :: Writable for DOUT3_0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets DOUT3_0 to value 0"]
impl crate :: Resettable for DOUT3_0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DOUT7_4 (w) register accessor: Data output 7 to 4\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dout7_4::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dout7_4`]
module"]
pub type DOUT7_4 = crate :: Reg < dout7_4 :: DOUT7_4_SPEC > ; # [doc = "Data output 7 to 4"]
pub mod dout7_4 { # [doc = "Register `DOUT7_4` writer"]
pub type W = crate :: W < DOUT7_4_SPEC > ; # [doc = "This bit sets the value of the pin configured as DIO4 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT7_4_DIO4_AW { # [doc = "0: ZERO"]
DOUT7_4_DIO4_ZERO = 0 , # [doc = "1: ONE"]
DOUT7_4_DIO4_ONE = 1 , } impl From < DOUT7_4_DIO4_AW > for bool { # [inline (always)]
fn from (variant : DOUT7_4_DIO4_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUT7_4_DIO4` writer - This bit sets the value of the pin configured as DIO4 when the output is enabled through DOE31_0 register."]
pub type DOUT7_4_DIO4_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT7_4_DIO4_AW > ; impl < 'a , REG , const O : u8 > DOUT7_4_DIO4_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout7_4_dio4_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT7_4_DIO4_AW :: DOUT7_4_DIO4_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout7_4_dio4_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT7_4_DIO4_AW :: DOUT7_4_DIO4_ONE) } } # [doc = "This bit sets the value of the pin configured as DIO5 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT7_4_DIO5_AW { # [doc = "0: ZERO"]
DOUT7_4_DIO5_ZERO = 0 , # [doc = "1: ONE"]
DOUT7_4_DIO5_ONE = 1 , } impl From < DOUT7_4_DIO5_AW > for bool { # [inline (always)]
fn from (variant : DOUT7_4_DIO5_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUT7_4_DIO5` writer - This bit sets the value of the pin configured as DIO5 when the output is enabled through DOE31_0 register."]
pub type DOUT7_4_DIO5_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT7_4_DIO5_AW > ; impl < 'a , REG , const O : u8 > DOUT7_4_DIO5_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout7_4_dio5_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT7_4_DIO5_AW :: DOUT7_4_DIO5_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout7_4_dio5_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT7_4_DIO5_AW :: DOUT7_4_DIO5_ONE) } } # [doc = "This bit sets the value of the pin configured as DIO6 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT7_4_DIO6_AW { # [doc = "0: ZERO"]
DOUT7_4_DIO6_ZERO = 0 , # [doc = "1: ONE"]
DOUT7_4_DIO6_ONE = 1 , } impl From < DOUT7_4_DIO6_AW > for bool { # [inline (always)]
fn from (variant : DOUT7_4_DIO6_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUT7_4_DIO6` writer - This bit sets the value of the pin configured as DIO6 when the output is enabled through DOE31_0 register."]
pub type DOUT7_4_DIO6_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT7_4_DIO6_AW > ; impl < 'a , REG , const O : u8 > DOUT7_4_DIO6_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout7_4_dio6_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT7_4_DIO6_AW :: DOUT7_4_DIO6_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout7_4_dio6_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT7_4_DIO6_AW :: DOUT7_4_DIO6_ONE) } } # [doc = "This bit sets the value of the pin configured as DIO7 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT7_4_DIO7_AW { # [doc = "0: ZERO"]
DOUT7_4_DIO7_ZERO = 0 , # [doc = "1: ONE"]
DOUT7_4_DIO7_ONE = 1 , } impl From < DOUT7_4_DIO7_AW > for bool { # [inline (always)]
fn from (variant : DOUT7_4_DIO7_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUT7_4_DIO7` writer - This bit sets the value of the pin configured as DIO7 when the output is enabled through DOE31_0 register."]
pub type DOUT7_4_DIO7_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT7_4_DIO7_AW > ; impl < 'a , REG , const O : u8 > DOUT7_4_DIO7_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout7_4_dio7_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT7_4_DIO7_AW :: DOUT7_4_DIO7_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout7_4_dio7_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT7_4_DIO7_AW :: DOUT7_4_DIO7_ONE) } } impl W { # [doc = "Bit 0 - This bit sets the value of the pin configured as DIO4 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout7_4_dio4 (& mut self) -> DOUT7_4_DIO4_W < DOUT7_4_SPEC , 0 > { DOUT7_4_DIO4_W :: new (self) } # [doc = "Bit 8 - This bit sets the value of the pin configured as DIO5 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout7_4_dio5 (& mut self) -> DOUT7_4_DIO5_W < DOUT7_4_SPEC , 8 > { DOUT7_4_DIO5_W :: new (self) } # [doc = "Bit 16 - This bit sets the value of the pin configured as DIO6 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout7_4_dio6 (& mut self) -> DOUT7_4_DIO6_W < DOUT7_4_SPEC , 16 > { DOUT7_4_DIO6_W :: new (self) } # [doc = "Bit 24 - This bit sets the value of the pin configured as DIO7 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout7_4_dio7 (& mut self) -> DOUT7_4_DIO7_W < DOUT7_4_SPEC , 24 > { DOUT7_4_DIO7_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Data output 7 to 4\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dout7_4::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DOUT7_4_SPEC ; impl crate :: RegisterSpec for DOUT7_4_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`dout7_4::W`](W) writer structure"]
impl crate :: Writable for DOUT7_4_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets DOUT7_4 to value 0"]
impl crate :: Resettable for DOUT7_4_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DOUT11_8 (w) register accessor: Data output 11 to 8\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dout11_8::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dout11_8`]
module"]
pub type DOUT11_8 = crate :: Reg < dout11_8 :: DOUT11_8_SPEC > ; # [doc = "Data output 11 to 8"]
pub mod dout11_8 { # [doc = "Register `DOUT11_8` writer"]
pub type W = crate :: W < DOUT11_8_SPEC > ; # [doc = "This bit sets the value of the pin configured as DIO8 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT11_8_DIO8_AW { # [doc = "0: ZERO"]
DOUT11_8_DIO8_ZERO = 0 , # [doc = "1: ONE"]
DOUT11_8_DIO8_ONE = 1 , } impl From < DOUT11_8_DIO8_AW > for bool { # [inline (always)]
fn from (variant : DOUT11_8_DIO8_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUT11_8_DIO8` writer - This bit sets the value of the pin configured as DIO8 when the output is enabled through DOE31_0 register."]
pub type DOUT11_8_DIO8_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT11_8_DIO8_AW > ; impl < 'a , REG , const O : u8 > DOUT11_8_DIO8_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout11_8_dio8_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT11_8_DIO8_AW :: DOUT11_8_DIO8_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout11_8_dio8_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT11_8_DIO8_AW :: DOUT11_8_DIO8_ONE) } } # [doc = "This bit sets the value of the pin configured as DIO9 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT11_8_DIO9_AW { # [doc = "0: ZERO"]
DOUT11_8_DIO9_ZERO = 0 , # [doc = "1: ONE"]
DOUT11_8_DIO9_ONE = 1 , } impl From < DOUT11_8_DIO9_AW > for bool { # [inline (always)]
fn from (variant : DOUT11_8_DIO9_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUT11_8_DIO9` writer - This bit sets the value of the pin configured as DIO9 when the output is enabled through DOE31_0 register."]
pub type DOUT11_8_DIO9_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT11_8_DIO9_AW > ; impl < 'a , REG , const O : u8 > DOUT11_8_DIO9_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout11_8_dio9_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT11_8_DIO9_AW :: DOUT11_8_DIO9_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout11_8_dio9_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT11_8_DIO9_AW :: DOUT11_8_DIO9_ONE) } } # [doc = "This bit sets the value of the pin configured as DIO10 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT11_8_DIO10_AW { # [doc = "0: ZERO"]
DOUT11_8_DIO10_ZERO = 0 , # [doc = "1: ONE"]
DOUT11_8_DIO10_ONE = 1 , } impl From < DOUT11_8_DIO10_AW > for bool { # [inline (always)]
fn from (variant : DOUT11_8_DIO10_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUT11_8_DIO10` writer - This bit sets the value of the pin configured as DIO10 when the output is enabled through DOE31_0 register."]
pub type DOUT11_8_DIO10_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT11_8_DIO10_AW > ; impl < 'a , REG , const O : u8 > DOUT11_8_DIO10_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout11_8_dio10_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT11_8_DIO10_AW :: DOUT11_8_DIO10_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout11_8_dio10_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT11_8_DIO10_AW :: DOUT11_8_DIO10_ONE) } } # [doc = "This bit sets the value of the pin configured as DIO11 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT11_8_DIO11_AW { # [doc = "0: ZERO"]
DOUT11_8_DIO11_ZERO = 0 , # [doc = "1: ONE"]
DOUT11_8_DIO11_ONE = 1 , } impl From < DOUT11_8_DIO11_AW > for bool { # [inline (always)]
fn from (variant : DOUT11_8_DIO11_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUT11_8_DIO11` writer - This bit sets the value of the pin configured as DIO11 when the output is enabled through DOE31_0 register."]
pub type DOUT11_8_DIO11_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT11_8_DIO11_AW > ; impl < 'a , REG , const O : u8 > DOUT11_8_DIO11_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout11_8_dio11_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT11_8_DIO11_AW :: DOUT11_8_DIO11_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout11_8_dio11_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT11_8_DIO11_AW :: DOUT11_8_DIO11_ONE) } } impl W { # [doc = "Bit 0 - This bit sets the value of the pin configured as DIO8 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout11_8_dio8 (& mut self) -> DOUT11_8_DIO8_W < DOUT11_8_SPEC , 0 > { DOUT11_8_DIO8_W :: new (self) } # [doc = "Bit 8 - This bit sets the value of the pin configured as DIO9 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout11_8_dio9 (& mut self) -> DOUT11_8_DIO9_W < DOUT11_8_SPEC , 8 > { DOUT11_8_DIO9_W :: new (self) } # [doc = "Bit 16 - This bit sets the value of the pin configured as DIO10 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout11_8_dio10 (& mut self) -> DOUT11_8_DIO10_W < DOUT11_8_SPEC , 16 > { DOUT11_8_DIO10_W :: new (self) } # [doc = "Bit 24 - This bit sets the value of the pin configured as DIO11 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout11_8_dio11 (& mut self) -> DOUT11_8_DIO11_W < DOUT11_8_SPEC , 24 > { DOUT11_8_DIO11_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Data output 11 to 8\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dout11_8::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DOUT11_8_SPEC ; impl crate :: RegisterSpec for DOUT11_8_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`dout11_8::W`](W) writer structure"]
impl crate :: Writable for DOUT11_8_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets DOUT11_8 to value 0"]
impl crate :: Resettable for DOUT11_8_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DOUT15_12 (w) register accessor: Data output 15 to 12\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dout15_12::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dout15_12`]
module"]
pub type DOUT15_12 = crate :: Reg < dout15_12 :: DOUT15_12_SPEC > ; # [doc = "Data output 15 to 12"]
pub mod dout15_12 { # [doc = "Register `DOUT15_12` writer"]
pub type W = crate :: W < DOUT15_12_SPEC > ; # [doc = "This bit sets the value of the pin configured as DIO12 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT15_12_DIO12_AW { # [doc = "0: ZERO"]
DOUT15_12_DIO12_ZERO = 0 , # [doc = "1: ONE"]
DOUT15_12_DIO12_ONE = 1 , } impl From < DOUT15_12_DIO12_AW > for bool { # [inline (always)]
fn from (variant : DOUT15_12_DIO12_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUT15_12_DIO12` writer - This bit sets the value of the pin configured as DIO12 when the output is enabled through DOE31_0 register."]
pub type DOUT15_12_DIO12_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT15_12_DIO12_AW > ; impl < 'a , REG , const O : u8 > DOUT15_12_DIO12_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout15_12_dio12_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT15_12_DIO12_AW :: DOUT15_12_DIO12_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout15_12_dio12_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT15_12_DIO12_AW :: DOUT15_12_DIO12_ONE) } } # [doc = "This bit sets the value of the pin configured as DIO13 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT15_12_DIO13_AW { # [doc = "0: ZERO"]
DOUT15_12_DIO13_ZERO = 0 , # [doc = "1: ONE"]
DOUT15_12_DIO13_ONE = 1 , } impl From < DOUT15_12_DIO13_AW > for bool { # [inline (always)]
fn from (variant : DOUT15_12_DIO13_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUT15_12_DIO13` writer - This bit sets the value of the pin configured as DIO13 when the output is enabled through DOE31_0 register."]
pub type DOUT15_12_DIO13_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT15_12_DIO13_AW > ; impl < 'a , REG , const O : u8 > DOUT15_12_DIO13_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout15_12_dio13_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT15_12_DIO13_AW :: DOUT15_12_DIO13_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout15_12_dio13_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT15_12_DIO13_AW :: DOUT15_12_DIO13_ONE) } } # [doc = "This bit sets the value of the pin configured as DIO14 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT15_12_DIO14_AW { # [doc = "0: ZERO"]
DOUT15_12_DIO14_ZERO = 0 , # [doc = "1: ONE"]
DOUT15_12_DIO14_ONE = 1 , } impl From < DOUT15_12_DIO14_AW > for bool { # [inline (always)]
fn from (variant : DOUT15_12_DIO14_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUT15_12_DIO14` writer - This bit sets the value of the pin configured as DIO14 when the output is enabled through DOE31_0 register."]
pub type DOUT15_12_DIO14_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT15_12_DIO14_AW > ; impl < 'a , REG , const O : u8 > DOUT15_12_DIO14_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout15_12_dio14_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT15_12_DIO14_AW :: DOUT15_12_DIO14_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout15_12_dio14_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT15_12_DIO14_AW :: DOUT15_12_DIO14_ONE) } } # [doc = "This bit sets the value of the pin configured as DIO15 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT15_12_DIO15_AW { # [doc = "0: ZERO"]
DOUT15_12_DIO15_ZERO = 0 , # [doc = "1: ONE"]
DOUT15_12_DIO15_ONE = 1 , } impl From < DOUT15_12_DIO15_AW > for bool { # [inline (always)]
fn from (variant : DOUT15_12_DIO15_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUT15_12_DIO15` writer - This bit sets the value of the pin configured as DIO15 when the output is enabled through DOE31_0 register."]
pub type DOUT15_12_DIO15_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT15_12_DIO15_AW > ; impl < 'a , REG , const O : u8 > DOUT15_12_DIO15_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout15_12_dio15_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT15_12_DIO15_AW :: DOUT15_12_DIO15_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout15_12_dio15_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT15_12_DIO15_AW :: DOUT15_12_DIO15_ONE) } } impl W { # [doc = "Bit 0 - This bit sets the value of the pin configured as DIO12 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout15_12_dio12 (& mut self) -> DOUT15_12_DIO12_W < DOUT15_12_SPEC , 0 > { DOUT15_12_DIO12_W :: new (self) } # [doc = "Bit 8 - This bit sets the value of the pin configured as DIO13 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout15_12_dio13 (& mut self) -> DOUT15_12_DIO13_W < DOUT15_12_SPEC , 8 > { DOUT15_12_DIO13_W :: new (self) } # [doc = "Bit 16 - This bit sets the value of the pin configured as DIO14 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout15_12_dio14 (& mut self) -> DOUT15_12_DIO14_W < DOUT15_12_SPEC , 16 > { DOUT15_12_DIO14_W :: new (self) } # [doc = "Bit 24 - This bit sets the value of the pin configured as DIO15 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout15_12_dio15 (& mut self) -> DOUT15_12_DIO15_W < DOUT15_12_SPEC , 24 > { DOUT15_12_DIO15_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Data output 15 to 12\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dout15_12::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DOUT15_12_SPEC ; impl crate :: RegisterSpec for DOUT15_12_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`dout15_12::W`](W) writer structure"]
impl crate :: Writable for DOUT15_12_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets DOUT15_12 to value 0"]
impl crate :: Resettable for DOUT15_12_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DOUT19_16 (w) register accessor: Data output 19 to 16\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dout19_16::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dout19_16`]
module"]
pub type DOUT19_16 = crate :: Reg < dout19_16 :: DOUT19_16_SPEC > ; # [doc = "Data output 19 to 16"]
pub mod dout19_16 { # [doc = "Register `DOUT19_16` writer"]
pub type W = crate :: W < DOUT19_16_SPEC > ; # [doc = "This bit sets the value of the pin configured as DIO16 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT19_16_DIO16_AW { # [doc = "0: ZERO"]
DOUT19_16_DIO16_ZERO = 0 , # [doc = "1: ONE"]
DOUT19_16_DIO16_ONE = 1 , } impl From < DOUT19_16_DIO16_AW > for bool { # [inline (always)]
fn from (variant : DOUT19_16_DIO16_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUT19_16_DIO16` writer - This bit sets the value of the pin configured as DIO16 when the output is enabled through DOE31_0 register."]
pub type DOUT19_16_DIO16_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT19_16_DIO16_AW > ; impl < 'a , REG , const O : u8 > DOUT19_16_DIO16_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout19_16_dio16_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT19_16_DIO16_AW :: DOUT19_16_DIO16_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout19_16_dio16_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT19_16_DIO16_AW :: DOUT19_16_DIO16_ONE) } } # [doc = "This bit sets the value of the pin configured as DIO17 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT19_16_DIO17_AW { # [doc = "0: ZERO"]
DOUT19_16_DIO17_ZERO = 0 , # [doc = "1: ONE"]
DOUT19_16_DIO17_ONE = 1 , } impl From < DOUT19_16_DIO17_AW > for bool { # [inline (always)]
fn from (variant : DOUT19_16_DIO17_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUT19_16_DIO17` writer - This bit sets the value of the pin configured as DIO17 when the output is enabled through DOE31_0 register."]
pub type DOUT19_16_DIO17_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT19_16_DIO17_AW > ; impl < 'a , REG , const O : u8 > DOUT19_16_DIO17_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout19_16_dio17_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT19_16_DIO17_AW :: DOUT19_16_DIO17_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout19_16_dio17_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT19_16_DIO17_AW :: DOUT19_16_DIO17_ONE) } } # [doc = "This bit sets the value of the pin configured as DIO18 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT19_16_DIO18_AW { # [doc = "0: ZERO"]
DOUT19_16_DIO18_ZERO = 0 , # [doc = "1: ONE"]
DOUT19_16_DIO18_ONE = 1 , } impl From < DOUT19_16_DIO18_AW > for bool { # [inline (always)]
fn from (variant : DOUT19_16_DIO18_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUT19_16_DIO18` writer - This bit sets the value of the pin configured as DIO18 when the output is enabled through DOE31_0 register."]
pub type DOUT19_16_DIO18_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT19_16_DIO18_AW > ; impl < 'a , REG , const O : u8 > DOUT19_16_DIO18_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout19_16_dio18_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT19_16_DIO18_AW :: DOUT19_16_DIO18_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout19_16_dio18_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT19_16_DIO18_AW :: DOUT19_16_DIO18_ONE) } } # [doc = "This bit sets the value of the pin configured as DIO19 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT19_16_DIO19_AW { # [doc = "0: ZERO"]
DOUT19_16_DIO19_ZERO = 0 , # [doc = "1: ONE"]
DOUT19_16_DIO19_ONE = 1 , } impl From < DOUT19_16_DIO19_AW > for bool { # [inline (always)]
fn from (variant : DOUT19_16_DIO19_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUT19_16_DIO19` writer - This bit sets the value of the pin configured as DIO19 when the output is enabled through DOE31_0 register."]
pub type DOUT19_16_DIO19_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT19_16_DIO19_AW > ; impl < 'a , REG , const O : u8 > DOUT19_16_DIO19_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout19_16_dio19_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT19_16_DIO19_AW :: DOUT19_16_DIO19_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout19_16_dio19_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT19_16_DIO19_AW :: DOUT19_16_DIO19_ONE) } } impl W { # [doc = "Bit 0 - This bit sets the value of the pin configured as DIO16 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout19_16_dio16 (& mut self) -> DOUT19_16_DIO16_W < DOUT19_16_SPEC , 0 > { DOUT19_16_DIO16_W :: new (self) } # [doc = "Bit 8 - This bit sets the value of the pin configured as DIO17 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout19_16_dio17 (& mut self) -> DOUT19_16_DIO17_W < DOUT19_16_SPEC , 8 > { DOUT19_16_DIO17_W :: new (self) } # [doc = "Bit 16 - This bit sets the value of the pin configured as DIO18 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout19_16_dio18 (& mut self) -> DOUT19_16_DIO18_W < DOUT19_16_SPEC , 16 > { DOUT19_16_DIO18_W :: new (self) } # [doc = "Bit 24 - This bit sets the value of the pin configured as DIO19 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout19_16_dio19 (& mut self) -> DOUT19_16_DIO19_W < DOUT19_16_SPEC , 24 > { DOUT19_16_DIO19_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Data output 19 to 16\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dout19_16::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DOUT19_16_SPEC ; impl crate :: RegisterSpec for DOUT19_16_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`dout19_16::W`](W) writer structure"]
impl crate :: Writable for DOUT19_16_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets DOUT19_16 to value 0"]
impl crate :: Resettable for DOUT19_16_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DOUT23_20 (w) register accessor: Data output 23 to 20\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dout23_20::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dout23_20`]
module"]
pub type DOUT23_20 = crate :: Reg < dout23_20 :: DOUT23_20_SPEC > ; # [doc = "Data output 23 to 20"]
pub mod dout23_20 { # [doc = "Register `DOUT23_20` writer"]
pub type W = crate :: W < DOUT23_20_SPEC > ; # [doc = "This bit sets the value of the pin configured as DIO20 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT23_20_DIO20_AW { # [doc = "0: ZERO"]
DOUT23_20_DIO20_ZERO = 0 , # [doc = "1: ONE"]
DOUT23_20_DIO20_ONE = 1 , } impl From < DOUT23_20_DIO20_AW > for bool { # [inline (always)]
fn from (variant : DOUT23_20_DIO20_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUT23_20_DIO20` writer - This bit sets the value of the pin configured as DIO20 when the output is enabled through DOE31_0 register."]
pub type DOUT23_20_DIO20_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT23_20_DIO20_AW > ; impl < 'a , REG , const O : u8 > DOUT23_20_DIO20_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout23_20_dio20_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT23_20_DIO20_AW :: DOUT23_20_DIO20_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout23_20_dio20_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT23_20_DIO20_AW :: DOUT23_20_DIO20_ONE) } } # [doc = "This bit sets the value of the pin configured as DIO21 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT23_20_DIO21_AW { # [doc = "0: ZERO"]
DOUT23_20_DIO21_ZERO = 0 , # [doc = "1: ONE"]
DOUT23_20_DIO21_ONE = 1 , } impl From < DOUT23_20_DIO21_AW > for bool { # [inline (always)]
fn from (variant : DOUT23_20_DIO21_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUT23_20_DIO21` writer - This bit sets the value of the pin configured as DIO21 when the output is enabled through DOE31_0 register."]
pub type DOUT23_20_DIO21_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT23_20_DIO21_AW > ; impl < 'a , REG , const O : u8 > DOUT23_20_DIO21_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout23_20_dio21_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT23_20_DIO21_AW :: DOUT23_20_DIO21_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout23_20_dio21_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT23_20_DIO21_AW :: DOUT23_20_DIO21_ONE) } } # [doc = "This bit sets the value of the pin configured as DIO22 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT23_20_DIO22_AW { # [doc = "0: ZERO"]
DOUT23_20_DIO22_ZERO = 0 , # [doc = "1: ONE"]
DOUT23_20_DIO22_ONE = 1 , } impl From < DOUT23_20_DIO22_AW > for bool { # [inline (always)]
fn from (variant : DOUT23_20_DIO22_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUT23_20_DIO22` writer - This bit sets the value of the pin configured as DIO22 when the output is enabled through DOE31_0 register."]
pub type DOUT23_20_DIO22_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT23_20_DIO22_AW > ; impl < 'a , REG , const O : u8 > DOUT23_20_DIO22_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout23_20_dio22_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT23_20_DIO22_AW :: DOUT23_20_DIO22_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout23_20_dio22_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT23_20_DIO22_AW :: DOUT23_20_DIO22_ONE) } } # [doc = "This bit sets the value of the pin configured as DIO23 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT23_20_DIO23_AW { # [doc = "0: ZERO"]
DOUT23_20_DIO23_ZERO = 0 , # [doc = "1: ONE"]
DOUT23_20_DIO23_ONE = 1 , } impl From < DOUT23_20_DIO23_AW > for bool { # [inline (always)]
fn from (variant : DOUT23_20_DIO23_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUT23_20_DIO23` writer - This bit sets the value of the pin configured as DIO23 when the output is enabled through DOE31_0 register."]
pub type DOUT23_20_DIO23_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT23_20_DIO23_AW > ; impl < 'a , REG , const O : u8 > DOUT23_20_DIO23_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout23_20_dio23_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT23_20_DIO23_AW :: DOUT23_20_DIO23_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout23_20_dio23_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT23_20_DIO23_AW :: DOUT23_20_DIO23_ONE) } } impl W { # [doc = "Bit 0 - This bit sets the value of the pin configured as DIO20 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout23_20_dio20 (& mut self) -> DOUT23_20_DIO20_W < DOUT23_20_SPEC , 0 > { DOUT23_20_DIO20_W :: new (self) } # [doc = "Bit 8 - This bit sets the value of the pin configured as DIO21 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout23_20_dio21 (& mut self) -> DOUT23_20_DIO21_W < DOUT23_20_SPEC , 8 > { DOUT23_20_DIO21_W :: new (self) } # [doc = "Bit 16 - This bit sets the value of the pin configured as DIO22 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout23_20_dio22 (& mut self) -> DOUT23_20_DIO22_W < DOUT23_20_SPEC , 16 > { DOUT23_20_DIO22_W :: new (self) } # [doc = "Bit 24 - This bit sets the value of the pin configured as DIO23 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout23_20_dio23 (& mut self) -> DOUT23_20_DIO23_W < DOUT23_20_SPEC , 24 > { DOUT23_20_DIO23_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Data output 23 to 20\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dout23_20::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DOUT23_20_SPEC ; impl crate :: RegisterSpec for DOUT23_20_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`dout23_20::W`](W) writer structure"]
impl crate :: Writable for DOUT23_20_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets DOUT23_20 to value 0"]
impl crate :: Resettable for DOUT23_20_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DOUT27_24 (w) register accessor: Data output 27 to 24\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dout27_24::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dout27_24`]
module"]
pub type DOUT27_24 = crate :: Reg < dout27_24 :: DOUT27_24_SPEC > ; # [doc = "Data output 27 to 24"]
pub mod dout27_24 { # [doc = "Register `DOUT27_24` writer"]
pub type W = crate :: W < DOUT27_24_SPEC > ; # [doc = "This bit sets the value of the pin configured as DIO24 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT27_24_DIO24_AW { # [doc = "0: ZERO"]
DOUT27_24_DIO24_ZERO = 0 , # [doc = "1: ONE"]
DOUT27_24_DIO24_ONE = 1 , } impl From < DOUT27_24_DIO24_AW > for bool { # [inline (always)]
fn from (variant : DOUT27_24_DIO24_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUT27_24_DIO24` writer - This bit sets the value of the pin configured as DIO24 when the output is enabled through DOE31_0 register."]
pub type DOUT27_24_DIO24_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT27_24_DIO24_AW > ; impl < 'a , REG , const O : u8 > DOUT27_24_DIO24_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout27_24_dio24_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT27_24_DIO24_AW :: DOUT27_24_DIO24_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout27_24_dio24_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT27_24_DIO24_AW :: DOUT27_24_DIO24_ONE) } } # [doc = "This bit sets the value of the pin configured as DIO25 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT27_24_DIO25_AW { # [doc = "0: ZERO"]
DOUT27_24_DIO25_ZERO = 0 , # [doc = "1: ONE"]
DOUT27_24_DIO25_ONE = 1 , } impl From < DOUT27_24_DIO25_AW > for bool { # [inline (always)]
fn from (variant : DOUT27_24_DIO25_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUT27_24_DIO25` writer - This bit sets the value of the pin configured as DIO25 when the output is enabled through DOE31_0 register."]
pub type DOUT27_24_DIO25_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT27_24_DIO25_AW > ; impl < 'a , REG , const O : u8 > DOUT27_24_DIO25_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout27_24_dio25_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT27_24_DIO25_AW :: DOUT27_24_DIO25_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout27_24_dio25_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT27_24_DIO25_AW :: DOUT27_24_DIO25_ONE) } } # [doc = "This bit sets the value of the pin configured as DIO26 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT27_24_DIO26_AW { # [doc = "0: ZERO"]
DOUT27_24_DIO26_ZERO = 0 , # [doc = "1: ONE"]
DOUT27_24_DIO26_ONE = 1 , } impl From < DOUT27_24_DIO26_AW > for bool { # [inline (always)]
fn from (variant : DOUT27_24_DIO26_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUT27_24_DIO26` writer - This bit sets the value of the pin configured as DIO26 when the output is enabled through DOE31_0 register."]
pub type DOUT27_24_DIO26_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT27_24_DIO26_AW > ; impl < 'a , REG , const O : u8 > DOUT27_24_DIO26_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout27_24_dio26_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT27_24_DIO26_AW :: DOUT27_24_DIO26_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout27_24_dio26_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT27_24_DIO26_AW :: DOUT27_24_DIO26_ONE) } } # [doc = "This bit sets the value of the pin configured as DIO27 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT27_24_DIO27_AW { # [doc = "0: ZERO"]
DOUT27_24_DIO27_ZERO = 0 , # [doc = "1: ONE"]
DOUT27_24_DIO27_ONE = 1 , } impl From < DOUT27_24_DIO27_AW > for bool { # [inline (always)]
fn from (variant : DOUT27_24_DIO27_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUT27_24_DIO27` writer - This bit sets the value of the pin configured as DIO27 when the output is enabled through DOE31_0 register."]
pub type DOUT27_24_DIO27_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT27_24_DIO27_AW > ; impl < 'a , REG , const O : u8 > DOUT27_24_DIO27_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout27_24_dio27_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT27_24_DIO27_AW :: DOUT27_24_DIO27_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout27_24_dio27_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT27_24_DIO27_AW :: DOUT27_24_DIO27_ONE) } } impl W { # [doc = "Bit 0 - This bit sets the value of the pin configured as DIO24 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout27_24_dio24 (& mut self) -> DOUT27_24_DIO24_W < DOUT27_24_SPEC , 0 > { DOUT27_24_DIO24_W :: new (self) } # [doc = "Bit 8 - This bit sets the value of the pin configured as DIO25 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout27_24_dio25 (& mut self) -> DOUT27_24_DIO25_W < DOUT27_24_SPEC , 8 > { DOUT27_24_DIO25_W :: new (self) } # [doc = "Bit 16 - This bit sets the value of the pin configured as DIO26 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout27_24_dio26 (& mut self) -> DOUT27_24_DIO26_W < DOUT27_24_SPEC , 16 > { DOUT27_24_DIO26_W :: new (self) } # [doc = "Bit 24 - This bit sets the value of the pin configured as DIO27 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout27_24_dio27 (& mut self) -> DOUT27_24_DIO27_W < DOUT27_24_SPEC , 24 > { DOUT27_24_DIO27_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Data output 27 to 24\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dout27_24::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DOUT27_24_SPEC ; impl crate :: RegisterSpec for DOUT27_24_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`dout27_24::W`](W) writer structure"]
impl crate :: Writable for DOUT27_24_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets DOUT27_24 to value 0"]
impl crate :: Resettable for DOUT27_24_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DOUT31_28 (w) register accessor: Data output 31 to 28\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dout31_28::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dout31_28`]
module"]
pub type DOUT31_28 = crate :: Reg < dout31_28 :: DOUT31_28_SPEC > ; # [doc = "Data output 31 to 28"]
pub mod dout31_28 { # [doc = "Register `DOUT31_28` writer"]
pub type W = crate :: W < DOUT31_28_SPEC > ; # [doc = "This bit sets the value of the pin configured as DIO28 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_28_DIO28_AW { # [doc = "0: ZERO"]
DOUT31_28_DIO28_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_28_DIO28_ONE = 1 , } impl From < DOUT31_28_DIO28_AW > for bool { # [inline (always)]
fn from (variant : DOUT31_28_DIO28_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUT31_28_DIO28` writer - This bit sets the value of the pin configured as DIO28 when the output is enabled through DOE31_0 register."]
pub type DOUT31_28_DIO28_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_28_DIO28_AW > ; impl < 'a , REG , const O : u8 > DOUT31_28_DIO28_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_28_dio28_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_28_DIO28_AW :: DOUT31_28_DIO28_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_28_dio28_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_28_DIO28_AW :: DOUT31_28_DIO28_ONE) } } # [doc = "This bit sets the value of the pin configured as DIO29 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_28_DIO29_AW { # [doc = "0: ZERO"]
DOUT31_28_DIO29_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_28_DIO29_ONE = 1 , } impl From < DOUT31_28_DIO29_AW > for bool { # [inline (always)]
fn from (variant : DOUT31_28_DIO29_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUT31_28_DIO29` writer - This bit sets the value of the pin configured as DIO29 when the output is enabled through DOE31_0 register."]
pub type DOUT31_28_DIO29_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_28_DIO29_AW > ; impl < 'a , REG , const O : u8 > DOUT31_28_DIO29_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_28_dio29_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_28_DIO29_AW :: DOUT31_28_DIO29_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_28_dio29_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_28_DIO29_AW :: DOUT31_28_DIO29_ONE) } } # [doc = "This bit sets the value of the pin configured as DIO30 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_28_DIO30_AW { # [doc = "0: ZERO"]
DOUT31_28_DIO30_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_28_DIO30_ONE = 1 , } impl From < DOUT31_28_DIO30_AW > for bool { # [inline (always)]
fn from (variant : DOUT31_28_DIO30_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUT31_28_DIO30` writer - This bit sets the value of the pin configured as DIO30 when the output is enabled through DOE31_0 register."]
pub type DOUT31_28_DIO30_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_28_DIO30_AW > ; impl < 'a , REG , const O : u8 > DOUT31_28_DIO30_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_28_dio30_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_28_DIO30_AW :: DOUT31_28_DIO30_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_28_dio30_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_28_DIO30_AW :: DOUT31_28_DIO30_ONE) } } # [doc = "This bit sets the value of the pin configured as DIO31 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_28_DIO31_AW { # [doc = "0: ZERO"]
DOUT31_28_DIO31_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_28_DIO31_ONE = 1 , } impl From < DOUT31_28_DIO31_AW > for bool { # [inline (always)]
fn from (variant : DOUT31_28_DIO31_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUT31_28_DIO31` writer - This bit sets the value of the pin configured as DIO31 when the output is enabled through DOE31_0 register."]
pub type DOUT31_28_DIO31_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_28_DIO31_AW > ; impl < 'a , REG , const O : u8 > DOUT31_28_DIO31_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_28_dio31_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_28_DIO31_AW :: DOUT31_28_DIO31_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_28_dio31_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_28_DIO31_AW :: DOUT31_28_DIO31_ONE) } } impl W { # [doc = "Bit 0 - This bit sets the value of the pin configured as DIO28 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_28_dio28 (& mut self) -> DOUT31_28_DIO28_W < DOUT31_28_SPEC , 0 > { DOUT31_28_DIO28_W :: new (self) } # [doc = "Bit 8 - This bit sets the value of the pin configured as DIO29 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_28_dio29 (& mut self) -> DOUT31_28_DIO29_W < DOUT31_28_SPEC , 8 > { DOUT31_28_DIO29_W :: new (self) } # [doc = "Bit 16 - This bit sets the value of the pin configured as DIO30 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_28_dio30 (& mut self) -> DOUT31_28_DIO30_W < DOUT31_28_SPEC , 16 > { DOUT31_28_DIO30_W :: new (self) } # [doc = "Bit 24 - This bit sets the value of the pin configured as DIO31 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_28_dio31 (& mut self) -> DOUT31_28_DIO31_W < DOUT31_28_SPEC , 24 > { DOUT31_28_DIO31_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Data output 31 to 28\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dout31_28::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DOUT31_28_SPEC ; impl crate :: RegisterSpec for DOUT31_28_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`dout31_28::W`](W) writer structure"]
impl crate :: Writable for DOUT31_28_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets DOUT31_28 to value 0"]
impl crate :: Resettable for DOUT31_28_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DOUT31_0 (rw) register accessor: Data output 31 to 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`dout31_0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dout31_0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dout31_0`]
module"]
pub type DOUT31_0 = crate :: Reg < dout31_0 :: DOUT31_0_SPEC > ; # [doc = "Data output 31 to 0"]
pub mod dout31_0 { # [doc = "Register `DOUT31_0` reader"]
pub type R = crate :: R < DOUT31_0_SPEC > ; # [doc = "Register `DOUT31_0` writer"]
pub type W = crate :: W < DOUT31_0_SPEC > ; # [doc = "Field `DOUT31_0_DIO0` reader - This bit sets the value of the pin configured as DIO0 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO0_R = crate :: BitReader < DOUT31_0_DIO0_A > ; # [doc = "This bit sets the value of the pin configured as DIO0 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_0_DIO0_A { # [doc = "0: ZERO"]
DOUT31_0_DIO0_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_0_DIO0_ONE = 1 , } impl From < DOUT31_0_DIO0_A > for bool { # [inline (always)]
fn from (variant : DOUT31_0_DIO0_A) -> Self { variant as u8 != 0 } } impl DOUT31_0_DIO0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOUT31_0_DIO0_A { match self . bits { false => DOUT31_0_DIO0_A :: DOUT31_0_DIO0_ZERO , true => DOUT31_0_DIO0_A :: DOUT31_0_DIO0_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_dout31_0_dio0_zero (& self) -> bool { * self == DOUT31_0_DIO0_A :: DOUT31_0_DIO0_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_dout31_0_dio0_one (& self) -> bool { * self == DOUT31_0_DIO0_A :: DOUT31_0_DIO0_ONE } } # [doc = "Field `DOUT31_0_DIO0` writer - This bit sets the value of the pin configured as DIO0 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_0_DIO0_A > ; impl < 'a , REG , const O : u8 > DOUT31_0_DIO0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_0_dio0_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO0_A :: DOUT31_0_DIO0_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_0_dio0_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO0_A :: DOUT31_0_DIO0_ONE) } } # [doc = "Field `DOUT31_0_DIO1` reader - This bit sets the value of the pin configured as DIO1 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO1_R = crate :: BitReader < DOUT31_0_DIO1_A > ; # [doc = "This bit sets the value of the pin configured as DIO1 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_0_DIO1_A { # [doc = "0: ZERO"]
DOUT31_0_DIO1_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_0_DIO1_ONE = 1 , } impl From < DOUT31_0_DIO1_A > for bool { # [inline (always)]
fn from (variant : DOUT31_0_DIO1_A) -> Self { variant as u8 != 0 } } impl DOUT31_0_DIO1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOUT31_0_DIO1_A { match self . bits { false => DOUT31_0_DIO1_A :: DOUT31_0_DIO1_ZERO , true => DOUT31_0_DIO1_A :: DOUT31_0_DIO1_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_dout31_0_dio1_zero (& self) -> bool { * self == DOUT31_0_DIO1_A :: DOUT31_0_DIO1_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_dout31_0_dio1_one (& self) -> bool { * self == DOUT31_0_DIO1_A :: DOUT31_0_DIO1_ONE } } # [doc = "Field `DOUT31_0_DIO1` writer - This bit sets the value of the pin configured as DIO1 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_0_DIO1_A > ; impl < 'a , REG , const O : u8 > DOUT31_0_DIO1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_0_dio1_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO1_A :: DOUT31_0_DIO1_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_0_dio1_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO1_A :: DOUT31_0_DIO1_ONE) } } # [doc = "Field `DOUT31_0_DIO2` reader - This bit sets the value of the pin configured as DIO2 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO2_R = crate :: BitReader < DOUT31_0_DIO2_A > ; # [doc = "This bit sets the value of the pin configured as DIO2 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_0_DIO2_A { # [doc = "0: ZERO"]
DOUT31_0_DIO2_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_0_DIO2_ONE = 1 , } impl From < DOUT31_0_DIO2_A > for bool { # [inline (always)]
fn from (variant : DOUT31_0_DIO2_A) -> Self { variant as u8 != 0 } } impl DOUT31_0_DIO2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOUT31_0_DIO2_A { match self . bits { false => DOUT31_0_DIO2_A :: DOUT31_0_DIO2_ZERO , true => DOUT31_0_DIO2_A :: DOUT31_0_DIO2_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_dout31_0_dio2_zero (& self) -> bool { * self == DOUT31_0_DIO2_A :: DOUT31_0_DIO2_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_dout31_0_dio2_one (& self) -> bool { * self == DOUT31_0_DIO2_A :: DOUT31_0_DIO2_ONE } } # [doc = "Field `DOUT31_0_DIO2` writer - This bit sets the value of the pin configured as DIO2 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_0_DIO2_A > ; impl < 'a , REG , const O : u8 > DOUT31_0_DIO2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_0_dio2_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO2_A :: DOUT31_0_DIO2_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_0_dio2_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO2_A :: DOUT31_0_DIO2_ONE) } } # [doc = "Field `DOUT31_0_DIO3` reader - This bit sets the value of the pin configured as DIO3 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO3_R = crate :: BitReader < DOUT31_0_DIO3_A > ; # [doc = "This bit sets the value of the pin configured as DIO3 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_0_DIO3_A { # [doc = "0: ZERO"]
DOUT31_0_DIO3_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_0_DIO3_ONE = 1 , } impl From < DOUT31_0_DIO3_A > for bool { # [inline (always)]
fn from (variant : DOUT31_0_DIO3_A) -> Self { variant as u8 != 0 } } impl DOUT31_0_DIO3_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOUT31_0_DIO3_A { match self . bits { false => DOUT31_0_DIO3_A :: DOUT31_0_DIO3_ZERO , true => DOUT31_0_DIO3_A :: DOUT31_0_DIO3_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_dout31_0_dio3_zero (& self) -> bool { * self == DOUT31_0_DIO3_A :: DOUT31_0_DIO3_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_dout31_0_dio3_one (& self) -> bool { * self == DOUT31_0_DIO3_A :: DOUT31_0_DIO3_ONE } } # [doc = "Field `DOUT31_0_DIO3` writer - This bit sets the value of the pin configured as DIO3 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_0_DIO3_A > ; impl < 'a , REG , const O : u8 > DOUT31_0_DIO3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_0_dio3_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO3_A :: DOUT31_0_DIO3_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_0_dio3_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO3_A :: DOUT31_0_DIO3_ONE) } } # [doc = "Field `DOUT31_0_DIO4` reader - This bit sets the value of the pin configured as DIO4 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO4_R = crate :: BitReader < DOUT31_0_DIO4_A > ; # [doc = "This bit sets the value of the pin configured as DIO4 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_0_DIO4_A { # [doc = "0: ZERO"]
DOUT31_0_DIO4_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_0_DIO4_ONE = 1 , } impl From < DOUT31_0_DIO4_A > for bool { # [inline (always)]
fn from (variant : DOUT31_0_DIO4_A) -> Self { variant as u8 != 0 } } impl DOUT31_0_DIO4_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOUT31_0_DIO4_A { match self . bits { false => DOUT31_0_DIO4_A :: DOUT31_0_DIO4_ZERO , true => DOUT31_0_DIO4_A :: DOUT31_0_DIO4_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_dout31_0_dio4_zero (& self) -> bool { * self == DOUT31_0_DIO4_A :: DOUT31_0_DIO4_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_dout31_0_dio4_one (& self) -> bool { * self == DOUT31_0_DIO4_A :: DOUT31_0_DIO4_ONE } } # [doc = "Field `DOUT31_0_DIO4` writer - This bit sets the value of the pin configured as DIO4 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO4_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_0_DIO4_A > ; impl < 'a , REG , const O : u8 > DOUT31_0_DIO4_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_0_dio4_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO4_A :: DOUT31_0_DIO4_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_0_dio4_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO4_A :: DOUT31_0_DIO4_ONE) } } # [doc = "Field `DOUT31_0_DIO5` reader - This bit sets the value of the pin configured as DIO5 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO5_R = crate :: BitReader < DOUT31_0_DIO5_A > ; # [doc = "This bit sets the value of the pin configured as DIO5 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_0_DIO5_A { # [doc = "0: ZERO"]
DOUT31_0_DIO5_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_0_DIO5_ONE = 1 , } impl From < DOUT31_0_DIO5_A > for bool { # [inline (always)]
fn from (variant : DOUT31_0_DIO5_A) -> Self { variant as u8 != 0 } } impl DOUT31_0_DIO5_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOUT31_0_DIO5_A { match self . bits { false => DOUT31_0_DIO5_A :: DOUT31_0_DIO5_ZERO , true => DOUT31_0_DIO5_A :: DOUT31_0_DIO5_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_dout31_0_dio5_zero (& self) -> bool { * self == DOUT31_0_DIO5_A :: DOUT31_0_DIO5_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_dout31_0_dio5_one (& self) -> bool { * self == DOUT31_0_DIO5_A :: DOUT31_0_DIO5_ONE } } # [doc = "Field `DOUT31_0_DIO5` writer - This bit sets the value of the pin configured as DIO5 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO5_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_0_DIO5_A > ; impl < 'a , REG , const O : u8 > DOUT31_0_DIO5_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_0_dio5_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO5_A :: DOUT31_0_DIO5_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_0_dio5_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO5_A :: DOUT31_0_DIO5_ONE) } } # [doc = "Field `DOUT31_0_DIO6` reader - This bit sets the value of the pin configured as DIO6 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO6_R = crate :: BitReader < DOUT31_0_DIO6_A > ; # [doc = "This bit sets the value of the pin configured as DIO6 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_0_DIO6_A { # [doc = "0: ZERO"]
DOUT31_0_DIO6_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_0_DIO6_ONE = 1 , } impl From < DOUT31_0_DIO6_A > for bool { # [inline (always)]
fn from (variant : DOUT31_0_DIO6_A) -> Self { variant as u8 != 0 } } impl DOUT31_0_DIO6_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOUT31_0_DIO6_A { match self . bits { false => DOUT31_0_DIO6_A :: DOUT31_0_DIO6_ZERO , true => DOUT31_0_DIO6_A :: DOUT31_0_DIO6_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_dout31_0_dio6_zero (& self) -> bool { * self == DOUT31_0_DIO6_A :: DOUT31_0_DIO6_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_dout31_0_dio6_one (& self) -> bool { * self == DOUT31_0_DIO6_A :: DOUT31_0_DIO6_ONE } } # [doc = "Field `DOUT31_0_DIO6` writer - This bit sets the value of the pin configured as DIO6 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO6_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_0_DIO6_A > ; impl < 'a , REG , const O : u8 > DOUT31_0_DIO6_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_0_dio6_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO6_A :: DOUT31_0_DIO6_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_0_dio6_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO6_A :: DOUT31_0_DIO6_ONE) } } # [doc = "Field `DOUT31_0_DIO7` reader - This bit sets the value of the pin configured as DIO7 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO7_R = crate :: BitReader < DOUT31_0_DIO7_A > ; # [doc = "This bit sets the value of the pin configured as DIO7 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_0_DIO7_A { # [doc = "0: ZERO"]
DOUT31_0_DIO7_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_0_DIO7_ONE = 1 , } impl From < DOUT31_0_DIO7_A > for bool { # [inline (always)]
fn from (variant : DOUT31_0_DIO7_A) -> Self { variant as u8 != 0 } } impl DOUT31_0_DIO7_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOUT31_0_DIO7_A { match self . bits { false => DOUT31_0_DIO7_A :: DOUT31_0_DIO7_ZERO , true => DOUT31_0_DIO7_A :: DOUT31_0_DIO7_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_dout31_0_dio7_zero (& self) -> bool { * self == DOUT31_0_DIO7_A :: DOUT31_0_DIO7_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_dout31_0_dio7_one (& self) -> bool { * self == DOUT31_0_DIO7_A :: DOUT31_0_DIO7_ONE } } # [doc = "Field `DOUT31_0_DIO7` writer - This bit sets the value of the pin configured as DIO7 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO7_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_0_DIO7_A > ; impl < 'a , REG , const O : u8 > DOUT31_0_DIO7_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_0_dio7_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO7_A :: DOUT31_0_DIO7_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_0_dio7_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO7_A :: DOUT31_0_DIO7_ONE) } } # [doc = "Field `DOUT31_0_DIO8` reader - This bit sets the value of the pin configured as DIO8 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO8_R = crate :: BitReader < DOUT31_0_DIO8_A > ; # [doc = "This bit sets the value of the pin configured as DIO8 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_0_DIO8_A { # [doc = "0: ZERO"]
DOUT31_0_DIO8_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_0_DIO8_ONE = 1 , } impl From < DOUT31_0_DIO8_A > for bool { # [inline (always)]
fn from (variant : DOUT31_0_DIO8_A) -> Self { variant as u8 != 0 } } impl DOUT31_0_DIO8_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOUT31_0_DIO8_A { match self . bits { false => DOUT31_0_DIO8_A :: DOUT31_0_DIO8_ZERO , true => DOUT31_0_DIO8_A :: DOUT31_0_DIO8_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_dout31_0_dio8_zero (& self) -> bool { * self == DOUT31_0_DIO8_A :: DOUT31_0_DIO8_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_dout31_0_dio8_one (& self) -> bool { * self == DOUT31_0_DIO8_A :: DOUT31_0_DIO8_ONE } } # [doc = "Field `DOUT31_0_DIO8` writer - This bit sets the value of the pin configured as DIO8 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO8_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_0_DIO8_A > ; impl < 'a , REG , const O : u8 > DOUT31_0_DIO8_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_0_dio8_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO8_A :: DOUT31_0_DIO8_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_0_dio8_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO8_A :: DOUT31_0_DIO8_ONE) } } # [doc = "Field `DOUT31_0_DIO9` reader - This bit sets the value of the pin configured as DIO9 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO9_R = crate :: BitReader < DOUT31_0_DIO9_A > ; # [doc = "This bit sets the value of the pin configured as DIO9 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_0_DIO9_A { # [doc = "0: ZERO"]
DOUT31_0_DIO9_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_0_DIO9_ONE = 1 , } impl From < DOUT31_0_DIO9_A > for bool { # [inline (always)]
fn from (variant : DOUT31_0_DIO9_A) -> Self { variant as u8 != 0 } } impl DOUT31_0_DIO9_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOUT31_0_DIO9_A { match self . bits { false => DOUT31_0_DIO9_A :: DOUT31_0_DIO9_ZERO , true => DOUT31_0_DIO9_A :: DOUT31_0_DIO9_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_dout31_0_dio9_zero (& self) -> bool { * self == DOUT31_0_DIO9_A :: DOUT31_0_DIO9_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_dout31_0_dio9_one (& self) -> bool { * self == DOUT31_0_DIO9_A :: DOUT31_0_DIO9_ONE } } # [doc = "Field `DOUT31_0_DIO9` writer - This bit sets the value of the pin configured as DIO9 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO9_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_0_DIO9_A > ; impl < 'a , REG , const O : u8 > DOUT31_0_DIO9_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_0_dio9_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO9_A :: DOUT31_0_DIO9_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_0_dio9_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO9_A :: DOUT31_0_DIO9_ONE) } } # [doc = "Field `DOUT31_0_DIO10` reader - This bit sets the value of the pin configured as DIO10 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO10_R = crate :: BitReader < DOUT31_0_DIO10_A > ; # [doc = "This bit sets the value of the pin configured as DIO10 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_0_DIO10_A { # [doc = "0: ZERO"]
DOUT31_0_DIO10_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_0_DIO10_ONE = 1 , } impl From < DOUT31_0_DIO10_A > for bool { # [inline (always)]
fn from (variant : DOUT31_0_DIO10_A) -> Self { variant as u8 != 0 } } impl DOUT31_0_DIO10_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOUT31_0_DIO10_A { match self . bits { false => DOUT31_0_DIO10_A :: DOUT31_0_DIO10_ZERO , true => DOUT31_0_DIO10_A :: DOUT31_0_DIO10_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_dout31_0_dio10_zero (& self) -> bool { * self == DOUT31_0_DIO10_A :: DOUT31_0_DIO10_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_dout31_0_dio10_one (& self) -> bool { * self == DOUT31_0_DIO10_A :: DOUT31_0_DIO10_ONE } } # [doc = "Field `DOUT31_0_DIO10` writer - This bit sets the value of the pin configured as DIO10 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO10_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_0_DIO10_A > ; impl < 'a , REG , const O : u8 > DOUT31_0_DIO10_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_0_dio10_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO10_A :: DOUT31_0_DIO10_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_0_dio10_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO10_A :: DOUT31_0_DIO10_ONE) } } # [doc = "Field `DOUT31_0_DIO11` reader - This bit sets the value of the pin configured as DIO11 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO11_R = crate :: BitReader < DOUT31_0_DIO11_A > ; # [doc = "This bit sets the value of the pin configured as DIO11 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_0_DIO11_A { # [doc = "0: ZERO"]
DOUT31_0_DIO11_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_0_DIO11_ONE = 1 , } impl From < DOUT31_0_DIO11_A > for bool { # [inline (always)]
fn from (variant : DOUT31_0_DIO11_A) -> Self { variant as u8 != 0 } } impl DOUT31_0_DIO11_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOUT31_0_DIO11_A { match self . bits { false => DOUT31_0_DIO11_A :: DOUT31_0_DIO11_ZERO , true => DOUT31_0_DIO11_A :: DOUT31_0_DIO11_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_dout31_0_dio11_zero (& self) -> bool { * self == DOUT31_0_DIO11_A :: DOUT31_0_DIO11_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_dout31_0_dio11_one (& self) -> bool { * self == DOUT31_0_DIO11_A :: DOUT31_0_DIO11_ONE } } # [doc = "Field `DOUT31_0_DIO11` writer - This bit sets the value of the pin configured as DIO11 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO11_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_0_DIO11_A > ; impl < 'a , REG , const O : u8 > DOUT31_0_DIO11_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_0_dio11_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO11_A :: DOUT31_0_DIO11_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_0_dio11_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO11_A :: DOUT31_0_DIO11_ONE) } } # [doc = "Field `DOUT31_0_DIO12` reader - This bit sets the value of the pin configured as DIO12 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO12_R = crate :: BitReader < DOUT31_0_DIO12_A > ; # [doc = "This bit sets the value of the pin configured as DIO12 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_0_DIO12_A { # [doc = "0: ZERO"]
DOUT31_0_DIO12_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_0_DIO12_ONE = 1 , } impl From < DOUT31_0_DIO12_A > for bool { # [inline (always)]
fn from (variant : DOUT31_0_DIO12_A) -> Self { variant as u8 != 0 } } impl DOUT31_0_DIO12_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOUT31_0_DIO12_A { match self . bits { false => DOUT31_0_DIO12_A :: DOUT31_0_DIO12_ZERO , true => DOUT31_0_DIO12_A :: DOUT31_0_DIO12_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_dout31_0_dio12_zero (& self) -> bool { * self == DOUT31_0_DIO12_A :: DOUT31_0_DIO12_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_dout31_0_dio12_one (& self) -> bool { * self == DOUT31_0_DIO12_A :: DOUT31_0_DIO12_ONE } } # [doc = "Field `DOUT31_0_DIO12` writer - This bit sets the value of the pin configured as DIO12 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO12_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_0_DIO12_A > ; impl < 'a , REG , const O : u8 > DOUT31_0_DIO12_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_0_dio12_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO12_A :: DOUT31_0_DIO12_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_0_dio12_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO12_A :: DOUT31_0_DIO12_ONE) } } # [doc = "Field `DOUT31_0_DIO13` reader - This bit sets the value of the pin configured as DIO13 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO13_R = crate :: BitReader < DOUT31_0_DIO13_A > ; # [doc = "This bit sets the value of the pin configured as DIO13 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_0_DIO13_A { # [doc = "0: ZERO"]
DOUT31_0_DIO13_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_0_DIO13_ONE = 1 , } impl From < DOUT31_0_DIO13_A > for bool { # [inline (always)]
fn from (variant : DOUT31_0_DIO13_A) -> Self { variant as u8 != 0 } } impl DOUT31_0_DIO13_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOUT31_0_DIO13_A { match self . bits { false => DOUT31_0_DIO13_A :: DOUT31_0_DIO13_ZERO , true => DOUT31_0_DIO13_A :: DOUT31_0_DIO13_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_dout31_0_dio13_zero (& self) -> bool { * self == DOUT31_0_DIO13_A :: DOUT31_0_DIO13_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_dout31_0_dio13_one (& self) -> bool { * self == DOUT31_0_DIO13_A :: DOUT31_0_DIO13_ONE } } # [doc = "Field `DOUT31_0_DIO13` writer - This bit sets the value of the pin configured as DIO13 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO13_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_0_DIO13_A > ; impl < 'a , REG , const O : u8 > DOUT31_0_DIO13_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_0_dio13_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO13_A :: DOUT31_0_DIO13_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_0_dio13_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO13_A :: DOUT31_0_DIO13_ONE) } } # [doc = "Field `DOUT31_0_DIO14` reader - This bit sets the value of the pin configured as DIO14 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO14_R = crate :: BitReader < DOUT31_0_DIO14_A > ; # [doc = "This bit sets the value of the pin configured as DIO14 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_0_DIO14_A { # [doc = "0: ZERO"]
DOUT31_0_DIO14_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_0_DIO14_ONE = 1 , } impl From < DOUT31_0_DIO14_A > for bool { # [inline (always)]
fn from (variant : DOUT31_0_DIO14_A) -> Self { variant as u8 != 0 } } impl DOUT31_0_DIO14_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOUT31_0_DIO14_A { match self . bits { false => DOUT31_0_DIO14_A :: DOUT31_0_DIO14_ZERO , true => DOUT31_0_DIO14_A :: DOUT31_0_DIO14_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_dout31_0_dio14_zero (& self) -> bool { * self == DOUT31_0_DIO14_A :: DOUT31_0_DIO14_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_dout31_0_dio14_one (& self) -> bool { * self == DOUT31_0_DIO14_A :: DOUT31_0_DIO14_ONE } } # [doc = "Field `DOUT31_0_DIO14` writer - This bit sets the value of the pin configured as DIO14 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO14_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_0_DIO14_A > ; impl < 'a , REG , const O : u8 > DOUT31_0_DIO14_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_0_dio14_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO14_A :: DOUT31_0_DIO14_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_0_dio14_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO14_A :: DOUT31_0_DIO14_ONE) } } # [doc = "Field `DOUT31_0_DIO15` reader - This bit sets the value of the pin configured as DIO15 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO15_R = crate :: BitReader < DOUT31_0_DIO15_A > ; # [doc = "This bit sets the value of the pin configured as DIO15 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_0_DIO15_A { # [doc = "0: ZERO"]
DOUT31_0_DIO15_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_0_DIO15_ONE = 1 , } impl From < DOUT31_0_DIO15_A > for bool { # [inline (always)]
fn from (variant : DOUT31_0_DIO15_A) -> Self { variant as u8 != 0 } } impl DOUT31_0_DIO15_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOUT31_0_DIO15_A { match self . bits { false => DOUT31_0_DIO15_A :: DOUT31_0_DIO15_ZERO , true => DOUT31_0_DIO15_A :: DOUT31_0_DIO15_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_dout31_0_dio15_zero (& self) -> bool { * self == DOUT31_0_DIO15_A :: DOUT31_0_DIO15_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_dout31_0_dio15_one (& self) -> bool { * self == DOUT31_0_DIO15_A :: DOUT31_0_DIO15_ONE } } # [doc = "Field `DOUT31_0_DIO15` writer - This bit sets the value of the pin configured as DIO15 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO15_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_0_DIO15_A > ; impl < 'a , REG , const O : u8 > DOUT31_0_DIO15_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_0_dio15_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO15_A :: DOUT31_0_DIO15_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_0_dio15_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO15_A :: DOUT31_0_DIO15_ONE) } } # [doc = "Field `DOUT31_0_DIO16` reader - This bit sets the value of the pin configured as DIO16 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO16_R = crate :: BitReader < DOUT31_0_DIO16_A > ; # [doc = "This bit sets the value of the pin configured as DIO16 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_0_DIO16_A { # [doc = "0: ZERO"]
DOUT31_0_DIO16_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_0_DIO16_ONE = 1 , } impl From < DOUT31_0_DIO16_A > for bool { # [inline (always)]
fn from (variant : DOUT31_0_DIO16_A) -> Self { variant as u8 != 0 } } impl DOUT31_0_DIO16_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOUT31_0_DIO16_A { match self . bits { false => DOUT31_0_DIO16_A :: DOUT31_0_DIO16_ZERO , true => DOUT31_0_DIO16_A :: DOUT31_0_DIO16_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_dout31_0_dio16_zero (& self) -> bool { * self == DOUT31_0_DIO16_A :: DOUT31_0_DIO16_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_dout31_0_dio16_one (& self) -> bool { * self == DOUT31_0_DIO16_A :: DOUT31_0_DIO16_ONE } } # [doc = "Field `DOUT31_0_DIO16` writer - This bit sets the value of the pin configured as DIO16 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO16_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_0_DIO16_A > ; impl < 'a , REG , const O : u8 > DOUT31_0_DIO16_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_0_dio16_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO16_A :: DOUT31_0_DIO16_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_0_dio16_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO16_A :: DOUT31_0_DIO16_ONE) } } # [doc = "Field `DOUT31_0_DIO17` reader - This bit sets the value of the pin configured as DIO17 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO17_R = crate :: BitReader < DOUT31_0_DIO17_A > ; # [doc = "This bit sets the value of the pin configured as DIO17 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_0_DIO17_A { # [doc = "0: ZERO"]
DOUT31_0_DIO17_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_0_DIO17_ONE = 1 , } impl From < DOUT31_0_DIO17_A > for bool { # [inline (always)]
fn from (variant : DOUT31_0_DIO17_A) -> Self { variant as u8 != 0 } } impl DOUT31_0_DIO17_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOUT31_0_DIO17_A { match self . bits { false => DOUT31_0_DIO17_A :: DOUT31_0_DIO17_ZERO , true => DOUT31_0_DIO17_A :: DOUT31_0_DIO17_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_dout31_0_dio17_zero (& self) -> bool { * self == DOUT31_0_DIO17_A :: DOUT31_0_DIO17_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_dout31_0_dio17_one (& self) -> bool { * self == DOUT31_0_DIO17_A :: DOUT31_0_DIO17_ONE } } # [doc = "Field `DOUT31_0_DIO17` writer - This bit sets the value of the pin configured as DIO17 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO17_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_0_DIO17_A > ; impl < 'a , REG , const O : u8 > DOUT31_0_DIO17_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_0_dio17_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO17_A :: DOUT31_0_DIO17_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_0_dio17_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO17_A :: DOUT31_0_DIO17_ONE) } } # [doc = "Field `DOUT31_0_DIO18` reader - This bit sets the value of the pin configured as DIO18 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO18_R = crate :: BitReader < DOUT31_0_DIO18_A > ; # [doc = "This bit sets the value of the pin configured as DIO18 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_0_DIO18_A { # [doc = "0: ZERO"]
DOUT31_0_DIO18_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_0_DIO18_ONE = 1 , } impl From < DOUT31_0_DIO18_A > for bool { # [inline (always)]
fn from (variant : DOUT31_0_DIO18_A) -> Self { variant as u8 != 0 } } impl DOUT31_0_DIO18_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOUT31_0_DIO18_A { match self . bits { false => DOUT31_0_DIO18_A :: DOUT31_0_DIO18_ZERO , true => DOUT31_0_DIO18_A :: DOUT31_0_DIO18_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_dout31_0_dio18_zero (& self) -> bool { * self == DOUT31_0_DIO18_A :: DOUT31_0_DIO18_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_dout31_0_dio18_one (& self) -> bool { * self == DOUT31_0_DIO18_A :: DOUT31_0_DIO18_ONE } } # [doc = "Field `DOUT31_0_DIO18` writer - This bit sets the value of the pin configured as DIO18 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO18_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_0_DIO18_A > ; impl < 'a , REG , const O : u8 > DOUT31_0_DIO18_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_0_dio18_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO18_A :: DOUT31_0_DIO18_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_0_dio18_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO18_A :: DOUT31_0_DIO18_ONE) } } # [doc = "Field `DOUT31_0_DIO19` reader - This bit sets the value of the pin configured as DIO19 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO19_R = crate :: BitReader < DOUT31_0_DIO19_A > ; # [doc = "This bit sets the value of the pin configured as DIO19 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_0_DIO19_A { # [doc = "0: ZERO"]
DOUT31_0_DIO19_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_0_DIO19_ONE = 1 , } impl From < DOUT31_0_DIO19_A > for bool { # [inline (always)]
fn from (variant : DOUT31_0_DIO19_A) -> Self { variant as u8 != 0 } } impl DOUT31_0_DIO19_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOUT31_0_DIO19_A { match self . bits { false => DOUT31_0_DIO19_A :: DOUT31_0_DIO19_ZERO , true => DOUT31_0_DIO19_A :: DOUT31_0_DIO19_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_dout31_0_dio19_zero (& self) -> bool { * self == DOUT31_0_DIO19_A :: DOUT31_0_DIO19_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_dout31_0_dio19_one (& self) -> bool { * self == DOUT31_0_DIO19_A :: DOUT31_0_DIO19_ONE } } # [doc = "Field `DOUT31_0_DIO19` writer - This bit sets the value of the pin configured as DIO19 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO19_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_0_DIO19_A > ; impl < 'a , REG , const O : u8 > DOUT31_0_DIO19_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_0_dio19_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO19_A :: DOUT31_0_DIO19_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_0_dio19_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO19_A :: DOUT31_0_DIO19_ONE) } } # [doc = "Field `DOUT31_0_DIO20` reader - This bit sets the value of the pin configured as DIO20 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO20_R = crate :: BitReader < DOUT31_0_DIO20_A > ; # [doc = "This bit sets the value of the pin configured as DIO20 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_0_DIO20_A { # [doc = "0: ZERO"]
DOUT31_0_DIO20_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_0_DIO20_ONE = 1 , } impl From < DOUT31_0_DIO20_A > for bool { # [inline (always)]
fn from (variant : DOUT31_0_DIO20_A) -> Self { variant as u8 != 0 } } impl DOUT31_0_DIO20_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOUT31_0_DIO20_A { match self . bits { false => DOUT31_0_DIO20_A :: DOUT31_0_DIO20_ZERO , true => DOUT31_0_DIO20_A :: DOUT31_0_DIO20_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_dout31_0_dio20_zero (& self) -> bool { * self == DOUT31_0_DIO20_A :: DOUT31_0_DIO20_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_dout31_0_dio20_one (& self) -> bool { * self == DOUT31_0_DIO20_A :: DOUT31_0_DIO20_ONE } } # [doc = "Field `DOUT31_0_DIO20` writer - This bit sets the value of the pin configured as DIO20 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO20_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_0_DIO20_A > ; impl < 'a , REG , const O : u8 > DOUT31_0_DIO20_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_0_dio20_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO20_A :: DOUT31_0_DIO20_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_0_dio20_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO20_A :: DOUT31_0_DIO20_ONE) } } # [doc = "Field `DOUT31_0_DIO21` reader - This bit sets the value of the pin configured as DIO21 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO21_R = crate :: BitReader < DOUT31_0_DIO21_A > ; # [doc = "This bit sets the value of the pin configured as DIO21 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_0_DIO21_A { # [doc = "0: ZERO"]
DOUT31_0_DIO21_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_0_DIO21_ONE = 1 , } impl From < DOUT31_0_DIO21_A > for bool { # [inline (always)]
fn from (variant : DOUT31_0_DIO21_A) -> Self { variant as u8 != 0 } } impl DOUT31_0_DIO21_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOUT31_0_DIO21_A { match self . bits { false => DOUT31_0_DIO21_A :: DOUT31_0_DIO21_ZERO , true => DOUT31_0_DIO21_A :: DOUT31_0_DIO21_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_dout31_0_dio21_zero (& self) -> bool { * self == DOUT31_0_DIO21_A :: DOUT31_0_DIO21_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_dout31_0_dio21_one (& self) -> bool { * self == DOUT31_0_DIO21_A :: DOUT31_0_DIO21_ONE } } # [doc = "Field `DOUT31_0_DIO21` writer - This bit sets the value of the pin configured as DIO21 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO21_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_0_DIO21_A > ; impl < 'a , REG , const O : u8 > DOUT31_0_DIO21_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_0_dio21_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO21_A :: DOUT31_0_DIO21_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_0_dio21_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO21_A :: DOUT31_0_DIO21_ONE) } } # [doc = "Field `DOUT31_0_DIO22` reader - This bit sets the value of the pin configured as DIO22 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO22_R = crate :: BitReader < DOUT31_0_DIO22_A > ; # [doc = "This bit sets the value of the pin configured as DIO22 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_0_DIO22_A { # [doc = "0: ZERO"]
DOUT31_0_DIO22_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_0_DIO22_ONE = 1 , } impl From < DOUT31_0_DIO22_A > for bool { # [inline (always)]
fn from (variant : DOUT31_0_DIO22_A) -> Self { variant as u8 != 0 } } impl DOUT31_0_DIO22_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOUT31_0_DIO22_A { match self . bits { false => DOUT31_0_DIO22_A :: DOUT31_0_DIO22_ZERO , true => DOUT31_0_DIO22_A :: DOUT31_0_DIO22_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_dout31_0_dio22_zero (& self) -> bool { * self == DOUT31_0_DIO22_A :: DOUT31_0_DIO22_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_dout31_0_dio22_one (& self) -> bool { * self == DOUT31_0_DIO22_A :: DOUT31_0_DIO22_ONE } } # [doc = "Field `DOUT31_0_DIO22` writer - This bit sets the value of the pin configured as DIO22 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO22_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_0_DIO22_A > ; impl < 'a , REG , const O : u8 > DOUT31_0_DIO22_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_0_dio22_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO22_A :: DOUT31_0_DIO22_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_0_dio22_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO22_A :: DOUT31_0_DIO22_ONE) } } # [doc = "Field `DOUT31_0_DIO23` reader - This bit sets the value of the pin configured as DIO23 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO23_R = crate :: BitReader < DOUT31_0_DIO23_A > ; # [doc = "This bit sets the value of the pin configured as DIO23 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_0_DIO23_A { # [doc = "0: ZERO"]
DOUT31_0_DIO23_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_0_DIO23_ONE = 1 , } impl From < DOUT31_0_DIO23_A > for bool { # [inline (always)]
fn from (variant : DOUT31_0_DIO23_A) -> Self { variant as u8 != 0 } } impl DOUT31_0_DIO23_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOUT31_0_DIO23_A { match self . bits { false => DOUT31_0_DIO23_A :: DOUT31_0_DIO23_ZERO , true => DOUT31_0_DIO23_A :: DOUT31_0_DIO23_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_dout31_0_dio23_zero (& self) -> bool { * self == DOUT31_0_DIO23_A :: DOUT31_0_DIO23_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_dout31_0_dio23_one (& self) -> bool { * self == DOUT31_0_DIO23_A :: DOUT31_0_DIO23_ONE } } # [doc = "Field `DOUT31_0_DIO23` writer - This bit sets the value of the pin configured as DIO23 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO23_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_0_DIO23_A > ; impl < 'a , REG , const O : u8 > DOUT31_0_DIO23_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_0_dio23_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO23_A :: DOUT31_0_DIO23_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_0_dio23_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO23_A :: DOUT31_0_DIO23_ONE) } } # [doc = "Field `DOUT31_0_DIO24` reader - This bit sets the value of the pin configured as DIO24 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO24_R = crate :: BitReader < DOUT31_0_DIO24_A > ; # [doc = "This bit sets the value of the pin configured as DIO24 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_0_DIO24_A { # [doc = "0: ZERO"]
DOUT31_0_DIO24_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_0_DIO24_ONE = 1 , } impl From < DOUT31_0_DIO24_A > for bool { # [inline (always)]
fn from (variant : DOUT31_0_DIO24_A) -> Self { variant as u8 != 0 } } impl DOUT31_0_DIO24_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOUT31_0_DIO24_A { match self . bits { false => DOUT31_0_DIO24_A :: DOUT31_0_DIO24_ZERO , true => DOUT31_0_DIO24_A :: DOUT31_0_DIO24_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_dout31_0_dio24_zero (& self) -> bool { * self == DOUT31_0_DIO24_A :: DOUT31_0_DIO24_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_dout31_0_dio24_one (& self) -> bool { * self == DOUT31_0_DIO24_A :: DOUT31_0_DIO24_ONE } } # [doc = "Field `DOUT31_0_DIO24` writer - This bit sets the value of the pin configured as DIO24 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO24_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_0_DIO24_A > ; impl < 'a , REG , const O : u8 > DOUT31_0_DIO24_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_0_dio24_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO24_A :: DOUT31_0_DIO24_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_0_dio24_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO24_A :: DOUT31_0_DIO24_ONE) } } # [doc = "Field `DOUT31_0_DIO25` reader - This bit sets the value of the pin configured as DIO25 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO25_R = crate :: BitReader < DOUT31_0_DIO25_A > ; # [doc = "This bit sets the value of the pin configured as DIO25 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_0_DIO25_A { # [doc = "0: ZERO"]
DOUT31_0_DIO25_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_0_DIO25_ONE = 1 , } impl From < DOUT31_0_DIO25_A > for bool { # [inline (always)]
fn from (variant : DOUT31_0_DIO25_A) -> Self { variant as u8 != 0 } } impl DOUT31_0_DIO25_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOUT31_0_DIO25_A { match self . bits { false => DOUT31_0_DIO25_A :: DOUT31_0_DIO25_ZERO , true => DOUT31_0_DIO25_A :: DOUT31_0_DIO25_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_dout31_0_dio25_zero (& self) -> bool { * self == DOUT31_0_DIO25_A :: DOUT31_0_DIO25_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_dout31_0_dio25_one (& self) -> bool { * self == DOUT31_0_DIO25_A :: DOUT31_0_DIO25_ONE } } # [doc = "Field `DOUT31_0_DIO25` writer - This bit sets the value of the pin configured as DIO25 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO25_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_0_DIO25_A > ; impl < 'a , REG , const O : u8 > DOUT31_0_DIO25_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_0_dio25_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO25_A :: DOUT31_0_DIO25_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_0_dio25_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO25_A :: DOUT31_0_DIO25_ONE) } } # [doc = "Field `DOUT31_0_DIO26` reader - This bit sets the value of the pin configured as DIO26 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO26_R = crate :: BitReader < DOUT31_0_DIO26_A > ; # [doc = "This bit sets the value of the pin configured as DIO26 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_0_DIO26_A { # [doc = "0: ZERO"]
DOUT31_0_DIO26_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_0_DIO26_ONE = 1 , } impl From < DOUT31_0_DIO26_A > for bool { # [inline (always)]
fn from (variant : DOUT31_0_DIO26_A) -> Self { variant as u8 != 0 } } impl DOUT31_0_DIO26_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOUT31_0_DIO26_A { match self . bits { false => DOUT31_0_DIO26_A :: DOUT31_0_DIO26_ZERO , true => DOUT31_0_DIO26_A :: DOUT31_0_DIO26_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_dout31_0_dio26_zero (& self) -> bool { * self == DOUT31_0_DIO26_A :: DOUT31_0_DIO26_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_dout31_0_dio26_one (& self) -> bool { * self == DOUT31_0_DIO26_A :: DOUT31_0_DIO26_ONE } } # [doc = "Field `DOUT31_0_DIO26` writer - This bit sets the value of the pin configured as DIO26 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO26_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_0_DIO26_A > ; impl < 'a , REG , const O : u8 > DOUT31_0_DIO26_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_0_dio26_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO26_A :: DOUT31_0_DIO26_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_0_dio26_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO26_A :: DOUT31_0_DIO26_ONE) } } # [doc = "Field `DOUT31_0_DIO27` reader - This bit sets the value of the pin configured as DIO27 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO27_R = crate :: BitReader < DOUT31_0_DIO27_A > ; # [doc = "This bit sets the value of the pin configured as DIO27 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_0_DIO27_A { # [doc = "0: ZERO"]
DOUT31_0_DIO27_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_0_DIO27_ONE = 1 , } impl From < DOUT31_0_DIO27_A > for bool { # [inline (always)]
fn from (variant : DOUT31_0_DIO27_A) -> Self { variant as u8 != 0 } } impl DOUT31_0_DIO27_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOUT31_0_DIO27_A { match self . bits { false => DOUT31_0_DIO27_A :: DOUT31_0_DIO27_ZERO , true => DOUT31_0_DIO27_A :: DOUT31_0_DIO27_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_dout31_0_dio27_zero (& self) -> bool { * self == DOUT31_0_DIO27_A :: DOUT31_0_DIO27_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_dout31_0_dio27_one (& self) -> bool { * self == DOUT31_0_DIO27_A :: DOUT31_0_DIO27_ONE } } # [doc = "Field `DOUT31_0_DIO27` writer - This bit sets the value of the pin configured as DIO27 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO27_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_0_DIO27_A > ; impl < 'a , REG , const O : u8 > DOUT31_0_DIO27_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_0_dio27_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO27_A :: DOUT31_0_DIO27_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_0_dio27_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO27_A :: DOUT31_0_DIO27_ONE) } } # [doc = "Field `DOUT31_0_DIO28` reader - This bit sets the value of the pin configured as DIO28 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO28_R = crate :: BitReader < DOUT31_0_DIO28_A > ; # [doc = "This bit sets the value of the pin configured as DIO28 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_0_DIO28_A { # [doc = "0: ZERO"]
DOUT31_0_DIO28_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_0_DIO28_ONE = 1 , } impl From < DOUT31_0_DIO28_A > for bool { # [inline (always)]
fn from (variant : DOUT31_0_DIO28_A) -> Self { variant as u8 != 0 } } impl DOUT31_0_DIO28_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOUT31_0_DIO28_A { match self . bits { false => DOUT31_0_DIO28_A :: DOUT31_0_DIO28_ZERO , true => DOUT31_0_DIO28_A :: DOUT31_0_DIO28_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_dout31_0_dio28_zero (& self) -> bool { * self == DOUT31_0_DIO28_A :: DOUT31_0_DIO28_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_dout31_0_dio28_one (& self) -> bool { * self == DOUT31_0_DIO28_A :: DOUT31_0_DIO28_ONE } } # [doc = "Field `DOUT31_0_DIO28` writer - This bit sets the value of the pin configured as DIO28 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO28_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_0_DIO28_A > ; impl < 'a , REG , const O : u8 > DOUT31_0_DIO28_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_0_dio28_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO28_A :: DOUT31_0_DIO28_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_0_dio28_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO28_A :: DOUT31_0_DIO28_ONE) } } # [doc = "Field `DOUT31_0_DIO29` reader - This bit sets the value of the pin configured as DIO29 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO29_R = crate :: BitReader < DOUT31_0_DIO29_A > ; # [doc = "This bit sets the value of the pin configured as DIO29 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_0_DIO29_A { # [doc = "0: ZERO"]
DOUT31_0_DIO29_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_0_DIO29_ONE = 1 , } impl From < DOUT31_0_DIO29_A > for bool { # [inline (always)]
fn from (variant : DOUT31_0_DIO29_A) -> Self { variant as u8 != 0 } } impl DOUT31_0_DIO29_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOUT31_0_DIO29_A { match self . bits { false => DOUT31_0_DIO29_A :: DOUT31_0_DIO29_ZERO , true => DOUT31_0_DIO29_A :: DOUT31_0_DIO29_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_dout31_0_dio29_zero (& self) -> bool { * self == DOUT31_0_DIO29_A :: DOUT31_0_DIO29_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_dout31_0_dio29_one (& self) -> bool { * self == DOUT31_0_DIO29_A :: DOUT31_0_DIO29_ONE } } # [doc = "Field `DOUT31_0_DIO29` writer - This bit sets the value of the pin configured as DIO29 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO29_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_0_DIO29_A > ; impl < 'a , REG , const O : u8 > DOUT31_0_DIO29_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_0_dio29_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO29_A :: DOUT31_0_DIO29_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_0_dio29_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO29_A :: DOUT31_0_DIO29_ONE) } } # [doc = "Field `DOUT31_0_DIO30` reader - This bit sets the value of the pin configured as DIO30 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO30_R = crate :: BitReader < DOUT31_0_DIO30_A > ; # [doc = "This bit sets the value of the pin configured as DIO30 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_0_DIO30_A { # [doc = "0: ZERO"]
DOUT31_0_DIO30_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_0_DIO30_ONE = 1 , } impl From < DOUT31_0_DIO30_A > for bool { # [inline (always)]
fn from (variant : DOUT31_0_DIO30_A) -> Self { variant as u8 != 0 } } impl DOUT31_0_DIO30_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOUT31_0_DIO30_A { match self . bits { false => DOUT31_0_DIO30_A :: DOUT31_0_DIO30_ZERO , true => DOUT31_0_DIO30_A :: DOUT31_0_DIO30_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_dout31_0_dio30_zero (& self) -> bool { * self == DOUT31_0_DIO30_A :: DOUT31_0_DIO30_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_dout31_0_dio30_one (& self) -> bool { * self == DOUT31_0_DIO30_A :: DOUT31_0_DIO30_ONE } } # [doc = "Field `DOUT31_0_DIO30` writer - This bit sets the value of the pin configured as DIO30 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO30_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_0_DIO30_A > ; impl < 'a , REG , const O : u8 > DOUT31_0_DIO30_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_0_dio30_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO30_A :: DOUT31_0_DIO30_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_0_dio30_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO30_A :: DOUT31_0_DIO30_ONE) } } # [doc = "Field `DOUT31_0_DIO31` reader - This bit sets the value of the pin configured as DIO31 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO31_R = crate :: BitReader < DOUT31_0_DIO31_A > ; # [doc = "This bit sets the value of the pin configured as DIO31 when the output is enabled through DOE31_0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUT31_0_DIO31_A { # [doc = "0: ZERO"]
DOUT31_0_DIO31_ZERO = 0 , # [doc = "1: ONE"]
DOUT31_0_DIO31_ONE = 1 , } impl From < DOUT31_0_DIO31_A > for bool { # [inline (always)]
fn from (variant : DOUT31_0_DIO31_A) -> Self { variant as u8 != 0 } } impl DOUT31_0_DIO31_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOUT31_0_DIO31_A { match self . bits { false => DOUT31_0_DIO31_A :: DOUT31_0_DIO31_ZERO , true => DOUT31_0_DIO31_A :: DOUT31_0_DIO31_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_dout31_0_dio31_zero (& self) -> bool { * self == DOUT31_0_DIO31_A :: DOUT31_0_DIO31_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_dout31_0_dio31_one (& self) -> bool { * self == DOUT31_0_DIO31_A :: DOUT31_0_DIO31_ONE } } # [doc = "Field `DOUT31_0_DIO31` writer - This bit sets the value of the pin configured as DIO31 when the output is enabled through DOE31_0 register."]
pub type DOUT31_0_DIO31_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUT31_0_DIO31_A > ; impl < 'a , REG , const O : u8 > DOUT31_0_DIO31_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ZERO"]
# [inline (always)]
pub fn dout31_0_dio31_zero (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO31_A :: DOUT31_0_DIO31_ZERO) } # [doc = "ONE"]
# [inline (always)]
pub fn dout31_0_dio31_one (self) -> & 'a mut crate :: W < REG > { self . variant (DOUT31_0_DIO31_A :: DOUT31_0_DIO31_ONE) } } impl R { # [doc = "Bit 0 - This bit sets the value of the pin configured as DIO0 when the output is enabled through DOE31_0 register."]
# [inline (always)]
pub fn dout31_0_dio0 (& self) -> DOUT31_0_DIO0_R { DOUT31_0_DIO0_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - This bit sets the value of the pin configured as DIO1 when the output is enabled through DOE31_0 register."]
# [inline (always)]
pub fn dout31_0_dio1 (& self) -> DOUT31_0_DIO1_R { DOUT31_0_DIO1_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - This bit sets the value of the pin configured as DIO2 when the output is enabled through DOE31_0 register."]
# [inline (always)]
pub fn dout31_0_dio2 (& self) -> DOUT31_0_DIO2_R { DOUT31_0_DIO2_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - This bit sets the value of the pin configured as DIO3 when the output is enabled through DOE31_0 register."]
# [inline (always)]
pub fn dout31_0_dio3 (& self) -> DOUT31_0_DIO3_R { DOUT31_0_DIO3_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - This bit sets the value of the pin configured as DIO4 when the output is enabled through DOE31_0 register."]
# [inline (always)]
pub fn dout31_0_dio4 (& self) -> DOUT31_0_DIO4_R { DOUT31_0_DIO4_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - This bit sets the value of the pin configured as DIO5 when the output is enabled through DOE31_0 register."]
# [inline (always)]
pub fn dout31_0_dio5 (& self) -> DOUT31_0_DIO5_R { DOUT31_0_DIO5_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - This bit sets the value of the pin configured as DIO6 when the output is enabled through DOE31_0 register."]
# [inline (always)]
pub fn dout31_0_dio6 (& self) -> DOUT31_0_DIO6_R { DOUT31_0_DIO6_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 7 - This bit sets the value of the pin configured as DIO7 when the output is enabled through DOE31_0 register."]
# [inline (always)]
pub fn dout31_0_dio7 (& self) -> DOUT31_0_DIO7_R { DOUT31_0_DIO7_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - This bit sets the value of the pin configured as DIO8 when the output is enabled through DOE31_0 register."]
# [inline (always)]
pub fn dout31_0_dio8 (& self) -> DOUT31_0_DIO8_R { DOUT31_0_DIO8_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - This bit sets the value of the pin configured as DIO9 when the output is enabled through DOE31_0 register."]
# [inline (always)]
pub fn dout31_0_dio9 (& self) -> DOUT31_0_DIO9_R { DOUT31_0_DIO9_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - This bit sets the value of the pin configured as DIO10 when the output is enabled through DOE31_0 register."]
# [inline (always)]
pub fn dout31_0_dio10 (& self) -> DOUT31_0_DIO10_R { DOUT31_0_DIO10_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bit 11 - This bit sets the value of the pin configured as DIO11 when the output is enabled through DOE31_0 register."]
# [inline (always)]
pub fn dout31_0_dio11 (& self) -> DOUT31_0_DIO11_R { DOUT31_0_DIO11_R :: new (((self . bits >> 11) & 1) != 0) } # [doc = "Bit 12 - This bit sets the value of the pin configured as DIO12 when the output is enabled through DOE31_0 register."]
# [inline (always)]
pub fn dout31_0_dio12 (& self) -> DOUT31_0_DIO12_R { DOUT31_0_DIO12_R :: new (((self . bits >> 12) & 1) != 0) } # [doc = "Bit 13 - This bit sets the value of the pin configured as DIO13 when the output is enabled through DOE31_0 register."]
# [inline (always)]
pub fn dout31_0_dio13 (& self) -> DOUT31_0_DIO13_R { DOUT31_0_DIO13_R :: new (((self . bits >> 13) & 1) != 0) } # [doc = "Bit 14 - This bit sets the value of the pin configured as DIO14 when the output is enabled through DOE31_0 register."]
# [inline (always)]
pub fn dout31_0_dio14 (& self) -> DOUT31_0_DIO14_R { DOUT31_0_DIO14_R :: new (((self . bits >> 14) & 1) != 0) } # [doc = "Bit 15 - This bit sets the value of the pin configured as DIO15 when the output is enabled through DOE31_0 register."]
# [inline (always)]
pub fn dout31_0_dio15 (& self) -> DOUT31_0_DIO15_R { DOUT31_0_DIO15_R :: new (((self . bits >> 15) & 1) != 0) } # [doc = "Bit 16 - This bit sets the value of the pin configured as DIO16 when the output is enabled through DOE31_0 register."]
# [inline (always)]
pub fn dout31_0_dio16 (& self) -> DOUT31_0_DIO16_R { DOUT31_0_DIO16_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 17 - This bit sets the value of the pin configured as DIO17 when the output is enabled through DOE31_0 register."]
# [inline (always)]
pub fn dout31_0_dio17 (& self) -> DOUT31_0_DIO17_R { DOUT31_0_DIO17_R :: new (((self . bits >> 17) & 1) != 0) } # [doc = "Bit 18 - This bit sets the value of the pin configured as DIO18 when the output is enabled through DOE31_0 register."]
# [inline (always)]
pub fn dout31_0_dio18 (& self) -> DOUT31_0_DIO18_R { DOUT31_0_DIO18_R :: new (((self . bits >> 18) & 1) != 0) } # [doc = "Bit 19 - This bit sets the value of the pin configured as DIO19 when the output is enabled through DOE31_0 register."]
# [inline (always)]
pub fn dout31_0_dio19 (& self) -> DOUT31_0_DIO19_R { DOUT31_0_DIO19_R :: new (((self . bits >> 19) & 1) != 0) } # [doc = "Bit 20 - This bit sets the value of the pin configured as DIO20 when the output is enabled through DOE31_0 register."]
# [inline (always)]
pub fn dout31_0_dio20 (& self) -> DOUT31_0_DIO20_R { DOUT31_0_DIO20_R :: new (((self . bits >> 20) & 1) != 0) } # [doc = "Bit 21 - This bit sets the value of the pin configured as DIO21 when the output is enabled through DOE31_0 register."]
# [inline (always)]
pub fn dout31_0_dio21 (& self) -> DOUT31_0_DIO21_R { DOUT31_0_DIO21_R :: new (((self . bits >> 21) & 1) != 0) } # [doc = "Bit 22 - This bit sets the value of the pin configured as DIO22 when the output is enabled through DOE31_0 register."]
# [inline (always)]
pub fn dout31_0_dio22 (& self) -> DOUT31_0_DIO22_R { DOUT31_0_DIO22_R :: new (((self . bits >> 22) & 1) != 0) } # [doc = "Bit 23 - This bit sets the value of the pin configured as DIO23 when the output is enabled through DOE31_0 register."]
# [inline (always)]
pub fn dout31_0_dio23 (& self) -> DOUT31_0_DIO23_R { DOUT31_0_DIO23_R :: new (((self . bits >> 23) & 1) != 0) } # [doc = "Bit 24 - This bit sets the value of the pin configured as DIO24 when the output is enabled through DOE31_0 register."]
# [inline (always)]
pub fn dout31_0_dio24 (& self) -> DOUT31_0_DIO24_R { DOUT31_0_DIO24_R :: new (((self . bits >> 24) & 1) != 0) } # [doc = "Bit 25 - This bit sets the value of the pin configured as DIO25 when the output is enabled through DOE31_0 register."]
# [inline (always)]
pub fn dout31_0_dio25 (& self) -> DOUT31_0_DIO25_R { DOUT31_0_DIO25_R :: new (((self . bits >> 25) & 1) != 0) } # [doc = "Bit 26 - This bit sets the value of the pin configured as DIO26 when the output is enabled through DOE31_0 register."]
# [inline (always)]
pub fn dout31_0_dio26 (& self) -> DOUT31_0_DIO26_R { DOUT31_0_DIO26_R :: new (((self . bits >> 26) & 1) != 0) } # [doc = "Bit 27 - This bit sets the value of the pin configured as DIO27 when the output is enabled through DOE31_0 register."]
# [inline (always)]
pub fn dout31_0_dio27 (& self) -> DOUT31_0_DIO27_R { DOUT31_0_DIO27_R :: new (((self . bits >> 27) & 1) != 0) } # [doc = "Bit 28 - This bit sets the value of the pin configured as DIO28 when the output is enabled through DOE31_0 register."]
# [inline (always)]
pub fn dout31_0_dio28 (& self) -> DOUT31_0_DIO28_R { DOUT31_0_DIO28_R :: new (((self . bits >> 28) & 1) != 0) } # [doc = "Bit 29 - This bit sets the value of the pin configured as DIO29 when the output is enabled through DOE31_0 register."]
# [inline (always)]
pub fn dout31_0_dio29 (& self) -> DOUT31_0_DIO29_R { DOUT31_0_DIO29_R :: new (((self . bits >> 29) & 1) != 0) } # [doc = "Bit 30 - This bit sets the value of the pin configured as DIO30 when the output is enabled through DOE31_0 register."]
# [inline (always)]
pub fn dout31_0_dio30 (& self) -> DOUT31_0_DIO30_R { DOUT31_0_DIO30_R :: new (((self . bits >> 30) & 1) != 0) } # [doc = "Bit 31 - This bit sets the value of the pin configured as DIO31 when the output is enabled through DOE31_0 register."]
# [inline (always)]
pub fn dout31_0_dio31 (& self) -> DOUT31_0_DIO31_R { DOUT31_0_DIO31_R :: new (((self . bits >> 31) & 1) != 0) } } impl W { # [doc = "Bit 0 - This bit sets the value of the pin configured as DIO0 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_0_dio0 (& mut self) -> DOUT31_0_DIO0_W < DOUT31_0_SPEC , 0 > { DOUT31_0_DIO0_W :: new (self) } # [doc = "Bit 1 - This bit sets the value of the pin configured as DIO1 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_0_dio1 (& mut self) -> DOUT31_0_DIO1_W < DOUT31_0_SPEC , 1 > { DOUT31_0_DIO1_W :: new (self) } # [doc = "Bit 2 - This bit sets the value of the pin configured as DIO2 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_0_dio2 (& mut self) -> DOUT31_0_DIO2_W < DOUT31_0_SPEC , 2 > { DOUT31_0_DIO2_W :: new (self) } # [doc = "Bit 3 - This bit sets the value of the pin configured as DIO3 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_0_dio3 (& mut self) -> DOUT31_0_DIO3_W < DOUT31_0_SPEC , 3 > { DOUT31_0_DIO3_W :: new (self) } # [doc = "Bit 4 - This bit sets the value of the pin configured as DIO4 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_0_dio4 (& mut self) -> DOUT31_0_DIO4_W < DOUT31_0_SPEC , 4 > { DOUT31_0_DIO4_W :: new (self) } # [doc = "Bit 5 - This bit sets the value of the pin configured as DIO5 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_0_dio5 (& mut self) -> DOUT31_0_DIO5_W < DOUT31_0_SPEC , 5 > { DOUT31_0_DIO5_W :: new (self) } # [doc = "Bit 6 - This bit sets the value of the pin configured as DIO6 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_0_dio6 (& mut self) -> DOUT31_0_DIO6_W < DOUT31_0_SPEC , 6 > { DOUT31_0_DIO6_W :: new (self) } # [doc = "Bit 7 - This bit sets the value of the pin configured as DIO7 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_0_dio7 (& mut self) -> DOUT31_0_DIO7_W < DOUT31_0_SPEC , 7 > { DOUT31_0_DIO7_W :: new (self) } # [doc = "Bit 8 - This bit sets the value of the pin configured as DIO8 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_0_dio8 (& mut self) -> DOUT31_0_DIO8_W < DOUT31_0_SPEC , 8 > { DOUT31_0_DIO8_W :: new (self) } # [doc = "Bit 9 - This bit sets the value of the pin configured as DIO9 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_0_dio9 (& mut self) -> DOUT31_0_DIO9_W < DOUT31_0_SPEC , 9 > { DOUT31_0_DIO9_W :: new (self) } # [doc = "Bit 10 - This bit sets the value of the pin configured as DIO10 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_0_dio10 (& mut self) -> DOUT31_0_DIO10_W < DOUT31_0_SPEC , 10 > { DOUT31_0_DIO10_W :: new (self) } # [doc = "Bit 11 - This bit sets the value of the pin configured as DIO11 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_0_dio11 (& mut self) -> DOUT31_0_DIO11_W < DOUT31_0_SPEC , 11 > { DOUT31_0_DIO11_W :: new (self) } # [doc = "Bit 12 - This bit sets the value of the pin configured as DIO12 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_0_dio12 (& mut self) -> DOUT31_0_DIO12_W < DOUT31_0_SPEC , 12 > { DOUT31_0_DIO12_W :: new (self) } # [doc = "Bit 13 - This bit sets the value of the pin configured as DIO13 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_0_dio13 (& mut self) -> DOUT31_0_DIO13_W < DOUT31_0_SPEC , 13 > { DOUT31_0_DIO13_W :: new (self) } # [doc = "Bit 14 - This bit sets the value of the pin configured as DIO14 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_0_dio14 (& mut self) -> DOUT31_0_DIO14_W < DOUT31_0_SPEC , 14 > { DOUT31_0_DIO14_W :: new (self) } # [doc = "Bit 15 - This bit sets the value of the pin configured as DIO15 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_0_dio15 (& mut self) -> DOUT31_0_DIO15_W < DOUT31_0_SPEC , 15 > { DOUT31_0_DIO15_W :: new (self) } # [doc = "Bit 16 - This bit sets the value of the pin configured as DIO16 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_0_dio16 (& mut self) -> DOUT31_0_DIO16_W < DOUT31_0_SPEC , 16 > { DOUT31_0_DIO16_W :: new (self) } # [doc = "Bit 17 - This bit sets the value of the pin configured as DIO17 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_0_dio17 (& mut self) -> DOUT31_0_DIO17_W < DOUT31_0_SPEC , 17 > { DOUT31_0_DIO17_W :: new (self) } # [doc = "Bit 18 - This bit sets the value of the pin configured as DIO18 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_0_dio18 (& mut self) -> DOUT31_0_DIO18_W < DOUT31_0_SPEC , 18 > { DOUT31_0_DIO18_W :: new (self) } # [doc = "Bit 19 - This bit sets the value of the pin configured as DIO19 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_0_dio19 (& mut self) -> DOUT31_0_DIO19_W < DOUT31_0_SPEC , 19 > { DOUT31_0_DIO19_W :: new (self) } # [doc = "Bit 20 - This bit sets the value of the pin configured as DIO20 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_0_dio20 (& mut self) -> DOUT31_0_DIO20_W < DOUT31_0_SPEC , 20 > { DOUT31_0_DIO20_W :: new (self) } # [doc = "Bit 21 - This bit sets the value of the pin configured as DIO21 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_0_dio21 (& mut self) -> DOUT31_0_DIO21_W < DOUT31_0_SPEC , 21 > { DOUT31_0_DIO21_W :: new (self) } # [doc = "Bit 22 - This bit sets the value of the pin configured as DIO22 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_0_dio22 (& mut self) -> DOUT31_0_DIO22_W < DOUT31_0_SPEC , 22 > { DOUT31_0_DIO22_W :: new (self) } # [doc = "Bit 23 - This bit sets the value of the pin configured as DIO23 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_0_dio23 (& mut self) -> DOUT31_0_DIO23_W < DOUT31_0_SPEC , 23 > { DOUT31_0_DIO23_W :: new (self) } # [doc = "Bit 24 - This bit sets the value of the pin configured as DIO24 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_0_dio24 (& mut self) -> DOUT31_0_DIO24_W < DOUT31_0_SPEC , 24 > { DOUT31_0_DIO24_W :: new (self) } # [doc = "Bit 25 - This bit sets the value of the pin configured as DIO25 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_0_dio25 (& mut self) -> DOUT31_0_DIO25_W < DOUT31_0_SPEC , 25 > { DOUT31_0_DIO25_W :: new (self) } # [doc = "Bit 26 - This bit sets the value of the pin configured as DIO26 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_0_dio26 (& mut self) -> DOUT31_0_DIO26_W < DOUT31_0_SPEC , 26 > { DOUT31_0_DIO26_W :: new (self) } # [doc = "Bit 27 - This bit sets the value of the pin configured as DIO27 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_0_dio27 (& mut self) -> DOUT31_0_DIO27_W < DOUT31_0_SPEC , 27 > { DOUT31_0_DIO27_W :: new (self) } # [doc = "Bit 28 - This bit sets the value of the pin configured as DIO28 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_0_dio28 (& mut self) -> DOUT31_0_DIO28_W < DOUT31_0_SPEC , 28 > { DOUT31_0_DIO28_W :: new (self) } # [doc = "Bit 29 - This bit sets the value of the pin configured as DIO29 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_0_dio29 (& mut self) -> DOUT31_0_DIO29_W < DOUT31_0_SPEC , 29 > { DOUT31_0_DIO29_W :: new (self) } # [doc = "Bit 30 - This bit sets the value of the pin configured as DIO30 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_0_dio30 (& mut self) -> DOUT31_0_DIO30_W < DOUT31_0_SPEC , 30 > { DOUT31_0_DIO30_W :: new (self) } # [doc = "Bit 31 - This bit sets the value of the pin configured as DIO31 when the output is enabled through DOE31_0 register."]
# [inline (always)]
# [must_use]
pub fn dout31_0_dio31 (& mut self) -> DOUT31_0_DIO31_W < DOUT31_0_SPEC , 31 > { DOUT31_0_DIO31_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Data output 31 to 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`dout31_0::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dout31_0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DOUT31_0_SPEC ; impl crate :: RegisterSpec for DOUT31_0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`dout31_0::R`](R) reader structure"]
impl crate :: Readable for DOUT31_0_SPEC { } # [doc = "`write(|w| ..)` method takes [`dout31_0::W`](W) writer structure"]
impl crate :: Writable for DOUT31_0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets DOUT31_0 to value 0"]
impl crate :: Resettable for DOUT31_0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DOUTSET31_0 (w) register accessor: Data output set 31 to 0\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`doutset31_0::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@doutset31_0`]
module"]
pub type DOUTSET31_0 = crate :: Reg < doutset31_0 :: DOUTSET31_0_SPEC > ; # [doc = "Data output set 31 to 0"]
pub mod doutset31_0 { # [doc = "Register `DOUTSET31_0` writer"]
pub type W = crate :: W < DOUTSET31_0_SPEC > ; # [doc = "Writing 1 to this bit sets the DIO0 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTSET31_0_DIO0_AW { # [doc = "0: NO_EFFECT"]
DOUTSET31_0_DIO0_NO_EFFECT = 0 , # [doc = "1: SET"]
DOUTSET31_0_DIO0_SET = 1 , } impl From < DOUTSET31_0_DIO0_AW > for bool { # [inline (always)]
fn from (variant : DOUTSET31_0_DIO0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTSET31_0_DIO0` writer - Writing 1 to this bit sets the DIO0 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTSET31_0_DIO0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTSET31_0_DIO0_AW > ; impl < 'a , REG , const O : u8 > DOUTSET31_0_DIO0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutset31_0_dio0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO0_AW :: DOUTSET31_0_DIO0_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doutset31_0_dio0_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO0_AW :: DOUTSET31_0_DIO0_SET) } } # [doc = "Writing 1 to this bit sets the DIO1 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTSET31_0_DIO1_AW { # [doc = "0: NO_EFFECT"]
DOUTSET31_0_DIO1_NO_EFFECT = 0 , # [doc = "1: SET"]
DOUTSET31_0_DIO1_SET = 1 , } impl From < DOUTSET31_0_DIO1_AW > for bool { # [inline (always)]
fn from (variant : DOUTSET31_0_DIO1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTSET31_0_DIO1` writer - Writing 1 to this bit sets the DIO1 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTSET31_0_DIO1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTSET31_0_DIO1_AW > ; impl < 'a , REG , const O : u8 > DOUTSET31_0_DIO1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutset31_0_dio1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO1_AW :: DOUTSET31_0_DIO1_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doutset31_0_dio1_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO1_AW :: DOUTSET31_0_DIO1_SET) } } # [doc = "Writing 1 to this bit sets the DIO2 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTSET31_0_DIO2_AW { # [doc = "0: NO_EFFECT"]
DOUTSET31_0_DIO2_NO_EFFECT = 0 , # [doc = "1: SET"]
DOUTSET31_0_DIO2_SET = 1 , } impl From < DOUTSET31_0_DIO2_AW > for bool { # [inline (always)]
fn from (variant : DOUTSET31_0_DIO2_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTSET31_0_DIO2` writer - Writing 1 to this bit sets the DIO2 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTSET31_0_DIO2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTSET31_0_DIO2_AW > ; impl < 'a , REG , const O : u8 > DOUTSET31_0_DIO2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutset31_0_dio2_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO2_AW :: DOUTSET31_0_DIO2_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doutset31_0_dio2_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO2_AW :: DOUTSET31_0_DIO2_SET) } } # [doc = "Writing 1 to this bit sets the DIO3 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTSET31_0_DIO3_AW { # [doc = "0: NO_EFFECT"]
DOUTSET31_0_DIO3_NO_EFFECT = 0 , # [doc = "1: SET"]
DOUTSET31_0_DIO3_SET = 1 , } impl From < DOUTSET31_0_DIO3_AW > for bool { # [inline (always)]
fn from (variant : DOUTSET31_0_DIO3_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTSET31_0_DIO3` writer - Writing 1 to this bit sets the DIO3 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTSET31_0_DIO3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTSET31_0_DIO3_AW > ; impl < 'a , REG , const O : u8 > DOUTSET31_0_DIO3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutset31_0_dio3_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO3_AW :: DOUTSET31_0_DIO3_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doutset31_0_dio3_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO3_AW :: DOUTSET31_0_DIO3_SET) } } # [doc = "Writing 1 to this bit sets the DIO4 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTSET31_0_DIO4_AW { # [doc = "0: NO_EFFECT"]
DOUTSET31_0_DIO4_NO_EFFECT = 0 , # [doc = "1: SET"]
DOUTSET31_0_DIO4_SET = 1 , } impl From < DOUTSET31_0_DIO4_AW > for bool { # [inline (always)]
fn from (variant : DOUTSET31_0_DIO4_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTSET31_0_DIO4` writer - Writing 1 to this bit sets the DIO4 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTSET31_0_DIO4_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTSET31_0_DIO4_AW > ; impl < 'a , REG , const O : u8 > DOUTSET31_0_DIO4_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutset31_0_dio4_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO4_AW :: DOUTSET31_0_DIO4_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doutset31_0_dio4_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO4_AW :: DOUTSET31_0_DIO4_SET) } } # [doc = "Writing 1 to this bit sets the DIO5 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTSET31_0_DIO5_AW { # [doc = "0: NO_EFFECT"]
DOUTSET31_0_DIO5_NO_EFFECT = 0 , # [doc = "1: SET"]
DOUTSET31_0_DIO5_SET = 1 , } impl From < DOUTSET31_0_DIO5_AW > for bool { # [inline (always)]
fn from (variant : DOUTSET31_0_DIO5_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTSET31_0_DIO5` writer - Writing 1 to this bit sets the DIO5 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTSET31_0_DIO5_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTSET31_0_DIO5_AW > ; impl < 'a , REG , const O : u8 > DOUTSET31_0_DIO5_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutset31_0_dio5_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO5_AW :: DOUTSET31_0_DIO5_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doutset31_0_dio5_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO5_AW :: DOUTSET31_0_DIO5_SET) } } # [doc = "Writing 1 to this bit sets the DIO6 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTSET31_0_DIO6_AW { # [doc = "0: NO_EFFECT"]
DOUTSET31_0_DIO6_NO_EFFECT = 0 , # [doc = "1: SET"]
DOUTSET31_0_DIO6_SET = 1 , } impl From < DOUTSET31_0_DIO6_AW > for bool { # [inline (always)]
fn from (variant : DOUTSET31_0_DIO6_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTSET31_0_DIO6` writer - Writing 1 to this bit sets the DIO6 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTSET31_0_DIO6_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTSET31_0_DIO6_AW > ; impl < 'a , REG , const O : u8 > DOUTSET31_0_DIO6_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutset31_0_dio6_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO6_AW :: DOUTSET31_0_DIO6_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doutset31_0_dio6_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO6_AW :: DOUTSET31_0_DIO6_SET) } } # [doc = "Writing 1 to this bit sets the DIO7 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTSET31_0_DIO7_AW { # [doc = "0: NO_EFFECT"]
DOUTSET31_0_DIO7_NO_EFFECT = 0 , # [doc = "1: SET"]
DOUTSET31_0_DIO7_SET = 1 , } impl From < DOUTSET31_0_DIO7_AW > for bool { # [inline (always)]
fn from (variant : DOUTSET31_0_DIO7_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTSET31_0_DIO7` writer - Writing 1 to this bit sets the DIO7 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTSET31_0_DIO7_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTSET31_0_DIO7_AW > ; impl < 'a , REG , const O : u8 > DOUTSET31_0_DIO7_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutset31_0_dio7_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO7_AW :: DOUTSET31_0_DIO7_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doutset31_0_dio7_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO7_AW :: DOUTSET31_0_DIO7_SET) } } # [doc = "Writing 1 to this bit sets the DIO8 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTSET31_0_DIO8_AW { # [doc = "0: NO_EFFECT"]
DOUTSET31_0_DIO8_NO_EFFECT = 0 , # [doc = "1: SET"]
DOUTSET31_0_DIO8_SET = 1 , } impl From < DOUTSET31_0_DIO8_AW > for bool { # [inline (always)]
fn from (variant : DOUTSET31_0_DIO8_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTSET31_0_DIO8` writer - Writing 1 to this bit sets the DIO8 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTSET31_0_DIO8_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTSET31_0_DIO8_AW > ; impl < 'a , REG , const O : u8 > DOUTSET31_0_DIO8_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutset31_0_dio8_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO8_AW :: DOUTSET31_0_DIO8_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doutset31_0_dio8_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO8_AW :: DOUTSET31_0_DIO8_SET) } } # [doc = "Writing 1 to this bit sets the DIO9 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTSET31_0_DIO9_AW { # [doc = "0: NO_EFFECT"]
DOUTSET31_0_DIO9_NO_EFFECT = 0 , # [doc = "1: SET"]
DOUTSET31_0_DIO9_SET = 1 , } impl From < DOUTSET31_0_DIO9_AW > for bool { # [inline (always)]
fn from (variant : DOUTSET31_0_DIO9_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTSET31_0_DIO9` writer - Writing 1 to this bit sets the DIO9 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTSET31_0_DIO9_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTSET31_0_DIO9_AW > ; impl < 'a , REG , const O : u8 > DOUTSET31_0_DIO9_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutset31_0_dio9_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO9_AW :: DOUTSET31_0_DIO9_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doutset31_0_dio9_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO9_AW :: DOUTSET31_0_DIO9_SET) } } # [doc = "Writing 1 to this bit sets the DIO10 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTSET31_0_DIO10_AW { # [doc = "0: NO_EFFECT"]
DOUTSET31_0_DIO10_NO_EFFECT = 0 , # [doc = "1: SET"]
DOUTSET31_0_DIO10_SET = 1 , } impl From < DOUTSET31_0_DIO10_AW > for bool { # [inline (always)]
fn from (variant : DOUTSET31_0_DIO10_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTSET31_0_DIO10` writer - Writing 1 to this bit sets the DIO10 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTSET31_0_DIO10_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTSET31_0_DIO10_AW > ; impl < 'a , REG , const O : u8 > DOUTSET31_0_DIO10_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutset31_0_dio10_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO10_AW :: DOUTSET31_0_DIO10_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doutset31_0_dio10_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO10_AW :: DOUTSET31_0_DIO10_SET) } } # [doc = "Writing 1 to this bit sets the DIO11 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTSET31_0_DIO11_AW { # [doc = "0: NO_EFFECT"]
DOUTSET31_0_DIO11_NO_EFFECT = 0 , # [doc = "1: SET"]
DOUTSET31_0_DIO11_SET = 1 , } impl From < DOUTSET31_0_DIO11_AW > for bool { # [inline (always)]
fn from (variant : DOUTSET31_0_DIO11_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTSET31_0_DIO11` writer - Writing 1 to this bit sets the DIO11 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTSET31_0_DIO11_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTSET31_0_DIO11_AW > ; impl < 'a , REG , const O : u8 > DOUTSET31_0_DIO11_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutset31_0_dio11_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO11_AW :: DOUTSET31_0_DIO11_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doutset31_0_dio11_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO11_AW :: DOUTSET31_0_DIO11_SET) } } # [doc = "Writing 1 to this bit sets the DIO12 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTSET31_0_DIO12_AW { # [doc = "0: NO_EFFECT"]
DOUTSET31_0_DIO12_NO_EFFECT = 0 , # [doc = "1: SET"]
DOUTSET31_0_DIO12_SET = 1 , } impl From < DOUTSET31_0_DIO12_AW > for bool { # [inline (always)]
fn from (variant : DOUTSET31_0_DIO12_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTSET31_0_DIO12` writer - Writing 1 to this bit sets the DIO12 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTSET31_0_DIO12_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTSET31_0_DIO12_AW > ; impl < 'a , REG , const O : u8 > DOUTSET31_0_DIO12_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutset31_0_dio12_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO12_AW :: DOUTSET31_0_DIO12_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doutset31_0_dio12_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO12_AW :: DOUTSET31_0_DIO12_SET) } } # [doc = "Writing 1 to this bit sets the DIO13 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTSET31_0_DIO13_AW { # [doc = "0: NO_EFFECT"]
DOUTSET31_0_DIO13_NO_EFFECT = 0 , # [doc = "1: SET"]
DOUTSET31_0_DIO13_SET = 1 , } impl From < DOUTSET31_0_DIO13_AW > for bool { # [inline (always)]
fn from (variant : DOUTSET31_0_DIO13_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTSET31_0_DIO13` writer - Writing 1 to this bit sets the DIO13 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTSET31_0_DIO13_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTSET31_0_DIO13_AW > ; impl < 'a , REG , const O : u8 > DOUTSET31_0_DIO13_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutset31_0_dio13_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO13_AW :: DOUTSET31_0_DIO13_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doutset31_0_dio13_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO13_AW :: DOUTSET31_0_DIO13_SET) } } # [doc = "Writing 1 to this bit sets the DIO14 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTSET31_0_DIO14_AW { # [doc = "0: NO_EFFECT"]
DOUTSET31_0_DIO14_NO_EFFECT = 0 , # [doc = "1: SET"]
DOUTSET31_0_DIO14_SET = 1 , } impl From < DOUTSET31_0_DIO14_AW > for bool { # [inline (always)]
fn from (variant : DOUTSET31_0_DIO14_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTSET31_0_DIO14` writer - Writing 1 to this bit sets the DIO14 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTSET31_0_DIO14_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTSET31_0_DIO14_AW > ; impl < 'a , REG , const O : u8 > DOUTSET31_0_DIO14_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutset31_0_dio14_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO14_AW :: DOUTSET31_0_DIO14_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doutset31_0_dio14_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO14_AW :: DOUTSET31_0_DIO14_SET) } } # [doc = "Writing 1 to this bit sets the DIO15 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTSET31_0_DIO15_AW { # [doc = "0: NO_EFFECT"]
DOUTSET31_0_DIO15_NO_EFFECT = 0 , # [doc = "1: SET"]
DOUTSET31_0_DIO15_SET = 1 , } impl From < DOUTSET31_0_DIO15_AW > for bool { # [inline (always)]
fn from (variant : DOUTSET31_0_DIO15_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTSET31_0_DIO15` writer - Writing 1 to this bit sets the DIO15 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTSET31_0_DIO15_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTSET31_0_DIO15_AW > ; impl < 'a , REG , const O : u8 > DOUTSET31_0_DIO15_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutset31_0_dio15_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO15_AW :: DOUTSET31_0_DIO15_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doutset31_0_dio15_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO15_AW :: DOUTSET31_0_DIO15_SET) } } # [doc = "Writing 1 to this bit sets the DIO16 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTSET31_0_DIO16_AW { # [doc = "0: NO_EFFECT"]
DOUTSET31_0_DIO16_NO_EFFECT = 0 , # [doc = "1: SET"]
DOUTSET31_0_DIO16_SET = 1 , } impl From < DOUTSET31_0_DIO16_AW > for bool { # [inline (always)]
fn from (variant : DOUTSET31_0_DIO16_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTSET31_0_DIO16` writer - Writing 1 to this bit sets the DIO16 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTSET31_0_DIO16_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTSET31_0_DIO16_AW > ; impl < 'a , REG , const O : u8 > DOUTSET31_0_DIO16_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutset31_0_dio16_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO16_AW :: DOUTSET31_0_DIO16_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doutset31_0_dio16_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO16_AW :: DOUTSET31_0_DIO16_SET) } } # [doc = "Writing 1 to this bit sets the DIO17 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTSET31_0_DIO17_AW { # [doc = "0: NO_EFFECT"]
DOUTSET31_0_DIO17_NO_EFFECT = 0 , # [doc = "1: SET"]
DOUTSET31_0_DIO17_SET = 1 , } impl From < DOUTSET31_0_DIO17_AW > for bool { # [inline (always)]
fn from (variant : DOUTSET31_0_DIO17_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTSET31_0_DIO17` writer - Writing 1 to this bit sets the DIO17 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTSET31_0_DIO17_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTSET31_0_DIO17_AW > ; impl < 'a , REG , const O : u8 > DOUTSET31_0_DIO17_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutset31_0_dio17_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO17_AW :: DOUTSET31_0_DIO17_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doutset31_0_dio17_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO17_AW :: DOUTSET31_0_DIO17_SET) } } # [doc = "Writing 1 to this bit sets the DIO18 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTSET31_0_DIO18_AW { # [doc = "0: NO_EFFECT"]
DOUTSET31_0_DIO18_NO_EFFECT = 0 , # [doc = "1: SET"]
DOUTSET31_0_DIO18_SET = 1 , } impl From < DOUTSET31_0_DIO18_AW > for bool { # [inline (always)]
fn from (variant : DOUTSET31_0_DIO18_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTSET31_0_DIO18` writer - Writing 1 to this bit sets the DIO18 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTSET31_0_DIO18_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTSET31_0_DIO18_AW > ; impl < 'a , REG , const O : u8 > DOUTSET31_0_DIO18_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutset31_0_dio18_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO18_AW :: DOUTSET31_0_DIO18_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doutset31_0_dio18_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO18_AW :: DOUTSET31_0_DIO18_SET) } } # [doc = "Writing 1 to this bit sets the DIO19 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTSET31_0_DIO19_AW { # [doc = "0: NO_EFFECT"]
DOUTSET31_0_DIO19_NO_EFFECT = 0 , # [doc = "1: SET"]
DOUTSET31_0_DIO19_SET = 1 , } impl From < DOUTSET31_0_DIO19_AW > for bool { # [inline (always)]
fn from (variant : DOUTSET31_0_DIO19_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTSET31_0_DIO19` writer - Writing 1 to this bit sets the DIO19 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTSET31_0_DIO19_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTSET31_0_DIO19_AW > ; impl < 'a , REG , const O : u8 > DOUTSET31_0_DIO19_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutset31_0_dio19_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO19_AW :: DOUTSET31_0_DIO19_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doutset31_0_dio19_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO19_AW :: DOUTSET31_0_DIO19_SET) } } # [doc = "Writing 1 to this bit sets the DIO20 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTSET31_0_DIO20_AW { # [doc = "0: NO_EFFECT"]
DOUTSET31_0_DIO20_NO_EFFECT = 0 , # [doc = "1: SET"]
DOUTSET31_0_DIO20_SET = 1 , } impl From < DOUTSET31_0_DIO20_AW > for bool { # [inline (always)]
fn from (variant : DOUTSET31_0_DIO20_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTSET31_0_DIO20` writer - Writing 1 to this bit sets the DIO20 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTSET31_0_DIO20_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTSET31_0_DIO20_AW > ; impl < 'a , REG , const O : u8 > DOUTSET31_0_DIO20_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutset31_0_dio20_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO20_AW :: DOUTSET31_0_DIO20_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doutset31_0_dio20_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO20_AW :: DOUTSET31_0_DIO20_SET) } } # [doc = "Writing 1 to this bit sets the DIO21 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTSET31_0_DIO21_AW { # [doc = "0: NO_EFFECT"]
DOUTSET31_0_DIO21_NO_EFFECT = 0 , # [doc = "1: SET"]
DOUTSET31_0_DIO21_SET = 1 , } impl From < DOUTSET31_0_DIO21_AW > for bool { # [inline (always)]
fn from (variant : DOUTSET31_0_DIO21_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTSET31_0_DIO21` writer - Writing 1 to this bit sets the DIO21 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTSET31_0_DIO21_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTSET31_0_DIO21_AW > ; impl < 'a , REG , const O : u8 > DOUTSET31_0_DIO21_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutset31_0_dio21_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO21_AW :: DOUTSET31_0_DIO21_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doutset31_0_dio21_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO21_AW :: DOUTSET31_0_DIO21_SET) } } # [doc = "Writing 1 to this bit sets the DIO22 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTSET31_0_DIO22_AW { # [doc = "0: NO_EFFECT"]
DOUTSET31_0_DIO22_NO_EFFECT = 0 , # [doc = "1: SET"]
DOUTSET31_0_DIO22_SET = 1 , } impl From < DOUTSET31_0_DIO22_AW > for bool { # [inline (always)]
fn from (variant : DOUTSET31_0_DIO22_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTSET31_0_DIO22` writer - Writing 1 to this bit sets the DIO22 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTSET31_0_DIO22_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTSET31_0_DIO22_AW > ; impl < 'a , REG , const O : u8 > DOUTSET31_0_DIO22_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutset31_0_dio22_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO22_AW :: DOUTSET31_0_DIO22_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doutset31_0_dio22_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO22_AW :: DOUTSET31_0_DIO22_SET) } } # [doc = "Writing 1 to this bit sets the DIO23 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTSET31_0_DIO23_AW { # [doc = "0: NO_EFFECT"]
DOUTSET31_0_DIO23_NO_EFFECT = 0 , # [doc = "1: SET"]
DOUTSET31_0_DIO23_SET = 1 , } impl From < DOUTSET31_0_DIO23_AW > for bool { # [inline (always)]
fn from (variant : DOUTSET31_0_DIO23_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTSET31_0_DIO23` writer - Writing 1 to this bit sets the DIO23 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTSET31_0_DIO23_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTSET31_0_DIO23_AW > ; impl < 'a , REG , const O : u8 > DOUTSET31_0_DIO23_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutset31_0_dio23_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO23_AW :: DOUTSET31_0_DIO23_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doutset31_0_dio23_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO23_AW :: DOUTSET31_0_DIO23_SET) } } # [doc = "Writing 1 to this bit sets the DIO24 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTSET31_0_DIO24_AW { # [doc = "0: NO_EFFECT"]
DOUTSET31_0_DIO24_NO_EFFECT = 0 , # [doc = "1: SET"]
DOUTSET31_0_DIO24_SET = 1 , } impl From < DOUTSET31_0_DIO24_AW > for bool { # [inline (always)]
fn from (variant : DOUTSET31_0_DIO24_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTSET31_0_DIO24` writer - Writing 1 to this bit sets the DIO24 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTSET31_0_DIO24_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTSET31_0_DIO24_AW > ; impl < 'a , REG , const O : u8 > DOUTSET31_0_DIO24_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutset31_0_dio24_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO24_AW :: DOUTSET31_0_DIO24_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doutset31_0_dio24_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO24_AW :: DOUTSET31_0_DIO24_SET) } } # [doc = "Writing 1 to this bit sets the DIO25 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTSET31_0_DIO25_AW { # [doc = "0: NO_EFFECT"]
DOUTSET31_0_DIO25_NO_EFFECT = 0 , # [doc = "1: SET"]
DOUTSET31_0_DIO25_SET = 1 , } impl From < DOUTSET31_0_DIO25_AW > for bool { # [inline (always)]
fn from (variant : DOUTSET31_0_DIO25_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTSET31_0_DIO25` writer - Writing 1 to this bit sets the DIO25 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTSET31_0_DIO25_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTSET31_0_DIO25_AW > ; impl < 'a , REG , const O : u8 > DOUTSET31_0_DIO25_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutset31_0_dio25_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO25_AW :: DOUTSET31_0_DIO25_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doutset31_0_dio25_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO25_AW :: DOUTSET31_0_DIO25_SET) } } # [doc = "Writing 1 to this bit sets the DIO26 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTSET31_0_DIO26_AW { # [doc = "0: NO_EFFECT"]
DOUTSET31_0_DIO26_NO_EFFECT = 0 , # [doc = "1: SET"]
DOUTSET31_0_DIO26_SET = 1 , } impl From < DOUTSET31_0_DIO26_AW > for bool { # [inline (always)]
fn from (variant : DOUTSET31_0_DIO26_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTSET31_0_DIO26` writer - Writing 1 to this bit sets the DIO26 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTSET31_0_DIO26_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTSET31_0_DIO26_AW > ; impl < 'a , REG , const O : u8 > DOUTSET31_0_DIO26_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutset31_0_dio26_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO26_AW :: DOUTSET31_0_DIO26_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doutset31_0_dio26_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO26_AW :: DOUTSET31_0_DIO26_SET) } } # [doc = "Writing 1 to this bit sets the DIO27 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTSET31_0_DIO27_AW { # [doc = "0: NO_EFFECT"]
DOUTSET31_0_DIO27_NO_EFFECT = 0 , # [doc = "1: SET"]
DOUTSET31_0_DIO27_SET = 1 , } impl From < DOUTSET31_0_DIO27_AW > for bool { # [inline (always)]
fn from (variant : DOUTSET31_0_DIO27_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTSET31_0_DIO27` writer - Writing 1 to this bit sets the DIO27 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTSET31_0_DIO27_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTSET31_0_DIO27_AW > ; impl < 'a , REG , const O : u8 > DOUTSET31_0_DIO27_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutset31_0_dio27_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO27_AW :: DOUTSET31_0_DIO27_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doutset31_0_dio27_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO27_AW :: DOUTSET31_0_DIO27_SET) } } # [doc = "Writing 1 to this bit sets the DIO28 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTSET31_0_DIO28_AW { # [doc = "0: NO_EFFECT"]
DOUTSET31_0_DIO28_NO_EFFECT = 0 , # [doc = "1: SET"]
DOUTSET31_0_DIO28_SET = 1 , } impl From < DOUTSET31_0_DIO28_AW > for bool { # [inline (always)]
fn from (variant : DOUTSET31_0_DIO28_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTSET31_0_DIO28` writer - Writing 1 to this bit sets the DIO28 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTSET31_0_DIO28_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTSET31_0_DIO28_AW > ; impl < 'a , REG , const O : u8 > DOUTSET31_0_DIO28_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutset31_0_dio28_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO28_AW :: DOUTSET31_0_DIO28_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doutset31_0_dio28_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO28_AW :: DOUTSET31_0_DIO28_SET) } } # [doc = "Writing 1 to this bit sets the DIO29 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTSET31_0_DIO29_AW { # [doc = "0: NO_EFFECT"]
DOUTSET31_0_DIO29_NO_EFFECT = 0 , # [doc = "1: SET"]
DOUTSET31_0_DIO29_SET = 1 , } impl From < DOUTSET31_0_DIO29_AW > for bool { # [inline (always)]
fn from (variant : DOUTSET31_0_DIO29_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTSET31_0_DIO29` writer - Writing 1 to this bit sets the DIO29 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTSET31_0_DIO29_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTSET31_0_DIO29_AW > ; impl < 'a , REG , const O : u8 > DOUTSET31_0_DIO29_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutset31_0_dio29_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO29_AW :: DOUTSET31_0_DIO29_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doutset31_0_dio29_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO29_AW :: DOUTSET31_0_DIO29_SET) } } # [doc = "Writing 1 to this bit sets the DIO30 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTSET31_0_DIO30_AW { # [doc = "0: NO_EFFECT"]
DOUTSET31_0_DIO30_NO_EFFECT = 0 , # [doc = "1: SET"]
DOUTSET31_0_DIO30_SET = 1 , } impl From < DOUTSET31_0_DIO30_AW > for bool { # [inline (always)]
fn from (variant : DOUTSET31_0_DIO30_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTSET31_0_DIO30` writer - Writing 1 to this bit sets the DIO30 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTSET31_0_DIO30_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTSET31_0_DIO30_AW > ; impl < 'a , REG , const O : u8 > DOUTSET31_0_DIO30_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutset31_0_dio30_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO30_AW :: DOUTSET31_0_DIO30_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doutset31_0_dio30_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO30_AW :: DOUTSET31_0_DIO30_SET) } } # [doc = "Writing 1 to this bit sets the DIO31 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTSET31_0_DIO31_AW { # [doc = "0: NO_EFFECT"]
DOUTSET31_0_DIO31_NO_EFFECT = 0 , # [doc = "1: SET"]
DOUTSET31_0_DIO31_SET = 1 , } impl From < DOUTSET31_0_DIO31_AW > for bool { # [inline (always)]
fn from (variant : DOUTSET31_0_DIO31_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTSET31_0_DIO31` writer - Writing 1 to this bit sets the DIO31 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTSET31_0_DIO31_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTSET31_0_DIO31_AW > ; impl < 'a , REG , const O : u8 > DOUTSET31_0_DIO31_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutset31_0_dio31_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO31_AW :: DOUTSET31_0_DIO31_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doutset31_0_dio31_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTSET31_0_DIO31_AW :: DOUTSET31_0_DIO31_SET) } } impl W { # [doc = "Bit 0 - Writing 1 to this bit sets the DIO0 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutset31_0_dio0 (& mut self) -> DOUTSET31_0_DIO0_W < DOUTSET31_0_SPEC , 0 > { DOUTSET31_0_DIO0_W :: new (self) } # [doc = "Bit 1 - Writing 1 to this bit sets the DIO1 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutset31_0_dio1 (& mut self) -> DOUTSET31_0_DIO1_W < DOUTSET31_0_SPEC , 1 > { DOUTSET31_0_DIO1_W :: new (self) } # [doc = "Bit 2 - Writing 1 to this bit sets the DIO2 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutset31_0_dio2 (& mut self) -> DOUTSET31_0_DIO2_W < DOUTSET31_0_SPEC , 2 > { DOUTSET31_0_DIO2_W :: new (self) } # [doc = "Bit 3 - Writing 1 to this bit sets the DIO3 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutset31_0_dio3 (& mut self) -> DOUTSET31_0_DIO3_W < DOUTSET31_0_SPEC , 3 > { DOUTSET31_0_DIO3_W :: new (self) } # [doc = "Bit 4 - Writing 1 to this bit sets the DIO4 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutset31_0_dio4 (& mut self) -> DOUTSET31_0_DIO4_W < DOUTSET31_0_SPEC , 4 > { DOUTSET31_0_DIO4_W :: new (self) } # [doc = "Bit 5 - Writing 1 to this bit sets the DIO5 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutset31_0_dio5 (& mut self) -> DOUTSET31_0_DIO5_W < DOUTSET31_0_SPEC , 5 > { DOUTSET31_0_DIO5_W :: new (self) } # [doc = "Bit 6 - Writing 1 to this bit sets the DIO6 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutset31_0_dio6 (& mut self) -> DOUTSET31_0_DIO6_W < DOUTSET31_0_SPEC , 6 > { DOUTSET31_0_DIO6_W :: new (self) } # [doc = "Bit 7 - Writing 1 to this bit sets the DIO7 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutset31_0_dio7 (& mut self) -> DOUTSET31_0_DIO7_W < DOUTSET31_0_SPEC , 7 > { DOUTSET31_0_DIO7_W :: new (self) } # [doc = "Bit 8 - Writing 1 to this bit sets the DIO8 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutset31_0_dio8 (& mut self) -> DOUTSET31_0_DIO8_W < DOUTSET31_0_SPEC , 8 > { DOUTSET31_0_DIO8_W :: new (self) } # [doc = "Bit 9 - Writing 1 to this bit sets the DIO9 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutset31_0_dio9 (& mut self) -> DOUTSET31_0_DIO9_W < DOUTSET31_0_SPEC , 9 > { DOUTSET31_0_DIO9_W :: new (self) } # [doc = "Bit 10 - Writing 1 to this bit sets the DIO10 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutset31_0_dio10 (& mut self) -> DOUTSET31_0_DIO10_W < DOUTSET31_0_SPEC , 10 > { DOUTSET31_0_DIO10_W :: new (self) } # [doc = "Bit 11 - Writing 1 to this bit sets the DIO11 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutset31_0_dio11 (& mut self) -> DOUTSET31_0_DIO11_W < DOUTSET31_0_SPEC , 11 > { DOUTSET31_0_DIO11_W :: new (self) } # [doc = "Bit 12 - Writing 1 to this bit sets the DIO12 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutset31_0_dio12 (& mut self) -> DOUTSET31_0_DIO12_W < DOUTSET31_0_SPEC , 12 > { DOUTSET31_0_DIO12_W :: new (self) } # [doc = "Bit 13 - Writing 1 to this bit sets the DIO13 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutset31_0_dio13 (& mut self) -> DOUTSET31_0_DIO13_W < DOUTSET31_0_SPEC , 13 > { DOUTSET31_0_DIO13_W :: new (self) } # [doc = "Bit 14 - Writing 1 to this bit sets the DIO14 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutset31_0_dio14 (& mut self) -> DOUTSET31_0_DIO14_W < DOUTSET31_0_SPEC , 14 > { DOUTSET31_0_DIO14_W :: new (self) } # [doc = "Bit 15 - Writing 1 to this bit sets the DIO15 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutset31_0_dio15 (& mut self) -> DOUTSET31_0_DIO15_W < DOUTSET31_0_SPEC , 15 > { DOUTSET31_0_DIO15_W :: new (self) } # [doc = "Bit 16 - Writing 1 to this bit sets the DIO16 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutset31_0_dio16 (& mut self) -> DOUTSET31_0_DIO16_W < DOUTSET31_0_SPEC , 16 > { DOUTSET31_0_DIO16_W :: new (self) } # [doc = "Bit 17 - Writing 1 to this bit sets the DIO17 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutset31_0_dio17 (& mut self) -> DOUTSET31_0_DIO17_W < DOUTSET31_0_SPEC , 17 > { DOUTSET31_0_DIO17_W :: new (self) } # [doc = "Bit 18 - Writing 1 to this bit sets the DIO18 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutset31_0_dio18 (& mut self) -> DOUTSET31_0_DIO18_W < DOUTSET31_0_SPEC , 18 > { DOUTSET31_0_DIO18_W :: new (self) } # [doc = "Bit 19 - Writing 1 to this bit sets the DIO19 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutset31_0_dio19 (& mut self) -> DOUTSET31_0_DIO19_W < DOUTSET31_0_SPEC , 19 > { DOUTSET31_0_DIO19_W :: new (self) } # [doc = "Bit 20 - Writing 1 to this bit sets the DIO20 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutset31_0_dio20 (& mut self) -> DOUTSET31_0_DIO20_W < DOUTSET31_0_SPEC , 20 > { DOUTSET31_0_DIO20_W :: new (self) } # [doc = "Bit 21 - Writing 1 to this bit sets the DIO21 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutset31_0_dio21 (& mut self) -> DOUTSET31_0_DIO21_W < DOUTSET31_0_SPEC , 21 > { DOUTSET31_0_DIO21_W :: new (self) } # [doc = "Bit 22 - Writing 1 to this bit sets the DIO22 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutset31_0_dio22 (& mut self) -> DOUTSET31_0_DIO22_W < DOUTSET31_0_SPEC , 22 > { DOUTSET31_0_DIO22_W :: new (self) } # [doc = "Bit 23 - Writing 1 to this bit sets the DIO23 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutset31_0_dio23 (& mut self) -> DOUTSET31_0_DIO23_W < DOUTSET31_0_SPEC , 23 > { DOUTSET31_0_DIO23_W :: new (self) } # [doc = "Bit 24 - Writing 1 to this bit sets the DIO24 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutset31_0_dio24 (& mut self) -> DOUTSET31_0_DIO24_W < DOUTSET31_0_SPEC , 24 > { DOUTSET31_0_DIO24_W :: new (self) } # [doc = "Bit 25 - Writing 1 to this bit sets the DIO25 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutset31_0_dio25 (& mut self) -> DOUTSET31_0_DIO25_W < DOUTSET31_0_SPEC , 25 > { DOUTSET31_0_DIO25_W :: new (self) } # [doc = "Bit 26 - Writing 1 to this bit sets the DIO26 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutset31_0_dio26 (& mut self) -> DOUTSET31_0_DIO26_W < DOUTSET31_0_SPEC , 26 > { DOUTSET31_0_DIO26_W :: new (self) } # [doc = "Bit 27 - Writing 1 to this bit sets the DIO27 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutset31_0_dio27 (& mut self) -> DOUTSET31_0_DIO27_W < DOUTSET31_0_SPEC , 27 > { DOUTSET31_0_DIO27_W :: new (self) } # [doc = "Bit 28 - Writing 1 to this bit sets the DIO28 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutset31_0_dio28 (& mut self) -> DOUTSET31_0_DIO28_W < DOUTSET31_0_SPEC , 28 > { DOUTSET31_0_DIO28_W :: new (self) } # [doc = "Bit 29 - Writing 1 to this bit sets the DIO29 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutset31_0_dio29 (& mut self) -> DOUTSET31_0_DIO29_W < DOUTSET31_0_SPEC , 29 > { DOUTSET31_0_DIO29_W :: new (self) } # [doc = "Bit 30 - Writing 1 to this bit sets the DIO30 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutset31_0_dio30 (& mut self) -> DOUTSET31_0_DIO30_W < DOUTSET31_0_SPEC , 30 > { DOUTSET31_0_DIO30_W :: new (self) } # [doc = "Bit 31 - Writing 1 to this bit sets the DIO31 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutset31_0_dio31 (& mut self) -> DOUTSET31_0_DIO31_W < DOUTSET31_0_SPEC , 31 > { DOUTSET31_0_DIO31_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Data output set 31 to 0\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`doutset31_0::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DOUTSET31_0_SPEC ; impl crate :: RegisterSpec for DOUTSET31_0_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`doutset31_0::W`](W) writer structure"]
impl crate :: Writable for DOUTSET31_0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets DOUTSET31_0 to value 0"]
impl crate :: Resettable for DOUTSET31_0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DOUTCLR31_0 (w) register accessor: Data output clear 31 to 0\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`doutclr31_0::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@doutclr31_0`]
module"]
pub type DOUTCLR31_0 = crate :: Reg < doutclr31_0 :: DOUTCLR31_0_SPEC > ; # [doc = "Data output clear 31 to 0"]
pub mod doutclr31_0 { # [doc = "Register `DOUTCLR31_0` writer"]
pub type W = crate :: W < DOUTCLR31_0_SPEC > ; # [doc = "Writing 1 to this bit clears the DIO0 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTCLR31_0_DIO0_AW { # [doc = "0: NO_EFFECT"]
DOUTCLR31_0_DIO0_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOUTCLR31_0_DIO0_CLR = 1 , } impl From < DOUTCLR31_0_DIO0_AW > for bool { # [inline (always)]
fn from (variant : DOUTCLR31_0_DIO0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTCLR31_0_DIO0` writer - Writing 1 to this bit clears the DIO0 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTCLR31_0_DIO0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTCLR31_0_DIO0_AW > ; impl < 'a , REG , const O : u8 > DOUTCLR31_0_DIO0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutclr31_0_dio0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO0_AW :: DOUTCLR31_0_DIO0_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doutclr31_0_dio0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO0_AW :: DOUTCLR31_0_DIO0_CLR) } } # [doc = "Writing 1 to this bit clears the DIO1 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTCLR31_0_DIO1_AW { # [doc = "0: NO_EFFECT"]
DOUTCLR31_0_DIO1_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOUTCLR31_0_DIO1_CLR = 1 , } impl From < DOUTCLR31_0_DIO1_AW > for bool { # [inline (always)]
fn from (variant : DOUTCLR31_0_DIO1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTCLR31_0_DIO1` writer - Writing 1 to this bit clears the DIO1 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTCLR31_0_DIO1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTCLR31_0_DIO1_AW > ; impl < 'a , REG , const O : u8 > DOUTCLR31_0_DIO1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutclr31_0_dio1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO1_AW :: DOUTCLR31_0_DIO1_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doutclr31_0_dio1_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO1_AW :: DOUTCLR31_0_DIO1_CLR) } } # [doc = "Writing 1 to this bit clears the DIO2 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTCLR31_0_DIO2_AW { # [doc = "0: NO_EFFECT"]
DOUTCLR31_0_DIO2_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOUTCLR31_0_DIO2_CLR = 1 , } impl From < DOUTCLR31_0_DIO2_AW > for bool { # [inline (always)]
fn from (variant : DOUTCLR31_0_DIO2_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTCLR31_0_DIO2` writer - Writing 1 to this bit clears the DIO2 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTCLR31_0_DIO2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTCLR31_0_DIO2_AW > ; impl < 'a , REG , const O : u8 > DOUTCLR31_0_DIO2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutclr31_0_dio2_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO2_AW :: DOUTCLR31_0_DIO2_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doutclr31_0_dio2_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO2_AW :: DOUTCLR31_0_DIO2_CLR) } } # [doc = "Writing 1 to this bit clears the DIO3 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTCLR31_0_DIO3_AW { # [doc = "0: NO_EFFECT"]
DOUTCLR31_0_DIO3_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOUTCLR31_0_DIO3_CLR = 1 , } impl From < DOUTCLR31_0_DIO3_AW > for bool { # [inline (always)]
fn from (variant : DOUTCLR31_0_DIO3_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTCLR31_0_DIO3` writer - Writing 1 to this bit clears the DIO3 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTCLR31_0_DIO3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTCLR31_0_DIO3_AW > ; impl < 'a , REG , const O : u8 > DOUTCLR31_0_DIO3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutclr31_0_dio3_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO3_AW :: DOUTCLR31_0_DIO3_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doutclr31_0_dio3_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO3_AW :: DOUTCLR31_0_DIO3_CLR) } } # [doc = "Writing 1 to this bit clears the DIO4 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTCLR31_0_DIO4_AW { # [doc = "0: NO_EFFECT"]
DOUTCLR31_0_DIO4_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOUTCLR31_0_DIO4_CLR = 1 , } impl From < DOUTCLR31_0_DIO4_AW > for bool { # [inline (always)]
fn from (variant : DOUTCLR31_0_DIO4_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTCLR31_0_DIO4` writer - Writing 1 to this bit clears the DIO4 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTCLR31_0_DIO4_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTCLR31_0_DIO4_AW > ; impl < 'a , REG , const O : u8 > DOUTCLR31_0_DIO4_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutclr31_0_dio4_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO4_AW :: DOUTCLR31_0_DIO4_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doutclr31_0_dio4_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO4_AW :: DOUTCLR31_0_DIO4_CLR) } } # [doc = "Writing 1 to this bit clears the DIO5 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTCLR31_0_DIO5_AW { # [doc = "0: NO_EFFECT"]
DOUTCLR31_0_DIO5_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOUTCLR31_0_DIO5_CLR = 1 , } impl From < DOUTCLR31_0_DIO5_AW > for bool { # [inline (always)]
fn from (variant : DOUTCLR31_0_DIO5_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTCLR31_0_DIO5` writer - Writing 1 to this bit clears the DIO5 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTCLR31_0_DIO5_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTCLR31_0_DIO5_AW > ; impl < 'a , REG , const O : u8 > DOUTCLR31_0_DIO5_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutclr31_0_dio5_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO5_AW :: DOUTCLR31_0_DIO5_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doutclr31_0_dio5_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO5_AW :: DOUTCLR31_0_DIO5_CLR) } } # [doc = "Writing 1 to this bit clears the DIO6 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTCLR31_0_DIO6_AW { # [doc = "0: NO_EFFECT"]
DOUTCLR31_0_DIO6_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOUTCLR31_0_DIO6_CLR = 1 , } impl From < DOUTCLR31_0_DIO6_AW > for bool { # [inline (always)]
fn from (variant : DOUTCLR31_0_DIO6_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTCLR31_0_DIO6` writer - Writing 1 to this bit clears the DIO6 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTCLR31_0_DIO6_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTCLR31_0_DIO6_AW > ; impl < 'a , REG , const O : u8 > DOUTCLR31_0_DIO6_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutclr31_0_dio6_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO6_AW :: DOUTCLR31_0_DIO6_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doutclr31_0_dio6_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO6_AW :: DOUTCLR31_0_DIO6_CLR) } } # [doc = "Writing 1 to this bit clears the DIO7 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTCLR31_0_DIO7_AW { # [doc = "0: NO_EFFECT"]
DOUTCLR31_0_DIO7_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOUTCLR31_0_DIO7_CLR = 1 , } impl From < DOUTCLR31_0_DIO7_AW > for bool { # [inline (always)]
fn from (variant : DOUTCLR31_0_DIO7_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTCLR31_0_DIO7` writer - Writing 1 to this bit clears the DIO7 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTCLR31_0_DIO7_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTCLR31_0_DIO7_AW > ; impl < 'a , REG , const O : u8 > DOUTCLR31_0_DIO7_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutclr31_0_dio7_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO7_AW :: DOUTCLR31_0_DIO7_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doutclr31_0_dio7_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO7_AW :: DOUTCLR31_0_DIO7_CLR) } } # [doc = "Writing 1 to this bit clears the DIO8 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTCLR31_0_DIO8_AW { # [doc = "0: NO_EFFECT"]
DOUTCLR31_0_DIO8_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOUTCLR31_0_DIO8_CLR = 1 , } impl From < DOUTCLR31_0_DIO8_AW > for bool { # [inline (always)]
fn from (variant : DOUTCLR31_0_DIO8_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTCLR31_0_DIO8` writer - Writing 1 to this bit clears the DIO8 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTCLR31_0_DIO8_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTCLR31_0_DIO8_AW > ; impl < 'a , REG , const O : u8 > DOUTCLR31_0_DIO8_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutclr31_0_dio8_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO8_AW :: DOUTCLR31_0_DIO8_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doutclr31_0_dio8_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO8_AW :: DOUTCLR31_0_DIO8_CLR) } } # [doc = "Writing 1 to this bit clears the DIO9 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTCLR31_0_DIO9_AW { # [doc = "0: NO_EFFECT"]
DOUTCLR31_0_DIO9_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOUTCLR31_0_DIO9_CLR = 1 , } impl From < DOUTCLR31_0_DIO9_AW > for bool { # [inline (always)]
fn from (variant : DOUTCLR31_0_DIO9_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTCLR31_0_DIO9` writer - Writing 1 to this bit clears the DIO9 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTCLR31_0_DIO9_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTCLR31_0_DIO9_AW > ; impl < 'a , REG , const O : u8 > DOUTCLR31_0_DIO9_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutclr31_0_dio9_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO9_AW :: DOUTCLR31_0_DIO9_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doutclr31_0_dio9_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO9_AW :: DOUTCLR31_0_DIO9_CLR) } } # [doc = "Writing 1 to this bit clears the DIO10 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTCLR31_0_DIO10_AW { # [doc = "0: NO_EFFECT"]
DOUTCLR31_0_DIO10_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOUTCLR31_0_DIO10_CLR = 1 , } impl From < DOUTCLR31_0_DIO10_AW > for bool { # [inline (always)]
fn from (variant : DOUTCLR31_0_DIO10_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTCLR31_0_DIO10` writer - Writing 1 to this bit clears the DIO10 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTCLR31_0_DIO10_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTCLR31_0_DIO10_AW > ; impl < 'a , REG , const O : u8 > DOUTCLR31_0_DIO10_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutclr31_0_dio10_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO10_AW :: DOUTCLR31_0_DIO10_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doutclr31_0_dio10_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO10_AW :: DOUTCLR31_0_DIO10_CLR) } } # [doc = "Writing 1 to this bit clears the DIO11 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTCLR31_0_DIO11_AW { # [doc = "0: NO_EFFECT"]
DOUTCLR31_0_DIO11_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOUTCLR31_0_DIO11_CLR = 1 , } impl From < DOUTCLR31_0_DIO11_AW > for bool { # [inline (always)]
fn from (variant : DOUTCLR31_0_DIO11_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTCLR31_0_DIO11` writer - Writing 1 to this bit clears the DIO11 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTCLR31_0_DIO11_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTCLR31_0_DIO11_AW > ; impl < 'a , REG , const O : u8 > DOUTCLR31_0_DIO11_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutclr31_0_dio11_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO11_AW :: DOUTCLR31_0_DIO11_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doutclr31_0_dio11_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO11_AW :: DOUTCLR31_0_DIO11_CLR) } } # [doc = "Writing 1 to this bit clears the DIO12 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTCLR31_0_DIO12_AW { # [doc = "0: NO_EFFECT"]
DOUTCLR31_0_DIO12_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOUTCLR31_0_DIO12_CLR = 1 , } impl From < DOUTCLR31_0_DIO12_AW > for bool { # [inline (always)]
fn from (variant : DOUTCLR31_0_DIO12_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTCLR31_0_DIO12` writer - Writing 1 to this bit clears the DIO12 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTCLR31_0_DIO12_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTCLR31_0_DIO12_AW > ; impl < 'a , REG , const O : u8 > DOUTCLR31_0_DIO12_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutclr31_0_dio12_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO12_AW :: DOUTCLR31_0_DIO12_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doutclr31_0_dio12_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO12_AW :: DOUTCLR31_0_DIO12_CLR) } } # [doc = "Writing 1 to this bit clears the DIO13 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTCLR31_0_DIO13_AW { # [doc = "0: NO_EFFECT"]
DOUTCLR31_0_DIO13_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOUTCLR31_0_DIO13_CLR = 1 , } impl From < DOUTCLR31_0_DIO13_AW > for bool { # [inline (always)]
fn from (variant : DOUTCLR31_0_DIO13_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTCLR31_0_DIO13` writer - Writing 1 to this bit clears the DIO13 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTCLR31_0_DIO13_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTCLR31_0_DIO13_AW > ; impl < 'a , REG , const O : u8 > DOUTCLR31_0_DIO13_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutclr31_0_dio13_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO13_AW :: DOUTCLR31_0_DIO13_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doutclr31_0_dio13_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO13_AW :: DOUTCLR31_0_DIO13_CLR) } } # [doc = "Writing 1 to this bit clears the DIO14 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTCLR31_0_DIO14_AW { # [doc = "0: NO_EFFECT"]
DOUTCLR31_0_DIO14_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOUTCLR31_0_DIO14_CLR = 1 , } impl From < DOUTCLR31_0_DIO14_AW > for bool { # [inline (always)]
fn from (variant : DOUTCLR31_0_DIO14_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTCLR31_0_DIO14` writer - Writing 1 to this bit clears the DIO14 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTCLR31_0_DIO14_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTCLR31_0_DIO14_AW > ; impl < 'a , REG , const O : u8 > DOUTCLR31_0_DIO14_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutclr31_0_dio14_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO14_AW :: DOUTCLR31_0_DIO14_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doutclr31_0_dio14_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO14_AW :: DOUTCLR31_0_DIO14_CLR) } } # [doc = "Writing 1 to this bit clears the DIO15 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTCLR31_0_DIO15_AW { # [doc = "0: NO_EFFECT"]
DOUTCLR31_0_DIO15_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOUTCLR31_0_DIO15_CLR = 1 , } impl From < DOUTCLR31_0_DIO15_AW > for bool { # [inline (always)]
fn from (variant : DOUTCLR31_0_DIO15_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTCLR31_0_DIO15` writer - Writing 1 to this bit clears the DIO15 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTCLR31_0_DIO15_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTCLR31_0_DIO15_AW > ; impl < 'a , REG , const O : u8 > DOUTCLR31_0_DIO15_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutclr31_0_dio15_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO15_AW :: DOUTCLR31_0_DIO15_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doutclr31_0_dio15_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO15_AW :: DOUTCLR31_0_DIO15_CLR) } } # [doc = "Writing 1 to this bit clears the DIO16 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTCLR31_0_DIO16_AW { # [doc = "0: NO_EFFECT"]
DOUTCLR31_0_DIO16_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOUTCLR31_0_DIO16_CLR = 1 , } impl From < DOUTCLR31_0_DIO16_AW > for bool { # [inline (always)]
fn from (variant : DOUTCLR31_0_DIO16_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTCLR31_0_DIO16` writer - Writing 1 to this bit clears the DIO16 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTCLR31_0_DIO16_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTCLR31_0_DIO16_AW > ; impl < 'a , REG , const O : u8 > DOUTCLR31_0_DIO16_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutclr31_0_dio16_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO16_AW :: DOUTCLR31_0_DIO16_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doutclr31_0_dio16_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO16_AW :: DOUTCLR31_0_DIO16_CLR) } } # [doc = "Writing 1 to this bit clears the DIO17 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTCLR31_0_DIO17_AW { # [doc = "0: NO_EFFECT"]
DOUTCLR31_0_DIO17_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOUTCLR31_0_DIO17_CLR = 1 , } impl From < DOUTCLR31_0_DIO17_AW > for bool { # [inline (always)]
fn from (variant : DOUTCLR31_0_DIO17_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTCLR31_0_DIO17` writer - Writing 1 to this bit clears the DIO17 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTCLR31_0_DIO17_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTCLR31_0_DIO17_AW > ; impl < 'a , REG , const O : u8 > DOUTCLR31_0_DIO17_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutclr31_0_dio17_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO17_AW :: DOUTCLR31_0_DIO17_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doutclr31_0_dio17_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO17_AW :: DOUTCLR31_0_DIO17_CLR) } } # [doc = "Writing 1 to this bit clears the DIO18 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTCLR31_0_DIO18_AW { # [doc = "0: NO_EFFECT"]
DOUTCLR31_0_DIO18_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOUTCLR31_0_DIO18_CLR = 1 , } impl From < DOUTCLR31_0_DIO18_AW > for bool { # [inline (always)]
fn from (variant : DOUTCLR31_0_DIO18_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTCLR31_0_DIO18` writer - Writing 1 to this bit clears the DIO18 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTCLR31_0_DIO18_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTCLR31_0_DIO18_AW > ; impl < 'a , REG , const O : u8 > DOUTCLR31_0_DIO18_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutclr31_0_dio18_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO18_AW :: DOUTCLR31_0_DIO18_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doutclr31_0_dio18_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO18_AW :: DOUTCLR31_0_DIO18_CLR) } } # [doc = "Writing 1 to this bit clears the DIO19 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTCLR31_0_DIO19_AW { # [doc = "0: NO_EFFECT"]
DOUTCLR31_0_DIO19_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOUTCLR31_0_DIO19_CLR = 1 , } impl From < DOUTCLR31_0_DIO19_AW > for bool { # [inline (always)]
fn from (variant : DOUTCLR31_0_DIO19_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTCLR31_0_DIO19` writer - Writing 1 to this bit clears the DIO19 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTCLR31_0_DIO19_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTCLR31_0_DIO19_AW > ; impl < 'a , REG , const O : u8 > DOUTCLR31_0_DIO19_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutclr31_0_dio19_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO19_AW :: DOUTCLR31_0_DIO19_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doutclr31_0_dio19_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO19_AW :: DOUTCLR31_0_DIO19_CLR) } } # [doc = "Writing 1 to this bit clears the DIO20 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTCLR31_0_DIO20_AW { # [doc = "0: NO_EFFECT"]
DOUTCLR31_0_DIO20_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOUTCLR31_0_DIO20_CLR = 1 , } impl From < DOUTCLR31_0_DIO20_AW > for bool { # [inline (always)]
fn from (variant : DOUTCLR31_0_DIO20_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTCLR31_0_DIO20` writer - Writing 1 to this bit clears the DIO20 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTCLR31_0_DIO20_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTCLR31_0_DIO20_AW > ; impl < 'a , REG , const O : u8 > DOUTCLR31_0_DIO20_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutclr31_0_dio20_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO20_AW :: DOUTCLR31_0_DIO20_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doutclr31_0_dio20_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO20_AW :: DOUTCLR31_0_DIO20_CLR) } } # [doc = "Writing 1 to this bit clears the DIO21 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTCLR31_0_DIO21_AW { # [doc = "0: NO_EFFECT"]
DOUTCLR31_0_DIO21_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOUTCLR31_0_DIO21_CLR = 1 , } impl From < DOUTCLR31_0_DIO21_AW > for bool { # [inline (always)]
fn from (variant : DOUTCLR31_0_DIO21_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTCLR31_0_DIO21` writer - Writing 1 to this bit clears the DIO21 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTCLR31_0_DIO21_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTCLR31_0_DIO21_AW > ; impl < 'a , REG , const O : u8 > DOUTCLR31_0_DIO21_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutclr31_0_dio21_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO21_AW :: DOUTCLR31_0_DIO21_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doutclr31_0_dio21_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO21_AW :: DOUTCLR31_0_DIO21_CLR) } } # [doc = "Writing 1 to this bit clears the DIO22 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTCLR31_0_DIO22_AW { # [doc = "0: NO_EFFECT"]
DOUTCLR31_0_DIO22_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOUTCLR31_0_DIO22_CLR = 1 , } impl From < DOUTCLR31_0_DIO22_AW > for bool { # [inline (always)]
fn from (variant : DOUTCLR31_0_DIO22_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTCLR31_0_DIO22` writer - Writing 1 to this bit clears the DIO22 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTCLR31_0_DIO22_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTCLR31_0_DIO22_AW > ; impl < 'a , REG , const O : u8 > DOUTCLR31_0_DIO22_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutclr31_0_dio22_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO22_AW :: DOUTCLR31_0_DIO22_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doutclr31_0_dio22_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO22_AW :: DOUTCLR31_0_DIO22_CLR) } } # [doc = "Writing 1 to this bit clears the DIO23 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTCLR31_0_DIO23_AW { # [doc = "0: NO_EFFECT"]
DOUTCLR31_0_DIO23_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOUTCLR31_0_DIO23_CLR = 1 , } impl From < DOUTCLR31_0_DIO23_AW > for bool { # [inline (always)]
fn from (variant : DOUTCLR31_0_DIO23_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTCLR31_0_DIO23` writer - Writing 1 to this bit clears the DIO23 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTCLR31_0_DIO23_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTCLR31_0_DIO23_AW > ; impl < 'a , REG , const O : u8 > DOUTCLR31_0_DIO23_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutclr31_0_dio23_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO23_AW :: DOUTCLR31_0_DIO23_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doutclr31_0_dio23_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO23_AW :: DOUTCLR31_0_DIO23_CLR) } } # [doc = "Writing 1 to this bit clears the DIO24 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTCLR31_0_DIO24_AW { # [doc = "0: NO_EFFECT"]
DOUTCLR31_0_DIO24_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOUTCLR31_0_DIO24_CLR = 1 , } impl From < DOUTCLR31_0_DIO24_AW > for bool { # [inline (always)]
fn from (variant : DOUTCLR31_0_DIO24_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTCLR31_0_DIO24` writer - Writing 1 to this bit clears the DIO24 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTCLR31_0_DIO24_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTCLR31_0_DIO24_AW > ; impl < 'a , REG , const O : u8 > DOUTCLR31_0_DIO24_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutclr31_0_dio24_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO24_AW :: DOUTCLR31_0_DIO24_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doutclr31_0_dio24_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO24_AW :: DOUTCLR31_0_DIO24_CLR) } } # [doc = "Writing 1 to this bit clears the DIO25 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTCLR31_0_DIO25_AW { # [doc = "0: NO_EFFECT"]
DOUTCLR31_0_DIO25_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOUTCLR31_0_DIO25_CLR = 1 , } impl From < DOUTCLR31_0_DIO25_AW > for bool { # [inline (always)]
fn from (variant : DOUTCLR31_0_DIO25_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTCLR31_0_DIO25` writer - Writing 1 to this bit clears the DIO25 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTCLR31_0_DIO25_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTCLR31_0_DIO25_AW > ; impl < 'a , REG , const O : u8 > DOUTCLR31_0_DIO25_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutclr31_0_dio25_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO25_AW :: DOUTCLR31_0_DIO25_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doutclr31_0_dio25_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO25_AW :: DOUTCLR31_0_DIO25_CLR) } } # [doc = "Writing 1 to this bit clears the DIO26 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTCLR31_0_DIO26_AW { # [doc = "0: NO_EFFECT"]
DOUTCLR31_0_DIO26_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOUTCLR31_0_DIO26_CLR = 1 , } impl From < DOUTCLR31_0_DIO26_AW > for bool { # [inline (always)]
fn from (variant : DOUTCLR31_0_DIO26_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTCLR31_0_DIO26` writer - Writing 1 to this bit clears the DIO26 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTCLR31_0_DIO26_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTCLR31_0_DIO26_AW > ; impl < 'a , REG , const O : u8 > DOUTCLR31_0_DIO26_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutclr31_0_dio26_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO26_AW :: DOUTCLR31_0_DIO26_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doutclr31_0_dio26_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO26_AW :: DOUTCLR31_0_DIO26_CLR) } } # [doc = "Writing 1 to this bit clears the DIO27 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTCLR31_0_DIO27_AW { # [doc = "0: NO_EFFECT"]
DOUTCLR31_0_DIO27_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOUTCLR31_0_DIO27_CLR = 1 , } impl From < DOUTCLR31_0_DIO27_AW > for bool { # [inline (always)]
fn from (variant : DOUTCLR31_0_DIO27_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTCLR31_0_DIO27` writer - Writing 1 to this bit clears the DIO27 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTCLR31_0_DIO27_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTCLR31_0_DIO27_AW > ; impl < 'a , REG , const O : u8 > DOUTCLR31_0_DIO27_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutclr31_0_dio27_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO27_AW :: DOUTCLR31_0_DIO27_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doutclr31_0_dio27_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO27_AW :: DOUTCLR31_0_DIO27_CLR) } } # [doc = "Writing 1 to this bit clears the DIO28 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTCLR31_0_DIO28_AW { # [doc = "0: NO_EFFECT"]
DOUTCLR31_0_DIO28_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOUTCLR31_0_DIO28_CLR = 1 , } impl From < DOUTCLR31_0_DIO28_AW > for bool { # [inline (always)]
fn from (variant : DOUTCLR31_0_DIO28_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTCLR31_0_DIO28` writer - Writing 1 to this bit clears the DIO28 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTCLR31_0_DIO28_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTCLR31_0_DIO28_AW > ; impl < 'a , REG , const O : u8 > DOUTCLR31_0_DIO28_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutclr31_0_dio28_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO28_AW :: DOUTCLR31_0_DIO28_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doutclr31_0_dio28_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO28_AW :: DOUTCLR31_0_DIO28_CLR) } } # [doc = "Writing 1 to this bit clears the DIO29 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTCLR31_0_DIO29_AW { # [doc = "0: NO_EFFECT"]
DOUTCLR31_0_DIO29_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOUTCLR31_0_DIO29_CLR = 1 , } impl From < DOUTCLR31_0_DIO29_AW > for bool { # [inline (always)]
fn from (variant : DOUTCLR31_0_DIO29_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTCLR31_0_DIO29` writer - Writing 1 to this bit clears the DIO29 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTCLR31_0_DIO29_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTCLR31_0_DIO29_AW > ; impl < 'a , REG , const O : u8 > DOUTCLR31_0_DIO29_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutclr31_0_dio29_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO29_AW :: DOUTCLR31_0_DIO29_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doutclr31_0_dio29_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO29_AW :: DOUTCLR31_0_DIO29_CLR) } } # [doc = "Writing 1 to this bit clears the DIO30 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTCLR31_0_DIO30_AW { # [doc = "0: NO_EFFECT"]
DOUTCLR31_0_DIO30_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOUTCLR31_0_DIO30_CLR = 1 , } impl From < DOUTCLR31_0_DIO30_AW > for bool { # [inline (always)]
fn from (variant : DOUTCLR31_0_DIO30_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTCLR31_0_DIO30` writer - Writing 1 to this bit clears the DIO30 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTCLR31_0_DIO30_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTCLR31_0_DIO30_AW > ; impl < 'a , REG , const O : u8 > DOUTCLR31_0_DIO30_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutclr31_0_dio30_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO30_AW :: DOUTCLR31_0_DIO30_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doutclr31_0_dio30_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO30_AW :: DOUTCLR31_0_DIO30_CLR) } } # [doc = "Writing 1 to this bit clears the DIO31 bit in the DOUT31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTCLR31_0_DIO31_AW { # [doc = "0: NO_EFFECT"]
DOUTCLR31_0_DIO31_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOUTCLR31_0_DIO31_CLR = 1 , } impl From < DOUTCLR31_0_DIO31_AW > for bool { # [inline (always)]
fn from (variant : DOUTCLR31_0_DIO31_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTCLR31_0_DIO31` writer - Writing 1 to this bit clears the DIO31 bit in the DOUT31_0 register. Writing 0 has no effect."]
pub type DOUTCLR31_0_DIO31_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTCLR31_0_DIO31_AW > ; impl < 'a , REG , const O : u8 > DOUTCLR31_0_DIO31_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doutclr31_0_dio31_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO31_AW :: DOUTCLR31_0_DIO31_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doutclr31_0_dio31_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTCLR31_0_DIO31_AW :: DOUTCLR31_0_DIO31_CLR) } } impl W { # [doc = "Bit 0 - Writing 1 to this bit clears the DIO0 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutclr31_0_dio0 (& mut self) -> DOUTCLR31_0_DIO0_W < DOUTCLR31_0_SPEC , 0 > { DOUTCLR31_0_DIO0_W :: new (self) } # [doc = "Bit 1 - Writing 1 to this bit clears the DIO1 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutclr31_0_dio1 (& mut self) -> DOUTCLR31_0_DIO1_W < DOUTCLR31_0_SPEC , 1 > { DOUTCLR31_0_DIO1_W :: new (self) } # [doc = "Bit 2 - Writing 1 to this bit clears the DIO2 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutclr31_0_dio2 (& mut self) -> DOUTCLR31_0_DIO2_W < DOUTCLR31_0_SPEC , 2 > { DOUTCLR31_0_DIO2_W :: new (self) } # [doc = "Bit 3 - Writing 1 to this bit clears the DIO3 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutclr31_0_dio3 (& mut self) -> DOUTCLR31_0_DIO3_W < DOUTCLR31_0_SPEC , 3 > { DOUTCLR31_0_DIO3_W :: new (self) } # [doc = "Bit 4 - Writing 1 to this bit clears the DIO4 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutclr31_0_dio4 (& mut self) -> DOUTCLR31_0_DIO4_W < DOUTCLR31_0_SPEC , 4 > { DOUTCLR31_0_DIO4_W :: new (self) } # [doc = "Bit 5 - Writing 1 to this bit clears the DIO5 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutclr31_0_dio5 (& mut self) -> DOUTCLR31_0_DIO5_W < DOUTCLR31_0_SPEC , 5 > { DOUTCLR31_0_DIO5_W :: new (self) } # [doc = "Bit 6 - Writing 1 to this bit clears the DIO6 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutclr31_0_dio6 (& mut self) -> DOUTCLR31_0_DIO6_W < DOUTCLR31_0_SPEC , 6 > { DOUTCLR31_0_DIO6_W :: new (self) } # [doc = "Bit 7 - Writing 1 to this bit clears the DIO7 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutclr31_0_dio7 (& mut self) -> DOUTCLR31_0_DIO7_W < DOUTCLR31_0_SPEC , 7 > { DOUTCLR31_0_DIO7_W :: new (self) } # [doc = "Bit 8 - Writing 1 to this bit clears the DIO8 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutclr31_0_dio8 (& mut self) -> DOUTCLR31_0_DIO8_W < DOUTCLR31_0_SPEC , 8 > { DOUTCLR31_0_DIO8_W :: new (self) } # [doc = "Bit 9 - Writing 1 to this bit clears the DIO9 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutclr31_0_dio9 (& mut self) -> DOUTCLR31_0_DIO9_W < DOUTCLR31_0_SPEC , 9 > { DOUTCLR31_0_DIO9_W :: new (self) } # [doc = "Bit 10 - Writing 1 to this bit clears the DIO10 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutclr31_0_dio10 (& mut self) -> DOUTCLR31_0_DIO10_W < DOUTCLR31_0_SPEC , 10 > { DOUTCLR31_0_DIO10_W :: new (self) } # [doc = "Bit 11 - Writing 1 to this bit clears the DIO11 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutclr31_0_dio11 (& mut self) -> DOUTCLR31_0_DIO11_W < DOUTCLR31_0_SPEC , 11 > { DOUTCLR31_0_DIO11_W :: new (self) } # [doc = "Bit 12 - Writing 1 to this bit clears the DIO12 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutclr31_0_dio12 (& mut self) -> DOUTCLR31_0_DIO12_W < DOUTCLR31_0_SPEC , 12 > { DOUTCLR31_0_DIO12_W :: new (self) } # [doc = "Bit 13 - Writing 1 to this bit clears the DIO13 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutclr31_0_dio13 (& mut self) -> DOUTCLR31_0_DIO13_W < DOUTCLR31_0_SPEC , 13 > { DOUTCLR31_0_DIO13_W :: new (self) } # [doc = "Bit 14 - Writing 1 to this bit clears the DIO14 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutclr31_0_dio14 (& mut self) -> DOUTCLR31_0_DIO14_W < DOUTCLR31_0_SPEC , 14 > { DOUTCLR31_0_DIO14_W :: new (self) } # [doc = "Bit 15 - Writing 1 to this bit clears the DIO15 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutclr31_0_dio15 (& mut self) -> DOUTCLR31_0_DIO15_W < DOUTCLR31_0_SPEC , 15 > { DOUTCLR31_0_DIO15_W :: new (self) } # [doc = "Bit 16 - Writing 1 to this bit clears the DIO16 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutclr31_0_dio16 (& mut self) -> DOUTCLR31_0_DIO16_W < DOUTCLR31_0_SPEC , 16 > { DOUTCLR31_0_DIO16_W :: new (self) } # [doc = "Bit 17 - Writing 1 to this bit clears the DIO17 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutclr31_0_dio17 (& mut self) -> DOUTCLR31_0_DIO17_W < DOUTCLR31_0_SPEC , 17 > { DOUTCLR31_0_DIO17_W :: new (self) } # [doc = "Bit 18 - Writing 1 to this bit clears the DIO18 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutclr31_0_dio18 (& mut self) -> DOUTCLR31_0_DIO18_W < DOUTCLR31_0_SPEC , 18 > { DOUTCLR31_0_DIO18_W :: new (self) } # [doc = "Bit 19 - Writing 1 to this bit clears the DIO19 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutclr31_0_dio19 (& mut self) -> DOUTCLR31_0_DIO19_W < DOUTCLR31_0_SPEC , 19 > { DOUTCLR31_0_DIO19_W :: new (self) } # [doc = "Bit 20 - Writing 1 to this bit clears the DIO20 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutclr31_0_dio20 (& mut self) -> DOUTCLR31_0_DIO20_W < DOUTCLR31_0_SPEC , 20 > { DOUTCLR31_0_DIO20_W :: new (self) } # [doc = "Bit 21 - Writing 1 to this bit clears the DIO21 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutclr31_0_dio21 (& mut self) -> DOUTCLR31_0_DIO21_W < DOUTCLR31_0_SPEC , 21 > { DOUTCLR31_0_DIO21_W :: new (self) } # [doc = "Bit 22 - Writing 1 to this bit clears the DIO22 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutclr31_0_dio22 (& mut self) -> DOUTCLR31_0_DIO22_W < DOUTCLR31_0_SPEC , 22 > { DOUTCLR31_0_DIO22_W :: new (self) } # [doc = "Bit 23 - Writing 1 to this bit clears the DIO23 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutclr31_0_dio23 (& mut self) -> DOUTCLR31_0_DIO23_W < DOUTCLR31_0_SPEC , 23 > { DOUTCLR31_0_DIO23_W :: new (self) } # [doc = "Bit 24 - Writing 1 to this bit clears the DIO24 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutclr31_0_dio24 (& mut self) -> DOUTCLR31_0_DIO24_W < DOUTCLR31_0_SPEC , 24 > { DOUTCLR31_0_DIO24_W :: new (self) } # [doc = "Bit 25 - Writing 1 to this bit clears the DIO25 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutclr31_0_dio25 (& mut self) -> DOUTCLR31_0_DIO25_W < DOUTCLR31_0_SPEC , 25 > { DOUTCLR31_0_DIO25_W :: new (self) } # [doc = "Bit 26 - Writing 1 to this bit clears the DIO26 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutclr31_0_dio26 (& mut self) -> DOUTCLR31_0_DIO26_W < DOUTCLR31_0_SPEC , 26 > { DOUTCLR31_0_DIO26_W :: new (self) } # [doc = "Bit 27 - Writing 1 to this bit clears the DIO27 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutclr31_0_dio27 (& mut self) -> DOUTCLR31_0_DIO27_W < DOUTCLR31_0_SPEC , 27 > { DOUTCLR31_0_DIO27_W :: new (self) } # [doc = "Bit 28 - Writing 1 to this bit clears the DIO28 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutclr31_0_dio28 (& mut self) -> DOUTCLR31_0_DIO28_W < DOUTCLR31_0_SPEC , 28 > { DOUTCLR31_0_DIO28_W :: new (self) } # [doc = "Bit 29 - Writing 1 to this bit clears the DIO29 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutclr31_0_dio29 (& mut self) -> DOUTCLR31_0_DIO29_W < DOUTCLR31_0_SPEC , 29 > { DOUTCLR31_0_DIO29_W :: new (self) } # [doc = "Bit 30 - Writing 1 to this bit clears the DIO30 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutclr31_0_dio30 (& mut self) -> DOUTCLR31_0_DIO30_W < DOUTCLR31_0_SPEC , 30 > { DOUTCLR31_0_DIO30_W :: new (self) } # [doc = "Bit 31 - Writing 1 to this bit clears the DIO31 bit in the DOUT31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doutclr31_0_dio31 (& mut self) -> DOUTCLR31_0_DIO31_W < DOUTCLR31_0_SPEC , 31 > { DOUTCLR31_0_DIO31_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Data output clear 31 to 0\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`doutclr31_0::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DOUTCLR31_0_SPEC ; impl crate :: RegisterSpec for DOUTCLR31_0_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`doutclr31_0::W`](W) writer structure"]
impl crate :: Writable for DOUTCLR31_0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets DOUTCLR31_0 to value 0"]
impl crate :: Resettable for DOUTCLR31_0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DOUTTGL31_0 (w) register accessor: Data output toggle 31 to 0\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`douttgl31_0::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@douttgl31_0`]
module"]
pub type DOUTTGL31_0 = crate :: Reg < douttgl31_0 :: DOUTTGL31_0_SPEC > ; # [doc = "Data output toggle 31 to 0"]
pub mod douttgl31_0 { # [doc = "Register `DOUTTGL31_0` writer"]
pub type W = crate :: W < DOUTTGL31_0_SPEC > ; # [doc = "This bit is used to toggle DIO0 output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTTGL31_0_DIO0_AW { # [doc = "0: NO_EFFECT"]
DOUTTGL31_0_DIO0_NO_EFFECT = 0 , # [doc = "1: TOGGLE"]
DOUTTGL31_0_DIO0_TOGGLE = 1 , } impl From < DOUTTGL31_0_DIO0_AW > for bool { # [inline (always)]
fn from (variant : DOUTTGL31_0_DIO0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTTGL31_0_DIO0` writer - This bit is used to toggle DIO0 output."]
pub type DOUTTGL31_0_DIO0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTTGL31_0_DIO0_AW > ; impl < 'a , REG , const O : u8 > DOUTTGL31_0_DIO0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn douttgl31_0_dio0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO0_AW :: DOUTTGL31_0_DIO0_NO_EFFECT) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn douttgl31_0_dio0_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO0_AW :: DOUTTGL31_0_DIO0_TOGGLE) } } # [doc = "This bit is used to toggle DIO1 output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTTGL31_0_DIO1_AW { # [doc = "0: NO_EFFECT"]
DOUTTGL31_0_DIO1_NO_EFFECT = 0 , # [doc = "1: TOGGLE"]
DOUTTGL31_0_DIO1_TOGGLE = 1 , } impl From < DOUTTGL31_0_DIO1_AW > for bool { # [inline (always)]
fn from (variant : DOUTTGL31_0_DIO1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTTGL31_0_DIO1` writer - This bit is used to toggle DIO1 output."]
pub type DOUTTGL31_0_DIO1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTTGL31_0_DIO1_AW > ; impl < 'a , REG , const O : u8 > DOUTTGL31_0_DIO1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn douttgl31_0_dio1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO1_AW :: DOUTTGL31_0_DIO1_NO_EFFECT) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn douttgl31_0_dio1_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO1_AW :: DOUTTGL31_0_DIO1_TOGGLE) } } # [doc = "This bit is used to toggle DIO2 output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTTGL31_0_DIO2_AW { # [doc = "0: NO_EFFECT"]
DOUTTGL31_0_DIO2_NO_EFFECT = 0 , # [doc = "1: TOGGLE"]
DOUTTGL31_0_DIO2_TOGGLE = 1 , } impl From < DOUTTGL31_0_DIO2_AW > for bool { # [inline (always)]
fn from (variant : DOUTTGL31_0_DIO2_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTTGL31_0_DIO2` writer - This bit is used to toggle DIO2 output."]
pub type DOUTTGL31_0_DIO2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTTGL31_0_DIO2_AW > ; impl < 'a , REG , const O : u8 > DOUTTGL31_0_DIO2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn douttgl31_0_dio2_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO2_AW :: DOUTTGL31_0_DIO2_NO_EFFECT) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn douttgl31_0_dio2_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO2_AW :: DOUTTGL31_0_DIO2_TOGGLE) } } # [doc = "This bit is used to toggle DIO3 output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTTGL31_0_DIO3_AW { # [doc = "0: NO_EFFECT"]
DOUTTGL31_0_DIO3_NO_EFFECT = 0 , # [doc = "1: TOGGLE"]
DOUTTGL31_0_DIO3_TOGGLE = 1 , } impl From < DOUTTGL31_0_DIO3_AW > for bool { # [inline (always)]
fn from (variant : DOUTTGL31_0_DIO3_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTTGL31_0_DIO3` writer - This bit is used to toggle DIO3 output."]
pub type DOUTTGL31_0_DIO3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTTGL31_0_DIO3_AW > ; impl < 'a , REG , const O : u8 > DOUTTGL31_0_DIO3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn douttgl31_0_dio3_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO3_AW :: DOUTTGL31_0_DIO3_NO_EFFECT) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn douttgl31_0_dio3_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO3_AW :: DOUTTGL31_0_DIO3_TOGGLE) } } # [doc = "This bit is used to toggle DIO4 output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTTGL31_0_DIO4_AW { # [doc = "0: NO_EFFECT"]
DOUTTGL31_0_DIO4_NO_EFFECT = 0 , # [doc = "1: TOGGLE"]
DOUTTGL31_0_DIO4_TOGGLE = 1 , } impl From < DOUTTGL31_0_DIO4_AW > for bool { # [inline (always)]
fn from (variant : DOUTTGL31_0_DIO4_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTTGL31_0_DIO4` writer - This bit is used to toggle DIO4 output."]
pub type DOUTTGL31_0_DIO4_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTTGL31_0_DIO4_AW > ; impl < 'a , REG , const O : u8 > DOUTTGL31_0_DIO4_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn douttgl31_0_dio4_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO4_AW :: DOUTTGL31_0_DIO4_NO_EFFECT) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn douttgl31_0_dio4_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO4_AW :: DOUTTGL31_0_DIO4_TOGGLE) } } # [doc = "This bit is used to toggle DIO5 output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTTGL31_0_DIO5_AW { # [doc = "0: NO_EFFECT"]
DOUTTGL31_0_DIO5_NO_EFFECT = 0 , # [doc = "1: TOGGLE"]
DOUTTGL31_0_DIO5_TOGGLE = 1 , } impl From < DOUTTGL31_0_DIO5_AW > for bool { # [inline (always)]
fn from (variant : DOUTTGL31_0_DIO5_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTTGL31_0_DIO5` writer - This bit is used to toggle DIO5 output."]
pub type DOUTTGL31_0_DIO5_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTTGL31_0_DIO5_AW > ; impl < 'a , REG , const O : u8 > DOUTTGL31_0_DIO5_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn douttgl31_0_dio5_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO5_AW :: DOUTTGL31_0_DIO5_NO_EFFECT) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn douttgl31_0_dio5_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO5_AW :: DOUTTGL31_0_DIO5_TOGGLE) } } # [doc = "This bit is used to toggle DIO6 output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTTGL31_0_DIO6_AW { # [doc = "0: NO_EFFECT"]
DOUTTGL31_0_DIO6_NO_EFFECT = 0 , # [doc = "1: TOGGLE"]
DOUTTGL31_0_DIO6_TOGGLE = 1 , } impl From < DOUTTGL31_0_DIO6_AW > for bool { # [inline (always)]
fn from (variant : DOUTTGL31_0_DIO6_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTTGL31_0_DIO6` writer - This bit is used to toggle DIO6 output."]
pub type DOUTTGL31_0_DIO6_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTTGL31_0_DIO6_AW > ; impl < 'a , REG , const O : u8 > DOUTTGL31_0_DIO6_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn douttgl31_0_dio6_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO6_AW :: DOUTTGL31_0_DIO6_NO_EFFECT) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn douttgl31_0_dio6_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO6_AW :: DOUTTGL31_0_DIO6_TOGGLE) } } # [doc = "This bit is used to toggle DIO7 output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTTGL31_0_DIO7_AW { # [doc = "0: NO_EFFECT"]
DOUTTGL31_0_DIO7_NO_EFFECT = 0 , # [doc = "1: TOGGLE"]
DOUTTGL31_0_DIO7_TOGGLE = 1 , } impl From < DOUTTGL31_0_DIO7_AW > for bool { # [inline (always)]
fn from (variant : DOUTTGL31_0_DIO7_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTTGL31_0_DIO7` writer - This bit is used to toggle DIO7 output."]
pub type DOUTTGL31_0_DIO7_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTTGL31_0_DIO7_AW > ; impl < 'a , REG , const O : u8 > DOUTTGL31_0_DIO7_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn douttgl31_0_dio7_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO7_AW :: DOUTTGL31_0_DIO7_NO_EFFECT) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn douttgl31_0_dio7_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO7_AW :: DOUTTGL31_0_DIO7_TOGGLE) } } # [doc = "This bit is used to toggle DIO8 output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTTGL31_0_DIO8_AW { # [doc = "0: NO_EFFECT"]
DOUTTGL31_0_DIO8_NO_EFFECT = 0 , # [doc = "1: TOGGLE"]
DOUTTGL31_0_DIO8_TOGGLE = 1 , } impl From < DOUTTGL31_0_DIO8_AW > for bool { # [inline (always)]
fn from (variant : DOUTTGL31_0_DIO8_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTTGL31_0_DIO8` writer - This bit is used to toggle DIO8 output."]
pub type DOUTTGL31_0_DIO8_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTTGL31_0_DIO8_AW > ; impl < 'a , REG , const O : u8 > DOUTTGL31_0_DIO8_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn douttgl31_0_dio8_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO8_AW :: DOUTTGL31_0_DIO8_NO_EFFECT) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn douttgl31_0_dio8_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO8_AW :: DOUTTGL31_0_DIO8_TOGGLE) } } # [doc = "This bit is used to toggle DIO9 output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTTGL31_0_DIO9_AW { # [doc = "0: NO_EFFECT"]
DOUTTGL31_0_DIO9_NO_EFFECT = 0 , # [doc = "1: TOGGLE"]
DOUTTGL31_0_DIO9_TOGGLE = 1 , } impl From < DOUTTGL31_0_DIO9_AW > for bool { # [inline (always)]
fn from (variant : DOUTTGL31_0_DIO9_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTTGL31_0_DIO9` writer - This bit is used to toggle DIO9 output."]
pub type DOUTTGL31_0_DIO9_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTTGL31_0_DIO9_AW > ; impl < 'a , REG , const O : u8 > DOUTTGL31_0_DIO9_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn douttgl31_0_dio9_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO9_AW :: DOUTTGL31_0_DIO9_NO_EFFECT) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn douttgl31_0_dio9_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO9_AW :: DOUTTGL31_0_DIO9_TOGGLE) } } # [doc = "This bit is used to toggle DIO10 output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTTGL31_0_DIO10_AW { # [doc = "0: NO_EFFECT"]
DOUTTGL31_0_DIO10_NO_EFFECT = 0 , # [doc = "1: TOGGLE"]
DOUTTGL31_0_DIO10_TOGGLE = 1 , } impl From < DOUTTGL31_0_DIO10_AW > for bool { # [inline (always)]
fn from (variant : DOUTTGL31_0_DIO10_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTTGL31_0_DIO10` writer - This bit is used to toggle DIO10 output."]
pub type DOUTTGL31_0_DIO10_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTTGL31_0_DIO10_AW > ; impl < 'a , REG , const O : u8 > DOUTTGL31_0_DIO10_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn douttgl31_0_dio10_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO10_AW :: DOUTTGL31_0_DIO10_NO_EFFECT) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn douttgl31_0_dio10_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO10_AW :: DOUTTGL31_0_DIO10_TOGGLE) } } # [doc = "This bit is used to toggle DIO11 output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTTGL31_0_DIO11_AW { # [doc = "0: NO_EFFECT"]
DOUTTGL31_0_DIO11_NO_EFFECT = 0 , # [doc = "1: TOGGLE"]
DOUTTGL31_0_DIO11_TOGGLE = 1 , } impl From < DOUTTGL31_0_DIO11_AW > for bool { # [inline (always)]
fn from (variant : DOUTTGL31_0_DIO11_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTTGL31_0_DIO11` writer - This bit is used to toggle DIO11 output."]
pub type DOUTTGL31_0_DIO11_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTTGL31_0_DIO11_AW > ; impl < 'a , REG , const O : u8 > DOUTTGL31_0_DIO11_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn douttgl31_0_dio11_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO11_AW :: DOUTTGL31_0_DIO11_NO_EFFECT) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn douttgl31_0_dio11_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO11_AW :: DOUTTGL31_0_DIO11_TOGGLE) } } # [doc = "This bit is used to toggle DIO12 output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTTGL31_0_DIO12_AW { # [doc = "0: NO_EFFECT"]
DOUTTGL31_0_DIO12_NO_EFFECT = 0 , # [doc = "1: TOGGLE"]
DOUTTGL31_0_DIO12_TOGGLE = 1 , } impl From < DOUTTGL31_0_DIO12_AW > for bool { # [inline (always)]
fn from (variant : DOUTTGL31_0_DIO12_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTTGL31_0_DIO12` writer - This bit is used to toggle DIO12 output."]
pub type DOUTTGL31_0_DIO12_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTTGL31_0_DIO12_AW > ; impl < 'a , REG , const O : u8 > DOUTTGL31_0_DIO12_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn douttgl31_0_dio12_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO12_AW :: DOUTTGL31_0_DIO12_NO_EFFECT) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn douttgl31_0_dio12_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO12_AW :: DOUTTGL31_0_DIO12_TOGGLE) } } # [doc = "This bit is used to toggle DIO13 output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTTGL31_0_DIO13_AW { # [doc = "0: NO_EFFECT"]
DOUTTGL31_0_DIO13_NO_EFFECT = 0 , # [doc = "1: TOGGLE"]
DOUTTGL31_0_DIO13_TOGGLE = 1 , } impl From < DOUTTGL31_0_DIO13_AW > for bool { # [inline (always)]
fn from (variant : DOUTTGL31_0_DIO13_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTTGL31_0_DIO13` writer - This bit is used to toggle DIO13 output."]
pub type DOUTTGL31_0_DIO13_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTTGL31_0_DIO13_AW > ; impl < 'a , REG , const O : u8 > DOUTTGL31_0_DIO13_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn douttgl31_0_dio13_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO13_AW :: DOUTTGL31_0_DIO13_NO_EFFECT) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn douttgl31_0_dio13_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO13_AW :: DOUTTGL31_0_DIO13_TOGGLE) } } # [doc = "This bit is used to toggle DIO14 output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTTGL31_0_DIO14_AW { # [doc = "0: NO_EFFECT"]
DOUTTGL31_0_DIO14_NO_EFFECT = 0 , # [doc = "1: TOGGLE"]
DOUTTGL31_0_DIO14_TOGGLE = 1 , } impl From < DOUTTGL31_0_DIO14_AW > for bool { # [inline (always)]
fn from (variant : DOUTTGL31_0_DIO14_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTTGL31_0_DIO14` writer - This bit is used to toggle DIO14 output."]
pub type DOUTTGL31_0_DIO14_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTTGL31_0_DIO14_AW > ; impl < 'a , REG , const O : u8 > DOUTTGL31_0_DIO14_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn douttgl31_0_dio14_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO14_AW :: DOUTTGL31_0_DIO14_NO_EFFECT) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn douttgl31_0_dio14_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO14_AW :: DOUTTGL31_0_DIO14_TOGGLE) } } # [doc = "This bit is used to toggle DIO15 output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTTGL31_0_DIO15_AW { # [doc = "0: NO_EFFECT"]
DOUTTGL31_0_DIO15_NO_EFFECT = 0 , # [doc = "1: TOGGLE"]
DOUTTGL31_0_DIO15_TOGGLE = 1 , } impl From < DOUTTGL31_0_DIO15_AW > for bool { # [inline (always)]
fn from (variant : DOUTTGL31_0_DIO15_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTTGL31_0_DIO15` writer - This bit is used to toggle DIO15 output."]
pub type DOUTTGL31_0_DIO15_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTTGL31_0_DIO15_AW > ; impl < 'a , REG , const O : u8 > DOUTTGL31_0_DIO15_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn douttgl31_0_dio15_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO15_AW :: DOUTTGL31_0_DIO15_NO_EFFECT) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn douttgl31_0_dio15_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO15_AW :: DOUTTGL31_0_DIO15_TOGGLE) } } # [doc = "This bit is used to toggle DIO16 output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTTGL31_0_DIO16_AW { # [doc = "0: NO_EFFECT"]
DOUTTGL31_0_DIO16_NO_EFFECT = 0 , # [doc = "1: TOGGLE"]
DOUTTGL31_0_DIO16_TOGGLE = 1 , } impl From < DOUTTGL31_0_DIO16_AW > for bool { # [inline (always)]
fn from (variant : DOUTTGL31_0_DIO16_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTTGL31_0_DIO16` writer - This bit is used to toggle DIO16 output."]
pub type DOUTTGL31_0_DIO16_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTTGL31_0_DIO16_AW > ; impl < 'a , REG , const O : u8 > DOUTTGL31_0_DIO16_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn douttgl31_0_dio16_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO16_AW :: DOUTTGL31_0_DIO16_NO_EFFECT) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn douttgl31_0_dio16_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO16_AW :: DOUTTGL31_0_DIO16_TOGGLE) } } # [doc = "This bit is used to toggle DIO17 output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTTGL31_0_DIO17_AW { # [doc = "0: NO_EFFECT"]
DOUTTGL31_0_DIO17_NO_EFFECT = 0 , # [doc = "1: TOGGLE"]
DOUTTGL31_0_DIO17_TOGGLE = 1 , } impl From < DOUTTGL31_0_DIO17_AW > for bool { # [inline (always)]
fn from (variant : DOUTTGL31_0_DIO17_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTTGL31_0_DIO17` writer - This bit is used to toggle DIO17 output."]
pub type DOUTTGL31_0_DIO17_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTTGL31_0_DIO17_AW > ; impl < 'a , REG , const O : u8 > DOUTTGL31_0_DIO17_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn douttgl31_0_dio17_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO17_AW :: DOUTTGL31_0_DIO17_NO_EFFECT) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn douttgl31_0_dio17_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO17_AW :: DOUTTGL31_0_DIO17_TOGGLE) } } # [doc = "This bit is used to toggle DIO18 output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTTGL31_0_DIO18_AW { # [doc = "0: NO_EFFECT"]
DOUTTGL31_0_DIO18_NO_EFFECT = 0 , # [doc = "1: TOGGLE"]
DOUTTGL31_0_DIO18_TOGGLE = 1 , } impl From < DOUTTGL31_0_DIO18_AW > for bool { # [inline (always)]
fn from (variant : DOUTTGL31_0_DIO18_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTTGL31_0_DIO18` writer - This bit is used to toggle DIO18 output."]
pub type DOUTTGL31_0_DIO18_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTTGL31_0_DIO18_AW > ; impl < 'a , REG , const O : u8 > DOUTTGL31_0_DIO18_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn douttgl31_0_dio18_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO18_AW :: DOUTTGL31_0_DIO18_NO_EFFECT) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn douttgl31_0_dio18_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO18_AW :: DOUTTGL31_0_DIO18_TOGGLE) } } # [doc = "This bit is used to toggle DIO19 output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTTGL31_0_DIO19_AW { # [doc = "0: NO_EFFECT"]
DOUTTGL31_0_DIO19_NO_EFFECT = 0 , # [doc = "1: TOGGLE"]
DOUTTGL31_0_DIO19_TOGGLE = 1 , } impl From < DOUTTGL31_0_DIO19_AW > for bool { # [inline (always)]
fn from (variant : DOUTTGL31_0_DIO19_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTTGL31_0_DIO19` writer - This bit is used to toggle DIO19 output."]
pub type DOUTTGL31_0_DIO19_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTTGL31_0_DIO19_AW > ; impl < 'a , REG , const O : u8 > DOUTTGL31_0_DIO19_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn douttgl31_0_dio19_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO19_AW :: DOUTTGL31_0_DIO19_NO_EFFECT) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn douttgl31_0_dio19_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO19_AW :: DOUTTGL31_0_DIO19_TOGGLE) } } # [doc = "This bit is used to toggle DIO20 output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTTGL31_0_DIO20_AW { # [doc = "0: NO_EFFECT"]
DOUTTGL31_0_DIO20_NO_EFFECT = 0 , # [doc = "1: TOGGLE"]
DOUTTGL31_0_DIO20_TOGGLE = 1 , } impl From < DOUTTGL31_0_DIO20_AW > for bool { # [inline (always)]
fn from (variant : DOUTTGL31_0_DIO20_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTTGL31_0_DIO20` writer - This bit is used to toggle DIO20 output."]
pub type DOUTTGL31_0_DIO20_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTTGL31_0_DIO20_AW > ; impl < 'a , REG , const O : u8 > DOUTTGL31_0_DIO20_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn douttgl31_0_dio20_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO20_AW :: DOUTTGL31_0_DIO20_NO_EFFECT) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn douttgl31_0_dio20_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO20_AW :: DOUTTGL31_0_DIO20_TOGGLE) } } # [doc = "This bit is used to toggle DIO21 output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTTGL31_0_DIO21_AW { # [doc = "0: NO_EFFECT"]
DOUTTGL31_0_DIO21_NO_EFFECT = 0 , # [doc = "1: TOGGLE"]
DOUTTGL31_0_DIO21_TOGGLE = 1 , } impl From < DOUTTGL31_0_DIO21_AW > for bool { # [inline (always)]
fn from (variant : DOUTTGL31_0_DIO21_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTTGL31_0_DIO21` writer - This bit is used to toggle DIO21 output."]
pub type DOUTTGL31_0_DIO21_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTTGL31_0_DIO21_AW > ; impl < 'a , REG , const O : u8 > DOUTTGL31_0_DIO21_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn douttgl31_0_dio21_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO21_AW :: DOUTTGL31_0_DIO21_NO_EFFECT) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn douttgl31_0_dio21_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO21_AW :: DOUTTGL31_0_DIO21_TOGGLE) } } # [doc = "This bit is used to toggle DIO22 output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTTGL31_0_DIO22_AW { # [doc = "0: NO_EFFECT"]
DOUTTGL31_0_DIO22_NO_EFFECT = 0 , # [doc = "1: TOGGLE"]
DOUTTGL31_0_DIO22_TOGGLE = 1 , } impl From < DOUTTGL31_0_DIO22_AW > for bool { # [inline (always)]
fn from (variant : DOUTTGL31_0_DIO22_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTTGL31_0_DIO22` writer - This bit is used to toggle DIO22 output."]
pub type DOUTTGL31_0_DIO22_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTTGL31_0_DIO22_AW > ; impl < 'a , REG , const O : u8 > DOUTTGL31_0_DIO22_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn douttgl31_0_dio22_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO22_AW :: DOUTTGL31_0_DIO22_NO_EFFECT) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn douttgl31_0_dio22_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO22_AW :: DOUTTGL31_0_DIO22_TOGGLE) } } # [doc = "This bit is used to toggle DIO23 output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTTGL31_0_DIO23_AW { # [doc = "0: NO_EFFECT"]
DOUTTGL31_0_DIO23_NO_EFFECT = 0 , # [doc = "1: TOGGLE"]
DOUTTGL31_0_DIO23_TOGGLE = 1 , } impl From < DOUTTGL31_0_DIO23_AW > for bool { # [inline (always)]
fn from (variant : DOUTTGL31_0_DIO23_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTTGL31_0_DIO23` writer - This bit is used to toggle DIO23 output."]
pub type DOUTTGL31_0_DIO23_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTTGL31_0_DIO23_AW > ; impl < 'a , REG , const O : u8 > DOUTTGL31_0_DIO23_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn douttgl31_0_dio23_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO23_AW :: DOUTTGL31_0_DIO23_NO_EFFECT) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn douttgl31_0_dio23_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO23_AW :: DOUTTGL31_0_DIO23_TOGGLE) } } # [doc = "This bit is used to toggle DIO24 output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTTGL31_0_DIO24_AW { # [doc = "0: NO_EFFECT"]
DOUTTGL31_0_DIO24_NO_EFFECT = 0 , # [doc = "1: TOGGLE"]
DOUTTGL31_0_DIO24_TOGGLE = 1 , } impl From < DOUTTGL31_0_DIO24_AW > for bool { # [inline (always)]
fn from (variant : DOUTTGL31_0_DIO24_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTTGL31_0_DIO24` writer - This bit is used to toggle DIO24 output."]
pub type DOUTTGL31_0_DIO24_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTTGL31_0_DIO24_AW > ; impl < 'a , REG , const O : u8 > DOUTTGL31_0_DIO24_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn douttgl31_0_dio24_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO24_AW :: DOUTTGL31_0_DIO24_NO_EFFECT) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn douttgl31_0_dio24_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO24_AW :: DOUTTGL31_0_DIO24_TOGGLE) } } # [doc = "This bit is used to toggle DIO25 output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTTGL31_0_DIO25_AW { # [doc = "0: NO_EFFECT"]
DOUTTGL31_0_DIO25_NO_EFFECT = 0 , # [doc = "1: TOGGLE"]
DOUTTGL31_0_DIO25_TOGGLE = 1 , } impl From < DOUTTGL31_0_DIO25_AW > for bool { # [inline (always)]
fn from (variant : DOUTTGL31_0_DIO25_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTTGL31_0_DIO25` writer - This bit is used to toggle DIO25 output."]
pub type DOUTTGL31_0_DIO25_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTTGL31_0_DIO25_AW > ; impl < 'a , REG , const O : u8 > DOUTTGL31_0_DIO25_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn douttgl31_0_dio25_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO25_AW :: DOUTTGL31_0_DIO25_NO_EFFECT) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn douttgl31_0_dio25_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO25_AW :: DOUTTGL31_0_DIO25_TOGGLE) } } # [doc = "This bit is used to toggle DIO26 output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTTGL31_0_DIO26_AW { # [doc = "0: NO_EFFECT"]
DOUTTGL31_0_DIO26_NO_EFFECT = 0 , # [doc = "1: TOGGLE"]
DOUTTGL31_0_DIO26_TOGGLE = 1 , } impl From < DOUTTGL31_0_DIO26_AW > for bool { # [inline (always)]
fn from (variant : DOUTTGL31_0_DIO26_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTTGL31_0_DIO26` writer - This bit is used to toggle DIO26 output."]
pub type DOUTTGL31_0_DIO26_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTTGL31_0_DIO26_AW > ; impl < 'a , REG , const O : u8 > DOUTTGL31_0_DIO26_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn douttgl31_0_dio26_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO26_AW :: DOUTTGL31_0_DIO26_NO_EFFECT) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn douttgl31_0_dio26_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO26_AW :: DOUTTGL31_0_DIO26_TOGGLE) } } # [doc = "This bit is used to toggle DIO27 output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTTGL31_0_DIO27_AW { # [doc = "0: NO_EFFECT"]
DOUTTGL31_0_DIO27_NO_EFFECT = 0 , # [doc = "1: TOGGLE"]
DOUTTGL31_0_DIO27_TOGGLE = 1 , } impl From < DOUTTGL31_0_DIO27_AW > for bool { # [inline (always)]
fn from (variant : DOUTTGL31_0_DIO27_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTTGL31_0_DIO27` writer - This bit is used to toggle DIO27 output."]
pub type DOUTTGL31_0_DIO27_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTTGL31_0_DIO27_AW > ; impl < 'a , REG , const O : u8 > DOUTTGL31_0_DIO27_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn douttgl31_0_dio27_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO27_AW :: DOUTTGL31_0_DIO27_NO_EFFECT) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn douttgl31_0_dio27_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO27_AW :: DOUTTGL31_0_DIO27_TOGGLE) } } # [doc = "This bit is used to toggle DIO28 output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTTGL31_0_DIO28_AW { # [doc = "0: NO_EFFECT"]
DOUTTGL31_0_DIO28_NO_EFFECT = 0 , # [doc = "1: TOGGLE"]
DOUTTGL31_0_DIO28_TOGGLE = 1 , } impl From < DOUTTGL31_0_DIO28_AW > for bool { # [inline (always)]
fn from (variant : DOUTTGL31_0_DIO28_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTTGL31_0_DIO28` writer - This bit is used to toggle DIO28 output."]
pub type DOUTTGL31_0_DIO28_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTTGL31_0_DIO28_AW > ; impl < 'a , REG , const O : u8 > DOUTTGL31_0_DIO28_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn douttgl31_0_dio28_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO28_AW :: DOUTTGL31_0_DIO28_NO_EFFECT) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn douttgl31_0_dio28_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO28_AW :: DOUTTGL31_0_DIO28_TOGGLE) } } # [doc = "This bit is used to toggle DIO29 output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTTGL31_0_DIO29_AW { # [doc = "0: NO_EFFECT"]
DOUTTGL31_0_DIO29_NO_EFFECT = 0 , # [doc = "1: TOGGLE"]
DOUTTGL31_0_DIO29_TOGGLE = 1 , } impl From < DOUTTGL31_0_DIO29_AW > for bool { # [inline (always)]
fn from (variant : DOUTTGL31_0_DIO29_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTTGL31_0_DIO29` writer - This bit is used to toggle DIO29 output."]
pub type DOUTTGL31_0_DIO29_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTTGL31_0_DIO29_AW > ; impl < 'a , REG , const O : u8 > DOUTTGL31_0_DIO29_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn douttgl31_0_dio29_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO29_AW :: DOUTTGL31_0_DIO29_NO_EFFECT) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn douttgl31_0_dio29_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO29_AW :: DOUTTGL31_0_DIO29_TOGGLE) } } # [doc = "This bit is used to toggle DIO30 output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTTGL31_0_DIO30_AW { # [doc = "0: NO_EFFECT"]
DOUTTGL31_0_DIO30_NO_EFFECT = 0 , # [doc = "1: TOGGLE"]
DOUTTGL31_0_DIO30_TOGGLE = 1 , } impl From < DOUTTGL31_0_DIO30_AW > for bool { # [inline (always)]
fn from (variant : DOUTTGL31_0_DIO30_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTTGL31_0_DIO30` writer - This bit is used to toggle DIO30 output."]
pub type DOUTTGL31_0_DIO30_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTTGL31_0_DIO30_AW > ; impl < 'a , REG , const O : u8 > DOUTTGL31_0_DIO30_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn douttgl31_0_dio30_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO30_AW :: DOUTTGL31_0_DIO30_NO_EFFECT) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn douttgl31_0_dio30_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO30_AW :: DOUTTGL31_0_DIO30_TOGGLE) } } # [doc = "This bit is used to toggle DIO31 output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOUTTGL31_0_DIO31_AW { # [doc = "0: NO_EFFECT"]
DOUTTGL31_0_DIO31_NO_EFFECT = 0 , # [doc = "1: TOGGLE"]
DOUTTGL31_0_DIO31_TOGGLE = 1 , } impl From < DOUTTGL31_0_DIO31_AW > for bool { # [inline (always)]
fn from (variant : DOUTTGL31_0_DIO31_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOUTTGL31_0_DIO31` writer - This bit is used to toggle DIO31 output."]
pub type DOUTTGL31_0_DIO31_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOUTTGL31_0_DIO31_AW > ; impl < 'a , REG , const O : u8 > DOUTTGL31_0_DIO31_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn douttgl31_0_dio31_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO31_AW :: DOUTTGL31_0_DIO31_NO_EFFECT) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn douttgl31_0_dio31_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (DOUTTGL31_0_DIO31_AW :: DOUTTGL31_0_DIO31_TOGGLE) } } impl W { # [doc = "Bit 0 - This bit is used to toggle DIO0 output."]
# [inline (always)]
# [must_use]
pub fn douttgl31_0_dio0 (& mut self) -> DOUTTGL31_0_DIO0_W < DOUTTGL31_0_SPEC , 0 > { DOUTTGL31_0_DIO0_W :: new (self) } # [doc = "Bit 1 - This bit is used to toggle DIO1 output."]
# [inline (always)]
# [must_use]
pub fn douttgl31_0_dio1 (& mut self) -> DOUTTGL31_0_DIO1_W < DOUTTGL31_0_SPEC , 1 > { DOUTTGL31_0_DIO1_W :: new (self) } # [doc = "Bit 2 - This bit is used to toggle DIO2 output."]
# [inline (always)]
# [must_use]
pub fn douttgl31_0_dio2 (& mut self) -> DOUTTGL31_0_DIO2_W < DOUTTGL31_0_SPEC , 2 > { DOUTTGL31_0_DIO2_W :: new (self) } # [doc = "Bit 3 - This bit is used to toggle DIO3 output."]
# [inline (always)]
# [must_use]
pub fn douttgl31_0_dio3 (& mut self) -> DOUTTGL31_0_DIO3_W < DOUTTGL31_0_SPEC , 3 > { DOUTTGL31_0_DIO3_W :: new (self) } # [doc = "Bit 4 - This bit is used to toggle DIO4 output."]
# [inline (always)]
# [must_use]
pub fn douttgl31_0_dio4 (& mut self) -> DOUTTGL31_0_DIO4_W < DOUTTGL31_0_SPEC , 4 > { DOUTTGL31_0_DIO4_W :: new (self) } # [doc = "Bit 5 - This bit is used to toggle DIO5 output."]
# [inline (always)]
# [must_use]
pub fn douttgl31_0_dio5 (& mut self) -> DOUTTGL31_0_DIO5_W < DOUTTGL31_0_SPEC , 5 > { DOUTTGL31_0_DIO5_W :: new (self) } # [doc = "Bit 6 - This bit is used to toggle DIO6 output."]
# [inline (always)]
# [must_use]
pub fn douttgl31_0_dio6 (& mut self) -> DOUTTGL31_0_DIO6_W < DOUTTGL31_0_SPEC , 6 > { DOUTTGL31_0_DIO6_W :: new (self) } # [doc = "Bit 7 - This bit is used to toggle DIO7 output."]
# [inline (always)]
# [must_use]
pub fn douttgl31_0_dio7 (& mut self) -> DOUTTGL31_0_DIO7_W < DOUTTGL31_0_SPEC , 7 > { DOUTTGL31_0_DIO7_W :: new (self) } # [doc = "Bit 8 - This bit is used to toggle DIO8 output."]
# [inline (always)]
# [must_use]
pub fn douttgl31_0_dio8 (& mut self) -> DOUTTGL31_0_DIO8_W < DOUTTGL31_0_SPEC , 8 > { DOUTTGL31_0_DIO8_W :: new (self) } # [doc = "Bit 9 - This bit is used to toggle DIO9 output."]
# [inline (always)]
# [must_use]
pub fn douttgl31_0_dio9 (& mut self) -> DOUTTGL31_0_DIO9_W < DOUTTGL31_0_SPEC , 9 > { DOUTTGL31_0_DIO9_W :: new (self) } # [doc = "Bit 10 - This bit is used to toggle DIO10 output."]
# [inline (always)]
# [must_use]
pub fn douttgl31_0_dio10 (& mut self) -> DOUTTGL31_0_DIO10_W < DOUTTGL31_0_SPEC , 10 > { DOUTTGL31_0_DIO10_W :: new (self) } # [doc = "Bit 11 - This bit is used to toggle DIO11 output."]
# [inline (always)]
# [must_use]
pub fn douttgl31_0_dio11 (& mut self) -> DOUTTGL31_0_DIO11_W < DOUTTGL31_0_SPEC , 11 > { DOUTTGL31_0_DIO11_W :: new (self) } # [doc = "Bit 12 - This bit is used to toggle DIO12 output."]
# [inline (always)]
# [must_use]
pub fn douttgl31_0_dio12 (& mut self) -> DOUTTGL31_0_DIO12_W < DOUTTGL31_0_SPEC , 12 > { DOUTTGL31_0_DIO12_W :: new (self) } # [doc = "Bit 13 - This bit is used to toggle DIO13 output."]
# [inline (always)]
# [must_use]
pub fn douttgl31_0_dio13 (& mut self) -> DOUTTGL31_0_DIO13_W < DOUTTGL31_0_SPEC , 13 > { DOUTTGL31_0_DIO13_W :: new (self) } # [doc = "Bit 14 - This bit is used to toggle DIO14 output."]
# [inline (always)]
# [must_use]
pub fn douttgl31_0_dio14 (& mut self) -> DOUTTGL31_0_DIO14_W < DOUTTGL31_0_SPEC , 14 > { DOUTTGL31_0_DIO14_W :: new (self) } # [doc = "Bit 15 - This bit is used to toggle DIO15 output."]
# [inline (always)]
# [must_use]
pub fn douttgl31_0_dio15 (& mut self) -> DOUTTGL31_0_DIO15_W < DOUTTGL31_0_SPEC , 15 > { DOUTTGL31_0_DIO15_W :: new (self) } # [doc = "Bit 16 - This bit is used to toggle DIO16 output."]
# [inline (always)]
# [must_use]
pub fn douttgl31_0_dio16 (& mut self) -> DOUTTGL31_0_DIO16_W < DOUTTGL31_0_SPEC , 16 > { DOUTTGL31_0_DIO16_W :: new (self) } # [doc = "Bit 17 - This bit is used to toggle DIO17 output."]
# [inline (always)]
# [must_use]
pub fn douttgl31_0_dio17 (& mut self) -> DOUTTGL31_0_DIO17_W < DOUTTGL31_0_SPEC , 17 > { DOUTTGL31_0_DIO17_W :: new (self) } # [doc = "Bit 18 - This bit is used to toggle DIO18 output."]
# [inline (always)]
# [must_use]
pub fn douttgl31_0_dio18 (& mut self) -> DOUTTGL31_0_DIO18_W < DOUTTGL31_0_SPEC , 18 > { DOUTTGL31_0_DIO18_W :: new (self) } # [doc = "Bit 19 - This bit is used to toggle DIO19 output."]
# [inline (always)]
# [must_use]
pub fn douttgl31_0_dio19 (& mut self) -> DOUTTGL31_0_DIO19_W < DOUTTGL31_0_SPEC , 19 > { DOUTTGL31_0_DIO19_W :: new (self) } # [doc = "Bit 20 - This bit is used to toggle DIO20 output."]
# [inline (always)]
# [must_use]
pub fn douttgl31_0_dio20 (& mut self) -> DOUTTGL31_0_DIO20_W < DOUTTGL31_0_SPEC , 20 > { DOUTTGL31_0_DIO20_W :: new (self) } # [doc = "Bit 21 - This bit is used to toggle DIO21 output."]
# [inline (always)]
# [must_use]
pub fn douttgl31_0_dio21 (& mut self) -> DOUTTGL31_0_DIO21_W < DOUTTGL31_0_SPEC , 21 > { DOUTTGL31_0_DIO21_W :: new (self) } # [doc = "Bit 22 - This bit is used to toggle DIO22 output."]
# [inline (always)]
# [must_use]
pub fn douttgl31_0_dio22 (& mut self) -> DOUTTGL31_0_DIO22_W < DOUTTGL31_0_SPEC , 22 > { DOUTTGL31_0_DIO22_W :: new (self) } # [doc = "Bit 23 - This bit is used to toggle DIO23 output."]
# [inline (always)]
# [must_use]
pub fn douttgl31_0_dio23 (& mut self) -> DOUTTGL31_0_DIO23_W < DOUTTGL31_0_SPEC , 23 > { DOUTTGL31_0_DIO23_W :: new (self) } # [doc = "Bit 24 - This bit is used to toggle DIO24 output."]
# [inline (always)]
# [must_use]
pub fn douttgl31_0_dio24 (& mut self) -> DOUTTGL31_0_DIO24_W < DOUTTGL31_0_SPEC , 24 > { DOUTTGL31_0_DIO24_W :: new (self) } # [doc = "Bit 25 - This bit is used to toggle DIO25 output."]
# [inline (always)]
# [must_use]
pub fn douttgl31_0_dio25 (& mut self) -> DOUTTGL31_0_DIO25_W < DOUTTGL31_0_SPEC , 25 > { DOUTTGL31_0_DIO25_W :: new (self) } # [doc = "Bit 26 - This bit is used to toggle DIO26 output."]
# [inline (always)]
# [must_use]
pub fn douttgl31_0_dio26 (& mut self) -> DOUTTGL31_0_DIO26_W < DOUTTGL31_0_SPEC , 26 > { DOUTTGL31_0_DIO26_W :: new (self) } # [doc = "Bit 27 - This bit is used to toggle DIO27 output."]
# [inline (always)]
# [must_use]
pub fn douttgl31_0_dio27 (& mut self) -> DOUTTGL31_0_DIO27_W < DOUTTGL31_0_SPEC , 27 > { DOUTTGL31_0_DIO27_W :: new (self) } # [doc = "Bit 28 - This bit is used to toggle DIO28 output."]
# [inline (always)]
# [must_use]
pub fn douttgl31_0_dio28 (& mut self) -> DOUTTGL31_0_DIO28_W < DOUTTGL31_0_SPEC , 28 > { DOUTTGL31_0_DIO28_W :: new (self) } # [doc = "Bit 29 - This bit is used to toggle DIO29 output."]
# [inline (always)]
# [must_use]
pub fn douttgl31_0_dio29 (& mut self) -> DOUTTGL31_0_DIO29_W < DOUTTGL31_0_SPEC , 29 > { DOUTTGL31_0_DIO29_W :: new (self) } # [doc = "Bit 30 - This bit is used to toggle DIO30 output."]
# [inline (always)]
# [must_use]
pub fn douttgl31_0_dio30 (& mut self) -> DOUTTGL31_0_DIO30_W < DOUTTGL31_0_SPEC , 30 > { DOUTTGL31_0_DIO30_W :: new (self) } # [doc = "Bit 31 - This bit is used to toggle DIO31 output."]
# [inline (always)]
# [must_use]
pub fn douttgl31_0_dio31 (& mut self) -> DOUTTGL31_0_DIO31_W < DOUTTGL31_0_SPEC , 31 > { DOUTTGL31_0_DIO31_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Data output toggle 31 to 0\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`douttgl31_0::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DOUTTGL31_0_SPEC ; impl crate :: RegisterSpec for DOUTTGL31_0_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`douttgl31_0::W`](W) writer structure"]
impl crate :: Writable for DOUTTGL31_0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets DOUTTGL31_0 to value 0"]
impl crate :: Resettable for DOUTTGL31_0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DOE31_0 (rw) register accessor: Data output enable 31 to 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`doe31_0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`doe31_0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@doe31_0`]
module"]
pub type DOE31_0 = crate :: Reg < doe31_0 :: DOE31_0_SPEC > ; # [doc = "Data output enable 31 to 0"]
pub mod doe31_0 { # [doc = "Register `DOE31_0` reader"]
pub type R = crate :: R < DOE31_0_SPEC > ; # [doc = "Register `DOE31_0` writer"]
pub type W = crate :: W < DOE31_0_SPEC > ; # [doc = "Field `DOE31_0_DIO0` reader - Enables data output for DIO0."]
pub type DOE31_0_DIO0_R = crate :: BitReader < DOE31_0_DIO0_A > ; # [doc = "Enables data output for DIO0.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOE31_0_DIO0_A { # [doc = "0: DISABLE"]
DOE31_0_DIO0_DISABLE = 0 , # [doc = "1: ENABLE"]
DOE31_0_DIO0_ENABLE = 1 , } impl From < DOE31_0_DIO0_A > for bool { # [inline (always)]
fn from (variant : DOE31_0_DIO0_A) -> Self { variant as u8 != 0 } } impl DOE31_0_DIO0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOE31_0_DIO0_A { match self . bits { false => DOE31_0_DIO0_A :: DOE31_0_DIO0_DISABLE , true => DOE31_0_DIO0_A :: DOE31_0_DIO0_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_doe31_0_dio0_disable (& self) -> bool { * self == DOE31_0_DIO0_A :: DOE31_0_DIO0_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_doe31_0_dio0_enable (& self) -> bool { * self == DOE31_0_DIO0_A :: DOE31_0_DIO0_ENABLE } } # [doc = "Field `DOE31_0_DIO0` writer - Enables data output for DIO0."]
pub type DOE31_0_DIO0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOE31_0_DIO0_A > ; impl < 'a , REG , const O : u8 > DOE31_0_DIO0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn doe31_0_dio0_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO0_A :: DOE31_0_DIO0_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn doe31_0_dio0_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO0_A :: DOE31_0_DIO0_ENABLE) } } # [doc = "Field `DOE31_0_DIO1` reader - Enables data output for DIO1."]
pub type DOE31_0_DIO1_R = crate :: BitReader < DOE31_0_DIO1_A > ; # [doc = "Enables data output for DIO1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOE31_0_DIO1_A { # [doc = "0: DISABLE"]
DOE31_0_DIO1_DISABLE = 0 , # [doc = "1: ENABLE"]
DOE31_0_DIO1_ENABLE = 1 , } impl From < DOE31_0_DIO1_A > for bool { # [inline (always)]
fn from (variant : DOE31_0_DIO1_A) -> Self { variant as u8 != 0 } } impl DOE31_0_DIO1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOE31_0_DIO1_A { match self . bits { false => DOE31_0_DIO1_A :: DOE31_0_DIO1_DISABLE , true => DOE31_0_DIO1_A :: DOE31_0_DIO1_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_doe31_0_dio1_disable (& self) -> bool { * self == DOE31_0_DIO1_A :: DOE31_0_DIO1_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_doe31_0_dio1_enable (& self) -> bool { * self == DOE31_0_DIO1_A :: DOE31_0_DIO1_ENABLE } } # [doc = "Field `DOE31_0_DIO1` writer - Enables data output for DIO1."]
pub type DOE31_0_DIO1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOE31_0_DIO1_A > ; impl < 'a , REG , const O : u8 > DOE31_0_DIO1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn doe31_0_dio1_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO1_A :: DOE31_0_DIO1_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn doe31_0_dio1_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO1_A :: DOE31_0_DIO1_ENABLE) } } # [doc = "Field `DOE31_0_DIO2` reader - Enables data output for DIO2."]
pub type DOE31_0_DIO2_R = crate :: BitReader < DOE31_0_DIO2_A > ; # [doc = "Enables data output for DIO2.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOE31_0_DIO2_A { # [doc = "0: DISABLE"]
DOE31_0_DIO2_DISABLE = 0 , # [doc = "1: ENABLE"]
DOE31_0_DIO2_ENABLE = 1 , } impl From < DOE31_0_DIO2_A > for bool { # [inline (always)]
fn from (variant : DOE31_0_DIO2_A) -> Self { variant as u8 != 0 } } impl DOE31_0_DIO2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOE31_0_DIO2_A { match self . bits { false => DOE31_0_DIO2_A :: DOE31_0_DIO2_DISABLE , true => DOE31_0_DIO2_A :: DOE31_0_DIO2_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_doe31_0_dio2_disable (& self) -> bool { * self == DOE31_0_DIO2_A :: DOE31_0_DIO2_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_doe31_0_dio2_enable (& self) -> bool { * self == DOE31_0_DIO2_A :: DOE31_0_DIO2_ENABLE } } # [doc = "Field `DOE31_0_DIO2` writer - Enables data output for DIO2."]
pub type DOE31_0_DIO2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOE31_0_DIO2_A > ; impl < 'a , REG , const O : u8 > DOE31_0_DIO2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn doe31_0_dio2_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO2_A :: DOE31_0_DIO2_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn doe31_0_dio2_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO2_A :: DOE31_0_DIO2_ENABLE) } } # [doc = "Field `DOE31_0_DIO3` reader - Enables data output for DIO3."]
pub type DOE31_0_DIO3_R = crate :: BitReader < DOE31_0_DIO3_A > ; # [doc = "Enables data output for DIO3.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOE31_0_DIO3_A { # [doc = "0: DISABLE"]
DOE31_0_DIO3_DISABLE = 0 , # [doc = "1: ENABLE"]
DOE31_0_DIO3_ENABLE = 1 , } impl From < DOE31_0_DIO3_A > for bool { # [inline (always)]
fn from (variant : DOE31_0_DIO3_A) -> Self { variant as u8 != 0 } } impl DOE31_0_DIO3_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOE31_0_DIO3_A { match self . bits { false => DOE31_0_DIO3_A :: DOE31_0_DIO3_DISABLE , true => DOE31_0_DIO3_A :: DOE31_0_DIO3_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_doe31_0_dio3_disable (& self) -> bool { * self == DOE31_0_DIO3_A :: DOE31_0_DIO3_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_doe31_0_dio3_enable (& self) -> bool { * self == DOE31_0_DIO3_A :: DOE31_0_DIO3_ENABLE } } # [doc = "Field `DOE31_0_DIO3` writer - Enables data output for DIO3."]
pub type DOE31_0_DIO3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOE31_0_DIO3_A > ; impl < 'a , REG , const O : u8 > DOE31_0_DIO3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn doe31_0_dio3_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO3_A :: DOE31_0_DIO3_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn doe31_0_dio3_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO3_A :: DOE31_0_DIO3_ENABLE) } } # [doc = "Field `DOE31_0_DIO4` reader - Enables data output for DIO4."]
pub type DOE31_0_DIO4_R = crate :: BitReader < DOE31_0_DIO4_A > ; # [doc = "Enables data output for DIO4.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOE31_0_DIO4_A { # [doc = "0: DISABLE"]
DOE31_0_DIO4_DISABLE = 0 , # [doc = "1: ENABLE"]
DOE31_0_DIO4_ENABLE = 1 , } impl From < DOE31_0_DIO4_A > for bool { # [inline (always)]
fn from (variant : DOE31_0_DIO4_A) -> Self { variant as u8 != 0 } } impl DOE31_0_DIO4_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOE31_0_DIO4_A { match self . bits { false => DOE31_0_DIO4_A :: DOE31_0_DIO4_DISABLE , true => DOE31_0_DIO4_A :: DOE31_0_DIO4_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_doe31_0_dio4_disable (& self) -> bool { * self == DOE31_0_DIO4_A :: DOE31_0_DIO4_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_doe31_0_dio4_enable (& self) -> bool { * self == DOE31_0_DIO4_A :: DOE31_0_DIO4_ENABLE } } # [doc = "Field `DOE31_0_DIO4` writer - Enables data output for DIO4."]
pub type DOE31_0_DIO4_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOE31_0_DIO4_A > ; impl < 'a , REG , const O : u8 > DOE31_0_DIO4_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn doe31_0_dio4_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO4_A :: DOE31_0_DIO4_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn doe31_0_dio4_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO4_A :: DOE31_0_DIO4_ENABLE) } } # [doc = "Field `DOE31_0_DIO5` reader - Enables data output for DIO5."]
pub type DOE31_0_DIO5_R = crate :: BitReader < DOE31_0_DIO5_A > ; # [doc = "Enables data output for DIO5.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOE31_0_DIO5_A { # [doc = "0: DISABLE"]
DOE31_0_DIO5_DISABLE = 0 , # [doc = "1: ENABLE"]
DOE31_0_DIO5_ENABLE = 1 , } impl From < DOE31_0_DIO5_A > for bool { # [inline (always)]
fn from (variant : DOE31_0_DIO5_A) -> Self { variant as u8 != 0 } } impl DOE31_0_DIO5_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOE31_0_DIO5_A { match self . bits { false => DOE31_0_DIO5_A :: DOE31_0_DIO5_DISABLE , true => DOE31_0_DIO5_A :: DOE31_0_DIO5_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_doe31_0_dio5_disable (& self) -> bool { * self == DOE31_0_DIO5_A :: DOE31_0_DIO5_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_doe31_0_dio5_enable (& self) -> bool { * self == DOE31_0_DIO5_A :: DOE31_0_DIO5_ENABLE } } # [doc = "Field `DOE31_0_DIO5` writer - Enables data output for DIO5."]
pub type DOE31_0_DIO5_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOE31_0_DIO5_A > ; impl < 'a , REG , const O : u8 > DOE31_0_DIO5_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn doe31_0_dio5_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO5_A :: DOE31_0_DIO5_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn doe31_0_dio5_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO5_A :: DOE31_0_DIO5_ENABLE) } } # [doc = "Field `DOE31_0_DIO6` reader - Enables data output for DIO6."]
pub type DOE31_0_DIO6_R = crate :: BitReader < DOE31_0_DIO6_A > ; # [doc = "Enables data output for DIO6.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOE31_0_DIO6_A { # [doc = "0: DISABLE"]
DOE31_0_DIO6_DISABLE = 0 , # [doc = "1: ENABLE"]
DOE31_0_DIO6_ENABLE = 1 , } impl From < DOE31_0_DIO6_A > for bool { # [inline (always)]
fn from (variant : DOE31_0_DIO6_A) -> Self { variant as u8 != 0 } } impl DOE31_0_DIO6_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOE31_0_DIO6_A { match self . bits { false => DOE31_0_DIO6_A :: DOE31_0_DIO6_DISABLE , true => DOE31_0_DIO6_A :: DOE31_0_DIO6_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_doe31_0_dio6_disable (& self) -> bool { * self == DOE31_0_DIO6_A :: DOE31_0_DIO6_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_doe31_0_dio6_enable (& self) -> bool { * self == DOE31_0_DIO6_A :: DOE31_0_DIO6_ENABLE } } # [doc = "Field `DOE31_0_DIO6` writer - Enables data output for DIO6."]
pub type DOE31_0_DIO6_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOE31_0_DIO6_A > ; impl < 'a , REG , const O : u8 > DOE31_0_DIO6_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn doe31_0_dio6_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO6_A :: DOE31_0_DIO6_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn doe31_0_dio6_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO6_A :: DOE31_0_DIO6_ENABLE) } } # [doc = "Field `DOE31_0_DIO7` reader - Enables data output for DIO7."]
pub type DOE31_0_DIO7_R = crate :: BitReader < DOE31_0_DIO7_A > ; # [doc = "Enables data output for DIO7.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOE31_0_DIO7_A { # [doc = "0: DISABLE"]
DOE31_0_DIO7_DISABLE = 0 , # [doc = "1: ENABLE"]
DOE31_0_DIO7_ENABLE = 1 , } impl From < DOE31_0_DIO7_A > for bool { # [inline (always)]
fn from (variant : DOE31_0_DIO7_A) -> Self { variant as u8 != 0 } } impl DOE31_0_DIO7_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOE31_0_DIO7_A { match self . bits { false => DOE31_0_DIO7_A :: DOE31_0_DIO7_DISABLE , true => DOE31_0_DIO7_A :: DOE31_0_DIO7_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_doe31_0_dio7_disable (& self) -> bool { * self == DOE31_0_DIO7_A :: DOE31_0_DIO7_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_doe31_0_dio7_enable (& self) -> bool { * self == DOE31_0_DIO7_A :: DOE31_0_DIO7_ENABLE } } # [doc = "Field `DOE31_0_DIO7` writer - Enables data output for DIO7."]
pub type DOE31_0_DIO7_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOE31_0_DIO7_A > ; impl < 'a , REG , const O : u8 > DOE31_0_DIO7_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn doe31_0_dio7_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO7_A :: DOE31_0_DIO7_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn doe31_0_dio7_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO7_A :: DOE31_0_DIO7_ENABLE) } } # [doc = "Field `DOE31_0_DIO8` reader - Enables data output for DIO8."]
pub type DOE31_0_DIO8_R = crate :: BitReader < DOE31_0_DIO8_A > ; # [doc = "Enables data output for DIO8.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOE31_0_DIO8_A { # [doc = "0: DISABLE"]
DOE31_0_DIO8_DISABLE = 0 , # [doc = "1: ENABLE"]
DOE31_0_DIO8_ENABLE = 1 , } impl From < DOE31_0_DIO8_A > for bool { # [inline (always)]
fn from (variant : DOE31_0_DIO8_A) -> Self { variant as u8 != 0 } } impl DOE31_0_DIO8_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOE31_0_DIO8_A { match self . bits { false => DOE31_0_DIO8_A :: DOE31_0_DIO8_DISABLE , true => DOE31_0_DIO8_A :: DOE31_0_DIO8_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_doe31_0_dio8_disable (& self) -> bool { * self == DOE31_0_DIO8_A :: DOE31_0_DIO8_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_doe31_0_dio8_enable (& self) -> bool { * self == DOE31_0_DIO8_A :: DOE31_0_DIO8_ENABLE } } # [doc = "Field `DOE31_0_DIO8` writer - Enables data output for DIO8."]
pub type DOE31_0_DIO8_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOE31_0_DIO8_A > ; impl < 'a , REG , const O : u8 > DOE31_0_DIO8_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn doe31_0_dio8_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO8_A :: DOE31_0_DIO8_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn doe31_0_dio8_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO8_A :: DOE31_0_DIO8_ENABLE) } } # [doc = "Field `DOE31_0_DIO9` reader - Enables data output for DIO9."]
pub type DOE31_0_DIO9_R = crate :: BitReader < DOE31_0_DIO9_A > ; # [doc = "Enables data output for DIO9.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOE31_0_DIO9_A { # [doc = "0: DISABLE"]
DOE31_0_DIO9_DISABLE = 0 , # [doc = "1: ENABLE"]
DOE31_0_DIO9_ENABLE = 1 , } impl From < DOE31_0_DIO9_A > for bool { # [inline (always)]
fn from (variant : DOE31_0_DIO9_A) -> Self { variant as u8 != 0 } } impl DOE31_0_DIO9_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOE31_0_DIO9_A { match self . bits { false => DOE31_0_DIO9_A :: DOE31_0_DIO9_DISABLE , true => DOE31_0_DIO9_A :: DOE31_0_DIO9_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_doe31_0_dio9_disable (& self) -> bool { * self == DOE31_0_DIO9_A :: DOE31_0_DIO9_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_doe31_0_dio9_enable (& self) -> bool { * self == DOE31_0_DIO9_A :: DOE31_0_DIO9_ENABLE } } # [doc = "Field `DOE31_0_DIO9` writer - Enables data output for DIO9."]
pub type DOE31_0_DIO9_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOE31_0_DIO9_A > ; impl < 'a , REG , const O : u8 > DOE31_0_DIO9_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn doe31_0_dio9_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO9_A :: DOE31_0_DIO9_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn doe31_0_dio9_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO9_A :: DOE31_0_DIO9_ENABLE) } } # [doc = "Field `DOE31_0_DIO10` reader - Enables data output for DIO10."]
pub type DOE31_0_DIO10_R = crate :: BitReader < DOE31_0_DIO10_A > ; # [doc = "Enables data output for DIO10.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOE31_0_DIO10_A { # [doc = "0: DISABLE"]
DOE31_0_DIO10_DISABLE = 0 , # [doc = "1: ENABLE"]
DOE31_0_DIO10_ENABLE = 1 , } impl From < DOE31_0_DIO10_A > for bool { # [inline (always)]
fn from (variant : DOE31_0_DIO10_A) -> Self { variant as u8 != 0 } } impl DOE31_0_DIO10_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOE31_0_DIO10_A { match self . bits { false => DOE31_0_DIO10_A :: DOE31_0_DIO10_DISABLE , true => DOE31_0_DIO10_A :: DOE31_0_DIO10_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_doe31_0_dio10_disable (& self) -> bool { * self == DOE31_0_DIO10_A :: DOE31_0_DIO10_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_doe31_0_dio10_enable (& self) -> bool { * self == DOE31_0_DIO10_A :: DOE31_0_DIO10_ENABLE } } # [doc = "Field `DOE31_0_DIO10` writer - Enables data output for DIO10."]
pub type DOE31_0_DIO10_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOE31_0_DIO10_A > ; impl < 'a , REG , const O : u8 > DOE31_0_DIO10_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn doe31_0_dio10_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO10_A :: DOE31_0_DIO10_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn doe31_0_dio10_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO10_A :: DOE31_0_DIO10_ENABLE) } } # [doc = "Field `DOE31_0_DIO11` reader - Enables data output for DIO11."]
pub type DOE31_0_DIO11_R = crate :: BitReader < DOE31_0_DIO11_A > ; # [doc = "Enables data output for DIO11.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOE31_0_DIO11_A { # [doc = "0: DISABLE"]
DOE31_0_DIO11_DISABLE = 0 , # [doc = "1: ENABLE"]
DOE31_0_DIO11_ENABLE = 1 , } impl From < DOE31_0_DIO11_A > for bool { # [inline (always)]
fn from (variant : DOE31_0_DIO11_A) -> Self { variant as u8 != 0 } } impl DOE31_0_DIO11_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOE31_0_DIO11_A { match self . bits { false => DOE31_0_DIO11_A :: DOE31_0_DIO11_DISABLE , true => DOE31_0_DIO11_A :: DOE31_0_DIO11_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_doe31_0_dio11_disable (& self) -> bool { * self == DOE31_0_DIO11_A :: DOE31_0_DIO11_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_doe31_0_dio11_enable (& self) -> bool { * self == DOE31_0_DIO11_A :: DOE31_0_DIO11_ENABLE } } # [doc = "Field `DOE31_0_DIO11` writer - Enables data output for DIO11."]
pub type DOE31_0_DIO11_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOE31_0_DIO11_A > ; impl < 'a , REG , const O : u8 > DOE31_0_DIO11_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn doe31_0_dio11_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO11_A :: DOE31_0_DIO11_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn doe31_0_dio11_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO11_A :: DOE31_0_DIO11_ENABLE) } } # [doc = "Field `DOE31_0_DIO12` reader - Enables data output for DIO12."]
pub type DOE31_0_DIO12_R = crate :: BitReader < DOE31_0_DIO12_A > ; # [doc = "Enables data output for DIO12.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOE31_0_DIO12_A { # [doc = "0: DISABLE"]
DOE31_0_DIO12_DISABLE = 0 , # [doc = "1: ENABLE"]
DOE31_0_DIO12_ENABLE = 1 , } impl From < DOE31_0_DIO12_A > for bool { # [inline (always)]
fn from (variant : DOE31_0_DIO12_A) -> Self { variant as u8 != 0 } } impl DOE31_0_DIO12_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOE31_0_DIO12_A { match self . bits { false => DOE31_0_DIO12_A :: DOE31_0_DIO12_DISABLE , true => DOE31_0_DIO12_A :: DOE31_0_DIO12_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_doe31_0_dio12_disable (& self) -> bool { * self == DOE31_0_DIO12_A :: DOE31_0_DIO12_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_doe31_0_dio12_enable (& self) -> bool { * self == DOE31_0_DIO12_A :: DOE31_0_DIO12_ENABLE } } # [doc = "Field `DOE31_0_DIO12` writer - Enables data output for DIO12."]
pub type DOE31_0_DIO12_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOE31_0_DIO12_A > ; impl < 'a , REG , const O : u8 > DOE31_0_DIO12_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn doe31_0_dio12_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO12_A :: DOE31_0_DIO12_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn doe31_0_dio12_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO12_A :: DOE31_0_DIO12_ENABLE) } } # [doc = "Field `DOE31_0_DIO13` reader - Enables data output for DIO13."]
pub type DOE31_0_DIO13_R = crate :: BitReader < DOE31_0_DIO13_A > ; # [doc = "Enables data output for DIO13.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOE31_0_DIO13_A { # [doc = "0: DISABLE"]
DOE31_0_DIO13_DISABLE = 0 , # [doc = "1: ENABLE"]
DOE31_0_DIO13_ENABLE = 1 , } impl From < DOE31_0_DIO13_A > for bool { # [inline (always)]
fn from (variant : DOE31_0_DIO13_A) -> Self { variant as u8 != 0 } } impl DOE31_0_DIO13_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOE31_0_DIO13_A { match self . bits { false => DOE31_0_DIO13_A :: DOE31_0_DIO13_DISABLE , true => DOE31_0_DIO13_A :: DOE31_0_DIO13_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_doe31_0_dio13_disable (& self) -> bool { * self == DOE31_0_DIO13_A :: DOE31_0_DIO13_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_doe31_0_dio13_enable (& self) -> bool { * self == DOE31_0_DIO13_A :: DOE31_0_DIO13_ENABLE } } # [doc = "Field `DOE31_0_DIO13` writer - Enables data output for DIO13."]
pub type DOE31_0_DIO13_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOE31_0_DIO13_A > ; impl < 'a , REG , const O : u8 > DOE31_0_DIO13_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn doe31_0_dio13_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO13_A :: DOE31_0_DIO13_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn doe31_0_dio13_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO13_A :: DOE31_0_DIO13_ENABLE) } } # [doc = "Field `DOE31_0_DIO14` reader - Enables data output for DIO14."]
pub type DOE31_0_DIO14_R = crate :: BitReader < DOE31_0_DIO14_A > ; # [doc = "Enables data output for DIO14.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOE31_0_DIO14_A { # [doc = "0: DISABLE"]
DOE31_0_DIO14_DISABLE = 0 , # [doc = "1: ENABLE"]
DOE31_0_DIO14_ENABLE = 1 , } impl From < DOE31_0_DIO14_A > for bool { # [inline (always)]
fn from (variant : DOE31_0_DIO14_A) -> Self { variant as u8 != 0 } } impl DOE31_0_DIO14_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOE31_0_DIO14_A { match self . bits { false => DOE31_0_DIO14_A :: DOE31_0_DIO14_DISABLE , true => DOE31_0_DIO14_A :: DOE31_0_DIO14_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_doe31_0_dio14_disable (& self) -> bool { * self == DOE31_0_DIO14_A :: DOE31_0_DIO14_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_doe31_0_dio14_enable (& self) -> bool { * self == DOE31_0_DIO14_A :: DOE31_0_DIO14_ENABLE } } # [doc = "Field `DOE31_0_DIO14` writer - Enables data output for DIO14."]
pub type DOE31_0_DIO14_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOE31_0_DIO14_A > ; impl < 'a , REG , const O : u8 > DOE31_0_DIO14_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn doe31_0_dio14_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO14_A :: DOE31_0_DIO14_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn doe31_0_dio14_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO14_A :: DOE31_0_DIO14_ENABLE) } } # [doc = "Field `DOE31_0_DIO15` reader - Enables data output for DIO15."]
pub type DOE31_0_DIO15_R = crate :: BitReader < DOE31_0_DIO15_A > ; # [doc = "Enables data output for DIO15.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOE31_0_DIO15_A { # [doc = "0: DISABLE"]
DOE31_0_DIO15_DISABLE = 0 , # [doc = "1: ENABLE"]
DOE31_0_DIO15_ENABLE = 1 , } impl From < DOE31_0_DIO15_A > for bool { # [inline (always)]
fn from (variant : DOE31_0_DIO15_A) -> Self { variant as u8 != 0 } } impl DOE31_0_DIO15_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOE31_0_DIO15_A { match self . bits { false => DOE31_0_DIO15_A :: DOE31_0_DIO15_DISABLE , true => DOE31_0_DIO15_A :: DOE31_0_DIO15_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_doe31_0_dio15_disable (& self) -> bool { * self == DOE31_0_DIO15_A :: DOE31_0_DIO15_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_doe31_0_dio15_enable (& self) -> bool { * self == DOE31_0_DIO15_A :: DOE31_0_DIO15_ENABLE } } # [doc = "Field `DOE31_0_DIO15` writer - Enables data output for DIO15."]
pub type DOE31_0_DIO15_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOE31_0_DIO15_A > ; impl < 'a , REG , const O : u8 > DOE31_0_DIO15_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn doe31_0_dio15_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO15_A :: DOE31_0_DIO15_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn doe31_0_dio15_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO15_A :: DOE31_0_DIO15_ENABLE) } } # [doc = "Field `DOE31_0_DIO16` reader - Enables data output for DIO16."]
pub type DOE31_0_DIO16_R = crate :: BitReader < DOE31_0_DIO16_A > ; # [doc = "Enables data output for DIO16.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOE31_0_DIO16_A { # [doc = "0: DISABLE"]
DOE31_0_DIO16_DISABLE = 0 , # [doc = "1: ENABLE"]
DOE31_0_DIO16_ENABLE = 1 , } impl From < DOE31_0_DIO16_A > for bool { # [inline (always)]
fn from (variant : DOE31_0_DIO16_A) -> Self { variant as u8 != 0 } } impl DOE31_0_DIO16_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOE31_0_DIO16_A { match self . bits { false => DOE31_0_DIO16_A :: DOE31_0_DIO16_DISABLE , true => DOE31_0_DIO16_A :: DOE31_0_DIO16_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_doe31_0_dio16_disable (& self) -> bool { * self == DOE31_0_DIO16_A :: DOE31_0_DIO16_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_doe31_0_dio16_enable (& self) -> bool { * self == DOE31_0_DIO16_A :: DOE31_0_DIO16_ENABLE } } # [doc = "Field `DOE31_0_DIO16` writer - Enables data output for DIO16."]
pub type DOE31_0_DIO16_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOE31_0_DIO16_A > ; impl < 'a , REG , const O : u8 > DOE31_0_DIO16_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn doe31_0_dio16_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO16_A :: DOE31_0_DIO16_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn doe31_0_dio16_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO16_A :: DOE31_0_DIO16_ENABLE) } } # [doc = "Field `DOE31_0_DIO17` reader - Enables data output for DIO17."]
pub type DOE31_0_DIO17_R = crate :: BitReader < DOE31_0_DIO17_A > ; # [doc = "Enables data output for DIO17.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOE31_0_DIO17_A { # [doc = "0: DISABLE"]
DOE31_0_DIO17_DISABLE = 0 , # [doc = "1: ENABLE"]
DOE31_0_DIO17_ENABLE = 1 , } impl From < DOE31_0_DIO17_A > for bool { # [inline (always)]
fn from (variant : DOE31_0_DIO17_A) -> Self { variant as u8 != 0 } } impl DOE31_0_DIO17_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOE31_0_DIO17_A { match self . bits { false => DOE31_0_DIO17_A :: DOE31_0_DIO17_DISABLE , true => DOE31_0_DIO17_A :: DOE31_0_DIO17_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_doe31_0_dio17_disable (& self) -> bool { * self == DOE31_0_DIO17_A :: DOE31_0_DIO17_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_doe31_0_dio17_enable (& self) -> bool { * self == DOE31_0_DIO17_A :: DOE31_0_DIO17_ENABLE } } # [doc = "Field `DOE31_0_DIO17` writer - Enables data output for DIO17."]
pub type DOE31_0_DIO17_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOE31_0_DIO17_A > ; impl < 'a , REG , const O : u8 > DOE31_0_DIO17_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn doe31_0_dio17_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO17_A :: DOE31_0_DIO17_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn doe31_0_dio17_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO17_A :: DOE31_0_DIO17_ENABLE) } } # [doc = "Field `DOE31_0_DIO18` reader - Enables data output for DIO18."]
pub type DOE31_0_DIO18_R = crate :: BitReader < DOE31_0_DIO18_A > ; # [doc = "Enables data output for DIO18.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOE31_0_DIO18_A { # [doc = "0: DISABLE"]
DOE31_0_DIO18_DISABLE = 0 , # [doc = "1: ENABLE"]
DOE31_0_DIO18_ENABLE = 1 , } impl From < DOE31_0_DIO18_A > for bool { # [inline (always)]
fn from (variant : DOE31_0_DIO18_A) -> Self { variant as u8 != 0 } } impl DOE31_0_DIO18_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOE31_0_DIO18_A { match self . bits { false => DOE31_0_DIO18_A :: DOE31_0_DIO18_DISABLE , true => DOE31_0_DIO18_A :: DOE31_0_DIO18_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_doe31_0_dio18_disable (& self) -> bool { * self == DOE31_0_DIO18_A :: DOE31_0_DIO18_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_doe31_0_dio18_enable (& self) -> bool { * self == DOE31_0_DIO18_A :: DOE31_0_DIO18_ENABLE } } # [doc = "Field `DOE31_0_DIO18` writer - Enables data output for DIO18."]
pub type DOE31_0_DIO18_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOE31_0_DIO18_A > ; impl < 'a , REG , const O : u8 > DOE31_0_DIO18_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn doe31_0_dio18_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO18_A :: DOE31_0_DIO18_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn doe31_0_dio18_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO18_A :: DOE31_0_DIO18_ENABLE) } } # [doc = "Field `DOE31_0_DIO19` reader - Enables data output for DIO19."]
pub type DOE31_0_DIO19_R = crate :: BitReader < DOE31_0_DIO19_A > ; # [doc = "Enables data output for DIO19.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOE31_0_DIO19_A { # [doc = "0: DISABLE"]
DOE31_0_DIO19_DISABLE = 0 , # [doc = "1: ENABLE"]
DOE31_0_DIO19_ENABLE = 1 , } impl From < DOE31_0_DIO19_A > for bool { # [inline (always)]
fn from (variant : DOE31_0_DIO19_A) -> Self { variant as u8 != 0 } } impl DOE31_0_DIO19_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOE31_0_DIO19_A { match self . bits { false => DOE31_0_DIO19_A :: DOE31_0_DIO19_DISABLE , true => DOE31_0_DIO19_A :: DOE31_0_DIO19_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_doe31_0_dio19_disable (& self) -> bool { * self == DOE31_0_DIO19_A :: DOE31_0_DIO19_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_doe31_0_dio19_enable (& self) -> bool { * self == DOE31_0_DIO19_A :: DOE31_0_DIO19_ENABLE } } # [doc = "Field `DOE31_0_DIO19` writer - Enables data output for DIO19."]
pub type DOE31_0_DIO19_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOE31_0_DIO19_A > ; impl < 'a , REG , const O : u8 > DOE31_0_DIO19_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn doe31_0_dio19_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO19_A :: DOE31_0_DIO19_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn doe31_0_dio19_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO19_A :: DOE31_0_DIO19_ENABLE) } } # [doc = "Field `DOE31_0_DIO20` reader - Enables data output for DIO20."]
pub type DOE31_0_DIO20_R = crate :: BitReader < DOE31_0_DIO20_A > ; # [doc = "Enables data output for DIO20.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOE31_0_DIO20_A { # [doc = "0: DISABLE"]
DOE31_0_DIO20_DISABLE = 0 , # [doc = "1: ENABLE"]
DOE31_0_DIO20_ENABLE = 1 , } impl From < DOE31_0_DIO20_A > for bool { # [inline (always)]
fn from (variant : DOE31_0_DIO20_A) -> Self { variant as u8 != 0 } } impl DOE31_0_DIO20_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOE31_0_DIO20_A { match self . bits { false => DOE31_0_DIO20_A :: DOE31_0_DIO20_DISABLE , true => DOE31_0_DIO20_A :: DOE31_0_DIO20_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_doe31_0_dio20_disable (& self) -> bool { * self == DOE31_0_DIO20_A :: DOE31_0_DIO20_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_doe31_0_dio20_enable (& self) -> bool { * self == DOE31_0_DIO20_A :: DOE31_0_DIO20_ENABLE } } # [doc = "Field `DOE31_0_DIO20` writer - Enables data output for DIO20."]
pub type DOE31_0_DIO20_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOE31_0_DIO20_A > ; impl < 'a , REG , const O : u8 > DOE31_0_DIO20_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn doe31_0_dio20_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO20_A :: DOE31_0_DIO20_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn doe31_0_dio20_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO20_A :: DOE31_0_DIO20_ENABLE) } } # [doc = "Field `DOE31_0_DIO21` reader - Enables data output for DIO21."]
pub type DOE31_0_DIO21_R = crate :: BitReader < DOE31_0_DIO21_A > ; # [doc = "Enables data output for DIO21.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOE31_0_DIO21_A { # [doc = "0: DISABLE"]
DOE31_0_DIO21_DISABLE = 0 , # [doc = "1: ENABLE"]
DOE31_0_DIO21_ENABLE = 1 , } impl From < DOE31_0_DIO21_A > for bool { # [inline (always)]
fn from (variant : DOE31_0_DIO21_A) -> Self { variant as u8 != 0 } } impl DOE31_0_DIO21_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOE31_0_DIO21_A { match self . bits { false => DOE31_0_DIO21_A :: DOE31_0_DIO21_DISABLE , true => DOE31_0_DIO21_A :: DOE31_0_DIO21_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_doe31_0_dio21_disable (& self) -> bool { * self == DOE31_0_DIO21_A :: DOE31_0_DIO21_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_doe31_0_dio21_enable (& self) -> bool { * self == DOE31_0_DIO21_A :: DOE31_0_DIO21_ENABLE } } # [doc = "Field `DOE31_0_DIO21` writer - Enables data output for DIO21."]
pub type DOE31_0_DIO21_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOE31_0_DIO21_A > ; impl < 'a , REG , const O : u8 > DOE31_0_DIO21_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn doe31_0_dio21_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO21_A :: DOE31_0_DIO21_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn doe31_0_dio21_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO21_A :: DOE31_0_DIO21_ENABLE) } } # [doc = "Field `DOE31_0_DIO22` reader - Enables data output for DIO22."]
pub type DOE31_0_DIO22_R = crate :: BitReader < DOE31_0_DIO22_A > ; # [doc = "Enables data output for DIO22.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOE31_0_DIO22_A { # [doc = "0: DISABLE"]
DOE31_0_DIO22_DISABLE = 0 , # [doc = "1: ENABLE"]
DOE31_0_DIO22_ENABLE = 1 , } impl From < DOE31_0_DIO22_A > for bool { # [inline (always)]
fn from (variant : DOE31_0_DIO22_A) -> Self { variant as u8 != 0 } } impl DOE31_0_DIO22_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOE31_0_DIO22_A { match self . bits { false => DOE31_0_DIO22_A :: DOE31_0_DIO22_DISABLE , true => DOE31_0_DIO22_A :: DOE31_0_DIO22_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_doe31_0_dio22_disable (& self) -> bool { * self == DOE31_0_DIO22_A :: DOE31_0_DIO22_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_doe31_0_dio22_enable (& self) -> bool { * self == DOE31_0_DIO22_A :: DOE31_0_DIO22_ENABLE } } # [doc = "Field `DOE31_0_DIO22` writer - Enables data output for DIO22."]
pub type DOE31_0_DIO22_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOE31_0_DIO22_A > ; impl < 'a , REG , const O : u8 > DOE31_0_DIO22_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn doe31_0_dio22_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO22_A :: DOE31_0_DIO22_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn doe31_0_dio22_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO22_A :: DOE31_0_DIO22_ENABLE) } } # [doc = "Field `DOE31_0_DIO23` reader - Enables data output for DIO23."]
pub type DOE31_0_DIO23_R = crate :: BitReader < DOE31_0_DIO23_A > ; # [doc = "Enables data output for DIO23.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOE31_0_DIO23_A { # [doc = "0: DISABLE"]
DOE31_0_DIO23_DISABLE = 0 , # [doc = "1: ENABLE"]
DOE31_0_DIO23_ENABLE = 1 , } impl From < DOE31_0_DIO23_A > for bool { # [inline (always)]
fn from (variant : DOE31_0_DIO23_A) -> Self { variant as u8 != 0 } } impl DOE31_0_DIO23_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOE31_0_DIO23_A { match self . bits { false => DOE31_0_DIO23_A :: DOE31_0_DIO23_DISABLE , true => DOE31_0_DIO23_A :: DOE31_0_DIO23_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_doe31_0_dio23_disable (& self) -> bool { * self == DOE31_0_DIO23_A :: DOE31_0_DIO23_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_doe31_0_dio23_enable (& self) -> bool { * self == DOE31_0_DIO23_A :: DOE31_0_DIO23_ENABLE } } # [doc = "Field `DOE31_0_DIO23` writer - Enables data output for DIO23."]
pub type DOE31_0_DIO23_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOE31_0_DIO23_A > ; impl < 'a , REG , const O : u8 > DOE31_0_DIO23_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn doe31_0_dio23_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO23_A :: DOE31_0_DIO23_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn doe31_0_dio23_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO23_A :: DOE31_0_DIO23_ENABLE) } } # [doc = "Field `DOE31_0_DIO24` reader - Enables data output for DIO24."]
pub type DOE31_0_DIO24_R = crate :: BitReader < DOE31_0_DIO24_A > ; # [doc = "Enables data output for DIO24.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOE31_0_DIO24_A { # [doc = "0: DISABLE"]
DOE31_0_DIO24_DISABLE = 0 , # [doc = "1: ENABLE"]
DOE31_0_DIO24_ENABLE = 1 , } impl From < DOE31_0_DIO24_A > for bool { # [inline (always)]
fn from (variant : DOE31_0_DIO24_A) -> Self { variant as u8 != 0 } } impl DOE31_0_DIO24_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOE31_0_DIO24_A { match self . bits { false => DOE31_0_DIO24_A :: DOE31_0_DIO24_DISABLE , true => DOE31_0_DIO24_A :: DOE31_0_DIO24_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_doe31_0_dio24_disable (& self) -> bool { * self == DOE31_0_DIO24_A :: DOE31_0_DIO24_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_doe31_0_dio24_enable (& self) -> bool { * self == DOE31_0_DIO24_A :: DOE31_0_DIO24_ENABLE } } # [doc = "Field `DOE31_0_DIO24` writer - Enables data output for DIO24."]
pub type DOE31_0_DIO24_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOE31_0_DIO24_A > ; impl < 'a , REG , const O : u8 > DOE31_0_DIO24_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn doe31_0_dio24_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO24_A :: DOE31_0_DIO24_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn doe31_0_dio24_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO24_A :: DOE31_0_DIO24_ENABLE) } } # [doc = "Field `DOE31_0_DIO25` reader - Enables data output for DIO25."]
pub type DOE31_0_DIO25_R = crate :: BitReader < DOE31_0_DIO25_A > ; # [doc = "Enables data output for DIO25.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOE31_0_DIO25_A { # [doc = "0: DISABLE"]
DOE31_0_DIO25_DISABLE = 0 , # [doc = "1: ENABLE"]
DOE31_0_DIO25_ENABLE = 1 , } impl From < DOE31_0_DIO25_A > for bool { # [inline (always)]
fn from (variant : DOE31_0_DIO25_A) -> Self { variant as u8 != 0 } } impl DOE31_0_DIO25_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOE31_0_DIO25_A { match self . bits { false => DOE31_0_DIO25_A :: DOE31_0_DIO25_DISABLE , true => DOE31_0_DIO25_A :: DOE31_0_DIO25_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_doe31_0_dio25_disable (& self) -> bool { * self == DOE31_0_DIO25_A :: DOE31_0_DIO25_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_doe31_0_dio25_enable (& self) -> bool { * self == DOE31_0_DIO25_A :: DOE31_0_DIO25_ENABLE } } # [doc = "Field `DOE31_0_DIO25` writer - Enables data output for DIO25."]
pub type DOE31_0_DIO25_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOE31_0_DIO25_A > ; impl < 'a , REG , const O : u8 > DOE31_0_DIO25_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn doe31_0_dio25_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO25_A :: DOE31_0_DIO25_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn doe31_0_dio25_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO25_A :: DOE31_0_DIO25_ENABLE) } } # [doc = "Field `DOE31_0_DIO26` reader - Enables data output for DIO26."]
pub type DOE31_0_DIO26_R = crate :: BitReader < DOE31_0_DIO26_A > ; # [doc = "Enables data output for DIO26.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOE31_0_DIO26_A { # [doc = "0: DISABLE"]
DOE31_0_DIO26_DISABLE = 0 , # [doc = "1: ENABLE"]
DOE31_0_DIO26_ENABLE = 1 , } impl From < DOE31_0_DIO26_A > for bool { # [inline (always)]
fn from (variant : DOE31_0_DIO26_A) -> Self { variant as u8 != 0 } } impl DOE31_0_DIO26_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOE31_0_DIO26_A { match self . bits { false => DOE31_0_DIO26_A :: DOE31_0_DIO26_DISABLE , true => DOE31_0_DIO26_A :: DOE31_0_DIO26_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_doe31_0_dio26_disable (& self) -> bool { * self == DOE31_0_DIO26_A :: DOE31_0_DIO26_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_doe31_0_dio26_enable (& self) -> bool { * self == DOE31_0_DIO26_A :: DOE31_0_DIO26_ENABLE } } # [doc = "Field `DOE31_0_DIO26` writer - Enables data output for DIO26."]
pub type DOE31_0_DIO26_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOE31_0_DIO26_A > ; impl < 'a , REG , const O : u8 > DOE31_0_DIO26_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn doe31_0_dio26_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO26_A :: DOE31_0_DIO26_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn doe31_0_dio26_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO26_A :: DOE31_0_DIO26_ENABLE) } } # [doc = "Field `DOE31_0_DIO27` reader - Enables data output for DIO27."]
pub type DOE31_0_DIO27_R = crate :: BitReader < DOE31_0_DIO27_A > ; # [doc = "Enables data output for DIO27.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOE31_0_DIO27_A { # [doc = "0: DISABLE"]
DOE31_0_DIO27_DISABLE = 0 , # [doc = "1: ENABLE"]
DOE31_0_DIO27_ENABLE = 1 , } impl From < DOE31_0_DIO27_A > for bool { # [inline (always)]
fn from (variant : DOE31_0_DIO27_A) -> Self { variant as u8 != 0 } } impl DOE31_0_DIO27_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOE31_0_DIO27_A { match self . bits { false => DOE31_0_DIO27_A :: DOE31_0_DIO27_DISABLE , true => DOE31_0_DIO27_A :: DOE31_0_DIO27_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_doe31_0_dio27_disable (& self) -> bool { * self == DOE31_0_DIO27_A :: DOE31_0_DIO27_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_doe31_0_dio27_enable (& self) -> bool { * self == DOE31_0_DIO27_A :: DOE31_0_DIO27_ENABLE } } # [doc = "Field `DOE31_0_DIO27` writer - Enables data output for DIO27."]
pub type DOE31_0_DIO27_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOE31_0_DIO27_A > ; impl < 'a , REG , const O : u8 > DOE31_0_DIO27_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn doe31_0_dio27_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO27_A :: DOE31_0_DIO27_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn doe31_0_dio27_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO27_A :: DOE31_0_DIO27_ENABLE) } } # [doc = "Field `DOE31_0_DIO28` reader - Enables data output for DIO28."]
pub type DOE31_0_DIO28_R = crate :: BitReader < DOE31_0_DIO28_A > ; # [doc = "Enables data output for DIO28.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOE31_0_DIO28_A { # [doc = "0: DISABLE"]
DOE31_0_DIO28_DISABLE = 0 , # [doc = "1: ENABLE"]
DOE31_0_DIO28_ENABLE = 1 , } impl From < DOE31_0_DIO28_A > for bool { # [inline (always)]
fn from (variant : DOE31_0_DIO28_A) -> Self { variant as u8 != 0 } } impl DOE31_0_DIO28_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOE31_0_DIO28_A { match self . bits { false => DOE31_0_DIO28_A :: DOE31_0_DIO28_DISABLE , true => DOE31_0_DIO28_A :: DOE31_0_DIO28_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_doe31_0_dio28_disable (& self) -> bool { * self == DOE31_0_DIO28_A :: DOE31_0_DIO28_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_doe31_0_dio28_enable (& self) -> bool { * self == DOE31_0_DIO28_A :: DOE31_0_DIO28_ENABLE } } # [doc = "Field `DOE31_0_DIO28` writer - Enables data output for DIO28."]
pub type DOE31_0_DIO28_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOE31_0_DIO28_A > ; impl < 'a , REG , const O : u8 > DOE31_0_DIO28_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn doe31_0_dio28_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO28_A :: DOE31_0_DIO28_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn doe31_0_dio28_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO28_A :: DOE31_0_DIO28_ENABLE) } } # [doc = "Field `DOE31_0_DIO29` reader - Enables data output for DIO29."]
pub type DOE31_0_DIO29_R = crate :: BitReader < DOE31_0_DIO29_A > ; # [doc = "Enables data output for DIO29.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOE31_0_DIO29_A { # [doc = "0: DISABLE"]
DOE31_0_DIO29_DISABLE = 0 , # [doc = "1: ENABLE"]
DOE31_0_DIO29_ENABLE = 1 , } impl From < DOE31_0_DIO29_A > for bool { # [inline (always)]
fn from (variant : DOE31_0_DIO29_A) -> Self { variant as u8 != 0 } } impl DOE31_0_DIO29_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOE31_0_DIO29_A { match self . bits { false => DOE31_0_DIO29_A :: DOE31_0_DIO29_DISABLE , true => DOE31_0_DIO29_A :: DOE31_0_DIO29_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_doe31_0_dio29_disable (& self) -> bool { * self == DOE31_0_DIO29_A :: DOE31_0_DIO29_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_doe31_0_dio29_enable (& self) -> bool { * self == DOE31_0_DIO29_A :: DOE31_0_DIO29_ENABLE } } # [doc = "Field `DOE31_0_DIO29` writer - Enables data output for DIO29."]
pub type DOE31_0_DIO29_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOE31_0_DIO29_A > ; impl < 'a , REG , const O : u8 > DOE31_0_DIO29_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn doe31_0_dio29_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO29_A :: DOE31_0_DIO29_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn doe31_0_dio29_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO29_A :: DOE31_0_DIO29_ENABLE) } } # [doc = "Field `DOE31_0_DIO30` reader - Enables data output for DIO30."]
pub type DOE31_0_DIO30_R = crate :: BitReader < DOE31_0_DIO30_A > ; # [doc = "Enables data output for DIO30.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOE31_0_DIO30_A { # [doc = "0: DISABLE"]
DOE31_0_DIO30_DISABLE = 0 , # [doc = "1: ENABLE"]
DOE31_0_DIO30_ENABLE = 1 , } impl From < DOE31_0_DIO30_A > for bool { # [inline (always)]
fn from (variant : DOE31_0_DIO30_A) -> Self { variant as u8 != 0 } } impl DOE31_0_DIO30_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOE31_0_DIO30_A { match self . bits { false => DOE31_0_DIO30_A :: DOE31_0_DIO30_DISABLE , true => DOE31_0_DIO30_A :: DOE31_0_DIO30_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_doe31_0_dio30_disable (& self) -> bool { * self == DOE31_0_DIO30_A :: DOE31_0_DIO30_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_doe31_0_dio30_enable (& self) -> bool { * self == DOE31_0_DIO30_A :: DOE31_0_DIO30_ENABLE } } # [doc = "Field `DOE31_0_DIO30` writer - Enables data output for DIO30."]
pub type DOE31_0_DIO30_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOE31_0_DIO30_A > ; impl < 'a , REG , const O : u8 > DOE31_0_DIO30_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn doe31_0_dio30_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO30_A :: DOE31_0_DIO30_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn doe31_0_dio30_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO30_A :: DOE31_0_DIO30_ENABLE) } } # [doc = "Field `DOE31_0_DIO31` reader - Enables data output for DIO31."]
pub type DOE31_0_DIO31_R = crate :: BitReader < DOE31_0_DIO31_A > ; # [doc = "Enables data output for DIO31.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOE31_0_DIO31_A { # [doc = "0: DISABLE"]
DOE31_0_DIO31_DISABLE = 0 , # [doc = "1: ENABLE"]
DOE31_0_DIO31_ENABLE = 1 , } impl From < DOE31_0_DIO31_A > for bool { # [inline (always)]
fn from (variant : DOE31_0_DIO31_A) -> Self { variant as u8 != 0 } } impl DOE31_0_DIO31_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DOE31_0_DIO31_A { match self . bits { false => DOE31_0_DIO31_A :: DOE31_0_DIO31_DISABLE , true => DOE31_0_DIO31_A :: DOE31_0_DIO31_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_doe31_0_dio31_disable (& self) -> bool { * self == DOE31_0_DIO31_A :: DOE31_0_DIO31_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_doe31_0_dio31_enable (& self) -> bool { * self == DOE31_0_DIO31_A :: DOE31_0_DIO31_ENABLE } } # [doc = "Field `DOE31_0_DIO31` writer - Enables data output for DIO31."]
pub type DOE31_0_DIO31_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOE31_0_DIO31_A > ; impl < 'a , REG , const O : u8 > DOE31_0_DIO31_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn doe31_0_dio31_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO31_A :: DOE31_0_DIO31_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn doe31_0_dio31_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DOE31_0_DIO31_A :: DOE31_0_DIO31_ENABLE) } } impl R { # [doc = "Bit 0 - Enables data output for DIO0."]
# [inline (always)]
pub fn doe31_0_dio0 (& self) -> DOE31_0_DIO0_R { DOE31_0_DIO0_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Enables data output for DIO1."]
# [inline (always)]
pub fn doe31_0_dio1 (& self) -> DOE31_0_DIO1_R { DOE31_0_DIO1_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Enables data output for DIO2."]
# [inline (always)]
pub fn doe31_0_dio2 (& self) -> DOE31_0_DIO2_R { DOE31_0_DIO2_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Enables data output for DIO3."]
# [inline (always)]
pub fn doe31_0_dio3 (& self) -> DOE31_0_DIO3_R { DOE31_0_DIO3_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - Enables data output for DIO4."]
# [inline (always)]
pub fn doe31_0_dio4 (& self) -> DOE31_0_DIO4_R { DOE31_0_DIO4_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Enables data output for DIO5."]
# [inline (always)]
pub fn doe31_0_dio5 (& self) -> DOE31_0_DIO5_R { DOE31_0_DIO5_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - Enables data output for DIO6."]
# [inline (always)]
pub fn doe31_0_dio6 (& self) -> DOE31_0_DIO6_R { DOE31_0_DIO6_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 7 - Enables data output for DIO7."]
# [inline (always)]
pub fn doe31_0_dio7 (& self) -> DOE31_0_DIO7_R { DOE31_0_DIO7_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - Enables data output for DIO8."]
# [inline (always)]
pub fn doe31_0_dio8 (& self) -> DOE31_0_DIO8_R { DOE31_0_DIO8_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - Enables data output for DIO9."]
# [inline (always)]
pub fn doe31_0_dio9 (& self) -> DOE31_0_DIO9_R { DOE31_0_DIO9_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - Enables data output for DIO10."]
# [inline (always)]
pub fn doe31_0_dio10 (& self) -> DOE31_0_DIO10_R { DOE31_0_DIO10_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bit 11 - Enables data output for DIO11."]
# [inline (always)]
pub fn doe31_0_dio11 (& self) -> DOE31_0_DIO11_R { DOE31_0_DIO11_R :: new (((self . bits >> 11) & 1) != 0) } # [doc = "Bit 12 - Enables data output for DIO12."]
# [inline (always)]
pub fn doe31_0_dio12 (& self) -> DOE31_0_DIO12_R { DOE31_0_DIO12_R :: new (((self . bits >> 12) & 1) != 0) } # [doc = "Bit 13 - Enables data output for DIO13."]
# [inline (always)]
pub fn doe31_0_dio13 (& self) -> DOE31_0_DIO13_R { DOE31_0_DIO13_R :: new (((self . bits >> 13) & 1) != 0) } # [doc = "Bit 14 - Enables data output for DIO14."]
# [inline (always)]
pub fn doe31_0_dio14 (& self) -> DOE31_0_DIO14_R { DOE31_0_DIO14_R :: new (((self . bits >> 14) & 1) != 0) } # [doc = "Bit 15 - Enables data output for DIO15."]
# [inline (always)]
pub fn doe31_0_dio15 (& self) -> DOE31_0_DIO15_R { DOE31_0_DIO15_R :: new (((self . bits >> 15) & 1) != 0) } # [doc = "Bit 16 - Enables data output for DIO16."]
# [inline (always)]
pub fn doe31_0_dio16 (& self) -> DOE31_0_DIO16_R { DOE31_0_DIO16_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 17 - Enables data output for DIO17."]
# [inline (always)]
pub fn doe31_0_dio17 (& self) -> DOE31_0_DIO17_R { DOE31_0_DIO17_R :: new (((self . bits >> 17) & 1) != 0) } # [doc = "Bit 18 - Enables data output for DIO18."]
# [inline (always)]
pub fn doe31_0_dio18 (& self) -> DOE31_0_DIO18_R { DOE31_0_DIO18_R :: new (((self . bits >> 18) & 1) != 0) } # [doc = "Bit 19 - Enables data output for DIO19."]
# [inline (always)]
pub fn doe31_0_dio19 (& self) -> DOE31_0_DIO19_R { DOE31_0_DIO19_R :: new (((self . bits >> 19) & 1) != 0) } # [doc = "Bit 20 - Enables data output for DIO20."]
# [inline (always)]
pub fn doe31_0_dio20 (& self) -> DOE31_0_DIO20_R { DOE31_0_DIO20_R :: new (((self . bits >> 20) & 1) != 0) } # [doc = "Bit 21 - Enables data output for DIO21."]
# [inline (always)]
pub fn doe31_0_dio21 (& self) -> DOE31_0_DIO21_R { DOE31_0_DIO21_R :: new (((self . bits >> 21) & 1) != 0) } # [doc = "Bit 22 - Enables data output for DIO22."]
# [inline (always)]
pub fn doe31_0_dio22 (& self) -> DOE31_0_DIO22_R { DOE31_0_DIO22_R :: new (((self . bits >> 22) & 1) != 0) } # [doc = "Bit 23 - Enables data output for DIO23."]
# [inline (always)]
pub fn doe31_0_dio23 (& self) -> DOE31_0_DIO23_R { DOE31_0_DIO23_R :: new (((self . bits >> 23) & 1) != 0) } # [doc = "Bit 24 - Enables data output for DIO24."]
# [inline (always)]
pub fn doe31_0_dio24 (& self) -> DOE31_0_DIO24_R { DOE31_0_DIO24_R :: new (((self . bits >> 24) & 1) != 0) } # [doc = "Bit 25 - Enables data output for DIO25."]
# [inline (always)]
pub fn doe31_0_dio25 (& self) -> DOE31_0_DIO25_R { DOE31_0_DIO25_R :: new (((self . bits >> 25) & 1) != 0) } # [doc = "Bit 26 - Enables data output for DIO26."]
# [inline (always)]
pub fn doe31_0_dio26 (& self) -> DOE31_0_DIO26_R { DOE31_0_DIO26_R :: new (((self . bits >> 26) & 1) != 0) } # [doc = "Bit 27 - Enables data output for DIO27."]
# [inline (always)]
pub fn doe31_0_dio27 (& self) -> DOE31_0_DIO27_R { DOE31_0_DIO27_R :: new (((self . bits >> 27) & 1) != 0) } # [doc = "Bit 28 - Enables data output for DIO28."]
# [inline (always)]
pub fn doe31_0_dio28 (& self) -> DOE31_0_DIO28_R { DOE31_0_DIO28_R :: new (((self . bits >> 28) & 1) != 0) } # [doc = "Bit 29 - Enables data output for DIO29."]
# [inline (always)]
pub fn doe31_0_dio29 (& self) -> DOE31_0_DIO29_R { DOE31_0_DIO29_R :: new (((self . bits >> 29) & 1) != 0) } # [doc = "Bit 30 - Enables data output for DIO30."]
# [inline (always)]
pub fn doe31_0_dio30 (& self) -> DOE31_0_DIO30_R { DOE31_0_DIO30_R :: new (((self . bits >> 30) & 1) != 0) } # [doc = "Bit 31 - Enables data output for DIO31."]
# [inline (always)]
pub fn doe31_0_dio31 (& self) -> DOE31_0_DIO31_R { DOE31_0_DIO31_R :: new (((self . bits >> 31) & 1) != 0) } } impl W { # [doc = "Bit 0 - Enables data output for DIO0."]
# [inline (always)]
# [must_use]
pub fn doe31_0_dio0 (& mut self) -> DOE31_0_DIO0_W < DOE31_0_SPEC , 0 > { DOE31_0_DIO0_W :: new (self) } # [doc = "Bit 1 - Enables data output for DIO1."]
# [inline (always)]
# [must_use]
pub fn doe31_0_dio1 (& mut self) -> DOE31_0_DIO1_W < DOE31_0_SPEC , 1 > { DOE31_0_DIO1_W :: new (self) } # [doc = "Bit 2 - Enables data output for DIO2."]
# [inline (always)]
# [must_use]
pub fn doe31_0_dio2 (& mut self) -> DOE31_0_DIO2_W < DOE31_0_SPEC , 2 > { DOE31_0_DIO2_W :: new (self) } # [doc = "Bit 3 - Enables data output for DIO3."]
# [inline (always)]
# [must_use]
pub fn doe31_0_dio3 (& mut self) -> DOE31_0_DIO3_W < DOE31_0_SPEC , 3 > { DOE31_0_DIO3_W :: new (self) } # [doc = "Bit 4 - Enables data output for DIO4."]
# [inline (always)]
# [must_use]
pub fn doe31_0_dio4 (& mut self) -> DOE31_0_DIO4_W < DOE31_0_SPEC , 4 > { DOE31_0_DIO4_W :: new (self) } # [doc = "Bit 5 - Enables data output for DIO5."]
# [inline (always)]
# [must_use]
pub fn doe31_0_dio5 (& mut self) -> DOE31_0_DIO5_W < DOE31_0_SPEC , 5 > { DOE31_0_DIO5_W :: new (self) } # [doc = "Bit 6 - Enables data output for DIO6."]
# [inline (always)]
# [must_use]
pub fn doe31_0_dio6 (& mut self) -> DOE31_0_DIO6_W < DOE31_0_SPEC , 6 > { DOE31_0_DIO6_W :: new (self) } # [doc = "Bit 7 - Enables data output for DIO7."]
# [inline (always)]
# [must_use]
pub fn doe31_0_dio7 (& mut self) -> DOE31_0_DIO7_W < DOE31_0_SPEC , 7 > { DOE31_0_DIO7_W :: new (self) } # [doc = "Bit 8 - Enables data output for DIO8."]
# [inline (always)]
# [must_use]
pub fn doe31_0_dio8 (& mut self) -> DOE31_0_DIO8_W < DOE31_0_SPEC , 8 > { DOE31_0_DIO8_W :: new (self) } # [doc = "Bit 9 - Enables data output for DIO9."]
# [inline (always)]
# [must_use]
pub fn doe31_0_dio9 (& mut self) -> DOE31_0_DIO9_W < DOE31_0_SPEC , 9 > { DOE31_0_DIO9_W :: new (self) } # [doc = "Bit 10 - Enables data output for DIO10."]
# [inline (always)]
# [must_use]
pub fn doe31_0_dio10 (& mut self) -> DOE31_0_DIO10_W < DOE31_0_SPEC , 10 > { DOE31_0_DIO10_W :: new (self) } # [doc = "Bit 11 - Enables data output for DIO11."]
# [inline (always)]
# [must_use]
pub fn doe31_0_dio11 (& mut self) -> DOE31_0_DIO11_W < DOE31_0_SPEC , 11 > { DOE31_0_DIO11_W :: new (self) } # [doc = "Bit 12 - Enables data output for DIO12."]
# [inline (always)]
# [must_use]
pub fn doe31_0_dio12 (& mut self) -> DOE31_0_DIO12_W < DOE31_0_SPEC , 12 > { DOE31_0_DIO12_W :: new (self) } # [doc = "Bit 13 - Enables data output for DIO13."]
# [inline (always)]
# [must_use]
pub fn doe31_0_dio13 (& mut self) -> DOE31_0_DIO13_W < DOE31_0_SPEC , 13 > { DOE31_0_DIO13_W :: new (self) } # [doc = "Bit 14 - Enables data output for DIO14."]
# [inline (always)]
# [must_use]
pub fn doe31_0_dio14 (& mut self) -> DOE31_0_DIO14_W < DOE31_0_SPEC , 14 > { DOE31_0_DIO14_W :: new (self) } # [doc = "Bit 15 - Enables data output for DIO15."]
# [inline (always)]
# [must_use]
pub fn doe31_0_dio15 (& mut self) -> DOE31_0_DIO15_W < DOE31_0_SPEC , 15 > { DOE31_0_DIO15_W :: new (self) } # [doc = "Bit 16 - Enables data output for DIO16."]
# [inline (always)]
# [must_use]
pub fn doe31_0_dio16 (& mut self) -> DOE31_0_DIO16_W < DOE31_0_SPEC , 16 > { DOE31_0_DIO16_W :: new (self) } # [doc = "Bit 17 - Enables data output for DIO17."]
# [inline (always)]
# [must_use]
pub fn doe31_0_dio17 (& mut self) -> DOE31_0_DIO17_W < DOE31_0_SPEC , 17 > { DOE31_0_DIO17_W :: new (self) } # [doc = "Bit 18 - Enables data output for DIO18."]
# [inline (always)]
# [must_use]
pub fn doe31_0_dio18 (& mut self) -> DOE31_0_DIO18_W < DOE31_0_SPEC , 18 > { DOE31_0_DIO18_W :: new (self) } # [doc = "Bit 19 - Enables data output for DIO19."]
# [inline (always)]
# [must_use]
pub fn doe31_0_dio19 (& mut self) -> DOE31_0_DIO19_W < DOE31_0_SPEC , 19 > { DOE31_0_DIO19_W :: new (self) } # [doc = "Bit 20 - Enables data output for DIO20."]
# [inline (always)]
# [must_use]
pub fn doe31_0_dio20 (& mut self) -> DOE31_0_DIO20_W < DOE31_0_SPEC , 20 > { DOE31_0_DIO20_W :: new (self) } # [doc = "Bit 21 - Enables data output for DIO21."]
# [inline (always)]
# [must_use]
pub fn doe31_0_dio21 (& mut self) -> DOE31_0_DIO21_W < DOE31_0_SPEC , 21 > { DOE31_0_DIO21_W :: new (self) } # [doc = "Bit 22 - Enables data output for DIO22."]
# [inline (always)]
# [must_use]
pub fn doe31_0_dio22 (& mut self) -> DOE31_0_DIO22_W < DOE31_0_SPEC , 22 > { DOE31_0_DIO22_W :: new (self) } # [doc = "Bit 23 - Enables data output for DIO23."]
# [inline (always)]
# [must_use]
pub fn doe31_0_dio23 (& mut self) -> DOE31_0_DIO23_W < DOE31_0_SPEC , 23 > { DOE31_0_DIO23_W :: new (self) } # [doc = "Bit 24 - Enables data output for DIO24."]
# [inline (always)]
# [must_use]
pub fn doe31_0_dio24 (& mut self) -> DOE31_0_DIO24_W < DOE31_0_SPEC , 24 > { DOE31_0_DIO24_W :: new (self) } # [doc = "Bit 25 - Enables data output for DIO25."]
# [inline (always)]
# [must_use]
pub fn doe31_0_dio25 (& mut self) -> DOE31_0_DIO25_W < DOE31_0_SPEC , 25 > { DOE31_0_DIO25_W :: new (self) } # [doc = "Bit 26 - Enables data output for DIO26."]
# [inline (always)]
# [must_use]
pub fn doe31_0_dio26 (& mut self) -> DOE31_0_DIO26_W < DOE31_0_SPEC , 26 > { DOE31_0_DIO26_W :: new (self) } # [doc = "Bit 27 - Enables data output for DIO27."]
# [inline (always)]
# [must_use]
pub fn doe31_0_dio27 (& mut self) -> DOE31_0_DIO27_W < DOE31_0_SPEC , 27 > { DOE31_0_DIO27_W :: new (self) } # [doc = "Bit 28 - Enables data output for DIO28."]
# [inline (always)]
# [must_use]
pub fn doe31_0_dio28 (& mut self) -> DOE31_0_DIO28_W < DOE31_0_SPEC , 28 > { DOE31_0_DIO28_W :: new (self) } # [doc = "Bit 29 - Enables data output for DIO29."]
# [inline (always)]
# [must_use]
pub fn doe31_0_dio29 (& mut self) -> DOE31_0_DIO29_W < DOE31_0_SPEC , 29 > { DOE31_0_DIO29_W :: new (self) } # [doc = "Bit 30 - Enables data output for DIO30."]
# [inline (always)]
# [must_use]
pub fn doe31_0_dio30 (& mut self) -> DOE31_0_DIO30_W < DOE31_0_SPEC , 30 > { DOE31_0_DIO30_W :: new (self) } # [doc = "Bit 31 - Enables data output for DIO31."]
# [inline (always)]
# [must_use]
pub fn doe31_0_dio31 (& mut self) -> DOE31_0_DIO31_W < DOE31_0_SPEC , 31 > { DOE31_0_DIO31_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Data output enable 31 to 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`doe31_0::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`doe31_0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DOE31_0_SPEC ; impl crate :: RegisterSpec for DOE31_0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`doe31_0::R`](R) reader structure"]
impl crate :: Readable for DOE31_0_SPEC { } # [doc = "`write(|w| ..)` method takes [`doe31_0::W`](W) writer structure"]
impl crate :: Writable for DOE31_0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets DOE31_0 to value 0"]
impl crate :: Resettable for DOE31_0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DOESET31_0 (w) register accessor: Data output enable set 31 to 0\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`doeset31_0::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@doeset31_0`]
module"]
pub type DOESET31_0 = crate :: Reg < doeset31_0 :: DOESET31_0_SPEC > ; # [doc = "Data output enable set 31 to 0"]
pub mod doeset31_0 { # [doc = "Register `DOESET31_0` writer"]
pub type W = crate :: W < DOESET31_0_SPEC > ; # [doc = "Writing 1 to this bit sets the DIO0 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOESET31_0_DIO0_AW { # [doc = "0: NO_EFFECT"]
DOESET31_0_DIO0_NO_EFFECT = 0 , # [doc = "1: SET"]
DOESET31_0_DIO0_SET = 1 , } impl From < DOESET31_0_DIO0_AW > for bool { # [inline (always)]
fn from (variant : DOESET31_0_DIO0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOESET31_0_DIO0` writer - Writing 1 to this bit sets the DIO0 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOESET31_0_DIO0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOESET31_0_DIO0_AW > ; impl < 'a , REG , const O : u8 > DOESET31_0_DIO0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeset31_0_dio0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO0_AW :: DOESET31_0_DIO0_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doeset31_0_dio0_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO0_AW :: DOESET31_0_DIO0_SET) } } # [doc = "Writing 1 to this bit sets the DIO1 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOESET31_0_DIO1_AW { # [doc = "0: NO_EFFECT"]
DOESET31_0_DIO1_NO_EFFECT = 0 , # [doc = "1: SET"]
DOESET31_0_DIO1_SET = 1 , } impl From < DOESET31_0_DIO1_AW > for bool { # [inline (always)]
fn from (variant : DOESET31_0_DIO1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOESET31_0_DIO1` writer - Writing 1 to this bit sets the DIO1 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOESET31_0_DIO1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOESET31_0_DIO1_AW > ; impl < 'a , REG , const O : u8 > DOESET31_0_DIO1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeset31_0_dio1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO1_AW :: DOESET31_0_DIO1_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doeset31_0_dio1_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO1_AW :: DOESET31_0_DIO1_SET) } } # [doc = "Writing 1 to this bit sets the DIO2 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOESET31_0_DIO2_AW { # [doc = "0: NO_EFFECT"]
DOESET31_0_DIO2_NO_EFFECT = 0 , # [doc = "1: SET"]
DOESET31_0_DIO2_SET = 1 , } impl From < DOESET31_0_DIO2_AW > for bool { # [inline (always)]
fn from (variant : DOESET31_0_DIO2_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOESET31_0_DIO2` writer - Writing 1 to this bit sets the DIO2 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOESET31_0_DIO2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOESET31_0_DIO2_AW > ; impl < 'a , REG , const O : u8 > DOESET31_0_DIO2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeset31_0_dio2_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO2_AW :: DOESET31_0_DIO2_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doeset31_0_dio2_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO2_AW :: DOESET31_0_DIO2_SET) } } # [doc = "Writing 1 to this bit sets the DIO3 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOESET31_0_DIO3_AW { # [doc = "0: NO_EFFECT"]
DOESET31_0_DIO3_NO_EFFECT = 0 , # [doc = "1: SET"]
DOESET31_0_DIO3_SET = 1 , } impl From < DOESET31_0_DIO3_AW > for bool { # [inline (always)]
fn from (variant : DOESET31_0_DIO3_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOESET31_0_DIO3` writer - Writing 1 to this bit sets the DIO3 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOESET31_0_DIO3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOESET31_0_DIO3_AW > ; impl < 'a , REG , const O : u8 > DOESET31_0_DIO3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeset31_0_dio3_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO3_AW :: DOESET31_0_DIO3_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doeset31_0_dio3_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO3_AW :: DOESET31_0_DIO3_SET) } } # [doc = "Writing 1 to this bit sets the DIO4 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOESET31_0_DIO4_AW { # [doc = "0: NO_EFFECT"]
DOESET31_0_DIO4_NO_EFFECT = 0 , # [doc = "1: SET"]
DOESET31_0_DIO4_SET = 1 , } impl From < DOESET31_0_DIO4_AW > for bool { # [inline (always)]
fn from (variant : DOESET31_0_DIO4_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOESET31_0_DIO4` writer - Writing 1 to this bit sets the DIO4 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOESET31_0_DIO4_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOESET31_0_DIO4_AW > ; impl < 'a , REG , const O : u8 > DOESET31_0_DIO4_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeset31_0_dio4_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO4_AW :: DOESET31_0_DIO4_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doeset31_0_dio4_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO4_AW :: DOESET31_0_DIO4_SET) } } # [doc = "Writing 1 to this bit sets the DIO5 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOESET31_0_DIO5_AW { # [doc = "0: NO_EFFECT"]
DOESET31_0_DIO5_NO_EFFECT = 0 , # [doc = "1: SET"]
DOESET31_0_DIO5_SET = 1 , } impl From < DOESET31_0_DIO5_AW > for bool { # [inline (always)]
fn from (variant : DOESET31_0_DIO5_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOESET31_0_DIO5` writer - Writing 1 to this bit sets the DIO5 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOESET31_0_DIO5_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOESET31_0_DIO5_AW > ; impl < 'a , REG , const O : u8 > DOESET31_0_DIO5_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeset31_0_dio5_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO5_AW :: DOESET31_0_DIO5_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doeset31_0_dio5_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO5_AW :: DOESET31_0_DIO5_SET) } } # [doc = "Writing 1 to this bit sets the DIO6 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOESET31_0_DIO6_AW { # [doc = "0: NO_EFFECT"]
DOESET31_0_DIO6_NO_EFFECT = 0 , # [doc = "1: SET"]
DOESET31_0_DIO6_SET = 1 , } impl From < DOESET31_0_DIO6_AW > for bool { # [inline (always)]
fn from (variant : DOESET31_0_DIO6_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOESET31_0_DIO6` writer - Writing 1 to this bit sets the DIO6 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOESET31_0_DIO6_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOESET31_0_DIO6_AW > ; impl < 'a , REG , const O : u8 > DOESET31_0_DIO6_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeset31_0_dio6_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO6_AW :: DOESET31_0_DIO6_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doeset31_0_dio6_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO6_AW :: DOESET31_0_DIO6_SET) } } # [doc = "Writing 1 to this bit sets the DIO7 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOESET31_0_DIO7_AW { # [doc = "0: NO_EFFECT"]
DOESET31_0_DIO7_NO_EFFECT = 0 , # [doc = "1: SET"]
DOESET31_0_DIO7_SET = 1 , } impl From < DOESET31_0_DIO7_AW > for bool { # [inline (always)]
fn from (variant : DOESET31_0_DIO7_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOESET31_0_DIO7` writer - Writing 1 to this bit sets the DIO7 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOESET31_0_DIO7_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOESET31_0_DIO7_AW > ; impl < 'a , REG , const O : u8 > DOESET31_0_DIO7_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeset31_0_dio7_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO7_AW :: DOESET31_0_DIO7_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doeset31_0_dio7_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO7_AW :: DOESET31_0_DIO7_SET) } } # [doc = "Writing 1 to this bit sets the DIO8 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOESET31_0_DIO8_AW { # [doc = "0: NO_EFFECT"]
DOESET31_0_DIO8_NO_EFFECT = 0 , # [doc = "1: SET"]
DOESET31_0_DIO8_SET = 1 , } impl From < DOESET31_0_DIO8_AW > for bool { # [inline (always)]
fn from (variant : DOESET31_0_DIO8_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOESET31_0_DIO8` writer - Writing 1 to this bit sets the DIO8 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOESET31_0_DIO8_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOESET31_0_DIO8_AW > ; impl < 'a , REG , const O : u8 > DOESET31_0_DIO8_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeset31_0_dio8_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO8_AW :: DOESET31_0_DIO8_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doeset31_0_dio8_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO8_AW :: DOESET31_0_DIO8_SET) } } # [doc = "Writing 1 to this bit sets the DIO9 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOESET31_0_DIO9_AW { # [doc = "0: NO_EFFECT"]
DOESET31_0_DIO9_NO_EFFECT = 0 , # [doc = "1: SET"]
DOESET31_0_DIO9_SET = 1 , } impl From < DOESET31_0_DIO9_AW > for bool { # [inline (always)]
fn from (variant : DOESET31_0_DIO9_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOESET31_0_DIO9` writer - Writing 1 to this bit sets the DIO9 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOESET31_0_DIO9_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOESET31_0_DIO9_AW > ; impl < 'a , REG , const O : u8 > DOESET31_0_DIO9_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeset31_0_dio9_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO9_AW :: DOESET31_0_DIO9_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doeset31_0_dio9_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO9_AW :: DOESET31_0_DIO9_SET) } } # [doc = "Writing 1 to this bit sets the DIO10 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOESET31_0_DIO10_AW { # [doc = "0: NO_EFFECT"]
DOESET31_0_DIO10_NO_EFFECT = 0 , # [doc = "1: SET"]
DOESET31_0_DIO10_SET = 1 , } impl From < DOESET31_0_DIO10_AW > for bool { # [inline (always)]
fn from (variant : DOESET31_0_DIO10_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOESET31_0_DIO10` writer - Writing 1 to this bit sets the DIO10 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOESET31_0_DIO10_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOESET31_0_DIO10_AW > ; impl < 'a , REG , const O : u8 > DOESET31_0_DIO10_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeset31_0_dio10_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO10_AW :: DOESET31_0_DIO10_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doeset31_0_dio10_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO10_AW :: DOESET31_0_DIO10_SET) } } # [doc = "Writing 1 to this bit sets the DIO11 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOESET31_0_DIO11_AW { # [doc = "0: NO_EFFECT"]
DOESET31_0_DIO11_NO_EFFECT = 0 , # [doc = "1: SET"]
DOESET31_0_DIO11_SET = 1 , } impl From < DOESET31_0_DIO11_AW > for bool { # [inline (always)]
fn from (variant : DOESET31_0_DIO11_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOESET31_0_DIO11` writer - Writing 1 to this bit sets the DIO11 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOESET31_0_DIO11_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOESET31_0_DIO11_AW > ; impl < 'a , REG , const O : u8 > DOESET31_0_DIO11_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeset31_0_dio11_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO11_AW :: DOESET31_0_DIO11_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doeset31_0_dio11_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO11_AW :: DOESET31_0_DIO11_SET) } } # [doc = "Writing 1 to this bit sets the DIO12 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOESET31_0_DIO12_AW { # [doc = "0: NO_EFFECT"]
DOESET31_0_DIO12_NO_EFFECT = 0 , # [doc = "1: SET"]
DOESET31_0_DIO12_SET = 1 , } impl From < DOESET31_0_DIO12_AW > for bool { # [inline (always)]
fn from (variant : DOESET31_0_DIO12_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOESET31_0_DIO12` writer - Writing 1 to this bit sets the DIO12 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOESET31_0_DIO12_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOESET31_0_DIO12_AW > ; impl < 'a , REG , const O : u8 > DOESET31_0_DIO12_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeset31_0_dio12_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO12_AW :: DOESET31_0_DIO12_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doeset31_0_dio12_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO12_AW :: DOESET31_0_DIO12_SET) } } # [doc = "Writing 1 to this bit sets the DIO13 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOESET31_0_DIO13_AW { # [doc = "0: NO_EFFECT"]
DOESET31_0_DIO13_NO_EFFECT = 0 , # [doc = "1: SET"]
DOESET31_0_DIO13_SET = 1 , } impl From < DOESET31_0_DIO13_AW > for bool { # [inline (always)]
fn from (variant : DOESET31_0_DIO13_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOESET31_0_DIO13` writer - Writing 1 to this bit sets the DIO13 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOESET31_0_DIO13_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOESET31_0_DIO13_AW > ; impl < 'a , REG , const O : u8 > DOESET31_0_DIO13_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeset31_0_dio13_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO13_AW :: DOESET31_0_DIO13_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doeset31_0_dio13_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO13_AW :: DOESET31_0_DIO13_SET) } } # [doc = "Writing 1 to this bit sets the DIO14 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOESET31_0_DIO14_AW { # [doc = "0: NO_EFFECT"]
DOESET31_0_DIO14_NO_EFFECT = 0 , # [doc = "1: SET"]
DOESET31_0_DIO14_SET = 1 , } impl From < DOESET31_0_DIO14_AW > for bool { # [inline (always)]
fn from (variant : DOESET31_0_DIO14_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOESET31_0_DIO14` writer - Writing 1 to this bit sets the DIO14 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOESET31_0_DIO14_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOESET31_0_DIO14_AW > ; impl < 'a , REG , const O : u8 > DOESET31_0_DIO14_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeset31_0_dio14_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO14_AW :: DOESET31_0_DIO14_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doeset31_0_dio14_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO14_AW :: DOESET31_0_DIO14_SET) } } # [doc = "Writing 1 to this bit sets the DIO15 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOESET31_0_DIO15_AW { # [doc = "0: NO_EFFECT"]
DOESET31_0_DIO15_NO_EFFECT = 0 , # [doc = "1: SET"]
DOESET31_0_DIO15_SET = 1 , } impl From < DOESET31_0_DIO15_AW > for bool { # [inline (always)]
fn from (variant : DOESET31_0_DIO15_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOESET31_0_DIO15` writer - Writing 1 to this bit sets the DIO15 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOESET31_0_DIO15_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOESET31_0_DIO15_AW > ; impl < 'a , REG , const O : u8 > DOESET31_0_DIO15_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeset31_0_dio15_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO15_AW :: DOESET31_0_DIO15_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doeset31_0_dio15_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO15_AW :: DOESET31_0_DIO15_SET) } } # [doc = "Writing 1 to this bit sets the DIO16 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOESET31_0_DIO16_AW { # [doc = "0: NO_EFFECT"]
DOESET31_0_DIO16_NO_EFFECT = 0 , # [doc = "1: SET"]
DOESET31_0_DIO16_SET = 1 , } impl From < DOESET31_0_DIO16_AW > for bool { # [inline (always)]
fn from (variant : DOESET31_0_DIO16_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOESET31_0_DIO16` writer - Writing 1 to this bit sets the DIO16 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOESET31_0_DIO16_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOESET31_0_DIO16_AW > ; impl < 'a , REG , const O : u8 > DOESET31_0_DIO16_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeset31_0_dio16_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO16_AW :: DOESET31_0_DIO16_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doeset31_0_dio16_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO16_AW :: DOESET31_0_DIO16_SET) } } # [doc = "Writing 1 to this bit sets the DIO17 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOESET31_0_DIO17_AW { # [doc = "0: NO_EFFECT"]
DOESET31_0_DIO17_NO_EFFECT = 0 , # [doc = "1: SET"]
DOESET31_0_DIO17_SET = 1 , } impl From < DOESET31_0_DIO17_AW > for bool { # [inline (always)]
fn from (variant : DOESET31_0_DIO17_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOESET31_0_DIO17` writer - Writing 1 to this bit sets the DIO17 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOESET31_0_DIO17_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOESET31_0_DIO17_AW > ; impl < 'a , REG , const O : u8 > DOESET31_0_DIO17_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeset31_0_dio17_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO17_AW :: DOESET31_0_DIO17_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doeset31_0_dio17_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO17_AW :: DOESET31_0_DIO17_SET) } } # [doc = "Writing 1 to this bit sets the DIO18 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOESET31_0_DIO18_AW { # [doc = "0: NO_EFFECT"]
DOESET31_0_DIO18_NO_EFFECT = 0 , # [doc = "1: SET"]
DOESET31_0_DIO18_SET = 1 , } impl From < DOESET31_0_DIO18_AW > for bool { # [inline (always)]
fn from (variant : DOESET31_0_DIO18_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOESET31_0_DIO18` writer - Writing 1 to this bit sets the DIO18 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOESET31_0_DIO18_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOESET31_0_DIO18_AW > ; impl < 'a , REG , const O : u8 > DOESET31_0_DIO18_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeset31_0_dio18_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO18_AW :: DOESET31_0_DIO18_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doeset31_0_dio18_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO18_AW :: DOESET31_0_DIO18_SET) } } # [doc = "Writing 1 to this bit sets the DIO19 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOESET31_0_DIO19_AW { # [doc = "0: NO_EFFECT"]
DOESET31_0_DIO19_NO_EFFECT = 0 , # [doc = "1: SET"]
DOESET31_0_DIO19_SET = 1 , } impl From < DOESET31_0_DIO19_AW > for bool { # [inline (always)]
fn from (variant : DOESET31_0_DIO19_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOESET31_0_DIO19` writer - Writing 1 to this bit sets the DIO19 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOESET31_0_DIO19_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOESET31_0_DIO19_AW > ; impl < 'a , REG , const O : u8 > DOESET31_0_DIO19_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeset31_0_dio19_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO19_AW :: DOESET31_0_DIO19_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doeset31_0_dio19_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO19_AW :: DOESET31_0_DIO19_SET) } } # [doc = "Writing 1 to this bit sets the DIO20 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOESET31_0_DIO20_AW { # [doc = "0: NO_EFFECT"]
DOESET31_0_DIO20_NO_EFFECT = 0 , # [doc = "1: SET"]
DOESET31_0_DIO20_SET = 1 , } impl From < DOESET31_0_DIO20_AW > for bool { # [inline (always)]
fn from (variant : DOESET31_0_DIO20_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOESET31_0_DIO20` writer - Writing 1 to this bit sets the DIO20 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOESET31_0_DIO20_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOESET31_0_DIO20_AW > ; impl < 'a , REG , const O : u8 > DOESET31_0_DIO20_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeset31_0_dio20_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO20_AW :: DOESET31_0_DIO20_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doeset31_0_dio20_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO20_AW :: DOESET31_0_DIO20_SET) } } # [doc = "Writing 1 to this bit sets the DIO21 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOESET31_0_DIO21_AW { # [doc = "0: NO_EFFECT"]
DOESET31_0_DIO21_NO_EFFECT = 0 , # [doc = "1: SET"]
DOESET31_0_DIO21_SET = 1 , } impl From < DOESET31_0_DIO21_AW > for bool { # [inline (always)]
fn from (variant : DOESET31_0_DIO21_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOESET31_0_DIO21` writer - Writing 1 to this bit sets the DIO21 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOESET31_0_DIO21_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOESET31_0_DIO21_AW > ; impl < 'a , REG , const O : u8 > DOESET31_0_DIO21_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeset31_0_dio21_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO21_AW :: DOESET31_0_DIO21_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doeset31_0_dio21_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO21_AW :: DOESET31_0_DIO21_SET) } } # [doc = "Writing 1 to this bit sets the DIO22 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOESET31_0_DIO22_AW { # [doc = "0: NO_EFFECT"]
DOESET31_0_DIO22_NO_EFFECT = 0 , # [doc = "1: SET"]
DOESET31_0_DIO22_SET = 1 , } impl From < DOESET31_0_DIO22_AW > for bool { # [inline (always)]
fn from (variant : DOESET31_0_DIO22_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOESET31_0_DIO22` writer - Writing 1 to this bit sets the DIO22 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOESET31_0_DIO22_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOESET31_0_DIO22_AW > ; impl < 'a , REG , const O : u8 > DOESET31_0_DIO22_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeset31_0_dio22_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO22_AW :: DOESET31_0_DIO22_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doeset31_0_dio22_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO22_AW :: DOESET31_0_DIO22_SET) } } # [doc = "Writing 1 to this bit sets the DIO23 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOESET31_0_DIO23_AW { # [doc = "0: NO_EFFECT"]
DOESET31_0_DIO23_NO_EFFECT = 0 , # [doc = "1: SET"]
DOESET31_0_DIO23_SET = 1 , } impl From < DOESET31_0_DIO23_AW > for bool { # [inline (always)]
fn from (variant : DOESET31_0_DIO23_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOESET31_0_DIO23` writer - Writing 1 to this bit sets the DIO23 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOESET31_0_DIO23_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOESET31_0_DIO23_AW > ; impl < 'a , REG , const O : u8 > DOESET31_0_DIO23_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeset31_0_dio23_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO23_AW :: DOESET31_0_DIO23_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doeset31_0_dio23_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO23_AW :: DOESET31_0_DIO23_SET) } } # [doc = "Writing 1 to this bit sets the DIO24 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOESET31_0_DIO24_AW { # [doc = "0: NO_EFFECT"]
DOESET31_0_DIO24_NO_EFFECT = 0 , # [doc = "1: SET"]
DOESET31_0_DIO24_SET = 1 , } impl From < DOESET31_0_DIO24_AW > for bool { # [inline (always)]
fn from (variant : DOESET31_0_DIO24_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOESET31_0_DIO24` writer - Writing 1 to this bit sets the DIO24 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOESET31_0_DIO24_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOESET31_0_DIO24_AW > ; impl < 'a , REG , const O : u8 > DOESET31_0_DIO24_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeset31_0_dio24_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO24_AW :: DOESET31_0_DIO24_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doeset31_0_dio24_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO24_AW :: DOESET31_0_DIO24_SET) } } # [doc = "Writing 1 to this bit sets the DIO25 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOESET31_0_DIO25_AW { # [doc = "0: NO_EFFECT"]
DOESET31_0_DIO25_NO_EFFECT = 0 , # [doc = "1: SET"]
DOESET31_0_DIO25_SET = 1 , } impl From < DOESET31_0_DIO25_AW > for bool { # [inline (always)]
fn from (variant : DOESET31_0_DIO25_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOESET31_0_DIO25` writer - Writing 1 to this bit sets the DIO25 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOESET31_0_DIO25_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOESET31_0_DIO25_AW > ; impl < 'a , REG , const O : u8 > DOESET31_0_DIO25_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeset31_0_dio25_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO25_AW :: DOESET31_0_DIO25_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doeset31_0_dio25_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO25_AW :: DOESET31_0_DIO25_SET) } } # [doc = "Writing 1 to this bit sets the DIO26 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOESET31_0_DIO26_AW { # [doc = "0: NO_EFFECT"]
DOESET31_0_DIO26_NO_EFFECT = 0 , # [doc = "1: SET"]
DOESET31_0_DIO26_SET = 1 , } impl From < DOESET31_0_DIO26_AW > for bool { # [inline (always)]
fn from (variant : DOESET31_0_DIO26_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOESET31_0_DIO26` writer - Writing 1 to this bit sets the DIO26 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOESET31_0_DIO26_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOESET31_0_DIO26_AW > ; impl < 'a , REG , const O : u8 > DOESET31_0_DIO26_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeset31_0_dio26_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO26_AW :: DOESET31_0_DIO26_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doeset31_0_dio26_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO26_AW :: DOESET31_0_DIO26_SET) } } # [doc = "Writing 1 to this bit sets the DIO27 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOESET31_0_DIO27_AW { # [doc = "0: NO_EFFECT"]
DOESET31_0_DIO27_NO_EFFECT = 0 , # [doc = "1: SET"]
DOESET31_0_DIO27_SET = 1 , } impl From < DOESET31_0_DIO27_AW > for bool { # [inline (always)]
fn from (variant : DOESET31_0_DIO27_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOESET31_0_DIO27` writer - Writing 1 to this bit sets the DIO27 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOESET31_0_DIO27_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOESET31_0_DIO27_AW > ; impl < 'a , REG , const O : u8 > DOESET31_0_DIO27_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeset31_0_dio27_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO27_AW :: DOESET31_0_DIO27_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doeset31_0_dio27_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO27_AW :: DOESET31_0_DIO27_SET) } } # [doc = "Writing 1 to this bit sets the DIO28 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOESET31_0_DIO28_AW { # [doc = "0: NO_EFFECT"]
DOESET31_0_DIO28_NO_EFFECT = 0 , # [doc = "1: SET"]
DOESET31_0_DIO28_SET = 1 , } impl From < DOESET31_0_DIO28_AW > for bool { # [inline (always)]
fn from (variant : DOESET31_0_DIO28_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOESET31_0_DIO28` writer - Writing 1 to this bit sets the DIO28 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOESET31_0_DIO28_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOESET31_0_DIO28_AW > ; impl < 'a , REG , const O : u8 > DOESET31_0_DIO28_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeset31_0_dio28_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO28_AW :: DOESET31_0_DIO28_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doeset31_0_dio28_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO28_AW :: DOESET31_0_DIO28_SET) } } # [doc = "Writing 1 to this bit sets the DIO29 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOESET31_0_DIO29_AW { # [doc = "0: NO_EFFECT"]
DOESET31_0_DIO29_NO_EFFECT = 0 , # [doc = "1: SET"]
DOESET31_0_DIO29_SET = 1 , } impl From < DOESET31_0_DIO29_AW > for bool { # [inline (always)]
fn from (variant : DOESET31_0_DIO29_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOESET31_0_DIO29` writer - Writing 1 to this bit sets the DIO29 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOESET31_0_DIO29_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOESET31_0_DIO29_AW > ; impl < 'a , REG , const O : u8 > DOESET31_0_DIO29_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeset31_0_dio29_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO29_AW :: DOESET31_0_DIO29_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doeset31_0_dio29_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO29_AW :: DOESET31_0_DIO29_SET) } } # [doc = "Writing 1 to this bit sets the DIO30 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOESET31_0_DIO30_AW { # [doc = "0: NO_EFFECT"]
DOESET31_0_DIO30_NO_EFFECT = 0 , # [doc = "1: SET"]
DOESET31_0_DIO30_SET = 1 , } impl From < DOESET31_0_DIO30_AW > for bool { # [inline (always)]
fn from (variant : DOESET31_0_DIO30_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOESET31_0_DIO30` writer - Writing 1 to this bit sets the DIO30 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOESET31_0_DIO30_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOESET31_0_DIO30_AW > ; impl < 'a , REG , const O : u8 > DOESET31_0_DIO30_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeset31_0_dio30_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO30_AW :: DOESET31_0_DIO30_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doeset31_0_dio30_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO30_AW :: DOESET31_0_DIO30_SET) } } # [doc = "Writing 1 to this bit sets the DIO31 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOESET31_0_DIO31_AW { # [doc = "0: NO_EFFECT"]
DOESET31_0_DIO31_NO_EFFECT = 0 , # [doc = "1: SET"]
DOESET31_0_DIO31_SET = 1 , } impl From < DOESET31_0_DIO31_AW > for bool { # [inline (always)]
fn from (variant : DOESET31_0_DIO31_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOESET31_0_DIO31` writer - Writing 1 to this bit sets the DIO31 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOESET31_0_DIO31_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOESET31_0_DIO31_AW > ; impl < 'a , REG , const O : u8 > DOESET31_0_DIO31_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeset31_0_dio31_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO31_AW :: DOESET31_0_DIO31_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn doeset31_0_dio31_set (self) -> & 'a mut crate :: W < REG > { self . variant (DOESET31_0_DIO31_AW :: DOESET31_0_DIO31_SET) } } impl W { # [doc = "Bit 0 - Writing 1 to this bit sets the DIO0 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeset31_0_dio0 (& mut self) -> DOESET31_0_DIO0_W < DOESET31_0_SPEC , 0 > { DOESET31_0_DIO0_W :: new (self) } # [doc = "Bit 1 - Writing 1 to this bit sets the DIO1 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeset31_0_dio1 (& mut self) -> DOESET31_0_DIO1_W < DOESET31_0_SPEC , 1 > { DOESET31_0_DIO1_W :: new (self) } # [doc = "Bit 2 - Writing 1 to this bit sets the DIO2 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeset31_0_dio2 (& mut self) -> DOESET31_0_DIO2_W < DOESET31_0_SPEC , 2 > { DOESET31_0_DIO2_W :: new (self) } # [doc = "Bit 3 - Writing 1 to this bit sets the DIO3 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeset31_0_dio3 (& mut self) -> DOESET31_0_DIO3_W < DOESET31_0_SPEC , 3 > { DOESET31_0_DIO3_W :: new (self) } # [doc = "Bit 4 - Writing 1 to this bit sets the DIO4 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeset31_0_dio4 (& mut self) -> DOESET31_0_DIO4_W < DOESET31_0_SPEC , 4 > { DOESET31_0_DIO4_W :: new (self) } # [doc = "Bit 5 - Writing 1 to this bit sets the DIO5 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeset31_0_dio5 (& mut self) -> DOESET31_0_DIO5_W < DOESET31_0_SPEC , 5 > { DOESET31_0_DIO5_W :: new (self) } # [doc = "Bit 6 - Writing 1 to this bit sets the DIO6 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeset31_0_dio6 (& mut self) -> DOESET31_0_DIO6_W < DOESET31_0_SPEC , 6 > { DOESET31_0_DIO6_W :: new (self) } # [doc = "Bit 7 - Writing 1 to this bit sets the DIO7 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeset31_0_dio7 (& mut self) -> DOESET31_0_DIO7_W < DOESET31_0_SPEC , 7 > { DOESET31_0_DIO7_W :: new (self) } # [doc = "Bit 8 - Writing 1 to this bit sets the DIO8 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeset31_0_dio8 (& mut self) -> DOESET31_0_DIO8_W < DOESET31_0_SPEC , 8 > { DOESET31_0_DIO8_W :: new (self) } # [doc = "Bit 9 - Writing 1 to this bit sets the DIO9 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeset31_0_dio9 (& mut self) -> DOESET31_0_DIO9_W < DOESET31_0_SPEC , 9 > { DOESET31_0_DIO9_W :: new (self) } # [doc = "Bit 10 - Writing 1 to this bit sets the DIO10 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeset31_0_dio10 (& mut self) -> DOESET31_0_DIO10_W < DOESET31_0_SPEC , 10 > { DOESET31_0_DIO10_W :: new (self) } # [doc = "Bit 11 - Writing 1 to this bit sets the DIO11 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeset31_0_dio11 (& mut self) -> DOESET31_0_DIO11_W < DOESET31_0_SPEC , 11 > { DOESET31_0_DIO11_W :: new (self) } # [doc = "Bit 12 - Writing 1 to this bit sets the DIO12 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeset31_0_dio12 (& mut self) -> DOESET31_0_DIO12_W < DOESET31_0_SPEC , 12 > { DOESET31_0_DIO12_W :: new (self) } # [doc = "Bit 13 - Writing 1 to this bit sets the DIO13 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeset31_0_dio13 (& mut self) -> DOESET31_0_DIO13_W < DOESET31_0_SPEC , 13 > { DOESET31_0_DIO13_W :: new (self) } # [doc = "Bit 14 - Writing 1 to this bit sets the DIO14 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeset31_0_dio14 (& mut self) -> DOESET31_0_DIO14_W < DOESET31_0_SPEC , 14 > { DOESET31_0_DIO14_W :: new (self) } # [doc = "Bit 15 - Writing 1 to this bit sets the DIO15 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeset31_0_dio15 (& mut self) -> DOESET31_0_DIO15_W < DOESET31_0_SPEC , 15 > { DOESET31_0_DIO15_W :: new (self) } # [doc = "Bit 16 - Writing 1 to this bit sets the DIO16 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeset31_0_dio16 (& mut self) -> DOESET31_0_DIO16_W < DOESET31_0_SPEC , 16 > { DOESET31_0_DIO16_W :: new (self) } # [doc = "Bit 17 - Writing 1 to this bit sets the DIO17 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeset31_0_dio17 (& mut self) -> DOESET31_0_DIO17_W < DOESET31_0_SPEC , 17 > { DOESET31_0_DIO17_W :: new (self) } # [doc = "Bit 18 - Writing 1 to this bit sets the DIO18 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeset31_0_dio18 (& mut self) -> DOESET31_0_DIO18_W < DOESET31_0_SPEC , 18 > { DOESET31_0_DIO18_W :: new (self) } # [doc = "Bit 19 - Writing 1 to this bit sets the DIO19 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeset31_0_dio19 (& mut self) -> DOESET31_0_DIO19_W < DOESET31_0_SPEC , 19 > { DOESET31_0_DIO19_W :: new (self) } # [doc = "Bit 20 - Writing 1 to this bit sets the DIO20 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeset31_0_dio20 (& mut self) -> DOESET31_0_DIO20_W < DOESET31_0_SPEC , 20 > { DOESET31_0_DIO20_W :: new (self) } # [doc = "Bit 21 - Writing 1 to this bit sets the DIO21 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeset31_0_dio21 (& mut self) -> DOESET31_0_DIO21_W < DOESET31_0_SPEC , 21 > { DOESET31_0_DIO21_W :: new (self) } # [doc = "Bit 22 - Writing 1 to this bit sets the DIO22 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeset31_0_dio22 (& mut self) -> DOESET31_0_DIO22_W < DOESET31_0_SPEC , 22 > { DOESET31_0_DIO22_W :: new (self) } # [doc = "Bit 23 - Writing 1 to this bit sets the DIO23 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeset31_0_dio23 (& mut self) -> DOESET31_0_DIO23_W < DOESET31_0_SPEC , 23 > { DOESET31_0_DIO23_W :: new (self) } # [doc = "Bit 24 - Writing 1 to this bit sets the DIO24 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeset31_0_dio24 (& mut self) -> DOESET31_0_DIO24_W < DOESET31_0_SPEC , 24 > { DOESET31_0_DIO24_W :: new (self) } # [doc = "Bit 25 - Writing 1 to this bit sets the DIO25 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeset31_0_dio25 (& mut self) -> DOESET31_0_DIO25_W < DOESET31_0_SPEC , 25 > { DOESET31_0_DIO25_W :: new (self) } # [doc = "Bit 26 - Writing 1 to this bit sets the DIO26 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeset31_0_dio26 (& mut self) -> DOESET31_0_DIO26_W < DOESET31_0_SPEC , 26 > { DOESET31_0_DIO26_W :: new (self) } # [doc = "Bit 27 - Writing 1 to this bit sets the DIO27 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeset31_0_dio27 (& mut self) -> DOESET31_0_DIO27_W < DOESET31_0_SPEC , 27 > { DOESET31_0_DIO27_W :: new (self) } # [doc = "Bit 28 - Writing 1 to this bit sets the DIO28 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeset31_0_dio28 (& mut self) -> DOESET31_0_DIO28_W < DOESET31_0_SPEC , 28 > { DOESET31_0_DIO28_W :: new (self) } # [doc = "Bit 29 - Writing 1 to this bit sets the DIO29 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeset31_0_dio29 (& mut self) -> DOESET31_0_DIO29_W < DOESET31_0_SPEC , 29 > { DOESET31_0_DIO29_W :: new (self) } # [doc = "Bit 30 - Writing 1 to this bit sets the DIO30 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeset31_0_dio30 (& mut self) -> DOESET31_0_DIO30_W < DOESET31_0_SPEC , 30 > { DOESET31_0_DIO30_W :: new (self) } # [doc = "Bit 31 - Writing 1 to this bit sets the DIO31 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeset31_0_dio31 (& mut self) -> DOESET31_0_DIO31_W < DOESET31_0_SPEC , 31 > { DOESET31_0_DIO31_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Data output enable set 31 to 0\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`doeset31_0::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DOESET31_0_SPEC ; impl crate :: RegisterSpec for DOESET31_0_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`doeset31_0::W`](W) writer structure"]
impl crate :: Writable for DOESET31_0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets DOESET31_0 to value 0"]
impl crate :: Resettable for DOESET31_0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DOECLR31_0 (w) register accessor: Data output enable clear 31 to 0\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`doeclr31_0::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@doeclr31_0`]
module"]
pub type DOECLR31_0 = crate :: Reg < doeclr31_0 :: DOECLR31_0_SPEC > ; # [doc = "Data output enable clear 31 to 0"]
pub mod doeclr31_0 { # [doc = "Register `DOECLR31_0` writer"]
pub type W = crate :: W < DOECLR31_0_SPEC > ; # [doc = "Writing 1 to this bit clears the DIO0 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOECLR31_0_DIO0_AW { # [doc = "0: NO_EFFECT"]
DOECLR31_0_DIO0_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOECLR31_0_DIO0_CLR = 1 , } impl From < DOECLR31_0_DIO0_AW > for bool { # [inline (always)]
fn from (variant : DOECLR31_0_DIO0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOECLR31_0_DIO0` writer - Writing 1 to this bit clears the DIO0 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOECLR31_0_DIO0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOECLR31_0_DIO0_AW > ; impl < 'a , REG , const O : u8 > DOECLR31_0_DIO0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeclr31_0_dio0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO0_AW :: DOECLR31_0_DIO0_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doeclr31_0_dio0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO0_AW :: DOECLR31_0_DIO0_CLR) } } # [doc = "Writing 1 to this bit clears the DIO1 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOECLR31_0_DIO1_AW { # [doc = "0: NO_EFFECT"]
DOECLR31_0_DIO1_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOECLR31_0_DIO1_CLR = 1 , } impl From < DOECLR31_0_DIO1_AW > for bool { # [inline (always)]
fn from (variant : DOECLR31_0_DIO1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOECLR31_0_DIO1` writer - Writing 1 to this bit clears the DIO1 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOECLR31_0_DIO1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOECLR31_0_DIO1_AW > ; impl < 'a , REG , const O : u8 > DOECLR31_0_DIO1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeclr31_0_dio1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO1_AW :: DOECLR31_0_DIO1_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doeclr31_0_dio1_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO1_AW :: DOECLR31_0_DIO1_CLR) } } # [doc = "Writing 1 to this bit clears the DIO2 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOECLR31_0_DIO2_AW { # [doc = "0: NO_EFFECT"]
DOECLR31_0_DIO2_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOECLR31_0_DIO2_CLR = 1 , } impl From < DOECLR31_0_DIO2_AW > for bool { # [inline (always)]
fn from (variant : DOECLR31_0_DIO2_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOECLR31_0_DIO2` writer - Writing 1 to this bit clears the DIO2 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOECLR31_0_DIO2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOECLR31_0_DIO2_AW > ; impl < 'a , REG , const O : u8 > DOECLR31_0_DIO2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeclr31_0_dio2_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO2_AW :: DOECLR31_0_DIO2_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doeclr31_0_dio2_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO2_AW :: DOECLR31_0_DIO2_CLR) } } # [doc = "Writing 1 to this bit clears the DIO3 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOECLR31_0_DIO3_AW { # [doc = "0: NO_EFFECT"]
DOECLR31_0_DIO3_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOECLR31_0_DIO3_CLR = 1 , } impl From < DOECLR31_0_DIO3_AW > for bool { # [inline (always)]
fn from (variant : DOECLR31_0_DIO3_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOECLR31_0_DIO3` writer - Writing 1 to this bit clears the DIO3 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOECLR31_0_DIO3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOECLR31_0_DIO3_AW > ; impl < 'a , REG , const O : u8 > DOECLR31_0_DIO3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeclr31_0_dio3_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO3_AW :: DOECLR31_0_DIO3_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doeclr31_0_dio3_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO3_AW :: DOECLR31_0_DIO3_CLR) } } # [doc = "Writing 1 to this bit clears the DIO4 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOECLR31_0_DIO4_AW { # [doc = "0: NO_EFFECT"]
DOECLR31_0_DIO4_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOECLR31_0_DIO4_CLR = 1 , } impl From < DOECLR31_0_DIO4_AW > for bool { # [inline (always)]
fn from (variant : DOECLR31_0_DIO4_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOECLR31_0_DIO4` writer - Writing 1 to this bit clears the DIO4 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOECLR31_0_DIO4_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOECLR31_0_DIO4_AW > ; impl < 'a , REG , const O : u8 > DOECLR31_0_DIO4_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeclr31_0_dio4_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO4_AW :: DOECLR31_0_DIO4_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doeclr31_0_dio4_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO4_AW :: DOECLR31_0_DIO4_CLR) } } # [doc = "Writing 1 to this bit clears the DIO5 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOECLR31_0_DIO5_AW { # [doc = "0: NO_EFFECT"]
DOECLR31_0_DIO5_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOECLR31_0_DIO5_CLR = 1 , } impl From < DOECLR31_0_DIO5_AW > for bool { # [inline (always)]
fn from (variant : DOECLR31_0_DIO5_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOECLR31_0_DIO5` writer - Writing 1 to this bit clears the DIO5 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOECLR31_0_DIO5_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOECLR31_0_DIO5_AW > ; impl < 'a , REG , const O : u8 > DOECLR31_0_DIO5_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeclr31_0_dio5_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO5_AW :: DOECLR31_0_DIO5_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doeclr31_0_dio5_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO5_AW :: DOECLR31_0_DIO5_CLR) } } # [doc = "Writing 1 to this bit clears the DIO6 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOECLR31_0_DIO6_AW { # [doc = "0: NO_EFFECT"]
DOECLR31_0_DIO6_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOECLR31_0_DIO6_CLR = 1 , } impl From < DOECLR31_0_DIO6_AW > for bool { # [inline (always)]
fn from (variant : DOECLR31_0_DIO6_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOECLR31_0_DIO6` writer - Writing 1 to this bit clears the DIO6 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOECLR31_0_DIO6_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOECLR31_0_DIO6_AW > ; impl < 'a , REG , const O : u8 > DOECLR31_0_DIO6_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeclr31_0_dio6_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO6_AW :: DOECLR31_0_DIO6_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doeclr31_0_dio6_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO6_AW :: DOECLR31_0_DIO6_CLR) } } # [doc = "Writing 1 to this bit clears the DIO7 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOECLR31_0_DIO7_AW { # [doc = "0: NO_EFFECT"]
DOECLR31_0_DIO7_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOECLR31_0_DIO7_CLR = 1 , } impl From < DOECLR31_0_DIO7_AW > for bool { # [inline (always)]
fn from (variant : DOECLR31_0_DIO7_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOECLR31_0_DIO7` writer - Writing 1 to this bit clears the DIO7 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOECLR31_0_DIO7_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOECLR31_0_DIO7_AW > ; impl < 'a , REG , const O : u8 > DOECLR31_0_DIO7_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeclr31_0_dio7_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO7_AW :: DOECLR31_0_DIO7_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doeclr31_0_dio7_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO7_AW :: DOECLR31_0_DIO7_CLR) } } # [doc = "Writing 1 to this bit clears the DIO8 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOECLR31_0_DIO8_AW { # [doc = "0: NO_EFFECT"]
DOECLR31_0_DIO8_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOECLR31_0_DIO8_CLR = 1 , } impl From < DOECLR31_0_DIO8_AW > for bool { # [inline (always)]
fn from (variant : DOECLR31_0_DIO8_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOECLR31_0_DIO8` writer - Writing 1 to this bit clears the DIO8 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOECLR31_0_DIO8_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOECLR31_0_DIO8_AW > ; impl < 'a , REG , const O : u8 > DOECLR31_0_DIO8_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeclr31_0_dio8_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO8_AW :: DOECLR31_0_DIO8_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doeclr31_0_dio8_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO8_AW :: DOECLR31_0_DIO8_CLR) } } # [doc = "Writing 1 to this bit clears the DIO9 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOECLR31_0_DIO9_AW { # [doc = "0: NO_EFFECT"]
DOECLR31_0_DIO9_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOECLR31_0_DIO9_CLR = 1 , } impl From < DOECLR31_0_DIO9_AW > for bool { # [inline (always)]
fn from (variant : DOECLR31_0_DIO9_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOECLR31_0_DIO9` writer - Writing 1 to this bit clears the DIO9 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOECLR31_0_DIO9_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOECLR31_0_DIO9_AW > ; impl < 'a , REG , const O : u8 > DOECLR31_0_DIO9_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeclr31_0_dio9_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO9_AW :: DOECLR31_0_DIO9_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doeclr31_0_dio9_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO9_AW :: DOECLR31_0_DIO9_CLR) } } # [doc = "Writing 1 to this bit clears the DIO10 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOECLR31_0_DIO10_AW { # [doc = "0: NO_EFFECT"]
DOECLR31_0_DIO10_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOECLR31_0_DIO10_CLR = 1 , } impl From < DOECLR31_0_DIO10_AW > for bool { # [inline (always)]
fn from (variant : DOECLR31_0_DIO10_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOECLR31_0_DIO10` writer - Writing 1 to this bit clears the DIO10 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOECLR31_0_DIO10_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOECLR31_0_DIO10_AW > ; impl < 'a , REG , const O : u8 > DOECLR31_0_DIO10_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeclr31_0_dio10_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO10_AW :: DOECLR31_0_DIO10_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doeclr31_0_dio10_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO10_AW :: DOECLR31_0_DIO10_CLR) } } # [doc = "Writing 1 to this bit clears the DIO11 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOECLR31_0_DIO11_AW { # [doc = "0: NO_EFFECT"]
DOECLR31_0_DIO11_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOECLR31_0_DIO11_CLR = 1 , } impl From < DOECLR31_0_DIO11_AW > for bool { # [inline (always)]
fn from (variant : DOECLR31_0_DIO11_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOECLR31_0_DIO11` writer - Writing 1 to this bit clears the DIO11 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOECLR31_0_DIO11_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOECLR31_0_DIO11_AW > ; impl < 'a , REG , const O : u8 > DOECLR31_0_DIO11_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeclr31_0_dio11_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO11_AW :: DOECLR31_0_DIO11_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doeclr31_0_dio11_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO11_AW :: DOECLR31_0_DIO11_CLR) } } # [doc = "Writing 1 to this bit clears the DIO12 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOECLR31_0_DIO12_AW { # [doc = "0: NO_EFFECT"]
DOECLR31_0_DIO12_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOECLR31_0_DIO12_CLR = 1 , } impl From < DOECLR31_0_DIO12_AW > for bool { # [inline (always)]
fn from (variant : DOECLR31_0_DIO12_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOECLR31_0_DIO12` writer - Writing 1 to this bit clears the DIO12 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOECLR31_0_DIO12_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOECLR31_0_DIO12_AW > ; impl < 'a , REG , const O : u8 > DOECLR31_0_DIO12_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeclr31_0_dio12_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO12_AW :: DOECLR31_0_DIO12_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doeclr31_0_dio12_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO12_AW :: DOECLR31_0_DIO12_CLR) } } # [doc = "Writing 1 to this bit clears the DIO13 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOECLR31_0_DIO13_AW { # [doc = "0: NO_EFFECT"]
DOECLR31_0_DIO13_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOECLR31_0_DIO13_CLR = 1 , } impl From < DOECLR31_0_DIO13_AW > for bool { # [inline (always)]
fn from (variant : DOECLR31_0_DIO13_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOECLR31_0_DIO13` writer - Writing 1 to this bit clears the DIO13 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOECLR31_0_DIO13_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOECLR31_0_DIO13_AW > ; impl < 'a , REG , const O : u8 > DOECLR31_0_DIO13_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeclr31_0_dio13_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO13_AW :: DOECLR31_0_DIO13_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doeclr31_0_dio13_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO13_AW :: DOECLR31_0_DIO13_CLR) } } # [doc = "Writing 1 to this bit clears the DIO14 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOECLR31_0_DIO14_AW { # [doc = "0: NO_EFFECT"]
DOECLR31_0_DIO14_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOECLR31_0_DIO14_CLR = 1 , } impl From < DOECLR31_0_DIO14_AW > for bool { # [inline (always)]
fn from (variant : DOECLR31_0_DIO14_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOECLR31_0_DIO14` writer - Writing 1 to this bit clears the DIO14 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOECLR31_0_DIO14_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOECLR31_0_DIO14_AW > ; impl < 'a , REG , const O : u8 > DOECLR31_0_DIO14_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeclr31_0_dio14_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO14_AW :: DOECLR31_0_DIO14_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doeclr31_0_dio14_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO14_AW :: DOECLR31_0_DIO14_CLR) } } # [doc = "Writing 1 to this bit clears the DIO15 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOECLR31_0_DIO15_AW { # [doc = "0: NO_EFFECT"]
DOECLR31_0_DIO15_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOECLR31_0_DIO15_CLR = 1 , } impl From < DOECLR31_0_DIO15_AW > for bool { # [inline (always)]
fn from (variant : DOECLR31_0_DIO15_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOECLR31_0_DIO15` writer - Writing 1 to this bit clears the DIO15 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOECLR31_0_DIO15_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOECLR31_0_DIO15_AW > ; impl < 'a , REG , const O : u8 > DOECLR31_0_DIO15_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeclr31_0_dio15_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO15_AW :: DOECLR31_0_DIO15_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doeclr31_0_dio15_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO15_AW :: DOECLR31_0_DIO15_CLR) } } # [doc = "Writing 1 to this bit clears the DIO16 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOECLR31_0_DIO16_AW { # [doc = "0: NO_EFFECT"]
DOECLR31_0_DIO16_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOECLR31_0_DIO16_CLR = 1 , } impl From < DOECLR31_0_DIO16_AW > for bool { # [inline (always)]
fn from (variant : DOECLR31_0_DIO16_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOECLR31_0_DIO16` writer - Writing 1 to this bit clears the DIO16 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOECLR31_0_DIO16_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOECLR31_0_DIO16_AW > ; impl < 'a , REG , const O : u8 > DOECLR31_0_DIO16_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeclr31_0_dio16_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO16_AW :: DOECLR31_0_DIO16_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doeclr31_0_dio16_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO16_AW :: DOECLR31_0_DIO16_CLR) } } # [doc = "Writing 1 to this bit clears the DIO17 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOECLR31_0_DIO17_AW { # [doc = "0: NO_EFFECT"]
DOECLR31_0_DIO17_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOECLR31_0_DIO17_CLR = 1 , } impl From < DOECLR31_0_DIO17_AW > for bool { # [inline (always)]
fn from (variant : DOECLR31_0_DIO17_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOECLR31_0_DIO17` writer - Writing 1 to this bit clears the DIO17 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOECLR31_0_DIO17_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOECLR31_0_DIO17_AW > ; impl < 'a , REG , const O : u8 > DOECLR31_0_DIO17_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeclr31_0_dio17_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO17_AW :: DOECLR31_0_DIO17_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doeclr31_0_dio17_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO17_AW :: DOECLR31_0_DIO17_CLR) } } # [doc = "Writing 1 to this bit clears the DIO18 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOECLR31_0_DIO18_AW { # [doc = "0: NO_EFFECT"]
DOECLR31_0_DIO18_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOECLR31_0_DIO18_CLR = 1 , } impl From < DOECLR31_0_DIO18_AW > for bool { # [inline (always)]
fn from (variant : DOECLR31_0_DIO18_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOECLR31_0_DIO18` writer - Writing 1 to this bit clears the DIO18 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOECLR31_0_DIO18_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOECLR31_0_DIO18_AW > ; impl < 'a , REG , const O : u8 > DOECLR31_0_DIO18_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeclr31_0_dio18_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO18_AW :: DOECLR31_0_DIO18_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doeclr31_0_dio18_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO18_AW :: DOECLR31_0_DIO18_CLR) } } # [doc = "Writing 1 to this bit clears the DIO19 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOECLR31_0_DIO19_AW { # [doc = "0: NO_EFFECT"]
DOECLR31_0_DIO19_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOECLR31_0_DIO19_CLR = 1 , } impl From < DOECLR31_0_DIO19_AW > for bool { # [inline (always)]
fn from (variant : DOECLR31_0_DIO19_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOECLR31_0_DIO19` writer - Writing 1 to this bit clears the DIO19 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOECLR31_0_DIO19_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOECLR31_0_DIO19_AW > ; impl < 'a , REG , const O : u8 > DOECLR31_0_DIO19_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeclr31_0_dio19_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO19_AW :: DOECLR31_0_DIO19_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doeclr31_0_dio19_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO19_AW :: DOECLR31_0_DIO19_CLR) } } # [doc = "Writing 1 to this bit clears the DIO20 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOECLR31_0_DIO20_AW { # [doc = "0: NO_EFFECT"]
DOECLR31_0_DIO20_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOECLR31_0_DIO20_CLR = 1 , } impl From < DOECLR31_0_DIO20_AW > for bool { # [inline (always)]
fn from (variant : DOECLR31_0_DIO20_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOECLR31_0_DIO20` writer - Writing 1 to this bit clears the DIO20 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOECLR31_0_DIO20_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOECLR31_0_DIO20_AW > ; impl < 'a , REG , const O : u8 > DOECLR31_0_DIO20_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeclr31_0_dio20_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO20_AW :: DOECLR31_0_DIO20_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doeclr31_0_dio20_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO20_AW :: DOECLR31_0_DIO20_CLR) } } # [doc = "Writing 1 to this bit clears the DIO21 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOECLR31_0_DIO21_AW { # [doc = "0: NO_EFFECT"]
DOECLR31_0_DIO21_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOECLR31_0_DIO21_CLR = 1 , } impl From < DOECLR31_0_DIO21_AW > for bool { # [inline (always)]
fn from (variant : DOECLR31_0_DIO21_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOECLR31_0_DIO21` writer - Writing 1 to this bit clears the DIO21 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOECLR31_0_DIO21_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOECLR31_0_DIO21_AW > ; impl < 'a , REG , const O : u8 > DOECLR31_0_DIO21_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeclr31_0_dio21_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO21_AW :: DOECLR31_0_DIO21_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doeclr31_0_dio21_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO21_AW :: DOECLR31_0_DIO21_CLR) } } # [doc = "Writing 1 to this bit clears the DIO22 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOECLR31_0_DIO22_AW { # [doc = "0: NO_EFFECT"]
DOECLR31_0_DIO22_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOECLR31_0_DIO22_CLR = 1 , } impl From < DOECLR31_0_DIO22_AW > for bool { # [inline (always)]
fn from (variant : DOECLR31_0_DIO22_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOECLR31_0_DIO22` writer - Writing 1 to this bit clears the DIO22 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOECLR31_0_DIO22_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOECLR31_0_DIO22_AW > ; impl < 'a , REG , const O : u8 > DOECLR31_0_DIO22_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeclr31_0_dio22_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO22_AW :: DOECLR31_0_DIO22_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doeclr31_0_dio22_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO22_AW :: DOECLR31_0_DIO22_CLR) } } # [doc = "Writing 1 to this bit clears the DIO23 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOECLR31_0_DIO23_AW { # [doc = "0: NO_EFFECT"]
DOECLR31_0_DIO23_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOECLR31_0_DIO23_CLR = 1 , } impl From < DOECLR31_0_DIO23_AW > for bool { # [inline (always)]
fn from (variant : DOECLR31_0_DIO23_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOECLR31_0_DIO23` writer - Writing 1 to this bit clears the DIO23 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOECLR31_0_DIO23_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOECLR31_0_DIO23_AW > ; impl < 'a , REG , const O : u8 > DOECLR31_0_DIO23_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeclr31_0_dio23_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO23_AW :: DOECLR31_0_DIO23_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doeclr31_0_dio23_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO23_AW :: DOECLR31_0_DIO23_CLR) } } # [doc = "Writing 1 to this bit clears the DIO24 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOECLR31_0_DIO24_AW { # [doc = "0: NO_EFFECT"]
DOECLR31_0_DIO24_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOECLR31_0_DIO24_CLR = 1 , } impl From < DOECLR31_0_DIO24_AW > for bool { # [inline (always)]
fn from (variant : DOECLR31_0_DIO24_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOECLR31_0_DIO24` writer - Writing 1 to this bit clears the DIO24 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOECLR31_0_DIO24_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOECLR31_0_DIO24_AW > ; impl < 'a , REG , const O : u8 > DOECLR31_0_DIO24_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeclr31_0_dio24_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO24_AW :: DOECLR31_0_DIO24_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doeclr31_0_dio24_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO24_AW :: DOECLR31_0_DIO24_CLR) } } # [doc = "Writing 1 to this bit clears the DIO25 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOECLR31_0_DIO25_AW { # [doc = "0: NO_EFFECT"]
DOECLR31_0_DIO25_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOECLR31_0_DIO25_CLR = 1 , } impl From < DOECLR31_0_DIO25_AW > for bool { # [inline (always)]
fn from (variant : DOECLR31_0_DIO25_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOECLR31_0_DIO25` writer - Writing 1 to this bit clears the DIO25 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOECLR31_0_DIO25_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOECLR31_0_DIO25_AW > ; impl < 'a , REG , const O : u8 > DOECLR31_0_DIO25_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeclr31_0_dio25_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO25_AW :: DOECLR31_0_DIO25_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doeclr31_0_dio25_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO25_AW :: DOECLR31_0_DIO25_CLR) } } # [doc = "Writing 1 to this bit clears the DIO26 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOECLR31_0_DIO26_AW { # [doc = "0: NO_EFFECT"]
DOECLR31_0_DIO26_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOECLR31_0_DIO26_CLR = 1 , } impl From < DOECLR31_0_DIO26_AW > for bool { # [inline (always)]
fn from (variant : DOECLR31_0_DIO26_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOECLR31_0_DIO26` writer - Writing 1 to this bit clears the DIO26 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOECLR31_0_DIO26_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOECLR31_0_DIO26_AW > ; impl < 'a , REG , const O : u8 > DOECLR31_0_DIO26_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeclr31_0_dio26_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO26_AW :: DOECLR31_0_DIO26_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doeclr31_0_dio26_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO26_AW :: DOECLR31_0_DIO26_CLR) } } # [doc = "Writing 1 to this bit clears the DIO27 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOECLR31_0_DIO27_AW { # [doc = "0: NO_EFFECT"]
DOECLR31_0_DIO27_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOECLR31_0_DIO27_CLR = 1 , } impl From < DOECLR31_0_DIO27_AW > for bool { # [inline (always)]
fn from (variant : DOECLR31_0_DIO27_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOECLR31_0_DIO27` writer - Writing 1 to this bit clears the DIO27 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOECLR31_0_DIO27_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOECLR31_0_DIO27_AW > ; impl < 'a , REG , const O : u8 > DOECLR31_0_DIO27_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeclr31_0_dio27_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO27_AW :: DOECLR31_0_DIO27_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doeclr31_0_dio27_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO27_AW :: DOECLR31_0_DIO27_CLR) } } # [doc = "Writing 1 to this bit clears the DIO28 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOECLR31_0_DIO28_AW { # [doc = "0: NO_EFFECT"]
DOECLR31_0_DIO28_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOECLR31_0_DIO28_CLR = 1 , } impl From < DOECLR31_0_DIO28_AW > for bool { # [inline (always)]
fn from (variant : DOECLR31_0_DIO28_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOECLR31_0_DIO28` writer - Writing 1 to this bit clears the DIO28 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOECLR31_0_DIO28_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOECLR31_0_DIO28_AW > ; impl < 'a , REG , const O : u8 > DOECLR31_0_DIO28_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeclr31_0_dio28_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO28_AW :: DOECLR31_0_DIO28_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doeclr31_0_dio28_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO28_AW :: DOECLR31_0_DIO28_CLR) } } # [doc = "Writing 1 to this bit clears the DIO29 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOECLR31_0_DIO29_AW { # [doc = "0: NO_EFFECT"]
DOECLR31_0_DIO29_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOECLR31_0_DIO29_CLR = 1 , } impl From < DOECLR31_0_DIO29_AW > for bool { # [inline (always)]
fn from (variant : DOECLR31_0_DIO29_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOECLR31_0_DIO29` writer - Writing 1 to this bit clears the DIO29 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOECLR31_0_DIO29_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOECLR31_0_DIO29_AW > ; impl < 'a , REG , const O : u8 > DOECLR31_0_DIO29_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeclr31_0_dio29_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO29_AW :: DOECLR31_0_DIO29_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doeclr31_0_dio29_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO29_AW :: DOECLR31_0_DIO29_CLR) } } # [doc = "Writing 1 to this bit clears the DIO30 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOECLR31_0_DIO30_AW { # [doc = "0: NO_EFFECT"]
DOECLR31_0_DIO30_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOECLR31_0_DIO30_CLR = 1 , } impl From < DOECLR31_0_DIO30_AW > for bool { # [inline (always)]
fn from (variant : DOECLR31_0_DIO30_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOECLR31_0_DIO30` writer - Writing 1 to this bit clears the DIO30 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOECLR31_0_DIO30_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOECLR31_0_DIO30_AW > ; impl < 'a , REG , const O : u8 > DOECLR31_0_DIO30_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeclr31_0_dio30_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO30_AW :: DOECLR31_0_DIO30_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doeclr31_0_dio30_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO30_AW :: DOECLR31_0_DIO30_CLR) } } # [doc = "Writing 1 to this bit clears the DIO31 bit in the DOE31_0 register. Writing 0 has no effect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DOECLR31_0_DIO31_AW { # [doc = "0: NO_EFFECT"]
DOECLR31_0_DIO31_NO_EFFECT = 0 , # [doc = "1: CLR"]
DOECLR31_0_DIO31_CLR = 1 , } impl From < DOECLR31_0_DIO31_AW > for bool { # [inline (always)]
fn from (variant : DOECLR31_0_DIO31_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `DOECLR31_0_DIO31` writer - Writing 1 to this bit clears the DIO31 bit in the DOE31_0 register. Writing 0 has no effect."]
pub type DOECLR31_0_DIO31_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DOECLR31_0_DIO31_AW > ; impl < 'a , REG , const O : u8 > DOECLR31_0_DIO31_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn doeclr31_0_dio31_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO31_AW :: DOECLR31_0_DIO31_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn doeclr31_0_dio31_clr (self) -> & 'a mut crate :: W < REG > { self . variant (DOECLR31_0_DIO31_AW :: DOECLR31_0_DIO31_CLR) } } impl W { # [doc = "Bit 0 - Writing 1 to this bit clears the DIO0 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeclr31_0_dio0 (& mut self) -> DOECLR31_0_DIO0_W < DOECLR31_0_SPEC , 0 > { DOECLR31_0_DIO0_W :: new (self) } # [doc = "Bit 1 - Writing 1 to this bit clears the DIO1 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeclr31_0_dio1 (& mut self) -> DOECLR31_0_DIO1_W < DOECLR31_0_SPEC , 1 > { DOECLR31_0_DIO1_W :: new (self) } # [doc = "Bit 2 - Writing 1 to this bit clears the DIO2 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeclr31_0_dio2 (& mut self) -> DOECLR31_0_DIO2_W < DOECLR31_0_SPEC , 2 > { DOECLR31_0_DIO2_W :: new (self) } # [doc = "Bit 3 - Writing 1 to this bit clears the DIO3 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeclr31_0_dio3 (& mut self) -> DOECLR31_0_DIO3_W < DOECLR31_0_SPEC , 3 > { DOECLR31_0_DIO3_W :: new (self) } # [doc = "Bit 4 - Writing 1 to this bit clears the DIO4 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeclr31_0_dio4 (& mut self) -> DOECLR31_0_DIO4_W < DOECLR31_0_SPEC , 4 > { DOECLR31_0_DIO4_W :: new (self) } # [doc = "Bit 5 - Writing 1 to this bit clears the DIO5 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeclr31_0_dio5 (& mut self) -> DOECLR31_0_DIO5_W < DOECLR31_0_SPEC , 5 > { DOECLR31_0_DIO5_W :: new (self) } # [doc = "Bit 6 - Writing 1 to this bit clears the DIO6 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeclr31_0_dio6 (& mut self) -> DOECLR31_0_DIO6_W < DOECLR31_0_SPEC , 6 > { DOECLR31_0_DIO6_W :: new (self) } # [doc = "Bit 7 - Writing 1 to this bit clears the DIO7 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeclr31_0_dio7 (& mut self) -> DOECLR31_0_DIO7_W < DOECLR31_0_SPEC , 7 > { DOECLR31_0_DIO7_W :: new (self) } # [doc = "Bit 8 - Writing 1 to this bit clears the DIO8 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeclr31_0_dio8 (& mut self) -> DOECLR31_0_DIO8_W < DOECLR31_0_SPEC , 8 > { DOECLR31_0_DIO8_W :: new (self) } # [doc = "Bit 9 - Writing 1 to this bit clears the DIO9 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeclr31_0_dio9 (& mut self) -> DOECLR31_0_DIO9_W < DOECLR31_0_SPEC , 9 > { DOECLR31_0_DIO9_W :: new (self) } # [doc = "Bit 10 - Writing 1 to this bit clears the DIO10 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeclr31_0_dio10 (& mut self) -> DOECLR31_0_DIO10_W < DOECLR31_0_SPEC , 10 > { DOECLR31_0_DIO10_W :: new (self) } # [doc = "Bit 11 - Writing 1 to this bit clears the DIO11 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeclr31_0_dio11 (& mut self) -> DOECLR31_0_DIO11_W < DOECLR31_0_SPEC , 11 > { DOECLR31_0_DIO11_W :: new (self) } # [doc = "Bit 12 - Writing 1 to this bit clears the DIO12 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeclr31_0_dio12 (& mut self) -> DOECLR31_0_DIO12_W < DOECLR31_0_SPEC , 12 > { DOECLR31_0_DIO12_W :: new (self) } # [doc = "Bit 13 - Writing 1 to this bit clears the DIO13 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeclr31_0_dio13 (& mut self) -> DOECLR31_0_DIO13_W < DOECLR31_0_SPEC , 13 > { DOECLR31_0_DIO13_W :: new (self) } # [doc = "Bit 14 - Writing 1 to this bit clears the DIO14 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeclr31_0_dio14 (& mut self) -> DOECLR31_0_DIO14_W < DOECLR31_0_SPEC , 14 > { DOECLR31_0_DIO14_W :: new (self) } # [doc = "Bit 15 - Writing 1 to this bit clears the DIO15 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeclr31_0_dio15 (& mut self) -> DOECLR31_0_DIO15_W < DOECLR31_0_SPEC , 15 > { DOECLR31_0_DIO15_W :: new (self) } # [doc = "Bit 16 - Writing 1 to this bit clears the DIO16 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeclr31_0_dio16 (& mut self) -> DOECLR31_0_DIO16_W < DOECLR31_0_SPEC , 16 > { DOECLR31_0_DIO16_W :: new (self) } # [doc = "Bit 17 - Writing 1 to this bit clears the DIO17 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeclr31_0_dio17 (& mut self) -> DOECLR31_0_DIO17_W < DOECLR31_0_SPEC , 17 > { DOECLR31_0_DIO17_W :: new (self) } # [doc = "Bit 18 - Writing 1 to this bit clears the DIO18 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeclr31_0_dio18 (& mut self) -> DOECLR31_0_DIO18_W < DOECLR31_0_SPEC , 18 > { DOECLR31_0_DIO18_W :: new (self) } # [doc = "Bit 19 - Writing 1 to this bit clears the DIO19 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeclr31_0_dio19 (& mut self) -> DOECLR31_0_DIO19_W < DOECLR31_0_SPEC , 19 > { DOECLR31_0_DIO19_W :: new (self) } # [doc = "Bit 20 - Writing 1 to this bit clears the DIO20 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeclr31_0_dio20 (& mut self) -> DOECLR31_0_DIO20_W < DOECLR31_0_SPEC , 20 > { DOECLR31_0_DIO20_W :: new (self) } # [doc = "Bit 21 - Writing 1 to this bit clears the DIO21 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeclr31_0_dio21 (& mut self) -> DOECLR31_0_DIO21_W < DOECLR31_0_SPEC , 21 > { DOECLR31_0_DIO21_W :: new (self) } # [doc = "Bit 22 - Writing 1 to this bit clears the DIO22 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeclr31_0_dio22 (& mut self) -> DOECLR31_0_DIO22_W < DOECLR31_0_SPEC , 22 > { DOECLR31_0_DIO22_W :: new (self) } # [doc = "Bit 23 - Writing 1 to this bit clears the DIO23 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeclr31_0_dio23 (& mut self) -> DOECLR31_0_DIO23_W < DOECLR31_0_SPEC , 23 > { DOECLR31_0_DIO23_W :: new (self) } # [doc = "Bit 24 - Writing 1 to this bit clears the DIO24 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeclr31_0_dio24 (& mut self) -> DOECLR31_0_DIO24_W < DOECLR31_0_SPEC , 24 > { DOECLR31_0_DIO24_W :: new (self) } # [doc = "Bit 25 - Writing 1 to this bit clears the DIO25 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeclr31_0_dio25 (& mut self) -> DOECLR31_0_DIO25_W < DOECLR31_0_SPEC , 25 > { DOECLR31_0_DIO25_W :: new (self) } # [doc = "Bit 26 - Writing 1 to this bit clears the DIO26 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeclr31_0_dio26 (& mut self) -> DOECLR31_0_DIO26_W < DOECLR31_0_SPEC , 26 > { DOECLR31_0_DIO26_W :: new (self) } # [doc = "Bit 27 - Writing 1 to this bit clears the DIO27 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeclr31_0_dio27 (& mut self) -> DOECLR31_0_DIO27_W < DOECLR31_0_SPEC , 27 > { DOECLR31_0_DIO27_W :: new (self) } # [doc = "Bit 28 - Writing 1 to this bit clears the DIO28 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeclr31_0_dio28 (& mut self) -> DOECLR31_0_DIO28_W < DOECLR31_0_SPEC , 28 > { DOECLR31_0_DIO28_W :: new (self) } # [doc = "Bit 29 - Writing 1 to this bit clears the DIO29 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeclr31_0_dio29 (& mut self) -> DOECLR31_0_DIO29_W < DOECLR31_0_SPEC , 29 > { DOECLR31_0_DIO29_W :: new (self) } # [doc = "Bit 30 - Writing 1 to this bit clears the DIO30 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeclr31_0_dio30 (& mut self) -> DOECLR31_0_DIO30_W < DOECLR31_0_SPEC , 30 > { DOECLR31_0_DIO30_W :: new (self) } # [doc = "Bit 31 - Writing 1 to this bit clears the DIO31 bit in the DOE31_0 register. Writing 0 has no effect."]
# [inline (always)]
# [must_use]
pub fn doeclr31_0_dio31 (& mut self) -> DOECLR31_0_DIO31_W < DOECLR31_0_SPEC , 31 > { DOECLR31_0_DIO31_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Data output enable clear 31 to 0\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`doeclr31_0::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DOECLR31_0_SPEC ; impl crate :: RegisterSpec for DOECLR31_0_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`doeclr31_0::W`](W) writer structure"]
impl crate :: Writable for DOECLR31_0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets DOECLR31_0 to value 0"]
impl crate :: Resettable for DOECLR31_0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DIN3_0 (r) register accessor: Data input 3 to 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`din3_0::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@din3_0`]
module"]
pub type DIN3_0 = crate :: Reg < din3_0 :: DIN3_0_SPEC > ; # [doc = "Data input 3 to 0"]
pub mod din3_0 { # [doc = "Register `DIN3_0` reader"]
pub type R = crate :: R < DIN3_0_SPEC > ; # [doc = "Field `DIN3_0_DIO0` reader - This bit reads the data input value of DIO0."]
pub type DIN3_0_DIO0_R = crate :: BitReader < DIN3_0_DIO0_A > ; # [doc = "This bit reads the data input value of DIO0.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN3_0_DIO0_A { # [doc = "0: ZERO"]
DIN3_0_DIO0_ZERO = 0 , # [doc = "1: ONE"]
DIN3_0_DIO0_ONE = 1 , } impl From < DIN3_0_DIO0_A > for bool { # [inline (always)]
fn from (variant : DIN3_0_DIO0_A) -> Self { variant as u8 != 0 } } impl DIN3_0_DIO0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN3_0_DIO0_A { match self . bits { false => DIN3_0_DIO0_A :: DIN3_0_DIO0_ZERO , true => DIN3_0_DIO0_A :: DIN3_0_DIO0_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din3_0_dio0_zero (& self) -> bool { * self == DIN3_0_DIO0_A :: DIN3_0_DIO0_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din3_0_dio0_one (& self) -> bool { * self == DIN3_0_DIO0_A :: DIN3_0_DIO0_ONE } } # [doc = "Field `DIN3_0_DIO1` reader - This bit reads the data input value of DIO1."]
pub type DIN3_0_DIO1_R = crate :: BitReader < DIN3_0_DIO1_A > ; # [doc = "This bit reads the data input value of DIO1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN3_0_DIO1_A { # [doc = "0: ZERO"]
DIN3_0_DIO1_ZERO = 0 , # [doc = "1: ONE"]
DIN3_0_DIO1_ONE = 1 , } impl From < DIN3_0_DIO1_A > for bool { # [inline (always)]
fn from (variant : DIN3_0_DIO1_A) -> Self { variant as u8 != 0 } } impl DIN3_0_DIO1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN3_0_DIO1_A { match self . bits { false => DIN3_0_DIO1_A :: DIN3_0_DIO1_ZERO , true => DIN3_0_DIO1_A :: DIN3_0_DIO1_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din3_0_dio1_zero (& self) -> bool { * self == DIN3_0_DIO1_A :: DIN3_0_DIO1_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din3_0_dio1_one (& self) -> bool { * self == DIN3_0_DIO1_A :: DIN3_0_DIO1_ONE } } # [doc = "Field `DIN3_0_DIO2` reader - This bit reads the data input value of DIO2."]
pub type DIN3_0_DIO2_R = crate :: BitReader < DIN3_0_DIO2_A > ; # [doc = "This bit reads the data input value of DIO2.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN3_0_DIO2_A { # [doc = "0: ZERO"]
DIN3_0_DIO2_ZERO = 0 , # [doc = "1: ONE"]
DIN3_0_DIO2_ONE = 1 , } impl From < DIN3_0_DIO2_A > for bool { # [inline (always)]
fn from (variant : DIN3_0_DIO2_A) -> Self { variant as u8 != 0 } } impl DIN3_0_DIO2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN3_0_DIO2_A { match self . bits { false => DIN3_0_DIO2_A :: DIN3_0_DIO2_ZERO , true => DIN3_0_DIO2_A :: DIN3_0_DIO2_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din3_0_dio2_zero (& self) -> bool { * self == DIN3_0_DIO2_A :: DIN3_0_DIO2_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din3_0_dio2_one (& self) -> bool { * self == DIN3_0_DIO2_A :: DIN3_0_DIO2_ONE } } # [doc = "Field `DIN3_0_DIO3` reader - This bit reads the data input value of DIO3."]
pub type DIN3_0_DIO3_R = crate :: BitReader < DIN3_0_DIO3_A > ; # [doc = "This bit reads the data input value of DIO3.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN3_0_DIO3_A { # [doc = "0: ZERO"]
DIN3_0_DIO3_ZERO = 0 , # [doc = "1: ONE"]
DIN3_0_DIO3_ONE = 1 , } impl From < DIN3_0_DIO3_A > for bool { # [inline (always)]
fn from (variant : DIN3_0_DIO3_A) -> Self { variant as u8 != 0 } } impl DIN3_0_DIO3_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN3_0_DIO3_A { match self . bits { false => DIN3_0_DIO3_A :: DIN3_0_DIO3_ZERO , true => DIN3_0_DIO3_A :: DIN3_0_DIO3_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din3_0_dio3_zero (& self) -> bool { * self == DIN3_0_DIO3_A :: DIN3_0_DIO3_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din3_0_dio3_one (& self) -> bool { * self == DIN3_0_DIO3_A :: DIN3_0_DIO3_ONE } } impl R { # [doc = "Bit 0 - This bit reads the data input value of DIO0."]
# [inline (always)]
pub fn din3_0_dio0 (& self) -> DIN3_0_DIO0_R { DIN3_0_DIO0_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 8 - This bit reads the data input value of DIO1."]
# [inline (always)]
pub fn din3_0_dio1 (& self) -> DIN3_0_DIO1_R { DIN3_0_DIO1_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 16 - This bit reads the data input value of DIO2."]
# [inline (always)]
pub fn din3_0_dio2 (& self) -> DIN3_0_DIO2_R { DIN3_0_DIO2_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 24 - This bit reads the data input value of DIO3."]
# [inline (always)]
pub fn din3_0_dio3 (& self) -> DIN3_0_DIO3_R { DIN3_0_DIO3_R :: new (((self . bits >> 24) & 1) != 0) } } # [doc = "Data input 3 to 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`din3_0::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DIN3_0_SPEC ; impl crate :: RegisterSpec for DIN3_0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`din3_0::R`](R) reader structure"]
impl crate :: Readable for DIN3_0_SPEC { } # [doc = "`reset()` method sets DIN3_0 to value 0"]
impl crate :: Resettable for DIN3_0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DIN7_4 (r) register accessor: Data input 7 to 4\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`din7_4::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@din7_4`]
module"]
pub type DIN7_4 = crate :: Reg < din7_4 :: DIN7_4_SPEC > ; # [doc = "Data input 7 to 4"]
pub mod din7_4 { # [doc = "Register `DIN7_4` reader"]
pub type R = crate :: R < DIN7_4_SPEC > ; # [doc = "Field `DIN7_4_DIO4` reader - This bit reads the data input value of DIO4."]
pub type DIN7_4_DIO4_R = crate :: BitReader < DIN7_4_DIO4_A > ; # [doc = "This bit reads the data input value of DIO4.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN7_4_DIO4_A { # [doc = "0: ZERO"]
DIN7_4_DIO4_ZERO = 0 , # [doc = "1: ONE"]
DIN7_4_DIO4_ONE = 1 , } impl From < DIN7_4_DIO4_A > for bool { # [inline (always)]
fn from (variant : DIN7_4_DIO4_A) -> Self { variant as u8 != 0 } } impl DIN7_4_DIO4_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN7_4_DIO4_A { match self . bits { false => DIN7_4_DIO4_A :: DIN7_4_DIO4_ZERO , true => DIN7_4_DIO4_A :: DIN7_4_DIO4_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din7_4_dio4_zero (& self) -> bool { * self == DIN7_4_DIO4_A :: DIN7_4_DIO4_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din7_4_dio4_one (& self) -> bool { * self == DIN7_4_DIO4_A :: DIN7_4_DIO4_ONE } } # [doc = "Field `DIN7_4_DIO5` reader - This bit reads the data input value of DIO5."]
pub type DIN7_4_DIO5_R = crate :: BitReader < DIN7_4_DIO5_A > ; # [doc = "This bit reads the data input value of DIO5.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN7_4_DIO5_A { # [doc = "0: ZERO"]
DIN7_4_DIO5_ZERO = 0 , # [doc = "1: ONE"]
DIN7_4_DIO5_ONE = 1 , } impl From < DIN7_4_DIO5_A > for bool { # [inline (always)]
fn from (variant : DIN7_4_DIO5_A) -> Self { variant as u8 != 0 } } impl DIN7_4_DIO5_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN7_4_DIO5_A { match self . bits { false => DIN7_4_DIO5_A :: DIN7_4_DIO5_ZERO , true => DIN7_4_DIO5_A :: DIN7_4_DIO5_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din7_4_dio5_zero (& self) -> bool { * self == DIN7_4_DIO5_A :: DIN7_4_DIO5_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din7_4_dio5_one (& self) -> bool { * self == DIN7_4_DIO5_A :: DIN7_4_DIO5_ONE } } # [doc = "Field `DIN7_4_DIO6` reader - This bit reads the data input value of DIO6."]
pub type DIN7_4_DIO6_R = crate :: BitReader < DIN7_4_DIO6_A > ; # [doc = "This bit reads the data input value of DIO6.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN7_4_DIO6_A { # [doc = "0: ZERO"]
DIN7_4_DIO6_ZERO = 0 , # [doc = "1: ONE"]
DIN7_4_DIO6_ONE = 1 , } impl From < DIN7_4_DIO6_A > for bool { # [inline (always)]
fn from (variant : DIN7_4_DIO6_A) -> Self { variant as u8 != 0 } } impl DIN7_4_DIO6_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN7_4_DIO6_A { match self . bits { false => DIN7_4_DIO6_A :: DIN7_4_DIO6_ZERO , true => DIN7_4_DIO6_A :: DIN7_4_DIO6_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din7_4_dio6_zero (& self) -> bool { * self == DIN7_4_DIO6_A :: DIN7_4_DIO6_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din7_4_dio6_one (& self) -> bool { * self == DIN7_4_DIO6_A :: DIN7_4_DIO6_ONE } } # [doc = "Field `DIN7_4_DIO7` reader - This bit reads the data input value of DIO7."]
pub type DIN7_4_DIO7_R = crate :: BitReader < DIN7_4_DIO7_A > ; # [doc = "This bit reads the data input value of DIO7.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN7_4_DIO7_A { # [doc = "0: ZERO"]
DIN7_4_DIO7_ZERO = 0 , # [doc = "1: ONE"]
DIN7_4_DIO7_ONE = 1 , } impl From < DIN7_4_DIO7_A > for bool { # [inline (always)]
fn from (variant : DIN7_4_DIO7_A) -> Self { variant as u8 != 0 } } impl DIN7_4_DIO7_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN7_4_DIO7_A { match self . bits { false => DIN7_4_DIO7_A :: DIN7_4_DIO7_ZERO , true => DIN7_4_DIO7_A :: DIN7_4_DIO7_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din7_4_dio7_zero (& self) -> bool { * self == DIN7_4_DIO7_A :: DIN7_4_DIO7_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din7_4_dio7_one (& self) -> bool { * self == DIN7_4_DIO7_A :: DIN7_4_DIO7_ONE } } impl R { # [doc = "Bit 0 - This bit reads the data input value of DIO4."]
# [inline (always)]
pub fn din7_4_dio4 (& self) -> DIN7_4_DIO4_R { DIN7_4_DIO4_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 8 - This bit reads the data input value of DIO5."]
# [inline (always)]
pub fn din7_4_dio5 (& self) -> DIN7_4_DIO5_R { DIN7_4_DIO5_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 16 - This bit reads the data input value of DIO6."]
# [inline (always)]
pub fn din7_4_dio6 (& self) -> DIN7_4_DIO6_R { DIN7_4_DIO6_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 24 - This bit reads the data input value of DIO7."]
# [inline (always)]
pub fn din7_4_dio7 (& self) -> DIN7_4_DIO7_R { DIN7_4_DIO7_R :: new (((self . bits >> 24) & 1) != 0) } } # [doc = "Data input 7 to 4\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`din7_4::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DIN7_4_SPEC ; impl crate :: RegisterSpec for DIN7_4_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`din7_4::R`](R) reader structure"]
impl crate :: Readable for DIN7_4_SPEC { } # [doc = "`reset()` method sets DIN7_4 to value 0"]
impl crate :: Resettable for DIN7_4_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DIN11_8 (r) register accessor: Data input 11 to 8\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`din11_8::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@din11_8`]
module"]
pub type DIN11_8 = crate :: Reg < din11_8 :: DIN11_8_SPEC > ; # [doc = "Data input 11 to 8"]
pub mod din11_8 { # [doc = "Register `DIN11_8` reader"]
pub type R = crate :: R < DIN11_8_SPEC > ; # [doc = "Field `DIN11_8_DIO8` reader - This bit reads the data input value of DIO8."]
pub type DIN11_8_DIO8_R = crate :: BitReader < DIN11_8_DIO8_A > ; # [doc = "This bit reads the data input value of DIO8.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN11_8_DIO8_A { # [doc = "0: ZERO"]
DIN11_8_DIO8_ZERO = 0 , # [doc = "1: ONE"]
DIN11_8_DIO8_ONE = 1 , } impl From < DIN11_8_DIO8_A > for bool { # [inline (always)]
fn from (variant : DIN11_8_DIO8_A) -> Self { variant as u8 != 0 } } impl DIN11_8_DIO8_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN11_8_DIO8_A { match self . bits { false => DIN11_8_DIO8_A :: DIN11_8_DIO8_ZERO , true => DIN11_8_DIO8_A :: DIN11_8_DIO8_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din11_8_dio8_zero (& self) -> bool { * self == DIN11_8_DIO8_A :: DIN11_8_DIO8_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din11_8_dio8_one (& self) -> bool { * self == DIN11_8_DIO8_A :: DIN11_8_DIO8_ONE } } # [doc = "Field `DIN11_8_DIO9` reader - This bit reads the data input value of DIO9."]
pub type DIN11_8_DIO9_R = crate :: BitReader < DIN11_8_DIO9_A > ; # [doc = "This bit reads the data input value of DIO9.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN11_8_DIO9_A { # [doc = "0: ZERO"]
DIN11_8_DIO9_ZERO = 0 , # [doc = "1: ONE"]
DIN11_8_DIO9_ONE = 1 , } impl From < DIN11_8_DIO9_A > for bool { # [inline (always)]
fn from (variant : DIN11_8_DIO9_A) -> Self { variant as u8 != 0 } } impl DIN11_8_DIO9_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN11_8_DIO9_A { match self . bits { false => DIN11_8_DIO9_A :: DIN11_8_DIO9_ZERO , true => DIN11_8_DIO9_A :: DIN11_8_DIO9_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din11_8_dio9_zero (& self) -> bool { * self == DIN11_8_DIO9_A :: DIN11_8_DIO9_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din11_8_dio9_one (& self) -> bool { * self == DIN11_8_DIO9_A :: DIN11_8_DIO9_ONE } } # [doc = "Field `DIN11_8_DIO10` reader - This bit reads the data input value of DIO10."]
pub type DIN11_8_DIO10_R = crate :: BitReader < DIN11_8_DIO10_A > ; # [doc = "This bit reads the data input value of DIO10.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN11_8_DIO10_A { # [doc = "0: ZERO"]
DIN11_8_DIO10_ZERO = 0 , # [doc = "1: ONE"]
DIN11_8_DIO10_ONE = 1 , } impl From < DIN11_8_DIO10_A > for bool { # [inline (always)]
fn from (variant : DIN11_8_DIO10_A) -> Self { variant as u8 != 0 } } impl DIN11_8_DIO10_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN11_8_DIO10_A { match self . bits { false => DIN11_8_DIO10_A :: DIN11_8_DIO10_ZERO , true => DIN11_8_DIO10_A :: DIN11_8_DIO10_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din11_8_dio10_zero (& self) -> bool { * self == DIN11_8_DIO10_A :: DIN11_8_DIO10_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din11_8_dio10_one (& self) -> bool { * self == DIN11_8_DIO10_A :: DIN11_8_DIO10_ONE } } # [doc = "Field `DIN11_8_DIO11` reader - This bit reads the data input value of DIO11."]
pub type DIN11_8_DIO11_R = crate :: BitReader < DIN11_8_DIO11_A > ; # [doc = "This bit reads the data input value of DIO11.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN11_8_DIO11_A { # [doc = "0: ZERO"]
DIN11_8_DIO11_ZERO = 0 , # [doc = "1: ONE"]
DIN11_8_DIO11_ONE = 1 , } impl From < DIN11_8_DIO11_A > for bool { # [inline (always)]
fn from (variant : DIN11_8_DIO11_A) -> Self { variant as u8 != 0 } } impl DIN11_8_DIO11_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN11_8_DIO11_A { match self . bits { false => DIN11_8_DIO11_A :: DIN11_8_DIO11_ZERO , true => DIN11_8_DIO11_A :: DIN11_8_DIO11_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din11_8_dio11_zero (& self) -> bool { * self == DIN11_8_DIO11_A :: DIN11_8_DIO11_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din11_8_dio11_one (& self) -> bool { * self == DIN11_8_DIO11_A :: DIN11_8_DIO11_ONE } } impl R { # [doc = "Bit 0 - This bit reads the data input value of DIO8."]
# [inline (always)]
pub fn din11_8_dio8 (& self) -> DIN11_8_DIO8_R { DIN11_8_DIO8_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 8 - This bit reads the data input value of DIO9."]
# [inline (always)]
pub fn din11_8_dio9 (& self) -> DIN11_8_DIO9_R { DIN11_8_DIO9_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 16 - This bit reads the data input value of DIO10."]
# [inline (always)]
pub fn din11_8_dio10 (& self) -> DIN11_8_DIO10_R { DIN11_8_DIO10_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 24 - This bit reads the data input value of DIO11."]
# [inline (always)]
pub fn din11_8_dio11 (& self) -> DIN11_8_DIO11_R { DIN11_8_DIO11_R :: new (((self . bits >> 24) & 1) != 0) } } # [doc = "Data input 11 to 8\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`din11_8::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DIN11_8_SPEC ; impl crate :: RegisterSpec for DIN11_8_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`din11_8::R`](R) reader structure"]
impl crate :: Readable for DIN11_8_SPEC { } # [doc = "`reset()` method sets DIN11_8 to value 0"]
impl crate :: Resettable for DIN11_8_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DIN15_12 (r) register accessor: Data input 15 to 12\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`din15_12::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@din15_12`]
module"]
pub type DIN15_12 = crate :: Reg < din15_12 :: DIN15_12_SPEC > ; # [doc = "Data input 15 to 12"]
pub mod din15_12 { # [doc = "Register `DIN15_12` reader"]
pub type R = crate :: R < DIN15_12_SPEC > ; # [doc = "Field `DIN15_12_DIO12` reader - This bit reads the data input value of DIO12."]
pub type DIN15_12_DIO12_R = crate :: BitReader < DIN15_12_DIO12_A > ; # [doc = "This bit reads the data input value of DIO12.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN15_12_DIO12_A { # [doc = "0: ZERO"]
DIN15_12_DIO12_ZERO = 0 , # [doc = "1: ONE"]
DIN15_12_DIO12_ONE = 1 , } impl From < DIN15_12_DIO12_A > for bool { # [inline (always)]
fn from (variant : DIN15_12_DIO12_A) -> Self { variant as u8 != 0 } } impl DIN15_12_DIO12_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN15_12_DIO12_A { match self . bits { false => DIN15_12_DIO12_A :: DIN15_12_DIO12_ZERO , true => DIN15_12_DIO12_A :: DIN15_12_DIO12_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din15_12_dio12_zero (& self) -> bool { * self == DIN15_12_DIO12_A :: DIN15_12_DIO12_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din15_12_dio12_one (& self) -> bool { * self == DIN15_12_DIO12_A :: DIN15_12_DIO12_ONE } } # [doc = "Field `DIN15_12_DIO13` reader - This bit reads the data input value of DIO13."]
pub type DIN15_12_DIO13_R = crate :: BitReader < DIN15_12_DIO13_A > ; # [doc = "This bit reads the data input value of DIO13.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN15_12_DIO13_A { # [doc = "0: ZERO"]
DIN15_12_DIO13_ZERO = 0 , # [doc = "1: ONE"]
DIN15_12_DIO13_ONE = 1 , } impl From < DIN15_12_DIO13_A > for bool { # [inline (always)]
fn from (variant : DIN15_12_DIO13_A) -> Self { variant as u8 != 0 } } impl DIN15_12_DIO13_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN15_12_DIO13_A { match self . bits { false => DIN15_12_DIO13_A :: DIN15_12_DIO13_ZERO , true => DIN15_12_DIO13_A :: DIN15_12_DIO13_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din15_12_dio13_zero (& self) -> bool { * self == DIN15_12_DIO13_A :: DIN15_12_DIO13_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din15_12_dio13_one (& self) -> bool { * self == DIN15_12_DIO13_A :: DIN15_12_DIO13_ONE } } # [doc = "Field `DIN15_12_DIO14` reader - This bit reads the data input value of DIO14."]
pub type DIN15_12_DIO14_R = crate :: BitReader < DIN15_12_DIO14_A > ; # [doc = "This bit reads the data input value of DIO14.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN15_12_DIO14_A { # [doc = "0: ZERO"]
DIN15_12_DIO14_ZERO = 0 , # [doc = "1: ONE"]
DIN15_12_DIO14_ONE = 1 , } impl From < DIN15_12_DIO14_A > for bool { # [inline (always)]
fn from (variant : DIN15_12_DIO14_A) -> Self { variant as u8 != 0 } } impl DIN15_12_DIO14_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN15_12_DIO14_A { match self . bits { false => DIN15_12_DIO14_A :: DIN15_12_DIO14_ZERO , true => DIN15_12_DIO14_A :: DIN15_12_DIO14_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din15_12_dio14_zero (& self) -> bool { * self == DIN15_12_DIO14_A :: DIN15_12_DIO14_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din15_12_dio14_one (& self) -> bool { * self == DIN15_12_DIO14_A :: DIN15_12_DIO14_ONE } } # [doc = "Field `DIN15_12_DIO15` reader - This bit reads the data input value of DIO15."]
pub type DIN15_12_DIO15_R = crate :: BitReader < DIN15_12_DIO15_A > ; # [doc = "This bit reads the data input value of DIO15.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN15_12_DIO15_A { # [doc = "0: ZERO"]
DIN15_12_DIO15_ZERO = 0 , # [doc = "1: ONE"]
DIN15_12_DIO15_ONE = 1 , } impl From < DIN15_12_DIO15_A > for bool { # [inline (always)]
fn from (variant : DIN15_12_DIO15_A) -> Self { variant as u8 != 0 } } impl DIN15_12_DIO15_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN15_12_DIO15_A { match self . bits { false => DIN15_12_DIO15_A :: DIN15_12_DIO15_ZERO , true => DIN15_12_DIO15_A :: DIN15_12_DIO15_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din15_12_dio15_zero (& self) -> bool { * self == DIN15_12_DIO15_A :: DIN15_12_DIO15_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din15_12_dio15_one (& self) -> bool { * self == DIN15_12_DIO15_A :: DIN15_12_DIO15_ONE } } impl R { # [doc = "Bit 0 - This bit reads the data input value of DIO12."]
# [inline (always)]
pub fn din15_12_dio12 (& self) -> DIN15_12_DIO12_R { DIN15_12_DIO12_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 8 - This bit reads the data input value of DIO13."]
# [inline (always)]
pub fn din15_12_dio13 (& self) -> DIN15_12_DIO13_R { DIN15_12_DIO13_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 16 - This bit reads the data input value of DIO14."]
# [inline (always)]
pub fn din15_12_dio14 (& self) -> DIN15_12_DIO14_R { DIN15_12_DIO14_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 24 - This bit reads the data input value of DIO15."]
# [inline (always)]
pub fn din15_12_dio15 (& self) -> DIN15_12_DIO15_R { DIN15_12_DIO15_R :: new (((self . bits >> 24) & 1) != 0) } } # [doc = "Data input 15 to 12\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`din15_12::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DIN15_12_SPEC ; impl crate :: RegisterSpec for DIN15_12_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`din15_12::R`](R) reader structure"]
impl crate :: Readable for DIN15_12_SPEC { } # [doc = "`reset()` method sets DIN15_12 to value 0"]
impl crate :: Resettable for DIN15_12_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DIN19_16 (r) register accessor: Data input 19 to 16\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`din19_16::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@din19_16`]
module"]
pub type DIN19_16 = crate :: Reg < din19_16 :: DIN19_16_SPEC > ; # [doc = "Data input 19 to 16"]
pub mod din19_16 { # [doc = "Register `DIN19_16` reader"]
pub type R = crate :: R < DIN19_16_SPEC > ; # [doc = "Field `DIN19_16_DIO16` reader - This bit reads the data input value of DIO16."]
pub type DIN19_16_DIO16_R = crate :: BitReader < DIN19_16_DIO16_A > ; # [doc = "This bit reads the data input value of DIO16.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN19_16_DIO16_A { # [doc = "0: ZERO"]
DIN19_16_DIO16_ZERO = 0 , # [doc = "1: ONE"]
DIN19_16_DIO16_ONE = 1 , } impl From < DIN19_16_DIO16_A > for bool { # [inline (always)]
fn from (variant : DIN19_16_DIO16_A) -> Self { variant as u8 != 0 } } impl DIN19_16_DIO16_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN19_16_DIO16_A { match self . bits { false => DIN19_16_DIO16_A :: DIN19_16_DIO16_ZERO , true => DIN19_16_DIO16_A :: DIN19_16_DIO16_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din19_16_dio16_zero (& self) -> bool { * self == DIN19_16_DIO16_A :: DIN19_16_DIO16_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din19_16_dio16_one (& self) -> bool { * self == DIN19_16_DIO16_A :: DIN19_16_DIO16_ONE } } # [doc = "Field `DIN19_16_DIO17` reader - This bit reads the data input value of DIO17."]
pub type DIN19_16_DIO17_R = crate :: BitReader < DIN19_16_DIO17_A > ; # [doc = "This bit reads the data input value of DIO17.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN19_16_DIO17_A { # [doc = "0: ZERO"]
DIN19_16_DIO17_ZERO = 0 , # [doc = "1: ONE"]
DIN19_16_DIO17_ONE = 1 , } impl From < DIN19_16_DIO17_A > for bool { # [inline (always)]
fn from (variant : DIN19_16_DIO17_A) -> Self { variant as u8 != 0 } } impl DIN19_16_DIO17_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN19_16_DIO17_A { match self . bits { false => DIN19_16_DIO17_A :: DIN19_16_DIO17_ZERO , true => DIN19_16_DIO17_A :: DIN19_16_DIO17_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din19_16_dio17_zero (& self) -> bool { * self == DIN19_16_DIO17_A :: DIN19_16_DIO17_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din19_16_dio17_one (& self) -> bool { * self == DIN19_16_DIO17_A :: DIN19_16_DIO17_ONE } } # [doc = "Field `DIN19_16_DIO18` reader - This bit reads the data input value of DIO18."]
pub type DIN19_16_DIO18_R = crate :: BitReader < DIN19_16_DIO18_A > ; # [doc = "This bit reads the data input value of DIO18.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN19_16_DIO18_A { # [doc = "0: ZERO"]
DIN19_16_DIO18_ZERO = 0 , # [doc = "1: ONE"]
DIN19_16_DIO18_ONE = 1 , } impl From < DIN19_16_DIO18_A > for bool { # [inline (always)]
fn from (variant : DIN19_16_DIO18_A) -> Self { variant as u8 != 0 } } impl DIN19_16_DIO18_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN19_16_DIO18_A { match self . bits { false => DIN19_16_DIO18_A :: DIN19_16_DIO18_ZERO , true => DIN19_16_DIO18_A :: DIN19_16_DIO18_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din19_16_dio18_zero (& self) -> bool { * self == DIN19_16_DIO18_A :: DIN19_16_DIO18_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din19_16_dio18_one (& self) -> bool { * self == DIN19_16_DIO18_A :: DIN19_16_DIO18_ONE } } # [doc = "Field `DIN19_16_DIO19` reader - This bit reads the data input value of DIO19."]
pub type DIN19_16_DIO19_R = crate :: BitReader < DIN19_16_DIO19_A > ; # [doc = "This bit reads the data input value of DIO19.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN19_16_DIO19_A { # [doc = "0: ZERO"]
DIN19_16_DIO19_ZERO = 0 , # [doc = "1: ONE"]
DIN19_16_DIO19_ONE = 1 , } impl From < DIN19_16_DIO19_A > for bool { # [inline (always)]
fn from (variant : DIN19_16_DIO19_A) -> Self { variant as u8 != 0 } } impl DIN19_16_DIO19_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN19_16_DIO19_A { match self . bits { false => DIN19_16_DIO19_A :: DIN19_16_DIO19_ZERO , true => DIN19_16_DIO19_A :: DIN19_16_DIO19_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din19_16_dio19_zero (& self) -> bool { * self == DIN19_16_DIO19_A :: DIN19_16_DIO19_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din19_16_dio19_one (& self) -> bool { * self == DIN19_16_DIO19_A :: DIN19_16_DIO19_ONE } } impl R { # [doc = "Bit 0 - This bit reads the data input value of DIO16."]
# [inline (always)]
pub fn din19_16_dio16 (& self) -> DIN19_16_DIO16_R { DIN19_16_DIO16_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 8 - This bit reads the data input value of DIO17."]
# [inline (always)]
pub fn din19_16_dio17 (& self) -> DIN19_16_DIO17_R { DIN19_16_DIO17_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 16 - This bit reads the data input value of DIO18."]
# [inline (always)]
pub fn din19_16_dio18 (& self) -> DIN19_16_DIO18_R { DIN19_16_DIO18_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 24 - This bit reads the data input value of DIO19."]
# [inline (always)]
pub fn din19_16_dio19 (& self) -> DIN19_16_DIO19_R { DIN19_16_DIO19_R :: new (((self . bits >> 24) & 1) != 0) } } # [doc = "Data input 19 to 16\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`din19_16::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DIN19_16_SPEC ; impl crate :: RegisterSpec for DIN19_16_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`din19_16::R`](R) reader structure"]
impl crate :: Readable for DIN19_16_SPEC { } # [doc = "`reset()` method sets DIN19_16 to value 0"]
impl crate :: Resettable for DIN19_16_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DIN23_20 (r) register accessor: Data input 23 to 20\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`din23_20::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@din23_20`]
module"]
pub type DIN23_20 = crate :: Reg < din23_20 :: DIN23_20_SPEC > ; # [doc = "Data input 23 to 20"]
pub mod din23_20 { # [doc = "Register `DIN23_20` reader"]
pub type R = crate :: R < DIN23_20_SPEC > ; # [doc = "Field `DIN23_20_DIO20` reader - This bit reads the data input value of DIO20."]
pub type DIN23_20_DIO20_R = crate :: BitReader < DIN23_20_DIO20_A > ; # [doc = "This bit reads the data input value of DIO20.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN23_20_DIO20_A { # [doc = "0: ZERO"]
DIN23_20_DIO20_ZERO = 0 , # [doc = "1: ONE"]
DIN23_20_DIO20_ONE = 1 , } impl From < DIN23_20_DIO20_A > for bool { # [inline (always)]
fn from (variant : DIN23_20_DIO20_A) -> Self { variant as u8 != 0 } } impl DIN23_20_DIO20_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN23_20_DIO20_A { match self . bits { false => DIN23_20_DIO20_A :: DIN23_20_DIO20_ZERO , true => DIN23_20_DIO20_A :: DIN23_20_DIO20_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din23_20_dio20_zero (& self) -> bool { * self == DIN23_20_DIO20_A :: DIN23_20_DIO20_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din23_20_dio20_one (& self) -> bool { * self == DIN23_20_DIO20_A :: DIN23_20_DIO20_ONE } } # [doc = "Field `DIN23_20_DIO21` reader - This bit reads the data input value of DIO21."]
pub type DIN23_20_DIO21_R = crate :: BitReader < DIN23_20_DIO21_A > ; # [doc = "This bit reads the data input value of DIO21.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN23_20_DIO21_A { # [doc = "0: ZERO"]
DIN23_20_DIO21_ZERO = 0 , # [doc = "1: ONE"]
DIN23_20_DIO21_ONE = 1 , } impl From < DIN23_20_DIO21_A > for bool { # [inline (always)]
fn from (variant : DIN23_20_DIO21_A) -> Self { variant as u8 != 0 } } impl DIN23_20_DIO21_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN23_20_DIO21_A { match self . bits { false => DIN23_20_DIO21_A :: DIN23_20_DIO21_ZERO , true => DIN23_20_DIO21_A :: DIN23_20_DIO21_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din23_20_dio21_zero (& self) -> bool { * self == DIN23_20_DIO21_A :: DIN23_20_DIO21_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din23_20_dio21_one (& self) -> bool { * self == DIN23_20_DIO21_A :: DIN23_20_DIO21_ONE } } # [doc = "Field `DIN23_20_DIO22` reader - This bit reads the data input value of DIO22."]
pub type DIN23_20_DIO22_R = crate :: BitReader < DIN23_20_DIO22_A > ; # [doc = "This bit reads the data input value of DIO22.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN23_20_DIO22_A { # [doc = "0: ZERO"]
DIN23_20_DIO22_ZERO = 0 , # [doc = "1: ONE"]
DIN23_20_DIO22_ONE = 1 , } impl From < DIN23_20_DIO22_A > for bool { # [inline (always)]
fn from (variant : DIN23_20_DIO22_A) -> Self { variant as u8 != 0 } } impl DIN23_20_DIO22_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN23_20_DIO22_A { match self . bits { false => DIN23_20_DIO22_A :: DIN23_20_DIO22_ZERO , true => DIN23_20_DIO22_A :: DIN23_20_DIO22_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din23_20_dio22_zero (& self) -> bool { * self == DIN23_20_DIO22_A :: DIN23_20_DIO22_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din23_20_dio22_one (& self) -> bool { * self == DIN23_20_DIO22_A :: DIN23_20_DIO22_ONE } } # [doc = "Field `DIN23_20_DIO23` reader - This bit reads the data input value of DIO23."]
pub type DIN23_20_DIO23_R = crate :: BitReader < DIN23_20_DIO23_A > ; # [doc = "This bit reads the data input value of DIO23.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN23_20_DIO23_A { # [doc = "0: ZERO"]
DIN23_20_DIO23_ZERO = 0 , # [doc = "1: ONE"]
DIN23_20_DIO23_ONE = 1 , } impl From < DIN23_20_DIO23_A > for bool { # [inline (always)]
fn from (variant : DIN23_20_DIO23_A) -> Self { variant as u8 != 0 } } impl DIN23_20_DIO23_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN23_20_DIO23_A { match self . bits { false => DIN23_20_DIO23_A :: DIN23_20_DIO23_ZERO , true => DIN23_20_DIO23_A :: DIN23_20_DIO23_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din23_20_dio23_zero (& self) -> bool { * self == DIN23_20_DIO23_A :: DIN23_20_DIO23_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din23_20_dio23_one (& self) -> bool { * self == DIN23_20_DIO23_A :: DIN23_20_DIO23_ONE } } impl R { # [doc = "Bit 0 - This bit reads the data input value of DIO20."]
# [inline (always)]
pub fn din23_20_dio20 (& self) -> DIN23_20_DIO20_R { DIN23_20_DIO20_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 8 - This bit reads the data input value of DIO21."]
# [inline (always)]
pub fn din23_20_dio21 (& self) -> DIN23_20_DIO21_R { DIN23_20_DIO21_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 16 - This bit reads the data input value of DIO22."]
# [inline (always)]
pub fn din23_20_dio22 (& self) -> DIN23_20_DIO22_R { DIN23_20_DIO22_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 24 - This bit reads the data input value of DIO23."]
# [inline (always)]
pub fn din23_20_dio23 (& self) -> DIN23_20_DIO23_R { DIN23_20_DIO23_R :: new (((self . bits >> 24) & 1) != 0) } } # [doc = "Data input 23 to 20\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`din23_20::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DIN23_20_SPEC ; impl crate :: RegisterSpec for DIN23_20_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`din23_20::R`](R) reader structure"]
impl crate :: Readable for DIN23_20_SPEC { } # [doc = "`reset()` method sets DIN23_20 to value 0"]
impl crate :: Resettable for DIN23_20_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DIN27_24 (r) register accessor: Data input 27 to 24\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`din27_24::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@din27_24`]
module"]
pub type DIN27_24 = crate :: Reg < din27_24 :: DIN27_24_SPEC > ; # [doc = "Data input 27 to 24"]
pub mod din27_24 { # [doc = "Register `DIN27_24` reader"]
pub type R = crate :: R < DIN27_24_SPEC > ; # [doc = "Field `DIN27_24_DIO24` reader - This bit reads the data input value of DIO24."]
pub type DIN27_24_DIO24_R = crate :: BitReader < DIN27_24_DIO24_A > ; # [doc = "This bit reads the data input value of DIO24.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN27_24_DIO24_A { # [doc = "0: ZERO"]
DIN27_24_DIO24_ZERO = 0 , # [doc = "1: ONE"]
DIN27_24_DIO24_ONE = 1 , } impl From < DIN27_24_DIO24_A > for bool { # [inline (always)]
fn from (variant : DIN27_24_DIO24_A) -> Self { variant as u8 != 0 } } impl DIN27_24_DIO24_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN27_24_DIO24_A { match self . bits { false => DIN27_24_DIO24_A :: DIN27_24_DIO24_ZERO , true => DIN27_24_DIO24_A :: DIN27_24_DIO24_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din27_24_dio24_zero (& self) -> bool { * self == DIN27_24_DIO24_A :: DIN27_24_DIO24_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din27_24_dio24_one (& self) -> bool { * self == DIN27_24_DIO24_A :: DIN27_24_DIO24_ONE } } # [doc = "Field `DIN27_24_DIO25` reader - This bit reads the data input value of DIO25."]
pub type DIN27_24_DIO25_R = crate :: BitReader < DIN27_24_DIO25_A > ; # [doc = "This bit reads the data input value of DIO25.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN27_24_DIO25_A { # [doc = "0: ZERO"]
DIN27_24_DIO25_ZERO = 0 , # [doc = "1: ONE"]
DIN27_24_DIO25_ONE = 1 , } impl From < DIN27_24_DIO25_A > for bool { # [inline (always)]
fn from (variant : DIN27_24_DIO25_A) -> Self { variant as u8 != 0 } } impl DIN27_24_DIO25_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN27_24_DIO25_A { match self . bits { false => DIN27_24_DIO25_A :: DIN27_24_DIO25_ZERO , true => DIN27_24_DIO25_A :: DIN27_24_DIO25_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din27_24_dio25_zero (& self) -> bool { * self == DIN27_24_DIO25_A :: DIN27_24_DIO25_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din27_24_dio25_one (& self) -> bool { * self == DIN27_24_DIO25_A :: DIN27_24_DIO25_ONE } } # [doc = "Field `DIN27_24_DIO26` reader - This bit reads the data input value of DIO26."]
pub type DIN27_24_DIO26_R = crate :: BitReader < DIN27_24_DIO26_A > ; # [doc = "This bit reads the data input value of DIO26.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN27_24_DIO26_A { # [doc = "0: ZERO"]
DIN27_24_DIO26_ZERO = 0 , # [doc = "1: ONE"]
DIN27_24_DIO26_ONE = 1 , } impl From < DIN27_24_DIO26_A > for bool { # [inline (always)]
fn from (variant : DIN27_24_DIO26_A) -> Self { variant as u8 != 0 } } impl DIN27_24_DIO26_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN27_24_DIO26_A { match self . bits { false => DIN27_24_DIO26_A :: DIN27_24_DIO26_ZERO , true => DIN27_24_DIO26_A :: DIN27_24_DIO26_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din27_24_dio26_zero (& self) -> bool { * self == DIN27_24_DIO26_A :: DIN27_24_DIO26_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din27_24_dio26_one (& self) -> bool { * self == DIN27_24_DIO26_A :: DIN27_24_DIO26_ONE } } # [doc = "Field `DIN27_24_DIO27` reader - This bit reads the data input value of DIO27."]
pub type DIN27_24_DIO27_R = crate :: BitReader < DIN27_24_DIO27_A > ; # [doc = "This bit reads the data input value of DIO27.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN27_24_DIO27_A { # [doc = "0: ZERO"]
DIN27_24_DIO27_ZERO = 0 , # [doc = "1: ONE"]
DIN27_24_DIO27_ONE = 1 , } impl From < DIN27_24_DIO27_A > for bool { # [inline (always)]
fn from (variant : DIN27_24_DIO27_A) -> Self { variant as u8 != 0 } } impl DIN27_24_DIO27_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN27_24_DIO27_A { match self . bits { false => DIN27_24_DIO27_A :: DIN27_24_DIO27_ZERO , true => DIN27_24_DIO27_A :: DIN27_24_DIO27_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din27_24_dio27_zero (& self) -> bool { * self == DIN27_24_DIO27_A :: DIN27_24_DIO27_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din27_24_dio27_one (& self) -> bool { * self == DIN27_24_DIO27_A :: DIN27_24_DIO27_ONE } } impl R { # [doc = "Bit 0 - This bit reads the data input value of DIO24."]
# [inline (always)]
pub fn din27_24_dio24 (& self) -> DIN27_24_DIO24_R { DIN27_24_DIO24_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 8 - This bit reads the data input value of DIO25."]
# [inline (always)]
pub fn din27_24_dio25 (& self) -> DIN27_24_DIO25_R { DIN27_24_DIO25_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 16 - This bit reads the data input value of DIO26."]
# [inline (always)]
pub fn din27_24_dio26 (& self) -> DIN27_24_DIO26_R { DIN27_24_DIO26_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 24 - This bit reads the data input value of DIO27."]
# [inline (always)]
pub fn din27_24_dio27 (& self) -> DIN27_24_DIO27_R { DIN27_24_DIO27_R :: new (((self . bits >> 24) & 1) != 0) } } # [doc = "Data input 27 to 24\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`din27_24::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DIN27_24_SPEC ; impl crate :: RegisterSpec for DIN27_24_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`din27_24::R`](R) reader structure"]
impl crate :: Readable for DIN27_24_SPEC { } # [doc = "`reset()` method sets DIN27_24 to value 0"]
impl crate :: Resettable for DIN27_24_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DIN31_28 (r) register accessor: Data input 31 to 28\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`din31_28::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@din31_28`]
module"]
pub type DIN31_28 = crate :: Reg < din31_28 :: DIN31_28_SPEC > ; # [doc = "Data input 31 to 28"]
pub mod din31_28 { # [doc = "Register `DIN31_28` reader"]
pub type R = crate :: R < DIN31_28_SPEC > ; # [doc = "Field `DIN31_28_DIO28` reader - This bit reads the data input value of DIO28."]
pub type DIN31_28_DIO28_R = crate :: BitReader < DIN31_28_DIO28_A > ; # [doc = "This bit reads the data input value of DIO28.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_28_DIO28_A { # [doc = "0: ZERO"]
DIN31_28_DIO28_ZERO = 0 , # [doc = "1: ONE"]
DIN31_28_DIO28_ONE = 1 , } impl From < DIN31_28_DIO28_A > for bool { # [inline (always)]
fn from (variant : DIN31_28_DIO28_A) -> Self { variant as u8 != 0 } } impl DIN31_28_DIO28_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_28_DIO28_A { match self . bits { false => DIN31_28_DIO28_A :: DIN31_28_DIO28_ZERO , true => DIN31_28_DIO28_A :: DIN31_28_DIO28_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_28_dio28_zero (& self) -> bool { * self == DIN31_28_DIO28_A :: DIN31_28_DIO28_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_28_dio28_one (& self) -> bool { * self == DIN31_28_DIO28_A :: DIN31_28_DIO28_ONE } } # [doc = "Field `DIN31_28_DIO29` reader - This bit reads the data input value of DIO29."]
pub type DIN31_28_DIO29_R = crate :: BitReader < DIN31_28_DIO29_A > ; # [doc = "This bit reads the data input value of DIO29.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_28_DIO29_A { # [doc = "0: ZERO"]
DIN31_28_DIO29_ZERO = 0 , # [doc = "1: ONE"]
DIN31_28_DIO29_ONE = 1 , } impl From < DIN31_28_DIO29_A > for bool { # [inline (always)]
fn from (variant : DIN31_28_DIO29_A) -> Self { variant as u8 != 0 } } impl DIN31_28_DIO29_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_28_DIO29_A { match self . bits { false => DIN31_28_DIO29_A :: DIN31_28_DIO29_ZERO , true => DIN31_28_DIO29_A :: DIN31_28_DIO29_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_28_dio29_zero (& self) -> bool { * self == DIN31_28_DIO29_A :: DIN31_28_DIO29_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_28_dio29_one (& self) -> bool { * self == DIN31_28_DIO29_A :: DIN31_28_DIO29_ONE } } # [doc = "Field `DIN31_28_DIO30` reader - This bit reads the data input value of DIO30."]
pub type DIN31_28_DIO30_R = crate :: BitReader < DIN31_28_DIO30_A > ; # [doc = "This bit reads the data input value of DIO30.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_28_DIO30_A { # [doc = "0: ZERO"]
DIN31_28_DIO30_ZERO = 0 , # [doc = "1: ONE"]
DIN31_28_DIO30_ONE = 1 , } impl From < DIN31_28_DIO30_A > for bool { # [inline (always)]
fn from (variant : DIN31_28_DIO30_A) -> Self { variant as u8 != 0 } } impl DIN31_28_DIO30_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_28_DIO30_A { match self . bits { false => DIN31_28_DIO30_A :: DIN31_28_DIO30_ZERO , true => DIN31_28_DIO30_A :: DIN31_28_DIO30_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_28_dio30_zero (& self) -> bool { * self == DIN31_28_DIO30_A :: DIN31_28_DIO30_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_28_dio30_one (& self) -> bool { * self == DIN31_28_DIO30_A :: DIN31_28_DIO30_ONE } } # [doc = "Field `DIN31_28_DIO31` reader - This bit reads the data input value of DIO31."]
pub type DIN31_28_DIO31_R = crate :: BitReader < DIN31_28_DIO31_A > ; # [doc = "This bit reads the data input value of DIO31.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_28_DIO31_A { # [doc = "0: ZERO"]
DIN31_28_DIO31_ZERO = 0 , # [doc = "1: ONE"]
DIN31_28_DIO31_ONE = 1 , } impl From < DIN31_28_DIO31_A > for bool { # [inline (always)]
fn from (variant : DIN31_28_DIO31_A) -> Self { variant as u8 != 0 } } impl DIN31_28_DIO31_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_28_DIO31_A { match self . bits { false => DIN31_28_DIO31_A :: DIN31_28_DIO31_ZERO , true => DIN31_28_DIO31_A :: DIN31_28_DIO31_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_28_dio31_zero (& self) -> bool { * self == DIN31_28_DIO31_A :: DIN31_28_DIO31_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_28_dio31_one (& self) -> bool { * self == DIN31_28_DIO31_A :: DIN31_28_DIO31_ONE } } impl R { # [doc = "Bit 0 - This bit reads the data input value of DIO28."]
# [inline (always)]
pub fn din31_28_dio28 (& self) -> DIN31_28_DIO28_R { DIN31_28_DIO28_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 8 - This bit reads the data input value of DIO29."]
# [inline (always)]
pub fn din31_28_dio29 (& self) -> DIN31_28_DIO29_R { DIN31_28_DIO29_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 16 - This bit reads the data input value of DIO30."]
# [inline (always)]
pub fn din31_28_dio30 (& self) -> DIN31_28_DIO30_R { DIN31_28_DIO30_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 24 - This bit reads the data input value of DIO31."]
# [inline (always)]
pub fn din31_28_dio31 (& self) -> DIN31_28_DIO31_R { DIN31_28_DIO31_R :: new (((self . bits >> 24) & 1) != 0) } } # [doc = "Data input 31 to 28\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`din31_28::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DIN31_28_SPEC ; impl crate :: RegisterSpec for DIN31_28_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`din31_28::R`](R) reader structure"]
impl crate :: Readable for DIN31_28_SPEC { } # [doc = "`reset()` method sets DIN31_28 to value 0"]
impl crate :: Resettable for DIN31_28_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DIN31_0 (r) register accessor: Data input 31 to 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`din31_0::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@din31_0`]
module"]
pub type DIN31_0 = crate :: Reg < din31_0 :: DIN31_0_SPEC > ; # [doc = "Data input 31 to 0"]
pub mod din31_0 { # [doc = "Register `DIN31_0` reader"]
pub type R = crate :: R < DIN31_0_SPEC > ; # [doc = "Field `DIN31_0_DIO0` reader - This bit reads the data input value of DIO0."]
pub type DIN31_0_DIO0_R = crate :: BitReader < DIN31_0_DIO0_A > ; # [doc = "This bit reads the data input value of DIO0.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_0_DIO0_A { # [doc = "0: ZERO"]
DIN31_0_DIO0_ZERO = 0 , # [doc = "1: ONE"]
DIN31_0_DIO0_ONE = 1 , } impl From < DIN31_0_DIO0_A > for bool { # [inline (always)]
fn from (variant : DIN31_0_DIO0_A) -> Self { variant as u8 != 0 } } impl DIN31_0_DIO0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_0_DIO0_A { match self . bits { false => DIN31_0_DIO0_A :: DIN31_0_DIO0_ZERO , true => DIN31_0_DIO0_A :: DIN31_0_DIO0_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_0_dio0_zero (& self) -> bool { * self == DIN31_0_DIO0_A :: DIN31_0_DIO0_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_0_dio0_one (& self) -> bool { * self == DIN31_0_DIO0_A :: DIN31_0_DIO0_ONE } } # [doc = "Field `DIN31_0_DIO1` reader - This bit reads the data input value of DIO1."]
pub type DIN31_0_DIO1_R = crate :: BitReader < DIN31_0_DIO1_A > ; # [doc = "This bit reads the data input value of DIO1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_0_DIO1_A { # [doc = "0: ZERO"]
DIN31_0_DIO1_ZERO = 0 , # [doc = "1: ONE"]
DIN31_0_DIO1_ONE = 1 , } impl From < DIN31_0_DIO1_A > for bool { # [inline (always)]
fn from (variant : DIN31_0_DIO1_A) -> Self { variant as u8 != 0 } } impl DIN31_0_DIO1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_0_DIO1_A { match self . bits { false => DIN31_0_DIO1_A :: DIN31_0_DIO1_ZERO , true => DIN31_0_DIO1_A :: DIN31_0_DIO1_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_0_dio1_zero (& self) -> bool { * self == DIN31_0_DIO1_A :: DIN31_0_DIO1_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_0_dio1_one (& self) -> bool { * self == DIN31_0_DIO1_A :: DIN31_0_DIO1_ONE } } # [doc = "Field `DIN31_0_DIO2` reader - This bit reads the data input value of DIO2."]
pub type DIN31_0_DIO2_R = crate :: BitReader < DIN31_0_DIO2_A > ; # [doc = "This bit reads the data input value of DIO2.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_0_DIO2_A { # [doc = "0: ZERO"]
DIN31_0_DIO2_ZERO = 0 , # [doc = "1: ONE"]
DIN31_0_DIO2_ONE = 1 , } impl From < DIN31_0_DIO2_A > for bool { # [inline (always)]
fn from (variant : DIN31_0_DIO2_A) -> Self { variant as u8 != 0 } } impl DIN31_0_DIO2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_0_DIO2_A { match self . bits { false => DIN31_0_DIO2_A :: DIN31_0_DIO2_ZERO , true => DIN31_0_DIO2_A :: DIN31_0_DIO2_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_0_dio2_zero (& self) -> bool { * self == DIN31_0_DIO2_A :: DIN31_0_DIO2_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_0_dio2_one (& self) -> bool { * self == DIN31_0_DIO2_A :: DIN31_0_DIO2_ONE } } # [doc = "Field `DIN31_0_DIO3` reader - This bit reads the data input value of DIO3."]
pub type DIN31_0_DIO3_R = crate :: BitReader < DIN31_0_DIO3_A > ; # [doc = "This bit reads the data input value of DIO3.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_0_DIO3_A { # [doc = "0: ZERO"]
DIN31_0_DIO3_ZERO = 0 , # [doc = "1: ONE"]
DIN31_0_DIO3_ONE = 1 , } impl From < DIN31_0_DIO3_A > for bool { # [inline (always)]
fn from (variant : DIN31_0_DIO3_A) -> Self { variant as u8 != 0 } } impl DIN31_0_DIO3_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_0_DIO3_A { match self . bits { false => DIN31_0_DIO3_A :: DIN31_0_DIO3_ZERO , true => DIN31_0_DIO3_A :: DIN31_0_DIO3_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_0_dio3_zero (& self) -> bool { * self == DIN31_0_DIO3_A :: DIN31_0_DIO3_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_0_dio3_one (& self) -> bool { * self == DIN31_0_DIO3_A :: DIN31_0_DIO3_ONE } } # [doc = "Field `DIN31_0_DIO4` reader - This bit reads the data input value of DIO4."]
pub type DIN31_0_DIO4_R = crate :: BitReader < DIN31_0_DIO4_A > ; # [doc = "This bit reads the data input value of DIO4.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_0_DIO4_A { # [doc = "0: ZERO"]
DIN31_0_DIO4_ZERO = 0 , # [doc = "1: ONE"]
DIN31_0_DIO4_ONE = 1 , } impl From < DIN31_0_DIO4_A > for bool { # [inline (always)]
fn from (variant : DIN31_0_DIO4_A) -> Self { variant as u8 != 0 } } impl DIN31_0_DIO4_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_0_DIO4_A { match self . bits { false => DIN31_0_DIO4_A :: DIN31_0_DIO4_ZERO , true => DIN31_0_DIO4_A :: DIN31_0_DIO4_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_0_dio4_zero (& self) -> bool { * self == DIN31_0_DIO4_A :: DIN31_0_DIO4_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_0_dio4_one (& self) -> bool { * self == DIN31_0_DIO4_A :: DIN31_0_DIO4_ONE } } # [doc = "Field `DIN31_0_DIO5` reader - This bit reads the data input value of DIO5."]
pub type DIN31_0_DIO5_R = crate :: BitReader < DIN31_0_DIO5_A > ; # [doc = "This bit reads the data input value of DIO5.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_0_DIO5_A { # [doc = "0: ZERO"]
DIN31_0_DIO5_ZERO = 0 , # [doc = "1: ONE"]
DIN31_0_DIO5_ONE = 1 , } impl From < DIN31_0_DIO5_A > for bool { # [inline (always)]
fn from (variant : DIN31_0_DIO5_A) -> Self { variant as u8 != 0 } } impl DIN31_0_DIO5_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_0_DIO5_A { match self . bits { false => DIN31_0_DIO5_A :: DIN31_0_DIO5_ZERO , true => DIN31_0_DIO5_A :: DIN31_0_DIO5_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_0_dio5_zero (& self) -> bool { * self == DIN31_0_DIO5_A :: DIN31_0_DIO5_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_0_dio5_one (& self) -> bool { * self == DIN31_0_DIO5_A :: DIN31_0_DIO5_ONE } } # [doc = "Field `DIN31_0_DIO6` reader - This bit reads the data input value of DIO6."]
pub type DIN31_0_DIO6_R = crate :: BitReader < DIN31_0_DIO6_A > ; # [doc = "This bit reads the data input value of DIO6.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_0_DIO6_A { # [doc = "0: ZERO"]
DIN31_0_DIO6_ZERO = 0 , # [doc = "1: ONE"]
DIN31_0_DIO6_ONE = 1 , } impl From < DIN31_0_DIO6_A > for bool { # [inline (always)]
fn from (variant : DIN31_0_DIO6_A) -> Self { variant as u8 != 0 } } impl DIN31_0_DIO6_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_0_DIO6_A { match self . bits { false => DIN31_0_DIO6_A :: DIN31_0_DIO6_ZERO , true => DIN31_0_DIO6_A :: DIN31_0_DIO6_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_0_dio6_zero (& self) -> bool { * self == DIN31_0_DIO6_A :: DIN31_0_DIO6_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_0_dio6_one (& self) -> bool { * self == DIN31_0_DIO6_A :: DIN31_0_DIO6_ONE } } # [doc = "Field `DIN31_0_DIO7` reader - This bit reads the data input value of DIO7."]
pub type DIN31_0_DIO7_R = crate :: BitReader < DIN31_0_DIO7_A > ; # [doc = "This bit reads the data input value of DIO7.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_0_DIO7_A { # [doc = "0: ZERO"]
DIN31_0_DIO7_ZERO = 0 , # [doc = "1: ONE"]
DIN31_0_DIO7_ONE = 1 , } impl From < DIN31_0_DIO7_A > for bool { # [inline (always)]
fn from (variant : DIN31_0_DIO7_A) -> Self { variant as u8 != 0 } } impl DIN31_0_DIO7_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_0_DIO7_A { match self . bits { false => DIN31_0_DIO7_A :: DIN31_0_DIO7_ZERO , true => DIN31_0_DIO7_A :: DIN31_0_DIO7_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_0_dio7_zero (& self) -> bool { * self == DIN31_0_DIO7_A :: DIN31_0_DIO7_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_0_dio7_one (& self) -> bool { * self == DIN31_0_DIO7_A :: DIN31_0_DIO7_ONE } } # [doc = "Field `DIN31_0_DIO8` reader - This bit reads the data input value of DIO8."]
pub type DIN31_0_DIO8_R = crate :: BitReader < DIN31_0_DIO8_A > ; # [doc = "This bit reads the data input value of DIO8.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_0_DIO8_A { # [doc = "0: ZERO"]
DIN31_0_DIO8_ZERO = 0 , # [doc = "1: ONE"]
DIN31_0_DIO8_ONE = 1 , } impl From < DIN31_0_DIO8_A > for bool { # [inline (always)]
fn from (variant : DIN31_0_DIO8_A) -> Self { variant as u8 != 0 } } impl DIN31_0_DIO8_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_0_DIO8_A { match self . bits { false => DIN31_0_DIO8_A :: DIN31_0_DIO8_ZERO , true => DIN31_0_DIO8_A :: DIN31_0_DIO8_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_0_dio8_zero (& self) -> bool { * self == DIN31_0_DIO8_A :: DIN31_0_DIO8_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_0_dio8_one (& self) -> bool { * self == DIN31_0_DIO8_A :: DIN31_0_DIO8_ONE } } # [doc = "Field `DIN31_0_DIO9` reader - This bit reads the data input value of DIO9."]
pub type DIN31_0_DIO9_R = crate :: BitReader < DIN31_0_DIO9_A > ; # [doc = "This bit reads the data input value of DIO9.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_0_DIO9_A { # [doc = "0: ZERO"]
DIN31_0_DIO9_ZERO = 0 , # [doc = "1: ONE"]
DIN31_0_DIO9_ONE = 1 , } impl From < DIN31_0_DIO9_A > for bool { # [inline (always)]
fn from (variant : DIN31_0_DIO9_A) -> Self { variant as u8 != 0 } } impl DIN31_0_DIO9_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_0_DIO9_A { match self . bits { false => DIN31_0_DIO9_A :: DIN31_0_DIO9_ZERO , true => DIN31_0_DIO9_A :: DIN31_0_DIO9_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_0_dio9_zero (& self) -> bool { * self == DIN31_0_DIO9_A :: DIN31_0_DIO9_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_0_dio9_one (& self) -> bool { * self == DIN31_0_DIO9_A :: DIN31_0_DIO9_ONE } } # [doc = "Field `DIN31_0_DIO10` reader - This bit reads the data input value of DIO10."]
pub type DIN31_0_DIO10_R = crate :: BitReader < DIN31_0_DIO10_A > ; # [doc = "This bit reads the data input value of DIO10.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_0_DIO10_A { # [doc = "0: ZERO"]
DIN31_0_DIO10_ZERO = 0 , # [doc = "1: ONE"]
DIN31_0_DIO10_ONE = 1 , } impl From < DIN31_0_DIO10_A > for bool { # [inline (always)]
fn from (variant : DIN31_0_DIO10_A) -> Self { variant as u8 != 0 } } impl DIN31_0_DIO10_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_0_DIO10_A { match self . bits { false => DIN31_0_DIO10_A :: DIN31_0_DIO10_ZERO , true => DIN31_0_DIO10_A :: DIN31_0_DIO10_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_0_dio10_zero (& self) -> bool { * self == DIN31_0_DIO10_A :: DIN31_0_DIO10_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_0_dio10_one (& self) -> bool { * self == DIN31_0_DIO10_A :: DIN31_0_DIO10_ONE } } # [doc = "Field `DIN31_0_DIO11` reader - This bit reads the data input value of DIO11."]
pub type DIN31_0_DIO11_R = crate :: BitReader < DIN31_0_DIO11_A > ; # [doc = "This bit reads the data input value of DIO11.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_0_DIO11_A { # [doc = "0: ZERO"]
DIN31_0_DIO11_ZERO = 0 , # [doc = "1: ONE"]
DIN31_0_DIO11_ONE = 1 , } impl From < DIN31_0_DIO11_A > for bool { # [inline (always)]
fn from (variant : DIN31_0_DIO11_A) -> Self { variant as u8 != 0 } } impl DIN31_0_DIO11_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_0_DIO11_A { match self . bits { false => DIN31_0_DIO11_A :: DIN31_0_DIO11_ZERO , true => DIN31_0_DIO11_A :: DIN31_0_DIO11_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_0_dio11_zero (& self) -> bool { * self == DIN31_0_DIO11_A :: DIN31_0_DIO11_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_0_dio11_one (& self) -> bool { * self == DIN31_0_DIO11_A :: DIN31_0_DIO11_ONE } } # [doc = "Field `DIN31_0_DIO12` reader - This bit reads the data input value of DIO12."]
pub type DIN31_0_DIO12_R = crate :: BitReader < DIN31_0_DIO12_A > ; # [doc = "This bit reads the data input value of DIO12.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_0_DIO12_A { # [doc = "0: ZERO"]
DIN31_0_DIO12_ZERO = 0 , # [doc = "1: ONE"]
DIN31_0_DIO12_ONE = 1 , } impl From < DIN31_0_DIO12_A > for bool { # [inline (always)]
fn from (variant : DIN31_0_DIO12_A) -> Self { variant as u8 != 0 } } impl DIN31_0_DIO12_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_0_DIO12_A { match self . bits { false => DIN31_0_DIO12_A :: DIN31_0_DIO12_ZERO , true => DIN31_0_DIO12_A :: DIN31_0_DIO12_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_0_dio12_zero (& self) -> bool { * self == DIN31_0_DIO12_A :: DIN31_0_DIO12_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_0_dio12_one (& self) -> bool { * self == DIN31_0_DIO12_A :: DIN31_0_DIO12_ONE } } # [doc = "Field `DIN31_0_DIO13` reader - This bit reads the data input value of DIO13."]
pub type DIN31_0_DIO13_R = crate :: BitReader < DIN31_0_DIO13_A > ; # [doc = "This bit reads the data input value of DIO13.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_0_DIO13_A { # [doc = "0: ZERO"]
DIN31_0_DIO13_ZERO = 0 , # [doc = "1: ONE"]
DIN31_0_DIO13_ONE = 1 , } impl From < DIN31_0_DIO13_A > for bool { # [inline (always)]
fn from (variant : DIN31_0_DIO13_A) -> Self { variant as u8 != 0 } } impl DIN31_0_DIO13_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_0_DIO13_A { match self . bits { false => DIN31_0_DIO13_A :: DIN31_0_DIO13_ZERO , true => DIN31_0_DIO13_A :: DIN31_0_DIO13_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_0_dio13_zero (& self) -> bool { * self == DIN31_0_DIO13_A :: DIN31_0_DIO13_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_0_dio13_one (& self) -> bool { * self == DIN31_0_DIO13_A :: DIN31_0_DIO13_ONE } } # [doc = "Field `DIN31_0_DIO14` reader - This bit reads the data input value of DIO14."]
pub type DIN31_0_DIO14_R = crate :: BitReader < DIN31_0_DIO14_A > ; # [doc = "This bit reads the data input value of DIO14.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_0_DIO14_A { # [doc = "0: ZERO"]
DIN31_0_DIO14_ZERO = 0 , # [doc = "1: ONE"]
DIN31_0_DIO14_ONE = 1 , } impl From < DIN31_0_DIO14_A > for bool { # [inline (always)]
fn from (variant : DIN31_0_DIO14_A) -> Self { variant as u8 != 0 } } impl DIN31_0_DIO14_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_0_DIO14_A { match self . bits { false => DIN31_0_DIO14_A :: DIN31_0_DIO14_ZERO , true => DIN31_0_DIO14_A :: DIN31_0_DIO14_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_0_dio14_zero (& self) -> bool { * self == DIN31_0_DIO14_A :: DIN31_0_DIO14_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_0_dio14_one (& self) -> bool { * self == DIN31_0_DIO14_A :: DIN31_0_DIO14_ONE } } # [doc = "Field `DIN31_0_DIO15` reader - This bit reads the data input value of DIO15."]
pub type DIN31_0_DIO15_R = crate :: BitReader < DIN31_0_DIO15_A > ; # [doc = "This bit reads the data input value of DIO15.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_0_DIO15_A { # [doc = "0: ZERO"]
DIN31_0_DIO15_ZERO = 0 , # [doc = "1: ONE"]
DIN31_0_DIO15_ONE = 1 , } impl From < DIN31_0_DIO15_A > for bool { # [inline (always)]
fn from (variant : DIN31_0_DIO15_A) -> Self { variant as u8 != 0 } } impl DIN31_0_DIO15_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_0_DIO15_A { match self . bits { false => DIN31_0_DIO15_A :: DIN31_0_DIO15_ZERO , true => DIN31_0_DIO15_A :: DIN31_0_DIO15_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_0_dio15_zero (& self) -> bool { * self == DIN31_0_DIO15_A :: DIN31_0_DIO15_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_0_dio15_one (& self) -> bool { * self == DIN31_0_DIO15_A :: DIN31_0_DIO15_ONE } } # [doc = "Field `DIN31_0_DIO16` reader - This bit reads the data input value of DIO16."]
pub type DIN31_0_DIO16_R = crate :: BitReader < DIN31_0_DIO16_A > ; # [doc = "This bit reads the data input value of DIO16.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_0_DIO16_A { # [doc = "0: ZERO"]
DIN31_0_DIO16_ZERO = 0 , # [doc = "1: ONE"]
DIN31_0_DIO16_ONE = 1 , } impl From < DIN31_0_DIO16_A > for bool { # [inline (always)]
fn from (variant : DIN31_0_DIO16_A) -> Self { variant as u8 != 0 } } impl DIN31_0_DIO16_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_0_DIO16_A { match self . bits { false => DIN31_0_DIO16_A :: DIN31_0_DIO16_ZERO , true => DIN31_0_DIO16_A :: DIN31_0_DIO16_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_0_dio16_zero (& self) -> bool { * self == DIN31_0_DIO16_A :: DIN31_0_DIO16_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_0_dio16_one (& self) -> bool { * self == DIN31_0_DIO16_A :: DIN31_0_DIO16_ONE } } # [doc = "Field `DIN31_0_DIO17` reader - This bit reads the data input value of DIO17."]
pub type DIN31_0_DIO17_R = crate :: BitReader < DIN31_0_DIO17_A > ; # [doc = "This bit reads the data input value of DIO17.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_0_DIO17_A { # [doc = "0: ZERO"]
DIN31_0_DIO17_ZERO = 0 , # [doc = "1: ONE"]
DIN31_0_DIO17_ONE = 1 , } impl From < DIN31_0_DIO17_A > for bool { # [inline (always)]
fn from (variant : DIN31_0_DIO17_A) -> Self { variant as u8 != 0 } } impl DIN31_0_DIO17_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_0_DIO17_A { match self . bits { false => DIN31_0_DIO17_A :: DIN31_0_DIO17_ZERO , true => DIN31_0_DIO17_A :: DIN31_0_DIO17_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_0_dio17_zero (& self) -> bool { * self == DIN31_0_DIO17_A :: DIN31_0_DIO17_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_0_dio17_one (& self) -> bool { * self == DIN31_0_DIO17_A :: DIN31_0_DIO17_ONE } } # [doc = "Field `DIN31_0_DIO18` reader - This bit reads the data input value of DIO18."]
pub type DIN31_0_DIO18_R = crate :: BitReader < DIN31_0_DIO18_A > ; # [doc = "This bit reads the data input value of DIO18.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_0_DIO18_A { # [doc = "0: ZERO"]
DIN31_0_DIO18_ZERO = 0 , # [doc = "1: ONE"]
DIN31_0_DIO18_ONE = 1 , } impl From < DIN31_0_DIO18_A > for bool { # [inline (always)]
fn from (variant : DIN31_0_DIO18_A) -> Self { variant as u8 != 0 } } impl DIN31_0_DIO18_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_0_DIO18_A { match self . bits { false => DIN31_0_DIO18_A :: DIN31_0_DIO18_ZERO , true => DIN31_0_DIO18_A :: DIN31_0_DIO18_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_0_dio18_zero (& self) -> bool { * self == DIN31_0_DIO18_A :: DIN31_0_DIO18_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_0_dio18_one (& self) -> bool { * self == DIN31_0_DIO18_A :: DIN31_0_DIO18_ONE } } # [doc = "Field `DIN31_0_DIO19` reader - This bit reads the data input value of DIO19."]
pub type DIN31_0_DIO19_R = crate :: BitReader < DIN31_0_DIO19_A > ; # [doc = "This bit reads the data input value of DIO19.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_0_DIO19_A { # [doc = "0: ZERO"]
DIN31_0_DIO19_ZERO = 0 , # [doc = "1: ONE"]
DIN31_0_DIO19_ONE = 1 , } impl From < DIN31_0_DIO19_A > for bool { # [inline (always)]
fn from (variant : DIN31_0_DIO19_A) -> Self { variant as u8 != 0 } } impl DIN31_0_DIO19_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_0_DIO19_A { match self . bits { false => DIN31_0_DIO19_A :: DIN31_0_DIO19_ZERO , true => DIN31_0_DIO19_A :: DIN31_0_DIO19_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_0_dio19_zero (& self) -> bool { * self == DIN31_0_DIO19_A :: DIN31_0_DIO19_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_0_dio19_one (& self) -> bool { * self == DIN31_0_DIO19_A :: DIN31_0_DIO19_ONE } } # [doc = "Field `DIN31_0_DIO20` reader - This bit reads the data input value of DIO20."]
pub type DIN31_0_DIO20_R = crate :: BitReader < DIN31_0_DIO20_A > ; # [doc = "This bit reads the data input value of DIO20.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_0_DIO20_A { # [doc = "0: ZERO"]
DIN31_0_DIO20_ZERO = 0 , # [doc = "1: ONE"]
DIN31_0_DIO20_ONE = 1 , } impl From < DIN31_0_DIO20_A > for bool { # [inline (always)]
fn from (variant : DIN31_0_DIO20_A) -> Self { variant as u8 != 0 } } impl DIN31_0_DIO20_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_0_DIO20_A { match self . bits { false => DIN31_0_DIO20_A :: DIN31_0_DIO20_ZERO , true => DIN31_0_DIO20_A :: DIN31_0_DIO20_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_0_dio20_zero (& self) -> bool { * self == DIN31_0_DIO20_A :: DIN31_0_DIO20_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_0_dio20_one (& self) -> bool { * self == DIN31_0_DIO20_A :: DIN31_0_DIO20_ONE } } # [doc = "Field `DIN31_0_DIO21` reader - This bit reads the data input value of DIO21."]
pub type DIN31_0_DIO21_R = crate :: BitReader < DIN31_0_DIO21_A > ; # [doc = "This bit reads the data input value of DIO21.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_0_DIO21_A { # [doc = "0: ZERO"]
DIN31_0_DIO21_ZERO = 0 , # [doc = "1: ONE"]
DIN31_0_DIO21_ONE = 1 , } impl From < DIN31_0_DIO21_A > for bool { # [inline (always)]
fn from (variant : DIN31_0_DIO21_A) -> Self { variant as u8 != 0 } } impl DIN31_0_DIO21_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_0_DIO21_A { match self . bits { false => DIN31_0_DIO21_A :: DIN31_0_DIO21_ZERO , true => DIN31_0_DIO21_A :: DIN31_0_DIO21_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_0_dio21_zero (& self) -> bool { * self == DIN31_0_DIO21_A :: DIN31_0_DIO21_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_0_dio21_one (& self) -> bool { * self == DIN31_0_DIO21_A :: DIN31_0_DIO21_ONE } } # [doc = "Field `DIN31_0_DIO22` reader - This bit reads the data input value of DIO22."]
pub type DIN31_0_DIO22_R = crate :: BitReader < DIN31_0_DIO22_A > ; # [doc = "This bit reads the data input value of DIO22.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_0_DIO22_A { # [doc = "0: ZERO"]
DIN31_0_DIO22_ZERO = 0 , # [doc = "1: ONE"]
DIN31_0_DIO22_ONE = 1 , } impl From < DIN31_0_DIO22_A > for bool { # [inline (always)]
fn from (variant : DIN31_0_DIO22_A) -> Self { variant as u8 != 0 } } impl DIN31_0_DIO22_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_0_DIO22_A { match self . bits { false => DIN31_0_DIO22_A :: DIN31_0_DIO22_ZERO , true => DIN31_0_DIO22_A :: DIN31_0_DIO22_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_0_dio22_zero (& self) -> bool { * self == DIN31_0_DIO22_A :: DIN31_0_DIO22_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_0_dio22_one (& self) -> bool { * self == DIN31_0_DIO22_A :: DIN31_0_DIO22_ONE } } # [doc = "Field `DIN31_0_DIO23` reader - This bit reads the data input value of DIO23."]
pub type DIN31_0_DIO23_R = crate :: BitReader < DIN31_0_DIO23_A > ; # [doc = "This bit reads the data input value of DIO23.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_0_DIO23_A { # [doc = "0: ZERO"]
DIN31_0_DIO23_ZERO = 0 , # [doc = "1: ONE"]
DIN31_0_DIO23_ONE = 1 , } impl From < DIN31_0_DIO23_A > for bool { # [inline (always)]
fn from (variant : DIN31_0_DIO23_A) -> Self { variant as u8 != 0 } } impl DIN31_0_DIO23_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_0_DIO23_A { match self . bits { false => DIN31_0_DIO23_A :: DIN31_0_DIO23_ZERO , true => DIN31_0_DIO23_A :: DIN31_0_DIO23_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_0_dio23_zero (& self) -> bool { * self == DIN31_0_DIO23_A :: DIN31_0_DIO23_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_0_dio23_one (& self) -> bool { * self == DIN31_0_DIO23_A :: DIN31_0_DIO23_ONE } } # [doc = "Field `DIN31_0_DIO24` reader - This bit reads the data input value of DIO24."]
pub type DIN31_0_DIO24_R = crate :: BitReader < DIN31_0_DIO24_A > ; # [doc = "This bit reads the data input value of DIO24.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_0_DIO24_A { # [doc = "0: ZERO"]
DIN31_0_DIO24_ZERO = 0 , # [doc = "1: ONE"]
DIN31_0_DIO24_ONE = 1 , } impl From < DIN31_0_DIO24_A > for bool { # [inline (always)]
fn from (variant : DIN31_0_DIO24_A) -> Self { variant as u8 != 0 } } impl DIN31_0_DIO24_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_0_DIO24_A { match self . bits { false => DIN31_0_DIO24_A :: DIN31_0_DIO24_ZERO , true => DIN31_0_DIO24_A :: DIN31_0_DIO24_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_0_dio24_zero (& self) -> bool { * self == DIN31_0_DIO24_A :: DIN31_0_DIO24_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_0_dio24_one (& self) -> bool { * self == DIN31_0_DIO24_A :: DIN31_0_DIO24_ONE } } # [doc = "Field `DIN31_0_DIO25` reader - This bit reads the data input value of DIO25."]
pub type DIN31_0_DIO25_R = crate :: BitReader < DIN31_0_DIO25_A > ; # [doc = "This bit reads the data input value of DIO25.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_0_DIO25_A { # [doc = "0: ZERO"]
DIN31_0_DIO25_ZERO = 0 , # [doc = "1: ONE"]
DIN31_0_DIO25_ONE = 1 , } impl From < DIN31_0_DIO25_A > for bool { # [inline (always)]
fn from (variant : DIN31_0_DIO25_A) -> Self { variant as u8 != 0 } } impl DIN31_0_DIO25_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_0_DIO25_A { match self . bits { false => DIN31_0_DIO25_A :: DIN31_0_DIO25_ZERO , true => DIN31_0_DIO25_A :: DIN31_0_DIO25_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_0_dio25_zero (& self) -> bool { * self == DIN31_0_DIO25_A :: DIN31_0_DIO25_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_0_dio25_one (& self) -> bool { * self == DIN31_0_DIO25_A :: DIN31_0_DIO25_ONE } } # [doc = "Field `DIN31_0_DIO26` reader - This bit reads the data input value of DIO26."]
pub type DIN31_0_DIO26_R = crate :: BitReader < DIN31_0_DIO26_A > ; # [doc = "This bit reads the data input value of DIO26.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_0_DIO26_A { # [doc = "0: ZERO"]
DIN31_0_DIO26_ZERO = 0 , # [doc = "1: ONE"]
DIN31_0_DIO26_ONE = 1 , } impl From < DIN31_0_DIO26_A > for bool { # [inline (always)]
fn from (variant : DIN31_0_DIO26_A) -> Self { variant as u8 != 0 } } impl DIN31_0_DIO26_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_0_DIO26_A { match self . bits { false => DIN31_0_DIO26_A :: DIN31_0_DIO26_ZERO , true => DIN31_0_DIO26_A :: DIN31_0_DIO26_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_0_dio26_zero (& self) -> bool { * self == DIN31_0_DIO26_A :: DIN31_0_DIO26_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_0_dio26_one (& self) -> bool { * self == DIN31_0_DIO26_A :: DIN31_0_DIO26_ONE } } # [doc = "Field `DIN31_0_DIO27` reader - This bit reads the data input value of DIO27."]
pub type DIN31_0_DIO27_R = crate :: BitReader < DIN31_0_DIO27_A > ; # [doc = "This bit reads the data input value of DIO27.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_0_DIO27_A { # [doc = "0: ZERO"]
DIN31_0_DIO27_ZERO = 0 , # [doc = "1: ONE"]
DIN31_0_DIO27_ONE = 1 , } impl From < DIN31_0_DIO27_A > for bool { # [inline (always)]
fn from (variant : DIN31_0_DIO27_A) -> Self { variant as u8 != 0 } } impl DIN31_0_DIO27_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_0_DIO27_A { match self . bits { false => DIN31_0_DIO27_A :: DIN31_0_DIO27_ZERO , true => DIN31_0_DIO27_A :: DIN31_0_DIO27_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_0_dio27_zero (& self) -> bool { * self == DIN31_0_DIO27_A :: DIN31_0_DIO27_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_0_dio27_one (& self) -> bool { * self == DIN31_0_DIO27_A :: DIN31_0_DIO27_ONE } } # [doc = "Field `DIN31_0_DIO28` reader - This bit reads the data input value of DIO28."]
pub type DIN31_0_DIO28_R = crate :: BitReader < DIN31_0_DIO28_A > ; # [doc = "This bit reads the data input value of DIO28.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_0_DIO28_A { # [doc = "0: ZERO"]
DIN31_0_DIO28_ZERO = 0 , # [doc = "1: ONE"]
DIN31_0_DIO28_ONE = 1 , } impl From < DIN31_0_DIO28_A > for bool { # [inline (always)]
fn from (variant : DIN31_0_DIO28_A) -> Self { variant as u8 != 0 } } impl DIN31_0_DIO28_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_0_DIO28_A { match self . bits { false => DIN31_0_DIO28_A :: DIN31_0_DIO28_ZERO , true => DIN31_0_DIO28_A :: DIN31_0_DIO28_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_0_dio28_zero (& self) -> bool { * self == DIN31_0_DIO28_A :: DIN31_0_DIO28_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_0_dio28_one (& self) -> bool { * self == DIN31_0_DIO28_A :: DIN31_0_DIO28_ONE } } # [doc = "Field `DIN31_0_DIO29` reader - This bit reads the data input value of DIO29."]
pub type DIN31_0_DIO29_R = crate :: BitReader < DIN31_0_DIO29_A > ; # [doc = "This bit reads the data input value of DIO29.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_0_DIO29_A { # [doc = "0: ZERO"]
DIN31_0_DIO29_ZERO = 0 , # [doc = "1: ONE"]
DIN31_0_DIO29_ONE = 1 , } impl From < DIN31_0_DIO29_A > for bool { # [inline (always)]
fn from (variant : DIN31_0_DIO29_A) -> Self { variant as u8 != 0 } } impl DIN31_0_DIO29_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_0_DIO29_A { match self . bits { false => DIN31_0_DIO29_A :: DIN31_0_DIO29_ZERO , true => DIN31_0_DIO29_A :: DIN31_0_DIO29_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_0_dio29_zero (& self) -> bool { * self == DIN31_0_DIO29_A :: DIN31_0_DIO29_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_0_dio29_one (& self) -> bool { * self == DIN31_0_DIO29_A :: DIN31_0_DIO29_ONE } } # [doc = "Field `DIN31_0_DIO30` reader - This bit reads the data input value of DIO30."]
pub type DIN31_0_DIO30_R = crate :: BitReader < DIN31_0_DIO30_A > ; # [doc = "This bit reads the data input value of DIO30.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_0_DIO30_A { # [doc = "0: ZERO"]
DIN31_0_DIO30_ZERO = 0 , # [doc = "1: ONE"]
DIN31_0_DIO30_ONE = 1 , } impl From < DIN31_0_DIO30_A > for bool { # [inline (always)]
fn from (variant : DIN31_0_DIO30_A) -> Self { variant as u8 != 0 } } impl DIN31_0_DIO30_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_0_DIO30_A { match self . bits { false => DIN31_0_DIO30_A :: DIN31_0_DIO30_ZERO , true => DIN31_0_DIO30_A :: DIN31_0_DIO30_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_0_dio30_zero (& self) -> bool { * self == DIN31_0_DIO30_A :: DIN31_0_DIO30_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_0_dio30_one (& self) -> bool { * self == DIN31_0_DIO30_A :: DIN31_0_DIO30_ONE } } # [doc = "Field `DIN31_0_DIO31` reader - This bit reads the data input value of DIO31."]
pub type DIN31_0_DIO31_R = crate :: BitReader < DIN31_0_DIO31_A > ; # [doc = "This bit reads the data input value of DIO31.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DIN31_0_DIO31_A { # [doc = "0: ZERO"]
DIN31_0_DIO31_ZERO = 0 , # [doc = "1: ONE"]
DIN31_0_DIO31_ONE = 1 , } impl From < DIN31_0_DIO31_A > for bool { # [inline (always)]
fn from (variant : DIN31_0_DIO31_A) -> Self { variant as u8 != 0 } } impl DIN31_0_DIO31_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DIN31_0_DIO31_A { match self . bits { false => DIN31_0_DIO31_A :: DIN31_0_DIO31_ZERO , true => DIN31_0_DIO31_A :: DIN31_0_DIO31_ONE , } } # [doc = "ZERO"]
# [inline (always)]
pub fn is_din31_0_dio31_zero (& self) -> bool { * self == DIN31_0_DIO31_A :: DIN31_0_DIO31_ZERO } # [doc = "ONE"]
# [inline (always)]
pub fn is_din31_0_dio31_one (& self) -> bool { * self == DIN31_0_DIO31_A :: DIN31_0_DIO31_ONE } } impl R { # [doc = "Bit 0 - This bit reads the data input value of DIO0."]
# [inline (always)]
pub fn din31_0_dio0 (& self) -> DIN31_0_DIO0_R { DIN31_0_DIO0_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - This bit reads the data input value of DIO1."]
# [inline (always)]
pub fn din31_0_dio1 (& self) -> DIN31_0_DIO1_R { DIN31_0_DIO1_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - This bit reads the data input value of DIO2."]
# [inline (always)]
pub fn din31_0_dio2 (& self) -> DIN31_0_DIO2_R { DIN31_0_DIO2_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - This bit reads the data input value of DIO3."]
# [inline (always)]
pub fn din31_0_dio3 (& self) -> DIN31_0_DIO3_R { DIN31_0_DIO3_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - This bit reads the data input value of DIO4."]
# [inline (always)]
pub fn din31_0_dio4 (& self) -> DIN31_0_DIO4_R { DIN31_0_DIO4_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - This bit reads the data input value of DIO5."]
# [inline (always)]
pub fn din31_0_dio5 (& self) -> DIN31_0_DIO5_R { DIN31_0_DIO5_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - This bit reads the data input value of DIO6."]
# [inline (always)]
pub fn din31_0_dio6 (& self) -> DIN31_0_DIO6_R { DIN31_0_DIO6_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 7 - This bit reads the data input value of DIO7."]
# [inline (always)]
pub fn din31_0_dio7 (& self) -> DIN31_0_DIO7_R { DIN31_0_DIO7_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - This bit reads the data input value of DIO8."]
# [inline (always)]
pub fn din31_0_dio8 (& self) -> DIN31_0_DIO8_R { DIN31_0_DIO8_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - This bit reads the data input value of DIO9."]
# [inline (always)]
pub fn din31_0_dio9 (& self) -> DIN31_0_DIO9_R { DIN31_0_DIO9_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - This bit reads the data input value of DIO10."]
# [inline (always)]
pub fn din31_0_dio10 (& self) -> DIN31_0_DIO10_R { DIN31_0_DIO10_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bit 11 - This bit reads the data input value of DIO11."]
# [inline (always)]
pub fn din31_0_dio11 (& self) -> DIN31_0_DIO11_R { DIN31_0_DIO11_R :: new (((self . bits >> 11) & 1) != 0) } # [doc = "Bit 12 - This bit reads the data input value of DIO12."]
# [inline (always)]
pub fn din31_0_dio12 (& self) -> DIN31_0_DIO12_R { DIN31_0_DIO12_R :: new (((self . bits >> 12) & 1) != 0) } # [doc = "Bit 13 - This bit reads the data input value of DIO13."]
# [inline (always)]
pub fn din31_0_dio13 (& self) -> DIN31_0_DIO13_R { DIN31_0_DIO13_R :: new (((self . bits >> 13) & 1) != 0) } # [doc = "Bit 14 - This bit reads the data input value of DIO14."]
# [inline (always)]
pub fn din31_0_dio14 (& self) -> DIN31_0_DIO14_R { DIN31_0_DIO14_R :: new (((self . bits >> 14) & 1) != 0) } # [doc = "Bit 15 - This bit reads the data input value of DIO15."]
# [inline (always)]
pub fn din31_0_dio15 (& self) -> DIN31_0_DIO15_R { DIN31_0_DIO15_R :: new (((self . bits >> 15) & 1) != 0) } # [doc = "Bit 16 - This bit reads the data input value of DIO16."]
# [inline (always)]
pub fn din31_0_dio16 (& self) -> DIN31_0_DIO16_R { DIN31_0_DIO16_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 17 - This bit reads the data input value of DIO17."]
# [inline (always)]
pub fn din31_0_dio17 (& self) -> DIN31_0_DIO17_R { DIN31_0_DIO17_R :: new (((self . bits >> 17) & 1) != 0) } # [doc = "Bit 18 - This bit reads the data input value of DIO18."]
# [inline (always)]
pub fn din31_0_dio18 (& self) -> DIN31_0_DIO18_R { DIN31_0_DIO18_R :: new (((self . bits >> 18) & 1) != 0) } # [doc = "Bit 19 - This bit reads the data input value of DIO19."]
# [inline (always)]
pub fn din31_0_dio19 (& self) -> DIN31_0_DIO19_R { DIN31_0_DIO19_R :: new (((self . bits >> 19) & 1) != 0) } # [doc = "Bit 20 - This bit reads the data input value of DIO20."]
# [inline (always)]
pub fn din31_0_dio20 (& self) -> DIN31_0_DIO20_R { DIN31_0_DIO20_R :: new (((self . bits >> 20) & 1) != 0) } # [doc = "Bit 21 - This bit reads the data input value of DIO21."]
# [inline (always)]
pub fn din31_0_dio21 (& self) -> DIN31_0_DIO21_R { DIN31_0_DIO21_R :: new (((self . bits >> 21) & 1) != 0) } # [doc = "Bit 22 - This bit reads the data input value of DIO22."]
# [inline (always)]
pub fn din31_0_dio22 (& self) -> DIN31_0_DIO22_R { DIN31_0_DIO22_R :: new (((self . bits >> 22) & 1) != 0) } # [doc = "Bit 23 - This bit reads the data input value of DIO23."]
# [inline (always)]
pub fn din31_0_dio23 (& self) -> DIN31_0_DIO23_R { DIN31_0_DIO23_R :: new (((self . bits >> 23) & 1) != 0) } # [doc = "Bit 24 - This bit reads the data input value of DIO24."]
# [inline (always)]
pub fn din31_0_dio24 (& self) -> DIN31_0_DIO24_R { DIN31_0_DIO24_R :: new (((self . bits >> 24) & 1) != 0) } # [doc = "Bit 25 - This bit reads the data input value of DIO25."]
# [inline (always)]
pub fn din31_0_dio25 (& self) -> DIN31_0_DIO25_R { DIN31_0_DIO25_R :: new (((self . bits >> 25) & 1) != 0) } # [doc = "Bit 26 - This bit reads the data input value of DIO26."]
# [inline (always)]
pub fn din31_0_dio26 (& self) -> DIN31_0_DIO26_R { DIN31_0_DIO26_R :: new (((self . bits >> 26) & 1) != 0) } # [doc = "Bit 27 - This bit reads the data input value of DIO27."]
# [inline (always)]
pub fn din31_0_dio27 (& self) -> DIN31_0_DIO27_R { DIN31_0_DIO27_R :: new (((self . bits >> 27) & 1) != 0) } # [doc = "Bit 28 - This bit reads the data input value of DIO28."]
# [inline (always)]
pub fn din31_0_dio28 (& self) -> DIN31_0_DIO28_R { DIN31_0_DIO28_R :: new (((self . bits >> 28) & 1) != 0) } # [doc = "Bit 29 - This bit reads the data input value of DIO29."]
# [inline (always)]
pub fn din31_0_dio29 (& self) -> DIN31_0_DIO29_R { DIN31_0_DIO29_R :: new (((self . bits >> 29) & 1) != 0) } # [doc = "Bit 30 - This bit reads the data input value of DIO30."]
# [inline (always)]
pub fn din31_0_dio30 (& self) -> DIN31_0_DIO30_R { DIN31_0_DIO30_R :: new (((self . bits >> 30) & 1) != 0) } # [doc = "Bit 31 - This bit reads the data input value of DIO31."]
# [inline (always)]
pub fn din31_0_dio31 (& self) -> DIN31_0_DIO31_R { DIN31_0_DIO31_R :: new (((self . bits >> 31) & 1) != 0) } } # [doc = "Data input 31 to 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`din31_0::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DIN31_0_SPEC ; impl crate :: RegisterSpec for DIN31_0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`din31_0::R`](R) reader structure"]
impl crate :: Readable for DIN31_0_SPEC { } # [doc = "`reset()` method sets DIN31_0 to value 0"]
impl crate :: Resettable for DIN31_0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "POLARITY15_0 (rw) register accessor: Polarity 15 to 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`polarity15_0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`polarity15_0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@polarity15_0`]
module"]
pub type POLARITY15_0 = crate :: Reg < polarity15_0 :: POLARITY15_0_SPEC > ; # [doc = "Polarity 15 to 0"]
pub mod polarity15_0 { # [doc = "Register `POLARITY15_0` reader"]
pub type R = crate :: R < POLARITY15_0_SPEC > ; # [doc = "Register `POLARITY15_0` writer"]
pub type W = crate :: W < POLARITY15_0_SPEC > ; # [doc = "Field `POLARITY15_0_DIO0` reader - Enables and configures edge detection polarity for DIO0."]
pub type POLARITY15_0_DIO0_R = crate :: FieldReader < POLARITY15_0_DIO0_A > ; # [doc = "Enables and configures edge detection polarity for DIO0.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum POLARITY15_0_DIO0_A { # [doc = "0: DISABLE"]
POLARITY15_0_DIO0_DISABLE = 0 , # [doc = "1: RISE"]
POLARITY15_0_DIO0_RISE = 1 , # [doc = "2: FALL"]
POLARITY15_0_DIO0_FALL = 2 , # [doc = "3: RISE_FALL"]
POLARITY15_0_DIO0_RISE_FALL = 3 , } impl From < POLARITY15_0_DIO0_A > for u8 { # [inline (always)]
fn from (variant : POLARITY15_0_DIO0_A) -> Self { variant as _ } } impl crate :: FieldSpec for POLARITY15_0_DIO0_A { type Ux = u8 ; } impl POLARITY15_0_DIO0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> POLARITY15_0_DIO0_A { match self . bits { 0 => POLARITY15_0_DIO0_A :: POLARITY15_0_DIO0_DISABLE , 1 => POLARITY15_0_DIO0_A :: POLARITY15_0_DIO0_RISE , 2 => POLARITY15_0_DIO0_A :: POLARITY15_0_DIO0_FALL , 3 => POLARITY15_0_DIO0_A :: POLARITY15_0_DIO0_RISE_FALL , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_polarity15_0_dio0_disable (& self) -> bool { * self == POLARITY15_0_DIO0_A :: POLARITY15_0_DIO0_DISABLE } # [doc = "RISE"]
# [inline (always)]
pub fn is_polarity15_0_dio0_rise (& self) -> bool { * self == POLARITY15_0_DIO0_A :: POLARITY15_0_DIO0_RISE } # [doc = "FALL"]
# [inline (always)]
pub fn is_polarity15_0_dio0_fall (& self) -> bool { * self == POLARITY15_0_DIO0_A :: POLARITY15_0_DIO0_FALL } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn is_polarity15_0_dio0_rise_fall (& self) -> bool { * self == POLARITY15_0_DIO0_A :: POLARITY15_0_DIO0_RISE_FALL } } # [doc = "Field `POLARITY15_0_DIO0` writer - Enables and configures edge detection polarity for DIO0."]
pub type POLARITY15_0_DIO0_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , POLARITY15_0_DIO0_A > ; impl < 'a , REG , const O : u8 > POLARITY15_0_DIO0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn polarity15_0_dio0_disable (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO0_A :: POLARITY15_0_DIO0_DISABLE) } # [doc = "RISE"]
# [inline (always)]
pub fn polarity15_0_dio0_rise (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO0_A :: POLARITY15_0_DIO0_RISE) } # [doc = "FALL"]
# [inline (always)]
pub fn polarity15_0_dio0_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO0_A :: POLARITY15_0_DIO0_FALL) } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn polarity15_0_dio0_rise_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO0_A :: POLARITY15_0_DIO0_RISE_FALL) } } # [doc = "Field `POLARITY15_0_DIO1` reader - Enables and configures edge detection polarity for DIO1."]
pub type POLARITY15_0_DIO1_R = crate :: FieldReader < POLARITY15_0_DIO1_A > ; # [doc = "Enables and configures edge detection polarity for DIO1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum POLARITY15_0_DIO1_A { # [doc = "0: DISABLE"]
POLARITY15_0_DIO1_DISABLE = 0 , # [doc = "1: RISE"]
POLARITY15_0_DIO1_RISE = 1 , # [doc = "2: FALL"]
POLARITY15_0_DIO1_FALL = 2 , # [doc = "3: RISE_FALL"]
POLARITY15_0_DIO1_RISE_FALL = 3 , } impl From < POLARITY15_0_DIO1_A > for u8 { # [inline (always)]
fn from (variant : POLARITY15_0_DIO1_A) -> Self { variant as _ } } impl crate :: FieldSpec for POLARITY15_0_DIO1_A { type Ux = u8 ; } impl POLARITY15_0_DIO1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> POLARITY15_0_DIO1_A { match self . bits { 0 => POLARITY15_0_DIO1_A :: POLARITY15_0_DIO1_DISABLE , 1 => POLARITY15_0_DIO1_A :: POLARITY15_0_DIO1_RISE , 2 => POLARITY15_0_DIO1_A :: POLARITY15_0_DIO1_FALL , 3 => POLARITY15_0_DIO1_A :: POLARITY15_0_DIO1_RISE_FALL , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_polarity15_0_dio1_disable (& self) -> bool { * self == POLARITY15_0_DIO1_A :: POLARITY15_0_DIO1_DISABLE } # [doc = "RISE"]
# [inline (always)]
pub fn is_polarity15_0_dio1_rise (& self) -> bool { * self == POLARITY15_0_DIO1_A :: POLARITY15_0_DIO1_RISE } # [doc = "FALL"]
# [inline (always)]
pub fn is_polarity15_0_dio1_fall (& self) -> bool { * self == POLARITY15_0_DIO1_A :: POLARITY15_0_DIO1_FALL } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn is_polarity15_0_dio1_rise_fall (& self) -> bool { * self == POLARITY15_0_DIO1_A :: POLARITY15_0_DIO1_RISE_FALL } } # [doc = "Field `POLARITY15_0_DIO1` writer - Enables and configures edge detection polarity for DIO1."]
pub type POLARITY15_0_DIO1_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , POLARITY15_0_DIO1_A > ; impl < 'a , REG , const O : u8 > POLARITY15_0_DIO1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn polarity15_0_dio1_disable (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO1_A :: POLARITY15_0_DIO1_DISABLE) } # [doc = "RISE"]
# [inline (always)]
pub fn polarity15_0_dio1_rise (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO1_A :: POLARITY15_0_DIO1_RISE) } # [doc = "FALL"]
# [inline (always)]
pub fn polarity15_0_dio1_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO1_A :: POLARITY15_0_DIO1_FALL) } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn polarity15_0_dio1_rise_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO1_A :: POLARITY15_0_DIO1_RISE_FALL) } } # [doc = "Field `POLARITY15_0_DIO2` reader - Enables and configures edge detection polarity for DIO2."]
pub type POLARITY15_0_DIO2_R = crate :: FieldReader < POLARITY15_0_DIO2_A > ; # [doc = "Enables and configures edge detection polarity for DIO2.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum POLARITY15_0_DIO2_A { # [doc = "0: DISABLE"]
POLARITY15_0_DIO2_DISABLE = 0 , # [doc = "1: RISE"]
POLARITY15_0_DIO2_RISE = 1 , # [doc = "2: FALL"]
POLARITY15_0_DIO2_FALL = 2 , # [doc = "3: RISE_FALL"]
POLARITY15_0_DIO2_RISE_FALL = 3 , } impl From < POLARITY15_0_DIO2_A > for u8 { # [inline (always)]
fn from (variant : POLARITY15_0_DIO2_A) -> Self { variant as _ } } impl crate :: FieldSpec for POLARITY15_0_DIO2_A { type Ux = u8 ; } impl POLARITY15_0_DIO2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> POLARITY15_0_DIO2_A { match self . bits { 0 => POLARITY15_0_DIO2_A :: POLARITY15_0_DIO2_DISABLE , 1 => POLARITY15_0_DIO2_A :: POLARITY15_0_DIO2_RISE , 2 => POLARITY15_0_DIO2_A :: POLARITY15_0_DIO2_FALL , 3 => POLARITY15_0_DIO2_A :: POLARITY15_0_DIO2_RISE_FALL , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_polarity15_0_dio2_disable (& self) -> bool { * self == POLARITY15_0_DIO2_A :: POLARITY15_0_DIO2_DISABLE } # [doc = "RISE"]
# [inline (always)]
pub fn is_polarity15_0_dio2_rise (& self) -> bool { * self == POLARITY15_0_DIO2_A :: POLARITY15_0_DIO2_RISE } # [doc = "FALL"]
# [inline (always)]
pub fn is_polarity15_0_dio2_fall (& self) -> bool { * self == POLARITY15_0_DIO2_A :: POLARITY15_0_DIO2_FALL } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn is_polarity15_0_dio2_rise_fall (& self) -> bool { * self == POLARITY15_0_DIO2_A :: POLARITY15_0_DIO2_RISE_FALL } } # [doc = "Field `POLARITY15_0_DIO2` writer - Enables and configures edge detection polarity for DIO2."]
pub type POLARITY15_0_DIO2_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , POLARITY15_0_DIO2_A > ; impl < 'a , REG , const O : u8 > POLARITY15_0_DIO2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn polarity15_0_dio2_disable (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO2_A :: POLARITY15_0_DIO2_DISABLE) } # [doc = "RISE"]
# [inline (always)]
pub fn polarity15_0_dio2_rise (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO2_A :: POLARITY15_0_DIO2_RISE) } # [doc = "FALL"]
# [inline (always)]
pub fn polarity15_0_dio2_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO2_A :: POLARITY15_0_DIO2_FALL) } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn polarity15_0_dio2_rise_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO2_A :: POLARITY15_0_DIO2_RISE_FALL) } } # [doc = "Field `POLARITY15_0_DIO3` reader - Enables and configures edge detection polarity for DIO3."]
pub type POLARITY15_0_DIO3_R = crate :: FieldReader < POLARITY15_0_DIO3_A > ; # [doc = "Enables and configures edge detection polarity for DIO3.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum POLARITY15_0_DIO3_A { # [doc = "0: DISABLE"]
POLARITY15_0_DIO3_DISABLE = 0 , # [doc = "1: RISE"]
POLARITY15_0_DIO3_RISE = 1 , # [doc = "2: FALL"]
POLARITY15_0_DIO3_FALL = 2 , # [doc = "3: RISE_FALL"]
POLARITY15_0_DIO3_RISE_FALL = 3 , } impl From < POLARITY15_0_DIO3_A > for u8 { # [inline (always)]
fn from (variant : POLARITY15_0_DIO3_A) -> Self { variant as _ } } impl crate :: FieldSpec for POLARITY15_0_DIO3_A { type Ux = u8 ; } impl POLARITY15_0_DIO3_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> POLARITY15_0_DIO3_A { match self . bits { 0 => POLARITY15_0_DIO3_A :: POLARITY15_0_DIO3_DISABLE , 1 => POLARITY15_0_DIO3_A :: POLARITY15_0_DIO3_RISE , 2 => POLARITY15_0_DIO3_A :: POLARITY15_0_DIO3_FALL , 3 => POLARITY15_0_DIO3_A :: POLARITY15_0_DIO3_RISE_FALL , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_polarity15_0_dio3_disable (& self) -> bool { * self == POLARITY15_0_DIO3_A :: POLARITY15_0_DIO3_DISABLE } # [doc = "RISE"]
# [inline (always)]
pub fn is_polarity15_0_dio3_rise (& self) -> bool { * self == POLARITY15_0_DIO3_A :: POLARITY15_0_DIO3_RISE } # [doc = "FALL"]
# [inline (always)]
pub fn is_polarity15_0_dio3_fall (& self) -> bool { * self == POLARITY15_0_DIO3_A :: POLARITY15_0_DIO3_FALL } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn is_polarity15_0_dio3_rise_fall (& self) -> bool { * self == POLARITY15_0_DIO3_A :: POLARITY15_0_DIO3_RISE_FALL } } # [doc = "Field `POLARITY15_0_DIO3` writer - Enables and configures edge detection polarity for DIO3."]
pub type POLARITY15_0_DIO3_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , POLARITY15_0_DIO3_A > ; impl < 'a , REG , const O : u8 > POLARITY15_0_DIO3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn polarity15_0_dio3_disable (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO3_A :: POLARITY15_0_DIO3_DISABLE) } # [doc = "RISE"]
# [inline (always)]
pub fn polarity15_0_dio3_rise (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO3_A :: POLARITY15_0_DIO3_RISE) } # [doc = "FALL"]
# [inline (always)]
pub fn polarity15_0_dio3_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO3_A :: POLARITY15_0_DIO3_FALL) } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn polarity15_0_dio3_rise_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO3_A :: POLARITY15_0_DIO3_RISE_FALL) } } # [doc = "Field `POLARITY15_0_DIO4` reader - Enables and configures edge detection polarity for DIO4."]
pub type POLARITY15_0_DIO4_R = crate :: FieldReader < POLARITY15_0_DIO4_A > ; # [doc = "Enables and configures edge detection polarity for DIO4.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum POLARITY15_0_DIO4_A { # [doc = "0: DISABLE"]
POLARITY15_0_DIO4_DISABLE = 0 , # [doc = "1: RISE"]
POLARITY15_0_DIO4_RISE = 1 , # [doc = "2: FALL"]
POLARITY15_0_DIO4_FALL = 2 , # [doc = "3: RISE_FALL"]
POLARITY15_0_DIO4_RISE_FALL = 3 , } impl From < POLARITY15_0_DIO4_A > for u8 { # [inline (always)]
fn from (variant : POLARITY15_0_DIO4_A) -> Self { variant as _ } } impl crate :: FieldSpec for POLARITY15_0_DIO4_A { type Ux = u8 ; } impl POLARITY15_0_DIO4_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> POLARITY15_0_DIO4_A { match self . bits { 0 => POLARITY15_0_DIO4_A :: POLARITY15_0_DIO4_DISABLE , 1 => POLARITY15_0_DIO4_A :: POLARITY15_0_DIO4_RISE , 2 => POLARITY15_0_DIO4_A :: POLARITY15_0_DIO4_FALL , 3 => POLARITY15_0_DIO4_A :: POLARITY15_0_DIO4_RISE_FALL , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_polarity15_0_dio4_disable (& self) -> bool { * self == POLARITY15_0_DIO4_A :: POLARITY15_0_DIO4_DISABLE } # [doc = "RISE"]
# [inline (always)]
pub fn is_polarity15_0_dio4_rise (& self) -> bool { * self == POLARITY15_0_DIO4_A :: POLARITY15_0_DIO4_RISE } # [doc = "FALL"]
# [inline (always)]
pub fn is_polarity15_0_dio4_fall (& self) -> bool { * self == POLARITY15_0_DIO4_A :: POLARITY15_0_DIO4_FALL } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn is_polarity15_0_dio4_rise_fall (& self) -> bool { * self == POLARITY15_0_DIO4_A :: POLARITY15_0_DIO4_RISE_FALL } } # [doc = "Field `POLARITY15_0_DIO4` writer - Enables and configures edge detection polarity for DIO4."]
pub type POLARITY15_0_DIO4_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , POLARITY15_0_DIO4_A > ; impl < 'a , REG , const O : u8 > POLARITY15_0_DIO4_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn polarity15_0_dio4_disable (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO4_A :: POLARITY15_0_DIO4_DISABLE) } # [doc = "RISE"]
# [inline (always)]
pub fn polarity15_0_dio4_rise (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO4_A :: POLARITY15_0_DIO4_RISE) } # [doc = "FALL"]
# [inline (always)]
pub fn polarity15_0_dio4_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO4_A :: POLARITY15_0_DIO4_FALL) } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn polarity15_0_dio4_rise_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO4_A :: POLARITY15_0_DIO4_RISE_FALL) } } # [doc = "Field `POLARITY15_0_DIO5` reader - Enables and configures edge detection polarity for DIO5."]
pub type POLARITY15_0_DIO5_R = crate :: FieldReader < POLARITY15_0_DIO5_A > ; # [doc = "Enables and configures edge detection polarity for DIO5.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum POLARITY15_0_DIO5_A { # [doc = "0: DISABLE"]
POLARITY15_0_DIO5_DISABLE = 0 , # [doc = "1: RISE"]
POLARITY15_0_DIO5_RISE = 1 , # [doc = "2: FALL"]
POLARITY15_0_DIO5_FALL = 2 , # [doc = "3: RISE_FALL"]
POLARITY15_0_DIO5_RISE_FALL = 3 , } impl From < POLARITY15_0_DIO5_A > for u8 { # [inline (always)]
fn from (variant : POLARITY15_0_DIO5_A) -> Self { variant as _ } } impl crate :: FieldSpec for POLARITY15_0_DIO5_A { type Ux = u8 ; } impl POLARITY15_0_DIO5_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> POLARITY15_0_DIO5_A { match self . bits { 0 => POLARITY15_0_DIO5_A :: POLARITY15_0_DIO5_DISABLE , 1 => POLARITY15_0_DIO5_A :: POLARITY15_0_DIO5_RISE , 2 => POLARITY15_0_DIO5_A :: POLARITY15_0_DIO5_FALL , 3 => POLARITY15_0_DIO5_A :: POLARITY15_0_DIO5_RISE_FALL , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_polarity15_0_dio5_disable (& self) -> bool { * self == POLARITY15_0_DIO5_A :: POLARITY15_0_DIO5_DISABLE } # [doc = "RISE"]
# [inline (always)]
pub fn is_polarity15_0_dio5_rise (& self) -> bool { * self == POLARITY15_0_DIO5_A :: POLARITY15_0_DIO5_RISE } # [doc = "FALL"]
# [inline (always)]
pub fn is_polarity15_0_dio5_fall (& self) -> bool { * self == POLARITY15_0_DIO5_A :: POLARITY15_0_DIO5_FALL } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn is_polarity15_0_dio5_rise_fall (& self) -> bool { * self == POLARITY15_0_DIO5_A :: POLARITY15_0_DIO5_RISE_FALL } } # [doc = "Field `POLARITY15_0_DIO5` writer - Enables and configures edge detection polarity for DIO5."]
pub type POLARITY15_0_DIO5_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , POLARITY15_0_DIO5_A > ; impl < 'a , REG , const O : u8 > POLARITY15_0_DIO5_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn polarity15_0_dio5_disable (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO5_A :: POLARITY15_0_DIO5_DISABLE) } # [doc = "RISE"]
# [inline (always)]
pub fn polarity15_0_dio5_rise (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO5_A :: POLARITY15_0_DIO5_RISE) } # [doc = "FALL"]
# [inline (always)]
pub fn polarity15_0_dio5_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO5_A :: POLARITY15_0_DIO5_FALL) } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn polarity15_0_dio5_rise_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO5_A :: POLARITY15_0_DIO5_RISE_FALL) } } # [doc = "Field `POLARITY15_0_DIO6` reader - Enables and configures edge detection polarity for DIO6."]
pub type POLARITY15_0_DIO6_R = crate :: FieldReader < POLARITY15_0_DIO6_A > ; # [doc = "Enables and configures edge detection polarity for DIO6.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum POLARITY15_0_DIO6_A { # [doc = "0: DISABLE"]
POLARITY15_0_DIO6_DISABLE = 0 , # [doc = "1: RISE"]
POLARITY15_0_DIO6_RISE = 1 , # [doc = "2: FALL"]
POLARITY15_0_DIO6_FALL = 2 , # [doc = "3: RISE_FALL"]
POLARITY15_0_DIO6_RISE_FALL = 3 , } impl From < POLARITY15_0_DIO6_A > for u8 { # [inline (always)]
fn from (variant : POLARITY15_0_DIO6_A) -> Self { variant as _ } } impl crate :: FieldSpec for POLARITY15_0_DIO6_A { type Ux = u8 ; } impl POLARITY15_0_DIO6_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> POLARITY15_0_DIO6_A { match self . bits { 0 => POLARITY15_0_DIO6_A :: POLARITY15_0_DIO6_DISABLE , 1 => POLARITY15_0_DIO6_A :: POLARITY15_0_DIO6_RISE , 2 => POLARITY15_0_DIO6_A :: POLARITY15_0_DIO6_FALL , 3 => POLARITY15_0_DIO6_A :: POLARITY15_0_DIO6_RISE_FALL , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_polarity15_0_dio6_disable (& self) -> bool { * self == POLARITY15_0_DIO6_A :: POLARITY15_0_DIO6_DISABLE } # [doc = "RISE"]
# [inline (always)]
pub fn is_polarity15_0_dio6_rise (& self) -> bool { * self == POLARITY15_0_DIO6_A :: POLARITY15_0_DIO6_RISE } # [doc = "FALL"]
# [inline (always)]
pub fn is_polarity15_0_dio6_fall (& self) -> bool { * self == POLARITY15_0_DIO6_A :: POLARITY15_0_DIO6_FALL } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn is_polarity15_0_dio6_rise_fall (& self) -> bool { * self == POLARITY15_0_DIO6_A :: POLARITY15_0_DIO6_RISE_FALL } } # [doc = "Field `POLARITY15_0_DIO6` writer - Enables and configures edge detection polarity for DIO6."]
pub type POLARITY15_0_DIO6_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , POLARITY15_0_DIO6_A > ; impl < 'a , REG , const O : u8 > POLARITY15_0_DIO6_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn polarity15_0_dio6_disable (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO6_A :: POLARITY15_0_DIO6_DISABLE) } # [doc = "RISE"]
# [inline (always)]
pub fn polarity15_0_dio6_rise (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO6_A :: POLARITY15_0_DIO6_RISE) } # [doc = "FALL"]
# [inline (always)]
pub fn polarity15_0_dio6_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO6_A :: POLARITY15_0_DIO6_FALL) } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn polarity15_0_dio6_rise_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO6_A :: POLARITY15_0_DIO6_RISE_FALL) } } # [doc = "Field `POLARITY15_0_DIO7` reader - Enables and configures edge detection polarity for DIO7."]
pub type POLARITY15_0_DIO7_R = crate :: FieldReader < POLARITY15_0_DIO7_A > ; # [doc = "Enables and configures edge detection polarity for DIO7.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum POLARITY15_0_DIO7_A { # [doc = "0: DISABLE"]
POLARITY15_0_DIO7_DISABLE = 0 , # [doc = "1: RISE"]
POLARITY15_0_DIO7_RISE = 1 , # [doc = "2: FALL"]
POLARITY15_0_DIO7_FALL = 2 , # [doc = "3: RISE_FALL"]
POLARITY15_0_DIO7_RISE_FALL = 3 , } impl From < POLARITY15_0_DIO7_A > for u8 { # [inline (always)]
fn from (variant : POLARITY15_0_DIO7_A) -> Self { variant as _ } } impl crate :: FieldSpec for POLARITY15_0_DIO7_A { type Ux = u8 ; } impl POLARITY15_0_DIO7_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> POLARITY15_0_DIO7_A { match self . bits { 0 => POLARITY15_0_DIO7_A :: POLARITY15_0_DIO7_DISABLE , 1 => POLARITY15_0_DIO7_A :: POLARITY15_0_DIO7_RISE , 2 => POLARITY15_0_DIO7_A :: POLARITY15_0_DIO7_FALL , 3 => POLARITY15_0_DIO7_A :: POLARITY15_0_DIO7_RISE_FALL , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_polarity15_0_dio7_disable (& self) -> bool { * self == POLARITY15_0_DIO7_A :: POLARITY15_0_DIO7_DISABLE } # [doc = "RISE"]
# [inline (always)]
pub fn is_polarity15_0_dio7_rise (& self) -> bool { * self == POLARITY15_0_DIO7_A :: POLARITY15_0_DIO7_RISE } # [doc = "FALL"]
# [inline (always)]
pub fn is_polarity15_0_dio7_fall (& self) -> bool { * self == POLARITY15_0_DIO7_A :: POLARITY15_0_DIO7_FALL } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn is_polarity15_0_dio7_rise_fall (& self) -> bool { * self == POLARITY15_0_DIO7_A :: POLARITY15_0_DIO7_RISE_FALL } } # [doc = "Field `POLARITY15_0_DIO7` writer - Enables and configures edge detection polarity for DIO7."]
pub type POLARITY15_0_DIO7_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , POLARITY15_0_DIO7_A > ; impl < 'a , REG , const O : u8 > POLARITY15_0_DIO7_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn polarity15_0_dio7_disable (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO7_A :: POLARITY15_0_DIO7_DISABLE) } # [doc = "RISE"]
# [inline (always)]
pub fn polarity15_0_dio7_rise (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO7_A :: POLARITY15_0_DIO7_RISE) } # [doc = "FALL"]
# [inline (always)]
pub fn polarity15_0_dio7_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO7_A :: POLARITY15_0_DIO7_FALL) } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn polarity15_0_dio7_rise_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO7_A :: POLARITY15_0_DIO7_RISE_FALL) } } # [doc = "Field `POLARITY15_0_DIO8` reader - Enables and configures edge detection polarity for DIO8."]
pub type POLARITY15_0_DIO8_R = crate :: FieldReader < POLARITY15_0_DIO8_A > ; # [doc = "Enables and configures edge detection polarity for DIO8.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum POLARITY15_0_DIO8_A { # [doc = "0: DISABLE"]
POLARITY15_0_DIO8_DISABLE = 0 , # [doc = "1: RISE"]
POLARITY15_0_DIO8_RISE = 1 , # [doc = "2: FALL"]
POLARITY15_0_DIO8_FALL = 2 , # [doc = "3: RISE_FALL"]
POLARITY15_0_DIO8_RISE_FALL = 3 , } impl From < POLARITY15_0_DIO8_A > for u8 { # [inline (always)]
fn from (variant : POLARITY15_0_DIO8_A) -> Self { variant as _ } } impl crate :: FieldSpec for POLARITY15_0_DIO8_A { type Ux = u8 ; } impl POLARITY15_0_DIO8_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> POLARITY15_0_DIO8_A { match self . bits { 0 => POLARITY15_0_DIO8_A :: POLARITY15_0_DIO8_DISABLE , 1 => POLARITY15_0_DIO8_A :: POLARITY15_0_DIO8_RISE , 2 => POLARITY15_0_DIO8_A :: POLARITY15_0_DIO8_FALL , 3 => POLARITY15_0_DIO8_A :: POLARITY15_0_DIO8_RISE_FALL , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_polarity15_0_dio8_disable (& self) -> bool { * self == POLARITY15_0_DIO8_A :: POLARITY15_0_DIO8_DISABLE } # [doc = "RISE"]
# [inline (always)]
pub fn is_polarity15_0_dio8_rise (& self) -> bool { * self == POLARITY15_0_DIO8_A :: POLARITY15_0_DIO8_RISE } # [doc = "FALL"]
# [inline (always)]
pub fn is_polarity15_0_dio8_fall (& self) -> bool { * self == POLARITY15_0_DIO8_A :: POLARITY15_0_DIO8_FALL } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn is_polarity15_0_dio8_rise_fall (& self) -> bool { * self == POLARITY15_0_DIO8_A :: POLARITY15_0_DIO8_RISE_FALL } } # [doc = "Field `POLARITY15_0_DIO8` writer - Enables and configures edge detection polarity for DIO8."]
pub type POLARITY15_0_DIO8_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , POLARITY15_0_DIO8_A > ; impl < 'a , REG , const O : u8 > POLARITY15_0_DIO8_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn polarity15_0_dio8_disable (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO8_A :: POLARITY15_0_DIO8_DISABLE) } # [doc = "RISE"]
# [inline (always)]
pub fn polarity15_0_dio8_rise (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO8_A :: POLARITY15_0_DIO8_RISE) } # [doc = "FALL"]
# [inline (always)]
pub fn polarity15_0_dio8_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO8_A :: POLARITY15_0_DIO8_FALL) } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn polarity15_0_dio8_rise_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO8_A :: POLARITY15_0_DIO8_RISE_FALL) } } # [doc = "Field `POLARITY15_0_DIO9` reader - Enables and configures edge detection polarity for DIO9."]
pub type POLARITY15_0_DIO9_R = crate :: FieldReader < POLARITY15_0_DIO9_A > ; # [doc = "Enables and configures edge detection polarity for DIO9.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum POLARITY15_0_DIO9_A { # [doc = "0: DISABLE"]
POLARITY15_0_DIO9_DISABLE = 0 , # [doc = "1: RISE"]
POLARITY15_0_DIO9_RISE = 1 , # [doc = "2: FALL"]
POLARITY15_0_DIO9_FALL = 2 , # [doc = "3: RISE_FALL"]
POLARITY15_0_DIO9_RISE_FALL = 3 , } impl From < POLARITY15_0_DIO9_A > for u8 { # [inline (always)]
fn from (variant : POLARITY15_0_DIO9_A) -> Self { variant as _ } } impl crate :: FieldSpec for POLARITY15_0_DIO9_A { type Ux = u8 ; } impl POLARITY15_0_DIO9_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> POLARITY15_0_DIO9_A { match self . bits { 0 => POLARITY15_0_DIO9_A :: POLARITY15_0_DIO9_DISABLE , 1 => POLARITY15_0_DIO9_A :: POLARITY15_0_DIO9_RISE , 2 => POLARITY15_0_DIO9_A :: POLARITY15_0_DIO9_FALL , 3 => POLARITY15_0_DIO9_A :: POLARITY15_0_DIO9_RISE_FALL , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_polarity15_0_dio9_disable (& self) -> bool { * self == POLARITY15_0_DIO9_A :: POLARITY15_0_DIO9_DISABLE } # [doc = "RISE"]
# [inline (always)]
pub fn is_polarity15_0_dio9_rise (& self) -> bool { * self == POLARITY15_0_DIO9_A :: POLARITY15_0_DIO9_RISE } # [doc = "FALL"]
# [inline (always)]
pub fn is_polarity15_0_dio9_fall (& self) -> bool { * self == POLARITY15_0_DIO9_A :: POLARITY15_0_DIO9_FALL } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn is_polarity15_0_dio9_rise_fall (& self) -> bool { * self == POLARITY15_0_DIO9_A :: POLARITY15_0_DIO9_RISE_FALL } } # [doc = "Field `POLARITY15_0_DIO9` writer - Enables and configures edge detection polarity for DIO9."]
pub type POLARITY15_0_DIO9_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , POLARITY15_0_DIO9_A > ; impl < 'a , REG , const O : u8 > POLARITY15_0_DIO9_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn polarity15_0_dio9_disable (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO9_A :: POLARITY15_0_DIO9_DISABLE) } # [doc = "RISE"]
# [inline (always)]
pub fn polarity15_0_dio9_rise (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO9_A :: POLARITY15_0_DIO9_RISE) } # [doc = "FALL"]
# [inline (always)]
pub fn polarity15_0_dio9_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO9_A :: POLARITY15_0_DIO9_FALL) } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn polarity15_0_dio9_rise_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO9_A :: POLARITY15_0_DIO9_RISE_FALL) } } # [doc = "Field `POLARITY15_0_DIO10` reader - Enables and configures edge detection polarity for DIO10."]
pub type POLARITY15_0_DIO10_R = crate :: FieldReader < POLARITY15_0_DIO10_A > ; # [doc = "Enables and configures edge detection polarity for DIO10.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum POLARITY15_0_DIO10_A { # [doc = "0: DISABLE"]
POLARITY15_0_DIO10_DISABLE = 0 , # [doc = "1: RISE"]
POLARITY15_0_DIO10_RISE = 1 , # [doc = "2: FALL"]
POLARITY15_0_DIO10_FALL = 2 , # [doc = "3: RISE_FALL"]
POLARITY15_0_DIO10_RISE_FALL = 3 , } impl From < POLARITY15_0_DIO10_A > for u8 { # [inline (always)]
fn from (variant : POLARITY15_0_DIO10_A) -> Self { variant as _ } } impl crate :: FieldSpec for POLARITY15_0_DIO10_A { type Ux = u8 ; } impl POLARITY15_0_DIO10_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> POLARITY15_0_DIO10_A { match self . bits { 0 => POLARITY15_0_DIO10_A :: POLARITY15_0_DIO10_DISABLE , 1 => POLARITY15_0_DIO10_A :: POLARITY15_0_DIO10_RISE , 2 => POLARITY15_0_DIO10_A :: POLARITY15_0_DIO10_FALL , 3 => POLARITY15_0_DIO10_A :: POLARITY15_0_DIO10_RISE_FALL , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_polarity15_0_dio10_disable (& self) -> bool { * self == POLARITY15_0_DIO10_A :: POLARITY15_0_DIO10_DISABLE } # [doc = "RISE"]
# [inline (always)]
pub fn is_polarity15_0_dio10_rise (& self) -> bool { * self == POLARITY15_0_DIO10_A :: POLARITY15_0_DIO10_RISE } # [doc = "FALL"]
# [inline (always)]
pub fn is_polarity15_0_dio10_fall (& self) -> bool { * self == POLARITY15_0_DIO10_A :: POLARITY15_0_DIO10_FALL } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn is_polarity15_0_dio10_rise_fall (& self) -> bool { * self == POLARITY15_0_DIO10_A :: POLARITY15_0_DIO10_RISE_FALL } } # [doc = "Field `POLARITY15_0_DIO10` writer - Enables and configures edge detection polarity for DIO10."]
pub type POLARITY15_0_DIO10_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , POLARITY15_0_DIO10_A > ; impl < 'a , REG , const O : u8 > POLARITY15_0_DIO10_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn polarity15_0_dio10_disable (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO10_A :: POLARITY15_0_DIO10_DISABLE) } # [doc = "RISE"]
# [inline (always)]
pub fn polarity15_0_dio10_rise (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO10_A :: POLARITY15_0_DIO10_RISE) } # [doc = "FALL"]
# [inline (always)]
pub fn polarity15_0_dio10_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO10_A :: POLARITY15_0_DIO10_FALL) } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn polarity15_0_dio10_rise_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO10_A :: POLARITY15_0_DIO10_RISE_FALL) } } # [doc = "Field `POLARITY15_0_DIO11` reader - Enables and configures edge detection polarity for DIO11."]
pub type POLARITY15_0_DIO11_R = crate :: FieldReader < POLARITY15_0_DIO11_A > ; # [doc = "Enables and configures edge detection polarity for DIO11.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum POLARITY15_0_DIO11_A { # [doc = "0: DISABLE"]
POLARITY15_0_DIO11_DISABLE = 0 , # [doc = "1: RISE"]
POLARITY15_0_DIO11_RISE = 1 , # [doc = "2: FALL"]
POLARITY15_0_DIO11_FALL = 2 , # [doc = "3: RISE_FALL"]
POLARITY15_0_DIO11_RISE_FALL = 3 , } impl From < POLARITY15_0_DIO11_A > for u8 { # [inline (always)]
fn from (variant : POLARITY15_0_DIO11_A) -> Self { variant as _ } } impl crate :: FieldSpec for POLARITY15_0_DIO11_A { type Ux = u8 ; } impl POLARITY15_0_DIO11_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> POLARITY15_0_DIO11_A { match self . bits { 0 => POLARITY15_0_DIO11_A :: POLARITY15_0_DIO11_DISABLE , 1 => POLARITY15_0_DIO11_A :: POLARITY15_0_DIO11_RISE , 2 => POLARITY15_0_DIO11_A :: POLARITY15_0_DIO11_FALL , 3 => POLARITY15_0_DIO11_A :: POLARITY15_0_DIO11_RISE_FALL , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_polarity15_0_dio11_disable (& self) -> bool { * self == POLARITY15_0_DIO11_A :: POLARITY15_0_DIO11_DISABLE } # [doc = "RISE"]
# [inline (always)]
pub fn is_polarity15_0_dio11_rise (& self) -> bool { * self == POLARITY15_0_DIO11_A :: POLARITY15_0_DIO11_RISE } # [doc = "FALL"]
# [inline (always)]
pub fn is_polarity15_0_dio11_fall (& self) -> bool { * self == POLARITY15_0_DIO11_A :: POLARITY15_0_DIO11_FALL } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn is_polarity15_0_dio11_rise_fall (& self) -> bool { * self == POLARITY15_0_DIO11_A :: POLARITY15_0_DIO11_RISE_FALL } } # [doc = "Field `POLARITY15_0_DIO11` writer - Enables and configures edge detection polarity for DIO11."]
pub type POLARITY15_0_DIO11_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , POLARITY15_0_DIO11_A > ; impl < 'a , REG , const O : u8 > POLARITY15_0_DIO11_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn polarity15_0_dio11_disable (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO11_A :: POLARITY15_0_DIO11_DISABLE) } # [doc = "RISE"]
# [inline (always)]
pub fn polarity15_0_dio11_rise (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO11_A :: POLARITY15_0_DIO11_RISE) } # [doc = "FALL"]
# [inline (always)]
pub fn polarity15_0_dio11_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO11_A :: POLARITY15_0_DIO11_FALL) } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn polarity15_0_dio11_rise_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO11_A :: POLARITY15_0_DIO11_RISE_FALL) } } # [doc = "Field `POLARITY15_0_DIO12` reader - Enables and configures edge detection polarity for DIO12."]
pub type POLARITY15_0_DIO12_R = crate :: FieldReader < POLARITY15_0_DIO12_A > ; # [doc = "Enables and configures edge detection polarity for DIO12.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum POLARITY15_0_DIO12_A { # [doc = "0: DISABLE"]
POLARITY15_0_DIO12_DISABLE = 0 , # [doc = "1: RISE"]
POLARITY15_0_DIO12_RISE = 1 , # [doc = "2: FALL"]
POLARITY15_0_DIO12_FALL = 2 , # [doc = "3: RISE_FALL"]
POLARITY15_0_DIO12_RISE_FALL = 3 , } impl From < POLARITY15_0_DIO12_A > for u8 { # [inline (always)]
fn from (variant : POLARITY15_0_DIO12_A) -> Self { variant as _ } } impl crate :: FieldSpec for POLARITY15_0_DIO12_A { type Ux = u8 ; } impl POLARITY15_0_DIO12_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> POLARITY15_0_DIO12_A { match self . bits { 0 => POLARITY15_0_DIO12_A :: POLARITY15_0_DIO12_DISABLE , 1 => POLARITY15_0_DIO12_A :: POLARITY15_0_DIO12_RISE , 2 => POLARITY15_0_DIO12_A :: POLARITY15_0_DIO12_FALL , 3 => POLARITY15_0_DIO12_A :: POLARITY15_0_DIO12_RISE_FALL , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_polarity15_0_dio12_disable (& self) -> bool { * self == POLARITY15_0_DIO12_A :: POLARITY15_0_DIO12_DISABLE } # [doc = "RISE"]
# [inline (always)]
pub fn is_polarity15_0_dio12_rise (& self) -> bool { * self == POLARITY15_0_DIO12_A :: POLARITY15_0_DIO12_RISE } # [doc = "FALL"]
# [inline (always)]
pub fn is_polarity15_0_dio12_fall (& self) -> bool { * self == POLARITY15_0_DIO12_A :: POLARITY15_0_DIO12_FALL } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn is_polarity15_0_dio12_rise_fall (& self) -> bool { * self == POLARITY15_0_DIO12_A :: POLARITY15_0_DIO12_RISE_FALL } } # [doc = "Field `POLARITY15_0_DIO12` writer - Enables and configures edge detection polarity for DIO12."]
pub type POLARITY15_0_DIO12_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , POLARITY15_0_DIO12_A > ; impl < 'a , REG , const O : u8 > POLARITY15_0_DIO12_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn polarity15_0_dio12_disable (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO12_A :: POLARITY15_0_DIO12_DISABLE) } # [doc = "RISE"]
# [inline (always)]
pub fn polarity15_0_dio12_rise (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO12_A :: POLARITY15_0_DIO12_RISE) } # [doc = "FALL"]
# [inline (always)]
pub fn polarity15_0_dio12_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO12_A :: POLARITY15_0_DIO12_FALL) } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn polarity15_0_dio12_rise_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO12_A :: POLARITY15_0_DIO12_RISE_FALL) } } # [doc = "Field `POLARITY15_0_DIO13` reader - Enables and configures edge detection polarity for DIO13."]
pub type POLARITY15_0_DIO13_R = crate :: FieldReader < POLARITY15_0_DIO13_A > ; # [doc = "Enables and configures edge detection polarity for DIO13.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum POLARITY15_0_DIO13_A { # [doc = "0: DISABLE"]
POLARITY15_0_DIO13_DISABLE = 0 , # [doc = "1: RISE"]
POLARITY15_0_DIO13_RISE = 1 , # [doc = "2: FALL"]
POLARITY15_0_DIO13_FALL = 2 , # [doc = "3: RISE_FALL"]
POLARITY15_0_DIO13_RISE_FALL = 3 , } impl From < POLARITY15_0_DIO13_A > for u8 { # [inline (always)]
fn from (variant : POLARITY15_0_DIO13_A) -> Self { variant as _ } } impl crate :: FieldSpec for POLARITY15_0_DIO13_A { type Ux = u8 ; } impl POLARITY15_0_DIO13_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> POLARITY15_0_DIO13_A { match self . bits { 0 => POLARITY15_0_DIO13_A :: POLARITY15_0_DIO13_DISABLE , 1 => POLARITY15_0_DIO13_A :: POLARITY15_0_DIO13_RISE , 2 => POLARITY15_0_DIO13_A :: POLARITY15_0_DIO13_FALL , 3 => POLARITY15_0_DIO13_A :: POLARITY15_0_DIO13_RISE_FALL , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_polarity15_0_dio13_disable (& self) -> bool { * self == POLARITY15_0_DIO13_A :: POLARITY15_0_DIO13_DISABLE } # [doc = "RISE"]
# [inline (always)]
pub fn is_polarity15_0_dio13_rise (& self) -> bool { * self == POLARITY15_0_DIO13_A :: POLARITY15_0_DIO13_RISE } # [doc = "FALL"]
# [inline (always)]
pub fn is_polarity15_0_dio13_fall (& self) -> bool { * self == POLARITY15_0_DIO13_A :: POLARITY15_0_DIO13_FALL } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn is_polarity15_0_dio13_rise_fall (& self) -> bool { * self == POLARITY15_0_DIO13_A :: POLARITY15_0_DIO13_RISE_FALL } } # [doc = "Field `POLARITY15_0_DIO13` writer - Enables and configures edge detection polarity for DIO13."]
pub type POLARITY15_0_DIO13_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , POLARITY15_0_DIO13_A > ; impl < 'a , REG , const O : u8 > POLARITY15_0_DIO13_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn polarity15_0_dio13_disable (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO13_A :: POLARITY15_0_DIO13_DISABLE) } # [doc = "RISE"]
# [inline (always)]
pub fn polarity15_0_dio13_rise (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO13_A :: POLARITY15_0_DIO13_RISE) } # [doc = "FALL"]
# [inline (always)]
pub fn polarity15_0_dio13_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO13_A :: POLARITY15_0_DIO13_FALL) } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn polarity15_0_dio13_rise_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO13_A :: POLARITY15_0_DIO13_RISE_FALL) } } # [doc = "Field `POLARITY15_0_DIO14` reader - Enables and configures edge detection polarity for DIO14."]
pub type POLARITY15_0_DIO14_R = crate :: FieldReader < POLARITY15_0_DIO14_A > ; # [doc = "Enables and configures edge detection polarity for DIO14.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum POLARITY15_0_DIO14_A { # [doc = "0: DISABLE"]
POLARITY15_0_DIO14_DISABLE = 0 , # [doc = "1: RISE"]
POLARITY15_0_DIO14_RISE = 1 , # [doc = "2: FALL"]
POLARITY15_0_DIO14_FALL = 2 , # [doc = "3: RISE_FALL"]
POLARITY15_0_DIO14_RISE_FALL = 3 , } impl From < POLARITY15_0_DIO14_A > for u8 { # [inline (always)]
fn from (variant : POLARITY15_0_DIO14_A) -> Self { variant as _ } } impl crate :: FieldSpec for POLARITY15_0_DIO14_A { type Ux = u8 ; } impl POLARITY15_0_DIO14_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> POLARITY15_0_DIO14_A { match self . bits { 0 => POLARITY15_0_DIO14_A :: POLARITY15_0_DIO14_DISABLE , 1 => POLARITY15_0_DIO14_A :: POLARITY15_0_DIO14_RISE , 2 => POLARITY15_0_DIO14_A :: POLARITY15_0_DIO14_FALL , 3 => POLARITY15_0_DIO14_A :: POLARITY15_0_DIO14_RISE_FALL , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_polarity15_0_dio14_disable (& self) -> bool { * self == POLARITY15_0_DIO14_A :: POLARITY15_0_DIO14_DISABLE } # [doc = "RISE"]
# [inline (always)]
pub fn is_polarity15_0_dio14_rise (& self) -> bool { * self == POLARITY15_0_DIO14_A :: POLARITY15_0_DIO14_RISE } # [doc = "FALL"]
# [inline (always)]
pub fn is_polarity15_0_dio14_fall (& self) -> bool { * self == POLARITY15_0_DIO14_A :: POLARITY15_0_DIO14_FALL } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn is_polarity15_0_dio14_rise_fall (& self) -> bool { * self == POLARITY15_0_DIO14_A :: POLARITY15_0_DIO14_RISE_FALL } } # [doc = "Field `POLARITY15_0_DIO14` writer - Enables and configures edge detection polarity for DIO14."]
pub type POLARITY15_0_DIO14_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , POLARITY15_0_DIO14_A > ; impl < 'a , REG , const O : u8 > POLARITY15_0_DIO14_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn polarity15_0_dio14_disable (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO14_A :: POLARITY15_0_DIO14_DISABLE) } # [doc = "RISE"]
# [inline (always)]
pub fn polarity15_0_dio14_rise (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO14_A :: POLARITY15_0_DIO14_RISE) } # [doc = "FALL"]
# [inline (always)]
pub fn polarity15_0_dio14_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO14_A :: POLARITY15_0_DIO14_FALL) } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn polarity15_0_dio14_rise_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO14_A :: POLARITY15_0_DIO14_RISE_FALL) } } # [doc = "Field `POLARITY15_0_DIO15` reader - Enables and configures edge detection polarity for DIO15."]
pub type POLARITY15_0_DIO15_R = crate :: FieldReader < POLARITY15_0_DIO15_A > ; # [doc = "Enables and configures edge detection polarity for DIO15.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum POLARITY15_0_DIO15_A { # [doc = "0: DISABLE"]
POLARITY15_0_DIO15_DISABLE = 0 , # [doc = "1: RISE"]
POLARITY15_0_DIO15_RISE = 1 , # [doc = "2: FALL"]
POLARITY15_0_DIO15_FALL = 2 , # [doc = "3: RISE_FALL"]
POLARITY15_0_DIO15_RISE_FALL = 3 , } impl From < POLARITY15_0_DIO15_A > for u8 { # [inline (always)]
fn from (variant : POLARITY15_0_DIO15_A) -> Self { variant as _ } } impl crate :: FieldSpec for POLARITY15_0_DIO15_A { type Ux = u8 ; } impl POLARITY15_0_DIO15_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> POLARITY15_0_DIO15_A { match self . bits { 0 => POLARITY15_0_DIO15_A :: POLARITY15_0_DIO15_DISABLE , 1 => POLARITY15_0_DIO15_A :: POLARITY15_0_DIO15_RISE , 2 => POLARITY15_0_DIO15_A :: POLARITY15_0_DIO15_FALL , 3 => POLARITY15_0_DIO15_A :: POLARITY15_0_DIO15_RISE_FALL , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_polarity15_0_dio15_disable (& self) -> bool { * self == POLARITY15_0_DIO15_A :: POLARITY15_0_DIO15_DISABLE } # [doc = "RISE"]
# [inline (always)]
pub fn is_polarity15_0_dio15_rise (& self) -> bool { * self == POLARITY15_0_DIO15_A :: POLARITY15_0_DIO15_RISE } # [doc = "FALL"]
# [inline (always)]
pub fn is_polarity15_0_dio15_fall (& self) -> bool { * self == POLARITY15_0_DIO15_A :: POLARITY15_0_DIO15_FALL } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn is_polarity15_0_dio15_rise_fall (& self) -> bool { * self == POLARITY15_0_DIO15_A :: POLARITY15_0_DIO15_RISE_FALL } } # [doc = "Field `POLARITY15_0_DIO15` writer - Enables and configures edge detection polarity for DIO15."]
pub type POLARITY15_0_DIO15_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , POLARITY15_0_DIO15_A > ; impl < 'a , REG , const O : u8 > POLARITY15_0_DIO15_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn polarity15_0_dio15_disable (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO15_A :: POLARITY15_0_DIO15_DISABLE) } # [doc = "RISE"]
# [inline (always)]
pub fn polarity15_0_dio15_rise (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO15_A :: POLARITY15_0_DIO15_RISE) } # [doc = "FALL"]
# [inline (always)]
pub fn polarity15_0_dio15_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO15_A :: POLARITY15_0_DIO15_FALL) } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn polarity15_0_dio15_rise_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY15_0_DIO15_A :: POLARITY15_0_DIO15_RISE_FALL) } } impl R { # [doc = "Bits 0:1 - Enables and configures edge detection polarity for DIO0."]
# [inline (always)]
pub fn polarity15_0_dio0 (& self) -> POLARITY15_0_DIO0_R { POLARITY15_0_DIO0_R :: new ((self . bits & 3) as u8) } # [doc = "Bits 2:3 - Enables and configures edge detection polarity for DIO1."]
# [inline (always)]
pub fn polarity15_0_dio1 (& self) -> POLARITY15_0_DIO1_R { POLARITY15_0_DIO1_R :: new (((self . bits >> 2) & 3) as u8) } # [doc = "Bits 4:5 - Enables and configures edge detection polarity for DIO2."]
# [inline (always)]
pub fn polarity15_0_dio2 (& self) -> POLARITY15_0_DIO2_R { POLARITY15_0_DIO2_R :: new (((self . bits >> 4) & 3) as u8) } # [doc = "Bits 6:7 - Enables and configures edge detection polarity for DIO3."]
# [inline (always)]
pub fn polarity15_0_dio3 (& self) -> POLARITY15_0_DIO3_R { POLARITY15_0_DIO3_R :: new (((self . bits >> 6) & 3) as u8) } # [doc = "Bits 8:9 - Enables and configures edge detection polarity for DIO4."]
# [inline (always)]
pub fn polarity15_0_dio4 (& self) -> POLARITY15_0_DIO4_R { POLARITY15_0_DIO4_R :: new (((self . bits >> 8) & 3) as u8) } # [doc = "Bits 10:11 - Enables and configures edge detection polarity for DIO5."]
# [inline (always)]
pub fn polarity15_0_dio5 (& self) -> POLARITY15_0_DIO5_R { POLARITY15_0_DIO5_R :: new (((self . bits >> 10) & 3) as u8) } # [doc = "Bits 12:13 - Enables and configures edge detection polarity for DIO6."]
# [inline (always)]
pub fn polarity15_0_dio6 (& self) -> POLARITY15_0_DIO6_R { POLARITY15_0_DIO6_R :: new (((self . bits >> 12) & 3) as u8) } # [doc = "Bits 14:15 - Enables and configures edge detection polarity for DIO7."]
# [inline (always)]
pub fn polarity15_0_dio7 (& self) -> POLARITY15_0_DIO7_R { POLARITY15_0_DIO7_R :: new (((self . bits >> 14) & 3) as u8) } # [doc = "Bits 16:17 - Enables and configures edge detection polarity for DIO8."]
# [inline (always)]
pub fn polarity15_0_dio8 (& self) -> POLARITY15_0_DIO8_R { POLARITY15_0_DIO8_R :: new (((self . bits >> 16) & 3) as u8) } # [doc = "Bits 18:19 - Enables and configures edge detection polarity for DIO9."]
# [inline (always)]
pub fn polarity15_0_dio9 (& self) -> POLARITY15_0_DIO9_R { POLARITY15_0_DIO9_R :: new (((self . bits >> 18) & 3) as u8) } # [doc = "Bits 20:21 - Enables and configures edge detection polarity for DIO10."]
# [inline (always)]
pub fn polarity15_0_dio10 (& self) -> POLARITY15_0_DIO10_R { POLARITY15_0_DIO10_R :: new (((self . bits >> 20) & 3) as u8) } # [doc = "Bits 22:23 - Enables and configures edge detection polarity for DIO11."]
# [inline (always)]
pub fn polarity15_0_dio11 (& self) -> POLARITY15_0_DIO11_R { POLARITY15_0_DIO11_R :: new (((self . bits >> 22) & 3) as u8) } # [doc = "Bits 24:25 - Enables and configures edge detection polarity for DIO12."]
# [inline (always)]
pub fn polarity15_0_dio12 (& self) -> POLARITY15_0_DIO12_R { POLARITY15_0_DIO12_R :: new (((self . bits >> 24) & 3) as u8) } # [doc = "Bits 26:27 - Enables and configures edge detection polarity for DIO13."]
# [inline (always)]
pub fn polarity15_0_dio13 (& self) -> POLARITY15_0_DIO13_R { POLARITY15_0_DIO13_R :: new (((self . bits >> 26) & 3) as u8) } # [doc = "Bits 28:29 - Enables and configures edge detection polarity for DIO14."]
# [inline (always)]
pub fn polarity15_0_dio14 (& self) -> POLARITY15_0_DIO14_R { POLARITY15_0_DIO14_R :: new (((self . bits >> 28) & 3) as u8) } # [doc = "Bits 30:31 - Enables and configures edge detection polarity for DIO15."]
# [inline (always)]
pub fn polarity15_0_dio15 (& self) -> POLARITY15_0_DIO15_R { POLARITY15_0_DIO15_R :: new (((self . bits >> 30) & 3) as u8) } } impl W { # [doc = "Bits 0:1 - Enables and configures edge detection polarity for DIO0."]
# [inline (always)]
# [must_use]
pub fn polarity15_0_dio0 (& mut self) -> POLARITY15_0_DIO0_W < POLARITY15_0_SPEC , 0 > { POLARITY15_0_DIO0_W :: new (self) } # [doc = "Bits 2:3 - Enables and configures edge detection polarity for DIO1."]
# [inline (always)]
# [must_use]
pub fn polarity15_0_dio1 (& mut self) -> POLARITY15_0_DIO1_W < POLARITY15_0_SPEC , 2 > { POLARITY15_0_DIO1_W :: new (self) } # [doc = "Bits 4:5 - Enables and configures edge detection polarity for DIO2."]
# [inline (always)]
# [must_use]
pub fn polarity15_0_dio2 (& mut self) -> POLARITY15_0_DIO2_W < POLARITY15_0_SPEC , 4 > { POLARITY15_0_DIO2_W :: new (self) } # [doc = "Bits 6:7 - Enables and configures edge detection polarity for DIO3."]
# [inline (always)]
# [must_use]
pub fn polarity15_0_dio3 (& mut self) -> POLARITY15_0_DIO3_W < POLARITY15_0_SPEC , 6 > { POLARITY15_0_DIO3_W :: new (self) } # [doc = "Bits 8:9 - Enables and configures edge detection polarity for DIO4."]
# [inline (always)]
# [must_use]
pub fn polarity15_0_dio4 (& mut self) -> POLARITY15_0_DIO4_W < POLARITY15_0_SPEC , 8 > { POLARITY15_0_DIO4_W :: new (self) } # [doc = "Bits 10:11 - Enables and configures edge detection polarity for DIO5."]
# [inline (always)]
# [must_use]
pub fn polarity15_0_dio5 (& mut self) -> POLARITY15_0_DIO5_W < POLARITY15_0_SPEC , 10 > { POLARITY15_0_DIO5_W :: new (self) } # [doc = "Bits 12:13 - Enables and configures edge detection polarity for DIO6."]
# [inline (always)]
# [must_use]
pub fn polarity15_0_dio6 (& mut self) -> POLARITY15_0_DIO6_W < POLARITY15_0_SPEC , 12 > { POLARITY15_0_DIO6_W :: new (self) } # [doc = "Bits 14:15 - Enables and configures edge detection polarity for DIO7."]
# [inline (always)]
# [must_use]
pub fn polarity15_0_dio7 (& mut self) -> POLARITY15_0_DIO7_W < POLARITY15_0_SPEC , 14 > { POLARITY15_0_DIO7_W :: new (self) } # [doc = "Bits 16:17 - Enables and configures edge detection polarity for DIO8."]
# [inline (always)]
# [must_use]
pub fn polarity15_0_dio8 (& mut self) -> POLARITY15_0_DIO8_W < POLARITY15_0_SPEC , 16 > { POLARITY15_0_DIO8_W :: new (self) } # [doc = "Bits 18:19 - Enables and configures edge detection polarity for DIO9."]
# [inline (always)]
# [must_use]
pub fn polarity15_0_dio9 (& mut self) -> POLARITY15_0_DIO9_W < POLARITY15_0_SPEC , 18 > { POLARITY15_0_DIO9_W :: new (self) } # [doc = "Bits 20:21 - Enables and configures edge detection polarity for DIO10."]
# [inline (always)]
# [must_use]
pub fn polarity15_0_dio10 (& mut self) -> POLARITY15_0_DIO10_W < POLARITY15_0_SPEC , 20 > { POLARITY15_0_DIO10_W :: new (self) } # [doc = "Bits 22:23 - Enables and configures edge detection polarity for DIO11."]
# [inline (always)]
# [must_use]
pub fn polarity15_0_dio11 (& mut self) -> POLARITY15_0_DIO11_W < POLARITY15_0_SPEC , 22 > { POLARITY15_0_DIO11_W :: new (self) } # [doc = "Bits 24:25 - Enables and configures edge detection polarity for DIO12."]
# [inline (always)]
# [must_use]
pub fn polarity15_0_dio12 (& mut self) -> POLARITY15_0_DIO12_W < POLARITY15_0_SPEC , 24 > { POLARITY15_0_DIO12_W :: new (self) } # [doc = "Bits 26:27 - Enables and configures edge detection polarity for DIO13."]
# [inline (always)]
# [must_use]
pub fn polarity15_0_dio13 (& mut self) -> POLARITY15_0_DIO13_W < POLARITY15_0_SPEC , 26 > { POLARITY15_0_DIO13_W :: new (self) } # [doc = "Bits 28:29 - Enables and configures edge detection polarity for DIO14."]
# [inline (always)]
# [must_use]
pub fn polarity15_0_dio14 (& mut self) -> POLARITY15_0_DIO14_W < POLARITY15_0_SPEC , 28 > { POLARITY15_0_DIO14_W :: new (self) } # [doc = "Bits 30:31 - Enables and configures edge detection polarity for DIO15."]
# [inline (always)]
# [must_use]
pub fn polarity15_0_dio15 (& mut self) -> POLARITY15_0_DIO15_W < POLARITY15_0_SPEC , 30 > { POLARITY15_0_DIO15_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Polarity 15 to 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`polarity15_0::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`polarity15_0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct POLARITY15_0_SPEC ; impl crate :: RegisterSpec for POLARITY15_0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`polarity15_0::R`](R) reader structure"]
impl crate :: Readable for POLARITY15_0_SPEC { } # [doc = "`write(|w| ..)` method takes [`polarity15_0::W`](W) writer structure"]
impl crate :: Writable for POLARITY15_0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets POLARITY15_0 to value 0"]
impl crate :: Resettable for POLARITY15_0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "POLARITY31_16 (rw) register accessor: Polarity 31 to 16\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`polarity31_16::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`polarity31_16::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@polarity31_16`]
module"]
pub type POLARITY31_16 = crate :: Reg < polarity31_16 :: POLARITY31_16_SPEC > ; # [doc = "Polarity 31 to 16"]
pub mod polarity31_16 { # [doc = "Register `POLARITY31_16` reader"]
pub type R = crate :: R < POLARITY31_16_SPEC > ; # [doc = "Register `POLARITY31_16` writer"]
pub type W = crate :: W < POLARITY31_16_SPEC > ; # [doc = "Field `POLARITY31_16_DIO16` reader - Enables and configures edge detection polarity for DIO16."]
pub type POLARITY31_16_DIO16_R = crate :: FieldReader < POLARITY31_16_DIO16_A > ; # [doc = "Enables and configures edge detection polarity for DIO16.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum POLARITY31_16_DIO16_A { # [doc = "0: DISABLE"]
POLARITY31_16_DIO16_DISABLE = 0 , # [doc = "1: RISE"]
POLARITY31_16_DIO16_RISE = 1 , # [doc = "2: FALL"]
POLARITY31_16_DIO16_FALL = 2 , # [doc = "3: RISE_FALL"]
POLARITY31_16_DIO16_RISE_FALL = 3 , } impl From < POLARITY31_16_DIO16_A > for u8 { # [inline (always)]
fn from (variant : POLARITY31_16_DIO16_A) -> Self { variant as _ } } impl crate :: FieldSpec for POLARITY31_16_DIO16_A { type Ux = u8 ; } impl POLARITY31_16_DIO16_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> POLARITY31_16_DIO16_A { match self . bits { 0 => POLARITY31_16_DIO16_A :: POLARITY31_16_DIO16_DISABLE , 1 => POLARITY31_16_DIO16_A :: POLARITY31_16_DIO16_RISE , 2 => POLARITY31_16_DIO16_A :: POLARITY31_16_DIO16_FALL , 3 => POLARITY31_16_DIO16_A :: POLARITY31_16_DIO16_RISE_FALL , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_polarity31_16_dio16_disable (& self) -> bool { * self == POLARITY31_16_DIO16_A :: POLARITY31_16_DIO16_DISABLE } # [doc = "RISE"]
# [inline (always)]
pub fn is_polarity31_16_dio16_rise (& self) -> bool { * self == POLARITY31_16_DIO16_A :: POLARITY31_16_DIO16_RISE } # [doc = "FALL"]
# [inline (always)]
pub fn is_polarity31_16_dio16_fall (& self) -> bool { * self == POLARITY31_16_DIO16_A :: POLARITY31_16_DIO16_FALL } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn is_polarity31_16_dio16_rise_fall (& self) -> bool { * self == POLARITY31_16_DIO16_A :: POLARITY31_16_DIO16_RISE_FALL } } # [doc = "Field `POLARITY31_16_DIO16` writer - Enables and configures edge detection polarity for DIO16."]
pub type POLARITY31_16_DIO16_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , POLARITY31_16_DIO16_A > ; impl < 'a , REG , const O : u8 > POLARITY31_16_DIO16_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn polarity31_16_dio16_disable (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO16_A :: POLARITY31_16_DIO16_DISABLE) } # [doc = "RISE"]
# [inline (always)]
pub fn polarity31_16_dio16_rise (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO16_A :: POLARITY31_16_DIO16_RISE) } # [doc = "FALL"]
# [inline (always)]
pub fn polarity31_16_dio16_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO16_A :: POLARITY31_16_DIO16_FALL) } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn polarity31_16_dio16_rise_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO16_A :: POLARITY31_16_DIO16_RISE_FALL) } } # [doc = "Field `POLARITY31_16_DIO17` reader - Enables and configures edge detection polarity for DIO17."]
pub type POLARITY31_16_DIO17_R = crate :: FieldReader < POLARITY31_16_DIO17_A > ; # [doc = "Enables and configures edge detection polarity for DIO17.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum POLARITY31_16_DIO17_A { # [doc = "0: DISABLE"]
POLARITY31_16_DIO17_DISABLE = 0 , # [doc = "1: RISE"]
POLARITY31_16_DIO17_RISE = 1 , # [doc = "2: FALL"]
POLARITY31_16_DIO17_FALL = 2 , # [doc = "3: RISE_FALL"]
POLARITY31_16_DIO17_RISE_FALL = 3 , } impl From < POLARITY31_16_DIO17_A > for u8 { # [inline (always)]
fn from (variant : POLARITY31_16_DIO17_A) -> Self { variant as _ } } impl crate :: FieldSpec for POLARITY31_16_DIO17_A { type Ux = u8 ; } impl POLARITY31_16_DIO17_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> POLARITY31_16_DIO17_A { match self . bits { 0 => POLARITY31_16_DIO17_A :: POLARITY31_16_DIO17_DISABLE , 1 => POLARITY31_16_DIO17_A :: POLARITY31_16_DIO17_RISE , 2 => POLARITY31_16_DIO17_A :: POLARITY31_16_DIO17_FALL , 3 => POLARITY31_16_DIO17_A :: POLARITY31_16_DIO17_RISE_FALL , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_polarity31_16_dio17_disable (& self) -> bool { * self == POLARITY31_16_DIO17_A :: POLARITY31_16_DIO17_DISABLE } # [doc = "RISE"]
# [inline (always)]
pub fn is_polarity31_16_dio17_rise (& self) -> bool { * self == POLARITY31_16_DIO17_A :: POLARITY31_16_DIO17_RISE } # [doc = "FALL"]
# [inline (always)]
pub fn is_polarity31_16_dio17_fall (& self) -> bool { * self == POLARITY31_16_DIO17_A :: POLARITY31_16_DIO17_FALL } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn is_polarity31_16_dio17_rise_fall (& self) -> bool { * self == POLARITY31_16_DIO17_A :: POLARITY31_16_DIO17_RISE_FALL } } # [doc = "Field `POLARITY31_16_DIO17` writer - Enables and configures edge detection polarity for DIO17."]
pub type POLARITY31_16_DIO17_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , POLARITY31_16_DIO17_A > ; impl < 'a , REG , const O : u8 > POLARITY31_16_DIO17_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn polarity31_16_dio17_disable (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO17_A :: POLARITY31_16_DIO17_DISABLE) } # [doc = "RISE"]
# [inline (always)]
pub fn polarity31_16_dio17_rise (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO17_A :: POLARITY31_16_DIO17_RISE) } # [doc = "FALL"]
# [inline (always)]
pub fn polarity31_16_dio17_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO17_A :: POLARITY31_16_DIO17_FALL) } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn polarity31_16_dio17_rise_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO17_A :: POLARITY31_16_DIO17_RISE_FALL) } } # [doc = "Field `POLARITY31_16_DIO18` reader - Enables and configures edge detection polarity for DIO18."]
pub type POLARITY31_16_DIO18_R = crate :: FieldReader < POLARITY31_16_DIO18_A > ; # [doc = "Enables and configures edge detection polarity for DIO18.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum POLARITY31_16_DIO18_A { # [doc = "0: DISABLE"]
POLARITY31_16_DIO18_DISABLE = 0 , # [doc = "1: RISE"]
POLARITY31_16_DIO18_RISE = 1 , # [doc = "2: FALL"]
POLARITY31_16_DIO18_FALL = 2 , # [doc = "3: RISE_FALL"]
POLARITY31_16_DIO18_RISE_FALL = 3 , } impl From < POLARITY31_16_DIO18_A > for u8 { # [inline (always)]
fn from (variant : POLARITY31_16_DIO18_A) -> Self { variant as _ } } impl crate :: FieldSpec for POLARITY31_16_DIO18_A { type Ux = u8 ; } impl POLARITY31_16_DIO18_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> POLARITY31_16_DIO18_A { match self . bits { 0 => POLARITY31_16_DIO18_A :: POLARITY31_16_DIO18_DISABLE , 1 => POLARITY31_16_DIO18_A :: POLARITY31_16_DIO18_RISE , 2 => POLARITY31_16_DIO18_A :: POLARITY31_16_DIO18_FALL , 3 => POLARITY31_16_DIO18_A :: POLARITY31_16_DIO18_RISE_FALL , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_polarity31_16_dio18_disable (& self) -> bool { * self == POLARITY31_16_DIO18_A :: POLARITY31_16_DIO18_DISABLE } # [doc = "RISE"]
# [inline (always)]
pub fn is_polarity31_16_dio18_rise (& self) -> bool { * self == POLARITY31_16_DIO18_A :: POLARITY31_16_DIO18_RISE } # [doc = "FALL"]
# [inline (always)]
pub fn is_polarity31_16_dio18_fall (& self) -> bool { * self == POLARITY31_16_DIO18_A :: POLARITY31_16_DIO18_FALL } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn is_polarity31_16_dio18_rise_fall (& self) -> bool { * self == POLARITY31_16_DIO18_A :: POLARITY31_16_DIO18_RISE_FALL } } # [doc = "Field `POLARITY31_16_DIO18` writer - Enables and configures edge detection polarity for DIO18."]
pub type POLARITY31_16_DIO18_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , POLARITY31_16_DIO18_A > ; impl < 'a , REG , const O : u8 > POLARITY31_16_DIO18_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn polarity31_16_dio18_disable (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO18_A :: POLARITY31_16_DIO18_DISABLE) } # [doc = "RISE"]
# [inline (always)]
pub fn polarity31_16_dio18_rise (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO18_A :: POLARITY31_16_DIO18_RISE) } # [doc = "FALL"]
# [inline (always)]
pub fn polarity31_16_dio18_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO18_A :: POLARITY31_16_DIO18_FALL) } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn polarity31_16_dio18_rise_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO18_A :: POLARITY31_16_DIO18_RISE_FALL) } } # [doc = "Field `POLARITY31_16_DIO19` reader - Enables and configures edge detection polarity for DIO19."]
pub type POLARITY31_16_DIO19_R = crate :: FieldReader < POLARITY31_16_DIO19_A > ; # [doc = "Enables and configures edge detection polarity for DIO19.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum POLARITY31_16_DIO19_A { # [doc = "0: DISABLE"]
POLARITY31_16_DIO19_DISABLE = 0 , # [doc = "1: RISE"]
POLARITY31_16_DIO19_RISE = 1 , # [doc = "2: FALL"]
POLARITY31_16_DIO19_FALL = 2 , # [doc = "3: RISE_FALL"]
POLARITY31_16_DIO19_RISE_FALL = 3 , } impl From < POLARITY31_16_DIO19_A > for u8 { # [inline (always)]
fn from (variant : POLARITY31_16_DIO19_A) -> Self { variant as _ } } impl crate :: FieldSpec for POLARITY31_16_DIO19_A { type Ux = u8 ; } impl POLARITY31_16_DIO19_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> POLARITY31_16_DIO19_A { match self . bits { 0 => POLARITY31_16_DIO19_A :: POLARITY31_16_DIO19_DISABLE , 1 => POLARITY31_16_DIO19_A :: POLARITY31_16_DIO19_RISE , 2 => POLARITY31_16_DIO19_A :: POLARITY31_16_DIO19_FALL , 3 => POLARITY31_16_DIO19_A :: POLARITY31_16_DIO19_RISE_FALL , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_polarity31_16_dio19_disable (& self) -> bool { * self == POLARITY31_16_DIO19_A :: POLARITY31_16_DIO19_DISABLE } # [doc = "RISE"]
# [inline (always)]
pub fn is_polarity31_16_dio19_rise (& self) -> bool { * self == POLARITY31_16_DIO19_A :: POLARITY31_16_DIO19_RISE } # [doc = "FALL"]
# [inline (always)]
pub fn is_polarity31_16_dio19_fall (& self) -> bool { * self == POLARITY31_16_DIO19_A :: POLARITY31_16_DIO19_FALL } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn is_polarity31_16_dio19_rise_fall (& self) -> bool { * self == POLARITY31_16_DIO19_A :: POLARITY31_16_DIO19_RISE_FALL } } # [doc = "Field `POLARITY31_16_DIO19` writer - Enables and configures edge detection polarity for DIO19."]
pub type POLARITY31_16_DIO19_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , POLARITY31_16_DIO19_A > ; impl < 'a , REG , const O : u8 > POLARITY31_16_DIO19_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn polarity31_16_dio19_disable (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO19_A :: POLARITY31_16_DIO19_DISABLE) } # [doc = "RISE"]
# [inline (always)]
pub fn polarity31_16_dio19_rise (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO19_A :: POLARITY31_16_DIO19_RISE) } # [doc = "FALL"]
# [inline (always)]
pub fn polarity31_16_dio19_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO19_A :: POLARITY31_16_DIO19_FALL) } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn polarity31_16_dio19_rise_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO19_A :: POLARITY31_16_DIO19_RISE_FALL) } } # [doc = "Field `POLARITY31_16_DIO20` reader - Enables and configures edge detection polarity for DIO20."]
pub type POLARITY31_16_DIO20_R = crate :: FieldReader < POLARITY31_16_DIO20_A > ; # [doc = "Enables and configures edge detection polarity for DIO20.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum POLARITY31_16_DIO20_A { # [doc = "0: DISABLE"]
POLARITY31_16_DIO20_DISABLE = 0 , # [doc = "1: RISE"]
POLARITY31_16_DIO20_RISE = 1 , # [doc = "2: FALL"]
POLARITY31_16_DIO20_FALL = 2 , # [doc = "3: RISE_FALL"]
POLARITY31_16_DIO20_RISE_FALL = 3 , } impl From < POLARITY31_16_DIO20_A > for u8 { # [inline (always)]
fn from (variant : POLARITY31_16_DIO20_A) -> Self { variant as _ } } impl crate :: FieldSpec for POLARITY31_16_DIO20_A { type Ux = u8 ; } impl POLARITY31_16_DIO20_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> POLARITY31_16_DIO20_A { match self . bits { 0 => POLARITY31_16_DIO20_A :: POLARITY31_16_DIO20_DISABLE , 1 => POLARITY31_16_DIO20_A :: POLARITY31_16_DIO20_RISE , 2 => POLARITY31_16_DIO20_A :: POLARITY31_16_DIO20_FALL , 3 => POLARITY31_16_DIO20_A :: POLARITY31_16_DIO20_RISE_FALL , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_polarity31_16_dio20_disable (& self) -> bool { * self == POLARITY31_16_DIO20_A :: POLARITY31_16_DIO20_DISABLE } # [doc = "RISE"]
# [inline (always)]
pub fn is_polarity31_16_dio20_rise (& self) -> bool { * self == POLARITY31_16_DIO20_A :: POLARITY31_16_DIO20_RISE } # [doc = "FALL"]
# [inline (always)]
pub fn is_polarity31_16_dio20_fall (& self) -> bool { * self == POLARITY31_16_DIO20_A :: POLARITY31_16_DIO20_FALL } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn is_polarity31_16_dio20_rise_fall (& self) -> bool { * self == POLARITY31_16_DIO20_A :: POLARITY31_16_DIO20_RISE_FALL } } # [doc = "Field `POLARITY31_16_DIO20` writer - Enables and configures edge detection polarity for DIO20."]
pub type POLARITY31_16_DIO20_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , POLARITY31_16_DIO20_A > ; impl < 'a , REG , const O : u8 > POLARITY31_16_DIO20_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn polarity31_16_dio20_disable (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO20_A :: POLARITY31_16_DIO20_DISABLE) } # [doc = "RISE"]
# [inline (always)]
pub fn polarity31_16_dio20_rise (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO20_A :: POLARITY31_16_DIO20_RISE) } # [doc = "FALL"]
# [inline (always)]
pub fn polarity31_16_dio20_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO20_A :: POLARITY31_16_DIO20_FALL) } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn polarity31_16_dio20_rise_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO20_A :: POLARITY31_16_DIO20_RISE_FALL) } } # [doc = "Field `POLARITY31_16_DIO21` reader - Enables and configures edge detection polarity for DIO21."]
pub type POLARITY31_16_DIO21_R = crate :: FieldReader < POLARITY31_16_DIO21_A > ; # [doc = "Enables and configures edge detection polarity for DIO21.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum POLARITY31_16_DIO21_A { # [doc = "0: DISABLE"]
POLARITY31_16_DIO21_DISABLE = 0 , # [doc = "1: RISE"]
POLARITY31_16_DIO21_RISE = 1 , # [doc = "2: FALL"]
POLARITY31_16_DIO21_FALL = 2 , # [doc = "3: RISE_FALL"]
POLARITY31_16_DIO21_RISE_FALL = 3 , } impl From < POLARITY31_16_DIO21_A > for u8 { # [inline (always)]
fn from (variant : POLARITY31_16_DIO21_A) -> Self { variant as _ } } impl crate :: FieldSpec for POLARITY31_16_DIO21_A { type Ux = u8 ; } impl POLARITY31_16_DIO21_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> POLARITY31_16_DIO21_A { match self . bits { 0 => POLARITY31_16_DIO21_A :: POLARITY31_16_DIO21_DISABLE , 1 => POLARITY31_16_DIO21_A :: POLARITY31_16_DIO21_RISE , 2 => POLARITY31_16_DIO21_A :: POLARITY31_16_DIO21_FALL , 3 => POLARITY31_16_DIO21_A :: POLARITY31_16_DIO21_RISE_FALL , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_polarity31_16_dio21_disable (& self) -> bool { * self == POLARITY31_16_DIO21_A :: POLARITY31_16_DIO21_DISABLE } # [doc = "RISE"]
# [inline (always)]
pub fn is_polarity31_16_dio21_rise (& self) -> bool { * self == POLARITY31_16_DIO21_A :: POLARITY31_16_DIO21_RISE } # [doc = "FALL"]
# [inline (always)]
pub fn is_polarity31_16_dio21_fall (& self) -> bool { * self == POLARITY31_16_DIO21_A :: POLARITY31_16_DIO21_FALL } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn is_polarity31_16_dio21_rise_fall (& self) -> bool { * self == POLARITY31_16_DIO21_A :: POLARITY31_16_DIO21_RISE_FALL } } # [doc = "Field `POLARITY31_16_DIO21` writer - Enables and configures edge detection polarity for DIO21."]
pub type POLARITY31_16_DIO21_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , POLARITY31_16_DIO21_A > ; impl < 'a , REG , const O : u8 > POLARITY31_16_DIO21_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn polarity31_16_dio21_disable (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO21_A :: POLARITY31_16_DIO21_DISABLE) } # [doc = "RISE"]
# [inline (always)]
pub fn polarity31_16_dio21_rise (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO21_A :: POLARITY31_16_DIO21_RISE) } # [doc = "FALL"]
# [inline (always)]
pub fn polarity31_16_dio21_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO21_A :: POLARITY31_16_DIO21_FALL) } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn polarity31_16_dio21_rise_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO21_A :: POLARITY31_16_DIO21_RISE_FALL) } } # [doc = "Field `POLARITY31_16_DIO22` reader - Enables and configures edge detection polarity for DIO22."]
pub type POLARITY31_16_DIO22_R = crate :: FieldReader < POLARITY31_16_DIO22_A > ; # [doc = "Enables and configures edge detection polarity for DIO22.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum POLARITY31_16_DIO22_A { # [doc = "0: DISABLE"]
POLARITY31_16_DIO22_DISABLE = 0 , # [doc = "1: RISE"]
POLARITY31_16_DIO22_RISE = 1 , # [doc = "2: FALL"]
POLARITY31_16_DIO22_FALL = 2 , # [doc = "3: RISE_FALL"]
POLARITY31_16_DIO22_RISE_FALL = 3 , } impl From < POLARITY31_16_DIO22_A > for u8 { # [inline (always)]
fn from (variant : POLARITY31_16_DIO22_A) -> Self { variant as _ } } impl crate :: FieldSpec for POLARITY31_16_DIO22_A { type Ux = u8 ; } impl POLARITY31_16_DIO22_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> POLARITY31_16_DIO22_A { match self . bits { 0 => POLARITY31_16_DIO22_A :: POLARITY31_16_DIO22_DISABLE , 1 => POLARITY31_16_DIO22_A :: POLARITY31_16_DIO22_RISE , 2 => POLARITY31_16_DIO22_A :: POLARITY31_16_DIO22_FALL , 3 => POLARITY31_16_DIO22_A :: POLARITY31_16_DIO22_RISE_FALL , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_polarity31_16_dio22_disable (& self) -> bool { * self == POLARITY31_16_DIO22_A :: POLARITY31_16_DIO22_DISABLE } # [doc = "RISE"]
# [inline (always)]
pub fn is_polarity31_16_dio22_rise (& self) -> bool { * self == POLARITY31_16_DIO22_A :: POLARITY31_16_DIO22_RISE } # [doc = "FALL"]
# [inline (always)]
pub fn is_polarity31_16_dio22_fall (& self) -> bool { * self == POLARITY31_16_DIO22_A :: POLARITY31_16_DIO22_FALL } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn is_polarity31_16_dio22_rise_fall (& self) -> bool { * self == POLARITY31_16_DIO22_A :: POLARITY31_16_DIO22_RISE_FALL } } # [doc = "Field `POLARITY31_16_DIO22` writer - Enables and configures edge detection polarity for DIO22."]
pub type POLARITY31_16_DIO22_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , POLARITY31_16_DIO22_A > ; impl < 'a , REG , const O : u8 > POLARITY31_16_DIO22_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn polarity31_16_dio22_disable (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO22_A :: POLARITY31_16_DIO22_DISABLE) } # [doc = "RISE"]
# [inline (always)]
pub fn polarity31_16_dio22_rise (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO22_A :: POLARITY31_16_DIO22_RISE) } # [doc = "FALL"]
# [inline (always)]
pub fn polarity31_16_dio22_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO22_A :: POLARITY31_16_DIO22_FALL) } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn polarity31_16_dio22_rise_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO22_A :: POLARITY31_16_DIO22_RISE_FALL) } } # [doc = "Field `POLARITY31_16_DIO23` reader - Enables and configures edge detection polarity for DIO23."]
pub type POLARITY31_16_DIO23_R = crate :: FieldReader < POLARITY31_16_DIO23_A > ; # [doc = "Enables and configures edge detection polarity for DIO23.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum POLARITY31_16_DIO23_A { # [doc = "0: DISABLE"]
POLARITY31_16_DIO23_DISABLE = 0 , # [doc = "1: RISE"]
POLARITY31_16_DIO23_RISE = 1 , # [doc = "2: FALL"]
POLARITY31_16_DIO23_FALL = 2 , # [doc = "3: RISE_FALL"]
POLARITY31_16_DIO23_RISE_FALL = 3 , } impl From < POLARITY31_16_DIO23_A > for u8 { # [inline (always)]
fn from (variant : POLARITY31_16_DIO23_A) -> Self { variant as _ } } impl crate :: FieldSpec for POLARITY31_16_DIO23_A { type Ux = u8 ; } impl POLARITY31_16_DIO23_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> POLARITY31_16_DIO23_A { match self . bits { 0 => POLARITY31_16_DIO23_A :: POLARITY31_16_DIO23_DISABLE , 1 => POLARITY31_16_DIO23_A :: POLARITY31_16_DIO23_RISE , 2 => POLARITY31_16_DIO23_A :: POLARITY31_16_DIO23_FALL , 3 => POLARITY31_16_DIO23_A :: POLARITY31_16_DIO23_RISE_FALL , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_polarity31_16_dio23_disable (& self) -> bool { * self == POLARITY31_16_DIO23_A :: POLARITY31_16_DIO23_DISABLE } # [doc = "RISE"]
# [inline (always)]
pub fn is_polarity31_16_dio23_rise (& self) -> bool { * self == POLARITY31_16_DIO23_A :: POLARITY31_16_DIO23_RISE } # [doc = "FALL"]
# [inline (always)]
pub fn is_polarity31_16_dio23_fall (& self) -> bool { * self == POLARITY31_16_DIO23_A :: POLARITY31_16_DIO23_FALL } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn is_polarity31_16_dio23_rise_fall (& self) -> bool { * self == POLARITY31_16_DIO23_A :: POLARITY31_16_DIO23_RISE_FALL } } # [doc = "Field `POLARITY31_16_DIO23` writer - Enables and configures edge detection polarity for DIO23."]
pub type POLARITY31_16_DIO23_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , POLARITY31_16_DIO23_A > ; impl < 'a , REG , const O : u8 > POLARITY31_16_DIO23_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn polarity31_16_dio23_disable (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO23_A :: POLARITY31_16_DIO23_DISABLE) } # [doc = "RISE"]
# [inline (always)]
pub fn polarity31_16_dio23_rise (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO23_A :: POLARITY31_16_DIO23_RISE) } # [doc = "FALL"]
# [inline (always)]
pub fn polarity31_16_dio23_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO23_A :: POLARITY31_16_DIO23_FALL) } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn polarity31_16_dio23_rise_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO23_A :: POLARITY31_16_DIO23_RISE_FALL) } } # [doc = "Field `POLARITY31_16_DIO24` reader - Enables and configures edge detection polarity for DIO24."]
pub type POLARITY31_16_DIO24_R = crate :: FieldReader < POLARITY31_16_DIO24_A > ; # [doc = "Enables and configures edge detection polarity for DIO24.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum POLARITY31_16_DIO24_A { # [doc = "0: DISABLE"]
POLARITY31_16_DIO24_DISABLE = 0 , # [doc = "1: RISE"]
POLARITY31_16_DIO24_RISE = 1 , # [doc = "2: FALL"]
POLARITY31_16_DIO24_FALL = 2 , # [doc = "3: RISE_FALL"]
POLARITY31_16_DIO24_RISE_FALL = 3 , } impl From < POLARITY31_16_DIO24_A > for u8 { # [inline (always)]
fn from (variant : POLARITY31_16_DIO24_A) -> Self { variant as _ } } impl crate :: FieldSpec for POLARITY31_16_DIO24_A { type Ux = u8 ; } impl POLARITY31_16_DIO24_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> POLARITY31_16_DIO24_A { match self . bits { 0 => POLARITY31_16_DIO24_A :: POLARITY31_16_DIO24_DISABLE , 1 => POLARITY31_16_DIO24_A :: POLARITY31_16_DIO24_RISE , 2 => POLARITY31_16_DIO24_A :: POLARITY31_16_DIO24_FALL , 3 => POLARITY31_16_DIO24_A :: POLARITY31_16_DIO24_RISE_FALL , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_polarity31_16_dio24_disable (& self) -> bool { * self == POLARITY31_16_DIO24_A :: POLARITY31_16_DIO24_DISABLE } # [doc = "RISE"]
# [inline (always)]
pub fn is_polarity31_16_dio24_rise (& self) -> bool { * self == POLARITY31_16_DIO24_A :: POLARITY31_16_DIO24_RISE } # [doc = "FALL"]
# [inline (always)]
pub fn is_polarity31_16_dio24_fall (& self) -> bool { * self == POLARITY31_16_DIO24_A :: POLARITY31_16_DIO24_FALL } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn is_polarity31_16_dio24_rise_fall (& self) -> bool { * self == POLARITY31_16_DIO24_A :: POLARITY31_16_DIO24_RISE_FALL } } # [doc = "Field `POLARITY31_16_DIO24` writer - Enables and configures edge detection polarity for DIO24."]
pub type POLARITY31_16_DIO24_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , POLARITY31_16_DIO24_A > ; impl < 'a , REG , const O : u8 > POLARITY31_16_DIO24_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn polarity31_16_dio24_disable (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO24_A :: POLARITY31_16_DIO24_DISABLE) } # [doc = "RISE"]
# [inline (always)]
pub fn polarity31_16_dio24_rise (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO24_A :: POLARITY31_16_DIO24_RISE) } # [doc = "FALL"]
# [inline (always)]
pub fn polarity31_16_dio24_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO24_A :: POLARITY31_16_DIO24_FALL) } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn polarity31_16_dio24_rise_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO24_A :: POLARITY31_16_DIO24_RISE_FALL) } } # [doc = "Field `POLARITY31_16_DIO25` reader - Enables and configures edge detection polarity for DIO25."]
pub type POLARITY31_16_DIO25_R = crate :: FieldReader < POLARITY31_16_DIO25_A > ; # [doc = "Enables and configures edge detection polarity for DIO25.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum POLARITY31_16_DIO25_A { # [doc = "0: DISABLE"]
POLARITY31_16_DIO25_DISABLE = 0 , # [doc = "1: RISE"]
POLARITY31_16_DIO25_RISE = 1 , # [doc = "2: FALL"]
POLARITY31_16_DIO25_FALL = 2 , # [doc = "3: RISE_FALL"]
POLARITY31_16_DIO25_RISE_FALL = 3 , } impl From < POLARITY31_16_DIO25_A > for u8 { # [inline (always)]
fn from (variant : POLARITY31_16_DIO25_A) -> Self { variant as _ } } impl crate :: FieldSpec for POLARITY31_16_DIO25_A { type Ux = u8 ; } impl POLARITY31_16_DIO25_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> POLARITY31_16_DIO25_A { match self . bits { 0 => POLARITY31_16_DIO25_A :: POLARITY31_16_DIO25_DISABLE , 1 => POLARITY31_16_DIO25_A :: POLARITY31_16_DIO25_RISE , 2 => POLARITY31_16_DIO25_A :: POLARITY31_16_DIO25_FALL , 3 => POLARITY31_16_DIO25_A :: POLARITY31_16_DIO25_RISE_FALL , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_polarity31_16_dio25_disable (& self) -> bool { * self == POLARITY31_16_DIO25_A :: POLARITY31_16_DIO25_DISABLE } # [doc = "RISE"]
# [inline (always)]
pub fn is_polarity31_16_dio25_rise (& self) -> bool { * self == POLARITY31_16_DIO25_A :: POLARITY31_16_DIO25_RISE } # [doc = "FALL"]
# [inline (always)]
pub fn is_polarity31_16_dio25_fall (& self) -> bool { * self == POLARITY31_16_DIO25_A :: POLARITY31_16_DIO25_FALL } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn is_polarity31_16_dio25_rise_fall (& self) -> bool { * self == POLARITY31_16_DIO25_A :: POLARITY31_16_DIO25_RISE_FALL } } # [doc = "Field `POLARITY31_16_DIO25` writer - Enables and configures edge detection polarity for DIO25."]
pub type POLARITY31_16_DIO25_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , POLARITY31_16_DIO25_A > ; impl < 'a , REG , const O : u8 > POLARITY31_16_DIO25_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn polarity31_16_dio25_disable (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO25_A :: POLARITY31_16_DIO25_DISABLE) } # [doc = "RISE"]
# [inline (always)]
pub fn polarity31_16_dio25_rise (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO25_A :: POLARITY31_16_DIO25_RISE) } # [doc = "FALL"]
# [inline (always)]
pub fn polarity31_16_dio25_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO25_A :: POLARITY31_16_DIO25_FALL) } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn polarity31_16_dio25_rise_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO25_A :: POLARITY31_16_DIO25_RISE_FALL) } } # [doc = "Field `POLARITY31_16_DIO26` reader - Enables and configures edge detection polarity for DIO26."]
pub type POLARITY31_16_DIO26_R = crate :: FieldReader < POLARITY31_16_DIO26_A > ; # [doc = "Enables and configures edge detection polarity for DIO26.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum POLARITY31_16_DIO26_A { # [doc = "0: DISABLE"]
POLARITY31_16_DIO26_DISABLE = 0 , # [doc = "1: RISE"]
POLARITY31_16_DIO26_RISE = 1 , # [doc = "2: FALL"]
POLARITY31_16_DIO26_FALL = 2 , # [doc = "3: RISE_FALL"]
POLARITY31_16_DIO26_RISE_FALL = 3 , } impl From < POLARITY31_16_DIO26_A > for u8 { # [inline (always)]
fn from (variant : POLARITY31_16_DIO26_A) -> Self { variant as _ } } impl crate :: FieldSpec for POLARITY31_16_DIO26_A { type Ux = u8 ; } impl POLARITY31_16_DIO26_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> POLARITY31_16_DIO26_A { match self . bits { 0 => POLARITY31_16_DIO26_A :: POLARITY31_16_DIO26_DISABLE , 1 => POLARITY31_16_DIO26_A :: POLARITY31_16_DIO26_RISE , 2 => POLARITY31_16_DIO26_A :: POLARITY31_16_DIO26_FALL , 3 => POLARITY31_16_DIO26_A :: POLARITY31_16_DIO26_RISE_FALL , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_polarity31_16_dio26_disable (& self) -> bool { * self == POLARITY31_16_DIO26_A :: POLARITY31_16_DIO26_DISABLE } # [doc = "RISE"]
# [inline (always)]
pub fn is_polarity31_16_dio26_rise (& self) -> bool { * self == POLARITY31_16_DIO26_A :: POLARITY31_16_DIO26_RISE } # [doc = "FALL"]
# [inline (always)]
pub fn is_polarity31_16_dio26_fall (& self) -> bool { * self == POLARITY31_16_DIO26_A :: POLARITY31_16_DIO26_FALL } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn is_polarity31_16_dio26_rise_fall (& self) -> bool { * self == POLARITY31_16_DIO26_A :: POLARITY31_16_DIO26_RISE_FALL } } # [doc = "Field `POLARITY31_16_DIO26` writer - Enables and configures edge detection polarity for DIO26."]
pub type POLARITY31_16_DIO26_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , POLARITY31_16_DIO26_A > ; impl < 'a , REG , const O : u8 > POLARITY31_16_DIO26_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn polarity31_16_dio26_disable (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO26_A :: POLARITY31_16_DIO26_DISABLE) } # [doc = "RISE"]
# [inline (always)]
pub fn polarity31_16_dio26_rise (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO26_A :: POLARITY31_16_DIO26_RISE) } # [doc = "FALL"]
# [inline (always)]
pub fn polarity31_16_dio26_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO26_A :: POLARITY31_16_DIO26_FALL) } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn polarity31_16_dio26_rise_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO26_A :: POLARITY31_16_DIO26_RISE_FALL) } } # [doc = "Field `POLARITY31_16_DIO27` reader - Enables and configures edge detection polarity for DIO27."]
pub type POLARITY31_16_DIO27_R = crate :: FieldReader < POLARITY31_16_DIO27_A > ; # [doc = "Enables and configures edge detection polarity for DIO27.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum POLARITY31_16_DIO27_A { # [doc = "0: DISABLE"]
POLARITY31_16_DIO27_DISABLE = 0 , # [doc = "1: RISE"]
POLARITY31_16_DIO27_RISE = 1 , # [doc = "2: FALL"]
POLARITY31_16_DIO27_FALL = 2 , # [doc = "3: RISE_FALL"]
POLARITY31_16_DIO27_RISE_FALL = 3 , } impl From < POLARITY31_16_DIO27_A > for u8 { # [inline (always)]
fn from (variant : POLARITY31_16_DIO27_A) -> Self { variant as _ } } impl crate :: FieldSpec for POLARITY31_16_DIO27_A { type Ux = u8 ; } impl POLARITY31_16_DIO27_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> POLARITY31_16_DIO27_A { match self . bits { 0 => POLARITY31_16_DIO27_A :: POLARITY31_16_DIO27_DISABLE , 1 => POLARITY31_16_DIO27_A :: POLARITY31_16_DIO27_RISE , 2 => POLARITY31_16_DIO27_A :: POLARITY31_16_DIO27_FALL , 3 => POLARITY31_16_DIO27_A :: POLARITY31_16_DIO27_RISE_FALL , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_polarity31_16_dio27_disable (& self) -> bool { * self == POLARITY31_16_DIO27_A :: POLARITY31_16_DIO27_DISABLE } # [doc = "RISE"]
# [inline (always)]
pub fn is_polarity31_16_dio27_rise (& self) -> bool { * self == POLARITY31_16_DIO27_A :: POLARITY31_16_DIO27_RISE } # [doc = "FALL"]
# [inline (always)]
pub fn is_polarity31_16_dio27_fall (& self) -> bool { * self == POLARITY31_16_DIO27_A :: POLARITY31_16_DIO27_FALL } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn is_polarity31_16_dio27_rise_fall (& self) -> bool { * self == POLARITY31_16_DIO27_A :: POLARITY31_16_DIO27_RISE_FALL } } # [doc = "Field `POLARITY31_16_DIO27` writer - Enables and configures edge detection polarity for DIO27."]
pub type POLARITY31_16_DIO27_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , POLARITY31_16_DIO27_A > ; impl < 'a , REG , const O : u8 > POLARITY31_16_DIO27_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn polarity31_16_dio27_disable (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO27_A :: POLARITY31_16_DIO27_DISABLE) } # [doc = "RISE"]
# [inline (always)]
pub fn polarity31_16_dio27_rise (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO27_A :: POLARITY31_16_DIO27_RISE) } # [doc = "FALL"]
# [inline (always)]
pub fn polarity31_16_dio27_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO27_A :: POLARITY31_16_DIO27_FALL) } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn polarity31_16_dio27_rise_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO27_A :: POLARITY31_16_DIO27_RISE_FALL) } } # [doc = "Field `POLARITY31_16_DIO28` reader - Enables and configures edge detection polarity for DIO28."]
pub type POLARITY31_16_DIO28_R = crate :: FieldReader < POLARITY31_16_DIO28_A > ; # [doc = "Enables and configures edge detection polarity for DIO28.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum POLARITY31_16_DIO28_A { # [doc = "0: DISABLE"]
POLARITY31_16_DIO28_DISABLE = 0 , # [doc = "1: RISE"]
POLARITY31_16_DIO28_RISE = 1 , # [doc = "2: FALL"]
POLARITY31_16_DIO28_FALL = 2 , # [doc = "3: RISE_FALL"]
POLARITY31_16_DIO28_RISE_FALL = 3 , } impl From < POLARITY31_16_DIO28_A > for u8 { # [inline (always)]
fn from (variant : POLARITY31_16_DIO28_A) -> Self { variant as _ } } impl crate :: FieldSpec for POLARITY31_16_DIO28_A { type Ux = u8 ; } impl POLARITY31_16_DIO28_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> POLARITY31_16_DIO28_A { match self . bits { 0 => POLARITY31_16_DIO28_A :: POLARITY31_16_DIO28_DISABLE , 1 => POLARITY31_16_DIO28_A :: POLARITY31_16_DIO28_RISE , 2 => POLARITY31_16_DIO28_A :: POLARITY31_16_DIO28_FALL , 3 => POLARITY31_16_DIO28_A :: POLARITY31_16_DIO28_RISE_FALL , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_polarity31_16_dio28_disable (& self) -> bool { * self == POLARITY31_16_DIO28_A :: POLARITY31_16_DIO28_DISABLE } # [doc = "RISE"]
# [inline (always)]
pub fn is_polarity31_16_dio28_rise (& self) -> bool { * self == POLARITY31_16_DIO28_A :: POLARITY31_16_DIO28_RISE } # [doc = "FALL"]
# [inline (always)]
pub fn is_polarity31_16_dio28_fall (& self) -> bool { * self == POLARITY31_16_DIO28_A :: POLARITY31_16_DIO28_FALL } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn is_polarity31_16_dio28_rise_fall (& self) -> bool { * self == POLARITY31_16_DIO28_A :: POLARITY31_16_DIO28_RISE_FALL } } # [doc = "Field `POLARITY31_16_DIO28` writer - Enables and configures edge detection polarity for DIO28."]
pub type POLARITY31_16_DIO28_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , POLARITY31_16_DIO28_A > ; impl < 'a , REG , const O : u8 > POLARITY31_16_DIO28_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn polarity31_16_dio28_disable (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO28_A :: POLARITY31_16_DIO28_DISABLE) } # [doc = "RISE"]
# [inline (always)]
pub fn polarity31_16_dio28_rise (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO28_A :: POLARITY31_16_DIO28_RISE) } # [doc = "FALL"]
# [inline (always)]
pub fn polarity31_16_dio28_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO28_A :: POLARITY31_16_DIO28_FALL) } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn polarity31_16_dio28_rise_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO28_A :: POLARITY31_16_DIO28_RISE_FALL) } } # [doc = "Field `POLARITY31_16_DIO29` reader - Enables and configures edge detection polarity for DIO29."]
pub type POLARITY31_16_DIO29_R = crate :: FieldReader < POLARITY31_16_DIO29_A > ; # [doc = "Enables and configures edge detection polarity for DIO29.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum POLARITY31_16_DIO29_A { # [doc = "0: DISABLE"]
POLARITY31_16_DIO29_DISABLE = 0 , # [doc = "1: RISE"]
POLARITY31_16_DIO29_RISE = 1 , # [doc = "2: FALL"]
POLARITY31_16_DIO29_FALL = 2 , # [doc = "3: RISE_FALL"]
POLARITY31_16_DIO29_RISE_FALL = 3 , } impl From < POLARITY31_16_DIO29_A > for u8 { # [inline (always)]
fn from (variant : POLARITY31_16_DIO29_A) -> Self { variant as _ } } impl crate :: FieldSpec for POLARITY31_16_DIO29_A { type Ux = u8 ; } impl POLARITY31_16_DIO29_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> POLARITY31_16_DIO29_A { match self . bits { 0 => POLARITY31_16_DIO29_A :: POLARITY31_16_DIO29_DISABLE , 1 => POLARITY31_16_DIO29_A :: POLARITY31_16_DIO29_RISE , 2 => POLARITY31_16_DIO29_A :: POLARITY31_16_DIO29_FALL , 3 => POLARITY31_16_DIO29_A :: POLARITY31_16_DIO29_RISE_FALL , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_polarity31_16_dio29_disable (& self) -> bool { * self == POLARITY31_16_DIO29_A :: POLARITY31_16_DIO29_DISABLE } # [doc = "RISE"]
# [inline (always)]
pub fn is_polarity31_16_dio29_rise (& self) -> bool { * self == POLARITY31_16_DIO29_A :: POLARITY31_16_DIO29_RISE } # [doc = "FALL"]
# [inline (always)]
pub fn is_polarity31_16_dio29_fall (& self) -> bool { * self == POLARITY31_16_DIO29_A :: POLARITY31_16_DIO29_FALL } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn is_polarity31_16_dio29_rise_fall (& self) -> bool { * self == POLARITY31_16_DIO29_A :: POLARITY31_16_DIO29_RISE_FALL } } # [doc = "Field `POLARITY31_16_DIO29` writer - Enables and configures edge detection polarity for DIO29."]
pub type POLARITY31_16_DIO29_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , POLARITY31_16_DIO29_A > ; impl < 'a , REG , const O : u8 > POLARITY31_16_DIO29_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn polarity31_16_dio29_disable (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO29_A :: POLARITY31_16_DIO29_DISABLE) } # [doc = "RISE"]
# [inline (always)]
pub fn polarity31_16_dio29_rise (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO29_A :: POLARITY31_16_DIO29_RISE) } # [doc = "FALL"]
# [inline (always)]
pub fn polarity31_16_dio29_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO29_A :: POLARITY31_16_DIO29_FALL) } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn polarity31_16_dio29_rise_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO29_A :: POLARITY31_16_DIO29_RISE_FALL) } } # [doc = "Field `POLARITY31_16_DIO30` reader - Enables and configures edge detection polarity for DIO30."]
pub type POLARITY31_16_DIO30_R = crate :: FieldReader < POLARITY31_16_DIO30_A > ; # [doc = "Enables and configures edge detection polarity for DIO30.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum POLARITY31_16_DIO30_A { # [doc = "0: DISABLE"]
POLARITY31_16_DIO30_DISABLE = 0 , # [doc = "1: RISE"]
POLARITY31_16_DIO30_RISE = 1 , # [doc = "2: FALL"]
POLARITY31_16_DIO30_FALL = 2 , # [doc = "3: RISE_FALL"]
POLARITY31_16_DIO30_RISE_FALL = 3 , } impl From < POLARITY31_16_DIO30_A > for u8 { # [inline (always)]
fn from (variant : POLARITY31_16_DIO30_A) -> Self { variant as _ } } impl crate :: FieldSpec for POLARITY31_16_DIO30_A { type Ux = u8 ; } impl POLARITY31_16_DIO30_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> POLARITY31_16_DIO30_A { match self . bits { 0 => POLARITY31_16_DIO30_A :: POLARITY31_16_DIO30_DISABLE , 1 => POLARITY31_16_DIO30_A :: POLARITY31_16_DIO30_RISE , 2 => POLARITY31_16_DIO30_A :: POLARITY31_16_DIO30_FALL , 3 => POLARITY31_16_DIO30_A :: POLARITY31_16_DIO30_RISE_FALL , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_polarity31_16_dio30_disable (& self) -> bool { * self == POLARITY31_16_DIO30_A :: POLARITY31_16_DIO30_DISABLE } # [doc = "RISE"]
# [inline (always)]
pub fn is_polarity31_16_dio30_rise (& self) -> bool { * self == POLARITY31_16_DIO30_A :: POLARITY31_16_DIO30_RISE } # [doc = "FALL"]
# [inline (always)]
pub fn is_polarity31_16_dio30_fall (& self) -> bool { * self == POLARITY31_16_DIO30_A :: POLARITY31_16_DIO30_FALL } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn is_polarity31_16_dio30_rise_fall (& self) -> bool { * self == POLARITY31_16_DIO30_A :: POLARITY31_16_DIO30_RISE_FALL } } # [doc = "Field `POLARITY31_16_DIO30` writer - Enables and configures edge detection polarity for DIO30."]
pub type POLARITY31_16_DIO30_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , POLARITY31_16_DIO30_A > ; impl < 'a , REG , const O : u8 > POLARITY31_16_DIO30_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn polarity31_16_dio30_disable (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO30_A :: POLARITY31_16_DIO30_DISABLE) } # [doc = "RISE"]
# [inline (always)]
pub fn polarity31_16_dio30_rise (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO30_A :: POLARITY31_16_DIO30_RISE) } # [doc = "FALL"]
# [inline (always)]
pub fn polarity31_16_dio30_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO30_A :: POLARITY31_16_DIO30_FALL) } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn polarity31_16_dio30_rise_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO30_A :: POLARITY31_16_DIO30_RISE_FALL) } } # [doc = "Field `POLARITY31_16_DIO31` reader - Enables and configures edge detection polarity for DIO31."]
pub type POLARITY31_16_DIO31_R = crate :: FieldReader < POLARITY31_16_DIO31_A > ; # [doc = "Enables and configures edge detection polarity for DIO31.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum POLARITY31_16_DIO31_A { # [doc = "0: DISABLE"]
POLARITY31_16_DIO31_DISABLE = 0 , # [doc = "1: RISE"]
POLARITY31_16_DIO31_RISE = 1 , # [doc = "2: FALL"]
POLARITY31_16_DIO31_FALL = 2 , # [doc = "3: RISE_FALL"]
POLARITY31_16_DIO31_RISE_FALL = 3 , } impl From < POLARITY31_16_DIO31_A > for u8 { # [inline (always)]
fn from (variant : POLARITY31_16_DIO31_A) -> Self { variant as _ } } impl crate :: FieldSpec for POLARITY31_16_DIO31_A { type Ux = u8 ; } impl POLARITY31_16_DIO31_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> POLARITY31_16_DIO31_A { match self . bits { 0 => POLARITY31_16_DIO31_A :: POLARITY31_16_DIO31_DISABLE , 1 => POLARITY31_16_DIO31_A :: POLARITY31_16_DIO31_RISE , 2 => POLARITY31_16_DIO31_A :: POLARITY31_16_DIO31_FALL , 3 => POLARITY31_16_DIO31_A :: POLARITY31_16_DIO31_RISE_FALL , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_polarity31_16_dio31_disable (& self) -> bool { * self == POLARITY31_16_DIO31_A :: POLARITY31_16_DIO31_DISABLE } # [doc = "RISE"]
# [inline (always)]
pub fn is_polarity31_16_dio31_rise (& self) -> bool { * self == POLARITY31_16_DIO31_A :: POLARITY31_16_DIO31_RISE } # [doc = "FALL"]
# [inline (always)]
pub fn is_polarity31_16_dio31_fall (& self) -> bool { * self == POLARITY31_16_DIO31_A :: POLARITY31_16_DIO31_FALL } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn is_polarity31_16_dio31_rise_fall (& self) -> bool { * self == POLARITY31_16_DIO31_A :: POLARITY31_16_DIO31_RISE_FALL } } # [doc = "Field `POLARITY31_16_DIO31` writer - Enables and configures edge detection polarity for DIO31."]
pub type POLARITY31_16_DIO31_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , POLARITY31_16_DIO31_A > ; impl < 'a , REG , const O : u8 > POLARITY31_16_DIO31_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn polarity31_16_dio31_disable (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO31_A :: POLARITY31_16_DIO31_DISABLE) } # [doc = "RISE"]
# [inline (always)]
pub fn polarity31_16_dio31_rise (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO31_A :: POLARITY31_16_DIO31_RISE) } # [doc = "FALL"]
# [inline (always)]
pub fn polarity31_16_dio31_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO31_A :: POLARITY31_16_DIO31_FALL) } # [doc = "RISE_FALL"]
# [inline (always)]
pub fn polarity31_16_dio31_rise_fall (self) -> & 'a mut crate :: W < REG > { self . variant (POLARITY31_16_DIO31_A :: POLARITY31_16_DIO31_RISE_FALL) } } impl R { # [doc = "Bits 0:1 - Enables and configures edge detection polarity for DIO16."]
# [inline (always)]
pub fn polarity31_16_dio16 (& self) -> POLARITY31_16_DIO16_R { POLARITY31_16_DIO16_R :: new ((self . bits & 3) as u8) } # [doc = "Bits 2:3 - Enables and configures edge detection polarity for DIO17."]
# [inline (always)]
pub fn polarity31_16_dio17 (& self) -> POLARITY31_16_DIO17_R { POLARITY31_16_DIO17_R :: new (((self . bits >> 2) & 3) as u8) } # [doc = "Bits 4:5 - Enables and configures edge detection polarity for DIO18."]
# [inline (always)]
pub fn polarity31_16_dio18 (& self) -> POLARITY31_16_DIO18_R { POLARITY31_16_DIO18_R :: new (((self . bits >> 4) & 3) as u8) } # [doc = "Bits 6:7 - Enables and configures edge detection polarity for DIO19."]
# [inline (always)]
pub fn polarity31_16_dio19 (& self) -> POLARITY31_16_DIO19_R { POLARITY31_16_DIO19_R :: new (((self . bits >> 6) & 3) as u8) } # [doc = "Bits 8:9 - Enables and configures edge detection polarity for DIO20."]
# [inline (always)]
pub fn polarity31_16_dio20 (& self) -> POLARITY31_16_DIO20_R { POLARITY31_16_DIO20_R :: new (((self . bits >> 8) & 3) as u8) } # [doc = "Bits 10:11 - Enables and configures edge detection polarity for DIO21."]
# [inline (always)]
pub fn polarity31_16_dio21 (& self) -> POLARITY31_16_DIO21_R { POLARITY31_16_DIO21_R :: new (((self . bits >> 10) & 3) as u8) } # [doc = "Bits 12:13 - Enables and configures edge detection polarity for DIO22."]
# [inline (always)]
pub fn polarity31_16_dio22 (& self) -> POLARITY31_16_DIO22_R { POLARITY31_16_DIO22_R :: new (((self . bits >> 12) & 3) as u8) } # [doc = "Bits 14:15 - Enables and configures edge detection polarity for DIO23."]
# [inline (always)]
pub fn polarity31_16_dio23 (& self) -> POLARITY31_16_DIO23_R { POLARITY31_16_DIO23_R :: new (((self . bits >> 14) & 3) as u8) } # [doc = "Bits 16:17 - Enables and configures edge detection polarity for DIO24."]
# [inline (always)]
pub fn polarity31_16_dio24 (& self) -> POLARITY31_16_DIO24_R { POLARITY31_16_DIO24_R :: new (((self . bits >> 16) & 3) as u8) } # [doc = "Bits 18:19 - Enables and configures edge detection polarity for DIO25."]
# [inline (always)]
pub fn polarity31_16_dio25 (& self) -> POLARITY31_16_DIO25_R { POLARITY31_16_DIO25_R :: new (((self . bits >> 18) & 3) as u8) } # [doc = "Bits 20:21 - Enables and configures edge detection polarity for DIO26."]
# [inline (always)]
pub fn polarity31_16_dio26 (& self) -> POLARITY31_16_DIO26_R { POLARITY31_16_DIO26_R :: new (((self . bits >> 20) & 3) as u8) } # [doc = "Bits 22:23 - Enables and configures edge detection polarity for DIO27."]
# [inline (always)]
pub fn polarity31_16_dio27 (& self) -> POLARITY31_16_DIO27_R { POLARITY31_16_DIO27_R :: new (((self . bits >> 22) & 3) as u8) } # [doc = "Bits 24:25 - Enables and configures edge detection polarity for DIO28."]
# [inline (always)]
pub fn polarity31_16_dio28 (& self) -> POLARITY31_16_DIO28_R { POLARITY31_16_DIO28_R :: new (((self . bits >> 24) & 3) as u8) } # [doc = "Bits 26:27 - Enables and configures edge detection polarity for DIO29."]
# [inline (always)]
pub fn polarity31_16_dio29 (& self) -> POLARITY31_16_DIO29_R { POLARITY31_16_DIO29_R :: new (((self . bits >> 26) & 3) as u8) } # [doc = "Bits 28:29 - Enables and configures edge detection polarity for DIO30."]
# [inline (always)]
pub fn polarity31_16_dio30 (& self) -> POLARITY31_16_DIO30_R { POLARITY31_16_DIO30_R :: new (((self . bits >> 28) & 3) as u8) } # [doc = "Bits 30:31 - Enables and configures edge detection polarity for DIO31."]
# [inline (always)]
pub fn polarity31_16_dio31 (& self) -> POLARITY31_16_DIO31_R { POLARITY31_16_DIO31_R :: new (((self . bits >> 30) & 3) as u8) } } impl W { # [doc = "Bits 0:1 - Enables and configures edge detection polarity for DIO16."]
# [inline (always)]
# [must_use]
pub fn polarity31_16_dio16 (& mut self) -> POLARITY31_16_DIO16_W < POLARITY31_16_SPEC , 0 > { POLARITY31_16_DIO16_W :: new (self) } # [doc = "Bits 2:3 - Enables and configures edge detection polarity for DIO17."]
# [inline (always)]
# [must_use]
pub fn polarity31_16_dio17 (& mut self) -> POLARITY31_16_DIO17_W < POLARITY31_16_SPEC , 2 > { POLARITY31_16_DIO17_W :: new (self) } # [doc = "Bits 4:5 - Enables and configures edge detection polarity for DIO18."]
# [inline (always)]
# [must_use]
pub fn polarity31_16_dio18 (& mut self) -> POLARITY31_16_DIO18_W < POLARITY31_16_SPEC , 4 > { POLARITY31_16_DIO18_W :: new (self) } # [doc = "Bits 6:7 - Enables and configures edge detection polarity for DIO19."]
# [inline (always)]
# [must_use]
pub fn polarity31_16_dio19 (& mut self) -> POLARITY31_16_DIO19_W < POLARITY31_16_SPEC , 6 > { POLARITY31_16_DIO19_W :: new (self) } # [doc = "Bits 8:9 - Enables and configures edge detection polarity for DIO20."]
# [inline (always)]
# [must_use]
pub fn polarity31_16_dio20 (& mut self) -> POLARITY31_16_DIO20_W < POLARITY31_16_SPEC , 8 > { POLARITY31_16_DIO20_W :: new (self) } # [doc = "Bits 10:11 - Enables and configures edge detection polarity for DIO21."]
# [inline (always)]
# [must_use]
pub fn polarity31_16_dio21 (& mut self) -> POLARITY31_16_DIO21_W < POLARITY31_16_SPEC , 10 > { POLARITY31_16_DIO21_W :: new (self) } # [doc = "Bits 12:13 - Enables and configures edge detection polarity for DIO22."]
# [inline (always)]
# [must_use]
pub fn polarity31_16_dio22 (& mut self) -> POLARITY31_16_DIO22_W < POLARITY31_16_SPEC , 12 > { POLARITY31_16_DIO22_W :: new (self) } # [doc = "Bits 14:15 - Enables and configures edge detection polarity for DIO23."]
# [inline (always)]
# [must_use]
pub fn polarity31_16_dio23 (& mut self) -> POLARITY31_16_DIO23_W < POLARITY31_16_SPEC , 14 > { POLARITY31_16_DIO23_W :: new (self) } # [doc = "Bits 16:17 - Enables and configures edge detection polarity for DIO24."]
# [inline (always)]
# [must_use]
pub fn polarity31_16_dio24 (& mut self) -> POLARITY31_16_DIO24_W < POLARITY31_16_SPEC , 16 > { POLARITY31_16_DIO24_W :: new (self) } # [doc = "Bits 18:19 - Enables and configures edge detection polarity for DIO25."]
# [inline (always)]
# [must_use]
pub fn polarity31_16_dio25 (& mut self) -> POLARITY31_16_DIO25_W < POLARITY31_16_SPEC , 18 > { POLARITY31_16_DIO25_W :: new (self) } # [doc = "Bits 20:21 - Enables and configures edge detection polarity for DIO26."]
# [inline (always)]
# [must_use]
pub fn polarity31_16_dio26 (& mut self) -> POLARITY31_16_DIO26_W < POLARITY31_16_SPEC , 20 > { POLARITY31_16_DIO26_W :: new (self) } # [doc = "Bits 22:23 - Enables and configures edge detection polarity for DIO27."]
# [inline (always)]
# [must_use]
pub fn polarity31_16_dio27 (& mut self) -> POLARITY31_16_DIO27_W < POLARITY31_16_SPEC , 22 > { POLARITY31_16_DIO27_W :: new (self) } # [doc = "Bits 24:25 - Enables and configures edge detection polarity for DIO28."]
# [inline (always)]
# [must_use]
pub fn polarity31_16_dio28 (& mut self) -> POLARITY31_16_DIO28_W < POLARITY31_16_SPEC , 24 > { POLARITY31_16_DIO28_W :: new (self) } # [doc = "Bits 26:27 - Enables and configures edge detection polarity for DIO29."]
# [inline (always)]
# [must_use]
pub fn polarity31_16_dio29 (& mut self) -> POLARITY31_16_DIO29_W < POLARITY31_16_SPEC , 26 > { POLARITY31_16_DIO29_W :: new (self) } # [doc = "Bits 28:29 - Enables and configures edge detection polarity for DIO30."]
# [inline (always)]
# [must_use]
pub fn polarity31_16_dio30 (& mut self) -> POLARITY31_16_DIO30_W < POLARITY31_16_SPEC , 28 > { POLARITY31_16_DIO30_W :: new (self) } # [doc = "Bits 30:31 - Enables and configures edge detection polarity for DIO31."]
# [inline (always)]
# [must_use]
pub fn polarity31_16_dio31 (& mut self) -> POLARITY31_16_DIO31_W < POLARITY31_16_SPEC , 30 > { POLARITY31_16_DIO31_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Polarity 31 to 16\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`polarity31_16::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`polarity31_16::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct POLARITY31_16_SPEC ; impl crate :: RegisterSpec for POLARITY31_16_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`polarity31_16::R`](R) reader structure"]
impl crate :: Readable for POLARITY31_16_SPEC { } # [doc = "`write(|w| ..)` method takes [`polarity31_16::W`](W) writer structure"]
impl crate :: Writable for POLARITY31_16_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets POLARITY31_16 to value 0"]
impl crate :: Resettable for POLARITY31_16_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTL (rw) register accessor: FAST WAKE GLOBAL EN\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctl`]
module"]
pub type CTL = crate :: Reg < ctl :: CTL_SPEC > ; # [doc = "FAST WAKE GLOBAL EN"]
pub mod ctl { # [doc = "Register `CTL` reader"]
pub type R = crate :: R < CTL_SPEC > ; # [doc = "Register `CTL` writer"]
pub type W = crate :: W < CTL_SPEC > ; # [doc = "Field `CTL_FASTWAKEONLY` reader - FASTWAKEONLY for the global control of fastwake"]
pub type CTL_FASTWAKEONLY_R = crate :: BitReader < CTL_FASTWAKEONLY_A > ; # [doc = "FASTWAKEONLY for the global control of fastwake\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL_FASTWAKEONLY_A { # [doc = "0: NOT_GLOBAL_EN"]
CTL_FASTWAKEONLY_NOT_GLOBAL_EN = 0 , # [doc = "1: GLOBAL_EN"]
CTL_FASTWAKEONLY_GLOBAL_EN = 1 , } impl From < CTL_FASTWAKEONLY_A > for bool { # [inline (always)]
fn from (variant : CTL_FASTWAKEONLY_A) -> Self { variant as u8 != 0 } } impl CTL_FASTWAKEONLY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL_FASTWAKEONLY_A { match self . bits { false => CTL_FASTWAKEONLY_A :: CTL_FASTWAKEONLY_NOT_GLOBAL_EN , true => CTL_FASTWAKEONLY_A :: CTL_FASTWAKEONLY_GLOBAL_EN , } } # [doc = "NOT_GLOBAL_EN"]
# [inline (always)]
pub fn is_ctl_fastwakeonly_not_global_en (& self) -> bool { * self == CTL_FASTWAKEONLY_A :: CTL_FASTWAKEONLY_NOT_GLOBAL_EN } # [doc = "GLOBAL_EN"]
# [inline (always)]
pub fn is_ctl_fastwakeonly_global_en (& self) -> bool { * self == CTL_FASTWAKEONLY_A :: CTL_FASTWAKEONLY_GLOBAL_EN } } # [doc = "Field `CTL_FASTWAKEONLY` writer - FASTWAKEONLY for the global control of fastwake"]
pub type CTL_FASTWAKEONLY_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL_FASTWAKEONLY_A > ; impl < 'a , REG , const O : u8 > CTL_FASTWAKEONLY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOT_GLOBAL_EN"]
# [inline (always)]
pub fn ctl_fastwakeonly_not_global_en (self) -> & 'a mut crate :: W < REG > { self . variant (CTL_FASTWAKEONLY_A :: CTL_FASTWAKEONLY_NOT_GLOBAL_EN) } # [doc = "GLOBAL_EN"]
# [inline (always)]
pub fn ctl_fastwakeonly_global_en (self) -> & 'a mut crate :: W < REG > { self . variant (CTL_FASTWAKEONLY_A :: CTL_FASTWAKEONLY_GLOBAL_EN) } } impl R { # [doc = "Bit 0 - FASTWAKEONLY for the global control of fastwake"]
# [inline (always)]
pub fn ctl_fastwakeonly (& self) -> CTL_FASTWAKEONLY_R { CTL_FASTWAKEONLY_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - FASTWAKEONLY for the global control of fastwake"]
# [inline (always)]
# [must_use]
pub fn ctl_fastwakeonly (& mut self) -> CTL_FASTWAKEONLY_W < CTL_SPEC , 0 > { CTL_FASTWAKEONLY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "FAST WAKE GLOBAL EN\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTL_SPEC ; impl crate :: RegisterSpec for CTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ctl::R`](R) reader structure"]
impl crate :: Readable for CTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`ctl::W`](W) writer structure"]
impl crate :: Writable for CTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTL to value 0"]
impl crate :: Resettable for CTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "FASTWAKE (rw) register accessor: FAST WAKE ENABLE\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fastwake::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fastwake::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fastwake`]
module"]
pub type FASTWAKE = crate :: Reg < fastwake :: FASTWAKE_SPEC > ; # [doc = "FAST WAKE ENABLE"]
pub mod fastwake { # [doc = "Register `FASTWAKE` reader"]
pub type R = crate :: R < FASTWAKE_SPEC > ; # [doc = "Register `FASTWAKE` writer"]
pub type W = crate :: W < FASTWAKE_SPEC > ; # [doc = "Field `FASTWAKE_DIN0` reader - Enable fastwake feature for DIN0"]
pub type FASTWAKE_DIN0_R = crate :: BitReader < FASTWAKE_DIN0_A > ; # [doc = "Enable fastwake feature for DIN0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FASTWAKE_DIN0_A { # [doc = "0: DISABLE"]
FASTWAKE_DIN0_DISABLE = 0 , # [doc = "1: ENABLE"]
FASTWAKE_DIN0_ENABLE = 1 , } impl From < FASTWAKE_DIN0_A > for bool { # [inline (always)]
fn from (variant : FASTWAKE_DIN0_A) -> Self { variant as u8 != 0 } } impl FASTWAKE_DIN0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FASTWAKE_DIN0_A { match self . bits { false => FASTWAKE_DIN0_A :: FASTWAKE_DIN0_DISABLE , true => FASTWAKE_DIN0_A :: FASTWAKE_DIN0_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_fastwake_din0_disable (& self) -> bool { * self == FASTWAKE_DIN0_A :: FASTWAKE_DIN0_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_fastwake_din0_enable (& self) -> bool { * self == FASTWAKE_DIN0_A :: FASTWAKE_DIN0_ENABLE } } # [doc = "Field `FASTWAKE_DIN0` writer - Enable fastwake feature for DIN0"]
pub type FASTWAKE_DIN0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FASTWAKE_DIN0_A > ; impl < 'a , REG , const O : u8 > FASTWAKE_DIN0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn fastwake_din0_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN0_A :: FASTWAKE_DIN0_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn fastwake_din0_enable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN0_A :: FASTWAKE_DIN0_ENABLE) } } # [doc = "Field `FASTWAKE_DIN1` reader - Enable fastwake feature for DIN1"]
pub type FASTWAKE_DIN1_R = crate :: BitReader < FASTWAKE_DIN1_A > ; # [doc = "Enable fastwake feature for DIN1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FASTWAKE_DIN1_A { # [doc = "0: DISABLE"]
FASTWAKE_DIN1_DISABLE = 0 , # [doc = "1: ENABLE"]
FASTWAKE_DIN1_ENABLE = 1 , } impl From < FASTWAKE_DIN1_A > for bool { # [inline (always)]
fn from (variant : FASTWAKE_DIN1_A) -> Self { variant as u8 != 0 } } impl FASTWAKE_DIN1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FASTWAKE_DIN1_A { match self . bits { false => FASTWAKE_DIN1_A :: FASTWAKE_DIN1_DISABLE , true => FASTWAKE_DIN1_A :: FASTWAKE_DIN1_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_fastwake_din1_disable (& self) -> bool { * self == FASTWAKE_DIN1_A :: FASTWAKE_DIN1_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_fastwake_din1_enable (& self) -> bool { * self == FASTWAKE_DIN1_A :: FASTWAKE_DIN1_ENABLE } } # [doc = "Field `FASTWAKE_DIN1` writer - Enable fastwake feature for DIN1"]
pub type FASTWAKE_DIN1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FASTWAKE_DIN1_A > ; impl < 'a , REG , const O : u8 > FASTWAKE_DIN1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn fastwake_din1_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN1_A :: FASTWAKE_DIN1_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn fastwake_din1_enable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN1_A :: FASTWAKE_DIN1_ENABLE) } } # [doc = "Field `FASTWAKE_DIN2` reader - Enable fastwake feature for DIN2"]
pub type FASTWAKE_DIN2_R = crate :: BitReader < FASTWAKE_DIN2_A > ; # [doc = "Enable fastwake feature for DIN2\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FASTWAKE_DIN2_A { # [doc = "0: DISABLE"]
FASTWAKE_DIN2_DISABLE = 0 , # [doc = "1: ENABLE"]
FASTWAKE_DIN2_ENABLE = 1 , } impl From < FASTWAKE_DIN2_A > for bool { # [inline (always)]
fn from (variant : FASTWAKE_DIN2_A) -> Self { variant as u8 != 0 } } impl FASTWAKE_DIN2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FASTWAKE_DIN2_A { match self . bits { false => FASTWAKE_DIN2_A :: FASTWAKE_DIN2_DISABLE , true => FASTWAKE_DIN2_A :: FASTWAKE_DIN2_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_fastwake_din2_disable (& self) -> bool { * self == FASTWAKE_DIN2_A :: FASTWAKE_DIN2_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_fastwake_din2_enable (& self) -> bool { * self == FASTWAKE_DIN2_A :: FASTWAKE_DIN2_ENABLE } } # [doc = "Field `FASTWAKE_DIN2` writer - Enable fastwake feature for DIN2"]
pub type FASTWAKE_DIN2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FASTWAKE_DIN2_A > ; impl < 'a , REG , const O : u8 > FASTWAKE_DIN2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn fastwake_din2_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN2_A :: FASTWAKE_DIN2_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn fastwake_din2_enable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN2_A :: FASTWAKE_DIN2_ENABLE) } } # [doc = "Field `FASTWAKE_DIN3` reader - Enable fastwake feature for DIN3"]
pub type FASTWAKE_DIN3_R = crate :: BitReader < FASTWAKE_DIN3_A > ; # [doc = "Enable fastwake feature for DIN3\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FASTWAKE_DIN3_A { # [doc = "0: DISABLE"]
FASTWAKE_DIN3_DISABLE = 0 , # [doc = "1: ENABLE"]
FASTWAKE_DIN3_ENABLE = 1 , } impl From < FASTWAKE_DIN3_A > for bool { # [inline (always)]
fn from (variant : FASTWAKE_DIN3_A) -> Self { variant as u8 != 0 } } impl FASTWAKE_DIN3_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FASTWAKE_DIN3_A { match self . bits { false => FASTWAKE_DIN3_A :: FASTWAKE_DIN3_DISABLE , true => FASTWAKE_DIN3_A :: FASTWAKE_DIN3_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_fastwake_din3_disable (& self) -> bool { * self == FASTWAKE_DIN3_A :: FASTWAKE_DIN3_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_fastwake_din3_enable (& self) -> bool { * self == FASTWAKE_DIN3_A :: FASTWAKE_DIN3_ENABLE } } # [doc = "Field `FASTWAKE_DIN3` writer - Enable fastwake feature for DIN3"]
pub type FASTWAKE_DIN3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FASTWAKE_DIN3_A > ; impl < 'a , REG , const O : u8 > FASTWAKE_DIN3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn fastwake_din3_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN3_A :: FASTWAKE_DIN3_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn fastwake_din3_enable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN3_A :: FASTWAKE_DIN3_ENABLE) } } # [doc = "Field `FASTWAKE_DIN4` reader - Enable fastwake feature for DIN4"]
pub type FASTWAKE_DIN4_R = crate :: BitReader < FASTWAKE_DIN4_A > ; # [doc = "Enable fastwake feature for DIN4\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FASTWAKE_DIN4_A { # [doc = "0: DISABLE"]
FASTWAKE_DIN4_DISABLE = 0 , # [doc = "1: ENABLE"]
FASTWAKE_DIN4_ENABLE = 1 , } impl From < FASTWAKE_DIN4_A > for bool { # [inline (always)]
fn from (variant : FASTWAKE_DIN4_A) -> Self { variant as u8 != 0 } } impl FASTWAKE_DIN4_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FASTWAKE_DIN4_A { match self . bits { false => FASTWAKE_DIN4_A :: FASTWAKE_DIN4_DISABLE , true => FASTWAKE_DIN4_A :: FASTWAKE_DIN4_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_fastwake_din4_disable (& self) -> bool { * self == FASTWAKE_DIN4_A :: FASTWAKE_DIN4_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_fastwake_din4_enable (& self) -> bool { * self == FASTWAKE_DIN4_A :: FASTWAKE_DIN4_ENABLE } } # [doc = "Field `FASTWAKE_DIN4` writer - Enable fastwake feature for DIN4"]
pub type FASTWAKE_DIN4_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FASTWAKE_DIN4_A > ; impl < 'a , REG , const O : u8 > FASTWAKE_DIN4_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn fastwake_din4_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN4_A :: FASTWAKE_DIN4_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn fastwake_din4_enable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN4_A :: FASTWAKE_DIN4_ENABLE) } } # [doc = "Field `FASTWAKE_DIN5` reader - Enable fastwake feature for DIN5"]
pub type FASTWAKE_DIN5_R = crate :: BitReader < FASTWAKE_DIN5_A > ; # [doc = "Enable fastwake feature for DIN5\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FASTWAKE_DIN5_A { # [doc = "0: DISABLE"]
FASTWAKE_DIN5_DISABLE = 0 , # [doc = "1: ENABLE"]
FASTWAKE_DIN5_ENABLE = 1 , } impl From < FASTWAKE_DIN5_A > for bool { # [inline (always)]
fn from (variant : FASTWAKE_DIN5_A) -> Self { variant as u8 != 0 } } impl FASTWAKE_DIN5_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FASTWAKE_DIN5_A { match self . bits { false => FASTWAKE_DIN5_A :: FASTWAKE_DIN5_DISABLE , true => FASTWAKE_DIN5_A :: FASTWAKE_DIN5_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_fastwake_din5_disable (& self) -> bool { * self == FASTWAKE_DIN5_A :: FASTWAKE_DIN5_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_fastwake_din5_enable (& self) -> bool { * self == FASTWAKE_DIN5_A :: FASTWAKE_DIN5_ENABLE } } # [doc = "Field `FASTWAKE_DIN5` writer - Enable fastwake feature for DIN5"]
pub type FASTWAKE_DIN5_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FASTWAKE_DIN5_A > ; impl < 'a , REG , const O : u8 > FASTWAKE_DIN5_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn fastwake_din5_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN5_A :: FASTWAKE_DIN5_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn fastwake_din5_enable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN5_A :: FASTWAKE_DIN5_ENABLE) } } # [doc = "Field `FASTWAKE_DIN6` reader - Enable fastwake feature for DIN6"]
pub type FASTWAKE_DIN6_R = crate :: BitReader < FASTWAKE_DIN6_A > ; # [doc = "Enable fastwake feature for DIN6\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FASTWAKE_DIN6_A { # [doc = "0: DISABLE"]
FASTWAKE_DIN6_DISABLE = 0 , # [doc = "1: ENABLE"]
FASTWAKE_DIN6_ENABLE = 1 , } impl From < FASTWAKE_DIN6_A > for bool { # [inline (always)]
fn from (variant : FASTWAKE_DIN6_A) -> Self { variant as u8 != 0 } } impl FASTWAKE_DIN6_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FASTWAKE_DIN6_A { match self . bits { false => FASTWAKE_DIN6_A :: FASTWAKE_DIN6_DISABLE , true => FASTWAKE_DIN6_A :: FASTWAKE_DIN6_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_fastwake_din6_disable (& self) -> bool { * self == FASTWAKE_DIN6_A :: FASTWAKE_DIN6_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_fastwake_din6_enable (& self) -> bool { * self == FASTWAKE_DIN6_A :: FASTWAKE_DIN6_ENABLE } } # [doc = "Field `FASTWAKE_DIN6` writer - Enable fastwake feature for DIN6"]
pub type FASTWAKE_DIN6_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FASTWAKE_DIN6_A > ; impl < 'a , REG , const O : u8 > FASTWAKE_DIN6_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn fastwake_din6_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN6_A :: FASTWAKE_DIN6_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn fastwake_din6_enable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN6_A :: FASTWAKE_DIN6_ENABLE) } } # [doc = "Field `FASTWAKE_DIN7` reader - Enable fastwake feature for DIN7"]
pub type FASTWAKE_DIN7_R = crate :: BitReader < FASTWAKE_DIN7_A > ; # [doc = "Enable fastwake feature for DIN7\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FASTWAKE_DIN7_A { # [doc = "0: DISABLE"]
FASTWAKE_DIN7_DISABLE = 0 , # [doc = "1: ENABLE"]
FASTWAKE_DIN7_ENABLE = 1 , } impl From < FASTWAKE_DIN7_A > for bool { # [inline (always)]
fn from (variant : FASTWAKE_DIN7_A) -> Self { variant as u8 != 0 } } impl FASTWAKE_DIN7_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FASTWAKE_DIN7_A { match self . bits { false => FASTWAKE_DIN7_A :: FASTWAKE_DIN7_DISABLE , true => FASTWAKE_DIN7_A :: FASTWAKE_DIN7_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_fastwake_din7_disable (& self) -> bool { * self == FASTWAKE_DIN7_A :: FASTWAKE_DIN7_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_fastwake_din7_enable (& self) -> bool { * self == FASTWAKE_DIN7_A :: FASTWAKE_DIN7_ENABLE } } # [doc = "Field `FASTWAKE_DIN7` writer - Enable fastwake feature for DIN7"]
pub type FASTWAKE_DIN7_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FASTWAKE_DIN7_A > ; impl < 'a , REG , const O : u8 > FASTWAKE_DIN7_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn fastwake_din7_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN7_A :: FASTWAKE_DIN7_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn fastwake_din7_enable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN7_A :: FASTWAKE_DIN7_ENABLE) } } # [doc = "Field `FASTWAKE_DIN8` reader - Enable fastwake feature for DIN8"]
pub type FASTWAKE_DIN8_R = crate :: BitReader < FASTWAKE_DIN8_A > ; # [doc = "Enable fastwake feature for DIN8\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FASTWAKE_DIN8_A { # [doc = "0: DISABLE"]
FASTWAKE_DIN8_DISABLE = 0 , # [doc = "1: ENABLE"]
FASTWAKE_DIN8_ENABLE = 1 , } impl From < FASTWAKE_DIN8_A > for bool { # [inline (always)]
fn from (variant : FASTWAKE_DIN8_A) -> Self { variant as u8 != 0 } } impl FASTWAKE_DIN8_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FASTWAKE_DIN8_A { match self . bits { false => FASTWAKE_DIN8_A :: FASTWAKE_DIN8_DISABLE , true => FASTWAKE_DIN8_A :: FASTWAKE_DIN8_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_fastwake_din8_disable (& self) -> bool { * self == FASTWAKE_DIN8_A :: FASTWAKE_DIN8_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_fastwake_din8_enable (& self) -> bool { * self == FASTWAKE_DIN8_A :: FASTWAKE_DIN8_ENABLE } } # [doc = "Field `FASTWAKE_DIN8` writer - Enable fastwake feature for DIN8"]
pub type FASTWAKE_DIN8_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FASTWAKE_DIN8_A > ; impl < 'a , REG , const O : u8 > FASTWAKE_DIN8_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn fastwake_din8_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN8_A :: FASTWAKE_DIN8_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn fastwake_din8_enable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN8_A :: FASTWAKE_DIN8_ENABLE) } } # [doc = "Field `FASTWAKE_DIN9` reader - Enable fastwake feature for DIN9"]
pub type FASTWAKE_DIN9_R = crate :: BitReader < FASTWAKE_DIN9_A > ; # [doc = "Enable fastwake feature for DIN9\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FASTWAKE_DIN9_A { # [doc = "0: DISABLE"]
FASTWAKE_DIN9_DISABLE = 0 , # [doc = "1: ENABLE"]
FASTWAKE_DIN9_ENABLE = 1 , } impl From < FASTWAKE_DIN9_A > for bool { # [inline (always)]
fn from (variant : FASTWAKE_DIN9_A) -> Self { variant as u8 != 0 } } impl FASTWAKE_DIN9_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FASTWAKE_DIN9_A { match self . bits { false => FASTWAKE_DIN9_A :: FASTWAKE_DIN9_DISABLE , true => FASTWAKE_DIN9_A :: FASTWAKE_DIN9_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_fastwake_din9_disable (& self) -> bool { * self == FASTWAKE_DIN9_A :: FASTWAKE_DIN9_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_fastwake_din9_enable (& self) -> bool { * self == FASTWAKE_DIN9_A :: FASTWAKE_DIN9_ENABLE } } # [doc = "Field `FASTWAKE_DIN9` writer - Enable fastwake feature for DIN9"]
pub type FASTWAKE_DIN9_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FASTWAKE_DIN9_A > ; impl < 'a , REG , const O : u8 > FASTWAKE_DIN9_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn fastwake_din9_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN9_A :: FASTWAKE_DIN9_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn fastwake_din9_enable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN9_A :: FASTWAKE_DIN9_ENABLE) } } # [doc = "Field `FASTWAKE_DIN10` reader - Enable fastwake feature for DIN10"]
pub type FASTWAKE_DIN10_R = crate :: BitReader < FASTWAKE_DIN10_A > ; # [doc = "Enable fastwake feature for DIN10\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FASTWAKE_DIN10_A { # [doc = "0: DISABLE"]
FASTWAKE_DIN10_DISABLE = 0 , # [doc = "1: ENABLE"]
FASTWAKE_DIN10_ENABLE = 1 , } impl From < FASTWAKE_DIN10_A > for bool { # [inline (always)]
fn from (variant : FASTWAKE_DIN10_A) -> Self { variant as u8 != 0 } } impl FASTWAKE_DIN10_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FASTWAKE_DIN10_A { match self . bits { false => FASTWAKE_DIN10_A :: FASTWAKE_DIN10_DISABLE , true => FASTWAKE_DIN10_A :: FASTWAKE_DIN10_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_fastwake_din10_disable (& self) -> bool { * self == FASTWAKE_DIN10_A :: FASTWAKE_DIN10_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_fastwake_din10_enable (& self) -> bool { * self == FASTWAKE_DIN10_A :: FASTWAKE_DIN10_ENABLE } } # [doc = "Field `FASTWAKE_DIN10` writer - Enable fastwake feature for DIN10"]
pub type FASTWAKE_DIN10_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FASTWAKE_DIN10_A > ; impl < 'a , REG , const O : u8 > FASTWAKE_DIN10_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn fastwake_din10_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN10_A :: FASTWAKE_DIN10_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn fastwake_din10_enable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN10_A :: FASTWAKE_DIN10_ENABLE) } } # [doc = "Field `FASTWAKE_DIN11` reader - Enable fastwake feature for DIN11"]
pub type FASTWAKE_DIN11_R = crate :: BitReader < FASTWAKE_DIN11_A > ; # [doc = "Enable fastwake feature for DIN11\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FASTWAKE_DIN11_A { # [doc = "0: DISABLE"]
FASTWAKE_DIN11_DISABLE = 0 , # [doc = "1: ENABLE"]
FASTWAKE_DIN11_ENABLE = 1 , } impl From < FASTWAKE_DIN11_A > for bool { # [inline (always)]
fn from (variant : FASTWAKE_DIN11_A) -> Self { variant as u8 != 0 } } impl FASTWAKE_DIN11_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FASTWAKE_DIN11_A { match self . bits { false => FASTWAKE_DIN11_A :: FASTWAKE_DIN11_DISABLE , true => FASTWAKE_DIN11_A :: FASTWAKE_DIN11_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_fastwake_din11_disable (& self) -> bool { * self == FASTWAKE_DIN11_A :: FASTWAKE_DIN11_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_fastwake_din11_enable (& self) -> bool { * self == FASTWAKE_DIN11_A :: FASTWAKE_DIN11_ENABLE } } # [doc = "Field `FASTWAKE_DIN11` writer - Enable fastwake feature for DIN11"]
pub type FASTWAKE_DIN11_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FASTWAKE_DIN11_A > ; impl < 'a , REG , const O : u8 > FASTWAKE_DIN11_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn fastwake_din11_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN11_A :: FASTWAKE_DIN11_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn fastwake_din11_enable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN11_A :: FASTWAKE_DIN11_ENABLE) } } # [doc = "Field `FASTWAKE_DIN12` reader - Enable fastwake feature for DIN12"]
pub type FASTWAKE_DIN12_R = crate :: BitReader < FASTWAKE_DIN12_A > ; # [doc = "Enable fastwake feature for DIN12\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FASTWAKE_DIN12_A { # [doc = "0: DISABLE"]
FASTWAKE_DIN12_DISABLE = 0 , # [doc = "1: ENABLE"]
FASTWAKE_DIN12_ENABLE = 1 , } impl From < FASTWAKE_DIN12_A > for bool { # [inline (always)]
fn from (variant : FASTWAKE_DIN12_A) -> Self { variant as u8 != 0 } } impl FASTWAKE_DIN12_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FASTWAKE_DIN12_A { match self . bits { false => FASTWAKE_DIN12_A :: FASTWAKE_DIN12_DISABLE , true => FASTWAKE_DIN12_A :: FASTWAKE_DIN12_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_fastwake_din12_disable (& self) -> bool { * self == FASTWAKE_DIN12_A :: FASTWAKE_DIN12_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_fastwake_din12_enable (& self) -> bool { * self == FASTWAKE_DIN12_A :: FASTWAKE_DIN12_ENABLE } } # [doc = "Field `FASTWAKE_DIN12` writer - Enable fastwake feature for DIN12"]
pub type FASTWAKE_DIN12_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FASTWAKE_DIN12_A > ; impl < 'a , REG , const O : u8 > FASTWAKE_DIN12_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn fastwake_din12_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN12_A :: FASTWAKE_DIN12_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn fastwake_din12_enable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN12_A :: FASTWAKE_DIN12_ENABLE) } } # [doc = "Field `FASTWAKE_DIN13` reader - Enable fastwake feature for DIN13"]
pub type FASTWAKE_DIN13_R = crate :: BitReader < FASTWAKE_DIN13_A > ; # [doc = "Enable fastwake feature for DIN13\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FASTWAKE_DIN13_A { # [doc = "0: DISABLE"]
FASTWAKE_DIN13_DISABLE = 0 , # [doc = "1: ENABLE"]
FASTWAKE_DIN13_ENABLE = 1 , } impl From < FASTWAKE_DIN13_A > for bool { # [inline (always)]
fn from (variant : FASTWAKE_DIN13_A) -> Self { variant as u8 != 0 } } impl FASTWAKE_DIN13_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FASTWAKE_DIN13_A { match self . bits { false => FASTWAKE_DIN13_A :: FASTWAKE_DIN13_DISABLE , true => FASTWAKE_DIN13_A :: FASTWAKE_DIN13_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_fastwake_din13_disable (& self) -> bool { * self == FASTWAKE_DIN13_A :: FASTWAKE_DIN13_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_fastwake_din13_enable (& self) -> bool { * self == FASTWAKE_DIN13_A :: FASTWAKE_DIN13_ENABLE } } # [doc = "Field `FASTWAKE_DIN13` writer - Enable fastwake feature for DIN13"]
pub type FASTWAKE_DIN13_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FASTWAKE_DIN13_A > ; impl < 'a , REG , const O : u8 > FASTWAKE_DIN13_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn fastwake_din13_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN13_A :: FASTWAKE_DIN13_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn fastwake_din13_enable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN13_A :: FASTWAKE_DIN13_ENABLE) } } # [doc = "Field `FASTWAKE_DIN14` reader - Enable fastwake feature for DIN14"]
pub type FASTWAKE_DIN14_R = crate :: BitReader < FASTWAKE_DIN14_A > ; # [doc = "Enable fastwake feature for DIN14\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FASTWAKE_DIN14_A { # [doc = "0: DISABLE"]
FASTWAKE_DIN14_DISABLE = 0 , # [doc = "1: ENABLE"]
FASTWAKE_DIN14_ENABLE = 1 , } impl From < FASTWAKE_DIN14_A > for bool { # [inline (always)]
fn from (variant : FASTWAKE_DIN14_A) -> Self { variant as u8 != 0 } } impl FASTWAKE_DIN14_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FASTWAKE_DIN14_A { match self . bits { false => FASTWAKE_DIN14_A :: FASTWAKE_DIN14_DISABLE , true => FASTWAKE_DIN14_A :: FASTWAKE_DIN14_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_fastwake_din14_disable (& self) -> bool { * self == FASTWAKE_DIN14_A :: FASTWAKE_DIN14_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_fastwake_din14_enable (& self) -> bool { * self == FASTWAKE_DIN14_A :: FASTWAKE_DIN14_ENABLE } } # [doc = "Field `FASTWAKE_DIN14` writer - Enable fastwake feature for DIN14"]
pub type FASTWAKE_DIN14_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FASTWAKE_DIN14_A > ; impl < 'a , REG , const O : u8 > FASTWAKE_DIN14_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn fastwake_din14_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN14_A :: FASTWAKE_DIN14_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn fastwake_din14_enable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN14_A :: FASTWAKE_DIN14_ENABLE) } } # [doc = "Field `FASTWAKE_DIN15` reader - Enable fastwake feature for DIN15"]
pub type FASTWAKE_DIN15_R = crate :: BitReader < FASTWAKE_DIN15_A > ; # [doc = "Enable fastwake feature for DIN15\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FASTWAKE_DIN15_A { # [doc = "0: DISABLE"]
FASTWAKE_DIN15_DISABLE = 0 , # [doc = "1: ENABLE"]
FASTWAKE_DIN15_ENABLE = 1 , } impl From < FASTWAKE_DIN15_A > for bool { # [inline (always)]
fn from (variant : FASTWAKE_DIN15_A) -> Self { variant as u8 != 0 } } impl FASTWAKE_DIN15_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FASTWAKE_DIN15_A { match self . bits { false => FASTWAKE_DIN15_A :: FASTWAKE_DIN15_DISABLE , true => FASTWAKE_DIN15_A :: FASTWAKE_DIN15_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_fastwake_din15_disable (& self) -> bool { * self == FASTWAKE_DIN15_A :: FASTWAKE_DIN15_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_fastwake_din15_enable (& self) -> bool { * self == FASTWAKE_DIN15_A :: FASTWAKE_DIN15_ENABLE } } # [doc = "Field `FASTWAKE_DIN15` writer - Enable fastwake feature for DIN15"]
pub type FASTWAKE_DIN15_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FASTWAKE_DIN15_A > ; impl < 'a , REG , const O : u8 > FASTWAKE_DIN15_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn fastwake_din15_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN15_A :: FASTWAKE_DIN15_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn fastwake_din15_enable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN15_A :: FASTWAKE_DIN15_ENABLE) } } # [doc = "Field `FASTWAKE_DIN16` reader - Enable fastwake feature for DIN16"]
pub type FASTWAKE_DIN16_R = crate :: BitReader < FASTWAKE_DIN16_A > ; # [doc = "Enable fastwake feature for DIN16\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FASTWAKE_DIN16_A { # [doc = "0: DISABLE"]
FASTWAKE_DIN16_DISABLE = 0 , # [doc = "1: ENABLE"]
FASTWAKE_DIN16_ENABLE = 1 , } impl From < FASTWAKE_DIN16_A > for bool { # [inline (always)]
fn from (variant : FASTWAKE_DIN16_A) -> Self { variant as u8 != 0 } } impl FASTWAKE_DIN16_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FASTWAKE_DIN16_A { match self . bits { false => FASTWAKE_DIN16_A :: FASTWAKE_DIN16_DISABLE , true => FASTWAKE_DIN16_A :: FASTWAKE_DIN16_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_fastwake_din16_disable (& self) -> bool { * self == FASTWAKE_DIN16_A :: FASTWAKE_DIN16_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_fastwake_din16_enable (& self) -> bool { * self == FASTWAKE_DIN16_A :: FASTWAKE_DIN16_ENABLE } } # [doc = "Field `FASTWAKE_DIN16` writer - Enable fastwake feature for DIN16"]
pub type FASTWAKE_DIN16_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FASTWAKE_DIN16_A > ; impl < 'a , REG , const O : u8 > FASTWAKE_DIN16_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn fastwake_din16_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN16_A :: FASTWAKE_DIN16_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn fastwake_din16_enable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN16_A :: FASTWAKE_DIN16_ENABLE) } } # [doc = "Field `FASTWAKE_DIN17` reader - Enable fastwake feature for DIN17"]
pub type FASTWAKE_DIN17_R = crate :: BitReader < FASTWAKE_DIN17_A > ; # [doc = "Enable fastwake feature for DIN17\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FASTWAKE_DIN17_A { # [doc = "0: DISABLE"]
FASTWAKE_DIN17_DISABLE = 0 , # [doc = "1: ENABLE"]
FASTWAKE_DIN17_ENABLE = 1 , } impl From < FASTWAKE_DIN17_A > for bool { # [inline (always)]
fn from (variant : FASTWAKE_DIN17_A) -> Self { variant as u8 != 0 } } impl FASTWAKE_DIN17_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FASTWAKE_DIN17_A { match self . bits { false => FASTWAKE_DIN17_A :: FASTWAKE_DIN17_DISABLE , true => FASTWAKE_DIN17_A :: FASTWAKE_DIN17_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_fastwake_din17_disable (& self) -> bool { * self == FASTWAKE_DIN17_A :: FASTWAKE_DIN17_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_fastwake_din17_enable (& self) -> bool { * self == FASTWAKE_DIN17_A :: FASTWAKE_DIN17_ENABLE } } # [doc = "Field `FASTWAKE_DIN17` writer - Enable fastwake feature for DIN17"]
pub type FASTWAKE_DIN17_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FASTWAKE_DIN17_A > ; impl < 'a , REG , const O : u8 > FASTWAKE_DIN17_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn fastwake_din17_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN17_A :: FASTWAKE_DIN17_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn fastwake_din17_enable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN17_A :: FASTWAKE_DIN17_ENABLE) } } # [doc = "Field `FASTWAKE_DIN18` reader - Enable fastwake feature for DIN18"]
pub type FASTWAKE_DIN18_R = crate :: BitReader < FASTWAKE_DIN18_A > ; # [doc = "Enable fastwake feature for DIN18\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FASTWAKE_DIN18_A { # [doc = "0: DISABLE"]
FASTWAKE_DIN18_DISABLE = 0 , # [doc = "1: ENABLE"]
FASTWAKE_DIN18_ENABLE = 1 , } impl From < FASTWAKE_DIN18_A > for bool { # [inline (always)]
fn from (variant : FASTWAKE_DIN18_A) -> Self { variant as u8 != 0 } } impl FASTWAKE_DIN18_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FASTWAKE_DIN18_A { match self . bits { false => FASTWAKE_DIN18_A :: FASTWAKE_DIN18_DISABLE , true => FASTWAKE_DIN18_A :: FASTWAKE_DIN18_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_fastwake_din18_disable (& self) -> bool { * self == FASTWAKE_DIN18_A :: FASTWAKE_DIN18_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_fastwake_din18_enable (& self) -> bool { * self == FASTWAKE_DIN18_A :: FASTWAKE_DIN18_ENABLE } } # [doc = "Field `FASTWAKE_DIN18` writer - Enable fastwake feature for DIN18"]
pub type FASTWAKE_DIN18_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FASTWAKE_DIN18_A > ; impl < 'a , REG , const O : u8 > FASTWAKE_DIN18_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn fastwake_din18_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN18_A :: FASTWAKE_DIN18_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn fastwake_din18_enable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN18_A :: FASTWAKE_DIN18_ENABLE) } } # [doc = "Field `FASTWAKE_DIN19` reader - Enable fastwake feature for DIN19"]
pub type FASTWAKE_DIN19_R = crate :: BitReader < FASTWAKE_DIN19_A > ; # [doc = "Enable fastwake feature for DIN19\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FASTWAKE_DIN19_A { # [doc = "0: DISABLE"]
FASTWAKE_DIN19_DISABLE = 0 , # [doc = "1: ENABLE"]
FASTWAKE_DIN19_ENABLE = 1 , } impl From < FASTWAKE_DIN19_A > for bool { # [inline (always)]
fn from (variant : FASTWAKE_DIN19_A) -> Self { variant as u8 != 0 } } impl FASTWAKE_DIN19_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FASTWAKE_DIN19_A { match self . bits { false => FASTWAKE_DIN19_A :: FASTWAKE_DIN19_DISABLE , true => FASTWAKE_DIN19_A :: FASTWAKE_DIN19_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_fastwake_din19_disable (& self) -> bool { * self == FASTWAKE_DIN19_A :: FASTWAKE_DIN19_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_fastwake_din19_enable (& self) -> bool { * self == FASTWAKE_DIN19_A :: FASTWAKE_DIN19_ENABLE } } # [doc = "Field `FASTWAKE_DIN19` writer - Enable fastwake feature for DIN19"]
pub type FASTWAKE_DIN19_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FASTWAKE_DIN19_A > ; impl < 'a , REG , const O : u8 > FASTWAKE_DIN19_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn fastwake_din19_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN19_A :: FASTWAKE_DIN19_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn fastwake_din19_enable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN19_A :: FASTWAKE_DIN19_ENABLE) } } # [doc = "Field `FASTWAKE_DIN20` reader - Enable fastwake feature for DIN20"]
pub type FASTWAKE_DIN20_R = crate :: BitReader < FASTWAKE_DIN20_A > ; # [doc = "Enable fastwake feature for DIN20\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FASTWAKE_DIN20_A { # [doc = "0: DISABLE"]
FASTWAKE_DIN20_DISABLE = 0 , # [doc = "1: ENABLE"]
FASTWAKE_DIN20_ENABLE = 1 , } impl From < FASTWAKE_DIN20_A > for bool { # [inline (always)]
fn from (variant : FASTWAKE_DIN20_A) -> Self { variant as u8 != 0 } } impl FASTWAKE_DIN20_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FASTWAKE_DIN20_A { match self . bits { false => FASTWAKE_DIN20_A :: FASTWAKE_DIN20_DISABLE , true => FASTWAKE_DIN20_A :: FASTWAKE_DIN20_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_fastwake_din20_disable (& self) -> bool { * self == FASTWAKE_DIN20_A :: FASTWAKE_DIN20_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_fastwake_din20_enable (& self) -> bool { * self == FASTWAKE_DIN20_A :: FASTWAKE_DIN20_ENABLE } } # [doc = "Field `FASTWAKE_DIN20` writer - Enable fastwake feature for DIN20"]
pub type FASTWAKE_DIN20_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FASTWAKE_DIN20_A > ; impl < 'a , REG , const O : u8 > FASTWAKE_DIN20_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn fastwake_din20_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN20_A :: FASTWAKE_DIN20_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn fastwake_din20_enable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN20_A :: FASTWAKE_DIN20_ENABLE) } } # [doc = "Field `FASTWAKE_DIN21` reader - Enable fastwake feature for DIN21"]
pub type FASTWAKE_DIN21_R = crate :: BitReader < FASTWAKE_DIN21_A > ; # [doc = "Enable fastwake feature for DIN21\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FASTWAKE_DIN21_A { # [doc = "0: DISABLE"]
FASTWAKE_DIN21_DISABLE = 0 , # [doc = "1: ENABLE"]
FASTWAKE_DIN21_ENABLE = 1 , } impl From < FASTWAKE_DIN21_A > for bool { # [inline (always)]
fn from (variant : FASTWAKE_DIN21_A) -> Self { variant as u8 != 0 } } impl FASTWAKE_DIN21_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FASTWAKE_DIN21_A { match self . bits { false => FASTWAKE_DIN21_A :: FASTWAKE_DIN21_DISABLE , true => FASTWAKE_DIN21_A :: FASTWAKE_DIN21_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_fastwake_din21_disable (& self) -> bool { * self == FASTWAKE_DIN21_A :: FASTWAKE_DIN21_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_fastwake_din21_enable (& self) -> bool { * self == FASTWAKE_DIN21_A :: FASTWAKE_DIN21_ENABLE } } # [doc = "Field `FASTWAKE_DIN21` writer - Enable fastwake feature for DIN21"]
pub type FASTWAKE_DIN21_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FASTWAKE_DIN21_A > ; impl < 'a , REG , const O : u8 > FASTWAKE_DIN21_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn fastwake_din21_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN21_A :: FASTWAKE_DIN21_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn fastwake_din21_enable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN21_A :: FASTWAKE_DIN21_ENABLE) } } # [doc = "Field `FASTWAKE_DIN22` reader - Enable fastwake feature for DIN22"]
pub type FASTWAKE_DIN22_R = crate :: BitReader < FASTWAKE_DIN22_A > ; # [doc = "Enable fastwake feature for DIN22\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FASTWAKE_DIN22_A { # [doc = "0: DISABLE"]
FASTWAKE_DIN22_DISABLE = 0 , # [doc = "1: ENABLE"]
FASTWAKE_DIN22_ENABLE = 1 , } impl From < FASTWAKE_DIN22_A > for bool { # [inline (always)]
fn from (variant : FASTWAKE_DIN22_A) -> Self { variant as u8 != 0 } } impl FASTWAKE_DIN22_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FASTWAKE_DIN22_A { match self . bits { false => FASTWAKE_DIN22_A :: FASTWAKE_DIN22_DISABLE , true => FASTWAKE_DIN22_A :: FASTWAKE_DIN22_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_fastwake_din22_disable (& self) -> bool { * self == FASTWAKE_DIN22_A :: FASTWAKE_DIN22_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_fastwake_din22_enable (& self) -> bool { * self == FASTWAKE_DIN22_A :: FASTWAKE_DIN22_ENABLE } } # [doc = "Field `FASTWAKE_DIN22` writer - Enable fastwake feature for DIN22"]
pub type FASTWAKE_DIN22_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FASTWAKE_DIN22_A > ; impl < 'a , REG , const O : u8 > FASTWAKE_DIN22_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn fastwake_din22_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN22_A :: FASTWAKE_DIN22_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn fastwake_din22_enable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN22_A :: FASTWAKE_DIN22_ENABLE) } } # [doc = "Field `FASTWAKE_DIN23` reader - Enable fastwake feature for DIN23"]
pub type FASTWAKE_DIN23_R = crate :: BitReader < FASTWAKE_DIN23_A > ; # [doc = "Enable fastwake feature for DIN23\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FASTWAKE_DIN23_A { # [doc = "0: DISABLE"]
FASTWAKE_DIN23_DISABLE = 0 , # [doc = "1: ENABLE"]
FASTWAKE_DIN23_ENABLE = 1 , } impl From < FASTWAKE_DIN23_A > for bool { # [inline (always)]
fn from (variant : FASTWAKE_DIN23_A) -> Self { variant as u8 != 0 } } impl FASTWAKE_DIN23_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FASTWAKE_DIN23_A { match self . bits { false => FASTWAKE_DIN23_A :: FASTWAKE_DIN23_DISABLE , true => FASTWAKE_DIN23_A :: FASTWAKE_DIN23_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_fastwake_din23_disable (& self) -> bool { * self == FASTWAKE_DIN23_A :: FASTWAKE_DIN23_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_fastwake_din23_enable (& self) -> bool { * self == FASTWAKE_DIN23_A :: FASTWAKE_DIN23_ENABLE } } # [doc = "Field `FASTWAKE_DIN23` writer - Enable fastwake feature for DIN23"]
pub type FASTWAKE_DIN23_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FASTWAKE_DIN23_A > ; impl < 'a , REG , const O : u8 > FASTWAKE_DIN23_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn fastwake_din23_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN23_A :: FASTWAKE_DIN23_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn fastwake_din23_enable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN23_A :: FASTWAKE_DIN23_ENABLE) } } # [doc = "Field `FASTWAKE_DIN24` reader - Enable fastwake feature for DIN24"]
pub type FASTWAKE_DIN24_R = crate :: BitReader < FASTWAKE_DIN24_A > ; # [doc = "Enable fastwake feature for DIN24\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FASTWAKE_DIN24_A { # [doc = "0: DISABLE"]
FASTWAKE_DIN24_DISABLE = 0 , # [doc = "1: ENABLE"]
FASTWAKE_DIN24_ENABLE = 1 , } impl From < FASTWAKE_DIN24_A > for bool { # [inline (always)]
fn from (variant : FASTWAKE_DIN24_A) -> Self { variant as u8 != 0 } } impl FASTWAKE_DIN24_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FASTWAKE_DIN24_A { match self . bits { false => FASTWAKE_DIN24_A :: FASTWAKE_DIN24_DISABLE , true => FASTWAKE_DIN24_A :: FASTWAKE_DIN24_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_fastwake_din24_disable (& self) -> bool { * self == FASTWAKE_DIN24_A :: FASTWAKE_DIN24_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_fastwake_din24_enable (& self) -> bool { * self == FASTWAKE_DIN24_A :: FASTWAKE_DIN24_ENABLE } } # [doc = "Field `FASTWAKE_DIN24` writer - Enable fastwake feature for DIN24"]
pub type FASTWAKE_DIN24_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FASTWAKE_DIN24_A > ; impl < 'a , REG , const O : u8 > FASTWAKE_DIN24_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn fastwake_din24_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN24_A :: FASTWAKE_DIN24_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn fastwake_din24_enable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN24_A :: FASTWAKE_DIN24_ENABLE) } } # [doc = "Field `FASTWAKE_DIN25` reader - Enable fastwake feature for DIN25"]
pub type FASTWAKE_DIN25_R = crate :: BitReader < FASTWAKE_DIN25_A > ; # [doc = "Enable fastwake feature for DIN25\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FASTWAKE_DIN25_A { # [doc = "0: DISABLE"]
FASTWAKE_DIN25_DISABLE = 0 , # [doc = "1: ENABLE"]
FASTWAKE_DIN25_ENABLE = 1 , } impl From < FASTWAKE_DIN25_A > for bool { # [inline (always)]
fn from (variant : FASTWAKE_DIN25_A) -> Self { variant as u8 != 0 } } impl FASTWAKE_DIN25_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FASTWAKE_DIN25_A { match self . bits { false => FASTWAKE_DIN25_A :: FASTWAKE_DIN25_DISABLE , true => FASTWAKE_DIN25_A :: FASTWAKE_DIN25_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_fastwake_din25_disable (& self) -> bool { * self == FASTWAKE_DIN25_A :: FASTWAKE_DIN25_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_fastwake_din25_enable (& self) -> bool { * self == FASTWAKE_DIN25_A :: FASTWAKE_DIN25_ENABLE } } # [doc = "Field `FASTWAKE_DIN25` writer - Enable fastwake feature for DIN25"]
pub type FASTWAKE_DIN25_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FASTWAKE_DIN25_A > ; impl < 'a , REG , const O : u8 > FASTWAKE_DIN25_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn fastwake_din25_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN25_A :: FASTWAKE_DIN25_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn fastwake_din25_enable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN25_A :: FASTWAKE_DIN25_ENABLE) } } # [doc = "Field `FASTWAKE_DIN26` reader - Enable fastwake feature for DIN26"]
pub type FASTWAKE_DIN26_R = crate :: BitReader < FASTWAKE_DIN26_A > ; # [doc = "Enable fastwake feature for DIN26\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FASTWAKE_DIN26_A { # [doc = "0: DISABLE"]
FASTWAKE_DIN26_DISABLE = 0 , # [doc = "1: ENABLE"]
FASTWAKE_DIN26_ENABLE = 1 , } impl From < FASTWAKE_DIN26_A > for bool { # [inline (always)]
fn from (variant : FASTWAKE_DIN26_A) -> Self { variant as u8 != 0 } } impl FASTWAKE_DIN26_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FASTWAKE_DIN26_A { match self . bits { false => FASTWAKE_DIN26_A :: FASTWAKE_DIN26_DISABLE , true => FASTWAKE_DIN26_A :: FASTWAKE_DIN26_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_fastwake_din26_disable (& self) -> bool { * self == FASTWAKE_DIN26_A :: FASTWAKE_DIN26_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_fastwake_din26_enable (& self) -> bool { * self == FASTWAKE_DIN26_A :: FASTWAKE_DIN26_ENABLE } } # [doc = "Field `FASTWAKE_DIN26` writer - Enable fastwake feature for DIN26"]
pub type FASTWAKE_DIN26_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FASTWAKE_DIN26_A > ; impl < 'a , REG , const O : u8 > FASTWAKE_DIN26_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn fastwake_din26_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN26_A :: FASTWAKE_DIN26_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn fastwake_din26_enable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN26_A :: FASTWAKE_DIN26_ENABLE) } } # [doc = "Field `FASTWAKE_DIN27` reader - Enable fastwake feature for DIN27"]
pub type FASTWAKE_DIN27_R = crate :: BitReader < FASTWAKE_DIN27_A > ; # [doc = "Enable fastwake feature for DIN27\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FASTWAKE_DIN27_A { # [doc = "0: DISABLE"]
FASTWAKE_DIN27_DISABLE = 0 , # [doc = "1: ENABLE"]
FASTWAKE_DIN27_ENABLE = 1 , } impl From < FASTWAKE_DIN27_A > for bool { # [inline (always)]
fn from (variant : FASTWAKE_DIN27_A) -> Self { variant as u8 != 0 } } impl FASTWAKE_DIN27_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FASTWAKE_DIN27_A { match self . bits { false => FASTWAKE_DIN27_A :: FASTWAKE_DIN27_DISABLE , true => FASTWAKE_DIN27_A :: FASTWAKE_DIN27_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_fastwake_din27_disable (& self) -> bool { * self == FASTWAKE_DIN27_A :: FASTWAKE_DIN27_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_fastwake_din27_enable (& self) -> bool { * self == FASTWAKE_DIN27_A :: FASTWAKE_DIN27_ENABLE } } # [doc = "Field `FASTWAKE_DIN27` writer - Enable fastwake feature for DIN27"]
pub type FASTWAKE_DIN27_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FASTWAKE_DIN27_A > ; impl < 'a , REG , const O : u8 > FASTWAKE_DIN27_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn fastwake_din27_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN27_A :: FASTWAKE_DIN27_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn fastwake_din27_enable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN27_A :: FASTWAKE_DIN27_ENABLE) } } # [doc = "Field `FASTWAKE_DIN28` reader - Enable fastwake feature for DIN29"]
pub type FASTWAKE_DIN28_R = crate :: BitReader < FASTWAKE_DIN28_A > ; # [doc = "Enable fastwake feature for DIN29\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FASTWAKE_DIN28_A { # [doc = "0: DISABLE"]
FASTWAKE_DIN28_DISABLE = 0 , # [doc = "1: ENABLE"]
FASTWAKE_DIN28_ENABLE = 1 , } impl From < FASTWAKE_DIN28_A > for bool { # [inline (always)]
fn from (variant : FASTWAKE_DIN28_A) -> Self { variant as u8 != 0 } } impl FASTWAKE_DIN28_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FASTWAKE_DIN28_A { match self . bits { false => FASTWAKE_DIN28_A :: FASTWAKE_DIN28_DISABLE , true => FASTWAKE_DIN28_A :: FASTWAKE_DIN28_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_fastwake_din28_disable (& self) -> bool { * self == FASTWAKE_DIN28_A :: FASTWAKE_DIN28_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_fastwake_din28_enable (& self) -> bool { * self == FASTWAKE_DIN28_A :: FASTWAKE_DIN28_ENABLE } } # [doc = "Field `FASTWAKE_DIN28` writer - Enable fastwake feature for DIN29"]
pub type FASTWAKE_DIN28_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FASTWAKE_DIN28_A > ; impl < 'a , REG , const O : u8 > FASTWAKE_DIN28_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn fastwake_din28_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN28_A :: FASTWAKE_DIN28_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn fastwake_din28_enable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN28_A :: FASTWAKE_DIN28_ENABLE) } } # [doc = "Field `FASTWAKE_DIN29` reader - Enable fastwake feature for DIN29"]
pub type FASTWAKE_DIN29_R = crate :: BitReader < FASTWAKE_DIN29_A > ; # [doc = "Enable fastwake feature for DIN29\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FASTWAKE_DIN29_A { # [doc = "0: DISABLE"]
FASTWAKE_DIN29_DISABLE = 0 , # [doc = "1: ENABLE"]
FASTWAKE_DIN29_ENABLE = 1 , } impl From < FASTWAKE_DIN29_A > for bool { # [inline (always)]
fn from (variant : FASTWAKE_DIN29_A) -> Self { variant as u8 != 0 } } impl FASTWAKE_DIN29_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FASTWAKE_DIN29_A { match self . bits { false => FASTWAKE_DIN29_A :: FASTWAKE_DIN29_DISABLE , true => FASTWAKE_DIN29_A :: FASTWAKE_DIN29_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_fastwake_din29_disable (& self) -> bool { * self == FASTWAKE_DIN29_A :: FASTWAKE_DIN29_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_fastwake_din29_enable (& self) -> bool { * self == FASTWAKE_DIN29_A :: FASTWAKE_DIN29_ENABLE } } # [doc = "Field `FASTWAKE_DIN29` writer - Enable fastwake feature for DIN29"]
pub type FASTWAKE_DIN29_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FASTWAKE_DIN29_A > ; impl < 'a , REG , const O : u8 > FASTWAKE_DIN29_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn fastwake_din29_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN29_A :: FASTWAKE_DIN29_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn fastwake_din29_enable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN29_A :: FASTWAKE_DIN29_ENABLE) } } # [doc = "Field `FASTWAKE_DIN30` reader - Enable fastwake feature for DIN30"]
pub type FASTWAKE_DIN30_R = crate :: BitReader < FASTWAKE_DIN30_A > ; # [doc = "Enable fastwake feature for DIN30\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FASTWAKE_DIN30_A { # [doc = "0: DISABLE"]
FASTWAKE_DIN30_DISABLE = 0 , # [doc = "1: ENABLE"]
FASTWAKE_DIN30_ENABLE = 1 , } impl From < FASTWAKE_DIN30_A > for bool { # [inline (always)]
fn from (variant : FASTWAKE_DIN30_A) -> Self { variant as u8 != 0 } } impl FASTWAKE_DIN30_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FASTWAKE_DIN30_A { match self . bits { false => FASTWAKE_DIN30_A :: FASTWAKE_DIN30_DISABLE , true => FASTWAKE_DIN30_A :: FASTWAKE_DIN30_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_fastwake_din30_disable (& self) -> bool { * self == FASTWAKE_DIN30_A :: FASTWAKE_DIN30_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_fastwake_din30_enable (& self) -> bool { * self == FASTWAKE_DIN30_A :: FASTWAKE_DIN30_ENABLE } } # [doc = "Field `FASTWAKE_DIN30` writer - Enable fastwake feature for DIN30"]
pub type FASTWAKE_DIN30_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FASTWAKE_DIN30_A > ; impl < 'a , REG , const O : u8 > FASTWAKE_DIN30_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn fastwake_din30_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN30_A :: FASTWAKE_DIN30_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn fastwake_din30_enable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN30_A :: FASTWAKE_DIN30_ENABLE) } } # [doc = "Field `FASTWAKE_DIN31` reader - Enable fastwake feature for DIN31"]
pub type FASTWAKE_DIN31_R = crate :: BitReader < FASTWAKE_DIN31_A > ; # [doc = "Enable fastwake feature for DIN31\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FASTWAKE_DIN31_A { # [doc = "0: DISABLE"]
FASTWAKE_DIN31_DISABLE = 0 , # [doc = "1: ENABLE"]
FASTWAKE_DIN31_ENABLE = 1 , } impl From < FASTWAKE_DIN31_A > for bool { # [inline (always)]
fn from (variant : FASTWAKE_DIN31_A) -> Self { variant as u8 != 0 } } impl FASTWAKE_DIN31_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FASTWAKE_DIN31_A { match self . bits { false => FASTWAKE_DIN31_A :: FASTWAKE_DIN31_DISABLE , true => FASTWAKE_DIN31_A :: FASTWAKE_DIN31_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_fastwake_din31_disable (& self) -> bool { * self == FASTWAKE_DIN31_A :: FASTWAKE_DIN31_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_fastwake_din31_enable (& self) -> bool { * self == FASTWAKE_DIN31_A :: FASTWAKE_DIN31_ENABLE } } # [doc = "Field `FASTWAKE_DIN31` writer - Enable fastwake feature for DIN31"]
pub type FASTWAKE_DIN31_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FASTWAKE_DIN31_A > ; impl < 'a , REG , const O : u8 > FASTWAKE_DIN31_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn fastwake_din31_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN31_A :: FASTWAKE_DIN31_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn fastwake_din31_enable (self) -> & 'a mut crate :: W < REG > { self . variant (FASTWAKE_DIN31_A :: FASTWAKE_DIN31_ENABLE) } } impl R { # [doc = "Bit 0 - Enable fastwake feature for DIN0"]
# [inline (always)]
pub fn fastwake_din0 (& self) -> FASTWAKE_DIN0_R { FASTWAKE_DIN0_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Enable fastwake feature for DIN1"]
# [inline (always)]
pub fn fastwake_din1 (& self) -> FASTWAKE_DIN1_R { FASTWAKE_DIN1_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Enable fastwake feature for DIN2"]
# [inline (always)]
pub fn fastwake_din2 (& self) -> FASTWAKE_DIN2_R { FASTWAKE_DIN2_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Enable fastwake feature for DIN3"]
# [inline (always)]
pub fn fastwake_din3 (& self) -> FASTWAKE_DIN3_R { FASTWAKE_DIN3_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - Enable fastwake feature for DIN4"]
# [inline (always)]
pub fn fastwake_din4 (& self) -> FASTWAKE_DIN4_R { FASTWAKE_DIN4_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Enable fastwake feature for DIN5"]
# [inline (always)]
pub fn fastwake_din5 (& self) -> FASTWAKE_DIN5_R { FASTWAKE_DIN5_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - Enable fastwake feature for DIN6"]
# [inline (always)]
pub fn fastwake_din6 (& self) -> FASTWAKE_DIN6_R { FASTWAKE_DIN6_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 7 - Enable fastwake feature for DIN7"]
# [inline (always)]
pub fn fastwake_din7 (& self) -> FASTWAKE_DIN7_R { FASTWAKE_DIN7_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - Enable fastwake feature for DIN8"]
# [inline (always)]
pub fn fastwake_din8 (& self) -> FASTWAKE_DIN8_R { FASTWAKE_DIN8_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - Enable fastwake feature for DIN9"]
# [inline (always)]
pub fn fastwake_din9 (& self) -> FASTWAKE_DIN9_R { FASTWAKE_DIN9_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - Enable fastwake feature for DIN10"]
# [inline (always)]
pub fn fastwake_din10 (& self) -> FASTWAKE_DIN10_R { FASTWAKE_DIN10_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bit 11 - Enable fastwake feature for DIN11"]
# [inline (always)]
pub fn fastwake_din11 (& self) -> FASTWAKE_DIN11_R { FASTWAKE_DIN11_R :: new (((self . bits >> 11) & 1) != 0) } # [doc = "Bit 12 - Enable fastwake feature for DIN12"]
# [inline (always)]
pub fn fastwake_din12 (& self) -> FASTWAKE_DIN12_R { FASTWAKE_DIN12_R :: new (((self . bits >> 12) & 1) != 0) } # [doc = "Bit 13 - Enable fastwake feature for DIN13"]
# [inline (always)]
pub fn fastwake_din13 (& self) -> FASTWAKE_DIN13_R { FASTWAKE_DIN13_R :: new (((self . bits >> 13) & 1) != 0) } # [doc = "Bit 14 - Enable fastwake feature for DIN14"]
# [inline (always)]
pub fn fastwake_din14 (& self) -> FASTWAKE_DIN14_R { FASTWAKE_DIN14_R :: new (((self . bits >> 14) & 1) != 0) } # [doc = "Bit 15 - Enable fastwake feature for DIN15"]
# [inline (always)]
pub fn fastwake_din15 (& self) -> FASTWAKE_DIN15_R { FASTWAKE_DIN15_R :: new (((self . bits >> 15) & 1) != 0) } # [doc = "Bit 16 - Enable fastwake feature for DIN16"]
# [inline (always)]
pub fn fastwake_din16 (& self) -> FASTWAKE_DIN16_R { FASTWAKE_DIN16_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 17 - Enable fastwake feature for DIN17"]
# [inline (always)]
pub fn fastwake_din17 (& self) -> FASTWAKE_DIN17_R { FASTWAKE_DIN17_R :: new (((self . bits >> 17) & 1) != 0) } # [doc = "Bit 18 - Enable fastwake feature for DIN18"]
# [inline (always)]
pub fn fastwake_din18 (& self) -> FASTWAKE_DIN18_R { FASTWAKE_DIN18_R :: new (((self . bits >> 18) & 1) != 0) } # [doc = "Bit 19 - Enable fastwake feature for DIN19"]
# [inline (always)]
pub fn fastwake_din19 (& self) -> FASTWAKE_DIN19_R { FASTWAKE_DIN19_R :: new (((self . bits >> 19) & 1) != 0) } # [doc = "Bit 20 - Enable fastwake feature for DIN20"]
# [inline (always)]
pub fn fastwake_din20 (& self) -> FASTWAKE_DIN20_R { FASTWAKE_DIN20_R :: new (((self . bits >> 20) & 1) != 0) } # [doc = "Bit 21 - Enable fastwake feature for DIN21"]
# [inline (always)]
pub fn fastwake_din21 (& self) -> FASTWAKE_DIN21_R { FASTWAKE_DIN21_R :: new (((self . bits >> 21) & 1) != 0) } # [doc = "Bit 22 - Enable fastwake feature for DIN22"]
# [inline (always)]
pub fn fastwake_din22 (& self) -> FASTWAKE_DIN22_R { FASTWAKE_DIN22_R :: new (((self . bits >> 22) & 1) != 0) } # [doc = "Bit 23 - Enable fastwake feature for DIN23"]
# [inline (always)]
pub fn fastwake_din23 (& self) -> FASTWAKE_DIN23_R { FASTWAKE_DIN23_R :: new (((self . bits >> 23) & 1) != 0) } # [doc = "Bit 24 - Enable fastwake feature for DIN24"]
# [inline (always)]
pub fn fastwake_din24 (& self) -> FASTWAKE_DIN24_R { FASTWAKE_DIN24_R :: new (((self . bits >> 24) & 1) != 0) } # [doc = "Bit 25 - Enable fastwake feature for DIN25"]
# [inline (always)]
pub fn fastwake_din25 (& self) -> FASTWAKE_DIN25_R { FASTWAKE_DIN25_R :: new (((self . bits >> 25) & 1) != 0) } # [doc = "Bit 26 - Enable fastwake feature for DIN26"]
# [inline (always)]
pub fn fastwake_din26 (& self) -> FASTWAKE_DIN26_R { FASTWAKE_DIN26_R :: new (((self . bits >> 26) & 1) != 0) } # [doc = "Bit 27 - Enable fastwake feature for DIN27"]
# [inline (always)]
pub fn fastwake_din27 (& self) -> FASTWAKE_DIN27_R { FASTWAKE_DIN27_R :: new (((self . bits >> 27) & 1) != 0) } # [doc = "Bit 28 - Enable fastwake feature for DIN29"]
# [inline (always)]
pub fn fastwake_din28 (& self) -> FASTWAKE_DIN28_R { FASTWAKE_DIN28_R :: new (((self . bits >> 28) & 1) != 0) } # [doc = "Bit 29 - Enable fastwake feature for DIN29"]
# [inline (always)]
pub fn fastwake_din29 (& self) -> FASTWAKE_DIN29_R { FASTWAKE_DIN29_R :: new (((self . bits >> 29) & 1) != 0) } # [doc = "Bit 30 - Enable fastwake feature for DIN30"]
# [inline (always)]
pub fn fastwake_din30 (& self) -> FASTWAKE_DIN30_R { FASTWAKE_DIN30_R :: new (((self . bits >> 30) & 1) != 0) } # [doc = "Bit 31 - Enable fastwake feature for DIN31"]
# [inline (always)]
pub fn fastwake_din31 (& self) -> FASTWAKE_DIN31_R { FASTWAKE_DIN31_R :: new (((self . bits >> 31) & 1) != 0) } } impl W { # [doc = "Bit 0 - Enable fastwake feature for DIN0"]
# [inline (always)]
# [must_use]
pub fn fastwake_din0 (& mut self) -> FASTWAKE_DIN0_W < FASTWAKE_SPEC , 0 > { FASTWAKE_DIN0_W :: new (self) } # [doc = "Bit 1 - Enable fastwake feature for DIN1"]
# [inline (always)]
# [must_use]
pub fn fastwake_din1 (& mut self) -> FASTWAKE_DIN1_W < FASTWAKE_SPEC , 1 > { FASTWAKE_DIN1_W :: new (self) } # [doc = "Bit 2 - Enable fastwake feature for DIN2"]
# [inline (always)]
# [must_use]
pub fn fastwake_din2 (& mut self) -> FASTWAKE_DIN2_W < FASTWAKE_SPEC , 2 > { FASTWAKE_DIN2_W :: new (self) } # [doc = "Bit 3 - Enable fastwake feature for DIN3"]
# [inline (always)]
# [must_use]
pub fn fastwake_din3 (& mut self) -> FASTWAKE_DIN3_W < FASTWAKE_SPEC , 3 > { FASTWAKE_DIN3_W :: new (self) } # [doc = "Bit 4 - Enable fastwake feature for DIN4"]
# [inline (always)]
# [must_use]
pub fn fastwake_din4 (& mut self) -> FASTWAKE_DIN4_W < FASTWAKE_SPEC , 4 > { FASTWAKE_DIN4_W :: new (self) } # [doc = "Bit 5 - Enable fastwake feature for DIN5"]
# [inline (always)]
# [must_use]
pub fn fastwake_din5 (& mut self) -> FASTWAKE_DIN5_W < FASTWAKE_SPEC , 5 > { FASTWAKE_DIN5_W :: new (self) } # [doc = "Bit 6 - Enable fastwake feature for DIN6"]
# [inline (always)]
# [must_use]
pub fn fastwake_din6 (& mut self) -> FASTWAKE_DIN6_W < FASTWAKE_SPEC , 6 > { FASTWAKE_DIN6_W :: new (self) } # [doc = "Bit 7 - Enable fastwake feature for DIN7"]
# [inline (always)]
# [must_use]
pub fn fastwake_din7 (& mut self) -> FASTWAKE_DIN7_W < FASTWAKE_SPEC , 7 > { FASTWAKE_DIN7_W :: new (self) } # [doc = "Bit 8 - Enable fastwake feature for DIN8"]
# [inline (always)]
# [must_use]
pub fn fastwake_din8 (& mut self) -> FASTWAKE_DIN8_W < FASTWAKE_SPEC , 8 > { FASTWAKE_DIN8_W :: new (self) } # [doc = "Bit 9 - Enable fastwake feature for DIN9"]
# [inline (always)]
# [must_use]
pub fn fastwake_din9 (& mut self) -> FASTWAKE_DIN9_W < FASTWAKE_SPEC , 9 > { FASTWAKE_DIN9_W :: new (self) } # [doc = "Bit 10 - Enable fastwake feature for DIN10"]
# [inline (always)]
# [must_use]
pub fn fastwake_din10 (& mut self) -> FASTWAKE_DIN10_W < FASTWAKE_SPEC , 10 > { FASTWAKE_DIN10_W :: new (self) } # [doc = "Bit 11 - Enable fastwake feature for DIN11"]
# [inline (always)]
# [must_use]
pub fn fastwake_din11 (& mut self) -> FASTWAKE_DIN11_W < FASTWAKE_SPEC , 11 > { FASTWAKE_DIN11_W :: new (self) } # [doc = "Bit 12 - Enable fastwake feature for DIN12"]
# [inline (always)]
# [must_use]
pub fn fastwake_din12 (& mut self) -> FASTWAKE_DIN12_W < FASTWAKE_SPEC , 12 > { FASTWAKE_DIN12_W :: new (self) } # [doc = "Bit 13 - Enable fastwake feature for DIN13"]
# [inline (always)]
# [must_use]
pub fn fastwake_din13 (& mut self) -> FASTWAKE_DIN13_W < FASTWAKE_SPEC , 13 > { FASTWAKE_DIN13_W :: new (self) } # [doc = "Bit 14 - Enable fastwake feature for DIN14"]
# [inline (always)]
# [must_use]
pub fn fastwake_din14 (& mut self) -> FASTWAKE_DIN14_W < FASTWAKE_SPEC , 14 > { FASTWAKE_DIN14_W :: new (self) } # [doc = "Bit 15 - Enable fastwake feature for DIN15"]
# [inline (always)]
# [must_use]
pub fn fastwake_din15 (& mut self) -> FASTWAKE_DIN15_W < FASTWAKE_SPEC , 15 > { FASTWAKE_DIN15_W :: new (self) } # [doc = "Bit 16 - Enable fastwake feature for DIN16"]
# [inline (always)]
# [must_use]
pub fn fastwake_din16 (& mut self) -> FASTWAKE_DIN16_W < FASTWAKE_SPEC , 16 > { FASTWAKE_DIN16_W :: new (self) } # [doc = "Bit 17 - Enable fastwake feature for DIN17"]
# [inline (always)]
# [must_use]
pub fn fastwake_din17 (& mut self) -> FASTWAKE_DIN17_W < FASTWAKE_SPEC , 17 > { FASTWAKE_DIN17_W :: new (self) } # [doc = "Bit 18 - Enable fastwake feature for DIN18"]
# [inline (always)]
# [must_use]
pub fn fastwake_din18 (& mut self) -> FASTWAKE_DIN18_W < FASTWAKE_SPEC , 18 > { FASTWAKE_DIN18_W :: new (self) } # [doc = "Bit 19 - Enable fastwake feature for DIN19"]
# [inline (always)]
# [must_use]
pub fn fastwake_din19 (& mut self) -> FASTWAKE_DIN19_W < FASTWAKE_SPEC , 19 > { FASTWAKE_DIN19_W :: new (self) } # [doc = "Bit 20 - Enable fastwake feature for DIN20"]
# [inline (always)]
# [must_use]
pub fn fastwake_din20 (& mut self) -> FASTWAKE_DIN20_W < FASTWAKE_SPEC , 20 > { FASTWAKE_DIN20_W :: new (self) } # [doc = "Bit 21 - Enable fastwake feature for DIN21"]
# [inline (always)]
# [must_use]
pub fn fastwake_din21 (& mut self) -> FASTWAKE_DIN21_W < FASTWAKE_SPEC , 21 > { FASTWAKE_DIN21_W :: new (self) } # [doc = "Bit 22 - Enable fastwake feature for DIN22"]
# [inline (always)]
# [must_use]
pub fn fastwake_din22 (& mut self) -> FASTWAKE_DIN22_W < FASTWAKE_SPEC , 22 > { FASTWAKE_DIN22_W :: new (self) } # [doc = "Bit 23 - Enable fastwake feature for DIN23"]
# [inline (always)]
# [must_use]
pub fn fastwake_din23 (& mut self) -> FASTWAKE_DIN23_W < FASTWAKE_SPEC , 23 > { FASTWAKE_DIN23_W :: new (self) } # [doc = "Bit 24 - Enable fastwake feature for DIN24"]
# [inline (always)]
# [must_use]
pub fn fastwake_din24 (& mut self) -> FASTWAKE_DIN24_W < FASTWAKE_SPEC , 24 > { FASTWAKE_DIN24_W :: new (self) } # [doc = "Bit 25 - Enable fastwake feature for DIN25"]
# [inline (always)]
# [must_use]
pub fn fastwake_din25 (& mut self) -> FASTWAKE_DIN25_W < FASTWAKE_SPEC , 25 > { FASTWAKE_DIN25_W :: new (self) } # [doc = "Bit 26 - Enable fastwake feature for DIN26"]
# [inline (always)]
# [must_use]
pub fn fastwake_din26 (& mut self) -> FASTWAKE_DIN26_W < FASTWAKE_SPEC , 26 > { FASTWAKE_DIN26_W :: new (self) } # [doc = "Bit 27 - Enable fastwake feature for DIN27"]
# [inline (always)]
# [must_use]
pub fn fastwake_din27 (& mut self) -> FASTWAKE_DIN27_W < FASTWAKE_SPEC , 27 > { FASTWAKE_DIN27_W :: new (self) } # [doc = "Bit 28 - Enable fastwake feature for DIN29"]
# [inline (always)]
# [must_use]
pub fn fastwake_din28 (& mut self) -> FASTWAKE_DIN28_W < FASTWAKE_SPEC , 28 > { FASTWAKE_DIN28_W :: new (self) } # [doc = "Bit 29 - Enable fastwake feature for DIN29"]
# [inline (always)]
# [must_use]
pub fn fastwake_din29 (& mut self) -> FASTWAKE_DIN29_W < FASTWAKE_SPEC , 29 > { FASTWAKE_DIN29_W :: new (self) } # [doc = "Bit 30 - Enable fastwake feature for DIN30"]
# [inline (always)]
# [must_use]
pub fn fastwake_din30 (& mut self) -> FASTWAKE_DIN30_W < FASTWAKE_SPEC , 30 > { FASTWAKE_DIN30_W :: new (self) } # [doc = "Bit 31 - Enable fastwake feature for DIN31"]
# [inline (always)]
# [must_use]
pub fn fastwake_din31 (& mut self) -> FASTWAKE_DIN31_W < FASTWAKE_SPEC , 31 > { FASTWAKE_DIN31_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "FAST WAKE ENABLE\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fastwake::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fastwake::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FASTWAKE_SPEC ; impl crate :: RegisterSpec for FASTWAKE_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fastwake::R`](R) reader structure"]
impl crate :: Readable for FASTWAKE_SPEC { } # [doc = "`write(|w| ..)` method takes [`fastwake::W`](W) writer structure"]
impl crate :: Writable for FASTWAKE_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FASTWAKE to value 0"]
impl crate :: Resettable for FASTWAKE_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "SUB0CFG (rw) register accessor: Subscriber 0 configuration\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`sub0cfg::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sub0cfg::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sub0cfg`]
module"]
pub type SUB0CFG = crate :: Reg < sub0cfg :: SUB0CFG_SPEC > ; # [doc = "Subscriber 0 configuration"]
pub mod sub0cfg { # [doc = "Register `SUB0CFG` reader"]
pub type R = crate :: R < SUB0CFG_SPEC > ; # [doc = "Register `SUB0CFG` writer"]
pub type W = crate :: W < SUB0CFG_SPEC > ; # [doc = "Field `SUB0CFG_ENABLE` reader - This bit is used to enable subscriber 0 event."]
pub type SUB0CFG_ENABLE_R = crate :: BitReader < SUB0CFG_ENABLE_A > ; # [doc = "This bit is used to enable subscriber 0 event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SUB0CFG_ENABLE_A { # [doc = "0: CLR"]
SUB0CFG_ENABLE_CLR = 0 , # [doc = "1: SET"]
SUB0CFG_ENABLE_SET = 1 , } impl From < SUB0CFG_ENABLE_A > for bool { # [inline (always)]
fn from (variant : SUB0CFG_ENABLE_A) -> Self { variant as u8 != 0 } } impl SUB0CFG_ENABLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SUB0CFG_ENABLE_A { match self . bits { false => SUB0CFG_ENABLE_A :: SUB0CFG_ENABLE_CLR , true => SUB0CFG_ENABLE_A :: SUB0CFG_ENABLE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_sub0cfg_enable_clr (& self) -> bool { * self == SUB0CFG_ENABLE_A :: SUB0CFG_ENABLE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_sub0cfg_enable_set (& self) -> bool { * self == SUB0CFG_ENABLE_A :: SUB0CFG_ENABLE_SET } } # [doc = "Field `SUB0CFG_ENABLE` writer - This bit is used to enable subscriber 0 event."]
pub type SUB0CFG_ENABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SUB0CFG_ENABLE_A > ; impl < 'a , REG , const O : u8 > SUB0CFG_ENABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn sub0cfg_enable_clr (self) -> & 'a mut crate :: W < REG > { self . variant (SUB0CFG_ENABLE_A :: SUB0CFG_ENABLE_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn sub0cfg_enable_set (self) -> & 'a mut crate :: W < REG > { self . variant (SUB0CFG_ENABLE_A :: SUB0CFG_ENABLE_SET) } } # [doc = "Field `SUB0CFG_OUTPOLICY` reader - These bits configure the output policy for subscriber 0 event."]
pub type SUB0CFG_OUTPOLICY_R = crate :: FieldReader < SUB0CFG_OUTPOLICY_A > ; # [doc = "These bits configure the output policy for subscriber 0 event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum SUB0CFG_OUTPOLICY_A { # [doc = "0: SET"]
SUB0CFG_OUTPOLICY_SET = 0 , # [doc = "1: CLR"]
SUB0CFG_OUTPOLICY_CLR = 1 , # [doc = "2: TOGGLE"]
SUB0CFG_OUTPOLICY_TOGGLE = 2 , } impl From < SUB0CFG_OUTPOLICY_A > for u8 { # [inline (always)]
fn from (variant : SUB0CFG_OUTPOLICY_A) -> Self { variant as _ } } impl crate :: FieldSpec for SUB0CFG_OUTPOLICY_A { type Ux = u8 ; } impl SUB0CFG_OUTPOLICY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < SUB0CFG_OUTPOLICY_A > { match self . bits { 0 => Some (SUB0CFG_OUTPOLICY_A :: SUB0CFG_OUTPOLICY_SET) , 1 => Some (SUB0CFG_OUTPOLICY_A :: SUB0CFG_OUTPOLICY_CLR) , 2 => Some (SUB0CFG_OUTPOLICY_A :: SUB0CFG_OUTPOLICY_TOGGLE) , _ => None , } } # [doc = "SET"]
# [inline (always)]
pub fn is_sub0cfg_outpolicy_set (& self) -> bool { * self == SUB0CFG_OUTPOLICY_A :: SUB0CFG_OUTPOLICY_SET } # [doc = "CLR"]
# [inline (always)]
pub fn is_sub0cfg_outpolicy_clr (& self) -> bool { * self == SUB0CFG_OUTPOLICY_A :: SUB0CFG_OUTPOLICY_CLR } # [doc = "TOGGLE"]
# [inline (always)]
pub fn is_sub0cfg_outpolicy_toggle (& self) -> bool { * self == SUB0CFG_OUTPOLICY_A :: SUB0CFG_OUTPOLICY_TOGGLE } } # [doc = "Field `SUB0CFG_OUTPOLICY` writer - These bits configure the output policy for subscriber 0 event."]
pub type SUB0CFG_OUTPOLICY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , SUB0CFG_OUTPOLICY_A > ; impl < 'a , REG , const O : u8 > SUB0CFG_OUTPOLICY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "SET"]
# [inline (always)]
pub fn sub0cfg_outpolicy_set (self) -> & 'a mut crate :: W < REG > { self . variant (SUB0CFG_OUTPOLICY_A :: SUB0CFG_OUTPOLICY_SET) } # [doc = "CLR"]
# [inline (always)]
pub fn sub0cfg_outpolicy_clr (self) -> & 'a mut crate :: W < REG > { self . variant (SUB0CFG_OUTPOLICY_A :: SUB0CFG_OUTPOLICY_CLR) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn sub0cfg_outpolicy_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (SUB0CFG_OUTPOLICY_A :: SUB0CFG_OUTPOLICY_TOGGLE) } } # [doc = "Field `SUB0CFG_INDEX` reader - Indicates the specific bit among lower 16 bits that is targeted by the subscriber action"]
pub type SUB0CFG_INDEX_R = crate :: FieldReader < SUB0CFG_INDEX_A > ; # [doc = "Indicates the specific bit among lower 16 bits that is targeted by the subscriber action\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum SUB0CFG_INDEX_A { # [doc = "0: MIN"]
SUB0CFG_INDEX_MIN = 0 , # [doc = "15: MAX"]
SUB0CFG_INDEX_MAX = 15 , } impl From < SUB0CFG_INDEX_A > for u8 { # [inline (always)]
fn from (variant : SUB0CFG_INDEX_A) -> Self { variant as _ } } impl crate :: FieldSpec for SUB0CFG_INDEX_A { type Ux = u8 ; } impl SUB0CFG_INDEX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < SUB0CFG_INDEX_A > { match self . bits { 0 => Some (SUB0CFG_INDEX_A :: SUB0CFG_INDEX_MIN) , 15 => Some (SUB0CFG_INDEX_A :: SUB0CFG_INDEX_MAX) , _ => None , } } # [doc = "MIN"]
# [inline (always)]
pub fn is_sub0cfg_index_min (& self) -> bool { * self == SUB0CFG_INDEX_A :: SUB0CFG_INDEX_MIN } # [doc = "MAX"]
# [inline (always)]
pub fn is_sub0cfg_index_max (& self) -> bool { * self == SUB0CFG_INDEX_A :: SUB0CFG_INDEX_MAX } } # [doc = "Field `SUB0CFG_INDEX` writer - Indicates the specific bit among lower 16 bits that is targeted by the subscriber action"]
pub type SUB0CFG_INDEX_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 4 , O , SUB0CFG_INDEX_A > ; impl < 'a , REG , const O : u8 > SUB0CFG_INDEX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "MIN"]
# [inline (always)]
pub fn sub0cfg_index_min (self) -> & 'a mut crate :: W < REG > { self . variant (SUB0CFG_INDEX_A :: SUB0CFG_INDEX_MIN) } # [doc = "MAX"]
# [inline (always)]
pub fn sub0cfg_index_max (self) -> & 'a mut crate :: W < REG > { self . variant (SUB0CFG_INDEX_A :: SUB0CFG_INDEX_MAX) } } impl R { # [doc = "Bit 0 - This bit is used to enable subscriber 0 event."]
# [inline (always)]
pub fn sub0cfg_enable (& self) -> SUB0CFG_ENABLE_R { SUB0CFG_ENABLE_R :: new ((self . bits & 1) != 0) } # [doc = "Bits 8:9 - These bits configure the output policy for subscriber 0 event."]
# [inline (always)]
pub fn sub0cfg_outpolicy (& self) -> SUB0CFG_OUTPOLICY_R { SUB0CFG_OUTPOLICY_R :: new (((self . bits >> 8) & 3) as u8) } # [doc = "Bits 16:19 - Indicates the specific bit among lower 16 bits that is targeted by the subscriber action"]
# [inline (always)]
pub fn sub0cfg_index (& self) -> SUB0CFG_INDEX_R { SUB0CFG_INDEX_R :: new (((self . bits >> 16) & 0x0f) as u8) } } impl W { # [doc = "Bit 0 - This bit is used to enable subscriber 0 event."]
# [inline (always)]
# [must_use]
pub fn sub0cfg_enable (& mut self) -> SUB0CFG_ENABLE_W < SUB0CFG_SPEC , 0 > { SUB0CFG_ENABLE_W :: new (self) } # [doc = "Bits 8:9 - These bits configure the output policy for subscriber 0 event."]
# [inline (always)]
# [must_use]
pub fn sub0cfg_outpolicy (& mut self) -> SUB0CFG_OUTPOLICY_W < SUB0CFG_SPEC , 8 > { SUB0CFG_OUTPOLICY_W :: new (self) } # [doc = "Bits 16:19 - Indicates the specific bit among lower 16 bits that is targeted by the subscriber action"]
# [inline (always)]
# [must_use]
pub fn sub0cfg_index (& mut self) -> SUB0CFG_INDEX_W < SUB0CFG_SPEC , 16 > { SUB0CFG_INDEX_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Subscriber 0 configuration\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`sub0cfg::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sub0cfg::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SUB0CFG_SPEC ; impl crate :: RegisterSpec for SUB0CFG_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`sub0cfg::R`](R) reader structure"]
impl crate :: Readable for SUB0CFG_SPEC { } # [doc = "`write(|w| ..)` method takes [`sub0cfg::W`](W) writer structure"]
impl crate :: Writable for SUB0CFG_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets SUB0CFG to value 0"]
impl crate :: Resettable for SUB0CFG_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "FILTEREN15_0 (rw) register accessor: Filter Enable 15 to 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`filteren15_0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`filteren15_0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@filteren15_0`]
module"]
pub type FILTEREN15_0 = crate :: Reg < filteren15_0 :: FILTEREN15_0_SPEC > ; # [doc = "Filter Enable 15 to 0"]
pub mod filteren15_0 { # [doc = "Register `FILTEREN15_0` reader"]
pub type R = crate :: R < FILTEREN15_0_SPEC > ; # [doc = "Register `FILTEREN15_0` writer"]
pub type W = crate :: W < FILTEREN15_0_SPEC > ; # [doc = "Field `FILTEREN15_0_DIN0` reader - Programmable counter length of digital glitch filter for DIN0"]
pub type FILTEREN15_0_DIN0_R = crate :: FieldReader < FILTEREN15_0_DIN0_A > ; # [doc = "Programmable counter length of digital glitch filter for DIN0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FILTEREN15_0_DIN0_A { # [doc = "0: DISABLE"]
FILTEREN15_0_DIN0_DISABLE = 0 , # [doc = "1: ONE_CYCLE"]
FILTEREN15_0_DIN0_ONE_CYCLE = 1 , # [doc = "2: THREE_CYCLE"]
FILTEREN15_0_DIN0_THREE_CYCLE = 2 , # [doc = "3: EIGHT_CYCLE"]
FILTEREN15_0_DIN0_EIGHT_CYCLE = 3 , } impl From < FILTEREN15_0_DIN0_A > for u8 { # [inline (always)]
fn from (variant : FILTEREN15_0_DIN0_A) -> Self { variant as _ } } impl crate :: FieldSpec for FILTEREN15_0_DIN0_A { type Ux = u8 ; } impl FILTEREN15_0_DIN0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FILTEREN15_0_DIN0_A { match self . bits { 0 => FILTEREN15_0_DIN0_A :: FILTEREN15_0_DIN0_DISABLE , 1 => FILTEREN15_0_DIN0_A :: FILTEREN15_0_DIN0_ONE_CYCLE , 2 => FILTEREN15_0_DIN0_A :: FILTEREN15_0_DIN0_THREE_CYCLE , 3 => FILTEREN15_0_DIN0_A :: FILTEREN15_0_DIN0_EIGHT_CYCLE , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_filteren15_0_din0_disable (& self) -> bool { * self == FILTEREN15_0_DIN0_A :: FILTEREN15_0_DIN0_DISABLE } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din0_one_cycle (& self) -> bool { * self == FILTEREN15_0_DIN0_A :: FILTEREN15_0_DIN0_ONE_CYCLE } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din0_three_cycle (& self) -> bool { * self == FILTEREN15_0_DIN0_A :: FILTEREN15_0_DIN0_THREE_CYCLE } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din0_eight_cycle (& self) -> bool { * self == FILTEREN15_0_DIN0_A :: FILTEREN15_0_DIN0_EIGHT_CYCLE } } # [doc = "Field `FILTEREN15_0_DIN0` writer - Programmable counter length of digital glitch filter for DIN0"]
pub type FILTEREN15_0_DIN0_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , FILTEREN15_0_DIN0_A > ; impl < 'a , REG , const O : u8 > FILTEREN15_0_DIN0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn filteren15_0_din0_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN0_A :: FILTEREN15_0_DIN0_DISABLE) } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din0_one_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN0_A :: FILTEREN15_0_DIN0_ONE_CYCLE) } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din0_three_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN0_A :: FILTEREN15_0_DIN0_THREE_CYCLE) } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din0_eight_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN0_A :: FILTEREN15_0_DIN0_EIGHT_CYCLE) } } # [doc = "Field `FILTEREN15_0_DIN1` reader - Programmable counter length of digital glitch filter for DIN1"]
pub type FILTEREN15_0_DIN1_R = crate :: FieldReader < FILTEREN15_0_DIN1_A > ; # [doc = "Programmable counter length of digital glitch filter for DIN1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FILTEREN15_0_DIN1_A { # [doc = "0: DISABLE"]
FILTEREN15_0_DIN1_DISABLE = 0 , # [doc = "1: ONE_CYCLE"]
FILTEREN15_0_DIN1_ONE_CYCLE = 1 , # [doc = "2: THREE_CYCLE"]
FILTEREN15_0_DIN1_THREE_CYCLE = 2 , # [doc = "3: EIGHT_CYCLE"]
FILTEREN15_0_DIN1_EIGHT_CYCLE = 3 , } impl From < FILTEREN15_0_DIN1_A > for u8 { # [inline (always)]
fn from (variant : FILTEREN15_0_DIN1_A) -> Self { variant as _ } } impl crate :: FieldSpec for FILTEREN15_0_DIN1_A { type Ux = u8 ; } impl FILTEREN15_0_DIN1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FILTEREN15_0_DIN1_A { match self . bits { 0 => FILTEREN15_0_DIN1_A :: FILTEREN15_0_DIN1_DISABLE , 1 => FILTEREN15_0_DIN1_A :: FILTEREN15_0_DIN1_ONE_CYCLE , 2 => FILTEREN15_0_DIN1_A :: FILTEREN15_0_DIN1_THREE_CYCLE , 3 => FILTEREN15_0_DIN1_A :: FILTEREN15_0_DIN1_EIGHT_CYCLE , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_filteren15_0_din1_disable (& self) -> bool { * self == FILTEREN15_0_DIN1_A :: FILTEREN15_0_DIN1_DISABLE } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din1_one_cycle (& self) -> bool { * self == FILTEREN15_0_DIN1_A :: FILTEREN15_0_DIN1_ONE_CYCLE } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din1_three_cycle (& self) -> bool { * self == FILTEREN15_0_DIN1_A :: FILTEREN15_0_DIN1_THREE_CYCLE } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din1_eight_cycle (& self) -> bool { * self == FILTEREN15_0_DIN1_A :: FILTEREN15_0_DIN1_EIGHT_CYCLE } } # [doc = "Field `FILTEREN15_0_DIN1` writer - Programmable counter length of digital glitch filter for DIN1"]
pub type FILTEREN15_0_DIN1_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , FILTEREN15_0_DIN1_A > ; impl < 'a , REG , const O : u8 > FILTEREN15_0_DIN1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn filteren15_0_din1_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN1_A :: FILTEREN15_0_DIN1_DISABLE) } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din1_one_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN1_A :: FILTEREN15_0_DIN1_ONE_CYCLE) } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din1_three_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN1_A :: FILTEREN15_0_DIN1_THREE_CYCLE) } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din1_eight_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN1_A :: FILTEREN15_0_DIN1_EIGHT_CYCLE) } } # [doc = "Field `FILTEREN15_0_DIN2` reader - Programmable counter length of digital glitch filter for DIN2"]
pub type FILTEREN15_0_DIN2_R = crate :: FieldReader < FILTEREN15_0_DIN2_A > ; # [doc = "Programmable counter length of digital glitch filter for DIN2\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FILTEREN15_0_DIN2_A { # [doc = "0: DISABLE"]
FILTEREN15_0_DIN2_DISABLE = 0 , # [doc = "1: ONE_CYCLE"]
FILTEREN15_0_DIN2_ONE_CYCLE = 1 , # [doc = "2: THREE_CYCLE"]
FILTEREN15_0_DIN2_THREE_CYCLE = 2 , # [doc = "3: EIGHT_CYCLE"]
FILTEREN15_0_DIN2_EIGHT_CYCLE = 3 , } impl From < FILTEREN15_0_DIN2_A > for u8 { # [inline (always)]
fn from (variant : FILTEREN15_0_DIN2_A) -> Self { variant as _ } } impl crate :: FieldSpec for FILTEREN15_0_DIN2_A { type Ux = u8 ; } impl FILTEREN15_0_DIN2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FILTEREN15_0_DIN2_A { match self . bits { 0 => FILTEREN15_0_DIN2_A :: FILTEREN15_0_DIN2_DISABLE , 1 => FILTEREN15_0_DIN2_A :: FILTEREN15_0_DIN2_ONE_CYCLE , 2 => FILTEREN15_0_DIN2_A :: FILTEREN15_0_DIN2_THREE_CYCLE , 3 => FILTEREN15_0_DIN2_A :: FILTEREN15_0_DIN2_EIGHT_CYCLE , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_filteren15_0_din2_disable (& self) -> bool { * self == FILTEREN15_0_DIN2_A :: FILTEREN15_0_DIN2_DISABLE } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din2_one_cycle (& self) -> bool { * self == FILTEREN15_0_DIN2_A :: FILTEREN15_0_DIN2_ONE_CYCLE } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din2_three_cycle (& self) -> bool { * self == FILTEREN15_0_DIN2_A :: FILTEREN15_0_DIN2_THREE_CYCLE } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din2_eight_cycle (& self) -> bool { * self == FILTEREN15_0_DIN2_A :: FILTEREN15_0_DIN2_EIGHT_CYCLE } } # [doc = "Field `FILTEREN15_0_DIN2` writer - Programmable counter length of digital glitch filter for DIN2"]
pub type FILTEREN15_0_DIN2_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , FILTEREN15_0_DIN2_A > ; impl < 'a , REG , const O : u8 > FILTEREN15_0_DIN2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn filteren15_0_din2_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN2_A :: FILTEREN15_0_DIN2_DISABLE) } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din2_one_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN2_A :: FILTEREN15_0_DIN2_ONE_CYCLE) } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din2_three_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN2_A :: FILTEREN15_0_DIN2_THREE_CYCLE) } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din2_eight_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN2_A :: FILTEREN15_0_DIN2_EIGHT_CYCLE) } } # [doc = "Field `FILTEREN15_0_DIN3` reader - Programmable counter length of digital glitch filter for DIN3"]
pub type FILTEREN15_0_DIN3_R = crate :: FieldReader < FILTEREN15_0_DIN3_A > ; # [doc = "Programmable counter length of digital glitch filter for DIN3\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FILTEREN15_0_DIN3_A { # [doc = "0: DISABLE"]
FILTEREN15_0_DIN3_DISABLE = 0 , # [doc = "1: ONE_CYCLE"]
FILTEREN15_0_DIN3_ONE_CYCLE = 1 , # [doc = "2: THREE_CYCLE"]
FILTEREN15_0_DIN3_THREE_CYCLE = 2 , # [doc = "3: EIGHT_CYCLE"]
FILTEREN15_0_DIN3_EIGHT_CYCLE = 3 , } impl From < FILTEREN15_0_DIN3_A > for u8 { # [inline (always)]
fn from (variant : FILTEREN15_0_DIN3_A) -> Self { variant as _ } } impl crate :: FieldSpec for FILTEREN15_0_DIN3_A { type Ux = u8 ; } impl FILTEREN15_0_DIN3_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FILTEREN15_0_DIN3_A { match self . bits { 0 => FILTEREN15_0_DIN3_A :: FILTEREN15_0_DIN3_DISABLE , 1 => FILTEREN15_0_DIN3_A :: FILTEREN15_0_DIN3_ONE_CYCLE , 2 => FILTEREN15_0_DIN3_A :: FILTEREN15_0_DIN3_THREE_CYCLE , 3 => FILTEREN15_0_DIN3_A :: FILTEREN15_0_DIN3_EIGHT_CYCLE , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_filteren15_0_din3_disable (& self) -> bool { * self == FILTEREN15_0_DIN3_A :: FILTEREN15_0_DIN3_DISABLE } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din3_one_cycle (& self) -> bool { * self == FILTEREN15_0_DIN3_A :: FILTEREN15_0_DIN3_ONE_CYCLE } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din3_three_cycle (& self) -> bool { * self == FILTEREN15_0_DIN3_A :: FILTEREN15_0_DIN3_THREE_CYCLE } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din3_eight_cycle (& self) -> bool { * self == FILTEREN15_0_DIN3_A :: FILTEREN15_0_DIN3_EIGHT_CYCLE } } # [doc = "Field `FILTEREN15_0_DIN3` writer - Programmable counter length of digital glitch filter for DIN3"]
pub type FILTEREN15_0_DIN3_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , FILTEREN15_0_DIN3_A > ; impl < 'a , REG , const O : u8 > FILTEREN15_0_DIN3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn filteren15_0_din3_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN3_A :: FILTEREN15_0_DIN3_DISABLE) } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din3_one_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN3_A :: FILTEREN15_0_DIN3_ONE_CYCLE) } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din3_three_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN3_A :: FILTEREN15_0_DIN3_THREE_CYCLE) } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din3_eight_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN3_A :: FILTEREN15_0_DIN3_EIGHT_CYCLE) } } # [doc = "Field `FILTEREN15_0_DIN4` reader - Programmable counter length of digital glitch filter for DIN4"]
pub type FILTEREN15_0_DIN4_R = crate :: FieldReader < FILTEREN15_0_DIN4_A > ; # [doc = "Programmable counter length of digital glitch filter for DIN4\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FILTEREN15_0_DIN4_A { # [doc = "0: DISABLE"]
FILTEREN15_0_DIN4_DISABLE = 0 , # [doc = "1: ONE_CYCLE"]
FILTEREN15_0_DIN4_ONE_CYCLE = 1 , # [doc = "2: THREE_CYCLE"]
FILTEREN15_0_DIN4_THREE_CYCLE = 2 , # [doc = "3: EIGHT_CYCLE"]
FILTEREN15_0_DIN4_EIGHT_CYCLE = 3 , } impl From < FILTEREN15_0_DIN4_A > for u8 { # [inline (always)]
fn from (variant : FILTEREN15_0_DIN4_A) -> Self { variant as _ } } impl crate :: FieldSpec for FILTEREN15_0_DIN4_A { type Ux = u8 ; } impl FILTEREN15_0_DIN4_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FILTEREN15_0_DIN4_A { match self . bits { 0 => FILTEREN15_0_DIN4_A :: FILTEREN15_0_DIN4_DISABLE , 1 => FILTEREN15_0_DIN4_A :: FILTEREN15_0_DIN4_ONE_CYCLE , 2 => FILTEREN15_0_DIN4_A :: FILTEREN15_0_DIN4_THREE_CYCLE , 3 => FILTEREN15_0_DIN4_A :: FILTEREN15_0_DIN4_EIGHT_CYCLE , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_filteren15_0_din4_disable (& self) -> bool { * self == FILTEREN15_0_DIN4_A :: FILTEREN15_0_DIN4_DISABLE } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din4_one_cycle (& self) -> bool { * self == FILTEREN15_0_DIN4_A :: FILTEREN15_0_DIN4_ONE_CYCLE } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din4_three_cycle (& self) -> bool { * self == FILTEREN15_0_DIN4_A :: FILTEREN15_0_DIN4_THREE_CYCLE } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din4_eight_cycle (& self) -> bool { * self == FILTEREN15_0_DIN4_A :: FILTEREN15_0_DIN4_EIGHT_CYCLE } } # [doc = "Field `FILTEREN15_0_DIN4` writer - Programmable counter length of digital glitch filter for DIN4"]
pub type FILTEREN15_0_DIN4_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , FILTEREN15_0_DIN4_A > ; impl < 'a , REG , const O : u8 > FILTEREN15_0_DIN4_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn filteren15_0_din4_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN4_A :: FILTEREN15_0_DIN4_DISABLE) } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din4_one_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN4_A :: FILTEREN15_0_DIN4_ONE_CYCLE) } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din4_three_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN4_A :: FILTEREN15_0_DIN4_THREE_CYCLE) } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din4_eight_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN4_A :: FILTEREN15_0_DIN4_EIGHT_CYCLE) } } # [doc = "Field `FILTEREN15_0_DIN5` reader - Programmable counter length of digital glitch filter for DIN5"]
pub type FILTEREN15_0_DIN5_R = crate :: FieldReader < FILTEREN15_0_DIN5_A > ; # [doc = "Programmable counter length of digital glitch filter for DIN5\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FILTEREN15_0_DIN5_A { # [doc = "0: DISABLE"]
FILTEREN15_0_DIN5_DISABLE = 0 , # [doc = "1: ONE_CYCLE"]
FILTEREN15_0_DIN5_ONE_CYCLE = 1 , # [doc = "2: THREE_CYCLE"]
FILTEREN15_0_DIN5_THREE_CYCLE = 2 , # [doc = "3: EIGHT_CYCLE"]
FILTEREN15_0_DIN5_EIGHT_CYCLE = 3 , } impl From < FILTEREN15_0_DIN5_A > for u8 { # [inline (always)]
fn from (variant : FILTEREN15_0_DIN5_A) -> Self { variant as _ } } impl crate :: FieldSpec for FILTEREN15_0_DIN5_A { type Ux = u8 ; } impl FILTEREN15_0_DIN5_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FILTEREN15_0_DIN5_A { match self . bits { 0 => FILTEREN15_0_DIN5_A :: FILTEREN15_0_DIN5_DISABLE , 1 => FILTEREN15_0_DIN5_A :: FILTEREN15_0_DIN5_ONE_CYCLE , 2 => FILTEREN15_0_DIN5_A :: FILTEREN15_0_DIN5_THREE_CYCLE , 3 => FILTEREN15_0_DIN5_A :: FILTEREN15_0_DIN5_EIGHT_CYCLE , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_filteren15_0_din5_disable (& self) -> bool { * self == FILTEREN15_0_DIN5_A :: FILTEREN15_0_DIN5_DISABLE } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din5_one_cycle (& self) -> bool { * self == FILTEREN15_0_DIN5_A :: FILTEREN15_0_DIN5_ONE_CYCLE } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din5_three_cycle (& self) -> bool { * self == FILTEREN15_0_DIN5_A :: FILTEREN15_0_DIN5_THREE_CYCLE } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din5_eight_cycle (& self) -> bool { * self == FILTEREN15_0_DIN5_A :: FILTEREN15_0_DIN5_EIGHT_CYCLE } } # [doc = "Field `FILTEREN15_0_DIN5` writer - Programmable counter length of digital glitch filter for DIN5"]
pub type FILTEREN15_0_DIN5_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , FILTEREN15_0_DIN5_A > ; impl < 'a , REG , const O : u8 > FILTEREN15_0_DIN5_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn filteren15_0_din5_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN5_A :: FILTEREN15_0_DIN5_DISABLE) } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din5_one_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN5_A :: FILTEREN15_0_DIN5_ONE_CYCLE) } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din5_three_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN5_A :: FILTEREN15_0_DIN5_THREE_CYCLE) } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din5_eight_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN5_A :: FILTEREN15_0_DIN5_EIGHT_CYCLE) } } # [doc = "Field `FILTEREN15_0_DIN6` reader - Programmable counter length of digital glitch filter for DIN6"]
pub type FILTEREN15_0_DIN6_R = crate :: FieldReader < FILTEREN15_0_DIN6_A > ; # [doc = "Programmable counter length of digital glitch filter for DIN6\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FILTEREN15_0_DIN6_A { # [doc = "0: DISABLE"]
FILTEREN15_0_DIN6_DISABLE = 0 , # [doc = "1: ONE_CYCLE"]
FILTEREN15_0_DIN6_ONE_CYCLE = 1 , # [doc = "2: THREE_CYCLE"]
FILTEREN15_0_DIN6_THREE_CYCLE = 2 , # [doc = "3: EIGHT_CYCLE"]
FILTEREN15_0_DIN6_EIGHT_CYCLE = 3 , } impl From < FILTEREN15_0_DIN6_A > for u8 { # [inline (always)]
fn from (variant : FILTEREN15_0_DIN6_A) -> Self { variant as _ } } impl crate :: FieldSpec for FILTEREN15_0_DIN6_A { type Ux = u8 ; } impl FILTEREN15_0_DIN6_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FILTEREN15_0_DIN6_A { match self . bits { 0 => FILTEREN15_0_DIN6_A :: FILTEREN15_0_DIN6_DISABLE , 1 => FILTEREN15_0_DIN6_A :: FILTEREN15_0_DIN6_ONE_CYCLE , 2 => FILTEREN15_0_DIN6_A :: FILTEREN15_0_DIN6_THREE_CYCLE , 3 => FILTEREN15_0_DIN6_A :: FILTEREN15_0_DIN6_EIGHT_CYCLE , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_filteren15_0_din6_disable (& self) -> bool { * self == FILTEREN15_0_DIN6_A :: FILTEREN15_0_DIN6_DISABLE } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din6_one_cycle (& self) -> bool { * self == FILTEREN15_0_DIN6_A :: FILTEREN15_0_DIN6_ONE_CYCLE } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din6_three_cycle (& self) -> bool { * self == FILTEREN15_0_DIN6_A :: FILTEREN15_0_DIN6_THREE_CYCLE } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din6_eight_cycle (& self) -> bool { * self == FILTEREN15_0_DIN6_A :: FILTEREN15_0_DIN6_EIGHT_CYCLE } } # [doc = "Field `FILTEREN15_0_DIN6` writer - Programmable counter length of digital glitch filter for DIN6"]
pub type FILTEREN15_0_DIN6_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , FILTEREN15_0_DIN6_A > ; impl < 'a , REG , const O : u8 > FILTEREN15_0_DIN6_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn filteren15_0_din6_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN6_A :: FILTEREN15_0_DIN6_DISABLE) } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din6_one_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN6_A :: FILTEREN15_0_DIN6_ONE_CYCLE) } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din6_three_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN6_A :: FILTEREN15_0_DIN6_THREE_CYCLE) } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din6_eight_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN6_A :: FILTEREN15_0_DIN6_EIGHT_CYCLE) } } # [doc = "Field `FILTEREN15_0_DIN7` reader - Programmable counter length of digital glitch filter for DIN7"]
pub type FILTEREN15_0_DIN7_R = crate :: FieldReader < FILTEREN15_0_DIN7_A > ; # [doc = "Programmable counter length of digital glitch filter for DIN7\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FILTEREN15_0_DIN7_A { # [doc = "0: DISABLE"]
FILTEREN15_0_DIN7_DISABLE = 0 , # [doc = "1: ONE_CYCLE"]
FILTEREN15_0_DIN7_ONE_CYCLE = 1 , # [doc = "2: THREE_CYCLE"]
FILTEREN15_0_DIN7_THREE_CYCLE = 2 , # [doc = "3: EIGHT_CYCLE"]
FILTEREN15_0_DIN7_EIGHT_CYCLE = 3 , } impl From < FILTEREN15_0_DIN7_A > for u8 { # [inline (always)]
fn from (variant : FILTEREN15_0_DIN7_A) -> Self { variant as _ } } impl crate :: FieldSpec for FILTEREN15_0_DIN7_A { type Ux = u8 ; } impl FILTEREN15_0_DIN7_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FILTEREN15_0_DIN7_A { match self . bits { 0 => FILTEREN15_0_DIN7_A :: FILTEREN15_0_DIN7_DISABLE , 1 => FILTEREN15_0_DIN7_A :: FILTEREN15_0_DIN7_ONE_CYCLE , 2 => FILTEREN15_0_DIN7_A :: FILTEREN15_0_DIN7_THREE_CYCLE , 3 => FILTEREN15_0_DIN7_A :: FILTEREN15_0_DIN7_EIGHT_CYCLE , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_filteren15_0_din7_disable (& self) -> bool { * self == FILTEREN15_0_DIN7_A :: FILTEREN15_0_DIN7_DISABLE } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din7_one_cycle (& self) -> bool { * self == FILTEREN15_0_DIN7_A :: FILTEREN15_0_DIN7_ONE_CYCLE } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din7_three_cycle (& self) -> bool { * self == FILTEREN15_0_DIN7_A :: FILTEREN15_0_DIN7_THREE_CYCLE } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din7_eight_cycle (& self) -> bool { * self == FILTEREN15_0_DIN7_A :: FILTEREN15_0_DIN7_EIGHT_CYCLE } } # [doc = "Field `FILTEREN15_0_DIN7` writer - Programmable counter length of digital glitch filter for DIN7"]
pub type FILTEREN15_0_DIN7_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , FILTEREN15_0_DIN7_A > ; impl < 'a , REG , const O : u8 > FILTEREN15_0_DIN7_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn filteren15_0_din7_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN7_A :: FILTEREN15_0_DIN7_DISABLE) } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din7_one_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN7_A :: FILTEREN15_0_DIN7_ONE_CYCLE) } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din7_three_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN7_A :: FILTEREN15_0_DIN7_THREE_CYCLE) } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din7_eight_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN7_A :: FILTEREN15_0_DIN7_EIGHT_CYCLE) } } # [doc = "Field `FILTEREN15_0_DIN8` reader - Programmable counter length of digital glitch filter for DIN8"]
pub type FILTEREN15_0_DIN8_R = crate :: FieldReader < FILTEREN15_0_DIN8_A > ; # [doc = "Programmable counter length of digital glitch filter for DIN8\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FILTEREN15_0_DIN8_A { # [doc = "0: DISABLE"]
FILTEREN15_0_DIN8_DISABLE = 0 , # [doc = "1: ONE_CYCLE"]
FILTEREN15_0_DIN8_ONE_CYCLE = 1 , # [doc = "2: THREE_CYCLE"]
FILTEREN15_0_DIN8_THREE_CYCLE = 2 , # [doc = "3: EIGHT_CYCLE"]
FILTEREN15_0_DIN8_EIGHT_CYCLE = 3 , } impl From < FILTEREN15_0_DIN8_A > for u8 { # [inline (always)]
fn from (variant : FILTEREN15_0_DIN8_A) -> Self { variant as _ } } impl crate :: FieldSpec for FILTEREN15_0_DIN8_A { type Ux = u8 ; } impl FILTEREN15_0_DIN8_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FILTEREN15_0_DIN8_A { match self . bits { 0 => FILTEREN15_0_DIN8_A :: FILTEREN15_0_DIN8_DISABLE , 1 => FILTEREN15_0_DIN8_A :: FILTEREN15_0_DIN8_ONE_CYCLE , 2 => FILTEREN15_0_DIN8_A :: FILTEREN15_0_DIN8_THREE_CYCLE , 3 => FILTEREN15_0_DIN8_A :: FILTEREN15_0_DIN8_EIGHT_CYCLE , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_filteren15_0_din8_disable (& self) -> bool { * self == FILTEREN15_0_DIN8_A :: FILTEREN15_0_DIN8_DISABLE } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din8_one_cycle (& self) -> bool { * self == FILTEREN15_0_DIN8_A :: FILTEREN15_0_DIN8_ONE_CYCLE } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din8_three_cycle (& self) -> bool { * self == FILTEREN15_0_DIN8_A :: FILTEREN15_0_DIN8_THREE_CYCLE } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din8_eight_cycle (& self) -> bool { * self == FILTEREN15_0_DIN8_A :: FILTEREN15_0_DIN8_EIGHT_CYCLE } } # [doc = "Field `FILTEREN15_0_DIN8` writer - Programmable counter length of digital glitch filter for DIN8"]
pub type FILTEREN15_0_DIN8_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , FILTEREN15_0_DIN8_A > ; impl < 'a , REG , const O : u8 > FILTEREN15_0_DIN8_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn filteren15_0_din8_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN8_A :: FILTEREN15_0_DIN8_DISABLE) } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din8_one_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN8_A :: FILTEREN15_0_DIN8_ONE_CYCLE) } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din8_three_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN8_A :: FILTEREN15_0_DIN8_THREE_CYCLE) } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din8_eight_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN8_A :: FILTEREN15_0_DIN8_EIGHT_CYCLE) } } # [doc = "Field `FILTEREN15_0_DIN9` reader - Programmable counter length of digital glitch filter for DIN9"]
pub type FILTEREN15_0_DIN9_R = crate :: FieldReader < FILTEREN15_0_DIN9_A > ; # [doc = "Programmable counter length of digital glitch filter for DIN9\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FILTEREN15_0_DIN9_A { # [doc = "0: DISABLE"]
FILTEREN15_0_DIN9_DISABLE = 0 , # [doc = "1: ONE_CYCLE"]
FILTEREN15_0_DIN9_ONE_CYCLE = 1 , # [doc = "2: THREE_CYCLE"]
FILTEREN15_0_DIN9_THREE_CYCLE = 2 , # [doc = "3: EIGHT_CYCLE"]
FILTEREN15_0_DIN9_EIGHT_CYCLE = 3 , } impl From < FILTEREN15_0_DIN9_A > for u8 { # [inline (always)]
fn from (variant : FILTEREN15_0_DIN9_A) -> Self { variant as _ } } impl crate :: FieldSpec for FILTEREN15_0_DIN9_A { type Ux = u8 ; } impl FILTEREN15_0_DIN9_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FILTEREN15_0_DIN9_A { match self . bits { 0 => FILTEREN15_0_DIN9_A :: FILTEREN15_0_DIN9_DISABLE , 1 => FILTEREN15_0_DIN9_A :: FILTEREN15_0_DIN9_ONE_CYCLE , 2 => FILTEREN15_0_DIN9_A :: FILTEREN15_0_DIN9_THREE_CYCLE , 3 => FILTEREN15_0_DIN9_A :: FILTEREN15_0_DIN9_EIGHT_CYCLE , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_filteren15_0_din9_disable (& self) -> bool { * self == FILTEREN15_0_DIN9_A :: FILTEREN15_0_DIN9_DISABLE } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din9_one_cycle (& self) -> bool { * self == FILTEREN15_0_DIN9_A :: FILTEREN15_0_DIN9_ONE_CYCLE } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din9_three_cycle (& self) -> bool { * self == FILTEREN15_0_DIN9_A :: FILTEREN15_0_DIN9_THREE_CYCLE } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din9_eight_cycle (& self) -> bool { * self == FILTEREN15_0_DIN9_A :: FILTEREN15_0_DIN9_EIGHT_CYCLE } } # [doc = "Field `FILTEREN15_0_DIN9` writer - Programmable counter length of digital glitch filter for DIN9"]
pub type FILTEREN15_0_DIN9_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , FILTEREN15_0_DIN9_A > ; impl < 'a , REG , const O : u8 > FILTEREN15_0_DIN9_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn filteren15_0_din9_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN9_A :: FILTEREN15_0_DIN9_DISABLE) } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din9_one_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN9_A :: FILTEREN15_0_DIN9_ONE_CYCLE) } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din9_three_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN9_A :: FILTEREN15_0_DIN9_THREE_CYCLE) } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din9_eight_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN9_A :: FILTEREN15_0_DIN9_EIGHT_CYCLE) } } # [doc = "Field `FILTEREN15_0_DIN10` reader - Programmable counter length of digital glitch filter for DIN10"]
pub type FILTEREN15_0_DIN10_R = crate :: FieldReader < FILTEREN15_0_DIN10_A > ; # [doc = "Programmable counter length of digital glitch filter for DIN10\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FILTEREN15_0_DIN10_A { # [doc = "0: DISABLE"]
FILTEREN15_0_DIN10_DISABLE = 0 , # [doc = "1: ONE_CYCLE"]
FILTEREN15_0_DIN10_ONE_CYCLE = 1 , # [doc = "2: THREE_CYCLE"]
FILTEREN15_0_DIN10_THREE_CYCLE = 2 , # [doc = "3: EIGHT_CYCLE"]
FILTEREN15_0_DIN10_EIGHT_CYCLE = 3 , } impl From < FILTEREN15_0_DIN10_A > for u8 { # [inline (always)]
fn from (variant : FILTEREN15_0_DIN10_A) -> Self { variant as _ } } impl crate :: FieldSpec for FILTEREN15_0_DIN10_A { type Ux = u8 ; } impl FILTEREN15_0_DIN10_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FILTEREN15_0_DIN10_A { match self . bits { 0 => FILTEREN15_0_DIN10_A :: FILTEREN15_0_DIN10_DISABLE , 1 => FILTEREN15_0_DIN10_A :: FILTEREN15_0_DIN10_ONE_CYCLE , 2 => FILTEREN15_0_DIN10_A :: FILTEREN15_0_DIN10_THREE_CYCLE , 3 => FILTEREN15_0_DIN10_A :: FILTEREN15_0_DIN10_EIGHT_CYCLE , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_filteren15_0_din10_disable (& self) -> bool { * self == FILTEREN15_0_DIN10_A :: FILTEREN15_0_DIN10_DISABLE } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din10_one_cycle (& self) -> bool { * self == FILTEREN15_0_DIN10_A :: FILTEREN15_0_DIN10_ONE_CYCLE } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din10_three_cycle (& self) -> bool { * self == FILTEREN15_0_DIN10_A :: FILTEREN15_0_DIN10_THREE_CYCLE } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din10_eight_cycle (& self) -> bool { * self == FILTEREN15_0_DIN10_A :: FILTEREN15_0_DIN10_EIGHT_CYCLE } } # [doc = "Field `FILTEREN15_0_DIN10` writer - Programmable counter length of digital glitch filter for DIN10"]
pub type FILTEREN15_0_DIN10_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , FILTEREN15_0_DIN10_A > ; impl < 'a , REG , const O : u8 > FILTEREN15_0_DIN10_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn filteren15_0_din10_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN10_A :: FILTEREN15_0_DIN10_DISABLE) } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din10_one_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN10_A :: FILTEREN15_0_DIN10_ONE_CYCLE) } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din10_three_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN10_A :: FILTEREN15_0_DIN10_THREE_CYCLE) } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din10_eight_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN10_A :: FILTEREN15_0_DIN10_EIGHT_CYCLE) } } # [doc = "Field `FILTEREN15_0_DIN11` reader - Programmable counter length of digital glitch filter for DIN11"]
pub type FILTEREN15_0_DIN11_R = crate :: FieldReader < FILTEREN15_0_DIN11_A > ; # [doc = "Programmable counter length of digital glitch filter for DIN11\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FILTEREN15_0_DIN11_A { # [doc = "0: DISABLE"]
FILTEREN15_0_DIN11_DISABLE = 0 , # [doc = "1: ONE_CYCLE"]
FILTEREN15_0_DIN11_ONE_CYCLE = 1 , # [doc = "2: THREE_CYCLE"]
FILTEREN15_0_DIN11_THREE_CYCLE = 2 , # [doc = "3: EIGHT_CYCLE"]
FILTEREN15_0_DIN11_EIGHT_CYCLE = 3 , } impl From < FILTEREN15_0_DIN11_A > for u8 { # [inline (always)]
fn from (variant : FILTEREN15_0_DIN11_A) -> Self { variant as _ } } impl crate :: FieldSpec for FILTEREN15_0_DIN11_A { type Ux = u8 ; } impl FILTEREN15_0_DIN11_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FILTEREN15_0_DIN11_A { match self . bits { 0 => FILTEREN15_0_DIN11_A :: FILTEREN15_0_DIN11_DISABLE , 1 => FILTEREN15_0_DIN11_A :: FILTEREN15_0_DIN11_ONE_CYCLE , 2 => FILTEREN15_0_DIN11_A :: FILTEREN15_0_DIN11_THREE_CYCLE , 3 => FILTEREN15_0_DIN11_A :: FILTEREN15_0_DIN11_EIGHT_CYCLE , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_filteren15_0_din11_disable (& self) -> bool { * self == FILTEREN15_0_DIN11_A :: FILTEREN15_0_DIN11_DISABLE } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din11_one_cycle (& self) -> bool { * self == FILTEREN15_0_DIN11_A :: FILTEREN15_0_DIN11_ONE_CYCLE } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din11_three_cycle (& self) -> bool { * self == FILTEREN15_0_DIN11_A :: FILTEREN15_0_DIN11_THREE_CYCLE } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din11_eight_cycle (& self) -> bool { * self == FILTEREN15_0_DIN11_A :: FILTEREN15_0_DIN11_EIGHT_CYCLE } } # [doc = "Field `FILTEREN15_0_DIN11` writer - Programmable counter length of digital glitch filter for DIN11"]
pub type FILTEREN15_0_DIN11_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , FILTEREN15_0_DIN11_A > ; impl < 'a , REG , const O : u8 > FILTEREN15_0_DIN11_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn filteren15_0_din11_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN11_A :: FILTEREN15_0_DIN11_DISABLE) } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din11_one_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN11_A :: FILTEREN15_0_DIN11_ONE_CYCLE) } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din11_three_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN11_A :: FILTEREN15_0_DIN11_THREE_CYCLE) } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din11_eight_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN11_A :: FILTEREN15_0_DIN11_EIGHT_CYCLE) } } # [doc = "Field `FILTEREN15_0_DIN12` reader - Programmable counter length of digital glitch filter for DIN12"]
pub type FILTEREN15_0_DIN12_R = crate :: FieldReader < FILTEREN15_0_DIN12_A > ; # [doc = "Programmable counter length of digital glitch filter for DIN12\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FILTEREN15_0_DIN12_A { # [doc = "0: DISABLE"]
FILTEREN15_0_DIN12_DISABLE = 0 , # [doc = "1: ONE_CYCLE"]
FILTEREN15_0_DIN12_ONE_CYCLE = 1 , # [doc = "2: THREE_CYCLE"]
FILTEREN15_0_DIN12_THREE_CYCLE = 2 , # [doc = "3: EIGHT_CYCLE"]
FILTEREN15_0_DIN12_EIGHT_CYCLE = 3 , } impl From < FILTEREN15_0_DIN12_A > for u8 { # [inline (always)]
fn from (variant : FILTEREN15_0_DIN12_A) -> Self { variant as _ } } impl crate :: FieldSpec for FILTEREN15_0_DIN12_A { type Ux = u8 ; } impl FILTEREN15_0_DIN12_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FILTEREN15_0_DIN12_A { match self . bits { 0 => FILTEREN15_0_DIN12_A :: FILTEREN15_0_DIN12_DISABLE , 1 => FILTEREN15_0_DIN12_A :: FILTEREN15_0_DIN12_ONE_CYCLE , 2 => FILTEREN15_0_DIN12_A :: FILTEREN15_0_DIN12_THREE_CYCLE , 3 => FILTEREN15_0_DIN12_A :: FILTEREN15_0_DIN12_EIGHT_CYCLE , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_filteren15_0_din12_disable (& self) -> bool { * self == FILTEREN15_0_DIN12_A :: FILTEREN15_0_DIN12_DISABLE } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din12_one_cycle (& self) -> bool { * self == FILTEREN15_0_DIN12_A :: FILTEREN15_0_DIN12_ONE_CYCLE } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din12_three_cycle (& self) -> bool { * self == FILTEREN15_0_DIN12_A :: FILTEREN15_0_DIN12_THREE_CYCLE } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din12_eight_cycle (& self) -> bool { * self == FILTEREN15_0_DIN12_A :: FILTEREN15_0_DIN12_EIGHT_CYCLE } } # [doc = "Field `FILTEREN15_0_DIN12` writer - Programmable counter length of digital glitch filter for DIN12"]
pub type FILTEREN15_0_DIN12_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , FILTEREN15_0_DIN12_A > ; impl < 'a , REG , const O : u8 > FILTEREN15_0_DIN12_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn filteren15_0_din12_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN12_A :: FILTEREN15_0_DIN12_DISABLE) } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din12_one_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN12_A :: FILTEREN15_0_DIN12_ONE_CYCLE) } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din12_three_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN12_A :: FILTEREN15_0_DIN12_THREE_CYCLE) } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din12_eight_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN12_A :: FILTEREN15_0_DIN12_EIGHT_CYCLE) } } # [doc = "Field `FILTEREN15_0_DIN13` reader - Programmable counter length of digital glitch filter for DIN13"]
pub type FILTEREN15_0_DIN13_R = crate :: FieldReader < FILTEREN15_0_DIN13_A > ; # [doc = "Programmable counter length of digital glitch filter for DIN13\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FILTEREN15_0_DIN13_A { # [doc = "0: DISABLE"]
FILTEREN15_0_DIN13_DISABLE = 0 , # [doc = "1: ONE_CYCLE"]
FILTEREN15_0_DIN13_ONE_CYCLE = 1 , # [doc = "2: THREE_CYCLE"]
FILTEREN15_0_DIN13_THREE_CYCLE = 2 , # [doc = "3: EIGHT_CYCLE"]
FILTEREN15_0_DIN13_EIGHT_CYCLE = 3 , } impl From < FILTEREN15_0_DIN13_A > for u8 { # [inline (always)]
fn from (variant : FILTEREN15_0_DIN13_A) -> Self { variant as _ } } impl crate :: FieldSpec for FILTEREN15_0_DIN13_A { type Ux = u8 ; } impl FILTEREN15_0_DIN13_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FILTEREN15_0_DIN13_A { match self . bits { 0 => FILTEREN15_0_DIN13_A :: FILTEREN15_0_DIN13_DISABLE , 1 => FILTEREN15_0_DIN13_A :: FILTEREN15_0_DIN13_ONE_CYCLE , 2 => FILTEREN15_0_DIN13_A :: FILTEREN15_0_DIN13_THREE_CYCLE , 3 => FILTEREN15_0_DIN13_A :: FILTEREN15_0_DIN13_EIGHT_CYCLE , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_filteren15_0_din13_disable (& self) -> bool { * self == FILTEREN15_0_DIN13_A :: FILTEREN15_0_DIN13_DISABLE } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din13_one_cycle (& self) -> bool { * self == FILTEREN15_0_DIN13_A :: FILTEREN15_0_DIN13_ONE_CYCLE } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din13_three_cycle (& self) -> bool { * self == FILTEREN15_0_DIN13_A :: FILTEREN15_0_DIN13_THREE_CYCLE } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din13_eight_cycle (& self) -> bool { * self == FILTEREN15_0_DIN13_A :: FILTEREN15_0_DIN13_EIGHT_CYCLE } } # [doc = "Field `FILTEREN15_0_DIN13` writer - Programmable counter length of digital glitch filter for DIN13"]
pub type FILTEREN15_0_DIN13_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , FILTEREN15_0_DIN13_A > ; impl < 'a , REG , const O : u8 > FILTEREN15_0_DIN13_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn filteren15_0_din13_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN13_A :: FILTEREN15_0_DIN13_DISABLE) } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din13_one_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN13_A :: FILTEREN15_0_DIN13_ONE_CYCLE) } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din13_three_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN13_A :: FILTEREN15_0_DIN13_THREE_CYCLE) } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din13_eight_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN13_A :: FILTEREN15_0_DIN13_EIGHT_CYCLE) } } # [doc = "Field `FILTEREN15_0_DIN14` reader - Programmable counter length of digital glitch filter for DIN14"]
pub type FILTEREN15_0_DIN14_R = crate :: FieldReader < FILTEREN15_0_DIN14_A > ; # [doc = "Programmable counter length of digital glitch filter for DIN14\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FILTEREN15_0_DIN14_A { # [doc = "0: DISABLE"]
FILTEREN15_0_DIN14_DISABLE = 0 , # [doc = "1: ONE_CYCLE"]
FILTEREN15_0_DIN14_ONE_CYCLE = 1 , # [doc = "2: THREE_CYCLE"]
FILTEREN15_0_DIN14_THREE_CYCLE = 2 , # [doc = "3: EIGHT_CYCLE"]
FILTEREN15_0_DIN14_EIGHT_CYCLE = 3 , } impl From < FILTEREN15_0_DIN14_A > for u8 { # [inline (always)]
fn from (variant : FILTEREN15_0_DIN14_A) -> Self { variant as _ } } impl crate :: FieldSpec for FILTEREN15_0_DIN14_A { type Ux = u8 ; } impl FILTEREN15_0_DIN14_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FILTEREN15_0_DIN14_A { match self . bits { 0 => FILTEREN15_0_DIN14_A :: FILTEREN15_0_DIN14_DISABLE , 1 => FILTEREN15_0_DIN14_A :: FILTEREN15_0_DIN14_ONE_CYCLE , 2 => FILTEREN15_0_DIN14_A :: FILTEREN15_0_DIN14_THREE_CYCLE , 3 => FILTEREN15_0_DIN14_A :: FILTEREN15_0_DIN14_EIGHT_CYCLE , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_filteren15_0_din14_disable (& self) -> bool { * self == FILTEREN15_0_DIN14_A :: FILTEREN15_0_DIN14_DISABLE } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din14_one_cycle (& self) -> bool { * self == FILTEREN15_0_DIN14_A :: FILTEREN15_0_DIN14_ONE_CYCLE } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din14_three_cycle (& self) -> bool { * self == FILTEREN15_0_DIN14_A :: FILTEREN15_0_DIN14_THREE_CYCLE } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din14_eight_cycle (& self) -> bool { * self == FILTEREN15_0_DIN14_A :: FILTEREN15_0_DIN14_EIGHT_CYCLE } } # [doc = "Field `FILTEREN15_0_DIN14` writer - Programmable counter length of digital glitch filter for DIN14"]
pub type FILTEREN15_0_DIN14_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , FILTEREN15_0_DIN14_A > ; impl < 'a , REG , const O : u8 > FILTEREN15_0_DIN14_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn filteren15_0_din14_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN14_A :: FILTEREN15_0_DIN14_DISABLE) } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din14_one_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN14_A :: FILTEREN15_0_DIN14_ONE_CYCLE) } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din14_three_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN14_A :: FILTEREN15_0_DIN14_THREE_CYCLE) } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din14_eight_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN14_A :: FILTEREN15_0_DIN14_EIGHT_CYCLE) } } # [doc = "Field `FILTEREN15_0_DIN15` reader - Programmable counter length of digital glitch filter for DIN15"]
pub type FILTEREN15_0_DIN15_R = crate :: FieldReader < FILTEREN15_0_DIN15_A > ; # [doc = "Programmable counter length of digital glitch filter for DIN15\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FILTEREN15_0_DIN15_A { # [doc = "0: DISABLE"]
FILTEREN15_0_DIN15_DISABLE = 0 , # [doc = "1: ONE_CYCLE"]
FILTEREN15_0_DIN15_ONE_CYCLE = 1 , # [doc = "2: THREE_CYCLE"]
FILTEREN15_0_DIN15_THREE_CYCLE = 2 , # [doc = "3: EIGHT_CYCLE"]
FILTEREN15_0_DIN15_EIGHT_CYCLE = 3 , } impl From < FILTEREN15_0_DIN15_A > for u8 { # [inline (always)]
fn from (variant : FILTEREN15_0_DIN15_A) -> Self { variant as _ } } impl crate :: FieldSpec for FILTEREN15_0_DIN15_A { type Ux = u8 ; } impl FILTEREN15_0_DIN15_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FILTEREN15_0_DIN15_A { match self . bits { 0 => FILTEREN15_0_DIN15_A :: FILTEREN15_0_DIN15_DISABLE , 1 => FILTEREN15_0_DIN15_A :: FILTEREN15_0_DIN15_ONE_CYCLE , 2 => FILTEREN15_0_DIN15_A :: FILTEREN15_0_DIN15_THREE_CYCLE , 3 => FILTEREN15_0_DIN15_A :: FILTEREN15_0_DIN15_EIGHT_CYCLE , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_filteren15_0_din15_disable (& self) -> bool { * self == FILTEREN15_0_DIN15_A :: FILTEREN15_0_DIN15_DISABLE } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din15_one_cycle (& self) -> bool { * self == FILTEREN15_0_DIN15_A :: FILTEREN15_0_DIN15_ONE_CYCLE } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din15_three_cycle (& self) -> bool { * self == FILTEREN15_0_DIN15_A :: FILTEREN15_0_DIN15_THREE_CYCLE } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn is_filteren15_0_din15_eight_cycle (& self) -> bool { * self == FILTEREN15_0_DIN15_A :: FILTEREN15_0_DIN15_EIGHT_CYCLE } } # [doc = "Field `FILTEREN15_0_DIN15` writer - Programmable counter length of digital glitch filter for DIN15"]
pub type FILTEREN15_0_DIN15_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , FILTEREN15_0_DIN15_A > ; impl < 'a , REG , const O : u8 > FILTEREN15_0_DIN15_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn filteren15_0_din15_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN15_A :: FILTEREN15_0_DIN15_DISABLE) } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din15_one_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN15_A :: FILTEREN15_0_DIN15_ONE_CYCLE) } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din15_three_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN15_A :: FILTEREN15_0_DIN15_THREE_CYCLE) } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn filteren15_0_din15_eight_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN15_0_DIN15_A :: FILTEREN15_0_DIN15_EIGHT_CYCLE) } } impl R { # [doc = "Bits 0:1 - Programmable counter length of digital glitch filter for DIN0"]
# [inline (always)]
pub fn filteren15_0_din0 (& self) -> FILTEREN15_0_DIN0_R { FILTEREN15_0_DIN0_R :: new ((self . bits & 3) as u8) } # [doc = "Bits 2:3 - Programmable counter length of digital glitch filter for DIN1"]
# [inline (always)]
pub fn filteren15_0_din1 (& self) -> FILTEREN15_0_DIN1_R { FILTEREN15_0_DIN1_R :: new (((self . bits >> 2) & 3) as u8) } # [doc = "Bits 4:5 - Programmable counter length of digital glitch filter for DIN2"]
# [inline (always)]
pub fn filteren15_0_din2 (& self) -> FILTEREN15_0_DIN2_R { FILTEREN15_0_DIN2_R :: new (((self . bits >> 4) & 3) as u8) } # [doc = "Bits 6:7 - Programmable counter length of digital glitch filter for DIN3"]
# [inline (always)]
pub fn filteren15_0_din3 (& self) -> FILTEREN15_0_DIN3_R { FILTEREN15_0_DIN3_R :: new (((self . bits >> 6) & 3) as u8) } # [doc = "Bits 8:9 - Programmable counter length of digital glitch filter for DIN4"]
# [inline (always)]
pub fn filteren15_0_din4 (& self) -> FILTEREN15_0_DIN4_R { FILTEREN15_0_DIN4_R :: new (((self . bits >> 8) & 3) as u8) } # [doc = "Bits 10:11 - Programmable counter length of digital glitch filter for DIN5"]
# [inline (always)]
pub fn filteren15_0_din5 (& self) -> FILTEREN15_0_DIN5_R { FILTEREN15_0_DIN5_R :: new (((self . bits >> 10) & 3) as u8) } # [doc = "Bits 12:13 - Programmable counter length of digital glitch filter for DIN6"]
# [inline (always)]
pub fn filteren15_0_din6 (& self) -> FILTEREN15_0_DIN6_R { FILTEREN15_0_DIN6_R :: new (((self . bits >> 12) & 3) as u8) } # [doc = "Bits 14:15 - Programmable counter length of digital glitch filter for DIN7"]
# [inline (always)]
pub fn filteren15_0_din7 (& self) -> FILTEREN15_0_DIN7_R { FILTEREN15_0_DIN7_R :: new (((self . bits >> 14) & 3) as u8) } # [doc = "Bits 16:17 - Programmable counter length of digital glitch filter for DIN8"]
# [inline (always)]
pub fn filteren15_0_din8 (& self) -> FILTEREN15_0_DIN8_R { FILTEREN15_0_DIN8_R :: new (((self . bits >> 16) & 3) as u8) } # [doc = "Bits 18:19 - Programmable counter length of digital glitch filter for DIN9"]
# [inline (always)]
pub fn filteren15_0_din9 (& self) -> FILTEREN15_0_DIN9_R { FILTEREN15_0_DIN9_R :: new (((self . bits >> 18) & 3) as u8) } # [doc = "Bits 20:21 - Programmable counter length of digital glitch filter for DIN10"]
# [inline (always)]
pub fn filteren15_0_din10 (& self) -> FILTEREN15_0_DIN10_R { FILTEREN15_0_DIN10_R :: new (((self . bits >> 20) & 3) as u8) } # [doc = "Bits 22:23 - Programmable counter length of digital glitch filter for DIN11"]
# [inline (always)]
pub fn filteren15_0_din11 (& self) -> FILTEREN15_0_DIN11_R { FILTEREN15_0_DIN11_R :: new (((self . bits >> 22) & 3) as u8) } # [doc = "Bits 24:25 - Programmable counter length of digital glitch filter for DIN12"]
# [inline (always)]
pub fn filteren15_0_din12 (& self) -> FILTEREN15_0_DIN12_R { FILTEREN15_0_DIN12_R :: new (((self . bits >> 24) & 3) as u8) } # [doc = "Bits 26:27 - Programmable counter length of digital glitch filter for DIN13"]
# [inline (always)]
pub fn filteren15_0_din13 (& self) -> FILTEREN15_0_DIN13_R { FILTEREN15_0_DIN13_R :: new (((self . bits >> 26) & 3) as u8) } # [doc = "Bits 28:29 - Programmable counter length of digital glitch filter for DIN14"]
# [inline (always)]
pub fn filteren15_0_din14 (& self) -> FILTEREN15_0_DIN14_R { FILTEREN15_0_DIN14_R :: new (((self . bits >> 28) & 3) as u8) } # [doc = "Bits 30:31 - Programmable counter length of digital glitch filter for DIN15"]
# [inline (always)]
pub fn filteren15_0_din15 (& self) -> FILTEREN15_0_DIN15_R { FILTEREN15_0_DIN15_R :: new (((self . bits >> 30) & 3) as u8) } } impl W { # [doc = "Bits 0:1 - Programmable counter length of digital glitch filter for DIN0"]
# [inline (always)]
# [must_use]
pub fn filteren15_0_din0 (& mut self) -> FILTEREN15_0_DIN0_W < FILTEREN15_0_SPEC , 0 > { FILTEREN15_0_DIN0_W :: new (self) } # [doc = "Bits 2:3 - Programmable counter length of digital glitch filter for DIN1"]
# [inline (always)]
# [must_use]
pub fn filteren15_0_din1 (& mut self) -> FILTEREN15_0_DIN1_W < FILTEREN15_0_SPEC , 2 > { FILTEREN15_0_DIN1_W :: new (self) } # [doc = "Bits 4:5 - Programmable counter length of digital glitch filter for DIN2"]
# [inline (always)]
# [must_use]
pub fn filteren15_0_din2 (& mut self) -> FILTEREN15_0_DIN2_W < FILTEREN15_0_SPEC , 4 > { FILTEREN15_0_DIN2_W :: new (self) } # [doc = "Bits 6:7 - Programmable counter length of digital glitch filter for DIN3"]
# [inline (always)]
# [must_use]
pub fn filteren15_0_din3 (& mut self) -> FILTEREN15_0_DIN3_W < FILTEREN15_0_SPEC , 6 > { FILTEREN15_0_DIN3_W :: new (self) } # [doc = "Bits 8:9 - Programmable counter length of digital glitch filter for DIN4"]
# [inline (always)]
# [must_use]
pub fn filteren15_0_din4 (& mut self) -> FILTEREN15_0_DIN4_W < FILTEREN15_0_SPEC , 8 > { FILTEREN15_0_DIN4_W :: new (self) } # [doc = "Bits 10:11 - Programmable counter length of digital glitch filter for DIN5"]
# [inline (always)]
# [must_use]
pub fn filteren15_0_din5 (& mut self) -> FILTEREN15_0_DIN5_W < FILTEREN15_0_SPEC , 10 > { FILTEREN15_0_DIN5_W :: new (self) } # [doc = "Bits 12:13 - Programmable counter length of digital glitch filter for DIN6"]
# [inline (always)]
# [must_use]
pub fn filteren15_0_din6 (& mut self) -> FILTEREN15_0_DIN6_W < FILTEREN15_0_SPEC , 12 > { FILTEREN15_0_DIN6_W :: new (self) } # [doc = "Bits 14:15 - Programmable counter length of digital glitch filter for DIN7"]
# [inline (always)]
# [must_use]
pub fn filteren15_0_din7 (& mut self) -> FILTEREN15_0_DIN7_W < FILTEREN15_0_SPEC , 14 > { FILTEREN15_0_DIN7_W :: new (self) } # [doc = "Bits 16:17 - Programmable counter length of digital glitch filter for DIN8"]
# [inline (always)]
# [must_use]
pub fn filteren15_0_din8 (& mut self) -> FILTEREN15_0_DIN8_W < FILTEREN15_0_SPEC , 16 > { FILTEREN15_0_DIN8_W :: new (self) } # [doc = "Bits 18:19 - Programmable counter length of digital glitch filter for DIN9"]
# [inline (always)]
# [must_use]
pub fn filteren15_0_din9 (& mut self) -> FILTEREN15_0_DIN9_W < FILTEREN15_0_SPEC , 18 > { FILTEREN15_0_DIN9_W :: new (self) } # [doc = "Bits 20:21 - Programmable counter length of digital glitch filter for DIN10"]
# [inline (always)]
# [must_use]
pub fn filteren15_0_din10 (& mut self) -> FILTEREN15_0_DIN10_W < FILTEREN15_0_SPEC , 20 > { FILTEREN15_0_DIN10_W :: new (self) } # [doc = "Bits 22:23 - Programmable counter length of digital glitch filter for DIN11"]
# [inline (always)]
# [must_use]
pub fn filteren15_0_din11 (& mut self) -> FILTEREN15_0_DIN11_W < FILTEREN15_0_SPEC , 22 > { FILTEREN15_0_DIN11_W :: new (self) } # [doc = "Bits 24:25 - Programmable counter length of digital glitch filter for DIN12"]
# [inline (always)]
# [must_use]
pub fn filteren15_0_din12 (& mut self) -> FILTEREN15_0_DIN12_W < FILTEREN15_0_SPEC , 24 > { FILTEREN15_0_DIN12_W :: new (self) } # [doc = "Bits 26:27 - Programmable counter length of digital glitch filter for DIN13"]
# [inline (always)]
# [must_use]
pub fn filteren15_0_din13 (& mut self) -> FILTEREN15_0_DIN13_W < FILTEREN15_0_SPEC , 26 > { FILTEREN15_0_DIN13_W :: new (self) } # [doc = "Bits 28:29 - Programmable counter length of digital glitch filter for DIN14"]
# [inline (always)]
# [must_use]
pub fn filteren15_0_din14 (& mut self) -> FILTEREN15_0_DIN14_W < FILTEREN15_0_SPEC , 28 > { FILTEREN15_0_DIN14_W :: new (self) } # [doc = "Bits 30:31 - Programmable counter length of digital glitch filter for DIN15"]
# [inline (always)]
# [must_use]
pub fn filteren15_0_din15 (& mut self) -> FILTEREN15_0_DIN15_W < FILTEREN15_0_SPEC , 30 > { FILTEREN15_0_DIN15_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Filter Enable 15 to 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`filteren15_0::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`filteren15_0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FILTEREN15_0_SPEC ; impl crate :: RegisterSpec for FILTEREN15_0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`filteren15_0::R`](R) reader structure"]
impl crate :: Readable for FILTEREN15_0_SPEC { } # [doc = "`write(|w| ..)` method takes [`filteren15_0::W`](W) writer structure"]
impl crate :: Writable for FILTEREN15_0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FILTEREN15_0 to value 0"]
impl crate :: Resettable for FILTEREN15_0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "FILTEREN31_16 (rw) register accessor: Filter Enable 31 to 16\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`filteren31_16::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`filteren31_16::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@filteren31_16`]
module"]
pub type FILTEREN31_16 = crate :: Reg < filteren31_16 :: FILTEREN31_16_SPEC > ; # [doc = "Filter Enable 31 to 16"]
pub mod filteren31_16 { # [doc = "Register `FILTEREN31_16` reader"]
pub type R = crate :: R < FILTEREN31_16_SPEC > ; # [doc = "Register `FILTEREN31_16` writer"]
pub type W = crate :: W < FILTEREN31_16_SPEC > ; # [doc = "Field `FILTEREN31_16_DIN16` reader - Programmable counter length of digital glitch filter for DIN16"]
pub type FILTEREN31_16_DIN16_R = crate :: FieldReader < FILTEREN31_16_DIN16_A > ; # [doc = "Programmable counter length of digital glitch filter for DIN16\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FILTEREN31_16_DIN16_A { # [doc = "0: DISABLE"]
FILTEREN31_16_DIN16_DISABLE = 0 , # [doc = "1: ONE_CYCLE"]
FILTEREN31_16_DIN16_ONE_CYCLE = 1 , # [doc = "2: THREE_CYCLE"]
FILTEREN31_16_DIN16_THREE_CYCLE = 2 , # [doc = "3: EIGHT_CYCLE"]
FILTEREN31_16_DIN16_EIGHT_CYCLE = 3 , } impl From < FILTEREN31_16_DIN16_A > for u8 { # [inline (always)]
fn from (variant : FILTEREN31_16_DIN16_A) -> Self { variant as _ } } impl crate :: FieldSpec for FILTEREN31_16_DIN16_A { type Ux = u8 ; } impl FILTEREN31_16_DIN16_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FILTEREN31_16_DIN16_A { match self . bits { 0 => FILTEREN31_16_DIN16_A :: FILTEREN31_16_DIN16_DISABLE , 1 => FILTEREN31_16_DIN16_A :: FILTEREN31_16_DIN16_ONE_CYCLE , 2 => FILTEREN31_16_DIN16_A :: FILTEREN31_16_DIN16_THREE_CYCLE , 3 => FILTEREN31_16_DIN16_A :: FILTEREN31_16_DIN16_EIGHT_CYCLE , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_filteren31_16_din16_disable (& self) -> bool { * self == FILTEREN31_16_DIN16_A :: FILTEREN31_16_DIN16_DISABLE } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din16_one_cycle (& self) -> bool { * self == FILTEREN31_16_DIN16_A :: FILTEREN31_16_DIN16_ONE_CYCLE } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din16_three_cycle (& self) -> bool { * self == FILTEREN31_16_DIN16_A :: FILTEREN31_16_DIN16_THREE_CYCLE } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din16_eight_cycle (& self) -> bool { * self == FILTEREN31_16_DIN16_A :: FILTEREN31_16_DIN16_EIGHT_CYCLE } } # [doc = "Field `FILTEREN31_16_DIN16` writer - Programmable counter length of digital glitch filter for DIN16"]
pub type FILTEREN31_16_DIN16_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , FILTEREN31_16_DIN16_A > ; impl < 'a , REG , const O : u8 > FILTEREN31_16_DIN16_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn filteren31_16_din16_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN16_A :: FILTEREN31_16_DIN16_DISABLE) } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din16_one_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN16_A :: FILTEREN31_16_DIN16_ONE_CYCLE) } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din16_three_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN16_A :: FILTEREN31_16_DIN16_THREE_CYCLE) } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din16_eight_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN16_A :: FILTEREN31_16_DIN16_EIGHT_CYCLE) } } # [doc = "Field `FILTEREN31_16_DIN17` reader - Programmable counter length of digital glitch filter for DIN17"]
pub type FILTEREN31_16_DIN17_R = crate :: FieldReader < FILTEREN31_16_DIN17_A > ; # [doc = "Programmable counter length of digital glitch filter for DIN17\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FILTEREN31_16_DIN17_A { # [doc = "0: DISABLE"]
FILTEREN31_16_DIN17_DISABLE = 0 , # [doc = "1: ONE_CYCLE"]
FILTEREN31_16_DIN17_ONE_CYCLE = 1 , # [doc = "2: THREE_CYCLE"]
FILTEREN31_16_DIN17_THREE_CYCLE = 2 , # [doc = "3: EIGHT_CYCLE"]
FILTEREN31_16_DIN17_EIGHT_CYCLE = 3 , } impl From < FILTEREN31_16_DIN17_A > for u8 { # [inline (always)]
fn from (variant : FILTEREN31_16_DIN17_A) -> Self { variant as _ } } impl crate :: FieldSpec for FILTEREN31_16_DIN17_A { type Ux = u8 ; } impl FILTEREN31_16_DIN17_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FILTEREN31_16_DIN17_A { match self . bits { 0 => FILTEREN31_16_DIN17_A :: FILTEREN31_16_DIN17_DISABLE , 1 => FILTEREN31_16_DIN17_A :: FILTEREN31_16_DIN17_ONE_CYCLE , 2 => FILTEREN31_16_DIN17_A :: FILTEREN31_16_DIN17_THREE_CYCLE , 3 => FILTEREN31_16_DIN17_A :: FILTEREN31_16_DIN17_EIGHT_CYCLE , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_filteren31_16_din17_disable (& self) -> bool { * self == FILTEREN31_16_DIN17_A :: FILTEREN31_16_DIN17_DISABLE } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din17_one_cycle (& self) -> bool { * self == FILTEREN31_16_DIN17_A :: FILTEREN31_16_DIN17_ONE_CYCLE } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din17_three_cycle (& self) -> bool { * self == FILTEREN31_16_DIN17_A :: FILTEREN31_16_DIN17_THREE_CYCLE } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din17_eight_cycle (& self) -> bool { * self == FILTEREN31_16_DIN17_A :: FILTEREN31_16_DIN17_EIGHT_CYCLE } } # [doc = "Field `FILTEREN31_16_DIN17` writer - Programmable counter length of digital glitch filter for DIN17"]
pub type FILTEREN31_16_DIN17_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , FILTEREN31_16_DIN17_A > ; impl < 'a , REG , const O : u8 > FILTEREN31_16_DIN17_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn filteren31_16_din17_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN17_A :: FILTEREN31_16_DIN17_DISABLE) } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din17_one_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN17_A :: FILTEREN31_16_DIN17_ONE_CYCLE) } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din17_three_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN17_A :: FILTEREN31_16_DIN17_THREE_CYCLE) } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din17_eight_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN17_A :: FILTEREN31_16_DIN17_EIGHT_CYCLE) } } # [doc = "Field `FILTEREN31_16_DIN18` reader - Programmable counter length of digital glitch filter for DIN18"]
pub type FILTEREN31_16_DIN18_R = crate :: FieldReader < FILTEREN31_16_DIN18_A > ; # [doc = "Programmable counter length of digital glitch filter for DIN18\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FILTEREN31_16_DIN18_A { # [doc = "0: DISABLE"]
FILTEREN31_16_DIN18_DISABLE = 0 , # [doc = "1: ONE_CYCLE"]
FILTEREN31_16_DIN18_ONE_CYCLE = 1 , # [doc = "2: THREE_CYCLE"]
FILTEREN31_16_DIN18_THREE_CYCLE = 2 , # [doc = "3: EIGHT_CYCLE"]
FILTEREN31_16_DIN18_EIGHT_CYCLE = 3 , } impl From < FILTEREN31_16_DIN18_A > for u8 { # [inline (always)]
fn from (variant : FILTEREN31_16_DIN18_A) -> Self { variant as _ } } impl crate :: FieldSpec for FILTEREN31_16_DIN18_A { type Ux = u8 ; } impl FILTEREN31_16_DIN18_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FILTEREN31_16_DIN18_A { match self . bits { 0 => FILTEREN31_16_DIN18_A :: FILTEREN31_16_DIN18_DISABLE , 1 => FILTEREN31_16_DIN18_A :: FILTEREN31_16_DIN18_ONE_CYCLE , 2 => FILTEREN31_16_DIN18_A :: FILTEREN31_16_DIN18_THREE_CYCLE , 3 => FILTEREN31_16_DIN18_A :: FILTEREN31_16_DIN18_EIGHT_CYCLE , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_filteren31_16_din18_disable (& self) -> bool { * self == FILTEREN31_16_DIN18_A :: FILTEREN31_16_DIN18_DISABLE } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din18_one_cycle (& self) -> bool { * self == FILTEREN31_16_DIN18_A :: FILTEREN31_16_DIN18_ONE_CYCLE } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din18_three_cycle (& self) -> bool { * self == FILTEREN31_16_DIN18_A :: FILTEREN31_16_DIN18_THREE_CYCLE } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din18_eight_cycle (& self) -> bool { * self == FILTEREN31_16_DIN18_A :: FILTEREN31_16_DIN18_EIGHT_CYCLE } } # [doc = "Field `FILTEREN31_16_DIN18` writer - Programmable counter length of digital glitch filter for DIN18"]
pub type FILTEREN31_16_DIN18_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , FILTEREN31_16_DIN18_A > ; impl < 'a , REG , const O : u8 > FILTEREN31_16_DIN18_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn filteren31_16_din18_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN18_A :: FILTEREN31_16_DIN18_DISABLE) } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din18_one_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN18_A :: FILTEREN31_16_DIN18_ONE_CYCLE) } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din18_three_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN18_A :: FILTEREN31_16_DIN18_THREE_CYCLE) } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din18_eight_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN18_A :: FILTEREN31_16_DIN18_EIGHT_CYCLE) } } # [doc = "Field `FILTEREN31_16_DIN19` reader - Programmable counter length of digital glitch filter for DIN19"]
pub type FILTEREN31_16_DIN19_R = crate :: FieldReader < FILTEREN31_16_DIN19_A > ; # [doc = "Programmable counter length of digital glitch filter for DIN19\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FILTEREN31_16_DIN19_A { # [doc = "0: DISABLE"]
FILTEREN31_16_DIN19_DISABLE = 0 , # [doc = "1: ONE_CYCLE"]
FILTEREN31_16_DIN19_ONE_CYCLE = 1 , # [doc = "2: THREE_CYCLE"]
FILTEREN31_16_DIN19_THREE_CYCLE = 2 , # [doc = "3: EIGHT_CYCLE"]
FILTEREN31_16_DIN19_EIGHT_CYCLE = 3 , } impl From < FILTEREN31_16_DIN19_A > for u8 { # [inline (always)]
fn from (variant : FILTEREN31_16_DIN19_A) -> Self { variant as _ } } impl crate :: FieldSpec for FILTEREN31_16_DIN19_A { type Ux = u8 ; } impl FILTEREN31_16_DIN19_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FILTEREN31_16_DIN19_A { match self . bits { 0 => FILTEREN31_16_DIN19_A :: FILTEREN31_16_DIN19_DISABLE , 1 => FILTEREN31_16_DIN19_A :: FILTEREN31_16_DIN19_ONE_CYCLE , 2 => FILTEREN31_16_DIN19_A :: FILTEREN31_16_DIN19_THREE_CYCLE , 3 => FILTEREN31_16_DIN19_A :: FILTEREN31_16_DIN19_EIGHT_CYCLE , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_filteren31_16_din19_disable (& self) -> bool { * self == FILTEREN31_16_DIN19_A :: FILTEREN31_16_DIN19_DISABLE } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din19_one_cycle (& self) -> bool { * self == FILTEREN31_16_DIN19_A :: FILTEREN31_16_DIN19_ONE_CYCLE } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din19_three_cycle (& self) -> bool { * self == FILTEREN31_16_DIN19_A :: FILTEREN31_16_DIN19_THREE_CYCLE } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din19_eight_cycle (& self) -> bool { * self == FILTEREN31_16_DIN19_A :: FILTEREN31_16_DIN19_EIGHT_CYCLE } } # [doc = "Field `FILTEREN31_16_DIN19` writer - Programmable counter length of digital glitch filter for DIN19"]
pub type FILTEREN31_16_DIN19_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , FILTEREN31_16_DIN19_A > ; impl < 'a , REG , const O : u8 > FILTEREN31_16_DIN19_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn filteren31_16_din19_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN19_A :: FILTEREN31_16_DIN19_DISABLE) } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din19_one_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN19_A :: FILTEREN31_16_DIN19_ONE_CYCLE) } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din19_three_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN19_A :: FILTEREN31_16_DIN19_THREE_CYCLE) } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din19_eight_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN19_A :: FILTEREN31_16_DIN19_EIGHT_CYCLE) } } # [doc = "Field `FILTEREN31_16_DIN20` reader - Programmable counter length of digital glitch filter for DIN20"]
pub type FILTEREN31_16_DIN20_R = crate :: FieldReader < FILTEREN31_16_DIN20_A > ; # [doc = "Programmable counter length of digital glitch filter for DIN20\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FILTEREN31_16_DIN20_A { # [doc = "0: DISABLE"]
FILTEREN31_16_DIN20_DISABLE = 0 , # [doc = "1: ONE_CYCLE"]
FILTEREN31_16_DIN20_ONE_CYCLE = 1 , # [doc = "2: THREE_CYCLE"]
FILTEREN31_16_DIN20_THREE_CYCLE = 2 , # [doc = "3: EIGHT_CYCLE"]
FILTEREN31_16_DIN20_EIGHT_CYCLE = 3 , } impl From < FILTEREN31_16_DIN20_A > for u8 { # [inline (always)]
fn from (variant : FILTEREN31_16_DIN20_A) -> Self { variant as _ } } impl crate :: FieldSpec for FILTEREN31_16_DIN20_A { type Ux = u8 ; } impl FILTEREN31_16_DIN20_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FILTEREN31_16_DIN20_A { match self . bits { 0 => FILTEREN31_16_DIN20_A :: FILTEREN31_16_DIN20_DISABLE , 1 => FILTEREN31_16_DIN20_A :: FILTEREN31_16_DIN20_ONE_CYCLE , 2 => FILTEREN31_16_DIN20_A :: FILTEREN31_16_DIN20_THREE_CYCLE , 3 => FILTEREN31_16_DIN20_A :: FILTEREN31_16_DIN20_EIGHT_CYCLE , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_filteren31_16_din20_disable (& self) -> bool { * self == FILTEREN31_16_DIN20_A :: FILTEREN31_16_DIN20_DISABLE } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din20_one_cycle (& self) -> bool { * self == FILTEREN31_16_DIN20_A :: FILTEREN31_16_DIN20_ONE_CYCLE } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din20_three_cycle (& self) -> bool { * self == FILTEREN31_16_DIN20_A :: FILTEREN31_16_DIN20_THREE_CYCLE } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din20_eight_cycle (& self) -> bool { * self == FILTEREN31_16_DIN20_A :: FILTEREN31_16_DIN20_EIGHT_CYCLE } } # [doc = "Field `FILTEREN31_16_DIN20` writer - Programmable counter length of digital glitch filter for DIN20"]
pub type FILTEREN31_16_DIN20_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , FILTEREN31_16_DIN20_A > ; impl < 'a , REG , const O : u8 > FILTEREN31_16_DIN20_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn filteren31_16_din20_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN20_A :: FILTEREN31_16_DIN20_DISABLE) } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din20_one_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN20_A :: FILTEREN31_16_DIN20_ONE_CYCLE) } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din20_three_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN20_A :: FILTEREN31_16_DIN20_THREE_CYCLE) } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din20_eight_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN20_A :: FILTEREN31_16_DIN20_EIGHT_CYCLE) } } # [doc = "Field `FILTEREN31_16_DIN21` reader - Programmable counter length of digital glitch filter for DIN21"]
pub type FILTEREN31_16_DIN21_R = crate :: FieldReader < FILTEREN31_16_DIN21_A > ; # [doc = "Programmable counter length of digital glitch filter for DIN21\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FILTEREN31_16_DIN21_A { # [doc = "0: DISABLE"]
FILTEREN31_16_DIN21_DISABLE = 0 , # [doc = "1: ONE_CYCLE"]
FILTEREN31_16_DIN21_ONE_CYCLE = 1 , # [doc = "2: THREE_CYCLE"]
FILTEREN31_16_DIN21_THREE_CYCLE = 2 , # [doc = "3: EIGHT_CYCLE"]
FILTEREN31_16_DIN21_EIGHT_CYCLE = 3 , } impl From < FILTEREN31_16_DIN21_A > for u8 { # [inline (always)]
fn from (variant : FILTEREN31_16_DIN21_A) -> Self { variant as _ } } impl crate :: FieldSpec for FILTEREN31_16_DIN21_A { type Ux = u8 ; } impl FILTEREN31_16_DIN21_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FILTEREN31_16_DIN21_A { match self . bits { 0 => FILTEREN31_16_DIN21_A :: FILTEREN31_16_DIN21_DISABLE , 1 => FILTEREN31_16_DIN21_A :: FILTEREN31_16_DIN21_ONE_CYCLE , 2 => FILTEREN31_16_DIN21_A :: FILTEREN31_16_DIN21_THREE_CYCLE , 3 => FILTEREN31_16_DIN21_A :: FILTEREN31_16_DIN21_EIGHT_CYCLE , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_filteren31_16_din21_disable (& self) -> bool { * self == FILTEREN31_16_DIN21_A :: FILTEREN31_16_DIN21_DISABLE } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din21_one_cycle (& self) -> bool { * self == FILTEREN31_16_DIN21_A :: FILTEREN31_16_DIN21_ONE_CYCLE } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din21_three_cycle (& self) -> bool { * self == FILTEREN31_16_DIN21_A :: FILTEREN31_16_DIN21_THREE_CYCLE } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din21_eight_cycle (& self) -> bool { * self == FILTEREN31_16_DIN21_A :: FILTEREN31_16_DIN21_EIGHT_CYCLE } } # [doc = "Field `FILTEREN31_16_DIN21` writer - Programmable counter length of digital glitch filter for DIN21"]
pub type FILTEREN31_16_DIN21_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , FILTEREN31_16_DIN21_A > ; impl < 'a , REG , const O : u8 > FILTEREN31_16_DIN21_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn filteren31_16_din21_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN21_A :: FILTEREN31_16_DIN21_DISABLE) } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din21_one_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN21_A :: FILTEREN31_16_DIN21_ONE_CYCLE) } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din21_three_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN21_A :: FILTEREN31_16_DIN21_THREE_CYCLE) } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din21_eight_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN21_A :: FILTEREN31_16_DIN21_EIGHT_CYCLE) } } # [doc = "Field `FILTEREN31_16_DIN22` reader - Programmable counter length of digital glitch filter for DIN22"]
pub type FILTEREN31_16_DIN22_R = crate :: FieldReader < FILTEREN31_16_DIN22_A > ; # [doc = "Programmable counter length of digital glitch filter for DIN22\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FILTEREN31_16_DIN22_A { # [doc = "0: DISABLE"]
FILTEREN31_16_DIN22_DISABLE = 0 , # [doc = "1: ONE_CYCLE"]
FILTEREN31_16_DIN22_ONE_CYCLE = 1 , # [doc = "2: THREE_CYCLE"]
FILTEREN31_16_DIN22_THREE_CYCLE = 2 , # [doc = "3: EIGHT_CYCLE"]
FILTEREN31_16_DIN22_EIGHT_CYCLE = 3 , } impl From < FILTEREN31_16_DIN22_A > for u8 { # [inline (always)]
fn from (variant : FILTEREN31_16_DIN22_A) -> Self { variant as _ } } impl crate :: FieldSpec for FILTEREN31_16_DIN22_A { type Ux = u8 ; } impl FILTEREN31_16_DIN22_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FILTEREN31_16_DIN22_A { match self . bits { 0 => FILTEREN31_16_DIN22_A :: FILTEREN31_16_DIN22_DISABLE , 1 => FILTEREN31_16_DIN22_A :: FILTEREN31_16_DIN22_ONE_CYCLE , 2 => FILTEREN31_16_DIN22_A :: FILTEREN31_16_DIN22_THREE_CYCLE , 3 => FILTEREN31_16_DIN22_A :: FILTEREN31_16_DIN22_EIGHT_CYCLE , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_filteren31_16_din22_disable (& self) -> bool { * self == FILTEREN31_16_DIN22_A :: FILTEREN31_16_DIN22_DISABLE } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din22_one_cycle (& self) -> bool { * self == FILTEREN31_16_DIN22_A :: FILTEREN31_16_DIN22_ONE_CYCLE } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din22_three_cycle (& self) -> bool { * self == FILTEREN31_16_DIN22_A :: FILTEREN31_16_DIN22_THREE_CYCLE } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din22_eight_cycle (& self) -> bool { * self == FILTEREN31_16_DIN22_A :: FILTEREN31_16_DIN22_EIGHT_CYCLE } } # [doc = "Field `FILTEREN31_16_DIN22` writer - Programmable counter length of digital glitch filter for DIN22"]
pub type FILTEREN31_16_DIN22_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , FILTEREN31_16_DIN22_A > ; impl < 'a , REG , const O : u8 > FILTEREN31_16_DIN22_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn filteren31_16_din22_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN22_A :: FILTEREN31_16_DIN22_DISABLE) } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din22_one_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN22_A :: FILTEREN31_16_DIN22_ONE_CYCLE) } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din22_three_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN22_A :: FILTEREN31_16_DIN22_THREE_CYCLE) } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din22_eight_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN22_A :: FILTEREN31_16_DIN22_EIGHT_CYCLE) } } # [doc = "Field `FILTEREN31_16_DIN23` reader - Programmable counter length of digital glitch filter for DIN23"]
pub type FILTEREN31_16_DIN23_R = crate :: FieldReader < FILTEREN31_16_DIN23_A > ; # [doc = "Programmable counter length of digital glitch filter for DIN23\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FILTEREN31_16_DIN23_A { # [doc = "0: DISABLE"]
FILTEREN31_16_DIN23_DISABLE = 0 , # [doc = "1: ONE_CYCLE"]
FILTEREN31_16_DIN23_ONE_CYCLE = 1 , # [doc = "2: THREE_CYCLE"]
FILTEREN31_16_DIN23_THREE_CYCLE = 2 , # [doc = "3: EIGHT_CYCLE"]
FILTEREN31_16_DIN23_EIGHT_CYCLE = 3 , } impl From < FILTEREN31_16_DIN23_A > for u8 { # [inline (always)]
fn from (variant : FILTEREN31_16_DIN23_A) -> Self { variant as _ } } impl crate :: FieldSpec for FILTEREN31_16_DIN23_A { type Ux = u8 ; } impl FILTEREN31_16_DIN23_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FILTEREN31_16_DIN23_A { match self . bits { 0 => FILTEREN31_16_DIN23_A :: FILTEREN31_16_DIN23_DISABLE , 1 => FILTEREN31_16_DIN23_A :: FILTEREN31_16_DIN23_ONE_CYCLE , 2 => FILTEREN31_16_DIN23_A :: FILTEREN31_16_DIN23_THREE_CYCLE , 3 => FILTEREN31_16_DIN23_A :: FILTEREN31_16_DIN23_EIGHT_CYCLE , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_filteren31_16_din23_disable (& self) -> bool { * self == FILTEREN31_16_DIN23_A :: FILTEREN31_16_DIN23_DISABLE } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din23_one_cycle (& self) -> bool { * self == FILTEREN31_16_DIN23_A :: FILTEREN31_16_DIN23_ONE_CYCLE } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din23_three_cycle (& self) -> bool { * self == FILTEREN31_16_DIN23_A :: FILTEREN31_16_DIN23_THREE_CYCLE } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din23_eight_cycle (& self) -> bool { * self == FILTEREN31_16_DIN23_A :: FILTEREN31_16_DIN23_EIGHT_CYCLE } } # [doc = "Field `FILTEREN31_16_DIN23` writer - Programmable counter length of digital glitch filter for DIN23"]
pub type FILTEREN31_16_DIN23_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , FILTEREN31_16_DIN23_A > ; impl < 'a , REG , const O : u8 > FILTEREN31_16_DIN23_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn filteren31_16_din23_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN23_A :: FILTEREN31_16_DIN23_DISABLE) } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din23_one_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN23_A :: FILTEREN31_16_DIN23_ONE_CYCLE) } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din23_three_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN23_A :: FILTEREN31_16_DIN23_THREE_CYCLE) } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din23_eight_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN23_A :: FILTEREN31_16_DIN23_EIGHT_CYCLE) } } # [doc = "Field `FILTEREN31_16_DIN24` reader - Programmable counter length of digital glitch filter for DIN24"]
pub type FILTEREN31_16_DIN24_R = crate :: FieldReader < FILTEREN31_16_DIN24_A > ; # [doc = "Programmable counter length of digital glitch filter for DIN24\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FILTEREN31_16_DIN24_A { # [doc = "0: DISABLE"]
FILTEREN31_16_DIN24_DISABLE = 0 , # [doc = "1: ONE_CYCLE"]
FILTEREN31_16_DIN24_ONE_CYCLE = 1 , # [doc = "2: THREE_CYCLE"]
FILTEREN31_16_DIN24_THREE_CYCLE = 2 , # [doc = "3: EIGHT_CYCLE"]
FILTEREN31_16_DIN24_EIGHT_CYCLE = 3 , } impl From < FILTEREN31_16_DIN24_A > for u8 { # [inline (always)]
fn from (variant : FILTEREN31_16_DIN24_A) -> Self { variant as _ } } impl crate :: FieldSpec for FILTEREN31_16_DIN24_A { type Ux = u8 ; } impl FILTEREN31_16_DIN24_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FILTEREN31_16_DIN24_A { match self . bits { 0 => FILTEREN31_16_DIN24_A :: FILTEREN31_16_DIN24_DISABLE , 1 => FILTEREN31_16_DIN24_A :: FILTEREN31_16_DIN24_ONE_CYCLE , 2 => FILTEREN31_16_DIN24_A :: FILTEREN31_16_DIN24_THREE_CYCLE , 3 => FILTEREN31_16_DIN24_A :: FILTEREN31_16_DIN24_EIGHT_CYCLE , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_filteren31_16_din24_disable (& self) -> bool { * self == FILTEREN31_16_DIN24_A :: FILTEREN31_16_DIN24_DISABLE } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din24_one_cycle (& self) -> bool { * self == FILTEREN31_16_DIN24_A :: FILTEREN31_16_DIN24_ONE_CYCLE } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din24_three_cycle (& self) -> bool { * self == FILTEREN31_16_DIN24_A :: FILTEREN31_16_DIN24_THREE_CYCLE } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din24_eight_cycle (& self) -> bool { * self == FILTEREN31_16_DIN24_A :: FILTEREN31_16_DIN24_EIGHT_CYCLE } } # [doc = "Field `FILTEREN31_16_DIN24` writer - Programmable counter length of digital glitch filter for DIN24"]
pub type FILTEREN31_16_DIN24_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , FILTEREN31_16_DIN24_A > ; impl < 'a , REG , const O : u8 > FILTEREN31_16_DIN24_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn filteren31_16_din24_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN24_A :: FILTEREN31_16_DIN24_DISABLE) } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din24_one_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN24_A :: FILTEREN31_16_DIN24_ONE_CYCLE) } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din24_three_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN24_A :: FILTEREN31_16_DIN24_THREE_CYCLE) } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din24_eight_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN24_A :: FILTEREN31_16_DIN24_EIGHT_CYCLE) } } # [doc = "Field `FILTEREN31_16_DIN25` reader - Programmable counter length of digital glitch filter for DIN25"]
pub type FILTEREN31_16_DIN25_R = crate :: FieldReader < FILTEREN31_16_DIN25_A > ; # [doc = "Programmable counter length of digital glitch filter for DIN25\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FILTEREN31_16_DIN25_A { # [doc = "0: DISABLE"]
FILTEREN31_16_DIN25_DISABLE = 0 , # [doc = "1: ONE_CYCLE"]
FILTEREN31_16_DIN25_ONE_CYCLE = 1 , # [doc = "2: THREE_CYCLE"]
FILTEREN31_16_DIN25_THREE_CYCLE = 2 , # [doc = "3: EIGHT_CYCLE"]
FILTEREN31_16_DIN25_EIGHT_CYCLE = 3 , } impl From < FILTEREN31_16_DIN25_A > for u8 { # [inline (always)]
fn from (variant : FILTEREN31_16_DIN25_A) -> Self { variant as _ } } impl crate :: FieldSpec for FILTEREN31_16_DIN25_A { type Ux = u8 ; } impl FILTEREN31_16_DIN25_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FILTEREN31_16_DIN25_A { match self . bits { 0 => FILTEREN31_16_DIN25_A :: FILTEREN31_16_DIN25_DISABLE , 1 => FILTEREN31_16_DIN25_A :: FILTEREN31_16_DIN25_ONE_CYCLE , 2 => FILTEREN31_16_DIN25_A :: FILTEREN31_16_DIN25_THREE_CYCLE , 3 => FILTEREN31_16_DIN25_A :: FILTEREN31_16_DIN25_EIGHT_CYCLE , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_filteren31_16_din25_disable (& self) -> bool { * self == FILTEREN31_16_DIN25_A :: FILTEREN31_16_DIN25_DISABLE } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din25_one_cycle (& self) -> bool { * self == FILTEREN31_16_DIN25_A :: FILTEREN31_16_DIN25_ONE_CYCLE } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din25_three_cycle (& self) -> bool { * self == FILTEREN31_16_DIN25_A :: FILTEREN31_16_DIN25_THREE_CYCLE } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din25_eight_cycle (& self) -> bool { * self == FILTEREN31_16_DIN25_A :: FILTEREN31_16_DIN25_EIGHT_CYCLE } } # [doc = "Field `FILTEREN31_16_DIN25` writer - Programmable counter length of digital glitch filter for DIN25"]
pub type FILTEREN31_16_DIN25_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , FILTEREN31_16_DIN25_A > ; impl < 'a , REG , const O : u8 > FILTEREN31_16_DIN25_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn filteren31_16_din25_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN25_A :: FILTEREN31_16_DIN25_DISABLE) } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din25_one_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN25_A :: FILTEREN31_16_DIN25_ONE_CYCLE) } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din25_three_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN25_A :: FILTEREN31_16_DIN25_THREE_CYCLE) } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din25_eight_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN25_A :: FILTEREN31_16_DIN25_EIGHT_CYCLE) } } # [doc = "Field `FILTEREN31_16_DIN26` reader - Programmable counter length of digital glitch filter for DIN26"]
pub type FILTEREN31_16_DIN26_R = crate :: FieldReader < FILTEREN31_16_DIN26_A > ; # [doc = "Programmable counter length of digital glitch filter for DIN26\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FILTEREN31_16_DIN26_A { # [doc = "0: DISABLE"]
FILTEREN31_16_DIN26_DISABLE = 0 , # [doc = "1: ONE_CYCLE"]
FILTEREN31_16_DIN26_ONE_CYCLE = 1 , # [doc = "2: THREE_CYCLE"]
FILTEREN31_16_DIN26_THREE_CYCLE = 2 , # [doc = "3: EIGHT_CYCLE"]
FILTEREN31_16_DIN26_EIGHT_CYCLE = 3 , } impl From < FILTEREN31_16_DIN26_A > for u8 { # [inline (always)]
fn from (variant : FILTEREN31_16_DIN26_A) -> Self { variant as _ } } impl crate :: FieldSpec for FILTEREN31_16_DIN26_A { type Ux = u8 ; } impl FILTEREN31_16_DIN26_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FILTEREN31_16_DIN26_A { match self . bits { 0 => FILTEREN31_16_DIN26_A :: FILTEREN31_16_DIN26_DISABLE , 1 => FILTEREN31_16_DIN26_A :: FILTEREN31_16_DIN26_ONE_CYCLE , 2 => FILTEREN31_16_DIN26_A :: FILTEREN31_16_DIN26_THREE_CYCLE , 3 => FILTEREN31_16_DIN26_A :: FILTEREN31_16_DIN26_EIGHT_CYCLE , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_filteren31_16_din26_disable (& self) -> bool { * self == FILTEREN31_16_DIN26_A :: FILTEREN31_16_DIN26_DISABLE } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din26_one_cycle (& self) -> bool { * self == FILTEREN31_16_DIN26_A :: FILTEREN31_16_DIN26_ONE_CYCLE } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din26_three_cycle (& self) -> bool { * self == FILTEREN31_16_DIN26_A :: FILTEREN31_16_DIN26_THREE_CYCLE } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din26_eight_cycle (& self) -> bool { * self == FILTEREN31_16_DIN26_A :: FILTEREN31_16_DIN26_EIGHT_CYCLE } } # [doc = "Field `FILTEREN31_16_DIN26` writer - Programmable counter length of digital glitch filter for DIN26"]
pub type FILTEREN31_16_DIN26_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , FILTEREN31_16_DIN26_A > ; impl < 'a , REG , const O : u8 > FILTEREN31_16_DIN26_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn filteren31_16_din26_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN26_A :: FILTEREN31_16_DIN26_DISABLE) } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din26_one_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN26_A :: FILTEREN31_16_DIN26_ONE_CYCLE) } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din26_three_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN26_A :: FILTEREN31_16_DIN26_THREE_CYCLE) } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din26_eight_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN26_A :: FILTEREN31_16_DIN26_EIGHT_CYCLE) } } # [doc = "Field `FILTEREN31_16_DIN27` reader - Programmable counter length of digital glitch filter for DIN27"]
pub type FILTEREN31_16_DIN27_R = crate :: FieldReader < FILTEREN31_16_DIN27_A > ; # [doc = "Programmable counter length of digital glitch filter for DIN27\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FILTEREN31_16_DIN27_A { # [doc = "0: DISABLE"]
FILTEREN31_16_DIN27_DISABLE = 0 , # [doc = "1: ONE_CYCLE"]
FILTEREN31_16_DIN27_ONE_CYCLE = 1 , # [doc = "2: THREE_CYCLE"]
FILTEREN31_16_DIN27_THREE_CYCLE = 2 , # [doc = "3: EIGHT_CYCLE"]
FILTEREN31_16_DIN27_EIGHT_CYCLE = 3 , } impl From < FILTEREN31_16_DIN27_A > for u8 { # [inline (always)]
fn from (variant : FILTEREN31_16_DIN27_A) -> Self { variant as _ } } impl crate :: FieldSpec for FILTEREN31_16_DIN27_A { type Ux = u8 ; } impl FILTEREN31_16_DIN27_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FILTEREN31_16_DIN27_A { match self . bits { 0 => FILTEREN31_16_DIN27_A :: FILTEREN31_16_DIN27_DISABLE , 1 => FILTEREN31_16_DIN27_A :: FILTEREN31_16_DIN27_ONE_CYCLE , 2 => FILTEREN31_16_DIN27_A :: FILTEREN31_16_DIN27_THREE_CYCLE , 3 => FILTEREN31_16_DIN27_A :: FILTEREN31_16_DIN27_EIGHT_CYCLE , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_filteren31_16_din27_disable (& self) -> bool { * self == FILTEREN31_16_DIN27_A :: FILTEREN31_16_DIN27_DISABLE } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din27_one_cycle (& self) -> bool { * self == FILTEREN31_16_DIN27_A :: FILTEREN31_16_DIN27_ONE_CYCLE } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din27_three_cycle (& self) -> bool { * self == FILTEREN31_16_DIN27_A :: FILTEREN31_16_DIN27_THREE_CYCLE } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din27_eight_cycle (& self) -> bool { * self == FILTEREN31_16_DIN27_A :: FILTEREN31_16_DIN27_EIGHT_CYCLE } } # [doc = "Field `FILTEREN31_16_DIN27` writer - Programmable counter length of digital glitch filter for DIN27"]
pub type FILTEREN31_16_DIN27_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , FILTEREN31_16_DIN27_A > ; impl < 'a , REG , const O : u8 > FILTEREN31_16_DIN27_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn filteren31_16_din27_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN27_A :: FILTEREN31_16_DIN27_DISABLE) } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din27_one_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN27_A :: FILTEREN31_16_DIN27_ONE_CYCLE) } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din27_three_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN27_A :: FILTEREN31_16_DIN27_THREE_CYCLE) } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din27_eight_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN27_A :: FILTEREN31_16_DIN27_EIGHT_CYCLE) } } # [doc = "Field `FILTEREN31_16_DIN28` reader - Programmable counter length of digital glitch filter for DIN28"]
pub type FILTEREN31_16_DIN28_R = crate :: FieldReader < FILTEREN31_16_DIN28_A > ; # [doc = "Programmable counter length of digital glitch filter for DIN28\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FILTEREN31_16_DIN28_A { # [doc = "0: DISABLE"]
FILTEREN31_16_DIN28_DISABLE = 0 , # [doc = "1: ONE_CYCLE"]
FILTEREN31_16_DIN28_ONE_CYCLE = 1 , # [doc = "2: THREE_CYCLE"]
FILTEREN31_16_DIN28_THREE_CYCLE = 2 , # [doc = "3: EIGHT_CYCLE"]
FILTEREN31_16_DIN28_EIGHT_CYCLE = 3 , } impl From < FILTEREN31_16_DIN28_A > for u8 { # [inline (always)]
fn from (variant : FILTEREN31_16_DIN28_A) -> Self { variant as _ } } impl crate :: FieldSpec for FILTEREN31_16_DIN28_A { type Ux = u8 ; } impl FILTEREN31_16_DIN28_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FILTEREN31_16_DIN28_A { match self . bits { 0 => FILTEREN31_16_DIN28_A :: FILTEREN31_16_DIN28_DISABLE , 1 => FILTEREN31_16_DIN28_A :: FILTEREN31_16_DIN28_ONE_CYCLE , 2 => FILTEREN31_16_DIN28_A :: FILTEREN31_16_DIN28_THREE_CYCLE , 3 => FILTEREN31_16_DIN28_A :: FILTEREN31_16_DIN28_EIGHT_CYCLE , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_filteren31_16_din28_disable (& self) -> bool { * self == FILTEREN31_16_DIN28_A :: FILTEREN31_16_DIN28_DISABLE } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din28_one_cycle (& self) -> bool { * self == FILTEREN31_16_DIN28_A :: FILTEREN31_16_DIN28_ONE_CYCLE } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din28_three_cycle (& self) -> bool { * self == FILTEREN31_16_DIN28_A :: FILTEREN31_16_DIN28_THREE_CYCLE } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din28_eight_cycle (& self) -> bool { * self == FILTEREN31_16_DIN28_A :: FILTEREN31_16_DIN28_EIGHT_CYCLE } } # [doc = "Field `FILTEREN31_16_DIN28` writer - Programmable counter length of digital glitch filter for DIN28"]
pub type FILTEREN31_16_DIN28_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , FILTEREN31_16_DIN28_A > ; impl < 'a , REG , const O : u8 > FILTEREN31_16_DIN28_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn filteren31_16_din28_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN28_A :: FILTEREN31_16_DIN28_DISABLE) } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din28_one_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN28_A :: FILTEREN31_16_DIN28_ONE_CYCLE) } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din28_three_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN28_A :: FILTEREN31_16_DIN28_THREE_CYCLE) } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din28_eight_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN28_A :: FILTEREN31_16_DIN28_EIGHT_CYCLE) } } # [doc = "Field `FILTEREN31_16_DIN29` reader - Programmable counter length of digital glitch filter for DIN29"]
pub type FILTEREN31_16_DIN29_R = crate :: FieldReader < FILTEREN31_16_DIN29_A > ; # [doc = "Programmable counter length of digital glitch filter for DIN29\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FILTEREN31_16_DIN29_A { # [doc = "0: DISABLE"]
FILTEREN31_16_DIN29_DISABLE = 0 , # [doc = "1: ONE_CYCLE"]
FILTEREN31_16_DIN29_ONE_CYCLE = 1 , # [doc = "2: THREE_CYCLE"]
FILTEREN31_16_DIN29_THREE_CYCLE = 2 , # [doc = "3: EIGHT_CYCLE"]
FILTEREN31_16_DIN29_EIGHT_CYCLE = 3 , } impl From < FILTEREN31_16_DIN29_A > for u8 { # [inline (always)]
fn from (variant : FILTEREN31_16_DIN29_A) -> Self { variant as _ } } impl crate :: FieldSpec for FILTEREN31_16_DIN29_A { type Ux = u8 ; } impl FILTEREN31_16_DIN29_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FILTEREN31_16_DIN29_A { match self . bits { 0 => FILTEREN31_16_DIN29_A :: FILTEREN31_16_DIN29_DISABLE , 1 => FILTEREN31_16_DIN29_A :: FILTEREN31_16_DIN29_ONE_CYCLE , 2 => FILTEREN31_16_DIN29_A :: FILTEREN31_16_DIN29_THREE_CYCLE , 3 => FILTEREN31_16_DIN29_A :: FILTEREN31_16_DIN29_EIGHT_CYCLE , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_filteren31_16_din29_disable (& self) -> bool { * self == FILTEREN31_16_DIN29_A :: FILTEREN31_16_DIN29_DISABLE } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din29_one_cycle (& self) -> bool { * self == FILTEREN31_16_DIN29_A :: FILTEREN31_16_DIN29_ONE_CYCLE } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din29_three_cycle (& self) -> bool { * self == FILTEREN31_16_DIN29_A :: FILTEREN31_16_DIN29_THREE_CYCLE } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din29_eight_cycle (& self) -> bool { * self == FILTEREN31_16_DIN29_A :: FILTEREN31_16_DIN29_EIGHT_CYCLE } } # [doc = "Field `FILTEREN31_16_DIN29` writer - Programmable counter length of digital glitch filter for DIN29"]
pub type FILTEREN31_16_DIN29_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , FILTEREN31_16_DIN29_A > ; impl < 'a , REG , const O : u8 > FILTEREN31_16_DIN29_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn filteren31_16_din29_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN29_A :: FILTEREN31_16_DIN29_DISABLE) } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din29_one_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN29_A :: FILTEREN31_16_DIN29_ONE_CYCLE) } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din29_three_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN29_A :: FILTEREN31_16_DIN29_THREE_CYCLE) } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din29_eight_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN29_A :: FILTEREN31_16_DIN29_EIGHT_CYCLE) } } # [doc = "Field `FILTEREN31_16_DIN30` reader - Programmable counter length of digital glitch filter for DIN30"]
pub type FILTEREN31_16_DIN30_R = crate :: FieldReader < FILTEREN31_16_DIN30_A > ; # [doc = "Programmable counter length of digital glitch filter for DIN30\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FILTEREN31_16_DIN30_A { # [doc = "0: DISABLE"]
FILTEREN31_16_DIN30_DISABLE = 0 , # [doc = "1: ONE_CYCLE"]
FILTEREN31_16_DIN30_ONE_CYCLE = 1 , # [doc = "2: THREE_CYCLE"]
FILTEREN31_16_DIN30_THREE_CYCLE = 2 , # [doc = "3: EIGHT_CYCLE"]
FILTEREN31_16_DIN30_EIGHT_CYCLE = 3 , } impl From < FILTEREN31_16_DIN30_A > for u8 { # [inline (always)]
fn from (variant : FILTEREN31_16_DIN30_A) -> Self { variant as _ } } impl crate :: FieldSpec for FILTEREN31_16_DIN30_A { type Ux = u8 ; } impl FILTEREN31_16_DIN30_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FILTEREN31_16_DIN30_A { match self . bits { 0 => FILTEREN31_16_DIN30_A :: FILTEREN31_16_DIN30_DISABLE , 1 => FILTEREN31_16_DIN30_A :: FILTEREN31_16_DIN30_ONE_CYCLE , 2 => FILTEREN31_16_DIN30_A :: FILTEREN31_16_DIN30_THREE_CYCLE , 3 => FILTEREN31_16_DIN30_A :: FILTEREN31_16_DIN30_EIGHT_CYCLE , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_filteren31_16_din30_disable (& self) -> bool { * self == FILTEREN31_16_DIN30_A :: FILTEREN31_16_DIN30_DISABLE } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din30_one_cycle (& self) -> bool { * self == FILTEREN31_16_DIN30_A :: FILTEREN31_16_DIN30_ONE_CYCLE } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din30_three_cycle (& self) -> bool { * self == FILTEREN31_16_DIN30_A :: FILTEREN31_16_DIN30_THREE_CYCLE } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din30_eight_cycle (& self) -> bool { * self == FILTEREN31_16_DIN30_A :: FILTEREN31_16_DIN30_EIGHT_CYCLE } } # [doc = "Field `FILTEREN31_16_DIN30` writer - Programmable counter length of digital glitch filter for DIN30"]
pub type FILTEREN31_16_DIN30_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , FILTEREN31_16_DIN30_A > ; impl < 'a , REG , const O : u8 > FILTEREN31_16_DIN30_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn filteren31_16_din30_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN30_A :: FILTEREN31_16_DIN30_DISABLE) } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din30_one_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN30_A :: FILTEREN31_16_DIN30_ONE_CYCLE) } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din30_three_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN30_A :: FILTEREN31_16_DIN30_THREE_CYCLE) } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din30_eight_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN30_A :: FILTEREN31_16_DIN30_EIGHT_CYCLE) } } # [doc = "Field `FILTEREN31_16_DIN31` reader - Programmable counter length of digital glitch filter for DIN31"]
pub type FILTEREN31_16_DIN31_R = crate :: FieldReader < FILTEREN31_16_DIN31_A > ; # [doc = "Programmable counter length of digital glitch filter for DIN31\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FILTEREN31_16_DIN31_A { # [doc = "0: DISABLE"]
FILTEREN31_16_DIN31_DISABLE = 0 , # [doc = "1: ONE_CYCLE"]
FILTEREN31_16_DIN31_ONE_CYCLE = 1 , # [doc = "2: THREE_CYCLE"]
FILTEREN31_16_DIN31_THREE_CYCLE = 2 , # [doc = "3: EIGHT_CYCLE"]
FILTEREN31_16_DIN31_EIGHT_CYCLE = 3 , } impl From < FILTEREN31_16_DIN31_A > for u8 { # [inline (always)]
fn from (variant : FILTEREN31_16_DIN31_A) -> Self { variant as _ } } impl crate :: FieldSpec for FILTEREN31_16_DIN31_A { type Ux = u8 ; } impl FILTEREN31_16_DIN31_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> FILTEREN31_16_DIN31_A { match self . bits { 0 => FILTEREN31_16_DIN31_A :: FILTEREN31_16_DIN31_DISABLE , 1 => FILTEREN31_16_DIN31_A :: FILTEREN31_16_DIN31_ONE_CYCLE , 2 => FILTEREN31_16_DIN31_A :: FILTEREN31_16_DIN31_THREE_CYCLE , 3 => FILTEREN31_16_DIN31_A :: FILTEREN31_16_DIN31_EIGHT_CYCLE , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_filteren31_16_din31_disable (& self) -> bool { * self == FILTEREN31_16_DIN31_A :: FILTEREN31_16_DIN31_DISABLE } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din31_one_cycle (& self) -> bool { * self == FILTEREN31_16_DIN31_A :: FILTEREN31_16_DIN31_ONE_CYCLE } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din31_three_cycle (& self) -> bool { * self == FILTEREN31_16_DIN31_A :: FILTEREN31_16_DIN31_THREE_CYCLE } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn is_filteren31_16_din31_eight_cycle (& self) -> bool { * self == FILTEREN31_16_DIN31_A :: FILTEREN31_16_DIN31_EIGHT_CYCLE } } # [doc = "Field `FILTEREN31_16_DIN31` writer - Programmable counter length of digital glitch filter for DIN31"]
pub type FILTEREN31_16_DIN31_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , FILTEREN31_16_DIN31_A > ; impl < 'a , REG , const O : u8 > FILTEREN31_16_DIN31_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn filteren31_16_din31_disable (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN31_A :: FILTEREN31_16_DIN31_DISABLE) } # [doc = "ONE_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din31_one_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN31_A :: FILTEREN31_16_DIN31_ONE_CYCLE) } # [doc = "THREE_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din31_three_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN31_A :: FILTEREN31_16_DIN31_THREE_CYCLE) } # [doc = "EIGHT_CYCLE"]
# [inline (always)]
pub fn filteren31_16_din31_eight_cycle (self) -> & 'a mut crate :: W < REG > { self . variant (FILTEREN31_16_DIN31_A :: FILTEREN31_16_DIN31_EIGHT_CYCLE) } } impl R { # [doc = "Bits 0:1 - Programmable counter length of digital glitch filter for DIN16"]
# [inline (always)]
pub fn filteren31_16_din16 (& self) -> FILTEREN31_16_DIN16_R { FILTEREN31_16_DIN16_R :: new ((self . bits & 3) as u8) } # [doc = "Bits 2:3 - Programmable counter length of digital glitch filter for DIN17"]
# [inline (always)]
pub fn filteren31_16_din17 (& self) -> FILTEREN31_16_DIN17_R { FILTEREN31_16_DIN17_R :: new (((self . bits >> 2) & 3) as u8) } # [doc = "Bits 4:5 - Programmable counter length of digital glitch filter for DIN18"]
# [inline (always)]
pub fn filteren31_16_din18 (& self) -> FILTEREN31_16_DIN18_R { FILTEREN31_16_DIN18_R :: new (((self . bits >> 4) & 3) as u8) } # [doc = "Bits 6:7 - Programmable counter length of digital glitch filter for DIN19"]
# [inline (always)]
pub fn filteren31_16_din19 (& self) -> FILTEREN31_16_DIN19_R { FILTEREN31_16_DIN19_R :: new (((self . bits >> 6) & 3) as u8) } # [doc = "Bits 8:9 - Programmable counter length of digital glitch filter for DIN20"]
# [inline (always)]
pub fn filteren31_16_din20 (& self) -> FILTEREN31_16_DIN20_R { FILTEREN31_16_DIN20_R :: new (((self . bits >> 8) & 3) as u8) } # [doc = "Bits 10:11 - Programmable counter length of digital glitch filter for DIN21"]
# [inline (always)]
pub fn filteren31_16_din21 (& self) -> FILTEREN31_16_DIN21_R { FILTEREN31_16_DIN21_R :: new (((self . bits >> 10) & 3) as u8) } # [doc = "Bits 12:13 - Programmable counter length of digital glitch filter for DIN22"]
# [inline (always)]
pub fn filteren31_16_din22 (& self) -> FILTEREN31_16_DIN22_R { FILTEREN31_16_DIN22_R :: new (((self . bits >> 12) & 3) as u8) } # [doc = "Bits 14:15 - Programmable counter length of digital glitch filter for DIN23"]
# [inline (always)]
pub fn filteren31_16_din23 (& self) -> FILTEREN31_16_DIN23_R { FILTEREN31_16_DIN23_R :: new (((self . bits >> 14) & 3) as u8) } # [doc = "Bits 16:17 - Programmable counter length of digital glitch filter for DIN24"]
# [inline (always)]
pub fn filteren31_16_din24 (& self) -> FILTEREN31_16_DIN24_R { FILTEREN31_16_DIN24_R :: new (((self . bits >> 16) & 3) as u8) } # [doc = "Bits 18:19 - Programmable counter length of digital glitch filter for DIN25"]
# [inline (always)]
pub fn filteren31_16_din25 (& self) -> FILTEREN31_16_DIN25_R { FILTEREN31_16_DIN25_R :: new (((self . bits >> 18) & 3) as u8) } # [doc = "Bits 20:21 - Programmable counter length of digital glitch filter for DIN26"]
# [inline (always)]
pub fn filteren31_16_din26 (& self) -> FILTEREN31_16_DIN26_R { FILTEREN31_16_DIN26_R :: new (((self . bits >> 20) & 3) as u8) } # [doc = "Bits 22:23 - Programmable counter length of digital glitch filter for DIN27"]
# [inline (always)]
pub fn filteren31_16_din27 (& self) -> FILTEREN31_16_DIN27_R { FILTEREN31_16_DIN27_R :: new (((self . bits >> 22) & 3) as u8) } # [doc = "Bits 24:25 - Programmable counter length of digital glitch filter for DIN28"]
# [inline (always)]
pub fn filteren31_16_din28 (& self) -> FILTEREN31_16_DIN28_R { FILTEREN31_16_DIN28_R :: new (((self . bits >> 24) & 3) as u8) } # [doc = "Bits 26:27 - Programmable counter length of digital glitch filter for DIN29"]
# [inline (always)]
pub fn filteren31_16_din29 (& self) -> FILTEREN31_16_DIN29_R { FILTEREN31_16_DIN29_R :: new (((self . bits >> 26) & 3) as u8) } # [doc = "Bits 28:29 - Programmable counter length of digital glitch filter for DIN30"]
# [inline (always)]
pub fn filteren31_16_din30 (& self) -> FILTEREN31_16_DIN30_R { FILTEREN31_16_DIN30_R :: new (((self . bits >> 28) & 3) as u8) } # [doc = "Bits 30:31 - Programmable counter length of digital glitch filter for DIN31"]
# [inline (always)]
pub fn filteren31_16_din31 (& self) -> FILTEREN31_16_DIN31_R { FILTEREN31_16_DIN31_R :: new (((self . bits >> 30) & 3) as u8) } } impl W { # [doc = "Bits 0:1 - Programmable counter length of digital glitch filter for DIN16"]
# [inline (always)]
# [must_use]
pub fn filteren31_16_din16 (& mut self) -> FILTEREN31_16_DIN16_W < FILTEREN31_16_SPEC , 0 > { FILTEREN31_16_DIN16_W :: new (self) } # [doc = "Bits 2:3 - Programmable counter length of digital glitch filter for DIN17"]
# [inline (always)]
# [must_use]
pub fn filteren31_16_din17 (& mut self) -> FILTEREN31_16_DIN17_W < FILTEREN31_16_SPEC , 2 > { FILTEREN31_16_DIN17_W :: new (self) } # [doc = "Bits 4:5 - Programmable counter length of digital glitch filter for DIN18"]
# [inline (always)]
# [must_use]
pub fn filteren31_16_din18 (& mut self) -> FILTEREN31_16_DIN18_W < FILTEREN31_16_SPEC , 4 > { FILTEREN31_16_DIN18_W :: new (self) } # [doc = "Bits 6:7 - Programmable counter length of digital glitch filter for DIN19"]
# [inline (always)]
# [must_use]
pub fn filteren31_16_din19 (& mut self) -> FILTEREN31_16_DIN19_W < FILTEREN31_16_SPEC , 6 > { FILTEREN31_16_DIN19_W :: new (self) } # [doc = "Bits 8:9 - Programmable counter length of digital glitch filter for DIN20"]
# [inline (always)]
# [must_use]
pub fn filteren31_16_din20 (& mut self) -> FILTEREN31_16_DIN20_W < FILTEREN31_16_SPEC , 8 > { FILTEREN31_16_DIN20_W :: new (self) } # [doc = "Bits 10:11 - Programmable counter length of digital glitch filter for DIN21"]
# [inline (always)]
# [must_use]
pub fn filteren31_16_din21 (& mut self) -> FILTEREN31_16_DIN21_W < FILTEREN31_16_SPEC , 10 > { FILTEREN31_16_DIN21_W :: new (self) } # [doc = "Bits 12:13 - Programmable counter length of digital glitch filter for DIN22"]
# [inline (always)]
# [must_use]
pub fn filteren31_16_din22 (& mut self) -> FILTEREN31_16_DIN22_W < FILTEREN31_16_SPEC , 12 > { FILTEREN31_16_DIN22_W :: new (self) } # [doc = "Bits 14:15 - Programmable counter length of digital glitch filter for DIN23"]
# [inline (always)]
# [must_use]
pub fn filteren31_16_din23 (& mut self) -> FILTEREN31_16_DIN23_W < FILTEREN31_16_SPEC , 14 > { FILTEREN31_16_DIN23_W :: new (self) } # [doc = "Bits 16:17 - Programmable counter length of digital glitch filter for DIN24"]
# [inline (always)]
# [must_use]
pub fn filteren31_16_din24 (& mut self) -> FILTEREN31_16_DIN24_W < FILTEREN31_16_SPEC , 16 > { FILTEREN31_16_DIN24_W :: new (self) } # [doc = "Bits 18:19 - Programmable counter length of digital glitch filter for DIN25"]
# [inline (always)]
# [must_use]
pub fn filteren31_16_din25 (& mut self) -> FILTEREN31_16_DIN25_W < FILTEREN31_16_SPEC , 18 > { FILTEREN31_16_DIN25_W :: new (self) } # [doc = "Bits 20:21 - Programmable counter length of digital glitch filter for DIN26"]
# [inline (always)]
# [must_use]
pub fn filteren31_16_din26 (& mut self) -> FILTEREN31_16_DIN26_W < FILTEREN31_16_SPEC , 20 > { FILTEREN31_16_DIN26_W :: new (self) } # [doc = "Bits 22:23 - Programmable counter length of digital glitch filter for DIN27"]
# [inline (always)]
# [must_use]
pub fn filteren31_16_din27 (& mut self) -> FILTEREN31_16_DIN27_W < FILTEREN31_16_SPEC , 22 > { FILTEREN31_16_DIN27_W :: new (self) } # [doc = "Bits 24:25 - Programmable counter length of digital glitch filter for DIN28"]
# [inline (always)]
# [must_use]
pub fn filteren31_16_din28 (& mut self) -> FILTEREN31_16_DIN28_W < FILTEREN31_16_SPEC , 24 > { FILTEREN31_16_DIN28_W :: new (self) } # [doc = "Bits 26:27 - Programmable counter length of digital glitch filter for DIN29"]
# [inline (always)]
# [must_use]
pub fn filteren31_16_din29 (& mut self) -> FILTEREN31_16_DIN29_W < FILTEREN31_16_SPEC , 26 > { FILTEREN31_16_DIN29_W :: new (self) } # [doc = "Bits 28:29 - Programmable counter length of digital glitch filter for DIN30"]
# [inline (always)]
# [must_use]
pub fn filteren31_16_din30 (& mut self) -> FILTEREN31_16_DIN30_W < FILTEREN31_16_SPEC , 28 > { FILTEREN31_16_DIN30_W :: new (self) } # [doc = "Bits 30:31 - Programmable counter length of digital glitch filter for DIN31"]
# [inline (always)]
# [must_use]
pub fn filteren31_16_din31 (& mut self) -> FILTEREN31_16_DIN31_W < FILTEREN31_16_SPEC , 30 > { FILTEREN31_16_DIN31_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Filter Enable 31 to 16\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`filteren31_16::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`filteren31_16::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FILTEREN31_16_SPEC ; impl crate :: RegisterSpec for FILTEREN31_16_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`filteren31_16::R`](R) reader structure"]
impl crate :: Readable for FILTEREN31_16_SPEC { } # [doc = "`write(|w| ..)` method takes [`filteren31_16::W`](W) writer structure"]
impl crate :: Writable for FILTEREN31_16_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FILTEREN31_16 to value 0"]
impl crate :: Resettable for FILTEREN31_16_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DMAMASK (rw) register accessor: DMA Write MASK\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`dmamask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dmamask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dmamask`]
module"]
pub type DMAMASK = crate :: Reg < dmamask :: DMAMASK_SPEC > ; # [doc = "DMA Write MASK"]
pub mod dmamask { # [doc = "Register `DMAMASK` reader"]
pub type R = crate :: R < DMAMASK_SPEC > ; # [doc = "Register `DMAMASK` writer"]
pub type W = crate :: W < DMAMASK_SPEC > ; # [doc = "Field `DMAMASK_DOUT0` reader - DMA is allowed to modify DOUT0"]
pub type DMAMASK_DOUT0_R = crate :: BitReader < DMAMASK_DOUT0_A > ; # [doc = "DMA is allowed to modify DOUT0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAMASK_DOUT0_A { # [doc = "0: DISABLE"]
DMAMASK_DOUT0_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAMASK_DOUT0_ENABLE = 1 , } impl From < DMAMASK_DOUT0_A > for bool { # [inline (always)]
fn from (variant : DMAMASK_DOUT0_A) -> Self { variant as u8 != 0 } } impl DMAMASK_DOUT0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAMASK_DOUT0_A { match self . bits { false => DMAMASK_DOUT0_A :: DMAMASK_DOUT0_DISABLE , true => DMAMASK_DOUT0_A :: DMAMASK_DOUT0_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmamask_dout0_disable (& self) -> bool { * self == DMAMASK_DOUT0_A :: DMAMASK_DOUT0_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmamask_dout0_enable (& self) -> bool { * self == DMAMASK_DOUT0_A :: DMAMASK_DOUT0_ENABLE } } # [doc = "Field `DMAMASK_DOUT0` writer - DMA is allowed to modify DOUT0"]
pub type DMAMASK_DOUT0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAMASK_DOUT0_A > ; impl < 'a , REG , const O : u8 > DMAMASK_DOUT0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmamask_dout0_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT0_A :: DMAMASK_DOUT0_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmamask_dout0_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT0_A :: DMAMASK_DOUT0_ENABLE) } } # [doc = "Field `DMAMASK_DOUT1` reader - DMA is allowed to modify DOUT1"]
pub type DMAMASK_DOUT1_R = crate :: BitReader < DMAMASK_DOUT1_A > ; # [doc = "DMA is allowed to modify DOUT1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAMASK_DOUT1_A { # [doc = "0: DISABLE"]
DMAMASK_DOUT1_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAMASK_DOUT1_ENABLE = 1 , } impl From < DMAMASK_DOUT1_A > for bool { # [inline (always)]
fn from (variant : DMAMASK_DOUT1_A) -> Self { variant as u8 != 0 } } impl DMAMASK_DOUT1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAMASK_DOUT1_A { match self . bits { false => DMAMASK_DOUT1_A :: DMAMASK_DOUT1_DISABLE , true => DMAMASK_DOUT1_A :: DMAMASK_DOUT1_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmamask_dout1_disable (& self) -> bool { * self == DMAMASK_DOUT1_A :: DMAMASK_DOUT1_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmamask_dout1_enable (& self) -> bool { * self == DMAMASK_DOUT1_A :: DMAMASK_DOUT1_ENABLE } } # [doc = "Field `DMAMASK_DOUT1` writer - DMA is allowed to modify DOUT1"]
pub type DMAMASK_DOUT1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAMASK_DOUT1_A > ; impl < 'a , REG , const O : u8 > DMAMASK_DOUT1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmamask_dout1_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT1_A :: DMAMASK_DOUT1_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmamask_dout1_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT1_A :: DMAMASK_DOUT1_ENABLE) } } # [doc = "Field `DMAMASK_DOUT2` reader - DMA is allowed to modify DOUT2"]
pub type DMAMASK_DOUT2_R = crate :: BitReader < DMAMASK_DOUT2_A > ; # [doc = "DMA is allowed to modify DOUT2\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAMASK_DOUT2_A { # [doc = "0: DISABLE"]
DMAMASK_DOUT2_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAMASK_DOUT2_ENABLE = 1 , } impl From < DMAMASK_DOUT2_A > for bool { # [inline (always)]
fn from (variant : DMAMASK_DOUT2_A) -> Self { variant as u8 != 0 } } impl DMAMASK_DOUT2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAMASK_DOUT2_A { match self . bits { false => DMAMASK_DOUT2_A :: DMAMASK_DOUT2_DISABLE , true => DMAMASK_DOUT2_A :: DMAMASK_DOUT2_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmamask_dout2_disable (& self) -> bool { * self == DMAMASK_DOUT2_A :: DMAMASK_DOUT2_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmamask_dout2_enable (& self) -> bool { * self == DMAMASK_DOUT2_A :: DMAMASK_DOUT2_ENABLE } } # [doc = "Field `DMAMASK_DOUT2` writer - DMA is allowed to modify DOUT2"]
pub type DMAMASK_DOUT2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAMASK_DOUT2_A > ; impl < 'a , REG , const O : u8 > DMAMASK_DOUT2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmamask_dout2_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT2_A :: DMAMASK_DOUT2_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmamask_dout2_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT2_A :: DMAMASK_DOUT2_ENABLE) } } # [doc = "Field `DMAMASK_DOUT3` reader - DMA is allowed to modify DOUT3"]
pub type DMAMASK_DOUT3_R = crate :: BitReader < DMAMASK_DOUT3_A > ; # [doc = "DMA is allowed to modify DOUT3\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAMASK_DOUT3_A { # [doc = "0: DISABLE"]
DMAMASK_DOUT3_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAMASK_DOUT3_ENABLE = 1 , } impl From < DMAMASK_DOUT3_A > for bool { # [inline (always)]
fn from (variant : DMAMASK_DOUT3_A) -> Self { variant as u8 != 0 } } impl DMAMASK_DOUT3_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAMASK_DOUT3_A { match self . bits { false => DMAMASK_DOUT3_A :: DMAMASK_DOUT3_DISABLE , true => DMAMASK_DOUT3_A :: DMAMASK_DOUT3_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmamask_dout3_disable (& self) -> bool { * self == DMAMASK_DOUT3_A :: DMAMASK_DOUT3_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmamask_dout3_enable (& self) -> bool { * self == DMAMASK_DOUT3_A :: DMAMASK_DOUT3_ENABLE } } # [doc = "Field `DMAMASK_DOUT3` writer - DMA is allowed to modify DOUT3"]
pub type DMAMASK_DOUT3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAMASK_DOUT3_A > ; impl < 'a , REG , const O : u8 > DMAMASK_DOUT3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmamask_dout3_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT3_A :: DMAMASK_DOUT3_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmamask_dout3_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT3_A :: DMAMASK_DOUT3_ENABLE) } } # [doc = "Field `DMAMASK_DOUT4` reader - DMA is allowed to modify DOUT4"]
pub type DMAMASK_DOUT4_R = crate :: BitReader < DMAMASK_DOUT4_A > ; # [doc = "DMA is allowed to modify DOUT4\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAMASK_DOUT4_A { # [doc = "0: DISABLE"]
DMAMASK_DOUT4_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAMASK_DOUT4_ENABLE = 1 , } impl From < DMAMASK_DOUT4_A > for bool { # [inline (always)]
fn from (variant : DMAMASK_DOUT4_A) -> Self { variant as u8 != 0 } } impl DMAMASK_DOUT4_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAMASK_DOUT4_A { match self . bits { false => DMAMASK_DOUT4_A :: DMAMASK_DOUT4_DISABLE , true => DMAMASK_DOUT4_A :: DMAMASK_DOUT4_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmamask_dout4_disable (& self) -> bool { * self == DMAMASK_DOUT4_A :: DMAMASK_DOUT4_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmamask_dout4_enable (& self) -> bool { * self == DMAMASK_DOUT4_A :: DMAMASK_DOUT4_ENABLE } } # [doc = "Field `DMAMASK_DOUT4` writer - DMA is allowed to modify DOUT4"]
pub type DMAMASK_DOUT4_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAMASK_DOUT4_A > ; impl < 'a , REG , const O : u8 > DMAMASK_DOUT4_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmamask_dout4_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT4_A :: DMAMASK_DOUT4_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmamask_dout4_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT4_A :: DMAMASK_DOUT4_ENABLE) } } # [doc = "Field `DMAMASK_DOUT5` reader - DMA is allowed to modify DOUT5"]
pub type DMAMASK_DOUT5_R = crate :: BitReader < DMAMASK_DOUT5_A > ; # [doc = "DMA is allowed to modify DOUT5\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAMASK_DOUT5_A { # [doc = "0: DISABLE"]
DMAMASK_DOUT5_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAMASK_DOUT5_ENABLE = 1 , } impl From < DMAMASK_DOUT5_A > for bool { # [inline (always)]
fn from (variant : DMAMASK_DOUT5_A) -> Self { variant as u8 != 0 } } impl DMAMASK_DOUT5_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAMASK_DOUT5_A { match self . bits { false => DMAMASK_DOUT5_A :: DMAMASK_DOUT5_DISABLE , true => DMAMASK_DOUT5_A :: DMAMASK_DOUT5_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmamask_dout5_disable (& self) -> bool { * self == DMAMASK_DOUT5_A :: DMAMASK_DOUT5_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmamask_dout5_enable (& self) -> bool { * self == DMAMASK_DOUT5_A :: DMAMASK_DOUT5_ENABLE } } # [doc = "Field `DMAMASK_DOUT5` writer - DMA is allowed to modify DOUT5"]
pub type DMAMASK_DOUT5_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAMASK_DOUT5_A > ; impl < 'a , REG , const O : u8 > DMAMASK_DOUT5_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmamask_dout5_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT5_A :: DMAMASK_DOUT5_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmamask_dout5_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT5_A :: DMAMASK_DOUT5_ENABLE) } } # [doc = "Field `DMAMASK_DOUT6` reader - DMA is allowed to modify DOUT6"]
pub type DMAMASK_DOUT6_R = crate :: BitReader < DMAMASK_DOUT6_A > ; # [doc = "DMA is allowed to modify DOUT6\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAMASK_DOUT6_A { # [doc = "0: DISABLE"]
DMAMASK_DOUT6_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAMASK_DOUT6_ENABLE = 1 , } impl From < DMAMASK_DOUT6_A > for bool { # [inline (always)]
fn from (variant : DMAMASK_DOUT6_A) -> Self { variant as u8 != 0 } } impl DMAMASK_DOUT6_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAMASK_DOUT6_A { match self . bits { false => DMAMASK_DOUT6_A :: DMAMASK_DOUT6_DISABLE , true => DMAMASK_DOUT6_A :: DMAMASK_DOUT6_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmamask_dout6_disable (& self) -> bool { * self == DMAMASK_DOUT6_A :: DMAMASK_DOUT6_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmamask_dout6_enable (& self) -> bool { * self == DMAMASK_DOUT6_A :: DMAMASK_DOUT6_ENABLE } } # [doc = "Field `DMAMASK_DOUT6` writer - DMA is allowed to modify DOUT6"]
pub type DMAMASK_DOUT6_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAMASK_DOUT6_A > ; impl < 'a , REG , const O : u8 > DMAMASK_DOUT6_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmamask_dout6_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT6_A :: DMAMASK_DOUT6_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmamask_dout6_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT6_A :: DMAMASK_DOUT6_ENABLE) } } # [doc = "Field `DMAMASK_DOUT7` reader - DMA is allowed to modify DOUT7"]
pub type DMAMASK_DOUT7_R = crate :: BitReader < DMAMASK_DOUT7_A > ; # [doc = "DMA is allowed to modify DOUT7\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAMASK_DOUT7_A { # [doc = "0: DISABLE"]
DMAMASK_DOUT7_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAMASK_DOUT7_ENABLE = 1 , } impl From < DMAMASK_DOUT7_A > for bool { # [inline (always)]
fn from (variant : DMAMASK_DOUT7_A) -> Self { variant as u8 != 0 } } impl DMAMASK_DOUT7_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAMASK_DOUT7_A { match self . bits { false => DMAMASK_DOUT7_A :: DMAMASK_DOUT7_DISABLE , true => DMAMASK_DOUT7_A :: DMAMASK_DOUT7_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmamask_dout7_disable (& self) -> bool { * self == DMAMASK_DOUT7_A :: DMAMASK_DOUT7_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmamask_dout7_enable (& self) -> bool { * self == DMAMASK_DOUT7_A :: DMAMASK_DOUT7_ENABLE } } # [doc = "Field `DMAMASK_DOUT7` writer - DMA is allowed to modify DOUT7"]
pub type DMAMASK_DOUT7_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAMASK_DOUT7_A > ; impl < 'a , REG , const O : u8 > DMAMASK_DOUT7_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmamask_dout7_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT7_A :: DMAMASK_DOUT7_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmamask_dout7_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT7_A :: DMAMASK_DOUT7_ENABLE) } } # [doc = "Field `DMAMASK_DOUT8` reader - DMA is allowed to modify DOUT8"]
pub type DMAMASK_DOUT8_R = crate :: BitReader < DMAMASK_DOUT8_A > ; # [doc = "DMA is allowed to modify DOUT8\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAMASK_DOUT8_A { # [doc = "0: DISABLE"]
DMAMASK_DOUT8_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAMASK_DOUT8_ENABLE = 1 , } impl From < DMAMASK_DOUT8_A > for bool { # [inline (always)]
fn from (variant : DMAMASK_DOUT8_A) -> Self { variant as u8 != 0 } } impl DMAMASK_DOUT8_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAMASK_DOUT8_A { match self . bits { false => DMAMASK_DOUT8_A :: DMAMASK_DOUT8_DISABLE , true => DMAMASK_DOUT8_A :: DMAMASK_DOUT8_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmamask_dout8_disable (& self) -> bool { * self == DMAMASK_DOUT8_A :: DMAMASK_DOUT8_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmamask_dout8_enable (& self) -> bool { * self == DMAMASK_DOUT8_A :: DMAMASK_DOUT8_ENABLE } } # [doc = "Field `DMAMASK_DOUT8` writer - DMA is allowed to modify DOUT8"]
pub type DMAMASK_DOUT8_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAMASK_DOUT8_A > ; impl < 'a , REG , const O : u8 > DMAMASK_DOUT8_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmamask_dout8_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT8_A :: DMAMASK_DOUT8_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmamask_dout8_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT8_A :: DMAMASK_DOUT8_ENABLE) } } # [doc = "Field `DMAMASK_DOUT9` reader - DMA is allowed to modify DOUT9"]
pub type DMAMASK_DOUT9_R = crate :: BitReader < DMAMASK_DOUT9_A > ; # [doc = "DMA is allowed to modify DOUT9\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAMASK_DOUT9_A { # [doc = "0: DISABLE"]
DMAMASK_DOUT9_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAMASK_DOUT9_ENABLE = 1 , } impl From < DMAMASK_DOUT9_A > for bool { # [inline (always)]
fn from (variant : DMAMASK_DOUT9_A) -> Self { variant as u8 != 0 } } impl DMAMASK_DOUT9_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAMASK_DOUT9_A { match self . bits { false => DMAMASK_DOUT9_A :: DMAMASK_DOUT9_DISABLE , true => DMAMASK_DOUT9_A :: DMAMASK_DOUT9_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmamask_dout9_disable (& self) -> bool { * self == DMAMASK_DOUT9_A :: DMAMASK_DOUT9_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmamask_dout9_enable (& self) -> bool { * self == DMAMASK_DOUT9_A :: DMAMASK_DOUT9_ENABLE } } # [doc = "Field `DMAMASK_DOUT9` writer - DMA is allowed to modify DOUT9"]
pub type DMAMASK_DOUT9_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAMASK_DOUT9_A > ; impl < 'a , REG , const O : u8 > DMAMASK_DOUT9_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmamask_dout9_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT9_A :: DMAMASK_DOUT9_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmamask_dout9_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT9_A :: DMAMASK_DOUT9_ENABLE) } } # [doc = "Field `DMAMASK_DOUT10` reader - DMA is allowed to modify DOUT10"]
pub type DMAMASK_DOUT10_R = crate :: BitReader < DMAMASK_DOUT10_A > ; # [doc = "DMA is allowed to modify DOUT10\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAMASK_DOUT10_A { # [doc = "0: DISABLE"]
DMAMASK_DOUT10_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAMASK_DOUT10_ENABLE = 1 , } impl From < DMAMASK_DOUT10_A > for bool { # [inline (always)]
fn from (variant : DMAMASK_DOUT10_A) -> Self { variant as u8 != 0 } } impl DMAMASK_DOUT10_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAMASK_DOUT10_A { match self . bits { false => DMAMASK_DOUT10_A :: DMAMASK_DOUT10_DISABLE , true => DMAMASK_DOUT10_A :: DMAMASK_DOUT10_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmamask_dout10_disable (& self) -> bool { * self == DMAMASK_DOUT10_A :: DMAMASK_DOUT10_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmamask_dout10_enable (& self) -> bool { * self == DMAMASK_DOUT10_A :: DMAMASK_DOUT10_ENABLE } } # [doc = "Field `DMAMASK_DOUT10` writer - DMA is allowed to modify DOUT10"]
pub type DMAMASK_DOUT10_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAMASK_DOUT10_A > ; impl < 'a , REG , const O : u8 > DMAMASK_DOUT10_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmamask_dout10_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT10_A :: DMAMASK_DOUT10_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmamask_dout10_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT10_A :: DMAMASK_DOUT10_ENABLE) } } # [doc = "Field `DMAMASK_DOUT11` reader - DMA is allowed to modify DOUT11"]
pub type DMAMASK_DOUT11_R = crate :: BitReader < DMAMASK_DOUT11_A > ; # [doc = "DMA is allowed to modify DOUT11\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAMASK_DOUT11_A { # [doc = "0: DISABLE"]
DMAMASK_DOUT11_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAMASK_DOUT11_ENABLE = 1 , } impl From < DMAMASK_DOUT11_A > for bool { # [inline (always)]
fn from (variant : DMAMASK_DOUT11_A) -> Self { variant as u8 != 0 } } impl DMAMASK_DOUT11_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAMASK_DOUT11_A { match self . bits { false => DMAMASK_DOUT11_A :: DMAMASK_DOUT11_DISABLE , true => DMAMASK_DOUT11_A :: DMAMASK_DOUT11_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmamask_dout11_disable (& self) -> bool { * self == DMAMASK_DOUT11_A :: DMAMASK_DOUT11_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmamask_dout11_enable (& self) -> bool { * self == DMAMASK_DOUT11_A :: DMAMASK_DOUT11_ENABLE } } # [doc = "Field `DMAMASK_DOUT11` writer - DMA is allowed to modify DOUT11"]
pub type DMAMASK_DOUT11_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAMASK_DOUT11_A > ; impl < 'a , REG , const O : u8 > DMAMASK_DOUT11_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmamask_dout11_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT11_A :: DMAMASK_DOUT11_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmamask_dout11_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT11_A :: DMAMASK_DOUT11_ENABLE) } } # [doc = "Field `DMAMASK_DOUT12` reader - DMA is allowed to modify DOUT12"]
pub type DMAMASK_DOUT12_R = crate :: BitReader < DMAMASK_DOUT12_A > ; # [doc = "DMA is allowed to modify DOUT12\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAMASK_DOUT12_A { # [doc = "0: DISABLE"]
DMAMASK_DOUT12_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAMASK_DOUT12_ENABLE = 1 , } impl From < DMAMASK_DOUT12_A > for bool { # [inline (always)]
fn from (variant : DMAMASK_DOUT12_A) -> Self { variant as u8 != 0 } } impl DMAMASK_DOUT12_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAMASK_DOUT12_A { match self . bits { false => DMAMASK_DOUT12_A :: DMAMASK_DOUT12_DISABLE , true => DMAMASK_DOUT12_A :: DMAMASK_DOUT12_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmamask_dout12_disable (& self) -> bool { * self == DMAMASK_DOUT12_A :: DMAMASK_DOUT12_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmamask_dout12_enable (& self) -> bool { * self == DMAMASK_DOUT12_A :: DMAMASK_DOUT12_ENABLE } } # [doc = "Field `DMAMASK_DOUT12` writer - DMA is allowed to modify DOUT12"]
pub type DMAMASK_DOUT12_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAMASK_DOUT12_A > ; impl < 'a , REG , const O : u8 > DMAMASK_DOUT12_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmamask_dout12_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT12_A :: DMAMASK_DOUT12_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmamask_dout12_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT12_A :: DMAMASK_DOUT12_ENABLE) } } # [doc = "Field `DMAMASK_DOUT13` reader - DMA is allowed to modify DOUT13"]
pub type DMAMASK_DOUT13_R = crate :: BitReader < DMAMASK_DOUT13_A > ; # [doc = "DMA is allowed to modify DOUT13\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAMASK_DOUT13_A { # [doc = "0: DISABLE"]
DMAMASK_DOUT13_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAMASK_DOUT13_ENABLE = 1 , } impl From < DMAMASK_DOUT13_A > for bool { # [inline (always)]
fn from (variant : DMAMASK_DOUT13_A) -> Self { variant as u8 != 0 } } impl DMAMASK_DOUT13_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAMASK_DOUT13_A { match self . bits { false => DMAMASK_DOUT13_A :: DMAMASK_DOUT13_DISABLE , true => DMAMASK_DOUT13_A :: DMAMASK_DOUT13_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmamask_dout13_disable (& self) -> bool { * self == DMAMASK_DOUT13_A :: DMAMASK_DOUT13_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmamask_dout13_enable (& self) -> bool { * self == DMAMASK_DOUT13_A :: DMAMASK_DOUT13_ENABLE } } # [doc = "Field `DMAMASK_DOUT13` writer - DMA is allowed to modify DOUT13"]
pub type DMAMASK_DOUT13_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAMASK_DOUT13_A > ; impl < 'a , REG , const O : u8 > DMAMASK_DOUT13_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmamask_dout13_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT13_A :: DMAMASK_DOUT13_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmamask_dout13_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT13_A :: DMAMASK_DOUT13_ENABLE) } } # [doc = "Field `DMAMASK_DOUT14` reader - DMA is allowed to modify DOUT14"]
pub type DMAMASK_DOUT14_R = crate :: BitReader < DMAMASK_DOUT14_A > ; # [doc = "DMA is allowed to modify DOUT14\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAMASK_DOUT14_A { # [doc = "0: DISABLE"]
DMAMASK_DOUT14_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAMASK_DOUT14_ENABLE = 1 , } impl From < DMAMASK_DOUT14_A > for bool { # [inline (always)]
fn from (variant : DMAMASK_DOUT14_A) -> Self { variant as u8 != 0 } } impl DMAMASK_DOUT14_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAMASK_DOUT14_A { match self . bits { false => DMAMASK_DOUT14_A :: DMAMASK_DOUT14_DISABLE , true => DMAMASK_DOUT14_A :: DMAMASK_DOUT14_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmamask_dout14_disable (& self) -> bool { * self == DMAMASK_DOUT14_A :: DMAMASK_DOUT14_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmamask_dout14_enable (& self) -> bool { * self == DMAMASK_DOUT14_A :: DMAMASK_DOUT14_ENABLE } } # [doc = "Field `DMAMASK_DOUT14` writer - DMA is allowed to modify DOUT14"]
pub type DMAMASK_DOUT14_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAMASK_DOUT14_A > ; impl < 'a , REG , const O : u8 > DMAMASK_DOUT14_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmamask_dout14_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT14_A :: DMAMASK_DOUT14_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmamask_dout14_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT14_A :: DMAMASK_DOUT14_ENABLE) } } # [doc = "Field `DMAMASK_DOUT15` reader - DMA is allowed to modify DOUT15"]
pub type DMAMASK_DOUT15_R = crate :: BitReader < DMAMASK_DOUT15_A > ; # [doc = "DMA is allowed to modify DOUT15\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAMASK_DOUT15_A { # [doc = "0: DISABLE"]
DMAMASK_DOUT15_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAMASK_DOUT15_ENABLE = 1 , } impl From < DMAMASK_DOUT15_A > for bool { # [inline (always)]
fn from (variant : DMAMASK_DOUT15_A) -> Self { variant as u8 != 0 } } impl DMAMASK_DOUT15_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAMASK_DOUT15_A { match self . bits { false => DMAMASK_DOUT15_A :: DMAMASK_DOUT15_DISABLE , true => DMAMASK_DOUT15_A :: DMAMASK_DOUT15_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmamask_dout15_disable (& self) -> bool { * self == DMAMASK_DOUT15_A :: DMAMASK_DOUT15_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmamask_dout15_enable (& self) -> bool { * self == DMAMASK_DOUT15_A :: DMAMASK_DOUT15_ENABLE } } # [doc = "Field `DMAMASK_DOUT15` writer - DMA is allowed to modify DOUT15"]
pub type DMAMASK_DOUT15_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAMASK_DOUT15_A > ; impl < 'a , REG , const O : u8 > DMAMASK_DOUT15_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmamask_dout15_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT15_A :: DMAMASK_DOUT15_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmamask_dout15_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT15_A :: DMAMASK_DOUT15_ENABLE) } } # [doc = "Field `DMAMASK_DOUT16` reader - DMA is allowed to modify DOUT16"]
pub type DMAMASK_DOUT16_R = crate :: BitReader < DMAMASK_DOUT16_A > ; # [doc = "DMA is allowed to modify DOUT16\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAMASK_DOUT16_A { # [doc = "0: DISABLE"]
DMAMASK_DOUT16_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAMASK_DOUT16_ENABLE = 1 , } impl From < DMAMASK_DOUT16_A > for bool { # [inline (always)]
fn from (variant : DMAMASK_DOUT16_A) -> Self { variant as u8 != 0 } } impl DMAMASK_DOUT16_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAMASK_DOUT16_A { match self . bits { false => DMAMASK_DOUT16_A :: DMAMASK_DOUT16_DISABLE , true => DMAMASK_DOUT16_A :: DMAMASK_DOUT16_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmamask_dout16_disable (& self) -> bool { * self == DMAMASK_DOUT16_A :: DMAMASK_DOUT16_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmamask_dout16_enable (& self) -> bool { * self == DMAMASK_DOUT16_A :: DMAMASK_DOUT16_ENABLE } } # [doc = "Field `DMAMASK_DOUT16` writer - DMA is allowed to modify DOUT16"]
pub type DMAMASK_DOUT16_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAMASK_DOUT16_A > ; impl < 'a , REG , const O : u8 > DMAMASK_DOUT16_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmamask_dout16_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT16_A :: DMAMASK_DOUT16_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmamask_dout16_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT16_A :: DMAMASK_DOUT16_ENABLE) } } # [doc = "Field `DMAMASK_DOUT17` reader - DMA is allowed to modify DOUT17"]
pub type DMAMASK_DOUT17_R = crate :: BitReader < DMAMASK_DOUT17_A > ; # [doc = "DMA is allowed to modify DOUT17\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAMASK_DOUT17_A { # [doc = "0: DISABLE"]
DMAMASK_DOUT17_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAMASK_DOUT17_ENABLE = 1 , } impl From < DMAMASK_DOUT17_A > for bool { # [inline (always)]
fn from (variant : DMAMASK_DOUT17_A) -> Self { variant as u8 != 0 } } impl DMAMASK_DOUT17_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAMASK_DOUT17_A { match self . bits { false => DMAMASK_DOUT17_A :: DMAMASK_DOUT17_DISABLE , true => DMAMASK_DOUT17_A :: DMAMASK_DOUT17_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmamask_dout17_disable (& self) -> bool { * self == DMAMASK_DOUT17_A :: DMAMASK_DOUT17_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmamask_dout17_enable (& self) -> bool { * self == DMAMASK_DOUT17_A :: DMAMASK_DOUT17_ENABLE } } # [doc = "Field `DMAMASK_DOUT17` writer - DMA is allowed to modify DOUT17"]
pub type DMAMASK_DOUT17_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAMASK_DOUT17_A > ; impl < 'a , REG , const O : u8 > DMAMASK_DOUT17_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmamask_dout17_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT17_A :: DMAMASK_DOUT17_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmamask_dout17_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT17_A :: DMAMASK_DOUT17_ENABLE) } } # [doc = "Field `DMAMASK_DOUT18` reader - DMA is allowed to modify DOUT18"]
pub type DMAMASK_DOUT18_R = crate :: BitReader < DMAMASK_DOUT18_A > ; # [doc = "DMA is allowed to modify DOUT18\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAMASK_DOUT18_A { # [doc = "0: DISABLE"]
DMAMASK_DOUT18_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAMASK_DOUT18_ENABLE = 1 , } impl From < DMAMASK_DOUT18_A > for bool { # [inline (always)]
fn from (variant : DMAMASK_DOUT18_A) -> Self { variant as u8 != 0 } } impl DMAMASK_DOUT18_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAMASK_DOUT18_A { match self . bits { false => DMAMASK_DOUT18_A :: DMAMASK_DOUT18_DISABLE , true => DMAMASK_DOUT18_A :: DMAMASK_DOUT18_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmamask_dout18_disable (& self) -> bool { * self == DMAMASK_DOUT18_A :: DMAMASK_DOUT18_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmamask_dout18_enable (& self) -> bool { * self == DMAMASK_DOUT18_A :: DMAMASK_DOUT18_ENABLE } } # [doc = "Field `DMAMASK_DOUT18` writer - DMA is allowed to modify DOUT18"]
pub type DMAMASK_DOUT18_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAMASK_DOUT18_A > ; impl < 'a , REG , const O : u8 > DMAMASK_DOUT18_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmamask_dout18_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT18_A :: DMAMASK_DOUT18_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmamask_dout18_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT18_A :: DMAMASK_DOUT18_ENABLE) } } # [doc = "Field `DMAMASK_DOUT19` reader - DMA is allowed to modify DOUT19"]
pub type DMAMASK_DOUT19_R = crate :: BitReader < DMAMASK_DOUT19_A > ; # [doc = "DMA is allowed to modify DOUT19\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAMASK_DOUT19_A { # [doc = "0: DISABLE"]
DMAMASK_DOUT19_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAMASK_DOUT19_ENABLE = 1 , } impl From < DMAMASK_DOUT19_A > for bool { # [inline (always)]
fn from (variant : DMAMASK_DOUT19_A) -> Self { variant as u8 != 0 } } impl DMAMASK_DOUT19_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAMASK_DOUT19_A { match self . bits { false => DMAMASK_DOUT19_A :: DMAMASK_DOUT19_DISABLE , true => DMAMASK_DOUT19_A :: DMAMASK_DOUT19_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmamask_dout19_disable (& self) -> bool { * self == DMAMASK_DOUT19_A :: DMAMASK_DOUT19_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmamask_dout19_enable (& self) -> bool { * self == DMAMASK_DOUT19_A :: DMAMASK_DOUT19_ENABLE } } # [doc = "Field `DMAMASK_DOUT19` writer - DMA is allowed to modify DOUT19"]
pub type DMAMASK_DOUT19_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAMASK_DOUT19_A > ; impl < 'a , REG , const O : u8 > DMAMASK_DOUT19_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmamask_dout19_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT19_A :: DMAMASK_DOUT19_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmamask_dout19_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT19_A :: DMAMASK_DOUT19_ENABLE) } } # [doc = "Field `DMAMASK_DOUT20` reader - DMA is allowed to modify DOUT20"]
pub type DMAMASK_DOUT20_R = crate :: BitReader < DMAMASK_DOUT20_A > ; # [doc = "DMA is allowed to modify DOUT20\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAMASK_DOUT20_A { # [doc = "0: DISABLE"]
DMAMASK_DOUT20_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAMASK_DOUT20_ENABLE = 1 , } impl From < DMAMASK_DOUT20_A > for bool { # [inline (always)]
fn from (variant : DMAMASK_DOUT20_A) -> Self { variant as u8 != 0 } } impl DMAMASK_DOUT20_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAMASK_DOUT20_A { match self . bits { false => DMAMASK_DOUT20_A :: DMAMASK_DOUT20_DISABLE , true => DMAMASK_DOUT20_A :: DMAMASK_DOUT20_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmamask_dout20_disable (& self) -> bool { * self == DMAMASK_DOUT20_A :: DMAMASK_DOUT20_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmamask_dout20_enable (& self) -> bool { * self == DMAMASK_DOUT20_A :: DMAMASK_DOUT20_ENABLE } } # [doc = "Field `DMAMASK_DOUT20` writer - DMA is allowed to modify DOUT20"]
pub type DMAMASK_DOUT20_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAMASK_DOUT20_A > ; impl < 'a , REG , const O : u8 > DMAMASK_DOUT20_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmamask_dout20_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT20_A :: DMAMASK_DOUT20_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmamask_dout20_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT20_A :: DMAMASK_DOUT20_ENABLE) } } # [doc = "Field `DMAMASK_DOUT21` reader - DMA is allowed to modify DOUT21"]
pub type DMAMASK_DOUT21_R = crate :: BitReader < DMAMASK_DOUT21_A > ; # [doc = "DMA is allowed to modify DOUT21\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAMASK_DOUT21_A { # [doc = "0: DISABLE"]
DMAMASK_DOUT21_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAMASK_DOUT21_ENABLE = 1 , } impl From < DMAMASK_DOUT21_A > for bool { # [inline (always)]
fn from (variant : DMAMASK_DOUT21_A) -> Self { variant as u8 != 0 } } impl DMAMASK_DOUT21_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAMASK_DOUT21_A { match self . bits { false => DMAMASK_DOUT21_A :: DMAMASK_DOUT21_DISABLE , true => DMAMASK_DOUT21_A :: DMAMASK_DOUT21_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmamask_dout21_disable (& self) -> bool { * self == DMAMASK_DOUT21_A :: DMAMASK_DOUT21_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmamask_dout21_enable (& self) -> bool { * self == DMAMASK_DOUT21_A :: DMAMASK_DOUT21_ENABLE } } # [doc = "Field `DMAMASK_DOUT21` writer - DMA is allowed to modify DOUT21"]
pub type DMAMASK_DOUT21_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAMASK_DOUT21_A > ; impl < 'a , REG , const O : u8 > DMAMASK_DOUT21_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmamask_dout21_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT21_A :: DMAMASK_DOUT21_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmamask_dout21_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT21_A :: DMAMASK_DOUT21_ENABLE) } } # [doc = "Field `DMAMASK_DOUT22` reader - DMA is allowed to modify DOUT22"]
pub type DMAMASK_DOUT22_R = crate :: BitReader < DMAMASK_DOUT22_A > ; # [doc = "DMA is allowed to modify DOUT22\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAMASK_DOUT22_A { # [doc = "0: DISABLE"]
DMAMASK_DOUT22_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAMASK_DOUT22_ENABLE = 1 , } impl From < DMAMASK_DOUT22_A > for bool { # [inline (always)]
fn from (variant : DMAMASK_DOUT22_A) -> Self { variant as u8 != 0 } } impl DMAMASK_DOUT22_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAMASK_DOUT22_A { match self . bits { false => DMAMASK_DOUT22_A :: DMAMASK_DOUT22_DISABLE , true => DMAMASK_DOUT22_A :: DMAMASK_DOUT22_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmamask_dout22_disable (& self) -> bool { * self == DMAMASK_DOUT22_A :: DMAMASK_DOUT22_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmamask_dout22_enable (& self) -> bool { * self == DMAMASK_DOUT22_A :: DMAMASK_DOUT22_ENABLE } } # [doc = "Field `DMAMASK_DOUT22` writer - DMA is allowed to modify DOUT22"]
pub type DMAMASK_DOUT22_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAMASK_DOUT22_A > ; impl < 'a , REG , const O : u8 > DMAMASK_DOUT22_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmamask_dout22_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT22_A :: DMAMASK_DOUT22_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmamask_dout22_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT22_A :: DMAMASK_DOUT22_ENABLE) } } # [doc = "Field `DMAMASK_DOUT23` reader - DMA is allowed to modify DOUT23"]
pub type DMAMASK_DOUT23_R = crate :: BitReader < DMAMASK_DOUT23_A > ; # [doc = "DMA is allowed to modify DOUT23\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAMASK_DOUT23_A { # [doc = "0: DISABLE"]
DMAMASK_DOUT23_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAMASK_DOUT23_ENABLE = 1 , } impl From < DMAMASK_DOUT23_A > for bool { # [inline (always)]
fn from (variant : DMAMASK_DOUT23_A) -> Self { variant as u8 != 0 } } impl DMAMASK_DOUT23_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAMASK_DOUT23_A { match self . bits { false => DMAMASK_DOUT23_A :: DMAMASK_DOUT23_DISABLE , true => DMAMASK_DOUT23_A :: DMAMASK_DOUT23_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmamask_dout23_disable (& self) -> bool { * self == DMAMASK_DOUT23_A :: DMAMASK_DOUT23_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmamask_dout23_enable (& self) -> bool { * self == DMAMASK_DOUT23_A :: DMAMASK_DOUT23_ENABLE } } # [doc = "Field `DMAMASK_DOUT23` writer - DMA is allowed to modify DOUT23"]
pub type DMAMASK_DOUT23_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAMASK_DOUT23_A > ; impl < 'a , REG , const O : u8 > DMAMASK_DOUT23_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmamask_dout23_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT23_A :: DMAMASK_DOUT23_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmamask_dout23_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT23_A :: DMAMASK_DOUT23_ENABLE) } } # [doc = "Field `DMAMASK_DOUT24` reader - DMA is allowed to modify DOUT24"]
pub type DMAMASK_DOUT24_R = crate :: BitReader < DMAMASK_DOUT24_A > ; # [doc = "DMA is allowed to modify DOUT24\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAMASK_DOUT24_A { # [doc = "0: DISABLE"]
DMAMASK_DOUT24_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAMASK_DOUT24_ENABLE = 1 , } impl From < DMAMASK_DOUT24_A > for bool { # [inline (always)]
fn from (variant : DMAMASK_DOUT24_A) -> Self { variant as u8 != 0 } } impl DMAMASK_DOUT24_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAMASK_DOUT24_A { match self . bits { false => DMAMASK_DOUT24_A :: DMAMASK_DOUT24_DISABLE , true => DMAMASK_DOUT24_A :: DMAMASK_DOUT24_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmamask_dout24_disable (& self) -> bool { * self == DMAMASK_DOUT24_A :: DMAMASK_DOUT24_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmamask_dout24_enable (& self) -> bool { * self == DMAMASK_DOUT24_A :: DMAMASK_DOUT24_ENABLE } } # [doc = "Field `DMAMASK_DOUT24` writer - DMA is allowed to modify DOUT24"]
pub type DMAMASK_DOUT24_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAMASK_DOUT24_A > ; impl < 'a , REG , const O : u8 > DMAMASK_DOUT24_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmamask_dout24_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT24_A :: DMAMASK_DOUT24_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmamask_dout24_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT24_A :: DMAMASK_DOUT24_ENABLE) } } # [doc = "Field `DMAMASK_DOUT25` reader - DMA is allowed to modify DOUT25"]
pub type DMAMASK_DOUT25_R = crate :: BitReader < DMAMASK_DOUT25_A > ; # [doc = "DMA is allowed to modify DOUT25\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAMASK_DOUT25_A { # [doc = "0: DISABLE"]
DMAMASK_DOUT25_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAMASK_DOUT25_ENABLE = 1 , } impl From < DMAMASK_DOUT25_A > for bool { # [inline (always)]
fn from (variant : DMAMASK_DOUT25_A) -> Self { variant as u8 != 0 } } impl DMAMASK_DOUT25_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAMASK_DOUT25_A { match self . bits { false => DMAMASK_DOUT25_A :: DMAMASK_DOUT25_DISABLE , true => DMAMASK_DOUT25_A :: DMAMASK_DOUT25_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmamask_dout25_disable (& self) -> bool { * self == DMAMASK_DOUT25_A :: DMAMASK_DOUT25_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmamask_dout25_enable (& self) -> bool { * self == DMAMASK_DOUT25_A :: DMAMASK_DOUT25_ENABLE } } # [doc = "Field `DMAMASK_DOUT25` writer - DMA is allowed to modify DOUT25"]
pub type DMAMASK_DOUT25_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAMASK_DOUT25_A > ; impl < 'a , REG , const O : u8 > DMAMASK_DOUT25_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmamask_dout25_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT25_A :: DMAMASK_DOUT25_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmamask_dout25_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT25_A :: DMAMASK_DOUT25_ENABLE) } } # [doc = "Field `DMAMASK_DOUT26` reader - DMA is allowed to modify DOUT26"]
pub type DMAMASK_DOUT26_R = crate :: BitReader < DMAMASK_DOUT26_A > ; # [doc = "DMA is allowed to modify DOUT26\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAMASK_DOUT26_A { # [doc = "0: DISABLE"]
DMAMASK_DOUT26_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAMASK_DOUT26_ENABLE = 1 , } impl From < DMAMASK_DOUT26_A > for bool { # [inline (always)]
fn from (variant : DMAMASK_DOUT26_A) -> Self { variant as u8 != 0 } } impl DMAMASK_DOUT26_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAMASK_DOUT26_A { match self . bits { false => DMAMASK_DOUT26_A :: DMAMASK_DOUT26_DISABLE , true => DMAMASK_DOUT26_A :: DMAMASK_DOUT26_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmamask_dout26_disable (& self) -> bool { * self == DMAMASK_DOUT26_A :: DMAMASK_DOUT26_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmamask_dout26_enable (& self) -> bool { * self == DMAMASK_DOUT26_A :: DMAMASK_DOUT26_ENABLE } } # [doc = "Field `DMAMASK_DOUT26` writer - DMA is allowed to modify DOUT26"]
pub type DMAMASK_DOUT26_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAMASK_DOUT26_A > ; impl < 'a , REG , const O : u8 > DMAMASK_DOUT26_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmamask_dout26_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT26_A :: DMAMASK_DOUT26_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmamask_dout26_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT26_A :: DMAMASK_DOUT26_ENABLE) } } # [doc = "Field `DMAMASK_DOUT27` reader - DMA is allowed to modify DOUT27"]
pub type DMAMASK_DOUT27_R = crate :: BitReader < DMAMASK_DOUT27_A > ; # [doc = "DMA is allowed to modify DOUT27\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAMASK_DOUT27_A { # [doc = "0: DISABLE"]
DMAMASK_DOUT27_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAMASK_DOUT27_ENABLE = 1 , } impl From < DMAMASK_DOUT27_A > for bool { # [inline (always)]
fn from (variant : DMAMASK_DOUT27_A) -> Self { variant as u8 != 0 } } impl DMAMASK_DOUT27_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAMASK_DOUT27_A { match self . bits { false => DMAMASK_DOUT27_A :: DMAMASK_DOUT27_DISABLE , true => DMAMASK_DOUT27_A :: DMAMASK_DOUT27_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmamask_dout27_disable (& self) -> bool { * self == DMAMASK_DOUT27_A :: DMAMASK_DOUT27_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmamask_dout27_enable (& self) -> bool { * self == DMAMASK_DOUT27_A :: DMAMASK_DOUT27_ENABLE } } # [doc = "Field `DMAMASK_DOUT27` writer - DMA is allowed to modify DOUT27"]
pub type DMAMASK_DOUT27_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAMASK_DOUT27_A > ; impl < 'a , REG , const O : u8 > DMAMASK_DOUT27_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmamask_dout27_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT27_A :: DMAMASK_DOUT27_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmamask_dout27_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT27_A :: DMAMASK_DOUT27_ENABLE) } } # [doc = "Field `DMAMASK_DOUT28` reader - DMA is allowed to modify DOUT28"]
pub type DMAMASK_DOUT28_R = crate :: BitReader < DMAMASK_DOUT28_A > ; # [doc = "DMA is allowed to modify DOUT28\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAMASK_DOUT28_A { # [doc = "0: DISABLE"]
DMAMASK_DOUT28_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAMASK_DOUT28_ENABLE = 1 , } impl From < DMAMASK_DOUT28_A > for bool { # [inline (always)]
fn from (variant : DMAMASK_DOUT28_A) -> Self { variant as u8 != 0 } } impl DMAMASK_DOUT28_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAMASK_DOUT28_A { match self . bits { false => DMAMASK_DOUT28_A :: DMAMASK_DOUT28_DISABLE , true => DMAMASK_DOUT28_A :: DMAMASK_DOUT28_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmamask_dout28_disable (& self) -> bool { * self == DMAMASK_DOUT28_A :: DMAMASK_DOUT28_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmamask_dout28_enable (& self) -> bool { * self == DMAMASK_DOUT28_A :: DMAMASK_DOUT28_ENABLE } } # [doc = "Field `DMAMASK_DOUT28` writer - DMA is allowed to modify DOUT28"]
pub type DMAMASK_DOUT28_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAMASK_DOUT28_A > ; impl < 'a , REG , const O : u8 > DMAMASK_DOUT28_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmamask_dout28_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT28_A :: DMAMASK_DOUT28_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmamask_dout28_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT28_A :: DMAMASK_DOUT28_ENABLE) } } # [doc = "Field `DMAMASK_DOUT29` reader - DMA is allowed to modify DOUT29"]
pub type DMAMASK_DOUT29_R = crate :: BitReader < DMAMASK_DOUT29_A > ; # [doc = "DMA is allowed to modify DOUT29\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAMASK_DOUT29_A { # [doc = "0: DISABLE"]
DMAMASK_DOUT29_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAMASK_DOUT29_ENABLE = 1 , } impl From < DMAMASK_DOUT29_A > for bool { # [inline (always)]
fn from (variant : DMAMASK_DOUT29_A) -> Self { variant as u8 != 0 } } impl DMAMASK_DOUT29_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAMASK_DOUT29_A { match self . bits { false => DMAMASK_DOUT29_A :: DMAMASK_DOUT29_DISABLE , true => DMAMASK_DOUT29_A :: DMAMASK_DOUT29_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmamask_dout29_disable (& self) -> bool { * self == DMAMASK_DOUT29_A :: DMAMASK_DOUT29_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmamask_dout29_enable (& self) -> bool { * self == DMAMASK_DOUT29_A :: DMAMASK_DOUT29_ENABLE } } # [doc = "Field `DMAMASK_DOUT29` writer - DMA is allowed to modify DOUT29"]
pub type DMAMASK_DOUT29_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAMASK_DOUT29_A > ; impl < 'a , REG , const O : u8 > DMAMASK_DOUT29_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmamask_dout29_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT29_A :: DMAMASK_DOUT29_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmamask_dout29_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT29_A :: DMAMASK_DOUT29_ENABLE) } } # [doc = "Field `DMAMASK_DOUT30` reader - DMA is allowed to modify DOUT30"]
pub type DMAMASK_DOUT30_R = crate :: BitReader < DMAMASK_DOUT30_A > ; # [doc = "DMA is allowed to modify DOUT30\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAMASK_DOUT30_A { # [doc = "0: DISABLE"]
DMAMASK_DOUT30_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAMASK_DOUT30_ENABLE = 1 , } impl From < DMAMASK_DOUT30_A > for bool { # [inline (always)]
fn from (variant : DMAMASK_DOUT30_A) -> Self { variant as u8 != 0 } } impl DMAMASK_DOUT30_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAMASK_DOUT30_A { match self . bits { false => DMAMASK_DOUT30_A :: DMAMASK_DOUT30_DISABLE , true => DMAMASK_DOUT30_A :: DMAMASK_DOUT30_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmamask_dout30_disable (& self) -> bool { * self == DMAMASK_DOUT30_A :: DMAMASK_DOUT30_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmamask_dout30_enable (& self) -> bool { * self == DMAMASK_DOUT30_A :: DMAMASK_DOUT30_ENABLE } } # [doc = "Field `DMAMASK_DOUT30` writer - DMA is allowed to modify DOUT30"]
pub type DMAMASK_DOUT30_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAMASK_DOUT30_A > ; impl < 'a , REG , const O : u8 > DMAMASK_DOUT30_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmamask_dout30_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT30_A :: DMAMASK_DOUT30_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmamask_dout30_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT30_A :: DMAMASK_DOUT30_ENABLE) } } # [doc = "Field `DMAMASK_DOUT31` reader - DMA is allowed to modify DOUT31"]
pub type DMAMASK_DOUT31_R = crate :: BitReader < DMAMASK_DOUT31_A > ; # [doc = "DMA is allowed to modify DOUT31\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAMASK_DOUT31_A { # [doc = "0: DISABLE"]
DMAMASK_DOUT31_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAMASK_DOUT31_ENABLE = 1 , } impl From < DMAMASK_DOUT31_A > for bool { # [inline (always)]
fn from (variant : DMAMASK_DOUT31_A) -> Self { variant as u8 != 0 } } impl DMAMASK_DOUT31_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAMASK_DOUT31_A { match self . bits { false => DMAMASK_DOUT31_A :: DMAMASK_DOUT31_DISABLE , true => DMAMASK_DOUT31_A :: DMAMASK_DOUT31_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmamask_dout31_disable (& self) -> bool { * self == DMAMASK_DOUT31_A :: DMAMASK_DOUT31_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmamask_dout31_enable (& self) -> bool { * self == DMAMASK_DOUT31_A :: DMAMASK_DOUT31_ENABLE } } # [doc = "Field `DMAMASK_DOUT31` writer - DMA is allowed to modify DOUT31"]
pub type DMAMASK_DOUT31_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAMASK_DOUT31_A > ; impl < 'a , REG , const O : u8 > DMAMASK_DOUT31_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmamask_dout31_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT31_A :: DMAMASK_DOUT31_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmamask_dout31_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAMASK_DOUT31_A :: DMAMASK_DOUT31_ENABLE) } } impl R { # [doc = "Bit 0 - DMA is allowed to modify DOUT0"]
# [inline (always)]
pub fn dmamask_dout0 (& self) -> DMAMASK_DOUT0_R { DMAMASK_DOUT0_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - DMA is allowed to modify DOUT1"]
# [inline (always)]
pub fn dmamask_dout1 (& self) -> DMAMASK_DOUT1_R { DMAMASK_DOUT1_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - DMA is allowed to modify DOUT2"]
# [inline (always)]
pub fn dmamask_dout2 (& self) -> DMAMASK_DOUT2_R { DMAMASK_DOUT2_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - DMA is allowed to modify DOUT3"]
# [inline (always)]
pub fn dmamask_dout3 (& self) -> DMAMASK_DOUT3_R { DMAMASK_DOUT3_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - DMA is allowed to modify DOUT4"]
# [inline (always)]
pub fn dmamask_dout4 (& self) -> DMAMASK_DOUT4_R { DMAMASK_DOUT4_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - DMA is allowed to modify DOUT5"]
# [inline (always)]
pub fn dmamask_dout5 (& self) -> DMAMASK_DOUT5_R { DMAMASK_DOUT5_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - DMA is allowed to modify DOUT6"]
# [inline (always)]
pub fn dmamask_dout6 (& self) -> DMAMASK_DOUT6_R { DMAMASK_DOUT6_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 7 - DMA is allowed to modify DOUT7"]
# [inline (always)]
pub fn dmamask_dout7 (& self) -> DMAMASK_DOUT7_R { DMAMASK_DOUT7_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - DMA is allowed to modify DOUT8"]
# [inline (always)]
pub fn dmamask_dout8 (& self) -> DMAMASK_DOUT8_R { DMAMASK_DOUT8_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - DMA is allowed to modify DOUT9"]
# [inline (always)]
pub fn dmamask_dout9 (& self) -> DMAMASK_DOUT9_R { DMAMASK_DOUT9_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - DMA is allowed to modify DOUT10"]
# [inline (always)]
pub fn dmamask_dout10 (& self) -> DMAMASK_DOUT10_R { DMAMASK_DOUT10_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bit 11 - DMA is allowed to modify DOUT11"]
# [inline (always)]
pub fn dmamask_dout11 (& self) -> DMAMASK_DOUT11_R { DMAMASK_DOUT11_R :: new (((self . bits >> 11) & 1) != 0) } # [doc = "Bit 12 - DMA is allowed to modify DOUT12"]
# [inline (always)]
pub fn dmamask_dout12 (& self) -> DMAMASK_DOUT12_R { DMAMASK_DOUT12_R :: new (((self . bits >> 12) & 1) != 0) } # [doc = "Bit 13 - DMA is allowed to modify DOUT13"]
# [inline (always)]
pub fn dmamask_dout13 (& self) -> DMAMASK_DOUT13_R { DMAMASK_DOUT13_R :: new (((self . bits >> 13) & 1) != 0) } # [doc = "Bit 14 - DMA is allowed to modify DOUT14"]
# [inline (always)]
pub fn dmamask_dout14 (& self) -> DMAMASK_DOUT14_R { DMAMASK_DOUT14_R :: new (((self . bits >> 14) & 1) != 0) } # [doc = "Bit 15 - DMA is allowed to modify DOUT15"]
# [inline (always)]
pub fn dmamask_dout15 (& self) -> DMAMASK_DOUT15_R { DMAMASK_DOUT15_R :: new (((self . bits >> 15) & 1) != 0) } # [doc = "Bit 16 - DMA is allowed to modify DOUT16"]
# [inline (always)]
pub fn dmamask_dout16 (& self) -> DMAMASK_DOUT16_R { DMAMASK_DOUT16_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 17 - DMA is allowed to modify DOUT17"]
# [inline (always)]
pub fn dmamask_dout17 (& self) -> DMAMASK_DOUT17_R { DMAMASK_DOUT17_R :: new (((self . bits >> 17) & 1) != 0) } # [doc = "Bit 18 - DMA is allowed to modify DOUT18"]
# [inline (always)]
pub fn dmamask_dout18 (& self) -> DMAMASK_DOUT18_R { DMAMASK_DOUT18_R :: new (((self . bits >> 18) & 1) != 0) } # [doc = "Bit 19 - DMA is allowed to modify DOUT19"]
# [inline (always)]
pub fn dmamask_dout19 (& self) -> DMAMASK_DOUT19_R { DMAMASK_DOUT19_R :: new (((self . bits >> 19) & 1) != 0) } # [doc = "Bit 20 - DMA is allowed to modify DOUT20"]
# [inline (always)]
pub fn dmamask_dout20 (& self) -> DMAMASK_DOUT20_R { DMAMASK_DOUT20_R :: new (((self . bits >> 20) & 1) != 0) } # [doc = "Bit 21 - DMA is allowed to modify DOUT21"]
# [inline (always)]
pub fn dmamask_dout21 (& self) -> DMAMASK_DOUT21_R { DMAMASK_DOUT21_R :: new (((self . bits >> 21) & 1) != 0) } # [doc = "Bit 22 - DMA is allowed to modify DOUT22"]
# [inline (always)]
pub fn dmamask_dout22 (& self) -> DMAMASK_DOUT22_R { DMAMASK_DOUT22_R :: new (((self . bits >> 22) & 1) != 0) } # [doc = "Bit 23 - DMA is allowed to modify DOUT23"]
# [inline (always)]
pub fn dmamask_dout23 (& self) -> DMAMASK_DOUT23_R { DMAMASK_DOUT23_R :: new (((self . bits >> 23) & 1) != 0) } # [doc = "Bit 24 - DMA is allowed to modify DOUT24"]
# [inline (always)]
pub fn dmamask_dout24 (& self) -> DMAMASK_DOUT24_R { DMAMASK_DOUT24_R :: new (((self . bits >> 24) & 1) != 0) } # [doc = "Bit 25 - DMA is allowed to modify DOUT25"]
# [inline (always)]
pub fn dmamask_dout25 (& self) -> DMAMASK_DOUT25_R { DMAMASK_DOUT25_R :: new (((self . bits >> 25) & 1) != 0) } # [doc = "Bit 26 - DMA is allowed to modify DOUT26"]
# [inline (always)]
pub fn dmamask_dout26 (& self) -> DMAMASK_DOUT26_R { DMAMASK_DOUT26_R :: new (((self . bits >> 26) & 1) != 0) } # [doc = "Bit 27 - DMA is allowed to modify DOUT27"]
# [inline (always)]
pub fn dmamask_dout27 (& self) -> DMAMASK_DOUT27_R { DMAMASK_DOUT27_R :: new (((self . bits >> 27) & 1) != 0) } # [doc = "Bit 28 - DMA is allowed to modify DOUT28"]
# [inline (always)]
pub fn dmamask_dout28 (& self) -> DMAMASK_DOUT28_R { DMAMASK_DOUT28_R :: new (((self . bits >> 28) & 1) != 0) } # [doc = "Bit 29 - DMA is allowed to modify DOUT29"]
# [inline (always)]
pub fn dmamask_dout29 (& self) -> DMAMASK_DOUT29_R { DMAMASK_DOUT29_R :: new (((self . bits >> 29) & 1) != 0) } # [doc = "Bit 30 - DMA is allowed to modify DOUT30"]
# [inline (always)]
pub fn dmamask_dout30 (& self) -> DMAMASK_DOUT30_R { DMAMASK_DOUT30_R :: new (((self . bits >> 30) & 1) != 0) } # [doc = "Bit 31 - DMA is allowed to modify DOUT31"]
# [inline (always)]
pub fn dmamask_dout31 (& self) -> DMAMASK_DOUT31_R { DMAMASK_DOUT31_R :: new (((self . bits >> 31) & 1) != 0) } } impl W { # [doc = "Bit 0 - DMA is allowed to modify DOUT0"]
# [inline (always)]
# [must_use]
pub fn dmamask_dout0 (& mut self) -> DMAMASK_DOUT0_W < DMAMASK_SPEC , 0 > { DMAMASK_DOUT0_W :: new (self) } # [doc = "Bit 1 - DMA is allowed to modify DOUT1"]
# [inline (always)]
# [must_use]
pub fn dmamask_dout1 (& mut self) -> DMAMASK_DOUT1_W < DMAMASK_SPEC , 1 > { DMAMASK_DOUT1_W :: new (self) } # [doc = "Bit 2 - DMA is allowed to modify DOUT2"]
# [inline (always)]
# [must_use]
pub fn dmamask_dout2 (& mut self) -> DMAMASK_DOUT2_W < DMAMASK_SPEC , 2 > { DMAMASK_DOUT2_W :: new (self) } # [doc = "Bit 3 - DMA is allowed to modify DOUT3"]
# [inline (always)]
# [must_use]
pub fn dmamask_dout3 (& mut self) -> DMAMASK_DOUT3_W < DMAMASK_SPEC , 3 > { DMAMASK_DOUT3_W :: new (self) } # [doc = "Bit 4 - DMA is allowed to modify DOUT4"]
# [inline (always)]
# [must_use]
pub fn dmamask_dout4 (& mut self) -> DMAMASK_DOUT4_W < DMAMASK_SPEC , 4 > { DMAMASK_DOUT4_W :: new (self) } # [doc = "Bit 5 - DMA is allowed to modify DOUT5"]
# [inline (always)]
# [must_use]
pub fn dmamask_dout5 (& mut self) -> DMAMASK_DOUT5_W < DMAMASK_SPEC , 5 > { DMAMASK_DOUT5_W :: new (self) } # [doc = "Bit 6 - DMA is allowed to modify DOUT6"]
# [inline (always)]
# [must_use]
pub fn dmamask_dout6 (& mut self) -> DMAMASK_DOUT6_W < DMAMASK_SPEC , 6 > { DMAMASK_DOUT6_W :: new (self) } # [doc = "Bit 7 - DMA is allowed to modify DOUT7"]
# [inline (always)]
# [must_use]
pub fn dmamask_dout7 (& mut self) -> DMAMASK_DOUT7_W < DMAMASK_SPEC , 7 > { DMAMASK_DOUT7_W :: new (self) } # [doc = "Bit 8 - DMA is allowed to modify DOUT8"]
# [inline (always)]
# [must_use]
pub fn dmamask_dout8 (& mut self) -> DMAMASK_DOUT8_W < DMAMASK_SPEC , 8 > { DMAMASK_DOUT8_W :: new (self) } # [doc = "Bit 9 - DMA is allowed to modify DOUT9"]
# [inline (always)]
# [must_use]
pub fn dmamask_dout9 (& mut self) -> DMAMASK_DOUT9_W < DMAMASK_SPEC , 9 > { DMAMASK_DOUT9_W :: new (self) } # [doc = "Bit 10 - DMA is allowed to modify DOUT10"]
# [inline (always)]
# [must_use]
pub fn dmamask_dout10 (& mut self) -> DMAMASK_DOUT10_W < DMAMASK_SPEC , 10 > { DMAMASK_DOUT10_W :: new (self) } # [doc = "Bit 11 - DMA is allowed to modify DOUT11"]
# [inline (always)]
# [must_use]
pub fn dmamask_dout11 (& mut self) -> DMAMASK_DOUT11_W < DMAMASK_SPEC , 11 > { DMAMASK_DOUT11_W :: new (self) } # [doc = "Bit 12 - DMA is allowed to modify DOUT12"]
# [inline (always)]
# [must_use]
pub fn dmamask_dout12 (& mut self) -> DMAMASK_DOUT12_W < DMAMASK_SPEC , 12 > { DMAMASK_DOUT12_W :: new (self) } # [doc = "Bit 13 - DMA is allowed to modify DOUT13"]
# [inline (always)]
# [must_use]
pub fn dmamask_dout13 (& mut self) -> DMAMASK_DOUT13_W < DMAMASK_SPEC , 13 > { DMAMASK_DOUT13_W :: new (self) } # [doc = "Bit 14 - DMA is allowed to modify DOUT14"]
# [inline (always)]
# [must_use]
pub fn dmamask_dout14 (& mut self) -> DMAMASK_DOUT14_W < DMAMASK_SPEC , 14 > { DMAMASK_DOUT14_W :: new (self) } # [doc = "Bit 15 - DMA is allowed to modify DOUT15"]
# [inline (always)]
# [must_use]
pub fn dmamask_dout15 (& mut self) -> DMAMASK_DOUT15_W < DMAMASK_SPEC , 15 > { DMAMASK_DOUT15_W :: new (self) } # [doc = "Bit 16 - DMA is allowed to modify DOUT16"]
# [inline (always)]
# [must_use]
pub fn dmamask_dout16 (& mut self) -> DMAMASK_DOUT16_W < DMAMASK_SPEC , 16 > { DMAMASK_DOUT16_W :: new (self) } # [doc = "Bit 17 - DMA is allowed to modify DOUT17"]
# [inline (always)]
# [must_use]
pub fn dmamask_dout17 (& mut self) -> DMAMASK_DOUT17_W < DMAMASK_SPEC , 17 > { DMAMASK_DOUT17_W :: new (self) } # [doc = "Bit 18 - DMA is allowed to modify DOUT18"]
# [inline (always)]
# [must_use]
pub fn dmamask_dout18 (& mut self) -> DMAMASK_DOUT18_W < DMAMASK_SPEC , 18 > { DMAMASK_DOUT18_W :: new (self) } # [doc = "Bit 19 - DMA is allowed to modify DOUT19"]
# [inline (always)]
# [must_use]
pub fn dmamask_dout19 (& mut self) -> DMAMASK_DOUT19_W < DMAMASK_SPEC , 19 > { DMAMASK_DOUT19_W :: new (self) } # [doc = "Bit 20 - DMA is allowed to modify DOUT20"]
# [inline (always)]
# [must_use]
pub fn dmamask_dout20 (& mut self) -> DMAMASK_DOUT20_W < DMAMASK_SPEC , 20 > { DMAMASK_DOUT20_W :: new (self) } # [doc = "Bit 21 - DMA is allowed to modify DOUT21"]
# [inline (always)]
# [must_use]
pub fn dmamask_dout21 (& mut self) -> DMAMASK_DOUT21_W < DMAMASK_SPEC , 21 > { DMAMASK_DOUT21_W :: new (self) } # [doc = "Bit 22 - DMA is allowed to modify DOUT22"]
# [inline (always)]
# [must_use]
pub fn dmamask_dout22 (& mut self) -> DMAMASK_DOUT22_W < DMAMASK_SPEC , 22 > { DMAMASK_DOUT22_W :: new (self) } # [doc = "Bit 23 - DMA is allowed to modify DOUT23"]
# [inline (always)]
# [must_use]
pub fn dmamask_dout23 (& mut self) -> DMAMASK_DOUT23_W < DMAMASK_SPEC , 23 > { DMAMASK_DOUT23_W :: new (self) } # [doc = "Bit 24 - DMA is allowed to modify DOUT24"]
# [inline (always)]
# [must_use]
pub fn dmamask_dout24 (& mut self) -> DMAMASK_DOUT24_W < DMAMASK_SPEC , 24 > { DMAMASK_DOUT24_W :: new (self) } # [doc = "Bit 25 - DMA is allowed to modify DOUT25"]
# [inline (always)]
# [must_use]
pub fn dmamask_dout25 (& mut self) -> DMAMASK_DOUT25_W < DMAMASK_SPEC , 25 > { DMAMASK_DOUT25_W :: new (self) } # [doc = "Bit 26 - DMA is allowed to modify DOUT26"]
# [inline (always)]
# [must_use]
pub fn dmamask_dout26 (& mut self) -> DMAMASK_DOUT26_W < DMAMASK_SPEC , 26 > { DMAMASK_DOUT26_W :: new (self) } # [doc = "Bit 27 - DMA is allowed to modify DOUT27"]
# [inline (always)]
# [must_use]
pub fn dmamask_dout27 (& mut self) -> DMAMASK_DOUT27_W < DMAMASK_SPEC , 27 > { DMAMASK_DOUT27_W :: new (self) } # [doc = "Bit 28 - DMA is allowed to modify DOUT28"]
# [inline (always)]
# [must_use]
pub fn dmamask_dout28 (& mut self) -> DMAMASK_DOUT28_W < DMAMASK_SPEC , 28 > { DMAMASK_DOUT28_W :: new (self) } # [doc = "Bit 29 - DMA is allowed to modify DOUT29"]
# [inline (always)]
# [must_use]
pub fn dmamask_dout29 (& mut self) -> DMAMASK_DOUT29_W < DMAMASK_SPEC , 29 > { DMAMASK_DOUT29_W :: new (self) } # [doc = "Bit 30 - DMA is allowed to modify DOUT30"]
# [inline (always)]
# [must_use]
pub fn dmamask_dout30 (& mut self) -> DMAMASK_DOUT30_W < DMAMASK_SPEC , 30 > { DMAMASK_DOUT30_W :: new (self) } # [doc = "Bit 31 - DMA is allowed to modify DOUT31"]
# [inline (always)]
# [must_use]
pub fn dmamask_dout31 (& mut self) -> DMAMASK_DOUT31_W < DMAMASK_SPEC , 31 > { DMAMASK_DOUT31_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "DMA Write MASK\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`dmamask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dmamask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DMAMASK_SPEC ; impl crate :: RegisterSpec for DMAMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`dmamask::R`](R) reader structure"]
impl crate :: Readable for DMAMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`dmamask::W`](W) writer structure"]
impl crate :: Writable for DMAMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets DMAMASK to value 0"]
impl crate :: Resettable for DMAMASK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "SUB1CFG (rw) register accessor: Subscriber 1 configuration\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`sub1cfg::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sub1cfg::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sub1cfg`]
module"]
pub type SUB1CFG = crate :: Reg < sub1cfg :: SUB1CFG_SPEC > ; # [doc = "Subscriber 1 configuration"]
pub mod sub1cfg { # [doc = "Register `SUB1CFG` reader"]
pub type R = crate :: R < SUB1CFG_SPEC > ; # [doc = "Register `SUB1CFG` writer"]
pub type W = crate :: W < SUB1CFG_SPEC > ; # [doc = "Field `SUB1CFG_ENABLE` reader - This bit is used to enable subscriber 1 event."]
pub type SUB1CFG_ENABLE_R = crate :: BitReader < SUB1CFG_ENABLE_A > ; # [doc = "This bit is used to enable subscriber 1 event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SUB1CFG_ENABLE_A { # [doc = "0: CLR"]
SUB1CFG_ENABLE_CLR = 0 , # [doc = "1: SET"]
SUB1CFG_ENABLE_SET = 1 , } impl From < SUB1CFG_ENABLE_A > for bool { # [inline (always)]
fn from (variant : SUB1CFG_ENABLE_A) -> Self { variant as u8 != 0 } } impl SUB1CFG_ENABLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SUB1CFG_ENABLE_A { match self . bits { false => SUB1CFG_ENABLE_A :: SUB1CFG_ENABLE_CLR , true => SUB1CFG_ENABLE_A :: SUB1CFG_ENABLE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_sub1cfg_enable_clr (& self) -> bool { * self == SUB1CFG_ENABLE_A :: SUB1CFG_ENABLE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_sub1cfg_enable_set (& self) -> bool { * self == SUB1CFG_ENABLE_A :: SUB1CFG_ENABLE_SET } } # [doc = "Field `SUB1CFG_ENABLE` writer - This bit is used to enable subscriber 1 event."]
pub type SUB1CFG_ENABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SUB1CFG_ENABLE_A > ; impl < 'a , REG , const O : u8 > SUB1CFG_ENABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn sub1cfg_enable_clr (self) -> & 'a mut crate :: W < REG > { self . variant (SUB1CFG_ENABLE_A :: SUB1CFG_ENABLE_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn sub1cfg_enable_set (self) -> & 'a mut crate :: W < REG > { self . variant (SUB1CFG_ENABLE_A :: SUB1CFG_ENABLE_SET) } } # [doc = "Field `SUB1CFG_OUTPOLICY` reader - These bits configure the output policy for subscriber 1 event."]
pub type SUB1CFG_OUTPOLICY_R = crate :: FieldReader < SUB1CFG_OUTPOLICY_A > ; # [doc = "These bits configure the output policy for subscriber 1 event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum SUB1CFG_OUTPOLICY_A { # [doc = "0: SET"]
SUB1CFG_OUTPOLICY_SET = 0 , # [doc = "1: CLR"]
SUB1CFG_OUTPOLICY_CLR = 1 , # [doc = "2: TOGGLE"]
SUB1CFG_OUTPOLICY_TOGGLE = 2 , } impl From < SUB1CFG_OUTPOLICY_A > for u8 { # [inline (always)]
fn from (variant : SUB1CFG_OUTPOLICY_A) -> Self { variant as _ } } impl crate :: FieldSpec for SUB1CFG_OUTPOLICY_A { type Ux = u8 ; } impl SUB1CFG_OUTPOLICY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < SUB1CFG_OUTPOLICY_A > { match self . bits { 0 => Some (SUB1CFG_OUTPOLICY_A :: SUB1CFG_OUTPOLICY_SET) , 1 => Some (SUB1CFG_OUTPOLICY_A :: SUB1CFG_OUTPOLICY_CLR) , 2 => Some (SUB1CFG_OUTPOLICY_A :: SUB1CFG_OUTPOLICY_TOGGLE) , _ => None , } } # [doc = "SET"]
# [inline (always)]
pub fn is_sub1cfg_outpolicy_set (& self) -> bool { * self == SUB1CFG_OUTPOLICY_A :: SUB1CFG_OUTPOLICY_SET } # [doc = "CLR"]
# [inline (always)]
pub fn is_sub1cfg_outpolicy_clr (& self) -> bool { * self == SUB1CFG_OUTPOLICY_A :: SUB1CFG_OUTPOLICY_CLR } # [doc = "TOGGLE"]
# [inline (always)]
pub fn is_sub1cfg_outpolicy_toggle (& self) -> bool { * self == SUB1CFG_OUTPOLICY_A :: SUB1CFG_OUTPOLICY_TOGGLE } } # [doc = "Field `SUB1CFG_OUTPOLICY` writer - These bits configure the output policy for subscriber 1 event."]
pub type SUB1CFG_OUTPOLICY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , SUB1CFG_OUTPOLICY_A > ; impl < 'a , REG , const O : u8 > SUB1CFG_OUTPOLICY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "SET"]
# [inline (always)]
pub fn sub1cfg_outpolicy_set (self) -> & 'a mut crate :: W < REG > { self . variant (SUB1CFG_OUTPOLICY_A :: SUB1CFG_OUTPOLICY_SET) } # [doc = "CLR"]
# [inline (always)]
pub fn sub1cfg_outpolicy_clr (self) -> & 'a mut crate :: W < REG > { self . variant (SUB1CFG_OUTPOLICY_A :: SUB1CFG_OUTPOLICY_CLR) } # [doc = "TOGGLE"]
# [inline (always)]
pub fn sub1cfg_outpolicy_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (SUB1CFG_OUTPOLICY_A :: SUB1CFG_OUTPOLICY_TOGGLE) } } # [doc = "Field `SUB1CFG_INDEX` reader - indicates the specific bit in the upper 16 bits that is targeted by the subscriber action"]
pub type SUB1CFG_INDEX_R = crate :: FieldReader < SUB1CFG_INDEX_A > ; # [doc = "indicates the specific bit in the upper 16 bits that is targeted by the subscriber action\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum SUB1CFG_INDEX_A { # [doc = "0: MIN"]
SUB1CFG_INDEX_MIN = 0 , # [doc = "15: MAX"]
SUB1CFG_INDEX_MAX = 15 , } impl From < SUB1CFG_INDEX_A > for u8 { # [inline (always)]
fn from (variant : SUB1CFG_INDEX_A) -> Self { variant as _ } } impl crate :: FieldSpec for SUB1CFG_INDEX_A { type Ux = u8 ; } impl SUB1CFG_INDEX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < SUB1CFG_INDEX_A > { match self . bits { 0 => Some (SUB1CFG_INDEX_A :: SUB1CFG_INDEX_MIN) , 15 => Some (SUB1CFG_INDEX_A :: SUB1CFG_INDEX_MAX) , _ => None , } } # [doc = "MIN"]
# [inline (always)]
pub fn is_sub1cfg_index_min (& self) -> bool { * self == SUB1CFG_INDEX_A :: SUB1CFG_INDEX_MIN } # [doc = "MAX"]
# [inline (always)]
pub fn is_sub1cfg_index_max (& self) -> bool { * self == SUB1CFG_INDEX_A :: SUB1CFG_INDEX_MAX } } # [doc = "Field `SUB1CFG_INDEX` writer - indicates the specific bit in the upper 16 bits that is targeted by the subscriber action"]
pub type SUB1CFG_INDEX_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 4 , O , SUB1CFG_INDEX_A > ; impl < 'a , REG , const O : u8 > SUB1CFG_INDEX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "MIN"]
# [inline (always)]
pub fn sub1cfg_index_min (self) -> & 'a mut crate :: W < REG > { self . variant (SUB1CFG_INDEX_A :: SUB1CFG_INDEX_MIN) } # [doc = "MAX"]
# [inline (always)]
pub fn sub1cfg_index_max (self) -> & 'a mut crate :: W < REG > { self . variant (SUB1CFG_INDEX_A :: SUB1CFG_INDEX_MAX) } } impl R { # [doc = "Bit 0 - This bit is used to enable subscriber 1 event."]
# [inline (always)]
pub fn sub1cfg_enable (& self) -> SUB1CFG_ENABLE_R { SUB1CFG_ENABLE_R :: new ((self . bits & 1) != 0) } # [doc = "Bits 8:9 - These bits configure the output policy for subscriber 1 event."]
# [inline (always)]
pub fn sub1cfg_outpolicy (& self) -> SUB1CFG_OUTPOLICY_R { SUB1CFG_OUTPOLICY_R :: new (((self . bits >> 8) & 3) as u8) } # [doc = "Bits 16:19 - indicates the specific bit in the upper 16 bits that is targeted by the subscriber action"]
# [inline (always)]
pub fn sub1cfg_index (& self) -> SUB1CFG_INDEX_R { SUB1CFG_INDEX_R :: new (((self . bits >> 16) & 0x0f) as u8) } } impl W { # [doc = "Bit 0 - This bit is used to enable subscriber 1 event."]
# [inline (always)]
# [must_use]
pub fn sub1cfg_enable (& mut self) -> SUB1CFG_ENABLE_W < SUB1CFG_SPEC , 0 > { SUB1CFG_ENABLE_W :: new (self) } # [doc = "Bits 8:9 - These bits configure the output policy for subscriber 1 event."]
# [inline (always)]
# [must_use]
pub fn sub1cfg_outpolicy (& mut self) -> SUB1CFG_OUTPOLICY_W < SUB1CFG_SPEC , 8 > { SUB1CFG_OUTPOLICY_W :: new (self) } # [doc = "Bits 16:19 - indicates the specific bit in the upper 16 bits that is targeted by the subscriber action"]
# [inline (always)]
# [must_use]
pub fn sub1cfg_index (& mut self) -> SUB1CFG_INDEX_W < SUB1CFG_SPEC , 16 > { SUB1CFG_INDEX_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Subscriber 1 configuration\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`sub1cfg::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sub1cfg::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SUB1CFG_SPEC ; impl crate :: RegisterSpec for SUB1CFG_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`sub1cfg::R`](R) reader structure"]
impl crate :: Readable for SUB1CFG_SPEC { } # [doc = "`write(|w| ..)` method takes [`sub1cfg::W`](W) writer structure"]
impl crate :: Writable for SUB1CFG_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets SUB1CFG to value 0"]
impl crate :: Resettable for SUB1CFG_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } } # [doc = "PERIPHERALREGION"]
pub struct UART1 { _marker : PhantomData < * const () > } unsafe impl Send for UART1 { } impl UART1 { # [doc = r"Pointer to the register block"]
pub const PTR : * const uart1 :: RegisterBlock = 0x4010_0000 as * const _ ; # [doc = r"Return the pointer to the register block"]
# [inline (always)]
pub const fn ptr () -> * const uart1 :: RegisterBlock { Self :: PTR } # [doc = r" Steal an instance of this peripheral"]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Ensure that the new instance of the peripheral cannot be used in a way"]
# [doc = r" that may race with any existing instances, for example by only"]
# [doc = r" accessing read-only or write-only registers, or by consuming the"]
# [doc = r" original peripheral and using critical sections to coordinate"]
# [doc = r" access between multiple new instances."]
# [doc = r""]
# [doc = r" Additionally, other software such as HALs may rely on only one"]
# [doc = r" peripheral instance existing to ensure memory safety; ensure"]
# [doc = r" no stolen instances are passed to such software."]
pub unsafe fn steal () -> Self { Self { _marker : PhantomData } } } impl Deref for UART1 { type Target = uart1 :: RegisterBlock ; # [inline (always)]
fn deref (& self) -> & Self :: Target { unsafe { & * Self :: PTR } } } impl core :: fmt :: Debug for UART1 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("UART1") . finish () } } # [doc = "PERIPHERALREGION"]
pub mod uart1 { # [doc = r"Register block"]
# [repr (C)]
pub struct RegisterBlock { _reserved0 : [u8 ; 0x0800]
, # [doc = "0x800 - Power enable"]
pub pwren : PWREN , # [doc = "0x804 - Reset Control"]
pub rstctl : RSTCTL , # [doc = "0x808 - Peripheral Clock Configuration Register"]
pub clkcfg : CLKCFG , _reserved3 : [u8 ; 0x08]
, # [doc = "0x814 - Status Register"]
pub gprcm_stat : GPRCM_STAT , _reserved4 : [u8 ; 0x07e8]
, # [doc = "0x1000 - Clock Divider"]
pub clkdiv : CLKDIV , _reserved5 : [u8 ; 0x04]
, # [doc = "0x1008 - Clock Select for Ultra Low Power peripherals"]
pub clksel : CLKSEL , _reserved6 : [u8 ; 0x0c]
, # [doc = "0x1018 - Peripheral Debug Control"]
pub pdbgctl : PDBGCTL , _reserved7 : [u8 ; 0x04]
, # [doc = "0x1020 - Interrupt index"]
pub int_event0_iidx : INT_EVENT0_IIDX , _reserved8 : [u8 ; 0x04]
, # [doc = "0x1028 - Interrupt mask"]
pub int_event0_imask : INT_EVENT0_IMASK , _reserved9 : [u8 ; 0x04]
, # [doc = "0x1030 - Raw interrupt status"]
pub int_event0_ris : INT_EVENT0_RIS , _reserved10 : [u8 ; 0x04]
, # [doc = "0x1038 - Masked interrupt status"]
pub int_event0_mis : INT_EVENT0_MIS , _reserved11 : [u8 ; 0x04]
, # [doc = "0x1040 - Interrupt set"]
pub int_event0_iset : INT_EVENT0_ISET , _reserved12 : [u8 ; 0x04]
, # [doc = "0x1048 - Interrupt clear"]
pub int_event0_iclr : INT_EVENT0_ICLR , _reserved13 : [u8 ; 0x04]
, # [doc = "0x1050 - Interrupt index"]
pub int_event1_iidx : INT_EVENT1_IIDX , _reserved14 : [u8 ; 0x04]
, # [doc = "0x1058 - Interrupt mask"]
pub int_event1_imask : INT_EVENT1_IMASK , _reserved15 : [u8 ; 0x04]
, # [doc = "0x1060 - Raw interrupt status"]
pub int_event1_ris : INT_EVENT1_RIS , _reserved16 : [u8 ; 0x04]
, # [doc = "0x1068 - Masked interrupt status"]
pub int_event1_mis : INT_EVENT1_MIS , _reserved17 : [u8 ; 0x04]
, # [doc = "0x1070 - Interrupt set"]
pub int_event1_iset : INT_EVENT1_ISET , _reserved18 : [u8 ; 0x04]
, # [doc = "0x1078 - Interrupt clear"]
pub int_event1_iclr : INT_EVENT1_ICLR , _reserved19 : [u8 ; 0x04]
, # [doc = "0x1080 - Interrupt index"]
pub int_event2_iidx : INT_EVENT2_IIDX , _reserved20 : [u8 ; 0x04]
, # [doc = "0x1088 - Interrupt mask"]
pub int_event2_imask : INT_EVENT2_IMASK , _reserved21 : [u8 ; 0x04]
, # [doc = "0x1090 - Raw interrupt status"]
pub int_event2_ris : INT_EVENT2_RIS , _reserved22 : [u8 ; 0x04]
, # [doc = "0x1098 - Masked interrupt status"]
pub int_event2_mis : INT_EVENT2_MIS , _reserved23 : [u8 ; 0x04]
, # [doc = "0x10a0 - Interrupt set"]
pub int_event2_iset : INT_EVENT2_ISET , _reserved24 : [u8 ; 0x04]
, # [doc = "0x10a8 - Interrupt clear"]
pub int_event2_iclr : INT_EVENT2_ICLR , _reserved25 : [u8 ; 0x34]
, # [doc = "0x10e0 - Event Mode"]
pub evt_mode : EVT_MODE , _reserved26 : [u8 ; 0x18]
, # [doc = "0x10fc - Module Description"]
pub desc : DESC , # [doc = "0x1100 - UART Control Register 0"]
pub ctl0 : CTL0 , # [doc = "0x1104 - UART Line Control Register"]
pub lcrh : LCRH , # [doc = "0x1108 - UART Status Register"]
pub stat : STAT , # [doc = "0x110c - UART Interrupt FIFO Level Select Register"]
pub ifls : IFLS , # [doc = "0x1110 - UART Integer Baud-Rate Divisor Register"]
pub ibrd : IBRD , # [doc = "0x1114 - UART Fractional Baud-Rate Divisor Register"]
pub fbrd : FBRD , # [doc = "0x1118 - Glitch Filter Control"]
pub gfctl : GFCTL , _reserved34 : [u8 ; 0x04]
, # [doc = "0x1120 - UART Transmit Data Register"]
pub txdata : TXDATA , # [doc = "0x1124 - UART Receive Data Register"]
pub rxdata : RXDATA , _reserved36 : [u8 ; 0x20]
, # [doc = "0x1148 - Self Address Mask Register"]
pub amask : AMASK , # [doc = "0x114c - Self Address Register"]
pub addr : ADDR , } # [doc = "PWREN (rw) register accessor: Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pwren`]
module"]
pub type PWREN = crate :: Reg < pwren :: PWREN_SPEC > ; # [doc = "Power enable"]
pub mod pwren { # [doc = "Register `PWREN` reader"]
pub type R = crate :: R < PWREN_SPEC > ; # [doc = "Register `PWREN` writer"]
pub type W = crate :: W < PWREN_SPEC > ; # [doc = "Field `PWREN_ENABLE` reader - Enable the power"]
pub type PWREN_ENABLE_R = crate :: BitReader < PWREN_ENABLE_A > ; # [doc = "Enable the power\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PWREN_ENABLE_A { # [doc = "0: DISABLE"]
PWREN_ENABLE_DISABLE = 0 , # [doc = "1: ENABLE"]
PWREN_ENABLE_ENABLE = 1 , } impl From < PWREN_ENABLE_A > for bool { # [inline (always)]
fn from (variant : PWREN_ENABLE_A) -> Self { variant as u8 != 0 } } impl PWREN_ENABLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PWREN_ENABLE_A { match self . bits { false => PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE , true => PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_pwren_enable_disable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_pwren_enable_enable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE } } # [doc = "Field `PWREN_ENABLE` writer - Enable the power"]
pub type PWREN_ENABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PWREN_ENABLE_A > ; impl < 'a , REG , const O : u8 > PWREN_ENABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn pwren_enable_disable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn pwren_enable_enable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE) } } # [doc = "KEY to allow Power State Change\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum PWREN_KEY_AW { # [doc = "38: _TO_UNLOCK_W_"]
PWREN_KEY_UNLOCK_W = 38 , } impl From < PWREN_KEY_AW > for u8 { # [inline (always)]
fn from (variant : PWREN_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for PWREN_KEY_AW { type Ux = u8 ; } # [doc = "Field `PWREN_KEY` writer - KEY to allow Power State Change"]
pub type PWREN_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , PWREN_KEY_AW > ; impl < 'a , REG , const O : u8 > PWREN_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn pwren_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_KEY_AW :: PWREN_KEY_UNLOCK_W) } } impl R { # [doc = "Bit 0 - Enable the power"]
# [inline (always)]
pub fn pwren_enable (& self) -> PWREN_ENABLE_R { PWREN_ENABLE_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - Enable the power"]
# [inline (always)]
# [must_use]
pub fn pwren_enable (& mut self) -> PWREN_ENABLE_W < PWREN_SPEC , 0 > { PWREN_ENABLE_W :: new (self) } # [doc = "Bits 24:31 - KEY to allow Power State Change"]
# [inline (always)]
# [must_use]
pub fn pwren_key (& mut self) -> PWREN_KEY_W < PWREN_SPEC , 24 > { PWREN_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PWREN_SPEC ; impl crate :: RegisterSpec for PWREN_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pwren::R`](R) reader structure"]
impl crate :: Readable for PWREN_SPEC { } # [doc = "`write(|w| ..)` method takes [`pwren::W`](W) writer structure"]
impl crate :: Writable for PWREN_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PWREN to value 0"]
impl crate :: Resettable for PWREN_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RSTCTL (w) register accessor: Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rstctl`]
module"]
pub type RSTCTL = crate :: Reg < rstctl :: RSTCTL_SPEC > ; # [doc = "Reset Control"]
pub mod rstctl { # [doc = "Register `RSTCTL` writer"]
pub type W = crate :: W < RSTCTL_SPEC > ; # [doc = "Assert reset to the peripheral\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETASSERT_AW { # [doc = "0: NOP"]
RSTCTL_RESETASSERT_NOP = 0 , # [doc = "1: ASSERT"]
RSTCTL_RESETASSERT_ASSERT = 1 , } impl From < RSTCTL_RESETASSERT_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETASSERT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETASSERT` writer - Assert reset to the peripheral"]
pub type RSTCTL_RESETASSERT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETASSERT_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETASSERT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetassert_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_NOP) } # [doc = "ASSERT"]
# [inline (always)]
pub fn rstctl_resetassert_assert (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_ASSERT) } } # [doc = "Clear the RESETSTKY bit in the STAT register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETSTKYCLR_AW { # [doc = "0: NOP"]
RSTCTL_RESETSTKYCLR_NOP = 0 , # [doc = "1: CLR"]
RSTCTL_RESETSTKYCLR_CLR = 1 , } impl From < RSTCTL_RESETSTKYCLR_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETSTKYCLR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETSTKYCLR` writer - Clear the RESETSTKY bit in the STAT register"]
pub type RSTCTL_RESETSTKYCLR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETSTKYCLR_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETSTKYCLR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetstkyclr_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_NOP) } # [doc = "CLR"]
# [inline (always)]
pub fn rstctl_resetstkyclr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_CLR) } } # [doc = "Unlock key\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum RSTCTL_KEY_AW { # [doc = "177: _TO_UNLOCK_W_"]
RSTCTL_KEY_UNLOCK_W = 177 , } impl From < RSTCTL_KEY_AW > for u8 { # [inline (always)]
fn from (variant : RSTCTL_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for RSTCTL_KEY_AW { type Ux = u8 ; } # [doc = "Field `RSTCTL_KEY` writer - Unlock key"]
pub type RSTCTL_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , RSTCTL_KEY_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn rstctl_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_KEY_AW :: RSTCTL_KEY_UNLOCK_W) } } impl W { # [doc = "Bit 0 - Assert reset to the peripheral"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetassert (& mut self) -> RSTCTL_RESETASSERT_W < RSTCTL_SPEC , 0 > { RSTCTL_RESETASSERT_W :: new (self) } # [doc = "Bit 1 - Clear the RESETSTKY bit in the STAT register"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetstkyclr (& mut self) -> RSTCTL_RESETSTKYCLR_W < RSTCTL_SPEC , 1 > { RSTCTL_RESETSTKYCLR_W :: new (self) } # [doc = "Bits 24:31 - Unlock key"]
# [inline (always)]
# [must_use]
pub fn rstctl_key (& mut self) -> RSTCTL_KEY_W < RSTCTL_SPEC , 24 > { RSTCTL_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RSTCTL_SPEC ; impl crate :: RegisterSpec for RSTCTL_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`rstctl::W`](W) writer structure"]
impl crate :: Writable for RSTCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets RSTCTL to value 0"]
impl crate :: Resettable for RSTCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CLKCFG (rw) register accessor: Peripheral Clock Configuration Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkcfg::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkcfg::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clkcfg`]
module"]
pub type CLKCFG = crate :: Reg < clkcfg :: CLKCFG_SPEC > ; # [doc = "Peripheral Clock Configuration Register"]
pub mod clkcfg { # [doc = "Register `CLKCFG` reader"]
pub type R = crate :: R < CLKCFG_SPEC > ; # [doc = "Register `CLKCFG` writer"]
pub type W = crate :: W < CLKCFG_SPEC > ; # [doc = "Field `CLKCFG_BLOCKASYNC` reader - Async Clock Request is blocked from starting SYSOSC or forcing bus clock to 32MHz"]
pub type CLKCFG_BLOCKASYNC_R = crate :: BitReader < CLKCFG_BLOCKASYNC_A > ; # [doc = "Async Clock Request is blocked from starting SYSOSC or forcing bus clock to 32MHz\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKCFG_BLOCKASYNC_A { # [doc = "0: DISABLE"]
CLKCFG_BLOCKASYNC_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKCFG_BLOCKASYNC_ENABLE = 1 , } impl From < CLKCFG_BLOCKASYNC_A > for bool { # [inline (always)]
fn from (variant : CLKCFG_BLOCKASYNC_A) -> Self { variant as u8 != 0 } } impl CLKCFG_BLOCKASYNC_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKCFG_BLOCKASYNC_A { match self . bits { false => CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_DISABLE , true => CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clkcfg_blockasync_disable (& self) -> bool { * self == CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clkcfg_blockasync_enable (& self) -> bool { * self == CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_ENABLE } } # [doc = "Field `CLKCFG_BLOCKASYNC` writer - Async Clock Request is blocked from starting SYSOSC or forcing bus clock to 32MHz"]
pub type CLKCFG_BLOCKASYNC_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKCFG_BLOCKASYNC_A > ; impl < 'a , REG , const O : u8 > CLKCFG_BLOCKASYNC_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clkcfg_blockasync_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clkcfg_blockasync_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_ENABLE) } } # [doc = "KEY to Allow State Change -- 0xA9\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CLKCFG_KEY_AW { # [doc = "169: _UNLOCK_W_"]
CLKCFG_KEY_UNLOCK = 169 , } impl From < CLKCFG_KEY_AW > for u8 { # [inline (always)]
fn from (variant : CLKCFG_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for CLKCFG_KEY_AW { type Ux = u8 ; } # [doc = "Field `CLKCFG_KEY` writer - KEY to Allow State Change -- 0xA9"]
pub type CLKCFG_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , CLKCFG_KEY_AW > ; impl < 'a , REG , const O : u8 > CLKCFG_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_UNLOCK_W_"]
# [inline (always)]
pub fn clkcfg_key_unlock (self) -> & 'a mut crate :: W < REG > { self . variant (CLKCFG_KEY_AW :: CLKCFG_KEY_UNLOCK) } } impl R { # [doc = "Bit 8 - Async Clock Request is blocked from starting SYSOSC or forcing bus clock to 32MHz"]
# [inline (always)]
pub fn clkcfg_blockasync (& self) -> CLKCFG_BLOCKASYNC_R { CLKCFG_BLOCKASYNC_R :: new (((self . bits >> 8) & 1) != 0) } } impl W { # [doc = "Bit 8 - Async Clock Request is blocked from starting SYSOSC or forcing bus clock to 32MHz"]
# [inline (always)]
# [must_use]
pub fn clkcfg_blockasync (& mut self) -> CLKCFG_BLOCKASYNC_W < CLKCFG_SPEC , 8 > { CLKCFG_BLOCKASYNC_W :: new (self) } # [doc = "Bits 24:31 - KEY to Allow State Change -- 0xA9"]
# [inline (always)]
# [must_use]
pub fn clkcfg_key (& mut self) -> CLKCFG_KEY_W < CLKCFG_SPEC , 24 > { CLKCFG_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Peripheral Clock Configuration Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkcfg::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkcfg::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CLKCFG_SPEC ; impl crate :: RegisterSpec for CLKCFG_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`clkcfg::R`](R) reader structure"]
impl crate :: Readable for CLKCFG_SPEC { } # [doc = "`write(|w| ..)` method takes [`clkcfg::W`](W) writer structure"]
impl crate :: Writable for CLKCFG_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CLKCFG to value 0"]
impl crate :: Resettable for CLKCFG_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "GPRCM_STAT (r) register accessor: Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gprcm_stat::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gprcm_stat`]
module"]
pub type GPRCM_STAT = crate :: Reg < gprcm_stat :: GPRCM_STAT_SPEC > ; # [doc = "Status Register"]
pub mod gprcm_stat { # [doc = "Register `GPRCM_STAT` reader"]
pub type R = crate :: R < GPRCM_STAT_SPEC > ; # [doc = "Field `GPRCM_STAT_RESETSTKY` reader - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
pub type GPRCM_STAT_RESETSTKY_R = crate :: BitReader < GPRCM_STAT_RESETSTKY_A > ; # [doc = "This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum GPRCM_STAT_RESETSTKY_A { # [doc = "0: NORES"]
GPRCM_STAT_RESETSTKY_NORES = 0 , # [doc = "1: RESET"]
GPRCM_STAT_RESETSTKY_RESET = 1 , } impl From < GPRCM_STAT_RESETSTKY_A > for bool { # [inline (always)]
fn from (variant : GPRCM_STAT_RESETSTKY_A) -> Self { variant as u8 != 0 } } impl GPRCM_STAT_RESETSTKY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> GPRCM_STAT_RESETSTKY_A { match self . bits { false => GPRCM_STAT_RESETSTKY_A :: GPRCM_STAT_RESETSTKY_NORES , true => GPRCM_STAT_RESETSTKY_A :: GPRCM_STAT_RESETSTKY_RESET , } } # [doc = "NORES"]
# [inline (always)]
pub fn is_gprcm_stat_resetstky_nores (& self) -> bool { * self == GPRCM_STAT_RESETSTKY_A :: GPRCM_STAT_RESETSTKY_NORES } # [doc = "RESET"]
# [inline (always)]
pub fn is_gprcm_stat_resetstky_reset (& self) -> bool { * self == GPRCM_STAT_RESETSTKY_A :: GPRCM_STAT_RESETSTKY_RESET } } impl R { # [doc = "Bit 16 - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
# [inline (always)]
pub fn gprcm_stat_resetstky (& self) -> GPRCM_STAT_RESETSTKY_R { GPRCM_STAT_RESETSTKY_R :: new (((self . bits >> 16) & 1) != 0) } } # [doc = "Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gprcm_stat::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct GPRCM_STAT_SPEC ; impl crate :: RegisterSpec for GPRCM_STAT_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`gprcm_stat::R`](R) reader structure"]
impl crate :: Readable for GPRCM_STAT_SPEC { } # [doc = "`reset()` method sets GPRCM_STAT to value 0"]
impl crate :: Resettable for GPRCM_STAT_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CLKDIV (rw) register accessor: Clock Divider\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkdiv::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkdiv::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clkdiv`]
module"]
pub type CLKDIV = crate :: Reg < clkdiv :: CLKDIV_SPEC > ; # [doc = "Clock Divider"]
pub mod clkdiv { # [doc = "Register `CLKDIV` reader"]
pub type R = crate :: R < CLKDIV_SPEC > ; # [doc = "Register `CLKDIV` writer"]
pub type W = crate :: W < CLKDIV_SPEC > ; # [doc = "Field `CLKDIV_RATIO` reader - Selects divide ratio of module clock"]
pub type CLKDIV_RATIO_R = crate :: FieldReader < CLKDIV_RATIO_A > ; # [doc = "Selects divide ratio of module clock\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CLKDIV_RATIO_A { # [doc = "0: DIV_BY_1"]
CLKDIV_RATIO_DIV_BY_1 = 0 , # [doc = "1: DIV_BY_2"]
CLKDIV_RATIO_DIV_BY_2 = 1 , # [doc = "2: DIV_BY_3"]
CLKDIV_RATIO_DIV_BY_3 = 2 , # [doc = "3: DIV_BY_4"]
CLKDIV_RATIO_DIV_BY_4 = 3 , # [doc = "4: DIV_BY_5"]
CLKDIV_RATIO_DIV_BY_5 = 4 , # [doc = "5: DIV_BY_6"]
CLKDIV_RATIO_DIV_BY_6 = 5 , # [doc = "6: DIV_BY_7"]
CLKDIV_RATIO_DIV_BY_7 = 6 , # [doc = "7: DIV_BY_8"]
CLKDIV_RATIO_DIV_BY_8 = 7 , } impl From < CLKDIV_RATIO_A > for u8 { # [inline (always)]
fn from (variant : CLKDIV_RATIO_A) -> Self { variant as _ } } impl crate :: FieldSpec for CLKDIV_RATIO_A { type Ux = u8 ; } impl CLKDIV_RATIO_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKDIV_RATIO_A { match self . bits { 0 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_1 , 1 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_2 , 2 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_3 , 3 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_4 , 4 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_5 , 5 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_6 , 6 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_7 , 7 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_8 , _ => unreachable ! () , } } # [doc = "DIV_BY_1"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_1 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_1 } # [doc = "DIV_BY_2"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_2 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_2 } # [doc = "DIV_BY_3"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_3 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_3 } # [doc = "DIV_BY_4"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_4 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_4 } # [doc = "DIV_BY_5"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_5 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_5 } # [doc = "DIV_BY_6"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_6 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_6 } # [doc = "DIV_BY_7"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_7 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_7 } # [doc = "DIV_BY_8"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_8 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_8 } } # [doc = "Field `CLKDIV_RATIO` writer - Selects divide ratio of module clock"]
pub type CLKDIV_RATIO_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 3 , O , CLKDIV_RATIO_A > ; impl < 'a , REG , const O : u8 > CLKDIV_RATIO_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DIV_BY_1"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_1 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_1) } # [doc = "DIV_BY_2"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_2 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_2) } # [doc = "DIV_BY_3"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_3 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_3) } # [doc = "DIV_BY_4"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_4 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_4) } # [doc = "DIV_BY_5"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_5 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_5) } # [doc = "DIV_BY_6"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_6 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_6) } # [doc = "DIV_BY_7"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_7 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_7) } # [doc = "DIV_BY_8"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_8 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_8) } } impl R { # [doc = "Bits 0:2 - Selects divide ratio of module clock"]
# [inline (always)]
pub fn clkdiv_ratio (& self) -> CLKDIV_RATIO_R { CLKDIV_RATIO_R :: new ((self . bits & 7) as u8) } } impl W { # [doc = "Bits 0:2 - Selects divide ratio of module clock"]
# [inline (always)]
# [must_use]
pub fn clkdiv_ratio (& mut self) -> CLKDIV_RATIO_W < CLKDIV_SPEC , 0 > { CLKDIV_RATIO_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Clock Divider\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkdiv::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkdiv::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CLKDIV_SPEC ; impl crate :: RegisterSpec for CLKDIV_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`clkdiv::R`](R) reader structure"]
impl crate :: Readable for CLKDIV_SPEC { } # [doc = "`write(|w| ..)` method takes [`clkdiv::W`](W) writer structure"]
impl crate :: Writable for CLKDIV_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CLKDIV to value 0"]
impl crate :: Resettable for CLKDIV_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CLKSEL (rw) register accessor: Clock Select for Ultra Low Power peripherals\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clksel::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clksel::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clksel`]
module"]
pub type CLKSEL = crate :: Reg < clksel :: CLKSEL_SPEC > ; # [doc = "Clock Select for Ultra Low Power peripherals"]
pub mod clksel { # [doc = "Register `CLKSEL` reader"]
pub type R = crate :: R < CLKSEL_SPEC > ; # [doc = "Register `CLKSEL` writer"]
pub type W = crate :: W < CLKSEL_SPEC > ; # [doc = "Field `CLKSEL_LFCLK_SEL` reader - Selects LFCLK as clock source if enabled"]
pub type CLKSEL_LFCLK_SEL_R = crate :: BitReader < CLKSEL_LFCLK_SEL_A > ; # [doc = "Selects LFCLK as clock source if enabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKSEL_LFCLK_SEL_A { # [doc = "0: DISABLE"]
CLKSEL_LFCLK_SEL_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKSEL_LFCLK_SEL_ENABLE = 1 , } impl From < CLKSEL_LFCLK_SEL_A > for bool { # [inline (always)]
fn from (variant : CLKSEL_LFCLK_SEL_A) -> Self { variant as u8 != 0 } } impl CLKSEL_LFCLK_SEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKSEL_LFCLK_SEL_A { match self . bits { false => CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_DISABLE , true => CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clksel_lfclk_sel_disable (& self) -> bool { * self == CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clksel_lfclk_sel_enable (& self) -> bool { * self == CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_ENABLE } } # [doc = "Field `CLKSEL_LFCLK_SEL` writer - Selects LFCLK as clock source if enabled"]
pub type CLKSEL_LFCLK_SEL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKSEL_LFCLK_SEL_A > ; impl < 'a , REG , const O : u8 > CLKSEL_LFCLK_SEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clksel_lfclk_sel_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clksel_lfclk_sel_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_ENABLE) } } # [doc = "Field `CLKSEL_MFCLK_SEL` reader - Selects MFCLK as clock source if enabled"]
pub type CLKSEL_MFCLK_SEL_R = crate :: BitReader < CLKSEL_MFCLK_SEL_A > ; # [doc = "Selects MFCLK as clock source if enabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKSEL_MFCLK_SEL_A { # [doc = "0: DISABLE"]
CLKSEL_MFCLK_SEL_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKSEL_MFCLK_SEL_ENABLE = 1 , } impl From < CLKSEL_MFCLK_SEL_A > for bool { # [inline (always)]
fn from (variant : CLKSEL_MFCLK_SEL_A) -> Self { variant as u8 != 0 } } impl CLKSEL_MFCLK_SEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKSEL_MFCLK_SEL_A { match self . bits { false => CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_DISABLE , true => CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clksel_mfclk_sel_disable (& self) -> bool { * self == CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clksel_mfclk_sel_enable (& self) -> bool { * self == CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_ENABLE } } # [doc = "Field `CLKSEL_MFCLK_SEL` writer - Selects MFCLK as clock source if enabled"]
pub type CLKSEL_MFCLK_SEL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKSEL_MFCLK_SEL_A > ; impl < 'a , REG , const O : u8 > CLKSEL_MFCLK_SEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clksel_mfclk_sel_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clksel_mfclk_sel_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_ENABLE) } } # [doc = "Field `CLKSEL_BUSCLK_SEL` reader - Selects BUS CLK as clock source if enabled"]
pub type CLKSEL_BUSCLK_SEL_R = crate :: BitReader < CLKSEL_BUSCLK_SEL_A > ; # [doc = "Selects BUS CLK as clock source if enabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKSEL_BUSCLK_SEL_A { # [doc = "0: DISABLE"]
CLKSEL_BUSCLK_SEL_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKSEL_BUSCLK_SEL_ENABLE = 1 , } impl From < CLKSEL_BUSCLK_SEL_A > for bool { # [inline (always)]
fn from (variant : CLKSEL_BUSCLK_SEL_A) -> Self { variant as u8 != 0 } } impl CLKSEL_BUSCLK_SEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKSEL_BUSCLK_SEL_A { match self . bits { false => CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_DISABLE , true => CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clksel_busclk_sel_disable (& self) -> bool { * self == CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clksel_busclk_sel_enable (& self) -> bool { * self == CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_ENABLE } } # [doc = "Field `CLKSEL_BUSCLK_SEL` writer - Selects BUS CLK as clock source if enabled"]
pub type CLKSEL_BUSCLK_SEL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKSEL_BUSCLK_SEL_A > ; impl < 'a , REG , const O : u8 > CLKSEL_BUSCLK_SEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clksel_busclk_sel_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clksel_busclk_sel_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_ENABLE) } } impl R { # [doc = "Bit 1 - Selects LFCLK as clock source if enabled"]
# [inline (always)]
pub fn clksel_lfclk_sel (& self) -> CLKSEL_LFCLK_SEL_R { CLKSEL_LFCLK_SEL_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Selects MFCLK as clock source if enabled"]
# [inline (always)]
pub fn clksel_mfclk_sel (& self) -> CLKSEL_MFCLK_SEL_R { CLKSEL_MFCLK_SEL_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Selects BUS CLK as clock source if enabled"]
# [inline (always)]
pub fn clksel_busclk_sel (& self) -> CLKSEL_BUSCLK_SEL_R { CLKSEL_BUSCLK_SEL_R :: new (((self . bits >> 3) & 1) != 0) } } impl W { # [doc = "Bit 1 - Selects LFCLK as clock source if enabled"]
# [inline (always)]
# [must_use]
pub fn clksel_lfclk_sel (& mut self) -> CLKSEL_LFCLK_SEL_W < CLKSEL_SPEC , 1 > { CLKSEL_LFCLK_SEL_W :: new (self) } # [doc = "Bit 2 - Selects MFCLK as clock source if enabled"]
# [inline (always)]
# [must_use]
pub fn clksel_mfclk_sel (& mut self) -> CLKSEL_MFCLK_SEL_W < CLKSEL_SPEC , 2 > { CLKSEL_MFCLK_SEL_W :: new (self) } # [doc = "Bit 3 - Selects BUS CLK as clock source if enabled"]
# [inline (always)]
# [must_use]
pub fn clksel_busclk_sel (& mut self) -> CLKSEL_BUSCLK_SEL_W < CLKSEL_SPEC , 3 > { CLKSEL_BUSCLK_SEL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Clock Select for Ultra Low Power peripherals\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clksel::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clksel::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CLKSEL_SPEC ; impl crate :: RegisterSpec for CLKSEL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`clksel::R`](R) reader structure"]
impl crate :: Readable for CLKSEL_SPEC { } # [doc = "`write(|w| ..)` method takes [`clksel::W`](W) writer structure"]
impl crate :: Writable for CLKSEL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CLKSEL to value 0"]
impl crate :: Resettable for CLKSEL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "PDBGCTL (rw) register accessor: Peripheral Debug Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pdbgctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pdbgctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pdbgctl`]
module"]
pub type PDBGCTL = crate :: Reg < pdbgctl :: PDBGCTL_SPEC > ; # [doc = "Peripheral Debug Control"]
pub mod pdbgctl { # [doc = "Register `PDBGCTL` reader"]
pub type R = crate :: R < PDBGCTL_SPEC > ; # [doc = "Register `PDBGCTL` writer"]
pub type W = crate :: W < PDBGCTL_SPEC > ; # [doc = "Field `PDBGCTL_FREE` reader - Free run control"]
pub type PDBGCTL_FREE_R = crate :: BitReader < PDBGCTL_FREE_A > ; # [doc = "Free run control\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PDBGCTL_FREE_A { # [doc = "0: STOP"]
PDBGCTL_FREE_STOP = 0 , # [doc = "1: RUN"]
PDBGCTL_FREE_RUN = 1 , } impl From < PDBGCTL_FREE_A > for bool { # [inline (always)]
fn from (variant : PDBGCTL_FREE_A) -> Self { variant as u8 != 0 } } impl PDBGCTL_FREE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PDBGCTL_FREE_A { match self . bits { false => PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP , true => PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN , } } # [doc = "STOP"]
# [inline (always)]
pub fn is_pdbgctl_free_stop (& self) -> bool { * self == PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP } # [doc = "RUN"]
# [inline (always)]
pub fn is_pdbgctl_free_run (& self) -> bool { * self == PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN } } # [doc = "Field `PDBGCTL_FREE` writer - Free run control"]
pub type PDBGCTL_FREE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PDBGCTL_FREE_A > ; impl < 'a , REG , const O : u8 > PDBGCTL_FREE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "STOP"]
# [inline (always)]
pub fn pdbgctl_free_stop (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP) } # [doc = "RUN"]
# [inline (always)]
pub fn pdbgctl_free_run (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN) } } # [doc = "Field `PDBGCTL_SOFT` reader - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
pub type PDBGCTL_SOFT_R = crate :: BitReader < PDBGCTL_SOFT_A > ; # [doc = "Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PDBGCTL_SOFT_A { # [doc = "0: IMMEDIATE"]
PDBGCTL_SOFT_IMMEDIATE = 0 , # [doc = "1: DELAYED"]
PDBGCTL_SOFT_DELAYED = 1 , } impl From < PDBGCTL_SOFT_A > for bool { # [inline (always)]
fn from (variant : PDBGCTL_SOFT_A) -> Self { variant as u8 != 0 } } impl PDBGCTL_SOFT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PDBGCTL_SOFT_A { match self . bits { false => PDBGCTL_SOFT_A :: PDBGCTL_SOFT_IMMEDIATE , true => PDBGCTL_SOFT_A :: PDBGCTL_SOFT_DELAYED , } } # [doc = "IMMEDIATE"]
# [inline (always)]
pub fn is_pdbgctl_soft_immediate (& self) -> bool { * self == PDBGCTL_SOFT_A :: PDBGCTL_SOFT_IMMEDIATE } # [doc = "DELAYED"]
# [inline (always)]
pub fn is_pdbgctl_soft_delayed (& self) -> bool { * self == PDBGCTL_SOFT_A :: PDBGCTL_SOFT_DELAYED } } # [doc = "Field `PDBGCTL_SOFT` writer - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
pub type PDBGCTL_SOFT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PDBGCTL_SOFT_A > ; impl < 'a , REG , const O : u8 > PDBGCTL_SOFT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "IMMEDIATE"]
# [inline (always)]
pub fn pdbgctl_soft_immediate (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_SOFT_A :: PDBGCTL_SOFT_IMMEDIATE) } # [doc = "DELAYED"]
# [inline (always)]
pub fn pdbgctl_soft_delayed (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_SOFT_A :: PDBGCTL_SOFT_DELAYED) } } impl R { # [doc = "Bit 0 - Free run control"]
# [inline (always)]
pub fn pdbgctl_free (& self) -> PDBGCTL_FREE_R { PDBGCTL_FREE_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
# [inline (always)]
pub fn pdbgctl_soft (& self) -> PDBGCTL_SOFT_R { PDBGCTL_SOFT_R :: new (((self . bits >> 1) & 1) != 0) } } impl W { # [doc = "Bit 0 - Free run control"]
# [inline (always)]
# [must_use]
pub fn pdbgctl_free (& mut self) -> PDBGCTL_FREE_W < PDBGCTL_SPEC , 0 > { PDBGCTL_FREE_W :: new (self) } # [doc = "Bit 1 - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
# [inline (always)]
# [must_use]
pub fn pdbgctl_soft (& mut self) -> PDBGCTL_SOFT_W < PDBGCTL_SPEC , 1 > { PDBGCTL_SOFT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Peripheral Debug Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pdbgctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pdbgctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PDBGCTL_SPEC ; impl crate :: RegisterSpec for PDBGCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pdbgctl::R`](R) reader structure"]
impl crate :: Readable for PDBGCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`pdbgctl::W`](W) writer structure"]
impl crate :: Writable for PDBGCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PDBGCTL to value 0"]
impl crate :: Resettable for PDBGCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_IIDX (r) register accessor: Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_iidx`]
module"]
pub type INT_EVENT0_IIDX = crate :: Reg < int_event0_iidx :: INT_EVENT0_IIDX_SPEC > ; # [doc = "Interrupt index"]
pub mod int_event0_iidx { # [doc = "Register `INT_EVENT0_IIDX` reader"]
pub type R = crate :: R < INT_EVENT0_IIDX_SPEC > ; # [doc = "Field `INT_EVENT0_IIDX_STAT` reader - UART Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in UARTRIS and UARTMISC. 15h-1Fh = Reserved"]
pub type INT_EVENT0_IIDX_STAT_R = crate :: FieldReader < INT_EVENT0_IIDX_STAT_A > ; # [doc = "UART Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in UARTRIS and UARTMISC. 15h-1Fh = Reserved\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum INT_EVENT0_IIDX_STAT_A { # [doc = "0: NO_INTR"]
INT_EVENT0_IIDX_STAT_NO_INTR = 0 , # [doc = "1: RTFG"]
INT_EVENT0_IIDX_STAT_RTFG = 1 , # [doc = "2: FEFG"]
INT_EVENT0_IIDX_STAT_FEFG = 2 , # [doc = "3: PEFG"]
INT_EVENT0_IIDX_STAT_PEFG = 3 , # [doc = "4: BEFG"]
INT_EVENT0_IIDX_STAT_BEFG = 4 , # [doc = "5: OEFG"]
INT_EVENT0_IIDX_STAT_OEFG = 5 , # [doc = "6: RXNE"]
INT_EVENT0_IIDX_STAT_RXNE = 6 , # [doc = "7: RXPE"]
INT_EVENT0_IIDX_STAT_RXPE = 7 , # [doc = "8: LINC0"]
INT_EVENT0_IIDX_STAT_LINC0 = 8 , # [doc = "9: LINC1"]
INT_EVENT0_IIDX_STAT_LINC1 = 9 , # [doc = "10: LINOVF"]
INT_EVENT0_IIDX_STAT_LINOVF = 10 , # [doc = "11: RXIFG"]
INT_EVENT0_IIDX_STAT_RXIFG = 11 , # [doc = "12: TXIFG"]
INT_EVENT0_IIDX_STAT_TXIFG = 12 , # [doc = "13: EOT"]
INT_EVENT0_IIDX_STAT_EOT = 13 , # [doc = "14: MODE_9B"]
INT_EVENT0_IIDX_STAT_MODE_9B = 14 , # [doc = "15: CTS"]
INT_EVENT0_IIDX_STAT_CTS = 15 , # [doc = "16: DMA_DONE_RX"]
INT_EVENT0_IIDX_STAT_DMA_DONE_RX = 16 , # [doc = "17: DMA_DONE_TX"]
INT_EVENT0_IIDX_STAT_DMA_DONE_TX = 17 , # [doc = "18: NERR_EVT"]
INT_EVENT0_IIDX_STAT_NERR_EVT = 18 , } impl From < INT_EVENT0_IIDX_STAT_A > for u8 { # [inline (always)]
fn from (variant : INT_EVENT0_IIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for INT_EVENT0_IIDX_STAT_A { type Ux = u8 ; } impl INT_EVENT0_IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < INT_EVENT0_IIDX_STAT_A > { match self . bits { 0 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_NO_INTR) , 1 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_RTFG) , 2 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_FEFG) , 3 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_PEFG) , 4 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_BEFG) , 5 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_OEFG) , 6 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_RXNE) , 7 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_RXPE) , 8 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_LINC0) , 9 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_LINC1) , 10 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_LINOVF) , 11 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_RXIFG) , 12 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_TXIFG) , 13 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_EOT) , 14 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MODE_9B) , 15 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_CTS) , 16 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DMA_DONE_RX) , 17 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DMA_DONE_TX) , 18 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_NERR_EVT) , _ => None , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_no_intr (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_NO_INTR } # [doc = "RTFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_rtfg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_RTFG } # [doc = "FEFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_fefg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_FEFG } # [doc = "PEFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_pefg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_PEFG } # [doc = "BEFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_befg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_BEFG } # [doc = "OEFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_oefg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_OEFG } # [doc = "RXNE"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_rxne (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_RXNE } # [doc = "RXPE"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_rxpe (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_RXPE } # [doc = "LINC0"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_linc0 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_LINC0 } # [doc = "LINC1"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_linc1 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_LINC1 } # [doc = "LINOVF"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_linovf (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_LINOVF } # [doc = "RXIFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_rxifg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_RXIFG } # [doc = "TXIFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_txifg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_TXIFG } # [doc = "EOT"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_eot (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_EOT } # [doc = "MODE_9B"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_mode_9b (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MODE_9B } # [doc = "CTS"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_cts (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_CTS } # [doc = "DMA_DONE_RX"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dma_done_rx (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DMA_DONE_RX } # [doc = "DMA_DONE_TX"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dma_done_tx (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DMA_DONE_TX } # [doc = "NERR_EVT"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_nerr_evt (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_NERR_EVT } } impl R { # [doc = "Bits 0:7 - UART Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in UARTRIS and UARTMISC. 15h-1Fh = Reserved"]
# [inline (always)]
pub fn int_event0_iidx_stat (& self) -> INT_EVENT0_IIDX_STAT_R { INT_EVENT0_IIDX_STAT_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_IIDX_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event0_iidx::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT0_IIDX_SPEC { } # [doc = "`reset()` method sets INT_EVENT0_IIDX to value 0"]
impl crate :: Resettable for INT_EVENT0_IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_IMASK (rw) register accessor: Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_imask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_imask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_imask`]
module"]
pub type INT_EVENT0_IMASK = crate :: Reg < int_event0_imask :: INT_EVENT0_IMASK_SPEC > ; # [doc = "Interrupt mask"]
pub mod int_event0_imask { # [doc = "Register `INT_EVENT0_IMASK` reader"]
pub type R = crate :: R < INT_EVENT0_IMASK_SPEC > ; # [doc = "Register `INT_EVENT0_IMASK` writer"]
pub type W = crate :: W < INT_EVENT0_IMASK_SPEC > ; # [doc = "Field `INT_EVENT0_IMASK_RTOUT` reader - Enable UARTOUT Receive Time-Out Interrupt."]
pub type INT_EVENT0_IMASK_RTOUT_R = crate :: BitReader < INT_EVENT0_IMASK_RTOUT_A > ; # [doc = "Enable UARTOUT Receive Time-Out Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_RTOUT_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_RTOUT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_RTOUT_SET = 1 , } impl From < INT_EVENT0_IMASK_RTOUT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_RTOUT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_RTOUT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_RTOUT_A { match self . bits { false => INT_EVENT0_IMASK_RTOUT_A :: INT_EVENT0_IMASK_RTOUT_CLR , true => INT_EVENT0_IMASK_RTOUT_A :: INT_EVENT0_IMASK_RTOUT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_rtout_clr (& self) -> bool { * self == INT_EVENT0_IMASK_RTOUT_A :: INT_EVENT0_IMASK_RTOUT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_rtout_set (& self) -> bool { * self == INT_EVENT0_IMASK_RTOUT_A :: INT_EVENT0_IMASK_RTOUT_SET } } # [doc = "Field `INT_EVENT0_IMASK_RTOUT` writer - Enable UARTOUT Receive Time-Out Interrupt."]
pub type INT_EVENT0_IMASK_RTOUT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_RTOUT_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_RTOUT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_rtout_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_RTOUT_A :: INT_EVENT0_IMASK_RTOUT_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_rtout_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_RTOUT_A :: INT_EVENT0_IMASK_RTOUT_SET) } } # [doc = "Field `INT_EVENT0_IMASK_FRMERR` reader - Enable UART Framing Error Interrupt."]
pub type INT_EVENT0_IMASK_FRMERR_R = crate :: BitReader < INT_EVENT0_IMASK_FRMERR_A > ; # [doc = "Enable UART Framing Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_FRMERR_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_FRMERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_FRMERR_SET = 1 , } impl From < INT_EVENT0_IMASK_FRMERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_FRMERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_FRMERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_FRMERR_A { match self . bits { false => INT_EVENT0_IMASK_FRMERR_A :: INT_EVENT0_IMASK_FRMERR_CLR , true => INT_EVENT0_IMASK_FRMERR_A :: INT_EVENT0_IMASK_FRMERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_frmerr_clr (& self) -> bool { * self == INT_EVENT0_IMASK_FRMERR_A :: INT_EVENT0_IMASK_FRMERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_frmerr_set (& self) -> bool { * self == INT_EVENT0_IMASK_FRMERR_A :: INT_EVENT0_IMASK_FRMERR_SET } } # [doc = "Field `INT_EVENT0_IMASK_FRMERR` writer - Enable UART Framing Error Interrupt."]
pub type INT_EVENT0_IMASK_FRMERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_FRMERR_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_FRMERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_frmerr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_FRMERR_A :: INT_EVENT0_IMASK_FRMERR_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_frmerr_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_FRMERR_A :: INT_EVENT0_IMASK_FRMERR_SET) } } # [doc = "Field `INT_EVENT0_IMASK_PARERR` reader - Enable UART Parity Error Interrupt."]
pub type INT_EVENT0_IMASK_PARERR_R = crate :: BitReader < INT_EVENT0_IMASK_PARERR_A > ; # [doc = "Enable UART Parity Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_PARERR_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_PARERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_PARERR_SET = 1 , } impl From < INT_EVENT0_IMASK_PARERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_PARERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_PARERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_PARERR_A { match self . bits { false => INT_EVENT0_IMASK_PARERR_A :: INT_EVENT0_IMASK_PARERR_CLR , true => INT_EVENT0_IMASK_PARERR_A :: INT_EVENT0_IMASK_PARERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_parerr_clr (& self) -> bool { * self == INT_EVENT0_IMASK_PARERR_A :: INT_EVENT0_IMASK_PARERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_parerr_set (& self) -> bool { * self == INT_EVENT0_IMASK_PARERR_A :: INT_EVENT0_IMASK_PARERR_SET } } # [doc = "Field `INT_EVENT0_IMASK_PARERR` writer - Enable UART Parity Error Interrupt."]
pub type INT_EVENT0_IMASK_PARERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_PARERR_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_PARERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_parerr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_PARERR_A :: INT_EVENT0_IMASK_PARERR_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_parerr_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_PARERR_A :: INT_EVENT0_IMASK_PARERR_SET) } } # [doc = "Field `INT_EVENT0_IMASK_BRKERR` reader - Enable UART Break Error Interrupt."]
pub type INT_EVENT0_IMASK_BRKERR_R = crate :: BitReader < INT_EVENT0_IMASK_BRKERR_A > ; # [doc = "Enable UART Break Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_BRKERR_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_BRKERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_BRKERR_SET = 1 , } impl From < INT_EVENT0_IMASK_BRKERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_BRKERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_BRKERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_BRKERR_A { match self . bits { false => INT_EVENT0_IMASK_BRKERR_A :: INT_EVENT0_IMASK_BRKERR_CLR , true => INT_EVENT0_IMASK_BRKERR_A :: INT_EVENT0_IMASK_BRKERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_brkerr_clr (& self) -> bool { * self == INT_EVENT0_IMASK_BRKERR_A :: INT_EVENT0_IMASK_BRKERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_brkerr_set (& self) -> bool { * self == INT_EVENT0_IMASK_BRKERR_A :: INT_EVENT0_IMASK_BRKERR_SET } } # [doc = "Field `INT_EVENT0_IMASK_BRKERR` writer - Enable UART Break Error Interrupt."]
pub type INT_EVENT0_IMASK_BRKERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_BRKERR_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_BRKERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_brkerr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_BRKERR_A :: INT_EVENT0_IMASK_BRKERR_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_brkerr_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_BRKERR_A :: INT_EVENT0_IMASK_BRKERR_SET) } } # [doc = "Field `INT_EVENT0_IMASK_OVRERR` reader - Enable UART Receive Overrun Error Interrupt."]
pub type INT_EVENT0_IMASK_OVRERR_R = crate :: BitReader < INT_EVENT0_IMASK_OVRERR_A > ; # [doc = "Enable UART Receive Overrun Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_OVRERR_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_OVRERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_OVRERR_SET = 1 , } impl From < INT_EVENT0_IMASK_OVRERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_OVRERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_OVRERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_OVRERR_A { match self . bits { false => INT_EVENT0_IMASK_OVRERR_A :: INT_EVENT0_IMASK_OVRERR_CLR , true => INT_EVENT0_IMASK_OVRERR_A :: INT_EVENT0_IMASK_OVRERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_ovrerr_clr (& self) -> bool { * self == INT_EVENT0_IMASK_OVRERR_A :: INT_EVENT0_IMASK_OVRERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_ovrerr_set (& self) -> bool { * self == INT_EVENT0_IMASK_OVRERR_A :: INT_EVENT0_IMASK_OVRERR_SET } } # [doc = "Field `INT_EVENT0_IMASK_OVRERR` writer - Enable UART Receive Overrun Error Interrupt."]
pub type INT_EVENT0_IMASK_OVRERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_OVRERR_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_OVRERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_ovrerr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_OVRERR_A :: INT_EVENT0_IMASK_OVRERR_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_ovrerr_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_OVRERR_A :: INT_EVENT0_IMASK_OVRERR_SET) } } # [doc = "Field `INT_EVENT0_IMASK_RXNE` reader - Enable Negative Edge on UARTxRXD Interrupt."]
pub type INT_EVENT0_IMASK_RXNE_R = crate :: BitReader < INT_EVENT0_IMASK_RXNE_A > ; # [doc = "Enable Negative Edge on UARTxRXD Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_RXNE_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_RXNE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_RXNE_SET = 1 , } impl From < INT_EVENT0_IMASK_RXNE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_RXNE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_RXNE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_RXNE_A { match self . bits { false => INT_EVENT0_IMASK_RXNE_A :: INT_EVENT0_IMASK_RXNE_CLR , true => INT_EVENT0_IMASK_RXNE_A :: INT_EVENT0_IMASK_RXNE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_rxne_clr (& self) -> bool { * self == INT_EVENT0_IMASK_RXNE_A :: INT_EVENT0_IMASK_RXNE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_rxne_set (& self) -> bool { * self == INT_EVENT0_IMASK_RXNE_A :: INT_EVENT0_IMASK_RXNE_SET } } # [doc = "Field `INT_EVENT0_IMASK_RXNE` writer - Enable Negative Edge on UARTxRXD Interrupt."]
pub type INT_EVENT0_IMASK_RXNE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_RXNE_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_RXNE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_rxne_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_RXNE_A :: INT_EVENT0_IMASK_RXNE_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_rxne_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_RXNE_A :: INT_EVENT0_IMASK_RXNE_SET) } } # [doc = "Field `INT_EVENT0_IMASK_RXPE` reader - Enable Positive Edge on UARTxRXD Interrupt."]
pub type INT_EVENT0_IMASK_RXPE_R = crate :: BitReader < INT_EVENT0_IMASK_RXPE_A > ; # [doc = "Enable Positive Edge on UARTxRXD Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_RXPE_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_RXPE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_RXPE_SET = 1 , } impl From < INT_EVENT0_IMASK_RXPE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_RXPE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_RXPE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_RXPE_A { match self . bits { false => INT_EVENT0_IMASK_RXPE_A :: INT_EVENT0_IMASK_RXPE_CLR , true => INT_EVENT0_IMASK_RXPE_A :: INT_EVENT0_IMASK_RXPE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_rxpe_clr (& self) -> bool { * self == INT_EVENT0_IMASK_RXPE_A :: INT_EVENT0_IMASK_RXPE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_rxpe_set (& self) -> bool { * self == INT_EVENT0_IMASK_RXPE_A :: INT_EVENT0_IMASK_RXPE_SET } } # [doc = "Field `INT_EVENT0_IMASK_RXPE` writer - Enable Positive Edge on UARTxRXD Interrupt."]
pub type INT_EVENT0_IMASK_RXPE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_RXPE_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_RXPE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_rxpe_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_RXPE_A :: INT_EVENT0_IMASK_RXPE_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_rxpe_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_RXPE_A :: INT_EVENT0_IMASK_RXPE_SET) } } # [doc = "Field `INT_EVENT0_IMASK_RXINT` reader - Enable UART Receive Interrupt."]
pub type INT_EVENT0_IMASK_RXINT_R = crate :: BitReader < INT_EVENT0_IMASK_RXINT_A > ; # [doc = "Enable UART Receive Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_RXINT_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_RXINT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_RXINT_SET = 1 , } impl From < INT_EVENT0_IMASK_RXINT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_RXINT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_RXINT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_RXINT_A { match self . bits { false => INT_EVENT0_IMASK_RXINT_A :: INT_EVENT0_IMASK_RXINT_CLR , true => INT_EVENT0_IMASK_RXINT_A :: INT_EVENT0_IMASK_RXINT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_rxint_clr (& self) -> bool { * self == INT_EVENT0_IMASK_RXINT_A :: INT_EVENT0_IMASK_RXINT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_rxint_set (& self) -> bool { * self == INT_EVENT0_IMASK_RXINT_A :: INT_EVENT0_IMASK_RXINT_SET } } # [doc = "Field `INT_EVENT0_IMASK_RXINT` writer - Enable UART Receive Interrupt."]
pub type INT_EVENT0_IMASK_RXINT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_RXINT_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_RXINT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_rxint_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_RXINT_A :: INT_EVENT0_IMASK_RXINT_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_rxint_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_RXINT_A :: INT_EVENT0_IMASK_RXINT_SET) } } # [doc = "Field `INT_EVENT0_IMASK_TXINT` reader - Enable UART Transmit Interrupt."]
pub type INT_EVENT0_IMASK_TXINT_R = crate :: BitReader < INT_EVENT0_IMASK_TXINT_A > ; # [doc = "Enable UART Transmit Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_TXINT_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_TXINT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_TXINT_SET = 1 , } impl From < INT_EVENT0_IMASK_TXINT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_TXINT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_TXINT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_TXINT_A { match self . bits { false => INT_EVENT0_IMASK_TXINT_A :: INT_EVENT0_IMASK_TXINT_CLR , true => INT_EVENT0_IMASK_TXINT_A :: INT_EVENT0_IMASK_TXINT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_txint_clr (& self) -> bool { * self == INT_EVENT0_IMASK_TXINT_A :: INT_EVENT0_IMASK_TXINT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_txint_set (& self) -> bool { * self == INT_EVENT0_IMASK_TXINT_A :: INT_EVENT0_IMASK_TXINT_SET } } # [doc = "Field `INT_EVENT0_IMASK_TXINT` writer - Enable UART Transmit Interrupt."]
pub type INT_EVENT0_IMASK_TXINT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_TXINT_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_TXINT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_txint_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_TXINT_A :: INT_EVENT0_IMASK_TXINT_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_txint_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_TXINT_A :: INT_EVENT0_IMASK_TXINT_SET) } } # [doc = "Field `INT_EVENT0_IMASK_EOT` reader - Enable UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer."]
pub type INT_EVENT0_IMASK_EOT_R = crate :: BitReader < INT_EVENT0_IMASK_EOT_A > ; # [doc = "Enable UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_EOT_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_EOT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_EOT_SET = 1 , } impl From < INT_EVENT0_IMASK_EOT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_EOT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_EOT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_EOT_A { match self . bits { false => INT_EVENT0_IMASK_EOT_A :: INT_EVENT0_IMASK_EOT_CLR , true => INT_EVENT0_IMASK_EOT_A :: INT_EVENT0_IMASK_EOT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_eot_clr (& self) -> bool { * self == INT_EVENT0_IMASK_EOT_A :: INT_EVENT0_IMASK_EOT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_eot_set (& self) -> bool { * self == INT_EVENT0_IMASK_EOT_A :: INT_EVENT0_IMASK_EOT_SET } } # [doc = "Field `INT_EVENT0_IMASK_EOT` writer - Enable UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer."]
pub type INT_EVENT0_IMASK_EOT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_EOT_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_EOT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_eot_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_EOT_A :: INT_EVENT0_IMASK_EOT_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_eot_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_EOT_A :: INT_EVENT0_IMASK_EOT_SET) } } # [doc = "Field `INT_EVENT0_IMASK_ADDR_MATCH` reader - Enable Address Match Interrupt."]
pub type INT_EVENT0_IMASK_ADDR_MATCH_R = crate :: BitReader < INT_EVENT0_IMASK_ADDR_MATCH_A > ; # [doc = "Enable Address Match Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_ADDR_MATCH_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_ADDR_MATCH_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_ADDR_MATCH_SET = 1 , } impl From < INT_EVENT0_IMASK_ADDR_MATCH_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_ADDR_MATCH_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_ADDR_MATCH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_ADDR_MATCH_A { match self . bits { false => INT_EVENT0_IMASK_ADDR_MATCH_A :: INT_EVENT0_IMASK_ADDR_MATCH_CLR , true => INT_EVENT0_IMASK_ADDR_MATCH_A :: INT_EVENT0_IMASK_ADDR_MATCH_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_addr_match_clr (& self) -> bool { * self == INT_EVENT0_IMASK_ADDR_MATCH_A :: INT_EVENT0_IMASK_ADDR_MATCH_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_addr_match_set (& self) -> bool { * self == INT_EVENT0_IMASK_ADDR_MATCH_A :: INT_EVENT0_IMASK_ADDR_MATCH_SET } } # [doc = "Field `INT_EVENT0_IMASK_ADDR_MATCH` writer - Enable Address Match Interrupt."]
pub type INT_EVENT0_IMASK_ADDR_MATCH_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_ADDR_MATCH_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_ADDR_MATCH_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_addr_match_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_ADDR_MATCH_A :: INT_EVENT0_IMASK_ADDR_MATCH_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_addr_match_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_ADDR_MATCH_A :: INT_EVENT0_IMASK_ADDR_MATCH_SET) } } # [doc = "Field `INT_EVENT0_IMASK_CTS` reader - Enable UART Clear to Send Modem Interrupt. 0 = Interrupt disabled"]
pub type INT_EVENT0_IMASK_CTS_R = crate :: BitReader < INT_EVENT0_IMASK_CTS_A > ; # [doc = "Enable UART Clear to Send Modem Interrupt. 0 = Interrupt disabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_CTS_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_CTS_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_CTS_SET = 1 , } impl From < INT_EVENT0_IMASK_CTS_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_CTS_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_CTS_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_CTS_A { match self . bits { false => INT_EVENT0_IMASK_CTS_A :: INT_EVENT0_IMASK_CTS_CLR , true => INT_EVENT0_IMASK_CTS_A :: INT_EVENT0_IMASK_CTS_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_cts_clr (& self) -> bool { * self == INT_EVENT0_IMASK_CTS_A :: INT_EVENT0_IMASK_CTS_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_cts_set (& self) -> bool { * self == INT_EVENT0_IMASK_CTS_A :: INT_EVENT0_IMASK_CTS_SET } } # [doc = "Field `INT_EVENT0_IMASK_CTS` writer - Enable UART Clear to Send Modem Interrupt. 0 = Interrupt disabled"]
pub type INT_EVENT0_IMASK_CTS_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_CTS_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_CTS_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_cts_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_CTS_A :: INT_EVENT0_IMASK_CTS_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_cts_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_CTS_A :: INT_EVENT0_IMASK_CTS_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DMA_DONE_RX` reader - Enable DMA Done on RX Event Channel"]
pub type INT_EVENT0_IMASK_DMA_DONE_RX_R = crate :: BitReader < INT_EVENT0_IMASK_DMA_DONE_RX_A > ; # [doc = "Enable DMA Done on RX Event Channel\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DMA_DONE_RX_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DMA_DONE_RX_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DMA_DONE_RX_SET = 1 , } impl From < INT_EVENT0_IMASK_DMA_DONE_RX_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DMA_DONE_RX_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DMA_DONE_RX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DMA_DONE_RX_A { match self . bits { false => INT_EVENT0_IMASK_DMA_DONE_RX_A :: INT_EVENT0_IMASK_DMA_DONE_RX_CLR , true => INT_EVENT0_IMASK_DMA_DONE_RX_A :: INT_EVENT0_IMASK_DMA_DONE_RX_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dma_done_rx_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DMA_DONE_RX_A :: INT_EVENT0_IMASK_DMA_DONE_RX_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dma_done_rx_set (& self) -> bool { * self == INT_EVENT0_IMASK_DMA_DONE_RX_A :: INT_EVENT0_IMASK_DMA_DONE_RX_SET } } # [doc = "Field `INT_EVENT0_IMASK_DMA_DONE_RX` writer - Enable DMA Done on RX Event Channel"]
pub type INT_EVENT0_IMASK_DMA_DONE_RX_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DMA_DONE_RX_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DMA_DONE_RX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dma_done_rx_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DMA_DONE_RX_A :: INT_EVENT0_IMASK_DMA_DONE_RX_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dma_done_rx_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DMA_DONE_RX_A :: INT_EVENT0_IMASK_DMA_DONE_RX_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DMA_DONE_TX` reader - Enable DMA Done on TX Event Channel"]
pub type INT_EVENT0_IMASK_DMA_DONE_TX_R = crate :: BitReader < INT_EVENT0_IMASK_DMA_DONE_TX_A > ; # [doc = "Enable DMA Done on TX Event Channel\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DMA_DONE_TX_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DMA_DONE_TX_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DMA_DONE_TX_SET = 1 , } impl From < INT_EVENT0_IMASK_DMA_DONE_TX_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DMA_DONE_TX_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DMA_DONE_TX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DMA_DONE_TX_A { match self . bits { false => INT_EVENT0_IMASK_DMA_DONE_TX_A :: INT_EVENT0_IMASK_DMA_DONE_TX_CLR , true => INT_EVENT0_IMASK_DMA_DONE_TX_A :: INT_EVENT0_IMASK_DMA_DONE_TX_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dma_done_tx_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DMA_DONE_TX_A :: INT_EVENT0_IMASK_DMA_DONE_TX_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dma_done_tx_set (& self) -> bool { * self == INT_EVENT0_IMASK_DMA_DONE_TX_A :: INT_EVENT0_IMASK_DMA_DONE_TX_SET } } # [doc = "Field `INT_EVENT0_IMASK_DMA_DONE_TX` writer - Enable DMA Done on TX Event Channel"]
pub type INT_EVENT0_IMASK_DMA_DONE_TX_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DMA_DONE_TX_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DMA_DONE_TX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dma_done_tx_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DMA_DONE_TX_A :: INT_EVENT0_IMASK_DMA_DONE_TX_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dma_done_tx_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DMA_DONE_TX_A :: INT_EVENT0_IMASK_DMA_DONE_TX_SET) } } # [doc = "Field `INT_EVENT0_IMASK_NERR` reader - Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal"]
pub type INT_EVENT0_IMASK_NERR_R = crate :: BitReader < INT_EVENT0_IMASK_NERR_A > ; # [doc = "Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_NERR_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_NERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_NERR_SET = 1 , } impl From < INT_EVENT0_IMASK_NERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_NERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_NERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_NERR_A { match self . bits { false => INT_EVENT0_IMASK_NERR_A :: INT_EVENT0_IMASK_NERR_CLR , true => INT_EVENT0_IMASK_NERR_A :: INT_EVENT0_IMASK_NERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_nerr_clr (& self) -> bool { * self == INT_EVENT0_IMASK_NERR_A :: INT_EVENT0_IMASK_NERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_nerr_set (& self) -> bool { * self == INT_EVENT0_IMASK_NERR_A :: INT_EVENT0_IMASK_NERR_SET } } # [doc = "Field `INT_EVENT0_IMASK_NERR` writer - Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal"]
pub type INT_EVENT0_IMASK_NERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_NERR_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_NERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_nerr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_NERR_A :: INT_EVENT0_IMASK_NERR_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_nerr_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_NERR_A :: INT_EVENT0_IMASK_NERR_SET) } } impl R { # [doc = "Bit 0 - Enable UARTOUT Receive Time-Out Interrupt."]
# [inline (always)]
pub fn int_event0_imask_rtout (& self) -> INT_EVENT0_IMASK_RTOUT_R { INT_EVENT0_IMASK_RTOUT_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Enable UART Framing Error Interrupt."]
# [inline (always)]
pub fn int_event0_imask_frmerr (& self) -> INT_EVENT0_IMASK_FRMERR_R { INT_EVENT0_IMASK_FRMERR_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Enable UART Parity Error Interrupt."]
# [inline (always)]
pub fn int_event0_imask_parerr (& self) -> INT_EVENT0_IMASK_PARERR_R { INT_EVENT0_IMASK_PARERR_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Enable UART Break Error Interrupt."]
# [inline (always)]
pub fn int_event0_imask_brkerr (& self) -> INT_EVENT0_IMASK_BRKERR_R { INT_EVENT0_IMASK_BRKERR_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - Enable UART Receive Overrun Error Interrupt."]
# [inline (always)]
pub fn int_event0_imask_ovrerr (& self) -> INT_EVENT0_IMASK_OVRERR_R { INT_EVENT0_IMASK_OVRERR_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Enable Negative Edge on UARTxRXD Interrupt."]
# [inline (always)]
pub fn int_event0_imask_rxne (& self) -> INT_EVENT0_IMASK_RXNE_R { INT_EVENT0_IMASK_RXNE_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - Enable Positive Edge on UARTxRXD Interrupt."]
# [inline (always)]
pub fn int_event0_imask_rxpe (& self) -> INT_EVENT0_IMASK_RXPE_R { INT_EVENT0_IMASK_RXPE_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 10 - Enable UART Receive Interrupt."]
# [inline (always)]
pub fn int_event0_imask_rxint (& self) -> INT_EVENT0_IMASK_RXINT_R { INT_EVENT0_IMASK_RXINT_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bit 11 - Enable UART Transmit Interrupt."]
# [inline (always)]
pub fn int_event0_imask_txint (& self) -> INT_EVENT0_IMASK_TXINT_R { INT_EVENT0_IMASK_TXINT_R :: new (((self . bits >> 11) & 1) != 0) } # [doc = "Bit 12 - Enable UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer."]
# [inline (always)]
pub fn int_event0_imask_eot (& self) -> INT_EVENT0_IMASK_EOT_R { INT_EVENT0_IMASK_EOT_R :: new (((self . bits >> 12) & 1) != 0) } # [doc = "Bit 13 - Enable Address Match Interrupt."]
# [inline (always)]
pub fn int_event0_imask_addr_match (& self) -> INT_EVENT0_IMASK_ADDR_MATCH_R { INT_EVENT0_IMASK_ADDR_MATCH_R :: new (((self . bits >> 13) & 1) != 0) } # [doc = "Bit 14 - Enable UART Clear to Send Modem Interrupt. 0 = Interrupt disabled"]
# [inline (always)]
pub fn int_event0_imask_cts (& self) -> INT_EVENT0_IMASK_CTS_R { INT_EVENT0_IMASK_CTS_R :: new (((self . bits >> 14) & 1) != 0) } # [doc = "Bit 15 - Enable DMA Done on RX Event Channel"]
# [inline (always)]
pub fn int_event0_imask_dma_done_rx (& self) -> INT_EVENT0_IMASK_DMA_DONE_RX_R { INT_EVENT0_IMASK_DMA_DONE_RX_R :: new (((self . bits >> 15) & 1) != 0) } # [doc = "Bit 16 - Enable DMA Done on TX Event Channel"]
# [inline (always)]
pub fn int_event0_imask_dma_done_tx (& self) -> INT_EVENT0_IMASK_DMA_DONE_TX_R { INT_EVENT0_IMASK_DMA_DONE_TX_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 17 - Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal"]
# [inline (always)]
pub fn int_event0_imask_nerr (& self) -> INT_EVENT0_IMASK_NERR_R { INT_EVENT0_IMASK_NERR_R :: new (((self . bits >> 17) & 1) != 0) } } impl W { # [doc = "Bit 0 - Enable UARTOUT Receive Time-Out Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_rtout (& mut self) -> INT_EVENT0_IMASK_RTOUT_W < INT_EVENT0_IMASK_SPEC , 0 > { INT_EVENT0_IMASK_RTOUT_W :: new (self) } # [doc = "Bit 1 - Enable UART Framing Error Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_frmerr (& mut self) -> INT_EVENT0_IMASK_FRMERR_W < INT_EVENT0_IMASK_SPEC , 1 > { INT_EVENT0_IMASK_FRMERR_W :: new (self) } # [doc = "Bit 2 - Enable UART Parity Error Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_parerr (& mut self) -> INT_EVENT0_IMASK_PARERR_W < INT_EVENT0_IMASK_SPEC , 2 > { INT_EVENT0_IMASK_PARERR_W :: new (self) } # [doc = "Bit 3 - Enable UART Break Error Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_brkerr (& mut self) -> INT_EVENT0_IMASK_BRKERR_W < INT_EVENT0_IMASK_SPEC , 3 > { INT_EVENT0_IMASK_BRKERR_W :: new (self) } # [doc = "Bit 4 - Enable UART Receive Overrun Error Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_ovrerr (& mut self) -> INT_EVENT0_IMASK_OVRERR_W < INT_EVENT0_IMASK_SPEC , 4 > { INT_EVENT0_IMASK_OVRERR_W :: new (self) } # [doc = "Bit 5 - Enable Negative Edge on UARTxRXD Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_rxne (& mut self) -> INT_EVENT0_IMASK_RXNE_W < INT_EVENT0_IMASK_SPEC , 5 > { INT_EVENT0_IMASK_RXNE_W :: new (self) } # [doc = "Bit 6 - Enable Positive Edge on UARTxRXD Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_rxpe (& mut self) -> INT_EVENT0_IMASK_RXPE_W < INT_EVENT0_IMASK_SPEC , 6 > { INT_EVENT0_IMASK_RXPE_W :: new (self) } # [doc = "Bit 10 - Enable UART Receive Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_rxint (& mut self) -> INT_EVENT0_IMASK_RXINT_W < INT_EVENT0_IMASK_SPEC , 10 > { INT_EVENT0_IMASK_RXINT_W :: new (self) } # [doc = "Bit 11 - Enable UART Transmit Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_txint (& mut self) -> INT_EVENT0_IMASK_TXINT_W < INT_EVENT0_IMASK_SPEC , 11 > { INT_EVENT0_IMASK_TXINT_W :: new (self) } # [doc = "Bit 12 - Enable UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_eot (& mut self) -> INT_EVENT0_IMASK_EOT_W < INT_EVENT0_IMASK_SPEC , 12 > { INT_EVENT0_IMASK_EOT_W :: new (self) } # [doc = "Bit 13 - Enable Address Match Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_addr_match (& mut self) -> INT_EVENT0_IMASK_ADDR_MATCH_W < INT_EVENT0_IMASK_SPEC , 13 > { INT_EVENT0_IMASK_ADDR_MATCH_W :: new (self) } # [doc = "Bit 14 - Enable UART Clear to Send Modem Interrupt. 0 = Interrupt disabled"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_cts (& mut self) -> INT_EVENT0_IMASK_CTS_W < INT_EVENT0_IMASK_SPEC , 14 > { INT_EVENT0_IMASK_CTS_W :: new (self) } # [doc = "Bit 15 - Enable DMA Done on RX Event Channel"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dma_done_rx (& mut self) -> INT_EVENT0_IMASK_DMA_DONE_RX_W < INT_EVENT0_IMASK_SPEC , 15 > { INT_EVENT0_IMASK_DMA_DONE_RX_W :: new (self) } # [doc = "Bit 16 - Enable DMA Done on TX Event Channel"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dma_done_tx (& mut self) -> INT_EVENT0_IMASK_DMA_DONE_TX_W < INT_EVENT0_IMASK_SPEC , 16 > { INT_EVENT0_IMASK_DMA_DONE_TX_W :: new (self) } # [doc = "Bit 17 - Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_nerr (& mut self) -> INT_EVENT0_IMASK_NERR_W < INT_EVENT0_IMASK_SPEC , 17 > { INT_EVENT0_IMASK_NERR_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_imask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_imask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_IMASK_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event0_imask::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT0_IMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`int_event0_imask::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT0_IMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT0_IMASK to value 0"]
impl crate :: Resettable for INT_EVENT0_IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_RIS (r) register accessor: Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_ris`]
module"]
pub type INT_EVENT0_RIS = crate :: Reg < int_event0_ris :: INT_EVENT0_RIS_SPEC > ; # [doc = "Raw interrupt status"]
pub mod int_event0_ris { # [doc = "Register `INT_EVENT0_RIS` reader"]
pub type R = crate :: R < INT_EVENT0_RIS_SPEC > ; # [doc = "Field `INT_EVENT0_RIS_RTOUT` reader - UARTOUT Receive Time-Out Interrupt."]
pub type INT_EVENT0_RIS_RTOUT_R = crate :: BitReader < INT_EVENT0_RIS_RTOUT_A > ; # [doc = "UARTOUT Receive Time-Out Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_RTOUT_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_RTOUT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_RTOUT_SET = 1 , } impl From < INT_EVENT0_RIS_RTOUT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_RTOUT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_RTOUT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_RTOUT_A { match self . bits { false => INT_EVENT0_RIS_RTOUT_A :: INT_EVENT0_RIS_RTOUT_CLR , true => INT_EVENT0_RIS_RTOUT_A :: INT_EVENT0_RIS_RTOUT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_rtout_clr (& self) -> bool { * self == INT_EVENT0_RIS_RTOUT_A :: INT_EVENT0_RIS_RTOUT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_rtout_set (& self) -> bool { * self == INT_EVENT0_RIS_RTOUT_A :: INT_EVENT0_RIS_RTOUT_SET } } # [doc = "Field `INT_EVENT0_RIS_FRMERR` reader - UART Framing Error Interrupt."]
pub type INT_EVENT0_RIS_FRMERR_R = crate :: BitReader < INT_EVENT0_RIS_FRMERR_A > ; # [doc = "UART Framing Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_FRMERR_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_FRMERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_FRMERR_SET = 1 , } impl From < INT_EVENT0_RIS_FRMERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_FRMERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_FRMERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_FRMERR_A { match self . bits { false => INT_EVENT0_RIS_FRMERR_A :: INT_EVENT0_RIS_FRMERR_CLR , true => INT_EVENT0_RIS_FRMERR_A :: INT_EVENT0_RIS_FRMERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_frmerr_clr (& self) -> bool { * self == INT_EVENT0_RIS_FRMERR_A :: INT_EVENT0_RIS_FRMERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_frmerr_set (& self) -> bool { * self == INT_EVENT0_RIS_FRMERR_A :: INT_EVENT0_RIS_FRMERR_SET } } # [doc = "Field `INT_EVENT0_RIS_PARERR` reader - UART Parity Error Interrupt."]
pub type INT_EVENT0_RIS_PARERR_R = crate :: BitReader < INT_EVENT0_RIS_PARERR_A > ; # [doc = "UART Parity Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_PARERR_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_PARERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_PARERR_SET = 1 , } impl From < INT_EVENT0_RIS_PARERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_PARERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_PARERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_PARERR_A { match self . bits { false => INT_EVENT0_RIS_PARERR_A :: INT_EVENT0_RIS_PARERR_CLR , true => INT_EVENT0_RIS_PARERR_A :: INT_EVENT0_RIS_PARERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_parerr_clr (& self) -> bool { * self == INT_EVENT0_RIS_PARERR_A :: INT_EVENT0_RIS_PARERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_parerr_set (& self) -> bool { * self == INT_EVENT0_RIS_PARERR_A :: INT_EVENT0_RIS_PARERR_SET } } # [doc = "Field `INT_EVENT0_RIS_BRKERR` reader - UART Break Error Interrupt."]
pub type INT_EVENT0_RIS_BRKERR_R = crate :: BitReader < INT_EVENT0_RIS_BRKERR_A > ; # [doc = "UART Break Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_BRKERR_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_BRKERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_BRKERR_SET = 1 , } impl From < INT_EVENT0_RIS_BRKERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_BRKERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_BRKERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_BRKERR_A { match self . bits { false => INT_EVENT0_RIS_BRKERR_A :: INT_EVENT0_RIS_BRKERR_CLR , true => INT_EVENT0_RIS_BRKERR_A :: INT_EVENT0_RIS_BRKERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_brkerr_clr (& self) -> bool { * self == INT_EVENT0_RIS_BRKERR_A :: INT_EVENT0_RIS_BRKERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_brkerr_set (& self) -> bool { * self == INT_EVENT0_RIS_BRKERR_A :: INT_EVENT0_RIS_BRKERR_SET } } # [doc = "Field `INT_EVENT0_RIS_OVRERR` reader - UART Receive Overrun Error Interrupt."]
pub type INT_EVENT0_RIS_OVRERR_R = crate :: BitReader < INT_EVENT0_RIS_OVRERR_A > ; # [doc = "UART Receive Overrun Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_OVRERR_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_OVRERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_OVRERR_SET = 1 , } impl From < INT_EVENT0_RIS_OVRERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_OVRERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_OVRERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_OVRERR_A { match self . bits { false => INT_EVENT0_RIS_OVRERR_A :: INT_EVENT0_RIS_OVRERR_CLR , true => INT_EVENT0_RIS_OVRERR_A :: INT_EVENT0_RIS_OVRERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_ovrerr_clr (& self) -> bool { * self == INT_EVENT0_RIS_OVRERR_A :: INT_EVENT0_RIS_OVRERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_ovrerr_set (& self) -> bool { * self == INT_EVENT0_RIS_OVRERR_A :: INT_EVENT0_RIS_OVRERR_SET } } # [doc = "Field `INT_EVENT0_RIS_RXNE` reader - Negative Edge on UARTxRXD Interrupt."]
pub type INT_EVENT0_RIS_RXNE_R = crate :: BitReader < INT_EVENT0_RIS_RXNE_A > ; # [doc = "Negative Edge on UARTxRXD Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_RXNE_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_RXNE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_RXNE_SET = 1 , } impl From < INT_EVENT0_RIS_RXNE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_RXNE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_RXNE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_RXNE_A { match self . bits { false => INT_EVENT0_RIS_RXNE_A :: INT_EVENT0_RIS_RXNE_CLR , true => INT_EVENT0_RIS_RXNE_A :: INT_EVENT0_RIS_RXNE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_rxne_clr (& self) -> bool { * self == INT_EVENT0_RIS_RXNE_A :: INT_EVENT0_RIS_RXNE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_rxne_set (& self) -> bool { * self == INT_EVENT0_RIS_RXNE_A :: INT_EVENT0_RIS_RXNE_SET } } # [doc = "Field `INT_EVENT0_RIS_RXPE` reader - Positive Edge on UARTxRXD Interrupt."]
pub type INT_EVENT0_RIS_RXPE_R = crate :: BitReader < INT_EVENT0_RIS_RXPE_A > ; # [doc = "Positive Edge on UARTxRXD Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_RXPE_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_RXPE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_RXPE_SET = 1 , } impl From < INT_EVENT0_RIS_RXPE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_RXPE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_RXPE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_RXPE_A { match self . bits { false => INT_EVENT0_RIS_RXPE_A :: INT_EVENT0_RIS_RXPE_CLR , true => INT_EVENT0_RIS_RXPE_A :: INT_EVENT0_RIS_RXPE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_rxpe_clr (& self) -> bool { * self == INT_EVENT0_RIS_RXPE_A :: INT_EVENT0_RIS_RXPE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_rxpe_set (& self) -> bool { * self == INT_EVENT0_RIS_RXPE_A :: INT_EVENT0_RIS_RXPE_SET } } # [doc = "Field `INT_EVENT0_RIS_RXINT` reader - UART Receive Interrupt."]
pub type INT_EVENT0_RIS_RXINT_R = crate :: BitReader < INT_EVENT0_RIS_RXINT_A > ; # [doc = "UART Receive Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_RXINT_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_RXINT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_RXINT_SET = 1 , } impl From < INT_EVENT0_RIS_RXINT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_RXINT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_RXINT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_RXINT_A { match self . bits { false => INT_EVENT0_RIS_RXINT_A :: INT_EVENT0_RIS_RXINT_CLR , true => INT_EVENT0_RIS_RXINT_A :: INT_EVENT0_RIS_RXINT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_rxint_clr (& self) -> bool { * self == INT_EVENT0_RIS_RXINT_A :: INT_EVENT0_RIS_RXINT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_rxint_set (& self) -> bool { * self == INT_EVENT0_RIS_RXINT_A :: INT_EVENT0_RIS_RXINT_SET } } # [doc = "Field `INT_EVENT0_RIS_TXINT` reader - UART Transmit Interrupt."]
pub type INT_EVENT0_RIS_TXINT_R = crate :: BitReader < INT_EVENT0_RIS_TXINT_A > ; # [doc = "UART Transmit Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_TXINT_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_TXINT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_TXINT_SET = 1 , } impl From < INT_EVENT0_RIS_TXINT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_TXINT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_TXINT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_TXINT_A { match self . bits { false => INT_EVENT0_RIS_TXINT_A :: INT_EVENT0_RIS_TXINT_CLR , true => INT_EVENT0_RIS_TXINT_A :: INT_EVENT0_RIS_TXINT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_txint_clr (& self) -> bool { * self == INT_EVENT0_RIS_TXINT_A :: INT_EVENT0_RIS_TXINT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_txint_set (& self) -> bool { * self == INT_EVENT0_RIS_TXINT_A :: INT_EVENT0_RIS_TXINT_SET } } # [doc = "Field `INT_EVENT0_RIS_EOT` reader - UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer."]
pub type INT_EVENT0_RIS_EOT_R = crate :: BitReader < INT_EVENT0_RIS_EOT_A > ; # [doc = "UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_EOT_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_EOT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_EOT_SET = 1 , } impl From < INT_EVENT0_RIS_EOT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_EOT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_EOT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_EOT_A { match self . bits { false => INT_EVENT0_RIS_EOT_A :: INT_EVENT0_RIS_EOT_CLR , true => INT_EVENT0_RIS_EOT_A :: INT_EVENT0_RIS_EOT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_eot_clr (& self) -> bool { * self == INT_EVENT0_RIS_EOT_A :: INT_EVENT0_RIS_EOT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_eot_set (& self) -> bool { * self == INT_EVENT0_RIS_EOT_A :: INT_EVENT0_RIS_EOT_SET } } # [doc = "Field `INT_EVENT0_RIS_ADDR_MATCH` reader - Address Match Interrupt."]
pub type INT_EVENT0_RIS_ADDR_MATCH_R = crate :: BitReader < INT_EVENT0_RIS_ADDR_MATCH_A > ; # [doc = "Address Match Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_ADDR_MATCH_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_ADDR_MATCH_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_ADDR_MATCH_SET = 1 , } impl From < INT_EVENT0_RIS_ADDR_MATCH_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_ADDR_MATCH_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_ADDR_MATCH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_ADDR_MATCH_A { match self . bits { false => INT_EVENT0_RIS_ADDR_MATCH_A :: INT_EVENT0_RIS_ADDR_MATCH_CLR , true => INT_EVENT0_RIS_ADDR_MATCH_A :: INT_EVENT0_RIS_ADDR_MATCH_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_addr_match_clr (& self) -> bool { * self == INT_EVENT0_RIS_ADDR_MATCH_A :: INT_EVENT0_RIS_ADDR_MATCH_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_addr_match_set (& self) -> bool { * self == INT_EVENT0_RIS_ADDR_MATCH_A :: INT_EVENT0_RIS_ADDR_MATCH_SET } } # [doc = "Field `INT_EVENT0_RIS_CTS` reader - UART Clear to Send Modem Interrupt. 0 = Interrupt disabled"]
pub type INT_EVENT0_RIS_CTS_R = crate :: BitReader < INT_EVENT0_RIS_CTS_A > ; # [doc = "UART Clear to Send Modem Interrupt. 0 = Interrupt disabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_CTS_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_CTS_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_CTS_SET = 1 , } impl From < INT_EVENT0_RIS_CTS_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_CTS_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_CTS_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_CTS_A { match self . bits { false => INT_EVENT0_RIS_CTS_A :: INT_EVENT0_RIS_CTS_CLR , true => INT_EVENT0_RIS_CTS_A :: INT_EVENT0_RIS_CTS_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_cts_clr (& self) -> bool { * self == INT_EVENT0_RIS_CTS_A :: INT_EVENT0_RIS_CTS_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_cts_set (& self) -> bool { * self == INT_EVENT0_RIS_CTS_A :: INT_EVENT0_RIS_CTS_SET } } # [doc = "Field `INT_EVENT0_RIS_DMA_DONE_RX` reader - DMA Done on RX Event Channel"]
pub type INT_EVENT0_RIS_DMA_DONE_RX_R = crate :: BitReader < INT_EVENT0_RIS_DMA_DONE_RX_A > ; # [doc = "DMA Done on RX Event Channel\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DMA_DONE_RX_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DMA_DONE_RX_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DMA_DONE_RX_SET = 1 , } impl From < INT_EVENT0_RIS_DMA_DONE_RX_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DMA_DONE_RX_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DMA_DONE_RX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DMA_DONE_RX_A { match self . bits { false => INT_EVENT0_RIS_DMA_DONE_RX_A :: INT_EVENT0_RIS_DMA_DONE_RX_CLR , true => INT_EVENT0_RIS_DMA_DONE_RX_A :: INT_EVENT0_RIS_DMA_DONE_RX_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dma_done_rx_clr (& self) -> bool { * self == INT_EVENT0_RIS_DMA_DONE_RX_A :: INT_EVENT0_RIS_DMA_DONE_RX_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dma_done_rx_set (& self) -> bool { * self == INT_EVENT0_RIS_DMA_DONE_RX_A :: INT_EVENT0_RIS_DMA_DONE_RX_SET } } # [doc = "Field `INT_EVENT0_RIS_DMA_DONE_TX` reader - DMA Done on TX Event Channel"]
pub type INT_EVENT0_RIS_DMA_DONE_TX_R = crate :: BitReader < INT_EVENT0_RIS_DMA_DONE_TX_A > ; # [doc = "DMA Done on TX Event Channel\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DMA_DONE_TX_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DMA_DONE_TX_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DMA_DONE_TX_SET = 1 , } impl From < INT_EVENT0_RIS_DMA_DONE_TX_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DMA_DONE_TX_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DMA_DONE_TX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DMA_DONE_TX_A { match self . bits { false => INT_EVENT0_RIS_DMA_DONE_TX_A :: INT_EVENT0_RIS_DMA_DONE_TX_CLR , true => INT_EVENT0_RIS_DMA_DONE_TX_A :: INT_EVENT0_RIS_DMA_DONE_TX_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dma_done_tx_clr (& self) -> bool { * self == INT_EVENT0_RIS_DMA_DONE_TX_A :: INT_EVENT0_RIS_DMA_DONE_TX_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dma_done_tx_set (& self) -> bool { * self == INT_EVENT0_RIS_DMA_DONE_TX_A :: INT_EVENT0_RIS_DMA_DONE_TX_SET } } # [doc = "Field `INT_EVENT0_RIS_NERR` reader - Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal"]
pub type INT_EVENT0_RIS_NERR_R = crate :: BitReader < INT_EVENT0_RIS_NERR_A > ; # [doc = "Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_NERR_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_NERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_NERR_SET = 1 , } impl From < INT_EVENT0_RIS_NERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_NERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_NERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_NERR_A { match self . bits { false => INT_EVENT0_RIS_NERR_A :: INT_EVENT0_RIS_NERR_CLR , true => INT_EVENT0_RIS_NERR_A :: INT_EVENT0_RIS_NERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_nerr_clr (& self) -> bool { * self == INT_EVENT0_RIS_NERR_A :: INT_EVENT0_RIS_NERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_nerr_set (& self) -> bool { * self == INT_EVENT0_RIS_NERR_A :: INT_EVENT0_RIS_NERR_SET } } impl R { # [doc = "Bit 0 - UARTOUT Receive Time-Out Interrupt."]
# [inline (always)]
pub fn int_event0_ris_rtout (& self) -> INT_EVENT0_RIS_RTOUT_R { INT_EVENT0_RIS_RTOUT_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - UART Framing Error Interrupt."]
# [inline (always)]
pub fn int_event0_ris_frmerr (& self) -> INT_EVENT0_RIS_FRMERR_R { INT_EVENT0_RIS_FRMERR_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - UART Parity Error Interrupt."]
# [inline (always)]
pub fn int_event0_ris_parerr (& self) -> INT_EVENT0_RIS_PARERR_R { INT_EVENT0_RIS_PARERR_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - UART Break Error Interrupt."]
# [inline (always)]
pub fn int_event0_ris_brkerr (& self) -> INT_EVENT0_RIS_BRKERR_R { INT_EVENT0_RIS_BRKERR_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - UART Receive Overrun Error Interrupt."]
# [inline (always)]
pub fn int_event0_ris_ovrerr (& self) -> INT_EVENT0_RIS_OVRERR_R { INT_EVENT0_RIS_OVRERR_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Negative Edge on UARTxRXD Interrupt."]
# [inline (always)]
pub fn int_event0_ris_rxne (& self) -> INT_EVENT0_RIS_RXNE_R { INT_EVENT0_RIS_RXNE_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - Positive Edge on UARTxRXD Interrupt."]
# [inline (always)]
pub fn int_event0_ris_rxpe (& self) -> INT_EVENT0_RIS_RXPE_R { INT_EVENT0_RIS_RXPE_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 10 - UART Receive Interrupt."]
# [inline (always)]
pub fn int_event0_ris_rxint (& self) -> INT_EVENT0_RIS_RXINT_R { INT_EVENT0_RIS_RXINT_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bit 11 - UART Transmit Interrupt."]
# [inline (always)]
pub fn int_event0_ris_txint (& self) -> INT_EVENT0_RIS_TXINT_R { INT_EVENT0_RIS_TXINT_R :: new (((self . bits >> 11) & 1) != 0) } # [doc = "Bit 12 - UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer."]
# [inline (always)]
pub fn int_event0_ris_eot (& self) -> INT_EVENT0_RIS_EOT_R { INT_EVENT0_RIS_EOT_R :: new (((self . bits >> 12) & 1) != 0) } # [doc = "Bit 13 - Address Match Interrupt."]
# [inline (always)]
pub fn int_event0_ris_addr_match (& self) -> INT_EVENT0_RIS_ADDR_MATCH_R { INT_EVENT0_RIS_ADDR_MATCH_R :: new (((self . bits >> 13) & 1) != 0) } # [doc = "Bit 14 - UART Clear to Send Modem Interrupt. 0 = Interrupt disabled"]
# [inline (always)]
pub fn int_event0_ris_cts (& self) -> INT_EVENT0_RIS_CTS_R { INT_EVENT0_RIS_CTS_R :: new (((self . bits >> 14) & 1) != 0) } # [doc = "Bit 15 - DMA Done on RX Event Channel"]
# [inline (always)]
pub fn int_event0_ris_dma_done_rx (& self) -> INT_EVENT0_RIS_DMA_DONE_RX_R { INT_EVENT0_RIS_DMA_DONE_RX_R :: new (((self . bits >> 15) & 1) != 0) } # [doc = "Bit 16 - DMA Done on TX Event Channel"]
# [inline (always)]
pub fn int_event0_ris_dma_done_tx (& self) -> INT_EVENT0_RIS_DMA_DONE_TX_R { INT_EVENT0_RIS_DMA_DONE_TX_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 17 - Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal"]
# [inline (always)]
pub fn int_event0_ris_nerr (& self) -> INT_EVENT0_RIS_NERR_R { INT_EVENT0_RIS_NERR_R :: new (((self . bits >> 17) & 1) != 0) } } # [doc = "Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_RIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event0_ris::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT0_RIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT0_RIS to value 0"]
impl crate :: Resettable for INT_EVENT0_RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_MIS (r) register accessor: Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_mis`]
module"]
pub type INT_EVENT0_MIS = crate :: Reg < int_event0_mis :: INT_EVENT0_MIS_SPEC > ; # [doc = "Masked interrupt status"]
pub mod int_event0_mis { # [doc = "Register `INT_EVENT0_MIS` reader"]
pub type R = crate :: R < INT_EVENT0_MIS_SPEC > ; # [doc = "Field `INT_EVENT0_MIS_RTOUT` reader - Masked UARTOUT Receive Time-Out Interrupt."]
pub type INT_EVENT0_MIS_RTOUT_R = crate :: BitReader < INT_EVENT0_MIS_RTOUT_A > ; # [doc = "Masked UARTOUT Receive Time-Out Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_RTOUT_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_RTOUT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_RTOUT_SET = 1 , } impl From < INT_EVENT0_MIS_RTOUT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_RTOUT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_RTOUT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_RTOUT_A { match self . bits { false => INT_EVENT0_MIS_RTOUT_A :: INT_EVENT0_MIS_RTOUT_CLR , true => INT_EVENT0_MIS_RTOUT_A :: INT_EVENT0_MIS_RTOUT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_rtout_clr (& self) -> bool { * self == INT_EVENT0_MIS_RTOUT_A :: INT_EVENT0_MIS_RTOUT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_rtout_set (& self) -> bool { * self == INT_EVENT0_MIS_RTOUT_A :: INT_EVENT0_MIS_RTOUT_SET } } # [doc = "Field `INT_EVENT0_MIS_FRMERR` reader - Masked UART Framing Error Interrupt."]
pub type INT_EVENT0_MIS_FRMERR_R = crate :: BitReader < INT_EVENT0_MIS_FRMERR_A > ; # [doc = "Masked UART Framing Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_FRMERR_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_FRMERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_FRMERR_SET = 1 , } impl From < INT_EVENT0_MIS_FRMERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_FRMERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_FRMERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_FRMERR_A { match self . bits { false => INT_EVENT0_MIS_FRMERR_A :: INT_EVENT0_MIS_FRMERR_CLR , true => INT_EVENT0_MIS_FRMERR_A :: INT_EVENT0_MIS_FRMERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_frmerr_clr (& self) -> bool { * self == INT_EVENT0_MIS_FRMERR_A :: INT_EVENT0_MIS_FRMERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_frmerr_set (& self) -> bool { * self == INT_EVENT0_MIS_FRMERR_A :: INT_EVENT0_MIS_FRMERR_SET } } # [doc = "Field `INT_EVENT0_MIS_PARERR` reader - Masked UART Parity Error Interrupt."]
pub type INT_EVENT0_MIS_PARERR_R = crate :: BitReader < INT_EVENT0_MIS_PARERR_A > ; # [doc = "Masked UART Parity Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_PARERR_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_PARERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_PARERR_SET = 1 , } impl From < INT_EVENT0_MIS_PARERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_PARERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_PARERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_PARERR_A { match self . bits { false => INT_EVENT0_MIS_PARERR_A :: INT_EVENT0_MIS_PARERR_CLR , true => INT_EVENT0_MIS_PARERR_A :: INT_EVENT0_MIS_PARERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_parerr_clr (& self) -> bool { * self == INT_EVENT0_MIS_PARERR_A :: INT_EVENT0_MIS_PARERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_parerr_set (& self) -> bool { * self == INT_EVENT0_MIS_PARERR_A :: INT_EVENT0_MIS_PARERR_SET } } # [doc = "Field `INT_EVENT0_MIS_BRKERR` reader - Masked UART Break Error Interrupt."]
pub type INT_EVENT0_MIS_BRKERR_R = crate :: BitReader < INT_EVENT0_MIS_BRKERR_A > ; # [doc = "Masked UART Break Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_BRKERR_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_BRKERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_BRKERR_SET = 1 , } impl From < INT_EVENT0_MIS_BRKERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_BRKERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_BRKERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_BRKERR_A { match self . bits { false => INT_EVENT0_MIS_BRKERR_A :: INT_EVENT0_MIS_BRKERR_CLR , true => INT_EVENT0_MIS_BRKERR_A :: INT_EVENT0_MIS_BRKERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_brkerr_clr (& self) -> bool { * self == INT_EVENT0_MIS_BRKERR_A :: INT_EVENT0_MIS_BRKERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_brkerr_set (& self) -> bool { * self == INT_EVENT0_MIS_BRKERR_A :: INT_EVENT0_MIS_BRKERR_SET } } # [doc = "Field `INT_EVENT0_MIS_OVRERR` reader - Masked UART Receive Overrun Error Interrupt."]
pub type INT_EVENT0_MIS_OVRERR_R = crate :: BitReader < INT_EVENT0_MIS_OVRERR_A > ; # [doc = "Masked UART Receive Overrun Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_OVRERR_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_OVRERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_OVRERR_SET = 1 , } impl From < INT_EVENT0_MIS_OVRERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_OVRERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_OVRERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_OVRERR_A { match self . bits { false => INT_EVENT0_MIS_OVRERR_A :: INT_EVENT0_MIS_OVRERR_CLR , true => INT_EVENT0_MIS_OVRERR_A :: INT_EVENT0_MIS_OVRERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_ovrerr_clr (& self) -> bool { * self == INT_EVENT0_MIS_OVRERR_A :: INT_EVENT0_MIS_OVRERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_ovrerr_set (& self) -> bool { * self == INT_EVENT0_MIS_OVRERR_A :: INT_EVENT0_MIS_OVRERR_SET } } # [doc = "Field `INT_EVENT0_MIS_RXNE` reader - Masked Negative Edge on UARTxRXD Interrupt."]
pub type INT_EVENT0_MIS_RXNE_R = crate :: BitReader < INT_EVENT0_MIS_RXNE_A > ; # [doc = "Masked Negative Edge on UARTxRXD Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_RXNE_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_RXNE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_RXNE_SET = 1 , } impl From < INT_EVENT0_MIS_RXNE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_RXNE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_RXNE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_RXNE_A { match self . bits { false => INT_EVENT0_MIS_RXNE_A :: INT_EVENT0_MIS_RXNE_CLR , true => INT_EVENT0_MIS_RXNE_A :: INT_EVENT0_MIS_RXNE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_rxne_clr (& self) -> bool { * self == INT_EVENT0_MIS_RXNE_A :: INT_EVENT0_MIS_RXNE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_rxne_set (& self) -> bool { * self == INT_EVENT0_MIS_RXNE_A :: INT_EVENT0_MIS_RXNE_SET } } # [doc = "Field `INT_EVENT0_MIS_RXPE` reader - Masked Positive Edge on UARTxRXD Interrupt."]
pub type INT_EVENT0_MIS_RXPE_R = crate :: BitReader < INT_EVENT0_MIS_RXPE_A > ; # [doc = "Masked Positive Edge on UARTxRXD Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_RXPE_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_RXPE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_RXPE_SET = 1 , } impl From < INT_EVENT0_MIS_RXPE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_RXPE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_RXPE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_RXPE_A { match self . bits { false => INT_EVENT0_MIS_RXPE_A :: INT_EVENT0_MIS_RXPE_CLR , true => INT_EVENT0_MIS_RXPE_A :: INT_EVENT0_MIS_RXPE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_rxpe_clr (& self) -> bool { * self == INT_EVENT0_MIS_RXPE_A :: INT_EVENT0_MIS_RXPE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_rxpe_set (& self) -> bool { * self == INT_EVENT0_MIS_RXPE_A :: INT_EVENT0_MIS_RXPE_SET } } # [doc = "Field `INT_EVENT0_MIS_RXINT` reader - Masked UART Receive Interrupt."]
pub type INT_EVENT0_MIS_RXINT_R = crate :: BitReader < INT_EVENT0_MIS_RXINT_A > ; # [doc = "Masked UART Receive Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_RXINT_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_RXINT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_RXINT_SET = 1 , } impl From < INT_EVENT0_MIS_RXINT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_RXINT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_RXINT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_RXINT_A { match self . bits { false => INT_EVENT0_MIS_RXINT_A :: INT_EVENT0_MIS_RXINT_CLR , true => INT_EVENT0_MIS_RXINT_A :: INT_EVENT0_MIS_RXINT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_rxint_clr (& self) -> bool { * self == INT_EVENT0_MIS_RXINT_A :: INT_EVENT0_MIS_RXINT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_rxint_set (& self) -> bool { * self == INT_EVENT0_MIS_RXINT_A :: INT_EVENT0_MIS_RXINT_SET } } # [doc = "Field `INT_EVENT0_MIS_TXINT` reader - Masked UART Transmit Interrupt."]
pub type INT_EVENT0_MIS_TXINT_R = crate :: BitReader < INT_EVENT0_MIS_TXINT_A > ; # [doc = "Masked UART Transmit Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_TXINT_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_TXINT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_TXINT_SET = 1 , } impl From < INT_EVENT0_MIS_TXINT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_TXINT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_TXINT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_TXINT_A { match self . bits { false => INT_EVENT0_MIS_TXINT_A :: INT_EVENT0_MIS_TXINT_CLR , true => INT_EVENT0_MIS_TXINT_A :: INT_EVENT0_MIS_TXINT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_txint_clr (& self) -> bool { * self == INT_EVENT0_MIS_TXINT_A :: INT_EVENT0_MIS_TXINT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_txint_set (& self) -> bool { * self == INT_EVENT0_MIS_TXINT_A :: INT_EVENT0_MIS_TXINT_SET } } # [doc = "Field `INT_EVENT0_MIS_EOT` reader - UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer."]
pub type INT_EVENT0_MIS_EOT_R = crate :: BitReader < INT_EVENT0_MIS_EOT_A > ; # [doc = "UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_EOT_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_EOT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_EOT_SET = 1 , } impl From < INT_EVENT0_MIS_EOT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_EOT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_EOT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_EOT_A { match self . bits { false => INT_EVENT0_MIS_EOT_A :: INT_EVENT0_MIS_EOT_CLR , true => INT_EVENT0_MIS_EOT_A :: INT_EVENT0_MIS_EOT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_eot_clr (& self) -> bool { * self == INT_EVENT0_MIS_EOT_A :: INT_EVENT0_MIS_EOT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_eot_set (& self) -> bool { * self == INT_EVENT0_MIS_EOT_A :: INT_EVENT0_MIS_EOT_SET } } # [doc = "Field `INT_EVENT0_MIS_ADDR_MATCH` reader - Masked Address Match Interrupt."]
pub type INT_EVENT0_MIS_ADDR_MATCH_R = crate :: BitReader < INT_EVENT0_MIS_ADDR_MATCH_A > ; # [doc = "Masked Address Match Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_ADDR_MATCH_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_ADDR_MATCH_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_ADDR_MATCH_SET = 1 , } impl From < INT_EVENT0_MIS_ADDR_MATCH_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_ADDR_MATCH_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_ADDR_MATCH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_ADDR_MATCH_A { match self . bits { false => INT_EVENT0_MIS_ADDR_MATCH_A :: INT_EVENT0_MIS_ADDR_MATCH_CLR , true => INT_EVENT0_MIS_ADDR_MATCH_A :: INT_EVENT0_MIS_ADDR_MATCH_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_addr_match_clr (& self) -> bool { * self == INT_EVENT0_MIS_ADDR_MATCH_A :: INT_EVENT0_MIS_ADDR_MATCH_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_addr_match_set (& self) -> bool { * self == INT_EVENT0_MIS_ADDR_MATCH_A :: INT_EVENT0_MIS_ADDR_MATCH_SET } } # [doc = "Field `INT_EVENT0_MIS_CTS` reader - Masked UART Clear to Send Modem Interrupt. 0 = Interrupt disabled"]
pub type INT_EVENT0_MIS_CTS_R = crate :: BitReader < INT_EVENT0_MIS_CTS_A > ; # [doc = "Masked UART Clear to Send Modem Interrupt. 0 = Interrupt disabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_CTS_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_CTS_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_CTS_SET = 1 , } impl From < INT_EVENT0_MIS_CTS_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_CTS_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_CTS_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_CTS_A { match self . bits { false => INT_EVENT0_MIS_CTS_A :: INT_EVENT0_MIS_CTS_CLR , true => INT_EVENT0_MIS_CTS_A :: INT_EVENT0_MIS_CTS_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_cts_clr (& self) -> bool { * self == INT_EVENT0_MIS_CTS_A :: INT_EVENT0_MIS_CTS_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_cts_set (& self) -> bool { * self == INT_EVENT0_MIS_CTS_A :: INT_EVENT0_MIS_CTS_SET } } # [doc = "Field `INT_EVENT0_MIS_DMA_DONE_RX` reader - Masked DMA Done on RX Event Channel"]
pub type INT_EVENT0_MIS_DMA_DONE_RX_R = crate :: BitReader < INT_EVENT0_MIS_DMA_DONE_RX_A > ; # [doc = "Masked DMA Done on RX Event Channel\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DMA_DONE_RX_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DMA_DONE_RX_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DMA_DONE_RX_SET = 1 , } impl From < INT_EVENT0_MIS_DMA_DONE_RX_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DMA_DONE_RX_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DMA_DONE_RX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DMA_DONE_RX_A { match self . bits { false => INT_EVENT0_MIS_DMA_DONE_RX_A :: INT_EVENT0_MIS_DMA_DONE_RX_CLR , true => INT_EVENT0_MIS_DMA_DONE_RX_A :: INT_EVENT0_MIS_DMA_DONE_RX_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dma_done_rx_clr (& self) -> bool { * self == INT_EVENT0_MIS_DMA_DONE_RX_A :: INT_EVENT0_MIS_DMA_DONE_RX_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dma_done_rx_set (& self) -> bool { * self == INT_EVENT0_MIS_DMA_DONE_RX_A :: INT_EVENT0_MIS_DMA_DONE_RX_SET } } # [doc = "Field `INT_EVENT0_MIS_DMA_DONE_TX` reader - Masked DMA Done on TX Event Channel"]
pub type INT_EVENT0_MIS_DMA_DONE_TX_R = crate :: BitReader < INT_EVENT0_MIS_DMA_DONE_TX_A > ; # [doc = "Masked DMA Done on TX Event Channel\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DMA_DONE_TX_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DMA_DONE_TX_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DMA_DONE_TX_SET = 1 , } impl From < INT_EVENT0_MIS_DMA_DONE_TX_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DMA_DONE_TX_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DMA_DONE_TX_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DMA_DONE_TX_A { match self . bits { false => INT_EVENT0_MIS_DMA_DONE_TX_A :: INT_EVENT0_MIS_DMA_DONE_TX_CLR , true => INT_EVENT0_MIS_DMA_DONE_TX_A :: INT_EVENT0_MIS_DMA_DONE_TX_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dma_done_tx_clr (& self) -> bool { * self == INT_EVENT0_MIS_DMA_DONE_TX_A :: INT_EVENT0_MIS_DMA_DONE_TX_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dma_done_tx_set (& self) -> bool { * self == INT_EVENT0_MIS_DMA_DONE_TX_A :: INT_EVENT0_MIS_DMA_DONE_TX_SET } } # [doc = "Field `INT_EVENT0_MIS_NERR` reader - Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal"]
pub type INT_EVENT0_MIS_NERR_R = crate :: BitReader < INT_EVENT0_MIS_NERR_A > ; # [doc = "Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_NERR_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_NERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_NERR_SET = 1 , } impl From < INT_EVENT0_MIS_NERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_NERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_NERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_NERR_A { match self . bits { false => INT_EVENT0_MIS_NERR_A :: INT_EVENT0_MIS_NERR_CLR , true => INT_EVENT0_MIS_NERR_A :: INT_EVENT0_MIS_NERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_nerr_clr (& self) -> bool { * self == INT_EVENT0_MIS_NERR_A :: INT_EVENT0_MIS_NERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_nerr_set (& self) -> bool { * self == INT_EVENT0_MIS_NERR_A :: INT_EVENT0_MIS_NERR_SET } } impl R { # [doc = "Bit 0 - Masked UARTOUT Receive Time-Out Interrupt."]
# [inline (always)]
pub fn int_event0_mis_rtout (& self) -> INT_EVENT0_MIS_RTOUT_R { INT_EVENT0_MIS_RTOUT_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Masked UART Framing Error Interrupt."]
# [inline (always)]
pub fn int_event0_mis_frmerr (& self) -> INT_EVENT0_MIS_FRMERR_R { INT_EVENT0_MIS_FRMERR_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Masked UART Parity Error Interrupt."]
# [inline (always)]
pub fn int_event0_mis_parerr (& self) -> INT_EVENT0_MIS_PARERR_R { INT_EVENT0_MIS_PARERR_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Masked UART Break Error Interrupt."]
# [inline (always)]
pub fn int_event0_mis_brkerr (& self) -> INT_EVENT0_MIS_BRKERR_R { INT_EVENT0_MIS_BRKERR_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - Masked UART Receive Overrun Error Interrupt."]
# [inline (always)]
pub fn int_event0_mis_ovrerr (& self) -> INT_EVENT0_MIS_OVRERR_R { INT_EVENT0_MIS_OVRERR_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Masked Negative Edge on UARTxRXD Interrupt."]
# [inline (always)]
pub fn int_event0_mis_rxne (& self) -> INT_EVENT0_MIS_RXNE_R { INT_EVENT0_MIS_RXNE_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - Masked Positive Edge on UARTxRXD Interrupt."]
# [inline (always)]
pub fn int_event0_mis_rxpe (& self) -> INT_EVENT0_MIS_RXPE_R { INT_EVENT0_MIS_RXPE_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 10 - Masked UART Receive Interrupt."]
# [inline (always)]
pub fn int_event0_mis_rxint (& self) -> INT_EVENT0_MIS_RXINT_R { INT_EVENT0_MIS_RXINT_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bit 11 - Masked UART Transmit Interrupt."]
# [inline (always)]
pub fn int_event0_mis_txint (& self) -> INT_EVENT0_MIS_TXINT_R { INT_EVENT0_MIS_TXINT_R :: new (((self . bits >> 11) & 1) != 0) } # [doc = "Bit 12 - UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer."]
# [inline (always)]
pub fn int_event0_mis_eot (& self) -> INT_EVENT0_MIS_EOT_R { INT_EVENT0_MIS_EOT_R :: new (((self . bits >> 12) & 1) != 0) } # [doc = "Bit 13 - Masked Address Match Interrupt."]
# [inline (always)]
pub fn int_event0_mis_addr_match (& self) -> INT_EVENT0_MIS_ADDR_MATCH_R { INT_EVENT0_MIS_ADDR_MATCH_R :: new (((self . bits >> 13) & 1) != 0) } # [doc = "Bit 14 - Masked UART Clear to Send Modem Interrupt. 0 = Interrupt disabled"]
# [inline (always)]
pub fn int_event0_mis_cts (& self) -> INT_EVENT0_MIS_CTS_R { INT_EVENT0_MIS_CTS_R :: new (((self . bits >> 14) & 1) != 0) } # [doc = "Bit 15 - Masked DMA Done on RX Event Channel"]
# [inline (always)]
pub fn int_event0_mis_dma_done_rx (& self) -> INT_EVENT0_MIS_DMA_DONE_RX_R { INT_EVENT0_MIS_DMA_DONE_RX_R :: new (((self . bits >> 15) & 1) != 0) } # [doc = "Bit 16 - Masked DMA Done on TX Event Channel"]
# [inline (always)]
pub fn int_event0_mis_dma_done_tx (& self) -> INT_EVENT0_MIS_DMA_DONE_TX_R { INT_EVENT0_MIS_DMA_DONE_TX_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 17 - Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal"]
# [inline (always)]
pub fn int_event0_mis_nerr (& self) -> INT_EVENT0_MIS_NERR_R { INT_EVENT0_MIS_NERR_R :: new (((self . bits >> 17) & 1) != 0) } } # [doc = "Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_MIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event0_mis::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT0_MIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT0_MIS to value 0"]
impl crate :: Resettable for INT_EVENT0_MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_ISET (w) register accessor: Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_iset`]
module"]
pub type INT_EVENT0_ISET = crate :: Reg < int_event0_iset :: INT_EVENT0_ISET_SPEC > ; # [doc = "Interrupt set"]
pub mod int_event0_iset { # [doc = "Register `INT_EVENT0_ISET` writer"]
pub type W = crate :: W < INT_EVENT0_ISET_SPEC > ; # [doc = "Set UARTOUT Receive Time-Out Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_RTOUT_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_RTOUT_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_RTOUT_SET = 1 , } impl From < INT_EVENT0_ISET_RTOUT_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_RTOUT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_RTOUT` writer - Set UARTOUT Receive Time-Out Interrupt."]
pub type INT_EVENT0_ISET_RTOUT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_RTOUT_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_RTOUT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_rtout_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_RTOUT_AW :: INT_EVENT0_ISET_RTOUT_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_rtout_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_RTOUT_AW :: INT_EVENT0_ISET_RTOUT_SET) } } # [doc = "Set UART Framing Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_FRMERR_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_FRMERR_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_FRMERR_SET = 1 , } impl From < INT_EVENT0_ISET_FRMERR_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_FRMERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_FRMERR` writer - Set UART Framing Error Interrupt."]
pub type INT_EVENT0_ISET_FRMERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_FRMERR_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_FRMERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_frmerr_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_FRMERR_AW :: INT_EVENT0_ISET_FRMERR_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_frmerr_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_FRMERR_AW :: INT_EVENT0_ISET_FRMERR_SET) } } # [doc = "Set UART Parity Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_PARERR_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_PARERR_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_PARERR_SET = 1 , } impl From < INT_EVENT0_ISET_PARERR_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_PARERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_PARERR` writer - Set UART Parity Error Interrupt."]
pub type INT_EVENT0_ISET_PARERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_PARERR_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_PARERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_parerr_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_PARERR_AW :: INT_EVENT0_ISET_PARERR_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_parerr_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_PARERR_AW :: INT_EVENT0_ISET_PARERR_SET) } } # [doc = "Set UART Break Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_BRKERR_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_BRKERR_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_BRKERR_SET = 1 , } impl From < INT_EVENT0_ISET_BRKERR_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_BRKERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_BRKERR` writer - Set UART Break Error Interrupt."]
pub type INT_EVENT0_ISET_BRKERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_BRKERR_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_BRKERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_brkerr_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_BRKERR_AW :: INT_EVENT0_ISET_BRKERR_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_brkerr_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_BRKERR_AW :: INT_EVENT0_ISET_BRKERR_SET) } } # [doc = "Set UART Receive Overrun Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_OVRERR_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_OVRERR_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_OVRERR_SET = 1 , } impl From < INT_EVENT0_ISET_OVRERR_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_OVRERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_OVRERR` writer - Set UART Receive Overrun Error Interrupt."]
pub type INT_EVENT0_ISET_OVRERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_OVRERR_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_OVRERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_ovrerr_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_OVRERR_AW :: INT_EVENT0_ISET_OVRERR_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_ovrerr_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_OVRERR_AW :: INT_EVENT0_ISET_OVRERR_SET) } } # [doc = "Set Negative Edge on UARTxRXD Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_RXNE_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_RXNE_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_RXNE_SET = 1 , } impl From < INT_EVENT0_ISET_RXNE_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_RXNE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_RXNE` writer - Set Negative Edge on UARTxRXD Interrupt."]
pub type INT_EVENT0_ISET_RXNE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_RXNE_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_RXNE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_rxne_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_RXNE_AW :: INT_EVENT0_ISET_RXNE_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_rxne_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_RXNE_AW :: INT_EVENT0_ISET_RXNE_SET) } } # [doc = "Set Positive Edge on UARTxRXD Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_RXPE_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_RXPE_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_RXPE_SET = 1 , } impl From < INT_EVENT0_ISET_RXPE_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_RXPE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_RXPE` writer - Set Positive Edge on UARTxRXD Interrupt."]
pub type INT_EVENT0_ISET_RXPE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_RXPE_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_RXPE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_rxpe_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_RXPE_AW :: INT_EVENT0_ISET_RXPE_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_rxpe_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_RXPE_AW :: INT_EVENT0_ISET_RXPE_SET) } } # [doc = "Set UART Receive Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_RXINT_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_RXINT_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_RXINT_SET = 1 , } impl From < INT_EVENT0_ISET_RXINT_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_RXINT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_RXINT` writer - Set UART Receive Interrupt."]
pub type INT_EVENT0_ISET_RXINT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_RXINT_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_RXINT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_rxint_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_RXINT_AW :: INT_EVENT0_ISET_RXINT_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_rxint_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_RXINT_AW :: INT_EVENT0_ISET_RXINT_SET) } } # [doc = "Set UART Transmit Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_TXINT_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_TXINT_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_TXINT_SET = 1 , } impl From < INT_EVENT0_ISET_TXINT_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_TXINT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_TXINT` writer - Set UART Transmit Interrupt."]
pub type INT_EVENT0_ISET_TXINT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_TXINT_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_TXINT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_txint_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_TXINT_AW :: INT_EVENT0_ISET_TXINT_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_txint_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_TXINT_AW :: INT_EVENT0_ISET_TXINT_SET) } } # [doc = "Set UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_EOT_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_EOT_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_EOT_SET = 1 , } impl From < INT_EVENT0_ISET_EOT_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_EOT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_EOT` writer - Set UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer."]
pub type INT_EVENT0_ISET_EOT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_EOT_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_EOT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_eot_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_EOT_AW :: INT_EVENT0_ISET_EOT_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_eot_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_EOT_AW :: INT_EVENT0_ISET_EOT_SET) } } # [doc = "Set Address Match Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_ADDR_MATCH_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_ADDR_MATCH_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_ADDR_MATCH_SET = 1 , } impl From < INT_EVENT0_ISET_ADDR_MATCH_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_ADDR_MATCH_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_ADDR_MATCH` writer - Set Address Match Interrupt."]
pub type INT_EVENT0_ISET_ADDR_MATCH_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_ADDR_MATCH_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_ADDR_MATCH_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_addr_match_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_ADDR_MATCH_AW :: INT_EVENT0_ISET_ADDR_MATCH_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_addr_match_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_ADDR_MATCH_AW :: INT_EVENT0_ISET_ADDR_MATCH_SET) } } # [doc = "Set UART Clear to Send Modem Interrupt. 0 = Interrupt disabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_CTS_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_CTS_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_CTS_SET = 1 , } impl From < INT_EVENT0_ISET_CTS_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_CTS_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_CTS` writer - Set UART Clear to Send Modem Interrupt. 0 = Interrupt disabled"]
pub type INT_EVENT0_ISET_CTS_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_CTS_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_CTS_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_cts_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_CTS_AW :: INT_EVENT0_ISET_CTS_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_cts_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_CTS_AW :: INT_EVENT0_ISET_CTS_SET) } } # [doc = "Set DMA Done on RX Event Channel\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DMA_DONE_RX_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DMA_DONE_RX_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DMA_DONE_RX_SET = 1 , } impl From < INT_EVENT0_ISET_DMA_DONE_RX_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DMA_DONE_RX_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DMA_DONE_RX` writer - Set DMA Done on RX Event Channel"]
pub type INT_EVENT0_ISET_DMA_DONE_RX_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DMA_DONE_RX_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DMA_DONE_RX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dma_done_rx_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DMA_DONE_RX_AW :: INT_EVENT0_ISET_DMA_DONE_RX_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dma_done_rx_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DMA_DONE_RX_AW :: INT_EVENT0_ISET_DMA_DONE_RX_SET) } } # [doc = "Set DMA Done on TX Event Channel\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DMA_DONE_TX_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DMA_DONE_TX_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DMA_DONE_TX_SET = 1 , } impl From < INT_EVENT0_ISET_DMA_DONE_TX_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DMA_DONE_TX_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DMA_DONE_TX` writer - Set DMA Done on TX Event Channel"]
pub type INT_EVENT0_ISET_DMA_DONE_TX_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DMA_DONE_TX_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DMA_DONE_TX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dma_done_tx_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DMA_DONE_TX_AW :: INT_EVENT0_ISET_DMA_DONE_TX_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dma_done_tx_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DMA_DONE_TX_AW :: INT_EVENT0_ISET_DMA_DONE_TX_SET) } } # [doc = "Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_NERR_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_NERR_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_NERR_SET = 1 , } impl From < INT_EVENT0_ISET_NERR_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_NERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_NERR` writer - Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal"]
pub type INT_EVENT0_ISET_NERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_NERR_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_NERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_nerr_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_NERR_AW :: INT_EVENT0_ISET_NERR_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_nerr_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_NERR_AW :: INT_EVENT0_ISET_NERR_SET) } } impl W { # [doc = "Bit 0 - Set UARTOUT Receive Time-Out Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_rtout (& mut self) -> INT_EVENT0_ISET_RTOUT_W < INT_EVENT0_ISET_SPEC , 0 > { INT_EVENT0_ISET_RTOUT_W :: new (self) } # [doc = "Bit 1 - Set UART Framing Error Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_frmerr (& mut self) -> INT_EVENT0_ISET_FRMERR_W < INT_EVENT0_ISET_SPEC , 1 > { INT_EVENT0_ISET_FRMERR_W :: new (self) } # [doc = "Bit 2 - Set UART Parity Error Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_parerr (& mut self) -> INT_EVENT0_ISET_PARERR_W < INT_EVENT0_ISET_SPEC , 2 > { INT_EVENT0_ISET_PARERR_W :: new (self) } # [doc = "Bit 3 - Set UART Break Error Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_brkerr (& mut self) -> INT_EVENT0_ISET_BRKERR_W < INT_EVENT0_ISET_SPEC , 3 > { INT_EVENT0_ISET_BRKERR_W :: new (self) } # [doc = "Bit 4 - Set UART Receive Overrun Error Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_ovrerr (& mut self) -> INT_EVENT0_ISET_OVRERR_W < INT_EVENT0_ISET_SPEC , 4 > { INT_EVENT0_ISET_OVRERR_W :: new (self) } # [doc = "Bit 5 - Set Negative Edge on UARTxRXD Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_rxne (& mut self) -> INT_EVENT0_ISET_RXNE_W < INT_EVENT0_ISET_SPEC , 5 > { INT_EVENT0_ISET_RXNE_W :: new (self) } # [doc = "Bit 6 - Set Positive Edge on UARTxRXD Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_rxpe (& mut self) -> INT_EVENT0_ISET_RXPE_W < INT_EVENT0_ISET_SPEC , 6 > { INT_EVENT0_ISET_RXPE_W :: new (self) } # [doc = "Bit 10 - Set UART Receive Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_rxint (& mut self) -> INT_EVENT0_ISET_RXINT_W < INT_EVENT0_ISET_SPEC , 10 > { INT_EVENT0_ISET_RXINT_W :: new (self) } # [doc = "Bit 11 - Set UART Transmit Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_txint (& mut self) -> INT_EVENT0_ISET_TXINT_W < INT_EVENT0_ISET_SPEC , 11 > { INT_EVENT0_ISET_TXINT_W :: new (self) } # [doc = "Bit 12 - Set UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_eot (& mut self) -> INT_EVENT0_ISET_EOT_W < INT_EVENT0_ISET_SPEC , 12 > { INT_EVENT0_ISET_EOT_W :: new (self) } # [doc = "Bit 13 - Set Address Match Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_addr_match (& mut self) -> INT_EVENT0_ISET_ADDR_MATCH_W < INT_EVENT0_ISET_SPEC , 13 > { INT_EVENT0_ISET_ADDR_MATCH_W :: new (self) } # [doc = "Bit 14 - Set UART Clear to Send Modem Interrupt. 0 = Interrupt disabled"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_cts (& mut self) -> INT_EVENT0_ISET_CTS_W < INT_EVENT0_ISET_SPEC , 14 > { INT_EVENT0_ISET_CTS_W :: new (self) } # [doc = "Bit 15 - Set DMA Done on RX Event Channel"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dma_done_rx (& mut self) -> INT_EVENT0_ISET_DMA_DONE_RX_W < INT_EVENT0_ISET_SPEC , 15 > { INT_EVENT0_ISET_DMA_DONE_RX_W :: new (self) } # [doc = "Bit 16 - Set DMA Done on TX Event Channel"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dma_done_tx (& mut self) -> INT_EVENT0_ISET_DMA_DONE_TX_W < INT_EVENT0_ISET_SPEC , 16 > { INT_EVENT0_ISET_DMA_DONE_TX_W :: new (self) } # [doc = "Bit 17 - Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_nerr (& mut self) -> INT_EVENT0_ISET_NERR_W < INT_EVENT0_ISET_SPEC , 17 > { INT_EVENT0_ISET_NERR_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_ISET_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event0_iset::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT0_ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT0_ISET to value 0"]
impl crate :: Resettable for INT_EVENT0_ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_ICLR (w) register accessor: Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_iclr`]
module"]
pub type INT_EVENT0_ICLR = crate :: Reg < int_event0_iclr :: INT_EVENT0_ICLR_SPEC > ; # [doc = "Interrupt clear"]
pub mod int_event0_iclr { # [doc = "Register `INT_EVENT0_ICLR` writer"]
pub type W = crate :: W < INT_EVENT0_ICLR_SPEC > ; # [doc = "Clear UARTOUT Receive Time-Out Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_RTOUT_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_RTOUT_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_RTOUT_CLR = 1 , } impl From < INT_EVENT0_ICLR_RTOUT_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_RTOUT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_RTOUT` writer - Clear UARTOUT Receive Time-Out Interrupt."]
pub type INT_EVENT0_ICLR_RTOUT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_RTOUT_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_RTOUT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_rtout_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_RTOUT_AW :: INT_EVENT0_ICLR_RTOUT_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_rtout_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_RTOUT_AW :: INT_EVENT0_ICLR_RTOUT_CLR) } } # [doc = "Clear UART Framing Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_FRMERR_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_FRMERR_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_FRMERR_CLR = 1 , } impl From < INT_EVENT0_ICLR_FRMERR_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_FRMERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_FRMERR` writer - Clear UART Framing Error Interrupt."]
pub type INT_EVENT0_ICLR_FRMERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_FRMERR_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_FRMERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_frmerr_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_FRMERR_AW :: INT_EVENT0_ICLR_FRMERR_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_frmerr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_FRMERR_AW :: INT_EVENT0_ICLR_FRMERR_CLR) } } # [doc = "Clear UART Parity Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_PARERR_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_PARERR_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_PARERR_CLR = 1 , } impl From < INT_EVENT0_ICLR_PARERR_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_PARERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_PARERR` writer - Clear UART Parity Error Interrupt."]
pub type INT_EVENT0_ICLR_PARERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_PARERR_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_PARERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_parerr_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_PARERR_AW :: INT_EVENT0_ICLR_PARERR_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_parerr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_PARERR_AW :: INT_EVENT0_ICLR_PARERR_CLR) } } # [doc = "Clear UART Break Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_BRKERR_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_BRKERR_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_BRKERR_CLR = 1 , } impl From < INT_EVENT0_ICLR_BRKERR_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_BRKERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_BRKERR` writer - Clear UART Break Error Interrupt."]
pub type INT_EVENT0_ICLR_BRKERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_BRKERR_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_BRKERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_brkerr_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_BRKERR_AW :: INT_EVENT0_ICLR_BRKERR_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_brkerr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_BRKERR_AW :: INT_EVENT0_ICLR_BRKERR_CLR) } } # [doc = "Clear UART Receive Overrun Error Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_OVRERR_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_OVRERR_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_OVRERR_CLR = 1 , } impl From < INT_EVENT0_ICLR_OVRERR_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_OVRERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_OVRERR` writer - Clear UART Receive Overrun Error Interrupt."]
pub type INT_EVENT0_ICLR_OVRERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_OVRERR_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_OVRERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_ovrerr_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_OVRERR_AW :: INT_EVENT0_ICLR_OVRERR_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_ovrerr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_OVRERR_AW :: INT_EVENT0_ICLR_OVRERR_CLR) } } # [doc = "Clear Negative Edge on UARTxRXD Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_RXNE_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_RXNE_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_RXNE_CLR = 1 , } impl From < INT_EVENT0_ICLR_RXNE_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_RXNE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_RXNE` writer - Clear Negative Edge on UARTxRXD Interrupt."]
pub type INT_EVENT0_ICLR_RXNE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_RXNE_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_RXNE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_rxne_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_RXNE_AW :: INT_EVENT0_ICLR_RXNE_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_rxne_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_RXNE_AW :: INT_EVENT0_ICLR_RXNE_CLR) } } # [doc = "Clear Positive Edge on UARTxRXD Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_RXPE_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_RXPE_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_RXPE_CLR = 1 , } impl From < INT_EVENT0_ICLR_RXPE_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_RXPE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_RXPE` writer - Clear Positive Edge on UARTxRXD Interrupt."]
pub type INT_EVENT0_ICLR_RXPE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_RXPE_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_RXPE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_rxpe_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_RXPE_AW :: INT_EVENT0_ICLR_RXPE_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_rxpe_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_RXPE_AW :: INT_EVENT0_ICLR_RXPE_CLR) } } # [doc = "Clear UART Receive Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_RXINT_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_RXINT_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_RXINT_CLR = 1 , } impl From < INT_EVENT0_ICLR_RXINT_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_RXINT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_RXINT` writer - Clear UART Receive Interrupt."]
pub type INT_EVENT0_ICLR_RXINT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_RXINT_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_RXINT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_rxint_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_RXINT_AW :: INT_EVENT0_ICLR_RXINT_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_rxint_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_RXINT_AW :: INT_EVENT0_ICLR_RXINT_CLR) } } # [doc = "Clear UART Transmit Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_TXINT_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_TXINT_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_TXINT_CLR = 1 , } impl From < INT_EVENT0_ICLR_TXINT_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_TXINT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_TXINT` writer - Clear UART Transmit Interrupt."]
pub type INT_EVENT0_ICLR_TXINT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_TXINT_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_TXINT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_txint_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_TXINT_AW :: INT_EVENT0_ICLR_TXINT_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_txint_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_TXINT_AW :: INT_EVENT0_ICLR_TXINT_CLR) } } # [doc = "Clear UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_EOT_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_EOT_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_EOT_CLR = 1 , } impl From < INT_EVENT0_ICLR_EOT_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_EOT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_EOT` writer - Clear UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer."]
pub type INT_EVENT0_ICLR_EOT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_EOT_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_EOT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_eot_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_EOT_AW :: INT_EVENT0_ICLR_EOT_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_eot_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_EOT_AW :: INT_EVENT0_ICLR_EOT_CLR) } } # [doc = "Clear Address Match Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_ADDR_MATCH_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_ADDR_MATCH_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_ADDR_MATCH_CLR = 1 , } impl From < INT_EVENT0_ICLR_ADDR_MATCH_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_ADDR_MATCH_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_ADDR_MATCH` writer - Clear Address Match Interrupt."]
pub type INT_EVENT0_ICLR_ADDR_MATCH_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_ADDR_MATCH_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_ADDR_MATCH_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_addr_match_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_ADDR_MATCH_AW :: INT_EVENT0_ICLR_ADDR_MATCH_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_addr_match_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_ADDR_MATCH_AW :: INT_EVENT0_ICLR_ADDR_MATCH_CLR) } } # [doc = "Clear UART Clear to Send Modem Interrupt. 0 = Interrupt disabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_CTS_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_CTS_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_CTS_CLR = 1 , } impl From < INT_EVENT0_ICLR_CTS_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_CTS_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_CTS` writer - Clear UART Clear to Send Modem Interrupt. 0 = Interrupt disabled"]
pub type INT_EVENT0_ICLR_CTS_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_CTS_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_CTS_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_cts_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_CTS_AW :: INT_EVENT0_ICLR_CTS_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_cts_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_CTS_AW :: INT_EVENT0_ICLR_CTS_CLR) } } # [doc = "Clear DMA Done on RX Event Channel\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DMA_DONE_RX_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DMA_DONE_RX_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DMA_DONE_RX_CLR = 1 , } impl From < INT_EVENT0_ICLR_DMA_DONE_RX_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DMA_DONE_RX_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DMA_DONE_RX` writer - Clear DMA Done on RX Event Channel"]
pub type INT_EVENT0_ICLR_DMA_DONE_RX_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DMA_DONE_RX_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DMA_DONE_RX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dma_done_rx_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DMA_DONE_RX_AW :: INT_EVENT0_ICLR_DMA_DONE_RX_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dma_done_rx_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DMA_DONE_RX_AW :: INT_EVENT0_ICLR_DMA_DONE_RX_CLR) } } # [doc = "Clear DMA Done on TX Event Channel\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DMA_DONE_TX_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DMA_DONE_TX_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DMA_DONE_TX_CLR = 1 , } impl From < INT_EVENT0_ICLR_DMA_DONE_TX_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DMA_DONE_TX_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DMA_DONE_TX` writer - Clear DMA Done on TX Event Channel"]
pub type INT_EVENT0_ICLR_DMA_DONE_TX_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DMA_DONE_TX_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DMA_DONE_TX_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dma_done_tx_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DMA_DONE_TX_AW :: INT_EVENT0_ICLR_DMA_DONE_TX_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dma_done_tx_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DMA_DONE_TX_AW :: INT_EVENT0_ICLR_DMA_DONE_TX_CLR) } } # [doc = "Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_NERR_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_NERR_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_NERR_CLR = 1 , } impl From < INT_EVENT0_ICLR_NERR_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_NERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_NERR` writer - Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal"]
pub type INT_EVENT0_ICLR_NERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_NERR_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_NERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_nerr_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_NERR_AW :: INT_EVENT0_ICLR_NERR_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_nerr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_NERR_AW :: INT_EVENT0_ICLR_NERR_CLR) } } impl W { # [doc = "Bit 0 - Clear UARTOUT Receive Time-Out Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_rtout (& mut self) -> INT_EVENT0_ICLR_RTOUT_W < INT_EVENT0_ICLR_SPEC , 0 > { INT_EVENT0_ICLR_RTOUT_W :: new (self) } # [doc = "Bit 1 - Clear UART Framing Error Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_frmerr (& mut self) -> INT_EVENT0_ICLR_FRMERR_W < INT_EVENT0_ICLR_SPEC , 1 > { INT_EVENT0_ICLR_FRMERR_W :: new (self) } # [doc = "Bit 2 - Clear UART Parity Error Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_parerr (& mut self) -> INT_EVENT0_ICLR_PARERR_W < INT_EVENT0_ICLR_SPEC , 2 > { INT_EVENT0_ICLR_PARERR_W :: new (self) } # [doc = "Bit 3 - Clear UART Break Error Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_brkerr (& mut self) -> INT_EVENT0_ICLR_BRKERR_W < INT_EVENT0_ICLR_SPEC , 3 > { INT_EVENT0_ICLR_BRKERR_W :: new (self) } # [doc = "Bit 4 - Clear UART Receive Overrun Error Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_ovrerr (& mut self) -> INT_EVENT0_ICLR_OVRERR_W < INT_EVENT0_ICLR_SPEC , 4 > { INT_EVENT0_ICLR_OVRERR_W :: new (self) } # [doc = "Bit 5 - Clear Negative Edge on UARTxRXD Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_rxne (& mut self) -> INT_EVENT0_ICLR_RXNE_W < INT_EVENT0_ICLR_SPEC , 5 > { INT_EVENT0_ICLR_RXNE_W :: new (self) } # [doc = "Bit 6 - Clear Positive Edge on UARTxRXD Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_rxpe (& mut self) -> INT_EVENT0_ICLR_RXPE_W < INT_EVENT0_ICLR_SPEC , 6 > { INT_EVENT0_ICLR_RXPE_W :: new (self) } # [doc = "Bit 10 - Clear UART Receive Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_rxint (& mut self) -> INT_EVENT0_ICLR_RXINT_W < INT_EVENT0_ICLR_SPEC , 10 > { INT_EVENT0_ICLR_RXINT_W :: new (self) } # [doc = "Bit 11 - Clear UART Transmit Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_txint (& mut self) -> INT_EVENT0_ICLR_TXINT_W < INT_EVENT0_ICLR_SPEC , 11 > { INT_EVENT0_ICLR_TXINT_W :: new (self) } # [doc = "Bit 12 - Clear UART End of Transmission Interrupt Indicates that the last bit of all transmitted data and flags has left the serializer and without any further Data in the TX Fifo or Buffer."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_eot (& mut self) -> INT_EVENT0_ICLR_EOT_W < INT_EVENT0_ICLR_SPEC , 12 > { INT_EVENT0_ICLR_EOT_W :: new (self) } # [doc = "Bit 13 - Clear Address Match Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_addr_match (& mut self) -> INT_EVENT0_ICLR_ADDR_MATCH_W < INT_EVENT0_ICLR_SPEC , 13 > { INT_EVENT0_ICLR_ADDR_MATCH_W :: new (self) } # [doc = "Bit 14 - Clear UART Clear to Send Modem Interrupt. 0 = Interrupt disabled"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_cts (& mut self) -> INT_EVENT0_ICLR_CTS_W < INT_EVENT0_ICLR_SPEC , 14 > { INT_EVENT0_ICLR_CTS_W :: new (self) } # [doc = "Bit 15 - Clear DMA Done on RX Event Channel"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dma_done_rx (& mut self) -> INT_EVENT0_ICLR_DMA_DONE_RX_W < INT_EVENT0_ICLR_SPEC , 15 > { INT_EVENT0_ICLR_DMA_DONE_RX_W :: new (self) } # [doc = "Bit 16 - Clear DMA Done on TX Event Channel"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dma_done_tx (& mut self) -> INT_EVENT0_ICLR_DMA_DONE_TX_W < INT_EVENT0_ICLR_SPEC , 16 > { INT_EVENT0_ICLR_DMA_DONE_TX_W :: new (self) } # [doc = "Bit 17 - Noise Error on triple voting. Asserted when the 3 samples of majority voting are not equal"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_nerr (& mut self) -> INT_EVENT0_ICLR_NERR_W < INT_EVENT0_ICLR_SPEC , 17 > { INT_EVENT0_ICLR_NERR_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_ICLR_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event0_iclr::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT0_ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT0_ICLR to value 0"]
impl crate :: Resettable for INT_EVENT0_ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_IIDX (r) register accessor: Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_iidx`]
module"]
pub type INT_EVENT1_IIDX = crate :: Reg < int_event1_iidx :: INT_EVENT1_IIDX_SPEC > ; # [doc = "Interrupt index"]
pub mod int_event1_iidx { # [doc = "Register `INT_EVENT1_IIDX` reader"]
pub type R = crate :: R < INT_EVENT1_IIDX_SPEC > ; # [doc = "Field `INT_EVENT1_IIDX_STAT` reader - UART Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in UARTRIS and UARTMISC. 15h-1Fh = Reserved"]
pub type INT_EVENT1_IIDX_STAT_R = crate :: FieldReader < INT_EVENT1_IIDX_STAT_A > ; # [doc = "UART Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in UARTRIS and UARTMISC. 15h-1Fh = Reserved\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum INT_EVENT1_IIDX_STAT_A { # [doc = "0: NO_INTR"]
INT_EVENT1_IIDX_STAT_NO_INTR = 0 , # [doc = "1: RTFG"]
INT_EVENT1_IIDX_STAT_RTFG = 1 , # [doc = "11: RXIFG"]
INT_EVENT1_IIDX_STAT_RXIFG = 11 , } impl From < INT_EVENT1_IIDX_STAT_A > for u8 { # [inline (always)]
fn from (variant : INT_EVENT1_IIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for INT_EVENT1_IIDX_STAT_A { type Ux = u8 ; } impl INT_EVENT1_IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < INT_EVENT1_IIDX_STAT_A > { match self . bits { 0 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_NO_INTR) , 1 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_RTFG) , 11 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_RXIFG) , _ => None , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_no_intr (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_NO_INTR } # [doc = "RTFG"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_rtfg (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_RTFG } # [doc = "RXIFG"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_rxifg (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_RXIFG } } impl R { # [doc = "Bits 0:7 - UART Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in UARTRIS and UARTMISC. 15h-1Fh = Reserved"]
# [inline (always)]
pub fn int_event1_iidx_stat (& self) -> INT_EVENT1_IIDX_STAT_R { INT_EVENT1_IIDX_STAT_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_IIDX_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event1_iidx::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT1_IIDX_SPEC { } # [doc = "`reset()` method sets INT_EVENT1_IIDX to value 0"]
impl crate :: Resettable for INT_EVENT1_IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_IMASK (rw) register accessor: Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_imask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_imask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_imask`]
module"]
pub type INT_EVENT1_IMASK = crate :: Reg < int_event1_imask :: INT_EVENT1_IMASK_SPEC > ; # [doc = "Interrupt mask"]
pub mod int_event1_imask { # [doc = "Register `INT_EVENT1_IMASK` reader"]
pub type R = crate :: R < INT_EVENT1_IMASK_SPEC > ; # [doc = "Register `INT_EVENT1_IMASK` writer"]
pub type W = crate :: W < INT_EVENT1_IMASK_SPEC > ; # [doc = "Field `INT_EVENT1_IMASK_RTOUT` reader - Enable UARTOUT Receive Time-Out Interrupt."]
pub type INT_EVENT1_IMASK_RTOUT_R = crate :: BitReader < INT_EVENT1_IMASK_RTOUT_A > ; # [doc = "Enable UARTOUT Receive Time-Out Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_RTOUT_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_RTOUT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_RTOUT_SET = 1 , } impl From < INT_EVENT1_IMASK_RTOUT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_RTOUT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_RTOUT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_RTOUT_A { match self . bits { false => INT_EVENT1_IMASK_RTOUT_A :: INT_EVENT1_IMASK_RTOUT_CLR , true => INT_EVENT1_IMASK_RTOUT_A :: INT_EVENT1_IMASK_RTOUT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_rtout_clr (& self) -> bool { * self == INT_EVENT1_IMASK_RTOUT_A :: INT_EVENT1_IMASK_RTOUT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_rtout_set (& self) -> bool { * self == INT_EVENT1_IMASK_RTOUT_A :: INT_EVENT1_IMASK_RTOUT_SET } } # [doc = "Field `INT_EVENT1_IMASK_RTOUT` writer - Enable UARTOUT Receive Time-Out Interrupt."]
pub type INT_EVENT1_IMASK_RTOUT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_RTOUT_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_RTOUT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_rtout_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_RTOUT_A :: INT_EVENT1_IMASK_RTOUT_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_rtout_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_RTOUT_A :: INT_EVENT1_IMASK_RTOUT_SET) } } # [doc = "Field `INT_EVENT1_IMASK_RXINT` reader - Enable UART Receive Interrupt."]
pub type INT_EVENT1_IMASK_RXINT_R = crate :: BitReader < INT_EVENT1_IMASK_RXINT_A > ; # [doc = "Enable UART Receive Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_RXINT_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_RXINT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_RXINT_SET = 1 , } impl From < INT_EVENT1_IMASK_RXINT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_RXINT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_RXINT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_RXINT_A { match self . bits { false => INT_EVENT1_IMASK_RXINT_A :: INT_EVENT1_IMASK_RXINT_CLR , true => INT_EVENT1_IMASK_RXINT_A :: INT_EVENT1_IMASK_RXINT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_rxint_clr (& self) -> bool { * self == INT_EVENT1_IMASK_RXINT_A :: INT_EVENT1_IMASK_RXINT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_rxint_set (& self) -> bool { * self == INT_EVENT1_IMASK_RXINT_A :: INT_EVENT1_IMASK_RXINT_SET } } # [doc = "Field `INT_EVENT1_IMASK_RXINT` writer - Enable UART Receive Interrupt."]
pub type INT_EVENT1_IMASK_RXINT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_RXINT_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_RXINT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_rxint_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_RXINT_A :: INT_EVENT1_IMASK_RXINT_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_rxint_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_RXINT_A :: INT_EVENT1_IMASK_RXINT_SET) } } impl R { # [doc = "Bit 0 - Enable UARTOUT Receive Time-Out Interrupt."]
# [inline (always)]
pub fn int_event1_imask_rtout (& self) -> INT_EVENT1_IMASK_RTOUT_R { INT_EVENT1_IMASK_RTOUT_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 10 - Enable UART Receive Interrupt."]
# [inline (always)]
pub fn int_event1_imask_rxint (& self) -> INT_EVENT1_IMASK_RXINT_R { INT_EVENT1_IMASK_RXINT_R :: new (((self . bits >> 10) & 1) != 0) } } impl W { # [doc = "Bit 0 - Enable UARTOUT Receive Time-Out Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_rtout (& mut self) -> INT_EVENT1_IMASK_RTOUT_W < INT_EVENT1_IMASK_SPEC , 0 > { INT_EVENT1_IMASK_RTOUT_W :: new (self) } # [doc = "Bit 10 - Enable UART Receive Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_rxint (& mut self) -> INT_EVENT1_IMASK_RXINT_W < INT_EVENT1_IMASK_SPEC , 10 > { INT_EVENT1_IMASK_RXINT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_imask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_imask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_IMASK_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event1_imask::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT1_IMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`int_event1_imask::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT1_IMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT1_IMASK to value 0"]
impl crate :: Resettable for INT_EVENT1_IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_RIS (r) register accessor: Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_ris`]
module"]
pub type INT_EVENT1_RIS = crate :: Reg < int_event1_ris :: INT_EVENT1_RIS_SPEC > ; # [doc = "Raw interrupt status"]
pub mod int_event1_ris { # [doc = "Register `INT_EVENT1_RIS` reader"]
pub type R = crate :: R < INT_EVENT1_RIS_SPEC > ; # [doc = "Field `INT_EVENT1_RIS_RTOUT` reader - UARTOUT Receive Time-Out Interrupt."]
pub type INT_EVENT1_RIS_RTOUT_R = crate :: BitReader < INT_EVENT1_RIS_RTOUT_A > ; # [doc = "UARTOUT Receive Time-Out Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_RTOUT_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_RTOUT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_RTOUT_SET = 1 , } impl From < INT_EVENT1_RIS_RTOUT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_RTOUT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_RTOUT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_RTOUT_A { match self . bits { false => INT_EVENT1_RIS_RTOUT_A :: INT_EVENT1_RIS_RTOUT_CLR , true => INT_EVENT1_RIS_RTOUT_A :: INT_EVENT1_RIS_RTOUT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_rtout_clr (& self) -> bool { * self == INT_EVENT1_RIS_RTOUT_A :: INT_EVENT1_RIS_RTOUT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_rtout_set (& self) -> bool { * self == INT_EVENT1_RIS_RTOUT_A :: INT_EVENT1_RIS_RTOUT_SET } } # [doc = "Field `INT_EVENT1_RIS_RXINT` reader - UART Receive Interrupt."]
pub type INT_EVENT1_RIS_RXINT_R = crate :: BitReader < INT_EVENT1_RIS_RXINT_A > ; # [doc = "UART Receive Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_RXINT_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_RXINT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_RXINT_SET = 1 , } impl From < INT_EVENT1_RIS_RXINT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_RXINT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_RXINT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_RXINT_A { match self . bits { false => INT_EVENT1_RIS_RXINT_A :: INT_EVENT1_RIS_RXINT_CLR , true => INT_EVENT1_RIS_RXINT_A :: INT_EVENT1_RIS_RXINT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_rxint_clr (& self) -> bool { * self == INT_EVENT1_RIS_RXINT_A :: INT_EVENT1_RIS_RXINT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_rxint_set (& self) -> bool { * self == INT_EVENT1_RIS_RXINT_A :: INT_EVENT1_RIS_RXINT_SET } } impl R { # [doc = "Bit 0 - UARTOUT Receive Time-Out Interrupt."]
# [inline (always)]
pub fn int_event1_ris_rtout (& self) -> INT_EVENT1_RIS_RTOUT_R { INT_EVENT1_RIS_RTOUT_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 10 - UART Receive Interrupt."]
# [inline (always)]
pub fn int_event1_ris_rxint (& self) -> INT_EVENT1_RIS_RXINT_R { INT_EVENT1_RIS_RXINT_R :: new (((self . bits >> 10) & 1) != 0) } } # [doc = "Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_RIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event1_ris::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT1_RIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT1_RIS to value 0"]
impl crate :: Resettable for INT_EVENT1_RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_MIS (r) register accessor: Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_mis`]
module"]
pub type INT_EVENT1_MIS = crate :: Reg < int_event1_mis :: INT_EVENT1_MIS_SPEC > ; # [doc = "Masked interrupt status"]
pub mod int_event1_mis { # [doc = "Register `INT_EVENT1_MIS` reader"]
pub type R = crate :: R < INT_EVENT1_MIS_SPEC > ; # [doc = "Field `INT_EVENT1_MIS_RTOUT` reader - Masked UARTOUT Receive Time-Out Interrupt."]
pub type INT_EVENT1_MIS_RTOUT_R = crate :: BitReader < INT_EVENT1_MIS_RTOUT_A > ; # [doc = "Masked UARTOUT Receive Time-Out Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_RTOUT_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_RTOUT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_RTOUT_SET = 1 , } impl From < INT_EVENT1_MIS_RTOUT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_RTOUT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_RTOUT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_RTOUT_A { match self . bits { false => INT_EVENT1_MIS_RTOUT_A :: INT_EVENT1_MIS_RTOUT_CLR , true => INT_EVENT1_MIS_RTOUT_A :: INT_EVENT1_MIS_RTOUT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_rtout_clr (& self) -> bool { * self == INT_EVENT1_MIS_RTOUT_A :: INT_EVENT1_MIS_RTOUT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_rtout_set (& self) -> bool { * self == INT_EVENT1_MIS_RTOUT_A :: INT_EVENT1_MIS_RTOUT_SET } } # [doc = "Field `INT_EVENT1_MIS_RXINT` reader - Masked UART Receive Interrupt."]
pub type INT_EVENT1_MIS_RXINT_R = crate :: BitReader < INT_EVENT1_MIS_RXINT_A > ; # [doc = "Masked UART Receive Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_RXINT_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_RXINT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_RXINT_SET = 1 , } impl From < INT_EVENT1_MIS_RXINT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_RXINT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_RXINT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_RXINT_A { match self . bits { false => INT_EVENT1_MIS_RXINT_A :: INT_EVENT1_MIS_RXINT_CLR , true => INT_EVENT1_MIS_RXINT_A :: INT_EVENT1_MIS_RXINT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_rxint_clr (& self) -> bool { * self == INT_EVENT1_MIS_RXINT_A :: INT_EVENT1_MIS_RXINT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_rxint_set (& self) -> bool { * self == INT_EVENT1_MIS_RXINT_A :: INT_EVENT1_MIS_RXINT_SET } } impl R { # [doc = "Bit 0 - Masked UARTOUT Receive Time-Out Interrupt."]
# [inline (always)]
pub fn int_event1_mis_rtout (& self) -> INT_EVENT1_MIS_RTOUT_R { INT_EVENT1_MIS_RTOUT_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 10 - Masked UART Receive Interrupt."]
# [inline (always)]
pub fn int_event1_mis_rxint (& self) -> INT_EVENT1_MIS_RXINT_R { INT_EVENT1_MIS_RXINT_R :: new (((self . bits >> 10) & 1) != 0) } } # [doc = "Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_MIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event1_mis::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT1_MIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT1_MIS to value 0"]
impl crate :: Resettable for INT_EVENT1_MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_ISET (w) register accessor: Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_iset`]
module"]
pub type INT_EVENT1_ISET = crate :: Reg < int_event1_iset :: INT_EVENT1_ISET_SPEC > ; # [doc = "Interrupt set"]
pub mod int_event1_iset { # [doc = "Register `INT_EVENT1_ISET` writer"]
pub type W = crate :: W < INT_EVENT1_ISET_SPEC > ; # [doc = "Set UARTOUT Receive Time-Out Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_RTOUT_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_RTOUT_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_RTOUT_SET = 1 , } impl From < INT_EVENT1_ISET_RTOUT_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_RTOUT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_RTOUT` writer - Set UARTOUT Receive Time-Out Interrupt."]
pub type INT_EVENT1_ISET_RTOUT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_RTOUT_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_RTOUT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_rtout_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_RTOUT_AW :: INT_EVENT1_ISET_RTOUT_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_rtout_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_RTOUT_AW :: INT_EVENT1_ISET_RTOUT_SET) } } # [doc = "Set UART Receive Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_RXINT_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_RXINT_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_RXINT_SET = 1 , } impl From < INT_EVENT1_ISET_RXINT_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_RXINT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_RXINT` writer - Set UART Receive Interrupt."]
pub type INT_EVENT1_ISET_RXINT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_RXINT_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_RXINT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_rxint_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_RXINT_AW :: INT_EVENT1_ISET_RXINT_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_rxint_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_RXINT_AW :: INT_EVENT1_ISET_RXINT_SET) } } impl W { # [doc = "Bit 0 - Set UARTOUT Receive Time-Out Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_rtout (& mut self) -> INT_EVENT1_ISET_RTOUT_W < INT_EVENT1_ISET_SPEC , 0 > { INT_EVENT1_ISET_RTOUT_W :: new (self) } # [doc = "Bit 10 - Set UART Receive Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_rxint (& mut self) -> INT_EVENT1_ISET_RXINT_W < INT_EVENT1_ISET_SPEC , 10 > { INT_EVENT1_ISET_RXINT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_ISET_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event1_iset::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT1_ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT1_ISET to value 0"]
impl crate :: Resettable for INT_EVENT1_ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_ICLR (w) register accessor: Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_iclr`]
module"]
pub type INT_EVENT1_ICLR = crate :: Reg < int_event1_iclr :: INT_EVENT1_ICLR_SPEC > ; # [doc = "Interrupt clear"]
pub mod int_event1_iclr { # [doc = "Register `INT_EVENT1_ICLR` writer"]
pub type W = crate :: W < INT_EVENT1_ICLR_SPEC > ; # [doc = "Clear UARTOUT Receive Time-Out Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_RTOUT_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_RTOUT_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_RTOUT_CLR = 1 , } impl From < INT_EVENT1_ICLR_RTOUT_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_RTOUT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_RTOUT` writer - Clear UARTOUT Receive Time-Out Interrupt."]
pub type INT_EVENT1_ICLR_RTOUT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_RTOUT_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_RTOUT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_rtout_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_RTOUT_AW :: INT_EVENT1_ICLR_RTOUT_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_rtout_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_RTOUT_AW :: INT_EVENT1_ICLR_RTOUT_CLR) } } # [doc = "Clear UART Receive Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_RXINT_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_RXINT_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_RXINT_CLR = 1 , } impl From < INT_EVENT1_ICLR_RXINT_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_RXINT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_RXINT` writer - Clear UART Receive Interrupt."]
pub type INT_EVENT1_ICLR_RXINT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_RXINT_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_RXINT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_rxint_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_RXINT_AW :: INT_EVENT1_ICLR_RXINT_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_rxint_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_RXINT_AW :: INT_EVENT1_ICLR_RXINT_CLR) } } impl W { # [doc = "Bit 0 - Clear UARTOUT Receive Time-Out Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_rtout (& mut self) -> INT_EVENT1_ICLR_RTOUT_W < INT_EVENT1_ICLR_SPEC , 0 > { INT_EVENT1_ICLR_RTOUT_W :: new (self) } # [doc = "Bit 10 - Clear UART Receive Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_rxint (& mut self) -> INT_EVENT1_ICLR_RXINT_W < INT_EVENT1_ICLR_SPEC , 10 > { INT_EVENT1_ICLR_RXINT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_ICLR_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event1_iclr::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT1_ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT1_ICLR to value 0"]
impl crate :: Resettable for INT_EVENT1_ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_IIDX (r) register accessor: Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_iidx`]
module"]
pub type INT_EVENT2_IIDX = crate :: Reg < int_event2_iidx :: INT_EVENT2_IIDX_SPEC > ; # [doc = "Interrupt index"]
pub mod int_event2_iidx { # [doc = "Register `INT_EVENT2_IIDX` reader"]
pub type R = crate :: R < INT_EVENT2_IIDX_SPEC > ; # [doc = "Field `INT_EVENT2_IIDX_STAT` reader - UART Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in UARTRIS and UARTMISC. 15h-1Fh = Reserved"]
pub type INT_EVENT2_IIDX_STAT_R = crate :: FieldReader < INT_EVENT2_IIDX_STAT_A > ; # [doc = "UART Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in UARTRIS and UARTMISC. 15h-1Fh = Reserved\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum INT_EVENT2_IIDX_STAT_A { # [doc = "0: NO_INTR"]
INT_EVENT2_IIDX_STAT_NO_INTR = 0 , # [doc = "12: TXIFG"]
INT_EVENT2_IIDX_STAT_TXIFG = 12 , } impl From < INT_EVENT2_IIDX_STAT_A > for u8 { # [inline (always)]
fn from (variant : INT_EVENT2_IIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for INT_EVENT2_IIDX_STAT_A { type Ux = u8 ; } impl INT_EVENT2_IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < INT_EVENT2_IIDX_STAT_A > { match self . bits { 0 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_NO_INTR) , 12 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_TXIFG) , _ => None , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_no_intr (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_NO_INTR } # [doc = "TXIFG"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_txifg (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_TXIFG } } impl R { # [doc = "Bits 0:7 - UART Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in UARTRIS and UARTMISC. 15h-1Fh = Reserved"]
# [inline (always)]
pub fn int_event2_iidx_stat (& self) -> INT_EVENT2_IIDX_STAT_R { INT_EVENT2_IIDX_STAT_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_IIDX_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event2_iidx::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT2_IIDX_SPEC { } # [doc = "`reset()` method sets INT_EVENT2_IIDX to value 0"]
impl crate :: Resettable for INT_EVENT2_IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_IMASK (rw) register accessor: Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_imask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_imask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_imask`]
module"]
pub type INT_EVENT2_IMASK = crate :: Reg < int_event2_imask :: INT_EVENT2_IMASK_SPEC > ; # [doc = "Interrupt mask"]
pub mod int_event2_imask { # [doc = "Register `INT_EVENT2_IMASK` reader"]
pub type R = crate :: R < INT_EVENT2_IMASK_SPEC > ; # [doc = "Register `INT_EVENT2_IMASK` writer"]
pub type W = crate :: W < INT_EVENT2_IMASK_SPEC > ; # [doc = "Field `INT_EVENT2_IMASK_TXINT` reader - Enable UART Transmit Interrupt."]
pub type INT_EVENT2_IMASK_TXINT_R = crate :: BitReader < INT_EVENT2_IMASK_TXINT_A > ; # [doc = "Enable UART Transmit Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_IMASK_TXINT_A { # [doc = "0: CLR"]
INT_EVENT2_IMASK_TXINT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_IMASK_TXINT_SET = 1 , } impl From < INT_EVENT2_IMASK_TXINT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_IMASK_TXINT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_IMASK_TXINT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_IMASK_TXINT_A { match self . bits { false => INT_EVENT2_IMASK_TXINT_A :: INT_EVENT2_IMASK_TXINT_CLR , true => INT_EVENT2_IMASK_TXINT_A :: INT_EVENT2_IMASK_TXINT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_imask_txint_clr (& self) -> bool { * self == INT_EVENT2_IMASK_TXINT_A :: INT_EVENT2_IMASK_TXINT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_imask_txint_set (& self) -> bool { * self == INT_EVENT2_IMASK_TXINT_A :: INT_EVENT2_IMASK_TXINT_SET } } # [doc = "Field `INT_EVENT2_IMASK_TXINT` writer - Enable UART Transmit Interrupt."]
pub type INT_EVENT2_IMASK_TXINT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_IMASK_TXINT_A > ; impl < 'a , REG , const O : u8 > INT_EVENT2_IMASK_TXINT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_imask_txint_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_TXINT_A :: INT_EVENT2_IMASK_TXINT_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_imask_txint_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_TXINT_A :: INT_EVENT2_IMASK_TXINT_SET) } } impl R { # [doc = "Bit 11 - Enable UART Transmit Interrupt."]
# [inline (always)]
pub fn int_event2_imask_txint (& self) -> INT_EVENT2_IMASK_TXINT_R { INT_EVENT2_IMASK_TXINT_R :: new (((self . bits >> 11) & 1) != 0) } } impl W { # [doc = "Bit 11 - Enable UART Transmit Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event2_imask_txint (& mut self) -> INT_EVENT2_IMASK_TXINT_W < INT_EVENT2_IMASK_SPEC , 11 > { INT_EVENT2_IMASK_TXINT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_imask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_imask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_IMASK_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event2_imask::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT2_IMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`int_event2_imask::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT2_IMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT2_IMASK to value 0"]
impl crate :: Resettable for INT_EVENT2_IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_RIS (r) register accessor: Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_ris`]
module"]
pub type INT_EVENT2_RIS = crate :: Reg < int_event2_ris :: INT_EVENT2_RIS_SPEC > ; # [doc = "Raw interrupt status"]
pub mod int_event2_ris { # [doc = "Register `INT_EVENT2_RIS` reader"]
pub type R = crate :: R < INT_EVENT2_RIS_SPEC > ; # [doc = "Field `INT_EVENT2_RIS_TXINT` reader - UART Transmit Interrupt."]
pub type INT_EVENT2_RIS_TXINT_R = crate :: BitReader < INT_EVENT2_RIS_TXINT_A > ; # [doc = "UART Transmit Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_RIS_TXINT_A { # [doc = "0: CLR"]
INT_EVENT2_RIS_TXINT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_RIS_TXINT_SET = 1 , } impl From < INT_EVENT2_RIS_TXINT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_RIS_TXINT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_RIS_TXINT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_RIS_TXINT_A { match self . bits { false => INT_EVENT2_RIS_TXINT_A :: INT_EVENT2_RIS_TXINT_CLR , true => INT_EVENT2_RIS_TXINT_A :: INT_EVENT2_RIS_TXINT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_ris_txint_clr (& self) -> bool { * self == INT_EVENT2_RIS_TXINT_A :: INT_EVENT2_RIS_TXINT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_ris_txint_set (& self) -> bool { * self == INT_EVENT2_RIS_TXINT_A :: INT_EVENT2_RIS_TXINT_SET } } impl R { # [doc = "Bit 11 - UART Transmit Interrupt."]
# [inline (always)]
pub fn int_event2_ris_txint (& self) -> INT_EVENT2_RIS_TXINT_R { INT_EVENT2_RIS_TXINT_R :: new (((self . bits >> 11) & 1) != 0) } } # [doc = "Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_RIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event2_ris::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT2_RIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT2_RIS to value 0"]
impl crate :: Resettable for INT_EVENT2_RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_MIS (r) register accessor: Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_mis`]
module"]
pub type INT_EVENT2_MIS = crate :: Reg < int_event2_mis :: INT_EVENT2_MIS_SPEC > ; # [doc = "Masked interrupt status"]
pub mod int_event2_mis { # [doc = "Register `INT_EVENT2_MIS` reader"]
pub type R = crate :: R < INT_EVENT2_MIS_SPEC > ; # [doc = "Field `INT_EVENT2_MIS_TXINT` reader - Masked UART Transmit Interrupt."]
pub type INT_EVENT2_MIS_TXINT_R = crate :: BitReader < INT_EVENT2_MIS_TXINT_A > ; # [doc = "Masked UART Transmit Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_MIS_TXINT_A { # [doc = "0: CLR"]
INT_EVENT2_MIS_TXINT_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_MIS_TXINT_SET = 1 , } impl From < INT_EVENT2_MIS_TXINT_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_MIS_TXINT_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_MIS_TXINT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_MIS_TXINT_A { match self . bits { false => INT_EVENT2_MIS_TXINT_A :: INT_EVENT2_MIS_TXINT_CLR , true => INT_EVENT2_MIS_TXINT_A :: INT_EVENT2_MIS_TXINT_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_mis_txint_clr (& self) -> bool { * self == INT_EVENT2_MIS_TXINT_A :: INT_EVENT2_MIS_TXINT_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_mis_txint_set (& self) -> bool { * self == INT_EVENT2_MIS_TXINT_A :: INT_EVENT2_MIS_TXINT_SET } } impl R { # [doc = "Bit 11 - Masked UART Transmit Interrupt."]
# [inline (always)]
pub fn int_event2_mis_txint (& self) -> INT_EVENT2_MIS_TXINT_R { INT_EVENT2_MIS_TXINT_R :: new (((self . bits >> 11) & 1) != 0) } } # [doc = "Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_MIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event2_mis::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT2_MIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT2_MIS to value 0"]
impl crate :: Resettable for INT_EVENT2_MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_ISET (w) register accessor: Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_iset`]
module"]
pub type INT_EVENT2_ISET = crate :: Reg < int_event2_iset :: INT_EVENT2_ISET_SPEC > ; # [doc = "Interrupt set"]
pub mod int_event2_iset { # [doc = "Register `INT_EVENT2_ISET` writer"]
pub type W = crate :: W < INT_EVENT2_ISET_SPEC > ; # [doc = "Set UART Transmit Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ISET_TXINT_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ISET_TXINT_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT2_ISET_TXINT_SET = 1 , } impl From < INT_EVENT2_ISET_TXINT_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ISET_TXINT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ISET_TXINT` writer - Set UART Transmit Interrupt."]
pub type INT_EVENT2_ISET_TXINT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ISET_TXINT_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ISET_TXINT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iset_txint_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_TXINT_AW :: INT_EVENT2_ISET_TXINT_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_iset_txint_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_TXINT_AW :: INT_EVENT2_ISET_TXINT_SET) } } impl W { # [doc = "Bit 11 - Set UART Transmit Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event2_iset_txint (& mut self) -> INT_EVENT2_ISET_TXINT_W < INT_EVENT2_ISET_SPEC , 11 > { INT_EVENT2_ISET_TXINT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_ISET_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event2_iset::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT2_ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT2_ISET to value 0"]
impl crate :: Resettable for INT_EVENT2_ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_ICLR (w) register accessor: Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_iclr`]
module"]
pub type INT_EVENT2_ICLR = crate :: Reg < int_event2_iclr :: INT_EVENT2_ICLR_SPEC > ; # [doc = "Interrupt clear"]
pub mod int_event2_iclr { # [doc = "Register `INT_EVENT2_ICLR` writer"]
pub type W = crate :: W < INT_EVENT2_ICLR_SPEC > ; # [doc = "Clear UART Transmit Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ICLR_TXINT_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ICLR_TXINT_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT2_ICLR_TXINT_CLR = 1 , } impl From < INT_EVENT2_ICLR_TXINT_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ICLR_TXINT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ICLR_TXINT` writer - Clear UART Transmit Interrupt."]
pub type INT_EVENT2_ICLR_TXINT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ICLR_TXINT_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ICLR_TXINT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iclr_txint_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_TXINT_AW :: INT_EVENT2_ICLR_TXINT_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_iclr_txint_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_TXINT_AW :: INT_EVENT2_ICLR_TXINT_CLR) } } impl W { # [doc = "Bit 11 - Clear UART Transmit Interrupt."]
# [inline (always)]
# [must_use]
pub fn int_event2_iclr_txint (& mut self) -> INT_EVENT2_ICLR_TXINT_W < INT_EVENT2_ICLR_SPEC , 11 > { INT_EVENT2_ICLR_TXINT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_ICLR_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event2_iclr::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT2_ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT2_ICLR to value 0"]
impl crate :: Resettable for INT_EVENT2_ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "EVT_MODE (rw) register accessor: Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`evt_mode::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@evt_mode`]
module"]
pub type EVT_MODE = crate :: Reg < evt_mode :: EVT_MODE_SPEC > ; # [doc = "Event Mode"]
pub mod evt_mode { # [doc = "Register `EVT_MODE` reader"]
pub type R = crate :: R < EVT_MODE_SPEC > ; # [doc = "Register `EVT_MODE` writer"]
pub type W = crate :: W < EVT_MODE_SPEC > ; # [doc = "Field `EVT_MODE_INT0_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT0\\]"]
pub type EVT_MODE_INT0_CFG_R = crate :: FieldReader < EVT_MODE_INT0_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT0\\]\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_INT0_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_INT0_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_INT0_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_INT0_CFG_HARDWARE = 2 , } impl From < EVT_MODE_INT0_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_INT0_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_INT0_CFG_A { type Ux = u8 ; } impl EVT_MODE_INT0_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_INT0_CFG_A > { match self . bits { 0 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_DISABLE) , 1 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_SOFTWARE) , 2 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_disable (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_software (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_hardware (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_HARDWARE } } # [doc = "Field `EVT_MODE_EVT1_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT1\\]"]
pub type EVT_MODE_EVT1_CFG_R = crate :: FieldReader < EVT_MODE_EVT1_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT1\\]\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_EVT1_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_EVT1_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_EVT1_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_EVT1_CFG_HARDWARE = 2 , } impl From < EVT_MODE_EVT1_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_EVT1_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_EVT1_CFG_A { type Ux = u8 ; } impl EVT_MODE_EVT1_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_EVT1_CFG_A > { match self . bits { 0 => Some (EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_DISABLE) , 1 => Some (EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_SOFTWARE) , 2 => Some (EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_evt1_cfg_disable (& self) -> bool { * self == EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_evt1_cfg_software (& self) -> bool { * self == EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_evt1_cfg_hardware (& self) -> bool { * self == EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_HARDWARE } } # [doc = "Field `EVT_MODE_EVT2_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT2\\]"]
pub type EVT_MODE_EVT2_CFG_R = crate :: FieldReader < EVT_MODE_EVT2_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT2\\]\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_EVT2_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_EVT2_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_EVT2_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_EVT2_CFG_HARDWARE = 2 , } impl From < EVT_MODE_EVT2_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_EVT2_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_EVT2_CFG_A { type Ux = u8 ; } impl EVT_MODE_EVT2_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_EVT2_CFG_A > { match self . bits { 0 => Some (EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_DISABLE) , 1 => Some (EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_SOFTWARE) , 2 => Some (EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_evt2_cfg_disable (& self) -> bool { * self == EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_evt2_cfg_software (& self) -> bool { * self == EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_evt2_cfg_hardware (& self) -> bool { * self == EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_HARDWARE } } impl R { # [doc = "Bits 0:1 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT0\\]"]
# [inline (always)]
pub fn evt_mode_int0_cfg (& self) -> EVT_MODE_INT0_CFG_R { EVT_MODE_INT0_CFG_R :: new ((self . bits & 3) as u8) } # [doc = "Bits 2:3 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT1\\]"]
# [inline (always)]
pub fn evt_mode_evt1_cfg (& self) -> EVT_MODE_EVT1_CFG_R { EVT_MODE_EVT1_CFG_R :: new (((self . bits >> 2) & 3) as u8) } # [doc = "Bits 4:5 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT2\\]"]
# [inline (always)]
pub fn evt_mode_evt2_cfg (& self) -> EVT_MODE_EVT2_CFG_R { EVT_MODE_EVT2_CFG_R :: new (((self . bits >> 4) & 3) as u8) } } impl W { # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`evt_mode::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct EVT_MODE_SPEC ; impl crate :: RegisterSpec for EVT_MODE_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`evt_mode::R`](R) reader structure"]
impl crate :: Readable for EVT_MODE_SPEC { } # [doc = "`write(|w| ..)` method takes [`evt_mode::W`](W) writer structure"]
impl crate :: Writable for EVT_MODE_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets EVT_MODE to value 0"]
impl crate :: Resettable for EVT_MODE_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DESC (r) register accessor: Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@desc`]
module"]
pub type DESC = crate :: Reg < desc :: DESC_SPEC > ; # [doc = "Module Description"]
pub mod desc { # [doc = "Register `DESC` reader"]
pub type R = crate :: R < DESC_SPEC > ; # [doc = "Field `DESC_MINREV` reader - Minor rev of the IP"]
pub type DESC_MINREV_R = crate :: FieldReader ; # [doc = "Field `DESC_MAJREV` reader - Major rev of the IP"]
pub type DESC_MAJREV_R = crate :: FieldReader ; # [doc = "Field `DESC_INSTNUM` reader - Instance Number within the device. This will be a parameter to the RTL for modules that can have multiple instances"]
pub type DESC_INSTNUM_R = crate :: FieldReader ; # [doc = "Field `DESC_FEATUREVER` reader - Feature Set for the module *instance*"]
pub type DESC_FEATUREVER_R = crate :: FieldReader ; # [doc = "Field `DESC_MODULEID` reader - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
pub type DESC_MODULEID_R = crate :: FieldReader < u16 > ; impl R { # [doc = "Bits 0:3 - Minor rev of the IP"]
# [inline (always)]
pub fn desc_minrev (& self) -> DESC_MINREV_R { DESC_MINREV_R :: new ((self . bits & 0x0f) as u8) } # [doc = "Bits 4:7 - Major rev of the IP"]
# [inline (always)]
pub fn desc_majrev (& self) -> DESC_MAJREV_R { DESC_MAJREV_R :: new (((self . bits >> 4) & 0x0f) as u8) } # [doc = "Bits 8:11 - Instance Number within the device. This will be a parameter to the RTL for modules that can have multiple instances"]
# [inline (always)]
pub fn desc_instnum (& self) -> DESC_INSTNUM_R { DESC_INSTNUM_R :: new (((self . bits >> 8) & 0x0f) as u8) } # [doc = "Bits 12:15 - Feature Set for the module *instance*"]
# [inline (always)]
pub fn desc_featurever (& self) -> DESC_FEATUREVER_R { DESC_FEATUREVER_R :: new (((self . bits >> 12) & 0x0f) as u8) } # [doc = "Bits 16:31 - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
# [inline (always)]
pub fn desc_moduleid (& self) -> DESC_MODULEID_R { DESC_MODULEID_R :: new (((self . bits >> 16) & 0xffff) as u16) } } # [doc = "Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DESC_SPEC ; impl crate :: RegisterSpec for DESC_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`desc::R`](R) reader structure"]
impl crate :: Readable for DESC_SPEC { } # [doc = "`reset()` method sets DESC to value 0"]
impl crate :: Resettable for DESC_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTL0 (rw) register accessor: UART Control Register 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctl0`]
module"]
pub type CTL0 = crate :: Reg < ctl0 :: CTL0_SPEC > ; # [doc = "UART Control Register 0"]
pub mod ctl0 { # [doc = "Register `CTL0` reader"]
pub type R = crate :: R < CTL0_SPEC > ; # [doc = "Register `CTL0` writer"]
pub type W = crate :: W < CTL0_SPEC > ; # [doc = "Field `CTL0_ENABLE` reader - UART Module Enable. If the UART is disabled in the middle of transmission or reception, it completes the current character before stopping. If the ENABLE bit is not set, all registers can still be accessed and updated. It is recommended to setup and change the UART operation mode with having the ENABLE bit cleared to avoid unpredictable behavior during the setup or update. If disabled the UART module will not send or receive any data and the logic is held in reset state."]
pub type CTL0_ENABLE_R = crate :: BitReader < CTL0_ENABLE_A > ; # [doc = "UART Module Enable. If the UART is disabled in the middle of transmission or reception, it completes the current character before stopping. If the ENABLE bit is not set, all registers can still be accessed and updated. It is recommended to setup and change the UART operation mode with having the ENABLE bit cleared to avoid unpredictable behavior during the setup or update. If disabled the UART module will not send or receive any data and the logic is held in reset state.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_ENABLE_A { # [doc = "0: DISABLE"]
CTL0_ENABLE_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL0_ENABLE_ENABLE = 1 , } impl From < CTL0_ENABLE_A > for bool { # [inline (always)]
fn from (variant : CTL0_ENABLE_A) -> Self { variant as u8 != 0 } } impl CTL0_ENABLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_ENABLE_A { match self . bits { false => CTL0_ENABLE_A :: CTL0_ENABLE_DISABLE , true => CTL0_ENABLE_A :: CTL0_ENABLE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl0_enable_disable (& self) -> bool { * self == CTL0_ENABLE_A :: CTL0_ENABLE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl0_enable_enable (& self) -> bool { * self == CTL0_ENABLE_A :: CTL0_ENABLE_ENABLE } } # [doc = "Field `CTL0_ENABLE` writer - UART Module Enable. If the UART is disabled in the middle of transmission or reception, it completes the current character before stopping. If the ENABLE bit is not set, all registers can still be accessed and updated. It is recommended to setup and change the UART operation mode with having the ENABLE bit cleared to avoid unpredictable behavior during the setup or update. If disabled the UART module will not send or receive any data and the logic is held in reset state."]
pub type CTL0_ENABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_ENABLE_A > ; impl < 'a , REG , const O : u8 > CTL0_ENABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl0_enable_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_ENABLE_A :: CTL0_ENABLE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl0_enable_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_ENABLE_A :: CTL0_ENABLE_ENABLE) } } # [doc = "Field `CTL0_LBE` reader - UART Loop Back Enable"]
pub type CTL0_LBE_R = crate :: BitReader < CTL0_LBE_A > ; # [doc = "UART Loop Back Enable\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_LBE_A { # [doc = "0: DISABLE"]
CTL0_LBE_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL0_LBE_ENABLE = 1 , } impl From < CTL0_LBE_A > for bool { # [inline (always)]
fn from (variant : CTL0_LBE_A) -> Self { variant as u8 != 0 } } impl CTL0_LBE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_LBE_A { match self . bits { false => CTL0_LBE_A :: CTL0_LBE_DISABLE , true => CTL0_LBE_A :: CTL0_LBE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl0_lbe_disable (& self) -> bool { * self == CTL0_LBE_A :: CTL0_LBE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl0_lbe_enable (& self) -> bool { * self == CTL0_LBE_A :: CTL0_LBE_ENABLE } } # [doc = "Field `CTL0_LBE` writer - UART Loop Back Enable"]
pub type CTL0_LBE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_LBE_A > ; impl < 'a , REG , const O : u8 > CTL0_LBE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl0_lbe_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_LBE_A :: CTL0_LBE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl0_lbe_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_LBE_A :: CTL0_LBE_ENABLE) } } # [doc = "Field `CTL0_RXE` reader - UART Receive Enable If the UART is disabled in the middle of a receive, it completes the current character before stopping. #b#NOTE:#/b# To enable reception, the UARTEN bit must be set."]
pub type CTL0_RXE_R = crate :: BitReader < CTL0_RXE_A > ; # [doc = "UART Receive Enable If the UART is disabled in the middle of a receive, it completes the current character before stopping. #b#NOTE:#/b# To enable reception, the UARTEN bit must be set.\n\nValue on reset: 1"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_RXE_A { # [doc = "0: DISABLE"]
CTL0_RXE_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL0_RXE_ENABLE = 1 , } impl From < CTL0_RXE_A > for bool { # [inline (always)]
fn from (variant : CTL0_RXE_A) -> Self { variant as u8 != 0 } } impl CTL0_RXE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_RXE_A { match self . bits { false => CTL0_RXE_A :: CTL0_RXE_DISABLE , true => CTL0_RXE_A :: CTL0_RXE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl0_rxe_disable (& self) -> bool { * self == CTL0_RXE_A :: CTL0_RXE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl0_rxe_enable (& self) -> bool { * self == CTL0_RXE_A :: CTL0_RXE_ENABLE } } # [doc = "Field `CTL0_RXE` writer - UART Receive Enable If the UART is disabled in the middle of a receive, it completes the current character before stopping. #b#NOTE:#/b# To enable reception, the UARTEN bit must be set."]
pub type CTL0_RXE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_RXE_A > ; impl < 'a , REG , const O : u8 > CTL0_RXE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl0_rxe_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_RXE_A :: CTL0_RXE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl0_rxe_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_RXE_A :: CTL0_RXE_ENABLE) } } # [doc = "Field `CTL0_TXE` reader - UART Transmit Enable If the UART is disabled in the middle of a transmission, it completes the current character before stopping. #b#NOTE:#/b# To enable transmission, the UARTEN bit must be set."]
pub type CTL0_TXE_R = crate :: BitReader < CTL0_TXE_A > ; # [doc = "UART Transmit Enable If the UART is disabled in the middle of a transmission, it completes the current character before stopping. #b#NOTE:#/b# To enable transmission, the UARTEN bit must be set.\n\nValue on reset: 1"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_TXE_A { # [doc = "0: DISABLE"]
CTL0_TXE_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL0_TXE_ENABLE = 1 , } impl From < CTL0_TXE_A > for bool { # [inline (always)]
fn from (variant : CTL0_TXE_A) -> Self { variant as u8 != 0 } } impl CTL0_TXE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_TXE_A { match self . bits { false => CTL0_TXE_A :: CTL0_TXE_DISABLE , true => CTL0_TXE_A :: CTL0_TXE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl0_txe_disable (& self) -> bool { * self == CTL0_TXE_A :: CTL0_TXE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl0_txe_enable (& self) -> bool { * self == CTL0_TXE_A :: CTL0_TXE_ENABLE } } # [doc = "Field `CTL0_TXE` writer - UART Transmit Enable If the UART is disabled in the middle of a transmission, it completes the current character before stopping. #b#NOTE:#/b# To enable transmission, the UARTEN bit must be set."]
pub type CTL0_TXE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_TXE_A > ; impl < 'a , REG , const O : u8 > CTL0_TXE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl0_txe_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_TXE_A :: CTL0_TXE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl0_txe_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_TXE_A :: CTL0_TXE_ENABLE) } } # [doc = "Field `CTL0_TXD_OUT_EN` reader - TXD Pin Control Enable. When the transmit section of the UART is disabled (TXE = 0), the TXD pin can be controlled by the TXD_OUT bit. 1 = UARTxTXD pin can be controlled by TXD_OUT, if TXE = 0"]
pub type CTL0_TXD_OUT_EN_R = crate :: BitReader < CTL0_TXD_OUT_EN_A > ; # [doc = "TXD Pin Control Enable. When the transmit section of the UART is disabled (TXE = 0), the TXD pin can be controlled by the TXD_OUT bit. 1 = UARTxTXD pin can be controlled by TXD_OUT, if TXE = 0\n\nValue on reset: 1"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_TXD_OUT_EN_A { # [doc = "0: DISABLE"]
CTL0_TXD_OUT_EN_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL0_TXD_OUT_EN_ENABLE = 1 , } impl From < CTL0_TXD_OUT_EN_A > for bool { # [inline (always)]
fn from (variant : CTL0_TXD_OUT_EN_A) -> Self { variant as u8 != 0 } } impl CTL0_TXD_OUT_EN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_TXD_OUT_EN_A { match self . bits { false => CTL0_TXD_OUT_EN_A :: CTL0_TXD_OUT_EN_DISABLE , true => CTL0_TXD_OUT_EN_A :: CTL0_TXD_OUT_EN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl0_txd_out_en_disable (& self) -> bool { * self == CTL0_TXD_OUT_EN_A :: CTL0_TXD_OUT_EN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl0_txd_out_en_enable (& self) -> bool { * self == CTL0_TXD_OUT_EN_A :: CTL0_TXD_OUT_EN_ENABLE } } # [doc = "Field `CTL0_TXD_OUT_EN` writer - TXD Pin Control Enable. When the transmit section of the UART is disabled (TXE = 0), the TXD pin can be controlled by the TXD_OUT bit. 1 = UARTxTXD pin can be controlled by TXD_OUT, if TXE = 0"]
pub type CTL0_TXD_OUT_EN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_TXD_OUT_EN_A > ; impl < 'a , REG , const O : u8 > CTL0_TXD_OUT_EN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl0_txd_out_en_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_TXD_OUT_EN_A :: CTL0_TXD_OUT_EN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl0_txd_out_en_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_TXD_OUT_EN_A :: CTL0_TXD_OUT_EN_ENABLE) } } # [doc = "Field `CTL0_TXD_OUT` reader - TXD Pin Control Controls the TXD pin when TXD_OUT_EN = 1 and TXE = 0."]
pub type CTL0_TXD_OUT_R = crate :: BitReader < CTL0_TXD_OUT_A > ; # [doc = "TXD Pin Control Controls the TXD pin when TXD_OUT_EN = 1 and TXE = 0.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_TXD_OUT_A { # [doc = "0: LOW"]
CTL0_TXD_OUT_LOW = 0 , # [doc = "1: HIGH"]
CTL0_TXD_OUT_HIGH = 1 , } impl From < CTL0_TXD_OUT_A > for bool { # [inline (always)]
fn from (variant : CTL0_TXD_OUT_A) -> Self { variant as u8 != 0 } } impl CTL0_TXD_OUT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_TXD_OUT_A { match self . bits { false => CTL0_TXD_OUT_A :: CTL0_TXD_OUT_LOW , true => CTL0_TXD_OUT_A :: CTL0_TXD_OUT_HIGH , } } # [doc = "LOW"]
# [inline (always)]
pub fn is_ctl0_txd_out_low (& self) -> bool { * self == CTL0_TXD_OUT_A :: CTL0_TXD_OUT_LOW } # [doc = "HIGH"]
# [inline (always)]
pub fn is_ctl0_txd_out_high (& self) -> bool { * self == CTL0_TXD_OUT_A :: CTL0_TXD_OUT_HIGH } } # [doc = "Field `CTL0_TXD_OUT` writer - TXD Pin Control Controls the TXD pin when TXD_OUT_EN = 1 and TXE = 0."]
pub type CTL0_TXD_OUT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_TXD_OUT_A > ; impl < 'a , REG , const O : u8 > CTL0_TXD_OUT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "LOW"]
# [inline (always)]
pub fn ctl0_txd_out_low (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_TXD_OUT_A :: CTL0_TXD_OUT_LOW) } # [doc = "HIGH"]
# [inline (always)]
pub fn ctl0_txd_out_high (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_TXD_OUT_A :: CTL0_TXD_OUT_HIGH) } } # [doc = "Field `CTL0_MODE` reader - Set the communication mode and protocol used. (Not defined settings uses the default setting: 0)"]
pub type CTL0_MODE_R = crate :: FieldReader < CTL0_MODE_A > ; # [doc = "Set the communication mode and protocol used. (Not defined settings uses the default setting: 0)\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTL0_MODE_A { # [doc = "0: UART"]
CTL0_MODE_UART = 0 , # [doc = "1: RS485"]
CTL0_MODE_RS485 = 1 , # [doc = "2: IDLELINE"]
CTL0_MODE_IDLELINE = 2 , # [doc = "3: ADDR9BIT"]
CTL0_MODE_ADDR9BIT = 3 , # [doc = "4: SMART"]
CTL0_MODE_SMART = 4 , # [doc = "5: DALI"]
CTL0_MODE_DALI = 5 , } impl From < CTL0_MODE_A > for u8 { # [inline (always)]
fn from (variant : CTL0_MODE_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTL0_MODE_A { type Ux = u8 ; } impl CTL0_MODE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTL0_MODE_A > { match self . bits { 0 => Some (CTL0_MODE_A :: CTL0_MODE_UART) , 1 => Some (CTL0_MODE_A :: CTL0_MODE_RS485) , 2 => Some (CTL0_MODE_A :: CTL0_MODE_IDLELINE) , 3 => Some (CTL0_MODE_A :: CTL0_MODE_ADDR9BIT) , 4 => Some (CTL0_MODE_A :: CTL0_MODE_SMART) , 5 => Some (CTL0_MODE_A :: CTL0_MODE_DALI) , _ => None , } } # [doc = "UART"]
# [inline (always)]
pub fn is_ctl0_mode_uart (& self) -> bool { * self == CTL0_MODE_A :: CTL0_MODE_UART } # [doc = "RS485"]
# [inline (always)]
pub fn is_ctl0_mode_rs485 (& self) -> bool { * self == CTL0_MODE_A :: CTL0_MODE_RS485 } # [doc = "IDLELINE"]
# [inline (always)]
pub fn is_ctl0_mode_idleline (& self) -> bool { * self == CTL0_MODE_A :: CTL0_MODE_IDLELINE } # [doc = "ADDR9BIT"]
# [inline (always)]
pub fn is_ctl0_mode_addr9bit (& self) -> bool { * self == CTL0_MODE_A :: CTL0_MODE_ADDR9BIT } # [doc = "SMART"]
# [inline (always)]
pub fn is_ctl0_mode_smart (& self) -> bool { * self == CTL0_MODE_A :: CTL0_MODE_SMART } # [doc = "DALI"]
# [inline (always)]
pub fn is_ctl0_mode_dali (& self) -> bool { * self == CTL0_MODE_A :: CTL0_MODE_DALI } } # [doc = "Field `CTL0_MODE` writer - Set the communication mode and protocol used. (Not defined settings uses the default setting: 0)"]
pub type CTL0_MODE_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CTL0_MODE_A > ; impl < 'a , REG , const O : u8 > CTL0_MODE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UART"]
# [inline (always)]
pub fn ctl0_mode_uart (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_MODE_A :: CTL0_MODE_UART) } # [doc = "RS485"]
# [inline (always)]
pub fn ctl0_mode_rs485 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_MODE_A :: CTL0_MODE_RS485) } # [doc = "IDLELINE"]
# [inline (always)]
pub fn ctl0_mode_idleline (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_MODE_A :: CTL0_MODE_IDLELINE) } # [doc = "ADDR9BIT"]
# [inline (always)]
pub fn ctl0_mode_addr9bit (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_MODE_A :: CTL0_MODE_ADDR9BIT) } # [doc = "SMART"]
# [inline (always)]
pub fn ctl0_mode_smart (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_MODE_A :: CTL0_MODE_SMART) } # [doc = "DALI"]
# [inline (always)]
pub fn ctl0_mode_dali (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_MODE_A :: CTL0_MODE_DALI) } } # [doc = "Field `CTL0_RTS` reader - Request to Send If RTSEN is set the RTS output signals is controlled by the hardware logic using the FIFO fill level or TXDATA buffer. If RTSEN is cleared the RTS output is controlled by the RTS bit. The bit is the complement of the UART request to send, RTS modem status output."]
pub type CTL0_RTS_R = crate :: BitReader < CTL0_RTS_A > ; # [doc = "Request to Send If RTSEN is set the RTS output signals is controlled by the hardware logic using the FIFO fill level or TXDATA buffer. If RTSEN is cleared the RTS output is controlled by the RTS bit. The bit is the complement of the UART request to send, RTS modem status output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_RTS_A { # [doc = "0: CLR"]
CTL0_RTS_CLR = 0 , # [doc = "1: SET"]
CTL0_RTS_SET = 1 , } impl From < CTL0_RTS_A > for bool { # [inline (always)]
fn from (variant : CTL0_RTS_A) -> Self { variant as u8 != 0 } } impl CTL0_RTS_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_RTS_A { match self . bits { false => CTL0_RTS_A :: CTL0_RTS_CLR , true => CTL0_RTS_A :: CTL0_RTS_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ctl0_rts_clr (& self) -> bool { * self == CTL0_RTS_A :: CTL0_RTS_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ctl0_rts_set (& self) -> bool { * self == CTL0_RTS_A :: CTL0_RTS_SET } } # [doc = "Field `CTL0_RTS` writer - Request to Send If RTSEN is set the RTS output signals is controlled by the hardware logic using the FIFO fill level or TXDATA buffer. If RTSEN is cleared the RTS output is controlled by the RTS bit. The bit is the complement of the UART request to send, RTS modem status output."]
pub type CTL0_RTS_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_RTS_A > ; impl < 'a , REG , const O : u8 > CTL0_RTS_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn ctl0_rts_clr (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_RTS_A :: CTL0_RTS_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn ctl0_rts_set (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_RTS_A :: CTL0_RTS_SET) } } # [doc = "Field `CTL0_RTSEN` reader - Enable hardware controlled Request to Send"]
pub type CTL0_RTSEN_R = crate :: BitReader < CTL0_RTSEN_A > ; # [doc = "Enable hardware controlled Request to Send\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_RTSEN_A { # [doc = "0: DISABLE"]
CTL0_RTSEN_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL0_RTSEN_ENABLE = 1 , } impl From < CTL0_RTSEN_A > for bool { # [inline (always)]
fn from (variant : CTL0_RTSEN_A) -> Self { variant as u8 != 0 } } impl CTL0_RTSEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_RTSEN_A { match self . bits { false => CTL0_RTSEN_A :: CTL0_RTSEN_DISABLE , true => CTL0_RTSEN_A :: CTL0_RTSEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl0_rtsen_disable (& self) -> bool { * self == CTL0_RTSEN_A :: CTL0_RTSEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl0_rtsen_enable (& self) -> bool { * self == CTL0_RTSEN_A :: CTL0_RTSEN_ENABLE } } # [doc = "Field `CTL0_RTSEN` writer - Enable hardware controlled Request to Send"]
pub type CTL0_RTSEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_RTSEN_A > ; impl < 'a , REG , const O : u8 > CTL0_RTSEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl0_rtsen_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_RTSEN_A :: CTL0_RTSEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl0_rtsen_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_RTSEN_A :: CTL0_RTSEN_ENABLE) } } # [doc = "Field `CTL0_CTSEN` reader - Enable Clear To Send"]
pub type CTL0_CTSEN_R = crate :: BitReader < CTL0_CTSEN_A > ; # [doc = "Enable Clear To Send\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_CTSEN_A { # [doc = "0: DISABLE"]
CTL0_CTSEN_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL0_CTSEN_ENABLE = 1 , } impl From < CTL0_CTSEN_A > for bool { # [inline (always)]
fn from (variant : CTL0_CTSEN_A) -> Self { variant as u8 != 0 } } impl CTL0_CTSEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_CTSEN_A { match self . bits { false => CTL0_CTSEN_A :: CTL0_CTSEN_DISABLE , true => CTL0_CTSEN_A :: CTL0_CTSEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl0_ctsen_disable (& self) -> bool { * self == CTL0_CTSEN_A :: CTL0_CTSEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl0_ctsen_enable (& self) -> bool { * self == CTL0_CTSEN_A :: CTL0_CTSEN_ENABLE } } # [doc = "Field `CTL0_CTSEN` writer - Enable Clear To Send"]
pub type CTL0_CTSEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_CTSEN_A > ; impl < 'a , REG , const O : u8 > CTL0_CTSEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl0_ctsen_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_CTSEN_A :: CTL0_CTSEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl0_ctsen_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_CTSEN_A :: CTL0_CTSEN_ENABLE) } } # [doc = "Field `CTL0_HSE` reader - High-Speed Bit Oversampling Enable #b#NOTE:#/b# The bit oversampling influences the UART baud-rate configuration (see and ). The state of this bit has no effect on clock generation in ISO7816 smart card mode (the SMART bit is set)."]
pub type CTL0_HSE_R = crate :: FieldReader < CTL0_HSE_A > ; # [doc = "High-Speed Bit Oversampling Enable #b#NOTE:#/b# The bit oversampling influences the UART baud-rate configuration (see and ). The state of this bit has no effect on clock generation in ISO7816 smart card mode (the SMART bit is set).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTL0_HSE_A { # [doc = "0: OVS16"]
CTL0_HSE_OVS16 = 0 , # [doc = "1: OVS8"]
CTL0_HSE_OVS8 = 1 , # [doc = "2: OVS3"]
CTL0_HSE_OVS3 = 2 , } impl From < CTL0_HSE_A > for u8 { # [inline (always)]
fn from (variant : CTL0_HSE_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTL0_HSE_A { type Ux = u8 ; } impl CTL0_HSE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTL0_HSE_A > { match self . bits { 0 => Some (CTL0_HSE_A :: CTL0_HSE_OVS16) , 1 => Some (CTL0_HSE_A :: CTL0_HSE_OVS8) , 2 => Some (CTL0_HSE_A :: CTL0_HSE_OVS3) , _ => None , } } # [doc = "OVS16"]
# [inline (always)]
pub fn is_ctl0_hse_ovs16 (& self) -> bool { * self == CTL0_HSE_A :: CTL0_HSE_OVS16 } # [doc = "OVS8"]
# [inline (always)]
pub fn is_ctl0_hse_ovs8 (& self) -> bool { * self == CTL0_HSE_A :: CTL0_HSE_OVS8 } # [doc = "OVS3"]
# [inline (always)]
pub fn is_ctl0_hse_ovs3 (& self) -> bool { * self == CTL0_HSE_A :: CTL0_HSE_OVS3 } } # [doc = "Field `CTL0_HSE` writer - High-Speed Bit Oversampling Enable #b#NOTE:#/b# The bit oversampling influences the UART baud-rate configuration (see and ). The state of this bit has no effect on clock generation in ISO7816 smart card mode (the SMART bit is set)."]
pub type CTL0_HSE_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , CTL0_HSE_A > ; impl < 'a , REG , const O : u8 > CTL0_HSE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "OVS16"]
# [inline (always)]
pub fn ctl0_hse_ovs16 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_HSE_A :: CTL0_HSE_OVS16) } # [doc = "OVS8"]
# [inline (always)]
pub fn ctl0_hse_ovs8 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_HSE_A :: CTL0_HSE_OVS8) } # [doc = "OVS3"]
# [inline (always)]
pub fn ctl0_hse_ovs3 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_HSE_A :: CTL0_HSE_OVS3) } } # [doc = "Field `CTL0_FEN` reader - UART Enable FIFOs"]
pub type CTL0_FEN_R = crate :: BitReader < CTL0_FEN_A > ; # [doc = "UART Enable FIFOs\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_FEN_A { # [doc = "0: DISABLE"]
CTL0_FEN_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL0_FEN_ENABLE = 1 , } impl From < CTL0_FEN_A > for bool { # [inline (always)]
fn from (variant : CTL0_FEN_A) -> Self { variant as u8 != 0 } } impl CTL0_FEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_FEN_A { match self . bits { false => CTL0_FEN_A :: CTL0_FEN_DISABLE , true => CTL0_FEN_A :: CTL0_FEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl0_fen_disable (& self) -> bool { * self == CTL0_FEN_A :: CTL0_FEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl0_fen_enable (& self) -> bool { * self == CTL0_FEN_A :: CTL0_FEN_ENABLE } } # [doc = "Field `CTL0_FEN` writer - UART Enable FIFOs"]
pub type CTL0_FEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_FEN_A > ; impl < 'a , REG , const O : u8 > CTL0_FEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl0_fen_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_FEN_A :: CTL0_FEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl0_fen_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_FEN_A :: CTL0_FEN_ENABLE) } } # [doc = "Field `CTL0_MAJVOTE` reader - When enabled with oversmapling of 16, samples samples 7, 8, and 9 are majority voted to decide the sampled bit value. The value correspond to al least 2 of the 3 samples is considered to be the received value. In case the 3 values do not match, RIS.NERR bit is set along with RDR.NERR When enabled with oversmapling of 8, samples samples 3, 4, and 5 are majority voted to decide the sampled bit value. The value correspond to al least 2 of the 3 samples is considered to be the received value. In case the 3 values donot match, RIS.NERR bit is set along with RDR.NERR When disabled, only a single sample of received bit is taken."]
pub type CTL0_MAJVOTE_R = crate :: BitReader < CTL0_MAJVOTE_A > ; # [doc = "When enabled with oversmapling of 16, samples samples 7, 8, and 9 are majority voted to decide the sampled bit value. The value correspond to al least 2 of the 3 samples is considered to be the received value. In case the 3 values do not match, RIS.NERR bit is set along with RDR.NERR When enabled with oversmapling of 8, samples samples 3, 4, and 5 are majority voted to decide the sampled bit value. The value correspond to al least 2 of the 3 samples is considered to be the received value. In case the 3 values donot match, RIS.NERR bit is set along with RDR.NERR When disabled, only a single sample of received bit is taken.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_MAJVOTE_A { # [doc = "0: DISABLE"]
CTL0_MAJVOTE_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL0_MAJVOTE_ENABLE = 1 , } impl From < CTL0_MAJVOTE_A > for bool { # [inline (always)]
fn from (variant : CTL0_MAJVOTE_A) -> Self { variant as u8 != 0 } } impl CTL0_MAJVOTE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_MAJVOTE_A { match self . bits { false => CTL0_MAJVOTE_A :: CTL0_MAJVOTE_DISABLE , true => CTL0_MAJVOTE_A :: CTL0_MAJVOTE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl0_majvote_disable (& self) -> bool { * self == CTL0_MAJVOTE_A :: CTL0_MAJVOTE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl0_majvote_enable (& self) -> bool { * self == CTL0_MAJVOTE_A :: CTL0_MAJVOTE_ENABLE } } # [doc = "Field `CTL0_MAJVOTE` writer - When enabled with oversmapling of 16, samples samples 7, 8, and 9 are majority voted to decide the sampled bit value. The value correspond to al least 2 of the 3 samples is considered to be the received value. In case the 3 values do not match, RIS.NERR bit is set along with RDR.NERR When enabled with oversmapling of 8, samples samples 3, 4, and 5 are majority voted to decide the sampled bit value. The value correspond to al least 2 of the 3 samples is considered to be the received value. In case the 3 values donot match, RIS.NERR bit is set along with RDR.NERR When disabled, only a single sample of received bit is taken."]
pub type CTL0_MAJVOTE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_MAJVOTE_A > ; impl < 'a , REG , const O : u8 > CTL0_MAJVOTE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl0_majvote_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_MAJVOTE_A :: CTL0_MAJVOTE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl0_majvote_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_MAJVOTE_A :: CTL0_MAJVOTE_ENABLE) } } # [doc = "Field `CTL0_MSBFIRST` reader - Most Significant Bit First This bit has effect both on the way protocol byte is transmitted and received. Notes: User needs to match the protocol to the correct value of this bit to send MSb or LSb first. The hardware engine will send the byte entirely based on this bit."]
pub type CTL0_MSBFIRST_R = crate :: BitReader < CTL0_MSBFIRST_A > ; # [doc = "Most Significant Bit First This bit has effect both on the way protocol byte is transmitted and received. Notes: User needs to match the protocol to the correct value of this bit to send MSb or LSb first. The hardware engine will send the byte entirely based on this bit.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_MSBFIRST_A { # [doc = "0: DISABLE"]
CTL0_MSBFIRST_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL0_MSBFIRST_ENABLE = 1 , } impl From < CTL0_MSBFIRST_A > for bool { # [inline (always)]
fn from (variant : CTL0_MSBFIRST_A) -> Self { variant as u8 != 0 } } impl CTL0_MSBFIRST_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_MSBFIRST_A { match self . bits { false => CTL0_MSBFIRST_A :: CTL0_MSBFIRST_DISABLE , true => CTL0_MSBFIRST_A :: CTL0_MSBFIRST_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl0_msbfirst_disable (& self) -> bool { * self == CTL0_MSBFIRST_A :: CTL0_MSBFIRST_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl0_msbfirst_enable (& self) -> bool { * self == CTL0_MSBFIRST_A :: CTL0_MSBFIRST_ENABLE } } # [doc = "Field `CTL0_MSBFIRST` writer - Most Significant Bit First This bit has effect both on the way protocol byte is transmitted and received. Notes: User needs to match the protocol to the correct value of this bit to send MSb or LSb first. The hardware engine will send the byte entirely based on this bit."]
pub type CTL0_MSBFIRST_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_MSBFIRST_A > ; impl < 'a , REG , const O : u8 > CTL0_MSBFIRST_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl0_msbfirst_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_MSBFIRST_A :: CTL0_MSBFIRST_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl0_msbfirst_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_MSBFIRST_A :: CTL0_MSBFIRST_ENABLE) } } impl R { # [doc = "Bit 0 - UART Module Enable. If the UART is disabled in the middle of transmission or reception, it completes the current character before stopping. If the ENABLE bit is not set, all registers can still be accessed and updated. It is recommended to setup and change the UART operation mode with having the ENABLE bit cleared to avoid unpredictable behavior during the setup or update. If disabled the UART module will not send or receive any data and the logic is held in reset state."]
# [inline (always)]
pub fn ctl0_enable (& self) -> CTL0_ENABLE_R { CTL0_ENABLE_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 2 - UART Loop Back Enable"]
# [inline (always)]
pub fn ctl0_lbe (& self) -> CTL0_LBE_R { CTL0_LBE_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - UART Receive Enable If the UART is disabled in the middle of a receive, it completes the current character before stopping. #b#NOTE:#/b# To enable reception, the UARTEN bit must be set."]
# [inline (always)]
pub fn ctl0_rxe (& self) -> CTL0_RXE_R { CTL0_RXE_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - UART Transmit Enable If the UART is disabled in the middle of a transmission, it completes the current character before stopping. #b#NOTE:#/b# To enable transmission, the UARTEN bit must be set."]
# [inline (always)]
pub fn ctl0_txe (& self) -> CTL0_TXE_R { CTL0_TXE_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - TXD Pin Control Enable. When the transmit section of the UART is disabled (TXE = 0), the TXD pin can be controlled by the TXD_OUT bit. 1 = UARTxTXD pin can be controlled by TXD_OUT, if TXE = 0"]
# [inline (always)]
pub fn ctl0_txd_out_en (& self) -> CTL0_TXD_OUT_EN_R { CTL0_TXD_OUT_EN_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - TXD Pin Control Controls the TXD pin when TXD_OUT_EN = 1 and TXE = 0."]
# [inline (always)]
pub fn ctl0_txd_out (& self) -> CTL0_TXD_OUT_R { CTL0_TXD_OUT_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bits 8:10 - Set the communication mode and protocol used. (Not defined settings uses the default setting: 0)"]
# [inline (always)]
pub fn ctl0_mode (& self) -> CTL0_MODE_R { CTL0_MODE_R :: new (((self . bits >> 8) & 7) as u8) } # [doc = "Bit 12 - Request to Send If RTSEN is set the RTS output signals is controlled by the hardware logic using the FIFO fill level or TXDATA buffer. If RTSEN is cleared the RTS output is controlled by the RTS bit. The bit is the complement of the UART request to send, RTS modem status output."]
# [inline (always)]
pub fn ctl0_rts (& self) -> CTL0_RTS_R { CTL0_RTS_R :: new (((self . bits >> 12) & 1) != 0) } # [doc = "Bit 13 - Enable hardware controlled Request to Send"]
# [inline (always)]
pub fn ctl0_rtsen (& self) -> CTL0_RTSEN_R { CTL0_RTSEN_R :: new (((self . bits >> 13) & 1) != 0) } # [doc = "Bit 14 - Enable Clear To Send"]
# [inline (always)]
pub fn ctl0_ctsen (& self) -> CTL0_CTSEN_R { CTL0_CTSEN_R :: new (((self . bits >> 14) & 1) != 0) } # [doc = "Bits 15:16 - High-Speed Bit Oversampling Enable #b#NOTE:#/b# The bit oversampling influences the UART baud-rate configuration (see and ). The state of this bit has no effect on clock generation in ISO7816 smart card mode (the SMART bit is set)."]
# [inline (always)]
pub fn ctl0_hse (& self) -> CTL0_HSE_R { CTL0_HSE_R :: new (((self . bits >> 15) & 3) as u8) } # [doc = "Bit 17 - UART Enable FIFOs"]
# [inline (always)]
pub fn ctl0_fen (& self) -> CTL0_FEN_R { CTL0_FEN_R :: new (((self . bits >> 17) & 1) != 0) } # [doc = "Bit 18 - When enabled with oversmapling of 16, samples samples 7, 8, and 9 are majority voted to decide the sampled bit value. The value correspond to al least 2 of the 3 samples is considered to be the received value. In case the 3 values do not match, RIS.NERR bit is set along with RDR.NERR When enabled with oversmapling of 8, samples samples 3, 4, and 5 are majority voted to decide the sampled bit value. The value correspond to al least 2 of the 3 samples is considered to be the received value. In case the 3 values donot match, RIS.NERR bit is set along with RDR.NERR When disabled, only a single sample of received bit is taken."]
# [inline (always)]
pub fn ctl0_majvote (& self) -> CTL0_MAJVOTE_R { CTL0_MAJVOTE_R :: new (((self . bits >> 18) & 1) != 0) } # [doc = "Bit 19 - Most Significant Bit First This bit has effect both on the way protocol byte is transmitted and received. Notes: User needs to match the protocol to the correct value of this bit to send MSb or LSb first. The hardware engine will send the byte entirely based on this bit."]
# [inline (always)]
pub fn ctl0_msbfirst (& self) -> CTL0_MSBFIRST_R { CTL0_MSBFIRST_R :: new (((self . bits >> 19) & 1) != 0) } } impl W { # [doc = "Bit 0 - UART Module Enable. If the UART is disabled in the middle of transmission or reception, it completes the current character before stopping. If the ENABLE bit is not set, all registers can still be accessed and updated. It is recommended to setup and change the UART operation mode with having the ENABLE bit cleared to avoid unpredictable behavior during the setup or update. If disabled the UART module will not send or receive any data and the logic is held in reset state."]
# [inline (always)]
# [must_use]
pub fn ctl0_enable (& mut self) -> CTL0_ENABLE_W < CTL0_SPEC , 0 > { CTL0_ENABLE_W :: new (self) } # [doc = "Bit 2 - UART Loop Back Enable"]
# [inline (always)]
# [must_use]
pub fn ctl0_lbe (& mut self) -> CTL0_LBE_W < CTL0_SPEC , 2 > { CTL0_LBE_W :: new (self) } # [doc = "Bit 3 - UART Receive Enable If the UART is disabled in the middle of a receive, it completes the current character before stopping. #b#NOTE:#/b# To enable reception, the UARTEN bit must be set."]
# [inline (always)]
# [must_use]
pub fn ctl0_rxe (& mut self) -> CTL0_RXE_W < CTL0_SPEC , 3 > { CTL0_RXE_W :: new (self) } # [doc = "Bit 4 - UART Transmit Enable If the UART is disabled in the middle of a transmission, it completes the current character before stopping. #b#NOTE:#/b# To enable transmission, the UARTEN bit must be set."]
# [inline (always)]
# [must_use]
pub fn ctl0_txe (& mut self) -> CTL0_TXE_W < CTL0_SPEC , 4 > { CTL0_TXE_W :: new (self) } # [doc = "Bit 5 - TXD Pin Control Enable. When the transmit section of the UART is disabled (TXE = 0), the TXD pin can be controlled by the TXD_OUT bit. 1 = UARTxTXD pin can be controlled by TXD_OUT, if TXE = 0"]
# [inline (always)]
# [must_use]
pub fn ctl0_txd_out_en (& mut self) -> CTL0_TXD_OUT_EN_W < CTL0_SPEC , 5 > { CTL0_TXD_OUT_EN_W :: new (self) } # [doc = "Bit 6 - TXD Pin Control Controls the TXD pin when TXD_OUT_EN = 1 and TXE = 0."]
# [inline (always)]
# [must_use]
pub fn ctl0_txd_out (& mut self) -> CTL0_TXD_OUT_W < CTL0_SPEC , 6 > { CTL0_TXD_OUT_W :: new (self) } # [doc = "Bits 8:10 - Set the communication mode and protocol used. (Not defined settings uses the default setting: 0)"]
# [inline (always)]
# [must_use]
pub fn ctl0_mode (& mut self) -> CTL0_MODE_W < CTL0_SPEC , 8 > { CTL0_MODE_W :: new (self) } # [doc = "Bit 12 - Request to Send If RTSEN is set the RTS output signals is controlled by the hardware logic using the FIFO fill level or TXDATA buffer. If RTSEN is cleared the RTS output is controlled by the RTS bit. The bit is the complement of the UART request to send, RTS modem status output."]
# [inline (always)]
# [must_use]
pub fn ctl0_rts (& mut self) -> CTL0_RTS_W < CTL0_SPEC , 12 > { CTL0_RTS_W :: new (self) } # [doc = "Bit 13 - Enable hardware controlled Request to Send"]
# [inline (always)]
# [must_use]
pub fn ctl0_rtsen (& mut self) -> CTL0_RTSEN_W < CTL0_SPEC , 13 > { CTL0_RTSEN_W :: new (self) } # [doc = "Bit 14 - Enable Clear To Send"]
# [inline (always)]
# [must_use]
pub fn ctl0_ctsen (& mut self) -> CTL0_CTSEN_W < CTL0_SPEC , 14 > { CTL0_CTSEN_W :: new (self) } # [doc = "Bits 15:16 - High-Speed Bit Oversampling Enable #b#NOTE:#/b# The bit oversampling influences the UART baud-rate configuration (see and ). The state of this bit has no effect on clock generation in ISO7816 smart card mode (the SMART bit is set)."]
# [inline (always)]
# [must_use]
pub fn ctl0_hse (& mut self) -> CTL0_HSE_W < CTL0_SPEC , 15 > { CTL0_HSE_W :: new (self) } # [doc = "Bit 17 - UART Enable FIFOs"]
# [inline (always)]
# [must_use]
pub fn ctl0_fen (& mut self) -> CTL0_FEN_W < CTL0_SPEC , 17 > { CTL0_FEN_W :: new (self) } # [doc = "Bit 18 - When enabled with oversmapling of 16, samples samples 7, 8, and 9 are majority voted to decide the sampled bit value. The value correspond to al least 2 of the 3 samples is considered to be the received value. In case the 3 values do not match, RIS.NERR bit is set along with RDR.NERR When enabled with oversmapling of 8, samples samples 3, 4, and 5 are majority voted to decide the sampled bit value. The value correspond to al least 2 of the 3 samples is considered to be the received value. In case the 3 values donot match, RIS.NERR bit is set along with RDR.NERR When disabled, only a single sample of received bit is taken."]
# [inline (always)]
# [must_use]
pub fn ctl0_majvote (& mut self) -> CTL0_MAJVOTE_W < CTL0_SPEC , 18 > { CTL0_MAJVOTE_W :: new (self) } # [doc = "Bit 19 - Most Significant Bit First This bit has effect both on the way protocol byte is transmitted and received. Notes: User needs to match the protocol to the correct value of this bit to send MSb or LSb first. The hardware engine will send the byte entirely based on this bit."]
# [inline (always)]
# [must_use]
pub fn ctl0_msbfirst (& mut self) -> CTL0_MSBFIRST_W < CTL0_SPEC , 19 > { CTL0_MSBFIRST_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "UART Control Register 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl0::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTL0_SPEC ; impl crate :: RegisterSpec for CTL0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ctl0::R`](R) reader structure"]
impl crate :: Readable for CTL0_SPEC { } # [doc = "`write(|w| ..)` method takes [`ctl0::W`](W) writer structure"]
impl crate :: Writable for CTL0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTL0 to value 0x38"]
impl crate :: Resettable for CTL0_SPEC { const RESET_VALUE : Self :: Ux = 0x38 ; } } # [doc = "LCRH (rw) register accessor: UART Line Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`lcrh::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`lcrh::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@lcrh`]
module"]
pub type LCRH = crate :: Reg < lcrh :: LCRH_SPEC > ; # [doc = "UART Line Control Register"]
pub mod lcrh { # [doc = "Register `LCRH` reader"]
pub type R = crate :: R < LCRH_SPEC > ; # [doc = "Register `LCRH` writer"]
pub type W = crate :: W < LCRH_SPEC > ; # [doc = "Field `LCRH_BRK` reader - UART Send Break (for LIN Protocol)"]
pub type LCRH_BRK_R = crate :: BitReader < LCRH_BRK_A > ; # [doc = "UART Send Break (for LIN Protocol)\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum LCRH_BRK_A { # [doc = "0: DISABLE"]
LCRH_BRK_DISABLE = 0 , # [doc = "1: ENABLE"]
LCRH_BRK_ENABLE = 1 , } impl From < LCRH_BRK_A > for bool { # [inline (always)]
fn from (variant : LCRH_BRK_A) -> Self { variant as u8 != 0 } } impl LCRH_BRK_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> LCRH_BRK_A { match self . bits { false => LCRH_BRK_A :: LCRH_BRK_DISABLE , true => LCRH_BRK_A :: LCRH_BRK_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_lcrh_brk_disable (& self) -> bool { * self == LCRH_BRK_A :: LCRH_BRK_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_lcrh_brk_enable (& self) -> bool { * self == LCRH_BRK_A :: LCRH_BRK_ENABLE } } # [doc = "Field `LCRH_BRK` writer - UART Send Break (for LIN Protocol)"]
pub type LCRH_BRK_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , LCRH_BRK_A > ; impl < 'a , REG , const O : u8 > LCRH_BRK_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn lcrh_brk_disable (self) -> & 'a mut crate :: W < REG > { self . variant (LCRH_BRK_A :: LCRH_BRK_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn lcrh_brk_enable (self) -> & 'a mut crate :: W < REG > { self . variant (LCRH_BRK_A :: LCRH_BRK_ENABLE) } } # [doc = "Field `LCRH_PEN` reader - UART Parity Enable"]
pub type LCRH_PEN_R = crate :: BitReader < LCRH_PEN_A > ; # [doc = "UART Parity Enable\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum LCRH_PEN_A { # [doc = "0: DISABLE"]
LCRH_PEN_DISABLE = 0 , # [doc = "1: ENABLE"]
LCRH_PEN_ENABLE = 1 , } impl From < LCRH_PEN_A > for bool { # [inline (always)]
fn from (variant : LCRH_PEN_A) -> Self { variant as u8 != 0 } } impl LCRH_PEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> LCRH_PEN_A { match self . bits { false => LCRH_PEN_A :: LCRH_PEN_DISABLE , true => LCRH_PEN_A :: LCRH_PEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_lcrh_pen_disable (& self) -> bool { * self == LCRH_PEN_A :: LCRH_PEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_lcrh_pen_enable (& self) -> bool { * self == LCRH_PEN_A :: LCRH_PEN_ENABLE } } # [doc = "Field `LCRH_PEN` writer - UART Parity Enable"]
pub type LCRH_PEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , LCRH_PEN_A > ; impl < 'a , REG , const O : u8 > LCRH_PEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn lcrh_pen_disable (self) -> & 'a mut crate :: W < REG > { self . variant (LCRH_PEN_A :: LCRH_PEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn lcrh_pen_enable (self) -> & 'a mut crate :: W < REG > { self . variant (LCRH_PEN_A :: LCRH_PEN_ENABLE) } } # [doc = "Field `LCRH_EPS` reader - UART Even Parity Select This bit has no effect when parity is disabled by the PEN bit. For 9-Bit UART Mode transmissions, this bit controls the address byte and data byte indication (9th bit). 0 = The transferred byte is a data byte 1 = The transferred byte is an address byte"]
pub type LCRH_EPS_R = crate :: BitReader < LCRH_EPS_A > ; # [doc = "UART Even Parity Select This bit has no effect when parity is disabled by the PEN bit. For 9-Bit UART Mode transmissions, this bit controls the address byte and data byte indication (9th bit). 0 = The transferred byte is a data byte 1 = The transferred byte is an address byte\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum LCRH_EPS_A { # [doc = "0: ODD"]
LCRH_EPS_ODD = 0 , # [doc = "1: EVEN"]
LCRH_EPS_EVEN = 1 , } impl From < LCRH_EPS_A > for bool { # [inline (always)]
fn from (variant : LCRH_EPS_A) -> Self { variant as u8 != 0 } } impl LCRH_EPS_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> LCRH_EPS_A { match self . bits { false => LCRH_EPS_A :: LCRH_EPS_ODD , true => LCRH_EPS_A :: LCRH_EPS_EVEN , } } # [doc = "ODD"]
# [inline (always)]
pub fn is_lcrh_eps_odd (& self) -> bool { * self == LCRH_EPS_A :: LCRH_EPS_ODD } # [doc = "EVEN"]
# [inline (always)]
pub fn is_lcrh_eps_even (& self) -> bool { * self == LCRH_EPS_A :: LCRH_EPS_EVEN } } # [doc = "Field `LCRH_EPS` writer - UART Even Parity Select This bit has no effect when parity is disabled by the PEN bit. For 9-Bit UART Mode transmissions, this bit controls the address byte and data byte indication (9th bit). 0 = The transferred byte is a data byte 1 = The transferred byte is an address byte"]
pub type LCRH_EPS_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , LCRH_EPS_A > ; impl < 'a , REG , const O : u8 > LCRH_EPS_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "ODD"]
# [inline (always)]
pub fn lcrh_eps_odd (self) -> & 'a mut crate :: W < REG > { self . variant (LCRH_EPS_A :: LCRH_EPS_ODD) } # [doc = "EVEN"]
# [inline (always)]
pub fn lcrh_eps_even (self) -> & 'a mut crate :: W < REG > { self . variant (LCRH_EPS_A :: LCRH_EPS_EVEN) } } # [doc = "Field `LCRH_STP2` reader - UART Two Stop Bits Select When in 7816 smart card mode (the SMART bit is set in the UARTCTL register), the number of stop bits is forced to 2."]
pub type LCRH_STP2_R = crate :: BitReader < LCRH_STP2_A > ; # [doc = "UART Two Stop Bits Select When in 7816 smart card mode (the SMART bit is set in the UARTCTL register), the number of stop bits is forced to 2.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum LCRH_STP2_A { # [doc = "0: DISABLE"]
LCRH_STP2_DISABLE = 0 , # [doc = "1: ENABLE"]
LCRH_STP2_ENABLE = 1 , } impl From < LCRH_STP2_A > for bool { # [inline (always)]
fn from (variant : LCRH_STP2_A) -> Self { variant as u8 != 0 } } impl LCRH_STP2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> LCRH_STP2_A { match self . bits { false => LCRH_STP2_A :: LCRH_STP2_DISABLE , true => LCRH_STP2_A :: LCRH_STP2_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_lcrh_stp2_disable (& self) -> bool { * self == LCRH_STP2_A :: LCRH_STP2_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_lcrh_stp2_enable (& self) -> bool { * self == LCRH_STP2_A :: LCRH_STP2_ENABLE } } # [doc = "Field `LCRH_STP2` writer - UART Two Stop Bits Select When in 7816 smart card mode (the SMART bit is set in the UARTCTL register), the number of stop bits is forced to 2."]
pub type LCRH_STP2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , LCRH_STP2_A > ; impl < 'a , REG , const O : u8 > LCRH_STP2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn lcrh_stp2_disable (self) -> & 'a mut crate :: W < REG > { self . variant (LCRH_STP2_A :: LCRH_STP2_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn lcrh_stp2_enable (self) -> & 'a mut crate :: W < REG > { self . variant (LCRH_STP2_A :: LCRH_STP2_ENABLE) } } # [doc = "Field `LCRH_WLEN` reader - UART Word Length The bits indicate the number of data bits transmitted or received in a frame as follows:"]
pub type LCRH_WLEN_R = crate :: FieldReader < LCRH_WLEN_A > ; # [doc = "UART Word Length The bits indicate the number of data bits transmitted or received in a frame as follows:\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum LCRH_WLEN_A { # [doc = "0: DATABIT5"]
LCRH_WLEN_DATABIT5 = 0 , # [doc = "1: DATABIT6"]
LCRH_WLEN_DATABIT6 = 1 , # [doc = "2: DATABIT7"]
LCRH_WLEN_DATABIT7 = 2 , # [doc = "3: DATABIT8"]
LCRH_WLEN_DATABIT8 = 3 , } impl From < LCRH_WLEN_A > for u8 { # [inline (always)]
fn from (variant : LCRH_WLEN_A) -> Self { variant as _ } } impl crate :: FieldSpec for LCRH_WLEN_A { type Ux = u8 ; } impl LCRH_WLEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> LCRH_WLEN_A { match self . bits { 0 => LCRH_WLEN_A :: LCRH_WLEN_DATABIT5 , 1 => LCRH_WLEN_A :: LCRH_WLEN_DATABIT6 , 2 => LCRH_WLEN_A :: LCRH_WLEN_DATABIT7 , 3 => LCRH_WLEN_A :: LCRH_WLEN_DATABIT8 , _ => unreachable ! () , } } # [doc = "DATABIT5"]
# [inline (always)]
pub fn is_lcrh_wlen_databit5 (& self) -> bool { * self == LCRH_WLEN_A :: LCRH_WLEN_DATABIT5 } # [doc = "DATABIT6"]
# [inline (always)]
pub fn is_lcrh_wlen_databit6 (& self) -> bool { * self == LCRH_WLEN_A :: LCRH_WLEN_DATABIT6 } # [doc = "DATABIT7"]
# [inline (always)]
pub fn is_lcrh_wlen_databit7 (& self) -> bool { * self == LCRH_WLEN_A :: LCRH_WLEN_DATABIT7 } # [doc = "DATABIT8"]
# [inline (always)]
pub fn is_lcrh_wlen_databit8 (& self) -> bool { * self == LCRH_WLEN_A :: LCRH_WLEN_DATABIT8 } } # [doc = "Field `LCRH_WLEN` writer - UART Word Length The bits indicate the number of data bits transmitted or received in a frame as follows:"]
pub type LCRH_WLEN_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , LCRH_WLEN_A > ; impl < 'a , REG , const O : u8 > LCRH_WLEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DATABIT5"]
# [inline (always)]
pub fn lcrh_wlen_databit5 (self) -> & 'a mut crate :: W < REG > { self . variant (LCRH_WLEN_A :: LCRH_WLEN_DATABIT5) } # [doc = "DATABIT6"]
# [inline (always)]
pub fn lcrh_wlen_databit6 (self) -> & 'a mut crate :: W < REG > { self . variant (LCRH_WLEN_A :: LCRH_WLEN_DATABIT6) } # [doc = "DATABIT7"]
# [inline (always)]
pub fn lcrh_wlen_databit7 (self) -> & 'a mut crate :: W < REG > { self . variant (LCRH_WLEN_A :: LCRH_WLEN_DATABIT7) } # [doc = "DATABIT8"]
# [inline (always)]
pub fn lcrh_wlen_databit8 (self) -> & 'a mut crate :: W < REG > { self . variant (LCRH_WLEN_A :: LCRH_WLEN_DATABIT8) } } # [doc = "Field `LCRH_SPS` reader - UART Stick Parity Select The Stick Parity Select (SPS) bit is used to set either a permanent '1' or a permanent '0' as parity when transmitting or receiving data. Its purpose is to typically indicate the first byte of a package or to mark an address byte, for example in a multi-drop RS-485 network. 0h = Stick parity is disabled 1h = Stick parity is enabled. When bits PEN, EPS, and SPS of UARTLCRH are set, the parity bit is transmitted and checked as a 0. When bits PEN and SPS are set and EPS is cleared, the parity bit is transmitted and checked as a 1."]
pub type LCRH_SPS_R = crate :: BitReader < LCRH_SPS_A > ; # [doc = "UART Stick Parity Select The Stick Parity Select (SPS) bit is used to set either a permanent '1' or a permanent '0' as parity when transmitting or receiving data. Its purpose is to typically indicate the first byte of a package or to mark an address byte, for example in a multi-drop RS-485 network. 0h = Stick parity is disabled 1h = Stick parity is enabled. When bits PEN, EPS, and SPS of UARTLCRH are set, the parity bit is transmitted and checked as a 0. When bits PEN and SPS are set and EPS is cleared, the parity bit is transmitted and checked as a 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum LCRH_SPS_A { # [doc = "0: DISABLE"]
LCRH_SPS_DISABLE = 0 , # [doc = "1: ENABLE"]
LCRH_SPS_ENABLE = 1 , } impl From < LCRH_SPS_A > for bool { # [inline (always)]
fn from (variant : LCRH_SPS_A) -> Self { variant as u8 != 0 } } impl LCRH_SPS_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> LCRH_SPS_A { match self . bits { false => LCRH_SPS_A :: LCRH_SPS_DISABLE , true => LCRH_SPS_A :: LCRH_SPS_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_lcrh_sps_disable (& self) -> bool { * self == LCRH_SPS_A :: LCRH_SPS_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_lcrh_sps_enable (& self) -> bool { * self == LCRH_SPS_A :: LCRH_SPS_ENABLE } } # [doc = "Field `LCRH_SPS` writer - UART Stick Parity Select The Stick Parity Select (SPS) bit is used to set either a permanent '1' or a permanent '0' as parity when transmitting or receiving data. Its purpose is to typically indicate the first byte of a package or to mark an address byte, for example in a multi-drop RS-485 network. 0h = Stick parity is disabled 1h = Stick parity is enabled. When bits PEN, EPS, and SPS of UARTLCRH are set, the parity bit is transmitted and checked as a 0. When bits PEN and SPS are set and EPS is cleared, the parity bit is transmitted and checked as a 1."]
pub type LCRH_SPS_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , LCRH_SPS_A > ; impl < 'a , REG , const O : u8 > LCRH_SPS_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn lcrh_sps_disable (self) -> & 'a mut crate :: W < REG > { self . variant (LCRH_SPS_A :: LCRH_SPS_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn lcrh_sps_enable (self) -> & 'a mut crate :: W < REG > { self . variant (LCRH_SPS_A :: LCRH_SPS_ENABLE) } } # [doc = "Field `LCRH_SENDIDLE` reader - UART send IDLE pattern. When this bit is set an SENDIDLE period of 11 bit times will be sent on the TX line. The bit is cleared by hardware afterwards."]
pub type LCRH_SENDIDLE_R = crate :: BitReader < LCRH_SENDIDLE_A > ; # [doc = "UART send IDLE pattern. When this bit is set an SENDIDLE period of 11 bit times will be sent on the TX line. The bit is cleared by hardware afterwards.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum LCRH_SENDIDLE_A { # [doc = "0: DISABLE"]
LCRH_SENDIDLE_DISABLE = 0 , # [doc = "1: ENABLE"]
LCRH_SENDIDLE_ENABLE = 1 , } impl From < LCRH_SENDIDLE_A > for bool { # [inline (always)]
fn from (variant : LCRH_SENDIDLE_A) -> Self { variant as u8 != 0 } } impl LCRH_SENDIDLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> LCRH_SENDIDLE_A { match self . bits { false => LCRH_SENDIDLE_A :: LCRH_SENDIDLE_DISABLE , true => LCRH_SENDIDLE_A :: LCRH_SENDIDLE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_lcrh_sendidle_disable (& self) -> bool { * self == LCRH_SENDIDLE_A :: LCRH_SENDIDLE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_lcrh_sendidle_enable (& self) -> bool { * self == LCRH_SENDIDLE_A :: LCRH_SENDIDLE_ENABLE } } # [doc = "Field `LCRH_SENDIDLE` writer - UART send IDLE pattern. When this bit is set an SENDIDLE period of 11 bit times will be sent on the TX line. The bit is cleared by hardware afterwards."]
pub type LCRH_SENDIDLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , LCRH_SENDIDLE_A > ; impl < 'a , REG , const O : u8 > LCRH_SENDIDLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn lcrh_sendidle_disable (self) -> & 'a mut crate :: W < REG > { self . variant (LCRH_SENDIDLE_A :: LCRH_SENDIDLE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn lcrh_sendidle_enable (self) -> & 'a mut crate :: W < REG > { self . variant (LCRH_SENDIDLE_A :: LCRH_SENDIDLE_ENABLE) } } # [doc = "Field `LCRH_EXTDIR_SETUP` reader - Defines the number of UARTclk ticks the signal to control the external driver for the RS485 will be set before the START bit is send"]
pub type LCRH_EXTDIR_SETUP_R = crate :: FieldReader ; # [doc = "Field `LCRH_EXTDIR_SETUP` writer - Defines the number of UARTclk ticks the signal to control the external driver for the RS485 will be set before the START bit is send"]
pub type LCRH_EXTDIR_SETUP_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 5 , O > ; # [doc = "Field `LCRH_EXTDIR_HOLD` reader - Defines the number of UARTclk ticks the signal to control the external driver for the RS485 will be reset after the beginning of the stop bit. (If 2 STOP bits are enabled the beginning of the 2nd STOP bit.)"]
pub type LCRH_EXTDIR_HOLD_R = crate :: FieldReader ; # [doc = "Field `LCRH_EXTDIR_HOLD` writer - Defines the number of UARTclk ticks the signal to control the external driver for the RS485 will be reset after the beginning of the stop bit. (If 2 STOP bits are enabled the beginning of the 2nd STOP bit.)"]
pub type LCRH_EXTDIR_HOLD_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 5 , O > ; impl R { # [doc = "Bit 0 - UART Send Break (for LIN Protocol)"]
# [inline (always)]
pub fn lcrh_brk (& self) -> LCRH_BRK_R { LCRH_BRK_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - UART Parity Enable"]
# [inline (always)]
pub fn lcrh_pen (& self) -> LCRH_PEN_R { LCRH_PEN_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - UART Even Parity Select This bit has no effect when parity is disabled by the PEN bit. For 9-Bit UART Mode transmissions, this bit controls the address byte and data byte indication (9th bit). 0 = The transferred byte is a data byte 1 = The transferred byte is an address byte"]
# [inline (always)]
pub fn lcrh_eps (& self) -> LCRH_EPS_R { LCRH_EPS_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - UART Two Stop Bits Select When in 7816 smart card mode (the SMART bit is set in the UARTCTL register), the number of stop bits is forced to 2."]
# [inline (always)]
pub fn lcrh_stp2 (& self) -> LCRH_STP2_R { LCRH_STP2_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bits 4:5 - UART Word Length The bits indicate the number of data bits transmitted or received in a frame as follows:"]
# [inline (always)]
pub fn lcrh_wlen (& self) -> LCRH_WLEN_R { LCRH_WLEN_R :: new (((self . bits >> 4) & 3) as u8) } # [doc = "Bit 6 - UART Stick Parity Select The Stick Parity Select (SPS) bit is used to set either a permanent '1' or a permanent '0' as parity when transmitting or receiving data. Its purpose is to typically indicate the first byte of a package or to mark an address byte, for example in a multi-drop RS-485 network. 0h = Stick parity is disabled 1h = Stick parity is enabled. When bits PEN, EPS, and SPS of UARTLCRH are set, the parity bit is transmitted and checked as a 0. When bits PEN and SPS are set and EPS is cleared, the parity bit is transmitted and checked as a 1."]
# [inline (always)]
pub fn lcrh_sps (& self) -> LCRH_SPS_R { LCRH_SPS_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 7 - UART send IDLE pattern. When this bit is set an SENDIDLE period of 11 bit times will be sent on the TX line. The bit is cleared by hardware afterwards."]
# [inline (always)]
pub fn lcrh_sendidle (& self) -> LCRH_SENDIDLE_R { LCRH_SENDIDLE_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bits 16:20 - Defines the number of UARTclk ticks the signal to control the external driver for the RS485 will be set before the START bit is send"]
# [inline (always)]
pub fn lcrh_extdir_setup (& self) -> LCRH_EXTDIR_SETUP_R { LCRH_EXTDIR_SETUP_R :: new (((self . bits >> 16) & 0x1f) as u8) } # [doc = "Bits 21:25 - Defines the number of UARTclk ticks the signal to control the external driver for the RS485 will be reset after the beginning of the stop bit. (If 2 STOP bits are enabled the beginning of the 2nd STOP bit.)"]
# [inline (always)]
pub fn lcrh_extdir_hold (& self) -> LCRH_EXTDIR_HOLD_R { LCRH_EXTDIR_HOLD_R :: new (((self . bits >> 21) & 0x1f) as u8) } } impl W { # [doc = "Bit 0 - UART Send Break (for LIN Protocol)"]
# [inline (always)]
# [must_use]
pub fn lcrh_brk (& mut self) -> LCRH_BRK_W < LCRH_SPEC , 0 > { LCRH_BRK_W :: new (self) } # [doc = "Bit 1 - UART Parity Enable"]
# [inline (always)]
# [must_use]
pub fn lcrh_pen (& mut self) -> LCRH_PEN_W < LCRH_SPEC , 1 > { LCRH_PEN_W :: new (self) } # [doc = "Bit 2 - UART Even Parity Select This bit has no effect when parity is disabled by the PEN bit. For 9-Bit UART Mode transmissions, this bit controls the address byte and data byte indication (9th bit). 0 = The transferred byte is a data byte 1 = The transferred byte is an address byte"]
# [inline (always)]
# [must_use]
pub fn lcrh_eps (& mut self) -> LCRH_EPS_W < LCRH_SPEC , 2 > { LCRH_EPS_W :: new (self) } # [doc = "Bit 3 - UART Two Stop Bits Select When in 7816 smart card mode (the SMART bit is set in the UARTCTL register), the number of stop bits is forced to 2."]
# [inline (always)]
# [must_use]
pub fn lcrh_stp2 (& mut self) -> LCRH_STP2_W < LCRH_SPEC , 3 > { LCRH_STP2_W :: new (self) } # [doc = "Bits 4:5 - UART Word Length The bits indicate the number of data bits transmitted or received in a frame as follows:"]
# [inline (always)]
# [must_use]
pub fn lcrh_wlen (& mut self) -> LCRH_WLEN_W < LCRH_SPEC , 4 > { LCRH_WLEN_W :: new (self) } # [doc = "Bit 6 - UART Stick Parity Select The Stick Parity Select (SPS) bit is used to set either a permanent '1' or a permanent '0' as parity when transmitting or receiving data. Its purpose is to typically indicate the first byte of a package or to mark an address byte, for example in a multi-drop RS-485 network. 0h = Stick parity is disabled 1h = Stick parity is enabled. When bits PEN, EPS, and SPS of UARTLCRH are set, the parity bit is transmitted and checked as a 0. When bits PEN and SPS are set and EPS is cleared, the parity bit is transmitted and checked as a 1."]
# [inline (always)]
# [must_use]
pub fn lcrh_sps (& mut self) -> LCRH_SPS_W < LCRH_SPEC , 6 > { LCRH_SPS_W :: new (self) } # [doc = "Bit 7 - UART send IDLE pattern. When this bit is set an SENDIDLE period of 11 bit times will be sent on the TX line. The bit is cleared by hardware afterwards."]
# [inline (always)]
# [must_use]
pub fn lcrh_sendidle (& mut self) -> LCRH_SENDIDLE_W < LCRH_SPEC , 7 > { LCRH_SENDIDLE_W :: new (self) } # [doc = "Bits 16:20 - Defines the number of UARTclk ticks the signal to control the external driver for the RS485 will be set before the START bit is send"]
# [inline (always)]
# [must_use]
pub fn lcrh_extdir_setup (& mut self) -> LCRH_EXTDIR_SETUP_W < LCRH_SPEC , 16 > { LCRH_EXTDIR_SETUP_W :: new (self) } # [doc = "Bits 21:25 - Defines the number of UARTclk ticks the signal to control the external driver for the RS485 will be reset after the beginning of the stop bit. (If 2 STOP bits are enabled the beginning of the 2nd STOP bit.)"]
# [inline (always)]
# [must_use]
pub fn lcrh_extdir_hold (& mut self) -> LCRH_EXTDIR_HOLD_W < LCRH_SPEC , 21 > { LCRH_EXTDIR_HOLD_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "UART Line Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`lcrh::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`lcrh::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct LCRH_SPEC ; impl crate :: RegisterSpec for LCRH_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`lcrh::R`](R) reader structure"]
impl crate :: Readable for LCRH_SPEC { } # [doc = "`write(|w| ..)` method takes [`lcrh::W`](W) writer structure"]
impl crate :: Writable for LCRH_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets LCRH to value 0"]
impl crate :: Resettable for LCRH_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "STAT (r) register accessor: UART Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@stat`]
module"]
pub type STAT = crate :: Reg < stat :: STAT_SPEC > ; # [doc = "UART Status Register"]
pub mod stat { # [doc = "Register `STAT` reader"]
pub type R = crate :: R < STAT_SPEC > ; # [doc = "Field `STAT_BUSY` reader - UART Busy This bit is set as soon as the transmit FIFO or TXBuffer becomes non-empty (regardless of whether UART is enabled) or if a receive data is currently ongoing (after the start edge have been detected until a complete byte, including all stop bits, has been received by the shift register). In IDLE_Line mode the Busy signal also stays set during the idle time generation."]
pub type STAT_BUSY_R = crate :: BitReader < STAT_BUSY_A > ; # [doc = "UART Busy This bit is set as soon as the transmit FIFO or TXBuffer becomes non-empty (regardless of whether UART is enabled) or if a receive data is currently ongoing (after the start edge have been detected until a complete byte, including all stop bits, has been received by the shift register). In IDLE_Line mode the Busy signal also stays set during the idle time generation.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_BUSY_A { # [doc = "0: CLEARED"]
STAT_BUSY_CLEARED = 0 , # [doc = "1: SET"]
STAT_BUSY_SET = 1 , } impl From < STAT_BUSY_A > for bool { # [inline (always)]
fn from (variant : STAT_BUSY_A) -> Self { variant as u8 != 0 } } impl STAT_BUSY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_BUSY_A { match self . bits { false => STAT_BUSY_A :: STAT_BUSY_CLEARED , true => STAT_BUSY_A :: STAT_BUSY_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_stat_busy_cleared (& self) -> bool { * self == STAT_BUSY_A :: STAT_BUSY_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_stat_busy_set (& self) -> bool { * self == STAT_BUSY_A :: STAT_BUSY_SET } } # [doc = "Field `STAT_RXFE` reader - UART Receive FIFO Empty The meaning of this bit depends on the state of the FEN bit in the CTL0 register."]
pub type STAT_RXFE_R = crate :: BitReader < STAT_RXFE_A > ; # [doc = "UART Receive FIFO Empty The meaning of this bit depends on the state of the FEN bit in the CTL0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_RXFE_A { # [doc = "0: CLEARED"]
STAT_RXFE_CLEARED = 0 , # [doc = "1: SET"]
STAT_RXFE_SET = 1 , } impl From < STAT_RXFE_A > for bool { # [inline (always)]
fn from (variant : STAT_RXFE_A) -> Self { variant as u8 != 0 } } impl STAT_RXFE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_RXFE_A { match self . bits { false => STAT_RXFE_A :: STAT_RXFE_CLEARED , true => STAT_RXFE_A :: STAT_RXFE_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_stat_rxfe_cleared (& self) -> bool { * self == STAT_RXFE_A :: STAT_RXFE_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_stat_rxfe_set (& self) -> bool { * self == STAT_RXFE_A :: STAT_RXFE_SET } } # [doc = "Field `STAT_RXFF` reader - UART Receive FIFO Full The meaning of this bit depends on the state of the FEN bit in the CTL0 register."]
pub type STAT_RXFF_R = crate :: BitReader < STAT_RXFF_A > ; # [doc = "UART Receive FIFO Full The meaning of this bit depends on the state of the FEN bit in the CTL0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_RXFF_A { # [doc = "0: CLEARED"]
STAT_RXFF_CLEARED = 0 , # [doc = "1: SET"]
STAT_RXFF_SET = 1 , } impl From < STAT_RXFF_A > for bool { # [inline (always)]
fn from (variant : STAT_RXFF_A) -> Self { variant as u8 != 0 } } impl STAT_RXFF_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_RXFF_A { match self . bits { false => STAT_RXFF_A :: STAT_RXFF_CLEARED , true => STAT_RXFF_A :: STAT_RXFF_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_stat_rxff_cleared (& self) -> bool { * self == STAT_RXFF_A :: STAT_RXFF_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_stat_rxff_set (& self) -> bool { * self == STAT_RXFF_A :: STAT_RXFF_SET } } # [doc = "Field `STAT_TXFE` reader - UART Transmit FIFO Empty The meaning of this bit depends on the state of the FEN bit in the CTL0 register."]
pub type STAT_TXFE_R = crate :: BitReader < STAT_TXFE_A > ; # [doc = "UART Transmit FIFO Empty The meaning of this bit depends on the state of the FEN bit in the CTL0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_TXFE_A { # [doc = "0: CLEARED"]
STAT_TXFE_CLEARED = 0 , # [doc = "1: SET"]
STAT_TXFE_SET = 1 , } impl From < STAT_TXFE_A > for bool { # [inline (always)]
fn from (variant : STAT_TXFE_A) -> Self { variant as u8 != 0 } } impl STAT_TXFE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_TXFE_A { match self . bits { false => STAT_TXFE_A :: STAT_TXFE_CLEARED , true => STAT_TXFE_A :: STAT_TXFE_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_stat_txfe_cleared (& self) -> bool { * self == STAT_TXFE_A :: STAT_TXFE_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_stat_txfe_set (& self) -> bool { * self == STAT_TXFE_A :: STAT_TXFE_SET } } # [doc = "Field `STAT_TXFF` reader - UART Transmit FIFO Full The meaning of this bit depends on the state of the FEN bit in the CTL0 register."]
pub type STAT_TXFF_R = crate :: BitReader < STAT_TXFF_A > ; # [doc = "UART Transmit FIFO Full The meaning of this bit depends on the state of the FEN bit in the CTL0 register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_TXFF_A { # [doc = "0: CLEARED"]
STAT_TXFF_CLEARED = 0 , # [doc = "1: SET"]
STAT_TXFF_SET = 1 , } impl From < STAT_TXFF_A > for bool { # [inline (always)]
fn from (variant : STAT_TXFF_A) -> Self { variant as u8 != 0 } } impl STAT_TXFF_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_TXFF_A { match self . bits { false => STAT_TXFF_A :: STAT_TXFF_CLEARED , true => STAT_TXFF_A :: STAT_TXFF_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_stat_txff_cleared (& self) -> bool { * self == STAT_TXFF_A :: STAT_TXFF_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_stat_txff_set (& self) -> bool { * self == STAT_TXFF_A :: STAT_TXFF_SET } } # [doc = "Field `STAT_CTS` reader - Clear To Send"]
pub type STAT_CTS_R = crate :: BitReader < STAT_CTS_A > ; # [doc = "Clear To Send\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_CTS_A { # [doc = "0: CLEARED"]
STAT_CTS_CLEARED = 0 , # [doc = "1: SET"]
STAT_CTS_SET = 1 , } impl From < STAT_CTS_A > for bool { # [inline (always)]
fn from (variant : STAT_CTS_A) -> Self { variant as u8 != 0 } } impl STAT_CTS_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_CTS_A { match self . bits { false => STAT_CTS_A :: STAT_CTS_CLEARED , true => STAT_CTS_A :: STAT_CTS_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_stat_cts_cleared (& self) -> bool { * self == STAT_CTS_A :: STAT_CTS_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_stat_cts_set (& self) -> bool { * self == STAT_CTS_A :: STAT_CTS_SET } } # [doc = "Field `STAT_IDLE` reader - IDLE mode has been detected in Idleline-Mulitprocessor-Mode. The IDLE bit is used as an address tag for each block of characters. In idle-line multiprocessor format, this bit is set when a received character is an address."]
pub type STAT_IDLE_R = crate :: BitReader < STAT_IDLE_A > ; # [doc = "IDLE mode has been detected in Idleline-Mulitprocessor-Mode. The IDLE bit is used as an address tag for each block of characters. In idle-line multiprocessor format, this bit is set when a received character is an address.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_IDLE_A { # [doc = "0: CLEARED"]
STAT_IDLE_CLEARED = 0 , # [doc = "1: SET"]
STAT_IDLE_SET = 1 , } impl From < STAT_IDLE_A > for bool { # [inline (always)]
fn from (variant : STAT_IDLE_A) -> Self { variant as u8 != 0 } } impl STAT_IDLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_IDLE_A { match self . bits { false => STAT_IDLE_A :: STAT_IDLE_CLEARED , true => STAT_IDLE_A :: STAT_IDLE_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_stat_idle_cleared (& self) -> bool { * self == STAT_IDLE_A :: STAT_IDLE_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_stat_idle_set (& self) -> bool { * self == STAT_IDLE_A :: STAT_IDLE_SET } } impl R { # [doc = "Bit 0 - UART Busy This bit is set as soon as the transmit FIFO or TXBuffer becomes non-empty (regardless of whether UART is enabled) or if a receive data is currently ongoing (after the start edge have been detected until a complete byte, including all stop bits, has been received by the shift register). In IDLE_Line mode the Busy signal also stays set during the idle time generation."]
# [inline (always)]
pub fn stat_busy (& self) -> STAT_BUSY_R { STAT_BUSY_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 2 - UART Receive FIFO Empty The meaning of this bit depends on the state of the FEN bit in the CTL0 register."]
# [inline (always)]
pub fn stat_rxfe (& self) -> STAT_RXFE_R { STAT_RXFE_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - UART Receive FIFO Full The meaning of this bit depends on the state of the FEN bit in the CTL0 register."]
# [inline (always)]
pub fn stat_rxff (& self) -> STAT_RXFF_R { STAT_RXFF_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 6 - UART Transmit FIFO Empty The meaning of this bit depends on the state of the FEN bit in the CTL0 register."]
# [inline (always)]
pub fn stat_txfe (& self) -> STAT_TXFE_R { STAT_TXFE_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 7 - UART Transmit FIFO Full The meaning of this bit depends on the state of the FEN bit in the CTL0 register."]
# [inline (always)]
pub fn stat_txff (& self) -> STAT_TXFF_R { STAT_TXFF_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - Clear To Send"]
# [inline (always)]
pub fn stat_cts (& self) -> STAT_CTS_R { STAT_CTS_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - IDLE mode has been detected in Idleline-Mulitprocessor-Mode. The IDLE bit is used as an address tag for each block of characters. In idle-line multiprocessor format, this bit is set when a received character is an address."]
# [inline (always)]
pub fn stat_idle (& self) -> STAT_IDLE_R { STAT_IDLE_R :: new (((self . bits >> 9) & 1) != 0) } } # [doc = "UART Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct STAT_SPEC ; impl crate :: RegisterSpec for STAT_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`stat::R`](R) reader structure"]
impl crate :: Readable for STAT_SPEC { } # [doc = "`reset()` method sets STAT to value 0"]
impl crate :: Resettable for STAT_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "IFLS (rw) register accessor: UART Interrupt FIFO Level Select Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ifls::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ifls::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ifls`]
module"]
pub type IFLS = crate :: Reg < ifls :: IFLS_SPEC > ; # [doc = "UART Interrupt FIFO Level Select Register"]
pub mod ifls { # [doc = "Register `IFLS` reader"]
pub type R = crate :: R < IFLS_SPEC > ; # [doc = "Register `IFLS` writer"]
pub type W = crate :: W < IFLS_SPEC > ; # [doc = "Field `IFLS_TXIFLSEL` reader - UART Transmit Interrupt FIFO Level Select The trigger points for the transmit interrupt are as follows: Note: for undefined settings the default configuration is used."]
pub type IFLS_TXIFLSEL_R = crate :: FieldReader ; # [doc = "Field `IFLS_TXIFLSEL` writer - UART Transmit Interrupt FIFO Level Select The trigger points for the transmit interrupt are as follows: Note: for undefined settings the default configuration is used."]
pub type IFLS_TXIFLSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O > ; # [doc = "Field `IFLS_RXIFLSEL` reader - UART Receive Interrupt FIFO Level Select The trigger points for the receive interrupt are as follows: Note: In ULP domain the trigger levels are used for: 0: LVL_1_4 4: LVL_FULL For undefined settings the default configuration is used."]
pub type IFLS_RXIFLSEL_R = crate :: FieldReader ; # [doc = "Field `IFLS_RXIFLSEL` writer - UART Receive Interrupt FIFO Level Select The trigger points for the receive interrupt are as follows: Note: In ULP domain the trigger levels are used for: 0: LVL_1_4 4: LVL_FULL For undefined settings the default configuration is used."]
pub type IFLS_RXIFLSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O > ; # [doc = "Field `IFLS_RXTOSEL` reader - UART Receive Interrupt Timeout Select. When receiving no start edge for an additional character within the set bittimes a RX interrupt is set even if the FIFO level is not reached. A value of 0 disables this function."]
pub type IFLS_RXTOSEL_R = crate :: FieldReader ; # [doc = "Field `IFLS_RXTOSEL` writer - UART Receive Interrupt Timeout Select. When receiving no start edge for an additional character within the set bittimes a RX interrupt is set even if the FIFO level is not reached. A value of 0 disables this function."]
pub type IFLS_RXTOSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 4 , O > ; impl R { # [doc = "Bits 0:2 - UART Transmit Interrupt FIFO Level Select The trigger points for the transmit interrupt are as follows: Note: for undefined settings the default configuration is used."]
# [inline (always)]
pub fn ifls_txiflsel (& self) -> IFLS_TXIFLSEL_R { IFLS_TXIFLSEL_R :: new ((self . bits & 7) as u8) } # [doc = "Bits 4:6 - UART Receive Interrupt FIFO Level Select The trigger points for the receive interrupt are as follows: Note: In ULP domain the trigger levels are used for: 0: LVL_1_4 4: LVL_FULL For undefined settings the default configuration is used."]
# [inline (always)]
pub fn ifls_rxiflsel (& self) -> IFLS_RXIFLSEL_R { IFLS_RXIFLSEL_R :: new (((self . bits >> 4) & 7) as u8) } # [doc = "Bits 8:11 - UART Receive Interrupt Timeout Select. When receiving no start edge for an additional character within the set bittimes a RX interrupt is set even if the FIFO level is not reached. A value of 0 disables this function."]
# [inline (always)]
pub fn ifls_rxtosel (& self) -> IFLS_RXTOSEL_R { IFLS_RXTOSEL_R :: new (((self . bits >> 8) & 0x0f) as u8) } } impl W { # [doc = "Bits 0:2 - UART Transmit Interrupt FIFO Level Select The trigger points for the transmit interrupt are as follows: Note: for undefined settings the default configuration is used."]
# [inline (always)]
# [must_use]
pub fn ifls_txiflsel (& mut self) -> IFLS_TXIFLSEL_W < IFLS_SPEC , 0 > { IFLS_TXIFLSEL_W :: new (self) } # [doc = "Bits 4:6 - UART Receive Interrupt FIFO Level Select The trigger points for the receive interrupt are as follows: Note: In ULP domain the trigger levels are used for: 0: LVL_1_4 4: LVL_FULL For undefined settings the default configuration is used."]
# [inline (always)]
# [must_use]
pub fn ifls_rxiflsel (& mut self) -> IFLS_RXIFLSEL_W < IFLS_SPEC , 4 > { IFLS_RXIFLSEL_W :: new (self) } # [doc = "Bits 8:11 - UART Receive Interrupt Timeout Select. When receiving no start edge for an additional character within the set bittimes a RX interrupt is set even if the FIFO level is not reached. A value of 0 disables this function."]
# [inline (always)]
# [must_use]
pub fn ifls_rxtosel (& mut self) -> IFLS_RXTOSEL_W < IFLS_SPEC , 8 > { IFLS_RXTOSEL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "UART Interrupt FIFO Level Select Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ifls::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ifls::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IFLS_SPEC ; impl crate :: RegisterSpec for IFLS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ifls::R`](R) reader structure"]
impl crate :: Readable for IFLS_SPEC { } # [doc = "`write(|w| ..)` method takes [`ifls::W`](W) writer structure"]
impl crate :: Writable for IFLS_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets IFLS to value 0x22"]
impl crate :: Resettable for IFLS_SPEC { const RESET_VALUE : Self :: Ux = 0x22 ; } } # [doc = "IBRD (rw) register accessor: UART Integer Baud-Rate Divisor Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ibrd::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ibrd::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ibrd`]
module"]
pub type IBRD = crate :: Reg < ibrd :: IBRD_SPEC > ; # [doc = "UART Integer Baud-Rate Divisor Register"]
pub mod ibrd { # [doc = "Register `IBRD` reader"]
pub type R = crate :: R < IBRD_SPEC > ; # [doc = "Register `IBRD` writer"]
pub type W = crate :: W < IBRD_SPEC > ; # [doc = "Field `IBRD_DIVINT` reader - Integer Baud-Rate Divisor"]
pub type IBRD_DIVINT_R = crate :: FieldReader < u16 > ; # [doc = "Field `IBRD_DIVINT` writer - Integer Baud-Rate Divisor"]
pub type IBRD_DIVINT_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 16 , O , u16 > ; impl R { # [doc = "Bits 0:15 - Integer Baud-Rate Divisor"]
# [inline (always)]
pub fn ibrd_divint (& self) -> IBRD_DIVINT_R { IBRD_DIVINT_R :: new ((self . bits & 0xffff) as u16) } } impl W { # [doc = "Bits 0:15 - Integer Baud-Rate Divisor"]
# [inline (always)]
# [must_use]
pub fn ibrd_divint (& mut self) -> IBRD_DIVINT_W < IBRD_SPEC , 0 > { IBRD_DIVINT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "UART Integer Baud-Rate Divisor Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ibrd::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ibrd::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IBRD_SPEC ; impl crate :: RegisterSpec for IBRD_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ibrd::R`](R) reader structure"]
impl crate :: Readable for IBRD_SPEC { } # [doc = "`write(|w| ..)` method takes [`ibrd::W`](W) writer structure"]
impl crate :: Writable for IBRD_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets IBRD to value 0"]
impl crate :: Resettable for IBRD_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "FBRD (rw) register accessor: UART Fractional Baud-Rate Divisor Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fbrd::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fbrd::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fbrd`]
module"]
pub type FBRD = crate :: Reg < fbrd :: FBRD_SPEC > ; # [doc = "UART Fractional Baud-Rate Divisor Register"]
pub mod fbrd { # [doc = "Register `FBRD` reader"]
pub type R = crate :: R < FBRD_SPEC > ; # [doc = "Register `FBRD` writer"]
pub type W = crate :: W < FBRD_SPEC > ; # [doc = "Field `FBRD_DIVFRAC` reader - Fractional Baud-Rate Divisor"]
pub type FBRD_DIVFRAC_R = crate :: FieldReader ; # [doc = "Field `FBRD_DIVFRAC` writer - Fractional Baud-Rate Divisor"]
pub type FBRD_DIVFRAC_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 6 , O > ; impl R { # [doc = "Bits 0:5 - Fractional Baud-Rate Divisor"]
# [inline (always)]
pub fn fbrd_divfrac (& self) -> FBRD_DIVFRAC_R { FBRD_DIVFRAC_R :: new ((self . bits & 0x3f) as u8) } } impl W { # [doc = "Bits 0:5 - Fractional Baud-Rate Divisor"]
# [inline (always)]
# [must_use]
pub fn fbrd_divfrac (& mut self) -> FBRD_DIVFRAC_W < FBRD_SPEC , 0 > { FBRD_DIVFRAC_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "UART Fractional Baud-Rate Divisor Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fbrd::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fbrd::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FBRD_SPEC ; impl crate :: RegisterSpec for FBRD_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fbrd::R`](R) reader structure"]
impl crate :: Readable for FBRD_SPEC { } # [doc = "`write(|w| ..)` method takes [`fbrd::W`](W) writer structure"]
impl crate :: Writable for FBRD_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FBRD to value 0"]
impl crate :: Resettable for FBRD_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "GFCTL (rw) register accessor: Glitch Filter Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gfctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`gfctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gfctl`]
module"]
pub type GFCTL = crate :: Reg < gfctl :: GFCTL_SPEC > ; # [doc = "Glitch Filter Control"]
pub mod gfctl { # [doc = "Register `GFCTL` reader"]
pub type R = crate :: R < GFCTL_SPEC > ; # [doc = "Register `GFCTL` writer"]
pub type W = crate :: W < GFCTL_SPEC > ; # [doc = "Field `GFCTL_AGFEN` reader - Analog Glitch Suppression Enable"]
pub type GFCTL_AGFEN_R = crate :: BitReader < GFCTL_AGFEN_A > ; # [doc = "Analog Glitch Suppression Enable\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum GFCTL_AGFEN_A { # [doc = "0: DISABLE"]
GFCTL_AGFEN_DISABLE = 0 , # [doc = "1: ENABLE"]
GFCTL_AGFEN_ENABLE = 1 , } impl From < GFCTL_AGFEN_A > for bool { # [inline (always)]
fn from (variant : GFCTL_AGFEN_A) -> Self { variant as u8 != 0 } } impl GFCTL_AGFEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> GFCTL_AGFEN_A { match self . bits { false => GFCTL_AGFEN_A :: GFCTL_AGFEN_DISABLE , true => GFCTL_AGFEN_A :: GFCTL_AGFEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_gfctl_agfen_disable (& self) -> bool { * self == GFCTL_AGFEN_A :: GFCTL_AGFEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_gfctl_agfen_enable (& self) -> bool { * self == GFCTL_AGFEN_A :: GFCTL_AGFEN_ENABLE } } # [doc = "Field `GFCTL_AGFEN` writer - Analog Glitch Suppression Enable"]
pub type GFCTL_AGFEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , GFCTL_AGFEN_A > ; impl < 'a , REG , const O : u8 > GFCTL_AGFEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn gfctl_agfen_disable (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_AGFEN_A :: GFCTL_AGFEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn gfctl_agfen_enable (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_AGFEN_A :: GFCTL_AGFEN_ENABLE) } } # [doc = "Field `GFCTL_AGFSEL` reader - Analog Glitch Suppression Pulse Width This field controls the pulse width select for the analog glitch suppression on the RX line. See device datasheet for exact values. (ULP UART only)"]
pub type GFCTL_AGFSEL_R = crate :: FieldReader < GFCTL_AGFSEL_A > ; # [doc = "Analog Glitch Suppression Pulse Width This field controls the pulse width select for the analog glitch suppression on the RX line. See device datasheet for exact values. (ULP UART only)\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum GFCTL_AGFSEL_A { # [doc = "0: AGLIT_5"]
GFCTL_AGFSEL_AGLIT_5 = 0 , # [doc = "1: AGLIT_10"]
GFCTL_AGFSEL_AGLIT_10 = 1 , # [doc = "2: AGLIT_25"]
GFCTL_AGFSEL_AGLIT_25 = 2 , # [doc = "3: AGLIT_50"]
GFCTL_AGFSEL_AGLIT_50 = 3 , } impl From < GFCTL_AGFSEL_A > for u8 { # [inline (always)]
fn from (variant : GFCTL_AGFSEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for GFCTL_AGFSEL_A { type Ux = u8 ; } impl GFCTL_AGFSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> GFCTL_AGFSEL_A { match self . bits { 0 => GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_5 , 1 => GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_10 , 2 => GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_25 , 3 => GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_50 , _ => unreachable ! () , } } # [doc = "AGLIT_5"]
# [inline (always)]
pub fn is_gfctl_agfsel_aglit_5 (& self) -> bool { * self == GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_5 } # [doc = "AGLIT_10"]
# [inline (always)]
pub fn is_gfctl_agfsel_aglit_10 (& self) -> bool { * self == GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_10 } # [doc = "AGLIT_25"]
# [inline (always)]
pub fn is_gfctl_agfsel_aglit_25 (& self) -> bool { * self == GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_25 } # [doc = "AGLIT_50"]
# [inline (always)]
pub fn is_gfctl_agfsel_aglit_50 (& self) -> bool { * self == GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_50 } } # [doc = "Field `GFCTL_AGFSEL` writer - Analog Glitch Suppression Pulse Width This field controls the pulse width select for the analog glitch suppression on the RX line. See device datasheet for exact values. (ULP UART only)"]
pub type GFCTL_AGFSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , GFCTL_AGFSEL_A > ; impl < 'a , REG , const O : u8 > GFCTL_AGFSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "AGLIT_5"]
# [inline (always)]
pub fn gfctl_agfsel_aglit_5 (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_5) } # [doc = "AGLIT_10"]
# [inline (always)]
pub fn gfctl_agfsel_aglit_10 (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_10) } # [doc = "AGLIT_25"]
# [inline (always)]
pub fn gfctl_agfsel_aglit_25 (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_25) } # [doc = "AGLIT_50"]
# [inline (always)]
pub fn gfctl_agfsel_aglit_50 (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_50) } } impl R { # [doc = "Bit 8 - Analog Glitch Suppression Enable"]
# [inline (always)]
pub fn gfctl_agfen (& self) -> GFCTL_AGFEN_R { GFCTL_AGFEN_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bits 9:10 - Analog Glitch Suppression Pulse Width This field controls the pulse width select for the analog glitch suppression on the RX line. See device datasheet for exact values. (ULP UART only)"]
# [inline (always)]
pub fn gfctl_agfsel (& self) -> GFCTL_AGFSEL_R { GFCTL_AGFSEL_R :: new (((self . bits >> 9) & 3) as u8) } } impl W { # [doc = "Bit 8 - Analog Glitch Suppression Enable"]
# [inline (always)]
# [must_use]
pub fn gfctl_agfen (& mut self) -> GFCTL_AGFEN_W < GFCTL_SPEC , 8 > { GFCTL_AGFEN_W :: new (self) } # [doc = "Bits 9:10 - Analog Glitch Suppression Pulse Width This field controls the pulse width select for the analog glitch suppression on the RX line. See device datasheet for exact values. (ULP UART only)"]
# [inline (always)]
# [must_use]
pub fn gfctl_agfsel (& mut self) -> GFCTL_AGFSEL_W < GFCTL_SPEC , 9 > { GFCTL_AGFSEL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Glitch Filter Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gfctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`gfctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct GFCTL_SPEC ; impl crate :: RegisterSpec for GFCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`gfctl::R`](R) reader structure"]
impl crate :: Readable for GFCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`gfctl::W`](W) writer structure"]
impl crate :: Writable for GFCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets GFCTL to value 0"]
impl crate :: Resettable for GFCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "TXDATA (rw) register accessor: UART Transmit Data Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`txdata::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`txdata::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@txdata`]
module"]
pub type TXDATA = crate :: Reg < txdata :: TXDATA_SPEC > ; # [doc = "UART Transmit Data Register"]
pub mod txdata { # [doc = "Register `TXDATA` reader"]
pub type R = crate :: R < TXDATA_SPEC > ; # [doc = "Register `TXDATA` writer"]
pub type W = crate :: W < TXDATA_SPEC > ; # [doc = "Field `TXDATA_DATA` reader - Data Transmitted or Received Data that is to be transmitted via the UART is written to this field. When read, this field contains the data that was received by the UART."]
pub type TXDATA_DATA_R = crate :: FieldReader ; # [doc = "Field `TXDATA_DATA` writer - Data Transmitted or Received Data that is to be transmitted via the UART is written to this field. When read, this field contains the data that was received by the UART."]
pub type TXDATA_DATA_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O > ; impl R { # [doc = "Bits 0:7 - Data Transmitted or Received Data that is to be transmitted via the UART is written to this field. When read, this field contains the data that was received by the UART."]
# [inline (always)]
pub fn txdata_data (& self) -> TXDATA_DATA_R { TXDATA_DATA_R :: new ((self . bits & 0xff) as u8) } } impl W { # [doc = "Bits 0:7 - Data Transmitted or Received Data that is to be transmitted via the UART is written to this field. When read, this field contains the data that was received by the UART."]
# [inline (always)]
# [must_use]
pub fn txdata_data (& mut self) -> TXDATA_DATA_W < TXDATA_SPEC , 0 > { TXDATA_DATA_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "UART Transmit Data Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`txdata::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`txdata::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct TXDATA_SPEC ; impl crate :: RegisterSpec for TXDATA_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`txdata::R`](R) reader structure"]
impl crate :: Readable for TXDATA_SPEC { } # [doc = "`write(|w| ..)` method takes [`txdata::W`](W) writer structure"]
impl crate :: Writable for TXDATA_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets TXDATA to value 0"]
impl crate :: Resettable for TXDATA_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RXDATA (r) register accessor: UART Receive Data Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`rxdata::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rxdata`]
module"]
pub type RXDATA = crate :: Reg < rxdata :: RXDATA_SPEC > ; # [doc = "UART Receive Data Register"]
pub mod rxdata { # [doc = "Register `RXDATA` reader"]
pub type R = crate :: R < RXDATA_SPEC > ; # [doc = "Field `RXDATA_DATA` reader - Data Transmitted or Received Data that is to be transmitted via the UART is written to this field. When read, this field contains the data that was received by the UART."]
pub type RXDATA_DATA_R = crate :: FieldReader ; # [doc = "Field `RXDATA_FRMERR` reader - UART Framing Error Writing to this bit has no effect. The flag is cleared by writing 1 to the FRMERR bit in the UART EVENT ICLR register. This error is associated with the character at the top of the FIFO."]
pub type RXDATA_FRMERR_R = crate :: BitReader < RXDATA_FRMERR_A > ; # [doc = "UART Framing Error Writing to this bit has no effect. The flag is cleared by writing 1 to the FRMERR bit in the UART EVENT ICLR register. This error is associated with the character at the top of the FIFO.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RXDATA_FRMERR_A { # [doc = "0: CLR"]
RXDATA_FRMERR_CLR = 0 , # [doc = "1: SET"]
RXDATA_FRMERR_SET = 1 , } impl From < RXDATA_FRMERR_A > for bool { # [inline (always)]
fn from (variant : RXDATA_FRMERR_A) -> Self { variant as u8 != 0 } } impl RXDATA_FRMERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RXDATA_FRMERR_A { match self . bits { false => RXDATA_FRMERR_A :: RXDATA_FRMERR_CLR , true => RXDATA_FRMERR_A :: RXDATA_FRMERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_rxdata_frmerr_clr (& self) -> bool { * self == RXDATA_FRMERR_A :: RXDATA_FRMERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_rxdata_frmerr_set (& self) -> bool { * self == RXDATA_FRMERR_A :: RXDATA_FRMERR_SET } } # [doc = "Field `RXDATA_PARERR` reader - UART Parity Error Writing to this bit has no effect. The flag is cleared by writing 1 to the PARERR bit in the UART EVENT ICLR register."]
pub type RXDATA_PARERR_R = crate :: BitReader < RXDATA_PARERR_A > ; # [doc = "UART Parity Error Writing to this bit has no effect. The flag is cleared by writing 1 to the PARERR bit in the UART EVENT ICLR register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RXDATA_PARERR_A { # [doc = "0: CLR"]
RXDATA_PARERR_CLR = 0 , # [doc = "1: SET"]
RXDATA_PARERR_SET = 1 , } impl From < RXDATA_PARERR_A > for bool { # [inline (always)]
fn from (variant : RXDATA_PARERR_A) -> Self { variant as u8 != 0 } } impl RXDATA_PARERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RXDATA_PARERR_A { match self . bits { false => RXDATA_PARERR_A :: RXDATA_PARERR_CLR , true => RXDATA_PARERR_A :: RXDATA_PARERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_rxdata_parerr_clr (& self) -> bool { * self == RXDATA_PARERR_A :: RXDATA_PARERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_rxdata_parerr_set (& self) -> bool { * self == RXDATA_PARERR_A :: RXDATA_PARERR_SET } } # [doc = "Field `RXDATA_BRKERR` reader - UART Break Error Writing to this bit has no effect. The flag is cleared by writing 1 to the BRKERR bit in the UART EVENT ICLR register. This error is associated with the character at the top of the FIFO. When a break occurs, only one 0 character is loaded into the FIFO. The next character is only enabled after the receive data input goes to a 1 (marking state) and the next valid start bit is received."]
pub type RXDATA_BRKERR_R = crate :: BitReader < RXDATA_BRKERR_A > ; # [doc = "UART Break Error Writing to this bit has no effect. The flag is cleared by writing 1 to the BRKERR bit in the UART EVENT ICLR register. This error is associated with the character at the top of the FIFO. When a break occurs, only one 0 character is loaded into the FIFO. The next character is only enabled after the receive data input goes to a 1 (marking state) and the next valid start bit is received.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RXDATA_BRKERR_A { # [doc = "0: CLR"]
RXDATA_BRKERR_CLR = 0 , # [doc = "1: SET"]
RXDATA_BRKERR_SET = 1 , } impl From < RXDATA_BRKERR_A > for bool { # [inline (always)]
fn from (variant : RXDATA_BRKERR_A) -> Self { variant as u8 != 0 } } impl RXDATA_BRKERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RXDATA_BRKERR_A { match self . bits { false => RXDATA_BRKERR_A :: RXDATA_BRKERR_CLR , true => RXDATA_BRKERR_A :: RXDATA_BRKERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_rxdata_brkerr_clr (& self) -> bool { * self == RXDATA_BRKERR_A :: RXDATA_BRKERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_rxdata_brkerr_set (& self) -> bool { * self == RXDATA_BRKERR_A :: RXDATA_BRKERR_SET } } # [doc = "Field `RXDATA_OVRERR` reader - UART Receive Overrun Error Writing to this bit has no effect. The flag is cleared by writing 1 to the OVRERR bit in the UART EVENT ICLR register. In case of a receive FIFO overflow, the FIFO contents remain valid because no further data is written when the FIFO is full. Only the contents of the shift register are overwritten. The CPU must read the data in order to empty the FIFO."]
pub type RXDATA_OVRERR_R = crate :: BitReader < RXDATA_OVRERR_A > ; # [doc = "UART Receive Overrun Error Writing to this bit has no effect. The flag is cleared by writing 1 to the OVRERR bit in the UART EVENT ICLR register. In case of a receive FIFO overflow, the FIFO contents remain valid because no further data is written when the FIFO is full. Only the contents of the shift register are overwritten. The CPU must read the data in order to empty the FIFO.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RXDATA_OVRERR_A { # [doc = "0: CLR"]
RXDATA_OVRERR_CLR = 0 , # [doc = "1: SET"]
RXDATA_OVRERR_SET = 1 , } impl From < RXDATA_OVRERR_A > for bool { # [inline (always)]
fn from (variant : RXDATA_OVRERR_A) -> Self { variant as u8 != 0 } } impl RXDATA_OVRERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RXDATA_OVRERR_A { match self . bits { false => RXDATA_OVRERR_A :: RXDATA_OVRERR_CLR , true => RXDATA_OVRERR_A :: RXDATA_OVRERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_rxdata_ovrerr_clr (& self) -> bool { * self == RXDATA_OVRERR_A :: RXDATA_OVRERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_rxdata_ovrerr_set (& self) -> bool { * self == RXDATA_OVRERR_A :: RXDATA_OVRERR_SET } } # [doc = "Field `RXDATA_NERR` reader - Noise Error. Writing to this bit has no effect. The flag is cleared by writing 1 to the NERR bit in the UART EVENT ICLR register."]
pub type RXDATA_NERR_R = crate :: BitReader < RXDATA_NERR_A > ; # [doc = "Noise Error. Writing to this bit has no effect. The flag is cleared by writing 1 to the NERR bit in the UART EVENT ICLR register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RXDATA_NERR_A { # [doc = "0: CLR"]
RXDATA_NERR_CLR = 0 , # [doc = "1: SET"]
RXDATA_NERR_SET = 1 , } impl From < RXDATA_NERR_A > for bool { # [inline (always)]
fn from (variant : RXDATA_NERR_A) -> Self { variant as u8 != 0 } } impl RXDATA_NERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RXDATA_NERR_A { match self . bits { false => RXDATA_NERR_A :: RXDATA_NERR_CLR , true => RXDATA_NERR_A :: RXDATA_NERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_rxdata_nerr_clr (& self) -> bool { * self == RXDATA_NERR_A :: RXDATA_NERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_rxdata_nerr_set (& self) -> bool { * self == RXDATA_NERR_A :: RXDATA_NERR_SET } } impl R { # [doc = "Bits 0:7 - Data Transmitted or Received Data that is to be transmitted via the UART is written to this field. When read, this field contains the data that was received by the UART."]
# [inline (always)]
pub fn rxdata_data (& self) -> RXDATA_DATA_R { RXDATA_DATA_R :: new ((self . bits & 0xff) as u8) } # [doc = "Bit 8 - UART Framing Error Writing to this bit has no effect. The flag is cleared by writing 1 to the FRMERR bit in the UART EVENT ICLR register. This error is associated with the character at the top of the FIFO."]
# [inline (always)]
pub fn rxdata_frmerr (& self) -> RXDATA_FRMERR_R { RXDATA_FRMERR_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - UART Parity Error Writing to this bit has no effect. The flag is cleared by writing 1 to the PARERR bit in the UART EVENT ICLR register."]
# [inline (always)]
pub fn rxdata_parerr (& self) -> RXDATA_PARERR_R { RXDATA_PARERR_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - UART Break Error Writing to this bit has no effect. The flag is cleared by writing 1 to the BRKERR bit in the UART EVENT ICLR register. This error is associated with the character at the top of the FIFO. When a break occurs, only one 0 character is loaded into the FIFO. The next character is only enabled after the receive data input goes to a 1 (marking state) and the next valid start bit is received."]
# [inline (always)]
pub fn rxdata_brkerr (& self) -> RXDATA_BRKERR_R { RXDATA_BRKERR_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bit 11 - UART Receive Overrun Error Writing to this bit has no effect. The flag is cleared by writing 1 to the OVRERR bit in the UART EVENT ICLR register. In case of a receive FIFO overflow, the FIFO contents remain valid because no further data is written when the FIFO is full. Only the contents of the shift register are overwritten. The CPU must read the data in order to empty the FIFO."]
# [inline (always)]
pub fn rxdata_ovrerr (& self) -> RXDATA_OVRERR_R { RXDATA_OVRERR_R :: new (((self . bits >> 11) & 1) != 0) } # [doc = "Bit 12 - Noise Error. Writing to this bit has no effect. The flag is cleared by writing 1 to the NERR bit in the UART EVENT ICLR register."]
# [inline (always)]
pub fn rxdata_nerr (& self) -> RXDATA_NERR_R { RXDATA_NERR_R :: new (((self . bits >> 12) & 1) != 0) } } # [doc = "UART Receive Data Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`rxdata::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RXDATA_SPEC ; impl crate :: RegisterSpec for RXDATA_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`rxdata::R`](R) reader structure"]
impl crate :: Readable for RXDATA_SPEC { } # [doc = "`reset()` method sets RXDATA to value 0"]
impl crate :: Resettable for RXDATA_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "AMASK (rw) register accessor: Self Address Mask Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`amask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`amask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@amask`]
module"]
pub type AMASK = crate :: Reg < amask :: AMASK_SPEC > ; # [doc = "Self Address Mask Register"]
pub mod amask { # [doc = "Register `AMASK` reader"]
pub type R = crate :: R < AMASK_SPEC > ; # [doc = "Register `AMASK` writer"]
pub type W = crate :: W < AMASK_SPEC > ; # [doc = "Field `AMASK_VALUE` reader - Self Address Mask for 9-Bit Mode This field contains the address mask that creates a set of addresses that should be matched. A 0 bit in the MSK bitfield configures, that the corresponding bit in the ADDR bitfield of the UART9BITADDR register is don't care. A 1 bit in the MSK bitfield configures, that the corresponding bit in the ADDR bitfield of the UART9BITADDR register must match."]
pub type AMASK_VALUE_R = crate :: FieldReader ; # [doc = "Field `AMASK_VALUE` writer - Self Address Mask for 9-Bit Mode This field contains the address mask that creates a set of addresses that should be matched. A 0 bit in the MSK bitfield configures, that the corresponding bit in the ADDR bitfield of the UART9BITADDR register is don't care. A 1 bit in the MSK bitfield configures, that the corresponding bit in the ADDR bitfield of the UART9BITADDR register must match."]
pub type AMASK_VALUE_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O > ; impl R { # [doc = "Bits 0:7 - Self Address Mask for 9-Bit Mode This field contains the address mask that creates a set of addresses that should be matched. A 0 bit in the MSK bitfield configures, that the corresponding bit in the ADDR bitfield of the UART9BITADDR register is don't care. A 1 bit in the MSK bitfield configures, that the corresponding bit in the ADDR bitfield of the UART9BITADDR register must match."]
# [inline (always)]
pub fn amask_value (& self) -> AMASK_VALUE_R { AMASK_VALUE_R :: new ((self . bits & 0xff) as u8) } } impl W { # [doc = "Bits 0:7 - Self Address Mask for 9-Bit Mode This field contains the address mask that creates a set of addresses that should be matched. A 0 bit in the MSK bitfield configures, that the corresponding bit in the ADDR bitfield of the UART9BITADDR register is don't care. A 1 bit in the MSK bitfield configures, that the corresponding bit in the ADDR bitfield of the UART9BITADDR register must match."]
# [inline (always)]
# [must_use]
pub fn amask_value (& mut self) -> AMASK_VALUE_W < AMASK_SPEC , 0 > { AMASK_VALUE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Self Address Mask Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`amask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`amask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct AMASK_SPEC ; impl crate :: RegisterSpec for AMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`amask::R`](R) reader structure"]
impl crate :: Readable for AMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`amask::W`](W) writer structure"]
impl crate :: Writable for AMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets AMASK to value 0xff"]
impl crate :: Resettable for AMASK_SPEC { const RESET_VALUE : Self :: Ux = 0xff ; } } # [doc = "ADDR (rw) register accessor: Self Address Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`addr::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`addr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@addr`]
module"]
pub type ADDR = crate :: Reg < addr :: ADDR_SPEC > ; # [doc = "Self Address Register"]
pub mod addr { # [doc = "Register `ADDR` reader"]
pub type R = crate :: R < ADDR_SPEC > ; # [doc = "Register `ADDR` writer"]
pub type W = crate :: W < ADDR_SPEC > ; # [doc = "Field `ADDR_VALUE` reader - Self Address for 9-Bit Mode This field contains the address that should be matched when UART9BITAMASK is FFh."]
pub type ADDR_VALUE_R = crate :: FieldReader ; # [doc = "Field `ADDR_VALUE` writer - Self Address for 9-Bit Mode This field contains the address that should be matched when UART9BITAMASK is FFh."]
pub type ADDR_VALUE_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O > ; impl R { # [doc = "Bits 0:7 - Self Address for 9-Bit Mode This field contains the address that should be matched when UART9BITAMASK is FFh."]
# [inline (always)]
pub fn addr_value (& self) -> ADDR_VALUE_R { ADDR_VALUE_R :: new ((self . bits & 0xff) as u8) } } impl W { # [doc = "Bits 0:7 - Self Address for 9-Bit Mode This field contains the address that should be matched when UART9BITAMASK is FFh."]
# [inline (always)]
# [must_use]
pub fn addr_value (& mut self) -> ADDR_VALUE_W < ADDR_SPEC , 0 > { ADDR_VALUE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Self Address Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`addr::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`addr::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ADDR_SPEC ; impl crate :: RegisterSpec for ADDR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`addr::R`](R) reader structure"]
impl crate :: Readable for ADDR_SPEC { } # [doc = "`write(|w| ..)` method takes [`addr::W`](W) writer structure"]
impl crate :: Writable for ADDR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets ADDR to value 0"]
impl crate :: Resettable for ADDR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } } # [doc = "WWDT"]
pub struct WWDT0 { _marker : PhantomData < * const () > } unsafe impl Send for WWDT0 { } impl WWDT0 { # [doc = r"Pointer to the register block"]
pub const PTR : * const wwdt0 :: RegisterBlock = 0x4008_0000 as * const _ ; # [doc = r"Return the pointer to the register block"]
# [inline (always)]
pub const fn ptr () -> * const wwdt0 :: RegisterBlock { Self :: PTR } # [doc = r" Steal an instance of this peripheral"]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Ensure that the new instance of the peripheral cannot be used in a way"]
# [doc = r" that may race with any existing instances, for example by only"]
# [doc = r" accessing read-only or write-only registers, or by consuming the"]
# [doc = r" original peripheral and using critical sections to coordinate"]
# [doc = r" access between multiple new instances."]
# [doc = r""]
# [doc = r" Additionally, other software such as HALs may rely on only one"]
# [doc = r" peripheral instance existing to ensure memory safety; ensure"]
# [doc = r" no stolen instances are passed to such software."]
pub unsafe fn steal () -> Self { Self { _marker : PhantomData } } } impl Deref for WWDT0 { type Target = wwdt0 :: RegisterBlock ; # [inline (always)]
fn deref (& self) -> & Self :: Target { unsafe { & * Self :: PTR } } } impl core :: fmt :: Debug for WWDT0 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("WWDT0") . finish () } } # [doc = "WWDT"]
pub mod wwdt0 { # [doc = r"Register block"]
# [repr (C)]
pub struct RegisterBlock { _reserved0 : [u8 ; 0x0800]
, # [doc = "0x800 - Power enable"]
pub pwren : PWREN , # [doc = "0x804 - Reset Control"]
pub rstctl : RSTCTL , _reserved2 : [u8 ; 0x0c]
, # [doc = "0x814 - Status Register"]
pub stat : STAT , _reserved3 : [u8 ; 0x0800]
, # [doc = "0x1018 - Peripheral Debug Control"]
pub pdbgctl : PDBGCTL , _reserved4 : [u8 ; 0x04]
, # [doc = "0x1020 - Interrupt index"]
pub iidx : IIDX , _reserved5 : [u8 ; 0x04]
, # [doc = "0x1028 - Interrupt mask"]
pub imask : IMASK , _reserved6 : [u8 ; 0x04]
, # [doc = "0x1030 - Raw interrupt status"]
pub ris : RIS , _reserved7 : [u8 ; 0x04]
, # [doc = "0x1038 - Masked interrupt status"]
pub mis : MIS , _reserved8 : [u8 ; 0x04]
, # [doc = "0x1040 - Interrupt set"]
pub iset : ISET , _reserved9 : [u8 ; 0x04]
, # [doc = "0x1048 - Interrupt clear"]
pub iclr : ICLR , _reserved10 : [u8 ; 0x94]
, # [doc = "0x10e0 - Event Mode"]
pub evt_mode : EVT_MODE , _reserved11 : [u8 ; 0x18]
, # [doc = "0x10fc - Module Description"]
pub desc : DESC , # [doc = "0x1100 - Window Watchdog Timer Control Register 0"]
pub wwdtctl0 : WWDTCTL0 , # [doc = "0x1104 - Window Watchdog Timer Control Register 0"]
pub wwdtctl1 : WWDTCTL1 , # [doc = "0x1108 - Window Watchdog Timer Counter Reset Register"]
pub wwdtcntrst : WWDTCNTRST , # [doc = "0x110c - Window Watchdog Timer Status Register"]
pub wwdtstat : WWDTSTAT , } # [doc = "PWREN (rw) register accessor: Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pwren`]
module"]
pub type PWREN = crate :: Reg < pwren :: PWREN_SPEC > ; # [doc = "Power enable"]
pub mod pwren { # [doc = "Register `PWREN` reader"]
pub type R = crate :: R < PWREN_SPEC > ; # [doc = "Register `PWREN` writer"]
pub type W = crate :: W < PWREN_SPEC > ; # [doc = "Field `PWREN_ENABLE` reader - Enable the power Note: For safety devices the power cannot be disabled once enabled."]
pub type PWREN_ENABLE_R = crate :: BitReader < PWREN_ENABLE_A > ; # [doc = "Enable the power Note: For safety devices the power cannot be disabled once enabled.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PWREN_ENABLE_A { # [doc = "0: DISABLE"]
PWREN_ENABLE_DISABLE = 0 , # [doc = "1: ENABLE"]
PWREN_ENABLE_ENABLE = 1 , } impl From < PWREN_ENABLE_A > for bool { # [inline (always)]
fn from (variant : PWREN_ENABLE_A) -> Self { variant as u8 != 0 } } impl PWREN_ENABLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PWREN_ENABLE_A { match self . bits { false => PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE , true => PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_pwren_enable_disable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_pwren_enable_enable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE } } # [doc = "Field `PWREN_ENABLE` writer - Enable the power Note: For safety devices the power cannot be disabled once enabled."]
pub type PWREN_ENABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PWREN_ENABLE_A > ; impl < 'a , REG , const O : u8 > PWREN_ENABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn pwren_enable_disable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn pwren_enable_enable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE) } } # [doc = "KEY to allow Power State Change\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum PWREN_KEY_AW { # [doc = "38: _TO_UNLOCK_W_"]
PWREN_KEY_UNLOCK_W = 38 , } impl From < PWREN_KEY_AW > for u8 { # [inline (always)]
fn from (variant : PWREN_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for PWREN_KEY_AW { type Ux = u8 ; } # [doc = "Field `PWREN_KEY` writer - KEY to allow Power State Change"]
pub type PWREN_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , PWREN_KEY_AW > ; impl < 'a , REG , const O : u8 > PWREN_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn pwren_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_KEY_AW :: PWREN_KEY_UNLOCK_W) } } impl R { # [doc = "Bit 0 - Enable the power Note: For safety devices the power cannot be disabled once enabled."]
# [inline (always)]
pub fn pwren_enable (& self) -> PWREN_ENABLE_R { PWREN_ENABLE_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - Enable the power Note: For safety devices the power cannot be disabled once enabled."]
# [inline (always)]
# [must_use]
pub fn pwren_enable (& mut self) -> PWREN_ENABLE_W < PWREN_SPEC , 0 > { PWREN_ENABLE_W :: new (self) } # [doc = "Bits 24:31 - KEY to allow Power State Change"]
# [inline (always)]
# [must_use]
pub fn pwren_key (& mut self) -> PWREN_KEY_W < PWREN_SPEC , 24 > { PWREN_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PWREN_SPEC ; impl crate :: RegisterSpec for PWREN_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pwren::R`](R) reader structure"]
impl crate :: Readable for PWREN_SPEC { } # [doc = "`write(|w| ..)` method takes [`pwren::W`](W) writer structure"]
impl crate :: Writable for PWREN_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PWREN to value 0"]
impl crate :: Resettable for PWREN_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RSTCTL (w) register accessor: Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rstctl`]
module"]
pub type RSTCTL = crate :: Reg < rstctl :: RSTCTL_SPEC > ; # [doc = "Reset Control"]
pub mod rstctl { # [doc = "Register `RSTCTL` writer"]
pub type W = crate :: W < RSTCTL_SPEC > ; # [doc = "Assert reset to the peripheral Note: For safety devices a watchdog reset by software is not possible.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETASSERT_AW { # [doc = "0: NOP"]
RSTCTL_RESETASSERT_NOP = 0 , # [doc = "1: ASSERT"]
RSTCTL_RESETASSERT_ASSERT = 1 , } impl From < RSTCTL_RESETASSERT_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETASSERT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETASSERT` writer - Assert reset to the peripheral Note: For safety devices a watchdog reset by software is not possible."]
pub type RSTCTL_RESETASSERT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETASSERT_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETASSERT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetassert_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_NOP) } # [doc = "ASSERT"]
# [inline (always)]
pub fn rstctl_resetassert_assert (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_ASSERT) } } # [doc = "Clear \\[GPRCM.STAT.RESETSTKY\\]\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETSTKYCLR_AW { # [doc = "0: NOP"]
RSTCTL_RESETSTKYCLR_NOP = 0 , # [doc = "1: CLR"]
RSTCTL_RESETSTKYCLR_CLR = 1 , } impl From < RSTCTL_RESETSTKYCLR_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETSTKYCLR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETSTKYCLR` writer - Clear \\[GPRCM.STAT.RESETSTKY\\]"]
pub type RSTCTL_RESETSTKYCLR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETSTKYCLR_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETSTKYCLR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetstkyclr_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_NOP) } # [doc = "CLR"]
# [inline (always)]
pub fn rstctl_resetstkyclr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_CLR) } } # [doc = "Unlock key\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum RSTCTL_KEY_AW { # [doc = "177: _TO_UNLOCK_W_"]
RSTCTL_KEY_UNLOCK_W = 177 , } impl From < RSTCTL_KEY_AW > for u8 { # [inline (always)]
fn from (variant : RSTCTL_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for RSTCTL_KEY_AW { type Ux = u8 ; } # [doc = "Field `RSTCTL_KEY` writer - Unlock key"]
pub type RSTCTL_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , RSTCTL_KEY_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn rstctl_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_KEY_AW :: RSTCTL_KEY_UNLOCK_W) } } impl W { # [doc = "Bit 0 - Assert reset to the peripheral Note: For safety devices a watchdog reset by software is not possible."]
# [inline (always)]
# [must_use]
pub fn rstctl_resetassert (& mut self) -> RSTCTL_RESETASSERT_W < RSTCTL_SPEC , 0 > { RSTCTL_RESETASSERT_W :: new (self) } # [doc = "Bit 1 - Clear \\[GPRCM.STAT.RESETSTKY\\]"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetstkyclr (& mut self) -> RSTCTL_RESETSTKYCLR_W < RSTCTL_SPEC , 1 > { RSTCTL_RESETSTKYCLR_W :: new (self) } # [doc = "Bits 24:31 - Unlock key"]
# [inline (always)]
# [must_use]
pub fn rstctl_key (& mut self) -> RSTCTL_KEY_W < RSTCTL_SPEC , 24 > { RSTCTL_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RSTCTL_SPEC ; impl crate :: RegisterSpec for RSTCTL_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`rstctl::W`](W) writer structure"]
impl crate :: Writable for RSTCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets RSTCTL to value 0"]
impl crate :: Resettable for RSTCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "STAT (r) register accessor: Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@stat`]
module"]
pub type STAT = crate :: Reg < stat :: STAT_SPEC > ; # [doc = "Status Register"]
pub mod stat { # [doc = "Register `STAT` reader"]
pub type R = crate :: R < STAT_SPEC > ; # [doc = "Field `STAT_RESETSTKY` reader - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
pub type STAT_RESETSTKY_R = crate :: BitReader < STAT_RESETSTKY_A > ; # [doc = "This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_RESETSTKY_A { # [doc = "0: NORES"]
STAT_RESETSTKY_NORES = 0 , # [doc = "1: RESET"]
STAT_RESETSTKY_RESET = 1 , } impl From < STAT_RESETSTKY_A > for bool { # [inline (always)]
fn from (variant : STAT_RESETSTKY_A) -> Self { variant as u8 != 0 } } impl STAT_RESETSTKY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_RESETSTKY_A { match self . bits { false => STAT_RESETSTKY_A :: STAT_RESETSTKY_NORES , true => STAT_RESETSTKY_A :: STAT_RESETSTKY_RESET , } } # [doc = "NORES"]
# [inline (always)]
pub fn is_stat_resetstky_nores (& self) -> bool { * self == STAT_RESETSTKY_A :: STAT_RESETSTKY_NORES } # [doc = "RESET"]
# [inline (always)]
pub fn is_stat_resetstky_reset (& self) -> bool { * self == STAT_RESETSTKY_A :: STAT_RESETSTKY_RESET } } impl R { # [doc = "Bit 16 - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
# [inline (always)]
pub fn stat_resetstky (& self) -> STAT_RESETSTKY_R { STAT_RESETSTKY_R :: new (((self . bits >> 16) & 1) != 0) } } # [doc = "Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct STAT_SPEC ; impl crate :: RegisterSpec for STAT_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`stat::R`](R) reader structure"]
impl crate :: Readable for STAT_SPEC { } # [doc = "`reset()` method sets STAT to value 0"]
impl crate :: Resettable for STAT_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "PDBGCTL (rw) register accessor: Peripheral Debug Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pdbgctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pdbgctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pdbgctl`]
module"]
pub type PDBGCTL = crate :: Reg < pdbgctl :: PDBGCTL_SPEC > ; # [doc = "Peripheral Debug Control"]
pub mod pdbgctl { # [doc = "Register `PDBGCTL` reader"]
pub type R = crate :: R < PDBGCTL_SPEC > ; # [doc = "Register `PDBGCTL` writer"]
pub type W = crate :: W < PDBGCTL_SPEC > ; # [doc = "Field `PDBGCTL_FREE` reader - Free run control"]
pub type PDBGCTL_FREE_R = crate :: BitReader < PDBGCTL_FREE_A > ; # [doc = "Free run control\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PDBGCTL_FREE_A { # [doc = "0: STOP"]
PDBGCTL_FREE_STOP = 0 , # [doc = "1: RUN"]
PDBGCTL_FREE_RUN = 1 , } impl From < PDBGCTL_FREE_A > for bool { # [inline (always)]
fn from (variant : PDBGCTL_FREE_A) -> Self { variant as u8 != 0 } } impl PDBGCTL_FREE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PDBGCTL_FREE_A { match self . bits { false => PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP , true => PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN , } } # [doc = "STOP"]
# [inline (always)]
pub fn is_pdbgctl_free_stop (& self) -> bool { * self == PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP } # [doc = "RUN"]
# [inline (always)]
pub fn is_pdbgctl_free_run (& self) -> bool { * self == PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN } } # [doc = "Field `PDBGCTL_FREE` writer - Free run control"]
pub type PDBGCTL_FREE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PDBGCTL_FREE_A > ; impl < 'a , REG , const O : u8 > PDBGCTL_FREE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "STOP"]
# [inline (always)]
pub fn pdbgctl_free_stop (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP) } # [doc = "RUN"]
# [inline (always)]
pub fn pdbgctl_free_run (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN) } } impl R { # [doc = "Bit 0 - Free run control"]
# [inline (always)]
pub fn pdbgctl_free (& self) -> PDBGCTL_FREE_R { PDBGCTL_FREE_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - Free run control"]
# [inline (always)]
# [must_use]
pub fn pdbgctl_free (& mut self) -> PDBGCTL_FREE_W < PDBGCTL_SPEC , 0 > { PDBGCTL_FREE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Peripheral Debug Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pdbgctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pdbgctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PDBGCTL_SPEC ; impl crate :: RegisterSpec for PDBGCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pdbgctl::R`](R) reader structure"]
impl crate :: Readable for PDBGCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`pdbgctl::W`](W) writer structure"]
impl crate :: Writable for PDBGCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PDBGCTL to value 0"]
impl crate :: Resettable for PDBGCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "IIDX (r) register accessor: Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@iidx`]
module"]
pub type IIDX = crate :: Reg < iidx :: IIDX_SPEC > ; # [doc = "Interrupt index"]
pub mod iidx { # [doc = "Register `IIDX` reader"]
pub type R = crate :: R < IIDX_SPEC > ; # [doc = "Field `IIDX_STAT` reader - Module Interrupt Vector Value. This register provides the highest priority interrupt index. A read clears the corresponding interrupt flag in RIS and MISC."]
pub type IIDX_STAT_R = crate :: FieldReader < IIDX_STAT_A > ; # [doc = "Module Interrupt Vector Value. This register provides the highest priority interrupt index. A read clears the corresponding interrupt flag in RIS and MISC.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum IIDX_STAT_A { # [doc = "0: NO_INTR"]
IIDX_STAT_NO_INTR = 0 , # [doc = "1: INTTIM"]
IIDX_STAT_INTTIM = 1 , } impl From < IIDX_STAT_A > for u8 { # [inline (always)]
fn from (variant : IIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for IIDX_STAT_A { type Ux = u8 ; } impl IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < IIDX_STAT_A > { match self . bits { 0 => Some (IIDX_STAT_A :: IIDX_STAT_NO_INTR) , 1 => Some (IIDX_STAT_A :: IIDX_STAT_INTTIM) , _ => None , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_iidx_stat_no_intr (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_NO_INTR } # [doc = "INTTIM"]
# [inline (always)]
pub fn is_iidx_stat_inttim (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_INTTIM } } impl R { # [doc = "Bits 0:4 - Module Interrupt Vector Value. This register provides the highest priority interrupt index. A read clears the corresponding interrupt flag in RIS and MISC."]
# [inline (always)]
pub fn iidx_stat (& self) -> IIDX_STAT_R { IIDX_STAT_R :: new ((self . bits & 0x1f) as u8) } } # [doc = "Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IIDX_SPEC ; impl crate :: RegisterSpec for IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`iidx::R`](R) reader structure"]
impl crate :: Readable for IIDX_SPEC { } # [doc = "`reset()` method sets IIDX to value 0"]
impl crate :: Resettable for IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "IMASK (rw) register accessor: Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`imask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`imask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@imask`]
module"]
pub type IMASK = crate :: Reg < imask :: IMASK_SPEC > ; # [doc = "Interrupt mask"]
pub mod imask { # [doc = "Register `IMASK` reader"]
pub type R = crate :: R < IMASK_SPEC > ; # [doc = "Register `IMASK` writer"]
pub type W = crate :: W < IMASK_SPEC > ; # [doc = "Field `IMASK_INTTIM` reader - Interval Timer Interrupt."]
pub type IMASK_INTTIM_R = crate :: BitReader < IMASK_INTTIM_A > ; # [doc = "Interval Timer Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_INTTIM_A { # [doc = "0: CLR"]
IMASK_INTTIM_CLR = 0 , # [doc = "1: SET"]
IMASK_INTTIM_SET = 1 , } impl From < IMASK_INTTIM_A > for bool { # [inline (always)]
fn from (variant : IMASK_INTTIM_A) -> Self { variant as u8 != 0 } } impl IMASK_INTTIM_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_INTTIM_A { match self . bits { false => IMASK_INTTIM_A :: IMASK_INTTIM_CLR , true => IMASK_INTTIM_A :: IMASK_INTTIM_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_inttim_clr (& self) -> bool { * self == IMASK_INTTIM_A :: IMASK_INTTIM_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_inttim_set (& self) -> bool { * self == IMASK_INTTIM_A :: IMASK_INTTIM_SET } } # [doc = "Field `IMASK_INTTIM` writer - Interval Timer Interrupt."]
pub type IMASK_INTTIM_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_INTTIM_A > ; impl < 'a , REG , const O : u8 > IMASK_INTTIM_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_inttim_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_INTTIM_A :: IMASK_INTTIM_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_inttim_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_INTTIM_A :: IMASK_INTTIM_SET) } } impl R { # [doc = "Bit 0 - Interval Timer Interrupt."]
# [inline (always)]
pub fn imask_inttim (& self) -> IMASK_INTTIM_R { IMASK_INTTIM_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - Interval Timer Interrupt."]
# [inline (always)]
# [must_use]
pub fn imask_inttim (& mut self) -> IMASK_INTTIM_W < IMASK_SPEC , 0 > { IMASK_INTTIM_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`imask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`imask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IMASK_SPEC ; impl crate :: RegisterSpec for IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`imask::R`](R) reader structure"]
impl crate :: Readable for IMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`imask::W`](W) writer structure"]
impl crate :: Writable for IMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets IMASK to value 0"]
impl crate :: Resettable for IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RIS (r) register accessor: Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ris`]
module"]
pub type RIS = crate :: Reg < ris :: RIS_SPEC > ; # [doc = "Raw interrupt status"]
pub mod ris { # [doc = "Register `RIS` reader"]
pub type R = crate :: R < RIS_SPEC > ; # [doc = "Field `RIS_INTTIM` reader - Interval Timer Interrupt."]
pub type RIS_INTTIM_R = crate :: BitReader < RIS_INTTIM_A > ; # [doc = "Interval Timer Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_INTTIM_A { # [doc = "0: CLR"]
RIS_INTTIM_CLR = 0 , # [doc = "1: SET"]
RIS_INTTIM_SET = 1 , } impl From < RIS_INTTIM_A > for bool { # [inline (always)]
fn from (variant : RIS_INTTIM_A) -> Self { variant as u8 != 0 } } impl RIS_INTTIM_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_INTTIM_A { match self . bits { false => RIS_INTTIM_A :: RIS_INTTIM_CLR , true => RIS_INTTIM_A :: RIS_INTTIM_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_inttim_clr (& self) -> bool { * self == RIS_INTTIM_A :: RIS_INTTIM_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_inttim_set (& self) -> bool { * self == RIS_INTTIM_A :: RIS_INTTIM_SET } } impl R { # [doc = "Bit 0 - Interval Timer Interrupt."]
# [inline (always)]
pub fn ris_inttim (& self) -> RIS_INTTIM_R { RIS_INTTIM_R :: new ((self . bits & 1) != 0) } } # [doc = "Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RIS_SPEC ; impl crate :: RegisterSpec for RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ris::R`](R) reader structure"]
impl crate :: Readable for RIS_SPEC { } # [doc = "`reset()` method sets RIS to value 0"]
impl crate :: Resettable for RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "MIS (r) register accessor: Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mis`]
module"]
pub type MIS = crate :: Reg < mis :: MIS_SPEC > ; # [doc = "Masked interrupt status"]
pub mod mis { # [doc = "Register `MIS` reader"]
pub type R = crate :: R < MIS_SPEC > ; # [doc = "Field `MIS_INTTIM` reader - Interval Timer Interrupt."]
pub type MIS_INTTIM_R = crate :: BitReader < MIS_INTTIM_A > ; # [doc = "Interval Timer Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_INTTIM_A { # [doc = "0: CLR"]
MIS_INTTIM_CLR = 0 , # [doc = "1: SET"]
MIS_INTTIM_SET = 1 , } impl From < MIS_INTTIM_A > for bool { # [inline (always)]
fn from (variant : MIS_INTTIM_A) -> Self { variant as u8 != 0 } } impl MIS_INTTIM_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_INTTIM_A { match self . bits { false => MIS_INTTIM_A :: MIS_INTTIM_CLR , true => MIS_INTTIM_A :: MIS_INTTIM_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_inttim_clr (& self) -> bool { * self == MIS_INTTIM_A :: MIS_INTTIM_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_inttim_set (& self) -> bool { * self == MIS_INTTIM_A :: MIS_INTTIM_SET } } impl R { # [doc = "Bit 0 - Interval Timer Interrupt."]
# [inline (always)]
pub fn mis_inttim (& self) -> MIS_INTTIM_R { MIS_INTTIM_R :: new ((self . bits & 1) != 0) } } # [doc = "Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MIS_SPEC ; impl crate :: RegisterSpec for MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`mis::R`](R) reader structure"]
impl crate :: Readable for MIS_SPEC { } # [doc = "`reset()` method sets MIS to value 0"]
impl crate :: Resettable for MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "ISET (w) register accessor: Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@iset`]
module"]
pub type ISET = crate :: Reg < iset :: ISET_SPEC > ; # [doc = "Interrupt set"]
pub mod iset { # [doc = "Register `ISET` writer"]
pub type W = crate :: W < ISET_SPEC > ; # [doc = "Interval Timer Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_INTTIM_AW { # [doc = "0: NO_EFFECT"]
ISET_INTTIM_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_INTTIM_SET = 1 , } impl From < ISET_INTTIM_AW > for bool { # [inline (always)]
fn from (variant : ISET_INTTIM_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_INTTIM` writer - Interval Timer Interrupt."]
pub type ISET_INTTIM_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_INTTIM_AW > ; impl < 'a , REG , const O : u8 > ISET_INTTIM_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_inttim_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_INTTIM_AW :: ISET_INTTIM_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_inttim_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_INTTIM_AW :: ISET_INTTIM_SET) } } impl W { # [doc = "Bit 0 - Interval Timer Interrupt."]
# [inline (always)]
# [must_use]
pub fn iset_inttim (& mut self) -> ISET_INTTIM_W < ISET_SPEC , 0 > { ISET_INTTIM_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ISET_SPEC ; impl crate :: RegisterSpec for ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`iset::W`](W) writer structure"]
impl crate :: Writable for ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets ISET to value 0"]
impl crate :: Resettable for ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "ICLR (w) register accessor: Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@iclr`]
module"]
pub type ICLR = crate :: Reg < iclr :: ICLR_SPEC > ; # [doc = "Interrupt clear"]
pub mod iclr { # [doc = "Register `ICLR` writer"]
pub type W = crate :: W < ICLR_SPEC > ; # [doc = "Interval Timer Interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_INTTIM_AW { # [doc = "0: NO_EFFECT"]
ICLR_INTTIM_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_INTTIM_CLR = 1 , } impl From < ICLR_INTTIM_AW > for bool { # [inline (always)]
fn from (variant : ICLR_INTTIM_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_INTTIM` writer - Interval Timer Interrupt."]
pub type ICLR_INTTIM_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_INTTIM_AW > ; impl < 'a , REG , const O : u8 > ICLR_INTTIM_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_inttim_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_INTTIM_AW :: ICLR_INTTIM_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_inttim_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_INTTIM_AW :: ICLR_INTTIM_CLR) } } impl W { # [doc = "Bit 0 - Interval Timer Interrupt."]
# [inline (always)]
# [must_use]
pub fn iclr_inttim (& mut self) -> ICLR_INTTIM_W < ICLR_SPEC , 0 > { ICLR_INTTIM_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ICLR_SPEC ; impl crate :: RegisterSpec for ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`iclr::W`](W) writer structure"]
impl crate :: Writable for ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets ICLR to value 0"]
impl crate :: Resettable for ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "EVT_MODE (rw) register accessor: Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`evt_mode::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@evt_mode`]
module"]
pub type EVT_MODE = crate :: Reg < evt_mode :: EVT_MODE_SPEC > ; # [doc = "Event Mode"]
pub mod evt_mode { # [doc = "Register `EVT_MODE` reader"]
pub type R = crate :: R < EVT_MODE_SPEC > ; # [doc = "Register `EVT_MODE` writer"]
pub type W = crate :: W < EVT_MODE_SPEC > ; # [doc = "Field `EVT_MODE_INT0_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[0\\]"]
pub type EVT_MODE_INT0_CFG_R = crate :: FieldReader < EVT_MODE_INT0_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[0\\]\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_INT0_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_INT0_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_INT0_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_INT0_CFG_HARDWARE = 2 , } impl From < EVT_MODE_INT0_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_INT0_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_INT0_CFG_A { type Ux = u8 ; } impl EVT_MODE_INT0_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_INT0_CFG_A > { match self . bits { 0 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_DISABLE) , 1 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_SOFTWARE) , 2 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_disable (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_software (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_hardware (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_HARDWARE } } impl R { # [doc = "Bits 0:1 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[0\\]"]
# [inline (always)]
pub fn evt_mode_int0_cfg (& self) -> EVT_MODE_INT0_CFG_R { EVT_MODE_INT0_CFG_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`evt_mode::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct EVT_MODE_SPEC ; impl crate :: RegisterSpec for EVT_MODE_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`evt_mode::R`](R) reader structure"]
impl crate :: Readable for EVT_MODE_SPEC { } # [doc = "`write(|w| ..)` method takes [`evt_mode::W`](W) writer structure"]
impl crate :: Writable for EVT_MODE_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets EVT_MODE to value 0"]
impl crate :: Resettable for EVT_MODE_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DESC (r) register accessor: Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@desc`]
module"]
pub type DESC = crate :: Reg < desc :: DESC_SPEC > ; # [doc = "Module Description"]
pub mod desc { # [doc = "Register `DESC` reader"]
pub type R = crate :: R < DESC_SPEC > ; # [doc = "Field `DESC_MINREV` reader - Minor rev of the IP"]
pub type DESC_MINREV_R = crate :: FieldReader ; # [doc = "Field `DESC_MAJREV` reader - Major rev of the IP"]
pub type DESC_MAJREV_R = crate :: FieldReader ; # [doc = "Field `DESC_INSTNUM` reader - Instance Number within the device. This will be a parameter to the RTL for modules that can have multiple instances"]
pub type DESC_INSTNUM_R = crate :: FieldReader ; # [doc = "Field `DESC_FEATUREVER` reader - Feature Set for the module *instance*"]
pub type DESC_FEATUREVER_R = crate :: FieldReader ; # [doc = "Field `DESC_MODULEID` reader - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
pub type DESC_MODULEID_R = crate :: FieldReader < u16 > ; impl R { # [doc = "Bits 0:3 - Minor rev of the IP"]
# [inline (always)]
pub fn desc_minrev (& self) -> DESC_MINREV_R { DESC_MINREV_R :: new ((self . bits & 0x0f) as u8) } # [doc = "Bits 4:7 - Major rev of the IP"]
# [inline (always)]
pub fn desc_majrev (& self) -> DESC_MAJREV_R { DESC_MAJREV_R :: new (((self . bits >> 4) & 0x0f) as u8) } # [doc = "Bits 8:11 - Instance Number within the device. This will be a parameter to the RTL for modules that can have multiple instances"]
# [inline (always)]
pub fn desc_instnum (& self) -> DESC_INSTNUM_R { DESC_INSTNUM_R :: new (((self . bits >> 8) & 0x0f) as u8) } # [doc = "Bits 12:15 - Feature Set for the module *instance*"]
# [inline (always)]
pub fn desc_featurever (& self) -> DESC_FEATUREVER_R { DESC_FEATUREVER_R :: new (((self . bits >> 12) & 0x0f) as u8) } # [doc = "Bits 16:31 - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
# [inline (always)]
pub fn desc_moduleid (& self) -> DESC_MODULEID_R { DESC_MODULEID_R :: new (((self . bits >> 16) & 0xffff) as u16) } } # [doc = "Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DESC_SPEC ; impl crate :: RegisterSpec for DESC_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`desc::R`](R) reader structure"]
impl crate :: Readable for DESC_SPEC { } # [doc = "`reset()` method sets DESC to value 0"]
impl crate :: Resettable for DESC_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "WWDTCTL0 (rw) register accessor: Window Watchdog Timer Control Register 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`wwdtctl0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`wwdtctl0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@wwdtctl0`]
module"]
pub type WWDTCTL0 = crate :: Reg < wwdtctl0 :: WWDTCTL0_SPEC > ; # [doc = "Window Watchdog Timer Control Register 0"]
pub mod wwdtctl0 { # [doc = "Register `WWDTCTL0` reader"]
pub type R = crate :: R < WWDTCTL0_SPEC > ; # [doc = "Register `WWDTCTL0` writer"]
pub type W = crate :: W < WWDTCTL0_SPEC > ; # [doc = "Field `WWDTCTL0_CLKDIV` reader - Module Clock Divider, Divide the clock source by CLKDIV+1. Divider values from /1 to /8 are possible. The clock divider is currently 4 bits. Bit 4 has no effect and should always be written with 0."]
pub type WWDTCTL0_CLKDIV_R = crate :: FieldReader ; # [doc = "Field `WWDTCTL0_CLKDIV` writer - Module Clock Divider, Divide the clock source by CLKDIV+1. Divider values from /1 to /8 are possible. The clock divider is currently 4 bits. Bit 4 has no effect and should always be written with 0."]
pub type WWDTCTL0_CLKDIV_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O > ; # [doc = "Field `WWDTCTL0_PER` reader - Timer Period of the WWDT. These bits select the total watchdog timer count."]
pub type WWDTCTL0_PER_R = crate :: FieldReader < WWDTCTL0_PER_A > ; # [doc = "Timer Period of the WWDT. These bits select the total watchdog timer count.\n\nValue on reset: 4"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum WWDTCTL0_PER_A { # [doc = "0: EN_25"]
WWDTCTL0_PER_EN_25 = 0 , # [doc = "1: EN_21"]
WWDTCTL0_PER_EN_21 = 1 , # [doc = "2: EN_18"]
WWDTCTL0_PER_EN_18 = 2 , # [doc = "3: EN_15"]
WWDTCTL0_PER_EN_15 = 3 , # [doc = "4: EN_12"]
WWDTCTL0_PER_EN_12 = 4 , # [doc = "5: EN_10"]
WWDTCTL0_PER_EN_10 = 5 , # [doc = "6: EN_8"]
WWDTCTL0_PER_EN_8 = 6 , # [doc = "7: EN_6"]
WWDTCTL0_PER_EN_6 = 7 , } impl From < WWDTCTL0_PER_A > for u8 { # [inline (always)]
fn from (variant : WWDTCTL0_PER_A) -> Self { variant as _ } } impl crate :: FieldSpec for WWDTCTL0_PER_A { type Ux = u8 ; } impl WWDTCTL0_PER_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> WWDTCTL0_PER_A { match self . bits { 0 => WWDTCTL0_PER_A :: WWDTCTL0_PER_EN_25 , 1 => WWDTCTL0_PER_A :: WWDTCTL0_PER_EN_21 , 2 => WWDTCTL0_PER_A :: WWDTCTL0_PER_EN_18 , 3 => WWDTCTL0_PER_A :: WWDTCTL0_PER_EN_15 , 4 => WWDTCTL0_PER_A :: WWDTCTL0_PER_EN_12 , 5 => WWDTCTL0_PER_A :: WWDTCTL0_PER_EN_10 , 6 => WWDTCTL0_PER_A :: WWDTCTL0_PER_EN_8 , 7 => WWDTCTL0_PER_A :: WWDTCTL0_PER_EN_6 , _ => unreachable ! () , } } # [doc = "EN_25"]
# [inline (always)]
pub fn is_wwdtctl0_per_en_25 (& self) -> bool { * self == WWDTCTL0_PER_A :: WWDTCTL0_PER_EN_25 } # [doc = "EN_21"]
# [inline (always)]
pub fn is_wwdtctl0_per_en_21 (& self) -> bool { * self == WWDTCTL0_PER_A :: WWDTCTL0_PER_EN_21 } # [doc = "EN_18"]
# [inline (always)]
pub fn is_wwdtctl0_per_en_18 (& self) -> bool { * self == WWDTCTL0_PER_A :: WWDTCTL0_PER_EN_18 } # [doc = "EN_15"]
# [inline (always)]
pub fn is_wwdtctl0_per_en_15 (& self) -> bool { * self == WWDTCTL0_PER_A :: WWDTCTL0_PER_EN_15 } # [doc = "EN_12"]
# [inline (always)]
pub fn is_wwdtctl0_per_en_12 (& self) -> bool { * self == WWDTCTL0_PER_A :: WWDTCTL0_PER_EN_12 } # [doc = "EN_10"]
# [inline (always)]
pub fn is_wwdtctl0_per_en_10 (& self) -> bool { * self == WWDTCTL0_PER_A :: WWDTCTL0_PER_EN_10 } # [doc = "EN_8"]
# [inline (always)]
pub fn is_wwdtctl0_per_en_8 (& self) -> bool { * self == WWDTCTL0_PER_A :: WWDTCTL0_PER_EN_8 } # [doc = "EN_6"]
# [inline (always)]
pub fn is_wwdtctl0_per_en_6 (& self) -> bool { * self == WWDTCTL0_PER_A :: WWDTCTL0_PER_EN_6 } } # [doc = "Field `WWDTCTL0_PER` writer - Timer Period of the WWDT. These bits select the total watchdog timer count."]
pub type WWDTCTL0_PER_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 3 , O , WWDTCTL0_PER_A > ; impl < 'a , REG , const O : u8 > WWDTCTL0_PER_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "EN_25"]
# [inline (always)]
pub fn wwdtctl0_per_en_25 (self) -> & 'a mut crate :: W < REG > { self . variant (WWDTCTL0_PER_A :: WWDTCTL0_PER_EN_25) } # [doc = "EN_21"]
# [inline (always)]
pub fn wwdtctl0_per_en_21 (self) -> & 'a mut crate :: W < REG > { self . variant (WWDTCTL0_PER_A :: WWDTCTL0_PER_EN_21) } # [doc = "EN_18"]
# [inline (always)]
pub fn wwdtctl0_per_en_18 (self) -> & 'a mut crate :: W < REG > { self . variant (WWDTCTL0_PER_A :: WWDTCTL0_PER_EN_18) } # [doc = "EN_15"]
# [inline (always)]
pub fn wwdtctl0_per_en_15 (self) -> & 'a mut crate :: W < REG > { self . variant (WWDTCTL0_PER_A :: WWDTCTL0_PER_EN_15) } # [doc = "EN_12"]
# [inline (always)]
pub fn wwdtctl0_per_en_12 (self) -> & 'a mut crate :: W < REG > { self . variant (WWDTCTL0_PER_A :: WWDTCTL0_PER_EN_12) } # [doc = "EN_10"]
# [inline (always)]
pub fn wwdtctl0_per_en_10 (self) -> & 'a mut crate :: W < REG > { self . variant (WWDTCTL0_PER_A :: WWDTCTL0_PER_EN_10) } # [doc = "EN_8"]
# [inline (always)]
pub fn wwdtctl0_per_en_8 (self) -> & 'a mut crate :: W < REG > { self . variant (WWDTCTL0_PER_A :: WWDTCTL0_PER_EN_8) } # [doc = "EN_6"]
# [inline (always)]
pub fn wwdtctl0_per_en_6 (self) -> & 'a mut crate :: W < REG > { self . variant (WWDTCTL0_PER_A :: WWDTCTL0_PER_EN_6) } } # [doc = "Field `WWDTCTL0_WINDOW0` reader - Closed window period in percentage of the timer interval. WWDTCTL1.WINSEL determines the active window setting (WWDTCTL0.WINDOW0 or WWDTCTL0.WINDOW1)."]
pub type WWDTCTL0_WINDOW0_R = crate :: FieldReader < WWDTCTL0_WINDOW0_A > ; # [doc = "Closed window period in percentage of the timer interval. WWDTCTL1.WINSEL determines the active window setting (WWDTCTL0.WINDOW0 or WWDTCTL0.WINDOW1).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum WWDTCTL0_WINDOW0_A { # [doc = "0: SIZE_0"]
WWDTCTL0_WINDOW0_SIZE_0 = 0 , # [doc = "1: SIZE_12"]
WWDTCTL0_WINDOW0_SIZE_12 = 1 , # [doc = "2: SIZE_18"]
WWDTCTL0_WINDOW0_SIZE_18 = 2 , # [doc = "3: SIZE_25"]
WWDTCTL0_WINDOW0_SIZE_25 = 3 , # [doc = "4: SIZE_50"]
WWDTCTL0_WINDOW0_SIZE_50 = 4 , # [doc = "5: SIZE_75"]
WWDTCTL0_WINDOW0_SIZE_75 = 5 , # [doc = "6: SIZE_81"]
WWDTCTL0_WINDOW0_SIZE_81 = 6 , # [doc = "7: SIZE_87"]
WWDTCTL0_WINDOW0_SIZE_87 = 7 , } impl From < WWDTCTL0_WINDOW0_A > for u8 { # [inline (always)]
fn from (variant : WWDTCTL0_WINDOW0_A) -> Self { variant as _ } } impl crate :: FieldSpec for WWDTCTL0_WINDOW0_A { type Ux = u8 ; } impl WWDTCTL0_WINDOW0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> WWDTCTL0_WINDOW0_A { match self . bits { 0 => WWDTCTL0_WINDOW0_A :: WWDTCTL0_WINDOW0_SIZE_0 , 1 => WWDTCTL0_WINDOW0_A :: WWDTCTL0_WINDOW0_SIZE_12 , 2 => WWDTCTL0_WINDOW0_A :: WWDTCTL0_WINDOW0_SIZE_18 , 3 => WWDTCTL0_WINDOW0_A :: WWDTCTL0_WINDOW0_SIZE_25 , 4 => WWDTCTL0_WINDOW0_A :: WWDTCTL0_WINDOW0_SIZE_50 , 5 => WWDTCTL0_WINDOW0_A :: WWDTCTL0_WINDOW0_SIZE_75 , 6 => WWDTCTL0_WINDOW0_A :: WWDTCTL0_WINDOW0_SIZE_81 , 7 => WWDTCTL0_WINDOW0_A :: WWDTCTL0_WINDOW0_SIZE_87 , _ => unreachable ! () , } } # [doc = "SIZE_0"]
# [inline (always)]
pub fn is_wwdtctl0_window0_size_0 (& self) -> bool { * self == WWDTCTL0_WINDOW0_A :: WWDTCTL0_WINDOW0_SIZE_0 } # [doc = "SIZE_12"]
# [inline (always)]
pub fn is_wwdtctl0_window0_size_12 (& self) -> bool { * self == WWDTCTL0_WINDOW0_A :: WWDTCTL0_WINDOW0_SIZE_12 } # [doc = "SIZE_18"]
# [inline (always)]
pub fn is_wwdtctl0_window0_size_18 (& self) -> bool { * self == WWDTCTL0_WINDOW0_A :: WWDTCTL0_WINDOW0_SIZE_18 } # [doc = "SIZE_25"]
# [inline (always)]
pub fn is_wwdtctl0_window0_size_25 (& self) -> bool { * self == WWDTCTL0_WINDOW0_A :: WWDTCTL0_WINDOW0_SIZE_25 } # [doc = "SIZE_50"]
# [inline (always)]
pub fn is_wwdtctl0_window0_size_50 (& self) -> bool { * self == WWDTCTL0_WINDOW0_A :: WWDTCTL0_WINDOW0_SIZE_50 } # [doc = "SIZE_75"]
# [inline (always)]
pub fn is_wwdtctl0_window0_size_75 (& self) -> bool { * self == WWDTCTL0_WINDOW0_A :: WWDTCTL0_WINDOW0_SIZE_75 } # [doc = "SIZE_81"]
# [inline (always)]
pub fn is_wwdtctl0_window0_size_81 (& self) -> bool { * self == WWDTCTL0_WINDOW0_A :: WWDTCTL0_WINDOW0_SIZE_81 } # [doc = "SIZE_87"]
# [inline (always)]
pub fn is_wwdtctl0_window0_size_87 (& self) -> bool { * self == WWDTCTL0_WINDOW0_A :: WWDTCTL0_WINDOW0_SIZE_87 } } # [doc = "Field `WWDTCTL0_WINDOW0` writer - Closed window period in percentage of the timer interval. WWDTCTL1.WINSEL determines the active window setting (WWDTCTL0.WINDOW0 or WWDTCTL0.WINDOW1)."]
pub type WWDTCTL0_WINDOW0_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 3 , O , WWDTCTL0_WINDOW0_A > ; impl < 'a , REG , const O : u8 > WWDTCTL0_WINDOW0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "SIZE_0"]
# [inline (always)]
pub fn wwdtctl0_window0_size_0 (self) -> & 'a mut crate :: W < REG > { self . variant (WWDTCTL0_WINDOW0_A :: WWDTCTL0_WINDOW0_SIZE_0) } # [doc = "SIZE_12"]
# [inline (always)]
pub fn wwdtctl0_window0_size_12 (self) -> & 'a mut crate :: W < REG > { self . variant (WWDTCTL0_WINDOW0_A :: WWDTCTL0_WINDOW0_SIZE_12) } # [doc = "SIZE_18"]
# [inline (always)]
pub fn wwdtctl0_window0_size_18 (self) -> & 'a mut crate :: W < REG > { self . variant (WWDTCTL0_WINDOW0_A :: WWDTCTL0_WINDOW0_SIZE_18) } # [doc = "SIZE_25"]
# [inline (always)]
pub fn wwdtctl0_window0_size_25 (self) -> & 'a mut crate :: W < REG > { self . variant (WWDTCTL0_WINDOW0_A :: WWDTCTL0_WINDOW0_SIZE_25) } # [doc = "SIZE_50"]
# [inline (always)]
pub fn wwdtctl0_window0_size_50 (self) -> & 'a mut crate :: W < REG > { self . variant (WWDTCTL0_WINDOW0_A :: WWDTCTL0_WINDOW0_SIZE_50) } # [doc = "SIZE_75"]
# [inline (always)]
pub fn wwdtctl0_window0_size_75 (self) -> & 'a mut crate :: W < REG > { self . variant (WWDTCTL0_WINDOW0_A :: WWDTCTL0_WINDOW0_SIZE_75) } # [doc = "SIZE_81"]
# [inline (always)]
pub fn wwdtctl0_window0_size_81 (self) -> & 'a mut crate :: W < REG > { self . variant (WWDTCTL0_WINDOW0_A :: WWDTCTL0_WINDOW0_SIZE_81) } # [doc = "SIZE_87"]
# [inline (always)]
pub fn wwdtctl0_window0_size_87 (self) -> & 'a mut crate :: W < REG > { self . variant (WWDTCTL0_WINDOW0_A :: WWDTCTL0_WINDOW0_SIZE_87) } } # [doc = "Field `WWDTCTL0_WINDOW1` reader - Closed window period in percentage of the timer interval. WWDTCTL1.WINSEL determines the active window setting (WWDTCTL0.WINDOW0 or WWDTCTL0.WINDOW1)."]
pub type WWDTCTL0_WINDOW1_R = crate :: FieldReader < WWDTCTL0_WINDOW1_A > ; # [doc = "Closed window period in percentage of the timer interval. WWDTCTL1.WINSEL determines the active window setting (WWDTCTL0.WINDOW0 or WWDTCTL0.WINDOW1).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum WWDTCTL0_WINDOW1_A { # [doc = "0: SIZE_0"]
WWDTCTL0_WINDOW1_SIZE_0 = 0 , # [doc = "1: SIZE_12"]
WWDTCTL0_WINDOW1_SIZE_12 = 1 , # [doc = "2: SIZE_18"]
WWDTCTL0_WINDOW1_SIZE_18 = 2 , # [doc = "3: SIZE_25"]
WWDTCTL0_WINDOW1_SIZE_25 = 3 , # [doc = "4: SIZE_50"]
WWDTCTL0_WINDOW1_SIZE_50 = 4 , # [doc = "5: SIZE_75"]
WWDTCTL0_WINDOW1_SIZE_75 = 5 , # [doc = "6: SIZE_81"]
WWDTCTL0_WINDOW1_SIZE_81 = 6 , # [doc = "7: SIZE_87"]
WWDTCTL0_WINDOW1_SIZE_87 = 7 , } impl From < WWDTCTL0_WINDOW1_A > for u8 { # [inline (always)]
fn from (variant : WWDTCTL0_WINDOW1_A) -> Self { variant as _ } } impl crate :: FieldSpec for WWDTCTL0_WINDOW1_A { type Ux = u8 ; } impl WWDTCTL0_WINDOW1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> WWDTCTL0_WINDOW1_A { match self . bits { 0 => WWDTCTL0_WINDOW1_A :: WWDTCTL0_WINDOW1_SIZE_0 , 1 => WWDTCTL0_WINDOW1_A :: WWDTCTL0_WINDOW1_SIZE_12 , 2 => WWDTCTL0_WINDOW1_A :: WWDTCTL0_WINDOW1_SIZE_18 , 3 => WWDTCTL0_WINDOW1_A :: WWDTCTL0_WINDOW1_SIZE_25 , 4 => WWDTCTL0_WINDOW1_A :: WWDTCTL0_WINDOW1_SIZE_50 , 5 => WWDTCTL0_WINDOW1_A :: WWDTCTL0_WINDOW1_SIZE_75 , 6 => WWDTCTL0_WINDOW1_A :: WWDTCTL0_WINDOW1_SIZE_81 , 7 => WWDTCTL0_WINDOW1_A :: WWDTCTL0_WINDOW1_SIZE_87 , _ => unreachable ! () , } } # [doc = "SIZE_0"]
# [inline (always)]
pub fn is_wwdtctl0_window1_size_0 (& self) -> bool { * self == WWDTCTL0_WINDOW1_A :: WWDTCTL0_WINDOW1_SIZE_0 } # [doc = "SIZE_12"]
# [inline (always)]
pub fn is_wwdtctl0_window1_size_12 (& self) -> bool { * self == WWDTCTL0_WINDOW1_A :: WWDTCTL0_WINDOW1_SIZE_12 } # [doc = "SIZE_18"]
# [inline (always)]
pub fn is_wwdtctl0_window1_size_18 (& self) -> bool { * self == WWDTCTL0_WINDOW1_A :: WWDTCTL0_WINDOW1_SIZE_18 } # [doc = "SIZE_25"]
# [inline (always)]
pub fn is_wwdtctl0_window1_size_25 (& self) -> bool { * self == WWDTCTL0_WINDOW1_A :: WWDTCTL0_WINDOW1_SIZE_25 } # [doc = "SIZE_50"]
# [inline (always)]
pub fn is_wwdtctl0_window1_size_50 (& self) -> bool { * self == WWDTCTL0_WINDOW1_A :: WWDTCTL0_WINDOW1_SIZE_50 } # [doc = "SIZE_75"]
# [inline (always)]
pub fn is_wwdtctl0_window1_size_75 (& self) -> bool { * self == WWDTCTL0_WINDOW1_A :: WWDTCTL0_WINDOW1_SIZE_75 } # [doc = "SIZE_81"]
# [inline (always)]
pub fn is_wwdtctl0_window1_size_81 (& self) -> bool { * self == WWDTCTL0_WINDOW1_A :: WWDTCTL0_WINDOW1_SIZE_81 } # [doc = "SIZE_87"]
# [inline (always)]
pub fn is_wwdtctl0_window1_size_87 (& self) -> bool { * self == WWDTCTL0_WINDOW1_A :: WWDTCTL0_WINDOW1_SIZE_87 } } # [doc = "Field `WWDTCTL0_WINDOW1` writer - Closed window period in percentage of the timer interval. WWDTCTL1.WINSEL determines the active window setting (WWDTCTL0.WINDOW0 or WWDTCTL0.WINDOW1)."]
pub type WWDTCTL0_WINDOW1_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 3 , O , WWDTCTL0_WINDOW1_A > ; impl < 'a , REG , const O : u8 > WWDTCTL0_WINDOW1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "SIZE_0"]
# [inline (always)]
pub fn wwdtctl0_window1_size_0 (self) -> & 'a mut crate :: W < REG > { self . variant (WWDTCTL0_WINDOW1_A :: WWDTCTL0_WINDOW1_SIZE_0) } # [doc = "SIZE_12"]
# [inline (always)]
pub fn wwdtctl0_window1_size_12 (self) -> & 'a mut crate :: W < REG > { self . variant (WWDTCTL0_WINDOW1_A :: WWDTCTL0_WINDOW1_SIZE_12) } # [doc = "SIZE_18"]
# [inline (always)]
pub fn wwdtctl0_window1_size_18 (self) -> & 'a mut crate :: W < REG > { self . variant (WWDTCTL0_WINDOW1_A :: WWDTCTL0_WINDOW1_SIZE_18) } # [doc = "SIZE_25"]
# [inline (always)]
pub fn wwdtctl0_window1_size_25 (self) -> & 'a mut crate :: W < REG > { self . variant (WWDTCTL0_WINDOW1_A :: WWDTCTL0_WINDOW1_SIZE_25) } # [doc = "SIZE_50"]
# [inline (always)]
pub fn wwdtctl0_window1_size_50 (self) -> & 'a mut crate :: W < REG > { self . variant (WWDTCTL0_WINDOW1_A :: WWDTCTL0_WINDOW1_SIZE_50) } # [doc = "SIZE_75"]
# [inline (always)]
pub fn wwdtctl0_window1_size_75 (self) -> & 'a mut crate :: W < REG > { self . variant (WWDTCTL0_WINDOW1_A :: WWDTCTL0_WINDOW1_SIZE_75) } # [doc = "SIZE_81"]
# [inline (always)]
pub fn wwdtctl0_window1_size_81 (self) -> & 'a mut crate :: W < REG > { self . variant (WWDTCTL0_WINDOW1_A :: WWDTCTL0_WINDOW1_SIZE_81) } # [doc = "SIZE_87"]
# [inline (always)]
pub fn wwdtctl0_window1_size_87 (self) -> & 'a mut crate :: W < REG > { self . variant (WWDTCTL0_WINDOW1_A :: WWDTCTL0_WINDOW1_SIZE_87) } } # [doc = "Field `WWDTCTL0_MODE` reader - Window Watchdog Timer Mode"]
pub type WWDTCTL0_MODE_R = crate :: BitReader < WWDTCTL0_MODE_A > ; # [doc = "Window Watchdog Timer Mode\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum WWDTCTL0_MODE_A { # [doc = "0: WINDOW"]
WWDTCTL0_MODE_WINDOW = 0 , # [doc = "1: INTERVAL"]
WWDTCTL0_MODE_INTERVAL = 1 , } impl From < WWDTCTL0_MODE_A > for bool { # [inline (always)]
fn from (variant : WWDTCTL0_MODE_A) -> Self { variant as u8 != 0 } } impl WWDTCTL0_MODE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> WWDTCTL0_MODE_A { match self . bits { false => WWDTCTL0_MODE_A :: WWDTCTL0_MODE_WINDOW , true => WWDTCTL0_MODE_A :: WWDTCTL0_MODE_INTERVAL , } } # [doc = "WINDOW"]
# [inline (always)]
pub fn is_wwdtctl0_mode_window (& self) -> bool { * self == WWDTCTL0_MODE_A :: WWDTCTL0_MODE_WINDOW } # [doc = "INTERVAL"]
# [inline (always)]
pub fn is_wwdtctl0_mode_interval (& self) -> bool { * self == WWDTCTL0_MODE_A :: WWDTCTL0_MODE_INTERVAL } } # [doc = "Field `WWDTCTL0_MODE` writer - Window Watchdog Timer Mode"]
pub type WWDTCTL0_MODE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , WWDTCTL0_MODE_A > ; impl < 'a , REG , const O : u8 > WWDTCTL0_MODE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "WINDOW"]
# [inline (always)]
pub fn wwdtctl0_mode_window (self) -> & 'a mut crate :: W < REG > { self . variant (WWDTCTL0_MODE_A :: WWDTCTL0_MODE_WINDOW) } # [doc = "INTERVAL"]
# [inline (always)]
pub fn wwdtctl0_mode_interval (self) -> & 'a mut crate :: W < REG > { self . variant (WWDTCTL0_MODE_A :: WWDTCTL0_MODE_INTERVAL) } } # [doc = "Field `WWDTCTL0_STISM` reader - Stop In Sleep Mode. The functionality of this bit requires that POLICY.HWCEN = 0. If POLICY.HWCEN = 1 the WWDT resets during sleep and needs re-configuration. Note: This bit has no effect for the global Window Watchdog as Sleep Mode is not supported."]
pub type WWDTCTL0_STISM_R = crate :: BitReader < WWDTCTL0_STISM_A > ; # [doc = "Stop In Sleep Mode. The functionality of this bit requires that POLICY.HWCEN = 0. If POLICY.HWCEN = 1 the WWDT resets during sleep and needs re-configuration. Note: This bit has no effect for the global Window Watchdog as Sleep Mode is not supported.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum WWDTCTL0_STISM_A { # [doc = "0: CONT"]
WWDTCTL0_STISM_CONT = 0 , # [doc = "1: STOP"]
WWDTCTL0_STISM_STOP = 1 , } impl From < WWDTCTL0_STISM_A > for bool { # [inline (always)]
fn from (variant : WWDTCTL0_STISM_A) -> Self { variant as u8 != 0 } } impl WWDTCTL0_STISM_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> WWDTCTL0_STISM_A { match self . bits { false => WWDTCTL0_STISM_A :: WWDTCTL0_STISM_CONT , true => WWDTCTL0_STISM_A :: WWDTCTL0_STISM_STOP , } } # [doc = "CONT"]
# [inline (always)]
pub fn is_wwdtctl0_stism_cont (& self) -> bool { * self == WWDTCTL0_STISM_A :: WWDTCTL0_STISM_CONT } # [doc = "STOP"]
# [inline (always)]
pub fn is_wwdtctl0_stism_stop (& self) -> bool { * self == WWDTCTL0_STISM_A :: WWDTCTL0_STISM_STOP } } # [doc = "Field `WWDTCTL0_STISM` writer - Stop In Sleep Mode. The functionality of this bit requires that POLICY.HWCEN = 0. If POLICY.HWCEN = 1 the WWDT resets during sleep and needs re-configuration. Note: This bit has no effect for the global Window Watchdog as Sleep Mode is not supported."]
pub type WWDTCTL0_STISM_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , WWDTCTL0_STISM_A > ; impl < 'a , REG , const O : u8 > WWDTCTL0_STISM_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CONT"]
# [inline (always)]
pub fn wwdtctl0_stism_cont (self) -> & 'a mut crate :: W < REG > { self . variant (WWDTCTL0_STISM_A :: WWDTCTL0_STISM_CONT) } # [doc = "STOP"]
# [inline (always)]
pub fn wwdtctl0_stism_stop (self) -> & 'a mut crate :: W < REG > { self . variant (WWDTCTL0_STISM_A :: WWDTCTL0_STISM_STOP) } } # [doc = "Field `WWDTCTL0_KEY` reader - KEY to allow write access to this register. Writing to this register with an incorrect key activates the WWDT error signal to the ESM. Read as 0."]
pub type WWDTCTL0_KEY_R = crate :: FieldReader < WWDTCTL0_KEY_A > ; # [doc = "KEY to allow write access to this register. Writing to this register with an incorrect key activates the WWDT error signal to the ESM. Read as 0.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum WWDTCTL0_KEY_A { # [doc = "201: _TO_UNLOCK_W_"]
WWDTCTL0_KEY_UNLOCK_W = 201 , } impl From < WWDTCTL0_KEY_A > for u8 { # [inline (always)]
fn from (variant : WWDTCTL0_KEY_A) -> Self { variant as _ } } impl crate :: FieldSpec for WWDTCTL0_KEY_A { type Ux = u8 ; } impl WWDTCTL0_KEY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < WWDTCTL0_KEY_A > { match self . bits { 201 => Some (WWDTCTL0_KEY_A :: WWDTCTL0_KEY_UNLOCK_W) , _ => None , } } # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn is_wwdtctl0_key_unlock_w (& self) -> bool { * self == WWDTCTL0_KEY_A :: WWDTCTL0_KEY_UNLOCK_W } } # [doc = "Field `WWDTCTL0_KEY` writer - KEY to allow write access to this register. Writing to this register with an incorrect key activates the WWDT error signal to the ESM. Read as 0."]
pub type WWDTCTL0_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , WWDTCTL0_KEY_A > ; impl < 'a , REG , const O : u8 > WWDTCTL0_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn wwdtctl0_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (WWDTCTL0_KEY_A :: WWDTCTL0_KEY_UNLOCK_W) } } impl R { # [doc = "Bits 0:2 - Module Clock Divider, Divide the clock source by CLKDIV+1. Divider values from /1 to /8 are possible. The clock divider is currently 4 bits. Bit 4 has no effect and should always be written with 0."]
# [inline (always)]
pub fn wwdtctl0_clkdiv (& self) -> WWDTCTL0_CLKDIV_R { WWDTCTL0_CLKDIV_R :: new ((self . bits & 7) as u8) } # [doc = "Bits 4:6 - Timer Period of the WWDT. These bits select the total watchdog timer count."]
# [inline (always)]
pub fn wwdtctl0_per (& self) -> WWDTCTL0_PER_R { WWDTCTL0_PER_R :: new (((self . bits >> 4) & 7) as u8) } # [doc = "Bits 8:10 - Closed window period in percentage of the timer interval. WWDTCTL1.WINSEL determines the active window setting (WWDTCTL0.WINDOW0 or WWDTCTL0.WINDOW1)."]
# [inline (always)]
pub fn wwdtctl0_window0 (& self) -> WWDTCTL0_WINDOW0_R { WWDTCTL0_WINDOW0_R :: new (((self . bits >> 8) & 7) as u8) } # [doc = "Bits 12:14 - Closed window period in percentage of the timer interval. WWDTCTL1.WINSEL determines the active window setting (WWDTCTL0.WINDOW0 or WWDTCTL0.WINDOW1)."]
# [inline (always)]
pub fn wwdtctl0_window1 (& self) -> WWDTCTL0_WINDOW1_R { WWDTCTL0_WINDOW1_R :: new (((self . bits >> 12) & 7) as u8) } # [doc = "Bit 16 - Window Watchdog Timer Mode"]
# [inline (always)]
pub fn wwdtctl0_mode (& self) -> WWDTCTL0_MODE_R { WWDTCTL0_MODE_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 17 - Stop In Sleep Mode. The functionality of this bit requires that POLICY.HWCEN = 0. If POLICY.HWCEN = 1 the WWDT resets during sleep and needs re-configuration. Note: This bit has no effect for the global Window Watchdog as Sleep Mode is not supported."]
# [inline (always)]
pub fn wwdtctl0_stism (& self) -> WWDTCTL0_STISM_R { WWDTCTL0_STISM_R :: new (((self . bits >> 17) & 1) != 0) } # [doc = "Bits 24:31 - KEY to allow write access to this register. Writing to this register with an incorrect key activates the WWDT error signal to the ESM. Read as 0."]
# [inline (always)]
pub fn wwdtctl0_key (& self) -> WWDTCTL0_KEY_R { WWDTCTL0_KEY_R :: new (((self . bits >> 24) & 0xff) as u8) } } impl W { # [doc = "Bits 0:2 - Module Clock Divider, Divide the clock source by CLKDIV+1. Divider values from /1 to /8 are possible. The clock divider is currently 4 bits. Bit 4 has no effect and should always be written with 0."]
# [inline (always)]
# [must_use]
pub fn wwdtctl0_clkdiv (& mut self) -> WWDTCTL0_CLKDIV_W < WWDTCTL0_SPEC , 0 > { WWDTCTL0_CLKDIV_W :: new (self) } # [doc = "Bits 4:6 - Timer Period of the WWDT. These bits select the total watchdog timer count."]
# [inline (always)]
# [must_use]
pub fn wwdtctl0_per (& mut self) -> WWDTCTL0_PER_W < WWDTCTL0_SPEC , 4 > { WWDTCTL0_PER_W :: new (self) } # [doc = "Bits 8:10 - Closed window period in percentage of the timer interval. WWDTCTL1.WINSEL determines the active window setting (WWDTCTL0.WINDOW0 or WWDTCTL0.WINDOW1)."]
# [inline (always)]
# [must_use]
pub fn wwdtctl0_window0 (& mut self) -> WWDTCTL0_WINDOW0_W < WWDTCTL0_SPEC , 8 > { WWDTCTL0_WINDOW0_W :: new (self) } # [doc = "Bits 12:14 - Closed window period in percentage of the timer interval. WWDTCTL1.WINSEL determines the active window setting (WWDTCTL0.WINDOW0 or WWDTCTL0.WINDOW1)."]
# [inline (always)]
# [must_use]
pub fn wwdtctl0_window1 (& mut self) -> WWDTCTL0_WINDOW1_W < WWDTCTL0_SPEC , 12 > { WWDTCTL0_WINDOW1_W :: new (self) } # [doc = "Bit 16 - Window Watchdog Timer Mode"]
# [inline (always)]
# [must_use]
pub fn wwdtctl0_mode (& mut self) -> WWDTCTL0_MODE_W < WWDTCTL0_SPEC , 16 > { WWDTCTL0_MODE_W :: new (self) } # [doc = "Bit 17 - Stop In Sleep Mode. The functionality of this bit requires that POLICY.HWCEN = 0. If POLICY.HWCEN = 1 the WWDT resets during sleep and needs re-configuration. Note: This bit has no effect for the global Window Watchdog as Sleep Mode is not supported."]
# [inline (always)]
# [must_use]
pub fn wwdtctl0_stism (& mut self) -> WWDTCTL0_STISM_W < WWDTCTL0_SPEC , 17 > { WWDTCTL0_STISM_W :: new (self) } # [doc = "Bits 24:31 - KEY to allow write access to this register. Writing to this register with an incorrect key activates the WWDT error signal to the ESM. Read as 0."]
# [inline (always)]
# [must_use]
pub fn wwdtctl0_key (& mut self) -> WWDTCTL0_KEY_W < WWDTCTL0_SPEC , 24 > { WWDTCTL0_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Window Watchdog Timer Control Register 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`wwdtctl0::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`wwdtctl0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct WWDTCTL0_SPEC ; impl crate :: RegisterSpec for WWDTCTL0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`wwdtctl0::R`](R) reader structure"]
impl crate :: Readable for WWDTCTL0_SPEC { } # [doc = "`write(|w| ..)` method takes [`wwdtctl0::W`](W) writer structure"]
impl crate :: Writable for WWDTCTL0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets WWDTCTL0 to value 0x43"]
impl crate :: Resettable for WWDTCTL0_SPEC { const RESET_VALUE : Self :: Ux = 0x43 ; } } # [doc = "WWDTCTL1 (rw) register accessor: Window Watchdog Timer Control Register 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`wwdtctl1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`wwdtctl1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@wwdtctl1`]
module"]
pub type WWDTCTL1 = crate :: Reg < wwdtctl1 :: WWDTCTL1_SPEC > ; # [doc = "Window Watchdog Timer Control Register 0"]
pub mod wwdtctl1 { # [doc = "Register `WWDTCTL1` reader"]
pub type R = crate :: R < WWDTCTL1_SPEC > ; # [doc = "Register `WWDTCTL1` writer"]
pub type W = crate :: W < WWDTCTL1_SPEC > ; # [doc = "Field `WWDTCTL1_WINSEL` reader - Close Window Select"]
pub type WWDTCTL1_WINSEL_R = crate :: BitReader < WWDTCTL1_WINSEL_A > ; # [doc = "Close Window Select\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum WWDTCTL1_WINSEL_A { # [doc = "0: WIN0"]
WWDTCTL1_WINSEL_WIN0 = 0 , # [doc = "1: WIN1"]
WWDTCTL1_WINSEL_WIN1 = 1 , } impl From < WWDTCTL1_WINSEL_A > for bool { # [inline (always)]
fn from (variant : WWDTCTL1_WINSEL_A) -> Self { variant as u8 != 0 } } impl WWDTCTL1_WINSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> WWDTCTL1_WINSEL_A { match self . bits { false => WWDTCTL1_WINSEL_A :: WWDTCTL1_WINSEL_WIN0 , true => WWDTCTL1_WINSEL_A :: WWDTCTL1_WINSEL_WIN1 , } } # [doc = "WIN0"]
# [inline (always)]
pub fn is_wwdtctl1_winsel_win0 (& self) -> bool { * self == WWDTCTL1_WINSEL_A :: WWDTCTL1_WINSEL_WIN0 } # [doc = "WIN1"]
# [inline (always)]
pub fn is_wwdtctl1_winsel_win1 (& self) -> bool { * self == WWDTCTL1_WINSEL_A :: WWDTCTL1_WINSEL_WIN1 } } # [doc = "Field `WWDTCTL1_WINSEL` writer - Close Window Select"]
pub type WWDTCTL1_WINSEL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , WWDTCTL1_WINSEL_A > ; impl < 'a , REG , const O : u8 > WWDTCTL1_WINSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "WIN0"]
# [inline (always)]
pub fn wwdtctl1_winsel_win0 (self) -> & 'a mut crate :: W < REG > { self . variant (WWDTCTL1_WINSEL_A :: WWDTCTL1_WINSEL_WIN0) } # [doc = "WIN1"]
# [inline (always)]
pub fn wwdtctl1_winsel_win1 (self) -> & 'a mut crate :: W < REG > { self . variant (WWDTCTL1_WINSEL_A :: WWDTCTL1_WINSEL_WIN1) } } # [doc = "KEY to allow write access to this register. Writing to this register with an incorrect key activates the WWDT error signal to the ESM. Read as 0.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum WWDTCTL1_KEY_AW { # [doc = "190: _TO_UNLOCK_W_"]
WWDTCTL1_KEY_UNLOCK_W = 190 , } impl From < WWDTCTL1_KEY_AW > for u8 { # [inline (always)]
fn from (variant : WWDTCTL1_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for WWDTCTL1_KEY_AW { type Ux = u8 ; } # [doc = "Field `WWDTCTL1_KEY` writer - KEY to allow write access to this register. Writing to this register with an incorrect key activates the WWDT error signal to the ESM. Read as 0."]
pub type WWDTCTL1_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , WWDTCTL1_KEY_AW > ; impl < 'a , REG , const O : u8 > WWDTCTL1_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn wwdtctl1_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (WWDTCTL1_KEY_AW :: WWDTCTL1_KEY_UNLOCK_W) } } impl R { # [doc = "Bit 0 - Close Window Select"]
# [inline (always)]
pub fn wwdtctl1_winsel (& self) -> WWDTCTL1_WINSEL_R { WWDTCTL1_WINSEL_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - Close Window Select"]
# [inline (always)]
# [must_use]
pub fn wwdtctl1_winsel (& mut self) -> WWDTCTL1_WINSEL_W < WWDTCTL1_SPEC , 0 > { WWDTCTL1_WINSEL_W :: new (self) } # [doc = "Bits 24:31 - KEY to allow write access to this register. Writing to this register with an incorrect key activates the WWDT error signal to the ESM. Read as 0."]
# [inline (always)]
# [must_use]
pub fn wwdtctl1_key (& mut self) -> WWDTCTL1_KEY_W < WWDTCTL1_SPEC , 24 > { WWDTCTL1_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Window Watchdog Timer Control Register 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`wwdtctl1::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`wwdtctl1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct WWDTCTL1_SPEC ; impl crate :: RegisterSpec for WWDTCTL1_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`wwdtctl1::R`](R) reader structure"]
impl crate :: Readable for WWDTCTL1_SPEC { } # [doc = "`write(|w| ..)` method takes [`wwdtctl1::W`](W) writer structure"]
impl crate :: Writable for WWDTCTL1_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets WWDTCTL1 to value 0"]
impl crate :: Resettable for WWDTCTL1_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "WWDTCNTRST (rw) register accessor: Window Watchdog Timer Counter Reset Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`wwdtcntrst::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`wwdtcntrst::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@wwdtcntrst`]
module"]
pub type WWDTCNTRST = crate :: Reg < wwdtcntrst :: WWDTCNTRST_SPEC > ; # [doc = "Window Watchdog Timer Counter Reset Register"]
pub mod wwdtcntrst { # [doc = "Register `WWDTCNTRST` reader"]
pub type R = crate :: R < WWDTCNTRST_SPEC > ; # [doc = "Register `WWDTCNTRST` writer"]
pub type W = crate :: W < WWDTCNTRST_SPEC > ; # [doc = "Field `WWDTCNTRST_RESTART` reader - Window Watchdog Timer Counter Restart Writing 00A7h to this register restarts the WWDT Counter. Writing any other value causes an error generation to the ESM. Read as 0."]
pub type WWDTCNTRST_RESTART_R = crate :: FieldReader < u32 > ; # [doc = "Field `WWDTCNTRST_RESTART` writer - Window Watchdog Timer Counter Restart Writing 00A7h to this register restarts the WWDT Counter. Writing any other value causes an error generation to the ESM. Read as 0."]
pub type WWDTCNTRST_RESTART_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 32 , O , u32 > ; impl R { # [doc = "Bits 0:31 - Window Watchdog Timer Counter Restart Writing 00A7h to this register restarts the WWDT Counter. Writing any other value causes an error generation to the ESM. Read as 0."]
# [inline (always)]
pub fn wwdtcntrst_restart (& self) -> WWDTCNTRST_RESTART_R { WWDTCNTRST_RESTART_R :: new (self . bits) } } impl W { # [doc = "Bits 0:31 - Window Watchdog Timer Counter Restart Writing 00A7h to this register restarts the WWDT Counter. Writing any other value causes an error generation to the ESM. Read as 0."]
# [inline (always)]
# [must_use]
pub fn wwdtcntrst_restart (& mut self) -> WWDTCNTRST_RESTART_W < WWDTCNTRST_SPEC , 0 > { WWDTCNTRST_RESTART_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Window Watchdog Timer Counter Reset Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`wwdtcntrst::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`wwdtcntrst::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct WWDTCNTRST_SPEC ; impl crate :: RegisterSpec for WWDTCNTRST_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`wwdtcntrst::R`](R) reader structure"]
impl crate :: Readable for WWDTCNTRST_SPEC { } # [doc = "`write(|w| ..)` method takes [`wwdtcntrst::W`](W) writer structure"]
impl crate :: Writable for WWDTCNTRST_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets WWDTCNTRST to value 0"]
impl crate :: Resettable for WWDTCNTRST_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "WWDTSTAT (r) register accessor: Window Watchdog Timer Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`wwdtstat::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@wwdtstat`]
module"]
pub type WWDTSTAT = crate :: Reg < wwdtstat :: WWDTSTAT_SPEC > ; # [doc = "Window Watchdog Timer Status Register"]
pub mod wwdtstat { # [doc = "Register `WWDTSTAT` reader"]
pub type R = crate :: R < WWDTSTAT_SPEC > ; # [doc = "Field `WWDTSTAT_RUN` reader - Watchdog running status flag."]
pub type WWDTSTAT_RUN_R = crate :: BitReader < WWDTSTAT_RUN_A > ; # [doc = "Watchdog running status flag.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum WWDTSTAT_RUN_A { # [doc = "0: OFF"]
WWDTSTAT_RUN_OFF = 0 , # [doc = "1: ON"]
WWDTSTAT_RUN_ON = 1 , } impl From < WWDTSTAT_RUN_A > for bool { # [inline (always)]
fn from (variant : WWDTSTAT_RUN_A) -> Self { variant as u8 != 0 } } impl WWDTSTAT_RUN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> WWDTSTAT_RUN_A { match self . bits { false => WWDTSTAT_RUN_A :: WWDTSTAT_RUN_OFF , true => WWDTSTAT_RUN_A :: WWDTSTAT_RUN_ON , } } # [doc = "OFF"]
# [inline (always)]
pub fn is_wwdtstat_run_off (& self) -> bool { * self == WWDTSTAT_RUN_A :: WWDTSTAT_RUN_OFF } # [doc = "ON"]
# [inline (always)]
pub fn is_wwdtstat_run_on (& self) -> bool { * self == WWDTSTAT_RUN_A :: WWDTSTAT_RUN_ON } } impl R { # [doc = "Bit 0 - Watchdog running status flag."]
# [inline (always)]
pub fn wwdtstat_run (& self) -> WWDTSTAT_RUN_R { WWDTSTAT_RUN_R :: new ((self . bits & 1) != 0) } } # [doc = "Window Watchdog Timer Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`wwdtstat::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct WWDTSTAT_SPEC ; impl crate :: RegisterSpec for WWDTSTAT_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`wwdtstat::R`](R) reader structure"]
impl crate :: Readable for WWDTSTAT_SPEC { } # [doc = "`reset()` method sets WWDTSTAT to value 0"]
impl crate :: Resettable for WWDTSTAT_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } } # [doc = "DSSM"]
pub struct DEBUGSS { _marker : PhantomData < * const () > } unsafe impl Send for DEBUGSS { } impl DEBUGSS { # [doc = r"Pointer to the register block"]
pub const PTR : * const debugss :: RegisterBlock = 0x400c_7000 as * const _ ; # [doc = r"Return the pointer to the register block"]
# [inline (always)]
pub const fn ptr () -> * const debugss :: RegisterBlock { Self :: PTR } # [doc = r" Steal an instance of this peripheral"]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Ensure that the new instance of the peripheral cannot be used in a way"]
# [doc = r" that may race with any existing instances, for example by only"]
# [doc = r" accessing read-only or write-only registers, or by consuming the"]
# [doc = r" original peripheral and using critical sections to coordinate"]
# [doc = r" access between multiple new instances."]
# [doc = r""]
# [doc = r" Additionally, other software such as HALs may rely on only one"]
# [doc = r" peripheral instance existing to ensure memory safety; ensure"]
# [doc = r" no stolen instances are passed to such software."]
pub unsafe fn steal () -> Self { Self { _marker : PhantomData } } } impl Deref for DEBUGSS { type Target = debugss :: RegisterBlock ; # [inline (always)]
fn deref (& self) -> & Self :: Target { unsafe { & * Self :: PTR } } } impl core :: fmt :: Debug for DEBUGSS { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("DEBUGSS") . finish () } } # [doc = "DSSM"]
pub mod debugss { # [doc = r"Register block"]
# [repr (C)]
pub struct RegisterBlock { _reserved0 : [u8 ; 0x1020]
, # [doc = "0x1020 - Interrupt index"]
pub iidx : IIDX , _reserved1 : [u8 ; 0x04]
, # [doc = "0x1028 - Interrupt mask"]
pub imask : IMASK , _reserved2 : [u8 ; 0x04]
, # [doc = "0x1030 - Raw interrupt status"]
pub ris : RIS , _reserved3 : [u8 ; 0x04]
, # [doc = "0x1038 - Masked interrupt status"]
pub mis : MIS , _reserved4 : [u8 ; 0x04]
, # [doc = "0x1040 - Interrupt set"]
pub iset : ISET , _reserved5 : [u8 ; 0x04]
, # [doc = "0x1048 - Interrupt clear"]
pub iclr : ICLR , _reserved6 : [u8 ; 0x94]
, # [doc = "0x10e0 - Event Mode"]
pub evt_mode : EVT_MODE , _reserved7 : [u8 ; 0x18]
, # [doc = "0x10fc - Module Description"]
pub desc : DESC , # [doc = "0x1100 - Transmit data register"]
pub txd : TXD , # [doc = "0x1104 - Transmit control register"]
pub txctl : TXCTL , # [doc = "0x1108 - Receive data register"]
pub rxd : RXD , # [doc = "0x110c - Receive control register"]
pub rxctl : RXCTL , _reserved12 : [u8 ; 0xf0]
, # [doc = "0x1200 - Special enable authorization register"]
pub special_auth : SPECIAL_AUTH , _reserved13 : [u8 ; 0x0c]
, # [doc = "0x1210 - Application CPU0 authorization register"]
pub app_auth : APP_AUTH , } # [doc = "IIDX (r) register accessor: Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@iidx`]
module"]
pub type IIDX = crate :: Reg < iidx :: IIDX_SPEC > ; # [doc = "Interrupt index"]
pub mod iidx { # [doc = "Register `IIDX` reader"]
pub type R = crate :: R < IIDX_SPEC > ; # [doc = "Field `IIDX_STAT` reader - Interrupt index status"]
pub type IIDX_STAT_R = crate :: FieldReader < IIDX_STAT_A > ; # [doc = "Interrupt index status\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum IIDX_STAT_A { # [doc = "0: NO_INTR"]
IIDX_STAT_NO_INTR = 0 , # [doc = "1: TXIFG"]
IIDX_STAT_TXIFG = 1 , # [doc = "2: RXIFG"]
IIDX_STAT_RXIFG = 2 , # [doc = "3: PWRUP"]
IIDX_STAT_PWRUP = 3 , # [doc = "4: PWRDWN"]
IIDX_STAT_PWRDWN = 4 , } impl From < IIDX_STAT_A > for u8 { # [inline (always)]
fn from (variant : IIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for IIDX_STAT_A { type Ux = u8 ; } impl IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < IIDX_STAT_A > { match self . bits { 0 => Some (IIDX_STAT_A :: IIDX_STAT_NO_INTR) , 1 => Some (IIDX_STAT_A :: IIDX_STAT_TXIFG) , 2 => Some (IIDX_STAT_A :: IIDX_STAT_RXIFG) , 3 => Some (IIDX_STAT_A :: IIDX_STAT_PWRUP) , 4 => Some (IIDX_STAT_A :: IIDX_STAT_PWRDWN) , _ => None , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_iidx_stat_no_intr (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_NO_INTR } # [doc = "TXIFG"]
# [inline (always)]
pub fn is_iidx_stat_txifg (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_TXIFG } # [doc = "RXIFG"]
# [inline (always)]
pub fn is_iidx_stat_rxifg (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_RXIFG } # [doc = "PWRUP"]
# [inline (always)]
pub fn is_iidx_stat_pwrup (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_PWRUP } # [doc = "PWRDWN"]
# [inline (always)]
pub fn is_iidx_stat_pwrdwn (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_PWRDWN } } impl R { # [doc = "Bits 0:7 - Interrupt index status"]
# [inline (always)]
pub fn iidx_stat (& self) -> IIDX_STAT_R { IIDX_STAT_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IIDX_SPEC ; impl crate :: RegisterSpec for IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`iidx::R`](R) reader structure"]
impl crate :: Readable for IIDX_SPEC { } # [doc = "`reset()` method sets IIDX to value 0"]
impl crate :: Resettable for IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "IMASK (rw) register accessor: Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`imask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`imask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@imask`]
module"]
pub type IMASK = crate :: Reg < imask :: IMASK_SPEC > ; # [doc = "Interrupt mask"]
pub mod imask { # [doc = "Register `IMASK` reader"]
pub type R = crate :: R < IMASK_SPEC > ; # [doc = "Register `IMASK` writer"]
pub type W = crate :: W < IMASK_SPEC > ; # [doc = "Field `IMASK_TXIFG` reader - Masks TXIFG in MIS register"]
pub type IMASK_TXIFG_R = crate :: BitReader < IMASK_TXIFG_A > ; # [doc = "Masks TXIFG in MIS register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_TXIFG_A { # [doc = "0: CLR"]
IMASK_TXIFG_CLR = 0 , # [doc = "1: SET"]
IMASK_TXIFG_SET = 1 , } impl From < IMASK_TXIFG_A > for bool { # [inline (always)]
fn from (variant : IMASK_TXIFG_A) -> Self { variant as u8 != 0 } } impl IMASK_TXIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_TXIFG_A { match self . bits { false => IMASK_TXIFG_A :: IMASK_TXIFG_CLR , true => IMASK_TXIFG_A :: IMASK_TXIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_txifg_clr (& self) -> bool { * self == IMASK_TXIFG_A :: IMASK_TXIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_txifg_set (& self) -> bool { * self == IMASK_TXIFG_A :: IMASK_TXIFG_SET } } # [doc = "Field `IMASK_TXIFG` writer - Masks TXIFG in MIS register"]
pub type IMASK_TXIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_TXIFG_A > ; impl < 'a , REG , const O : u8 > IMASK_TXIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_txifg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_TXIFG_A :: IMASK_TXIFG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_txifg_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_TXIFG_A :: IMASK_TXIFG_SET) } } # [doc = "Field `IMASK_RXIFG` reader - Masks RXIFG in MIS register"]
pub type IMASK_RXIFG_R = crate :: BitReader < IMASK_RXIFG_A > ; # [doc = "Masks RXIFG in MIS register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_RXIFG_A { # [doc = "0: CLR"]
IMASK_RXIFG_CLR = 0 , # [doc = "1: SET"]
IMASK_RXIFG_SET = 1 , } impl From < IMASK_RXIFG_A > for bool { # [inline (always)]
fn from (variant : IMASK_RXIFG_A) -> Self { variant as u8 != 0 } } impl IMASK_RXIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_RXIFG_A { match self . bits { false => IMASK_RXIFG_A :: IMASK_RXIFG_CLR , true => IMASK_RXIFG_A :: IMASK_RXIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_rxifg_clr (& self) -> bool { * self == IMASK_RXIFG_A :: IMASK_RXIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_rxifg_set (& self) -> bool { * self == IMASK_RXIFG_A :: IMASK_RXIFG_SET } } # [doc = "Field `IMASK_RXIFG` writer - Masks RXIFG in MIS register"]
pub type IMASK_RXIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_RXIFG_A > ; impl < 'a , REG , const O : u8 > IMASK_RXIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_rxifg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_RXIFG_A :: IMASK_RXIFG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_rxifg_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_RXIFG_A :: IMASK_RXIFG_SET) } } # [doc = "Field `IMASK_PWRUPIFG` reader - Masks PWRUPIFG in MIS register"]
pub type IMASK_PWRUPIFG_R = crate :: BitReader < IMASK_PWRUPIFG_A > ; # [doc = "Masks PWRUPIFG in MIS register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_PWRUPIFG_A { # [doc = "0: CLR"]
IMASK_PWRUPIFG_CLR = 0 , # [doc = "1: SET"]
IMASK_PWRUPIFG_SET = 1 , } impl From < IMASK_PWRUPIFG_A > for bool { # [inline (always)]
fn from (variant : IMASK_PWRUPIFG_A) -> Self { variant as u8 != 0 } } impl IMASK_PWRUPIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_PWRUPIFG_A { match self . bits { false => IMASK_PWRUPIFG_A :: IMASK_PWRUPIFG_CLR , true => IMASK_PWRUPIFG_A :: IMASK_PWRUPIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_pwrupifg_clr (& self) -> bool { * self == IMASK_PWRUPIFG_A :: IMASK_PWRUPIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_pwrupifg_set (& self) -> bool { * self == IMASK_PWRUPIFG_A :: IMASK_PWRUPIFG_SET } } # [doc = "Field `IMASK_PWRUPIFG` writer - Masks PWRUPIFG in MIS register"]
pub type IMASK_PWRUPIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_PWRUPIFG_A > ; impl < 'a , REG , const O : u8 > IMASK_PWRUPIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_pwrupifg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_PWRUPIFG_A :: IMASK_PWRUPIFG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_pwrupifg_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_PWRUPIFG_A :: IMASK_PWRUPIFG_SET) } } # [doc = "Field `IMASK_PWRDWNIFG` reader - Masks PWRDWNIFG in MIS register"]
pub type IMASK_PWRDWNIFG_R = crate :: BitReader < IMASK_PWRDWNIFG_A > ; # [doc = "Masks PWRDWNIFG in MIS register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_PWRDWNIFG_A { # [doc = "0: CLR"]
IMASK_PWRDWNIFG_CLR = 0 , # [doc = "1: SET"]
IMASK_PWRDWNIFG_SET = 1 , } impl From < IMASK_PWRDWNIFG_A > for bool { # [inline (always)]
fn from (variant : IMASK_PWRDWNIFG_A) -> Self { variant as u8 != 0 } } impl IMASK_PWRDWNIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_PWRDWNIFG_A { match self . bits { false => IMASK_PWRDWNIFG_A :: IMASK_PWRDWNIFG_CLR , true => IMASK_PWRDWNIFG_A :: IMASK_PWRDWNIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_pwrdwnifg_clr (& self) -> bool { * self == IMASK_PWRDWNIFG_A :: IMASK_PWRDWNIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_pwrdwnifg_set (& self) -> bool { * self == IMASK_PWRDWNIFG_A :: IMASK_PWRDWNIFG_SET } } # [doc = "Field `IMASK_PWRDWNIFG` writer - Masks PWRDWNIFG in MIS register"]
pub type IMASK_PWRDWNIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_PWRDWNIFG_A > ; impl < 'a , REG , const O : u8 > IMASK_PWRDWNIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_pwrdwnifg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_PWRDWNIFG_A :: IMASK_PWRDWNIFG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_pwrdwnifg_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_PWRDWNIFG_A :: IMASK_PWRDWNIFG_SET) } } impl R { # [doc = "Bit 0 - Masks TXIFG in MIS register"]
# [inline (always)]
pub fn imask_txifg (& self) -> IMASK_TXIFG_R { IMASK_TXIFG_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Masks RXIFG in MIS register"]
# [inline (always)]
pub fn imask_rxifg (& self) -> IMASK_RXIFG_R { IMASK_RXIFG_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Masks PWRUPIFG in MIS register"]
# [inline (always)]
pub fn imask_pwrupifg (& self) -> IMASK_PWRUPIFG_R { IMASK_PWRUPIFG_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Masks PWRDWNIFG in MIS register"]
# [inline (always)]
pub fn imask_pwrdwnifg (& self) -> IMASK_PWRDWNIFG_R { IMASK_PWRDWNIFG_R :: new (((self . bits >> 3) & 1) != 0) } } impl W { # [doc = "Bit 0 - Masks TXIFG in MIS register"]
# [inline (always)]
# [must_use]
pub fn imask_txifg (& mut self) -> IMASK_TXIFG_W < IMASK_SPEC , 0 > { IMASK_TXIFG_W :: new (self) } # [doc = "Bit 1 - Masks RXIFG in MIS register"]
# [inline (always)]
# [must_use]
pub fn imask_rxifg (& mut self) -> IMASK_RXIFG_W < IMASK_SPEC , 1 > { IMASK_RXIFG_W :: new (self) } # [doc = "Bit 2 - Masks PWRUPIFG in MIS register"]
# [inline (always)]
# [must_use]
pub fn imask_pwrupifg (& mut self) -> IMASK_PWRUPIFG_W < IMASK_SPEC , 2 > { IMASK_PWRUPIFG_W :: new (self) } # [doc = "Bit 3 - Masks PWRDWNIFG in MIS register"]
# [inline (always)]
# [must_use]
pub fn imask_pwrdwnifg (& mut self) -> IMASK_PWRDWNIFG_W < IMASK_SPEC , 3 > { IMASK_PWRDWNIFG_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`imask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`imask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IMASK_SPEC ; impl crate :: RegisterSpec for IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`imask::R`](R) reader structure"]
impl crate :: Readable for IMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`imask::W`](W) writer structure"]
impl crate :: Writable for IMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets IMASK to value 0"]
impl crate :: Resettable for IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RIS (r) register accessor: Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ris`]
module"]
pub type RIS = crate :: Reg < ris :: RIS_SPEC > ; # [doc = "Raw interrupt status"]
pub mod ris { # [doc = "Register `RIS` reader"]
pub type R = crate :: R < RIS_SPEC > ; # [doc = "Field `RIS_TXIFG` reader - Raw interrupt status for TXIFG"]
pub type RIS_TXIFG_R = crate :: BitReader < RIS_TXIFG_A > ; # [doc = "Raw interrupt status for TXIFG\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_TXIFG_A { # [doc = "0: CLR"]
RIS_TXIFG_CLR = 0 , # [doc = "1: SET"]
RIS_TXIFG_SET = 1 , } impl From < RIS_TXIFG_A > for bool { # [inline (always)]
fn from (variant : RIS_TXIFG_A) -> Self { variant as u8 != 0 } } impl RIS_TXIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_TXIFG_A { match self . bits { false => RIS_TXIFG_A :: RIS_TXIFG_CLR , true => RIS_TXIFG_A :: RIS_TXIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_txifg_clr (& self) -> bool { * self == RIS_TXIFG_A :: RIS_TXIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_txifg_set (& self) -> bool { * self == RIS_TXIFG_A :: RIS_TXIFG_SET } } # [doc = "Field `RIS_RXIFG` reader - Raw interrupt status for RXIFG"]
pub type RIS_RXIFG_R = crate :: BitReader < RIS_RXIFG_A > ; # [doc = "Raw interrupt status for RXIFG\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_RXIFG_A { # [doc = "0: CLR"]
RIS_RXIFG_CLR = 0 , # [doc = "1: SET"]
RIS_RXIFG_SET = 1 , } impl From < RIS_RXIFG_A > for bool { # [inline (always)]
fn from (variant : RIS_RXIFG_A) -> Self { variant as u8 != 0 } } impl RIS_RXIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_RXIFG_A { match self . bits { false => RIS_RXIFG_A :: RIS_RXIFG_CLR , true => RIS_RXIFG_A :: RIS_RXIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_rxifg_clr (& self) -> bool { * self == RIS_RXIFG_A :: RIS_RXIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_rxifg_set (& self) -> bool { * self == RIS_RXIFG_A :: RIS_RXIFG_SET } } # [doc = "Field `RIS_PWRUPIFG` reader - Raw interrupt status for PWRUPIFG"]
pub type RIS_PWRUPIFG_R = crate :: BitReader < RIS_PWRUPIFG_A > ; # [doc = "Raw interrupt status for PWRUPIFG\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_PWRUPIFG_A { # [doc = "0: CLR"]
RIS_PWRUPIFG_CLR = 0 , # [doc = "1: SET"]
RIS_PWRUPIFG_SET = 1 , } impl From < RIS_PWRUPIFG_A > for bool { # [inline (always)]
fn from (variant : RIS_PWRUPIFG_A) -> Self { variant as u8 != 0 } } impl RIS_PWRUPIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_PWRUPIFG_A { match self . bits { false => RIS_PWRUPIFG_A :: RIS_PWRUPIFG_CLR , true => RIS_PWRUPIFG_A :: RIS_PWRUPIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_pwrupifg_clr (& self) -> bool { * self == RIS_PWRUPIFG_A :: RIS_PWRUPIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_pwrupifg_set (& self) -> bool { * self == RIS_PWRUPIFG_A :: RIS_PWRUPIFG_SET } } # [doc = "Field `RIS_PWRDWNIFG` reader - Raw interrupt status for PWRDWNIFG"]
pub type RIS_PWRDWNIFG_R = crate :: BitReader < RIS_PWRDWNIFG_A > ; # [doc = "Raw interrupt status for PWRDWNIFG\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_PWRDWNIFG_A { # [doc = "0: CLR"]
RIS_PWRDWNIFG_CLR = 0 , # [doc = "1: SET"]
RIS_PWRDWNIFG_SET = 1 , } impl From < RIS_PWRDWNIFG_A > for bool { # [inline (always)]
fn from (variant : RIS_PWRDWNIFG_A) -> Self { variant as u8 != 0 } } impl RIS_PWRDWNIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_PWRDWNIFG_A { match self . bits { false => RIS_PWRDWNIFG_A :: RIS_PWRDWNIFG_CLR , true => RIS_PWRDWNIFG_A :: RIS_PWRDWNIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_pwrdwnifg_clr (& self) -> bool { * self == RIS_PWRDWNIFG_A :: RIS_PWRDWNIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_pwrdwnifg_set (& self) -> bool { * self == RIS_PWRDWNIFG_A :: RIS_PWRDWNIFG_SET } } impl R { # [doc = "Bit 0 - Raw interrupt status for TXIFG"]
# [inline (always)]
pub fn ris_txifg (& self) -> RIS_TXIFG_R { RIS_TXIFG_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Raw interrupt status for RXIFG"]
# [inline (always)]
pub fn ris_rxifg (& self) -> RIS_RXIFG_R { RIS_RXIFG_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Raw interrupt status for PWRUPIFG"]
# [inline (always)]
pub fn ris_pwrupifg (& self) -> RIS_PWRUPIFG_R { RIS_PWRUPIFG_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Raw interrupt status for PWRDWNIFG"]
# [inline (always)]
pub fn ris_pwrdwnifg (& self) -> RIS_PWRDWNIFG_R { RIS_PWRDWNIFG_R :: new (((self . bits >> 3) & 1) != 0) } } # [doc = "Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RIS_SPEC ; impl crate :: RegisterSpec for RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ris::R`](R) reader structure"]
impl crate :: Readable for RIS_SPEC { } # [doc = "`reset()` method sets RIS to value 0"]
impl crate :: Resettable for RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "MIS (r) register accessor: Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mis`]
module"]
pub type MIS = crate :: Reg < mis :: MIS_SPEC > ; # [doc = "Masked interrupt status"]
pub mod mis { # [doc = "Register `MIS` reader"]
pub type R = crate :: R < MIS_SPEC > ; # [doc = "Field `MIS_TXIFG` reader - Masked interrupt status for TXIFG"]
pub type MIS_TXIFG_R = crate :: BitReader < MIS_TXIFG_A > ; # [doc = "Masked interrupt status for TXIFG\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_TXIFG_A { # [doc = "0: CLR"]
MIS_TXIFG_CLR = 0 , # [doc = "1: SET"]
MIS_TXIFG_SET = 1 , } impl From < MIS_TXIFG_A > for bool { # [inline (always)]
fn from (variant : MIS_TXIFG_A) -> Self { variant as u8 != 0 } } impl MIS_TXIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_TXIFG_A { match self . bits { false => MIS_TXIFG_A :: MIS_TXIFG_CLR , true => MIS_TXIFG_A :: MIS_TXIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_txifg_clr (& self) -> bool { * self == MIS_TXIFG_A :: MIS_TXIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_txifg_set (& self) -> bool { * self == MIS_TXIFG_A :: MIS_TXIFG_SET } } # [doc = "Field `MIS_RXIFG` reader - Masked interrupt status for RXIFG"]
pub type MIS_RXIFG_R = crate :: BitReader < MIS_RXIFG_A > ; # [doc = "Masked interrupt status for RXIFG\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_RXIFG_A { # [doc = "0: CLR"]
MIS_RXIFG_CLR = 0 , # [doc = "1: SET"]
MIS_RXIFG_SET = 1 , } impl From < MIS_RXIFG_A > for bool { # [inline (always)]
fn from (variant : MIS_RXIFG_A) -> Self { variant as u8 != 0 } } impl MIS_RXIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_RXIFG_A { match self . bits { false => MIS_RXIFG_A :: MIS_RXIFG_CLR , true => MIS_RXIFG_A :: MIS_RXIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_rxifg_clr (& self) -> bool { * self == MIS_RXIFG_A :: MIS_RXIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_rxifg_set (& self) -> bool { * self == MIS_RXIFG_A :: MIS_RXIFG_SET } } # [doc = "Field `MIS_PWRUPIFG` reader - Masked interrupt status for PWRUPIFG"]
pub type MIS_PWRUPIFG_R = crate :: BitReader < MIS_PWRUPIFG_A > ; # [doc = "Masked interrupt status for PWRUPIFG\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_PWRUPIFG_A { # [doc = "0: CLR"]
MIS_PWRUPIFG_CLR = 0 , # [doc = "1: SET"]
MIS_PWRUPIFG_SET = 1 , } impl From < MIS_PWRUPIFG_A > for bool { # [inline (always)]
fn from (variant : MIS_PWRUPIFG_A) -> Self { variant as u8 != 0 } } impl MIS_PWRUPIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_PWRUPIFG_A { match self . bits { false => MIS_PWRUPIFG_A :: MIS_PWRUPIFG_CLR , true => MIS_PWRUPIFG_A :: MIS_PWRUPIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_pwrupifg_clr (& self) -> bool { * self == MIS_PWRUPIFG_A :: MIS_PWRUPIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_pwrupifg_set (& self) -> bool { * self == MIS_PWRUPIFG_A :: MIS_PWRUPIFG_SET } } # [doc = "Field `MIS_PWRDWNIFG` reader - Masked interrupt status for PWRDWNIFG"]
pub type MIS_PWRDWNIFG_R = crate :: BitReader < MIS_PWRDWNIFG_A > ; # [doc = "Masked interrupt status for PWRDWNIFG\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_PWRDWNIFG_A { # [doc = "0: CLR"]
MIS_PWRDWNIFG_CLR = 0 , # [doc = "1: SET"]
MIS_PWRDWNIFG_SET = 1 , } impl From < MIS_PWRDWNIFG_A > for bool { # [inline (always)]
fn from (variant : MIS_PWRDWNIFG_A) -> Self { variant as u8 != 0 } } impl MIS_PWRDWNIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_PWRDWNIFG_A { match self . bits { false => MIS_PWRDWNIFG_A :: MIS_PWRDWNIFG_CLR , true => MIS_PWRDWNIFG_A :: MIS_PWRDWNIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_pwrdwnifg_clr (& self) -> bool { * self == MIS_PWRDWNIFG_A :: MIS_PWRDWNIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_pwrdwnifg_set (& self) -> bool { * self == MIS_PWRDWNIFG_A :: MIS_PWRDWNIFG_SET } } impl R { # [doc = "Bit 0 - Masked interrupt status for TXIFG"]
# [inline (always)]
pub fn mis_txifg (& self) -> MIS_TXIFG_R { MIS_TXIFG_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Masked interrupt status for RXIFG"]
# [inline (always)]
pub fn mis_rxifg (& self) -> MIS_RXIFG_R { MIS_RXIFG_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Masked interrupt status for PWRUPIFG"]
# [inline (always)]
pub fn mis_pwrupifg (& self) -> MIS_PWRUPIFG_R { MIS_PWRUPIFG_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Masked interrupt status for PWRDWNIFG"]
# [inline (always)]
pub fn mis_pwrdwnifg (& self) -> MIS_PWRDWNIFG_R { MIS_PWRDWNIFG_R :: new (((self . bits >> 3) & 1) != 0) } } # [doc = "Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MIS_SPEC ; impl crate :: RegisterSpec for MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`mis::R`](R) reader structure"]
impl crate :: Readable for MIS_SPEC { } # [doc = "`reset()` method sets MIS to value 0"]
impl crate :: Resettable for MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "ISET (w) register accessor: Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@iset`]
module"]
pub type ISET = crate :: Reg < iset :: ISET_SPEC > ; # [doc = "Interrupt set"]
pub mod iset { # [doc = "Register `ISET` writer"]
pub type W = crate :: W < ISET_SPEC > ; # [doc = "Sets TXIFG in RIS register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_TXIFG_AW { # [doc = "0: NO_EFFECT"]
ISET_TXIFG_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_TXIFG_SET = 1 , } impl From < ISET_TXIFG_AW > for bool { # [inline (always)]
fn from (variant : ISET_TXIFG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_TXIFG` writer - Sets TXIFG in RIS register"]
pub type ISET_TXIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_TXIFG_AW > ; impl < 'a , REG , const O : u8 > ISET_TXIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_txifg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_TXIFG_AW :: ISET_TXIFG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_txifg_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_TXIFG_AW :: ISET_TXIFG_SET) } } # [doc = "Sets RXIFG in RIS register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_RXIFG_AW { # [doc = "0: NO_EFFECT"]
ISET_RXIFG_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_RXIFG_SET = 1 , } impl From < ISET_RXIFG_AW > for bool { # [inline (always)]
fn from (variant : ISET_RXIFG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_RXIFG` writer - Sets RXIFG in RIS register"]
pub type ISET_RXIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_RXIFG_AW > ; impl < 'a , REG , const O : u8 > ISET_RXIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_rxifg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_RXIFG_AW :: ISET_RXIFG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_rxifg_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_RXIFG_AW :: ISET_RXIFG_SET) } } # [doc = "Sets PWRUPIFG in RIS register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_PWRUPIFG_AW { # [doc = "0: NO_EFFECT"]
ISET_PWRUPIFG_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_PWRUPIFG_SET = 1 , } impl From < ISET_PWRUPIFG_AW > for bool { # [inline (always)]
fn from (variant : ISET_PWRUPIFG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_PWRUPIFG` writer - Sets PWRUPIFG in RIS register"]
pub type ISET_PWRUPIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_PWRUPIFG_AW > ; impl < 'a , REG , const O : u8 > ISET_PWRUPIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_pwrupifg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_PWRUPIFG_AW :: ISET_PWRUPIFG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_pwrupifg_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_PWRUPIFG_AW :: ISET_PWRUPIFG_SET) } } # [doc = "Sets PWRDWNIFG in RIS register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_PWRDWNIFG_AW { # [doc = "0: NO_EFFECT"]
ISET_PWRDWNIFG_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_PWRDWNIFG_SET = 1 , } impl From < ISET_PWRDWNIFG_AW > for bool { # [inline (always)]
fn from (variant : ISET_PWRDWNIFG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_PWRDWNIFG` writer - Sets PWRDWNIFG in RIS register"]
pub type ISET_PWRDWNIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_PWRDWNIFG_AW > ; impl < 'a , REG , const O : u8 > ISET_PWRDWNIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_pwrdwnifg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_PWRDWNIFG_AW :: ISET_PWRDWNIFG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_pwrdwnifg_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_PWRDWNIFG_AW :: ISET_PWRDWNIFG_SET) } } impl W { # [doc = "Bit 0 - Sets TXIFG in RIS register"]
# [inline (always)]
# [must_use]
pub fn iset_txifg (& mut self) -> ISET_TXIFG_W < ISET_SPEC , 0 > { ISET_TXIFG_W :: new (self) } # [doc = "Bit 1 - Sets RXIFG in RIS register"]
# [inline (always)]
# [must_use]
pub fn iset_rxifg (& mut self) -> ISET_RXIFG_W < ISET_SPEC , 1 > { ISET_RXIFG_W :: new (self) } # [doc = "Bit 2 - Sets PWRUPIFG in RIS register"]
# [inline (always)]
# [must_use]
pub fn iset_pwrupifg (& mut self) -> ISET_PWRUPIFG_W < ISET_SPEC , 2 > { ISET_PWRUPIFG_W :: new (self) } # [doc = "Bit 3 - Sets PWRDWNIFG in RIS register"]
# [inline (always)]
# [must_use]
pub fn iset_pwrdwnifg (& mut self) -> ISET_PWRDWNIFG_W < ISET_SPEC , 3 > { ISET_PWRDWNIFG_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ISET_SPEC ; impl crate :: RegisterSpec for ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`iset::W`](W) writer structure"]
impl crate :: Writable for ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets ISET to value 0"]
impl crate :: Resettable for ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "ICLR (w) register accessor: Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@iclr`]
module"]
pub type ICLR = crate :: Reg < iclr :: ICLR_SPEC > ; # [doc = "Interrupt clear"]
pub mod iclr { # [doc = "Register `ICLR` writer"]
pub type W = crate :: W < ICLR_SPEC > ; # [doc = "Clears TXIFG in RIS register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_TXIFG_AW { # [doc = "0: NO_EFFECT"]
ICLR_TXIFG_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_TXIFG_CLR = 1 , } impl From < ICLR_TXIFG_AW > for bool { # [inline (always)]
fn from (variant : ICLR_TXIFG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_TXIFG` writer - Clears TXIFG in RIS register"]
pub type ICLR_TXIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_TXIFG_AW > ; impl < 'a , REG , const O : u8 > ICLR_TXIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_txifg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_TXIFG_AW :: ICLR_TXIFG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_txifg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_TXIFG_AW :: ICLR_TXIFG_CLR) } } # [doc = "Clears RXIFG in RIS register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_RXIFG_AW { # [doc = "0: NO_EFFECT"]
ICLR_RXIFG_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_RXIFG_CLR = 1 , } impl From < ICLR_RXIFG_AW > for bool { # [inline (always)]
fn from (variant : ICLR_RXIFG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_RXIFG` writer - Clears RXIFG in RIS register"]
pub type ICLR_RXIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_RXIFG_AW > ; impl < 'a , REG , const O : u8 > ICLR_RXIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_rxifg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_RXIFG_AW :: ICLR_RXIFG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_rxifg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_RXIFG_AW :: ICLR_RXIFG_CLR) } } # [doc = "Clears PWRUPIFG in RIS register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_PWRUPIFG_AW { # [doc = "0: NO_EFFECT"]
ICLR_PWRUPIFG_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_PWRUPIFG_CLR = 1 , } impl From < ICLR_PWRUPIFG_AW > for bool { # [inline (always)]
fn from (variant : ICLR_PWRUPIFG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_PWRUPIFG` writer - Clears PWRUPIFG in RIS register"]
pub type ICLR_PWRUPIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_PWRUPIFG_AW > ; impl < 'a , REG , const O : u8 > ICLR_PWRUPIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_pwrupifg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_PWRUPIFG_AW :: ICLR_PWRUPIFG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_pwrupifg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_PWRUPIFG_AW :: ICLR_PWRUPIFG_CLR) } } # [doc = "Clears PWRDWNIFG in RIS register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_PWRDWNIFG_AW { # [doc = "0: NO_EFFECT"]
ICLR_PWRDWNIFG_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_PWRDWNIFG_CLR = 1 , } impl From < ICLR_PWRDWNIFG_AW > for bool { # [inline (always)]
fn from (variant : ICLR_PWRDWNIFG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_PWRDWNIFG` writer - Clears PWRDWNIFG in RIS register"]
pub type ICLR_PWRDWNIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_PWRDWNIFG_AW > ; impl < 'a , REG , const O : u8 > ICLR_PWRDWNIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_pwrdwnifg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_PWRDWNIFG_AW :: ICLR_PWRDWNIFG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_pwrdwnifg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_PWRDWNIFG_AW :: ICLR_PWRDWNIFG_CLR) } } impl W { # [doc = "Bit 0 - Clears TXIFG in RIS register"]
# [inline (always)]
# [must_use]
pub fn iclr_txifg (& mut self) -> ICLR_TXIFG_W < ICLR_SPEC , 0 > { ICLR_TXIFG_W :: new (self) } # [doc = "Bit 1 - Clears RXIFG in RIS register"]
# [inline (always)]
# [must_use]
pub fn iclr_rxifg (& mut self) -> ICLR_RXIFG_W < ICLR_SPEC , 1 > { ICLR_RXIFG_W :: new (self) } # [doc = "Bit 2 - Clears PWRUPIFG in RIS register"]
# [inline (always)]
# [must_use]
pub fn iclr_pwrupifg (& mut self) -> ICLR_PWRUPIFG_W < ICLR_SPEC , 2 > { ICLR_PWRUPIFG_W :: new (self) } # [doc = "Bit 3 - Clears PWRDWNIFG in RIS register"]
# [inline (always)]
# [must_use]
pub fn iclr_pwrdwnifg (& mut self) -> ICLR_PWRDWNIFG_W < ICLR_SPEC , 3 > { ICLR_PWRDWNIFG_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ICLR_SPEC ; impl crate :: RegisterSpec for ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`iclr::W`](W) writer structure"]
impl crate :: Writable for ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets ICLR to value 0"]
impl crate :: Resettable for ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "EVT_MODE (r) register accessor: Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@evt_mode`]
module"]
pub type EVT_MODE = crate :: Reg < evt_mode :: EVT_MODE_SPEC > ; # [doc = "Event Mode"]
pub mod evt_mode { # [doc = "Register `EVT_MODE` reader"]
pub type R = crate :: R < EVT_MODE_SPEC > ; # [doc = "Field `EVT_MODE_INT0_CFG` reader - Event line mode select for peripheral events"]
pub type EVT_MODE_INT0_CFG_R = crate :: FieldReader < EVT_MODE_INT0_CFG_A > ; # [doc = "Event line mode select for peripheral events\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_INT0_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_INT0_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_INT0_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_INT0_CFG_HARDWARE = 2 , } impl From < EVT_MODE_INT0_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_INT0_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_INT0_CFG_A { type Ux = u8 ; } impl EVT_MODE_INT0_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_INT0_CFG_A > { match self . bits { 0 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_DISABLE) , 1 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_SOFTWARE) , 2 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_disable (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_software (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_hardware (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_HARDWARE } } impl R { # [doc = "Bits 0:1 - Event line mode select for peripheral events"]
# [inline (always)]
pub fn evt_mode_int0_cfg (& self) -> EVT_MODE_INT0_CFG_R { EVT_MODE_INT0_CFG_R :: new ((self . bits & 3) as u8) } } # [doc = "Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct EVT_MODE_SPEC ; impl crate :: RegisterSpec for EVT_MODE_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`evt_mode::R`](R) reader structure"]
impl crate :: Readable for EVT_MODE_SPEC { } # [doc = "`reset()` method sets EVT_MODE to value 0"]
impl crate :: Resettable for EVT_MODE_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DESC (r) register accessor: Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@desc`]
module"]
pub type DESC = crate :: Reg < desc :: DESC_SPEC > ; # [doc = "Module Description"]
pub mod desc { # [doc = "Register `DESC` reader"]
pub type R = crate :: R < DESC_SPEC > ; # [doc = "Field `DESC_MINREV` reader - Minor rev of the IP"]
pub type DESC_MINREV_R = crate :: FieldReader ; # [doc = "Field `DESC_MAJREV` reader - Major rev of the IP"]
pub type DESC_MAJREV_R = crate :: FieldReader ; # [doc = "Field `DESC_INSTNUM` reader - Instance Number within the device. This will be a parameter to the RTL for modules that can have multiple instances"]
pub type DESC_INSTNUM_R = crate :: FieldReader ; # [doc = "Field `DESC_FEATUREVER` reader - Feature Set for the module *instance*"]
pub type DESC_FEATUREVER_R = crate :: FieldReader ; # [doc = "Field `DESC_MODULEID` reader - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
pub type DESC_MODULEID_R = crate :: FieldReader < u16 > ; impl R { # [doc = "Bits 0:3 - Minor rev of the IP"]
# [inline (always)]
pub fn desc_minrev (& self) -> DESC_MINREV_R { DESC_MINREV_R :: new ((self . bits & 0x0f) as u8) } # [doc = "Bits 4:7 - Major rev of the IP"]
# [inline (always)]
pub fn desc_majrev (& self) -> DESC_MAJREV_R { DESC_MAJREV_R :: new (((self . bits >> 4) & 0x0f) as u8) } # [doc = "Bits 8:11 - Instance Number within the device. This will be a parameter to the RTL for modules that can have multiple instances"]
# [inline (always)]
pub fn desc_instnum (& self) -> DESC_INSTNUM_R { DESC_INSTNUM_R :: new (((self . bits >> 8) & 0x0f) as u8) } # [doc = "Bits 12:15 - Feature Set for the module *instance*"]
# [inline (always)]
pub fn desc_featurever (& self) -> DESC_FEATUREVER_R { DESC_FEATUREVER_R :: new (((self . bits >> 12) & 0x0f) as u8) } # [doc = "Bits 16:31 - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
# [inline (always)]
pub fn desc_moduleid (& self) -> DESC_MODULEID_R { DESC_MODULEID_R :: new (((self . bits >> 16) & 0xffff) as u16) } } # [doc = "Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DESC_SPEC ; impl crate :: RegisterSpec for DESC_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`desc::R`](R) reader structure"]
impl crate :: Readable for DESC_SPEC { } # [doc = "`reset()` method sets DESC to value 0"]
impl crate :: Resettable for DESC_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "TXD (r) register accessor: Transmit data register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`txd::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@txd`]
module"]
pub type TXD = crate :: Reg < txd :: TXD_SPEC > ; # [doc = "Transmit data register"]
pub mod txd { # [doc = "Register `TXD` reader"]
pub type R = crate :: R < TXD_SPEC > ; # [doc = "Field `TXD_TX_DATA` reader - Contains data written by an external debug tool to the SEC-AP TXDATA register"]
pub type TXD_TX_DATA_R = crate :: FieldReader < u32 > ; impl R { # [doc = "Bits 0:31 - Contains data written by an external debug tool to the SEC-AP TXDATA register"]
# [inline (always)]
pub fn txd_tx_data (& self) -> TXD_TX_DATA_R { TXD_TX_DATA_R :: new (self . bits) } } # [doc = "Transmit data register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`txd::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct TXD_SPEC ; impl crate :: RegisterSpec for TXD_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`txd::R`](R) reader structure"]
impl crate :: Readable for TXD_SPEC { } # [doc = "`reset()` method sets TXD to value 0"]
impl crate :: Resettable for TXD_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "TXCTL (r) register accessor: Transmit control register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`txctl::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@txctl`]
module"]
pub type TXCTL = crate :: Reg < txctl :: TXCTL_SPEC > ; # [doc = "Transmit control register"]
pub mod txctl { # [doc = "Register `TXCTL` reader"]
pub type R = crate :: R < TXCTL_SPEC > ; # [doc = "Field `TXCTL_TRANSMIT` reader - Indicates data request in DSSM.TXD, set on write via Debug AP to DSSM.TXD. A read of the DSSM.TXD register by SW will clear the TX field. The tool can check that TXD is empty by reading this field."]
pub type TXCTL_TRANSMIT_R = crate :: BitReader < TXCTL_TRANSMIT_A > ; # [doc = "Indicates data request in DSSM.TXD, set on write via Debug AP to DSSM.TXD. A read of the DSSM.TXD register by SW will clear the TX field. The tool can check that TXD is empty by reading this field.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum TXCTL_TRANSMIT_A { # [doc = "0: EMPTY"]
TXCTL_TRANSMIT_EMPTY = 0 , # [doc = "1: FULL"]
TXCTL_TRANSMIT_FULL = 1 , } impl From < TXCTL_TRANSMIT_A > for bool { # [inline (always)]
fn from (variant : TXCTL_TRANSMIT_A) -> Self { variant as u8 != 0 } } impl TXCTL_TRANSMIT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> TXCTL_TRANSMIT_A { match self . bits { false => TXCTL_TRANSMIT_A :: TXCTL_TRANSMIT_EMPTY , true => TXCTL_TRANSMIT_A :: TXCTL_TRANSMIT_FULL , } } # [doc = "EMPTY"]
# [inline (always)]
pub fn is_txctl_transmit_empty (& self) -> bool { * self == TXCTL_TRANSMIT_A :: TXCTL_TRANSMIT_EMPTY } # [doc = "FULL"]
# [inline (always)]
pub fn is_txctl_transmit_full (& self) -> bool { * self == TXCTL_TRANSMIT_A :: TXCTL_TRANSMIT_FULL } } # [doc = "Field `TXCTL_TRANSMIT_FLAGS` reader - Generic TX flags that can be set by external debug tool. Functionality is defined by SW."]
pub type TXCTL_TRANSMIT_FLAGS_R = crate :: FieldReader < u32 > ; impl R { # [doc = "Bit 0 - Indicates data request in DSSM.TXD, set on write via Debug AP to DSSM.TXD. A read of the DSSM.TXD register by SW will clear the TX field. The tool can check that TXD is empty by reading this field."]
# [inline (always)]
pub fn txctl_transmit (& self) -> TXCTL_TRANSMIT_R { TXCTL_TRANSMIT_R :: new ((self . bits & 1) != 0) } # [doc = "Bits 1:31 - Generic TX flags that can be set by external debug tool. Functionality is defined by SW."]
# [inline (always)]
pub fn txctl_transmit_flags (& self) -> TXCTL_TRANSMIT_FLAGS_R { TXCTL_TRANSMIT_FLAGS_R :: new ((self . bits >> 1) & 0x7fff_ffff) } } # [doc = "Transmit control register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`txctl::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct TXCTL_SPEC ; impl crate :: RegisterSpec for TXCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`txctl::R`](R) reader structure"]
impl crate :: Readable for TXCTL_SPEC { } # [doc = "`reset()` method sets TXCTL to value 0"]
impl crate :: Resettable for TXCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RXD (rw) register accessor: Receive data register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`rxd::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rxd::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rxd`]
module"]
pub type RXD = crate :: Reg < rxd :: RXD_SPEC > ; # [doc = "Receive data register"]
pub mod rxd { # [doc = "Register `RXD` reader"]
pub type R = crate :: R < RXD_SPEC > ; # [doc = "Register `RXD` writer"]
pub type W = crate :: W < RXD_SPEC > ; # [doc = "Field `RXD_RX_DATA` reader - Contains data written by SM/OW."]
pub type RXD_RX_DATA_R = crate :: FieldReader < u32 > ; # [doc = "Field `RXD_RX_DATA` writer - Contains data written by SM/OW."]
pub type RXD_RX_DATA_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 32 , O , u32 > ; impl R { # [doc = "Bits 0:31 - Contains data written by SM/OW."]
# [inline (always)]
pub fn rxd_rx_data (& self) -> RXD_RX_DATA_R { RXD_RX_DATA_R :: new (self . bits) } } impl W { # [doc = "Bits 0:31 - Contains data written by SM/OW."]
# [inline (always)]
# [must_use]
pub fn rxd_rx_data (& mut self) -> RXD_RX_DATA_W < RXD_SPEC , 0 > { RXD_RX_DATA_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Receive data register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`rxd::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rxd::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RXD_SPEC ; impl crate :: RegisterSpec for RXD_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`rxd::R`](R) reader structure"]
impl crate :: Readable for RXD_SPEC { } # [doc = "`write(|w| ..)` method takes [`rxd::W`](W) writer structure"]
impl crate :: Writable for RXD_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets RXD to value 0"]
impl crate :: Resettable for RXD_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RXCTL (rw) register accessor: Receive control register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`rxctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rxctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rxctl`]
module"]
pub type RXCTL = crate :: Reg < rxctl :: RXCTL_SPEC > ; # [doc = "Receive control register"]
pub mod rxctl { # [doc = "Register `RXCTL` reader"]
pub type R = crate :: R < RXCTL_SPEC > ; # [doc = "Register `RXCTL` writer"]
pub type W = crate :: W < RXCTL_SPEC > ; # [doc = "Field `RXCTL_RECEIVE` reader - Indicates SW write to the DSSM.RXD register. A read of the DSSM.RXD register by SWD Access Port will clear the RX field."]
pub type RXCTL_RECEIVE_R = crate :: BitReader < RXCTL_RECEIVE_A > ; # [doc = "Indicates SW write to the DSSM.RXD register. A read of the DSSM.RXD register by SWD Access Port will clear the RX field.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RXCTL_RECEIVE_A { # [doc = "0: EMPTY"]
RXCTL_RECEIVE_EMPTY = 0 , # [doc = "1: FULL"]
RXCTL_RECEIVE_FULL = 1 , } impl From < RXCTL_RECEIVE_A > for bool { # [inline (always)]
fn from (variant : RXCTL_RECEIVE_A) -> Self { variant as u8 != 0 } } impl RXCTL_RECEIVE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RXCTL_RECEIVE_A { match self . bits { false => RXCTL_RECEIVE_A :: RXCTL_RECEIVE_EMPTY , true => RXCTL_RECEIVE_A :: RXCTL_RECEIVE_FULL , } } # [doc = "EMPTY"]
# [inline (always)]
pub fn is_rxctl_receive_empty (& self) -> bool { * self == RXCTL_RECEIVE_A :: RXCTL_RECEIVE_EMPTY } # [doc = "FULL"]
# [inline (always)]
pub fn is_rxctl_receive_full (& self) -> bool { * self == RXCTL_RECEIVE_A :: RXCTL_RECEIVE_FULL } } # [doc = "Field `RXCTL_RECEIVE_FLAGS` reader - Generic RX flags that can be set by SW and read by external debug tool. Functionality is defined by SW."]
pub type RXCTL_RECEIVE_FLAGS_R = crate :: FieldReader ; # [doc = "Field `RXCTL_RECEIVE_FLAGS` writer - Generic RX flags that can be set by SW and read by external debug tool. Functionality is defined by SW."]
pub type RXCTL_RECEIVE_FLAGS_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 7 , O > ; impl R { # [doc = "Bit 0 - Indicates SW write to the DSSM.RXD register. A read of the DSSM.RXD register by SWD Access Port will clear the RX field."]
# [inline (always)]
pub fn rxctl_receive (& self) -> RXCTL_RECEIVE_R { RXCTL_RECEIVE_R :: new ((self . bits & 1) != 0) } # [doc = "Bits 1:7 - Generic RX flags that can be set by SW and read by external debug tool. Functionality is defined by SW."]
# [inline (always)]
pub fn rxctl_receive_flags (& self) -> RXCTL_RECEIVE_FLAGS_R { RXCTL_RECEIVE_FLAGS_R :: new (((self . bits >> 1) & 0x7f) as u8) } } impl W { # [doc = "Bits 1:7 - Generic RX flags that can be set by SW and read by external debug tool. Functionality is defined by SW."]
# [inline (always)]
# [must_use]
pub fn rxctl_receive_flags (& mut self) -> RXCTL_RECEIVE_FLAGS_W < RXCTL_SPEC , 1 > { RXCTL_RECEIVE_FLAGS_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Receive control register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`rxctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rxctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RXCTL_SPEC ; impl crate :: RegisterSpec for RXCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`rxctl::R`](R) reader structure"]
impl crate :: Readable for RXCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`rxctl::W`](W) writer structure"]
impl crate :: Writable for RXCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets RXCTL to value 0"]
impl crate :: Resettable for RXCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "SPECIAL_AUTH (r) register accessor: Special enable authorization register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`special_auth::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@special_auth`]
module"]
pub type SPECIAL_AUTH = crate :: Reg < special_auth :: SPECIAL_AUTH_SPEC > ; # [doc = "Special enable authorization register"]
pub mod special_auth { # [doc = "Register `SPECIAL_AUTH` reader"]
pub type R = crate :: R < SPECIAL_AUTH_SPEC > ; # [doc = "Field `SPECIAL_AUTH_SECAPEN` reader - An active high input. When asserted (and SWD access is also permitted), the debug tools can use the Security-AP to communicate with security control logic. When deasserted, a DAPBUS firewall will isolate the AP and prevent access to the Security-AP."]
pub type SPECIAL_AUTH_SECAPEN_R = crate :: BitReader < SPECIAL_AUTH_SECAPEN_A > ; # [doc = "An active high input. When asserted (and SWD access is also permitted), the debug tools can use the Security-AP to communicate with security control logic. When deasserted, a DAPBUS firewall will isolate the AP and prevent access to the Security-AP.\n\nValue on reset: 1"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SPECIAL_AUTH_SECAPEN_A { # [doc = "0: DISABLE"]
SPECIAL_AUTH_SECAPEN_DISABLE = 0 , # [doc = "1: ENABLE"]
SPECIAL_AUTH_SECAPEN_ENABLE = 1 , } impl From < SPECIAL_AUTH_SECAPEN_A > for bool { # [inline (always)]
fn from (variant : SPECIAL_AUTH_SECAPEN_A) -> Self { variant as u8 != 0 } } impl SPECIAL_AUTH_SECAPEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SPECIAL_AUTH_SECAPEN_A { match self . bits { false => SPECIAL_AUTH_SECAPEN_A :: SPECIAL_AUTH_SECAPEN_DISABLE , true => SPECIAL_AUTH_SECAPEN_A :: SPECIAL_AUTH_SECAPEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_special_auth_secapen_disable (& self) -> bool { * self == SPECIAL_AUTH_SECAPEN_A :: SPECIAL_AUTH_SECAPEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_special_auth_secapen_enable (& self) -> bool { * self == SPECIAL_AUTH_SECAPEN_A :: SPECIAL_AUTH_SECAPEN_ENABLE } } # [doc = "Field `SPECIAL_AUTH_SWDPORTEN` reader - When asserted, the SW-DP functions normally. When deasserted, the SW-DP effectively disables all external debug access."]
pub type SPECIAL_AUTH_SWDPORTEN_R = crate :: BitReader < SPECIAL_AUTH_SWDPORTEN_A > ; # [doc = "When asserted, the SW-DP functions normally. When deasserted, the SW-DP effectively disables all external debug access.\n\nValue on reset: 1"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SPECIAL_AUTH_SWDPORTEN_A { # [doc = "0: DISABLE"]
SPECIAL_AUTH_SWDPORTEN_DISABLE = 0 , # [doc = "1: ENABLE"]
SPECIAL_AUTH_SWDPORTEN_ENABLE = 1 , } impl From < SPECIAL_AUTH_SWDPORTEN_A > for bool { # [inline (always)]
fn from (variant : SPECIAL_AUTH_SWDPORTEN_A) -> Self { variant as u8 != 0 } } impl SPECIAL_AUTH_SWDPORTEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SPECIAL_AUTH_SWDPORTEN_A { match self . bits { false => SPECIAL_AUTH_SWDPORTEN_A :: SPECIAL_AUTH_SWDPORTEN_DISABLE , true => SPECIAL_AUTH_SWDPORTEN_A :: SPECIAL_AUTH_SWDPORTEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_special_auth_swdporten_disable (& self) -> bool { * self == SPECIAL_AUTH_SWDPORTEN_A :: SPECIAL_AUTH_SWDPORTEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_special_auth_swdporten_enable (& self) -> bool { * self == SPECIAL_AUTH_SWDPORTEN_A :: SPECIAL_AUTH_SWDPORTEN_ENABLE } } # [doc = "Field `SPECIAL_AUTH_DFTAPEN` reader - An active high input. When asserted (and SWD access is also permitted), the debug tools can then access the DFT-AP external to the DebugSS lite. When deasserted, a DAPBUS firewall will isolate the AP and prevent access."]
pub type SPECIAL_AUTH_DFTAPEN_R = crate :: BitReader < SPECIAL_AUTH_DFTAPEN_A > ; # [doc = "An active high input. When asserted (and SWD access is also permitted), the debug tools can then access the DFT-AP external to the DebugSS lite. When deasserted, a DAPBUS firewall will isolate the AP and prevent access.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SPECIAL_AUTH_DFTAPEN_A { # [doc = "0: DISABLE"]
SPECIAL_AUTH_DFTAPEN_DISABLE = 0 , # [doc = "1: ENABLE"]
SPECIAL_AUTH_DFTAPEN_ENABLE = 1 , } impl From < SPECIAL_AUTH_DFTAPEN_A > for bool { # [inline (always)]
fn from (variant : SPECIAL_AUTH_DFTAPEN_A) -> Self { variant as u8 != 0 } } impl SPECIAL_AUTH_DFTAPEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SPECIAL_AUTH_DFTAPEN_A { match self . bits { false => SPECIAL_AUTH_DFTAPEN_A :: SPECIAL_AUTH_DFTAPEN_DISABLE , true => SPECIAL_AUTH_DFTAPEN_A :: SPECIAL_AUTH_DFTAPEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_special_auth_dftapen_disable (& self) -> bool { * self == SPECIAL_AUTH_DFTAPEN_A :: SPECIAL_AUTH_DFTAPEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_special_auth_dftapen_enable (& self) -> bool { * self == SPECIAL_AUTH_DFTAPEN_A :: SPECIAL_AUTH_DFTAPEN_ENABLE } } # [doc = "Field `SPECIAL_AUTH_ETAPEN` reader - An active high input. When asserted (and SWD access is also permitted), the debug tools can then access an ET-AP external to the DebugSS lite. When deasserted, a DAPBUS firewall will isolate the AP and prevent access."]
pub type SPECIAL_AUTH_ETAPEN_R = crate :: BitReader < SPECIAL_AUTH_ETAPEN_A > ; # [doc = "An active high input. When asserted (and SWD access is also permitted), the debug tools can then access an ET-AP external to the DebugSS lite. When deasserted, a DAPBUS firewall will isolate the AP and prevent access.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SPECIAL_AUTH_ETAPEN_A { # [doc = "0: DISABLE"]
SPECIAL_AUTH_ETAPEN_DISABLE = 0 , # [doc = "1: ENABLE"]
SPECIAL_AUTH_ETAPEN_ENABLE = 1 , } impl From < SPECIAL_AUTH_ETAPEN_A > for bool { # [inline (always)]
fn from (variant : SPECIAL_AUTH_ETAPEN_A) -> Self { variant as u8 != 0 } } impl SPECIAL_AUTH_ETAPEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SPECIAL_AUTH_ETAPEN_A { match self . bits { false => SPECIAL_AUTH_ETAPEN_A :: SPECIAL_AUTH_ETAPEN_DISABLE , true => SPECIAL_AUTH_ETAPEN_A :: SPECIAL_AUTH_ETAPEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_special_auth_etapen_disable (& self) -> bool { * self == SPECIAL_AUTH_ETAPEN_A :: SPECIAL_AUTH_ETAPEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_special_auth_etapen_enable (& self) -> bool { * self == SPECIAL_AUTH_ETAPEN_A :: SPECIAL_AUTH_ETAPEN_ENABLE } } # [doc = "Field `SPECIAL_AUTH_CFGAPEN` reader - An active high input. When asserted (and SWD access is also permitted), the debug tools can use the Config-AP to read device configuration information. When deasserted, a DAPBUS firewall will isolate the AP and prevent access to the Config-AP."]
pub type SPECIAL_AUTH_CFGAPEN_R = crate :: BitReader < SPECIAL_AUTH_CFGAPEN_A > ; # [doc = "An active high input. When asserted (and SWD access is also permitted), the debug tools can use the Config-AP to read device configuration information. When deasserted, a DAPBUS firewall will isolate the AP and prevent access to the Config-AP.\n\nValue on reset: 1"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SPECIAL_AUTH_CFGAPEN_A { # [doc = "0: DISABLE"]
SPECIAL_AUTH_CFGAPEN_DISABLE = 0 , # [doc = "1: ENABLE"]
SPECIAL_AUTH_CFGAPEN_ENABLE = 1 , } impl From < SPECIAL_AUTH_CFGAPEN_A > for bool { # [inline (always)]
fn from (variant : SPECIAL_AUTH_CFGAPEN_A) -> Self { variant as u8 != 0 } } impl SPECIAL_AUTH_CFGAPEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SPECIAL_AUTH_CFGAPEN_A { match self . bits { false => SPECIAL_AUTH_CFGAPEN_A :: SPECIAL_AUTH_CFGAPEN_DISABLE , true => SPECIAL_AUTH_CFGAPEN_A :: SPECIAL_AUTH_CFGAPEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_special_auth_cfgapen_disable (& self) -> bool { * self == SPECIAL_AUTH_CFGAPEN_A :: SPECIAL_AUTH_CFGAPEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_special_auth_cfgapen_enable (& self) -> bool { * self == SPECIAL_AUTH_CFGAPEN_A :: SPECIAL_AUTH_CFGAPEN_ENABLE } } # [doc = "Field `SPECIAL_AUTH_AHBAPEN` reader - Disabling / enabling debug access to the M0+ Core via the AHB-AP DAP bus isolation."]
pub type SPECIAL_AUTH_AHBAPEN_R = crate :: BitReader < SPECIAL_AUTH_AHBAPEN_A > ; # [doc = "Disabling / enabling debug access to the M0+ Core via the AHB-AP DAP bus isolation.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SPECIAL_AUTH_AHBAPEN_A { # [doc = "0: DISABLE"]
SPECIAL_AUTH_AHBAPEN_DISABLE = 0 , # [doc = "1: ENABLE"]
SPECIAL_AUTH_AHBAPEN_ENABLE = 1 , } impl From < SPECIAL_AUTH_AHBAPEN_A > for bool { # [inline (always)]
fn from (variant : SPECIAL_AUTH_AHBAPEN_A) -> Self { variant as u8 != 0 } } impl SPECIAL_AUTH_AHBAPEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SPECIAL_AUTH_AHBAPEN_A { match self . bits { false => SPECIAL_AUTH_AHBAPEN_A :: SPECIAL_AUTH_AHBAPEN_DISABLE , true => SPECIAL_AUTH_AHBAPEN_A :: SPECIAL_AUTH_AHBAPEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_special_auth_ahbapen_disable (& self) -> bool { * self == SPECIAL_AUTH_AHBAPEN_A :: SPECIAL_AUTH_AHBAPEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_special_auth_ahbapen_enable (& self) -> bool { * self == SPECIAL_AUTH_AHBAPEN_A :: SPECIAL_AUTH_AHBAPEN_ENABLE } } # [doc = "Field `SPECIAL_AUTH_PWRAPEN` reader - An active high input. When asserted (and SWD access is also permitted), the debug tools can then access the PWR-AP to power and reset state of the CPU. When deasserted, a DAPBUS firewall will isolate the AP and prevent access."]
pub type SPECIAL_AUTH_PWRAPEN_R = crate :: BitReader < SPECIAL_AUTH_PWRAPEN_A > ; # [doc = "An active high input. When asserted (and SWD access is also permitted), the debug tools can then access the PWR-AP to power and reset state of the CPU. When deasserted, a DAPBUS firewall will isolate the AP and prevent access.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SPECIAL_AUTH_PWRAPEN_A { # [doc = "0: DISABLE"]
SPECIAL_AUTH_PWRAPEN_DISABLE = 0 , # [doc = "1: ENABLE"]
SPECIAL_AUTH_PWRAPEN_ENABLE = 1 , } impl From < SPECIAL_AUTH_PWRAPEN_A > for bool { # [inline (always)]
fn from (variant : SPECIAL_AUTH_PWRAPEN_A) -> Self { variant as u8 != 0 } } impl SPECIAL_AUTH_PWRAPEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SPECIAL_AUTH_PWRAPEN_A { match self . bits { false => SPECIAL_AUTH_PWRAPEN_A :: SPECIAL_AUTH_PWRAPEN_DISABLE , true => SPECIAL_AUTH_PWRAPEN_A :: SPECIAL_AUTH_PWRAPEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_special_auth_pwrapen_disable (& self) -> bool { * self == SPECIAL_AUTH_PWRAPEN_A :: SPECIAL_AUTH_PWRAPEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_special_auth_pwrapen_enable (& self) -> bool { * self == SPECIAL_AUTH_PWRAPEN_A :: SPECIAL_AUTH_PWRAPEN_ENABLE } } impl R { # [doc = "Bit 0 - An active high input. When asserted (and SWD access is also permitted), the debug tools can use the Security-AP to communicate with security control logic. When deasserted, a DAPBUS firewall will isolate the AP and prevent access to the Security-AP."]
# [inline (always)]
pub fn special_auth_secapen (& self) -> SPECIAL_AUTH_SECAPEN_R { SPECIAL_AUTH_SECAPEN_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - When asserted, the SW-DP functions normally. When deasserted, the SW-DP effectively disables all external debug access."]
# [inline (always)]
pub fn special_auth_swdporten (& self) -> SPECIAL_AUTH_SWDPORTEN_R { SPECIAL_AUTH_SWDPORTEN_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - An active high input. When asserted (and SWD access is also permitted), the debug tools can then access the DFT-AP external to the DebugSS lite. When deasserted, a DAPBUS firewall will isolate the AP and prevent access."]
# [inline (always)]
pub fn special_auth_dftapen (& self) -> SPECIAL_AUTH_DFTAPEN_R { SPECIAL_AUTH_DFTAPEN_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - An active high input. When asserted (and SWD access is also permitted), the debug tools can then access an ET-AP external to the DebugSS lite. When deasserted, a DAPBUS firewall will isolate the AP and prevent access."]
# [inline (always)]
pub fn special_auth_etapen (& self) -> SPECIAL_AUTH_ETAPEN_R { SPECIAL_AUTH_ETAPEN_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - An active high input. When asserted (and SWD access is also permitted), the debug tools can use the Config-AP to read device configuration information. When deasserted, a DAPBUS firewall will isolate the AP and prevent access to the Config-AP."]
# [inline (always)]
pub fn special_auth_cfgapen (& self) -> SPECIAL_AUTH_CFGAPEN_R { SPECIAL_AUTH_CFGAPEN_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Disabling / enabling debug access to the M0+ Core via the AHB-AP DAP bus isolation."]
# [inline (always)]
pub fn special_auth_ahbapen (& self) -> SPECIAL_AUTH_AHBAPEN_R { SPECIAL_AUTH_AHBAPEN_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - An active high input. When asserted (and SWD access is also permitted), the debug tools can then access the PWR-AP to power and reset state of the CPU. When deasserted, a DAPBUS firewall will isolate the AP and prevent access."]
# [inline (always)]
pub fn special_auth_pwrapen (& self) -> SPECIAL_AUTH_PWRAPEN_R { SPECIAL_AUTH_PWRAPEN_R :: new (((self . bits >> 6) & 1) != 0) } } # [doc = "Special enable authorization register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`special_auth::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SPECIAL_AUTH_SPEC ; impl crate :: RegisterSpec for SPECIAL_AUTH_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`special_auth::R`](R) reader structure"]
impl crate :: Readable for SPECIAL_AUTH_SPEC { } # [doc = "`reset()` method sets SPECIAL_AUTH to value 0x13"]
impl crate :: Resettable for SPECIAL_AUTH_SPEC { const RESET_VALUE : Self :: Ux = 0x13 ; } } # [doc = "APP_AUTH (r) register accessor: Application CPU0 authorization register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`app_auth::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@app_auth`]
module"]
pub type APP_AUTH = crate :: Reg < app_auth :: APP_AUTH_SPEC > ; # [doc = "Application CPU0 authorization register"]
pub mod app_auth { # [doc = "Register `APP_AUTH` reader"]
pub type R = crate :: R < APP_AUTH_SPEC > ; # [doc = "Field `APP_AUTH_DBGEN` reader - Controls invasive debug enable."]
pub type APP_AUTH_DBGEN_R = crate :: BitReader < APP_AUTH_DBGEN_A > ; # [doc = "Controls invasive debug enable.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum APP_AUTH_DBGEN_A { # [doc = "0: DISABLE"]
APP_AUTH_DBGEN_DISABLE = 0 , # [doc = "1: ENABLE"]
APP_AUTH_DBGEN_ENABLE = 1 , } impl From < APP_AUTH_DBGEN_A > for bool { # [inline (always)]
fn from (variant : APP_AUTH_DBGEN_A) -> Self { variant as u8 != 0 } } impl APP_AUTH_DBGEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> APP_AUTH_DBGEN_A { match self . bits { false => APP_AUTH_DBGEN_A :: APP_AUTH_DBGEN_DISABLE , true => APP_AUTH_DBGEN_A :: APP_AUTH_DBGEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_app_auth_dbgen_disable (& self) -> bool { * self == APP_AUTH_DBGEN_A :: APP_AUTH_DBGEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_app_auth_dbgen_enable (& self) -> bool { * self == APP_AUTH_DBGEN_A :: APP_AUTH_DBGEN_ENABLE } } # [doc = "Field `APP_AUTH_NIDEN` reader - Controls non-invasive debug enable."]
pub type APP_AUTH_NIDEN_R = crate :: BitReader < APP_AUTH_NIDEN_A > ; # [doc = "Controls non-invasive debug enable.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum APP_AUTH_NIDEN_A { # [doc = "0: DISABLE"]
APP_AUTH_NIDEN_DISABLE = 0 , # [doc = "1: ENABLE"]
APP_AUTH_NIDEN_ENABLE = 1 , } impl From < APP_AUTH_NIDEN_A > for bool { # [inline (always)]
fn from (variant : APP_AUTH_NIDEN_A) -> Self { variant as u8 != 0 } } impl APP_AUTH_NIDEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> APP_AUTH_NIDEN_A { match self . bits { false => APP_AUTH_NIDEN_A :: APP_AUTH_NIDEN_DISABLE , true => APP_AUTH_NIDEN_A :: APP_AUTH_NIDEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_app_auth_niden_disable (& self) -> bool { * self == APP_AUTH_NIDEN_A :: APP_AUTH_NIDEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_app_auth_niden_enable (& self) -> bool { * self == APP_AUTH_NIDEN_A :: APP_AUTH_NIDEN_ENABLE } } # [doc = "Field `APP_AUTH_SPIDEN` reader - Secure invasive debug enable."]
pub type APP_AUTH_SPIDEN_R = crate :: BitReader < APP_AUTH_SPIDEN_A > ; # [doc = "Secure invasive debug enable.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum APP_AUTH_SPIDEN_A { # [doc = "0: DISABLE"]
APP_AUTH_SPIDEN_DISABLE = 0 , # [doc = "1: ENABLE"]
APP_AUTH_SPIDEN_ENABLE = 1 , } impl From < APP_AUTH_SPIDEN_A > for bool { # [inline (always)]
fn from (variant : APP_AUTH_SPIDEN_A) -> Self { variant as u8 != 0 } } impl APP_AUTH_SPIDEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> APP_AUTH_SPIDEN_A { match self . bits { false => APP_AUTH_SPIDEN_A :: APP_AUTH_SPIDEN_DISABLE , true => APP_AUTH_SPIDEN_A :: APP_AUTH_SPIDEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_app_auth_spiden_disable (& self) -> bool { * self == APP_AUTH_SPIDEN_A :: APP_AUTH_SPIDEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_app_auth_spiden_enable (& self) -> bool { * self == APP_AUTH_SPIDEN_A :: APP_AUTH_SPIDEN_ENABLE } } # [doc = "Field `APP_AUTH_SPNIDEN` reader - Secure non-invasive debug enable."]
pub type APP_AUTH_SPNIDEN_R = crate :: BitReader < APP_AUTH_SPNIDEN_A > ; # [doc = "Secure non-invasive debug enable.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum APP_AUTH_SPNIDEN_A { # [doc = "0: DISABLE"]
APP_AUTH_SPNIDEN_DISABLE = 0 , # [doc = "1: ENABLE"]
APP_AUTH_SPNIDEN_ENABLE = 1 , } impl From < APP_AUTH_SPNIDEN_A > for bool { # [inline (always)]
fn from (variant : APP_AUTH_SPNIDEN_A) -> Self { variant as u8 != 0 } } impl APP_AUTH_SPNIDEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> APP_AUTH_SPNIDEN_A { match self . bits { false => APP_AUTH_SPNIDEN_A :: APP_AUTH_SPNIDEN_DISABLE , true => APP_AUTH_SPNIDEN_A :: APP_AUTH_SPNIDEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_app_auth_spniden_disable (& self) -> bool { * self == APP_AUTH_SPNIDEN_A :: APP_AUTH_SPNIDEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_app_auth_spniden_enable (& self) -> bool { * self == APP_AUTH_SPNIDEN_A :: APP_AUTH_SPNIDEN_ENABLE } } impl R { # [doc = "Bit 0 - Controls invasive debug enable."]
# [inline (always)]
pub fn app_auth_dbgen (& self) -> APP_AUTH_DBGEN_R { APP_AUTH_DBGEN_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Controls non-invasive debug enable."]
# [inline (always)]
pub fn app_auth_niden (& self) -> APP_AUTH_NIDEN_R { APP_AUTH_NIDEN_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Secure invasive debug enable."]
# [inline (always)]
pub fn app_auth_spiden (& self) -> APP_AUTH_SPIDEN_R { APP_AUTH_SPIDEN_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Secure non-invasive debug enable."]
# [inline (always)]
pub fn app_auth_spniden (& self) -> APP_AUTH_SPNIDEN_R { APP_AUTH_SPNIDEN_R :: new (((self . bits >> 3) & 1) != 0) } } # [doc = "Application CPU0 authorization register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`app_auth::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct APP_AUTH_SPEC ; impl crate :: RegisterSpec for APP_AUTH_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`app_auth::R`](R) reader structure"]
impl crate :: Readable for APP_AUTH_SPEC { } # [doc = "`reset()` method sets APP_AUTH to value 0"]
impl crate :: Resettable for APP_AUTH_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } } # [doc = "PERIPHERALREGION"]
pub struct VREF { _marker : PhantomData < * const () > } unsafe impl Send for VREF { } impl VREF { # [doc = r"Pointer to the register block"]
pub const PTR : * const vref :: RegisterBlock = 0x4003_0000 as * const _ ; # [doc = r"Return the pointer to the register block"]
# [inline (always)]
pub const fn ptr () -> * const vref :: RegisterBlock { Self :: PTR } # [doc = r" Steal an instance of this peripheral"]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Ensure that the new instance of the peripheral cannot be used in a way"]
# [doc = r" that may race with any existing instances, for example by only"]
# [doc = r" accessing read-only or write-only registers, or by consuming the"]
# [doc = r" original peripheral and using critical sections to coordinate"]
# [doc = r" access between multiple new instances."]
# [doc = r""]
# [doc = r" Additionally, other software such as HALs may rely on only one"]
# [doc = r" peripheral instance existing to ensure memory safety; ensure"]
# [doc = r" no stolen instances are passed to such software."]
pub unsafe fn steal () -> Self { Self { _marker : PhantomData } } } impl Deref for VREF { type Target = vref :: RegisterBlock ; # [inline (always)]
fn deref (& self) -> & Self :: Target { unsafe { & * Self :: PTR } } } impl core :: fmt :: Debug for VREF { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("VREF") . finish () } } # [doc = "PERIPHERALREGION"]
pub mod vref { # [doc = r"Register block"]
# [repr (C)]
pub struct RegisterBlock { _reserved0 : [u8 ; 0x0800]
, # [doc = "0x800 - Power enable"]
pub pwren : PWREN , # [doc = "0x804 - Reset Control"]
pub rstctl : RSTCTL , _reserved2 : [u8 ; 0x0c]
, # [doc = "0x814 - Status Register"]
pub stat : STAT , _reserved3 : [u8 ; 0x07e8]
, # [doc = "0x1000 - Clock Divider"]
pub clkdiv : CLKDIV , _reserved4 : [u8 ; 0x04]
, # [doc = "0x1008 - Clock Selection"]
pub clksel : CLKSEL , _reserved5 : [u8 ; 0xf0]
, # [doc = "0x10fc - Module Description"]
pub desc : DESC , # [doc = "0x1100 - Control 0"]
pub ctl0 : CTL0 , # [doc = "0x1104 - Control 1"]
pub ctl1 : CTL1 , # [doc = "0x1108 - Control 2"]
pub ctl2 : CTL2 , } # [doc = "PWREN (rw) register accessor: Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pwren`]
module"]
pub type PWREN = crate :: Reg < pwren :: PWREN_SPEC > ; # [doc = "Power enable"]
pub mod pwren { # [doc = "Register `PWREN` reader"]
pub type R = crate :: R < PWREN_SPEC > ; # [doc = "Register `PWREN` writer"]
pub type W = crate :: W < PWREN_SPEC > ; # [doc = "Field `PWREN_ENABLE` reader - Enable the power"]
pub type PWREN_ENABLE_R = crate :: BitReader < PWREN_ENABLE_A > ; # [doc = "Enable the power\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PWREN_ENABLE_A { # [doc = "0: DISABLE"]
PWREN_ENABLE_DISABLE = 0 , # [doc = "1: ENABLE"]
PWREN_ENABLE_ENABLE = 1 , } impl From < PWREN_ENABLE_A > for bool { # [inline (always)]
fn from (variant : PWREN_ENABLE_A) -> Self { variant as u8 != 0 } } impl PWREN_ENABLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PWREN_ENABLE_A { match self . bits { false => PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE , true => PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_pwren_enable_disable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_pwren_enable_enable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE } } # [doc = "Field `PWREN_ENABLE` writer - Enable the power"]
pub type PWREN_ENABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PWREN_ENABLE_A > ; impl < 'a , REG , const O : u8 > PWREN_ENABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn pwren_enable_disable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn pwren_enable_enable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE) } } # [doc = "KEY to allow Power State Change\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum PWREN_KEY_AW { # [doc = "38: _TO_UNLOCK_W_"]
PWREN_KEY_UNLOCK_W = 38 , } impl From < PWREN_KEY_AW > for u8 { # [inline (always)]
fn from (variant : PWREN_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for PWREN_KEY_AW { type Ux = u8 ; } # [doc = "Field `PWREN_KEY` writer - KEY to allow Power State Change"]
pub type PWREN_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , PWREN_KEY_AW > ; impl < 'a , REG , const O : u8 > PWREN_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn pwren_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_KEY_AW :: PWREN_KEY_UNLOCK_W) } } impl R { # [doc = "Bit 0 - Enable the power"]
# [inline (always)]
pub fn pwren_enable (& self) -> PWREN_ENABLE_R { PWREN_ENABLE_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - Enable the power"]
# [inline (always)]
# [must_use]
pub fn pwren_enable (& mut self) -> PWREN_ENABLE_W < PWREN_SPEC , 0 > { PWREN_ENABLE_W :: new (self) } # [doc = "Bits 24:31 - KEY to allow Power State Change"]
# [inline (always)]
# [must_use]
pub fn pwren_key (& mut self) -> PWREN_KEY_W < PWREN_SPEC , 24 > { PWREN_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PWREN_SPEC ; impl crate :: RegisterSpec for PWREN_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pwren::R`](R) reader structure"]
impl crate :: Readable for PWREN_SPEC { } # [doc = "`write(|w| ..)` method takes [`pwren::W`](W) writer structure"]
impl crate :: Writable for PWREN_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PWREN to value 0"]
impl crate :: Resettable for PWREN_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RSTCTL (w) register accessor: Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rstctl`]
module"]
pub type RSTCTL = crate :: Reg < rstctl :: RSTCTL_SPEC > ; # [doc = "Reset Control"]
pub mod rstctl { # [doc = "Register `RSTCTL` writer"]
pub type W = crate :: W < RSTCTL_SPEC > ; # [doc = "Assert reset to the peripheral\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETASSERT_AW { # [doc = "0: NOP"]
RSTCTL_RESETASSERT_NOP = 0 , # [doc = "1: ASSERT"]
RSTCTL_RESETASSERT_ASSERT = 1 , } impl From < RSTCTL_RESETASSERT_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETASSERT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETASSERT` writer - Assert reset to the peripheral"]
pub type RSTCTL_RESETASSERT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETASSERT_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETASSERT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetassert_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_NOP) } # [doc = "ASSERT"]
# [inline (always)]
pub fn rstctl_resetassert_assert (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_ASSERT) } } # [doc = "Clear the RESETSTKY bit in the STAT register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETSTKYCLR_AW { # [doc = "0: NOP"]
RSTCTL_RESETSTKYCLR_NOP = 0 , # [doc = "1: CLR"]
RSTCTL_RESETSTKYCLR_CLR = 1 , } impl From < RSTCTL_RESETSTKYCLR_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETSTKYCLR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETSTKYCLR` writer - Clear the RESETSTKY bit in the STAT register"]
pub type RSTCTL_RESETSTKYCLR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETSTKYCLR_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETSTKYCLR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetstkyclr_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_NOP) } # [doc = "CLR"]
# [inline (always)]
pub fn rstctl_resetstkyclr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_CLR) } } # [doc = "Unlock key\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum RSTCTL_KEY_AW { # [doc = "177: _TO_UNLOCK_W_"]
RSTCTL_KEY_UNLOCK_W = 177 , } impl From < RSTCTL_KEY_AW > for u8 { # [inline (always)]
fn from (variant : RSTCTL_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for RSTCTL_KEY_AW { type Ux = u8 ; } # [doc = "Field `RSTCTL_KEY` writer - Unlock key"]
pub type RSTCTL_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , RSTCTL_KEY_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn rstctl_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_KEY_AW :: RSTCTL_KEY_UNLOCK_W) } } impl W { # [doc = "Bit 0 - Assert reset to the peripheral"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetassert (& mut self) -> RSTCTL_RESETASSERT_W < RSTCTL_SPEC , 0 > { RSTCTL_RESETASSERT_W :: new (self) } # [doc = "Bit 1 - Clear the RESETSTKY bit in the STAT register"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetstkyclr (& mut self) -> RSTCTL_RESETSTKYCLR_W < RSTCTL_SPEC , 1 > { RSTCTL_RESETSTKYCLR_W :: new (self) } # [doc = "Bits 24:31 - Unlock key"]
# [inline (always)]
# [must_use]
pub fn rstctl_key (& mut self) -> RSTCTL_KEY_W < RSTCTL_SPEC , 24 > { RSTCTL_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RSTCTL_SPEC ; impl crate :: RegisterSpec for RSTCTL_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`rstctl::W`](W) writer structure"]
impl crate :: Writable for RSTCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets RSTCTL to value 0"]
impl crate :: Resettable for RSTCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "STAT (r) register accessor: Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@stat`]
module"]
pub type STAT = crate :: Reg < stat :: STAT_SPEC > ; # [doc = "Status Register"]
pub mod stat { # [doc = "Register `STAT` reader"]
pub type R = crate :: R < STAT_SPEC > ; # [doc = "Field `STAT_RESETSTKY` reader - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
pub type STAT_RESETSTKY_R = crate :: BitReader < STAT_RESETSTKY_A > ; # [doc = "This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_RESETSTKY_A { # [doc = "0: NORES"]
STAT_RESETSTKY_NORES = 0 , # [doc = "1: RESET"]
STAT_RESETSTKY_RESET = 1 , } impl From < STAT_RESETSTKY_A > for bool { # [inline (always)]
fn from (variant : STAT_RESETSTKY_A) -> Self { variant as u8 != 0 } } impl STAT_RESETSTKY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_RESETSTKY_A { match self . bits { false => STAT_RESETSTKY_A :: STAT_RESETSTKY_NORES , true => STAT_RESETSTKY_A :: STAT_RESETSTKY_RESET , } } # [doc = "NORES"]
# [inline (always)]
pub fn is_stat_resetstky_nores (& self) -> bool { * self == STAT_RESETSTKY_A :: STAT_RESETSTKY_NORES } # [doc = "RESET"]
# [inline (always)]
pub fn is_stat_resetstky_reset (& self) -> bool { * self == STAT_RESETSTKY_A :: STAT_RESETSTKY_RESET } } impl R { # [doc = "Bit 16 - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
# [inline (always)]
pub fn stat_resetstky (& self) -> STAT_RESETSTKY_R { STAT_RESETSTKY_R :: new (((self . bits >> 16) & 1) != 0) } } # [doc = "Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct STAT_SPEC ; impl crate :: RegisterSpec for STAT_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`stat::R`](R) reader structure"]
impl crate :: Readable for STAT_SPEC { } # [doc = "`reset()` method sets STAT to value 0"]
impl crate :: Resettable for STAT_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CLKDIV (rw) register accessor: Clock Divider\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkdiv::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkdiv::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clkdiv`]
module"]
pub type CLKDIV = crate :: Reg < clkdiv :: CLKDIV_SPEC > ; # [doc = "Clock Divider"]
pub mod clkdiv { # [doc = "Register `CLKDIV` reader"]
pub type R = crate :: R < CLKDIV_SPEC > ; # [doc = "Register `CLKDIV` writer"]
pub type W = crate :: W < CLKDIV_SPEC > ; # [doc = "Field `CLKDIV_RATIO` reader - Selects divide ratio of module clock"]
pub type CLKDIV_RATIO_R = crate :: FieldReader ; # [doc = "Field `CLKDIV_RATIO` writer - Selects divide ratio of module clock"]
pub type CLKDIV_RATIO_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O > ; impl R { # [doc = "Bits 0:2 - Selects divide ratio of module clock"]
# [inline (always)]
pub fn clkdiv_ratio (& self) -> CLKDIV_RATIO_R { CLKDIV_RATIO_R :: new ((self . bits & 7) as u8) } } impl W { # [doc = "Bits 0:2 - Selects divide ratio of module clock"]
# [inline (always)]
# [must_use]
pub fn clkdiv_ratio (& mut self) -> CLKDIV_RATIO_W < CLKDIV_SPEC , 0 > { CLKDIV_RATIO_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Clock Divider\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkdiv::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkdiv::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CLKDIV_SPEC ; impl crate :: RegisterSpec for CLKDIV_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`clkdiv::R`](R) reader structure"]
impl crate :: Readable for CLKDIV_SPEC { } # [doc = "`write(|w| ..)` method takes [`clkdiv::W`](W) writer structure"]
impl crate :: Writable for CLKDIV_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CLKDIV to value 0"]
impl crate :: Resettable for CLKDIV_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CLKSEL (rw) register accessor: Clock Selection\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clksel::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clksel::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clksel`]
module"]
pub type CLKSEL = crate :: Reg < clksel :: CLKSEL_SPEC > ; # [doc = "Clock Selection"]
pub mod clksel { # [doc = "Register `CLKSEL` reader"]
pub type R = crate :: R < CLKSEL_SPEC > ; # [doc = "Register `CLKSEL` writer"]
pub type W = crate :: W < CLKSEL_SPEC > ; # [doc = "Field `CLKSEL_LFCLK_SEL` reader - Selects LFCLK as clock source if enabled"]
pub type CLKSEL_LFCLK_SEL_R = crate :: BitReader ; # [doc = "Field `CLKSEL_LFCLK_SEL` writer - Selects LFCLK as clock source if enabled"]
pub type CLKSEL_LFCLK_SEL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O > ; # [doc = "Field `CLKSEL_MFCLK_SEL` reader - Selects MFCLK as clock source if enabled"]
pub type CLKSEL_MFCLK_SEL_R = crate :: BitReader ; # [doc = "Field `CLKSEL_MFCLK_SEL` writer - Selects MFCLK as clock source if enabled"]
pub type CLKSEL_MFCLK_SEL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O > ; # [doc = "Field `CLKSEL_BUSCLK_SEL` reader - Selects BUSCLK as clock source if enabled"]
pub type CLKSEL_BUSCLK_SEL_R = crate :: BitReader ; # [doc = "Field `CLKSEL_BUSCLK_SEL` writer - Selects BUSCLK as clock source if enabled"]
pub type CLKSEL_BUSCLK_SEL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O > ; impl R { # [doc = "Bit 1 - Selects LFCLK as clock source if enabled"]
# [inline (always)]
pub fn clksel_lfclk_sel (& self) -> CLKSEL_LFCLK_SEL_R { CLKSEL_LFCLK_SEL_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Selects MFCLK as clock source if enabled"]
# [inline (always)]
pub fn clksel_mfclk_sel (& self) -> CLKSEL_MFCLK_SEL_R { CLKSEL_MFCLK_SEL_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Selects BUSCLK as clock source if enabled"]
# [inline (always)]
pub fn clksel_busclk_sel (& self) -> CLKSEL_BUSCLK_SEL_R { CLKSEL_BUSCLK_SEL_R :: new (((self . bits >> 3) & 1) != 0) } } impl W { # [doc = "Bit 1 - Selects LFCLK as clock source if enabled"]
# [inline (always)]
# [must_use]
pub fn clksel_lfclk_sel (& mut self) -> CLKSEL_LFCLK_SEL_W < CLKSEL_SPEC , 1 > { CLKSEL_LFCLK_SEL_W :: new (self) } # [doc = "Bit 2 - Selects MFCLK as clock source if enabled"]
# [inline (always)]
# [must_use]
pub fn clksel_mfclk_sel (& mut self) -> CLKSEL_MFCLK_SEL_W < CLKSEL_SPEC , 2 > { CLKSEL_MFCLK_SEL_W :: new (self) } # [doc = "Bit 3 - Selects BUSCLK as clock source if enabled"]
# [inline (always)]
# [must_use]
pub fn clksel_busclk_sel (& mut self) -> CLKSEL_BUSCLK_SEL_W < CLKSEL_SPEC , 3 > { CLKSEL_BUSCLK_SEL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Clock Selection\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clksel::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clksel::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CLKSEL_SPEC ; impl crate :: RegisterSpec for CLKSEL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`clksel::R`](R) reader structure"]
impl crate :: Readable for CLKSEL_SPEC { } # [doc = "`write(|w| ..)` method takes [`clksel::W`](W) writer structure"]
impl crate :: Writable for CLKSEL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CLKSEL to value 0"]
impl crate :: Resettable for CLKSEL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DESC (r) register accessor: Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@desc`]
module"]
pub type DESC = crate :: Reg < desc :: DESC_SPEC > ; # [doc = "Module Description"]
pub mod desc { # [doc = "Register `DESC` reader"]
pub type R = crate :: R < DESC_SPEC > ; # [doc = "Field `DESC_MINREV` reader - Minor rev of the IP"]
pub type DESC_MINREV_R = crate :: FieldReader ; # [doc = "Field `DESC_MAJREV` reader - Major rev of the IP"]
pub type DESC_MAJREV_R = crate :: FieldReader ; # [doc = "Field `DESC_FEATUREVER` reader - Feature Set for the module *instance*"]
pub type DESC_FEATUREVER_R = crate :: FieldReader ; # [doc = "Field `DESC_MODULEID` reader - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
pub type DESC_MODULEID_R = crate :: FieldReader < u16 > ; impl R { # [doc = "Bits 0:3 - Minor rev of the IP"]
# [inline (always)]
pub fn desc_minrev (& self) -> DESC_MINREV_R { DESC_MINREV_R :: new ((self . bits & 0x0f) as u8) } # [doc = "Bits 4:7 - Major rev of the IP"]
# [inline (always)]
pub fn desc_majrev (& self) -> DESC_MAJREV_R { DESC_MAJREV_R :: new (((self . bits >> 4) & 0x0f) as u8) } # [doc = "Bits 12:15 - Feature Set for the module *instance*"]
# [inline (always)]
pub fn desc_featurever (& self) -> DESC_FEATUREVER_R { DESC_FEATUREVER_R :: new (((self . bits >> 12) & 0x0f) as u8) } # [doc = "Bits 16:31 - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
# [inline (always)]
pub fn desc_moduleid (& self) -> DESC_MODULEID_R { DESC_MODULEID_R :: new (((self . bits >> 16) & 0xffff) as u16) } } # [doc = "Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DESC_SPEC ; impl crate :: RegisterSpec for DESC_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`desc::R`](R) reader structure"]
impl crate :: Readable for DESC_SPEC { } # [doc = "`reset()` method sets DESC to value 0"]
impl crate :: Resettable for DESC_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTL0 (rw) register accessor: Control 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctl0`]
module"]
pub type CTL0 = crate :: Reg < ctl0 :: CTL0_SPEC > ; # [doc = "Control 0"]
pub mod ctl0 { # [doc = "Register `CTL0` reader"]
pub type R = crate :: R < CTL0_SPEC > ; # [doc = "Register `CTL0` writer"]
pub type W = crate :: W < CTL0_SPEC > ; # [doc = "Field `CTL0_ENABLE` reader - This bit enables the VREF module."]
pub type CTL0_ENABLE_R = crate :: BitReader < CTL0_ENABLE_A > ; # [doc = "This bit enables the VREF module.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_ENABLE_A { # [doc = "0: DISABLE"]
CTL0_ENABLE_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL0_ENABLE_ENABLE = 1 , } impl From < CTL0_ENABLE_A > for bool { # [inline (always)]
fn from (variant : CTL0_ENABLE_A) -> Self { variant as u8 != 0 } } impl CTL0_ENABLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_ENABLE_A { match self . bits { false => CTL0_ENABLE_A :: CTL0_ENABLE_DISABLE , true => CTL0_ENABLE_A :: CTL0_ENABLE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl0_enable_disable (& self) -> bool { * self == CTL0_ENABLE_A :: CTL0_ENABLE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl0_enable_enable (& self) -> bool { * self == CTL0_ENABLE_A :: CTL0_ENABLE_ENABLE } } # [doc = "Field `CTL0_ENABLE` writer - This bit enables the VREF module."]
pub type CTL0_ENABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_ENABLE_A > ; impl < 'a , REG , const O : u8 > CTL0_ENABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl0_enable_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_ENABLE_A :: CTL0_ENABLE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl0_enable_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_ENABLE_A :: CTL0_ENABLE_ENABLE) } } # [doc = "Field `CTL0_ENABLEBIAS` reader - This bit enables the VREF Bias."]
pub type CTL0_ENABLEBIAS_R = crate :: BitReader < CTL0_ENABLEBIAS_A > ; # [doc = "This bit enables the VREF Bias.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_ENABLEBIAS_A { # [doc = "0: DISABLE"]
CTL0_ENABLEBIAS_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL0_ENABLEBIAS_ENABLE = 1 , } impl From < CTL0_ENABLEBIAS_A > for bool { # [inline (always)]
fn from (variant : CTL0_ENABLEBIAS_A) -> Self { variant as u8 != 0 } } impl CTL0_ENABLEBIAS_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_ENABLEBIAS_A { match self . bits { false => CTL0_ENABLEBIAS_A :: CTL0_ENABLEBIAS_DISABLE , true => CTL0_ENABLEBIAS_A :: CTL0_ENABLEBIAS_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl0_enablebias_disable (& self) -> bool { * self == CTL0_ENABLEBIAS_A :: CTL0_ENABLEBIAS_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl0_enablebias_enable (& self) -> bool { * self == CTL0_ENABLEBIAS_A :: CTL0_ENABLEBIAS_ENABLE } } # [doc = "Field `CTL0_ENABLEBIAS` writer - This bit enables the VREF Bias."]
pub type CTL0_ENABLEBIAS_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_ENABLEBIAS_A > ; impl < 'a , REG , const O : u8 > CTL0_ENABLEBIAS_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl0_enablebias_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_ENABLEBIAS_A :: CTL0_ENABLEBIAS_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl0_enablebias_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_ENABLEBIAS_A :: CTL0_ENABLEBIAS_ENABLE) } } # [doc = "Field `CTL0_IBPROG` reader - There bits configure current bias."]
pub type CTL0_IBPROG_R = crate :: FieldReader < CTL0_IBPROG_A > ; # [doc = "There bits configure current bias.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTL0_IBPROG_A { # [doc = "0: NOMIBIAS"]
CTL0_IBPROG_NOMIBIAS = 0 , # [doc = "1: IBPROG01"]
CTL0_IBPROG_IBPROG01 = 1 , # [doc = "2: IBPROG10"]
CTL0_IBPROG_IBPROG10 = 2 , # [doc = "3: IBPROG11"]
CTL0_IBPROG_IBPROG11 = 3 , } impl From < CTL0_IBPROG_A > for u8 { # [inline (always)]
fn from (variant : CTL0_IBPROG_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTL0_IBPROG_A { type Ux = u8 ; } impl CTL0_IBPROG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_IBPROG_A { match self . bits { 0 => CTL0_IBPROG_A :: CTL0_IBPROG_NOMIBIAS , 1 => CTL0_IBPROG_A :: CTL0_IBPROG_IBPROG01 , 2 => CTL0_IBPROG_A :: CTL0_IBPROG_IBPROG10 , 3 => CTL0_IBPROG_A :: CTL0_IBPROG_IBPROG11 , _ => unreachable ! () , } } # [doc = "NOMIBIAS"]
# [inline (always)]
pub fn is_ctl0_ibprog_nomibias (& self) -> bool { * self == CTL0_IBPROG_A :: CTL0_IBPROG_NOMIBIAS } # [doc = "IBPROG01"]
# [inline (always)]
pub fn is_ctl0_ibprog_ibprog01 (& self) -> bool { * self == CTL0_IBPROG_A :: CTL0_IBPROG_IBPROG01 } # [doc = "IBPROG10"]
# [inline (always)]
pub fn is_ctl0_ibprog_ibprog10 (& self) -> bool { * self == CTL0_IBPROG_A :: CTL0_IBPROG_IBPROG10 } # [doc = "IBPROG11"]
# [inline (always)]
pub fn is_ctl0_ibprog_ibprog11 (& self) -> bool { * self == CTL0_IBPROG_A :: CTL0_IBPROG_IBPROG11 } } # [doc = "Field `CTL0_IBPROG` writer - There bits configure current bias."]
pub type CTL0_IBPROG_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , CTL0_IBPROG_A > ; impl < 'a , REG , const O : u8 > CTL0_IBPROG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "NOMIBIAS"]
# [inline (always)]
pub fn ctl0_ibprog_nomibias (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_IBPROG_A :: CTL0_IBPROG_NOMIBIAS) } # [doc = "IBPROG01"]
# [inline (always)]
pub fn ctl0_ibprog_ibprog01 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_IBPROG_A :: CTL0_IBPROG_IBPROG01) } # [doc = "IBPROG10"]
# [inline (always)]
pub fn ctl0_ibprog_ibprog10 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_IBPROG_A :: CTL0_IBPROG_IBPROG10) } # [doc = "IBPROG11"]
# [inline (always)]
pub fn ctl0_ibprog_ibprog11 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_IBPROG_A :: CTL0_IBPROG_IBPROG11) } } # [doc = "Field `CTL0_BUFCONFIG` reader - These bits configure output buffer."]
pub type CTL0_BUFCONFIG_R = crate :: BitReader < CTL0_BUFCONFIG_A > ; # [doc = "These bits configure output buffer.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_BUFCONFIG_A { # [doc = "0: HV"]
CTL0_BUFCONFIG_OUTPUT2P5V = 0 , # [doc = "1: LV"]
CTL0_BUFCONFIG_OUTPUT1P4V = 1 , } impl From < CTL0_BUFCONFIG_A > for bool { # [inline (always)]
fn from (variant : CTL0_BUFCONFIG_A) -> Self { variant as u8 != 0 } } impl CTL0_BUFCONFIG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_BUFCONFIG_A { match self . bits { false => CTL0_BUFCONFIG_A :: CTL0_BUFCONFIG_OUTPUT2P5V , true => CTL0_BUFCONFIG_A :: CTL0_BUFCONFIG_OUTPUT1P4V , } } # [doc = "HV"]
# [inline (always)]
pub fn is_ctl0_bufconfig_output2p5v (& self) -> bool { * self == CTL0_BUFCONFIG_A :: CTL0_BUFCONFIG_OUTPUT2P5V } # [doc = "LV"]
# [inline (always)]
pub fn is_ctl0_bufconfig_output1p4v (& self) -> bool { * self == CTL0_BUFCONFIG_A :: CTL0_BUFCONFIG_OUTPUT1P4V } } # [doc = "Field `CTL0_BUFCONFIG` writer - These bits configure output buffer."]
pub type CTL0_BUFCONFIG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_BUFCONFIG_A > ; impl < 'a , REG , const O : u8 > CTL0_BUFCONFIG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "HV"]
# [inline (always)]
pub fn ctl0_bufconfig_output2p5v (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_BUFCONFIG_A :: CTL0_BUFCONFIG_OUTPUT2P5V) } # [doc = "LV"]
# [inline (always)]
pub fn ctl0_bufconfig_output1p4v (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_BUFCONFIG_A :: CTL0_BUFCONFIG_OUTPUT1P4V) } } # [doc = "Field `CTL0_SHMODE` reader - This bit enable sample and hold mode"]
pub type CTL0_SHMODE_R = crate :: BitReader < CTL0_SHMODE_A > ; # [doc = "This bit enable sample and hold mode\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_SHMODE_A { # [doc = "0: DISABLE"]
CTL0_SHMODE_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL0_SHMODE_ENABLE = 1 , } impl From < CTL0_SHMODE_A > for bool { # [inline (always)]
fn from (variant : CTL0_SHMODE_A) -> Self { variant as u8 != 0 } } impl CTL0_SHMODE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_SHMODE_A { match self . bits { false => CTL0_SHMODE_A :: CTL0_SHMODE_DISABLE , true => CTL0_SHMODE_A :: CTL0_SHMODE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl0_shmode_disable (& self) -> bool { * self == CTL0_SHMODE_A :: CTL0_SHMODE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl0_shmode_enable (& self) -> bool { * self == CTL0_SHMODE_A :: CTL0_SHMODE_ENABLE } } # [doc = "Field `CTL0_SHMODE` writer - This bit enable sample and hold mode"]
pub type CTL0_SHMODE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_SHMODE_A > ; impl < 'a , REG , const O : u8 > CTL0_SHMODE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl0_shmode_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_SHMODE_A :: CTL0_SHMODE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl0_shmode_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_SHMODE_A :: CTL0_SHMODE_ENABLE) } } # [doc = "Field `CTL0_SPARE` reader - These bits are reserved"]
pub type CTL0_SPARE_R = crate :: FieldReader ; # [doc = "Field `CTL0_SPARE` writer - These bits are reserved"]
pub type CTL0_SPARE_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 4 , O > ; impl R { # [doc = "Bit 0 - This bit enables the VREF module."]
# [inline (always)]
pub fn ctl0_enable (& self) -> CTL0_ENABLE_R { CTL0_ENABLE_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - This bit enables the VREF Bias."]
# [inline (always)]
pub fn ctl0_enablebias (& self) -> CTL0_ENABLEBIAS_R { CTL0_ENABLEBIAS_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bits 2:3 - There bits configure current bias."]
# [inline (always)]
pub fn ctl0_ibprog (& self) -> CTL0_IBPROG_R { CTL0_IBPROG_R :: new (((self . bits >> 2) & 3) as u8) } # [doc = "Bit 7 - These bits configure output buffer."]
# [inline (always)]
pub fn ctl0_bufconfig (& self) -> CTL0_BUFCONFIG_R { CTL0_BUFCONFIG_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - This bit enable sample and hold mode"]
# [inline (always)]
pub fn ctl0_shmode (& self) -> CTL0_SHMODE_R { CTL0_SHMODE_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bits 9:12 - These bits are reserved"]
# [inline (always)]
pub fn ctl0_spare (& self) -> CTL0_SPARE_R { CTL0_SPARE_R :: new (((self . bits >> 9) & 0x0f) as u8) } } impl W { # [doc = "Bit 0 - This bit enables the VREF module."]
# [inline (always)]
# [must_use]
pub fn ctl0_enable (& mut self) -> CTL0_ENABLE_W < CTL0_SPEC , 0 > { CTL0_ENABLE_W :: new (self) } # [doc = "Bit 1 - This bit enables the VREF Bias."]
# [inline (always)]
# [must_use]
pub fn ctl0_enablebias (& mut self) -> CTL0_ENABLEBIAS_W < CTL0_SPEC , 1 > { CTL0_ENABLEBIAS_W :: new (self) } # [doc = "Bits 2:3 - There bits configure current bias."]
# [inline (always)]
# [must_use]
pub fn ctl0_ibprog (& mut self) -> CTL0_IBPROG_W < CTL0_SPEC , 2 > { CTL0_IBPROG_W :: new (self) } # [doc = "Bit 7 - These bits configure output buffer."]
# [inline (always)]
# [must_use]
pub fn ctl0_bufconfig (& mut self) -> CTL0_BUFCONFIG_W < CTL0_SPEC , 7 > { CTL0_BUFCONFIG_W :: new (self) } # [doc = "Bit 8 - This bit enable sample and hold mode"]
# [inline (always)]
# [must_use]
pub fn ctl0_shmode (& mut self) -> CTL0_SHMODE_W < CTL0_SPEC , 8 > { CTL0_SHMODE_W :: new (self) } # [doc = "Bits 9:12 - These bits are reserved"]
# [inline (always)]
# [must_use]
pub fn ctl0_spare (& mut self) -> CTL0_SPARE_W < CTL0_SPEC , 9 > { CTL0_SPARE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Control 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl0::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTL0_SPEC ; impl crate :: RegisterSpec for CTL0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ctl0::R`](R) reader structure"]
impl crate :: Readable for CTL0_SPEC { } # [doc = "`write(|w| ..)` method takes [`ctl0::W`](W) writer structure"]
impl crate :: Writable for CTL0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTL0 to value 0"]
impl crate :: Resettable for CTL0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTL1 (rw) register accessor: Control 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctl1`]
module"]
pub type CTL1 = crate :: Reg < ctl1 :: CTL1_SPEC > ; # [doc = "Control 1"]
pub mod ctl1 { # [doc = "Register `CTL1` reader"]
pub type R = crate :: R < CTL1_SPEC > ; # [doc = "Register `CTL1` writer"]
pub type W = crate :: W < CTL1_SPEC > ; # [doc = "Field `CTL1_READY` reader - These bits defines status of VREF"]
pub type CTL1_READY_R = crate :: BitReader < CTL1_READY_A > ; # [doc = "These bits defines status of VREF\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL1_READY_A { # [doc = "0: NOTRDY"]
CTL1_READY_NOTRDY = 0 , # [doc = "1: RDY"]
CTL1_READY_RDY = 1 , } impl From < CTL1_READY_A > for bool { # [inline (always)]
fn from (variant : CTL1_READY_A) -> Self { variant as u8 != 0 } } impl CTL1_READY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL1_READY_A { match self . bits { false => CTL1_READY_A :: CTL1_READY_NOTRDY , true => CTL1_READY_A :: CTL1_READY_RDY , } } # [doc = "NOTRDY"]
# [inline (always)]
pub fn is_ctl1_ready_notrdy (& self) -> bool { * self == CTL1_READY_A :: CTL1_READY_NOTRDY } # [doc = "RDY"]
# [inline (always)]
pub fn is_ctl1_ready_rdy (& self) -> bool { * self == CTL1_READY_A :: CTL1_READY_RDY } } # [doc = "Field `CTL1_VREFLOSEL` reader - This bit select VREFLO pin"]
pub type CTL1_VREFLOSEL_R = crate :: BitReader ; # [doc = "Field `CTL1_VREFLOSEL` writer - This bit select VREFLO pin"]
pub type CTL1_VREFLOSEL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O > ; impl R { # [doc = "Bit 0 - These bits defines status of VREF"]
# [inline (always)]
pub fn ctl1_ready (& self) -> CTL1_READY_R { CTL1_READY_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - This bit select VREFLO pin"]
# [inline (always)]
pub fn ctl1_vreflosel (& self) -> CTL1_VREFLOSEL_R { CTL1_VREFLOSEL_R :: new (((self . bits >> 1) & 1) != 0) } } impl W { # [doc = "Bit 1 - This bit select VREFLO pin"]
# [inline (always)]
# [must_use]
pub fn ctl1_vreflosel (& mut self) -> CTL1_VREFLOSEL_W < CTL1_SPEC , 1 > { CTL1_VREFLOSEL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Control 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl1::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTL1_SPEC ; impl crate :: RegisterSpec for CTL1_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ctl1::R`](R) reader structure"]
impl crate :: Readable for CTL1_SPEC { } # [doc = "`write(|w| ..)` method takes [`ctl1::W`](W) writer structure"]
impl crate :: Writable for CTL1_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTL1 to value 0"]
impl crate :: Resettable for CTL1_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTL2 (rw) register accessor: Control 2\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl2::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl2::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctl2`]
module"]
pub type CTL2 = crate :: Reg < ctl2 :: CTL2_SPEC > ; # [doc = "Control 2"]
pub mod ctl2 { # [doc = "Register `CTL2` reader"]
pub type R = crate :: R < CTL2_SPEC > ; # [doc = "Register `CTL2` writer"]
pub type W = crate :: W < CTL2_SPEC > ; # [doc = "Field `CTL2_SHCYCLE` reader - Sample and hold cycle count"]
pub type CTL2_SHCYCLE_R = crate :: FieldReader < u16 > ; # [doc = "Field `CTL2_SHCYCLE` writer - Sample and hold cycle count"]
pub type CTL2_SHCYCLE_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 16 , O , u16 > ; # [doc = "Field `CTL2_HCYCLE` reader - Hold cycle count"]
pub type CTL2_HCYCLE_R = crate :: FieldReader < u16 > ; # [doc = "Field `CTL2_HCYCLE` writer - Hold cycle count"]
pub type CTL2_HCYCLE_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 16 , O , u16 > ; impl R { # [doc = "Bits 0:15 - Sample and hold cycle count"]
# [inline (always)]
pub fn ctl2_shcycle (& self) -> CTL2_SHCYCLE_R { CTL2_SHCYCLE_R :: new ((self . bits & 0xffff) as u16) } # [doc = "Bits 16:31 - Hold cycle count"]
# [inline (always)]
pub fn ctl2_hcycle (& self) -> CTL2_HCYCLE_R { CTL2_HCYCLE_R :: new (((self . bits >> 16) & 0xffff) as u16) } } impl W { # [doc = "Bits 0:15 - Sample and hold cycle count"]
# [inline (always)]
# [must_use]
pub fn ctl2_shcycle (& mut self) -> CTL2_SHCYCLE_W < CTL2_SPEC , 0 > { CTL2_SHCYCLE_W :: new (self) } # [doc = "Bits 16:31 - Hold cycle count"]
# [inline (always)]
# [must_use]
pub fn ctl2_hcycle (& mut self) -> CTL2_HCYCLE_W < CTL2_SPEC , 16 > { CTL2_HCYCLE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Control 2\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl2::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl2::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTL2_SPEC ; impl crate :: RegisterSpec for CTL2_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ctl2::R`](R) reader structure"]
impl crate :: Readable for CTL2_SPEC { } # [doc = "`write(|w| ..)` method takes [`ctl2::W`](W) writer structure"]
impl crate :: Writable for CTL2_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTL2 to value 0"]
impl crate :: Resettable for CTL2_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } } # [doc = "PERIPHERALREGION"]
pub struct CRC { _marker : PhantomData < * const () > } unsafe impl Send for CRC { } impl CRC { # [doc = r"Pointer to the register block"]
pub const PTR : * const crc :: RegisterBlock = 0x4044_0000 as * const _ ; # [doc = r"Return the pointer to the register block"]
# [inline (always)]
pub const fn ptr () -> * const crc :: RegisterBlock { Self :: PTR } # [doc = r" Steal an instance of this peripheral"]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Ensure that the new instance of the peripheral cannot be used in a way"]
# [doc = r" that may race with any existing instances, for example by only"]
# [doc = r" accessing read-only or write-only registers, or by consuming the"]
# [doc = r" original peripheral and using critical sections to coordinate"]
# [doc = r" access between multiple new instances."]
# [doc = r""]
# [doc = r" Additionally, other software such as HALs may rely on only one"]
# [doc = r" peripheral instance existing to ensure memory safety; ensure"]
# [doc = r" no stolen instances are passed to such software."]
pub unsafe fn steal () -> Self { Self { _marker : PhantomData } } } impl Deref for CRC { type Target = crc :: RegisterBlock ; # [inline (always)]
fn deref (& self) -> & Self :: Target { unsafe { & * Self :: PTR } } } impl core :: fmt :: Debug for CRC { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("CRC") . finish () } } # [doc = "PERIPHERALREGION"]
pub mod crc { # [doc = r"Register block"]
# [repr (C)]
pub struct RegisterBlock { _reserved0 : [u8 ; 0x0800]
, # [doc = "0x800 - Power enable"]
pub pwren : PWREN , # [doc = "0x804 - Reset Control"]
pub rstctl : RSTCTL , _reserved2 : [u8 ; 0x0c]
, # [doc = "0x814 - Status Register"]
pub stat : STAT , _reserved3 : [u8 ; 0x08e4]
, # [doc = "0x10fc - Module Description"]
pub desc : DESC , # [doc = "0x1100 - CRC Control Register"]
pub crcctrl : CRCCTRL , # [doc = "0x1104 - CRC Seed Register"]
pub crcseed : CRCSEED , # [doc = "0x1108 - CRC Input Data Register"]
pub crcin : CRCIN , # [doc = "0x110c - CRC Output Result Register"]
pub crcout : CRCOUT , _reserved8 : [u8 ; 0x06f0]
, # [doc = "0x1800..0x2000 - CRC Input Data Array Register"]
pub crcin_idx : [CRCIN_IDX ; 512]
, } # [doc = "PWREN (rw) register accessor: Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pwren`]
module"]
pub type PWREN = crate :: Reg < pwren :: PWREN_SPEC > ; # [doc = "Power enable"]
pub mod pwren { # [doc = "Register `PWREN` reader"]
pub type R = crate :: R < PWREN_SPEC > ; # [doc = "Register `PWREN` writer"]
pub type W = crate :: W < PWREN_SPEC > ; # [doc = "Field `PWREN_ENABLE` reader - Enable the power"]
pub type PWREN_ENABLE_R = crate :: BitReader < PWREN_ENABLE_A > ; # [doc = "Enable the power\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PWREN_ENABLE_A { # [doc = "0: DISABLE"]
PWREN_ENABLE_DISABLE = 0 , # [doc = "1: ENABLE"]
PWREN_ENABLE_ENABLE = 1 , } impl From < PWREN_ENABLE_A > for bool { # [inline (always)]
fn from (variant : PWREN_ENABLE_A) -> Self { variant as u8 != 0 } } impl PWREN_ENABLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PWREN_ENABLE_A { match self . bits { false => PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE , true => PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_pwren_enable_disable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_pwren_enable_enable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE } } # [doc = "Field `PWREN_ENABLE` writer - Enable the power"]
pub type PWREN_ENABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PWREN_ENABLE_A > ; impl < 'a , REG , const O : u8 > PWREN_ENABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn pwren_enable_disable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn pwren_enable_enable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE) } } # [doc = "KEY to allow Power State Change\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum PWREN_KEY_AW { # [doc = "38: _TO_UNLOCK_W_"]
PWREN_KEY_UNLOCK_W = 38 , } impl From < PWREN_KEY_AW > for u8 { # [inline (always)]
fn from (variant : PWREN_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for PWREN_KEY_AW { type Ux = u8 ; } # [doc = "Field `PWREN_KEY` writer - KEY to allow Power State Change"]
pub type PWREN_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , PWREN_KEY_AW > ; impl < 'a , REG , const O : u8 > PWREN_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn pwren_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_KEY_AW :: PWREN_KEY_UNLOCK_W) } } impl R { # [doc = "Bit 0 - Enable the power"]
# [inline (always)]
pub fn pwren_enable (& self) -> PWREN_ENABLE_R { PWREN_ENABLE_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - Enable the power"]
# [inline (always)]
# [must_use]
pub fn pwren_enable (& mut self) -> PWREN_ENABLE_W < PWREN_SPEC , 0 > { PWREN_ENABLE_W :: new (self) } # [doc = "Bits 24:31 - KEY to allow Power State Change"]
# [inline (always)]
# [must_use]
pub fn pwren_key (& mut self) -> PWREN_KEY_W < PWREN_SPEC , 24 > { PWREN_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PWREN_SPEC ; impl crate :: RegisterSpec for PWREN_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pwren::R`](R) reader structure"]
impl crate :: Readable for PWREN_SPEC { } # [doc = "`write(|w| ..)` method takes [`pwren::W`](W) writer structure"]
impl crate :: Writable for PWREN_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PWREN to value 0"]
impl crate :: Resettable for PWREN_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RSTCTL (w) register accessor: Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rstctl`]
module"]
pub type RSTCTL = crate :: Reg < rstctl :: RSTCTL_SPEC > ; # [doc = "Reset Control"]
pub mod rstctl { # [doc = "Register `RSTCTL` writer"]
pub type W = crate :: W < RSTCTL_SPEC > ; # [doc = "Assert reset to the peripheral\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETASSERT_AW { # [doc = "0: NOP"]
RSTCTL_RESETASSERT_NOP = 0 , # [doc = "1: ASSERT"]
RSTCTL_RESETASSERT_ASSERT = 1 , } impl From < RSTCTL_RESETASSERT_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETASSERT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETASSERT` writer - Assert reset to the peripheral"]
pub type RSTCTL_RESETASSERT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETASSERT_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETASSERT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetassert_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_NOP) } # [doc = "ASSERT"]
# [inline (always)]
pub fn rstctl_resetassert_assert (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_ASSERT) } } # [doc = "Clear the RESETSTKY bit in the STAT register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETSTKYCLR_AW { # [doc = "0: NOP"]
RSTCTL_RESETSTKYCLR_NOP = 0 , # [doc = "1: CLR"]
RSTCTL_RESETSTKYCLR_CLR = 1 , } impl From < RSTCTL_RESETSTKYCLR_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETSTKYCLR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETSTKYCLR` writer - Clear the RESETSTKY bit in the STAT register"]
pub type RSTCTL_RESETSTKYCLR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETSTKYCLR_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETSTKYCLR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetstkyclr_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_NOP) } # [doc = "CLR"]
# [inline (always)]
pub fn rstctl_resetstkyclr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_CLR) } } # [doc = "Unlock key\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum RSTCTL_KEY_AW { # [doc = "177: _TO_UNLOCK_W_"]
RSTCTL_KEY_UNLOCK_W = 177 , } impl From < RSTCTL_KEY_AW > for u8 { # [inline (always)]
fn from (variant : RSTCTL_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for RSTCTL_KEY_AW { type Ux = u8 ; } # [doc = "Field `RSTCTL_KEY` writer - Unlock key"]
pub type RSTCTL_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , RSTCTL_KEY_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn rstctl_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_KEY_AW :: RSTCTL_KEY_UNLOCK_W) } } impl W { # [doc = "Bit 0 - Assert reset to the peripheral"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetassert (& mut self) -> RSTCTL_RESETASSERT_W < RSTCTL_SPEC , 0 > { RSTCTL_RESETASSERT_W :: new (self) } # [doc = "Bit 1 - Clear the RESETSTKY bit in the STAT register"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetstkyclr (& mut self) -> RSTCTL_RESETSTKYCLR_W < RSTCTL_SPEC , 1 > { RSTCTL_RESETSTKYCLR_W :: new (self) } # [doc = "Bits 24:31 - Unlock key"]
# [inline (always)]
# [must_use]
pub fn rstctl_key (& mut self) -> RSTCTL_KEY_W < RSTCTL_SPEC , 24 > { RSTCTL_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RSTCTL_SPEC ; impl crate :: RegisterSpec for RSTCTL_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`rstctl::W`](W) writer structure"]
impl crate :: Writable for RSTCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets RSTCTL to value 0"]
impl crate :: Resettable for RSTCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "STAT (r) register accessor: Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@stat`]
module"]
pub type STAT = crate :: Reg < stat :: STAT_SPEC > ; # [doc = "Status Register"]
pub mod stat { # [doc = "Register `STAT` reader"]
pub type R = crate :: R < STAT_SPEC > ; # [doc = "Field `STAT_RESETSTKY` reader - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
pub type STAT_RESETSTKY_R = crate :: BitReader < STAT_RESETSTKY_A > ; # [doc = "This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_RESETSTKY_A { # [doc = "0: NORES"]
STAT_RESETSTKY_NORES = 0 , # [doc = "1: RESET"]
STAT_RESETSTKY_RESET = 1 , } impl From < STAT_RESETSTKY_A > for bool { # [inline (always)]
fn from (variant : STAT_RESETSTKY_A) -> Self { variant as u8 != 0 } } impl STAT_RESETSTKY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_RESETSTKY_A { match self . bits { false => STAT_RESETSTKY_A :: STAT_RESETSTKY_NORES , true => STAT_RESETSTKY_A :: STAT_RESETSTKY_RESET , } } # [doc = "NORES"]
# [inline (always)]
pub fn is_stat_resetstky_nores (& self) -> bool { * self == STAT_RESETSTKY_A :: STAT_RESETSTKY_NORES } # [doc = "RESET"]
# [inline (always)]
pub fn is_stat_resetstky_reset (& self) -> bool { * self == STAT_RESETSTKY_A :: STAT_RESETSTKY_RESET } } impl R { # [doc = "Bit 16 - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
# [inline (always)]
pub fn stat_resetstky (& self) -> STAT_RESETSTKY_R { STAT_RESETSTKY_R :: new (((self . bits >> 16) & 1) != 0) } } # [doc = "Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct STAT_SPEC ; impl crate :: RegisterSpec for STAT_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`stat::R`](R) reader structure"]
impl crate :: Readable for STAT_SPEC { } # [doc = "`reset()` method sets STAT to value 0"]
impl crate :: Resettable for STAT_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DESC (r) register accessor: Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@desc`]
module"]
pub type DESC = crate :: Reg < desc :: DESC_SPEC > ; # [doc = "Module Description"]
pub mod desc { # [doc = "Register `DESC` reader"]
pub type R = crate :: R < DESC_SPEC > ; # [doc = "Field `DESC_MINREV` reader - Minor rev of the IP"]
pub type DESC_MINREV_R = crate :: FieldReader ; # [doc = "Field `DESC_MAJREV` reader - Major rev of the IP"]
pub type DESC_MAJREV_R = crate :: FieldReader ; # [doc = "Field `DESC_INSTNUM` reader - Instance Number within the device. This will be a parameter to the RTL for modules that can have multiple instances"]
pub type DESC_INSTNUM_R = crate :: FieldReader ; # [doc = "Field `DESC_FEATUREVER` reader - Feature Set for the module *instance*"]
pub type DESC_FEATUREVER_R = crate :: FieldReader ; # [doc = "Field `DESC_MODULEID` reader - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
pub type DESC_MODULEID_R = crate :: FieldReader < u16 > ; impl R { # [doc = "Bits 0:3 - Minor rev of the IP"]
# [inline (always)]
pub fn desc_minrev (& self) -> DESC_MINREV_R { DESC_MINREV_R :: new ((self . bits & 0x0f) as u8) } # [doc = "Bits 4:7 - Major rev of the IP"]
# [inline (always)]
pub fn desc_majrev (& self) -> DESC_MAJREV_R { DESC_MAJREV_R :: new (((self . bits >> 4) & 0x0f) as u8) } # [doc = "Bits 8:11 - Instance Number within the device. This will be a parameter to the RTL for modules that can have multiple instances"]
# [inline (always)]
pub fn desc_instnum (& self) -> DESC_INSTNUM_R { DESC_INSTNUM_R :: new (((self . bits >> 8) & 0x0f) as u8) } # [doc = "Bits 12:15 - Feature Set for the module *instance*"]
# [inline (always)]
pub fn desc_featurever (& self) -> DESC_FEATUREVER_R { DESC_FEATUREVER_R :: new (((self . bits >> 12) & 0x0f) as u8) } # [doc = "Bits 16:31 - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
# [inline (always)]
pub fn desc_moduleid (& self) -> DESC_MODULEID_R { DESC_MODULEID_R :: new (((self . bits >> 16) & 0xffff) as u16) } } # [doc = "Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DESC_SPEC ; impl crate :: RegisterSpec for DESC_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`desc::R`](R) reader structure"]
impl crate :: Readable for DESC_SPEC { } # [doc = "`reset()` method sets DESC to value 0"]
impl crate :: Resettable for DESC_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CRCCTRL (rw) register accessor: CRC Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`crcctrl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`crcctrl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@crcctrl`]
module"]
pub type CRCCTRL = crate :: Reg < crcctrl :: CRCCTRL_SPEC > ; # [doc = "CRC Control Register"]
pub mod crcctrl { # [doc = "Register `CRCCTRL` reader"]
pub type R = crate :: R < CRCCTRL_SPEC > ; # [doc = "Register `CRCCTRL` writer"]
pub type W = crate :: W < CRCCTRL_SPEC > ; # [doc = "Field `CRCCTRL_POLYSIZE` reader - This bit indicates which CRC calculation is performed by the generator."]
pub type CRCCTRL_POLYSIZE_R = crate :: BitReader < CRCCTRL_POLYSIZE_A > ; # [doc = "This bit indicates which CRC calculation is performed by the generator.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CRCCTRL_POLYSIZE_A { # [doc = "0: CRC32"]
CRCCTRL_POLYSIZE_CRC32 = 0 , # [doc = "1: CRC16"]
CRCCTRL_POLYSIZE_CRC16 = 1 , } impl From < CRCCTRL_POLYSIZE_A > for bool { # [inline (always)]
fn from (variant : CRCCTRL_POLYSIZE_A) -> Self { variant as u8 != 0 } } impl CRCCTRL_POLYSIZE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CRCCTRL_POLYSIZE_A { match self . bits { false => CRCCTRL_POLYSIZE_A :: CRCCTRL_POLYSIZE_CRC32 , true => CRCCTRL_POLYSIZE_A :: CRCCTRL_POLYSIZE_CRC16 , } } # [doc = "CRC32"]
# [inline (always)]
pub fn is_crcctrl_polysize_crc32 (& self) -> bool { * self == CRCCTRL_POLYSIZE_A :: CRCCTRL_POLYSIZE_CRC32 } # [doc = "CRC16"]
# [inline (always)]
pub fn is_crcctrl_polysize_crc16 (& self) -> bool { * self == CRCCTRL_POLYSIZE_A :: CRCCTRL_POLYSIZE_CRC16 } } # [doc = "Field `CRCCTRL_POLYSIZE` writer - This bit indicates which CRC calculation is performed by the generator."]
pub type CRCCTRL_POLYSIZE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CRCCTRL_POLYSIZE_A > ; impl < 'a , REG , const O : u8 > CRCCTRL_POLYSIZE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CRC32"]
# [inline (always)]
pub fn crcctrl_polysize_crc32 (self) -> & 'a mut crate :: W < REG > { self . variant (CRCCTRL_POLYSIZE_A :: CRCCTRL_POLYSIZE_CRC32) } # [doc = "CRC16"]
# [inline (always)]
pub fn crcctrl_polysize_crc16 (self) -> & 'a mut crate :: W < REG > { self . variant (CRCCTRL_POLYSIZE_A :: CRCCTRL_POLYSIZE_CRC16) } } # [doc = "Field `CRCCTRL_BITREVERSE` reader - CRC Bit Input and output Reverse. This bit indictes that the bit order of each input byte used for the CRC calculation is reversed before it is passed to the generator, and that the bit order of the calculated CRC is be reversed when read from CRC_RESULT."]
pub type CRCCTRL_BITREVERSE_R = crate :: BitReader < CRCCTRL_BITREVERSE_A > ; # [doc = "CRC Bit Input and output Reverse. This bit indictes that the bit order of each input byte used for the CRC calculation is reversed before it is passed to the generator, and that the bit order of the calculated CRC is be reversed when read from CRC_RESULT.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CRCCTRL_BITREVERSE_A { # [doc = "0: NOT_REVERSED"]
CRCCTRL_BITREVERSE_NOT_REVERSED = 0 , # [doc = "1: REVERSED"]
CRCCTRL_BITREVERSE_REVERSED = 1 , } impl From < CRCCTRL_BITREVERSE_A > for bool { # [inline (always)]
fn from (variant : CRCCTRL_BITREVERSE_A) -> Self { variant as u8 != 0 } } impl CRCCTRL_BITREVERSE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CRCCTRL_BITREVERSE_A { match self . bits { false => CRCCTRL_BITREVERSE_A :: CRCCTRL_BITREVERSE_NOT_REVERSED , true => CRCCTRL_BITREVERSE_A :: CRCCTRL_BITREVERSE_REVERSED , } } # [doc = "NOT_REVERSED"]
# [inline (always)]
pub fn is_crcctrl_bitreverse_not_reversed (& self) -> bool { * self == CRCCTRL_BITREVERSE_A :: CRCCTRL_BITREVERSE_NOT_REVERSED } # [doc = "REVERSED"]
# [inline (always)]
pub fn is_crcctrl_bitreverse_reversed (& self) -> bool { * self == CRCCTRL_BITREVERSE_A :: CRCCTRL_BITREVERSE_REVERSED } } # [doc = "Field `CRCCTRL_BITREVERSE` writer - CRC Bit Input and output Reverse. This bit indictes that the bit order of each input byte used for the CRC calculation is reversed before it is passed to the generator, and that the bit order of the calculated CRC is be reversed when read from CRC_RESULT."]
pub type CRCCTRL_BITREVERSE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CRCCTRL_BITREVERSE_A > ; impl < 'a , REG , const O : u8 > CRCCTRL_BITREVERSE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOT_REVERSED"]
# [inline (always)]
pub fn crcctrl_bitreverse_not_reversed (self) -> & 'a mut crate :: W < REG > { self . variant (CRCCTRL_BITREVERSE_A :: CRCCTRL_BITREVERSE_NOT_REVERSED) } # [doc = "REVERSED"]
# [inline (always)]
pub fn crcctrl_bitreverse_reversed (self) -> & 'a mut crate :: W < REG > { self . variant (CRCCTRL_BITREVERSE_A :: CRCCTRL_BITREVERSE_REVERSED) } } # [doc = "Field `CRCCTRL_INPUT_ENDIANNESS` reader - CRC Endian. This bit indicates the byte order within a word or half word of input data."]
pub type CRCCTRL_INPUT_ENDIANNESS_R = crate :: BitReader < CRCCTRL_INPUT_ENDIANNESS_A > ; # [doc = "CRC Endian. This bit indicates the byte order within a word or half word of input data.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CRCCTRL_INPUT_ENDIANNESS_A { # [doc = "0: LITTLE_ENDIAN"]
CRCCTRL_INPUT_ENDIANNESS_LITTLE_ENDIAN = 0 , # [doc = "1: BIG_ENDIAN"]
CRCCTRL_INPUT_ENDIANNESS_BIG_ENDIAN = 1 , } impl From < CRCCTRL_INPUT_ENDIANNESS_A > for bool { # [inline (always)]
fn from (variant : CRCCTRL_INPUT_ENDIANNESS_A) -> Self { variant as u8 != 0 } } impl CRCCTRL_INPUT_ENDIANNESS_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CRCCTRL_INPUT_ENDIANNESS_A { match self . bits { false => CRCCTRL_INPUT_ENDIANNESS_A :: CRCCTRL_INPUT_ENDIANNESS_LITTLE_ENDIAN , true => CRCCTRL_INPUT_ENDIANNESS_A :: CRCCTRL_INPUT_ENDIANNESS_BIG_ENDIAN , } } # [doc = "LITTLE_ENDIAN"]
# [inline (always)]
pub fn is_crcctrl_input_endianness_little_endian (& self) -> bool { * self == CRCCTRL_INPUT_ENDIANNESS_A :: CRCCTRL_INPUT_ENDIANNESS_LITTLE_ENDIAN } # [doc = "BIG_ENDIAN"]
# [inline (always)]
pub fn is_crcctrl_input_endianness_big_endian (& self) -> bool { * self == CRCCTRL_INPUT_ENDIANNESS_A :: CRCCTRL_INPUT_ENDIANNESS_BIG_ENDIAN } } # [doc = "Field `CRCCTRL_INPUT_ENDIANNESS` writer - CRC Endian. This bit indicates the byte order within a word or half word of input data."]
pub type CRCCTRL_INPUT_ENDIANNESS_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CRCCTRL_INPUT_ENDIANNESS_A > ; impl < 'a , REG , const O : u8 > CRCCTRL_INPUT_ENDIANNESS_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "LITTLE_ENDIAN"]
# [inline (always)]
pub fn crcctrl_input_endianness_little_endian (self) -> & 'a mut crate :: W < REG > { self . variant (CRCCTRL_INPUT_ENDIANNESS_A :: CRCCTRL_INPUT_ENDIANNESS_LITTLE_ENDIAN) } # [doc = "BIG_ENDIAN"]
# [inline (always)]
pub fn crcctrl_input_endianness_big_endian (self) -> & 'a mut crate :: W < REG > { self . variant (CRCCTRL_INPUT_ENDIANNESS_A :: CRCCTRL_INPUT_ENDIANNESS_BIG_ENDIAN) } } # [doc = "Field `CRCCTRL_OUTPUT_BYTESWAP` reader - CRC Output Byteswap Enable. This bit controls whether the output is byte-swapped upon a read of the CRCOUT register. If CRCOUT is accessed as a half-word, and the OUTPUT_BYTESWAP is set to to 1, then the two bytes in the 16-bit access are swapped and returned. B1 is returned as B0 B0 is returned as B1 If CRCOUT is accessed as a word, and the OUTPUT_BYTESWAP is set to 1, then the four bytes in the 32-bit read are swapped. B3 is returned as B0 B2 is returned as B1 B1 is returned as B2 B0 is returned as B3 Note that if the CRC POLYSIZE is 16-bit and a 32-bit read of CRCOUT is performed with OUTPUT_BYTESWAP enabled, then the output is: MSB LSB 0x0 0x0 B0 B1 If the CRC POLYSIZE is 16-bit and a 32-bit read of CRCOUT is performed with OUTPUT_BYTESWAP disabled, then the output is: MSB LSB 0x0 0x0 B1 B0"]
pub type CRCCTRL_OUTPUT_BYTESWAP_R = crate :: BitReader < CRCCTRL_OUTPUT_BYTESWAP_A > ; # [doc = "CRC Output Byteswap Enable. This bit controls whether the output is byte-swapped upon a read of the CRCOUT register. If CRCOUT is accessed as a half-word, and the OUTPUT_BYTESWAP is set to to 1, then the two bytes in the 16-bit access are swapped and returned. B1 is returned as B0 B0 is returned as B1 If CRCOUT is accessed as a word, and the OUTPUT_BYTESWAP is set to 1, then the four bytes in the 32-bit read are swapped. B3 is returned as B0 B2 is returned as B1 B1 is returned as B2 B0 is returned as B3 Note that if the CRC POLYSIZE is 16-bit and a 32-bit read of CRCOUT is performed with OUTPUT_BYTESWAP enabled, then the output is: MSB LSB 0x0 0x0 B0 B1 If the CRC POLYSIZE is 16-bit and a 32-bit read of CRCOUT is performed with OUTPUT_BYTESWAP disabled, then the output is: MSB LSB 0x0 0x0 B1 B0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CRCCTRL_OUTPUT_BYTESWAP_A { # [doc = "0: DISABLE"]
CRCCTRL_OUTPUT_BYTESWAP_DISABLE = 0 , # [doc = "1: ENABLE"]
CRCCTRL_OUTPUT_BYTESWAP_ENABLE = 1 , } impl From < CRCCTRL_OUTPUT_BYTESWAP_A > for bool { # [inline (always)]
fn from (variant : CRCCTRL_OUTPUT_BYTESWAP_A) -> Self { variant as u8 != 0 } } impl CRCCTRL_OUTPUT_BYTESWAP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CRCCTRL_OUTPUT_BYTESWAP_A { match self . bits { false => CRCCTRL_OUTPUT_BYTESWAP_A :: CRCCTRL_OUTPUT_BYTESWAP_DISABLE , true => CRCCTRL_OUTPUT_BYTESWAP_A :: CRCCTRL_OUTPUT_BYTESWAP_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_crcctrl_output_byteswap_disable (& self) -> bool { * self == CRCCTRL_OUTPUT_BYTESWAP_A :: CRCCTRL_OUTPUT_BYTESWAP_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_crcctrl_output_byteswap_enable (& self) -> bool { * self == CRCCTRL_OUTPUT_BYTESWAP_A :: CRCCTRL_OUTPUT_BYTESWAP_ENABLE } } # [doc = "Field `CRCCTRL_OUTPUT_BYTESWAP` writer - CRC Output Byteswap Enable. This bit controls whether the output is byte-swapped upon a read of the CRCOUT register. If CRCOUT is accessed as a half-word, and the OUTPUT_BYTESWAP is set to to 1, then the two bytes in the 16-bit access are swapped and returned. B1 is returned as B0 B0 is returned as B1 If CRCOUT is accessed as a word, and the OUTPUT_BYTESWAP is set to 1, then the four bytes in the 32-bit read are swapped. B3 is returned as B0 B2 is returned as B1 B1 is returned as B2 B0 is returned as B3 Note that if the CRC POLYSIZE is 16-bit and a 32-bit read of CRCOUT is performed with OUTPUT_BYTESWAP enabled, then the output is: MSB LSB 0x0 0x0 B0 B1 If the CRC POLYSIZE is 16-bit and a 32-bit read of CRCOUT is performed with OUTPUT_BYTESWAP disabled, then the output is: MSB LSB 0x0 0x0 B1 B0"]
pub type CRCCTRL_OUTPUT_BYTESWAP_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CRCCTRL_OUTPUT_BYTESWAP_A > ; impl < 'a , REG , const O : u8 > CRCCTRL_OUTPUT_BYTESWAP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn crcctrl_output_byteswap_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CRCCTRL_OUTPUT_BYTESWAP_A :: CRCCTRL_OUTPUT_BYTESWAP_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn crcctrl_output_byteswap_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CRCCTRL_OUTPUT_BYTESWAP_A :: CRCCTRL_OUTPUT_BYTESWAP_ENABLE) } } impl R { # [doc = "Bit 0 - This bit indicates which CRC calculation is performed by the generator."]
# [inline (always)]
pub fn crcctrl_polysize (& self) -> CRCCTRL_POLYSIZE_R { CRCCTRL_POLYSIZE_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - CRC Bit Input and output Reverse. This bit indictes that the bit order of each input byte used for the CRC calculation is reversed before it is passed to the generator, and that the bit order of the calculated CRC is be reversed when read from CRC_RESULT."]
# [inline (always)]
pub fn crcctrl_bitreverse (& self) -> CRCCTRL_BITREVERSE_R { CRCCTRL_BITREVERSE_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - CRC Endian. This bit indicates the byte order within a word or half word of input data."]
# [inline (always)]
pub fn crcctrl_input_endianness (& self) -> CRCCTRL_INPUT_ENDIANNESS_R { CRCCTRL_INPUT_ENDIANNESS_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 4 - CRC Output Byteswap Enable. This bit controls whether the output is byte-swapped upon a read of the CRCOUT register. If CRCOUT is accessed as a half-word, and the OUTPUT_BYTESWAP is set to to 1, then the two bytes in the 16-bit access are swapped and returned. B1 is returned as B0 B0 is returned as B1 If CRCOUT is accessed as a word, and the OUTPUT_BYTESWAP is set to 1, then the four bytes in the 32-bit read are swapped. B3 is returned as B0 B2 is returned as B1 B1 is returned as B2 B0 is returned as B3 Note that if the CRC POLYSIZE is 16-bit and a 32-bit read of CRCOUT is performed with OUTPUT_BYTESWAP enabled, then the output is: MSB LSB 0x0 0x0 B0 B1 If the CRC POLYSIZE is 16-bit and a 32-bit read of CRCOUT is performed with OUTPUT_BYTESWAP disabled, then the output is: MSB LSB 0x0 0x0 B1 B0"]
# [inline (always)]
pub fn crcctrl_output_byteswap (& self) -> CRCCTRL_OUTPUT_BYTESWAP_R { CRCCTRL_OUTPUT_BYTESWAP_R :: new (((self . bits >> 4) & 1) != 0) } } impl W { # [doc = "Bit 0 - This bit indicates which CRC calculation is performed by the generator."]
# [inline (always)]
# [must_use]
pub fn crcctrl_polysize (& mut self) -> CRCCTRL_POLYSIZE_W < CRCCTRL_SPEC , 0 > { CRCCTRL_POLYSIZE_W :: new (self) } # [doc = "Bit 1 - CRC Bit Input and output Reverse. This bit indictes that the bit order of each input byte used for the CRC calculation is reversed before it is passed to the generator, and that the bit order of the calculated CRC is be reversed when read from CRC_RESULT."]
# [inline (always)]
# [must_use]
pub fn crcctrl_bitreverse (& mut self) -> CRCCTRL_BITREVERSE_W < CRCCTRL_SPEC , 1 > { CRCCTRL_BITREVERSE_W :: new (self) } # [doc = "Bit 2 - CRC Endian. This bit indicates the byte order within a word or half word of input data."]
# [inline (always)]
# [must_use]
pub fn crcctrl_input_endianness (& mut self) -> CRCCTRL_INPUT_ENDIANNESS_W < CRCCTRL_SPEC , 2 > { CRCCTRL_INPUT_ENDIANNESS_W :: new (self) } # [doc = "Bit 4 - CRC Output Byteswap Enable. This bit controls whether the output is byte-swapped upon a read of the CRCOUT register. If CRCOUT is accessed as a half-word, and the OUTPUT_BYTESWAP is set to to 1, then the two bytes in the 16-bit access are swapped and returned. B1 is returned as B0 B0 is returned as B1 If CRCOUT is accessed as a word, and the OUTPUT_BYTESWAP is set to 1, then the four bytes in the 32-bit read are swapped. B3 is returned as B0 B2 is returned as B1 B1 is returned as B2 B0 is returned as B3 Note that if the CRC POLYSIZE is 16-bit and a 32-bit read of CRCOUT is performed with OUTPUT_BYTESWAP enabled, then the output is: MSB LSB 0x0 0x0 B0 B1 If the CRC POLYSIZE is 16-bit and a 32-bit read of CRCOUT is performed with OUTPUT_BYTESWAP disabled, then the output is: MSB LSB 0x0 0x0 B1 B0"]
# [inline (always)]
# [must_use]
pub fn crcctrl_output_byteswap (& mut self) -> CRCCTRL_OUTPUT_BYTESWAP_W < CRCCTRL_SPEC , 4 > { CRCCTRL_OUTPUT_BYTESWAP_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "CRC Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`crcctrl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`crcctrl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CRCCTRL_SPEC ; impl crate :: RegisterSpec for CRCCTRL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`crcctrl::R`](R) reader structure"]
impl crate :: Readable for CRCCTRL_SPEC { } # [doc = "`write(|w| ..)` method takes [`crcctrl::W`](W) writer structure"]
impl crate :: Writable for CRCCTRL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CRCCTRL to value 0"]
impl crate :: Resettable for CRCCTRL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CRCSEED (w) register accessor: CRC Seed Register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`crcseed::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@crcseed`]
module"]
pub type CRCSEED = crate :: Reg < crcseed :: CRCSEED_SPEC > ; # [doc = "CRC Seed Register"]
pub mod crcseed { # [doc = "Register `CRCSEED` writer"]
pub type W = crate :: W < CRCSEED_SPEC > ; # [doc = "Field `CRCSEED_SEED` writer - Seed Data"]
pub type CRCSEED_SEED_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 32 , O , u32 > ; impl W { # [doc = "Bits 0:31 - Seed Data"]
# [inline (always)]
# [must_use]
pub fn crcseed_seed (& mut self) -> CRCSEED_SEED_W < CRCSEED_SPEC , 0 > { CRCSEED_SEED_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "CRC Seed Register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`crcseed::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CRCSEED_SPEC ; impl crate :: RegisterSpec for CRCSEED_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`crcseed::W`](W) writer structure"]
impl crate :: Writable for CRCSEED_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CRCSEED to value 0"]
impl crate :: Resettable for CRCSEED_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CRCIN (w) register accessor: CRC Input Data Register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`crcin::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@crcin`]
module"]
pub type CRCIN = crate :: Reg < crcin :: CRCIN_SPEC > ; # [doc = "CRC Input Data Register"]
pub mod crcin { # [doc = "Register `CRCIN` writer"]
pub type W = crate :: W < CRCIN_SPEC > ; # [doc = "Field `CRCIN_DATA` writer - Input Data"]
pub type CRCIN_DATA_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 32 , O , u32 > ; impl W { # [doc = "Bits 0:31 - Input Data"]
# [inline (always)]
# [must_use]
pub fn crcin_data (& mut self) -> CRCIN_DATA_W < CRCIN_SPEC , 0 > { CRCIN_DATA_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "CRC Input Data Register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`crcin::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CRCIN_SPEC ; impl crate :: RegisterSpec for CRCIN_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`crcin::W`](W) writer structure"]
impl crate :: Writable for CRCIN_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CRCIN to value 0"]
impl crate :: Resettable for CRCIN_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CRCOUT (r) register accessor: CRC Output Result Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`crcout::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@crcout`]
module"]
pub type CRCOUT = crate :: Reg < crcout :: CRCOUT_SPEC > ; # [doc = "CRC Output Result Register"]
pub mod crcout { # [doc = "Register `CRCOUT` reader"]
pub type R = crate :: R < CRCOUT_SPEC > ; # [doc = "Field `CRCOUT_RESULT` reader - Result"]
pub type CRCOUT_RESULT_R = crate :: FieldReader < u32 > ; impl R { # [doc = "Bits 0:31 - Result"]
# [inline (always)]
pub fn crcout_result (& self) -> CRCOUT_RESULT_R { CRCOUT_RESULT_R :: new (self . bits) } } # [doc = "CRC Output Result Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`crcout::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CRCOUT_SPEC ; impl crate :: RegisterSpec for CRCOUT_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`crcout::R`](R) reader structure"]
impl crate :: Readable for CRCOUT_SPEC { } # [doc = "`reset()` method sets CRCOUT to value 0"]
impl crate :: Resettable for CRCOUT_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CRCIN_IDX (w) register accessor: CRC Input Data Array Register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`crcin_idx::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@crcin_idx`]
module"]
pub type CRCIN_IDX = crate :: Reg < crcin_idx :: CRCIN_IDX_SPEC > ; # [doc = "CRC Input Data Array Register"]
pub mod crcin_idx { # [doc = "Register `CRCIN_IDX[%s]` writer"]
pub type W = crate :: W < CRCIN_IDX_SPEC > ; # [doc = "Field `CRCIN_IDX_DATA` writer - Input Data"]
pub type CRCIN_IDX_DATA_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 32 , O , u32 > ; impl W { # [doc = "Bits 0:31 - Input Data"]
# [inline (always)]
# [must_use]
pub fn crcin_idx_data (& mut self) -> CRCIN_IDX_DATA_W < CRCIN_IDX_SPEC , 0 > { CRCIN_IDX_DATA_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "CRC Input Data Array Register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`crcin_idx::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CRCIN_IDX_SPEC ; impl crate :: RegisterSpec for CRCIN_IDX_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`crcin_idx::W`](W) writer structure"]
impl crate :: Writable for CRCIN_IDX_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CRCIN_IDX[%s]
to value 0"]
impl crate :: Resettable for CRCIN_IDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } } # [doc = "PERIPHERALREGION"]
pub struct OPA0 { _marker : PhantomData < * const () > } unsafe impl Send for OPA0 { } impl OPA0 { # [doc = r"Pointer to the register block"]
pub const PTR : * const opa0 :: RegisterBlock = 0x4002_0000 as * const _ ; # [doc = r"Return the pointer to the register block"]
# [inline (always)]
pub const fn ptr () -> * const opa0 :: RegisterBlock { Self :: PTR } # [doc = r" Steal an instance of this peripheral"]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Ensure that the new instance of the peripheral cannot be used in a way"]
# [doc = r" that may race with any existing instances, for example by only"]
# [doc = r" accessing read-only or write-only registers, or by consuming the"]
# [doc = r" original peripheral and using critical sections to coordinate"]
# [doc = r" access between multiple new instances."]
# [doc = r""]
# [doc = r" Additionally, other software such as HALs may rely on only one"]
# [doc = r" peripheral instance existing to ensure memory safety; ensure"]
# [doc = r" no stolen instances are passed to such software."]
pub unsafe fn steal () -> Self { Self { _marker : PhantomData } } } impl Deref for OPA0 { type Target = opa0 :: RegisterBlock ; # [inline (always)]
fn deref (& self) -> & Self :: Target { unsafe { & * Self :: PTR } } } impl core :: fmt :: Debug for OPA0 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("OPA0") . finish () } } # [doc = "PERIPHERALREGION"]
pub mod opa0 { # [doc = r"Register block"]
# [repr (C)]
pub struct RegisterBlock { _reserved0 : [u8 ; 0x0800]
, # [doc = "0x800 - Power enable"]
pub pwren : PWREN , # [doc = "0x804 - Reset Control"]
pub rstctl : RSTCTL , _reserved2 : [u8 ; 0x0c]
, # [doc = "0x814 - Status Register"]
pub gprcm_stat : GPRCM_STAT , _reserved3 : [u8 ; 0x07f8]
, # [doc = "0x1010 - Clock Override"]
pub clkovr : CLKOVR , _reserved4 : [u8 ; 0x08]
, # [doc = "0x101c - Power Control"]
pub pwrctl : PWRCTL , _reserved5 : [u8 ; 0xe0]
, # [doc = "0x1100 - Control Register"]
pub ctl : CTL , # [doc = "0x1104 - Configuration Base Register"]
pub cfgbase : CFGBASE , # [doc = "0x1108 - Configuration Register"]
pub cfg : CFG , _reserved8 : [u8 ; 0x0c]
, # [doc = "0x1118 - Status Register"]
pub stat : STAT , } # [doc = "PWREN (rw) register accessor: Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pwren`]
module"]
pub type PWREN = crate :: Reg < pwren :: PWREN_SPEC > ; # [doc = "Power enable"]
pub mod pwren { # [doc = "Register `PWREN` reader"]
pub type R = crate :: R < PWREN_SPEC > ; # [doc = "Register `PWREN` writer"]
pub type W = crate :: W < PWREN_SPEC > ; # [doc = "Field `PWREN_ENABLE` reader - Enable the power"]
pub type PWREN_ENABLE_R = crate :: BitReader < PWREN_ENABLE_A > ; # [doc = "Enable the power\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PWREN_ENABLE_A { # [doc = "0: DISABLE"]
PWREN_ENABLE_DISABLE = 0 , # [doc = "1: ENABLE"]
PWREN_ENABLE_ENABLE = 1 , } impl From < PWREN_ENABLE_A > for bool { # [inline (always)]
fn from (variant : PWREN_ENABLE_A) -> Self { variant as u8 != 0 } } impl PWREN_ENABLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PWREN_ENABLE_A { match self . bits { false => PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE , true => PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_pwren_enable_disable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_pwren_enable_enable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE } } # [doc = "Field `PWREN_ENABLE` writer - Enable the power"]
pub type PWREN_ENABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PWREN_ENABLE_A > ; impl < 'a , REG , const O : u8 > PWREN_ENABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn pwren_enable_disable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn pwren_enable_enable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE) } } # [doc = "KEY to allow Power State Change\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum PWREN_KEY_AW { # [doc = "38: _TO_UNLOCK_W_"]
PWREN_KEY_UNLOCK_W = 38 , } impl From < PWREN_KEY_AW > for u8 { # [inline (always)]
fn from (variant : PWREN_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for PWREN_KEY_AW { type Ux = u8 ; } # [doc = "Field `PWREN_KEY` writer - KEY to allow Power State Change"]
pub type PWREN_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , PWREN_KEY_AW > ; impl < 'a , REG , const O : u8 > PWREN_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn pwren_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_KEY_AW :: PWREN_KEY_UNLOCK_W) } } impl R { # [doc = "Bit 0 - Enable the power"]
# [inline (always)]
pub fn pwren_enable (& self) -> PWREN_ENABLE_R { PWREN_ENABLE_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - Enable the power"]
# [inline (always)]
# [must_use]
pub fn pwren_enable (& mut self) -> PWREN_ENABLE_W < PWREN_SPEC , 0 > { PWREN_ENABLE_W :: new (self) } # [doc = "Bits 24:31 - KEY to allow Power State Change"]
# [inline (always)]
# [must_use]
pub fn pwren_key (& mut self) -> PWREN_KEY_W < PWREN_SPEC , 24 > { PWREN_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PWREN_SPEC ; impl crate :: RegisterSpec for PWREN_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pwren::R`](R) reader structure"]
impl crate :: Readable for PWREN_SPEC { } # [doc = "`write(|w| ..)` method takes [`pwren::W`](W) writer structure"]
impl crate :: Writable for PWREN_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PWREN to value 0"]
impl crate :: Resettable for PWREN_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RSTCTL (w) register accessor: Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rstctl`]
module"]
pub type RSTCTL = crate :: Reg < rstctl :: RSTCTL_SPEC > ; # [doc = "Reset Control"]
pub mod rstctl { # [doc = "Register `RSTCTL` writer"]
pub type W = crate :: W < RSTCTL_SPEC > ; # [doc = "Assert reset to the peripheral\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETASSERT_AW { # [doc = "0: NOP"]
RSTCTL_RESETASSERT_NOP = 0 , # [doc = "1: ASSERT"]
RSTCTL_RESETASSERT_ASSERT = 1 , } impl From < RSTCTL_RESETASSERT_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETASSERT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETASSERT` writer - Assert reset to the peripheral"]
pub type RSTCTL_RESETASSERT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETASSERT_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETASSERT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetassert_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_NOP) } # [doc = "ASSERT"]
# [inline (always)]
pub fn rstctl_resetassert_assert (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_ASSERT) } } # [doc = "Clear the RESETSTKY bit in the STAT register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETSTKYCLR_AW { # [doc = "0: NOP"]
RSTCTL_RESETSTKYCLR_NOP = 0 , # [doc = "1: CLR"]
RSTCTL_RESETSTKYCLR_CLR = 1 , } impl From < RSTCTL_RESETSTKYCLR_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETSTKYCLR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETSTKYCLR` writer - Clear the RESETSTKY bit in the STAT register"]
pub type RSTCTL_RESETSTKYCLR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETSTKYCLR_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETSTKYCLR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetstkyclr_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_NOP) } # [doc = "CLR"]
# [inline (always)]
pub fn rstctl_resetstkyclr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_CLR) } } # [doc = "Unlock key\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum RSTCTL_KEY_AW { # [doc = "177: _TO_UNLOCK_W_"]
RSTCTL_KEY_UNLOCK_W = 177 , } impl From < RSTCTL_KEY_AW > for u8 { # [inline (always)]
fn from (variant : RSTCTL_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for RSTCTL_KEY_AW { type Ux = u8 ; } # [doc = "Field `RSTCTL_KEY` writer - Unlock key"]
pub type RSTCTL_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , RSTCTL_KEY_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn rstctl_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_KEY_AW :: RSTCTL_KEY_UNLOCK_W) } } impl W { # [doc = "Bit 0 - Assert reset to the peripheral"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetassert (& mut self) -> RSTCTL_RESETASSERT_W < RSTCTL_SPEC , 0 > { RSTCTL_RESETASSERT_W :: new (self) } # [doc = "Bit 1 - Clear the RESETSTKY bit in the STAT register"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetstkyclr (& mut self) -> RSTCTL_RESETSTKYCLR_W < RSTCTL_SPEC , 1 > { RSTCTL_RESETSTKYCLR_W :: new (self) } # [doc = "Bits 24:31 - Unlock key"]
# [inline (always)]
# [must_use]
pub fn rstctl_key (& mut self) -> RSTCTL_KEY_W < RSTCTL_SPEC , 24 > { RSTCTL_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RSTCTL_SPEC ; impl crate :: RegisterSpec for RSTCTL_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`rstctl::W`](W) writer structure"]
impl crate :: Writable for RSTCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets RSTCTL to value 0"]
impl crate :: Resettable for RSTCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "GPRCM_STAT (r) register accessor: Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gprcm_stat::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gprcm_stat`]
module"]
pub type GPRCM_STAT = crate :: Reg < gprcm_stat :: GPRCM_STAT_SPEC > ; # [doc = "Status Register"]
pub mod gprcm_stat { # [doc = "Register `GPRCM_STAT` reader"]
pub type R = crate :: R < GPRCM_STAT_SPEC > ; # [doc = "Field `GPRCM_STAT_RESETSTKY` reader - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
pub type GPRCM_STAT_RESETSTKY_R = crate :: BitReader < GPRCM_STAT_RESETSTKY_A > ; # [doc = "This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum GPRCM_STAT_RESETSTKY_A { # [doc = "0: NORES"]
GPRCM_STAT_RESETSTKY_NORES = 0 , # [doc = "1: RESET"]
GPRCM_STAT_RESETSTKY_RESET = 1 , } impl From < GPRCM_STAT_RESETSTKY_A > for bool { # [inline (always)]
fn from (variant : GPRCM_STAT_RESETSTKY_A) -> Self { variant as u8 != 0 } } impl GPRCM_STAT_RESETSTKY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> GPRCM_STAT_RESETSTKY_A { match self . bits { false => GPRCM_STAT_RESETSTKY_A :: GPRCM_STAT_RESETSTKY_NORES , true => GPRCM_STAT_RESETSTKY_A :: GPRCM_STAT_RESETSTKY_RESET , } } # [doc = "NORES"]
# [inline (always)]
pub fn is_gprcm_stat_resetstky_nores (& self) -> bool { * self == GPRCM_STAT_RESETSTKY_A :: GPRCM_STAT_RESETSTKY_NORES } # [doc = "RESET"]
# [inline (always)]
pub fn is_gprcm_stat_resetstky_reset (& self) -> bool { * self == GPRCM_STAT_RESETSTKY_A :: GPRCM_STAT_RESETSTKY_RESET } } impl R { # [doc = "Bit 16 - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
# [inline (always)]
pub fn gprcm_stat_resetstky (& self) -> GPRCM_STAT_RESETSTKY_R { GPRCM_STAT_RESETSTKY_R :: new (((self . bits >> 16) & 1) != 0) } } # [doc = "Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gprcm_stat::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct GPRCM_STAT_SPEC ; impl crate :: RegisterSpec for GPRCM_STAT_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`gprcm_stat::R`](R) reader structure"]
impl crate :: Readable for GPRCM_STAT_SPEC { } # [doc = "`reset()` method sets GPRCM_STAT to value 0"]
impl crate :: Resettable for GPRCM_STAT_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CLKOVR (rw) register accessor: Clock Override\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkovr::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkovr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clkovr`]
module"]
pub type CLKOVR = crate :: Reg < clkovr :: CLKOVR_SPEC > ; # [doc = "Clock Override"]
pub mod clkovr { # [doc = "Register `CLKOVR` reader"]
pub type R = crate :: R < CLKOVR_SPEC > ; # [doc = "Register `CLKOVR` writer"]
pub type W = crate :: W < CLKOVR_SPEC > ; # [doc = "Field `CLKOVR_OVERRIDE` reader - Unlocks the functionality of \\[RUN_STOP\\]
to override the automatic peripheral clock request"]
pub type CLKOVR_OVERRIDE_R = crate :: BitReader < CLKOVR_OVERRIDE_A > ; # [doc = "Unlocks the functionality of \\[RUN_STOP\\]
to override the automatic peripheral clock request\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKOVR_OVERRIDE_A { # [doc = "0: DISABLED"]
CLKOVR_OVERRIDE_DISABLED = 0 , # [doc = "1: ENABLED"]
CLKOVR_OVERRIDE_ENABLED = 1 , } impl From < CLKOVR_OVERRIDE_A > for bool { # [inline (always)]
fn from (variant : CLKOVR_OVERRIDE_A) -> Self { variant as u8 != 0 } } impl CLKOVR_OVERRIDE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKOVR_OVERRIDE_A { match self . bits { false => CLKOVR_OVERRIDE_A :: CLKOVR_OVERRIDE_DISABLED , true => CLKOVR_OVERRIDE_A :: CLKOVR_OVERRIDE_ENABLED , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_clkovr_override_disabled (& self) -> bool { * self == CLKOVR_OVERRIDE_A :: CLKOVR_OVERRIDE_DISABLED } # [doc = "ENABLED"]
# [inline (always)]
pub fn is_clkovr_override_enabled (& self) -> bool { * self == CLKOVR_OVERRIDE_A :: CLKOVR_OVERRIDE_ENABLED } } # [doc = "Field `CLKOVR_OVERRIDE` writer - Unlocks the functionality of \\[RUN_STOP\\]
to override the automatic peripheral clock request"]
pub type CLKOVR_OVERRIDE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKOVR_OVERRIDE_A > ; impl < 'a , REG , const O : u8 > CLKOVR_OVERRIDE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn clkovr_override_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CLKOVR_OVERRIDE_A :: CLKOVR_OVERRIDE_DISABLED) } # [doc = "ENABLED"]
# [inline (always)]
pub fn clkovr_override_enabled (self) -> & 'a mut crate :: W < REG > { self . variant (CLKOVR_OVERRIDE_A :: CLKOVR_OVERRIDE_ENABLED) } } # [doc = "Field `CLKOVR_RUN_STOP` reader - If \\[OVERRIDE\\]
is enabled, this register is used to manually control the peripheral's clock request to the system"]
pub type CLKOVR_RUN_STOP_R = crate :: BitReader < CLKOVR_RUN_STOP_A > ; # [doc = "If \\[OVERRIDE\\]
is enabled, this register is used to manually control the peripheral's clock request to the system\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKOVR_RUN_STOP_A { # [doc = "0: RUN"]
CLKOVR_RUN_STOP_RUN = 0 , # [doc = "1: STOP"]
CLKOVR_RUN_STOP_STOP = 1 , } impl From < CLKOVR_RUN_STOP_A > for bool { # [inline (always)]
fn from (variant : CLKOVR_RUN_STOP_A) -> Self { variant as u8 != 0 } } impl CLKOVR_RUN_STOP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKOVR_RUN_STOP_A { match self . bits { false => CLKOVR_RUN_STOP_A :: CLKOVR_RUN_STOP_RUN , true => CLKOVR_RUN_STOP_A :: CLKOVR_RUN_STOP_STOP , } } # [doc = "RUN"]
# [inline (always)]
pub fn is_clkovr_run_stop_run (& self) -> bool { * self == CLKOVR_RUN_STOP_A :: CLKOVR_RUN_STOP_RUN } # [doc = "STOP"]
# [inline (always)]
pub fn is_clkovr_run_stop_stop (& self) -> bool { * self == CLKOVR_RUN_STOP_A :: CLKOVR_RUN_STOP_STOP } } # [doc = "Field `CLKOVR_RUN_STOP` writer - If \\[OVERRIDE\\]
is enabled, this register is used to manually control the peripheral's clock request to the system"]
pub type CLKOVR_RUN_STOP_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKOVR_RUN_STOP_A > ; impl < 'a , REG , const O : u8 > CLKOVR_RUN_STOP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "RUN"]
# [inline (always)]
pub fn clkovr_run_stop_run (self) -> & 'a mut crate :: W < REG > { self . variant (CLKOVR_RUN_STOP_A :: CLKOVR_RUN_STOP_RUN) } # [doc = "STOP"]
# [inline (always)]
pub fn clkovr_run_stop_stop (self) -> & 'a mut crate :: W < REG > { self . variant (CLKOVR_RUN_STOP_A :: CLKOVR_RUN_STOP_STOP) } } impl R { # [doc = "Bit 0 - Unlocks the functionality of \\[RUN_STOP\\]
to override the automatic peripheral clock request"]
# [inline (always)]
pub fn clkovr_override (& self) -> CLKOVR_OVERRIDE_R { CLKOVR_OVERRIDE_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - If \\[OVERRIDE\\]
is enabled, this register is used to manually control the peripheral's clock request to the system"]
# [inline (always)]
pub fn clkovr_run_stop (& self) -> CLKOVR_RUN_STOP_R { CLKOVR_RUN_STOP_R :: new (((self . bits >> 1) & 1) != 0) } } impl W { # [doc = "Bit 0 - Unlocks the functionality of \\[RUN_STOP\\]
to override the automatic peripheral clock request"]
# [inline (always)]
# [must_use]
pub fn clkovr_override (& mut self) -> CLKOVR_OVERRIDE_W < CLKOVR_SPEC , 0 > { CLKOVR_OVERRIDE_W :: new (self) } # [doc = "Bit 1 - If \\[OVERRIDE\\]
is enabled, this register is used to manually control the peripheral's clock request to the system"]
# [inline (always)]
# [must_use]
pub fn clkovr_run_stop (& mut self) -> CLKOVR_RUN_STOP_W < CLKOVR_SPEC , 1 > { CLKOVR_RUN_STOP_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Clock Override\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkovr::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkovr::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CLKOVR_SPEC ; impl crate :: RegisterSpec for CLKOVR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`clkovr::R`](R) reader structure"]
impl crate :: Readable for CLKOVR_SPEC { } # [doc = "`write(|w| ..)` method takes [`clkovr::W`](W) writer structure"]
impl crate :: Writable for CLKOVR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CLKOVR to value 0"]
impl crate :: Resettable for CLKOVR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "PWRCTL (rw) register accessor: Power Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwrctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwrctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pwrctl`]
module"]
pub type PWRCTL = crate :: Reg < pwrctl :: PWRCTL_SPEC > ; # [doc = "Power Control"]
pub mod pwrctl { # [doc = "Register `PWRCTL` reader"]
pub type R = crate :: R < PWRCTL_SPEC > ; # [doc = "Register `PWRCTL` writer"]
pub type W = crate :: W < PWRCTL_SPEC > ; # [doc = "Field `PWRCTL_AUTO_OFF` reader - When set the peripheral will remove its local IP request for enable so that it can be disabled if no other entities in the system are requesting it to be enabled."]
pub type PWRCTL_AUTO_OFF_R = crate :: BitReader < PWRCTL_AUTO_OFF_A > ; # [doc = "When set the peripheral will remove its local IP request for enable so that it can be disabled if no other entities in the system are requesting it to be enabled.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PWRCTL_AUTO_OFF_A { # [doc = "0: DISABLE"]
PWRCTL_AUTO_OFF_DISABLE = 0 , # [doc = "1: ENABLE"]
PWRCTL_AUTO_OFF_ENABLE = 1 , } impl From < PWRCTL_AUTO_OFF_A > for bool { # [inline (always)]
fn from (variant : PWRCTL_AUTO_OFF_A) -> Self { variant as u8 != 0 } } impl PWRCTL_AUTO_OFF_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PWRCTL_AUTO_OFF_A { match self . bits { false => PWRCTL_AUTO_OFF_A :: PWRCTL_AUTO_OFF_DISABLE , true => PWRCTL_AUTO_OFF_A :: PWRCTL_AUTO_OFF_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_pwrctl_auto_off_disable (& self) -> bool { * self == PWRCTL_AUTO_OFF_A :: PWRCTL_AUTO_OFF_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_pwrctl_auto_off_enable (& self) -> bool { * self == PWRCTL_AUTO_OFF_A :: PWRCTL_AUTO_OFF_ENABLE } } # [doc = "Field `PWRCTL_AUTO_OFF` writer - When set the peripheral will remove its local IP request for enable so that it can be disabled if no other entities in the system are requesting it to be enabled."]
pub type PWRCTL_AUTO_OFF_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PWRCTL_AUTO_OFF_A > ; impl < 'a , REG , const O : u8 > PWRCTL_AUTO_OFF_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn pwrctl_auto_off_disable (self) -> & 'a mut crate :: W < REG > { self . variant (PWRCTL_AUTO_OFF_A :: PWRCTL_AUTO_OFF_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn pwrctl_auto_off_enable (self) -> & 'a mut crate :: W < REG > { self . variant (PWRCTL_AUTO_OFF_A :: PWRCTL_AUTO_OFF_ENABLE) } } impl R { # [doc = "Bit 0 - When set the peripheral will remove its local IP request for enable so that it can be disabled if no other entities in the system are requesting it to be enabled."]
# [inline (always)]
pub fn pwrctl_auto_off (& self) -> PWRCTL_AUTO_OFF_R { PWRCTL_AUTO_OFF_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - When set the peripheral will remove its local IP request for enable so that it can be disabled if no other entities in the system are requesting it to be enabled."]
# [inline (always)]
# [must_use]
pub fn pwrctl_auto_off (& mut self) -> PWRCTL_AUTO_OFF_W < PWRCTL_SPEC , 0 > { PWRCTL_AUTO_OFF_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Power Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwrctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwrctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PWRCTL_SPEC ; impl crate :: RegisterSpec for PWRCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pwrctl::R`](R) reader structure"]
impl crate :: Readable for PWRCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`pwrctl::W`](W) writer structure"]
impl crate :: Writable for PWRCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PWRCTL to value 0"]
impl crate :: Resettable for PWRCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTL (rw) register accessor: Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctl`]
module"]
pub type CTL = crate :: Reg < ctl :: CTL_SPEC > ; # [doc = "Control Register"]
pub mod ctl { # [doc = "Register `CTL` reader"]
pub type R = crate :: R < CTL_SPEC > ; # [doc = "Register `CTL` writer"]
pub type W = crate :: W < CTL_SPEC > ; # [doc = "Field `CTL_ENABLE` reader - OAxn Enable."]
pub type CTL_ENABLE_R = crate :: BitReader < CTL_ENABLE_A > ; # [doc = "OAxn Enable.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL_ENABLE_A { # [doc = "0: OFF"]
CTL_ENABLE_OFF = 0 , # [doc = "1: ON"]
CTL_ENABLE_ON = 1 , } impl From < CTL_ENABLE_A > for bool { # [inline (always)]
fn from (variant : CTL_ENABLE_A) -> Self { variant as u8 != 0 } } impl CTL_ENABLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL_ENABLE_A { match self . bits { false => CTL_ENABLE_A :: CTL_ENABLE_OFF , true => CTL_ENABLE_A :: CTL_ENABLE_ON , } } # [doc = "OFF"]
# [inline (always)]
pub fn is_ctl_enable_off (& self) -> bool { * self == CTL_ENABLE_A :: CTL_ENABLE_OFF } # [doc = "ON"]
# [inline (always)]
pub fn is_ctl_enable_on (& self) -> bool { * self == CTL_ENABLE_A :: CTL_ENABLE_ON } } # [doc = "Field `CTL_ENABLE` writer - OAxn Enable."]
pub type CTL_ENABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL_ENABLE_A > ; impl < 'a , REG , const O : u8 > CTL_ENABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "OFF"]
# [inline (always)]
pub fn ctl_enable_off (self) -> & 'a mut crate :: W < REG > { self . variant (CTL_ENABLE_A :: CTL_ENABLE_OFF) } # [doc = "ON"]
# [inline (always)]
pub fn ctl_enable_on (self) -> & 'a mut crate :: W < REG > { self . variant (CTL_ENABLE_A :: CTL_ENABLE_ON) } } impl R { # [doc = "Bit 0 - OAxn Enable."]
# [inline (always)]
pub fn ctl_enable (& self) -> CTL_ENABLE_R { CTL_ENABLE_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - OAxn Enable."]
# [inline (always)]
# [must_use]
pub fn ctl_enable (& mut self) -> CTL_ENABLE_W < CTL_SPEC , 0 > { CTL_ENABLE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTL_SPEC ; impl crate :: RegisterSpec for CTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ctl::R`](R) reader structure"]
impl crate :: Readable for CTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`ctl::W`](W) writer structure"]
impl crate :: Writable for CTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTL to value 0"]
impl crate :: Resettable for CTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CFGBASE (rw) register accessor: Configuration Base Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cfgbase::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cfgbase::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cfgbase`]
module"]
pub type CFGBASE = crate :: Reg < cfgbase :: CFGBASE_SPEC > ; # [doc = "Configuration Base Register"]
pub mod cfgbase { # [doc = "Register `CFGBASE` reader"]
pub type R = crate :: R < CFGBASE_SPEC > ; # [doc = "Register `CFGBASE` writer"]
pub type W = crate :: W < CFGBASE_SPEC > ; # [doc = "Field `CFGBASE_GBW` reader - Select gain bandwidth which affects current as well the gain bandwidth. The lower gain bandwidth has lower current. See device specific datasheet for values. Can only be modified when STAT.BUSY=0."]
pub type CFGBASE_GBW_R = crate :: BitReader < CFGBASE_GBW_A > ; # [doc = "Select gain bandwidth which affects current as well the gain bandwidth. The lower gain bandwidth has lower current. See device specific datasheet for values. Can only be modified when STAT.BUSY=0.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CFGBASE_GBW_A { # [doc = "0: LOWGAIN"]
CFGBASE_GBW_LOWGAIN = 0 , # [doc = "1: HIGHGAIN"]
CFGBASE_GBW_HIGHGAIN = 1 , } impl From < CFGBASE_GBW_A > for bool { # [inline (always)]
fn from (variant : CFGBASE_GBW_A) -> Self { variant as u8 != 0 } } impl CFGBASE_GBW_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CFGBASE_GBW_A { match self . bits { false => CFGBASE_GBW_A :: CFGBASE_GBW_LOWGAIN , true => CFGBASE_GBW_A :: CFGBASE_GBW_HIGHGAIN , } } # [doc = "LOWGAIN"]
# [inline (always)]
pub fn is_cfgbase_gbw_lowgain (& self) -> bool { * self == CFGBASE_GBW_A :: CFGBASE_GBW_LOWGAIN } # [doc = "HIGHGAIN"]
# [inline (always)]
pub fn is_cfgbase_gbw_highgain (& self) -> bool { * self == CFGBASE_GBW_A :: CFGBASE_GBW_HIGHGAIN } } # [doc = "Field `CFGBASE_GBW` writer - Select gain bandwidth which affects current as well the gain bandwidth. The lower gain bandwidth has lower current. See device specific datasheet for values. Can only be modified when STAT.BUSY=0."]
pub type CFGBASE_GBW_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CFGBASE_GBW_A > ; impl < 'a , REG , const O : u8 > CFGBASE_GBW_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "LOWGAIN"]
# [inline (always)]
pub fn cfgbase_gbw_lowgain (self) -> & 'a mut crate :: W < REG > { self . variant (CFGBASE_GBW_A :: CFGBASE_GBW_LOWGAIN) } # [doc = "HIGHGAIN"]
# [inline (always)]
pub fn cfgbase_gbw_highgain (self) -> & 'a mut crate :: W < REG > { self . variant (CFGBASE_GBW_A :: CFGBASE_GBW_HIGHGAIN) } } # [doc = "Field `CFGBASE_RRI` reader - Rail-to-rail input enable. Can only be modified when STAT.BUSY=0"]
pub type CFGBASE_RRI_R = crate :: BitReader < CFGBASE_RRI_A > ; # [doc = "Rail-to-rail input enable. Can only be modified when STAT.BUSY=0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CFGBASE_RRI_A { # [doc = "0: OFF"]
CFGBASE_RRI_OFF = 0 , # [doc = "1: ON"]
CFGBASE_RRI_ON = 1 , } impl From < CFGBASE_RRI_A > for bool { # [inline (always)]
fn from (variant : CFGBASE_RRI_A) -> Self { variant as u8 != 0 } } impl CFGBASE_RRI_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CFGBASE_RRI_A { match self . bits { false => CFGBASE_RRI_A :: CFGBASE_RRI_OFF , true => CFGBASE_RRI_A :: CFGBASE_RRI_ON , } } # [doc = "OFF"]
# [inline (always)]
pub fn is_cfgbase_rri_off (& self) -> bool { * self == CFGBASE_RRI_A :: CFGBASE_RRI_OFF } # [doc = "ON"]
# [inline (always)]
pub fn is_cfgbase_rri_on (& self) -> bool { * self == CFGBASE_RRI_A :: CFGBASE_RRI_ON } } # [doc = "Field `CFGBASE_RRI` writer - Rail-to-rail input enable. Can only be modified when STAT.BUSY=0"]
pub type CFGBASE_RRI_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CFGBASE_RRI_A > ; impl < 'a , REG , const O : u8 > CFGBASE_RRI_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "OFF"]
# [inline (always)]
pub fn cfgbase_rri_off (self) -> & 'a mut crate :: W < REG > { self . variant (CFGBASE_RRI_A :: CFGBASE_RRI_OFF) } # [doc = "ON"]
# [inline (always)]
pub fn cfgbase_rri_on (self) -> & 'a mut crate :: W < REG > { self . variant (CFGBASE_RRI_A :: CFGBASE_RRI_ON) } } impl R { # [doc = "Bit 0 - Select gain bandwidth which affects current as well the gain bandwidth. The lower gain bandwidth has lower current. See device specific datasheet for values. Can only be modified when STAT.BUSY=0."]
# [inline (always)]
pub fn cfgbase_gbw (& self) -> CFGBASE_GBW_R { CFGBASE_GBW_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 2 - Rail-to-rail input enable. Can only be modified when STAT.BUSY=0"]
# [inline (always)]
pub fn cfgbase_rri (& self) -> CFGBASE_RRI_R { CFGBASE_RRI_R :: new (((self . bits >> 2) & 1) != 0) } } impl W { # [doc = "Bit 0 - Select gain bandwidth which affects current as well the gain bandwidth. The lower gain bandwidth has lower current. See device specific datasheet for values. Can only be modified when STAT.BUSY=0."]
# [inline (always)]
# [must_use]
pub fn cfgbase_gbw (& mut self) -> CFGBASE_GBW_W < CFGBASE_SPEC , 0 > { CFGBASE_GBW_W :: new (self) } # [doc = "Bit 2 - Rail-to-rail input enable. Can only be modified when STAT.BUSY=0"]
# [inline (always)]
# [must_use]
pub fn cfgbase_rri (& mut self) -> CFGBASE_RRI_W < CFGBASE_SPEC , 2 > { CFGBASE_RRI_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Configuration Base Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cfgbase::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cfgbase::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CFGBASE_SPEC ; impl crate :: RegisterSpec for CFGBASE_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cfgbase::R`](R) reader structure"]
impl crate :: Readable for CFGBASE_SPEC { } # [doc = "`write(|w| ..)` method takes [`cfgbase::W`](W) writer structure"]
impl crate :: Writable for CFGBASE_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CFGBASE to value 0"]
impl crate :: Resettable for CFGBASE_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CFG (rw) register accessor: Configuration Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cfg::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cfg::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub type CFG = crate :: Reg < cfg :: CFG_SPEC > ; # [doc = "Configuration Register"]
pub mod cfg { # [doc = "Register `CFG` reader"]
pub type R = crate :: R < CFG_SPEC > ; # [doc = "Register `CFG` writer"]
pub type W = crate :: W < CFG_SPEC > ; # [doc = "Field `CFG_CHOP` reader - Chopping enable."]
pub type CFG_CHOP_R = crate :: FieldReader < CFG_CHOP_A > ; # [doc = "Chopping enable.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CFG_CHOP_A { # [doc = "0: OFF"]
CFG_CHOP_OFF = 0 , # [doc = "1: ON"]
CFG_CHOP_ON = 1 , # [doc = "2: AVGON"]
CFG_CHOP_AVGON = 2 , } impl From < CFG_CHOP_A > for u8 { # [inline (always)]
fn from (variant : CFG_CHOP_A) -> Self { variant as _ } } impl crate :: FieldSpec for CFG_CHOP_A { type Ux = u8 ; } impl CFG_CHOP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CFG_CHOP_A > { match self . bits { 0 => Some (CFG_CHOP_A :: CFG_CHOP_OFF) , 1 => Some (CFG_CHOP_A :: CFG_CHOP_ON) , 2 => Some (CFG_CHOP_A :: CFG_CHOP_AVGON) , _ => None , } } # [doc = "OFF"]
# [inline (always)]
pub fn is_cfg_chop_off (& self) -> bool { * self == CFG_CHOP_A :: CFG_CHOP_OFF } # [doc = "ON"]
# [inline (always)]
pub fn is_cfg_chop_on (& self) -> bool { * self == CFG_CHOP_A :: CFG_CHOP_ON } # [doc = "AVGON"]
# [inline (always)]
pub fn is_cfg_chop_avgon (& self) -> bool { * self == CFG_CHOP_A :: CFG_CHOP_AVGON } } # [doc = "Field `CFG_CHOP` writer - Chopping enable."]
pub type CFG_CHOP_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , CFG_CHOP_A > ; impl < 'a , REG , const O : u8 > CFG_CHOP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "OFF"]
# [inline (always)]
pub fn cfg_chop_off (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_CHOP_A :: CFG_CHOP_OFF) } # [doc = "ON"]
# [inline (always)]
pub fn cfg_chop_on (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_CHOP_A :: CFG_CHOP_ON) } # [doc = "AVGON"]
# [inline (always)]
pub fn cfg_chop_avgon (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_CHOP_A :: CFG_CHOP_AVGON) } } # [doc = "Field `CFG_OUTPIN` reader - Enable output pin"]
pub type CFG_OUTPIN_R = crate :: BitReader < CFG_OUTPIN_A > ; # [doc = "Enable output pin\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CFG_OUTPIN_A { # [doc = "0: DISABLED"]
CFG_OUTPIN_DISABLED = 0 , # [doc = "1: ENABLED"]
CFG_OUTPIN_ENABLED = 1 , } impl From < CFG_OUTPIN_A > for bool { # [inline (always)]
fn from (variant : CFG_OUTPIN_A) -> Self { variant as u8 != 0 } } impl CFG_OUTPIN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CFG_OUTPIN_A { match self . bits { false => CFG_OUTPIN_A :: CFG_OUTPIN_DISABLED , true => CFG_OUTPIN_A :: CFG_OUTPIN_ENABLED , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_cfg_outpin_disabled (& self) -> bool { * self == CFG_OUTPIN_A :: CFG_OUTPIN_DISABLED } # [doc = "ENABLED"]
# [inline (always)]
pub fn is_cfg_outpin_enabled (& self) -> bool { * self == CFG_OUTPIN_A :: CFG_OUTPIN_ENABLED } } # [doc = "Field `CFG_OUTPIN` writer - Enable output pin"]
pub type CFG_OUTPIN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CFG_OUTPIN_A > ; impl < 'a , REG , const O : u8 > CFG_OUTPIN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn cfg_outpin_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_OUTPIN_A :: CFG_OUTPIN_DISABLED) } # [doc = "ENABLED"]
# [inline (always)]
pub fn cfg_outpin_enabled (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_OUTPIN_A :: CFG_OUTPIN_ENABLED) } } # [doc = "Field `CFG_PSEL` reader - Positive OA input selection. Please refer to the device specific datasheet for exact channels available."]
pub type CFG_PSEL_R = crate :: FieldReader < CFG_PSEL_A > ; # [doc = "Positive OA input selection. Please refer to the device specific datasheet for exact channels available.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CFG_PSEL_A { # [doc = "0: NC"]
CFG_PSEL_NC = 0 , # [doc = "1: EXTPIN0"]
CFG_PSEL_EXTPIN0 = 1 , # [doc = "2: EXTPIN1"]
CFG_PSEL_EXTPIN1 = 2 , # [doc = "3: DAC12OUT"]
CFG_PSEL_DAC12OUT = 3 , # [doc = "4: DAC8OUT"]
CFG_PSEL_DAC8OUT = 4 , # [doc = "5: VREF"]
CFG_PSEL_VREF = 5 , # [doc = "6: OANM1RTOP"]
CFG_PSEL_OANM1RTOP = 6 , # [doc = "7: GPAMP_OUT_INT"]
CFG_PSEL_GPAMP_OUT_INT = 7 , # [doc = "8: VSS"]
CFG_PSEL_VSS = 8 , } impl From < CFG_PSEL_A > for u8 { # [inline (always)]
fn from (variant : CFG_PSEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for CFG_PSEL_A { type Ux = u8 ; } impl CFG_PSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CFG_PSEL_A > { match self . bits { 0 => Some (CFG_PSEL_A :: CFG_PSEL_NC) , 1 => Some (CFG_PSEL_A :: CFG_PSEL_EXTPIN0) , 2 => Some (CFG_PSEL_A :: CFG_PSEL_EXTPIN1) , 3 => Some (CFG_PSEL_A :: CFG_PSEL_DAC12OUT) , 4 => Some (CFG_PSEL_A :: CFG_PSEL_DAC8OUT) , 5 => Some (CFG_PSEL_A :: CFG_PSEL_VREF) , 6 => Some (CFG_PSEL_A :: CFG_PSEL_OANM1RTOP) , 7 => Some (CFG_PSEL_A :: CFG_PSEL_GPAMP_OUT_INT) , 8 => Some (CFG_PSEL_A :: CFG_PSEL_VSS) , _ => None , } } # [doc = "NC"]
# [inline (always)]
pub fn is_cfg_psel_nc (& self) -> bool { * self == CFG_PSEL_A :: CFG_PSEL_NC } # [doc = "EXTPIN0"]
# [inline (always)]
pub fn is_cfg_psel_extpin0 (& self) -> bool { * self == CFG_PSEL_A :: CFG_PSEL_EXTPIN0 } # [doc = "EXTPIN1"]
# [inline (always)]
pub fn is_cfg_psel_extpin1 (& self) -> bool { * self == CFG_PSEL_A :: CFG_PSEL_EXTPIN1 } # [doc = "DAC12OUT"]
# [inline (always)]
pub fn is_cfg_psel_dac12out (& self) -> bool { * self == CFG_PSEL_A :: CFG_PSEL_DAC12OUT } # [doc = "DAC8OUT"]
# [inline (always)]
pub fn is_cfg_psel_dac8out (& self) -> bool { * self == CFG_PSEL_A :: CFG_PSEL_DAC8OUT } # [doc = "VREF"]
# [inline (always)]
pub fn is_cfg_psel_vref (& self) -> bool { * self == CFG_PSEL_A :: CFG_PSEL_VREF } # [doc = "OANM1RTOP"]
# [inline (always)]
pub fn is_cfg_psel_oanm1rtop (& self) -> bool { * self == CFG_PSEL_A :: CFG_PSEL_OANM1RTOP } # [doc = "GPAMP_OUT_INT"]
# [inline (always)]
pub fn is_cfg_psel_gpamp_out_int (& self) -> bool { * self == CFG_PSEL_A :: CFG_PSEL_GPAMP_OUT_INT } # [doc = "VSS"]
# [inline (always)]
pub fn is_cfg_psel_vss (& self) -> bool { * self == CFG_PSEL_A :: CFG_PSEL_VSS } } # [doc = "Field `CFG_PSEL` writer - Positive OA input selection. Please refer to the device specific datasheet for exact channels available."]
pub type CFG_PSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 4 , O , CFG_PSEL_A > ; impl < 'a , REG , const O : u8 > CFG_PSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "NC"]
# [inline (always)]
pub fn cfg_psel_nc (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_PSEL_A :: CFG_PSEL_NC) } # [doc = "EXTPIN0"]
# [inline (always)]
pub fn cfg_psel_extpin0 (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_PSEL_A :: CFG_PSEL_EXTPIN0) } # [doc = "EXTPIN1"]
# [inline (always)]
pub fn cfg_psel_extpin1 (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_PSEL_A :: CFG_PSEL_EXTPIN1) } # [doc = "DAC12OUT"]
# [inline (always)]
pub fn cfg_psel_dac12out (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_PSEL_A :: CFG_PSEL_DAC12OUT) } # [doc = "DAC8OUT"]
# [inline (always)]
pub fn cfg_psel_dac8out (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_PSEL_A :: CFG_PSEL_DAC8OUT) } # [doc = "VREF"]
# [inline (always)]
pub fn cfg_psel_vref (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_PSEL_A :: CFG_PSEL_VREF) } # [doc = "OANM1RTOP"]
# [inline (always)]
pub fn cfg_psel_oanm1rtop (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_PSEL_A :: CFG_PSEL_OANM1RTOP) } # [doc = "GPAMP_OUT_INT"]
# [inline (always)]
pub fn cfg_psel_gpamp_out_int (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_PSEL_A :: CFG_PSEL_GPAMP_OUT_INT) } # [doc = "VSS"]
# [inline (always)]
pub fn cfg_psel_vss (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_PSEL_A :: CFG_PSEL_VSS) } } # [doc = "Field `CFG_NSEL` reader - Negative OA input selection. Please refer to the device specific datasheet for exact channels available."]
pub type CFG_NSEL_R = crate :: FieldReader < CFG_NSEL_A > ; # [doc = "Negative OA input selection. Please refer to the device specific datasheet for exact channels available.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CFG_NSEL_A { # [doc = "0: NC"]
CFG_NSEL_NC = 0 , # [doc = "1: EXTPIN0"]
CFG_NSEL_EXTPIN0 = 1 , # [doc = "2: EXTPIN1"]
CFG_NSEL_EXTPIN1 = 2 , # [doc = "3: OANP1RBOT"]
CFG_NSEL_OANP1RBOT = 3 , # [doc = "4: OANRTAP"]
CFG_NSEL_OANRTAP = 4 , # [doc = "5: OANRTOP"]
CFG_NSEL_OANRTOP = 5 , # [doc = "6: SPARE"]
CFG_NSEL_SPARE = 6 , } impl From < CFG_NSEL_A > for u8 { # [inline (always)]
fn from (variant : CFG_NSEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for CFG_NSEL_A { type Ux = u8 ; } impl CFG_NSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CFG_NSEL_A > { match self . bits { 0 => Some (CFG_NSEL_A :: CFG_NSEL_NC) , 1 => Some (CFG_NSEL_A :: CFG_NSEL_EXTPIN0) , 2 => Some (CFG_NSEL_A :: CFG_NSEL_EXTPIN1) , 3 => Some (CFG_NSEL_A :: CFG_NSEL_OANP1RBOT) , 4 => Some (CFG_NSEL_A :: CFG_NSEL_OANRTAP) , 5 => Some (CFG_NSEL_A :: CFG_NSEL_OANRTOP) , 6 => Some (CFG_NSEL_A :: CFG_NSEL_SPARE) , _ => None , } } # [doc = "NC"]
# [inline (always)]
pub fn is_cfg_nsel_nc (& self) -> bool { * self == CFG_NSEL_A :: CFG_NSEL_NC } # [doc = "EXTPIN0"]
# [inline (always)]
pub fn is_cfg_nsel_extpin0 (& self) -> bool { * self == CFG_NSEL_A :: CFG_NSEL_EXTPIN0 } # [doc = "EXTPIN1"]
# [inline (always)]
pub fn is_cfg_nsel_extpin1 (& self) -> bool { * self == CFG_NSEL_A :: CFG_NSEL_EXTPIN1 } # [doc = "OANP1RBOT"]
# [inline (always)]
pub fn is_cfg_nsel_oanp1rbot (& self) -> bool { * self == CFG_NSEL_A :: CFG_NSEL_OANP1RBOT } # [doc = "OANRTAP"]
# [inline (always)]
pub fn is_cfg_nsel_oanrtap (& self) -> bool { * self == CFG_NSEL_A :: CFG_NSEL_OANRTAP } # [doc = "OANRTOP"]
# [inline (always)]
pub fn is_cfg_nsel_oanrtop (& self) -> bool { * self == CFG_NSEL_A :: CFG_NSEL_OANRTOP } # [doc = "SPARE"]
# [inline (always)]
pub fn is_cfg_nsel_spare (& self) -> bool { * self == CFG_NSEL_A :: CFG_NSEL_SPARE } } # [doc = "Field `CFG_NSEL` writer - Negative OA input selection. Please refer to the device specific datasheet for exact channels available."]
pub type CFG_NSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CFG_NSEL_A > ; impl < 'a , REG , const O : u8 > CFG_NSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "NC"]
# [inline (always)]
pub fn cfg_nsel_nc (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_NSEL_A :: CFG_NSEL_NC) } # [doc = "EXTPIN0"]
# [inline (always)]
pub fn cfg_nsel_extpin0 (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_NSEL_A :: CFG_NSEL_EXTPIN0) } # [doc = "EXTPIN1"]
# [inline (always)]
pub fn cfg_nsel_extpin1 (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_NSEL_A :: CFG_NSEL_EXTPIN1) } # [doc = "OANP1RBOT"]
# [inline (always)]
pub fn cfg_nsel_oanp1rbot (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_NSEL_A :: CFG_NSEL_OANP1RBOT) } # [doc = "OANRTAP"]
# [inline (always)]
pub fn cfg_nsel_oanrtap (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_NSEL_A :: CFG_NSEL_OANRTAP) } # [doc = "OANRTOP"]
# [inline (always)]
pub fn cfg_nsel_oanrtop (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_NSEL_A :: CFG_NSEL_OANRTOP) } # [doc = "SPARE"]
# [inline (always)]
pub fn cfg_nsel_spare (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_NSEL_A :: CFG_NSEL_SPARE) } } # [doc = "Field `CFG_MSEL` reader - MSEL Mux selection. Please refer to the device specific datasheet for exact channels available."]
pub type CFG_MSEL_R = crate :: FieldReader < CFG_MSEL_A > ; # [doc = "MSEL Mux selection. Please refer to the device specific datasheet for exact channels available.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CFG_MSEL_A { # [doc = "0: NC"]
CFG_MSEL_NC = 0 , # [doc = "1: EXTNPIN1"]
CFG_MSEL_EXTNPIN1 = 1 , # [doc = "2: VSS"]
CFG_MSEL_VSS = 2 , # [doc = "3: DAC12OUT"]
CFG_MSEL_DAC12OUT = 3 , # [doc = "4: OANM1RTOP"]
CFG_MSEL_OANM1RTOP = 4 , } impl From < CFG_MSEL_A > for u8 { # [inline (always)]
fn from (variant : CFG_MSEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for CFG_MSEL_A { type Ux = u8 ; } impl CFG_MSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CFG_MSEL_A > { match self . bits { 0 => Some (CFG_MSEL_A :: CFG_MSEL_NC) , 1 => Some (CFG_MSEL_A :: CFG_MSEL_EXTNPIN1) , 2 => Some (CFG_MSEL_A :: CFG_MSEL_VSS) , 3 => Some (CFG_MSEL_A :: CFG_MSEL_DAC12OUT) , 4 => Some (CFG_MSEL_A :: CFG_MSEL_OANM1RTOP) , _ => None , } } # [doc = "NC"]
# [inline (always)]
pub fn is_cfg_msel_nc (& self) -> bool { * self == CFG_MSEL_A :: CFG_MSEL_NC } # [doc = "EXTNPIN1"]
# [inline (always)]
pub fn is_cfg_msel_extnpin1 (& self) -> bool { * self == CFG_MSEL_A :: CFG_MSEL_EXTNPIN1 } # [doc = "VSS"]
# [inline (always)]
pub fn is_cfg_msel_vss (& self) -> bool { * self == CFG_MSEL_A :: CFG_MSEL_VSS } # [doc = "DAC12OUT"]
# [inline (always)]
pub fn is_cfg_msel_dac12out (& self) -> bool { * self == CFG_MSEL_A :: CFG_MSEL_DAC12OUT } # [doc = "OANM1RTOP"]
# [inline (always)]
pub fn is_cfg_msel_oanm1rtop (& self) -> bool { * self == CFG_MSEL_A :: CFG_MSEL_OANM1RTOP } } # [doc = "Field `CFG_MSEL` writer - MSEL Mux selection. Please refer to the device specific datasheet for exact channels available."]
pub type CFG_MSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CFG_MSEL_A > ; impl < 'a , REG , const O : u8 > CFG_MSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "NC"]
# [inline (always)]
pub fn cfg_msel_nc (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_MSEL_A :: CFG_MSEL_NC) } # [doc = "EXTNPIN1"]
# [inline (always)]
pub fn cfg_msel_extnpin1 (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_MSEL_A :: CFG_MSEL_EXTNPIN1) } # [doc = "VSS"]
# [inline (always)]
pub fn cfg_msel_vss (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_MSEL_A :: CFG_MSEL_VSS) } # [doc = "DAC12OUT"]
# [inline (always)]
pub fn cfg_msel_dac12out (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_MSEL_A :: CFG_MSEL_DAC12OUT) } # [doc = "OANM1RTOP"]
# [inline (always)]
pub fn cfg_msel_oanm1rtop (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_MSEL_A :: CFG_MSEL_OANM1RTOP) } } # [doc = "Field `CFG_GAIN` reader - Gain setting. Refer to TRM for enumeration information."]
pub type CFG_GAIN_R = crate :: FieldReader ; # [doc = "Field `CFG_GAIN` writer - Gain setting. Refer to TRM for enumeration information."]
pub type CFG_GAIN_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O > ; impl R { # [doc = "Bits 0:1 - Chopping enable."]
# [inline (always)]
pub fn cfg_chop (& self) -> CFG_CHOP_R { CFG_CHOP_R :: new ((self . bits & 3) as u8) } # [doc = "Bit 2 - Enable output pin"]
# [inline (always)]
pub fn cfg_outpin (& self) -> CFG_OUTPIN_R { CFG_OUTPIN_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bits 3:6 - Positive OA input selection. Please refer to the device specific datasheet for exact channels available."]
# [inline (always)]
pub fn cfg_psel (& self) -> CFG_PSEL_R { CFG_PSEL_R :: new (((self . bits >> 3) & 0x0f) as u8) } # [doc = "Bits 7:9 - Negative OA input selection. Please refer to the device specific datasheet for exact channels available."]
# [inline (always)]
pub fn cfg_nsel (& self) -> CFG_NSEL_R { CFG_NSEL_R :: new (((self . bits >> 7) & 7) as u8) } # [doc = "Bits 10:12 - MSEL Mux selection. Please refer to the device specific datasheet for exact channels available."]
# [inline (always)]
pub fn cfg_msel (& self) -> CFG_MSEL_R { CFG_MSEL_R :: new (((self . bits >> 10) & 7) as u8) } # [doc = "Bits 13:15 - Gain setting. Refer to TRM for enumeration information."]
# [inline (always)]
pub fn cfg_gain (& self) -> CFG_GAIN_R { CFG_GAIN_R :: new (((self . bits >> 13) & 7) as u8) } } impl W { # [doc = "Bits 0:1 - Chopping enable."]
# [inline (always)]
# [must_use]
pub fn cfg_chop (& mut self) -> CFG_CHOP_W < CFG_SPEC , 0 > { CFG_CHOP_W :: new (self) } # [doc = "Bit 2 - Enable output pin"]
# [inline (always)]
# [must_use]
pub fn cfg_outpin (& mut self) -> CFG_OUTPIN_W < CFG_SPEC , 2 > { CFG_OUTPIN_W :: new (self) } # [doc = "Bits 3:6 - Positive OA input selection. Please refer to the device specific datasheet for exact channels available."]
# [inline (always)]
# [must_use]
pub fn cfg_psel (& mut self) -> CFG_PSEL_W < CFG_SPEC , 3 > { CFG_PSEL_W :: new (self) } # [doc = "Bits 7:9 - Negative OA input selection. Please refer to the device specific datasheet for exact channels available."]
# [inline (always)]
# [must_use]
pub fn cfg_nsel (& mut self) -> CFG_NSEL_W < CFG_SPEC , 7 > { CFG_NSEL_W :: new (self) } # [doc = "Bits 10:12 - MSEL Mux selection. Please refer to the device specific datasheet for exact channels available."]
# [inline (always)]
# [must_use]
pub fn cfg_msel (& mut self) -> CFG_MSEL_W < CFG_SPEC , 10 > { CFG_MSEL_W :: new (self) } # [doc = "Bits 13:15 - Gain setting. Refer to TRM for enumeration information."]
# [inline (always)]
# [must_use]
pub fn cfg_gain (& mut self) -> CFG_GAIN_W < CFG_SPEC , 13 > { CFG_GAIN_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Configuration Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cfg::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cfg::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CFG_SPEC ; impl crate :: RegisterSpec for CFG_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cfg::R`](R) reader structure"]
impl crate :: Readable for CFG_SPEC { } # [doc = "`write(|w| ..)` method takes [`cfg::W`](W) writer structure"]
impl crate :: Writable for CFG_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CFG to value 0"]
impl crate :: Resettable for CFG_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "STAT (r) register accessor: Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@stat`]
module"]
pub type STAT = crate :: Reg < stat :: STAT_SPEC > ; # [doc = "Status Register"]
pub mod stat { # [doc = "Register `STAT` reader"]
pub type R = crate :: R < STAT_SPEC > ; # [doc = "Field `STAT_RDY` reader - OA ready status."]
pub type STAT_RDY_R = crate :: BitReader < STAT_RDY_A > ; # [doc = "OA ready status.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_RDY_A { # [doc = "0: FALSE"]
STAT_RDY_FALSE = 0 , # [doc = "1: TRUE"]
STAT_RDY_TRUE = 1 , } impl From < STAT_RDY_A > for bool { # [inline (always)]
fn from (variant : STAT_RDY_A) -> Self { variant as u8 != 0 } } impl STAT_RDY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_RDY_A { match self . bits { false => STAT_RDY_A :: STAT_RDY_FALSE , true => STAT_RDY_A :: STAT_RDY_TRUE , } } # [doc = "FALSE"]
# [inline (always)]
pub fn is_stat_rdy_false (& self) -> bool { * self == STAT_RDY_A :: STAT_RDY_FALSE } # [doc = "TRUE"]
# [inline (always)]
pub fn is_stat_rdy_true (& self) -> bool { * self == STAT_RDY_A :: STAT_RDY_TRUE } } impl R { # [doc = "Bit 0 - OA ready status."]
# [inline (always)]
pub fn stat_rdy (& self) -> STAT_RDY_R { STAT_RDY_R :: new ((self . bits & 1) != 0) } } # [doc = "Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct STAT_SPEC ; impl crate :: RegisterSpec for STAT_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`stat::R`](R) reader structure"]
impl crate :: Readable for STAT_SPEC { } # [doc = "`reset()` method sets STAT to value 0"]
impl crate :: Resettable for STAT_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } } # [doc = "PERIPHERALREGION"]
pub struct TIMG1 { _marker : PhantomData < * const () > } unsafe impl Send for TIMG1 { } impl TIMG1 { # [doc = r"Pointer to the register block"]
pub const PTR : * const timg1 :: RegisterBlock = 0x4008_6000 as * const _ ; # [doc = r"Return the pointer to the register block"]
# [inline (always)]
pub const fn ptr () -> * const timg1 :: RegisterBlock { Self :: PTR } # [doc = r" Steal an instance of this peripheral"]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Ensure that the new instance of the peripheral cannot be used in a way"]
# [doc = r" that may race with any existing instances, for example by only"]
# [doc = r" accessing read-only or write-only registers, or by consuming the"]
# [doc = r" original peripheral and using critical sections to coordinate"]
# [doc = r" access between multiple new instances."]
# [doc = r""]
# [doc = r" Additionally, other software such as HALs may rely on only one"]
# [doc = r" peripheral instance existing to ensure memory safety; ensure"]
# [doc = r" no stolen instances are passed to such software."]
pub unsafe fn steal () -> Self { Self { _marker : PhantomData } } } impl Deref for TIMG1 { type Target = timg1 :: RegisterBlock ; # [inline (always)]
fn deref (& self) -> & Self :: Target { unsafe { & * Self :: PTR } } } impl core :: fmt :: Debug for TIMG1 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("TIMG1") . finish () } } # [doc = "PERIPHERALREGION"]
pub mod timg1 { # [doc = r"Register block"]
# [repr (C)]
pub struct RegisterBlock { _reserved0 : [u8 ; 0x0400]
, # [doc = "0x400 - Subsciber Port 0"]
pub fsub_0 : FSUB_0 , # [doc = "0x404 - Subscriber Port 1"]
pub fsub_1 : FSUB_1 , _reserved2 : [u8 ; 0x3c]
, # [doc = "0x444 - Publisher Port 0"]
pub fpub_0 : FPUB_0 , # [doc = "0x448 - Publisher Port 1"]
pub fpub_1 : FPUB_1 , _reserved4 : [u8 ; 0x03b4]
, # [doc = "0x800 - Power enable"]
pub pwren : PWREN , # [doc = "0x804 - Reset Control"]
pub rstctl : RSTCTL , _reserved6 : [u8 ; 0x0c]
, # [doc = "0x814 - Status Register"]
pub stat : STAT , _reserved7 : [u8 ; 0x07e8]
, # [doc = "0x1000 - Clock Divider"]
pub clkdiv : CLKDIV , _reserved8 : [u8 ; 0x04]
, # [doc = "0x1008 - Clock Select for Ultra Low Power peripherals"]
pub clksel : CLKSEL , _reserved9 : [u8 ; 0x0c]
, # [doc = "0x1018 - Peripheral Debug Control"]
pub pdbgctl : PDBGCTL , _reserved10 : [u8 ; 0x04]
, # [doc = "0x1020 - Interrupt index"]
pub iidx : IIDX , _reserved11 : [u8 ; 0x04]
, # [doc = "0x1028 - Interrupt mask"]
pub imask : IMASK , _reserved12 : [u8 ; 0x04]
, # [doc = "0x1030 - Raw interrupt status"]
pub ris : RIS , _reserved13 : [u8 ; 0x04]
, # [doc = "0x1038 - Masked interrupt status"]
pub mis : MIS , _reserved14 : [u8 ; 0x04]
, # [doc = "0x1040 - Interrupt set"]
pub iset : ISET , _reserved15 : [u8 ; 0x04]
, # [doc = "0x1048 - Interrupt clear"]
pub iclr : ICLR , _reserved16 : [u8 ; 0x94]
, # [doc = "0x10e0 - Event Mode"]
pub evt_mode : EVT_MODE , _reserved17 : [u8 ; 0x18]
, # [doc = "0x10fc - Module Description"]
pub desc : DESC , # [doc = "0x1100 - CCP Direction"]
pub ccpd : CCPD , # [doc = "0x1104 - Output Disable"]
pub odis : ODIS , # [doc = "0x1108 - Counter Clock Control Register"]
pub cclkctl : CCLKCTL , # [doc = "0x110c - Clock Prescale Register"]
pub cps : CPS , # [doc = "0x1110 - Clock prescale count status register"]
pub cpsv : CPSV , # [doc = "0x1114 - Timer Cross Trigger Control Register"]
pub cttrigctl : CTTRIGCTL , _reserved24 : [u8 ; 0x04]
, # [doc = "0x111c - Timer Cross Trigger Register"]
pub cttrig : CTTRIG , _reserved25 : [u8 ; 0x06e0]
, # [doc = "0x1800 - Counter Register"]
pub ctr : CTR , # [doc = "0x1804 - Counter Control Register"]
pub ctrctl : CTRCTL , # [doc = "0x1808 - Load Register"]
pub load : LOAD , _reserved28 : [u8 ; 0x04]
, # [doc = "0x1810..0x1818 - Capture or Compare Register 0 to Capture or Compare Register 1"]
pub cc_01 : [CC_01 ; 2]
, _reserved29 : [u8 ; 0x18]
, # [doc = "0x1830..0x1838 - Capture or Compare Control Registers"]
pub ccctl_01 : [CCCTL_01 ; 2]
, _reserved30 : [u8 ; 0x18]
, # [doc = "0x1850..0x1858 - CCP Output Control Registers"]
pub octl_01 : [OCTL_01 ; 2]
, _reserved31 : [u8 ; 0x18]
, # [doc = "0x1870..0x1878 - Capture or Compare Action Registers"]
pub ccact_01 : [CCACT_01 ; 2]
, _reserved32 : [u8 ; 0x08]
, # [doc = "0x1880..0x1888 - Input Filter Control Register"]
pub ifctl_01 : [IFCTL_01 ; 2]
, _reserved33 : [u8 ; 0x28]
, # [doc = "0x18b0 - Trigger Select"]
pub tsel : TSEL , } # [doc = "FSUB_0 (rw) register accessor: Subsciber Port 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fsub_0`]
module"]
pub type FSUB_0 = crate :: Reg < fsub_0 :: FSUB_0_SPEC > ; # [doc = "Subsciber Port 0"]
pub mod fsub_0 { # [doc = "Register `FSUB_0` reader"]
pub type R = crate :: R < FSUB_0_SPEC > ; # [doc = "Register `FSUB_0` writer"]
pub type W = crate :: W < FSUB_0_SPEC > ; # [doc = "Field `FSUB_0_CHANID` reader - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FSUB_0_CHANID_R = crate :: FieldReader < FSUB_0_CHANID_A > ; # [doc = "0 = disconnected. 1-15 = connected to channelID = CHANID.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FSUB_0_CHANID_A { # [doc = "0: UNCONNECTED"]
FSUB_0_CHANID_UNCONNECTED = 0 , } impl From < FSUB_0_CHANID_A > for u8 { # [inline (always)]
fn from (variant : FSUB_0_CHANID_A) -> Self { variant as _ } } impl crate :: FieldSpec for FSUB_0_CHANID_A { type Ux = u8 ; } impl FSUB_0_CHANID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < FSUB_0_CHANID_A > { match self . bits { 0 => Some (FSUB_0_CHANID_A :: FSUB_0_CHANID_UNCONNECTED) , _ => None , } } # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn is_fsub_0_chanid_unconnected (& self) -> bool { * self == FSUB_0_CHANID_A :: FSUB_0_CHANID_UNCONNECTED } } # [doc = "Field `FSUB_0_CHANID` writer - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FSUB_0_CHANID_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , FSUB_0_CHANID_A > ; impl < 'a , REG , const O : u8 > FSUB_0_CHANID_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn fsub_0_chanid_unconnected (self) -> & 'a mut crate :: W < REG > { self . variant (FSUB_0_CHANID_A :: FSUB_0_CHANID_UNCONNECTED) } } impl R { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
pub fn fsub_0_chanid (& self) -> FSUB_0_CHANID_R { FSUB_0_CHANID_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
# [must_use]
pub fn fsub_0_chanid (& mut self) -> FSUB_0_CHANID_W < FSUB_0_SPEC , 0 > { FSUB_0_CHANID_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Subsciber Port 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_0::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FSUB_0_SPEC ; impl crate :: RegisterSpec for FSUB_0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fsub_0::R`](R) reader structure"]
impl crate :: Readable for FSUB_0_SPEC { } # [doc = "`write(|w| ..)` method takes [`fsub_0::W`](W) writer structure"]
impl crate :: Writable for FSUB_0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FSUB_0 to value 0"]
impl crate :: Resettable for FSUB_0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "FSUB_1 (rw) register accessor: Subscriber Port 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fsub_1`]
module"]
pub type FSUB_1 = crate :: Reg < fsub_1 :: FSUB_1_SPEC > ; # [doc = "Subscriber Port 1"]
pub mod fsub_1 { # [doc = "Register `FSUB_1` reader"]
pub type R = crate :: R < FSUB_1_SPEC > ; # [doc = "Register `FSUB_1` writer"]
pub type W = crate :: W < FSUB_1_SPEC > ; # [doc = "Field `FSUB_1_CHANID` reader - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FSUB_1_CHANID_R = crate :: FieldReader < FSUB_1_CHANID_A > ; # [doc = "0 = disconnected. 1-15 = connected to channelID = CHANID.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FSUB_1_CHANID_A { # [doc = "0: UNCONNECTED"]
FSUB_1_CHANID_UNCONNECTED = 0 , } impl From < FSUB_1_CHANID_A > for u8 { # [inline (always)]
fn from (variant : FSUB_1_CHANID_A) -> Self { variant as _ } } impl crate :: FieldSpec for FSUB_1_CHANID_A { type Ux = u8 ; } impl FSUB_1_CHANID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < FSUB_1_CHANID_A > { match self . bits { 0 => Some (FSUB_1_CHANID_A :: FSUB_1_CHANID_UNCONNECTED) , _ => None , } } # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn is_fsub_1_chanid_unconnected (& self) -> bool { * self == FSUB_1_CHANID_A :: FSUB_1_CHANID_UNCONNECTED } } # [doc = "Field `FSUB_1_CHANID` writer - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FSUB_1_CHANID_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , FSUB_1_CHANID_A > ; impl < 'a , REG , const O : u8 > FSUB_1_CHANID_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn fsub_1_chanid_unconnected (self) -> & 'a mut crate :: W < REG > { self . variant (FSUB_1_CHANID_A :: FSUB_1_CHANID_UNCONNECTED) } } impl R { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
pub fn fsub_1_chanid (& self) -> FSUB_1_CHANID_R { FSUB_1_CHANID_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
# [must_use]
pub fn fsub_1_chanid (& mut self) -> FSUB_1_CHANID_W < FSUB_1_SPEC , 0 > { FSUB_1_CHANID_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Subscriber Port 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_1::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FSUB_1_SPEC ; impl crate :: RegisterSpec for FSUB_1_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fsub_1::R`](R) reader structure"]
impl crate :: Readable for FSUB_1_SPEC { } # [doc = "`write(|w| ..)` method takes [`fsub_1::W`](W) writer structure"]
impl crate :: Writable for FSUB_1_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FSUB_1 to value 0"]
impl crate :: Resettable for FSUB_1_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "FPUB_0 (rw) register accessor: Publisher Port 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fpub_0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fpub_0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fpub_0`]
module"]
pub type FPUB_0 = crate :: Reg < fpub_0 :: FPUB_0_SPEC > ; # [doc = "Publisher Port 0"]
pub mod fpub_0 { # [doc = "Register `FPUB_0` reader"]
pub type R = crate :: R < FPUB_0_SPEC > ; # [doc = "Register `FPUB_0` writer"]
pub type W = crate :: W < FPUB_0_SPEC > ; # [doc = "Field `FPUB_0_CHANID` reader - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FPUB_0_CHANID_R = crate :: FieldReader < FPUB_0_CHANID_A > ; # [doc = "0 = disconnected. 1-15 = connected to channelID = CHANID.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FPUB_0_CHANID_A { # [doc = "0: UNCONNECTED"]
FPUB_0_CHANID_UNCONNECTED = 0 , } impl From < FPUB_0_CHANID_A > for u8 { # [inline (always)]
fn from (variant : FPUB_0_CHANID_A) -> Self { variant as _ } } impl crate :: FieldSpec for FPUB_0_CHANID_A { type Ux = u8 ; } impl FPUB_0_CHANID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < FPUB_0_CHANID_A > { match self . bits { 0 => Some (FPUB_0_CHANID_A :: FPUB_0_CHANID_UNCONNECTED) , _ => None , } } # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn is_fpub_0_chanid_unconnected (& self) -> bool { * self == FPUB_0_CHANID_A :: FPUB_0_CHANID_UNCONNECTED } } # [doc = "Field `FPUB_0_CHANID` writer - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FPUB_0_CHANID_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , FPUB_0_CHANID_A > ; impl < 'a , REG , const O : u8 > FPUB_0_CHANID_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn fpub_0_chanid_unconnected (self) -> & 'a mut crate :: W < REG > { self . variant (FPUB_0_CHANID_A :: FPUB_0_CHANID_UNCONNECTED) } } impl R { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
pub fn fpub_0_chanid (& self) -> FPUB_0_CHANID_R { FPUB_0_CHANID_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
# [must_use]
pub fn fpub_0_chanid (& mut self) -> FPUB_0_CHANID_W < FPUB_0_SPEC , 0 > { FPUB_0_CHANID_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Publisher Port 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fpub_0::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fpub_0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FPUB_0_SPEC ; impl crate :: RegisterSpec for FPUB_0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fpub_0::R`](R) reader structure"]
impl crate :: Readable for FPUB_0_SPEC { } # [doc = "`write(|w| ..)` method takes [`fpub_0::W`](W) writer structure"]
impl crate :: Writable for FPUB_0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FPUB_0 to value 0"]
impl crate :: Resettable for FPUB_0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "FPUB_1 (rw) register accessor: Publisher Port 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fpub_1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fpub_1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fpub_1`]
module"]
pub type FPUB_1 = crate :: Reg < fpub_1 :: FPUB_1_SPEC > ; # [doc = "Publisher Port 1"]
pub mod fpub_1 { # [doc = "Register `FPUB_1` reader"]
pub type R = crate :: R < FPUB_1_SPEC > ; # [doc = "Register `FPUB_1` writer"]
pub type W = crate :: W < FPUB_1_SPEC > ; # [doc = "Field `FPUB_1_CHANID` reader - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FPUB_1_CHANID_R = crate :: FieldReader < FPUB_1_CHANID_A > ; # [doc = "0 = disconnected. 1-15 = connected to channelID = CHANID.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FPUB_1_CHANID_A { # [doc = "0: UNCONNECTED"]
FPUB_1_CHANID_UNCONNECTED = 0 , } impl From < FPUB_1_CHANID_A > for u8 { # [inline (always)]
fn from (variant : FPUB_1_CHANID_A) -> Self { variant as _ } } impl crate :: FieldSpec for FPUB_1_CHANID_A { type Ux = u8 ; } impl FPUB_1_CHANID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < FPUB_1_CHANID_A > { match self . bits { 0 => Some (FPUB_1_CHANID_A :: FPUB_1_CHANID_UNCONNECTED) , _ => None , } } # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn is_fpub_1_chanid_unconnected (& self) -> bool { * self == FPUB_1_CHANID_A :: FPUB_1_CHANID_UNCONNECTED } } # [doc = "Field `FPUB_1_CHANID` writer - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FPUB_1_CHANID_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , FPUB_1_CHANID_A > ; impl < 'a , REG , const O : u8 > FPUB_1_CHANID_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn fpub_1_chanid_unconnected (self) -> & 'a mut crate :: W < REG > { self . variant (FPUB_1_CHANID_A :: FPUB_1_CHANID_UNCONNECTED) } } impl R { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
pub fn fpub_1_chanid (& self) -> FPUB_1_CHANID_R { FPUB_1_CHANID_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
# [must_use]
pub fn fpub_1_chanid (& mut self) -> FPUB_1_CHANID_W < FPUB_1_SPEC , 0 > { FPUB_1_CHANID_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Publisher Port 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fpub_1::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fpub_1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FPUB_1_SPEC ; impl crate :: RegisterSpec for FPUB_1_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fpub_1::R`](R) reader structure"]
impl crate :: Readable for FPUB_1_SPEC { } # [doc = "`write(|w| ..)` method takes [`fpub_1::W`](W) writer structure"]
impl crate :: Writable for FPUB_1_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FPUB_1 to value 0"]
impl crate :: Resettable for FPUB_1_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "PWREN (rw) register accessor: Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pwren`]
module"]
pub type PWREN = crate :: Reg < pwren :: PWREN_SPEC > ; # [doc = "Power enable"]
pub mod pwren { # [doc = "Register `PWREN` reader"]
pub type R = crate :: R < PWREN_SPEC > ; # [doc = "Register `PWREN` writer"]
pub type W = crate :: W < PWREN_SPEC > ; # [doc = "Field `PWREN_ENABLE` reader - Enable the power"]
pub type PWREN_ENABLE_R = crate :: BitReader < PWREN_ENABLE_A > ; # [doc = "Enable the power\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PWREN_ENABLE_A { # [doc = "0: DISABLE"]
PWREN_ENABLE_DISABLE = 0 , # [doc = "1: ENABLE"]
PWREN_ENABLE_ENABLE = 1 , } impl From < PWREN_ENABLE_A > for bool { # [inline (always)]
fn from (variant : PWREN_ENABLE_A) -> Self { variant as u8 != 0 } } impl PWREN_ENABLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PWREN_ENABLE_A { match self . bits { false => PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE , true => PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_pwren_enable_disable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_pwren_enable_enable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE } } # [doc = "Field `PWREN_ENABLE` writer - Enable the power"]
pub type PWREN_ENABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PWREN_ENABLE_A > ; impl < 'a , REG , const O : u8 > PWREN_ENABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn pwren_enable_disable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn pwren_enable_enable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE) } } # [doc = "KEY to allow Power State Change\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum PWREN_KEY_AW { # [doc = "38: _TO_UNLOCK_W_"]
PWREN_KEY_UNLOCK_W = 38 , } impl From < PWREN_KEY_AW > for u8 { # [inline (always)]
fn from (variant : PWREN_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for PWREN_KEY_AW { type Ux = u8 ; } # [doc = "Field `PWREN_KEY` writer - KEY to allow Power State Change"]
pub type PWREN_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , PWREN_KEY_AW > ; impl < 'a , REG , const O : u8 > PWREN_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn pwren_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_KEY_AW :: PWREN_KEY_UNLOCK_W) } } impl R { # [doc = "Bit 0 - Enable the power"]
# [inline (always)]
pub fn pwren_enable (& self) -> PWREN_ENABLE_R { PWREN_ENABLE_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - Enable the power"]
# [inline (always)]
# [must_use]
pub fn pwren_enable (& mut self) -> PWREN_ENABLE_W < PWREN_SPEC , 0 > { PWREN_ENABLE_W :: new (self) } # [doc = "Bits 24:31 - KEY to allow Power State Change"]
# [inline (always)]
# [must_use]
pub fn pwren_key (& mut self) -> PWREN_KEY_W < PWREN_SPEC , 24 > { PWREN_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PWREN_SPEC ; impl crate :: RegisterSpec for PWREN_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pwren::R`](R) reader structure"]
impl crate :: Readable for PWREN_SPEC { } # [doc = "`write(|w| ..)` method takes [`pwren::W`](W) writer structure"]
impl crate :: Writable for PWREN_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PWREN to value 0"]
impl crate :: Resettable for PWREN_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RSTCTL (w) register accessor: Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rstctl`]
module"]
pub type RSTCTL = crate :: Reg < rstctl :: RSTCTL_SPEC > ; # [doc = "Reset Control"]
pub mod rstctl { # [doc = "Register `RSTCTL` writer"]
pub type W = crate :: W < RSTCTL_SPEC > ; # [doc = "Assert reset to the peripheral\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETASSERT_AW { # [doc = "0: NOP"]
RSTCTL_RESETASSERT_NOP = 0 , # [doc = "1: ASSERT"]
RSTCTL_RESETASSERT_ASSERT = 1 , } impl From < RSTCTL_RESETASSERT_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETASSERT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETASSERT` writer - Assert reset to the peripheral"]
pub type RSTCTL_RESETASSERT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETASSERT_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETASSERT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetassert_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_NOP) } # [doc = "ASSERT"]
# [inline (always)]
pub fn rstctl_resetassert_assert (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_ASSERT) } } # [doc = "Clear the RESETSTKY bit in the STAT register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETSTKYCLR_AW { # [doc = "0: NOP"]
RSTCTL_RESETSTKYCLR_NOP = 0 , # [doc = "1: CLR"]
RSTCTL_RESETSTKYCLR_CLR = 1 , } impl From < RSTCTL_RESETSTKYCLR_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETSTKYCLR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETSTKYCLR` writer - Clear the RESETSTKY bit in the STAT register"]
pub type RSTCTL_RESETSTKYCLR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETSTKYCLR_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETSTKYCLR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetstkyclr_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_NOP) } # [doc = "CLR"]
# [inline (always)]
pub fn rstctl_resetstkyclr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_CLR) } } # [doc = "Unlock key\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum RSTCTL_KEY_AW { # [doc = "177: _TO_UNLOCK_W_"]
RSTCTL_KEY_UNLOCK_W = 177 , } impl From < RSTCTL_KEY_AW > for u8 { # [inline (always)]
fn from (variant : RSTCTL_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for RSTCTL_KEY_AW { type Ux = u8 ; } # [doc = "Field `RSTCTL_KEY` writer - Unlock key"]
pub type RSTCTL_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , RSTCTL_KEY_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn rstctl_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_KEY_AW :: RSTCTL_KEY_UNLOCK_W) } } impl W { # [doc = "Bit 0 - Assert reset to the peripheral"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetassert (& mut self) -> RSTCTL_RESETASSERT_W < RSTCTL_SPEC , 0 > { RSTCTL_RESETASSERT_W :: new (self) } # [doc = "Bit 1 - Clear the RESETSTKY bit in the STAT register"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetstkyclr (& mut self) -> RSTCTL_RESETSTKYCLR_W < RSTCTL_SPEC , 1 > { RSTCTL_RESETSTKYCLR_W :: new (self) } # [doc = "Bits 24:31 - Unlock key"]
# [inline (always)]
# [must_use]
pub fn rstctl_key (& mut self) -> RSTCTL_KEY_W < RSTCTL_SPEC , 24 > { RSTCTL_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RSTCTL_SPEC ; impl crate :: RegisterSpec for RSTCTL_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`rstctl::W`](W) writer structure"]
impl crate :: Writable for RSTCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets RSTCTL to value 0"]
impl crate :: Resettable for RSTCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "STAT (r) register accessor: Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@stat`]
module"]
pub type STAT = crate :: Reg < stat :: STAT_SPEC > ; # [doc = "Status Register"]
pub mod stat { # [doc = "Register `STAT` reader"]
pub type R = crate :: R < STAT_SPEC > ; # [doc = "Field `STAT_RESETSTKY` reader - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
pub type STAT_RESETSTKY_R = crate :: BitReader < STAT_RESETSTKY_A > ; # [doc = "This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_RESETSTKY_A { # [doc = "0: NORES"]
STAT_RESETSTKY_NORES = 0 , # [doc = "1: RESET"]
STAT_RESETSTKY_RESET = 1 , } impl From < STAT_RESETSTKY_A > for bool { # [inline (always)]
fn from (variant : STAT_RESETSTKY_A) -> Self { variant as u8 != 0 } } impl STAT_RESETSTKY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_RESETSTKY_A { match self . bits { false => STAT_RESETSTKY_A :: STAT_RESETSTKY_NORES , true => STAT_RESETSTKY_A :: STAT_RESETSTKY_RESET , } } # [doc = "NORES"]
# [inline (always)]
pub fn is_stat_resetstky_nores (& self) -> bool { * self == STAT_RESETSTKY_A :: STAT_RESETSTKY_NORES } # [doc = "RESET"]
# [inline (always)]
pub fn is_stat_resetstky_reset (& self) -> bool { * self == STAT_RESETSTKY_A :: STAT_RESETSTKY_RESET } } impl R { # [doc = "Bit 16 - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
# [inline (always)]
pub fn stat_resetstky (& self) -> STAT_RESETSTKY_R { STAT_RESETSTKY_R :: new (((self . bits >> 16) & 1) != 0) } } # [doc = "Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct STAT_SPEC ; impl crate :: RegisterSpec for STAT_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`stat::R`](R) reader structure"]
impl crate :: Readable for STAT_SPEC { } # [doc = "`reset()` method sets STAT to value 0"]
impl crate :: Resettable for STAT_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CLKDIV (rw) register accessor: Clock Divider\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkdiv::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkdiv::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clkdiv`]
module"]
pub type CLKDIV = crate :: Reg < clkdiv :: CLKDIV_SPEC > ; # [doc = "Clock Divider"]
pub mod clkdiv { # [doc = "Register `CLKDIV` reader"]
pub type R = crate :: R < CLKDIV_SPEC > ; # [doc = "Register `CLKDIV` writer"]
pub type W = crate :: W < CLKDIV_SPEC > ; # [doc = "Field `CLKDIV_RATIO` reader - Selects divide ratio of module clock"]
pub type CLKDIV_RATIO_R = crate :: FieldReader < CLKDIV_RATIO_A > ; # [doc = "Selects divide ratio of module clock\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CLKDIV_RATIO_A { # [doc = "0: DIV_BY_1"]
CLKDIV_RATIO_DIV_BY_1 = 0 , # [doc = "1: DIV_BY_2"]
CLKDIV_RATIO_DIV_BY_2 = 1 , # [doc = "2: DIV_BY_3"]
CLKDIV_RATIO_DIV_BY_3 = 2 , # [doc = "3: DIV_BY_4"]
CLKDIV_RATIO_DIV_BY_4 = 3 , # [doc = "4: DIV_BY_5"]
CLKDIV_RATIO_DIV_BY_5 = 4 , # [doc = "5: DIV_BY_6"]
CLKDIV_RATIO_DIV_BY_6 = 5 , # [doc = "6: DIV_BY_7"]
CLKDIV_RATIO_DIV_BY_7 = 6 , # [doc = "7: DIV_BY_8"]
CLKDIV_RATIO_DIV_BY_8 = 7 , } impl From < CLKDIV_RATIO_A > for u8 { # [inline (always)]
fn from (variant : CLKDIV_RATIO_A) -> Self { variant as _ } } impl crate :: FieldSpec for CLKDIV_RATIO_A { type Ux = u8 ; } impl CLKDIV_RATIO_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKDIV_RATIO_A { match self . bits { 0 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_1 , 1 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_2 , 2 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_3 , 3 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_4 , 4 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_5 , 5 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_6 , 6 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_7 , 7 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_8 , _ => unreachable ! () , } } # [doc = "DIV_BY_1"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_1 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_1 } # [doc = "DIV_BY_2"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_2 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_2 } # [doc = "DIV_BY_3"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_3 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_3 } # [doc = "DIV_BY_4"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_4 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_4 } # [doc = "DIV_BY_5"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_5 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_5 } # [doc = "DIV_BY_6"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_6 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_6 } # [doc = "DIV_BY_7"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_7 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_7 } # [doc = "DIV_BY_8"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_8 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_8 } } # [doc = "Field `CLKDIV_RATIO` writer - Selects divide ratio of module clock"]
pub type CLKDIV_RATIO_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 3 , O , CLKDIV_RATIO_A > ; impl < 'a , REG , const O : u8 > CLKDIV_RATIO_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DIV_BY_1"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_1 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_1) } # [doc = "DIV_BY_2"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_2 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_2) } # [doc = "DIV_BY_3"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_3 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_3) } # [doc = "DIV_BY_4"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_4 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_4) } # [doc = "DIV_BY_5"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_5 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_5) } # [doc = "DIV_BY_6"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_6 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_6) } # [doc = "DIV_BY_7"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_7 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_7) } # [doc = "DIV_BY_8"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_8 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_8) } } impl R { # [doc = "Bits 0:2 - Selects divide ratio of module clock"]
# [inline (always)]
pub fn clkdiv_ratio (& self) -> CLKDIV_RATIO_R { CLKDIV_RATIO_R :: new ((self . bits & 7) as u8) } } impl W { # [doc = "Bits 0:2 - Selects divide ratio of module clock"]
# [inline (always)]
# [must_use]
pub fn clkdiv_ratio (& mut self) -> CLKDIV_RATIO_W < CLKDIV_SPEC , 0 > { CLKDIV_RATIO_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Clock Divider\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkdiv::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkdiv::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CLKDIV_SPEC ; impl crate :: RegisterSpec for CLKDIV_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`clkdiv::R`](R) reader structure"]
impl crate :: Readable for CLKDIV_SPEC { } # [doc = "`write(|w| ..)` method takes [`clkdiv::W`](W) writer structure"]
impl crate :: Writable for CLKDIV_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CLKDIV to value 0"]
impl crate :: Resettable for CLKDIV_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CLKSEL (rw) register accessor: Clock Select for Ultra Low Power peripherals\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clksel::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clksel::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clksel`]
module"]
pub type CLKSEL = crate :: Reg < clksel :: CLKSEL_SPEC > ; # [doc = "Clock Select for Ultra Low Power peripherals"]
pub mod clksel { # [doc = "Register `CLKSEL` reader"]
pub type R = crate :: R < CLKSEL_SPEC > ; # [doc = "Register `CLKSEL` writer"]
pub type W = crate :: W < CLKSEL_SPEC > ; # [doc = "Field `CLKSEL_LFCLK_SEL` reader - Selects LFCLK as clock source if enabled"]
pub type CLKSEL_LFCLK_SEL_R = crate :: BitReader < CLKSEL_LFCLK_SEL_A > ; # [doc = "Selects LFCLK as clock source if enabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKSEL_LFCLK_SEL_A { # [doc = "0: DISABLE"]
CLKSEL_LFCLK_SEL_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKSEL_LFCLK_SEL_ENABLE = 1 , } impl From < CLKSEL_LFCLK_SEL_A > for bool { # [inline (always)]
fn from (variant : CLKSEL_LFCLK_SEL_A) -> Self { variant as u8 != 0 } } impl CLKSEL_LFCLK_SEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKSEL_LFCLK_SEL_A { match self . bits { false => CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_DISABLE , true => CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clksel_lfclk_sel_disable (& self) -> bool { * self == CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clksel_lfclk_sel_enable (& self) -> bool { * self == CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_ENABLE } } # [doc = "Field `CLKSEL_LFCLK_SEL` writer - Selects LFCLK as clock source if enabled"]
pub type CLKSEL_LFCLK_SEL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKSEL_LFCLK_SEL_A > ; impl < 'a , REG , const O : u8 > CLKSEL_LFCLK_SEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clksel_lfclk_sel_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clksel_lfclk_sel_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_ENABLE) } } # [doc = "Field `CLKSEL_MFCLK_SEL` reader - Selects MFCLK as clock source if enabled"]
pub type CLKSEL_MFCLK_SEL_R = crate :: BitReader < CLKSEL_MFCLK_SEL_A > ; # [doc = "Selects MFCLK as clock source if enabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKSEL_MFCLK_SEL_A { # [doc = "0: DISABLE"]
CLKSEL_MFCLK_SEL_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKSEL_MFCLK_SEL_ENABLE = 1 , } impl From < CLKSEL_MFCLK_SEL_A > for bool { # [inline (always)]
fn from (variant : CLKSEL_MFCLK_SEL_A) -> Self { variant as u8 != 0 } } impl CLKSEL_MFCLK_SEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKSEL_MFCLK_SEL_A { match self . bits { false => CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_DISABLE , true => CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clksel_mfclk_sel_disable (& self) -> bool { * self == CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clksel_mfclk_sel_enable (& self) -> bool { * self == CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_ENABLE } } # [doc = "Field `CLKSEL_MFCLK_SEL` writer - Selects MFCLK as clock source if enabled"]
pub type CLKSEL_MFCLK_SEL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKSEL_MFCLK_SEL_A > ; impl < 'a , REG , const O : u8 > CLKSEL_MFCLK_SEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clksel_mfclk_sel_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clksel_mfclk_sel_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_ENABLE) } } # [doc = "Field `CLKSEL_BUSCLK_SEL` reader - Selects BUSCLK as clock source if enabled"]
pub type CLKSEL_BUSCLK_SEL_R = crate :: BitReader < CLKSEL_BUSCLK_SEL_A > ; # [doc = "Selects BUSCLK as clock source if enabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKSEL_BUSCLK_SEL_A { # [doc = "0: DISABLE"]
CLKSEL_BUSCLK_SEL_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKSEL_BUSCLK_SEL_ENABLE = 1 , } impl From < CLKSEL_BUSCLK_SEL_A > for bool { # [inline (always)]
fn from (variant : CLKSEL_BUSCLK_SEL_A) -> Self { variant as u8 != 0 } } impl CLKSEL_BUSCLK_SEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKSEL_BUSCLK_SEL_A { match self . bits { false => CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_DISABLE , true => CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clksel_busclk_sel_disable (& self) -> bool { * self == CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clksel_busclk_sel_enable (& self) -> bool { * self == CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_ENABLE } } # [doc = "Field `CLKSEL_BUSCLK_SEL` writer - Selects BUSCLK as clock source if enabled"]
pub type CLKSEL_BUSCLK_SEL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKSEL_BUSCLK_SEL_A > ; impl < 'a , REG , const O : u8 > CLKSEL_BUSCLK_SEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clksel_busclk_sel_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clksel_busclk_sel_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_ENABLE) } } impl R { # [doc = "Bit 1 - Selects LFCLK as clock source if enabled"]
# [inline (always)]
pub fn clksel_lfclk_sel (& self) -> CLKSEL_LFCLK_SEL_R { CLKSEL_LFCLK_SEL_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Selects MFCLK as clock source if enabled"]
# [inline (always)]
pub fn clksel_mfclk_sel (& self) -> CLKSEL_MFCLK_SEL_R { CLKSEL_MFCLK_SEL_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Selects BUSCLK as clock source if enabled"]
# [inline (always)]
pub fn clksel_busclk_sel (& self) -> CLKSEL_BUSCLK_SEL_R { CLKSEL_BUSCLK_SEL_R :: new (((self . bits >> 3) & 1) != 0) } } impl W { # [doc = "Bit 1 - Selects LFCLK as clock source if enabled"]
# [inline (always)]
# [must_use]
pub fn clksel_lfclk_sel (& mut self) -> CLKSEL_LFCLK_SEL_W < CLKSEL_SPEC , 1 > { CLKSEL_LFCLK_SEL_W :: new (self) } # [doc = "Bit 2 - Selects MFCLK as clock source if enabled"]
# [inline (always)]
# [must_use]
pub fn clksel_mfclk_sel (& mut self) -> CLKSEL_MFCLK_SEL_W < CLKSEL_SPEC , 2 > { CLKSEL_MFCLK_SEL_W :: new (self) } # [doc = "Bit 3 - Selects BUSCLK as clock source if enabled"]
# [inline (always)]
# [must_use]
pub fn clksel_busclk_sel (& mut self) -> CLKSEL_BUSCLK_SEL_W < CLKSEL_SPEC , 3 > { CLKSEL_BUSCLK_SEL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Clock Select for Ultra Low Power peripherals\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clksel::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clksel::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CLKSEL_SPEC ; impl crate :: RegisterSpec for CLKSEL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`clksel::R`](R) reader structure"]
impl crate :: Readable for CLKSEL_SPEC { } # [doc = "`write(|w| ..)` method takes [`clksel::W`](W) writer structure"]
impl crate :: Writable for CLKSEL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CLKSEL to value 0"]
impl crate :: Resettable for CLKSEL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "PDBGCTL (rw) register accessor: Peripheral Debug Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pdbgctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pdbgctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pdbgctl`]
module"]
pub type PDBGCTL = crate :: Reg < pdbgctl :: PDBGCTL_SPEC > ; # [doc = "Peripheral Debug Control"]
pub mod pdbgctl { # [doc = "Register `PDBGCTL` reader"]
pub type R = crate :: R < PDBGCTL_SPEC > ; # [doc = "Register `PDBGCTL` writer"]
pub type W = crate :: W < PDBGCTL_SPEC > ; # [doc = "Field `PDBGCTL_FREE` reader - Free run control"]
pub type PDBGCTL_FREE_R = crate :: BitReader < PDBGCTL_FREE_A > ; # [doc = "Free run control\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PDBGCTL_FREE_A { # [doc = "0: STOP"]
PDBGCTL_FREE_STOP = 0 , # [doc = "1: RUN"]
PDBGCTL_FREE_RUN = 1 , } impl From < PDBGCTL_FREE_A > for bool { # [inline (always)]
fn from (variant : PDBGCTL_FREE_A) -> Self { variant as u8 != 0 } } impl PDBGCTL_FREE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PDBGCTL_FREE_A { match self . bits { false => PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP , true => PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN , } } # [doc = "STOP"]
# [inline (always)]
pub fn is_pdbgctl_free_stop (& self) -> bool { * self == PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP } # [doc = "RUN"]
# [inline (always)]
pub fn is_pdbgctl_free_run (& self) -> bool { * self == PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN } } # [doc = "Field `PDBGCTL_FREE` writer - Free run control"]
pub type PDBGCTL_FREE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PDBGCTL_FREE_A > ; impl < 'a , REG , const O : u8 > PDBGCTL_FREE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "STOP"]
# [inline (always)]
pub fn pdbgctl_free_stop (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP) } # [doc = "RUN"]
# [inline (always)]
pub fn pdbgctl_free_run (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN) } } # [doc = "Field `PDBGCTL_SOFT` reader - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
pub type PDBGCTL_SOFT_R = crate :: BitReader < PDBGCTL_SOFT_A > ; # [doc = "Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PDBGCTL_SOFT_A { # [doc = "0: IMMEDIATE"]
PDBGCTL_SOFT_IMMEDIATE = 0 , # [doc = "1: DELAYED"]
PDBGCTL_SOFT_DELAYED = 1 , } impl From < PDBGCTL_SOFT_A > for bool { # [inline (always)]
fn from (variant : PDBGCTL_SOFT_A) -> Self { variant as u8 != 0 } } impl PDBGCTL_SOFT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PDBGCTL_SOFT_A { match self . bits { false => PDBGCTL_SOFT_A :: PDBGCTL_SOFT_IMMEDIATE , true => PDBGCTL_SOFT_A :: PDBGCTL_SOFT_DELAYED , } } # [doc = "IMMEDIATE"]
# [inline (always)]
pub fn is_pdbgctl_soft_immediate (& self) -> bool { * self == PDBGCTL_SOFT_A :: PDBGCTL_SOFT_IMMEDIATE } # [doc = "DELAYED"]
# [inline (always)]
pub fn is_pdbgctl_soft_delayed (& self) -> bool { * self == PDBGCTL_SOFT_A :: PDBGCTL_SOFT_DELAYED } } # [doc = "Field `PDBGCTL_SOFT` writer - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
pub type PDBGCTL_SOFT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PDBGCTL_SOFT_A > ; impl < 'a , REG , const O : u8 > PDBGCTL_SOFT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "IMMEDIATE"]
# [inline (always)]
pub fn pdbgctl_soft_immediate (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_SOFT_A :: PDBGCTL_SOFT_IMMEDIATE) } # [doc = "DELAYED"]
# [inline (always)]
pub fn pdbgctl_soft_delayed (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_SOFT_A :: PDBGCTL_SOFT_DELAYED) } } impl R { # [doc = "Bit 0 - Free run control"]
# [inline (always)]
pub fn pdbgctl_free (& self) -> PDBGCTL_FREE_R { PDBGCTL_FREE_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
# [inline (always)]
pub fn pdbgctl_soft (& self) -> PDBGCTL_SOFT_R { PDBGCTL_SOFT_R :: new (((self . bits >> 1) & 1) != 0) } } impl W { # [doc = "Bit 0 - Free run control"]
# [inline (always)]
# [must_use]
pub fn pdbgctl_free (& mut self) -> PDBGCTL_FREE_W < PDBGCTL_SPEC , 0 > { PDBGCTL_FREE_W :: new (self) } # [doc = "Bit 1 - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
# [inline (always)]
# [must_use]
pub fn pdbgctl_soft (& mut self) -> PDBGCTL_SOFT_W < PDBGCTL_SPEC , 1 > { PDBGCTL_SOFT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Peripheral Debug Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pdbgctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pdbgctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PDBGCTL_SPEC ; impl crate :: RegisterSpec for PDBGCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pdbgctl::R`](R) reader structure"]
impl crate :: Readable for PDBGCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`pdbgctl::W`](W) writer structure"]
impl crate :: Writable for PDBGCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PDBGCTL to value 0"]
impl crate :: Resettable for PDBGCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "IIDX (r) register accessor: Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@iidx`]
module"]
pub type IIDX = crate :: Reg < iidx :: IIDX_SPEC > ; # [doc = "Interrupt index"]
pub mod iidx { # [doc = "Register `IIDX` reader"]
pub type R = crate :: R < IIDX_SPEC > ; # [doc = "Field `IIDX_STAT` reader - Interrupt index status"]
pub type IIDX_STAT_R = crate :: FieldReader < IIDX_STAT_A > ; # [doc = "Interrupt index status\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum IIDX_STAT_A { # [doc = "0: NO_INTR"]
IIDX_STAT_NO_INTR = 0 , # [doc = "1: Z"]
IIDX_STAT_Z = 1 , # [doc = "2: L"]
IIDX_STAT_L = 2 , # [doc = "5: CCD0"]
IIDX_STAT_CCD0 = 5 , # [doc = "6: CCD1"]
IIDX_STAT_CCD1 = 6 , # [doc = "7: CCD2"]
IIDX_STAT_CCD2 = 7 , # [doc = "8: CCD3"]
IIDX_STAT_CCD3 = 8 , # [doc = "9: CCU0"]
IIDX_STAT_CCU0 = 9 , # [doc = "10: CCU1"]
IIDX_STAT_CCU1 = 10 , # [doc = "11: CCU2"]
IIDX_STAT_CCU2 = 11 , # [doc = "12: CCU3"]
IIDX_STAT_CCU3 = 12 , # [doc = "13: CCD4"]
IIDX_STAT_CCD4 = 13 , # [doc = "14: CCD5"]
IIDX_STAT_CCD5 = 14 , # [doc = "15: CCU4"]
IIDX_STAT_CCU4 = 15 , # [doc = "16: CCU5"]
IIDX_STAT_CCU5 = 16 , # [doc = "25: F"]
IIDX_STAT_F = 25 , # [doc = "26: TOV"]
IIDX_STAT_TOV = 26 , # [doc = "27: REPC"]
IIDX_STAT_REPC = 27 , # [doc = "28: DC"]
IIDX_STAT_DC = 28 , # [doc = "29: QEIERR"]
IIDX_STAT_QEIERR = 29 , } impl From < IIDX_STAT_A > for u8 { # [inline (always)]
fn from (variant : IIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for IIDX_STAT_A { type Ux = u8 ; } impl IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < IIDX_STAT_A > { match self . bits { 0 => Some (IIDX_STAT_A :: IIDX_STAT_NO_INTR) , 1 => Some (IIDX_STAT_A :: IIDX_STAT_Z) , 2 => Some (IIDX_STAT_A :: IIDX_STAT_L) , 5 => Some (IIDX_STAT_A :: IIDX_STAT_CCD0) , 6 => Some (IIDX_STAT_A :: IIDX_STAT_CCD1) , 7 => Some (IIDX_STAT_A :: IIDX_STAT_CCD2) , 8 => Some (IIDX_STAT_A :: IIDX_STAT_CCD3) , 9 => Some (IIDX_STAT_A :: IIDX_STAT_CCU0) , 10 => Some (IIDX_STAT_A :: IIDX_STAT_CCU1) , 11 => Some (IIDX_STAT_A :: IIDX_STAT_CCU2) , 12 => Some (IIDX_STAT_A :: IIDX_STAT_CCU3) , 13 => Some (IIDX_STAT_A :: IIDX_STAT_CCD4) , 14 => Some (IIDX_STAT_A :: IIDX_STAT_CCD5) , 15 => Some (IIDX_STAT_A :: IIDX_STAT_CCU4) , 16 => Some (IIDX_STAT_A :: IIDX_STAT_CCU5) , 25 => Some (IIDX_STAT_A :: IIDX_STAT_F) , 26 => Some (IIDX_STAT_A :: IIDX_STAT_TOV) , 27 => Some (IIDX_STAT_A :: IIDX_STAT_REPC) , 28 => Some (IIDX_STAT_A :: IIDX_STAT_DC) , 29 => Some (IIDX_STAT_A :: IIDX_STAT_QEIERR) , _ => None , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_iidx_stat_no_intr (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_NO_INTR } # [doc = "Z"]
# [inline (always)]
pub fn is_iidx_stat_z (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_Z } # [doc = "L"]
# [inline (always)]
pub fn is_iidx_stat_l (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_L } # [doc = "CCD0"]
# [inline (always)]
pub fn is_iidx_stat_ccd0 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCD0 } # [doc = "CCD1"]
# [inline (always)]
pub fn is_iidx_stat_ccd1 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCD1 } # [doc = "CCD2"]
# [inline (always)]
pub fn is_iidx_stat_ccd2 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCD2 } # [doc = "CCD3"]
# [inline (always)]
pub fn is_iidx_stat_ccd3 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCD3 } # [doc = "CCU0"]
# [inline (always)]
pub fn is_iidx_stat_ccu0 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCU0 } # [doc = "CCU1"]
# [inline (always)]
pub fn is_iidx_stat_ccu1 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCU1 } # [doc = "CCU2"]
# [inline (always)]
pub fn is_iidx_stat_ccu2 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCU2 } # [doc = "CCU3"]
# [inline (always)]
pub fn is_iidx_stat_ccu3 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCU3 } # [doc = "CCD4"]
# [inline (always)]
pub fn is_iidx_stat_ccd4 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCD4 } # [doc = "CCD5"]
# [inline (always)]
pub fn is_iidx_stat_ccd5 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCD5 } # [doc = "CCU4"]
# [inline (always)]
pub fn is_iidx_stat_ccu4 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCU4 } # [doc = "CCU5"]
# [inline (always)]
pub fn is_iidx_stat_ccu5 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCU5 } # [doc = "F"]
# [inline (always)]
pub fn is_iidx_stat_f (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_F } # [doc = "TOV"]
# [inline (always)]
pub fn is_iidx_stat_tov (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_TOV } # [doc = "REPC"]
# [inline (always)]
pub fn is_iidx_stat_repc (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_REPC } # [doc = "DC"]
# [inline (always)]
pub fn is_iidx_stat_dc (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_DC } # [doc = "QEIERR"]
# [inline (always)]
pub fn is_iidx_stat_qeierr (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_QEIERR } } impl R { # [doc = "Bits 0:7 - Interrupt index status"]
# [inline (always)]
pub fn iidx_stat (& self) -> IIDX_STAT_R { IIDX_STAT_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IIDX_SPEC ; impl crate :: RegisterSpec for IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`iidx::R`](R) reader structure"]
impl crate :: Readable for IIDX_SPEC { } # [doc = "`reset()` method sets IIDX to value 0"]
impl crate :: Resettable for IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "IMASK (rw) register accessor: Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`imask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`imask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@imask`]
module"]
pub type IMASK = crate :: Reg < imask :: IMASK_SPEC > ; # [doc = "Interrupt mask"]
pub mod imask { # [doc = "Register `IMASK` reader"]
pub type R = crate :: R < IMASK_SPEC > ; # [doc = "Register `IMASK` writer"]
pub type W = crate :: W < IMASK_SPEC > ; # [doc = "Field `IMASK_Z` reader - Zero Event mask"]
pub type IMASK_Z_R = crate :: BitReader < IMASK_Z_A > ; # [doc = "Zero Event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_Z_A { # [doc = "0: CLR"]
IMASK_Z_CLR = 0 , # [doc = "1: SET"]
IMASK_Z_SET = 1 , } impl From < IMASK_Z_A > for bool { # [inline (always)]
fn from (variant : IMASK_Z_A) -> Self { variant as u8 != 0 } } impl IMASK_Z_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_Z_A { match self . bits { false => IMASK_Z_A :: IMASK_Z_CLR , true => IMASK_Z_A :: IMASK_Z_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_z_clr (& self) -> bool { * self == IMASK_Z_A :: IMASK_Z_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_z_set (& self) -> bool { * self == IMASK_Z_A :: IMASK_Z_SET } } # [doc = "Field `IMASK_Z` writer - Zero Event mask"]
pub type IMASK_Z_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_Z_A > ; impl < 'a , REG , const O : u8 > IMASK_Z_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_z_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_Z_A :: IMASK_Z_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_z_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_Z_A :: IMASK_Z_SET) } } # [doc = "Field `IMASK_L` reader - Load Event mask"]
pub type IMASK_L_R = crate :: BitReader < IMASK_L_A > ; # [doc = "Load Event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_L_A { # [doc = "0: CLR"]
IMASK_L_CLR = 0 , # [doc = "1: SET"]
IMASK_L_SET = 1 , } impl From < IMASK_L_A > for bool { # [inline (always)]
fn from (variant : IMASK_L_A) -> Self { variant as u8 != 0 } } impl IMASK_L_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_L_A { match self . bits { false => IMASK_L_A :: IMASK_L_CLR , true => IMASK_L_A :: IMASK_L_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_l_clr (& self) -> bool { * self == IMASK_L_A :: IMASK_L_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_l_set (& self) -> bool { * self == IMASK_L_A :: IMASK_L_SET } } # [doc = "Field `IMASK_L` writer - Load Event mask"]
pub type IMASK_L_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_L_A > ; impl < 'a , REG , const O : u8 > IMASK_L_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_l_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_L_A :: IMASK_L_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_l_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_L_A :: IMASK_L_SET) } } # [doc = "Field `IMASK_CCD0` reader - Capture or Compare DN event mask CCP0"]
pub type IMASK_CCD0_R = crate :: BitReader < IMASK_CCD0_A > ; # [doc = "Capture or Compare DN event mask CCP0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_CCD0_A { # [doc = "0: CLR"]
IMASK_CCD0_CLR = 0 , # [doc = "1: SET"]
IMASK_CCD0_SET = 1 , } impl From < IMASK_CCD0_A > for bool { # [inline (always)]
fn from (variant : IMASK_CCD0_A) -> Self { variant as u8 != 0 } } impl IMASK_CCD0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_CCD0_A { match self . bits { false => IMASK_CCD0_A :: IMASK_CCD0_CLR , true => IMASK_CCD0_A :: IMASK_CCD0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_ccd0_clr (& self) -> bool { * self == IMASK_CCD0_A :: IMASK_CCD0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_ccd0_set (& self) -> bool { * self == IMASK_CCD0_A :: IMASK_CCD0_SET } } # [doc = "Field `IMASK_CCD0` writer - Capture or Compare DN event mask CCP0"]
pub type IMASK_CCD0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_CCD0_A > ; impl < 'a , REG , const O : u8 > IMASK_CCD0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_ccd0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_CCD0_A :: IMASK_CCD0_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_ccd0_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_CCD0_A :: IMASK_CCD0_SET) } } # [doc = "Field `IMASK_CCD1` reader - Capture or Compare DN event mask CCP1"]
pub type IMASK_CCD1_R = crate :: BitReader < IMASK_CCD1_A > ; # [doc = "Capture or Compare DN event mask CCP1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_CCD1_A { # [doc = "0: CLR"]
IMASK_CCD1_CLR = 0 , # [doc = "1: SET"]
IMASK_CCD1_SET = 1 , } impl From < IMASK_CCD1_A > for bool { # [inline (always)]
fn from (variant : IMASK_CCD1_A) -> Self { variant as u8 != 0 } } impl IMASK_CCD1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_CCD1_A { match self . bits { false => IMASK_CCD1_A :: IMASK_CCD1_CLR , true => IMASK_CCD1_A :: IMASK_CCD1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_ccd1_clr (& self) -> bool { * self == IMASK_CCD1_A :: IMASK_CCD1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_ccd1_set (& self) -> bool { * self == IMASK_CCD1_A :: IMASK_CCD1_SET } } # [doc = "Field `IMASK_CCD1` writer - Capture or Compare DN event mask CCP1"]
pub type IMASK_CCD1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_CCD1_A > ; impl < 'a , REG , const O : u8 > IMASK_CCD1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_ccd1_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_CCD1_A :: IMASK_CCD1_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_ccd1_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_CCD1_A :: IMASK_CCD1_SET) } } # [doc = "Field `IMASK_CCU0` reader - Capture or Compare UP event mask CCP0"]
pub type IMASK_CCU0_R = crate :: BitReader < IMASK_CCU0_A > ; # [doc = "Capture or Compare UP event mask CCP0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_CCU0_A { # [doc = "0: CLR"]
IMASK_CCU0_CLR = 0 , # [doc = "1: SET"]
IMASK_CCU0_SET = 1 , } impl From < IMASK_CCU0_A > for bool { # [inline (always)]
fn from (variant : IMASK_CCU0_A) -> Self { variant as u8 != 0 } } impl IMASK_CCU0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_CCU0_A { match self . bits { false => IMASK_CCU0_A :: IMASK_CCU0_CLR , true => IMASK_CCU0_A :: IMASK_CCU0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_ccu0_clr (& self) -> bool { * self == IMASK_CCU0_A :: IMASK_CCU0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_ccu0_set (& self) -> bool { * self == IMASK_CCU0_A :: IMASK_CCU0_SET } } # [doc = "Field `IMASK_CCU0` writer - Capture or Compare UP event mask CCP0"]
pub type IMASK_CCU0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_CCU0_A > ; impl < 'a , REG , const O : u8 > IMASK_CCU0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_ccu0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_CCU0_A :: IMASK_CCU0_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_ccu0_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_CCU0_A :: IMASK_CCU0_SET) } } # [doc = "Field `IMASK_CCU1` reader - Capture or Compare UP event mask CCP1"]
pub type IMASK_CCU1_R = crate :: BitReader < IMASK_CCU1_A > ; # [doc = "Capture or Compare UP event mask CCP1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_CCU1_A { # [doc = "0: CLR"]
IMASK_CCU1_CLR = 0 , # [doc = "1: SET"]
IMASK_CCU1_SET = 1 , } impl From < IMASK_CCU1_A > for bool { # [inline (always)]
fn from (variant : IMASK_CCU1_A) -> Self { variant as u8 != 0 } } impl IMASK_CCU1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_CCU1_A { match self . bits { false => IMASK_CCU1_A :: IMASK_CCU1_CLR , true => IMASK_CCU1_A :: IMASK_CCU1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_ccu1_clr (& self) -> bool { * self == IMASK_CCU1_A :: IMASK_CCU1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_ccu1_set (& self) -> bool { * self == IMASK_CCU1_A :: IMASK_CCU1_SET } } # [doc = "Field `IMASK_CCU1` writer - Capture or Compare UP event mask CCP1"]
pub type IMASK_CCU1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_CCU1_A > ; impl < 'a , REG , const O : u8 > IMASK_CCU1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_ccu1_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_CCU1_A :: IMASK_CCU1_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_ccu1_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_CCU1_A :: IMASK_CCU1_SET) } } # [doc = "Field `IMASK_TOV` reader - Trigger Overflow Event mask"]
pub type IMASK_TOV_R = crate :: BitReader < IMASK_TOV_A > ; # [doc = "Trigger Overflow Event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_TOV_A { # [doc = "0: CLR"]
IMASK_TOV_CLR = 0 , # [doc = "1: SET"]
IMASK_TOV_SET = 1 , } impl From < IMASK_TOV_A > for bool { # [inline (always)]
fn from (variant : IMASK_TOV_A) -> Self { variant as u8 != 0 } } impl IMASK_TOV_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_TOV_A { match self . bits { false => IMASK_TOV_A :: IMASK_TOV_CLR , true => IMASK_TOV_A :: IMASK_TOV_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_tov_clr (& self) -> bool { * self == IMASK_TOV_A :: IMASK_TOV_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_tov_set (& self) -> bool { * self == IMASK_TOV_A :: IMASK_TOV_SET } } # [doc = "Field `IMASK_TOV` writer - Trigger Overflow Event mask"]
pub type IMASK_TOV_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_TOV_A > ; impl < 'a , REG , const O : u8 > IMASK_TOV_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_tov_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_TOV_A :: IMASK_TOV_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_tov_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_TOV_A :: IMASK_TOV_SET) } } impl R { # [doc = "Bit 0 - Zero Event mask"]
# [inline (always)]
pub fn imask_z (& self) -> IMASK_Z_R { IMASK_Z_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Load Event mask"]
# [inline (always)]
pub fn imask_l (& self) -> IMASK_L_R { IMASK_L_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 4 - Capture or Compare DN event mask CCP0"]
# [inline (always)]
pub fn imask_ccd0 (& self) -> IMASK_CCD0_R { IMASK_CCD0_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Capture or Compare DN event mask CCP1"]
# [inline (always)]
pub fn imask_ccd1 (& self) -> IMASK_CCD1_R { IMASK_CCD1_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 8 - Capture or Compare UP event mask CCP0"]
# [inline (always)]
pub fn imask_ccu0 (& self) -> IMASK_CCU0_R { IMASK_CCU0_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - Capture or Compare UP event mask CCP1"]
# [inline (always)]
pub fn imask_ccu1 (& self) -> IMASK_CCU1_R { IMASK_CCU1_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 25 - Trigger Overflow Event mask"]
# [inline (always)]
pub fn imask_tov (& self) -> IMASK_TOV_R { IMASK_TOV_R :: new (((self . bits >> 25) & 1) != 0) } } impl W { # [doc = "Bit 0 - Zero Event mask"]
# [inline (always)]
# [must_use]
pub fn imask_z (& mut self) -> IMASK_Z_W < IMASK_SPEC , 0 > { IMASK_Z_W :: new (self) } # [doc = "Bit 1 - Load Event mask"]
# [inline (always)]
# [must_use]
pub fn imask_l (& mut self) -> IMASK_L_W < IMASK_SPEC , 1 > { IMASK_L_W :: new (self) } # [doc = "Bit 4 - Capture or Compare DN event mask CCP0"]
# [inline (always)]
# [must_use]
pub fn imask_ccd0 (& mut self) -> IMASK_CCD0_W < IMASK_SPEC , 4 > { IMASK_CCD0_W :: new (self) } # [doc = "Bit 5 - Capture or Compare DN event mask CCP1"]
# [inline (always)]
# [must_use]
pub fn imask_ccd1 (& mut self) -> IMASK_CCD1_W < IMASK_SPEC , 5 > { IMASK_CCD1_W :: new (self) } # [doc = "Bit 8 - Capture or Compare UP event mask CCP0"]
# [inline (always)]
# [must_use]
pub fn imask_ccu0 (& mut self) -> IMASK_CCU0_W < IMASK_SPEC , 8 > { IMASK_CCU0_W :: new (self) } # [doc = "Bit 9 - Capture or Compare UP event mask CCP1"]
# [inline (always)]
# [must_use]
pub fn imask_ccu1 (& mut self) -> IMASK_CCU1_W < IMASK_SPEC , 9 > { IMASK_CCU1_W :: new (self) } # [doc = "Bit 25 - Trigger Overflow Event mask"]
# [inline (always)]
# [must_use]
pub fn imask_tov (& mut self) -> IMASK_TOV_W < IMASK_SPEC , 25 > { IMASK_TOV_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`imask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`imask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IMASK_SPEC ; impl crate :: RegisterSpec for IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`imask::R`](R) reader structure"]
impl crate :: Readable for IMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`imask::W`](W) writer structure"]
impl crate :: Writable for IMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets IMASK to value 0"]
impl crate :: Resettable for IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RIS (r) register accessor: Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ris`]
module"]
pub type RIS = crate :: Reg < ris :: RIS_SPEC > ; # [doc = "Raw interrupt status"]
pub mod ris { # [doc = "Register `RIS` reader"]
pub type R = crate :: R < RIS_SPEC > ; # [doc = "Field `RIS_Z` reader - Zero event generated an interrupt."]
pub type RIS_Z_R = crate :: BitReader < RIS_Z_A > ; # [doc = "Zero event generated an interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_Z_A { # [doc = "0: CLR"]
RIS_Z_CLR = 0 , # [doc = "1: SET"]
RIS_Z_SET = 1 , } impl From < RIS_Z_A > for bool { # [inline (always)]
fn from (variant : RIS_Z_A) -> Self { variant as u8 != 0 } } impl RIS_Z_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_Z_A { match self . bits { false => RIS_Z_A :: RIS_Z_CLR , true => RIS_Z_A :: RIS_Z_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_z_clr (& self) -> bool { * self == RIS_Z_A :: RIS_Z_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_z_set (& self) -> bool { * self == RIS_Z_A :: RIS_Z_SET } } # [doc = "Field `RIS_L` reader - Load event generated an interrupt."]
pub type RIS_L_R = crate :: BitReader < RIS_L_A > ; # [doc = "Load event generated an interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_L_A { # [doc = "0: CLR"]
RIS_L_CLR = 0 , # [doc = "1: SET"]
RIS_L_SET = 1 , } impl From < RIS_L_A > for bool { # [inline (always)]
fn from (variant : RIS_L_A) -> Self { variant as u8 != 0 } } impl RIS_L_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_L_A { match self . bits { false => RIS_L_A :: RIS_L_CLR , true => RIS_L_A :: RIS_L_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_l_clr (& self) -> bool { * self == RIS_L_A :: RIS_L_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_l_set (& self) -> bool { * self == RIS_L_A :: RIS_L_SET } } # [doc = "Field `RIS_CCD0` reader - Capture or compare down event generated an interrupt CCP0"]
pub type RIS_CCD0_R = crate :: BitReader < RIS_CCD0_A > ; # [doc = "Capture or compare down event generated an interrupt CCP0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_CCD0_A { # [doc = "0: CLR"]
RIS_CCD0_CLR = 0 , # [doc = "1: SET"]
RIS_CCD0_SET = 1 , } impl From < RIS_CCD0_A > for bool { # [inline (always)]
fn from (variant : RIS_CCD0_A) -> Self { variant as u8 != 0 } } impl RIS_CCD0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_CCD0_A { match self . bits { false => RIS_CCD0_A :: RIS_CCD0_CLR , true => RIS_CCD0_A :: RIS_CCD0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_ccd0_clr (& self) -> bool { * self == RIS_CCD0_A :: RIS_CCD0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_ccd0_set (& self) -> bool { * self == RIS_CCD0_A :: RIS_CCD0_SET } } # [doc = "Field `RIS_CCD1` reader - Capture or compare down event generated an interrupt CCP1"]
pub type RIS_CCD1_R = crate :: BitReader < RIS_CCD1_A > ; # [doc = "Capture or compare down event generated an interrupt CCP1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_CCD1_A { # [doc = "0: CLR"]
RIS_CCD1_CLR = 0 , # [doc = "1: SET"]
RIS_CCD1_SET = 1 , } impl From < RIS_CCD1_A > for bool { # [inline (always)]
fn from (variant : RIS_CCD1_A) -> Self { variant as u8 != 0 } } impl RIS_CCD1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_CCD1_A { match self . bits { false => RIS_CCD1_A :: RIS_CCD1_CLR , true => RIS_CCD1_A :: RIS_CCD1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_ccd1_clr (& self) -> bool { * self == RIS_CCD1_A :: RIS_CCD1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_ccd1_set (& self) -> bool { * self == RIS_CCD1_A :: RIS_CCD1_SET } } # [doc = "Field `RIS_CCU0` reader - Capture or compare up event generated an interrupt CCP0"]
pub type RIS_CCU0_R = crate :: BitReader < RIS_CCU0_A > ; # [doc = "Capture or compare up event generated an interrupt CCP0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_CCU0_A { # [doc = "0: CLR"]
RIS_CCU0_CLR = 0 , # [doc = "1: SET"]
RIS_CCU0_SET = 1 , } impl From < RIS_CCU0_A > for bool { # [inline (always)]
fn from (variant : RIS_CCU0_A) -> Self { variant as u8 != 0 } } impl RIS_CCU0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_CCU0_A { match self . bits { false => RIS_CCU0_A :: RIS_CCU0_CLR , true => RIS_CCU0_A :: RIS_CCU0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_ccu0_clr (& self) -> bool { * self == RIS_CCU0_A :: RIS_CCU0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_ccu0_set (& self) -> bool { * self == RIS_CCU0_A :: RIS_CCU0_SET } } # [doc = "Field `RIS_CCU1` reader - Capture or compare up event generated an interrupt CCP1"]
pub type RIS_CCU1_R = crate :: BitReader < RIS_CCU1_A > ; # [doc = "Capture or compare up event generated an interrupt CCP1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_CCU1_A { # [doc = "0: CLR"]
RIS_CCU1_CLR = 0 , # [doc = "1: SET"]
RIS_CCU1_SET = 1 , } impl From < RIS_CCU1_A > for bool { # [inline (always)]
fn from (variant : RIS_CCU1_A) -> Self { variant as u8 != 0 } } impl RIS_CCU1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_CCU1_A { match self . bits { false => RIS_CCU1_A :: RIS_CCU1_CLR , true => RIS_CCU1_A :: RIS_CCU1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_ccu1_clr (& self) -> bool { * self == RIS_CCU1_A :: RIS_CCU1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_ccu1_set (& self) -> bool { * self == RIS_CCU1_A :: RIS_CCU1_SET } } # [doc = "Field `RIS_TOV` reader - Trigger overflow"]
pub type RIS_TOV_R = crate :: BitReader < RIS_TOV_A > ; # [doc = "Trigger overflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_TOV_A { # [doc = "0: CLR"]
RIS_TOV_CLR = 0 , # [doc = "1: SET"]
RIS_TOV_SET = 1 , } impl From < RIS_TOV_A > for bool { # [inline (always)]
fn from (variant : RIS_TOV_A) -> Self { variant as u8 != 0 } } impl RIS_TOV_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_TOV_A { match self . bits { false => RIS_TOV_A :: RIS_TOV_CLR , true => RIS_TOV_A :: RIS_TOV_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_tov_clr (& self) -> bool { * self == RIS_TOV_A :: RIS_TOV_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_tov_set (& self) -> bool { * self == RIS_TOV_A :: RIS_TOV_SET } } impl R { # [doc = "Bit 0 - Zero event generated an interrupt."]
# [inline (always)]
pub fn ris_z (& self) -> RIS_Z_R { RIS_Z_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Load event generated an interrupt."]
# [inline (always)]
pub fn ris_l (& self) -> RIS_L_R { RIS_L_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 4 - Capture or compare down event generated an interrupt CCP0"]
# [inline (always)]
pub fn ris_ccd0 (& self) -> RIS_CCD0_R { RIS_CCD0_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Capture or compare down event generated an interrupt CCP1"]
# [inline (always)]
pub fn ris_ccd1 (& self) -> RIS_CCD1_R { RIS_CCD1_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 8 - Capture or compare up event generated an interrupt CCP0"]
# [inline (always)]
pub fn ris_ccu0 (& self) -> RIS_CCU0_R { RIS_CCU0_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - Capture or compare up event generated an interrupt CCP1"]
# [inline (always)]
pub fn ris_ccu1 (& self) -> RIS_CCU1_R { RIS_CCU1_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 25 - Trigger overflow"]
# [inline (always)]
pub fn ris_tov (& self) -> RIS_TOV_R { RIS_TOV_R :: new (((self . bits >> 25) & 1) != 0) } } # [doc = "Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RIS_SPEC ; impl crate :: RegisterSpec for RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ris::R`](R) reader structure"]
impl crate :: Readable for RIS_SPEC { } # [doc = "`reset()` method sets RIS to value 0"]
impl crate :: Resettable for RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "MIS (r) register accessor: Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mis`]
module"]
pub type MIS = crate :: Reg < mis :: MIS_SPEC > ; # [doc = "Masked interrupt status"]
pub mod mis { # [doc = "Register `MIS` reader"]
pub type R = crate :: R < MIS_SPEC > ; # [doc = "Field `MIS_Z` reader - Zero event generated an interrupt."]
pub type MIS_Z_R = crate :: BitReader < MIS_Z_A > ; # [doc = "Zero event generated an interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_Z_A { # [doc = "0: CLR"]
MIS_Z_CLR = 0 , # [doc = "1: SET"]
MIS_Z_SET = 1 , } impl From < MIS_Z_A > for bool { # [inline (always)]
fn from (variant : MIS_Z_A) -> Self { variant as u8 != 0 } } impl MIS_Z_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_Z_A { match self . bits { false => MIS_Z_A :: MIS_Z_CLR , true => MIS_Z_A :: MIS_Z_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_z_clr (& self) -> bool { * self == MIS_Z_A :: MIS_Z_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_z_set (& self) -> bool { * self == MIS_Z_A :: MIS_Z_SET } } # [doc = "Field `MIS_L` reader - Load event generated an interrupt."]
pub type MIS_L_R = crate :: BitReader < MIS_L_A > ; # [doc = "Load event generated an interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_L_A { # [doc = "0: CLR"]
MIS_L_CLR = 0 , # [doc = "1: SET"]
MIS_L_SET = 1 , } impl From < MIS_L_A > for bool { # [inline (always)]
fn from (variant : MIS_L_A) -> Self { variant as u8 != 0 } } impl MIS_L_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_L_A { match self . bits { false => MIS_L_A :: MIS_L_CLR , true => MIS_L_A :: MIS_L_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_l_clr (& self) -> bool { * self == MIS_L_A :: MIS_L_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_l_set (& self) -> bool { * self == MIS_L_A :: MIS_L_SET } } # [doc = "Field `MIS_CCD0` reader - Capture or compare down event generated an interrupt CCP0"]
pub type MIS_CCD0_R = crate :: BitReader < MIS_CCD0_A > ; # [doc = "Capture or compare down event generated an interrupt CCP0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_CCD0_A { # [doc = "0: CLR"]
MIS_CCD0_CLR = 0 , # [doc = "1: SET"]
MIS_CCD0_SET = 1 , } impl From < MIS_CCD0_A > for bool { # [inline (always)]
fn from (variant : MIS_CCD0_A) -> Self { variant as u8 != 0 } } impl MIS_CCD0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_CCD0_A { match self . bits { false => MIS_CCD0_A :: MIS_CCD0_CLR , true => MIS_CCD0_A :: MIS_CCD0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_ccd0_clr (& self) -> bool { * self == MIS_CCD0_A :: MIS_CCD0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_ccd0_set (& self) -> bool { * self == MIS_CCD0_A :: MIS_CCD0_SET } } # [doc = "Field `MIS_CCD1` reader - Capture or compare down event generated an interrupt CCP1"]
pub type MIS_CCD1_R = crate :: BitReader < MIS_CCD1_A > ; # [doc = "Capture or compare down event generated an interrupt CCP1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_CCD1_A { # [doc = "0: CLR"]
MIS_CCD1_CLR = 0 , # [doc = "1: SET"]
MIS_CCD1_SET = 1 , } impl From < MIS_CCD1_A > for bool { # [inline (always)]
fn from (variant : MIS_CCD1_A) -> Self { variant as u8 != 0 } } impl MIS_CCD1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_CCD1_A { match self . bits { false => MIS_CCD1_A :: MIS_CCD1_CLR , true => MIS_CCD1_A :: MIS_CCD1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_ccd1_clr (& self) -> bool { * self == MIS_CCD1_A :: MIS_CCD1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_ccd1_set (& self) -> bool { * self == MIS_CCD1_A :: MIS_CCD1_SET } } # [doc = "Field `MIS_CCU0` reader - Capture or compare up event generated an interrupt CCP0"]
pub type MIS_CCU0_R = crate :: BitReader < MIS_CCU0_A > ; # [doc = "Capture or compare up event generated an interrupt CCP0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_CCU0_A { # [doc = "0: CLR"]
MIS_CCU0_CLR = 0 , # [doc = "1: SET"]
MIS_CCU0_SET = 1 , } impl From < MIS_CCU0_A > for bool { # [inline (always)]
fn from (variant : MIS_CCU0_A) -> Self { variant as u8 != 0 } } impl MIS_CCU0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_CCU0_A { match self . bits { false => MIS_CCU0_A :: MIS_CCU0_CLR , true => MIS_CCU0_A :: MIS_CCU0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_ccu0_clr (& self) -> bool { * self == MIS_CCU0_A :: MIS_CCU0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_ccu0_set (& self) -> bool { * self == MIS_CCU0_A :: MIS_CCU0_SET } } # [doc = "Field `MIS_CCU1` reader - Capture or compare up event generated an interrupt CCP1"]
pub type MIS_CCU1_R = crate :: BitReader < MIS_CCU1_A > ; # [doc = "Capture or compare up event generated an interrupt CCP1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_CCU1_A { # [doc = "0: CLR"]
MIS_CCU1_CLR = 0 , # [doc = "1: SET"]
MIS_CCU1_SET = 1 , } impl From < MIS_CCU1_A > for bool { # [inline (always)]
fn from (variant : MIS_CCU1_A) -> Self { variant as u8 != 0 } } impl MIS_CCU1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_CCU1_A { match self . bits { false => MIS_CCU1_A :: MIS_CCU1_CLR , true => MIS_CCU1_A :: MIS_CCU1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_ccu1_clr (& self) -> bool { * self == MIS_CCU1_A :: MIS_CCU1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_ccu1_set (& self) -> bool { * self == MIS_CCU1_A :: MIS_CCU1_SET } } # [doc = "Field `MIS_TOV` reader - Trigger overflow"]
pub type MIS_TOV_R = crate :: BitReader < MIS_TOV_A > ; # [doc = "Trigger overflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_TOV_A { # [doc = "0: CLR"]
MIS_TOV_CLR = 0 , # [doc = "1: SET"]
MIS_TOV_SET = 1 , } impl From < MIS_TOV_A > for bool { # [inline (always)]
fn from (variant : MIS_TOV_A) -> Self { variant as u8 != 0 } } impl MIS_TOV_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_TOV_A { match self . bits { false => MIS_TOV_A :: MIS_TOV_CLR , true => MIS_TOV_A :: MIS_TOV_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_tov_clr (& self) -> bool { * self == MIS_TOV_A :: MIS_TOV_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_tov_set (& self) -> bool { * self == MIS_TOV_A :: MIS_TOV_SET } } impl R { # [doc = "Bit 0 - Zero event generated an interrupt."]
# [inline (always)]
pub fn mis_z (& self) -> MIS_Z_R { MIS_Z_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Load event generated an interrupt."]
# [inline (always)]
pub fn mis_l (& self) -> MIS_L_R { MIS_L_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 4 - Capture or compare down event generated an interrupt CCP0"]
# [inline (always)]
pub fn mis_ccd0 (& self) -> MIS_CCD0_R { MIS_CCD0_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Capture or compare down event generated an interrupt CCP1"]
# [inline (always)]
pub fn mis_ccd1 (& self) -> MIS_CCD1_R { MIS_CCD1_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 8 - Capture or compare up event generated an interrupt CCP0"]
# [inline (always)]
pub fn mis_ccu0 (& self) -> MIS_CCU0_R { MIS_CCU0_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - Capture or compare up event generated an interrupt CCP1"]
# [inline (always)]
pub fn mis_ccu1 (& self) -> MIS_CCU1_R { MIS_CCU1_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 25 - Trigger overflow"]
# [inline (always)]
pub fn mis_tov (& self) -> MIS_TOV_R { MIS_TOV_R :: new (((self . bits >> 25) & 1) != 0) } } # [doc = "Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MIS_SPEC ; impl crate :: RegisterSpec for MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`mis::R`](R) reader structure"]
impl crate :: Readable for MIS_SPEC { } # [doc = "`reset()` method sets MIS to value 0"]
impl crate :: Resettable for MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "ISET (w) register accessor: Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@iset`]
module"]
pub type ISET = crate :: Reg < iset :: ISET_SPEC > ; # [doc = "Interrupt set"]
pub mod iset { # [doc = "Register `ISET` writer"]
pub type W = crate :: W < ISET_SPEC > ; # [doc = "Zero event SET\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_Z_AW { # [doc = "0: NO_EFFECT"]
ISET_Z_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_Z_SET = 1 , } impl From < ISET_Z_AW > for bool { # [inline (always)]
fn from (variant : ISET_Z_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_Z` writer - Zero event SET"]
pub type ISET_Z_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_Z_AW > ; impl < 'a , REG , const O : u8 > ISET_Z_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_z_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_Z_AW :: ISET_Z_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_z_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_Z_AW :: ISET_Z_SET) } } # [doc = "Load event SET\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_L_AW { # [doc = "0: NO_EFFECT"]
ISET_L_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_L_SET = 1 , } impl From < ISET_L_AW > for bool { # [inline (always)]
fn from (variant : ISET_L_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_L` writer - Load event SET"]
pub type ISET_L_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_L_AW > ; impl < 'a , REG , const O : u8 > ISET_L_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_l_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_L_AW :: ISET_L_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_l_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_L_AW :: ISET_L_SET) } } # [doc = "Capture or compare down event SET\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_CCD0_AW { # [doc = "0: NO_EFFECT"]
ISET_CCD0_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_CCD0_SET = 1 , } impl From < ISET_CCD0_AW > for bool { # [inline (always)]
fn from (variant : ISET_CCD0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_CCD0` writer - Capture or compare down event SET"]
pub type ISET_CCD0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_CCD0_AW > ; impl < 'a , REG , const O : u8 > ISET_CCD0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_ccd0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_CCD0_AW :: ISET_CCD0_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_ccd0_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_CCD0_AW :: ISET_CCD0_SET) } } # [doc = "Capture or compare down event SET\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_CCD1_AW { # [doc = "0: NO_EFFECT"]
ISET_CCD1_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_CCD1_SET = 1 , } impl From < ISET_CCD1_AW > for bool { # [inline (always)]
fn from (variant : ISET_CCD1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_CCD1` writer - Capture or compare down event SET"]
pub type ISET_CCD1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_CCD1_AW > ; impl < 'a , REG , const O : u8 > ISET_CCD1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_ccd1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_CCD1_AW :: ISET_CCD1_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_ccd1_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_CCD1_AW :: ISET_CCD1_SET) } } # [doc = "Capture or compare up event SET\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_CCU0_AW { # [doc = "0: NO_EFFECT"]
ISET_CCU0_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_CCU0_SET = 1 , } impl From < ISET_CCU0_AW > for bool { # [inline (always)]
fn from (variant : ISET_CCU0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_CCU0` writer - Capture or compare up event SET"]
pub type ISET_CCU0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_CCU0_AW > ; impl < 'a , REG , const O : u8 > ISET_CCU0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_ccu0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_CCU0_AW :: ISET_CCU0_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_ccu0_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_CCU0_AW :: ISET_CCU0_SET) } } # [doc = "Capture or compare up event SET\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_CCU1_AW { # [doc = "0: NO_EFFECT"]
ISET_CCU1_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_CCU1_SET = 1 , } impl From < ISET_CCU1_AW > for bool { # [inline (always)]
fn from (variant : ISET_CCU1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_CCU1` writer - Capture or compare up event SET"]
pub type ISET_CCU1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_CCU1_AW > ; impl < 'a , REG , const O : u8 > ISET_CCU1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_ccu1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_CCU1_AW :: ISET_CCU1_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_ccu1_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_CCU1_AW :: ISET_CCU1_SET) } } # [doc = "Trigger Overflow event SET\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_TOV_AW { # [doc = "0: NO_EFFECT"]
ISET_TOV_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_TOV_SET = 1 , } impl From < ISET_TOV_AW > for bool { # [inline (always)]
fn from (variant : ISET_TOV_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_TOV` writer - Trigger Overflow event SET"]
pub type ISET_TOV_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_TOV_AW > ; impl < 'a , REG , const O : u8 > ISET_TOV_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_tov_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_TOV_AW :: ISET_TOV_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_tov_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_TOV_AW :: ISET_TOV_SET) } } impl W { # [doc = "Bit 0 - Zero event SET"]
# [inline (always)]
# [must_use]
pub fn iset_z (& mut self) -> ISET_Z_W < ISET_SPEC , 0 > { ISET_Z_W :: new (self) } # [doc = "Bit 1 - Load event SET"]
# [inline (always)]
# [must_use]
pub fn iset_l (& mut self) -> ISET_L_W < ISET_SPEC , 1 > { ISET_L_W :: new (self) } # [doc = "Bit 4 - Capture or compare down event SET"]
# [inline (always)]
# [must_use]
pub fn iset_ccd0 (& mut self) -> ISET_CCD0_W < ISET_SPEC , 4 > { ISET_CCD0_W :: new (self) } # [doc = "Bit 5 - Capture or compare down event SET"]
# [inline (always)]
# [must_use]
pub fn iset_ccd1 (& mut self) -> ISET_CCD1_W < ISET_SPEC , 5 > { ISET_CCD1_W :: new (self) } # [doc = "Bit 8 - Capture or compare up event SET"]
# [inline (always)]
# [must_use]
pub fn iset_ccu0 (& mut self) -> ISET_CCU0_W < ISET_SPEC , 8 > { ISET_CCU0_W :: new (self) } # [doc = "Bit 9 - Capture or compare up event SET"]
# [inline (always)]
# [must_use]
pub fn iset_ccu1 (& mut self) -> ISET_CCU1_W < ISET_SPEC , 9 > { ISET_CCU1_W :: new (self) } # [doc = "Bit 25 - Trigger Overflow event SET"]
# [inline (always)]
# [must_use]
pub fn iset_tov (& mut self) -> ISET_TOV_W < ISET_SPEC , 25 > { ISET_TOV_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ISET_SPEC ; impl crate :: RegisterSpec for ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`iset::W`](W) writer structure"]
impl crate :: Writable for ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets ISET to value 0"]
impl crate :: Resettable for ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "ICLR (w) register accessor: Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@iclr`]
module"]
pub type ICLR = crate :: Reg < iclr :: ICLR_SPEC > ; # [doc = "Interrupt clear"]
pub mod iclr { # [doc = "Register `ICLR` writer"]
pub type W = crate :: W < ICLR_SPEC > ; # [doc = "Zero event CLEAR\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_Z_AW { # [doc = "0: NO_EFFECT"]
ICLR_Z_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_Z_CLR = 1 , } impl From < ICLR_Z_AW > for bool { # [inline (always)]
fn from (variant : ICLR_Z_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_Z` writer - Zero event CLEAR"]
pub type ICLR_Z_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_Z_AW > ; impl < 'a , REG , const O : u8 > ICLR_Z_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_z_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_Z_AW :: ICLR_Z_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_z_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_Z_AW :: ICLR_Z_CLR) } } # [doc = "Load event CLEAR\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_L_AW { # [doc = "0: NO_EFFECT"]
ICLR_L_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_L_CLR = 1 , } impl From < ICLR_L_AW > for bool { # [inline (always)]
fn from (variant : ICLR_L_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_L` writer - Load event CLEAR"]
pub type ICLR_L_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_L_AW > ; impl < 'a , REG , const O : u8 > ICLR_L_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_l_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_L_AW :: ICLR_L_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_l_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_L_AW :: ICLR_L_CLR) } } # [doc = "Capture or compare down event CLEAR\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_CCD0_AW { # [doc = "0: NO_EFFECT"]
ICLR_CCD0_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_CCD0_CLR = 1 , } impl From < ICLR_CCD0_AW > for bool { # [inline (always)]
fn from (variant : ICLR_CCD0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_CCD0` writer - Capture or compare down event CLEAR"]
pub type ICLR_CCD0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_CCD0_AW > ; impl < 'a , REG , const O : u8 > ICLR_CCD0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_ccd0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_CCD0_AW :: ICLR_CCD0_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_ccd0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_CCD0_AW :: ICLR_CCD0_CLR) } } # [doc = "Capture or compare down event CLEAR\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_CCD1_AW { # [doc = "0: NO_EFFECT"]
ICLR_CCD1_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_CCD1_CLR = 1 , } impl From < ICLR_CCD1_AW > for bool { # [inline (always)]
fn from (variant : ICLR_CCD1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_CCD1` writer - Capture or compare down event CLEAR"]
pub type ICLR_CCD1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_CCD1_AW > ; impl < 'a , REG , const O : u8 > ICLR_CCD1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_ccd1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_CCD1_AW :: ICLR_CCD1_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_ccd1_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_CCD1_AW :: ICLR_CCD1_CLR) } } # [doc = "Capture or compare up event CLEAR\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_CCU0_AW { # [doc = "0: NO_EFFECT"]
ICLR_CCU0_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_CCU0_CLR = 1 , } impl From < ICLR_CCU0_AW > for bool { # [inline (always)]
fn from (variant : ICLR_CCU0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_CCU0` writer - Capture or compare up event CLEAR"]
pub type ICLR_CCU0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_CCU0_AW > ; impl < 'a , REG , const O : u8 > ICLR_CCU0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_ccu0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_CCU0_AW :: ICLR_CCU0_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_ccu0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_CCU0_AW :: ICLR_CCU0_CLR) } } # [doc = "Capture or compare up event CLEAR\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_CCU1_AW { # [doc = "0: NO_EFFECT"]
ICLR_CCU1_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_CCU1_CLR = 1 , } impl From < ICLR_CCU1_AW > for bool { # [inline (always)]
fn from (variant : ICLR_CCU1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_CCU1` writer - Capture or compare up event CLEAR"]
pub type ICLR_CCU1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_CCU1_AW > ; impl < 'a , REG , const O : u8 > ICLR_CCU1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_ccu1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_CCU1_AW :: ICLR_CCU1_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_ccu1_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_CCU1_AW :: ICLR_CCU1_CLR) } } # [doc = "Trigger Overflow event CLEAR\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_TOV_AW { # [doc = "0: NO_EFFECT"]
ICLR_TOV_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_TOV_CLR = 1 , } impl From < ICLR_TOV_AW > for bool { # [inline (always)]
fn from (variant : ICLR_TOV_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_TOV` writer - Trigger Overflow event CLEAR"]
pub type ICLR_TOV_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_TOV_AW > ; impl < 'a , REG , const O : u8 > ICLR_TOV_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_tov_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_TOV_AW :: ICLR_TOV_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_tov_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_TOV_AW :: ICLR_TOV_CLR) } } impl W { # [doc = "Bit 0 - Zero event CLEAR"]
# [inline (always)]
# [must_use]
pub fn iclr_z (& mut self) -> ICLR_Z_W < ICLR_SPEC , 0 > { ICLR_Z_W :: new (self) } # [doc = "Bit 1 - Load event CLEAR"]
# [inline (always)]
# [must_use]
pub fn iclr_l (& mut self) -> ICLR_L_W < ICLR_SPEC , 1 > { ICLR_L_W :: new (self) } # [doc = "Bit 4 - Capture or compare down event CLEAR"]
# [inline (always)]
# [must_use]
pub fn iclr_ccd0 (& mut self) -> ICLR_CCD0_W < ICLR_SPEC , 4 > { ICLR_CCD0_W :: new (self) } # [doc = "Bit 5 - Capture or compare down event CLEAR"]
# [inline (always)]
# [must_use]
pub fn iclr_ccd1 (& mut self) -> ICLR_CCD1_W < ICLR_SPEC , 5 > { ICLR_CCD1_W :: new (self) } # [doc = "Bit 8 - Capture or compare up event CLEAR"]
# [inline (always)]
# [must_use]
pub fn iclr_ccu0 (& mut self) -> ICLR_CCU0_W < ICLR_SPEC , 8 > { ICLR_CCU0_W :: new (self) } # [doc = "Bit 9 - Capture or compare up event CLEAR"]
# [inline (always)]
# [must_use]
pub fn iclr_ccu1 (& mut self) -> ICLR_CCU1_W < ICLR_SPEC , 9 > { ICLR_CCU1_W :: new (self) } # [doc = "Bit 25 - Trigger Overflow event CLEAR"]
# [inline (always)]
# [must_use]
pub fn iclr_tov (& mut self) -> ICLR_TOV_W < ICLR_SPEC , 25 > { ICLR_TOV_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ICLR_SPEC ; impl crate :: RegisterSpec for ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`iclr::W`](W) writer structure"]
impl crate :: Writable for ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets ICLR to value 0"]
impl crate :: Resettable for ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "EVT_MODE (rw) register accessor: Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`evt_mode::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@evt_mode`]
module"]
pub type EVT_MODE = crate :: Reg < evt_mode :: EVT_MODE_SPEC > ; # [doc = "Event Mode"]
pub mod evt_mode { # [doc = "Register `EVT_MODE` reader"]
pub type R = crate :: R < EVT_MODE_SPEC > ; # [doc = "Register `EVT_MODE` writer"]
pub type W = crate :: W < EVT_MODE_SPEC > ; # [doc = "Field `EVT_MODE_EVT0_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[0\\]"]
pub type EVT_MODE_EVT0_CFG_R = crate :: FieldReader < EVT_MODE_EVT0_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[0\\]\n\nValue on reset: 1"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_EVT0_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_EVT0_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_EVT0_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_EVT0_CFG_HARDWARE = 2 , } impl From < EVT_MODE_EVT0_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_EVT0_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_EVT0_CFG_A { type Ux = u8 ; } impl EVT_MODE_EVT0_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_EVT0_CFG_A > { match self . bits { 0 => Some (EVT_MODE_EVT0_CFG_A :: EVT_MODE_EVT0_CFG_DISABLE) , 1 => Some (EVT_MODE_EVT0_CFG_A :: EVT_MODE_EVT0_CFG_SOFTWARE) , 2 => Some (EVT_MODE_EVT0_CFG_A :: EVT_MODE_EVT0_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_evt0_cfg_disable (& self) -> bool { * self == EVT_MODE_EVT0_CFG_A :: EVT_MODE_EVT0_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_evt0_cfg_software (& self) -> bool { * self == EVT_MODE_EVT0_CFG_A :: EVT_MODE_EVT0_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_evt0_cfg_hardware (& self) -> bool { * self == EVT_MODE_EVT0_CFG_A :: EVT_MODE_EVT0_CFG_HARDWARE } } # [doc = "Field `EVT_MODE_EVT1_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[1\\]"]
pub type EVT_MODE_EVT1_CFG_R = crate :: FieldReader < EVT_MODE_EVT1_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[1\\]\n\nValue on reset: 2"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_EVT1_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_EVT1_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_EVT1_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_EVT1_CFG_HARDWARE = 2 , } impl From < EVT_MODE_EVT1_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_EVT1_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_EVT1_CFG_A { type Ux = u8 ; } impl EVT_MODE_EVT1_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_EVT1_CFG_A > { match self . bits { 0 => Some (EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_DISABLE) , 1 => Some (EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_SOFTWARE) , 2 => Some (EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_evt1_cfg_disable (& self) -> bool { * self == EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_evt1_cfg_software (& self) -> bool { * self == EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_evt1_cfg_hardware (& self) -> bool { * self == EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_HARDWARE } } # [doc = "Field `EVT_MODE_EVT2_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[1\\]"]
pub type EVT_MODE_EVT2_CFG_R = crate :: FieldReader < EVT_MODE_EVT2_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[1\\]\n\nValue on reset: 2"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_EVT2_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_EVT2_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_EVT2_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_EVT2_CFG_HARDWARE = 2 , } impl From < EVT_MODE_EVT2_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_EVT2_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_EVT2_CFG_A { type Ux = u8 ; } impl EVT_MODE_EVT2_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_EVT2_CFG_A > { match self . bits { 0 => Some (EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_DISABLE) , 1 => Some (EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_SOFTWARE) , 2 => Some (EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_evt2_cfg_disable (& self) -> bool { * self == EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_evt2_cfg_software (& self) -> bool { * self == EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_evt2_cfg_hardware (& self) -> bool { * self == EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_HARDWARE } } impl R { # [doc = "Bits 0:1 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[0\\]"]
# [inline (always)]
pub fn evt_mode_evt0_cfg (& self) -> EVT_MODE_EVT0_CFG_R { EVT_MODE_EVT0_CFG_R :: new ((self . bits & 3) as u8) } # [doc = "Bits 2:3 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[1\\]"]
# [inline (always)]
pub fn evt_mode_evt1_cfg (& self) -> EVT_MODE_EVT1_CFG_R { EVT_MODE_EVT1_CFG_R :: new (((self . bits >> 2) & 3) as u8) } # [doc = "Bits 4:5 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[1\\]"]
# [inline (always)]
pub fn evt_mode_evt2_cfg (& self) -> EVT_MODE_EVT2_CFG_R { EVT_MODE_EVT2_CFG_R :: new (((self . bits >> 4) & 3) as u8) } } impl W { # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`evt_mode::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct EVT_MODE_SPEC ; impl crate :: RegisterSpec for EVT_MODE_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`evt_mode::R`](R) reader structure"]
impl crate :: Readable for EVT_MODE_SPEC { } # [doc = "`write(|w| ..)` method takes [`evt_mode::W`](W) writer structure"]
impl crate :: Writable for EVT_MODE_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets EVT_MODE to value 0x29"]
impl crate :: Resettable for EVT_MODE_SPEC { const RESET_VALUE : Self :: Ux = 0x29 ; } } # [doc = "DESC (r) register accessor: Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@desc`]
module"]
pub type DESC = crate :: Reg < desc :: DESC_SPEC > ; # [doc = "Module Description"]
pub mod desc { # [doc = "Register `DESC` reader"]
pub type R = crate :: R < DESC_SPEC > ; # [doc = "Field `DESC_MINREV` reader - Minor rev of the IP"]
pub type DESC_MINREV_R = crate :: FieldReader ; # [doc = "Field `DESC_MAJREV` reader - Major rev of the IP"]
pub type DESC_MAJREV_R = crate :: FieldReader ; # [doc = "Field `DESC_INSTNUM` reader - Instance Number within the device. This will be a parameter to the RTL for modules that can have multiple instances"]
pub type DESC_INSTNUM_R = crate :: FieldReader ; # [doc = "Field `DESC_FEATUREVER` reader - Feature Set for the module *instance*"]
pub type DESC_FEATUREVER_R = crate :: FieldReader ; # [doc = "Field `DESC_MODULEID` reader - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
pub type DESC_MODULEID_R = crate :: FieldReader < u16 > ; impl R { # [doc = "Bits 0:3 - Minor rev of the IP"]
# [inline (always)]
pub fn desc_minrev (& self) -> DESC_MINREV_R { DESC_MINREV_R :: new ((self . bits & 0x0f) as u8) } # [doc = "Bits 4:7 - Major rev of the IP"]
# [inline (always)]
pub fn desc_majrev (& self) -> DESC_MAJREV_R { DESC_MAJREV_R :: new (((self . bits >> 4) & 0x0f) as u8) } # [doc = "Bits 8:11 - Instance Number within the device. This will be a parameter to the RTL for modules that can have multiple instances"]
# [inline (always)]
pub fn desc_instnum (& self) -> DESC_INSTNUM_R { DESC_INSTNUM_R :: new (((self . bits >> 8) & 0x0f) as u8) } # [doc = "Bits 12:15 - Feature Set for the module *instance*"]
# [inline (always)]
pub fn desc_featurever (& self) -> DESC_FEATUREVER_R { DESC_FEATUREVER_R :: new (((self . bits >> 12) & 0x0f) as u8) } # [doc = "Bits 16:31 - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
# [inline (always)]
pub fn desc_moduleid (& self) -> DESC_MODULEID_R { DESC_MODULEID_R :: new (((self . bits >> 16) & 0xffff) as u16) } } # [doc = "Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DESC_SPEC ; impl crate :: RegisterSpec for DESC_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`desc::R`](R) reader structure"]
impl crate :: Readable for DESC_SPEC { } # [doc = "`reset()` method sets DESC to value 0"]
impl crate :: Resettable for DESC_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CCPD (rw) register accessor: CCP Direction\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ccpd::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ccpd::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccpd`]
module"]
pub type CCPD = crate :: Reg < ccpd :: CCPD_SPEC > ; # [doc = "CCP Direction"]
pub mod ccpd { # [doc = "Register `CCPD` reader"]
pub type R = crate :: R < CCPD_SPEC > ; # [doc = "Register `CCPD` writer"]
pub type W = crate :: W < CCPD_SPEC > ; # [doc = "Field `CCPD_C0CCP0` reader - Counter CCP0"]
pub type CCPD_C0CCP0_R = crate :: BitReader < CCPD_C0CCP0_A > ; # [doc = "Counter CCP0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CCPD_C0CCP0_A { # [doc = "0: INPUT"]
CCPD_C0CCP0_INPUT = 0 , # [doc = "1: OUTPUT"]
CCPD_C0CCP0_OUTPUT = 1 , } impl From < CCPD_C0CCP0_A > for bool { # [inline (always)]
fn from (variant : CCPD_C0CCP0_A) -> Self { variant as u8 != 0 } } impl CCPD_C0CCP0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCPD_C0CCP0_A { match self . bits { false => CCPD_C0CCP0_A :: CCPD_C0CCP0_INPUT , true => CCPD_C0CCP0_A :: CCPD_C0CCP0_OUTPUT , } } # [doc = "INPUT"]
# [inline (always)]
pub fn is_ccpd_c0ccp0_input (& self) -> bool { * self == CCPD_C0CCP0_A :: CCPD_C0CCP0_INPUT } # [doc = "OUTPUT"]
# [inline (always)]
pub fn is_ccpd_c0ccp0_output (& self) -> bool { * self == CCPD_C0CCP0_A :: CCPD_C0CCP0_OUTPUT } } # [doc = "Field `CCPD_C0CCP0` writer - Counter CCP0"]
pub type CCPD_C0CCP0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CCPD_C0CCP0_A > ; impl < 'a , REG , const O : u8 > CCPD_C0CCP0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "INPUT"]
# [inline (always)]
pub fn ccpd_c0ccp0_input (self) -> & 'a mut crate :: W < REG > { self . variant (CCPD_C0CCP0_A :: CCPD_C0CCP0_INPUT) } # [doc = "OUTPUT"]
# [inline (always)]
pub fn ccpd_c0ccp0_output (self) -> & 'a mut crate :: W < REG > { self . variant (CCPD_C0CCP0_A :: CCPD_C0CCP0_OUTPUT) } } # [doc = "Field `CCPD_C0CCP1` reader - Counter CCP1"]
pub type CCPD_C0CCP1_R = crate :: BitReader < CCPD_C0CCP1_A > ; # [doc = "Counter CCP1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CCPD_C0CCP1_A { # [doc = "0: INPUT"]
CCPD_C0CCP1_INPUT = 0 , # [doc = "1: OUTPUT"]
CCPD_C0CCP1_OUTPUT = 1 , } impl From < CCPD_C0CCP1_A > for bool { # [inline (always)]
fn from (variant : CCPD_C0CCP1_A) -> Self { variant as u8 != 0 } } impl CCPD_C0CCP1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCPD_C0CCP1_A { match self . bits { false => CCPD_C0CCP1_A :: CCPD_C0CCP1_INPUT , true => CCPD_C0CCP1_A :: CCPD_C0CCP1_OUTPUT , } } # [doc = "INPUT"]
# [inline (always)]
pub fn is_ccpd_c0ccp1_input (& self) -> bool { * self == CCPD_C0CCP1_A :: CCPD_C0CCP1_INPUT } # [doc = "OUTPUT"]
# [inline (always)]
pub fn is_ccpd_c0ccp1_output (& self) -> bool { * self == CCPD_C0CCP1_A :: CCPD_C0CCP1_OUTPUT } } # [doc = "Field `CCPD_C0CCP1` writer - Counter CCP1"]
pub type CCPD_C0CCP1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CCPD_C0CCP1_A > ; impl < 'a , REG , const O : u8 > CCPD_C0CCP1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "INPUT"]
# [inline (always)]
pub fn ccpd_c0ccp1_input (self) -> & 'a mut crate :: W < REG > { self . variant (CCPD_C0CCP1_A :: CCPD_C0CCP1_INPUT) } # [doc = "OUTPUT"]
# [inline (always)]
pub fn ccpd_c0ccp1_output (self) -> & 'a mut crate :: W < REG > { self . variant (CCPD_C0CCP1_A :: CCPD_C0CCP1_OUTPUT) } } impl R { # [doc = "Bit 0 - Counter CCP0"]
# [inline (always)]
pub fn ccpd_c0ccp0 (& self) -> CCPD_C0CCP0_R { CCPD_C0CCP0_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Counter CCP1"]
# [inline (always)]
pub fn ccpd_c0ccp1 (& self) -> CCPD_C0CCP1_R { CCPD_C0CCP1_R :: new (((self . bits >> 1) & 1) != 0) } } impl W { # [doc = "Bit 0 - Counter CCP0"]
# [inline (always)]
# [must_use]
pub fn ccpd_c0ccp0 (& mut self) -> CCPD_C0CCP0_W < CCPD_SPEC , 0 > { CCPD_C0CCP0_W :: new (self) } # [doc = "Bit 1 - Counter CCP1"]
# [inline (always)]
# [must_use]
pub fn ccpd_c0ccp1 (& mut self) -> CCPD_C0CCP1_W < CCPD_SPEC , 1 > { CCPD_C0CCP1_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "CCP Direction\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ccpd::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ccpd::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CCPD_SPEC ; impl crate :: RegisterSpec for CCPD_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ccpd::R`](R) reader structure"]
impl crate :: Readable for CCPD_SPEC { } # [doc = "`write(|w| ..)` method takes [`ccpd::W`](W) writer structure"]
impl crate :: Writable for CCPD_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CCPD to value 0"]
impl crate :: Resettable for CCPD_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "ODIS (rw) register accessor: Output Disable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`odis::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`odis::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@odis`]
module"]
pub type ODIS = crate :: Reg < odis :: ODIS_SPEC > ; # [doc = "Output Disable"]
pub mod odis { # [doc = "Register `ODIS` reader"]
pub type R = crate :: R < ODIS_SPEC > ; # [doc = "Register `ODIS` writer"]
pub type W = crate :: W < ODIS_SPEC > ; # [doc = "Field `ODIS_C0CCP0` reader - Counter CCP0 Disable Mask Defines whether CCP0 of Counter n is forced low or not"]
pub type ODIS_C0CCP0_R = crate :: BitReader < ODIS_C0CCP0_A > ; # [doc = "Counter CCP0 Disable Mask Defines whether CCP0 of Counter n is forced low or not\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ODIS_C0CCP0_A { # [doc = "0: CCP_OUTPUT_OCTL"]
ODIS_C0CCP0_CCP_OUTPUT_OCTL = 0 , # [doc = "1: CCP_OUTPUT_LOW"]
ODIS_C0CCP0_CCP_OUTPUT_LOW = 1 , } impl From < ODIS_C0CCP0_A > for bool { # [inline (always)]
fn from (variant : ODIS_C0CCP0_A) -> Self { variant as u8 != 0 } } impl ODIS_C0CCP0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> ODIS_C0CCP0_A { match self . bits { false => ODIS_C0CCP0_A :: ODIS_C0CCP0_CCP_OUTPUT_OCTL , true => ODIS_C0CCP0_A :: ODIS_C0CCP0_CCP_OUTPUT_LOW , } } # [doc = "CCP_OUTPUT_OCTL"]
# [inline (always)]
pub fn is_odis_c0ccp0_ccp_output_octl (& self) -> bool { * self == ODIS_C0CCP0_A :: ODIS_C0CCP0_CCP_OUTPUT_OCTL } # [doc = "CCP_OUTPUT_LOW"]
# [inline (always)]
pub fn is_odis_c0ccp0_ccp_output_low (& self) -> bool { * self == ODIS_C0CCP0_A :: ODIS_C0CCP0_CCP_OUTPUT_LOW } } # [doc = "Field `ODIS_C0CCP0` writer - Counter CCP0 Disable Mask Defines whether CCP0 of Counter n is forced low or not"]
pub type ODIS_C0CCP0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ODIS_C0CCP0_A > ; impl < 'a , REG , const O : u8 > ODIS_C0CCP0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CCP_OUTPUT_OCTL"]
# [inline (always)]
pub fn odis_c0ccp0_ccp_output_octl (self) -> & 'a mut crate :: W < REG > { self . variant (ODIS_C0CCP0_A :: ODIS_C0CCP0_CCP_OUTPUT_OCTL) } # [doc = "CCP_OUTPUT_LOW"]
# [inline (always)]
pub fn odis_c0ccp0_ccp_output_low (self) -> & 'a mut crate :: W < REG > { self . variant (ODIS_C0CCP0_A :: ODIS_C0CCP0_CCP_OUTPUT_LOW) } } # [doc = "Field `ODIS_C0CCP1` reader - Counter CCP1 Disable Mask Defines whether CCP0 of Counter n is forced low or not"]
pub type ODIS_C0CCP1_R = crate :: BitReader < ODIS_C0CCP1_A > ; # [doc = "Counter CCP1 Disable Mask Defines whether CCP0 of Counter n is forced low or not\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ODIS_C0CCP1_A { # [doc = "0: CCP_OUTPUT_OCTL"]
ODIS_C0CCP1_CCP_OUTPUT_OCTL = 0 , # [doc = "1: CCP_OUTPUT_LOW"]
ODIS_C0CCP1_CCP_OUTPUT_LOW = 1 , } impl From < ODIS_C0CCP1_A > for bool { # [inline (always)]
fn from (variant : ODIS_C0CCP1_A) -> Self { variant as u8 != 0 } } impl ODIS_C0CCP1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> ODIS_C0CCP1_A { match self . bits { false => ODIS_C0CCP1_A :: ODIS_C0CCP1_CCP_OUTPUT_OCTL , true => ODIS_C0CCP1_A :: ODIS_C0CCP1_CCP_OUTPUT_LOW , } } # [doc = "CCP_OUTPUT_OCTL"]
# [inline (always)]
pub fn is_odis_c0ccp1_ccp_output_octl (& self) -> bool { * self == ODIS_C0CCP1_A :: ODIS_C0CCP1_CCP_OUTPUT_OCTL } # [doc = "CCP_OUTPUT_LOW"]
# [inline (always)]
pub fn is_odis_c0ccp1_ccp_output_low (& self) -> bool { * self == ODIS_C0CCP1_A :: ODIS_C0CCP1_CCP_OUTPUT_LOW } } # [doc = "Field `ODIS_C0CCP1` writer - Counter CCP1 Disable Mask Defines whether CCP0 of Counter n is forced low or not"]
pub type ODIS_C0CCP1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ODIS_C0CCP1_A > ; impl < 'a , REG , const O : u8 > ODIS_C0CCP1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CCP_OUTPUT_OCTL"]
# [inline (always)]
pub fn odis_c0ccp1_ccp_output_octl (self) -> & 'a mut crate :: W < REG > { self . variant (ODIS_C0CCP1_A :: ODIS_C0CCP1_CCP_OUTPUT_OCTL) } # [doc = "CCP_OUTPUT_LOW"]
# [inline (always)]
pub fn odis_c0ccp1_ccp_output_low (self) -> & 'a mut crate :: W < REG > { self . variant (ODIS_C0CCP1_A :: ODIS_C0CCP1_CCP_OUTPUT_LOW) } } impl R { # [doc = "Bit 0 - Counter CCP0 Disable Mask Defines whether CCP0 of Counter n is forced low or not"]
# [inline (always)]
pub fn odis_c0ccp0 (& self) -> ODIS_C0CCP0_R { ODIS_C0CCP0_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Counter CCP1 Disable Mask Defines whether CCP0 of Counter n is forced low or not"]
# [inline (always)]
pub fn odis_c0ccp1 (& self) -> ODIS_C0CCP1_R { ODIS_C0CCP1_R :: new (((self . bits >> 1) & 1) != 0) } } impl W { # [doc = "Bit 0 - Counter CCP0 Disable Mask Defines whether CCP0 of Counter n is forced low or not"]
# [inline (always)]
# [must_use]
pub fn odis_c0ccp0 (& mut self) -> ODIS_C0CCP0_W < ODIS_SPEC , 0 > { ODIS_C0CCP0_W :: new (self) } # [doc = "Bit 1 - Counter CCP1 Disable Mask Defines whether CCP0 of Counter n is forced low or not"]
# [inline (always)]
# [must_use]
pub fn odis_c0ccp1 (& mut self) -> ODIS_C0CCP1_W < ODIS_SPEC , 1 > { ODIS_C0CCP1_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Output Disable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`odis::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`odis::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ODIS_SPEC ; impl crate :: RegisterSpec for ODIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`odis::R`](R) reader structure"]
impl crate :: Readable for ODIS_SPEC { } # [doc = "`write(|w| ..)` method takes [`odis::W`](W) writer structure"]
impl crate :: Writable for ODIS_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets ODIS to value 0"]
impl crate :: Resettable for ODIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CCLKCTL (rw) register accessor: Counter Clock Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cclkctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cclkctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cclkctl`]
module"]
pub type CCLKCTL = crate :: Reg < cclkctl :: CCLKCTL_SPEC > ; # [doc = "Counter Clock Control Register"]
pub mod cclkctl { # [doc = "Register `CCLKCTL` reader"]
pub type R = crate :: R < CCLKCTL_SPEC > ; # [doc = "Register `CCLKCTL` writer"]
pub type W = crate :: W < CCLKCTL_SPEC > ; # [doc = "Field `CCLKCTL_CLKEN` reader - Clock Enable Disables the clock gating to the module. SW has to explicitly program the value to 0 to gate the clock."]
pub type CCLKCTL_CLKEN_R = crate :: BitReader < CCLKCTL_CLKEN_A > ; # [doc = "Clock Enable Disables the clock gating to the module. SW has to explicitly program the value to 0 to gate the clock.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CCLKCTL_CLKEN_A { # [doc = "0: DISABLED"]
CCLKCTL_CLKEN_DISABLED = 0 , # [doc = "1: ENABLED"]
CCLKCTL_CLKEN_ENABLED = 1 , } impl From < CCLKCTL_CLKEN_A > for bool { # [inline (always)]
fn from (variant : CCLKCTL_CLKEN_A) -> Self { variant as u8 != 0 } } impl CCLKCTL_CLKEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCLKCTL_CLKEN_A { match self . bits { false => CCLKCTL_CLKEN_A :: CCLKCTL_CLKEN_DISABLED , true => CCLKCTL_CLKEN_A :: CCLKCTL_CLKEN_ENABLED , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_cclkctl_clken_disabled (& self) -> bool { * self == CCLKCTL_CLKEN_A :: CCLKCTL_CLKEN_DISABLED } # [doc = "ENABLED"]
# [inline (always)]
pub fn is_cclkctl_clken_enabled (& self) -> bool { * self == CCLKCTL_CLKEN_A :: CCLKCTL_CLKEN_ENABLED } } # [doc = "Field `CCLKCTL_CLKEN` writer - Clock Enable Disables the clock gating to the module. SW has to explicitly program the value to 0 to gate the clock."]
pub type CCLKCTL_CLKEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CCLKCTL_CLKEN_A > ; impl < 'a , REG , const O : u8 > CCLKCTL_CLKEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn cclkctl_clken_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCLKCTL_CLKEN_A :: CCLKCTL_CLKEN_DISABLED) } # [doc = "ENABLED"]
# [inline (always)]
pub fn cclkctl_clken_enabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCLKCTL_CLKEN_A :: CCLKCTL_CLKEN_ENABLED) } } impl R { # [doc = "Bit 0 - Clock Enable Disables the clock gating to the module. SW has to explicitly program the value to 0 to gate the clock."]
# [inline (always)]
pub fn cclkctl_clken (& self) -> CCLKCTL_CLKEN_R { CCLKCTL_CLKEN_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - Clock Enable Disables the clock gating to the module. SW has to explicitly program the value to 0 to gate the clock."]
# [inline (always)]
# [must_use]
pub fn cclkctl_clken (& mut self) -> CCLKCTL_CLKEN_W < CCLKCTL_SPEC , 0 > { CCLKCTL_CLKEN_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Counter Clock Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cclkctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cclkctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CCLKCTL_SPEC ; impl crate :: RegisterSpec for CCLKCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cclkctl::R`](R) reader structure"]
impl crate :: Readable for CCLKCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`cclkctl::W`](W) writer structure"]
impl crate :: Writable for CCLKCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CCLKCTL to value 0"]
impl crate :: Resettable for CCLKCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CPS (rw) register accessor: Clock Prescale Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cps::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cps::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cps`]
module"]
pub type CPS = crate :: Reg < cps :: CPS_SPEC > ; # [doc = "Clock Prescale Register"]
pub mod cps { # [doc = "Register `CPS` reader"]
pub type R = crate :: R < CPS_SPEC > ; # [doc = "Register `CPS` writer"]
pub type W = crate :: W < CPS_SPEC > ; # [doc = "Field `CPS_PCNT` reader - Pre-Scale Count This field specifies the pre-scale count value. The selected TIMCLK source is divided by a value of (PCNT+1). A PCNT value of 0 divides TIMCLK by 1, effectively bypassing the divider. A PCNT value of greater than 0 divides the TIMCLK source generating a slower clock"]
pub type CPS_PCNT_R = crate :: FieldReader ; # [doc = "Field `CPS_PCNT` writer - Pre-Scale Count This field specifies the pre-scale count value. The selected TIMCLK source is divided by a value of (PCNT+1). A PCNT value of 0 divides TIMCLK by 1, effectively bypassing the divider. A PCNT value of greater than 0 divides the TIMCLK source generating a slower clock"]
pub type CPS_PCNT_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O > ; impl R { # [doc = "Bits 0:7 - Pre-Scale Count This field specifies the pre-scale count value. The selected TIMCLK source is divided by a value of (PCNT+1). A PCNT value of 0 divides TIMCLK by 1, effectively bypassing the divider. A PCNT value of greater than 0 divides the TIMCLK source generating a slower clock"]
# [inline (always)]
pub fn cps_pcnt (& self) -> CPS_PCNT_R { CPS_PCNT_R :: new ((self . bits & 0xff) as u8) } } impl W { # [doc = "Bits 0:7 - Pre-Scale Count This field specifies the pre-scale count value. The selected TIMCLK source is divided by a value of (PCNT+1). A PCNT value of 0 divides TIMCLK by 1, effectively bypassing the divider. A PCNT value of greater than 0 divides the TIMCLK source generating a slower clock"]
# [inline (always)]
# [must_use]
pub fn cps_pcnt (& mut self) -> CPS_PCNT_W < CPS_SPEC , 0 > { CPS_PCNT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Clock Prescale Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cps::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cps::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CPS_SPEC ; impl crate :: RegisterSpec for CPS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cps::R`](R) reader structure"]
impl crate :: Readable for CPS_SPEC { } # [doc = "`write(|w| ..)` method takes [`cps::W`](W) writer structure"]
impl crate :: Writable for CPS_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CPS to value 0"]
impl crate :: Resettable for CPS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CPSV (r) register accessor: Clock prescale count status register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cpsv::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cpsv`]
module"]
pub type CPSV = crate :: Reg < cpsv :: CPSV_SPEC > ; # [doc = "Clock prescale count status register"]
pub mod cpsv { # [doc = "Register `CPSV` reader"]
pub type R = crate :: R < CPSV_SPEC > ; # [doc = "Field `CPSV_CPSVAL` reader - Current Prescale Count Value"]
pub type CPSV_CPSVAL_R = crate :: FieldReader ; impl R { # [doc = "Bits 0:7 - Current Prescale Count Value"]
# [inline (always)]
pub fn cpsv_cpsval (& self) -> CPSV_CPSVAL_R { CPSV_CPSVAL_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Clock prescale count status register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cpsv::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CPSV_SPEC ; impl crate :: RegisterSpec for CPSV_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cpsv::R`](R) reader structure"]
impl crate :: Readable for CPSV_SPEC { } # [doc = "`reset()` method sets CPSV to value 0"]
impl crate :: Resettable for CPSV_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTTRIGCTL (rw) register accessor: Timer Cross Trigger Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cttrigctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cttrigctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cttrigctl`]
module"]
pub type CTTRIGCTL = crate :: Reg < cttrigctl :: CTTRIGCTL_SPEC > ; # [doc = "Timer Cross Trigger Control Register"]
pub mod cttrigctl { # [doc = "Register `CTTRIGCTL` reader"]
pub type R = crate :: R < CTTRIGCTL_SPEC > ; # [doc = "Register `CTTRIGCTL` writer"]
pub type W = crate :: W < CTTRIGCTL_SPEC > ; # [doc = "Field `CTTRIGCTL_CTEN` reader - Timer Cross trigger enable. This field is used to enable whether the SW or HW logic can generate a timer cross trigger event in the system. These cross triggers are connected to the respective timer trigger in of the other timer IPs in the SOC power domain. The timer cross trigger is essentially the combined logic of the HW and SW conditions controlling EN bit in the CTRCTL register."]
pub type CTTRIGCTL_CTEN_R = crate :: BitReader < CTTRIGCTL_CTEN_A > ; # [doc = "Timer Cross trigger enable. This field is used to enable whether the SW or HW logic can generate a timer cross trigger event in the system. These cross triggers are connected to the respective timer trigger in of the other timer IPs in the SOC power domain. The timer cross trigger is essentially the combined logic of the HW and SW conditions controlling EN bit in the CTRCTL register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTTRIGCTL_CTEN_A { # [doc = "0: DISABLED"]
CTTRIGCTL_CTEN_DISABLED = 0 , # [doc = "1: ENABLE"]
CTTRIGCTL_CTEN_ENABLE = 1 , } impl From < CTTRIGCTL_CTEN_A > for bool { # [inline (always)]
fn from (variant : CTTRIGCTL_CTEN_A) -> Self { variant as u8 != 0 } } impl CTTRIGCTL_CTEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTTRIGCTL_CTEN_A { match self . bits { false => CTTRIGCTL_CTEN_A :: CTTRIGCTL_CTEN_DISABLED , true => CTTRIGCTL_CTEN_A :: CTTRIGCTL_CTEN_ENABLE , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_cttrigctl_cten_disabled (& self) -> bool { * self == CTTRIGCTL_CTEN_A :: CTTRIGCTL_CTEN_DISABLED } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_cttrigctl_cten_enable (& self) -> bool { * self == CTTRIGCTL_CTEN_A :: CTTRIGCTL_CTEN_ENABLE } } # [doc = "Field `CTTRIGCTL_CTEN` writer - Timer Cross trigger enable. This field is used to enable whether the SW or HW logic can generate a timer cross trigger event in the system. These cross triggers are connected to the respective timer trigger in of the other timer IPs in the SOC power domain. The timer cross trigger is essentially the combined logic of the HW and SW conditions controlling EN bit in the CTRCTL register."]
pub type CTTRIGCTL_CTEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTTRIGCTL_CTEN_A > ; impl < 'a , REG , const O : u8 > CTTRIGCTL_CTEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn cttrigctl_cten_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_CTEN_A :: CTTRIGCTL_CTEN_DISABLED) } # [doc = "ENABLE"]
# [inline (always)]
pub fn cttrigctl_cten_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_CTEN_A :: CTTRIGCTL_CTEN_ENABLE) } } # [doc = "Field `CTTRIGCTL_EVTCTEN` reader - Enable the Input Trigger Conditions to the Timer module as a condition for Cross Triggers. Refer Figure 8 Cross Trigger Generation Path"]
pub type CTTRIGCTL_EVTCTEN_R = crate :: BitReader < CTTRIGCTL_EVTCTEN_A > ; # [doc = "Enable the Input Trigger Conditions to the Timer module as a condition for Cross Triggers. Refer Figure 8 Cross Trigger Generation Path\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTTRIGCTL_EVTCTEN_A { # [doc = "0: DISABLED"]
CTTRIGCTL_EVTCTEN_DISABLED = 0 , # [doc = "1: ENABLE"]
CTTRIGCTL_EVTCTEN_ENABLE = 1 , } impl From < CTTRIGCTL_EVTCTEN_A > for bool { # [inline (always)]
fn from (variant : CTTRIGCTL_EVTCTEN_A) -> Self { variant as u8 != 0 } } impl CTTRIGCTL_EVTCTEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTTRIGCTL_EVTCTEN_A { match self . bits { false => CTTRIGCTL_EVTCTEN_A :: CTTRIGCTL_EVTCTEN_DISABLED , true => CTTRIGCTL_EVTCTEN_A :: CTTRIGCTL_EVTCTEN_ENABLE , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_cttrigctl_evtcten_disabled (& self) -> bool { * self == CTTRIGCTL_EVTCTEN_A :: CTTRIGCTL_EVTCTEN_DISABLED } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_cttrigctl_evtcten_enable (& self) -> bool { * self == CTTRIGCTL_EVTCTEN_A :: CTTRIGCTL_EVTCTEN_ENABLE } } # [doc = "Field `CTTRIGCTL_EVTCTEN` writer - Enable the Input Trigger Conditions to the Timer module as a condition for Cross Triggers. Refer Figure 8 Cross Trigger Generation Path"]
pub type CTTRIGCTL_EVTCTEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTTRIGCTL_EVTCTEN_A > ; impl < 'a , REG , const O : u8 > CTTRIGCTL_EVTCTEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn cttrigctl_evtcten_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTEN_A :: CTTRIGCTL_EVTCTEN_DISABLED) } # [doc = "ENABLE"]
# [inline (always)]
pub fn cttrigctl_evtcten_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTEN_A :: CTTRIGCTL_EVTCTEN_ENABLE) } } # [doc = "Field `CTTRIGCTL_EVTCTTRIGSEL` reader - Used to Select the subscriber port that should be used for input cross trigger. Refer Figure 8 Cross Trigger Generation Path"]
pub type CTTRIGCTL_EVTCTTRIGSEL_R = crate :: FieldReader < CTTRIGCTL_EVTCTTRIGSEL_A > ; # [doc = "Used to Select the subscriber port that should be used for input cross trigger. Refer Figure 8 Cross Trigger Generation Path\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTTRIGCTL_EVTCTTRIGSEL_A { # [doc = "0: FSUB0"]
CTTRIGCTL_EVTCTTRIGSEL_FSUB0 = 0 , # [doc = "1: FSUB1"]
CTTRIGCTL_EVTCTTRIGSEL_FSUB1 = 1 , # [doc = "2: Z"]
CTTRIGCTL_EVTCTTRIGSEL_Z = 2 , # [doc = "3: L"]
CTTRIGCTL_EVTCTTRIGSEL_L = 3 , # [doc = "4: CCD0"]
CTTRIGCTL_EVTCTTRIGSEL_CCD0 = 4 , # [doc = "5: CCD1"]
CTTRIGCTL_EVTCTTRIGSEL_CCD1 = 5 , # [doc = "6: CCD2"]
CTTRIGCTL_EVTCTTRIGSEL_CCD2 = 6 , # [doc = "7: CCD3"]
CTTRIGCTL_EVTCTTRIGSEL_CCD3 = 7 , # [doc = "8: CCU0"]
CTTRIGCTL_EVTCTTRIGSEL_CCU0 = 8 , # [doc = "9: CCU1"]
CTTRIGCTL_EVTCTTRIGSEL_CCU1 = 9 , # [doc = "10: CCU2"]
CTTRIGCTL_EVTCTTRIGSEL_CCU2 = 10 , # [doc = "11: CCU3"]
CTTRIGCTL_EVTCTTRIGSEL_CCU3 = 11 , } impl From < CTTRIGCTL_EVTCTTRIGSEL_A > for u8 { # [inline (always)]
fn from (variant : CTTRIGCTL_EVTCTTRIGSEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTTRIGCTL_EVTCTTRIGSEL_A { type Ux = u8 ; } impl CTTRIGCTL_EVTCTTRIGSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTTRIGCTL_EVTCTTRIGSEL_A > { match self . bits { 0 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_FSUB0) , 1 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_FSUB1) , 2 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_Z) , 3 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_L) , 4 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD0) , 5 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD1) , 6 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD2) , 7 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD3) , 8 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU0) , 9 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU1) , 10 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU2) , 11 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU3) , _ => None , } } # [doc = "FSUB0"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_fsub0 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_FSUB0 } # [doc = "FSUB1"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_fsub1 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_FSUB1 } # [doc = "Z"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_z (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_Z } # [doc = "L"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_l (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_L } # [doc = "CCD0"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_ccd0 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD0 } # [doc = "CCD1"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_ccd1 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD1 } # [doc = "CCD2"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_ccd2 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD2 } # [doc = "CCD3"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_ccd3 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD3 } # [doc = "CCU0"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_ccu0 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU0 } # [doc = "CCU1"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_ccu1 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU1 } # [doc = "CCU2"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_ccu2 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU2 } # [doc = "CCU3"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_ccu3 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU3 } } # [doc = "Field `CTTRIGCTL_EVTCTTRIGSEL` writer - Used to Select the subscriber port that should be used for input cross trigger. Refer Figure 8 Cross Trigger Generation Path"]
pub type CTTRIGCTL_EVTCTTRIGSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 4 , O , CTTRIGCTL_EVTCTTRIGSEL_A > ; impl < 'a , REG , const O : u8 > CTTRIGCTL_EVTCTTRIGSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "FSUB0"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_fsub0 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_FSUB0) } # [doc = "FSUB1"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_fsub1 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_FSUB1) } # [doc = "Z"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_z (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_Z) } # [doc = "L"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_l (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_L) } # [doc = "CCD0"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_ccd0 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD0) } # [doc = "CCD1"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_ccd1 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD1) } # [doc = "CCD2"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_ccd2 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD2) } # [doc = "CCD3"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_ccd3 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD3) } # [doc = "CCU0"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_ccu0 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU0) } # [doc = "CCU1"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_ccu1 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU1) } # [doc = "CCU2"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_ccu2 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU2) } # [doc = "CCU3"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_ccu3 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU3) } } impl R { # [doc = "Bit 0 - Timer Cross trigger enable. This field is used to enable whether the SW or HW logic can generate a timer cross trigger event in the system. These cross triggers are connected to the respective timer trigger in of the other timer IPs in the SOC power domain. The timer cross trigger is essentially the combined logic of the HW and SW conditions controlling EN bit in the CTRCTL register."]
# [inline (always)]
pub fn cttrigctl_cten (& self) -> CTTRIGCTL_CTEN_R { CTTRIGCTL_CTEN_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Enable the Input Trigger Conditions to the Timer module as a condition for Cross Triggers. Refer Figure 8 Cross Trigger Generation Path"]
# [inline (always)]
pub fn cttrigctl_evtcten (& self) -> CTTRIGCTL_EVTCTEN_R { CTTRIGCTL_EVTCTEN_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bits 16:19 - Used to Select the subscriber port that should be used for input cross trigger. Refer Figure 8 Cross Trigger Generation Path"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel (& self) -> CTTRIGCTL_EVTCTTRIGSEL_R { CTTRIGCTL_EVTCTTRIGSEL_R :: new (((self . bits >> 16) & 0x0f) as u8) } } impl W { # [doc = "Bit 0 - Timer Cross trigger enable. This field is used to enable whether the SW or HW logic can generate a timer cross trigger event in the system. These cross triggers are connected to the respective timer trigger in of the other timer IPs in the SOC power domain. The timer cross trigger is essentially the combined logic of the HW and SW conditions controlling EN bit in the CTRCTL register."]
# [inline (always)]
# [must_use]
pub fn cttrigctl_cten (& mut self) -> CTTRIGCTL_CTEN_W < CTTRIGCTL_SPEC , 0 > { CTTRIGCTL_CTEN_W :: new (self) } # [doc = "Bit 1 - Enable the Input Trigger Conditions to the Timer module as a condition for Cross Triggers. Refer Figure 8 Cross Trigger Generation Path"]
# [inline (always)]
# [must_use]
pub fn cttrigctl_evtcten (& mut self) -> CTTRIGCTL_EVTCTEN_W < CTTRIGCTL_SPEC , 1 > { CTTRIGCTL_EVTCTEN_W :: new (self) } # [doc = "Bits 16:19 - Used to Select the subscriber port that should be used for input cross trigger. Refer Figure 8 Cross Trigger Generation Path"]
# [inline (always)]
# [must_use]
pub fn cttrigctl_evtcttrigsel (& mut self) -> CTTRIGCTL_EVTCTTRIGSEL_W < CTTRIGCTL_SPEC , 16 > { CTTRIGCTL_EVTCTTRIGSEL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Timer Cross Trigger Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cttrigctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cttrigctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTTRIGCTL_SPEC ; impl crate :: RegisterSpec for CTTRIGCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cttrigctl::R`](R) reader structure"]
impl crate :: Readable for CTTRIGCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`cttrigctl::W`](W) writer structure"]
impl crate :: Writable for CTTRIGCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTTRIGCTL to value 0"]
impl crate :: Resettable for CTTRIGCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTTRIG (w) register accessor: Timer Cross Trigger Register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cttrig::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cttrig`]
module"]
pub type CTTRIG = crate :: Reg < cttrig :: CTTRIG_SPEC > ; # [doc = "Timer Cross Trigger Register"]
pub mod cttrig { # [doc = "Register `CTTRIG` writer"]
pub type W = crate :: W < CTTRIG_SPEC > ; # [doc = "Generate Cross Trigger This bit when programmed will generate a synchronized trigger condition all the cross trigger enabled Timer instances including current timer instance.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTTRIG_TRIG_AW { # [doc = "0: DISABLED"]
CTTRIG_TRIG_DISABLED = 0 , # [doc = "1: GENERATE"]
CTTRIG_TRIG_GENERATE = 1 , } impl From < CTTRIG_TRIG_AW > for bool { # [inline (always)]
fn from (variant : CTTRIG_TRIG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `CTTRIG_TRIG` writer - Generate Cross Trigger This bit when programmed will generate a synchronized trigger condition all the cross trigger enabled Timer instances including current timer instance."]
pub type CTTRIG_TRIG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTTRIG_TRIG_AW > ; impl < 'a , REG , const O : u8 > CTTRIG_TRIG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn cttrig_trig_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIG_TRIG_AW :: CTTRIG_TRIG_DISABLED) } # [doc = "GENERATE"]
# [inline (always)]
pub fn cttrig_trig_generate (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIG_TRIG_AW :: CTTRIG_TRIG_GENERATE) } } impl W { # [doc = "Bit 0 - Generate Cross Trigger This bit when programmed will generate a synchronized trigger condition all the cross trigger enabled Timer instances including current timer instance."]
# [inline (always)]
# [must_use]
pub fn cttrig_trig (& mut self) -> CTTRIG_TRIG_W < CTTRIG_SPEC , 0 > { CTTRIG_TRIG_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Timer Cross Trigger Register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cttrig::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTTRIG_SPEC ; impl crate :: RegisterSpec for CTTRIG_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`cttrig::W`](W) writer structure"]
impl crate :: Writable for CTTRIG_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTTRIG to value 0"]
impl crate :: Resettable for CTTRIG_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTR (rw) register accessor: Counter Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctr::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctr`]
module"]
pub type CTR = crate :: Reg < ctr :: CTR_SPEC > ; # [doc = "Counter Register"]
pub mod ctr { # [doc = "Register `CTR` reader"]
pub type R = crate :: R < CTR_SPEC > ; # [doc = "Register `CTR` writer"]
pub type W = crate :: W < CTR_SPEC > ; # [doc = "Field `CTR_CCTR` reader - Current Counter value"]
pub type CTR_CCTR_R = crate :: FieldReader < u16 > ; # [doc = "Field `CTR_CCTR` writer - Current Counter value"]
pub type CTR_CCTR_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 16 , O , u16 > ; impl R { # [doc = "Bits 0:15 - Current Counter value"]
# [inline (always)]
pub fn ctr_cctr (& self) -> CTR_CCTR_R { CTR_CCTR_R :: new ((self . bits & 0xffff) as u16) } } impl W { # [doc = "Bits 0:15 - Current Counter value"]
# [inline (always)]
# [must_use]
pub fn ctr_cctr (& mut self) -> CTR_CCTR_W < CTR_SPEC , 0 > { CTR_CCTR_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Counter Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctr::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctr::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTR_SPEC ; impl crate :: RegisterSpec for CTR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ctr::R`](R) reader structure"]
impl crate :: Readable for CTR_SPEC { } # [doc = "`write(|w| ..)` method takes [`ctr::W`](W) writer structure"]
impl crate :: Writable for CTR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTR to value 0"]
impl crate :: Resettable for CTR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTRCTL (rw) register accessor: Counter Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctrctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctrctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctrctl`]
module"]
pub type CTRCTL = crate :: Reg < ctrctl :: CTRCTL_SPEC > ; # [doc = "Counter Control Register"]
pub mod ctrctl { # [doc = "Register `CTRCTL` reader"]
pub type R = crate :: R < CTRCTL_SPEC > ; # [doc = "Register `CTRCTL` writer"]
pub type W = crate :: W < CTRCTL_SPEC > ; # [doc = "Field `CTRCTL_EN` reader - Counter Enable. This bit allows the timer to advance This bit is automatically cleared if REPEAT=0 (do not automatically reload) and the counter value equals zero. CPU Write: A register write that sets the EN bit, the counter value is set per the CVAE value. Hardware: This bit may also be set as the result of an LCOND or ZCOND condition being met and the counter value changed to the load value or zero value, respectively."]
pub type CTRCTL_EN_R = crate :: BitReader < CTRCTL_EN_A > ; # [doc = "Counter Enable. This bit allows the timer to advance This bit is automatically cleared if REPEAT=0 (do not automatically reload) and the counter value equals zero. CPU Write: A register write that sets the EN bit, the counter value is set per the CVAE value. Hardware: This bit may also be set as the result of an LCOND or ZCOND condition being met and the counter value changed to the load value or zero value, respectively.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTRCTL_EN_A { # [doc = "0: DISABLED"]
CTRCTL_EN_DISABLED = 0 , # [doc = "1: ENABLED"]
CTRCTL_EN_ENABLED = 1 , } impl From < CTRCTL_EN_A > for bool { # [inline (always)]
fn from (variant : CTRCTL_EN_A) -> Self { variant as u8 != 0 } } impl CTRCTL_EN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTRCTL_EN_A { match self . bits { false => CTRCTL_EN_A :: CTRCTL_EN_DISABLED , true => CTRCTL_EN_A :: CTRCTL_EN_ENABLED , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ctrctl_en_disabled (& self) -> bool { * self == CTRCTL_EN_A :: CTRCTL_EN_DISABLED } # [doc = "ENABLED"]
# [inline (always)]
pub fn is_ctrctl_en_enabled (& self) -> bool { * self == CTRCTL_EN_A :: CTRCTL_EN_ENABLED } } # [doc = "Field `CTRCTL_EN` writer - Counter Enable. This bit allows the timer to advance This bit is automatically cleared if REPEAT=0 (do not automatically reload) and the counter value equals zero. CPU Write: A register write that sets the EN bit, the counter value is set per the CVAE value. Hardware: This bit may also be set as the result of an LCOND or ZCOND condition being met and the counter value changed to the load value or zero value, respectively."]
pub type CTRCTL_EN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTRCTL_EN_A > ; impl < 'a , REG , const O : u8 > CTRCTL_EN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn ctrctl_en_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_EN_A :: CTRCTL_EN_DISABLED) } # [doc = "ENABLED"]
# [inline (always)]
pub fn ctrctl_en_enabled (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_EN_A :: CTRCTL_EN_ENABLED) } } # [doc = "Field `CTRCTL_REPEAT` reader - Repeat. The repeat bit controls whether the counter continues to advance following a zero event, or the exiting of a debug or fault condition. If counting down, a zero event is followed by a load at the next advance condition. If counting up-down, a zero event is followed by an advance event (+1). The intent of encoding 3 is that if the debug condition is in effect, the generation of the load pulse is deferred until the debug condition is over. This allows the counter to reach zero before counting is suspended."]
pub type CTRCTL_REPEAT_R = crate :: FieldReader < CTRCTL_REPEAT_A > ; # [doc = "Repeat. The repeat bit controls whether the counter continues to advance following a zero event, or the exiting of a debug or fault condition. If counting down, a zero event is followed by a load at the next advance condition. If counting up-down, a zero event is followed by an advance event (+1). The intent of encoding 3 is that if the debug condition is in effect, the generation of the load pulse is deferred until the debug condition is over. This allows the counter to reach zero before counting is suspended.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTRCTL_REPEAT_A { # [doc = "0: REPEAT_0"]
CTRCTL_REPEAT_REPEAT_0 = 0 , # [doc = "1: REPEAT_1"]
CTRCTL_REPEAT_REPEAT_1 = 1 , # [doc = "2: REPEAT_2"]
CTRCTL_REPEAT_REPEAT_2 = 2 , # [doc = "3: REPEAT_3"]
CTRCTL_REPEAT_REPEAT_3 = 3 , # [doc = "4: REPEAT_4"]
CTRCTL_REPEAT_REPEAT_4 = 4 , } impl From < CTRCTL_REPEAT_A > for u8 { # [inline (always)]
fn from (variant : CTRCTL_REPEAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTRCTL_REPEAT_A { type Ux = u8 ; } impl CTRCTL_REPEAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTRCTL_REPEAT_A > { match self . bits { 0 => Some (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_0) , 1 => Some (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_1) , 2 => Some (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_2) , 3 => Some (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_3) , 4 => Some (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_4) , _ => None , } } # [doc = "REPEAT_0"]
# [inline (always)]
pub fn is_ctrctl_repeat_repeat_0 (& self) -> bool { * self == CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_0 } # [doc = "REPEAT_1"]
# [inline (always)]
pub fn is_ctrctl_repeat_repeat_1 (& self) -> bool { * self == CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_1 } # [doc = "REPEAT_2"]
# [inline (always)]
pub fn is_ctrctl_repeat_repeat_2 (& self) -> bool { * self == CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_2 } # [doc = "REPEAT_3"]
# [inline (always)]
pub fn is_ctrctl_repeat_repeat_3 (& self) -> bool { * self == CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_3 } # [doc = "REPEAT_4"]
# [inline (always)]
pub fn is_ctrctl_repeat_repeat_4 (& self) -> bool { * self == CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_4 } } # [doc = "Field `CTRCTL_REPEAT` writer - Repeat. The repeat bit controls whether the counter continues to advance following a zero event, or the exiting of a debug or fault condition. If counting down, a zero event is followed by a load at the next advance condition. If counting up-down, a zero event is followed by an advance event (+1). The intent of encoding 3 is that if the debug condition is in effect, the generation of the load pulse is deferred until the debug condition is over. This allows the counter to reach zero before counting is suspended."]
pub type CTRCTL_REPEAT_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CTRCTL_REPEAT_A > ; impl < 'a , REG , const O : u8 > CTRCTL_REPEAT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "REPEAT_0"]
# [inline (always)]
pub fn ctrctl_repeat_repeat_0 (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_0) } # [doc = "REPEAT_1"]
# [inline (always)]
pub fn ctrctl_repeat_repeat_1 (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_1) } # [doc = "REPEAT_2"]
# [inline (always)]
pub fn ctrctl_repeat_repeat_2 (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_2) } # [doc = "REPEAT_3"]
# [inline (always)]
pub fn ctrctl_repeat_repeat_3 (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_3) } # [doc = "REPEAT_4"]
# [inline (always)]
pub fn ctrctl_repeat_repeat_4 (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_4) } } # [doc = "Field `CTRCTL_CM` reader - Count Mode"]
pub type CTRCTL_CM_R = crate :: FieldReader < CTRCTL_CM_A > ; # [doc = "Count Mode\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTRCTL_CM_A { # [doc = "0: DOWN"]
CTRCTL_CM_DOWN = 0 , # [doc = "1: UP_DOWN"]
CTRCTL_CM_UP_DOWN = 1 , # [doc = "2: UP"]
CTRCTL_CM_UP = 2 , } impl From < CTRCTL_CM_A > for u8 { # [inline (always)]
fn from (variant : CTRCTL_CM_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTRCTL_CM_A { type Ux = u8 ; } impl CTRCTL_CM_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTRCTL_CM_A > { match self . bits { 0 => Some (CTRCTL_CM_A :: CTRCTL_CM_DOWN) , 1 => Some (CTRCTL_CM_A :: CTRCTL_CM_UP_DOWN) , 2 => Some (CTRCTL_CM_A :: CTRCTL_CM_UP) , _ => None , } } # [doc = "DOWN"]
# [inline (always)]
pub fn is_ctrctl_cm_down (& self) -> bool { * self == CTRCTL_CM_A :: CTRCTL_CM_DOWN } # [doc = "UP_DOWN"]
# [inline (always)]
pub fn is_ctrctl_cm_up_down (& self) -> bool { * self == CTRCTL_CM_A :: CTRCTL_CM_UP_DOWN } # [doc = "UP"]
# [inline (always)]
pub fn is_ctrctl_cm_up (& self) -> bool { * self == CTRCTL_CM_A :: CTRCTL_CM_UP } } # [doc = "Field `CTRCTL_CM` writer - Count Mode"]
pub type CTRCTL_CM_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , CTRCTL_CM_A > ; impl < 'a , REG , const O : u8 > CTRCTL_CM_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DOWN"]
# [inline (always)]
pub fn ctrctl_cm_down (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CM_A :: CTRCTL_CM_DOWN) } # [doc = "UP_DOWN"]
# [inline (always)]
pub fn ctrctl_cm_up_down (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CM_A :: CTRCTL_CM_UP_DOWN) } # [doc = "UP"]
# [inline (always)]
pub fn ctrctl_cm_up (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CM_A :: CTRCTL_CM_UP) } } # [doc = "Field `CTRCTL_CLC` reader - Counter Load Control. This field specifies what controls the counter operation with respect to setting the counter to the LD register value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
pub type CTRCTL_CLC_R = crate :: FieldReader < CTRCTL_CLC_A > ; # [doc = "Counter Load Control. This field specifies what controls the counter operation with respect to setting the counter to the LD register value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved.\n\nValue on reset: 7"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTRCTL_CLC_A { # [doc = "0: CCCTL0_LCOND"]
CTRCTL_CLC_CCCTL0_LCOND = 0 , # [doc = "1: CCCTL1_LCOND"]
CTRCTL_CLC_CCCTL1_LCOND = 1 , # [doc = "2: CCCTL2_LCOND"]
CTRCTL_CLC_CCCTL2_LCOND = 2 , # [doc = "3: CCCTL3_LCOND"]
CTRCTL_CLC_CCCTL3_LCOND = 3 , # [doc = "4: QEI_2INP"]
CTRCTL_CLC_QEI_2INP = 4 , # [doc = "5: QEI_3INP"]
CTRCTL_CLC_QEI_3INP = 5 , } impl From < CTRCTL_CLC_A > for u8 { # [inline (always)]
fn from (variant : CTRCTL_CLC_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTRCTL_CLC_A { type Ux = u8 ; } impl CTRCTL_CLC_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTRCTL_CLC_A > { match self . bits { 0 => Some (CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL0_LCOND) , 1 => Some (CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL1_LCOND) , 2 => Some (CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL2_LCOND) , 3 => Some (CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL3_LCOND) , 4 => Some (CTRCTL_CLC_A :: CTRCTL_CLC_QEI_2INP) , 5 => Some (CTRCTL_CLC_A :: CTRCTL_CLC_QEI_3INP) , _ => None , } } # [doc = "CCCTL0_LCOND"]
# [inline (always)]
pub fn is_ctrctl_clc_ccctl0_lcond (& self) -> bool { * self == CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL0_LCOND } # [doc = "CCCTL1_LCOND"]
# [inline (always)]
pub fn is_ctrctl_clc_ccctl1_lcond (& self) -> bool { * self == CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL1_LCOND } # [doc = "CCCTL2_LCOND"]
# [inline (always)]
pub fn is_ctrctl_clc_ccctl2_lcond (& self) -> bool { * self == CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL2_LCOND } # [doc = "CCCTL3_LCOND"]
# [inline (always)]
pub fn is_ctrctl_clc_ccctl3_lcond (& self) -> bool { * self == CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL3_LCOND } # [doc = "QEI_2INP"]
# [inline (always)]
pub fn is_ctrctl_clc_qei_2inp (& self) -> bool { * self == CTRCTL_CLC_A :: CTRCTL_CLC_QEI_2INP } # [doc = "QEI_3INP"]
# [inline (always)]
pub fn is_ctrctl_clc_qei_3inp (& self) -> bool { * self == CTRCTL_CLC_A :: CTRCTL_CLC_QEI_3INP } } # [doc = "Field `CTRCTL_CLC` writer - Counter Load Control. This field specifies what controls the counter operation with respect to setting the counter to the LD register value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
pub type CTRCTL_CLC_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CTRCTL_CLC_A > ; impl < 'a , REG , const O : u8 > CTRCTL_CLC_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "CCCTL0_LCOND"]
# [inline (always)]
pub fn ctrctl_clc_ccctl0_lcond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL0_LCOND) } # [doc = "CCCTL1_LCOND"]
# [inline (always)]
pub fn ctrctl_clc_ccctl1_lcond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL1_LCOND) } # [doc = "CCCTL2_LCOND"]
# [inline (always)]
pub fn ctrctl_clc_ccctl2_lcond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL2_LCOND) } # [doc = "CCCTL3_LCOND"]
# [inline (always)]
pub fn ctrctl_clc_ccctl3_lcond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL3_LCOND) } # [doc = "QEI_2INP"]
# [inline (always)]
pub fn ctrctl_clc_qei_2inp (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CLC_A :: CTRCTL_CLC_QEI_2INP) } # [doc = "QEI_3INP"]
# [inline (always)]
pub fn ctrctl_clc_qei_3inp (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CLC_A :: CTRCTL_CLC_QEI_3INP) } } # [doc = "Field `CTRCTL_CAC` reader - Counter Advance Control. This field specifies what controls the counter operation with respect to advancing (incrementing or decrementing) the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
pub type CTRCTL_CAC_R = crate :: FieldReader < CTRCTL_CAC_A > ; # [doc = "Counter Advance Control. This field specifies what controls the counter operation with respect to advancing (incrementing or decrementing) the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved.\n\nValue on reset: 7"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTRCTL_CAC_A { # [doc = "0: CCCTL0_ACOND"]
CTRCTL_CAC_CCCTL0_ACOND = 0 , # [doc = "1: CCCTL1_ACOND"]
CTRCTL_CAC_CCCTL1_ACOND = 1 , # [doc = "2: CCCTL2_ACOND"]
CTRCTL_CAC_CCCTL2_ACOND = 2 , # [doc = "3: CCCTL3_ACOND"]
CTRCTL_CAC_CCCTL3_ACOND = 3 , # [doc = "4: QEI_2INP"]
CTRCTL_CAC_QEI_2INP = 4 , # [doc = "5: QEI_3INP"]
CTRCTL_CAC_QEI_3INP = 5 , } impl From < CTRCTL_CAC_A > for u8 { # [inline (always)]
fn from (variant : CTRCTL_CAC_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTRCTL_CAC_A { type Ux = u8 ; } impl CTRCTL_CAC_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTRCTL_CAC_A > { match self . bits { 0 => Some (CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL0_ACOND) , 1 => Some (CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL1_ACOND) , 2 => Some (CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL2_ACOND) , 3 => Some (CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL3_ACOND) , 4 => Some (CTRCTL_CAC_A :: CTRCTL_CAC_QEI_2INP) , 5 => Some (CTRCTL_CAC_A :: CTRCTL_CAC_QEI_3INP) , _ => None , } } # [doc = "CCCTL0_ACOND"]
# [inline (always)]
pub fn is_ctrctl_cac_ccctl0_acond (& self) -> bool { * self == CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL0_ACOND } # [doc = "CCCTL1_ACOND"]
# [inline (always)]
pub fn is_ctrctl_cac_ccctl1_acond (& self) -> bool { * self == CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL1_ACOND } # [doc = "CCCTL2_ACOND"]
# [inline (always)]
pub fn is_ctrctl_cac_ccctl2_acond (& self) -> bool { * self == CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL2_ACOND } # [doc = "CCCTL3_ACOND"]
# [inline (always)]
pub fn is_ctrctl_cac_ccctl3_acond (& self) -> bool { * self == CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL3_ACOND } # [doc = "QEI_2INP"]
# [inline (always)]
pub fn is_ctrctl_cac_qei_2inp (& self) -> bool { * self == CTRCTL_CAC_A :: CTRCTL_CAC_QEI_2INP } # [doc = "QEI_3INP"]
# [inline (always)]
pub fn is_ctrctl_cac_qei_3inp (& self) -> bool { * self == CTRCTL_CAC_A :: CTRCTL_CAC_QEI_3INP } } # [doc = "Field `CTRCTL_CAC` writer - Counter Advance Control. This field specifies what controls the counter operation with respect to advancing (incrementing or decrementing) the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
pub type CTRCTL_CAC_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CTRCTL_CAC_A > ; impl < 'a , REG , const O : u8 > CTRCTL_CAC_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "CCCTL0_ACOND"]
# [inline (always)]
pub fn ctrctl_cac_ccctl0_acond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL0_ACOND) } # [doc = "CCCTL1_ACOND"]
# [inline (always)]
pub fn ctrctl_cac_ccctl1_acond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL1_ACOND) } # [doc = "CCCTL2_ACOND"]
# [inline (always)]
pub fn ctrctl_cac_ccctl2_acond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL2_ACOND) } # [doc = "CCCTL3_ACOND"]
# [inline (always)]
pub fn ctrctl_cac_ccctl3_acond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL3_ACOND) } # [doc = "QEI_2INP"]
# [inline (always)]
pub fn ctrctl_cac_qei_2inp (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CAC_A :: CTRCTL_CAC_QEI_2INP) } # [doc = "QEI_3INP"]
# [inline (always)]
pub fn ctrctl_cac_qei_3inp (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CAC_A :: CTRCTL_CAC_QEI_3INP) } } # [doc = "Field `CTRCTL_CZC` reader - Counter Zero Control This field specifies what controls the counter operation with respect to zeroing the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
pub type CTRCTL_CZC_R = crate :: FieldReader < CTRCTL_CZC_A > ; # [doc = "Counter Zero Control This field specifies what controls the counter operation with respect to zeroing the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved.\n\nValue on reset: 7"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTRCTL_CZC_A { # [doc = "0: CCCTL0_ZCOND"]
CTRCTL_CZC_CCCTL0_ZCOND = 0 , # [doc = "1: CCCTL1_ZCOND"]
CTRCTL_CZC_CCCTL1_ZCOND = 1 , # [doc = "2: CCCTL2_ZCOND"]
CTRCTL_CZC_CCCTL2_ZCOND = 2 , # [doc = "3: CCCTL3_ZCOND"]
CTRCTL_CZC_CCCTL3_ZCOND = 3 , # [doc = "4: QEI_2INP"]
CTRCTL_CZC_QEI_2INP = 4 , # [doc = "5: QEI_3INP"]
CTRCTL_CZC_QEI_3INP = 5 , } impl From < CTRCTL_CZC_A > for u8 { # [inline (always)]
fn from (variant : CTRCTL_CZC_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTRCTL_CZC_A { type Ux = u8 ; } impl CTRCTL_CZC_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTRCTL_CZC_A > { match self . bits { 0 => Some (CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL0_ZCOND) , 1 => Some (CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL1_ZCOND) , 2 => Some (CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL2_ZCOND) , 3 => Some (CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL3_ZCOND) , 4 => Some (CTRCTL_CZC_A :: CTRCTL_CZC_QEI_2INP) , 5 => Some (CTRCTL_CZC_A :: CTRCTL_CZC_QEI_3INP) , _ => None , } } # [doc = "CCCTL0_ZCOND"]
# [inline (always)]
pub fn is_ctrctl_czc_ccctl0_zcond (& self) -> bool { * self == CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL0_ZCOND } # [doc = "CCCTL1_ZCOND"]
# [inline (always)]
pub fn is_ctrctl_czc_ccctl1_zcond (& self) -> bool { * self == CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL1_ZCOND } # [doc = "CCCTL2_ZCOND"]
# [inline (always)]
pub fn is_ctrctl_czc_ccctl2_zcond (& self) -> bool { * self == CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL2_ZCOND } # [doc = "CCCTL3_ZCOND"]
# [inline (always)]
pub fn is_ctrctl_czc_ccctl3_zcond (& self) -> bool { * self == CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL3_ZCOND } # [doc = "QEI_2INP"]
# [inline (always)]
pub fn is_ctrctl_czc_qei_2inp (& self) -> bool { * self == CTRCTL_CZC_A :: CTRCTL_CZC_QEI_2INP } # [doc = "QEI_3INP"]
# [inline (always)]
pub fn is_ctrctl_czc_qei_3inp (& self) -> bool { * self == CTRCTL_CZC_A :: CTRCTL_CZC_QEI_3INP } } # [doc = "Field `CTRCTL_CZC` writer - Counter Zero Control This field specifies what controls the counter operation with respect to zeroing the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
pub type CTRCTL_CZC_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CTRCTL_CZC_A > ; impl < 'a , REG , const O : u8 > CTRCTL_CZC_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "CCCTL0_ZCOND"]
# [inline (always)]
pub fn ctrctl_czc_ccctl0_zcond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL0_ZCOND) } # [doc = "CCCTL1_ZCOND"]
# [inline (always)]
pub fn ctrctl_czc_ccctl1_zcond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL1_ZCOND) } # [doc = "CCCTL2_ZCOND"]
# [inline (always)]
pub fn ctrctl_czc_ccctl2_zcond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL2_ZCOND) } # [doc = "CCCTL3_ZCOND"]
# [inline (always)]
pub fn ctrctl_czc_ccctl3_zcond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL3_ZCOND) } # [doc = "QEI_2INP"]
# [inline (always)]
pub fn ctrctl_czc_qei_2inp (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CZC_A :: CTRCTL_CZC_QEI_2INP) } # [doc = "QEI_3INP"]
# [inline (always)]
pub fn ctrctl_czc_qei_3inp (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CZC_A :: CTRCTL_CZC_QEI_3INP) } } # [doc = "Field `CTRCTL_DRB` reader - Debug Resume Behavior This bit specifies what the device does following the release/exit of debug mode."]
pub type CTRCTL_DRB_R = crate :: BitReader < CTRCTL_DRB_A > ; # [doc = "Debug Resume Behavior This bit specifies what the device does following the release/exit of debug mode.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTRCTL_DRB_A { # [doc = "0: RESUME"]
CTRCTL_DRB_RESUME = 0 , # [doc = "1: CVAE_ACTION"]
CTRCTL_DRB_CVAE_ACTION = 1 , } impl From < CTRCTL_DRB_A > for bool { # [inline (always)]
fn from (variant : CTRCTL_DRB_A) -> Self { variant as u8 != 0 } } impl CTRCTL_DRB_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTRCTL_DRB_A { match self . bits { false => CTRCTL_DRB_A :: CTRCTL_DRB_RESUME , true => CTRCTL_DRB_A :: CTRCTL_DRB_CVAE_ACTION , } } # [doc = "RESUME"]
# [inline (always)]
pub fn is_ctrctl_drb_resume (& self) -> bool { * self == CTRCTL_DRB_A :: CTRCTL_DRB_RESUME } # [doc = "CVAE_ACTION"]
# [inline (always)]
pub fn is_ctrctl_drb_cvae_action (& self) -> bool { * self == CTRCTL_DRB_A :: CTRCTL_DRB_CVAE_ACTION } } # [doc = "Field `CTRCTL_DRB` writer - Debug Resume Behavior This bit specifies what the device does following the release/exit of debug mode."]
pub type CTRCTL_DRB_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTRCTL_DRB_A > ; impl < 'a , REG , const O : u8 > CTRCTL_DRB_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "RESUME"]
# [inline (always)]
pub fn ctrctl_drb_resume (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_DRB_A :: CTRCTL_DRB_RESUME) } # [doc = "CVAE_ACTION"]
# [inline (always)]
pub fn ctrctl_drb_cvae_action (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_DRB_A :: CTRCTL_DRB_CVAE_ACTION) } } # [doc = "Field `CTRCTL_CVAE` reader - Counter Value After Enable. This field specifies the initialization condition of the counter when the EN bit is changed from 0 to 1 by a write to the CTRCTL register. Note that an external event can also cause the EN bit to go active."]
pub type CTRCTL_CVAE_R = crate :: FieldReader < CTRCTL_CVAE_A > ; # [doc = "Counter Value After Enable. This field specifies the initialization condition of the counter when the EN bit is changed from 0 to 1 by a write to the CTRCTL register. Note that an external event can also cause the EN bit to go active.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTRCTL_CVAE_A { # [doc = "0: LDVAL"]
CTRCTL_CVAE_LDVAL = 0 , # [doc = "1: NOCHANGE"]
CTRCTL_CVAE_NOCHANGE = 1 , # [doc = "2: ZEROVAL"]
CTRCTL_CVAE_ZEROVAL = 2 , } impl From < CTRCTL_CVAE_A > for u8 { # [inline (always)]
fn from (variant : CTRCTL_CVAE_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTRCTL_CVAE_A { type Ux = u8 ; } impl CTRCTL_CVAE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTRCTL_CVAE_A > { match self . bits { 0 => Some (CTRCTL_CVAE_A :: CTRCTL_CVAE_LDVAL) , 1 => Some (CTRCTL_CVAE_A :: CTRCTL_CVAE_NOCHANGE) , 2 => Some (CTRCTL_CVAE_A :: CTRCTL_CVAE_ZEROVAL) , _ => None , } } # [doc = "LDVAL"]
# [inline (always)]
pub fn is_ctrctl_cvae_ldval (& self) -> bool { * self == CTRCTL_CVAE_A :: CTRCTL_CVAE_LDVAL } # [doc = "NOCHANGE"]
# [inline (always)]
pub fn is_ctrctl_cvae_nochange (& self) -> bool { * self == CTRCTL_CVAE_A :: CTRCTL_CVAE_NOCHANGE } # [doc = "ZEROVAL"]
# [inline (always)]
pub fn is_ctrctl_cvae_zeroval (& self) -> bool { * self == CTRCTL_CVAE_A :: CTRCTL_CVAE_ZEROVAL } } # [doc = "Field `CTRCTL_CVAE` writer - Counter Value After Enable. This field specifies the initialization condition of the counter when the EN bit is changed from 0 to 1 by a write to the CTRCTL register. Note that an external event can also cause the EN bit to go active."]
pub type CTRCTL_CVAE_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , CTRCTL_CVAE_A > ; impl < 'a , REG , const O : u8 > CTRCTL_CVAE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "LDVAL"]
# [inline (always)]
pub fn ctrctl_cvae_ldval (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CVAE_A :: CTRCTL_CVAE_LDVAL) } # [doc = "NOCHANGE"]
# [inline (always)]
pub fn ctrctl_cvae_nochange (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CVAE_A :: CTRCTL_CVAE_NOCHANGE) } # [doc = "ZEROVAL"]
# [inline (always)]
pub fn ctrctl_cvae_zeroval (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CVAE_A :: CTRCTL_CVAE_ZEROVAL) } } impl R { # [doc = "Bit 0 - Counter Enable. This bit allows the timer to advance This bit is automatically cleared if REPEAT=0 (do not automatically reload) and the counter value equals zero. CPU Write: A register write that sets the EN bit, the counter value is set per the CVAE value. Hardware: This bit may also be set as the result of an LCOND or ZCOND condition being met and the counter value changed to the load value or zero value, respectively."]
# [inline (always)]
pub fn ctrctl_en (& self) -> CTRCTL_EN_R { CTRCTL_EN_R :: new ((self . bits & 1) != 0) } # [doc = "Bits 1:3 - Repeat. The repeat bit controls whether the counter continues to advance following a zero event, or the exiting of a debug or fault condition. If counting down, a zero event is followed by a load at the next advance condition. If counting up-down, a zero event is followed by an advance event (+1). The intent of encoding 3 is that if the debug condition is in effect, the generation of the load pulse is deferred until the debug condition is over. This allows the counter to reach zero before counting is suspended."]
# [inline (always)]
pub fn ctrctl_repeat (& self) -> CTRCTL_REPEAT_R { CTRCTL_REPEAT_R :: new (((self . bits >> 1) & 7) as u8) } # [doc = "Bits 4:5 - Count Mode"]
# [inline (always)]
pub fn ctrctl_cm (& self) -> CTRCTL_CM_R { CTRCTL_CM_R :: new (((self . bits >> 4) & 3) as u8) } # [doc = "Bits 7:9 - Counter Load Control. This field specifies what controls the counter operation with respect to setting the counter to the LD register value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
# [inline (always)]
pub fn ctrctl_clc (& self) -> CTRCTL_CLC_R { CTRCTL_CLC_R :: new (((self . bits >> 7) & 7) as u8) } # [doc = "Bits 10:12 - Counter Advance Control. This field specifies what controls the counter operation with respect to advancing (incrementing or decrementing) the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
# [inline (always)]
pub fn ctrctl_cac (& self) -> CTRCTL_CAC_R { CTRCTL_CAC_R :: new (((self . bits >> 10) & 7) as u8) } # [doc = "Bits 13:15 - Counter Zero Control This field specifies what controls the counter operation with respect to zeroing the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
# [inline (always)]
pub fn ctrctl_czc (& self) -> CTRCTL_CZC_R { CTRCTL_CZC_R :: new (((self . bits >> 13) & 7) as u8) } # [doc = "Bit 17 - Debug Resume Behavior This bit specifies what the device does following the release/exit of debug mode."]
# [inline (always)]
pub fn ctrctl_drb (& self) -> CTRCTL_DRB_R { CTRCTL_DRB_R :: new (((self . bits >> 17) & 1) != 0) } # [doc = "Bits 28:29 - Counter Value After Enable. This field specifies the initialization condition of the counter when the EN bit is changed from 0 to 1 by a write to the CTRCTL register. Note that an external event can also cause the EN bit to go active."]
# [inline (always)]
pub fn ctrctl_cvae (& self) -> CTRCTL_CVAE_R { CTRCTL_CVAE_R :: new (((self . bits >> 28) & 3) as u8) } } impl W { # [doc = "Bit 0 - Counter Enable. This bit allows the timer to advance This bit is automatically cleared if REPEAT=0 (do not automatically reload) and the counter value equals zero. CPU Write: A register write that sets the EN bit, the counter value is set per the CVAE value. Hardware: This bit may also be set as the result of an LCOND or ZCOND condition being met and the counter value changed to the load value or zero value, respectively."]
# [inline (always)]
# [must_use]
pub fn ctrctl_en (& mut self) -> CTRCTL_EN_W < CTRCTL_SPEC , 0 > { CTRCTL_EN_W :: new (self) } # [doc = "Bits 1:3 - Repeat. The repeat bit controls whether the counter continues to advance following a zero event, or the exiting of a debug or fault condition. If counting down, a zero event is followed by a load at the next advance condition. If counting up-down, a zero event is followed by an advance event (+1). The intent of encoding 3 is that if the debug condition is in effect, the generation of the load pulse is deferred until the debug condition is over. This allows the counter to reach zero before counting is suspended."]
# [inline (always)]
# [must_use]
pub fn ctrctl_repeat (& mut self) -> CTRCTL_REPEAT_W < CTRCTL_SPEC , 1 > { CTRCTL_REPEAT_W :: new (self) } # [doc = "Bits 4:5 - Count Mode"]
# [inline (always)]
# [must_use]
pub fn ctrctl_cm (& mut self) -> CTRCTL_CM_W < CTRCTL_SPEC , 4 > { CTRCTL_CM_W :: new (self) } # [doc = "Bits 7:9 - Counter Load Control. This field specifies what controls the counter operation with respect to setting the counter to the LD register value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
# [inline (always)]
# [must_use]
pub fn ctrctl_clc (& mut self) -> CTRCTL_CLC_W < CTRCTL_SPEC , 7 > { CTRCTL_CLC_W :: new (self) } # [doc = "Bits 10:12 - Counter Advance Control. This field specifies what controls the counter operation with respect to advancing (incrementing or decrementing) the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
# [inline (always)]
# [must_use]
pub fn ctrctl_cac (& mut self) -> CTRCTL_CAC_W < CTRCTL_SPEC , 10 > { CTRCTL_CAC_W :: new (self) } # [doc = "Bits 13:15 - Counter Zero Control This field specifies what controls the counter operation with respect to zeroing the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
# [inline (always)]
# [must_use]
pub fn ctrctl_czc (& mut self) -> CTRCTL_CZC_W < CTRCTL_SPEC , 13 > { CTRCTL_CZC_W :: new (self) } # [doc = "Bit 17 - Debug Resume Behavior This bit specifies what the device does following the release/exit of debug mode."]
# [inline (always)]
# [must_use]
pub fn ctrctl_drb (& mut self) -> CTRCTL_DRB_W < CTRCTL_SPEC , 17 > { CTRCTL_DRB_W :: new (self) } # [doc = "Bits 28:29 - Counter Value After Enable. This field specifies the initialization condition of the counter when the EN bit is changed from 0 to 1 by a write to the CTRCTL register. Note that an external event can also cause the EN bit to go active."]
# [inline (always)]
# [must_use]
pub fn ctrctl_cvae (& mut self) -> CTRCTL_CVAE_W < CTRCTL_SPEC , 28 > { CTRCTL_CVAE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Counter Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctrctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctrctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTRCTL_SPEC ; impl crate :: RegisterSpec for CTRCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ctrctl::R`](R) reader structure"]
impl crate :: Readable for CTRCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`ctrctl::W`](W) writer structure"]
impl crate :: Writable for CTRCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTRCTL to value 0xff80"]
impl crate :: Resettable for CTRCTL_SPEC { const RESET_VALUE : Self :: Ux = 0xff80 ; } } # [doc = "LOAD (rw) register accessor: Load Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`load::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`load::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@load`]
module"]
pub type LOAD = crate :: Reg < load :: LOAD_SPEC > ; # [doc = "Load 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 `LOAD_LD` reader - Load Value"]
pub type LOAD_LD_R = crate :: FieldReader < u16 > ; # [doc = "Field `LOAD_LD` writer - Load Value"]
pub type LOAD_LD_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 16 , O , u16 > ; impl R { # [doc = "Bits 0:15 - Load Value"]
# [inline (always)]
pub fn load_ld (& self) -> LOAD_LD_R { LOAD_LD_R :: new ((self . bits & 0xffff) as u16) } } impl W { # [doc = "Bits 0:15 - Load Value"]
# [inline (always)]
# [must_use]
pub fn load_ld (& mut self) -> LOAD_LD_W < LOAD_SPEC , 0 > { LOAD_LD_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Load Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`load::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`load::W`](W). You can also [`modify`](crate::generic::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 { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets LOAD to value 0"]
impl crate :: Resettable for LOAD_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CC_01 (rw) register accessor: Capture or Compare Register 0 to Capture or Compare Register 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cc_01::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cc_01::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cc_01`]
module"]
pub type CC_01 = crate :: Reg < cc_01 :: CC_01_SPEC > ; # [doc = "Capture or Compare Register 0 to Capture or Compare Register 1"]
pub mod cc_01 { # [doc = "Register `CC_01[%s]` reader"]
pub type R = crate :: R < CC_01_SPEC > ; # [doc = "Register `CC_01[%s]` writer"]
pub type W = crate :: W < CC_01_SPEC > ; # [doc = "Field `CC_01_CCVAL` reader - Capture or compare value"]
pub type CC_01_CCVAL_R = crate :: FieldReader < u16 > ; # [doc = "Field `CC_01_CCVAL` writer - Capture or compare value"]
pub type CC_01_CCVAL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 16 , O , u16 > ; impl R { # [doc = "Bits 0:15 - Capture or compare value"]
# [inline (always)]
pub fn cc_01_ccval (& self) -> CC_01_CCVAL_R { CC_01_CCVAL_R :: new ((self . bits & 0xffff) as u16) } } impl W { # [doc = "Bits 0:15 - Capture or compare value"]
# [inline (always)]
# [must_use]
pub fn cc_01_ccval (& mut self) -> CC_01_CCVAL_W < CC_01_SPEC , 0 > { CC_01_CCVAL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Capture or Compare Register 0 to Capture or Compare Register 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cc_01::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cc_01::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CC_01_SPEC ; impl crate :: RegisterSpec for CC_01_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cc_01::R`](R) reader structure"]
impl crate :: Readable for CC_01_SPEC { } # [doc = "`write(|w| ..)` method takes [`cc_01::W`](W) writer structure"]
impl crate :: Writable for CC_01_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CC_01[%s]
to value 0"]
impl crate :: Resettable for CC_01_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CCCTL_01 (rw) register accessor: Capture or Compare Control Registers\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ccctl_01::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ccctl_01::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccctl_01`]
module"]
pub type CCCTL_01 = crate :: Reg < ccctl_01 :: CCCTL_01_SPEC > ; # [doc = "Capture or Compare Control Registers"]
pub mod ccctl_01 { # [doc = "Register `CCCTL_01[%s]` reader"]
pub type R = crate :: R < CCCTL_01_SPEC > ; # [doc = "Register `CCCTL_01[%s]` writer"]
pub type W = crate :: W < CCCTL_01_SPEC > ; # [doc = "Field `CCCTL_01_CCOND` reader - Capture Condition. #br# Specifies the condition that generates a capture pulse. 4h-Fh = Reserved"]
pub type CCCTL_01_CCOND_R = crate :: FieldReader < CCCTL_01_CCOND_A > ; # [doc = "Capture Condition. #br# Specifies the condition that generates a capture pulse. 4h-Fh = Reserved\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCCTL_01_CCOND_A { # [doc = "0: NOCAPTURE"]
CCCTL_01_CCOND_NOCAPTURE = 0 , # [doc = "1: CC_TRIG_RISE"]
CCCTL_01_CCOND_CC_TRIG_RISE = 1 , # [doc = "2: CC_TRIG_FALL"]
CCCTL_01_CCOND_CC_TRIG_FALL = 2 , # [doc = "3: CC_TRIG_EDGE"]
CCCTL_01_CCOND_CC_TRIG_EDGE = 3 , } impl From < CCCTL_01_CCOND_A > for u8 { # [inline (always)]
fn from (variant : CCCTL_01_CCOND_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCCTL_01_CCOND_A { type Ux = u8 ; } impl CCCTL_01_CCOND_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCCTL_01_CCOND_A > { match self . bits { 0 => Some (CCCTL_01_CCOND_A :: CCCTL_01_CCOND_NOCAPTURE) , 1 => Some (CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_RISE) , 2 => Some (CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_FALL) , 3 => Some (CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_EDGE) , _ => None , } } # [doc = "NOCAPTURE"]
# [inline (always)]
pub fn is_ccctl_01_ccond_nocapture (& self) -> bool { * self == CCCTL_01_CCOND_A :: CCCTL_01_CCOND_NOCAPTURE } # [doc = "CC_TRIG_RISE"]
# [inline (always)]
pub fn is_ccctl_01_ccond_cc_trig_rise (& self) -> bool { * self == CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_RISE } # [doc = "CC_TRIG_FALL"]
# [inline (always)]
pub fn is_ccctl_01_ccond_cc_trig_fall (& self) -> bool { * self == CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_FALL } # [doc = "CC_TRIG_EDGE"]
# [inline (always)]
pub fn is_ccctl_01_ccond_cc_trig_edge (& self) -> bool { * self == CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_EDGE } } # [doc = "Field `CCCTL_01_CCOND` writer - Capture Condition. #br# Specifies the condition that generates a capture pulse. 4h-Fh = Reserved"]
pub type CCCTL_01_CCOND_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CCCTL_01_CCOND_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_CCOND_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "NOCAPTURE"]
# [inline (always)]
pub fn ccctl_01_ccond_nocapture (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCOND_A :: CCCTL_01_CCOND_NOCAPTURE) } # [doc = "CC_TRIG_RISE"]
# [inline (always)]
pub fn ccctl_01_ccond_cc_trig_rise (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_RISE) } # [doc = "CC_TRIG_FALL"]
# [inline (always)]
pub fn ccctl_01_ccond_cc_trig_fall (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_FALL) } # [doc = "CC_TRIG_EDGE"]
# [inline (always)]
pub fn ccctl_01_ccond_cc_trig_edge (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_EDGE) } } # [doc = "Field `CCCTL_01_ACOND` reader - Advance Condition. #br# Specifies the condition that generates an advance pulse. 6h-Fh = Reserved"]
pub type CCCTL_01_ACOND_R = crate :: FieldReader < CCCTL_01_ACOND_A > ; # [doc = "Advance Condition. #br# Specifies the condition that generates an advance pulse. 6h-Fh = Reserved\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCCTL_01_ACOND_A { # [doc = "0: TIMCLK"]
CCCTL_01_ACOND_TIMCLK = 0 , # [doc = "1: CC_TRIG_RISE"]
CCCTL_01_ACOND_CC_TRIG_RISE = 1 , # [doc = "2: CC_TRIG_FALL"]
CCCTL_01_ACOND_CC_TRIG_FALL = 2 , # [doc = "3: CC_TRIG_EDGE"]
CCCTL_01_ACOND_CC_TRIG_EDGE = 3 , # [doc = "5: CC_TRIG_HIGH"]
CCCTL_01_ACOND_CC_TRIG_HIGH = 5 , } impl From < CCCTL_01_ACOND_A > for u8 { # [inline (always)]
fn from (variant : CCCTL_01_ACOND_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCCTL_01_ACOND_A { type Ux = u8 ; } impl CCCTL_01_ACOND_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCCTL_01_ACOND_A > { match self . bits { 0 => Some (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_TIMCLK) , 1 => Some (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_RISE) , 2 => Some (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_FALL) , 3 => Some (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_EDGE) , 5 => Some (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_HIGH) , _ => None , } } # [doc = "TIMCLK"]
# [inline (always)]
pub fn is_ccctl_01_acond_timclk (& self) -> bool { * self == CCCTL_01_ACOND_A :: CCCTL_01_ACOND_TIMCLK } # [doc = "CC_TRIG_RISE"]
# [inline (always)]
pub fn is_ccctl_01_acond_cc_trig_rise (& self) -> bool { * self == CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_RISE } # [doc = "CC_TRIG_FALL"]
# [inline (always)]
pub fn is_ccctl_01_acond_cc_trig_fall (& self) -> bool { * self == CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_FALL } # [doc = "CC_TRIG_EDGE"]
# [inline (always)]
pub fn is_ccctl_01_acond_cc_trig_edge (& self) -> bool { * self == CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_EDGE } # [doc = "CC_TRIG_HIGH"]
# [inline (always)]
pub fn is_ccctl_01_acond_cc_trig_high (& self) -> bool { * self == CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_HIGH } } # [doc = "Field `CCCTL_01_ACOND` writer - Advance Condition. #br# Specifies the condition that generates an advance pulse. 6h-Fh = Reserved"]
pub type CCCTL_01_ACOND_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CCCTL_01_ACOND_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_ACOND_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "TIMCLK"]
# [inline (always)]
pub fn ccctl_01_acond_timclk (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_TIMCLK) } # [doc = "CC_TRIG_RISE"]
# [inline (always)]
pub fn ccctl_01_acond_cc_trig_rise (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_RISE) } # [doc = "CC_TRIG_FALL"]
# [inline (always)]
pub fn ccctl_01_acond_cc_trig_fall (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_FALL) } # [doc = "CC_TRIG_EDGE"]
# [inline (always)]
pub fn ccctl_01_acond_cc_trig_edge (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_EDGE) } # [doc = "CC_TRIG_HIGH"]
# [inline (always)]
pub fn ccctl_01_acond_cc_trig_high (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_HIGH) } } # [doc = "Field `CCCTL_01_LCOND` reader - Load Condition. #br# Specifies the condition that generates a load pulse. 4h-Fh = Reserved"]
pub type CCCTL_01_LCOND_R = crate :: FieldReader < CCCTL_01_LCOND_A > ; # [doc = "Load Condition. #br# Specifies the condition that generates a load pulse. 4h-Fh = Reserved\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCCTL_01_LCOND_A { # [doc = "1: CC_TRIG_RISE"]
CCCTL_01_LCOND_CC_TRIG_RISE = 1 , # [doc = "2: CC_TRIG_FALL"]
CCCTL_01_LCOND_CC_TRIG_FALL = 2 , # [doc = "3: CC_TRIG_EDGE"]
CCCTL_01_LCOND_CC_TRIG_EDGE = 3 , } impl From < CCCTL_01_LCOND_A > for u8 { # [inline (always)]
fn from (variant : CCCTL_01_LCOND_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCCTL_01_LCOND_A { type Ux = u8 ; } impl CCCTL_01_LCOND_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCCTL_01_LCOND_A > { match self . bits { 1 => Some (CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_RISE) , 2 => Some (CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_FALL) , 3 => Some (CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_EDGE) , _ => None , } } # [doc = "CC_TRIG_RISE"]
# [inline (always)]
pub fn is_ccctl_01_lcond_cc_trig_rise (& self) -> bool { * self == CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_RISE } # [doc = "CC_TRIG_FALL"]
# [inline (always)]
pub fn is_ccctl_01_lcond_cc_trig_fall (& self) -> bool { * self == CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_FALL } # [doc = "CC_TRIG_EDGE"]
# [inline (always)]
pub fn is_ccctl_01_lcond_cc_trig_edge (& self) -> bool { * self == CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_EDGE } } # [doc = "Field `CCCTL_01_LCOND` writer - Load Condition. #br# Specifies the condition that generates a load pulse. 4h-Fh = Reserved"]
pub type CCCTL_01_LCOND_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CCCTL_01_LCOND_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_LCOND_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "CC_TRIG_RISE"]
# [inline (always)]
pub fn ccctl_01_lcond_cc_trig_rise (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_RISE) } # [doc = "CC_TRIG_FALL"]
# [inline (always)]
pub fn ccctl_01_lcond_cc_trig_fall (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_FALL) } # [doc = "CC_TRIG_EDGE"]
# [inline (always)]
pub fn ccctl_01_lcond_cc_trig_edge (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_EDGE) } } # [doc = "Field `CCCTL_01_ZCOND` reader - Zero Condition. #br# This field specifies the condition that generates a zero pulse. 4h-Fh = Reserved"]
pub type CCCTL_01_ZCOND_R = crate :: FieldReader < CCCTL_01_ZCOND_A > ; # [doc = "Zero Condition. #br# This field specifies the condition that generates a zero pulse. 4h-Fh = Reserved\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCCTL_01_ZCOND_A { # [doc = "1: CC_TRIG_RISE"]
CCCTL_01_ZCOND_CC_TRIG_RISE = 1 , # [doc = "2: CC_TRIG_FALL"]
CCCTL_01_ZCOND_CC_TRIG_FALL = 2 , # [doc = "3: CC_TRIG_EDGE"]
CCCTL_01_ZCOND_CC_TRIG_EDGE = 3 , } impl From < CCCTL_01_ZCOND_A > for u8 { # [inline (always)]
fn from (variant : CCCTL_01_ZCOND_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCCTL_01_ZCOND_A { type Ux = u8 ; } impl CCCTL_01_ZCOND_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCCTL_01_ZCOND_A > { match self . bits { 1 => Some (CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_RISE) , 2 => Some (CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_FALL) , 3 => Some (CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_EDGE) , _ => None , } } # [doc = "CC_TRIG_RISE"]
# [inline (always)]
pub fn is_ccctl_01_zcond_cc_trig_rise (& self) -> bool { * self == CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_RISE } # [doc = "CC_TRIG_FALL"]
# [inline (always)]
pub fn is_ccctl_01_zcond_cc_trig_fall (& self) -> bool { * self == CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_FALL } # [doc = "CC_TRIG_EDGE"]
# [inline (always)]
pub fn is_ccctl_01_zcond_cc_trig_edge (& self) -> bool { * self == CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_EDGE } } # [doc = "Field `CCCTL_01_ZCOND` writer - Zero Condition. #br# This field specifies the condition that generates a zero pulse. 4h-Fh = Reserved"]
pub type CCCTL_01_ZCOND_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CCCTL_01_ZCOND_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_ZCOND_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "CC_TRIG_RISE"]
# [inline (always)]
pub fn ccctl_01_zcond_cc_trig_rise (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_RISE) } # [doc = "CC_TRIG_FALL"]
# [inline (always)]
pub fn ccctl_01_zcond_cc_trig_fall (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_FALL) } # [doc = "CC_TRIG_EDGE"]
# [inline (always)]
pub fn ccctl_01_zcond_cc_trig_edge (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_EDGE) } } # [doc = "Field `CCCTL_01_COC` reader - Capture or Compare. #br# Specifies whether the corresponding CC register is used as a capture register or a compare register (never both)."]
pub type CCCTL_01_COC_R = crate :: BitReader < CCCTL_01_COC_A > ; # [doc = "Capture or Compare. #br# Specifies whether the corresponding CC register is used as a capture register or a compare register (never both).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CCCTL_01_COC_A { # [doc = "0: COMPARE"]
CCCTL_01_COC_COMPARE = 0 , # [doc = "1: CAPTURE"]
CCCTL_01_COC_CAPTURE = 1 , } impl From < CCCTL_01_COC_A > for bool { # [inline (always)]
fn from (variant : CCCTL_01_COC_A) -> Self { variant as u8 != 0 } } impl CCCTL_01_COC_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCCTL_01_COC_A { match self . bits { false => CCCTL_01_COC_A :: CCCTL_01_COC_COMPARE , true => CCCTL_01_COC_A :: CCCTL_01_COC_CAPTURE , } } # [doc = "COMPARE"]
# [inline (always)]
pub fn is_ccctl_01_coc_compare (& self) -> bool { * self == CCCTL_01_COC_A :: CCCTL_01_COC_COMPARE } # [doc = "CAPTURE"]
# [inline (always)]
pub fn is_ccctl_01_coc_capture (& self) -> bool { * self == CCCTL_01_COC_A :: CCCTL_01_COC_CAPTURE } } # [doc = "Field `CCCTL_01_COC` writer - Capture or Compare. #br# Specifies whether the corresponding CC register is used as a capture register or a compare register (never both)."]
pub type CCCTL_01_COC_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CCCTL_01_COC_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_COC_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "COMPARE"]
# [inline (always)]
pub fn ccctl_01_coc_compare (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_COC_A :: CCCTL_01_COC_COMPARE) } # [doc = "CAPTURE"]
# [inline (always)]
pub fn ccctl_01_coc_capture (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_COC_A :: CCCTL_01_COC_CAPTURE) } } # [doc = "Field `CCCTL_01_CC2SELU` reader - Selects the source second CCU event."]
pub type CCCTL_01_CC2SELU_R = crate :: FieldReader < CCCTL_01_CC2SELU_A > ; # [doc = "Selects the source second CCU event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCCTL_01_CC2SELU_A { # [doc = "0: SEL_CCU0"]
CCCTL_01_CC2SELU_SEL_CCU0 = 0 , # [doc = "1: SEL_CCU1"]
CCCTL_01_CC2SELU_SEL_CCU1 = 1 , # [doc = "2: SEL_CCU2"]
CCCTL_01_CC2SELU_SEL_CCU2 = 2 , # [doc = "3: SEL_CCU3"]
CCCTL_01_CC2SELU_SEL_CCU3 = 3 , # [doc = "4: SEL_CCU4"]
CCCTL_01_CC2SELU_SEL_CCU4 = 4 , # [doc = "5: SEL_CCU5"]
CCCTL_01_CC2SELU_SEL_CCU5 = 5 , } impl From < CCCTL_01_CC2SELU_A > for u8 { # [inline (always)]
fn from (variant : CCCTL_01_CC2SELU_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCCTL_01_CC2SELU_A { type Ux = u8 ; } impl CCCTL_01_CC2SELU_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCCTL_01_CC2SELU_A > { match self . bits { 0 => Some (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU0) , 1 => Some (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU1) , 2 => Some (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU2) , 3 => Some (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU3) , 4 => Some (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU4) , 5 => Some (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU5) , _ => None , } } # [doc = "SEL_CCU0"]
# [inline (always)]
pub fn is_ccctl_01_cc2selu_sel_ccu0 (& self) -> bool { * self == CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU0 } # [doc = "SEL_CCU1"]
# [inline (always)]
pub fn is_ccctl_01_cc2selu_sel_ccu1 (& self) -> bool { * self == CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU1 } # [doc = "SEL_CCU2"]
# [inline (always)]
pub fn is_ccctl_01_cc2selu_sel_ccu2 (& self) -> bool { * self == CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU2 } # [doc = "SEL_CCU3"]
# [inline (always)]
pub fn is_ccctl_01_cc2selu_sel_ccu3 (& self) -> bool { * self == CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU3 } # [doc = "SEL_CCU4"]
# [inline (always)]
pub fn is_ccctl_01_cc2selu_sel_ccu4 (& self) -> bool { * self == CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU4 } # [doc = "SEL_CCU5"]
# [inline (always)]
pub fn is_ccctl_01_cc2selu_sel_ccu5 (& self) -> bool { * self == CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU5 } } # [doc = "Field `CCCTL_01_CC2SELU` writer - Selects the source second CCU event."]
pub type CCCTL_01_CC2SELU_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CCCTL_01_CC2SELU_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_CC2SELU_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "SEL_CCU0"]
# [inline (always)]
pub fn ccctl_01_cc2selu_sel_ccu0 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU0) } # [doc = "SEL_CCU1"]
# [inline (always)]
pub fn ccctl_01_cc2selu_sel_ccu1 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU1) } # [doc = "SEL_CCU2"]
# [inline (always)]
pub fn ccctl_01_cc2selu_sel_ccu2 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU2) } # [doc = "SEL_CCU3"]
# [inline (always)]
pub fn ccctl_01_cc2selu_sel_ccu3 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU3) } # [doc = "SEL_CCU4"]
# [inline (always)]
pub fn ccctl_01_cc2selu_sel_ccu4 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU4) } # [doc = "SEL_CCU5"]
# [inline (always)]
pub fn ccctl_01_cc2selu_sel_ccu5 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU5) } } # [doc = "Field `CCCTL_01_CCACTUPD` reader - CCACT shadow register Update Method This field controls how updates to the CCCACT shadow register are performed"]
pub type CCCTL_01_CCACTUPD_R = crate :: FieldReader < CCCTL_01_CCACTUPD_A > ; # [doc = "CCACT shadow register Update Method This field controls how updates to the CCCACT shadow register are performed\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCCTL_01_CCACTUPD_A { # [doc = "0: IMMEDIATELY"]
CCCTL_01_CCACTUPD_IMMEDIATELY = 0 , # [doc = "1: ZERO_EVT"]
CCCTL_01_CCACTUPD_ZERO_EVT = 1 , # [doc = "2: COMPARE_DOWN_EVT"]
CCCTL_01_CCACTUPD_COMPARE_DOWN_EVT = 2 , # [doc = "3: COMPARE_UP_EVT"]
CCCTL_01_CCACTUPD_COMPARE_UP_EVT = 3 , # [doc = "4: ZERO_LOAD_EVT"]
CCCTL_01_CCACTUPD_ZERO_LOAD_EVT = 4 , # [doc = "5: ZERO_RC_ZERO_EVT"]
CCCTL_01_CCACTUPD_ZERO_RC_ZERO_EVT = 5 , # [doc = "6: TRIG"]
CCCTL_01_CCACTUPD_TRIG = 6 , } impl From < CCCTL_01_CCACTUPD_A > for u8 { # [inline (always)]
fn from (variant : CCCTL_01_CCACTUPD_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCCTL_01_CCACTUPD_A { type Ux = u8 ; } impl CCCTL_01_CCACTUPD_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCCTL_01_CCACTUPD_A > { match self . bits { 0 => Some (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_IMMEDIATELY) , 1 => Some (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_EVT) , 2 => Some (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_COMPARE_DOWN_EVT) , 3 => Some (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_COMPARE_UP_EVT) , 4 => Some (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_LOAD_EVT) , 5 => Some (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_RC_ZERO_EVT) , 6 => Some (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_TRIG) , _ => None , } } # [doc = "IMMEDIATELY"]
# [inline (always)]
pub fn is_ccctl_01_ccactupd_immediately (& self) -> bool { * self == CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_IMMEDIATELY } # [doc = "ZERO_EVT"]
# [inline (always)]
pub fn is_ccctl_01_ccactupd_zero_evt (& self) -> bool { * self == CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_EVT } # [doc = "COMPARE_DOWN_EVT"]
# [inline (always)]
pub fn is_ccctl_01_ccactupd_compare_down_evt (& self) -> bool { * self == CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_COMPARE_DOWN_EVT } # [doc = "COMPARE_UP_EVT"]
# [inline (always)]
pub fn is_ccctl_01_ccactupd_compare_up_evt (& self) -> bool { * self == CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_COMPARE_UP_EVT } # [doc = "ZERO_LOAD_EVT"]
# [inline (always)]
pub fn is_ccctl_01_ccactupd_zero_load_evt (& self) -> bool { * self == CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_LOAD_EVT } # [doc = "ZERO_RC_ZERO_EVT"]
# [inline (always)]
pub fn is_ccctl_01_ccactupd_zero_rc_zero_evt (& self) -> bool { * self == CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_RC_ZERO_EVT } # [doc = "TRIG"]
# [inline (always)]
pub fn is_ccctl_01_ccactupd_trig (& self) -> bool { * self == CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_TRIG } } # [doc = "Field `CCCTL_01_CCACTUPD` writer - CCACT shadow register Update Method This field controls how updates to the CCCACT shadow register are performed"]
pub type CCCTL_01_CCACTUPD_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CCCTL_01_CCACTUPD_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_CCACTUPD_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "IMMEDIATELY"]
# [inline (always)]
pub fn ccctl_01_ccactupd_immediately (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_IMMEDIATELY) } # [doc = "ZERO_EVT"]
# [inline (always)]
pub fn ccctl_01_ccactupd_zero_evt (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_EVT) } # [doc = "COMPARE_DOWN_EVT"]
# [inline (always)]
pub fn ccctl_01_ccactupd_compare_down_evt (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_COMPARE_DOWN_EVT) } # [doc = "COMPARE_UP_EVT"]
# [inline (always)]
pub fn ccctl_01_ccactupd_compare_up_evt (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_COMPARE_UP_EVT) } # [doc = "ZERO_LOAD_EVT"]
# [inline (always)]
pub fn ccctl_01_ccactupd_zero_load_evt (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_LOAD_EVT) } # [doc = "ZERO_RC_ZERO_EVT"]
# [inline (always)]
pub fn ccctl_01_ccactupd_zero_rc_zero_evt (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_RC_ZERO_EVT) } # [doc = "TRIG"]
# [inline (always)]
pub fn ccctl_01_ccactupd_trig (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_TRIG) } } # [doc = "Field `CCCTL_01_CC2SELD` reader - Selects the source second CCD event."]
pub type CCCTL_01_CC2SELD_R = crate :: FieldReader < CCCTL_01_CC2SELD_A > ; # [doc = "Selects the source second CCD event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCCTL_01_CC2SELD_A { # [doc = "0: SEL_CCD0"]
CCCTL_01_CC2SELD_SEL_CCD0 = 0 , # [doc = "1: SEL_CCD1"]
CCCTL_01_CC2SELD_SEL_CCD1 = 1 , # [doc = "2: SEL_CCD2"]
CCCTL_01_CC2SELD_SEL_CCD2 = 2 , # [doc = "3: SEL_CCD3"]
CCCTL_01_CC2SELD_SEL_CCD3 = 3 , # [doc = "4: SEL_CCD4"]
CCCTL_01_CC2SELD_SEL_CCD4 = 4 , # [doc = "5: SEL_CCD5"]
CCCTL_01_CC2SELD_SEL_CCD5 = 5 , } impl From < CCCTL_01_CC2SELD_A > for u8 { # [inline (always)]
fn from (variant : CCCTL_01_CC2SELD_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCCTL_01_CC2SELD_A { type Ux = u8 ; } impl CCCTL_01_CC2SELD_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCCTL_01_CC2SELD_A > { match self . bits { 0 => Some (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD0) , 1 => Some (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD1) , 2 => Some (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD2) , 3 => Some (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD3) , 4 => Some (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD4) , 5 => Some (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD5) , _ => None , } } # [doc = "SEL_CCD0"]
# [inline (always)]
pub fn is_ccctl_01_cc2seld_sel_ccd0 (& self) -> bool { * self == CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD0 } # [doc = "SEL_CCD1"]
# [inline (always)]
pub fn is_ccctl_01_cc2seld_sel_ccd1 (& self) -> bool { * self == CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD1 } # [doc = "SEL_CCD2"]
# [inline (always)]
pub fn is_ccctl_01_cc2seld_sel_ccd2 (& self) -> bool { * self == CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD2 } # [doc = "SEL_CCD3"]
# [inline (always)]
pub fn is_ccctl_01_cc2seld_sel_ccd3 (& self) -> bool { * self == CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD3 } # [doc = "SEL_CCD4"]
# [inline (always)]
pub fn is_ccctl_01_cc2seld_sel_ccd4 (& self) -> bool { * self == CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD4 } # [doc = "SEL_CCD5"]
# [inline (always)]
pub fn is_ccctl_01_cc2seld_sel_ccd5 (& self) -> bool { * self == CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD5 } } # [doc = "Field `CCCTL_01_CC2SELD` writer - Selects the source second CCD event."]
pub type CCCTL_01_CC2SELD_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CCCTL_01_CC2SELD_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_CC2SELD_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "SEL_CCD0"]
# [inline (always)]
pub fn ccctl_01_cc2seld_sel_ccd0 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD0) } # [doc = "SEL_CCD1"]
# [inline (always)]
pub fn ccctl_01_cc2seld_sel_ccd1 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD1) } # [doc = "SEL_CCD2"]
# [inline (always)]
pub fn ccctl_01_cc2seld_sel_ccd2 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD2) } # [doc = "SEL_CCD3"]
# [inline (always)]
pub fn ccctl_01_cc2seld_sel_ccd3 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD3) } # [doc = "SEL_CCD4"]
# [inline (always)]
pub fn ccctl_01_cc2seld_sel_ccd4 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD4) } # [doc = "SEL_CCD5"]
# [inline (always)]
pub fn ccctl_01_cc2seld_sel_ccd5 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD5) } } impl R { # [doc = "Bits 0:2 - Capture Condition. #br# Specifies the condition that generates a capture pulse. 4h-Fh = Reserved"]
# [inline (always)]
pub fn ccctl_01_ccond (& self) -> CCCTL_01_CCOND_R { CCCTL_01_CCOND_R :: new ((self . bits & 7) as u8) } # [doc = "Bits 4:6 - Advance Condition. #br# Specifies the condition that generates an advance pulse. 6h-Fh = Reserved"]
# [inline (always)]
pub fn ccctl_01_acond (& self) -> CCCTL_01_ACOND_R { CCCTL_01_ACOND_R :: new (((self . bits >> 4) & 7) as u8) } # [doc = "Bits 8:10 - Load Condition. #br# Specifies the condition that generates a load pulse. 4h-Fh = Reserved"]
# [inline (always)]
pub fn ccctl_01_lcond (& self) -> CCCTL_01_LCOND_R { CCCTL_01_LCOND_R :: new (((self . bits >> 8) & 7) as u8) } # [doc = "Bits 12:14 - Zero Condition. #br# This field specifies the condition that generates a zero pulse. 4h-Fh = Reserved"]
# [inline (always)]
pub fn ccctl_01_zcond (& self) -> CCCTL_01_ZCOND_R { CCCTL_01_ZCOND_R :: new (((self . bits >> 12) & 7) as u8) } # [doc = "Bit 17 - Capture or Compare. #br# Specifies whether the corresponding CC register is used as a capture register or a compare register (never both)."]
# [inline (always)]
pub fn ccctl_01_coc (& self) -> CCCTL_01_COC_R { CCCTL_01_COC_R :: new (((self . bits >> 17) & 1) != 0) } # [doc = "Bits 22:24 - Selects the source second CCU event."]
# [inline (always)]
pub fn ccctl_01_cc2selu (& self) -> CCCTL_01_CC2SELU_R { CCCTL_01_CC2SELU_R :: new (((self . bits >> 22) & 7) as u8) } # [doc = "Bits 26:28 - CCACT shadow register Update Method This field controls how updates to the CCCACT shadow register are performed"]
# [inline (always)]
pub fn ccctl_01_ccactupd (& self) -> CCCTL_01_CCACTUPD_R { CCCTL_01_CCACTUPD_R :: new (((self . bits >> 26) & 7) as u8) } # [doc = "Bits 29:31 - Selects the source second CCD event."]
# [inline (always)]
pub fn ccctl_01_cc2seld (& self) -> CCCTL_01_CC2SELD_R { CCCTL_01_CC2SELD_R :: new (((self . bits >> 29) & 7) as u8) } } impl W { # [doc = "Bits 0:2 - Capture Condition. #br# Specifies the condition that generates a capture pulse. 4h-Fh = Reserved"]
# [inline (always)]
# [must_use]
pub fn ccctl_01_ccond (& mut self) -> CCCTL_01_CCOND_W < CCCTL_01_SPEC , 0 > { CCCTL_01_CCOND_W :: new (self) } # [doc = "Bits 4:6 - Advance Condition. #br# Specifies the condition that generates an advance pulse. 6h-Fh = Reserved"]
# [inline (always)]
# [must_use]
pub fn ccctl_01_acond (& mut self) -> CCCTL_01_ACOND_W < CCCTL_01_SPEC , 4 > { CCCTL_01_ACOND_W :: new (self) } # [doc = "Bits 8:10 - Load Condition. #br# Specifies the condition that generates a load pulse. 4h-Fh = Reserved"]
# [inline (always)]
# [must_use]
pub fn ccctl_01_lcond (& mut self) -> CCCTL_01_LCOND_W < CCCTL_01_SPEC , 8 > { CCCTL_01_LCOND_W :: new (self) } # [doc = "Bits 12:14 - Zero Condition. #br# This field specifies the condition that generates a zero pulse. 4h-Fh = Reserved"]
# [inline (always)]
# [must_use]
pub fn ccctl_01_zcond (& mut self) -> CCCTL_01_ZCOND_W < CCCTL_01_SPEC , 12 > { CCCTL_01_ZCOND_W :: new (self) } # [doc = "Bit 17 - Capture or Compare. #br# Specifies whether the corresponding CC register is used as a capture register or a compare register (never both)."]
# [inline (always)]
# [must_use]
pub fn ccctl_01_coc (& mut self) -> CCCTL_01_COC_W < CCCTL_01_SPEC , 17 > { CCCTL_01_COC_W :: new (self) } # [doc = "Bits 22:24 - Selects the source second CCU event."]
# [inline (always)]
# [must_use]
pub fn ccctl_01_cc2selu (& mut self) -> CCCTL_01_CC2SELU_W < CCCTL_01_SPEC , 22 > { CCCTL_01_CC2SELU_W :: new (self) } # [doc = "Bits 26:28 - CCACT shadow register Update Method This field controls how updates to the CCCACT shadow register are performed"]
# [inline (always)]
# [must_use]
pub fn ccctl_01_ccactupd (& mut self) -> CCCTL_01_CCACTUPD_W < CCCTL_01_SPEC , 26 > { CCCTL_01_CCACTUPD_W :: new (self) } # [doc = "Bits 29:31 - Selects the source second CCD event."]
# [inline (always)]
# [must_use]
pub fn ccctl_01_cc2seld (& mut self) -> CCCTL_01_CC2SELD_W < CCCTL_01_SPEC , 29 > { CCCTL_01_CC2SELD_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Capture or Compare Control Registers\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ccctl_01::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ccctl_01::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CCCTL_01_SPEC ; impl crate :: RegisterSpec for CCCTL_01_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ccctl_01::R`](R) reader structure"]
impl crate :: Readable for CCCTL_01_SPEC { } # [doc = "`write(|w| ..)` method takes [`ccctl_01::W`](W) writer structure"]
impl crate :: Writable for CCCTL_01_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CCCTL_01[%s]
to value 0"]
impl crate :: Resettable for CCCTL_01_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "OCTL_01 (rw) register accessor: CCP Output Control Registers\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`octl_01::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`octl_01::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@octl_01`]
module"]
pub type OCTL_01 = crate :: Reg < octl_01 :: OCTL_01_SPEC > ; # [doc = "CCP Output Control Registers"]
pub mod octl_01 { # [doc = "Register `OCTL_01[%s]` reader"]
pub type R = crate :: R < OCTL_01_SPEC > ; # [doc = "Register `OCTL_01[%s]` writer"]
pub type W = crate :: W < OCTL_01_SPEC > ; # [doc = "Field `OCTL_01_CCPO` reader - CCP Output Source"]
pub type OCTL_01_CCPO_R = crate :: FieldReader < OCTL_01_CCPO_A > ; # [doc = "CCP Output Source\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum OCTL_01_CCPO_A { # [doc = "0: FUNCVAL"]
OCTL_01_CCPO_FUNCVAL = 0 , # [doc = "1: LOAD"]
OCTL_01_CCPO_LOAD = 1 , # [doc = "2: CMPVAL"]
OCTL_01_CCPO_CMPVAL = 2 , # [doc = "4: ZERO"]
OCTL_01_CCPO_ZERO = 4 , # [doc = "5: CAPCOND"]
OCTL_01_CCPO_CAPCOND = 5 , # [doc = "6: FAULTCOND"]
OCTL_01_CCPO_FAULTCOND = 6 , # [doc = "8: CC0_MIRROR_ALL"]
OCTL_01_CCPO_CC0_MIRROR_ALL = 8 , # [doc = "9: CC1_MIRROR_ALL"]
OCTL_01_CCPO_CC1_MIRROR_ALL = 9 , # [doc = "12: DEADBAND"]
OCTL_01_CCPO_DEADBAND = 12 , # [doc = "13: CNTDIR"]
OCTL_01_CCPO_CNTDIR = 13 , } impl From < OCTL_01_CCPO_A > for u8 { # [inline (always)]
fn from (variant : OCTL_01_CCPO_A) -> Self { variant as _ } } impl crate :: FieldSpec for OCTL_01_CCPO_A { type Ux = u8 ; } impl OCTL_01_CCPO_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < OCTL_01_CCPO_A > { match self . bits { 0 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_FUNCVAL) , 1 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_LOAD) , 2 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_CMPVAL) , 4 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_ZERO) , 5 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_CAPCOND) , 6 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_FAULTCOND) , 8 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_CC0_MIRROR_ALL) , 9 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_CC1_MIRROR_ALL) , 12 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_DEADBAND) , 13 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_CNTDIR) , _ => None , } } # [doc = "FUNCVAL"]
# [inline (always)]
pub fn is_octl_01_ccpo_funcval (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_FUNCVAL } # [doc = "LOAD"]
# [inline (always)]
pub fn is_octl_01_ccpo_load (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_LOAD } # [doc = "CMPVAL"]
# [inline (always)]
pub fn is_octl_01_ccpo_cmpval (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_CMPVAL } # [doc = "ZERO"]
# [inline (always)]
pub fn is_octl_01_ccpo_zero (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_ZERO } # [doc = "CAPCOND"]
# [inline (always)]
pub fn is_octl_01_ccpo_capcond (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_CAPCOND } # [doc = "FAULTCOND"]
# [inline (always)]
pub fn is_octl_01_ccpo_faultcond (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_FAULTCOND } # [doc = "CC0_MIRROR_ALL"]
# [inline (always)]
pub fn is_octl_01_ccpo_cc0_mirror_all (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_CC0_MIRROR_ALL } # [doc = "CC1_MIRROR_ALL"]
# [inline (always)]
pub fn is_octl_01_ccpo_cc1_mirror_all (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_CC1_MIRROR_ALL } # [doc = "DEADBAND"]
# [inline (always)]
pub fn is_octl_01_ccpo_deadband (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_DEADBAND } # [doc = "CNTDIR"]
# [inline (always)]
pub fn is_octl_01_ccpo_cntdir (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_CNTDIR } } # [doc = "Field `OCTL_01_CCPO` writer - CCP Output Source"]
pub type OCTL_01_CCPO_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 4 , O , OCTL_01_CCPO_A > ; impl < 'a , REG , const O : u8 > OCTL_01_CCPO_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "FUNCVAL"]
# [inline (always)]
pub fn octl_01_ccpo_funcval (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_FUNCVAL) } # [doc = "LOAD"]
# [inline (always)]
pub fn octl_01_ccpo_load (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_LOAD) } # [doc = "CMPVAL"]
# [inline (always)]
pub fn octl_01_ccpo_cmpval (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_CMPVAL) } # [doc = "ZERO"]
# [inline (always)]
pub fn octl_01_ccpo_zero (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_ZERO) } # [doc = "CAPCOND"]
# [inline (always)]
pub fn octl_01_ccpo_capcond (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_CAPCOND) } # [doc = "FAULTCOND"]
# [inline (always)]
pub fn octl_01_ccpo_faultcond (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_FAULTCOND) } # [doc = "CC0_MIRROR_ALL"]
# [inline (always)]
pub fn octl_01_ccpo_cc0_mirror_all (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_CC0_MIRROR_ALL) } # [doc = "CC1_MIRROR_ALL"]
# [inline (always)]
pub fn octl_01_ccpo_cc1_mirror_all (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_CC1_MIRROR_ALL) } # [doc = "DEADBAND"]
# [inline (always)]
pub fn octl_01_ccpo_deadband (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_DEADBAND) } # [doc = "CNTDIR"]
# [inline (always)]
pub fn octl_01_ccpo_cntdir (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_CNTDIR) } } # [doc = "Field `OCTL_01_CCPOINV` reader - CCP Output Invert The output as selected by CCPO is conditionally inverted."]
pub type OCTL_01_CCPOINV_R = crate :: BitReader < OCTL_01_CCPOINV_A > ; # [doc = "CCP Output Invert The output as selected by CCPO is conditionally inverted.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum OCTL_01_CCPOINV_A { # [doc = "0: NOINV"]
OCTL_01_CCPOINV_NOINV = 0 , # [doc = "1: INV"]
OCTL_01_CCPOINV_INV = 1 , } impl From < OCTL_01_CCPOINV_A > for bool { # [inline (always)]
fn from (variant : OCTL_01_CCPOINV_A) -> Self { variant as u8 != 0 } } impl OCTL_01_CCPOINV_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> OCTL_01_CCPOINV_A { match self . bits { false => OCTL_01_CCPOINV_A :: OCTL_01_CCPOINV_NOINV , true => OCTL_01_CCPOINV_A :: OCTL_01_CCPOINV_INV , } } # [doc = "NOINV"]
# [inline (always)]
pub fn is_octl_01_ccpoinv_noinv (& self) -> bool { * self == OCTL_01_CCPOINV_A :: OCTL_01_CCPOINV_NOINV } # [doc = "INV"]
# [inline (always)]
pub fn is_octl_01_ccpoinv_inv (& self) -> bool { * self == OCTL_01_CCPOINV_A :: OCTL_01_CCPOINV_INV } } # [doc = "Field `OCTL_01_CCPOINV` writer - CCP Output Invert The output as selected by CCPO is conditionally inverted."]
pub type OCTL_01_CCPOINV_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , OCTL_01_CCPOINV_A > ; impl < 'a , REG , const O : u8 > OCTL_01_CCPOINV_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOINV"]
# [inline (always)]
pub fn octl_01_ccpoinv_noinv (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPOINV_A :: OCTL_01_CCPOINV_NOINV) } # [doc = "INV"]
# [inline (always)]
pub fn octl_01_ccpoinv_inv (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPOINV_A :: OCTL_01_CCPOINV_INV) } } # [doc = "Field `OCTL_01_CCPIV` reader - CCP Initial Value This bit specifies the logical value put on the signal generator state while the counter is disabled (CTRCTL.EN == 0)."]
pub type OCTL_01_CCPIV_R = crate :: BitReader < OCTL_01_CCPIV_A > ; # [doc = "CCP Initial Value This bit specifies the logical value put on the signal generator state while the counter is disabled (CTRCTL.EN == 0).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum OCTL_01_CCPIV_A { # [doc = "0: LOW"]
OCTL_01_CCPIV_LOW = 0 , # [doc = "1: HIGH"]
OCTL_01_CCPIV_HIGH = 1 , } impl From < OCTL_01_CCPIV_A > for bool { # [inline (always)]
fn from (variant : OCTL_01_CCPIV_A) -> Self { variant as u8 != 0 } } impl OCTL_01_CCPIV_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> OCTL_01_CCPIV_A { match self . bits { false => OCTL_01_CCPIV_A :: OCTL_01_CCPIV_LOW , true => OCTL_01_CCPIV_A :: OCTL_01_CCPIV_HIGH , } } # [doc = "LOW"]
# [inline (always)]
pub fn is_octl_01_ccpiv_low (& self) -> bool { * self == OCTL_01_CCPIV_A :: OCTL_01_CCPIV_LOW } # [doc = "HIGH"]
# [inline (always)]
pub fn is_octl_01_ccpiv_high (& self) -> bool { * self == OCTL_01_CCPIV_A :: OCTL_01_CCPIV_HIGH } } # [doc = "Field `OCTL_01_CCPIV` writer - CCP Initial Value This bit specifies the logical value put on the signal generator state while the counter is disabled (CTRCTL.EN == 0)."]
pub type OCTL_01_CCPIV_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , OCTL_01_CCPIV_A > ; impl < 'a , REG , const O : u8 > OCTL_01_CCPIV_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "LOW"]
# [inline (always)]
pub fn octl_01_ccpiv_low (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPIV_A :: OCTL_01_CCPIV_LOW) } # [doc = "HIGH"]
# [inline (always)]
pub fn octl_01_ccpiv_high (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPIV_A :: OCTL_01_CCPIV_HIGH) } } impl R { # [doc = "Bits 0:3 - CCP Output Source"]
# [inline (always)]
pub fn octl_01_ccpo (& self) -> OCTL_01_CCPO_R { OCTL_01_CCPO_R :: new ((self . bits & 0x0f) as u8) } # [doc = "Bit 4 - CCP Output Invert The output as selected by CCPO is conditionally inverted."]
# [inline (always)]
pub fn octl_01_ccpoinv (& self) -> OCTL_01_CCPOINV_R { OCTL_01_CCPOINV_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - CCP Initial Value This bit specifies the logical value put on the signal generator state while the counter is disabled (CTRCTL.EN == 0)."]
# [inline (always)]
pub fn octl_01_ccpiv (& self) -> OCTL_01_CCPIV_R { OCTL_01_CCPIV_R :: new (((self . bits >> 5) & 1) != 0) } } impl W { # [doc = "Bits 0:3 - CCP Output Source"]
# [inline (always)]
# [must_use]
pub fn octl_01_ccpo (& mut self) -> OCTL_01_CCPO_W < OCTL_01_SPEC , 0 > { OCTL_01_CCPO_W :: new (self) } # [doc = "Bit 4 - CCP Output Invert The output as selected by CCPO is conditionally inverted."]
# [inline (always)]
# [must_use]
pub fn octl_01_ccpoinv (& mut self) -> OCTL_01_CCPOINV_W < OCTL_01_SPEC , 4 > { OCTL_01_CCPOINV_W :: new (self) } # [doc = "Bit 5 - CCP Initial Value This bit specifies the logical value put on the signal generator state while the counter is disabled (CTRCTL.EN == 0)."]
# [inline (always)]
# [must_use]
pub fn octl_01_ccpiv (& mut self) -> OCTL_01_CCPIV_W < OCTL_01_SPEC , 5 > { OCTL_01_CCPIV_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "CCP Output Control Registers\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`octl_01::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`octl_01::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct OCTL_01_SPEC ; impl crate :: RegisterSpec for OCTL_01_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`octl_01::R`](R) reader structure"]
impl crate :: Readable for OCTL_01_SPEC { } # [doc = "`write(|w| ..)` method takes [`octl_01::W`](W) writer structure"]
impl crate :: Writable for OCTL_01_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets OCTL_01[%s]
to value 0"]
impl crate :: Resettable for OCTL_01_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CCACT_01 (rw) register accessor: Capture or Compare Action Registers\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ccact_01::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ccact_01::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccact_01`]
module"]
pub type CCACT_01 = crate :: Reg < ccact_01 :: CCACT_01_SPEC > ; # [doc = "Capture or Compare Action Registers"]
pub mod ccact_01 { # [doc = "Register `CCACT_01[%s]` reader"]
pub type R = crate :: R < CCACT_01_SPEC > ; # [doc = "Register `CCACT_01[%s]` writer"]
pub type W = crate :: W < CCACT_01_SPEC > ; # [doc = "Field `CCACT_01_ZACT` reader - CCP Output Action on Zero Specifies what changes occur to CCP output as the result of a zero event."]
pub type CCACT_01_ZACT_R = crate :: FieldReader < CCACT_01_ZACT_A > ; # [doc = "CCP Output Action on Zero Specifies what changes occur to CCP output as the result of a zero event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCACT_01_ZACT_A { # [doc = "0: DISABLED"]
CCACT_01_ZACT_DISABLED = 0 , # [doc = "1: CCP_HIGH"]
CCACT_01_ZACT_CCP_HIGH = 1 , # [doc = "2: CCP_LOW"]
CCACT_01_ZACT_CCP_LOW = 2 , # [doc = "3: CCP_TOGGLE"]
CCACT_01_ZACT_CCP_TOGGLE = 3 , } impl From < CCACT_01_ZACT_A > for u8 { # [inline (always)]
fn from (variant : CCACT_01_ZACT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCACT_01_ZACT_A { type Ux = u8 ; } impl CCACT_01_ZACT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCACT_01_ZACT_A { match self . bits { 0 => CCACT_01_ZACT_A :: CCACT_01_ZACT_DISABLED , 1 => CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_HIGH , 2 => CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_LOW , 3 => CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_TOGGLE , _ => unreachable ! () , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ccact_01_zact_disabled (& self) -> bool { * self == CCACT_01_ZACT_A :: CCACT_01_ZACT_DISABLED } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn is_ccact_01_zact_ccp_high (& self) -> bool { * self == CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_HIGH } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn is_ccact_01_zact_ccp_low (& self) -> bool { * self == CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_LOW } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn is_ccact_01_zact_ccp_toggle (& self) -> bool { * self == CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_TOGGLE } } # [doc = "Field `CCACT_01_ZACT` writer - CCP Output Action on Zero Specifies what changes occur to CCP output as the result of a zero event."]
pub type CCACT_01_ZACT_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , CCACT_01_ZACT_A > ; impl < 'a , REG , const O : u8 > CCACT_01_ZACT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLED"]
# [inline (always)]
pub fn ccact_01_zact_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_ZACT_A :: CCACT_01_ZACT_DISABLED) } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn ccact_01_zact_ccp_high (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_HIGH) } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn ccact_01_zact_ccp_low (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_LOW) } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn ccact_01_zact_ccp_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_TOGGLE) } } # [doc = "Field `CCACT_01_LACT` reader - CCP Output Action on Load Specifies what changes occur to CCP output as the result of a load event."]
pub type CCACT_01_LACT_R = crate :: FieldReader < CCACT_01_LACT_A > ; # [doc = "CCP Output Action on Load Specifies what changes occur to CCP output as the result of a load event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCACT_01_LACT_A { # [doc = "0: DISABLED"]
CCACT_01_LACT_DISABLED = 0 , # [doc = "1: CCP_HIGH"]
CCACT_01_LACT_CCP_HIGH = 1 , # [doc = "2: CCP_LOW"]
CCACT_01_LACT_CCP_LOW = 2 , # [doc = "3: CCP_TOGGLE"]
CCACT_01_LACT_CCP_TOGGLE = 3 , } impl From < CCACT_01_LACT_A > for u8 { # [inline (always)]
fn from (variant : CCACT_01_LACT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCACT_01_LACT_A { type Ux = u8 ; } impl CCACT_01_LACT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCACT_01_LACT_A { match self . bits { 0 => CCACT_01_LACT_A :: CCACT_01_LACT_DISABLED , 1 => CCACT_01_LACT_A :: CCACT_01_LACT_CCP_HIGH , 2 => CCACT_01_LACT_A :: CCACT_01_LACT_CCP_LOW , 3 => CCACT_01_LACT_A :: CCACT_01_LACT_CCP_TOGGLE , _ => unreachable ! () , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ccact_01_lact_disabled (& self) -> bool { * self == CCACT_01_LACT_A :: CCACT_01_LACT_DISABLED } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn is_ccact_01_lact_ccp_high (& self) -> bool { * self == CCACT_01_LACT_A :: CCACT_01_LACT_CCP_HIGH } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn is_ccact_01_lact_ccp_low (& self) -> bool { * self == CCACT_01_LACT_A :: CCACT_01_LACT_CCP_LOW } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn is_ccact_01_lact_ccp_toggle (& self) -> bool { * self == CCACT_01_LACT_A :: CCACT_01_LACT_CCP_TOGGLE } } # [doc = "Field `CCACT_01_LACT` writer - CCP Output Action on Load Specifies what changes occur to CCP output as the result of a load event."]
pub type CCACT_01_LACT_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , CCACT_01_LACT_A > ; impl < 'a , REG , const O : u8 > CCACT_01_LACT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLED"]
# [inline (always)]
pub fn ccact_01_lact_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_LACT_A :: CCACT_01_LACT_DISABLED) } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn ccact_01_lact_ccp_high (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_LACT_A :: CCACT_01_LACT_CCP_HIGH) } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn ccact_01_lact_ccp_low (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_LACT_A :: CCACT_01_LACT_CCP_LOW) } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn ccact_01_lact_ccp_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_LACT_A :: CCACT_01_LACT_CCP_TOGGLE) } } # [doc = "Field `CCACT_01_CDACT` reader - CCP Output Action on Compare (Down) This field describes the resulting action of the signal generator upon detecting a compare event while counting down."]
pub type CCACT_01_CDACT_R = crate :: FieldReader < CCACT_01_CDACT_A > ; # [doc = "CCP Output Action on Compare (Down) This field describes the resulting action of the signal generator upon detecting a compare event while counting down.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCACT_01_CDACT_A { # [doc = "0: DISABLED"]
CCACT_01_CDACT_DISABLED = 0 , # [doc = "1: CCP_HIGH"]
CCACT_01_CDACT_CCP_HIGH = 1 , # [doc = "2: CCP_LOW"]
CCACT_01_CDACT_CCP_LOW = 2 , # [doc = "3: CCP_TOGGLE"]
CCACT_01_CDACT_CCP_TOGGLE = 3 , } impl From < CCACT_01_CDACT_A > for u8 { # [inline (always)]
fn from (variant : CCACT_01_CDACT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCACT_01_CDACT_A { type Ux = u8 ; } impl CCACT_01_CDACT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCACT_01_CDACT_A { match self . bits { 0 => CCACT_01_CDACT_A :: CCACT_01_CDACT_DISABLED , 1 => CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_HIGH , 2 => CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_LOW , 3 => CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_TOGGLE , _ => unreachable ! () , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ccact_01_cdact_disabled (& self) -> bool { * self == CCACT_01_CDACT_A :: CCACT_01_CDACT_DISABLED } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn is_ccact_01_cdact_ccp_high (& self) -> bool { * self == CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_HIGH } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn is_ccact_01_cdact_ccp_low (& self) -> bool { * self == CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_LOW } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn is_ccact_01_cdact_ccp_toggle (& self) -> bool { * self == CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_TOGGLE } } # [doc = "Field `CCACT_01_CDACT` writer - CCP Output Action on Compare (Down) This field describes the resulting action of the signal generator upon detecting a compare event while counting down."]
pub type CCACT_01_CDACT_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , CCACT_01_CDACT_A > ; impl < 'a , REG , const O : u8 > CCACT_01_CDACT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLED"]
# [inline (always)]
pub fn ccact_01_cdact_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CDACT_A :: CCACT_01_CDACT_DISABLED) } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn ccact_01_cdact_ccp_high (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_HIGH) } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn ccact_01_cdact_ccp_low (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_LOW) } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn ccact_01_cdact_ccp_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_TOGGLE) } } # [doc = "Field `CCACT_01_CUACT` reader - CCP Output Action on Compare (Up) This field describes the resulting action of the signal generator upon detecting a compare event while counting up."]
pub type CCACT_01_CUACT_R = crate :: FieldReader < CCACT_01_CUACT_A > ; # [doc = "CCP Output Action on Compare (Up) This field describes the resulting action of the signal generator upon detecting a compare event while counting up.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCACT_01_CUACT_A { # [doc = "0: DISABLED"]
CCACT_01_CUACT_DISABLED = 0 , # [doc = "1: CCP_HIGH"]
CCACT_01_CUACT_CCP_HIGH = 1 , # [doc = "2: CCP_LOW"]
CCACT_01_CUACT_CCP_LOW = 2 , # [doc = "3: CCP_TOGGLE"]
CCACT_01_CUACT_CCP_TOGGLE = 3 , } impl From < CCACT_01_CUACT_A > for u8 { # [inline (always)]
fn from (variant : CCACT_01_CUACT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCACT_01_CUACT_A { type Ux = u8 ; } impl CCACT_01_CUACT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCACT_01_CUACT_A { match self . bits { 0 => CCACT_01_CUACT_A :: CCACT_01_CUACT_DISABLED , 1 => CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_HIGH , 2 => CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_LOW , 3 => CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_TOGGLE , _ => unreachable ! () , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ccact_01_cuact_disabled (& self) -> bool { * self == CCACT_01_CUACT_A :: CCACT_01_CUACT_DISABLED } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn is_ccact_01_cuact_ccp_high (& self) -> bool { * self == CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_HIGH } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn is_ccact_01_cuact_ccp_low (& self) -> bool { * self == CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_LOW } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn is_ccact_01_cuact_ccp_toggle (& self) -> bool { * self == CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_TOGGLE } } # [doc = "Field `CCACT_01_CUACT` writer - CCP Output Action on Compare (Up) This field describes the resulting action of the signal generator upon detecting a compare event while counting up."]
pub type CCACT_01_CUACT_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , CCACT_01_CUACT_A > ; impl < 'a , REG , const O : u8 > CCACT_01_CUACT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLED"]
# [inline (always)]
pub fn ccact_01_cuact_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CUACT_A :: CCACT_01_CUACT_DISABLED) } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn ccact_01_cuact_ccp_high (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_HIGH) } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn ccact_01_cuact_ccp_low (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_LOW) } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn ccact_01_cuact_ccp_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_TOGGLE) } } # [doc = "Field `CCACT_01_CC2DACT` reader - CCP Output Action on CC2D event."]
pub type CCACT_01_CC2DACT_R = crate :: FieldReader < CCACT_01_CC2DACT_A > ; # [doc = "CCP Output Action on CC2D event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCACT_01_CC2DACT_A { # [doc = "0: DISABLED"]
CCACT_01_CC2DACT_DISABLED = 0 , # [doc = "1: CCP_HIGH"]
CCACT_01_CC2DACT_CCP_HIGH = 1 , # [doc = "2: CCP_LOW"]
CCACT_01_CC2DACT_CCP_LOW = 2 , # [doc = "3: CCP_TOGGLE"]
CCACT_01_CC2DACT_CCP_TOGGLE = 3 , } impl From < CCACT_01_CC2DACT_A > for u8 { # [inline (always)]
fn from (variant : CCACT_01_CC2DACT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCACT_01_CC2DACT_A { type Ux = u8 ; } impl CCACT_01_CC2DACT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCACT_01_CC2DACT_A { match self . bits { 0 => CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_DISABLED , 1 => CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_HIGH , 2 => CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_LOW , 3 => CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_TOGGLE , _ => unreachable ! () , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ccact_01_cc2dact_disabled (& self) -> bool { * self == CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_DISABLED } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn is_ccact_01_cc2dact_ccp_high (& self) -> bool { * self == CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_HIGH } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn is_ccact_01_cc2dact_ccp_low (& self) -> bool { * self == CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_LOW } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn is_ccact_01_cc2dact_ccp_toggle (& self) -> bool { * self == CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_TOGGLE } } # [doc = "Field `CCACT_01_CC2DACT` writer - CCP Output Action on CC2D event."]
pub type CCACT_01_CC2DACT_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , CCACT_01_CC2DACT_A > ; impl < 'a , REG , const O : u8 > CCACT_01_CC2DACT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLED"]
# [inline (always)]
pub fn ccact_01_cc2dact_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_DISABLED) } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn ccact_01_cc2dact_ccp_high (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_HIGH) } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn ccact_01_cc2dact_ccp_low (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_LOW) } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn ccact_01_cc2dact_ccp_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_TOGGLE) } } # [doc = "Field `CCACT_01_CC2UACT` reader - CCP Output Action on CC2U event."]
pub type CCACT_01_CC2UACT_R = crate :: FieldReader < CCACT_01_CC2UACT_A > ; # [doc = "CCP Output Action on CC2U event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCACT_01_CC2UACT_A { # [doc = "0: DISABLED"]
CCACT_01_CC2UACT_DISABLED = 0 , # [doc = "1: CCP_HIGH"]
CCACT_01_CC2UACT_CCP_HIGH = 1 , # [doc = "2: CCP_LOW"]
CCACT_01_CC2UACT_CCP_LOW = 2 , # [doc = "3: CCP_TOGGLE"]
CCACT_01_CC2UACT_CCP_TOGGLE = 3 , } impl From < CCACT_01_CC2UACT_A > for u8 { # [inline (always)]
fn from (variant : CCACT_01_CC2UACT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCACT_01_CC2UACT_A { type Ux = u8 ; } impl CCACT_01_CC2UACT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCACT_01_CC2UACT_A { match self . bits { 0 => CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_DISABLED , 1 => CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_HIGH , 2 => CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_LOW , 3 => CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_TOGGLE , _ => unreachable ! () , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ccact_01_cc2uact_disabled (& self) -> bool { * self == CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_DISABLED } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn is_ccact_01_cc2uact_ccp_high (& self) -> bool { * self == CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_HIGH } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn is_ccact_01_cc2uact_ccp_low (& self) -> bool { * self == CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_LOW } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn is_ccact_01_cc2uact_ccp_toggle (& self) -> bool { * self == CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_TOGGLE } } # [doc = "Field `CCACT_01_CC2UACT` writer - CCP Output Action on CC2U event."]
pub type CCACT_01_CC2UACT_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , CCACT_01_CC2UACT_A > ; impl < 'a , REG , const O : u8 > CCACT_01_CC2UACT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLED"]
# [inline (always)]
pub fn ccact_01_cc2uact_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_DISABLED) } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn ccact_01_cc2uact_ccp_high (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_HIGH) } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn ccact_01_cc2uact_ccp_low (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_LOW) } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn ccact_01_cc2uact_ccp_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_TOGGLE) } } # [doc = "Field `CCACT_01_SWFRCACT` reader - CCP Output Action on Software Froce Output This field describes the resulting action of software force. This action has a shadow register, which will be updated under specific condition. So that this register cannot take into effect immediately."]
pub type CCACT_01_SWFRCACT_R = crate :: FieldReader < CCACT_01_SWFRCACT_A > ; # [doc = "CCP Output Action on Software Froce Output This field describes the resulting action of software force. This action has a shadow register, which will be updated under specific condition. So that this register cannot take into effect immediately.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCACT_01_SWFRCACT_A { # [doc = "0: DISABLED"]
CCACT_01_SWFRCACT_DISABLED = 0 , # [doc = "1: CCP_HIGH"]
CCACT_01_SWFRCACT_CCP_HIGH = 1 , # [doc = "2: CCP_LOW"]
CCACT_01_SWFRCACT_CCP_LOW = 2 , } impl From < CCACT_01_SWFRCACT_A > for u8 { # [inline (always)]
fn from (variant : CCACT_01_SWFRCACT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCACT_01_SWFRCACT_A { type Ux = u8 ; } impl CCACT_01_SWFRCACT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCACT_01_SWFRCACT_A > { match self . bits { 0 => Some (CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_DISABLED) , 1 => Some (CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_CCP_HIGH) , 2 => Some (CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_CCP_LOW) , _ => None , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ccact_01_swfrcact_disabled (& self) -> bool { * self == CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_DISABLED } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn is_ccact_01_swfrcact_ccp_high (& self) -> bool { * self == CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_CCP_HIGH } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn is_ccact_01_swfrcact_ccp_low (& self) -> bool { * self == CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_CCP_LOW } } # [doc = "Field `CCACT_01_SWFRCACT` writer - CCP Output Action on Software Froce Output This field describes the resulting action of software force. This action has a shadow register, which will be updated under specific condition. So that this register cannot take into effect immediately."]
pub type CCACT_01_SWFRCACT_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , CCACT_01_SWFRCACT_A > ; impl < 'a , REG , const O : u8 > CCACT_01_SWFRCACT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLED"]
# [inline (always)]
pub fn ccact_01_swfrcact_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_DISABLED) } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn ccact_01_swfrcact_ccp_high (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_CCP_HIGH) } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn ccact_01_swfrcact_ccp_low (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_CCP_LOW) } } impl R { # [doc = "Bits 0:1 - CCP Output Action on Zero Specifies what changes occur to CCP output as the result of a zero event."]
# [inline (always)]
pub fn ccact_01_zact (& self) -> CCACT_01_ZACT_R { CCACT_01_ZACT_R :: new ((self . bits & 3) as u8) } # [doc = "Bits 3:4 - CCP Output Action on Load Specifies what changes occur to CCP output as the result of a load event."]
# [inline (always)]
pub fn ccact_01_lact (& self) -> CCACT_01_LACT_R { CCACT_01_LACT_R :: new (((self . bits >> 3) & 3) as u8) } # [doc = "Bits 6:7 - CCP Output Action on Compare (Down) This field describes the resulting action of the signal generator upon detecting a compare event while counting down."]
# [inline (always)]
pub fn ccact_01_cdact (& self) -> CCACT_01_CDACT_R { CCACT_01_CDACT_R :: new (((self . bits >> 6) & 3) as u8) } # [doc = "Bits 9:10 - CCP Output Action on Compare (Up) This field describes the resulting action of the signal generator upon detecting a compare event while counting up."]
# [inline (always)]
pub fn ccact_01_cuact (& self) -> CCACT_01_CUACT_R { CCACT_01_CUACT_R :: new (((self . bits >> 9) & 3) as u8) } # [doc = "Bits 12:13 - CCP Output Action on CC2D event."]
# [inline (always)]
pub fn ccact_01_cc2dact (& self) -> CCACT_01_CC2DACT_R { CCACT_01_CC2DACT_R :: new (((self . bits >> 12) & 3) as u8) } # [doc = "Bits 15:16 - CCP Output Action on CC2U event."]
# [inline (always)]
pub fn ccact_01_cc2uact (& self) -> CCACT_01_CC2UACT_R { CCACT_01_CC2UACT_R :: new (((self . bits >> 15) & 3) as u8) } # [doc = "Bits 28:29 - CCP Output Action on Software Froce Output This field describes the resulting action of software force. This action has a shadow register, which will be updated under specific condition. So that this register cannot take into effect immediately."]
# [inline (always)]
pub fn ccact_01_swfrcact (& self) -> CCACT_01_SWFRCACT_R { CCACT_01_SWFRCACT_R :: new (((self . bits >> 28) & 3) as u8) } } impl W { # [doc = "Bits 0:1 - CCP Output Action on Zero Specifies what changes occur to CCP output as the result of a zero event."]
# [inline (always)]
# [must_use]
pub fn ccact_01_zact (& mut self) -> CCACT_01_ZACT_W < CCACT_01_SPEC , 0 > { CCACT_01_ZACT_W :: new (self) } # [doc = "Bits 3:4 - CCP Output Action on Load Specifies what changes occur to CCP output as the result of a load event."]
# [inline (always)]
# [must_use]
pub fn ccact_01_lact (& mut self) -> CCACT_01_LACT_W < CCACT_01_SPEC , 3 > { CCACT_01_LACT_W :: new (self) } # [doc = "Bits 6:7 - CCP Output Action on Compare (Down) This field describes the resulting action of the signal generator upon detecting a compare event while counting down."]
# [inline (always)]
# [must_use]
pub fn ccact_01_cdact (& mut self) -> CCACT_01_CDACT_W < CCACT_01_SPEC , 6 > { CCACT_01_CDACT_W :: new (self) } # [doc = "Bits 9:10 - CCP Output Action on Compare (Up) This field describes the resulting action of the signal generator upon detecting a compare event while counting up."]
# [inline (always)]
# [must_use]
pub fn ccact_01_cuact (& mut self) -> CCACT_01_CUACT_W < CCACT_01_SPEC , 9 > { CCACT_01_CUACT_W :: new (self) } # [doc = "Bits 12:13 - CCP Output Action on CC2D event."]
# [inline (always)]
# [must_use]
pub fn ccact_01_cc2dact (& mut self) -> CCACT_01_CC2DACT_W < CCACT_01_SPEC , 12 > { CCACT_01_CC2DACT_W :: new (self) } # [doc = "Bits 15:16 - CCP Output Action on CC2U event."]
# [inline (always)]
# [must_use]
pub fn ccact_01_cc2uact (& mut self) -> CCACT_01_CC2UACT_W < CCACT_01_SPEC , 15 > { CCACT_01_CC2UACT_W :: new (self) } # [doc = "Bits 28:29 - CCP Output Action on Software Froce Output This field describes the resulting action of software force. This action has a shadow register, which will be updated under specific condition. So that this register cannot take into effect immediately."]
# [inline (always)]
# [must_use]
pub fn ccact_01_swfrcact (& mut self) -> CCACT_01_SWFRCACT_W < CCACT_01_SPEC , 28 > { CCACT_01_SWFRCACT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Capture or Compare Action Registers\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ccact_01::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ccact_01::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CCACT_01_SPEC ; impl crate :: RegisterSpec for CCACT_01_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ccact_01::R`](R) reader structure"]
impl crate :: Readable for CCACT_01_SPEC { } # [doc = "`write(|w| ..)` method takes [`ccact_01::W`](W) writer structure"]
impl crate :: Writable for CCACT_01_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CCACT_01[%s]
to value 0"]
impl crate :: Resettable for CCACT_01_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "IFCTL_01 (rw) register accessor: Input Filter Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ifctl_01::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ifctl_01::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ifctl_01`]
module"]
pub type IFCTL_01 = crate :: Reg < ifctl_01 :: IFCTL_01_SPEC > ; # [doc = "Input Filter Control Register"]
pub mod ifctl_01 { # [doc = "Register `IFCTL_01[%s]` reader"]
pub type R = crate :: R < IFCTL_01_SPEC > ; # [doc = "Register `IFCTL_01[%s]` writer"]
pub type W = crate :: W < IFCTL_01_SPEC > ; # [doc = "Field `IFCTL_01_ISEL` reader - Input Select (CCP0) This field selects the input source to the filter input. 4h-7h = Reserved"]
pub type IFCTL_01_ISEL_R = crate :: FieldReader < IFCTL_01_ISEL_A > ; # [doc = "Input Select (CCP0) This field selects the input source to the filter input. 4h-7h = Reserved\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum IFCTL_01_ISEL_A { # [doc = "0: CCPX_INPUT"]
IFCTL_01_ISEL_CCPX_INPUT = 0 , # [doc = "1: CCPX_INPUT_PAIR"]
IFCTL_01_ISEL_CCPX_INPUT_PAIR = 1 , # [doc = "2: CCP0_INPUT"]
IFCTL_01_ISEL_CCP0_INPUT = 2 , # [doc = "3: TRIG_INPUT"]
IFCTL_01_ISEL_TRIG_INPUT = 3 , # [doc = "4: CCP_XOR"]
IFCTL_01_ISEL_CCP_XOR = 4 , # [doc = "5: FSUB0"]
IFCTL_01_ISEL_FSUB0 = 5 , # [doc = "6: FSUB1"]
IFCTL_01_ISEL_FSUB1 = 6 , # [doc = "7: COMP0"]
IFCTL_01_ISEL_COMP0 = 7 , # [doc = "8: COMP1"]
IFCTL_01_ISEL_COMP1 = 8 , # [doc = "9: COMP2"]
IFCTL_01_ISEL_COMP2 = 9 , } impl From < IFCTL_01_ISEL_A > for u8 { # [inline (always)]
fn from (variant : IFCTL_01_ISEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for IFCTL_01_ISEL_A { type Ux = u8 ; } impl IFCTL_01_ISEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < IFCTL_01_ISEL_A > { match self . bits { 0 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCPX_INPUT) , 1 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCPX_INPUT_PAIR) , 2 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCP0_INPUT) , 3 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_TRIG_INPUT) , 4 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCP_XOR) , 5 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_FSUB0) , 6 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_FSUB1) , 7 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP0) , 8 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP1) , 9 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP2) , _ => None , } } # [doc = "CCPX_INPUT"]
# [inline (always)]
pub fn is_ifctl_01_isel_ccpx_input (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCPX_INPUT } # [doc = "CCPX_INPUT_PAIR"]
# [inline (always)]
pub fn is_ifctl_01_isel_ccpx_input_pair (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCPX_INPUT_PAIR } # [doc = "CCP0_INPUT"]
# [inline (always)]
pub fn is_ifctl_01_isel_ccp0_input (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCP0_INPUT } # [doc = "TRIG_INPUT"]
# [inline (always)]
pub fn is_ifctl_01_isel_trig_input (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_TRIG_INPUT } # [doc = "CCP_XOR"]
# [inline (always)]
pub fn is_ifctl_01_isel_ccp_xor (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCP_XOR } # [doc = "FSUB0"]
# [inline (always)]
pub fn is_ifctl_01_isel_fsub0 (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_FSUB0 } # [doc = "FSUB1"]
# [inline (always)]
pub fn is_ifctl_01_isel_fsub1 (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_FSUB1 } # [doc = "COMP0"]
# [inline (always)]
pub fn is_ifctl_01_isel_comp0 (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP0 } # [doc = "COMP1"]
# [inline (always)]
pub fn is_ifctl_01_isel_comp1 (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP1 } # [doc = "COMP2"]
# [inline (always)]
pub fn is_ifctl_01_isel_comp2 (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP2 } } # [doc = "Field `IFCTL_01_ISEL` writer - Input Select (CCP0) This field selects the input source to the filter input. 4h-7h = Reserved"]
pub type IFCTL_01_ISEL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 4 , O , IFCTL_01_ISEL_A > ; impl < 'a , REG , const O : u8 > IFCTL_01_ISEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "CCPX_INPUT"]
# [inline (always)]
pub fn ifctl_01_isel_ccpx_input (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCPX_INPUT) } # [doc = "CCPX_INPUT_PAIR"]
# [inline (always)]
pub fn ifctl_01_isel_ccpx_input_pair (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCPX_INPUT_PAIR) } # [doc = "CCP0_INPUT"]
# [inline (always)]
pub fn ifctl_01_isel_ccp0_input (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCP0_INPUT) } # [doc = "TRIG_INPUT"]
# [inline (always)]
pub fn ifctl_01_isel_trig_input (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_TRIG_INPUT) } # [doc = "CCP_XOR"]
# [inline (always)]
pub fn ifctl_01_isel_ccp_xor (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCP_XOR) } # [doc = "FSUB0"]
# [inline (always)]
pub fn ifctl_01_isel_fsub0 (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_FSUB0) } # [doc = "FSUB1"]
# [inline (always)]
pub fn ifctl_01_isel_fsub1 (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_FSUB1) } # [doc = "COMP0"]
# [inline (always)]
pub fn ifctl_01_isel_comp0 (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP0) } # [doc = "COMP1"]
# [inline (always)]
pub fn ifctl_01_isel_comp1 (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP1) } # [doc = "COMP2"]
# [inline (always)]
pub fn ifctl_01_isel_comp2 (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP2) } } # [doc = "Field `IFCTL_01_INV` reader - Input Inversion This bit controls whether the selected input is inverted."]
pub type IFCTL_01_INV_R = crate :: BitReader < IFCTL_01_INV_A > ; # [doc = "Input Inversion This bit controls whether the selected input is inverted.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IFCTL_01_INV_A { # [doc = "0: NOINVERT"]
IFCTL_01_INV_NOINVERT = 0 , # [doc = "1: INVERT"]
IFCTL_01_INV_INVERT = 1 , } impl From < IFCTL_01_INV_A > for bool { # [inline (always)]
fn from (variant : IFCTL_01_INV_A) -> Self { variant as u8 != 0 } } impl IFCTL_01_INV_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IFCTL_01_INV_A { match self . bits { false => IFCTL_01_INV_A :: IFCTL_01_INV_NOINVERT , true => IFCTL_01_INV_A :: IFCTL_01_INV_INVERT , } } # [doc = "NOINVERT"]
# [inline (always)]
pub fn is_ifctl_01_inv_noinvert (& self) -> bool { * self == IFCTL_01_INV_A :: IFCTL_01_INV_NOINVERT } # [doc = "INVERT"]
# [inline (always)]
pub fn is_ifctl_01_inv_invert (& self) -> bool { * self == IFCTL_01_INV_A :: IFCTL_01_INV_INVERT } } # [doc = "Field `IFCTL_01_INV` writer - Input Inversion This bit controls whether the selected input is inverted."]
pub type IFCTL_01_INV_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IFCTL_01_INV_A > ; impl < 'a , REG , const O : u8 > IFCTL_01_INV_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOINVERT"]
# [inline (always)]
pub fn ifctl_01_inv_noinvert (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_INV_A :: IFCTL_01_INV_NOINVERT) } # [doc = "INVERT"]
# [inline (always)]
pub fn ifctl_01_inv_invert (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_INV_A :: IFCTL_01_INV_INVERT) } } # [doc = "Field `IFCTL_01_FP` reader - Filter Period. This field specifies the sample period for the input filter. I.e. The input is sampled for FP timer clocks during filtering."]
pub type IFCTL_01_FP_R = crate :: FieldReader < IFCTL_01_FP_A > ; # [doc = "Filter Period. This field specifies the sample period for the input filter. I.e. The input is sampled for FP timer clocks during filtering.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum IFCTL_01_FP_A { # [doc = "0: _3"]
IFCTL_01_FP__3 = 0 , # [doc = "1: _5"]
IFCTL_01_FP__5 = 1 , # [doc = "2: _8"]
IFCTL_01_FP__8 = 2 , } impl From < IFCTL_01_FP_A > for u8 { # [inline (always)]
fn from (variant : IFCTL_01_FP_A) -> Self { variant as _ } } impl crate :: FieldSpec for IFCTL_01_FP_A { type Ux = u8 ; } impl IFCTL_01_FP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < IFCTL_01_FP_A > { match self . bits { 0 => Some (IFCTL_01_FP_A :: IFCTL_01_FP__3) , 1 => Some (IFCTL_01_FP_A :: IFCTL_01_FP__5) , 2 => Some (IFCTL_01_FP_A :: IFCTL_01_FP__8) , _ => None , } } # [doc = "_3"]
# [inline (always)]
pub fn is_ifctl_01_fp__3 (& self) -> bool { * self == IFCTL_01_FP_A :: IFCTL_01_FP__3 } # [doc = "_5"]
# [inline (always)]
pub fn is_ifctl_01_fp__5 (& self) -> bool { * self == IFCTL_01_FP_A :: IFCTL_01_FP__5 } # [doc = "_8"]
# [inline (always)]
pub fn is_ifctl_01_fp__8 (& self) -> bool { * self == IFCTL_01_FP_A :: IFCTL_01_FP__8 } } # [doc = "Field `IFCTL_01_FP` writer - Filter Period. This field specifies the sample period for the input filter. I.e. The input is sampled for FP timer clocks during filtering."]
pub type IFCTL_01_FP_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , IFCTL_01_FP_A > ; impl < 'a , REG , const O : u8 > IFCTL_01_FP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_3"]
# [inline (always)]
pub fn ifctl_01_fp__3 (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_FP_A :: IFCTL_01_FP__3) } # [doc = "_5"]
# [inline (always)]
pub fn ifctl_01_fp__5 (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_FP_A :: IFCTL_01_FP__5) } # [doc = "_8"]
# [inline (always)]
pub fn ifctl_01_fp__8 (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_FP_A :: IFCTL_01_FP__8) } } # [doc = "Field `IFCTL_01_CPV` reader - Consecutive Period/Voting Select This bit controls whether the input filter uses a stricter consecutive period count or majority voting."]
pub type IFCTL_01_CPV_R = crate :: BitReader < IFCTL_01_CPV_A > ; # [doc = "Consecutive Period/Voting Select This bit controls whether the input filter uses a stricter consecutive period count or majority voting.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IFCTL_01_CPV_A { # [doc = "0: CONSECUTIVE"]
IFCTL_01_CPV_CONSECUTIVE = 0 , # [doc = "1: VOTING"]
IFCTL_01_CPV_VOTING = 1 , } impl From < IFCTL_01_CPV_A > for bool { # [inline (always)]
fn from (variant : IFCTL_01_CPV_A) -> Self { variant as u8 != 0 } } impl IFCTL_01_CPV_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IFCTL_01_CPV_A { match self . bits { false => IFCTL_01_CPV_A :: IFCTL_01_CPV_CONSECUTIVE , true => IFCTL_01_CPV_A :: IFCTL_01_CPV_VOTING , } } # [doc = "CONSECUTIVE"]
# [inline (always)]
pub fn is_ifctl_01_cpv_consecutive (& self) -> bool { * self == IFCTL_01_CPV_A :: IFCTL_01_CPV_CONSECUTIVE } # [doc = "VOTING"]
# [inline (always)]
pub fn is_ifctl_01_cpv_voting (& self) -> bool { * self == IFCTL_01_CPV_A :: IFCTL_01_CPV_VOTING } } # [doc = "Field `IFCTL_01_CPV` writer - Consecutive Period/Voting Select This bit controls whether the input filter uses a stricter consecutive period count or majority voting."]
pub type IFCTL_01_CPV_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IFCTL_01_CPV_A > ; impl < 'a , REG , const O : u8 > IFCTL_01_CPV_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CONSECUTIVE"]
# [inline (always)]
pub fn ifctl_01_cpv_consecutive (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_CPV_A :: IFCTL_01_CPV_CONSECUTIVE) } # [doc = "VOTING"]
# [inline (always)]
pub fn ifctl_01_cpv_voting (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_CPV_A :: IFCTL_01_CPV_VOTING) } } # [doc = "Field `IFCTL_01_FE` reader - Filter Enable This bit controls whether the input is filtered by the input filter or bypasses to the edge detect."]
pub type IFCTL_01_FE_R = crate :: BitReader < IFCTL_01_FE_A > ; # [doc = "Filter Enable This bit controls whether the input is filtered by the input filter or bypasses to the edge detect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IFCTL_01_FE_A { # [doc = "0: DISABLED"]
IFCTL_01_FE_DISABLED = 0 , # [doc = "1: ENABLED"]
IFCTL_01_FE_ENABLED = 1 , } impl From < IFCTL_01_FE_A > for bool { # [inline (always)]
fn from (variant : IFCTL_01_FE_A) -> Self { variant as u8 != 0 } } impl IFCTL_01_FE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IFCTL_01_FE_A { match self . bits { false => IFCTL_01_FE_A :: IFCTL_01_FE_DISABLED , true => IFCTL_01_FE_A :: IFCTL_01_FE_ENABLED , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ifctl_01_fe_disabled (& self) -> bool { * self == IFCTL_01_FE_A :: IFCTL_01_FE_DISABLED } # [doc = "ENABLED"]
# [inline (always)]
pub fn is_ifctl_01_fe_enabled (& self) -> bool { * self == IFCTL_01_FE_A :: IFCTL_01_FE_ENABLED } } # [doc = "Field `IFCTL_01_FE` writer - Filter Enable This bit controls whether the input is filtered by the input filter or bypasses to the edge detect."]
pub type IFCTL_01_FE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IFCTL_01_FE_A > ; impl < 'a , REG , const O : u8 > IFCTL_01_FE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn ifctl_01_fe_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_FE_A :: IFCTL_01_FE_DISABLED) } # [doc = "ENABLED"]
# [inline (always)]
pub fn ifctl_01_fe_enabled (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_FE_A :: IFCTL_01_FE_ENABLED) } } impl R { # [doc = "Bits 0:3 - Input Select (CCP0) This field selects the input source to the filter input. 4h-7h = Reserved"]
# [inline (always)]
pub fn ifctl_01_isel (& self) -> IFCTL_01_ISEL_R { IFCTL_01_ISEL_R :: new ((self . bits & 0x0f) as u8) } # [doc = "Bit 7 - Input Inversion This bit controls whether the selected input is inverted."]
# [inline (always)]
pub fn ifctl_01_inv (& self) -> IFCTL_01_INV_R { IFCTL_01_INV_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bits 8:9 - Filter Period. This field specifies the sample period for the input filter. I.e. The input is sampled for FP timer clocks during filtering."]
# [inline (always)]
pub fn ifctl_01_fp (& self) -> IFCTL_01_FP_R { IFCTL_01_FP_R :: new (((self . bits >> 8) & 3) as u8) } # [doc = "Bit 11 - Consecutive Period/Voting Select This bit controls whether the input filter uses a stricter consecutive period count or majority voting."]
# [inline (always)]
pub fn ifctl_01_cpv (& self) -> IFCTL_01_CPV_R { IFCTL_01_CPV_R :: new (((self . bits >> 11) & 1) != 0) } # [doc = "Bit 12 - Filter Enable This bit controls whether the input is filtered by the input filter or bypasses to the edge detect."]
# [inline (always)]
pub fn ifctl_01_fe (& self) -> IFCTL_01_FE_R { IFCTL_01_FE_R :: new (((self . bits >> 12) & 1) != 0) } } impl W { # [doc = "Bits 0:3 - Input Select (CCP0) This field selects the input source to the filter input. 4h-7h = Reserved"]
# [inline (always)]
# [must_use]
pub fn ifctl_01_isel (& mut self) -> IFCTL_01_ISEL_W < IFCTL_01_SPEC , 0 > { IFCTL_01_ISEL_W :: new (self) } # [doc = "Bit 7 - Input Inversion This bit controls whether the selected input is inverted."]
# [inline (always)]
# [must_use]
pub fn ifctl_01_inv (& mut self) -> IFCTL_01_INV_W < IFCTL_01_SPEC , 7 > { IFCTL_01_INV_W :: new (self) } # [doc = "Bits 8:9 - Filter Period. This field specifies the sample period for the input filter. I.e. The input is sampled for FP timer clocks during filtering."]
# [inline (always)]
# [must_use]
pub fn ifctl_01_fp (& mut self) -> IFCTL_01_FP_W < IFCTL_01_SPEC , 8 > { IFCTL_01_FP_W :: new (self) } # [doc = "Bit 11 - Consecutive Period/Voting Select This bit controls whether the input filter uses a stricter consecutive period count or majority voting."]
# [inline (always)]
# [must_use]
pub fn ifctl_01_cpv (& mut self) -> IFCTL_01_CPV_W < IFCTL_01_SPEC , 11 > { IFCTL_01_CPV_W :: new (self) } # [doc = "Bit 12 - Filter Enable This bit controls whether the input is filtered by the input filter or bypasses to the edge detect."]
# [inline (always)]
# [must_use]
pub fn ifctl_01_fe (& mut self) -> IFCTL_01_FE_W < IFCTL_01_SPEC , 12 > { IFCTL_01_FE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Input Filter Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ifctl_01::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ifctl_01::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IFCTL_01_SPEC ; impl crate :: RegisterSpec for IFCTL_01_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ifctl_01::R`](R) reader structure"]
impl crate :: Readable for IFCTL_01_SPEC { } # [doc = "`write(|w| ..)` method takes [`ifctl_01::W`](W) writer structure"]
impl crate :: Writable for IFCTL_01_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets IFCTL_01[%s]
to value 0"]
impl crate :: Resettable for IFCTL_01_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "TSEL (rw) register accessor: Trigger Select\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`tsel::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`tsel::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tsel`]
module"]
pub type TSEL = crate :: Reg < tsel :: TSEL_SPEC > ; # [doc = "Trigger Select"]
pub mod tsel { # [doc = "Register `TSEL` reader"]
pub type R = crate :: R < TSEL_SPEC > ; # [doc = "Register `TSEL` writer"]
pub type W = crate :: W < TSEL_SPEC > ; # [doc = "Field `TSEL_ETSEL` reader - External Trigger Select. #br# This selects which System Event is used if the input filter selects trigger. Triggers 0-15 are used to connect triggers generated by other timer modules in the same power domain. Refer to the SoC datasheet to get details. Triggers 16 and 17 are connected to event manager subscriber ports. Event lines 18-31 are reserved for future use."]
pub type TSEL_ETSEL_R = crate :: FieldReader < TSEL_ETSEL_A > ; # [doc = "External Trigger Select. #br# This selects which System Event is used if the input filter selects trigger. Triggers 0-15 are used to connect triggers generated by other timer modules in the same power domain. Refer to the SoC datasheet to get details. Triggers 16 and 17 are connected to event manager subscriber ports. Event lines 18-31 are reserved for future use.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum TSEL_ETSEL_A { # [doc = "0: TRIG0"]
TSEL_ETSEL_TRIG0 = 0 , # [doc = "1: TRIG1"]
TSEL_ETSEL_TRIG1 = 1 , # [doc = "2: TRIG2"]
TSEL_ETSEL_TRIG2 = 2 , # [doc = "3: TRIG3"]
TSEL_ETSEL_TRIG3 = 3 , # [doc = "4: TRIG4"]
TSEL_ETSEL_TRIG4 = 4 , # [doc = "5: TRIG5"]
TSEL_ETSEL_TRIG5 = 5 , # [doc = "6: TRIG6"]
TSEL_ETSEL_TRIG6 = 6 , # [doc = "7: TRIG7"]
TSEL_ETSEL_TRIG7 = 7 , # [doc = "8: TRIG8"]
TSEL_ETSEL_TRIG8 = 8 , # [doc = "9: TRIG9"]
TSEL_ETSEL_TRIG9 = 9 , # [doc = "10: TRIG10"]
TSEL_ETSEL_TRIG10 = 10 , # [doc = "11: TRIG11"]
TSEL_ETSEL_TRIG11 = 11 , # [doc = "12: TRIG12"]
TSEL_ETSEL_TRIG12 = 12 , # [doc = "13: TRIG13"]
TSEL_ETSEL_TRIG13 = 13 , # [doc = "14: TRIG14"]
TSEL_ETSEL_TRIG14 = 14 , # [doc = "15: TRIG15"]
TSEL_ETSEL_TRIG15 = 15 , # [doc = "16: TRIG_SUB0"]
TSEL_ETSEL_TRIG_SUB0 = 16 , # [doc = "17: TRIG_SUB1"]
TSEL_ETSEL_TRIG_SUB1 = 17 , } impl From < TSEL_ETSEL_A > for u8 { # [inline (always)]
fn from (variant : TSEL_ETSEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for TSEL_ETSEL_A { type Ux = u8 ; } impl TSEL_ETSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < TSEL_ETSEL_A > { match self . bits { 0 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG0) , 1 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG1) , 2 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG2) , 3 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG3) , 4 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG4) , 5 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG5) , 6 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG6) , 7 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG7) , 8 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG8) , 9 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG9) , 10 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG10) , 11 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG11) , 12 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG12) , 13 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG13) , 14 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG14) , 15 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG15) , 16 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG_SUB0) , 17 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG_SUB1) , _ => None , } } # [doc = "TRIG0"]
# [inline (always)]
pub fn is_tsel_etsel_trig0 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG0 } # [doc = "TRIG1"]
# [inline (always)]
pub fn is_tsel_etsel_trig1 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG1 } # [doc = "TRIG2"]
# [inline (always)]
pub fn is_tsel_etsel_trig2 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG2 } # [doc = "TRIG3"]
# [inline (always)]
pub fn is_tsel_etsel_trig3 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG3 } # [doc = "TRIG4"]
# [inline (always)]
pub fn is_tsel_etsel_trig4 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG4 } # [doc = "TRIG5"]
# [inline (always)]
pub fn is_tsel_etsel_trig5 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG5 } # [doc = "TRIG6"]
# [inline (always)]
pub fn is_tsel_etsel_trig6 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG6 } # [doc = "TRIG7"]
# [inline (always)]
pub fn is_tsel_etsel_trig7 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG7 } # [doc = "TRIG8"]
# [inline (always)]
pub fn is_tsel_etsel_trig8 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG8 } # [doc = "TRIG9"]
# [inline (always)]
pub fn is_tsel_etsel_trig9 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG9 } # [doc = "TRIG10"]
# [inline (always)]
pub fn is_tsel_etsel_trig10 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG10 } # [doc = "TRIG11"]
# [inline (always)]
pub fn is_tsel_etsel_trig11 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG11 } # [doc = "TRIG12"]
# [inline (always)]
pub fn is_tsel_etsel_trig12 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG12 } # [doc = "TRIG13"]
# [inline (always)]
pub fn is_tsel_etsel_trig13 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG13 } # [doc = "TRIG14"]
# [inline (always)]
pub fn is_tsel_etsel_trig14 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG14 } # [doc = "TRIG15"]
# [inline (always)]
pub fn is_tsel_etsel_trig15 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG15 } # [doc = "TRIG_SUB0"]
# [inline (always)]
pub fn is_tsel_etsel_trig_sub0 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG_SUB0 } # [doc = "TRIG_SUB1"]
# [inline (always)]
pub fn is_tsel_etsel_trig_sub1 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG_SUB1 } } # [doc = "Field `TSEL_ETSEL` writer - External Trigger Select. #br# This selects which System Event is used if the input filter selects trigger. Triggers 0-15 are used to connect triggers generated by other timer modules in the same power domain. Refer to the SoC datasheet to get details. Triggers 16 and 17 are connected to event manager subscriber ports. Event lines 18-31 are reserved for future use."]
pub type TSEL_ETSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 5 , O , TSEL_ETSEL_A > ; impl < 'a , REG , const O : u8 > TSEL_ETSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "TRIG0"]
# [inline (always)]
pub fn tsel_etsel_trig0 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG0) } # [doc = "TRIG1"]
# [inline (always)]
pub fn tsel_etsel_trig1 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG1) } # [doc = "TRIG2"]
# [inline (always)]
pub fn tsel_etsel_trig2 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG2) } # [doc = "TRIG3"]
# [inline (always)]
pub fn tsel_etsel_trig3 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG3) } # [doc = "TRIG4"]
# [inline (always)]
pub fn tsel_etsel_trig4 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG4) } # [doc = "TRIG5"]
# [inline (always)]
pub fn tsel_etsel_trig5 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG5) } # [doc = "TRIG6"]
# [inline (always)]
pub fn tsel_etsel_trig6 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG6) } # [doc = "TRIG7"]
# [inline (always)]
pub fn tsel_etsel_trig7 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG7) } # [doc = "TRIG8"]
# [inline (always)]
pub fn tsel_etsel_trig8 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG8) } # [doc = "TRIG9"]
# [inline (always)]
pub fn tsel_etsel_trig9 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG9) } # [doc = "TRIG10"]
# [inline (always)]
pub fn tsel_etsel_trig10 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG10) } # [doc = "TRIG11"]
# [inline (always)]
pub fn tsel_etsel_trig11 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG11) } # [doc = "TRIG12"]
# [inline (always)]
pub fn tsel_etsel_trig12 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG12) } # [doc = "TRIG13"]
# [inline (always)]
pub fn tsel_etsel_trig13 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG13) } # [doc = "TRIG14"]
# [inline (always)]
pub fn tsel_etsel_trig14 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG14) } # [doc = "TRIG15"]
# [inline (always)]
pub fn tsel_etsel_trig15 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG15) } # [doc = "TRIG_SUB0"]
# [inline (always)]
pub fn tsel_etsel_trig_sub0 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG_SUB0) } # [doc = "TRIG_SUB1"]
# [inline (always)]
pub fn tsel_etsel_trig_sub1 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG_SUB1) } } # [doc = "Field `TSEL_TE` reader - Trigger Enable. This selects whether a trigger is enabled or not for this counter 0x0 = Triggers are not used 0x1 = Triggers are used as selected by the ETSEL field"]
pub type TSEL_TE_R = crate :: BitReader < TSEL_TE_A > ; # [doc = "Trigger Enable. This selects whether a trigger is enabled or not for this counter 0x0 = Triggers are not used 0x1 = Triggers are used as selected by the ETSEL field\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum TSEL_TE_A { # [doc = "0: DISABLED"]
TSEL_TE_DISABLED = 0 , # [doc = "1: ENABLED"]
TSEL_TE_ENABLED = 1 , } impl From < TSEL_TE_A > for bool { # [inline (always)]
fn from (variant : TSEL_TE_A) -> Self { variant as u8 != 0 } } impl TSEL_TE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> TSEL_TE_A { match self . bits { false => TSEL_TE_A :: TSEL_TE_DISABLED , true => TSEL_TE_A :: TSEL_TE_ENABLED , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_tsel_te_disabled (& self) -> bool { * self == TSEL_TE_A :: TSEL_TE_DISABLED } # [doc = "ENABLED"]
# [inline (always)]
pub fn is_tsel_te_enabled (& self) -> bool { * self == TSEL_TE_A :: TSEL_TE_ENABLED } } # [doc = "Field `TSEL_TE` writer - Trigger Enable. This selects whether a trigger is enabled or not for this counter 0x0 = Triggers are not used 0x1 = Triggers are used as selected by the ETSEL field"]
pub type TSEL_TE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , TSEL_TE_A > ; impl < 'a , REG , const O : u8 > TSEL_TE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn tsel_te_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_TE_A :: TSEL_TE_DISABLED) } # [doc = "ENABLED"]
# [inline (always)]
pub fn tsel_te_enabled (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_TE_A :: TSEL_TE_ENABLED) } } impl R { # [doc = "Bits 0:4 - External Trigger Select. #br# This selects which System Event is used if the input filter selects trigger. Triggers 0-15 are used to connect triggers generated by other timer modules in the same power domain. Refer to the SoC datasheet to get details. Triggers 16 and 17 are connected to event manager subscriber ports. Event lines 18-31 are reserved for future use."]
# [inline (always)]
pub fn tsel_etsel (& self) -> TSEL_ETSEL_R { TSEL_ETSEL_R :: new ((self . bits & 0x1f) as u8) } # [doc = "Bit 9 - Trigger Enable. This selects whether a trigger is enabled or not for this counter 0x0 = Triggers are not used 0x1 = Triggers are used as selected by the ETSEL field"]
# [inline (always)]
pub fn tsel_te (& self) -> TSEL_TE_R { TSEL_TE_R :: new (((self . bits >> 9) & 1) != 0) } } impl W { # [doc = "Bits 0:4 - External Trigger Select. #br# This selects which System Event is used if the input filter selects trigger. Triggers 0-15 are used to connect triggers generated by other timer modules in the same power domain. Refer to the SoC datasheet to get details. Triggers 16 and 17 are connected to event manager subscriber ports. Event lines 18-31 are reserved for future use."]
# [inline (always)]
# [must_use]
pub fn tsel_etsel (& mut self) -> TSEL_ETSEL_W < TSEL_SPEC , 0 > { TSEL_ETSEL_W :: new (self) } # [doc = "Bit 9 - Trigger Enable. This selects whether a trigger is enabled or not for this counter 0x0 = Triggers are not used 0x1 = Triggers are used as selected by the ETSEL field"]
# [inline (always)]
# [must_use]
pub fn tsel_te (& mut self) -> TSEL_TE_W < TSEL_SPEC , 9 > { TSEL_TE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Trigger Select\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`tsel::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`tsel::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct TSEL_SPEC ; impl crate :: RegisterSpec for TSEL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`tsel::R`](R) reader structure"]
impl crate :: Readable for TSEL_SPEC { } # [doc = "`write(|w| ..)` method takes [`tsel::W`](W) writer structure"]
impl crate :: Writable for TSEL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets TSEL to value 0"]
impl crate :: Resettable for TSEL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } } # [doc = "PERIPHERALREGION"]
pub struct DMA { _marker : PhantomData < * const () > } unsafe impl Send for DMA { } impl DMA { # [doc = r"Pointer to the register block"]
pub const PTR : * const dma :: RegisterBlock = 0x4042_a000 as * const _ ; # [doc = r"Return the pointer to the register block"]
# [inline (always)]
pub const fn ptr () -> * const dma :: RegisterBlock { Self :: PTR } # [doc = r" Steal an instance of this peripheral"]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Ensure that the new instance of the peripheral cannot be used in a way"]
# [doc = r" that may race with any existing instances, for example by only"]
# [doc = r" accessing read-only or write-only registers, or by consuming the"]
# [doc = r" original peripheral and using critical sections to coordinate"]
# [doc = r" access between multiple new instances."]
# [doc = r""]
# [doc = r" Additionally, other software such as HALs may rely on only one"]
# [doc = r" peripheral instance existing to ensure memory safety; ensure"]
# [doc = r" no stolen instances are passed to such software."]
pub unsafe fn steal () -> Self { Self { _marker : PhantomData } } } impl Deref for DMA { type Target = dma :: RegisterBlock ; # [inline (always)]
fn deref (& self) -> & Self :: Target { unsafe { & * Self :: PTR } } } impl core :: fmt :: Debug for DMA { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("DMA") . finish () } } # [doc = "PERIPHERALREGION"]
pub mod dma { # [doc = r"Register block"]
# [repr (C)]
pub struct RegisterBlock { _reserved0 : [u8 ; 0x0400]
, # [doc = "0x400 - Subscriber Port 0"]
pub fsub_0 : FSUB_0 , # [doc = "0x404 - Subscriber Port 1"]
pub fsub_1 : FSUB_1 , _reserved2 : [u8 ; 0x3c]
, # [doc = "0x444 - Publisher Port 0"]
pub fpub_1 : FPUB_1 , _reserved3 : [u8 ; 0x0bd0]
, # [doc = "0x1018 - Peripheral Debug Control"]
pub pdbgctl : PDBGCTL , _reserved4 : [u8 ; 0x04]
, # [doc = "0x1020 - Interrupt index"]
pub iidx : IIDX , _reserved5 : [u8 ; 0x04]
, # [doc = "0x1028 - Interrupt mask"]
pub imask : IMASK , _reserved6 : [u8 ; 0x04]
, # [doc = "0x1030 - Raw interrupt status"]
pub ris : RIS , _reserved7 : [u8 ; 0x04]
, # [doc = "0x1038 - Masked interrupt status"]
pub mis : MIS , _reserved8 : [u8 ; 0x04]
, # [doc = "0x1040 - Interrupt set"]
pub iset : ISET , _reserved9 : [u8 ; 0x04]
, # [doc = "0x1048 - Interrupt clear"]
pub iclr : ICLR , _reserved10 : [u8 ; 0x94]
, # [doc = "0x10e0 - Event Mode"]
pub evt_mode : EVT_MODE , _reserved11 : [u8 ; 0x18]
, # [doc = "0x10fc - Module Description"]
pub desc : DESC , # [doc = "0x1100 - DMA Channel Priority Control"]
pub dmaprio : DMAPRIO , _reserved13 : [u8 ; 0x0c]
, # [doc = "0x1110 - DMA Trigger Select"]
pub dmatctl : DMATCTL , _reserved14 : [u8 ; 0xec]
, # [doc = "0x1200 - DMA Channel Control"]
pub dmactl : DMACTL , # [doc = "0x1204 - DMA Channel Source Address"]
pub dmasa : DMASA , # [doc = "0x1208 - DMA Channel Destination Address"]
pub dmada : DMADA , # [doc = "0x120c - DMA Channel Size"]
pub dmasz : DMASZ , } # [doc = "FSUB_0 (rw) register accessor: Subscriber Port 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fsub_0`]
module"]
pub type FSUB_0 = crate :: Reg < fsub_0 :: FSUB_0_SPEC > ; # [doc = "Subscriber Port 0"]
pub mod fsub_0 { # [doc = "Register `FSUB_0` reader"]
pub type R = crate :: R < FSUB_0_SPEC > ; # [doc = "Register `FSUB_0` writer"]
pub type W = crate :: W < FSUB_0_SPEC > ; # [doc = "Field `FSUB_0_CHANID` reader - 0 = disconnected. 1-255 = connected to channelID = CHANID."]
pub type FSUB_0_CHANID_R = crate :: FieldReader < FSUB_0_CHANID_A > ; # [doc = "0 = disconnected. 1-255 = connected to channelID = CHANID.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FSUB_0_CHANID_A { # [doc = "0: UNCONNECTED"]
FSUB_0_CHANID_UNCONNECTED = 0 , } impl From < FSUB_0_CHANID_A > for u8 { # [inline (always)]
fn from (variant : FSUB_0_CHANID_A) -> Self { variant as _ } } impl crate :: FieldSpec for FSUB_0_CHANID_A { type Ux = u8 ; } impl FSUB_0_CHANID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < FSUB_0_CHANID_A > { match self . bits { 0 => Some (FSUB_0_CHANID_A :: FSUB_0_CHANID_UNCONNECTED) , _ => None , } } # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn is_fsub_0_chanid_unconnected (& self) -> bool { * self == FSUB_0_CHANID_A :: FSUB_0_CHANID_UNCONNECTED } } # [doc = "Field `FSUB_0_CHANID` writer - 0 = disconnected. 1-255 = connected to channelID = CHANID."]
pub type FSUB_0_CHANID_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , FSUB_0_CHANID_A > ; impl < 'a , REG , const O : u8 > FSUB_0_CHANID_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn fsub_0_chanid_unconnected (self) -> & 'a mut crate :: W < REG > { self . variant (FSUB_0_CHANID_A :: FSUB_0_CHANID_UNCONNECTED) } } impl R { # [doc = "Bits 0:1 - 0 = disconnected. 1-255 = connected to channelID = CHANID."]
# [inline (always)]
pub fn fsub_0_chanid (& self) -> FSUB_0_CHANID_R { FSUB_0_CHANID_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = "Bits 0:1 - 0 = disconnected. 1-255 = connected to channelID = CHANID."]
# [inline (always)]
# [must_use]
pub fn fsub_0_chanid (& mut self) -> FSUB_0_CHANID_W < FSUB_0_SPEC , 0 > { FSUB_0_CHANID_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Subscriber Port 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_0::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FSUB_0_SPEC ; impl crate :: RegisterSpec for FSUB_0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fsub_0::R`](R) reader structure"]
impl crate :: Readable for FSUB_0_SPEC { } # [doc = "`write(|w| ..)` method takes [`fsub_0::W`](W) writer structure"]
impl crate :: Writable for FSUB_0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FSUB_0 to value 0"]
impl crate :: Resettable for FSUB_0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "FSUB_1 (rw) register accessor: Subscriber Port 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fsub_1`]
module"]
pub type FSUB_1 = crate :: Reg < fsub_1 :: FSUB_1_SPEC > ; # [doc = "Subscriber Port 1"]
pub mod fsub_1 { # [doc = "Register `FSUB_1` reader"]
pub type R = crate :: R < FSUB_1_SPEC > ; # [doc = "Register `FSUB_1` writer"]
pub type W = crate :: W < FSUB_1_SPEC > ; # [doc = "Field `FSUB_1_CHANID` reader - 0 = disconnected. 1-255 = connected to channelID = CHANID."]
pub type FSUB_1_CHANID_R = crate :: FieldReader < FSUB_1_CHANID_A > ; # [doc = "0 = disconnected. 1-255 = connected to channelID = CHANID.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FSUB_1_CHANID_A { # [doc = "0: UNCONNECTED"]
FSUB_1_CHANID_UNCONNECTED = 0 , } impl From < FSUB_1_CHANID_A > for u8 { # [inline (always)]
fn from (variant : FSUB_1_CHANID_A) -> Self { variant as _ } } impl crate :: FieldSpec for FSUB_1_CHANID_A { type Ux = u8 ; } impl FSUB_1_CHANID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < FSUB_1_CHANID_A > { match self . bits { 0 => Some (FSUB_1_CHANID_A :: FSUB_1_CHANID_UNCONNECTED) , _ => None , } } # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn is_fsub_1_chanid_unconnected (& self) -> bool { * self == FSUB_1_CHANID_A :: FSUB_1_CHANID_UNCONNECTED } } # [doc = "Field `FSUB_1_CHANID` writer - 0 = disconnected. 1-255 = connected to channelID = CHANID."]
pub type FSUB_1_CHANID_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , FSUB_1_CHANID_A > ; impl < 'a , REG , const O : u8 > FSUB_1_CHANID_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn fsub_1_chanid_unconnected (self) -> & 'a mut crate :: W < REG > { self . variant (FSUB_1_CHANID_A :: FSUB_1_CHANID_UNCONNECTED) } } impl R { # [doc = "Bits 0:1 - 0 = disconnected. 1-255 = connected to channelID = CHANID."]
# [inline (always)]
pub fn fsub_1_chanid (& self) -> FSUB_1_CHANID_R { FSUB_1_CHANID_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = "Bits 0:1 - 0 = disconnected. 1-255 = connected to channelID = CHANID."]
# [inline (always)]
# [must_use]
pub fn fsub_1_chanid (& mut self) -> FSUB_1_CHANID_W < FSUB_1_SPEC , 0 > { FSUB_1_CHANID_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Subscriber Port 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_1::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FSUB_1_SPEC ; impl crate :: RegisterSpec for FSUB_1_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fsub_1::R`](R) reader structure"]
impl crate :: Readable for FSUB_1_SPEC { } # [doc = "`write(|w| ..)` method takes [`fsub_1::W`](W) writer structure"]
impl crate :: Writable for FSUB_1_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FSUB_1 to value 0"]
impl crate :: Resettable for FSUB_1_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "FPUB_1 (rw) register accessor: Publisher Port 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fpub_1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fpub_1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fpub_1`]
module"]
pub type FPUB_1 = crate :: Reg < fpub_1 :: FPUB_1_SPEC > ; # [doc = "Publisher Port 0"]
pub mod fpub_1 { # [doc = "Register `FPUB_1` reader"]
pub type R = crate :: R < FPUB_1_SPEC > ; # [doc = "Register `FPUB_1` writer"]
pub type W = crate :: W < FPUB_1_SPEC > ; # [doc = "Field `FPUB_1_CHANID` reader - 0 = disconnected. 1-255 = connected to channelID = CHANID."]
pub type FPUB_1_CHANID_R = crate :: FieldReader < FPUB_1_CHANID_A > ; # [doc = "0 = disconnected. 1-255 = connected to channelID = CHANID.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FPUB_1_CHANID_A { # [doc = "0: UNCONNECTED"]
FPUB_1_CHANID_UNCONNECTED = 0 , } impl From < FPUB_1_CHANID_A > for u8 { # [inline (always)]
fn from (variant : FPUB_1_CHANID_A) -> Self { variant as _ } } impl crate :: FieldSpec for FPUB_1_CHANID_A { type Ux = u8 ; } impl FPUB_1_CHANID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < FPUB_1_CHANID_A > { match self . bits { 0 => Some (FPUB_1_CHANID_A :: FPUB_1_CHANID_UNCONNECTED) , _ => None , } } # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn is_fpub_1_chanid_unconnected (& self) -> bool { * self == FPUB_1_CHANID_A :: FPUB_1_CHANID_UNCONNECTED } } # [doc = "Field `FPUB_1_CHANID` writer - 0 = disconnected. 1-255 = connected to channelID = CHANID."]
pub type FPUB_1_CHANID_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , FPUB_1_CHANID_A > ; impl < 'a , REG , const O : u8 > FPUB_1_CHANID_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn fpub_1_chanid_unconnected (self) -> & 'a mut crate :: W < REG > { self . variant (FPUB_1_CHANID_A :: FPUB_1_CHANID_UNCONNECTED) } } impl R { # [doc = "Bits 0:1 - 0 = disconnected. 1-255 = connected to channelID = CHANID."]
# [inline (always)]
pub fn fpub_1_chanid (& self) -> FPUB_1_CHANID_R { FPUB_1_CHANID_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = "Bits 0:1 - 0 = disconnected. 1-255 = connected to channelID = CHANID."]
# [inline (always)]
# [must_use]
pub fn fpub_1_chanid (& mut self) -> FPUB_1_CHANID_W < FPUB_1_SPEC , 0 > { FPUB_1_CHANID_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Publisher Port 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fpub_1::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fpub_1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FPUB_1_SPEC ; impl crate :: RegisterSpec for FPUB_1_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fpub_1::R`](R) reader structure"]
impl crate :: Readable for FPUB_1_SPEC { } # [doc = "`write(|w| ..)` method takes [`fpub_1::W`](W) writer structure"]
impl crate :: Writable for FPUB_1_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FPUB_1 to value 0"]
impl crate :: Resettable for FPUB_1_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "PDBGCTL (rw) register accessor: Peripheral Debug Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pdbgctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pdbgctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pdbgctl`]
module"]
pub type PDBGCTL = crate :: Reg < pdbgctl :: PDBGCTL_SPEC > ; # [doc = "Peripheral Debug Control"]
pub mod pdbgctl { # [doc = "Register `PDBGCTL` reader"]
pub type R = crate :: R < PDBGCTL_SPEC > ; # [doc = "Register `PDBGCTL` writer"]
pub type W = crate :: W < PDBGCTL_SPEC > ; # [doc = "Field `PDBGCTL_FREE` reader - Free run control"]
pub type PDBGCTL_FREE_R = crate :: BitReader < PDBGCTL_FREE_A > ; # [doc = "Free run control\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PDBGCTL_FREE_A { # [doc = "0: STOP"]
PDBGCTL_FREE_STOP = 0 , # [doc = "1: RUN"]
PDBGCTL_FREE_RUN = 1 , } impl From < PDBGCTL_FREE_A > for bool { # [inline (always)]
fn from (variant : PDBGCTL_FREE_A) -> Self { variant as u8 != 0 } } impl PDBGCTL_FREE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PDBGCTL_FREE_A { match self . bits { false => PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP , true => PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN , } } # [doc = "STOP"]
# [inline (always)]
pub fn is_pdbgctl_free_stop (& self) -> bool { * self == PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP } # [doc = "RUN"]
# [inline (always)]
pub fn is_pdbgctl_free_run (& self) -> bool { * self == PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN } } # [doc = "Field `PDBGCTL_FREE` writer - Free run control"]
pub type PDBGCTL_FREE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PDBGCTL_FREE_A > ; impl < 'a , REG , const O : u8 > PDBGCTL_FREE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "STOP"]
# [inline (always)]
pub fn pdbgctl_free_stop (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP) } # [doc = "RUN"]
# [inline (always)]
pub fn pdbgctl_free_run (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN) } } # [doc = "Field `PDBGCTL_SOFT` reader - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
pub type PDBGCTL_SOFT_R = crate :: BitReader < PDBGCTL_SOFT_A > ; # [doc = "Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PDBGCTL_SOFT_A { # [doc = "0: IMMEDIATE"]
PDBGCTL_SOFT_IMMEDIATE = 0 , # [doc = "1: DELAYED"]
PDBGCTL_SOFT_DELAYED = 1 , } impl From < PDBGCTL_SOFT_A > for bool { # [inline (always)]
fn from (variant : PDBGCTL_SOFT_A) -> Self { variant as u8 != 0 } } impl PDBGCTL_SOFT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PDBGCTL_SOFT_A { match self . bits { false => PDBGCTL_SOFT_A :: PDBGCTL_SOFT_IMMEDIATE , true => PDBGCTL_SOFT_A :: PDBGCTL_SOFT_DELAYED , } } # [doc = "IMMEDIATE"]
# [inline (always)]
pub fn is_pdbgctl_soft_immediate (& self) -> bool { * self == PDBGCTL_SOFT_A :: PDBGCTL_SOFT_IMMEDIATE } # [doc = "DELAYED"]
# [inline (always)]
pub fn is_pdbgctl_soft_delayed (& self) -> bool { * self == PDBGCTL_SOFT_A :: PDBGCTL_SOFT_DELAYED } } # [doc = "Field `PDBGCTL_SOFT` writer - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
pub type PDBGCTL_SOFT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PDBGCTL_SOFT_A > ; impl < 'a , REG , const O : u8 > PDBGCTL_SOFT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "IMMEDIATE"]
# [inline (always)]
pub fn pdbgctl_soft_immediate (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_SOFT_A :: PDBGCTL_SOFT_IMMEDIATE) } # [doc = "DELAYED"]
# [inline (always)]
pub fn pdbgctl_soft_delayed (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_SOFT_A :: PDBGCTL_SOFT_DELAYED) } } impl R { # [doc = "Bit 0 - Free run control"]
# [inline (always)]
pub fn pdbgctl_free (& self) -> PDBGCTL_FREE_R { PDBGCTL_FREE_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
# [inline (always)]
pub fn pdbgctl_soft (& self) -> PDBGCTL_SOFT_R { PDBGCTL_SOFT_R :: new (((self . bits >> 1) & 1) != 0) } } impl W { # [doc = "Bit 0 - Free run control"]
# [inline (always)]
# [must_use]
pub fn pdbgctl_free (& mut self) -> PDBGCTL_FREE_W < PDBGCTL_SPEC , 0 > { PDBGCTL_FREE_W :: new (self) } # [doc = "Bit 1 - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
# [inline (always)]
# [must_use]
pub fn pdbgctl_soft (& mut self) -> PDBGCTL_SOFT_W < PDBGCTL_SPEC , 1 > { PDBGCTL_SOFT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Peripheral Debug Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pdbgctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pdbgctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PDBGCTL_SPEC ; impl crate :: RegisterSpec for PDBGCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pdbgctl::R`](R) reader structure"]
impl crate :: Readable for PDBGCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`pdbgctl::W`](W) writer structure"]
impl crate :: Writable for PDBGCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PDBGCTL to value 0"]
impl crate :: Resettable for PDBGCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "IIDX (r) register accessor: Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@iidx`]
module"]
pub type IIDX = crate :: Reg < iidx :: IIDX_SPEC > ; # [doc = "Interrupt index"]
pub mod iidx { # [doc = "Register `IIDX` reader"]
pub type R = crate :: R < IIDX_SPEC > ; # [doc = "Field `IIDX_STAT` reader - Interrupt index status"]
pub type IIDX_STAT_R = crate :: FieldReader < IIDX_STAT_A > ; # [doc = "Interrupt index status\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum IIDX_STAT_A { # [doc = "0: NO_INTR"]
IIDX_STAT_NO_INTR = 0 , # [doc = "1: DMACH0"]
IIDX_STAT_DMACH0 = 1 , # [doc = "2: DMACH1"]
IIDX_STAT_DMACH1 = 2 , # [doc = "3: DMACH2"]
IIDX_STAT_DMACH2 = 3 , # [doc = "4: DMACH3"]
IIDX_STAT_DMACH3 = 4 , # [doc = "5: DMACH4"]
IIDX_STAT_DMACH4 = 5 , # [doc = "6: DMACH5"]
IIDX_STAT_DMACH5 = 6 , # [doc = "7: DMACH6"]
IIDX_STAT_DMACH6 = 7 , # [doc = "8: DMACH7"]
IIDX_STAT_DMACH7 = 8 , # [doc = "9: DMACH8"]
IIDX_STAT_DMACH8 = 9 , # [doc = "10: DMACH9"]
IIDX_STAT_DMACH9 = 10 , # [doc = "11: DMACH10"]
IIDX_STAT_DMACH10 = 11 , # [doc = "12: DMACH11"]
IIDX_STAT_DMACH11 = 12 , # [doc = "13: DMACH12"]
IIDX_STAT_DMACH12 = 13 , # [doc = "14: DMACH13"]
IIDX_STAT_DMACH13 = 14 , # [doc = "15: DMACH14"]
IIDX_STAT_DMACH14 = 15 , # [doc = "16: DMACH15"]
IIDX_STAT_DMACH15 = 16 , # [doc = "17: PREIRQCH0"]
IIDX_STAT_PREIRQCH0 = 17 , # [doc = "18: PREIRQCH1"]
IIDX_STAT_PREIRQCH1 = 18 , # [doc = "19: PREIRQCH2"]
IIDX_STAT_PREIRQCH2 = 19 , # [doc = "20: PREIRQCH3"]
IIDX_STAT_PREIRQCH3 = 20 , # [doc = "21: PREIRQCH4"]
IIDX_STAT_PREIRQCH4 = 21 , # [doc = "22: PREIRQCH5"]
IIDX_STAT_PREIRQCH5 = 22 , # [doc = "23: PREIRQCH6"]
IIDX_STAT_PREIRQCH6 = 23 , # [doc = "24: PREIRQCH7"]
IIDX_STAT_PREIRQCH7 = 24 , # [doc = "25: ADDRERR"]
IIDX_STAT_ADDRERR = 25 , # [doc = "26: DATAERR"]
IIDX_STAT_DATAERR = 26 , } impl From < IIDX_STAT_A > for u8 { # [inline (always)]
fn from (variant : IIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for IIDX_STAT_A { type Ux = u8 ; } impl IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < IIDX_STAT_A > { match self . bits { 0 => Some (IIDX_STAT_A :: IIDX_STAT_NO_INTR) , 1 => Some (IIDX_STAT_A :: IIDX_STAT_DMACH0) , 2 => Some (IIDX_STAT_A :: IIDX_STAT_DMACH1) , 3 => Some (IIDX_STAT_A :: IIDX_STAT_DMACH2) , 4 => Some (IIDX_STAT_A :: IIDX_STAT_DMACH3) , 5 => Some (IIDX_STAT_A :: IIDX_STAT_DMACH4) , 6 => Some (IIDX_STAT_A :: IIDX_STAT_DMACH5) , 7 => Some (IIDX_STAT_A :: IIDX_STAT_DMACH6) , 8 => Some (IIDX_STAT_A :: IIDX_STAT_DMACH7) , 9 => Some (IIDX_STAT_A :: IIDX_STAT_DMACH8) , 10 => Some (IIDX_STAT_A :: IIDX_STAT_DMACH9) , 11 => Some (IIDX_STAT_A :: IIDX_STAT_DMACH10) , 12 => Some (IIDX_STAT_A :: IIDX_STAT_DMACH11) , 13 => Some (IIDX_STAT_A :: IIDX_STAT_DMACH12) , 14 => Some (IIDX_STAT_A :: IIDX_STAT_DMACH13) , 15 => Some (IIDX_STAT_A :: IIDX_STAT_DMACH14) , 16 => Some (IIDX_STAT_A :: IIDX_STAT_DMACH15) , 17 => Some (IIDX_STAT_A :: IIDX_STAT_PREIRQCH0) , 18 => Some (IIDX_STAT_A :: IIDX_STAT_PREIRQCH1) , 19 => Some (IIDX_STAT_A :: IIDX_STAT_PREIRQCH2) , 20 => Some (IIDX_STAT_A :: IIDX_STAT_PREIRQCH3) , 21 => Some (IIDX_STAT_A :: IIDX_STAT_PREIRQCH4) , 22 => Some (IIDX_STAT_A :: IIDX_STAT_PREIRQCH5) , 23 => Some (IIDX_STAT_A :: IIDX_STAT_PREIRQCH6) , 24 => Some (IIDX_STAT_A :: IIDX_STAT_PREIRQCH7) , 25 => Some (IIDX_STAT_A :: IIDX_STAT_ADDRERR) , 26 => Some (IIDX_STAT_A :: IIDX_STAT_DATAERR) , _ => None , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_iidx_stat_no_intr (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_NO_INTR } # [doc = "DMACH0"]
# [inline (always)]
pub fn is_iidx_stat_dmach0 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_DMACH0 } # [doc = "DMACH1"]
# [inline (always)]
pub fn is_iidx_stat_dmach1 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_DMACH1 } # [doc = "DMACH2"]
# [inline (always)]
pub fn is_iidx_stat_dmach2 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_DMACH2 } # [doc = "DMACH3"]
# [inline (always)]
pub fn is_iidx_stat_dmach3 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_DMACH3 } # [doc = "DMACH4"]
# [inline (always)]
pub fn is_iidx_stat_dmach4 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_DMACH4 } # [doc = "DMACH5"]
# [inline (always)]
pub fn is_iidx_stat_dmach5 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_DMACH5 } # [doc = "DMACH6"]
# [inline (always)]
pub fn is_iidx_stat_dmach6 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_DMACH6 } # [doc = "DMACH7"]
# [inline (always)]
pub fn is_iidx_stat_dmach7 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_DMACH7 } # [doc = "DMACH8"]
# [inline (always)]
pub fn is_iidx_stat_dmach8 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_DMACH8 } # [doc = "DMACH9"]
# [inline (always)]
pub fn is_iidx_stat_dmach9 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_DMACH9 } # [doc = "DMACH10"]
# [inline (always)]
pub fn is_iidx_stat_dmach10 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_DMACH10 } # [doc = "DMACH11"]
# [inline (always)]
pub fn is_iidx_stat_dmach11 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_DMACH11 } # [doc = "DMACH12"]
# [inline (always)]
pub fn is_iidx_stat_dmach12 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_DMACH12 } # [doc = "DMACH13"]
# [inline (always)]
pub fn is_iidx_stat_dmach13 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_DMACH13 } # [doc = "DMACH14"]
# [inline (always)]
pub fn is_iidx_stat_dmach14 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_DMACH14 } # [doc = "DMACH15"]
# [inline (always)]
pub fn is_iidx_stat_dmach15 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_DMACH15 } # [doc = "PREIRQCH0"]
# [inline (always)]
pub fn is_iidx_stat_preirqch0 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_PREIRQCH0 } # [doc = "PREIRQCH1"]
# [inline (always)]
pub fn is_iidx_stat_preirqch1 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_PREIRQCH1 } # [doc = "PREIRQCH2"]
# [inline (always)]
pub fn is_iidx_stat_preirqch2 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_PREIRQCH2 } # [doc = "PREIRQCH3"]
# [inline (always)]
pub fn is_iidx_stat_preirqch3 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_PREIRQCH3 } # [doc = "PREIRQCH4"]
# [inline (always)]
pub fn is_iidx_stat_preirqch4 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_PREIRQCH4 } # [doc = "PREIRQCH5"]
# [inline (always)]
pub fn is_iidx_stat_preirqch5 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_PREIRQCH5 } # [doc = "PREIRQCH6"]
# [inline (always)]
pub fn is_iidx_stat_preirqch6 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_PREIRQCH6 } # [doc = "PREIRQCH7"]
# [inline (always)]
pub fn is_iidx_stat_preirqch7 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_PREIRQCH7 } # [doc = "ADDRERR"]
# [inline (always)]
pub fn is_iidx_stat_addrerr (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_ADDRERR } # [doc = "DATAERR"]
# [inline (always)]
pub fn is_iidx_stat_dataerr (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_DATAERR } } impl R { # [doc = "Bits 0:7 - Interrupt index status"]
# [inline (always)]
pub fn iidx_stat (& self) -> IIDX_STAT_R { IIDX_STAT_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IIDX_SPEC ; impl crate :: RegisterSpec for IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`iidx::R`](R) reader structure"]
impl crate :: Readable for IIDX_SPEC { } # [doc = "`reset()` method sets IIDX to value 0"]
impl crate :: Resettable for IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "IMASK (rw) register accessor: Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`imask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`imask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@imask`]
module"]
pub type IMASK = crate :: Reg < imask :: IMASK_SPEC > ; # [doc = "Interrupt mask"]
pub mod imask { # [doc = "Register `IMASK` reader"]
pub type R = crate :: R < IMASK_SPEC > ; # [doc = "Register `IMASK` writer"]
pub type W = crate :: W < IMASK_SPEC > ; # [doc = "Field `IMASK_DMACH0` reader - DMA Channel 0 interrupt signal. Size counter reached zero (DMASZ=0)."]
pub type IMASK_DMACH0_R = crate :: BitReader < IMASK_DMACH0_A > ; # [doc = "DMA Channel 0 interrupt signal. Size counter reached zero (DMASZ=0).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_DMACH0_A { # [doc = "0: CLR"]
IMASK_DMACH0_CLR = 0 , # [doc = "1: SET"]
IMASK_DMACH0_SET = 1 , } impl From < IMASK_DMACH0_A > for bool { # [inline (always)]
fn from (variant : IMASK_DMACH0_A) -> Self { variant as u8 != 0 } } impl IMASK_DMACH0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_DMACH0_A { match self . bits { false => IMASK_DMACH0_A :: IMASK_DMACH0_CLR , true => IMASK_DMACH0_A :: IMASK_DMACH0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_dmach0_clr (& self) -> bool { * self == IMASK_DMACH0_A :: IMASK_DMACH0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_dmach0_set (& self) -> bool { * self == IMASK_DMACH0_A :: IMASK_DMACH0_SET } } # [doc = "Field `IMASK_DMACH0` writer - DMA Channel 0 interrupt signal. Size counter reached zero (DMASZ=0)."]
pub type IMASK_DMACH0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_DMACH0_A > ; impl < 'a , REG , const O : u8 > IMASK_DMACH0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_dmach0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_DMACH0_A :: IMASK_DMACH0_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_dmach0_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_DMACH0_A :: IMASK_DMACH0_SET) } } # [doc = "Field `IMASK_DMACH1` reader - DMA Channel 1 interrupt signal. Size counter reached zero (DMASZ=0)."]
pub type IMASK_DMACH1_R = crate :: BitReader < IMASK_DMACH1_A > ; # [doc = "DMA Channel 1 interrupt signal. Size counter reached zero (DMASZ=0).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_DMACH1_A { # [doc = "0: CLR"]
IMASK_DMACH1_CLR = 0 , # [doc = "1: SET"]
IMASK_DMACH1_SET = 1 , } impl From < IMASK_DMACH1_A > for bool { # [inline (always)]
fn from (variant : IMASK_DMACH1_A) -> Self { variant as u8 != 0 } } impl IMASK_DMACH1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_DMACH1_A { match self . bits { false => IMASK_DMACH1_A :: IMASK_DMACH1_CLR , true => IMASK_DMACH1_A :: IMASK_DMACH1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_dmach1_clr (& self) -> bool { * self == IMASK_DMACH1_A :: IMASK_DMACH1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_dmach1_set (& self) -> bool { * self == IMASK_DMACH1_A :: IMASK_DMACH1_SET } } # [doc = "Field `IMASK_DMACH1` writer - DMA Channel 1 interrupt signal. Size counter reached zero (DMASZ=0)."]
pub type IMASK_DMACH1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_DMACH1_A > ; impl < 'a , REG , const O : u8 > IMASK_DMACH1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_dmach1_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_DMACH1_A :: IMASK_DMACH1_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_dmach1_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_DMACH1_A :: IMASK_DMACH1_SET) } } # [doc = "Field `IMASK_DMACH2` reader - DMA Channel 2 interrupt signal. Size counter reached zero (DMASZ=0)."]
pub type IMASK_DMACH2_R = crate :: BitReader < IMASK_DMACH2_A > ; # [doc = "DMA Channel 2 interrupt signal. Size counter reached zero (DMASZ=0).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_DMACH2_A { # [doc = "0: CLR"]
IMASK_DMACH2_CLR = 0 , # [doc = "1: SET"]
IMASK_DMACH2_SET = 1 , } impl From < IMASK_DMACH2_A > for bool { # [inline (always)]
fn from (variant : IMASK_DMACH2_A) -> Self { variant as u8 != 0 } } impl IMASK_DMACH2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_DMACH2_A { match self . bits { false => IMASK_DMACH2_A :: IMASK_DMACH2_CLR , true => IMASK_DMACH2_A :: IMASK_DMACH2_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_dmach2_clr (& self) -> bool { * self == IMASK_DMACH2_A :: IMASK_DMACH2_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_dmach2_set (& self) -> bool { * self == IMASK_DMACH2_A :: IMASK_DMACH2_SET } } # [doc = "Field `IMASK_DMACH2` writer - DMA Channel 2 interrupt signal. Size counter reached zero (DMASZ=0)."]
pub type IMASK_DMACH2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_DMACH2_A > ; impl < 'a , REG , const O : u8 > IMASK_DMACH2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_dmach2_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_DMACH2_A :: IMASK_DMACH2_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_dmach2_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_DMACH2_A :: IMASK_DMACH2_SET) } } # [doc = "Field `IMASK_PREIRQCH0` reader - Pre-IRQ for Channel 0. Size counter reached Pre-IRQ threshold."]
pub type IMASK_PREIRQCH0_R = crate :: BitReader < IMASK_PREIRQCH0_A > ; # [doc = "Pre-IRQ for Channel 0. Size counter reached Pre-IRQ threshold.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_PREIRQCH0_A { # [doc = "0: CLR"]
IMASK_PREIRQCH0_CLR = 0 , # [doc = "1: SET"]
IMASK_PREIRQCH0_SET = 1 , } impl From < IMASK_PREIRQCH0_A > for bool { # [inline (always)]
fn from (variant : IMASK_PREIRQCH0_A) -> Self { variant as u8 != 0 } } impl IMASK_PREIRQCH0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_PREIRQCH0_A { match self . bits { false => IMASK_PREIRQCH0_A :: IMASK_PREIRQCH0_CLR , true => IMASK_PREIRQCH0_A :: IMASK_PREIRQCH0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_preirqch0_clr (& self) -> bool { * self == IMASK_PREIRQCH0_A :: IMASK_PREIRQCH0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_preirqch0_set (& self) -> bool { * self == IMASK_PREIRQCH0_A :: IMASK_PREIRQCH0_SET } } # [doc = "Field `IMASK_PREIRQCH0` writer - Pre-IRQ for Channel 0. Size counter reached Pre-IRQ threshold."]
pub type IMASK_PREIRQCH0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_PREIRQCH0_A > ; impl < 'a , REG , const O : u8 > IMASK_PREIRQCH0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_preirqch0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_PREIRQCH0_A :: IMASK_PREIRQCH0_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_preirqch0_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_PREIRQCH0_A :: IMASK_PREIRQCH0_SET) } } # [doc = "Field `IMASK_ADDRERR` reader - DMA address error, SRC address not reachable."]
pub type IMASK_ADDRERR_R = crate :: BitReader < IMASK_ADDRERR_A > ; # [doc = "DMA address error, SRC address not reachable.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_ADDRERR_A { # [doc = "0: CLR"]
IMASK_ADDRERR_CLR = 0 , # [doc = "1: SET"]
IMASK_ADDRERR_SET = 1 , } impl From < IMASK_ADDRERR_A > for bool { # [inline (always)]
fn from (variant : IMASK_ADDRERR_A) -> Self { variant as u8 != 0 } } impl IMASK_ADDRERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_ADDRERR_A { match self . bits { false => IMASK_ADDRERR_A :: IMASK_ADDRERR_CLR , true => IMASK_ADDRERR_A :: IMASK_ADDRERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_addrerr_clr (& self) -> bool { * self == IMASK_ADDRERR_A :: IMASK_ADDRERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_addrerr_set (& self) -> bool { * self == IMASK_ADDRERR_A :: IMASK_ADDRERR_SET } } # [doc = "Field `IMASK_ADDRERR` writer - DMA address error, SRC address not reachable."]
pub type IMASK_ADDRERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_ADDRERR_A > ; impl < 'a , REG , const O : u8 > IMASK_ADDRERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_addrerr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_ADDRERR_A :: IMASK_ADDRERR_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_addrerr_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_ADDRERR_A :: IMASK_ADDRERR_SET) } } # [doc = "Field `IMASK_DATAERR` reader - DMA data error, SRC data might be corrupted (PAR or ECC error)."]
pub type IMASK_DATAERR_R = crate :: BitReader < IMASK_DATAERR_A > ; # [doc = "DMA data error, SRC data might be corrupted (PAR or ECC error).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_DATAERR_A { # [doc = "0: CLR"]
IMASK_DATAERR_CLR = 0 , # [doc = "1: SET"]
IMASK_DATAERR_SET = 1 , } impl From < IMASK_DATAERR_A > for bool { # [inline (always)]
fn from (variant : IMASK_DATAERR_A) -> Self { variant as u8 != 0 } } impl IMASK_DATAERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_DATAERR_A { match self . bits { false => IMASK_DATAERR_A :: IMASK_DATAERR_CLR , true => IMASK_DATAERR_A :: IMASK_DATAERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_dataerr_clr (& self) -> bool { * self == IMASK_DATAERR_A :: IMASK_DATAERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_dataerr_set (& self) -> bool { * self == IMASK_DATAERR_A :: IMASK_DATAERR_SET } } # [doc = "Field `IMASK_DATAERR` writer - DMA data error, SRC data might be corrupted (PAR or ECC error)."]
pub type IMASK_DATAERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_DATAERR_A > ; impl < 'a , REG , const O : u8 > IMASK_DATAERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_dataerr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_DATAERR_A :: IMASK_DATAERR_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_dataerr_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_DATAERR_A :: IMASK_DATAERR_SET) } } impl R { # [doc = "Bit 0 - DMA Channel 0 interrupt signal. Size counter reached zero (DMASZ=0)."]
# [inline (always)]
pub fn imask_dmach0 (& self) -> IMASK_DMACH0_R { IMASK_DMACH0_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - DMA Channel 1 interrupt signal. Size counter reached zero (DMASZ=0)."]
# [inline (always)]
pub fn imask_dmach1 (& self) -> IMASK_DMACH1_R { IMASK_DMACH1_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - DMA Channel 2 interrupt signal. Size counter reached zero (DMASZ=0)."]
# [inline (always)]
pub fn imask_dmach2 (& self) -> IMASK_DMACH2_R { IMASK_DMACH2_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 16 - Pre-IRQ for Channel 0. Size counter reached Pre-IRQ threshold."]
# [inline (always)]
pub fn imask_preirqch0 (& self) -> IMASK_PREIRQCH0_R { IMASK_PREIRQCH0_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 24 - DMA address error, SRC address not reachable."]
# [inline (always)]
pub fn imask_addrerr (& self) -> IMASK_ADDRERR_R { IMASK_ADDRERR_R :: new (((self . bits >> 24) & 1) != 0) } # [doc = "Bit 25 - DMA data error, SRC data might be corrupted (PAR or ECC error)."]
# [inline (always)]
pub fn imask_dataerr (& self) -> IMASK_DATAERR_R { IMASK_DATAERR_R :: new (((self . bits >> 25) & 1) != 0) } } impl W { # [doc = "Bit 0 - DMA Channel 0 interrupt signal. Size counter reached zero (DMASZ=0)."]
# [inline (always)]
# [must_use]
pub fn imask_dmach0 (& mut self) -> IMASK_DMACH0_W < IMASK_SPEC , 0 > { IMASK_DMACH0_W :: new (self) } # [doc = "Bit 1 - DMA Channel 1 interrupt signal. Size counter reached zero (DMASZ=0)."]
# [inline (always)]
# [must_use]
pub fn imask_dmach1 (& mut self) -> IMASK_DMACH1_W < IMASK_SPEC , 1 > { IMASK_DMACH1_W :: new (self) } # [doc = "Bit 2 - DMA Channel 2 interrupt signal. Size counter reached zero (DMASZ=0)."]
# [inline (always)]
# [must_use]
pub fn imask_dmach2 (& mut self) -> IMASK_DMACH2_W < IMASK_SPEC , 2 > { IMASK_DMACH2_W :: new (self) } # [doc = "Bit 16 - Pre-IRQ for Channel 0. Size counter reached Pre-IRQ threshold."]
# [inline (always)]
# [must_use]
pub fn imask_preirqch0 (& mut self) -> IMASK_PREIRQCH0_W < IMASK_SPEC , 16 > { IMASK_PREIRQCH0_W :: new (self) } # [doc = "Bit 24 - DMA address error, SRC address not reachable."]
# [inline (always)]
# [must_use]
pub fn imask_addrerr (& mut self) -> IMASK_ADDRERR_W < IMASK_SPEC , 24 > { IMASK_ADDRERR_W :: new (self) } # [doc = "Bit 25 - DMA data error, SRC data might be corrupted (PAR or ECC error)."]
# [inline (always)]
# [must_use]
pub fn imask_dataerr (& mut self) -> IMASK_DATAERR_W < IMASK_SPEC , 25 > { IMASK_DATAERR_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`imask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`imask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IMASK_SPEC ; impl crate :: RegisterSpec for IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`imask::R`](R) reader structure"]
impl crate :: Readable for IMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`imask::W`](W) writer structure"]
impl crate :: Writable for IMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets IMASK to value 0"]
impl crate :: Resettable for IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RIS (r) register accessor: Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ris`]
module"]
pub type RIS = crate :: Reg < ris :: RIS_SPEC > ; # [doc = "Raw interrupt status"]
pub mod ris { # [doc = "Register `RIS` reader"]
pub type R = crate :: R < RIS_SPEC > ; # [doc = "Field `RIS_DMACH0` reader - DMA Channel 0 interrupt signals that size counter reached zero (DMASZ=0)."]
pub type RIS_DMACH0_R = crate :: BitReader < RIS_DMACH0_A > ; # [doc = "DMA Channel 0 interrupt signals that size counter reached zero (DMASZ=0).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_DMACH0_A { # [doc = "0: CLR"]
RIS_DMACH0_CLR = 0 , # [doc = "1: SET"]
RIS_DMACH0_SET = 1 , } impl From < RIS_DMACH0_A > for bool { # [inline (always)]
fn from (variant : RIS_DMACH0_A) -> Self { variant as u8 != 0 } } impl RIS_DMACH0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_DMACH0_A { match self . bits { false => RIS_DMACH0_A :: RIS_DMACH0_CLR , true => RIS_DMACH0_A :: RIS_DMACH0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_dmach0_clr (& self) -> bool { * self == RIS_DMACH0_A :: RIS_DMACH0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_dmach0_set (& self) -> bool { * self == RIS_DMACH0_A :: RIS_DMACH0_SET } } # [doc = "Field `RIS_DMACH1` reader - DMA Channel 1 interrupt signals that size counter reached zero (DMASZ=0)."]
pub type RIS_DMACH1_R = crate :: BitReader < RIS_DMACH1_A > ; # [doc = "DMA Channel 1 interrupt signals that size counter reached zero (DMASZ=0).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_DMACH1_A { # [doc = "0: CLR"]
RIS_DMACH1_CLR = 0 , # [doc = "1: SET"]
RIS_DMACH1_SET = 1 , } impl From < RIS_DMACH1_A > for bool { # [inline (always)]
fn from (variant : RIS_DMACH1_A) -> Self { variant as u8 != 0 } } impl RIS_DMACH1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_DMACH1_A { match self . bits { false => RIS_DMACH1_A :: RIS_DMACH1_CLR , true => RIS_DMACH1_A :: RIS_DMACH1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_dmach1_clr (& self) -> bool { * self == RIS_DMACH1_A :: RIS_DMACH1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_dmach1_set (& self) -> bool { * self == RIS_DMACH1_A :: RIS_DMACH1_SET } } # [doc = "Field `RIS_DMACH2` reader - DMA Channel 2 interrupt signals that size counter reached zero (DMASZ=0)."]
pub type RIS_DMACH2_R = crate :: BitReader < RIS_DMACH2_A > ; # [doc = "DMA Channel 2 interrupt signals that size counter reached zero (DMASZ=0).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_DMACH2_A { # [doc = "0: CLR"]
RIS_DMACH2_CLR = 0 , # [doc = "1: SET"]
RIS_DMACH2_SET = 1 , } impl From < RIS_DMACH2_A > for bool { # [inline (always)]
fn from (variant : RIS_DMACH2_A) -> Self { variant as u8 != 0 } } impl RIS_DMACH2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_DMACH2_A { match self . bits { false => RIS_DMACH2_A :: RIS_DMACH2_CLR , true => RIS_DMACH2_A :: RIS_DMACH2_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_dmach2_clr (& self) -> bool { * self == RIS_DMACH2_A :: RIS_DMACH2_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_dmach2_set (& self) -> bool { * self == RIS_DMACH2_A :: RIS_DMACH2_SET } } # [doc = "Field `RIS_PREIRQCH0` reader - Pre-IRQ for Channel 0. Size counter reached Pre-IRQ threshold."]
pub type RIS_PREIRQCH0_R = crate :: BitReader < RIS_PREIRQCH0_A > ; # [doc = "Pre-IRQ for Channel 0. Size counter reached Pre-IRQ threshold.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_PREIRQCH0_A { # [doc = "0: CLR"]
RIS_PREIRQCH0_CLR = 0 , # [doc = "1: SET"]
RIS_PREIRQCH0_SET = 1 , } impl From < RIS_PREIRQCH0_A > for bool { # [inline (always)]
fn from (variant : RIS_PREIRQCH0_A) -> Self { variant as u8 != 0 } } impl RIS_PREIRQCH0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_PREIRQCH0_A { match self . bits { false => RIS_PREIRQCH0_A :: RIS_PREIRQCH0_CLR , true => RIS_PREIRQCH0_A :: RIS_PREIRQCH0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_preirqch0_clr (& self) -> bool { * self == RIS_PREIRQCH0_A :: RIS_PREIRQCH0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_preirqch0_set (& self) -> bool { * self == RIS_PREIRQCH0_A :: RIS_PREIRQCH0_SET } } # [doc = "Field `RIS_ADDRERR` reader - DMA address error, SRC address not reachable."]
pub type RIS_ADDRERR_R = crate :: BitReader < RIS_ADDRERR_A > ; # [doc = "DMA address error, SRC address not reachable.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_ADDRERR_A { # [doc = "0: CLR"]
RIS_ADDRERR_CLR = 0 , # [doc = "1: SET"]
RIS_ADDRERR_SET = 1 , } impl From < RIS_ADDRERR_A > for bool { # [inline (always)]
fn from (variant : RIS_ADDRERR_A) -> Self { variant as u8 != 0 } } impl RIS_ADDRERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_ADDRERR_A { match self . bits { false => RIS_ADDRERR_A :: RIS_ADDRERR_CLR , true => RIS_ADDRERR_A :: RIS_ADDRERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_addrerr_clr (& self) -> bool { * self == RIS_ADDRERR_A :: RIS_ADDRERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_addrerr_set (& self) -> bool { * self == RIS_ADDRERR_A :: RIS_ADDRERR_SET } } # [doc = "Field `RIS_DATAERR` reader - DMA data error, SRC data might be corrupted (PAR or ECC error)."]
pub type RIS_DATAERR_R = crate :: BitReader < RIS_DATAERR_A > ; # [doc = "DMA data error, SRC data might be corrupted (PAR or ECC error).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_DATAERR_A { # [doc = "0: CLR"]
RIS_DATAERR_CLR = 0 , # [doc = "1: SET"]
RIS_DATAERR_SET = 1 , } impl From < RIS_DATAERR_A > for bool { # [inline (always)]
fn from (variant : RIS_DATAERR_A) -> Self { variant as u8 != 0 } } impl RIS_DATAERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_DATAERR_A { match self . bits { false => RIS_DATAERR_A :: RIS_DATAERR_CLR , true => RIS_DATAERR_A :: RIS_DATAERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_dataerr_clr (& self) -> bool { * self == RIS_DATAERR_A :: RIS_DATAERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_dataerr_set (& self) -> bool { * self == RIS_DATAERR_A :: RIS_DATAERR_SET } } impl R { # [doc = "Bit 0 - DMA Channel 0 interrupt signals that size counter reached zero (DMASZ=0)."]
# [inline (always)]
pub fn ris_dmach0 (& self) -> RIS_DMACH0_R { RIS_DMACH0_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - DMA Channel 1 interrupt signals that size counter reached zero (DMASZ=0)."]
# [inline (always)]
pub fn ris_dmach1 (& self) -> RIS_DMACH1_R { RIS_DMACH1_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - DMA Channel 2 interrupt signals that size counter reached zero (DMASZ=0)."]
# [inline (always)]
pub fn ris_dmach2 (& self) -> RIS_DMACH2_R { RIS_DMACH2_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 16 - Pre-IRQ for Channel 0. Size counter reached Pre-IRQ threshold."]
# [inline (always)]
pub fn ris_preirqch0 (& self) -> RIS_PREIRQCH0_R { RIS_PREIRQCH0_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 24 - DMA address error, SRC address not reachable."]
# [inline (always)]
pub fn ris_addrerr (& self) -> RIS_ADDRERR_R { RIS_ADDRERR_R :: new (((self . bits >> 24) & 1) != 0) } # [doc = "Bit 25 - DMA data error, SRC data might be corrupted (PAR or ECC error)."]
# [inline (always)]
pub fn ris_dataerr (& self) -> RIS_DATAERR_R { RIS_DATAERR_R :: new (((self . bits >> 25) & 1) != 0) } } # [doc = "Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RIS_SPEC ; impl crate :: RegisterSpec for RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ris::R`](R) reader structure"]
impl crate :: Readable for RIS_SPEC { } # [doc = "`reset()` method sets RIS to value 0"]
impl crate :: Resettable for RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "MIS (r) register accessor: Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mis`]
module"]
pub type MIS = crate :: Reg < mis :: MIS_SPEC > ; # [doc = "Masked interrupt status"]
pub mod mis { # [doc = "Register `MIS` reader"]
pub type R = crate :: R < MIS_SPEC > ; # [doc = "Field `MIS_DMACH0` reader - DMA Channel 0 interrupt signals that size counter reached zero (DMASZ=0)."]
pub type MIS_DMACH0_R = crate :: BitReader < MIS_DMACH0_A > ; # [doc = "DMA Channel 0 interrupt signals that size counter reached zero (DMASZ=0).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_DMACH0_A { # [doc = "0: CLR"]
MIS_DMACH0_CLR = 0 , # [doc = "1: SET"]
MIS_DMACH0_SET = 1 , } impl From < MIS_DMACH0_A > for bool { # [inline (always)]
fn from (variant : MIS_DMACH0_A) -> Self { variant as u8 != 0 } } impl MIS_DMACH0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_DMACH0_A { match self . bits { false => MIS_DMACH0_A :: MIS_DMACH0_CLR , true => MIS_DMACH0_A :: MIS_DMACH0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_dmach0_clr (& self) -> bool { * self == MIS_DMACH0_A :: MIS_DMACH0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_dmach0_set (& self) -> bool { * self == MIS_DMACH0_A :: MIS_DMACH0_SET } } # [doc = "Field `MIS_DMACH1` reader - DMA Channel 1 interrupt signals that size counter reached zero (DMASZ=0)."]
pub type MIS_DMACH1_R = crate :: BitReader < MIS_DMACH1_A > ; # [doc = "DMA Channel 1 interrupt signals that size counter reached zero (DMASZ=0).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_DMACH1_A { # [doc = "0: CLR"]
MIS_DMACH1_CLR = 0 , # [doc = "1: SET"]
MIS_DMACH1_SET = 1 , } impl From < MIS_DMACH1_A > for bool { # [inline (always)]
fn from (variant : MIS_DMACH1_A) -> Self { variant as u8 != 0 } } impl MIS_DMACH1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_DMACH1_A { match self . bits { false => MIS_DMACH1_A :: MIS_DMACH1_CLR , true => MIS_DMACH1_A :: MIS_DMACH1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_dmach1_clr (& self) -> bool { * self == MIS_DMACH1_A :: MIS_DMACH1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_dmach1_set (& self) -> bool { * self == MIS_DMACH1_A :: MIS_DMACH1_SET } } # [doc = "Field `MIS_DMACH2` reader - DMA Channel 2 interrupt signals that size counter reached zero (DMASZ=0)."]
pub type MIS_DMACH2_R = crate :: BitReader < MIS_DMACH2_A > ; # [doc = "DMA Channel 2 interrupt signals that size counter reached zero (DMASZ=0).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_DMACH2_A { # [doc = "0: CLR"]
MIS_DMACH2_CLR = 0 , # [doc = "1: SET"]
MIS_DMACH2_SET = 1 , } impl From < MIS_DMACH2_A > for bool { # [inline (always)]
fn from (variant : MIS_DMACH2_A) -> Self { variant as u8 != 0 } } impl MIS_DMACH2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_DMACH2_A { match self . bits { false => MIS_DMACH2_A :: MIS_DMACH2_CLR , true => MIS_DMACH2_A :: MIS_DMACH2_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_dmach2_clr (& self) -> bool { * self == MIS_DMACH2_A :: MIS_DMACH2_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_dmach2_set (& self) -> bool { * self == MIS_DMACH2_A :: MIS_DMACH2_SET } } # [doc = "Field `MIS_PREIRQCH0` reader - Pre-IRQ for Channel 0. Size counter reached Pre-IRQ threshold."]
pub type MIS_PREIRQCH0_R = crate :: BitReader < MIS_PREIRQCH0_A > ; # [doc = "Pre-IRQ for Channel 0. Size counter reached Pre-IRQ threshold.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_PREIRQCH0_A { # [doc = "0: CLR"]
MIS_PREIRQCH0_CLR = 0 , # [doc = "1: SET"]
MIS_PREIRQCH0_SET = 1 , } impl From < MIS_PREIRQCH0_A > for bool { # [inline (always)]
fn from (variant : MIS_PREIRQCH0_A) -> Self { variant as u8 != 0 } } impl MIS_PREIRQCH0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_PREIRQCH0_A { match self . bits { false => MIS_PREIRQCH0_A :: MIS_PREIRQCH0_CLR , true => MIS_PREIRQCH0_A :: MIS_PREIRQCH0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_preirqch0_clr (& self) -> bool { * self == MIS_PREIRQCH0_A :: MIS_PREIRQCH0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_preirqch0_set (& self) -> bool { * self == MIS_PREIRQCH0_A :: MIS_PREIRQCH0_SET } } # [doc = "Field `MIS_ADDRERR` reader - DMA address error, SRC address not reachable."]
pub type MIS_ADDRERR_R = crate :: BitReader < MIS_ADDRERR_A > ; # [doc = "DMA address error, SRC address not reachable.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_ADDRERR_A { # [doc = "0: CLR"]
MIS_ADDRERR_CLR = 0 , # [doc = "1: SET"]
MIS_ADDRERR_SET = 1 , } impl From < MIS_ADDRERR_A > for bool { # [inline (always)]
fn from (variant : MIS_ADDRERR_A) -> Self { variant as u8 != 0 } } impl MIS_ADDRERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_ADDRERR_A { match self . bits { false => MIS_ADDRERR_A :: MIS_ADDRERR_CLR , true => MIS_ADDRERR_A :: MIS_ADDRERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_addrerr_clr (& self) -> bool { * self == MIS_ADDRERR_A :: MIS_ADDRERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_addrerr_set (& self) -> bool { * self == MIS_ADDRERR_A :: MIS_ADDRERR_SET } } # [doc = "Field `MIS_DATAERR` reader - DMA data error, SRC data might be corrupted (PAR or ECC error)."]
pub type MIS_DATAERR_R = crate :: BitReader < MIS_DATAERR_A > ; # [doc = "DMA data error, SRC data might be corrupted (PAR or ECC error).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_DATAERR_A { # [doc = "0: CLR"]
MIS_DATAERR_CLR = 0 , # [doc = "1: SET"]
MIS_DATAERR_SET = 1 , } impl From < MIS_DATAERR_A > for bool { # [inline (always)]
fn from (variant : MIS_DATAERR_A) -> Self { variant as u8 != 0 } } impl MIS_DATAERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_DATAERR_A { match self . bits { false => MIS_DATAERR_A :: MIS_DATAERR_CLR , true => MIS_DATAERR_A :: MIS_DATAERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_dataerr_clr (& self) -> bool { * self == MIS_DATAERR_A :: MIS_DATAERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_dataerr_set (& self) -> bool { * self == MIS_DATAERR_A :: MIS_DATAERR_SET } } impl R { # [doc = "Bit 0 - DMA Channel 0 interrupt signals that size counter reached zero (DMASZ=0)."]
# [inline (always)]
pub fn mis_dmach0 (& self) -> MIS_DMACH0_R { MIS_DMACH0_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - DMA Channel 1 interrupt signals that size counter reached zero (DMASZ=0)."]
# [inline (always)]
pub fn mis_dmach1 (& self) -> MIS_DMACH1_R { MIS_DMACH1_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - DMA Channel 2 interrupt signals that size counter reached zero (DMASZ=0)."]
# [inline (always)]
pub fn mis_dmach2 (& self) -> MIS_DMACH2_R { MIS_DMACH2_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 16 - Pre-IRQ for Channel 0. Size counter reached Pre-IRQ threshold."]
# [inline (always)]
pub fn mis_preirqch0 (& self) -> MIS_PREIRQCH0_R { MIS_PREIRQCH0_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 24 - DMA address error, SRC address not reachable."]
# [inline (always)]
pub fn mis_addrerr (& self) -> MIS_ADDRERR_R { MIS_ADDRERR_R :: new (((self . bits >> 24) & 1) != 0) } # [doc = "Bit 25 - DMA data error, SRC data might be corrupted (PAR or ECC error)."]
# [inline (always)]
pub fn mis_dataerr (& self) -> MIS_DATAERR_R { MIS_DATAERR_R :: new (((self . bits >> 25) & 1) != 0) } } # [doc = "Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MIS_SPEC ; impl crate :: RegisterSpec for MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`mis::R`](R) reader structure"]
impl crate :: Readable for MIS_SPEC { } # [doc = "`reset()` method sets MIS to value 0"]
impl crate :: Resettable for MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "ISET (w) register accessor: Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@iset`]
module"]
pub type ISET = crate :: Reg < iset :: ISET_SPEC > ; # [doc = "Interrupt set"]
pub mod iset { # [doc = "Register `ISET` writer"]
pub type W = crate :: W < ISET_SPEC > ; # [doc = "DMA Channel 0 interrupt signals that size counter reached zero (DMASZ=0).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_DMACH0_AW { # [doc = "0: NO_EFFECT"]
ISET_DMACH0_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_DMACH0_SET = 1 , } impl From < ISET_DMACH0_AW > for bool { # [inline (always)]
fn from (variant : ISET_DMACH0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_DMACH0` writer - DMA Channel 0 interrupt signals that size counter reached zero (DMASZ=0)."]
pub type ISET_DMACH0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_DMACH0_AW > ; impl < 'a , REG , const O : u8 > ISET_DMACH0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_dmach0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_DMACH0_AW :: ISET_DMACH0_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_dmach0_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_DMACH0_AW :: ISET_DMACH0_SET) } } # [doc = "DMA Channel 1 interrupt signals that size counter reached zero (DMASZ=0).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_DMACH1_AW { # [doc = "0: NO_EFFECT"]
ISET_DMACH1_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_DMACH1_SET = 1 , } impl From < ISET_DMACH1_AW > for bool { # [inline (always)]
fn from (variant : ISET_DMACH1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_DMACH1` writer - DMA Channel 1 interrupt signals that size counter reached zero (DMASZ=0)."]
pub type ISET_DMACH1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_DMACH1_AW > ; impl < 'a , REG , const O : u8 > ISET_DMACH1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_dmach1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_DMACH1_AW :: ISET_DMACH1_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_dmach1_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_DMACH1_AW :: ISET_DMACH1_SET) } } # [doc = "DMA Channel 2 interrupt signals that size counter reached zero (DMASZ=0).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_DMACH2_AW { # [doc = "0: NO_EFFECT"]
ISET_DMACH2_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_DMACH2_SET = 1 , } impl From < ISET_DMACH2_AW > for bool { # [inline (always)]
fn from (variant : ISET_DMACH2_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_DMACH2` writer - DMA Channel 2 interrupt signals that size counter reached zero (DMASZ=0)."]
pub type ISET_DMACH2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_DMACH2_AW > ; impl < 'a , REG , const O : u8 > ISET_DMACH2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_dmach2_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_DMACH2_AW :: ISET_DMACH2_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_dmach2_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_DMACH2_AW :: ISET_DMACH2_SET) } } # [doc = "Pre-IRQ for Channel 0. Size counter reached Pre-IRQ threshold.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_PREIRQCH0_AW { # [doc = "0: CLR"]
ISET_PREIRQCH0_CLR = 0 , # [doc = "1: SET"]
ISET_PREIRQCH0_SET = 1 , } impl From < ISET_PREIRQCH0_AW > for bool { # [inline (always)]
fn from (variant : ISET_PREIRQCH0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_PREIRQCH0` writer - Pre-IRQ for Channel 0. Size counter reached Pre-IRQ threshold."]
pub type ISET_PREIRQCH0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_PREIRQCH0_AW > ; impl < 'a , REG , const O : u8 > ISET_PREIRQCH0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn iset_preirqch0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_PREIRQCH0_AW :: ISET_PREIRQCH0_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn iset_preirqch0_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_PREIRQCH0_AW :: ISET_PREIRQCH0_SET) } } # [doc = "DMA address error, SRC address not reachable.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_ADDRERR_AW { # [doc = "0: CLR"]
ISET_ADDRERR_CLR = 0 , # [doc = "1: SET"]
ISET_ADDRERR_SET = 1 , } impl From < ISET_ADDRERR_AW > for bool { # [inline (always)]
fn from (variant : ISET_ADDRERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_ADDRERR` writer - DMA address error, SRC address not reachable."]
pub type ISET_ADDRERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_ADDRERR_AW > ; impl < 'a , REG , const O : u8 > ISET_ADDRERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn iset_addrerr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_ADDRERR_AW :: ISET_ADDRERR_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn iset_addrerr_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_ADDRERR_AW :: ISET_ADDRERR_SET) } } # [doc = "DMA data error, SRC data might be corrupted (PAR or ECC error).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_DATAERR_AW { # [doc = "0: CLR"]
ISET_DATAERR_CLR = 0 , # [doc = "1: SET"]
ISET_DATAERR_SET = 1 , } impl From < ISET_DATAERR_AW > for bool { # [inline (always)]
fn from (variant : ISET_DATAERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_DATAERR` writer - DMA data error, SRC data might be corrupted (PAR or ECC error)."]
pub type ISET_DATAERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_DATAERR_AW > ; impl < 'a , REG , const O : u8 > ISET_DATAERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn iset_dataerr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_DATAERR_AW :: ISET_DATAERR_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn iset_dataerr_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_DATAERR_AW :: ISET_DATAERR_SET) } } impl W { # [doc = "Bit 0 - DMA Channel 0 interrupt signals that size counter reached zero (DMASZ=0)."]
# [inline (always)]
# [must_use]
pub fn iset_dmach0 (& mut self) -> ISET_DMACH0_W < ISET_SPEC , 0 > { ISET_DMACH0_W :: new (self) } # [doc = "Bit 1 - DMA Channel 1 interrupt signals that size counter reached zero (DMASZ=0)."]
# [inline (always)]
# [must_use]
pub fn iset_dmach1 (& mut self) -> ISET_DMACH1_W < ISET_SPEC , 1 > { ISET_DMACH1_W :: new (self) } # [doc = "Bit 2 - DMA Channel 2 interrupt signals that size counter reached zero (DMASZ=0)."]
# [inline (always)]
# [must_use]
pub fn iset_dmach2 (& mut self) -> ISET_DMACH2_W < ISET_SPEC , 2 > { ISET_DMACH2_W :: new (self) } # [doc = "Bit 16 - Pre-IRQ for Channel 0. Size counter reached Pre-IRQ threshold."]
# [inline (always)]
# [must_use]
pub fn iset_preirqch0 (& mut self) -> ISET_PREIRQCH0_W < ISET_SPEC , 16 > { ISET_PREIRQCH0_W :: new (self) } # [doc = "Bit 24 - DMA address error, SRC address not reachable."]
# [inline (always)]
# [must_use]
pub fn iset_addrerr (& mut self) -> ISET_ADDRERR_W < ISET_SPEC , 24 > { ISET_ADDRERR_W :: new (self) } # [doc = "Bit 25 - DMA data error, SRC data might be corrupted (PAR or ECC error)."]
# [inline (always)]
# [must_use]
pub fn iset_dataerr (& mut self) -> ISET_DATAERR_W < ISET_SPEC , 25 > { ISET_DATAERR_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ISET_SPEC ; impl crate :: RegisterSpec for ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`iset::W`](W) writer structure"]
impl crate :: Writable for ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets ISET to value 0"]
impl crate :: Resettable for ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "ICLR (w) register accessor: Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@iclr`]
module"]
pub type ICLR = crate :: Reg < iclr :: ICLR_SPEC > ; # [doc = "Interrupt clear"]
pub mod iclr { # [doc = "Register `ICLR` writer"]
pub type W = crate :: W < ICLR_SPEC > ; # [doc = "DMA Channel 0 interrupt signals that size counter reached zero (DMASZ=0).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_DMACH0_AW { # [doc = "0: NO_EFFECT"]
ICLR_DMACH0_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_DMACH0_CLR = 1 , } impl From < ICLR_DMACH0_AW > for bool { # [inline (always)]
fn from (variant : ICLR_DMACH0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_DMACH0` writer - DMA Channel 0 interrupt signals that size counter reached zero (DMASZ=0)."]
pub type ICLR_DMACH0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_DMACH0_AW > ; impl < 'a , REG , const O : u8 > ICLR_DMACH0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_dmach0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_DMACH0_AW :: ICLR_DMACH0_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_dmach0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_DMACH0_AW :: ICLR_DMACH0_CLR) } } # [doc = "DMA Channel 1 interrupt signals that size counter reached zero (DMASZ=0).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_DMACH1_AW { # [doc = "0: NO_EFFECT"]
ICLR_DMACH1_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_DMACH1_CLR = 1 , } impl From < ICLR_DMACH1_AW > for bool { # [inline (always)]
fn from (variant : ICLR_DMACH1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_DMACH1` writer - DMA Channel 1 interrupt signals that size counter reached zero (DMASZ=0)."]
pub type ICLR_DMACH1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_DMACH1_AW > ; impl < 'a , REG , const O : u8 > ICLR_DMACH1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_dmach1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_DMACH1_AW :: ICLR_DMACH1_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_dmach1_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_DMACH1_AW :: ICLR_DMACH1_CLR) } } # [doc = "DMA Channel 2 interrupt signals that size counter reached zero (DMASZ=0).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_DMACH2_AW { # [doc = "0: NO_EFFECT"]
ICLR_DMACH2_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_DMACH2_CLR = 1 , } impl From < ICLR_DMACH2_AW > for bool { # [inline (always)]
fn from (variant : ICLR_DMACH2_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_DMACH2` writer - DMA Channel 2 interrupt signals that size counter reached zero (DMASZ=0)."]
pub type ICLR_DMACH2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_DMACH2_AW > ; impl < 'a , REG , const O : u8 > ICLR_DMACH2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_dmach2_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_DMACH2_AW :: ICLR_DMACH2_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_dmach2_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_DMACH2_AW :: ICLR_DMACH2_CLR) } } # [doc = "Pre-IRQ for Channel 0. Size counter reached Pre-IRQ threshold.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_PREIRQCH0_AW { # [doc = "0: CLR"]
ICLR_PREIRQCH0_CLR = 0 , # [doc = "1: SET"]
ICLR_PREIRQCH0_SET = 1 , } impl From < ICLR_PREIRQCH0_AW > for bool { # [inline (always)]
fn from (variant : ICLR_PREIRQCH0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_PREIRQCH0` writer - Pre-IRQ for Channel 0. Size counter reached Pre-IRQ threshold."]
pub type ICLR_PREIRQCH0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_PREIRQCH0_AW > ; impl < 'a , REG , const O : u8 > ICLR_PREIRQCH0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn iclr_preirqch0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_PREIRQCH0_AW :: ICLR_PREIRQCH0_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn iclr_preirqch0_set (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_PREIRQCH0_AW :: ICLR_PREIRQCH0_SET) } } # [doc = "DMA address error, SRC address not reachable.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_ADDRERR_AW { # [doc = "0: CLR"]
ICLR_ADDRERR_CLR = 0 , # [doc = "1: SET"]
ICLR_ADDRERR_SET = 1 , } impl From < ICLR_ADDRERR_AW > for bool { # [inline (always)]
fn from (variant : ICLR_ADDRERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_ADDRERR` writer - DMA address error, SRC address not reachable."]
pub type ICLR_ADDRERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_ADDRERR_AW > ; impl < 'a , REG , const O : u8 > ICLR_ADDRERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn iclr_addrerr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_ADDRERR_AW :: ICLR_ADDRERR_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn iclr_addrerr_set (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_ADDRERR_AW :: ICLR_ADDRERR_SET) } } # [doc = "DMA data error, SRC data might be corrupted (PAR or ECC error).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_DATAERR_AW { # [doc = "0: CLR"]
ICLR_DATAERR_CLR = 0 , # [doc = "1: SET"]
ICLR_DATAERR_SET = 1 , } impl From < ICLR_DATAERR_AW > for bool { # [inline (always)]
fn from (variant : ICLR_DATAERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_DATAERR` writer - DMA data error, SRC data might be corrupted (PAR or ECC error)."]
pub type ICLR_DATAERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_DATAERR_AW > ; impl < 'a , REG , const O : u8 > ICLR_DATAERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn iclr_dataerr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_DATAERR_AW :: ICLR_DATAERR_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn iclr_dataerr_set (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_DATAERR_AW :: ICLR_DATAERR_SET) } } impl W { # [doc = "Bit 0 - DMA Channel 0 interrupt signals that size counter reached zero (DMASZ=0)."]
# [inline (always)]
# [must_use]
pub fn iclr_dmach0 (& mut self) -> ICLR_DMACH0_W < ICLR_SPEC , 0 > { ICLR_DMACH0_W :: new (self) } # [doc = "Bit 1 - DMA Channel 1 interrupt signals that size counter reached zero (DMASZ=0)."]
# [inline (always)]
# [must_use]
pub fn iclr_dmach1 (& mut self) -> ICLR_DMACH1_W < ICLR_SPEC , 1 > { ICLR_DMACH1_W :: new (self) } # [doc = "Bit 2 - DMA Channel 2 interrupt signals that size counter reached zero (DMASZ=0)."]
# [inline (always)]
# [must_use]
pub fn iclr_dmach2 (& mut self) -> ICLR_DMACH2_W < ICLR_SPEC , 2 > { ICLR_DMACH2_W :: new (self) } # [doc = "Bit 16 - Pre-IRQ for Channel 0. Size counter reached Pre-IRQ threshold."]
# [inline (always)]
# [must_use]
pub fn iclr_preirqch0 (& mut self) -> ICLR_PREIRQCH0_W < ICLR_SPEC , 16 > { ICLR_PREIRQCH0_W :: new (self) } # [doc = "Bit 24 - DMA address error, SRC address not reachable."]
# [inline (always)]
# [must_use]
pub fn iclr_addrerr (& mut self) -> ICLR_ADDRERR_W < ICLR_SPEC , 24 > { ICLR_ADDRERR_W :: new (self) } # [doc = "Bit 25 - DMA data error, SRC data might be corrupted (PAR or ECC error)."]
# [inline (always)]
# [must_use]
pub fn iclr_dataerr (& mut self) -> ICLR_DATAERR_W < ICLR_SPEC , 25 > { ICLR_DATAERR_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ICLR_SPEC ; impl crate :: RegisterSpec for ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`iclr::W`](W) writer structure"]
impl crate :: Writable for ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets ICLR to value 0"]
impl crate :: Resettable for ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "EVT_MODE (rw) register accessor: Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`evt_mode::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@evt_mode`]
module"]
pub type EVT_MODE = crate :: Reg < evt_mode :: EVT_MODE_SPEC > ; # [doc = "Event Mode"]
pub mod evt_mode { # [doc = "Register `EVT_MODE` reader"]
pub type R = crate :: R < EVT_MODE_SPEC > ; # [doc = "Register `EVT_MODE` writer"]
pub type W = crate :: W < EVT_MODE_SPEC > ; # [doc = "Field `EVT_MODE_INT0_CFG` reader - Event line mode select for event corresponding to interrupt event INT_EVENT\\[0\\]"]
pub type EVT_MODE_INT0_CFG_R = crate :: FieldReader < EVT_MODE_INT0_CFG_A > ; # [doc = "Event line mode select for event corresponding to interrupt event INT_EVENT\\[0\\]\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_INT0_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_INT0_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_INT0_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_INT0_CFG_HARDWARE = 2 , } impl From < EVT_MODE_INT0_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_INT0_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_INT0_CFG_A { type Ux = u8 ; } impl EVT_MODE_INT0_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_INT0_CFG_A > { match self . bits { 0 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_DISABLE) , 1 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_SOFTWARE) , 2 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_disable (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_software (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_hardware (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_HARDWARE } } # [doc = "Field `EVT_MODE_EVT1_CFG` reader - Event line mode select for event corresponding to generic event INT_EVENT\\[1\\]"]
pub type EVT_MODE_EVT1_CFG_R = crate :: FieldReader < EVT_MODE_EVT1_CFG_A > ; # [doc = "Event line mode select for event corresponding to generic event INT_EVENT\\[1\\]\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_EVT1_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_EVT1_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_EVT1_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_EVT1_CFG_HARDWARE = 2 , } impl From < EVT_MODE_EVT1_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_EVT1_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_EVT1_CFG_A { type Ux = u8 ; } impl EVT_MODE_EVT1_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_EVT1_CFG_A > { match self . bits { 0 => Some (EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_DISABLE) , 1 => Some (EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_SOFTWARE) , 2 => Some (EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_evt1_cfg_disable (& self) -> bool { * self == EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_evt1_cfg_software (& self) -> bool { * self == EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_evt1_cfg_hardware (& self) -> bool { * self == EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_HARDWARE } } impl R { # [doc = "Bits 0:1 - Event line mode select for event corresponding to interrupt event INT_EVENT\\[0\\]"]
# [inline (always)]
pub fn evt_mode_int0_cfg (& self) -> EVT_MODE_INT0_CFG_R { EVT_MODE_INT0_CFG_R :: new ((self . bits & 3) as u8) } # [doc = "Bits 2:3 - Event line mode select for event corresponding to generic event INT_EVENT\\[1\\]"]
# [inline (always)]
pub fn evt_mode_evt1_cfg (& self) -> EVT_MODE_EVT1_CFG_R { EVT_MODE_EVT1_CFG_R :: new (((self . bits >> 2) & 3) as u8) } } impl W { # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`evt_mode::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct EVT_MODE_SPEC ; impl crate :: RegisterSpec for EVT_MODE_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`evt_mode::R`](R) reader structure"]
impl crate :: Readable for EVT_MODE_SPEC { } # [doc = "`write(|w| ..)` method takes [`evt_mode::W`](W) writer structure"]
impl crate :: Writable for EVT_MODE_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets EVT_MODE to value 0"]
impl crate :: Resettable for EVT_MODE_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DESC (r) register accessor: Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@desc`]
module"]
pub type DESC = crate :: Reg < desc :: DESC_SPEC > ; # [doc = "Module Description"]
pub mod desc { # [doc = "Register `DESC` reader"]
pub type R = crate :: R < DESC_SPEC > ; # [doc = "Field `DESC_MINREV` reader - Minor rev of the IP"]
pub type DESC_MINREV_R = crate :: FieldReader ; # [doc = "Field `DESC_MAJREV` reader - Major rev of the IP"]
pub type DESC_MAJREV_R = crate :: FieldReader ; # [doc = "Field `DESC_FEATUREVER` reader - Feature Set for the DMA: number of DMA channel minus one (e.g. 0-&amp;gt;1ch, 2-&amp;gt;3ch, 15-&amp;gt;16ch)."]
pub type DESC_FEATUREVER_R = crate :: FieldReader ; # [doc = "Field `DESC_MODULEID` reader - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
pub type DESC_MODULEID_R = crate :: FieldReader < u16 > ; impl R { # [doc = "Bits 0:3 - Minor rev of the IP"]
# [inline (always)]
pub fn desc_minrev (& self) -> DESC_MINREV_R { DESC_MINREV_R :: new ((self . bits & 0x0f) as u8) } # [doc = "Bits 4:7 - Major rev of the IP"]
# [inline (always)]
pub fn desc_majrev (& self) -> DESC_MAJREV_R { DESC_MAJREV_R :: new (((self . bits >> 4) & 0x0f) as u8) } # [doc = "Bits 12:15 - Feature Set for the DMA: number of DMA channel minus one (e.g. 0-&amp;gt;1ch, 2-&amp;gt;3ch, 15-&amp;gt;16ch)."]
# [inline (always)]
pub fn desc_featurever (& self) -> DESC_FEATUREVER_R { DESC_FEATUREVER_R :: new (((self . bits >> 12) & 0x0f) as u8) } # [doc = "Bits 16:31 - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
# [inline (always)]
pub fn desc_moduleid (& self) -> DESC_MODULEID_R { DESC_MODULEID_R :: new (((self . bits >> 16) & 0xffff) as u16) } } # [doc = "Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DESC_SPEC ; impl crate :: RegisterSpec for DESC_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`desc::R`](R) reader structure"]
impl crate :: Readable for DESC_SPEC { } # [doc = "`reset()` method sets DESC to value 0"]
impl crate :: Resettable for DESC_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DMAPRIO (rw) register accessor: DMA Channel Priority Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`dmaprio::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dmaprio::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dmaprio`]
module"]
pub type DMAPRIO = crate :: Reg < dmaprio :: DMAPRIO_SPEC > ; # [doc = "DMA Channel Priority Control"]
pub mod dmaprio { # [doc = "Register `DMAPRIO` reader"]
pub type R = crate :: R < DMAPRIO_SPEC > ; # [doc = "Register `DMAPRIO` writer"]
pub type W = crate :: W < DMAPRIO_SPEC > ; # [doc = "Field `DMAPRIO_ROUNDROBIN` reader - Round robin. This bit enables the round-robin DMA channel priorities."]
pub type DMAPRIO_ROUNDROBIN_R = crate :: BitReader < DMAPRIO_ROUNDROBIN_A > ; # [doc = "Round robin. This bit enables the round-robin DMA channel priorities.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMAPRIO_ROUNDROBIN_A { # [doc = "0: DISABLE"]
DMAPRIO_ROUNDROBIN_DISABLE = 0 , # [doc = "1: ENABLE"]
DMAPRIO_ROUNDROBIN_ENABLE = 1 , } impl From < DMAPRIO_ROUNDROBIN_A > for bool { # [inline (always)]
fn from (variant : DMAPRIO_ROUNDROBIN_A) -> Self { variant as u8 != 0 } } impl DMAPRIO_ROUNDROBIN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAPRIO_ROUNDROBIN_A { match self . bits { false => DMAPRIO_ROUNDROBIN_A :: DMAPRIO_ROUNDROBIN_DISABLE , true => DMAPRIO_ROUNDROBIN_A :: DMAPRIO_ROUNDROBIN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmaprio_roundrobin_disable (& self) -> bool { * self == DMAPRIO_ROUNDROBIN_A :: DMAPRIO_ROUNDROBIN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmaprio_roundrobin_enable (& self) -> bool { * self == DMAPRIO_ROUNDROBIN_A :: DMAPRIO_ROUNDROBIN_ENABLE } } # [doc = "Field `DMAPRIO_ROUNDROBIN` writer - Round robin. This bit enables the round-robin DMA channel priorities."]
pub type DMAPRIO_ROUNDROBIN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMAPRIO_ROUNDROBIN_A > ; impl < 'a , REG , const O : u8 > DMAPRIO_ROUNDROBIN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmaprio_roundrobin_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAPRIO_ROUNDROBIN_A :: DMAPRIO_ROUNDROBIN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmaprio_roundrobin_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMAPRIO_ROUNDROBIN_A :: DMAPRIO_ROUNDROBIN_ENABLE) } } # [doc = "Field `DMAPRIO_BURSTSZ` reader - Define the burst size of a block transfer, before the priority is re-evaluated"]
pub type DMAPRIO_BURSTSZ_R = crate :: FieldReader < DMAPRIO_BURSTSZ_A > ; # [doc = "Define the burst size of a block transfer, before the priority is re-evaluated\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum DMAPRIO_BURSTSZ_A { # [doc = "0: INFINITI"]
DMAPRIO_BURSTSZ_INFINITI = 0 , # [doc = "1: BURST_8"]
DMAPRIO_BURSTSZ_BURST_8 = 1 , # [doc = "2: BUSRT_16"]
DMAPRIO_BURSTSZ_BUSRT_16 = 2 , # [doc = "3: BURST_32"]
DMAPRIO_BURSTSZ_BURST_32 = 3 , } impl From < DMAPRIO_BURSTSZ_A > for u8 { # [inline (always)]
fn from (variant : DMAPRIO_BURSTSZ_A) -> Self { variant as _ } } impl crate :: FieldSpec for DMAPRIO_BURSTSZ_A { type Ux = u8 ; } impl DMAPRIO_BURSTSZ_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMAPRIO_BURSTSZ_A { match self . bits { 0 => DMAPRIO_BURSTSZ_A :: DMAPRIO_BURSTSZ_INFINITI , 1 => DMAPRIO_BURSTSZ_A :: DMAPRIO_BURSTSZ_BURST_8 , 2 => DMAPRIO_BURSTSZ_A :: DMAPRIO_BURSTSZ_BUSRT_16 , 3 => DMAPRIO_BURSTSZ_A :: DMAPRIO_BURSTSZ_BURST_32 , _ => unreachable ! () , } } # [doc = "INFINITI"]
# [inline (always)]
pub fn is_dmaprio_burstsz_infiniti (& self) -> bool { * self == DMAPRIO_BURSTSZ_A :: DMAPRIO_BURSTSZ_INFINITI } # [doc = "BURST_8"]
# [inline (always)]
pub fn is_dmaprio_burstsz_burst_8 (& self) -> bool { * self == DMAPRIO_BURSTSZ_A :: DMAPRIO_BURSTSZ_BURST_8 } # [doc = "BUSRT_16"]
# [inline (always)]
pub fn is_dmaprio_burstsz_busrt_16 (& self) -> bool { * self == DMAPRIO_BURSTSZ_A :: DMAPRIO_BURSTSZ_BUSRT_16 } # [doc = "BURST_32"]
# [inline (always)]
pub fn is_dmaprio_burstsz_burst_32 (& self) -> bool { * self == DMAPRIO_BURSTSZ_A :: DMAPRIO_BURSTSZ_BURST_32 } } # [doc = "Field `DMAPRIO_BURSTSZ` writer - Define the burst size of a block transfer, before the priority is re-evaluated"]
pub type DMAPRIO_BURSTSZ_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , DMAPRIO_BURSTSZ_A > ; impl < 'a , REG , const O : u8 > DMAPRIO_BURSTSZ_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "INFINITI"]
# [inline (always)]
pub fn dmaprio_burstsz_infiniti (self) -> & 'a mut crate :: W < REG > { self . variant (DMAPRIO_BURSTSZ_A :: DMAPRIO_BURSTSZ_INFINITI) } # [doc = "BURST_8"]
# [inline (always)]
pub fn dmaprio_burstsz_burst_8 (self) -> & 'a mut crate :: W < REG > { self . variant (DMAPRIO_BURSTSZ_A :: DMAPRIO_BURSTSZ_BURST_8) } # [doc = "BUSRT_16"]
# [inline (always)]
pub fn dmaprio_burstsz_busrt_16 (self) -> & 'a mut crate :: W < REG > { self . variant (DMAPRIO_BURSTSZ_A :: DMAPRIO_BURSTSZ_BUSRT_16) } # [doc = "BURST_32"]
# [inline (always)]
pub fn dmaprio_burstsz_burst_32 (self) -> & 'a mut crate :: W < REG > { self . variant (DMAPRIO_BURSTSZ_A :: DMAPRIO_BURSTSZ_BURST_32) } } impl R { # [doc = "Bit 0 - Round robin. This bit enables the round-robin DMA channel priorities."]
# [inline (always)]
pub fn dmaprio_roundrobin (& self) -> DMAPRIO_ROUNDROBIN_R { DMAPRIO_ROUNDROBIN_R :: new ((self . bits & 1) != 0) } # [doc = "Bits 16:17 - Define the burst size of a block transfer, before the priority is re-evaluated"]
# [inline (always)]
pub fn dmaprio_burstsz (& self) -> DMAPRIO_BURSTSZ_R { DMAPRIO_BURSTSZ_R :: new (((self . bits >> 16) & 3) as u8) } } impl W { # [doc = "Bit 0 - Round robin. This bit enables the round-robin DMA channel priorities."]
# [inline (always)]
# [must_use]
pub fn dmaprio_roundrobin (& mut self) -> DMAPRIO_ROUNDROBIN_W < DMAPRIO_SPEC , 0 > { DMAPRIO_ROUNDROBIN_W :: new (self) } # [doc = "Bits 16:17 - Define the burst size of a block transfer, before the priority is re-evaluated"]
# [inline (always)]
# [must_use]
pub fn dmaprio_burstsz (& mut self) -> DMAPRIO_BURSTSZ_W < DMAPRIO_SPEC , 16 > { DMAPRIO_BURSTSZ_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "DMA Channel Priority Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`dmaprio::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dmaprio::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DMAPRIO_SPEC ; impl crate :: RegisterSpec for DMAPRIO_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`dmaprio::R`](R) reader structure"]
impl crate :: Readable for DMAPRIO_SPEC { } # [doc = "`write(|w| ..)` method takes [`dmaprio::W`](W) writer structure"]
impl crate :: Writable for DMAPRIO_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets DMAPRIO to value 0"]
impl crate :: Resettable for DMAPRIO_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DMATCTL (rw) register accessor: DMA Trigger Select\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`dmatctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dmatctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dmatctl`]
module"]
pub type DMATCTL = crate :: Reg < dmatctl :: DMATCTL_SPEC > ; # [doc = "DMA Trigger Select"]
pub mod dmatctl { # [doc = "Register `DMATCTL` reader"]
pub type R = crate :: R < DMATCTL_SPEC > ; # [doc = "Register `DMATCTL` writer"]
pub type W = crate :: W < DMATCTL_SPEC > ; # [doc = "Field `DMATCTL_DMATSEL` reader - DMA Trigger Select Note: Reference the datasheet of the device to see the specific trigger mapping."]
pub type DMATCTL_DMATSEL_R = crate :: FieldReader < DMATCTL_DMATSEL_A > ; # [doc = "DMA Trigger Select Note: Reference the datasheet of the device to see the specific trigger mapping.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum DMATCTL_DMATSEL_A { # [doc = "0: DMAREQ"]
DMATCTL_DMATSEL_DMAREQ = 0 , } impl From < DMATCTL_DMATSEL_A > for u8 { # [inline (always)]
fn from (variant : DMATCTL_DMATSEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for DMATCTL_DMATSEL_A { type Ux = u8 ; } impl DMATCTL_DMATSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < DMATCTL_DMATSEL_A > { match self . bits { 0 => Some (DMATCTL_DMATSEL_A :: DMATCTL_DMATSEL_DMAREQ) , _ => None , } } # [doc = "DMAREQ"]
# [inline (always)]
pub fn is_dmatctl_dmatsel_dmareq (& self) -> bool { * self == DMATCTL_DMATSEL_A :: DMATCTL_DMATSEL_DMAREQ } } # [doc = "Field `DMATCTL_DMATSEL` writer - DMA Trigger Select Note: Reference the datasheet of the device to see the specific trigger mapping."]
pub type DMATCTL_DMATSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 6 , O , DMATCTL_DMATSEL_A > ; impl < 'a , REG , const O : u8 > DMATCTL_DMATSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DMAREQ"]
# [inline (always)]
pub fn dmatctl_dmatsel_dmareq (self) -> & 'a mut crate :: W < REG > { self . variant (DMATCTL_DMATSEL_A :: DMATCTL_DMATSEL_DMAREQ) } } # [doc = "Field `DMATCTL_DMATINT` reader - DMA Trigger by Internal Channel"]
pub type DMATCTL_DMATINT_R = crate :: BitReader < DMATCTL_DMATINT_A > ; # [doc = "DMA Trigger by Internal Channel\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMATCTL_DMATINT_A { # [doc = "0: EXTERNAL"]
DMATCTL_DMATINT_EXTERNAL = 0 , # [doc = "1: INTERNAL"]
DMATCTL_DMATINT_INTERNAL = 1 , } impl From < DMATCTL_DMATINT_A > for bool { # [inline (always)]
fn from (variant : DMATCTL_DMATINT_A) -> Self { variant as u8 != 0 } } impl DMATCTL_DMATINT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMATCTL_DMATINT_A { match self . bits { false => DMATCTL_DMATINT_A :: DMATCTL_DMATINT_EXTERNAL , true => DMATCTL_DMATINT_A :: DMATCTL_DMATINT_INTERNAL , } } # [doc = "EXTERNAL"]
# [inline (always)]
pub fn is_dmatctl_dmatint_external (& self) -> bool { * self == DMATCTL_DMATINT_A :: DMATCTL_DMATINT_EXTERNAL } # [doc = "INTERNAL"]
# [inline (always)]
pub fn is_dmatctl_dmatint_internal (& self) -> bool { * self == DMATCTL_DMATINT_A :: DMATCTL_DMATINT_INTERNAL } } # [doc = "Field `DMATCTL_DMATINT` writer - DMA Trigger by Internal Channel"]
pub type DMATCTL_DMATINT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMATCTL_DMATINT_A > ; impl < 'a , REG , const O : u8 > DMATCTL_DMATINT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "EXTERNAL"]
# [inline (always)]
pub fn dmatctl_dmatint_external (self) -> & 'a mut crate :: W < REG > { self . variant (DMATCTL_DMATINT_A :: DMATCTL_DMATINT_EXTERNAL) } # [doc = "INTERNAL"]
# [inline (always)]
pub fn dmatctl_dmatint_internal (self) -> & 'a mut crate :: W < REG > { self . variant (DMATCTL_DMATINT_A :: DMATCTL_DMATINT_INTERNAL) } } impl R { # [doc = "Bits 0:5 - DMA Trigger Select Note: Reference the datasheet of the device to see the specific trigger mapping."]
# [inline (always)]
pub fn dmatctl_dmatsel (& self) -> DMATCTL_DMATSEL_R { DMATCTL_DMATSEL_R :: new ((self . bits & 0x3f) as u8) } # [doc = "Bit 7 - DMA Trigger by Internal Channel"]
# [inline (always)]
pub fn dmatctl_dmatint (& self) -> DMATCTL_DMATINT_R { DMATCTL_DMATINT_R :: new (((self . bits >> 7) & 1) != 0) } } impl W { # [doc = "Bits 0:5 - DMA Trigger Select Note: Reference the datasheet of the device to see the specific trigger mapping."]
# [inline (always)]
# [must_use]
pub fn dmatctl_dmatsel (& mut self) -> DMATCTL_DMATSEL_W < DMATCTL_SPEC , 0 > { DMATCTL_DMATSEL_W :: new (self) } # [doc = "Bit 7 - DMA Trigger by Internal Channel"]
# [inline (always)]
# [must_use]
pub fn dmatctl_dmatint (& mut self) -> DMATCTL_DMATINT_W < DMATCTL_SPEC , 7 > { DMATCTL_DMATINT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "DMA Trigger Select\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`dmatctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dmatctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DMATCTL_SPEC ; impl crate :: RegisterSpec for DMATCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`dmatctl::R`](R) reader structure"]
impl crate :: Readable for DMATCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`dmatctl::W`](W) writer structure"]
impl crate :: Writable for DMATCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets DMATCTL to value 0"]
impl crate :: Resettable for DMATCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DMACTL (rw) register accessor: DMA Channel Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`dmactl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dmactl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dmactl`]
module"]
pub type DMACTL = crate :: Reg < dmactl :: DMACTL_SPEC > ; # [doc = "DMA Channel Control"]
pub mod dmactl { # [doc = "Register `DMACTL` reader"]
pub type R = crate :: R < DMACTL_SPEC > ; # [doc = "Register `DMACTL` writer"]
pub type W = crate :: W < DMACTL_SPEC > ; # [doc = "Field `DMACTL_DMAREQ` reader - DMA request. Software-controlled DMA start. DMAREQ is reset automatically."]
pub type DMACTL_DMAREQ_R = crate :: BitReader < DMACTL_DMAREQ_A > ; # [doc = "DMA request. Software-controlled DMA start. DMAREQ is reset automatically.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMACTL_DMAREQ_A { # [doc = "0: IDLE"]
DMACTL_DMAREQ_IDLE = 0 , # [doc = "1: REQUEST"]
DMACTL_DMAREQ_REQUEST = 1 , } impl From < DMACTL_DMAREQ_A > for bool { # [inline (always)]
fn from (variant : DMACTL_DMAREQ_A) -> Self { variant as u8 != 0 } } impl DMACTL_DMAREQ_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMACTL_DMAREQ_A { match self . bits { false => DMACTL_DMAREQ_A :: DMACTL_DMAREQ_IDLE , true => DMACTL_DMAREQ_A :: DMACTL_DMAREQ_REQUEST , } } # [doc = "IDLE"]
# [inline (always)]
pub fn is_dmactl_dmareq_idle (& self) -> bool { * self == DMACTL_DMAREQ_A :: DMACTL_DMAREQ_IDLE } # [doc = "REQUEST"]
# [inline (always)]
pub fn is_dmactl_dmareq_request (& self) -> bool { * self == DMACTL_DMAREQ_A :: DMACTL_DMAREQ_REQUEST } } # [doc = "Field `DMACTL_DMAREQ` writer - DMA request. Software-controlled DMA start. DMAREQ is reset automatically."]
pub type DMACTL_DMAREQ_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMACTL_DMAREQ_A > ; impl < 'a , REG , const O : u8 > DMACTL_DMAREQ_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "IDLE"]
# [inline (always)]
pub fn dmactl_dmareq_idle (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMAREQ_A :: DMACTL_DMAREQ_IDLE) } # [doc = "REQUEST"]
# [inline (always)]
pub fn dmactl_dmareq_request (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMAREQ_A :: DMACTL_DMAREQ_REQUEST) } } # [doc = "Field `DMACTL_DMAEN` reader - DMA enable"]
pub type DMACTL_DMAEN_R = crate :: BitReader < DMACTL_DMAEN_A > ; # [doc = "DMA enable\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum DMACTL_DMAEN_A { # [doc = "0: DISABLE"]
DMACTL_DMAEN_DISABLE = 0 , # [doc = "1: ENABLE"]
DMACTL_DMAEN_ENABLE = 1 , } impl From < DMACTL_DMAEN_A > for bool { # [inline (always)]
fn from (variant : DMACTL_DMAEN_A) -> Self { variant as u8 != 0 } } impl DMACTL_DMAEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMACTL_DMAEN_A { match self . bits { false => DMACTL_DMAEN_A :: DMACTL_DMAEN_DISABLE , true => DMACTL_DMAEN_A :: DMACTL_DMAEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_dmactl_dmaen_disable (& self) -> bool { * self == DMACTL_DMAEN_A :: DMACTL_DMAEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_dmactl_dmaen_enable (& self) -> bool { * self == DMACTL_DMAEN_A :: DMACTL_DMAEN_ENABLE } } # [doc = "Field `DMACTL_DMAEN` writer - DMA enable"]
pub type DMACTL_DMAEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , DMACTL_DMAEN_A > ; impl < 'a , REG , const O : u8 > DMACTL_DMAEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn dmactl_dmaen_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMAEN_A :: DMACTL_DMAEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn dmactl_dmaen_enable (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMAEN_A :: DMACTL_DMAEN_ENABLE) } } # [doc = "Field `DMACTL_DMAPREIRQ` reader - Enable an early IRQ event. This can help software to react quicker to and DMA done event or allows some additional configuration before the channel is complete. Note: This register is only available in a FULL-channel configuration. Please consult the datasheet of the specific device to map which channel number has FULL or BASIC capability. In a BASIC configuration this register is a read only value and always reads as 0x0."]
pub type DMACTL_DMAPREIRQ_R = crate :: FieldReader < DMACTL_DMAPREIRQ_A > ; # [doc = "Enable an early IRQ event. This can help software to react quicker to and DMA done event or allows some additional configuration before the channel is complete. Note: This register is only available in a FULL-channel configuration. Please consult the datasheet of the specific device to map which channel number has FULL or BASIC capability. In a BASIC configuration this register is a read only value and always reads as 0x0.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum DMACTL_DMAPREIRQ_A { # [doc = "0: PREIRQ_DISABLE"]
DMACTL_DMAPREIRQ_PREIRQ_DISABLE = 0 , # [doc = "1: PREIRQ_1"]
DMACTL_DMAPREIRQ_PREIRQ_1 = 1 , # [doc = "2: PREIRQ_2"]
DMACTL_DMAPREIRQ_PREIRQ_2 = 2 , # [doc = "3: PREIRQ_4"]
DMACTL_DMAPREIRQ_PREIRQ_4 = 3 , # [doc = "4: PREIRQ_8"]
DMACTL_DMAPREIRQ_PREIRQ_8 = 4 , # [doc = "5: PREIRQ_32"]
DMACTL_DMAPREIRQ_PREIRQ_32 = 5 , # [doc = "6: PREIRQ_64"]
DMACTL_DMAPREIRQ_PREIRQ_64 = 6 , # [doc = "7: PREIRQ_HALF"]
DMACTL_DMAPREIRQ_PREIRQ_HALF = 7 , } impl From < DMACTL_DMAPREIRQ_A > for u8 { # [inline (always)]
fn from (variant : DMACTL_DMAPREIRQ_A) -> Self { variant as _ } } impl crate :: FieldSpec for DMACTL_DMAPREIRQ_A { type Ux = u8 ; } impl DMACTL_DMAPREIRQ_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMACTL_DMAPREIRQ_A { match self . bits { 0 => DMACTL_DMAPREIRQ_A :: DMACTL_DMAPREIRQ_PREIRQ_DISABLE , 1 => DMACTL_DMAPREIRQ_A :: DMACTL_DMAPREIRQ_PREIRQ_1 , 2 => DMACTL_DMAPREIRQ_A :: DMACTL_DMAPREIRQ_PREIRQ_2 , 3 => DMACTL_DMAPREIRQ_A :: DMACTL_DMAPREIRQ_PREIRQ_4 , 4 => DMACTL_DMAPREIRQ_A :: DMACTL_DMAPREIRQ_PREIRQ_8 , 5 => DMACTL_DMAPREIRQ_A :: DMACTL_DMAPREIRQ_PREIRQ_32 , 6 => DMACTL_DMAPREIRQ_A :: DMACTL_DMAPREIRQ_PREIRQ_64 , 7 => DMACTL_DMAPREIRQ_A :: DMACTL_DMAPREIRQ_PREIRQ_HALF , _ => unreachable ! () , } } # [doc = "PREIRQ_DISABLE"]
# [inline (always)]
pub fn is_dmactl_dmapreirq_preirq_disable (& self) -> bool { * self == DMACTL_DMAPREIRQ_A :: DMACTL_DMAPREIRQ_PREIRQ_DISABLE } # [doc = "PREIRQ_1"]
# [inline (always)]
pub fn is_dmactl_dmapreirq_preirq_1 (& self) -> bool { * self == DMACTL_DMAPREIRQ_A :: DMACTL_DMAPREIRQ_PREIRQ_1 } # [doc = "PREIRQ_2"]
# [inline (always)]
pub fn is_dmactl_dmapreirq_preirq_2 (& self) -> bool { * self == DMACTL_DMAPREIRQ_A :: DMACTL_DMAPREIRQ_PREIRQ_2 } # [doc = "PREIRQ_4"]
# [inline (always)]
pub fn is_dmactl_dmapreirq_preirq_4 (& self) -> bool { * self == DMACTL_DMAPREIRQ_A :: DMACTL_DMAPREIRQ_PREIRQ_4 } # [doc = "PREIRQ_8"]
# [inline (always)]
pub fn is_dmactl_dmapreirq_preirq_8 (& self) -> bool { * self == DMACTL_DMAPREIRQ_A :: DMACTL_DMAPREIRQ_PREIRQ_8 } # [doc = "PREIRQ_32"]
# [inline (always)]
pub fn is_dmactl_dmapreirq_preirq_32 (& self) -> bool { * self == DMACTL_DMAPREIRQ_A :: DMACTL_DMAPREIRQ_PREIRQ_32 } # [doc = "PREIRQ_64"]
# [inline (always)]
pub fn is_dmactl_dmapreirq_preirq_64 (& self) -> bool { * self == DMACTL_DMAPREIRQ_A :: DMACTL_DMAPREIRQ_PREIRQ_64 } # [doc = "PREIRQ_HALF"]
# [inline (always)]
pub fn is_dmactl_dmapreirq_preirq_half (& self) -> bool { * self == DMACTL_DMAPREIRQ_A :: DMACTL_DMAPREIRQ_PREIRQ_HALF } } # [doc = "Field `DMACTL_DMAPREIRQ` writer - Enable an early IRQ event. This can help software to react quicker to and DMA done event or allows some additional configuration before the channel is complete. Note: This register is only available in a FULL-channel configuration. Please consult the datasheet of the specific device to map which channel number has FULL or BASIC capability. In a BASIC configuration this register is a read only value and always reads as 0x0."]
pub type DMACTL_DMAPREIRQ_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 3 , O , DMACTL_DMAPREIRQ_A > ; impl < 'a , REG , const O : u8 > DMACTL_DMAPREIRQ_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "PREIRQ_DISABLE"]
# [inline (always)]
pub fn dmactl_dmapreirq_preirq_disable (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMAPREIRQ_A :: DMACTL_DMAPREIRQ_PREIRQ_DISABLE) } # [doc = "PREIRQ_1"]
# [inline (always)]
pub fn dmactl_dmapreirq_preirq_1 (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMAPREIRQ_A :: DMACTL_DMAPREIRQ_PREIRQ_1) } # [doc = "PREIRQ_2"]
# [inline (always)]
pub fn dmactl_dmapreirq_preirq_2 (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMAPREIRQ_A :: DMACTL_DMAPREIRQ_PREIRQ_2) } # [doc = "PREIRQ_4"]
# [inline (always)]
pub fn dmactl_dmapreirq_preirq_4 (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMAPREIRQ_A :: DMACTL_DMAPREIRQ_PREIRQ_4) } # [doc = "PREIRQ_8"]
# [inline (always)]
pub fn dmactl_dmapreirq_preirq_8 (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMAPREIRQ_A :: DMACTL_DMAPREIRQ_PREIRQ_8) } # [doc = "PREIRQ_32"]
# [inline (always)]
pub fn dmactl_dmapreirq_preirq_32 (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMAPREIRQ_A :: DMACTL_DMAPREIRQ_PREIRQ_32) } # [doc = "PREIRQ_64"]
# [inline (always)]
pub fn dmactl_dmapreirq_preirq_64 (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMAPREIRQ_A :: DMACTL_DMAPREIRQ_PREIRQ_64) } # [doc = "PREIRQ_HALF"]
# [inline (always)]
pub fn dmactl_dmapreirq_preirq_half (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMAPREIRQ_A :: DMACTL_DMAPREIRQ_PREIRQ_HALF) } } # [doc = "Field `DMACTL_DMASRCWDTH` reader - DMA source width. This bit selects the source data width as a byte, half word, word or long word."]
pub type DMACTL_DMASRCWDTH_R = crate :: FieldReader < DMACTL_DMASRCWDTH_A > ; # [doc = "DMA source width. This bit selects the source data width as a byte, half word, word or long word.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum DMACTL_DMASRCWDTH_A { # [doc = "0: BYTE"]
DMACTL_DMASRCWDTH_BYTE = 0 , # [doc = "1: HALF"]
DMACTL_DMASRCWDTH_HALF = 1 , # [doc = "2: WORD"]
DMACTL_DMASRCWDTH_WORD = 2 , # [doc = "3: LONG"]
DMACTL_DMASRCWDTH_LONG = 3 , } impl From < DMACTL_DMASRCWDTH_A > for u8 { # [inline (always)]
fn from (variant : DMACTL_DMASRCWDTH_A) -> Self { variant as _ } } impl crate :: FieldSpec for DMACTL_DMASRCWDTH_A { type Ux = u8 ; } impl DMACTL_DMASRCWDTH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMACTL_DMASRCWDTH_A { match self . bits { 0 => DMACTL_DMASRCWDTH_A :: DMACTL_DMASRCWDTH_BYTE , 1 => DMACTL_DMASRCWDTH_A :: DMACTL_DMASRCWDTH_HALF , 2 => DMACTL_DMASRCWDTH_A :: DMACTL_DMASRCWDTH_WORD , 3 => DMACTL_DMASRCWDTH_A :: DMACTL_DMASRCWDTH_LONG , _ => unreachable ! () , } } # [doc = "BYTE"]
# [inline (always)]
pub fn is_dmactl_dmasrcwdth_byte (& self) -> bool { * self == DMACTL_DMASRCWDTH_A :: DMACTL_DMASRCWDTH_BYTE } # [doc = "HALF"]
# [inline (always)]
pub fn is_dmactl_dmasrcwdth_half (& self) -> bool { * self == DMACTL_DMASRCWDTH_A :: DMACTL_DMASRCWDTH_HALF } # [doc = "WORD"]
# [inline (always)]
pub fn is_dmactl_dmasrcwdth_word (& self) -> bool { * self == DMACTL_DMASRCWDTH_A :: DMACTL_DMASRCWDTH_WORD } # [doc = "LONG"]
# [inline (always)]
pub fn is_dmactl_dmasrcwdth_long (& self) -> bool { * self == DMACTL_DMASRCWDTH_A :: DMACTL_DMASRCWDTH_LONG } } # [doc = "Field `DMACTL_DMASRCWDTH` writer - DMA source width. This bit selects the source data width as a byte, half word, word or long word."]
pub type DMACTL_DMASRCWDTH_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , DMACTL_DMASRCWDTH_A > ; impl < 'a , REG , const O : u8 > DMACTL_DMASRCWDTH_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "BYTE"]
# [inline (always)]
pub fn dmactl_dmasrcwdth_byte (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMASRCWDTH_A :: DMACTL_DMASRCWDTH_BYTE) } # [doc = "HALF"]
# [inline (always)]
pub fn dmactl_dmasrcwdth_half (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMASRCWDTH_A :: DMACTL_DMASRCWDTH_HALF) } # [doc = "WORD"]
# [inline (always)]
pub fn dmactl_dmasrcwdth_word (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMASRCWDTH_A :: DMACTL_DMASRCWDTH_WORD) } # [doc = "LONG"]
# [inline (always)]
pub fn dmactl_dmasrcwdth_long (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMASRCWDTH_A :: DMACTL_DMASRCWDTH_LONG) } } # [doc = "Field `DMACTL_DMADSTWDTH` reader - DMA destination width. This bit selects the destination as a byte, half word, word or long word."]
pub type DMACTL_DMADSTWDTH_R = crate :: FieldReader < DMACTL_DMADSTWDTH_A > ; # [doc = "DMA destination width. This bit selects the destination as a byte, half word, word or long word.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum DMACTL_DMADSTWDTH_A { # [doc = "0: BYTE"]
DMACTL_DMADSTWDTH_BYTE = 0 , # [doc = "1: HALF"]
DMACTL_DMADSTWDTH_HALF = 1 , # [doc = "2: WORD"]
DMACTL_DMADSTWDTH_WORD = 2 , # [doc = "3: LONG"]
DMACTL_DMADSTWDTH_LONG = 3 , } impl From < DMACTL_DMADSTWDTH_A > for u8 { # [inline (always)]
fn from (variant : DMACTL_DMADSTWDTH_A) -> Self { variant as _ } } impl crate :: FieldSpec for DMACTL_DMADSTWDTH_A { type Ux = u8 ; } impl DMACTL_DMADSTWDTH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMACTL_DMADSTWDTH_A { match self . bits { 0 => DMACTL_DMADSTWDTH_A :: DMACTL_DMADSTWDTH_BYTE , 1 => DMACTL_DMADSTWDTH_A :: DMACTL_DMADSTWDTH_HALF , 2 => DMACTL_DMADSTWDTH_A :: DMACTL_DMADSTWDTH_WORD , 3 => DMACTL_DMADSTWDTH_A :: DMACTL_DMADSTWDTH_LONG , _ => unreachable ! () , } } # [doc = "BYTE"]
# [inline (always)]
pub fn is_dmactl_dmadstwdth_byte (& self) -> bool { * self == DMACTL_DMADSTWDTH_A :: DMACTL_DMADSTWDTH_BYTE } # [doc = "HALF"]
# [inline (always)]
pub fn is_dmactl_dmadstwdth_half (& self) -> bool { * self == DMACTL_DMADSTWDTH_A :: DMACTL_DMADSTWDTH_HALF } # [doc = "WORD"]
# [inline (always)]
pub fn is_dmactl_dmadstwdth_word (& self) -> bool { * self == DMACTL_DMADSTWDTH_A :: DMACTL_DMADSTWDTH_WORD } # [doc = "LONG"]
# [inline (always)]
pub fn is_dmactl_dmadstwdth_long (& self) -> bool { * self == DMACTL_DMADSTWDTH_A :: DMACTL_DMADSTWDTH_LONG } } # [doc = "Field `DMACTL_DMADSTWDTH` writer - DMA destination width. This bit selects the destination as a byte, half word, word or long word."]
pub type DMACTL_DMADSTWDTH_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , DMACTL_DMADSTWDTH_A > ; impl < 'a , REG , const O : u8 > DMACTL_DMADSTWDTH_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "BYTE"]
# [inline (always)]
pub fn dmactl_dmadstwdth_byte (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMADSTWDTH_A :: DMACTL_DMADSTWDTH_BYTE) } # [doc = "HALF"]
# [inline (always)]
pub fn dmactl_dmadstwdth_half (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMADSTWDTH_A :: DMACTL_DMADSTWDTH_HALF) } # [doc = "WORD"]
# [inline (always)]
pub fn dmactl_dmadstwdth_word (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMADSTWDTH_A :: DMACTL_DMADSTWDTH_WORD) } # [doc = "LONG"]
# [inline (always)]
pub fn dmactl_dmadstwdth_long (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMADSTWDTH_A :: DMACTL_DMADSTWDTH_LONG) } } # [doc = "Field `DMACTL_DMASRCINCR` reader - DMA source increment. This bit selects automatic incrementing or decrementing of the source address DMASA for each transfer. The amount of change to the DMASA is based on the definitin in the DMASRCWDTH. For example an increment of 1 (+1) on a WORD transfer will increment the DMASA by 4."]
pub type DMACTL_DMASRCINCR_R = crate :: FieldReader < DMACTL_DMASRCINCR_A > ; # [doc = "DMA source increment. This bit selects automatic incrementing or decrementing of the source address DMASA for each transfer. The amount of change to the DMASA is based on the definitin in the DMASRCWDTH. For example an increment of 1 (+1) on a WORD transfer will increment the DMASA by 4.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum DMACTL_DMASRCINCR_A { # [doc = "0: UNCHANGED"]
DMACTL_DMASRCINCR_UNCHANGED = 0 , # [doc = "2: DECREMENT"]
DMACTL_DMASRCINCR_DECREMENT = 2 , # [doc = "3: INCREMENT"]
DMACTL_DMASRCINCR_INCREMENT = 3 , # [doc = "8: STRIDE_2"]
DMACTL_DMASRCINCR_STRIDE_2 = 8 , # [doc = "9: STRIDE_3"]
DMACTL_DMASRCINCR_STRIDE_3 = 9 , # [doc = "10: STRIDE_4"]
DMACTL_DMASRCINCR_STRIDE_4 = 10 , # [doc = "11: STRIDE_5"]
DMACTL_DMASRCINCR_STRIDE_5 = 11 , # [doc = "12: STRIDE_6"]
DMACTL_DMASRCINCR_STRIDE_6 = 12 , # [doc = "13: STRIDE_7"]
DMACTL_DMASRCINCR_STRIDE_7 = 13 , # [doc = "14: STRIDE_8"]
DMACTL_DMASRCINCR_STRIDE_8 = 14 , # [doc = "15: STRIDE_9"]
DMACTL_DMASRCINCR_STRIDE_9 = 15 , } impl From < DMACTL_DMASRCINCR_A > for u8 { # [inline (always)]
fn from (variant : DMACTL_DMASRCINCR_A) -> Self { variant as _ } } impl crate :: FieldSpec for DMACTL_DMASRCINCR_A { type Ux = u8 ; } impl DMACTL_DMASRCINCR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < DMACTL_DMASRCINCR_A > { match self . bits { 0 => Some (DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_UNCHANGED) , 2 => Some (DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_DECREMENT) , 3 => Some (DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_INCREMENT) , 8 => Some (DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_STRIDE_2) , 9 => Some (DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_STRIDE_3) , 10 => Some (DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_STRIDE_4) , 11 => Some (DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_STRIDE_5) , 12 => Some (DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_STRIDE_6) , 13 => Some (DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_STRIDE_7) , 14 => Some (DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_STRIDE_8) , 15 => Some (DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_STRIDE_9) , _ => None , } } # [doc = "UNCHANGED"]
# [inline (always)]
pub fn is_dmactl_dmasrcincr_unchanged (& self) -> bool { * self == DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_UNCHANGED } # [doc = "DECREMENT"]
# [inline (always)]
pub fn is_dmactl_dmasrcincr_decrement (& self) -> bool { * self == DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_DECREMENT } # [doc = "INCREMENT"]
# [inline (always)]
pub fn is_dmactl_dmasrcincr_increment (& self) -> bool { * self == DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_INCREMENT } # [doc = "STRIDE_2"]
# [inline (always)]
pub fn is_dmactl_dmasrcincr_stride_2 (& self) -> bool { * self == DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_STRIDE_2 } # [doc = "STRIDE_3"]
# [inline (always)]
pub fn is_dmactl_dmasrcincr_stride_3 (& self) -> bool { * self == DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_STRIDE_3 } # [doc = "STRIDE_4"]
# [inline (always)]
pub fn is_dmactl_dmasrcincr_stride_4 (& self) -> bool { * self == DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_STRIDE_4 } # [doc = "STRIDE_5"]
# [inline (always)]
pub fn is_dmactl_dmasrcincr_stride_5 (& self) -> bool { * self == DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_STRIDE_5 } # [doc = "STRIDE_6"]
# [inline (always)]
pub fn is_dmactl_dmasrcincr_stride_6 (& self) -> bool { * self == DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_STRIDE_6 } # [doc = "STRIDE_7"]
# [inline (always)]
pub fn is_dmactl_dmasrcincr_stride_7 (& self) -> bool { * self == DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_STRIDE_7 } # [doc = "STRIDE_8"]
# [inline (always)]
pub fn is_dmactl_dmasrcincr_stride_8 (& self) -> bool { * self == DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_STRIDE_8 } # [doc = "STRIDE_9"]
# [inline (always)]
pub fn is_dmactl_dmasrcincr_stride_9 (& self) -> bool { * self == DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_STRIDE_9 } } # [doc = "Field `DMACTL_DMASRCINCR` writer - DMA source increment. This bit selects automatic incrementing or decrementing of the source address DMASA for each transfer. The amount of change to the DMASA is based on the definitin in the DMASRCWDTH. For example an increment of 1 (+1) on a WORD transfer will increment the DMASA by 4."]
pub type DMACTL_DMASRCINCR_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 4 , O , DMACTL_DMASRCINCR_A > ; impl < 'a , REG , const O : u8 > DMACTL_DMASRCINCR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UNCHANGED"]
# [inline (always)]
pub fn dmactl_dmasrcincr_unchanged (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_UNCHANGED) } # [doc = "DECREMENT"]
# [inline (always)]
pub fn dmactl_dmasrcincr_decrement (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_DECREMENT) } # [doc = "INCREMENT"]
# [inline (always)]
pub fn dmactl_dmasrcincr_increment (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_INCREMENT) } # [doc = "STRIDE_2"]
# [inline (always)]
pub fn dmactl_dmasrcincr_stride_2 (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_STRIDE_2) } # [doc = "STRIDE_3"]
# [inline (always)]
pub fn dmactl_dmasrcincr_stride_3 (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_STRIDE_3) } # [doc = "STRIDE_4"]
# [inline (always)]
pub fn dmactl_dmasrcincr_stride_4 (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_STRIDE_4) } # [doc = "STRIDE_5"]
# [inline (always)]
pub fn dmactl_dmasrcincr_stride_5 (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_STRIDE_5) } # [doc = "STRIDE_6"]
# [inline (always)]
pub fn dmactl_dmasrcincr_stride_6 (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_STRIDE_6) } # [doc = "STRIDE_7"]
# [inline (always)]
pub fn dmactl_dmasrcincr_stride_7 (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_STRIDE_7) } # [doc = "STRIDE_8"]
# [inline (always)]
pub fn dmactl_dmasrcincr_stride_8 (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_STRIDE_8) } # [doc = "STRIDE_9"]
# [inline (always)]
pub fn dmactl_dmasrcincr_stride_9 (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMASRCINCR_A :: DMACTL_DMASRCINCR_STRIDE_9) } } # [doc = "Field `DMACTL_DMADSTINCR` reader - DMA destination increment. This bit selects automatic incrementing or decrementing of the destination address DMADA for each transfer. The amount of change to the DMADA is based on the definitin in the DMADSTWDTH. For example an increment of 1 (+1) on a WORD transfer will increment the DMADA by 4."]
pub type DMACTL_DMADSTINCR_R = crate :: FieldReader < DMACTL_DMADSTINCR_A > ; # [doc = "DMA destination increment. This bit selects automatic incrementing or decrementing of the destination address DMADA for each transfer. The amount of change to the DMADA is based on the definitin in the DMADSTWDTH. For example an increment of 1 (+1) on a WORD transfer will increment the DMADA by 4.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum DMACTL_DMADSTINCR_A { # [doc = "0: UNCHANGED"]
DMACTL_DMADSTINCR_UNCHANGED = 0 , # [doc = "2: DECREMENT"]
DMACTL_DMADSTINCR_DECREMENT = 2 , # [doc = "3: INCREMENT"]
DMACTL_DMADSTINCR_INCREMENT = 3 , # [doc = "8: STRIDE_2"]
DMACTL_DMADSTINCR_STRIDE_2 = 8 , # [doc = "9: STRIDE_3"]
DMACTL_DMADSTINCR_STRIDE_3 = 9 , # [doc = "10: STRIDE_4"]
DMACTL_DMADSTINCR_STRIDE_4 = 10 , # [doc = "11: STRIDE_5"]
DMACTL_DMADSTINCR_STRIDE_5 = 11 , # [doc = "12: STRIDE_6"]
DMACTL_DMADSTINCR_STRIDE_6 = 12 , # [doc = "13: STRIDE_7"]
DMACTL_DMADSTINCR_STRIDE_7 = 13 , # [doc = "14: STRIDE_8"]
DMACTL_DMADSTINCR_STRIDE_8 = 14 , # [doc = "15: STRIDE_9"]
DMACTL_DMADSTINCR_STRIDE_9 = 15 , } impl From < DMACTL_DMADSTINCR_A > for u8 { # [inline (always)]
fn from (variant : DMACTL_DMADSTINCR_A) -> Self { variant as _ } } impl crate :: FieldSpec for DMACTL_DMADSTINCR_A { type Ux = u8 ; } impl DMACTL_DMADSTINCR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < DMACTL_DMADSTINCR_A > { match self . bits { 0 => Some (DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_UNCHANGED) , 2 => Some (DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_DECREMENT) , 3 => Some (DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_INCREMENT) , 8 => Some (DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_STRIDE_2) , 9 => Some (DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_STRIDE_3) , 10 => Some (DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_STRIDE_4) , 11 => Some (DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_STRIDE_5) , 12 => Some (DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_STRIDE_6) , 13 => Some (DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_STRIDE_7) , 14 => Some (DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_STRIDE_8) , 15 => Some (DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_STRIDE_9) , _ => None , } } # [doc = "UNCHANGED"]
# [inline (always)]
pub fn is_dmactl_dmadstincr_unchanged (& self) -> bool { * self == DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_UNCHANGED } # [doc = "DECREMENT"]
# [inline (always)]
pub fn is_dmactl_dmadstincr_decrement (& self) -> bool { * self == DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_DECREMENT } # [doc = "INCREMENT"]
# [inline (always)]
pub fn is_dmactl_dmadstincr_increment (& self) -> bool { * self == DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_INCREMENT } # [doc = "STRIDE_2"]
# [inline (always)]
pub fn is_dmactl_dmadstincr_stride_2 (& self) -> bool { * self == DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_STRIDE_2 } # [doc = "STRIDE_3"]
# [inline (always)]
pub fn is_dmactl_dmadstincr_stride_3 (& self) -> bool { * self == DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_STRIDE_3 } # [doc = "STRIDE_4"]
# [inline (always)]
pub fn is_dmactl_dmadstincr_stride_4 (& self) -> bool { * self == DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_STRIDE_4 } # [doc = "STRIDE_5"]
# [inline (always)]
pub fn is_dmactl_dmadstincr_stride_5 (& self) -> bool { * self == DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_STRIDE_5 } # [doc = "STRIDE_6"]
# [inline (always)]
pub fn is_dmactl_dmadstincr_stride_6 (& self) -> bool { * self == DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_STRIDE_6 } # [doc = "STRIDE_7"]
# [inline (always)]
pub fn is_dmactl_dmadstincr_stride_7 (& self) -> bool { * self == DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_STRIDE_7 } # [doc = "STRIDE_8"]
# [inline (always)]
pub fn is_dmactl_dmadstincr_stride_8 (& self) -> bool { * self == DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_STRIDE_8 } # [doc = "STRIDE_9"]
# [inline (always)]
pub fn is_dmactl_dmadstincr_stride_9 (& self) -> bool { * self == DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_STRIDE_9 } } # [doc = "Field `DMACTL_DMADSTINCR` writer - DMA destination increment. This bit selects automatic incrementing or decrementing of the destination address DMADA for each transfer. The amount of change to the DMADA is based on the definitin in the DMADSTWDTH. For example an increment of 1 (+1) on a WORD transfer will increment the DMADA by 4."]
pub type DMACTL_DMADSTINCR_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 4 , O , DMACTL_DMADSTINCR_A > ; impl < 'a , REG , const O : u8 > DMACTL_DMADSTINCR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UNCHANGED"]
# [inline (always)]
pub fn dmactl_dmadstincr_unchanged (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_UNCHANGED) } # [doc = "DECREMENT"]
# [inline (always)]
pub fn dmactl_dmadstincr_decrement (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_DECREMENT) } # [doc = "INCREMENT"]
# [inline (always)]
pub fn dmactl_dmadstincr_increment (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_INCREMENT) } # [doc = "STRIDE_2"]
# [inline (always)]
pub fn dmactl_dmadstincr_stride_2 (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_STRIDE_2) } # [doc = "STRIDE_3"]
# [inline (always)]
pub fn dmactl_dmadstincr_stride_3 (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_STRIDE_3) } # [doc = "STRIDE_4"]
# [inline (always)]
pub fn dmactl_dmadstincr_stride_4 (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_STRIDE_4) } # [doc = "STRIDE_5"]
# [inline (always)]
pub fn dmactl_dmadstincr_stride_5 (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_STRIDE_5) } # [doc = "STRIDE_6"]
# [inline (always)]
pub fn dmactl_dmadstincr_stride_6 (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_STRIDE_6) } # [doc = "STRIDE_7"]
# [inline (always)]
pub fn dmactl_dmadstincr_stride_7 (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_STRIDE_7) } # [doc = "STRIDE_8"]
# [inline (always)]
pub fn dmactl_dmadstincr_stride_8 (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_STRIDE_8) } # [doc = "STRIDE_9"]
# [inline (always)]
pub fn dmactl_dmadstincr_stride_9 (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMADSTINCR_A :: DMACTL_DMADSTINCR_STRIDE_9) } } # [doc = "Field `DMACTL_DMAEM` reader - DMA extended mode Note: The extended transfer modes are only available in a FULL-channel configuration. Please consult the datasheet of the specific device to map which channel number has FULL or BASIC capability. In a BASIC channel configuration this register is a read-only register and reads 0x0."]
pub type DMACTL_DMAEM_R = crate :: FieldReader < DMACTL_DMAEM_A > ; # [doc = "DMA extended mode Note: The extended transfer modes are only available in a FULL-channel configuration. Please consult the datasheet of the specific device to map which channel number has FULL or BASIC capability. In a BASIC channel configuration this register is a read-only register and reads 0x0.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum DMACTL_DMAEM_A { # [doc = "0: NORMAL"]
DMACTL_DMAEM_NORMAL = 0 , # [doc = "2: FILLMODE"]
DMACTL_DMAEM_FILLMODE = 2 , # [doc = "3: TABLEMODE"]
DMACTL_DMAEM_TABLEMODE = 3 , } impl From < DMACTL_DMAEM_A > for u8 { # [inline (always)]
fn from (variant : DMACTL_DMAEM_A) -> Self { variant as _ } } impl crate :: FieldSpec for DMACTL_DMAEM_A { type Ux = u8 ; } impl DMACTL_DMAEM_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < DMACTL_DMAEM_A > { match self . bits { 0 => Some (DMACTL_DMAEM_A :: DMACTL_DMAEM_NORMAL) , 2 => Some (DMACTL_DMAEM_A :: DMACTL_DMAEM_FILLMODE) , 3 => Some (DMACTL_DMAEM_A :: DMACTL_DMAEM_TABLEMODE) , _ => None , } } # [doc = "NORMAL"]
# [inline (always)]
pub fn is_dmactl_dmaem_normal (& self) -> bool { * self == DMACTL_DMAEM_A :: DMACTL_DMAEM_NORMAL } # [doc = "FILLMODE"]
# [inline (always)]
pub fn is_dmactl_dmaem_fillmode (& self) -> bool { * self == DMACTL_DMAEM_A :: DMACTL_DMAEM_FILLMODE } # [doc = "TABLEMODE"]
# [inline (always)]
pub fn is_dmactl_dmaem_tablemode (& self) -> bool { * self == DMACTL_DMAEM_A :: DMACTL_DMAEM_TABLEMODE } } # [doc = "Field `DMACTL_DMAEM` writer - DMA extended mode Note: The extended transfer modes are only available in a FULL-channel configuration. Please consult the datasheet of the specific device to map which channel number has FULL or BASIC capability. In a BASIC channel configuration this register is a read-only register and reads 0x0."]
pub type DMACTL_DMAEM_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , DMACTL_DMAEM_A > ; impl < 'a , REG , const O : u8 > DMACTL_DMAEM_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "NORMAL"]
# [inline (always)]
pub fn dmactl_dmaem_normal (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMAEM_A :: DMACTL_DMAEM_NORMAL) } # [doc = "FILLMODE"]
# [inline (always)]
pub fn dmactl_dmaem_fillmode (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMAEM_A :: DMACTL_DMAEM_FILLMODE) } # [doc = "TABLEMODE"]
# [inline (always)]
pub fn dmactl_dmaem_tablemode (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMAEM_A :: DMACTL_DMAEM_TABLEMODE) } } # [doc = "Field `DMACTL_DMATM` reader - DMA transfer mode register Note: The repeat-single (2h) and repeat-block (3h) transfer are only available in a FULL-channel configuration. Please consult the datasheet of the specific device to map which channel number has FULL or BASIC capability. In a BASIC channel configuration only the values for single (0h) and block (1h) transfer can be set."]
pub type DMACTL_DMATM_R = crate :: FieldReader < DMACTL_DMATM_A > ; # [doc = "DMA transfer mode register Note: The repeat-single (2h) and repeat-block (3h) transfer are only available in a FULL-channel configuration. Please consult the datasheet of the specific device to map which channel number has FULL or BASIC capability. In a BASIC channel configuration only the values for single (0h) and block (1h) transfer can be set.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum DMACTL_DMATM_A { # [doc = "0: SINGLE"]
DMACTL_DMATM_SINGLE = 0 , # [doc = "1: BLOCK"]
DMACTL_DMATM_BLOCK = 1 , # [doc = "2: RPTSNGL"]
DMACTL_DMATM_RPTSNGL = 2 , # [doc = "3: RPTBLCK"]
DMACTL_DMATM_RPTBLCK = 3 , } impl From < DMACTL_DMATM_A > for u8 { # [inline (always)]
fn from (variant : DMACTL_DMATM_A) -> Self { variant as _ } } impl crate :: FieldSpec for DMACTL_DMATM_A { type Ux = u8 ; } impl DMACTL_DMATM_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> DMACTL_DMATM_A { match self . bits { 0 => DMACTL_DMATM_A :: DMACTL_DMATM_SINGLE , 1 => DMACTL_DMATM_A :: DMACTL_DMATM_BLOCK , 2 => DMACTL_DMATM_A :: DMACTL_DMATM_RPTSNGL , 3 => DMACTL_DMATM_A :: DMACTL_DMATM_RPTBLCK , _ => unreachable ! () , } } # [doc = "SINGLE"]
# [inline (always)]
pub fn is_dmactl_dmatm_single (& self) -> bool { * self == DMACTL_DMATM_A :: DMACTL_DMATM_SINGLE } # [doc = "BLOCK"]
# [inline (always)]
pub fn is_dmactl_dmatm_block (& self) -> bool { * self == DMACTL_DMATM_A :: DMACTL_DMATM_BLOCK } # [doc = "RPTSNGL"]
# [inline (always)]
pub fn is_dmactl_dmatm_rptsngl (& self) -> bool { * self == DMACTL_DMATM_A :: DMACTL_DMATM_RPTSNGL } # [doc = "RPTBLCK"]
# [inline (always)]
pub fn is_dmactl_dmatm_rptblck (& self) -> bool { * self == DMACTL_DMATM_A :: DMACTL_DMATM_RPTBLCK } } # [doc = "Field `DMACTL_DMATM` writer - DMA transfer mode register Note: The repeat-single (2h) and repeat-block (3h) transfer are only available in a FULL-channel configuration. Please consult the datasheet of the specific device to map which channel number has FULL or BASIC capability. In a BASIC channel configuration only the values for single (0h) and block (1h) transfer can be set."]
pub type DMACTL_DMATM_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , DMACTL_DMATM_A > ; impl < 'a , REG , const O : u8 > DMACTL_DMATM_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "SINGLE"]
# [inline (always)]
pub fn dmactl_dmatm_single (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMATM_A :: DMACTL_DMATM_SINGLE) } # [doc = "BLOCK"]
# [inline (always)]
pub fn dmactl_dmatm_block (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMATM_A :: DMACTL_DMATM_BLOCK) } # [doc = "RPTSNGL"]
# [inline (always)]
pub fn dmactl_dmatm_rptsngl (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMATM_A :: DMACTL_DMATM_RPTSNGL) } # [doc = "RPTBLCK"]
# [inline (always)]
pub fn dmactl_dmatm_rptblck (self) -> & 'a mut crate :: W < REG > { self . variant (DMACTL_DMATM_A :: DMACTL_DMATM_RPTBLCK) } } impl R { # [doc = "Bit 0 - DMA request. Software-controlled DMA start. DMAREQ is reset automatically."]
# [inline (always)]
pub fn dmactl_dmareq (& self) -> DMACTL_DMAREQ_R { DMACTL_DMAREQ_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - DMA enable"]
# [inline (always)]
pub fn dmactl_dmaen (& self) -> DMACTL_DMAEN_R { DMACTL_DMAEN_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bits 4:6 - Enable an early IRQ event. This can help software to react quicker to and DMA done event or allows some additional configuration before the channel is complete. Note: This register is only available in a FULL-channel configuration. Please consult the datasheet of the specific device to map which channel number has FULL or BASIC capability. In a BASIC configuration this register is a read only value and always reads as 0x0."]
# [inline (always)]
pub fn dmactl_dmapreirq (& self) -> DMACTL_DMAPREIRQ_R { DMACTL_DMAPREIRQ_R :: new (((self . bits >> 4) & 7) as u8) } # [doc = "Bits 8:9 - DMA source width. This bit selects the source data width as a byte, half word, word or long word."]
# [inline (always)]
pub fn dmactl_dmasrcwdth (& self) -> DMACTL_DMASRCWDTH_R { DMACTL_DMASRCWDTH_R :: new (((self . bits >> 8) & 3) as u8) } # [doc = "Bits 12:13 - DMA destination width. This bit selects the destination as a byte, half word, word or long word."]
# [inline (always)]
pub fn dmactl_dmadstwdth (& self) -> DMACTL_DMADSTWDTH_R { DMACTL_DMADSTWDTH_R :: new (((self . bits >> 12) & 3) as u8) } # [doc = "Bits 16:19 - DMA source increment. This bit selects automatic incrementing or decrementing of the source address DMASA for each transfer. The amount of change to the DMASA is based on the definitin in the DMASRCWDTH. For example an increment of 1 (+1) on a WORD transfer will increment the DMASA by 4."]
# [inline (always)]
pub fn dmactl_dmasrcincr (& self) -> DMACTL_DMASRCINCR_R { DMACTL_DMASRCINCR_R :: new (((self . bits >> 16) & 0x0f) as u8) } # [doc = "Bits 20:23 - DMA destination increment. This bit selects automatic incrementing or decrementing of the destination address DMADA for each transfer. The amount of change to the DMADA is based on the definitin in the DMADSTWDTH. For example an increment of 1 (+1) on a WORD transfer will increment the DMADA by 4."]
# [inline (always)]
pub fn dmactl_dmadstincr (& self) -> DMACTL_DMADSTINCR_R { DMACTL_DMADSTINCR_R :: new (((self . bits >> 20) & 0x0f) as u8) } # [doc = "Bits 24:25 - DMA extended mode Note: The extended transfer modes are only available in a FULL-channel configuration. Please consult the datasheet of the specific device to map which channel number has FULL or BASIC capability. In a BASIC channel configuration this register is a read-only register and reads 0x0."]
# [inline (always)]
pub fn dmactl_dmaem (& self) -> DMACTL_DMAEM_R { DMACTL_DMAEM_R :: new (((self . bits >> 24) & 3) as u8) } # [doc = "Bits 28:29 - DMA transfer mode register Note: The repeat-single (2h) and repeat-block (3h) transfer are only available in a FULL-channel configuration. Please consult the datasheet of the specific device to map which channel number has FULL or BASIC capability. In a BASIC channel configuration only the values for single (0h) and block (1h) transfer can be set."]
# [inline (always)]
pub fn dmactl_dmatm (& self) -> DMACTL_DMATM_R { DMACTL_DMATM_R :: new (((self . bits >> 28) & 3) as u8) } } impl W { # [doc = "Bit 0 - DMA request. Software-controlled DMA start. DMAREQ is reset automatically."]
# [inline (always)]
# [must_use]
pub fn dmactl_dmareq (& mut self) -> DMACTL_DMAREQ_W < DMACTL_SPEC , 0 > { DMACTL_DMAREQ_W :: new (self) } # [doc = "Bit 1 - DMA enable"]
# [inline (always)]
# [must_use]
pub fn dmactl_dmaen (& mut self) -> DMACTL_DMAEN_W < DMACTL_SPEC , 1 > { DMACTL_DMAEN_W :: new (self) } # [doc = "Bits 4:6 - Enable an early IRQ event. This can help software to react quicker to and DMA done event or allows some additional configuration before the channel is complete. Note: This register is only available in a FULL-channel configuration. Please consult the datasheet of the specific device to map which channel number has FULL or BASIC capability. In a BASIC configuration this register is a read only value and always reads as 0x0."]
# [inline (always)]
# [must_use]
pub fn dmactl_dmapreirq (& mut self) -> DMACTL_DMAPREIRQ_W < DMACTL_SPEC , 4 > { DMACTL_DMAPREIRQ_W :: new (self) } # [doc = "Bits 8:9 - DMA source width. This bit selects the source data width as a byte, half word, word or long word."]
# [inline (always)]
# [must_use]
pub fn dmactl_dmasrcwdth (& mut self) -> DMACTL_DMASRCWDTH_W < DMACTL_SPEC , 8 > { DMACTL_DMASRCWDTH_W :: new (self) } # [doc = "Bits 12:13 - DMA destination width. This bit selects the destination as a byte, half word, word or long word."]
# [inline (always)]
# [must_use]
pub fn dmactl_dmadstwdth (& mut self) -> DMACTL_DMADSTWDTH_W < DMACTL_SPEC , 12 > { DMACTL_DMADSTWDTH_W :: new (self) } # [doc = "Bits 16:19 - DMA source increment. This bit selects automatic incrementing or decrementing of the source address DMASA for each transfer. The amount of change to the DMASA is based on the definitin in the DMASRCWDTH. For example an increment of 1 (+1) on a WORD transfer will increment the DMASA by 4."]
# [inline (always)]
# [must_use]
pub fn dmactl_dmasrcincr (& mut self) -> DMACTL_DMASRCINCR_W < DMACTL_SPEC , 16 > { DMACTL_DMASRCINCR_W :: new (self) } # [doc = "Bits 20:23 - DMA destination increment. This bit selects automatic incrementing or decrementing of the destination address DMADA for each transfer. The amount of change to the DMADA is based on the definitin in the DMADSTWDTH. For example an increment of 1 (+1) on a WORD transfer will increment the DMADA by 4."]
# [inline (always)]
# [must_use]
pub fn dmactl_dmadstincr (& mut self) -> DMACTL_DMADSTINCR_W < DMACTL_SPEC , 20 > { DMACTL_DMADSTINCR_W :: new (self) } # [doc = "Bits 24:25 - DMA extended mode Note: The extended transfer modes are only available in a FULL-channel configuration. Please consult the datasheet of the specific device to map which channel number has FULL or BASIC capability. In a BASIC channel configuration this register is a read-only register and reads 0x0."]
# [inline (always)]
# [must_use]
pub fn dmactl_dmaem (& mut self) -> DMACTL_DMAEM_W < DMACTL_SPEC , 24 > { DMACTL_DMAEM_W :: new (self) } # [doc = "Bits 28:29 - DMA transfer mode register Note: The repeat-single (2h) and repeat-block (3h) transfer are only available in a FULL-channel configuration. Please consult the datasheet of the specific device to map which channel number has FULL or BASIC capability. In a BASIC channel configuration only the values for single (0h) and block (1h) transfer can be set."]
# [inline (always)]
# [must_use]
pub fn dmactl_dmatm (& mut self) -> DMACTL_DMATM_W < DMACTL_SPEC , 28 > { DMACTL_DMATM_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "DMA Channel Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`dmactl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dmactl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DMACTL_SPEC ; impl crate :: RegisterSpec for DMACTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`dmactl::R`](R) reader structure"]
impl crate :: Readable for DMACTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`dmactl::W`](W) writer structure"]
impl crate :: Writable for DMACTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets DMACTL to value 0"]
impl crate :: Resettable for DMACTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DMASA (rw) register accessor: DMA Channel Source Address\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`dmasa::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dmasa::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dmasa`]
module"]
pub type DMASA = crate :: Reg < dmasa :: DMASA_SPEC > ; # [doc = "DMA Channel Source Address"]
pub mod dmasa { # [doc = "Register `DMASA` reader"]
pub type R = crate :: R < DMASA_SPEC > ; # [doc = "Register `DMASA` writer"]
pub type W = crate :: W < DMASA_SPEC > ; # [doc = "Field `DMASA_ADDR` reader - DMA Channel Source Address"]
pub type DMASA_ADDR_R = crate :: FieldReader < u32 > ; # [doc = "Field `DMASA_ADDR` writer - DMA Channel Source Address"]
pub type DMASA_ADDR_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 32 , O , u32 > ; impl R { # [doc = "Bits 0:31 - DMA Channel Source Address"]
# [inline (always)]
pub fn dmasa_addr (& self) -> DMASA_ADDR_R { DMASA_ADDR_R :: new (self . bits) } } impl W { # [doc = "Bits 0:31 - DMA Channel Source Address"]
# [inline (always)]
# [must_use]
pub fn dmasa_addr (& mut self) -> DMASA_ADDR_W < DMASA_SPEC , 0 > { DMASA_ADDR_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "DMA Channel Source Address\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`dmasa::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dmasa::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DMASA_SPEC ; impl crate :: RegisterSpec for DMASA_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`dmasa::R`](R) reader structure"]
impl crate :: Readable for DMASA_SPEC { } # [doc = "`write(|w| ..)` method takes [`dmasa::W`](W) writer structure"]
impl crate :: Writable for DMASA_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets DMASA to value 0"]
impl crate :: Resettable for DMASA_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DMADA (rw) register accessor: DMA Channel Destination Address\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`dmada::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dmada::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dmada`]
module"]
pub type DMADA = crate :: Reg < dmada :: DMADA_SPEC > ; # [doc = "DMA Channel Destination Address"]
pub mod dmada { # [doc = "Register `DMADA` reader"]
pub type R = crate :: R < DMADA_SPEC > ; # [doc = "Register `DMADA` writer"]
pub type W = crate :: W < DMADA_SPEC > ; # [doc = "Field `DMADA_ADDR` reader - DMA Channel Destination Address"]
pub type DMADA_ADDR_R = crate :: FieldReader < u32 > ; # [doc = "Field `DMADA_ADDR` writer - DMA Channel Destination Address"]
pub type DMADA_ADDR_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 32 , O , u32 > ; impl R { # [doc = "Bits 0:31 - DMA Channel Destination Address"]
# [inline (always)]
pub fn dmada_addr (& self) -> DMADA_ADDR_R { DMADA_ADDR_R :: new (self . bits) } } impl W { # [doc = "Bits 0:31 - DMA Channel Destination Address"]
# [inline (always)]
# [must_use]
pub fn dmada_addr (& mut self) -> DMADA_ADDR_W < DMADA_SPEC , 0 > { DMADA_ADDR_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "DMA Channel Destination Address\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`dmada::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dmada::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DMADA_SPEC ; impl crate :: RegisterSpec for DMADA_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`dmada::R`](R) reader structure"]
impl crate :: Readable for DMADA_SPEC { } # [doc = "`write(|w| ..)` method takes [`dmada::W`](W) writer structure"]
impl crate :: Writable for DMADA_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets DMADA to value 0"]
impl crate :: Resettable for DMADA_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DMASZ (rw) register accessor: DMA Channel Size\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`dmasz::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dmasz::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dmasz`]
module"]
pub type DMASZ = crate :: Reg < dmasz :: DMASZ_SPEC > ; # [doc = "DMA Channel Size"]
pub mod dmasz { # [doc = "Register `DMASZ` reader"]
pub type R = crate :: R < DMASZ_SPEC > ; # [doc = "Register `DMASZ` writer"]
pub type W = crate :: W < DMASZ_SPEC > ; # [doc = "Field `DMASZ_SIZE` reader - DMA Channel Size in number of transfers"]
pub type DMASZ_SIZE_R = crate :: FieldReader < u16 > ; # [doc = "Field `DMASZ_SIZE` writer - DMA Channel Size in number of transfers"]
pub type DMASZ_SIZE_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 16 , O , u16 > ; impl R { # [doc = "Bits 0:15 - DMA Channel Size in number of transfers"]
# [inline (always)]
pub fn dmasz_size (& self) -> DMASZ_SIZE_R { DMASZ_SIZE_R :: new ((self . bits & 0xffff) as u16) } } impl W { # [doc = "Bits 0:15 - DMA Channel Size in number of transfers"]
# [inline (always)]
# [must_use]
pub fn dmasz_size (& mut self) -> DMASZ_SIZE_W < DMASZ_SPEC , 0 > { DMASZ_SIZE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "DMA Channel Size\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`dmasz::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`dmasz::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DMASZ_SPEC ; impl crate :: RegisterSpec for DMASZ_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`dmasz::R`](R) reader structure"]
impl crate :: Readable for DMASZ_SPEC { } # [doc = "`write(|w| ..)` method takes [`dmasz::W`](W) writer structure"]
impl crate :: Writable for DMASZ_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets DMASZ to value 0"]
impl crate :: Resettable for DMASZ_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } } # [doc = "PERIPHERALREGION"]
pub struct COMP0 { _marker : PhantomData < * const () > } unsafe impl Send for COMP0 { } impl COMP0 { # [doc = r"Pointer to the register block"]
pub const PTR : * const comp0 :: RegisterBlock = 0x4000_8000 as * const _ ; # [doc = r"Return the pointer to the register block"]
# [inline (always)]
pub const fn ptr () -> * const comp0 :: RegisterBlock { Self :: PTR } # [doc = r" Steal an instance of this peripheral"]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Ensure that the new instance of the peripheral cannot be used in a way"]
# [doc = r" that may race with any existing instances, for example by only"]
# [doc = r" accessing read-only or write-only registers, or by consuming the"]
# [doc = r" original peripheral and using critical sections to coordinate"]
# [doc = r" access between multiple new instances."]
# [doc = r""]
# [doc = r" Additionally, other software such as HALs may rely on only one"]
# [doc = r" peripheral instance existing to ensure memory safety; ensure"]
# [doc = r" no stolen instances are passed to such software."]
pub unsafe fn steal () -> Self { Self { _marker : PhantomData } } } impl Deref for COMP0 { type Target = comp0 :: RegisterBlock ; # [inline (always)]
fn deref (& self) -> & Self :: Target { unsafe { & * Self :: PTR } } } impl core :: fmt :: Debug for COMP0 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("COMP0") . finish () } } # [doc = "PERIPHERALREGION"]
pub mod comp0 { # [doc = r"Register block"]
# [repr (C)]
pub struct RegisterBlock { _reserved0 : [u8 ; 0x0400]
, # [doc = "0x400 - Subscriber Port 0"]
pub fsub_0 : FSUB_0 , # [doc = "0x404 - Subscriber Port 1"]
pub fsub_1 : FSUB_1 , _reserved2 : [u8 ; 0x3c]
, # [doc = "0x444 - Publisher port 1"]
pub fpub_1 : FPUB_1 , _reserved3 : [u8 ; 0x03b8]
, # [doc = "0x800 - Power enable"]
pub pwren : PWREN , # [doc = "0x804 - Reset Control"]
pub rstctl : RSTCTL , # [doc = "0x808 - Peripheral Clock Configuration Register"]
pub clkcfg : CLKCFG , _reserved6 : [u8 ; 0x08]
, # [doc = "0x814 - Status Register"]
pub gprcm_stat : GPRCM_STAT , _reserved7 : [u8 ; 0x0808]
, # [doc = "0x1020 - Interrupt index"]
pub iidx : IIDX , _reserved8 : [u8 ; 0x04]
, # [doc = "0x1028 - Interrupt mask"]
pub imask : IMASK , _reserved9 : [u8 ; 0x04]
, # [doc = "0x1030 - Raw interrupt status"]
pub ris : RIS , _reserved10 : [u8 ; 0x04]
, # [doc = "0x1038 - Masked interrupt status"]
pub mis : MIS , _reserved11 : [u8 ; 0x04]
, # [doc = "0x1040 - Interrupt set"]
pub iset : ISET , _reserved12 : [u8 ; 0x04]
, # [doc = "0x1048 - Interrupt clear"]
pub iclr : ICLR , _reserved13 : [u8 ; 0x94]
, # [doc = "0x10e0 - Event Mode"]
pub evt_mode : EVT_MODE , _reserved14 : [u8 ; 0x18]
, # [doc = "0x10fc - Module Description"]
pub desc : DESC , # [doc = "0x1100 - Control 0"]
pub ctl0 : CTL0 , # [doc = "0x1104 - Control 1"]
pub ctl1 : CTL1 , # [doc = "0x1108 - Control 2"]
pub ctl2 : CTL2 , # [doc = "0x110c - Control 3"]
pub ctl3 : CTL3 , _reserved19 : [u8 ; 0x10]
, # [doc = "0x1120 - Status"]
pub stat : STAT , } # [doc = "FSUB_0 (rw) register accessor: Subscriber Port 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fsub_0`]
module"]
pub type FSUB_0 = crate :: Reg < fsub_0 :: FSUB_0_SPEC > ; # [doc = "Subscriber Port 0"]
pub mod fsub_0 { # [doc = "Register `FSUB_0` reader"]
pub type R = crate :: R < FSUB_0_SPEC > ; # [doc = "Register `FSUB_0` writer"]
pub type W = crate :: W < FSUB_0_SPEC > ; # [doc = "Field `FSUB_0_CHANID` reader - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FSUB_0_CHANID_R = crate :: FieldReader < FSUB_0_CHANID_A > ; # [doc = "0 = disconnected. 1-15 = connected to channelID = CHANID.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FSUB_0_CHANID_A { # [doc = "0: UNCONNECTED"]
FSUB_0_CHANID_UNCONNECTED = 0 , } impl From < FSUB_0_CHANID_A > for u8 { # [inline (always)]
fn from (variant : FSUB_0_CHANID_A) -> Self { variant as _ } } impl crate :: FieldSpec for FSUB_0_CHANID_A { type Ux = u8 ; } impl FSUB_0_CHANID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < FSUB_0_CHANID_A > { match self . bits { 0 => Some (FSUB_0_CHANID_A :: FSUB_0_CHANID_UNCONNECTED) , _ => None , } } # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn is_fsub_0_chanid_unconnected (& self) -> bool { * self == FSUB_0_CHANID_A :: FSUB_0_CHANID_UNCONNECTED } } # [doc = "Field `FSUB_0_CHANID` writer - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FSUB_0_CHANID_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , FSUB_0_CHANID_A > ; impl < 'a , REG , const O : u8 > FSUB_0_CHANID_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn fsub_0_chanid_unconnected (self) -> & 'a mut crate :: W < REG > { self . variant (FSUB_0_CHANID_A :: FSUB_0_CHANID_UNCONNECTED) } } impl R { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
pub fn fsub_0_chanid (& self) -> FSUB_0_CHANID_R { FSUB_0_CHANID_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
# [must_use]
pub fn fsub_0_chanid (& mut self) -> FSUB_0_CHANID_W < FSUB_0_SPEC , 0 > { FSUB_0_CHANID_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Subscriber Port 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_0::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FSUB_0_SPEC ; impl crate :: RegisterSpec for FSUB_0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fsub_0::R`](R) reader structure"]
impl crate :: Readable for FSUB_0_SPEC { } # [doc = "`write(|w| ..)` method takes [`fsub_0::W`](W) writer structure"]
impl crate :: Writable for FSUB_0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FSUB_0 to value 0"]
impl crate :: Resettable for FSUB_0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "FSUB_1 (rw) register accessor: Subscriber Port 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fsub_1`]
module"]
pub type FSUB_1 = crate :: Reg < fsub_1 :: FSUB_1_SPEC > ; # [doc = "Subscriber Port 1"]
pub mod fsub_1 { # [doc = "Register `FSUB_1` reader"]
pub type R = crate :: R < FSUB_1_SPEC > ; # [doc = "Register `FSUB_1` writer"]
pub type W = crate :: W < FSUB_1_SPEC > ; # [doc = "Field `FSUB_1_CHANID` reader - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FSUB_1_CHANID_R = crate :: FieldReader < FSUB_1_CHANID_A > ; # [doc = "0 = disconnected. 1-15 = connected to channelID = CHANID.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FSUB_1_CHANID_A { # [doc = "0: UNCONNECTED"]
FSUB_1_CHANID_UNCONNECTED = 0 , } impl From < FSUB_1_CHANID_A > for u8 { # [inline (always)]
fn from (variant : FSUB_1_CHANID_A) -> Self { variant as _ } } impl crate :: FieldSpec for FSUB_1_CHANID_A { type Ux = u8 ; } impl FSUB_1_CHANID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < FSUB_1_CHANID_A > { match self . bits { 0 => Some (FSUB_1_CHANID_A :: FSUB_1_CHANID_UNCONNECTED) , _ => None , } } # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn is_fsub_1_chanid_unconnected (& self) -> bool { * self == FSUB_1_CHANID_A :: FSUB_1_CHANID_UNCONNECTED } } # [doc = "Field `FSUB_1_CHANID` writer - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FSUB_1_CHANID_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , FSUB_1_CHANID_A > ; impl < 'a , REG , const O : u8 > FSUB_1_CHANID_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn fsub_1_chanid_unconnected (self) -> & 'a mut crate :: W < REG > { self . variant (FSUB_1_CHANID_A :: FSUB_1_CHANID_UNCONNECTED) } } impl R { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
pub fn fsub_1_chanid (& self) -> FSUB_1_CHANID_R { FSUB_1_CHANID_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
# [must_use]
pub fn fsub_1_chanid (& mut self) -> FSUB_1_CHANID_W < FSUB_1_SPEC , 0 > { FSUB_1_CHANID_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Subscriber Port 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_1::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FSUB_1_SPEC ; impl crate :: RegisterSpec for FSUB_1_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fsub_1::R`](R) reader structure"]
impl crate :: Readable for FSUB_1_SPEC { } # [doc = "`write(|w| ..)` method takes [`fsub_1::W`](W) writer structure"]
impl crate :: Writable for FSUB_1_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FSUB_1 to value 0"]
impl crate :: Resettable for FSUB_1_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "FPUB_1 (rw) register accessor: Publisher port 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fpub_1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fpub_1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fpub_1`]
module"]
pub type FPUB_1 = crate :: Reg < fpub_1 :: FPUB_1_SPEC > ; # [doc = "Publisher port 1"]
pub mod fpub_1 { # [doc = "Register `FPUB_1` reader"]
pub type R = crate :: R < FPUB_1_SPEC > ; # [doc = "Register `FPUB_1` writer"]
pub type W = crate :: W < FPUB_1_SPEC > ; # [doc = "Field `FPUB_1_CHANID` reader - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FPUB_1_CHANID_R = crate :: FieldReader < FPUB_1_CHANID_A > ; # [doc = "0 = disconnected. 1-15 = connected to channelID = CHANID.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FPUB_1_CHANID_A { # [doc = "0: UNCONNECTED"]
FPUB_1_CHANID_UNCONNECTED = 0 , } impl From < FPUB_1_CHANID_A > for u8 { # [inline (always)]
fn from (variant : FPUB_1_CHANID_A) -> Self { variant as _ } } impl crate :: FieldSpec for FPUB_1_CHANID_A { type Ux = u8 ; } impl FPUB_1_CHANID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < FPUB_1_CHANID_A > { match self . bits { 0 => Some (FPUB_1_CHANID_A :: FPUB_1_CHANID_UNCONNECTED) , _ => None , } } # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn is_fpub_1_chanid_unconnected (& self) -> bool { * self == FPUB_1_CHANID_A :: FPUB_1_CHANID_UNCONNECTED } } # [doc = "Field `FPUB_1_CHANID` writer - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FPUB_1_CHANID_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , FPUB_1_CHANID_A > ; impl < 'a , REG , const O : u8 > FPUB_1_CHANID_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn fpub_1_chanid_unconnected (self) -> & 'a mut crate :: W < REG > { self . variant (FPUB_1_CHANID_A :: FPUB_1_CHANID_UNCONNECTED) } } impl R { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
pub fn fpub_1_chanid (& self) -> FPUB_1_CHANID_R { FPUB_1_CHANID_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
# [must_use]
pub fn fpub_1_chanid (& mut self) -> FPUB_1_CHANID_W < FPUB_1_SPEC , 0 > { FPUB_1_CHANID_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Publisher port 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fpub_1::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fpub_1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FPUB_1_SPEC ; impl crate :: RegisterSpec for FPUB_1_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fpub_1::R`](R) reader structure"]
impl crate :: Readable for FPUB_1_SPEC { } # [doc = "`write(|w| ..)` method takes [`fpub_1::W`](W) writer structure"]
impl crate :: Writable for FPUB_1_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FPUB_1 to value 0"]
impl crate :: Resettable for FPUB_1_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "PWREN (rw) register accessor: Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pwren`]
module"]
pub type PWREN = crate :: Reg < pwren :: PWREN_SPEC > ; # [doc = "Power enable"]
pub mod pwren { # [doc = "Register `PWREN` reader"]
pub type R = crate :: R < PWREN_SPEC > ; # [doc = "Register `PWREN` writer"]
pub type W = crate :: W < PWREN_SPEC > ; # [doc = "Field `PWREN_ENABLE` reader - Enable the power"]
pub type PWREN_ENABLE_R = crate :: BitReader < PWREN_ENABLE_A > ; # [doc = "Enable the power\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PWREN_ENABLE_A { # [doc = "0: DISABLE"]
PWREN_ENABLE_DISABLE = 0 , # [doc = "1: ENABLE"]
PWREN_ENABLE_ENABLE = 1 , } impl From < PWREN_ENABLE_A > for bool { # [inline (always)]
fn from (variant : PWREN_ENABLE_A) -> Self { variant as u8 != 0 } } impl PWREN_ENABLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PWREN_ENABLE_A { match self . bits { false => PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE , true => PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_pwren_enable_disable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_pwren_enable_enable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE } } # [doc = "Field `PWREN_ENABLE` writer - Enable the power"]
pub type PWREN_ENABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PWREN_ENABLE_A > ; impl < 'a , REG , const O : u8 > PWREN_ENABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn pwren_enable_disable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn pwren_enable_enable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE) } } # [doc = "KEY to allow Power State Change\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum PWREN_KEY_AW { # [doc = "38: _TO_UNLOCK_W_"]
PWREN_KEY_UNLOCK_W = 38 , } impl From < PWREN_KEY_AW > for u8 { # [inline (always)]
fn from (variant : PWREN_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for PWREN_KEY_AW { type Ux = u8 ; } # [doc = "Field `PWREN_KEY` writer - KEY to allow Power State Change"]
pub type PWREN_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , PWREN_KEY_AW > ; impl < 'a , REG , const O : u8 > PWREN_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn pwren_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_KEY_AW :: PWREN_KEY_UNLOCK_W) } } impl R { # [doc = "Bit 0 - Enable the power"]
# [inline (always)]
pub fn pwren_enable (& self) -> PWREN_ENABLE_R { PWREN_ENABLE_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - Enable the power"]
# [inline (always)]
# [must_use]
pub fn pwren_enable (& mut self) -> PWREN_ENABLE_W < PWREN_SPEC , 0 > { PWREN_ENABLE_W :: new (self) } # [doc = "Bits 24:31 - KEY to allow Power State Change"]
# [inline (always)]
# [must_use]
pub fn pwren_key (& mut self) -> PWREN_KEY_W < PWREN_SPEC , 24 > { PWREN_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PWREN_SPEC ; impl crate :: RegisterSpec for PWREN_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pwren::R`](R) reader structure"]
impl crate :: Readable for PWREN_SPEC { } # [doc = "`write(|w| ..)` method takes [`pwren::W`](W) writer structure"]
impl crate :: Writable for PWREN_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PWREN to value 0"]
impl crate :: Resettable for PWREN_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RSTCTL (w) register accessor: Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rstctl`]
module"]
pub type RSTCTL = crate :: Reg < rstctl :: RSTCTL_SPEC > ; # [doc = "Reset Control"]
pub mod rstctl { # [doc = "Register `RSTCTL` writer"]
pub type W = crate :: W < RSTCTL_SPEC > ; # [doc = "Assert reset to the peripheral\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETASSERT_AW { # [doc = "0: NOP"]
RSTCTL_RESETASSERT_NOP = 0 , # [doc = "1: ASSERT"]
RSTCTL_RESETASSERT_ASSERT = 1 , } impl From < RSTCTL_RESETASSERT_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETASSERT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETASSERT` writer - Assert reset to the peripheral"]
pub type RSTCTL_RESETASSERT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETASSERT_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETASSERT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetassert_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_NOP) } # [doc = "ASSERT"]
# [inline (always)]
pub fn rstctl_resetassert_assert (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_ASSERT) } } # [doc = "Clear the RESETSTKY bit in the STAT register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETSTKYCLR_AW { # [doc = "0: NOP"]
RSTCTL_RESETSTKYCLR_NOP = 0 , # [doc = "1: CLR"]
RSTCTL_RESETSTKYCLR_CLR = 1 , } impl From < RSTCTL_RESETSTKYCLR_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETSTKYCLR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETSTKYCLR` writer - Clear the RESETSTKY bit in the STAT register"]
pub type RSTCTL_RESETSTKYCLR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETSTKYCLR_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETSTKYCLR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetstkyclr_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_NOP) } # [doc = "CLR"]
# [inline (always)]
pub fn rstctl_resetstkyclr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_CLR) } } # [doc = "Unlock key\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum RSTCTL_KEY_AW { # [doc = "177: _TO_UNLOCK_W_"]
RSTCTL_KEY_UNLOCK_W = 177 , } impl From < RSTCTL_KEY_AW > for u8 { # [inline (always)]
fn from (variant : RSTCTL_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for RSTCTL_KEY_AW { type Ux = u8 ; } # [doc = "Field `RSTCTL_KEY` writer - Unlock key"]
pub type RSTCTL_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , RSTCTL_KEY_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn rstctl_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_KEY_AW :: RSTCTL_KEY_UNLOCK_W) } } impl W { # [doc = "Bit 0 - Assert reset to the peripheral"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetassert (& mut self) -> RSTCTL_RESETASSERT_W < RSTCTL_SPEC , 0 > { RSTCTL_RESETASSERT_W :: new (self) } # [doc = "Bit 1 - Clear the RESETSTKY bit in the STAT register"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetstkyclr (& mut self) -> RSTCTL_RESETSTKYCLR_W < RSTCTL_SPEC , 1 > { RSTCTL_RESETSTKYCLR_W :: new (self) } # [doc = "Bits 24:31 - Unlock key"]
# [inline (always)]
# [must_use]
pub fn rstctl_key (& mut self) -> RSTCTL_KEY_W < RSTCTL_SPEC , 24 > { RSTCTL_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RSTCTL_SPEC ; impl crate :: RegisterSpec for RSTCTL_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`rstctl::W`](W) writer structure"]
impl crate :: Writable for RSTCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets RSTCTL to value 0"]
impl crate :: Resettable for RSTCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CLKCFG (rw) register accessor: Peripheral Clock Configuration Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkcfg::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkcfg::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clkcfg`]
module"]
pub type CLKCFG = crate :: Reg < clkcfg :: CLKCFG_SPEC > ; # [doc = "Peripheral Clock Configuration Register"]
pub mod clkcfg { # [doc = "Register `CLKCFG` reader"]
pub type R = crate :: R < CLKCFG_SPEC > ; # [doc = "Register `CLKCFG` writer"]
pub type W = crate :: W < CLKCFG_SPEC > ; # [doc = "Field `CLKCFG_BLOCKASYNC` reader - Async Clock Request is blocked from starting SYSOSC or forcing bus clock to 32MHz"]
pub type CLKCFG_BLOCKASYNC_R = crate :: BitReader < CLKCFG_BLOCKASYNC_A > ; # [doc = "Async Clock Request is blocked from starting SYSOSC or forcing bus clock to 32MHz\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKCFG_BLOCKASYNC_A { # [doc = "0: DISABLE"]
CLKCFG_BLOCKASYNC_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKCFG_BLOCKASYNC_ENABLE = 1 , } impl From < CLKCFG_BLOCKASYNC_A > for bool { # [inline (always)]
fn from (variant : CLKCFG_BLOCKASYNC_A) -> Self { variant as u8 != 0 } } impl CLKCFG_BLOCKASYNC_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKCFG_BLOCKASYNC_A { match self . bits { false => CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_DISABLE , true => CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clkcfg_blockasync_disable (& self) -> bool { * self == CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clkcfg_blockasync_enable (& self) -> bool { * self == CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_ENABLE } } # [doc = "Field `CLKCFG_BLOCKASYNC` writer - Async Clock Request is blocked from starting SYSOSC or forcing bus clock to 32MHz"]
pub type CLKCFG_BLOCKASYNC_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKCFG_BLOCKASYNC_A > ; impl < 'a , REG , const O : u8 > CLKCFG_BLOCKASYNC_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clkcfg_blockasync_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clkcfg_blockasync_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_ENABLE) } } # [doc = "KEY to Allow State Change -- 0xA9\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CLKCFG_KEY_AW { # [doc = "169: _UNLOCK_W_"]
CLKCFG_KEY_UNLOCK = 169 , } impl From < CLKCFG_KEY_AW > for u8 { # [inline (always)]
fn from (variant : CLKCFG_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for CLKCFG_KEY_AW { type Ux = u8 ; } # [doc = "Field `CLKCFG_KEY` writer - KEY to Allow State Change -- 0xA9"]
pub type CLKCFG_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , CLKCFG_KEY_AW > ; impl < 'a , REG , const O : u8 > CLKCFG_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_UNLOCK_W_"]
# [inline (always)]
pub fn clkcfg_key_unlock (self) -> & 'a mut crate :: W < REG > { self . variant (CLKCFG_KEY_AW :: CLKCFG_KEY_UNLOCK) } } impl R { # [doc = "Bit 8 - Async Clock Request is blocked from starting SYSOSC or forcing bus clock to 32MHz"]
# [inline (always)]
pub fn clkcfg_blockasync (& self) -> CLKCFG_BLOCKASYNC_R { CLKCFG_BLOCKASYNC_R :: new (((self . bits >> 8) & 1) != 0) } } impl W { # [doc = "Bit 8 - Async Clock Request is blocked from starting SYSOSC or forcing bus clock to 32MHz"]
# [inline (always)]
# [must_use]
pub fn clkcfg_blockasync (& mut self) -> CLKCFG_BLOCKASYNC_W < CLKCFG_SPEC , 8 > { CLKCFG_BLOCKASYNC_W :: new (self) } # [doc = "Bits 24:31 - KEY to Allow State Change -- 0xA9"]
# [inline (always)]
# [must_use]
pub fn clkcfg_key (& mut self) -> CLKCFG_KEY_W < CLKCFG_SPEC , 24 > { CLKCFG_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Peripheral Clock Configuration Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkcfg::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkcfg::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CLKCFG_SPEC ; impl crate :: RegisterSpec for CLKCFG_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`clkcfg::R`](R) reader structure"]
impl crate :: Readable for CLKCFG_SPEC { } # [doc = "`write(|w| ..)` method takes [`clkcfg::W`](W) writer structure"]
impl crate :: Writable for CLKCFG_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CLKCFG to value 0"]
impl crate :: Resettable for CLKCFG_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "GPRCM_STAT (r) register accessor: Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gprcm_stat::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gprcm_stat`]
module"]
pub type GPRCM_STAT = crate :: Reg < gprcm_stat :: GPRCM_STAT_SPEC > ; # [doc = "Status Register"]
pub mod gprcm_stat { # [doc = "Register `GPRCM_STAT` reader"]
pub type R = crate :: R < GPRCM_STAT_SPEC > ; # [doc = "Field `GPRCM_STAT_RESETSTKY` reader - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
pub type GPRCM_STAT_RESETSTKY_R = crate :: BitReader < GPRCM_STAT_RESETSTKY_A > ; # [doc = "This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum GPRCM_STAT_RESETSTKY_A { # [doc = "0: NORES"]
GPRCM_STAT_RESETSTKY_NORES = 0 , # [doc = "1: RESET"]
GPRCM_STAT_RESETSTKY_RESET = 1 , } impl From < GPRCM_STAT_RESETSTKY_A > for bool { # [inline (always)]
fn from (variant : GPRCM_STAT_RESETSTKY_A) -> Self { variant as u8 != 0 } } impl GPRCM_STAT_RESETSTKY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> GPRCM_STAT_RESETSTKY_A { match self . bits { false => GPRCM_STAT_RESETSTKY_A :: GPRCM_STAT_RESETSTKY_NORES , true => GPRCM_STAT_RESETSTKY_A :: GPRCM_STAT_RESETSTKY_RESET , } } # [doc = "NORES"]
# [inline (always)]
pub fn is_gprcm_stat_resetstky_nores (& self) -> bool { * self == GPRCM_STAT_RESETSTKY_A :: GPRCM_STAT_RESETSTKY_NORES } # [doc = "RESET"]
# [inline (always)]
pub fn is_gprcm_stat_resetstky_reset (& self) -> bool { * self == GPRCM_STAT_RESETSTKY_A :: GPRCM_STAT_RESETSTKY_RESET } } impl R { # [doc = "Bit 16 - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
# [inline (always)]
pub fn gprcm_stat_resetstky (& self) -> GPRCM_STAT_RESETSTKY_R { GPRCM_STAT_RESETSTKY_R :: new (((self . bits >> 16) & 1) != 0) } } # [doc = "Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gprcm_stat::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct GPRCM_STAT_SPEC ; impl crate :: RegisterSpec for GPRCM_STAT_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`gprcm_stat::R`](R) reader structure"]
impl crate :: Readable for GPRCM_STAT_SPEC { } # [doc = "`reset()` method sets GPRCM_STAT to value 0"]
impl crate :: Resettable for GPRCM_STAT_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "IIDX (r) register accessor: Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@iidx`]
module"]
pub type IIDX = crate :: Reg < iidx :: IIDX_SPEC > ; # [doc = "Interrupt index"]
pub mod iidx { # [doc = "Register `IIDX` reader"]
pub type R = crate :: R < IIDX_SPEC > ; # [doc = "Field `IIDX_STAT` reader - Interrupt index status"]
pub type IIDX_STAT_R = crate :: FieldReader < IIDX_STAT_A > ; # [doc = "Interrupt index status\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum IIDX_STAT_A { # [doc = "0: NO_INTR"]
IIDX_STAT_NO_INTR = 0 , # [doc = "1: OUTRDYIFG"]
IIDX_STAT_OUTRDYIFG = 1 , # [doc = "2: COMPIFG"]
IIDX_STAT_COMPIFG = 2 , # [doc = "3: COMPINVIFG"]
IIDX_STAT_COMPINVIFG = 3 , } impl From < IIDX_STAT_A > for u8 { # [inline (always)]
fn from (variant : IIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for IIDX_STAT_A { type Ux = u8 ; } impl IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IIDX_STAT_A { match self . bits { 0 => IIDX_STAT_A :: IIDX_STAT_NO_INTR , 1 => IIDX_STAT_A :: IIDX_STAT_OUTRDYIFG , 2 => IIDX_STAT_A :: IIDX_STAT_COMPIFG , 3 => IIDX_STAT_A :: IIDX_STAT_COMPINVIFG , _ => unreachable ! () , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_iidx_stat_no_intr (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_NO_INTR } # [doc = "OUTRDYIFG"]
# [inline (always)]
pub fn is_iidx_stat_outrdyifg (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_OUTRDYIFG } # [doc = "COMPIFG"]
# [inline (always)]
pub fn is_iidx_stat_compifg (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_COMPIFG } # [doc = "COMPINVIFG"]
# [inline (always)]
pub fn is_iidx_stat_compinvifg (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_COMPINVIFG } } impl R { # [doc = "Bits 0:1 - Interrupt index status"]
# [inline (always)]
pub fn iidx_stat (& self) -> IIDX_STAT_R { IIDX_STAT_R :: new ((self . bits & 3) as u8) } } # [doc = "Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IIDX_SPEC ; impl crate :: RegisterSpec for IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`iidx::R`](R) reader structure"]
impl crate :: Readable for IIDX_SPEC { } # [doc = "`reset()` method sets IIDX to value 0"]
impl crate :: Resettable for IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "IMASK (rw) register accessor: Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`imask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`imask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@imask`]
module"]
pub type IMASK = crate :: Reg < imask :: IMASK_SPEC > ; # [doc = "Interrupt mask"]
pub mod imask { # [doc = "Register `IMASK` reader"]
pub type R = crate :: R < IMASK_SPEC > ; # [doc = "Register `IMASK` writer"]
pub type W = crate :: W < IMASK_SPEC > ; # [doc = "Field `IMASK_COMPIFG` reader - Masks COMPIFG"]
pub type IMASK_COMPIFG_R = crate :: BitReader < IMASK_COMPIFG_A > ; # [doc = "Masks COMPIFG\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_COMPIFG_A { # [doc = "0: CLR"]
IMASK_COMPIFG_CLR = 0 , # [doc = "1: SET"]
IMASK_COMPIFG_SET = 1 , } impl From < IMASK_COMPIFG_A > for bool { # [inline (always)]
fn from (variant : IMASK_COMPIFG_A) -> Self { variant as u8 != 0 } } impl IMASK_COMPIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_COMPIFG_A { match self . bits { false => IMASK_COMPIFG_A :: IMASK_COMPIFG_CLR , true => IMASK_COMPIFG_A :: IMASK_COMPIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_compifg_clr (& self) -> bool { * self == IMASK_COMPIFG_A :: IMASK_COMPIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_compifg_set (& self) -> bool { * self == IMASK_COMPIFG_A :: IMASK_COMPIFG_SET } } # [doc = "Field `IMASK_COMPIFG` writer - Masks COMPIFG"]
pub type IMASK_COMPIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_COMPIFG_A > ; impl < 'a , REG , const O : u8 > IMASK_COMPIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_compifg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_COMPIFG_A :: IMASK_COMPIFG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_compifg_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_COMPIFG_A :: IMASK_COMPIFG_SET) } } # [doc = "Field `IMASK_COMPINVIFG` reader - Masks COMPINVIFG"]
pub type IMASK_COMPINVIFG_R = crate :: BitReader < IMASK_COMPINVIFG_A > ; # [doc = "Masks COMPINVIFG\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_COMPINVIFG_A { # [doc = "0: CLR"]
IMASK_COMPINVIFG_CLR = 0 , # [doc = "1: SET"]
IMASK_COMPINVIFG_SET = 1 , } impl From < IMASK_COMPINVIFG_A > for bool { # [inline (always)]
fn from (variant : IMASK_COMPINVIFG_A) -> Self { variant as u8 != 0 } } impl IMASK_COMPINVIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_COMPINVIFG_A { match self . bits { false => IMASK_COMPINVIFG_A :: IMASK_COMPINVIFG_CLR , true => IMASK_COMPINVIFG_A :: IMASK_COMPINVIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_compinvifg_clr (& self) -> bool { * self == IMASK_COMPINVIFG_A :: IMASK_COMPINVIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_compinvifg_set (& self) -> bool { * self == IMASK_COMPINVIFG_A :: IMASK_COMPINVIFG_SET } } # [doc = "Field `IMASK_COMPINVIFG` writer - Masks COMPINVIFG"]
pub type IMASK_COMPINVIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_COMPINVIFG_A > ; impl < 'a , REG , const O : u8 > IMASK_COMPINVIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_compinvifg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_COMPINVIFG_A :: IMASK_COMPINVIFG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_compinvifg_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_COMPINVIFG_A :: IMASK_COMPINVIFG_SET) } } # [doc = "Field `IMASK_OUTRDYIFG` reader - Masks OUTRDYIFG"]
pub type IMASK_OUTRDYIFG_R = crate :: BitReader < IMASK_OUTRDYIFG_A > ; # [doc = "Masks OUTRDYIFG\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_OUTRDYIFG_A { # [doc = "0: CLR"]
IMASK_OUTRDYIFG_CLR = 0 , # [doc = "1: SET"]
IMASK_OUTRDYIFG_SET = 1 , } impl From < IMASK_OUTRDYIFG_A > for bool { # [inline (always)]
fn from (variant : IMASK_OUTRDYIFG_A) -> Self { variant as u8 != 0 } } impl IMASK_OUTRDYIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_OUTRDYIFG_A { match self . bits { false => IMASK_OUTRDYIFG_A :: IMASK_OUTRDYIFG_CLR , true => IMASK_OUTRDYIFG_A :: IMASK_OUTRDYIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_outrdyifg_clr (& self) -> bool { * self == IMASK_OUTRDYIFG_A :: IMASK_OUTRDYIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_outrdyifg_set (& self) -> bool { * self == IMASK_OUTRDYIFG_A :: IMASK_OUTRDYIFG_SET } } # [doc = "Field `IMASK_OUTRDYIFG` writer - Masks OUTRDYIFG"]
pub type IMASK_OUTRDYIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_OUTRDYIFG_A > ; impl < 'a , REG , const O : u8 > IMASK_OUTRDYIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_outrdyifg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_OUTRDYIFG_A :: IMASK_OUTRDYIFG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_outrdyifg_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_OUTRDYIFG_A :: IMASK_OUTRDYIFG_SET) } } impl R { # [doc = "Bit 1 - Masks COMPIFG"]
# [inline (always)]
pub fn imask_compifg (& self) -> IMASK_COMPIFG_R { IMASK_COMPIFG_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Masks COMPINVIFG"]
# [inline (always)]
pub fn imask_compinvifg (& self) -> IMASK_COMPINVIFG_R { IMASK_COMPINVIFG_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Masks OUTRDYIFG"]
# [inline (always)]
pub fn imask_outrdyifg (& self) -> IMASK_OUTRDYIFG_R { IMASK_OUTRDYIFG_R :: new (((self . bits >> 3) & 1) != 0) } } impl W { # [doc = "Bit 1 - Masks COMPIFG"]
# [inline (always)]
# [must_use]
pub fn imask_compifg (& mut self) -> IMASK_COMPIFG_W < IMASK_SPEC , 1 > { IMASK_COMPIFG_W :: new (self) } # [doc = "Bit 2 - Masks COMPINVIFG"]
# [inline (always)]
# [must_use]
pub fn imask_compinvifg (& mut self) -> IMASK_COMPINVIFG_W < IMASK_SPEC , 2 > { IMASK_COMPINVIFG_W :: new (self) } # [doc = "Bit 3 - Masks OUTRDYIFG"]
# [inline (always)]
# [must_use]
pub fn imask_outrdyifg (& mut self) -> IMASK_OUTRDYIFG_W < IMASK_SPEC , 3 > { IMASK_OUTRDYIFG_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`imask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`imask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IMASK_SPEC ; impl crate :: RegisterSpec for IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`imask::R`](R) reader structure"]
impl crate :: Readable for IMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`imask::W`](W) writer structure"]
impl crate :: Writable for IMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets IMASK to value 0"]
impl crate :: Resettable for IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RIS (r) register accessor: Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ris`]
module"]
pub type RIS = crate :: Reg < ris :: RIS_SPEC > ; # [doc = "Raw interrupt status"]
pub mod ris { # [doc = "Register `RIS` reader"]
pub type R = crate :: R < RIS_SPEC > ; # [doc = "Field `RIS_COMPIFG` reader - Raw interrupt status for comparator output interrupt flag. The IES bit defines the transition of the comparator output setting this bit."]
pub type RIS_COMPIFG_R = crate :: BitReader < RIS_COMPIFG_A > ; # [doc = "Raw interrupt status for comparator output interrupt flag. The IES bit defines the transition of the comparator output setting this bit.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_COMPIFG_A { # [doc = "0: CLR"]
RIS_COMPIFG_CLR = 0 , # [doc = "1: SET"]
RIS_COMPIFG_SET = 1 , } impl From < RIS_COMPIFG_A > for bool { # [inline (always)]
fn from (variant : RIS_COMPIFG_A) -> Self { variant as u8 != 0 } } impl RIS_COMPIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_COMPIFG_A { match self . bits { false => RIS_COMPIFG_A :: RIS_COMPIFG_CLR , true => RIS_COMPIFG_A :: RIS_COMPIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_compifg_clr (& self) -> bool { * self == RIS_COMPIFG_A :: RIS_COMPIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_compifg_set (& self) -> bool { * self == RIS_COMPIFG_A :: RIS_COMPIFG_SET } } # [doc = "Field `RIS_COMPINVIFG` reader - Raw interrupt status for comparator output inverted interrupt flag. The IES bit defines the transition of the comparator output setting this bit."]
pub type RIS_COMPINVIFG_R = crate :: BitReader < RIS_COMPINVIFG_A > ; # [doc = "Raw interrupt status for comparator output inverted interrupt flag. The IES bit defines the transition of the comparator output setting this bit.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_COMPINVIFG_A { # [doc = "0: CLR"]
RIS_COMPINVIFG_CLR = 0 , # [doc = "1: SET"]
RIS_COMPINVIFG_SET = 1 , } impl From < RIS_COMPINVIFG_A > for bool { # [inline (always)]
fn from (variant : RIS_COMPINVIFG_A) -> Self { variant as u8 != 0 } } impl RIS_COMPINVIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_COMPINVIFG_A { match self . bits { false => RIS_COMPINVIFG_A :: RIS_COMPINVIFG_CLR , true => RIS_COMPINVIFG_A :: RIS_COMPINVIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_compinvifg_clr (& self) -> bool { * self == RIS_COMPINVIFG_A :: RIS_COMPINVIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_compinvifg_set (& self) -> bool { * self == RIS_COMPINVIFG_A :: RIS_COMPINVIFG_SET } } # [doc = "Field `RIS_OUTRDYIFG` reader - Raw interrupt status for comparator output ready interrupt flag. This bit is set when the comparator output is valid."]
pub type RIS_OUTRDYIFG_R = crate :: BitReader < RIS_OUTRDYIFG_A > ; # [doc = "Raw interrupt status for comparator output ready interrupt flag. This bit is set when the comparator output is valid.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_OUTRDYIFG_A { # [doc = "0: CLR"]
RIS_OUTRDYIFG_CLR = 0 , # [doc = "1: SET"]
RIS_OUTRDYIFG_SET = 1 , } impl From < RIS_OUTRDYIFG_A > for bool { # [inline (always)]
fn from (variant : RIS_OUTRDYIFG_A) -> Self { variant as u8 != 0 } } impl RIS_OUTRDYIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_OUTRDYIFG_A { match self . bits { false => RIS_OUTRDYIFG_A :: RIS_OUTRDYIFG_CLR , true => RIS_OUTRDYIFG_A :: RIS_OUTRDYIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_outrdyifg_clr (& self) -> bool { * self == RIS_OUTRDYIFG_A :: RIS_OUTRDYIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_outrdyifg_set (& self) -> bool { * self == RIS_OUTRDYIFG_A :: RIS_OUTRDYIFG_SET } } impl R { # [doc = "Bit 1 - Raw interrupt status for comparator output interrupt flag. The IES bit defines the transition of the comparator output setting this bit."]
# [inline (always)]
pub fn ris_compifg (& self) -> RIS_COMPIFG_R { RIS_COMPIFG_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Raw interrupt status for comparator output inverted interrupt flag. The IES bit defines the transition of the comparator output setting this bit."]
# [inline (always)]
pub fn ris_compinvifg (& self) -> RIS_COMPINVIFG_R { RIS_COMPINVIFG_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Raw interrupt status for comparator output ready interrupt flag. This bit is set when the comparator output is valid."]
# [inline (always)]
pub fn ris_outrdyifg (& self) -> RIS_OUTRDYIFG_R { RIS_OUTRDYIFG_R :: new (((self . bits >> 3) & 1) != 0) } } # [doc = "Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RIS_SPEC ; impl crate :: RegisterSpec for RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ris::R`](R) reader structure"]
impl crate :: Readable for RIS_SPEC { } # [doc = "`reset()` method sets RIS to value 0"]
impl crate :: Resettable for RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "MIS (r) register accessor: Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mis`]
module"]
pub type MIS = crate :: Reg < mis :: MIS_SPEC > ; # [doc = "Masked interrupt status"]
pub mod mis { # [doc = "Register `MIS` reader"]
pub type R = crate :: R < MIS_SPEC > ; # [doc = "Field `MIS_COMPIFG` reader - Masked interrupt status for COMPIFG"]
pub type MIS_COMPIFG_R = crate :: BitReader < MIS_COMPIFG_A > ; # [doc = "Masked interrupt status for COMPIFG\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_COMPIFG_A { # [doc = "0: CLR"]
MIS_COMPIFG_CLR = 0 , # [doc = "1: SET"]
MIS_COMPIFG_SET = 1 , } impl From < MIS_COMPIFG_A > for bool { # [inline (always)]
fn from (variant : MIS_COMPIFG_A) -> Self { variant as u8 != 0 } } impl MIS_COMPIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_COMPIFG_A { match self . bits { false => MIS_COMPIFG_A :: MIS_COMPIFG_CLR , true => MIS_COMPIFG_A :: MIS_COMPIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_compifg_clr (& self) -> bool { * self == MIS_COMPIFG_A :: MIS_COMPIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_compifg_set (& self) -> bool { * self == MIS_COMPIFG_A :: MIS_COMPIFG_SET } } # [doc = "Field `MIS_COMPINVIFG` reader - Masked interrupt status for COMPINVIFG"]
pub type MIS_COMPINVIFG_R = crate :: BitReader < MIS_COMPINVIFG_A > ; # [doc = "Masked interrupt status for COMPINVIFG\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_COMPINVIFG_A { # [doc = "0: CLR"]
MIS_COMPINVIFG_CLR = 0 , # [doc = "1: SET"]
MIS_COMPINVIFG_SET = 1 , } impl From < MIS_COMPINVIFG_A > for bool { # [inline (always)]
fn from (variant : MIS_COMPINVIFG_A) -> Self { variant as u8 != 0 } } impl MIS_COMPINVIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_COMPINVIFG_A { match self . bits { false => MIS_COMPINVIFG_A :: MIS_COMPINVIFG_CLR , true => MIS_COMPINVIFG_A :: MIS_COMPINVIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_compinvifg_clr (& self) -> bool { * self == MIS_COMPINVIFG_A :: MIS_COMPINVIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_compinvifg_set (& self) -> bool { * self == MIS_COMPINVIFG_A :: MIS_COMPINVIFG_SET } } # [doc = "Field `MIS_OUTRDYIFG` reader - Masked interrupt status for OUTRDYIFG"]
pub type MIS_OUTRDYIFG_R = crate :: BitReader < MIS_OUTRDYIFG_A > ; # [doc = "Masked interrupt status for OUTRDYIFG\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_OUTRDYIFG_A { # [doc = "0: CLR"]
MIS_OUTRDYIFG_CLR = 0 , # [doc = "1: SET"]
MIS_OUTRDYIFG_SET = 1 , } impl From < MIS_OUTRDYIFG_A > for bool { # [inline (always)]
fn from (variant : MIS_OUTRDYIFG_A) -> Self { variant as u8 != 0 } } impl MIS_OUTRDYIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_OUTRDYIFG_A { match self . bits { false => MIS_OUTRDYIFG_A :: MIS_OUTRDYIFG_CLR , true => MIS_OUTRDYIFG_A :: MIS_OUTRDYIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_outrdyifg_clr (& self) -> bool { * self == MIS_OUTRDYIFG_A :: MIS_OUTRDYIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_outrdyifg_set (& self) -> bool { * self == MIS_OUTRDYIFG_A :: MIS_OUTRDYIFG_SET } } impl R { # [doc = "Bit 1 - Masked interrupt status for COMPIFG"]
# [inline (always)]
pub fn mis_compifg (& self) -> MIS_COMPIFG_R { MIS_COMPIFG_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Masked interrupt status for COMPINVIFG"]
# [inline (always)]
pub fn mis_compinvifg (& self) -> MIS_COMPINVIFG_R { MIS_COMPINVIFG_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Masked interrupt status for OUTRDYIFG"]
# [inline (always)]
pub fn mis_outrdyifg (& self) -> MIS_OUTRDYIFG_R { MIS_OUTRDYIFG_R :: new (((self . bits >> 3) & 1) != 0) } } # [doc = "Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MIS_SPEC ; impl crate :: RegisterSpec for MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`mis::R`](R) reader structure"]
impl crate :: Readable for MIS_SPEC { } # [doc = "`reset()` method sets MIS to value 0"]
impl crate :: Resettable for MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "ISET (w) register accessor: Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@iset`]
module"]
pub type ISET = crate :: Reg < iset :: ISET_SPEC > ; # [doc = "Interrupt set"]
pub mod iset { # [doc = "Register `ISET` writer"]
pub type W = crate :: W < ISET_SPEC > ; # [doc = "Sets COMPIFG in RIS register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_COMPIFG_AW { # [doc = "0: NO_EFFECT"]
ISET_COMPIFG_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_COMPIFG_SET = 1 , } impl From < ISET_COMPIFG_AW > for bool { # [inline (always)]
fn from (variant : ISET_COMPIFG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_COMPIFG` writer - Sets COMPIFG in RIS register"]
pub type ISET_COMPIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_COMPIFG_AW > ; impl < 'a , REG , const O : u8 > ISET_COMPIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_compifg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_COMPIFG_AW :: ISET_COMPIFG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_compifg_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_COMPIFG_AW :: ISET_COMPIFG_SET) } } # [doc = "Sets COMPINVIFG in RIS register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_COMPINVIFG_AW { # [doc = "0: NO_EFFECT"]
ISET_COMPINVIFG_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_COMPINVIFG_SET = 1 , } impl From < ISET_COMPINVIFG_AW > for bool { # [inline (always)]
fn from (variant : ISET_COMPINVIFG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_COMPINVIFG` writer - Sets COMPINVIFG in RIS register"]
pub type ISET_COMPINVIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_COMPINVIFG_AW > ; impl < 'a , REG , const O : u8 > ISET_COMPINVIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_compinvifg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_COMPINVIFG_AW :: ISET_COMPINVIFG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_compinvifg_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_COMPINVIFG_AW :: ISET_COMPINVIFG_SET) } } # [doc = "Sets OUTRDYIFG in RIS register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_OUTRDYIFG_AW { # [doc = "0: NO_EFFECT"]
ISET_OUTRDYIFG_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_OUTRDYIFG_SET = 1 , } impl From < ISET_OUTRDYIFG_AW > for bool { # [inline (always)]
fn from (variant : ISET_OUTRDYIFG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_OUTRDYIFG` writer - Sets OUTRDYIFG in RIS register"]
pub type ISET_OUTRDYIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_OUTRDYIFG_AW > ; impl < 'a , REG , const O : u8 > ISET_OUTRDYIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_outrdyifg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_OUTRDYIFG_AW :: ISET_OUTRDYIFG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_outrdyifg_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_OUTRDYIFG_AW :: ISET_OUTRDYIFG_SET) } } impl W { # [doc = "Bit 1 - Sets COMPIFG in RIS register"]
# [inline (always)]
# [must_use]
pub fn iset_compifg (& mut self) -> ISET_COMPIFG_W < ISET_SPEC , 1 > { ISET_COMPIFG_W :: new (self) } # [doc = "Bit 2 - Sets COMPINVIFG in RIS register"]
# [inline (always)]
# [must_use]
pub fn iset_compinvifg (& mut self) -> ISET_COMPINVIFG_W < ISET_SPEC , 2 > { ISET_COMPINVIFG_W :: new (self) } # [doc = "Bit 3 - Sets OUTRDYIFG in RIS register"]
# [inline (always)]
# [must_use]
pub fn iset_outrdyifg (& mut self) -> ISET_OUTRDYIFG_W < ISET_SPEC , 3 > { ISET_OUTRDYIFG_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ISET_SPEC ; impl crate :: RegisterSpec for ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`iset::W`](W) writer structure"]
impl crate :: Writable for ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets ISET to value 0"]
impl crate :: Resettable for ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "ICLR (w) register accessor: Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@iclr`]
module"]
pub type ICLR = crate :: Reg < iclr :: ICLR_SPEC > ; # [doc = "Interrupt clear"]
pub mod iclr { # [doc = "Register `ICLR` writer"]
pub type W = crate :: W < ICLR_SPEC > ; # [doc = "Clears COMPIFG in RIS register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_COMPIFG_AW { # [doc = "0: NO_EFFECT"]
ICLR_COMPIFG_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_COMPIFG_CLR = 1 , } impl From < ICLR_COMPIFG_AW > for bool { # [inline (always)]
fn from (variant : ICLR_COMPIFG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_COMPIFG` writer - Clears COMPIFG in RIS register"]
pub type ICLR_COMPIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_COMPIFG_AW > ; impl < 'a , REG , const O : u8 > ICLR_COMPIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_compifg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_COMPIFG_AW :: ICLR_COMPIFG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_compifg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_COMPIFG_AW :: ICLR_COMPIFG_CLR) } } # [doc = "Clears COMPINVIFG in RIS register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_COMPINVIFG_AW { # [doc = "0: NO_EFFECT"]
ICLR_COMPINVIFG_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_COMPINVIFG_CLR = 1 , } impl From < ICLR_COMPINVIFG_AW > for bool { # [inline (always)]
fn from (variant : ICLR_COMPINVIFG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_COMPINVIFG` writer - Clears COMPINVIFG in RIS register"]
pub type ICLR_COMPINVIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_COMPINVIFG_AW > ; impl < 'a , REG , const O : u8 > ICLR_COMPINVIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_compinvifg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_COMPINVIFG_AW :: ICLR_COMPINVIFG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_compinvifg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_COMPINVIFG_AW :: ICLR_COMPINVIFG_CLR) } } # [doc = "Clears OUTRDYIFG in RIS register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_OUTRDYIFG_AW { # [doc = "0: NO_EFFECT"]
ICLR_OUTRDYIFG_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_OUTRDYIFG_CLR = 1 , } impl From < ICLR_OUTRDYIFG_AW > for bool { # [inline (always)]
fn from (variant : ICLR_OUTRDYIFG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_OUTRDYIFG` writer - Clears OUTRDYIFG in RIS register"]
pub type ICLR_OUTRDYIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_OUTRDYIFG_AW > ; impl < 'a , REG , const O : u8 > ICLR_OUTRDYIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_outrdyifg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_OUTRDYIFG_AW :: ICLR_OUTRDYIFG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_outrdyifg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_OUTRDYIFG_AW :: ICLR_OUTRDYIFG_CLR) } } impl W { # [doc = "Bit 1 - Clears COMPIFG in RIS register"]
# [inline (always)]
# [must_use]
pub fn iclr_compifg (& mut self) -> ICLR_COMPIFG_W < ICLR_SPEC , 1 > { ICLR_COMPIFG_W :: new (self) } # [doc = "Bit 2 - Clears COMPINVIFG in RIS register"]
# [inline (always)]
# [must_use]
pub fn iclr_compinvifg (& mut self) -> ICLR_COMPINVIFG_W < ICLR_SPEC , 2 > { ICLR_COMPINVIFG_W :: new (self) } # [doc = "Bit 3 - Clears OUTRDYIFG in RIS register"]
# [inline (always)]
# [must_use]
pub fn iclr_outrdyifg (& mut self) -> ICLR_OUTRDYIFG_W < ICLR_SPEC , 3 > { ICLR_OUTRDYIFG_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ICLR_SPEC ; impl crate :: RegisterSpec for ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`iclr::W`](W) writer structure"]
impl crate :: Writable for ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets ICLR to value 0"]
impl crate :: Resettable for ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "EVT_MODE (rw) register accessor: Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`evt_mode::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@evt_mode`]
module"]
pub type EVT_MODE = crate :: Reg < evt_mode :: EVT_MODE_SPEC > ; # [doc = "Event Mode"]
pub mod evt_mode { # [doc = "Register `EVT_MODE` reader"]
pub type R = crate :: R < EVT_MODE_SPEC > ; # [doc = "Register `EVT_MODE` writer"]
pub type W = crate :: W < EVT_MODE_SPEC > ; # [doc = "Field `EVT_MODE_INT0_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[0\\]"]
pub type EVT_MODE_INT0_CFG_R = crate :: FieldReader < EVT_MODE_INT0_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[0\\]\n\nValue on reset: 1"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_INT0_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_INT0_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_INT0_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_INT0_CFG_HARDWARE = 2 , } impl From < EVT_MODE_INT0_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_INT0_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_INT0_CFG_A { type Ux = u8 ; } impl EVT_MODE_INT0_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_INT0_CFG_A > { match self . bits { 0 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_DISABLE) , 1 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_SOFTWARE) , 2 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_disable (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_software (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_hardware (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_HARDWARE } } # [doc = "Field `EVT_MODE_EVT1_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[0\\]"]
pub type EVT_MODE_EVT1_CFG_R = crate :: FieldReader < EVT_MODE_EVT1_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[0\\]\n\nValue on reset: 2"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_EVT1_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_EVT1_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_EVT1_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_EVT1_CFG_HARDWARE = 2 , } impl From < EVT_MODE_EVT1_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_EVT1_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_EVT1_CFG_A { type Ux = u8 ; } impl EVT_MODE_EVT1_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_EVT1_CFG_A > { match self . bits { 0 => Some (EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_DISABLE) , 1 => Some (EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_SOFTWARE) , 2 => Some (EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_evt1_cfg_disable (& self) -> bool { * self == EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_evt1_cfg_software (& self) -> bool { * self == EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_evt1_cfg_hardware (& self) -> bool { * self == EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_HARDWARE } } impl R { # [doc = "Bits 0:1 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[0\\]"]
# [inline (always)]
pub fn evt_mode_int0_cfg (& self) -> EVT_MODE_INT0_CFG_R { EVT_MODE_INT0_CFG_R :: new ((self . bits & 3) as u8) } # [doc = "Bits 2:3 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[0\\]"]
# [inline (always)]
pub fn evt_mode_evt1_cfg (& self) -> EVT_MODE_EVT1_CFG_R { EVT_MODE_EVT1_CFG_R :: new (((self . bits >> 2) & 3) as u8) } } impl W { # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`evt_mode::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct EVT_MODE_SPEC ; impl crate :: RegisterSpec for EVT_MODE_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`evt_mode::R`](R) reader structure"]
impl crate :: Readable for EVT_MODE_SPEC { } # [doc = "`write(|w| ..)` method takes [`evt_mode::W`](W) writer structure"]
impl crate :: Writable for EVT_MODE_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets EVT_MODE to value 0x09"]
impl crate :: Resettable for EVT_MODE_SPEC { const RESET_VALUE : Self :: Ux = 0x09 ; } } # [doc = "DESC (r) register accessor: Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@desc`]
module"]
pub type DESC = crate :: Reg < desc :: DESC_SPEC > ; # [doc = "Module Description"]
pub mod desc { # [doc = "Register `DESC` reader"]
pub type R = crate :: R < DESC_SPEC > ; # [doc = "Field `DESC_MINREV` reader - Minor rev of the IP"]
pub type DESC_MINREV_R = crate :: FieldReader ; # [doc = "Field `DESC_MAJREV` reader - Major rev of the IP"]
pub type DESC_MAJREV_R = crate :: FieldReader ; # [doc = "Field `DESC_FEATUREVER` reader - Feature Set for the module *instance*"]
pub type DESC_FEATUREVER_R = crate :: FieldReader ; # [doc = "Field `DESC_MODULEID` reader - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
pub type DESC_MODULEID_R = crate :: FieldReader < u16 > ; impl R { # [doc = "Bits 0:3 - Minor rev of the IP"]
# [inline (always)]
pub fn desc_minrev (& self) -> DESC_MINREV_R { DESC_MINREV_R :: new ((self . bits & 0x0f) as u8) } # [doc = "Bits 4:7 - Major rev of the IP"]
# [inline (always)]
pub fn desc_majrev (& self) -> DESC_MAJREV_R { DESC_MAJREV_R :: new (((self . bits >> 4) & 0x0f) as u8) } # [doc = "Bits 12:15 - Feature Set for the module *instance*"]
# [inline (always)]
pub fn desc_featurever (& self) -> DESC_FEATUREVER_R { DESC_FEATUREVER_R :: new (((self . bits >> 12) & 0x0f) as u8) } # [doc = "Bits 16:31 - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
# [inline (always)]
pub fn desc_moduleid (& self) -> DESC_MODULEID_R { DESC_MODULEID_R :: new (((self . bits >> 16) & 0xffff) as u16) } } # [doc = "Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DESC_SPEC ; impl crate :: RegisterSpec for DESC_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`desc::R`](R) reader structure"]
impl crate :: Readable for DESC_SPEC { } # [doc = "`reset()` method sets DESC to value 0"]
impl crate :: Resettable for DESC_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTL0 (rw) register accessor: Control 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctl0`]
module"]
pub type CTL0 = crate :: Reg < ctl0 :: CTL0_SPEC > ; # [doc = "Control 0"]
pub mod ctl0 { # [doc = "Register `CTL0` reader"]
pub type R = crate :: R < CTL0_SPEC > ; # [doc = "Register `CTL0` writer"]
pub type W = crate :: W < CTL0_SPEC > ; # [doc = "Field `CTL0_IPSEL` reader - Channel input selected for the positive terminal of the comparator if IPEN is set to 1."]
pub type CTL0_IPSEL_R = crate :: FieldReader < CTL0_IPSEL_A > ; # [doc = "Channel input selected for the positive terminal of the comparator if IPEN is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTL0_IPSEL_A { # [doc = "0: CH_0"]
CTL0_IPSEL_CH_0 = 0 , # [doc = "1: CH_1"]
CTL0_IPSEL_CH_1 = 1 , # [doc = "2: CH_2"]
CTL0_IPSEL_CH_2 = 2 , # [doc = "3: CH_3"]
CTL0_IPSEL_CH_3 = 3 , # [doc = "4: CH_4"]
CTL0_IPSEL_CH_4 = 4 , # [doc = "5: CH_5"]
CTL0_IPSEL_CH_5 = 5 , # [doc = "6: CH_6"]
CTL0_IPSEL_CH_6 = 6 , # [doc = "7: CH_7"]
CTL0_IPSEL_CH_7 = 7 , } impl From < CTL0_IPSEL_A > for u8 { # [inline (always)]
fn from (variant : CTL0_IPSEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTL0_IPSEL_A { type Ux = u8 ; } impl CTL0_IPSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_IPSEL_A { match self . bits { 0 => CTL0_IPSEL_A :: CTL0_IPSEL_CH_0 , 1 => CTL0_IPSEL_A :: CTL0_IPSEL_CH_1 , 2 => CTL0_IPSEL_A :: CTL0_IPSEL_CH_2 , 3 => CTL0_IPSEL_A :: CTL0_IPSEL_CH_3 , 4 => CTL0_IPSEL_A :: CTL0_IPSEL_CH_4 , 5 => CTL0_IPSEL_A :: CTL0_IPSEL_CH_5 , 6 => CTL0_IPSEL_A :: CTL0_IPSEL_CH_6 , 7 => CTL0_IPSEL_A :: CTL0_IPSEL_CH_7 , _ => unreachable ! () , } } # [doc = "CH_0"]
# [inline (always)]
pub fn is_ctl0_ipsel_ch_0 (& self) -> bool { * self == CTL0_IPSEL_A :: CTL0_IPSEL_CH_0 } # [doc = "CH_1"]
# [inline (always)]
pub fn is_ctl0_ipsel_ch_1 (& self) -> bool { * self == CTL0_IPSEL_A :: CTL0_IPSEL_CH_1 } # [doc = "CH_2"]
# [inline (always)]
pub fn is_ctl0_ipsel_ch_2 (& self) -> bool { * self == CTL0_IPSEL_A :: CTL0_IPSEL_CH_2 } # [doc = "CH_3"]
# [inline (always)]
pub fn is_ctl0_ipsel_ch_3 (& self) -> bool { * self == CTL0_IPSEL_A :: CTL0_IPSEL_CH_3 } # [doc = "CH_4"]
# [inline (always)]
pub fn is_ctl0_ipsel_ch_4 (& self) -> bool { * self == CTL0_IPSEL_A :: CTL0_IPSEL_CH_4 } # [doc = "CH_5"]
# [inline (always)]
pub fn is_ctl0_ipsel_ch_5 (& self) -> bool { * self == CTL0_IPSEL_A :: CTL0_IPSEL_CH_5 } # [doc = "CH_6"]
# [inline (always)]
pub fn is_ctl0_ipsel_ch_6 (& self) -> bool { * self == CTL0_IPSEL_A :: CTL0_IPSEL_CH_6 } # [doc = "CH_7"]
# [inline (always)]
pub fn is_ctl0_ipsel_ch_7 (& self) -> bool { * self == CTL0_IPSEL_A :: CTL0_IPSEL_CH_7 } } # [doc = "Field `CTL0_IPSEL` writer - Channel input selected for the positive terminal of the comparator if IPEN is set to 1."]
pub type CTL0_IPSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 3 , O , CTL0_IPSEL_A > ; impl < 'a , REG , const O : u8 > CTL0_IPSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "CH_0"]
# [inline (always)]
pub fn ctl0_ipsel_ch_0 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_IPSEL_A :: CTL0_IPSEL_CH_0) } # [doc = "CH_1"]
# [inline (always)]
pub fn ctl0_ipsel_ch_1 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_IPSEL_A :: CTL0_IPSEL_CH_1) } # [doc = "CH_2"]
# [inline (always)]
pub fn ctl0_ipsel_ch_2 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_IPSEL_A :: CTL0_IPSEL_CH_2) } # [doc = "CH_3"]
# [inline (always)]
pub fn ctl0_ipsel_ch_3 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_IPSEL_A :: CTL0_IPSEL_CH_3) } # [doc = "CH_4"]
# [inline (always)]
pub fn ctl0_ipsel_ch_4 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_IPSEL_A :: CTL0_IPSEL_CH_4) } # [doc = "CH_5"]
# [inline (always)]
pub fn ctl0_ipsel_ch_5 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_IPSEL_A :: CTL0_IPSEL_CH_5) } # [doc = "CH_6"]
# [inline (always)]
pub fn ctl0_ipsel_ch_6 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_IPSEL_A :: CTL0_IPSEL_CH_6) } # [doc = "CH_7"]
# [inline (always)]
pub fn ctl0_ipsel_ch_7 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_IPSEL_A :: CTL0_IPSEL_CH_7) } } # [doc = "Field `CTL0_IPEN` reader - Channel input enable for the positive terminal of the comparator."]
pub type CTL0_IPEN_R = crate :: BitReader < CTL0_IPEN_A > ; # [doc = "Channel input enable for the positive terminal of the comparator.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_IPEN_A { # [doc = "0: DISABLE"]
CTL0_IPEN_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL0_IPEN_ENABLE = 1 , } impl From < CTL0_IPEN_A > for bool { # [inline (always)]
fn from (variant : CTL0_IPEN_A) -> Self { variant as u8 != 0 } } impl CTL0_IPEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_IPEN_A { match self . bits { false => CTL0_IPEN_A :: CTL0_IPEN_DISABLE , true => CTL0_IPEN_A :: CTL0_IPEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl0_ipen_disable (& self) -> bool { * self == CTL0_IPEN_A :: CTL0_IPEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl0_ipen_enable (& self) -> bool { * self == CTL0_IPEN_A :: CTL0_IPEN_ENABLE } } # [doc = "Field `CTL0_IPEN` writer - Channel input enable for the positive terminal of the comparator."]
pub type CTL0_IPEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_IPEN_A > ; impl < 'a , REG , const O : u8 > CTL0_IPEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl0_ipen_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_IPEN_A :: CTL0_IPEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl0_ipen_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_IPEN_A :: CTL0_IPEN_ENABLE) } } # [doc = "Field `CTL0_IMSEL` reader - Channel input selected for the negative terminal of the comparator if IMEN is set to 1."]
pub type CTL0_IMSEL_R = crate :: FieldReader < CTL0_IMSEL_A > ; # [doc = "Channel input selected for the negative terminal of the comparator if IMEN is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTL0_IMSEL_A { # [doc = "0: CH_0"]
CTL0_IMSEL_CH_0 = 0 , # [doc = "1: CH_1"]
CTL0_IMSEL_CH_1 = 1 , # [doc = "2: CH_2"]
CTL0_IMSEL_CH_2 = 2 , # [doc = "3: CH_3"]
CTL0_IMSEL_CH_3 = 3 , # [doc = "4: CH_4"]
CTL0_IMSEL_CH_4 = 4 , # [doc = "5: CH_5"]
CTL0_IMSEL_CH_5 = 5 , # [doc = "6: CH_6"]
CTL0_IMSEL_CH_6 = 6 , # [doc = "7: CH_7"]
CTL0_IMSEL_CH_7 = 7 , } impl From < CTL0_IMSEL_A > for u8 { # [inline (always)]
fn from (variant : CTL0_IMSEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTL0_IMSEL_A { type Ux = u8 ; } impl CTL0_IMSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_IMSEL_A { match self . bits { 0 => CTL0_IMSEL_A :: CTL0_IMSEL_CH_0 , 1 => CTL0_IMSEL_A :: CTL0_IMSEL_CH_1 , 2 => CTL0_IMSEL_A :: CTL0_IMSEL_CH_2 , 3 => CTL0_IMSEL_A :: CTL0_IMSEL_CH_3 , 4 => CTL0_IMSEL_A :: CTL0_IMSEL_CH_4 , 5 => CTL0_IMSEL_A :: CTL0_IMSEL_CH_5 , 6 => CTL0_IMSEL_A :: CTL0_IMSEL_CH_6 , 7 => CTL0_IMSEL_A :: CTL0_IMSEL_CH_7 , _ => unreachable ! () , } } # [doc = "CH_0"]
# [inline (always)]
pub fn is_ctl0_imsel_ch_0 (& self) -> bool { * self == CTL0_IMSEL_A :: CTL0_IMSEL_CH_0 } # [doc = "CH_1"]
# [inline (always)]
pub fn is_ctl0_imsel_ch_1 (& self) -> bool { * self == CTL0_IMSEL_A :: CTL0_IMSEL_CH_1 } # [doc = "CH_2"]
# [inline (always)]
pub fn is_ctl0_imsel_ch_2 (& self) -> bool { * self == CTL0_IMSEL_A :: CTL0_IMSEL_CH_2 } # [doc = "CH_3"]
# [inline (always)]
pub fn is_ctl0_imsel_ch_3 (& self) -> bool { * self == CTL0_IMSEL_A :: CTL0_IMSEL_CH_3 } # [doc = "CH_4"]
# [inline (always)]
pub fn is_ctl0_imsel_ch_4 (& self) -> bool { * self == CTL0_IMSEL_A :: CTL0_IMSEL_CH_4 } # [doc = "CH_5"]
# [inline (always)]
pub fn is_ctl0_imsel_ch_5 (& self) -> bool { * self == CTL0_IMSEL_A :: CTL0_IMSEL_CH_5 } # [doc = "CH_6"]
# [inline (always)]
pub fn is_ctl0_imsel_ch_6 (& self) -> bool { * self == CTL0_IMSEL_A :: CTL0_IMSEL_CH_6 } # [doc = "CH_7"]
# [inline (always)]
pub fn is_ctl0_imsel_ch_7 (& self) -> bool { * self == CTL0_IMSEL_A :: CTL0_IMSEL_CH_7 } } # [doc = "Field `CTL0_IMSEL` writer - Channel input selected for the negative terminal of the comparator if IMEN is set to 1."]
pub type CTL0_IMSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 3 , O , CTL0_IMSEL_A > ; impl < 'a , REG , const O : u8 > CTL0_IMSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "CH_0"]
# [inline (always)]
pub fn ctl0_imsel_ch_0 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_IMSEL_A :: CTL0_IMSEL_CH_0) } # [doc = "CH_1"]
# [inline (always)]
pub fn ctl0_imsel_ch_1 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_IMSEL_A :: CTL0_IMSEL_CH_1) } # [doc = "CH_2"]
# [inline (always)]
pub fn ctl0_imsel_ch_2 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_IMSEL_A :: CTL0_IMSEL_CH_2) } # [doc = "CH_3"]
# [inline (always)]
pub fn ctl0_imsel_ch_3 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_IMSEL_A :: CTL0_IMSEL_CH_3) } # [doc = "CH_4"]
# [inline (always)]
pub fn ctl0_imsel_ch_4 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_IMSEL_A :: CTL0_IMSEL_CH_4) } # [doc = "CH_5"]
# [inline (always)]
pub fn ctl0_imsel_ch_5 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_IMSEL_A :: CTL0_IMSEL_CH_5) } # [doc = "CH_6"]
# [inline (always)]
pub fn ctl0_imsel_ch_6 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_IMSEL_A :: CTL0_IMSEL_CH_6) } # [doc = "CH_7"]
# [inline (always)]
pub fn ctl0_imsel_ch_7 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_IMSEL_A :: CTL0_IMSEL_CH_7) } } # [doc = "Field `CTL0_IMEN` reader - Channel input enable for the negative terminal of the comparator."]
pub type CTL0_IMEN_R = crate :: BitReader < CTL0_IMEN_A > ; # [doc = "Channel input enable for the negative terminal of the comparator.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_IMEN_A { # [doc = "0: DISABLE"]
CTL0_IMEN_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL0_IMEN_ENABLE = 1 , } impl From < CTL0_IMEN_A > for bool { # [inline (always)]
fn from (variant : CTL0_IMEN_A) -> Self { variant as u8 != 0 } } impl CTL0_IMEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_IMEN_A { match self . bits { false => CTL0_IMEN_A :: CTL0_IMEN_DISABLE , true => CTL0_IMEN_A :: CTL0_IMEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl0_imen_disable (& self) -> bool { * self == CTL0_IMEN_A :: CTL0_IMEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl0_imen_enable (& self) -> bool { * self == CTL0_IMEN_A :: CTL0_IMEN_ENABLE } } # [doc = "Field `CTL0_IMEN` writer - Channel input enable for the negative terminal of the comparator."]
pub type CTL0_IMEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_IMEN_A > ; impl < 'a , REG , const O : u8 > CTL0_IMEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl0_imen_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_IMEN_A :: CTL0_IMEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl0_imen_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_IMEN_A :: CTL0_IMEN_ENABLE) } } impl R { # [doc = "Bits 0:2 - Channel input selected for the positive terminal of the comparator if IPEN is set to 1."]
# [inline (always)]
pub fn ctl0_ipsel (& self) -> CTL0_IPSEL_R { CTL0_IPSEL_R :: new ((self . bits & 7) as u8) } # [doc = "Bit 15 - Channel input enable for the positive terminal of the comparator."]
# [inline (always)]
pub fn ctl0_ipen (& self) -> CTL0_IPEN_R { CTL0_IPEN_R :: new (((self . bits >> 15) & 1) != 0) } # [doc = "Bits 16:18 - Channel input selected for the negative terminal of the comparator if IMEN is set to 1."]
# [inline (always)]
pub fn ctl0_imsel (& self) -> CTL0_IMSEL_R { CTL0_IMSEL_R :: new (((self . bits >> 16) & 7) as u8) } # [doc = "Bit 31 - Channel input enable for the negative terminal of the comparator."]
# [inline (always)]
pub fn ctl0_imen (& self) -> CTL0_IMEN_R { CTL0_IMEN_R :: new (((self . bits >> 31) & 1) != 0) } } impl W { # [doc = "Bits 0:2 - Channel input selected for the positive terminal of the comparator if IPEN is set to 1."]
# [inline (always)]
# [must_use]
pub fn ctl0_ipsel (& mut self) -> CTL0_IPSEL_W < CTL0_SPEC , 0 > { CTL0_IPSEL_W :: new (self) } # [doc = "Bit 15 - Channel input enable for the positive terminal of the comparator."]
# [inline (always)]
# [must_use]
pub fn ctl0_ipen (& mut self) -> CTL0_IPEN_W < CTL0_SPEC , 15 > { CTL0_IPEN_W :: new (self) } # [doc = "Bits 16:18 - Channel input selected for the negative terminal of the comparator if IMEN is set to 1."]
# [inline (always)]
# [must_use]
pub fn ctl0_imsel (& mut self) -> CTL0_IMSEL_W < CTL0_SPEC , 16 > { CTL0_IMSEL_W :: new (self) } # [doc = "Bit 31 - Channel input enable for the negative terminal of the comparator."]
# [inline (always)]
# [must_use]
pub fn ctl0_imen (& mut self) -> CTL0_IMEN_W < CTL0_SPEC , 31 > { CTL0_IMEN_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Control 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl0::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTL0_SPEC ; impl crate :: RegisterSpec for CTL0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ctl0::R`](R) reader structure"]
impl crate :: Readable for CTL0_SPEC { } # [doc = "`write(|w| ..)` method takes [`ctl0::W`](W) writer structure"]
impl crate :: Writable for CTL0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTL0 to value 0"]
impl crate :: Resettable for CTL0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTL1 (rw) register accessor: Control 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctl1`]
module"]
pub type CTL1 = crate :: Reg < ctl1 :: CTL1_SPEC > ; # [doc = "Control 1"]
pub mod ctl1 { # [doc = "Register `CTL1` reader"]
pub type R = crate :: R < CTL1_SPEC > ; # [doc = "Register `CTL1` writer"]
pub type W = crate :: W < CTL1_SPEC > ; # [doc = "Field `CTL1_ENABLE` reader - This bit turns on the comparator. When the comparator is turned off it consumes no power."]
pub type CTL1_ENABLE_R = crate :: BitReader < CTL1_ENABLE_A > ; # [doc = "This bit turns on the comparator. When the comparator is turned off it consumes no power.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL1_ENABLE_A { # [doc = "0: OFF"]
CTL1_ENABLE_OFF = 0 , # [doc = "1: ON"]
CTL1_ENABLE_ON = 1 , } impl From < CTL1_ENABLE_A > for bool { # [inline (always)]
fn from (variant : CTL1_ENABLE_A) -> Self { variant as u8 != 0 } } impl CTL1_ENABLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL1_ENABLE_A { match self . bits { false => CTL1_ENABLE_A :: CTL1_ENABLE_OFF , true => CTL1_ENABLE_A :: CTL1_ENABLE_ON , } } # [doc = "OFF"]
# [inline (always)]
pub fn is_ctl1_enable_off (& self) -> bool { * self == CTL1_ENABLE_A :: CTL1_ENABLE_OFF } # [doc = "ON"]
# [inline (always)]
pub fn is_ctl1_enable_on (& self) -> bool { * self == CTL1_ENABLE_A :: CTL1_ENABLE_ON } } # [doc = "Field `CTL1_ENABLE` writer - This bit turns on the comparator. When the comparator is turned off it consumes no power."]
pub type CTL1_ENABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL1_ENABLE_A > ; impl < 'a , REG , const O : u8 > CTL1_ENABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "OFF"]
# [inline (always)]
pub fn ctl1_enable_off (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_ENABLE_A :: CTL1_ENABLE_OFF) } # [doc = "ON"]
# [inline (always)]
pub fn ctl1_enable_on (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_ENABLE_A :: CTL1_ENABLE_ON) } } # [doc = "Field `CTL1_MODE` reader - This bit selects the comparator operating mode."]
pub type CTL1_MODE_R = crate :: BitReader < CTL1_MODE_A > ; # [doc = "This bit selects the comparator operating mode.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL1_MODE_A { # [doc = "0: FAST"]
CTL1_MODE_FAST = 0 , # [doc = "1: ULP"]
CTL1_MODE_ULP = 1 , } impl From < CTL1_MODE_A > for bool { # [inline (always)]
fn from (variant : CTL1_MODE_A) -> Self { variant as u8 != 0 } } impl CTL1_MODE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL1_MODE_A { match self . bits { false => CTL1_MODE_A :: CTL1_MODE_FAST , true => CTL1_MODE_A :: CTL1_MODE_ULP , } } # [doc = "FAST"]
# [inline (always)]
pub fn is_ctl1_mode_fast (& self) -> bool { * self == CTL1_MODE_A :: CTL1_MODE_FAST } # [doc = "ULP"]
# [inline (always)]
pub fn is_ctl1_mode_ulp (& self) -> bool { * self == CTL1_MODE_A :: CTL1_MODE_ULP } } # [doc = "Field `CTL1_MODE` writer - This bit selects the comparator operating mode."]
pub type CTL1_MODE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL1_MODE_A > ; impl < 'a , REG , const O : u8 > CTL1_MODE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "FAST"]
# [inline (always)]
pub fn ctl1_mode_fast (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_MODE_A :: CTL1_MODE_FAST) } # [doc = "ULP"]
# [inline (always)]
pub fn ctl1_mode_ulp (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_MODE_A :: CTL1_MODE_ULP) } } # [doc = "Field `CTL1_EXCH` reader - This bit exchanges the comparator inputs and inverts the comparator output."]
pub type CTL1_EXCH_R = crate :: BitReader < CTL1_EXCH_A > ; # [doc = "This bit exchanges the comparator inputs and inverts the comparator output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL1_EXCH_A { # [doc = "0: NO_EXC"]
CTL1_EXCH_NO_EXC = 0 , # [doc = "1: EXC"]
CTL1_EXCH_EXC = 1 , } impl From < CTL1_EXCH_A > for bool { # [inline (always)]
fn from (variant : CTL1_EXCH_A) -> Self { variant as u8 != 0 } } impl CTL1_EXCH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL1_EXCH_A { match self . bits { false => CTL1_EXCH_A :: CTL1_EXCH_NO_EXC , true => CTL1_EXCH_A :: CTL1_EXCH_EXC , } } # [doc = "NO_EXC"]
# [inline (always)]
pub fn is_ctl1_exch_no_exc (& self) -> bool { * self == CTL1_EXCH_A :: CTL1_EXCH_NO_EXC } # [doc = "EXC"]
# [inline (always)]
pub fn is_ctl1_exch_exc (& self) -> bool { * self == CTL1_EXCH_A :: CTL1_EXCH_EXC } } # [doc = "Field `CTL1_EXCH` writer - This bit exchanges the comparator inputs and inverts the comparator output."]
pub type CTL1_EXCH_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL1_EXCH_A > ; impl < 'a , REG , const O : u8 > CTL1_EXCH_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EXC"]
# [inline (always)]
pub fn ctl1_exch_no_exc (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_EXCH_A :: CTL1_EXCH_NO_EXC) } # [doc = "EXC"]
# [inline (always)]
pub fn ctl1_exch_exc (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_EXCH_A :: CTL1_EXCH_EXC) } } # [doc = "Field `CTL1_SHORT` reader - This bit shorts the positive and negative input terminals of the comparator."]
pub type CTL1_SHORT_R = crate :: BitReader < CTL1_SHORT_A > ; # [doc = "This bit shorts the positive and negative input terminals of the comparator.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL1_SHORT_A { # [doc = "0: NO_SHT"]
CTL1_SHORT_NO_SHT = 0 , # [doc = "1: SHT"]
CTL1_SHORT_SHT = 1 , } impl From < CTL1_SHORT_A > for bool { # [inline (always)]
fn from (variant : CTL1_SHORT_A) -> Self { variant as u8 != 0 } } impl CTL1_SHORT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL1_SHORT_A { match self . bits { false => CTL1_SHORT_A :: CTL1_SHORT_NO_SHT , true => CTL1_SHORT_A :: CTL1_SHORT_SHT , } } # [doc = "NO_SHT"]
# [inline (always)]
pub fn is_ctl1_short_no_sht (& self) -> bool { * self == CTL1_SHORT_A :: CTL1_SHORT_NO_SHT } # [doc = "SHT"]
# [inline (always)]
pub fn is_ctl1_short_sht (& self) -> bool { * self == CTL1_SHORT_A :: CTL1_SHORT_SHT } } # [doc = "Field `CTL1_SHORT` writer - This bit shorts the positive and negative input terminals of the comparator."]
pub type CTL1_SHORT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL1_SHORT_A > ; impl < 'a , REG , const O : u8 > CTL1_SHORT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_SHT"]
# [inline (always)]
pub fn ctl1_short_no_sht (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_SHORT_A :: CTL1_SHORT_NO_SHT) } # [doc = "SHT"]
# [inline (always)]
pub fn ctl1_short_sht (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_SHORT_A :: CTL1_SHORT_SHT) } } # [doc = "Field `CTL1_IES` reader - This bit selected the interrupt edge for COMPIFG and COMPINVIFG."]
pub type CTL1_IES_R = crate :: BitReader < CTL1_IES_A > ; # [doc = "This bit selected the interrupt edge for COMPIFG and COMPINVIFG.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL1_IES_A { # [doc = "0: RISING"]
CTL1_IES_RISING = 0 , # [doc = "1: FALLING"]
CTL1_IES_FALLING = 1 , } impl From < CTL1_IES_A > for bool { # [inline (always)]
fn from (variant : CTL1_IES_A) -> Self { variant as u8 != 0 } } impl CTL1_IES_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL1_IES_A { match self . bits { false => CTL1_IES_A :: CTL1_IES_RISING , true => CTL1_IES_A :: CTL1_IES_FALLING , } } # [doc = "RISING"]
# [inline (always)]
pub fn is_ctl1_ies_rising (& self) -> bool { * self == CTL1_IES_A :: CTL1_IES_RISING } # [doc = "FALLING"]
# [inline (always)]
pub fn is_ctl1_ies_falling (& self) -> bool { * self == CTL1_IES_A :: CTL1_IES_FALLING } } # [doc = "Field `CTL1_IES` writer - This bit selected the interrupt edge for COMPIFG and COMPINVIFG."]
pub type CTL1_IES_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL1_IES_A > ; impl < 'a , REG , const O : u8 > CTL1_IES_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "RISING"]
# [inline (always)]
pub fn ctl1_ies_rising (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_IES_A :: CTL1_IES_RISING) } # [doc = "FALLING"]
# [inline (always)]
pub fn ctl1_ies_falling (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_IES_A :: CTL1_IES_FALLING) } } # [doc = "Field `CTL1_HYST` reader - These bits select the hysteresis setting of the comparator."]
pub type CTL1_HYST_R = crate :: FieldReader < CTL1_HYST_A > ; # [doc = "These bits select the hysteresis setting of the comparator.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTL1_HYST_A { # [doc = "0: NO_HYS"]
CTL1_HYST_NO_HYS = 0 , # [doc = "1: LOW_HYS"]
CTL1_HYST_LOW_HYS = 1 , # [doc = "2: MED_HYS"]
CTL1_HYST_MED_HYS = 2 , # [doc = "3: HIGH_HYS"]
CTL1_HYST_HIGH_HYS = 3 , } impl From < CTL1_HYST_A > for u8 { # [inline (always)]
fn from (variant : CTL1_HYST_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTL1_HYST_A { type Ux = u8 ; } impl CTL1_HYST_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL1_HYST_A { match self . bits { 0 => CTL1_HYST_A :: CTL1_HYST_NO_HYS , 1 => CTL1_HYST_A :: CTL1_HYST_LOW_HYS , 2 => CTL1_HYST_A :: CTL1_HYST_MED_HYS , 3 => CTL1_HYST_A :: CTL1_HYST_HIGH_HYS , _ => unreachable ! () , } } # [doc = "NO_HYS"]
# [inline (always)]
pub fn is_ctl1_hyst_no_hys (& self) -> bool { * self == CTL1_HYST_A :: CTL1_HYST_NO_HYS } # [doc = "LOW_HYS"]
# [inline (always)]
pub fn is_ctl1_hyst_low_hys (& self) -> bool { * self == CTL1_HYST_A :: CTL1_HYST_LOW_HYS } # [doc = "MED_HYS"]
# [inline (always)]
pub fn is_ctl1_hyst_med_hys (& self) -> bool { * self == CTL1_HYST_A :: CTL1_HYST_MED_HYS } # [doc = "HIGH_HYS"]
# [inline (always)]
pub fn is_ctl1_hyst_high_hys (& self) -> bool { * self == CTL1_HYST_A :: CTL1_HYST_HIGH_HYS } } # [doc = "Field `CTL1_HYST` writer - These bits select the hysteresis setting of the comparator."]
pub type CTL1_HYST_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , CTL1_HYST_A > ; impl < 'a , REG , const O : u8 > CTL1_HYST_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "NO_HYS"]
# [inline (always)]
pub fn ctl1_hyst_no_hys (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_HYST_A :: CTL1_HYST_NO_HYS) } # [doc = "LOW_HYS"]
# [inline (always)]
pub fn ctl1_hyst_low_hys (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_HYST_A :: CTL1_HYST_LOW_HYS) } # [doc = "MED_HYS"]
# [inline (always)]
pub fn ctl1_hyst_med_hys (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_HYST_A :: CTL1_HYST_MED_HYS) } # [doc = "HIGH_HYS"]
# [inline (always)]
pub fn ctl1_hyst_high_hys (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_HYST_A :: CTL1_HYST_HIGH_HYS) } } # [doc = "Field `CTL1_OUTPOL` reader - This bit selects the comparator output polarity."]
pub type CTL1_OUTPOL_R = crate :: BitReader < CTL1_OUTPOL_A > ; # [doc = "This bit selects the comparator output polarity.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL1_OUTPOL_A { # [doc = "0: NON_INV"]
CTL1_OUTPOL_NON_INV = 0 , # [doc = "1: INV"]
CTL1_OUTPOL_INV = 1 , } impl From < CTL1_OUTPOL_A > for bool { # [inline (always)]
fn from (variant : CTL1_OUTPOL_A) -> Self { variant as u8 != 0 } } impl CTL1_OUTPOL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL1_OUTPOL_A { match self . bits { false => CTL1_OUTPOL_A :: CTL1_OUTPOL_NON_INV , true => CTL1_OUTPOL_A :: CTL1_OUTPOL_INV , } } # [doc = "NON_INV"]
# [inline (always)]
pub fn is_ctl1_outpol_non_inv (& self) -> bool { * self == CTL1_OUTPOL_A :: CTL1_OUTPOL_NON_INV } # [doc = "INV"]
# [inline (always)]
pub fn is_ctl1_outpol_inv (& self) -> bool { * self == CTL1_OUTPOL_A :: CTL1_OUTPOL_INV } } # [doc = "Field `CTL1_OUTPOL` writer - This bit selects the comparator output polarity."]
pub type CTL1_OUTPOL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL1_OUTPOL_A > ; impl < 'a , REG , const O : u8 > CTL1_OUTPOL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NON_INV"]
# [inline (always)]
pub fn ctl1_outpol_non_inv (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_OUTPOL_A :: CTL1_OUTPOL_NON_INV) } # [doc = "INV"]
# [inline (always)]
pub fn ctl1_outpol_inv (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_OUTPOL_A :: CTL1_OUTPOL_INV) } } # [doc = "Field `CTL1_FLTEN` reader - This bit enables the analog filter at comparator output."]
pub type CTL1_FLTEN_R = crate :: BitReader < CTL1_FLTEN_A > ; # [doc = "This bit enables the analog filter at comparator output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL1_FLTEN_A { # [doc = "0: DISABLE"]
CTL1_FLTEN_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL1_FLTEN_ENABLE = 1 , } impl From < CTL1_FLTEN_A > for bool { # [inline (always)]
fn from (variant : CTL1_FLTEN_A) -> Self { variant as u8 != 0 } } impl CTL1_FLTEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL1_FLTEN_A { match self . bits { false => CTL1_FLTEN_A :: CTL1_FLTEN_DISABLE , true => CTL1_FLTEN_A :: CTL1_FLTEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl1_flten_disable (& self) -> bool { * self == CTL1_FLTEN_A :: CTL1_FLTEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl1_flten_enable (& self) -> bool { * self == CTL1_FLTEN_A :: CTL1_FLTEN_ENABLE } } # [doc = "Field `CTL1_FLTEN` writer - This bit enables the analog filter at comparator output."]
pub type CTL1_FLTEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL1_FLTEN_A > ; impl < 'a , REG , const O : u8 > CTL1_FLTEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl1_flten_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_FLTEN_A :: CTL1_FLTEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl1_flten_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_FLTEN_A :: CTL1_FLTEN_ENABLE) } } # [doc = "Field `CTL1_FLTDLY` reader - These bits select the comparator output filter delay. See the device-specific data sheet for specific values on comparator propagation delay for different filter delay settings."]
pub type CTL1_FLTDLY_R = crate :: FieldReader < CTL1_FLTDLY_A > ; # [doc = "These bits select the comparator output filter delay. See the device-specific data sheet for specific values on comparator propagation delay for different filter delay settings.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTL1_FLTDLY_A { # [doc = "0: DLY_0"]
CTL1_FLTDLY_DLY_0 = 0 , # [doc = "1: DLY_1"]
CTL1_FLTDLY_DLY_1 = 1 , # [doc = "2: DLY_2"]
CTL1_FLTDLY_DLY_2 = 2 , # [doc = "3: DLY_3"]
CTL1_FLTDLY_DLY_3 = 3 , } impl From < CTL1_FLTDLY_A > for u8 { # [inline (always)]
fn from (variant : CTL1_FLTDLY_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTL1_FLTDLY_A { type Ux = u8 ; } impl CTL1_FLTDLY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL1_FLTDLY_A { match self . bits { 0 => CTL1_FLTDLY_A :: CTL1_FLTDLY_DLY_0 , 1 => CTL1_FLTDLY_A :: CTL1_FLTDLY_DLY_1 , 2 => CTL1_FLTDLY_A :: CTL1_FLTDLY_DLY_2 , 3 => CTL1_FLTDLY_A :: CTL1_FLTDLY_DLY_3 , _ => unreachable ! () , } } # [doc = "DLY_0"]
# [inline (always)]
pub fn is_ctl1_fltdly_dly_0 (& self) -> bool { * self == CTL1_FLTDLY_A :: CTL1_FLTDLY_DLY_0 } # [doc = "DLY_1"]
# [inline (always)]
pub fn is_ctl1_fltdly_dly_1 (& self) -> bool { * self == CTL1_FLTDLY_A :: CTL1_FLTDLY_DLY_1 } # [doc = "DLY_2"]
# [inline (always)]
pub fn is_ctl1_fltdly_dly_2 (& self) -> bool { * self == CTL1_FLTDLY_A :: CTL1_FLTDLY_DLY_2 } # [doc = "DLY_3"]
# [inline (always)]
pub fn is_ctl1_fltdly_dly_3 (& self) -> bool { * self == CTL1_FLTDLY_A :: CTL1_FLTDLY_DLY_3 } } # [doc = "Field `CTL1_FLTDLY` writer - These bits select the comparator output filter delay. See the device-specific data sheet for specific values on comparator propagation delay for different filter delay settings."]
pub type CTL1_FLTDLY_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , CTL1_FLTDLY_A > ; impl < 'a , REG , const O : u8 > CTL1_FLTDLY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DLY_0"]
# [inline (always)]
pub fn ctl1_fltdly_dly_0 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_FLTDLY_A :: CTL1_FLTDLY_DLY_0) } # [doc = "DLY_1"]
# [inline (always)]
pub fn ctl1_fltdly_dly_1 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_FLTDLY_A :: CTL1_FLTDLY_DLY_1) } # [doc = "DLY_2"]
# [inline (always)]
pub fn ctl1_fltdly_dly_2 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_FLTDLY_A :: CTL1_FLTDLY_DLY_2) } # [doc = "DLY_3"]
# [inline (always)]
pub fn ctl1_fltdly_dly_3 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_FLTDLY_A :: CTL1_FLTDLY_DLY_3) } } # [doc = "Field `CTL1_WINCOMPEN` reader - This bit enables window comparator operation of comparator."]
pub type CTL1_WINCOMPEN_R = crate :: BitReader < CTL1_WINCOMPEN_A > ; # [doc = "This bit enables window comparator operation of comparator.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL1_WINCOMPEN_A { # [doc = "0: OFF"]
CTL1_WINCOMPEN_OFF = 0 , # [doc = "1: ON"]
CTL1_WINCOMPEN_ON = 1 , } impl From < CTL1_WINCOMPEN_A > for bool { # [inline (always)]
fn from (variant : CTL1_WINCOMPEN_A) -> Self { variant as u8 != 0 } } impl CTL1_WINCOMPEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL1_WINCOMPEN_A { match self . bits { false => CTL1_WINCOMPEN_A :: CTL1_WINCOMPEN_OFF , true => CTL1_WINCOMPEN_A :: CTL1_WINCOMPEN_ON , } } # [doc = "OFF"]
# [inline (always)]
pub fn is_ctl1_wincompen_off (& self) -> bool { * self == CTL1_WINCOMPEN_A :: CTL1_WINCOMPEN_OFF } # [doc = "ON"]
# [inline (always)]
pub fn is_ctl1_wincompen_on (& self) -> bool { * self == CTL1_WINCOMPEN_A :: CTL1_WINCOMPEN_ON } } # [doc = "Field `CTL1_WINCOMPEN` writer - This bit enables window comparator operation of comparator."]
pub type CTL1_WINCOMPEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL1_WINCOMPEN_A > ; impl < 'a , REG , const O : u8 > CTL1_WINCOMPEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "OFF"]
# [inline (always)]
pub fn ctl1_wincompen_off (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_WINCOMPEN_A :: CTL1_WINCOMPEN_OFF) } # [doc = "ON"]
# [inline (always)]
pub fn ctl1_wincompen_on (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_WINCOMPEN_A :: CTL1_WINCOMPEN_ON) } } impl R { # [doc = "Bit 0 - This bit turns on the comparator. When the comparator is turned off it consumes no power."]
# [inline (always)]
pub fn ctl1_enable (& self) -> CTL1_ENABLE_R { CTL1_ENABLE_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - This bit selects the comparator operating mode."]
# [inline (always)]
pub fn ctl1_mode (& self) -> CTL1_MODE_R { CTL1_MODE_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - This bit exchanges the comparator inputs and inverts the comparator output."]
# [inline (always)]
pub fn ctl1_exch (& self) -> CTL1_EXCH_R { CTL1_EXCH_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - This bit shorts the positive and negative input terminals of the comparator."]
# [inline (always)]
pub fn ctl1_short (& self) -> CTL1_SHORT_R { CTL1_SHORT_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - This bit selected the interrupt edge for COMPIFG and COMPINVIFG."]
# [inline (always)]
pub fn ctl1_ies (& self) -> CTL1_IES_R { CTL1_IES_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bits 5:6 - These bits select the hysteresis setting of the comparator."]
# [inline (always)]
pub fn ctl1_hyst (& self) -> CTL1_HYST_R { CTL1_HYST_R :: new (((self . bits >> 5) & 3) as u8) } # [doc = "Bit 7 - This bit selects the comparator output polarity."]
# [inline (always)]
pub fn ctl1_outpol (& self) -> CTL1_OUTPOL_R { CTL1_OUTPOL_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - This bit enables the analog filter at comparator output."]
# [inline (always)]
pub fn ctl1_flten (& self) -> CTL1_FLTEN_R { CTL1_FLTEN_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bits 9:10 - These bits select the comparator output filter delay. See the device-specific data sheet for specific values on comparator propagation delay for different filter delay settings."]
# [inline (always)]
pub fn ctl1_fltdly (& self) -> CTL1_FLTDLY_R { CTL1_FLTDLY_R :: new (((self . bits >> 9) & 3) as u8) } # [doc = "Bit 12 - This bit enables window comparator operation of comparator."]
# [inline (always)]
pub fn ctl1_wincompen (& self) -> CTL1_WINCOMPEN_R { CTL1_WINCOMPEN_R :: new (((self . bits >> 12) & 1) != 0) } } impl W { # [doc = "Bit 0 - This bit turns on the comparator. When the comparator is turned off it consumes no power."]
# [inline (always)]
# [must_use]
pub fn ctl1_enable (& mut self) -> CTL1_ENABLE_W < CTL1_SPEC , 0 > { CTL1_ENABLE_W :: new (self) } # [doc = "Bit 1 - This bit selects the comparator operating mode."]
# [inline (always)]
# [must_use]
pub fn ctl1_mode (& mut self) -> CTL1_MODE_W < CTL1_SPEC , 1 > { CTL1_MODE_W :: new (self) } # [doc = "Bit 2 - This bit exchanges the comparator inputs and inverts the comparator output."]
# [inline (always)]
# [must_use]
pub fn ctl1_exch (& mut self) -> CTL1_EXCH_W < CTL1_SPEC , 2 > { CTL1_EXCH_W :: new (self) } # [doc = "Bit 3 - This bit shorts the positive and negative input terminals of the comparator."]
# [inline (always)]
# [must_use]
pub fn ctl1_short (& mut self) -> CTL1_SHORT_W < CTL1_SPEC , 3 > { CTL1_SHORT_W :: new (self) } # [doc = "Bit 4 - This bit selected the interrupt edge for COMPIFG and COMPINVIFG."]
# [inline (always)]
# [must_use]
pub fn ctl1_ies (& mut self) -> CTL1_IES_W < CTL1_SPEC , 4 > { CTL1_IES_W :: new (self) } # [doc = "Bits 5:6 - These bits select the hysteresis setting of the comparator."]
# [inline (always)]
# [must_use]
pub fn ctl1_hyst (& mut self) -> CTL1_HYST_W < CTL1_SPEC , 5 > { CTL1_HYST_W :: new (self) } # [doc = "Bit 7 - This bit selects the comparator output polarity."]
# [inline (always)]
# [must_use]
pub fn ctl1_outpol (& mut self) -> CTL1_OUTPOL_W < CTL1_SPEC , 7 > { CTL1_OUTPOL_W :: new (self) } # [doc = "Bit 8 - This bit enables the analog filter at comparator output."]
# [inline (always)]
# [must_use]
pub fn ctl1_flten (& mut self) -> CTL1_FLTEN_W < CTL1_SPEC , 8 > { CTL1_FLTEN_W :: new (self) } # [doc = "Bits 9:10 - These bits select the comparator output filter delay. See the device-specific data sheet for specific values on comparator propagation delay for different filter delay settings."]
# [inline (always)]
# [must_use]
pub fn ctl1_fltdly (& mut self) -> CTL1_FLTDLY_W < CTL1_SPEC , 9 > { CTL1_FLTDLY_W :: new (self) } # [doc = "Bit 12 - This bit enables window comparator operation of comparator."]
# [inline (always)]
# [must_use]
pub fn ctl1_wincompen (& mut self) -> CTL1_WINCOMPEN_W < CTL1_SPEC , 12 > { CTL1_WINCOMPEN_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Control 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl1::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTL1_SPEC ; impl crate :: RegisterSpec for CTL1_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ctl1::R`](R) reader structure"]
impl crate :: Readable for CTL1_SPEC { } # [doc = "`write(|w| ..)` method takes [`ctl1::W`](W) writer structure"]
impl crate :: Writable for CTL1_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTL1 to value 0"]
impl crate :: Resettable for CTL1_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTL2 (rw) register accessor: Control 2\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl2::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl2::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctl2`]
module"]
pub type CTL2 = crate :: Reg < ctl2 :: CTL2_SPEC > ; # [doc = "Control 2"]
pub mod ctl2 { # [doc = "Register `CTL2` reader"]
pub type R = crate :: R < CTL2_SPEC > ; # [doc = "Register `CTL2` writer"]
pub type W = crate :: W < CTL2_SPEC > ; # [doc = "Field `CTL2_REFMODE` reader - This bit requests ULP_REF bandgap operation in static mode or sampled mode. The local reference buffer and 8-bit DAC inside comparator module are also configured accordingly. Static mode operation offers higher accuracy but consumes higher current. Sampled mode operation consumes lower current but with relaxed reference voltage accuracy. Comparator requests for reference voltage from ULP_REF only when REFLVL &amp;gt; 0."]
pub type CTL2_REFMODE_R = crate :: BitReader < CTL2_REFMODE_A > ; # [doc = "This bit requests ULP_REF bandgap operation in static mode or sampled mode. The local reference buffer and 8-bit DAC inside comparator module are also configured accordingly. Static mode operation offers higher accuracy but consumes higher current. Sampled mode operation consumes lower current but with relaxed reference voltage accuracy. Comparator requests for reference voltage from ULP_REF only when REFLVL &amp;gt; 0.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL2_REFMODE_A { # [doc = "0: STATIC"]
CTL2_REFMODE_STATIC = 0 , # [doc = "1: SAMPLED"]
CTL2_REFMODE_SAMPLED = 1 , } impl From < CTL2_REFMODE_A > for bool { # [inline (always)]
fn from (variant : CTL2_REFMODE_A) -> Self { variant as u8 != 0 } } impl CTL2_REFMODE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL2_REFMODE_A { match self . bits { false => CTL2_REFMODE_A :: CTL2_REFMODE_STATIC , true => CTL2_REFMODE_A :: CTL2_REFMODE_SAMPLED , } } # [doc = "STATIC"]
# [inline (always)]
pub fn is_ctl2_refmode_static (& self) -> bool { * self == CTL2_REFMODE_A :: CTL2_REFMODE_STATIC } # [doc = "SAMPLED"]
# [inline (always)]
pub fn is_ctl2_refmode_sampled (& self) -> bool { * self == CTL2_REFMODE_A :: CTL2_REFMODE_SAMPLED } } # [doc = "Field `CTL2_REFMODE` writer - This bit requests ULP_REF bandgap operation in static mode or sampled mode. The local reference buffer and 8-bit DAC inside comparator module are also configured accordingly. Static mode operation offers higher accuracy but consumes higher current. Sampled mode operation consumes lower current but with relaxed reference voltage accuracy. Comparator requests for reference voltage from ULP_REF only when REFLVL &amp;gt; 0."]
pub type CTL2_REFMODE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL2_REFMODE_A > ; impl < 'a , REG , const O : u8 > CTL2_REFMODE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "STATIC"]
# [inline (always)]
pub fn ctl2_refmode_static (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_REFMODE_A :: CTL2_REFMODE_STATIC) } # [doc = "SAMPLED"]
# [inline (always)]
pub fn ctl2_refmode_sampled (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_REFMODE_A :: CTL2_REFMODE_SAMPLED) } } # [doc = "Field `CTL2_REFSRC` reader - These bits select the reference source for the comparator."]
pub type CTL2_REFSRC_R = crate :: FieldReader < CTL2_REFSRC_A > ; # [doc = "These bits select the reference source for the comparator.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTL2_REFSRC_A { # [doc = "0: OFF"]
CTL2_REFSRC_OFF = 0 , # [doc = "1: VDDA_DAC"]
CTL2_REFSRC_VDDA_DAC = 1 , # [doc = "2: VREF_DAC"]
CTL2_REFSRC_VREF_DAC = 2 , # [doc = "3: VREF"]
CTL2_REFSRC_VREF = 3 , } impl From < CTL2_REFSRC_A > for u8 { # [inline (always)]
fn from (variant : CTL2_REFSRC_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTL2_REFSRC_A { type Ux = u8 ; } impl CTL2_REFSRC_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL2_REFSRC_A { match self . bits { 0 => CTL2_REFSRC_A :: CTL2_REFSRC_OFF , 1 => CTL2_REFSRC_A :: CTL2_REFSRC_VDDA_DAC , 2 => CTL2_REFSRC_A :: CTL2_REFSRC_VREF_DAC , 3 => CTL2_REFSRC_A :: CTL2_REFSRC_VREF , _ => unreachable ! () , } } # [doc = "OFF"]
# [inline (always)]
pub fn is_ctl2_refsrc_off (& self) -> bool { * self == CTL2_REFSRC_A :: CTL2_REFSRC_OFF } # [doc = "VDDA_DAC"]
# [inline (always)]
pub fn is_ctl2_refsrc_vdda_dac (& self) -> bool { * self == CTL2_REFSRC_A :: CTL2_REFSRC_VDDA_DAC } # [doc = "VREF_DAC"]
# [inline (always)]
pub fn is_ctl2_refsrc_vref_dac (& self) -> bool { * self == CTL2_REFSRC_A :: CTL2_REFSRC_VREF_DAC } # [doc = "VREF"]
# [inline (always)]
pub fn is_ctl2_refsrc_vref (& self) -> bool { * self == CTL2_REFSRC_A :: CTL2_REFSRC_VREF } } # [doc = "Field `CTL2_REFSRC` writer - These bits select the reference source for the comparator."]
pub type CTL2_REFSRC_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , CTL2_REFSRC_A > ; impl < 'a , REG , const O : u8 > CTL2_REFSRC_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "OFF"]
# [inline (always)]
pub fn ctl2_refsrc_off (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_REFSRC_A :: CTL2_REFSRC_OFF) } # [doc = "VDDA_DAC"]
# [inline (always)]
pub fn ctl2_refsrc_vdda_dac (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_REFSRC_A :: CTL2_REFSRC_VDDA_DAC) } # [doc = "VREF_DAC"]
# [inline (always)]
pub fn ctl2_refsrc_vref_dac (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_REFSRC_A :: CTL2_REFSRC_VREF_DAC) } # [doc = "VREF"]
# [inline (always)]
pub fn ctl2_refsrc_vref (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_REFSRC_A :: CTL2_REFSRC_VREF) } } # [doc = "Field `CTL2_REFSEL` reader - This bit selects if the selected reference voltage is applied to positive or negative terminal of the comparator."]
pub type CTL2_REFSEL_R = crate :: BitReader < CTL2_REFSEL_A > ; # [doc = "This bit selects if the selected reference voltage is applied to positive or negative terminal of the comparator.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL2_REFSEL_A { # [doc = "0: POSITIVE"]
CTL2_REFSEL_POSITIVE = 0 , # [doc = "1: NEGATIVE"]
CTL2_REFSEL_NEGATIVE = 1 , } impl From < CTL2_REFSEL_A > for bool { # [inline (always)]
fn from (variant : CTL2_REFSEL_A) -> Self { variant as u8 != 0 } } impl CTL2_REFSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL2_REFSEL_A { match self . bits { false => CTL2_REFSEL_A :: CTL2_REFSEL_POSITIVE , true => CTL2_REFSEL_A :: CTL2_REFSEL_NEGATIVE , } } # [doc = "POSITIVE"]
# [inline (always)]
pub fn is_ctl2_refsel_positive (& self) -> bool { * self == CTL2_REFSEL_A :: CTL2_REFSEL_POSITIVE } # [doc = "NEGATIVE"]
# [inline (always)]
pub fn is_ctl2_refsel_negative (& self) -> bool { * self == CTL2_REFSEL_A :: CTL2_REFSEL_NEGATIVE } } # [doc = "Field `CTL2_REFSEL` writer - This bit selects if the selected reference voltage is applied to positive or negative terminal of the comparator."]
pub type CTL2_REFSEL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL2_REFSEL_A > ; impl < 'a , REG , const O : u8 > CTL2_REFSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "POSITIVE"]
# [inline (always)]
pub fn ctl2_refsel_positive (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_REFSEL_A :: CTL2_REFSEL_POSITIVE) } # [doc = "NEGATIVE"]
# [inline (always)]
pub fn ctl2_refsel_negative (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_REFSEL_A :: CTL2_REFSEL_NEGATIVE) } } # [doc = "Field `CTL2_BLANKSRC` reader - These bits select the blanking source for the comparator."]
pub type CTL2_BLANKSRC_R = crate :: FieldReader < CTL2_BLANKSRC_A > ; # [doc = "These bits select the blanking source for the comparator.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTL2_BLANKSRC_A { # [doc = "0: DISABLE"]
CTL2_BLANKSRC_DISABLE = 0 , # [doc = "1: BLANKSRC1"]
CTL2_BLANKSRC_BLANKSRC1 = 1 , # [doc = "2: BLANKSRC2"]
CTL2_BLANKSRC_BLANKSRC2 = 2 , # [doc = "3: BLANKSRC3"]
CTL2_BLANKSRC_BLANKSRC3 = 3 , # [doc = "4: BLANKSRC4"]
CTL2_BLANKSRC_BLANKSRC4 = 4 , # [doc = "5: BLANKSRC5"]
CTL2_BLANKSRC_BLANKSRC5 = 5 , # [doc = "6: BLANKSRC6"]
CTL2_BLANKSRC_BLANKSRC6 = 6 , } impl From < CTL2_BLANKSRC_A > for u8 { # [inline (always)]
fn from (variant : CTL2_BLANKSRC_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTL2_BLANKSRC_A { type Ux = u8 ; } impl CTL2_BLANKSRC_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTL2_BLANKSRC_A > { match self . bits { 0 => Some (CTL2_BLANKSRC_A :: CTL2_BLANKSRC_DISABLE) , 1 => Some (CTL2_BLANKSRC_A :: CTL2_BLANKSRC_BLANKSRC1) , 2 => Some (CTL2_BLANKSRC_A :: CTL2_BLANKSRC_BLANKSRC2) , 3 => Some (CTL2_BLANKSRC_A :: CTL2_BLANKSRC_BLANKSRC3) , 4 => Some (CTL2_BLANKSRC_A :: CTL2_BLANKSRC_BLANKSRC4) , 5 => Some (CTL2_BLANKSRC_A :: CTL2_BLANKSRC_BLANKSRC5) , 6 => Some (CTL2_BLANKSRC_A :: CTL2_BLANKSRC_BLANKSRC6) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl2_blanksrc_disable (& self) -> bool { * self == CTL2_BLANKSRC_A :: CTL2_BLANKSRC_DISABLE } # [doc = "BLANKSRC1"]
# [inline (always)]
pub fn is_ctl2_blanksrc_blanksrc1 (& self) -> bool { * self == CTL2_BLANKSRC_A :: CTL2_BLANKSRC_BLANKSRC1 } # [doc = "BLANKSRC2"]
# [inline (always)]
pub fn is_ctl2_blanksrc_blanksrc2 (& self) -> bool { * self == CTL2_BLANKSRC_A :: CTL2_BLANKSRC_BLANKSRC2 } # [doc = "BLANKSRC3"]
# [inline (always)]
pub fn is_ctl2_blanksrc_blanksrc3 (& self) -> bool { * self == CTL2_BLANKSRC_A :: CTL2_BLANKSRC_BLANKSRC3 } # [doc = "BLANKSRC4"]
# [inline (always)]
pub fn is_ctl2_blanksrc_blanksrc4 (& self) -> bool { * self == CTL2_BLANKSRC_A :: CTL2_BLANKSRC_BLANKSRC4 } # [doc = "BLANKSRC5"]
# [inline (always)]
pub fn is_ctl2_blanksrc_blanksrc5 (& self) -> bool { * self == CTL2_BLANKSRC_A :: CTL2_BLANKSRC_BLANKSRC5 } # [doc = "BLANKSRC6"]
# [inline (always)]
pub fn is_ctl2_blanksrc_blanksrc6 (& self) -> bool { * self == CTL2_BLANKSRC_A :: CTL2_BLANKSRC_BLANKSRC6 } } # [doc = "Field `CTL2_BLANKSRC` writer - These bits select the blanking source for the comparator."]
pub type CTL2_BLANKSRC_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CTL2_BLANKSRC_A > ; impl < 'a , REG , const O : u8 > CTL2_BLANKSRC_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl2_blanksrc_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_BLANKSRC_A :: CTL2_BLANKSRC_DISABLE) } # [doc = "BLANKSRC1"]
# [inline (always)]
pub fn ctl2_blanksrc_blanksrc1 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_BLANKSRC_A :: CTL2_BLANKSRC_BLANKSRC1) } # [doc = "BLANKSRC2"]
# [inline (always)]
pub fn ctl2_blanksrc_blanksrc2 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_BLANKSRC_A :: CTL2_BLANKSRC_BLANKSRC2) } # [doc = "BLANKSRC3"]
# [inline (always)]
pub fn ctl2_blanksrc_blanksrc3 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_BLANKSRC_A :: CTL2_BLANKSRC_BLANKSRC3) } # [doc = "BLANKSRC4"]
# [inline (always)]
pub fn ctl2_blanksrc_blanksrc4 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_BLANKSRC_A :: CTL2_BLANKSRC_BLANKSRC4) } # [doc = "BLANKSRC5"]
# [inline (always)]
pub fn ctl2_blanksrc_blanksrc5 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_BLANKSRC_A :: CTL2_BLANKSRC_BLANKSRC5) } # [doc = "BLANKSRC6"]
# [inline (always)]
pub fn ctl2_blanksrc_blanksrc6 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_BLANKSRC_A :: CTL2_BLANKSRC_BLANKSRC6) } } # [doc = "Field `CTL2_DACCTL` reader - This bit determines if the comparator output or DACSW bit controls the selection between DACCODE0 and DACCODE1."]
pub type CTL2_DACCTL_R = crate :: BitReader < CTL2_DACCTL_A > ; # [doc = "This bit determines if the comparator output or DACSW bit controls the selection between DACCODE0 and DACCODE1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL2_DACCTL_A { # [doc = "0: COMPOUT_SEL"]
CTL2_DACCTL_COMPOUT_SEL = 0 , # [doc = "1: DACSW_SEL"]
CTL2_DACCTL_DACSW_SEL = 1 , } impl From < CTL2_DACCTL_A > for bool { # [inline (always)]
fn from (variant : CTL2_DACCTL_A) -> Self { variant as u8 != 0 } } impl CTL2_DACCTL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL2_DACCTL_A { match self . bits { false => CTL2_DACCTL_A :: CTL2_DACCTL_COMPOUT_SEL , true => CTL2_DACCTL_A :: CTL2_DACCTL_DACSW_SEL , } } # [doc = "COMPOUT_SEL"]
# [inline (always)]
pub fn is_ctl2_dacctl_compout_sel (& self) -> bool { * self == CTL2_DACCTL_A :: CTL2_DACCTL_COMPOUT_SEL } # [doc = "DACSW_SEL"]
# [inline (always)]
pub fn is_ctl2_dacctl_dacsw_sel (& self) -> bool { * self == CTL2_DACCTL_A :: CTL2_DACCTL_DACSW_SEL } } # [doc = "Field `CTL2_DACCTL` writer - This bit determines if the comparator output or DACSW bit controls the selection between DACCODE0 and DACCODE1."]
pub type CTL2_DACCTL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL2_DACCTL_A > ; impl < 'a , REG , const O : u8 > CTL2_DACCTL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "COMPOUT_SEL"]
# [inline (always)]
pub fn ctl2_dacctl_compout_sel (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_DACCTL_A :: CTL2_DACCTL_COMPOUT_SEL) } # [doc = "DACSW_SEL"]
# [inline (always)]
pub fn ctl2_dacctl_dacsw_sel (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_DACCTL_A :: CTL2_DACCTL_DACSW_SEL) } } # [doc = "Field `CTL2_DACSW` reader - This bit selects between DACCODE0 and DACCODE1 to 8-bit DAC when DACCTL bit is 1."]
pub type CTL2_DACSW_R = crate :: BitReader < CTL2_DACSW_A > ; # [doc = "This bit selects between DACCODE0 and DACCODE1 to 8-bit DAC when DACCTL bit is 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL2_DACSW_A { # [doc = "0: DACCODE0_SEL"]
CTL2_DACSW_DACCODE0_SEL = 0 , # [doc = "1: DACCODE1_SEL"]
CTL2_DACSW_DACCODE1_SEL = 1 , } impl From < CTL2_DACSW_A > for bool { # [inline (always)]
fn from (variant : CTL2_DACSW_A) -> Self { variant as u8 != 0 } } impl CTL2_DACSW_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL2_DACSW_A { match self . bits { false => CTL2_DACSW_A :: CTL2_DACSW_DACCODE0_SEL , true => CTL2_DACSW_A :: CTL2_DACSW_DACCODE1_SEL , } } # [doc = "DACCODE0_SEL"]
# [inline (always)]
pub fn is_ctl2_dacsw_daccode0_sel (& self) -> bool { * self == CTL2_DACSW_A :: CTL2_DACSW_DACCODE0_SEL } # [doc = "DACCODE1_SEL"]
# [inline (always)]
pub fn is_ctl2_dacsw_daccode1_sel (& self) -> bool { * self == CTL2_DACSW_A :: CTL2_DACSW_DACCODE1_SEL } } # [doc = "Field `CTL2_DACSW` writer - This bit selects between DACCODE0 and DACCODE1 to 8-bit DAC when DACCTL bit is 1."]
pub type CTL2_DACSW_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL2_DACSW_A > ; impl < 'a , REG , const O : u8 > CTL2_DACSW_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DACCODE0_SEL"]
# [inline (always)]
pub fn ctl2_dacsw_daccode0_sel (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_DACSW_A :: CTL2_DACSW_DACCODE0_SEL) } # [doc = "DACCODE1_SEL"]
# [inline (always)]
pub fn ctl2_dacsw_daccode1_sel (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_DACSW_A :: CTL2_DACSW_DACCODE1_SEL) } } # [doc = "Field `CTL2_SAMPMODE` reader - Enable sampled mode of comparator."]
pub type CTL2_SAMPMODE_R = crate :: BitReader < CTL2_SAMPMODE_A > ; # [doc = "Enable sampled mode of comparator.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL2_SAMPMODE_A { # [doc = "0: DISABLE"]
CTL2_SAMPMODE_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL2_SAMPMODE_ENABLE = 1 , } impl From < CTL2_SAMPMODE_A > for bool { # [inline (always)]
fn from (variant : CTL2_SAMPMODE_A) -> Self { variant as u8 != 0 } } impl CTL2_SAMPMODE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL2_SAMPMODE_A { match self . bits { false => CTL2_SAMPMODE_A :: CTL2_SAMPMODE_DISABLE , true => CTL2_SAMPMODE_A :: CTL2_SAMPMODE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl2_sampmode_disable (& self) -> bool { * self == CTL2_SAMPMODE_A :: CTL2_SAMPMODE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl2_sampmode_enable (& self) -> bool { * self == CTL2_SAMPMODE_A :: CTL2_SAMPMODE_ENABLE } } # [doc = "Field `CTL2_SAMPMODE` writer - Enable sampled mode of comparator."]
pub type CTL2_SAMPMODE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL2_SAMPMODE_A > ; impl < 'a , REG , const O : u8 > CTL2_SAMPMODE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl2_sampmode_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_SAMPMODE_A :: CTL2_SAMPMODE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl2_sampmode_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_SAMPMODE_A :: CTL2_SAMPMODE_ENABLE) } } impl R { # [doc = "Bit 0 - This bit requests ULP_REF bandgap operation in static mode or sampled mode. The local reference buffer and 8-bit DAC inside comparator module are also configured accordingly. Static mode operation offers higher accuracy but consumes higher current. Sampled mode operation consumes lower current but with relaxed reference voltage accuracy. Comparator requests for reference voltage from ULP_REF only when REFLVL &amp;gt; 0."]
# [inline (always)]
pub fn ctl2_refmode (& self) -> CTL2_REFMODE_R { CTL2_REFMODE_R :: new ((self . bits & 1) != 0) } # [doc = "Bits 3:4 - These bits select the reference source for the comparator."]
# [inline (always)]
pub fn ctl2_refsrc (& self) -> CTL2_REFSRC_R { CTL2_REFSRC_R :: new (((self . bits >> 3) & 3) as u8) } # [doc = "Bit 7 - This bit selects if the selected reference voltage is applied to positive or negative terminal of the comparator."]
# [inline (always)]
pub fn ctl2_refsel (& self) -> CTL2_REFSEL_R { CTL2_REFSEL_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bits 8:10 - These bits select the blanking source for the comparator."]
# [inline (always)]
pub fn ctl2_blanksrc (& self) -> CTL2_BLANKSRC_R { CTL2_BLANKSRC_R :: new (((self . bits >> 8) & 7) as u8) } # [doc = "Bit 16 - This bit determines if the comparator output or DACSW bit controls the selection between DACCODE0 and DACCODE1."]
# [inline (always)]
pub fn ctl2_dacctl (& self) -> CTL2_DACCTL_R { CTL2_DACCTL_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 17 - This bit selects between DACCODE0 and DACCODE1 to 8-bit DAC when DACCTL bit is 1."]
# [inline (always)]
pub fn ctl2_dacsw (& self) -> CTL2_DACSW_R { CTL2_DACSW_R :: new (((self . bits >> 17) & 1) != 0) } # [doc = "Bit 24 - Enable sampled mode of comparator."]
# [inline (always)]
pub fn ctl2_sampmode (& self) -> CTL2_SAMPMODE_R { CTL2_SAMPMODE_R :: new (((self . bits >> 24) & 1) != 0) } } impl W { # [doc = "Bit 0 - This bit requests ULP_REF bandgap operation in static mode or sampled mode. The local reference buffer and 8-bit DAC inside comparator module are also configured accordingly. Static mode operation offers higher accuracy but consumes higher current. Sampled mode operation consumes lower current but with relaxed reference voltage accuracy. Comparator requests for reference voltage from ULP_REF only when REFLVL &amp;gt; 0."]
# [inline (always)]
# [must_use]
pub fn ctl2_refmode (& mut self) -> CTL2_REFMODE_W < CTL2_SPEC , 0 > { CTL2_REFMODE_W :: new (self) } # [doc = "Bits 3:4 - These bits select the reference source for the comparator."]
# [inline (always)]
# [must_use]
pub fn ctl2_refsrc (& mut self) -> CTL2_REFSRC_W < CTL2_SPEC , 3 > { CTL2_REFSRC_W :: new (self) } # [doc = "Bit 7 - This bit selects if the selected reference voltage is applied to positive or negative terminal of the comparator."]
# [inline (always)]
# [must_use]
pub fn ctl2_refsel (& mut self) -> CTL2_REFSEL_W < CTL2_SPEC , 7 > { CTL2_REFSEL_W :: new (self) } # [doc = "Bits 8:10 - These bits select the blanking source for the comparator."]
# [inline (always)]
# [must_use]
pub fn ctl2_blanksrc (& mut self) -> CTL2_BLANKSRC_W < CTL2_SPEC , 8 > { CTL2_BLANKSRC_W :: new (self) } # [doc = "Bit 16 - This bit determines if the comparator output or DACSW bit controls the selection between DACCODE0 and DACCODE1."]
# [inline (always)]
# [must_use]
pub fn ctl2_dacctl (& mut self) -> CTL2_DACCTL_W < CTL2_SPEC , 16 > { CTL2_DACCTL_W :: new (self) } # [doc = "Bit 17 - This bit selects between DACCODE0 and DACCODE1 to 8-bit DAC when DACCTL bit is 1."]
# [inline (always)]
# [must_use]
pub fn ctl2_dacsw (& mut self) -> CTL2_DACSW_W < CTL2_SPEC , 17 > { CTL2_DACSW_W :: new (self) } # [doc = "Bit 24 - Enable sampled mode of comparator."]
# [inline (always)]
# [must_use]
pub fn ctl2_sampmode (& mut self) -> CTL2_SAMPMODE_W < CTL2_SPEC , 24 > { CTL2_SAMPMODE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Control 2\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl2::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl2::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTL2_SPEC ; impl crate :: RegisterSpec for CTL2_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ctl2::R`](R) reader structure"]
impl crate :: Readable for CTL2_SPEC { } # [doc = "`write(|w| ..)` method takes [`ctl2::W`](W) writer structure"]
impl crate :: Writable for CTL2_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTL2 to value 0"]
impl crate :: Resettable for CTL2_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTL3 (rw) register accessor: Control 3\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl3::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl3::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctl3`]
module"]
pub type CTL3 = crate :: Reg < ctl3 :: CTL3_SPEC > ; # [doc = "Control 3"]
pub mod ctl3 { # [doc = "Register `CTL3` reader"]
pub type R = crate :: R < CTL3_SPEC > ; # [doc = "Register `CTL3` writer"]
pub type W = crate :: W < CTL3_SPEC > ; # [doc = "Field `CTL3_DACCODE0` reader - This is the first 8-bit DAC code. When the DAC code is 0x0 the DAC output will be 0 V. When the DAC code is 0xFF the DAC output will be selected reference voltage x 255/256."]
pub type CTL3_DACCODE0_R = crate :: FieldReader ; # [doc = "Field `CTL3_DACCODE0` writer - This is the first 8-bit DAC code. When the DAC code is 0x0 the DAC output will be 0 V. When the DAC code is 0xFF the DAC output will be selected reference voltage x 255/256."]
pub type CTL3_DACCODE0_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O > ; # [doc = "Field `CTL3_DACCODE1` reader - This is the second 8-bit DAC code. When the DAC code is 0x0 the DAC output will be 0 V. When the DAC code is 0xFF the DAC output will be selected reference voltage x 255/256."]
pub type CTL3_DACCODE1_R = crate :: FieldReader ; # [doc = "Field `CTL3_DACCODE1` writer - This is the second 8-bit DAC code. When the DAC code is 0x0 the DAC output will be 0 V. When the DAC code is 0xFF the DAC output will be selected reference voltage x 255/256."]
pub type CTL3_DACCODE1_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O > ; impl R { # [doc = "Bits 0:7 - This is the first 8-bit DAC code. When the DAC code is 0x0 the DAC output will be 0 V. When the DAC code is 0xFF the DAC output will be selected reference voltage x 255/256."]
# [inline (always)]
pub fn ctl3_daccode0 (& self) -> CTL3_DACCODE0_R { CTL3_DACCODE0_R :: new ((self . bits & 0xff) as u8) } # [doc = "Bits 16:23 - This is the second 8-bit DAC code. When the DAC code is 0x0 the DAC output will be 0 V. When the DAC code is 0xFF the DAC output will be selected reference voltage x 255/256."]
# [inline (always)]
pub fn ctl3_daccode1 (& self) -> CTL3_DACCODE1_R { CTL3_DACCODE1_R :: new (((self . bits >> 16) & 0xff) as u8) } } impl W { # [doc = "Bits 0:7 - This is the first 8-bit DAC code. When the DAC code is 0x0 the DAC output will be 0 V. When the DAC code is 0xFF the DAC output will be selected reference voltage x 255/256."]
# [inline (always)]
# [must_use]
pub fn ctl3_daccode0 (& mut self) -> CTL3_DACCODE0_W < CTL3_SPEC , 0 > { CTL3_DACCODE0_W :: new (self) } # [doc = "Bits 16:23 - This is the second 8-bit DAC code. When the DAC code is 0x0 the DAC output will be 0 V. When the DAC code is 0xFF the DAC output will be selected reference voltage x 255/256."]
# [inline (always)]
# [must_use]
pub fn ctl3_daccode1 (& mut self) -> CTL3_DACCODE1_W < CTL3_SPEC , 16 > { CTL3_DACCODE1_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Control 3\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl3::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl3::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTL3_SPEC ; impl crate :: RegisterSpec for CTL3_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ctl3::R`](R) reader structure"]
impl crate :: Readable for CTL3_SPEC { } # [doc = "`write(|w| ..)` method takes [`ctl3::W`](W) writer structure"]
impl crate :: Writable for CTL3_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTL3 to value 0"]
impl crate :: Resettable for CTL3_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "STAT (r) register accessor: Status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@stat`]
module"]
pub type STAT = crate :: Reg < stat :: STAT_SPEC > ; # [doc = "Status"]
pub mod stat { # [doc = "Register `STAT` reader"]
pub type R = crate :: R < STAT_SPEC > ; # [doc = "Field `STAT_OUT` reader - This bit reflects the value of the comparator output. Writing to this bit has no effect on the comparator output."]
pub type STAT_OUT_R = crate :: BitReader < STAT_OUT_A > ; # [doc = "This bit reflects the value of the comparator output. Writing to this bit has no effect on the comparator output.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_OUT_A { # [doc = "0: LOW"]
STAT_OUT_LOW = 0 , # [doc = "1: HIGH"]
STAT_OUT_HIGH = 1 , } impl From < STAT_OUT_A > for bool { # [inline (always)]
fn from (variant : STAT_OUT_A) -> Self { variant as u8 != 0 } } impl STAT_OUT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_OUT_A { match self . bits { false => STAT_OUT_A :: STAT_OUT_LOW , true => STAT_OUT_A :: STAT_OUT_HIGH , } } # [doc = "LOW"]
# [inline (always)]
pub fn is_stat_out_low (& self) -> bool { * self == STAT_OUT_A :: STAT_OUT_LOW } # [doc = "HIGH"]
# [inline (always)]
pub fn is_stat_out_high (& self) -> bool { * self == STAT_OUT_A :: STAT_OUT_HIGH } } impl R { # [doc = "Bit 0 - This bit reflects the value of the comparator output. Writing to this bit has no effect on the comparator output."]
# [inline (always)]
pub fn stat_out (& self) -> STAT_OUT_R { STAT_OUT_R :: new ((self . bits & 1) != 0) } } # [doc = "Status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct STAT_SPEC ; impl crate :: RegisterSpec for STAT_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`stat::R`](R) reader structure"]
impl crate :: Readable for STAT_SPEC { } # [doc = "`reset()` method sets STAT to value 0"]
impl crate :: Resettable for STAT_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } } # [doc = "mem_map"]
pub struct SYSCTL { _marker : PhantomData < * const () > } unsafe impl Send for SYSCTL { } impl SYSCTL { # [doc = r"Pointer to the register block"]
pub const PTR : * const sysctl :: RegisterBlock = 0x400a_f000 as * const _ ; # [doc = r"Return the pointer to the register block"]
# [inline (always)]
pub const fn ptr () -> * const sysctl :: RegisterBlock { Self :: PTR } # [doc = r" Steal an instance of this peripheral"]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Ensure that the new instance of the peripheral cannot be used in a way"]
# [doc = r" that may race with any existing instances, for example by only"]
# [doc = r" accessing read-only or write-only registers, or by consuming the"]
# [doc = r" original peripheral and using critical sections to coordinate"]
# [doc = r" access between multiple new instances."]
# [doc = r""]
# [doc = r" Additionally, other software such as HALs may rely on only one"]
# [doc = r" peripheral instance existing to ensure memory safety; ensure"]
# [doc = r" no stolen instances are passed to such software."]
pub unsafe fn steal () -> Self { Self { _marker : PhantomData } } } impl Deref for SYSCTL { type Target = sysctl :: RegisterBlock ; # [inline (always)]
fn deref (& self) -> & Self :: Target { unsafe { & * Self :: PTR } } } impl core :: fmt :: Debug for SYSCTL { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("SYSCTL") . finish () } } # [doc = "mem_map"]
pub mod sysctl { # [doc = r"Register block"]
# [repr (C)]
pub struct RegisterBlock { _reserved0 : [u8 ; 0x1020]
, # [doc = "0x1020 - SYSCTL interrupt index"]
pub iidx : IIDX , _reserved1 : [u8 ; 0x04]
, # [doc = "0x1028 - SYSCTL interrupt mask"]
pub imask : IMASK , _reserved2 : [u8 ; 0x04]
, # [doc = "0x1030 - SYSCTL raw interrupt status"]
pub ris : RIS , _reserved3 : [u8 ; 0x04]
, # [doc = "0x1038 - SYSCTL masked interrupt status"]
pub mis : MIS , _reserved4 : [u8 ; 0x04]
, # [doc = "0x1040 - SYSCTL interrupt set"]
pub iset : ISET , _reserved5 : [u8 ; 0x04]
, # [doc = "0x1048 - SYSCTL interrupt clear"]
pub iclr : ICLR , _reserved6 : [u8 ; 0x04]
, # [doc = "0x1050 - NMI interrupt index"]
pub nmiiidx : NMIIIDX , _reserved7 : [u8 ; 0x0c]
, # [doc = "0x1060 - NMI raw interrupt status"]
pub nmiris : NMIRIS , _reserved8 : [u8 ; 0x0c]
, # [doc = "0x1070 - NMI interrupt set"]
pub nmiiset : NMIISET , _reserved9 : [u8 ; 0x04]
, # [doc = "0x1078 - NMI interrupt clear"]
pub nmiiclr : NMIICLR , _reserved10 : [u8 ; 0x84]
, # [doc = "0x1100 - SYSOSC configuration"]
pub sysosccfg : SYSOSCCFG , _reserved11 : [u8 ; 0x34]
, # [doc = "0x1138 - General clock configuration"]
pub genclkcfg : GENCLKCFG , # [doc = "0x113c - General clock enable control"]
pub genclken : GENCLKEN , # [doc = "0x1140 - Power mode configuration"]
pub pmodecfg : PMODECFG , _reserved14 : [u8 ; 0x0c]
, # [doc = "0x1150 - Frequency clock counter (FCC) count"]
pub fcc : FCC , _reserved15 : [u8 ; 0x1c]
, # [doc = "0x1170 - SYSOSC user-specified trim"]
pub sysosctrimuser : SYSOSCTRIMUSER , _reserved16 : [u8 ; 0x04]
, # [doc = "0x1178 - SRAM Write Boundary"]
pub sramboundary : SRAMBOUNDARY , _reserved17 : [u8 ; 0x04]
, # [doc = "0x1180 - System configuration"]
pub systemcfg : SYSTEMCFG , _reserved18 : [u8 ; 0x7c]
, # [doc = "0x1200 - SYSCTL register write lockout"]
pub writelock : WRITELOCK , _reserved19 : [u8 ; 0x1c]
, # [doc = "0x1220 - Reset cause"]
pub rstcause : RSTCAUSE , _reserved20 : [u8 ; 0xdc]
, # [doc = "0x1300 - Reset level for application-triggered reset command"]
pub resetlevel : RESETLEVEL , # [doc = "0x1304 - Execute an application-triggered reset command"]
pub resetcmd : RESETCMD , # [doc = "0x1308 - BOR threshold selection"]
pub borthreshold : BORTHRESHOLD , # [doc = "0x130c - Set the BOR threshold"]
pub borclrcmd : BORCLRCMD , # [doc = "0x1310 - SYSOSC frequency correction loop (FCL) ROSC enable"]
pub sysoscfclctl : SYSOSCFCLCTL , _reserved25 : [u8 ; 0x08]
, # [doc = "0x131c - SHUTDOWN IO release control"]
pub shdniorel : SHDNIOREL , # [doc = "0x1320 - Disable the reset function of the NRST pin"]
pub exrstpin : EXRSTPIN , _reserved27 : [u8 ; 0x04]
, # [doc = "0x1328 - Disable the SWD function on the SWD pins"]
pub swdcfg : SWDCFG , # [doc = "0x132c - Frequency clock counter start capture"]
pub fcccmd : FCCCMD , _reserved29 : [u8 ; 0x50]
, # [doc = "0x1380 - GPAMP control"]
pub pmuopamp : PMUOPAMP , _reserved30 : [u8 ; 0x7c]
, # [doc = "0x1400 - Shutdown storage memory (byte 0)"]
pub shutdnstore0 : SHUTDNSTORE0 , # [doc = "0x1404 - Shutdown storage memory (byte 1)"]
pub shutdnstore1 : SHUTDNSTORE1 , # [doc = "0x1408 - Shutdown storage memory (byte 2)"]
pub shutdnstore2 : SHUTDNSTORE2 , # [doc = "0x140c - Shutdown storage memory (byte 3)"]
pub shutdnstore3 : SHUTDNSTORE3 , } # [doc = "IIDX (r) register accessor: SYSCTL interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@iidx`]
module"]
pub type IIDX = crate :: Reg < iidx :: IIDX_SPEC > ; # [doc = "SYSCTL interrupt index"]
pub mod iidx { # [doc = "Register `IIDX` reader"]
pub type R = crate :: R < IIDX_SPEC > ; # [doc = "Field `IIDX_STAT` reader - The SYSCTL interrupt index (IIDX) register generates a value corresponding to the highest priority pending interrupt source. This value may be used as an address offset for fast, deterministic handling in the interrupt service routine. A read of the IIDX register will clear the corresponding interrupt status in the RIS and MIS registers."]
pub type IIDX_STAT_R = crate :: FieldReader < IIDX_STAT_A > ; # [doc = "The SYSCTL interrupt index (IIDX) register generates a value corresponding to the highest priority pending interrupt source. This value may be used as an address offset for fast, deterministic handling in the interrupt service routine. A read of the IIDX register will clear the corresponding interrupt status in the RIS and MIS registers.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum IIDX_STAT_A { # [doc = "0: NO_INTR"]
IIDX_STAT_NO_INTR = 0 , # [doc = "1: LFOSCGOOD"]
IIDX_STAT_LFOSCGOOD = 1 , # [doc = "2: ANACLKERR"]
IIDX_STAT_ANACLKERR = 2 , } impl From < IIDX_STAT_A > for u8 { # [inline (always)]
fn from (variant : IIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for IIDX_STAT_A { type Ux = u8 ; } impl IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < IIDX_STAT_A > { match self . bits { 0 => Some (IIDX_STAT_A :: IIDX_STAT_NO_INTR) , 1 => Some (IIDX_STAT_A :: IIDX_STAT_LFOSCGOOD) , 2 => Some (IIDX_STAT_A :: IIDX_STAT_ANACLKERR) , _ => None , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_iidx_stat_no_intr (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_NO_INTR } # [doc = "LFOSCGOOD"]
# [inline (always)]
pub fn is_iidx_stat_lfoscgood (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_LFOSCGOOD } # [doc = "ANACLKERR"]
# [inline (always)]
pub fn is_iidx_stat_anaclkerr (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_ANACLKERR } } impl R { # [doc = "Bits 0:1 - The SYSCTL interrupt index (IIDX) register generates a value corresponding to the highest priority pending interrupt source. This value may be used as an address offset for fast, deterministic handling in the interrupt service routine. A read of the IIDX register will clear the corresponding interrupt status in the RIS and MIS registers."]
# [inline (always)]
pub fn iidx_stat (& self) -> IIDX_STAT_R { IIDX_STAT_R :: new ((self . bits & 3) as u8) } } # [doc = "SYSCTL interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IIDX_SPEC ; impl crate :: RegisterSpec for IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`iidx::R`](R) reader structure"]
impl crate :: Readable for IIDX_SPEC { } # [doc = "`reset()` method sets IIDX to value 0"]
impl crate :: Resettable for IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "IMASK (rw) register accessor: SYSCTL interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`imask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`imask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@imask`]
module"]
pub type IMASK = crate :: Reg < imask :: IMASK_SPEC > ; # [doc = "SYSCTL interrupt mask"]
pub mod imask { # [doc = "Register `IMASK` reader"]
pub type R = crate :: R < IMASK_SPEC > ; # [doc = "Register `IMASK` writer"]
pub type W = crate :: W < IMASK_SPEC > ; # [doc = "Field `IMASK_LFOSCGOOD` reader - Enable or disable the LFOSCGOOD interrupt. LFOSCGOOD indicates that the LFOSC has started successfully."]
pub type IMASK_LFOSCGOOD_R = crate :: BitReader < IMASK_LFOSCGOOD_A > ; # [doc = "Enable or disable the LFOSCGOOD interrupt. LFOSCGOOD indicates that the LFOSC has started successfully.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_LFOSCGOOD_A { # [doc = "0: DISABLE"]
IMASK_LFOSCGOOD_DISABLE = 0 , # [doc = "1: ENABLE"]
IMASK_LFOSCGOOD_ENABLE = 1 , } impl From < IMASK_LFOSCGOOD_A > for bool { # [inline (always)]
fn from (variant : IMASK_LFOSCGOOD_A) -> Self { variant as u8 != 0 } } impl IMASK_LFOSCGOOD_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_LFOSCGOOD_A { match self . bits { false => IMASK_LFOSCGOOD_A :: IMASK_LFOSCGOOD_DISABLE , true => IMASK_LFOSCGOOD_A :: IMASK_LFOSCGOOD_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_imask_lfoscgood_disable (& self) -> bool { * self == IMASK_LFOSCGOOD_A :: IMASK_LFOSCGOOD_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_imask_lfoscgood_enable (& self) -> bool { * self == IMASK_LFOSCGOOD_A :: IMASK_LFOSCGOOD_ENABLE } } # [doc = "Field `IMASK_LFOSCGOOD` writer - Enable or disable the LFOSCGOOD interrupt. LFOSCGOOD indicates that the LFOSC has started successfully."]
pub type IMASK_LFOSCGOOD_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_LFOSCGOOD_A > ; impl < 'a , REG , const O : u8 > IMASK_LFOSCGOOD_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn imask_lfoscgood_disable (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_LFOSCGOOD_A :: IMASK_LFOSCGOOD_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn imask_lfoscgood_enable (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_LFOSCGOOD_A :: IMASK_LFOSCGOOD_ENABLE) } } # [doc = "Field `IMASK_ANACLKERR` reader - Analog Clocking Consistency Error"]
pub type IMASK_ANACLKERR_R = crate :: BitReader < IMASK_ANACLKERR_A > ; # [doc = "Analog Clocking Consistency Error\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_ANACLKERR_A { # [doc = "0: DISABLE"]
IMASK_ANACLKERR_DISABLE = 0 , # [doc = "1: ENABLE"]
IMASK_ANACLKERR_ENABLE = 1 , } impl From < IMASK_ANACLKERR_A > for bool { # [inline (always)]
fn from (variant : IMASK_ANACLKERR_A) -> Self { variant as u8 != 0 } } impl IMASK_ANACLKERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_ANACLKERR_A { match self . bits { false => IMASK_ANACLKERR_A :: IMASK_ANACLKERR_DISABLE , true => IMASK_ANACLKERR_A :: IMASK_ANACLKERR_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_imask_anaclkerr_disable (& self) -> bool { * self == IMASK_ANACLKERR_A :: IMASK_ANACLKERR_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_imask_anaclkerr_enable (& self) -> bool { * self == IMASK_ANACLKERR_A :: IMASK_ANACLKERR_ENABLE } } # [doc = "Field `IMASK_ANACLKERR` writer - Analog Clocking Consistency Error"]
pub type IMASK_ANACLKERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_ANACLKERR_A > ; impl < 'a , REG , const O : u8 > IMASK_ANACLKERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn imask_anaclkerr_disable (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_ANACLKERR_A :: IMASK_ANACLKERR_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn imask_anaclkerr_enable (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_ANACLKERR_A :: IMASK_ANACLKERR_ENABLE) } } impl R { # [doc = "Bit 0 - Enable or disable the LFOSCGOOD interrupt. LFOSCGOOD indicates that the LFOSC has started successfully."]
# [inline (always)]
pub fn imask_lfoscgood (& self) -> IMASK_LFOSCGOOD_R { IMASK_LFOSCGOOD_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Analog Clocking Consistency Error"]
# [inline (always)]
pub fn imask_anaclkerr (& self) -> IMASK_ANACLKERR_R { IMASK_ANACLKERR_R :: new (((self . bits >> 1) & 1) != 0) } } impl W { # [doc = "Bit 0 - Enable or disable the LFOSCGOOD interrupt. LFOSCGOOD indicates that the LFOSC has started successfully."]
# [inline (always)]
# [must_use]
pub fn imask_lfoscgood (& mut self) -> IMASK_LFOSCGOOD_W < IMASK_SPEC , 0 > { IMASK_LFOSCGOOD_W :: new (self) } # [doc = "Bit 1 - Analog Clocking Consistency Error"]
# [inline (always)]
# [must_use]
pub fn imask_anaclkerr (& mut self) -> IMASK_ANACLKERR_W < IMASK_SPEC , 1 > { IMASK_ANACLKERR_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "SYSCTL interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`imask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`imask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IMASK_SPEC ; impl crate :: RegisterSpec for IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`imask::R`](R) reader structure"]
impl crate :: Readable for IMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`imask::W`](W) writer structure"]
impl crate :: Writable for IMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets IMASK to value 0"]
impl crate :: Resettable for IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RIS (r) register accessor: SYSCTL raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ris`]
module"]
pub type RIS = crate :: Reg < ris :: RIS_SPEC > ; # [doc = "SYSCTL raw interrupt status"]
pub mod ris { # [doc = "Register `RIS` reader"]
pub type R = crate :: R < RIS_SPEC > ; # [doc = "Field `RIS_LFOSCGOOD` reader - Raw status of the LFOSCGOOD interrupt."]
pub type RIS_LFOSCGOOD_R = crate :: BitReader < RIS_LFOSCGOOD_A > ; # [doc = "Raw status of the LFOSCGOOD interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_LFOSCGOOD_A { # [doc = "0: FALSE"]
RIS_LFOSCGOOD_FALSE = 0 , # [doc = "1: TRUE"]
RIS_LFOSCGOOD_TRUE = 1 , } impl From < RIS_LFOSCGOOD_A > for bool { # [inline (always)]
fn from (variant : RIS_LFOSCGOOD_A) -> Self { variant as u8 != 0 } } impl RIS_LFOSCGOOD_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_LFOSCGOOD_A { match self . bits { false => RIS_LFOSCGOOD_A :: RIS_LFOSCGOOD_FALSE , true => RIS_LFOSCGOOD_A :: RIS_LFOSCGOOD_TRUE , } } # [doc = "FALSE"]
# [inline (always)]
pub fn is_ris_lfoscgood_false (& self) -> bool { * self == RIS_LFOSCGOOD_A :: RIS_LFOSCGOOD_FALSE } # [doc = "TRUE"]
# [inline (always)]
pub fn is_ris_lfoscgood_true (& self) -> bool { * self == RIS_LFOSCGOOD_A :: RIS_LFOSCGOOD_TRUE } } # [doc = "Field `RIS_ANACLKERR` reader - Analog Clocking Consistency Error"]
pub type RIS_ANACLKERR_R = crate :: BitReader < RIS_ANACLKERR_A > ; # [doc = "Analog Clocking Consistency Error\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_ANACLKERR_A { # [doc = "0: FALSE"]
RIS_ANACLKERR_FALSE = 0 , # [doc = "1: TRUE"]
RIS_ANACLKERR_TRUE = 1 , } impl From < RIS_ANACLKERR_A > for bool { # [inline (always)]
fn from (variant : RIS_ANACLKERR_A) -> Self { variant as u8 != 0 } } impl RIS_ANACLKERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_ANACLKERR_A { match self . bits { false => RIS_ANACLKERR_A :: RIS_ANACLKERR_FALSE , true => RIS_ANACLKERR_A :: RIS_ANACLKERR_TRUE , } } # [doc = "FALSE"]
# [inline (always)]
pub fn is_ris_anaclkerr_false (& self) -> bool { * self == RIS_ANACLKERR_A :: RIS_ANACLKERR_FALSE } # [doc = "TRUE"]
# [inline (always)]
pub fn is_ris_anaclkerr_true (& self) -> bool { * self == RIS_ANACLKERR_A :: RIS_ANACLKERR_TRUE } } impl R { # [doc = "Bit 0 - Raw status of the LFOSCGOOD interrupt."]
# [inline (always)]
pub fn ris_lfoscgood (& self) -> RIS_LFOSCGOOD_R { RIS_LFOSCGOOD_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Analog Clocking Consistency Error"]
# [inline (always)]
pub fn ris_anaclkerr (& self) -> RIS_ANACLKERR_R { RIS_ANACLKERR_R :: new (((self . bits >> 1) & 1) != 0) } } # [doc = "SYSCTL raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RIS_SPEC ; impl crate :: RegisterSpec for RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ris::R`](R) reader structure"]
impl crate :: Readable for RIS_SPEC { } # [doc = "`reset()` method sets RIS to value 0"]
impl crate :: Resettable for RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "MIS (r) register accessor: SYSCTL masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mis`]
module"]
pub type MIS = crate :: Reg < mis :: MIS_SPEC > ; # [doc = "SYSCTL masked interrupt status"]
pub mod mis { # [doc = "Register `MIS` reader"]
pub type R = crate :: R < MIS_SPEC > ; # [doc = "Field `MIS_LFOSCGOOD` reader - Masked status of the LFOSCGOOD interrupt."]
pub type MIS_LFOSCGOOD_R = crate :: BitReader < MIS_LFOSCGOOD_A > ; # [doc = "Masked status of the LFOSCGOOD interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_LFOSCGOOD_A { # [doc = "0: FALSE"]
MIS_LFOSCGOOD_FALSE = 0 , # [doc = "1: TRUE"]
MIS_LFOSCGOOD_TRUE = 1 , } impl From < MIS_LFOSCGOOD_A > for bool { # [inline (always)]
fn from (variant : MIS_LFOSCGOOD_A) -> Self { variant as u8 != 0 } } impl MIS_LFOSCGOOD_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_LFOSCGOOD_A { match self . bits { false => MIS_LFOSCGOOD_A :: MIS_LFOSCGOOD_FALSE , true => MIS_LFOSCGOOD_A :: MIS_LFOSCGOOD_TRUE , } } # [doc = "FALSE"]
# [inline (always)]
pub fn is_mis_lfoscgood_false (& self) -> bool { * self == MIS_LFOSCGOOD_A :: MIS_LFOSCGOOD_FALSE } # [doc = "TRUE"]
# [inline (always)]
pub fn is_mis_lfoscgood_true (& self) -> bool { * self == MIS_LFOSCGOOD_A :: MIS_LFOSCGOOD_TRUE } } # [doc = "Field `MIS_ANACLKERR` reader - Analog Clocking Consistency Error"]
pub type MIS_ANACLKERR_R = crate :: BitReader < MIS_ANACLKERR_A > ; # [doc = "Analog Clocking Consistency Error\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_ANACLKERR_A { # [doc = "0: FALSE"]
MIS_ANACLKERR_FALSE = 0 , # [doc = "1: TRUE"]
MIS_ANACLKERR_TRUE = 1 , } impl From < MIS_ANACLKERR_A > for bool { # [inline (always)]
fn from (variant : MIS_ANACLKERR_A) -> Self { variant as u8 != 0 } } impl MIS_ANACLKERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_ANACLKERR_A { match self . bits { false => MIS_ANACLKERR_A :: MIS_ANACLKERR_FALSE , true => MIS_ANACLKERR_A :: MIS_ANACLKERR_TRUE , } } # [doc = "FALSE"]
# [inline (always)]
pub fn is_mis_anaclkerr_false (& self) -> bool { * self == MIS_ANACLKERR_A :: MIS_ANACLKERR_FALSE } # [doc = "TRUE"]
# [inline (always)]
pub fn is_mis_anaclkerr_true (& self) -> bool { * self == MIS_ANACLKERR_A :: MIS_ANACLKERR_TRUE } } impl R { # [doc = "Bit 0 - Masked status of the LFOSCGOOD interrupt."]
# [inline (always)]
pub fn mis_lfoscgood (& self) -> MIS_LFOSCGOOD_R { MIS_LFOSCGOOD_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Analog Clocking Consistency Error"]
# [inline (always)]
pub fn mis_anaclkerr (& self) -> MIS_ANACLKERR_R { MIS_ANACLKERR_R :: new (((self . bits >> 1) & 1) != 0) } } # [doc = "SYSCTL masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MIS_SPEC ; impl crate :: RegisterSpec for MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`mis::R`](R) reader structure"]
impl crate :: Readable for MIS_SPEC { } # [doc = "`reset()` method sets MIS to value 0"]
impl crate :: Resettable for MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "ISET (w) register accessor: SYSCTL interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@iset`]
module"]
pub type ISET = crate :: Reg < iset :: ISET_SPEC > ; # [doc = "SYSCTL interrupt set"]
pub mod iset { # [doc = "Register `ISET` writer"]
pub type W = crate :: W < ISET_SPEC > ; # [doc = "Set the LFOSCGOOD interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_LFOSCGOOD_AW { # [doc = "0: NO_EFFECT"]
ISET_LFOSCGOOD_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_LFOSCGOOD_SET = 1 , } impl From < ISET_LFOSCGOOD_AW > for bool { # [inline (always)]
fn from (variant : ISET_LFOSCGOOD_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_LFOSCGOOD` writer - Set the LFOSCGOOD interrupt."]
pub type ISET_LFOSCGOOD_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_LFOSCGOOD_AW > ; impl < 'a , REG , const O : u8 > ISET_LFOSCGOOD_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_lfoscgood_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_LFOSCGOOD_AW :: ISET_LFOSCGOOD_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_lfoscgood_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_LFOSCGOOD_AW :: ISET_LFOSCGOOD_SET) } } # [doc = "Analog Clocking Consistency Error\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_ANACLKERR_AW { # [doc = "0: NO_EFFECT"]
ISET_ANACLKERR_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_ANACLKERR_SET = 1 , } impl From < ISET_ANACLKERR_AW > for bool { # [inline (always)]
fn from (variant : ISET_ANACLKERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_ANACLKERR` writer - Analog Clocking Consistency Error"]
pub type ISET_ANACLKERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_ANACLKERR_AW > ; impl < 'a , REG , const O : u8 > ISET_ANACLKERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_anaclkerr_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_ANACLKERR_AW :: ISET_ANACLKERR_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_anaclkerr_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_ANACLKERR_AW :: ISET_ANACLKERR_SET) } } impl W { # [doc = "Bit 0 - Set the LFOSCGOOD interrupt."]
# [inline (always)]
# [must_use]
pub fn iset_lfoscgood (& mut self) -> ISET_LFOSCGOOD_W < ISET_SPEC , 0 > { ISET_LFOSCGOOD_W :: new (self) } # [doc = "Bit 1 - Analog Clocking Consistency Error"]
# [inline (always)]
# [must_use]
pub fn iset_anaclkerr (& mut self) -> ISET_ANACLKERR_W < ISET_SPEC , 1 > { ISET_ANACLKERR_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "SYSCTL interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ISET_SPEC ; impl crate :: RegisterSpec for ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`iset::W`](W) writer structure"]
impl crate :: Writable for ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets ISET to value 0"]
impl crate :: Resettable for ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "ICLR (w) register accessor: SYSCTL interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@iclr`]
module"]
pub type ICLR = crate :: Reg < iclr :: ICLR_SPEC > ; # [doc = "SYSCTL interrupt clear"]
pub mod iclr { # [doc = "Register `ICLR` writer"]
pub type W = crate :: W < ICLR_SPEC > ; # [doc = "Clear the LFOSCGOOD interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_LFOSCGOOD_AW { # [doc = "0: NO_EFFECT"]
ICLR_LFOSCGOOD_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_LFOSCGOOD_CLR = 1 , } impl From < ICLR_LFOSCGOOD_AW > for bool { # [inline (always)]
fn from (variant : ICLR_LFOSCGOOD_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_LFOSCGOOD` writer - Clear the LFOSCGOOD interrupt."]
pub type ICLR_LFOSCGOOD_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_LFOSCGOOD_AW > ; impl < 'a , REG , const O : u8 > ICLR_LFOSCGOOD_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_lfoscgood_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_LFOSCGOOD_AW :: ICLR_LFOSCGOOD_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_lfoscgood_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_LFOSCGOOD_AW :: ICLR_LFOSCGOOD_CLR) } } # [doc = "Analog Clocking Consistency Error\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_ANACLKERR_AW { # [doc = "0: NO_EFFECT"]
ICLR_ANACLKERR_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_ANACLKERR_CLR = 1 , } impl From < ICLR_ANACLKERR_AW > for bool { # [inline (always)]
fn from (variant : ICLR_ANACLKERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_ANACLKERR` writer - Analog Clocking Consistency Error"]
pub type ICLR_ANACLKERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_ANACLKERR_AW > ; impl < 'a , REG , const O : u8 > ICLR_ANACLKERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_anaclkerr_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_ANACLKERR_AW :: ICLR_ANACLKERR_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_anaclkerr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_ANACLKERR_AW :: ICLR_ANACLKERR_CLR) } } impl W { # [doc = "Bit 0 - Clear the LFOSCGOOD interrupt."]
# [inline (always)]
# [must_use]
pub fn iclr_lfoscgood (& mut self) -> ICLR_LFOSCGOOD_W < ICLR_SPEC , 0 > { ICLR_LFOSCGOOD_W :: new (self) } # [doc = "Bit 1 - Analog Clocking Consistency Error"]
# [inline (always)]
# [must_use]
pub fn iclr_anaclkerr (& mut self) -> ICLR_ANACLKERR_W < ICLR_SPEC , 1 > { ICLR_ANACLKERR_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "SYSCTL interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ICLR_SPEC ; impl crate :: RegisterSpec for ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`iclr::W`](W) writer structure"]
impl crate :: Writable for ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets ICLR to value 0"]
impl crate :: Resettable for ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "NMIIIDX (r) register accessor: NMI interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`nmiiidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@nmiiidx`]
module"]
pub type NMIIIDX = crate :: Reg < nmiiidx :: NMIIIDX_SPEC > ; # [doc = "NMI interrupt index"]
pub mod nmiiidx { # [doc = "Register `NMIIIDX` reader"]
pub type R = crate :: R < NMIIIDX_SPEC > ; # [doc = "Field `NMIIIDX_STAT` reader - The NMI interrupt index (NMIIIDX) register generates a value corresponding to the highest priority pending NMI source. This value may be used as an address offset for fast, deterministic handling in the NMI service routine. A read of the NMIIIDX register will clear the corresponding interrupt status in the NMIRIS register."]
pub type NMIIIDX_STAT_R = crate :: FieldReader < NMIIIDX_STAT_A > ; # [doc = "The NMI interrupt index (NMIIIDX) register generates a value corresponding to the highest priority pending NMI source. This value may be used as an address offset for fast, deterministic handling in the NMI service routine. A read of the NMIIIDX register will clear the corresponding interrupt status in the NMIRIS register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum NMIIIDX_STAT_A { # [doc = "0: NO_INTR"]
NMIIIDX_STAT_NO_INTR = 0 , # [doc = "1: BORLVL"]
NMIIIDX_STAT_BORLVL = 1 , # [doc = "2: WWDT0"]
NMIIIDX_STAT_WWDT0 = 2 , } impl From < NMIIIDX_STAT_A > for u8 { # [inline (always)]
fn from (variant : NMIIIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for NMIIIDX_STAT_A { type Ux = u8 ; } impl NMIIIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < NMIIIDX_STAT_A > { match self . bits { 0 => Some (NMIIIDX_STAT_A :: NMIIIDX_STAT_NO_INTR) , 1 => Some (NMIIIDX_STAT_A :: NMIIIDX_STAT_BORLVL) , 2 => Some (NMIIIDX_STAT_A :: NMIIIDX_STAT_WWDT0) , _ => None , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_nmiiidx_stat_no_intr (& self) -> bool { * self == NMIIIDX_STAT_A :: NMIIIDX_STAT_NO_INTR } # [doc = "BORLVL"]
# [inline (always)]
pub fn is_nmiiidx_stat_borlvl (& self) -> bool { * self == NMIIIDX_STAT_A :: NMIIIDX_STAT_BORLVL } # [doc = "WWDT0"]
# [inline (always)]
pub fn is_nmiiidx_stat_wwdt0 (& self) -> bool { * self == NMIIIDX_STAT_A :: NMIIIDX_STAT_WWDT0 } } impl R { # [doc = "Bits 0:1 - The NMI interrupt index (NMIIIDX) register generates a value corresponding to the highest priority pending NMI source. This value may be used as an address offset for fast, deterministic handling in the NMI service routine. A read of the NMIIIDX register will clear the corresponding interrupt status in the NMIRIS register."]
# [inline (always)]
pub fn nmiiidx_stat (& self) -> NMIIIDX_STAT_R { NMIIIDX_STAT_R :: new ((self . bits & 3) as u8) } } # [doc = "NMI interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`nmiiidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct NMIIIDX_SPEC ; impl crate :: RegisterSpec for NMIIIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`nmiiidx::R`](R) reader structure"]
impl crate :: Readable for NMIIIDX_SPEC { } # [doc = "`reset()` method sets NMIIIDX to value 0"]
impl crate :: Resettable for NMIIIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "NMIRIS (r) register accessor: NMI raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`nmiris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@nmiris`]
module"]
pub type NMIRIS = crate :: Reg < nmiris :: NMIRIS_SPEC > ; # [doc = "NMI raw interrupt status"]
pub mod nmiris { # [doc = "Register `NMIRIS` reader"]
pub type R = crate :: R < NMIRIS_SPEC > ; # [doc = "Field `NMIRIS_BORLVL` reader - Raw status of the BORLVL NMI"]
pub type NMIRIS_BORLVL_R = crate :: BitReader < NMIRIS_BORLVL_A > ; # [doc = "Raw status of the BORLVL NMI\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum NMIRIS_BORLVL_A { # [doc = "0: FALSE"]
NMIRIS_BORLVL_FALSE = 0 , # [doc = "1: TRUE"]
NMIRIS_BORLVL_TRUE = 1 , } impl From < NMIRIS_BORLVL_A > for bool { # [inline (always)]
fn from (variant : NMIRIS_BORLVL_A) -> Self { variant as u8 != 0 } } impl NMIRIS_BORLVL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> NMIRIS_BORLVL_A { match self . bits { false => NMIRIS_BORLVL_A :: NMIRIS_BORLVL_FALSE , true => NMIRIS_BORLVL_A :: NMIRIS_BORLVL_TRUE , } } # [doc = "FALSE"]
# [inline (always)]
pub fn is_nmiris_borlvl_false (& self) -> bool { * self == NMIRIS_BORLVL_A :: NMIRIS_BORLVL_FALSE } # [doc = "TRUE"]
# [inline (always)]
pub fn is_nmiris_borlvl_true (& self) -> bool { * self == NMIRIS_BORLVL_A :: NMIRIS_BORLVL_TRUE } } # [doc = "Field `NMIRIS_WWDT0` reader - Watch Dog 0 Fault"]
pub type NMIRIS_WWDT0_R = crate :: BitReader < NMIRIS_WWDT0_A > ; # [doc = "Watch Dog 0 Fault\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum NMIRIS_WWDT0_A { # [doc = "0: FALSE"]
NMIRIS_WWDT0_FALSE = 0 , # [doc = "1: TRUE"]
NMIRIS_WWDT0_TRUE = 1 , } impl From < NMIRIS_WWDT0_A > for bool { # [inline (always)]
fn from (variant : NMIRIS_WWDT0_A) -> Self { variant as u8 != 0 } } impl NMIRIS_WWDT0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> NMIRIS_WWDT0_A { match self . bits { false => NMIRIS_WWDT0_A :: NMIRIS_WWDT0_FALSE , true => NMIRIS_WWDT0_A :: NMIRIS_WWDT0_TRUE , } } # [doc = "FALSE"]
# [inline (always)]
pub fn is_nmiris_wwdt0_false (& self) -> bool { * self == NMIRIS_WWDT0_A :: NMIRIS_WWDT0_FALSE } # [doc = "TRUE"]
# [inline (always)]
pub fn is_nmiris_wwdt0_true (& self) -> bool { * self == NMIRIS_WWDT0_A :: NMIRIS_WWDT0_TRUE } } impl R { # [doc = "Bit 0 - Raw status of the BORLVL NMI"]
# [inline (always)]
pub fn nmiris_borlvl (& self) -> NMIRIS_BORLVL_R { NMIRIS_BORLVL_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Watch Dog 0 Fault"]
# [inline (always)]
pub fn nmiris_wwdt0 (& self) -> NMIRIS_WWDT0_R { NMIRIS_WWDT0_R :: new (((self . bits >> 1) & 1) != 0) } } # [doc = "NMI raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`nmiris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct NMIRIS_SPEC ; impl crate :: RegisterSpec for NMIRIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`nmiris::R`](R) reader structure"]
impl crate :: Readable for NMIRIS_SPEC { } # [doc = "`reset()` method sets NMIRIS to value 0"]
impl crate :: Resettable for NMIRIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "NMIISET (w) register accessor: NMI interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`nmiiset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@nmiiset`]
module"]
pub type NMIISET = crate :: Reg < nmiiset :: NMIISET_SPEC > ; # [doc = "NMI interrupt set"]
pub mod nmiiset { # [doc = "Register `NMIISET` writer"]
pub type W = crate :: W < NMIISET_SPEC > ; # [doc = "Set the BORLVL NMI\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum NMIISET_BORLVL_AW { # [doc = "0: NO_EFFECT"]
NMIISET_BORLVL_NO_EFFECT = 0 , # [doc = "1: SET"]
NMIISET_BORLVL_SET = 1 , } impl From < NMIISET_BORLVL_AW > for bool { # [inline (always)]
fn from (variant : NMIISET_BORLVL_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `NMIISET_BORLVL` writer - Set the BORLVL NMI"]
pub type NMIISET_BORLVL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , NMIISET_BORLVL_AW > ; impl < 'a , REG , const O : u8 > NMIISET_BORLVL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn nmiiset_borlvl_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (NMIISET_BORLVL_AW :: NMIISET_BORLVL_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn nmiiset_borlvl_set (self) -> & 'a mut crate :: W < REG > { self . variant (NMIISET_BORLVL_AW :: NMIISET_BORLVL_SET) } } # [doc = "Watch Dog 0 Fault\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum NMIISET_WWDT0_AW { # [doc = "0: NO_EFFECT"]
NMIISET_WWDT0_NO_EFFECT = 0 , # [doc = "1: SET"]
NMIISET_WWDT0_SET = 1 , } impl From < NMIISET_WWDT0_AW > for bool { # [inline (always)]
fn from (variant : NMIISET_WWDT0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `NMIISET_WWDT0` writer - Watch Dog 0 Fault"]
pub type NMIISET_WWDT0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , NMIISET_WWDT0_AW > ; impl < 'a , REG , const O : u8 > NMIISET_WWDT0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn nmiiset_wwdt0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (NMIISET_WWDT0_AW :: NMIISET_WWDT0_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn nmiiset_wwdt0_set (self) -> & 'a mut crate :: W < REG > { self . variant (NMIISET_WWDT0_AW :: NMIISET_WWDT0_SET) } } impl W { # [doc = "Bit 0 - Set the BORLVL NMI"]
# [inline (always)]
# [must_use]
pub fn nmiiset_borlvl (& mut self) -> NMIISET_BORLVL_W < NMIISET_SPEC , 0 > { NMIISET_BORLVL_W :: new (self) } # [doc = "Bit 1 - Watch Dog 0 Fault"]
# [inline (always)]
# [must_use]
pub fn nmiiset_wwdt0 (& mut self) -> NMIISET_WWDT0_W < NMIISET_SPEC , 1 > { NMIISET_WWDT0_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "NMI interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`nmiiset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct NMIISET_SPEC ; impl crate :: RegisterSpec for NMIISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`nmiiset::W`](W) writer structure"]
impl crate :: Writable for NMIISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets NMIISET to value 0"]
impl crate :: Resettable for NMIISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "NMIICLR (w) register accessor: NMI interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`nmiiclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@nmiiclr`]
module"]
pub type NMIICLR = crate :: Reg < nmiiclr :: NMIICLR_SPEC > ; # [doc = "NMI interrupt clear"]
pub mod nmiiclr { # [doc = "Register `NMIICLR` writer"]
pub type W = crate :: W < NMIICLR_SPEC > ; # [doc = "Clr the BORLVL NMI\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum NMIICLR_BORLVL_AW { # [doc = "0: NO_EFFECT"]
NMIICLR_BORLVL_NO_EFFECT = 0 , # [doc = "1: CLR"]
NMIICLR_BORLVL_CLR = 1 , } impl From < NMIICLR_BORLVL_AW > for bool { # [inline (always)]
fn from (variant : NMIICLR_BORLVL_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `NMIICLR_BORLVL` writer - Clr the BORLVL NMI"]
pub type NMIICLR_BORLVL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , NMIICLR_BORLVL_AW > ; impl < 'a , REG , const O : u8 > NMIICLR_BORLVL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn nmiiclr_borlvl_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (NMIICLR_BORLVL_AW :: NMIICLR_BORLVL_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn nmiiclr_borlvl_clr (self) -> & 'a mut crate :: W < REG > { self . variant (NMIICLR_BORLVL_AW :: NMIICLR_BORLVL_CLR) } } # [doc = "Watch Dog 0 Fault\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum NMIICLR_WWDT0_AW { # [doc = "0: NO_EFFECT"]
NMIICLR_WWDT0_NO_EFFECT = 0 , # [doc = "1: CLR"]
NMIICLR_WWDT0_CLR = 1 , } impl From < NMIICLR_WWDT0_AW > for bool { # [inline (always)]
fn from (variant : NMIICLR_WWDT0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `NMIICLR_WWDT0` writer - Watch Dog 0 Fault"]
pub type NMIICLR_WWDT0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , NMIICLR_WWDT0_AW > ; impl < 'a , REG , const O : u8 > NMIICLR_WWDT0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn nmiiclr_wwdt0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (NMIICLR_WWDT0_AW :: NMIICLR_WWDT0_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn nmiiclr_wwdt0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (NMIICLR_WWDT0_AW :: NMIICLR_WWDT0_CLR) } } impl W { # [doc = "Bit 0 - Clr the BORLVL NMI"]
# [inline (always)]
# [must_use]
pub fn nmiiclr_borlvl (& mut self) -> NMIICLR_BORLVL_W < NMIICLR_SPEC , 0 > { NMIICLR_BORLVL_W :: new (self) } # [doc = "Bit 1 - Watch Dog 0 Fault"]
# [inline (always)]
# [must_use]
pub fn nmiiclr_wwdt0 (& mut self) -> NMIICLR_WWDT0_W < NMIICLR_SPEC , 1 > { NMIICLR_WWDT0_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "NMI interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`nmiiclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct NMIICLR_SPEC ; impl crate :: RegisterSpec for NMIICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`nmiiclr::W`](W) writer structure"]
impl crate :: Writable for NMIICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets NMIICLR to value 0"]
impl crate :: Resettable for NMIICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "SYSOSCCFG (rw) register accessor: SYSOSC configuration\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`sysosccfg::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sysosccfg::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sysosccfg`]
module"]
pub type SYSOSCCFG = crate :: Reg < sysosccfg :: SYSOSCCFG_SPEC > ; # [doc = "SYSOSC configuration"]
pub mod sysosccfg { # [doc = "Register `SYSOSCCFG` reader"]
pub type R = crate :: R < SYSOSCCFG_SPEC > ; # [doc = "Register `SYSOSCCFG` writer"]
pub type W = crate :: W < SYSOSCCFG_SPEC > ; # [doc = "Field `SYSOSCCFG_FREQ` reader - Target operating frequency for the system oscillator (SYSOSC)"]
pub type SYSOSCCFG_FREQ_R = crate :: FieldReader < SYSOSCCFG_FREQ_A > ; # [doc = "Target operating frequency for the system oscillator (SYSOSC)\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum SYSOSCCFG_FREQ_A { # [doc = "0: SYSOSCBASE"]
SYSOSCCFG_FREQ_SYSOSCBASE = 0 , # [doc = "1: SYSOSC4M"]
SYSOSCCFG_FREQ_SYSOSC4M = 1 , # [doc = "2: SYSOSCUSER"]
SYSOSCCFG_FREQ_SYSOSCUSER = 2 , # [doc = "3: SYSOSCTURBO"]
SYSOSCCFG_FREQ_SYSOSCTURBO = 3 , } impl From < SYSOSCCFG_FREQ_A > for u8 { # [inline (always)]
fn from (variant : SYSOSCCFG_FREQ_A) -> Self { variant as _ } } impl crate :: FieldSpec for SYSOSCCFG_FREQ_A { type Ux = u8 ; } impl SYSOSCCFG_FREQ_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SYSOSCCFG_FREQ_A { match self . bits { 0 => SYSOSCCFG_FREQ_A :: SYSOSCCFG_FREQ_SYSOSCBASE , 1 => SYSOSCCFG_FREQ_A :: SYSOSCCFG_FREQ_SYSOSC4M , 2 => SYSOSCCFG_FREQ_A :: SYSOSCCFG_FREQ_SYSOSCUSER , 3 => SYSOSCCFG_FREQ_A :: SYSOSCCFG_FREQ_SYSOSCTURBO , _ => unreachable ! () , } } # [doc = "SYSOSCBASE"]
# [inline (always)]
pub fn is_sysosccfg_freq_sysoscbase (& self) -> bool { * self == SYSOSCCFG_FREQ_A :: SYSOSCCFG_FREQ_SYSOSCBASE } # [doc = "SYSOSC4M"]
# [inline (always)]
pub fn is_sysosccfg_freq_sysosc4m (& self) -> bool { * self == SYSOSCCFG_FREQ_A :: SYSOSCCFG_FREQ_SYSOSC4M } # [doc = "SYSOSCUSER"]
# [inline (always)]
pub fn is_sysosccfg_freq_sysoscuser (& self) -> bool { * self == SYSOSCCFG_FREQ_A :: SYSOSCCFG_FREQ_SYSOSCUSER } # [doc = "SYSOSCTURBO"]
# [inline (always)]
pub fn is_sysosccfg_freq_sysoscturbo (& self) -> bool { * self == SYSOSCCFG_FREQ_A :: SYSOSCCFG_FREQ_SYSOSCTURBO } } # [doc = "Field `SYSOSCCFG_FREQ` writer - Target operating frequency for the system oscillator (SYSOSC)"]
pub type SYSOSCCFG_FREQ_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , SYSOSCCFG_FREQ_A > ; impl < 'a , REG , const O : u8 > SYSOSCCFG_FREQ_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "SYSOSCBASE"]
# [inline (always)]
pub fn sysosccfg_freq_sysoscbase (self) -> & 'a mut crate :: W < REG > { self . variant (SYSOSCCFG_FREQ_A :: SYSOSCCFG_FREQ_SYSOSCBASE) } # [doc = "SYSOSC4M"]
# [inline (always)]
pub fn sysosccfg_freq_sysosc4m (self) -> & 'a mut crate :: W < REG > { self . variant (SYSOSCCFG_FREQ_A :: SYSOSCCFG_FREQ_SYSOSC4M) } # [doc = "SYSOSCUSER"]
# [inline (always)]
pub fn sysosccfg_freq_sysoscuser (self) -> & 'a mut crate :: W < REG > { self . variant (SYSOSCCFG_FREQ_A :: SYSOSCCFG_FREQ_SYSOSCUSER) } # [doc = "SYSOSCTURBO"]
# [inline (always)]
pub fn sysosccfg_freq_sysoscturbo (self) -> & 'a mut crate :: W < REG > { self . variant (SYSOSCCFG_FREQ_A :: SYSOSCCFG_FREQ_SYSOSCTURBO) } } # [doc = "Field `SYSOSCCFG_USE4MHZSTOP` reader - USE4MHZSTOP sets the SYSOSC stop mode frequency policy. When entering STOP mode, the SYSOSC frequency may be automatically switched to 4MHz to reduce SYSOSC power consumption."]
pub type SYSOSCCFG_USE4MHZSTOP_R = crate :: BitReader < SYSOSCCFG_USE4MHZSTOP_A > ; # [doc = "USE4MHZSTOP sets the SYSOSC stop mode frequency policy. When entering STOP mode, the SYSOSC frequency may be automatically switched to 4MHz to reduce SYSOSC power consumption.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SYSOSCCFG_USE4MHZSTOP_A { # [doc = "0: DISABLE"]
SYSOSCCFG_USE4MHZSTOP_DISABLE = 0 , # [doc = "1: ENABLE"]
SYSOSCCFG_USE4MHZSTOP_ENABLE = 1 , } impl From < SYSOSCCFG_USE4MHZSTOP_A > for bool { # [inline (always)]
fn from (variant : SYSOSCCFG_USE4MHZSTOP_A) -> Self { variant as u8 != 0 } } impl SYSOSCCFG_USE4MHZSTOP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SYSOSCCFG_USE4MHZSTOP_A { match self . bits { false => SYSOSCCFG_USE4MHZSTOP_A :: SYSOSCCFG_USE4MHZSTOP_DISABLE , true => SYSOSCCFG_USE4MHZSTOP_A :: SYSOSCCFG_USE4MHZSTOP_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sysosccfg_use4mhzstop_disable (& self) -> bool { * self == SYSOSCCFG_USE4MHZSTOP_A :: SYSOSCCFG_USE4MHZSTOP_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sysosccfg_use4mhzstop_enable (& self) -> bool { * self == SYSOSCCFG_USE4MHZSTOP_A :: SYSOSCCFG_USE4MHZSTOP_ENABLE } } # [doc = "Field `SYSOSCCFG_USE4MHZSTOP` writer - USE4MHZSTOP sets the SYSOSC stop mode frequency policy. When entering STOP mode, the SYSOSC frequency may be automatically switched to 4MHz to reduce SYSOSC power consumption."]
pub type SYSOSCCFG_USE4MHZSTOP_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SYSOSCCFG_USE4MHZSTOP_A > ; impl < 'a , REG , const O : u8 > SYSOSCCFG_USE4MHZSTOP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sysosccfg_use4mhzstop_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SYSOSCCFG_USE4MHZSTOP_A :: SYSOSCCFG_USE4MHZSTOP_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sysosccfg_use4mhzstop_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SYSOSCCFG_USE4MHZSTOP_A :: SYSOSCCFG_USE4MHZSTOP_ENABLE) } } # [doc = "Field `SYSOSCCFG_DISABLESTOP` reader - DISABLESTOP sets the SYSOSC stop mode enable/disable policy. When operating in STOP mode, the SYSOSC may be automatically disabled. When set, ULPCLK will run from LFCLK in STOP mode and SYSOSC will be disabled to reduce power consumption."]
pub type SYSOSCCFG_DISABLESTOP_R = crate :: BitReader < SYSOSCCFG_DISABLESTOP_A > ; # [doc = "DISABLESTOP sets the SYSOSC stop mode enable/disable policy. When operating in STOP mode, the SYSOSC may be automatically disabled. When set, ULPCLK will run from LFCLK in STOP mode and SYSOSC will be disabled to reduce power consumption.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SYSOSCCFG_DISABLESTOP_A { # [doc = "0: DISABLE"]
SYSOSCCFG_DISABLESTOP_DISABLE = 0 , # [doc = "1: ENABLE"]
SYSOSCCFG_DISABLESTOP_ENABLE = 1 , } impl From < SYSOSCCFG_DISABLESTOP_A > for bool { # [inline (always)]
fn from (variant : SYSOSCCFG_DISABLESTOP_A) -> Self { variant as u8 != 0 } } impl SYSOSCCFG_DISABLESTOP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SYSOSCCFG_DISABLESTOP_A { match self . bits { false => SYSOSCCFG_DISABLESTOP_A :: SYSOSCCFG_DISABLESTOP_DISABLE , true => SYSOSCCFG_DISABLESTOP_A :: SYSOSCCFG_DISABLESTOP_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sysosccfg_disablestop_disable (& self) -> bool { * self == SYSOSCCFG_DISABLESTOP_A :: SYSOSCCFG_DISABLESTOP_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sysosccfg_disablestop_enable (& self) -> bool { * self == SYSOSCCFG_DISABLESTOP_A :: SYSOSCCFG_DISABLESTOP_ENABLE } } # [doc = "Field `SYSOSCCFG_DISABLESTOP` writer - DISABLESTOP sets the SYSOSC stop mode enable/disable policy. When operating in STOP mode, the SYSOSC may be automatically disabled. When set, ULPCLK will run from LFCLK in STOP mode and SYSOSC will be disabled to reduce power consumption."]
pub type SYSOSCCFG_DISABLESTOP_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SYSOSCCFG_DISABLESTOP_A > ; impl < 'a , REG , const O : u8 > SYSOSCCFG_DISABLESTOP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sysosccfg_disablestop_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SYSOSCCFG_DISABLESTOP_A :: SYSOSCCFG_DISABLESTOP_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sysosccfg_disablestop_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SYSOSCCFG_DISABLESTOP_A :: SYSOSCCFG_DISABLESTOP_ENABLE) } } # [doc = "Field `SYSOSCCFG_DISABLE` reader - DISABLE sets the SYSOSC enable/disable policy. SYSOSC may be powered off in RUN, SLEEP, and STOP modes to reduce power consumption. When SYSOSC is disabled, MCLK and ULPCLK are sourced from LFCLK."]
pub type SYSOSCCFG_DISABLE_R = crate :: BitReader < SYSOSCCFG_DISABLE_A > ; # [doc = "DISABLE sets the SYSOSC enable/disable policy. SYSOSC may be powered off in RUN, SLEEP, and STOP modes to reduce power consumption. When SYSOSC is disabled, MCLK and ULPCLK are sourced from LFCLK.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SYSOSCCFG_DISABLE_A { # [doc = "0: DISABLE"]
SYSOSCCFG_DISABLE_DISABLE = 0 , # [doc = "1: ENABLE"]
SYSOSCCFG_DISABLE_ENABLE = 1 , } impl From < SYSOSCCFG_DISABLE_A > for bool { # [inline (always)]
fn from (variant : SYSOSCCFG_DISABLE_A) -> Self { variant as u8 != 0 } } impl SYSOSCCFG_DISABLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SYSOSCCFG_DISABLE_A { match self . bits { false => SYSOSCCFG_DISABLE_A :: SYSOSCCFG_DISABLE_DISABLE , true => SYSOSCCFG_DISABLE_A :: SYSOSCCFG_DISABLE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sysosccfg_disable_disable (& self) -> bool { * self == SYSOSCCFG_DISABLE_A :: SYSOSCCFG_DISABLE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sysosccfg_disable_enable (& self) -> bool { * self == SYSOSCCFG_DISABLE_A :: SYSOSCCFG_DISABLE_ENABLE } } # [doc = "Field `SYSOSCCFG_DISABLE` writer - DISABLE sets the SYSOSC enable/disable policy. SYSOSC may be powered off in RUN, SLEEP, and STOP modes to reduce power consumption. When SYSOSC is disabled, MCLK and ULPCLK are sourced from LFCLK."]
pub type SYSOSCCFG_DISABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SYSOSCCFG_DISABLE_A > ; impl < 'a , REG , const O : u8 > SYSOSCCFG_DISABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sysosccfg_disable_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SYSOSCCFG_DISABLE_A :: SYSOSCCFG_DISABLE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sysosccfg_disable_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SYSOSCCFG_DISABLE_A :: SYSOSCCFG_DISABLE_ENABLE) } } # [doc = "Field `SYSOSCCFG_BLOCKASYNCALL` reader - BLOCKASYNCALL may be used to mask block all asynchronous fast clock requests, preventing hardware from dynamically changing the active clock configuration when operating in a given mode."]
pub type SYSOSCCFG_BLOCKASYNCALL_R = crate :: BitReader < SYSOSCCFG_BLOCKASYNCALL_A > ; # [doc = "BLOCKASYNCALL may be used to mask block all asynchronous fast clock requests, preventing hardware from dynamically changing the active clock configuration when operating in a given mode.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SYSOSCCFG_BLOCKASYNCALL_A { # [doc = "0: DISABLE"]
SYSOSCCFG_BLOCKASYNCALL_DISABLE = 0 , # [doc = "1: ENABLE"]
SYSOSCCFG_BLOCKASYNCALL_ENABLE = 1 , } impl From < SYSOSCCFG_BLOCKASYNCALL_A > for bool { # [inline (always)]
fn from (variant : SYSOSCCFG_BLOCKASYNCALL_A) -> Self { variant as u8 != 0 } } impl SYSOSCCFG_BLOCKASYNCALL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SYSOSCCFG_BLOCKASYNCALL_A { match self . bits { false => SYSOSCCFG_BLOCKASYNCALL_A :: SYSOSCCFG_BLOCKASYNCALL_DISABLE , true => SYSOSCCFG_BLOCKASYNCALL_A :: SYSOSCCFG_BLOCKASYNCALL_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sysosccfg_blockasyncall_disable (& self) -> bool { * self == SYSOSCCFG_BLOCKASYNCALL_A :: SYSOSCCFG_BLOCKASYNCALL_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sysosccfg_blockasyncall_enable (& self) -> bool { * self == SYSOSCCFG_BLOCKASYNCALL_A :: SYSOSCCFG_BLOCKASYNCALL_ENABLE } } # [doc = "Field `SYSOSCCFG_BLOCKASYNCALL` writer - BLOCKASYNCALL may be used to mask block all asynchronous fast clock requests, preventing hardware from dynamically changing the active clock configuration when operating in a given mode."]
pub type SYSOSCCFG_BLOCKASYNCALL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SYSOSCCFG_BLOCKASYNCALL_A > ; impl < 'a , REG , const O : u8 > SYSOSCCFG_BLOCKASYNCALL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sysosccfg_blockasyncall_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SYSOSCCFG_BLOCKASYNCALL_A :: SYSOSCCFG_BLOCKASYNCALL_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sysosccfg_blockasyncall_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SYSOSCCFG_BLOCKASYNCALL_A :: SYSOSCCFG_BLOCKASYNCALL_ENABLE) } } # [doc = "Field `SYSOSCCFG_FASTCPUEVENT` reader - FASTCPUEVENT may be used to assert a fast clock request when an interrupt is asserted to the CPU, reducing interrupt latency."]
pub type SYSOSCCFG_FASTCPUEVENT_R = crate :: BitReader < SYSOSCCFG_FASTCPUEVENT_A > ; # [doc = "FASTCPUEVENT may be used to assert a fast clock request when an interrupt is asserted to the CPU, reducing interrupt latency.\n\nValue on reset: 1"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SYSOSCCFG_FASTCPUEVENT_A { # [doc = "0: DISABLE"]
SYSOSCCFG_FASTCPUEVENT_DISABLE = 0 , # [doc = "1: ENABLE"]
SYSOSCCFG_FASTCPUEVENT_ENABLE = 1 , } impl From < SYSOSCCFG_FASTCPUEVENT_A > for bool { # [inline (always)]
fn from (variant : SYSOSCCFG_FASTCPUEVENT_A) -> Self { variant as u8 != 0 } } impl SYSOSCCFG_FASTCPUEVENT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SYSOSCCFG_FASTCPUEVENT_A { match self . bits { false => SYSOSCCFG_FASTCPUEVENT_A :: SYSOSCCFG_FASTCPUEVENT_DISABLE , true => SYSOSCCFG_FASTCPUEVENT_A :: SYSOSCCFG_FASTCPUEVENT_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sysosccfg_fastcpuevent_disable (& self) -> bool { * self == SYSOSCCFG_FASTCPUEVENT_A :: SYSOSCCFG_FASTCPUEVENT_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sysosccfg_fastcpuevent_enable (& self) -> bool { * self == SYSOSCCFG_FASTCPUEVENT_A :: SYSOSCCFG_FASTCPUEVENT_ENABLE } } # [doc = "Field `SYSOSCCFG_FASTCPUEVENT` writer - FASTCPUEVENT may be used to assert a fast clock request when an interrupt is asserted to the CPU, reducing interrupt latency."]
pub type SYSOSCCFG_FASTCPUEVENT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SYSOSCCFG_FASTCPUEVENT_A > ; impl < 'a , REG , const O : u8 > SYSOSCCFG_FASTCPUEVENT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sysosccfg_fastcpuevent_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SYSOSCCFG_FASTCPUEVENT_A :: SYSOSCCFG_FASTCPUEVENT_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sysosccfg_fastcpuevent_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SYSOSCCFG_FASTCPUEVENT_A :: SYSOSCCFG_FASTCPUEVENT_ENABLE) } } impl R { # [doc = "Bits 0:1 - Target operating frequency for the system oscillator (SYSOSC)"]
# [inline (always)]
pub fn sysosccfg_freq (& self) -> SYSOSCCFG_FREQ_R { SYSOSCCFG_FREQ_R :: new ((self . bits & 3) as u8) } # [doc = "Bit 8 - USE4MHZSTOP sets the SYSOSC stop mode frequency policy. When entering STOP mode, the SYSOSC frequency may be automatically switched to 4MHz to reduce SYSOSC power consumption."]
# [inline (always)]
pub fn sysosccfg_use4mhzstop (& self) -> SYSOSCCFG_USE4MHZSTOP_R { SYSOSCCFG_USE4MHZSTOP_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - DISABLESTOP sets the SYSOSC stop mode enable/disable policy. When operating in STOP mode, the SYSOSC may be automatically disabled. When set, ULPCLK will run from LFCLK in STOP mode and SYSOSC will be disabled to reduce power consumption."]
# [inline (always)]
pub fn sysosccfg_disablestop (& self) -> SYSOSCCFG_DISABLESTOP_R { SYSOSCCFG_DISABLESTOP_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - DISABLE sets the SYSOSC enable/disable policy. SYSOSC may be powered off in RUN, SLEEP, and STOP modes to reduce power consumption. When SYSOSC is disabled, MCLK and ULPCLK are sourced from LFCLK."]
# [inline (always)]
pub fn sysosccfg_disable (& self) -> SYSOSCCFG_DISABLE_R { SYSOSCCFG_DISABLE_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bit 16 - BLOCKASYNCALL may be used to mask block all asynchronous fast clock requests, preventing hardware from dynamically changing the active clock configuration when operating in a given mode."]
# [inline (always)]
pub fn sysosccfg_blockasyncall (& self) -> SYSOSCCFG_BLOCKASYNCALL_R { SYSOSCCFG_BLOCKASYNCALL_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 17 - FASTCPUEVENT may be used to assert a fast clock request when an interrupt is asserted to the CPU, reducing interrupt latency."]
# [inline (always)]
pub fn sysosccfg_fastcpuevent (& self) -> SYSOSCCFG_FASTCPUEVENT_R { SYSOSCCFG_FASTCPUEVENT_R :: new (((self . bits >> 17) & 1) != 0) } } impl W { # [doc = "Bits 0:1 - Target operating frequency for the system oscillator (SYSOSC)"]
# [inline (always)]
# [must_use]
pub fn sysosccfg_freq (& mut self) -> SYSOSCCFG_FREQ_W < SYSOSCCFG_SPEC , 0 > { SYSOSCCFG_FREQ_W :: new (self) } # [doc = "Bit 8 - USE4MHZSTOP sets the SYSOSC stop mode frequency policy. When entering STOP mode, the SYSOSC frequency may be automatically switched to 4MHz to reduce SYSOSC power consumption."]
# [inline (always)]
# [must_use]
pub fn sysosccfg_use4mhzstop (& mut self) -> SYSOSCCFG_USE4MHZSTOP_W < SYSOSCCFG_SPEC , 8 > { SYSOSCCFG_USE4MHZSTOP_W :: new (self) } # [doc = "Bit 9 - DISABLESTOP sets the SYSOSC stop mode enable/disable policy. When operating in STOP mode, the SYSOSC may be automatically disabled. When set, ULPCLK will run from LFCLK in STOP mode and SYSOSC will be disabled to reduce power consumption."]
# [inline (always)]
# [must_use]
pub fn sysosccfg_disablestop (& mut self) -> SYSOSCCFG_DISABLESTOP_W < SYSOSCCFG_SPEC , 9 > { SYSOSCCFG_DISABLESTOP_W :: new (self) } # [doc = "Bit 10 - DISABLE sets the SYSOSC enable/disable policy. SYSOSC may be powered off in RUN, SLEEP, and STOP modes to reduce power consumption. When SYSOSC is disabled, MCLK and ULPCLK are sourced from LFCLK."]
# [inline (always)]
# [must_use]
pub fn sysosccfg_disable (& mut self) -> SYSOSCCFG_DISABLE_W < SYSOSCCFG_SPEC , 10 > { SYSOSCCFG_DISABLE_W :: new (self) } # [doc = "Bit 16 - BLOCKASYNCALL may be used to mask block all asynchronous fast clock requests, preventing hardware from dynamically changing the active clock configuration when operating in a given mode."]
# [inline (always)]
# [must_use]
pub fn sysosccfg_blockasyncall (& mut self) -> SYSOSCCFG_BLOCKASYNCALL_W < SYSOSCCFG_SPEC , 16 > { SYSOSCCFG_BLOCKASYNCALL_W :: new (self) } # [doc = "Bit 17 - FASTCPUEVENT may be used to assert a fast clock request when an interrupt is asserted to the CPU, reducing interrupt latency."]
# [inline (always)]
# [must_use]
pub fn sysosccfg_fastcpuevent (& mut self) -> SYSOSCCFG_FASTCPUEVENT_W < SYSOSCCFG_SPEC , 17 > { SYSOSCCFG_FASTCPUEVENT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "SYSOSC configuration\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`sysosccfg::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sysosccfg::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SYSOSCCFG_SPEC ; impl crate :: RegisterSpec for SYSOSCCFG_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`sysosccfg::R`](R) reader structure"]
impl crate :: Readable for SYSOSCCFG_SPEC { } # [doc = "`write(|w| ..)` method takes [`sysosccfg::W`](W) writer structure"]
impl crate :: Writable for SYSOSCCFG_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets SYSOSCCFG to value 0x0002_0000"]
impl crate :: Resettable for SYSOSCCFG_SPEC { const RESET_VALUE : Self :: Ux = 0x0002_0000 ; } } # [doc = "GENCLKCFG (rw) register accessor: General clock configuration\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`genclkcfg::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`genclkcfg::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@genclkcfg`]
module"]
pub type GENCLKCFG = crate :: Reg < genclkcfg :: GENCLKCFG_SPEC > ; # [doc = "General clock configuration"]
pub mod genclkcfg { # [doc = "Register `GENCLKCFG` reader"]
pub type R = crate :: R < GENCLKCFG_SPEC > ; # [doc = "Register `GENCLKCFG` writer"]
pub type W = crate :: W < GENCLKCFG_SPEC > ; # [doc = "Field `GENCLKCFG_EXCLKSRC` reader - EXCLKSRC selects the source for the CLK_OUT external clockoutput block. ULPCLK and MFPCLK require the CLK_OUT divider(EXCLKDIVEN) to be enabled"]
pub type GENCLKCFG_EXCLKSRC_R = crate :: FieldReader ; # [doc = "Field `GENCLKCFG_EXCLKSRC` writer - EXCLKSRC selects the source for the CLK_OUT external clockoutput block. ULPCLK and MFPCLK require the CLK_OUT divider(EXCLKDIVEN) to be enabled"]
pub type GENCLKCFG_EXCLKSRC_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O > ; # [doc = "Field `GENCLKCFG_EXCLKDIVVAL` reader - EXCLKDIVVAL selects the divider value for the divider in the CLK_OUT external clock output block."]
pub type GENCLKCFG_EXCLKDIVVAL_R = crate :: FieldReader ; # [doc = "Field `GENCLKCFG_EXCLKDIVVAL` writer - EXCLKDIVVAL selects the divider value for the divider in the CLK_OUT external clock output block."]
pub type GENCLKCFG_EXCLKDIVVAL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O > ; # [doc = "Field `GENCLKCFG_EXCLKDIVEN` reader - EXCLKDIVEN enables or disables the divider function of the CLK_OUT external clock output block."]
pub type GENCLKCFG_EXCLKDIVEN_R = crate :: BitReader ; # [doc = "Field `GENCLKCFG_EXCLKDIVEN` writer - EXCLKDIVEN enables or disables the divider function of the CLK_OUT external clock output block."]
pub type GENCLKCFG_EXCLKDIVEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O > ; # [doc = "Field `GENCLKCFG_FCCSELCLK` reader - FCCSELCLK selectes the frequency clock counter (FCC) clock source"]
pub type GENCLKCFG_FCCSELCLK_R = crate :: FieldReader ; # [doc = "Field `GENCLKCFG_FCCSELCLK` writer - FCCSELCLK selectes the frequency clock counter (FCC) clock source"]
pub type GENCLKCFG_FCCSELCLK_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 4 , O > ; # [doc = "Field `GENCLKCFG_FCCTRIGSRC` reader - FCCTRIGSRC selects the frequency clock counter (FCC) trigger source"]
pub type GENCLKCFG_FCCTRIGSRC_R = crate :: BitReader ; # [doc = "Field `GENCLKCFG_FCCTRIGSRC` writer - FCCTRIGSRC selects the frequency clock counter (FCC) trigger source"]
pub type GENCLKCFG_FCCTRIGSRC_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O > ; # [doc = "Field `GENCLKCFG_FCCLVLTRIG` reader - FCCLVLTRIG selects the frequency clock counter (FCC) trigger mode"]
pub type GENCLKCFG_FCCLVLTRIG_R = crate :: BitReader ; # [doc = "Field `GENCLKCFG_FCCLVLTRIG` writer - FCCLVLTRIG selects the frequency clock counter (FCC) trigger mode"]
pub type GENCLKCFG_FCCLVLTRIG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O > ; # [doc = "Field `GENCLKCFG_ANACPUMPCFG` reader - ANACPUMPCFG selects the analog mux charge pump (VBOOST) enable method."]
pub type GENCLKCFG_ANACPUMPCFG_R = crate :: FieldReader ; # [doc = "Field `GENCLKCFG_ANACPUMPCFG` writer - ANACPUMPCFG selects the analog mux charge pump (VBOOST) enable method."]
pub type GENCLKCFG_ANACPUMPCFG_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O > ; # [doc = "Field `GENCLKCFG_FCCTRIGCNT` reader - FCCTRIGCNT specifies the number of trigger clock periods in the trigger window. FCCTRIGCNT=0h (one trigger clock period) up to 1Fh (32 trigger clock periods) may be specified."]
pub type GENCLKCFG_FCCTRIGCNT_R = crate :: FieldReader ; # [doc = "Field `GENCLKCFG_FCCTRIGCNT` writer - FCCTRIGCNT specifies the number of trigger clock periods in the trigger window. FCCTRIGCNT=0h (one trigger clock period) up to 1Fh (32 trigger clock periods) may be specified."]
pub type GENCLKCFG_FCCTRIGCNT_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 5 , O > ; impl R { # [doc = "Bits 0:2 - EXCLKSRC selects the source for the CLK_OUT external clockoutput block. ULPCLK and MFPCLK require the CLK_OUT divider(EXCLKDIVEN) to be enabled"]
# [inline (always)]
pub fn genclkcfg_exclksrc (& self) -> GENCLKCFG_EXCLKSRC_R { GENCLKCFG_EXCLKSRC_R :: new ((self . bits & 7) as u8) } # [doc = "Bits 4:6 - EXCLKDIVVAL selects the divider value for the divider in the CLK_OUT external clock output block."]
# [inline (always)]
pub fn genclkcfg_exclkdivval (& self) -> GENCLKCFG_EXCLKDIVVAL_R { GENCLKCFG_EXCLKDIVVAL_R :: new (((self . bits >> 4) & 7) as u8) } # [doc = "Bit 7 - EXCLKDIVEN enables or disables the divider function of the CLK_OUT external clock output block."]
# [inline (always)]
pub fn genclkcfg_exclkdiven (& self) -> GENCLKCFG_EXCLKDIVEN_R { GENCLKCFG_EXCLKDIVEN_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bits 16:19 - FCCSELCLK selectes the frequency clock counter (FCC) clock source"]
# [inline (always)]
pub fn genclkcfg_fccselclk (& self) -> GENCLKCFG_FCCSELCLK_R { GENCLKCFG_FCCSELCLK_R :: new (((self . bits >> 16) & 0x0f) as u8) } # [doc = "Bit 20 - FCCTRIGSRC selects the frequency clock counter (FCC) trigger source"]
# [inline (always)]
pub fn genclkcfg_fcctrigsrc (& self) -> GENCLKCFG_FCCTRIGSRC_R { GENCLKCFG_FCCTRIGSRC_R :: new (((self . bits >> 20) & 1) != 0) } # [doc = "Bit 21 - FCCLVLTRIG selects the frequency clock counter (FCC) trigger mode"]
# [inline (always)]
pub fn genclkcfg_fcclvltrig (& self) -> GENCLKCFG_FCCLVLTRIG_R { GENCLKCFG_FCCLVLTRIG_R :: new (((self . bits >> 21) & 1) != 0) } # [doc = "Bits 22:23 - ANACPUMPCFG selects the analog mux charge pump (VBOOST) enable method."]
# [inline (always)]
pub fn genclkcfg_anacpumpcfg (& self) -> GENCLKCFG_ANACPUMPCFG_R { GENCLKCFG_ANACPUMPCFG_R :: new (((self . bits >> 22) & 3) as u8) } # [doc = "Bits 24:28 - FCCTRIGCNT specifies the number of trigger clock periods in the trigger window. FCCTRIGCNT=0h (one trigger clock period) up to 1Fh (32 trigger clock periods) may be specified."]
# [inline (always)]
pub fn genclkcfg_fcctrigcnt (& self) -> GENCLKCFG_FCCTRIGCNT_R { GENCLKCFG_FCCTRIGCNT_R :: new (((self . bits >> 24) & 0x1f) as u8) } } impl W { # [doc = "Bits 0:2 - EXCLKSRC selects the source for the CLK_OUT external clockoutput block. ULPCLK and MFPCLK require the CLK_OUT divider(EXCLKDIVEN) to be enabled"]
# [inline (always)]
# [must_use]
pub fn genclkcfg_exclksrc (& mut self) -> GENCLKCFG_EXCLKSRC_W < GENCLKCFG_SPEC , 0 > { GENCLKCFG_EXCLKSRC_W :: new (self) } # [doc = "Bits 4:6 - EXCLKDIVVAL selects the divider value for the divider in the CLK_OUT external clock output block."]
# [inline (always)]
# [must_use]
pub fn genclkcfg_exclkdivval (& mut self) -> GENCLKCFG_EXCLKDIVVAL_W < GENCLKCFG_SPEC , 4 > { GENCLKCFG_EXCLKDIVVAL_W :: new (self) } # [doc = "Bit 7 - EXCLKDIVEN enables or disables the divider function of the CLK_OUT external clock output block."]
# [inline (always)]
# [must_use]
pub fn genclkcfg_exclkdiven (& mut self) -> GENCLKCFG_EXCLKDIVEN_W < GENCLKCFG_SPEC , 7 > { GENCLKCFG_EXCLKDIVEN_W :: new (self) } # [doc = "Bits 16:19 - FCCSELCLK selectes the frequency clock counter (FCC) clock source"]
# [inline (always)]
# [must_use]
pub fn genclkcfg_fccselclk (& mut self) -> GENCLKCFG_FCCSELCLK_W < GENCLKCFG_SPEC , 16 > { GENCLKCFG_FCCSELCLK_W :: new (self) } # [doc = "Bit 20 - FCCTRIGSRC selects the frequency clock counter (FCC) trigger source"]
# [inline (always)]
# [must_use]
pub fn genclkcfg_fcctrigsrc (& mut self) -> GENCLKCFG_FCCTRIGSRC_W < GENCLKCFG_SPEC , 20 > { GENCLKCFG_FCCTRIGSRC_W :: new (self) } # [doc = "Bit 21 - FCCLVLTRIG selects the frequency clock counter (FCC) trigger mode"]
# [inline (always)]
# [must_use]
pub fn genclkcfg_fcclvltrig (& mut self) -> GENCLKCFG_FCCLVLTRIG_W < GENCLKCFG_SPEC , 21 > { GENCLKCFG_FCCLVLTRIG_W :: new (self) } # [doc = "Bits 22:23 - ANACPUMPCFG selects the analog mux charge pump (VBOOST) enable method."]
# [inline (always)]
# [must_use]
pub fn genclkcfg_anacpumpcfg (& mut self) -> GENCLKCFG_ANACPUMPCFG_W < GENCLKCFG_SPEC , 22 > { GENCLKCFG_ANACPUMPCFG_W :: new (self) } # [doc = "Bits 24:28 - FCCTRIGCNT specifies the number of trigger clock periods in the trigger window. FCCTRIGCNT=0h (one trigger clock period) up to 1Fh (32 trigger clock periods) may be specified."]
# [inline (always)]
# [must_use]
pub fn genclkcfg_fcctrigcnt (& mut self) -> GENCLKCFG_FCCTRIGCNT_W < GENCLKCFG_SPEC , 24 > { GENCLKCFG_FCCTRIGCNT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "General clock configuration\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`genclkcfg::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`genclkcfg::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct GENCLKCFG_SPEC ; impl crate :: RegisterSpec for GENCLKCFG_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`genclkcfg::R`](R) reader structure"]
impl crate :: Readable for GENCLKCFG_SPEC { } # [doc = "`write(|w| ..)` method takes [`genclkcfg::W`](W) writer structure"]
impl crate :: Writable for GENCLKCFG_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets GENCLKCFG to value 0"]
impl crate :: Resettable for GENCLKCFG_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "GENCLKEN (rw) register accessor: General clock enable control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`genclken::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`genclken::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@genclken`]
module"]
pub type GENCLKEN = crate :: Reg < genclken :: GENCLKEN_SPEC > ; # [doc = "General clock enable control"]
pub mod genclken { # [doc = "Register `GENCLKEN` reader"]
pub type R = crate :: R < GENCLKEN_SPEC > ; # [doc = "Register `GENCLKEN` writer"]
pub type W = crate :: W < GENCLKEN_SPEC > ; # [doc = "Field `GENCLKEN_EXCLKEN` reader - EXCLKEN enables the CLK_OUT external clock output block."]
pub type GENCLKEN_EXCLKEN_R = crate :: BitReader < GENCLKEN_EXCLKEN_A > ; # [doc = "EXCLKEN enables the CLK_OUT external clock output block.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum GENCLKEN_EXCLKEN_A { # [doc = "0: DISABLE"]
GENCLKEN_EXCLKEN_DISABLE = 0 , # [doc = "1: ENABLE"]
GENCLKEN_EXCLKEN_ENABLE = 1 , } impl From < GENCLKEN_EXCLKEN_A > for bool { # [inline (always)]
fn from (variant : GENCLKEN_EXCLKEN_A) -> Self { variant as u8 != 0 } } impl GENCLKEN_EXCLKEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> GENCLKEN_EXCLKEN_A { match self . bits { false => GENCLKEN_EXCLKEN_A :: GENCLKEN_EXCLKEN_DISABLE , true => GENCLKEN_EXCLKEN_A :: GENCLKEN_EXCLKEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_genclken_exclken_disable (& self) -> bool { * self == GENCLKEN_EXCLKEN_A :: GENCLKEN_EXCLKEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_genclken_exclken_enable (& self) -> bool { * self == GENCLKEN_EXCLKEN_A :: GENCLKEN_EXCLKEN_ENABLE } } # [doc = "Field `GENCLKEN_EXCLKEN` writer - EXCLKEN enables the CLK_OUT external clock output block."]
pub type GENCLKEN_EXCLKEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , GENCLKEN_EXCLKEN_A > ; impl < 'a , REG , const O : u8 > GENCLKEN_EXCLKEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn genclken_exclken_disable (self) -> & 'a mut crate :: W < REG > { self . variant (GENCLKEN_EXCLKEN_A :: GENCLKEN_EXCLKEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn genclken_exclken_enable (self) -> & 'a mut crate :: W < REG > { self . variant (GENCLKEN_EXCLKEN_A :: GENCLKEN_EXCLKEN_ENABLE) } } # [doc = "Field `GENCLKEN_MFPCLKEN` reader - MFPCLKEN enables the middle frequency precision clock (MFPCLK)."]
pub type GENCLKEN_MFPCLKEN_R = crate :: BitReader < GENCLKEN_MFPCLKEN_A > ; # [doc = "MFPCLKEN enables the middle frequency precision clock (MFPCLK).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum GENCLKEN_MFPCLKEN_A { # [doc = "0: DISABLE"]
GENCLKEN_MFPCLKEN_DISABLE = 0 , # [doc = "1: ENABLE"]
GENCLKEN_MFPCLKEN_ENABLE = 1 , } impl From < GENCLKEN_MFPCLKEN_A > for bool { # [inline (always)]
fn from (variant : GENCLKEN_MFPCLKEN_A) -> Self { variant as u8 != 0 } } impl GENCLKEN_MFPCLKEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> GENCLKEN_MFPCLKEN_A { match self . bits { false => GENCLKEN_MFPCLKEN_A :: GENCLKEN_MFPCLKEN_DISABLE , true => GENCLKEN_MFPCLKEN_A :: GENCLKEN_MFPCLKEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_genclken_mfpclken_disable (& self) -> bool { * self == GENCLKEN_MFPCLKEN_A :: GENCLKEN_MFPCLKEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_genclken_mfpclken_enable (& self) -> bool { * self == GENCLKEN_MFPCLKEN_A :: GENCLKEN_MFPCLKEN_ENABLE } } # [doc = "Field `GENCLKEN_MFPCLKEN` writer - MFPCLKEN enables the middle frequency precision clock (MFPCLK)."]
pub type GENCLKEN_MFPCLKEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , GENCLKEN_MFPCLKEN_A > ; impl < 'a , REG , const O : u8 > GENCLKEN_MFPCLKEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn genclken_mfpclken_disable (self) -> & 'a mut crate :: W < REG > { self . variant (GENCLKEN_MFPCLKEN_A :: GENCLKEN_MFPCLKEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn genclken_mfpclken_enable (self) -> & 'a mut crate :: W < REG > { self . variant (GENCLKEN_MFPCLKEN_A :: GENCLKEN_MFPCLKEN_ENABLE) } } impl R { # [doc = "Bit 0 - EXCLKEN enables the CLK_OUT external clock output block."]
# [inline (always)]
pub fn genclken_exclken (& self) -> GENCLKEN_EXCLKEN_R { GENCLKEN_EXCLKEN_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 4 - MFPCLKEN enables the middle frequency precision clock (MFPCLK)."]
# [inline (always)]
pub fn genclken_mfpclken (& self) -> GENCLKEN_MFPCLKEN_R { GENCLKEN_MFPCLKEN_R :: new (((self . bits >> 4) & 1) != 0) } } impl W { # [doc = "Bit 0 - EXCLKEN enables the CLK_OUT external clock output block."]
# [inline (always)]
# [must_use]
pub fn genclken_exclken (& mut self) -> GENCLKEN_EXCLKEN_W < GENCLKEN_SPEC , 0 > { GENCLKEN_EXCLKEN_W :: new (self) } # [doc = "Bit 4 - MFPCLKEN enables the middle frequency precision clock (MFPCLK)."]
# [inline (always)]
# [must_use]
pub fn genclken_mfpclken (& mut self) -> GENCLKEN_MFPCLKEN_W < GENCLKEN_SPEC , 4 > { GENCLKEN_MFPCLKEN_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "General clock enable control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`genclken::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`genclken::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct GENCLKEN_SPEC ; impl crate :: RegisterSpec for GENCLKEN_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`genclken::R`](R) reader structure"]
impl crate :: Readable for GENCLKEN_SPEC { } # [doc = "`write(|w| ..)` method takes [`genclken::W`](W) writer structure"]
impl crate :: Writable for GENCLKEN_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets GENCLKEN to value 0"]
impl crate :: Resettable for GENCLKEN_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "PMODECFG (rw) register accessor: Power mode configuration\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pmodecfg::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pmodecfg::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pmodecfg`]
module"]
pub type PMODECFG = crate :: Reg < pmodecfg :: PMODECFG_SPEC > ; # [doc = "Power mode configuration"]
pub mod pmodecfg { # [doc = "Register `PMODECFG` reader"]
pub type R = crate :: R < PMODECFG_SPEC > ; # [doc = "Register `PMODECFG` writer"]
pub type W = crate :: W < PMODECFG_SPEC > ; # [doc = "Field `PMODECFG_DSLEEP` reader - DSLEEP selects the operating mode to enter upon a DEEPSLEEP request from the CPU."]
pub type PMODECFG_DSLEEP_R = crate :: FieldReader < PMODECFG_DSLEEP_A > ; # [doc = "DSLEEP selects the operating mode to enter upon a DEEPSLEEP request from the CPU.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum PMODECFG_DSLEEP_A { # [doc = "0: STOP"]
PMODECFG_DSLEEP_STOP = 0 , # [doc = "1: STANDBY"]
PMODECFG_DSLEEP_STANDBY = 1 , # [doc = "2: SHUTDOWN"]
PMODECFG_DSLEEP_SHUTDOWN = 2 , } impl From < PMODECFG_DSLEEP_A > for u8 { # [inline (always)]
fn from (variant : PMODECFG_DSLEEP_A) -> Self { variant as _ } } impl crate :: FieldSpec for PMODECFG_DSLEEP_A { type Ux = u8 ; } impl PMODECFG_DSLEEP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < PMODECFG_DSLEEP_A > { match self . bits { 0 => Some (PMODECFG_DSLEEP_A :: PMODECFG_DSLEEP_STOP) , 1 => Some (PMODECFG_DSLEEP_A :: PMODECFG_DSLEEP_STANDBY) , 2 => Some (PMODECFG_DSLEEP_A :: PMODECFG_DSLEEP_SHUTDOWN) , _ => None , } } # [doc = "STOP"]
# [inline (always)]
pub fn is_pmodecfg_dsleep_stop (& self) -> bool { * self == PMODECFG_DSLEEP_A :: PMODECFG_DSLEEP_STOP } # [doc = "STANDBY"]
# [inline (always)]
pub fn is_pmodecfg_dsleep_standby (& self) -> bool { * self == PMODECFG_DSLEEP_A :: PMODECFG_DSLEEP_STANDBY } # [doc = "SHUTDOWN"]
# [inline (always)]
pub fn is_pmodecfg_dsleep_shutdown (& self) -> bool { * self == PMODECFG_DSLEEP_A :: PMODECFG_DSLEEP_SHUTDOWN } } # [doc = "Field `PMODECFG_DSLEEP` writer - DSLEEP selects the operating mode to enter upon a DEEPSLEEP request from the CPU."]
pub type PMODECFG_DSLEEP_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , PMODECFG_DSLEEP_A > ; impl < 'a , REG , const O : u8 > PMODECFG_DSLEEP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "STOP"]
# [inline (always)]
pub fn pmodecfg_dsleep_stop (self) -> & 'a mut crate :: W < REG > { self . variant (PMODECFG_DSLEEP_A :: PMODECFG_DSLEEP_STOP) } # [doc = "STANDBY"]
# [inline (always)]
pub fn pmodecfg_dsleep_standby (self) -> & 'a mut crate :: W < REG > { self . variant (PMODECFG_DSLEEP_A :: PMODECFG_DSLEEP_STANDBY) } # [doc = "SHUTDOWN"]
# [inline (always)]
pub fn pmodecfg_dsleep_shutdown (self) -> & 'a mut crate :: W < REG > { self . variant (PMODECFG_DSLEEP_A :: PMODECFG_DSLEEP_SHUTDOWN) } } # [doc = "Field `PMODECFG_SYSSRAMONSTOP` reader - SYSSRAMONSTOP selects whether the SRAM controller is enabled or disabled in STOP mode."]
pub type PMODECFG_SYSSRAMONSTOP_R = crate :: BitReader < PMODECFG_SYSSRAMONSTOP_A > ; # [doc = "SYSSRAMONSTOP selects whether the SRAM controller is enabled or disabled in STOP mode.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PMODECFG_SYSSRAMONSTOP_A { # [doc = "0: DISABLE"]
PMODECFG_SYSSRAMONSTOP_DISABLE = 0 , # [doc = "1: ENABLE"]
PMODECFG_SYSSRAMONSTOP_ENABLE = 1 , } impl From < PMODECFG_SYSSRAMONSTOP_A > for bool { # [inline (always)]
fn from (variant : PMODECFG_SYSSRAMONSTOP_A) -> Self { variant as u8 != 0 } } impl PMODECFG_SYSSRAMONSTOP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PMODECFG_SYSSRAMONSTOP_A { match self . bits { false => PMODECFG_SYSSRAMONSTOP_A :: PMODECFG_SYSSRAMONSTOP_DISABLE , true => PMODECFG_SYSSRAMONSTOP_A :: PMODECFG_SYSSRAMONSTOP_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_pmodecfg_syssramonstop_disable (& self) -> bool { * self == PMODECFG_SYSSRAMONSTOP_A :: PMODECFG_SYSSRAMONSTOP_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_pmodecfg_syssramonstop_enable (& self) -> bool { * self == PMODECFG_SYSSRAMONSTOP_A :: PMODECFG_SYSSRAMONSTOP_ENABLE } } # [doc = "Field `PMODECFG_SYSSRAMONSTOP` writer - SYSSRAMONSTOP selects whether the SRAM controller is enabled or disabled in STOP mode."]
pub type PMODECFG_SYSSRAMONSTOP_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PMODECFG_SYSSRAMONSTOP_A > ; impl < 'a , REG , const O : u8 > PMODECFG_SYSSRAMONSTOP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn pmodecfg_syssramonstop_disable (self) -> & 'a mut crate :: W < REG > { self . variant (PMODECFG_SYSSRAMONSTOP_A :: PMODECFG_SYSSRAMONSTOP_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn pmodecfg_syssramonstop_enable (self) -> & 'a mut crate :: W < REG > { self . variant (PMODECFG_SYSSRAMONSTOP_A :: PMODECFG_SYSSRAMONSTOP_ENABLE) } } impl R { # [doc = "Bits 0:1 - DSLEEP selects the operating mode to enter upon a DEEPSLEEP request from the CPU."]
# [inline (always)]
pub fn pmodecfg_dsleep (& self) -> PMODECFG_DSLEEP_R { PMODECFG_DSLEEP_R :: new ((self . bits & 3) as u8) } # [doc = "Bit 5 - SYSSRAMONSTOP selects whether the SRAM controller is enabled or disabled in STOP mode."]
# [inline (always)]
pub fn pmodecfg_syssramonstop (& self) -> PMODECFG_SYSSRAMONSTOP_R { PMODECFG_SYSSRAMONSTOP_R :: new (((self . bits >> 5) & 1) != 0) } } impl W { # [doc = "Bits 0:1 - DSLEEP selects the operating mode to enter upon a DEEPSLEEP request from the CPU."]
# [inline (always)]
# [must_use]
pub fn pmodecfg_dsleep (& mut self) -> PMODECFG_DSLEEP_W < PMODECFG_SPEC , 0 > { PMODECFG_DSLEEP_W :: new (self) } # [doc = "Bit 5 - SYSSRAMONSTOP selects whether the SRAM controller is enabled or disabled in STOP mode."]
# [inline (always)]
# [must_use]
pub fn pmodecfg_syssramonstop (& mut self) -> PMODECFG_SYSSRAMONSTOP_W < PMODECFG_SPEC , 5 > { PMODECFG_SYSSRAMONSTOP_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Power mode configuration\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pmodecfg::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pmodecfg::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PMODECFG_SPEC ; impl crate :: RegisterSpec for PMODECFG_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pmodecfg::R`](R) reader structure"]
impl crate :: Readable for PMODECFG_SPEC { } # [doc = "`write(|w| ..)` method takes [`pmodecfg::W`](W) writer structure"]
impl crate :: Writable for PMODECFG_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PMODECFG to value 0"]
impl crate :: Resettable for PMODECFG_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "FCC (r) register accessor: Frequency clock counter (FCC) count\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fcc::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fcc`]
module"]
pub type FCC = crate :: Reg < fcc :: FCC_SPEC > ; # [doc = "Frequency clock counter (FCC) count"]
pub mod fcc { # [doc = "Register `FCC` reader"]
pub type R = crate :: R < FCC_SPEC > ; # [doc = "Field `FCC_DATA` reader - Frequency clock counter (FCC) count value."]
pub type FCC_DATA_R = crate :: FieldReader < u32 > ; impl R { # [doc = "Bits 0:21 - Frequency clock counter (FCC) count value."]
# [inline (always)]
pub fn fcc_data (& self) -> FCC_DATA_R { FCC_DATA_R :: new (self . bits & 0x003f_ffff) } } # [doc = "Frequency clock counter (FCC) count\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fcc::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FCC_SPEC ; impl crate :: RegisterSpec for FCC_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fcc::R`](R) reader structure"]
impl crate :: Readable for FCC_SPEC { } # [doc = "`reset()` method sets FCC to value 0"]
impl crate :: Resettable for FCC_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "SYSOSCTRIMUSER (rw) register accessor: SYSOSC user-specified trim\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`sysosctrimuser::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sysosctrimuser::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sysosctrimuser`]
module"]
pub type SYSOSCTRIMUSER = crate :: Reg < sysosctrimuser :: SYSOSCTRIMUSER_SPEC > ; # [doc = "SYSOSC user-specified trim"]
pub mod sysosctrimuser { # [doc = "Register `SYSOSCTRIMUSER` reader"]
pub type R = crate :: R < SYSOSCTRIMUSER_SPEC > ; # [doc = "Register `SYSOSCTRIMUSER` writer"]
pub type W = crate :: W < SYSOSCTRIMUSER_SPEC > ; # [doc = "Field `SYSOSCTRIMUSER_FREQ` reader - FREQ specifies the target user-trimmed frequency for SYSOSC."]
pub type SYSOSCTRIMUSER_FREQ_R = crate :: FieldReader < SYSOSCTRIMUSER_FREQ_A > ; # [doc = "FREQ specifies the target user-trimmed frequency for SYSOSC.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum SYSOSCTRIMUSER_FREQ_A { # [doc = "1: SYSOSC16M"]
SYSOSCTRIMUSER_FREQ_SYSOSC16M = 1 , # [doc = "2: SYSOSC24M"]
SYSOSCTRIMUSER_FREQ_SYSOSC24M = 2 , } impl From < SYSOSCTRIMUSER_FREQ_A > for u8 { # [inline (always)]
fn from (variant : SYSOSCTRIMUSER_FREQ_A) -> Self { variant as _ } } impl crate :: FieldSpec for SYSOSCTRIMUSER_FREQ_A { type Ux = u8 ; } impl SYSOSCTRIMUSER_FREQ_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < SYSOSCTRIMUSER_FREQ_A > { match self . bits { 1 => Some (SYSOSCTRIMUSER_FREQ_A :: SYSOSCTRIMUSER_FREQ_SYSOSC16M) , 2 => Some (SYSOSCTRIMUSER_FREQ_A :: SYSOSCTRIMUSER_FREQ_SYSOSC24M) , _ => None , } } # [doc = "SYSOSC16M"]
# [inline (always)]
pub fn is_sysosctrimuser_freq_sysosc16m (& self) -> bool { * self == SYSOSCTRIMUSER_FREQ_A :: SYSOSCTRIMUSER_FREQ_SYSOSC16M } # [doc = "SYSOSC24M"]
# [inline (always)]
pub fn is_sysosctrimuser_freq_sysosc24m (& self) -> bool { * self == SYSOSCTRIMUSER_FREQ_A :: SYSOSCTRIMUSER_FREQ_SYSOSC24M } } # [doc = "Field `SYSOSCTRIMUSER_FREQ` writer - FREQ specifies the target user-trimmed frequency for SYSOSC."]
pub type SYSOSCTRIMUSER_FREQ_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , SYSOSCTRIMUSER_FREQ_A > ; impl < 'a , REG , const O : u8 > SYSOSCTRIMUSER_FREQ_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "SYSOSC16M"]
# [inline (always)]
pub fn sysosctrimuser_freq_sysosc16m (self) -> & 'a mut crate :: W < REG > { self . variant (SYSOSCTRIMUSER_FREQ_A :: SYSOSCTRIMUSER_FREQ_SYSOSC16M) } # [doc = "SYSOSC24M"]
# [inline (always)]
pub fn sysosctrimuser_freq_sysosc24m (self) -> & 'a mut crate :: W < REG > { self . variant (SYSOSCTRIMUSER_FREQ_A :: SYSOSCTRIMUSER_FREQ_SYSOSC24M) } } # [doc = "Field `SYSOSCTRIMUSER_CAP` reader - CAP specifies the SYSOSC capacitor trim. This value changes with the target frequency."]
pub type SYSOSCTRIMUSER_CAP_R = crate :: FieldReader ; # [doc = "Field `SYSOSCTRIMUSER_CAP` writer - CAP specifies the SYSOSC capacitor trim. This value changes with the target frequency."]
pub type SYSOSCTRIMUSER_CAP_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O > ; # [doc = "Field `SYSOSCTRIMUSER_RESCOARSE` reader - RESCOARSE specifies the resister coarse trim. This value changes with the target frequency."]
pub type SYSOSCTRIMUSER_RESCOARSE_R = crate :: FieldReader ; # [doc = "Field `SYSOSCTRIMUSER_RESCOARSE` writer - RESCOARSE specifies the resister coarse trim. This value changes with the target frequency."]
pub type SYSOSCTRIMUSER_RESCOARSE_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 6 , O > ; # [doc = "Field `SYSOSCTRIMUSER_RESFINE` reader - RESFINE specifies the resister fine trim. This value changes with the target frequency."]
pub type SYSOSCTRIMUSER_RESFINE_R = crate :: FieldReader ; # [doc = "Field `SYSOSCTRIMUSER_RESFINE` writer - RESFINE specifies the resister fine trim. This value changes with the target frequency."]
pub type SYSOSCTRIMUSER_RESFINE_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 4 , O > ; # [doc = "Field `SYSOSCTRIMUSER_RDIV` reader - RDIV specifies the frequency correction loop (FCL) resistor trim. This value changes with the target frequency."]
pub type SYSOSCTRIMUSER_RDIV_R = crate :: FieldReader < u16 > ; # [doc = "Field `SYSOSCTRIMUSER_RDIV` writer - RDIV specifies the frequency correction loop (FCL) resistor trim. This value changes with the target frequency."]
pub type SYSOSCTRIMUSER_RDIV_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 9 , O , u16 > ; impl R { # [doc = "Bits 0:1 - FREQ specifies the target user-trimmed frequency for SYSOSC."]
# [inline (always)]
pub fn sysosctrimuser_freq (& self) -> SYSOSCTRIMUSER_FREQ_R { SYSOSCTRIMUSER_FREQ_R :: new ((self . bits & 3) as u8) } # [doc = "Bits 4:6 - CAP specifies the SYSOSC capacitor trim. This value changes with the target frequency."]
# [inline (always)]
pub fn sysosctrimuser_cap (& self) -> SYSOSCTRIMUSER_CAP_R { SYSOSCTRIMUSER_CAP_R :: new (((self . bits >> 4) & 7) as u8) } # [doc = "Bits 8:13 - RESCOARSE specifies the resister coarse trim. This value changes with the target frequency."]
# [inline (always)]
pub fn sysosctrimuser_rescoarse (& self) -> SYSOSCTRIMUSER_RESCOARSE_R { SYSOSCTRIMUSER_RESCOARSE_R :: new (((self . bits >> 8) & 0x3f) as u8) } # [doc = "Bits 16:19 - RESFINE specifies the resister fine trim. This value changes with the target frequency."]
# [inline (always)]
pub fn sysosctrimuser_resfine (& self) -> SYSOSCTRIMUSER_RESFINE_R { SYSOSCTRIMUSER_RESFINE_R :: new (((self . bits >> 16) & 0x0f) as u8) } # [doc = "Bits 20:28 - RDIV specifies the frequency correction loop (FCL) resistor trim. This value changes with the target frequency."]
# [inline (always)]
pub fn sysosctrimuser_rdiv (& self) -> SYSOSCTRIMUSER_RDIV_R { SYSOSCTRIMUSER_RDIV_R :: new (((self . bits >> 20) & 0x01ff) as u16) } } impl W { # [doc = "Bits 0:1 - FREQ specifies the target user-trimmed frequency for SYSOSC."]
# [inline (always)]
# [must_use]
pub fn sysosctrimuser_freq (& mut self) -> SYSOSCTRIMUSER_FREQ_W < SYSOSCTRIMUSER_SPEC , 0 > { SYSOSCTRIMUSER_FREQ_W :: new (self) } # [doc = "Bits 4:6 - CAP specifies the SYSOSC capacitor trim. This value changes with the target frequency."]
# [inline (always)]
# [must_use]
pub fn sysosctrimuser_cap (& mut self) -> SYSOSCTRIMUSER_CAP_W < SYSOSCTRIMUSER_SPEC , 4 > { SYSOSCTRIMUSER_CAP_W :: new (self) } # [doc = "Bits 8:13 - RESCOARSE specifies the resister coarse trim. This value changes with the target frequency."]
# [inline (always)]
# [must_use]
pub fn sysosctrimuser_rescoarse (& mut self) -> SYSOSCTRIMUSER_RESCOARSE_W < SYSOSCTRIMUSER_SPEC , 8 > { SYSOSCTRIMUSER_RESCOARSE_W :: new (self) } # [doc = "Bits 16:19 - RESFINE specifies the resister fine trim. This value changes with the target frequency."]
# [inline (always)]
# [must_use]
pub fn sysosctrimuser_resfine (& mut self) -> SYSOSCTRIMUSER_RESFINE_W < SYSOSCTRIMUSER_SPEC , 16 > { SYSOSCTRIMUSER_RESFINE_W :: new (self) } # [doc = "Bits 20:28 - RDIV specifies the frequency correction loop (FCL) resistor trim. This value changes with the target frequency."]
# [inline (always)]
# [must_use]
pub fn sysosctrimuser_rdiv (& mut self) -> SYSOSCTRIMUSER_RDIV_W < SYSOSCTRIMUSER_SPEC , 20 > { SYSOSCTRIMUSER_RDIV_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "SYSOSC user-specified trim\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`sysosctrimuser::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sysosctrimuser::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SYSOSCTRIMUSER_SPEC ; impl crate :: RegisterSpec for SYSOSCTRIMUSER_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`sysosctrimuser::R`](R) reader structure"]
impl crate :: Readable for SYSOSCTRIMUSER_SPEC { } # [doc = "`write(|w| ..)` method takes [`sysosctrimuser::W`](W) writer structure"]
impl crate :: Writable for SYSOSCTRIMUSER_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets SYSOSCTRIMUSER to value 0"]
impl crate :: Resettable for SYSOSCTRIMUSER_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "SRAMBOUNDARY (rw) register accessor: SRAM Write Boundary\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`sramboundary::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sramboundary::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sramboundary`]
module"]
pub type SRAMBOUNDARY = crate :: Reg < sramboundary :: SRAMBOUNDARY_SPEC > ; # [doc = "SRAM Write Boundary"]
pub mod sramboundary { # [doc = "Register `SRAMBOUNDARY` reader"]
pub type R = crate :: R < SRAMBOUNDARY_SPEC > ; # [doc = "Register `SRAMBOUNDARY` writer"]
pub type W = crate :: W < SRAMBOUNDARY_SPEC > ; # [doc = "Field `SRAMBOUNDARY_ADDR` reader - SRAM boundary configuration. The value configured into this acts such that: SRAM accesses to addresses less than or equal value will be RW only. SRAM accesses to addresses greater than value will be RX only. Value of 0 is not valid (system will have no stack). If set to 0, the system acts as if the entire SRAM is RWX. Any non-zero value can be configured, including a value = SRAM size."]
pub type SRAMBOUNDARY_ADDR_R = crate :: FieldReader < u16 > ; # [doc = "Field `SRAMBOUNDARY_ADDR` writer - SRAM boundary configuration. The value configured into this acts such that: SRAM accesses to addresses less than or equal value will be RW only. SRAM accesses to addresses greater than value will be RX only. Value of 0 is not valid (system will have no stack). If set to 0, the system acts as if the entire SRAM is RWX. Any non-zero value can be configured, including a value = SRAM size."]
pub type SRAMBOUNDARY_ADDR_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 15 , O , u16 > ; impl R { # [doc = "Bits 5:19 - SRAM boundary configuration. The value configured into this acts such that: SRAM accesses to addresses less than or equal value will be RW only. SRAM accesses to addresses greater than value will be RX only. Value of 0 is not valid (system will have no stack). If set to 0, the system acts as if the entire SRAM is RWX. Any non-zero value can be configured, including a value = SRAM size."]
# [inline (always)]
pub fn sramboundary_addr (& self) -> SRAMBOUNDARY_ADDR_R { SRAMBOUNDARY_ADDR_R :: new (((self . bits >> 5) & 0x7fff) as u16) } } impl W { # [doc = "Bits 5:19 - SRAM boundary configuration. The value configured into this acts such that: SRAM accesses to addresses less than or equal value will be RW only. SRAM accesses to addresses greater than value will be RX only. Value of 0 is not valid (system will have no stack). If set to 0, the system acts as if the entire SRAM is RWX. Any non-zero value can be configured, including a value = SRAM size."]
# [inline (always)]
# [must_use]
pub fn sramboundary_addr (& mut self) -> SRAMBOUNDARY_ADDR_W < SRAMBOUNDARY_SPEC , 5 > { SRAMBOUNDARY_ADDR_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "SRAM Write Boundary\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`sramboundary::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sramboundary::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SRAMBOUNDARY_SPEC ; impl crate :: RegisterSpec for SRAMBOUNDARY_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`sramboundary::R`](R) reader structure"]
impl crate :: Readable for SRAMBOUNDARY_SPEC { } # [doc = "`write(|w| ..)` method takes [`sramboundary::W`](W) writer structure"]
impl crate :: Writable for SRAMBOUNDARY_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets SRAMBOUNDARY to value 0"]
impl crate :: Resettable for SRAMBOUNDARY_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "SYSTEMCFG (rw) register accessor: System configuration\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`systemcfg::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`systemcfg::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@systemcfg`]
module"]
pub type SYSTEMCFG = crate :: Reg < systemcfg :: SYSTEMCFG_SPEC > ; # [doc = "System configuration"]
pub mod systemcfg { # [doc = "Register `SYSTEMCFG` reader"]
pub type R = crate :: R < SYSTEMCFG_SPEC > ; # [doc = "Register `SYSTEMCFG` writer"]
pub type W = crate :: W < SYSTEMCFG_SPEC > ; # [doc = "Field `SYSTEMCFG_WWDTLP0RSTDIS` reader - WWDTLP0RSTDIS specifies whether a WWDT Error Event will trigger a BOOTRST or an NMI."]
pub type SYSTEMCFG_WWDTLP0RSTDIS_R = crate :: BitReader < SYSTEMCFG_WWDTLP0RSTDIS_A > ; # [doc = "WWDTLP0RSTDIS specifies whether a WWDT Error Event will trigger a BOOTRST or an NMI.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SYSTEMCFG_WWDTLP0RSTDIS_A { # [doc = "0: FALSE"]
SYSTEMCFG_WWDTLP0RSTDIS_FALSE = 0 , # [doc = "1: TRUE"]
SYSTEMCFG_WWDTLP0RSTDIS_TRUE = 1 , } impl From < SYSTEMCFG_WWDTLP0RSTDIS_A > for bool { # [inline (always)]
fn from (variant : SYSTEMCFG_WWDTLP0RSTDIS_A) -> Self { variant as u8 != 0 } } impl SYSTEMCFG_WWDTLP0RSTDIS_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SYSTEMCFG_WWDTLP0RSTDIS_A { match self . bits { false => SYSTEMCFG_WWDTLP0RSTDIS_A :: SYSTEMCFG_WWDTLP0RSTDIS_FALSE , true => SYSTEMCFG_WWDTLP0RSTDIS_A :: SYSTEMCFG_WWDTLP0RSTDIS_TRUE , } } # [doc = "FALSE"]
# [inline (always)]
pub fn is_systemcfg_wwdtlp0rstdis_false (& self) -> bool { * self == SYSTEMCFG_WWDTLP0RSTDIS_A :: SYSTEMCFG_WWDTLP0RSTDIS_FALSE } # [doc = "TRUE"]
# [inline (always)]
pub fn is_systemcfg_wwdtlp0rstdis_true (& self) -> bool { * self == SYSTEMCFG_WWDTLP0RSTDIS_A :: SYSTEMCFG_WWDTLP0RSTDIS_TRUE } } # [doc = "Field `SYSTEMCFG_WWDTLP0RSTDIS` writer - WWDTLP0RSTDIS specifies whether a WWDT Error Event will trigger a BOOTRST or an NMI."]
pub type SYSTEMCFG_WWDTLP0RSTDIS_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SYSTEMCFG_WWDTLP0RSTDIS_A > ; impl < 'a , REG , const O : u8 > SYSTEMCFG_WWDTLP0RSTDIS_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "FALSE"]
# [inline (always)]
pub fn systemcfg_wwdtlp0rstdis_false (self) -> & 'a mut crate :: W < REG > { self . variant (SYSTEMCFG_WWDTLP0RSTDIS_A :: SYSTEMCFG_WWDTLP0RSTDIS_FALSE) } # [doc = "TRUE"]
# [inline (always)]
pub fn systemcfg_wwdtlp0rstdis_true (self) -> & 'a mut crate :: W < REG > { self . variant (SYSTEMCFG_WWDTLP0RSTDIS_A :: SYSTEMCFG_WWDTLP0RSTDIS_TRUE) } } # [doc = "The key value of 1Bh (27) must be written to KEY together with contents to be updated. Reads as 0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum SYSTEMCFG_KEY_AW { # [doc = "27: VALUE"]
SYSTEMCFG_KEY_VALUE = 27 , } impl From < SYSTEMCFG_KEY_AW > for u8 { # [inline (always)]
fn from (variant : SYSTEMCFG_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for SYSTEMCFG_KEY_AW { type Ux = u8 ; } # [doc = "Field `SYSTEMCFG_KEY` writer - The key value of 1Bh (27) must be written to KEY together with contents to be updated. Reads as 0"]
pub type SYSTEMCFG_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , SYSTEMCFG_KEY_AW > ; impl < 'a , REG , const O : u8 > SYSTEMCFG_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "VALUE"]
# [inline (always)]
pub fn systemcfg_key_value (self) -> & 'a mut crate :: W < REG > { self . variant (SYSTEMCFG_KEY_AW :: SYSTEMCFG_KEY_VALUE) } } impl R { # [doc = "Bit 0 - WWDTLP0RSTDIS specifies whether a WWDT Error Event will trigger a BOOTRST or an NMI."]
# [inline (always)]
pub fn systemcfg_wwdtlp0rstdis (& self) -> SYSTEMCFG_WWDTLP0RSTDIS_R { SYSTEMCFG_WWDTLP0RSTDIS_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - WWDTLP0RSTDIS specifies whether a WWDT Error Event will trigger a BOOTRST or an NMI."]
# [inline (always)]
# [must_use]
pub fn systemcfg_wwdtlp0rstdis (& mut self) -> SYSTEMCFG_WWDTLP0RSTDIS_W < SYSTEMCFG_SPEC , 0 > { SYSTEMCFG_WWDTLP0RSTDIS_W :: new (self) } # [doc = "Bits 24:31 - The key value of 1Bh (27) must be written to KEY together with contents to be updated. Reads as 0"]
# [inline (always)]
# [must_use]
pub fn systemcfg_key (& mut self) -> SYSTEMCFG_KEY_W < SYSTEMCFG_SPEC , 24 > { SYSTEMCFG_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "System configuration\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`systemcfg::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`systemcfg::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SYSTEMCFG_SPEC ; impl crate :: RegisterSpec for SYSTEMCFG_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`systemcfg::R`](R) reader structure"]
impl crate :: Readable for SYSTEMCFG_SPEC { } # [doc = "`write(|w| ..)` method takes [`systemcfg::W`](W) writer structure"]
impl crate :: Writable for SYSTEMCFG_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets SYSTEMCFG to value 0"]
impl crate :: Resettable for SYSTEMCFG_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "WRITELOCK (rw) register accessor: SYSCTL register write lockout\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`writelock::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`writelock::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@writelock`]
module"]
pub type WRITELOCK = crate :: Reg < writelock :: WRITELOCK_SPEC > ; # [doc = "SYSCTL register write lockout"]
pub mod writelock { # [doc = "Register `WRITELOCK` reader"]
pub type R = crate :: R < WRITELOCK_SPEC > ; # [doc = "Register `WRITELOCK` writer"]
pub type W = crate :: W < WRITELOCK_SPEC > ; # [doc = "Field `WRITELOCK_ACTIVE` reader - ACTIVE controls whether critical SYSCTL registers are write protected or not."]
pub type WRITELOCK_ACTIVE_R = crate :: BitReader < WRITELOCK_ACTIVE_A > ; # [doc = "ACTIVE controls whether critical SYSCTL registers are write protected or not.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum WRITELOCK_ACTIVE_A { # [doc = "0: DISABLE"]
WRITELOCK_ACTIVE_DISABLE = 0 , # [doc = "1: ENABLE"]
WRITELOCK_ACTIVE_ENABLE = 1 , } impl From < WRITELOCK_ACTIVE_A > for bool { # [inline (always)]
fn from (variant : WRITELOCK_ACTIVE_A) -> Self { variant as u8 != 0 } } impl WRITELOCK_ACTIVE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> WRITELOCK_ACTIVE_A { match self . bits { false => WRITELOCK_ACTIVE_A :: WRITELOCK_ACTIVE_DISABLE , true => WRITELOCK_ACTIVE_A :: WRITELOCK_ACTIVE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_writelock_active_disable (& self) -> bool { * self == WRITELOCK_ACTIVE_A :: WRITELOCK_ACTIVE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_writelock_active_enable (& self) -> bool { * self == WRITELOCK_ACTIVE_A :: WRITELOCK_ACTIVE_ENABLE } } # [doc = "Field `WRITELOCK_ACTIVE` writer - ACTIVE controls whether critical SYSCTL registers are write protected or not."]
pub type WRITELOCK_ACTIVE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , WRITELOCK_ACTIVE_A > ; impl < 'a , REG , const O : u8 > WRITELOCK_ACTIVE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn writelock_active_disable (self) -> & 'a mut crate :: W < REG > { self . variant (WRITELOCK_ACTIVE_A :: WRITELOCK_ACTIVE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn writelock_active_enable (self) -> & 'a mut crate :: W < REG > { self . variant (WRITELOCK_ACTIVE_A :: WRITELOCK_ACTIVE_ENABLE) } } impl R { # [doc = "Bit 0 - ACTIVE controls whether critical SYSCTL registers are write protected or not."]
# [inline (always)]
pub fn writelock_active (& self) -> WRITELOCK_ACTIVE_R { WRITELOCK_ACTIVE_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - ACTIVE controls whether critical SYSCTL registers are write protected or not."]
# [inline (always)]
# [must_use]
pub fn writelock_active (& mut self) -> WRITELOCK_ACTIVE_W < WRITELOCK_SPEC , 0 > { WRITELOCK_ACTIVE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "SYSCTL register write lockout\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`writelock::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`writelock::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct WRITELOCK_SPEC ; impl crate :: RegisterSpec for WRITELOCK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`writelock::R`](R) reader structure"]
impl crate :: Readable for WRITELOCK_SPEC { } # [doc = "`write(|w| ..)` method takes [`writelock::W`](W) writer structure"]
impl crate :: Writable for WRITELOCK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets WRITELOCK to value 0"]
impl crate :: Resettable for WRITELOCK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RSTCAUSE (r) register accessor: Reset cause\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`rstcause::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rstcause`]
module"]
pub type RSTCAUSE = crate :: Reg < rstcause :: RSTCAUSE_SPEC > ; # [doc = "Reset cause"]
pub mod rstcause { # [doc = "Register `RSTCAUSE` reader"]
pub type R = crate :: R < RSTCAUSE_SPEC > ; # [doc = "Field `RSTCAUSE_ID` reader - ID is a read-to-clear field which indicates the lowest level reset cause since the last read."]
pub type RSTCAUSE_ID_R = crate :: FieldReader < RSTCAUSE_ID_A > ; # [doc = "ID is a read-to-clear field which indicates the lowest level reset cause since the last read.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum RSTCAUSE_ID_A { # [doc = "0: NORST"]
RSTCAUSE_ID_NORST = 0 , # [doc = "1: PORHWFAIL"]
RSTCAUSE_ID_PORHWFAIL = 1 , # [doc = "2: POREXNRST"]
RSTCAUSE_ID_POREXNRST = 2 , # [doc = "3: PORSW"]
RSTCAUSE_ID_PORSW = 3 , # [doc = "4: BORSUPPLY"]
RSTCAUSE_ID_BORSUPPLY = 4 , # [doc = "5: BORWAKESHUTDN"]
RSTCAUSE_ID_BORWAKESHUTDN = 5 , # [doc = "8: BOOTNONPMUPARITY"]
RSTCAUSE_ID_BOOTNONPMUPARITY = 8 , # [doc = "9: BOOTCLKFAIL"]
RSTCAUSE_ID_BOOTCLKFAIL = 9 , # [doc = "12: BOOTEXNRST"]
RSTCAUSE_ID_BOOTEXNRST = 12 , # [doc = "13: BOOTSW"]
RSTCAUSE_ID_BOOTSW = 13 , # [doc = "14: SYSWWDT0"]
RSTCAUSE_ID_SYSWWDT0 = 14 , # [doc = "16: SYSBSLEXIT"]
RSTCAUSE_ID_SYSBSLEXIT = 16 , # [doc = "17: SYSBSLENTRY"]
RSTCAUSE_ID_SYSBSLENTRY = 17 , # [doc = "19: SYSWWDT1"]
RSTCAUSE_ID_SYSWWDT1 = 19 , # [doc = "20: SYSFLASHECC"]
RSTCAUSE_ID_SYSFLASHECC = 20 , # [doc = "21: SYSCPULOCK"]
RSTCAUSE_ID_SYSCPULOCK = 21 , # [doc = "26: SYSDBG"]
RSTCAUSE_ID_SYSDBG = 26 , # [doc = "27: SYSSW"]
RSTCAUSE_ID_SYSSW = 27 , # [doc = "28: CPUDBG"]
RSTCAUSE_ID_CPUDBG = 28 , # [doc = "29: CPUSW"]
RSTCAUSE_ID_CPUSW = 29 , } impl From < RSTCAUSE_ID_A > for u8 { # [inline (always)]
fn from (variant : RSTCAUSE_ID_A) -> Self { variant as _ } } impl crate :: FieldSpec for RSTCAUSE_ID_A { type Ux = u8 ; } impl RSTCAUSE_ID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < RSTCAUSE_ID_A > { match self . bits { 0 => Some (RSTCAUSE_ID_A :: RSTCAUSE_ID_NORST) , 1 => Some (RSTCAUSE_ID_A :: RSTCAUSE_ID_PORHWFAIL) , 2 => Some (RSTCAUSE_ID_A :: RSTCAUSE_ID_POREXNRST) , 3 => Some (RSTCAUSE_ID_A :: RSTCAUSE_ID_PORSW) , 4 => Some (RSTCAUSE_ID_A :: RSTCAUSE_ID_BORSUPPLY) , 5 => Some (RSTCAUSE_ID_A :: RSTCAUSE_ID_BORWAKESHUTDN) , 8 => Some (RSTCAUSE_ID_A :: RSTCAUSE_ID_BOOTNONPMUPARITY) , 9 => Some (RSTCAUSE_ID_A :: RSTCAUSE_ID_BOOTCLKFAIL) , 12 => Some (RSTCAUSE_ID_A :: RSTCAUSE_ID_BOOTEXNRST) , 13 => Some (RSTCAUSE_ID_A :: RSTCAUSE_ID_BOOTSW) , 14 => Some (RSTCAUSE_ID_A :: RSTCAUSE_ID_SYSWWDT0) , 16 => Some (RSTCAUSE_ID_A :: RSTCAUSE_ID_SYSBSLEXIT) , 17 => Some (RSTCAUSE_ID_A :: RSTCAUSE_ID_SYSBSLENTRY) , 19 => Some (RSTCAUSE_ID_A :: RSTCAUSE_ID_SYSWWDT1) , 20 => Some (RSTCAUSE_ID_A :: RSTCAUSE_ID_SYSFLASHECC) , 21 => Some (RSTCAUSE_ID_A :: RSTCAUSE_ID_SYSCPULOCK) , 26 => Some (RSTCAUSE_ID_A :: RSTCAUSE_ID_SYSDBG) , 27 => Some (RSTCAUSE_ID_A :: RSTCAUSE_ID_SYSSW) , 28 => Some (RSTCAUSE_ID_A :: RSTCAUSE_ID_CPUDBG) , 29 => Some (RSTCAUSE_ID_A :: RSTCAUSE_ID_CPUSW) , _ => None , } } # [doc = "NORST"]
# [inline (always)]
pub fn is_rstcause_id_norst (& self) -> bool { * self == RSTCAUSE_ID_A :: RSTCAUSE_ID_NORST } # [doc = "PORHWFAIL"]
# [inline (always)]
pub fn is_rstcause_id_porhwfail (& self) -> bool { * self == RSTCAUSE_ID_A :: RSTCAUSE_ID_PORHWFAIL } # [doc = "POREXNRST"]
# [inline (always)]
pub fn is_rstcause_id_porexnrst (& self) -> bool { * self == RSTCAUSE_ID_A :: RSTCAUSE_ID_POREXNRST } # [doc = "PORSW"]
# [inline (always)]
pub fn is_rstcause_id_porsw (& self) -> bool { * self == RSTCAUSE_ID_A :: RSTCAUSE_ID_PORSW } # [doc = "BORSUPPLY"]
# [inline (always)]
pub fn is_rstcause_id_borsupply (& self) -> bool { * self == RSTCAUSE_ID_A :: RSTCAUSE_ID_BORSUPPLY } # [doc = "BORWAKESHUTDN"]
# [inline (always)]
pub fn is_rstcause_id_borwakeshutdn (& self) -> bool { * self == RSTCAUSE_ID_A :: RSTCAUSE_ID_BORWAKESHUTDN } # [doc = "BOOTNONPMUPARITY"]
# [inline (always)]
pub fn is_rstcause_id_bootnonpmuparity (& self) -> bool { * self == RSTCAUSE_ID_A :: RSTCAUSE_ID_BOOTNONPMUPARITY } # [doc = "BOOTCLKFAIL"]
# [inline (always)]
pub fn is_rstcause_id_bootclkfail (& self) -> bool { * self == RSTCAUSE_ID_A :: RSTCAUSE_ID_BOOTCLKFAIL } # [doc = "BOOTEXNRST"]
# [inline (always)]
pub fn is_rstcause_id_bootexnrst (& self) -> bool { * self == RSTCAUSE_ID_A :: RSTCAUSE_ID_BOOTEXNRST } # [doc = "BOOTSW"]
# [inline (always)]
pub fn is_rstcause_id_bootsw (& self) -> bool { * self == RSTCAUSE_ID_A :: RSTCAUSE_ID_BOOTSW } # [doc = "SYSWWDT0"]
# [inline (always)]
pub fn is_rstcause_id_syswwdt0 (& self) -> bool { * self == RSTCAUSE_ID_A :: RSTCAUSE_ID_SYSWWDT0 } # [doc = "SYSBSLEXIT"]
# [inline (always)]
pub fn is_rstcause_id_sysbslexit (& self) -> bool { * self == RSTCAUSE_ID_A :: RSTCAUSE_ID_SYSBSLEXIT } # [doc = "SYSBSLENTRY"]
# [inline (always)]
pub fn is_rstcause_id_sysbslentry (& self) -> bool { * self == RSTCAUSE_ID_A :: RSTCAUSE_ID_SYSBSLENTRY } # [doc = "SYSWWDT1"]
# [inline (always)]
pub fn is_rstcause_id_syswwdt1 (& self) -> bool { * self == RSTCAUSE_ID_A :: RSTCAUSE_ID_SYSWWDT1 } # [doc = "SYSFLASHECC"]
# [inline (always)]
pub fn is_rstcause_id_sysflashecc (& self) -> bool { * self == RSTCAUSE_ID_A :: RSTCAUSE_ID_SYSFLASHECC } # [doc = "SYSCPULOCK"]
# [inline (always)]
pub fn is_rstcause_id_syscpulock (& self) -> bool { * self == RSTCAUSE_ID_A :: RSTCAUSE_ID_SYSCPULOCK } # [doc = "SYSDBG"]
# [inline (always)]
pub fn is_rstcause_id_sysdbg (& self) -> bool { * self == RSTCAUSE_ID_A :: RSTCAUSE_ID_SYSDBG } # [doc = "SYSSW"]
# [inline (always)]
pub fn is_rstcause_id_syssw (& self) -> bool { * self == RSTCAUSE_ID_A :: RSTCAUSE_ID_SYSSW } # [doc = "CPUDBG"]
# [inline (always)]
pub fn is_rstcause_id_cpudbg (& self) -> bool { * self == RSTCAUSE_ID_A :: RSTCAUSE_ID_CPUDBG } # [doc = "CPUSW"]
# [inline (always)]
pub fn is_rstcause_id_cpusw (& self) -> bool { * self == RSTCAUSE_ID_A :: RSTCAUSE_ID_CPUSW } } impl R { # [doc = "Bits 0:4 - ID is a read-to-clear field which indicates the lowest level reset cause since the last read."]
# [inline (always)]
pub fn rstcause_id (& self) -> RSTCAUSE_ID_R { RSTCAUSE_ID_R :: new ((self . bits & 0x1f) as u8) } } # [doc = "Reset cause\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`rstcause::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RSTCAUSE_SPEC ; impl crate :: RegisterSpec for RSTCAUSE_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`rstcause::R`](R) reader structure"]
impl crate :: Readable for RSTCAUSE_SPEC { } # [doc = "`reset()` method sets RSTCAUSE to value 0"]
impl crate :: Resettable for RSTCAUSE_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RESETLEVEL (rw) register accessor: Reset level for application-triggered reset command\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`resetlevel::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`resetlevel::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@resetlevel`]
module"]
pub type RESETLEVEL = crate :: Reg < resetlevel :: RESETLEVEL_SPEC > ; # [doc = "Reset level for application-triggered reset command"]
pub mod resetlevel { # [doc = "Register `RESETLEVEL` reader"]
pub type R = crate :: R < RESETLEVEL_SPEC > ; # [doc = "Register `RESETLEVEL` writer"]
pub type W = crate :: W < RESETLEVEL_SPEC > ; # [doc = "Field `RESETLEVEL_LEVEL` reader - LEVEL is used to specify the type of reset to be issued when RESETCMD is set to generate a software triggered reset."]
pub type RESETLEVEL_LEVEL_R = crate :: FieldReader < RESETLEVEL_LEVEL_A > ; # [doc = "LEVEL is used to specify the type of reset to be issued when RESETCMD is set to generate a software triggered reset.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum RESETLEVEL_LEVEL_A { # [doc = "0: CPU"]
RESETLEVEL_LEVEL_CPU = 0 , # [doc = "1: BOOT"]
RESETLEVEL_LEVEL_BOOT = 1 , # [doc = "2: BOOTLOADERENTRY"]
RESETLEVEL_LEVEL_BOOTLOADERENTRY = 2 , # [doc = "3: POR"]
RESETLEVEL_LEVEL_POR = 3 , # [doc = "4: BOOTLOADEREXIT"]
RESETLEVEL_LEVEL_BOOTLOADEREXIT = 4 , } impl From < RESETLEVEL_LEVEL_A > for u8 { # [inline (always)]
fn from (variant : RESETLEVEL_LEVEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for RESETLEVEL_LEVEL_A { type Ux = u8 ; } impl RESETLEVEL_LEVEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < RESETLEVEL_LEVEL_A > { match self . bits { 0 => Some (RESETLEVEL_LEVEL_A :: RESETLEVEL_LEVEL_CPU) , 1 => Some (RESETLEVEL_LEVEL_A :: RESETLEVEL_LEVEL_BOOT) , 2 => Some (RESETLEVEL_LEVEL_A :: RESETLEVEL_LEVEL_BOOTLOADERENTRY) , 3 => Some (RESETLEVEL_LEVEL_A :: RESETLEVEL_LEVEL_POR) , 4 => Some (RESETLEVEL_LEVEL_A :: RESETLEVEL_LEVEL_BOOTLOADEREXIT) , _ => None , } } # [doc = "CPU"]
# [inline (always)]
pub fn is_resetlevel_level_cpu (& self) -> bool { * self == RESETLEVEL_LEVEL_A :: RESETLEVEL_LEVEL_CPU } # [doc = "BOOT"]
# [inline (always)]
pub fn is_resetlevel_level_boot (& self) -> bool { * self == RESETLEVEL_LEVEL_A :: RESETLEVEL_LEVEL_BOOT } # [doc = "BOOTLOADERENTRY"]
# [inline (always)]
pub fn is_resetlevel_level_bootloaderentry (& self) -> bool { * self == RESETLEVEL_LEVEL_A :: RESETLEVEL_LEVEL_BOOTLOADERENTRY } # [doc = "POR"]
# [inline (always)]
pub fn is_resetlevel_level_por (& self) -> bool { * self == RESETLEVEL_LEVEL_A :: RESETLEVEL_LEVEL_POR } # [doc = "BOOTLOADEREXIT"]
# [inline (always)]
pub fn is_resetlevel_level_bootloaderexit (& self) -> bool { * self == RESETLEVEL_LEVEL_A :: RESETLEVEL_LEVEL_BOOTLOADEREXIT } } # [doc = "Field `RESETLEVEL_LEVEL` writer - LEVEL is used to specify the type of reset to be issued when RESETCMD is set to generate a software triggered reset."]
pub type RESETLEVEL_LEVEL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , RESETLEVEL_LEVEL_A > ; impl < 'a , REG , const O : u8 > RESETLEVEL_LEVEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "CPU"]
# [inline (always)]
pub fn resetlevel_level_cpu (self) -> & 'a mut crate :: W < REG > { self . variant (RESETLEVEL_LEVEL_A :: RESETLEVEL_LEVEL_CPU) } # [doc = "BOOT"]
# [inline (always)]
pub fn resetlevel_level_boot (self) -> & 'a mut crate :: W < REG > { self . variant (RESETLEVEL_LEVEL_A :: RESETLEVEL_LEVEL_BOOT) } # [doc = "BOOTLOADERENTRY"]
# [inline (always)]
pub fn resetlevel_level_bootloaderentry (self) -> & 'a mut crate :: W < REG > { self . variant (RESETLEVEL_LEVEL_A :: RESETLEVEL_LEVEL_BOOTLOADERENTRY) } # [doc = "POR"]
# [inline (always)]
pub fn resetlevel_level_por (self) -> & 'a mut crate :: W < REG > { self . variant (RESETLEVEL_LEVEL_A :: RESETLEVEL_LEVEL_POR) } # [doc = "BOOTLOADEREXIT"]
# [inline (always)]
pub fn resetlevel_level_bootloaderexit (self) -> & 'a mut crate :: W < REG > { self . variant (RESETLEVEL_LEVEL_A :: RESETLEVEL_LEVEL_BOOTLOADEREXIT) } } impl R { # [doc = "Bits 0:2 - LEVEL is used to specify the type of reset to be issued when RESETCMD is set to generate a software triggered reset."]
# [inline (always)]
pub fn resetlevel_level (& self) -> RESETLEVEL_LEVEL_R { RESETLEVEL_LEVEL_R :: new ((self . bits & 7) as u8) } } impl W { # [doc = "Bits 0:2 - LEVEL is used to specify the type of reset to be issued when RESETCMD is set to generate a software triggered reset."]
# [inline (always)]
# [must_use]
pub fn resetlevel_level (& mut self) -> RESETLEVEL_LEVEL_W < RESETLEVEL_SPEC , 0 > { RESETLEVEL_LEVEL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Reset level for application-triggered reset command\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`resetlevel::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`resetlevel::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RESETLEVEL_SPEC ; impl crate :: RegisterSpec for RESETLEVEL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`resetlevel::R`](R) reader structure"]
impl crate :: Readable for RESETLEVEL_SPEC { } # [doc = "`write(|w| ..)` method takes [`resetlevel::W`](W) writer structure"]
impl crate :: Writable for RESETLEVEL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets RESETLEVEL to value 0"]
impl crate :: Resettable for RESETLEVEL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RESETCMD (w) register accessor: Execute an application-triggered reset command\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`resetcmd::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@resetcmd`]
module"]
pub type RESETCMD = crate :: Reg < resetcmd :: RESETCMD_SPEC > ; # [doc = "Execute an application-triggered reset command"]
pub mod resetcmd { # [doc = "Register `RESETCMD` writer"]
pub type W = crate :: W < RESETCMD_SPEC > ; # [doc = "Execute the reset specified in RESETLEVEL.LEVEL. Must be written together with the KEY.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RESETCMD_GO_AW { # [doc = "1: TRUE"]
RESETCMD_GO_TRUE = 1 , } impl From < RESETCMD_GO_AW > for bool { # [inline (always)]
fn from (variant : RESETCMD_GO_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RESETCMD_GO` writer - Execute the reset specified in RESETLEVEL.LEVEL. Must be written together with the KEY."]
pub type RESETCMD_GO_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RESETCMD_GO_AW > ; impl < 'a , REG , const O : u8 > RESETCMD_GO_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "TRUE"]
# [inline (always)]
pub fn resetcmd_go_true (self) -> & 'a mut crate :: W < REG > { self . variant (RESETCMD_GO_AW :: RESETCMD_GO_TRUE) } } # [doc = "The key value of E4h (228) must be written to KEY together with GO to trigger the reset.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum RESETCMD_KEY_AW { # [doc = "228: VALUE"]
RESETCMD_KEY_VALUE = 228 , } impl From < RESETCMD_KEY_AW > for u8 { # [inline (always)]
fn from (variant : RESETCMD_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for RESETCMD_KEY_AW { type Ux = u8 ; } # [doc = "Field `RESETCMD_KEY` writer - The key value of E4h (228) must be written to KEY together with GO to trigger the reset."]
pub type RESETCMD_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , RESETCMD_KEY_AW > ; impl < 'a , REG , const O : u8 > RESETCMD_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "VALUE"]
# [inline (always)]
pub fn resetcmd_key_value (self) -> & 'a mut crate :: W < REG > { self . variant (RESETCMD_KEY_AW :: RESETCMD_KEY_VALUE) } } impl W { # [doc = "Bit 0 - Execute the reset specified in RESETLEVEL.LEVEL. Must be written together with the KEY."]
# [inline (always)]
# [must_use]
pub fn resetcmd_go (& mut self) -> RESETCMD_GO_W < RESETCMD_SPEC , 0 > { RESETCMD_GO_W :: new (self) } # [doc = "Bits 24:31 - The key value of E4h (228) must be written to KEY together with GO to trigger the reset."]
# [inline (always)]
# [must_use]
pub fn resetcmd_key (& mut self) -> RESETCMD_KEY_W < RESETCMD_SPEC , 24 > { RESETCMD_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Execute an application-triggered reset command\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`resetcmd::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RESETCMD_SPEC ; impl crate :: RegisterSpec for RESETCMD_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`resetcmd::W`](W) writer structure"]
impl crate :: Writable for RESETCMD_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets RESETCMD to value 0"]
impl crate :: Resettable for RESETCMD_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "BORTHRESHOLD (rw) register accessor: BOR threshold selection\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`borthreshold::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`borthreshold::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@borthreshold`]
module"]
pub type BORTHRESHOLD = crate :: Reg < borthreshold :: BORTHRESHOLD_SPEC > ; # [doc = "BOR threshold selection"]
pub mod borthreshold { # [doc = "Register `BORTHRESHOLD` reader"]
pub type R = crate :: R < BORTHRESHOLD_SPEC > ; # [doc = "Register `BORTHRESHOLD` writer"]
pub type W = crate :: W < BORTHRESHOLD_SPEC > ; # [doc = "Field `BORTHRESHOLD_LEVEL` reader - LEVEL specifies the desired BOR threshold and BOR mode."]
pub type BORTHRESHOLD_LEVEL_R = crate :: FieldReader < BORTHRESHOLD_LEVEL_A > ; # [doc = "LEVEL specifies the desired BOR threshold and BOR mode.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum BORTHRESHOLD_LEVEL_A { # [doc = "0: BORMIN"]
BORTHRESHOLD_LEVEL_BORMIN = 0 , # [doc = "1: BORLEVEL1"]
BORTHRESHOLD_LEVEL_BORLEVEL1 = 1 , # [doc = "2: BORLEVEL2"]
BORTHRESHOLD_LEVEL_BORLEVEL2 = 2 , # [doc = "3: BORLEVEL3"]
BORTHRESHOLD_LEVEL_BORLEVEL3 = 3 , } impl From < BORTHRESHOLD_LEVEL_A > for u8 { # [inline (always)]
fn from (variant : BORTHRESHOLD_LEVEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for BORTHRESHOLD_LEVEL_A { type Ux = u8 ; } impl BORTHRESHOLD_LEVEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> BORTHRESHOLD_LEVEL_A { match self . bits { 0 => BORTHRESHOLD_LEVEL_A :: BORTHRESHOLD_LEVEL_BORMIN , 1 => BORTHRESHOLD_LEVEL_A :: BORTHRESHOLD_LEVEL_BORLEVEL1 , 2 => BORTHRESHOLD_LEVEL_A :: BORTHRESHOLD_LEVEL_BORLEVEL2 , 3 => BORTHRESHOLD_LEVEL_A :: BORTHRESHOLD_LEVEL_BORLEVEL3 , _ => unreachable ! () , } } # [doc = "BORMIN"]
# [inline (always)]
pub fn is_borthreshold_level_bormin (& self) -> bool { * self == BORTHRESHOLD_LEVEL_A :: BORTHRESHOLD_LEVEL_BORMIN } # [doc = "BORLEVEL1"]
# [inline (always)]
pub fn is_borthreshold_level_borlevel1 (& self) -> bool { * self == BORTHRESHOLD_LEVEL_A :: BORTHRESHOLD_LEVEL_BORLEVEL1 } # [doc = "BORLEVEL2"]
# [inline (always)]
pub fn is_borthreshold_level_borlevel2 (& self) -> bool { * self == BORTHRESHOLD_LEVEL_A :: BORTHRESHOLD_LEVEL_BORLEVEL2 } # [doc = "BORLEVEL3"]
# [inline (always)]
pub fn is_borthreshold_level_borlevel3 (& self) -> bool { * self == BORTHRESHOLD_LEVEL_A :: BORTHRESHOLD_LEVEL_BORLEVEL3 } } # [doc = "Field `BORTHRESHOLD_LEVEL` writer - LEVEL specifies the desired BOR threshold and BOR mode."]
pub type BORTHRESHOLD_LEVEL_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , BORTHRESHOLD_LEVEL_A > ; impl < 'a , REG , const O : u8 > BORTHRESHOLD_LEVEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "BORMIN"]
# [inline (always)]
pub fn borthreshold_level_bormin (self) -> & 'a mut crate :: W < REG > { self . variant (BORTHRESHOLD_LEVEL_A :: BORTHRESHOLD_LEVEL_BORMIN) } # [doc = "BORLEVEL1"]
# [inline (always)]
pub fn borthreshold_level_borlevel1 (self) -> & 'a mut crate :: W < REG > { self . variant (BORTHRESHOLD_LEVEL_A :: BORTHRESHOLD_LEVEL_BORLEVEL1) } # [doc = "BORLEVEL2"]
# [inline (always)]
pub fn borthreshold_level_borlevel2 (self) -> & 'a mut crate :: W < REG > { self . variant (BORTHRESHOLD_LEVEL_A :: BORTHRESHOLD_LEVEL_BORLEVEL2) } # [doc = "BORLEVEL3"]
# [inline (always)]
pub fn borthreshold_level_borlevel3 (self) -> & 'a mut crate :: W < REG > { self . variant (BORTHRESHOLD_LEVEL_A :: BORTHRESHOLD_LEVEL_BORLEVEL3) } } impl R { # [doc = "Bits 0:1 - LEVEL specifies the desired BOR threshold and BOR mode."]
# [inline (always)]
pub fn borthreshold_level (& self) -> BORTHRESHOLD_LEVEL_R { BORTHRESHOLD_LEVEL_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = "Bits 0:1 - LEVEL specifies the desired BOR threshold and BOR mode."]
# [inline (always)]
# [must_use]
pub fn borthreshold_level (& mut self) -> BORTHRESHOLD_LEVEL_W < BORTHRESHOLD_SPEC , 0 > { BORTHRESHOLD_LEVEL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "BOR threshold selection\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`borthreshold::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`borthreshold::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct BORTHRESHOLD_SPEC ; impl crate :: RegisterSpec for BORTHRESHOLD_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`borthreshold::R`](R) reader structure"]
impl crate :: Readable for BORTHRESHOLD_SPEC { } # [doc = "`write(|w| ..)` method takes [`borthreshold::W`](W) writer structure"]
impl crate :: Writable for BORTHRESHOLD_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets BORTHRESHOLD to value 0"]
impl crate :: Resettable for BORTHRESHOLD_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "BORCLRCMD (w) register accessor: Set the BOR threshold\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`borclrcmd::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@borclrcmd`]
module"]
pub type BORCLRCMD = crate :: Reg < borclrcmd :: BORCLRCMD_SPEC > ; # [doc = "Set the BOR threshold"]
pub mod borclrcmd { # [doc = "Register `BORCLRCMD` writer"]
pub type W = crate :: W < BORCLRCMD_SPEC > ; # [doc = "GO clears any prior BOR violation status indications and attempts to change the active BOR mode to that specified in the LEVEL field of the BORTHRESHOLD register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum BORCLRCMD_GO_AW { # [doc = "1: TRUE"]
BORCLRCMD_GO_TRUE = 1 , } impl From < BORCLRCMD_GO_AW > for bool { # [inline (always)]
fn from (variant : BORCLRCMD_GO_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `BORCLRCMD_GO` writer - GO clears any prior BOR violation status indications and attempts to change the active BOR mode to that specified in the LEVEL field of the BORTHRESHOLD register."]
pub type BORCLRCMD_GO_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , BORCLRCMD_GO_AW > ; impl < 'a , REG , const O : u8 > BORCLRCMD_GO_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "TRUE"]
# [inline (always)]
pub fn borclrcmd_go_true (self) -> & 'a mut crate :: W < REG > { self . variant (BORCLRCMD_GO_AW :: BORCLRCMD_GO_TRUE) } } # [doc = "The key value of C7h (199) must be written to KEY together with GO to trigger the clear and BOR threshold change.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum BORCLRCMD_KEY_AW { # [doc = "199: VALUE"]
BORCLRCMD_KEY_VALUE = 199 , } impl From < BORCLRCMD_KEY_AW > for u8 { # [inline (always)]
fn from (variant : BORCLRCMD_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for BORCLRCMD_KEY_AW { type Ux = u8 ; } # [doc = "Field `BORCLRCMD_KEY` writer - The key value of C7h (199) must be written to KEY together with GO to trigger the clear and BOR threshold change."]
pub type BORCLRCMD_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , BORCLRCMD_KEY_AW > ; impl < 'a , REG , const O : u8 > BORCLRCMD_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "VALUE"]
# [inline (always)]
pub fn borclrcmd_key_value (self) -> & 'a mut crate :: W < REG > { self . variant (BORCLRCMD_KEY_AW :: BORCLRCMD_KEY_VALUE) } } impl W { # [doc = "Bit 0 - GO clears any prior BOR violation status indications and attempts to change the active BOR mode to that specified in the LEVEL field of the BORTHRESHOLD register."]
# [inline (always)]
# [must_use]
pub fn borclrcmd_go (& mut self) -> BORCLRCMD_GO_W < BORCLRCMD_SPEC , 0 > { BORCLRCMD_GO_W :: new (self) } # [doc = "Bits 24:31 - The key value of C7h (199) must be written to KEY together with GO to trigger the clear and BOR threshold change."]
# [inline (always)]
# [must_use]
pub fn borclrcmd_key (& mut self) -> BORCLRCMD_KEY_W < BORCLRCMD_SPEC , 24 > { BORCLRCMD_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Set the BOR threshold\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`borclrcmd::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct BORCLRCMD_SPEC ; impl crate :: RegisterSpec for BORCLRCMD_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`borclrcmd::W`](W) writer structure"]
impl crate :: Writable for BORCLRCMD_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets BORCLRCMD to value 0"]
impl crate :: Resettable for BORCLRCMD_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "SYSOSCFCLCTL (w) register accessor: SYSOSC frequency correction loop (FCL) ROSC enable\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sysoscfclctl::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sysoscfclctl`]
module"]
pub type SYSOSCFCLCTL = crate :: Reg < sysoscfclctl :: SYSOSCFCLCTL_SPEC > ; # [doc = "SYSOSC frequency correction loop (FCL) ROSC enable"]
pub mod sysoscfclctl { # [doc = "Register `SYSOSCFCLCTL` writer"]
pub type W = crate :: W < SYSOSCFCLCTL_SPEC > ; # [doc = "Set SETUSEFCL to enable the frequency correction loop in SYSOSC. Once enabled, this state is locked until the next BOOTRST.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SYSOSCFCLCTL_SETUSEFCL_AW { # [doc = "1: TRUE"]
SYSOSCFCLCTL_SETUSEFCL_TRUE = 1 , } impl From < SYSOSCFCLCTL_SETUSEFCL_AW > for bool { # [inline (always)]
fn from (variant : SYSOSCFCLCTL_SETUSEFCL_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `SYSOSCFCLCTL_SETUSEFCL` writer - Set SETUSEFCL to enable the frequency correction loop in SYSOSC. Once enabled, this state is locked until the next BOOTRST."]
pub type SYSOSCFCLCTL_SETUSEFCL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SYSOSCFCLCTL_SETUSEFCL_AW > ; impl < 'a , REG , const O : u8 > SYSOSCFCLCTL_SETUSEFCL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "TRUE"]
# [inline (always)]
pub fn sysoscfclctl_setusefcl_true (self) -> & 'a mut crate :: W < REG > { self . variant (SYSOSCFCLCTL_SETUSEFCL_AW :: SYSOSCFCLCTL_SETUSEFCL_TRUE) } } # [doc = "The key value of 2Ah (42) must be written to KEY together with SETUSEFCL to enable the FCL.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum SYSOSCFCLCTL_KEY_AW { # [doc = "42: VALUE"]
SYSOSCFCLCTL_KEY_VALUE = 42 , } impl From < SYSOSCFCLCTL_KEY_AW > for u8 { # [inline (always)]
fn from (variant : SYSOSCFCLCTL_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for SYSOSCFCLCTL_KEY_AW { type Ux = u8 ; } # [doc = "Field `SYSOSCFCLCTL_KEY` writer - The key value of 2Ah (42) must be written to KEY together with SETUSEFCL to enable the FCL."]
pub type SYSOSCFCLCTL_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , SYSOSCFCLCTL_KEY_AW > ; impl < 'a , REG , const O : u8 > SYSOSCFCLCTL_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "VALUE"]
# [inline (always)]
pub fn sysoscfclctl_key_value (self) -> & 'a mut crate :: W < REG > { self . variant (SYSOSCFCLCTL_KEY_AW :: SYSOSCFCLCTL_KEY_VALUE) } } impl W { # [doc = "Bit 0 - Set SETUSEFCL to enable the frequency correction loop in SYSOSC. Once enabled, this state is locked until the next BOOTRST."]
# [inline (always)]
# [must_use]
pub fn sysoscfclctl_setusefcl (& mut self) -> SYSOSCFCLCTL_SETUSEFCL_W < SYSOSCFCLCTL_SPEC , 0 > { SYSOSCFCLCTL_SETUSEFCL_W :: new (self) } # [doc = "Bits 24:31 - The key value of 2Ah (42) must be written to KEY together with SETUSEFCL to enable the FCL."]
# [inline (always)]
# [must_use]
pub fn sysoscfclctl_key (& mut self) -> SYSOSCFCLCTL_KEY_W < SYSOSCFCLCTL_SPEC , 24 > { SYSOSCFCLCTL_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "SYSOSC frequency correction loop (FCL) ROSC enable\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sysoscfclctl::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SYSOSCFCLCTL_SPEC ; impl crate :: RegisterSpec for SYSOSCFCLCTL_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`sysoscfclctl::W`](W) writer structure"]
impl crate :: Writable for SYSOSCFCLCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets SYSOSCFCLCTL to value 0"]
impl crate :: Resettable for SYSOSCFCLCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "SHDNIOREL (w) register accessor: SHUTDOWN IO release control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`shdniorel::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@shdniorel`]
module"]
pub type SHDNIOREL = crate :: Reg < shdniorel :: SHDNIOREL_SPEC > ; # [doc = "SHUTDOWN IO release control"]
pub mod shdniorel { # [doc = "Register `SHDNIOREL` writer"]
pub type W = crate :: W < SHDNIOREL_SPEC > ; # [doc = "Set RELEASE to release the IO after a SHUTDOWN mode exit.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SHDNIOREL_RELEASE_AW { # [doc = "1: TRUE"]
SHDNIOREL_RELEASE_TRUE = 1 , } impl From < SHDNIOREL_RELEASE_AW > for bool { # [inline (always)]
fn from (variant : SHDNIOREL_RELEASE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `SHDNIOREL_RELEASE` writer - Set RELEASE to release the IO after a SHUTDOWN mode exit."]
pub type SHDNIOREL_RELEASE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SHDNIOREL_RELEASE_AW > ; impl < 'a , REG , const O : u8 > SHDNIOREL_RELEASE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "TRUE"]
# [inline (always)]
pub fn shdniorel_release_true (self) -> & 'a mut crate :: W < REG > { self . variant (SHDNIOREL_RELEASE_AW :: SHDNIOREL_RELEASE_TRUE) } } # [doc = "The key value 91h must be written to KEY together with RELEASE to set RELEASE.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum SHDNIOREL_KEY_AW { # [doc = "145: VALUE"]
SHDNIOREL_KEY_VALUE = 145 , } impl From < SHDNIOREL_KEY_AW > for u8 { # [inline (always)]
fn from (variant : SHDNIOREL_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for SHDNIOREL_KEY_AW { type Ux = u8 ; } # [doc = "Field `SHDNIOREL_KEY` writer - The key value 91h must be written to KEY together with RELEASE to set RELEASE."]
pub type SHDNIOREL_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , SHDNIOREL_KEY_AW > ; impl < 'a , REG , const O : u8 > SHDNIOREL_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "VALUE"]
# [inline (always)]
pub fn shdniorel_key_value (self) -> & 'a mut crate :: W < REG > { self . variant (SHDNIOREL_KEY_AW :: SHDNIOREL_KEY_VALUE) } } impl W { # [doc = "Bit 0 - Set RELEASE to release the IO after a SHUTDOWN mode exit."]
# [inline (always)]
# [must_use]
pub fn shdniorel_release (& mut self) -> SHDNIOREL_RELEASE_W < SHDNIOREL_SPEC , 0 > { SHDNIOREL_RELEASE_W :: new (self) } # [doc = "Bits 24:31 - The key value 91h must be written to KEY together with RELEASE to set RELEASE."]
# [inline (always)]
# [must_use]
pub fn shdniorel_key (& mut self) -> SHDNIOREL_KEY_W < SHDNIOREL_SPEC , 24 > { SHDNIOREL_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "SHUTDOWN IO release control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`shdniorel::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SHDNIOREL_SPEC ; impl crate :: RegisterSpec for SHDNIOREL_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`shdniorel::W`](W) writer structure"]
impl crate :: Writable for SHDNIOREL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets SHDNIOREL to value 0"]
impl crate :: Resettable for SHDNIOREL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "EXRSTPIN (w) register accessor: Disable the reset function of the NRST pin\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`exrstpin::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@exrstpin`]
module"]
pub type EXRSTPIN = crate :: Reg < exrstpin :: EXRSTPIN_SPEC > ; # [doc = "Disable the reset function of the NRST pin"]
pub mod exrstpin { # [doc = "Register `EXRSTPIN` writer"]
pub type W = crate :: W < EXRSTPIN_SPEC > ; # [doc = "Set DISABLE to disable the reset function of the NRST pin. Once set, this configuration is locked until the next POR.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum EXRSTPIN_DISABLE_AW { # [doc = "0: FALSE"]
EXRSTPIN_DISABLE_FALSE = 0 , # [doc = "1: TRUE"]
EXRSTPIN_DISABLE_TRUE = 1 , } impl From < EXRSTPIN_DISABLE_AW > for bool { # [inline (always)]
fn from (variant : EXRSTPIN_DISABLE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `EXRSTPIN_DISABLE` writer - Set DISABLE to disable the reset function of the NRST pin. Once set, this configuration is locked until the next POR."]
pub type EXRSTPIN_DISABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , EXRSTPIN_DISABLE_AW > ; impl < 'a , REG , const O : u8 > EXRSTPIN_DISABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "FALSE"]
# [inline (always)]
pub fn exrstpin_disable_false (self) -> & 'a mut crate :: W < REG > { self . variant (EXRSTPIN_DISABLE_AW :: EXRSTPIN_DISABLE_FALSE) } # [doc = "TRUE"]
# [inline (always)]
pub fn exrstpin_disable_true (self) -> & 'a mut crate :: W < REG > { self . variant (EXRSTPIN_DISABLE_AW :: EXRSTPIN_DISABLE_TRUE) } } # [doc = "The key value 1Eh must be written together with DISABLE to disable the reset function.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EXRSTPIN_KEY_AW { # [doc = "30: VALUE"]
EXRSTPIN_KEY_VALUE = 30 , } impl From < EXRSTPIN_KEY_AW > for u8 { # [inline (always)]
fn from (variant : EXRSTPIN_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for EXRSTPIN_KEY_AW { type Ux = u8 ; } # [doc = "Field `EXRSTPIN_KEY` writer - The key value 1Eh must be written together with DISABLE to disable the reset function."]
pub type EXRSTPIN_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , EXRSTPIN_KEY_AW > ; impl < 'a , REG , const O : u8 > EXRSTPIN_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "VALUE"]
# [inline (always)]
pub fn exrstpin_key_value (self) -> & 'a mut crate :: W < REG > { self . variant (EXRSTPIN_KEY_AW :: EXRSTPIN_KEY_VALUE) } } impl W { # [doc = "Bit 0 - Set DISABLE to disable the reset function of the NRST pin. Once set, this configuration is locked until the next POR."]
# [inline (always)]
# [must_use]
pub fn exrstpin_disable (& mut self) -> EXRSTPIN_DISABLE_W < EXRSTPIN_SPEC , 0 > { EXRSTPIN_DISABLE_W :: new (self) } # [doc = "Bits 24:31 - The key value 1Eh must be written together with DISABLE to disable the reset function."]
# [inline (always)]
# [must_use]
pub fn exrstpin_key (& mut self) -> EXRSTPIN_KEY_W < EXRSTPIN_SPEC , 24 > { EXRSTPIN_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Disable the reset function of the NRST pin\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`exrstpin::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct EXRSTPIN_SPEC ; impl crate :: RegisterSpec for EXRSTPIN_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`exrstpin::W`](W) writer structure"]
impl crate :: Writable for EXRSTPIN_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets EXRSTPIN to value 0"]
impl crate :: Resettable for EXRSTPIN_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "SWDCFG (w) register accessor: Disable the SWD function on the SWD pins\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`swdcfg::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@swdcfg`]
module"]
pub type SWDCFG = crate :: Reg < swdcfg :: SWDCFG_SPEC > ; # [doc = "Disable the SWD function on the SWD pins"]
pub mod swdcfg { # [doc = "Register `SWDCFG` writer"]
pub type W = crate :: W < SWDCFG_SPEC > ; # [doc = "Set DISABLE to disable the SWD function on SWD pins, allowing the SWD pins to be used as GPIO.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SWDCFG_DISABLE_AW { # [doc = "1: TRUE"]
SWDCFG_DISABLE_TRUE = 1 , } impl From < SWDCFG_DISABLE_AW > for bool { # [inline (always)]
fn from (variant : SWDCFG_DISABLE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `SWDCFG_DISABLE` writer - Set DISABLE to disable the SWD function on SWD pins, allowing the SWD pins to be used as GPIO."]
pub type SWDCFG_DISABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SWDCFG_DISABLE_AW > ; impl < 'a , REG , const O : u8 > SWDCFG_DISABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "TRUE"]
# [inline (always)]
pub fn swdcfg_disable_true (self) -> & 'a mut crate :: W < REG > { self . variant (SWDCFG_DISABLE_AW :: SWDCFG_DISABLE_TRUE) } } # [doc = "The key value 62h (98) must be written to KEY together with DISBALE to disable the SWD functions.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum SWDCFG_KEY_AW { # [doc = "98: VALUE"]
SWDCFG_KEY_VALUE = 98 , } impl From < SWDCFG_KEY_AW > for u8 { # [inline (always)]
fn from (variant : SWDCFG_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for SWDCFG_KEY_AW { type Ux = u8 ; } # [doc = "Field `SWDCFG_KEY` writer - The key value 62h (98) must be written to KEY together with DISBALE to disable the SWD functions."]
pub type SWDCFG_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , SWDCFG_KEY_AW > ; impl < 'a , REG , const O : u8 > SWDCFG_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "VALUE"]
# [inline (always)]
pub fn swdcfg_key_value (self) -> & 'a mut crate :: W < REG > { self . variant (SWDCFG_KEY_AW :: SWDCFG_KEY_VALUE) } } impl W { # [doc = "Bit 0 - Set DISABLE to disable the SWD function on SWD pins, allowing the SWD pins to be used as GPIO."]
# [inline (always)]
# [must_use]
pub fn swdcfg_disable (& mut self) -> SWDCFG_DISABLE_W < SWDCFG_SPEC , 0 > { SWDCFG_DISABLE_W :: new (self) } # [doc = "Bits 24:31 - The key value 62h (98) must be written to KEY together with DISBALE to disable the SWD functions."]
# [inline (always)]
# [must_use]
pub fn swdcfg_key (& mut self) -> SWDCFG_KEY_W < SWDCFG_SPEC , 24 > { SWDCFG_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Disable the SWD function on the SWD pins\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`swdcfg::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SWDCFG_SPEC ; impl crate :: RegisterSpec for SWDCFG_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`swdcfg::W`](W) writer structure"]
impl crate :: Writable for SWDCFG_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets SWDCFG to value 0"]
impl crate :: Resettable for SWDCFG_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "FCCCMD (w) register accessor: Frequency clock counter start capture\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fcccmd::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fcccmd`]
module"]
pub type FCCCMD = crate :: Reg < fcccmd :: FCCCMD_SPEC > ; # [doc = "Frequency clock counter start capture"]
pub mod fcccmd { # [doc = "Register `FCCCMD` writer"]
pub type W = crate :: W < FCCCMD_SPEC > ; # [doc = "Set GO to start a capture with the frequency clock counter (FCC).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum FCCCMD_GO_AW { # [doc = "1: TRUE"]
FCCCMD_GO_TRUE = 1 , } impl From < FCCCMD_GO_AW > for bool { # [inline (always)]
fn from (variant : FCCCMD_GO_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `FCCCMD_GO` writer - Set GO to start a capture with the frequency clock counter (FCC)."]
pub type FCCCMD_GO_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , FCCCMD_GO_AW > ; impl < 'a , REG , const O : u8 > FCCCMD_GO_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "TRUE"]
# [inline (always)]
pub fn fcccmd_go_true (self) -> & 'a mut crate :: W < REG > { self . variant (FCCCMD_GO_AW :: FCCCMD_GO_TRUE) } } # [doc = "The key value 0Eh (14) must be written with GO to start a capture.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FCCCMD_KEY_AW { # [doc = "14: VALUE"]
FCCCMD_KEY_VALUE = 14 , } impl From < FCCCMD_KEY_AW > for u8 { # [inline (always)]
fn from (variant : FCCCMD_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for FCCCMD_KEY_AW { type Ux = u8 ; } # [doc = "Field `FCCCMD_KEY` writer - The key value 0Eh (14) must be written with GO to start a capture."]
pub type FCCCMD_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , FCCCMD_KEY_AW > ; impl < 'a , REG , const O : u8 > FCCCMD_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "VALUE"]
# [inline (always)]
pub fn fcccmd_key_value (self) -> & 'a mut crate :: W < REG > { self . variant (FCCCMD_KEY_AW :: FCCCMD_KEY_VALUE) } } impl W { # [doc = "Bit 0 - Set GO to start a capture with the frequency clock counter (FCC)."]
# [inline (always)]
# [must_use]
pub fn fcccmd_go (& mut self) -> FCCCMD_GO_W < FCCCMD_SPEC , 0 > { FCCCMD_GO_W :: new (self) } # [doc = "Bits 24:31 - The key value 0Eh (14) must be written with GO to start a capture."]
# [inline (always)]
# [must_use]
pub fn fcccmd_key (& mut self) -> FCCCMD_KEY_W < FCCCMD_SPEC , 24 > { FCCCMD_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Frequency clock counter start capture\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fcccmd::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FCCCMD_SPEC ; impl crate :: RegisterSpec for FCCCMD_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`fcccmd::W`](W) writer structure"]
impl crate :: Writable for FCCCMD_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FCCCMD to value 0"]
impl crate :: Resettable for FCCCMD_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "PMUOPAMP (rw) register accessor: GPAMP control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pmuopamp::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pmuopamp::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pmuopamp`]
module"]
pub type PMUOPAMP = crate :: Reg < pmuopamp :: PMUOPAMP_SPEC > ; # [doc = "GPAMP control"]
pub mod pmuopamp { # [doc = "Register `PMUOPAMP` reader"]
pub type R = crate :: R < PMUOPAMP_SPEC > ; # [doc = "Register `PMUOPAMP` writer"]
pub type W = crate :: W < PMUOPAMP_SPEC > ; # [doc = "Field `PMUOPAMP_ENABLE` reader - Set ENABLE to turn on the GPAMP."]
pub type PMUOPAMP_ENABLE_R = crate :: BitReader < PMUOPAMP_ENABLE_A > ; # [doc = "Set ENABLE to turn on the GPAMP.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PMUOPAMP_ENABLE_A { # [doc = "0: FALSE"]
PMUOPAMP_ENABLE_FALSE = 0 , # [doc = "1: TRUE"]
PMUOPAMP_ENABLE_TRUE = 1 , } impl From < PMUOPAMP_ENABLE_A > for bool { # [inline (always)]
fn from (variant : PMUOPAMP_ENABLE_A) -> Self { variant as u8 != 0 } } impl PMUOPAMP_ENABLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PMUOPAMP_ENABLE_A { match self . bits { false => PMUOPAMP_ENABLE_A :: PMUOPAMP_ENABLE_FALSE , true => PMUOPAMP_ENABLE_A :: PMUOPAMP_ENABLE_TRUE , } } # [doc = "FALSE"]
# [inline (always)]
pub fn is_pmuopamp_enable_false (& self) -> bool { * self == PMUOPAMP_ENABLE_A :: PMUOPAMP_ENABLE_FALSE } # [doc = "TRUE"]
# [inline (always)]
pub fn is_pmuopamp_enable_true (& self) -> bool { * self == PMUOPAMP_ENABLE_A :: PMUOPAMP_ENABLE_TRUE } } # [doc = "Field `PMUOPAMP_ENABLE` writer - Set ENABLE to turn on the GPAMP."]
pub type PMUOPAMP_ENABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PMUOPAMP_ENABLE_A > ; impl < 'a , REG , const O : u8 > PMUOPAMP_ENABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "FALSE"]
# [inline (always)]
pub fn pmuopamp_enable_false (self) -> & 'a mut crate :: W < REG > { self . variant (PMUOPAMP_ENABLE_A :: PMUOPAMP_ENABLE_FALSE) } # [doc = "TRUE"]
# [inline (always)]
pub fn pmuopamp_enable_true (self) -> & 'a mut crate :: W < REG > { self . variant (PMUOPAMP_ENABLE_A :: PMUOPAMP_ENABLE_TRUE) } } # [doc = "Field `PMUOPAMP_PCHENABLE` reader - Set PCHENABLE to enable the positive channel input."]
pub type PMUOPAMP_PCHENABLE_R = crate :: BitReader < PMUOPAMP_PCHENABLE_A > ; # [doc = "Set PCHENABLE to enable the positive channel input.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PMUOPAMP_PCHENABLE_A { # [doc = "0: FALSE"]
PMUOPAMP_PCHENABLE_FALSE = 0 , # [doc = "1: TRUE"]
PMUOPAMP_PCHENABLE_TRUE = 1 , } impl From < PMUOPAMP_PCHENABLE_A > for bool { # [inline (always)]
fn from (variant : PMUOPAMP_PCHENABLE_A) -> Self { variant as u8 != 0 } } impl PMUOPAMP_PCHENABLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PMUOPAMP_PCHENABLE_A { match self . bits { false => PMUOPAMP_PCHENABLE_A :: PMUOPAMP_PCHENABLE_FALSE , true => PMUOPAMP_PCHENABLE_A :: PMUOPAMP_PCHENABLE_TRUE , } } # [doc = "FALSE"]
# [inline (always)]
pub fn is_pmuopamp_pchenable_false (& self) -> bool { * self == PMUOPAMP_PCHENABLE_A :: PMUOPAMP_PCHENABLE_FALSE } # [doc = "TRUE"]
# [inline (always)]
pub fn is_pmuopamp_pchenable_true (& self) -> bool { * self == PMUOPAMP_PCHENABLE_A :: PMUOPAMP_PCHENABLE_TRUE } } # [doc = "Field `PMUOPAMP_PCHENABLE` writer - Set PCHENABLE to enable the positive channel input."]
pub type PMUOPAMP_PCHENABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PMUOPAMP_PCHENABLE_A > ; impl < 'a , REG , const O : u8 > PMUOPAMP_PCHENABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "FALSE"]
# [inline (always)]
pub fn pmuopamp_pchenable_false (self) -> & 'a mut crate :: W < REG > { self . variant (PMUOPAMP_PCHENABLE_A :: PMUOPAMP_PCHENABLE_FALSE) } # [doc = "TRUE"]
# [inline (always)]
pub fn pmuopamp_pchenable_true (self) -> & 'a mut crate :: W < REG > { self . variant (PMUOPAMP_PCHENABLE_A :: PMUOPAMP_PCHENABLE_TRUE) } } # [doc = "Field `PMUOPAMP_NSEL` reader - NSEL selects the GPAMP negative channel input."]
pub type PMUOPAMP_NSEL_R = crate :: FieldReader < PMUOPAMP_NSEL_A > ; # [doc = "NSEL selects the GPAMP negative channel input.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum PMUOPAMP_NSEL_A { # [doc = "0: SEL0"]
PMUOPAMP_NSEL_SEL0 = 0 , # [doc = "1: SEL1"]
PMUOPAMP_NSEL_SEL1 = 1 , # [doc = "2: SEL2"]
PMUOPAMP_NSEL_SEL2 = 2 , # [doc = "3: SEL3"]
PMUOPAMP_NSEL_SEL3 = 3 , } impl From < PMUOPAMP_NSEL_A > for u8 { # [inline (always)]
fn from (variant : PMUOPAMP_NSEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for PMUOPAMP_NSEL_A { type Ux = u8 ; } impl PMUOPAMP_NSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PMUOPAMP_NSEL_A { match self . bits { 0 => PMUOPAMP_NSEL_A :: PMUOPAMP_NSEL_SEL0 , 1 => PMUOPAMP_NSEL_A :: PMUOPAMP_NSEL_SEL1 , 2 => PMUOPAMP_NSEL_A :: PMUOPAMP_NSEL_SEL2 , 3 => PMUOPAMP_NSEL_A :: PMUOPAMP_NSEL_SEL3 , _ => unreachable ! () , } } # [doc = "SEL0"]
# [inline (always)]
pub fn is_pmuopamp_nsel_sel0 (& self) -> bool { * self == PMUOPAMP_NSEL_A :: PMUOPAMP_NSEL_SEL0 } # [doc = "SEL1"]
# [inline (always)]
pub fn is_pmuopamp_nsel_sel1 (& self) -> bool { * self == PMUOPAMP_NSEL_A :: PMUOPAMP_NSEL_SEL1 } # [doc = "SEL2"]
# [inline (always)]
pub fn is_pmuopamp_nsel_sel2 (& self) -> bool { * self == PMUOPAMP_NSEL_A :: PMUOPAMP_NSEL_SEL2 } # [doc = "SEL3"]
# [inline (always)]
pub fn is_pmuopamp_nsel_sel3 (& self) -> bool { * self == PMUOPAMP_NSEL_A :: PMUOPAMP_NSEL_SEL3 } } # [doc = "Field `PMUOPAMP_NSEL` writer - NSEL selects the GPAMP negative channel input."]
pub type PMUOPAMP_NSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , PMUOPAMP_NSEL_A > ; impl < 'a , REG , const O : u8 > PMUOPAMP_NSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "SEL0"]
# [inline (always)]
pub fn pmuopamp_nsel_sel0 (self) -> & 'a mut crate :: W < REG > { self . variant (PMUOPAMP_NSEL_A :: PMUOPAMP_NSEL_SEL0) } # [doc = "SEL1"]
# [inline (always)]
pub fn pmuopamp_nsel_sel1 (self) -> & 'a mut crate :: W < REG > { self . variant (PMUOPAMP_NSEL_A :: PMUOPAMP_NSEL_SEL1) } # [doc = "SEL2"]
# [inline (always)]
pub fn pmuopamp_nsel_sel2 (self) -> & 'a mut crate :: W < REG > { self . variant (PMUOPAMP_NSEL_A :: PMUOPAMP_NSEL_SEL2) } # [doc = "SEL3"]
# [inline (always)]
pub fn pmuopamp_nsel_sel3 (self) -> & 'a mut crate :: W < REG > { self . variant (PMUOPAMP_NSEL_A :: PMUOPAMP_NSEL_SEL3) } } # [doc = "Field `PMUOPAMP_RRI` reader - RRI selects the rail-to-rail input mode."]
pub type PMUOPAMP_RRI_R = crate :: FieldReader < PMUOPAMP_RRI_A > ; # [doc = "RRI selects the rail-to-rail input mode.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum PMUOPAMP_RRI_A { # [doc = "0: MODE0"]
PMUOPAMP_RRI_MODE0 = 0 , # [doc = "1: MODE1"]
PMUOPAMP_RRI_MODE1 = 1 , # [doc = "2: MODE2"]
PMUOPAMP_RRI_MODE2 = 2 , # [doc = "3: MODE3"]
PMUOPAMP_RRI_MODE3 = 3 , } impl From < PMUOPAMP_RRI_A > for u8 { # [inline (always)]
fn from (variant : PMUOPAMP_RRI_A) -> Self { variant as _ } } impl crate :: FieldSpec for PMUOPAMP_RRI_A { type Ux = u8 ; } impl PMUOPAMP_RRI_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PMUOPAMP_RRI_A { match self . bits { 0 => PMUOPAMP_RRI_A :: PMUOPAMP_RRI_MODE0 , 1 => PMUOPAMP_RRI_A :: PMUOPAMP_RRI_MODE1 , 2 => PMUOPAMP_RRI_A :: PMUOPAMP_RRI_MODE2 , 3 => PMUOPAMP_RRI_A :: PMUOPAMP_RRI_MODE3 , _ => unreachable ! () , } } # [doc = "MODE0"]
# [inline (always)]
pub fn is_pmuopamp_rri_mode0 (& self) -> bool { * self == PMUOPAMP_RRI_A :: PMUOPAMP_RRI_MODE0 } # [doc = "MODE1"]
# [inline (always)]
pub fn is_pmuopamp_rri_mode1 (& self) -> bool { * self == PMUOPAMP_RRI_A :: PMUOPAMP_RRI_MODE1 } # [doc = "MODE2"]
# [inline (always)]
pub fn is_pmuopamp_rri_mode2 (& self) -> bool { * self == PMUOPAMP_RRI_A :: PMUOPAMP_RRI_MODE2 } # [doc = "MODE3"]
# [inline (always)]
pub fn is_pmuopamp_rri_mode3 (& self) -> bool { * self == PMUOPAMP_RRI_A :: PMUOPAMP_RRI_MODE3 } } # [doc = "Field `PMUOPAMP_RRI` writer - RRI selects the rail-to-rail input mode."]
pub type PMUOPAMP_RRI_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , PMUOPAMP_RRI_A > ; impl < 'a , REG , const O : u8 > PMUOPAMP_RRI_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "MODE0"]
# [inline (always)]
pub fn pmuopamp_rri_mode0 (self) -> & 'a mut crate :: W < REG > { self . variant (PMUOPAMP_RRI_A :: PMUOPAMP_RRI_MODE0) } # [doc = "MODE1"]
# [inline (always)]
pub fn pmuopamp_rri_mode1 (self) -> & 'a mut crate :: W < REG > { self . variant (PMUOPAMP_RRI_A :: PMUOPAMP_RRI_MODE1) } # [doc = "MODE2"]
# [inline (always)]
pub fn pmuopamp_rri_mode2 (self) -> & 'a mut crate :: W < REG > { self . variant (PMUOPAMP_RRI_A :: PMUOPAMP_RRI_MODE2) } # [doc = "MODE3"]
# [inline (always)]
pub fn pmuopamp_rri_mode3 (self) -> & 'a mut crate :: W < REG > { self . variant (PMUOPAMP_RRI_A :: PMUOPAMP_RRI_MODE3) } } # [doc = "Field `PMUOPAMP_OUTENABLE` reader - Set OUTENABLE to connect the GPAMP output signal to the GPAMP_OUT pin"]
pub type PMUOPAMP_OUTENABLE_R = crate :: BitReader < PMUOPAMP_OUTENABLE_A > ; # [doc = "Set OUTENABLE to connect the GPAMP output signal to the GPAMP_OUT pin\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PMUOPAMP_OUTENABLE_A { # [doc = "0: FALSE"]
PMUOPAMP_OUTENABLE_FALSE = 0 , # [doc = "1: TRUE"]
PMUOPAMP_OUTENABLE_TRUE = 1 , } impl From < PMUOPAMP_OUTENABLE_A > for bool { # [inline (always)]
fn from (variant : PMUOPAMP_OUTENABLE_A) -> Self { variant as u8 != 0 } } impl PMUOPAMP_OUTENABLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PMUOPAMP_OUTENABLE_A { match self . bits { false => PMUOPAMP_OUTENABLE_A :: PMUOPAMP_OUTENABLE_FALSE , true => PMUOPAMP_OUTENABLE_A :: PMUOPAMP_OUTENABLE_TRUE , } } # [doc = "FALSE"]
# [inline (always)]
pub fn is_pmuopamp_outenable_false (& self) -> bool { * self == PMUOPAMP_OUTENABLE_A :: PMUOPAMP_OUTENABLE_FALSE } # [doc = "TRUE"]
# [inline (always)]
pub fn is_pmuopamp_outenable_true (& self) -> bool { * self == PMUOPAMP_OUTENABLE_A :: PMUOPAMP_OUTENABLE_TRUE } } # [doc = "Field `PMUOPAMP_OUTENABLE` writer - Set OUTENABLE to connect the GPAMP output signal to the GPAMP_OUT pin"]
pub type PMUOPAMP_OUTENABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PMUOPAMP_OUTENABLE_A > ; impl < 'a , REG , const O : u8 > PMUOPAMP_OUTENABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "FALSE"]
# [inline (always)]
pub fn pmuopamp_outenable_false (self) -> & 'a mut crate :: W < REG > { self . variant (PMUOPAMP_OUTENABLE_A :: PMUOPAMP_OUTENABLE_FALSE) } # [doc = "TRUE"]
# [inline (always)]
pub fn pmuopamp_outenable_true (self) -> & 'a mut crate :: W < REG > { self . variant (PMUOPAMP_OUTENABLE_A :: PMUOPAMP_OUTENABLE_TRUE) } } # [doc = "Field `PMUOPAMP_CHOPCLKFREQ` reader - CHOPCLKFREQ selects the GPAMP chopping clock frequency"]
pub type PMUOPAMP_CHOPCLKFREQ_R = crate :: FieldReader < PMUOPAMP_CHOPCLKFREQ_A > ; # [doc = "CHOPCLKFREQ selects the GPAMP chopping clock frequency\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum PMUOPAMP_CHOPCLKFREQ_A { # [doc = "0: CLK16KHZ"]
PMUOPAMP_CHOPCLKFREQ_CLK16KHZ = 0 , # [doc = "1: CLK8KHZ"]
PMUOPAMP_CHOPCLKFREQ_CLK8KHZ = 1 , # [doc = "2: CLK4KHZ"]
PMUOPAMP_CHOPCLKFREQ_CLK4KHZ = 2 , # [doc = "3: CLK2KHZ"]
PMUOPAMP_CHOPCLKFREQ_CLK2KHZ = 3 , } impl From < PMUOPAMP_CHOPCLKFREQ_A > for u8 { # [inline (always)]
fn from (variant : PMUOPAMP_CHOPCLKFREQ_A) -> Self { variant as _ } } impl crate :: FieldSpec for PMUOPAMP_CHOPCLKFREQ_A { type Ux = u8 ; } impl PMUOPAMP_CHOPCLKFREQ_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PMUOPAMP_CHOPCLKFREQ_A { match self . bits { 0 => PMUOPAMP_CHOPCLKFREQ_A :: PMUOPAMP_CHOPCLKFREQ_CLK16KHZ , 1 => PMUOPAMP_CHOPCLKFREQ_A :: PMUOPAMP_CHOPCLKFREQ_CLK8KHZ , 2 => PMUOPAMP_CHOPCLKFREQ_A :: PMUOPAMP_CHOPCLKFREQ_CLK4KHZ , 3 => PMUOPAMP_CHOPCLKFREQ_A :: PMUOPAMP_CHOPCLKFREQ_CLK2KHZ , _ => unreachable ! () , } } # [doc = "CLK16KHZ"]
# [inline (always)]
pub fn is_pmuopamp_chopclkfreq_clk16khz (& self) -> bool { * self == PMUOPAMP_CHOPCLKFREQ_A :: PMUOPAMP_CHOPCLKFREQ_CLK16KHZ } # [doc = "CLK8KHZ"]
# [inline (always)]
pub fn is_pmuopamp_chopclkfreq_clk8khz (& self) -> bool { * self == PMUOPAMP_CHOPCLKFREQ_A :: PMUOPAMP_CHOPCLKFREQ_CLK8KHZ } # [doc = "CLK4KHZ"]
# [inline (always)]
pub fn is_pmuopamp_chopclkfreq_clk4khz (& self) -> bool { * self == PMUOPAMP_CHOPCLKFREQ_A :: PMUOPAMP_CHOPCLKFREQ_CLK4KHZ } # [doc = "CLK2KHZ"]
# [inline (always)]
pub fn is_pmuopamp_chopclkfreq_clk2khz (& self) -> bool { * self == PMUOPAMP_CHOPCLKFREQ_A :: PMUOPAMP_CHOPCLKFREQ_CLK2KHZ } } # [doc = "Field `PMUOPAMP_CHOPCLKFREQ` writer - CHOPCLKFREQ selects the GPAMP chopping clock frequency"]
pub type PMUOPAMP_CHOPCLKFREQ_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , PMUOPAMP_CHOPCLKFREQ_A > ; impl < 'a , REG , const O : u8 > PMUOPAMP_CHOPCLKFREQ_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "CLK16KHZ"]
# [inline (always)]
pub fn pmuopamp_chopclkfreq_clk16khz (self) -> & 'a mut crate :: W < REG > { self . variant (PMUOPAMP_CHOPCLKFREQ_A :: PMUOPAMP_CHOPCLKFREQ_CLK16KHZ) } # [doc = "CLK8KHZ"]
# [inline (always)]
pub fn pmuopamp_chopclkfreq_clk8khz (self) -> & 'a mut crate :: W < REG > { self . variant (PMUOPAMP_CHOPCLKFREQ_A :: PMUOPAMP_CHOPCLKFREQ_CLK8KHZ) } # [doc = "CLK4KHZ"]
# [inline (always)]
pub fn pmuopamp_chopclkfreq_clk4khz (self) -> & 'a mut crate :: W < REG > { self . variant (PMUOPAMP_CHOPCLKFREQ_A :: PMUOPAMP_CHOPCLKFREQ_CLK4KHZ) } # [doc = "CLK2KHZ"]
# [inline (always)]
pub fn pmuopamp_chopclkfreq_clk2khz (self) -> & 'a mut crate :: W < REG > { self . variant (PMUOPAMP_CHOPCLKFREQ_A :: PMUOPAMP_CHOPCLKFREQ_CLK2KHZ) } } # [doc = "Field `PMUOPAMP_CHOPCLKMODE` reader - CHOPCLKMODE selects the GPAMP chopping mode."]
pub type PMUOPAMP_CHOPCLKMODE_R = crate :: FieldReader < PMUOPAMP_CHOPCLKMODE_A > ; # [doc = "CHOPCLKMODE selects the GPAMP chopping mode.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum PMUOPAMP_CHOPCLKMODE_A { # [doc = "0: CHOPDISABLED"]
PMUOPAMP_CHOPCLKMODE_CHOPDISABLED = 0 , # [doc = "1: REGCHOP"]
PMUOPAMP_CHOPCLKMODE_REGCHOP = 1 , # [doc = "2: ADCASSIST"]
PMUOPAMP_CHOPCLKMODE_ADCASSIST = 2 , } impl From < PMUOPAMP_CHOPCLKMODE_A > for u8 { # [inline (always)]
fn from (variant : PMUOPAMP_CHOPCLKMODE_A) -> Self { variant as _ } } impl crate :: FieldSpec for PMUOPAMP_CHOPCLKMODE_A { type Ux = u8 ; } impl PMUOPAMP_CHOPCLKMODE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < PMUOPAMP_CHOPCLKMODE_A > { match self . bits { 0 => Some (PMUOPAMP_CHOPCLKMODE_A :: PMUOPAMP_CHOPCLKMODE_CHOPDISABLED) , 1 => Some (PMUOPAMP_CHOPCLKMODE_A :: PMUOPAMP_CHOPCLKMODE_REGCHOP) , 2 => Some (PMUOPAMP_CHOPCLKMODE_A :: PMUOPAMP_CHOPCLKMODE_ADCASSIST) , _ => None , } } # [doc = "CHOPDISABLED"]
# [inline (always)]
pub fn is_pmuopamp_chopclkmode_chopdisabled (& self) -> bool { * self == PMUOPAMP_CHOPCLKMODE_A :: PMUOPAMP_CHOPCLKMODE_CHOPDISABLED } # [doc = "REGCHOP"]
# [inline (always)]
pub fn is_pmuopamp_chopclkmode_regchop (& self) -> bool { * self == PMUOPAMP_CHOPCLKMODE_A :: PMUOPAMP_CHOPCLKMODE_REGCHOP } # [doc = "ADCASSIST"]
# [inline (always)]
pub fn is_pmuopamp_chopclkmode_adcassist (& self) -> bool { * self == PMUOPAMP_CHOPCLKMODE_A :: PMUOPAMP_CHOPCLKMODE_ADCASSIST } } # [doc = "Field `PMUOPAMP_CHOPCLKMODE` writer - CHOPCLKMODE selects the GPAMP chopping mode."]
pub type PMUOPAMP_CHOPCLKMODE_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , PMUOPAMP_CHOPCLKMODE_A > ; impl < 'a , REG , const O : u8 > PMUOPAMP_CHOPCLKMODE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "CHOPDISABLED"]
# [inline (always)]
pub fn pmuopamp_chopclkmode_chopdisabled (self) -> & 'a mut crate :: W < REG > { self . variant (PMUOPAMP_CHOPCLKMODE_A :: PMUOPAMP_CHOPCLKMODE_CHOPDISABLED) } # [doc = "REGCHOP"]
# [inline (always)]
pub fn pmuopamp_chopclkmode_regchop (self) -> & 'a mut crate :: W < REG > { self . variant (PMUOPAMP_CHOPCLKMODE_A :: PMUOPAMP_CHOPCLKMODE_REGCHOP) } # [doc = "ADCASSIST"]
# [inline (always)]
pub fn pmuopamp_chopclkmode_adcassist (self) -> & 'a mut crate :: W < REG > { self . variant (PMUOPAMP_CHOPCLKMODE_A :: PMUOPAMP_CHOPCLKMODE_ADCASSIST) } } impl R { # [doc = "Bit 0 - Set ENABLE to turn on the GPAMP."]
# [inline (always)]
pub fn pmuopamp_enable (& self) -> PMUOPAMP_ENABLE_R { PMUOPAMP_ENABLE_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Set PCHENABLE to enable the positive channel input."]
# [inline (always)]
pub fn pmuopamp_pchenable (& self) -> PMUOPAMP_PCHENABLE_R { PMUOPAMP_PCHENABLE_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bits 2:3 - NSEL selects the GPAMP negative channel input."]
# [inline (always)]
pub fn pmuopamp_nsel (& self) -> PMUOPAMP_NSEL_R { PMUOPAMP_NSEL_R :: new (((self . bits >> 2) & 3) as u8) } # [doc = "Bits 4:5 - RRI selects the rail-to-rail input mode."]
# [inline (always)]
pub fn pmuopamp_rri (& self) -> PMUOPAMP_RRI_R { PMUOPAMP_RRI_R :: new (((self . bits >> 4) & 3) as u8) } # [doc = "Bit 6 - Set OUTENABLE to connect the GPAMP output signal to the GPAMP_OUT pin"]
# [inline (always)]
pub fn pmuopamp_outenable (& self) -> PMUOPAMP_OUTENABLE_R { PMUOPAMP_OUTENABLE_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bits 8:9 - CHOPCLKFREQ selects the GPAMP chopping clock frequency"]
# [inline (always)]
pub fn pmuopamp_chopclkfreq (& self) -> PMUOPAMP_CHOPCLKFREQ_R { PMUOPAMP_CHOPCLKFREQ_R :: new (((self . bits >> 8) & 3) as u8) } # [doc = "Bits 10:11 - CHOPCLKMODE selects the GPAMP chopping mode."]
# [inline (always)]
pub fn pmuopamp_chopclkmode (& self) -> PMUOPAMP_CHOPCLKMODE_R { PMUOPAMP_CHOPCLKMODE_R :: new (((self . bits >> 10) & 3) as u8) } } impl W { # [doc = "Bit 0 - Set ENABLE to turn on the GPAMP."]
# [inline (always)]
# [must_use]
pub fn pmuopamp_enable (& mut self) -> PMUOPAMP_ENABLE_W < PMUOPAMP_SPEC , 0 > { PMUOPAMP_ENABLE_W :: new (self) } # [doc = "Bit 1 - Set PCHENABLE to enable the positive channel input."]
# [inline (always)]
# [must_use]
pub fn pmuopamp_pchenable (& mut self) -> PMUOPAMP_PCHENABLE_W < PMUOPAMP_SPEC , 1 > { PMUOPAMP_PCHENABLE_W :: new (self) } # [doc = "Bits 2:3 - NSEL selects the GPAMP negative channel input."]
# [inline (always)]
# [must_use]
pub fn pmuopamp_nsel (& mut self) -> PMUOPAMP_NSEL_W < PMUOPAMP_SPEC , 2 > { PMUOPAMP_NSEL_W :: new (self) } # [doc = "Bits 4:5 - RRI selects the rail-to-rail input mode."]
# [inline (always)]
# [must_use]
pub fn pmuopamp_rri (& mut self) -> PMUOPAMP_RRI_W < PMUOPAMP_SPEC , 4 > { PMUOPAMP_RRI_W :: new (self) } # [doc = "Bit 6 - Set OUTENABLE to connect the GPAMP output signal to the GPAMP_OUT pin"]
# [inline (always)]
# [must_use]
pub fn pmuopamp_outenable (& mut self) -> PMUOPAMP_OUTENABLE_W < PMUOPAMP_SPEC , 6 > { PMUOPAMP_OUTENABLE_W :: new (self) } # [doc = "Bits 8:9 - CHOPCLKFREQ selects the GPAMP chopping clock frequency"]
# [inline (always)]
# [must_use]
pub fn pmuopamp_chopclkfreq (& mut self) -> PMUOPAMP_CHOPCLKFREQ_W < PMUOPAMP_SPEC , 8 > { PMUOPAMP_CHOPCLKFREQ_W :: new (self) } # [doc = "Bits 10:11 - CHOPCLKMODE selects the GPAMP chopping mode."]
# [inline (always)]
# [must_use]
pub fn pmuopamp_chopclkmode (& mut self) -> PMUOPAMP_CHOPCLKMODE_W < PMUOPAMP_SPEC , 10 > { PMUOPAMP_CHOPCLKMODE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "GPAMP control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pmuopamp::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pmuopamp::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PMUOPAMP_SPEC ; impl crate :: RegisterSpec for PMUOPAMP_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pmuopamp::R`](R) reader structure"]
impl crate :: Readable for PMUOPAMP_SPEC { } # [doc = "`write(|w| ..)` method takes [`pmuopamp::W`](W) writer structure"]
impl crate :: Writable for PMUOPAMP_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PMUOPAMP to value 0"]
impl crate :: Resettable for PMUOPAMP_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "SHUTDNSTORE0 (rw) register accessor: Shutdown storage memory (byte 0)\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`shutdnstore0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`shutdnstore0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@shutdnstore0`]
module"]
pub type SHUTDNSTORE0 = crate :: Reg < shutdnstore0 :: SHUTDNSTORE0_SPEC > ; # [doc = "Shutdown storage memory (byte 0)"]
pub mod shutdnstore0 { # [doc = "Register `SHUTDNSTORE0` reader"]
pub type R = crate :: R < SHUTDNSTORE0_SPEC > ; # [doc = "Register `SHUTDNSTORE0` writer"]
pub type W = crate :: W < SHUTDNSTORE0_SPEC > ; # [doc = "Field `SHUTDNSTORE0_DATA` reader - Shutdown storage byte 0"]
pub type SHUTDNSTORE0_DATA_R = crate :: FieldReader ; # [doc = "Field `SHUTDNSTORE0_DATA` writer - Shutdown storage byte 0"]
pub type SHUTDNSTORE0_DATA_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O > ; impl R { # [doc = "Bits 0:7 - Shutdown storage byte 0"]
# [inline (always)]
pub fn shutdnstore0_data (& self) -> SHUTDNSTORE0_DATA_R { SHUTDNSTORE0_DATA_R :: new ((self . bits & 0xff) as u8) } } impl W { # [doc = "Bits 0:7 - Shutdown storage byte 0"]
# [inline (always)]
# [must_use]
pub fn shutdnstore0_data (& mut self) -> SHUTDNSTORE0_DATA_W < SHUTDNSTORE0_SPEC , 0 > { SHUTDNSTORE0_DATA_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Shutdown storage memory (byte 0)\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`shutdnstore0::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`shutdnstore0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SHUTDNSTORE0_SPEC ; impl crate :: RegisterSpec for SHUTDNSTORE0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`shutdnstore0::R`](R) reader structure"]
impl crate :: Readable for SHUTDNSTORE0_SPEC { } # [doc = "`write(|w| ..)` method takes [`shutdnstore0::W`](W) writer structure"]
impl crate :: Writable for SHUTDNSTORE0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets SHUTDNSTORE0 to value 0"]
impl crate :: Resettable for SHUTDNSTORE0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "SHUTDNSTORE1 (rw) register accessor: Shutdown storage memory (byte 1)\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`shutdnstore1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`shutdnstore1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@shutdnstore1`]
module"]
pub type SHUTDNSTORE1 = crate :: Reg < shutdnstore1 :: SHUTDNSTORE1_SPEC > ; # [doc = "Shutdown storage memory (byte 1)"]
pub mod shutdnstore1 { # [doc = "Register `SHUTDNSTORE1` reader"]
pub type R = crate :: R < SHUTDNSTORE1_SPEC > ; # [doc = "Register `SHUTDNSTORE1` writer"]
pub type W = crate :: W < SHUTDNSTORE1_SPEC > ; # [doc = "Field `SHUTDNSTORE1_DATA` reader - Shutdown storage byte 1"]
pub type SHUTDNSTORE1_DATA_R = crate :: FieldReader ; # [doc = "Field `SHUTDNSTORE1_DATA` writer - Shutdown storage byte 1"]
pub type SHUTDNSTORE1_DATA_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O > ; impl R { # [doc = "Bits 0:7 - Shutdown storage byte 1"]
# [inline (always)]
pub fn shutdnstore1_data (& self) -> SHUTDNSTORE1_DATA_R { SHUTDNSTORE1_DATA_R :: new ((self . bits & 0xff) as u8) } } impl W { # [doc = "Bits 0:7 - Shutdown storage byte 1"]
# [inline (always)]
# [must_use]
pub fn shutdnstore1_data (& mut self) -> SHUTDNSTORE1_DATA_W < SHUTDNSTORE1_SPEC , 0 > { SHUTDNSTORE1_DATA_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Shutdown storage memory (byte 1)\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`shutdnstore1::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`shutdnstore1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SHUTDNSTORE1_SPEC ; impl crate :: RegisterSpec for SHUTDNSTORE1_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`shutdnstore1::R`](R) reader structure"]
impl crate :: Readable for SHUTDNSTORE1_SPEC { } # [doc = "`write(|w| ..)` method takes [`shutdnstore1::W`](W) writer structure"]
impl crate :: Writable for SHUTDNSTORE1_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets SHUTDNSTORE1 to value 0"]
impl crate :: Resettable for SHUTDNSTORE1_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "SHUTDNSTORE2 (rw) register accessor: Shutdown storage memory (byte 2)\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`shutdnstore2::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`shutdnstore2::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@shutdnstore2`]
module"]
pub type SHUTDNSTORE2 = crate :: Reg < shutdnstore2 :: SHUTDNSTORE2_SPEC > ; # [doc = "Shutdown storage memory (byte 2)"]
pub mod shutdnstore2 { # [doc = "Register `SHUTDNSTORE2` reader"]
pub type R = crate :: R < SHUTDNSTORE2_SPEC > ; # [doc = "Register `SHUTDNSTORE2` writer"]
pub type W = crate :: W < SHUTDNSTORE2_SPEC > ; # [doc = "Field `SHUTDNSTORE2_DATA` reader - Shutdown storage byte 2"]
pub type SHUTDNSTORE2_DATA_R = crate :: FieldReader ; # [doc = "Field `SHUTDNSTORE2_DATA` writer - Shutdown storage byte 2"]
pub type SHUTDNSTORE2_DATA_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O > ; impl R { # [doc = "Bits 0:7 - Shutdown storage byte 2"]
# [inline (always)]
pub fn shutdnstore2_data (& self) -> SHUTDNSTORE2_DATA_R { SHUTDNSTORE2_DATA_R :: new ((self . bits & 0xff) as u8) } } impl W { # [doc = "Bits 0:7 - Shutdown storage byte 2"]
# [inline (always)]
# [must_use]
pub fn shutdnstore2_data (& mut self) -> SHUTDNSTORE2_DATA_W < SHUTDNSTORE2_SPEC , 0 > { SHUTDNSTORE2_DATA_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Shutdown storage memory (byte 2)\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`shutdnstore2::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`shutdnstore2::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SHUTDNSTORE2_SPEC ; impl crate :: RegisterSpec for SHUTDNSTORE2_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`shutdnstore2::R`](R) reader structure"]
impl crate :: Readable for SHUTDNSTORE2_SPEC { } # [doc = "`write(|w| ..)` method takes [`shutdnstore2::W`](W) writer structure"]
impl crate :: Writable for SHUTDNSTORE2_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets SHUTDNSTORE2 to value 0"]
impl crate :: Resettable for SHUTDNSTORE2_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "SHUTDNSTORE3 (rw) register accessor: Shutdown storage memory (byte 3)\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`shutdnstore3::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`shutdnstore3::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@shutdnstore3`]
module"]
pub type SHUTDNSTORE3 = crate :: Reg < shutdnstore3 :: SHUTDNSTORE3_SPEC > ; # [doc = "Shutdown storage memory (byte 3)"]
pub mod shutdnstore3 { # [doc = "Register `SHUTDNSTORE3` reader"]
pub type R = crate :: R < SHUTDNSTORE3_SPEC > ; # [doc = "Register `SHUTDNSTORE3` writer"]
pub type W = crate :: W < SHUTDNSTORE3_SPEC > ; # [doc = "Field `SHUTDNSTORE3_DATA` reader - Shutdown storage byte 3"]
pub type SHUTDNSTORE3_DATA_R = crate :: FieldReader ; # [doc = "Field `SHUTDNSTORE3_DATA` writer - Shutdown storage byte 3"]
pub type SHUTDNSTORE3_DATA_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O > ; impl R { # [doc = "Bits 0:7 - Shutdown storage byte 3"]
# [inline (always)]
pub fn shutdnstore3_data (& self) -> SHUTDNSTORE3_DATA_R { SHUTDNSTORE3_DATA_R :: new ((self . bits & 0xff) as u8) } } impl W { # [doc = "Bits 0:7 - Shutdown storage byte 3"]
# [inline (always)]
# [must_use]
pub fn shutdnstore3_data (& mut self) -> SHUTDNSTORE3_DATA_W < SHUTDNSTORE3_SPEC , 0 > { SHUTDNSTORE3_DATA_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Shutdown storage memory (byte 3)\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`shutdnstore3::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`shutdnstore3::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SHUTDNSTORE3_SPEC ; impl crate :: RegisterSpec for SHUTDNSTORE3_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`shutdnstore3::R`](R) reader structure"]
impl crate :: Readable for SHUTDNSTORE3_SPEC { } # [doc = "`write(|w| ..)` method takes [`shutdnstore3::W`](W) writer structure"]
impl crate :: Writable for SHUTDNSTORE3_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets SHUTDNSTORE3 to value 0"]
impl crate :: Resettable for SHUTDNSTORE3_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } } # [doc = "PERIPHERALREGION"]
pub struct OPA1 { _marker : PhantomData < * const () > } unsafe impl Send for OPA1 { } impl OPA1 { # [doc = r"Pointer to the register block"]
pub const PTR : * const opa1 :: RegisterBlock = 0x4002_2000 as * const _ ; # [doc = r"Return the pointer to the register block"]
# [inline (always)]
pub const fn ptr () -> * const opa1 :: RegisterBlock { Self :: PTR } # [doc = r" Steal an instance of this peripheral"]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Ensure that the new instance of the peripheral cannot be used in a way"]
# [doc = r" that may race with any existing instances, for example by only"]
# [doc = r" accessing read-only or write-only registers, or by consuming the"]
# [doc = r" original peripheral and using critical sections to coordinate"]
# [doc = r" access between multiple new instances."]
# [doc = r""]
# [doc = r" Additionally, other software such as HALs may rely on only one"]
# [doc = r" peripheral instance existing to ensure memory safety; ensure"]
# [doc = r" no stolen instances are passed to such software."]
pub unsafe fn steal () -> Self { Self { _marker : PhantomData } } } impl Deref for OPA1 { type Target = opa1 :: RegisterBlock ; # [inline (always)]
fn deref (& self) -> & Self :: Target { unsafe { & * Self :: PTR } } } impl core :: fmt :: Debug for OPA1 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("OPA1") . finish () } } # [doc = "PERIPHERALREGION"]
pub mod opa1 { # [doc = r"Register block"]
# [repr (C)]
pub struct RegisterBlock { _reserved0 : [u8 ; 0x0800]
, # [doc = "0x800 - Power enable"]
pub pwren : PWREN , # [doc = "0x804 - Reset Control"]
pub rstctl : RSTCTL , _reserved2 : [u8 ; 0x0c]
, # [doc = "0x814 - Status Register"]
pub gprcm_stat : GPRCM_STAT , _reserved3 : [u8 ; 0x07f8]
, # [doc = "0x1010 - Clock Override"]
pub clkovr : CLKOVR , _reserved4 : [u8 ; 0x08]
, # [doc = "0x101c - Power Control"]
pub pwrctl : PWRCTL , _reserved5 : [u8 ; 0xe0]
, # [doc = "0x1100 - Control Register"]
pub ctl : CTL , # [doc = "0x1104 - Configuration Base Register"]
pub cfgbase : CFGBASE , # [doc = "0x1108 - Configuration Register"]
pub cfg : CFG , _reserved8 : [u8 ; 0x0c]
, # [doc = "0x1118 - Status Register"]
pub stat : STAT , } # [doc = "PWREN (rw) register accessor: Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pwren`]
module"]
pub type PWREN = crate :: Reg < pwren :: PWREN_SPEC > ; # [doc = "Power enable"]
pub mod pwren { # [doc = "Register `PWREN` reader"]
pub type R = crate :: R < PWREN_SPEC > ; # [doc = "Register `PWREN` writer"]
pub type W = crate :: W < PWREN_SPEC > ; # [doc = "Field `PWREN_ENABLE` reader - Enable the power"]
pub type PWREN_ENABLE_R = crate :: BitReader < PWREN_ENABLE_A > ; # [doc = "Enable the power\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PWREN_ENABLE_A { # [doc = "0: DISABLE"]
PWREN_ENABLE_DISABLE = 0 , # [doc = "1: ENABLE"]
PWREN_ENABLE_ENABLE = 1 , } impl From < PWREN_ENABLE_A > for bool { # [inline (always)]
fn from (variant : PWREN_ENABLE_A) -> Self { variant as u8 != 0 } } impl PWREN_ENABLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PWREN_ENABLE_A { match self . bits { false => PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE , true => PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_pwren_enable_disable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_pwren_enable_enable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE } } # [doc = "Field `PWREN_ENABLE` writer - Enable the power"]
pub type PWREN_ENABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PWREN_ENABLE_A > ; impl < 'a , REG , const O : u8 > PWREN_ENABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn pwren_enable_disable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn pwren_enable_enable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE) } } # [doc = "KEY to allow Power State Change\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum PWREN_KEY_AW { # [doc = "38: _TO_UNLOCK_W_"]
PWREN_KEY_UNLOCK_W = 38 , } impl From < PWREN_KEY_AW > for u8 { # [inline (always)]
fn from (variant : PWREN_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for PWREN_KEY_AW { type Ux = u8 ; } # [doc = "Field `PWREN_KEY` writer - KEY to allow Power State Change"]
pub type PWREN_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , PWREN_KEY_AW > ; impl < 'a , REG , const O : u8 > PWREN_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn pwren_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_KEY_AW :: PWREN_KEY_UNLOCK_W) } } impl R { # [doc = "Bit 0 - Enable the power"]
# [inline (always)]
pub fn pwren_enable (& self) -> PWREN_ENABLE_R { PWREN_ENABLE_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - Enable the power"]
# [inline (always)]
# [must_use]
pub fn pwren_enable (& mut self) -> PWREN_ENABLE_W < PWREN_SPEC , 0 > { PWREN_ENABLE_W :: new (self) } # [doc = "Bits 24:31 - KEY to allow Power State Change"]
# [inline (always)]
# [must_use]
pub fn pwren_key (& mut self) -> PWREN_KEY_W < PWREN_SPEC , 24 > { PWREN_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PWREN_SPEC ; impl crate :: RegisterSpec for PWREN_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pwren::R`](R) reader structure"]
impl crate :: Readable for PWREN_SPEC { } # [doc = "`write(|w| ..)` method takes [`pwren::W`](W) writer structure"]
impl crate :: Writable for PWREN_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PWREN to value 0"]
impl crate :: Resettable for PWREN_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RSTCTL (w) register accessor: Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rstctl`]
module"]
pub type RSTCTL = crate :: Reg < rstctl :: RSTCTL_SPEC > ; # [doc = "Reset Control"]
pub mod rstctl { # [doc = "Register `RSTCTL` writer"]
pub type W = crate :: W < RSTCTL_SPEC > ; # [doc = "Assert reset to the peripheral\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETASSERT_AW { # [doc = "0: NOP"]
RSTCTL_RESETASSERT_NOP = 0 , # [doc = "1: ASSERT"]
RSTCTL_RESETASSERT_ASSERT = 1 , } impl From < RSTCTL_RESETASSERT_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETASSERT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETASSERT` writer - Assert reset to the peripheral"]
pub type RSTCTL_RESETASSERT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETASSERT_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETASSERT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetassert_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_NOP) } # [doc = "ASSERT"]
# [inline (always)]
pub fn rstctl_resetassert_assert (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_ASSERT) } } # [doc = "Clear the RESETSTKY bit in the STAT register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETSTKYCLR_AW { # [doc = "0: NOP"]
RSTCTL_RESETSTKYCLR_NOP = 0 , # [doc = "1: CLR"]
RSTCTL_RESETSTKYCLR_CLR = 1 , } impl From < RSTCTL_RESETSTKYCLR_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETSTKYCLR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETSTKYCLR` writer - Clear the RESETSTKY bit in the STAT register"]
pub type RSTCTL_RESETSTKYCLR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETSTKYCLR_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETSTKYCLR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetstkyclr_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_NOP) } # [doc = "CLR"]
# [inline (always)]
pub fn rstctl_resetstkyclr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_CLR) } } # [doc = "Unlock key\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum RSTCTL_KEY_AW { # [doc = "177: _TO_UNLOCK_W_"]
RSTCTL_KEY_UNLOCK_W = 177 , } impl From < RSTCTL_KEY_AW > for u8 { # [inline (always)]
fn from (variant : RSTCTL_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for RSTCTL_KEY_AW { type Ux = u8 ; } # [doc = "Field `RSTCTL_KEY` writer - Unlock key"]
pub type RSTCTL_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , RSTCTL_KEY_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn rstctl_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_KEY_AW :: RSTCTL_KEY_UNLOCK_W) } } impl W { # [doc = "Bit 0 - Assert reset to the peripheral"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetassert (& mut self) -> RSTCTL_RESETASSERT_W < RSTCTL_SPEC , 0 > { RSTCTL_RESETASSERT_W :: new (self) } # [doc = "Bit 1 - Clear the RESETSTKY bit in the STAT register"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetstkyclr (& mut self) -> RSTCTL_RESETSTKYCLR_W < RSTCTL_SPEC , 1 > { RSTCTL_RESETSTKYCLR_W :: new (self) } # [doc = "Bits 24:31 - Unlock key"]
# [inline (always)]
# [must_use]
pub fn rstctl_key (& mut self) -> RSTCTL_KEY_W < RSTCTL_SPEC , 24 > { RSTCTL_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RSTCTL_SPEC ; impl crate :: RegisterSpec for RSTCTL_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`rstctl::W`](W) writer structure"]
impl crate :: Writable for RSTCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets RSTCTL to value 0"]
impl crate :: Resettable for RSTCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "GPRCM_STAT (r) register accessor: Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gprcm_stat::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gprcm_stat`]
module"]
pub type GPRCM_STAT = crate :: Reg < gprcm_stat :: GPRCM_STAT_SPEC > ; # [doc = "Status Register"]
pub mod gprcm_stat { # [doc = "Register `GPRCM_STAT` reader"]
pub type R = crate :: R < GPRCM_STAT_SPEC > ; # [doc = "Field `GPRCM_STAT_RESETSTKY` reader - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
pub type GPRCM_STAT_RESETSTKY_R = crate :: BitReader < GPRCM_STAT_RESETSTKY_A > ; # [doc = "This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum GPRCM_STAT_RESETSTKY_A { # [doc = "0: NORES"]
GPRCM_STAT_RESETSTKY_NORES = 0 , # [doc = "1: RESET"]
GPRCM_STAT_RESETSTKY_RESET = 1 , } impl From < GPRCM_STAT_RESETSTKY_A > for bool { # [inline (always)]
fn from (variant : GPRCM_STAT_RESETSTKY_A) -> Self { variant as u8 != 0 } } impl GPRCM_STAT_RESETSTKY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> GPRCM_STAT_RESETSTKY_A { match self . bits { false => GPRCM_STAT_RESETSTKY_A :: GPRCM_STAT_RESETSTKY_NORES , true => GPRCM_STAT_RESETSTKY_A :: GPRCM_STAT_RESETSTKY_RESET , } } # [doc = "NORES"]
# [inline (always)]
pub fn is_gprcm_stat_resetstky_nores (& self) -> bool { * self == GPRCM_STAT_RESETSTKY_A :: GPRCM_STAT_RESETSTKY_NORES } # [doc = "RESET"]
# [inline (always)]
pub fn is_gprcm_stat_resetstky_reset (& self) -> bool { * self == GPRCM_STAT_RESETSTKY_A :: GPRCM_STAT_RESETSTKY_RESET } } impl R { # [doc = "Bit 16 - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
# [inline (always)]
pub fn gprcm_stat_resetstky (& self) -> GPRCM_STAT_RESETSTKY_R { GPRCM_STAT_RESETSTKY_R :: new (((self . bits >> 16) & 1) != 0) } } # [doc = "Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gprcm_stat::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct GPRCM_STAT_SPEC ; impl crate :: RegisterSpec for GPRCM_STAT_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`gprcm_stat::R`](R) reader structure"]
impl crate :: Readable for GPRCM_STAT_SPEC { } # [doc = "`reset()` method sets GPRCM_STAT to value 0"]
impl crate :: Resettable for GPRCM_STAT_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CLKOVR (rw) register accessor: Clock Override\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkovr::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkovr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clkovr`]
module"]
pub type CLKOVR = crate :: Reg < clkovr :: CLKOVR_SPEC > ; # [doc = "Clock Override"]
pub mod clkovr { # [doc = "Register `CLKOVR` reader"]
pub type R = crate :: R < CLKOVR_SPEC > ; # [doc = "Register `CLKOVR` writer"]
pub type W = crate :: W < CLKOVR_SPEC > ; # [doc = "Field `CLKOVR_OVERRIDE` reader - Unlocks the functionality of \\[RUN_STOP\\]
to override the automatic peripheral clock request"]
pub type CLKOVR_OVERRIDE_R = crate :: BitReader < CLKOVR_OVERRIDE_A > ; # [doc = "Unlocks the functionality of \\[RUN_STOP\\]
to override the automatic peripheral clock request\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKOVR_OVERRIDE_A { # [doc = "0: DISABLED"]
CLKOVR_OVERRIDE_DISABLED = 0 , # [doc = "1: ENABLED"]
CLKOVR_OVERRIDE_ENABLED = 1 , } impl From < CLKOVR_OVERRIDE_A > for bool { # [inline (always)]
fn from (variant : CLKOVR_OVERRIDE_A) -> Self { variant as u8 != 0 } } impl CLKOVR_OVERRIDE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKOVR_OVERRIDE_A { match self . bits { false => CLKOVR_OVERRIDE_A :: CLKOVR_OVERRIDE_DISABLED , true => CLKOVR_OVERRIDE_A :: CLKOVR_OVERRIDE_ENABLED , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_clkovr_override_disabled (& self) -> bool { * self == CLKOVR_OVERRIDE_A :: CLKOVR_OVERRIDE_DISABLED } # [doc = "ENABLED"]
# [inline (always)]
pub fn is_clkovr_override_enabled (& self) -> bool { * self == CLKOVR_OVERRIDE_A :: CLKOVR_OVERRIDE_ENABLED } } # [doc = "Field `CLKOVR_OVERRIDE` writer - Unlocks the functionality of \\[RUN_STOP\\]
to override the automatic peripheral clock request"]
pub type CLKOVR_OVERRIDE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKOVR_OVERRIDE_A > ; impl < 'a , REG , const O : u8 > CLKOVR_OVERRIDE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn clkovr_override_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CLKOVR_OVERRIDE_A :: CLKOVR_OVERRIDE_DISABLED) } # [doc = "ENABLED"]
# [inline (always)]
pub fn clkovr_override_enabled (self) -> & 'a mut crate :: W < REG > { self . variant (CLKOVR_OVERRIDE_A :: CLKOVR_OVERRIDE_ENABLED) } } # [doc = "Field `CLKOVR_RUN_STOP` reader - If \\[OVERRIDE\\]
is enabled, this register is used to manually control the peripheral's clock request to the system"]
pub type CLKOVR_RUN_STOP_R = crate :: BitReader < CLKOVR_RUN_STOP_A > ; # [doc = "If \\[OVERRIDE\\]
is enabled, this register is used to manually control the peripheral's clock request to the system\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKOVR_RUN_STOP_A { # [doc = "0: RUN"]
CLKOVR_RUN_STOP_RUN = 0 , # [doc = "1: STOP"]
CLKOVR_RUN_STOP_STOP = 1 , } impl From < CLKOVR_RUN_STOP_A > for bool { # [inline (always)]
fn from (variant : CLKOVR_RUN_STOP_A) -> Self { variant as u8 != 0 } } impl CLKOVR_RUN_STOP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKOVR_RUN_STOP_A { match self . bits { false => CLKOVR_RUN_STOP_A :: CLKOVR_RUN_STOP_RUN , true => CLKOVR_RUN_STOP_A :: CLKOVR_RUN_STOP_STOP , } } # [doc = "RUN"]
# [inline (always)]
pub fn is_clkovr_run_stop_run (& self) -> bool { * self == CLKOVR_RUN_STOP_A :: CLKOVR_RUN_STOP_RUN } # [doc = "STOP"]
# [inline (always)]
pub fn is_clkovr_run_stop_stop (& self) -> bool { * self == CLKOVR_RUN_STOP_A :: CLKOVR_RUN_STOP_STOP } } # [doc = "Field `CLKOVR_RUN_STOP` writer - If \\[OVERRIDE\\]
is enabled, this register is used to manually control the peripheral's clock request to the system"]
pub type CLKOVR_RUN_STOP_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKOVR_RUN_STOP_A > ; impl < 'a , REG , const O : u8 > CLKOVR_RUN_STOP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "RUN"]
# [inline (always)]
pub fn clkovr_run_stop_run (self) -> & 'a mut crate :: W < REG > { self . variant (CLKOVR_RUN_STOP_A :: CLKOVR_RUN_STOP_RUN) } # [doc = "STOP"]
# [inline (always)]
pub fn clkovr_run_stop_stop (self) -> & 'a mut crate :: W < REG > { self . variant (CLKOVR_RUN_STOP_A :: CLKOVR_RUN_STOP_STOP) } } impl R { # [doc = "Bit 0 - Unlocks the functionality of \\[RUN_STOP\\]
to override the automatic peripheral clock request"]
# [inline (always)]
pub fn clkovr_override (& self) -> CLKOVR_OVERRIDE_R { CLKOVR_OVERRIDE_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - If \\[OVERRIDE\\]
is enabled, this register is used to manually control the peripheral's clock request to the system"]
# [inline (always)]
pub fn clkovr_run_stop (& self) -> CLKOVR_RUN_STOP_R { CLKOVR_RUN_STOP_R :: new (((self . bits >> 1) & 1) != 0) } } impl W { # [doc = "Bit 0 - Unlocks the functionality of \\[RUN_STOP\\]
to override the automatic peripheral clock request"]
# [inline (always)]
# [must_use]
pub fn clkovr_override (& mut self) -> CLKOVR_OVERRIDE_W < CLKOVR_SPEC , 0 > { CLKOVR_OVERRIDE_W :: new (self) } # [doc = "Bit 1 - If \\[OVERRIDE\\]
is enabled, this register is used to manually control the peripheral's clock request to the system"]
# [inline (always)]
# [must_use]
pub fn clkovr_run_stop (& mut self) -> CLKOVR_RUN_STOP_W < CLKOVR_SPEC , 1 > { CLKOVR_RUN_STOP_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Clock Override\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkovr::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkovr::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CLKOVR_SPEC ; impl crate :: RegisterSpec for CLKOVR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`clkovr::R`](R) reader structure"]
impl crate :: Readable for CLKOVR_SPEC { } # [doc = "`write(|w| ..)` method takes [`clkovr::W`](W) writer structure"]
impl crate :: Writable for CLKOVR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CLKOVR to value 0"]
impl crate :: Resettable for CLKOVR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "PWRCTL (rw) register accessor: Power Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwrctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwrctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pwrctl`]
module"]
pub type PWRCTL = crate :: Reg < pwrctl :: PWRCTL_SPEC > ; # [doc = "Power Control"]
pub mod pwrctl { # [doc = "Register `PWRCTL` reader"]
pub type R = crate :: R < PWRCTL_SPEC > ; # [doc = "Register `PWRCTL` writer"]
pub type W = crate :: W < PWRCTL_SPEC > ; # [doc = "Field `PWRCTL_AUTO_OFF` reader - When set the peripheral will remove its local IP request for enable so that it can be disabled if no other entities in the system are requesting it to be enabled."]
pub type PWRCTL_AUTO_OFF_R = crate :: BitReader < PWRCTL_AUTO_OFF_A > ; # [doc = "When set the peripheral will remove its local IP request for enable so that it can be disabled if no other entities in the system are requesting it to be enabled.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PWRCTL_AUTO_OFF_A { # [doc = "0: DISABLE"]
PWRCTL_AUTO_OFF_DISABLE = 0 , # [doc = "1: ENABLE"]
PWRCTL_AUTO_OFF_ENABLE = 1 , } impl From < PWRCTL_AUTO_OFF_A > for bool { # [inline (always)]
fn from (variant : PWRCTL_AUTO_OFF_A) -> Self { variant as u8 != 0 } } impl PWRCTL_AUTO_OFF_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PWRCTL_AUTO_OFF_A { match self . bits { false => PWRCTL_AUTO_OFF_A :: PWRCTL_AUTO_OFF_DISABLE , true => PWRCTL_AUTO_OFF_A :: PWRCTL_AUTO_OFF_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_pwrctl_auto_off_disable (& self) -> bool { * self == PWRCTL_AUTO_OFF_A :: PWRCTL_AUTO_OFF_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_pwrctl_auto_off_enable (& self) -> bool { * self == PWRCTL_AUTO_OFF_A :: PWRCTL_AUTO_OFF_ENABLE } } # [doc = "Field `PWRCTL_AUTO_OFF` writer - When set the peripheral will remove its local IP request for enable so that it can be disabled if no other entities in the system are requesting it to be enabled."]
pub type PWRCTL_AUTO_OFF_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PWRCTL_AUTO_OFF_A > ; impl < 'a , REG , const O : u8 > PWRCTL_AUTO_OFF_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn pwrctl_auto_off_disable (self) -> & 'a mut crate :: W < REG > { self . variant (PWRCTL_AUTO_OFF_A :: PWRCTL_AUTO_OFF_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn pwrctl_auto_off_enable (self) -> & 'a mut crate :: W < REG > { self . variant (PWRCTL_AUTO_OFF_A :: PWRCTL_AUTO_OFF_ENABLE) } } impl R { # [doc = "Bit 0 - When set the peripheral will remove its local IP request for enable so that it can be disabled if no other entities in the system are requesting it to be enabled."]
# [inline (always)]
pub fn pwrctl_auto_off (& self) -> PWRCTL_AUTO_OFF_R { PWRCTL_AUTO_OFF_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - When set the peripheral will remove its local IP request for enable so that it can be disabled if no other entities in the system are requesting it to be enabled."]
# [inline (always)]
# [must_use]
pub fn pwrctl_auto_off (& mut self) -> PWRCTL_AUTO_OFF_W < PWRCTL_SPEC , 0 > { PWRCTL_AUTO_OFF_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Power Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwrctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwrctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PWRCTL_SPEC ; impl crate :: RegisterSpec for PWRCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pwrctl::R`](R) reader structure"]
impl crate :: Readable for PWRCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`pwrctl::W`](W) writer structure"]
impl crate :: Writable for PWRCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PWRCTL to value 0"]
impl crate :: Resettable for PWRCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTL (rw) register accessor: Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctl`]
module"]
pub type CTL = crate :: Reg < ctl :: CTL_SPEC > ; # [doc = "Control Register"]
pub mod ctl { # [doc = "Register `CTL` reader"]
pub type R = crate :: R < CTL_SPEC > ; # [doc = "Register `CTL` writer"]
pub type W = crate :: W < CTL_SPEC > ; # [doc = "Field `CTL_ENABLE` reader - OAxn Enable."]
pub type CTL_ENABLE_R = crate :: BitReader < CTL_ENABLE_A > ; # [doc = "OAxn Enable.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL_ENABLE_A { # [doc = "0: OFF"]
CTL_ENABLE_OFF = 0 , # [doc = "1: ON"]
CTL_ENABLE_ON = 1 , } impl From < CTL_ENABLE_A > for bool { # [inline (always)]
fn from (variant : CTL_ENABLE_A) -> Self { variant as u8 != 0 } } impl CTL_ENABLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL_ENABLE_A { match self . bits { false => CTL_ENABLE_A :: CTL_ENABLE_OFF , true => CTL_ENABLE_A :: CTL_ENABLE_ON , } } # [doc = "OFF"]
# [inline (always)]
pub fn is_ctl_enable_off (& self) -> bool { * self == CTL_ENABLE_A :: CTL_ENABLE_OFF } # [doc = "ON"]
# [inline (always)]
pub fn is_ctl_enable_on (& self) -> bool { * self == CTL_ENABLE_A :: CTL_ENABLE_ON } } # [doc = "Field `CTL_ENABLE` writer - OAxn Enable."]
pub type CTL_ENABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL_ENABLE_A > ; impl < 'a , REG , const O : u8 > CTL_ENABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "OFF"]
# [inline (always)]
pub fn ctl_enable_off (self) -> & 'a mut crate :: W < REG > { self . variant (CTL_ENABLE_A :: CTL_ENABLE_OFF) } # [doc = "ON"]
# [inline (always)]
pub fn ctl_enable_on (self) -> & 'a mut crate :: W < REG > { self . variant (CTL_ENABLE_A :: CTL_ENABLE_ON) } } impl R { # [doc = "Bit 0 - OAxn Enable."]
# [inline (always)]
pub fn ctl_enable (& self) -> CTL_ENABLE_R { CTL_ENABLE_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - OAxn Enable."]
# [inline (always)]
# [must_use]
pub fn ctl_enable (& mut self) -> CTL_ENABLE_W < CTL_SPEC , 0 > { CTL_ENABLE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTL_SPEC ; impl crate :: RegisterSpec for CTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ctl::R`](R) reader structure"]
impl crate :: Readable for CTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`ctl::W`](W) writer structure"]
impl crate :: Writable for CTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTL to value 0"]
impl crate :: Resettable for CTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CFGBASE (rw) register accessor: Configuration Base Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cfgbase::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cfgbase::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cfgbase`]
module"]
pub type CFGBASE = crate :: Reg < cfgbase :: CFGBASE_SPEC > ; # [doc = "Configuration Base Register"]
pub mod cfgbase { # [doc = "Register `CFGBASE` reader"]
pub type R = crate :: R < CFGBASE_SPEC > ; # [doc = "Register `CFGBASE` writer"]
pub type W = crate :: W < CFGBASE_SPEC > ; # [doc = "Field `CFGBASE_GBW` reader - Select gain bandwidth which affects current as well the gain bandwidth. The lower gain bandwidth has lower current. See device specific datasheet for values. Can only be modified when STAT.BUSY=0."]
pub type CFGBASE_GBW_R = crate :: BitReader < CFGBASE_GBW_A > ; # [doc = "Select gain bandwidth which affects current as well the gain bandwidth. The lower gain bandwidth has lower current. See device specific datasheet for values. Can only be modified when STAT.BUSY=0.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CFGBASE_GBW_A { # [doc = "0: LOWGAIN"]
CFGBASE_GBW_LOWGAIN = 0 , # [doc = "1: HIGHGAIN"]
CFGBASE_GBW_HIGHGAIN = 1 , } impl From < CFGBASE_GBW_A > for bool { # [inline (always)]
fn from (variant : CFGBASE_GBW_A) -> Self { variant as u8 != 0 } } impl CFGBASE_GBW_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CFGBASE_GBW_A { match self . bits { false => CFGBASE_GBW_A :: CFGBASE_GBW_LOWGAIN , true => CFGBASE_GBW_A :: CFGBASE_GBW_HIGHGAIN , } } # [doc = "LOWGAIN"]
# [inline (always)]
pub fn is_cfgbase_gbw_lowgain (& self) -> bool { * self == CFGBASE_GBW_A :: CFGBASE_GBW_LOWGAIN } # [doc = "HIGHGAIN"]
# [inline (always)]
pub fn is_cfgbase_gbw_highgain (& self) -> bool { * self == CFGBASE_GBW_A :: CFGBASE_GBW_HIGHGAIN } } # [doc = "Field `CFGBASE_GBW` writer - Select gain bandwidth which affects current as well the gain bandwidth. The lower gain bandwidth has lower current. See device specific datasheet for values. Can only be modified when STAT.BUSY=0."]
pub type CFGBASE_GBW_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CFGBASE_GBW_A > ; impl < 'a , REG , const O : u8 > CFGBASE_GBW_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "LOWGAIN"]
# [inline (always)]
pub fn cfgbase_gbw_lowgain (self) -> & 'a mut crate :: W < REG > { self . variant (CFGBASE_GBW_A :: CFGBASE_GBW_LOWGAIN) } # [doc = "HIGHGAIN"]
# [inline (always)]
pub fn cfgbase_gbw_highgain (self) -> & 'a mut crate :: W < REG > { self . variant (CFGBASE_GBW_A :: CFGBASE_GBW_HIGHGAIN) } } # [doc = "Field `CFGBASE_RRI` reader - Rail-to-rail input enable. Can only be modified when STAT.BUSY=0"]
pub type CFGBASE_RRI_R = crate :: BitReader < CFGBASE_RRI_A > ; # [doc = "Rail-to-rail input enable. Can only be modified when STAT.BUSY=0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CFGBASE_RRI_A { # [doc = "0: OFF"]
CFGBASE_RRI_OFF = 0 , # [doc = "1: ON"]
CFGBASE_RRI_ON = 1 , } impl From < CFGBASE_RRI_A > for bool { # [inline (always)]
fn from (variant : CFGBASE_RRI_A) -> Self { variant as u8 != 0 } } impl CFGBASE_RRI_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CFGBASE_RRI_A { match self . bits { false => CFGBASE_RRI_A :: CFGBASE_RRI_OFF , true => CFGBASE_RRI_A :: CFGBASE_RRI_ON , } } # [doc = "OFF"]
# [inline (always)]
pub fn is_cfgbase_rri_off (& self) -> bool { * self == CFGBASE_RRI_A :: CFGBASE_RRI_OFF } # [doc = "ON"]
# [inline (always)]
pub fn is_cfgbase_rri_on (& self) -> bool { * self == CFGBASE_RRI_A :: CFGBASE_RRI_ON } } # [doc = "Field `CFGBASE_RRI` writer - Rail-to-rail input enable. Can only be modified when STAT.BUSY=0"]
pub type CFGBASE_RRI_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CFGBASE_RRI_A > ; impl < 'a , REG , const O : u8 > CFGBASE_RRI_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "OFF"]
# [inline (always)]
pub fn cfgbase_rri_off (self) -> & 'a mut crate :: W < REG > { self . variant (CFGBASE_RRI_A :: CFGBASE_RRI_OFF) } # [doc = "ON"]
# [inline (always)]
pub fn cfgbase_rri_on (self) -> & 'a mut crate :: W < REG > { self . variant (CFGBASE_RRI_A :: CFGBASE_RRI_ON) } } impl R { # [doc = "Bit 0 - Select gain bandwidth which affects current as well the gain bandwidth. The lower gain bandwidth has lower current. See device specific datasheet for values. Can only be modified when STAT.BUSY=0."]
# [inline (always)]
pub fn cfgbase_gbw (& self) -> CFGBASE_GBW_R { CFGBASE_GBW_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 2 - Rail-to-rail input enable. Can only be modified when STAT.BUSY=0"]
# [inline (always)]
pub fn cfgbase_rri (& self) -> CFGBASE_RRI_R { CFGBASE_RRI_R :: new (((self . bits >> 2) & 1) != 0) } } impl W { # [doc = "Bit 0 - Select gain bandwidth which affects current as well the gain bandwidth. The lower gain bandwidth has lower current. See device specific datasheet for values. Can only be modified when STAT.BUSY=0."]
# [inline (always)]
# [must_use]
pub fn cfgbase_gbw (& mut self) -> CFGBASE_GBW_W < CFGBASE_SPEC , 0 > { CFGBASE_GBW_W :: new (self) } # [doc = "Bit 2 - Rail-to-rail input enable. Can only be modified when STAT.BUSY=0"]
# [inline (always)]
# [must_use]
pub fn cfgbase_rri (& mut self) -> CFGBASE_RRI_W < CFGBASE_SPEC , 2 > { CFGBASE_RRI_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Configuration Base Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cfgbase::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cfgbase::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CFGBASE_SPEC ; impl crate :: RegisterSpec for CFGBASE_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cfgbase::R`](R) reader structure"]
impl crate :: Readable for CFGBASE_SPEC { } # [doc = "`write(|w| ..)` method takes [`cfgbase::W`](W) writer structure"]
impl crate :: Writable for CFGBASE_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CFGBASE to value 0"]
impl crate :: Resettable for CFGBASE_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CFG (rw) register accessor: Configuration Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cfg::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cfg::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub type CFG = crate :: Reg < cfg :: CFG_SPEC > ; # [doc = "Configuration Register"]
pub mod cfg { # [doc = "Register `CFG` reader"]
pub type R = crate :: R < CFG_SPEC > ; # [doc = "Register `CFG` writer"]
pub type W = crate :: W < CFG_SPEC > ; # [doc = "Field `CFG_CHOP` reader - Chopping enable."]
pub type CFG_CHOP_R = crate :: FieldReader < CFG_CHOP_A > ; # [doc = "Chopping enable.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CFG_CHOP_A { # [doc = "0: OFF"]
CFG_CHOP_OFF = 0 , # [doc = "1: ON"]
CFG_CHOP_ON = 1 , # [doc = "2: AVGON"]
CFG_CHOP_AVGON = 2 , } impl From < CFG_CHOP_A > for u8 { # [inline (always)]
fn from (variant : CFG_CHOP_A) -> Self { variant as _ } } impl crate :: FieldSpec for CFG_CHOP_A { type Ux = u8 ; } impl CFG_CHOP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CFG_CHOP_A > { match self . bits { 0 => Some (CFG_CHOP_A :: CFG_CHOP_OFF) , 1 => Some (CFG_CHOP_A :: CFG_CHOP_ON) , 2 => Some (CFG_CHOP_A :: CFG_CHOP_AVGON) , _ => None , } } # [doc = "OFF"]
# [inline (always)]
pub fn is_cfg_chop_off (& self) -> bool { * self == CFG_CHOP_A :: CFG_CHOP_OFF } # [doc = "ON"]
# [inline (always)]
pub fn is_cfg_chop_on (& self) -> bool { * self == CFG_CHOP_A :: CFG_CHOP_ON } # [doc = "AVGON"]
# [inline (always)]
pub fn is_cfg_chop_avgon (& self) -> bool { * self == CFG_CHOP_A :: CFG_CHOP_AVGON } } # [doc = "Field `CFG_CHOP` writer - Chopping enable."]
pub type CFG_CHOP_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , CFG_CHOP_A > ; impl < 'a , REG , const O : u8 > CFG_CHOP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "OFF"]
# [inline (always)]
pub fn cfg_chop_off (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_CHOP_A :: CFG_CHOP_OFF) } # [doc = "ON"]
# [inline (always)]
pub fn cfg_chop_on (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_CHOP_A :: CFG_CHOP_ON) } # [doc = "AVGON"]
# [inline (always)]
pub fn cfg_chop_avgon (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_CHOP_A :: CFG_CHOP_AVGON) } } # [doc = "Field `CFG_OUTPIN` reader - Enable output pin"]
pub type CFG_OUTPIN_R = crate :: BitReader < CFG_OUTPIN_A > ; # [doc = "Enable output pin\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CFG_OUTPIN_A { # [doc = "0: DISABLED"]
CFG_OUTPIN_DISABLED = 0 , # [doc = "1: ENABLED"]
CFG_OUTPIN_ENABLED = 1 , } impl From < CFG_OUTPIN_A > for bool { # [inline (always)]
fn from (variant : CFG_OUTPIN_A) -> Self { variant as u8 != 0 } } impl CFG_OUTPIN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CFG_OUTPIN_A { match self . bits { false => CFG_OUTPIN_A :: CFG_OUTPIN_DISABLED , true => CFG_OUTPIN_A :: CFG_OUTPIN_ENABLED , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_cfg_outpin_disabled (& self) -> bool { * self == CFG_OUTPIN_A :: CFG_OUTPIN_DISABLED } # [doc = "ENABLED"]
# [inline (always)]
pub fn is_cfg_outpin_enabled (& self) -> bool { * self == CFG_OUTPIN_A :: CFG_OUTPIN_ENABLED } } # [doc = "Field `CFG_OUTPIN` writer - Enable output pin"]
pub type CFG_OUTPIN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CFG_OUTPIN_A > ; impl < 'a , REG , const O : u8 > CFG_OUTPIN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn cfg_outpin_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_OUTPIN_A :: CFG_OUTPIN_DISABLED) } # [doc = "ENABLED"]
# [inline (always)]
pub fn cfg_outpin_enabled (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_OUTPIN_A :: CFG_OUTPIN_ENABLED) } } # [doc = "Field `CFG_PSEL` reader - Positive OA input selection. Please refer to the device specific datasheet for exact channels available."]
pub type CFG_PSEL_R = crate :: FieldReader < CFG_PSEL_A > ; # [doc = "Positive OA input selection. Please refer to the device specific datasheet for exact channels available.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CFG_PSEL_A { # [doc = "0: NC"]
CFG_PSEL_NC = 0 , # [doc = "1: EXTPIN0"]
CFG_PSEL_EXTPIN0 = 1 , # [doc = "2: EXTPIN1"]
CFG_PSEL_EXTPIN1 = 2 , # [doc = "3: DAC12OUT"]
CFG_PSEL_DAC12OUT = 3 , # [doc = "4: DAC8OUT"]
CFG_PSEL_DAC8OUT = 4 , # [doc = "5: VREF"]
CFG_PSEL_VREF = 5 , # [doc = "6: OANM1RTOP"]
CFG_PSEL_OANM1RTOP = 6 , # [doc = "7: GPAMP_OUT_INT"]
CFG_PSEL_GPAMP_OUT_INT = 7 , # [doc = "8: VSS"]
CFG_PSEL_VSS = 8 , } impl From < CFG_PSEL_A > for u8 { # [inline (always)]
fn from (variant : CFG_PSEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for CFG_PSEL_A { type Ux = u8 ; } impl CFG_PSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CFG_PSEL_A > { match self . bits { 0 => Some (CFG_PSEL_A :: CFG_PSEL_NC) , 1 => Some (CFG_PSEL_A :: CFG_PSEL_EXTPIN0) , 2 => Some (CFG_PSEL_A :: CFG_PSEL_EXTPIN1) , 3 => Some (CFG_PSEL_A :: CFG_PSEL_DAC12OUT) , 4 => Some (CFG_PSEL_A :: CFG_PSEL_DAC8OUT) , 5 => Some (CFG_PSEL_A :: CFG_PSEL_VREF) , 6 => Some (CFG_PSEL_A :: CFG_PSEL_OANM1RTOP) , 7 => Some (CFG_PSEL_A :: CFG_PSEL_GPAMP_OUT_INT) , 8 => Some (CFG_PSEL_A :: CFG_PSEL_VSS) , _ => None , } } # [doc = "NC"]
# [inline (always)]
pub fn is_cfg_psel_nc (& self) -> bool { * self == CFG_PSEL_A :: CFG_PSEL_NC } # [doc = "EXTPIN0"]
# [inline (always)]
pub fn is_cfg_psel_extpin0 (& self) -> bool { * self == CFG_PSEL_A :: CFG_PSEL_EXTPIN0 } # [doc = "EXTPIN1"]
# [inline (always)]
pub fn is_cfg_psel_extpin1 (& self) -> bool { * self == CFG_PSEL_A :: CFG_PSEL_EXTPIN1 } # [doc = "DAC12OUT"]
# [inline (always)]
pub fn is_cfg_psel_dac12out (& self) -> bool { * self == CFG_PSEL_A :: CFG_PSEL_DAC12OUT } # [doc = "DAC8OUT"]
# [inline (always)]
pub fn is_cfg_psel_dac8out (& self) -> bool { * self == CFG_PSEL_A :: CFG_PSEL_DAC8OUT } # [doc = "VREF"]
# [inline (always)]
pub fn is_cfg_psel_vref (& self) -> bool { * self == CFG_PSEL_A :: CFG_PSEL_VREF } # [doc = "OANM1RTOP"]
# [inline (always)]
pub fn is_cfg_psel_oanm1rtop (& self) -> bool { * self == CFG_PSEL_A :: CFG_PSEL_OANM1RTOP } # [doc = "GPAMP_OUT_INT"]
# [inline (always)]
pub fn is_cfg_psel_gpamp_out_int (& self) -> bool { * self == CFG_PSEL_A :: CFG_PSEL_GPAMP_OUT_INT } # [doc = "VSS"]
# [inline (always)]
pub fn is_cfg_psel_vss (& self) -> bool { * self == CFG_PSEL_A :: CFG_PSEL_VSS } } # [doc = "Field `CFG_PSEL` writer - Positive OA input selection. Please refer to the device specific datasheet for exact channels available."]
pub type CFG_PSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 4 , O , CFG_PSEL_A > ; impl < 'a , REG , const O : u8 > CFG_PSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "NC"]
# [inline (always)]
pub fn cfg_psel_nc (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_PSEL_A :: CFG_PSEL_NC) } # [doc = "EXTPIN0"]
# [inline (always)]
pub fn cfg_psel_extpin0 (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_PSEL_A :: CFG_PSEL_EXTPIN0) } # [doc = "EXTPIN1"]
# [inline (always)]
pub fn cfg_psel_extpin1 (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_PSEL_A :: CFG_PSEL_EXTPIN1) } # [doc = "DAC12OUT"]
# [inline (always)]
pub fn cfg_psel_dac12out (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_PSEL_A :: CFG_PSEL_DAC12OUT) } # [doc = "DAC8OUT"]
# [inline (always)]
pub fn cfg_psel_dac8out (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_PSEL_A :: CFG_PSEL_DAC8OUT) } # [doc = "VREF"]
# [inline (always)]
pub fn cfg_psel_vref (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_PSEL_A :: CFG_PSEL_VREF) } # [doc = "OANM1RTOP"]
# [inline (always)]
pub fn cfg_psel_oanm1rtop (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_PSEL_A :: CFG_PSEL_OANM1RTOP) } # [doc = "GPAMP_OUT_INT"]
# [inline (always)]
pub fn cfg_psel_gpamp_out_int (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_PSEL_A :: CFG_PSEL_GPAMP_OUT_INT) } # [doc = "VSS"]
# [inline (always)]
pub fn cfg_psel_vss (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_PSEL_A :: CFG_PSEL_VSS) } } # [doc = "Field `CFG_NSEL` reader - Negative OA input selection. Please refer to the device specific datasheet for exact channels available."]
pub type CFG_NSEL_R = crate :: FieldReader < CFG_NSEL_A > ; # [doc = "Negative OA input selection. Please refer to the device specific datasheet for exact channels available.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CFG_NSEL_A { # [doc = "0: NC"]
CFG_NSEL_NC = 0 , # [doc = "1: EXTPIN0"]
CFG_NSEL_EXTPIN0 = 1 , # [doc = "2: EXTPIN1"]
CFG_NSEL_EXTPIN1 = 2 , # [doc = "3: OANP1RBOT"]
CFG_NSEL_OANP1RBOT = 3 , # [doc = "4: OANRTAP"]
CFG_NSEL_OANRTAP = 4 , # [doc = "5: OANRTOP"]
CFG_NSEL_OANRTOP = 5 , # [doc = "6: SPARE"]
CFG_NSEL_SPARE = 6 , } impl From < CFG_NSEL_A > for u8 { # [inline (always)]
fn from (variant : CFG_NSEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for CFG_NSEL_A { type Ux = u8 ; } impl CFG_NSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CFG_NSEL_A > { match self . bits { 0 => Some (CFG_NSEL_A :: CFG_NSEL_NC) , 1 => Some (CFG_NSEL_A :: CFG_NSEL_EXTPIN0) , 2 => Some (CFG_NSEL_A :: CFG_NSEL_EXTPIN1) , 3 => Some (CFG_NSEL_A :: CFG_NSEL_OANP1RBOT) , 4 => Some (CFG_NSEL_A :: CFG_NSEL_OANRTAP) , 5 => Some (CFG_NSEL_A :: CFG_NSEL_OANRTOP) , 6 => Some (CFG_NSEL_A :: CFG_NSEL_SPARE) , _ => None , } } # [doc = "NC"]
# [inline (always)]
pub fn is_cfg_nsel_nc (& self) -> bool { * self == CFG_NSEL_A :: CFG_NSEL_NC } # [doc = "EXTPIN0"]
# [inline (always)]
pub fn is_cfg_nsel_extpin0 (& self) -> bool { * self == CFG_NSEL_A :: CFG_NSEL_EXTPIN0 } # [doc = "EXTPIN1"]
# [inline (always)]
pub fn is_cfg_nsel_extpin1 (& self) -> bool { * self == CFG_NSEL_A :: CFG_NSEL_EXTPIN1 } # [doc = "OANP1RBOT"]
# [inline (always)]
pub fn is_cfg_nsel_oanp1rbot (& self) -> bool { * self == CFG_NSEL_A :: CFG_NSEL_OANP1RBOT } # [doc = "OANRTAP"]
# [inline (always)]
pub fn is_cfg_nsel_oanrtap (& self) -> bool { * self == CFG_NSEL_A :: CFG_NSEL_OANRTAP } # [doc = "OANRTOP"]
# [inline (always)]
pub fn is_cfg_nsel_oanrtop (& self) -> bool { * self == CFG_NSEL_A :: CFG_NSEL_OANRTOP } # [doc = "SPARE"]
# [inline (always)]
pub fn is_cfg_nsel_spare (& self) -> bool { * self == CFG_NSEL_A :: CFG_NSEL_SPARE } } # [doc = "Field `CFG_NSEL` writer - Negative OA input selection. Please refer to the device specific datasheet for exact channels available."]
pub type CFG_NSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CFG_NSEL_A > ; impl < 'a , REG , const O : u8 > CFG_NSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "NC"]
# [inline (always)]
pub fn cfg_nsel_nc (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_NSEL_A :: CFG_NSEL_NC) } # [doc = "EXTPIN0"]
# [inline (always)]
pub fn cfg_nsel_extpin0 (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_NSEL_A :: CFG_NSEL_EXTPIN0) } # [doc = "EXTPIN1"]
# [inline (always)]
pub fn cfg_nsel_extpin1 (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_NSEL_A :: CFG_NSEL_EXTPIN1) } # [doc = "OANP1RBOT"]
# [inline (always)]
pub fn cfg_nsel_oanp1rbot (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_NSEL_A :: CFG_NSEL_OANP1RBOT) } # [doc = "OANRTAP"]
# [inline (always)]
pub fn cfg_nsel_oanrtap (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_NSEL_A :: CFG_NSEL_OANRTAP) } # [doc = "OANRTOP"]
# [inline (always)]
pub fn cfg_nsel_oanrtop (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_NSEL_A :: CFG_NSEL_OANRTOP) } # [doc = "SPARE"]
# [inline (always)]
pub fn cfg_nsel_spare (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_NSEL_A :: CFG_NSEL_SPARE) } } # [doc = "Field `CFG_MSEL` reader - MSEL Mux selection. Please refer to the device specific datasheet for exact channels available."]
pub type CFG_MSEL_R = crate :: FieldReader < CFG_MSEL_A > ; # [doc = "MSEL Mux selection. Please refer to the device specific datasheet for exact channels available.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CFG_MSEL_A { # [doc = "0: NC"]
CFG_MSEL_NC = 0 , # [doc = "1: EXTNPIN1"]
CFG_MSEL_EXTNPIN1 = 1 , # [doc = "2: VSS"]
CFG_MSEL_VSS = 2 , # [doc = "3: DAC12OUT"]
CFG_MSEL_DAC12OUT = 3 , # [doc = "4: OANM1RTOP"]
CFG_MSEL_OANM1RTOP = 4 , } impl From < CFG_MSEL_A > for u8 { # [inline (always)]
fn from (variant : CFG_MSEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for CFG_MSEL_A { type Ux = u8 ; } impl CFG_MSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CFG_MSEL_A > { match self . bits { 0 => Some (CFG_MSEL_A :: CFG_MSEL_NC) , 1 => Some (CFG_MSEL_A :: CFG_MSEL_EXTNPIN1) , 2 => Some (CFG_MSEL_A :: CFG_MSEL_VSS) , 3 => Some (CFG_MSEL_A :: CFG_MSEL_DAC12OUT) , 4 => Some (CFG_MSEL_A :: CFG_MSEL_OANM1RTOP) , _ => None , } } # [doc = "NC"]
# [inline (always)]
pub fn is_cfg_msel_nc (& self) -> bool { * self == CFG_MSEL_A :: CFG_MSEL_NC } # [doc = "EXTNPIN1"]
# [inline (always)]
pub fn is_cfg_msel_extnpin1 (& self) -> bool { * self == CFG_MSEL_A :: CFG_MSEL_EXTNPIN1 } # [doc = "VSS"]
# [inline (always)]
pub fn is_cfg_msel_vss (& self) -> bool { * self == CFG_MSEL_A :: CFG_MSEL_VSS } # [doc = "DAC12OUT"]
# [inline (always)]
pub fn is_cfg_msel_dac12out (& self) -> bool { * self == CFG_MSEL_A :: CFG_MSEL_DAC12OUT } # [doc = "OANM1RTOP"]
# [inline (always)]
pub fn is_cfg_msel_oanm1rtop (& self) -> bool { * self == CFG_MSEL_A :: CFG_MSEL_OANM1RTOP } } # [doc = "Field `CFG_MSEL` writer - MSEL Mux selection. Please refer to the device specific datasheet for exact channels available."]
pub type CFG_MSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CFG_MSEL_A > ; impl < 'a , REG , const O : u8 > CFG_MSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "NC"]
# [inline (always)]
pub fn cfg_msel_nc (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_MSEL_A :: CFG_MSEL_NC) } # [doc = "EXTNPIN1"]
# [inline (always)]
pub fn cfg_msel_extnpin1 (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_MSEL_A :: CFG_MSEL_EXTNPIN1) } # [doc = "VSS"]
# [inline (always)]
pub fn cfg_msel_vss (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_MSEL_A :: CFG_MSEL_VSS) } # [doc = "DAC12OUT"]
# [inline (always)]
pub fn cfg_msel_dac12out (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_MSEL_A :: CFG_MSEL_DAC12OUT) } # [doc = "OANM1RTOP"]
# [inline (always)]
pub fn cfg_msel_oanm1rtop (self) -> & 'a mut crate :: W < REG > { self . variant (CFG_MSEL_A :: CFG_MSEL_OANM1RTOP) } } # [doc = "Field `CFG_GAIN` reader - Gain setting. Refer to TRM for enumeration information."]
pub type CFG_GAIN_R = crate :: FieldReader ; # [doc = "Field `CFG_GAIN` writer - Gain setting. Refer to TRM for enumeration information."]
pub type CFG_GAIN_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O > ; impl R { # [doc = "Bits 0:1 - Chopping enable."]
# [inline (always)]
pub fn cfg_chop (& self) -> CFG_CHOP_R { CFG_CHOP_R :: new ((self . bits & 3) as u8) } # [doc = "Bit 2 - Enable output pin"]
# [inline (always)]
pub fn cfg_outpin (& self) -> CFG_OUTPIN_R { CFG_OUTPIN_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bits 3:6 - Positive OA input selection. Please refer to the device specific datasheet for exact channels available."]
# [inline (always)]
pub fn cfg_psel (& self) -> CFG_PSEL_R { CFG_PSEL_R :: new (((self . bits >> 3) & 0x0f) as u8) } # [doc = "Bits 7:9 - Negative OA input selection. Please refer to the device specific datasheet for exact channels available."]
# [inline (always)]
pub fn cfg_nsel (& self) -> CFG_NSEL_R { CFG_NSEL_R :: new (((self . bits >> 7) & 7) as u8) } # [doc = "Bits 10:12 - MSEL Mux selection. Please refer to the device specific datasheet for exact channels available."]
# [inline (always)]
pub fn cfg_msel (& self) -> CFG_MSEL_R { CFG_MSEL_R :: new (((self . bits >> 10) & 7) as u8) } # [doc = "Bits 13:15 - Gain setting. Refer to TRM for enumeration information."]
# [inline (always)]
pub fn cfg_gain (& self) -> CFG_GAIN_R { CFG_GAIN_R :: new (((self . bits >> 13) & 7) as u8) } } impl W { # [doc = "Bits 0:1 - Chopping enable."]
# [inline (always)]
# [must_use]
pub fn cfg_chop (& mut self) -> CFG_CHOP_W < CFG_SPEC , 0 > { CFG_CHOP_W :: new (self) } # [doc = "Bit 2 - Enable output pin"]
# [inline (always)]
# [must_use]
pub fn cfg_outpin (& mut self) -> CFG_OUTPIN_W < CFG_SPEC , 2 > { CFG_OUTPIN_W :: new (self) } # [doc = "Bits 3:6 - Positive OA input selection. Please refer to the device specific datasheet for exact channels available."]
# [inline (always)]
# [must_use]
pub fn cfg_psel (& mut self) -> CFG_PSEL_W < CFG_SPEC , 3 > { CFG_PSEL_W :: new (self) } # [doc = "Bits 7:9 - Negative OA input selection. Please refer to the device specific datasheet for exact channels available."]
# [inline (always)]
# [must_use]
pub fn cfg_nsel (& mut self) -> CFG_NSEL_W < CFG_SPEC , 7 > { CFG_NSEL_W :: new (self) } # [doc = "Bits 10:12 - MSEL Mux selection. Please refer to the device specific datasheet for exact channels available."]
# [inline (always)]
# [must_use]
pub fn cfg_msel (& mut self) -> CFG_MSEL_W < CFG_SPEC , 10 > { CFG_MSEL_W :: new (self) } # [doc = "Bits 13:15 - Gain setting. Refer to TRM for enumeration information."]
# [inline (always)]
# [must_use]
pub fn cfg_gain (& mut self) -> CFG_GAIN_W < CFG_SPEC , 13 > { CFG_GAIN_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Configuration Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cfg::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cfg::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CFG_SPEC ; impl crate :: RegisterSpec for CFG_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cfg::R`](R) reader structure"]
impl crate :: Readable for CFG_SPEC { } # [doc = "`write(|w| ..)` method takes [`cfg::W`](W) writer structure"]
impl crate :: Writable for CFG_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CFG to value 0"]
impl crate :: Resettable for CFG_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "STAT (r) register accessor: Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@stat`]
module"]
pub type STAT = crate :: Reg < stat :: STAT_SPEC > ; # [doc = "Status Register"]
pub mod stat { # [doc = "Register `STAT` reader"]
pub type R = crate :: R < STAT_SPEC > ; # [doc = "Field `STAT_RDY` reader - OA ready status."]
pub type STAT_RDY_R = crate :: BitReader < STAT_RDY_A > ; # [doc = "OA ready status.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_RDY_A { # [doc = "0: FALSE"]
STAT_RDY_FALSE = 0 , # [doc = "1: TRUE"]
STAT_RDY_TRUE = 1 , } impl From < STAT_RDY_A > for bool { # [inline (always)]
fn from (variant : STAT_RDY_A) -> Self { variant as u8 != 0 } } impl STAT_RDY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_RDY_A { match self . bits { false => STAT_RDY_A :: STAT_RDY_FALSE , true => STAT_RDY_A :: STAT_RDY_TRUE , } } # [doc = "FALSE"]
# [inline (always)]
pub fn is_stat_rdy_false (& self) -> bool { * self == STAT_RDY_A :: STAT_RDY_FALSE } # [doc = "TRUE"]
# [inline (always)]
pub fn is_stat_rdy_true (& self) -> bool { * self == STAT_RDY_A :: STAT_RDY_TRUE } } impl R { # [doc = "Bit 0 - OA ready status."]
# [inline (always)]
pub fn stat_rdy (& self) -> STAT_RDY_R { STAT_RDY_R :: new ((self . bits & 1) != 0) } } # [doc = "Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct STAT_SPEC ; impl crate :: RegisterSpec for STAT_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`stat::R`](R) reader structure"]
impl crate :: Readable for STAT_SPEC { } # [doc = "`reset()` method sets STAT to value 0"]
impl crate :: Resettable for STAT_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } } # [doc = "PERIPHERALREGION"]
pub struct I2C1 { _marker : PhantomData < * const () > } unsafe impl Send for I2C1 { } impl I2C1 { # [doc = r"Pointer to the register block"]
pub const PTR : * const i2c1 :: RegisterBlock = 0x400f_2000 as * const _ ; # [doc = r"Return the pointer to the register block"]
# [inline (always)]
pub const fn ptr () -> * const i2c1 :: RegisterBlock { Self :: PTR } # [doc = r" Steal an instance of this peripheral"]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Ensure that the new instance of the peripheral cannot be used in a way"]
# [doc = r" that may race with any existing instances, for example by only"]
# [doc = r" accessing read-only or write-only registers, or by consuming the"]
# [doc = r" original peripheral and using critical sections to coordinate"]
# [doc = r" access between multiple new instances."]
# [doc = r""]
# [doc = r" Additionally, other software such as HALs may rely on only one"]
# [doc = r" peripheral instance existing to ensure memory safety; ensure"]
# [doc = r" no stolen instances are passed to such software."]
pub unsafe fn steal () -> Self { Self { _marker : PhantomData } } } impl Deref for I2C1 { type Target = i2c1 :: RegisterBlock ; # [inline (always)]
fn deref (& self) -> & Self :: Target { unsafe { & * Self :: PTR } } } impl core :: fmt :: Debug for I2C1 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("I2C1") . finish () } } # [doc = "PERIPHERALREGION"]
pub mod i2c1 { # [doc = r"Register block"]
# [repr (C)]
pub struct RegisterBlock { _reserved0 : [u8 ; 0x0800]
, # [doc = "0x800 - Power enable"]
pub pwren : PWREN , # [doc = "0x804 - Reset Control"]
pub rstctl : RSTCTL , # [doc = "0x808 - Peripheral Clock Configuration Register"]
pub clkcfg : CLKCFG , _reserved3 : [u8 ; 0x08]
, # [doc = "0x814 - Status Register"]
pub stat : STAT , _reserved4 : [u8 ; 0x07e8]
, # [doc = "0x1000 - Clock Divider"]
pub clkdiv : CLKDIV , # [doc = "0x1004 - Clock Select for Ultra Low Power peripherals"]
pub clksel : CLKSEL , _reserved6 : [u8 ; 0x10]
, # [doc = "0x1018 - Peripheral Debug Control"]
pub pdbgctl : PDBGCTL , _reserved7 : [u8 ; 0x04]
, # [doc = "0x1020 - Interrupt index"]
pub int_event0_iidx : INT_EVENT0_IIDX , _reserved8 : [u8 ; 0x04]
, # [doc = "0x1028 - Interrupt mask"]
pub int_event0_imask : INT_EVENT0_IMASK , _reserved9 : [u8 ; 0x04]
, # [doc = "0x1030 - Raw interrupt status"]
pub int_event0_ris : INT_EVENT0_RIS , _reserved10 : [u8 ; 0x04]
, # [doc = "0x1038 - Masked interrupt status"]
pub int_event0_mis : INT_EVENT0_MIS , _reserved11 : [u8 ; 0x04]
, # [doc = "0x1040 - Interrupt set"]
pub int_event0_iset : INT_EVENT0_ISET , _reserved12 : [u8 ; 0x04]
, # [doc = "0x1048 - Interrupt clear"]
pub int_event0_iclr : INT_EVENT0_ICLR , _reserved13 : [u8 ; 0x04]
, # [doc = "0x1050 - Interrupt index"]
pub int_event1_iidx : INT_EVENT1_IIDX , _reserved14 : [u8 ; 0x04]
, # [doc = "0x1058 - Interrupt mask"]
pub int_event1_imask : INT_EVENT1_IMASK , _reserved15 : [u8 ; 0x04]
, # [doc = "0x1060 - Raw interrupt status"]
pub int_event1_ris : INT_EVENT1_RIS , _reserved16 : [u8 ; 0x04]
, # [doc = "0x1068 - Masked interrupt status"]
pub int_event1_mis : INT_EVENT1_MIS , _reserved17 : [u8 ; 0x04]
, # [doc = "0x1070 - Interrupt set"]
pub int_event1_iset : INT_EVENT1_ISET , _reserved18 : [u8 ; 0x04]
, # [doc = "0x1078 - Interrupt clear"]
pub int_event1_iclr : INT_EVENT1_ICLR , _reserved19 : [u8 ; 0x04]
, # [doc = "0x1080 - Interrupt index"]
pub int_event2_iidx : INT_EVENT2_IIDX , _reserved20 : [u8 ; 0x04]
, # [doc = "0x1088 - Interrupt mask"]
pub int_event2_imask : INT_EVENT2_IMASK , _reserved21 : [u8 ; 0x04]
, # [doc = "0x1090 - Raw interrupt status"]
pub int_event2_ris : INT_EVENT2_RIS , _reserved22 : [u8 ; 0x04]
, # [doc = "0x1098 - Masked interrupt status"]
pub int_event2_mis : INT_EVENT2_MIS , _reserved23 : [u8 ; 0x04]
, # [doc = "0x10a0 - Interrupt set"]
pub int_event2_iset : INT_EVENT2_ISET , _reserved24 : [u8 ; 0x04]
, # [doc = "0x10a8 - Interrupt clear"]
pub int_event2_iclr : INT_EVENT2_ICLR , _reserved25 : [u8 ; 0x34]
, # [doc = "0x10e0 - Event Mode"]
pub evt_mode : EVT_MODE , _reserved26 : [u8 ; 0x18]
, # [doc = "0x10fc - Module Description"]
pub desc : DESC , _reserved27 : [u8 ; 0x0100]
, # [doc = "0x1200 - I2C Glitch Filter Control"]
pub gfctl : GFCTL , # [doc = "0x1204 - I2C Timeout Count Control Register"]
pub timeout_ctl : TIMEOUT_CTL , # [doc = "0x1208 - I2C Timeout Count Register"]
pub timeout_cnt : TIMEOUT_CNT , _reserved30 : [u8 ; 0x04]
, # [doc = "0x1210 - I2C Master Slave Address Register"]
pub msa : MSA , # [doc = "0x1214 - I2C Master Control Register"]
pub mctr : MCTR , # [doc = "0x1218 - I2C Master Status Register"]
pub msr : MSR , # [doc = "0x121c - I2C Master RXData"]
pub mrxdata : MRXDATA , # [doc = "0x1220 - I2C Master TXData"]
pub mtxdata : MTXDATA , # [doc = "0x1224 - I2C Master Timer Period"]
pub mtpr : MTPR , # [doc = "0x1228 - I2C Master Configuration"]
pub mcr : MCR , _reserved37 : [u8 ; 0x08]
, # [doc = "0x1234 - I2C Master Bus Monitor"]
pub mbmon : MBMON , # [doc = "0x1238 - I2C Master FIFO Control"]
pub mfifoctl : MFIFOCTL , # [doc = "0x123c - I2C Master FIFO Status Register"]
pub mfifosr : MFIFOSR , # [doc = "0x1240 - I2C master PEC control register"]
pub master_i2cpecctl : MASTER_I2CPECCTL , # [doc = "0x1244 - I2C master PEC status register"]
pub master_pecsr : MASTER_PECSR , _reserved42 : [u8 ; 0x08]
, # [doc = "0x1250 - I2C Slave Own Address"]
pub soar : SOAR , # [doc = "0x1254 - I2C Slave Own Address 2"]
pub soar2 : SOAR2 , # [doc = "0x1258 - I2C Slave Control Register"]
pub sctr : SCTR , # [doc = "0x125c - I2C Slave Status Register"]
pub ssr : SSR , # [doc = "0x1260 - I2C Slave RXData"]
pub srxdata : SRXDATA , # [doc = "0x1264 - I2C Slave TXData"]
pub stxdata : STXDATA , # [doc = "0x1268 - I2C Slave ACK Control"]
pub sackctl : SACKCTL , # [doc = "0x126c - I2C Slave FIFO Control"]
pub sfifoctl : SFIFOCTL , # [doc = "0x1270 - I2C Slave FIFO Status Register"]
pub sfifosr : SFIFOSR , # [doc = "0x1274 - I2C Slave PEC control register"]
pub slave_pecctl : SLAVE_PECCTL , # [doc = "0x1278 - I2C slave PEC status register"]
pub slave_pecsr : SLAVE_PECSR , } # [doc = "PWREN (rw) register accessor: Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pwren`]
module"]
pub type PWREN = crate :: Reg < pwren :: PWREN_SPEC > ; # [doc = "Power enable"]
pub mod pwren { # [doc = "Register `PWREN` reader"]
pub type R = crate :: R < PWREN_SPEC > ; # [doc = "Register `PWREN` writer"]
pub type W = crate :: W < PWREN_SPEC > ; # [doc = "Field `PWREN_ENABLE` reader - Enable the power"]
pub type PWREN_ENABLE_R = crate :: BitReader < PWREN_ENABLE_A > ; # [doc = "Enable the power\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PWREN_ENABLE_A { # [doc = "0: DISABLE"]
PWREN_ENABLE_DISABLE = 0 , # [doc = "1: ENABLE"]
PWREN_ENABLE_ENABLE = 1 , } impl From < PWREN_ENABLE_A > for bool { # [inline (always)]
fn from (variant : PWREN_ENABLE_A) -> Self { variant as u8 != 0 } } impl PWREN_ENABLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PWREN_ENABLE_A { match self . bits { false => PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE , true => PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_pwren_enable_disable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_pwren_enable_enable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE } } # [doc = "Field `PWREN_ENABLE` writer - Enable the power"]
pub type PWREN_ENABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PWREN_ENABLE_A > ; impl < 'a , REG , const O : u8 > PWREN_ENABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn pwren_enable_disable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn pwren_enable_enable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE) } } # [doc = "KEY to allow Power State Change\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum PWREN_KEY_AW { # [doc = "38: _TO_UNLOCK_W_"]
PWREN_KEY_UNLOCK_W = 38 , } impl From < PWREN_KEY_AW > for u8 { # [inline (always)]
fn from (variant : PWREN_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for PWREN_KEY_AW { type Ux = u8 ; } # [doc = "Field `PWREN_KEY` writer - KEY to allow Power State Change"]
pub type PWREN_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , PWREN_KEY_AW > ; impl < 'a , REG , const O : u8 > PWREN_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn pwren_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_KEY_AW :: PWREN_KEY_UNLOCK_W) } } impl R { # [doc = "Bit 0 - Enable the power"]
# [inline (always)]
pub fn pwren_enable (& self) -> PWREN_ENABLE_R { PWREN_ENABLE_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - Enable the power"]
# [inline (always)]
# [must_use]
pub fn pwren_enable (& mut self) -> PWREN_ENABLE_W < PWREN_SPEC , 0 > { PWREN_ENABLE_W :: new (self) } # [doc = "Bits 24:31 - KEY to allow Power State Change"]
# [inline (always)]
# [must_use]
pub fn pwren_key (& mut self) -> PWREN_KEY_W < PWREN_SPEC , 24 > { PWREN_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PWREN_SPEC ; impl crate :: RegisterSpec for PWREN_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pwren::R`](R) reader structure"]
impl crate :: Readable for PWREN_SPEC { } # [doc = "`write(|w| ..)` method takes [`pwren::W`](W) writer structure"]
impl crate :: Writable for PWREN_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PWREN to value 0"]
impl crate :: Resettable for PWREN_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RSTCTL (w) register accessor: Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rstctl`]
module"]
pub type RSTCTL = crate :: Reg < rstctl :: RSTCTL_SPEC > ; # [doc = "Reset Control"]
pub mod rstctl { # [doc = "Register `RSTCTL` writer"]
pub type W = crate :: W < RSTCTL_SPEC > ; # [doc = "Assert reset to the peripheral\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETASSERT_AW { # [doc = "0: NOP"]
RSTCTL_RESETASSERT_NOP = 0 , # [doc = "1: ASSERT"]
RSTCTL_RESETASSERT_ASSERT = 1 , } impl From < RSTCTL_RESETASSERT_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETASSERT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETASSERT` writer - Assert reset to the peripheral"]
pub type RSTCTL_RESETASSERT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETASSERT_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETASSERT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetassert_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_NOP) } # [doc = "ASSERT"]
# [inline (always)]
pub fn rstctl_resetassert_assert (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_ASSERT) } } # [doc = "Clear the RESETSTKY bit in the STAT register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETSTKYCLR_AW { # [doc = "0: NOP"]
RSTCTL_RESETSTKYCLR_NOP = 0 , # [doc = "1: CLR"]
RSTCTL_RESETSTKYCLR_CLR = 1 , } impl From < RSTCTL_RESETSTKYCLR_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETSTKYCLR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETSTKYCLR` writer - Clear the RESETSTKY bit in the STAT register"]
pub type RSTCTL_RESETSTKYCLR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETSTKYCLR_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETSTKYCLR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetstkyclr_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_NOP) } # [doc = "CLR"]
# [inline (always)]
pub fn rstctl_resetstkyclr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_CLR) } } # [doc = "Unlock key\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum RSTCTL_KEY_AW { # [doc = "177: _TO_UNLOCK_W_"]
RSTCTL_KEY_UNLOCK_W = 177 , } impl From < RSTCTL_KEY_AW > for u8 { # [inline (always)]
fn from (variant : RSTCTL_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for RSTCTL_KEY_AW { type Ux = u8 ; } # [doc = "Field `RSTCTL_KEY` writer - Unlock key"]
pub type RSTCTL_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , RSTCTL_KEY_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn rstctl_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_KEY_AW :: RSTCTL_KEY_UNLOCK_W) } } impl W { # [doc = "Bit 0 - Assert reset to the peripheral"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetassert (& mut self) -> RSTCTL_RESETASSERT_W < RSTCTL_SPEC , 0 > { RSTCTL_RESETASSERT_W :: new (self) } # [doc = "Bit 1 - Clear the RESETSTKY bit in the STAT register"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetstkyclr (& mut self) -> RSTCTL_RESETSTKYCLR_W < RSTCTL_SPEC , 1 > { RSTCTL_RESETSTKYCLR_W :: new (self) } # [doc = "Bits 24:31 - Unlock key"]
# [inline (always)]
# [must_use]
pub fn rstctl_key (& mut self) -> RSTCTL_KEY_W < RSTCTL_SPEC , 24 > { RSTCTL_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RSTCTL_SPEC ; impl crate :: RegisterSpec for RSTCTL_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`rstctl::W`](W) writer structure"]
impl crate :: Writable for RSTCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets RSTCTL to value 0"]
impl crate :: Resettable for RSTCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CLKCFG (rw) register accessor: Peripheral Clock Configuration Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkcfg::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkcfg::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clkcfg`]
module"]
pub type CLKCFG = crate :: Reg < clkcfg :: CLKCFG_SPEC > ; # [doc = "Peripheral Clock Configuration Register"]
pub mod clkcfg { # [doc = "Register `CLKCFG` reader"]
pub type R = crate :: R < CLKCFG_SPEC > ; # [doc = "Register `CLKCFG` writer"]
pub type W = crate :: W < CLKCFG_SPEC > ; # [doc = "Field `CLKCFG_BLOCKASYNC` reader - Async Clock Request is blocked from starting SYSOSC or forcing bus clock to 32MHz"]
pub type CLKCFG_BLOCKASYNC_R = crate :: BitReader < CLKCFG_BLOCKASYNC_A > ; # [doc = "Async Clock Request is blocked from starting SYSOSC or forcing bus clock to 32MHz\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKCFG_BLOCKASYNC_A { # [doc = "0: DISABLE"]
CLKCFG_BLOCKASYNC_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKCFG_BLOCKASYNC_ENABLE = 1 , } impl From < CLKCFG_BLOCKASYNC_A > for bool { # [inline (always)]
fn from (variant : CLKCFG_BLOCKASYNC_A) -> Self { variant as u8 != 0 } } impl CLKCFG_BLOCKASYNC_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKCFG_BLOCKASYNC_A { match self . bits { false => CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_DISABLE , true => CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clkcfg_blockasync_disable (& self) -> bool { * self == CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clkcfg_blockasync_enable (& self) -> bool { * self == CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_ENABLE } } # [doc = "Field `CLKCFG_BLOCKASYNC` writer - Async Clock Request is blocked from starting SYSOSC or forcing bus clock to 32MHz"]
pub type CLKCFG_BLOCKASYNC_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKCFG_BLOCKASYNC_A > ; impl < 'a , REG , const O : u8 > CLKCFG_BLOCKASYNC_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clkcfg_blockasync_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clkcfg_blockasync_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKCFG_BLOCKASYNC_A :: CLKCFG_BLOCKASYNC_ENABLE) } } # [doc = "KEY to Allow State Change -- 0xA9\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CLKCFG_KEY_AW { # [doc = "169: _UNLOCK_W_"]
CLKCFG_KEY_UNLOCK = 169 , } impl From < CLKCFG_KEY_AW > for u8 { # [inline (always)]
fn from (variant : CLKCFG_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for CLKCFG_KEY_AW { type Ux = u8 ; } # [doc = "Field `CLKCFG_KEY` writer - KEY to Allow State Change -- 0xA9"]
pub type CLKCFG_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , CLKCFG_KEY_AW > ; impl < 'a , REG , const O : u8 > CLKCFG_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_UNLOCK_W_"]
# [inline (always)]
pub fn clkcfg_key_unlock (self) -> & 'a mut crate :: W < REG > { self . variant (CLKCFG_KEY_AW :: CLKCFG_KEY_UNLOCK) } } impl R { # [doc = "Bit 8 - Async Clock Request is blocked from starting SYSOSC or forcing bus clock to 32MHz"]
# [inline (always)]
pub fn clkcfg_blockasync (& self) -> CLKCFG_BLOCKASYNC_R { CLKCFG_BLOCKASYNC_R :: new (((self . bits >> 8) & 1) != 0) } } impl W { # [doc = "Bit 8 - Async Clock Request is blocked from starting SYSOSC or forcing bus clock to 32MHz"]
# [inline (always)]
# [must_use]
pub fn clkcfg_blockasync (& mut self) -> CLKCFG_BLOCKASYNC_W < CLKCFG_SPEC , 8 > { CLKCFG_BLOCKASYNC_W :: new (self) } # [doc = "Bits 24:31 - KEY to Allow State Change -- 0xA9"]
# [inline (always)]
# [must_use]
pub fn clkcfg_key (& mut self) -> CLKCFG_KEY_W < CLKCFG_SPEC , 24 > { CLKCFG_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Peripheral Clock Configuration Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkcfg::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkcfg::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CLKCFG_SPEC ; impl crate :: RegisterSpec for CLKCFG_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`clkcfg::R`](R) reader structure"]
impl crate :: Readable for CLKCFG_SPEC { } # [doc = "`write(|w| ..)` method takes [`clkcfg::W`](W) writer structure"]
impl crate :: Writable for CLKCFG_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CLKCFG to value 0"]
impl crate :: Resettable for CLKCFG_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "STAT (r) register accessor: Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@stat`]
module"]
pub type STAT = crate :: Reg < stat :: STAT_SPEC > ; # [doc = "Status Register"]
pub mod stat { # [doc = "Register `STAT` reader"]
pub type R = crate :: R < STAT_SPEC > ; # [doc = "Field `STAT_RESETSTKY` reader - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
pub type STAT_RESETSTKY_R = crate :: BitReader < STAT_RESETSTKY_A > ; # [doc = "This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_RESETSTKY_A { # [doc = "0: NORES"]
STAT_RESETSTKY_NORES = 0 , # [doc = "1: RESET"]
STAT_RESETSTKY_RESET = 1 , } impl From < STAT_RESETSTKY_A > for bool { # [inline (always)]
fn from (variant : STAT_RESETSTKY_A) -> Self { variant as u8 != 0 } } impl STAT_RESETSTKY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_RESETSTKY_A { match self . bits { false => STAT_RESETSTKY_A :: STAT_RESETSTKY_NORES , true => STAT_RESETSTKY_A :: STAT_RESETSTKY_RESET , } } # [doc = "NORES"]
# [inline (always)]
pub fn is_stat_resetstky_nores (& self) -> bool { * self == STAT_RESETSTKY_A :: STAT_RESETSTKY_NORES } # [doc = "RESET"]
# [inline (always)]
pub fn is_stat_resetstky_reset (& self) -> bool { * self == STAT_RESETSTKY_A :: STAT_RESETSTKY_RESET } } impl R { # [doc = "Bit 16 - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
# [inline (always)]
pub fn stat_resetstky (& self) -> STAT_RESETSTKY_R { STAT_RESETSTKY_R :: new (((self . bits >> 16) & 1) != 0) } } # [doc = "Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct STAT_SPEC ; impl crate :: RegisterSpec for STAT_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`stat::R`](R) reader structure"]
impl crate :: Readable for STAT_SPEC { } # [doc = "`reset()` method sets STAT to value 0"]
impl crate :: Resettable for STAT_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CLKDIV (rw) register accessor: Clock Divider\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkdiv::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkdiv::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clkdiv`]
module"]
pub type CLKDIV = crate :: Reg < clkdiv :: CLKDIV_SPEC > ; # [doc = "Clock Divider"]
pub mod clkdiv { # [doc = "Register `CLKDIV` reader"]
pub type R = crate :: R < CLKDIV_SPEC > ; # [doc = "Register `CLKDIV` writer"]
pub type W = crate :: W < CLKDIV_SPEC > ; # [doc = "Field `CLKDIV_RATIO` reader - Selects divide ratio of module clock"]
pub type CLKDIV_RATIO_R = crate :: FieldReader < CLKDIV_RATIO_A > ; # [doc = "Selects divide ratio of module clock\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CLKDIV_RATIO_A { # [doc = "0: DIV_BY_1"]
CLKDIV_RATIO_DIV_BY_1 = 0 , # [doc = "1: DIV_BY_2"]
CLKDIV_RATIO_DIV_BY_2 = 1 , # [doc = "2: DIV_BY_3"]
CLKDIV_RATIO_DIV_BY_3 = 2 , # [doc = "3: DIV_BY_4"]
CLKDIV_RATIO_DIV_BY_4 = 3 , # [doc = "4: DIV_BY_5"]
CLKDIV_RATIO_DIV_BY_5 = 4 , # [doc = "5: DIV_BY_6"]
CLKDIV_RATIO_DIV_BY_6 = 5 , # [doc = "6: DIV_BY_7"]
CLKDIV_RATIO_DIV_BY_7 = 6 , # [doc = "7: DIV_BY_8"]
CLKDIV_RATIO_DIV_BY_8 = 7 , } impl From < CLKDIV_RATIO_A > for u8 { # [inline (always)]
fn from (variant : CLKDIV_RATIO_A) -> Self { variant as _ } } impl crate :: FieldSpec for CLKDIV_RATIO_A { type Ux = u8 ; } impl CLKDIV_RATIO_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKDIV_RATIO_A { match self . bits { 0 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_1 , 1 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_2 , 2 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_3 , 3 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_4 , 4 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_5 , 5 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_6 , 6 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_7 , 7 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_8 , _ => unreachable ! () , } } # [doc = "DIV_BY_1"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_1 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_1 } # [doc = "DIV_BY_2"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_2 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_2 } # [doc = "DIV_BY_3"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_3 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_3 } # [doc = "DIV_BY_4"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_4 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_4 } # [doc = "DIV_BY_5"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_5 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_5 } # [doc = "DIV_BY_6"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_6 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_6 } # [doc = "DIV_BY_7"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_7 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_7 } # [doc = "DIV_BY_8"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_8 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_8 } } # [doc = "Field `CLKDIV_RATIO` writer - Selects divide ratio of module clock"]
pub type CLKDIV_RATIO_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 3 , O , CLKDIV_RATIO_A > ; impl < 'a , REG , const O : u8 > CLKDIV_RATIO_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DIV_BY_1"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_1 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_1) } # [doc = "DIV_BY_2"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_2 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_2) } # [doc = "DIV_BY_3"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_3 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_3) } # [doc = "DIV_BY_4"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_4 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_4) } # [doc = "DIV_BY_5"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_5 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_5) } # [doc = "DIV_BY_6"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_6 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_6) } # [doc = "DIV_BY_7"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_7 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_7) } # [doc = "DIV_BY_8"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_8 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_8) } } impl R { # [doc = "Bits 0:2 - Selects divide ratio of module clock"]
# [inline (always)]
pub fn clkdiv_ratio (& self) -> CLKDIV_RATIO_R { CLKDIV_RATIO_R :: new ((self . bits & 7) as u8) } } impl W { # [doc = "Bits 0:2 - Selects divide ratio of module clock"]
# [inline (always)]
# [must_use]
pub fn clkdiv_ratio (& mut self) -> CLKDIV_RATIO_W < CLKDIV_SPEC , 0 > { CLKDIV_RATIO_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Clock Divider\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkdiv::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkdiv::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CLKDIV_SPEC ; impl crate :: RegisterSpec for CLKDIV_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`clkdiv::R`](R) reader structure"]
impl crate :: Readable for CLKDIV_SPEC { } # [doc = "`write(|w| ..)` method takes [`clkdiv::W`](W) writer structure"]
impl crate :: Writable for CLKDIV_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CLKDIV to value 0"]
impl crate :: Resettable for CLKDIV_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CLKSEL (rw) register accessor: Clock Select for Ultra Low Power peripherals\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clksel::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clksel::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clksel`]
module"]
pub type CLKSEL = crate :: Reg < clksel :: CLKSEL_SPEC > ; # [doc = "Clock Select for Ultra Low Power peripherals"]
pub mod clksel { # [doc = "Register `CLKSEL` reader"]
pub type R = crate :: R < CLKSEL_SPEC > ; # [doc = "Register `CLKSEL` writer"]
pub type W = crate :: W < CLKSEL_SPEC > ; # [doc = "Field `CLKSEL_MFCLK_SEL` reader - Selects MFCLK as clock source if enabled"]
pub type CLKSEL_MFCLK_SEL_R = crate :: BitReader < CLKSEL_MFCLK_SEL_A > ; # [doc = "Selects MFCLK as clock source if enabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKSEL_MFCLK_SEL_A { # [doc = "0: DISABLE"]
CLKSEL_MFCLK_SEL_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKSEL_MFCLK_SEL_ENABLE = 1 , } impl From < CLKSEL_MFCLK_SEL_A > for bool { # [inline (always)]
fn from (variant : CLKSEL_MFCLK_SEL_A) -> Self { variant as u8 != 0 } } impl CLKSEL_MFCLK_SEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKSEL_MFCLK_SEL_A { match self . bits { false => CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_DISABLE , true => CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clksel_mfclk_sel_disable (& self) -> bool { * self == CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clksel_mfclk_sel_enable (& self) -> bool { * self == CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_ENABLE } } # [doc = "Field `CLKSEL_MFCLK_SEL` writer - Selects MFCLK as clock source if enabled"]
pub type CLKSEL_MFCLK_SEL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKSEL_MFCLK_SEL_A > ; impl < 'a , REG , const O : u8 > CLKSEL_MFCLK_SEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clksel_mfclk_sel_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clksel_mfclk_sel_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_ENABLE) } } # [doc = "Field `CLKSEL_BUSCLK_SEL` reader - Selects BUSCLK as clock source if enabled"]
pub type CLKSEL_BUSCLK_SEL_R = crate :: BitReader < CLKSEL_BUSCLK_SEL_A > ; # [doc = "Selects BUSCLK as clock source if enabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKSEL_BUSCLK_SEL_A { # [doc = "0: DISABLE"]
CLKSEL_BUSCLK_SEL_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKSEL_BUSCLK_SEL_ENABLE = 1 , } impl From < CLKSEL_BUSCLK_SEL_A > for bool { # [inline (always)]
fn from (variant : CLKSEL_BUSCLK_SEL_A) -> Self { variant as u8 != 0 } } impl CLKSEL_BUSCLK_SEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKSEL_BUSCLK_SEL_A { match self . bits { false => CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_DISABLE , true => CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clksel_busclk_sel_disable (& self) -> bool { * self == CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clksel_busclk_sel_enable (& self) -> bool { * self == CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_ENABLE } } # [doc = "Field `CLKSEL_BUSCLK_SEL` writer - Selects BUSCLK as clock source if enabled"]
pub type CLKSEL_BUSCLK_SEL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKSEL_BUSCLK_SEL_A > ; impl < 'a , REG , const O : u8 > CLKSEL_BUSCLK_SEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clksel_busclk_sel_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clksel_busclk_sel_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_ENABLE) } } impl R { # [doc = "Bit 2 - Selects MFCLK as clock source if enabled"]
# [inline (always)]
pub fn clksel_mfclk_sel (& self) -> CLKSEL_MFCLK_SEL_R { CLKSEL_MFCLK_SEL_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Selects BUSCLK as clock source if enabled"]
# [inline (always)]
pub fn clksel_busclk_sel (& self) -> CLKSEL_BUSCLK_SEL_R { CLKSEL_BUSCLK_SEL_R :: new (((self . bits >> 3) & 1) != 0) } } impl W { # [doc = "Bit 2 - Selects MFCLK as clock source if enabled"]
# [inline (always)]
# [must_use]
pub fn clksel_mfclk_sel (& mut self) -> CLKSEL_MFCLK_SEL_W < CLKSEL_SPEC , 2 > { CLKSEL_MFCLK_SEL_W :: new (self) } # [doc = "Bit 3 - Selects BUSCLK as clock source if enabled"]
# [inline (always)]
# [must_use]
pub fn clksel_busclk_sel (& mut self) -> CLKSEL_BUSCLK_SEL_W < CLKSEL_SPEC , 3 > { CLKSEL_BUSCLK_SEL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Clock Select for Ultra Low Power peripherals\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clksel::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clksel::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CLKSEL_SPEC ; impl crate :: RegisterSpec for CLKSEL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`clksel::R`](R) reader structure"]
impl crate :: Readable for CLKSEL_SPEC { } # [doc = "`write(|w| ..)` method takes [`clksel::W`](W) writer structure"]
impl crate :: Writable for CLKSEL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CLKSEL to value 0"]
impl crate :: Resettable for CLKSEL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "PDBGCTL (rw) register accessor: Peripheral Debug Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pdbgctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pdbgctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pdbgctl`]
module"]
pub type PDBGCTL = crate :: Reg < pdbgctl :: PDBGCTL_SPEC > ; # [doc = "Peripheral Debug Control"]
pub mod pdbgctl { # [doc = "Register `PDBGCTL` reader"]
pub type R = crate :: R < PDBGCTL_SPEC > ; # [doc = "Register `PDBGCTL` writer"]
pub type W = crate :: W < PDBGCTL_SPEC > ; # [doc = "Field `PDBGCTL_FREE` reader - Free run control"]
pub type PDBGCTL_FREE_R = crate :: BitReader < PDBGCTL_FREE_A > ; # [doc = "Free run control\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PDBGCTL_FREE_A { # [doc = "0: STOP"]
PDBGCTL_FREE_STOP = 0 , # [doc = "1: RUN"]
PDBGCTL_FREE_RUN = 1 , } impl From < PDBGCTL_FREE_A > for bool { # [inline (always)]
fn from (variant : PDBGCTL_FREE_A) -> Self { variant as u8 != 0 } } impl PDBGCTL_FREE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PDBGCTL_FREE_A { match self . bits { false => PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP , true => PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN , } } # [doc = "STOP"]
# [inline (always)]
pub fn is_pdbgctl_free_stop (& self) -> bool { * self == PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP } # [doc = "RUN"]
# [inline (always)]
pub fn is_pdbgctl_free_run (& self) -> bool { * self == PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN } } # [doc = "Field `PDBGCTL_FREE` writer - Free run control"]
pub type PDBGCTL_FREE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PDBGCTL_FREE_A > ; impl < 'a , REG , const O : u8 > PDBGCTL_FREE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "STOP"]
# [inline (always)]
pub fn pdbgctl_free_stop (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP) } # [doc = "RUN"]
# [inline (always)]
pub fn pdbgctl_free_run (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN) } } # [doc = "Field `PDBGCTL_SOFT` reader - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
pub type PDBGCTL_SOFT_R = crate :: BitReader < PDBGCTL_SOFT_A > ; # [doc = "Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PDBGCTL_SOFT_A { # [doc = "0: IMMEDIATE"]
PDBGCTL_SOFT_IMMEDIATE = 0 , # [doc = "1: DELAYED"]
PDBGCTL_SOFT_DELAYED = 1 , } impl From < PDBGCTL_SOFT_A > for bool { # [inline (always)]
fn from (variant : PDBGCTL_SOFT_A) -> Self { variant as u8 != 0 } } impl PDBGCTL_SOFT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PDBGCTL_SOFT_A { match self . bits { false => PDBGCTL_SOFT_A :: PDBGCTL_SOFT_IMMEDIATE , true => PDBGCTL_SOFT_A :: PDBGCTL_SOFT_DELAYED , } } # [doc = "IMMEDIATE"]
# [inline (always)]
pub fn is_pdbgctl_soft_immediate (& self) -> bool { * self == PDBGCTL_SOFT_A :: PDBGCTL_SOFT_IMMEDIATE } # [doc = "DELAYED"]
# [inline (always)]
pub fn is_pdbgctl_soft_delayed (& self) -> bool { * self == PDBGCTL_SOFT_A :: PDBGCTL_SOFT_DELAYED } } # [doc = "Field `PDBGCTL_SOFT` writer - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
pub type PDBGCTL_SOFT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PDBGCTL_SOFT_A > ; impl < 'a , REG , const O : u8 > PDBGCTL_SOFT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "IMMEDIATE"]
# [inline (always)]
pub fn pdbgctl_soft_immediate (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_SOFT_A :: PDBGCTL_SOFT_IMMEDIATE) } # [doc = "DELAYED"]
# [inline (always)]
pub fn pdbgctl_soft_delayed (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_SOFT_A :: PDBGCTL_SOFT_DELAYED) } } impl R { # [doc = "Bit 0 - Free run control"]
# [inline (always)]
pub fn pdbgctl_free (& self) -> PDBGCTL_FREE_R { PDBGCTL_FREE_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
# [inline (always)]
pub fn pdbgctl_soft (& self) -> PDBGCTL_SOFT_R { PDBGCTL_SOFT_R :: new (((self . bits >> 1) & 1) != 0) } } impl W { # [doc = "Bit 0 - Free run control"]
# [inline (always)]
# [must_use]
pub fn pdbgctl_free (& mut self) -> PDBGCTL_FREE_W < PDBGCTL_SPEC , 0 > { PDBGCTL_FREE_W :: new (self) } # [doc = "Bit 1 - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
# [inline (always)]
# [must_use]
pub fn pdbgctl_soft (& mut self) -> PDBGCTL_SOFT_W < PDBGCTL_SPEC , 1 > { PDBGCTL_SOFT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Peripheral Debug Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pdbgctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pdbgctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PDBGCTL_SPEC ; impl crate :: RegisterSpec for PDBGCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pdbgctl::R`](R) reader structure"]
impl crate :: Readable for PDBGCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`pdbgctl::W`](W) writer structure"]
impl crate :: Writable for PDBGCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PDBGCTL to value 0"]
impl crate :: Resettable for PDBGCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_IIDX (r) register accessor: Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_iidx`]
module"]
pub type INT_EVENT0_IIDX = crate :: Reg < int_event0_iidx :: INT_EVENT0_IIDX_SPEC > ; # [doc = "Interrupt index"]
pub mod int_event0_iidx { # [doc = "Register `INT_EVENT0_IIDX` reader"]
pub type R = crate :: R < INT_EVENT0_IIDX_SPEC > ; # [doc = "Field `INT_EVENT0_IIDX_STAT` reader - I2C Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in RIS and MISC. 15h-1Fh = Reserved"]
pub type INT_EVENT0_IIDX_STAT_R = crate :: FieldReader < INT_EVENT0_IIDX_STAT_A > ; # [doc = "I2C Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in RIS and MISC. 15h-1Fh = Reserved\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum INT_EVENT0_IIDX_STAT_A { # [doc = "0: NO_INTR"]
INT_EVENT0_IIDX_STAT_NO_INTR = 0 , # [doc = "1: MRXDONEFG"]
INT_EVENT0_IIDX_STAT_MRXDONEFG = 1 , # [doc = "2: MTXDONEFG"]
INT_EVENT0_IIDX_STAT_MTXDONEFG = 2 , # [doc = "3: MRXFIFOTRG"]
INT_EVENT0_IIDX_STAT_MRXFIFOTRG = 3 , # [doc = "4: MTXFIFOTRG"]
INT_EVENT0_IIDX_STAT_MTXFIFOTRG = 4 , # [doc = "5: MRXFIFOFULL"]
INT_EVENT0_IIDX_STAT_MRXFIFOFULL = 5 , # [doc = "6: MTX_EMPTY"]
INT_EVENT0_IIDX_STAT_MTX_EMPTY = 6 , # [doc = "8: MNACKFG"]
INT_EVENT0_IIDX_STAT_MNACKFG = 8 , # [doc = "9: MSTARTFG"]
INT_EVENT0_IIDX_STAT_MSTARTFG = 9 , # [doc = "10: MSTOPFG"]
INT_EVENT0_IIDX_STAT_MSTOPFG = 10 , # [doc = "11: MARBLOSTFG"]
INT_EVENT0_IIDX_STAT_MARBLOSTFG = 11 , # [doc = "12: MDMA_DONE1_CH2"]
INT_EVENT0_IIDX_STAT_MDMA_DONE1_CH2 = 12 , # [doc = "13: MDMA_DONE1_CH3"]
INT_EVENT0_IIDX_STAT_MDMA_DONE1_CH3 = 13 , # [doc = "14: MPEC_RX_ERR"]
INT_EVENT0_IIDX_STAT_MPEC_RX_ERR = 14 , # [doc = "15: TIMEOUTA"]
INT_EVENT0_IIDX_STAT_TIMEOUTA = 15 , # [doc = "16: TIMEOUTB"]
INT_EVENT0_IIDX_STAT_TIMEOUTB = 16 , # [doc = "17: SRXDONEFG"]
INT_EVENT0_IIDX_STAT_SRXDONEFG = 17 , # [doc = "18: STXDONEFG"]
INT_EVENT0_IIDX_STAT_STXDONEFG = 18 , # [doc = "19: SRXFIFOTRG"]
INT_EVENT0_IIDX_STAT_SRXFIFOTRG = 19 , # [doc = "20: STXFIFOTRG"]
INT_EVENT0_IIDX_STAT_STXFIFOTRG = 20 , # [doc = "21: SRXFIFOFULL"]
INT_EVENT0_IIDX_STAT_SRXFIFOFULL = 21 , # [doc = "22: STXEMPTY"]
INT_EVENT0_IIDX_STAT_STXEMPTY = 22 , # [doc = "23: SSTARTFG"]
INT_EVENT0_IIDX_STAT_SSTARTFG = 23 , # [doc = "24: SSTOPFG"]
INT_EVENT0_IIDX_STAT_SSTOPFG = 24 , # [doc = "25: SGENCALL"]
INT_EVENT0_IIDX_STAT_SGENCALL = 25 , # [doc = "26: SDMA_DONE1_CH2"]
INT_EVENT0_IIDX_STAT_SDMA_DONE1_CH2 = 26 , # [doc = "27: SDMA_DONE1_CH3"]
INT_EVENT0_IIDX_STAT_SDMA_DONE1_CH3 = 27 , # [doc = "28: SPEC_RX_ERR"]
INT_EVENT0_IIDX_STAT_SPEC_RX_ERR = 28 , # [doc = "29: STX_UNFL"]
INT_EVENT0_IIDX_STAT_STX_UNFL = 29 , # [doc = "30: SRX_OVFL"]
INT_EVENT0_IIDX_STAT_SRX_OVFL = 30 , # [doc = "31: SARBLOST"]
INT_EVENT0_IIDX_STAT_SARBLOST = 31 , # [doc = "32: INTR_OVFL"]
INT_EVENT0_IIDX_STAT_INTR_OVFL = 32 , } impl From < INT_EVENT0_IIDX_STAT_A > for u8 { # [inline (always)]
fn from (variant : INT_EVENT0_IIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for INT_EVENT0_IIDX_STAT_A { type Ux = u8 ; } impl INT_EVENT0_IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < INT_EVENT0_IIDX_STAT_A > { match self . bits { 0 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_NO_INTR) , 1 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MRXDONEFG) , 2 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MTXDONEFG) , 3 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MRXFIFOTRG) , 4 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MTXFIFOTRG) , 5 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MRXFIFOFULL) , 6 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MTX_EMPTY) , 8 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MNACKFG) , 9 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MSTARTFG) , 10 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MSTOPFG) , 11 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MARBLOSTFG) , 12 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MDMA_DONE1_CH2) , 13 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MDMA_DONE1_CH3) , 14 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MPEC_RX_ERR) , 15 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_TIMEOUTA) , 16 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_TIMEOUTB) , 17 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SRXDONEFG) , 18 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_STXDONEFG) , 19 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SRXFIFOTRG) , 20 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_STXFIFOTRG) , 21 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SRXFIFOFULL) , 22 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_STXEMPTY) , 23 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SSTARTFG) , 24 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SSTOPFG) , 25 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SGENCALL) , 26 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SDMA_DONE1_CH2) , 27 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SDMA_DONE1_CH3) , 28 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SPEC_RX_ERR) , 29 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_STX_UNFL) , 30 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SRX_OVFL) , 31 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SARBLOST) , 32 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_INTR_OVFL) , _ => None , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_no_intr (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_NO_INTR } # [doc = "MRXDONEFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_mrxdonefg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MRXDONEFG } # [doc = "MTXDONEFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_mtxdonefg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MTXDONEFG } # [doc = "MRXFIFOTRG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_mrxfifotrg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MRXFIFOTRG } # [doc = "MTXFIFOTRG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_mtxfifotrg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MTXFIFOTRG } # [doc = "MRXFIFOFULL"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_mrxfifofull (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MRXFIFOFULL } # [doc = "MTX_EMPTY"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_mtx_empty (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MTX_EMPTY } # [doc = "MNACKFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_mnackfg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MNACKFG } # [doc = "MSTARTFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_mstartfg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MSTARTFG } # [doc = "MSTOPFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_mstopfg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MSTOPFG } # [doc = "MARBLOSTFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_marblostfg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MARBLOSTFG } # [doc = "MDMA_DONE1_CH2"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_mdma_done1_ch2 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MDMA_DONE1_CH2 } # [doc = "MDMA_DONE1_CH3"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_mdma_done1_ch3 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MDMA_DONE1_CH3 } # [doc = "MPEC_RX_ERR"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_mpec_rx_err (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MPEC_RX_ERR } # [doc = "TIMEOUTA"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_timeouta (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_TIMEOUTA } # [doc = "TIMEOUTB"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_timeoutb (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_TIMEOUTB } # [doc = "SRXDONEFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_srxdonefg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SRXDONEFG } # [doc = "STXDONEFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_stxdonefg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_STXDONEFG } # [doc = "SRXFIFOTRG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_srxfifotrg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SRXFIFOTRG } # [doc = "STXFIFOTRG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_stxfifotrg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_STXFIFOTRG } # [doc = "SRXFIFOFULL"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_srxfifofull (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SRXFIFOFULL } # [doc = "STXEMPTY"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_stxempty (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_STXEMPTY } # [doc = "SSTARTFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_sstartfg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SSTARTFG } # [doc = "SSTOPFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_sstopfg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SSTOPFG } # [doc = "SGENCALL"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_sgencall (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SGENCALL } # [doc = "SDMA_DONE1_CH2"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_sdma_done1_ch2 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SDMA_DONE1_CH2 } # [doc = "SDMA_DONE1_CH3"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_sdma_done1_ch3 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SDMA_DONE1_CH3 } # [doc = "SPEC_RX_ERR"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_spec_rx_err (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SPEC_RX_ERR } # [doc = "STX_UNFL"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_stx_unfl (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_STX_UNFL } # [doc = "SRX_OVFL"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_srx_ovfl (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SRX_OVFL } # [doc = "SARBLOST"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_sarblost (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_SARBLOST } # [doc = "INTR_OVFL"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_intr_ovfl (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_INTR_OVFL } } impl R { # [doc = "Bits 0:7 - I2C Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in RIS and MISC. 15h-1Fh = Reserved"]
# [inline (always)]
pub fn int_event0_iidx_stat (& self) -> INT_EVENT0_IIDX_STAT_R { INT_EVENT0_IIDX_STAT_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_IIDX_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event0_iidx::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT0_IIDX_SPEC { } # [doc = "`reset()` method sets INT_EVENT0_IIDX to value 0"]
impl crate :: Resettable for INT_EVENT0_IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_IMASK (rw) register accessor: Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_imask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_imask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_imask`]
module"]
pub type INT_EVENT0_IMASK = crate :: Reg < int_event0_imask :: INT_EVENT0_IMASK_SPEC > ; # [doc = "Interrupt mask"]
pub mod int_event0_imask { # [doc = "Register `INT_EVENT0_IMASK` reader"]
pub type R = crate :: R < INT_EVENT0_IMASK_SPEC > ; # [doc = "Register `INT_EVENT0_IMASK` writer"]
pub type W = crate :: W < INT_EVENT0_IMASK_SPEC > ; # [doc = "Field `INT_EVENT0_IMASK_MRXDONE` reader - Master Receive Transaction completed Interrupt"]
pub type INT_EVENT0_IMASK_MRXDONE_R = crate :: BitReader < INT_EVENT0_IMASK_MRXDONE_A > ; # [doc = "Master Receive Transaction completed Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_MRXDONE_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_MRXDONE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_MRXDONE_SET = 1 , } impl From < INT_EVENT0_IMASK_MRXDONE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_MRXDONE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_MRXDONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_MRXDONE_A { match self . bits { false => INT_EVENT0_IMASK_MRXDONE_A :: INT_EVENT0_IMASK_MRXDONE_CLR , true => INT_EVENT0_IMASK_MRXDONE_A :: INT_EVENT0_IMASK_MRXDONE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_mrxdone_clr (& self) -> bool { * self == INT_EVENT0_IMASK_MRXDONE_A :: INT_EVENT0_IMASK_MRXDONE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_mrxdone_set (& self) -> bool { * self == INT_EVENT0_IMASK_MRXDONE_A :: INT_EVENT0_IMASK_MRXDONE_SET } } # [doc = "Field `INT_EVENT0_IMASK_MRXDONE` writer - Master Receive Transaction completed Interrupt"]
pub type INT_EVENT0_IMASK_MRXDONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_MRXDONE_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_MRXDONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_mrxdone_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MRXDONE_A :: INT_EVENT0_IMASK_MRXDONE_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_mrxdone_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MRXDONE_A :: INT_EVENT0_IMASK_MRXDONE_SET) } } # [doc = "Field `INT_EVENT0_IMASK_MTXDONE` reader - Master Transmit Transaction completed Interrupt"]
pub type INT_EVENT0_IMASK_MTXDONE_R = crate :: BitReader < INT_EVENT0_IMASK_MTXDONE_A > ; # [doc = "Master Transmit Transaction completed Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_MTXDONE_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_MTXDONE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_MTXDONE_SET = 1 , } impl From < INT_EVENT0_IMASK_MTXDONE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_MTXDONE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_MTXDONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_MTXDONE_A { match self . bits { false => INT_EVENT0_IMASK_MTXDONE_A :: INT_EVENT0_IMASK_MTXDONE_CLR , true => INT_EVENT0_IMASK_MTXDONE_A :: INT_EVENT0_IMASK_MTXDONE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_mtxdone_clr (& self) -> bool { * self == INT_EVENT0_IMASK_MTXDONE_A :: INT_EVENT0_IMASK_MTXDONE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_mtxdone_set (& self) -> bool { * self == INT_EVENT0_IMASK_MTXDONE_A :: INT_EVENT0_IMASK_MTXDONE_SET } } # [doc = "Field `INT_EVENT0_IMASK_MTXDONE` writer - Master Transmit Transaction completed Interrupt"]
pub type INT_EVENT0_IMASK_MTXDONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_MTXDONE_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_MTXDONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_mtxdone_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MTXDONE_A :: INT_EVENT0_IMASK_MTXDONE_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_mtxdone_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MTXDONE_A :: INT_EVENT0_IMASK_MTXDONE_SET) } } # [doc = "Field `INT_EVENT0_IMASK_MRXFIFOTRG` reader - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT0_IMASK_MRXFIFOTRG_R = crate :: BitReader < INT_EVENT0_IMASK_MRXFIFOTRG_A > ; # [doc = "Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_MRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_MRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_MRXFIFOTRG_SET = 1 , } impl From < INT_EVENT0_IMASK_MRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_MRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_MRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_MRXFIFOTRG_A { match self . bits { false => INT_EVENT0_IMASK_MRXFIFOTRG_A :: INT_EVENT0_IMASK_MRXFIFOTRG_CLR , true => INT_EVENT0_IMASK_MRXFIFOTRG_A :: INT_EVENT0_IMASK_MRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_mrxfifotrg_clr (& self) -> bool { * self == INT_EVENT0_IMASK_MRXFIFOTRG_A :: INT_EVENT0_IMASK_MRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_mrxfifotrg_set (& self) -> bool { * self == INT_EVENT0_IMASK_MRXFIFOTRG_A :: INT_EVENT0_IMASK_MRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT0_IMASK_MRXFIFOTRG` writer - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT0_IMASK_MRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_MRXFIFOTRG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_MRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_mrxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MRXFIFOTRG_A :: INT_EVENT0_IMASK_MRXFIFOTRG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_mrxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MRXFIFOTRG_A :: INT_EVENT0_IMASK_MRXFIFOTRG_SET) } } # [doc = "Field `INT_EVENT0_IMASK_MTXFIFOTRG` reader - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT0_IMASK_MTXFIFOTRG_R = crate :: BitReader < INT_EVENT0_IMASK_MTXFIFOTRG_A > ; # [doc = "Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_MTXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_MTXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_MTXFIFOTRG_SET = 1 , } impl From < INT_EVENT0_IMASK_MTXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_MTXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_MTXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_MTXFIFOTRG_A { match self . bits { false => INT_EVENT0_IMASK_MTXFIFOTRG_A :: INT_EVENT0_IMASK_MTXFIFOTRG_CLR , true => INT_EVENT0_IMASK_MTXFIFOTRG_A :: INT_EVENT0_IMASK_MTXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_mtxfifotrg_clr (& self) -> bool { * self == INT_EVENT0_IMASK_MTXFIFOTRG_A :: INT_EVENT0_IMASK_MTXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_mtxfifotrg_set (& self) -> bool { * self == INT_EVENT0_IMASK_MTXFIFOTRG_A :: INT_EVENT0_IMASK_MTXFIFOTRG_SET } } # [doc = "Field `INT_EVENT0_IMASK_MTXFIFOTRG` writer - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT0_IMASK_MTXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_MTXFIFOTRG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_MTXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_mtxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MTXFIFOTRG_A :: INT_EVENT0_IMASK_MTXFIFOTRG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_mtxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MTXFIFOTRG_A :: INT_EVENT0_IMASK_MTXFIFOTRG_SET) } } # [doc = "Field `INT_EVENT0_IMASK_MRXFIFOFULL` reader - RXFIFO full event. This interrupt is set if an RX FIFO is full."]
pub type INT_EVENT0_IMASK_MRXFIFOFULL_R = crate :: BitReader < INT_EVENT0_IMASK_MRXFIFOFULL_A > ; # [doc = "RXFIFO full event. This interrupt is set if an RX FIFO is full.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_MRXFIFOFULL_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_MRXFIFOFULL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_MRXFIFOFULL_SET = 1 , } impl From < INT_EVENT0_IMASK_MRXFIFOFULL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_MRXFIFOFULL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_MRXFIFOFULL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_MRXFIFOFULL_A { match self . bits { false => INT_EVENT0_IMASK_MRXFIFOFULL_A :: INT_EVENT0_IMASK_MRXFIFOFULL_CLR , true => INT_EVENT0_IMASK_MRXFIFOFULL_A :: INT_EVENT0_IMASK_MRXFIFOFULL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_mrxfifofull_clr (& self) -> bool { * self == INT_EVENT0_IMASK_MRXFIFOFULL_A :: INT_EVENT0_IMASK_MRXFIFOFULL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_mrxfifofull_set (& self) -> bool { * self == INT_EVENT0_IMASK_MRXFIFOFULL_A :: INT_EVENT0_IMASK_MRXFIFOFULL_SET } } # [doc = "Field `INT_EVENT0_IMASK_MRXFIFOFULL` writer - RXFIFO full event. This interrupt is set if an RX FIFO is full."]
pub type INT_EVENT0_IMASK_MRXFIFOFULL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_MRXFIFOFULL_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_MRXFIFOFULL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_mrxfifofull_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MRXFIFOFULL_A :: INT_EVENT0_IMASK_MRXFIFOFULL_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_mrxfifofull_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MRXFIFOFULL_A :: INT_EVENT0_IMASK_MRXFIFOFULL_SET) } } # [doc = "Field `INT_EVENT0_IMASK_MTXEMPTY` reader - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
pub type INT_EVENT0_IMASK_MTXEMPTY_R = crate :: BitReader < INT_EVENT0_IMASK_MTXEMPTY_A > ; # [doc = "Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_MTXEMPTY_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_MTXEMPTY_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_MTXEMPTY_SET = 1 , } impl From < INT_EVENT0_IMASK_MTXEMPTY_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_MTXEMPTY_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_MTXEMPTY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_MTXEMPTY_A { match self . bits { false => INT_EVENT0_IMASK_MTXEMPTY_A :: INT_EVENT0_IMASK_MTXEMPTY_CLR , true => INT_EVENT0_IMASK_MTXEMPTY_A :: INT_EVENT0_IMASK_MTXEMPTY_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_mtxempty_clr (& self) -> bool { * self == INT_EVENT0_IMASK_MTXEMPTY_A :: INT_EVENT0_IMASK_MTXEMPTY_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_mtxempty_set (& self) -> bool { * self == INT_EVENT0_IMASK_MTXEMPTY_A :: INT_EVENT0_IMASK_MTXEMPTY_SET } } # [doc = "Field `INT_EVENT0_IMASK_MTXEMPTY` writer - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
pub type INT_EVENT0_IMASK_MTXEMPTY_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_MTXEMPTY_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_MTXEMPTY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_mtxempty_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MTXEMPTY_A :: INT_EVENT0_IMASK_MTXEMPTY_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_mtxempty_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MTXEMPTY_A :: INT_EVENT0_IMASK_MTXEMPTY_SET) } } # [doc = "Field `INT_EVENT0_IMASK_MNACK` reader - Address/Data NACK Interrupt"]
pub type INT_EVENT0_IMASK_MNACK_R = crate :: BitReader < INT_EVENT0_IMASK_MNACK_A > ; # [doc = "Address/Data NACK Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_MNACK_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_MNACK_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_MNACK_SET = 1 , } impl From < INT_EVENT0_IMASK_MNACK_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_MNACK_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_MNACK_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_MNACK_A { match self . bits { false => INT_EVENT0_IMASK_MNACK_A :: INT_EVENT0_IMASK_MNACK_CLR , true => INT_EVENT0_IMASK_MNACK_A :: INT_EVENT0_IMASK_MNACK_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_mnack_clr (& self) -> bool { * self == INT_EVENT0_IMASK_MNACK_A :: INT_EVENT0_IMASK_MNACK_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_mnack_set (& self) -> bool { * self == INT_EVENT0_IMASK_MNACK_A :: INT_EVENT0_IMASK_MNACK_SET } } # [doc = "Field `INT_EVENT0_IMASK_MNACK` writer - Address/Data NACK Interrupt"]
pub type INT_EVENT0_IMASK_MNACK_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_MNACK_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_MNACK_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_mnack_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MNACK_A :: INT_EVENT0_IMASK_MNACK_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_mnack_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MNACK_A :: INT_EVENT0_IMASK_MNACK_SET) } } # [doc = "Field `INT_EVENT0_IMASK_MSTART` reader - START Detection Interrupt"]
pub type INT_EVENT0_IMASK_MSTART_R = crate :: BitReader < INT_EVENT0_IMASK_MSTART_A > ; # [doc = "START Detection Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_MSTART_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_MSTART_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_MSTART_SET = 1 , } impl From < INT_EVENT0_IMASK_MSTART_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_MSTART_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_MSTART_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_MSTART_A { match self . bits { false => INT_EVENT0_IMASK_MSTART_A :: INT_EVENT0_IMASK_MSTART_CLR , true => INT_EVENT0_IMASK_MSTART_A :: INT_EVENT0_IMASK_MSTART_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_mstart_clr (& self) -> bool { * self == INT_EVENT0_IMASK_MSTART_A :: INT_EVENT0_IMASK_MSTART_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_mstart_set (& self) -> bool { * self == INT_EVENT0_IMASK_MSTART_A :: INT_EVENT0_IMASK_MSTART_SET } } # [doc = "Field `INT_EVENT0_IMASK_MSTART` writer - START Detection Interrupt"]
pub type INT_EVENT0_IMASK_MSTART_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_MSTART_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_MSTART_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_mstart_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MSTART_A :: INT_EVENT0_IMASK_MSTART_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_mstart_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MSTART_A :: INT_EVENT0_IMASK_MSTART_SET) } } # [doc = "Field `INT_EVENT0_IMASK_MSTOP` reader - STOP Detection Interrupt"]
pub type INT_EVENT0_IMASK_MSTOP_R = crate :: BitReader < INT_EVENT0_IMASK_MSTOP_A > ; # [doc = "STOP Detection Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_MSTOP_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_MSTOP_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_MSTOP_SET = 1 , } impl From < INT_EVENT0_IMASK_MSTOP_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_MSTOP_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_MSTOP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_MSTOP_A { match self . bits { false => INT_EVENT0_IMASK_MSTOP_A :: INT_EVENT0_IMASK_MSTOP_CLR , true => INT_EVENT0_IMASK_MSTOP_A :: INT_EVENT0_IMASK_MSTOP_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_mstop_clr (& self) -> bool { * self == INT_EVENT0_IMASK_MSTOP_A :: INT_EVENT0_IMASK_MSTOP_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_mstop_set (& self) -> bool { * self == INT_EVENT0_IMASK_MSTOP_A :: INT_EVENT0_IMASK_MSTOP_SET } } # [doc = "Field `INT_EVENT0_IMASK_MSTOP` writer - STOP Detection Interrupt"]
pub type INT_EVENT0_IMASK_MSTOP_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_MSTOP_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_MSTOP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_mstop_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MSTOP_A :: INT_EVENT0_IMASK_MSTOP_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_mstop_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MSTOP_A :: INT_EVENT0_IMASK_MSTOP_SET) } } # [doc = "Field `INT_EVENT0_IMASK_MARBLOST` reader - Arbitration Lost Interrupt"]
pub type INT_EVENT0_IMASK_MARBLOST_R = crate :: BitReader < INT_EVENT0_IMASK_MARBLOST_A > ; # [doc = "Arbitration Lost Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_MARBLOST_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_MARBLOST_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_MARBLOST_SET = 1 , } impl From < INT_EVENT0_IMASK_MARBLOST_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_MARBLOST_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_MARBLOST_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_MARBLOST_A { match self . bits { false => INT_EVENT0_IMASK_MARBLOST_A :: INT_EVENT0_IMASK_MARBLOST_CLR , true => INT_EVENT0_IMASK_MARBLOST_A :: INT_EVENT0_IMASK_MARBLOST_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_marblost_clr (& self) -> bool { * self == INT_EVENT0_IMASK_MARBLOST_A :: INT_EVENT0_IMASK_MARBLOST_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_marblost_set (& self) -> bool { * self == INT_EVENT0_IMASK_MARBLOST_A :: INT_EVENT0_IMASK_MARBLOST_SET } } # [doc = "Field `INT_EVENT0_IMASK_MARBLOST` writer - Arbitration Lost Interrupt"]
pub type INT_EVENT0_IMASK_MARBLOST_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_MARBLOST_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_MARBLOST_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_marblost_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MARBLOST_A :: INT_EVENT0_IMASK_MARBLOST_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_marblost_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MARBLOST_A :: INT_EVENT0_IMASK_MARBLOST_SET) } } # [doc = "Field `INT_EVENT0_IMASK_MDMA_DONE1_2` reader - DMA Done 1 on Event Channel 2"]
pub type INT_EVENT0_IMASK_MDMA_DONE1_2_R = crate :: BitReader < INT_EVENT0_IMASK_MDMA_DONE1_2_A > ; # [doc = "DMA Done 1 on Event Channel 2\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_MDMA_DONE1_2_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_MDMA_DONE1_2_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_MDMA_DONE1_2_SET = 1 , } impl From < INT_EVENT0_IMASK_MDMA_DONE1_2_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_MDMA_DONE1_2_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_MDMA_DONE1_2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_MDMA_DONE1_2_A { match self . bits { false => INT_EVENT0_IMASK_MDMA_DONE1_2_A :: INT_EVENT0_IMASK_MDMA_DONE1_2_CLR , true => INT_EVENT0_IMASK_MDMA_DONE1_2_A :: INT_EVENT0_IMASK_MDMA_DONE1_2_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_mdma_done1_2_clr (& self) -> bool { * self == INT_EVENT0_IMASK_MDMA_DONE1_2_A :: INT_EVENT0_IMASK_MDMA_DONE1_2_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_mdma_done1_2_set (& self) -> bool { * self == INT_EVENT0_IMASK_MDMA_DONE1_2_A :: INT_EVENT0_IMASK_MDMA_DONE1_2_SET } } # [doc = "Field `INT_EVENT0_IMASK_MDMA_DONE1_2` writer - DMA Done 1 on Event Channel 2"]
pub type INT_EVENT0_IMASK_MDMA_DONE1_2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_MDMA_DONE1_2_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_MDMA_DONE1_2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_mdma_done1_2_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MDMA_DONE1_2_A :: INT_EVENT0_IMASK_MDMA_DONE1_2_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_mdma_done1_2_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MDMA_DONE1_2_A :: INT_EVENT0_IMASK_MDMA_DONE1_2_SET) } } # [doc = "Field `INT_EVENT0_IMASK_MDMA_DONE1_3` reader - DMA Done 1 on Event Channel 3"]
pub type INT_EVENT0_IMASK_MDMA_DONE1_3_R = crate :: BitReader < INT_EVENT0_IMASK_MDMA_DONE1_3_A > ; # [doc = "DMA Done 1 on Event Channel 3\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_MDMA_DONE1_3_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_MDMA_DONE1_3_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_MDMA_DONE1_3_SET = 1 , } impl From < INT_EVENT0_IMASK_MDMA_DONE1_3_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_MDMA_DONE1_3_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_MDMA_DONE1_3_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_MDMA_DONE1_3_A { match self . bits { false => INT_EVENT0_IMASK_MDMA_DONE1_3_A :: INT_EVENT0_IMASK_MDMA_DONE1_3_CLR , true => INT_EVENT0_IMASK_MDMA_DONE1_3_A :: INT_EVENT0_IMASK_MDMA_DONE1_3_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_mdma_done1_3_clr (& self) -> bool { * self == INT_EVENT0_IMASK_MDMA_DONE1_3_A :: INT_EVENT0_IMASK_MDMA_DONE1_3_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_mdma_done1_3_set (& self) -> bool { * self == INT_EVENT0_IMASK_MDMA_DONE1_3_A :: INT_EVENT0_IMASK_MDMA_DONE1_3_SET } } # [doc = "Field `INT_EVENT0_IMASK_MDMA_DONE1_3` writer - DMA Done 1 on Event Channel 3"]
pub type INT_EVENT0_IMASK_MDMA_DONE1_3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_MDMA_DONE1_3_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_MDMA_DONE1_3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_mdma_done1_3_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MDMA_DONE1_3_A :: INT_EVENT0_IMASK_MDMA_DONE1_3_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_mdma_done1_3_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MDMA_DONE1_3_A :: INT_EVENT0_IMASK_MDMA_DONE1_3_SET) } } # [doc = "Field `INT_EVENT0_IMASK_MPEC_RX_ERR` reader - Master RX Pec Error Interrupt"]
pub type INT_EVENT0_IMASK_MPEC_RX_ERR_R = crate :: BitReader < INT_EVENT0_IMASK_MPEC_RX_ERR_A > ; # [doc = "Master RX Pec Error Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_MPEC_RX_ERR_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_MPEC_RX_ERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_MPEC_RX_ERR_SET = 1 , } impl From < INT_EVENT0_IMASK_MPEC_RX_ERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_MPEC_RX_ERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_MPEC_RX_ERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_MPEC_RX_ERR_A { match self . bits { false => INT_EVENT0_IMASK_MPEC_RX_ERR_A :: INT_EVENT0_IMASK_MPEC_RX_ERR_CLR , true => INT_EVENT0_IMASK_MPEC_RX_ERR_A :: INT_EVENT0_IMASK_MPEC_RX_ERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_mpec_rx_err_clr (& self) -> bool { * self == INT_EVENT0_IMASK_MPEC_RX_ERR_A :: INT_EVENT0_IMASK_MPEC_RX_ERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_mpec_rx_err_set (& self) -> bool { * self == INT_EVENT0_IMASK_MPEC_RX_ERR_A :: INT_EVENT0_IMASK_MPEC_RX_ERR_SET } } # [doc = "Field `INT_EVENT0_IMASK_MPEC_RX_ERR` writer - Master RX Pec Error Interrupt"]
pub type INT_EVENT0_IMASK_MPEC_RX_ERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_MPEC_RX_ERR_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_MPEC_RX_ERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_mpec_rx_err_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MPEC_RX_ERR_A :: INT_EVENT0_IMASK_MPEC_RX_ERR_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_mpec_rx_err_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MPEC_RX_ERR_A :: INT_EVENT0_IMASK_MPEC_RX_ERR_SET) } } # [doc = "Field `INT_EVENT0_IMASK_TIMEOUTA` reader - Timeout A Interrupt"]
pub type INT_EVENT0_IMASK_TIMEOUTA_R = crate :: BitReader < INT_EVENT0_IMASK_TIMEOUTA_A > ; # [doc = "Timeout A Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_TIMEOUTA_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_TIMEOUTA_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_TIMEOUTA_SET = 1 , } impl From < INT_EVENT0_IMASK_TIMEOUTA_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_TIMEOUTA_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_TIMEOUTA_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_TIMEOUTA_A { match self . bits { false => INT_EVENT0_IMASK_TIMEOUTA_A :: INT_EVENT0_IMASK_TIMEOUTA_CLR , true => INT_EVENT0_IMASK_TIMEOUTA_A :: INT_EVENT0_IMASK_TIMEOUTA_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_timeouta_clr (& self) -> bool { * self == INT_EVENT0_IMASK_TIMEOUTA_A :: INT_EVENT0_IMASK_TIMEOUTA_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_timeouta_set (& self) -> bool { * self == INT_EVENT0_IMASK_TIMEOUTA_A :: INT_EVENT0_IMASK_TIMEOUTA_SET } } # [doc = "Field `INT_EVENT0_IMASK_TIMEOUTA` writer - Timeout A Interrupt"]
pub type INT_EVENT0_IMASK_TIMEOUTA_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_TIMEOUTA_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_TIMEOUTA_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_timeouta_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_TIMEOUTA_A :: INT_EVENT0_IMASK_TIMEOUTA_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_timeouta_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_TIMEOUTA_A :: INT_EVENT0_IMASK_TIMEOUTA_SET) } } # [doc = "Field `INT_EVENT0_IMASK_TIMEOUTB` reader - Timeout B Interrupt"]
pub type INT_EVENT0_IMASK_TIMEOUTB_R = crate :: BitReader < INT_EVENT0_IMASK_TIMEOUTB_A > ; # [doc = "Timeout B Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_TIMEOUTB_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_TIMEOUTB_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_TIMEOUTB_SET = 1 , } impl From < INT_EVENT0_IMASK_TIMEOUTB_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_TIMEOUTB_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_TIMEOUTB_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_TIMEOUTB_A { match self . bits { false => INT_EVENT0_IMASK_TIMEOUTB_A :: INT_EVENT0_IMASK_TIMEOUTB_CLR , true => INT_EVENT0_IMASK_TIMEOUTB_A :: INT_EVENT0_IMASK_TIMEOUTB_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_timeoutb_clr (& self) -> bool { * self == INT_EVENT0_IMASK_TIMEOUTB_A :: INT_EVENT0_IMASK_TIMEOUTB_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_timeoutb_set (& self) -> bool { * self == INT_EVENT0_IMASK_TIMEOUTB_A :: INT_EVENT0_IMASK_TIMEOUTB_SET } } # [doc = "Field `INT_EVENT0_IMASK_TIMEOUTB` writer - Timeout B Interrupt"]
pub type INT_EVENT0_IMASK_TIMEOUTB_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_TIMEOUTB_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_TIMEOUTB_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_timeoutb_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_TIMEOUTB_A :: INT_EVENT0_IMASK_TIMEOUTB_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_timeoutb_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_TIMEOUTB_A :: INT_EVENT0_IMASK_TIMEOUTB_SET) } } # [doc = "Field `INT_EVENT0_IMASK_SRXDONE` reader - Slave Receive Data Interrupt Signals that a byte has been received"]
pub type INT_EVENT0_IMASK_SRXDONE_R = crate :: BitReader < INT_EVENT0_IMASK_SRXDONE_A > ; # [doc = "Slave Receive Data Interrupt Signals that a byte has been received\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_SRXDONE_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_SRXDONE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_SRXDONE_SET = 1 , } impl From < INT_EVENT0_IMASK_SRXDONE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_SRXDONE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_SRXDONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_SRXDONE_A { match self . bits { false => INT_EVENT0_IMASK_SRXDONE_A :: INT_EVENT0_IMASK_SRXDONE_CLR , true => INT_EVENT0_IMASK_SRXDONE_A :: INT_EVENT0_IMASK_SRXDONE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_srxdone_clr (& self) -> bool { * self == INT_EVENT0_IMASK_SRXDONE_A :: INT_EVENT0_IMASK_SRXDONE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_srxdone_set (& self) -> bool { * self == INT_EVENT0_IMASK_SRXDONE_A :: INT_EVENT0_IMASK_SRXDONE_SET } } # [doc = "Field `INT_EVENT0_IMASK_SRXDONE` writer - Slave Receive Data Interrupt Signals that a byte has been received"]
pub type INT_EVENT0_IMASK_SRXDONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_SRXDONE_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_SRXDONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_srxdone_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SRXDONE_A :: INT_EVENT0_IMASK_SRXDONE_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_srxdone_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SRXDONE_A :: INT_EVENT0_IMASK_SRXDONE_SET) } } # [doc = "Field `INT_EVENT0_IMASK_STXDONE` reader - Slave Transmit Transaction completed Interrupt"]
pub type INT_EVENT0_IMASK_STXDONE_R = crate :: BitReader < INT_EVENT0_IMASK_STXDONE_A > ; # [doc = "Slave Transmit Transaction completed Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_STXDONE_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_STXDONE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_STXDONE_SET = 1 , } impl From < INT_EVENT0_IMASK_STXDONE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_STXDONE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_STXDONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_STXDONE_A { match self . bits { false => INT_EVENT0_IMASK_STXDONE_A :: INT_EVENT0_IMASK_STXDONE_CLR , true => INT_EVENT0_IMASK_STXDONE_A :: INT_EVENT0_IMASK_STXDONE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_stxdone_clr (& self) -> bool { * self == INT_EVENT0_IMASK_STXDONE_A :: INT_EVENT0_IMASK_STXDONE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_stxdone_set (& self) -> bool { * self == INT_EVENT0_IMASK_STXDONE_A :: INT_EVENT0_IMASK_STXDONE_SET } } # [doc = "Field `INT_EVENT0_IMASK_STXDONE` writer - Slave Transmit Transaction completed Interrupt"]
pub type INT_EVENT0_IMASK_STXDONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_STXDONE_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_STXDONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_stxdone_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_STXDONE_A :: INT_EVENT0_IMASK_STXDONE_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_stxdone_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_STXDONE_A :: INT_EVENT0_IMASK_STXDONE_SET) } } # [doc = "Field `INT_EVENT0_IMASK_SRXFIFOTRG` reader - Slave Receive FIFO Trigger"]
pub type INT_EVENT0_IMASK_SRXFIFOTRG_R = crate :: BitReader < INT_EVENT0_IMASK_SRXFIFOTRG_A > ; # [doc = "Slave Receive FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_SRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_SRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_SRXFIFOTRG_SET = 1 , } impl From < INT_EVENT0_IMASK_SRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_SRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_SRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_SRXFIFOTRG_A { match self . bits { false => INT_EVENT0_IMASK_SRXFIFOTRG_A :: INT_EVENT0_IMASK_SRXFIFOTRG_CLR , true => INT_EVENT0_IMASK_SRXFIFOTRG_A :: INT_EVENT0_IMASK_SRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_srxfifotrg_clr (& self) -> bool { * self == INT_EVENT0_IMASK_SRXFIFOTRG_A :: INT_EVENT0_IMASK_SRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_srxfifotrg_set (& self) -> bool { * self == INT_EVENT0_IMASK_SRXFIFOTRG_A :: INT_EVENT0_IMASK_SRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT0_IMASK_SRXFIFOTRG` writer - Slave Receive FIFO Trigger"]
pub type INT_EVENT0_IMASK_SRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_SRXFIFOTRG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_SRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_srxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SRXFIFOTRG_A :: INT_EVENT0_IMASK_SRXFIFOTRG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_srxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SRXFIFOTRG_A :: INT_EVENT0_IMASK_SRXFIFOTRG_SET) } } # [doc = "Field `INT_EVENT0_IMASK_STXFIFOTRG` reader - Slave Transmit FIFO Trigger"]
pub type INT_EVENT0_IMASK_STXFIFOTRG_R = crate :: BitReader < INT_EVENT0_IMASK_STXFIFOTRG_A > ; # [doc = "Slave Transmit FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_STXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_STXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_STXFIFOTRG_SET = 1 , } impl From < INT_EVENT0_IMASK_STXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_STXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_STXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_STXFIFOTRG_A { match self . bits { false => INT_EVENT0_IMASK_STXFIFOTRG_A :: INT_EVENT0_IMASK_STXFIFOTRG_CLR , true => INT_EVENT0_IMASK_STXFIFOTRG_A :: INT_EVENT0_IMASK_STXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_stxfifotrg_clr (& self) -> bool { * self == INT_EVENT0_IMASK_STXFIFOTRG_A :: INT_EVENT0_IMASK_STXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_stxfifotrg_set (& self) -> bool { * self == INT_EVENT0_IMASK_STXFIFOTRG_A :: INT_EVENT0_IMASK_STXFIFOTRG_SET } } # [doc = "Field `INT_EVENT0_IMASK_STXFIFOTRG` writer - Slave Transmit FIFO Trigger"]
pub type INT_EVENT0_IMASK_STXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_STXFIFOTRG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_STXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_stxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_STXFIFOTRG_A :: INT_EVENT0_IMASK_STXFIFOTRG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_stxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_STXFIFOTRG_A :: INT_EVENT0_IMASK_STXFIFOTRG_SET) } } # [doc = "Field `INT_EVENT0_IMASK_SRXFIFOFULL` reader - RXFIFO full event. This interrupt is set if an Slave RX FIFO is full."]
pub type INT_EVENT0_IMASK_SRXFIFOFULL_R = crate :: BitReader < INT_EVENT0_IMASK_SRXFIFOFULL_A > ; # [doc = "RXFIFO full event. This interrupt is set if an Slave RX FIFO is full.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_SRXFIFOFULL_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_SRXFIFOFULL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_SRXFIFOFULL_SET = 1 , } impl From < INT_EVENT0_IMASK_SRXFIFOFULL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_SRXFIFOFULL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_SRXFIFOFULL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_SRXFIFOFULL_A { match self . bits { false => INT_EVENT0_IMASK_SRXFIFOFULL_A :: INT_EVENT0_IMASK_SRXFIFOFULL_CLR , true => INT_EVENT0_IMASK_SRXFIFOFULL_A :: INT_EVENT0_IMASK_SRXFIFOFULL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_srxfifofull_clr (& self) -> bool { * self == INT_EVENT0_IMASK_SRXFIFOFULL_A :: INT_EVENT0_IMASK_SRXFIFOFULL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_srxfifofull_set (& self) -> bool { * self == INT_EVENT0_IMASK_SRXFIFOFULL_A :: INT_EVENT0_IMASK_SRXFIFOFULL_SET } } # [doc = "Field `INT_EVENT0_IMASK_SRXFIFOFULL` writer - RXFIFO full event. This interrupt is set if an Slave RX FIFO is full."]
pub type INT_EVENT0_IMASK_SRXFIFOFULL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_SRXFIFOFULL_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_SRXFIFOFULL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_srxfifofull_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SRXFIFOFULL_A :: INT_EVENT0_IMASK_SRXFIFOFULL_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_srxfifofull_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SRXFIFOFULL_A :: INT_EVENT0_IMASK_SRXFIFOFULL_SET) } } # [doc = "Field `INT_EVENT0_IMASK_STXEMPTY` reader - Slave Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
pub type INT_EVENT0_IMASK_STXEMPTY_R = crate :: BitReader < INT_EVENT0_IMASK_STXEMPTY_A > ; # [doc = "Slave Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_STXEMPTY_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_STXEMPTY_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_STXEMPTY_SET = 1 , } impl From < INT_EVENT0_IMASK_STXEMPTY_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_STXEMPTY_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_STXEMPTY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_STXEMPTY_A { match self . bits { false => INT_EVENT0_IMASK_STXEMPTY_A :: INT_EVENT0_IMASK_STXEMPTY_CLR , true => INT_EVENT0_IMASK_STXEMPTY_A :: INT_EVENT0_IMASK_STXEMPTY_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_stxempty_clr (& self) -> bool { * self == INT_EVENT0_IMASK_STXEMPTY_A :: INT_EVENT0_IMASK_STXEMPTY_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_stxempty_set (& self) -> bool { * self == INT_EVENT0_IMASK_STXEMPTY_A :: INT_EVENT0_IMASK_STXEMPTY_SET } } # [doc = "Field `INT_EVENT0_IMASK_STXEMPTY` writer - Slave Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
pub type INT_EVENT0_IMASK_STXEMPTY_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_STXEMPTY_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_STXEMPTY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_stxempty_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_STXEMPTY_A :: INT_EVENT0_IMASK_STXEMPTY_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_stxempty_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_STXEMPTY_A :: INT_EVENT0_IMASK_STXEMPTY_SET) } } # [doc = "Field `INT_EVENT0_IMASK_SSTART` reader - Start Condition Interrupt"]
pub type INT_EVENT0_IMASK_SSTART_R = crate :: BitReader < INT_EVENT0_IMASK_SSTART_A > ; # [doc = "Start Condition Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_SSTART_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_SSTART_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_SSTART_SET = 1 , } impl From < INT_EVENT0_IMASK_SSTART_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_SSTART_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_SSTART_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_SSTART_A { match self . bits { false => INT_EVENT0_IMASK_SSTART_A :: INT_EVENT0_IMASK_SSTART_CLR , true => INT_EVENT0_IMASK_SSTART_A :: INT_EVENT0_IMASK_SSTART_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_sstart_clr (& self) -> bool { * self == INT_EVENT0_IMASK_SSTART_A :: INT_EVENT0_IMASK_SSTART_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_sstart_set (& self) -> bool { * self == INT_EVENT0_IMASK_SSTART_A :: INT_EVENT0_IMASK_SSTART_SET } } # [doc = "Field `INT_EVENT0_IMASK_SSTART` writer - Start Condition Interrupt"]
pub type INT_EVENT0_IMASK_SSTART_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_SSTART_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_SSTART_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_sstart_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SSTART_A :: INT_EVENT0_IMASK_SSTART_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_sstart_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SSTART_A :: INT_EVENT0_IMASK_SSTART_SET) } } # [doc = "Field `INT_EVENT0_IMASK_SSTOP` reader - Stop Condition Interrupt"]
pub type INT_EVENT0_IMASK_SSTOP_R = crate :: BitReader < INT_EVENT0_IMASK_SSTOP_A > ; # [doc = "Stop Condition Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_SSTOP_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_SSTOP_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_SSTOP_SET = 1 , } impl From < INT_EVENT0_IMASK_SSTOP_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_SSTOP_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_SSTOP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_SSTOP_A { match self . bits { false => INT_EVENT0_IMASK_SSTOP_A :: INT_EVENT0_IMASK_SSTOP_CLR , true => INT_EVENT0_IMASK_SSTOP_A :: INT_EVENT0_IMASK_SSTOP_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_sstop_clr (& self) -> bool { * self == INT_EVENT0_IMASK_SSTOP_A :: INT_EVENT0_IMASK_SSTOP_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_sstop_set (& self) -> bool { * self == INT_EVENT0_IMASK_SSTOP_A :: INT_EVENT0_IMASK_SSTOP_SET } } # [doc = "Field `INT_EVENT0_IMASK_SSTOP` writer - Stop Condition Interrupt"]
pub type INT_EVENT0_IMASK_SSTOP_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_SSTOP_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_SSTOP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_sstop_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SSTOP_A :: INT_EVENT0_IMASK_SSTOP_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_sstop_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SSTOP_A :: INT_EVENT0_IMASK_SSTOP_SET) } } # [doc = "Field `INT_EVENT0_IMASK_SGENCALL` reader - General Call Interrupt"]
pub type INT_EVENT0_IMASK_SGENCALL_R = crate :: BitReader < INT_EVENT0_IMASK_SGENCALL_A > ; # [doc = "General Call Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_SGENCALL_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_SGENCALL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_SGENCALL_SET = 1 , } impl From < INT_EVENT0_IMASK_SGENCALL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_SGENCALL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_SGENCALL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_SGENCALL_A { match self . bits { false => INT_EVENT0_IMASK_SGENCALL_A :: INT_EVENT0_IMASK_SGENCALL_CLR , true => INT_EVENT0_IMASK_SGENCALL_A :: INT_EVENT0_IMASK_SGENCALL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_sgencall_clr (& self) -> bool { * self == INT_EVENT0_IMASK_SGENCALL_A :: INT_EVENT0_IMASK_SGENCALL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_sgencall_set (& self) -> bool { * self == INT_EVENT0_IMASK_SGENCALL_A :: INT_EVENT0_IMASK_SGENCALL_SET } } # [doc = "Field `INT_EVENT0_IMASK_SGENCALL` writer - General Call Interrupt"]
pub type INT_EVENT0_IMASK_SGENCALL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_SGENCALL_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_SGENCALL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_sgencall_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SGENCALL_A :: INT_EVENT0_IMASK_SGENCALL_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_sgencall_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SGENCALL_A :: INT_EVENT0_IMASK_SGENCALL_SET) } } # [doc = "Field `INT_EVENT0_IMASK_SDMA_DONE1_2` reader - Slave DMA Done 1 on Event Channel 2"]
pub type INT_EVENT0_IMASK_SDMA_DONE1_2_R = crate :: BitReader < INT_EVENT0_IMASK_SDMA_DONE1_2_A > ; # [doc = "Slave DMA Done 1 on Event Channel 2\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_SDMA_DONE1_2_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_SDMA_DONE1_2_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_SDMA_DONE1_2_SET = 1 , } impl From < INT_EVENT0_IMASK_SDMA_DONE1_2_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_SDMA_DONE1_2_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_SDMA_DONE1_2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_SDMA_DONE1_2_A { match self . bits { false => INT_EVENT0_IMASK_SDMA_DONE1_2_A :: INT_EVENT0_IMASK_SDMA_DONE1_2_CLR , true => INT_EVENT0_IMASK_SDMA_DONE1_2_A :: INT_EVENT0_IMASK_SDMA_DONE1_2_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_sdma_done1_2_clr (& self) -> bool { * self == INT_EVENT0_IMASK_SDMA_DONE1_2_A :: INT_EVENT0_IMASK_SDMA_DONE1_2_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_sdma_done1_2_set (& self) -> bool { * self == INT_EVENT0_IMASK_SDMA_DONE1_2_A :: INT_EVENT0_IMASK_SDMA_DONE1_2_SET } } # [doc = "Field `INT_EVENT0_IMASK_SDMA_DONE1_2` writer - Slave DMA Done 1 on Event Channel 2"]
pub type INT_EVENT0_IMASK_SDMA_DONE1_2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_SDMA_DONE1_2_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_SDMA_DONE1_2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_sdma_done1_2_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SDMA_DONE1_2_A :: INT_EVENT0_IMASK_SDMA_DONE1_2_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_sdma_done1_2_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SDMA_DONE1_2_A :: INT_EVENT0_IMASK_SDMA_DONE1_2_SET) } } # [doc = "Field `INT_EVENT0_IMASK_SDMA_DONE1_3` reader - Slave DMA Done 1 on Event Channel 3"]
pub type INT_EVENT0_IMASK_SDMA_DONE1_3_R = crate :: BitReader < INT_EVENT0_IMASK_SDMA_DONE1_3_A > ; # [doc = "Slave DMA Done 1 on Event Channel 3\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_SDMA_DONE1_3_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_SDMA_DONE1_3_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_SDMA_DONE1_3_SET = 1 , } impl From < INT_EVENT0_IMASK_SDMA_DONE1_3_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_SDMA_DONE1_3_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_SDMA_DONE1_3_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_SDMA_DONE1_3_A { match self . bits { false => INT_EVENT0_IMASK_SDMA_DONE1_3_A :: INT_EVENT0_IMASK_SDMA_DONE1_3_CLR , true => INT_EVENT0_IMASK_SDMA_DONE1_3_A :: INT_EVENT0_IMASK_SDMA_DONE1_3_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_sdma_done1_3_clr (& self) -> bool { * self == INT_EVENT0_IMASK_SDMA_DONE1_3_A :: INT_EVENT0_IMASK_SDMA_DONE1_3_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_sdma_done1_3_set (& self) -> bool { * self == INT_EVENT0_IMASK_SDMA_DONE1_3_A :: INT_EVENT0_IMASK_SDMA_DONE1_3_SET } } # [doc = "Field `INT_EVENT0_IMASK_SDMA_DONE1_3` writer - Slave DMA Done 1 on Event Channel 3"]
pub type INT_EVENT0_IMASK_SDMA_DONE1_3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_SDMA_DONE1_3_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_SDMA_DONE1_3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_sdma_done1_3_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SDMA_DONE1_3_A :: INT_EVENT0_IMASK_SDMA_DONE1_3_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_sdma_done1_3_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SDMA_DONE1_3_A :: INT_EVENT0_IMASK_SDMA_DONE1_3_SET) } } # [doc = "Field `INT_EVENT0_IMASK_SPEC_RX_ERR` reader - Slave RX Pec Error Interrupt"]
pub type INT_EVENT0_IMASK_SPEC_RX_ERR_R = crate :: BitReader < INT_EVENT0_IMASK_SPEC_RX_ERR_A > ; # [doc = "Slave RX Pec Error Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_SPEC_RX_ERR_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_SPEC_RX_ERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_SPEC_RX_ERR_SET = 1 , } impl From < INT_EVENT0_IMASK_SPEC_RX_ERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_SPEC_RX_ERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_SPEC_RX_ERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_SPEC_RX_ERR_A { match self . bits { false => INT_EVENT0_IMASK_SPEC_RX_ERR_A :: INT_EVENT0_IMASK_SPEC_RX_ERR_CLR , true => INT_EVENT0_IMASK_SPEC_RX_ERR_A :: INT_EVENT0_IMASK_SPEC_RX_ERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_spec_rx_err_clr (& self) -> bool { * self == INT_EVENT0_IMASK_SPEC_RX_ERR_A :: INT_EVENT0_IMASK_SPEC_RX_ERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_spec_rx_err_set (& self) -> bool { * self == INT_EVENT0_IMASK_SPEC_RX_ERR_A :: INT_EVENT0_IMASK_SPEC_RX_ERR_SET } } # [doc = "Field `INT_EVENT0_IMASK_SPEC_RX_ERR` writer - Slave RX Pec Error Interrupt"]
pub type INT_EVENT0_IMASK_SPEC_RX_ERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_SPEC_RX_ERR_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_SPEC_RX_ERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_spec_rx_err_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SPEC_RX_ERR_A :: INT_EVENT0_IMASK_SPEC_RX_ERR_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_spec_rx_err_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SPEC_RX_ERR_A :: INT_EVENT0_IMASK_SPEC_RX_ERR_SET) } } # [doc = "Field `INT_EVENT0_IMASK_STX_UNFL` reader - Slave TX FIFO underflow"]
pub type INT_EVENT0_IMASK_STX_UNFL_R = crate :: BitReader < INT_EVENT0_IMASK_STX_UNFL_A > ; # [doc = "Slave TX FIFO underflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_STX_UNFL_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_STX_UNFL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_STX_UNFL_SET = 1 , } impl From < INT_EVENT0_IMASK_STX_UNFL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_STX_UNFL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_STX_UNFL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_STX_UNFL_A { match self . bits { false => INT_EVENT0_IMASK_STX_UNFL_A :: INT_EVENT0_IMASK_STX_UNFL_CLR , true => INT_EVENT0_IMASK_STX_UNFL_A :: INT_EVENT0_IMASK_STX_UNFL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_stx_unfl_clr (& self) -> bool { * self == INT_EVENT0_IMASK_STX_UNFL_A :: INT_EVENT0_IMASK_STX_UNFL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_stx_unfl_set (& self) -> bool { * self == INT_EVENT0_IMASK_STX_UNFL_A :: INT_EVENT0_IMASK_STX_UNFL_SET } } # [doc = "Field `INT_EVENT0_IMASK_STX_UNFL` writer - Slave TX FIFO underflow"]
pub type INT_EVENT0_IMASK_STX_UNFL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_STX_UNFL_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_STX_UNFL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_stx_unfl_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_STX_UNFL_A :: INT_EVENT0_IMASK_STX_UNFL_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_stx_unfl_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_STX_UNFL_A :: INT_EVENT0_IMASK_STX_UNFL_SET) } } # [doc = "Field `INT_EVENT0_IMASK_SRX_OVFL` reader - Slave RX FIFO overflow"]
pub type INT_EVENT0_IMASK_SRX_OVFL_R = crate :: BitReader < INT_EVENT0_IMASK_SRX_OVFL_A > ; # [doc = "Slave RX FIFO overflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_SRX_OVFL_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_SRX_OVFL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_SRX_OVFL_SET = 1 , } impl From < INT_EVENT0_IMASK_SRX_OVFL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_SRX_OVFL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_SRX_OVFL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_SRX_OVFL_A { match self . bits { false => INT_EVENT0_IMASK_SRX_OVFL_A :: INT_EVENT0_IMASK_SRX_OVFL_CLR , true => INT_EVENT0_IMASK_SRX_OVFL_A :: INT_EVENT0_IMASK_SRX_OVFL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_srx_ovfl_clr (& self) -> bool { * self == INT_EVENT0_IMASK_SRX_OVFL_A :: INT_EVENT0_IMASK_SRX_OVFL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_srx_ovfl_set (& self) -> bool { * self == INT_EVENT0_IMASK_SRX_OVFL_A :: INT_EVENT0_IMASK_SRX_OVFL_SET } } # [doc = "Field `INT_EVENT0_IMASK_SRX_OVFL` writer - Slave RX FIFO overflow"]
pub type INT_EVENT0_IMASK_SRX_OVFL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_SRX_OVFL_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_SRX_OVFL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_srx_ovfl_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SRX_OVFL_A :: INT_EVENT0_IMASK_SRX_OVFL_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_srx_ovfl_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SRX_OVFL_A :: INT_EVENT0_IMASK_SRX_OVFL_SET) } } # [doc = "Field `INT_EVENT0_IMASK_SARBLOST` reader - Slave Arbitration Lost"]
pub type INT_EVENT0_IMASK_SARBLOST_R = crate :: BitReader < INT_EVENT0_IMASK_SARBLOST_A > ; # [doc = "Slave Arbitration Lost\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_SARBLOST_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_SARBLOST_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_SARBLOST_SET = 1 , } impl From < INT_EVENT0_IMASK_SARBLOST_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_SARBLOST_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_SARBLOST_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_SARBLOST_A { match self . bits { false => INT_EVENT0_IMASK_SARBLOST_A :: INT_EVENT0_IMASK_SARBLOST_CLR , true => INT_EVENT0_IMASK_SARBLOST_A :: INT_EVENT0_IMASK_SARBLOST_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_sarblost_clr (& self) -> bool { * self == INT_EVENT0_IMASK_SARBLOST_A :: INT_EVENT0_IMASK_SARBLOST_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_sarblost_set (& self) -> bool { * self == INT_EVENT0_IMASK_SARBLOST_A :: INT_EVENT0_IMASK_SARBLOST_SET } } # [doc = "Field `INT_EVENT0_IMASK_SARBLOST` writer - Slave Arbitration Lost"]
pub type INT_EVENT0_IMASK_SARBLOST_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_SARBLOST_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_SARBLOST_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_sarblost_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SARBLOST_A :: INT_EVENT0_IMASK_SARBLOST_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_sarblost_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_SARBLOST_A :: INT_EVENT0_IMASK_SARBLOST_SET) } } # [doc = "Field `INT_EVENT0_IMASK_INTR_OVFL` reader - Interrupt Overflow Interrupt Mask"]
pub type INT_EVENT0_IMASK_INTR_OVFL_R = crate :: BitReader < INT_EVENT0_IMASK_INTR_OVFL_A > ; # [doc = "Interrupt Overflow Interrupt Mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_INTR_OVFL_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_INTR_OVFL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_INTR_OVFL_SET = 1 , } impl From < INT_EVENT0_IMASK_INTR_OVFL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_INTR_OVFL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_INTR_OVFL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_INTR_OVFL_A { match self . bits { false => INT_EVENT0_IMASK_INTR_OVFL_A :: INT_EVENT0_IMASK_INTR_OVFL_CLR , true => INT_EVENT0_IMASK_INTR_OVFL_A :: INT_EVENT0_IMASK_INTR_OVFL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_intr_ovfl_clr (& self) -> bool { * self == INT_EVENT0_IMASK_INTR_OVFL_A :: INT_EVENT0_IMASK_INTR_OVFL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_intr_ovfl_set (& self) -> bool { * self == INT_EVENT0_IMASK_INTR_OVFL_A :: INT_EVENT0_IMASK_INTR_OVFL_SET } } # [doc = "Field `INT_EVENT0_IMASK_INTR_OVFL` writer - Interrupt Overflow Interrupt Mask"]
pub type INT_EVENT0_IMASK_INTR_OVFL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_INTR_OVFL_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_INTR_OVFL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_intr_ovfl_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_INTR_OVFL_A :: INT_EVENT0_IMASK_INTR_OVFL_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_intr_ovfl_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_INTR_OVFL_A :: INT_EVENT0_IMASK_INTR_OVFL_SET) } } impl R { # [doc = "Bit 0 - Master Receive Transaction completed Interrupt"]
# [inline (always)]
pub fn int_event0_imask_mrxdone (& self) -> INT_EVENT0_IMASK_MRXDONE_R { INT_EVENT0_IMASK_MRXDONE_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Master Transmit Transaction completed Interrupt"]
# [inline (always)]
pub fn int_event0_imask_mtxdone (& self) -> INT_EVENT0_IMASK_MTXDONE_R { INT_EVENT0_IMASK_MTXDONE_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
pub fn int_event0_imask_mrxfifotrg (& self) -> INT_EVENT0_IMASK_MRXFIFOTRG_R { INT_EVENT0_IMASK_MRXFIFOTRG_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
pub fn int_event0_imask_mtxfifotrg (& self) -> INT_EVENT0_IMASK_MTXFIFOTRG_R { INT_EVENT0_IMASK_MTXFIFOTRG_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - RXFIFO full event. This interrupt is set if an RX FIFO is full."]
# [inline (always)]
pub fn int_event0_imask_mrxfifofull (& self) -> INT_EVENT0_IMASK_MRXFIFOFULL_R { INT_EVENT0_IMASK_MRXFIFOFULL_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
# [inline (always)]
pub fn int_event0_imask_mtxempty (& self) -> INT_EVENT0_IMASK_MTXEMPTY_R { INT_EVENT0_IMASK_MTXEMPTY_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 7 - Address/Data NACK Interrupt"]
# [inline (always)]
pub fn int_event0_imask_mnack (& self) -> INT_EVENT0_IMASK_MNACK_R { INT_EVENT0_IMASK_MNACK_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - START Detection Interrupt"]
# [inline (always)]
pub fn int_event0_imask_mstart (& self) -> INT_EVENT0_IMASK_MSTART_R { INT_EVENT0_IMASK_MSTART_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - STOP Detection Interrupt"]
# [inline (always)]
pub fn int_event0_imask_mstop (& self) -> INT_EVENT0_IMASK_MSTOP_R { INT_EVENT0_IMASK_MSTOP_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - Arbitration Lost Interrupt"]
# [inline (always)]
pub fn int_event0_imask_marblost (& self) -> INT_EVENT0_IMASK_MARBLOST_R { INT_EVENT0_IMASK_MARBLOST_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bit 11 - DMA Done 1 on Event Channel 2"]
# [inline (always)]
pub fn int_event0_imask_mdma_done1_2 (& self) -> INT_EVENT0_IMASK_MDMA_DONE1_2_R { INT_EVENT0_IMASK_MDMA_DONE1_2_R :: new (((self . bits >> 11) & 1) != 0) } # [doc = "Bit 12 - DMA Done 1 on Event Channel 3"]
# [inline (always)]
pub fn int_event0_imask_mdma_done1_3 (& self) -> INT_EVENT0_IMASK_MDMA_DONE1_3_R { INT_EVENT0_IMASK_MDMA_DONE1_3_R :: new (((self . bits >> 12) & 1) != 0) } # [doc = "Bit 13 - Master RX Pec Error Interrupt"]
# [inline (always)]
pub fn int_event0_imask_mpec_rx_err (& self) -> INT_EVENT0_IMASK_MPEC_RX_ERR_R { INT_EVENT0_IMASK_MPEC_RX_ERR_R :: new (((self . bits >> 13) & 1) != 0) } # [doc = "Bit 14 - Timeout A Interrupt"]
# [inline (always)]
pub fn int_event0_imask_timeouta (& self) -> INT_EVENT0_IMASK_TIMEOUTA_R { INT_EVENT0_IMASK_TIMEOUTA_R :: new (((self . bits >> 14) & 1) != 0) } # [doc = "Bit 15 - Timeout B Interrupt"]
# [inline (always)]
pub fn int_event0_imask_timeoutb (& self) -> INT_EVENT0_IMASK_TIMEOUTB_R { INT_EVENT0_IMASK_TIMEOUTB_R :: new (((self . bits >> 15) & 1) != 0) } # [doc = "Bit 16 - Slave Receive Data Interrupt Signals that a byte has been received"]
# [inline (always)]
pub fn int_event0_imask_srxdone (& self) -> INT_EVENT0_IMASK_SRXDONE_R { INT_EVENT0_IMASK_SRXDONE_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 17 - Slave Transmit Transaction completed Interrupt"]
# [inline (always)]
pub fn int_event0_imask_stxdone (& self) -> INT_EVENT0_IMASK_STXDONE_R { INT_EVENT0_IMASK_STXDONE_R :: new (((self . bits >> 17) & 1) != 0) } # [doc = "Bit 18 - Slave Receive FIFO Trigger"]
# [inline (always)]
pub fn int_event0_imask_srxfifotrg (& self) -> INT_EVENT0_IMASK_SRXFIFOTRG_R { INT_EVENT0_IMASK_SRXFIFOTRG_R :: new (((self . bits >> 18) & 1) != 0) } # [doc = "Bit 19 - Slave Transmit FIFO Trigger"]
# [inline (always)]
pub fn int_event0_imask_stxfifotrg (& self) -> INT_EVENT0_IMASK_STXFIFOTRG_R { INT_EVENT0_IMASK_STXFIFOTRG_R :: new (((self . bits >> 19) & 1) != 0) } # [doc = "Bit 20 - RXFIFO full event. This interrupt is set if an Slave RX FIFO is full."]
# [inline (always)]
pub fn int_event0_imask_srxfifofull (& self) -> INT_EVENT0_IMASK_SRXFIFOFULL_R { INT_EVENT0_IMASK_SRXFIFOFULL_R :: new (((self . bits >> 20) & 1) != 0) } # [doc = "Bit 21 - Slave Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
# [inline (always)]
pub fn int_event0_imask_stxempty (& self) -> INT_EVENT0_IMASK_STXEMPTY_R { INT_EVENT0_IMASK_STXEMPTY_R :: new (((self . bits >> 21) & 1) != 0) } # [doc = "Bit 22 - Start Condition Interrupt"]
# [inline (always)]
pub fn int_event0_imask_sstart (& self) -> INT_EVENT0_IMASK_SSTART_R { INT_EVENT0_IMASK_SSTART_R :: new (((self . bits >> 22) & 1) != 0) } # [doc = "Bit 23 - Stop Condition Interrupt"]
# [inline (always)]
pub fn int_event0_imask_sstop (& self) -> INT_EVENT0_IMASK_SSTOP_R { INT_EVENT0_IMASK_SSTOP_R :: new (((self . bits >> 23) & 1) != 0) } # [doc = "Bit 24 - General Call Interrupt"]
# [inline (always)]
pub fn int_event0_imask_sgencall (& self) -> INT_EVENT0_IMASK_SGENCALL_R { INT_EVENT0_IMASK_SGENCALL_R :: new (((self . bits >> 24) & 1) != 0) } # [doc = "Bit 25 - Slave DMA Done 1 on Event Channel 2"]
# [inline (always)]
pub fn int_event0_imask_sdma_done1_2 (& self) -> INT_EVENT0_IMASK_SDMA_DONE1_2_R { INT_EVENT0_IMASK_SDMA_DONE1_2_R :: new (((self . bits >> 25) & 1) != 0) } # [doc = "Bit 26 - Slave DMA Done 1 on Event Channel 3"]
# [inline (always)]
pub fn int_event0_imask_sdma_done1_3 (& self) -> INT_EVENT0_IMASK_SDMA_DONE1_3_R { INT_EVENT0_IMASK_SDMA_DONE1_3_R :: new (((self . bits >> 26) & 1) != 0) } # [doc = "Bit 27 - Slave RX Pec Error Interrupt"]
# [inline (always)]
pub fn int_event0_imask_spec_rx_err (& self) -> INT_EVENT0_IMASK_SPEC_RX_ERR_R { INT_EVENT0_IMASK_SPEC_RX_ERR_R :: new (((self . bits >> 27) & 1) != 0) } # [doc = "Bit 28 - Slave TX FIFO underflow"]
# [inline (always)]
pub fn int_event0_imask_stx_unfl (& self) -> INT_EVENT0_IMASK_STX_UNFL_R { INT_EVENT0_IMASK_STX_UNFL_R :: new (((self . bits >> 28) & 1) != 0) } # [doc = "Bit 29 - Slave RX FIFO overflow"]
# [inline (always)]
pub fn int_event0_imask_srx_ovfl (& self) -> INT_EVENT0_IMASK_SRX_OVFL_R { INT_EVENT0_IMASK_SRX_OVFL_R :: new (((self . bits >> 29) & 1) != 0) } # [doc = "Bit 30 - Slave Arbitration Lost"]
# [inline (always)]
pub fn int_event0_imask_sarblost (& self) -> INT_EVENT0_IMASK_SARBLOST_R { INT_EVENT0_IMASK_SARBLOST_R :: new (((self . bits >> 30) & 1) != 0) } # [doc = "Bit 31 - Interrupt Overflow Interrupt Mask"]
# [inline (always)]
pub fn int_event0_imask_intr_ovfl (& self) -> INT_EVENT0_IMASK_INTR_OVFL_R { INT_EVENT0_IMASK_INTR_OVFL_R :: new (((self . bits >> 31) & 1) != 0) } } impl W { # [doc = "Bit 0 - Master Receive Transaction completed Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_mrxdone (& mut self) -> INT_EVENT0_IMASK_MRXDONE_W < INT_EVENT0_IMASK_SPEC , 0 > { INT_EVENT0_IMASK_MRXDONE_W :: new (self) } # [doc = "Bit 1 - Master Transmit Transaction completed Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_mtxdone (& mut self) -> INT_EVENT0_IMASK_MTXDONE_W < INT_EVENT0_IMASK_SPEC , 1 > { INT_EVENT0_IMASK_MTXDONE_W :: new (self) } # [doc = "Bit 2 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_mrxfifotrg (& mut self) -> INT_EVENT0_IMASK_MRXFIFOTRG_W < INT_EVENT0_IMASK_SPEC , 2 > { INT_EVENT0_IMASK_MRXFIFOTRG_W :: new (self) } # [doc = "Bit 3 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_mtxfifotrg (& mut self) -> INT_EVENT0_IMASK_MTXFIFOTRG_W < INT_EVENT0_IMASK_SPEC , 3 > { INT_EVENT0_IMASK_MTXFIFOTRG_W :: new (self) } # [doc = "Bit 4 - RXFIFO full event. This interrupt is set if an RX FIFO is full."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_mrxfifofull (& mut self) -> INT_EVENT0_IMASK_MRXFIFOFULL_W < INT_EVENT0_IMASK_SPEC , 4 > { INT_EVENT0_IMASK_MRXFIFOFULL_W :: new (self) } # [doc = "Bit 5 - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_mtxempty (& mut self) -> INT_EVENT0_IMASK_MTXEMPTY_W < INT_EVENT0_IMASK_SPEC , 5 > { INT_EVENT0_IMASK_MTXEMPTY_W :: new (self) } # [doc = "Bit 7 - Address/Data NACK Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_mnack (& mut self) -> INT_EVENT0_IMASK_MNACK_W < INT_EVENT0_IMASK_SPEC , 7 > { INT_EVENT0_IMASK_MNACK_W :: new (self) } # [doc = "Bit 8 - START Detection Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_mstart (& mut self) -> INT_EVENT0_IMASK_MSTART_W < INT_EVENT0_IMASK_SPEC , 8 > { INT_EVENT0_IMASK_MSTART_W :: new (self) } # [doc = "Bit 9 - STOP Detection Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_mstop (& mut self) -> INT_EVENT0_IMASK_MSTOP_W < INT_EVENT0_IMASK_SPEC , 9 > { INT_EVENT0_IMASK_MSTOP_W :: new (self) } # [doc = "Bit 10 - Arbitration Lost Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_marblost (& mut self) -> INT_EVENT0_IMASK_MARBLOST_W < INT_EVENT0_IMASK_SPEC , 10 > { INT_EVENT0_IMASK_MARBLOST_W :: new (self) } # [doc = "Bit 11 - DMA Done 1 on Event Channel 2"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_mdma_done1_2 (& mut self) -> INT_EVENT0_IMASK_MDMA_DONE1_2_W < INT_EVENT0_IMASK_SPEC , 11 > { INT_EVENT0_IMASK_MDMA_DONE1_2_W :: new (self) } # [doc = "Bit 12 - DMA Done 1 on Event Channel 3"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_mdma_done1_3 (& mut self) -> INT_EVENT0_IMASK_MDMA_DONE1_3_W < INT_EVENT0_IMASK_SPEC , 12 > { INT_EVENT0_IMASK_MDMA_DONE1_3_W :: new (self) } # [doc = "Bit 13 - Master RX Pec Error Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_mpec_rx_err (& mut self) -> INT_EVENT0_IMASK_MPEC_RX_ERR_W < INT_EVENT0_IMASK_SPEC , 13 > { INT_EVENT0_IMASK_MPEC_RX_ERR_W :: new (self) } # [doc = "Bit 14 - Timeout A Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_timeouta (& mut self) -> INT_EVENT0_IMASK_TIMEOUTA_W < INT_EVENT0_IMASK_SPEC , 14 > { INT_EVENT0_IMASK_TIMEOUTA_W :: new (self) } # [doc = "Bit 15 - Timeout B Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_timeoutb (& mut self) -> INT_EVENT0_IMASK_TIMEOUTB_W < INT_EVENT0_IMASK_SPEC , 15 > { INT_EVENT0_IMASK_TIMEOUTB_W :: new (self) } # [doc = "Bit 16 - Slave Receive Data Interrupt Signals that a byte has been received"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_srxdone (& mut self) -> INT_EVENT0_IMASK_SRXDONE_W < INT_EVENT0_IMASK_SPEC , 16 > { INT_EVENT0_IMASK_SRXDONE_W :: new (self) } # [doc = "Bit 17 - Slave Transmit Transaction completed Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_stxdone (& mut self) -> INT_EVENT0_IMASK_STXDONE_W < INT_EVENT0_IMASK_SPEC , 17 > { INT_EVENT0_IMASK_STXDONE_W :: new (self) } # [doc = "Bit 18 - Slave Receive FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_srxfifotrg (& mut self) -> INT_EVENT0_IMASK_SRXFIFOTRG_W < INT_EVENT0_IMASK_SPEC , 18 > { INT_EVENT0_IMASK_SRXFIFOTRG_W :: new (self) } # [doc = "Bit 19 - Slave Transmit FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_stxfifotrg (& mut self) -> INT_EVENT0_IMASK_STXFIFOTRG_W < INT_EVENT0_IMASK_SPEC , 19 > { INT_EVENT0_IMASK_STXFIFOTRG_W :: new (self) } # [doc = "Bit 20 - RXFIFO full event. This interrupt is set if an Slave RX FIFO is full."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_srxfifofull (& mut self) -> INT_EVENT0_IMASK_SRXFIFOFULL_W < INT_EVENT0_IMASK_SPEC , 20 > { INT_EVENT0_IMASK_SRXFIFOFULL_W :: new (self) } # [doc = "Bit 21 - Slave Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_stxempty (& mut self) -> INT_EVENT0_IMASK_STXEMPTY_W < INT_EVENT0_IMASK_SPEC , 21 > { INT_EVENT0_IMASK_STXEMPTY_W :: new (self) } # [doc = "Bit 22 - Start Condition Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_sstart (& mut self) -> INT_EVENT0_IMASK_SSTART_W < INT_EVENT0_IMASK_SPEC , 22 > { INT_EVENT0_IMASK_SSTART_W :: new (self) } # [doc = "Bit 23 - Stop Condition Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_sstop (& mut self) -> INT_EVENT0_IMASK_SSTOP_W < INT_EVENT0_IMASK_SPEC , 23 > { INT_EVENT0_IMASK_SSTOP_W :: new (self) } # [doc = "Bit 24 - General Call Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_sgencall (& mut self) -> INT_EVENT0_IMASK_SGENCALL_W < INT_EVENT0_IMASK_SPEC , 24 > { INT_EVENT0_IMASK_SGENCALL_W :: new (self) } # [doc = "Bit 25 - Slave DMA Done 1 on Event Channel 2"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_sdma_done1_2 (& mut self) -> INT_EVENT0_IMASK_SDMA_DONE1_2_W < INT_EVENT0_IMASK_SPEC , 25 > { INT_EVENT0_IMASK_SDMA_DONE1_2_W :: new (self) } # [doc = "Bit 26 - Slave DMA Done 1 on Event Channel 3"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_sdma_done1_3 (& mut self) -> INT_EVENT0_IMASK_SDMA_DONE1_3_W < INT_EVENT0_IMASK_SPEC , 26 > { INT_EVENT0_IMASK_SDMA_DONE1_3_W :: new (self) } # [doc = "Bit 27 - Slave RX Pec Error Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_spec_rx_err (& mut self) -> INT_EVENT0_IMASK_SPEC_RX_ERR_W < INT_EVENT0_IMASK_SPEC , 27 > { INT_EVENT0_IMASK_SPEC_RX_ERR_W :: new (self) } # [doc = "Bit 28 - Slave TX FIFO underflow"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_stx_unfl (& mut self) -> INT_EVENT0_IMASK_STX_UNFL_W < INT_EVENT0_IMASK_SPEC , 28 > { INT_EVENT0_IMASK_STX_UNFL_W :: new (self) } # [doc = "Bit 29 - Slave RX FIFO overflow"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_srx_ovfl (& mut self) -> INT_EVENT0_IMASK_SRX_OVFL_W < INT_EVENT0_IMASK_SPEC , 29 > { INT_EVENT0_IMASK_SRX_OVFL_W :: new (self) } # [doc = "Bit 30 - Slave Arbitration Lost"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_sarblost (& mut self) -> INT_EVENT0_IMASK_SARBLOST_W < INT_EVENT0_IMASK_SPEC , 30 > { INT_EVENT0_IMASK_SARBLOST_W :: new (self) } # [doc = "Bit 31 - Interrupt Overflow Interrupt Mask"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_intr_ovfl (& mut self) -> INT_EVENT0_IMASK_INTR_OVFL_W < INT_EVENT0_IMASK_SPEC , 31 > { INT_EVENT0_IMASK_INTR_OVFL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_imask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_imask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_IMASK_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event0_imask::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT0_IMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`int_event0_imask::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT0_IMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT0_IMASK to value 0"]
impl crate :: Resettable for INT_EVENT0_IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_RIS (r) register accessor: Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_ris`]
module"]
pub type INT_EVENT0_RIS = crate :: Reg < int_event0_ris :: INT_EVENT0_RIS_SPEC > ; # [doc = "Raw interrupt status"]
pub mod int_event0_ris { # [doc = "Register `INT_EVENT0_RIS` reader"]
pub type R = crate :: R < INT_EVENT0_RIS_SPEC > ; # [doc = "Field `INT_EVENT0_RIS_MRXDONE` reader - Master Receive Transaction completed Interrupt"]
pub type INT_EVENT0_RIS_MRXDONE_R = crate :: BitReader < INT_EVENT0_RIS_MRXDONE_A > ; # [doc = "Master Receive Transaction completed Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_MRXDONE_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_MRXDONE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_MRXDONE_SET = 1 , } impl From < INT_EVENT0_RIS_MRXDONE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_MRXDONE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_MRXDONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_MRXDONE_A { match self . bits { false => INT_EVENT0_RIS_MRXDONE_A :: INT_EVENT0_RIS_MRXDONE_CLR , true => INT_EVENT0_RIS_MRXDONE_A :: INT_EVENT0_RIS_MRXDONE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_mrxdone_clr (& self) -> bool { * self == INT_EVENT0_RIS_MRXDONE_A :: INT_EVENT0_RIS_MRXDONE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_mrxdone_set (& self) -> bool { * self == INT_EVENT0_RIS_MRXDONE_A :: INT_EVENT0_RIS_MRXDONE_SET } } # [doc = "Field `INT_EVENT0_RIS_MTXDONE` reader - Master Transmit Transaction completed Interrupt"]
pub type INT_EVENT0_RIS_MTXDONE_R = crate :: BitReader < INT_EVENT0_RIS_MTXDONE_A > ; # [doc = "Master Transmit Transaction completed Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_MTXDONE_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_MTXDONE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_MTXDONE_SET = 1 , } impl From < INT_EVENT0_RIS_MTXDONE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_MTXDONE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_MTXDONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_MTXDONE_A { match self . bits { false => INT_EVENT0_RIS_MTXDONE_A :: INT_EVENT0_RIS_MTXDONE_CLR , true => INT_EVENT0_RIS_MTXDONE_A :: INT_EVENT0_RIS_MTXDONE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_mtxdone_clr (& self) -> bool { * self == INT_EVENT0_RIS_MTXDONE_A :: INT_EVENT0_RIS_MTXDONE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_mtxdone_set (& self) -> bool { * self == INT_EVENT0_RIS_MTXDONE_A :: INT_EVENT0_RIS_MTXDONE_SET } } # [doc = "Field `INT_EVENT0_RIS_MRXFIFOTRG` reader - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT0_RIS_MRXFIFOTRG_R = crate :: BitReader < INT_EVENT0_RIS_MRXFIFOTRG_A > ; # [doc = "Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_MRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_MRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_MRXFIFOTRG_SET = 1 , } impl From < INT_EVENT0_RIS_MRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_MRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_MRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_MRXFIFOTRG_A { match self . bits { false => INT_EVENT0_RIS_MRXFIFOTRG_A :: INT_EVENT0_RIS_MRXFIFOTRG_CLR , true => INT_EVENT0_RIS_MRXFIFOTRG_A :: INT_EVENT0_RIS_MRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_mrxfifotrg_clr (& self) -> bool { * self == INT_EVENT0_RIS_MRXFIFOTRG_A :: INT_EVENT0_RIS_MRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_mrxfifotrg_set (& self) -> bool { * self == INT_EVENT0_RIS_MRXFIFOTRG_A :: INT_EVENT0_RIS_MRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT0_RIS_MTXFIFOTRG` reader - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT0_RIS_MTXFIFOTRG_R = crate :: BitReader < INT_EVENT0_RIS_MTXFIFOTRG_A > ; # [doc = "Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_MTXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_MTXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_MTXFIFOTRG_SET = 1 , } impl From < INT_EVENT0_RIS_MTXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_MTXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_MTXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_MTXFIFOTRG_A { match self . bits { false => INT_EVENT0_RIS_MTXFIFOTRG_A :: INT_EVENT0_RIS_MTXFIFOTRG_CLR , true => INT_EVENT0_RIS_MTXFIFOTRG_A :: INT_EVENT0_RIS_MTXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_mtxfifotrg_clr (& self) -> bool { * self == INT_EVENT0_RIS_MTXFIFOTRG_A :: INT_EVENT0_RIS_MTXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_mtxfifotrg_set (& self) -> bool { * self == INT_EVENT0_RIS_MTXFIFOTRG_A :: INT_EVENT0_RIS_MTXFIFOTRG_SET } } # [doc = "Field `INT_EVENT0_RIS_MRXFIFOFULL` reader - RXFIFO full event. This interrupt is set if an RX FIFO is full."]
pub type INT_EVENT0_RIS_MRXFIFOFULL_R = crate :: BitReader < INT_EVENT0_RIS_MRXFIFOFULL_A > ; # [doc = "RXFIFO full event. This interrupt is set if an RX FIFO is full.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_MRXFIFOFULL_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_MRXFIFOFULL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_MRXFIFOFULL_SET = 1 , } impl From < INT_EVENT0_RIS_MRXFIFOFULL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_MRXFIFOFULL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_MRXFIFOFULL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_MRXFIFOFULL_A { match self . bits { false => INT_EVENT0_RIS_MRXFIFOFULL_A :: INT_EVENT0_RIS_MRXFIFOFULL_CLR , true => INT_EVENT0_RIS_MRXFIFOFULL_A :: INT_EVENT0_RIS_MRXFIFOFULL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_mrxfifofull_clr (& self) -> bool { * self == INT_EVENT0_RIS_MRXFIFOFULL_A :: INT_EVENT0_RIS_MRXFIFOFULL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_mrxfifofull_set (& self) -> bool { * self == INT_EVENT0_RIS_MRXFIFOFULL_A :: INT_EVENT0_RIS_MRXFIFOFULL_SET } } # [doc = "Field `INT_EVENT0_RIS_MTXEMPTY` reader - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
pub type INT_EVENT0_RIS_MTXEMPTY_R = crate :: BitReader < INT_EVENT0_RIS_MTXEMPTY_A > ; # [doc = "Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_MTXEMPTY_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_MTXEMPTY_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_MTXEMPTY_SET = 1 , } impl From < INT_EVENT0_RIS_MTXEMPTY_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_MTXEMPTY_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_MTXEMPTY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_MTXEMPTY_A { match self . bits { false => INT_EVENT0_RIS_MTXEMPTY_A :: INT_EVENT0_RIS_MTXEMPTY_CLR , true => INT_EVENT0_RIS_MTXEMPTY_A :: INT_EVENT0_RIS_MTXEMPTY_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_mtxempty_clr (& self) -> bool { * self == INT_EVENT0_RIS_MTXEMPTY_A :: INT_EVENT0_RIS_MTXEMPTY_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_mtxempty_set (& self) -> bool { * self == INT_EVENT0_RIS_MTXEMPTY_A :: INT_EVENT0_RIS_MTXEMPTY_SET } } # [doc = "Field `INT_EVENT0_RIS_MNACK` reader - Address/Data NACK Interrupt"]
pub type INT_EVENT0_RIS_MNACK_R = crate :: BitReader < INT_EVENT0_RIS_MNACK_A > ; # [doc = "Address/Data NACK Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_MNACK_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_MNACK_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_MNACK_SET = 1 , } impl From < INT_EVENT0_RIS_MNACK_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_MNACK_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_MNACK_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_MNACK_A { match self . bits { false => INT_EVENT0_RIS_MNACK_A :: INT_EVENT0_RIS_MNACK_CLR , true => INT_EVENT0_RIS_MNACK_A :: INT_EVENT0_RIS_MNACK_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_mnack_clr (& self) -> bool { * self == INT_EVENT0_RIS_MNACK_A :: INT_EVENT0_RIS_MNACK_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_mnack_set (& self) -> bool { * self == INT_EVENT0_RIS_MNACK_A :: INT_EVENT0_RIS_MNACK_SET } } # [doc = "Field `INT_EVENT0_RIS_MSTART` reader - START Detection Interrupt"]
pub type INT_EVENT0_RIS_MSTART_R = crate :: BitReader < INT_EVENT0_RIS_MSTART_A > ; # [doc = "START Detection Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_MSTART_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_MSTART_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_MSTART_SET = 1 , } impl From < INT_EVENT0_RIS_MSTART_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_MSTART_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_MSTART_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_MSTART_A { match self . bits { false => INT_EVENT0_RIS_MSTART_A :: INT_EVENT0_RIS_MSTART_CLR , true => INT_EVENT0_RIS_MSTART_A :: INT_EVENT0_RIS_MSTART_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_mstart_clr (& self) -> bool { * self == INT_EVENT0_RIS_MSTART_A :: INT_EVENT0_RIS_MSTART_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_mstart_set (& self) -> bool { * self == INT_EVENT0_RIS_MSTART_A :: INT_EVENT0_RIS_MSTART_SET } } # [doc = "Field `INT_EVENT0_RIS_MSTOP` reader - STOP Detection Interrupt"]
pub type INT_EVENT0_RIS_MSTOP_R = crate :: BitReader < INT_EVENT0_RIS_MSTOP_A > ; # [doc = "STOP Detection Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_MSTOP_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_MSTOP_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_MSTOP_SET = 1 , } impl From < INT_EVENT0_RIS_MSTOP_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_MSTOP_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_MSTOP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_MSTOP_A { match self . bits { false => INT_EVENT0_RIS_MSTOP_A :: INT_EVENT0_RIS_MSTOP_CLR , true => INT_EVENT0_RIS_MSTOP_A :: INT_EVENT0_RIS_MSTOP_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_mstop_clr (& self) -> bool { * self == INT_EVENT0_RIS_MSTOP_A :: INT_EVENT0_RIS_MSTOP_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_mstop_set (& self) -> bool { * self == INT_EVENT0_RIS_MSTOP_A :: INT_EVENT0_RIS_MSTOP_SET } } # [doc = "Field `INT_EVENT0_RIS_MARBLOST` reader - Arbitration Lost Interrupt"]
pub type INT_EVENT0_RIS_MARBLOST_R = crate :: BitReader < INT_EVENT0_RIS_MARBLOST_A > ; # [doc = "Arbitration Lost Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_MARBLOST_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_MARBLOST_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_MARBLOST_SET = 1 , } impl From < INT_EVENT0_RIS_MARBLOST_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_MARBLOST_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_MARBLOST_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_MARBLOST_A { match self . bits { false => INT_EVENT0_RIS_MARBLOST_A :: INT_EVENT0_RIS_MARBLOST_CLR , true => INT_EVENT0_RIS_MARBLOST_A :: INT_EVENT0_RIS_MARBLOST_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_marblost_clr (& self) -> bool { * self == INT_EVENT0_RIS_MARBLOST_A :: INT_EVENT0_RIS_MARBLOST_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_marblost_set (& self) -> bool { * self == INT_EVENT0_RIS_MARBLOST_A :: INT_EVENT0_RIS_MARBLOST_SET } } # [doc = "Field `INT_EVENT0_RIS_MDMA_DONE1_2` reader - DMA Done 1 on Event Channel 2"]
pub type INT_EVENT0_RIS_MDMA_DONE1_2_R = crate :: BitReader < INT_EVENT0_RIS_MDMA_DONE1_2_A > ; # [doc = "DMA Done 1 on Event Channel 2\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_MDMA_DONE1_2_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_MDMA_DONE1_2_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_MDMA_DONE1_2_SET = 1 , } impl From < INT_EVENT0_RIS_MDMA_DONE1_2_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_MDMA_DONE1_2_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_MDMA_DONE1_2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_MDMA_DONE1_2_A { match self . bits { false => INT_EVENT0_RIS_MDMA_DONE1_2_A :: INT_EVENT0_RIS_MDMA_DONE1_2_CLR , true => INT_EVENT0_RIS_MDMA_DONE1_2_A :: INT_EVENT0_RIS_MDMA_DONE1_2_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_mdma_done1_2_clr (& self) -> bool { * self == INT_EVENT0_RIS_MDMA_DONE1_2_A :: INT_EVENT0_RIS_MDMA_DONE1_2_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_mdma_done1_2_set (& self) -> bool { * self == INT_EVENT0_RIS_MDMA_DONE1_2_A :: INT_EVENT0_RIS_MDMA_DONE1_2_SET } } # [doc = "Field `INT_EVENT0_RIS_MDMA_DONE1_3` reader - DMA Done 1 on Event Channel 3"]
pub type INT_EVENT0_RIS_MDMA_DONE1_3_R = crate :: BitReader < INT_EVENT0_RIS_MDMA_DONE1_3_A > ; # [doc = "DMA Done 1 on Event Channel 3\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_MDMA_DONE1_3_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_MDMA_DONE1_3_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_MDMA_DONE1_3_SET = 1 , } impl From < INT_EVENT0_RIS_MDMA_DONE1_3_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_MDMA_DONE1_3_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_MDMA_DONE1_3_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_MDMA_DONE1_3_A { match self . bits { false => INT_EVENT0_RIS_MDMA_DONE1_3_A :: INT_EVENT0_RIS_MDMA_DONE1_3_CLR , true => INT_EVENT0_RIS_MDMA_DONE1_3_A :: INT_EVENT0_RIS_MDMA_DONE1_3_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_mdma_done1_3_clr (& self) -> bool { * self == INT_EVENT0_RIS_MDMA_DONE1_3_A :: INT_EVENT0_RIS_MDMA_DONE1_3_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_mdma_done1_3_set (& self) -> bool { * self == INT_EVENT0_RIS_MDMA_DONE1_3_A :: INT_EVENT0_RIS_MDMA_DONE1_3_SET } } # [doc = "Field `INT_EVENT0_RIS_MPEC_RX_ERR` reader - Master RX Pec Error Interrupt"]
pub type INT_EVENT0_RIS_MPEC_RX_ERR_R = crate :: BitReader < INT_EVENT0_RIS_MPEC_RX_ERR_A > ; # [doc = "Master RX Pec Error Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_MPEC_RX_ERR_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_MPEC_RX_ERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_MPEC_RX_ERR_SET = 1 , } impl From < INT_EVENT0_RIS_MPEC_RX_ERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_MPEC_RX_ERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_MPEC_RX_ERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_MPEC_RX_ERR_A { match self . bits { false => INT_EVENT0_RIS_MPEC_RX_ERR_A :: INT_EVENT0_RIS_MPEC_RX_ERR_CLR , true => INT_EVENT0_RIS_MPEC_RX_ERR_A :: INT_EVENT0_RIS_MPEC_RX_ERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_mpec_rx_err_clr (& self) -> bool { * self == INT_EVENT0_RIS_MPEC_RX_ERR_A :: INT_EVENT0_RIS_MPEC_RX_ERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_mpec_rx_err_set (& self) -> bool { * self == INT_EVENT0_RIS_MPEC_RX_ERR_A :: INT_EVENT0_RIS_MPEC_RX_ERR_SET } } # [doc = "Field `INT_EVENT0_RIS_TIMEOUTA` reader - Timeout A Interrupt"]
pub type INT_EVENT0_RIS_TIMEOUTA_R = crate :: BitReader < INT_EVENT0_RIS_TIMEOUTA_A > ; # [doc = "Timeout A Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_TIMEOUTA_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_TIMEOUTA_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_TIMEOUTA_SET = 1 , } impl From < INT_EVENT0_RIS_TIMEOUTA_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_TIMEOUTA_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_TIMEOUTA_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_TIMEOUTA_A { match self . bits { false => INT_EVENT0_RIS_TIMEOUTA_A :: INT_EVENT0_RIS_TIMEOUTA_CLR , true => INT_EVENT0_RIS_TIMEOUTA_A :: INT_EVENT0_RIS_TIMEOUTA_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_timeouta_clr (& self) -> bool { * self == INT_EVENT0_RIS_TIMEOUTA_A :: INT_EVENT0_RIS_TIMEOUTA_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_timeouta_set (& self) -> bool { * self == INT_EVENT0_RIS_TIMEOUTA_A :: INT_EVENT0_RIS_TIMEOUTA_SET } } # [doc = "Field `INT_EVENT0_RIS_TIMEOUTB` reader - Timeout B Interrupt"]
pub type INT_EVENT0_RIS_TIMEOUTB_R = crate :: BitReader < INT_EVENT0_RIS_TIMEOUTB_A > ; # [doc = "Timeout B Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_TIMEOUTB_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_TIMEOUTB_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_TIMEOUTB_SET = 1 , } impl From < INT_EVENT0_RIS_TIMEOUTB_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_TIMEOUTB_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_TIMEOUTB_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_TIMEOUTB_A { match self . bits { false => INT_EVENT0_RIS_TIMEOUTB_A :: INT_EVENT0_RIS_TIMEOUTB_CLR , true => INT_EVENT0_RIS_TIMEOUTB_A :: INT_EVENT0_RIS_TIMEOUTB_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_timeoutb_clr (& self) -> bool { * self == INT_EVENT0_RIS_TIMEOUTB_A :: INT_EVENT0_RIS_TIMEOUTB_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_timeoutb_set (& self) -> bool { * self == INT_EVENT0_RIS_TIMEOUTB_A :: INT_EVENT0_RIS_TIMEOUTB_SET } } # [doc = "Field `INT_EVENT0_RIS_SRXDONE` reader - Slave Receive Data Interrupt Signals that a byte has been received"]
pub type INT_EVENT0_RIS_SRXDONE_R = crate :: BitReader < INT_EVENT0_RIS_SRXDONE_A > ; # [doc = "Slave Receive Data Interrupt Signals that a byte has been received\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_SRXDONE_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_SRXDONE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_SRXDONE_SET = 1 , } impl From < INT_EVENT0_RIS_SRXDONE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_SRXDONE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_SRXDONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_SRXDONE_A { match self . bits { false => INT_EVENT0_RIS_SRXDONE_A :: INT_EVENT0_RIS_SRXDONE_CLR , true => INT_EVENT0_RIS_SRXDONE_A :: INT_EVENT0_RIS_SRXDONE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_srxdone_clr (& self) -> bool { * self == INT_EVENT0_RIS_SRXDONE_A :: INT_EVENT0_RIS_SRXDONE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_srxdone_set (& self) -> bool { * self == INT_EVENT0_RIS_SRXDONE_A :: INT_EVENT0_RIS_SRXDONE_SET } } # [doc = "Field `INT_EVENT0_RIS_STXDONE` reader - Slave Transmit Transaction completed Interrupt"]
pub type INT_EVENT0_RIS_STXDONE_R = crate :: BitReader < INT_EVENT0_RIS_STXDONE_A > ; # [doc = "Slave Transmit Transaction completed Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_STXDONE_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_STXDONE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_STXDONE_SET = 1 , } impl From < INT_EVENT0_RIS_STXDONE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_STXDONE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_STXDONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_STXDONE_A { match self . bits { false => INT_EVENT0_RIS_STXDONE_A :: INT_EVENT0_RIS_STXDONE_CLR , true => INT_EVENT0_RIS_STXDONE_A :: INT_EVENT0_RIS_STXDONE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_stxdone_clr (& self) -> bool { * self == INT_EVENT0_RIS_STXDONE_A :: INT_EVENT0_RIS_STXDONE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_stxdone_set (& self) -> bool { * self == INT_EVENT0_RIS_STXDONE_A :: INT_EVENT0_RIS_STXDONE_SET } } # [doc = "Field `INT_EVENT0_RIS_SRXFIFOTRG` reader - Slave Receive FIFO Trigger"]
pub type INT_EVENT0_RIS_SRXFIFOTRG_R = crate :: BitReader < INT_EVENT0_RIS_SRXFIFOTRG_A > ; # [doc = "Slave Receive FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_SRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_SRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_SRXFIFOTRG_SET = 1 , } impl From < INT_EVENT0_RIS_SRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_SRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_SRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_SRXFIFOTRG_A { match self . bits { false => INT_EVENT0_RIS_SRXFIFOTRG_A :: INT_EVENT0_RIS_SRXFIFOTRG_CLR , true => INT_EVENT0_RIS_SRXFIFOTRG_A :: INT_EVENT0_RIS_SRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_srxfifotrg_clr (& self) -> bool { * self == INT_EVENT0_RIS_SRXFIFOTRG_A :: INT_EVENT0_RIS_SRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_srxfifotrg_set (& self) -> bool { * self == INT_EVENT0_RIS_SRXFIFOTRG_A :: INT_EVENT0_RIS_SRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT0_RIS_STXFIFOTRG` reader - Slave Transmit FIFO Trigger"]
pub type INT_EVENT0_RIS_STXFIFOTRG_R = crate :: BitReader < INT_EVENT0_RIS_STXFIFOTRG_A > ; # [doc = "Slave Transmit FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_STXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_STXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_STXFIFOTRG_SET = 1 , } impl From < INT_EVENT0_RIS_STXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_STXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_STXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_STXFIFOTRG_A { match self . bits { false => INT_EVENT0_RIS_STXFIFOTRG_A :: INT_EVENT0_RIS_STXFIFOTRG_CLR , true => INT_EVENT0_RIS_STXFIFOTRG_A :: INT_EVENT0_RIS_STXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_stxfifotrg_clr (& self) -> bool { * self == INT_EVENT0_RIS_STXFIFOTRG_A :: INT_EVENT0_RIS_STXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_stxfifotrg_set (& self) -> bool { * self == INT_EVENT0_RIS_STXFIFOTRG_A :: INT_EVENT0_RIS_STXFIFOTRG_SET } } # [doc = "Field `INT_EVENT0_RIS_SRXFIFOFULL` reader - RXFIFO full event. This interrupt is set if an RX FIFO is full."]
pub type INT_EVENT0_RIS_SRXFIFOFULL_R = crate :: BitReader < INT_EVENT0_RIS_SRXFIFOFULL_A > ; # [doc = "RXFIFO full event. This interrupt is set if an RX FIFO is full.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_SRXFIFOFULL_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_SRXFIFOFULL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_SRXFIFOFULL_SET = 1 , } impl From < INT_EVENT0_RIS_SRXFIFOFULL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_SRXFIFOFULL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_SRXFIFOFULL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_SRXFIFOFULL_A { match self . bits { false => INT_EVENT0_RIS_SRXFIFOFULL_A :: INT_EVENT0_RIS_SRXFIFOFULL_CLR , true => INT_EVENT0_RIS_SRXFIFOFULL_A :: INT_EVENT0_RIS_SRXFIFOFULL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_srxfifofull_clr (& self) -> bool { * self == INT_EVENT0_RIS_SRXFIFOFULL_A :: INT_EVENT0_RIS_SRXFIFOFULL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_srxfifofull_set (& self) -> bool { * self == INT_EVENT0_RIS_SRXFIFOFULL_A :: INT_EVENT0_RIS_SRXFIFOFULL_SET } } # [doc = "Field `INT_EVENT0_RIS_STXEMPTY` reader - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
pub type INT_EVENT0_RIS_STXEMPTY_R = crate :: BitReader < INT_EVENT0_RIS_STXEMPTY_A > ; # [doc = "Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_STXEMPTY_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_STXEMPTY_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_STXEMPTY_SET = 1 , } impl From < INT_EVENT0_RIS_STXEMPTY_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_STXEMPTY_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_STXEMPTY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_STXEMPTY_A { match self . bits { false => INT_EVENT0_RIS_STXEMPTY_A :: INT_EVENT0_RIS_STXEMPTY_CLR , true => INT_EVENT0_RIS_STXEMPTY_A :: INT_EVENT0_RIS_STXEMPTY_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_stxempty_clr (& self) -> bool { * self == INT_EVENT0_RIS_STXEMPTY_A :: INT_EVENT0_RIS_STXEMPTY_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_stxempty_set (& self) -> bool { * self == INT_EVENT0_RIS_STXEMPTY_A :: INT_EVENT0_RIS_STXEMPTY_SET } } # [doc = "Field `INT_EVENT0_RIS_SSTART` reader - Start Condition Interrupt"]
pub type INT_EVENT0_RIS_SSTART_R = crate :: BitReader < INT_EVENT0_RIS_SSTART_A > ; # [doc = "Start Condition Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_SSTART_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_SSTART_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_SSTART_SET = 1 , } impl From < INT_EVENT0_RIS_SSTART_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_SSTART_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_SSTART_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_SSTART_A { match self . bits { false => INT_EVENT0_RIS_SSTART_A :: INT_EVENT0_RIS_SSTART_CLR , true => INT_EVENT0_RIS_SSTART_A :: INT_EVENT0_RIS_SSTART_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_sstart_clr (& self) -> bool { * self == INT_EVENT0_RIS_SSTART_A :: INT_EVENT0_RIS_SSTART_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_sstart_set (& self) -> bool { * self == INT_EVENT0_RIS_SSTART_A :: INT_EVENT0_RIS_SSTART_SET } } # [doc = "Field `INT_EVENT0_RIS_SSTOP` reader - Stop Condition Interrupt"]
pub type INT_EVENT0_RIS_SSTOP_R = crate :: BitReader < INT_EVENT0_RIS_SSTOP_A > ; # [doc = "Stop Condition Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_SSTOP_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_SSTOP_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_SSTOP_SET = 1 , } impl From < INT_EVENT0_RIS_SSTOP_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_SSTOP_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_SSTOP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_SSTOP_A { match self . bits { false => INT_EVENT0_RIS_SSTOP_A :: INT_EVENT0_RIS_SSTOP_CLR , true => INT_EVENT0_RIS_SSTOP_A :: INT_EVENT0_RIS_SSTOP_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_sstop_clr (& self) -> bool { * self == INT_EVENT0_RIS_SSTOP_A :: INT_EVENT0_RIS_SSTOP_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_sstop_set (& self) -> bool { * self == INT_EVENT0_RIS_SSTOP_A :: INT_EVENT0_RIS_SSTOP_SET } } # [doc = "Field `INT_EVENT0_RIS_SGENCALL` reader - General Call Interrupt"]
pub type INT_EVENT0_RIS_SGENCALL_R = crate :: BitReader < INT_EVENT0_RIS_SGENCALL_A > ; # [doc = "General Call Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_SGENCALL_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_SGENCALL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_SGENCALL_SET = 1 , } impl From < INT_EVENT0_RIS_SGENCALL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_SGENCALL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_SGENCALL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_SGENCALL_A { match self . bits { false => INT_EVENT0_RIS_SGENCALL_A :: INT_EVENT0_RIS_SGENCALL_CLR , true => INT_EVENT0_RIS_SGENCALL_A :: INT_EVENT0_RIS_SGENCALL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_sgencall_clr (& self) -> bool { * self == INT_EVENT0_RIS_SGENCALL_A :: INT_EVENT0_RIS_SGENCALL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_sgencall_set (& self) -> bool { * self == INT_EVENT0_RIS_SGENCALL_A :: INT_EVENT0_RIS_SGENCALL_SET } } # [doc = "Field `INT_EVENT0_RIS_SDMA_DONE1_2` reader - DMA Done 1 on Event Channel 2"]
pub type INT_EVENT0_RIS_SDMA_DONE1_2_R = crate :: BitReader < INT_EVENT0_RIS_SDMA_DONE1_2_A > ; # [doc = "DMA Done 1 on Event Channel 2\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_SDMA_DONE1_2_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_SDMA_DONE1_2_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_SDMA_DONE1_2_SET = 1 , } impl From < INT_EVENT0_RIS_SDMA_DONE1_2_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_SDMA_DONE1_2_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_SDMA_DONE1_2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_SDMA_DONE1_2_A { match self . bits { false => INT_EVENT0_RIS_SDMA_DONE1_2_A :: INT_EVENT0_RIS_SDMA_DONE1_2_CLR , true => INT_EVENT0_RIS_SDMA_DONE1_2_A :: INT_EVENT0_RIS_SDMA_DONE1_2_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_sdma_done1_2_clr (& self) -> bool { * self == INT_EVENT0_RIS_SDMA_DONE1_2_A :: INT_EVENT0_RIS_SDMA_DONE1_2_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_sdma_done1_2_set (& self) -> bool { * self == INT_EVENT0_RIS_SDMA_DONE1_2_A :: INT_EVENT0_RIS_SDMA_DONE1_2_SET } } # [doc = "Field `INT_EVENT0_RIS_SDMA_DONE1_3` reader - DMA Done 1 on Event Channel 3"]
pub type INT_EVENT0_RIS_SDMA_DONE1_3_R = crate :: BitReader < INT_EVENT0_RIS_SDMA_DONE1_3_A > ; # [doc = "DMA Done 1 on Event Channel 3\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_SDMA_DONE1_3_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_SDMA_DONE1_3_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_SDMA_DONE1_3_SET = 1 , } impl From < INT_EVENT0_RIS_SDMA_DONE1_3_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_SDMA_DONE1_3_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_SDMA_DONE1_3_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_SDMA_DONE1_3_A { match self . bits { false => INT_EVENT0_RIS_SDMA_DONE1_3_A :: INT_EVENT0_RIS_SDMA_DONE1_3_CLR , true => INT_EVENT0_RIS_SDMA_DONE1_3_A :: INT_EVENT0_RIS_SDMA_DONE1_3_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_sdma_done1_3_clr (& self) -> bool { * self == INT_EVENT0_RIS_SDMA_DONE1_3_A :: INT_EVENT0_RIS_SDMA_DONE1_3_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_sdma_done1_3_set (& self) -> bool { * self == INT_EVENT0_RIS_SDMA_DONE1_3_A :: INT_EVENT0_RIS_SDMA_DONE1_3_SET } } # [doc = "Field `INT_EVENT0_RIS_SPEC_RX_ERR` reader - Slave RX Pec Error Interrupt"]
pub type INT_EVENT0_RIS_SPEC_RX_ERR_R = crate :: BitReader < INT_EVENT0_RIS_SPEC_RX_ERR_A > ; # [doc = "Slave RX Pec Error Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_SPEC_RX_ERR_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_SPEC_RX_ERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_SPEC_RX_ERR_SET = 1 , } impl From < INT_EVENT0_RIS_SPEC_RX_ERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_SPEC_RX_ERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_SPEC_RX_ERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_SPEC_RX_ERR_A { match self . bits { false => INT_EVENT0_RIS_SPEC_RX_ERR_A :: INT_EVENT0_RIS_SPEC_RX_ERR_CLR , true => INT_EVENT0_RIS_SPEC_RX_ERR_A :: INT_EVENT0_RIS_SPEC_RX_ERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_spec_rx_err_clr (& self) -> bool { * self == INT_EVENT0_RIS_SPEC_RX_ERR_A :: INT_EVENT0_RIS_SPEC_RX_ERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_spec_rx_err_set (& self) -> bool { * self == INT_EVENT0_RIS_SPEC_RX_ERR_A :: INT_EVENT0_RIS_SPEC_RX_ERR_SET } } # [doc = "Field `INT_EVENT0_RIS_STX_UNFL` reader - Slave TX FIFO underflow"]
pub type INT_EVENT0_RIS_STX_UNFL_R = crate :: BitReader < INT_EVENT0_RIS_STX_UNFL_A > ; # [doc = "Slave TX FIFO underflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_STX_UNFL_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_STX_UNFL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_STX_UNFL_SET = 1 , } impl From < INT_EVENT0_RIS_STX_UNFL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_STX_UNFL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_STX_UNFL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_STX_UNFL_A { match self . bits { false => INT_EVENT0_RIS_STX_UNFL_A :: INT_EVENT0_RIS_STX_UNFL_CLR , true => INT_EVENT0_RIS_STX_UNFL_A :: INT_EVENT0_RIS_STX_UNFL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_stx_unfl_clr (& self) -> bool { * self == INT_EVENT0_RIS_STX_UNFL_A :: INT_EVENT0_RIS_STX_UNFL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_stx_unfl_set (& self) -> bool { * self == INT_EVENT0_RIS_STX_UNFL_A :: INT_EVENT0_RIS_STX_UNFL_SET } } # [doc = "Field `INT_EVENT0_RIS_SRX_OVFL` reader - Slave RX FIFO overflow"]
pub type INT_EVENT0_RIS_SRX_OVFL_R = crate :: BitReader < INT_EVENT0_RIS_SRX_OVFL_A > ; # [doc = "Slave RX FIFO overflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_SRX_OVFL_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_SRX_OVFL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_SRX_OVFL_SET = 1 , } impl From < INT_EVENT0_RIS_SRX_OVFL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_SRX_OVFL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_SRX_OVFL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_SRX_OVFL_A { match self . bits { false => INT_EVENT0_RIS_SRX_OVFL_A :: INT_EVENT0_RIS_SRX_OVFL_CLR , true => INT_EVENT0_RIS_SRX_OVFL_A :: INT_EVENT0_RIS_SRX_OVFL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_srx_ovfl_clr (& self) -> bool { * self == INT_EVENT0_RIS_SRX_OVFL_A :: INT_EVENT0_RIS_SRX_OVFL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_srx_ovfl_set (& self) -> bool { * self == INT_EVENT0_RIS_SRX_OVFL_A :: INT_EVENT0_RIS_SRX_OVFL_SET } } # [doc = "Field `INT_EVENT0_RIS_SARBLOST` reader - Slave Arbitration Lost"]
pub type INT_EVENT0_RIS_SARBLOST_R = crate :: BitReader < INT_EVENT0_RIS_SARBLOST_A > ; # [doc = "Slave Arbitration Lost\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_SARBLOST_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_SARBLOST_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_SARBLOST_SET = 1 , } impl From < INT_EVENT0_RIS_SARBLOST_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_SARBLOST_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_SARBLOST_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_SARBLOST_A { match self . bits { false => INT_EVENT0_RIS_SARBLOST_A :: INT_EVENT0_RIS_SARBLOST_CLR , true => INT_EVENT0_RIS_SARBLOST_A :: INT_EVENT0_RIS_SARBLOST_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_sarblost_clr (& self) -> bool { * self == INT_EVENT0_RIS_SARBLOST_A :: INT_EVENT0_RIS_SARBLOST_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_sarblost_set (& self) -> bool { * self == INT_EVENT0_RIS_SARBLOST_A :: INT_EVENT0_RIS_SARBLOST_SET } } # [doc = "Field `INT_EVENT0_RIS_INTR_OVFL` reader - Interrupt overflow interrupt It is set when SSTART or SSTOP interrupts overflow i.e. occur twice without being serviced"]
pub type INT_EVENT0_RIS_INTR_OVFL_R = crate :: BitReader < INT_EVENT0_RIS_INTR_OVFL_A > ; # [doc = "Interrupt overflow interrupt It is set when SSTART or SSTOP interrupts overflow i.e. occur twice without being serviced\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_INTR_OVFL_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_INTR_OVFL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_INTR_OVFL_SET = 1 , } impl From < INT_EVENT0_RIS_INTR_OVFL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_INTR_OVFL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_INTR_OVFL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_INTR_OVFL_A { match self . bits { false => INT_EVENT0_RIS_INTR_OVFL_A :: INT_EVENT0_RIS_INTR_OVFL_CLR , true => INT_EVENT0_RIS_INTR_OVFL_A :: INT_EVENT0_RIS_INTR_OVFL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_intr_ovfl_clr (& self) -> bool { * self == INT_EVENT0_RIS_INTR_OVFL_A :: INT_EVENT0_RIS_INTR_OVFL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_intr_ovfl_set (& self) -> bool { * self == INT_EVENT0_RIS_INTR_OVFL_A :: INT_EVENT0_RIS_INTR_OVFL_SET } } impl R { # [doc = "Bit 0 - Master Receive Transaction completed Interrupt"]
# [inline (always)]
pub fn int_event0_ris_mrxdone (& self) -> INT_EVENT0_RIS_MRXDONE_R { INT_EVENT0_RIS_MRXDONE_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Master Transmit Transaction completed Interrupt"]
# [inline (always)]
pub fn int_event0_ris_mtxdone (& self) -> INT_EVENT0_RIS_MTXDONE_R { INT_EVENT0_RIS_MTXDONE_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
pub fn int_event0_ris_mrxfifotrg (& self) -> INT_EVENT0_RIS_MRXFIFOTRG_R { INT_EVENT0_RIS_MRXFIFOTRG_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
pub fn int_event0_ris_mtxfifotrg (& self) -> INT_EVENT0_RIS_MTXFIFOTRG_R { INT_EVENT0_RIS_MTXFIFOTRG_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - RXFIFO full event. This interrupt is set if an RX FIFO is full."]
# [inline (always)]
pub fn int_event0_ris_mrxfifofull (& self) -> INT_EVENT0_RIS_MRXFIFOFULL_R { INT_EVENT0_RIS_MRXFIFOFULL_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
# [inline (always)]
pub fn int_event0_ris_mtxempty (& self) -> INT_EVENT0_RIS_MTXEMPTY_R { INT_EVENT0_RIS_MTXEMPTY_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 7 - Address/Data NACK Interrupt"]
# [inline (always)]
pub fn int_event0_ris_mnack (& self) -> INT_EVENT0_RIS_MNACK_R { INT_EVENT0_RIS_MNACK_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - START Detection Interrupt"]
# [inline (always)]
pub fn int_event0_ris_mstart (& self) -> INT_EVENT0_RIS_MSTART_R { INT_EVENT0_RIS_MSTART_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - STOP Detection Interrupt"]
# [inline (always)]
pub fn int_event0_ris_mstop (& self) -> INT_EVENT0_RIS_MSTOP_R { INT_EVENT0_RIS_MSTOP_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - Arbitration Lost Interrupt"]
# [inline (always)]
pub fn int_event0_ris_marblost (& self) -> INT_EVENT0_RIS_MARBLOST_R { INT_EVENT0_RIS_MARBLOST_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bit 11 - DMA Done 1 on Event Channel 2"]
# [inline (always)]
pub fn int_event0_ris_mdma_done1_2 (& self) -> INT_EVENT0_RIS_MDMA_DONE1_2_R { INT_EVENT0_RIS_MDMA_DONE1_2_R :: new (((self . bits >> 11) & 1) != 0) } # [doc = "Bit 12 - DMA Done 1 on Event Channel 3"]
# [inline (always)]
pub fn int_event0_ris_mdma_done1_3 (& self) -> INT_EVENT0_RIS_MDMA_DONE1_3_R { INT_EVENT0_RIS_MDMA_DONE1_3_R :: new (((self . bits >> 12) & 1) != 0) } # [doc = "Bit 13 - Master RX Pec Error Interrupt"]
# [inline (always)]
pub fn int_event0_ris_mpec_rx_err (& self) -> INT_EVENT0_RIS_MPEC_RX_ERR_R { INT_EVENT0_RIS_MPEC_RX_ERR_R :: new (((self . bits >> 13) & 1) != 0) } # [doc = "Bit 14 - Timeout A Interrupt"]
# [inline (always)]
pub fn int_event0_ris_timeouta (& self) -> INT_EVENT0_RIS_TIMEOUTA_R { INT_EVENT0_RIS_TIMEOUTA_R :: new (((self . bits >> 14) & 1) != 0) } # [doc = "Bit 15 - Timeout B Interrupt"]
# [inline (always)]
pub fn int_event0_ris_timeoutb (& self) -> INT_EVENT0_RIS_TIMEOUTB_R { INT_EVENT0_RIS_TIMEOUTB_R :: new (((self . bits >> 15) & 1) != 0) } # [doc = "Bit 16 - Slave Receive Data Interrupt Signals that a byte has been received"]
# [inline (always)]
pub fn int_event0_ris_srxdone (& self) -> INT_EVENT0_RIS_SRXDONE_R { INT_EVENT0_RIS_SRXDONE_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 17 - Slave Transmit Transaction completed Interrupt"]
# [inline (always)]
pub fn int_event0_ris_stxdone (& self) -> INT_EVENT0_RIS_STXDONE_R { INT_EVENT0_RIS_STXDONE_R :: new (((self . bits >> 17) & 1) != 0) } # [doc = "Bit 18 - Slave Receive FIFO Trigger"]
# [inline (always)]
pub fn int_event0_ris_srxfifotrg (& self) -> INT_EVENT0_RIS_SRXFIFOTRG_R { INT_EVENT0_RIS_SRXFIFOTRG_R :: new (((self . bits >> 18) & 1) != 0) } # [doc = "Bit 19 - Slave Transmit FIFO Trigger"]
# [inline (always)]
pub fn int_event0_ris_stxfifotrg (& self) -> INT_EVENT0_RIS_STXFIFOTRG_R { INT_EVENT0_RIS_STXFIFOTRG_R :: new (((self . bits >> 19) & 1) != 0) } # [doc = "Bit 20 - RXFIFO full event. This interrupt is set if an RX FIFO is full."]
# [inline (always)]
pub fn int_event0_ris_srxfifofull (& self) -> INT_EVENT0_RIS_SRXFIFOFULL_R { INT_EVENT0_RIS_SRXFIFOFULL_R :: new (((self . bits >> 20) & 1) != 0) } # [doc = "Bit 21 - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
# [inline (always)]
pub fn int_event0_ris_stxempty (& self) -> INT_EVENT0_RIS_STXEMPTY_R { INT_EVENT0_RIS_STXEMPTY_R :: new (((self . bits >> 21) & 1) != 0) } # [doc = "Bit 22 - Start Condition Interrupt"]
# [inline (always)]
pub fn int_event0_ris_sstart (& self) -> INT_EVENT0_RIS_SSTART_R { INT_EVENT0_RIS_SSTART_R :: new (((self . bits >> 22) & 1) != 0) } # [doc = "Bit 23 - Stop Condition Interrupt"]
# [inline (always)]
pub fn int_event0_ris_sstop (& self) -> INT_EVENT0_RIS_SSTOP_R { INT_EVENT0_RIS_SSTOP_R :: new (((self . bits >> 23) & 1) != 0) } # [doc = "Bit 24 - General Call Interrupt"]
# [inline (always)]
pub fn int_event0_ris_sgencall (& self) -> INT_EVENT0_RIS_SGENCALL_R { INT_EVENT0_RIS_SGENCALL_R :: new (((self . bits >> 24) & 1) != 0) } # [doc = "Bit 25 - DMA Done 1 on Event Channel 2"]
# [inline (always)]
pub fn int_event0_ris_sdma_done1_2 (& self) -> INT_EVENT0_RIS_SDMA_DONE1_2_R { INT_EVENT0_RIS_SDMA_DONE1_2_R :: new (((self . bits >> 25) & 1) != 0) } # [doc = "Bit 26 - DMA Done 1 on Event Channel 3"]
# [inline (always)]
pub fn int_event0_ris_sdma_done1_3 (& self) -> INT_EVENT0_RIS_SDMA_DONE1_3_R { INT_EVENT0_RIS_SDMA_DONE1_3_R :: new (((self . bits >> 26) & 1) != 0) } # [doc = "Bit 27 - Slave RX Pec Error Interrupt"]
# [inline (always)]
pub fn int_event0_ris_spec_rx_err (& self) -> INT_EVENT0_RIS_SPEC_RX_ERR_R { INT_EVENT0_RIS_SPEC_RX_ERR_R :: new (((self . bits >> 27) & 1) != 0) } # [doc = "Bit 28 - Slave TX FIFO underflow"]
# [inline (always)]
pub fn int_event0_ris_stx_unfl (& self) -> INT_EVENT0_RIS_STX_UNFL_R { INT_EVENT0_RIS_STX_UNFL_R :: new (((self . bits >> 28) & 1) != 0) } # [doc = "Bit 29 - Slave RX FIFO overflow"]
# [inline (always)]
pub fn int_event0_ris_srx_ovfl (& self) -> INT_EVENT0_RIS_SRX_OVFL_R { INT_EVENT0_RIS_SRX_OVFL_R :: new (((self . bits >> 29) & 1) != 0) } # [doc = "Bit 30 - Slave Arbitration Lost"]
# [inline (always)]
pub fn int_event0_ris_sarblost (& self) -> INT_EVENT0_RIS_SARBLOST_R { INT_EVENT0_RIS_SARBLOST_R :: new (((self . bits >> 30) & 1) != 0) } # [doc = "Bit 31 - Interrupt overflow interrupt It is set when SSTART or SSTOP interrupts overflow i.e. occur twice without being serviced"]
# [inline (always)]
pub fn int_event0_ris_intr_ovfl (& self) -> INT_EVENT0_RIS_INTR_OVFL_R { INT_EVENT0_RIS_INTR_OVFL_R :: new (((self . bits >> 31) & 1) != 0) } } # [doc = "Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_RIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event0_ris::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT0_RIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT0_RIS to value 0"]
impl crate :: Resettable for INT_EVENT0_RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_MIS (r) register accessor: Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_mis`]
module"]
pub type INT_EVENT0_MIS = crate :: Reg < int_event0_mis :: INT_EVENT0_MIS_SPEC > ; # [doc = "Masked interrupt status"]
pub mod int_event0_mis { # [doc = "Register `INT_EVENT0_MIS` reader"]
pub type R = crate :: R < INT_EVENT0_MIS_SPEC > ; # [doc = "Field `INT_EVENT0_MIS_MRXDONE` reader - Master Receive Data Interrupt"]
pub type INT_EVENT0_MIS_MRXDONE_R = crate :: BitReader < INT_EVENT0_MIS_MRXDONE_A > ; # [doc = "Master Receive Data Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_MRXDONE_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_MRXDONE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_MRXDONE_SET = 1 , } impl From < INT_EVENT0_MIS_MRXDONE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_MRXDONE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_MRXDONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_MRXDONE_A { match self . bits { false => INT_EVENT0_MIS_MRXDONE_A :: INT_EVENT0_MIS_MRXDONE_CLR , true => INT_EVENT0_MIS_MRXDONE_A :: INT_EVENT0_MIS_MRXDONE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_mrxdone_clr (& self) -> bool { * self == INT_EVENT0_MIS_MRXDONE_A :: INT_EVENT0_MIS_MRXDONE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_mrxdone_set (& self) -> bool { * self == INT_EVENT0_MIS_MRXDONE_A :: INT_EVENT0_MIS_MRXDONE_SET } } # [doc = "Field `INT_EVENT0_MIS_MTXDONE` reader - Master Transmit Transaction completed Interrupt"]
pub type INT_EVENT0_MIS_MTXDONE_R = crate :: BitReader < INT_EVENT0_MIS_MTXDONE_A > ; # [doc = "Master Transmit Transaction completed Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_MTXDONE_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_MTXDONE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_MTXDONE_SET = 1 , } impl From < INT_EVENT0_MIS_MTXDONE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_MTXDONE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_MTXDONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_MTXDONE_A { match self . bits { false => INT_EVENT0_MIS_MTXDONE_A :: INT_EVENT0_MIS_MTXDONE_CLR , true => INT_EVENT0_MIS_MTXDONE_A :: INT_EVENT0_MIS_MTXDONE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_mtxdone_clr (& self) -> bool { * self == INT_EVENT0_MIS_MTXDONE_A :: INT_EVENT0_MIS_MTXDONE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_mtxdone_set (& self) -> bool { * self == INT_EVENT0_MIS_MTXDONE_A :: INT_EVENT0_MIS_MTXDONE_SET } } # [doc = "Field `INT_EVENT0_MIS_MRXFIFOTRG` reader - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT0_MIS_MRXFIFOTRG_R = crate :: BitReader < INT_EVENT0_MIS_MRXFIFOTRG_A > ; # [doc = "Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_MRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_MRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_MRXFIFOTRG_SET = 1 , } impl From < INT_EVENT0_MIS_MRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_MRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_MRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_MRXFIFOTRG_A { match self . bits { false => INT_EVENT0_MIS_MRXFIFOTRG_A :: INT_EVENT0_MIS_MRXFIFOTRG_CLR , true => INT_EVENT0_MIS_MRXFIFOTRG_A :: INT_EVENT0_MIS_MRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_mrxfifotrg_clr (& self) -> bool { * self == INT_EVENT0_MIS_MRXFIFOTRG_A :: INT_EVENT0_MIS_MRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_mrxfifotrg_set (& self) -> bool { * self == INT_EVENT0_MIS_MRXFIFOTRG_A :: INT_EVENT0_MIS_MRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT0_MIS_MTXFIFOTRG` reader - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT0_MIS_MTXFIFOTRG_R = crate :: BitReader < INT_EVENT0_MIS_MTXFIFOTRG_A > ; # [doc = "Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_MTXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_MTXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_MTXFIFOTRG_SET = 1 , } impl From < INT_EVENT0_MIS_MTXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_MTXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_MTXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_MTXFIFOTRG_A { match self . bits { false => INT_EVENT0_MIS_MTXFIFOTRG_A :: INT_EVENT0_MIS_MTXFIFOTRG_CLR , true => INT_EVENT0_MIS_MTXFIFOTRG_A :: INT_EVENT0_MIS_MTXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_mtxfifotrg_clr (& self) -> bool { * self == INT_EVENT0_MIS_MTXFIFOTRG_A :: INT_EVENT0_MIS_MTXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_mtxfifotrg_set (& self) -> bool { * self == INT_EVENT0_MIS_MTXFIFOTRG_A :: INT_EVENT0_MIS_MTXFIFOTRG_SET } } # [doc = "Field `INT_EVENT0_MIS_MRXFIFOFULL` reader - RXFIFO full event. This interrupt is set if the RX FIFO is full."]
pub type INT_EVENT0_MIS_MRXFIFOFULL_R = crate :: BitReader < INT_EVENT0_MIS_MRXFIFOFULL_A > ; # [doc = "RXFIFO full event. This interrupt is set if the RX FIFO is full.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_MRXFIFOFULL_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_MRXFIFOFULL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_MRXFIFOFULL_SET = 1 , } impl From < INT_EVENT0_MIS_MRXFIFOFULL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_MRXFIFOFULL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_MRXFIFOFULL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_MRXFIFOFULL_A { match self . bits { false => INT_EVENT0_MIS_MRXFIFOFULL_A :: INT_EVENT0_MIS_MRXFIFOFULL_CLR , true => INT_EVENT0_MIS_MRXFIFOFULL_A :: INT_EVENT0_MIS_MRXFIFOFULL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_mrxfifofull_clr (& self) -> bool { * self == INT_EVENT0_MIS_MRXFIFOFULL_A :: INT_EVENT0_MIS_MRXFIFOFULL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_mrxfifofull_set (& self) -> bool { * self == INT_EVENT0_MIS_MRXFIFOFULL_A :: INT_EVENT0_MIS_MRXFIFOFULL_SET } } # [doc = "Field `INT_EVENT0_MIS_MTXEMPTY` reader - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
pub type INT_EVENT0_MIS_MTXEMPTY_R = crate :: BitReader < INT_EVENT0_MIS_MTXEMPTY_A > ; # [doc = "Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_MTXEMPTY_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_MTXEMPTY_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_MTXEMPTY_SET = 1 , } impl From < INT_EVENT0_MIS_MTXEMPTY_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_MTXEMPTY_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_MTXEMPTY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_MTXEMPTY_A { match self . bits { false => INT_EVENT0_MIS_MTXEMPTY_A :: INT_EVENT0_MIS_MTXEMPTY_CLR , true => INT_EVENT0_MIS_MTXEMPTY_A :: INT_EVENT0_MIS_MTXEMPTY_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_mtxempty_clr (& self) -> bool { * self == INT_EVENT0_MIS_MTXEMPTY_A :: INT_EVENT0_MIS_MTXEMPTY_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_mtxempty_set (& self) -> bool { * self == INT_EVENT0_MIS_MTXEMPTY_A :: INT_EVENT0_MIS_MTXEMPTY_SET } } # [doc = "Field `INT_EVENT0_MIS_MNACK` reader - Address/Data NACK Interrupt"]
pub type INT_EVENT0_MIS_MNACK_R = crate :: BitReader < INT_EVENT0_MIS_MNACK_A > ; # [doc = "Address/Data NACK Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_MNACK_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_MNACK_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_MNACK_SET = 1 , } impl From < INT_EVENT0_MIS_MNACK_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_MNACK_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_MNACK_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_MNACK_A { match self . bits { false => INT_EVENT0_MIS_MNACK_A :: INT_EVENT0_MIS_MNACK_CLR , true => INT_EVENT0_MIS_MNACK_A :: INT_EVENT0_MIS_MNACK_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_mnack_clr (& self) -> bool { * self == INT_EVENT0_MIS_MNACK_A :: INT_EVENT0_MIS_MNACK_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_mnack_set (& self) -> bool { * self == INT_EVENT0_MIS_MNACK_A :: INT_EVENT0_MIS_MNACK_SET } } # [doc = "Field `INT_EVENT0_MIS_MSTART` reader - START Detection Interrupt"]
pub type INT_EVENT0_MIS_MSTART_R = crate :: BitReader < INT_EVENT0_MIS_MSTART_A > ; # [doc = "START Detection Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_MSTART_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_MSTART_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_MSTART_SET = 1 , } impl From < INT_EVENT0_MIS_MSTART_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_MSTART_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_MSTART_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_MSTART_A { match self . bits { false => INT_EVENT0_MIS_MSTART_A :: INT_EVENT0_MIS_MSTART_CLR , true => INT_EVENT0_MIS_MSTART_A :: INT_EVENT0_MIS_MSTART_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_mstart_clr (& self) -> bool { * self == INT_EVENT0_MIS_MSTART_A :: INT_EVENT0_MIS_MSTART_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_mstart_set (& self) -> bool { * self == INT_EVENT0_MIS_MSTART_A :: INT_EVENT0_MIS_MSTART_SET } } # [doc = "Field `INT_EVENT0_MIS_MSTOP` reader - STOP Detection Interrupt"]
pub type INT_EVENT0_MIS_MSTOP_R = crate :: BitReader < INT_EVENT0_MIS_MSTOP_A > ; # [doc = "STOP Detection Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_MSTOP_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_MSTOP_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_MSTOP_SET = 1 , } impl From < INT_EVENT0_MIS_MSTOP_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_MSTOP_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_MSTOP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_MSTOP_A { match self . bits { false => INT_EVENT0_MIS_MSTOP_A :: INT_EVENT0_MIS_MSTOP_CLR , true => INT_EVENT0_MIS_MSTOP_A :: INT_EVENT0_MIS_MSTOP_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_mstop_clr (& self) -> bool { * self == INT_EVENT0_MIS_MSTOP_A :: INT_EVENT0_MIS_MSTOP_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_mstop_set (& self) -> bool { * self == INT_EVENT0_MIS_MSTOP_A :: INT_EVENT0_MIS_MSTOP_SET } } # [doc = "Field `INT_EVENT0_MIS_MARBLOST` reader - Arbitration Lost Interrupt"]
pub type INT_EVENT0_MIS_MARBLOST_R = crate :: BitReader < INT_EVENT0_MIS_MARBLOST_A > ; # [doc = "Arbitration Lost Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_MARBLOST_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_MARBLOST_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_MARBLOST_SET = 1 , } impl From < INT_EVENT0_MIS_MARBLOST_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_MARBLOST_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_MARBLOST_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_MARBLOST_A { match self . bits { false => INT_EVENT0_MIS_MARBLOST_A :: INT_EVENT0_MIS_MARBLOST_CLR , true => INT_EVENT0_MIS_MARBLOST_A :: INT_EVENT0_MIS_MARBLOST_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_marblost_clr (& self) -> bool { * self == INT_EVENT0_MIS_MARBLOST_A :: INT_EVENT0_MIS_MARBLOST_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_marblost_set (& self) -> bool { * self == INT_EVENT0_MIS_MARBLOST_A :: INT_EVENT0_MIS_MARBLOST_SET } } # [doc = "Field `INT_EVENT0_MIS_MDMA_DONE1_2` reader - DMA Done 1 on Event Channel 2"]
pub type INT_EVENT0_MIS_MDMA_DONE1_2_R = crate :: BitReader < INT_EVENT0_MIS_MDMA_DONE1_2_A > ; # [doc = "DMA Done 1 on Event Channel 2\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_MDMA_DONE1_2_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_MDMA_DONE1_2_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_MDMA_DONE1_2_SET = 1 , } impl From < INT_EVENT0_MIS_MDMA_DONE1_2_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_MDMA_DONE1_2_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_MDMA_DONE1_2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_MDMA_DONE1_2_A { match self . bits { false => INT_EVENT0_MIS_MDMA_DONE1_2_A :: INT_EVENT0_MIS_MDMA_DONE1_2_CLR , true => INT_EVENT0_MIS_MDMA_DONE1_2_A :: INT_EVENT0_MIS_MDMA_DONE1_2_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_mdma_done1_2_clr (& self) -> bool { * self == INT_EVENT0_MIS_MDMA_DONE1_2_A :: INT_EVENT0_MIS_MDMA_DONE1_2_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_mdma_done1_2_set (& self) -> bool { * self == INT_EVENT0_MIS_MDMA_DONE1_2_A :: INT_EVENT0_MIS_MDMA_DONE1_2_SET } } # [doc = "Field `INT_EVENT0_MIS_MDMA_DONE1_3` reader - DMA Done 1 on Event Channel 3"]
pub type INT_EVENT0_MIS_MDMA_DONE1_3_R = crate :: BitReader < INT_EVENT0_MIS_MDMA_DONE1_3_A > ; # [doc = "DMA Done 1 on Event Channel 3\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_MDMA_DONE1_3_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_MDMA_DONE1_3_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_MDMA_DONE1_3_SET = 1 , } impl From < INT_EVENT0_MIS_MDMA_DONE1_3_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_MDMA_DONE1_3_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_MDMA_DONE1_3_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_MDMA_DONE1_3_A { match self . bits { false => INT_EVENT0_MIS_MDMA_DONE1_3_A :: INT_EVENT0_MIS_MDMA_DONE1_3_CLR , true => INT_EVENT0_MIS_MDMA_DONE1_3_A :: INT_EVENT0_MIS_MDMA_DONE1_3_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_mdma_done1_3_clr (& self) -> bool { * self == INT_EVENT0_MIS_MDMA_DONE1_3_A :: INT_EVENT0_MIS_MDMA_DONE1_3_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_mdma_done1_3_set (& self) -> bool { * self == INT_EVENT0_MIS_MDMA_DONE1_3_A :: INT_EVENT0_MIS_MDMA_DONE1_3_SET } } # [doc = "Field `INT_EVENT0_MIS_MPEC_RX_ERR` reader - Master RX Pec Error Interrupt"]
pub type INT_EVENT0_MIS_MPEC_RX_ERR_R = crate :: BitReader < INT_EVENT0_MIS_MPEC_RX_ERR_A > ; # [doc = "Master RX Pec Error Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_MPEC_RX_ERR_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_MPEC_RX_ERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_MPEC_RX_ERR_SET = 1 , } impl From < INT_EVENT0_MIS_MPEC_RX_ERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_MPEC_RX_ERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_MPEC_RX_ERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_MPEC_RX_ERR_A { match self . bits { false => INT_EVENT0_MIS_MPEC_RX_ERR_A :: INT_EVENT0_MIS_MPEC_RX_ERR_CLR , true => INT_EVENT0_MIS_MPEC_RX_ERR_A :: INT_EVENT0_MIS_MPEC_RX_ERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_mpec_rx_err_clr (& self) -> bool { * self == INT_EVENT0_MIS_MPEC_RX_ERR_A :: INT_EVENT0_MIS_MPEC_RX_ERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_mpec_rx_err_set (& self) -> bool { * self == INT_EVENT0_MIS_MPEC_RX_ERR_A :: INT_EVENT0_MIS_MPEC_RX_ERR_SET } } # [doc = "Field `INT_EVENT0_MIS_TIMEOUTA` reader - Timeout A Interrupt"]
pub type INT_EVENT0_MIS_TIMEOUTA_R = crate :: BitReader < INT_EVENT0_MIS_TIMEOUTA_A > ; # [doc = "Timeout A Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_TIMEOUTA_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_TIMEOUTA_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_TIMEOUTA_SET = 1 , } impl From < INT_EVENT0_MIS_TIMEOUTA_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_TIMEOUTA_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_TIMEOUTA_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_TIMEOUTA_A { match self . bits { false => INT_EVENT0_MIS_TIMEOUTA_A :: INT_EVENT0_MIS_TIMEOUTA_CLR , true => INT_EVENT0_MIS_TIMEOUTA_A :: INT_EVENT0_MIS_TIMEOUTA_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_timeouta_clr (& self) -> bool { * self == INT_EVENT0_MIS_TIMEOUTA_A :: INT_EVENT0_MIS_TIMEOUTA_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_timeouta_set (& self) -> bool { * self == INT_EVENT0_MIS_TIMEOUTA_A :: INT_EVENT0_MIS_TIMEOUTA_SET } } # [doc = "Field `INT_EVENT0_MIS_TIMEOUTB` reader - Timeout B Interrupt"]
pub type INT_EVENT0_MIS_TIMEOUTB_R = crate :: BitReader < INT_EVENT0_MIS_TIMEOUTB_A > ; # [doc = "Timeout B Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_TIMEOUTB_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_TIMEOUTB_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_TIMEOUTB_SET = 1 , } impl From < INT_EVENT0_MIS_TIMEOUTB_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_TIMEOUTB_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_TIMEOUTB_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_TIMEOUTB_A { match self . bits { false => INT_EVENT0_MIS_TIMEOUTB_A :: INT_EVENT0_MIS_TIMEOUTB_CLR , true => INT_EVENT0_MIS_TIMEOUTB_A :: INT_EVENT0_MIS_TIMEOUTB_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_timeoutb_clr (& self) -> bool { * self == INT_EVENT0_MIS_TIMEOUTB_A :: INT_EVENT0_MIS_TIMEOUTB_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_timeoutb_set (& self) -> bool { * self == INT_EVENT0_MIS_TIMEOUTB_A :: INT_EVENT0_MIS_TIMEOUTB_SET } } # [doc = "Field `INT_EVENT0_MIS_SRXDONE` reader - Slave Receive Data Interrupt Signals that a byte has been received"]
pub type INT_EVENT0_MIS_SRXDONE_R = crate :: BitReader < INT_EVENT0_MIS_SRXDONE_A > ; # [doc = "Slave Receive Data Interrupt Signals that a byte has been received\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_SRXDONE_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_SRXDONE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_SRXDONE_SET = 1 , } impl From < INT_EVENT0_MIS_SRXDONE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_SRXDONE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_SRXDONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_SRXDONE_A { match self . bits { false => INT_EVENT0_MIS_SRXDONE_A :: INT_EVENT0_MIS_SRXDONE_CLR , true => INT_EVENT0_MIS_SRXDONE_A :: INT_EVENT0_MIS_SRXDONE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_srxdone_clr (& self) -> bool { * self == INT_EVENT0_MIS_SRXDONE_A :: INT_EVENT0_MIS_SRXDONE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_srxdone_set (& self) -> bool { * self == INT_EVENT0_MIS_SRXDONE_A :: INT_EVENT0_MIS_SRXDONE_SET } } # [doc = "Field `INT_EVENT0_MIS_STXDONE` reader - Slave Transmit Transaction completed Interrupt"]
pub type INT_EVENT0_MIS_STXDONE_R = crate :: BitReader < INT_EVENT0_MIS_STXDONE_A > ; # [doc = "Slave Transmit Transaction completed Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_STXDONE_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_STXDONE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_STXDONE_SET = 1 , } impl From < INT_EVENT0_MIS_STXDONE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_STXDONE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_STXDONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_STXDONE_A { match self . bits { false => INT_EVENT0_MIS_STXDONE_A :: INT_EVENT0_MIS_STXDONE_CLR , true => INT_EVENT0_MIS_STXDONE_A :: INT_EVENT0_MIS_STXDONE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_stxdone_clr (& self) -> bool { * self == INT_EVENT0_MIS_STXDONE_A :: INT_EVENT0_MIS_STXDONE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_stxdone_set (& self) -> bool { * self == INT_EVENT0_MIS_STXDONE_A :: INT_EVENT0_MIS_STXDONE_SET } } # [doc = "Field `INT_EVENT0_MIS_SRXFIFOTRG` reader - Slave Receive FIFO Trigger"]
pub type INT_EVENT0_MIS_SRXFIFOTRG_R = crate :: BitReader < INT_EVENT0_MIS_SRXFIFOTRG_A > ; # [doc = "Slave Receive FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_SRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_SRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_SRXFIFOTRG_SET = 1 , } impl From < INT_EVENT0_MIS_SRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_SRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_SRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_SRXFIFOTRG_A { match self . bits { false => INT_EVENT0_MIS_SRXFIFOTRG_A :: INT_EVENT0_MIS_SRXFIFOTRG_CLR , true => INT_EVENT0_MIS_SRXFIFOTRG_A :: INT_EVENT0_MIS_SRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_srxfifotrg_clr (& self) -> bool { * self == INT_EVENT0_MIS_SRXFIFOTRG_A :: INT_EVENT0_MIS_SRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_srxfifotrg_set (& self) -> bool { * self == INT_EVENT0_MIS_SRXFIFOTRG_A :: INT_EVENT0_MIS_SRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT0_MIS_STXFIFOTRG` reader - Slave Transmit FIFO Trigger"]
pub type INT_EVENT0_MIS_STXFIFOTRG_R = crate :: BitReader < INT_EVENT0_MIS_STXFIFOTRG_A > ; # [doc = "Slave Transmit FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_STXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_STXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_STXFIFOTRG_SET = 1 , } impl From < INT_EVENT0_MIS_STXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_STXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_STXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_STXFIFOTRG_A { match self . bits { false => INT_EVENT0_MIS_STXFIFOTRG_A :: INT_EVENT0_MIS_STXFIFOTRG_CLR , true => INT_EVENT0_MIS_STXFIFOTRG_A :: INT_EVENT0_MIS_STXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_stxfifotrg_clr (& self) -> bool { * self == INT_EVENT0_MIS_STXFIFOTRG_A :: INT_EVENT0_MIS_STXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_stxfifotrg_set (& self) -> bool { * self == INT_EVENT0_MIS_STXFIFOTRG_A :: INT_EVENT0_MIS_STXFIFOTRG_SET } } # [doc = "Field `INT_EVENT0_MIS_SRXFIFOFULL` reader - RXFIFO full event. This interrupt is set if an RX FIFO is full."]
pub type INT_EVENT0_MIS_SRXFIFOFULL_R = crate :: BitReader < INT_EVENT0_MIS_SRXFIFOFULL_A > ; # [doc = "RXFIFO full event. This interrupt is set if an RX FIFO is full.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_SRXFIFOFULL_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_SRXFIFOFULL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_SRXFIFOFULL_SET = 1 , } impl From < INT_EVENT0_MIS_SRXFIFOFULL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_SRXFIFOFULL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_SRXFIFOFULL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_SRXFIFOFULL_A { match self . bits { false => INT_EVENT0_MIS_SRXFIFOFULL_A :: INT_EVENT0_MIS_SRXFIFOFULL_CLR , true => INT_EVENT0_MIS_SRXFIFOFULL_A :: INT_EVENT0_MIS_SRXFIFOFULL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_srxfifofull_clr (& self) -> bool { * self == INT_EVENT0_MIS_SRXFIFOFULL_A :: INT_EVENT0_MIS_SRXFIFOFULL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_srxfifofull_set (& self) -> bool { * self == INT_EVENT0_MIS_SRXFIFOFULL_A :: INT_EVENT0_MIS_SRXFIFOFULL_SET } } # [doc = "Field `INT_EVENT0_MIS_STXEMPTY` reader - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
pub type INT_EVENT0_MIS_STXEMPTY_R = crate :: BitReader < INT_EVENT0_MIS_STXEMPTY_A > ; # [doc = "Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_STXEMPTY_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_STXEMPTY_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_STXEMPTY_SET = 1 , } impl From < INT_EVENT0_MIS_STXEMPTY_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_STXEMPTY_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_STXEMPTY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_STXEMPTY_A { match self . bits { false => INT_EVENT0_MIS_STXEMPTY_A :: INT_EVENT0_MIS_STXEMPTY_CLR , true => INT_EVENT0_MIS_STXEMPTY_A :: INT_EVENT0_MIS_STXEMPTY_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_stxempty_clr (& self) -> bool { * self == INT_EVENT0_MIS_STXEMPTY_A :: INT_EVENT0_MIS_STXEMPTY_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_stxempty_set (& self) -> bool { * self == INT_EVENT0_MIS_STXEMPTY_A :: INT_EVENT0_MIS_STXEMPTY_SET } } # [doc = "Field `INT_EVENT0_MIS_SSTART` reader - Slave START Detection Interrupt"]
pub type INT_EVENT0_MIS_SSTART_R = crate :: BitReader < INT_EVENT0_MIS_SSTART_A > ; # [doc = "Slave START Detection Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_SSTART_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_SSTART_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_SSTART_SET = 1 , } impl From < INT_EVENT0_MIS_SSTART_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_SSTART_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_SSTART_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_SSTART_A { match self . bits { false => INT_EVENT0_MIS_SSTART_A :: INT_EVENT0_MIS_SSTART_CLR , true => INT_EVENT0_MIS_SSTART_A :: INT_EVENT0_MIS_SSTART_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_sstart_clr (& self) -> bool { * self == INT_EVENT0_MIS_SSTART_A :: INT_EVENT0_MIS_SSTART_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_sstart_set (& self) -> bool { * self == INT_EVENT0_MIS_SSTART_A :: INT_EVENT0_MIS_SSTART_SET } } # [doc = "Field `INT_EVENT0_MIS_SSTOP` reader - Slave STOP Detection Interrupt"]
pub type INT_EVENT0_MIS_SSTOP_R = crate :: BitReader < INT_EVENT0_MIS_SSTOP_A > ; # [doc = "Slave STOP Detection Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_SSTOP_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_SSTOP_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_SSTOP_SET = 1 , } impl From < INT_EVENT0_MIS_SSTOP_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_SSTOP_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_SSTOP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_SSTOP_A { match self . bits { false => INT_EVENT0_MIS_SSTOP_A :: INT_EVENT0_MIS_SSTOP_CLR , true => INT_EVENT0_MIS_SSTOP_A :: INT_EVENT0_MIS_SSTOP_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_sstop_clr (& self) -> bool { * self == INT_EVENT0_MIS_SSTOP_A :: INT_EVENT0_MIS_SSTOP_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_sstop_set (& self) -> bool { * self == INT_EVENT0_MIS_SSTOP_A :: INT_EVENT0_MIS_SSTOP_SET } } # [doc = "Field `INT_EVENT0_MIS_SGENCALL` reader - General Call Interrupt"]
pub type INT_EVENT0_MIS_SGENCALL_R = crate :: BitReader < INT_EVENT0_MIS_SGENCALL_A > ; # [doc = "General Call Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_SGENCALL_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_SGENCALL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_SGENCALL_SET = 1 , } impl From < INT_EVENT0_MIS_SGENCALL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_SGENCALL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_SGENCALL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_SGENCALL_A { match self . bits { false => INT_EVENT0_MIS_SGENCALL_A :: INT_EVENT0_MIS_SGENCALL_CLR , true => INT_EVENT0_MIS_SGENCALL_A :: INT_EVENT0_MIS_SGENCALL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_sgencall_clr (& self) -> bool { * self == INT_EVENT0_MIS_SGENCALL_A :: INT_EVENT0_MIS_SGENCALL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_sgencall_set (& self) -> bool { * self == INT_EVENT0_MIS_SGENCALL_A :: INT_EVENT0_MIS_SGENCALL_SET } } # [doc = "Field `INT_EVENT0_MIS_SDMA_DONE1_2` reader - DMA Done 1 on Event Channel 2"]
pub type INT_EVENT0_MIS_SDMA_DONE1_2_R = crate :: BitReader < INT_EVENT0_MIS_SDMA_DONE1_2_A > ; # [doc = "DMA Done 1 on Event Channel 2\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_SDMA_DONE1_2_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_SDMA_DONE1_2_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_SDMA_DONE1_2_SET = 1 , } impl From < INT_EVENT0_MIS_SDMA_DONE1_2_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_SDMA_DONE1_2_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_SDMA_DONE1_2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_SDMA_DONE1_2_A { match self . bits { false => INT_EVENT0_MIS_SDMA_DONE1_2_A :: INT_EVENT0_MIS_SDMA_DONE1_2_CLR , true => INT_EVENT0_MIS_SDMA_DONE1_2_A :: INT_EVENT0_MIS_SDMA_DONE1_2_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_sdma_done1_2_clr (& self) -> bool { * self == INT_EVENT0_MIS_SDMA_DONE1_2_A :: INT_EVENT0_MIS_SDMA_DONE1_2_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_sdma_done1_2_set (& self) -> bool { * self == INT_EVENT0_MIS_SDMA_DONE1_2_A :: INT_EVENT0_MIS_SDMA_DONE1_2_SET } } # [doc = "Field `INT_EVENT0_MIS_SDMA_DONE1_3` reader - DMA Done 1 on Event Channel 3"]
pub type INT_EVENT0_MIS_SDMA_DONE1_3_R = crate :: BitReader < INT_EVENT0_MIS_SDMA_DONE1_3_A > ; # [doc = "DMA Done 1 on Event Channel 3\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_SDMA_DONE1_3_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_SDMA_DONE1_3_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_SDMA_DONE1_3_SET = 1 , } impl From < INT_EVENT0_MIS_SDMA_DONE1_3_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_SDMA_DONE1_3_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_SDMA_DONE1_3_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_SDMA_DONE1_3_A { match self . bits { false => INT_EVENT0_MIS_SDMA_DONE1_3_A :: INT_EVENT0_MIS_SDMA_DONE1_3_CLR , true => INT_EVENT0_MIS_SDMA_DONE1_3_A :: INT_EVENT0_MIS_SDMA_DONE1_3_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_sdma_done1_3_clr (& self) -> bool { * self == INT_EVENT0_MIS_SDMA_DONE1_3_A :: INT_EVENT0_MIS_SDMA_DONE1_3_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_sdma_done1_3_set (& self) -> bool { * self == INT_EVENT0_MIS_SDMA_DONE1_3_A :: INT_EVENT0_MIS_SDMA_DONE1_3_SET } } # [doc = "Field `INT_EVENT0_MIS_SPEC_RX_ERR` reader - Slave RX Pec Error Interrupt"]
pub type INT_EVENT0_MIS_SPEC_RX_ERR_R = crate :: BitReader < INT_EVENT0_MIS_SPEC_RX_ERR_A > ; # [doc = "Slave RX Pec Error Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_SPEC_RX_ERR_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_SPEC_RX_ERR_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_SPEC_RX_ERR_SET = 1 , } impl From < INT_EVENT0_MIS_SPEC_RX_ERR_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_SPEC_RX_ERR_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_SPEC_RX_ERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_SPEC_RX_ERR_A { match self . bits { false => INT_EVENT0_MIS_SPEC_RX_ERR_A :: INT_EVENT0_MIS_SPEC_RX_ERR_CLR , true => INT_EVENT0_MIS_SPEC_RX_ERR_A :: INT_EVENT0_MIS_SPEC_RX_ERR_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_spec_rx_err_clr (& self) -> bool { * self == INT_EVENT0_MIS_SPEC_RX_ERR_A :: INT_EVENT0_MIS_SPEC_RX_ERR_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_spec_rx_err_set (& self) -> bool { * self == INT_EVENT0_MIS_SPEC_RX_ERR_A :: INT_EVENT0_MIS_SPEC_RX_ERR_SET } } # [doc = "Field `INT_EVENT0_MIS_STX_UNFL` reader - Slave TX FIFO underflow"]
pub type INT_EVENT0_MIS_STX_UNFL_R = crate :: BitReader < INT_EVENT0_MIS_STX_UNFL_A > ; # [doc = "Slave TX FIFO underflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_STX_UNFL_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_STX_UNFL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_STX_UNFL_SET = 1 , } impl From < INT_EVENT0_MIS_STX_UNFL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_STX_UNFL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_STX_UNFL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_STX_UNFL_A { match self . bits { false => INT_EVENT0_MIS_STX_UNFL_A :: INT_EVENT0_MIS_STX_UNFL_CLR , true => INT_EVENT0_MIS_STX_UNFL_A :: INT_EVENT0_MIS_STX_UNFL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_stx_unfl_clr (& self) -> bool { * self == INT_EVENT0_MIS_STX_UNFL_A :: INT_EVENT0_MIS_STX_UNFL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_stx_unfl_set (& self) -> bool { * self == INT_EVENT0_MIS_STX_UNFL_A :: INT_EVENT0_MIS_STX_UNFL_SET } } # [doc = "Field `INT_EVENT0_MIS_SRX_OVFL` reader - Slave RX FIFO overflow"]
pub type INT_EVENT0_MIS_SRX_OVFL_R = crate :: BitReader < INT_EVENT0_MIS_SRX_OVFL_A > ; # [doc = "Slave RX FIFO overflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_SRX_OVFL_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_SRX_OVFL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_SRX_OVFL_SET = 1 , } impl From < INT_EVENT0_MIS_SRX_OVFL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_SRX_OVFL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_SRX_OVFL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_SRX_OVFL_A { match self . bits { false => INT_EVENT0_MIS_SRX_OVFL_A :: INT_EVENT0_MIS_SRX_OVFL_CLR , true => INT_EVENT0_MIS_SRX_OVFL_A :: INT_EVENT0_MIS_SRX_OVFL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_srx_ovfl_clr (& self) -> bool { * self == INT_EVENT0_MIS_SRX_OVFL_A :: INT_EVENT0_MIS_SRX_OVFL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_srx_ovfl_set (& self) -> bool { * self == INT_EVENT0_MIS_SRX_OVFL_A :: INT_EVENT0_MIS_SRX_OVFL_SET } } # [doc = "Field `INT_EVENT0_MIS_SARBLOST` reader - Slave Arbitration Lost"]
pub type INT_EVENT0_MIS_SARBLOST_R = crate :: BitReader < INT_EVENT0_MIS_SARBLOST_A > ; # [doc = "Slave Arbitration Lost\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_SARBLOST_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_SARBLOST_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_SARBLOST_SET = 1 , } impl From < INT_EVENT0_MIS_SARBLOST_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_SARBLOST_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_SARBLOST_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_SARBLOST_A { match self . bits { false => INT_EVENT0_MIS_SARBLOST_A :: INT_EVENT0_MIS_SARBLOST_CLR , true => INT_EVENT0_MIS_SARBLOST_A :: INT_EVENT0_MIS_SARBLOST_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_sarblost_clr (& self) -> bool { * self == INT_EVENT0_MIS_SARBLOST_A :: INT_EVENT0_MIS_SARBLOST_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_sarblost_set (& self) -> bool { * self == INT_EVENT0_MIS_SARBLOST_A :: INT_EVENT0_MIS_SARBLOST_SET } } # [doc = "Field `INT_EVENT0_MIS_INTR_OVFL` reader - Interrupt overflow"]
pub type INT_EVENT0_MIS_INTR_OVFL_R = crate :: BitReader < INT_EVENT0_MIS_INTR_OVFL_A > ; # [doc = "Interrupt overflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_INTR_OVFL_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_INTR_OVFL_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_INTR_OVFL_SET = 1 , } impl From < INT_EVENT0_MIS_INTR_OVFL_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_INTR_OVFL_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_INTR_OVFL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_INTR_OVFL_A { match self . bits { false => INT_EVENT0_MIS_INTR_OVFL_A :: INT_EVENT0_MIS_INTR_OVFL_CLR , true => INT_EVENT0_MIS_INTR_OVFL_A :: INT_EVENT0_MIS_INTR_OVFL_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_intr_ovfl_clr (& self) -> bool { * self == INT_EVENT0_MIS_INTR_OVFL_A :: INT_EVENT0_MIS_INTR_OVFL_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_intr_ovfl_set (& self) -> bool { * self == INT_EVENT0_MIS_INTR_OVFL_A :: INT_EVENT0_MIS_INTR_OVFL_SET } } impl R { # [doc = "Bit 0 - Master Receive Data Interrupt"]
# [inline (always)]
pub fn int_event0_mis_mrxdone (& self) -> INT_EVENT0_MIS_MRXDONE_R { INT_EVENT0_MIS_MRXDONE_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Master Transmit Transaction completed Interrupt"]
# [inline (always)]
pub fn int_event0_mis_mtxdone (& self) -> INT_EVENT0_MIS_MTXDONE_R { INT_EVENT0_MIS_MTXDONE_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
pub fn int_event0_mis_mrxfifotrg (& self) -> INT_EVENT0_MIS_MRXFIFOTRG_R { INT_EVENT0_MIS_MRXFIFOTRG_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
pub fn int_event0_mis_mtxfifotrg (& self) -> INT_EVENT0_MIS_MTXFIFOTRG_R { INT_EVENT0_MIS_MTXFIFOTRG_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - RXFIFO full event. This interrupt is set if the RX FIFO is full."]
# [inline (always)]
pub fn int_event0_mis_mrxfifofull (& self) -> INT_EVENT0_MIS_MRXFIFOFULL_R { INT_EVENT0_MIS_MRXFIFOFULL_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
# [inline (always)]
pub fn int_event0_mis_mtxempty (& self) -> INT_EVENT0_MIS_MTXEMPTY_R { INT_EVENT0_MIS_MTXEMPTY_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 7 - Address/Data NACK Interrupt"]
# [inline (always)]
pub fn int_event0_mis_mnack (& self) -> INT_EVENT0_MIS_MNACK_R { INT_EVENT0_MIS_MNACK_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - START Detection Interrupt"]
# [inline (always)]
pub fn int_event0_mis_mstart (& self) -> INT_EVENT0_MIS_MSTART_R { INT_EVENT0_MIS_MSTART_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - STOP Detection Interrupt"]
# [inline (always)]
pub fn int_event0_mis_mstop (& self) -> INT_EVENT0_MIS_MSTOP_R { INT_EVENT0_MIS_MSTOP_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - Arbitration Lost Interrupt"]
# [inline (always)]
pub fn int_event0_mis_marblost (& self) -> INT_EVENT0_MIS_MARBLOST_R { INT_EVENT0_MIS_MARBLOST_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bit 11 - DMA Done 1 on Event Channel 2"]
# [inline (always)]
pub fn int_event0_mis_mdma_done1_2 (& self) -> INT_EVENT0_MIS_MDMA_DONE1_2_R { INT_EVENT0_MIS_MDMA_DONE1_2_R :: new (((self . bits >> 11) & 1) != 0) } # [doc = "Bit 12 - DMA Done 1 on Event Channel 3"]
# [inline (always)]
pub fn int_event0_mis_mdma_done1_3 (& self) -> INT_EVENT0_MIS_MDMA_DONE1_3_R { INT_EVENT0_MIS_MDMA_DONE1_3_R :: new (((self . bits >> 12) & 1) != 0) } # [doc = "Bit 13 - Master RX Pec Error Interrupt"]
# [inline (always)]
pub fn int_event0_mis_mpec_rx_err (& self) -> INT_EVENT0_MIS_MPEC_RX_ERR_R { INT_EVENT0_MIS_MPEC_RX_ERR_R :: new (((self . bits >> 13) & 1) != 0) } # [doc = "Bit 14 - Timeout A Interrupt"]
# [inline (always)]
pub fn int_event0_mis_timeouta (& self) -> INT_EVENT0_MIS_TIMEOUTA_R { INT_EVENT0_MIS_TIMEOUTA_R :: new (((self . bits >> 14) & 1) != 0) } # [doc = "Bit 15 - Timeout B Interrupt"]
# [inline (always)]
pub fn int_event0_mis_timeoutb (& self) -> INT_EVENT0_MIS_TIMEOUTB_R { INT_EVENT0_MIS_TIMEOUTB_R :: new (((self . bits >> 15) & 1) != 0) } # [doc = "Bit 16 - Slave Receive Data Interrupt Signals that a byte has been received"]
# [inline (always)]
pub fn int_event0_mis_srxdone (& self) -> INT_EVENT0_MIS_SRXDONE_R { INT_EVENT0_MIS_SRXDONE_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 17 - Slave Transmit Transaction completed Interrupt"]
# [inline (always)]
pub fn int_event0_mis_stxdone (& self) -> INT_EVENT0_MIS_STXDONE_R { INT_EVENT0_MIS_STXDONE_R :: new (((self . bits >> 17) & 1) != 0) } # [doc = "Bit 18 - Slave Receive FIFO Trigger"]
# [inline (always)]
pub fn int_event0_mis_srxfifotrg (& self) -> INT_EVENT0_MIS_SRXFIFOTRG_R { INT_EVENT0_MIS_SRXFIFOTRG_R :: new (((self . bits >> 18) & 1) != 0) } # [doc = "Bit 19 - Slave Transmit FIFO Trigger"]
# [inline (always)]
pub fn int_event0_mis_stxfifotrg (& self) -> INT_EVENT0_MIS_STXFIFOTRG_R { INT_EVENT0_MIS_STXFIFOTRG_R :: new (((self . bits >> 19) & 1) != 0) } # [doc = "Bit 20 - RXFIFO full event. This interrupt is set if an RX FIFO is full."]
# [inline (always)]
pub fn int_event0_mis_srxfifofull (& self) -> INT_EVENT0_MIS_SRXFIFOFULL_R { INT_EVENT0_MIS_SRXFIFOFULL_R :: new (((self . bits >> 20) & 1) != 0) } # [doc = "Bit 21 - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
# [inline (always)]
pub fn int_event0_mis_stxempty (& self) -> INT_EVENT0_MIS_STXEMPTY_R { INT_EVENT0_MIS_STXEMPTY_R :: new (((self . bits >> 21) & 1) != 0) } # [doc = "Bit 22 - Slave START Detection Interrupt"]
# [inline (always)]
pub fn int_event0_mis_sstart (& self) -> INT_EVENT0_MIS_SSTART_R { INT_EVENT0_MIS_SSTART_R :: new (((self . bits >> 22) & 1) != 0) } # [doc = "Bit 23 - Slave STOP Detection Interrupt"]
# [inline (always)]
pub fn int_event0_mis_sstop (& self) -> INT_EVENT0_MIS_SSTOP_R { INT_EVENT0_MIS_SSTOP_R :: new (((self . bits >> 23) & 1) != 0) } # [doc = "Bit 24 - General Call Interrupt"]
# [inline (always)]
pub fn int_event0_mis_sgencall (& self) -> INT_EVENT0_MIS_SGENCALL_R { INT_EVENT0_MIS_SGENCALL_R :: new (((self . bits >> 24) & 1) != 0) } # [doc = "Bit 25 - DMA Done 1 on Event Channel 2"]
# [inline (always)]
pub fn int_event0_mis_sdma_done1_2 (& self) -> INT_EVENT0_MIS_SDMA_DONE1_2_R { INT_EVENT0_MIS_SDMA_DONE1_2_R :: new (((self . bits >> 25) & 1) != 0) } # [doc = "Bit 26 - DMA Done 1 on Event Channel 3"]
# [inline (always)]
pub fn int_event0_mis_sdma_done1_3 (& self) -> INT_EVENT0_MIS_SDMA_DONE1_3_R { INT_EVENT0_MIS_SDMA_DONE1_3_R :: new (((self . bits >> 26) & 1) != 0) } # [doc = "Bit 27 - Slave RX Pec Error Interrupt"]
# [inline (always)]
pub fn int_event0_mis_spec_rx_err (& self) -> INT_EVENT0_MIS_SPEC_RX_ERR_R { INT_EVENT0_MIS_SPEC_RX_ERR_R :: new (((self . bits >> 27) & 1) != 0) } # [doc = "Bit 28 - Slave TX FIFO underflow"]
# [inline (always)]
pub fn int_event0_mis_stx_unfl (& self) -> INT_EVENT0_MIS_STX_UNFL_R { INT_EVENT0_MIS_STX_UNFL_R :: new (((self . bits >> 28) & 1) != 0) } # [doc = "Bit 29 - Slave RX FIFO overflow"]
# [inline (always)]
pub fn int_event0_mis_srx_ovfl (& self) -> INT_EVENT0_MIS_SRX_OVFL_R { INT_EVENT0_MIS_SRX_OVFL_R :: new (((self . bits >> 29) & 1) != 0) } # [doc = "Bit 30 - Slave Arbitration Lost"]
# [inline (always)]
pub fn int_event0_mis_sarblost (& self) -> INT_EVENT0_MIS_SARBLOST_R { INT_EVENT0_MIS_SARBLOST_R :: new (((self . bits >> 30) & 1) != 0) } # [doc = "Bit 31 - Interrupt overflow"]
# [inline (always)]
pub fn int_event0_mis_intr_ovfl (& self) -> INT_EVENT0_MIS_INTR_OVFL_R { INT_EVENT0_MIS_INTR_OVFL_R :: new (((self . bits >> 31) & 1) != 0) } } # [doc = "Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_MIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event0_mis::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT0_MIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT0_MIS to value 0"]
impl crate :: Resettable for INT_EVENT0_MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_ISET (w) register accessor: Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_iset`]
module"]
pub type INT_EVENT0_ISET = crate :: Reg < int_event0_iset :: INT_EVENT0_ISET_SPEC > ; # [doc = "Interrupt set"]
pub mod int_event0_iset { # [doc = "Register `INT_EVENT0_ISET` writer"]
pub type W = crate :: W < INT_EVENT0_ISET_SPEC > ; # [doc = "Master Receive Data Interrupt Signals that a byte has been received\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_MRXDONE_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_MRXDONE_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_MRXDONE_SET = 1 , } impl From < INT_EVENT0_ISET_MRXDONE_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_MRXDONE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_MRXDONE` writer - Master Receive Data Interrupt Signals that a byte has been received"]
pub type INT_EVENT0_ISET_MRXDONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_MRXDONE_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_MRXDONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_mrxdone_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MRXDONE_AW :: INT_EVENT0_ISET_MRXDONE_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_mrxdone_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MRXDONE_AW :: INT_EVENT0_ISET_MRXDONE_SET) } } # [doc = "Master Transmit Transaction completed Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_MTXDONE_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_MTXDONE_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_MTXDONE_SET = 1 , } impl From < INT_EVENT0_ISET_MTXDONE_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_MTXDONE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_MTXDONE` writer - Master Transmit Transaction completed Interrupt"]
pub type INT_EVENT0_ISET_MTXDONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_MTXDONE_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_MTXDONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_mtxdone_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MTXDONE_AW :: INT_EVENT0_ISET_MTXDONE_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_mtxdone_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MTXDONE_AW :: INT_EVENT0_ISET_MTXDONE_SET) } } # [doc = "Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_MRXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_MRXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_MRXFIFOTRG_SET = 1 , } impl From < INT_EVENT0_ISET_MRXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_MRXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_MRXFIFOTRG` writer - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT0_ISET_MRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_MRXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_MRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_mrxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MRXFIFOTRG_AW :: INT_EVENT0_ISET_MRXFIFOTRG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_mrxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MRXFIFOTRG_AW :: INT_EVENT0_ISET_MRXFIFOTRG_SET) } } # [doc = "Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_MTXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_MTXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_MTXFIFOTRG_SET = 1 , } impl From < INT_EVENT0_ISET_MTXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_MTXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_MTXFIFOTRG` writer - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT0_ISET_MTXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_MTXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_MTXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_mtxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MTXFIFOTRG_AW :: INT_EVENT0_ISET_MTXFIFOTRG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_mtxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MTXFIFOTRG_AW :: INT_EVENT0_ISET_MTXFIFOTRG_SET) } } # [doc = "RXFIFO full event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_MRXFIFOFULL_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_MRXFIFOFULL_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_MRXFIFOFULL_SET = 1 , } impl From < INT_EVENT0_ISET_MRXFIFOFULL_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_MRXFIFOFULL_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_MRXFIFOFULL` writer - RXFIFO full event."]
pub type INT_EVENT0_ISET_MRXFIFOFULL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_MRXFIFOFULL_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_MRXFIFOFULL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_mrxfifofull_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MRXFIFOFULL_AW :: INT_EVENT0_ISET_MRXFIFOFULL_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_mrxfifofull_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MRXFIFOFULL_AW :: INT_EVENT0_ISET_MRXFIFOFULL_SET) } } # [doc = "Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_MTXEMPTY_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_MTXEMPTY_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_MTXEMPTY_SET = 1 , } impl From < INT_EVENT0_ISET_MTXEMPTY_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_MTXEMPTY_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_MTXEMPTY` writer - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
pub type INT_EVENT0_ISET_MTXEMPTY_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_MTXEMPTY_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_MTXEMPTY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_mtxempty_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MTXEMPTY_AW :: INT_EVENT0_ISET_MTXEMPTY_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_mtxempty_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MTXEMPTY_AW :: INT_EVENT0_ISET_MTXEMPTY_SET) } } # [doc = "Address/Data NACK Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_MNACK_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_MNACK_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_MNACK_SET = 1 , } impl From < INT_EVENT0_ISET_MNACK_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_MNACK_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_MNACK` writer - Address/Data NACK Interrupt"]
pub type INT_EVENT0_ISET_MNACK_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_MNACK_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_MNACK_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_mnack_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MNACK_AW :: INT_EVENT0_ISET_MNACK_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_mnack_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MNACK_AW :: INT_EVENT0_ISET_MNACK_SET) } } # [doc = "START Detection Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_MSTART_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_MSTART_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_MSTART_SET = 1 , } impl From < INT_EVENT0_ISET_MSTART_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_MSTART_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_MSTART` writer - START Detection Interrupt"]
pub type INT_EVENT0_ISET_MSTART_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_MSTART_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_MSTART_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_mstart_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MSTART_AW :: INT_EVENT0_ISET_MSTART_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_mstart_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MSTART_AW :: INT_EVENT0_ISET_MSTART_SET) } } # [doc = "STOP Detection Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_MSTOP_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_MSTOP_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_MSTOP_SET = 1 , } impl From < INT_EVENT0_ISET_MSTOP_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_MSTOP_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_MSTOP` writer - STOP Detection Interrupt"]
pub type INT_EVENT0_ISET_MSTOP_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_MSTOP_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_MSTOP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_mstop_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MSTOP_AW :: INT_EVENT0_ISET_MSTOP_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_mstop_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MSTOP_AW :: INT_EVENT0_ISET_MSTOP_SET) } } # [doc = "Arbitration Lost Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_MARBLOST_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_MARBLOST_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_MARBLOST_SET = 1 , } impl From < INT_EVENT0_ISET_MARBLOST_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_MARBLOST_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_MARBLOST` writer - Arbitration Lost Interrupt"]
pub type INT_EVENT0_ISET_MARBLOST_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_MARBLOST_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_MARBLOST_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_marblost_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MARBLOST_AW :: INT_EVENT0_ISET_MARBLOST_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_marblost_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MARBLOST_AW :: INT_EVENT0_ISET_MARBLOST_SET) } } # [doc = "DMA Done 1 on Event Channel 2\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_MDMA_DONE1_2_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_MDMA_DONE1_2_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_MDMA_DONE1_2_SET = 1 , } impl From < INT_EVENT0_ISET_MDMA_DONE1_2_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_MDMA_DONE1_2_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_MDMA_DONE1_2` writer - DMA Done 1 on Event Channel 2"]
pub type INT_EVENT0_ISET_MDMA_DONE1_2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_MDMA_DONE1_2_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_MDMA_DONE1_2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_mdma_done1_2_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MDMA_DONE1_2_AW :: INT_EVENT0_ISET_MDMA_DONE1_2_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_mdma_done1_2_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MDMA_DONE1_2_AW :: INT_EVENT0_ISET_MDMA_DONE1_2_SET) } } # [doc = "DMA Done 1 on Event Channel 3\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_MDMA_DONE1_3_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_MDMA_DONE1_3_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_MDMA_DONE1_3_SET = 1 , } impl From < INT_EVENT0_ISET_MDMA_DONE1_3_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_MDMA_DONE1_3_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_MDMA_DONE1_3` writer - DMA Done 1 on Event Channel 3"]
pub type INT_EVENT0_ISET_MDMA_DONE1_3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_MDMA_DONE1_3_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_MDMA_DONE1_3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_mdma_done1_3_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MDMA_DONE1_3_AW :: INT_EVENT0_ISET_MDMA_DONE1_3_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_mdma_done1_3_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MDMA_DONE1_3_AW :: INT_EVENT0_ISET_MDMA_DONE1_3_SET) } } # [doc = "Master RX Pec Error Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_MPEC_RX_ERR_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_MPEC_RX_ERR_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_MPEC_RX_ERR_SET = 1 , } impl From < INT_EVENT0_ISET_MPEC_RX_ERR_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_MPEC_RX_ERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_MPEC_RX_ERR` writer - Master RX Pec Error Interrupt"]
pub type INT_EVENT0_ISET_MPEC_RX_ERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_MPEC_RX_ERR_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_MPEC_RX_ERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_mpec_rx_err_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MPEC_RX_ERR_AW :: INT_EVENT0_ISET_MPEC_RX_ERR_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_mpec_rx_err_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MPEC_RX_ERR_AW :: INT_EVENT0_ISET_MPEC_RX_ERR_SET) } } # [doc = "Timeout A interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_TIMEOUTA_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_TIMEOUTA_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_TIMEOUTA_SET = 1 , } impl From < INT_EVENT0_ISET_TIMEOUTA_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_TIMEOUTA_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_TIMEOUTA` writer - Timeout A interrupt"]
pub type INT_EVENT0_ISET_TIMEOUTA_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_TIMEOUTA_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_TIMEOUTA_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_timeouta_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_TIMEOUTA_AW :: INT_EVENT0_ISET_TIMEOUTA_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_timeouta_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_TIMEOUTA_AW :: INT_EVENT0_ISET_TIMEOUTA_SET) } } # [doc = "Timeout B Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_TIMEOUTB_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_TIMEOUTB_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_TIMEOUTB_SET = 1 , } impl From < INT_EVENT0_ISET_TIMEOUTB_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_TIMEOUTB_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_TIMEOUTB` writer - Timeout B Interrupt"]
pub type INT_EVENT0_ISET_TIMEOUTB_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_TIMEOUTB_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_TIMEOUTB_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_timeoutb_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_TIMEOUTB_AW :: INT_EVENT0_ISET_TIMEOUTB_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_timeoutb_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_TIMEOUTB_AW :: INT_EVENT0_ISET_TIMEOUTB_SET) } } # [doc = "Slave Receive Data Interrupt Signals that a byte has been received\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_SRXDONE_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_SRXDONE_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_SRXDONE_SET = 1 , } impl From < INT_EVENT0_ISET_SRXDONE_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_SRXDONE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_SRXDONE` writer - Slave Receive Data Interrupt Signals that a byte has been received"]
pub type INT_EVENT0_ISET_SRXDONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_SRXDONE_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_SRXDONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_srxdone_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SRXDONE_AW :: INT_EVENT0_ISET_SRXDONE_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_srxdone_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SRXDONE_AW :: INT_EVENT0_ISET_SRXDONE_SET) } } # [doc = "Slave Transmit Transaction completed Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_STXDONE_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_STXDONE_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_STXDONE_SET = 1 , } impl From < INT_EVENT0_ISET_STXDONE_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_STXDONE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_STXDONE` writer - Slave Transmit Transaction completed Interrupt"]
pub type INT_EVENT0_ISET_STXDONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_STXDONE_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_STXDONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_stxdone_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_STXDONE_AW :: INT_EVENT0_ISET_STXDONE_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_stxdone_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_STXDONE_AW :: INT_EVENT0_ISET_STXDONE_SET) } } # [doc = "Slave Receive FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_SRXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_SRXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_SRXFIFOTRG_SET = 1 , } impl From < INT_EVENT0_ISET_SRXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_SRXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_SRXFIFOTRG` writer - Slave Receive FIFO Trigger"]
pub type INT_EVENT0_ISET_SRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_SRXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_SRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_srxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SRXFIFOTRG_AW :: INT_EVENT0_ISET_SRXFIFOTRG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_srxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SRXFIFOTRG_AW :: INT_EVENT0_ISET_SRXFIFOTRG_SET) } } # [doc = "Slave Transmit FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_STXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_STXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_STXFIFOTRG_SET = 1 , } impl From < INT_EVENT0_ISET_STXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_STXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_STXFIFOTRG` writer - Slave Transmit FIFO Trigger"]
pub type INT_EVENT0_ISET_STXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_STXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_STXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_stxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_STXFIFOTRG_AW :: INT_EVENT0_ISET_STXFIFOTRG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_stxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_STXFIFOTRG_AW :: INT_EVENT0_ISET_STXFIFOTRG_SET) } } # [doc = "RXFIFO full event. This interrupt is set if an RX FIFO is full.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_SRXFIFOFULL_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_SRXFIFOFULL_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_SRXFIFOFULL_SET = 1 , } impl From < INT_EVENT0_ISET_SRXFIFOFULL_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_SRXFIFOFULL_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_SRXFIFOFULL` writer - RXFIFO full event. This interrupt is set if an RX FIFO is full."]
pub type INT_EVENT0_ISET_SRXFIFOFULL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_SRXFIFOFULL_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_SRXFIFOFULL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_srxfifofull_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SRXFIFOFULL_AW :: INT_EVENT0_ISET_SRXFIFOFULL_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_srxfifofull_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SRXFIFOFULL_AW :: INT_EVENT0_ISET_SRXFIFOFULL_SET) } } # [doc = "Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_STXEMPTY_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_STXEMPTY_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_STXEMPTY_SET = 1 , } impl From < INT_EVENT0_ISET_STXEMPTY_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_STXEMPTY_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_STXEMPTY` writer - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
pub type INT_EVENT0_ISET_STXEMPTY_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_STXEMPTY_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_STXEMPTY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_stxempty_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_STXEMPTY_AW :: INT_EVENT0_ISET_STXEMPTY_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_stxempty_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_STXEMPTY_AW :: INT_EVENT0_ISET_STXEMPTY_SET) } } # [doc = "Start Condition Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_SSTART_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_SSTART_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_SSTART_SET = 1 , } impl From < INT_EVENT0_ISET_SSTART_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_SSTART_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_SSTART` writer - Start Condition Interrupt"]
pub type INT_EVENT0_ISET_SSTART_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_SSTART_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_SSTART_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_sstart_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SSTART_AW :: INT_EVENT0_ISET_SSTART_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_sstart_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SSTART_AW :: INT_EVENT0_ISET_SSTART_SET) } } # [doc = "Stop Condition Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_SSTOP_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_SSTOP_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_SSTOP_SET = 1 , } impl From < INT_EVENT0_ISET_SSTOP_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_SSTOP_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_SSTOP` writer - Stop Condition Interrupt"]
pub type INT_EVENT0_ISET_SSTOP_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_SSTOP_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_SSTOP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_sstop_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SSTOP_AW :: INT_EVENT0_ISET_SSTOP_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_sstop_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SSTOP_AW :: INT_EVENT0_ISET_SSTOP_SET) } } # [doc = "General Call Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_SGENCALL_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_SGENCALL_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_SGENCALL_SET = 1 , } impl From < INT_EVENT0_ISET_SGENCALL_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_SGENCALL_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_SGENCALL` writer - General Call Interrupt"]
pub type INT_EVENT0_ISET_SGENCALL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_SGENCALL_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_SGENCALL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_sgencall_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SGENCALL_AW :: INT_EVENT0_ISET_SGENCALL_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_sgencall_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SGENCALL_AW :: INT_EVENT0_ISET_SGENCALL_SET) } } # [doc = "DMA Done 1 on Event Channel 2\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_SDMA_DONE1_2_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_SDMA_DONE1_2_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_SDMA_DONE1_2_SET = 1 , } impl From < INT_EVENT0_ISET_SDMA_DONE1_2_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_SDMA_DONE1_2_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_SDMA_DONE1_2` writer - DMA Done 1 on Event Channel 2"]
pub type INT_EVENT0_ISET_SDMA_DONE1_2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_SDMA_DONE1_2_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_SDMA_DONE1_2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_sdma_done1_2_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SDMA_DONE1_2_AW :: INT_EVENT0_ISET_SDMA_DONE1_2_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_sdma_done1_2_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SDMA_DONE1_2_AW :: INT_EVENT0_ISET_SDMA_DONE1_2_SET) } } # [doc = "DMA Done 1 on Event Channel 3\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_SDMA_DONE1_3_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_SDMA_DONE1_3_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_SDMA_DONE1_3_SET = 1 , } impl From < INT_EVENT0_ISET_SDMA_DONE1_3_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_SDMA_DONE1_3_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_SDMA_DONE1_3` writer - DMA Done 1 on Event Channel 3"]
pub type INT_EVENT0_ISET_SDMA_DONE1_3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_SDMA_DONE1_3_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_SDMA_DONE1_3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_sdma_done1_3_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SDMA_DONE1_3_AW :: INT_EVENT0_ISET_SDMA_DONE1_3_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_sdma_done1_3_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SDMA_DONE1_3_AW :: INT_EVENT0_ISET_SDMA_DONE1_3_SET) } } # [doc = "Slave RX Pec Error Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_SPEC_RX_ERR_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_SPEC_RX_ERR_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_SPEC_RX_ERR_SET = 1 , } impl From < INT_EVENT0_ISET_SPEC_RX_ERR_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_SPEC_RX_ERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_SPEC_RX_ERR` writer - Slave RX Pec Error Interrupt"]
pub type INT_EVENT0_ISET_SPEC_RX_ERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_SPEC_RX_ERR_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_SPEC_RX_ERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_spec_rx_err_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SPEC_RX_ERR_AW :: INT_EVENT0_ISET_SPEC_RX_ERR_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_spec_rx_err_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SPEC_RX_ERR_AW :: INT_EVENT0_ISET_SPEC_RX_ERR_SET) } } # [doc = "Slave TX FIFO underflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_STX_UNFL_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_STX_UNFL_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_STX_UNFL_SET = 1 , } impl From < INT_EVENT0_ISET_STX_UNFL_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_STX_UNFL_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_STX_UNFL` writer - Slave TX FIFO underflow"]
pub type INT_EVENT0_ISET_STX_UNFL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_STX_UNFL_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_STX_UNFL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_stx_unfl_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_STX_UNFL_AW :: INT_EVENT0_ISET_STX_UNFL_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_stx_unfl_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_STX_UNFL_AW :: INT_EVENT0_ISET_STX_UNFL_SET) } } # [doc = "Slave RX FIFO overflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_SRX_OVFL_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_SRX_OVFL_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_SRX_OVFL_SET = 1 , } impl From < INT_EVENT0_ISET_SRX_OVFL_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_SRX_OVFL_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_SRX_OVFL` writer - Slave RX FIFO overflow"]
pub type INT_EVENT0_ISET_SRX_OVFL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_SRX_OVFL_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_SRX_OVFL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_srx_ovfl_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SRX_OVFL_AW :: INT_EVENT0_ISET_SRX_OVFL_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_srx_ovfl_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SRX_OVFL_AW :: INT_EVENT0_ISET_SRX_OVFL_SET) } } # [doc = "Slave Arbitration Lost\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_SARBLOST_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_SARBLOST_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_SARBLOST_SET = 1 , } impl From < INT_EVENT0_ISET_SARBLOST_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_SARBLOST_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_SARBLOST` writer - Slave Arbitration Lost"]
pub type INT_EVENT0_ISET_SARBLOST_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_SARBLOST_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_SARBLOST_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_sarblost_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SARBLOST_AW :: INT_EVENT0_ISET_SARBLOST_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_sarblost_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_SARBLOST_AW :: INT_EVENT0_ISET_SARBLOST_SET) } } # [doc = "Interrupt overflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_INTR_OVFL_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_INTR_OVFL_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_INTR_OVFL_SET = 1 , } impl From < INT_EVENT0_ISET_INTR_OVFL_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_INTR_OVFL_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_INTR_OVFL` writer - Interrupt overflow"]
pub type INT_EVENT0_ISET_INTR_OVFL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_INTR_OVFL_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_INTR_OVFL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_intr_ovfl_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_INTR_OVFL_AW :: INT_EVENT0_ISET_INTR_OVFL_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_intr_ovfl_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_INTR_OVFL_AW :: INT_EVENT0_ISET_INTR_OVFL_SET) } } impl W { # [doc = "Bit 0 - Master Receive Data Interrupt Signals that a byte has been received"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_mrxdone (& mut self) -> INT_EVENT0_ISET_MRXDONE_W < INT_EVENT0_ISET_SPEC , 0 > { INT_EVENT0_ISET_MRXDONE_W :: new (self) } # [doc = "Bit 1 - Master Transmit Transaction completed Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_mtxdone (& mut self) -> INT_EVENT0_ISET_MTXDONE_W < INT_EVENT0_ISET_SPEC , 1 > { INT_EVENT0_ISET_MTXDONE_W :: new (self) } # [doc = "Bit 2 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_mrxfifotrg (& mut self) -> INT_EVENT0_ISET_MRXFIFOTRG_W < INT_EVENT0_ISET_SPEC , 2 > { INT_EVENT0_ISET_MRXFIFOTRG_W :: new (self) } # [doc = "Bit 3 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_mtxfifotrg (& mut self) -> INT_EVENT0_ISET_MTXFIFOTRG_W < INT_EVENT0_ISET_SPEC , 3 > { INT_EVENT0_ISET_MTXFIFOTRG_W :: new (self) } # [doc = "Bit 4 - RXFIFO full event."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_mrxfifofull (& mut self) -> INT_EVENT0_ISET_MRXFIFOFULL_W < INT_EVENT0_ISET_SPEC , 4 > { INT_EVENT0_ISET_MRXFIFOFULL_W :: new (self) } # [doc = "Bit 5 - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_mtxempty (& mut self) -> INT_EVENT0_ISET_MTXEMPTY_W < INT_EVENT0_ISET_SPEC , 5 > { INT_EVENT0_ISET_MTXEMPTY_W :: new (self) } # [doc = "Bit 7 - Address/Data NACK Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_mnack (& mut self) -> INT_EVENT0_ISET_MNACK_W < INT_EVENT0_ISET_SPEC , 7 > { INT_EVENT0_ISET_MNACK_W :: new (self) } # [doc = "Bit 8 - START Detection Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_mstart (& mut self) -> INT_EVENT0_ISET_MSTART_W < INT_EVENT0_ISET_SPEC , 8 > { INT_EVENT0_ISET_MSTART_W :: new (self) } # [doc = "Bit 9 - STOP Detection Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_mstop (& mut self) -> INT_EVENT0_ISET_MSTOP_W < INT_EVENT0_ISET_SPEC , 9 > { INT_EVENT0_ISET_MSTOP_W :: new (self) } # [doc = "Bit 10 - Arbitration Lost Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_marblost (& mut self) -> INT_EVENT0_ISET_MARBLOST_W < INT_EVENT0_ISET_SPEC , 10 > { INT_EVENT0_ISET_MARBLOST_W :: new (self) } # [doc = "Bit 11 - DMA Done 1 on Event Channel 2"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_mdma_done1_2 (& mut self) -> INT_EVENT0_ISET_MDMA_DONE1_2_W < INT_EVENT0_ISET_SPEC , 11 > { INT_EVENT0_ISET_MDMA_DONE1_2_W :: new (self) } # [doc = "Bit 12 - DMA Done 1 on Event Channel 3"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_mdma_done1_3 (& mut self) -> INT_EVENT0_ISET_MDMA_DONE1_3_W < INT_EVENT0_ISET_SPEC , 12 > { INT_EVENT0_ISET_MDMA_DONE1_3_W :: new (self) } # [doc = "Bit 13 - Master RX Pec Error Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_mpec_rx_err (& mut self) -> INT_EVENT0_ISET_MPEC_RX_ERR_W < INT_EVENT0_ISET_SPEC , 13 > { INT_EVENT0_ISET_MPEC_RX_ERR_W :: new (self) } # [doc = "Bit 14 - Timeout A interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_timeouta (& mut self) -> INT_EVENT0_ISET_TIMEOUTA_W < INT_EVENT0_ISET_SPEC , 14 > { INT_EVENT0_ISET_TIMEOUTA_W :: new (self) } # [doc = "Bit 15 - Timeout B Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_timeoutb (& mut self) -> INT_EVENT0_ISET_TIMEOUTB_W < INT_EVENT0_ISET_SPEC , 15 > { INT_EVENT0_ISET_TIMEOUTB_W :: new (self) } # [doc = "Bit 16 - Slave Receive Data Interrupt Signals that a byte has been received"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_srxdone (& mut self) -> INT_EVENT0_ISET_SRXDONE_W < INT_EVENT0_ISET_SPEC , 16 > { INT_EVENT0_ISET_SRXDONE_W :: new (self) } # [doc = "Bit 17 - Slave Transmit Transaction completed Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_stxdone (& mut self) -> INT_EVENT0_ISET_STXDONE_W < INT_EVENT0_ISET_SPEC , 17 > { INT_EVENT0_ISET_STXDONE_W :: new (self) } # [doc = "Bit 18 - Slave Receive FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_srxfifotrg (& mut self) -> INT_EVENT0_ISET_SRXFIFOTRG_W < INT_EVENT0_ISET_SPEC , 18 > { INT_EVENT0_ISET_SRXFIFOTRG_W :: new (self) } # [doc = "Bit 19 - Slave Transmit FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_stxfifotrg (& mut self) -> INT_EVENT0_ISET_STXFIFOTRG_W < INT_EVENT0_ISET_SPEC , 19 > { INT_EVENT0_ISET_STXFIFOTRG_W :: new (self) } # [doc = "Bit 20 - RXFIFO full event. This interrupt is set if an RX FIFO is full."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_srxfifofull (& mut self) -> INT_EVENT0_ISET_SRXFIFOFULL_W < INT_EVENT0_ISET_SPEC , 20 > { INT_EVENT0_ISET_SRXFIFOFULL_W :: new (self) } # [doc = "Bit 21 - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_stxempty (& mut self) -> INT_EVENT0_ISET_STXEMPTY_W < INT_EVENT0_ISET_SPEC , 21 > { INT_EVENT0_ISET_STXEMPTY_W :: new (self) } # [doc = "Bit 22 - Start Condition Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_sstart (& mut self) -> INT_EVENT0_ISET_SSTART_W < INT_EVENT0_ISET_SPEC , 22 > { INT_EVENT0_ISET_SSTART_W :: new (self) } # [doc = "Bit 23 - Stop Condition Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_sstop (& mut self) -> INT_EVENT0_ISET_SSTOP_W < INT_EVENT0_ISET_SPEC , 23 > { INT_EVENT0_ISET_SSTOP_W :: new (self) } # [doc = "Bit 24 - General Call Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_sgencall (& mut self) -> INT_EVENT0_ISET_SGENCALL_W < INT_EVENT0_ISET_SPEC , 24 > { INT_EVENT0_ISET_SGENCALL_W :: new (self) } # [doc = "Bit 25 - DMA Done 1 on Event Channel 2"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_sdma_done1_2 (& mut self) -> INT_EVENT0_ISET_SDMA_DONE1_2_W < INT_EVENT0_ISET_SPEC , 25 > { INT_EVENT0_ISET_SDMA_DONE1_2_W :: new (self) } # [doc = "Bit 26 - DMA Done 1 on Event Channel 3"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_sdma_done1_3 (& mut self) -> INT_EVENT0_ISET_SDMA_DONE1_3_W < INT_EVENT0_ISET_SPEC , 26 > { INT_EVENT0_ISET_SDMA_DONE1_3_W :: new (self) } # [doc = "Bit 27 - Slave RX Pec Error Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_spec_rx_err (& mut self) -> INT_EVENT0_ISET_SPEC_RX_ERR_W < INT_EVENT0_ISET_SPEC , 27 > { INT_EVENT0_ISET_SPEC_RX_ERR_W :: new (self) } # [doc = "Bit 28 - Slave TX FIFO underflow"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_stx_unfl (& mut self) -> INT_EVENT0_ISET_STX_UNFL_W < INT_EVENT0_ISET_SPEC , 28 > { INT_EVENT0_ISET_STX_UNFL_W :: new (self) } # [doc = "Bit 29 - Slave RX FIFO overflow"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_srx_ovfl (& mut self) -> INT_EVENT0_ISET_SRX_OVFL_W < INT_EVENT0_ISET_SPEC , 29 > { INT_EVENT0_ISET_SRX_OVFL_W :: new (self) } # [doc = "Bit 30 - Slave Arbitration Lost"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_sarblost (& mut self) -> INT_EVENT0_ISET_SARBLOST_W < INT_EVENT0_ISET_SPEC , 30 > { INT_EVENT0_ISET_SARBLOST_W :: new (self) } # [doc = "Bit 31 - Interrupt overflow"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_intr_ovfl (& mut self) -> INT_EVENT0_ISET_INTR_OVFL_W < INT_EVENT0_ISET_SPEC , 31 > { INT_EVENT0_ISET_INTR_OVFL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_ISET_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event0_iset::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT0_ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT0_ISET to value 0"]
impl crate :: Resettable for INT_EVENT0_ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_ICLR (w) register accessor: Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_iclr`]
module"]
pub type INT_EVENT0_ICLR = crate :: Reg < int_event0_iclr :: INT_EVENT0_ICLR_SPEC > ; # [doc = "Interrupt clear"]
pub mod int_event0_iclr { # [doc = "Register `INT_EVENT0_ICLR` writer"]
pub type W = crate :: W < INT_EVENT0_ICLR_SPEC > ; # [doc = "Master Receive Data Interrupt Signals that a byte has been received\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_MRXDONE_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_MRXDONE_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_MRXDONE_CLR = 1 , } impl From < INT_EVENT0_ICLR_MRXDONE_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_MRXDONE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_MRXDONE` writer - Master Receive Data Interrupt Signals that a byte has been received"]
pub type INT_EVENT0_ICLR_MRXDONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_MRXDONE_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_MRXDONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_mrxdone_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MRXDONE_AW :: INT_EVENT0_ICLR_MRXDONE_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_mrxdone_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MRXDONE_AW :: INT_EVENT0_ICLR_MRXDONE_CLR) } } # [doc = "Master Transmit Transaction completed Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_MTXDONE_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_MTXDONE_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_MTXDONE_CLR = 1 , } impl From < INT_EVENT0_ICLR_MTXDONE_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_MTXDONE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_MTXDONE` writer - Master Transmit Transaction completed Interrupt"]
pub type INT_EVENT0_ICLR_MTXDONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_MTXDONE_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_MTXDONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_mtxdone_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MTXDONE_AW :: INT_EVENT0_ICLR_MTXDONE_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_mtxdone_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MTXDONE_AW :: INT_EVENT0_ICLR_MTXDONE_CLR) } } # [doc = "Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_MRXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_MRXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_MRXFIFOTRG_CLR = 1 , } impl From < INT_EVENT0_ICLR_MRXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_MRXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_MRXFIFOTRG` writer - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT0_ICLR_MRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_MRXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_MRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_mrxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MRXFIFOTRG_AW :: INT_EVENT0_ICLR_MRXFIFOTRG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_mrxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MRXFIFOTRG_AW :: INT_EVENT0_ICLR_MRXFIFOTRG_CLR) } } # [doc = "Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_MTXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_MTXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_MTXFIFOTRG_CLR = 1 , } impl From < INT_EVENT0_ICLR_MTXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_MTXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_MTXFIFOTRG` writer - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT0_ICLR_MTXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_MTXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_MTXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_mtxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MTXFIFOTRG_AW :: INT_EVENT0_ICLR_MTXFIFOTRG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_mtxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MTXFIFOTRG_AW :: INT_EVENT0_ICLR_MTXFIFOTRG_CLR) } } # [doc = "RXFIFO full event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_MRXFIFOFULL_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_MRXFIFOFULL_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_MRXFIFOFULL_CLR = 1 , } impl From < INT_EVENT0_ICLR_MRXFIFOFULL_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_MRXFIFOFULL_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_MRXFIFOFULL` writer - RXFIFO full event."]
pub type INT_EVENT0_ICLR_MRXFIFOFULL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_MRXFIFOFULL_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_MRXFIFOFULL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_mrxfifofull_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MRXFIFOFULL_AW :: INT_EVENT0_ICLR_MRXFIFOFULL_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_mrxfifofull_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MRXFIFOFULL_AW :: INT_EVENT0_ICLR_MRXFIFOFULL_CLR) } } # [doc = "Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_MTXEMPTY_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_MTXEMPTY_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_MTXEMPTY_CLR = 1 , } impl From < INT_EVENT0_ICLR_MTXEMPTY_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_MTXEMPTY_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_MTXEMPTY` writer - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
pub type INT_EVENT0_ICLR_MTXEMPTY_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_MTXEMPTY_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_MTXEMPTY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_mtxempty_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MTXEMPTY_AW :: INT_EVENT0_ICLR_MTXEMPTY_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_mtxempty_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MTXEMPTY_AW :: INT_EVENT0_ICLR_MTXEMPTY_CLR) } } # [doc = "Address/Data NACK Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_MNACK_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_MNACK_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_MNACK_CLR = 1 , } impl From < INT_EVENT0_ICLR_MNACK_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_MNACK_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_MNACK` writer - Address/Data NACK Interrupt"]
pub type INT_EVENT0_ICLR_MNACK_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_MNACK_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_MNACK_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_mnack_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MNACK_AW :: INT_EVENT0_ICLR_MNACK_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_mnack_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MNACK_AW :: INT_EVENT0_ICLR_MNACK_CLR) } } # [doc = "START Detection Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_MSTART_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_MSTART_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_MSTART_CLR = 1 , } impl From < INT_EVENT0_ICLR_MSTART_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_MSTART_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_MSTART` writer - START Detection Interrupt"]
pub type INT_EVENT0_ICLR_MSTART_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_MSTART_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_MSTART_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_mstart_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MSTART_AW :: INT_EVENT0_ICLR_MSTART_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_mstart_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MSTART_AW :: INT_EVENT0_ICLR_MSTART_CLR) } } # [doc = "STOP Detection Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_MSTOP_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_MSTOP_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_MSTOP_CLR = 1 , } impl From < INT_EVENT0_ICLR_MSTOP_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_MSTOP_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_MSTOP` writer - STOP Detection Interrupt"]
pub type INT_EVENT0_ICLR_MSTOP_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_MSTOP_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_MSTOP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_mstop_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MSTOP_AW :: INT_EVENT0_ICLR_MSTOP_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_mstop_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MSTOP_AW :: INT_EVENT0_ICLR_MSTOP_CLR) } } # [doc = "Arbitration Lost Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_MARBLOST_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_MARBLOST_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_MARBLOST_CLR = 1 , } impl From < INT_EVENT0_ICLR_MARBLOST_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_MARBLOST_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_MARBLOST` writer - Arbitration Lost Interrupt"]
pub type INT_EVENT0_ICLR_MARBLOST_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_MARBLOST_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_MARBLOST_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_marblost_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MARBLOST_AW :: INT_EVENT0_ICLR_MARBLOST_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_marblost_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MARBLOST_AW :: INT_EVENT0_ICLR_MARBLOST_CLR) } } # [doc = "DMA Done 1 on Event Channel 2\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_MDMA_DONE1_2_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_MDMA_DONE1_2_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_MDMA_DONE1_2_CLR = 1 , } impl From < INT_EVENT0_ICLR_MDMA_DONE1_2_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_MDMA_DONE1_2_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_MDMA_DONE1_2` writer - DMA Done 1 on Event Channel 2"]
pub type INT_EVENT0_ICLR_MDMA_DONE1_2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_MDMA_DONE1_2_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_MDMA_DONE1_2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_mdma_done1_2_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MDMA_DONE1_2_AW :: INT_EVENT0_ICLR_MDMA_DONE1_2_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_mdma_done1_2_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MDMA_DONE1_2_AW :: INT_EVENT0_ICLR_MDMA_DONE1_2_CLR) } } # [doc = "DMA Done 1 on Event Channel 3\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_MDMA_DONE1_3_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_MDMA_DONE1_3_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_MDMA_DONE1_3_CLR = 1 , } impl From < INT_EVENT0_ICLR_MDMA_DONE1_3_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_MDMA_DONE1_3_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_MDMA_DONE1_3` writer - DMA Done 1 on Event Channel 3"]
pub type INT_EVENT0_ICLR_MDMA_DONE1_3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_MDMA_DONE1_3_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_MDMA_DONE1_3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_mdma_done1_3_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MDMA_DONE1_3_AW :: INT_EVENT0_ICLR_MDMA_DONE1_3_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_mdma_done1_3_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MDMA_DONE1_3_AW :: INT_EVENT0_ICLR_MDMA_DONE1_3_CLR) } } # [doc = "Master RX Pec Error Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_MPEC_RX_ERR_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_MPEC_RX_ERR_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_MPEC_RX_ERR_CLR = 1 , } impl From < INT_EVENT0_ICLR_MPEC_RX_ERR_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_MPEC_RX_ERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_MPEC_RX_ERR` writer - Master RX Pec Error Interrupt"]
pub type INT_EVENT0_ICLR_MPEC_RX_ERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_MPEC_RX_ERR_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_MPEC_RX_ERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_mpec_rx_err_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MPEC_RX_ERR_AW :: INT_EVENT0_ICLR_MPEC_RX_ERR_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_mpec_rx_err_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MPEC_RX_ERR_AW :: INT_EVENT0_ICLR_MPEC_RX_ERR_CLR) } } # [doc = "Timeout A interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_TIMEOUTA_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_TIMEOUTA_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_TIMEOUTA_CLR = 1 , } impl From < INT_EVENT0_ICLR_TIMEOUTA_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_TIMEOUTA_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_TIMEOUTA` writer - Timeout A interrupt"]
pub type INT_EVENT0_ICLR_TIMEOUTA_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_TIMEOUTA_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_TIMEOUTA_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_timeouta_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_TIMEOUTA_AW :: INT_EVENT0_ICLR_TIMEOUTA_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_timeouta_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_TIMEOUTA_AW :: INT_EVENT0_ICLR_TIMEOUTA_CLR) } } # [doc = "Timeout B Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_TIMEOUTB_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_TIMEOUTB_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_TIMEOUTB_CLR = 1 , } impl From < INT_EVENT0_ICLR_TIMEOUTB_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_TIMEOUTB_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_TIMEOUTB` writer - Timeout B Interrupt"]
pub type INT_EVENT0_ICLR_TIMEOUTB_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_TIMEOUTB_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_TIMEOUTB_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_timeoutb_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_TIMEOUTB_AW :: INT_EVENT0_ICLR_TIMEOUTB_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_timeoutb_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_TIMEOUTB_AW :: INT_EVENT0_ICLR_TIMEOUTB_CLR) } } # [doc = "Slave Receive Data Interrupt Signals that a byte has been received\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_SRXDONE_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_SRXDONE_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_SRXDONE_CLR = 1 , } impl From < INT_EVENT0_ICLR_SRXDONE_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_SRXDONE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_SRXDONE` writer - Slave Receive Data Interrupt Signals that a byte has been received"]
pub type INT_EVENT0_ICLR_SRXDONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_SRXDONE_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_SRXDONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_srxdone_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SRXDONE_AW :: INT_EVENT0_ICLR_SRXDONE_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_srxdone_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SRXDONE_AW :: INT_EVENT0_ICLR_SRXDONE_CLR) } } # [doc = "Slave Transmit Transaction completed Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_STXDONE_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_STXDONE_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_STXDONE_CLR = 1 , } impl From < INT_EVENT0_ICLR_STXDONE_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_STXDONE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_STXDONE` writer - Slave Transmit Transaction completed Interrupt"]
pub type INT_EVENT0_ICLR_STXDONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_STXDONE_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_STXDONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_stxdone_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_STXDONE_AW :: INT_EVENT0_ICLR_STXDONE_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_stxdone_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_STXDONE_AW :: INT_EVENT0_ICLR_STXDONE_CLR) } } # [doc = "Slave Receive FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_SRXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_SRXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_SRXFIFOTRG_CLR = 1 , } impl From < INT_EVENT0_ICLR_SRXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_SRXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_SRXFIFOTRG` writer - Slave Receive FIFO Trigger"]
pub type INT_EVENT0_ICLR_SRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_SRXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_SRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_srxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SRXFIFOTRG_AW :: INT_EVENT0_ICLR_SRXFIFOTRG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_srxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SRXFIFOTRG_AW :: INT_EVENT0_ICLR_SRXFIFOTRG_CLR) } } # [doc = "Slave Transmit FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_STXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_STXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_STXFIFOTRG_CLR = 1 , } impl From < INT_EVENT0_ICLR_STXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_STXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_STXFIFOTRG` writer - Slave Transmit FIFO Trigger"]
pub type INT_EVENT0_ICLR_STXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_STXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_STXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_stxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_STXFIFOTRG_AW :: INT_EVENT0_ICLR_STXFIFOTRG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_stxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_STXFIFOTRG_AW :: INT_EVENT0_ICLR_STXFIFOTRG_CLR) } } # [doc = "RXFIFO full event. This interrupt is set if an RX FIFO is full.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_SRXFIFOFULL_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_SRXFIFOFULL_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_SRXFIFOFULL_CLR = 1 , } impl From < INT_EVENT0_ICLR_SRXFIFOFULL_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_SRXFIFOFULL_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_SRXFIFOFULL` writer - RXFIFO full event. This interrupt is set if an RX FIFO is full."]
pub type INT_EVENT0_ICLR_SRXFIFOFULL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_SRXFIFOFULL_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_SRXFIFOFULL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_srxfifofull_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SRXFIFOFULL_AW :: INT_EVENT0_ICLR_SRXFIFOFULL_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_srxfifofull_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SRXFIFOFULL_AW :: INT_EVENT0_ICLR_SRXFIFOFULL_CLR) } } # [doc = "Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_STXEMPTY_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_STXEMPTY_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_STXEMPTY_CLR = 1 , } impl From < INT_EVENT0_ICLR_STXEMPTY_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_STXEMPTY_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_STXEMPTY` writer - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
pub type INT_EVENT0_ICLR_STXEMPTY_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_STXEMPTY_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_STXEMPTY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_stxempty_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_STXEMPTY_AW :: INT_EVENT0_ICLR_STXEMPTY_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_stxempty_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_STXEMPTY_AW :: INT_EVENT0_ICLR_STXEMPTY_CLR) } } # [doc = "Slave START Detection Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_SSTART_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_SSTART_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_SSTART_CLR = 1 , } impl From < INT_EVENT0_ICLR_SSTART_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_SSTART_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_SSTART` writer - Slave START Detection Interrupt"]
pub type INT_EVENT0_ICLR_SSTART_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_SSTART_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_SSTART_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_sstart_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SSTART_AW :: INT_EVENT0_ICLR_SSTART_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_sstart_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SSTART_AW :: INT_EVENT0_ICLR_SSTART_CLR) } } # [doc = "Slave STOP Detection Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_SSTOP_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_SSTOP_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_SSTOP_CLR = 1 , } impl From < INT_EVENT0_ICLR_SSTOP_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_SSTOP_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_SSTOP` writer - Slave STOP Detection Interrupt"]
pub type INT_EVENT0_ICLR_SSTOP_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_SSTOP_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_SSTOP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_sstop_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SSTOP_AW :: INT_EVENT0_ICLR_SSTOP_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_sstop_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SSTOP_AW :: INT_EVENT0_ICLR_SSTOP_CLR) } } # [doc = "General Call Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_SGENCALL_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_SGENCALL_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_SGENCALL_CLR = 1 , } impl From < INT_EVENT0_ICLR_SGENCALL_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_SGENCALL_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_SGENCALL` writer - General Call Interrupt"]
pub type INT_EVENT0_ICLR_SGENCALL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_SGENCALL_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_SGENCALL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_sgencall_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SGENCALL_AW :: INT_EVENT0_ICLR_SGENCALL_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_sgencall_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SGENCALL_AW :: INT_EVENT0_ICLR_SGENCALL_CLR) } } # [doc = "DMA Done 1 on Event Channel 2\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_SDMA_DONE1_2_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_SDMA_DONE1_2_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_SDMA_DONE1_2_CLR = 1 , } impl From < INT_EVENT0_ICLR_SDMA_DONE1_2_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_SDMA_DONE1_2_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_SDMA_DONE1_2` writer - DMA Done 1 on Event Channel 2"]
pub type INT_EVENT0_ICLR_SDMA_DONE1_2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_SDMA_DONE1_2_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_SDMA_DONE1_2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_sdma_done1_2_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SDMA_DONE1_2_AW :: INT_EVENT0_ICLR_SDMA_DONE1_2_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_sdma_done1_2_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SDMA_DONE1_2_AW :: INT_EVENT0_ICLR_SDMA_DONE1_2_CLR) } } # [doc = "DMA Done 1 on Event Channel 3\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_SDMA_DONE1_3_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_SDMA_DONE1_3_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_SDMA_DONE1_3_CLR = 1 , } impl From < INT_EVENT0_ICLR_SDMA_DONE1_3_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_SDMA_DONE1_3_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_SDMA_DONE1_3` writer - DMA Done 1 on Event Channel 3"]
pub type INT_EVENT0_ICLR_SDMA_DONE1_3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_SDMA_DONE1_3_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_SDMA_DONE1_3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_sdma_done1_3_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SDMA_DONE1_3_AW :: INT_EVENT0_ICLR_SDMA_DONE1_3_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_sdma_done1_3_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SDMA_DONE1_3_AW :: INT_EVENT0_ICLR_SDMA_DONE1_3_CLR) } } # [doc = "Slave RX Pec Error Interrupt\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_SPEC_RX_ERR_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_SPEC_RX_ERR_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_SPEC_RX_ERR_CLR = 1 , } impl From < INT_EVENT0_ICLR_SPEC_RX_ERR_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_SPEC_RX_ERR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_SPEC_RX_ERR` writer - Slave RX Pec Error Interrupt"]
pub type INT_EVENT0_ICLR_SPEC_RX_ERR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_SPEC_RX_ERR_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_SPEC_RX_ERR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_spec_rx_err_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SPEC_RX_ERR_AW :: INT_EVENT0_ICLR_SPEC_RX_ERR_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_spec_rx_err_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SPEC_RX_ERR_AW :: INT_EVENT0_ICLR_SPEC_RX_ERR_CLR) } } # [doc = "Slave TX FIFO underflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_STX_UNFL_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_STX_UNFL_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_STX_UNFL_CLR = 1 , } impl From < INT_EVENT0_ICLR_STX_UNFL_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_STX_UNFL_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_STX_UNFL` writer - Slave TX FIFO underflow"]
pub type INT_EVENT0_ICLR_STX_UNFL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_STX_UNFL_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_STX_UNFL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_stx_unfl_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_STX_UNFL_AW :: INT_EVENT0_ICLR_STX_UNFL_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_stx_unfl_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_STX_UNFL_AW :: INT_EVENT0_ICLR_STX_UNFL_CLR) } } # [doc = "Slave RX FIFO overflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_SRX_OVFL_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_SRX_OVFL_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_SRX_OVFL_CLR = 1 , } impl From < INT_EVENT0_ICLR_SRX_OVFL_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_SRX_OVFL_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_SRX_OVFL` writer - Slave RX FIFO overflow"]
pub type INT_EVENT0_ICLR_SRX_OVFL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_SRX_OVFL_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_SRX_OVFL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_srx_ovfl_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SRX_OVFL_AW :: INT_EVENT0_ICLR_SRX_OVFL_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_srx_ovfl_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SRX_OVFL_AW :: INT_EVENT0_ICLR_SRX_OVFL_CLR) } } # [doc = "Slave Arbitration Lost\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_SARBLOST_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_SARBLOST_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_SARBLOST_CLR = 1 , } impl From < INT_EVENT0_ICLR_SARBLOST_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_SARBLOST_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_SARBLOST` writer - Slave Arbitration Lost"]
pub type INT_EVENT0_ICLR_SARBLOST_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_SARBLOST_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_SARBLOST_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_sarblost_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SARBLOST_AW :: INT_EVENT0_ICLR_SARBLOST_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_sarblost_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_SARBLOST_AW :: INT_EVENT0_ICLR_SARBLOST_CLR) } } # [doc = "Interrupt overflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_INTR_OVFL_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_INTR_OVFL_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_INTR_OVFL_CLR = 1 , } impl From < INT_EVENT0_ICLR_INTR_OVFL_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_INTR_OVFL_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_INTR_OVFL` writer - Interrupt overflow"]
pub type INT_EVENT0_ICLR_INTR_OVFL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_INTR_OVFL_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_INTR_OVFL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_intr_ovfl_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_INTR_OVFL_AW :: INT_EVENT0_ICLR_INTR_OVFL_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_intr_ovfl_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_INTR_OVFL_AW :: INT_EVENT0_ICLR_INTR_OVFL_CLR) } } impl W { # [doc = "Bit 0 - Master Receive Data Interrupt Signals that a byte has been received"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_mrxdone (& mut self) -> INT_EVENT0_ICLR_MRXDONE_W < INT_EVENT0_ICLR_SPEC , 0 > { INT_EVENT0_ICLR_MRXDONE_W :: new (self) } # [doc = "Bit 1 - Master Transmit Transaction completed Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_mtxdone (& mut self) -> INT_EVENT0_ICLR_MTXDONE_W < INT_EVENT0_ICLR_SPEC , 1 > { INT_EVENT0_ICLR_MTXDONE_W :: new (self) } # [doc = "Bit 2 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_mrxfifotrg (& mut self) -> INT_EVENT0_ICLR_MRXFIFOTRG_W < INT_EVENT0_ICLR_SPEC , 2 > { INT_EVENT0_ICLR_MRXFIFOTRG_W :: new (self) } # [doc = "Bit 3 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_mtxfifotrg (& mut self) -> INT_EVENT0_ICLR_MTXFIFOTRG_W < INT_EVENT0_ICLR_SPEC , 3 > { INT_EVENT0_ICLR_MTXFIFOTRG_W :: new (self) } # [doc = "Bit 4 - RXFIFO full event."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_mrxfifofull (& mut self) -> INT_EVENT0_ICLR_MRXFIFOFULL_W < INT_EVENT0_ICLR_SPEC , 4 > { INT_EVENT0_ICLR_MRXFIFOFULL_W :: new (self) } # [doc = "Bit 5 - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_mtxempty (& mut self) -> INT_EVENT0_ICLR_MTXEMPTY_W < INT_EVENT0_ICLR_SPEC , 5 > { INT_EVENT0_ICLR_MTXEMPTY_W :: new (self) } # [doc = "Bit 7 - Address/Data NACK Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_mnack (& mut self) -> INT_EVENT0_ICLR_MNACK_W < INT_EVENT0_ICLR_SPEC , 7 > { INT_EVENT0_ICLR_MNACK_W :: new (self) } # [doc = "Bit 8 - START Detection Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_mstart (& mut self) -> INT_EVENT0_ICLR_MSTART_W < INT_EVENT0_ICLR_SPEC , 8 > { INT_EVENT0_ICLR_MSTART_W :: new (self) } # [doc = "Bit 9 - STOP Detection Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_mstop (& mut self) -> INT_EVENT0_ICLR_MSTOP_W < INT_EVENT0_ICLR_SPEC , 9 > { INT_EVENT0_ICLR_MSTOP_W :: new (self) } # [doc = "Bit 10 - Arbitration Lost Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_marblost (& mut self) -> INT_EVENT0_ICLR_MARBLOST_W < INT_EVENT0_ICLR_SPEC , 10 > { INT_EVENT0_ICLR_MARBLOST_W :: new (self) } # [doc = "Bit 11 - DMA Done 1 on Event Channel 2"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_mdma_done1_2 (& mut self) -> INT_EVENT0_ICLR_MDMA_DONE1_2_W < INT_EVENT0_ICLR_SPEC , 11 > { INT_EVENT0_ICLR_MDMA_DONE1_2_W :: new (self) } # [doc = "Bit 12 - DMA Done 1 on Event Channel 3"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_mdma_done1_3 (& mut self) -> INT_EVENT0_ICLR_MDMA_DONE1_3_W < INT_EVENT0_ICLR_SPEC , 12 > { INT_EVENT0_ICLR_MDMA_DONE1_3_W :: new (self) } # [doc = "Bit 13 - Master RX Pec Error Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_mpec_rx_err (& mut self) -> INT_EVENT0_ICLR_MPEC_RX_ERR_W < INT_EVENT0_ICLR_SPEC , 13 > { INT_EVENT0_ICLR_MPEC_RX_ERR_W :: new (self) } # [doc = "Bit 14 - Timeout A interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_timeouta (& mut self) -> INT_EVENT0_ICLR_TIMEOUTA_W < INT_EVENT0_ICLR_SPEC , 14 > { INT_EVENT0_ICLR_TIMEOUTA_W :: new (self) } # [doc = "Bit 15 - Timeout B Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_timeoutb (& mut self) -> INT_EVENT0_ICLR_TIMEOUTB_W < INT_EVENT0_ICLR_SPEC , 15 > { INT_EVENT0_ICLR_TIMEOUTB_W :: new (self) } # [doc = "Bit 16 - Slave Receive Data Interrupt Signals that a byte has been received"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_srxdone (& mut self) -> INT_EVENT0_ICLR_SRXDONE_W < INT_EVENT0_ICLR_SPEC , 16 > { INT_EVENT0_ICLR_SRXDONE_W :: new (self) } # [doc = "Bit 17 - Slave Transmit Transaction completed Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_stxdone (& mut self) -> INT_EVENT0_ICLR_STXDONE_W < INT_EVENT0_ICLR_SPEC , 17 > { INT_EVENT0_ICLR_STXDONE_W :: new (self) } # [doc = "Bit 18 - Slave Receive FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_srxfifotrg (& mut self) -> INT_EVENT0_ICLR_SRXFIFOTRG_W < INT_EVENT0_ICLR_SPEC , 18 > { INT_EVENT0_ICLR_SRXFIFOTRG_W :: new (self) } # [doc = "Bit 19 - Slave Transmit FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_stxfifotrg (& mut self) -> INT_EVENT0_ICLR_STXFIFOTRG_W < INT_EVENT0_ICLR_SPEC , 19 > { INT_EVENT0_ICLR_STXFIFOTRG_W :: new (self) } # [doc = "Bit 20 - RXFIFO full event. This interrupt is set if an RX FIFO is full."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_srxfifofull (& mut self) -> INT_EVENT0_ICLR_SRXFIFOFULL_W < INT_EVENT0_ICLR_SPEC , 20 > { INT_EVENT0_ICLR_SRXFIFOFULL_W :: new (self) } # [doc = "Bit 21 - Transmit FIFO Empty interrupt mask. This interrupt is set if all data in the Transmit FIFO have been shifted out and the transmit goes into idle mode."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_stxempty (& mut self) -> INT_EVENT0_ICLR_STXEMPTY_W < INT_EVENT0_ICLR_SPEC , 21 > { INT_EVENT0_ICLR_STXEMPTY_W :: new (self) } # [doc = "Bit 22 - Slave START Detection Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_sstart (& mut self) -> INT_EVENT0_ICLR_SSTART_W < INT_EVENT0_ICLR_SPEC , 22 > { INT_EVENT0_ICLR_SSTART_W :: new (self) } # [doc = "Bit 23 - Slave STOP Detection Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_sstop (& mut self) -> INT_EVENT0_ICLR_SSTOP_W < INT_EVENT0_ICLR_SPEC , 23 > { INT_EVENT0_ICLR_SSTOP_W :: new (self) } # [doc = "Bit 24 - General Call Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_sgencall (& mut self) -> INT_EVENT0_ICLR_SGENCALL_W < INT_EVENT0_ICLR_SPEC , 24 > { INT_EVENT0_ICLR_SGENCALL_W :: new (self) } # [doc = "Bit 25 - DMA Done 1 on Event Channel 2"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_sdma_done1_2 (& mut self) -> INT_EVENT0_ICLR_SDMA_DONE1_2_W < INT_EVENT0_ICLR_SPEC , 25 > { INT_EVENT0_ICLR_SDMA_DONE1_2_W :: new (self) } # [doc = "Bit 26 - DMA Done 1 on Event Channel 3"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_sdma_done1_3 (& mut self) -> INT_EVENT0_ICLR_SDMA_DONE1_3_W < INT_EVENT0_ICLR_SPEC , 26 > { INT_EVENT0_ICLR_SDMA_DONE1_3_W :: new (self) } # [doc = "Bit 27 - Slave RX Pec Error Interrupt"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_spec_rx_err (& mut self) -> INT_EVENT0_ICLR_SPEC_RX_ERR_W < INT_EVENT0_ICLR_SPEC , 27 > { INT_EVENT0_ICLR_SPEC_RX_ERR_W :: new (self) } # [doc = "Bit 28 - Slave TX FIFO underflow"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_stx_unfl (& mut self) -> INT_EVENT0_ICLR_STX_UNFL_W < INT_EVENT0_ICLR_SPEC , 28 > { INT_EVENT0_ICLR_STX_UNFL_W :: new (self) } # [doc = "Bit 29 - Slave RX FIFO overflow"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_srx_ovfl (& mut self) -> INT_EVENT0_ICLR_SRX_OVFL_W < INT_EVENT0_ICLR_SPEC , 29 > { INT_EVENT0_ICLR_SRX_OVFL_W :: new (self) } # [doc = "Bit 30 - Slave Arbitration Lost"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_sarblost (& mut self) -> INT_EVENT0_ICLR_SARBLOST_W < INT_EVENT0_ICLR_SPEC , 30 > { INT_EVENT0_ICLR_SARBLOST_W :: new (self) } # [doc = "Bit 31 - Interrupt overflow"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_intr_ovfl (& mut self) -> INT_EVENT0_ICLR_INTR_OVFL_W < INT_EVENT0_ICLR_SPEC , 31 > { INT_EVENT0_ICLR_INTR_OVFL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_ICLR_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event0_iclr::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT0_ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT0_ICLR to value 0"]
impl crate :: Resettable for INT_EVENT0_ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_IIDX (r) register accessor: Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_iidx`]
module"]
pub type INT_EVENT1_IIDX = crate :: Reg < int_event1_iidx :: INT_EVENT1_IIDX_SPEC > ; # [doc = "Interrupt index"]
pub mod int_event1_iidx { # [doc = "Register `INT_EVENT1_IIDX` reader"]
pub type R = crate :: R < INT_EVENT1_IIDX_SPEC > ; # [doc = "Field `INT_EVENT1_IIDX_STAT` reader - I2C Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in RIS and MISC. 15h-1Fh = Reserved"]
pub type INT_EVENT1_IIDX_STAT_R = crate :: FieldReader < INT_EVENT1_IIDX_STAT_A > ; # [doc = "I2C Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in RIS and MISC. 15h-1Fh = Reserved\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum INT_EVENT1_IIDX_STAT_A { # [doc = "0: NO_INTR"]
INT_EVENT1_IIDX_STAT_NO_INTR = 0 , # [doc = "1: MRXFIFOTRG"]
INT_EVENT1_IIDX_STAT_MRXFIFOTRG = 1 , # [doc = "2: MTXFIFOTRG"]
INT_EVENT1_IIDX_STAT_MTXFIFOTRG = 2 , # [doc = "3: SRXFIFOTRG"]
INT_EVENT1_IIDX_STAT_SRXFIFOTRG = 3 , # [doc = "4: STXFIFOTRG"]
INT_EVENT1_IIDX_STAT_STXFIFOTRG = 4 , } impl From < INT_EVENT1_IIDX_STAT_A > for u8 { # [inline (always)]
fn from (variant : INT_EVENT1_IIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for INT_EVENT1_IIDX_STAT_A { type Ux = u8 ; } impl INT_EVENT1_IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < INT_EVENT1_IIDX_STAT_A > { match self . bits { 0 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_NO_INTR) , 1 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_MRXFIFOTRG) , 2 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_MTXFIFOTRG) , 3 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_SRXFIFOTRG) , 4 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_STXFIFOTRG) , _ => None , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_no_intr (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_NO_INTR } # [doc = "MRXFIFOTRG"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_mrxfifotrg (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_MRXFIFOTRG } # [doc = "MTXFIFOTRG"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_mtxfifotrg (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_MTXFIFOTRG } # [doc = "SRXFIFOTRG"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_srxfifotrg (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_SRXFIFOTRG } # [doc = "STXFIFOTRG"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_stxfifotrg (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_STXFIFOTRG } } impl R { # [doc = "Bits 0:7 - I2C Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in RIS and MISC. 15h-1Fh = Reserved"]
# [inline (always)]
pub fn int_event1_iidx_stat (& self) -> INT_EVENT1_IIDX_STAT_R { INT_EVENT1_IIDX_STAT_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_IIDX_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event1_iidx::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT1_IIDX_SPEC { } # [doc = "`reset()` method sets INT_EVENT1_IIDX to value 0"]
impl crate :: Resettable for INT_EVENT1_IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_IMASK (rw) register accessor: Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_imask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_imask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_imask`]
module"]
pub type INT_EVENT1_IMASK = crate :: Reg < int_event1_imask :: INT_EVENT1_IMASK_SPEC > ; # [doc = "Interrupt mask"]
pub mod int_event1_imask { # [doc = "Register `INT_EVENT1_IMASK` reader"]
pub type R = crate :: R < INT_EVENT1_IMASK_SPEC > ; # [doc = "Register `INT_EVENT1_IMASK` writer"]
pub type W = crate :: W < INT_EVENT1_IMASK_SPEC > ; # [doc = "Field `INT_EVENT1_IMASK_MRXFIFOTRG` reader - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT1_IMASK_MRXFIFOTRG_R = crate :: BitReader < INT_EVENT1_IMASK_MRXFIFOTRG_A > ; # [doc = "Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_MRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_MRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_MRXFIFOTRG_SET = 1 , } impl From < INT_EVENT1_IMASK_MRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_MRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_MRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_MRXFIFOTRG_A { match self . bits { false => INT_EVENT1_IMASK_MRXFIFOTRG_A :: INT_EVENT1_IMASK_MRXFIFOTRG_CLR , true => INT_EVENT1_IMASK_MRXFIFOTRG_A :: INT_EVENT1_IMASK_MRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_mrxfifotrg_clr (& self) -> bool { * self == INT_EVENT1_IMASK_MRXFIFOTRG_A :: INT_EVENT1_IMASK_MRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_mrxfifotrg_set (& self) -> bool { * self == INT_EVENT1_IMASK_MRXFIFOTRG_A :: INT_EVENT1_IMASK_MRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT1_IMASK_MRXFIFOTRG` writer - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT1_IMASK_MRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_MRXFIFOTRG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_MRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_mrxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_MRXFIFOTRG_A :: INT_EVENT1_IMASK_MRXFIFOTRG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_mrxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_MRXFIFOTRG_A :: INT_EVENT1_IMASK_MRXFIFOTRG_SET) } } # [doc = "Field `INT_EVENT1_IMASK_MTXFIFOTRG` reader - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT1_IMASK_MTXFIFOTRG_R = crate :: BitReader < INT_EVENT1_IMASK_MTXFIFOTRG_A > ; # [doc = "Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_MTXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_MTXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_MTXFIFOTRG_SET = 1 , } impl From < INT_EVENT1_IMASK_MTXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_MTXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_MTXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_MTXFIFOTRG_A { match self . bits { false => INT_EVENT1_IMASK_MTXFIFOTRG_A :: INT_EVENT1_IMASK_MTXFIFOTRG_CLR , true => INT_EVENT1_IMASK_MTXFIFOTRG_A :: INT_EVENT1_IMASK_MTXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_mtxfifotrg_clr (& self) -> bool { * self == INT_EVENT1_IMASK_MTXFIFOTRG_A :: INT_EVENT1_IMASK_MTXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_mtxfifotrg_set (& self) -> bool { * self == INT_EVENT1_IMASK_MTXFIFOTRG_A :: INT_EVENT1_IMASK_MTXFIFOTRG_SET } } # [doc = "Field `INT_EVENT1_IMASK_MTXFIFOTRG` writer - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT1_IMASK_MTXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_MTXFIFOTRG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_MTXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_mtxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_MTXFIFOTRG_A :: INT_EVENT1_IMASK_MTXFIFOTRG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_mtxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_MTXFIFOTRG_A :: INT_EVENT1_IMASK_MTXFIFOTRG_SET) } } # [doc = "Field `INT_EVENT1_IMASK_SRXFIFOTRG` reader - Slave Receive FIFO Trigger"]
pub type INT_EVENT1_IMASK_SRXFIFOTRG_R = crate :: BitReader < INT_EVENT1_IMASK_SRXFIFOTRG_A > ; # [doc = "Slave Receive FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_SRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_SRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_SRXFIFOTRG_SET = 1 , } impl From < INT_EVENT1_IMASK_SRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_SRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_SRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_SRXFIFOTRG_A { match self . bits { false => INT_EVENT1_IMASK_SRXFIFOTRG_A :: INT_EVENT1_IMASK_SRXFIFOTRG_CLR , true => INT_EVENT1_IMASK_SRXFIFOTRG_A :: INT_EVENT1_IMASK_SRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_srxfifotrg_clr (& self) -> bool { * self == INT_EVENT1_IMASK_SRXFIFOTRG_A :: INT_EVENT1_IMASK_SRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_srxfifotrg_set (& self) -> bool { * self == INT_EVENT1_IMASK_SRXFIFOTRG_A :: INT_EVENT1_IMASK_SRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT1_IMASK_SRXFIFOTRG` writer - Slave Receive FIFO Trigger"]
pub type INT_EVENT1_IMASK_SRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_SRXFIFOTRG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_SRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_srxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_SRXFIFOTRG_A :: INT_EVENT1_IMASK_SRXFIFOTRG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_srxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_SRXFIFOTRG_A :: INT_EVENT1_IMASK_SRXFIFOTRG_SET) } } # [doc = "Field `INT_EVENT1_IMASK_STXFIFOTRG` reader - Slave Transmit FIFO Trigger"]
pub type INT_EVENT1_IMASK_STXFIFOTRG_R = crate :: BitReader < INT_EVENT1_IMASK_STXFIFOTRG_A > ; # [doc = "Slave Transmit FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_STXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_STXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_STXFIFOTRG_SET = 1 , } impl From < INT_EVENT1_IMASK_STXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_STXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_STXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_STXFIFOTRG_A { match self . bits { false => INT_EVENT1_IMASK_STXFIFOTRG_A :: INT_EVENT1_IMASK_STXFIFOTRG_CLR , true => INT_EVENT1_IMASK_STXFIFOTRG_A :: INT_EVENT1_IMASK_STXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_stxfifotrg_clr (& self) -> bool { * self == INT_EVENT1_IMASK_STXFIFOTRG_A :: INT_EVENT1_IMASK_STXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_stxfifotrg_set (& self) -> bool { * self == INT_EVENT1_IMASK_STXFIFOTRG_A :: INT_EVENT1_IMASK_STXFIFOTRG_SET } } # [doc = "Field `INT_EVENT1_IMASK_STXFIFOTRG` writer - Slave Transmit FIFO Trigger"]
pub type INT_EVENT1_IMASK_STXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_STXFIFOTRG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_STXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_stxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_STXFIFOTRG_A :: INT_EVENT1_IMASK_STXFIFOTRG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_stxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_STXFIFOTRG_A :: INT_EVENT1_IMASK_STXFIFOTRG_SET) } } impl R { # [doc = "Bit 0 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
pub fn int_event1_imask_mrxfifotrg (& self) -> INT_EVENT1_IMASK_MRXFIFOTRG_R { INT_EVENT1_IMASK_MRXFIFOTRG_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
pub fn int_event1_imask_mtxfifotrg (& self) -> INT_EVENT1_IMASK_MTXFIFOTRG_R { INT_EVENT1_IMASK_MTXFIFOTRG_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Slave Receive FIFO Trigger"]
# [inline (always)]
pub fn int_event1_imask_srxfifotrg (& self) -> INT_EVENT1_IMASK_SRXFIFOTRG_R { INT_EVENT1_IMASK_SRXFIFOTRG_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Slave Transmit FIFO Trigger"]
# [inline (always)]
pub fn int_event1_imask_stxfifotrg (& self) -> INT_EVENT1_IMASK_STXFIFOTRG_R { INT_EVENT1_IMASK_STXFIFOTRG_R :: new (((self . bits >> 3) & 1) != 0) } } impl W { # [doc = "Bit 0 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_mrxfifotrg (& mut self) -> INT_EVENT1_IMASK_MRXFIFOTRG_W < INT_EVENT1_IMASK_SPEC , 0 > { INT_EVENT1_IMASK_MRXFIFOTRG_W :: new (self) } # [doc = "Bit 1 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_mtxfifotrg (& mut self) -> INT_EVENT1_IMASK_MTXFIFOTRG_W < INT_EVENT1_IMASK_SPEC , 1 > { INT_EVENT1_IMASK_MTXFIFOTRG_W :: new (self) } # [doc = "Bit 2 - Slave Receive FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_srxfifotrg (& mut self) -> INT_EVENT1_IMASK_SRXFIFOTRG_W < INT_EVENT1_IMASK_SPEC , 2 > { INT_EVENT1_IMASK_SRXFIFOTRG_W :: new (self) } # [doc = "Bit 3 - Slave Transmit FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_stxfifotrg (& mut self) -> INT_EVENT1_IMASK_STXFIFOTRG_W < INT_EVENT1_IMASK_SPEC , 3 > { INT_EVENT1_IMASK_STXFIFOTRG_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_imask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_imask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_IMASK_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event1_imask::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT1_IMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`int_event1_imask::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT1_IMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT1_IMASK to value 0"]
impl crate :: Resettable for INT_EVENT1_IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_RIS (r) register accessor: Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_ris`]
module"]
pub type INT_EVENT1_RIS = crate :: Reg < int_event1_ris :: INT_EVENT1_RIS_SPEC > ; # [doc = "Raw interrupt status"]
pub mod int_event1_ris { # [doc = "Register `INT_EVENT1_RIS` reader"]
pub type R = crate :: R < INT_EVENT1_RIS_SPEC > ; # [doc = "Field `INT_EVENT1_RIS_MRXFIFOTRG` reader - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT1_RIS_MRXFIFOTRG_R = crate :: BitReader < INT_EVENT1_RIS_MRXFIFOTRG_A > ; # [doc = "Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_MRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_MRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_MRXFIFOTRG_SET = 1 , } impl From < INT_EVENT1_RIS_MRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_MRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_MRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_MRXFIFOTRG_A { match self . bits { false => INT_EVENT1_RIS_MRXFIFOTRG_A :: INT_EVENT1_RIS_MRXFIFOTRG_CLR , true => INT_EVENT1_RIS_MRXFIFOTRG_A :: INT_EVENT1_RIS_MRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_mrxfifotrg_clr (& self) -> bool { * self == INT_EVENT1_RIS_MRXFIFOTRG_A :: INT_EVENT1_RIS_MRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_mrxfifotrg_set (& self) -> bool { * self == INT_EVENT1_RIS_MRXFIFOTRG_A :: INT_EVENT1_RIS_MRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT1_RIS_MTXFIFOTRG` reader - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT1_RIS_MTXFIFOTRG_R = crate :: BitReader < INT_EVENT1_RIS_MTXFIFOTRG_A > ; # [doc = "Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_MTXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_MTXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_MTXFIFOTRG_SET = 1 , } impl From < INT_EVENT1_RIS_MTXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_MTXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_MTXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_MTXFIFOTRG_A { match self . bits { false => INT_EVENT1_RIS_MTXFIFOTRG_A :: INT_EVENT1_RIS_MTXFIFOTRG_CLR , true => INT_EVENT1_RIS_MTXFIFOTRG_A :: INT_EVENT1_RIS_MTXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_mtxfifotrg_clr (& self) -> bool { * self == INT_EVENT1_RIS_MTXFIFOTRG_A :: INT_EVENT1_RIS_MTXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_mtxfifotrg_set (& self) -> bool { * self == INT_EVENT1_RIS_MTXFIFOTRG_A :: INT_EVENT1_RIS_MTXFIFOTRG_SET } } # [doc = "Field `INT_EVENT1_RIS_SRXFIFOTRG` reader - Slave Receive FIFO Trigger"]
pub type INT_EVENT1_RIS_SRXFIFOTRG_R = crate :: BitReader < INT_EVENT1_RIS_SRXFIFOTRG_A > ; # [doc = "Slave Receive FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_SRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_SRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_SRXFIFOTRG_SET = 1 , } impl From < INT_EVENT1_RIS_SRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_SRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_SRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_SRXFIFOTRG_A { match self . bits { false => INT_EVENT1_RIS_SRXFIFOTRG_A :: INT_EVENT1_RIS_SRXFIFOTRG_CLR , true => INT_EVENT1_RIS_SRXFIFOTRG_A :: INT_EVENT1_RIS_SRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_srxfifotrg_clr (& self) -> bool { * self == INT_EVENT1_RIS_SRXFIFOTRG_A :: INT_EVENT1_RIS_SRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_srxfifotrg_set (& self) -> bool { * self == INT_EVENT1_RIS_SRXFIFOTRG_A :: INT_EVENT1_RIS_SRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT1_RIS_STXFIFOTRG` reader - Slave Transmit FIFO Trigger"]
pub type INT_EVENT1_RIS_STXFIFOTRG_R = crate :: BitReader < INT_EVENT1_RIS_STXFIFOTRG_A > ; # [doc = "Slave Transmit FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_STXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_STXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_STXFIFOTRG_SET = 1 , } impl From < INT_EVENT1_RIS_STXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_STXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_STXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_STXFIFOTRG_A { match self . bits { false => INT_EVENT1_RIS_STXFIFOTRG_A :: INT_EVENT1_RIS_STXFIFOTRG_CLR , true => INT_EVENT1_RIS_STXFIFOTRG_A :: INT_EVENT1_RIS_STXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_stxfifotrg_clr (& self) -> bool { * self == INT_EVENT1_RIS_STXFIFOTRG_A :: INT_EVENT1_RIS_STXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_stxfifotrg_set (& self) -> bool { * self == INT_EVENT1_RIS_STXFIFOTRG_A :: INT_EVENT1_RIS_STXFIFOTRG_SET } } impl R { # [doc = "Bit 0 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
pub fn int_event1_ris_mrxfifotrg (& self) -> INT_EVENT1_RIS_MRXFIFOTRG_R { INT_EVENT1_RIS_MRXFIFOTRG_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
pub fn int_event1_ris_mtxfifotrg (& self) -> INT_EVENT1_RIS_MTXFIFOTRG_R { INT_EVENT1_RIS_MTXFIFOTRG_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Slave Receive FIFO Trigger"]
# [inline (always)]
pub fn int_event1_ris_srxfifotrg (& self) -> INT_EVENT1_RIS_SRXFIFOTRG_R { INT_EVENT1_RIS_SRXFIFOTRG_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Slave Transmit FIFO Trigger"]
# [inline (always)]
pub fn int_event1_ris_stxfifotrg (& self) -> INT_EVENT1_RIS_STXFIFOTRG_R { INT_EVENT1_RIS_STXFIFOTRG_R :: new (((self . bits >> 3) & 1) != 0) } } # [doc = "Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_RIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event1_ris::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT1_RIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT1_RIS to value 0"]
impl crate :: Resettable for INT_EVENT1_RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_MIS (r) register accessor: Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_mis`]
module"]
pub type INT_EVENT1_MIS = crate :: Reg < int_event1_mis :: INT_EVENT1_MIS_SPEC > ; # [doc = "Masked interrupt status"]
pub mod int_event1_mis { # [doc = "Register `INT_EVENT1_MIS` reader"]
pub type R = crate :: R < INT_EVENT1_MIS_SPEC > ; # [doc = "Field `INT_EVENT1_MIS_MRXFIFOTRG` reader - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT1_MIS_MRXFIFOTRG_R = crate :: BitReader < INT_EVENT1_MIS_MRXFIFOTRG_A > ; # [doc = "Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_MRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_MRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_MRXFIFOTRG_SET = 1 , } impl From < INT_EVENT1_MIS_MRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_MRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_MRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_MRXFIFOTRG_A { match self . bits { false => INT_EVENT1_MIS_MRXFIFOTRG_A :: INT_EVENT1_MIS_MRXFIFOTRG_CLR , true => INT_EVENT1_MIS_MRXFIFOTRG_A :: INT_EVENT1_MIS_MRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_mrxfifotrg_clr (& self) -> bool { * self == INT_EVENT1_MIS_MRXFIFOTRG_A :: INT_EVENT1_MIS_MRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_mrxfifotrg_set (& self) -> bool { * self == INT_EVENT1_MIS_MRXFIFOTRG_A :: INT_EVENT1_MIS_MRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT1_MIS_MTXFIFOTRG` reader - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT1_MIS_MTXFIFOTRG_R = crate :: BitReader < INT_EVENT1_MIS_MTXFIFOTRG_A > ; # [doc = "Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_MTXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_MTXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_MTXFIFOTRG_SET = 1 , } impl From < INT_EVENT1_MIS_MTXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_MTXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_MTXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_MTXFIFOTRG_A { match self . bits { false => INT_EVENT1_MIS_MTXFIFOTRG_A :: INT_EVENT1_MIS_MTXFIFOTRG_CLR , true => INT_EVENT1_MIS_MTXFIFOTRG_A :: INT_EVENT1_MIS_MTXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_mtxfifotrg_clr (& self) -> bool { * self == INT_EVENT1_MIS_MTXFIFOTRG_A :: INT_EVENT1_MIS_MTXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_mtxfifotrg_set (& self) -> bool { * self == INT_EVENT1_MIS_MTXFIFOTRG_A :: INT_EVENT1_MIS_MTXFIFOTRG_SET } } # [doc = "Field `INT_EVENT1_MIS_SRXFIFOTRG` reader - Slave Receive FIFO Trigger"]
pub type INT_EVENT1_MIS_SRXFIFOTRG_R = crate :: BitReader < INT_EVENT1_MIS_SRXFIFOTRG_A > ; # [doc = "Slave Receive FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_SRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_SRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_SRXFIFOTRG_SET = 1 , } impl From < INT_EVENT1_MIS_SRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_SRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_SRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_SRXFIFOTRG_A { match self . bits { false => INT_EVENT1_MIS_SRXFIFOTRG_A :: INT_EVENT1_MIS_SRXFIFOTRG_CLR , true => INT_EVENT1_MIS_SRXFIFOTRG_A :: INT_EVENT1_MIS_SRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_srxfifotrg_clr (& self) -> bool { * self == INT_EVENT1_MIS_SRXFIFOTRG_A :: INT_EVENT1_MIS_SRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_srxfifotrg_set (& self) -> bool { * self == INT_EVENT1_MIS_SRXFIFOTRG_A :: INT_EVENT1_MIS_SRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT1_MIS_STXFIFOTRG` reader - Slave Transmit FIFO Trigger"]
pub type INT_EVENT1_MIS_STXFIFOTRG_R = crate :: BitReader < INT_EVENT1_MIS_STXFIFOTRG_A > ; # [doc = "Slave Transmit FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_STXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_STXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_STXFIFOTRG_SET = 1 , } impl From < INT_EVENT1_MIS_STXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_STXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_STXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_STXFIFOTRG_A { match self . bits { false => INT_EVENT1_MIS_STXFIFOTRG_A :: INT_EVENT1_MIS_STXFIFOTRG_CLR , true => INT_EVENT1_MIS_STXFIFOTRG_A :: INT_EVENT1_MIS_STXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_stxfifotrg_clr (& self) -> bool { * self == INT_EVENT1_MIS_STXFIFOTRG_A :: INT_EVENT1_MIS_STXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_stxfifotrg_set (& self) -> bool { * self == INT_EVENT1_MIS_STXFIFOTRG_A :: INT_EVENT1_MIS_STXFIFOTRG_SET } } impl R { # [doc = "Bit 0 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
pub fn int_event1_mis_mrxfifotrg (& self) -> INT_EVENT1_MIS_MRXFIFOTRG_R { INT_EVENT1_MIS_MRXFIFOTRG_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
pub fn int_event1_mis_mtxfifotrg (& self) -> INT_EVENT1_MIS_MTXFIFOTRG_R { INT_EVENT1_MIS_MTXFIFOTRG_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Slave Receive FIFO Trigger"]
# [inline (always)]
pub fn int_event1_mis_srxfifotrg (& self) -> INT_EVENT1_MIS_SRXFIFOTRG_R { INT_EVENT1_MIS_SRXFIFOTRG_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Slave Transmit FIFO Trigger"]
# [inline (always)]
pub fn int_event1_mis_stxfifotrg (& self) -> INT_EVENT1_MIS_STXFIFOTRG_R { INT_EVENT1_MIS_STXFIFOTRG_R :: new (((self . bits >> 3) & 1) != 0) } } # [doc = "Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_MIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event1_mis::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT1_MIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT1_MIS to value 0"]
impl crate :: Resettable for INT_EVENT1_MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_ISET (w) register accessor: Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_iset`]
module"]
pub type INT_EVENT1_ISET = crate :: Reg < int_event1_iset :: INT_EVENT1_ISET_SPEC > ; # [doc = "Interrupt set"]
pub mod int_event1_iset { # [doc = "Register `INT_EVENT1_ISET` writer"]
pub type W = crate :: W < INT_EVENT1_ISET_SPEC > ; # [doc = "Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_MRXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_MRXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_MRXFIFOTRG_SET = 1 , } impl From < INT_EVENT1_ISET_MRXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_MRXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_MRXFIFOTRG` writer - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT1_ISET_MRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_MRXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_MRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_mrxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_MRXFIFOTRG_AW :: INT_EVENT1_ISET_MRXFIFOTRG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_mrxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_MRXFIFOTRG_AW :: INT_EVENT1_ISET_MRXFIFOTRG_SET) } } # [doc = "Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_MTXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_MTXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_MTXFIFOTRG_SET = 1 , } impl From < INT_EVENT1_ISET_MTXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_MTXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_MTXFIFOTRG` writer - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT1_ISET_MTXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_MTXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_MTXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_mtxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_MTXFIFOTRG_AW :: INT_EVENT1_ISET_MTXFIFOTRG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_mtxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_MTXFIFOTRG_AW :: INT_EVENT1_ISET_MTXFIFOTRG_SET) } } # [doc = "Slave Receive FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_SRXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_SRXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_SRXFIFOTRG_SET = 1 , } impl From < INT_EVENT1_ISET_SRXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_SRXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_SRXFIFOTRG` writer - Slave Receive FIFO Trigger"]
pub type INT_EVENT1_ISET_SRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_SRXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_SRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_srxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_SRXFIFOTRG_AW :: INT_EVENT1_ISET_SRXFIFOTRG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_srxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_SRXFIFOTRG_AW :: INT_EVENT1_ISET_SRXFIFOTRG_SET) } } # [doc = "Slave Transmit FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_STXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_STXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_STXFIFOTRG_SET = 1 , } impl From < INT_EVENT1_ISET_STXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_STXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_STXFIFOTRG` writer - Slave Transmit FIFO Trigger"]
pub type INT_EVENT1_ISET_STXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_STXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_STXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_stxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_STXFIFOTRG_AW :: INT_EVENT1_ISET_STXFIFOTRG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_stxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_STXFIFOTRG_AW :: INT_EVENT1_ISET_STXFIFOTRG_SET) } } impl W { # [doc = "Bit 0 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_mrxfifotrg (& mut self) -> INT_EVENT1_ISET_MRXFIFOTRG_W < INT_EVENT1_ISET_SPEC , 0 > { INT_EVENT1_ISET_MRXFIFOTRG_W :: new (self) } # [doc = "Bit 1 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_mtxfifotrg (& mut self) -> INT_EVENT1_ISET_MTXFIFOTRG_W < INT_EVENT1_ISET_SPEC , 1 > { INT_EVENT1_ISET_MTXFIFOTRG_W :: new (self) } # [doc = "Bit 2 - Slave Receive FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_srxfifotrg (& mut self) -> INT_EVENT1_ISET_SRXFIFOTRG_W < INT_EVENT1_ISET_SPEC , 2 > { INT_EVENT1_ISET_SRXFIFOTRG_W :: new (self) } # [doc = "Bit 3 - Slave Transmit FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_stxfifotrg (& mut self) -> INT_EVENT1_ISET_STXFIFOTRG_W < INT_EVENT1_ISET_SPEC , 3 > { INT_EVENT1_ISET_STXFIFOTRG_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_ISET_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event1_iset::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT1_ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT1_ISET to value 0"]
impl crate :: Resettable for INT_EVENT1_ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_ICLR (w) register accessor: Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_iclr`]
module"]
pub type INT_EVENT1_ICLR = crate :: Reg < int_event1_iclr :: INT_EVENT1_ICLR_SPEC > ; # [doc = "Interrupt clear"]
pub mod int_event1_iclr { # [doc = "Register `INT_EVENT1_ICLR` writer"]
pub type W = crate :: W < INT_EVENT1_ICLR_SPEC > ; # [doc = "Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_MRXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_MRXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_MRXFIFOTRG_CLR = 1 , } impl From < INT_EVENT1_ICLR_MRXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_MRXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_MRXFIFOTRG` writer - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT1_ICLR_MRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_MRXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_MRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_mrxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_MRXFIFOTRG_AW :: INT_EVENT1_ICLR_MRXFIFOTRG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_mrxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_MRXFIFOTRG_AW :: INT_EVENT1_ICLR_MRXFIFOTRG_CLR) } } # [doc = "Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_MTXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_MTXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_MTXFIFOTRG_CLR = 1 , } impl From < INT_EVENT1_ICLR_MTXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_MTXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_MTXFIFOTRG` writer - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT1_ICLR_MTXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_MTXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_MTXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_mtxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_MTXFIFOTRG_AW :: INT_EVENT1_ICLR_MTXFIFOTRG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_mtxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_MTXFIFOTRG_AW :: INT_EVENT1_ICLR_MTXFIFOTRG_CLR) } } # [doc = "Slave Receive FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_SRXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_SRXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_SRXFIFOTRG_CLR = 1 , } impl From < INT_EVENT1_ICLR_SRXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_SRXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_SRXFIFOTRG` writer - Slave Receive FIFO Trigger"]
pub type INT_EVENT1_ICLR_SRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_SRXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_SRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_srxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_SRXFIFOTRG_AW :: INT_EVENT1_ICLR_SRXFIFOTRG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_srxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_SRXFIFOTRG_AW :: INT_EVENT1_ICLR_SRXFIFOTRG_CLR) } } # [doc = "Slave Transmit FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_STXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_STXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_STXFIFOTRG_CLR = 1 , } impl From < INT_EVENT1_ICLR_STXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_STXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_STXFIFOTRG` writer - Slave Transmit FIFO Trigger"]
pub type INT_EVENT1_ICLR_STXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_STXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_STXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_stxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_STXFIFOTRG_AW :: INT_EVENT1_ICLR_STXFIFOTRG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_stxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_STXFIFOTRG_AW :: INT_EVENT1_ICLR_STXFIFOTRG_CLR) } } impl W { # [doc = "Bit 0 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_mrxfifotrg (& mut self) -> INT_EVENT1_ICLR_MRXFIFOTRG_W < INT_EVENT1_ICLR_SPEC , 0 > { INT_EVENT1_ICLR_MRXFIFOTRG_W :: new (self) } # [doc = "Bit 1 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_mtxfifotrg (& mut self) -> INT_EVENT1_ICLR_MTXFIFOTRG_W < INT_EVENT1_ICLR_SPEC , 1 > { INT_EVENT1_ICLR_MTXFIFOTRG_W :: new (self) } # [doc = "Bit 2 - Slave Receive FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_srxfifotrg (& mut self) -> INT_EVENT1_ICLR_SRXFIFOTRG_W < INT_EVENT1_ICLR_SPEC , 2 > { INT_EVENT1_ICLR_SRXFIFOTRG_W :: new (self) } # [doc = "Bit 3 - Slave Transmit FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_stxfifotrg (& mut self) -> INT_EVENT1_ICLR_STXFIFOTRG_W < INT_EVENT1_ICLR_SPEC , 3 > { INT_EVENT1_ICLR_STXFIFOTRG_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_ICLR_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event1_iclr::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT1_ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT1_ICLR to value 0"]
impl crate :: Resettable for INT_EVENT1_ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_IIDX (r) register accessor: Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_iidx`]
module"]
pub type INT_EVENT2_IIDX = crate :: Reg < int_event2_iidx :: INT_EVENT2_IIDX_SPEC > ; # [doc = "Interrupt index"]
pub mod int_event2_iidx { # [doc = "Register `INT_EVENT2_IIDX` reader"]
pub type R = crate :: R < INT_EVENT2_IIDX_SPEC > ; # [doc = "Field `INT_EVENT2_IIDX_STAT` reader - I2C Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in RIS and MISC. 15h-1Fh = Reserved"]
pub type INT_EVENT2_IIDX_STAT_R = crate :: FieldReader < INT_EVENT2_IIDX_STAT_A > ; # [doc = "I2C Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in RIS and MISC. 15h-1Fh = Reserved\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum INT_EVENT2_IIDX_STAT_A { # [doc = "0: NO_INTR"]
INT_EVENT2_IIDX_STAT_NO_INTR = 0 , # [doc = "1: MRXFIFOTRG"]
INT_EVENT2_IIDX_STAT_MRXFIFOTRG = 1 , # [doc = "2: MTXFIFOTRG"]
INT_EVENT2_IIDX_STAT_MTXFIFOTRG = 2 , # [doc = "3: SRXFIFOTRG"]
INT_EVENT2_IIDX_STAT_SRXFIFOTRG = 3 , # [doc = "4: STXFIFOTRG"]
INT_EVENT2_IIDX_STAT_STXFIFOTRG = 4 , } impl From < INT_EVENT2_IIDX_STAT_A > for u8 { # [inline (always)]
fn from (variant : INT_EVENT2_IIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for INT_EVENT2_IIDX_STAT_A { type Ux = u8 ; } impl INT_EVENT2_IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < INT_EVENT2_IIDX_STAT_A > { match self . bits { 0 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_NO_INTR) , 1 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MRXFIFOTRG) , 2 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MTXFIFOTRG) , 3 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_SRXFIFOTRG) , 4 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_STXFIFOTRG) , _ => None , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_no_intr (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_NO_INTR } # [doc = "MRXFIFOTRG"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_mrxfifotrg (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MRXFIFOTRG } # [doc = "MTXFIFOTRG"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_mtxfifotrg (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MTXFIFOTRG } # [doc = "SRXFIFOTRG"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_srxfifotrg (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_SRXFIFOTRG } # [doc = "STXFIFOTRG"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_stxfifotrg (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_STXFIFOTRG } } impl R { # [doc = "Bits 0:7 - I2C Module Interrupt Vector Value. This register provides the highes priority interrupt index. A read clears the corresponding interrupt flag in RIS and MISC. 15h-1Fh = Reserved"]
# [inline (always)]
pub fn int_event2_iidx_stat (& self) -> INT_EVENT2_IIDX_STAT_R { INT_EVENT2_IIDX_STAT_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_IIDX_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event2_iidx::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT2_IIDX_SPEC { } # [doc = "`reset()` method sets INT_EVENT2_IIDX to value 0"]
impl crate :: Resettable for INT_EVENT2_IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_IMASK (rw) register accessor: Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_imask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_imask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_imask`]
module"]
pub type INT_EVENT2_IMASK = crate :: Reg < int_event2_imask :: INT_EVENT2_IMASK_SPEC > ; # [doc = "Interrupt mask"]
pub mod int_event2_imask { # [doc = "Register `INT_EVENT2_IMASK` reader"]
pub type R = crate :: R < INT_EVENT2_IMASK_SPEC > ; # [doc = "Register `INT_EVENT2_IMASK` writer"]
pub type W = crate :: W < INT_EVENT2_IMASK_SPEC > ; # [doc = "Field `INT_EVENT2_IMASK_MRXFIFOTRG` reader - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT2_IMASK_MRXFIFOTRG_R = crate :: BitReader < INT_EVENT2_IMASK_MRXFIFOTRG_A > ; # [doc = "Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_IMASK_MRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT2_IMASK_MRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_IMASK_MRXFIFOTRG_SET = 1 , } impl From < INT_EVENT2_IMASK_MRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_IMASK_MRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_IMASK_MRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_IMASK_MRXFIFOTRG_A { match self . bits { false => INT_EVENT2_IMASK_MRXFIFOTRG_A :: INT_EVENT2_IMASK_MRXFIFOTRG_CLR , true => INT_EVENT2_IMASK_MRXFIFOTRG_A :: INT_EVENT2_IMASK_MRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_imask_mrxfifotrg_clr (& self) -> bool { * self == INT_EVENT2_IMASK_MRXFIFOTRG_A :: INT_EVENT2_IMASK_MRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_imask_mrxfifotrg_set (& self) -> bool { * self == INT_EVENT2_IMASK_MRXFIFOTRG_A :: INT_EVENT2_IMASK_MRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT2_IMASK_MRXFIFOTRG` writer - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT2_IMASK_MRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_IMASK_MRXFIFOTRG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT2_IMASK_MRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_imask_mrxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_MRXFIFOTRG_A :: INT_EVENT2_IMASK_MRXFIFOTRG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_imask_mrxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_MRXFIFOTRG_A :: INT_EVENT2_IMASK_MRXFIFOTRG_SET) } } # [doc = "Field `INT_EVENT2_IMASK_MTXFIFOTRG` reader - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT2_IMASK_MTXFIFOTRG_R = crate :: BitReader < INT_EVENT2_IMASK_MTXFIFOTRG_A > ; # [doc = "Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_IMASK_MTXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT2_IMASK_MTXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_IMASK_MTXFIFOTRG_SET = 1 , } impl From < INT_EVENT2_IMASK_MTXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_IMASK_MTXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_IMASK_MTXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_IMASK_MTXFIFOTRG_A { match self . bits { false => INT_EVENT2_IMASK_MTXFIFOTRG_A :: INT_EVENT2_IMASK_MTXFIFOTRG_CLR , true => INT_EVENT2_IMASK_MTXFIFOTRG_A :: INT_EVENT2_IMASK_MTXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_imask_mtxfifotrg_clr (& self) -> bool { * self == INT_EVENT2_IMASK_MTXFIFOTRG_A :: INT_EVENT2_IMASK_MTXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_imask_mtxfifotrg_set (& self) -> bool { * self == INT_EVENT2_IMASK_MTXFIFOTRG_A :: INT_EVENT2_IMASK_MTXFIFOTRG_SET } } # [doc = "Field `INT_EVENT2_IMASK_MTXFIFOTRG` writer - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT2_IMASK_MTXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_IMASK_MTXFIFOTRG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT2_IMASK_MTXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_imask_mtxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_MTXFIFOTRG_A :: INT_EVENT2_IMASK_MTXFIFOTRG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_imask_mtxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_MTXFIFOTRG_A :: INT_EVENT2_IMASK_MTXFIFOTRG_SET) } } # [doc = "Field `INT_EVENT2_IMASK_SRXFIFOTRG` reader - Slave Receive FIFO Trigger"]
pub type INT_EVENT2_IMASK_SRXFIFOTRG_R = crate :: BitReader < INT_EVENT2_IMASK_SRXFIFOTRG_A > ; # [doc = "Slave Receive FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_IMASK_SRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT2_IMASK_SRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_IMASK_SRXFIFOTRG_SET = 1 , } impl From < INT_EVENT2_IMASK_SRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_IMASK_SRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_IMASK_SRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_IMASK_SRXFIFOTRG_A { match self . bits { false => INT_EVENT2_IMASK_SRXFIFOTRG_A :: INT_EVENT2_IMASK_SRXFIFOTRG_CLR , true => INT_EVENT2_IMASK_SRXFIFOTRG_A :: INT_EVENT2_IMASK_SRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_imask_srxfifotrg_clr (& self) -> bool { * self == INT_EVENT2_IMASK_SRXFIFOTRG_A :: INT_EVENT2_IMASK_SRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_imask_srxfifotrg_set (& self) -> bool { * self == INT_EVENT2_IMASK_SRXFIFOTRG_A :: INT_EVENT2_IMASK_SRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT2_IMASK_SRXFIFOTRG` writer - Slave Receive FIFO Trigger"]
pub type INT_EVENT2_IMASK_SRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_IMASK_SRXFIFOTRG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT2_IMASK_SRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_imask_srxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_SRXFIFOTRG_A :: INT_EVENT2_IMASK_SRXFIFOTRG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_imask_srxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_SRXFIFOTRG_A :: INT_EVENT2_IMASK_SRXFIFOTRG_SET) } } # [doc = "Field `INT_EVENT2_IMASK_STXFIFOTRG` reader - Slave Transmit FIFO Trigger"]
pub type INT_EVENT2_IMASK_STXFIFOTRG_R = crate :: BitReader < INT_EVENT2_IMASK_STXFIFOTRG_A > ; # [doc = "Slave Transmit FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_IMASK_STXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT2_IMASK_STXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_IMASK_STXFIFOTRG_SET = 1 , } impl From < INT_EVENT2_IMASK_STXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_IMASK_STXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_IMASK_STXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_IMASK_STXFIFOTRG_A { match self . bits { false => INT_EVENT2_IMASK_STXFIFOTRG_A :: INT_EVENT2_IMASK_STXFIFOTRG_CLR , true => INT_EVENT2_IMASK_STXFIFOTRG_A :: INT_EVENT2_IMASK_STXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_imask_stxfifotrg_clr (& self) -> bool { * self == INT_EVENT2_IMASK_STXFIFOTRG_A :: INT_EVENT2_IMASK_STXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_imask_stxfifotrg_set (& self) -> bool { * self == INT_EVENT2_IMASK_STXFIFOTRG_A :: INT_EVENT2_IMASK_STXFIFOTRG_SET } } # [doc = "Field `INT_EVENT2_IMASK_STXFIFOTRG` writer - Slave Transmit FIFO Trigger"]
pub type INT_EVENT2_IMASK_STXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_IMASK_STXFIFOTRG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT2_IMASK_STXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_imask_stxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_STXFIFOTRG_A :: INT_EVENT2_IMASK_STXFIFOTRG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_imask_stxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_STXFIFOTRG_A :: INT_EVENT2_IMASK_STXFIFOTRG_SET) } } impl R { # [doc = "Bit 0 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
pub fn int_event2_imask_mrxfifotrg (& self) -> INT_EVENT2_IMASK_MRXFIFOTRG_R { INT_EVENT2_IMASK_MRXFIFOTRG_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
pub fn int_event2_imask_mtxfifotrg (& self) -> INT_EVENT2_IMASK_MTXFIFOTRG_R { INT_EVENT2_IMASK_MTXFIFOTRG_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Slave Receive FIFO Trigger"]
# [inline (always)]
pub fn int_event2_imask_srxfifotrg (& self) -> INT_EVENT2_IMASK_SRXFIFOTRG_R { INT_EVENT2_IMASK_SRXFIFOTRG_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Slave Transmit FIFO Trigger"]
# [inline (always)]
pub fn int_event2_imask_stxfifotrg (& self) -> INT_EVENT2_IMASK_STXFIFOTRG_R { INT_EVENT2_IMASK_STXFIFOTRG_R :: new (((self . bits >> 3) & 1) != 0) } } impl W { # [doc = "Bit 0 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event2_imask_mrxfifotrg (& mut self) -> INT_EVENT2_IMASK_MRXFIFOTRG_W < INT_EVENT2_IMASK_SPEC , 0 > { INT_EVENT2_IMASK_MRXFIFOTRG_W :: new (self) } # [doc = "Bit 1 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event2_imask_mtxfifotrg (& mut self) -> INT_EVENT2_IMASK_MTXFIFOTRG_W < INT_EVENT2_IMASK_SPEC , 1 > { INT_EVENT2_IMASK_MTXFIFOTRG_W :: new (self) } # [doc = "Bit 2 - Slave Receive FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event2_imask_srxfifotrg (& mut self) -> INT_EVENT2_IMASK_SRXFIFOTRG_W < INT_EVENT2_IMASK_SPEC , 2 > { INT_EVENT2_IMASK_SRXFIFOTRG_W :: new (self) } # [doc = "Bit 3 - Slave Transmit FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event2_imask_stxfifotrg (& mut self) -> INT_EVENT2_IMASK_STXFIFOTRG_W < INT_EVENT2_IMASK_SPEC , 3 > { INT_EVENT2_IMASK_STXFIFOTRG_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_imask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_imask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_IMASK_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event2_imask::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT2_IMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`int_event2_imask::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT2_IMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT2_IMASK to value 0"]
impl crate :: Resettable for INT_EVENT2_IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_RIS (r) register accessor: Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_ris`]
module"]
pub type INT_EVENT2_RIS = crate :: Reg < int_event2_ris :: INT_EVENT2_RIS_SPEC > ; # [doc = "Raw interrupt status"]
pub mod int_event2_ris { # [doc = "Register `INT_EVENT2_RIS` reader"]
pub type R = crate :: R < INT_EVENT2_RIS_SPEC > ; # [doc = "Field `INT_EVENT2_RIS_MRXFIFOTRG` reader - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT2_RIS_MRXFIFOTRG_R = crate :: BitReader < INT_EVENT2_RIS_MRXFIFOTRG_A > ; # [doc = "Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_RIS_MRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT2_RIS_MRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_RIS_MRXFIFOTRG_SET = 1 , } impl From < INT_EVENT2_RIS_MRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_RIS_MRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_RIS_MRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_RIS_MRXFIFOTRG_A { match self . bits { false => INT_EVENT2_RIS_MRXFIFOTRG_A :: INT_EVENT2_RIS_MRXFIFOTRG_CLR , true => INT_EVENT2_RIS_MRXFIFOTRG_A :: INT_EVENT2_RIS_MRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_ris_mrxfifotrg_clr (& self) -> bool { * self == INT_EVENT2_RIS_MRXFIFOTRG_A :: INT_EVENT2_RIS_MRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_ris_mrxfifotrg_set (& self) -> bool { * self == INT_EVENT2_RIS_MRXFIFOTRG_A :: INT_EVENT2_RIS_MRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT2_RIS_MTXFIFOTRG` reader - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT2_RIS_MTXFIFOTRG_R = crate :: BitReader < INT_EVENT2_RIS_MTXFIFOTRG_A > ; # [doc = "Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_RIS_MTXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT2_RIS_MTXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_RIS_MTXFIFOTRG_SET = 1 , } impl From < INT_EVENT2_RIS_MTXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_RIS_MTXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_RIS_MTXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_RIS_MTXFIFOTRG_A { match self . bits { false => INT_EVENT2_RIS_MTXFIFOTRG_A :: INT_EVENT2_RIS_MTXFIFOTRG_CLR , true => INT_EVENT2_RIS_MTXFIFOTRG_A :: INT_EVENT2_RIS_MTXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_ris_mtxfifotrg_clr (& self) -> bool { * self == INT_EVENT2_RIS_MTXFIFOTRG_A :: INT_EVENT2_RIS_MTXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_ris_mtxfifotrg_set (& self) -> bool { * self == INT_EVENT2_RIS_MTXFIFOTRG_A :: INT_EVENT2_RIS_MTXFIFOTRG_SET } } # [doc = "Field `INT_EVENT2_RIS_SRXFIFOTRG` reader - Slave Receive FIFO Trigger"]
pub type INT_EVENT2_RIS_SRXFIFOTRG_R = crate :: BitReader < INT_EVENT2_RIS_SRXFIFOTRG_A > ; # [doc = "Slave Receive FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_RIS_SRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT2_RIS_SRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_RIS_SRXFIFOTRG_SET = 1 , } impl From < INT_EVENT2_RIS_SRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_RIS_SRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_RIS_SRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_RIS_SRXFIFOTRG_A { match self . bits { false => INT_EVENT2_RIS_SRXFIFOTRG_A :: INT_EVENT2_RIS_SRXFIFOTRG_CLR , true => INT_EVENT2_RIS_SRXFIFOTRG_A :: INT_EVENT2_RIS_SRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_ris_srxfifotrg_clr (& self) -> bool { * self == INT_EVENT2_RIS_SRXFIFOTRG_A :: INT_EVENT2_RIS_SRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_ris_srxfifotrg_set (& self) -> bool { * self == INT_EVENT2_RIS_SRXFIFOTRG_A :: INT_EVENT2_RIS_SRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT2_RIS_STXFIFOTRG` reader - Slave Transmit FIFO Trigger"]
pub type INT_EVENT2_RIS_STXFIFOTRG_R = crate :: BitReader < INT_EVENT2_RIS_STXFIFOTRG_A > ; # [doc = "Slave Transmit FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_RIS_STXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT2_RIS_STXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_RIS_STXFIFOTRG_SET = 1 , } impl From < INT_EVENT2_RIS_STXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_RIS_STXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_RIS_STXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_RIS_STXFIFOTRG_A { match self . bits { false => INT_EVENT2_RIS_STXFIFOTRG_A :: INT_EVENT2_RIS_STXFIFOTRG_CLR , true => INT_EVENT2_RIS_STXFIFOTRG_A :: INT_EVENT2_RIS_STXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_ris_stxfifotrg_clr (& self) -> bool { * self == INT_EVENT2_RIS_STXFIFOTRG_A :: INT_EVENT2_RIS_STXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_ris_stxfifotrg_set (& self) -> bool { * self == INT_EVENT2_RIS_STXFIFOTRG_A :: INT_EVENT2_RIS_STXFIFOTRG_SET } } impl R { # [doc = "Bit 0 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
pub fn int_event2_ris_mrxfifotrg (& self) -> INT_EVENT2_RIS_MRXFIFOTRG_R { INT_EVENT2_RIS_MRXFIFOTRG_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
pub fn int_event2_ris_mtxfifotrg (& self) -> INT_EVENT2_RIS_MTXFIFOTRG_R { INT_EVENT2_RIS_MTXFIFOTRG_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Slave Receive FIFO Trigger"]
# [inline (always)]
pub fn int_event2_ris_srxfifotrg (& self) -> INT_EVENT2_RIS_SRXFIFOTRG_R { INT_EVENT2_RIS_SRXFIFOTRG_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Slave Transmit FIFO Trigger"]
# [inline (always)]
pub fn int_event2_ris_stxfifotrg (& self) -> INT_EVENT2_RIS_STXFIFOTRG_R { INT_EVENT2_RIS_STXFIFOTRG_R :: new (((self . bits >> 3) & 1) != 0) } } # [doc = "Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_RIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event2_ris::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT2_RIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT2_RIS to value 0"]
impl crate :: Resettable for INT_EVENT2_RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_MIS (r) register accessor: Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_mis`]
module"]
pub type INT_EVENT2_MIS = crate :: Reg < int_event2_mis :: INT_EVENT2_MIS_SPEC > ; # [doc = "Masked interrupt status"]
pub mod int_event2_mis { # [doc = "Register `INT_EVENT2_MIS` reader"]
pub type R = crate :: R < INT_EVENT2_MIS_SPEC > ; # [doc = "Field `INT_EVENT2_MIS_MRXFIFOTRG` reader - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT2_MIS_MRXFIFOTRG_R = crate :: BitReader < INT_EVENT2_MIS_MRXFIFOTRG_A > ; # [doc = "Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_MIS_MRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT2_MIS_MRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_MIS_MRXFIFOTRG_SET = 1 , } impl From < INT_EVENT2_MIS_MRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_MIS_MRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_MIS_MRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_MIS_MRXFIFOTRG_A { match self . bits { false => INT_EVENT2_MIS_MRXFIFOTRG_A :: INT_EVENT2_MIS_MRXFIFOTRG_CLR , true => INT_EVENT2_MIS_MRXFIFOTRG_A :: INT_EVENT2_MIS_MRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_mis_mrxfifotrg_clr (& self) -> bool { * self == INT_EVENT2_MIS_MRXFIFOTRG_A :: INT_EVENT2_MIS_MRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_mis_mrxfifotrg_set (& self) -> bool { * self == INT_EVENT2_MIS_MRXFIFOTRG_A :: INT_EVENT2_MIS_MRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT2_MIS_MTXFIFOTRG` reader - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT2_MIS_MTXFIFOTRG_R = crate :: BitReader < INT_EVENT2_MIS_MTXFIFOTRG_A > ; # [doc = "Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_MIS_MTXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT2_MIS_MTXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_MIS_MTXFIFOTRG_SET = 1 , } impl From < INT_EVENT2_MIS_MTXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_MIS_MTXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_MIS_MTXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_MIS_MTXFIFOTRG_A { match self . bits { false => INT_EVENT2_MIS_MTXFIFOTRG_A :: INT_EVENT2_MIS_MTXFIFOTRG_CLR , true => INT_EVENT2_MIS_MTXFIFOTRG_A :: INT_EVENT2_MIS_MTXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_mis_mtxfifotrg_clr (& self) -> bool { * self == INT_EVENT2_MIS_MTXFIFOTRG_A :: INT_EVENT2_MIS_MTXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_mis_mtxfifotrg_set (& self) -> bool { * self == INT_EVENT2_MIS_MTXFIFOTRG_A :: INT_EVENT2_MIS_MTXFIFOTRG_SET } } # [doc = "Field `INT_EVENT2_MIS_SRXFIFOTRG` reader - Slave Receive FIFO Trigger"]
pub type INT_EVENT2_MIS_SRXFIFOTRG_R = crate :: BitReader < INT_EVENT2_MIS_SRXFIFOTRG_A > ; # [doc = "Slave Receive FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_MIS_SRXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT2_MIS_SRXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_MIS_SRXFIFOTRG_SET = 1 , } impl From < INT_EVENT2_MIS_SRXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_MIS_SRXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_MIS_SRXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_MIS_SRXFIFOTRG_A { match self . bits { false => INT_EVENT2_MIS_SRXFIFOTRG_A :: INT_EVENT2_MIS_SRXFIFOTRG_CLR , true => INT_EVENT2_MIS_SRXFIFOTRG_A :: INT_EVENT2_MIS_SRXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_mis_srxfifotrg_clr (& self) -> bool { * self == INT_EVENT2_MIS_SRXFIFOTRG_A :: INT_EVENT2_MIS_SRXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_mis_srxfifotrg_set (& self) -> bool { * self == INT_EVENT2_MIS_SRXFIFOTRG_A :: INT_EVENT2_MIS_SRXFIFOTRG_SET } } # [doc = "Field `INT_EVENT2_MIS_STXFIFOTRG` reader - Slave Transmit FIFO Trigger"]
pub type INT_EVENT2_MIS_STXFIFOTRG_R = crate :: BitReader < INT_EVENT2_MIS_STXFIFOTRG_A > ; # [doc = "Slave Transmit FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_MIS_STXFIFOTRG_A { # [doc = "0: CLR"]
INT_EVENT2_MIS_STXFIFOTRG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_MIS_STXFIFOTRG_SET = 1 , } impl From < INT_EVENT2_MIS_STXFIFOTRG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_MIS_STXFIFOTRG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_MIS_STXFIFOTRG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_MIS_STXFIFOTRG_A { match self . bits { false => INT_EVENT2_MIS_STXFIFOTRG_A :: INT_EVENT2_MIS_STXFIFOTRG_CLR , true => INT_EVENT2_MIS_STXFIFOTRG_A :: INT_EVENT2_MIS_STXFIFOTRG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_mis_stxfifotrg_clr (& self) -> bool { * self == INT_EVENT2_MIS_STXFIFOTRG_A :: INT_EVENT2_MIS_STXFIFOTRG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_mis_stxfifotrg_set (& self) -> bool { * self == INT_EVENT2_MIS_STXFIFOTRG_A :: INT_EVENT2_MIS_STXFIFOTRG_SET } } impl R { # [doc = "Bit 0 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
pub fn int_event2_mis_mrxfifotrg (& self) -> INT_EVENT2_MIS_MRXFIFOTRG_R { INT_EVENT2_MIS_MRXFIFOTRG_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
pub fn int_event2_mis_mtxfifotrg (& self) -> INT_EVENT2_MIS_MTXFIFOTRG_R { INT_EVENT2_MIS_MTXFIFOTRG_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Slave Receive FIFO Trigger"]
# [inline (always)]
pub fn int_event2_mis_srxfifotrg (& self) -> INT_EVENT2_MIS_SRXFIFOTRG_R { INT_EVENT2_MIS_SRXFIFOTRG_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Slave Transmit FIFO Trigger"]
# [inline (always)]
pub fn int_event2_mis_stxfifotrg (& self) -> INT_EVENT2_MIS_STXFIFOTRG_R { INT_EVENT2_MIS_STXFIFOTRG_R :: new (((self . bits >> 3) & 1) != 0) } } # [doc = "Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_MIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event2_mis::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT2_MIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT2_MIS to value 0"]
impl crate :: Resettable for INT_EVENT2_MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_ISET (w) register accessor: Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_iset`]
module"]
pub type INT_EVENT2_ISET = crate :: Reg < int_event2_iset :: INT_EVENT2_ISET_SPEC > ; # [doc = "Interrupt set"]
pub mod int_event2_iset { # [doc = "Register `INT_EVENT2_ISET` writer"]
pub type W = crate :: W < INT_EVENT2_ISET_SPEC > ; # [doc = "Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ISET_MRXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ISET_MRXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT2_ISET_MRXFIFOTRG_SET = 1 , } impl From < INT_EVENT2_ISET_MRXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ISET_MRXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ISET_MRXFIFOTRG` writer - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT2_ISET_MRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ISET_MRXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ISET_MRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iset_mrxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_MRXFIFOTRG_AW :: INT_EVENT2_ISET_MRXFIFOTRG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_iset_mrxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_MRXFIFOTRG_AW :: INT_EVENT2_ISET_MRXFIFOTRG_SET) } } # [doc = "Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ISET_MTXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ISET_MTXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT2_ISET_MTXFIFOTRG_SET = 1 , } impl From < INT_EVENT2_ISET_MTXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ISET_MTXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ISET_MTXFIFOTRG` writer - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT2_ISET_MTXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ISET_MTXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ISET_MTXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iset_mtxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_MTXFIFOTRG_AW :: INT_EVENT2_ISET_MTXFIFOTRG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_iset_mtxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_MTXFIFOTRG_AW :: INT_EVENT2_ISET_MTXFIFOTRG_SET) } } # [doc = "Slave Receive FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ISET_SRXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ISET_SRXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT2_ISET_SRXFIFOTRG_SET = 1 , } impl From < INT_EVENT2_ISET_SRXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ISET_SRXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ISET_SRXFIFOTRG` writer - Slave Receive FIFO Trigger"]
pub type INT_EVENT2_ISET_SRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ISET_SRXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ISET_SRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iset_srxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_SRXFIFOTRG_AW :: INT_EVENT2_ISET_SRXFIFOTRG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_iset_srxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_SRXFIFOTRG_AW :: INT_EVENT2_ISET_SRXFIFOTRG_SET) } } # [doc = "Slave Transmit FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ISET_STXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ISET_STXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT2_ISET_STXFIFOTRG_SET = 1 , } impl From < INT_EVENT2_ISET_STXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ISET_STXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ISET_STXFIFOTRG` writer - Slave Transmit FIFO Trigger"]
pub type INT_EVENT2_ISET_STXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ISET_STXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ISET_STXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iset_stxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_STXFIFOTRG_AW :: INT_EVENT2_ISET_STXFIFOTRG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_iset_stxfifotrg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_STXFIFOTRG_AW :: INT_EVENT2_ISET_STXFIFOTRG_SET) } } impl W { # [doc = "Bit 0 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event2_iset_mrxfifotrg (& mut self) -> INT_EVENT2_ISET_MRXFIFOTRG_W < INT_EVENT2_ISET_SPEC , 0 > { INT_EVENT2_ISET_MRXFIFOTRG_W :: new (self) } # [doc = "Bit 1 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event2_iset_mtxfifotrg (& mut self) -> INT_EVENT2_ISET_MTXFIFOTRG_W < INT_EVENT2_ISET_SPEC , 1 > { INT_EVENT2_ISET_MTXFIFOTRG_W :: new (self) } # [doc = "Bit 2 - Slave Receive FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event2_iset_srxfifotrg (& mut self) -> INT_EVENT2_ISET_SRXFIFOTRG_W < INT_EVENT2_ISET_SPEC , 2 > { INT_EVENT2_ISET_SRXFIFOTRG_W :: new (self) } # [doc = "Bit 3 - Slave Transmit FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event2_iset_stxfifotrg (& mut self) -> INT_EVENT2_ISET_STXFIFOTRG_W < INT_EVENT2_ISET_SPEC , 3 > { INT_EVENT2_ISET_STXFIFOTRG_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_ISET_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event2_iset::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT2_ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT2_ISET to value 0"]
impl crate :: Resettable for INT_EVENT2_ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_ICLR (w) register accessor: Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_iclr`]
module"]
pub type INT_EVENT2_ICLR = crate :: Reg < int_event2_iclr :: INT_EVENT2_ICLR_SPEC > ; # [doc = "Interrupt clear"]
pub mod int_event2_iclr { # [doc = "Register `INT_EVENT2_ICLR` writer"]
pub type W = crate :: W < INT_EVENT2_ICLR_SPEC > ; # [doc = "Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ICLR_MRXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ICLR_MRXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT2_ICLR_MRXFIFOTRG_CLR = 1 , } impl From < INT_EVENT2_ICLR_MRXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ICLR_MRXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ICLR_MRXFIFOTRG` writer - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
pub type INT_EVENT2_ICLR_MRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ICLR_MRXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ICLR_MRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iclr_mrxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_MRXFIFOTRG_AW :: INT_EVENT2_ICLR_MRXFIFOTRG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_iclr_mrxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_MRXFIFOTRG_AW :: INT_EVENT2_ICLR_MRXFIFOTRG_CLR) } } # [doc = "Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ICLR_MTXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ICLR_MTXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT2_ICLR_MTXFIFOTRG_CLR = 1 , } impl From < INT_EVENT2_ICLR_MTXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ICLR_MTXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ICLR_MTXFIFOTRG` writer - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
pub type INT_EVENT2_ICLR_MTXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ICLR_MTXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ICLR_MTXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iclr_mtxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_MTXFIFOTRG_AW :: INT_EVENT2_ICLR_MTXFIFOTRG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_iclr_mtxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_MTXFIFOTRG_AW :: INT_EVENT2_ICLR_MTXFIFOTRG_CLR) } } # [doc = "Slave Receive FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ICLR_SRXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ICLR_SRXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT2_ICLR_SRXFIFOTRG_CLR = 1 , } impl From < INT_EVENT2_ICLR_SRXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ICLR_SRXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ICLR_SRXFIFOTRG` writer - Slave Receive FIFO Trigger"]
pub type INT_EVENT2_ICLR_SRXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ICLR_SRXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ICLR_SRXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iclr_srxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_SRXFIFOTRG_AW :: INT_EVENT2_ICLR_SRXFIFOTRG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_iclr_srxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_SRXFIFOTRG_AW :: INT_EVENT2_ICLR_SRXFIFOTRG_CLR) } } # [doc = "Slave Transmit FIFO Trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ICLR_STXFIFOTRG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ICLR_STXFIFOTRG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT2_ICLR_STXFIFOTRG_CLR = 1 , } impl From < INT_EVENT2_ICLR_STXFIFOTRG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ICLR_STXFIFOTRG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ICLR_STXFIFOTRG` writer - Slave Transmit FIFO Trigger"]
pub type INT_EVENT2_ICLR_STXFIFOTRG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ICLR_STXFIFOTRG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ICLR_STXFIFOTRG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iclr_stxfifotrg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_STXFIFOTRG_AW :: INT_EVENT2_ICLR_STXFIFOTRG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_iclr_stxfifotrg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_STXFIFOTRG_AW :: INT_EVENT2_ICLR_STXFIFOTRG_CLR) } } impl W { # [doc = "Bit 0 - Master Receive FIFO Trigger Trigger when RX FIFO contains &amp;gt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event2_iclr_mrxfifotrg (& mut self) -> INT_EVENT2_ICLR_MRXFIFOTRG_W < INT_EVENT2_ICLR_SPEC , 0 > { INT_EVENT2_ICLR_MRXFIFOTRG_W :: new (self) } # [doc = "Bit 1 - Master Transmit FIFO Trigger Trigger when Transmit FIFO contains &amp;lt;= defined bytes"]
# [inline (always)]
# [must_use]
pub fn int_event2_iclr_mtxfifotrg (& mut self) -> INT_EVENT2_ICLR_MTXFIFOTRG_W < INT_EVENT2_ICLR_SPEC , 1 > { INT_EVENT2_ICLR_MTXFIFOTRG_W :: new (self) } # [doc = "Bit 2 - Slave Receive FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event2_iclr_srxfifotrg (& mut self) -> INT_EVENT2_ICLR_SRXFIFOTRG_W < INT_EVENT2_ICLR_SPEC , 2 > { INT_EVENT2_ICLR_SRXFIFOTRG_W :: new (self) } # [doc = "Bit 3 - Slave Transmit FIFO Trigger"]
# [inline (always)]
# [must_use]
pub fn int_event2_iclr_stxfifotrg (& mut self) -> INT_EVENT2_ICLR_STXFIFOTRG_W < INT_EVENT2_ICLR_SPEC , 3 > { INT_EVENT2_ICLR_STXFIFOTRG_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_ICLR_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event2_iclr::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT2_ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT2_ICLR to value 0"]
impl crate :: Resettable for INT_EVENT2_ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "EVT_MODE (rw) register accessor: Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`evt_mode::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@evt_mode`]
module"]
pub type EVT_MODE = crate :: Reg < evt_mode :: EVT_MODE_SPEC > ; # [doc = "Event Mode"]
pub mod evt_mode { # [doc = "Register `EVT_MODE` reader"]
pub type R = crate :: R < EVT_MODE_SPEC > ; # [doc = "Register `EVT_MODE` writer"]
pub type W = crate :: W < EVT_MODE_SPEC > ; # [doc = "Field `EVT_MODE_INT0_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT0\\]"]
pub type EVT_MODE_INT0_CFG_R = crate :: FieldReader < EVT_MODE_INT0_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT0\\]\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_INT0_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_INT0_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_INT0_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_INT0_CFG_HARDWARE = 2 , } impl From < EVT_MODE_INT0_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_INT0_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_INT0_CFG_A { type Ux = u8 ; } impl EVT_MODE_INT0_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_INT0_CFG_A > { match self . bits { 0 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_DISABLE) , 1 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_SOFTWARE) , 2 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_disable (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_software (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_hardware (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_HARDWARE } } # [doc = "Field `EVT_MODE_INT1_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT1\\]"]
pub type EVT_MODE_INT1_CFG_R = crate :: FieldReader < EVT_MODE_INT1_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT1\\]\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_INT1_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_INT1_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_INT1_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_INT1_CFG_HARDWARE = 2 , } impl From < EVT_MODE_INT1_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_INT1_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_INT1_CFG_A { type Ux = u8 ; } impl EVT_MODE_INT1_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_INT1_CFG_A > { match self . bits { 0 => Some (EVT_MODE_INT1_CFG_A :: EVT_MODE_INT1_CFG_DISABLE) , 1 => Some (EVT_MODE_INT1_CFG_A :: EVT_MODE_INT1_CFG_SOFTWARE) , 2 => Some (EVT_MODE_INT1_CFG_A :: EVT_MODE_INT1_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_int1_cfg_disable (& self) -> bool { * self == EVT_MODE_INT1_CFG_A :: EVT_MODE_INT1_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_int1_cfg_software (& self) -> bool { * self == EVT_MODE_INT1_CFG_A :: EVT_MODE_INT1_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_int1_cfg_hardware (& self) -> bool { * self == EVT_MODE_INT1_CFG_A :: EVT_MODE_INT1_CFG_HARDWARE } } # [doc = "Field `EVT_MODE_EVT2_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT2\\]"]
pub type EVT_MODE_EVT2_CFG_R = crate :: FieldReader < EVT_MODE_EVT2_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT2\\]\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_EVT2_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_EVT2_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_EVT2_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_EVT2_CFG_HARDWARE = 2 , } impl From < EVT_MODE_EVT2_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_EVT2_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_EVT2_CFG_A { type Ux = u8 ; } impl EVT_MODE_EVT2_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_EVT2_CFG_A > { match self . bits { 0 => Some (EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_DISABLE) , 1 => Some (EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_SOFTWARE) , 2 => Some (EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_evt2_cfg_disable (& self) -> bool { * self == EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_evt2_cfg_software (& self) -> bool { * self == EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_evt2_cfg_hardware (& self) -> bool { * self == EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_HARDWARE } } impl R { # [doc = "Bits 0:1 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT0\\]"]
# [inline (always)]
pub fn evt_mode_int0_cfg (& self) -> EVT_MODE_INT0_CFG_R { EVT_MODE_INT0_CFG_R :: new ((self . bits & 3) as u8) } # [doc = "Bits 2:3 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT1\\]"]
# [inline (always)]
pub fn evt_mode_int1_cfg (& self) -> EVT_MODE_INT1_CFG_R { EVT_MODE_INT1_CFG_R :: new (((self . bits >> 2) & 3) as u8) } # [doc = "Bits 4:5 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT2\\]"]
# [inline (always)]
pub fn evt_mode_evt2_cfg (& self) -> EVT_MODE_EVT2_CFG_R { EVT_MODE_EVT2_CFG_R :: new (((self . bits >> 4) & 3) as u8) } } impl W { # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`evt_mode::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct EVT_MODE_SPEC ; impl crate :: RegisterSpec for EVT_MODE_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`evt_mode::R`](R) reader structure"]
impl crate :: Readable for EVT_MODE_SPEC { } # [doc = "`write(|w| ..)` method takes [`evt_mode::W`](W) writer structure"]
impl crate :: Writable for EVT_MODE_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets EVT_MODE to value 0"]
impl crate :: Resettable for EVT_MODE_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DESC (r) register accessor: Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@desc`]
module"]
pub type DESC = crate :: Reg < desc :: DESC_SPEC > ; # [doc = "Module Description"]
pub mod desc { # [doc = "Register `DESC` reader"]
pub type R = crate :: R < DESC_SPEC > ; # [doc = "Field `DESC_MINREV` reader - Minor rev of the IP"]
pub type DESC_MINREV_R = crate :: FieldReader ; # [doc = "Field `DESC_MAJREV` reader - Major rev of the IP"]
pub type DESC_MAJREV_R = crate :: FieldReader ; # [doc = "Field `DESC_INSTNUM` reader - Instance Number within the device. This will be a parameter to the RTL for modules that can have multiple instances"]
pub type DESC_INSTNUM_R = crate :: FieldReader ; # [doc = "Field `DESC_FEATUREVER` reader - Feature Set for the module *instance*"]
pub type DESC_FEATUREVER_R = crate :: FieldReader ; # [doc = "Field `DESC_MODULEID` reader - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
pub type DESC_MODULEID_R = crate :: FieldReader < u16 > ; impl R { # [doc = "Bits 0:3 - Minor rev of the IP"]
# [inline (always)]
pub fn desc_minrev (& self) -> DESC_MINREV_R { DESC_MINREV_R :: new ((self . bits & 0x0f) as u8) } # [doc = "Bits 4:7 - Major rev of the IP"]
# [inline (always)]
pub fn desc_majrev (& self) -> DESC_MAJREV_R { DESC_MAJREV_R :: new (((self . bits >> 4) & 0x0f) as u8) } # [doc = "Bits 8:11 - Instance Number within the device. This will be a parameter to the RTL for modules that can have multiple instances"]
# [inline (always)]
pub fn desc_instnum (& self) -> DESC_INSTNUM_R { DESC_INSTNUM_R :: new (((self . bits >> 8) & 0x0f) as u8) } # [doc = "Bits 12:15 - Feature Set for the module *instance*"]
# [inline (always)]
pub fn desc_featurever (& self) -> DESC_FEATUREVER_R { DESC_FEATUREVER_R :: new (((self . bits >> 12) & 0x0f) as u8) } # [doc = "Bits 16:31 - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
# [inline (always)]
pub fn desc_moduleid (& self) -> DESC_MODULEID_R { DESC_MODULEID_R :: new (((self . bits >> 16) & 0xffff) as u16) } } # [doc = "Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DESC_SPEC ; impl crate :: RegisterSpec for DESC_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`desc::R`](R) reader structure"]
impl crate :: Readable for DESC_SPEC { } # [doc = "`reset()` method sets DESC to value 0"]
impl crate :: Resettable for DESC_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "GFCTL (rw) register accessor: I2C Glitch Filter Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gfctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`gfctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gfctl`]
module"]
pub type GFCTL = crate :: Reg < gfctl :: GFCTL_SPEC > ; # [doc = "I2C Glitch Filter Control"]
pub mod gfctl { # [doc = "Register `GFCTL` reader"]
pub type R = crate :: R < GFCTL_SPEC > ; # [doc = "Register `GFCTL` writer"]
pub type W = crate :: W < GFCTL_SPEC > ; # [doc = "Field `GFCTL_DGFSEL` reader - Glitch Suppression Pulse Width This field controls the pulse width select for glitch suppression on the SCL and SDA lines. The following values are the glitch suppression values in terms of functional clocks. (Core Domain only)"]
pub type GFCTL_DGFSEL_R = crate :: FieldReader < GFCTL_DGFSEL_A > ; # [doc = "Glitch Suppression Pulse Width This field controls the pulse width select for glitch suppression on the SCL and SDA lines. The following values are the glitch suppression values in terms of functional clocks. (Core Domain only)\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum GFCTL_DGFSEL_A { # [doc = "0: DISABLED"]
GFCTL_DGFSEL_DISABLED = 0 , # [doc = "1: CLK_1"]
GFCTL_DGFSEL_CLK_1 = 1 , # [doc = "2: CLK_2"]
GFCTL_DGFSEL_CLK_2 = 2 , # [doc = "3: CLK_3"]
GFCTL_DGFSEL_CLK_3 = 3 , # [doc = "4: CLK_4"]
GFCTL_DGFSEL_CLK_4 = 4 , # [doc = "5: CLK_8"]
GFCTL_DGFSEL_CLK_8 = 5 , # [doc = "6: CLK_16"]
GFCTL_DGFSEL_CLK_16 = 6 , # [doc = "7: CLK_31"]
GFCTL_DGFSEL_CLK_31 = 7 , } impl From < GFCTL_DGFSEL_A > for u8 { # [inline (always)]
fn from (variant : GFCTL_DGFSEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for GFCTL_DGFSEL_A { type Ux = u8 ; } impl GFCTL_DGFSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> GFCTL_DGFSEL_A { match self . bits { 0 => GFCTL_DGFSEL_A :: GFCTL_DGFSEL_DISABLED , 1 => GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_1 , 2 => GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_2 , 3 => GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_3 , 4 => GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_4 , 5 => GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_8 , 6 => GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_16 , 7 => GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_31 , _ => unreachable ! () , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_gfctl_dgfsel_disabled (& self) -> bool { * self == GFCTL_DGFSEL_A :: GFCTL_DGFSEL_DISABLED } # [doc = "CLK_1"]
# [inline (always)]
pub fn is_gfctl_dgfsel_clk_1 (& self) -> bool { * self == GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_1 } # [doc = "CLK_2"]
# [inline (always)]
pub fn is_gfctl_dgfsel_clk_2 (& self) -> bool { * self == GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_2 } # [doc = "CLK_3"]
# [inline (always)]
pub fn is_gfctl_dgfsel_clk_3 (& self) -> bool { * self == GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_3 } # [doc = "CLK_4"]
# [inline (always)]
pub fn is_gfctl_dgfsel_clk_4 (& self) -> bool { * self == GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_4 } # [doc = "CLK_8"]
# [inline (always)]
pub fn is_gfctl_dgfsel_clk_8 (& self) -> bool { * self == GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_8 } # [doc = "CLK_16"]
# [inline (always)]
pub fn is_gfctl_dgfsel_clk_16 (& self) -> bool { * self == GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_16 } # [doc = "CLK_31"]
# [inline (always)]
pub fn is_gfctl_dgfsel_clk_31 (& self) -> bool { * self == GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_31 } } # [doc = "Field `GFCTL_DGFSEL` writer - Glitch Suppression Pulse Width This field controls the pulse width select for glitch suppression on the SCL and SDA lines. The following values are the glitch suppression values in terms of functional clocks. (Core Domain only)"]
pub type GFCTL_DGFSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 3 , O , GFCTL_DGFSEL_A > ; impl < 'a , REG , const O : u8 > GFCTL_DGFSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLED"]
# [inline (always)]
pub fn gfctl_dgfsel_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_DGFSEL_A :: GFCTL_DGFSEL_DISABLED) } # [doc = "CLK_1"]
# [inline (always)]
pub fn gfctl_dgfsel_clk_1 (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_1) } # [doc = "CLK_2"]
# [inline (always)]
pub fn gfctl_dgfsel_clk_2 (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_2) } # [doc = "CLK_3"]
# [inline (always)]
pub fn gfctl_dgfsel_clk_3 (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_3) } # [doc = "CLK_4"]
# [inline (always)]
pub fn gfctl_dgfsel_clk_4 (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_4) } # [doc = "CLK_8"]
# [inline (always)]
pub fn gfctl_dgfsel_clk_8 (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_8) } # [doc = "CLK_16"]
# [inline (always)]
pub fn gfctl_dgfsel_clk_16 (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_16) } # [doc = "CLK_31"]
# [inline (always)]
pub fn gfctl_dgfsel_clk_31 (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_DGFSEL_A :: GFCTL_DGFSEL_CLK_31) } } # [doc = "Field `GFCTL_AGFEN` reader - Analog Glitch Suppression Enable"]
pub type GFCTL_AGFEN_R = crate :: BitReader < GFCTL_AGFEN_A > ; # [doc = "Analog Glitch Suppression Enable\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum GFCTL_AGFEN_A { # [doc = "0: DISABLE"]
GFCTL_AGFEN_DISABLE = 0 , # [doc = "1: ENABLE"]
GFCTL_AGFEN_ENABLE = 1 , } impl From < GFCTL_AGFEN_A > for bool { # [inline (always)]
fn from (variant : GFCTL_AGFEN_A) -> Self { variant as u8 != 0 } } impl GFCTL_AGFEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> GFCTL_AGFEN_A { match self . bits { false => GFCTL_AGFEN_A :: GFCTL_AGFEN_DISABLE , true => GFCTL_AGFEN_A :: GFCTL_AGFEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_gfctl_agfen_disable (& self) -> bool { * self == GFCTL_AGFEN_A :: GFCTL_AGFEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_gfctl_agfen_enable (& self) -> bool { * self == GFCTL_AGFEN_A :: GFCTL_AGFEN_ENABLE } } # [doc = "Field `GFCTL_AGFEN` writer - Analog Glitch Suppression Enable"]
pub type GFCTL_AGFEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , GFCTL_AGFEN_A > ; impl < 'a , REG , const O : u8 > GFCTL_AGFEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn gfctl_agfen_disable (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_AGFEN_A :: GFCTL_AGFEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn gfctl_agfen_enable (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_AGFEN_A :: GFCTL_AGFEN_ENABLE) } } # [doc = "Field `GFCTL_AGFSEL` reader - Analog Glitch Suppression Pulse Width This field controls the pulse width select for the analog glitch suppression on SCL and SDA lines. See device datasheet for exact values. (ULP I2C only)"]
pub type GFCTL_AGFSEL_R = crate :: FieldReader < GFCTL_AGFSEL_A > ; # [doc = "Analog Glitch Suppression Pulse Width This field controls the pulse width select for the analog glitch suppression on SCL and SDA lines. See device datasheet for exact values. (ULP I2C only)\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum GFCTL_AGFSEL_A { # [doc = "0: AGLIT_5"]
GFCTL_AGFSEL_AGLIT_5 = 0 , # [doc = "1: AGLIT_10"]
GFCTL_AGFSEL_AGLIT_10 = 1 , # [doc = "2: AGLIT_25"]
GFCTL_AGFSEL_AGLIT_25 = 2 , # [doc = "3: AGLIT_50"]
GFCTL_AGFSEL_AGLIT_50 = 3 , } impl From < GFCTL_AGFSEL_A > for u8 { # [inline (always)]
fn from (variant : GFCTL_AGFSEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for GFCTL_AGFSEL_A { type Ux = u8 ; } impl GFCTL_AGFSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> GFCTL_AGFSEL_A { match self . bits { 0 => GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_5 , 1 => GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_10 , 2 => GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_25 , 3 => GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_50 , _ => unreachable ! () , } } # [doc = "AGLIT_5"]
# [inline (always)]
pub fn is_gfctl_agfsel_aglit_5 (& self) -> bool { * self == GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_5 } # [doc = "AGLIT_10"]
# [inline (always)]
pub fn is_gfctl_agfsel_aglit_10 (& self) -> bool { * self == GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_10 } # [doc = "AGLIT_25"]
# [inline (always)]
pub fn is_gfctl_agfsel_aglit_25 (& self) -> bool { * self == GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_25 } # [doc = "AGLIT_50"]
# [inline (always)]
pub fn is_gfctl_agfsel_aglit_50 (& self) -> bool { * self == GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_50 } } # [doc = "Field `GFCTL_AGFSEL` writer - Analog Glitch Suppression Pulse Width This field controls the pulse width select for the analog glitch suppression on SCL and SDA lines. See device datasheet for exact values. (ULP I2C only)"]
pub type GFCTL_AGFSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , GFCTL_AGFSEL_A > ; impl < 'a , REG , const O : u8 > GFCTL_AGFSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "AGLIT_5"]
# [inline (always)]
pub fn gfctl_agfsel_aglit_5 (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_5) } # [doc = "AGLIT_10"]
# [inline (always)]
pub fn gfctl_agfsel_aglit_10 (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_10) } # [doc = "AGLIT_25"]
# [inline (always)]
pub fn gfctl_agfsel_aglit_25 (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_25) } # [doc = "AGLIT_50"]
# [inline (always)]
pub fn gfctl_agfsel_aglit_50 (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_AGFSEL_A :: GFCTL_AGFSEL_AGLIT_50) } } # [doc = "Field `GFCTL_CHAIN` reader - Analog and digital noise filters chaining enable."]
pub type GFCTL_CHAIN_R = crate :: BitReader < GFCTL_CHAIN_A > ; # [doc = "Analog and digital noise filters chaining enable.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum GFCTL_CHAIN_A { # [doc = "0: DISABLE"]
GFCTL_CHAIN_DISABLE = 0 , # [doc = "1: ENABLE"]
GFCTL_CHAIN_ENABLE = 1 , } impl From < GFCTL_CHAIN_A > for bool { # [inline (always)]
fn from (variant : GFCTL_CHAIN_A) -> Self { variant as u8 != 0 } } impl GFCTL_CHAIN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> GFCTL_CHAIN_A { match self . bits { false => GFCTL_CHAIN_A :: GFCTL_CHAIN_DISABLE , true => GFCTL_CHAIN_A :: GFCTL_CHAIN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_gfctl_chain_disable (& self) -> bool { * self == GFCTL_CHAIN_A :: GFCTL_CHAIN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_gfctl_chain_enable (& self) -> bool { * self == GFCTL_CHAIN_A :: GFCTL_CHAIN_ENABLE } } # [doc = "Field `GFCTL_CHAIN` writer - Analog and digital noise filters chaining enable."]
pub type GFCTL_CHAIN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , GFCTL_CHAIN_A > ; impl < 'a , REG , const O : u8 > GFCTL_CHAIN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn gfctl_chain_disable (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_CHAIN_A :: GFCTL_CHAIN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn gfctl_chain_enable (self) -> & 'a mut crate :: W < REG > { self . variant (GFCTL_CHAIN_A :: GFCTL_CHAIN_ENABLE) } } impl R { # [doc = "Bits 0:2 - Glitch Suppression Pulse Width This field controls the pulse width select for glitch suppression on the SCL and SDA lines. The following values are the glitch suppression values in terms of functional clocks. (Core Domain only)"]
# [inline (always)]
pub fn gfctl_dgfsel (& self) -> GFCTL_DGFSEL_R { GFCTL_DGFSEL_R :: new ((self . bits & 7) as u8) } # [doc = "Bit 8 - Analog Glitch Suppression Enable"]
# [inline (always)]
pub fn gfctl_agfen (& self) -> GFCTL_AGFEN_R { GFCTL_AGFEN_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bits 9:10 - Analog Glitch Suppression Pulse Width This field controls the pulse width select for the analog glitch suppression on SCL and SDA lines. See device datasheet for exact values. (ULP I2C only)"]
# [inline (always)]
pub fn gfctl_agfsel (& self) -> GFCTL_AGFSEL_R { GFCTL_AGFSEL_R :: new (((self . bits >> 9) & 3) as u8) } # [doc = "Bit 11 - Analog and digital noise filters chaining enable."]
# [inline (always)]
pub fn gfctl_chain (& self) -> GFCTL_CHAIN_R { GFCTL_CHAIN_R :: new (((self . bits >> 11) & 1) != 0) } } impl W { # [doc = "Bits 0:2 - Glitch Suppression Pulse Width This field controls the pulse width select for glitch suppression on the SCL and SDA lines. The following values are the glitch suppression values in terms of functional clocks. (Core Domain only)"]
# [inline (always)]
# [must_use]
pub fn gfctl_dgfsel (& mut self) -> GFCTL_DGFSEL_W < GFCTL_SPEC , 0 > { GFCTL_DGFSEL_W :: new (self) } # [doc = "Bit 8 - Analog Glitch Suppression Enable"]
# [inline (always)]
# [must_use]
pub fn gfctl_agfen (& mut self) -> GFCTL_AGFEN_W < GFCTL_SPEC , 8 > { GFCTL_AGFEN_W :: new (self) } # [doc = "Bits 9:10 - Analog Glitch Suppression Pulse Width This field controls the pulse width select for the analog glitch suppression on SCL and SDA lines. See device datasheet for exact values. (ULP I2C only)"]
# [inline (always)]
# [must_use]
pub fn gfctl_agfsel (& mut self) -> GFCTL_AGFSEL_W < GFCTL_SPEC , 9 > { GFCTL_AGFSEL_W :: new (self) } # [doc = "Bit 11 - Analog and digital noise filters chaining enable."]
# [inline (always)]
# [must_use]
pub fn gfctl_chain (& mut self) -> GFCTL_CHAIN_W < GFCTL_SPEC , 11 > { GFCTL_CHAIN_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "I2C Glitch Filter Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gfctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`gfctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct GFCTL_SPEC ; impl crate :: RegisterSpec for GFCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`gfctl::R`](R) reader structure"]
impl crate :: Readable for GFCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`gfctl::W`](W) writer structure"]
impl crate :: Writable for GFCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets GFCTL to value 0"]
impl crate :: Resettable for GFCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "TIMEOUT_CTL (rw) register accessor: I2C Timeout Count Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`timeout_ctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`timeout_ctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@timeout_ctl`]
module"]
pub type TIMEOUT_CTL = crate :: Reg < timeout_ctl :: TIMEOUT_CTL_SPEC > ; # [doc = "I2C Timeout Count Control Register"]
pub mod timeout_ctl { # [doc = "Register `TIMEOUT_CTL` reader"]
pub type R = crate :: R < TIMEOUT_CTL_SPEC > ; # [doc = "Register `TIMEOUT_CTL` writer"]
pub type W = crate :: W < TIMEOUT_CTL_SPEC > ; # [doc = "Field `TIMEOUT_CTL_TCNTLA` reader - Timeout counter A load value Counter A is used for SCL low detection. This field contains the upper 8 bits of a 12-bit pre-load value for the Timeout A count. NOTE: The value of CNTLA must be greater than 1h. Each count is equal to 520 times the timeout period of functional clock. For example, with 8MHz functional clock and a 100KHz operating I2C clock, one timeout period will be equal to (1 / 8MHz) * 520 or 65 us."]
pub type TIMEOUT_CTL_TCNTLA_R = crate :: FieldReader ; # [doc = "Field `TIMEOUT_CTL_TCNTLA` writer - Timeout counter A load value Counter A is used for SCL low detection. This field contains the upper 8 bits of a 12-bit pre-load value for the Timeout A count. NOTE: The value of CNTLA must be greater than 1h. Each count is equal to 520 times the timeout period of functional clock. For example, with 8MHz functional clock and a 100KHz operating I2C clock, one timeout period will be equal to (1 / 8MHz) * 520 or 65 us."]
pub type TIMEOUT_CTL_TCNTLA_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O > ; # [doc = "Field `TIMEOUT_CTL_TCNTAEN` reader - Timeout Counter A Enable"]
pub type TIMEOUT_CTL_TCNTAEN_R = crate :: BitReader < TIMEOUT_CTL_TCNTAEN_A > ; # [doc = "Timeout Counter A Enable\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum TIMEOUT_CTL_TCNTAEN_A { # [doc = "0: DISABLE"]
TIMEOUT_CTL_TCNTAEN_DISABLE = 0 , # [doc = "1: ENABLE"]
TIMEOUT_CTL_TCNTAEN_ENABLE = 1 , } impl From < TIMEOUT_CTL_TCNTAEN_A > for bool { # [inline (always)]
fn from (variant : TIMEOUT_CTL_TCNTAEN_A) -> Self { variant as u8 != 0 } } impl TIMEOUT_CTL_TCNTAEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> TIMEOUT_CTL_TCNTAEN_A { match self . bits { false => TIMEOUT_CTL_TCNTAEN_A :: TIMEOUT_CTL_TCNTAEN_DISABLE , true => TIMEOUT_CTL_TCNTAEN_A :: TIMEOUT_CTL_TCNTAEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_timeout_ctl_tcntaen_disable (& self) -> bool { * self == TIMEOUT_CTL_TCNTAEN_A :: TIMEOUT_CTL_TCNTAEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_timeout_ctl_tcntaen_enable (& self) -> bool { * self == TIMEOUT_CTL_TCNTAEN_A :: TIMEOUT_CTL_TCNTAEN_ENABLE } } # [doc = "Field `TIMEOUT_CTL_TCNTAEN` writer - Timeout Counter A Enable"]
pub type TIMEOUT_CTL_TCNTAEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , TIMEOUT_CTL_TCNTAEN_A > ; impl < 'a , REG , const O : u8 > TIMEOUT_CTL_TCNTAEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn timeout_ctl_tcntaen_disable (self) -> & 'a mut crate :: W < REG > { self . variant (TIMEOUT_CTL_TCNTAEN_A :: TIMEOUT_CTL_TCNTAEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn timeout_ctl_tcntaen_enable (self) -> & 'a mut crate :: W < REG > { self . variant (TIMEOUT_CTL_TCNTAEN_A :: TIMEOUT_CTL_TCNTAEN_ENABLE) } } # [doc = "Field `TIMEOUT_CTL_TCNTLB` reader - Timeout Count B Load: Counter B is used for SCL High Detection. This field contains the upper 8 bits of a 12-bit pre-load value for the Timeout B count. NOTE: The value of CNTLB must be greater than 1h. Each count is equal to 1* clock period. For example, with 10MHz functional clock one timeout period will be equal to1*100ns."]
pub type TIMEOUT_CTL_TCNTLB_R = crate :: FieldReader ; # [doc = "Field `TIMEOUT_CTL_TCNTLB` writer - Timeout Count B Load: Counter B is used for SCL High Detection. This field contains the upper 8 bits of a 12-bit pre-load value for the Timeout B count. NOTE: The value of CNTLB must be greater than 1h. Each count is equal to 1* clock period. For example, with 10MHz functional clock one timeout period will be equal to1*100ns."]
pub type TIMEOUT_CTL_TCNTLB_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O > ; # [doc = "Field `TIMEOUT_CTL_TCNTBEN` reader - Timeout Counter B Enable"]
pub type TIMEOUT_CTL_TCNTBEN_R = crate :: BitReader < TIMEOUT_CTL_TCNTBEN_A > ; # [doc = "Timeout Counter B Enable\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum TIMEOUT_CTL_TCNTBEN_A { # [doc = "0: DISABLE"]
TIMEOUT_CTL_TCNTBEN_DISABLE = 0 , # [doc = "1: ENABLE"]
TIMEOUT_CTL_TCNTBEN_ENABLE = 1 , } impl From < TIMEOUT_CTL_TCNTBEN_A > for bool { # [inline (always)]
fn from (variant : TIMEOUT_CTL_TCNTBEN_A) -> Self { variant as u8 != 0 } } impl TIMEOUT_CTL_TCNTBEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> TIMEOUT_CTL_TCNTBEN_A { match self . bits { false => TIMEOUT_CTL_TCNTBEN_A :: TIMEOUT_CTL_TCNTBEN_DISABLE , true => TIMEOUT_CTL_TCNTBEN_A :: TIMEOUT_CTL_TCNTBEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_timeout_ctl_tcntben_disable (& self) -> bool { * self == TIMEOUT_CTL_TCNTBEN_A :: TIMEOUT_CTL_TCNTBEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_timeout_ctl_tcntben_enable (& self) -> bool { * self == TIMEOUT_CTL_TCNTBEN_A :: TIMEOUT_CTL_TCNTBEN_ENABLE } } # [doc = "Field `TIMEOUT_CTL_TCNTBEN` writer - Timeout Counter B Enable"]
pub type TIMEOUT_CTL_TCNTBEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , TIMEOUT_CTL_TCNTBEN_A > ; impl < 'a , REG , const O : u8 > TIMEOUT_CTL_TCNTBEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn timeout_ctl_tcntben_disable (self) -> & 'a mut crate :: W < REG > { self . variant (TIMEOUT_CTL_TCNTBEN_A :: TIMEOUT_CTL_TCNTBEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn timeout_ctl_tcntben_enable (self) -> & 'a mut crate :: W < REG > { self . variant (TIMEOUT_CTL_TCNTBEN_A :: TIMEOUT_CTL_TCNTBEN_ENABLE) } } impl R { # [doc = "Bits 0:7 - Timeout counter A load value Counter A is used for SCL low detection. This field contains the upper 8 bits of a 12-bit pre-load value for the Timeout A count. NOTE: The value of CNTLA must be greater than 1h. Each count is equal to 520 times the timeout period of functional clock. For example, with 8MHz functional clock and a 100KHz operating I2C clock, one timeout period will be equal to (1 / 8MHz) * 520 or 65 us."]
# [inline (always)]
pub fn timeout_ctl_tcntla (& self) -> TIMEOUT_CTL_TCNTLA_R { TIMEOUT_CTL_TCNTLA_R :: new ((self . bits & 0xff) as u8) } # [doc = "Bit 15 - Timeout Counter A Enable"]
# [inline (always)]
pub fn timeout_ctl_tcntaen (& self) -> TIMEOUT_CTL_TCNTAEN_R { TIMEOUT_CTL_TCNTAEN_R :: new (((self . bits >> 15) & 1) != 0) } # [doc = "Bits 16:23 - Timeout Count B Load: Counter B is used for SCL High Detection. This field contains the upper 8 bits of a 12-bit pre-load value for the Timeout B count. NOTE: The value of CNTLB must be greater than 1h. Each count is equal to 1* clock period. For example, with 10MHz functional clock one timeout period will be equal to1*100ns."]
# [inline (always)]
pub fn timeout_ctl_tcntlb (& self) -> TIMEOUT_CTL_TCNTLB_R { TIMEOUT_CTL_TCNTLB_R :: new (((self . bits >> 16) & 0xff) as u8) } # [doc = "Bit 31 - Timeout Counter B Enable"]
# [inline (always)]
pub fn timeout_ctl_tcntben (& self) -> TIMEOUT_CTL_TCNTBEN_R { TIMEOUT_CTL_TCNTBEN_R :: new (((self . bits >> 31) & 1) != 0) } } impl W { # [doc = "Bits 0:7 - Timeout counter A load value Counter A is used for SCL low detection. This field contains the upper 8 bits of a 12-bit pre-load value for the Timeout A count. NOTE: The value of CNTLA must be greater than 1h. Each count is equal to 520 times the timeout period of functional clock. For example, with 8MHz functional clock and a 100KHz operating I2C clock, one timeout period will be equal to (1 / 8MHz) * 520 or 65 us."]
# [inline (always)]
# [must_use]
pub fn timeout_ctl_tcntla (& mut self) -> TIMEOUT_CTL_TCNTLA_W < TIMEOUT_CTL_SPEC , 0 > { TIMEOUT_CTL_TCNTLA_W :: new (self) } # [doc = "Bit 15 - Timeout Counter A Enable"]
# [inline (always)]
# [must_use]
pub fn timeout_ctl_tcntaen (& mut self) -> TIMEOUT_CTL_TCNTAEN_W < TIMEOUT_CTL_SPEC , 15 > { TIMEOUT_CTL_TCNTAEN_W :: new (self) } # [doc = "Bits 16:23 - Timeout Count B Load: Counter B is used for SCL High Detection. This field contains the upper 8 bits of a 12-bit pre-load value for the Timeout B count. NOTE: The value of CNTLB must be greater than 1h. Each count is equal to 1* clock period. For example, with 10MHz functional clock one timeout period will be equal to1*100ns."]
# [inline (always)]
# [must_use]
pub fn timeout_ctl_tcntlb (& mut self) -> TIMEOUT_CTL_TCNTLB_W < TIMEOUT_CTL_SPEC , 16 > { TIMEOUT_CTL_TCNTLB_W :: new (self) } # [doc = "Bit 31 - Timeout Counter B Enable"]
# [inline (always)]
# [must_use]
pub fn timeout_ctl_tcntben (& mut self) -> TIMEOUT_CTL_TCNTBEN_W < TIMEOUT_CTL_SPEC , 31 > { TIMEOUT_CTL_TCNTBEN_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "I2C Timeout Count Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`timeout_ctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`timeout_ctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct TIMEOUT_CTL_SPEC ; impl crate :: RegisterSpec for TIMEOUT_CTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`timeout_ctl::R`](R) reader structure"]
impl crate :: Readable for TIMEOUT_CTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`timeout_ctl::W`](W) writer structure"]
impl crate :: Writable for TIMEOUT_CTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets TIMEOUT_CTL to value 0x0002_0002"]
impl crate :: Resettable for TIMEOUT_CTL_SPEC { const RESET_VALUE : Self :: Ux = 0x0002_0002 ; } } # [doc = "TIMEOUT_CNT (r) register accessor: I2C Timeout Count Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`timeout_cnt::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@timeout_cnt`]
module"]
pub type TIMEOUT_CNT = crate :: Reg < timeout_cnt :: TIMEOUT_CNT_SPEC > ; # [doc = "I2C Timeout Count Register"]
pub mod timeout_cnt { # [doc = "Register `TIMEOUT_CNT` reader"]
pub type R = crate :: R < TIMEOUT_CNT_SPEC > ; # [doc = "Field `TIMEOUT_CNT_TCNTA` reader - Timeout Count A Current Count: This field contains the upper 8 bits of a 12-bit current counter for timeout counter A"]
pub type TIMEOUT_CNT_TCNTA_R = crate :: FieldReader ; # [doc = "Field `TIMEOUT_CNT_TCNTB` reader - Timeout Count B Current Count: This field contains the upper 8 bits of a 12-bit current counter for timeout counter B"]
pub type TIMEOUT_CNT_TCNTB_R = crate :: FieldReader ; impl R { # [doc = "Bits 0:7 - Timeout Count A Current Count: This field contains the upper 8 bits of a 12-bit current counter for timeout counter A"]
# [inline (always)]
pub fn timeout_cnt_tcnta (& self) -> TIMEOUT_CNT_TCNTA_R { TIMEOUT_CNT_TCNTA_R :: new ((self . bits & 0xff) as u8) } # [doc = "Bits 16:23 - Timeout Count B Current Count: This field contains the upper 8 bits of a 12-bit current counter for timeout counter B"]
# [inline (always)]
pub fn timeout_cnt_tcntb (& self) -> TIMEOUT_CNT_TCNTB_R { TIMEOUT_CNT_TCNTB_R :: new (((self . bits >> 16) & 0xff) as u8) } } # [doc = "I2C Timeout Count Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`timeout_cnt::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct TIMEOUT_CNT_SPEC ; impl crate :: RegisterSpec for TIMEOUT_CNT_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`timeout_cnt::R`](R) reader structure"]
impl crate :: Readable for TIMEOUT_CNT_SPEC { } # [doc = "`reset()` method sets TIMEOUT_CNT to value 0x0002_0002"]
impl crate :: Resettable for TIMEOUT_CNT_SPEC { const RESET_VALUE : Self :: Ux = 0x0002_0002 ; } } # [doc = "MSA (rw) register accessor: I2C Master Slave Address Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`msa::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`msa::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@msa`]
module"]
pub type MSA = crate :: Reg < msa :: MSA_SPEC > ; # [doc = "I2C Master Slave Address Register"]
pub mod msa { # [doc = "Register `MSA` reader"]
pub type R = crate :: R < MSA_SPEC > ; # [doc = "Register `MSA` writer"]
pub type W = crate :: W < MSA_SPEC > ; # [doc = "Field `MSA_DIR` reader - Receive/Send The DIR bit specifies if the next master operation is a Receive (High) or Transmit (Low). 0h = Transmit 1h = Receive"]
pub type MSA_DIR_R = crate :: BitReader < MSA_DIR_A > ; # [doc = "Receive/Send The DIR bit specifies if the next master operation is a Receive (High) or Transmit (Low). 0h = Transmit 1h = Receive\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MSA_DIR_A { # [doc = "0: TRANSMIT"]
MSA_DIR_TRANSMIT = 0 , # [doc = "1: RECEIVE"]
MSA_DIR_RECEIVE = 1 , } impl From < MSA_DIR_A > for bool { # [inline (always)]
fn from (variant : MSA_DIR_A) -> Self { variant as u8 != 0 } } impl MSA_DIR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MSA_DIR_A { match self . bits { false => MSA_DIR_A :: MSA_DIR_TRANSMIT , true => MSA_DIR_A :: MSA_DIR_RECEIVE , } } # [doc = "TRANSMIT"]
# [inline (always)]
pub fn is_msa_dir_transmit (& self) -> bool { * self == MSA_DIR_A :: MSA_DIR_TRANSMIT } # [doc = "RECEIVE"]
# [inline (always)]
pub fn is_msa_dir_receive (& self) -> bool { * self == MSA_DIR_A :: MSA_DIR_RECEIVE } } # [doc = "Field `MSA_DIR` writer - Receive/Send The DIR bit specifies if the next master operation is a Receive (High) or Transmit (Low). 0h = Transmit 1h = Receive"]
pub type MSA_DIR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MSA_DIR_A > ; impl < 'a , REG , const O : u8 > MSA_DIR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "TRANSMIT"]
# [inline (always)]
pub fn msa_dir_transmit (self) -> & 'a mut crate :: W < REG > { self . variant (MSA_DIR_A :: MSA_DIR_TRANSMIT) } # [doc = "RECEIVE"]
# [inline (always)]
pub fn msa_dir_receive (self) -> & 'a mut crate :: W < REG > { self . variant (MSA_DIR_A :: MSA_DIR_RECEIVE) } } # [doc = "Field `MSA_SADDR` reader - I2C Slave Address This field specifies bits A9 through A0 of the slave address. In 7-bit addressing mode as selected by MSA.MODE bit, the top 3 bits are don't care"]
pub type MSA_SADDR_R = crate :: FieldReader < u16 > ; # [doc = "Field `MSA_SADDR` writer - I2C Slave Address This field specifies bits A9 through A0 of the slave address. In 7-bit addressing mode as selected by MSA.MODE bit, the top 3 bits are don't care"]
pub type MSA_SADDR_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 10 , O , u16 > ; # [doc = "Field `MSA_MMODE` reader - This bit selects the adressing mode to be used in master mode When 0, 7-bit addressing is used. When 1, 10-bit addressing is used."]
pub type MSA_MMODE_R = crate :: BitReader < MSA_MMODE_A > ; # [doc = "This bit selects the adressing mode to be used in master mode When 0, 7-bit addressing is used. When 1, 10-bit addressing is used.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MSA_MMODE_A { # [doc = "0: MODE7"]
MSA_MMODE_MODE7 = 0 , # [doc = "1: MODE10"]
MSA_MMODE_MODE10 = 1 , } impl From < MSA_MMODE_A > for bool { # [inline (always)]
fn from (variant : MSA_MMODE_A) -> Self { variant as u8 != 0 } } impl MSA_MMODE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MSA_MMODE_A { match self . bits { false => MSA_MMODE_A :: MSA_MMODE_MODE7 , true => MSA_MMODE_A :: MSA_MMODE_MODE10 , } } # [doc = "MODE7"]
# [inline (always)]
pub fn is_msa_mmode_mode7 (& self) -> bool { * self == MSA_MMODE_A :: MSA_MMODE_MODE7 } # [doc = "MODE10"]
# [inline (always)]
pub fn is_msa_mmode_mode10 (& self) -> bool { * self == MSA_MMODE_A :: MSA_MMODE_MODE10 } } # [doc = "Field `MSA_MMODE` writer - This bit selects the adressing mode to be used in master mode When 0, 7-bit addressing is used. When 1, 10-bit addressing is used."]
pub type MSA_MMODE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MSA_MMODE_A > ; impl < 'a , REG , const O : u8 > MSA_MMODE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "MODE7"]
# [inline (always)]
pub fn msa_mmode_mode7 (self) -> & 'a mut crate :: W < REG > { self . variant (MSA_MMODE_A :: MSA_MMODE_MODE7) } # [doc = "MODE10"]
# [inline (always)]
pub fn msa_mmode_mode10 (self) -> & 'a mut crate :: W < REG > { self . variant (MSA_MMODE_A :: MSA_MMODE_MODE10) } } impl R { # [doc = "Bit 0 - Receive/Send The DIR bit specifies if the next master operation is a Receive (High) or Transmit (Low). 0h = Transmit 1h = Receive"]
# [inline (always)]
pub fn msa_dir (& self) -> MSA_DIR_R { MSA_DIR_R :: new ((self . bits & 1) != 0) } # [doc = "Bits 1:10 - I2C Slave Address This field specifies bits A9 through A0 of the slave address. In 7-bit addressing mode as selected by MSA.MODE bit, the top 3 bits are don't care"]
# [inline (always)]
pub fn msa_saddr (& self) -> MSA_SADDR_R { MSA_SADDR_R :: new (((self . bits >> 1) & 0x03ff) as u16) } # [doc = "Bit 15 - This bit selects the adressing mode to be used in master mode When 0, 7-bit addressing is used. When 1, 10-bit addressing is used."]
# [inline (always)]
pub fn msa_mmode (& self) -> MSA_MMODE_R { MSA_MMODE_R :: new (((self . bits >> 15) & 1) != 0) } } impl W { # [doc = "Bit 0 - Receive/Send The DIR bit specifies if the next master operation is a Receive (High) or Transmit (Low). 0h = Transmit 1h = Receive"]
# [inline (always)]
# [must_use]
pub fn msa_dir (& mut self) -> MSA_DIR_W < MSA_SPEC , 0 > { MSA_DIR_W :: new (self) } # [doc = "Bits 1:10 - I2C Slave Address This field specifies bits A9 through A0 of the slave address. In 7-bit addressing mode as selected by MSA.MODE bit, the top 3 bits are don't care"]
# [inline (always)]
# [must_use]
pub fn msa_saddr (& mut self) -> MSA_SADDR_W < MSA_SPEC , 1 > { MSA_SADDR_W :: new (self) } # [doc = "Bit 15 - This bit selects the adressing mode to be used in master mode When 0, 7-bit addressing is used. When 1, 10-bit addressing is used."]
# [inline (always)]
# [must_use]
pub fn msa_mmode (& mut self) -> MSA_MMODE_W < MSA_SPEC , 15 > { MSA_MMODE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "I2C Master Slave Address Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`msa::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`msa::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MSA_SPEC ; impl crate :: RegisterSpec for MSA_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`msa::R`](R) reader structure"]
impl crate :: Readable for MSA_SPEC { } # [doc = "`write(|w| ..)` method takes [`msa::W`](W) writer structure"]
impl crate :: Writable for MSA_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets MSA to value 0"]
impl crate :: Resettable for MSA_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "MCTR (rw) register accessor: I2C Master Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mctr::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mctr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mctr`]
module"]
pub type MCTR = crate :: Reg < mctr :: MCTR_SPEC > ; # [doc = "I2C Master Control Register"]
pub mod mctr { # [doc = "Register `MCTR` reader"]
pub type R = crate :: R < MCTR_SPEC > ; # [doc = "Register `MCTR` writer"]
pub type W = crate :: W < MCTR_SPEC > ; # [doc = "Field `MCTR_BURSTRUN` reader - I2C Master Enable and start transaction"]
pub type MCTR_BURSTRUN_R = crate :: BitReader < MCTR_BURSTRUN_A > ; # [doc = "I2C Master Enable and start transaction\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MCTR_BURSTRUN_A { # [doc = "0: DISABLE"]
MCTR_BURSTRUN_DISABLE = 0 , # [doc = "1: ENABLE"]
MCTR_BURSTRUN_ENABLE = 1 , } impl From < MCTR_BURSTRUN_A > for bool { # [inline (always)]
fn from (variant : MCTR_BURSTRUN_A) -> Self { variant as u8 != 0 } } impl MCTR_BURSTRUN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MCTR_BURSTRUN_A { match self . bits { false => MCTR_BURSTRUN_A :: MCTR_BURSTRUN_DISABLE , true => MCTR_BURSTRUN_A :: MCTR_BURSTRUN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_mctr_burstrun_disable (& self) -> bool { * self == MCTR_BURSTRUN_A :: MCTR_BURSTRUN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_mctr_burstrun_enable (& self) -> bool { * self == MCTR_BURSTRUN_A :: MCTR_BURSTRUN_ENABLE } } # [doc = "Field `MCTR_BURSTRUN` writer - I2C Master Enable and start transaction"]
pub type MCTR_BURSTRUN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MCTR_BURSTRUN_A > ; impl < 'a , REG , const O : u8 > MCTR_BURSTRUN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn mctr_burstrun_disable (self) -> & 'a mut crate :: W < REG > { self . variant (MCTR_BURSTRUN_A :: MCTR_BURSTRUN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn mctr_burstrun_enable (self) -> & 'a mut crate :: W < REG > { self . variant (MCTR_BURSTRUN_A :: MCTR_BURSTRUN_ENABLE) } } # [doc = "Field `MCTR_START` reader - Generate START"]
pub type MCTR_START_R = crate :: BitReader < MCTR_START_A > ; # [doc = "Generate START\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MCTR_START_A { # [doc = "0: DISABLE"]
MCTR_START_DISABLE = 0 , # [doc = "1: ENABLE"]
MCTR_START_ENABLE = 1 , } impl From < MCTR_START_A > for bool { # [inline (always)]
fn from (variant : MCTR_START_A) -> Self { variant as u8 != 0 } } impl MCTR_START_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MCTR_START_A { match self . bits { false => MCTR_START_A :: MCTR_START_DISABLE , true => MCTR_START_A :: MCTR_START_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_mctr_start_disable (& self) -> bool { * self == MCTR_START_A :: MCTR_START_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_mctr_start_enable (& self) -> bool { * self == MCTR_START_A :: MCTR_START_ENABLE } } # [doc = "Field `MCTR_START` writer - Generate START"]
pub type MCTR_START_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MCTR_START_A > ; impl < 'a , REG , const O : u8 > MCTR_START_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn mctr_start_disable (self) -> & 'a mut crate :: W < REG > { self . variant (MCTR_START_A :: MCTR_START_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn mctr_start_enable (self) -> & 'a mut crate :: W < REG > { self . variant (MCTR_START_A :: MCTR_START_ENABLE) } } # [doc = "Field `MCTR_STOP` reader - Generate STOP"]
pub type MCTR_STOP_R = crate :: BitReader < MCTR_STOP_A > ; # [doc = "Generate STOP\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MCTR_STOP_A { # [doc = "0: DISABLE"]
MCTR_STOP_DISABLE = 0 , # [doc = "1: ENABLE"]
MCTR_STOP_ENABLE = 1 , } impl From < MCTR_STOP_A > for bool { # [inline (always)]
fn from (variant : MCTR_STOP_A) -> Self { variant as u8 != 0 } } impl MCTR_STOP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MCTR_STOP_A { match self . bits { false => MCTR_STOP_A :: MCTR_STOP_DISABLE , true => MCTR_STOP_A :: MCTR_STOP_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_mctr_stop_disable (& self) -> bool { * self == MCTR_STOP_A :: MCTR_STOP_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_mctr_stop_enable (& self) -> bool { * self == MCTR_STOP_A :: MCTR_STOP_ENABLE } } # [doc = "Field `MCTR_STOP` writer - Generate STOP"]
pub type MCTR_STOP_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MCTR_STOP_A > ; impl < 'a , REG , const O : u8 > MCTR_STOP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn mctr_stop_disable (self) -> & 'a mut crate :: W < REG > { self . variant (MCTR_STOP_A :: MCTR_STOP_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn mctr_stop_enable (self) -> & 'a mut crate :: W < REG > { self . variant (MCTR_STOP_A :: MCTR_STOP_ENABLE) } } # [doc = "Field `MCTR_ACK` reader - Data Acknowledge Enable. Software needs to configure this bit to send the ACK or NACK. See field decoding in Table: MCTR Field decoding."]
pub type MCTR_ACK_R = crate :: BitReader < MCTR_ACK_A > ; # [doc = "Data Acknowledge Enable. Software needs to configure this bit to send the ACK or NACK. See field decoding in Table: MCTR Field decoding.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MCTR_ACK_A { # [doc = "0: DISABLE"]
MCTR_ACK_DISABLE = 0 , # [doc = "1: ENABLE"]
MCTR_ACK_ENABLE = 1 , } impl From < MCTR_ACK_A > for bool { # [inline (always)]
fn from (variant : MCTR_ACK_A) -> Self { variant as u8 != 0 } } impl MCTR_ACK_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MCTR_ACK_A { match self . bits { false => MCTR_ACK_A :: MCTR_ACK_DISABLE , true => MCTR_ACK_A :: MCTR_ACK_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_mctr_ack_disable (& self) -> bool { * self == MCTR_ACK_A :: MCTR_ACK_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_mctr_ack_enable (& self) -> bool { * self == MCTR_ACK_A :: MCTR_ACK_ENABLE } } # [doc = "Field `MCTR_ACK` writer - Data Acknowledge Enable. Software needs to configure this bit to send the ACK or NACK. See field decoding in Table: MCTR Field decoding."]
pub type MCTR_ACK_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MCTR_ACK_A > ; impl < 'a , REG , const O : u8 > MCTR_ACK_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn mctr_ack_disable (self) -> & 'a mut crate :: W < REG > { self . variant (MCTR_ACK_A :: MCTR_ACK_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn mctr_ack_enable (self) -> & 'a mut crate :: W < REG > { self . variant (MCTR_ACK_A :: MCTR_ACK_ENABLE) } } # [doc = "Field `MCTR_MACKOEN` reader - Master ACK overrride Enable"]
pub type MCTR_MACKOEN_R = crate :: BitReader < MCTR_MACKOEN_A > ; # [doc = "Master ACK overrride Enable\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MCTR_MACKOEN_A { # [doc = "0: DISABLE"]
MCTR_MACKOEN_DISABLE = 0 , # [doc = "1: ENABLE"]
MCTR_MACKOEN_ENABLE = 1 , } impl From < MCTR_MACKOEN_A > for bool { # [inline (always)]
fn from (variant : MCTR_MACKOEN_A) -> Self { variant as u8 != 0 } } impl MCTR_MACKOEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MCTR_MACKOEN_A { match self . bits { false => MCTR_MACKOEN_A :: MCTR_MACKOEN_DISABLE , true => MCTR_MACKOEN_A :: MCTR_MACKOEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_mctr_mackoen_disable (& self) -> bool { * self == MCTR_MACKOEN_A :: MCTR_MACKOEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_mctr_mackoen_enable (& self) -> bool { * self == MCTR_MACKOEN_A :: MCTR_MACKOEN_ENABLE } } # [doc = "Field `MCTR_MACKOEN` writer - Master ACK overrride Enable"]
pub type MCTR_MACKOEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MCTR_MACKOEN_A > ; impl < 'a , REG , const O : u8 > MCTR_MACKOEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn mctr_mackoen_disable (self) -> & 'a mut crate :: W < REG > { self . variant (MCTR_MACKOEN_A :: MCTR_MACKOEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn mctr_mackoen_enable (self) -> & 'a mut crate :: W < REG > { self . variant (MCTR_MACKOEN_A :: MCTR_MACKOEN_ENABLE) } } # [doc = "Field `MCTR_RD_ON_TXEMPTY` reader - Read on TX Empty"]
pub type MCTR_RD_ON_TXEMPTY_R = crate :: BitReader < MCTR_RD_ON_TXEMPTY_A > ; # [doc = "Read on TX Empty\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MCTR_RD_ON_TXEMPTY_A { # [doc = "0: DISABLE"]
MCTR_RD_ON_TXEMPTY_DISABLE = 0 , # [doc = "1: ENABLE"]
MCTR_RD_ON_TXEMPTY_ENABLE = 1 , } impl From < MCTR_RD_ON_TXEMPTY_A > for bool { # [inline (always)]
fn from (variant : MCTR_RD_ON_TXEMPTY_A) -> Self { variant as u8 != 0 } } impl MCTR_RD_ON_TXEMPTY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MCTR_RD_ON_TXEMPTY_A { match self . bits { false => MCTR_RD_ON_TXEMPTY_A :: MCTR_RD_ON_TXEMPTY_DISABLE , true => MCTR_RD_ON_TXEMPTY_A :: MCTR_RD_ON_TXEMPTY_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_mctr_rd_on_txempty_disable (& self) -> bool { * self == MCTR_RD_ON_TXEMPTY_A :: MCTR_RD_ON_TXEMPTY_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_mctr_rd_on_txempty_enable (& self) -> bool { * self == MCTR_RD_ON_TXEMPTY_A :: MCTR_RD_ON_TXEMPTY_ENABLE } } # [doc = "Field `MCTR_RD_ON_TXEMPTY` writer - Read on TX Empty"]
pub type MCTR_RD_ON_TXEMPTY_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MCTR_RD_ON_TXEMPTY_A > ; impl < 'a , REG , const O : u8 > MCTR_RD_ON_TXEMPTY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn mctr_rd_on_txempty_disable (self) -> & 'a mut crate :: W < REG > { self . variant (MCTR_RD_ON_TXEMPTY_A :: MCTR_RD_ON_TXEMPTY_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn mctr_rd_on_txempty_enable (self) -> & 'a mut crate :: W < REG > { self . variant (MCTR_RD_ON_TXEMPTY_A :: MCTR_RD_ON_TXEMPTY_ENABLE) } } # [doc = "Field `MCTR_MBLEN` reader - I2C transaction length This field contains the programmed length of bytes of the Transaction."]
pub type MCTR_MBLEN_R = crate :: FieldReader < u16 > ; # [doc = "Field `MCTR_MBLEN` writer - I2C transaction length This field contains the programmed length of bytes of the Transaction."]
pub type MCTR_MBLEN_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 12 , O , u16 > ; impl R { # [doc = "Bit 0 - I2C Master Enable and start transaction"]
# [inline (always)]
pub fn mctr_burstrun (& self) -> MCTR_BURSTRUN_R { MCTR_BURSTRUN_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Generate START"]
# [inline (always)]
pub fn mctr_start (& self) -> MCTR_START_R { MCTR_START_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Generate STOP"]
# [inline (always)]
pub fn mctr_stop (& self) -> MCTR_STOP_R { MCTR_STOP_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Data Acknowledge Enable. Software needs to configure this bit to send the ACK or NACK. See field decoding in Table: MCTR Field decoding."]
# [inline (always)]
pub fn mctr_ack (& self) -> MCTR_ACK_R { MCTR_ACK_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - Master ACK overrride Enable"]
# [inline (always)]
pub fn mctr_mackoen (& self) -> MCTR_MACKOEN_R { MCTR_MACKOEN_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Read on TX Empty"]
# [inline (always)]
pub fn mctr_rd_on_txempty (& self) -> MCTR_RD_ON_TXEMPTY_R { MCTR_RD_ON_TXEMPTY_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bits 16:27 - I2C transaction length This field contains the programmed length of bytes of the Transaction."]
# [inline (always)]
pub fn mctr_mblen (& self) -> MCTR_MBLEN_R { MCTR_MBLEN_R :: new (((self . bits >> 16) & 0x0fff) as u16) } } impl W { # [doc = "Bit 0 - I2C Master Enable and start transaction"]
# [inline (always)]
# [must_use]
pub fn mctr_burstrun (& mut self) -> MCTR_BURSTRUN_W < MCTR_SPEC , 0 > { MCTR_BURSTRUN_W :: new (self) } # [doc = "Bit 1 - Generate START"]
# [inline (always)]
# [must_use]
pub fn mctr_start (& mut self) -> MCTR_START_W < MCTR_SPEC , 1 > { MCTR_START_W :: new (self) } # [doc = "Bit 2 - Generate STOP"]
# [inline (always)]
# [must_use]
pub fn mctr_stop (& mut self) -> MCTR_STOP_W < MCTR_SPEC , 2 > { MCTR_STOP_W :: new (self) } # [doc = "Bit 3 - Data Acknowledge Enable. Software needs to configure this bit to send the ACK or NACK. See field decoding in Table: MCTR Field decoding."]
# [inline (always)]
# [must_use]
pub fn mctr_ack (& mut self) -> MCTR_ACK_W < MCTR_SPEC , 3 > { MCTR_ACK_W :: new (self) } # [doc = "Bit 4 - Master ACK overrride Enable"]
# [inline (always)]
# [must_use]
pub fn mctr_mackoen (& mut self) -> MCTR_MACKOEN_W < MCTR_SPEC , 4 > { MCTR_MACKOEN_W :: new (self) } # [doc = "Bit 5 - Read on TX Empty"]
# [inline (always)]
# [must_use]
pub fn mctr_rd_on_txempty (& mut self) -> MCTR_RD_ON_TXEMPTY_W < MCTR_SPEC , 5 > { MCTR_RD_ON_TXEMPTY_W :: new (self) } # [doc = "Bits 16:27 - I2C transaction length This field contains the programmed length of bytes of the Transaction."]
# [inline (always)]
# [must_use]
pub fn mctr_mblen (& mut self) -> MCTR_MBLEN_W < MCTR_SPEC , 16 > { MCTR_MBLEN_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "I2C Master Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mctr::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mctr::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MCTR_SPEC ; impl crate :: RegisterSpec for MCTR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`mctr::R`](R) reader structure"]
impl crate :: Readable for MCTR_SPEC { } # [doc = "`write(|w| ..)` method takes [`mctr::W`](W) writer structure"]
impl crate :: Writable for MCTR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets MCTR to value 0"]
impl crate :: Resettable for MCTR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "MSR (r) register accessor: I2C Master Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`msr::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@msr`]
module"]
pub type MSR = crate :: Reg < msr :: MSR_SPEC > ; # [doc = "I2C Master Status Register"]
pub mod msr { # [doc = "Register `MSR` reader"]
pub type R = crate :: R < MSR_SPEC > ; # [doc = "Field `MSR_BUSY` reader - I2C Master FSM Busy The BUSY bit is set during an ongoing transaction, so is set during the transmit/receive of the amount of data set in MBLEN including START, RESTART, Address and STOP signal generation when required for the current transaction."]
pub type MSR_BUSY_R = crate :: BitReader < MSR_BUSY_A > ; # [doc = "I2C Master FSM Busy The BUSY bit is set during an ongoing transaction, so is set during the transmit/receive of the amount of data set in MBLEN including START, RESTART, Address and STOP signal generation when required for the current transaction.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MSR_BUSY_A { # [doc = "0: CLEARED"]
MSR_BUSY_CLEARED = 0 , # [doc = "1: SET"]
MSR_BUSY_SET = 1 , } impl From < MSR_BUSY_A > for bool { # [inline (always)]
fn from (variant : MSR_BUSY_A) -> Self { variant as u8 != 0 } } impl MSR_BUSY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MSR_BUSY_A { match self . bits { false => MSR_BUSY_A :: MSR_BUSY_CLEARED , true => MSR_BUSY_A :: MSR_BUSY_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_msr_busy_cleared (& self) -> bool { * self == MSR_BUSY_A :: MSR_BUSY_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_msr_busy_set (& self) -> bool { * self == MSR_BUSY_A :: MSR_BUSY_SET } } # [doc = "Field `MSR_ERR` reader - Error The error can be from the slave address not being acknowledged or the transmit data not being acknowledged."]
pub type MSR_ERR_R = crate :: BitReader < MSR_ERR_A > ; # [doc = "Error The error can be from the slave address not being acknowledged or the transmit data not being acknowledged.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MSR_ERR_A { # [doc = "0: CLEARED"]
MSR_ERR_CLEARED = 0 , # [doc = "1: SET"]
MSR_ERR_SET = 1 , } impl From < MSR_ERR_A > for bool { # [inline (always)]
fn from (variant : MSR_ERR_A) -> Self { variant as u8 != 0 } } impl MSR_ERR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MSR_ERR_A { match self . bits { false => MSR_ERR_A :: MSR_ERR_CLEARED , true => MSR_ERR_A :: MSR_ERR_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_msr_err_cleared (& self) -> bool { * self == MSR_ERR_A :: MSR_ERR_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_msr_err_set (& self) -> bool { * self == MSR_ERR_A :: MSR_ERR_SET } } # [doc = "Field `MSR_ADRACK` reader - Acknowledge Address"]
pub type MSR_ADRACK_R = crate :: BitReader < MSR_ADRACK_A > ; # [doc = "Acknowledge Address\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MSR_ADRACK_A { # [doc = "0: CLEARED"]
MSR_ADRACK_CLEARED = 0 , # [doc = "1: SET"]
MSR_ADRACK_SET = 1 , } impl From < MSR_ADRACK_A > for bool { # [inline (always)]
fn from (variant : MSR_ADRACK_A) -> Self { variant as u8 != 0 } } impl MSR_ADRACK_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MSR_ADRACK_A { match self . bits { false => MSR_ADRACK_A :: MSR_ADRACK_CLEARED , true => MSR_ADRACK_A :: MSR_ADRACK_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_msr_adrack_cleared (& self) -> bool { * self == MSR_ADRACK_A :: MSR_ADRACK_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_msr_adrack_set (& self) -> bool { * self == MSR_ADRACK_A :: MSR_ADRACK_SET } } # [doc = "Field `MSR_DATACK` reader - Acknowledge Data"]
pub type MSR_DATACK_R = crate :: BitReader < MSR_DATACK_A > ; # [doc = "Acknowledge Data\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MSR_DATACK_A { # [doc = "0: CLEARED"]
MSR_DATACK_CLEARED = 0 , # [doc = "1: SET"]
MSR_DATACK_SET = 1 , } impl From < MSR_DATACK_A > for bool { # [inline (always)]
fn from (variant : MSR_DATACK_A) -> Self { variant as u8 != 0 } } impl MSR_DATACK_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MSR_DATACK_A { match self . bits { false => MSR_DATACK_A :: MSR_DATACK_CLEARED , true => MSR_DATACK_A :: MSR_DATACK_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_msr_datack_cleared (& self) -> bool { * self == MSR_DATACK_A :: MSR_DATACK_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_msr_datack_set (& self) -> bool { * self == MSR_DATACK_A :: MSR_DATACK_SET } } # [doc = "Field `MSR_ARBLST` reader - Arbitration Lost"]
pub type MSR_ARBLST_R = crate :: BitReader < MSR_ARBLST_A > ; # [doc = "Arbitration Lost\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MSR_ARBLST_A { # [doc = "0: CLEARED"]
MSR_ARBLST_CLEARED = 0 , # [doc = "1: SET"]
MSR_ARBLST_SET = 1 , } impl From < MSR_ARBLST_A > for bool { # [inline (always)]
fn from (variant : MSR_ARBLST_A) -> Self { variant as u8 != 0 } } impl MSR_ARBLST_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MSR_ARBLST_A { match self . bits { false => MSR_ARBLST_A :: MSR_ARBLST_CLEARED , true => MSR_ARBLST_A :: MSR_ARBLST_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_msr_arblst_cleared (& self) -> bool { * self == MSR_ARBLST_A :: MSR_ARBLST_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_msr_arblst_set (& self) -> bool { * self == MSR_ARBLST_A :: MSR_ARBLST_SET } } # [doc = "Field `MSR_IDLE` reader - I2C Idle"]
pub type MSR_IDLE_R = crate :: BitReader < MSR_IDLE_A > ; # [doc = "I2C Idle\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MSR_IDLE_A { # [doc = "0: CLEARED"]
MSR_IDLE_CLEARED = 0 , # [doc = "1: SET"]
MSR_IDLE_SET = 1 , } impl From < MSR_IDLE_A > for bool { # [inline (always)]
fn from (variant : MSR_IDLE_A) -> Self { variant as u8 != 0 } } impl MSR_IDLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MSR_IDLE_A { match self . bits { false => MSR_IDLE_A :: MSR_IDLE_CLEARED , true => MSR_IDLE_A :: MSR_IDLE_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_msr_idle_cleared (& self) -> bool { * self == MSR_IDLE_A :: MSR_IDLE_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_msr_idle_set (& self) -> bool { * self == MSR_IDLE_A :: MSR_IDLE_SET } } # [doc = "Field `MSR_BUSBSY` reader - I2C Bus is Busy Master State Machine will wait until this bit is cleared before starting a transaction. When first enabling the Master in multi master environments, FW should wait for one I2C clock period after setting ACTIVE high before writing to the MTCR register to start the transaction so that if SCL goes low it will trigger the BUSBSY."]
pub type MSR_BUSBSY_R = crate :: BitReader < MSR_BUSBSY_A > ; # [doc = "I2C Bus is Busy Master State Machine will wait until this bit is cleared before starting a transaction. When first enabling the Master in multi master environments, FW should wait for one I2C clock period after setting ACTIVE high before writing to the MTCR register to start the transaction so that if SCL goes low it will trigger the BUSBSY.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MSR_BUSBSY_A { # [doc = "0: CLEARED"]
MSR_BUSBSY_CLEARED = 0 , # [doc = "1: SET"]
MSR_BUSBSY_SET = 1 , } impl From < MSR_BUSBSY_A > for bool { # [inline (always)]
fn from (variant : MSR_BUSBSY_A) -> Self { variant as u8 != 0 } } impl MSR_BUSBSY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MSR_BUSBSY_A { match self . bits { false => MSR_BUSBSY_A :: MSR_BUSBSY_CLEARED , true => MSR_BUSBSY_A :: MSR_BUSBSY_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_msr_busbsy_cleared (& self) -> bool { * self == MSR_BUSBSY_A :: MSR_BUSBSY_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_msr_busbsy_set (& self) -> bool { * self == MSR_BUSBSY_A :: MSR_BUSBSY_SET } } # [doc = "Field `MSR_MBCNT` reader - I2C Master Transaction Count This field contains the current count-down value of the transaction."]
pub type MSR_MBCNT_R = crate :: FieldReader < u16 > ; impl R { # [doc = "Bit 0 - I2C Master FSM Busy The BUSY bit is set during an ongoing transaction, so is set during the transmit/receive of the amount of data set in MBLEN including START, RESTART, Address and STOP signal generation when required for the current transaction."]
# [inline (always)]
pub fn msr_busy (& self) -> MSR_BUSY_R { MSR_BUSY_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Error The error can be from the slave address not being acknowledged or the transmit data not being acknowledged."]
# [inline (always)]
pub fn msr_err (& self) -> MSR_ERR_R { MSR_ERR_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Acknowledge Address"]
# [inline (always)]
pub fn msr_adrack (& self) -> MSR_ADRACK_R { MSR_ADRACK_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Acknowledge Data"]
# [inline (always)]
pub fn msr_datack (& self) -> MSR_DATACK_R { MSR_DATACK_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - Arbitration Lost"]
# [inline (always)]
pub fn msr_arblst (& self) -> MSR_ARBLST_R { MSR_ARBLST_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - I2C Idle"]
# [inline (always)]
pub fn msr_idle (& self) -> MSR_IDLE_R { MSR_IDLE_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - I2C Bus is Busy Master State Machine will wait until this bit is cleared before starting a transaction. When first enabling the Master in multi master environments, FW should wait for one I2C clock period after setting ACTIVE high before writing to the MTCR register to start the transaction so that if SCL goes low it will trigger the BUSBSY."]
# [inline (always)]
pub fn msr_busbsy (& self) -> MSR_BUSBSY_R { MSR_BUSBSY_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bits 16:27 - I2C Master Transaction Count This field contains the current count-down value of the transaction."]
# [inline (always)]
pub fn msr_mbcnt (& self) -> MSR_MBCNT_R { MSR_MBCNT_R :: new (((self . bits >> 16) & 0x0fff) as u16) } } # [doc = "I2C Master Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`msr::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MSR_SPEC ; impl crate :: RegisterSpec for MSR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`msr::R`](R) reader structure"]
impl crate :: Readable for MSR_SPEC { } # [doc = "`reset()` method sets MSR to value 0"]
impl crate :: Resettable for MSR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "MRXDATA (r) register accessor: I2C Master RXData\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mrxdata::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mrxdata`]
module"]
pub type MRXDATA = crate :: Reg < mrxdata :: MRXDATA_SPEC > ; # [doc = "I2C Master RXData"]
pub mod mrxdata { # [doc = "Register `MRXDATA` reader"]
pub type R = crate :: R < MRXDATA_SPEC > ; # [doc = "Field `MRXDATA_VALUE` reader - Received Data. This field contains the last received data."]
pub type MRXDATA_VALUE_R = crate :: FieldReader ; impl R { # [doc = "Bits 0:7 - Received Data. This field contains the last received data."]
# [inline (always)]
pub fn mrxdata_value (& self) -> MRXDATA_VALUE_R { MRXDATA_VALUE_R :: new ((self . bits & 0xff) as u8) } } # [doc = "I2C Master RXData\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mrxdata::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MRXDATA_SPEC ; impl crate :: RegisterSpec for MRXDATA_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`mrxdata::R`](R) reader structure"]
impl crate :: Readable for MRXDATA_SPEC { } # [doc = "`reset()` method sets MRXDATA to value 0"]
impl crate :: Resettable for MRXDATA_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "MTXDATA (rw) register accessor: I2C Master TXData\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mtxdata::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mtxdata::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mtxdata`]
module"]
pub type MTXDATA = crate :: Reg < mtxdata :: MTXDATA_SPEC > ; # [doc = "I2C Master TXData"]
pub mod mtxdata { # [doc = "Register `MTXDATA` reader"]
pub type R = crate :: R < MTXDATA_SPEC > ; # [doc = "Register `MTXDATA` writer"]
pub type W = crate :: W < MTXDATA_SPEC > ; # [doc = "Field `MTXDATA_VALUE` reader - Transmit Data This byte contains the data to be transferred during the next transaction."]
pub type MTXDATA_VALUE_R = crate :: FieldReader ; # [doc = "Field `MTXDATA_VALUE` writer - Transmit Data This byte contains the data to be transferred during the next transaction."]
pub type MTXDATA_VALUE_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O > ; impl R { # [doc = "Bits 0:7 - Transmit Data This byte contains the data to be transferred during the next transaction."]
# [inline (always)]
pub fn mtxdata_value (& self) -> MTXDATA_VALUE_R { MTXDATA_VALUE_R :: new ((self . bits & 0xff) as u8) } } impl W { # [doc = "Bits 0:7 - Transmit Data This byte contains the data to be transferred during the next transaction."]
# [inline (always)]
# [must_use]
pub fn mtxdata_value (& mut self) -> MTXDATA_VALUE_W < MTXDATA_SPEC , 0 > { MTXDATA_VALUE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "I2C Master TXData\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mtxdata::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mtxdata::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MTXDATA_SPEC ; impl crate :: RegisterSpec for MTXDATA_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`mtxdata::R`](R) reader structure"]
impl crate :: Readable for MTXDATA_SPEC { } # [doc = "`write(|w| ..)` method takes [`mtxdata::W`](W) writer structure"]
impl crate :: Writable for MTXDATA_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets MTXDATA to value 0"]
impl crate :: Resettable for MTXDATA_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "MTPR (rw) register accessor: I2C Master Timer Period\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mtpr::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mtpr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mtpr`]
module"]
pub type MTPR = crate :: Reg < mtpr :: MTPR_SPEC > ; # [doc = "I2C Master Timer Period"]
pub mod mtpr { # [doc = "Register `MTPR` reader"]
pub type R = crate :: R < MTPR_SPEC > ; # [doc = "Register `MTPR` writer"]
pub type W = crate :: W < MTPR_SPEC > ; # [doc = "Field `MTPR_TPR` reader - Timer Period This field is used in the equation to configure SCL_PERIOD : SCL_PERIOD = (1 + TPR ) * (SCL_LP + SCL_HP ) * INT_CLK_PRD where: SCL_PRD is the SCL line period (I2C clock). TPR is the Timer Period register value (range of 1 to 127). SCL_LP is the SCL Low period (fixed at 6). SCL_HP is the SCL High period (fixed at 4). CLK_PRD is the functional clock period in ns."]
pub type MTPR_TPR_R = crate :: FieldReader ; # [doc = "Field `MTPR_TPR` writer - Timer Period This field is used in the equation to configure SCL_PERIOD : SCL_PERIOD = (1 + TPR ) * (SCL_LP + SCL_HP ) * INT_CLK_PRD where: SCL_PRD is the SCL line period (I2C clock). TPR is the Timer Period register value (range of 1 to 127). SCL_LP is the SCL Low period (fixed at 6). SCL_HP is the SCL High period (fixed at 4). CLK_PRD is the functional clock period in ns."]
pub type MTPR_TPR_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 7 , O > ; impl R { # [doc = "Bits 0:6 - Timer Period This field is used in the equation to configure SCL_PERIOD : SCL_PERIOD = (1 + TPR ) * (SCL_LP + SCL_HP ) * INT_CLK_PRD where: SCL_PRD is the SCL line period (I2C clock). TPR is the Timer Period register value (range of 1 to 127). SCL_LP is the SCL Low period (fixed at 6). SCL_HP is the SCL High period (fixed at 4). CLK_PRD is the functional clock period in ns."]
# [inline (always)]
pub fn mtpr_tpr (& self) -> MTPR_TPR_R { MTPR_TPR_R :: new ((self . bits & 0x7f) as u8) } } impl W { # [doc = "Bits 0:6 - Timer Period This field is used in the equation to configure SCL_PERIOD : SCL_PERIOD = (1 + TPR ) * (SCL_LP + SCL_HP ) * INT_CLK_PRD where: SCL_PRD is the SCL line period (I2C clock). TPR is the Timer Period register value (range of 1 to 127). SCL_LP is the SCL Low period (fixed at 6). SCL_HP is the SCL High period (fixed at 4). CLK_PRD is the functional clock period in ns."]
# [inline (always)]
# [must_use]
pub fn mtpr_tpr (& mut self) -> MTPR_TPR_W < MTPR_SPEC , 0 > { MTPR_TPR_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "I2C Master Timer Period\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mtpr::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mtpr::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MTPR_SPEC ; impl crate :: RegisterSpec for MTPR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`mtpr::R`](R) reader structure"]
impl crate :: Readable for MTPR_SPEC { } # [doc = "`write(|w| ..)` method takes [`mtpr::W`](W) writer structure"]
impl crate :: Writable for MTPR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets MTPR to value 0x01"]
impl crate :: Resettable for MTPR_SPEC { const RESET_VALUE : Self :: Ux = 0x01 ; } } # [doc = "MCR (rw) register accessor: I2C Master Configuration\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mcr::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mcr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mcr`]
module"]
pub type MCR = crate :: Reg < mcr :: MCR_SPEC > ; # [doc = "I2C Master Configuration"]
pub mod mcr { # [doc = "Register `MCR` reader"]
pub type R = crate :: R < MCR_SPEC > ; # [doc = "Register `MCR` writer"]
pub type W = crate :: W < MCR_SPEC > ; # [doc = "Field `MCR_ACTIVE` reader - Device Active After this bit has been set, it should not be set again unless it has been cleared by writing a 0 or by a reset, otherwise transfer failures may occur."]
pub type MCR_ACTIVE_R = crate :: BitReader < MCR_ACTIVE_A > ; # [doc = "Device Active After this bit has been set, it should not be set again unless it has been cleared by writing a 0 or by a reset, otherwise transfer failures may occur.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MCR_ACTIVE_A { # [doc = "0: DISABLE"]
MCR_ACTIVE_DISABLE = 0 , # [doc = "1: ENABLE"]
MCR_ACTIVE_ENABLE = 1 , } impl From < MCR_ACTIVE_A > for bool { # [inline (always)]
fn from (variant : MCR_ACTIVE_A) -> Self { variant as u8 != 0 } } impl MCR_ACTIVE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MCR_ACTIVE_A { match self . bits { false => MCR_ACTIVE_A :: MCR_ACTIVE_DISABLE , true => MCR_ACTIVE_A :: MCR_ACTIVE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_mcr_active_disable (& self) -> bool { * self == MCR_ACTIVE_A :: MCR_ACTIVE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_mcr_active_enable (& self) -> bool { * self == MCR_ACTIVE_A :: MCR_ACTIVE_ENABLE } } # [doc = "Field `MCR_ACTIVE` writer - Device Active After this bit has been set, it should not be set again unless it has been cleared by writing a 0 or by a reset, otherwise transfer failures may occur."]
pub type MCR_ACTIVE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MCR_ACTIVE_A > ; impl < 'a , REG , const O : u8 > MCR_ACTIVE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn mcr_active_disable (self) -> & 'a mut crate :: W < REG > { self . variant (MCR_ACTIVE_A :: MCR_ACTIVE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn mcr_active_enable (self) -> & 'a mut crate :: W < REG > { self . variant (MCR_ACTIVE_A :: MCR_ACTIVE_ENABLE) } } # [doc = "Field `MCR_MMST` reader - Multimaster mode. In Multimaster mode the SCL high time counts once the SCL line has been detected high. If this is not enabled the high time counts as soon as the SCL line has been set high by the I2C controller."]
pub type MCR_MMST_R = crate :: BitReader < MCR_MMST_A > ; # [doc = "Multimaster mode. In Multimaster mode the SCL high time counts once the SCL line has been detected high. If this is not enabled the high time counts as soon as the SCL line has been set high by the I2C controller.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MCR_MMST_A { # [doc = "0: DISABLE"]
MCR_MMST_DISABLE = 0 , # [doc = "1: ENABLE"]
MCR_MMST_ENABLE = 1 , } impl From < MCR_MMST_A > for bool { # [inline (always)]
fn from (variant : MCR_MMST_A) -> Self { variant as u8 != 0 } } impl MCR_MMST_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MCR_MMST_A { match self . bits { false => MCR_MMST_A :: MCR_MMST_DISABLE , true => MCR_MMST_A :: MCR_MMST_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_mcr_mmst_disable (& self) -> bool { * self == MCR_MMST_A :: MCR_MMST_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_mcr_mmst_enable (& self) -> bool { * self == MCR_MMST_A :: MCR_MMST_ENABLE } } # [doc = "Field `MCR_MMST` writer - Multimaster mode. In Multimaster mode the SCL high time counts once the SCL line has been detected high. If this is not enabled the high time counts as soon as the SCL line has been set high by the I2C controller."]
pub type MCR_MMST_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MCR_MMST_A > ; impl < 'a , REG , const O : u8 > MCR_MMST_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn mcr_mmst_disable (self) -> & 'a mut crate :: W < REG > { self . variant (MCR_MMST_A :: MCR_MMST_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn mcr_mmst_enable (self) -> & 'a mut crate :: W < REG > { self . variant (MCR_MMST_A :: MCR_MMST_ENABLE) } } # [doc = "Field `MCR_CLKSTRETCH` reader - Clock Stretching. This bit controls the support for clock stretching of the I2C bus."]
pub type MCR_CLKSTRETCH_R = crate :: BitReader < MCR_CLKSTRETCH_A > ; # [doc = "Clock Stretching. This bit controls the support for clock stretching of the I2C bus.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MCR_CLKSTRETCH_A { # [doc = "0: DISABLE"]
MCR_CLKSTRETCH_DISABLE = 0 , # [doc = "1: ENABLE"]
MCR_CLKSTRETCH_ENABLE = 1 , } impl From < MCR_CLKSTRETCH_A > for bool { # [inline (always)]
fn from (variant : MCR_CLKSTRETCH_A) -> Self { variant as u8 != 0 } } impl MCR_CLKSTRETCH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MCR_CLKSTRETCH_A { match self . bits { false => MCR_CLKSTRETCH_A :: MCR_CLKSTRETCH_DISABLE , true => MCR_CLKSTRETCH_A :: MCR_CLKSTRETCH_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_mcr_clkstretch_disable (& self) -> bool { * self == MCR_CLKSTRETCH_A :: MCR_CLKSTRETCH_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_mcr_clkstretch_enable (& self) -> bool { * self == MCR_CLKSTRETCH_A :: MCR_CLKSTRETCH_ENABLE } } # [doc = "Field `MCR_CLKSTRETCH` writer - Clock Stretching. This bit controls the support for clock stretching of the I2C bus."]
pub type MCR_CLKSTRETCH_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MCR_CLKSTRETCH_A > ; impl < 'a , REG , const O : u8 > MCR_CLKSTRETCH_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn mcr_clkstretch_disable (self) -> & 'a mut crate :: W < REG > { self . variant (MCR_CLKSTRETCH_A :: MCR_CLKSTRETCH_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn mcr_clkstretch_enable (self) -> & 'a mut crate :: W < REG > { self . variant (MCR_CLKSTRETCH_A :: MCR_CLKSTRETCH_ENABLE) } } # [doc = "Field `MCR_LPBK` reader - I2C Loopback"]
pub type MCR_LPBK_R = crate :: BitReader < MCR_LPBK_A > ; # [doc = "I2C Loopback\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MCR_LPBK_A { # [doc = "0: DISABLE"]
MCR_LPBK_DISABLE = 0 , # [doc = "1: ENABLE"]
MCR_LPBK_ENABLE = 1 , } impl From < MCR_LPBK_A > for bool { # [inline (always)]
fn from (variant : MCR_LPBK_A) -> Self { variant as u8 != 0 } } impl MCR_LPBK_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MCR_LPBK_A { match self . bits { false => MCR_LPBK_A :: MCR_LPBK_DISABLE , true => MCR_LPBK_A :: MCR_LPBK_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_mcr_lpbk_disable (& self) -> bool { * self == MCR_LPBK_A :: MCR_LPBK_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_mcr_lpbk_enable (& self) -> bool { * self == MCR_LPBK_A :: MCR_LPBK_ENABLE } } # [doc = "Field `MCR_LPBK` writer - I2C Loopback"]
pub type MCR_LPBK_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MCR_LPBK_A > ; impl < 'a , REG , const O : u8 > MCR_LPBK_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn mcr_lpbk_disable (self) -> & 'a mut crate :: W < REG > { self . variant (MCR_LPBK_A :: MCR_LPBK_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn mcr_lpbk_enable (self) -> & 'a mut crate :: W < REG > { self . variant (MCR_LPBK_A :: MCR_LPBK_ENABLE) } } impl R { # [doc = "Bit 0 - Device Active After this bit has been set, it should not be set again unless it has been cleared by writing a 0 or by a reset, otherwise transfer failures may occur."]
# [inline (always)]
pub fn mcr_active (& self) -> MCR_ACTIVE_R { MCR_ACTIVE_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Multimaster mode. In Multimaster mode the SCL high time counts once the SCL line has been detected high. If this is not enabled the high time counts as soon as the SCL line has been set high by the I2C controller."]
# [inline (always)]
pub fn mcr_mmst (& self) -> MCR_MMST_R { MCR_MMST_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Clock Stretching. This bit controls the support for clock stretching of the I2C bus."]
# [inline (always)]
pub fn mcr_clkstretch (& self) -> MCR_CLKSTRETCH_R { MCR_CLKSTRETCH_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 8 - I2C Loopback"]
# [inline (always)]
pub fn mcr_lpbk (& self) -> MCR_LPBK_R { MCR_LPBK_R :: new (((self . bits >> 8) & 1) != 0) } } impl W { # [doc = "Bit 0 - Device Active After this bit has been set, it should not be set again unless it has been cleared by writing a 0 or by a reset, otherwise transfer failures may occur."]
# [inline (always)]
# [must_use]
pub fn mcr_active (& mut self) -> MCR_ACTIVE_W < MCR_SPEC , 0 > { MCR_ACTIVE_W :: new (self) } # [doc = "Bit 1 - Multimaster mode. In Multimaster mode the SCL high time counts once the SCL line has been detected high. If this is not enabled the high time counts as soon as the SCL line has been set high by the I2C controller."]
# [inline (always)]
# [must_use]
pub fn mcr_mmst (& mut self) -> MCR_MMST_W < MCR_SPEC , 1 > { MCR_MMST_W :: new (self) } # [doc = "Bit 2 - Clock Stretching. This bit controls the support for clock stretching of the I2C bus."]
# [inline (always)]
# [must_use]
pub fn mcr_clkstretch (& mut self) -> MCR_CLKSTRETCH_W < MCR_SPEC , 2 > { MCR_CLKSTRETCH_W :: new (self) } # [doc = "Bit 8 - I2C Loopback"]
# [inline (always)]
# [must_use]
pub fn mcr_lpbk (& mut self) -> MCR_LPBK_W < MCR_SPEC , 8 > { MCR_LPBK_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "I2C Master Configuration\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mcr::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mcr::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MCR_SPEC ; impl crate :: RegisterSpec for MCR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`mcr::R`](R) reader structure"]
impl crate :: Readable for MCR_SPEC { } # [doc = "`write(|w| ..)` method takes [`mcr::W`](W) writer structure"]
impl crate :: Writable for MCR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets MCR to value 0"]
impl crate :: Resettable for MCR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "MBMON (r) register accessor: I2C Master Bus Monitor\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mbmon::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mbmon`]
module"]
pub type MBMON = crate :: Reg < mbmon :: MBMON_SPEC > ; # [doc = "I2C Master Bus Monitor"]
pub mod mbmon { # [doc = "Register `MBMON` reader"]
pub type R = crate :: R < MBMON_SPEC > ; # [doc = "Field `MBMON_SCL` reader - I2C SCL Status"]
pub type MBMON_SCL_R = crate :: BitReader < MBMON_SCL_A > ; # [doc = "I2C SCL Status\n\nValue on reset: 1"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MBMON_SCL_A { # [doc = "0: CLEARED"]
MBMON_SCL_CLEARED = 0 , # [doc = "1: SET"]
MBMON_SCL_SET = 1 , } impl From < MBMON_SCL_A > for bool { # [inline (always)]
fn from (variant : MBMON_SCL_A) -> Self { variant as u8 != 0 } } impl MBMON_SCL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MBMON_SCL_A { match self . bits { false => MBMON_SCL_A :: MBMON_SCL_CLEARED , true => MBMON_SCL_A :: MBMON_SCL_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_mbmon_scl_cleared (& self) -> bool { * self == MBMON_SCL_A :: MBMON_SCL_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_mbmon_scl_set (& self) -> bool { * self == MBMON_SCL_A :: MBMON_SCL_SET } } # [doc = "Field `MBMON_SDA` reader - I2C SDA Status"]
pub type MBMON_SDA_R = crate :: BitReader < MBMON_SDA_A > ; # [doc = "I2C SDA Status\n\nValue on reset: 1"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MBMON_SDA_A { # [doc = "0: CLEARED"]
MBMON_SDA_CLEARED = 0 , # [doc = "1: SET"]
MBMON_SDA_SET = 1 , } impl From < MBMON_SDA_A > for bool { # [inline (always)]
fn from (variant : MBMON_SDA_A) -> Self { variant as u8 != 0 } } impl MBMON_SDA_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MBMON_SDA_A { match self . bits { false => MBMON_SDA_A :: MBMON_SDA_CLEARED , true => MBMON_SDA_A :: MBMON_SDA_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_mbmon_sda_cleared (& self) -> bool { * self == MBMON_SDA_A :: MBMON_SDA_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_mbmon_sda_set (& self) -> bool { * self == MBMON_SDA_A :: MBMON_SDA_SET } } impl R { # [doc = "Bit 0 - I2C SCL Status"]
# [inline (always)]
pub fn mbmon_scl (& self) -> MBMON_SCL_R { MBMON_SCL_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - I2C SDA Status"]
# [inline (always)]
pub fn mbmon_sda (& self) -> MBMON_SDA_R { MBMON_SDA_R :: new (((self . bits >> 1) & 1) != 0) } } # [doc = "I2C Master Bus Monitor\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mbmon::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MBMON_SPEC ; impl crate :: RegisterSpec for MBMON_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`mbmon::R`](R) reader structure"]
impl crate :: Readable for MBMON_SPEC { } # [doc = "`reset()` method sets MBMON to value 0x03"]
impl crate :: Resettable for MBMON_SPEC { const RESET_VALUE : Self :: Ux = 0x03 ; } } # [doc = "MFIFOCTL (rw) register accessor: I2C Master FIFO Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mfifoctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mfifoctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mfifoctl`]
module"]
pub type MFIFOCTL = crate :: Reg < mfifoctl :: MFIFOCTL_SPEC > ; # [doc = "I2C Master FIFO Control"]
pub mod mfifoctl { # [doc = "Register `MFIFOCTL` reader"]
pub type R = crate :: R < MFIFOCTL_SPEC > ; # [doc = "Register `MFIFOCTL` writer"]
pub type W = crate :: W < MFIFOCTL_SPEC > ; # [doc = "Field `MFIFOCTL_TXTRIG` reader - TX FIFO Trigger Indicates at what fill level in the TX FIFO a trigger will be generated."]
pub type MFIFOCTL_TXTRIG_R = crate :: FieldReader < MFIFOCTL_TXTRIG_A > ; # [doc = "TX FIFO Trigger Indicates at what fill level in the TX FIFO a trigger will be generated.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum MFIFOCTL_TXTRIG_A { # [doc = "4: LEVEL_4"]
MFIFOCTL_TXTRIG_LEVEL_4 = 4 , # [doc = "5: LEVEL_5"]
MFIFOCTL_TXTRIG_LEVEL_5 = 5 , # [doc = "6: LEVEL_6"]
MFIFOCTL_TXTRIG_LEVEL_6 = 6 , # [doc = "7: LEVEL_7"]
MFIFOCTL_TXTRIG_LEVEL_7 = 7 , } impl From < MFIFOCTL_TXTRIG_A > for u8 { # [inline (always)]
fn from (variant : MFIFOCTL_TXTRIG_A) -> Self { variant as _ } } impl crate :: FieldSpec for MFIFOCTL_TXTRIG_A { type Ux = u8 ; } impl MFIFOCTL_TXTRIG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < MFIFOCTL_TXTRIG_A > { match self . bits { 4 => Some (MFIFOCTL_TXTRIG_A :: MFIFOCTL_TXTRIG_LEVEL_4) , 5 => Some (MFIFOCTL_TXTRIG_A :: MFIFOCTL_TXTRIG_LEVEL_5) , 6 => Some (MFIFOCTL_TXTRIG_A :: MFIFOCTL_TXTRIG_LEVEL_6) , 7 => Some (MFIFOCTL_TXTRIG_A :: MFIFOCTL_TXTRIG_LEVEL_7) , _ => None , } } # [doc = "LEVEL_4"]
# [inline (always)]
pub fn is_mfifoctl_txtrig_level_4 (& self) -> bool { * self == MFIFOCTL_TXTRIG_A :: MFIFOCTL_TXTRIG_LEVEL_4 } # [doc = "LEVEL_5"]
# [inline (always)]
pub fn is_mfifoctl_txtrig_level_5 (& self) -> bool { * self == MFIFOCTL_TXTRIG_A :: MFIFOCTL_TXTRIG_LEVEL_5 } # [doc = "LEVEL_6"]
# [inline (always)]
pub fn is_mfifoctl_txtrig_level_6 (& self) -> bool { * self == MFIFOCTL_TXTRIG_A :: MFIFOCTL_TXTRIG_LEVEL_6 } # [doc = "LEVEL_7"]
# [inline (always)]
pub fn is_mfifoctl_txtrig_level_7 (& self) -> bool { * self == MFIFOCTL_TXTRIG_A :: MFIFOCTL_TXTRIG_LEVEL_7 } } # [doc = "Field `MFIFOCTL_TXTRIG` writer - TX FIFO Trigger Indicates at what fill level in the TX FIFO a trigger will be generated."]
pub type MFIFOCTL_TXTRIG_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , MFIFOCTL_TXTRIG_A > ; impl < 'a , REG , const O : u8 > MFIFOCTL_TXTRIG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "LEVEL_4"]
# [inline (always)]
pub fn mfifoctl_txtrig_level_4 (self) -> & 'a mut crate :: W < REG > { self . variant (MFIFOCTL_TXTRIG_A :: MFIFOCTL_TXTRIG_LEVEL_4) } # [doc = "LEVEL_5"]
# [inline (always)]
pub fn mfifoctl_txtrig_level_5 (self) -> & 'a mut crate :: W < REG > { self . variant (MFIFOCTL_TXTRIG_A :: MFIFOCTL_TXTRIG_LEVEL_5) } # [doc = "LEVEL_6"]
# [inline (always)]
pub fn mfifoctl_txtrig_level_6 (self) -> & 'a mut crate :: W < REG > { self . variant (MFIFOCTL_TXTRIG_A :: MFIFOCTL_TXTRIG_LEVEL_6) } # [doc = "LEVEL_7"]
# [inline (always)]
pub fn mfifoctl_txtrig_level_7 (self) -> & 'a mut crate :: W < REG > { self . variant (MFIFOCTL_TXTRIG_A :: MFIFOCTL_TXTRIG_LEVEL_7) } } # [doc = "Field `MFIFOCTL_TXFLUSH` reader - TX FIFO Flush Setting this bit will Flush the TX FIFO. Before reseting this bit to stop Flush the TXFIFOCNT should be checked to be 8 and indicating that the Flush has completed."]
pub type MFIFOCTL_TXFLUSH_R = crate :: BitReader < MFIFOCTL_TXFLUSH_A > ; # [doc = "TX FIFO Flush Setting this bit will Flush the TX FIFO. Before reseting this bit to stop Flush the TXFIFOCNT should be checked to be 8 and indicating that the Flush has completed.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MFIFOCTL_TXFLUSH_A { # [doc = "0: NOFLUSH"]
MFIFOCTL_TXFLUSH_NOFLUSH = 0 , # [doc = "1: FLUSH"]
MFIFOCTL_TXFLUSH_FLUSH = 1 , } impl From < MFIFOCTL_TXFLUSH_A > for bool { # [inline (always)]
fn from (variant : MFIFOCTL_TXFLUSH_A) -> Self { variant as u8 != 0 } } impl MFIFOCTL_TXFLUSH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MFIFOCTL_TXFLUSH_A { match self . bits { false => MFIFOCTL_TXFLUSH_A :: MFIFOCTL_TXFLUSH_NOFLUSH , true => MFIFOCTL_TXFLUSH_A :: MFIFOCTL_TXFLUSH_FLUSH , } } # [doc = "NOFLUSH"]
# [inline (always)]
pub fn is_mfifoctl_txflush_noflush (& self) -> bool { * self == MFIFOCTL_TXFLUSH_A :: MFIFOCTL_TXFLUSH_NOFLUSH } # [doc = "FLUSH"]
# [inline (always)]
pub fn is_mfifoctl_txflush_flush (& self) -> bool { * self == MFIFOCTL_TXFLUSH_A :: MFIFOCTL_TXFLUSH_FLUSH } } # [doc = "Field `MFIFOCTL_TXFLUSH` writer - TX FIFO Flush Setting this bit will Flush the TX FIFO. Before reseting this bit to stop Flush the TXFIFOCNT should be checked to be 8 and indicating that the Flush has completed."]
pub type MFIFOCTL_TXFLUSH_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MFIFOCTL_TXFLUSH_A > ; impl < 'a , REG , const O : u8 > MFIFOCTL_TXFLUSH_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOFLUSH"]
# [inline (always)]
pub fn mfifoctl_txflush_noflush (self) -> & 'a mut crate :: W < REG > { self . variant (MFIFOCTL_TXFLUSH_A :: MFIFOCTL_TXFLUSH_NOFLUSH) } # [doc = "FLUSH"]
# [inline (always)]
pub fn mfifoctl_txflush_flush (self) -> & 'a mut crate :: W < REG > { self . variant (MFIFOCTL_TXFLUSH_A :: MFIFOCTL_TXFLUSH_FLUSH) } } # [doc = "Field `MFIFOCTL_RXTRIG` reader - RX FIFO Trigger Indicates at what fill level in the RX FIFO a trigger will be generated. Note: Programming RXTRIG to 0x0 has no effect since no data is present to transfer out of RX FIFO."]
pub type MFIFOCTL_RXTRIG_R = crate :: FieldReader < MFIFOCTL_RXTRIG_A > ; # [doc = "RX FIFO Trigger Indicates at what fill level in the RX FIFO a trigger will be generated. Note: Programming RXTRIG to 0x0 has no effect since no data is present to transfer out of RX FIFO.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum MFIFOCTL_RXTRIG_A { # [doc = "4: LEVEL_5"]
MFIFOCTL_RXTRIG_LEVEL_5 = 4 , # [doc = "5: LEVEL_6"]
MFIFOCTL_RXTRIG_LEVEL_6 = 5 , # [doc = "6: LEVEL_7"]
MFIFOCTL_RXTRIG_LEVEL_7 = 6 , # [doc = "7: LEVEL_8"]
MFIFOCTL_RXTRIG_LEVEL_8 = 7 , } impl From < MFIFOCTL_RXTRIG_A > for u8 { # [inline (always)]
fn from (variant : MFIFOCTL_RXTRIG_A) -> Self { variant as _ } } impl crate :: FieldSpec for MFIFOCTL_RXTRIG_A { type Ux = u8 ; } impl MFIFOCTL_RXTRIG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < MFIFOCTL_RXTRIG_A > { match self . bits { 4 => Some (MFIFOCTL_RXTRIG_A :: MFIFOCTL_RXTRIG_LEVEL_5) , 5 => Some (MFIFOCTL_RXTRIG_A :: MFIFOCTL_RXTRIG_LEVEL_6) , 6 => Some (MFIFOCTL_RXTRIG_A :: MFIFOCTL_RXTRIG_LEVEL_7) , 7 => Some (MFIFOCTL_RXTRIG_A :: MFIFOCTL_RXTRIG_LEVEL_8) , _ => None , } } # [doc = "LEVEL_5"]
# [inline (always)]
pub fn is_mfifoctl_rxtrig_level_5 (& self) -> bool { * self == MFIFOCTL_RXTRIG_A :: MFIFOCTL_RXTRIG_LEVEL_5 } # [doc = "LEVEL_6"]
# [inline (always)]
pub fn is_mfifoctl_rxtrig_level_6 (& self) -> bool { * self == MFIFOCTL_RXTRIG_A :: MFIFOCTL_RXTRIG_LEVEL_6 } # [doc = "LEVEL_7"]
# [inline (always)]
pub fn is_mfifoctl_rxtrig_level_7 (& self) -> bool { * self == MFIFOCTL_RXTRIG_A :: MFIFOCTL_RXTRIG_LEVEL_7 } # [doc = "LEVEL_8"]
# [inline (always)]
pub fn is_mfifoctl_rxtrig_level_8 (& self) -> bool { * self == MFIFOCTL_RXTRIG_A :: MFIFOCTL_RXTRIG_LEVEL_8 } } # [doc = "Field `MFIFOCTL_RXTRIG` writer - RX FIFO Trigger Indicates at what fill level in the RX FIFO a trigger will be generated. Note: Programming RXTRIG to 0x0 has no effect since no data is present to transfer out of RX FIFO."]
pub type MFIFOCTL_RXTRIG_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , MFIFOCTL_RXTRIG_A > ; impl < 'a , REG , const O : u8 > MFIFOCTL_RXTRIG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "LEVEL_5"]
# [inline (always)]
pub fn mfifoctl_rxtrig_level_5 (self) -> & 'a mut crate :: W < REG > { self . variant (MFIFOCTL_RXTRIG_A :: MFIFOCTL_RXTRIG_LEVEL_5) } # [doc = "LEVEL_6"]
# [inline (always)]
pub fn mfifoctl_rxtrig_level_6 (self) -> & 'a mut crate :: W < REG > { self . variant (MFIFOCTL_RXTRIG_A :: MFIFOCTL_RXTRIG_LEVEL_6) } # [doc = "LEVEL_7"]
# [inline (always)]
pub fn mfifoctl_rxtrig_level_7 (self) -> & 'a mut crate :: W < REG > { self . variant (MFIFOCTL_RXTRIG_A :: MFIFOCTL_RXTRIG_LEVEL_7) } # [doc = "LEVEL_8"]
# [inline (always)]
pub fn mfifoctl_rxtrig_level_8 (self) -> & 'a mut crate :: W < REG > { self . variant (MFIFOCTL_RXTRIG_A :: MFIFOCTL_RXTRIG_LEVEL_8) } } # [doc = "Field `MFIFOCTL_RXFLUSH` reader - RX FIFO Flush Setting this bit will Flush the RX FIFO. Before reseting this bit to stop Flush the RXFIFOCNT should be checked to be 0 and indicating that the Flush has completed."]
pub type MFIFOCTL_RXFLUSH_R = crate :: BitReader < MFIFOCTL_RXFLUSH_A > ; # [doc = "RX FIFO Flush Setting this bit will Flush the RX FIFO. Before reseting this bit to stop Flush the RXFIFOCNT should be checked to be 0 and indicating that the Flush has completed.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MFIFOCTL_RXFLUSH_A { # [doc = "0: NOFLUSH"]
MFIFOCTL_RXFLUSH_NOFLUSH = 0 , # [doc = "1: FLUSH"]
MFIFOCTL_RXFLUSH_FLUSH = 1 , } impl From < MFIFOCTL_RXFLUSH_A > for bool { # [inline (always)]
fn from (variant : MFIFOCTL_RXFLUSH_A) -> Self { variant as u8 != 0 } } impl MFIFOCTL_RXFLUSH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MFIFOCTL_RXFLUSH_A { match self . bits { false => MFIFOCTL_RXFLUSH_A :: MFIFOCTL_RXFLUSH_NOFLUSH , true => MFIFOCTL_RXFLUSH_A :: MFIFOCTL_RXFLUSH_FLUSH , } } # [doc = "NOFLUSH"]
# [inline (always)]
pub fn is_mfifoctl_rxflush_noflush (& self) -> bool { * self == MFIFOCTL_RXFLUSH_A :: MFIFOCTL_RXFLUSH_NOFLUSH } # [doc = "FLUSH"]
# [inline (always)]
pub fn is_mfifoctl_rxflush_flush (& self) -> bool { * self == MFIFOCTL_RXFLUSH_A :: MFIFOCTL_RXFLUSH_FLUSH } } # [doc = "Field `MFIFOCTL_RXFLUSH` writer - RX FIFO Flush Setting this bit will Flush the RX FIFO. Before reseting this bit to stop Flush the RXFIFOCNT should be checked to be 0 and indicating that the Flush has completed."]
pub type MFIFOCTL_RXFLUSH_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MFIFOCTL_RXFLUSH_A > ; impl < 'a , REG , const O : u8 > MFIFOCTL_RXFLUSH_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOFLUSH"]
# [inline (always)]
pub fn mfifoctl_rxflush_noflush (self) -> & 'a mut crate :: W < REG > { self . variant (MFIFOCTL_RXFLUSH_A :: MFIFOCTL_RXFLUSH_NOFLUSH) } # [doc = "FLUSH"]
# [inline (always)]
pub fn mfifoctl_rxflush_flush (self) -> & 'a mut crate :: W < REG > { self . variant (MFIFOCTL_RXFLUSH_A :: MFIFOCTL_RXFLUSH_FLUSH) } } impl R { # [doc = "Bits 0:2 - TX FIFO Trigger Indicates at what fill level in the TX FIFO a trigger will be generated."]
# [inline (always)]
pub fn mfifoctl_txtrig (& self) -> MFIFOCTL_TXTRIG_R { MFIFOCTL_TXTRIG_R :: new ((self . bits & 7) as u8) } # [doc = "Bit 7 - TX FIFO Flush Setting this bit will Flush the TX FIFO. Before reseting this bit to stop Flush the TXFIFOCNT should be checked to be 8 and indicating that the Flush has completed."]
# [inline (always)]
pub fn mfifoctl_txflush (& self) -> MFIFOCTL_TXFLUSH_R { MFIFOCTL_TXFLUSH_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bits 8:10 - RX FIFO Trigger Indicates at what fill level in the RX FIFO a trigger will be generated. Note: Programming RXTRIG to 0x0 has no effect since no data is present to transfer out of RX FIFO."]
# [inline (always)]
pub fn mfifoctl_rxtrig (& self) -> MFIFOCTL_RXTRIG_R { MFIFOCTL_RXTRIG_R :: new (((self . bits >> 8) & 7) as u8) } # [doc = "Bit 15 - RX FIFO Flush Setting this bit will Flush the RX FIFO. Before reseting this bit to stop Flush the RXFIFOCNT should be checked to be 0 and indicating that the Flush has completed."]
# [inline (always)]
pub fn mfifoctl_rxflush (& self) -> MFIFOCTL_RXFLUSH_R { MFIFOCTL_RXFLUSH_R :: new (((self . bits >> 15) & 1) != 0) } } impl W { # [doc = "Bits 0:2 - TX FIFO Trigger Indicates at what fill level in the TX FIFO a trigger will be generated."]
# [inline (always)]
# [must_use]
pub fn mfifoctl_txtrig (& mut self) -> MFIFOCTL_TXTRIG_W < MFIFOCTL_SPEC , 0 > { MFIFOCTL_TXTRIG_W :: new (self) } # [doc = "Bit 7 - TX FIFO Flush Setting this bit will Flush the TX FIFO. Before reseting this bit to stop Flush the TXFIFOCNT should be checked to be 8 and indicating that the Flush has completed."]
# [inline (always)]
# [must_use]
pub fn mfifoctl_txflush (& mut self) -> MFIFOCTL_TXFLUSH_W < MFIFOCTL_SPEC , 7 > { MFIFOCTL_TXFLUSH_W :: new (self) } # [doc = "Bits 8:10 - RX FIFO Trigger Indicates at what fill level in the RX FIFO a trigger will be generated. Note: Programming RXTRIG to 0x0 has no effect since no data is present to transfer out of RX FIFO."]
# [inline (always)]
# [must_use]
pub fn mfifoctl_rxtrig (& mut self) -> MFIFOCTL_RXTRIG_W < MFIFOCTL_SPEC , 8 > { MFIFOCTL_RXTRIG_W :: new (self) } # [doc = "Bit 15 - RX FIFO Flush Setting this bit will Flush the RX FIFO. Before reseting this bit to stop Flush the RXFIFOCNT should be checked to be 0 and indicating that the Flush has completed."]
# [inline (always)]
# [must_use]
pub fn mfifoctl_rxflush (& mut self) -> MFIFOCTL_RXFLUSH_W < MFIFOCTL_SPEC , 15 > { MFIFOCTL_RXFLUSH_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "I2C Master FIFO Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mfifoctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mfifoctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MFIFOCTL_SPEC ; impl crate :: RegisterSpec for MFIFOCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`mfifoctl::R`](R) reader structure"]
impl crate :: Readable for MFIFOCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`mfifoctl::W`](W) writer structure"]
impl crate :: Writable for MFIFOCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets MFIFOCTL to value 0"]
impl crate :: Resettable for MFIFOCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "MFIFOSR (r) register accessor: I2C Master FIFO Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mfifosr::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mfifosr`]
module"]
pub type MFIFOSR = crate :: Reg < mfifosr :: MFIFOSR_SPEC > ; # [doc = "I2C Master FIFO Status Register"]
pub mod mfifosr { # [doc = "Register `MFIFOSR` reader"]
pub type R = crate :: R < MFIFOSR_SPEC > ; # [doc = "Field `MFIFOSR_RXFIFOCNT` reader - Number of Bytes which could be read from the RX FIFO"]
pub type MFIFOSR_RXFIFOCNT_R = crate :: FieldReader ; # [doc = "Field `MFIFOSR_RXFLUSH` reader - RX FIFO Flush When this bit is set a Flush operation for the RX FIFO is active. Clear the RXFLUSH bit in the control register to stop."]
pub type MFIFOSR_RXFLUSH_R = crate :: BitReader < MFIFOSR_RXFLUSH_A > ; # [doc = "RX FIFO Flush When this bit is set a Flush operation for the RX FIFO is active. Clear the RXFLUSH bit in the control register to stop.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MFIFOSR_RXFLUSH_A { # [doc = "0: INACTIVE"]
MFIFOSR_RXFLUSH_INACTIVE = 0 , # [doc = "1: ACTIVE"]
MFIFOSR_RXFLUSH_ACTIVE = 1 , } impl From < MFIFOSR_RXFLUSH_A > for bool { # [inline (always)]
fn from (variant : MFIFOSR_RXFLUSH_A) -> Self { variant as u8 != 0 } } impl MFIFOSR_RXFLUSH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MFIFOSR_RXFLUSH_A { match self . bits { false => MFIFOSR_RXFLUSH_A :: MFIFOSR_RXFLUSH_INACTIVE , true => MFIFOSR_RXFLUSH_A :: MFIFOSR_RXFLUSH_ACTIVE , } } # [doc = "INACTIVE"]
# [inline (always)]
pub fn is_mfifosr_rxflush_inactive (& self) -> bool { * self == MFIFOSR_RXFLUSH_A :: MFIFOSR_RXFLUSH_INACTIVE } # [doc = "ACTIVE"]
# [inline (always)]
pub fn is_mfifosr_rxflush_active (& self) -> bool { * self == MFIFOSR_RXFLUSH_A :: MFIFOSR_RXFLUSH_ACTIVE } } # [doc = "Field `MFIFOSR_TXFIFOCNT` reader - Number of Bytes which could be put into the TX FIFO"]
pub type MFIFOSR_TXFIFOCNT_R = crate :: FieldReader ; # [doc = "Field `MFIFOSR_TXFLUSH` reader - TX FIFO Flush When this bit is set a Flush operation for the TX FIFO is active. Clear the TXFLUSH bit in the control register to stop."]
pub type MFIFOSR_TXFLUSH_R = crate :: BitReader < MFIFOSR_TXFLUSH_A > ; # [doc = "TX FIFO Flush When this bit is set a Flush operation for the TX FIFO is active. Clear the TXFLUSH bit in the control register to stop.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MFIFOSR_TXFLUSH_A { # [doc = "0: INACTIVE"]
MFIFOSR_TXFLUSH_INACTIVE = 0 , # [doc = "1: ACTIVE"]
MFIFOSR_TXFLUSH_ACTIVE = 1 , } impl From < MFIFOSR_TXFLUSH_A > for bool { # [inline (always)]
fn from (variant : MFIFOSR_TXFLUSH_A) -> Self { variant as u8 != 0 } } impl MFIFOSR_TXFLUSH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MFIFOSR_TXFLUSH_A { match self . bits { false => MFIFOSR_TXFLUSH_A :: MFIFOSR_TXFLUSH_INACTIVE , true => MFIFOSR_TXFLUSH_A :: MFIFOSR_TXFLUSH_ACTIVE , } } # [doc = "INACTIVE"]
# [inline (always)]
pub fn is_mfifosr_txflush_inactive (& self) -> bool { * self == MFIFOSR_TXFLUSH_A :: MFIFOSR_TXFLUSH_INACTIVE } # [doc = "ACTIVE"]
# [inline (always)]
pub fn is_mfifosr_txflush_active (& self) -> bool { * self == MFIFOSR_TXFLUSH_A :: MFIFOSR_TXFLUSH_ACTIVE } } impl R { # [doc = "Bits 0:3 - Number of Bytes which could be read from the RX FIFO"]
# [inline (always)]
pub fn mfifosr_rxfifocnt (& self) -> MFIFOSR_RXFIFOCNT_R { MFIFOSR_RXFIFOCNT_R :: new ((self . bits & 0x0f) as u8) } # [doc = "Bit 7 - RX FIFO Flush When this bit is set a Flush operation for the RX FIFO is active. Clear the RXFLUSH bit in the control register to stop."]
# [inline (always)]
pub fn mfifosr_rxflush (& self) -> MFIFOSR_RXFLUSH_R { MFIFOSR_RXFLUSH_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bits 8:11 - Number of Bytes which could be put into the TX FIFO"]
# [inline (always)]
pub fn mfifosr_txfifocnt (& self) -> MFIFOSR_TXFIFOCNT_R { MFIFOSR_TXFIFOCNT_R :: new (((self . bits >> 8) & 0x0f) as u8) } # [doc = "Bit 15 - TX FIFO Flush When this bit is set a Flush operation for the TX FIFO is active. Clear the TXFLUSH bit in the control register to stop."]
# [inline (always)]
pub fn mfifosr_txflush (& self) -> MFIFOSR_TXFLUSH_R { MFIFOSR_TXFLUSH_R :: new (((self . bits >> 15) & 1) != 0) } } # [doc = "I2C Master FIFO Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mfifosr::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MFIFOSR_SPEC ; impl crate :: RegisterSpec for MFIFOSR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`mfifosr::R`](R) reader structure"]
impl crate :: Readable for MFIFOSR_SPEC { } # [doc = "`reset()` method sets MFIFOSR to value 0x0800"]
impl crate :: Resettable for MFIFOSR_SPEC { const RESET_VALUE : Self :: Ux = 0x0800 ; } } # [doc = "MASTER_I2CPECCTL (rw) register accessor: I2C master PEC control register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`master_i2cpecctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`master_i2cpecctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@master_i2cpecctl`]
module"]
pub type MASTER_I2CPECCTL = crate :: Reg < master_i2cpecctl :: MASTER_I2CPECCTL_SPEC > ; # [doc = "I2C master PEC control register"]
pub mod master_i2cpecctl { # [doc = "Register `MASTER_I2CPECCTL` reader"]
pub type R = crate :: R < MASTER_I2CPECCTL_SPEC > ; # [doc = "Register `MASTER_I2CPECCTL` writer"]
pub type W = crate :: W < MASTER_I2CPECCTL_SPEC > ; # [doc = "Field `MASTER_I2CPECCTL_PECCNT` reader - PEC Count When this field is non zero, the number of I2C bytes are counted (Note that although the PEC is calculated on the I2C address it is not counted at a byte). When the byte count = PECCNT and the state machine is transmitting, the contents of the LSFR is loaded into the shift register instead of the byte received from the Tx FIFO. When the state machine is receiving, after the last bit of this byte is received the LSFR is checked and if it is non-zero, a PEC RX Error interrupt is generated. The I2C packet must be padded to include the PEC byte for both transmit and receive. In transmit mode the FIFO must be loaded with a dummy PEC byte. In receive mode the PEC byte will be passed to the Rx FIFO. In the normal Master use case, FW would set PECEN=1 and PECCNT=SMB packet length (Not including Slave Address byte, but including the PEC byte). FW would then configure DMA to allow the packet to complete unassisted and write MCTR to initiate the transaction. Note that when the byte count = PEC CNT, the byte count is reset to 0 and multiple PEC calculation can automatically occur within a single I2C transaction. Note that any write to the MASTER_I2CPECCTL Register will clear the current PEC Byte Count in the Master State Machine."]
pub type MASTER_I2CPECCTL_PECCNT_R = crate :: FieldReader < u16 > ; # [doc = "Field `MASTER_I2CPECCTL_PECCNT` writer - PEC Count When this field is non zero, the number of I2C bytes are counted (Note that although the PEC is calculated on the I2C address it is not counted at a byte). When the byte count = PECCNT and the state machine is transmitting, the contents of the LSFR is loaded into the shift register instead of the byte received from the Tx FIFO. When the state machine is receiving, after the last bit of this byte is received the LSFR is checked and if it is non-zero, a PEC RX Error interrupt is generated. The I2C packet must be padded to include the PEC byte for both transmit and receive. In transmit mode the FIFO must be loaded with a dummy PEC byte. In receive mode the PEC byte will be passed to the Rx FIFO. In the normal Master use case, FW would set PECEN=1 and PECCNT=SMB packet length (Not including Slave Address byte, but including the PEC byte). FW would then configure DMA to allow the packet to complete unassisted and write MCTR to initiate the transaction. Note that when the byte count = PEC CNT, the byte count is reset to 0 and multiple PEC calculation can automatically occur within a single I2C transaction. Note that any write to the MASTER_I2CPECCTL Register will clear the current PEC Byte Count in the Master State Machine."]
pub type MASTER_I2CPECCTL_PECCNT_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 9 , O , u16 > ; # [doc = "Field `MASTER_I2CPECCTL_PECEN` reader - PEC Enable This bit enables the SMB Packet Error Checking (PEC). When enabled the PEC is calculated on all bits accept the Start, Stop, Ack and Nack. The PEC LSFR and the Byte Counter is set to 0 when the State Machine is in the IDLE state, which occur following a Stop or when a timeout occurs. The Counter is also set to 0 after the PEC byte is sent or received. Note that the NACK is automatically send following a PEC byte that results in a PEC error. The PEC Polynomial is x^8 + x^2 + x^1 + 1."]
pub type MASTER_I2CPECCTL_PECEN_R = crate :: BitReader < MASTER_I2CPECCTL_PECEN_A > ; # [doc = "PEC Enable This bit enables the SMB Packet Error Checking (PEC). When enabled the PEC is calculated on all bits accept the Start, Stop, Ack and Nack. The PEC LSFR and the Byte Counter is set to 0 when the State Machine is in the IDLE state, which occur following a Stop or when a timeout occurs. The Counter is also set to 0 after the PEC byte is sent or received. Note that the NACK is automatically send following a PEC byte that results in a PEC error. The PEC Polynomial is x^8 + x^2 + x^1 + 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MASTER_I2CPECCTL_PECEN_A { # [doc = "0: DISABLE"]
MASTER_I2CPECCTL_PECEN_DISABLE = 0 , # [doc = "1: ENABLE"]
MASTER_I2CPECCTL_PECEN_ENABLE = 1 , } impl From < MASTER_I2CPECCTL_PECEN_A > for bool { # [inline (always)]
fn from (variant : MASTER_I2CPECCTL_PECEN_A) -> Self { variant as u8 != 0 } } impl MASTER_I2CPECCTL_PECEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MASTER_I2CPECCTL_PECEN_A { match self . bits { false => MASTER_I2CPECCTL_PECEN_A :: MASTER_I2CPECCTL_PECEN_DISABLE , true => MASTER_I2CPECCTL_PECEN_A :: MASTER_I2CPECCTL_PECEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_master_i2cpecctl_pecen_disable (& self) -> bool { * self == MASTER_I2CPECCTL_PECEN_A :: MASTER_I2CPECCTL_PECEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_master_i2cpecctl_pecen_enable (& self) -> bool { * self == MASTER_I2CPECCTL_PECEN_A :: MASTER_I2CPECCTL_PECEN_ENABLE } } # [doc = "Field `MASTER_I2CPECCTL_PECEN` writer - PEC Enable This bit enables the SMB Packet Error Checking (PEC). When enabled the PEC is calculated on all bits accept the Start, Stop, Ack and Nack. The PEC LSFR and the Byte Counter is set to 0 when the State Machine is in the IDLE state, which occur following a Stop or when a timeout occurs. The Counter is also set to 0 after the PEC byte is sent or received. Note that the NACK is automatically send following a PEC byte that results in a PEC error. The PEC Polynomial is x^8 + x^2 + x^1 + 1."]
pub type MASTER_I2CPECCTL_PECEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MASTER_I2CPECCTL_PECEN_A > ; impl < 'a , REG , const O : u8 > MASTER_I2CPECCTL_PECEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn master_i2cpecctl_pecen_disable (self) -> & 'a mut crate :: W < REG > { self . variant (MASTER_I2CPECCTL_PECEN_A :: MASTER_I2CPECCTL_PECEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn master_i2cpecctl_pecen_enable (self) -> & 'a mut crate :: W < REG > { self . variant (MASTER_I2CPECCTL_PECEN_A :: MASTER_I2CPECCTL_PECEN_ENABLE) } } impl R { # [doc = "Bits 0:8 - PEC Count When this field is non zero, the number of I2C bytes are counted (Note that although the PEC is calculated on the I2C address it is not counted at a byte). When the byte count = PECCNT and the state machine is transmitting, the contents of the LSFR is loaded into the shift register instead of the byte received from the Tx FIFO. When the state machine is receiving, after the last bit of this byte is received the LSFR is checked and if it is non-zero, a PEC RX Error interrupt is generated. The I2C packet must be padded to include the PEC byte for both transmit and receive. In transmit mode the FIFO must be loaded with a dummy PEC byte. In receive mode the PEC byte will be passed to the Rx FIFO. In the normal Master use case, FW would set PECEN=1 and PECCNT=SMB packet length (Not including Slave Address byte, but including the PEC byte). FW would then configure DMA to allow the packet to complete unassisted and write MCTR to initiate the transaction. Note that when the byte count = PEC CNT, the byte count is reset to 0 and multiple PEC calculation can automatically occur within a single I2C transaction. Note that any write to the MASTER_I2CPECCTL Register will clear the current PEC Byte Count in the Master State Machine."]
# [inline (always)]
pub fn master_i2cpecctl_peccnt (& self) -> MASTER_I2CPECCTL_PECCNT_R { MASTER_I2CPECCTL_PECCNT_R :: new ((self . bits & 0x01ff) as u16) } # [doc = "Bit 12 - PEC Enable This bit enables the SMB Packet Error Checking (PEC). When enabled the PEC is calculated on all bits accept the Start, Stop, Ack and Nack. The PEC LSFR and the Byte Counter is set to 0 when the State Machine is in the IDLE state, which occur following a Stop or when a timeout occurs. The Counter is also set to 0 after the PEC byte is sent or received. Note that the NACK is automatically send following a PEC byte that results in a PEC error. The PEC Polynomial is x^8 + x^2 + x^1 + 1."]
# [inline (always)]
pub fn master_i2cpecctl_pecen (& self) -> MASTER_I2CPECCTL_PECEN_R { MASTER_I2CPECCTL_PECEN_R :: new (((self . bits >> 12) & 1) != 0) } } impl W { # [doc = "Bits 0:8 - PEC Count When this field is non zero, the number of I2C bytes are counted (Note that although the PEC is calculated on the I2C address it is not counted at a byte). When the byte count = PECCNT and the state machine is transmitting, the contents of the LSFR is loaded into the shift register instead of the byte received from the Tx FIFO. When the state machine is receiving, after the last bit of this byte is received the LSFR is checked and if it is non-zero, a PEC RX Error interrupt is generated. The I2C packet must be padded to include the PEC byte for both transmit and receive. In transmit mode the FIFO must be loaded with a dummy PEC byte. In receive mode the PEC byte will be passed to the Rx FIFO. In the normal Master use case, FW would set PECEN=1 and PECCNT=SMB packet length (Not including Slave Address byte, but including the PEC byte). FW would then configure DMA to allow the packet to complete unassisted and write MCTR to initiate the transaction. Note that when the byte count = PEC CNT, the byte count is reset to 0 and multiple PEC calculation can automatically occur within a single I2C transaction. Note that any write to the MASTER_I2CPECCTL Register will clear the current PEC Byte Count in the Master State Machine."]
# [inline (always)]
# [must_use]
pub fn master_i2cpecctl_peccnt (& mut self) -> MASTER_I2CPECCTL_PECCNT_W < MASTER_I2CPECCTL_SPEC , 0 > { MASTER_I2CPECCTL_PECCNT_W :: new (self) } # [doc = "Bit 12 - PEC Enable This bit enables the SMB Packet Error Checking (PEC). When enabled the PEC is calculated on all bits accept the Start, Stop, Ack and Nack. The PEC LSFR and the Byte Counter is set to 0 when the State Machine is in the IDLE state, which occur following a Stop or when a timeout occurs. The Counter is also set to 0 after the PEC byte is sent or received. Note that the NACK is automatically send following a PEC byte that results in a PEC error. The PEC Polynomial is x^8 + x^2 + x^1 + 1."]
# [inline (always)]
# [must_use]
pub fn master_i2cpecctl_pecen (& mut self) -> MASTER_I2CPECCTL_PECEN_W < MASTER_I2CPECCTL_SPEC , 12 > { MASTER_I2CPECCTL_PECEN_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "I2C master PEC control register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`master_i2cpecctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`master_i2cpecctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MASTER_I2CPECCTL_SPEC ; impl crate :: RegisterSpec for MASTER_I2CPECCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`master_i2cpecctl::R`](R) reader structure"]
impl crate :: Readable for MASTER_I2CPECCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`master_i2cpecctl::W`](W) writer structure"]
impl crate :: Writable for MASTER_I2CPECCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets MASTER_I2CPECCTL to value 0"]
impl crate :: Resettable for MASTER_I2CPECCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "MASTER_PECSR (r) register accessor: I2C master PEC status register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`master_pecsr::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@master_pecsr`]
module"]
pub type MASTER_PECSR = crate :: Reg < master_pecsr :: MASTER_PECSR_SPEC > ; # [doc = "I2C master PEC status register"]
pub mod master_pecsr { # [doc = "Register `MASTER_PECSR` reader"]
pub type R = crate :: R < MASTER_PECSR_SPEC > ; # [doc = "Field `MASTER_PECSR_PECBYTECNT` reader - PEC Byte Count This is the current PEC Byte Count of the Master State Machine."]
pub type MASTER_PECSR_PECBYTECNT_R = crate :: FieldReader < u16 > ; # [doc = "Field `MASTER_PECSR_PECSTS_CHECK` reader - This status bit indicates if the PEC was checked in the transaction that occurred before the last Stop. Latched on Stop."]
pub type MASTER_PECSR_PECSTS_CHECK_R = crate :: BitReader < MASTER_PECSR_PECSTS_CHECK_A > ; # [doc = "This status bit indicates if the PEC was checked in the transaction that occurred before the last Stop. Latched on Stop.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MASTER_PECSR_PECSTS_CHECK_A { # [doc = "0: CLEARED"]
MASTER_PECSR_PECSTS_CHECK_CLEARED = 0 , # [doc = "1: SET"]
MASTER_PECSR_PECSTS_CHECK_SET = 1 , } impl From < MASTER_PECSR_PECSTS_CHECK_A > for bool { # [inline (always)]
fn from (variant : MASTER_PECSR_PECSTS_CHECK_A) -> Self { variant as u8 != 0 } } impl MASTER_PECSR_PECSTS_CHECK_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MASTER_PECSR_PECSTS_CHECK_A { match self . bits { false => MASTER_PECSR_PECSTS_CHECK_A :: MASTER_PECSR_PECSTS_CHECK_CLEARED , true => MASTER_PECSR_PECSTS_CHECK_A :: MASTER_PECSR_PECSTS_CHECK_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_master_pecsr_pecsts_check_cleared (& self) -> bool { * self == MASTER_PECSR_PECSTS_CHECK_A :: MASTER_PECSR_PECSTS_CHECK_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_master_pecsr_pecsts_check_set (& self) -> bool { * self == MASTER_PECSR_PECSTS_CHECK_A :: MASTER_PECSR_PECSTS_CHECK_SET } } # [doc = "Field `MASTER_PECSR_PECSTS_ERROR` reader - This status bit indicates if a PEC check error occurred in the transaction that occurred before the last Stop. Latched on Stop."]
pub type MASTER_PECSR_PECSTS_ERROR_R = crate :: BitReader < MASTER_PECSR_PECSTS_ERROR_A > ; # [doc = "This status bit indicates if a PEC check error occurred in the transaction that occurred before the last Stop. Latched on Stop.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MASTER_PECSR_PECSTS_ERROR_A { # [doc = "0: CLEARED"]
MASTER_PECSR_PECSTS_ERROR_CLEARED = 0 , # [doc = "1: SET"]
MASTER_PECSR_PECSTS_ERROR_SET = 1 , } impl From < MASTER_PECSR_PECSTS_ERROR_A > for bool { # [inline (always)]
fn from (variant : MASTER_PECSR_PECSTS_ERROR_A) -> Self { variant as u8 != 0 } } impl MASTER_PECSR_PECSTS_ERROR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MASTER_PECSR_PECSTS_ERROR_A { match self . bits { false => MASTER_PECSR_PECSTS_ERROR_A :: MASTER_PECSR_PECSTS_ERROR_CLEARED , true => MASTER_PECSR_PECSTS_ERROR_A :: MASTER_PECSR_PECSTS_ERROR_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_master_pecsr_pecsts_error_cleared (& self) -> bool { * self == MASTER_PECSR_PECSTS_ERROR_A :: MASTER_PECSR_PECSTS_ERROR_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_master_pecsr_pecsts_error_set (& self) -> bool { * self == MASTER_PECSR_PECSTS_ERROR_A :: MASTER_PECSR_PECSTS_ERROR_SET } } impl R { # [doc = "Bits 0:8 - PEC Byte Count This is the current PEC Byte Count of the Master State Machine."]
# [inline (always)]
pub fn master_pecsr_pecbytecnt (& self) -> MASTER_PECSR_PECBYTECNT_R { MASTER_PECSR_PECBYTECNT_R :: new ((self . bits & 0x01ff) as u16) } # [doc = "Bit 16 - This status bit indicates if the PEC was checked in the transaction that occurred before the last Stop. Latched on Stop."]
# [inline (always)]
pub fn master_pecsr_pecsts_check (& self) -> MASTER_PECSR_PECSTS_CHECK_R { MASTER_PECSR_PECSTS_CHECK_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 17 - This status bit indicates if a PEC check error occurred in the transaction that occurred before the last Stop. Latched on Stop."]
# [inline (always)]
pub fn master_pecsr_pecsts_error (& self) -> MASTER_PECSR_PECSTS_ERROR_R { MASTER_PECSR_PECSTS_ERROR_R :: new (((self . bits >> 17) & 1) != 0) } } # [doc = "I2C master PEC status register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`master_pecsr::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MASTER_PECSR_SPEC ; impl crate :: RegisterSpec for MASTER_PECSR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`master_pecsr::R`](R) reader structure"]
impl crate :: Readable for MASTER_PECSR_SPEC { } # [doc = "`reset()` method sets MASTER_PECSR to value 0"]
impl crate :: Resettable for MASTER_PECSR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "SOAR (rw) register accessor: I2C Slave Own Address\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`soar::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`soar::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@soar`]
module"]
pub type SOAR = crate :: Reg < soar :: SOAR_SPEC > ; # [doc = "I2C Slave Own Address"]
pub mod soar { # [doc = "Register `SOAR` reader"]
pub type R = crate :: R < SOAR_SPEC > ; # [doc = "Register `SOAR` writer"]
pub type W = crate :: W < SOAR_SPEC > ; # [doc = "Field `SOAR_OAR` reader - I2C Slave Own Address: This field specifies bits A9 through A0 of the slave address. In 7-bit addressing mode as selected by I2CSOAR.MODE bit, the top 3 bits are don't care"]
pub type SOAR_OAR_R = crate :: FieldReader < u16 > ; # [doc = "Field `SOAR_OAR` writer - I2C Slave Own Address: This field specifies bits A9 through A0 of the slave address. In 7-bit addressing mode as selected by I2CSOAR.MODE bit, the top 3 bits are don't care"]
pub type SOAR_OAR_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 10 , O , u16 > ; # [doc = "Field `SOAR_OAREN` reader - I2C Slave Own Address Enable"]
pub type SOAR_OAREN_R = crate :: BitReader < SOAR_OAREN_A > ; # [doc = "I2C Slave Own Address Enable\n\nValue on reset: 1"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SOAR_OAREN_A { # [doc = "0: DISABLE"]
SOAR_OAREN_DISABLE = 0 , # [doc = "1: ENABLE"]
SOAR_OAREN_ENABLE = 1 , } impl From < SOAR_OAREN_A > for bool { # [inline (always)]
fn from (variant : SOAR_OAREN_A) -> Self { variant as u8 != 0 } } impl SOAR_OAREN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SOAR_OAREN_A { match self . bits { false => SOAR_OAREN_A :: SOAR_OAREN_DISABLE , true => SOAR_OAREN_A :: SOAR_OAREN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_soar_oaren_disable (& self) -> bool { * self == SOAR_OAREN_A :: SOAR_OAREN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_soar_oaren_enable (& self) -> bool { * self == SOAR_OAREN_A :: SOAR_OAREN_ENABLE } } # [doc = "Field `SOAR_OAREN` writer - I2C Slave Own Address Enable"]
pub type SOAR_OAREN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SOAR_OAREN_A > ; impl < 'a , REG , const O : u8 > SOAR_OAREN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn soar_oaren_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SOAR_OAREN_A :: SOAR_OAREN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn soar_oaren_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SOAR_OAREN_A :: SOAR_OAREN_ENABLE) } } # [doc = "Field `SOAR_SMODE` reader - This bit selects the adressing mode to be used in slave mode. When 0, 7-bit addressing is used. When 1, 10-bit addressing is used."]
pub type SOAR_SMODE_R = crate :: BitReader < SOAR_SMODE_A > ; # [doc = "This bit selects the adressing mode to be used in slave mode. When 0, 7-bit addressing is used. When 1, 10-bit addressing is used.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SOAR_SMODE_A { # [doc = "0: MODE7"]
SOAR_SMODE_MODE7 = 0 , # [doc = "1: MODE10"]
SOAR_SMODE_MODE10 = 1 , } impl From < SOAR_SMODE_A > for bool { # [inline (always)]
fn from (variant : SOAR_SMODE_A) -> Self { variant as u8 != 0 } } impl SOAR_SMODE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SOAR_SMODE_A { match self . bits { false => SOAR_SMODE_A :: SOAR_SMODE_MODE7 , true => SOAR_SMODE_A :: SOAR_SMODE_MODE10 , } } # [doc = "MODE7"]
# [inline (always)]
pub fn is_soar_smode_mode7 (& self) -> bool { * self == SOAR_SMODE_A :: SOAR_SMODE_MODE7 } # [doc = "MODE10"]
# [inline (always)]
pub fn is_soar_smode_mode10 (& self) -> bool { * self == SOAR_SMODE_A :: SOAR_SMODE_MODE10 } } # [doc = "Field `SOAR_SMODE` writer - This bit selects the adressing mode to be used in slave mode. When 0, 7-bit addressing is used. When 1, 10-bit addressing is used."]
pub type SOAR_SMODE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SOAR_SMODE_A > ; impl < 'a , REG , const O : u8 > SOAR_SMODE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "MODE7"]
# [inline (always)]
pub fn soar_smode_mode7 (self) -> & 'a mut crate :: W < REG > { self . variant (SOAR_SMODE_A :: SOAR_SMODE_MODE7) } # [doc = "MODE10"]
# [inline (always)]
pub fn soar_smode_mode10 (self) -> & 'a mut crate :: W < REG > { self . variant (SOAR_SMODE_A :: SOAR_SMODE_MODE10) } } impl R { # [doc = "Bits 0:9 - I2C Slave Own Address: This field specifies bits A9 through A0 of the slave address. In 7-bit addressing mode as selected by I2CSOAR.MODE bit, the top 3 bits are don't care"]
# [inline (always)]
pub fn soar_oar (& self) -> SOAR_OAR_R { SOAR_OAR_R :: new ((self . bits & 0x03ff) as u16) } # [doc = "Bit 14 - I2C Slave Own Address Enable"]
# [inline (always)]
pub fn soar_oaren (& self) -> SOAR_OAREN_R { SOAR_OAREN_R :: new (((self . bits >> 14) & 1) != 0) } # [doc = "Bit 15 - This bit selects the adressing mode to be used in slave mode. When 0, 7-bit addressing is used. When 1, 10-bit addressing is used."]
# [inline (always)]
pub fn soar_smode (& self) -> SOAR_SMODE_R { SOAR_SMODE_R :: new (((self . bits >> 15) & 1) != 0) } } impl W { # [doc = "Bits 0:9 - I2C Slave Own Address: This field specifies bits A9 through A0 of the slave address. In 7-bit addressing mode as selected by I2CSOAR.MODE bit, the top 3 bits are don't care"]
# [inline (always)]
# [must_use]
pub fn soar_oar (& mut self) -> SOAR_OAR_W < SOAR_SPEC , 0 > { SOAR_OAR_W :: new (self) } # [doc = "Bit 14 - I2C Slave Own Address Enable"]
# [inline (always)]
# [must_use]
pub fn soar_oaren (& mut self) -> SOAR_OAREN_W < SOAR_SPEC , 14 > { SOAR_OAREN_W :: new (self) } # [doc = "Bit 15 - This bit selects the adressing mode to be used in slave mode. When 0, 7-bit addressing is used. When 1, 10-bit addressing is used."]
# [inline (always)]
# [must_use]
pub fn soar_smode (& mut self) -> SOAR_SMODE_W < SOAR_SPEC , 15 > { SOAR_SMODE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "I2C Slave Own Address\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`soar::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`soar::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SOAR_SPEC ; impl crate :: RegisterSpec for SOAR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`soar::R`](R) reader structure"]
impl crate :: Readable for SOAR_SPEC { } # [doc = "`write(|w| ..)` method takes [`soar::W`](W) writer structure"]
impl crate :: Writable for SOAR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets SOAR to value 0x4000"]
impl crate :: Resettable for SOAR_SPEC { const RESET_VALUE : Self :: Ux = 0x4000 ; } } # [doc = "SOAR2 (rw) register accessor: I2C Slave Own Address 2\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`soar2::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`soar2::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@soar2`]
module"]
pub type SOAR2 = crate :: Reg < soar2 :: SOAR2_SPEC > ; # [doc = "I2C Slave Own Address 2"]
pub mod soar2 { # [doc = "Register `SOAR2` reader"]
pub type R = crate :: R < SOAR2_SPEC > ; # [doc = "Register `SOAR2` writer"]
pub type W = crate :: W < SOAR2_SPEC > ; # [doc = "Field `SOAR2_OAR2` reader - I2C Slave Own Address 2 This field specifies the alternate OAR2 address."]
pub type SOAR2_OAR2_R = crate :: FieldReader ; # [doc = "Field `SOAR2_OAR2` writer - I2C Slave Own Address 2 This field specifies the alternate OAR2 address."]
pub type SOAR2_OAR2_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 7 , O > ; # [doc = "Field `SOAR2_OAR2EN` reader - I2C Slave Own Address 2 Enable"]
pub type SOAR2_OAR2EN_R = crate :: BitReader < SOAR2_OAR2EN_A > ; # [doc = "I2C Slave Own Address 2 Enable\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SOAR2_OAR2EN_A { # [doc = "0: DISABLE"]
SOAR2_OAR2EN_DISABLE = 0 , # [doc = "1: ENABLE"]
SOAR2_OAR2EN_ENABLE = 1 , } impl From < SOAR2_OAR2EN_A > for bool { # [inline (always)]
fn from (variant : SOAR2_OAR2EN_A) -> Self { variant as u8 != 0 } } impl SOAR2_OAR2EN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SOAR2_OAR2EN_A { match self . bits { false => SOAR2_OAR2EN_A :: SOAR2_OAR2EN_DISABLE , true => SOAR2_OAR2EN_A :: SOAR2_OAR2EN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_soar2_oar2en_disable (& self) -> bool { * self == SOAR2_OAR2EN_A :: SOAR2_OAR2EN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_soar2_oar2en_enable (& self) -> bool { * self == SOAR2_OAR2EN_A :: SOAR2_OAR2EN_ENABLE } } # [doc = "Field `SOAR2_OAR2EN` writer - I2C Slave Own Address 2 Enable"]
pub type SOAR2_OAR2EN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SOAR2_OAR2EN_A > ; impl < 'a , REG , const O : u8 > SOAR2_OAR2EN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn soar2_oar2en_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SOAR2_OAR2EN_A :: SOAR2_OAR2EN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn soar2_oar2en_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SOAR2_OAR2EN_A :: SOAR2_OAR2EN_ENABLE) } } # [doc = "Field `SOAR2_OAR2_MASK` reader - I2C Slave Own Address 2 Mask: This field specifies bits A6 through A0 of the slave address. The bits with value 1 in SOAR2.OAR2_MASK field will make the corresponding incoming address bits to match by default regardless of the value inside SOAR2.OAR2 i.e. corresponding SOAR2.OAR2 bit is a dont care."]
pub type SOAR2_OAR2_MASK_R = crate :: FieldReader ; # [doc = "Field `SOAR2_OAR2_MASK` writer - I2C Slave Own Address 2 Mask: This field specifies bits A6 through A0 of the slave address. The bits with value 1 in SOAR2.OAR2_MASK field will make the corresponding incoming address bits to match by default regardless of the value inside SOAR2.OAR2 i.e. corresponding SOAR2.OAR2 bit is a dont care."]
pub type SOAR2_OAR2_MASK_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 7 , O > ; impl R { # [doc = "Bits 0:6 - I2C Slave Own Address 2 This field specifies the alternate OAR2 address."]
# [inline (always)]
pub fn soar2_oar2 (& self) -> SOAR2_OAR2_R { SOAR2_OAR2_R :: new ((self . bits & 0x7f) as u8) } # [doc = "Bit 7 - I2C Slave Own Address 2 Enable"]
# [inline (always)]
pub fn soar2_oar2en (& self) -> SOAR2_OAR2EN_R { SOAR2_OAR2EN_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bits 16:22 - I2C Slave Own Address 2 Mask: This field specifies bits A6 through A0 of the slave address. The bits with value 1 in SOAR2.OAR2_MASK field will make the corresponding incoming address bits to match by default regardless of the value inside SOAR2.OAR2 i.e. corresponding SOAR2.OAR2 bit is a dont care."]
# [inline (always)]
pub fn soar2_oar2_mask (& self) -> SOAR2_OAR2_MASK_R { SOAR2_OAR2_MASK_R :: new (((self . bits >> 16) & 0x7f) as u8) } } impl W { # [doc = "Bits 0:6 - I2C Slave Own Address 2 This field specifies the alternate OAR2 address."]
# [inline (always)]
# [must_use]
pub fn soar2_oar2 (& mut self) -> SOAR2_OAR2_W < SOAR2_SPEC , 0 > { SOAR2_OAR2_W :: new (self) } # [doc = "Bit 7 - I2C Slave Own Address 2 Enable"]
# [inline (always)]
# [must_use]
pub fn soar2_oar2en (& mut self) -> SOAR2_OAR2EN_W < SOAR2_SPEC , 7 > { SOAR2_OAR2EN_W :: new (self) } # [doc = "Bits 16:22 - I2C Slave Own Address 2 Mask: This field specifies bits A6 through A0 of the slave address. The bits with value 1 in SOAR2.OAR2_MASK field will make the corresponding incoming address bits to match by default regardless of the value inside SOAR2.OAR2 i.e. corresponding SOAR2.OAR2 bit is a dont care."]
# [inline (always)]
# [must_use]
pub fn soar2_oar2_mask (& mut self) -> SOAR2_OAR2_MASK_W < SOAR2_SPEC , 16 > { SOAR2_OAR2_MASK_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "I2C Slave Own Address 2\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`soar2::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`soar2::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SOAR2_SPEC ; impl crate :: RegisterSpec for SOAR2_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`soar2::R`](R) reader structure"]
impl crate :: Readable for SOAR2_SPEC { } # [doc = "`write(|w| ..)` method takes [`soar2::W`](W) writer structure"]
impl crate :: Writable for SOAR2_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets SOAR2 to value 0"]
impl crate :: Resettable for SOAR2_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "SCTR (rw) register accessor: I2C Slave Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`sctr::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sctr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sctr`]
module"]
pub type SCTR = crate :: Reg < sctr :: SCTR_SPEC > ; # [doc = "I2C Slave Control Register"]
pub mod sctr { # [doc = "Register `SCTR` reader"]
pub type R = crate :: R < SCTR_SPEC > ; # [doc = "Register `SCTR` writer"]
pub type W = crate :: W < SCTR_SPEC > ; # [doc = "Field `SCTR_ACTIVE` reader - Device Active. Setting this bit enables the slave functionality."]
pub type SCTR_ACTIVE_R = crate :: BitReader < SCTR_ACTIVE_A > ; # [doc = "Device Active. Setting this bit enables the slave functionality.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SCTR_ACTIVE_A { # [doc = "0: DISABLE"]
SCTR_ACTIVE_DISABLE = 0 , # [doc = "1: ENABLE"]
SCTR_ACTIVE_ENABLE = 1 , } impl From < SCTR_ACTIVE_A > for bool { # [inline (always)]
fn from (variant : SCTR_ACTIVE_A) -> Self { variant as u8 != 0 } } impl SCTR_ACTIVE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SCTR_ACTIVE_A { match self . bits { false => SCTR_ACTIVE_A :: SCTR_ACTIVE_DISABLE , true => SCTR_ACTIVE_A :: SCTR_ACTIVE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sctr_active_disable (& self) -> bool { * self == SCTR_ACTIVE_A :: SCTR_ACTIVE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sctr_active_enable (& self) -> bool { * self == SCTR_ACTIVE_A :: SCTR_ACTIVE_ENABLE } } # [doc = "Field `SCTR_ACTIVE` writer - Device Active. Setting this bit enables the slave functionality."]
pub type SCTR_ACTIVE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SCTR_ACTIVE_A > ; impl < 'a , REG , const O : u8 > SCTR_ACTIVE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sctr_active_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_ACTIVE_A :: SCTR_ACTIVE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sctr_active_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_ACTIVE_A :: SCTR_ACTIVE_ENABLE) } } # [doc = "Field `SCTR_GENCALL` reader - General call response enable. This bit is only available in UCBxI2COA0. Modify only when UCSWRST = 1. 0b = Do not respond to a general call 1b = Respond to a general call"]
pub type SCTR_GENCALL_R = crate :: BitReader < SCTR_GENCALL_A > ; # [doc = "General call response enable. This bit is only available in UCBxI2COA0. Modify only when UCSWRST = 1. 0b = Do not respond to a general call 1b = Respond to a general call\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SCTR_GENCALL_A { # [doc = "0: DISABLE"]
SCTR_GENCALL_DISABLE = 0 , # [doc = "1: ENABLE"]
SCTR_GENCALL_ENABLE = 1 , } impl From < SCTR_GENCALL_A > for bool { # [inline (always)]
fn from (variant : SCTR_GENCALL_A) -> Self { variant as u8 != 0 } } impl SCTR_GENCALL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SCTR_GENCALL_A { match self . bits { false => SCTR_GENCALL_A :: SCTR_GENCALL_DISABLE , true => SCTR_GENCALL_A :: SCTR_GENCALL_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sctr_gencall_disable (& self) -> bool { * self == SCTR_GENCALL_A :: SCTR_GENCALL_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sctr_gencall_enable (& self) -> bool { * self == SCTR_GENCALL_A :: SCTR_GENCALL_ENABLE } } # [doc = "Field `SCTR_GENCALL` writer - General call response enable. This bit is only available in UCBxI2COA0. Modify only when UCSWRST = 1. 0b = Do not respond to a general call 1b = Respond to a general call"]
pub type SCTR_GENCALL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SCTR_GENCALL_A > ; impl < 'a , REG , const O : u8 > SCTR_GENCALL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sctr_gencall_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_GENCALL_A :: SCTR_GENCALL_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sctr_gencall_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_GENCALL_A :: SCTR_GENCALL_ENABLE) } } # [doc = "Field `SCTR_SCLKSTRETCH` reader - Slave Clock Stretch Enable"]
pub type SCTR_SCLKSTRETCH_R = crate :: BitReader < SCTR_SCLKSTRETCH_A > ; # [doc = "Slave Clock Stretch Enable\n\nValue on reset: 1"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SCTR_SCLKSTRETCH_A { # [doc = "0: DISABLE"]
SCTR_SCLKSTRETCH_DISABLE = 0 , # [doc = "1: ENABLE"]
SCTR_SCLKSTRETCH_ENABLE = 1 , } impl From < SCTR_SCLKSTRETCH_A > for bool { # [inline (always)]
fn from (variant : SCTR_SCLKSTRETCH_A) -> Self { variant as u8 != 0 } } impl SCTR_SCLKSTRETCH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SCTR_SCLKSTRETCH_A { match self . bits { false => SCTR_SCLKSTRETCH_A :: SCTR_SCLKSTRETCH_DISABLE , true => SCTR_SCLKSTRETCH_A :: SCTR_SCLKSTRETCH_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sctr_sclkstretch_disable (& self) -> bool { * self == SCTR_SCLKSTRETCH_A :: SCTR_SCLKSTRETCH_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sctr_sclkstretch_enable (& self) -> bool { * self == SCTR_SCLKSTRETCH_A :: SCTR_SCLKSTRETCH_ENABLE } } # [doc = "Field `SCTR_SCLKSTRETCH` writer - Slave Clock Stretch Enable"]
pub type SCTR_SCLKSTRETCH_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SCTR_SCLKSTRETCH_A > ; impl < 'a , REG , const O : u8 > SCTR_SCLKSTRETCH_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sctr_sclkstretch_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_SCLKSTRETCH_A :: SCTR_SCLKSTRETCH_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sctr_sclkstretch_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_SCLKSTRETCH_A :: SCTR_SCLKSTRETCH_ENABLE) } } # [doc = "Field `SCTR_TXEMPTY_ON_TREQ` reader - Tx Empty Interrupt on TREQ"]
pub type SCTR_TXEMPTY_ON_TREQ_R = crate :: BitReader < SCTR_TXEMPTY_ON_TREQ_A > ; # [doc = "Tx Empty Interrupt on TREQ\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SCTR_TXEMPTY_ON_TREQ_A { # [doc = "0: DISABLE"]
SCTR_TXEMPTY_ON_TREQ_DISABLE = 0 , # [doc = "1: ENABLE"]
SCTR_TXEMPTY_ON_TREQ_ENABLE = 1 , } impl From < SCTR_TXEMPTY_ON_TREQ_A > for bool { # [inline (always)]
fn from (variant : SCTR_TXEMPTY_ON_TREQ_A) -> Self { variant as u8 != 0 } } impl SCTR_TXEMPTY_ON_TREQ_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SCTR_TXEMPTY_ON_TREQ_A { match self . bits { false => SCTR_TXEMPTY_ON_TREQ_A :: SCTR_TXEMPTY_ON_TREQ_DISABLE , true => SCTR_TXEMPTY_ON_TREQ_A :: SCTR_TXEMPTY_ON_TREQ_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sctr_txempty_on_treq_disable (& self) -> bool { * self == SCTR_TXEMPTY_ON_TREQ_A :: SCTR_TXEMPTY_ON_TREQ_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sctr_txempty_on_treq_enable (& self) -> bool { * self == SCTR_TXEMPTY_ON_TREQ_A :: SCTR_TXEMPTY_ON_TREQ_ENABLE } } # [doc = "Field `SCTR_TXEMPTY_ON_TREQ` writer - Tx Empty Interrupt on TREQ"]
pub type SCTR_TXEMPTY_ON_TREQ_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SCTR_TXEMPTY_ON_TREQ_A > ; impl < 'a , REG , const O : u8 > SCTR_TXEMPTY_ON_TREQ_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sctr_txempty_on_treq_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_TXEMPTY_ON_TREQ_A :: SCTR_TXEMPTY_ON_TREQ_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sctr_txempty_on_treq_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_TXEMPTY_ON_TREQ_A :: SCTR_TXEMPTY_ON_TREQ_ENABLE) } } # [doc = "Field `SCTR_TXTRIG_TXMODE` reader - Tx Trigger when slave FSM is in Tx Mode"]
pub type SCTR_TXTRIG_TXMODE_R = crate :: BitReader < SCTR_TXTRIG_TXMODE_A > ; # [doc = "Tx Trigger when slave FSM is in Tx Mode\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SCTR_TXTRIG_TXMODE_A { # [doc = "0: DISABLE"]
SCTR_TXTRIG_TXMODE_DISABLE = 0 , # [doc = "1: ENABLE"]
SCTR_TXTRIG_TXMODE_ENABLE = 1 , } impl From < SCTR_TXTRIG_TXMODE_A > for bool { # [inline (always)]
fn from (variant : SCTR_TXTRIG_TXMODE_A) -> Self { variant as u8 != 0 } } impl SCTR_TXTRIG_TXMODE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SCTR_TXTRIG_TXMODE_A { match self . bits { false => SCTR_TXTRIG_TXMODE_A :: SCTR_TXTRIG_TXMODE_DISABLE , true => SCTR_TXTRIG_TXMODE_A :: SCTR_TXTRIG_TXMODE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sctr_txtrig_txmode_disable (& self) -> bool { * self == SCTR_TXTRIG_TXMODE_A :: SCTR_TXTRIG_TXMODE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sctr_txtrig_txmode_enable (& self) -> bool { * self == SCTR_TXTRIG_TXMODE_A :: SCTR_TXTRIG_TXMODE_ENABLE } } # [doc = "Field `SCTR_TXTRIG_TXMODE` writer - Tx Trigger when slave FSM is in Tx Mode"]
pub type SCTR_TXTRIG_TXMODE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SCTR_TXTRIG_TXMODE_A > ; impl < 'a , REG , const O : u8 > SCTR_TXTRIG_TXMODE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sctr_txtrig_txmode_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_TXTRIG_TXMODE_A :: SCTR_TXTRIG_TXMODE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sctr_txtrig_txmode_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_TXTRIG_TXMODE_A :: SCTR_TXTRIG_TXMODE_ENABLE) } } # [doc = "Field `SCTR_TXWAIT_STALE_TXFIFO` reader - Tx transfer waits when stale data in Tx FIFO. This prevents stale bytes left in the TX FIFO from automatically being sent on the next I2C packet. Note: this should be used with TXEMPTY_ON_TREQ set to prevent the Slave State Machine from waiting for TX FIFO data without an interrupt notification when the FIFO data is stale."]
pub type SCTR_TXWAIT_STALE_TXFIFO_R = crate :: BitReader < SCTR_TXWAIT_STALE_TXFIFO_A > ; # [doc = "Tx transfer waits when stale data in Tx FIFO. This prevents stale bytes left in the TX FIFO from automatically being sent on the next I2C packet. Note: this should be used with TXEMPTY_ON_TREQ set to prevent the Slave State Machine from waiting for TX FIFO data without an interrupt notification when the FIFO data is stale.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SCTR_TXWAIT_STALE_TXFIFO_A { # [doc = "0: DISABLE"]
SCTR_TXWAIT_STALE_TXFIFO_DISABLE = 0 , # [doc = "1: ENABLE"]
SCTR_TXWAIT_STALE_TXFIFO_ENABLE = 1 , } impl From < SCTR_TXWAIT_STALE_TXFIFO_A > for bool { # [inline (always)]
fn from (variant : SCTR_TXWAIT_STALE_TXFIFO_A) -> Self { variant as u8 != 0 } } impl SCTR_TXWAIT_STALE_TXFIFO_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SCTR_TXWAIT_STALE_TXFIFO_A { match self . bits { false => SCTR_TXWAIT_STALE_TXFIFO_A :: SCTR_TXWAIT_STALE_TXFIFO_DISABLE , true => SCTR_TXWAIT_STALE_TXFIFO_A :: SCTR_TXWAIT_STALE_TXFIFO_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sctr_txwait_stale_txfifo_disable (& self) -> bool { * self == SCTR_TXWAIT_STALE_TXFIFO_A :: SCTR_TXWAIT_STALE_TXFIFO_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sctr_txwait_stale_txfifo_enable (& self) -> bool { * self == SCTR_TXWAIT_STALE_TXFIFO_A :: SCTR_TXWAIT_STALE_TXFIFO_ENABLE } } # [doc = "Field `SCTR_TXWAIT_STALE_TXFIFO` writer - Tx transfer waits when stale data in Tx FIFO. This prevents stale bytes left in the TX FIFO from automatically being sent on the next I2C packet. Note: this should be used with TXEMPTY_ON_TREQ set to prevent the Slave State Machine from waiting for TX FIFO data without an interrupt notification when the FIFO data is stale."]
pub type SCTR_TXWAIT_STALE_TXFIFO_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SCTR_TXWAIT_STALE_TXFIFO_A > ; impl < 'a , REG , const O : u8 > SCTR_TXWAIT_STALE_TXFIFO_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sctr_txwait_stale_txfifo_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_TXWAIT_STALE_TXFIFO_A :: SCTR_TXWAIT_STALE_TXFIFO_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sctr_txwait_stale_txfifo_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_TXWAIT_STALE_TXFIFO_A :: SCTR_TXWAIT_STALE_TXFIFO_ENABLE) } } # [doc = "Field `SCTR_RXFULL_ON_RREQ` reader - Rx full interrupt generated on RREQ condition as indicated in SSR"]
pub type SCTR_RXFULL_ON_RREQ_R = crate :: BitReader < SCTR_RXFULL_ON_RREQ_A > ; # [doc = "Rx full interrupt generated on RREQ condition as indicated in SSR\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SCTR_RXFULL_ON_RREQ_A { # [doc = "0: DISABLE"]
SCTR_RXFULL_ON_RREQ_DISABLE = 0 , # [doc = "1: ENABLE"]
SCTR_RXFULL_ON_RREQ_ENABLE = 1 , } impl From < SCTR_RXFULL_ON_RREQ_A > for bool { # [inline (always)]
fn from (variant : SCTR_RXFULL_ON_RREQ_A) -> Self { variant as u8 != 0 } } impl SCTR_RXFULL_ON_RREQ_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SCTR_RXFULL_ON_RREQ_A { match self . bits { false => SCTR_RXFULL_ON_RREQ_A :: SCTR_RXFULL_ON_RREQ_DISABLE , true => SCTR_RXFULL_ON_RREQ_A :: SCTR_RXFULL_ON_RREQ_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sctr_rxfull_on_rreq_disable (& self) -> bool { * self == SCTR_RXFULL_ON_RREQ_A :: SCTR_RXFULL_ON_RREQ_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sctr_rxfull_on_rreq_enable (& self) -> bool { * self == SCTR_RXFULL_ON_RREQ_A :: SCTR_RXFULL_ON_RREQ_ENABLE } } # [doc = "Field `SCTR_RXFULL_ON_RREQ` writer - Rx full interrupt generated on RREQ condition as indicated in SSR"]
pub type SCTR_RXFULL_ON_RREQ_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SCTR_RXFULL_ON_RREQ_A > ; impl < 'a , REG , const O : u8 > SCTR_RXFULL_ON_RREQ_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sctr_rxfull_on_rreq_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_RXFULL_ON_RREQ_A :: SCTR_RXFULL_ON_RREQ_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sctr_rxfull_on_rreq_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_RXFULL_ON_RREQ_A :: SCTR_RXFULL_ON_RREQ_ENABLE) } } # [doc = "Field `SCTR_EN_DEFHOSTADR` reader - Enable Default Host Address"]
pub type SCTR_EN_DEFHOSTADR_R = crate :: BitReader < SCTR_EN_DEFHOSTADR_A > ; # [doc = "Enable Default Host Address\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SCTR_EN_DEFHOSTADR_A { # [doc = "0: DISABLE"]
SCTR_EN_DEFHOSTADR_DISABLE = 0 , # [doc = "1: ENABLE"]
SCTR_EN_DEFHOSTADR_ENABLE = 1 , } impl From < SCTR_EN_DEFHOSTADR_A > for bool { # [inline (always)]
fn from (variant : SCTR_EN_DEFHOSTADR_A) -> Self { variant as u8 != 0 } } impl SCTR_EN_DEFHOSTADR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SCTR_EN_DEFHOSTADR_A { match self . bits { false => SCTR_EN_DEFHOSTADR_A :: SCTR_EN_DEFHOSTADR_DISABLE , true => SCTR_EN_DEFHOSTADR_A :: SCTR_EN_DEFHOSTADR_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sctr_en_defhostadr_disable (& self) -> bool { * self == SCTR_EN_DEFHOSTADR_A :: SCTR_EN_DEFHOSTADR_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sctr_en_defhostadr_enable (& self) -> bool { * self == SCTR_EN_DEFHOSTADR_A :: SCTR_EN_DEFHOSTADR_ENABLE } } # [doc = "Field `SCTR_EN_DEFHOSTADR` writer - Enable Default Host Address"]
pub type SCTR_EN_DEFHOSTADR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SCTR_EN_DEFHOSTADR_A > ; impl < 'a , REG , const O : u8 > SCTR_EN_DEFHOSTADR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sctr_en_defhostadr_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_EN_DEFHOSTADR_A :: SCTR_EN_DEFHOSTADR_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sctr_en_defhostadr_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_EN_DEFHOSTADR_A :: SCTR_EN_DEFHOSTADR_ENABLE) } } # [doc = "Field `SCTR_EN_ALRESPADR` reader - Enable Alert Response Address"]
pub type SCTR_EN_ALRESPADR_R = crate :: BitReader < SCTR_EN_ALRESPADR_A > ; # [doc = "Enable Alert Response Address\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SCTR_EN_ALRESPADR_A { # [doc = "0: DISABLE"]
SCTR_EN_ALRESPADR_DISABLE = 0 , # [doc = "1: ENABLE"]
SCTR_EN_ALRESPADR_ENABLE = 1 , } impl From < SCTR_EN_ALRESPADR_A > for bool { # [inline (always)]
fn from (variant : SCTR_EN_ALRESPADR_A) -> Self { variant as u8 != 0 } } impl SCTR_EN_ALRESPADR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SCTR_EN_ALRESPADR_A { match self . bits { false => SCTR_EN_ALRESPADR_A :: SCTR_EN_ALRESPADR_DISABLE , true => SCTR_EN_ALRESPADR_A :: SCTR_EN_ALRESPADR_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sctr_en_alrespadr_disable (& self) -> bool { * self == SCTR_EN_ALRESPADR_A :: SCTR_EN_ALRESPADR_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sctr_en_alrespadr_enable (& self) -> bool { * self == SCTR_EN_ALRESPADR_A :: SCTR_EN_ALRESPADR_ENABLE } } # [doc = "Field `SCTR_EN_ALRESPADR` writer - Enable Alert Response Address"]
pub type SCTR_EN_ALRESPADR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SCTR_EN_ALRESPADR_A > ; impl < 'a , REG , const O : u8 > SCTR_EN_ALRESPADR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sctr_en_alrespadr_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_EN_ALRESPADR_A :: SCTR_EN_ALRESPADR_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sctr_en_alrespadr_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_EN_ALRESPADR_A :: SCTR_EN_ALRESPADR_ENABLE) } } # [doc = "Field `SCTR_EN_DEFDEVADR` reader - Enable Deault device address"]
pub type SCTR_EN_DEFDEVADR_R = crate :: BitReader < SCTR_EN_DEFDEVADR_A > ; # [doc = "Enable Deault device address\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SCTR_EN_DEFDEVADR_A { # [doc = "0: DISABLE"]
SCTR_EN_DEFDEVADR_DISABLE = 0 , # [doc = "1: ENABLE"]
SCTR_EN_DEFDEVADR_ENABLE = 1 , } impl From < SCTR_EN_DEFDEVADR_A > for bool { # [inline (always)]
fn from (variant : SCTR_EN_DEFDEVADR_A) -> Self { variant as u8 != 0 } } impl SCTR_EN_DEFDEVADR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SCTR_EN_DEFDEVADR_A { match self . bits { false => SCTR_EN_DEFDEVADR_A :: SCTR_EN_DEFDEVADR_DISABLE , true => SCTR_EN_DEFDEVADR_A :: SCTR_EN_DEFDEVADR_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sctr_en_defdevadr_disable (& self) -> bool { * self == SCTR_EN_DEFDEVADR_A :: SCTR_EN_DEFDEVADR_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sctr_en_defdevadr_enable (& self) -> bool { * self == SCTR_EN_DEFDEVADR_A :: SCTR_EN_DEFDEVADR_ENABLE } } # [doc = "Field `SCTR_EN_DEFDEVADR` writer - Enable Deault device address"]
pub type SCTR_EN_DEFDEVADR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SCTR_EN_DEFDEVADR_A > ; impl < 'a , REG , const O : u8 > SCTR_EN_DEFDEVADR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sctr_en_defdevadr_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_EN_DEFDEVADR_A :: SCTR_EN_DEFDEVADR_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sctr_en_defdevadr_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_EN_DEFDEVADR_A :: SCTR_EN_DEFDEVADR_ENABLE) } } # [doc = "Field `SCTR_SWUEN` reader - Slave Wakeup Enable"]
pub type SCTR_SWUEN_R = crate :: BitReader < SCTR_SWUEN_A > ; # [doc = "Slave Wakeup Enable\n\nValue on reset: 1"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SCTR_SWUEN_A { # [doc = "0: DISABLE"]
SCTR_SWUEN_DISABLE = 0 , # [doc = "1: ENABLE"]
SCTR_SWUEN_ENABLE = 1 , } impl From < SCTR_SWUEN_A > for bool { # [inline (always)]
fn from (variant : SCTR_SWUEN_A) -> Self { variant as u8 != 0 } } impl SCTR_SWUEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SCTR_SWUEN_A { match self . bits { false => SCTR_SWUEN_A :: SCTR_SWUEN_DISABLE , true => SCTR_SWUEN_A :: SCTR_SWUEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sctr_swuen_disable (& self) -> bool { * self == SCTR_SWUEN_A :: SCTR_SWUEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sctr_swuen_enable (& self) -> bool { * self == SCTR_SWUEN_A :: SCTR_SWUEN_ENABLE } } # [doc = "Field `SCTR_SWUEN` writer - Slave Wakeup Enable"]
pub type SCTR_SWUEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SCTR_SWUEN_A > ; impl < 'a , REG , const O : u8 > SCTR_SWUEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sctr_swuen_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_SWUEN_A :: SCTR_SWUEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sctr_swuen_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SCTR_SWUEN_A :: SCTR_SWUEN_ENABLE) } } impl R { # [doc = "Bit 0 - Device Active. Setting this bit enables the slave functionality."]
# [inline (always)]
pub fn sctr_active (& self) -> SCTR_ACTIVE_R { SCTR_ACTIVE_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - General call response enable. This bit is only available in UCBxI2COA0. Modify only when UCSWRST = 1. 0b = Do not respond to a general call 1b = Respond to a general call"]
# [inline (always)]
pub fn sctr_gencall (& self) -> SCTR_GENCALL_R { SCTR_GENCALL_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Slave Clock Stretch Enable"]
# [inline (always)]
pub fn sctr_sclkstretch (& self) -> SCTR_SCLKSTRETCH_R { SCTR_SCLKSTRETCH_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Tx Empty Interrupt on TREQ"]
# [inline (always)]
pub fn sctr_txempty_on_treq (& self) -> SCTR_TXEMPTY_ON_TREQ_R { SCTR_TXEMPTY_ON_TREQ_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - Tx Trigger when slave FSM is in Tx Mode"]
# [inline (always)]
pub fn sctr_txtrig_txmode (& self) -> SCTR_TXTRIG_TXMODE_R { SCTR_TXTRIG_TXMODE_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Tx transfer waits when stale data in Tx FIFO. This prevents stale bytes left in the TX FIFO from automatically being sent on the next I2C packet. Note: this should be used with TXEMPTY_ON_TREQ set to prevent the Slave State Machine from waiting for TX FIFO data without an interrupt notification when the FIFO data is stale."]
# [inline (always)]
pub fn sctr_txwait_stale_txfifo (& self) -> SCTR_TXWAIT_STALE_TXFIFO_R { SCTR_TXWAIT_STALE_TXFIFO_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - Rx full interrupt generated on RREQ condition as indicated in SSR"]
# [inline (always)]
pub fn sctr_rxfull_on_rreq (& self) -> SCTR_RXFULL_ON_RREQ_R { SCTR_RXFULL_ON_RREQ_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 7 - Enable Default Host Address"]
# [inline (always)]
pub fn sctr_en_defhostadr (& self) -> SCTR_EN_DEFHOSTADR_R { SCTR_EN_DEFHOSTADR_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - Enable Alert Response Address"]
# [inline (always)]
pub fn sctr_en_alrespadr (& self) -> SCTR_EN_ALRESPADR_R { SCTR_EN_ALRESPADR_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - Enable Deault device address"]
# [inline (always)]
pub fn sctr_en_defdevadr (& self) -> SCTR_EN_DEFDEVADR_R { SCTR_EN_DEFDEVADR_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - Slave Wakeup Enable"]
# [inline (always)]
pub fn sctr_swuen (& self) -> SCTR_SWUEN_R { SCTR_SWUEN_R :: new (((self . bits >> 10) & 1) != 0) } } impl W { # [doc = "Bit 0 - Device Active. Setting this bit enables the slave functionality."]
# [inline (always)]
# [must_use]
pub fn sctr_active (& mut self) -> SCTR_ACTIVE_W < SCTR_SPEC , 0 > { SCTR_ACTIVE_W :: new (self) } # [doc = "Bit 1 - General call response enable. This bit is only available in UCBxI2COA0. Modify only when UCSWRST = 1. 0b = Do not respond to a general call 1b = Respond to a general call"]
# [inline (always)]
# [must_use]
pub fn sctr_gencall (& mut self) -> SCTR_GENCALL_W < SCTR_SPEC , 1 > { SCTR_GENCALL_W :: new (self) } # [doc = "Bit 2 - Slave Clock Stretch Enable"]
# [inline (always)]
# [must_use]
pub fn sctr_sclkstretch (& mut self) -> SCTR_SCLKSTRETCH_W < SCTR_SPEC , 2 > { SCTR_SCLKSTRETCH_W :: new (self) } # [doc = "Bit 3 - Tx Empty Interrupt on TREQ"]
# [inline (always)]
# [must_use]
pub fn sctr_txempty_on_treq (& mut self) -> SCTR_TXEMPTY_ON_TREQ_W < SCTR_SPEC , 3 > { SCTR_TXEMPTY_ON_TREQ_W :: new (self) } # [doc = "Bit 4 - Tx Trigger when slave FSM is in Tx Mode"]
# [inline (always)]
# [must_use]
pub fn sctr_txtrig_txmode (& mut self) -> SCTR_TXTRIG_TXMODE_W < SCTR_SPEC , 4 > { SCTR_TXTRIG_TXMODE_W :: new (self) } # [doc = "Bit 5 - Tx transfer waits when stale data in Tx FIFO. This prevents stale bytes left in the TX FIFO from automatically being sent on the next I2C packet. Note: this should be used with TXEMPTY_ON_TREQ set to prevent the Slave State Machine from waiting for TX FIFO data without an interrupt notification when the FIFO data is stale."]
# [inline (always)]
# [must_use]
pub fn sctr_txwait_stale_txfifo (& mut self) -> SCTR_TXWAIT_STALE_TXFIFO_W < SCTR_SPEC , 5 > { SCTR_TXWAIT_STALE_TXFIFO_W :: new (self) } # [doc = "Bit 6 - Rx full interrupt generated on RREQ condition as indicated in SSR"]
# [inline (always)]
# [must_use]
pub fn sctr_rxfull_on_rreq (& mut self) -> SCTR_RXFULL_ON_RREQ_W < SCTR_SPEC , 6 > { SCTR_RXFULL_ON_RREQ_W :: new (self) } # [doc = "Bit 7 - Enable Default Host Address"]
# [inline (always)]
# [must_use]
pub fn sctr_en_defhostadr (& mut self) -> SCTR_EN_DEFHOSTADR_W < SCTR_SPEC , 7 > { SCTR_EN_DEFHOSTADR_W :: new (self) } # [doc = "Bit 8 - Enable Alert Response Address"]
# [inline (always)]
# [must_use]
pub fn sctr_en_alrespadr (& mut self) -> SCTR_EN_ALRESPADR_W < SCTR_SPEC , 8 > { SCTR_EN_ALRESPADR_W :: new (self) } # [doc = "Bit 9 - Enable Deault device address"]
# [inline (always)]
# [must_use]
pub fn sctr_en_defdevadr (& mut self) -> SCTR_EN_DEFDEVADR_W < SCTR_SPEC , 9 > { SCTR_EN_DEFDEVADR_W :: new (self) } # [doc = "Bit 10 - Slave Wakeup Enable"]
# [inline (always)]
# [must_use]
pub fn sctr_swuen (& mut self) -> SCTR_SWUEN_W < SCTR_SPEC , 10 > { SCTR_SWUEN_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "I2C Slave Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`sctr::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sctr::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SCTR_SPEC ; impl crate :: RegisterSpec for SCTR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`sctr::R`](R) reader structure"]
impl crate :: Readable for SCTR_SPEC { } # [doc = "`write(|w| ..)` method takes [`sctr::W`](W) writer structure"]
impl crate :: Writable for SCTR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets SCTR to value 0x0404"]
impl crate :: Resettable for SCTR_SPEC { const RESET_VALUE : Self :: Ux = 0x0404 ; } } # [doc = "SSR (r) register accessor: I2C Slave Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ssr::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ssr`]
module"]
pub type SSR = crate :: Reg < ssr :: SSR_SPEC > ; # [doc = "I2C Slave Status Register"]
pub mod ssr { # [doc = "Register `SSR` reader"]
pub type R = crate :: R < SSR_SPEC > ; # [doc = "Field `SSR_RREQ` reader - Receive Request"]
pub type SSR_RREQ_R = crate :: BitReader < SSR_RREQ_A > ; # [doc = "Receive Request\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SSR_RREQ_A { # [doc = "0: CLEARED"]
SSR_RREQ_CLEARED = 0 , # [doc = "1: SET"]
SSR_RREQ_SET = 1 , } impl From < SSR_RREQ_A > for bool { # [inline (always)]
fn from (variant : SSR_RREQ_A) -> Self { variant as u8 != 0 } } impl SSR_RREQ_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SSR_RREQ_A { match self . bits { false => SSR_RREQ_A :: SSR_RREQ_CLEARED , true => SSR_RREQ_A :: SSR_RREQ_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_ssr_rreq_cleared (& self) -> bool { * self == SSR_RREQ_A :: SSR_RREQ_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_ssr_rreq_set (& self) -> bool { * self == SSR_RREQ_A :: SSR_RREQ_SET } } # [doc = "Field `SSR_TREQ` reader - Transmit Request"]
pub type SSR_TREQ_R = crate :: BitReader < SSR_TREQ_A > ; # [doc = "Transmit Request\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SSR_TREQ_A { # [doc = "0: CLEARED"]
SSR_TREQ_CLEARED = 0 , # [doc = "1: SET"]
SSR_TREQ_SET = 1 , } impl From < SSR_TREQ_A > for bool { # [inline (always)]
fn from (variant : SSR_TREQ_A) -> Self { variant as u8 != 0 } } impl SSR_TREQ_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SSR_TREQ_A { match self . bits { false => SSR_TREQ_A :: SSR_TREQ_CLEARED , true => SSR_TREQ_A :: SSR_TREQ_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_ssr_treq_cleared (& self) -> bool { * self == SSR_TREQ_A :: SSR_TREQ_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_ssr_treq_set (& self) -> bool { * self == SSR_TREQ_A :: SSR_TREQ_SET } } # [doc = "Field `SSR_RXMODE` reader - Slave FSM is in Rx MODE"]
pub type SSR_RXMODE_R = crate :: BitReader < SSR_RXMODE_A > ; # [doc = "Slave FSM is in Rx MODE\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SSR_RXMODE_A { # [doc = "0: CLEARED"]
SSR_RXMODE_CLEARED = 0 , # [doc = "1: SET"]
SSR_RXMODE_SET = 1 , } impl From < SSR_RXMODE_A > for bool { # [inline (always)]
fn from (variant : SSR_RXMODE_A) -> Self { variant as u8 != 0 } } impl SSR_RXMODE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SSR_RXMODE_A { match self . bits { false => SSR_RXMODE_A :: SSR_RXMODE_CLEARED , true => SSR_RXMODE_A :: SSR_RXMODE_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_ssr_rxmode_cleared (& self) -> bool { * self == SSR_RXMODE_A :: SSR_RXMODE_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_ssr_rxmode_set (& self) -> bool { * self == SSR_RXMODE_A :: SSR_RXMODE_SET } } # [doc = "Field `SSR_OAR2SEL` reader - OAR2 Address Matched This bit gets reevaluated after every address comparison."]
pub type SSR_OAR2SEL_R = crate :: BitReader < SSR_OAR2SEL_A > ; # [doc = "OAR2 Address Matched This bit gets reevaluated after every address comparison.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SSR_OAR2SEL_A { # [doc = "0: CLEARED"]
SSR_OAR2SEL_CLEARED = 0 , # [doc = "1: SET"]
SSR_OAR2SEL_SET = 1 , } impl From < SSR_OAR2SEL_A > for bool { # [inline (always)]
fn from (variant : SSR_OAR2SEL_A) -> Self { variant as u8 != 0 } } impl SSR_OAR2SEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SSR_OAR2SEL_A { match self . bits { false => SSR_OAR2SEL_A :: SSR_OAR2SEL_CLEARED , true => SSR_OAR2SEL_A :: SSR_OAR2SEL_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_ssr_oar2sel_cleared (& self) -> bool { * self == SSR_OAR2SEL_A :: SSR_OAR2SEL_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_ssr_oar2sel_set (& self) -> bool { * self == SSR_OAR2SEL_A :: SSR_OAR2SEL_SET } } # [doc = "Field `SSR_QCMDST` reader - Quick Command Status Value Description: 0: The last transaction was a normal transaction or a transaction has not occurred. 1: The last transaction was a Quick Command transaction"]
pub type SSR_QCMDST_R = crate :: BitReader < SSR_QCMDST_A > ; # [doc = "Quick Command Status Value Description: 0: The last transaction was a normal transaction or a transaction has not occurred. 1: The last transaction was a Quick Command transaction\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SSR_QCMDST_A { # [doc = "0: CLEARED"]
SSR_QCMDST_CLEARED = 0 , # [doc = "1: SET"]
SSR_QCMDST_SET = 1 , } impl From < SSR_QCMDST_A > for bool { # [inline (always)]
fn from (variant : SSR_QCMDST_A) -> Self { variant as u8 != 0 } } impl SSR_QCMDST_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SSR_QCMDST_A { match self . bits { false => SSR_QCMDST_A :: SSR_QCMDST_CLEARED , true => SSR_QCMDST_A :: SSR_QCMDST_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_ssr_qcmdst_cleared (& self) -> bool { * self == SSR_QCMDST_A :: SSR_QCMDST_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_ssr_qcmdst_set (& self) -> bool { * self == SSR_QCMDST_A :: SSR_QCMDST_SET } } # [doc = "Field `SSR_QCMDRW` reader - Quick Command Read / Write This bit only has meaning when the QCMDST bit is set. Value Description: 0: Quick command was a write 1: Quick command was a read"]
pub type SSR_QCMDRW_R = crate :: BitReader < SSR_QCMDRW_A > ; # [doc = "Quick Command Read / Write This bit only has meaning when the QCMDST bit is set. Value Description: 0: Quick command was a write 1: Quick command was a read\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SSR_QCMDRW_A { # [doc = "0: CLEARED"]
SSR_QCMDRW_CLEARED = 0 , # [doc = "1: SET"]
SSR_QCMDRW_SET = 1 , } impl From < SSR_QCMDRW_A > for bool { # [inline (always)]
fn from (variant : SSR_QCMDRW_A) -> Self { variant as u8 != 0 } } impl SSR_QCMDRW_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SSR_QCMDRW_A { match self . bits { false => SSR_QCMDRW_A :: SSR_QCMDRW_CLEARED , true => SSR_QCMDRW_A :: SSR_QCMDRW_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_ssr_qcmdrw_cleared (& self) -> bool { * self == SSR_QCMDRW_A :: SSR_QCMDRW_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_ssr_qcmdrw_set (& self) -> bool { * self == SSR_QCMDRW_A :: SSR_QCMDRW_SET } } # [doc = "Field `SSR_BUSBSY` reader - I2C bus is busy"]
pub type SSR_BUSBSY_R = crate :: BitReader < SSR_BUSBSY_A > ; # [doc = "I2C bus is busy\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SSR_BUSBSY_A { # [doc = "0: CLEARED"]
SSR_BUSBSY_CLEARED = 0 , # [doc = "1: SET"]
SSR_BUSBSY_SET = 1 , } impl From < SSR_BUSBSY_A > for bool { # [inline (always)]
fn from (variant : SSR_BUSBSY_A) -> Self { variant as u8 != 0 } } impl SSR_BUSBSY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SSR_BUSBSY_A { match self . bits { false => SSR_BUSBSY_A :: SSR_BUSBSY_CLEARED , true => SSR_BUSBSY_A :: SSR_BUSBSY_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_ssr_busbsy_cleared (& self) -> bool { * self == SSR_BUSBSY_A :: SSR_BUSBSY_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_ssr_busbsy_set (& self) -> bool { * self == SSR_BUSBSY_A :: SSR_BUSBSY_SET } } # [doc = "Field `SSR_TXMODE` reader - Slave FSM is in TX MODE"]
pub type SSR_TXMODE_R = crate :: BitReader < SSR_TXMODE_A > ; # [doc = "Slave FSM is in TX MODE\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SSR_TXMODE_A { # [doc = "0: CLEARED"]
SSR_TXMODE_CLEARED = 0 , # [doc = "1: SET"]
SSR_TXMODE_SET = 1 , } impl From < SSR_TXMODE_A > for bool { # [inline (always)]
fn from (variant : SSR_TXMODE_A) -> Self { variant as u8 != 0 } } impl SSR_TXMODE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SSR_TXMODE_A { match self . bits { false => SSR_TXMODE_A :: SSR_TXMODE_CLEARED , true => SSR_TXMODE_A :: SSR_TXMODE_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_ssr_txmode_cleared (& self) -> bool { * self == SSR_TXMODE_A :: SSR_TXMODE_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_ssr_txmode_set (& self) -> bool { * self == SSR_TXMODE_A :: SSR_TXMODE_SET } } # [doc = "Field `SSR_STALE_TXFIFO` reader - Stale Tx FIFO"]
pub type SSR_STALE_TXFIFO_R = crate :: BitReader < SSR_STALE_TXFIFO_A > ; # [doc = "Stale Tx FIFO\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SSR_STALE_TXFIFO_A { # [doc = "0: CLEARED"]
SSR_STALE_TXFIFO_CLEARED = 0 , # [doc = "1: SET"]
SSR_STALE_TXFIFO_SET = 1 , } impl From < SSR_STALE_TXFIFO_A > for bool { # [inline (always)]
fn from (variant : SSR_STALE_TXFIFO_A) -> Self { variant as u8 != 0 } } impl SSR_STALE_TXFIFO_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SSR_STALE_TXFIFO_A { match self . bits { false => SSR_STALE_TXFIFO_A :: SSR_STALE_TXFIFO_CLEARED , true => SSR_STALE_TXFIFO_A :: SSR_STALE_TXFIFO_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_ssr_stale_txfifo_cleared (& self) -> bool { * self == SSR_STALE_TXFIFO_A :: SSR_STALE_TXFIFO_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_ssr_stale_txfifo_set (& self) -> bool { * self == SSR_STALE_TXFIFO_A :: SSR_STALE_TXFIFO_SET } } # [doc = "Field `SSR_ADDRMATCH` reader - Indicates the address for which slave address match happened"]
pub type SSR_ADDRMATCH_R = crate :: FieldReader < u16 > ; impl R { # [doc = "Bit 0 - Receive Request"]
# [inline (always)]
pub fn ssr_rreq (& self) -> SSR_RREQ_R { SSR_RREQ_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Transmit Request"]
# [inline (always)]
pub fn ssr_treq (& self) -> SSR_TREQ_R { SSR_TREQ_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Slave FSM is in Rx MODE"]
# [inline (always)]
pub fn ssr_rxmode (& self) -> SSR_RXMODE_R { SSR_RXMODE_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - OAR2 Address Matched This bit gets reevaluated after every address comparison."]
# [inline (always)]
pub fn ssr_oar2sel (& self) -> SSR_OAR2SEL_R { SSR_OAR2SEL_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - Quick Command Status Value Description: 0: The last transaction was a normal transaction or a transaction has not occurred. 1: The last transaction was a Quick Command transaction"]
# [inline (always)]
pub fn ssr_qcmdst (& self) -> SSR_QCMDST_R { SSR_QCMDST_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Quick Command Read / Write This bit only has meaning when the QCMDST bit is set. Value Description: 0: Quick command was a write 1: Quick command was a read"]
# [inline (always)]
pub fn ssr_qcmdrw (& self) -> SSR_QCMDRW_R { SSR_QCMDRW_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - I2C bus is busy"]
# [inline (always)]
pub fn ssr_busbsy (& self) -> SSR_BUSBSY_R { SSR_BUSBSY_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 7 - Slave FSM is in TX MODE"]
# [inline (always)]
pub fn ssr_txmode (& self) -> SSR_TXMODE_R { SSR_TXMODE_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 8 - Stale Tx FIFO"]
# [inline (always)]
pub fn ssr_stale_txfifo (& self) -> SSR_STALE_TXFIFO_R { SSR_STALE_TXFIFO_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bits 9:18 - Indicates the address for which slave address match happened"]
# [inline (always)]
pub fn ssr_addrmatch (& self) -> SSR_ADDRMATCH_R { SSR_ADDRMATCH_R :: new (((self . bits >> 9) & 0x03ff) as u16) } } # [doc = "I2C Slave Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ssr::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SSR_SPEC ; impl crate :: RegisterSpec for SSR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ssr::R`](R) reader structure"]
impl crate :: Readable for SSR_SPEC { } # [doc = "`reset()` method sets SSR to value 0"]
impl crate :: Resettable for SSR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "SRXDATA (r) register accessor: I2C Slave RXData\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`srxdata::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@srxdata`]
module"]
pub type SRXDATA = crate :: Reg < srxdata :: SRXDATA_SPEC > ; # [doc = "I2C Slave RXData"]
pub mod srxdata { # [doc = "Register `SRXDATA` reader"]
pub type R = crate :: R < SRXDATA_SPEC > ; # [doc = "Field `SRXDATA_VALUE` reader - Received Data. This field contains the last received data."]
pub type SRXDATA_VALUE_R = crate :: FieldReader ; impl R { # [doc = "Bits 0:7 - Received Data. This field contains the last received data."]
# [inline (always)]
pub fn srxdata_value (& self) -> SRXDATA_VALUE_R { SRXDATA_VALUE_R :: new ((self . bits & 0xff) as u8) } } # [doc = "I2C Slave RXData\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`srxdata::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SRXDATA_SPEC ; impl crate :: RegisterSpec for SRXDATA_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`srxdata::R`](R) reader structure"]
impl crate :: Readable for SRXDATA_SPEC { } # [doc = "`reset()` method sets SRXDATA to value 0"]
impl crate :: Resettable for SRXDATA_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "STXDATA (rw) register accessor: I2C Slave TXData\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stxdata::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`stxdata::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@stxdata`]
module"]
pub type STXDATA = crate :: Reg < stxdata :: STXDATA_SPEC > ; # [doc = "I2C Slave TXData"]
pub mod stxdata { # [doc = "Register `STXDATA` reader"]
pub type R = crate :: R < STXDATA_SPEC > ; # [doc = "Register `STXDATA` writer"]
pub type W = crate :: W < STXDATA_SPEC > ; # [doc = "Field `STXDATA_VALUE` reader - Transmit Data This byte contains the data to be transferred during the next transaction."]
pub type STXDATA_VALUE_R = crate :: FieldReader ; # [doc = "Field `STXDATA_VALUE` writer - Transmit Data This byte contains the data to be transferred during the next transaction."]
pub type STXDATA_VALUE_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O > ; impl R { # [doc = "Bits 0:7 - Transmit Data This byte contains the data to be transferred during the next transaction."]
# [inline (always)]
pub fn stxdata_value (& self) -> STXDATA_VALUE_R { STXDATA_VALUE_R :: new ((self . bits & 0xff) as u8) } } impl W { # [doc = "Bits 0:7 - Transmit Data This byte contains the data to be transferred during the next transaction."]
# [inline (always)]
# [must_use]
pub fn stxdata_value (& mut self) -> STXDATA_VALUE_W < STXDATA_SPEC , 0 > { STXDATA_VALUE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "I2C Slave TXData\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stxdata::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`stxdata::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct STXDATA_SPEC ; impl crate :: RegisterSpec for STXDATA_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`stxdata::R`](R) reader structure"]
impl crate :: Readable for STXDATA_SPEC { } # [doc = "`write(|w| ..)` method takes [`stxdata::W`](W) writer structure"]
impl crate :: Writable for STXDATA_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets STXDATA to value 0"]
impl crate :: Resettable for STXDATA_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "SACKCTL (rw) register accessor: I2C Slave ACK Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`sackctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sackctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sackctl`]
module"]
pub type SACKCTL = crate :: Reg < sackctl :: SACKCTL_SPEC > ; # [doc = "I2C Slave ACK Control"]
pub mod sackctl { # [doc = "Register `SACKCTL` reader"]
pub type R = crate :: R < SACKCTL_SPEC > ; # [doc = "Register `SACKCTL` writer"]
pub type W = crate :: W < SACKCTL_SPEC > ; # [doc = "Field `SACKCTL_ACKOEN` reader - I2C Slave ACK Override Enable"]
pub type SACKCTL_ACKOEN_R = crate :: BitReader < SACKCTL_ACKOEN_A > ; # [doc = "I2C Slave ACK Override Enable\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SACKCTL_ACKOEN_A { # [doc = "0: DISABLE"]
SACKCTL_ACKOEN_DISABLE = 0 , # [doc = "1: ENABLE"]
SACKCTL_ACKOEN_ENABLE = 1 , } impl From < SACKCTL_ACKOEN_A > for bool { # [inline (always)]
fn from (variant : SACKCTL_ACKOEN_A) -> Self { variant as u8 != 0 } } impl SACKCTL_ACKOEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SACKCTL_ACKOEN_A { match self . bits { false => SACKCTL_ACKOEN_A :: SACKCTL_ACKOEN_DISABLE , true => SACKCTL_ACKOEN_A :: SACKCTL_ACKOEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sackctl_ackoen_disable (& self) -> bool { * self == SACKCTL_ACKOEN_A :: SACKCTL_ACKOEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sackctl_ackoen_enable (& self) -> bool { * self == SACKCTL_ACKOEN_A :: SACKCTL_ACKOEN_ENABLE } } # [doc = "Field `SACKCTL_ACKOEN` writer - I2C Slave ACK Override Enable"]
pub type SACKCTL_ACKOEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SACKCTL_ACKOEN_A > ; impl < 'a , REG , const O : u8 > SACKCTL_ACKOEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sackctl_ackoen_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SACKCTL_ACKOEN_A :: SACKCTL_ACKOEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sackctl_ackoen_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SACKCTL_ACKOEN_A :: SACKCTL_ACKOEN_ENABLE) } } # [doc = "Field `SACKCTL_ACKOVAL` reader - I2C Slave ACK Override Value Note: for General Call this bit will be ignored if set to NACK and slave continues to receive data."]
pub type SACKCTL_ACKOVAL_R = crate :: BitReader < SACKCTL_ACKOVAL_A > ; # [doc = "I2C Slave ACK Override Value Note: for General Call this bit will be ignored if set to NACK and slave continues to receive data.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SACKCTL_ACKOVAL_A { # [doc = "0: DISABLE"]
SACKCTL_ACKOVAL_DISABLE = 0 , # [doc = "1: ENABLE"]
SACKCTL_ACKOVAL_ENABLE = 1 , } impl From < SACKCTL_ACKOVAL_A > for bool { # [inline (always)]
fn from (variant : SACKCTL_ACKOVAL_A) -> Self { variant as u8 != 0 } } impl SACKCTL_ACKOVAL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SACKCTL_ACKOVAL_A { match self . bits { false => SACKCTL_ACKOVAL_A :: SACKCTL_ACKOVAL_DISABLE , true => SACKCTL_ACKOVAL_A :: SACKCTL_ACKOVAL_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sackctl_ackoval_disable (& self) -> bool { * self == SACKCTL_ACKOVAL_A :: SACKCTL_ACKOVAL_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sackctl_ackoval_enable (& self) -> bool { * self == SACKCTL_ACKOVAL_A :: SACKCTL_ACKOVAL_ENABLE } } # [doc = "Field `SACKCTL_ACKOVAL` writer - I2C Slave ACK Override Value Note: for General Call this bit will be ignored if set to NACK and slave continues to receive data."]
pub type SACKCTL_ACKOVAL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SACKCTL_ACKOVAL_A > ; impl < 'a , REG , const O : u8 > SACKCTL_ACKOVAL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sackctl_ackoval_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SACKCTL_ACKOVAL_A :: SACKCTL_ACKOVAL_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sackctl_ackoval_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SACKCTL_ACKOVAL_A :: SACKCTL_ACKOVAL_ENABLE) } } # [doc = "Field `SACKCTL_ACKOEN_ON_START` reader - When set this bit will automatically turn on the Slave ACKOEN field following a Start Condition."]
pub type SACKCTL_ACKOEN_ON_START_R = crate :: BitReader < SACKCTL_ACKOEN_ON_START_A > ; # [doc = "When set this bit will automatically turn on the Slave ACKOEN field following a Start Condition.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SACKCTL_ACKOEN_ON_START_A { # [doc = "0: DISABLE"]
SACKCTL_ACKOEN_ON_START_DISABLE = 0 , # [doc = "1: ENABLE"]
SACKCTL_ACKOEN_ON_START_ENABLE = 1 , } impl From < SACKCTL_ACKOEN_ON_START_A > for bool { # [inline (always)]
fn from (variant : SACKCTL_ACKOEN_ON_START_A) -> Self { variant as u8 != 0 } } impl SACKCTL_ACKOEN_ON_START_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SACKCTL_ACKOEN_ON_START_A { match self . bits { false => SACKCTL_ACKOEN_ON_START_A :: SACKCTL_ACKOEN_ON_START_DISABLE , true => SACKCTL_ACKOEN_ON_START_A :: SACKCTL_ACKOEN_ON_START_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sackctl_ackoen_on_start_disable (& self) -> bool { * self == SACKCTL_ACKOEN_ON_START_A :: SACKCTL_ACKOEN_ON_START_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sackctl_ackoen_on_start_enable (& self) -> bool { * self == SACKCTL_ACKOEN_ON_START_A :: SACKCTL_ACKOEN_ON_START_ENABLE } } # [doc = "Field `SACKCTL_ACKOEN_ON_START` writer - When set this bit will automatically turn on the Slave ACKOEN field following a Start Condition."]
pub type SACKCTL_ACKOEN_ON_START_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SACKCTL_ACKOEN_ON_START_A > ; impl < 'a , REG , const O : u8 > SACKCTL_ACKOEN_ON_START_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sackctl_ackoen_on_start_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SACKCTL_ACKOEN_ON_START_A :: SACKCTL_ACKOEN_ON_START_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sackctl_ackoen_on_start_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SACKCTL_ACKOEN_ON_START_A :: SACKCTL_ACKOEN_ON_START_ENABLE) } } # [doc = "Field `SACKCTL_ACKOEN_ON_PECNEXT` reader - When set this bit will automatically turn on the Slave ACKOEN field following the ACK/NACK of the byte received just prior to the PEC byte. Note that when ACKOEN is set the PEC byte will not automatically be ACKed/NACKed by the State Machine and FW must perform this function by writing SLAVE_SACKCTL."]
pub type SACKCTL_ACKOEN_ON_PECNEXT_R = crate :: BitReader < SACKCTL_ACKOEN_ON_PECNEXT_A > ; # [doc = "When set this bit will automatically turn on the Slave ACKOEN field following the ACK/NACK of the byte received just prior to the PEC byte. Note that when ACKOEN is set the PEC byte will not automatically be ACKed/NACKed by the State Machine and FW must perform this function by writing SLAVE_SACKCTL.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SACKCTL_ACKOEN_ON_PECNEXT_A { # [doc = "0: DISABLE"]
SACKCTL_ACKOEN_ON_PECNEXT_DISABLE = 0 , # [doc = "1: ENABLE"]
SACKCTL_ACKOEN_ON_PECNEXT_ENABLE = 1 , } impl From < SACKCTL_ACKOEN_ON_PECNEXT_A > for bool { # [inline (always)]
fn from (variant : SACKCTL_ACKOEN_ON_PECNEXT_A) -> Self { variant as u8 != 0 } } impl SACKCTL_ACKOEN_ON_PECNEXT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SACKCTL_ACKOEN_ON_PECNEXT_A { match self . bits { false => SACKCTL_ACKOEN_ON_PECNEXT_A :: SACKCTL_ACKOEN_ON_PECNEXT_DISABLE , true => SACKCTL_ACKOEN_ON_PECNEXT_A :: SACKCTL_ACKOEN_ON_PECNEXT_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sackctl_ackoen_on_pecnext_disable (& self) -> bool { * self == SACKCTL_ACKOEN_ON_PECNEXT_A :: SACKCTL_ACKOEN_ON_PECNEXT_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sackctl_ackoen_on_pecnext_enable (& self) -> bool { * self == SACKCTL_ACKOEN_ON_PECNEXT_A :: SACKCTL_ACKOEN_ON_PECNEXT_ENABLE } } # [doc = "Field `SACKCTL_ACKOEN_ON_PECNEXT` writer - When set this bit will automatically turn on the Slave ACKOEN field following the ACK/NACK of the byte received just prior to the PEC byte. Note that when ACKOEN is set the PEC byte will not automatically be ACKed/NACKed by the State Machine and FW must perform this function by writing SLAVE_SACKCTL."]
pub type SACKCTL_ACKOEN_ON_PECNEXT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SACKCTL_ACKOEN_ON_PECNEXT_A > ; impl < 'a , REG , const O : u8 > SACKCTL_ACKOEN_ON_PECNEXT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sackctl_ackoen_on_pecnext_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SACKCTL_ACKOEN_ON_PECNEXT_A :: SACKCTL_ACKOEN_ON_PECNEXT_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sackctl_ackoen_on_pecnext_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SACKCTL_ACKOEN_ON_PECNEXT_A :: SACKCTL_ACKOEN_ON_PECNEXT_ENABLE) } } # [doc = "Field `SACKCTL_ACKOEN_ON_PECDONE` reader - When set this bit will automatically turn on the Slave ACKOEN field following the ACK/NACK of the received PEC byte."]
pub type SACKCTL_ACKOEN_ON_PECDONE_R = crate :: BitReader < SACKCTL_ACKOEN_ON_PECDONE_A > ; # [doc = "When set this bit will automatically turn on the Slave ACKOEN field following the ACK/NACK of the received PEC byte.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SACKCTL_ACKOEN_ON_PECDONE_A { # [doc = "0: DISABLE"]
SACKCTL_ACKOEN_ON_PECDONE_DISABLE = 0 , # [doc = "1: ENABLE"]
SACKCTL_ACKOEN_ON_PECDONE_ENABLE = 1 , } impl From < SACKCTL_ACKOEN_ON_PECDONE_A > for bool { # [inline (always)]
fn from (variant : SACKCTL_ACKOEN_ON_PECDONE_A) -> Self { variant as u8 != 0 } } impl SACKCTL_ACKOEN_ON_PECDONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SACKCTL_ACKOEN_ON_PECDONE_A { match self . bits { false => SACKCTL_ACKOEN_ON_PECDONE_A :: SACKCTL_ACKOEN_ON_PECDONE_DISABLE , true => SACKCTL_ACKOEN_ON_PECDONE_A :: SACKCTL_ACKOEN_ON_PECDONE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_sackctl_ackoen_on_pecdone_disable (& self) -> bool { * self == SACKCTL_ACKOEN_ON_PECDONE_A :: SACKCTL_ACKOEN_ON_PECDONE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_sackctl_ackoen_on_pecdone_enable (& self) -> bool { * self == SACKCTL_ACKOEN_ON_PECDONE_A :: SACKCTL_ACKOEN_ON_PECDONE_ENABLE } } # [doc = "Field `SACKCTL_ACKOEN_ON_PECDONE` writer - When set this bit will automatically turn on the Slave ACKOEN field following the ACK/NACK of the received PEC byte."]
pub type SACKCTL_ACKOEN_ON_PECDONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SACKCTL_ACKOEN_ON_PECDONE_A > ; impl < 'a , REG , const O : u8 > SACKCTL_ACKOEN_ON_PECDONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn sackctl_ackoen_on_pecdone_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SACKCTL_ACKOEN_ON_PECDONE_A :: SACKCTL_ACKOEN_ON_PECDONE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn sackctl_ackoen_on_pecdone_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SACKCTL_ACKOEN_ON_PECDONE_A :: SACKCTL_ACKOEN_ON_PECDONE_ENABLE) } } impl R { # [doc = "Bit 0 - I2C Slave ACK Override Enable"]
# [inline (always)]
pub fn sackctl_ackoen (& self) -> SACKCTL_ACKOEN_R { SACKCTL_ACKOEN_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - I2C Slave ACK Override Value Note: for General Call this bit will be ignored if set to NACK and slave continues to receive data."]
# [inline (always)]
pub fn sackctl_ackoval (& self) -> SACKCTL_ACKOVAL_R { SACKCTL_ACKOVAL_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - When set this bit will automatically turn on the Slave ACKOEN field following a Start Condition."]
# [inline (always)]
pub fn sackctl_ackoen_on_start (& self) -> SACKCTL_ACKOEN_ON_START_R { SACKCTL_ACKOEN_ON_START_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - When set this bit will automatically turn on the Slave ACKOEN field following the ACK/NACK of the byte received just prior to the PEC byte. Note that when ACKOEN is set the PEC byte will not automatically be ACKed/NACKed by the State Machine and FW must perform this function by writing SLAVE_SACKCTL."]
# [inline (always)]
pub fn sackctl_ackoen_on_pecnext (& self) -> SACKCTL_ACKOEN_ON_PECNEXT_R { SACKCTL_ACKOEN_ON_PECNEXT_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - When set this bit will automatically turn on the Slave ACKOEN field following the ACK/NACK of the received PEC byte."]
# [inline (always)]
pub fn sackctl_ackoen_on_pecdone (& self) -> SACKCTL_ACKOEN_ON_PECDONE_R { SACKCTL_ACKOEN_ON_PECDONE_R :: new (((self . bits >> 4) & 1) != 0) } } impl W { # [doc = "Bit 0 - I2C Slave ACK Override Enable"]
# [inline (always)]
# [must_use]
pub fn sackctl_ackoen (& mut self) -> SACKCTL_ACKOEN_W < SACKCTL_SPEC , 0 > { SACKCTL_ACKOEN_W :: new (self) } # [doc = "Bit 1 - I2C Slave ACK Override Value Note: for General Call this bit will be ignored if set to NACK and slave continues to receive data."]
# [inline (always)]
# [must_use]
pub fn sackctl_ackoval (& mut self) -> SACKCTL_ACKOVAL_W < SACKCTL_SPEC , 1 > { SACKCTL_ACKOVAL_W :: new (self) } # [doc = "Bit 2 - When set this bit will automatically turn on the Slave ACKOEN field following a Start Condition."]
# [inline (always)]
# [must_use]
pub fn sackctl_ackoen_on_start (& mut self) -> SACKCTL_ACKOEN_ON_START_W < SACKCTL_SPEC , 2 > { SACKCTL_ACKOEN_ON_START_W :: new (self) } # [doc = "Bit 3 - When set this bit will automatically turn on the Slave ACKOEN field following the ACK/NACK of the byte received just prior to the PEC byte. Note that when ACKOEN is set the PEC byte will not automatically be ACKed/NACKed by the State Machine and FW must perform this function by writing SLAVE_SACKCTL."]
# [inline (always)]
# [must_use]
pub fn sackctl_ackoen_on_pecnext (& mut self) -> SACKCTL_ACKOEN_ON_PECNEXT_W < SACKCTL_SPEC , 3 > { SACKCTL_ACKOEN_ON_PECNEXT_W :: new (self) } # [doc = "Bit 4 - When set this bit will automatically turn on the Slave ACKOEN field following the ACK/NACK of the received PEC byte."]
# [inline (always)]
# [must_use]
pub fn sackctl_ackoen_on_pecdone (& mut self) -> SACKCTL_ACKOEN_ON_PECDONE_W < SACKCTL_SPEC , 4 > { SACKCTL_ACKOEN_ON_PECDONE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "I2C Slave ACK Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`sackctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sackctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SACKCTL_SPEC ; impl crate :: RegisterSpec for SACKCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`sackctl::R`](R) reader structure"]
impl crate :: Readable for SACKCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`sackctl::W`](W) writer structure"]
impl crate :: Writable for SACKCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets SACKCTL to value 0"]
impl crate :: Resettable for SACKCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "SFIFOCTL (rw) register accessor: I2C Slave FIFO Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`sfifoctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sfifoctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sfifoctl`]
module"]
pub type SFIFOCTL = crate :: Reg < sfifoctl :: SFIFOCTL_SPEC > ; # [doc = "I2C Slave FIFO Control"]
pub mod sfifoctl { # [doc = "Register `SFIFOCTL` reader"]
pub type R = crate :: R < SFIFOCTL_SPEC > ; # [doc = "Register `SFIFOCTL` writer"]
pub type W = crate :: W < SFIFOCTL_SPEC > ; # [doc = "Field `SFIFOCTL_TXTRIG` reader - TX FIFO Trigger Indicates at what fill level in the TX FIFO a trigger will be generated."]
pub type SFIFOCTL_TXTRIG_R = crate :: FieldReader < SFIFOCTL_TXTRIG_A > ; # [doc = "TX FIFO Trigger Indicates at what fill level in the TX FIFO a trigger will be generated.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum SFIFOCTL_TXTRIG_A { # [doc = "4: LEVEL_4"]
SFIFOCTL_TXTRIG_LEVEL_4 = 4 , # [doc = "5: LEVEL_5"]
SFIFOCTL_TXTRIG_LEVEL_5 = 5 , # [doc = "6: LEVEL_6"]
SFIFOCTL_TXTRIG_LEVEL_6 = 6 , # [doc = "7: LEVEL_7"]
SFIFOCTL_TXTRIG_LEVEL_7 = 7 , } impl From < SFIFOCTL_TXTRIG_A > for u8 { # [inline (always)]
fn from (variant : SFIFOCTL_TXTRIG_A) -> Self { variant as _ } } impl crate :: FieldSpec for SFIFOCTL_TXTRIG_A { type Ux = u8 ; } impl SFIFOCTL_TXTRIG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < SFIFOCTL_TXTRIG_A > { match self . bits { 4 => Some (SFIFOCTL_TXTRIG_A :: SFIFOCTL_TXTRIG_LEVEL_4) , 5 => Some (SFIFOCTL_TXTRIG_A :: SFIFOCTL_TXTRIG_LEVEL_5) , 6 => Some (SFIFOCTL_TXTRIG_A :: SFIFOCTL_TXTRIG_LEVEL_6) , 7 => Some (SFIFOCTL_TXTRIG_A :: SFIFOCTL_TXTRIG_LEVEL_7) , _ => None , } } # [doc = "LEVEL_4"]
# [inline (always)]
pub fn is_sfifoctl_txtrig_level_4 (& self) -> bool { * self == SFIFOCTL_TXTRIG_A :: SFIFOCTL_TXTRIG_LEVEL_4 } # [doc = "LEVEL_5"]
# [inline (always)]
pub fn is_sfifoctl_txtrig_level_5 (& self) -> bool { * self == SFIFOCTL_TXTRIG_A :: SFIFOCTL_TXTRIG_LEVEL_5 } # [doc = "LEVEL_6"]
# [inline (always)]
pub fn is_sfifoctl_txtrig_level_6 (& self) -> bool { * self == SFIFOCTL_TXTRIG_A :: SFIFOCTL_TXTRIG_LEVEL_6 } # [doc = "LEVEL_7"]
# [inline (always)]
pub fn is_sfifoctl_txtrig_level_7 (& self) -> bool { * self == SFIFOCTL_TXTRIG_A :: SFIFOCTL_TXTRIG_LEVEL_7 } } # [doc = "Field `SFIFOCTL_TXTRIG` writer - TX FIFO Trigger Indicates at what fill level in the TX FIFO a trigger will be generated."]
pub type SFIFOCTL_TXTRIG_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , SFIFOCTL_TXTRIG_A > ; impl < 'a , REG , const O : u8 > SFIFOCTL_TXTRIG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "LEVEL_4"]
# [inline (always)]
pub fn sfifoctl_txtrig_level_4 (self) -> & 'a mut crate :: W < REG > { self . variant (SFIFOCTL_TXTRIG_A :: SFIFOCTL_TXTRIG_LEVEL_4) } # [doc = "LEVEL_5"]
# [inline (always)]
pub fn sfifoctl_txtrig_level_5 (self) -> & 'a mut crate :: W < REG > { self . variant (SFIFOCTL_TXTRIG_A :: SFIFOCTL_TXTRIG_LEVEL_5) } # [doc = "LEVEL_6"]
# [inline (always)]
pub fn sfifoctl_txtrig_level_6 (self) -> & 'a mut crate :: W < REG > { self . variant (SFIFOCTL_TXTRIG_A :: SFIFOCTL_TXTRIG_LEVEL_6) } # [doc = "LEVEL_7"]
# [inline (always)]
pub fn sfifoctl_txtrig_level_7 (self) -> & 'a mut crate :: W < REG > { self . variant (SFIFOCTL_TXTRIG_A :: SFIFOCTL_TXTRIG_LEVEL_7) } } # [doc = "Field `SFIFOCTL_TXFLUSH` reader - TX FIFO Flush Setting this bit will Flush the TX FIFO. Before reseting this bit to stop Flush the TXFIFOCNT should be checked to be 8 and indicating that the Flush has completed."]
pub type SFIFOCTL_TXFLUSH_R = crate :: BitReader < SFIFOCTL_TXFLUSH_A > ; # [doc = "TX FIFO Flush Setting this bit will Flush the TX FIFO. Before reseting this bit to stop Flush the TXFIFOCNT should be checked to be 8 and indicating that the Flush has completed.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SFIFOCTL_TXFLUSH_A { # [doc = "0: NOFLUSH"]
SFIFOCTL_TXFLUSH_NOFLUSH = 0 , # [doc = "1: FLUSH"]
SFIFOCTL_TXFLUSH_FLUSH = 1 , } impl From < SFIFOCTL_TXFLUSH_A > for bool { # [inline (always)]
fn from (variant : SFIFOCTL_TXFLUSH_A) -> Self { variant as u8 != 0 } } impl SFIFOCTL_TXFLUSH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SFIFOCTL_TXFLUSH_A { match self . bits { false => SFIFOCTL_TXFLUSH_A :: SFIFOCTL_TXFLUSH_NOFLUSH , true => SFIFOCTL_TXFLUSH_A :: SFIFOCTL_TXFLUSH_FLUSH , } } # [doc = "NOFLUSH"]
# [inline (always)]
pub fn is_sfifoctl_txflush_noflush (& self) -> bool { * self == SFIFOCTL_TXFLUSH_A :: SFIFOCTL_TXFLUSH_NOFLUSH } # [doc = "FLUSH"]
# [inline (always)]
pub fn is_sfifoctl_txflush_flush (& self) -> bool { * self == SFIFOCTL_TXFLUSH_A :: SFIFOCTL_TXFLUSH_FLUSH } } # [doc = "Field `SFIFOCTL_TXFLUSH` writer - TX FIFO Flush Setting this bit will Flush the TX FIFO. Before reseting this bit to stop Flush the TXFIFOCNT should be checked to be 8 and indicating that the Flush has completed."]
pub type SFIFOCTL_TXFLUSH_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SFIFOCTL_TXFLUSH_A > ; impl < 'a , REG , const O : u8 > SFIFOCTL_TXFLUSH_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOFLUSH"]
# [inline (always)]
pub fn sfifoctl_txflush_noflush (self) -> & 'a mut crate :: W < REG > { self . variant (SFIFOCTL_TXFLUSH_A :: SFIFOCTL_TXFLUSH_NOFLUSH) } # [doc = "FLUSH"]
# [inline (always)]
pub fn sfifoctl_txflush_flush (self) -> & 'a mut crate :: W < REG > { self . variant (SFIFOCTL_TXFLUSH_A :: SFIFOCTL_TXFLUSH_FLUSH) } } # [doc = "Field `SFIFOCTL_RXTRIG` reader - RX FIFO Trigger Indicates at what fill level in the RX FIFO a trigger will be generated. Note: Programming RXTRIG to 0x0 has no effect since no data is present to transfer out of RX FIFO."]
pub type SFIFOCTL_RXTRIG_R = crate :: FieldReader < SFIFOCTL_RXTRIG_A > ; # [doc = "RX FIFO Trigger Indicates at what fill level in the RX FIFO a trigger will be generated. Note: Programming RXTRIG to 0x0 has no effect since no data is present to transfer out of RX FIFO.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum SFIFOCTL_RXTRIG_A { # [doc = "4: LEVEL_5"]
SFIFOCTL_RXTRIG_LEVEL_5 = 4 , # [doc = "5: LEVEL_6"]
SFIFOCTL_RXTRIG_LEVEL_6 = 5 , # [doc = "6: LEVEL_7"]
SFIFOCTL_RXTRIG_LEVEL_7 = 6 , # [doc = "7: LEVEL_8"]
SFIFOCTL_RXTRIG_LEVEL_8 = 7 , } impl From < SFIFOCTL_RXTRIG_A > for u8 { # [inline (always)]
fn from (variant : SFIFOCTL_RXTRIG_A) -> Self { variant as _ } } impl crate :: FieldSpec for SFIFOCTL_RXTRIG_A { type Ux = u8 ; } impl SFIFOCTL_RXTRIG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < SFIFOCTL_RXTRIG_A > { match self . bits { 4 => Some (SFIFOCTL_RXTRIG_A :: SFIFOCTL_RXTRIG_LEVEL_5) , 5 => Some (SFIFOCTL_RXTRIG_A :: SFIFOCTL_RXTRIG_LEVEL_6) , 6 => Some (SFIFOCTL_RXTRIG_A :: SFIFOCTL_RXTRIG_LEVEL_7) , 7 => Some (SFIFOCTL_RXTRIG_A :: SFIFOCTL_RXTRIG_LEVEL_8) , _ => None , } } # [doc = "LEVEL_5"]
# [inline (always)]
pub fn is_sfifoctl_rxtrig_level_5 (& self) -> bool { * self == SFIFOCTL_RXTRIG_A :: SFIFOCTL_RXTRIG_LEVEL_5 } # [doc = "LEVEL_6"]
# [inline (always)]
pub fn is_sfifoctl_rxtrig_level_6 (& self) -> bool { * self == SFIFOCTL_RXTRIG_A :: SFIFOCTL_RXTRIG_LEVEL_6 } # [doc = "LEVEL_7"]
# [inline (always)]
pub fn is_sfifoctl_rxtrig_level_7 (& self) -> bool { * self == SFIFOCTL_RXTRIG_A :: SFIFOCTL_RXTRIG_LEVEL_7 } # [doc = "LEVEL_8"]
# [inline (always)]
pub fn is_sfifoctl_rxtrig_level_8 (& self) -> bool { * self == SFIFOCTL_RXTRIG_A :: SFIFOCTL_RXTRIG_LEVEL_8 } } # [doc = "Field `SFIFOCTL_RXTRIG` writer - RX FIFO Trigger Indicates at what fill level in the RX FIFO a trigger will be generated. Note: Programming RXTRIG to 0x0 has no effect since no data is present to transfer out of RX FIFO."]
pub type SFIFOCTL_RXTRIG_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , SFIFOCTL_RXTRIG_A > ; impl < 'a , REG , const O : u8 > SFIFOCTL_RXTRIG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "LEVEL_5"]
# [inline (always)]
pub fn sfifoctl_rxtrig_level_5 (self) -> & 'a mut crate :: W < REG > { self . variant (SFIFOCTL_RXTRIG_A :: SFIFOCTL_RXTRIG_LEVEL_5) } # [doc = "LEVEL_6"]
# [inline (always)]
pub fn sfifoctl_rxtrig_level_6 (self) -> & 'a mut crate :: W < REG > { self . variant (SFIFOCTL_RXTRIG_A :: SFIFOCTL_RXTRIG_LEVEL_6) } # [doc = "LEVEL_7"]
# [inline (always)]
pub fn sfifoctl_rxtrig_level_7 (self) -> & 'a mut crate :: W < REG > { self . variant (SFIFOCTL_RXTRIG_A :: SFIFOCTL_RXTRIG_LEVEL_7) } # [doc = "LEVEL_8"]
# [inline (always)]
pub fn sfifoctl_rxtrig_level_8 (self) -> & 'a mut crate :: W < REG > { self . variant (SFIFOCTL_RXTRIG_A :: SFIFOCTL_RXTRIG_LEVEL_8) } } # [doc = "Field `SFIFOCTL_RXFLUSH` reader - RX FIFO Flush Setting this bit will Flush the RX FIFO. Before reseting this bit to stop Flush the RXFIFOCNT should be checked to be 0 and indicating that the Flush has completed."]
pub type SFIFOCTL_RXFLUSH_R = crate :: BitReader < SFIFOCTL_RXFLUSH_A > ; # [doc = "RX FIFO Flush Setting this bit will Flush the RX FIFO. Before reseting this bit to stop Flush the RXFIFOCNT should be checked to be 0 and indicating that the Flush has completed.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SFIFOCTL_RXFLUSH_A { # [doc = "0: NOFLUSH"]
SFIFOCTL_RXFLUSH_NOFLUSH = 0 , # [doc = "1: FLUSH"]
SFIFOCTL_RXFLUSH_FLUSH = 1 , } impl From < SFIFOCTL_RXFLUSH_A > for bool { # [inline (always)]
fn from (variant : SFIFOCTL_RXFLUSH_A) -> Self { variant as u8 != 0 } } impl SFIFOCTL_RXFLUSH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SFIFOCTL_RXFLUSH_A { match self . bits { false => SFIFOCTL_RXFLUSH_A :: SFIFOCTL_RXFLUSH_NOFLUSH , true => SFIFOCTL_RXFLUSH_A :: SFIFOCTL_RXFLUSH_FLUSH , } } # [doc = "NOFLUSH"]
# [inline (always)]
pub fn is_sfifoctl_rxflush_noflush (& self) -> bool { * self == SFIFOCTL_RXFLUSH_A :: SFIFOCTL_RXFLUSH_NOFLUSH } # [doc = "FLUSH"]
# [inline (always)]
pub fn is_sfifoctl_rxflush_flush (& self) -> bool { * self == SFIFOCTL_RXFLUSH_A :: SFIFOCTL_RXFLUSH_FLUSH } } # [doc = "Field `SFIFOCTL_RXFLUSH` writer - RX FIFO Flush Setting this bit will Flush the RX FIFO. Before reseting this bit to stop Flush the RXFIFOCNT should be checked to be 0 and indicating that the Flush has completed."]
pub type SFIFOCTL_RXFLUSH_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SFIFOCTL_RXFLUSH_A > ; impl < 'a , REG , const O : u8 > SFIFOCTL_RXFLUSH_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOFLUSH"]
# [inline (always)]
pub fn sfifoctl_rxflush_noflush (self) -> & 'a mut crate :: W < REG > { self . variant (SFIFOCTL_RXFLUSH_A :: SFIFOCTL_RXFLUSH_NOFLUSH) } # [doc = "FLUSH"]
# [inline (always)]
pub fn sfifoctl_rxflush_flush (self) -> & 'a mut crate :: W < REG > { self . variant (SFIFOCTL_RXFLUSH_A :: SFIFOCTL_RXFLUSH_FLUSH) } } impl R { # [doc = "Bits 0:2 - TX FIFO Trigger Indicates at what fill level in the TX FIFO a trigger will be generated."]
# [inline (always)]
pub fn sfifoctl_txtrig (& self) -> SFIFOCTL_TXTRIG_R { SFIFOCTL_TXTRIG_R :: new ((self . bits & 7) as u8) } # [doc = "Bit 7 - TX FIFO Flush Setting this bit will Flush the TX FIFO. Before reseting this bit to stop Flush the TXFIFOCNT should be checked to be 8 and indicating that the Flush has completed."]
# [inline (always)]
pub fn sfifoctl_txflush (& self) -> SFIFOCTL_TXFLUSH_R { SFIFOCTL_TXFLUSH_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bits 8:10 - RX FIFO Trigger Indicates at what fill level in the RX FIFO a trigger will be generated. Note: Programming RXTRIG to 0x0 has no effect since no data is present to transfer out of RX FIFO."]
# [inline (always)]
pub fn sfifoctl_rxtrig (& self) -> SFIFOCTL_RXTRIG_R { SFIFOCTL_RXTRIG_R :: new (((self . bits >> 8) & 7) as u8) } # [doc = "Bit 15 - RX FIFO Flush Setting this bit will Flush the RX FIFO. Before reseting this bit to stop Flush the RXFIFOCNT should be checked to be 0 and indicating that the Flush has completed."]
# [inline (always)]
pub fn sfifoctl_rxflush (& self) -> SFIFOCTL_RXFLUSH_R { SFIFOCTL_RXFLUSH_R :: new (((self . bits >> 15) & 1) != 0) } } impl W { # [doc = "Bits 0:2 - TX FIFO Trigger Indicates at what fill level in the TX FIFO a trigger will be generated."]
# [inline (always)]
# [must_use]
pub fn sfifoctl_txtrig (& mut self) -> SFIFOCTL_TXTRIG_W < SFIFOCTL_SPEC , 0 > { SFIFOCTL_TXTRIG_W :: new (self) } # [doc = "Bit 7 - TX FIFO Flush Setting this bit will Flush the TX FIFO. Before reseting this bit to stop Flush the TXFIFOCNT should be checked to be 8 and indicating that the Flush has completed."]
# [inline (always)]
# [must_use]
pub fn sfifoctl_txflush (& mut self) -> SFIFOCTL_TXFLUSH_W < SFIFOCTL_SPEC , 7 > { SFIFOCTL_TXFLUSH_W :: new (self) } # [doc = "Bits 8:10 - RX FIFO Trigger Indicates at what fill level in the RX FIFO a trigger will be generated. Note: Programming RXTRIG to 0x0 has no effect since no data is present to transfer out of RX FIFO."]
# [inline (always)]
# [must_use]
pub fn sfifoctl_rxtrig (& mut self) -> SFIFOCTL_RXTRIG_W < SFIFOCTL_SPEC , 8 > { SFIFOCTL_RXTRIG_W :: new (self) } # [doc = "Bit 15 - RX FIFO Flush Setting this bit will Flush the RX FIFO. Before reseting this bit to stop Flush the RXFIFOCNT should be checked to be 0 and indicating that the Flush has completed."]
# [inline (always)]
# [must_use]
pub fn sfifoctl_rxflush (& mut self) -> SFIFOCTL_RXFLUSH_W < SFIFOCTL_SPEC , 15 > { SFIFOCTL_RXFLUSH_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "I2C Slave FIFO Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`sfifoctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sfifoctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SFIFOCTL_SPEC ; impl crate :: RegisterSpec for SFIFOCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`sfifoctl::R`](R) reader structure"]
impl crate :: Readable for SFIFOCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`sfifoctl::W`](W) writer structure"]
impl crate :: Writable for SFIFOCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets SFIFOCTL to value 0"]
impl crate :: Resettable for SFIFOCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "SFIFOSR (r) register accessor: I2C Slave FIFO Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`sfifosr::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sfifosr`]
module"]
pub type SFIFOSR = crate :: Reg < sfifosr :: SFIFOSR_SPEC > ; # [doc = "I2C Slave FIFO Status Register"]
pub mod sfifosr { # [doc = "Register `SFIFOSR` reader"]
pub type R = crate :: R < SFIFOSR_SPEC > ; # [doc = "Field `SFIFOSR_RXFIFOCNT` reader - Number of Bytes which could be read from the RX FIFO"]
pub type SFIFOSR_RXFIFOCNT_R = crate :: FieldReader ; # [doc = "Field `SFIFOSR_RXFLUSH` reader - RX FIFO Flush When this bit is set a Flush operation for the RX FIFO is active. Clear the RXFLUSH bit in the control register to stop."]
pub type SFIFOSR_RXFLUSH_R = crate :: BitReader < SFIFOSR_RXFLUSH_A > ; # [doc = "RX FIFO Flush When this bit is set a Flush operation for the RX FIFO is active. Clear the RXFLUSH bit in the control register to stop.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SFIFOSR_RXFLUSH_A { # [doc = "0: INACTIVE"]
SFIFOSR_RXFLUSH_INACTIVE = 0 , # [doc = "1: ACTIVE"]
SFIFOSR_RXFLUSH_ACTIVE = 1 , } impl From < SFIFOSR_RXFLUSH_A > for bool { # [inline (always)]
fn from (variant : SFIFOSR_RXFLUSH_A) -> Self { variant as u8 != 0 } } impl SFIFOSR_RXFLUSH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SFIFOSR_RXFLUSH_A { match self . bits { false => SFIFOSR_RXFLUSH_A :: SFIFOSR_RXFLUSH_INACTIVE , true => SFIFOSR_RXFLUSH_A :: SFIFOSR_RXFLUSH_ACTIVE , } } # [doc = "INACTIVE"]
# [inline (always)]
pub fn is_sfifosr_rxflush_inactive (& self) -> bool { * self == SFIFOSR_RXFLUSH_A :: SFIFOSR_RXFLUSH_INACTIVE } # [doc = "ACTIVE"]
# [inline (always)]
pub fn is_sfifosr_rxflush_active (& self) -> bool { * self == SFIFOSR_RXFLUSH_A :: SFIFOSR_RXFLUSH_ACTIVE } } # [doc = "Field `SFIFOSR_TXFIFOCNT` reader - Number of Bytes which could be put into the TX FIFO"]
pub type SFIFOSR_TXFIFOCNT_R = crate :: FieldReader ; # [doc = "Field `SFIFOSR_TXFLUSH` reader - TX FIFO Flush When this bit is set a Flush operation for the TX FIFO is active. Clear the TXFLUSH bit in the control register to stop."]
pub type SFIFOSR_TXFLUSH_R = crate :: BitReader < SFIFOSR_TXFLUSH_A > ; # [doc = "TX FIFO Flush When this bit is set a Flush operation for the TX FIFO is active. Clear the TXFLUSH bit in the control register to stop.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SFIFOSR_TXFLUSH_A { # [doc = "0: INACTIVE"]
SFIFOSR_TXFLUSH_INACTIVE = 0 , # [doc = "1: ACTIVE"]
SFIFOSR_TXFLUSH_ACTIVE = 1 , } impl From < SFIFOSR_TXFLUSH_A > for bool { # [inline (always)]
fn from (variant : SFIFOSR_TXFLUSH_A) -> Self { variant as u8 != 0 } } impl SFIFOSR_TXFLUSH_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SFIFOSR_TXFLUSH_A { match self . bits { false => SFIFOSR_TXFLUSH_A :: SFIFOSR_TXFLUSH_INACTIVE , true => SFIFOSR_TXFLUSH_A :: SFIFOSR_TXFLUSH_ACTIVE , } } # [doc = "INACTIVE"]
# [inline (always)]
pub fn is_sfifosr_txflush_inactive (& self) -> bool { * self == SFIFOSR_TXFLUSH_A :: SFIFOSR_TXFLUSH_INACTIVE } # [doc = "ACTIVE"]
# [inline (always)]
pub fn is_sfifosr_txflush_active (& self) -> bool { * self == SFIFOSR_TXFLUSH_A :: SFIFOSR_TXFLUSH_ACTIVE } } impl R { # [doc = "Bits 0:3 - Number of Bytes which could be read from the RX FIFO"]
# [inline (always)]
pub fn sfifosr_rxfifocnt (& self) -> SFIFOSR_RXFIFOCNT_R { SFIFOSR_RXFIFOCNT_R :: new ((self . bits & 0x0f) as u8) } # [doc = "Bit 7 - RX FIFO Flush When this bit is set a Flush operation for the RX FIFO is active. Clear the RXFLUSH bit in the control register to stop."]
# [inline (always)]
pub fn sfifosr_rxflush (& self) -> SFIFOSR_RXFLUSH_R { SFIFOSR_RXFLUSH_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bits 8:11 - Number of Bytes which could be put into the TX FIFO"]
# [inline (always)]
pub fn sfifosr_txfifocnt (& self) -> SFIFOSR_TXFIFOCNT_R { SFIFOSR_TXFIFOCNT_R :: new (((self . bits >> 8) & 0x0f) as u8) } # [doc = "Bit 15 - TX FIFO Flush When this bit is set a Flush operation for the TX FIFO is active. Clear the TXFLUSH bit in the control register to stop."]
# [inline (always)]
pub fn sfifosr_txflush (& self) -> SFIFOSR_TXFLUSH_R { SFIFOSR_TXFLUSH_R :: new (((self . bits >> 15) & 1) != 0) } } # [doc = "I2C Slave FIFO Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`sfifosr::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SFIFOSR_SPEC ; impl crate :: RegisterSpec for SFIFOSR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`sfifosr::R`](R) reader structure"]
impl crate :: Readable for SFIFOSR_SPEC { } # [doc = "`reset()` method sets SFIFOSR to value 0x0800"]
impl crate :: Resettable for SFIFOSR_SPEC { const RESET_VALUE : Self :: Ux = 0x0800 ; } } # [doc = "SLAVE_PECCTL (rw) register accessor: I2C Slave PEC control register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`slave_pecctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`slave_pecctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@slave_pecctl`]
module"]
pub type SLAVE_PECCTL = crate :: Reg < slave_pecctl :: SLAVE_PECCTL_SPEC > ; # [doc = "I2C Slave PEC control register"]
pub mod slave_pecctl { # [doc = "Register `SLAVE_PECCTL` reader"]
pub type R = crate :: R < SLAVE_PECCTL_SPEC > ; # [doc = "Register `SLAVE_PECCTL` writer"]
pub type W = crate :: W < SLAVE_PECCTL_SPEC > ; # [doc = "Field `SLAVE_PECCTL_PECCNT` reader - When this field is non zero, the number of I2C data bytes are counted. When the byte count = PECCNT and the state machine is transmitting, the contents of the LSFR is loaded into the shift register instead of the byte received from the Tx FIFO. When the state machine is receiving, after the last bit of this byte is received the LSFR is checked and if it is non-zero, a PEC RX Error interrupt is generated. The I2C packet must be padded to include the PEC byte for both transmit and receive. In transmit mode the FIFO must be loaded with a dummy PEC byte. In receive mode the PEC byte will be passed to the Rx FIFO. In the normal Slave use case, FW would set PECEN=1 and PECCNT=0 and use the ACKOEN until the remaining SMB packet length is known. FW would then set the PECCNT to the remaining packet length (Including PEC bye). FW would then configure DMA to allow the packet to complete unassisted and exit NoAck mode. Note that when the byte count = PEC CNT, the byte count is reset to 0 and multiple PEC calculation can automatically occur within a single I2C transaction"]
pub type SLAVE_PECCTL_PECCNT_R = crate :: FieldReader < u16 > ; # [doc = "Field `SLAVE_PECCTL_PECCNT` writer - When this field is non zero, the number of I2C data bytes are counted. When the byte count = PECCNT and the state machine is transmitting, the contents of the LSFR is loaded into the shift register instead of the byte received from the Tx FIFO. When the state machine is receiving, after the last bit of this byte is received the LSFR is checked and if it is non-zero, a PEC RX Error interrupt is generated. The I2C packet must be padded to include the PEC byte for both transmit and receive. In transmit mode the FIFO must be loaded with a dummy PEC byte. In receive mode the PEC byte will be passed to the Rx FIFO. In the normal Slave use case, FW would set PECEN=1 and PECCNT=0 and use the ACKOEN until the remaining SMB packet length is known. FW would then set the PECCNT to the remaining packet length (Including PEC bye). FW would then configure DMA to allow the packet to complete unassisted and exit NoAck mode. Note that when the byte count = PEC CNT, the byte count is reset to 0 and multiple PEC calculation can automatically occur within a single I2C transaction"]
pub type SLAVE_PECCTL_PECCNT_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 9 , O , u16 > ; # [doc = "Field `SLAVE_PECCTL_PECEN` reader - PEC Enable This bit enables the SMB Packet Error Checking (PEC). When enabled the PEC is calculated on all bits accept the Start, Stop, Ack and Nack. The PEC LSFR and the Byte Counter is set to 0 when the State Machine is in the IDLE state, which occur following a Stop or when a timeout occurs. The Counter is also set to 0 after the PEC byte is sent or received. Note that the NACK is automatically send following a PEC byte that results in a PEC error. The PEC Polynomial is x^8 + x^2 + x^1 + 1."]
pub type SLAVE_PECCTL_PECEN_R = crate :: BitReader < SLAVE_PECCTL_PECEN_A > ; # [doc = "PEC Enable This bit enables the SMB Packet Error Checking (PEC). When enabled the PEC is calculated on all bits accept the Start, Stop, Ack and Nack. The PEC LSFR and the Byte Counter is set to 0 when the State Machine is in the IDLE state, which occur following a Stop or when a timeout occurs. The Counter is also set to 0 after the PEC byte is sent or received. Note that the NACK is automatically send following a PEC byte that results in a PEC error. The PEC Polynomial is x^8 + x^2 + x^1 + 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SLAVE_PECCTL_PECEN_A { # [doc = "0: DISABLE"]
SLAVE_PECCTL_PECEN_DISABLE = 0 , # [doc = "1: ENABLE"]
SLAVE_PECCTL_PECEN_ENABLE = 1 , } impl From < SLAVE_PECCTL_PECEN_A > for bool { # [inline (always)]
fn from (variant : SLAVE_PECCTL_PECEN_A) -> Self { variant as u8 != 0 } } impl SLAVE_PECCTL_PECEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SLAVE_PECCTL_PECEN_A { match self . bits { false => SLAVE_PECCTL_PECEN_A :: SLAVE_PECCTL_PECEN_DISABLE , true => SLAVE_PECCTL_PECEN_A :: SLAVE_PECCTL_PECEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_slave_pecctl_pecen_disable (& self) -> bool { * self == SLAVE_PECCTL_PECEN_A :: SLAVE_PECCTL_PECEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_slave_pecctl_pecen_enable (& self) -> bool { * self == SLAVE_PECCTL_PECEN_A :: SLAVE_PECCTL_PECEN_ENABLE } } # [doc = "Field `SLAVE_PECCTL_PECEN` writer - PEC Enable This bit enables the SMB Packet Error Checking (PEC). When enabled the PEC is calculated on all bits accept the Start, Stop, Ack and Nack. The PEC LSFR and the Byte Counter is set to 0 when the State Machine is in the IDLE state, which occur following a Stop or when a timeout occurs. The Counter is also set to 0 after the PEC byte is sent or received. Note that the NACK is automatically send following a PEC byte that results in a PEC error. The PEC Polynomial is x^8 + x^2 + x^1 + 1."]
pub type SLAVE_PECCTL_PECEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , SLAVE_PECCTL_PECEN_A > ; impl < 'a , REG , const O : u8 > SLAVE_PECCTL_PECEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn slave_pecctl_pecen_disable (self) -> & 'a mut crate :: W < REG > { self . variant (SLAVE_PECCTL_PECEN_A :: SLAVE_PECCTL_PECEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn slave_pecctl_pecen_enable (self) -> & 'a mut crate :: W < REG > { self . variant (SLAVE_PECCTL_PECEN_A :: SLAVE_PECCTL_PECEN_ENABLE) } } impl R { # [doc = "Bits 0:8 - When this field is non zero, the number of I2C data bytes are counted. When the byte count = PECCNT and the state machine is transmitting, the contents of the LSFR is loaded into the shift register instead of the byte received from the Tx FIFO. When the state machine is receiving, after the last bit of this byte is received the LSFR is checked and if it is non-zero, a PEC RX Error interrupt is generated. The I2C packet must be padded to include the PEC byte for both transmit and receive. In transmit mode the FIFO must be loaded with a dummy PEC byte. In receive mode the PEC byte will be passed to the Rx FIFO. In the normal Slave use case, FW would set PECEN=1 and PECCNT=0 and use the ACKOEN until the remaining SMB packet length is known. FW would then set the PECCNT to the remaining packet length (Including PEC bye). FW would then configure DMA to allow the packet to complete unassisted and exit NoAck mode. Note that when the byte count = PEC CNT, the byte count is reset to 0 and multiple PEC calculation can automatically occur within a single I2C transaction"]
# [inline (always)]
pub fn slave_pecctl_peccnt (& self) -> SLAVE_PECCTL_PECCNT_R { SLAVE_PECCTL_PECCNT_R :: new ((self . bits & 0x01ff) as u16) } # [doc = "Bit 12 - PEC Enable This bit enables the SMB Packet Error Checking (PEC). When enabled the PEC is calculated on all bits accept the Start, Stop, Ack and Nack. The PEC LSFR and the Byte Counter is set to 0 when the State Machine is in the IDLE state, which occur following a Stop or when a timeout occurs. The Counter is also set to 0 after the PEC byte is sent or received. Note that the NACK is automatically send following a PEC byte that results in a PEC error. The PEC Polynomial is x^8 + x^2 + x^1 + 1."]
# [inline (always)]
pub fn slave_pecctl_pecen (& self) -> SLAVE_PECCTL_PECEN_R { SLAVE_PECCTL_PECEN_R :: new (((self . bits >> 12) & 1) != 0) } } impl W { # [doc = "Bits 0:8 - When this field is non zero, the number of I2C data bytes are counted. When the byte count = PECCNT and the state machine is transmitting, the contents of the LSFR is loaded into the shift register instead of the byte received from the Tx FIFO. When the state machine is receiving, after the last bit of this byte is received the LSFR is checked and if it is non-zero, a PEC RX Error interrupt is generated. The I2C packet must be padded to include the PEC byte for both transmit and receive. In transmit mode the FIFO must be loaded with a dummy PEC byte. In receive mode the PEC byte will be passed to the Rx FIFO. In the normal Slave use case, FW would set PECEN=1 and PECCNT=0 and use the ACKOEN until the remaining SMB packet length is known. FW would then set the PECCNT to the remaining packet length (Including PEC bye). FW would then configure DMA to allow the packet to complete unassisted and exit NoAck mode. Note that when the byte count = PEC CNT, the byte count is reset to 0 and multiple PEC calculation can automatically occur within a single I2C transaction"]
# [inline (always)]
# [must_use]
pub fn slave_pecctl_peccnt (& mut self) -> SLAVE_PECCTL_PECCNT_W < SLAVE_PECCTL_SPEC , 0 > { SLAVE_PECCTL_PECCNT_W :: new (self) } # [doc = "Bit 12 - PEC Enable This bit enables the SMB Packet Error Checking (PEC). When enabled the PEC is calculated on all bits accept the Start, Stop, Ack and Nack. The PEC LSFR and the Byte Counter is set to 0 when the State Machine is in the IDLE state, which occur following a Stop or when a timeout occurs. The Counter is also set to 0 after the PEC byte is sent or received. Note that the NACK is automatically send following a PEC byte that results in a PEC error. The PEC Polynomial is x^8 + x^2 + x^1 + 1."]
# [inline (always)]
# [must_use]
pub fn slave_pecctl_pecen (& mut self) -> SLAVE_PECCTL_PECEN_W < SLAVE_PECCTL_SPEC , 12 > { SLAVE_PECCTL_PECEN_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "I2C Slave PEC control register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`slave_pecctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`slave_pecctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SLAVE_PECCTL_SPEC ; impl crate :: RegisterSpec for SLAVE_PECCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`slave_pecctl::R`](R) reader structure"]
impl crate :: Readable for SLAVE_PECCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`slave_pecctl::W`](W) writer structure"]
impl crate :: Writable for SLAVE_PECCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets SLAVE_PECCTL to value 0"]
impl crate :: Resettable for SLAVE_PECCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "SLAVE_PECSR (r) register accessor: I2C slave PEC status register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`slave_pecsr::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@slave_pecsr`]
module"]
pub type SLAVE_PECSR = crate :: Reg < slave_pecsr :: SLAVE_PECSR_SPEC > ; # [doc = "I2C slave PEC status register"]
pub mod slave_pecsr { # [doc = "Register `SLAVE_PECSR` reader"]
pub type R = crate :: R < SLAVE_PECSR_SPEC > ; # [doc = "Field `SLAVE_PECSR_PECBYTECNT` reader - This is the current PEC Byte Count of the Slave State Machine."]
pub type SLAVE_PECSR_PECBYTECNT_R = crate :: FieldReader < u16 > ; # [doc = "Field `SLAVE_PECSR_PECSTS_CHECK` reader - This status bit indicates if the PEC was checked in the transaction that occurred before the last Stop. Latched on Stop."]
pub type SLAVE_PECSR_PECSTS_CHECK_R = crate :: BitReader < SLAVE_PECSR_PECSTS_CHECK_A > ; # [doc = "This status bit indicates if the PEC was checked in the transaction that occurred before the last Stop. Latched on Stop.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SLAVE_PECSR_PECSTS_CHECK_A { # [doc = "0: CLEARED"]
SLAVE_PECSR_PECSTS_CHECK_CLEARED = 0 , # [doc = "1: SET"]
SLAVE_PECSR_PECSTS_CHECK_SET = 1 , } impl From < SLAVE_PECSR_PECSTS_CHECK_A > for bool { # [inline (always)]
fn from (variant : SLAVE_PECSR_PECSTS_CHECK_A) -> Self { variant as u8 != 0 } } impl SLAVE_PECSR_PECSTS_CHECK_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SLAVE_PECSR_PECSTS_CHECK_A { match self . bits { false => SLAVE_PECSR_PECSTS_CHECK_A :: SLAVE_PECSR_PECSTS_CHECK_CLEARED , true => SLAVE_PECSR_PECSTS_CHECK_A :: SLAVE_PECSR_PECSTS_CHECK_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_slave_pecsr_pecsts_check_cleared (& self) -> bool { * self == SLAVE_PECSR_PECSTS_CHECK_A :: SLAVE_PECSR_PECSTS_CHECK_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_slave_pecsr_pecsts_check_set (& self) -> bool { * self == SLAVE_PECSR_PECSTS_CHECK_A :: SLAVE_PECSR_PECSTS_CHECK_SET } } # [doc = "Field `SLAVE_PECSR_PECSTS_ERROR` reader - This status bit indicates if a PEC check error occurred in the transaction that occurred before the last Stop. Latched on Stop."]
pub type SLAVE_PECSR_PECSTS_ERROR_R = crate :: BitReader < SLAVE_PECSR_PECSTS_ERROR_A > ; # [doc = "This status bit indicates if a PEC check error occurred in the transaction that occurred before the last Stop. Latched on Stop.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum SLAVE_PECSR_PECSTS_ERROR_A { # [doc = "0: CLEARED"]
SLAVE_PECSR_PECSTS_ERROR_CLEARED = 0 , # [doc = "1: SET"]
SLAVE_PECSR_PECSTS_ERROR_SET = 1 , } impl From < SLAVE_PECSR_PECSTS_ERROR_A > for bool { # [inline (always)]
fn from (variant : SLAVE_PECSR_PECSTS_ERROR_A) -> Self { variant as u8 != 0 } } impl SLAVE_PECSR_PECSTS_ERROR_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> SLAVE_PECSR_PECSTS_ERROR_A { match self . bits { false => SLAVE_PECSR_PECSTS_ERROR_A :: SLAVE_PECSR_PECSTS_ERROR_CLEARED , true => SLAVE_PECSR_PECSTS_ERROR_A :: SLAVE_PECSR_PECSTS_ERROR_SET , } } # [doc = "CLEARED"]
# [inline (always)]
pub fn is_slave_pecsr_pecsts_error_cleared (& self) -> bool { * self == SLAVE_PECSR_PECSTS_ERROR_A :: SLAVE_PECSR_PECSTS_ERROR_CLEARED } # [doc = "SET"]
# [inline (always)]
pub fn is_slave_pecsr_pecsts_error_set (& self) -> bool { * self == SLAVE_PECSR_PECSTS_ERROR_A :: SLAVE_PECSR_PECSTS_ERROR_SET } } impl R { # [doc = "Bits 0:8 - This is the current PEC Byte Count of the Slave State Machine."]
# [inline (always)]
pub fn slave_pecsr_pecbytecnt (& self) -> SLAVE_PECSR_PECBYTECNT_R { SLAVE_PECSR_PECBYTECNT_R :: new ((self . bits & 0x01ff) as u16) } # [doc = "Bit 16 - This status bit indicates if the PEC was checked in the transaction that occurred before the last Stop. Latched on Stop."]
# [inline (always)]
pub fn slave_pecsr_pecsts_check (& self) -> SLAVE_PECSR_PECSTS_CHECK_R { SLAVE_PECSR_PECSTS_CHECK_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 17 - This status bit indicates if a PEC check error occurred in the transaction that occurred before the last Stop. Latched on Stop."]
# [inline (always)]
pub fn slave_pecsr_pecsts_error (& self) -> SLAVE_PECSR_PECSTS_ERROR_R { SLAVE_PECSR_PECSTS_ERROR_R :: new (((self . bits >> 17) & 1) != 0) } } # [doc = "I2C slave PEC status register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`slave_pecsr::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SLAVE_PECSR_SPEC ; impl crate :: RegisterSpec for SLAVE_PECSR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`slave_pecsr::R`](R) reader structure"]
impl crate :: Readable for SLAVE_PECSR_SPEC { } # [doc = "`reset()` method sets SLAVE_PECSR to value 0"]
impl crate :: Resettable for SLAVE_PECSR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } } # [doc = "PERIPHERALREGION"]
pub struct IOMUX { _marker : PhantomData < * const () > } unsafe impl Send for IOMUX { } impl IOMUX { # [doc = r"Pointer to the register block"]
pub const PTR : * const iomux :: RegisterBlock = 0x4042_8000 as * const _ ; # [doc = r"Return the pointer to the register block"]
# [inline (always)]
pub const fn ptr () -> * const iomux :: RegisterBlock { Self :: PTR } # [doc = r" Steal an instance of this peripheral"]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Ensure that the new instance of the peripheral cannot be used in a way"]
# [doc = r" that may race with any existing instances, for example by only"]
# [doc = r" accessing read-only or write-only registers, or by consuming the"]
# [doc = r" original peripheral and using critical sections to coordinate"]
# [doc = r" access between multiple new instances."]
# [doc = r""]
# [doc = r" Additionally, other software such as HALs may rely on only one"]
# [doc = r" peripheral instance existing to ensure memory safety; ensure"]
# [doc = r" no stolen instances are passed to such software."]
pub unsafe fn steal () -> Self { Self { _marker : PhantomData } } } impl Deref for IOMUX { type Target = iomux :: RegisterBlock ; # [inline (always)]
fn deref (& self) -> & Self :: Target { unsafe { & * Self :: PTR } } } impl core :: fmt :: Debug for IOMUX { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("IOMUX") . finish () } } # [doc = "PERIPHERALREGION"]
pub mod iomux { # [doc = r"Register block"]
# [repr (C)]
pub struct RegisterBlock { _reserved0 : [u8 ; 0x04]
, # [doc = "0x04..0xf8 - Pin Control Management Register in SECCFG region"]
pub pincm : [PINCM ; 61]
, } # [doc = "PINCM (rw) register accessor: Pin Control Management Register in SECCFG region\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pincm::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pincm::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pincm`]
module"]
pub type PINCM = crate :: Reg < pincm :: PINCM_SPEC > ; # [doc = "Pin Control Management Register in SECCFG region"]
pub mod pincm { # [doc = "Register `PINCM[%s]` reader"]
pub type R = crate :: R < PINCM_SPEC > ; # [doc = "Register `PINCM[%s]` writer"]
pub type W = crate :: W < PINCM_SPEC > ; # [doc = "Field `PINCM_PF` reader - P channel Function selection bits"]
pub type PINCM_PF_R = crate :: FieldReader ; # [doc = "Field `PINCM_PF` writer - P channel Function selection bits"]
pub type PINCM_PF_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 6 , O > ; # [doc = "Field `PINCM_PC` reader - Peripheral is Connected"]
pub type PINCM_PC_R = crate :: BitReader < PINCM_PC_A > ; # [doc = "Peripheral is Connected\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PINCM_PC_A { # [doc = "0: UNCONNECTED"]
PINCM_PC_UNCONNECTED = 0 , # [doc = "1: CONNECTED"]
PINCM_PC_CONNECTED = 1 , } impl From < PINCM_PC_A > for bool { # [inline (always)]
fn from (variant : PINCM_PC_A) -> Self { variant as u8 != 0 } } impl PINCM_PC_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PINCM_PC_A { match self . bits { false => PINCM_PC_A :: PINCM_PC_UNCONNECTED , true => PINCM_PC_A :: PINCM_PC_CONNECTED , } } # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn is_pincm_pc_unconnected (& self) -> bool { * self == PINCM_PC_A :: PINCM_PC_UNCONNECTED } # [doc = "CONNECTED"]
# [inline (always)]
pub fn is_pincm_pc_connected (& self) -> bool { * self == PINCM_PC_A :: PINCM_PC_CONNECTED } } # [doc = "Field `PINCM_PC` writer - Peripheral is Connected"]
pub type PINCM_PC_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PINCM_PC_A > ; impl < 'a , REG , const O : u8 > PINCM_PC_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn pincm_pc_unconnected (self) -> & 'a mut crate :: W < REG > { self . variant (PINCM_PC_A :: PINCM_PC_UNCONNECTED) } # [doc = "CONNECTED"]
# [inline (always)]
pub fn pincm_pc_connected (self) -> & 'a mut crate :: W < REG > { self . variant (PINCM_PC_A :: PINCM_PC_CONNECTED) } } # [doc = "Field `PINCM_WAKESTAT` reader - This has the IOPAD WAKEUP signal as status bit."]
pub type PINCM_WAKESTAT_R = crate :: BitReader < PINCM_WAKESTAT_A > ; # [doc = "This has the IOPAD WAKEUP signal as status bit.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PINCM_WAKESTAT_A { # [doc = "0: DISABLE"]
PINCM_WAKESTAT_DISABLE = 0 , # [doc = "1: ENABLE"]
PINCM_WAKESTAT_ENABLE = 1 , } impl From < PINCM_WAKESTAT_A > for bool { # [inline (always)]
fn from (variant : PINCM_WAKESTAT_A) -> Self { variant as u8 != 0 } } impl PINCM_WAKESTAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PINCM_WAKESTAT_A { match self . bits { false => PINCM_WAKESTAT_A :: PINCM_WAKESTAT_DISABLE , true => PINCM_WAKESTAT_A :: PINCM_WAKESTAT_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_pincm_wakestat_disable (& self) -> bool { * self == PINCM_WAKESTAT_A :: PINCM_WAKESTAT_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_pincm_wakestat_enable (& self) -> bool { * self == PINCM_WAKESTAT_A :: PINCM_WAKESTAT_ENABLE } } # [doc = "Field `PINCM_PIPD` reader - Pull Down control selection"]
pub type PINCM_PIPD_R = crate :: BitReader < PINCM_PIPD_A > ; # [doc = "Pull Down control selection\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PINCM_PIPD_A { # [doc = "0: DISABLE"]
PINCM_PIPD_DISABLE = 0 , # [doc = "1: ENABLE"]
PINCM_PIPD_ENABLE = 1 , } impl From < PINCM_PIPD_A > for bool { # [inline (always)]
fn from (variant : PINCM_PIPD_A) -> Self { variant as u8 != 0 } } impl PINCM_PIPD_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PINCM_PIPD_A { match self . bits { false => PINCM_PIPD_A :: PINCM_PIPD_DISABLE , true => PINCM_PIPD_A :: PINCM_PIPD_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_pincm_pipd_disable (& self) -> bool { * self == PINCM_PIPD_A :: PINCM_PIPD_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_pincm_pipd_enable (& self) -> bool { * self == PINCM_PIPD_A :: PINCM_PIPD_ENABLE } } # [doc = "Field `PINCM_PIPD` writer - Pull Down control selection"]
pub type PINCM_PIPD_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PINCM_PIPD_A > ; impl < 'a , REG , const O : u8 > PINCM_PIPD_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn pincm_pipd_disable (self) -> & 'a mut crate :: W < REG > { self . variant (PINCM_PIPD_A :: PINCM_PIPD_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn pincm_pipd_enable (self) -> & 'a mut crate :: W < REG > { self . variant (PINCM_PIPD_A :: PINCM_PIPD_ENABLE) } } # [doc = "Field `PINCM_PIPU` reader - Pull Up control selection"]
pub type PINCM_PIPU_R = crate :: BitReader < PINCM_PIPU_A > ; # [doc = "Pull Up control selection\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PINCM_PIPU_A { # [doc = "0: DISABLE"]
PINCM_PIPU_DISABLE = 0 , # [doc = "1: ENABLE"]
PINCM_PIPU_ENABLE = 1 , } impl From < PINCM_PIPU_A > for bool { # [inline (always)]
fn from (variant : PINCM_PIPU_A) -> Self { variant as u8 != 0 } } impl PINCM_PIPU_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PINCM_PIPU_A { match self . bits { false => PINCM_PIPU_A :: PINCM_PIPU_DISABLE , true => PINCM_PIPU_A :: PINCM_PIPU_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_pincm_pipu_disable (& self) -> bool { * self == PINCM_PIPU_A :: PINCM_PIPU_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_pincm_pipu_enable (& self) -> bool { * self == PINCM_PIPU_A :: PINCM_PIPU_ENABLE } } # [doc = "Field `PINCM_PIPU` writer - Pull Up control selection"]
pub type PINCM_PIPU_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PINCM_PIPU_A > ; impl < 'a , REG , const O : u8 > PINCM_PIPU_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn pincm_pipu_disable (self) -> & 'a mut crate :: W < REG > { self . variant (PINCM_PIPU_A :: PINCM_PIPU_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn pincm_pipu_enable (self) -> & 'a mut crate :: W < REG > { self . variant (PINCM_PIPU_A :: PINCM_PIPU_ENABLE) } } # [doc = "Field `PINCM_INENA` reader - Input Enable Control Selection"]
pub type PINCM_INENA_R = crate :: BitReader < PINCM_INENA_A > ; # [doc = "Input Enable Control Selection\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PINCM_INENA_A { # [doc = "0: DISABLE"]
PINCM_INENA_DISABLE = 0 , # [doc = "1: ENABLE"]
PINCM_INENA_ENABLE = 1 , } impl From < PINCM_INENA_A > for bool { # [inline (always)]
fn from (variant : PINCM_INENA_A) -> Self { variant as u8 != 0 } } impl PINCM_INENA_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PINCM_INENA_A { match self . bits { false => PINCM_INENA_A :: PINCM_INENA_DISABLE , true => PINCM_INENA_A :: PINCM_INENA_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_pincm_inena_disable (& self) -> bool { * self == PINCM_INENA_A :: PINCM_INENA_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_pincm_inena_enable (& self) -> bool { * self == PINCM_INENA_A :: PINCM_INENA_ENABLE } } # [doc = "Field `PINCM_INENA` writer - Input Enable Control Selection"]
pub type PINCM_INENA_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PINCM_INENA_A > ; impl < 'a , REG , const O : u8 > PINCM_INENA_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn pincm_inena_disable (self) -> & 'a mut crate :: W < REG > { self . variant (PINCM_INENA_A :: PINCM_INENA_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn pincm_inena_enable (self) -> & 'a mut crate :: W < REG > { self . variant (PINCM_INENA_A :: PINCM_INENA_ENABLE) } } # [doc = "Field `PINCM_HYSTEN` reader - Hystersis Enable Control Selection"]
pub type PINCM_HYSTEN_R = crate :: BitReader < PINCM_HYSTEN_A > ; # [doc = "Hystersis Enable Control Selection\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PINCM_HYSTEN_A { # [doc = "0: DISABLE"]
PINCM_HYSTEN_DISABLE = 0 , # [doc = "1: ENABLE"]
PINCM_HYSTEN_ENABLE = 1 , } impl From < PINCM_HYSTEN_A > for bool { # [inline (always)]
fn from (variant : PINCM_HYSTEN_A) -> Self { variant as u8 != 0 } } impl PINCM_HYSTEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PINCM_HYSTEN_A { match self . bits { false => PINCM_HYSTEN_A :: PINCM_HYSTEN_DISABLE , true => PINCM_HYSTEN_A :: PINCM_HYSTEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_pincm_hysten_disable (& self) -> bool { * self == PINCM_HYSTEN_A :: PINCM_HYSTEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_pincm_hysten_enable (& self) -> bool { * self == PINCM_HYSTEN_A :: PINCM_HYSTEN_ENABLE } } # [doc = "Field `PINCM_HYSTEN` writer - Hystersis Enable Control Selection"]
pub type PINCM_HYSTEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PINCM_HYSTEN_A > ; impl < 'a , REG , const O : u8 > PINCM_HYSTEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn pincm_hysten_disable (self) -> & 'a mut crate :: W < REG > { self . variant (PINCM_HYSTEN_A :: PINCM_HYSTEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn pincm_hysten_enable (self) -> & 'a mut crate :: W < REG > { self . variant (PINCM_HYSTEN_A :: PINCM_HYSTEN_ENABLE) } } # [doc = "Field `PINCM_DRV` reader - Drive strength control selection, for HS IOCELL only"]
pub type PINCM_DRV_R = crate :: BitReader < PINCM_DRV_A > ; # [doc = "Drive strength control selection, for HS IOCELL only\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PINCM_DRV_A { # [doc = "0: DRVVAL0"]
PINCM_DRV_DRVVAL0 = 0 , # [doc = "1: DRVVAL1"]
PINCM_DRV_DRVVAL1 = 1 , } impl From < PINCM_DRV_A > for bool { # [inline (always)]
fn from (variant : PINCM_DRV_A) -> Self { variant as u8 != 0 } } impl PINCM_DRV_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PINCM_DRV_A { match self . bits { false => PINCM_DRV_A :: PINCM_DRV_DRVVAL0 , true => PINCM_DRV_A :: PINCM_DRV_DRVVAL1 , } } # [doc = "DRVVAL0"]
# [inline (always)]
pub fn is_pincm_drv_drvval0 (& self) -> bool { * self == PINCM_DRV_A :: PINCM_DRV_DRVVAL0 } # [doc = "DRVVAL1"]
# [inline (always)]
pub fn is_pincm_drv_drvval1 (& self) -> bool { * self == PINCM_DRV_A :: PINCM_DRV_DRVVAL1 } } # [doc = "Field `PINCM_DRV` writer - Drive strength control selection, for HS IOCELL only"]
pub type PINCM_DRV_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PINCM_DRV_A > ; impl < 'a , REG , const O : u8 > PINCM_DRV_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DRVVAL0"]
# [inline (always)]
pub fn pincm_drv_drvval0 (self) -> & 'a mut crate :: W < REG > { self . variant (PINCM_DRV_A :: PINCM_DRV_DRVVAL0) } # [doc = "DRVVAL1"]
# [inline (always)]
pub fn pincm_drv_drvval1 (self) -> & 'a mut crate :: W < REG > { self . variant (PINCM_DRV_A :: PINCM_DRV_DRVVAL1) } } # [doc = "Field `PINCM_HIZ1` reader - High output value will tri-state the output when this bit is enabled"]
pub type PINCM_HIZ1_R = crate :: BitReader < PINCM_HIZ1_A > ; # [doc = "High output value will tri-state the output when this bit is enabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PINCM_HIZ1_A { # [doc = "0: DISABLE"]
PINCM_HIZ1_DISABLE = 0 , # [doc = "1: ENABLE"]
PINCM_HIZ1_ENABLE = 1 , } impl From < PINCM_HIZ1_A > for bool { # [inline (always)]
fn from (variant : PINCM_HIZ1_A) -> Self { variant as u8 != 0 } } impl PINCM_HIZ1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PINCM_HIZ1_A { match self . bits { false => PINCM_HIZ1_A :: PINCM_HIZ1_DISABLE , true => PINCM_HIZ1_A :: PINCM_HIZ1_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_pincm_hiz1_disable (& self) -> bool { * self == PINCM_HIZ1_A :: PINCM_HIZ1_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_pincm_hiz1_enable (& self) -> bool { * self == PINCM_HIZ1_A :: PINCM_HIZ1_ENABLE } } # [doc = "Field `PINCM_HIZ1` writer - High output value will tri-state the output when this bit is enabled"]
pub type PINCM_HIZ1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PINCM_HIZ1_A > ; impl < 'a , REG , const O : u8 > PINCM_HIZ1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn pincm_hiz1_disable (self) -> & 'a mut crate :: W < REG > { self . variant (PINCM_HIZ1_A :: PINCM_HIZ1_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn pincm_hiz1_enable (self) -> & 'a mut crate :: W < REG > { self . variant (PINCM_HIZ1_A :: PINCM_HIZ1_ENABLE) } } # [doc = "Field `PINCM_INV` reader - Data inversion selection"]
pub type PINCM_INV_R = crate :: BitReader < PINCM_INV_A > ; # [doc = "Data inversion selection\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PINCM_INV_A { # [doc = "0: DISABLE"]
PINCM_INV_DISABLE = 0 , # [doc = "1: ENABLE"]
PINCM_INV_ENABLE = 1 , } impl From < PINCM_INV_A > for bool { # [inline (always)]
fn from (variant : PINCM_INV_A) -> Self { variant as u8 != 0 } } impl PINCM_INV_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PINCM_INV_A { match self . bits { false => PINCM_INV_A :: PINCM_INV_DISABLE , true => PINCM_INV_A :: PINCM_INV_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_pincm_inv_disable (& self) -> bool { * self == PINCM_INV_A :: PINCM_INV_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_pincm_inv_enable (& self) -> bool { * self == PINCM_INV_A :: PINCM_INV_ENABLE } } # [doc = "Field `PINCM_INV` writer - Data inversion selection"]
pub type PINCM_INV_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PINCM_INV_A > ; impl < 'a , REG , const O : u8 > PINCM_INV_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn pincm_inv_disable (self) -> & 'a mut crate :: W < REG > { self . variant (PINCM_INV_A :: PINCM_INV_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn pincm_inv_enable (self) -> & 'a mut crate :: W < REG > { self . variant (PINCM_INV_A :: PINCM_INV_ENABLE) } } # [doc = "Field `PINCM_WUEN` reader - Wakeup Enable bit"]
pub type PINCM_WUEN_R = crate :: BitReader < PINCM_WUEN_A > ; # [doc = "Wakeup Enable bit\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PINCM_WUEN_A { # [doc = "0: DISABLE"]
PINCM_WUEN_DISABLE = 0 , # [doc = "1: ENABLE"]
PINCM_WUEN_ENABLE = 1 , } impl From < PINCM_WUEN_A > for bool { # [inline (always)]
fn from (variant : PINCM_WUEN_A) -> Self { variant as u8 != 0 } } impl PINCM_WUEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PINCM_WUEN_A { match self . bits { false => PINCM_WUEN_A :: PINCM_WUEN_DISABLE , true => PINCM_WUEN_A :: PINCM_WUEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_pincm_wuen_disable (& self) -> bool { * self == PINCM_WUEN_A :: PINCM_WUEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_pincm_wuen_enable (& self) -> bool { * self == PINCM_WUEN_A :: PINCM_WUEN_ENABLE } } # [doc = "Field `PINCM_WUEN` writer - Wakeup Enable bit"]
pub type PINCM_WUEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PINCM_WUEN_A > ; impl < 'a , REG , const O : u8 > PINCM_WUEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn pincm_wuen_disable (self) -> & 'a mut crate :: W < REG > { self . variant (PINCM_WUEN_A :: PINCM_WUEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn pincm_wuen_enable (self) -> & 'a mut crate :: W < REG > { self . variant (PINCM_WUEN_A :: PINCM_WUEN_ENABLE) } } # [doc = "Field `PINCM_WCOMP` reader - Wakeup Compare Value bit"]
pub type PINCM_WCOMP_R = crate :: BitReader < PINCM_WCOMP_A > ; # [doc = "Wakeup Compare Value bit\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PINCM_WCOMP_A { # [doc = "0: MATCH0"]
PINCM_WCOMP_MATCH0 = 0 , # [doc = "1: MATCH1"]
PINCM_WCOMP_MATCH1 = 1 , } impl From < PINCM_WCOMP_A > for bool { # [inline (always)]
fn from (variant : PINCM_WCOMP_A) -> Self { variant as u8 != 0 } } impl PINCM_WCOMP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PINCM_WCOMP_A { match self . bits { false => PINCM_WCOMP_A :: PINCM_WCOMP_MATCH0 , true => PINCM_WCOMP_A :: PINCM_WCOMP_MATCH1 , } } # [doc = "MATCH0"]
# [inline (always)]
pub fn is_pincm_wcomp_match0 (& self) -> bool { * self == PINCM_WCOMP_A :: PINCM_WCOMP_MATCH0 } # [doc = "MATCH1"]
# [inline (always)]
pub fn is_pincm_wcomp_match1 (& self) -> bool { * self == PINCM_WCOMP_A :: PINCM_WCOMP_MATCH1 } } # [doc = "Field `PINCM_WCOMP` writer - Wakeup Compare Value bit"]
pub type PINCM_WCOMP_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PINCM_WCOMP_A > ; impl < 'a , REG , const O : u8 > PINCM_WCOMP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "MATCH0"]
# [inline (always)]
pub fn pincm_wcomp_match0 (self) -> & 'a mut crate :: W < REG > { self . variant (PINCM_WCOMP_A :: PINCM_WCOMP_MATCH0) } # [doc = "MATCH1"]
# [inline (always)]
pub fn pincm_wcomp_match1 (self) -> & 'a mut crate :: W < REG > { self . variant (PINCM_WCOMP_A :: PINCM_WCOMP_MATCH1) } } impl R { # [doc = "Bits 0:5 - P channel Function selection bits"]
# [inline (always)]
pub fn pincm_pf (& self) -> PINCM_PF_R { PINCM_PF_R :: new ((self . bits & 0x3f) as u8) } # [doc = "Bit 7 - Peripheral is Connected"]
# [inline (always)]
pub fn pincm_pc (& self) -> PINCM_PC_R { PINCM_PC_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bit 13 - This has the IOPAD WAKEUP signal as status bit."]
# [inline (always)]
pub fn pincm_wakestat (& self) -> PINCM_WAKESTAT_R { PINCM_WAKESTAT_R :: new (((self . bits >> 13) & 1) != 0) } # [doc = "Bit 16 - Pull Down control selection"]
# [inline (always)]
pub fn pincm_pipd (& self) -> PINCM_PIPD_R { PINCM_PIPD_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 17 - Pull Up control selection"]
# [inline (always)]
pub fn pincm_pipu (& self) -> PINCM_PIPU_R { PINCM_PIPU_R :: new (((self . bits >> 17) & 1) != 0) } # [doc = "Bit 18 - Input Enable Control Selection"]
# [inline (always)]
pub fn pincm_inena (& self) -> PINCM_INENA_R { PINCM_INENA_R :: new (((self . bits >> 18) & 1) != 0) } # [doc = "Bit 19 - Hystersis Enable Control Selection"]
# [inline (always)]
pub fn pincm_hysten (& self) -> PINCM_HYSTEN_R { PINCM_HYSTEN_R :: new (((self . bits >> 19) & 1) != 0) } # [doc = "Bit 20 - Drive strength control selection, for HS IOCELL only"]
# [inline (always)]
pub fn pincm_drv (& self) -> PINCM_DRV_R { PINCM_DRV_R :: new (((self . bits >> 20) & 1) != 0) } # [doc = "Bit 25 - High output value will tri-state the output when this bit is enabled"]
# [inline (always)]
pub fn pincm_hiz1 (& self) -> PINCM_HIZ1_R { PINCM_HIZ1_R :: new (((self . bits >> 25) & 1) != 0) } # [doc = "Bit 26 - Data inversion selection"]
# [inline (always)]
pub fn pincm_inv (& self) -> PINCM_INV_R { PINCM_INV_R :: new (((self . bits >> 26) & 1) != 0) } # [doc = "Bit 27 - Wakeup Enable bit"]
# [inline (always)]
pub fn pincm_wuen (& self) -> PINCM_WUEN_R { PINCM_WUEN_R :: new (((self . bits >> 27) & 1) != 0) } # [doc = "Bit 28 - Wakeup Compare Value bit"]
# [inline (always)]
pub fn pincm_wcomp (& self) -> PINCM_WCOMP_R { PINCM_WCOMP_R :: new (((self . bits >> 28) & 1) != 0) } } impl W { # [doc = "Bits 0:5 - P channel Function selection bits"]
# [inline (always)]
# [must_use]
pub fn pincm_pf (& mut self) -> PINCM_PF_W < PINCM_SPEC , 0 > { PINCM_PF_W :: new (self) } # [doc = "Bit 7 - Peripheral is Connected"]
# [inline (always)]
# [must_use]
pub fn pincm_pc (& mut self) -> PINCM_PC_W < PINCM_SPEC , 7 > { PINCM_PC_W :: new (self) } # [doc = "Bit 16 - Pull Down control selection"]
# [inline (always)]
# [must_use]
pub fn pincm_pipd (& mut self) -> PINCM_PIPD_W < PINCM_SPEC , 16 > { PINCM_PIPD_W :: new (self) } # [doc = "Bit 17 - Pull Up control selection"]
# [inline (always)]
# [must_use]
pub fn pincm_pipu (& mut self) -> PINCM_PIPU_W < PINCM_SPEC , 17 > { PINCM_PIPU_W :: new (self) } # [doc = "Bit 18 - Input Enable Control Selection"]
# [inline (always)]
# [must_use]
pub fn pincm_inena (& mut self) -> PINCM_INENA_W < PINCM_SPEC , 18 > { PINCM_INENA_W :: new (self) } # [doc = "Bit 19 - Hystersis Enable Control Selection"]
# [inline (always)]
# [must_use]
pub fn pincm_hysten (& mut self) -> PINCM_HYSTEN_W < PINCM_SPEC , 19 > { PINCM_HYSTEN_W :: new (self) } # [doc = "Bit 20 - Drive strength control selection, for HS IOCELL only"]
# [inline (always)]
# [must_use]
pub fn pincm_drv (& mut self) -> PINCM_DRV_W < PINCM_SPEC , 20 > { PINCM_DRV_W :: new (self) } # [doc = "Bit 25 - High output value will tri-state the output when this bit is enabled"]
# [inline (always)]
# [must_use]
pub fn pincm_hiz1 (& mut self) -> PINCM_HIZ1_W < PINCM_SPEC , 25 > { PINCM_HIZ1_W :: new (self) } # [doc = "Bit 26 - Data inversion selection"]
# [inline (always)]
# [must_use]
pub fn pincm_inv (& mut self) -> PINCM_INV_W < PINCM_SPEC , 26 > { PINCM_INV_W :: new (self) } # [doc = "Bit 27 - Wakeup Enable bit"]
# [inline (always)]
# [must_use]
pub fn pincm_wuen (& mut self) -> PINCM_WUEN_W < PINCM_SPEC , 27 > { PINCM_WUEN_W :: new (self) } # [doc = "Bit 28 - Wakeup Compare Value bit"]
# [inline (always)]
# [must_use]
pub fn pincm_wcomp (& mut self) -> PINCM_WCOMP_W < PINCM_SPEC , 28 > { PINCM_WCOMP_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Pin Control Management Register in SECCFG region\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pincm::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pincm::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PINCM_SPEC ; impl crate :: RegisterSpec for PINCM_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pincm::R`](R) reader structure"]
impl crate :: Readable for PINCM_SPEC { } # [doc = "`write(|w| ..)` method takes [`pincm::W`](W) writer structure"]
impl crate :: Writable for PINCM_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PINCM[%s]
to value 0"]
impl crate :: Resettable for PINCM_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } } # [doc = "PERIPHERALREGION"]
pub struct TIMG2 { _marker : PhantomData < * const () > } unsafe impl Send for TIMG2 { } impl TIMG2 { # [doc = r"Pointer to the register block"]
pub const PTR : * const timg2 :: RegisterBlock = 0x4008_8000 as * const _ ; # [doc = r"Return the pointer to the register block"]
# [inline (always)]
pub const fn ptr () -> * const timg2 :: RegisterBlock { Self :: PTR } # [doc = r" Steal an instance of this peripheral"]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Ensure that the new instance of the peripheral cannot be used in a way"]
# [doc = r" that may race with any existing instances, for example by only"]
# [doc = r" accessing read-only or write-only registers, or by consuming the"]
# [doc = r" original peripheral and using critical sections to coordinate"]
# [doc = r" access between multiple new instances."]
# [doc = r""]
# [doc = r" Additionally, other software such as HALs may rely on only one"]
# [doc = r" peripheral instance existing to ensure memory safety; ensure"]
# [doc = r" no stolen instances are passed to such software."]
pub unsafe fn steal () -> Self { Self { _marker : PhantomData } } } impl Deref for TIMG2 { type Target = timg2 :: RegisterBlock ; # [inline (always)]
fn deref (& self) -> & Self :: Target { unsafe { & * Self :: PTR } } } impl core :: fmt :: Debug for TIMG2 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("TIMG2") . finish () } } # [doc = "PERIPHERALREGION"]
pub mod timg2 { # [doc = r"Register block"]
# [repr (C)]
pub struct RegisterBlock { _reserved0 : [u8 ; 0x0400]
, # [doc = "0x400 - Subsciber Port 0"]
pub fsub_0 : FSUB_0 , # [doc = "0x404 - Subscriber Port 1"]
pub fsub_1 : FSUB_1 , _reserved2 : [u8 ; 0x3c]
, # [doc = "0x444 - Publisher Port 0"]
pub fpub_0 : FPUB_0 , # [doc = "0x448 - Publisher Port 1"]
pub fpub_1 : FPUB_1 , _reserved4 : [u8 ; 0x03b4]
, # [doc = "0x800 - Power enable"]
pub pwren : PWREN , # [doc = "0x804 - Reset Control"]
pub rstctl : RSTCTL , _reserved6 : [u8 ; 0x0c]
, # [doc = "0x814 - Status Register"]
pub stat : STAT , _reserved7 : [u8 ; 0x07e8]
, # [doc = "0x1000 - Clock Divider"]
pub clkdiv : CLKDIV , _reserved8 : [u8 ; 0x04]
, # [doc = "0x1008 - Clock Select for Ultra Low Power peripherals"]
pub clksel : CLKSEL , _reserved9 : [u8 ; 0x0c]
, # [doc = "0x1018 - Peripheral Debug Control"]
pub pdbgctl : PDBGCTL , _reserved10 : [u8 ; 0x04]
, # [doc = "0x1020 - Interrupt index"]
pub iidx : IIDX , _reserved11 : [u8 ; 0x04]
, # [doc = "0x1028 - Interrupt mask"]
pub imask : IMASK , _reserved12 : [u8 ; 0x04]
, # [doc = "0x1030 - Raw interrupt status"]
pub ris : RIS , _reserved13 : [u8 ; 0x04]
, # [doc = "0x1038 - Masked interrupt status"]
pub mis : MIS , _reserved14 : [u8 ; 0x04]
, # [doc = "0x1040 - Interrupt set"]
pub iset : ISET , _reserved15 : [u8 ; 0x04]
, # [doc = "0x1048 - Interrupt clear"]
pub iclr : ICLR , _reserved16 : [u8 ; 0x94]
, # [doc = "0x10e0 - Event Mode"]
pub evt_mode : EVT_MODE , _reserved17 : [u8 ; 0x18]
, # [doc = "0x10fc - Module Description"]
pub desc : DESC , # [doc = "0x1100 - CCP Direction"]
pub ccpd : CCPD , # [doc = "0x1104 - Output Disable"]
pub odis : ODIS , # [doc = "0x1108 - Counter Clock Control Register"]
pub cclkctl : CCLKCTL , # [doc = "0x110c - Clock Prescale Register"]
pub cps : CPS , # [doc = "0x1110 - Clock prescale count status register"]
pub cpsv : CPSV , # [doc = "0x1114 - Timer Cross Trigger Control Register"]
pub cttrigctl : CTTRIGCTL , _reserved24 : [u8 ; 0x04]
, # [doc = "0x111c - Timer Cross Trigger Register"]
pub cttrig : CTTRIG , _reserved25 : [u8 ; 0x06e0]
, # [doc = "0x1800 - Counter Register"]
pub ctr : CTR , # [doc = "0x1804 - Counter Control Register"]
pub ctrctl : CTRCTL , # [doc = "0x1808 - Load Register"]
pub load : LOAD , _reserved28 : [u8 ; 0x04]
, # [doc = "0x1810..0x1818 - Capture or Compare Register 0 to Capture or Compare Register 1"]
pub cc_01 : [CC_01 ; 2]
, _reserved29 : [u8 ; 0x18]
, # [doc = "0x1830..0x1838 - Capture or Compare Control Registers"]
pub ccctl_01 : [CCCTL_01 ; 2]
, _reserved30 : [u8 ; 0x18]
, # [doc = "0x1850..0x1858 - CCP Output Control Registers"]
pub octl_01 : [OCTL_01 ; 2]
, _reserved31 : [u8 ; 0x18]
, # [doc = "0x1870..0x1878 - Capture or Compare Action Registers"]
pub ccact_01 : [CCACT_01 ; 2]
, _reserved32 : [u8 ; 0x08]
, # [doc = "0x1880..0x1888 - Input Filter Control Register"]
pub ifctl_01 : [IFCTL_01 ; 2]
, _reserved33 : [u8 ; 0x28]
, # [doc = "0x18b0 - Trigger Select"]
pub tsel : TSEL , } # [doc = "FSUB_0 (rw) register accessor: Subsciber Port 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fsub_0`]
module"]
pub type FSUB_0 = crate :: Reg < fsub_0 :: FSUB_0_SPEC > ; # [doc = "Subsciber Port 0"]
pub mod fsub_0 { # [doc = "Register `FSUB_0` reader"]
pub type R = crate :: R < FSUB_0_SPEC > ; # [doc = "Register `FSUB_0` writer"]
pub type W = crate :: W < FSUB_0_SPEC > ; # [doc = "Field `FSUB_0_CHANID` reader - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FSUB_0_CHANID_R = crate :: FieldReader < FSUB_0_CHANID_A > ; # [doc = "0 = disconnected. 1-15 = connected to channelID = CHANID.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FSUB_0_CHANID_A { # [doc = "0: UNCONNECTED"]
FSUB_0_CHANID_UNCONNECTED = 0 , } impl From < FSUB_0_CHANID_A > for u8 { # [inline (always)]
fn from (variant : FSUB_0_CHANID_A) -> Self { variant as _ } } impl crate :: FieldSpec for FSUB_0_CHANID_A { type Ux = u8 ; } impl FSUB_0_CHANID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < FSUB_0_CHANID_A > { match self . bits { 0 => Some (FSUB_0_CHANID_A :: FSUB_0_CHANID_UNCONNECTED) , _ => None , } } # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn is_fsub_0_chanid_unconnected (& self) -> bool { * self == FSUB_0_CHANID_A :: FSUB_0_CHANID_UNCONNECTED } } # [doc = "Field `FSUB_0_CHANID` writer - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FSUB_0_CHANID_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , FSUB_0_CHANID_A > ; impl < 'a , REG , const O : u8 > FSUB_0_CHANID_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn fsub_0_chanid_unconnected (self) -> & 'a mut crate :: W < REG > { self . variant (FSUB_0_CHANID_A :: FSUB_0_CHANID_UNCONNECTED) } } impl R { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
pub fn fsub_0_chanid (& self) -> FSUB_0_CHANID_R { FSUB_0_CHANID_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
# [must_use]
pub fn fsub_0_chanid (& mut self) -> FSUB_0_CHANID_W < FSUB_0_SPEC , 0 > { FSUB_0_CHANID_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Subsciber Port 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_0::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FSUB_0_SPEC ; impl crate :: RegisterSpec for FSUB_0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fsub_0::R`](R) reader structure"]
impl crate :: Readable for FSUB_0_SPEC { } # [doc = "`write(|w| ..)` method takes [`fsub_0::W`](W) writer structure"]
impl crate :: Writable for FSUB_0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FSUB_0 to value 0"]
impl crate :: Resettable for FSUB_0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "FSUB_1 (rw) register accessor: Subscriber Port 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fsub_1`]
module"]
pub type FSUB_1 = crate :: Reg < fsub_1 :: FSUB_1_SPEC > ; # [doc = "Subscriber Port 1"]
pub mod fsub_1 { # [doc = "Register `FSUB_1` reader"]
pub type R = crate :: R < FSUB_1_SPEC > ; # [doc = "Register `FSUB_1` writer"]
pub type W = crate :: W < FSUB_1_SPEC > ; # [doc = "Field `FSUB_1_CHANID` reader - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FSUB_1_CHANID_R = crate :: FieldReader < FSUB_1_CHANID_A > ; # [doc = "0 = disconnected. 1-15 = connected to channelID = CHANID.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FSUB_1_CHANID_A { # [doc = "0: UNCONNECTED"]
FSUB_1_CHANID_UNCONNECTED = 0 , } impl From < FSUB_1_CHANID_A > for u8 { # [inline (always)]
fn from (variant : FSUB_1_CHANID_A) -> Self { variant as _ } } impl crate :: FieldSpec for FSUB_1_CHANID_A { type Ux = u8 ; } impl FSUB_1_CHANID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < FSUB_1_CHANID_A > { match self . bits { 0 => Some (FSUB_1_CHANID_A :: FSUB_1_CHANID_UNCONNECTED) , _ => None , } } # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn is_fsub_1_chanid_unconnected (& self) -> bool { * self == FSUB_1_CHANID_A :: FSUB_1_CHANID_UNCONNECTED } } # [doc = "Field `FSUB_1_CHANID` writer - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FSUB_1_CHANID_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , FSUB_1_CHANID_A > ; impl < 'a , REG , const O : u8 > FSUB_1_CHANID_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn fsub_1_chanid_unconnected (self) -> & 'a mut crate :: W < REG > { self . variant (FSUB_1_CHANID_A :: FSUB_1_CHANID_UNCONNECTED) } } impl R { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
pub fn fsub_1_chanid (& self) -> FSUB_1_CHANID_R { FSUB_1_CHANID_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
# [must_use]
pub fn fsub_1_chanid (& mut self) -> FSUB_1_CHANID_W < FSUB_1_SPEC , 0 > { FSUB_1_CHANID_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Subscriber Port 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_1::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FSUB_1_SPEC ; impl crate :: RegisterSpec for FSUB_1_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fsub_1::R`](R) reader structure"]
impl crate :: Readable for FSUB_1_SPEC { } # [doc = "`write(|w| ..)` method takes [`fsub_1::W`](W) writer structure"]
impl crate :: Writable for FSUB_1_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FSUB_1 to value 0"]
impl crate :: Resettable for FSUB_1_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "FPUB_0 (rw) register accessor: Publisher Port 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fpub_0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fpub_0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fpub_0`]
module"]
pub type FPUB_0 = crate :: Reg < fpub_0 :: FPUB_0_SPEC > ; # [doc = "Publisher Port 0"]
pub mod fpub_0 { # [doc = "Register `FPUB_0` reader"]
pub type R = crate :: R < FPUB_0_SPEC > ; # [doc = "Register `FPUB_0` writer"]
pub type W = crate :: W < FPUB_0_SPEC > ; # [doc = "Field `FPUB_0_CHANID` reader - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FPUB_0_CHANID_R = crate :: FieldReader < FPUB_0_CHANID_A > ; # [doc = "0 = disconnected. 1-15 = connected to channelID = CHANID.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FPUB_0_CHANID_A { # [doc = "0: UNCONNECTED"]
FPUB_0_CHANID_UNCONNECTED = 0 , } impl From < FPUB_0_CHANID_A > for u8 { # [inline (always)]
fn from (variant : FPUB_0_CHANID_A) -> Self { variant as _ } } impl crate :: FieldSpec for FPUB_0_CHANID_A { type Ux = u8 ; } impl FPUB_0_CHANID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < FPUB_0_CHANID_A > { match self . bits { 0 => Some (FPUB_0_CHANID_A :: FPUB_0_CHANID_UNCONNECTED) , _ => None , } } # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn is_fpub_0_chanid_unconnected (& self) -> bool { * self == FPUB_0_CHANID_A :: FPUB_0_CHANID_UNCONNECTED } } # [doc = "Field `FPUB_0_CHANID` writer - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FPUB_0_CHANID_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , FPUB_0_CHANID_A > ; impl < 'a , REG , const O : u8 > FPUB_0_CHANID_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn fpub_0_chanid_unconnected (self) -> & 'a mut crate :: W < REG > { self . variant (FPUB_0_CHANID_A :: FPUB_0_CHANID_UNCONNECTED) } } impl R { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
pub fn fpub_0_chanid (& self) -> FPUB_0_CHANID_R { FPUB_0_CHANID_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
# [must_use]
pub fn fpub_0_chanid (& mut self) -> FPUB_0_CHANID_W < FPUB_0_SPEC , 0 > { FPUB_0_CHANID_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Publisher Port 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fpub_0::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fpub_0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FPUB_0_SPEC ; impl crate :: RegisterSpec for FPUB_0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fpub_0::R`](R) reader structure"]
impl crate :: Readable for FPUB_0_SPEC { } # [doc = "`write(|w| ..)` method takes [`fpub_0::W`](W) writer structure"]
impl crate :: Writable for FPUB_0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FPUB_0 to value 0"]
impl crate :: Resettable for FPUB_0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "FPUB_1 (rw) register accessor: Publisher Port 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fpub_1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fpub_1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fpub_1`]
module"]
pub type FPUB_1 = crate :: Reg < fpub_1 :: FPUB_1_SPEC > ; # [doc = "Publisher Port 1"]
pub mod fpub_1 { # [doc = "Register `FPUB_1` reader"]
pub type R = crate :: R < FPUB_1_SPEC > ; # [doc = "Register `FPUB_1` writer"]
pub type W = crate :: W < FPUB_1_SPEC > ; # [doc = "Field `FPUB_1_CHANID` reader - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FPUB_1_CHANID_R = crate :: FieldReader < FPUB_1_CHANID_A > ; # [doc = "0 = disconnected. 1-15 = connected to channelID = CHANID.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FPUB_1_CHANID_A { # [doc = "0: UNCONNECTED"]
FPUB_1_CHANID_UNCONNECTED = 0 , } impl From < FPUB_1_CHANID_A > for u8 { # [inline (always)]
fn from (variant : FPUB_1_CHANID_A) -> Self { variant as _ } } impl crate :: FieldSpec for FPUB_1_CHANID_A { type Ux = u8 ; } impl FPUB_1_CHANID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < FPUB_1_CHANID_A > { match self . bits { 0 => Some (FPUB_1_CHANID_A :: FPUB_1_CHANID_UNCONNECTED) , _ => None , } } # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn is_fpub_1_chanid_unconnected (& self) -> bool { * self == FPUB_1_CHANID_A :: FPUB_1_CHANID_UNCONNECTED } } # [doc = "Field `FPUB_1_CHANID` writer - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FPUB_1_CHANID_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , FPUB_1_CHANID_A > ; impl < 'a , REG , const O : u8 > FPUB_1_CHANID_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn fpub_1_chanid_unconnected (self) -> & 'a mut crate :: W < REG > { self . variant (FPUB_1_CHANID_A :: FPUB_1_CHANID_UNCONNECTED) } } impl R { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
pub fn fpub_1_chanid (& self) -> FPUB_1_CHANID_R { FPUB_1_CHANID_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
# [must_use]
pub fn fpub_1_chanid (& mut self) -> FPUB_1_CHANID_W < FPUB_1_SPEC , 0 > { FPUB_1_CHANID_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Publisher Port 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fpub_1::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fpub_1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FPUB_1_SPEC ; impl crate :: RegisterSpec for FPUB_1_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fpub_1::R`](R) reader structure"]
impl crate :: Readable for FPUB_1_SPEC { } # [doc = "`write(|w| ..)` method takes [`fpub_1::W`](W) writer structure"]
impl crate :: Writable for FPUB_1_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FPUB_1 to value 0"]
impl crate :: Resettable for FPUB_1_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "PWREN (rw) register accessor: Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pwren`]
module"]
pub type PWREN = crate :: Reg < pwren :: PWREN_SPEC > ; # [doc = "Power enable"]
pub mod pwren { # [doc = "Register `PWREN` reader"]
pub type R = crate :: R < PWREN_SPEC > ; # [doc = "Register `PWREN` writer"]
pub type W = crate :: W < PWREN_SPEC > ; # [doc = "Field `PWREN_ENABLE` reader - Enable the power"]
pub type PWREN_ENABLE_R = crate :: BitReader < PWREN_ENABLE_A > ; # [doc = "Enable the power\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PWREN_ENABLE_A { # [doc = "0: DISABLE"]
PWREN_ENABLE_DISABLE = 0 , # [doc = "1: ENABLE"]
PWREN_ENABLE_ENABLE = 1 , } impl From < PWREN_ENABLE_A > for bool { # [inline (always)]
fn from (variant : PWREN_ENABLE_A) -> Self { variant as u8 != 0 } } impl PWREN_ENABLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PWREN_ENABLE_A { match self . bits { false => PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE , true => PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_pwren_enable_disable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_pwren_enable_enable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE } } # [doc = "Field `PWREN_ENABLE` writer - Enable the power"]
pub type PWREN_ENABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PWREN_ENABLE_A > ; impl < 'a , REG , const O : u8 > PWREN_ENABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn pwren_enable_disable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn pwren_enable_enable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE) } } # [doc = "KEY to allow Power State Change\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum PWREN_KEY_AW { # [doc = "38: _TO_UNLOCK_W_"]
PWREN_KEY_UNLOCK_W = 38 , } impl From < PWREN_KEY_AW > for u8 { # [inline (always)]
fn from (variant : PWREN_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for PWREN_KEY_AW { type Ux = u8 ; } # [doc = "Field `PWREN_KEY` writer - KEY to allow Power State Change"]
pub type PWREN_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , PWREN_KEY_AW > ; impl < 'a , REG , const O : u8 > PWREN_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn pwren_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_KEY_AW :: PWREN_KEY_UNLOCK_W) } } impl R { # [doc = "Bit 0 - Enable the power"]
# [inline (always)]
pub fn pwren_enable (& self) -> PWREN_ENABLE_R { PWREN_ENABLE_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - Enable the power"]
# [inline (always)]
# [must_use]
pub fn pwren_enable (& mut self) -> PWREN_ENABLE_W < PWREN_SPEC , 0 > { PWREN_ENABLE_W :: new (self) } # [doc = "Bits 24:31 - KEY to allow Power State Change"]
# [inline (always)]
# [must_use]
pub fn pwren_key (& mut self) -> PWREN_KEY_W < PWREN_SPEC , 24 > { PWREN_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PWREN_SPEC ; impl crate :: RegisterSpec for PWREN_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pwren::R`](R) reader structure"]
impl crate :: Readable for PWREN_SPEC { } # [doc = "`write(|w| ..)` method takes [`pwren::W`](W) writer structure"]
impl crate :: Writable for PWREN_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PWREN to value 0"]
impl crate :: Resettable for PWREN_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RSTCTL (w) register accessor: Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rstctl`]
module"]
pub type RSTCTL = crate :: Reg < rstctl :: RSTCTL_SPEC > ; # [doc = "Reset Control"]
pub mod rstctl { # [doc = "Register `RSTCTL` writer"]
pub type W = crate :: W < RSTCTL_SPEC > ; # [doc = "Assert reset to the peripheral\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETASSERT_AW { # [doc = "0: NOP"]
RSTCTL_RESETASSERT_NOP = 0 , # [doc = "1: ASSERT"]
RSTCTL_RESETASSERT_ASSERT = 1 , } impl From < RSTCTL_RESETASSERT_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETASSERT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETASSERT` writer - Assert reset to the peripheral"]
pub type RSTCTL_RESETASSERT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETASSERT_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETASSERT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetassert_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_NOP) } # [doc = "ASSERT"]
# [inline (always)]
pub fn rstctl_resetassert_assert (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_ASSERT) } } # [doc = "Clear the RESETSTKY bit in the STAT register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETSTKYCLR_AW { # [doc = "0: NOP"]
RSTCTL_RESETSTKYCLR_NOP = 0 , # [doc = "1: CLR"]
RSTCTL_RESETSTKYCLR_CLR = 1 , } impl From < RSTCTL_RESETSTKYCLR_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETSTKYCLR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETSTKYCLR` writer - Clear the RESETSTKY bit in the STAT register"]
pub type RSTCTL_RESETSTKYCLR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETSTKYCLR_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETSTKYCLR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetstkyclr_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_NOP) } # [doc = "CLR"]
# [inline (always)]
pub fn rstctl_resetstkyclr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_CLR) } } # [doc = "Unlock key\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum RSTCTL_KEY_AW { # [doc = "177: _TO_UNLOCK_W_"]
RSTCTL_KEY_UNLOCK_W = 177 , } impl From < RSTCTL_KEY_AW > for u8 { # [inline (always)]
fn from (variant : RSTCTL_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for RSTCTL_KEY_AW { type Ux = u8 ; } # [doc = "Field `RSTCTL_KEY` writer - Unlock key"]
pub type RSTCTL_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , RSTCTL_KEY_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn rstctl_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_KEY_AW :: RSTCTL_KEY_UNLOCK_W) } } impl W { # [doc = "Bit 0 - Assert reset to the peripheral"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetassert (& mut self) -> RSTCTL_RESETASSERT_W < RSTCTL_SPEC , 0 > { RSTCTL_RESETASSERT_W :: new (self) } # [doc = "Bit 1 - Clear the RESETSTKY bit in the STAT register"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetstkyclr (& mut self) -> RSTCTL_RESETSTKYCLR_W < RSTCTL_SPEC , 1 > { RSTCTL_RESETSTKYCLR_W :: new (self) } # [doc = "Bits 24:31 - Unlock key"]
# [inline (always)]
# [must_use]
pub fn rstctl_key (& mut self) -> RSTCTL_KEY_W < RSTCTL_SPEC , 24 > { RSTCTL_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RSTCTL_SPEC ; impl crate :: RegisterSpec for RSTCTL_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`rstctl::W`](W) writer structure"]
impl crate :: Writable for RSTCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets RSTCTL to value 0"]
impl crate :: Resettable for RSTCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "STAT (r) register accessor: Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@stat`]
module"]
pub type STAT = crate :: Reg < stat :: STAT_SPEC > ; # [doc = "Status Register"]
pub mod stat { # [doc = "Register `STAT` reader"]
pub type R = crate :: R < STAT_SPEC > ; # [doc = "Field `STAT_RESETSTKY` reader - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
pub type STAT_RESETSTKY_R = crate :: BitReader < STAT_RESETSTKY_A > ; # [doc = "This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_RESETSTKY_A { # [doc = "0: NORES"]
STAT_RESETSTKY_NORES = 0 , # [doc = "1: RESET"]
STAT_RESETSTKY_RESET = 1 , } impl From < STAT_RESETSTKY_A > for bool { # [inline (always)]
fn from (variant : STAT_RESETSTKY_A) -> Self { variant as u8 != 0 } } impl STAT_RESETSTKY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_RESETSTKY_A { match self . bits { false => STAT_RESETSTKY_A :: STAT_RESETSTKY_NORES , true => STAT_RESETSTKY_A :: STAT_RESETSTKY_RESET , } } # [doc = "NORES"]
# [inline (always)]
pub fn is_stat_resetstky_nores (& self) -> bool { * self == STAT_RESETSTKY_A :: STAT_RESETSTKY_NORES } # [doc = "RESET"]
# [inline (always)]
pub fn is_stat_resetstky_reset (& self) -> bool { * self == STAT_RESETSTKY_A :: STAT_RESETSTKY_RESET } } impl R { # [doc = "Bit 16 - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
# [inline (always)]
pub fn stat_resetstky (& self) -> STAT_RESETSTKY_R { STAT_RESETSTKY_R :: new (((self . bits >> 16) & 1) != 0) } } # [doc = "Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct STAT_SPEC ; impl crate :: RegisterSpec for STAT_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`stat::R`](R) reader structure"]
impl crate :: Readable for STAT_SPEC { } # [doc = "`reset()` method sets STAT to value 0"]
impl crate :: Resettable for STAT_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CLKDIV (rw) register accessor: Clock Divider\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkdiv::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkdiv::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clkdiv`]
module"]
pub type CLKDIV = crate :: Reg < clkdiv :: CLKDIV_SPEC > ; # [doc = "Clock Divider"]
pub mod clkdiv { # [doc = "Register `CLKDIV` reader"]
pub type R = crate :: R < CLKDIV_SPEC > ; # [doc = "Register `CLKDIV` writer"]
pub type W = crate :: W < CLKDIV_SPEC > ; # [doc = "Field `CLKDIV_RATIO` reader - Selects divide ratio of module clock"]
pub type CLKDIV_RATIO_R = crate :: FieldReader < CLKDIV_RATIO_A > ; # [doc = "Selects divide ratio of module clock\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CLKDIV_RATIO_A { # [doc = "0: DIV_BY_1"]
CLKDIV_RATIO_DIV_BY_1 = 0 , # [doc = "1: DIV_BY_2"]
CLKDIV_RATIO_DIV_BY_2 = 1 , # [doc = "2: DIV_BY_3"]
CLKDIV_RATIO_DIV_BY_3 = 2 , # [doc = "3: DIV_BY_4"]
CLKDIV_RATIO_DIV_BY_4 = 3 , # [doc = "4: DIV_BY_5"]
CLKDIV_RATIO_DIV_BY_5 = 4 , # [doc = "5: DIV_BY_6"]
CLKDIV_RATIO_DIV_BY_6 = 5 , # [doc = "6: DIV_BY_7"]
CLKDIV_RATIO_DIV_BY_7 = 6 , # [doc = "7: DIV_BY_8"]
CLKDIV_RATIO_DIV_BY_8 = 7 , } impl From < CLKDIV_RATIO_A > for u8 { # [inline (always)]
fn from (variant : CLKDIV_RATIO_A) -> Self { variant as _ } } impl crate :: FieldSpec for CLKDIV_RATIO_A { type Ux = u8 ; } impl CLKDIV_RATIO_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKDIV_RATIO_A { match self . bits { 0 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_1 , 1 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_2 , 2 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_3 , 3 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_4 , 4 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_5 , 5 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_6 , 6 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_7 , 7 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_8 , _ => unreachable ! () , } } # [doc = "DIV_BY_1"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_1 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_1 } # [doc = "DIV_BY_2"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_2 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_2 } # [doc = "DIV_BY_3"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_3 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_3 } # [doc = "DIV_BY_4"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_4 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_4 } # [doc = "DIV_BY_5"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_5 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_5 } # [doc = "DIV_BY_6"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_6 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_6 } # [doc = "DIV_BY_7"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_7 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_7 } # [doc = "DIV_BY_8"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_8 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_8 } } # [doc = "Field `CLKDIV_RATIO` writer - Selects divide ratio of module clock"]
pub type CLKDIV_RATIO_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 3 , O , CLKDIV_RATIO_A > ; impl < 'a , REG , const O : u8 > CLKDIV_RATIO_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DIV_BY_1"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_1 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_1) } # [doc = "DIV_BY_2"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_2 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_2) } # [doc = "DIV_BY_3"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_3 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_3) } # [doc = "DIV_BY_4"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_4 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_4) } # [doc = "DIV_BY_5"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_5 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_5) } # [doc = "DIV_BY_6"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_6 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_6) } # [doc = "DIV_BY_7"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_7 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_7) } # [doc = "DIV_BY_8"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_8 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_8) } } impl R { # [doc = "Bits 0:2 - Selects divide ratio of module clock"]
# [inline (always)]
pub fn clkdiv_ratio (& self) -> CLKDIV_RATIO_R { CLKDIV_RATIO_R :: new ((self . bits & 7) as u8) } } impl W { # [doc = "Bits 0:2 - Selects divide ratio of module clock"]
# [inline (always)]
# [must_use]
pub fn clkdiv_ratio (& mut self) -> CLKDIV_RATIO_W < CLKDIV_SPEC , 0 > { CLKDIV_RATIO_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Clock Divider\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkdiv::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkdiv::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CLKDIV_SPEC ; impl crate :: RegisterSpec for CLKDIV_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`clkdiv::R`](R) reader structure"]
impl crate :: Readable for CLKDIV_SPEC { } # [doc = "`write(|w| ..)` method takes [`clkdiv::W`](W) writer structure"]
impl crate :: Writable for CLKDIV_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CLKDIV to value 0"]
impl crate :: Resettable for CLKDIV_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CLKSEL (rw) register accessor: Clock Select for Ultra Low Power peripherals\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clksel::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clksel::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clksel`]
module"]
pub type CLKSEL = crate :: Reg < clksel :: CLKSEL_SPEC > ; # [doc = "Clock Select for Ultra Low Power peripherals"]
pub mod clksel { # [doc = "Register `CLKSEL` reader"]
pub type R = crate :: R < CLKSEL_SPEC > ; # [doc = "Register `CLKSEL` writer"]
pub type W = crate :: W < CLKSEL_SPEC > ; # [doc = "Field `CLKSEL_LFCLK_SEL` reader - Selects LFCLK as clock source if enabled"]
pub type CLKSEL_LFCLK_SEL_R = crate :: BitReader < CLKSEL_LFCLK_SEL_A > ; # [doc = "Selects LFCLK as clock source if enabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKSEL_LFCLK_SEL_A { # [doc = "0: DISABLE"]
CLKSEL_LFCLK_SEL_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKSEL_LFCLK_SEL_ENABLE = 1 , } impl From < CLKSEL_LFCLK_SEL_A > for bool { # [inline (always)]
fn from (variant : CLKSEL_LFCLK_SEL_A) -> Self { variant as u8 != 0 } } impl CLKSEL_LFCLK_SEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKSEL_LFCLK_SEL_A { match self . bits { false => CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_DISABLE , true => CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clksel_lfclk_sel_disable (& self) -> bool { * self == CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clksel_lfclk_sel_enable (& self) -> bool { * self == CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_ENABLE } } # [doc = "Field `CLKSEL_LFCLK_SEL` writer - Selects LFCLK as clock source if enabled"]
pub type CLKSEL_LFCLK_SEL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKSEL_LFCLK_SEL_A > ; impl < 'a , REG , const O : u8 > CLKSEL_LFCLK_SEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clksel_lfclk_sel_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clksel_lfclk_sel_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_ENABLE) } } # [doc = "Field `CLKSEL_MFCLK_SEL` reader - Selects MFCLK as clock source if enabled"]
pub type CLKSEL_MFCLK_SEL_R = crate :: BitReader < CLKSEL_MFCLK_SEL_A > ; # [doc = "Selects MFCLK as clock source if enabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKSEL_MFCLK_SEL_A { # [doc = "0: DISABLE"]
CLKSEL_MFCLK_SEL_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKSEL_MFCLK_SEL_ENABLE = 1 , } impl From < CLKSEL_MFCLK_SEL_A > for bool { # [inline (always)]
fn from (variant : CLKSEL_MFCLK_SEL_A) -> Self { variant as u8 != 0 } } impl CLKSEL_MFCLK_SEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKSEL_MFCLK_SEL_A { match self . bits { false => CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_DISABLE , true => CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clksel_mfclk_sel_disable (& self) -> bool { * self == CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clksel_mfclk_sel_enable (& self) -> bool { * self == CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_ENABLE } } # [doc = "Field `CLKSEL_MFCLK_SEL` writer - Selects MFCLK as clock source if enabled"]
pub type CLKSEL_MFCLK_SEL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKSEL_MFCLK_SEL_A > ; impl < 'a , REG , const O : u8 > CLKSEL_MFCLK_SEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clksel_mfclk_sel_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clksel_mfclk_sel_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_ENABLE) } } # [doc = "Field `CLKSEL_BUSCLK_SEL` reader - Selects BUSCLK as clock source if enabled"]
pub type CLKSEL_BUSCLK_SEL_R = crate :: BitReader < CLKSEL_BUSCLK_SEL_A > ; # [doc = "Selects BUSCLK as clock source if enabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKSEL_BUSCLK_SEL_A { # [doc = "0: DISABLE"]
CLKSEL_BUSCLK_SEL_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKSEL_BUSCLK_SEL_ENABLE = 1 , } impl From < CLKSEL_BUSCLK_SEL_A > for bool { # [inline (always)]
fn from (variant : CLKSEL_BUSCLK_SEL_A) -> Self { variant as u8 != 0 } } impl CLKSEL_BUSCLK_SEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKSEL_BUSCLK_SEL_A { match self . bits { false => CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_DISABLE , true => CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clksel_busclk_sel_disable (& self) -> bool { * self == CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clksel_busclk_sel_enable (& self) -> bool { * self == CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_ENABLE } } # [doc = "Field `CLKSEL_BUSCLK_SEL` writer - Selects BUSCLK as clock source if enabled"]
pub type CLKSEL_BUSCLK_SEL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKSEL_BUSCLK_SEL_A > ; impl < 'a , REG , const O : u8 > CLKSEL_BUSCLK_SEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clksel_busclk_sel_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clksel_busclk_sel_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_ENABLE) } } impl R { # [doc = "Bit 1 - Selects LFCLK as clock source if enabled"]
# [inline (always)]
pub fn clksel_lfclk_sel (& self) -> CLKSEL_LFCLK_SEL_R { CLKSEL_LFCLK_SEL_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Selects MFCLK as clock source if enabled"]
# [inline (always)]
pub fn clksel_mfclk_sel (& self) -> CLKSEL_MFCLK_SEL_R { CLKSEL_MFCLK_SEL_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Selects BUSCLK as clock source if enabled"]
# [inline (always)]
pub fn clksel_busclk_sel (& self) -> CLKSEL_BUSCLK_SEL_R { CLKSEL_BUSCLK_SEL_R :: new (((self . bits >> 3) & 1) != 0) } } impl W { # [doc = "Bit 1 - Selects LFCLK as clock source if enabled"]
# [inline (always)]
# [must_use]
pub fn clksel_lfclk_sel (& mut self) -> CLKSEL_LFCLK_SEL_W < CLKSEL_SPEC , 1 > { CLKSEL_LFCLK_SEL_W :: new (self) } # [doc = "Bit 2 - Selects MFCLK as clock source if enabled"]
# [inline (always)]
# [must_use]
pub fn clksel_mfclk_sel (& mut self) -> CLKSEL_MFCLK_SEL_W < CLKSEL_SPEC , 2 > { CLKSEL_MFCLK_SEL_W :: new (self) } # [doc = "Bit 3 - Selects BUSCLK as clock source if enabled"]
# [inline (always)]
# [must_use]
pub fn clksel_busclk_sel (& mut self) -> CLKSEL_BUSCLK_SEL_W < CLKSEL_SPEC , 3 > { CLKSEL_BUSCLK_SEL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Clock Select for Ultra Low Power peripherals\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clksel::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clksel::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CLKSEL_SPEC ; impl crate :: RegisterSpec for CLKSEL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`clksel::R`](R) reader structure"]
impl crate :: Readable for CLKSEL_SPEC { } # [doc = "`write(|w| ..)` method takes [`clksel::W`](W) writer structure"]
impl crate :: Writable for CLKSEL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CLKSEL to value 0"]
impl crate :: Resettable for CLKSEL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "PDBGCTL (rw) register accessor: Peripheral Debug Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pdbgctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pdbgctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pdbgctl`]
module"]
pub type PDBGCTL = crate :: Reg < pdbgctl :: PDBGCTL_SPEC > ; # [doc = "Peripheral Debug Control"]
pub mod pdbgctl { # [doc = "Register `PDBGCTL` reader"]
pub type R = crate :: R < PDBGCTL_SPEC > ; # [doc = "Register `PDBGCTL` writer"]
pub type W = crate :: W < PDBGCTL_SPEC > ; # [doc = "Field `PDBGCTL_FREE` reader - Free run control"]
pub type PDBGCTL_FREE_R = crate :: BitReader < PDBGCTL_FREE_A > ; # [doc = "Free run control\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PDBGCTL_FREE_A { # [doc = "0: STOP"]
PDBGCTL_FREE_STOP = 0 , # [doc = "1: RUN"]
PDBGCTL_FREE_RUN = 1 , } impl From < PDBGCTL_FREE_A > for bool { # [inline (always)]
fn from (variant : PDBGCTL_FREE_A) -> Self { variant as u8 != 0 } } impl PDBGCTL_FREE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PDBGCTL_FREE_A { match self . bits { false => PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP , true => PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN , } } # [doc = "STOP"]
# [inline (always)]
pub fn is_pdbgctl_free_stop (& self) -> bool { * self == PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP } # [doc = "RUN"]
# [inline (always)]
pub fn is_pdbgctl_free_run (& self) -> bool { * self == PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN } } # [doc = "Field `PDBGCTL_FREE` writer - Free run control"]
pub type PDBGCTL_FREE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PDBGCTL_FREE_A > ; impl < 'a , REG , const O : u8 > PDBGCTL_FREE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "STOP"]
# [inline (always)]
pub fn pdbgctl_free_stop (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP) } # [doc = "RUN"]
# [inline (always)]
pub fn pdbgctl_free_run (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN) } } # [doc = "Field `PDBGCTL_SOFT` reader - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
pub type PDBGCTL_SOFT_R = crate :: BitReader < PDBGCTL_SOFT_A > ; # [doc = "Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PDBGCTL_SOFT_A { # [doc = "0: IMMEDIATE"]
PDBGCTL_SOFT_IMMEDIATE = 0 , # [doc = "1: DELAYED"]
PDBGCTL_SOFT_DELAYED = 1 , } impl From < PDBGCTL_SOFT_A > for bool { # [inline (always)]
fn from (variant : PDBGCTL_SOFT_A) -> Self { variant as u8 != 0 } } impl PDBGCTL_SOFT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PDBGCTL_SOFT_A { match self . bits { false => PDBGCTL_SOFT_A :: PDBGCTL_SOFT_IMMEDIATE , true => PDBGCTL_SOFT_A :: PDBGCTL_SOFT_DELAYED , } } # [doc = "IMMEDIATE"]
# [inline (always)]
pub fn is_pdbgctl_soft_immediate (& self) -> bool { * self == PDBGCTL_SOFT_A :: PDBGCTL_SOFT_IMMEDIATE } # [doc = "DELAYED"]
# [inline (always)]
pub fn is_pdbgctl_soft_delayed (& self) -> bool { * self == PDBGCTL_SOFT_A :: PDBGCTL_SOFT_DELAYED } } # [doc = "Field `PDBGCTL_SOFT` writer - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
pub type PDBGCTL_SOFT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PDBGCTL_SOFT_A > ; impl < 'a , REG , const O : u8 > PDBGCTL_SOFT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "IMMEDIATE"]
# [inline (always)]
pub fn pdbgctl_soft_immediate (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_SOFT_A :: PDBGCTL_SOFT_IMMEDIATE) } # [doc = "DELAYED"]
# [inline (always)]
pub fn pdbgctl_soft_delayed (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_SOFT_A :: PDBGCTL_SOFT_DELAYED) } } impl R { # [doc = "Bit 0 - Free run control"]
# [inline (always)]
pub fn pdbgctl_free (& self) -> PDBGCTL_FREE_R { PDBGCTL_FREE_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
# [inline (always)]
pub fn pdbgctl_soft (& self) -> PDBGCTL_SOFT_R { PDBGCTL_SOFT_R :: new (((self . bits >> 1) & 1) != 0) } } impl W { # [doc = "Bit 0 - Free run control"]
# [inline (always)]
# [must_use]
pub fn pdbgctl_free (& mut self) -> PDBGCTL_FREE_W < PDBGCTL_SPEC , 0 > { PDBGCTL_FREE_W :: new (self) } # [doc = "Bit 1 - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
# [inline (always)]
# [must_use]
pub fn pdbgctl_soft (& mut self) -> PDBGCTL_SOFT_W < PDBGCTL_SPEC , 1 > { PDBGCTL_SOFT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Peripheral Debug Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pdbgctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pdbgctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PDBGCTL_SPEC ; impl crate :: RegisterSpec for PDBGCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pdbgctl::R`](R) reader structure"]
impl crate :: Readable for PDBGCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`pdbgctl::W`](W) writer structure"]
impl crate :: Writable for PDBGCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PDBGCTL to value 0"]
impl crate :: Resettable for PDBGCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "IIDX (r) register accessor: Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@iidx`]
module"]
pub type IIDX = crate :: Reg < iidx :: IIDX_SPEC > ; # [doc = "Interrupt index"]
pub mod iidx { # [doc = "Register `IIDX` reader"]
pub type R = crate :: R < IIDX_SPEC > ; # [doc = "Field `IIDX_STAT` reader - Interrupt index status"]
pub type IIDX_STAT_R = crate :: FieldReader < IIDX_STAT_A > ; # [doc = "Interrupt index status\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum IIDX_STAT_A { # [doc = "0: NO_INTR"]
IIDX_STAT_NO_INTR = 0 , # [doc = "1: Z"]
IIDX_STAT_Z = 1 , # [doc = "2: L"]
IIDX_STAT_L = 2 , # [doc = "5: CCD0"]
IIDX_STAT_CCD0 = 5 , # [doc = "6: CCD1"]
IIDX_STAT_CCD1 = 6 , # [doc = "7: CCD2"]
IIDX_STAT_CCD2 = 7 , # [doc = "8: CCD3"]
IIDX_STAT_CCD3 = 8 , # [doc = "9: CCU0"]
IIDX_STAT_CCU0 = 9 , # [doc = "10: CCU1"]
IIDX_STAT_CCU1 = 10 , # [doc = "11: CCU2"]
IIDX_STAT_CCU2 = 11 , # [doc = "12: CCU3"]
IIDX_STAT_CCU3 = 12 , # [doc = "13: CCD4"]
IIDX_STAT_CCD4 = 13 , # [doc = "14: CCD5"]
IIDX_STAT_CCD5 = 14 , # [doc = "15: CCU4"]
IIDX_STAT_CCU4 = 15 , # [doc = "16: CCU5"]
IIDX_STAT_CCU5 = 16 , # [doc = "25: F"]
IIDX_STAT_F = 25 , # [doc = "26: TOV"]
IIDX_STAT_TOV = 26 , # [doc = "27: REPC"]
IIDX_STAT_REPC = 27 , # [doc = "28: DC"]
IIDX_STAT_DC = 28 , # [doc = "29: QEIERR"]
IIDX_STAT_QEIERR = 29 , } impl From < IIDX_STAT_A > for u8 { # [inline (always)]
fn from (variant : IIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for IIDX_STAT_A { type Ux = u8 ; } impl IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < IIDX_STAT_A > { match self . bits { 0 => Some (IIDX_STAT_A :: IIDX_STAT_NO_INTR) , 1 => Some (IIDX_STAT_A :: IIDX_STAT_Z) , 2 => Some (IIDX_STAT_A :: IIDX_STAT_L) , 5 => Some (IIDX_STAT_A :: IIDX_STAT_CCD0) , 6 => Some (IIDX_STAT_A :: IIDX_STAT_CCD1) , 7 => Some (IIDX_STAT_A :: IIDX_STAT_CCD2) , 8 => Some (IIDX_STAT_A :: IIDX_STAT_CCD3) , 9 => Some (IIDX_STAT_A :: IIDX_STAT_CCU0) , 10 => Some (IIDX_STAT_A :: IIDX_STAT_CCU1) , 11 => Some (IIDX_STAT_A :: IIDX_STAT_CCU2) , 12 => Some (IIDX_STAT_A :: IIDX_STAT_CCU3) , 13 => Some (IIDX_STAT_A :: IIDX_STAT_CCD4) , 14 => Some (IIDX_STAT_A :: IIDX_STAT_CCD5) , 15 => Some (IIDX_STAT_A :: IIDX_STAT_CCU4) , 16 => Some (IIDX_STAT_A :: IIDX_STAT_CCU5) , 25 => Some (IIDX_STAT_A :: IIDX_STAT_F) , 26 => Some (IIDX_STAT_A :: IIDX_STAT_TOV) , 27 => Some (IIDX_STAT_A :: IIDX_STAT_REPC) , 28 => Some (IIDX_STAT_A :: IIDX_STAT_DC) , 29 => Some (IIDX_STAT_A :: IIDX_STAT_QEIERR) , _ => None , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_iidx_stat_no_intr (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_NO_INTR } # [doc = "Z"]
# [inline (always)]
pub fn is_iidx_stat_z (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_Z } # [doc = "L"]
# [inline (always)]
pub fn is_iidx_stat_l (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_L } # [doc = "CCD0"]
# [inline (always)]
pub fn is_iidx_stat_ccd0 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCD0 } # [doc = "CCD1"]
# [inline (always)]
pub fn is_iidx_stat_ccd1 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCD1 } # [doc = "CCD2"]
# [inline (always)]
pub fn is_iidx_stat_ccd2 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCD2 } # [doc = "CCD3"]
# [inline (always)]
pub fn is_iidx_stat_ccd3 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCD3 } # [doc = "CCU0"]
# [inline (always)]
pub fn is_iidx_stat_ccu0 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCU0 } # [doc = "CCU1"]
# [inline (always)]
pub fn is_iidx_stat_ccu1 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCU1 } # [doc = "CCU2"]
# [inline (always)]
pub fn is_iidx_stat_ccu2 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCU2 } # [doc = "CCU3"]
# [inline (always)]
pub fn is_iidx_stat_ccu3 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCU3 } # [doc = "CCD4"]
# [inline (always)]
pub fn is_iidx_stat_ccd4 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCD4 } # [doc = "CCD5"]
# [inline (always)]
pub fn is_iidx_stat_ccd5 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCD5 } # [doc = "CCU4"]
# [inline (always)]
pub fn is_iidx_stat_ccu4 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCU4 } # [doc = "CCU5"]
# [inline (always)]
pub fn is_iidx_stat_ccu5 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCU5 } # [doc = "F"]
# [inline (always)]
pub fn is_iidx_stat_f (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_F } # [doc = "TOV"]
# [inline (always)]
pub fn is_iidx_stat_tov (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_TOV } # [doc = "REPC"]
# [inline (always)]
pub fn is_iidx_stat_repc (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_REPC } # [doc = "DC"]
# [inline (always)]
pub fn is_iidx_stat_dc (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_DC } # [doc = "QEIERR"]
# [inline (always)]
pub fn is_iidx_stat_qeierr (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_QEIERR } } impl R { # [doc = "Bits 0:7 - Interrupt index status"]
# [inline (always)]
pub fn iidx_stat (& self) -> IIDX_STAT_R { IIDX_STAT_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IIDX_SPEC ; impl crate :: RegisterSpec for IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`iidx::R`](R) reader structure"]
impl crate :: Readable for IIDX_SPEC { } # [doc = "`reset()` method sets IIDX to value 0"]
impl crate :: Resettable for IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "IMASK (rw) register accessor: Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`imask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`imask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@imask`]
module"]
pub type IMASK = crate :: Reg < imask :: IMASK_SPEC > ; # [doc = "Interrupt mask"]
pub mod imask { # [doc = "Register `IMASK` reader"]
pub type R = crate :: R < IMASK_SPEC > ; # [doc = "Register `IMASK` writer"]
pub type W = crate :: W < IMASK_SPEC > ; # [doc = "Field `IMASK_Z` reader - Zero Event mask"]
pub type IMASK_Z_R = crate :: BitReader < IMASK_Z_A > ; # [doc = "Zero Event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_Z_A { # [doc = "0: CLR"]
IMASK_Z_CLR = 0 , # [doc = "1: SET"]
IMASK_Z_SET = 1 , } impl From < IMASK_Z_A > for bool { # [inline (always)]
fn from (variant : IMASK_Z_A) -> Self { variant as u8 != 0 } } impl IMASK_Z_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_Z_A { match self . bits { false => IMASK_Z_A :: IMASK_Z_CLR , true => IMASK_Z_A :: IMASK_Z_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_z_clr (& self) -> bool { * self == IMASK_Z_A :: IMASK_Z_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_z_set (& self) -> bool { * self == IMASK_Z_A :: IMASK_Z_SET } } # [doc = "Field `IMASK_Z` writer - Zero Event mask"]
pub type IMASK_Z_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_Z_A > ; impl < 'a , REG , const O : u8 > IMASK_Z_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_z_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_Z_A :: IMASK_Z_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_z_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_Z_A :: IMASK_Z_SET) } } # [doc = "Field `IMASK_L` reader - Load Event mask"]
pub type IMASK_L_R = crate :: BitReader < IMASK_L_A > ; # [doc = "Load Event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_L_A { # [doc = "0: CLR"]
IMASK_L_CLR = 0 , # [doc = "1: SET"]
IMASK_L_SET = 1 , } impl From < IMASK_L_A > for bool { # [inline (always)]
fn from (variant : IMASK_L_A) -> Self { variant as u8 != 0 } } impl IMASK_L_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_L_A { match self . bits { false => IMASK_L_A :: IMASK_L_CLR , true => IMASK_L_A :: IMASK_L_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_l_clr (& self) -> bool { * self == IMASK_L_A :: IMASK_L_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_l_set (& self) -> bool { * self == IMASK_L_A :: IMASK_L_SET } } # [doc = "Field `IMASK_L` writer - Load Event mask"]
pub type IMASK_L_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_L_A > ; impl < 'a , REG , const O : u8 > IMASK_L_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_l_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_L_A :: IMASK_L_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_l_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_L_A :: IMASK_L_SET) } } # [doc = "Field `IMASK_CCD0` reader - Capture or Compare DN event mask CCP0"]
pub type IMASK_CCD0_R = crate :: BitReader < IMASK_CCD0_A > ; # [doc = "Capture or Compare DN event mask CCP0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_CCD0_A { # [doc = "0: CLR"]
IMASK_CCD0_CLR = 0 , # [doc = "1: SET"]
IMASK_CCD0_SET = 1 , } impl From < IMASK_CCD0_A > for bool { # [inline (always)]
fn from (variant : IMASK_CCD0_A) -> Self { variant as u8 != 0 } } impl IMASK_CCD0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_CCD0_A { match self . bits { false => IMASK_CCD0_A :: IMASK_CCD0_CLR , true => IMASK_CCD0_A :: IMASK_CCD0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_ccd0_clr (& self) -> bool { * self == IMASK_CCD0_A :: IMASK_CCD0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_ccd0_set (& self) -> bool { * self == IMASK_CCD0_A :: IMASK_CCD0_SET } } # [doc = "Field `IMASK_CCD0` writer - Capture or Compare DN event mask CCP0"]
pub type IMASK_CCD0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_CCD0_A > ; impl < 'a , REG , const O : u8 > IMASK_CCD0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_ccd0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_CCD0_A :: IMASK_CCD0_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_ccd0_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_CCD0_A :: IMASK_CCD0_SET) } } # [doc = "Field `IMASK_CCD1` reader - Capture or Compare DN event mask CCP1"]
pub type IMASK_CCD1_R = crate :: BitReader < IMASK_CCD1_A > ; # [doc = "Capture or Compare DN event mask CCP1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_CCD1_A { # [doc = "0: CLR"]
IMASK_CCD1_CLR = 0 , # [doc = "1: SET"]
IMASK_CCD1_SET = 1 , } impl From < IMASK_CCD1_A > for bool { # [inline (always)]
fn from (variant : IMASK_CCD1_A) -> Self { variant as u8 != 0 } } impl IMASK_CCD1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_CCD1_A { match self . bits { false => IMASK_CCD1_A :: IMASK_CCD1_CLR , true => IMASK_CCD1_A :: IMASK_CCD1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_ccd1_clr (& self) -> bool { * self == IMASK_CCD1_A :: IMASK_CCD1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_ccd1_set (& self) -> bool { * self == IMASK_CCD1_A :: IMASK_CCD1_SET } } # [doc = "Field `IMASK_CCD1` writer - Capture or Compare DN event mask CCP1"]
pub type IMASK_CCD1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_CCD1_A > ; impl < 'a , REG , const O : u8 > IMASK_CCD1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_ccd1_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_CCD1_A :: IMASK_CCD1_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_ccd1_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_CCD1_A :: IMASK_CCD1_SET) } } # [doc = "Field `IMASK_CCU0` reader - Capture or Compare UP event mask CCP0"]
pub type IMASK_CCU0_R = crate :: BitReader < IMASK_CCU0_A > ; # [doc = "Capture or Compare UP event mask CCP0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_CCU0_A { # [doc = "0: CLR"]
IMASK_CCU0_CLR = 0 , # [doc = "1: SET"]
IMASK_CCU0_SET = 1 , } impl From < IMASK_CCU0_A > for bool { # [inline (always)]
fn from (variant : IMASK_CCU0_A) -> Self { variant as u8 != 0 } } impl IMASK_CCU0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_CCU0_A { match self . bits { false => IMASK_CCU0_A :: IMASK_CCU0_CLR , true => IMASK_CCU0_A :: IMASK_CCU0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_ccu0_clr (& self) -> bool { * self == IMASK_CCU0_A :: IMASK_CCU0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_ccu0_set (& self) -> bool { * self == IMASK_CCU0_A :: IMASK_CCU0_SET } } # [doc = "Field `IMASK_CCU0` writer - Capture or Compare UP event mask CCP0"]
pub type IMASK_CCU0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_CCU0_A > ; impl < 'a , REG , const O : u8 > IMASK_CCU0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_ccu0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_CCU0_A :: IMASK_CCU0_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_ccu0_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_CCU0_A :: IMASK_CCU0_SET) } } # [doc = "Field `IMASK_CCU1` reader - Capture or Compare UP event mask CCP1"]
pub type IMASK_CCU1_R = crate :: BitReader < IMASK_CCU1_A > ; # [doc = "Capture or Compare UP event mask CCP1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_CCU1_A { # [doc = "0: CLR"]
IMASK_CCU1_CLR = 0 , # [doc = "1: SET"]
IMASK_CCU1_SET = 1 , } impl From < IMASK_CCU1_A > for bool { # [inline (always)]
fn from (variant : IMASK_CCU1_A) -> Self { variant as u8 != 0 } } impl IMASK_CCU1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_CCU1_A { match self . bits { false => IMASK_CCU1_A :: IMASK_CCU1_CLR , true => IMASK_CCU1_A :: IMASK_CCU1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_ccu1_clr (& self) -> bool { * self == IMASK_CCU1_A :: IMASK_CCU1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_ccu1_set (& self) -> bool { * self == IMASK_CCU1_A :: IMASK_CCU1_SET } } # [doc = "Field `IMASK_CCU1` writer - Capture or Compare UP event mask CCP1"]
pub type IMASK_CCU1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_CCU1_A > ; impl < 'a , REG , const O : u8 > IMASK_CCU1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_ccu1_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_CCU1_A :: IMASK_CCU1_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_ccu1_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_CCU1_A :: IMASK_CCU1_SET) } } # [doc = "Field `IMASK_TOV` reader - Trigger Overflow Event mask"]
pub type IMASK_TOV_R = crate :: BitReader < IMASK_TOV_A > ; # [doc = "Trigger Overflow Event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_TOV_A { # [doc = "0: CLR"]
IMASK_TOV_CLR = 0 , # [doc = "1: SET"]
IMASK_TOV_SET = 1 , } impl From < IMASK_TOV_A > for bool { # [inline (always)]
fn from (variant : IMASK_TOV_A) -> Self { variant as u8 != 0 } } impl IMASK_TOV_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_TOV_A { match self . bits { false => IMASK_TOV_A :: IMASK_TOV_CLR , true => IMASK_TOV_A :: IMASK_TOV_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_tov_clr (& self) -> bool { * self == IMASK_TOV_A :: IMASK_TOV_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_tov_set (& self) -> bool { * self == IMASK_TOV_A :: IMASK_TOV_SET } } # [doc = "Field `IMASK_TOV` writer - Trigger Overflow Event mask"]
pub type IMASK_TOV_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_TOV_A > ; impl < 'a , REG , const O : u8 > IMASK_TOV_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_tov_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_TOV_A :: IMASK_TOV_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_tov_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_TOV_A :: IMASK_TOV_SET) } } impl R { # [doc = "Bit 0 - Zero Event mask"]
# [inline (always)]
pub fn imask_z (& self) -> IMASK_Z_R { IMASK_Z_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Load Event mask"]
# [inline (always)]
pub fn imask_l (& self) -> IMASK_L_R { IMASK_L_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 4 - Capture or Compare DN event mask CCP0"]
# [inline (always)]
pub fn imask_ccd0 (& self) -> IMASK_CCD0_R { IMASK_CCD0_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Capture or Compare DN event mask CCP1"]
# [inline (always)]
pub fn imask_ccd1 (& self) -> IMASK_CCD1_R { IMASK_CCD1_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 8 - Capture or Compare UP event mask CCP0"]
# [inline (always)]
pub fn imask_ccu0 (& self) -> IMASK_CCU0_R { IMASK_CCU0_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - Capture or Compare UP event mask CCP1"]
# [inline (always)]
pub fn imask_ccu1 (& self) -> IMASK_CCU1_R { IMASK_CCU1_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 25 - Trigger Overflow Event mask"]
# [inline (always)]
pub fn imask_tov (& self) -> IMASK_TOV_R { IMASK_TOV_R :: new (((self . bits >> 25) & 1) != 0) } } impl W { # [doc = "Bit 0 - Zero Event mask"]
# [inline (always)]
# [must_use]
pub fn imask_z (& mut self) -> IMASK_Z_W < IMASK_SPEC , 0 > { IMASK_Z_W :: new (self) } # [doc = "Bit 1 - Load Event mask"]
# [inline (always)]
# [must_use]
pub fn imask_l (& mut self) -> IMASK_L_W < IMASK_SPEC , 1 > { IMASK_L_W :: new (self) } # [doc = "Bit 4 - Capture or Compare DN event mask CCP0"]
# [inline (always)]
# [must_use]
pub fn imask_ccd0 (& mut self) -> IMASK_CCD0_W < IMASK_SPEC , 4 > { IMASK_CCD0_W :: new (self) } # [doc = "Bit 5 - Capture or Compare DN event mask CCP1"]
# [inline (always)]
# [must_use]
pub fn imask_ccd1 (& mut self) -> IMASK_CCD1_W < IMASK_SPEC , 5 > { IMASK_CCD1_W :: new (self) } # [doc = "Bit 8 - Capture or Compare UP event mask CCP0"]
# [inline (always)]
# [must_use]
pub fn imask_ccu0 (& mut self) -> IMASK_CCU0_W < IMASK_SPEC , 8 > { IMASK_CCU0_W :: new (self) } # [doc = "Bit 9 - Capture or Compare UP event mask CCP1"]
# [inline (always)]
# [must_use]
pub fn imask_ccu1 (& mut self) -> IMASK_CCU1_W < IMASK_SPEC , 9 > { IMASK_CCU1_W :: new (self) } # [doc = "Bit 25 - Trigger Overflow Event mask"]
# [inline (always)]
# [must_use]
pub fn imask_tov (& mut self) -> IMASK_TOV_W < IMASK_SPEC , 25 > { IMASK_TOV_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`imask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`imask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IMASK_SPEC ; impl crate :: RegisterSpec for IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`imask::R`](R) reader structure"]
impl crate :: Readable for IMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`imask::W`](W) writer structure"]
impl crate :: Writable for IMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets IMASK to value 0"]
impl crate :: Resettable for IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RIS (r) register accessor: Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ris`]
module"]
pub type RIS = crate :: Reg < ris :: RIS_SPEC > ; # [doc = "Raw interrupt status"]
pub mod ris { # [doc = "Register `RIS` reader"]
pub type R = crate :: R < RIS_SPEC > ; # [doc = "Field `RIS_Z` reader - Zero event generated an interrupt."]
pub type RIS_Z_R = crate :: BitReader < RIS_Z_A > ; # [doc = "Zero event generated an interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_Z_A { # [doc = "0: CLR"]
RIS_Z_CLR = 0 , # [doc = "1: SET"]
RIS_Z_SET = 1 , } impl From < RIS_Z_A > for bool { # [inline (always)]
fn from (variant : RIS_Z_A) -> Self { variant as u8 != 0 } } impl RIS_Z_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_Z_A { match self . bits { false => RIS_Z_A :: RIS_Z_CLR , true => RIS_Z_A :: RIS_Z_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_z_clr (& self) -> bool { * self == RIS_Z_A :: RIS_Z_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_z_set (& self) -> bool { * self == RIS_Z_A :: RIS_Z_SET } } # [doc = "Field `RIS_L` reader - Load event generated an interrupt."]
pub type RIS_L_R = crate :: BitReader < RIS_L_A > ; # [doc = "Load event generated an interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_L_A { # [doc = "0: CLR"]
RIS_L_CLR = 0 , # [doc = "1: SET"]
RIS_L_SET = 1 , } impl From < RIS_L_A > for bool { # [inline (always)]
fn from (variant : RIS_L_A) -> Self { variant as u8 != 0 } } impl RIS_L_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_L_A { match self . bits { false => RIS_L_A :: RIS_L_CLR , true => RIS_L_A :: RIS_L_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_l_clr (& self) -> bool { * self == RIS_L_A :: RIS_L_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_l_set (& self) -> bool { * self == RIS_L_A :: RIS_L_SET } } # [doc = "Field `RIS_CCD0` reader - Capture or compare down event generated an interrupt CCP0"]
pub type RIS_CCD0_R = crate :: BitReader < RIS_CCD0_A > ; # [doc = "Capture or compare down event generated an interrupt CCP0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_CCD0_A { # [doc = "0: CLR"]
RIS_CCD0_CLR = 0 , # [doc = "1: SET"]
RIS_CCD0_SET = 1 , } impl From < RIS_CCD0_A > for bool { # [inline (always)]
fn from (variant : RIS_CCD0_A) -> Self { variant as u8 != 0 } } impl RIS_CCD0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_CCD0_A { match self . bits { false => RIS_CCD0_A :: RIS_CCD0_CLR , true => RIS_CCD0_A :: RIS_CCD0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_ccd0_clr (& self) -> bool { * self == RIS_CCD0_A :: RIS_CCD0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_ccd0_set (& self) -> bool { * self == RIS_CCD0_A :: RIS_CCD0_SET } } # [doc = "Field `RIS_CCD1` reader - Capture or compare down event generated an interrupt CCP1"]
pub type RIS_CCD1_R = crate :: BitReader < RIS_CCD1_A > ; # [doc = "Capture or compare down event generated an interrupt CCP1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_CCD1_A { # [doc = "0: CLR"]
RIS_CCD1_CLR = 0 , # [doc = "1: SET"]
RIS_CCD1_SET = 1 , } impl From < RIS_CCD1_A > for bool { # [inline (always)]
fn from (variant : RIS_CCD1_A) -> Self { variant as u8 != 0 } } impl RIS_CCD1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_CCD1_A { match self . bits { false => RIS_CCD1_A :: RIS_CCD1_CLR , true => RIS_CCD1_A :: RIS_CCD1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_ccd1_clr (& self) -> bool { * self == RIS_CCD1_A :: RIS_CCD1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_ccd1_set (& self) -> bool { * self == RIS_CCD1_A :: RIS_CCD1_SET } } # [doc = "Field `RIS_CCU0` reader - Capture or compare up event generated an interrupt CCP0"]
pub type RIS_CCU0_R = crate :: BitReader < RIS_CCU0_A > ; # [doc = "Capture or compare up event generated an interrupt CCP0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_CCU0_A { # [doc = "0: CLR"]
RIS_CCU0_CLR = 0 , # [doc = "1: SET"]
RIS_CCU0_SET = 1 , } impl From < RIS_CCU0_A > for bool { # [inline (always)]
fn from (variant : RIS_CCU0_A) -> Self { variant as u8 != 0 } } impl RIS_CCU0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_CCU0_A { match self . bits { false => RIS_CCU0_A :: RIS_CCU0_CLR , true => RIS_CCU0_A :: RIS_CCU0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_ccu0_clr (& self) -> bool { * self == RIS_CCU0_A :: RIS_CCU0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_ccu0_set (& self) -> bool { * self == RIS_CCU0_A :: RIS_CCU0_SET } } # [doc = "Field `RIS_CCU1` reader - Capture or compare up event generated an interrupt CCP1"]
pub type RIS_CCU1_R = crate :: BitReader < RIS_CCU1_A > ; # [doc = "Capture or compare up event generated an interrupt CCP1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_CCU1_A { # [doc = "0: CLR"]
RIS_CCU1_CLR = 0 , # [doc = "1: SET"]
RIS_CCU1_SET = 1 , } impl From < RIS_CCU1_A > for bool { # [inline (always)]
fn from (variant : RIS_CCU1_A) -> Self { variant as u8 != 0 } } impl RIS_CCU1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_CCU1_A { match self . bits { false => RIS_CCU1_A :: RIS_CCU1_CLR , true => RIS_CCU1_A :: RIS_CCU1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_ccu1_clr (& self) -> bool { * self == RIS_CCU1_A :: RIS_CCU1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_ccu1_set (& self) -> bool { * self == RIS_CCU1_A :: RIS_CCU1_SET } } # [doc = "Field `RIS_TOV` reader - Trigger overflow"]
pub type RIS_TOV_R = crate :: BitReader < RIS_TOV_A > ; # [doc = "Trigger overflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_TOV_A { # [doc = "0: CLR"]
RIS_TOV_CLR = 0 , # [doc = "1: SET"]
RIS_TOV_SET = 1 , } impl From < RIS_TOV_A > for bool { # [inline (always)]
fn from (variant : RIS_TOV_A) -> Self { variant as u8 != 0 } } impl RIS_TOV_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_TOV_A { match self . bits { false => RIS_TOV_A :: RIS_TOV_CLR , true => RIS_TOV_A :: RIS_TOV_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_tov_clr (& self) -> bool { * self == RIS_TOV_A :: RIS_TOV_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_tov_set (& self) -> bool { * self == RIS_TOV_A :: RIS_TOV_SET } } impl R { # [doc = "Bit 0 - Zero event generated an interrupt."]
# [inline (always)]
pub fn ris_z (& self) -> RIS_Z_R { RIS_Z_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Load event generated an interrupt."]
# [inline (always)]
pub fn ris_l (& self) -> RIS_L_R { RIS_L_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 4 - Capture or compare down event generated an interrupt CCP0"]
# [inline (always)]
pub fn ris_ccd0 (& self) -> RIS_CCD0_R { RIS_CCD0_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Capture or compare down event generated an interrupt CCP1"]
# [inline (always)]
pub fn ris_ccd1 (& self) -> RIS_CCD1_R { RIS_CCD1_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 8 - Capture or compare up event generated an interrupt CCP0"]
# [inline (always)]
pub fn ris_ccu0 (& self) -> RIS_CCU0_R { RIS_CCU0_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - Capture or compare up event generated an interrupt CCP1"]
# [inline (always)]
pub fn ris_ccu1 (& self) -> RIS_CCU1_R { RIS_CCU1_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 25 - Trigger overflow"]
# [inline (always)]
pub fn ris_tov (& self) -> RIS_TOV_R { RIS_TOV_R :: new (((self . bits >> 25) & 1) != 0) } } # [doc = "Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RIS_SPEC ; impl crate :: RegisterSpec for RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ris::R`](R) reader structure"]
impl crate :: Readable for RIS_SPEC { } # [doc = "`reset()` method sets RIS to value 0"]
impl crate :: Resettable for RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "MIS (r) register accessor: Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mis`]
module"]
pub type MIS = crate :: Reg < mis :: MIS_SPEC > ; # [doc = "Masked interrupt status"]
pub mod mis { # [doc = "Register `MIS` reader"]
pub type R = crate :: R < MIS_SPEC > ; # [doc = "Field `MIS_Z` reader - Zero event generated an interrupt."]
pub type MIS_Z_R = crate :: BitReader < MIS_Z_A > ; # [doc = "Zero event generated an interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_Z_A { # [doc = "0: CLR"]
MIS_Z_CLR = 0 , # [doc = "1: SET"]
MIS_Z_SET = 1 , } impl From < MIS_Z_A > for bool { # [inline (always)]
fn from (variant : MIS_Z_A) -> Self { variant as u8 != 0 } } impl MIS_Z_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_Z_A { match self . bits { false => MIS_Z_A :: MIS_Z_CLR , true => MIS_Z_A :: MIS_Z_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_z_clr (& self) -> bool { * self == MIS_Z_A :: MIS_Z_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_z_set (& self) -> bool { * self == MIS_Z_A :: MIS_Z_SET } } # [doc = "Field `MIS_L` reader - Load event generated an interrupt."]
pub type MIS_L_R = crate :: BitReader < MIS_L_A > ; # [doc = "Load event generated an interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_L_A { # [doc = "0: CLR"]
MIS_L_CLR = 0 , # [doc = "1: SET"]
MIS_L_SET = 1 , } impl From < MIS_L_A > for bool { # [inline (always)]
fn from (variant : MIS_L_A) -> Self { variant as u8 != 0 } } impl MIS_L_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_L_A { match self . bits { false => MIS_L_A :: MIS_L_CLR , true => MIS_L_A :: MIS_L_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_l_clr (& self) -> bool { * self == MIS_L_A :: MIS_L_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_l_set (& self) -> bool { * self == MIS_L_A :: MIS_L_SET } } # [doc = "Field `MIS_CCD0` reader - Capture or compare down event generated an interrupt CCP0"]
pub type MIS_CCD0_R = crate :: BitReader < MIS_CCD0_A > ; # [doc = "Capture or compare down event generated an interrupt CCP0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_CCD0_A { # [doc = "0: CLR"]
MIS_CCD0_CLR = 0 , # [doc = "1: SET"]
MIS_CCD0_SET = 1 , } impl From < MIS_CCD0_A > for bool { # [inline (always)]
fn from (variant : MIS_CCD0_A) -> Self { variant as u8 != 0 } } impl MIS_CCD0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_CCD0_A { match self . bits { false => MIS_CCD0_A :: MIS_CCD0_CLR , true => MIS_CCD0_A :: MIS_CCD0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_ccd0_clr (& self) -> bool { * self == MIS_CCD0_A :: MIS_CCD0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_ccd0_set (& self) -> bool { * self == MIS_CCD0_A :: MIS_CCD0_SET } } # [doc = "Field `MIS_CCD1` reader - Capture or compare down event generated an interrupt CCP1"]
pub type MIS_CCD1_R = crate :: BitReader < MIS_CCD1_A > ; # [doc = "Capture or compare down event generated an interrupt CCP1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_CCD1_A { # [doc = "0: CLR"]
MIS_CCD1_CLR = 0 , # [doc = "1: SET"]
MIS_CCD1_SET = 1 , } impl From < MIS_CCD1_A > for bool { # [inline (always)]
fn from (variant : MIS_CCD1_A) -> Self { variant as u8 != 0 } } impl MIS_CCD1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_CCD1_A { match self . bits { false => MIS_CCD1_A :: MIS_CCD1_CLR , true => MIS_CCD1_A :: MIS_CCD1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_ccd1_clr (& self) -> bool { * self == MIS_CCD1_A :: MIS_CCD1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_ccd1_set (& self) -> bool { * self == MIS_CCD1_A :: MIS_CCD1_SET } } # [doc = "Field `MIS_CCU0` reader - Capture or compare up event generated an interrupt CCP0"]
pub type MIS_CCU0_R = crate :: BitReader < MIS_CCU0_A > ; # [doc = "Capture or compare up event generated an interrupt CCP0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_CCU0_A { # [doc = "0: CLR"]
MIS_CCU0_CLR = 0 , # [doc = "1: SET"]
MIS_CCU0_SET = 1 , } impl From < MIS_CCU0_A > for bool { # [inline (always)]
fn from (variant : MIS_CCU0_A) -> Self { variant as u8 != 0 } } impl MIS_CCU0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_CCU0_A { match self . bits { false => MIS_CCU0_A :: MIS_CCU0_CLR , true => MIS_CCU0_A :: MIS_CCU0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_ccu0_clr (& self) -> bool { * self == MIS_CCU0_A :: MIS_CCU0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_ccu0_set (& self) -> bool { * self == MIS_CCU0_A :: MIS_CCU0_SET } } # [doc = "Field `MIS_CCU1` reader - Capture or compare up event generated an interrupt CCP1"]
pub type MIS_CCU1_R = crate :: BitReader < MIS_CCU1_A > ; # [doc = "Capture or compare up event generated an interrupt CCP1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_CCU1_A { # [doc = "0: CLR"]
MIS_CCU1_CLR = 0 , # [doc = "1: SET"]
MIS_CCU1_SET = 1 , } impl From < MIS_CCU1_A > for bool { # [inline (always)]
fn from (variant : MIS_CCU1_A) -> Self { variant as u8 != 0 } } impl MIS_CCU1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_CCU1_A { match self . bits { false => MIS_CCU1_A :: MIS_CCU1_CLR , true => MIS_CCU1_A :: MIS_CCU1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_ccu1_clr (& self) -> bool { * self == MIS_CCU1_A :: MIS_CCU1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_ccu1_set (& self) -> bool { * self == MIS_CCU1_A :: MIS_CCU1_SET } } # [doc = "Field `MIS_TOV` reader - Trigger overflow"]
pub type MIS_TOV_R = crate :: BitReader < MIS_TOV_A > ; # [doc = "Trigger overflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_TOV_A { # [doc = "0: CLR"]
MIS_TOV_CLR = 0 , # [doc = "1: SET"]
MIS_TOV_SET = 1 , } impl From < MIS_TOV_A > for bool { # [inline (always)]
fn from (variant : MIS_TOV_A) -> Self { variant as u8 != 0 } } impl MIS_TOV_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_TOV_A { match self . bits { false => MIS_TOV_A :: MIS_TOV_CLR , true => MIS_TOV_A :: MIS_TOV_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_tov_clr (& self) -> bool { * self == MIS_TOV_A :: MIS_TOV_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_tov_set (& self) -> bool { * self == MIS_TOV_A :: MIS_TOV_SET } } impl R { # [doc = "Bit 0 - Zero event generated an interrupt."]
# [inline (always)]
pub fn mis_z (& self) -> MIS_Z_R { MIS_Z_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Load event generated an interrupt."]
# [inline (always)]
pub fn mis_l (& self) -> MIS_L_R { MIS_L_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 4 - Capture or compare down event generated an interrupt CCP0"]
# [inline (always)]
pub fn mis_ccd0 (& self) -> MIS_CCD0_R { MIS_CCD0_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Capture or compare down event generated an interrupt CCP1"]
# [inline (always)]
pub fn mis_ccd1 (& self) -> MIS_CCD1_R { MIS_CCD1_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 8 - Capture or compare up event generated an interrupt CCP0"]
# [inline (always)]
pub fn mis_ccu0 (& self) -> MIS_CCU0_R { MIS_CCU0_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - Capture or compare up event generated an interrupt CCP1"]
# [inline (always)]
pub fn mis_ccu1 (& self) -> MIS_CCU1_R { MIS_CCU1_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 25 - Trigger overflow"]
# [inline (always)]
pub fn mis_tov (& self) -> MIS_TOV_R { MIS_TOV_R :: new (((self . bits >> 25) & 1) != 0) } } # [doc = "Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MIS_SPEC ; impl crate :: RegisterSpec for MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`mis::R`](R) reader structure"]
impl crate :: Readable for MIS_SPEC { } # [doc = "`reset()` method sets MIS to value 0"]
impl crate :: Resettable for MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "ISET (w) register accessor: Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@iset`]
module"]
pub type ISET = crate :: Reg < iset :: ISET_SPEC > ; # [doc = "Interrupt set"]
pub mod iset { # [doc = "Register `ISET` writer"]
pub type W = crate :: W < ISET_SPEC > ; # [doc = "Zero event SET\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_Z_AW { # [doc = "0: NO_EFFECT"]
ISET_Z_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_Z_SET = 1 , } impl From < ISET_Z_AW > for bool { # [inline (always)]
fn from (variant : ISET_Z_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_Z` writer - Zero event SET"]
pub type ISET_Z_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_Z_AW > ; impl < 'a , REG , const O : u8 > ISET_Z_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_z_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_Z_AW :: ISET_Z_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_z_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_Z_AW :: ISET_Z_SET) } } # [doc = "Load event SET\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_L_AW { # [doc = "0: NO_EFFECT"]
ISET_L_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_L_SET = 1 , } impl From < ISET_L_AW > for bool { # [inline (always)]
fn from (variant : ISET_L_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_L` writer - Load event SET"]
pub type ISET_L_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_L_AW > ; impl < 'a , REG , const O : u8 > ISET_L_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_l_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_L_AW :: ISET_L_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_l_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_L_AW :: ISET_L_SET) } } # [doc = "Capture or compare down event SET\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_CCD0_AW { # [doc = "0: NO_EFFECT"]
ISET_CCD0_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_CCD0_SET = 1 , } impl From < ISET_CCD0_AW > for bool { # [inline (always)]
fn from (variant : ISET_CCD0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_CCD0` writer - Capture or compare down event SET"]
pub type ISET_CCD0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_CCD0_AW > ; impl < 'a , REG , const O : u8 > ISET_CCD0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_ccd0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_CCD0_AW :: ISET_CCD0_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_ccd0_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_CCD0_AW :: ISET_CCD0_SET) } } # [doc = "Capture or compare down event SET\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_CCD1_AW { # [doc = "0: NO_EFFECT"]
ISET_CCD1_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_CCD1_SET = 1 , } impl From < ISET_CCD1_AW > for bool { # [inline (always)]
fn from (variant : ISET_CCD1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_CCD1` writer - Capture or compare down event SET"]
pub type ISET_CCD1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_CCD1_AW > ; impl < 'a , REG , const O : u8 > ISET_CCD1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_ccd1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_CCD1_AW :: ISET_CCD1_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_ccd1_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_CCD1_AW :: ISET_CCD1_SET) } } # [doc = "Capture or compare up event SET\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_CCU0_AW { # [doc = "0: NO_EFFECT"]
ISET_CCU0_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_CCU0_SET = 1 , } impl From < ISET_CCU0_AW > for bool { # [inline (always)]
fn from (variant : ISET_CCU0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_CCU0` writer - Capture or compare up event SET"]
pub type ISET_CCU0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_CCU0_AW > ; impl < 'a , REG , const O : u8 > ISET_CCU0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_ccu0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_CCU0_AW :: ISET_CCU0_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_ccu0_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_CCU0_AW :: ISET_CCU0_SET) } } # [doc = "Capture or compare up event SET\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_CCU1_AW { # [doc = "0: NO_EFFECT"]
ISET_CCU1_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_CCU1_SET = 1 , } impl From < ISET_CCU1_AW > for bool { # [inline (always)]
fn from (variant : ISET_CCU1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_CCU1` writer - Capture or compare up event SET"]
pub type ISET_CCU1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_CCU1_AW > ; impl < 'a , REG , const O : u8 > ISET_CCU1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_ccu1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_CCU1_AW :: ISET_CCU1_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_ccu1_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_CCU1_AW :: ISET_CCU1_SET) } } # [doc = "Trigger Overflow event SET\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_TOV_AW { # [doc = "0: NO_EFFECT"]
ISET_TOV_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_TOV_SET = 1 , } impl From < ISET_TOV_AW > for bool { # [inline (always)]
fn from (variant : ISET_TOV_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_TOV` writer - Trigger Overflow event SET"]
pub type ISET_TOV_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_TOV_AW > ; impl < 'a , REG , const O : u8 > ISET_TOV_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_tov_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_TOV_AW :: ISET_TOV_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_tov_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_TOV_AW :: ISET_TOV_SET) } } impl W { # [doc = "Bit 0 - Zero event SET"]
# [inline (always)]
# [must_use]
pub fn iset_z (& mut self) -> ISET_Z_W < ISET_SPEC , 0 > { ISET_Z_W :: new (self) } # [doc = "Bit 1 - Load event SET"]
# [inline (always)]
# [must_use]
pub fn iset_l (& mut self) -> ISET_L_W < ISET_SPEC , 1 > { ISET_L_W :: new (self) } # [doc = "Bit 4 - Capture or compare down event SET"]
# [inline (always)]
# [must_use]
pub fn iset_ccd0 (& mut self) -> ISET_CCD0_W < ISET_SPEC , 4 > { ISET_CCD0_W :: new (self) } # [doc = "Bit 5 - Capture or compare down event SET"]
# [inline (always)]
# [must_use]
pub fn iset_ccd1 (& mut self) -> ISET_CCD1_W < ISET_SPEC , 5 > { ISET_CCD1_W :: new (self) } # [doc = "Bit 8 - Capture or compare up event SET"]
# [inline (always)]
# [must_use]
pub fn iset_ccu0 (& mut self) -> ISET_CCU0_W < ISET_SPEC , 8 > { ISET_CCU0_W :: new (self) } # [doc = "Bit 9 - Capture or compare up event SET"]
# [inline (always)]
# [must_use]
pub fn iset_ccu1 (& mut self) -> ISET_CCU1_W < ISET_SPEC , 9 > { ISET_CCU1_W :: new (self) } # [doc = "Bit 25 - Trigger Overflow event SET"]
# [inline (always)]
# [must_use]
pub fn iset_tov (& mut self) -> ISET_TOV_W < ISET_SPEC , 25 > { ISET_TOV_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ISET_SPEC ; impl crate :: RegisterSpec for ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`iset::W`](W) writer structure"]
impl crate :: Writable for ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets ISET to value 0"]
impl crate :: Resettable for ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "ICLR (w) register accessor: Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@iclr`]
module"]
pub type ICLR = crate :: Reg < iclr :: ICLR_SPEC > ; # [doc = "Interrupt clear"]
pub mod iclr { # [doc = "Register `ICLR` writer"]
pub type W = crate :: W < ICLR_SPEC > ; # [doc = "Zero event CLEAR\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_Z_AW { # [doc = "0: NO_EFFECT"]
ICLR_Z_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_Z_CLR = 1 , } impl From < ICLR_Z_AW > for bool { # [inline (always)]
fn from (variant : ICLR_Z_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_Z` writer - Zero event CLEAR"]
pub type ICLR_Z_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_Z_AW > ; impl < 'a , REG , const O : u8 > ICLR_Z_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_z_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_Z_AW :: ICLR_Z_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_z_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_Z_AW :: ICLR_Z_CLR) } } # [doc = "Load event CLEAR\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_L_AW { # [doc = "0: NO_EFFECT"]
ICLR_L_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_L_CLR = 1 , } impl From < ICLR_L_AW > for bool { # [inline (always)]
fn from (variant : ICLR_L_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_L` writer - Load event CLEAR"]
pub type ICLR_L_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_L_AW > ; impl < 'a , REG , const O : u8 > ICLR_L_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_l_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_L_AW :: ICLR_L_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_l_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_L_AW :: ICLR_L_CLR) } } # [doc = "Capture or compare down event CLEAR\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_CCD0_AW { # [doc = "0: NO_EFFECT"]
ICLR_CCD0_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_CCD0_CLR = 1 , } impl From < ICLR_CCD0_AW > for bool { # [inline (always)]
fn from (variant : ICLR_CCD0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_CCD0` writer - Capture or compare down event CLEAR"]
pub type ICLR_CCD0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_CCD0_AW > ; impl < 'a , REG , const O : u8 > ICLR_CCD0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_ccd0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_CCD0_AW :: ICLR_CCD0_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_ccd0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_CCD0_AW :: ICLR_CCD0_CLR) } } # [doc = "Capture or compare down event CLEAR\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_CCD1_AW { # [doc = "0: NO_EFFECT"]
ICLR_CCD1_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_CCD1_CLR = 1 , } impl From < ICLR_CCD1_AW > for bool { # [inline (always)]
fn from (variant : ICLR_CCD1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_CCD1` writer - Capture or compare down event CLEAR"]
pub type ICLR_CCD1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_CCD1_AW > ; impl < 'a , REG , const O : u8 > ICLR_CCD1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_ccd1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_CCD1_AW :: ICLR_CCD1_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_ccd1_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_CCD1_AW :: ICLR_CCD1_CLR) } } # [doc = "Capture or compare up event CLEAR\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_CCU0_AW { # [doc = "0: NO_EFFECT"]
ICLR_CCU0_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_CCU0_CLR = 1 , } impl From < ICLR_CCU0_AW > for bool { # [inline (always)]
fn from (variant : ICLR_CCU0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_CCU0` writer - Capture or compare up event CLEAR"]
pub type ICLR_CCU0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_CCU0_AW > ; impl < 'a , REG , const O : u8 > ICLR_CCU0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_ccu0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_CCU0_AW :: ICLR_CCU0_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_ccu0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_CCU0_AW :: ICLR_CCU0_CLR) } } # [doc = "Capture or compare up event CLEAR\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_CCU1_AW { # [doc = "0: NO_EFFECT"]
ICLR_CCU1_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_CCU1_CLR = 1 , } impl From < ICLR_CCU1_AW > for bool { # [inline (always)]
fn from (variant : ICLR_CCU1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_CCU1` writer - Capture or compare up event CLEAR"]
pub type ICLR_CCU1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_CCU1_AW > ; impl < 'a , REG , const O : u8 > ICLR_CCU1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_ccu1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_CCU1_AW :: ICLR_CCU1_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_ccu1_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_CCU1_AW :: ICLR_CCU1_CLR) } } # [doc = "Trigger Overflow event CLEAR\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_TOV_AW { # [doc = "0: NO_EFFECT"]
ICLR_TOV_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_TOV_CLR = 1 , } impl From < ICLR_TOV_AW > for bool { # [inline (always)]
fn from (variant : ICLR_TOV_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_TOV` writer - Trigger Overflow event CLEAR"]
pub type ICLR_TOV_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_TOV_AW > ; impl < 'a , REG , const O : u8 > ICLR_TOV_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_tov_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_TOV_AW :: ICLR_TOV_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_tov_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_TOV_AW :: ICLR_TOV_CLR) } } impl W { # [doc = "Bit 0 - Zero event CLEAR"]
# [inline (always)]
# [must_use]
pub fn iclr_z (& mut self) -> ICLR_Z_W < ICLR_SPEC , 0 > { ICLR_Z_W :: new (self) } # [doc = "Bit 1 - Load event CLEAR"]
# [inline (always)]
# [must_use]
pub fn iclr_l (& mut self) -> ICLR_L_W < ICLR_SPEC , 1 > { ICLR_L_W :: new (self) } # [doc = "Bit 4 - Capture or compare down event CLEAR"]
# [inline (always)]
# [must_use]
pub fn iclr_ccd0 (& mut self) -> ICLR_CCD0_W < ICLR_SPEC , 4 > { ICLR_CCD0_W :: new (self) } # [doc = "Bit 5 - Capture or compare down event CLEAR"]
# [inline (always)]
# [must_use]
pub fn iclr_ccd1 (& mut self) -> ICLR_CCD1_W < ICLR_SPEC , 5 > { ICLR_CCD1_W :: new (self) } # [doc = "Bit 8 - Capture or compare up event CLEAR"]
# [inline (always)]
# [must_use]
pub fn iclr_ccu0 (& mut self) -> ICLR_CCU0_W < ICLR_SPEC , 8 > { ICLR_CCU0_W :: new (self) } # [doc = "Bit 9 - Capture or compare up event CLEAR"]
# [inline (always)]
# [must_use]
pub fn iclr_ccu1 (& mut self) -> ICLR_CCU1_W < ICLR_SPEC , 9 > { ICLR_CCU1_W :: new (self) } # [doc = "Bit 25 - Trigger Overflow event CLEAR"]
# [inline (always)]
# [must_use]
pub fn iclr_tov (& mut self) -> ICLR_TOV_W < ICLR_SPEC , 25 > { ICLR_TOV_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ICLR_SPEC ; impl crate :: RegisterSpec for ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`iclr::W`](W) writer structure"]
impl crate :: Writable for ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets ICLR to value 0"]
impl crate :: Resettable for ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "EVT_MODE (rw) register accessor: Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`evt_mode::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@evt_mode`]
module"]
pub type EVT_MODE = crate :: Reg < evt_mode :: EVT_MODE_SPEC > ; # [doc = "Event Mode"]
pub mod evt_mode { # [doc = "Register `EVT_MODE` reader"]
pub type R = crate :: R < EVT_MODE_SPEC > ; # [doc = "Register `EVT_MODE` writer"]
pub type W = crate :: W < EVT_MODE_SPEC > ; # [doc = "Field `EVT_MODE_EVT0_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[0\\]"]
pub type EVT_MODE_EVT0_CFG_R = crate :: FieldReader < EVT_MODE_EVT0_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[0\\]\n\nValue on reset: 1"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_EVT0_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_EVT0_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_EVT0_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_EVT0_CFG_HARDWARE = 2 , } impl From < EVT_MODE_EVT0_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_EVT0_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_EVT0_CFG_A { type Ux = u8 ; } impl EVT_MODE_EVT0_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_EVT0_CFG_A > { match self . bits { 0 => Some (EVT_MODE_EVT0_CFG_A :: EVT_MODE_EVT0_CFG_DISABLE) , 1 => Some (EVT_MODE_EVT0_CFG_A :: EVT_MODE_EVT0_CFG_SOFTWARE) , 2 => Some (EVT_MODE_EVT0_CFG_A :: EVT_MODE_EVT0_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_evt0_cfg_disable (& self) -> bool { * self == EVT_MODE_EVT0_CFG_A :: EVT_MODE_EVT0_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_evt0_cfg_software (& self) -> bool { * self == EVT_MODE_EVT0_CFG_A :: EVT_MODE_EVT0_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_evt0_cfg_hardware (& self) -> bool { * self == EVT_MODE_EVT0_CFG_A :: EVT_MODE_EVT0_CFG_HARDWARE } } # [doc = "Field `EVT_MODE_EVT1_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[1\\]"]
pub type EVT_MODE_EVT1_CFG_R = crate :: FieldReader < EVT_MODE_EVT1_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[1\\]\n\nValue on reset: 2"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_EVT1_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_EVT1_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_EVT1_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_EVT1_CFG_HARDWARE = 2 , } impl From < EVT_MODE_EVT1_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_EVT1_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_EVT1_CFG_A { type Ux = u8 ; } impl EVT_MODE_EVT1_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_EVT1_CFG_A > { match self . bits { 0 => Some (EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_DISABLE) , 1 => Some (EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_SOFTWARE) , 2 => Some (EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_evt1_cfg_disable (& self) -> bool { * self == EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_evt1_cfg_software (& self) -> bool { * self == EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_evt1_cfg_hardware (& self) -> bool { * self == EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_HARDWARE } } # [doc = "Field `EVT_MODE_EVT2_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[1\\]"]
pub type EVT_MODE_EVT2_CFG_R = crate :: FieldReader < EVT_MODE_EVT2_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[1\\]\n\nValue on reset: 2"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_EVT2_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_EVT2_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_EVT2_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_EVT2_CFG_HARDWARE = 2 , } impl From < EVT_MODE_EVT2_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_EVT2_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_EVT2_CFG_A { type Ux = u8 ; } impl EVT_MODE_EVT2_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_EVT2_CFG_A > { match self . bits { 0 => Some (EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_DISABLE) , 1 => Some (EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_SOFTWARE) , 2 => Some (EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_evt2_cfg_disable (& self) -> bool { * self == EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_evt2_cfg_software (& self) -> bool { * self == EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_evt2_cfg_hardware (& self) -> bool { * self == EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_HARDWARE } } impl R { # [doc = "Bits 0:1 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[0\\]"]
# [inline (always)]
pub fn evt_mode_evt0_cfg (& self) -> EVT_MODE_EVT0_CFG_R { EVT_MODE_EVT0_CFG_R :: new ((self . bits & 3) as u8) } # [doc = "Bits 2:3 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[1\\]"]
# [inline (always)]
pub fn evt_mode_evt1_cfg (& self) -> EVT_MODE_EVT1_CFG_R { EVT_MODE_EVT1_CFG_R :: new (((self . bits >> 2) & 3) as u8) } # [doc = "Bits 4:5 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[1\\]"]
# [inline (always)]
pub fn evt_mode_evt2_cfg (& self) -> EVT_MODE_EVT2_CFG_R { EVT_MODE_EVT2_CFG_R :: new (((self . bits >> 4) & 3) as u8) } } impl W { # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`evt_mode::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct EVT_MODE_SPEC ; impl crate :: RegisterSpec for EVT_MODE_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`evt_mode::R`](R) reader structure"]
impl crate :: Readable for EVT_MODE_SPEC { } # [doc = "`write(|w| ..)` method takes [`evt_mode::W`](W) writer structure"]
impl crate :: Writable for EVT_MODE_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets EVT_MODE to value 0x29"]
impl crate :: Resettable for EVT_MODE_SPEC { const RESET_VALUE : Self :: Ux = 0x29 ; } } # [doc = "DESC (r) register accessor: Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@desc`]
module"]
pub type DESC = crate :: Reg < desc :: DESC_SPEC > ; # [doc = "Module Description"]
pub mod desc { # [doc = "Register `DESC` reader"]
pub type R = crate :: R < DESC_SPEC > ; # [doc = "Field `DESC_MINREV` reader - Minor rev of the IP"]
pub type DESC_MINREV_R = crate :: FieldReader ; # [doc = "Field `DESC_MAJREV` reader - Major rev of the IP"]
pub type DESC_MAJREV_R = crate :: FieldReader ; # [doc = "Field `DESC_INSTNUM` reader - Instance Number within the device. This will be a parameter to the RTL for modules that can have multiple instances"]
pub type DESC_INSTNUM_R = crate :: FieldReader ; # [doc = "Field `DESC_FEATUREVER` reader - Feature Set for the module *instance*"]
pub type DESC_FEATUREVER_R = crate :: FieldReader ; # [doc = "Field `DESC_MODULEID` reader - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
pub type DESC_MODULEID_R = crate :: FieldReader < u16 > ; impl R { # [doc = "Bits 0:3 - Minor rev of the IP"]
# [inline (always)]
pub fn desc_minrev (& self) -> DESC_MINREV_R { DESC_MINREV_R :: new ((self . bits & 0x0f) as u8) } # [doc = "Bits 4:7 - Major rev of the IP"]
# [inline (always)]
pub fn desc_majrev (& self) -> DESC_MAJREV_R { DESC_MAJREV_R :: new (((self . bits >> 4) & 0x0f) as u8) } # [doc = "Bits 8:11 - Instance Number within the device. This will be a parameter to the RTL for modules that can have multiple instances"]
# [inline (always)]
pub fn desc_instnum (& self) -> DESC_INSTNUM_R { DESC_INSTNUM_R :: new (((self . bits >> 8) & 0x0f) as u8) } # [doc = "Bits 12:15 - Feature Set for the module *instance*"]
# [inline (always)]
pub fn desc_featurever (& self) -> DESC_FEATUREVER_R { DESC_FEATUREVER_R :: new (((self . bits >> 12) & 0x0f) as u8) } # [doc = "Bits 16:31 - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
# [inline (always)]
pub fn desc_moduleid (& self) -> DESC_MODULEID_R { DESC_MODULEID_R :: new (((self . bits >> 16) & 0xffff) as u16) } } # [doc = "Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DESC_SPEC ; impl crate :: RegisterSpec for DESC_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`desc::R`](R) reader structure"]
impl crate :: Readable for DESC_SPEC { } # [doc = "`reset()` method sets DESC to value 0"]
impl crate :: Resettable for DESC_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CCPD (rw) register accessor: CCP Direction\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ccpd::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ccpd::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccpd`]
module"]
pub type CCPD = crate :: Reg < ccpd :: CCPD_SPEC > ; # [doc = "CCP Direction"]
pub mod ccpd { # [doc = "Register `CCPD` reader"]
pub type R = crate :: R < CCPD_SPEC > ; # [doc = "Register `CCPD` writer"]
pub type W = crate :: W < CCPD_SPEC > ; # [doc = "Field `CCPD_C0CCP0` reader - Counter CCP0"]
pub type CCPD_C0CCP0_R = crate :: BitReader < CCPD_C0CCP0_A > ; # [doc = "Counter CCP0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CCPD_C0CCP0_A { # [doc = "0: INPUT"]
CCPD_C0CCP0_INPUT = 0 , # [doc = "1: OUTPUT"]
CCPD_C0CCP0_OUTPUT = 1 , } impl From < CCPD_C0CCP0_A > for bool { # [inline (always)]
fn from (variant : CCPD_C0CCP0_A) -> Self { variant as u8 != 0 } } impl CCPD_C0CCP0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCPD_C0CCP0_A { match self . bits { false => CCPD_C0CCP0_A :: CCPD_C0CCP0_INPUT , true => CCPD_C0CCP0_A :: CCPD_C0CCP0_OUTPUT , } } # [doc = "INPUT"]
# [inline (always)]
pub fn is_ccpd_c0ccp0_input (& self) -> bool { * self == CCPD_C0CCP0_A :: CCPD_C0CCP0_INPUT } # [doc = "OUTPUT"]
# [inline (always)]
pub fn is_ccpd_c0ccp0_output (& self) -> bool { * self == CCPD_C0CCP0_A :: CCPD_C0CCP0_OUTPUT } } # [doc = "Field `CCPD_C0CCP0` writer - Counter CCP0"]
pub type CCPD_C0CCP0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CCPD_C0CCP0_A > ; impl < 'a , REG , const O : u8 > CCPD_C0CCP0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "INPUT"]
# [inline (always)]
pub fn ccpd_c0ccp0_input (self) -> & 'a mut crate :: W < REG > { self . variant (CCPD_C0CCP0_A :: CCPD_C0CCP0_INPUT) } # [doc = "OUTPUT"]
# [inline (always)]
pub fn ccpd_c0ccp0_output (self) -> & 'a mut crate :: W < REG > { self . variant (CCPD_C0CCP0_A :: CCPD_C0CCP0_OUTPUT) } } # [doc = "Field `CCPD_C0CCP1` reader - Counter CCP1"]
pub type CCPD_C0CCP1_R = crate :: BitReader < CCPD_C0CCP1_A > ; # [doc = "Counter CCP1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CCPD_C0CCP1_A { # [doc = "0: INPUT"]
CCPD_C0CCP1_INPUT = 0 , # [doc = "1: OUTPUT"]
CCPD_C0CCP1_OUTPUT = 1 , } impl From < CCPD_C0CCP1_A > for bool { # [inline (always)]
fn from (variant : CCPD_C0CCP1_A) -> Self { variant as u8 != 0 } } impl CCPD_C0CCP1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCPD_C0CCP1_A { match self . bits { false => CCPD_C0CCP1_A :: CCPD_C0CCP1_INPUT , true => CCPD_C0CCP1_A :: CCPD_C0CCP1_OUTPUT , } } # [doc = "INPUT"]
# [inline (always)]
pub fn is_ccpd_c0ccp1_input (& self) -> bool { * self == CCPD_C0CCP1_A :: CCPD_C0CCP1_INPUT } # [doc = "OUTPUT"]
# [inline (always)]
pub fn is_ccpd_c0ccp1_output (& self) -> bool { * self == CCPD_C0CCP1_A :: CCPD_C0CCP1_OUTPUT } } # [doc = "Field `CCPD_C0CCP1` writer - Counter CCP1"]
pub type CCPD_C0CCP1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CCPD_C0CCP1_A > ; impl < 'a , REG , const O : u8 > CCPD_C0CCP1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "INPUT"]
# [inline (always)]
pub fn ccpd_c0ccp1_input (self) -> & 'a mut crate :: W < REG > { self . variant (CCPD_C0CCP1_A :: CCPD_C0CCP1_INPUT) } # [doc = "OUTPUT"]
# [inline (always)]
pub fn ccpd_c0ccp1_output (self) -> & 'a mut crate :: W < REG > { self . variant (CCPD_C0CCP1_A :: CCPD_C0CCP1_OUTPUT) } } impl R { # [doc = "Bit 0 - Counter CCP0"]
# [inline (always)]
pub fn ccpd_c0ccp0 (& self) -> CCPD_C0CCP0_R { CCPD_C0CCP0_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Counter CCP1"]
# [inline (always)]
pub fn ccpd_c0ccp1 (& self) -> CCPD_C0CCP1_R { CCPD_C0CCP1_R :: new (((self . bits >> 1) & 1) != 0) } } impl W { # [doc = "Bit 0 - Counter CCP0"]
# [inline (always)]
# [must_use]
pub fn ccpd_c0ccp0 (& mut self) -> CCPD_C0CCP0_W < CCPD_SPEC , 0 > { CCPD_C0CCP0_W :: new (self) } # [doc = "Bit 1 - Counter CCP1"]
# [inline (always)]
# [must_use]
pub fn ccpd_c0ccp1 (& mut self) -> CCPD_C0CCP1_W < CCPD_SPEC , 1 > { CCPD_C0CCP1_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "CCP Direction\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ccpd::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ccpd::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CCPD_SPEC ; impl crate :: RegisterSpec for CCPD_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ccpd::R`](R) reader structure"]
impl crate :: Readable for CCPD_SPEC { } # [doc = "`write(|w| ..)` method takes [`ccpd::W`](W) writer structure"]
impl crate :: Writable for CCPD_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CCPD to value 0"]
impl crate :: Resettable for CCPD_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "ODIS (rw) register accessor: Output Disable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`odis::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`odis::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@odis`]
module"]
pub type ODIS = crate :: Reg < odis :: ODIS_SPEC > ; # [doc = "Output Disable"]
pub mod odis { # [doc = "Register `ODIS` reader"]
pub type R = crate :: R < ODIS_SPEC > ; # [doc = "Register `ODIS` writer"]
pub type W = crate :: W < ODIS_SPEC > ; # [doc = "Field `ODIS_C0CCP0` reader - Counter CCP0 Disable Mask Defines whether CCP0 of Counter n is forced low or not"]
pub type ODIS_C0CCP0_R = crate :: BitReader < ODIS_C0CCP0_A > ; # [doc = "Counter CCP0 Disable Mask Defines whether CCP0 of Counter n is forced low or not\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ODIS_C0CCP0_A { # [doc = "0: CCP_OUTPUT_OCTL"]
ODIS_C0CCP0_CCP_OUTPUT_OCTL = 0 , # [doc = "1: CCP_OUTPUT_LOW"]
ODIS_C0CCP0_CCP_OUTPUT_LOW = 1 , } impl From < ODIS_C0CCP0_A > for bool { # [inline (always)]
fn from (variant : ODIS_C0CCP0_A) -> Self { variant as u8 != 0 } } impl ODIS_C0CCP0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> ODIS_C0CCP0_A { match self . bits { false => ODIS_C0CCP0_A :: ODIS_C0CCP0_CCP_OUTPUT_OCTL , true => ODIS_C0CCP0_A :: ODIS_C0CCP0_CCP_OUTPUT_LOW , } } # [doc = "CCP_OUTPUT_OCTL"]
# [inline (always)]
pub fn is_odis_c0ccp0_ccp_output_octl (& self) -> bool { * self == ODIS_C0CCP0_A :: ODIS_C0CCP0_CCP_OUTPUT_OCTL } # [doc = "CCP_OUTPUT_LOW"]
# [inline (always)]
pub fn is_odis_c0ccp0_ccp_output_low (& self) -> bool { * self == ODIS_C0CCP0_A :: ODIS_C0CCP0_CCP_OUTPUT_LOW } } # [doc = "Field `ODIS_C0CCP0` writer - Counter CCP0 Disable Mask Defines whether CCP0 of Counter n is forced low or not"]
pub type ODIS_C0CCP0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ODIS_C0CCP0_A > ; impl < 'a , REG , const O : u8 > ODIS_C0CCP0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CCP_OUTPUT_OCTL"]
# [inline (always)]
pub fn odis_c0ccp0_ccp_output_octl (self) -> & 'a mut crate :: W < REG > { self . variant (ODIS_C0CCP0_A :: ODIS_C0CCP0_CCP_OUTPUT_OCTL) } # [doc = "CCP_OUTPUT_LOW"]
# [inline (always)]
pub fn odis_c0ccp0_ccp_output_low (self) -> & 'a mut crate :: W < REG > { self . variant (ODIS_C0CCP0_A :: ODIS_C0CCP0_CCP_OUTPUT_LOW) } } # [doc = "Field `ODIS_C0CCP1` reader - Counter CCP1 Disable Mask Defines whether CCP0 of Counter n is forced low or not"]
pub type ODIS_C0CCP1_R = crate :: BitReader < ODIS_C0CCP1_A > ; # [doc = "Counter CCP1 Disable Mask Defines whether CCP0 of Counter n is forced low or not\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ODIS_C0CCP1_A { # [doc = "0: CCP_OUTPUT_OCTL"]
ODIS_C0CCP1_CCP_OUTPUT_OCTL = 0 , # [doc = "1: CCP_OUTPUT_LOW"]
ODIS_C0CCP1_CCP_OUTPUT_LOW = 1 , } impl From < ODIS_C0CCP1_A > for bool { # [inline (always)]
fn from (variant : ODIS_C0CCP1_A) -> Self { variant as u8 != 0 } } impl ODIS_C0CCP1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> ODIS_C0CCP1_A { match self . bits { false => ODIS_C0CCP1_A :: ODIS_C0CCP1_CCP_OUTPUT_OCTL , true => ODIS_C0CCP1_A :: ODIS_C0CCP1_CCP_OUTPUT_LOW , } } # [doc = "CCP_OUTPUT_OCTL"]
# [inline (always)]
pub fn is_odis_c0ccp1_ccp_output_octl (& self) -> bool { * self == ODIS_C0CCP1_A :: ODIS_C0CCP1_CCP_OUTPUT_OCTL } # [doc = "CCP_OUTPUT_LOW"]
# [inline (always)]
pub fn is_odis_c0ccp1_ccp_output_low (& self) -> bool { * self == ODIS_C0CCP1_A :: ODIS_C0CCP1_CCP_OUTPUT_LOW } } # [doc = "Field `ODIS_C0CCP1` writer - Counter CCP1 Disable Mask Defines whether CCP0 of Counter n is forced low or not"]
pub type ODIS_C0CCP1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ODIS_C0CCP1_A > ; impl < 'a , REG , const O : u8 > ODIS_C0CCP1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CCP_OUTPUT_OCTL"]
# [inline (always)]
pub fn odis_c0ccp1_ccp_output_octl (self) -> & 'a mut crate :: W < REG > { self . variant (ODIS_C0CCP1_A :: ODIS_C0CCP1_CCP_OUTPUT_OCTL) } # [doc = "CCP_OUTPUT_LOW"]
# [inline (always)]
pub fn odis_c0ccp1_ccp_output_low (self) -> & 'a mut crate :: W < REG > { self . variant (ODIS_C0CCP1_A :: ODIS_C0CCP1_CCP_OUTPUT_LOW) } } impl R { # [doc = "Bit 0 - Counter CCP0 Disable Mask Defines whether CCP0 of Counter n is forced low or not"]
# [inline (always)]
pub fn odis_c0ccp0 (& self) -> ODIS_C0CCP0_R { ODIS_C0CCP0_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Counter CCP1 Disable Mask Defines whether CCP0 of Counter n is forced low or not"]
# [inline (always)]
pub fn odis_c0ccp1 (& self) -> ODIS_C0CCP1_R { ODIS_C0CCP1_R :: new (((self . bits >> 1) & 1) != 0) } } impl W { # [doc = "Bit 0 - Counter CCP0 Disable Mask Defines whether CCP0 of Counter n is forced low or not"]
# [inline (always)]
# [must_use]
pub fn odis_c0ccp0 (& mut self) -> ODIS_C0CCP0_W < ODIS_SPEC , 0 > { ODIS_C0CCP0_W :: new (self) } # [doc = "Bit 1 - Counter CCP1 Disable Mask Defines whether CCP0 of Counter n is forced low or not"]
# [inline (always)]
# [must_use]
pub fn odis_c0ccp1 (& mut self) -> ODIS_C0CCP1_W < ODIS_SPEC , 1 > { ODIS_C0CCP1_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Output Disable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`odis::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`odis::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ODIS_SPEC ; impl crate :: RegisterSpec for ODIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`odis::R`](R) reader structure"]
impl crate :: Readable for ODIS_SPEC { } # [doc = "`write(|w| ..)` method takes [`odis::W`](W) writer structure"]
impl crate :: Writable for ODIS_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets ODIS to value 0"]
impl crate :: Resettable for ODIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CCLKCTL (rw) register accessor: Counter Clock Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cclkctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cclkctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cclkctl`]
module"]
pub type CCLKCTL = crate :: Reg < cclkctl :: CCLKCTL_SPEC > ; # [doc = "Counter Clock Control Register"]
pub mod cclkctl { # [doc = "Register `CCLKCTL` reader"]
pub type R = crate :: R < CCLKCTL_SPEC > ; # [doc = "Register `CCLKCTL` writer"]
pub type W = crate :: W < CCLKCTL_SPEC > ; # [doc = "Field `CCLKCTL_CLKEN` reader - Clock Enable Disables the clock gating to the module. SW has to explicitly program the value to 0 to gate the clock."]
pub type CCLKCTL_CLKEN_R = crate :: BitReader < CCLKCTL_CLKEN_A > ; # [doc = "Clock Enable Disables the clock gating to the module. SW has to explicitly program the value to 0 to gate the clock.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CCLKCTL_CLKEN_A { # [doc = "0: DISABLED"]
CCLKCTL_CLKEN_DISABLED = 0 , # [doc = "1: ENABLED"]
CCLKCTL_CLKEN_ENABLED = 1 , } impl From < CCLKCTL_CLKEN_A > for bool { # [inline (always)]
fn from (variant : CCLKCTL_CLKEN_A) -> Self { variant as u8 != 0 } } impl CCLKCTL_CLKEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCLKCTL_CLKEN_A { match self . bits { false => CCLKCTL_CLKEN_A :: CCLKCTL_CLKEN_DISABLED , true => CCLKCTL_CLKEN_A :: CCLKCTL_CLKEN_ENABLED , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_cclkctl_clken_disabled (& self) -> bool { * self == CCLKCTL_CLKEN_A :: CCLKCTL_CLKEN_DISABLED } # [doc = "ENABLED"]
# [inline (always)]
pub fn is_cclkctl_clken_enabled (& self) -> bool { * self == CCLKCTL_CLKEN_A :: CCLKCTL_CLKEN_ENABLED } } # [doc = "Field `CCLKCTL_CLKEN` writer - Clock Enable Disables the clock gating to the module. SW has to explicitly program the value to 0 to gate the clock."]
pub type CCLKCTL_CLKEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CCLKCTL_CLKEN_A > ; impl < 'a , REG , const O : u8 > CCLKCTL_CLKEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn cclkctl_clken_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCLKCTL_CLKEN_A :: CCLKCTL_CLKEN_DISABLED) } # [doc = "ENABLED"]
# [inline (always)]
pub fn cclkctl_clken_enabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCLKCTL_CLKEN_A :: CCLKCTL_CLKEN_ENABLED) } } impl R { # [doc = "Bit 0 - Clock Enable Disables the clock gating to the module. SW has to explicitly program the value to 0 to gate the clock."]
# [inline (always)]
pub fn cclkctl_clken (& self) -> CCLKCTL_CLKEN_R { CCLKCTL_CLKEN_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - Clock Enable Disables the clock gating to the module. SW has to explicitly program the value to 0 to gate the clock."]
# [inline (always)]
# [must_use]
pub fn cclkctl_clken (& mut self) -> CCLKCTL_CLKEN_W < CCLKCTL_SPEC , 0 > { CCLKCTL_CLKEN_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Counter Clock Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cclkctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cclkctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CCLKCTL_SPEC ; impl crate :: RegisterSpec for CCLKCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cclkctl::R`](R) reader structure"]
impl crate :: Readable for CCLKCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`cclkctl::W`](W) writer structure"]
impl crate :: Writable for CCLKCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CCLKCTL to value 0"]
impl crate :: Resettable for CCLKCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CPS (rw) register accessor: Clock Prescale Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cps::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cps::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cps`]
module"]
pub type CPS = crate :: Reg < cps :: CPS_SPEC > ; # [doc = "Clock Prescale Register"]
pub mod cps { # [doc = "Register `CPS` reader"]
pub type R = crate :: R < CPS_SPEC > ; # [doc = "Register `CPS` writer"]
pub type W = crate :: W < CPS_SPEC > ; # [doc = "Field `CPS_PCNT` reader - Pre-Scale Count This field specifies the pre-scale count value. The selected TIMCLK source is divided by a value of (PCNT+1). A PCNT value of 0 divides TIMCLK by 1, effectively bypassing the divider. A PCNT value of greater than 0 divides the TIMCLK source generating a slower clock"]
pub type CPS_PCNT_R = crate :: FieldReader ; # [doc = "Field `CPS_PCNT` writer - Pre-Scale Count This field specifies the pre-scale count value. The selected TIMCLK source is divided by a value of (PCNT+1). A PCNT value of 0 divides TIMCLK by 1, effectively bypassing the divider. A PCNT value of greater than 0 divides the TIMCLK source generating a slower clock"]
pub type CPS_PCNT_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O > ; impl R { # [doc = "Bits 0:7 - Pre-Scale Count This field specifies the pre-scale count value. The selected TIMCLK source is divided by a value of (PCNT+1). A PCNT value of 0 divides TIMCLK by 1, effectively bypassing the divider. A PCNT value of greater than 0 divides the TIMCLK source generating a slower clock"]
# [inline (always)]
pub fn cps_pcnt (& self) -> CPS_PCNT_R { CPS_PCNT_R :: new ((self . bits & 0xff) as u8) } } impl W { # [doc = "Bits 0:7 - Pre-Scale Count This field specifies the pre-scale count value. The selected TIMCLK source is divided by a value of (PCNT+1). A PCNT value of 0 divides TIMCLK by 1, effectively bypassing the divider. A PCNT value of greater than 0 divides the TIMCLK source generating a slower clock"]
# [inline (always)]
# [must_use]
pub fn cps_pcnt (& mut self) -> CPS_PCNT_W < CPS_SPEC , 0 > { CPS_PCNT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Clock Prescale Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cps::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cps::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CPS_SPEC ; impl crate :: RegisterSpec for CPS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cps::R`](R) reader structure"]
impl crate :: Readable for CPS_SPEC { } # [doc = "`write(|w| ..)` method takes [`cps::W`](W) writer structure"]
impl crate :: Writable for CPS_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CPS to value 0"]
impl crate :: Resettable for CPS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CPSV (r) register accessor: Clock prescale count status register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cpsv::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cpsv`]
module"]
pub type CPSV = crate :: Reg < cpsv :: CPSV_SPEC > ; # [doc = "Clock prescale count status register"]
pub mod cpsv { # [doc = "Register `CPSV` reader"]
pub type R = crate :: R < CPSV_SPEC > ; # [doc = "Field `CPSV_CPSVAL` reader - Current Prescale Count Value"]
pub type CPSV_CPSVAL_R = crate :: FieldReader ; impl R { # [doc = "Bits 0:7 - Current Prescale Count Value"]
# [inline (always)]
pub fn cpsv_cpsval (& self) -> CPSV_CPSVAL_R { CPSV_CPSVAL_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Clock prescale count status register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cpsv::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CPSV_SPEC ; impl crate :: RegisterSpec for CPSV_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cpsv::R`](R) reader structure"]
impl crate :: Readable for CPSV_SPEC { } # [doc = "`reset()` method sets CPSV to value 0"]
impl crate :: Resettable for CPSV_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTTRIGCTL (rw) register accessor: Timer Cross Trigger Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cttrigctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cttrigctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cttrigctl`]
module"]
pub type CTTRIGCTL = crate :: Reg < cttrigctl :: CTTRIGCTL_SPEC > ; # [doc = "Timer Cross Trigger Control Register"]
pub mod cttrigctl { # [doc = "Register `CTTRIGCTL` reader"]
pub type R = crate :: R < CTTRIGCTL_SPEC > ; # [doc = "Register `CTTRIGCTL` writer"]
pub type W = crate :: W < CTTRIGCTL_SPEC > ; # [doc = "Field `CTTRIGCTL_CTEN` reader - Timer Cross trigger enable. This field is used to enable whether the SW or HW logic can generate a timer cross trigger event in the system. These cross triggers are connected to the respective timer trigger in of the other timer IPs in the SOC power domain. The timer cross trigger is essentially the combined logic of the HW and SW conditions controlling EN bit in the CTRCTL register."]
pub type CTTRIGCTL_CTEN_R = crate :: BitReader < CTTRIGCTL_CTEN_A > ; # [doc = "Timer Cross trigger enable. This field is used to enable whether the SW or HW logic can generate a timer cross trigger event in the system. These cross triggers are connected to the respective timer trigger in of the other timer IPs in the SOC power domain. The timer cross trigger is essentially the combined logic of the HW and SW conditions controlling EN bit in the CTRCTL register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTTRIGCTL_CTEN_A { # [doc = "0: DISABLED"]
CTTRIGCTL_CTEN_DISABLED = 0 , # [doc = "1: ENABLE"]
CTTRIGCTL_CTEN_ENABLE = 1 , } impl From < CTTRIGCTL_CTEN_A > for bool { # [inline (always)]
fn from (variant : CTTRIGCTL_CTEN_A) -> Self { variant as u8 != 0 } } impl CTTRIGCTL_CTEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTTRIGCTL_CTEN_A { match self . bits { false => CTTRIGCTL_CTEN_A :: CTTRIGCTL_CTEN_DISABLED , true => CTTRIGCTL_CTEN_A :: CTTRIGCTL_CTEN_ENABLE , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_cttrigctl_cten_disabled (& self) -> bool { * self == CTTRIGCTL_CTEN_A :: CTTRIGCTL_CTEN_DISABLED } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_cttrigctl_cten_enable (& self) -> bool { * self == CTTRIGCTL_CTEN_A :: CTTRIGCTL_CTEN_ENABLE } } # [doc = "Field `CTTRIGCTL_CTEN` writer - Timer Cross trigger enable. This field is used to enable whether the SW or HW logic can generate a timer cross trigger event in the system. These cross triggers are connected to the respective timer trigger in of the other timer IPs in the SOC power domain. The timer cross trigger is essentially the combined logic of the HW and SW conditions controlling EN bit in the CTRCTL register."]
pub type CTTRIGCTL_CTEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTTRIGCTL_CTEN_A > ; impl < 'a , REG , const O : u8 > CTTRIGCTL_CTEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn cttrigctl_cten_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_CTEN_A :: CTTRIGCTL_CTEN_DISABLED) } # [doc = "ENABLE"]
# [inline (always)]
pub fn cttrigctl_cten_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_CTEN_A :: CTTRIGCTL_CTEN_ENABLE) } } # [doc = "Field `CTTRIGCTL_EVTCTEN` reader - Enable the Input Trigger Conditions to the Timer module as a condition for Cross Triggers. Refer Figure 8 Cross Trigger Generation Path"]
pub type CTTRIGCTL_EVTCTEN_R = crate :: BitReader < CTTRIGCTL_EVTCTEN_A > ; # [doc = "Enable the Input Trigger Conditions to the Timer module as a condition for Cross Triggers. Refer Figure 8 Cross Trigger Generation Path\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTTRIGCTL_EVTCTEN_A { # [doc = "0: DISABLED"]
CTTRIGCTL_EVTCTEN_DISABLED = 0 , # [doc = "1: ENABLE"]
CTTRIGCTL_EVTCTEN_ENABLE = 1 , } impl From < CTTRIGCTL_EVTCTEN_A > for bool { # [inline (always)]
fn from (variant : CTTRIGCTL_EVTCTEN_A) -> Self { variant as u8 != 0 } } impl CTTRIGCTL_EVTCTEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTTRIGCTL_EVTCTEN_A { match self . bits { false => CTTRIGCTL_EVTCTEN_A :: CTTRIGCTL_EVTCTEN_DISABLED , true => CTTRIGCTL_EVTCTEN_A :: CTTRIGCTL_EVTCTEN_ENABLE , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_cttrigctl_evtcten_disabled (& self) -> bool { * self == CTTRIGCTL_EVTCTEN_A :: CTTRIGCTL_EVTCTEN_DISABLED } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_cttrigctl_evtcten_enable (& self) -> bool { * self == CTTRIGCTL_EVTCTEN_A :: CTTRIGCTL_EVTCTEN_ENABLE } } # [doc = "Field `CTTRIGCTL_EVTCTEN` writer - Enable the Input Trigger Conditions to the Timer module as a condition for Cross Triggers. Refer Figure 8 Cross Trigger Generation Path"]
pub type CTTRIGCTL_EVTCTEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTTRIGCTL_EVTCTEN_A > ; impl < 'a , REG , const O : u8 > CTTRIGCTL_EVTCTEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn cttrigctl_evtcten_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTEN_A :: CTTRIGCTL_EVTCTEN_DISABLED) } # [doc = "ENABLE"]
# [inline (always)]
pub fn cttrigctl_evtcten_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTEN_A :: CTTRIGCTL_EVTCTEN_ENABLE) } } # [doc = "Field `CTTRIGCTL_EVTCTTRIGSEL` reader - Used to Select the subscriber port that should be used for input cross trigger. Refer Figure 8 Cross Trigger Generation Path"]
pub type CTTRIGCTL_EVTCTTRIGSEL_R = crate :: FieldReader < CTTRIGCTL_EVTCTTRIGSEL_A > ; # [doc = "Used to Select the subscriber port that should be used for input cross trigger. Refer Figure 8 Cross Trigger Generation Path\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTTRIGCTL_EVTCTTRIGSEL_A { # [doc = "0: FSUB0"]
CTTRIGCTL_EVTCTTRIGSEL_FSUB0 = 0 , # [doc = "1: FSUB1"]
CTTRIGCTL_EVTCTTRIGSEL_FSUB1 = 1 , # [doc = "2: Z"]
CTTRIGCTL_EVTCTTRIGSEL_Z = 2 , # [doc = "3: L"]
CTTRIGCTL_EVTCTTRIGSEL_L = 3 , # [doc = "4: CCD0"]
CTTRIGCTL_EVTCTTRIGSEL_CCD0 = 4 , # [doc = "5: CCD1"]
CTTRIGCTL_EVTCTTRIGSEL_CCD1 = 5 , # [doc = "6: CCD2"]
CTTRIGCTL_EVTCTTRIGSEL_CCD2 = 6 , # [doc = "7: CCD3"]
CTTRIGCTL_EVTCTTRIGSEL_CCD3 = 7 , # [doc = "8: CCU0"]
CTTRIGCTL_EVTCTTRIGSEL_CCU0 = 8 , # [doc = "9: CCU1"]
CTTRIGCTL_EVTCTTRIGSEL_CCU1 = 9 , # [doc = "10: CCU2"]
CTTRIGCTL_EVTCTTRIGSEL_CCU2 = 10 , # [doc = "11: CCU3"]
CTTRIGCTL_EVTCTTRIGSEL_CCU3 = 11 , } impl From < CTTRIGCTL_EVTCTTRIGSEL_A > for u8 { # [inline (always)]
fn from (variant : CTTRIGCTL_EVTCTTRIGSEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTTRIGCTL_EVTCTTRIGSEL_A { type Ux = u8 ; } impl CTTRIGCTL_EVTCTTRIGSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTTRIGCTL_EVTCTTRIGSEL_A > { match self . bits { 0 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_FSUB0) , 1 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_FSUB1) , 2 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_Z) , 3 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_L) , 4 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD0) , 5 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD1) , 6 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD2) , 7 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD3) , 8 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU0) , 9 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU1) , 10 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU2) , 11 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU3) , _ => None , } } # [doc = "FSUB0"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_fsub0 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_FSUB0 } # [doc = "FSUB1"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_fsub1 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_FSUB1 } # [doc = "Z"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_z (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_Z } # [doc = "L"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_l (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_L } # [doc = "CCD0"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_ccd0 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD0 } # [doc = "CCD1"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_ccd1 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD1 } # [doc = "CCD2"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_ccd2 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD2 } # [doc = "CCD3"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_ccd3 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD3 } # [doc = "CCU0"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_ccu0 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU0 } # [doc = "CCU1"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_ccu1 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU1 } # [doc = "CCU2"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_ccu2 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU2 } # [doc = "CCU3"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_ccu3 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU3 } } # [doc = "Field `CTTRIGCTL_EVTCTTRIGSEL` writer - Used to Select the subscriber port that should be used for input cross trigger. Refer Figure 8 Cross Trigger Generation Path"]
pub type CTTRIGCTL_EVTCTTRIGSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 4 , O , CTTRIGCTL_EVTCTTRIGSEL_A > ; impl < 'a , REG , const O : u8 > CTTRIGCTL_EVTCTTRIGSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "FSUB0"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_fsub0 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_FSUB0) } # [doc = "FSUB1"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_fsub1 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_FSUB1) } # [doc = "Z"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_z (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_Z) } # [doc = "L"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_l (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_L) } # [doc = "CCD0"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_ccd0 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD0) } # [doc = "CCD1"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_ccd1 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD1) } # [doc = "CCD2"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_ccd2 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD2) } # [doc = "CCD3"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_ccd3 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD3) } # [doc = "CCU0"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_ccu0 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU0) } # [doc = "CCU1"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_ccu1 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU1) } # [doc = "CCU2"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_ccu2 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU2) } # [doc = "CCU3"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_ccu3 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU3) } } impl R { # [doc = "Bit 0 - Timer Cross trigger enable. This field is used to enable whether the SW or HW logic can generate a timer cross trigger event in the system. These cross triggers are connected to the respective timer trigger in of the other timer IPs in the SOC power domain. The timer cross trigger is essentially the combined logic of the HW and SW conditions controlling EN bit in the CTRCTL register."]
# [inline (always)]
pub fn cttrigctl_cten (& self) -> CTTRIGCTL_CTEN_R { CTTRIGCTL_CTEN_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Enable the Input Trigger Conditions to the Timer module as a condition for Cross Triggers. Refer Figure 8 Cross Trigger Generation Path"]
# [inline (always)]
pub fn cttrigctl_evtcten (& self) -> CTTRIGCTL_EVTCTEN_R { CTTRIGCTL_EVTCTEN_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bits 16:19 - Used to Select the subscriber port that should be used for input cross trigger. Refer Figure 8 Cross Trigger Generation Path"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel (& self) -> CTTRIGCTL_EVTCTTRIGSEL_R { CTTRIGCTL_EVTCTTRIGSEL_R :: new (((self . bits >> 16) & 0x0f) as u8) } } impl W { # [doc = "Bit 0 - Timer Cross trigger enable. This field is used to enable whether the SW or HW logic can generate a timer cross trigger event in the system. These cross triggers are connected to the respective timer trigger in of the other timer IPs in the SOC power domain. The timer cross trigger is essentially the combined logic of the HW and SW conditions controlling EN bit in the CTRCTL register."]
# [inline (always)]
# [must_use]
pub fn cttrigctl_cten (& mut self) -> CTTRIGCTL_CTEN_W < CTTRIGCTL_SPEC , 0 > { CTTRIGCTL_CTEN_W :: new (self) } # [doc = "Bit 1 - Enable the Input Trigger Conditions to the Timer module as a condition for Cross Triggers. Refer Figure 8 Cross Trigger Generation Path"]
# [inline (always)]
# [must_use]
pub fn cttrigctl_evtcten (& mut self) -> CTTRIGCTL_EVTCTEN_W < CTTRIGCTL_SPEC , 1 > { CTTRIGCTL_EVTCTEN_W :: new (self) } # [doc = "Bits 16:19 - Used to Select the subscriber port that should be used for input cross trigger. Refer Figure 8 Cross Trigger Generation Path"]
# [inline (always)]
# [must_use]
pub fn cttrigctl_evtcttrigsel (& mut self) -> CTTRIGCTL_EVTCTTRIGSEL_W < CTTRIGCTL_SPEC , 16 > { CTTRIGCTL_EVTCTTRIGSEL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Timer Cross Trigger Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cttrigctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cttrigctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTTRIGCTL_SPEC ; impl crate :: RegisterSpec for CTTRIGCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cttrigctl::R`](R) reader structure"]
impl crate :: Readable for CTTRIGCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`cttrigctl::W`](W) writer structure"]
impl crate :: Writable for CTTRIGCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTTRIGCTL to value 0"]
impl crate :: Resettable for CTTRIGCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTTRIG (w) register accessor: Timer Cross Trigger Register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cttrig::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cttrig`]
module"]
pub type CTTRIG = crate :: Reg < cttrig :: CTTRIG_SPEC > ; # [doc = "Timer Cross Trigger Register"]
pub mod cttrig { # [doc = "Register `CTTRIG` writer"]
pub type W = crate :: W < CTTRIG_SPEC > ; # [doc = "Generate Cross Trigger This bit when programmed will generate a synchronized trigger condition all the cross trigger enabled Timer instances including current timer instance.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTTRIG_TRIG_AW { # [doc = "0: DISABLED"]
CTTRIG_TRIG_DISABLED = 0 , # [doc = "1: GENERATE"]
CTTRIG_TRIG_GENERATE = 1 , } impl From < CTTRIG_TRIG_AW > for bool { # [inline (always)]
fn from (variant : CTTRIG_TRIG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `CTTRIG_TRIG` writer - Generate Cross Trigger This bit when programmed will generate a synchronized trigger condition all the cross trigger enabled Timer instances including current timer instance."]
pub type CTTRIG_TRIG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTTRIG_TRIG_AW > ; impl < 'a , REG , const O : u8 > CTTRIG_TRIG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn cttrig_trig_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIG_TRIG_AW :: CTTRIG_TRIG_DISABLED) } # [doc = "GENERATE"]
# [inline (always)]
pub fn cttrig_trig_generate (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIG_TRIG_AW :: CTTRIG_TRIG_GENERATE) } } impl W { # [doc = "Bit 0 - Generate Cross Trigger This bit when programmed will generate a synchronized trigger condition all the cross trigger enabled Timer instances including current timer instance."]
# [inline (always)]
# [must_use]
pub fn cttrig_trig (& mut self) -> CTTRIG_TRIG_W < CTTRIG_SPEC , 0 > { CTTRIG_TRIG_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Timer Cross Trigger Register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cttrig::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTTRIG_SPEC ; impl crate :: RegisterSpec for CTTRIG_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`cttrig::W`](W) writer structure"]
impl crate :: Writable for CTTRIG_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTTRIG to value 0"]
impl crate :: Resettable for CTTRIG_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTR (rw) register accessor: Counter Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctr::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctr`]
module"]
pub type CTR = crate :: Reg < ctr :: CTR_SPEC > ; # [doc = "Counter Register"]
pub mod ctr { # [doc = "Register `CTR` reader"]
pub type R = crate :: R < CTR_SPEC > ; # [doc = "Register `CTR` writer"]
pub type W = crate :: W < CTR_SPEC > ; # [doc = "Field `CTR_CCTR` reader - Current Counter value"]
pub type CTR_CCTR_R = crate :: FieldReader < u16 > ; # [doc = "Field `CTR_CCTR` writer - Current Counter value"]
pub type CTR_CCTR_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 16 , O , u16 > ; impl R { # [doc = "Bits 0:15 - Current Counter value"]
# [inline (always)]
pub fn ctr_cctr (& self) -> CTR_CCTR_R { CTR_CCTR_R :: new ((self . bits & 0xffff) as u16) } } impl W { # [doc = "Bits 0:15 - Current Counter value"]
# [inline (always)]
# [must_use]
pub fn ctr_cctr (& mut self) -> CTR_CCTR_W < CTR_SPEC , 0 > { CTR_CCTR_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Counter Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctr::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctr::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTR_SPEC ; impl crate :: RegisterSpec for CTR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ctr::R`](R) reader structure"]
impl crate :: Readable for CTR_SPEC { } # [doc = "`write(|w| ..)` method takes [`ctr::W`](W) writer structure"]
impl crate :: Writable for CTR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTR to value 0"]
impl crate :: Resettable for CTR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTRCTL (rw) register accessor: Counter Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctrctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctrctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctrctl`]
module"]
pub type CTRCTL = crate :: Reg < ctrctl :: CTRCTL_SPEC > ; # [doc = "Counter Control Register"]
pub mod ctrctl { # [doc = "Register `CTRCTL` reader"]
pub type R = crate :: R < CTRCTL_SPEC > ; # [doc = "Register `CTRCTL` writer"]
pub type W = crate :: W < CTRCTL_SPEC > ; # [doc = "Field `CTRCTL_EN` reader - Counter Enable. This bit allows the timer to advance This bit is automatically cleared if REPEAT=0 (do not automatically reload) and the counter value equals zero. CPU Write: A register write that sets the EN bit, the counter value is set per the CVAE value. Hardware: This bit may also be set as the result of an LCOND or ZCOND condition being met and the counter value changed to the load value or zero value, respectively."]
pub type CTRCTL_EN_R = crate :: BitReader < CTRCTL_EN_A > ; # [doc = "Counter Enable. This bit allows the timer to advance This bit is automatically cleared if REPEAT=0 (do not automatically reload) and the counter value equals zero. CPU Write: A register write that sets the EN bit, the counter value is set per the CVAE value. Hardware: This bit may also be set as the result of an LCOND or ZCOND condition being met and the counter value changed to the load value or zero value, respectively.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTRCTL_EN_A { # [doc = "0: DISABLED"]
CTRCTL_EN_DISABLED = 0 , # [doc = "1: ENABLED"]
CTRCTL_EN_ENABLED = 1 , } impl From < CTRCTL_EN_A > for bool { # [inline (always)]
fn from (variant : CTRCTL_EN_A) -> Self { variant as u8 != 0 } } impl CTRCTL_EN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTRCTL_EN_A { match self . bits { false => CTRCTL_EN_A :: CTRCTL_EN_DISABLED , true => CTRCTL_EN_A :: CTRCTL_EN_ENABLED , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ctrctl_en_disabled (& self) -> bool { * self == CTRCTL_EN_A :: CTRCTL_EN_DISABLED } # [doc = "ENABLED"]
# [inline (always)]
pub fn is_ctrctl_en_enabled (& self) -> bool { * self == CTRCTL_EN_A :: CTRCTL_EN_ENABLED } } # [doc = "Field `CTRCTL_EN` writer - Counter Enable. This bit allows the timer to advance This bit is automatically cleared if REPEAT=0 (do not automatically reload) and the counter value equals zero. CPU Write: A register write that sets the EN bit, the counter value is set per the CVAE value. Hardware: This bit may also be set as the result of an LCOND or ZCOND condition being met and the counter value changed to the load value or zero value, respectively."]
pub type CTRCTL_EN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTRCTL_EN_A > ; impl < 'a , REG , const O : u8 > CTRCTL_EN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn ctrctl_en_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_EN_A :: CTRCTL_EN_DISABLED) } # [doc = "ENABLED"]
# [inline (always)]
pub fn ctrctl_en_enabled (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_EN_A :: CTRCTL_EN_ENABLED) } } # [doc = "Field `CTRCTL_REPEAT` reader - Repeat. The repeat bit controls whether the counter continues to advance following a zero event, or the exiting of a debug or fault condition. If counting down, a zero event is followed by a load at the next advance condition. If counting up-down, a zero event is followed by an advance event (+1). The intent of encoding 3 is that if the debug condition is in effect, the generation of the load pulse is deferred until the debug condition is over. This allows the counter to reach zero before counting is suspended."]
pub type CTRCTL_REPEAT_R = crate :: FieldReader < CTRCTL_REPEAT_A > ; # [doc = "Repeat. The repeat bit controls whether the counter continues to advance following a zero event, or the exiting of a debug or fault condition. If counting down, a zero event is followed by a load at the next advance condition. If counting up-down, a zero event is followed by an advance event (+1). The intent of encoding 3 is that if the debug condition is in effect, the generation of the load pulse is deferred until the debug condition is over. This allows the counter to reach zero before counting is suspended.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTRCTL_REPEAT_A { # [doc = "0: REPEAT_0"]
CTRCTL_REPEAT_REPEAT_0 = 0 , # [doc = "1: REPEAT_1"]
CTRCTL_REPEAT_REPEAT_1 = 1 , # [doc = "2: REPEAT_2"]
CTRCTL_REPEAT_REPEAT_2 = 2 , # [doc = "3: REPEAT_3"]
CTRCTL_REPEAT_REPEAT_3 = 3 , # [doc = "4: REPEAT_4"]
CTRCTL_REPEAT_REPEAT_4 = 4 , } impl From < CTRCTL_REPEAT_A > for u8 { # [inline (always)]
fn from (variant : CTRCTL_REPEAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTRCTL_REPEAT_A { type Ux = u8 ; } impl CTRCTL_REPEAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTRCTL_REPEAT_A > { match self . bits { 0 => Some (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_0) , 1 => Some (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_1) , 2 => Some (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_2) , 3 => Some (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_3) , 4 => Some (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_4) , _ => None , } } # [doc = "REPEAT_0"]
# [inline (always)]
pub fn is_ctrctl_repeat_repeat_0 (& self) -> bool { * self == CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_0 } # [doc = "REPEAT_1"]
# [inline (always)]
pub fn is_ctrctl_repeat_repeat_1 (& self) -> bool { * self == CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_1 } # [doc = "REPEAT_2"]
# [inline (always)]
pub fn is_ctrctl_repeat_repeat_2 (& self) -> bool { * self == CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_2 } # [doc = "REPEAT_3"]
# [inline (always)]
pub fn is_ctrctl_repeat_repeat_3 (& self) -> bool { * self == CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_3 } # [doc = "REPEAT_4"]
# [inline (always)]
pub fn is_ctrctl_repeat_repeat_4 (& self) -> bool { * self == CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_4 } } # [doc = "Field `CTRCTL_REPEAT` writer - Repeat. The repeat bit controls whether the counter continues to advance following a zero event, or the exiting of a debug or fault condition. If counting down, a zero event is followed by a load at the next advance condition. If counting up-down, a zero event is followed by an advance event (+1). The intent of encoding 3 is that if the debug condition is in effect, the generation of the load pulse is deferred until the debug condition is over. This allows the counter to reach zero before counting is suspended."]
pub type CTRCTL_REPEAT_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CTRCTL_REPEAT_A > ; impl < 'a , REG , const O : u8 > CTRCTL_REPEAT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "REPEAT_0"]
# [inline (always)]
pub fn ctrctl_repeat_repeat_0 (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_0) } # [doc = "REPEAT_1"]
# [inline (always)]
pub fn ctrctl_repeat_repeat_1 (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_1) } # [doc = "REPEAT_2"]
# [inline (always)]
pub fn ctrctl_repeat_repeat_2 (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_2) } # [doc = "REPEAT_3"]
# [inline (always)]
pub fn ctrctl_repeat_repeat_3 (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_3) } # [doc = "REPEAT_4"]
# [inline (always)]
pub fn ctrctl_repeat_repeat_4 (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_4) } } # [doc = "Field `CTRCTL_CM` reader - Count Mode"]
pub type CTRCTL_CM_R = crate :: FieldReader < CTRCTL_CM_A > ; # [doc = "Count Mode\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTRCTL_CM_A { # [doc = "0: DOWN"]
CTRCTL_CM_DOWN = 0 , # [doc = "1: UP_DOWN"]
CTRCTL_CM_UP_DOWN = 1 , # [doc = "2: UP"]
CTRCTL_CM_UP = 2 , } impl From < CTRCTL_CM_A > for u8 { # [inline (always)]
fn from (variant : CTRCTL_CM_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTRCTL_CM_A { type Ux = u8 ; } impl CTRCTL_CM_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTRCTL_CM_A > { match self . bits { 0 => Some (CTRCTL_CM_A :: CTRCTL_CM_DOWN) , 1 => Some (CTRCTL_CM_A :: CTRCTL_CM_UP_DOWN) , 2 => Some (CTRCTL_CM_A :: CTRCTL_CM_UP) , _ => None , } } # [doc = "DOWN"]
# [inline (always)]
pub fn is_ctrctl_cm_down (& self) -> bool { * self == CTRCTL_CM_A :: CTRCTL_CM_DOWN } # [doc = "UP_DOWN"]
# [inline (always)]
pub fn is_ctrctl_cm_up_down (& self) -> bool { * self == CTRCTL_CM_A :: CTRCTL_CM_UP_DOWN } # [doc = "UP"]
# [inline (always)]
pub fn is_ctrctl_cm_up (& self) -> bool { * self == CTRCTL_CM_A :: CTRCTL_CM_UP } } # [doc = "Field `CTRCTL_CM` writer - Count Mode"]
pub type CTRCTL_CM_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , CTRCTL_CM_A > ; impl < 'a , REG , const O : u8 > CTRCTL_CM_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DOWN"]
# [inline (always)]
pub fn ctrctl_cm_down (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CM_A :: CTRCTL_CM_DOWN) } # [doc = "UP_DOWN"]
# [inline (always)]
pub fn ctrctl_cm_up_down (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CM_A :: CTRCTL_CM_UP_DOWN) } # [doc = "UP"]
# [inline (always)]
pub fn ctrctl_cm_up (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CM_A :: CTRCTL_CM_UP) } } # [doc = "Field `CTRCTL_CLC` reader - Counter Load Control. This field specifies what controls the counter operation with respect to setting the counter to the LD register value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
pub type CTRCTL_CLC_R = crate :: FieldReader < CTRCTL_CLC_A > ; # [doc = "Counter Load Control. This field specifies what controls the counter operation with respect to setting the counter to the LD register value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved.\n\nValue on reset: 7"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTRCTL_CLC_A { # [doc = "0: CCCTL0_LCOND"]
CTRCTL_CLC_CCCTL0_LCOND = 0 , # [doc = "1: CCCTL1_LCOND"]
CTRCTL_CLC_CCCTL1_LCOND = 1 , # [doc = "2: CCCTL2_LCOND"]
CTRCTL_CLC_CCCTL2_LCOND = 2 , # [doc = "3: CCCTL3_LCOND"]
CTRCTL_CLC_CCCTL3_LCOND = 3 , # [doc = "4: QEI_2INP"]
CTRCTL_CLC_QEI_2INP = 4 , # [doc = "5: QEI_3INP"]
CTRCTL_CLC_QEI_3INP = 5 , } impl From < CTRCTL_CLC_A > for u8 { # [inline (always)]
fn from (variant : CTRCTL_CLC_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTRCTL_CLC_A { type Ux = u8 ; } impl CTRCTL_CLC_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTRCTL_CLC_A > { match self . bits { 0 => Some (CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL0_LCOND) , 1 => Some (CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL1_LCOND) , 2 => Some (CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL2_LCOND) , 3 => Some (CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL3_LCOND) , 4 => Some (CTRCTL_CLC_A :: CTRCTL_CLC_QEI_2INP) , 5 => Some (CTRCTL_CLC_A :: CTRCTL_CLC_QEI_3INP) , _ => None , } } # [doc = "CCCTL0_LCOND"]
# [inline (always)]
pub fn is_ctrctl_clc_ccctl0_lcond (& self) -> bool { * self == CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL0_LCOND } # [doc = "CCCTL1_LCOND"]
# [inline (always)]
pub fn is_ctrctl_clc_ccctl1_lcond (& self) -> bool { * self == CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL1_LCOND } # [doc = "CCCTL2_LCOND"]
# [inline (always)]
pub fn is_ctrctl_clc_ccctl2_lcond (& self) -> bool { * self == CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL2_LCOND } # [doc = "CCCTL3_LCOND"]
# [inline (always)]
pub fn is_ctrctl_clc_ccctl3_lcond (& self) -> bool { * self == CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL3_LCOND } # [doc = "QEI_2INP"]
# [inline (always)]
pub fn is_ctrctl_clc_qei_2inp (& self) -> bool { * self == CTRCTL_CLC_A :: CTRCTL_CLC_QEI_2INP } # [doc = "QEI_3INP"]
# [inline (always)]
pub fn is_ctrctl_clc_qei_3inp (& self) -> bool { * self == CTRCTL_CLC_A :: CTRCTL_CLC_QEI_3INP } } # [doc = "Field `CTRCTL_CLC` writer - Counter Load Control. This field specifies what controls the counter operation with respect to setting the counter to the LD register value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
pub type CTRCTL_CLC_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CTRCTL_CLC_A > ; impl < 'a , REG , const O : u8 > CTRCTL_CLC_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "CCCTL0_LCOND"]
# [inline (always)]
pub fn ctrctl_clc_ccctl0_lcond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL0_LCOND) } # [doc = "CCCTL1_LCOND"]
# [inline (always)]
pub fn ctrctl_clc_ccctl1_lcond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL1_LCOND) } # [doc = "CCCTL2_LCOND"]
# [inline (always)]
pub fn ctrctl_clc_ccctl2_lcond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL2_LCOND) } # [doc = "CCCTL3_LCOND"]
# [inline (always)]
pub fn ctrctl_clc_ccctl3_lcond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL3_LCOND) } # [doc = "QEI_2INP"]
# [inline (always)]
pub fn ctrctl_clc_qei_2inp (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CLC_A :: CTRCTL_CLC_QEI_2INP) } # [doc = "QEI_3INP"]
# [inline (always)]
pub fn ctrctl_clc_qei_3inp (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CLC_A :: CTRCTL_CLC_QEI_3INP) } } # [doc = "Field `CTRCTL_CAC` reader - Counter Advance Control. This field specifies what controls the counter operation with respect to advancing (incrementing or decrementing) the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
pub type CTRCTL_CAC_R = crate :: FieldReader < CTRCTL_CAC_A > ; # [doc = "Counter Advance Control. This field specifies what controls the counter operation with respect to advancing (incrementing or decrementing) the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved.\n\nValue on reset: 7"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTRCTL_CAC_A { # [doc = "0: CCCTL0_ACOND"]
CTRCTL_CAC_CCCTL0_ACOND = 0 , # [doc = "1: CCCTL1_ACOND"]
CTRCTL_CAC_CCCTL1_ACOND = 1 , # [doc = "2: CCCTL2_ACOND"]
CTRCTL_CAC_CCCTL2_ACOND = 2 , # [doc = "3: CCCTL3_ACOND"]
CTRCTL_CAC_CCCTL3_ACOND = 3 , # [doc = "4: QEI_2INP"]
CTRCTL_CAC_QEI_2INP = 4 , # [doc = "5: QEI_3INP"]
CTRCTL_CAC_QEI_3INP = 5 , } impl From < CTRCTL_CAC_A > for u8 { # [inline (always)]
fn from (variant : CTRCTL_CAC_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTRCTL_CAC_A { type Ux = u8 ; } impl CTRCTL_CAC_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTRCTL_CAC_A > { match self . bits { 0 => Some (CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL0_ACOND) , 1 => Some (CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL1_ACOND) , 2 => Some (CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL2_ACOND) , 3 => Some (CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL3_ACOND) , 4 => Some (CTRCTL_CAC_A :: CTRCTL_CAC_QEI_2INP) , 5 => Some (CTRCTL_CAC_A :: CTRCTL_CAC_QEI_3INP) , _ => None , } } # [doc = "CCCTL0_ACOND"]
# [inline (always)]
pub fn is_ctrctl_cac_ccctl0_acond (& self) -> bool { * self == CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL0_ACOND } # [doc = "CCCTL1_ACOND"]
# [inline (always)]
pub fn is_ctrctl_cac_ccctl1_acond (& self) -> bool { * self == CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL1_ACOND } # [doc = "CCCTL2_ACOND"]
# [inline (always)]
pub fn is_ctrctl_cac_ccctl2_acond (& self) -> bool { * self == CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL2_ACOND } # [doc = "CCCTL3_ACOND"]
# [inline (always)]
pub fn is_ctrctl_cac_ccctl3_acond (& self) -> bool { * self == CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL3_ACOND } # [doc = "QEI_2INP"]
# [inline (always)]
pub fn is_ctrctl_cac_qei_2inp (& self) -> bool { * self == CTRCTL_CAC_A :: CTRCTL_CAC_QEI_2INP } # [doc = "QEI_3INP"]
# [inline (always)]
pub fn is_ctrctl_cac_qei_3inp (& self) -> bool { * self == CTRCTL_CAC_A :: CTRCTL_CAC_QEI_3INP } } # [doc = "Field `CTRCTL_CAC` writer - Counter Advance Control. This field specifies what controls the counter operation with respect to advancing (incrementing or decrementing) the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
pub type CTRCTL_CAC_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CTRCTL_CAC_A > ; impl < 'a , REG , const O : u8 > CTRCTL_CAC_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "CCCTL0_ACOND"]
# [inline (always)]
pub fn ctrctl_cac_ccctl0_acond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL0_ACOND) } # [doc = "CCCTL1_ACOND"]
# [inline (always)]
pub fn ctrctl_cac_ccctl1_acond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL1_ACOND) } # [doc = "CCCTL2_ACOND"]
# [inline (always)]
pub fn ctrctl_cac_ccctl2_acond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL2_ACOND) } # [doc = "CCCTL3_ACOND"]
# [inline (always)]
pub fn ctrctl_cac_ccctl3_acond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL3_ACOND) } # [doc = "QEI_2INP"]
# [inline (always)]
pub fn ctrctl_cac_qei_2inp (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CAC_A :: CTRCTL_CAC_QEI_2INP) } # [doc = "QEI_3INP"]
# [inline (always)]
pub fn ctrctl_cac_qei_3inp (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CAC_A :: CTRCTL_CAC_QEI_3INP) } } # [doc = "Field `CTRCTL_CZC` reader - Counter Zero Control This field specifies what controls the counter operation with respect to zeroing the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
pub type CTRCTL_CZC_R = crate :: FieldReader < CTRCTL_CZC_A > ; # [doc = "Counter Zero Control This field specifies what controls the counter operation with respect to zeroing the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved.\n\nValue on reset: 7"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTRCTL_CZC_A { # [doc = "0: CCCTL0_ZCOND"]
CTRCTL_CZC_CCCTL0_ZCOND = 0 , # [doc = "1: CCCTL1_ZCOND"]
CTRCTL_CZC_CCCTL1_ZCOND = 1 , # [doc = "2: CCCTL2_ZCOND"]
CTRCTL_CZC_CCCTL2_ZCOND = 2 , # [doc = "3: CCCTL3_ZCOND"]
CTRCTL_CZC_CCCTL3_ZCOND = 3 , # [doc = "4: QEI_2INP"]
CTRCTL_CZC_QEI_2INP = 4 , # [doc = "5: QEI_3INP"]
CTRCTL_CZC_QEI_3INP = 5 , } impl From < CTRCTL_CZC_A > for u8 { # [inline (always)]
fn from (variant : CTRCTL_CZC_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTRCTL_CZC_A { type Ux = u8 ; } impl CTRCTL_CZC_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTRCTL_CZC_A > { match self . bits { 0 => Some (CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL0_ZCOND) , 1 => Some (CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL1_ZCOND) , 2 => Some (CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL2_ZCOND) , 3 => Some (CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL3_ZCOND) , 4 => Some (CTRCTL_CZC_A :: CTRCTL_CZC_QEI_2INP) , 5 => Some (CTRCTL_CZC_A :: CTRCTL_CZC_QEI_3INP) , _ => None , } } # [doc = "CCCTL0_ZCOND"]
# [inline (always)]
pub fn is_ctrctl_czc_ccctl0_zcond (& self) -> bool { * self == CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL0_ZCOND } # [doc = "CCCTL1_ZCOND"]
# [inline (always)]
pub fn is_ctrctl_czc_ccctl1_zcond (& self) -> bool { * self == CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL1_ZCOND } # [doc = "CCCTL2_ZCOND"]
# [inline (always)]
pub fn is_ctrctl_czc_ccctl2_zcond (& self) -> bool { * self == CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL2_ZCOND } # [doc = "CCCTL3_ZCOND"]
# [inline (always)]
pub fn is_ctrctl_czc_ccctl3_zcond (& self) -> bool { * self == CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL3_ZCOND } # [doc = "QEI_2INP"]
# [inline (always)]
pub fn is_ctrctl_czc_qei_2inp (& self) -> bool { * self == CTRCTL_CZC_A :: CTRCTL_CZC_QEI_2INP } # [doc = "QEI_3INP"]
# [inline (always)]
pub fn is_ctrctl_czc_qei_3inp (& self) -> bool { * self == CTRCTL_CZC_A :: CTRCTL_CZC_QEI_3INP } } # [doc = "Field `CTRCTL_CZC` writer - Counter Zero Control This field specifies what controls the counter operation with respect to zeroing the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
pub type CTRCTL_CZC_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CTRCTL_CZC_A > ; impl < 'a , REG , const O : u8 > CTRCTL_CZC_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "CCCTL0_ZCOND"]
# [inline (always)]
pub fn ctrctl_czc_ccctl0_zcond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL0_ZCOND) } # [doc = "CCCTL1_ZCOND"]
# [inline (always)]
pub fn ctrctl_czc_ccctl1_zcond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL1_ZCOND) } # [doc = "CCCTL2_ZCOND"]
# [inline (always)]
pub fn ctrctl_czc_ccctl2_zcond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL2_ZCOND) } # [doc = "CCCTL3_ZCOND"]
# [inline (always)]
pub fn ctrctl_czc_ccctl3_zcond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL3_ZCOND) } # [doc = "QEI_2INP"]
# [inline (always)]
pub fn ctrctl_czc_qei_2inp (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CZC_A :: CTRCTL_CZC_QEI_2INP) } # [doc = "QEI_3INP"]
# [inline (always)]
pub fn ctrctl_czc_qei_3inp (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CZC_A :: CTRCTL_CZC_QEI_3INP) } } # [doc = "Field `CTRCTL_DRB` reader - Debug Resume Behavior This bit specifies what the device does following the release/exit of debug mode."]
pub type CTRCTL_DRB_R = crate :: BitReader < CTRCTL_DRB_A > ; # [doc = "Debug Resume Behavior This bit specifies what the device does following the release/exit of debug mode.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTRCTL_DRB_A { # [doc = "0: RESUME"]
CTRCTL_DRB_RESUME = 0 , # [doc = "1: CVAE_ACTION"]
CTRCTL_DRB_CVAE_ACTION = 1 , } impl From < CTRCTL_DRB_A > for bool { # [inline (always)]
fn from (variant : CTRCTL_DRB_A) -> Self { variant as u8 != 0 } } impl CTRCTL_DRB_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTRCTL_DRB_A { match self . bits { false => CTRCTL_DRB_A :: CTRCTL_DRB_RESUME , true => CTRCTL_DRB_A :: CTRCTL_DRB_CVAE_ACTION , } } # [doc = "RESUME"]
# [inline (always)]
pub fn is_ctrctl_drb_resume (& self) -> bool { * self == CTRCTL_DRB_A :: CTRCTL_DRB_RESUME } # [doc = "CVAE_ACTION"]
# [inline (always)]
pub fn is_ctrctl_drb_cvae_action (& self) -> bool { * self == CTRCTL_DRB_A :: CTRCTL_DRB_CVAE_ACTION } } # [doc = "Field `CTRCTL_DRB` writer - Debug Resume Behavior This bit specifies what the device does following the release/exit of debug mode."]
pub type CTRCTL_DRB_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTRCTL_DRB_A > ; impl < 'a , REG , const O : u8 > CTRCTL_DRB_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "RESUME"]
# [inline (always)]
pub fn ctrctl_drb_resume (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_DRB_A :: CTRCTL_DRB_RESUME) } # [doc = "CVAE_ACTION"]
# [inline (always)]
pub fn ctrctl_drb_cvae_action (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_DRB_A :: CTRCTL_DRB_CVAE_ACTION) } } # [doc = "Field `CTRCTL_CVAE` reader - Counter Value After Enable. This field specifies the initialization condition of the counter when the EN bit is changed from 0 to 1 by a write to the CTRCTL register. Note that an external event can also cause the EN bit to go active."]
pub type CTRCTL_CVAE_R = crate :: FieldReader < CTRCTL_CVAE_A > ; # [doc = "Counter Value After Enable. This field specifies the initialization condition of the counter when the EN bit is changed from 0 to 1 by a write to the CTRCTL register. Note that an external event can also cause the EN bit to go active.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTRCTL_CVAE_A { # [doc = "0: LDVAL"]
CTRCTL_CVAE_LDVAL = 0 , # [doc = "1: NOCHANGE"]
CTRCTL_CVAE_NOCHANGE = 1 , # [doc = "2: ZEROVAL"]
CTRCTL_CVAE_ZEROVAL = 2 , } impl From < CTRCTL_CVAE_A > for u8 { # [inline (always)]
fn from (variant : CTRCTL_CVAE_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTRCTL_CVAE_A { type Ux = u8 ; } impl CTRCTL_CVAE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTRCTL_CVAE_A > { match self . bits { 0 => Some (CTRCTL_CVAE_A :: CTRCTL_CVAE_LDVAL) , 1 => Some (CTRCTL_CVAE_A :: CTRCTL_CVAE_NOCHANGE) , 2 => Some (CTRCTL_CVAE_A :: CTRCTL_CVAE_ZEROVAL) , _ => None , } } # [doc = "LDVAL"]
# [inline (always)]
pub fn is_ctrctl_cvae_ldval (& self) -> bool { * self == CTRCTL_CVAE_A :: CTRCTL_CVAE_LDVAL } # [doc = "NOCHANGE"]
# [inline (always)]
pub fn is_ctrctl_cvae_nochange (& self) -> bool { * self == CTRCTL_CVAE_A :: CTRCTL_CVAE_NOCHANGE } # [doc = "ZEROVAL"]
# [inline (always)]
pub fn is_ctrctl_cvae_zeroval (& self) -> bool { * self == CTRCTL_CVAE_A :: CTRCTL_CVAE_ZEROVAL } } # [doc = "Field `CTRCTL_CVAE` writer - Counter Value After Enable. This field specifies the initialization condition of the counter when the EN bit is changed from 0 to 1 by a write to the CTRCTL register. Note that an external event can also cause the EN bit to go active."]
pub type CTRCTL_CVAE_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , CTRCTL_CVAE_A > ; impl < 'a , REG , const O : u8 > CTRCTL_CVAE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "LDVAL"]
# [inline (always)]
pub fn ctrctl_cvae_ldval (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CVAE_A :: CTRCTL_CVAE_LDVAL) } # [doc = "NOCHANGE"]
# [inline (always)]
pub fn ctrctl_cvae_nochange (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CVAE_A :: CTRCTL_CVAE_NOCHANGE) } # [doc = "ZEROVAL"]
# [inline (always)]
pub fn ctrctl_cvae_zeroval (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CVAE_A :: CTRCTL_CVAE_ZEROVAL) } } impl R { # [doc = "Bit 0 - Counter Enable. This bit allows the timer to advance This bit is automatically cleared if REPEAT=0 (do not automatically reload) and the counter value equals zero. CPU Write: A register write that sets the EN bit, the counter value is set per the CVAE value. Hardware: This bit may also be set as the result of an LCOND or ZCOND condition being met and the counter value changed to the load value or zero value, respectively."]
# [inline (always)]
pub fn ctrctl_en (& self) -> CTRCTL_EN_R { CTRCTL_EN_R :: new ((self . bits & 1) != 0) } # [doc = "Bits 1:3 - Repeat. The repeat bit controls whether the counter continues to advance following a zero event, or the exiting of a debug or fault condition. If counting down, a zero event is followed by a load at the next advance condition. If counting up-down, a zero event is followed by an advance event (+1). The intent of encoding 3 is that if the debug condition is in effect, the generation of the load pulse is deferred until the debug condition is over. This allows the counter to reach zero before counting is suspended."]
# [inline (always)]
pub fn ctrctl_repeat (& self) -> CTRCTL_REPEAT_R { CTRCTL_REPEAT_R :: new (((self . bits >> 1) & 7) as u8) } # [doc = "Bits 4:5 - Count Mode"]
# [inline (always)]
pub fn ctrctl_cm (& self) -> CTRCTL_CM_R { CTRCTL_CM_R :: new (((self . bits >> 4) & 3) as u8) } # [doc = "Bits 7:9 - Counter Load Control. This field specifies what controls the counter operation with respect to setting the counter to the LD register value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
# [inline (always)]
pub fn ctrctl_clc (& self) -> CTRCTL_CLC_R { CTRCTL_CLC_R :: new (((self . bits >> 7) & 7) as u8) } # [doc = "Bits 10:12 - Counter Advance Control. This field specifies what controls the counter operation with respect to advancing (incrementing or decrementing) the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
# [inline (always)]
pub fn ctrctl_cac (& self) -> CTRCTL_CAC_R { CTRCTL_CAC_R :: new (((self . bits >> 10) & 7) as u8) } # [doc = "Bits 13:15 - Counter Zero Control This field specifies what controls the counter operation with respect to zeroing the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
# [inline (always)]
pub fn ctrctl_czc (& self) -> CTRCTL_CZC_R { CTRCTL_CZC_R :: new (((self . bits >> 13) & 7) as u8) } # [doc = "Bit 17 - Debug Resume Behavior This bit specifies what the device does following the release/exit of debug mode."]
# [inline (always)]
pub fn ctrctl_drb (& self) -> CTRCTL_DRB_R { CTRCTL_DRB_R :: new (((self . bits >> 17) & 1) != 0) } # [doc = "Bits 28:29 - Counter Value After Enable. This field specifies the initialization condition of the counter when the EN bit is changed from 0 to 1 by a write to the CTRCTL register. Note that an external event can also cause the EN bit to go active."]
# [inline (always)]
pub fn ctrctl_cvae (& self) -> CTRCTL_CVAE_R { CTRCTL_CVAE_R :: new (((self . bits >> 28) & 3) as u8) } } impl W { # [doc = "Bit 0 - Counter Enable. This bit allows the timer to advance This bit is automatically cleared if REPEAT=0 (do not automatically reload) and the counter value equals zero. CPU Write: A register write that sets the EN bit, the counter value is set per the CVAE value. Hardware: This bit may also be set as the result of an LCOND or ZCOND condition being met and the counter value changed to the load value or zero value, respectively."]
# [inline (always)]
# [must_use]
pub fn ctrctl_en (& mut self) -> CTRCTL_EN_W < CTRCTL_SPEC , 0 > { CTRCTL_EN_W :: new (self) } # [doc = "Bits 1:3 - Repeat. The repeat bit controls whether the counter continues to advance following a zero event, or the exiting of a debug or fault condition. If counting down, a zero event is followed by a load at the next advance condition. If counting up-down, a zero event is followed by an advance event (+1). The intent of encoding 3 is that if the debug condition is in effect, the generation of the load pulse is deferred until the debug condition is over. This allows the counter to reach zero before counting is suspended."]
# [inline (always)]
# [must_use]
pub fn ctrctl_repeat (& mut self) -> CTRCTL_REPEAT_W < CTRCTL_SPEC , 1 > { CTRCTL_REPEAT_W :: new (self) } # [doc = "Bits 4:5 - Count Mode"]
# [inline (always)]
# [must_use]
pub fn ctrctl_cm (& mut self) -> CTRCTL_CM_W < CTRCTL_SPEC , 4 > { CTRCTL_CM_W :: new (self) } # [doc = "Bits 7:9 - Counter Load Control. This field specifies what controls the counter operation with respect to setting the counter to the LD register value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
# [inline (always)]
# [must_use]
pub fn ctrctl_clc (& mut self) -> CTRCTL_CLC_W < CTRCTL_SPEC , 7 > { CTRCTL_CLC_W :: new (self) } # [doc = "Bits 10:12 - Counter Advance Control. This field specifies what controls the counter operation with respect to advancing (incrementing or decrementing) the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
# [inline (always)]
# [must_use]
pub fn ctrctl_cac (& mut self) -> CTRCTL_CAC_W < CTRCTL_SPEC , 10 > { CTRCTL_CAC_W :: new (self) } # [doc = "Bits 13:15 - Counter Zero Control This field specifies what controls the counter operation with respect to zeroing the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
# [inline (always)]
# [must_use]
pub fn ctrctl_czc (& mut self) -> CTRCTL_CZC_W < CTRCTL_SPEC , 13 > { CTRCTL_CZC_W :: new (self) } # [doc = "Bit 17 - Debug Resume Behavior This bit specifies what the device does following the release/exit of debug mode."]
# [inline (always)]
# [must_use]
pub fn ctrctl_drb (& mut self) -> CTRCTL_DRB_W < CTRCTL_SPEC , 17 > { CTRCTL_DRB_W :: new (self) } # [doc = "Bits 28:29 - Counter Value After Enable. This field specifies the initialization condition of the counter when the EN bit is changed from 0 to 1 by a write to the CTRCTL register. Note that an external event can also cause the EN bit to go active."]
# [inline (always)]
# [must_use]
pub fn ctrctl_cvae (& mut self) -> CTRCTL_CVAE_W < CTRCTL_SPEC , 28 > { CTRCTL_CVAE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Counter Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctrctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctrctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTRCTL_SPEC ; impl crate :: RegisterSpec for CTRCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ctrctl::R`](R) reader structure"]
impl crate :: Readable for CTRCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`ctrctl::W`](W) writer structure"]
impl crate :: Writable for CTRCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTRCTL to value 0xff80"]
impl crate :: Resettable for CTRCTL_SPEC { const RESET_VALUE : Self :: Ux = 0xff80 ; } } # [doc = "LOAD (rw) register accessor: Load Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`load::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`load::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@load`]
module"]
pub type LOAD = crate :: Reg < load :: LOAD_SPEC > ; # [doc = "Load 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 `LOAD_LD` reader - Load Value"]
pub type LOAD_LD_R = crate :: FieldReader < u16 > ; # [doc = "Field `LOAD_LD` writer - Load Value"]
pub type LOAD_LD_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 16 , O , u16 > ; impl R { # [doc = "Bits 0:15 - Load Value"]
# [inline (always)]
pub fn load_ld (& self) -> LOAD_LD_R { LOAD_LD_R :: new ((self . bits & 0xffff) as u16) } } impl W { # [doc = "Bits 0:15 - Load Value"]
# [inline (always)]
# [must_use]
pub fn load_ld (& mut self) -> LOAD_LD_W < LOAD_SPEC , 0 > { LOAD_LD_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Load Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`load::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`load::W`](W). You can also [`modify`](crate::generic::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 { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets LOAD to value 0"]
impl crate :: Resettable for LOAD_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CC_01 (rw) register accessor: Capture or Compare Register 0 to Capture or Compare Register 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cc_01::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cc_01::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cc_01`]
module"]
pub type CC_01 = crate :: Reg < cc_01 :: CC_01_SPEC > ; # [doc = "Capture or Compare Register 0 to Capture or Compare Register 1"]
pub mod cc_01 { # [doc = "Register `CC_01[%s]` reader"]
pub type R = crate :: R < CC_01_SPEC > ; # [doc = "Register `CC_01[%s]` writer"]
pub type W = crate :: W < CC_01_SPEC > ; # [doc = "Field `CC_01_CCVAL` reader - Capture or compare value"]
pub type CC_01_CCVAL_R = crate :: FieldReader < u16 > ; # [doc = "Field `CC_01_CCVAL` writer - Capture or compare value"]
pub type CC_01_CCVAL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 16 , O , u16 > ; impl R { # [doc = "Bits 0:15 - Capture or compare value"]
# [inline (always)]
pub fn cc_01_ccval (& self) -> CC_01_CCVAL_R { CC_01_CCVAL_R :: new ((self . bits & 0xffff) as u16) } } impl W { # [doc = "Bits 0:15 - Capture or compare value"]
# [inline (always)]
# [must_use]
pub fn cc_01_ccval (& mut self) -> CC_01_CCVAL_W < CC_01_SPEC , 0 > { CC_01_CCVAL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Capture or Compare Register 0 to Capture or Compare Register 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cc_01::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cc_01::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CC_01_SPEC ; impl crate :: RegisterSpec for CC_01_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cc_01::R`](R) reader structure"]
impl crate :: Readable for CC_01_SPEC { } # [doc = "`write(|w| ..)` method takes [`cc_01::W`](W) writer structure"]
impl crate :: Writable for CC_01_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CC_01[%s]
to value 0"]
impl crate :: Resettable for CC_01_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CCCTL_01 (rw) register accessor: Capture or Compare Control Registers\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ccctl_01::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ccctl_01::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccctl_01`]
module"]
pub type CCCTL_01 = crate :: Reg < ccctl_01 :: CCCTL_01_SPEC > ; # [doc = "Capture or Compare Control Registers"]
pub mod ccctl_01 { # [doc = "Register `CCCTL_01[%s]` reader"]
pub type R = crate :: R < CCCTL_01_SPEC > ; # [doc = "Register `CCCTL_01[%s]` writer"]
pub type W = crate :: W < CCCTL_01_SPEC > ; # [doc = "Field `CCCTL_01_CCOND` reader - Capture Condition. #br# Specifies the condition that generates a capture pulse. 4h-Fh = Reserved"]
pub type CCCTL_01_CCOND_R = crate :: FieldReader < CCCTL_01_CCOND_A > ; # [doc = "Capture Condition. #br# Specifies the condition that generates a capture pulse. 4h-Fh = Reserved\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCCTL_01_CCOND_A { # [doc = "0: NOCAPTURE"]
CCCTL_01_CCOND_NOCAPTURE = 0 , # [doc = "1: CC_TRIG_RISE"]
CCCTL_01_CCOND_CC_TRIG_RISE = 1 , # [doc = "2: CC_TRIG_FALL"]
CCCTL_01_CCOND_CC_TRIG_FALL = 2 , # [doc = "3: CC_TRIG_EDGE"]
CCCTL_01_CCOND_CC_TRIG_EDGE = 3 , } impl From < CCCTL_01_CCOND_A > for u8 { # [inline (always)]
fn from (variant : CCCTL_01_CCOND_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCCTL_01_CCOND_A { type Ux = u8 ; } impl CCCTL_01_CCOND_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCCTL_01_CCOND_A > { match self . bits { 0 => Some (CCCTL_01_CCOND_A :: CCCTL_01_CCOND_NOCAPTURE) , 1 => Some (CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_RISE) , 2 => Some (CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_FALL) , 3 => Some (CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_EDGE) , _ => None , } } # [doc = "NOCAPTURE"]
# [inline (always)]
pub fn is_ccctl_01_ccond_nocapture (& self) -> bool { * self == CCCTL_01_CCOND_A :: CCCTL_01_CCOND_NOCAPTURE } # [doc = "CC_TRIG_RISE"]
# [inline (always)]
pub fn is_ccctl_01_ccond_cc_trig_rise (& self) -> bool { * self == CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_RISE } # [doc = "CC_TRIG_FALL"]
# [inline (always)]
pub fn is_ccctl_01_ccond_cc_trig_fall (& self) -> bool { * self == CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_FALL } # [doc = "CC_TRIG_EDGE"]
# [inline (always)]
pub fn is_ccctl_01_ccond_cc_trig_edge (& self) -> bool { * self == CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_EDGE } } # [doc = "Field `CCCTL_01_CCOND` writer - Capture Condition. #br# Specifies the condition that generates a capture pulse. 4h-Fh = Reserved"]
pub type CCCTL_01_CCOND_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CCCTL_01_CCOND_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_CCOND_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "NOCAPTURE"]
# [inline (always)]
pub fn ccctl_01_ccond_nocapture (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCOND_A :: CCCTL_01_CCOND_NOCAPTURE) } # [doc = "CC_TRIG_RISE"]
# [inline (always)]
pub fn ccctl_01_ccond_cc_trig_rise (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_RISE) } # [doc = "CC_TRIG_FALL"]
# [inline (always)]
pub fn ccctl_01_ccond_cc_trig_fall (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_FALL) } # [doc = "CC_TRIG_EDGE"]
# [inline (always)]
pub fn ccctl_01_ccond_cc_trig_edge (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_EDGE) } } # [doc = "Field `CCCTL_01_ACOND` reader - Advance Condition. #br# Specifies the condition that generates an advance pulse. 6h-Fh = Reserved"]
pub type CCCTL_01_ACOND_R = crate :: FieldReader < CCCTL_01_ACOND_A > ; # [doc = "Advance Condition. #br# Specifies the condition that generates an advance pulse. 6h-Fh = Reserved\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCCTL_01_ACOND_A { # [doc = "0: TIMCLK"]
CCCTL_01_ACOND_TIMCLK = 0 , # [doc = "1: CC_TRIG_RISE"]
CCCTL_01_ACOND_CC_TRIG_RISE = 1 , # [doc = "2: CC_TRIG_FALL"]
CCCTL_01_ACOND_CC_TRIG_FALL = 2 , # [doc = "3: CC_TRIG_EDGE"]
CCCTL_01_ACOND_CC_TRIG_EDGE = 3 , # [doc = "5: CC_TRIG_HIGH"]
CCCTL_01_ACOND_CC_TRIG_HIGH = 5 , } impl From < CCCTL_01_ACOND_A > for u8 { # [inline (always)]
fn from (variant : CCCTL_01_ACOND_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCCTL_01_ACOND_A { type Ux = u8 ; } impl CCCTL_01_ACOND_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCCTL_01_ACOND_A > { match self . bits { 0 => Some (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_TIMCLK) , 1 => Some (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_RISE) , 2 => Some (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_FALL) , 3 => Some (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_EDGE) , 5 => Some (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_HIGH) , _ => None , } } # [doc = "TIMCLK"]
# [inline (always)]
pub fn is_ccctl_01_acond_timclk (& self) -> bool { * self == CCCTL_01_ACOND_A :: CCCTL_01_ACOND_TIMCLK } # [doc = "CC_TRIG_RISE"]
# [inline (always)]
pub fn is_ccctl_01_acond_cc_trig_rise (& self) -> bool { * self == CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_RISE } # [doc = "CC_TRIG_FALL"]
# [inline (always)]
pub fn is_ccctl_01_acond_cc_trig_fall (& self) -> bool { * self == CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_FALL } # [doc = "CC_TRIG_EDGE"]
# [inline (always)]
pub fn is_ccctl_01_acond_cc_trig_edge (& self) -> bool { * self == CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_EDGE } # [doc = "CC_TRIG_HIGH"]
# [inline (always)]
pub fn is_ccctl_01_acond_cc_trig_high (& self) -> bool { * self == CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_HIGH } } # [doc = "Field `CCCTL_01_ACOND` writer - Advance Condition. #br# Specifies the condition that generates an advance pulse. 6h-Fh = Reserved"]
pub type CCCTL_01_ACOND_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CCCTL_01_ACOND_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_ACOND_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "TIMCLK"]
# [inline (always)]
pub fn ccctl_01_acond_timclk (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_TIMCLK) } # [doc = "CC_TRIG_RISE"]
# [inline (always)]
pub fn ccctl_01_acond_cc_trig_rise (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_RISE) } # [doc = "CC_TRIG_FALL"]
# [inline (always)]
pub fn ccctl_01_acond_cc_trig_fall (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_FALL) } # [doc = "CC_TRIG_EDGE"]
# [inline (always)]
pub fn ccctl_01_acond_cc_trig_edge (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_EDGE) } # [doc = "CC_TRIG_HIGH"]
# [inline (always)]
pub fn ccctl_01_acond_cc_trig_high (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_HIGH) } } # [doc = "Field `CCCTL_01_LCOND` reader - Load Condition. #br# Specifies the condition that generates a load pulse. 4h-Fh = Reserved"]
pub type CCCTL_01_LCOND_R = crate :: FieldReader < CCCTL_01_LCOND_A > ; # [doc = "Load Condition. #br# Specifies the condition that generates a load pulse. 4h-Fh = Reserved\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCCTL_01_LCOND_A { # [doc = "1: CC_TRIG_RISE"]
CCCTL_01_LCOND_CC_TRIG_RISE = 1 , # [doc = "2: CC_TRIG_FALL"]
CCCTL_01_LCOND_CC_TRIG_FALL = 2 , # [doc = "3: CC_TRIG_EDGE"]
CCCTL_01_LCOND_CC_TRIG_EDGE = 3 , } impl From < CCCTL_01_LCOND_A > for u8 { # [inline (always)]
fn from (variant : CCCTL_01_LCOND_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCCTL_01_LCOND_A { type Ux = u8 ; } impl CCCTL_01_LCOND_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCCTL_01_LCOND_A > { match self . bits { 1 => Some (CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_RISE) , 2 => Some (CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_FALL) , 3 => Some (CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_EDGE) , _ => None , } } # [doc = "CC_TRIG_RISE"]
# [inline (always)]
pub fn is_ccctl_01_lcond_cc_trig_rise (& self) -> bool { * self == CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_RISE } # [doc = "CC_TRIG_FALL"]
# [inline (always)]
pub fn is_ccctl_01_lcond_cc_trig_fall (& self) -> bool { * self == CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_FALL } # [doc = "CC_TRIG_EDGE"]
# [inline (always)]
pub fn is_ccctl_01_lcond_cc_trig_edge (& self) -> bool { * self == CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_EDGE } } # [doc = "Field `CCCTL_01_LCOND` writer - Load Condition. #br# Specifies the condition that generates a load pulse. 4h-Fh = Reserved"]
pub type CCCTL_01_LCOND_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CCCTL_01_LCOND_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_LCOND_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "CC_TRIG_RISE"]
# [inline (always)]
pub fn ccctl_01_lcond_cc_trig_rise (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_RISE) } # [doc = "CC_TRIG_FALL"]
# [inline (always)]
pub fn ccctl_01_lcond_cc_trig_fall (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_FALL) } # [doc = "CC_TRIG_EDGE"]
# [inline (always)]
pub fn ccctl_01_lcond_cc_trig_edge (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_EDGE) } } # [doc = "Field `CCCTL_01_ZCOND` reader - Zero Condition. #br# This field specifies the condition that generates a zero pulse. 4h-Fh = Reserved"]
pub type CCCTL_01_ZCOND_R = crate :: FieldReader < CCCTL_01_ZCOND_A > ; # [doc = "Zero Condition. #br# This field specifies the condition that generates a zero pulse. 4h-Fh = Reserved\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCCTL_01_ZCOND_A { # [doc = "1: CC_TRIG_RISE"]
CCCTL_01_ZCOND_CC_TRIG_RISE = 1 , # [doc = "2: CC_TRIG_FALL"]
CCCTL_01_ZCOND_CC_TRIG_FALL = 2 , # [doc = "3: CC_TRIG_EDGE"]
CCCTL_01_ZCOND_CC_TRIG_EDGE = 3 , } impl From < CCCTL_01_ZCOND_A > for u8 { # [inline (always)]
fn from (variant : CCCTL_01_ZCOND_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCCTL_01_ZCOND_A { type Ux = u8 ; } impl CCCTL_01_ZCOND_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCCTL_01_ZCOND_A > { match self . bits { 1 => Some (CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_RISE) , 2 => Some (CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_FALL) , 3 => Some (CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_EDGE) , _ => None , } } # [doc = "CC_TRIG_RISE"]
# [inline (always)]
pub fn is_ccctl_01_zcond_cc_trig_rise (& self) -> bool { * self == CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_RISE } # [doc = "CC_TRIG_FALL"]
# [inline (always)]
pub fn is_ccctl_01_zcond_cc_trig_fall (& self) -> bool { * self == CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_FALL } # [doc = "CC_TRIG_EDGE"]
# [inline (always)]
pub fn is_ccctl_01_zcond_cc_trig_edge (& self) -> bool { * self == CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_EDGE } } # [doc = "Field `CCCTL_01_ZCOND` writer - Zero Condition. #br# This field specifies the condition that generates a zero pulse. 4h-Fh = Reserved"]
pub type CCCTL_01_ZCOND_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CCCTL_01_ZCOND_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_ZCOND_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "CC_TRIG_RISE"]
# [inline (always)]
pub fn ccctl_01_zcond_cc_trig_rise (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_RISE) } # [doc = "CC_TRIG_FALL"]
# [inline (always)]
pub fn ccctl_01_zcond_cc_trig_fall (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_FALL) } # [doc = "CC_TRIG_EDGE"]
# [inline (always)]
pub fn ccctl_01_zcond_cc_trig_edge (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_EDGE) } } # [doc = "Field `CCCTL_01_COC` reader - Capture or Compare. #br# Specifies whether the corresponding CC register is used as a capture register or a compare register (never both)."]
pub type CCCTL_01_COC_R = crate :: BitReader < CCCTL_01_COC_A > ; # [doc = "Capture or Compare. #br# Specifies whether the corresponding CC register is used as a capture register or a compare register (never both).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CCCTL_01_COC_A { # [doc = "0: COMPARE"]
CCCTL_01_COC_COMPARE = 0 , # [doc = "1: CAPTURE"]
CCCTL_01_COC_CAPTURE = 1 , } impl From < CCCTL_01_COC_A > for bool { # [inline (always)]
fn from (variant : CCCTL_01_COC_A) -> Self { variant as u8 != 0 } } impl CCCTL_01_COC_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCCTL_01_COC_A { match self . bits { false => CCCTL_01_COC_A :: CCCTL_01_COC_COMPARE , true => CCCTL_01_COC_A :: CCCTL_01_COC_CAPTURE , } } # [doc = "COMPARE"]
# [inline (always)]
pub fn is_ccctl_01_coc_compare (& self) -> bool { * self == CCCTL_01_COC_A :: CCCTL_01_COC_COMPARE } # [doc = "CAPTURE"]
# [inline (always)]
pub fn is_ccctl_01_coc_capture (& self) -> bool { * self == CCCTL_01_COC_A :: CCCTL_01_COC_CAPTURE } } # [doc = "Field `CCCTL_01_COC` writer - Capture or Compare. #br# Specifies whether the corresponding CC register is used as a capture register or a compare register (never both)."]
pub type CCCTL_01_COC_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CCCTL_01_COC_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_COC_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "COMPARE"]
# [inline (always)]
pub fn ccctl_01_coc_compare (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_COC_A :: CCCTL_01_COC_COMPARE) } # [doc = "CAPTURE"]
# [inline (always)]
pub fn ccctl_01_coc_capture (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_COC_A :: CCCTL_01_COC_CAPTURE) } } # [doc = "Field `CCCTL_01_CC2SELU` reader - Selects the source second CCU event."]
pub type CCCTL_01_CC2SELU_R = crate :: FieldReader < CCCTL_01_CC2SELU_A > ; # [doc = "Selects the source second CCU event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCCTL_01_CC2SELU_A { # [doc = "0: SEL_CCU0"]
CCCTL_01_CC2SELU_SEL_CCU0 = 0 , # [doc = "1: SEL_CCU1"]
CCCTL_01_CC2SELU_SEL_CCU1 = 1 , # [doc = "2: SEL_CCU2"]
CCCTL_01_CC2SELU_SEL_CCU2 = 2 , # [doc = "3: SEL_CCU3"]
CCCTL_01_CC2SELU_SEL_CCU3 = 3 , # [doc = "4: SEL_CCU4"]
CCCTL_01_CC2SELU_SEL_CCU4 = 4 , # [doc = "5: SEL_CCU5"]
CCCTL_01_CC2SELU_SEL_CCU5 = 5 , } impl From < CCCTL_01_CC2SELU_A > for u8 { # [inline (always)]
fn from (variant : CCCTL_01_CC2SELU_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCCTL_01_CC2SELU_A { type Ux = u8 ; } impl CCCTL_01_CC2SELU_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCCTL_01_CC2SELU_A > { match self . bits { 0 => Some (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU0) , 1 => Some (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU1) , 2 => Some (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU2) , 3 => Some (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU3) , 4 => Some (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU4) , 5 => Some (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU5) , _ => None , } } # [doc = "SEL_CCU0"]
# [inline (always)]
pub fn is_ccctl_01_cc2selu_sel_ccu0 (& self) -> bool { * self == CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU0 } # [doc = "SEL_CCU1"]
# [inline (always)]
pub fn is_ccctl_01_cc2selu_sel_ccu1 (& self) -> bool { * self == CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU1 } # [doc = "SEL_CCU2"]
# [inline (always)]
pub fn is_ccctl_01_cc2selu_sel_ccu2 (& self) -> bool { * self == CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU2 } # [doc = "SEL_CCU3"]
# [inline (always)]
pub fn is_ccctl_01_cc2selu_sel_ccu3 (& self) -> bool { * self == CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU3 } # [doc = "SEL_CCU4"]
# [inline (always)]
pub fn is_ccctl_01_cc2selu_sel_ccu4 (& self) -> bool { * self == CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU4 } # [doc = "SEL_CCU5"]
# [inline (always)]
pub fn is_ccctl_01_cc2selu_sel_ccu5 (& self) -> bool { * self == CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU5 } } # [doc = "Field `CCCTL_01_CC2SELU` writer - Selects the source second CCU event."]
pub type CCCTL_01_CC2SELU_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CCCTL_01_CC2SELU_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_CC2SELU_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "SEL_CCU0"]
# [inline (always)]
pub fn ccctl_01_cc2selu_sel_ccu0 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU0) } # [doc = "SEL_CCU1"]
# [inline (always)]
pub fn ccctl_01_cc2selu_sel_ccu1 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU1) } # [doc = "SEL_CCU2"]
# [inline (always)]
pub fn ccctl_01_cc2selu_sel_ccu2 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU2) } # [doc = "SEL_CCU3"]
# [inline (always)]
pub fn ccctl_01_cc2selu_sel_ccu3 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU3) } # [doc = "SEL_CCU4"]
# [inline (always)]
pub fn ccctl_01_cc2selu_sel_ccu4 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU4) } # [doc = "SEL_CCU5"]
# [inline (always)]
pub fn ccctl_01_cc2selu_sel_ccu5 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU5) } } # [doc = "Field `CCCTL_01_CCACTUPD` reader - CCACT shadow register Update Method This field controls how updates to the CCCACT shadow register are performed"]
pub type CCCTL_01_CCACTUPD_R = crate :: FieldReader < CCCTL_01_CCACTUPD_A > ; # [doc = "CCACT shadow register Update Method This field controls how updates to the CCCACT shadow register are performed\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCCTL_01_CCACTUPD_A { # [doc = "0: IMMEDIATELY"]
CCCTL_01_CCACTUPD_IMMEDIATELY = 0 , # [doc = "1: ZERO_EVT"]
CCCTL_01_CCACTUPD_ZERO_EVT = 1 , # [doc = "2: COMPARE_DOWN_EVT"]
CCCTL_01_CCACTUPD_COMPARE_DOWN_EVT = 2 , # [doc = "3: COMPARE_UP_EVT"]
CCCTL_01_CCACTUPD_COMPARE_UP_EVT = 3 , # [doc = "4: ZERO_LOAD_EVT"]
CCCTL_01_CCACTUPD_ZERO_LOAD_EVT = 4 , # [doc = "5: ZERO_RC_ZERO_EVT"]
CCCTL_01_CCACTUPD_ZERO_RC_ZERO_EVT = 5 , # [doc = "6: TRIG"]
CCCTL_01_CCACTUPD_TRIG = 6 , } impl From < CCCTL_01_CCACTUPD_A > for u8 { # [inline (always)]
fn from (variant : CCCTL_01_CCACTUPD_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCCTL_01_CCACTUPD_A { type Ux = u8 ; } impl CCCTL_01_CCACTUPD_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCCTL_01_CCACTUPD_A > { match self . bits { 0 => Some (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_IMMEDIATELY) , 1 => Some (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_EVT) , 2 => Some (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_COMPARE_DOWN_EVT) , 3 => Some (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_COMPARE_UP_EVT) , 4 => Some (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_LOAD_EVT) , 5 => Some (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_RC_ZERO_EVT) , 6 => Some (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_TRIG) , _ => None , } } # [doc = "IMMEDIATELY"]
# [inline (always)]
pub fn is_ccctl_01_ccactupd_immediately (& self) -> bool { * self == CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_IMMEDIATELY } # [doc = "ZERO_EVT"]
# [inline (always)]
pub fn is_ccctl_01_ccactupd_zero_evt (& self) -> bool { * self == CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_EVT } # [doc = "COMPARE_DOWN_EVT"]
# [inline (always)]
pub fn is_ccctl_01_ccactupd_compare_down_evt (& self) -> bool { * self == CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_COMPARE_DOWN_EVT } # [doc = "COMPARE_UP_EVT"]
# [inline (always)]
pub fn is_ccctl_01_ccactupd_compare_up_evt (& self) -> bool { * self == CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_COMPARE_UP_EVT } # [doc = "ZERO_LOAD_EVT"]
# [inline (always)]
pub fn is_ccctl_01_ccactupd_zero_load_evt (& self) -> bool { * self == CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_LOAD_EVT } # [doc = "ZERO_RC_ZERO_EVT"]
# [inline (always)]
pub fn is_ccctl_01_ccactupd_zero_rc_zero_evt (& self) -> bool { * self == CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_RC_ZERO_EVT } # [doc = "TRIG"]
# [inline (always)]
pub fn is_ccctl_01_ccactupd_trig (& self) -> bool { * self == CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_TRIG } } # [doc = "Field `CCCTL_01_CCACTUPD` writer - CCACT shadow register Update Method This field controls how updates to the CCCACT shadow register are performed"]
pub type CCCTL_01_CCACTUPD_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CCCTL_01_CCACTUPD_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_CCACTUPD_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "IMMEDIATELY"]
# [inline (always)]
pub fn ccctl_01_ccactupd_immediately (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_IMMEDIATELY) } # [doc = "ZERO_EVT"]
# [inline (always)]
pub fn ccctl_01_ccactupd_zero_evt (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_EVT) } # [doc = "COMPARE_DOWN_EVT"]
# [inline (always)]
pub fn ccctl_01_ccactupd_compare_down_evt (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_COMPARE_DOWN_EVT) } # [doc = "COMPARE_UP_EVT"]
# [inline (always)]
pub fn ccctl_01_ccactupd_compare_up_evt (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_COMPARE_UP_EVT) } # [doc = "ZERO_LOAD_EVT"]
# [inline (always)]
pub fn ccctl_01_ccactupd_zero_load_evt (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_LOAD_EVT) } # [doc = "ZERO_RC_ZERO_EVT"]
# [inline (always)]
pub fn ccctl_01_ccactupd_zero_rc_zero_evt (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_RC_ZERO_EVT) } # [doc = "TRIG"]
# [inline (always)]
pub fn ccctl_01_ccactupd_trig (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_TRIG) } } # [doc = "Field `CCCTL_01_CC2SELD` reader - Selects the source second CCD event."]
pub type CCCTL_01_CC2SELD_R = crate :: FieldReader < CCCTL_01_CC2SELD_A > ; # [doc = "Selects the source second CCD event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCCTL_01_CC2SELD_A { # [doc = "0: SEL_CCD0"]
CCCTL_01_CC2SELD_SEL_CCD0 = 0 , # [doc = "1: SEL_CCD1"]
CCCTL_01_CC2SELD_SEL_CCD1 = 1 , # [doc = "2: SEL_CCD2"]
CCCTL_01_CC2SELD_SEL_CCD2 = 2 , # [doc = "3: SEL_CCD3"]
CCCTL_01_CC2SELD_SEL_CCD3 = 3 , # [doc = "4: SEL_CCD4"]
CCCTL_01_CC2SELD_SEL_CCD4 = 4 , # [doc = "5: SEL_CCD5"]
CCCTL_01_CC2SELD_SEL_CCD5 = 5 , } impl From < CCCTL_01_CC2SELD_A > for u8 { # [inline (always)]
fn from (variant : CCCTL_01_CC2SELD_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCCTL_01_CC2SELD_A { type Ux = u8 ; } impl CCCTL_01_CC2SELD_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCCTL_01_CC2SELD_A > { match self . bits { 0 => Some (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD0) , 1 => Some (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD1) , 2 => Some (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD2) , 3 => Some (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD3) , 4 => Some (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD4) , 5 => Some (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD5) , _ => None , } } # [doc = "SEL_CCD0"]
# [inline (always)]
pub fn is_ccctl_01_cc2seld_sel_ccd0 (& self) -> bool { * self == CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD0 } # [doc = "SEL_CCD1"]
# [inline (always)]
pub fn is_ccctl_01_cc2seld_sel_ccd1 (& self) -> bool { * self == CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD1 } # [doc = "SEL_CCD2"]
# [inline (always)]
pub fn is_ccctl_01_cc2seld_sel_ccd2 (& self) -> bool { * self == CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD2 } # [doc = "SEL_CCD3"]
# [inline (always)]
pub fn is_ccctl_01_cc2seld_sel_ccd3 (& self) -> bool { * self == CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD3 } # [doc = "SEL_CCD4"]
# [inline (always)]
pub fn is_ccctl_01_cc2seld_sel_ccd4 (& self) -> bool { * self == CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD4 } # [doc = "SEL_CCD5"]
# [inline (always)]
pub fn is_ccctl_01_cc2seld_sel_ccd5 (& self) -> bool { * self == CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD5 } } # [doc = "Field `CCCTL_01_CC2SELD` writer - Selects the source second CCD event."]
pub type CCCTL_01_CC2SELD_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CCCTL_01_CC2SELD_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_CC2SELD_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "SEL_CCD0"]
# [inline (always)]
pub fn ccctl_01_cc2seld_sel_ccd0 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD0) } # [doc = "SEL_CCD1"]
# [inline (always)]
pub fn ccctl_01_cc2seld_sel_ccd1 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD1) } # [doc = "SEL_CCD2"]
# [inline (always)]
pub fn ccctl_01_cc2seld_sel_ccd2 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD2) } # [doc = "SEL_CCD3"]
# [inline (always)]
pub fn ccctl_01_cc2seld_sel_ccd3 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD3) } # [doc = "SEL_CCD4"]
# [inline (always)]
pub fn ccctl_01_cc2seld_sel_ccd4 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD4) } # [doc = "SEL_CCD5"]
# [inline (always)]
pub fn ccctl_01_cc2seld_sel_ccd5 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD5) } } impl R { # [doc = "Bits 0:2 - Capture Condition. #br# Specifies the condition that generates a capture pulse. 4h-Fh = Reserved"]
# [inline (always)]
pub fn ccctl_01_ccond (& self) -> CCCTL_01_CCOND_R { CCCTL_01_CCOND_R :: new ((self . bits & 7) as u8) } # [doc = "Bits 4:6 - Advance Condition. #br# Specifies the condition that generates an advance pulse. 6h-Fh = Reserved"]
# [inline (always)]
pub fn ccctl_01_acond (& self) -> CCCTL_01_ACOND_R { CCCTL_01_ACOND_R :: new (((self . bits >> 4) & 7) as u8) } # [doc = "Bits 8:10 - Load Condition. #br# Specifies the condition that generates a load pulse. 4h-Fh = Reserved"]
# [inline (always)]
pub fn ccctl_01_lcond (& self) -> CCCTL_01_LCOND_R { CCCTL_01_LCOND_R :: new (((self . bits >> 8) & 7) as u8) } # [doc = "Bits 12:14 - Zero Condition. #br# This field specifies the condition that generates a zero pulse. 4h-Fh = Reserved"]
# [inline (always)]
pub fn ccctl_01_zcond (& self) -> CCCTL_01_ZCOND_R { CCCTL_01_ZCOND_R :: new (((self . bits >> 12) & 7) as u8) } # [doc = "Bit 17 - Capture or Compare. #br# Specifies whether the corresponding CC register is used as a capture register or a compare register (never both)."]
# [inline (always)]
pub fn ccctl_01_coc (& self) -> CCCTL_01_COC_R { CCCTL_01_COC_R :: new (((self . bits >> 17) & 1) != 0) } # [doc = "Bits 22:24 - Selects the source second CCU event."]
# [inline (always)]
pub fn ccctl_01_cc2selu (& self) -> CCCTL_01_CC2SELU_R { CCCTL_01_CC2SELU_R :: new (((self . bits >> 22) & 7) as u8) } # [doc = "Bits 26:28 - CCACT shadow register Update Method This field controls how updates to the CCCACT shadow register are performed"]
# [inline (always)]
pub fn ccctl_01_ccactupd (& self) -> CCCTL_01_CCACTUPD_R { CCCTL_01_CCACTUPD_R :: new (((self . bits >> 26) & 7) as u8) } # [doc = "Bits 29:31 - Selects the source second CCD event."]
# [inline (always)]
pub fn ccctl_01_cc2seld (& self) -> CCCTL_01_CC2SELD_R { CCCTL_01_CC2SELD_R :: new (((self . bits >> 29) & 7) as u8) } } impl W { # [doc = "Bits 0:2 - Capture Condition. #br# Specifies the condition that generates a capture pulse. 4h-Fh = Reserved"]
# [inline (always)]
# [must_use]
pub fn ccctl_01_ccond (& mut self) -> CCCTL_01_CCOND_W < CCCTL_01_SPEC , 0 > { CCCTL_01_CCOND_W :: new (self) } # [doc = "Bits 4:6 - Advance Condition. #br# Specifies the condition that generates an advance pulse. 6h-Fh = Reserved"]
# [inline (always)]
# [must_use]
pub fn ccctl_01_acond (& mut self) -> CCCTL_01_ACOND_W < CCCTL_01_SPEC , 4 > { CCCTL_01_ACOND_W :: new (self) } # [doc = "Bits 8:10 - Load Condition. #br# Specifies the condition that generates a load pulse. 4h-Fh = Reserved"]
# [inline (always)]
# [must_use]
pub fn ccctl_01_lcond (& mut self) -> CCCTL_01_LCOND_W < CCCTL_01_SPEC , 8 > { CCCTL_01_LCOND_W :: new (self) } # [doc = "Bits 12:14 - Zero Condition. #br# This field specifies the condition that generates a zero pulse. 4h-Fh = Reserved"]
# [inline (always)]
# [must_use]
pub fn ccctl_01_zcond (& mut self) -> CCCTL_01_ZCOND_W < CCCTL_01_SPEC , 12 > { CCCTL_01_ZCOND_W :: new (self) } # [doc = "Bit 17 - Capture or Compare. #br# Specifies whether the corresponding CC register is used as a capture register or a compare register (never both)."]
# [inline (always)]
# [must_use]
pub fn ccctl_01_coc (& mut self) -> CCCTL_01_COC_W < CCCTL_01_SPEC , 17 > { CCCTL_01_COC_W :: new (self) } # [doc = "Bits 22:24 - Selects the source second CCU event."]
# [inline (always)]
# [must_use]
pub fn ccctl_01_cc2selu (& mut self) -> CCCTL_01_CC2SELU_W < CCCTL_01_SPEC , 22 > { CCCTL_01_CC2SELU_W :: new (self) } # [doc = "Bits 26:28 - CCACT shadow register Update Method This field controls how updates to the CCCACT shadow register are performed"]
# [inline (always)]
# [must_use]
pub fn ccctl_01_ccactupd (& mut self) -> CCCTL_01_CCACTUPD_W < CCCTL_01_SPEC , 26 > { CCCTL_01_CCACTUPD_W :: new (self) } # [doc = "Bits 29:31 - Selects the source second CCD event."]
# [inline (always)]
# [must_use]
pub fn ccctl_01_cc2seld (& mut self) -> CCCTL_01_CC2SELD_W < CCCTL_01_SPEC , 29 > { CCCTL_01_CC2SELD_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Capture or Compare Control Registers\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ccctl_01::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ccctl_01::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CCCTL_01_SPEC ; impl crate :: RegisterSpec for CCCTL_01_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ccctl_01::R`](R) reader structure"]
impl crate :: Readable for CCCTL_01_SPEC { } # [doc = "`write(|w| ..)` method takes [`ccctl_01::W`](W) writer structure"]
impl crate :: Writable for CCCTL_01_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CCCTL_01[%s]
to value 0"]
impl crate :: Resettable for CCCTL_01_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "OCTL_01 (rw) register accessor: CCP Output Control Registers\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`octl_01::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`octl_01::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@octl_01`]
module"]
pub type OCTL_01 = crate :: Reg < octl_01 :: OCTL_01_SPEC > ; # [doc = "CCP Output Control Registers"]
pub mod octl_01 { # [doc = "Register `OCTL_01[%s]` reader"]
pub type R = crate :: R < OCTL_01_SPEC > ; # [doc = "Register `OCTL_01[%s]` writer"]
pub type W = crate :: W < OCTL_01_SPEC > ; # [doc = "Field `OCTL_01_CCPO` reader - CCP Output Source"]
pub type OCTL_01_CCPO_R = crate :: FieldReader < OCTL_01_CCPO_A > ; # [doc = "CCP Output Source\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum OCTL_01_CCPO_A { # [doc = "0: FUNCVAL"]
OCTL_01_CCPO_FUNCVAL = 0 , # [doc = "1: LOAD"]
OCTL_01_CCPO_LOAD = 1 , # [doc = "2: CMPVAL"]
OCTL_01_CCPO_CMPVAL = 2 , # [doc = "4: ZERO"]
OCTL_01_CCPO_ZERO = 4 , # [doc = "5: CAPCOND"]
OCTL_01_CCPO_CAPCOND = 5 , # [doc = "6: FAULTCOND"]
OCTL_01_CCPO_FAULTCOND = 6 , # [doc = "8: CC0_MIRROR_ALL"]
OCTL_01_CCPO_CC0_MIRROR_ALL = 8 , # [doc = "9: CC1_MIRROR_ALL"]
OCTL_01_CCPO_CC1_MIRROR_ALL = 9 , # [doc = "12: DEADBAND"]
OCTL_01_CCPO_DEADBAND = 12 , # [doc = "13: CNTDIR"]
OCTL_01_CCPO_CNTDIR = 13 , } impl From < OCTL_01_CCPO_A > for u8 { # [inline (always)]
fn from (variant : OCTL_01_CCPO_A) -> Self { variant as _ } } impl crate :: FieldSpec for OCTL_01_CCPO_A { type Ux = u8 ; } impl OCTL_01_CCPO_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < OCTL_01_CCPO_A > { match self . bits { 0 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_FUNCVAL) , 1 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_LOAD) , 2 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_CMPVAL) , 4 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_ZERO) , 5 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_CAPCOND) , 6 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_FAULTCOND) , 8 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_CC0_MIRROR_ALL) , 9 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_CC1_MIRROR_ALL) , 12 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_DEADBAND) , 13 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_CNTDIR) , _ => None , } } # [doc = "FUNCVAL"]
# [inline (always)]
pub fn is_octl_01_ccpo_funcval (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_FUNCVAL } # [doc = "LOAD"]
# [inline (always)]
pub fn is_octl_01_ccpo_load (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_LOAD } # [doc = "CMPVAL"]
# [inline (always)]
pub fn is_octl_01_ccpo_cmpval (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_CMPVAL } # [doc = "ZERO"]
# [inline (always)]
pub fn is_octl_01_ccpo_zero (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_ZERO } # [doc = "CAPCOND"]
# [inline (always)]
pub fn is_octl_01_ccpo_capcond (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_CAPCOND } # [doc = "FAULTCOND"]
# [inline (always)]
pub fn is_octl_01_ccpo_faultcond (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_FAULTCOND } # [doc = "CC0_MIRROR_ALL"]
# [inline (always)]
pub fn is_octl_01_ccpo_cc0_mirror_all (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_CC0_MIRROR_ALL } # [doc = "CC1_MIRROR_ALL"]
# [inline (always)]
pub fn is_octl_01_ccpo_cc1_mirror_all (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_CC1_MIRROR_ALL } # [doc = "DEADBAND"]
# [inline (always)]
pub fn is_octl_01_ccpo_deadband (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_DEADBAND } # [doc = "CNTDIR"]
# [inline (always)]
pub fn is_octl_01_ccpo_cntdir (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_CNTDIR } } # [doc = "Field `OCTL_01_CCPO` writer - CCP Output Source"]
pub type OCTL_01_CCPO_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 4 , O , OCTL_01_CCPO_A > ; impl < 'a , REG , const O : u8 > OCTL_01_CCPO_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "FUNCVAL"]
# [inline (always)]
pub fn octl_01_ccpo_funcval (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_FUNCVAL) } # [doc = "LOAD"]
# [inline (always)]
pub fn octl_01_ccpo_load (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_LOAD) } # [doc = "CMPVAL"]
# [inline (always)]
pub fn octl_01_ccpo_cmpval (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_CMPVAL) } # [doc = "ZERO"]
# [inline (always)]
pub fn octl_01_ccpo_zero (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_ZERO) } # [doc = "CAPCOND"]
# [inline (always)]
pub fn octl_01_ccpo_capcond (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_CAPCOND) } # [doc = "FAULTCOND"]
# [inline (always)]
pub fn octl_01_ccpo_faultcond (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_FAULTCOND) } # [doc = "CC0_MIRROR_ALL"]
# [inline (always)]
pub fn octl_01_ccpo_cc0_mirror_all (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_CC0_MIRROR_ALL) } # [doc = "CC1_MIRROR_ALL"]
# [inline (always)]
pub fn octl_01_ccpo_cc1_mirror_all (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_CC1_MIRROR_ALL) } # [doc = "DEADBAND"]
# [inline (always)]
pub fn octl_01_ccpo_deadband (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_DEADBAND) } # [doc = "CNTDIR"]
# [inline (always)]
pub fn octl_01_ccpo_cntdir (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_CNTDIR) } } # [doc = "Field `OCTL_01_CCPOINV` reader - CCP Output Invert The output as selected by CCPO is conditionally inverted."]
pub type OCTL_01_CCPOINV_R = crate :: BitReader < OCTL_01_CCPOINV_A > ; # [doc = "CCP Output Invert The output as selected by CCPO is conditionally inverted.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum OCTL_01_CCPOINV_A { # [doc = "0: NOINV"]
OCTL_01_CCPOINV_NOINV = 0 , # [doc = "1: INV"]
OCTL_01_CCPOINV_INV = 1 , } impl From < OCTL_01_CCPOINV_A > for bool { # [inline (always)]
fn from (variant : OCTL_01_CCPOINV_A) -> Self { variant as u8 != 0 } } impl OCTL_01_CCPOINV_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> OCTL_01_CCPOINV_A { match self . bits { false => OCTL_01_CCPOINV_A :: OCTL_01_CCPOINV_NOINV , true => OCTL_01_CCPOINV_A :: OCTL_01_CCPOINV_INV , } } # [doc = "NOINV"]
# [inline (always)]
pub fn is_octl_01_ccpoinv_noinv (& self) -> bool { * self == OCTL_01_CCPOINV_A :: OCTL_01_CCPOINV_NOINV } # [doc = "INV"]
# [inline (always)]
pub fn is_octl_01_ccpoinv_inv (& self) -> bool { * self == OCTL_01_CCPOINV_A :: OCTL_01_CCPOINV_INV } } # [doc = "Field `OCTL_01_CCPOINV` writer - CCP Output Invert The output as selected by CCPO is conditionally inverted."]
pub type OCTL_01_CCPOINV_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , OCTL_01_CCPOINV_A > ; impl < 'a , REG , const O : u8 > OCTL_01_CCPOINV_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOINV"]
# [inline (always)]
pub fn octl_01_ccpoinv_noinv (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPOINV_A :: OCTL_01_CCPOINV_NOINV) } # [doc = "INV"]
# [inline (always)]
pub fn octl_01_ccpoinv_inv (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPOINV_A :: OCTL_01_CCPOINV_INV) } } # [doc = "Field `OCTL_01_CCPIV` reader - CCP Initial Value This bit specifies the logical value put on the signal generator state while the counter is disabled (CTRCTL.EN == 0)."]
pub type OCTL_01_CCPIV_R = crate :: BitReader < OCTL_01_CCPIV_A > ; # [doc = "CCP Initial Value This bit specifies the logical value put on the signal generator state while the counter is disabled (CTRCTL.EN == 0).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum OCTL_01_CCPIV_A { # [doc = "0: LOW"]
OCTL_01_CCPIV_LOW = 0 , # [doc = "1: HIGH"]
OCTL_01_CCPIV_HIGH = 1 , } impl From < OCTL_01_CCPIV_A > for bool { # [inline (always)]
fn from (variant : OCTL_01_CCPIV_A) -> Self { variant as u8 != 0 } } impl OCTL_01_CCPIV_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> OCTL_01_CCPIV_A { match self . bits { false => OCTL_01_CCPIV_A :: OCTL_01_CCPIV_LOW , true => OCTL_01_CCPIV_A :: OCTL_01_CCPIV_HIGH , } } # [doc = "LOW"]
# [inline (always)]
pub fn is_octl_01_ccpiv_low (& self) -> bool { * self == OCTL_01_CCPIV_A :: OCTL_01_CCPIV_LOW } # [doc = "HIGH"]
# [inline (always)]
pub fn is_octl_01_ccpiv_high (& self) -> bool { * self == OCTL_01_CCPIV_A :: OCTL_01_CCPIV_HIGH } } # [doc = "Field `OCTL_01_CCPIV` writer - CCP Initial Value This bit specifies the logical value put on the signal generator state while the counter is disabled (CTRCTL.EN == 0)."]
pub type OCTL_01_CCPIV_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , OCTL_01_CCPIV_A > ; impl < 'a , REG , const O : u8 > OCTL_01_CCPIV_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "LOW"]
# [inline (always)]
pub fn octl_01_ccpiv_low (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPIV_A :: OCTL_01_CCPIV_LOW) } # [doc = "HIGH"]
# [inline (always)]
pub fn octl_01_ccpiv_high (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPIV_A :: OCTL_01_CCPIV_HIGH) } } impl R { # [doc = "Bits 0:3 - CCP Output Source"]
# [inline (always)]
pub fn octl_01_ccpo (& self) -> OCTL_01_CCPO_R { OCTL_01_CCPO_R :: new ((self . bits & 0x0f) as u8) } # [doc = "Bit 4 - CCP Output Invert The output as selected by CCPO is conditionally inverted."]
# [inline (always)]
pub fn octl_01_ccpoinv (& self) -> OCTL_01_CCPOINV_R { OCTL_01_CCPOINV_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - CCP Initial Value This bit specifies the logical value put on the signal generator state while the counter is disabled (CTRCTL.EN == 0)."]
# [inline (always)]
pub fn octl_01_ccpiv (& self) -> OCTL_01_CCPIV_R { OCTL_01_CCPIV_R :: new (((self . bits >> 5) & 1) != 0) } } impl W { # [doc = "Bits 0:3 - CCP Output Source"]
# [inline (always)]
# [must_use]
pub fn octl_01_ccpo (& mut self) -> OCTL_01_CCPO_W < OCTL_01_SPEC , 0 > { OCTL_01_CCPO_W :: new (self) } # [doc = "Bit 4 - CCP Output Invert The output as selected by CCPO is conditionally inverted."]
# [inline (always)]
# [must_use]
pub fn octl_01_ccpoinv (& mut self) -> OCTL_01_CCPOINV_W < OCTL_01_SPEC , 4 > { OCTL_01_CCPOINV_W :: new (self) } # [doc = "Bit 5 - CCP Initial Value This bit specifies the logical value put on the signal generator state while the counter is disabled (CTRCTL.EN == 0)."]
# [inline (always)]
# [must_use]
pub fn octl_01_ccpiv (& mut self) -> OCTL_01_CCPIV_W < OCTL_01_SPEC , 5 > { OCTL_01_CCPIV_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "CCP Output Control Registers\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`octl_01::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`octl_01::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct OCTL_01_SPEC ; impl crate :: RegisterSpec for OCTL_01_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`octl_01::R`](R) reader structure"]
impl crate :: Readable for OCTL_01_SPEC { } # [doc = "`write(|w| ..)` method takes [`octl_01::W`](W) writer structure"]
impl crate :: Writable for OCTL_01_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets OCTL_01[%s]
to value 0"]
impl crate :: Resettable for OCTL_01_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CCACT_01 (rw) register accessor: Capture or Compare Action Registers\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ccact_01::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ccact_01::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccact_01`]
module"]
pub type CCACT_01 = crate :: Reg < ccact_01 :: CCACT_01_SPEC > ; # [doc = "Capture or Compare Action Registers"]
pub mod ccact_01 { # [doc = "Register `CCACT_01[%s]` reader"]
pub type R = crate :: R < CCACT_01_SPEC > ; # [doc = "Register `CCACT_01[%s]` writer"]
pub type W = crate :: W < CCACT_01_SPEC > ; # [doc = "Field `CCACT_01_ZACT` reader - CCP Output Action on Zero Specifies what changes occur to CCP output as the result of a zero event."]
pub type CCACT_01_ZACT_R = crate :: FieldReader < CCACT_01_ZACT_A > ; # [doc = "CCP Output Action on Zero Specifies what changes occur to CCP output as the result of a zero event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCACT_01_ZACT_A { # [doc = "0: DISABLED"]
CCACT_01_ZACT_DISABLED = 0 , # [doc = "1: CCP_HIGH"]
CCACT_01_ZACT_CCP_HIGH = 1 , # [doc = "2: CCP_LOW"]
CCACT_01_ZACT_CCP_LOW = 2 , # [doc = "3: CCP_TOGGLE"]
CCACT_01_ZACT_CCP_TOGGLE = 3 , } impl From < CCACT_01_ZACT_A > for u8 { # [inline (always)]
fn from (variant : CCACT_01_ZACT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCACT_01_ZACT_A { type Ux = u8 ; } impl CCACT_01_ZACT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCACT_01_ZACT_A { match self . bits { 0 => CCACT_01_ZACT_A :: CCACT_01_ZACT_DISABLED , 1 => CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_HIGH , 2 => CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_LOW , 3 => CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_TOGGLE , _ => unreachable ! () , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ccact_01_zact_disabled (& self) -> bool { * self == CCACT_01_ZACT_A :: CCACT_01_ZACT_DISABLED } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn is_ccact_01_zact_ccp_high (& self) -> bool { * self == CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_HIGH } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn is_ccact_01_zact_ccp_low (& self) -> bool { * self == CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_LOW } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn is_ccact_01_zact_ccp_toggle (& self) -> bool { * self == CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_TOGGLE } } # [doc = "Field `CCACT_01_ZACT` writer - CCP Output Action on Zero Specifies what changes occur to CCP output as the result of a zero event."]
pub type CCACT_01_ZACT_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , CCACT_01_ZACT_A > ; impl < 'a , REG , const O : u8 > CCACT_01_ZACT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLED"]
# [inline (always)]
pub fn ccact_01_zact_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_ZACT_A :: CCACT_01_ZACT_DISABLED) } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn ccact_01_zact_ccp_high (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_HIGH) } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn ccact_01_zact_ccp_low (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_LOW) } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn ccact_01_zact_ccp_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_TOGGLE) } } # [doc = "Field `CCACT_01_LACT` reader - CCP Output Action on Load Specifies what changes occur to CCP output as the result of a load event."]
pub type CCACT_01_LACT_R = crate :: FieldReader < CCACT_01_LACT_A > ; # [doc = "CCP Output Action on Load Specifies what changes occur to CCP output as the result of a load event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCACT_01_LACT_A { # [doc = "0: DISABLED"]
CCACT_01_LACT_DISABLED = 0 , # [doc = "1: CCP_HIGH"]
CCACT_01_LACT_CCP_HIGH = 1 , # [doc = "2: CCP_LOW"]
CCACT_01_LACT_CCP_LOW = 2 , # [doc = "3: CCP_TOGGLE"]
CCACT_01_LACT_CCP_TOGGLE = 3 , } impl From < CCACT_01_LACT_A > for u8 { # [inline (always)]
fn from (variant : CCACT_01_LACT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCACT_01_LACT_A { type Ux = u8 ; } impl CCACT_01_LACT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCACT_01_LACT_A { match self . bits { 0 => CCACT_01_LACT_A :: CCACT_01_LACT_DISABLED , 1 => CCACT_01_LACT_A :: CCACT_01_LACT_CCP_HIGH , 2 => CCACT_01_LACT_A :: CCACT_01_LACT_CCP_LOW , 3 => CCACT_01_LACT_A :: CCACT_01_LACT_CCP_TOGGLE , _ => unreachable ! () , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ccact_01_lact_disabled (& self) -> bool { * self == CCACT_01_LACT_A :: CCACT_01_LACT_DISABLED } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn is_ccact_01_lact_ccp_high (& self) -> bool { * self == CCACT_01_LACT_A :: CCACT_01_LACT_CCP_HIGH } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn is_ccact_01_lact_ccp_low (& self) -> bool { * self == CCACT_01_LACT_A :: CCACT_01_LACT_CCP_LOW } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn is_ccact_01_lact_ccp_toggle (& self) -> bool { * self == CCACT_01_LACT_A :: CCACT_01_LACT_CCP_TOGGLE } } # [doc = "Field `CCACT_01_LACT` writer - CCP Output Action on Load Specifies what changes occur to CCP output as the result of a load event."]
pub type CCACT_01_LACT_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , CCACT_01_LACT_A > ; impl < 'a , REG , const O : u8 > CCACT_01_LACT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLED"]
# [inline (always)]
pub fn ccact_01_lact_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_LACT_A :: CCACT_01_LACT_DISABLED) } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn ccact_01_lact_ccp_high (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_LACT_A :: CCACT_01_LACT_CCP_HIGH) } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn ccact_01_lact_ccp_low (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_LACT_A :: CCACT_01_LACT_CCP_LOW) } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn ccact_01_lact_ccp_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_LACT_A :: CCACT_01_LACT_CCP_TOGGLE) } } # [doc = "Field `CCACT_01_CDACT` reader - CCP Output Action on Compare (Down) This field describes the resulting action of the signal generator upon detecting a compare event while counting down."]
pub type CCACT_01_CDACT_R = crate :: FieldReader < CCACT_01_CDACT_A > ; # [doc = "CCP Output Action on Compare (Down) This field describes the resulting action of the signal generator upon detecting a compare event while counting down.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCACT_01_CDACT_A { # [doc = "0: DISABLED"]
CCACT_01_CDACT_DISABLED = 0 , # [doc = "1: CCP_HIGH"]
CCACT_01_CDACT_CCP_HIGH = 1 , # [doc = "2: CCP_LOW"]
CCACT_01_CDACT_CCP_LOW = 2 , # [doc = "3: CCP_TOGGLE"]
CCACT_01_CDACT_CCP_TOGGLE = 3 , } impl From < CCACT_01_CDACT_A > for u8 { # [inline (always)]
fn from (variant : CCACT_01_CDACT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCACT_01_CDACT_A { type Ux = u8 ; } impl CCACT_01_CDACT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCACT_01_CDACT_A { match self . bits { 0 => CCACT_01_CDACT_A :: CCACT_01_CDACT_DISABLED , 1 => CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_HIGH , 2 => CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_LOW , 3 => CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_TOGGLE , _ => unreachable ! () , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ccact_01_cdact_disabled (& self) -> bool { * self == CCACT_01_CDACT_A :: CCACT_01_CDACT_DISABLED } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn is_ccact_01_cdact_ccp_high (& self) -> bool { * self == CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_HIGH } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn is_ccact_01_cdact_ccp_low (& self) -> bool { * self == CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_LOW } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn is_ccact_01_cdact_ccp_toggle (& self) -> bool { * self == CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_TOGGLE } } # [doc = "Field `CCACT_01_CDACT` writer - CCP Output Action on Compare (Down) This field describes the resulting action of the signal generator upon detecting a compare event while counting down."]
pub type CCACT_01_CDACT_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , CCACT_01_CDACT_A > ; impl < 'a , REG , const O : u8 > CCACT_01_CDACT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLED"]
# [inline (always)]
pub fn ccact_01_cdact_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CDACT_A :: CCACT_01_CDACT_DISABLED) } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn ccact_01_cdact_ccp_high (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_HIGH) } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn ccact_01_cdact_ccp_low (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_LOW) } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn ccact_01_cdact_ccp_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_TOGGLE) } } # [doc = "Field `CCACT_01_CUACT` reader - CCP Output Action on Compare (Up) This field describes the resulting action of the signal generator upon detecting a compare event while counting up."]
pub type CCACT_01_CUACT_R = crate :: FieldReader < CCACT_01_CUACT_A > ; # [doc = "CCP Output Action on Compare (Up) This field describes the resulting action of the signal generator upon detecting a compare event while counting up.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCACT_01_CUACT_A { # [doc = "0: DISABLED"]
CCACT_01_CUACT_DISABLED = 0 , # [doc = "1: CCP_HIGH"]
CCACT_01_CUACT_CCP_HIGH = 1 , # [doc = "2: CCP_LOW"]
CCACT_01_CUACT_CCP_LOW = 2 , # [doc = "3: CCP_TOGGLE"]
CCACT_01_CUACT_CCP_TOGGLE = 3 , } impl From < CCACT_01_CUACT_A > for u8 { # [inline (always)]
fn from (variant : CCACT_01_CUACT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCACT_01_CUACT_A { type Ux = u8 ; } impl CCACT_01_CUACT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCACT_01_CUACT_A { match self . bits { 0 => CCACT_01_CUACT_A :: CCACT_01_CUACT_DISABLED , 1 => CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_HIGH , 2 => CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_LOW , 3 => CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_TOGGLE , _ => unreachable ! () , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ccact_01_cuact_disabled (& self) -> bool { * self == CCACT_01_CUACT_A :: CCACT_01_CUACT_DISABLED } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn is_ccact_01_cuact_ccp_high (& self) -> bool { * self == CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_HIGH } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn is_ccact_01_cuact_ccp_low (& self) -> bool { * self == CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_LOW } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn is_ccact_01_cuact_ccp_toggle (& self) -> bool { * self == CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_TOGGLE } } # [doc = "Field `CCACT_01_CUACT` writer - CCP Output Action on Compare (Up) This field describes the resulting action of the signal generator upon detecting a compare event while counting up."]
pub type CCACT_01_CUACT_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , CCACT_01_CUACT_A > ; impl < 'a , REG , const O : u8 > CCACT_01_CUACT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLED"]
# [inline (always)]
pub fn ccact_01_cuact_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CUACT_A :: CCACT_01_CUACT_DISABLED) } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn ccact_01_cuact_ccp_high (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_HIGH) } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn ccact_01_cuact_ccp_low (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_LOW) } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn ccact_01_cuact_ccp_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_TOGGLE) } } # [doc = "Field `CCACT_01_CC2DACT` reader - CCP Output Action on CC2D event."]
pub type CCACT_01_CC2DACT_R = crate :: FieldReader < CCACT_01_CC2DACT_A > ; # [doc = "CCP Output Action on CC2D event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCACT_01_CC2DACT_A { # [doc = "0: DISABLED"]
CCACT_01_CC2DACT_DISABLED = 0 , # [doc = "1: CCP_HIGH"]
CCACT_01_CC2DACT_CCP_HIGH = 1 , # [doc = "2: CCP_LOW"]
CCACT_01_CC2DACT_CCP_LOW = 2 , # [doc = "3: CCP_TOGGLE"]
CCACT_01_CC2DACT_CCP_TOGGLE = 3 , } impl From < CCACT_01_CC2DACT_A > for u8 { # [inline (always)]
fn from (variant : CCACT_01_CC2DACT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCACT_01_CC2DACT_A { type Ux = u8 ; } impl CCACT_01_CC2DACT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCACT_01_CC2DACT_A { match self . bits { 0 => CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_DISABLED , 1 => CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_HIGH , 2 => CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_LOW , 3 => CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_TOGGLE , _ => unreachable ! () , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ccact_01_cc2dact_disabled (& self) -> bool { * self == CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_DISABLED } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn is_ccact_01_cc2dact_ccp_high (& self) -> bool { * self == CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_HIGH } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn is_ccact_01_cc2dact_ccp_low (& self) -> bool { * self == CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_LOW } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn is_ccact_01_cc2dact_ccp_toggle (& self) -> bool { * self == CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_TOGGLE } } # [doc = "Field `CCACT_01_CC2DACT` writer - CCP Output Action on CC2D event."]
pub type CCACT_01_CC2DACT_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , CCACT_01_CC2DACT_A > ; impl < 'a , REG , const O : u8 > CCACT_01_CC2DACT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLED"]
# [inline (always)]
pub fn ccact_01_cc2dact_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_DISABLED) } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn ccact_01_cc2dact_ccp_high (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_HIGH) } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn ccact_01_cc2dact_ccp_low (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_LOW) } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn ccact_01_cc2dact_ccp_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_TOGGLE) } } # [doc = "Field `CCACT_01_CC2UACT` reader - CCP Output Action on CC2U event."]
pub type CCACT_01_CC2UACT_R = crate :: FieldReader < CCACT_01_CC2UACT_A > ; # [doc = "CCP Output Action on CC2U event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCACT_01_CC2UACT_A { # [doc = "0: DISABLED"]
CCACT_01_CC2UACT_DISABLED = 0 , # [doc = "1: CCP_HIGH"]
CCACT_01_CC2UACT_CCP_HIGH = 1 , # [doc = "2: CCP_LOW"]
CCACT_01_CC2UACT_CCP_LOW = 2 , # [doc = "3: CCP_TOGGLE"]
CCACT_01_CC2UACT_CCP_TOGGLE = 3 , } impl From < CCACT_01_CC2UACT_A > for u8 { # [inline (always)]
fn from (variant : CCACT_01_CC2UACT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCACT_01_CC2UACT_A { type Ux = u8 ; } impl CCACT_01_CC2UACT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCACT_01_CC2UACT_A { match self . bits { 0 => CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_DISABLED , 1 => CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_HIGH , 2 => CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_LOW , 3 => CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_TOGGLE , _ => unreachable ! () , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ccact_01_cc2uact_disabled (& self) -> bool { * self == CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_DISABLED } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn is_ccact_01_cc2uact_ccp_high (& self) -> bool { * self == CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_HIGH } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn is_ccact_01_cc2uact_ccp_low (& self) -> bool { * self == CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_LOW } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn is_ccact_01_cc2uact_ccp_toggle (& self) -> bool { * self == CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_TOGGLE } } # [doc = "Field `CCACT_01_CC2UACT` writer - CCP Output Action on CC2U event."]
pub type CCACT_01_CC2UACT_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , CCACT_01_CC2UACT_A > ; impl < 'a , REG , const O : u8 > CCACT_01_CC2UACT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLED"]
# [inline (always)]
pub fn ccact_01_cc2uact_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_DISABLED) } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn ccact_01_cc2uact_ccp_high (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_HIGH) } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn ccact_01_cc2uact_ccp_low (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_LOW) } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn ccact_01_cc2uact_ccp_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_TOGGLE) } } # [doc = "Field `CCACT_01_SWFRCACT` reader - CCP Output Action on Software Froce Output This field describes the resulting action of software force. This action has a shadow register, which will be updated under specific condition. So that this register cannot take into effect immediately."]
pub type CCACT_01_SWFRCACT_R = crate :: FieldReader < CCACT_01_SWFRCACT_A > ; # [doc = "CCP Output Action on Software Froce Output This field describes the resulting action of software force. This action has a shadow register, which will be updated under specific condition. So that this register cannot take into effect immediately.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCACT_01_SWFRCACT_A { # [doc = "0: DISABLED"]
CCACT_01_SWFRCACT_DISABLED = 0 , # [doc = "1: CCP_HIGH"]
CCACT_01_SWFRCACT_CCP_HIGH = 1 , # [doc = "2: CCP_LOW"]
CCACT_01_SWFRCACT_CCP_LOW = 2 , } impl From < CCACT_01_SWFRCACT_A > for u8 { # [inline (always)]
fn from (variant : CCACT_01_SWFRCACT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCACT_01_SWFRCACT_A { type Ux = u8 ; } impl CCACT_01_SWFRCACT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCACT_01_SWFRCACT_A > { match self . bits { 0 => Some (CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_DISABLED) , 1 => Some (CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_CCP_HIGH) , 2 => Some (CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_CCP_LOW) , _ => None , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ccact_01_swfrcact_disabled (& self) -> bool { * self == CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_DISABLED } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn is_ccact_01_swfrcact_ccp_high (& self) -> bool { * self == CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_CCP_HIGH } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn is_ccact_01_swfrcact_ccp_low (& self) -> bool { * self == CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_CCP_LOW } } # [doc = "Field `CCACT_01_SWFRCACT` writer - CCP Output Action on Software Froce Output This field describes the resulting action of software force. This action has a shadow register, which will be updated under specific condition. So that this register cannot take into effect immediately."]
pub type CCACT_01_SWFRCACT_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , CCACT_01_SWFRCACT_A > ; impl < 'a , REG , const O : u8 > CCACT_01_SWFRCACT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLED"]
# [inline (always)]
pub fn ccact_01_swfrcact_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_DISABLED) } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn ccact_01_swfrcact_ccp_high (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_CCP_HIGH) } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn ccact_01_swfrcact_ccp_low (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_CCP_LOW) } } impl R { # [doc = "Bits 0:1 - CCP Output Action on Zero Specifies what changes occur to CCP output as the result of a zero event."]
# [inline (always)]
pub fn ccact_01_zact (& self) -> CCACT_01_ZACT_R { CCACT_01_ZACT_R :: new ((self . bits & 3) as u8) } # [doc = "Bits 3:4 - CCP Output Action on Load Specifies what changes occur to CCP output as the result of a load event."]
# [inline (always)]
pub fn ccact_01_lact (& self) -> CCACT_01_LACT_R { CCACT_01_LACT_R :: new (((self . bits >> 3) & 3) as u8) } # [doc = "Bits 6:7 - CCP Output Action on Compare (Down) This field describes the resulting action of the signal generator upon detecting a compare event while counting down."]
# [inline (always)]
pub fn ccact_01_cdact (& self) -> CCACT_01_CDACT_R { CCACT_01_CDACT_R :: new (((self . bits >> 6) & 3) as u8) } # [doc = "Bits 9:10 - CCP Output Action on Compare (Up) This field describes the resulting action of the signal generator upon detecting a compare event while counting up."]
# [inline (always)]
pub fn ccact_01_cuact (& self) -> CCACT_01_CUACT_R { CCACT_01_CUACT_R :: new (((self . bits >> 9) & 3) as u8) } # [doc = "Bits 12:13 - CCP Output Action on CC2D event."]
# [inline (always)]
pub fn ccact_01_cc2dact (& self) -> CCACT_01_CC2DACT_R { CCACT_01_CC2DACT_R :: new (((self . bits >> 12) & 3) as u8) } # [doc = "Bits 15:16 - CCP Output Action on CC2U event."]
# [inline (always)]
pub fn ccact_01_cc2uact (& self) -> CCACT_01_CC2UACT_R { CCACT_01_CC2UACT_R :: new (((self . bits >> 15) & 3) as u8) } # [doc = "Bits 28:29 - CCP Output Action on Software Froce Output This field describes the resulting action of software force. This action has a shadow register, which will be updated under specific condition. So that this register cannot take into effect immediately."]
# [inline (always)]
pub fn ccact_01_swfrcact (& self) -> CCACT_01_SWFRCACT_R { CCACT_01_SWFRCACT_R :: new (((self . bits >> 28) & 3) as u8) } } impl W { # [doc = "Bits 0:1 - CCP Output Action on Zero Specifies what changes occur to CCP output as the result of a zero event."]
# [inline (always)]
# [must_use]
pub fn ccact_01_zact (& mut self) -> CCACT_01_ZACT_W < CCACT_01_SPEC , 0 > { CCACT_01_ZACT_W :: new (self) } # [doc = "Bits 3:4 - CCP Output Action on Load Specifies what changes occur to CCP output as the result of a load event."]
# [inline (always)]
# [must_use]
pub fn ccact_01_lact (& mut self) -> CCACT_01_LACT_W < CCACT_01_SPEC , 3 > { CCACT_01_LACT_W :: new (self) } # [doc = "Bits 6:7 - CCP Output Action on Compare (Down) This field describes the resulting action of the signal generator upon detecting a compare event while counting down."]
# [inline (always)]
# [must_use]
pub fn ccact_01_cdact (& mut self) -> CCACT_01_CDACT_W < CCACT_01_SPEC , 6 > { CCACT_01_CDACT_W :: new (self) } # [doc = "Bits 9:10 - CCP Output Action on Compare (Up) This field describes the resulting action of the signal generator upon detecting a compare event while counting up."]
# [inline (always)]
# [must_use]
pub fn ccact_01_cuact (& mut self) -> CCACT_01_CUACT_W < CCACT_01_SPEC , 9 > { CCACT_01_CUACT_W :: new (self) } # [doc = "Bits 12:13 - CCP Output Action on CC2D event."]
# [inline (always)]
# [must_use]
pub fn ccact_01_cc2dact (& mut self) -> CCACT_01_CC2DACT_W < CCACT_01_SPEC , 12 > { CCACT_01_CC2DACT_W :: new (self) } # [doc = "Bits 15:16 - CCP Output Action on CC2U event."]
# [inline (always)]
# [must_use]
pub fn ccact_01_cc2uact (& mut self) -> CCACT_01_CC2UACT_W < CCACT_01_SPEC , 15 > { CCACT_01_CC2UACT_W :: new (self) } # [doc = "Bits 28:29 - CCP Output Action on Software Froce Output This field describes the resulting action of software force. This action has a shadow register, which will be updated under specific condition. So that this register cannot take into effect immediately."]
# [inline (always)]
# [must_use]
pub fn ccact_01_swfrcact (& mut self) -> CCACT_01_SWFRCACT_W < CCACT_01_SPEC , 28 > { CCACT_01_SWFRCACT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Capture or Compare Action Registers\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ccact_01::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ccact_01::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CCACT_01_SPEC ; impl crate :: RegisterSpec for CCACT_01_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ccact_01::R`](R) reader structure"]
impl crate :: Readable for CCACT_01_SPEC { } # [doc = "`write(|w| ..)` method takes [`ccact_01::W`](W) writer structure"]
impl crate :: Writable for CCACT_01_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CCACT_01[%s]
to value 0"]
impl crate :: Resettable for CCACT_01_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "IFCTL_01 (rw) register accessor: Input Filter Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ifctl_01::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ifctl_01::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ifctl_01`]
module"]
pub type IFCTL_01 = crate :: Reg < ifctl_01 :: IFCTL_01_SPEC > ; # [doc = "Input Filter Control Register"]
pub mod ifctl_01 { # [doc = "Register `IFCTL_01[%s]` reader"]
pub type R = crate :: R < IFCTL_01_SPEC > ; # [doc = "Register `IFCTL_01[%s]` writer"]
pub type W = crate :: W < IFCTL_01_SPEC > ; # [doc = "Field `IFCTL_01_ISEL` reader - Input Select (CCP0) This field selects the input source to the filter input. 4h-7h = Reserved"]
pub type IFCTL_01_ISEL_R = crate :: FieldReader < IFCTL_01_ISEL_A > ; # [doc = "Input Select (CCP0) This field selects the input source to the filter input. 4h-7h = Reserved\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum IFCTL_01_ISEL_A { # [doc = "0: CCPX_INPUT"]
IFCTL_01_ISEL_CCPX_INPUT = 0 , # [doc = "1: CCPX_INPUT_PAIR"]
IFCTL_01_ISEL_CCPX_INPUT_PAIR = 1 , # [doc = "2: CCP0_INPUT"]
IFCTL_01_ISEL_CCP0_INPUT = 2 , # [doc = "3: TRIG_INPUT"]
IFCTL_01_ISEL_TRIG_INPUT = 3 , # [doc = "4: CCP_XOR"]
IFCTL_01_ISEL_CCP_XOR = 4 , # [doc = "5: FSUB0"]
IFCTL_01_ISEL_FSUB0 = 5 , # [doc = "6: FSUB1"]
IFCTL_01_ISEL_FSUB1 = 6 , # [doc = "7: COMP0"]
IFCTL_01_ISEL_COMP0 = 7 , # [doc = "8: COMP1"]
IFCTL_01_ISEL_COMP1 = 8 , # [doc = "9: COMP2"]
IFCTL_01_ISEL_COMP2 = 9 , } impl From < IFCTL_01_ISEL_A > for u8 { # [inline (always)]
fn from (variant : IFCTL_01_ISEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for IFCTL_01_ISEL_A { type Ux = u8 ; } impl IFCTL_01_ISEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < IFCTL_01_ISEL_A > { match self . bits { 0 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCPX_INPUT) , 1 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCPX_INPUT_PAIR) , 2 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCP0_INPUT) , 3 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_TRIG_INPUT) , 4 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCP_XOR) , 5 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_FSUB0) , 6 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_FSUB1) , 7 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP0) , 8 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP1) , 9 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP2) , _ => None , } } # [doc = "CCPX_INPUT"]
# [inline (always)]
pub fn is_ifctl_01_isel_ccpx_input (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCPX_INPUT } # [doc = "CCPX_INPUT_PAIR"]
# [inline (always)]
pub fn is_ifctl_01_isel_ccpx_input_pair (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCPX_INPUT_PAIR } # [doc = "CCP0_INPUT"]
# [inline (always)]
pub fn is_ifctl_01_isel_ccp0_input (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCP0_INPUT } # [doc = "TRIG_INPUT"]
# [inline (always)]
pub fn is_ifctl_01_isel_trig_input (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_TRIG_INPUT } # [doc = "CCP_XOR"]
# [inline (always)]
pub fn is_ifctl_01_isel_ccp_xor (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCP_XOR } # [doc = "FSUB0"]
# [inline (always)]
pub fn is_ifctl_01_isel_fsub0 (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_FSUB0 } # [doc = "FSUB1"]
# [inline (always)]
pub fn is_ifctl_01_isel_fsub1 (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_FSUB1 } # [doc = "COMP0"]
# [inline (always)]
pub fn is_ifctl_01_isel_comp0 (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP0 } # [doc = "COMP1"]
# [inline (always)]
pub fn is_ifctl_01_isel_comp1 (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP1 } # [doc = "COMP2"]
# [inline (always)]
pub fn is_ifctl_01_isel_comp2 (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP2 } } # [doc = "Field `IFCTL_01_ISEL` writer - Input Select (CCP0) This field selects the input source to the filter input. 4h-7h = Reserved"]
pub type IFCTL_01_ISEL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 4 , O , IFCTL_01_ISEL_A > ; impl < 'a , REG , const O : u8 > IFCTL_01_ISEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "CCPX_INPUT"]
# [inline (always)]
pub fn ifctl_01_isel_ccpx_input (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCPX_INPUT) } # [doc = "CCPX_INPUT_PAIR"]
# [inline (always)]
pub fn ifctl_01_isel_ccpx_input_pair (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCPX_INPUT_PAIR) } # [doc = "CCP0_INPUT"]
# [inline (always)]
pub fn ifctl_01_isel_ccp0_input (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCP0_INPUT) } # [doc = "TRIG_INPUT"]
# [inline (always)]
pub fn ifctl_01_isel_trig_input (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_TRIG_INPUT) } # [doc = "CCP_XOR"]
# [inline (always)]
pub fn ifctl_01_isel_ccp_xor (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCP_XOR) } # [doc = "FSUB0"]
# [inline (always)]
pub fn ifctl_01_isel_fsub0 (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_FSUB0) } # [doc = "FSUB1"]
# [inline (always)]
pub fn ifctl_01_isel_fsub1 (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_FSUB1) } # [doc = "COMP0"]
# [inline (always)]
pub fn ifctl_01_isel_comp0 (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP0) } # [doc = "COMP1"]
# [inline (always)]
pub fn ifctl_01_isel_comp1 (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP1) } # [doc = "COMP2"]
# [inline (always)]
pub fn ifctl_01_isel_comp2 (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP2) } } # [doc = "Field `IFCTL_01_INV` reader - Input Inversion This bit controls whether the selected input is inverted."]
pub type IFCTL_01_INV_R = crate :: BitReader < IFCTL_01_INV_A > ; # [doc = "Input Inversion This bit controls whether the selected input is inverted.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IFCTL_01_INV_A { # [doc = "0: NOINVERT"]
IFCTL_01_INV_NOINVERT = 0 , # [doc = "1: INVERT"]
IFCTL_01_INV_INVERT = 1 , } impl From < IFCTL_01_INV_A > for bool { # [inline (always)]
fn from (variant : IFCTL_01_INV_A) -> Self { variant as u8 != 0 } } impl IFCTL_01_INV_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IFCTL_01_INV_A { match self . bits { false => IFCTL_01_INV_A :: IFCTL_01_INV_NOINVERT , true => IFCTL_01_INV_A :: IFCTL_01_INV_INVERT , } } # [doc = "NOINVERT"]
# [inline (always)]
pub fn is_ifctl_01_inv_noinvert (& self) -> bool { * self == IFCTL_01_INV_A :: IFCTL_01_INV_NOINVERT } # [doc = "INVERT"]
# [inline (always)]
pub fn is_ifctl_01_inv_invert (& self) -> bool { * self == IFCTL_01_INV_A :: IFCTL_01_INV_INVERT } } # [doc = "Field `IFCTL_01_INV` writer - Input Inversion This bit controls whether the selected input is inverted."]
pub type IFCTL_01_INV_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IFCTL_01_INV_A > ; impl < 'a , REG , const O : u8 > IFCTL_01_INV_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOINVERT"]
# [inline (always)]
pub fn ifctl_01_inv_noinvert (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_INV_A :: IFCTL_01_INV_NOINVERT) } # [doc = "INVERT"]
# [inline (always)]
pub fn ifctl_01_inv_invert (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_INV_A :: IFCTL_01_INV_INVERT) } } # [doc = "Field `IFCTL_01_FP` reader - Filter Period. This field specifies the sample period for the input filter. I.e. The input is sampled for FP timer clocks during filtering."]
pub type IFCTL_01_FP_R = crate :: FieldReader < IFCTL_01_FP_A > ; # [doc = "Filter Period. This field specifies the sample period for the input filter. I.e. The input is sampled for FP timer clocks during filtering.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum IFCTL_01_FP_A { # [doc = "0: _3"]
IFCTL_01_FP__3 = 0 , # [doc = "1: _5"]
IFCTL_01_FP__5 = 1 , # [doc = "2: _8"]
IFCTL_01_FP__8 = 2 , } impl From < IFCTL_01_FP_A > for u8 { # [inline (always)]
fn from (variant : IFCTL_01_FP_A) -> Self { variant as _ } } impl crate :: FieldSpec for IFCTL_01_FP_A { type Ux = u8 ; } impl IFCTL_01_FP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < IFCTL_01_FP_A > { match self . bits { 0 => Some (IFCTL_01_FP_A :: IFCTL_01_FP__3) , 1 => Some (IFCTL_01_FP_A :: IFCTL_01_FP__5) , 2 => Some (IFCTL_01_FP_A :: IFCTL_01_FP__8) , _ => None , } } # [doc = "_3"]
# [inline (always)]
pub fn is_ifctl_01_fp__3 (& self) -> bool { * self == IFCTL_01_FP_A :: IFCTL_01_FP__3 } # [doc = "_5"]
# [inline (always)]
pub fn is_ifctl_01_fp__5 (& self) -> bool { * self == IFCTL_01_FP_A :: IFCTL_01_FP__5 } # [doc = "_8"]
# [inline (always)]
pub fn is_ifctl_01_fp__8 (& self) -> bool { * self == IFCTL_01_FP_A :: IFCTL_01_FP__8 } } # [doc = "Field `IFCTL_01_FP` writer - Filter Period. This field specifies the sample period for the input filter. I.e. The input is sampled for FP timer clocks during filtering."]
pub type IFCTL_01_FP_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , IFCTL_01_FP_A > ; impl < 'a , REG , const O : u8 > IFCTL_01_FP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_3"]
# [inline (always)]
pub fn ifctl_01_fp__3 (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_FP_A :: IFCTL_01_FP__3) } # [doc = "_5"]
# [inline (always)]
pub fn ifctl_01_fp__5 (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_FP_A :: IFCTL_01_FP__5) } # [doc = "_8"]
# [inline (always)]
pub fn ifctl_01_fp__8 (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_FP_A :: IFCTL_01_FP__8) } } # [doc = "Field `IFCTL_01_CPV` reader - Consecutive Period/Voting Select This bit controls whether the input filter uses a stricter consecutive period count or majority voting."]
pub type IFCTL_01_CPV_R = crate :: BitReader < IFCTL_01_CPV_A > ; # [doc = "Consecutive Period/Voting Select This bit controls whether the input filter uses a stricter consecutive period count or majority voting.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IFCTL_01_CPV_A { # [doc = "0: CONSECUTIVE"]
IFCTL_01_CPV_CONSECUTIVE = 0 , # [doc = "1: VOTING"]
IFCTL_01_CPV_VOTING = 1 , } impl From < IFCTL_01_CPV_A > for bool { # [inline (always)]
fn from (variant : IFCTL_01_CPV_A) -> Self { variant as u8 != 0 } } impl IFCTL_01_CPV_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IFCTL_01_CPV_A { match self . bits { false => IFCTL_01_CPV_A :: IFCTL_01_CPV_CONSECUTIVE , true => IFCTL_01_CPV_A :: IFCTL_01_CPV_VOTING , } } # [doc = "CONSECUTIVE"]
# [inline (always)]
pub fn is_ifctl_01_cpv_consecutive (& self) -> bool { * self == IFCTL_01_CPV_A :: IFCTL_01_CPV_CONSECUTIVE } # [doc = "VOTING"]
# [inline (always)]
pub fn is_ifctl_01_cpv_voting (& self) -> bool { * self == IFCTL_01_CPV_A :: IFCTL_01_CPV_VOTING } } # [doc = "Field `IFCTL_01_CPV` writer - Consecutive Period/Voting Select This bit controls whether the input filter uses a stricter consecutive period count or majority voting."]
pub type IFCTL_01_CPV_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IFCTL_01_CPV_A > ; impl < 'a , REG , const O : u8 > IFCTL_01_CPV_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CONSECUTIVE"]
# [inline (always)]
pub fn ifctl_01_cpv_consecutive (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_CPV_A :: IFCTL_01_CPV_CONSECUTIVE) } # [doc = "VOTING"]
# [inline (always)]
pub fn ifctl_01_cpv_voting (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_CPV_A :: IFCTL_01_CPV_VOTING) } } # [doc = "Field `IFCTL_01_FE` reader - Filter Enable This bit controls whether the input is filtered by the input filter or bypasses to the edge detect."]
pub type IFCTL_01_FE_R = crate :: BitReader < IFCTL_01_FE_A > ; # [doc = "Filter Enable This bit controls whether the input is filtered by the input filter or bypasses to the edge detect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IFCTL_01_FE_A { # [doc = "0: DISABLED"]
IFCTL_01_FE_DISABLED = 0 , # [doc = "1: ENABLED"]
IFCTL_01_FE_ENABLED = 1 , } impl From < IFCTL_01_FE_A > for bool { # [inline (always)]
fn from (variant : IFCTL_01_FE_A) -> Self { variant as u8 != 0 } } impl IFCTL_01_FE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IFCTL_01_FE_A { match self . bits { false => IFCTL_01_FE_A :: IFCTL_01_FE_DISABLED , true => IFCTL_01_FE_A :: IFCTL_01_FE_ENABLED , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ifctl_01_fe_disabled (& self) -> bool { * self == IFCTL_01_FE_A :: IFCTL_01_FE_DISABLED } # [doc = "ENABLED"]
# [inline (always)]
pub fn is_ifctl_01_fe_enabled (& self) -> bool { * self == IFCTL_01_FE_A :: IFCTL_01_FE_ENABLED } } # [doc = "Field `IFCTL_01_FE` writer - Filter Enable This bit controls whether the input is filtered by the input filter or bypasses to the edge detect."]
pub type IFCTL_01_FE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IFCTL_01_FE_A > ; impl < 'a , REG , const O : u8 > IFCTL_01_FE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn ifctl_01_fe_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_FE_A :: IFCTL_01_FE_DISABLED) } # [doc = "ENABLED"]
# [inline (always)]
pub fn ifctl_01_fe_enabled (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_FE_A :: IFCTL_01_FE_ENABLED) } } impl R { # [doc = "Bits 0:3 - Input Select (CCP0) This field selects the input source to the filter input. 4h-7h = Reserved"]
# [inline (always)]
pub fn ifctl_01_isel (& self) -> IFCTL_01_ISEL_R { IFCTL_01_ISEL_R :: new ((self . bits & 0x0f) as u8) } # [doc = "Bit 7 - Input Inversion This bit controls whether the selected input is inverted."]
# [inline (always)]
pub fn ifctl_01_inv (& self) -> IFCTL_01_INV_R { IFCTL_01_INV_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bits 8:9 - Filter Period. This field specifies the sample period for the input filter. I.e. The input is sampled for FP timer clocks during filtering."]
# [inline (always)]
pub fn ifctl_01_fp (& self) -> IFCTL_01_FP_R { IFCTL_01_FP_R :: new (((self . bits >> 8) & 3) as u8) } # [doc = "Bit 11 - Consecutive Period/Voting Select This bit controls whether the input filter uses a stricter consecutive period count or majority voting."]
# [inline (always)]
pub fn ifctl_01_cpv (& self) -> IFCTL_01_CPV_R { IFCTL_01_CPV_R :: new (((self . bits >> 11) & 1) != 0) } # [doc = "Bit 12 - Filter Enable This bit controls whether the input is filtered by the input filter or bypasses to the edge detect."]
# [inline (always)]
pub fn ifctl_01_fe (& self) -> IFCTL_01_FE_R { IFCTL_01_FE_R :: new (((self . bits >> 12) & 1) != 0) } } impl W { # [doc = "Bits 0:3 - Input Select (CCP0) This field selects the input source to the filter input. 4h-7h = Reserved"]
# [inline (always)]
# [must_use]
pub fn ifctl_01_isel (& mut self) -> IFCTL_01_ISEL_W < IFCTL_01_SPEC , 0 > { IFCTL_01_ISEL_W :: new (self) } # [doc = "Bit 7 - Input Inversion This bit controls whether the selected input is inverted."]
# [inline (always)]
# [must_use]
pub fn ifctl_01_inv (& mut self) -> IFCTL_01_INV_W < IFCTL_01_SPEC , 7 > { IFCTL_01_INV_W :: new (self) } # [doc = "Bits 8:9 - Filter Period. This field specifies the sample period for the input filter. I.e. The input is sampled for FP timer clocks during filtering."]
# [inline (always)]
# [must_use]
pub fn ifctl_01_fp (& mut self) -> IFCTL_01_FP_W < IFCTL_01_SPEC , 8 > { IFCTL_01_FP_W :: new (self) } # [doc = "Bit 11 - Consecutive Period/Voting Select This bit controls whether the input filter uses a stricter consecutive period count or majority voting."]
# [inline (always)]
# [must_use]
pub fn ifctl_01_cpv (& mut self) -> IFCTL_01_CPV_W < IFCTL_01_SPEC , 11 > { IFCTL_01_CPV_W :: new (self) } # [doc = "Bit 12 - Filter Enable This bit controls whether the input is filtered by the input filter or bypasses to the edge detect."]
# [inline (always)]
# [must_use]
pub fn ifctl_01_fe (& mut self) -> IFCTL_01_FE_W < IFCTL_01_SPEC , 12 > { IFCTL_01_FE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Input Filter Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ifctl_01::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ifctl_01::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IFCTL_01_SPEC ; impl crate :: RegisterSpec for IFCTL_01_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ifctl_01::R`](R) reader structure"]
impl crate :: Readable for IFCTL_01_SPEC { } # [doc = "`write(|w| ..)` method takes [`ifctl_01::W`](W) writer structure"]
impl crate :: Writable for IFCTL_01_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets IFCTL_01[%s]
to value 0"]
impl crate :: Resettable for IFCTL_01_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "TSEL (rw) register accessor: Trigger Select\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`tsel::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`tsel::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tsel`]
module"]
pub type TSEL = crate :: Reg < tsel :: TSEL_SPEC > ; # [doc = "Trigger Select"]
pub mod tsel { # [doc = "Register `TSEL` reader"]
pub type R = crate :: R < TSEL_SPEC > ; # [doc = "Register `TSEL` writer"]
pub type W = crate :: W < TSEL_SPEC > ; # [doc = "Field `TSEL_ETSEL` reader - External Trigger Select. #br# This selects which System Event is used if the input filter selects trigger. Triggers 0-15 are used to connect triggers generated by other timer modules in the same power domain. Refer to the SoC datasheet to get details. Triggers 16 and 17 are connected to event manager subscriber ports. Event lines 18-31 are reserved for future use."]
pub type TSEL_ETSEL_R = crate :: FieldReader < TSEL_ETSEL_A > ; # [doc = "External Trigger Select. #br# This selects which System Event is used if the input filter selects trigger. Triggers 0-15 are used to connect triggers generated by other timer modules in the same power domain. Refer to the SoC datasheet to get details. Triggers 16 and 17 are connected to event manager subscriber ports. Event lines 18-31 are reserved for future use.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum TSEL_ETSEL_A { # [doc = "0: TRIG0"]
TSEL_ETSEL_TRIG0 = 0 , # [doc = "1: TRIG1"]
TSEL_ETSEL_TRIG1 = 1 , # [doc = "2: TRIG2"]
TSEL_ETSEL_TRIG2 = 2 , # [doc = "3: TRIG3"]
TSEL_ETSEL_TRIG3 = 3 , # [doc = "4: TRIG4"]
TSEL_ETSEL_TRIG4 = 4 , # [doc = "5: TRIG5"]
TSEL_ETSEL_TRIG5 = 5 , # [doc = "6: TRIG6"]
TSEL_ETSEL_TRIG6 = 6 , # [doc = "7: TRIG7"]
TSEL_ETSEL_TRIG7 = 7 , # [doc = "8: TRIG8"]
TSEL_ETSEL_TRIG8 = 8 , # [doc = "9: TRIG9"]
TSEL_ETSEL_TRIG9 = 9 , # [doc = "10: TRIG10"]
TSEL_ETSEL_TRIG10 = 10 , # [doc = "11: TRIG11"]
TSEL_ETSEL_TRIG11 = 11 , # [doc = "12: TRIG12"]
TSEL_ETSEL_TRIG12 = 12 , # [doc = "13: TRIG13"]
TSEL_ETSEL_TRIG13 = 13 , # [doc = "14: TRIG14"]
TSEL_ETSEL_TRIG14 = 14 , # [doc = "15: TRIG15"]
TSEL_ETSEL_TRIG15 = 15 , # [doc = "16: TRIG_SUB0"]
TSEL_ETSEL_TRIG_SUB0 = 16 , # [doc = "17: TRIG_SUB1"]
TSEL_ETSEL_TRIG_SUB1 = 17 , } impl From < TSEL_ETSEL_A > for u8 { # [inline (always)]
fn from (variant : TSEL_ETSEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for TSEL_ETSEL_A { type Ux = u8 ; } impl TSEL_ETSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < TSEL_ETSEL_A > { match self . bits { 0 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG0) , 1 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG1) , 2 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG2) , 3 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG3) , 4 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG4) , 5 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG5) , 6 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG6) , 7 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG7) , 8 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG8) , 9 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG9) , 10 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG10) , 11 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG11) , 12 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG12) , 13 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG13) , 14 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG14) , 15 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG15) , 16 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG_SUB0) , 17 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG_SUB1) , _ => None , } } # [doc = "TRIG0"]
# [inline (always)]
pub fn is_tsel_etsel_trig0 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG0 } # [doc = "TRIG1"]
# [inline (always)]
pub fn is_tsel_etsel_trig1 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG1 } # [doc = "TRIG2"]
# [inline (always)]
pub fn is_tsel_etsel_trig2 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG2 } # [doc = "TRIG3"]
# [inline (always)]
pub fn is_tsel_etsel_trig3 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG3 } # [doc = "TRIG4"]
# [inline (always)]
pub fn is_tsel_etsel_trig4 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG4 } # [doc = "TRIG5"]
# [inline (always)]
pub fn is_tsel_etsel_trig5 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG5 } # [doc = "TRIG6"]
# [inline (always)]
pub fn is_tsel_etsel_trig6 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG6 } # [doc = "TRIG7"]
# [inline (always)]
pub fn is_tsel_etsel_trig7 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG7 } # [doc = "TRIG8"]
# [inline (always)]
pub fn is_tsel_etsel_trig8 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG8 } # [doc = "TRIG9"]
# [inline (always)]
pub fn is_tsel_etsel_trig9 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG9 } # [doc = "TRIG10"]
# [inline (always)]
pub fn is_tsel_etsel_trig10 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG10 } # [doc = "TRIG11"]
# [inline (always)]
pub fn is_tsel_etsel_trig11 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG11 } # [doc = "TRIG12"]
# [inline (always)]
pub fn is_tsel_etsel_trig12 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG12 } # [doc = "TRIG13"]
# [inline (always)]
pub fn is_tsel_etsel_trig13 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG13 } # [doc = "TRIG14"]
# [inline (always)]
pub fn is_tsel_etsel_trig14 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG14 } # [doc = "TRIG15"]
# [inline (always)]
pub fn is_tsel_etsel_trig15 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG15 } # [doc = "TRIG_SUB0"]
# [inline (always)]
pub fn is_tsel_etsel_trig_sub0 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG_SUB0 } # [doc = "TRIG_SUB1"]
# [inline (always)]
pub fn is_tsel_etsel_trig_sub1 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG_SUB1 } } # [doc = "Field `TSEL_ETSEL` writer - External Trigger Select. #br# This selects which System Event is used if the input filter selects trigger. Triggers 0-15 are used to connect triggers generated by other timer modules in the same power domain. Refer to the SoC datasheet to get details. Triggers 16 and 17 are connected to event manager subscriber ports. Event lines 18-31 are reserved for future use."]
pub type TSEL_ETSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 5 , O , TSEL_ETSEL_A > ; impl < 'a , REG , const O : u8 > TSEL_ETSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "TRIG0"]
# [inline (always)]
pub fn tsel_etsel_trig0 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG0) } # [doc = "TRIG1"]
# [inline (always)]
pub fn tsel_etsel_trig1 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG1) } # [doc = "TRIG2"]
# [inline (always)]
pub fn tsel_etsel_trig2 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG2) } # [doc = "TRIG3"]
# [inline (always)]
pub fn tsel_etsel_trig3 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG3) } # [doc = "TRIG4"]
# [inline (always)]
pub fn tsel_etsel_trig4 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG4) } # [doc = "TRIG5"]
# [inline (always)]
pub fn tsel_etsel_trig5 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG5) } # [doc = "TRIG6"]
# [inline (always)]
pub fn tsel_etsel_trig6 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG6) } # [doc = "TRIG7"]
# [inline (always)]
pub fn tsel_etsel_trig7 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG7) } # [doc = "TRIG8"]
# [inline (always)]
pub fn tsel_etsel_trig8 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG8) } # [doc = "TRIG9"]
# [inline (always)]
pub fn tsel_etsel_trig9 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG9) } # [doc = "TRIG10"]
# [inline (always)]
pub fn tsel_etsel_trig10 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG10) } # [doc = "TRIG11"]
# [inline (always)]
pub fn tsel_etsel_trig11 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG11) } # [doc = "TRIG12"]
# [inline (always)]
pub fn tsel_etsel_trig12 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG12) } # [doc = "TRIG13"]
# [inline (always)]
pub fn tsel_etsel_trig13 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG13) } # [doc = "TRIG14"]
# [inline (always)]
pub fn tsel_etsel_trig14 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG14) } # [doc = "TRIG15"]
# [inline (always)]
pub fn tsel_etsel_trig15 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG15) } # [doc = "TRIG_SUB0"]
# [inline (always)]
pub fn tsel_etsel_trig_sub0 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG_SUB0) } # [doc = "TRIG_SUB1"]
# [inline (always)]
pub fn tsel_etsel_trig_sub1 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG_SUB1) } } # [doc = "Field `TSEL_TE` reader - Trigger Enable. This selects whether a trigger is enabled or not for this counter 0x0 = Triggers are not used 0x1 = Triggers are used as selected by the ETSEL field"]
pub type TSEL_TE_R = crate :: BitReader < TSEL_TE_A > ; # [doc = "Trigger Enable. This selects whether a trigger is enabled or not for this counter 0x0 = Triggers are not used 0x1 = Triggers are used as selected by the ETSEL field\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum TSEL_TE_A { # [doc = "0: DISABLED"]
TSEL_TE_DISABLED = 0 , # [doc = "1: ENABLED"]
TSEL_TE_ENABLED = 1 , } impl From < TSEL_TE_A > for bool { # [inline (always)]
fn from (variant : TSEL_TE_A) -> Self { variant as u8 != 0 } } impl TSEL_TE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> TSEL_TE_A { match self . bits { false => TSEL_TE_A :: TSEL_TE_DISABLED , true => TSEL_TE_A :: TSEL_TE_ENABLED , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_tsel_te_disabled (& self) -> bool { * self == TSEL_TE_A :: TSEL_TE_DISABLED } # [doc = "ENABLED"]
# [inline (always)]
pub fn is_tsel_te_enabled (& self) -> bool { * self == TSEL_TE_A :: TSEL_TE_ENABLED } } # [doc = "Field `TSEL_TE` writer - Trigger Enable. This selects whether a trigger is enabled or not for this counter 0x0 = Triggers are not used 0x1 = Triggers are used as selected by the ETSEL field"]
pub type TSEL_TE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , TSEL_TE_A > ; impl < 'a , REG , const O : u8 > TSEL_TE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn tsel_te_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_TE_A :: TSEL_TE_DISABLED) } # [doc = "ENABLED"]
# [inline (always)]
pub fn tsel_te_enabled (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_TE_A :: TSEL_TE_ENABLED) } } impl R { # [doc = "Bits 0:4 - External Trigger Select. #br# This selects which System Event is used if the input filter selects trigger. Triggers 0-15 are used to connect triggers generated by other timer modules in the same power domain. Refer to the SoC datasheet to get details. Triggers 16 and 17 are connected to event manager subscriber ports. Event lines 18-31 are reserved for future use."]
# [inline (always)]
pub fn tsel_etsel (& self) -> TSEL_ETSEL_R { TSEL_ETSEL_R :: new ((self . bits & 0x1f) as u8) } # [doc = "Bit 9 - Trigger Enable. This selects whether a trigger is enabled or not for this counter 0x0 = Triggers are not used 0x1 = Triggers are used as selected by the ETSEL field"]
# [inline (always)]
pub fn tsel_te (& self) -> TSEL_TE_R { TSEL_TE_R :: new (((self . bits >> 9) & 1) != 0) } } impl W { # [doc = "Bits 0:4 - External Trigger Select. #br# This selects which System Event is used if the input filter selects trigger. Triggers 0-15 are used to connect triggers generated by other timer modules in the same power domain. Refer to the SoC datasheet to get details. Triggers 16 and 17 are connected to event manager subscriber ports. Event lines 18-31 are reserved for future use."]
# [inline (always)]
# [must_use]
pub fn tsel_etsel (& mut self) -> TSEL_ETSEL_W < TSEL_SPEC , 0 > { TSEL_ETSEL_W :: new (self) } # [doc = "Bit 9 - Trigger Enable. This selects whether a trigger is enabled or not for this counter 0x0 = Triggers are not used 0x1 = Triggers are used as selected by the ETSEL field"]
# [inline (always)]
# [must_use]
pub fn tsel_te (& mut self) -> TSEL_TE_W < TSEL_SPEC , 9 > { TSEL_TE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Trigger Select\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`tsel::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`tsel::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct TSEL_SPEC ; impl crate :: RegisterSpec for TSEL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`tsel::R`](R) reader structure"]
impl crate :: Readable for TSEL_SPEC { } # [doc = "`write(|w| ..)` method takes [`tsel::W`](W) writer structure"]
impl crate :: Writable for TSEL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets TSEL to value 0"]
impl crate :: Resettable for TSEL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } } # [doc = "PERIPHERALREGION"]
pub struct TIMG4 { _marker : PhantomData < * const () > } unsafe impl Send for TIMG4 { } impl TIMG4 { # [doc = r"Pointer to the register block"]
pub const PTR : * const timg4 :: RegisterBlock = 0x4008_c000 as * const _ ; # [doc = r"Return the pointer to the register block"]
# [inline (always)]
pub const fn ptr () -> * const timg4 :: RegisterBlock { Self :: PTR } # [doc = r" Steal an instance of this peripheral"]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Ensure that the new instance of the peripheral cannot be used in a way"]
# [doc = r" that may race with any existing instances, for example by only"]
# [doc = r" accessing read-only or write-only registers, or by consuming the"]
# [doc = r" original peripheral and using critical sections to coordinate"]
# [doc = r" access between multiple new instances."]
# [doc = r""]
# [doc = r" Additionally, other software such as HALs may rely on only one"]
# [doc = r" peripheral instance existing to ensure memory safety; ensure"]
# [doc = r" no stolen instances are passed to such software."]
pub unsafe fn steal () -> Self { Self { _marker : PhantomData } } } impl Deref for TIMG4 { type Target = timg4 :: RegisterBlock ; # [inline (always)]
fn deref (& self) -> & Self :: Target { unsafe { & * Self :: PTR } } } impl core :: fmt :: Debug for TIMG4 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("TIMG4") . finish () } } # [doc = "PERIPHERALREGION"]
pub mod timg4 { # [doc = r"Register block"]
# [repr (C)]
pub struct RegisterBlock { _reserved0 : [u8 ; 0x0400]
, # [doc = "0x400 - Subsciber Port 0"]
pub fsub_0 : FSUB_0 , # [doc = "0x404 - Subscriber Port 1"]
pub fsub_1 : FSUB_1 , _reserved2 : [u8 ; 0x3c]
, # [doc = "0x444 - Publisher Port 0"]
pub fpub_0 : FPUB_0 , # [doc = "0x448 - Publisher Port 1"]
pub fpub_1 : FPUB_1 , _reserved4 : [u8 ; 0x03b4]
, # [doc = "0x800 - Power enable"]
pub pwren : PWREN , # [doc = "0x804 - Reset Control"]
pub rstctl : RSTCTL , _reserved6 : [u8 ; 0x0c]
, # [doc = "0x814 - Status Register"]
pub stat : STAT , _reserved7 : [u8 ; 0x07e8]
, # [doc = "0x1000 - Clock Divider"]
pub clkdiv : CLKDIV , _reserved8 : [u8 ; 0x04]
, # [doc = "0x1008 - Clock Select for Ultra Low Power peripherals"]
pub clksel : CLKSEL , _reserved9 : [u8 ; 0x0c]
, # [doc = "0x1018 - Peripheral Debug Control"]
pub pdbgctl : PDBGCTL , _reserved10 : [u8 ; 0x04]
, # [doc = "0x1020 - Interrupt index"]
pub iidx : IIDX , _reserved11 : [u8 ; 0x04]
, # [doc = "0x1028 - Interrupt mask"]
pub imask : IMASK , _reserved12 : [u8 ; 0x04]
, # [doc = "0x1030 - Raw interrupt status"]
pub ris : RIS , _reserved13 : [u8 ; 0x04]
, # [doc = "0x1038 - Masked interrupt status"]
pub mis : MIS , _reserved14 : [u8 ; 0x04]
, # [doc = "0x1040 - Interrupt set"]
pub iset : ISET , _reserved15 : [u8 ; 0x04]
, # [doc = "0x1048 - Interrupt clear"]
pub iclr : ICLR , _reserved16 : [u8 ; 0x94]
, # [doc = "0x10e0 - Event Mode"]
pub evt_mode : EVT_MODE , _reserved17 : [u8 ; 0x18]
, # [doc = "0x10fc - Module Description"]
pub desc : DESC , # [doc = "0x1100 - CCP Direction"]
pub ccpd : CCPD , # [doc = "0x1104 - Output Disable"]
pub odis : ODIS , # [doc = "0x1108 - Counter Clock Control Register"]
pub cclkctl : CCLKCTL , # [doc = "0x110c - Clock Prescale Register"]
pub cps : CPS , # [doc = "0x1110 - Clock prescale count status register"]
pub cpsv : CPSV , # [doc = "0x1114 - Timer Cross Trigger Control Register"]
pub cttrigctl : CTTRIGCTL , _reserved24 : [u8 ; 0x04]
, # [doc = "0x111c - Timer Cross Trigger Register"]
pub cttrig : CTTRIG , _reserved25 : [u8 ; 0x04]
, # [doc = "0x1124 - Shadow to active load mask"]
pub gctl : GCTL , _reserved26 : [u8 ; 0x06d8]
, # [doc = "0x1800 - Counter Register"]
pub ctr : CTR , # [doc = "0x1804 - Counter Control Register"]
pub ctrctl : CTRCTL , # [doc = "0x1808 - Load Register"]
pub load : LOAD , _reserved29 : [u8 ; 0x04]
, # [doc = "0x1810..0x1818 - Capture or Compare Register 0 to Capture or Compare Register 1"]
pub cc_01 : [CC_01 ; 2]
, _reserved30 : [u8 ; 0x18]
, # [doc = "0x1830..0x1838 - Capture or Compare Control Registers"]
pub ccctl_01 : [CCCTL_01 ; 2]
, _reserved31 : [u8 ; 0x18]
, # [doc = "0x1850..0x1858 - CCP Output Control Registers"]
pub octl_01 : [OCTL_01 ; 2]
, _reserved32 : [u8 ; 0x18]
, # [doc = "0x1870..0x1878 - Capture or Compare Action Registers"]
pub ccact_01 : [CCACT_01 ; 2]
, _reserved33 : [u8 ; 0x08]
, # [doc = "0x1880..0x1888 - Input Filter Control Register"]
pub ifctl_01 : [IFCTL_01 ; 2]
, _reserved34 : [u8 ; 0x28]
, # [doc = "0x18b0 - Trigger Select"]
pub tsel : TSEL , } # [doc = "FSUB_0 (rw) register accessor: Subsciber Port 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fsub_0`]
module"]
pub type FSUB_0 = crate :: Reg < fsub_0 :: FSUB_0_SPEC > ; # [doc = "Subsciber Port 0"]
pub mod fsub_0 { # [doc = "Register `FSUB_0` reader"]
pub type R = crate :: R < FSUB_0_SPEC > ; # [doc = "Register `FSUB_0` writer"]
pub type W = crate :: W < FSUB_0_SPEC > ; # [doc = "Field `FSUB_0_CHANID` reader - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FSUB_0_CHANID_R = crate :: FieldReader < FSUB_0_CHANID_A > ; # [doc = "0 = disconnected. 1-15 = connected to channelID = CHANID.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FSUB_0_CHANID_A { # [doc = "0: UNCONNECTED"]
FSUB_0_CHANID_UNCONNECTED = 0 , } impl From < FSUB_0_CHANID_A > for u8 { # [inline (always)]
fn from (variant : FSUB_0_CHANID_A) -> Self { variant as _ } } impl crate :: FieldSpec for FSUB_0_CHANID_A { type Ux = u8 ; } impl FSUB_0_CHANID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < FSUB_0_CHANID_A > { match self . bits { 0 => Some (FSUB_0_CHANID_A :: FSUB_0_CHANID_UNCONNECTED) , _ => None , } } # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn is_fsub_0_chanid_unconnected (& self) -> bool { * self == FSUB_0_CHANID_A :: FSUB_0_CHANID_UNCONNECTED } } # [doc = "Field `FSUB_0_CHANID` writer - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FSUB_0_CHANID_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , FSUB_0_CHANID_A > ; impl < 'a , REG , const O : u8 > FSUB_0_CHANID_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn fsub_0_chanid_unconnected (self) -> & 'a mut crate :: W < REG > { self . variant (FSUB_0_CHANID_A :: FSUB_0_CHANID_UNCONNECTED) } } impl R { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
pub fn fsub_0_chanid (& self) -> FSUB_0_CHANID_R { FSUB_0_CHANID_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
# [must_use]
pub fn fsub_0_chanid (& mut self) -> FSUB_0_CHANID_W < FSUB_0_SPEC , 0 > { FSUB_0_CHANID_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Subsciber Port 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_0::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FSUB_0_SPEC ; impl crate :: RegisterSpec for FSUB_0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fsub_0::R`](R) reader structure"]
impl crate :: Readable for FSUB_0_SPEC { } # [doc = "`write(|w| ..)` method takes [`fsub_0::W`](W) writer structure"]
impl crate :: Writable for FSUB_0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FSUB_0 to value 0"]
impl crate :: Resettable for FSUB_0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "FSUB_1 (rw) register accessor: Subscriber Port 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fsub_1`]
module"]
pub type FSUB_1 = crate :: Reg < fsub_1 :: FSUB_1_SPEC > ; # [doc = "Subscriber Port 1"]
pub mod fsub_1 { # [doc = "Register `FSUB_1` reader"]
pub type R = crate :: R < FSUB_1_SPEC > ; # [doc = "Register `FSUB_1` writer"]
pub type W = crate :: W < FSUB_1_SPEC > ; # [doc = "Field `FSUB_1_CHANID` reader - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FSUB_1_CHANID_R = crate :: FieldReader < FSUB_1_CHANID_A > ; # [doc = "0 = disconnected. 1-15 = connected to channelID = CHANID.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FSUB_1_CHANID_A { # [doc = "0: UNCONNECTED"]
FSUB_1_CHANID_UNCONNECTED = 0 , } impl From < FSUB_1_CHANID_A > for u8 { # [inline (always)]
fn from (variant : FSUB_1_CHANID_A) -> Self { variant as _ } } impl crate :: FieldSpec for FSUB_1_CHANID_A { type Ux = u8 ; } impl FSUB_1_CHANID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < FSUB_1_CHANID_A > { match self . bits { 0 => Some (FSUB_1_CHANID_A :: FSUB_1_CHANID_UNCONNECTED) , _ => None , } } # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn is_fsub_1_chanid_unconnected (& self) -> bool { * self == FSUB_1_CHANID_A :: FSUB_1_CHANID_UNCONNECTED } } # [doc = "Field `FSUB_1_CHANID` writer - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FSUB_1_CHANID_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , FSUB_1_CHANID_A > ; impl < 'a , REG , const O : u8 > FSUB_1_CHANID_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn fsub_1_chanid_unconnected (self) -> & 'a mut crate :: W < REG > { self . variant (FSUB_1_CHANID_A :: FSUB_1_CHANID_UNCONNECTED) } } impl R { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
pub fn fsub_1_chanid (& self) -> FSUB_1_CHANID_R { FSUB_1_CHANID_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
# [must_use]
pub fn fsub_1_chanid (& mut self) -> FSUB_1_CHANID_W < FSUB_1_SPEC , 0 > { FSUB_1_CHANID_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Subscriber Port 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_1::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FSUB_1_SPEC ; impl crate :: RegisterSpec for FSUB_1_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fsub_1::R`](R) reader structure"]
impl crate :: Readable for FSUB_1_SPEC { } # [doc = "`write(|w| ..)` method takes [`fsub_1::W`](W) writer structure"]
impl crate :: Writable for FSUB_1_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FSUB_1 to value 0"]
impl crate :: Resettable for FSUB_1_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "FPUB_0 (rw) register accessor: Publisher Port 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fpub_0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fpub_0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fpub_0`]
module"]
pub type FPUB_0 = crate :: Reg < fpub_0 :: FPUB_0_SPEC > ; # [doc = "Publisher Port 0"]
pub mod fpub_0 { # [doc = "Register `FPUB_0` reader"]
pub type R = crate :: R < FPUB_0_SPEC > ; # [doc = "Register `FPUB_0` writer"]
pub type W = crate :: W < FPUB_0_SPEC > ; # [doc = "Field `FPUB_0_CHANID` reader - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FPUB_0_CHANID_R = crate :: FieldReader < FPUB_0_CHANID_A > ; # [doc = "0 = disconnected. 1-15 = connected to channelID = CHANID.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FPUB_0_CHANID_A { # [doc = "0: UNCONNECTED"]
FPUB_0_CHANID_UNCONNECTED = 0 , } impl From < FPUB_0_CHANID_A > for u8 { # [inline (always)]
fn from (variant : FPUB_0_CHANID_A) -> Self { variant as _ } } impl crate :: FieldSpec for FPUB_0_CHANID_A { type Ux = u8 ; } impl FPUB_0_CHANID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < FPUB_0_CHANID_A > { match self . bits { 0 => Some (FPUB_0_CHANID_A :: FPUB_0_CHANID_UNCONNECTED) , _ => None , } } # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn is_fpub_0_chanid_unconnected (& self) -> bool { * self == FPUB_0_CHANID_A :: FPUB_0_CHANID_UNCONNECTED } } # [doc = "Field `FPUB_0_CHANID` writer - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FPUB_0_CHANID_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , FPUB_0_CHANID_A > ; impl < 'a , REG , const O : u8 > FPUB_0_CHANID_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn fpub_0_chanid_unconnected (self) -> & 'a mut crate :: W < REG > { self . variant (FPUB_0_CHANID_A :: FPUB_0_CHANID_UNCONNECTED) } } impl R { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
pub fn fpub_0_chanid (& self) -> FPUB_0_CHANID_R { FPUB_0_CHANID_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
# [must_use]
pub fn fpub_0_chanid (& mut self) -> FPUB_0_CHANID_W < FPUB_0_SPEC , 0 > { FPUB_0_CHANID_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Publisher Port 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fpub_0::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fpub_0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FPUB_0_SPEC ; impl crate :: RegisterSpec for FPUB_0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fpub_0::R`](R) reader structure"]
impl crate :: Readable for FPUB_0_SPEC { } # [doc = "`write(|w| ..)` method takes [`fpub_0::W`](W) writer structure"]
impl crate :: Writable for FPUB_0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FPUB_0 to value 0"]
impl crate :: Resettable for FPUB_0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "FPUB_1 (rw) register accessor: Publisher Port 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fpub_1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fpub_1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fpub_1`]
module"]
pub type FPUB_1 = crate :: Reg < fpub_1 :: FPUB_1_SPEC > ; # [doc = "Publisher Port 1"]
pub mod fpub_1 { # [doc = "Register `FPUB_1` reader"]
pub type R = crate :: R < FPUB_1_SPEC > ; # [doc = "Register `FPUB_1` writer"]
pub type W = crate :: W < FPUB_1_SPEC > ; # [doc = "Field `FPUB_1_CHANID` reader - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FPUB_1_CHANID_R = crate :: FieldReader < FPUB_1_CHANID_A > ; # [doc = "0 = disconnected. 1-15 = connected to channelID = CHANID.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FPUB_1_CHANID_A { # [doc = "0: UNCONNECTED"]
FPUB_1_CHANID_UNCONNECTED = 0 , } impl From < FPUB_1_CHANID_A > for u8 { # [inline (always)]
fn from (variant : FPUB_1_CHANID_A) -> Self { variant as _ } } impl crate :: FieldSpec for FPUB_1_CHANID_A { type Ux = u8 ; } impl FPUB_1_CHANID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < FPUB_1_CHANID_A > { match self . bits { 0 => Some (FPUB_1_CHANID_A :: FPUB_1_CHANID_UNCONNECTED) , _ => None , } } # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn is_fpub_1_chanid_unconnected (& self) -> bool { * self == FPUB_1_CHANID_A :: FPUB_1_CHANID_UNCONNECTED } } # [doc = "Field `FPUB_1_CHANID` writer - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FPUB_1_CHANID_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , FPUB_1_CHANID_A > ; impl < 'a , REG , const O : u8 > FPUB_1_CHANID_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn fpub_1_chanid_unconnected (self) -> & 'a mut crate :: W < REG > { self . variant (FPUB_1_CHANID_A :: FPUB_1_CHANID_UNCONNECTED) } } impl R { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
pub fn fpub_1_chanid (& self) -> FPUB_1_CHANID_R { FPUB_1_CHANID_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
# [must_use]
pub fn fpub_1_chanid (& mut self) -> FPUB_1_CHANID_W < FPUB_1_SPEC , 0 > { FPUB_1_CHANID_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Publisher Port 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fpub_1::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fpub_1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FPUB_1_SPEC ; impl crate :: RegisterSpec for FPUB_1_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fpub_1::R`](R) reader structure"]
impl crate :: Readable for FPUB_1_SPEC { } # [doc = "`write(|w| ..)` method takes [`fpub_1::W`](W) writer structure"]
impl crate :: Writable for FPUB_1_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FPUB_1 to value 0"]
impl crate :: Resettable for FPUB_1_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "PWREN (rw) register accessor: Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pwren`]
module"]
pub type PWREN = crate :: Reg < pwren :: PWREN_SPEC > ; # [doc = "Power enable"]
pub mod pwren { # [doc = "Register `PWREN` reader"]
pub type R = crate :: R < PWREN_SPEC > ; # [doc = "Register `PWREN` writer"]
pub type W = crate :: W < PWREN_SPEC > ; # [doc = "Field `PWREN_ENABLE` reader - Enable the power"]
pub type PWREN_ENABLE_R = crate :: BitReader < PWREN_ENABLE_A > ; # [doc = "Enable the power\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PWREN_ENABLE_A { # [doc = "0: DISABLE"]
PWREN_ENABLE_DISABLE = 0 , # [doc = "1: ENABLE"]
PWREN_ENABLE_ENABLE = 1 , } impl From < PWREN_ENABLE_A > for bool { # [inline (always)]
fn from (variant : PWREN_ENABLE_A) -> Self { variant as u8 != 0 } } impl PWREN_ENABLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PWREN_ENABLE_A { match self . bits { false => PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE , true => PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_pwren_enable_disable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_pwren_enable_enable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE } } # [doc = "Field `PWREN_ENABLE` writer - Enable the power"]
pub type PWREN_ENABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PWREN_ENABLE_A > ; impl < 'a , REG , const O : u8 > PWREN_ENABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn pwren_enable_disable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn pwren_enable_enable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE) } } # [doc = "KEY to allow Power State Change\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum PWREN_KEY_AW { # [doc = "38: _TO_UNLOCK_W_"]
PWREN_KEY_UNLOCK_W = 38 , } impl From < PWREN_KEY_AW > for u8 { # [inline (always)]
fn from (variant : PWREN_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for PWREN_KEY_AW { type Ux = u8 ; } # [doc = "Field `PWREN_KEY` writer - KEY to allow Power State Change"]
pub type PWREN_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , PWREN_KEY_AW > ; impl < 'a , REG , const O : u8 > PWREN_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn pwren_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_KEY_AW :: PWREN_KEY_UNLOCK_W) } } impl R { # [doc = "Bit 0 - Enable the power"]
# [inline (always)]
pub fn pwren_enable (& self) -> PWREN_ENABLE_R { PWREN_ENABLE_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - Enable the power"]
# [inline (always)]
# [must_use]
pub fn pwren_enable (& mut self) -> PWREN_ENABLE_W < PWREN_SPEC , 0 > { PWREN_ENABLE_W :: new (self) } # [doc = "Bits 24:31 - KEY to allow Power State Change"]
# [inline (always)]
# [must_use]
pub fn pwren_key (& mut self) -> PWREN_KEY_W < PWREN_SPEC , 24 > { PWREN_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PWREN_SPEC ; impl crate :: RegisterSpec for PWREN_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pwren::R`](R) reader structure"]
impl crate :: Readable for PWREN_SPEC { } # [doc = "`write(|w| ..)` method takes [`pwren::W`](W) writer structure"]
impl crate :: Writable for PWREN_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PWREN to value 0"]
impl crate :: Resettable for PWREN_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RSTCTL (w) register accessor: Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rstctl`]
module"]
pub type RSTCTL = crate :: Reg < rstctl :: RSTCTL_SPEC > ; # [doc = "Reset Control"]
pub mod rstctl { # [doc = "Register `RSTCTL` writer"]
pub type W = crate :: W < RSTCTL_SPEC > ; # [doc = "Assert reset to the peripheral\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETASSERT_AW { # [doc = "0: NOP"]
RSTCTL_RESETASSERT_NOP = 0 , # [doc = "1: ASSERT"]
RSTCTL_RESETASSERT_ASSERT = 1 , } impl From < RSTCTL_RESETASSERT_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETASSERT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETASSERT` writer - Assert reset to the peripheral"]
pub type RSTCTL_RESETASSERT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETASSERT_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETASSERT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetassert_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_NOP) } # [doc = "ASSERT"]
# [inline (always)]
pub fn rstctl_resetassert_assert (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_ASSERT) } } # [doc = "Clear the RESETSTKY bit in the STAT register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETSTKYCLR_AW { # [doc = "0: NOP"]
RSTCTL_RESETSTKYCLR_NOP = 0 , # [doc = "1: CLR"]
RSTCTL_RESETSTKYCLR_CLR = 1 , } impl From < RSTCTL_RESETSTKYCLR_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETSTKYCLR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETSTKYCLR` writer - Clear the RESETSTKY bit in the STAT register"]
pub type RSTCTL_RESETSTKYCLR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETSTKYCLR_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETSTKYCLR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetstkyclr_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_NOP) } # [doc = "CLR"]
# [inline (always)]
pub fn rstctl_resetstkyclr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_CLR) } } # [doc = "Unlock key\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum RSTCTL_KEY_AW { # [doc = "177: _TO_UNLOCK_W_"]
RSTCTL_KEY_UNLOCK_W = 177 , } impl From < RSTCTL_KEY_AW > for u8 { # [inline (always)]
fn from (variant : RSTCTL_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for RSTCTL_KEY_AW { type Ux = u8 ; } # [doc = "Field `RSTCTL_KEY` writer - Unlock key"]
pub type RSTCTL_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , RSTCTL_KEY_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn rstctl_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_KEY_AW :: RSTCTL_KEY_UNLOCK_W) } } impl W { # [doc = "Bit 0 - Assert reset to the peripheral"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetassert (& mut self) -> RSTCTL_RESETASSERT_W < RSTCTL_SPEC , 0 > { RSTCTL_RESETASSERT_W :: new (self) } # [doc = "Bit 1 - Clear the RESETSTKY bit in the STAT register"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetstkyclr (& mut self) -> RSTCTL_RESETSTKYCLR_W < RSTCTL_SPEC , 1 > { RSTCTL_RESETSTKYCLR_W :: new (self) } # [doc = "Bits 24:31 - Unlock key"]
# [inline (always)]
# [must_use]
pub fn rstctl_key (& mut self) -> RSTCTL_KEY_W < RSTCTL_SPEC , 24 > { RSTCTL_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RSTCTL_SPEC ; impl crate :: RegisterSpec for RSTCTL_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`rstctl::W`](W) writer structure"]
impl crate :: Writable for RSTCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets RSTCTL to value 0"]
impl crate :: Resettable for RSTCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "STAT (r) register accessor: Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@stat`]
module"]
pub type STAT = crate :: Reg < stat :: STAT_SPEC > ; # [doc = "Status Register"]
pub mod stat { # [doc = "Register `STAT` reader"]
pub type R = crate :: R < STAT_SPEC > ; # [doc = "Field `STAT_RESETSTKY` reader - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
pub type STAT_RESETSTKY_R = crate :: BitReader < STAT_RESETSTKY_A > ; # [doc = "This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_RESETSTKY_A { # [doc = "0: NORES"]
STAT_RESETSTKY_NORES = 0 , # [doc = "1: RESET"]
STAT_RESETSTKY_RESET = 1 , } impl From < STAT_RESETSTKY_A > for bool { # [inline (always)]
fn from (variant : STAT_RESETSTKY_A) -> Self { variant as u8 != 0 } } impl STAT_RESETSTKY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_RESETSTKY_A { match self . bits { false => STAT_RESETSTKY_A :: STAT_RESETSTKY_NORES , true => STAT_RESETSTKY_A :: STAT_RESETSTKY_RESET , } } # [doc = "NORES"]
# [inline (always)]
pub fn is_stat_resetstky_nores (& self) -> bool { * self == STAT_RESETSTKY_A :: STAT_RESETSTKY_NORES } # [doc = "RESET"]
# [inline (always)]
pub fn is_stat_resetstky_reset (& self) -> bool { * self == STAT_RESETSTKY_A :: STAT_RESETSTKY_RESET } } impl R { # [doc = "Bit 16 - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
# [inline (always)]
pub fn stat_resetstky (& self) -> STAT_RESETSTKY_R { STAT_RESETSTKY_R :: new (((self . bits >> 16) & 1) != 0) } } # [doc = "Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct STAT_SPEC ; impl crate :: RegisterSpec for STAT_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`stat::R`](R) reader structure"]
impl crate :: Readable for STAT_SPEC { } # [doc = "`reset()` method sets STAT to value 0"]
impl crate :: Resettable for STAT_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CLKDIV (rw) register accessor: Clock Divider\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkdiv::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkdiv::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clkdiv`]
module"]
pub type CLKDIV = crate :: Reg < clkdiv :: CLKDIV_SPEC > ; # [doc = "Clock Divider"]
pub mod clkdiv { # [doc = "Register `CLKDIV` reader"]
pub type R = crate :: R < CLKDIV_SPEC > ; # [doc = "Register `CLKDIV` writer"]
pub type W = crate :: W < CLKDIV_SPEC > ; # [doc = "Field `CLKDIV_RATIO` reader - Selects divide ratio of module clock"]
pub type CLKDIV_RATIO_R = crate :: FieldReader < CLKDIV_RATIO_A > ; # [doc = "Selects divide ratio of module clock\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CLKDIV_RATIO_A { # [doc = "0: DIV_BY_1"]
CLKDIV_RATIO_DIV_BY_1 = 0 , # [doc = "1: DIV_BY_2"]
CLKDIV_RATIO_DIV_BY_2 = 1 , # [doc = "2: DIV_BY_3"]
CLKDIV_RATIO_DIV_BY_3 = 2 , # [doc = "3: DIV_BY_4"]
CLKDIV_RATIO_DIV_BY_4 = 3 , # [doc = "4: DIV_BY_5"]
CLKDIV_RATIO_DIV_BY_5 = 4 , # [doc = "5: DIV_BY_6"]
CLKDIV_RATIO_DIV_BY_6 = 5 , # [doc = "6: DIV_BY_7"]
CLKDIV_RATIO_DIV_BY_7 = 6 , # [doc = "7: DIV_BY_8"]
CLKDIV_RATIO_DIV_BY_8 = 7 , } impl From < CLKDIV_RATIO_A > for u8 { # [inline (always)]
fn from (variant : CLKDIV_RATIO_A) -> Self { variant as _ } } impl crate :: FieldSpec for CLKDIV_RATIO_A { type Ux = u8 ; } impl CLKDIV_RATIO_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKDIV_RATIO_A { match self . bits { 0 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_1 , 1 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_2 , 2 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_3 , 3 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_4 , 4 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_5 , 5 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_6 , 6 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_7 , 7 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_8 , _ => unreachable ! () , } } # [doc = "DIV_BY_1"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_1 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_1 } # [doc = "DIV_BY_2"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_2 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_2 } # [doc = "DIV_BY_3"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_3 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_3 } # [doc = "DIV_BY_4"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_4 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_4 } # [doc = "DIV_BY_5"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_5 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_5 } # [doc = "DIV_BY_6"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_6 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_6 } # [doc = "DIV_BY_7"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_7 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_7 } # [doc = "DIV_BY_8"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_8 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_8 } } # [doc = "Field `CLKDIV_RATIO` writer - Selects divide ratio of module clock"]
pub type CLKDIV_RATIO_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 3 , O , CLKDIV_RATIO_A > ; impl < 'a , REG , const O : u8 > CLKDIV_RATIO_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DIV_BY_1"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_1 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_1) } # [doc = "DIV_BY_2"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_2 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_2) } # [doc = "DIV_BY_3"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_3 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_3) } # [doc = "DIV_BY_4"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_4 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_4) } # [doc = "DIV_BY_5"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_5 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_5) } # [doc = "DIV_BY_6"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_6 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_6) } # [doc = "DIV_BY_7"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_7 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_7) } # [doc = "DIV_BY_8"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_8 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_8) } } impl R { # [doc = "Bits 0:2 - Selects divide ratio of module clock"]
# [inline (always)]
pub fn clkdiv_ratio (& self) -> CLKDIV_RATIO_R { CLKDIV_RATIO_R :: new ((self . bits & 7) as u8) } } impl W { # [doc = "Bits 0:2 - Selects divide ratio of module clock"]
# [inline (always)]
# [must_use]
pub fn clkdiv_ratio (& mut self) -> CLKDIV_RATIO_W < CLKDIV_SPEC , 0 > { CLKDIV_RATIO_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Clock Divider\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkdiv::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkdiv::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CLKDIV_SPEC ; impl crate :: RegisterSpec for CLKDIV_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`clkdiv::R`](R) reader structure"]
impl crate :: Readable for CLKDIV_SPEC { } # [doc = "`write(|w| ..)` method takes [`clkdiv::W`](W) writer structure"]
impl crate :: Writable for CLKDIV_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CLKDIV to value 0"]
impl crate :: Resettable for CLKDIV_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CLKSEL (rw) register accessor: Clock Select for Ultra Low Power peripherals\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clksel::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clksel::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clksel`]
module"]
pub type CLKSEL = crate :: Reg < clksel :: CLKSEL_SPEC > ; # [doc = "Clock Select for Ultra Low Power peripherals"]
pub mod clksel { # [doc = "Register `CLKSEL` reader"]
pub type R = crate :: R < CLKSEL_SPEC > ; # [doc = "Register `CLKSEL` writer"]
pub type W = crate :: W < CLKSEL_SPEC > ; # [doc = "Field `CLKSEL_LFCLK_SEL` reader - Selects LFCLK as clock source if enabled"]
pub type CLKSEL_LFCLK_SEL_R = crate :: BitReader < CLKSEL_LFCLK_SEL_A > ; # [doc = "Selects LFCLK as clock source if enabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKSEL_LFCLK_SEL_A { # [doc = "0: DISABLE"]
CLKSEL_LFCLK_SEL_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKSEL_LFCLK_SEL_ENABLE = 1 , } impl From < CLKSEL_LFCLK_SEL_A > for bool { # [inline (always)]
fn from (variant : CLKSEL_LFCLK_SEL_A) -> Self { variant as u8 != 0 } } impl CLKSEL_LFCLK_SEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKSEL_LFCLK_SEL_A { match self . bits { false => CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_DISABLE , true => CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clksel_lfclk_sel_disable (& self) -> bool { * self == CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clksel_lfclk_sel_enable (& self) -> bool { * self == CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_ENABLE } } # [doc = "Field `CLKSEL_LFCLK_SEL` writer - Selects LFCLK as clock source if enabled"]
pub type CLKSEL_LFCLK_SEL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKSEL_LFCLK_SEL_A > ; impl < 'a , REG , const O : u8 > CLKSEL_LFCLK_SEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clksel_lfclk_sel_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clksel_lfclk_sel_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_ENABLE) } } # [doc = "Field `CLKSEL_MFCLK_SEL` reader - Selects MFCLK as clock source if enabled"]
pub type CLKSEL_MFCLK_SEL_R = crate :: BitReader < CLKSEL_MFCLK_SEL_A > ; # [doc = "Selects MFCLK as clock source if enabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKSEL_MFCLK_SEL_A { # [doc = "0: DISABLE"]
CLKSEL_MFCLK_SEL_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKSEL_MFCLK_SEL_ENABLE = 1 , } impl From < CLKSEL_MFCLK_SEL_A > for bool { # [inline (always)]
fn from (variant : CLKSEL_MFCLK_SEL_A) -> Self { variant as u8 != 0 } } impl CLKSEL_MFCLK_SEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKSEL_MFCLK_SEL_A { match self . bits { false => CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_DISABLE , true => CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clksel_mfclk_sel_disable (& self) -> bool { * self == CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clksel_mfclk_sel_enable (& self) -> bool { * self == CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_ENABLE } } # [doc = "Field `CLKSEL_MFCLK_SEL` writer - Selects MFCLK as clock source if enabled"]
pub type CLKSEL_MFCLK_SEL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKSEL_MFCLK_SEL_A > ; impl < 'a , REG , const O : u8 > CLKSEL_MFCLK_SEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clksel_mfclk_sel_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clksel_mfclk_sel_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_ENABLE) } } # [doc = "Field `CLKSEL_BUSCLK_SEL` reader - Selects BUSCLK as clock source if enabled"]
pub type CLKSEL_BUSCLK_SEL_R = crate :: BitReader < CLKSEL_BUSCLK_SEL_A > ; # [doc = "Selects BUSCLK as clock source if enabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKSEL_BUSCLK_SEL_A { # [doc = "0: DISABLE"]
CLKSEL_BUSCLK_SEL_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKSEL_BUSCLK_SEL_ENABLE = 1 , } impl From < CLKSEL_BUSCLK_SEL_A > for bool { # [inline (always)]
fn from (variant : CLKSEL_BUSCLK_SEL_A) -> Self { variant as u8 != 0 } } impl CLKSEL_BUSCLK_SEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKSEL_BUSCLK_SEL_A { match self . bits { false => CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_DISABLE , true => CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clksel_busclk_sel_disable (& self) -> bool { * self == CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clksel_busclk_sel_enable (& self) -> bool { * self == CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_ENABLE } } # [doc = "Field `CLKSEL_BUSCLK_SEL` writer - Selects BUSCLK as clock source if enabled"]
pub type CLKSEL_BUSCLK_SEL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKSEL_BUSCLK_SEL_A > ; impl < 'a , REG , const O : u8 > CLKSEL_BUSCLK_SEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clksel_busclk_sel_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clksel_busclk_sel_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_ENABLE) } } impl R { # [doc = "Bit 1 - Selects LFCLK as clock source if enabled"]
# [inline (always)]
pub fn clksel_lfclk_sel (& self) -> CLKSEL_LFCLK_SEL_R { CLKSEL_LFCLK_SEL_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Selects MFCLK as clock source if enabled"]
# [inline (always)]
pub fn clksel_mfclk_sel (& self) -> CLKSEL_MFCLK_SEL_R { CLKSEL_MFCLK_SEL_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Selects BUSCLK as clock source if enabled"]
# [inline (always)]
pub fn clksel_busclk_sel (& self) -> CLKSEL_BUSCLK_SEL_R { CLKSEL_BUSCLK_SEL_R :: new (((self . bits >> 3) & 1) != 0) } } impl W { # [doc = "Bit 1 - Selects LFCLK as clock source if enabled"]
# [inline (always)]
# [must_use]
pub fn clksel_lfclk_sel (& mut self) -> CLKSEL_LFCLK_SEL_W < CLKSEL_SPEC , 1 > { CLKSEL_LFCLK_SEL_W :: new (self) } # [doc = "Bit 2 - Selects MFCLK as clock source if enabled"]
# [inline (always)]
# [must_use]
pub fn clksel_mfclk_sel (& mut self) -> CLKSEL_MFCLK_SEL_W < CLKSEL_SPEC , 2 > { CLKSEL_MFCLK_SEL_W :: new (self) } # [doc = "Bit 3 - Selects BUSCLK as clock source if enabled"]
# [inline (always)]
# [must_use]
pub fn clksel_busclk_sel (& mut self) -> CLKSEL_BUSCLK_SEL_W < CLKSEL_SPEC , 3 > { CLKSEL_BUSCLK_SEL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Clock Select for Ultra Low Power peripherals\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clksel::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clksel::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CLKSEL_SPEC ; impl crate :: RegisterSpec for CLKSEL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`clksel::R`](R) reader structure"]
impl crate :: Readable for CLKSEL_SPEC { } # [doc = "`write(|w| ..)` method takes [`clksel::W`](W) writer structure"]
impl crate :: Writable for CLKSEL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CLKSEL to value 0"]
impl crate :: Resettable for CLKSEL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "PDBGCTL (rw) register accessor: Peripheral Debug Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pdbgctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pdbgctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pdbgctl`]
module"]
pub type PDBGCTL = crate :: Reg < pdbgctl :: PDBGCTL_SPEC > ; # [doc = "Peripheral Debug Control"]
pub mod pdbgctl { # [doc = "Register `PDBGCTL` reader"]
pub type R = crate :: R < PDBGCTL_SPEC > ; # [doc = "Register `PDBGCTL` writer"]
pub type W = crate :: W < PDBGCTL_SPEC > ; # [doc = "Field `PDBGCTL_FREE` reader - Free run control"]
pub type PDBGCTL_FREE_R = crate :: BitReader < PDBGCTL_FREE_A > ; # [doc = "Free run control\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PDBGCTL_FREE_A { # [doc = "0: STOP"]
PDBGCTL_FREE_STOP = 0 , # [doc = "1: RUN"]
PDBGCTL_FREE_RUN = 1 , } impl From < PDBGCTL_FREE_A > for bool { # [inline (always)]
fn from (variant : PDBGCTL_FREE_A) -> Self { variant as u8 != 0 } } impl PDBGCTL_FREE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PDBGCTL_FREE_A { match self . bits { false => PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP , true => PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN , } } # [doc = "STOP"]
# [inline (always)]
pub fn is_pdbgctl_free_stop (& self) -> bool { * self == PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP } # [doc = "RUN"]
# [inline (always)]
pub fn is_pdbgctl_free_run (& self) -> bool { * self == PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN } } # [doc = "Field `PDBGCTL_FREE` writer - Free run control"]
pub type PDBGCTL_FREE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PDBGCTL_FREE_A > ; impl < 'a , REG , const O : u8 > PDBGCTL_FREE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "STOP"]
# [inline (always)]
pub fn pdbgctl_free_stop (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP) } # [doc = "RUN"]
# [inline (always)]
pub fn pdbgctl_free_run (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN) } } # [doc = "Field `PDBGCTL_SOFT` reader - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
pub type PDBGCTL_SOFT_R = crate :: BitReader < PDBGCTL_SOFT_A > ; # [doc = "Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PDBGCTL_SOFT_A { # [doc = "0: IMMEDIATE"]
PDBGCTL_SOFT_IMMEDIATE = 0 , # [doc = "1: DELAYED"]
PDBGCTL_SOFT_DELAYED = 1 , } impl From < PDBGCTL_SOFT_A > for bool { # [inline (always)]
fn from (variant : PDBGCTL_SOFT_A) -> Self { variant as u8 != 0 } } impl PDBGCTL_SOFT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PDBGCTL_SOFT_A { match self . bits { false => PDBGCTL_SOFT_A :: PDBGCTL_SOFT_IMMEDIATE , true => PDBGCTL_SOFT_A :: PDBGCTL_SOFT_DELAYED , } } # [doc = "IMMEDIATE"]
# [inline (always)]
pub fn is_pdbgctl_soft_immediate (& self) -> bool { * self == PDBGCTL_SOFT_A :: PDBGCTL_SOFT_IMMEDIATE } # [doc = "DELAYED"]
# [inline (always)]
pub fn is_pdbgctl_soft_delayed (& self) -> bool { * self == PDBGCTL_SOFT_A :: PDBGCTL_SOFT_DELAYED } } # [doc = "Field `PDBGCTL_SOFT` writer - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
pub type PDBGCTL_SOFT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PDBGCTL_SOFT_A > ; impl < 'a , REG , const O : u8 > PDBGCTL_SOFT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "IMMEDIATE"]
# [inline (always)]
pub fn pdbgctl_soft_immediate (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_SOFT_A :: PDBGCTL_SOFT_IMMEDIATE) } # [doc = "DELAYED"]
# [inline (always)]
pub fn pdbgctl_soft_delayed (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_SOFT_A :: PDBGCTL_SOFT_DELAYED) } } impl R { # [doc = "Bit 0 - Free run control"]
# [inline (always)]
pub fn pdbgctl_free (& self) -> PDBGCTL_FREE_R { PDBGCTL_FREE_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
# [inline (always)]
pub fn pdbgctl_soft (& self) -> PDBGCTL_SOFT_R { PDBGCTL_SOFT_R :: new (((self . bits >> 1) & 1) != 0) } } impl W { # [doc = "Bit 0 - Free run control"]
# [inline (always)]
# [must_use]
pub fn pdbgctl_free (& mut self) -> PDBGCTL_FREE_W < PDBGCTL_SPEC , 0 > { PDBGCTL_FREE_W :: new (self) } # [doc = "Bit 1 - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
# [inline (always)]
# [must_use]
pub fn pdbgctl_soft (& mut self) -> PDBGCTL_SOFT_W < PDBGCTL_SPEC , 1 > { PDBGCTL_SOFT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Peripheral Debug Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pdbgctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pdbgctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PDBGCTL_SPEC ; impl crate :: RegisterSpec for PDBGCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pdbgctl::R`](R) reader structure"]
impl crate :: Readable for PDBGCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`pdbgctl::W`](W) writer structure"]
impl crate :: Writable for PDBGCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PDBGCTL to value 0"]
impl crate :: Resettable for PDBGCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "IIDX (r) register accessor: Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@iidx`]
module"]
pub type IIDX = crate :: Reg < iidx :: IIDX_SPEC > ; # [doc = "Interrupt index"]
pub mod iidx { # [doc = "Register `IIDX` reader"]
pub type R = crate :: R < IIDX_SPEC > ; # [doc = "Field `IIDX_STAT` reader - Interrupt index status"]
pub type IIDX_STAT_R = crate :: FieldReader < IIDX_STAT_A > ; # [doc = "Interrupt index status\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum IIDX_STAT_A { # [doc = "0: NO_INTR"]
IIDX_STAT_NO_INTR = 0 , # [doc = "1: Z"]
IIDX_STAT_Z = 1 , # [doc = "2: L"]
IIDX_STAT_L = 2 , # [doc = "5: CCD0"]
IIDX_STAT_CCD0 = 5 , # [doc = "6: CCD1"]
IIDX_STAT_CCD1 = 6 , # [doc = "7: CCD2"]
IIDX_STAT_CCD2 = 7 , # [doc = "8: CCD3"]
IIDX_STAT_CCD3 = 8 , # [doc = "9: CCU0"]
IIDX_STAT_CCU0 = 9 , # [doc = "10: CCU1"]
IIDX_STAT_CCU1 = 10 , # [doc = "11: CCU2"]
IIDX_STAT_CCU2 = 11 , # [doc = "12: CCU3"]
IIDX_STAT_CCU3 = 12 , # [doc = "13: CCD4"]
IIDX_STAT_CCD4 = 13 , # [doc = "14: CCD5"]
IIDX_STAT_CCD5 = 14 , # [doc = "15: CCU4"]
IIDX_STAT_CCU4 = 15 , # [doc = "16: CCU5"]
IIDX_STAT_CCU5 = 16 , # [doc = "25: F"]
IIDX_STAT_F = 25 , # [doc = "26: TOV"]
IIDX_STAT_TOV = 26 , # [doc = "27: REPC"]
IIDX_STAT_REPC = 27 , # [doc = "28: DC"]
IIDX_STAT_DC = 28 , # [doc = "29: QEIERR"]
IIDX_STAT_QEIERR = 29 , } impl From < IIDX_STAT_A > for u8 { # [inline (always)]
fn from (variant : IIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for IIDX_STAT_A { type Ux = u8 ; } impl IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < IIDX_STAT_A > { match self . bits { 0 => Some (IIDX_STAT_A :: IIDX_STAT_NO_INTR) , 1 => Some (IIDX_STAT_A :: IIDX_STAT_Z) , 2 => Some (IIDX_STAT_A :: IIDX_STAT_L) , 5 => Some (IIDX_STAT_A :: IIDX_STAT_CCD0) , 6 => Some (IIDX_STAT_A :: IIDX_STAT_CCD1) , 7 => Some (IIDX_STAT_A :: IIDX_STAT_CCD2) , 8 => Some (IIDX_STAT_A :: IIDX_STAT_CCD3) , 9 => Some (IIDX_STAT_A :: IIDX_STAT_CCU0) , 10 => Some (IIDX_STAT_A :: IIDX_STAT_CCU1) , 11 => Some (IIDX_STAT_A :: IIDX_STAT_CCU2) , 12 => Some (IIDX_STAT_A :: IIDX_STAT_CCU3) , 13 => Some (IIDX_STAT_A :: IIDX_STAT_CCD4) , 14 => Some (IIDX_STAT_A :: IIDX_STAT_CCD5) , 15 => Some (IIDX_STAT_A :: IIDX_STAT_CCU4) , 16 => Some (IIDX_STAT_A :: IIDX_STAT_CCU5) , 25 => Some (IIDX_STAT_A :: IIDX_STAT_F) , 26 => Some (IIDX_STAT_A :: IIDX_STAT_TOV) , 27 => Some (IIDX_STAT_A :: IIDX_STAT_REPC) , 28 => Some (IIDX_STAT_A :: IIDX_STAT_DC) , 29 => Some (IIDX_STAT_A :: IIDX_STAT_QEIERR) , _ => None , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_iidx_stat_no_intr (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_NO_INTR } # [doc = "Z"]
# [inline (always)]
pub fn is_iidx_stat_z (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_Z } # [doc = "L"]
# [inline (always)]
pub fn is_iidx_stat_l (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_L } # [doc = "CCD0"]
# [inline (always)]
pub fn is_iidx_stat_ccd0 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCD0 } # [doc = "CCD1"]
# [inline (always)]
pub fn is_iidx_stat_ccd1 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCD1 } # [doc = "CCD2"]
# [inline (always)]
pub fn is_iidx_stat_ccd2 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCD2 } # [doc = "CCD3"]
# [inline (always)]
pub fn is_iidx_stat_ccd3 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCD3 } # [doc = "CCU0"]
# [inline (always)]
pub fn is_iidx_stat_ccu0 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCU0 } # [doc = "CCU1"]
# [inline (always)]
pub fn is_iidx_stat_ccu1 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCU1 } # [doc = "CCU2"]
# [inline (always)]
pub fn is_iidx_stat_ccu2 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCU2 } # [doc = "CCU3"]
# [inline (always)]
pub fn is_iidx_stat_ccu3 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCU3 } # [doc = "CCD4"]
# [inline (always)]
pub fn is_iidx_stat_ccd4 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCD4 } # [doc = "CCD5"]
# [inline (always)]
pub fn is_iidx_stat_ccd5 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCD5 } # [doc = "CCU4"]
# [inline (always)]
pub fn is_iidx_stat_ccu4 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCU4 } # [doc = "CCU5"]
# [inline (always)]
pub fn is_iidx_stat_ccu5 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCU5 } # [doc = "F"]
# [inline (always)]
pub fn is_iidx_stat_f (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_F } # [doc = "TOV"]
# [inline (always)]
pub fn is_iidx_stat_tov (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_TOV } # [doc = "REPC"]
# [inline (always)]
pub fn is_iidx_stat_repc (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_REPC } # [doc = "DC"]
# [inline (always)]
pub fn is_iidx_stat_dc (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_DC } # [doc = "QEIERR"]
# [inline (always)]
pub fn is_iidx_stat_qeierr (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_QEIERR } } impl R { # [doc = "Bits 0:7 - Interrupt index status"]
# [inline (always)]
pub fn iidx_stat (& self) -> IIDX_STAT_R { IIDX_STAT_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IIDX_SPEC ; impl crate :: RegisterSpec for IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`iidx::R`](R) reader structure"]
impl crate :: Readable for IIDX_SPEC { } # [doc = "`reset()` method sets IIDX to value 0"]
impl crate :: Resettable for IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "IMASK (rw) register accessor: Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`imask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`imask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@imask`]
module"]
pub type IMASK = crate :: Reg < imask :: IMASK_SPEC > ; # [doc = "Interrupt mask"]
pub mod imask { # [doc = "Register `IMASK` reader"]
pub type R = crate :: R < IMASK_SPEC > ; # [doc = "Register `IMASK` writer"]
pub type W = crate :: W < IMASK_SPEC > ; # [doc = "Field `IMASK_Z` reader - Zero Event mask"]
pub type IMASK_Z_R = crate :: BitReader < IMASK_Z_A > ; # [doc = "Zero Event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_Z_A { # [doc = "0: CLR"]
IMASK_Z_CLR = 0 , # [doc = "1: SET"]
IMASK_Z_SET = 1 , } impl From < IMASK_Z_A > for bool { # [inline (always)]
fn from (variant : IMASK_Z_A) -> Self { variant as u8 != 0 } } impl IMASK_Z_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_Z_A { match self . bits { false => IMASK_Z_A :: IMASK_Z_CLR , true => IMASK_Z_A :: IMASK_Z_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_z_clr (& self) -> bool { * self == IMASK_Z_A :: IMASK_Z_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_z_set (& self) -> bool { * self == IMASK_Z_A :: IMASK_Z_SET } } # [doc = "Field `IMASK_Z` writer - Zero Event mask"]
pub type IMASK_Z_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_Z_A > ; impl < 'a , REG , const O : u8 > IMASK_Z_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_z_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_Z_A :: IMASK_Z_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_z_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_Z_A :: IMASK_Z_SET) } } # [doc = "Field `IMASK_L` reader - Load Event mask"]
pub type IMASK_L_R = crate :: BitReader < IMASK_L_A > ; # [doc = "Load Event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_L_A { # [doc = "0: CLR"]
IMASK_L_CLR = 0 , # [doc = "1: SET"]
IMASK_L_SET = 1 , } impl From < IMASK_L_A > for bool { # [inline (always)]
fn from (variant : IMASK_L_A) -> Self { variant as u8 != 0 } } impl IMASK_L_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_L_A { match self . bits { false => IMASK_L_A :: IMASK_L_CLR , true => IMASK_L_A :: IMASK_L_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_l_clr (& self) -> bool { * self == IMASK_L_A :: IMASK_L_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_l_set (& self) -> bool { * self == IMASK_L_A :: IMASK_L_SET } } # [doc = "Field `IMASK_L` writer - Load Event mask"]
pub type IMASK_L_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_L_A > ; impl < 'a , REG , const O : u8 > IMASK_L_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_l_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_L_A :: IMASK_L_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_l_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_L_A :: IMASK_L_SET) } } # [doc = "Field `IMASK_CCD0` reader - Capture or Compare DN event mask CCP0"]
pub type IMASK_CCD0_R = crate :: BitReader < IMASK_CCD0_A > ; # [doc = "Capture or Compare DN event mask CCP0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_CCD0_A { # [doc = "0: CLR"]
IMASK_CCD0_CLR = 0 , # [doc = "1: SET"]
IMASK_CCD0_SET = 1 , } impl From < IMASK_CCD0_A > for bool { # [inline (always)]
fn from (variant : IMASK_CCD0_A) -> Self { variant as u8 != 0 } } impl IMASK_CCD0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_CCD0_A { match self . bits { false => IMASK_CCD0_A :: IMASK_CCD0_CLR , true => IMASK_CCD0_A :: IMASK_CCD0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_ccd0_clr (& self) -> bool { * self == IMASK_CCD0_A :: IMASK_CCD0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_ccd0_set (& self) -> bool { * self == IMASK_CCD0_A :: IMASK_CCD0_SET } } # [doc = "Field `IMASK_CCD0` writer - Capture or Compare DN event mask CCP0"]
pub type IMASK_CCD0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_CCD0_A > ; impl < 'a , REG , const O : u8 > IMASK_CCD0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_ccd0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_CCD0_A :: IMASK_CCD0_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_ccd0_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_CCD0_A :: IMASK_CCD0_SET) } } # [doc = "Field `IMASK_CCD1` reader - Capture or Compare DN event mask CCP1"]
pub type IMASK_CCD1_R = crate :: BitReader < IMASK_CCD1_A > ; # [doc = "Capture or Compare DN event mask CCP1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_CCD1_A { # [doc = "0: CLR"]
IMASK_CCD1_CLR = 0 , # [doc = "1: SET"]
IMASK_CCD1_SET = 1 , } impl From < IMASK_CCD1_A > for bool { # [inline (always)]
fn from (variant : IMASK_CCD1_A) -> Self { variant as u8 != 0 } } impl IMASK_CCD1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_CCD1_A { match self . bits { false => IMASK_CCD1_A :: IMASK_CCD1_CLR , true => IMASK_CCD1_A :: IMASK_CCD1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_ccd1_clr (& self) -> bool { * self == IMASK_CCD1_A :: IMASK_CCD1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_ccd1_set (& self) -> bool { * self == IMASK_CCD1_A :: IMASK_CCD1_SET } } # [doc = "Field `IMASK_CCD1` writer - Capture or Compare DN event mask CCP1"]
pub type IMASK_CCD1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_CCD1_A > ; impl < 'a , REG , const O : u8 > IMASK_CCD1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_ccd1_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_CCD1_A :: IMASK_CCD1_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_ccd1_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_CCD1_A :: IMASK_CCD1_SET) } } # [doc = "Field `IMASK_CCU0` reader - Capture or Compare UP event mask CCP0"]
pub type IMASK_CCU0_R = crate :: BitReader < IMASK_CCU0_A > ; # [doc = "Capture or Compare UP event mask CCP0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_CCU0_A { # [doc = "0: CLR"]
IMASK_CCU0_CLR = 0 , # [doc = "1: SET"]
IMASK_CCU0_SET = 1 , } impl From < IMASK_CCU0_A > for bool { # [inline (always)]
fn from (variant : IMASK_CCU0_A) -> Self { variant as u8 != 0 } } impl IMASK_CCU0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_CCU0_A { match self . bits { false => IMASK_CCU0_A :: IMASK_CCU0_CLR , true => IMASK_CCU0_A :: IMASK_CCU0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_ccu0_clr (& self) -> bool { * self == IMASK_CCU0_A :: IMASK_CCU0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_ccu0_set (& self) -> bool { * self == IMASK_CCU0_A :: IMASK_CCU0_SET } } # [doc = "Field `IMASK_CCU0` writer - Capture or Compare UP event mask CCP0"]
pub type IMASK_CCU0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_CCU0_A > ; impl < 'a , REG , const O : u8 > IMASK_CCU0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_ccu0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_CCU0_A :: IMASK_CCU0_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_ccu0_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_CCU0_A :: IMASK_CCU0_SET) } } # [doc = "Field `IMASK_CCU1` reader - Capture or Compare UP event mask CCP1"]
pub type IMASK_CCU1_R = crate :: BitReader < IMASK_CCU1_A > ; # [doc = "Capture or Compare UP event mask CCP1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_CCU1_A { # [doc = "0: CLR"]
IMASK_CCU1_CLR = 0 , # [doc = "1: SET"]
IMASK_CCU1_SET = 1 , } impl From < IMASK_CCU1_A > for bool { # [inline (always)]
fn from (variant : IMASK_CCU1_A) -> Self { variant as u8 != 0 } } impl IMASK_CCU1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_CCU1_A { match self . bits { false => IMASK_CCU1_A :: IMASK_CCU1_CLR , true => IMASK_CCU1_A :: IMASK_CCU1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_ccu1_clr (& self) -> bool { * self == IMASK_CCU1_A :: IMASK_CCU1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_ccu1_set (& self) -> bool { * self == IMASK_CCU1_A :: IMASK_CCU1_SET } } # [doc = "Field `IMASK_CCU1` writer - Capture or Compare UP event mask CCP1"]
pub type IMASK_CCU1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_CCU1_A > ; impl < 'a , REG , const O : u8 > IMASK_CCU1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_ccu1_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_CCU1_A :: IMASK_CCU1_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_ccu1_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_CCU1_A :: IMASK_CCU1_SET) } } # [doc = "Field `IMASK_TOV` reader - Trigger Overflow Event mask"]
pub type IMASK_TOV_R = crate :: BitReader < IMASK_TOV_A > ; # [doc = "Trigger Overflow Event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_TOV_A { # [doc = "0: CLR"]
IMASK_TOV_CLR = 0 , # [doc = "1: SET"]
IMASK_TOV_SET = 1 , } impl From < IMASK_TOV_A > for bool { # [inline (always)]
fn from (variant : IMASK_TOV_A) -> Self { variant as u8 != 0 } } impl IMASK_TOV_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_TOV_A { match self . bits { false => IMASK_TOV_A :: IMASK_TOV_CLR , true => IMASK_TOV_A :: IMASK_TOV_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_tov_clr (& self) -> bool { * self == IMASK_TOV_A :: IMASK_TOV_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_tov_set (& self) -> bool { * self == IMASK_TOV_A :: IMASK_TOV_SET } } # [doc = "Field `IMASK_TOV` writer - Trigger Overflow Event mask"]
pub type IMASK_TOV_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_TOV_A > ; impl < 'a , REG , const O : u8 > IMASK_TOV_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_tov_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_TOV_A :: IMASK_TOV_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_tov_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_TOV_A :: IMASK_TOV_SET) } } impl R { # [doc = "Bit 0 - Zero Event mask"]
# [inline (always)]
pub fn imask_z (& self) -> IMASK_Z_R { IMASK_Z_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Load Event mask"]
# [inline (always)]
pub fn imask_l (& self) -> IMASK_L_R { IMASK_L_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 4 - Capture or Compare DN event mask CCP0"]
# [inline (always)]
pub fn imask_ccd0 (& self) -> IMASK_CCD0_R { IMASK_CCD0_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Capture or Compare DN event mask CCP1"]
# [inline (always)]
pub fn imask_ccd1 (& self) -> IMASK_CCD1_R { IMASK_CCD1_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 8 - Capture or Compare UP event mask CCP0"]
# [inline (always)]
pub fn imask_ccu0 (& self) -> IMASK_CCU0_R { IMASK_CCU0_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - Capture or Compare UP event mask CCP1"]
# [inline (always)]
pub fn imask_ccu1 (& self) -> IMASK_CCU1_R { IMASK_CCU1_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 25 - Trigger Overflow Event mask"]
# [inline (always)]
pub fn imask_tov (& self) -> IMASK_TOV_R { IMASK_TOV_R :: new (((self . bits >> 25) & 1) != 0) } } impl W { # [doc = "Bit 0 - Zero Event mask"]
# [inline (always)]
# [must_use]
pub fn imask_z (& mut self) -> IMASK_Z_W < IMASK_SPEC , 0 > { IMASK_Z_W :: new (self) } # [doc = "Bit 1 - Load Event mask"]
# [inline (always)]
# [must_use]
pub fn imask_l (& mut self) -> IMASK_L_W < IMASK_SPEC , 1 > { IMASK_L_W :: new (self) } # [doc = "Bit 4 - Capture or Compare DN event mask CCP0"]
# [inline (always)]
# [must_use]
pub fn imask_ccd0 (& mut self) -> IMASK_CCD0_W < IMASK_SPEC , 4 > { IMASK_CCD0_W :: new (self) } # [doc = "Bit 5 - Capture or Compare DN event mask CCP1"]
# [inline (always)]
# [must_use]
pub fn imask_ccd1 (& mut self) -> IMASK_CCD1_W < IMASK_SPEC , 5 > { IMASK_CCD1_W :: new (self) } # [doc = "Bit 8 - Capture or Compare UP event mask CCP0"]
# [inline (always)]
# [must_use]
pub fn imask_ccu0 (& mut self) -> IMASK_CCU0_W < IMASK_SPEC , 8 > { IMASK_CCU0_W :: new (self) } # [doc = "Bit 9 - Capture or Compare UP event mask CCP1"]
# [inline (always)]
# [must_use]
pub fn imask_ccu1 (& mut self) -> IMASK_CCU1_W < IMASK_SPEC , 9 > { IMASK_CCU1_W :: new (self) } # [doc = "Bit 25 - Trigger Overflow Event mask"]
# [inline (always)]
# [must_use]
pub fn imask_tov (& mut self) -> IMASK_TOV_W < IMASK_SPEC , 25 > { IMASK_TOV_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`imask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`imask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IMASK_SPEC ; impl crate :: RegisterSpec for IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`imask::R`](R) reader structure"]
impl crate :: Readable for IMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`imask::W`](W) writer structure"]
impl crate :: Writable for IMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets IMASK to value 0"]
impl crate :: Resettable for IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RIS (r) register accessor: Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ris`]
module"]
pub type RIS = crate :: Reg < ris :: RIS_SPEC > ; # [doc = "Raw interrupt status"]
pub mod ris { # [doc = "Register `RIS` reader"]
pub type R = crate :: R < RIS_SPEC > ; # [doc = "Field `RIS_Z` reader - Zero event generated an interrupt."]
pub type RIS_Z_R = crate :: BitReader < RIS_Z_A > ; # [doc = "Zero event generated an interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_Z_A { # [doc = "0: CLR"]
RIS_Z_CLR = 0 , # [doc = "1: SET"]
RIS_Z_SET = 1 , } impl From < RIS_Z_A > for bool { # [inline (always)]
fn from (variant : RIS_Z_A) -> Self { variant as u8 != 0 } } impl RIS_Z_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_Z_A { match self . bits { false => RIS_Z_A :: RIS_Z_CLR , true => RIS_Z_A :: RIS_Z_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_z_clr (& self) -> bool { * self == RIS_Z_A :: RIS_Z_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_z_set (& self) -> bool { * self == RIS_Z_A :: RIS_Z_SET } } # [doc = "Field `RIS_L` reader - Load event generated an interrupt."]
pub type RIS_L_R = crate :: BitReader < RIS_L_A > ; # [doc = "Load event generated an interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_L_A { # [doc = "0: CLR"]
RIS_L_CLR = 0 , # [doc = "1: SET"]
RIS_L_SET = 1 , } impl From < RIS_L_A > for bool { # [inline (always)]
fn from (variant : RIS_L_A) -> Self { variant as u8 != 0 } } impl RIS_L_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_L_A { match self . bits { false => RIS_L_A :: RIS_L_CLR , true => RIS_L_A :: RIS_L_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_l_clr (& self) -> bool { * self == RIS_L_A :: RIS_L_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_l_set (& self) -> bool { * self == RIS_L_A :: RIS_L_SET } } # [doc = "Field `RIS_CCD0` reader - Capture or compare down event generated an interrupt CCP0"]
pub type RIS_CCD0_R = crate :: BitReader < RIS_CCD0_A > ; # [doc = "Capture or compare down event generated an interrupt CCP0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_CCD0_A { # [doc = "0: CLR"]
RIS_CCD0_CLR = 0 , # [doc = "1: SET"]
RIS_CCD0_SET = 1 , } impl From < RIS_CCD0_A > for bool { # [inline (always)]
fn from (variant : RIS_CCD0_A) -> Self { variant as u8 != 0 } } impl RIS_CCD0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_CCD0_A { match self . bits { false => RIS_CCD0_A :: RIS_CCD0_CLR , true => RIS_CCD0_A :: RIS_CCD0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_ccd0_clr (& self) -> bool { * self == RIS_CCD0_A :: RIS_CCD0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_ccd0_set (& self) -> bool { * self == RIS_CCD0_A :: RIS_CCD0_SET } } # [doc = "Field `RIS_CCD1` reader - Capture or compare down event generated an interrupt CCP1"]
pub type RIS_CCD1_R = crate :: BitReader < RIS_CCD1_A > ; # [doc = "Capture or compare down event generated an interrupt CCP1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_CCD1_A { # [doc = "0: CLR"]
RIS_CCD1_CLR = 0 , # [doc = "1: SET"]
RIS_CCD1_SET = 1 , } impl From < RIS_CCD1_A > for bool { # [inline (always)]
fn from (variant : RIS_CCD1_A) -> Self { variant as u8 != 0 } } impl RIS_CCD1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_CCD1_A { match self . bits { false => RIS_CCD1_A :: RIS_CCD1_CLR , true => RIS_CCD1_A :: RIS_CCD1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_ccd1_clr (& self) -> bool { * self == RIS_CCD1_A :: RIS_CCD1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_ccd1_set (& self) -> bool { * self == RIS_CCD1_A :: RIS_CCD1_SET } } # [doc = "Field `RIS_CCU0` reader - Capture or compare up event generated an interrupt CCP0"]
pub type RIS_CCU0_R = crate :: BitReader < RIS_CCU0_A > ; # [doc = "Capture or compare up event generated an interrupt CCP0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_CCU0_A { # [doc = "0: CLR"]
RIS_CCU0_CLR = 0 , # [doc = "1: SET"]
RIS_CCU0_SET = 1 , } impl From < RIS_CCU0_A > for bool { # [inline (always)]
fn from (variant : RIS_CCU0_A) -> Self { variant as u8 != 0 } } impl RIS_CCU0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_CCU0_A { match self . bits { false => RIS_CCU0_A :: RIS_CCU0_CLR , true => RIS_CCU0_A :: RIS_CCU0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_ccu0_clr (& self) -> bool { * self == RIS_CCU0_A :: RIS_CCU0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_ccu0_set (& self) -> bool { * self == RIS_CCU0_A :: RIS_CCU0_SET } } # [doc = "Field `RIS_CCU1` reader - Capture or compare up event generated an interrupt CCP1"]
pub type RIS_CCU1_R = crate :: BitReader < RIS_CCU1_A > ; # [doc = "Capture or compare up event generated an interrupt CCP1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_CCU1_A { # [doc = "0: CLR"]
RIS_CCU1_CLR = 0 , # [doc = "1: SET"]
RIS_CCU1_SET = 1 , } impl From < RIS_CCU1_A > for bool { # [inline (always)]
fn from (variant : RIS_CCU1_A) -> Self { variant as u8 != 0 } } impl RIS_CCU1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_CCU1_A { match self . bits { false => RIS_CCU1_A :: RIS_CCU1_CLR , true => RIS_CCU1_A :: RIS_CCU1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_ccu1_clr (& self) -> bool { * self == RIS_CCU1_A :: RIS_CCU1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_ccu1_set (& self) -> bool { * self == RIS_CCU1_A :: RIS_CCU1_SET } } # [doc = "Field `RIS_TOV` reader - Trigger overflow"]
pub type RIS_TOV_R = crate :: BitReader < RIS_TOV_A > ; # [doc = "Trigger overflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_TOV_A { # [doc = "0: CLR"]
RIS_TOV_CLR = 0 , # [doc = "1: SET"]
RIS_TOV_SET = 1 , } impl From < RIS_TOV_A > for bool { # [inline (always)]
fn from (variant : RIS_TOV_A) -> Self { variant as u8 != 0 } } impl RIS_TOV_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_TOV_A { match self . bits { false => RIS_TOV_A :: RIS_TOV_CLR , true => RIS_TOV_A :: RIS_TOV_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_tov_clr (& self) -> bool { * self == RIS_TOV_A :: RIS_TOV_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_tov_set (& self) -> bool { * self == RIS_TOV_A :: RIS_TOV_SET } } impl R { # [doc = "Bit 0 - Zero event generated an interrupt."]
# [inline (always)]
pub fn ris_z (& self) -> RIS_Z_R { RIS_Z_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Load event generated an interrupt."]
# [inline (always)]
pub fn ris_l (& self) -> RIS_L_R { RIS_L_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 4 - Capture or compare down event generated an interrupt CCP0"]
# [inline (always)]
pub fn ris_ccd0 (& self) -> RIS_CCD0_R { RIS_CCD0_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Capture or compare down event generated an interrupt CCP1"]
# [inline (always)]
pub fn ris_ccd1 (& self) -> RIS_CCD1_R { RIS_CCD1_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 8 - Capture or compare up event generated an interrupt CCP0"]
# [inline (always)]
pub fn ris_ccu0 (& self) -> RIS_CCU0_R { RIS_CCU0_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - Capture or compare up event generated an interrupt CCP1"]
# [inline (always)]
pub fn ris_ccu1 (& self) -> RIS_CCU1_R { RIS_CCU1_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 25 - Trigger overflow"]
# [inline (always)]
pub fn ris_tov (& self) -> RIS_TOV_R { RIS_TOV_R :: new (((self . bits >> 25) & 1) != 0) } } # [doc = "Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RIS_SPEC ; impl crate :: RegisterSpec for RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ris::R`](R) reader structure"]
impl crate :: Readable for RIS_SPEC { } # [doc = "`reset()` method sets RIS to value 0"]
impl crate :: Resettable for RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "MIS (r) register accessor: Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mis`]
module"]
pub type MIS = crate :: Reg < mis :: MIS_SPEC > ; # [doc = "Masked interrupt status"]
pub mod mis { # [doc = "Register `MIS` reader"]
pub type R = crate :: R < MIS_SPEC > ; # [doc = "Field `MIS_Z` reader - Zero event generated an interrupt."]
pub type MIS_Z_R = crate :: BitReader < MIS_Z_A > ; # [doc = "Zero event generated an interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_Z_A { # [doc = "0: CLR"]
MIS_Z_CLR = 0 , # [doc = "1: SET"]
MIS_Z_SET = 1 , } impl From < MIS_Z_A > for bool { # [inline (always)]
fn from (variant : MIS_Z_A) -> Self { variant as u8 != 0 } } impl MIS_Z_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_Z_A { match self . bits { false => MIS_Z_A :: MIS_Z_CLR , true => MIS_Z_A :: MIS_Z_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_z_clr (& self) -> bool { * self == MIS_Z_A :: MIS_Z_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_z_set (& self) -> bool { * self == MIS_Z_A :: MIS_Z_SET } } # [doc = "Field `MIS_L` reader - Load event generated an interrupt."]
pub type MIS_L_R = crate :: BitReader < MIS_L_A > ; # [doc = "Load event generated an interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_L_A { # [doc = "0: CLR"]
MIS_L_CLR = 0 , # [doc = "1: SET"]
MIS_L_SET = 1 , } impl From < MIS_L_A > for bool { # [inline (always)]
fn from (variant : MIS_L_A) -> Self { variant as u8 != 0 } } impl MIS_L_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_L_A { match self . bits { false => MIS_L_A :: MIS_L_CLR , true => MIS_L_A :: MIS_L_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_l_clr (& self) -> bool { * self == MIS_L_A :: MIS_L_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_l_set (& self) -> bool { * self == MIS_L_A :: MIS_L_SET } } # [doc = "Field `MIS_CCD0` reader - Capture or compare down event generated an interrupt CCP0"]
pub type MIS_CCD0_R = crate :: BitReader < MIS_CCD0_A > ; # [doc = "Capture or compare down event generated an interrupt CCP0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_CCD0_A { # [doc = "0: CLR"]
MIS_CCD0_CLR = 0 , # [doc = "1: SET"]
MIS_CCD0_SET = 1 , } impl From < MIS_CCD0_A > for bool { # [inline (always)]
fn from (variant : MIS_CCD0_A) -> Self { variant as u8 != 0 } } impl MIS_CCD0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_CCD0_A { match self . bits { false => MIS_CCD0_A :: MIS_CCD0_CLR , true => MIS_CCD0_A :: MIS_CCD0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_ccd0_clr (& self) -> bool { * self == MIS_CCD0_A :: MIS_CCD0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_ccd0_set (& self) -> bool { * self == MIS_CCD0_A :: MIS_CCD0_SET } } # [doc = "Field `MIS_CCD1` reader - Capture or compare down event generated an interrupt CCP1"]
pub type MIS_CCD1_R = crate :: BitReader < MIS_CCD1_A > ; # [doc = "Capture or compare down event generated an interrupt CCP1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_CCD1_A { # [doc = "0: CLR"]
MIS_CCD1_CLR = 0 , # [doc = "1: SET"]
MIS_CCD1_SET = 1 , } impl From < MIS_CCD1_A > for bool { # [inline (always)]
fn from (variant : MIS_CCD1_A) -> Self { variant as u8 != 0 } } impl MIS_CCD1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_CCD1_A { match self . bits { false => MIS_CCD1_A :: MIS_CCD1_CLR , true => MIS_CCD1_A :: MIS_CCD1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_ccd1_clr (& self) -> bool { * self == MIS_CCD1_A :: MIS_CCD1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_ccd1_set (& self) -> bool { * self == MIS_CCD1_A :: MIS_CCD1_SET } } # [doc = "Field `MIS_CCU0` reader - Capture or compare up event generated an interrupt CCP0"]
pub type MIS_CCU0_R = crate :: BitReader < MIS_CCU0_A > ; # [doc = "Capture or compare up event generated an interrupt CCP0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_CCU0_A { # [doc = "0: CLR"]
MIS_CCU0_CLR = 0 , # [doc = "1: SET"]
MIS_CCU0_SET = 1 , } impl From < MIS_CCU0_A > for bool { # [inline (always)]
fn from (variant : MIS_CCU0_A) -> Self { variant as u8 != 0 } } impl MIS_CCU0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_CCU0_A { match self . bits { false => MIS_CCU0_A :: MIS_CCU0_CLR , true => MIS_CCU0_A :: MIS_CCU0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_ccu0_clr (& self) -> bool { * self == MIS_CCU0_A :: MIS_CCU0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_ccu0_set (& self) -> bool { * self == MIS_CCU0_A :: MIS_CCU0_SET } } # [doc = "Field `MIS_CCU1` reader - Capture or compare up event generated an interrupt CCP1"]
pub type MIS_CCU1_R = crate :: BitReader < MIS_CCU1_A > ; # [doc = "Capture or compare up event generated an interrupt CCP1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_CCU1_A { # [doc = "0: CLR"]
MIS_CCU1_CLR = 0 , # [doc = "1: SET"]
MIS_CCU1_SET = 1 , } impl From < MIS_CCU1_A > for bool { # [inline (always)]
fn from (variant : MIS_CCU1_A) -> Self { variant as u8 != 0 } } impl MIS_CCU1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_CCU1_A { match self . bits { false => MIS_CCU1_A :: MIS_CCU1_CLR , true => MIS_CCU1_A :: MIS_CCU1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_ccu1_clr (& self) -> bool { * self == MIS_CCU1_A :: MIS_CCU1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_ccu1_set (& self) -> bool { * self == MIS_CCU1_A :: MIS_CCU1_SET } } # [doc = "Field `MIS_CCD4` reader - Compare down event generated an interrupt CCP4"]
pub type MIS_CCD4_R = crate :: BitReader < MIS_CCD4_A > ; # [doc = "Compare down event generated an interrupt CCP4\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_CCD4_A { # [doc = "0: CLR"]
MIS_CCD4_CLR = 0 , # [doc = "1: SET"]
MIS_CCD4_SET = 1 , } impl From < MIS_CCD4_A > for bool { # [inline (always)]
fn from (variant : MIS_CCD4_A) -> Self { variant as u8 != 0 } } impl MIS_CCD4_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_CCD4_A { match self . bits { false => MIS_CCD4_A :: MIS_CCD4_CLR , true => MIS_CCD4_A :: MIS_CCD4_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_ccd4_clr (& self) -> bool { * self == MIS_CCD4_A :: MIS_CCD4_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_ccd4_set (& self) -> bool { * self == MIS_CCD4_A :: MIS_CCD4_SET } } # [doc = "Field `MIS_CCD5` reader - Compare down event generated an interrupt CCP5"]
pub type MIS_CCD5_R = crate :: BitReader < MIS_CCD5_A > ; # [doc = "Compare down event generated an interrupt CCP5\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_CCD5_A { # [doc = "0: CLR"]
MIS_CCD5_CLR = 0 , # [doc = "1: SET"]
MIS_CCD5_SET = 1 , } impl From < MIS_CCD5_A > for bool { # [inline (always)]
fn from (variant : MIS_CCD5_A) -> Self { variant as u8 != 0 } } impl MIS_CCD5_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_CCD5_A { match self . bits { false => MIS_CCD5_A :: MIS_CCD5_CLR , true => MIS_CCD5_A :: MIS_CCD5_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_ccd5_clr (& self) -> bool { * self == MIS_CCD5_A :: MIS_CCD5_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_ccd5_set (& self) -> bool { * self == MIS_CCD5_A :: MIS_CCD5_SET } } # [doc = "Field `MIS_CCU4` reader - Compare up event generated an interrupt CCP4"]
pub type MIS_CCU4_R = crate :: BitReader < MIS_CCU4_A > ; # [doc = "Compare up event generated an interrupt CCP4\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_CCU4_A { # [doc = "0: CLR"]
MIS_CCU4_CLR = 0 , # [doc = "1: SET"]
MIS_CCU4_SET = 1 , } impl From < MIS_CCU4_A > for bool { # [inline (always)]
fn from (variant : MIS_CCU4_A) -> Self { variant as u8 != 0 } } impl MIS_CCU4_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_CCU4_A { match self . bits { false => MIS_CCU4_A :: MIS_CCU4_CLR , true => MIS_CCU4_A :: MIS_CCU4_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_ccu4_clr (& self) -> bool { * self == MIS_CCU4_A :: MIS_CCU4_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_ccu4_set (& self) -> bool { * self == MIS_CCU4_A :: MIS_CCU4_SET } } # [doc = "Field `MIS_CCU5` reader - Compare up event generated an interrupt CCP5"]
pub type MIS_CCU5_R = crate :: BitReader < MIS_CCU5_A > ; # [doc = "Compare up event generated an interrupt CCP5\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_CCU5_A { # [doc = "0: CLR"]
MIS_CCU5_CLR = 0 , # [doc = "1: SET"]
MIS_CCU5_SET = 1 , } impl From < MIS_CCU5_A > for bool { # [inline (always)]
fn from (variant : MIS_CCU5_A) -> Self { variant as u8 != 0 } } impl MIS_CCU5_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_CCU5_A { match self . bits { false => MIS_CCU5_A :: MIS_CCU5_CLR , true => MIS_CCU5_A :: MIS_CCU5_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_ccu5_clr (& self) -> bool { * self == MIS_CCU5_A :: MIS_CCU5_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_ccu5_set (& self) -> bool { * self == MIS_CCU5_A :: MIS_CCU5_SET } } # [doc = "Field `MIS_TOV` reader - Trigger overflow"]
pub type MIS_TOV_R = crate :: BitReader < MIS_TOV_A > ; # [doc = "Trigger overflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_TOV_A { # [doc = "0: CLR"]
MIS_TOV_CLR = 0 , # [doc = "1: SET"]
MIS_TOV_SET = 1 , } impl From < MIS_TOV_A > for bool { # [inline (always)]
fn from (variant : MIS_TOV_A) -> Self { variant as u8 != 0 } } impl MIS_TOV_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_TOV_A { match self . bits { false => MIS_TOV_A :: MIS_TOV_CLR , true => MIS_TOV_A :: MIS_TOV_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_tov_clr (& self) -> bool { * self == MIS_TOV_A :: MIS_TOV_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_tov_set (& self) -> bool { * self == MIS_TOV_A :: MIS_TOV_SET } } impl R { # [doc = "Bit 0 - Zero event generated an interrupt."]
# [inline (always)]
pub fn mis_z (& self) -> MIS_Z_R { MIS_Z_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Load event generated an interrupt."]
# [inline (always)]
pub fn mis_l (& self) -> MIS_L_R { MIS_L_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 4 - Capture or compare down event generated an interrupt CCP0"]
# [inline (always)]
pub fn mis_ccd0 (& self) -> MIS_CCD0_R { MIS_CCD0_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Capture or compare down event generated an interrupt CCP1"]
# [inline (always)]
pub fn mis_ccd1 (& self) -> MIS_CCD1_R { MIS_CCD1_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 8 - Capture or compare up event generated an interrupt CCP0"]
# [inline (always)]
pub fn mis_ccu0 (& self) -> MIS_CCU0_R { MIS_CCU0_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - Capture or compare up event generated an interrupt CCP1"]
# [inline (always)]
pub fn mis_ccu1 (& self) -> MIS_CCU1_R { MIS_CCU1_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 12 - Compare down event generated an interrupt CCP4"]
# [inline (always)]
pub fn mis_ccd4 (& self) -> MIS_CCD4_R { MIS_CCD4_R :: new (((self . bits >> 12) & 1) != 0) } # [doc = "Bit 13 - Compare down event generated an interrupt CCP5"]
# [inline (always)]
pub fn mis_ccd5 (& self) -> MIS_CCD5_R { MIS_CCD5_R :: new (((self . bits >> 13) & 1) != 0) } # [doc = "Bit 14 - Compare up event generated an interrupt CCP4"]
# [inline (always)]
pub fn mis_ccu4 (& self) -> MIS_CCU4_R { MIS_CCU4_R :: new (((self . bits >> 14) & 1) != 0) } # [doc = "Bit 15 - Compare up event generated an interrupt CCP5"]
# [inline (always)]
pub fn mis_ccu5 (& self) -> MIS_CCU5_R { MIS_CCU5_R :: new (((self . bits >> 15) & 1) != 0) } # [doc = "Bit 25 - Trigger overflow"]
# [inline (always)]
pub fn mis_tov (& self) -> MIS_TOV_R { MIS_TOV_R :: new (((self . bits >> 25) & 1) != 0) } } # [doc = "Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MIS_SPEC ; impl crate :: RegisterSpec for MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`mis::R`](R) reader structure"]
impl crate :: Readable for MIS_SPEC { } # [doc = "`reset()` method sets MIS to value 0"]
impl crate :: Resettable for MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "ISET (w) register accessor: Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@iset`]
module"]
pub type ISET = crate :: Reg < iset :: ISET_SPEC > ; # [doc = "Interrupt set"]
pub mod iset { # [doc = "Register `ISET` writer"]
pub type W = crate :: W < ISET_SPEC > ; # [doc = "Zero event SET\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_Z_AW { # [doc = "0: NO_EFFECT"]
ISET_Z_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_Z_SET = 1 , } impl From < ISET_Z_AW > for bool { # [inline (always)]
fn from (variant : ISET_Z_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_Z` writer - Zero event SET"]
pub type ISET_Z_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_Z_AW > ; impl < 'a , REG , const O : u8 > ISET_Z_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_z_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_Z_AW :: ISET_Z_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_z_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_Z_AW :: ISET_Z_SET) } } # [doc = "Load event SET\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_L_AW { # [doc = "0: NO_EFFECT"]
ISET_L_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_L_SET = 1 , } impl From < ISET_L_AW > for bool { # [inline (always)]
fn from (variant : ISET_L_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_L` writer - Load event SET"]
pub type ISET_L_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_L_AW > ; impl < 'a , REG , const O : u8 > ISET_L_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_l_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_L_AW :: ISET_L_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_l_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_L_AW :: ISET_L_SET) } } # [doc = "Capture or compare down event SET\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_CCD0_AW { # [doc = "0: NO_EFFECT"]
ISET_CCD0_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_CCD0_SET = 1 , } impl From < ISET_CCD0_AW > for bool { # [inline (always)]
fn from (variant : ISET_CCD0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_CCD0` writer - Capture or compare down event SET"]
pub type ISET_CCD0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_CCD0_AW > ; impl < 'a , REG , const O : u8 > ISET_CCD0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_ccd0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_CCD0_AW :: ISET_CCD0_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_ccd0_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_CCD0_AW :: ISET_CCD0_SET) } } # [doc = "Capture or compare down event SET\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_CCD1_AW { # [doc = "0: NO_EFFECT"]
ISET_CCD1_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_CCD1_SET = 1 , } impl From < ISET_CCD1_AW > for bool { # [inline (always)]
fn from (variant : ISET_CCD1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_CCD1` writer - Capture or compare down event SET"]
pub type ISET_CCD1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_CCD1_AW > ; impl < 'a , REG , const O : u8 > ISET_CCD1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_ccd1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_CCD1_AW :: ISET_CCD1_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_ccd1_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_CCD1_AW :: ISET_CCD1_SET) } } # [doc = "Capture or compare up event SET\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_CCU0_AW { # [doc = "0: NO_EFFECT"]
ISET_CCU0_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_CCU0_SET = 1 , } impl From < ISET_CCU0_AW > for bool { # [inline (always)]
fn from (variant : ISET_CCU0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_CCU0` writer - Capture or compare up event SET"]
pub type ISET_CCU0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_CCU0_AW > ; impl < 'a , REG , const O : u8 > ISET_CCU0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_ccu0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_CCU0_AW :: ISET_CCU0_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_ccu0_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_CCU0_AW :: ISET_CCU0_SET) } } # [doc = "Capture or compare up event SET\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_CCU1_AW { # [doc = "0: NO_EFFECT"]
ISET_CCU1_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_CCU1_SET = 1 , } impl From < ISET_CCU1_AW > for bool { # [inline (always)]
fn from (variant : ISET_CCU1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_CCU1` writer - Capture or compare up event SET"]
pub type ISET_CCU1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_CCU1_AW > ; impl < 'a , REG , const O : u8 > ISET_CCU1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_ccu1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_CCU1_AW :: ISET_CCU1_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_ccu1_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_CCU1_AW :: ISET_CCU1_SET) } } # [doc = "Trigger Overflow event SET\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_TOV_AW { # [doc = "0: NO_EFFECT"]
ISET_TOV_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_TOV_SET = 1 , } impl From < ISET_TOV_AW > for bool { # [inline (always)]
fn from (variant : ISET_TOV_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_TOV` writer - Trigger Overflow event SET"]
pub type ISET_TOV_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_TOV_AW > ; impl < 'a , REG , const O : u8 > ISET_TOV_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_tov_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_TOV_AW :: ISET_TOV_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_tov_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_TOV_AW :: ISET_TOV_SET) } } impl W { # [doc = "Bit 0 - Zero event SET"]
# [inline (always)]
# [must_use]
pub fn iset_z (& mut self) -> ISET_Z_W < ISET_SPEC , 0 > { ISET_Z_W :: new (self) } # [doc = "Bit 1 - Load event SET"]
# [inline (always)]
# [must_use]
pub fn iset_l (& mut self) -> ISET_L_W < ISET_SPEC , 1 > { ISET_L_W :: new (self) } # [doc = "Bit 4 - Capture or compare down event SET"]
# [inline (always)]
# [must_use]
pub fn iset_ccd0 (& mut self) -> ISET_CCD0_W < ISET_SPEC , 4 > { ISET_CCD0_W :: new (self) } # [doc = "Bit 5 - Capture or compare down event SET"]
# [inline (always)]
# [must_use]
pub fn iset_ccd1 (& mut self) -> ISET_CCD1_W < ISET_SPEC , 5 > { ISET_CCD1_W :: new (self) } # [doc = "Bit 8 - Capture or compare up event SET"]
# [inline (always)]
# [must_use]
pub fn iset_ccu0 (& mut self) -> ISET_CCU0_W < ISET_SPEC , 8 > { ISET_CCU0_W :: new (self) } # [doc = "Bit 9 - Capture or compare up event SET"]
# [inline (always)]
# [must_use]
pub fn iset_ccu1 (& mut self) -> ISET_CCU1_W < ISET_SPEC , 9 > { ISET_CCU1_W :: new (self) } # [doc = "Bit 25 - Trigger Overflow event SET"]
# [inline (always)]
# [must_use]
pub fn iset_tov (& mut self) -> ISET_TOV_W < ISET_SPEC , 25 > { ISET_TOV_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ISET_SPEC ; impl crate :: RegisterSpec for ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`iset::W`](W) writer structure"]
impl crate :: Writable for ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets ISET to value 0"]
impl crate :: Resettable for ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "ICLR (w) register accessor: Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@iclr`]
module"]
pub type ICLR = crate :: Reg < iclr :: ICLR_SPEC > ; # [doc = "Interrupt clear"]
pub mod iclr { # [doc = "Register `ICLR` writer"]
pub type W = crate :: W < ICLR_SPEC > ; # [doc = "Zero event CLEAR\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_Z_AW { # [doc = "0: NO_EFFECT"]
ICLR_Z_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_Z_CLR = 1 , } impl From < ICLR_Z_AW > for bool { # [inline (always)]
fn from (variant : ICLR_Z_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_Z` writer - Zero event CLEAR"]
pub type ICLR_Z_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_Z_AW > ; impl < 'a , REG , const O : u8 > ICLR_Z_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_z_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_Z_AW :: ICLR_Z_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_z_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_Z_AW :: ICLR_Z_CLR) } } # [doc = "Load event CLEAR\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_L_AW { # [doc = "0: NO_EFFECT"]
ICLR_L_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_L_CLR = 1 , } impl From < ICLR_L_AW > for bool { # [inline (always)]
fn from (variant : ICLR_L_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_L` writer - Load event CLEAR"]
pub type ICLR_L_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_L_AW > ; impl < 'a , REG , const O : u8 > ICLR_L_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_l_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_L_AW :: ICLR_L_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_l_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_L_AW :: ICLR_L_CLR) } } # [doc = "Capture or compare down event CLEAR\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_CCD0_AW { # [doc = "0: NO_EFFECT"]
ICLR_CCD0_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_CCD0_CLR = 1 , } impl From < ICLR_CCD0_AW > for bool { # [inline (always)]
fn from (variant : ICLR_CCD0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_CCD0` writer - Capture or compare down event CLEAR"]
pub type ICLR_CCD0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_CCD0_AW > ; impl < 'a , REG , const O : u8 > ICLR_CCD0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_ccd0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_CCD0_AW :: ICLR_CCD0_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_ccd0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_CCD0_AW :: ICLR_CCD0_CLR) } } # [doc = "Capture or compare down event CLEAR\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_CCD1_AW { # [doc = "0: NO_EFFECT"]
ICLR_CCD1_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_CCD1_CLR = 1 , } impl From < ICLR_CCD1_AW > for bool { # [inline (always)]
fn from (variant : ICLR_CCD1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_CCD1` writer - Capture or compare down event CLEAR"]
pub type ICLR_CCD1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_CCD1_AW > ; impl < 'a , REG , const O : u8 > ICLR_CCD1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_ccd1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_CCD1_AW :: ICLR_CCD1_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_ccd1_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_CCD1_AW :: ICLR_CCD1_CLR) } } # [doc = "Capture or compare up event CLEAR\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_CCU0_AW { # [doc = "0: NO_EFFECT"]
ICLR_CCU0_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_CCU0_CLR = 1 , } impl From < ICLR_CCU0_AW > for bool { # [inline (always)]
fn from (variant : ICLR_CCU0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_CCU0` writer - Capture or compare up event CLEAR"]
pub type ICLR_CCU0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_CCU0_AW > ; impl < 'a , REG , const O : u8 > ICLR_CCU0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_ccu0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_CCU0_AW :: ICLR_CCU0_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_ccu0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_CCU0_AW :: ICLR_CCU0_CLR) } } # [doc = "Capture or compare up event CLEAR\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_CCU1_AW { # [doc = "0: NO_EFFECT"]
ICLR_CCU1_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_CCU1_CLR = 1 , } impl From < ICLR_CCU1_AW > for bool { # [inline (always)]
fn from (variant : ICLR_CCU1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_CCU1` writer - Capture or compare up event CLEAR"]
pub type ICLR_CCU1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_CCU1_AW > ; impl < 'a , REG , const O : u8 > ICLR_CCU1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_ccu1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_CCU1_AW :: ICLR_CCU1_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_ccu1_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_CCU1_AW :: ICLR_CCU1_CLR) } } # [doc = "Trigger Overflow event CLEAR\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_TOV_AW { # [doc = "0: NO_EFFECT"]
ICLR_TOV_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_TOV_CLR = 1 , } impl From < ICLR_TOV_AW > for bool { # [inline (always)]
fn from (variant : ICLR_TOV_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_TOV` writer - Trigger Overflow event CLEAR"]
pub type ICLR_TOV_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_TOV_AW > ; impl < 'a , REG , const O : u8 > ICLR_TOV_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_tov_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_TOV_AW :: ICLR_TOV_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_tov_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_TOV_AW :: ICLR_TOV_CLR) } } impl W { # [doc = "Bit 0 - Zero event CLEAR"]
# [inline (always)]
# [must_use]
pub fn iclr_z (& mut self) -> ICLR_Z_W < ICLR_SPEC , 0 > { ICLR_Z_W :: new (self) } # [doc = "Bit 1 - Load event CLEAR"]
# [inline (always)]
# [must_use]
pub fn iclr_l (& mut self) -> ICLR_L_W < ICLR_SPEC , 1 > { ICLR_L_W :: new (self) } # [doc = "Bit 4 - Capture or compare down event CLEAR"]
# [inline (always)]
# [must_use]
pub fn iclr_ccd0 (& mut self) -> ICLR_CCD0_W < ICLR_SPEC , 4 > { ICLR_CCD0_W :: new (self) } # [doc = "Bit 5 - Capture or compare down event CLEAR"]
# [inline (always)]
# [must_use]
pub fn iclr_ccd1 (& mut self) -> ICLR_CCD1_W < ICLR_SPEC , 5 > { ICLR_CCD1_W :: new (self) } # [doc = "Bit 8 - Capture or compare up event CLEAR"]
# [inline (always)]
# [must_use]
pub fn iclr_ccu0 (& mut self) -> ICLR_CCU0_W < ICLR_SPEC , 8 > { ICLR_CCU0_W :: new (self) } # [doc = "Bit 9 - Capture or compare up event CLEAR"]
# [inline (always)]
# [must_use]
pub fn iclr_ccu1 (& mut self) -> ICLR_CCU1_W < ICLR_SPEC , 9 > { ICLR_CCU1_W :: new (self) } # [doc = "Bit 25 - Trigger Overflow event CLEAR"]
# [inline (always)]
# [must_use]
pub fn iclr_tov (& mut self) -> ICLR_TOV_W < ICLR_SPEC , 25 > { ICLR_TOV_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ICLR_SPEC ; impl crate :: RegisterSpec for ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`iclr::W`](W) writer structure"]
impl crate :: Writable for ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets ICLR to value 0"]
impl crate :: Resettable for ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "EVT_MODE (rw) register accessor: Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`evt_mode::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@evt_mode`]
module"]
pub type EVT_MODE = crate :: Reg < evt_mode :: EVT_MODE_SPEC > ; # [doc = "Event Mode"]
pub mod evt_mode { # [doc = "Register `EVT_MODE` reader"]
pub type R = crate :: R < EVT_MODE_SPEC > ; # [doc = "Register `EVT_MODE` writer"]
pub type W = crate :: W < EVT_MODE_SPEC > ; # [doc = "Field `EVT_MODE_EVT0_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[0\\]"]
pub type EVT_MODE_EVT0_CFG_R = crate :: FieldReader < EVT_MODE_EVT0_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[0\\]\n\nValue on reset: 1"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_EVT0_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_EVT0_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_EVT0_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_EVT0_CFG_HARDWARE = 2 , } impl From < EVT_MODE_EVT0_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_EVT0_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_EVT0_CFG_A { type Ux = u8 ; } impl EVT_MODE_EVT0_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_EVT0_CFG_A > { match self . bits { 0 => Some (EVT_MODE_EVT0_CFG_A :: EVT_MODE_EVT0_CFG_DISABLE) , 1 => Some (EVT_MODE_EVT0_CFG_A :: EVT_MODE_EVT0_CFG_SOFTWARE) , 2 => Some (EVT_MODE_EVT0_CFG_A :: EVT_MODE_EVT0_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_evt0_cfg_disable (& self) -> bool { * self == EVT_MODE_EVT0_CFG_A :: EVT_MODE_EVT0_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_evt0_cfg_software (& self) -> bool { * self == EVT_MODE_EVT0_CFG_A :: EVT_MODE_EVT0_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_evt0_cfg_hardware (& self) -> bool { * self == EVT_MODE_EVT0_CFG_A :: EVT_MODE_EVT0_CFG_HARDWARE } } # [doc = "Field `EVT_MODE_EVT1_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[1\\]"]
pub type EVT_MODE_EVT1_CFG_R = crate :: FieldReader < EVT_MODE_EVT1_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[1\\]\n\nValue on reset: 2"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_EVT1_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_EVT1_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_EVT1_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_EVT1_CFG_HARDWARE = 2 , } impl From < EVT_MODE_EVT1_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_EVT1_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_EVT1_CFG_A { type Ux = u8 ; } impl EVT_MODE_EVT1_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_EVT1_CFG_A > { match self . bits { 0 => Some (EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_DISABLE) , 1 => Some (EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_SOFTWARE) , 2 => Some (EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_evt1_cfg_disable (& self) -> bool { * self == EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_evt1_cfg_software (& self) -> bool { * self == EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_evt1_cfg_hardware (& self) -> bool { * self == EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_HARDWARE } } # [doc = "Field `EVT_MODE_EVT2_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[1\\]"]
pub type EVT_MODE_EVT2_CFG_R = crate :: FieldReader < EVT_MODE_EVT2_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[1\\]\n\nValue on reset: 2"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_EVT2_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_EVT2_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_EVT2_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_EVT2_CFG_HARDWARE = 2 , } impl From < EVT_MODE_EVT2_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_EVT2_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_EVT2_CFG_A { type Ux = u8 ; } impl EVT_MODE_EVT2_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_EVT2_CFG_A > { match self . bits { 0 => Some (EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_DISABLE) , 1 => Some (EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_SOFTWARE) , 2 => Some (EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_evt2_cfg_disable (& self) -> bool { * self == EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_evt2_cfg_software (& self) -> bool { * self == EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_evt2_cfg_hardware (& self) -> bool { * self == EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_HARDWARE } } impl R { # [doc = "Bits 0:1 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[0\\]"]
# [inline (always)]
pub fn evt_mode_evt0_cfg (& self) -> EVT_MODE_EVT0_CFG_R { EVT_MODE_EVT0_CFG_R :: new ((self . bits & 3) as u8) } # [doc = "Bits 2:3 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[1\\]"]
# [inline (always)]
pub fn evt_mode_evt1_cfg (& self) -> EVT_MODE_EVT1_CFG_R { EVT_MODE_EVT1_CFG_R :: new (((self . bits >> 2) & 3) as u8) } # [doc = "Bits 4:5 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[1\\]"]
# [inline (always)]
pub fn evt_mode_evt2_cfg (& self) -> EVT_MODE_EVT2_CFG_R { EVT_MODE_EVT2_CFG_R :: new (((self . bits >> 4) & 3) as u8) } } impl W { # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`evt_mode::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct EVT_MODE_SPEC ; impl crate :: RegisterSpec for EVT_MODE_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`evt_mode::R`](R) reader structure"]
impl crate :: Readable for EVT_MODE_SPEC { } # [doc = "`write(|w| ..)` method takes [`evt_mode::W`](W) writer structure"]
impl crate :: Writable for EVT_MODE_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets EVT_MODE to value 0x29"]
impl crate :: Resettable for EVT_MODE_SPEC { const RESET_VALUE : Self :: Ux = 0x29 ; } } # [doc = "DESC (r) register accessor: Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@desc`]
module"]
pub type DESC = crate :: Reg < desc :: DESC_SPEC > ; # [doc = "Module Description"]
pub mod desc { # [doc = "Register `DESC` reader"]
pub type R = crate :: R < DESC_SPEC > ; # [doc = "Field `DESC_MINREV` reader - Minor rev of the IP"]
pub type DESC_MINREV_R = crate :: FieldReader ; # [doc = "Field `DESC_MAJREV` reader - Major rev of the IP"]
pub type DESC_MAJREV_R = crate :: FieldReader ; # [doc = "Field `DESC_INSTNUM` reader - Instance Number within the device. This will be a parameter to the RTL for modules that can have multiple instances"]
pub type DESC_INSTNUM_R = crate :: FieldReader ; # [doc = "Field `DESC_FEATUREVER` reader - Feature Set for the module *instance*"]
pub type DESC_FEATUREVER_R = crate :: FieldReader ; # [doc = "Field `DESC_MODULEID` reader - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
pub type DESC_MODULEID_R = crate :: FieldReader < u16 > ; impl R { # [doc = "Bits 0:3 - Minor rev of the IP"]
# [inline (always)]
pub fn desc_minrev (& self) -> DESC_MINREV_R { DESC_MINREV_R :: new ((self . bits & 0x0f) as u8) } # [doc = "Bits 4:7 - Major rev of the IP"]
# [inline (always)]
pub fn desc_majrev (& self) -> DESC_MAJREV_R { DESC_MAJREV_R :: new (((self . bits >> 4) & 0x0f) as u8) } # [doc = "Bits 8:11 - Instance Number within the device. This will be a parameter to the RTL for modules that can have multiple instances"]
# [inline (always)]
pub fn desc_instnum (& self) -> DESC_INSTNUM_R { DESC_INSTNUM_R :: new (((self . bits >> 8) & 0x0f) as u8) } # [doc = "Bits 12:15 - Feature Set for the module *instance*"]
# [inline (always)]
pub fn desc_featurever (& self) -> DESC_FEATUREVER_R { DESC_FEATUREVER_R :: new (((self . bits >> 12) & 0x0f) as u8) } # [doc = "Bits 16:31 - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
# [inline (always)]
pub fn desc_moduleid (& self) -> DESC_MODULEID_R { DESC_MODULEID_R :: new (((self . bits >> 16) & 0xffff) as u16) } } # [doc = "Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DESC_SPEC ; impl crate :: RegisterSpec for DESC_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`desc::R`](R) reader structure"]
impl crate :: Readable for DESC_SPEC { } # [doc = "`reset()` method sets DESC to value 0"]
impl crate :: Resettable for DESC_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CCPD (rw) register accessor: CCP Direction\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ccpd::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ccpd::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccpd`]
module"]
pub type CCPD = crate :: Reg < ccpd :: CCPD_SPEC > ; # [doc = "CCP Direction"]
pub mod ccpd { # [doc = "Register `CCPD` reader"]
pub type R = crate :: R < CCPD_SPEC > ; # [doc = "Register `CCPD` writer"]
pub type W = crate :: W < CCPD_SPEC > ; # [doc = "Field `CCPD_C0CCP0` reader - Counter CCP0"]
pub type CCPD_C0CCP0_R = crate :: BitReader < CCPD_C0CCP0_A > ; # [doc = "Counter CCP0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CCPD_C0CCP0_A { # [doc = "0: INPUT"]
CCPD_C0CCP0_INPUT = 0 , # [doc = "1: OUTPUT"]
CCPD_C0CCP0_OUTPUT = 1 , } impl From < CCPD_C0CCP0_A > for bool { # [inline (always)]
fn from (variant : CCPD_C0CCP0_A) -> Self { variant as u8 != 0 } } impl CCPD_C0CCP0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCPD_C0CCP0_A { match self . bits { false => CCPD_C0CCP0_A :: CCPD_C0CCP0_INPUT , true => CCPD_C0CCP0_A :: CCPD_C0CCP0_OUTPUT , } } # [doc = "INPUT"]
# [inline (always)]
pub fn is_ccpd_c0ccp0_input (& self) -> bool { * self == CCPD_C0CCP0_A :: CCPD_C0CCP0_INPUT } # [doc = "OUTPUT"]
# [inline (always)]
pub fn is_ccpd_c0ccp0_output (& self) -> bool { * self == CCPD_C0CCP0_A :: CCPD_C0CCP0_OUTPUT } } # [doc = "Field `CCPD_C0CCP0` writer - Counter CCP0"]
pub type CCPD_C0CCP0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CCPD_C0CCP0_A > ; impl < 'a , REG , const O : u8 > CCPD_C0CCP0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "INPUT"]
# [inline (always)]
pub fn ccpd_c0ccp0_input (self) -> & 'a mut crate :: W < REG > { self . variant (CCPD_C0CCP0_A :: CCPD_C0CCP0_INPUT) } # [doc = "OUTPUT"]
# [inline (always)]
pub fn ccpd_c0ccp0_output (self) -> & 'a mut crate :: W < REG > { self . variant (CCPD_C0CCP0_A :: CCPD_C0CCP0_OUTPUT) } } # [doc = "Field `CCPD_C0CCP1` reader - Counter CCP1"]
pub type CCPD_C0CCP1_R = crate :: BitReader < CCPD_C0CCP1_A > ; # [doc = "Counter CCP1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CCPD_C0CCP1_A { # [doc = "0: INPUT"]
CCPD_C0CCP1_INPUT = 0 , # [doc = "1: OUTPUT"]
CCPD_C0CCP1_OUTPUT = 1 , } impl From < CCPD_C0CCP1_A > for bool { # [inline (always)]
fn from (variant : CCPD_C0CCP1_A) -> Self { variant as u8 != 0 } } impl CCPD_C0CCP1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCPD_C0CCP1_A { match self . bits { false => CCPD_C0CCP1_A :: CCPD_C0CCP1_INPUT , true => CCPD_C0CCP1_A :: CCPD_C0CCP1_OUTPUT , } } # [doc = "INPUT"]
# [inline (always)]
pub fn is_ccpd_c0ccp1_input (& self) -> bool { * self == CCPD_C0CCP1_A :: CCPD_C0CCP1_INPUT } # [doc = "OUTPUT"]
# [inline (always)]
pub fn is_ccpd_c0ccp1_output (& self) -> bool { * self == CCPD_C0CCP1_A :: CCPD_C0CCP1_OUTPUT } } # [doc = "Field `CCPD_C0CCP1` writer - Counter CCP1"]
pub type CCPD_C0CCP1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CCPD_C0CCP1_A > ; impl < 'a , REG , const O : u8 > CCPD_C0CCP1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "INPUT"]
# [inline (always)]
pub fn ccpd_c0ccp1_input (self) -> & 'a mut crate :: W < REG > { self . variant (CCPD_C0CCP1_A :: CCPD_C0CCP1_INPUT) } # [doc = "OUTPUT"]
# [inline (always)]
pub fn ccpd_c0ccp1_output (self) -> & 'a mut crate :: W < REG > { self . variant (CCPD_C0CCP1_A :: CCPD_C0CCP1_OUTPUT) } } impl R { # [doc = "Bit 0 - Counter CCP0"]
# [inline (always)]
pub fn ccpd_c0ccp0 (& self) -> CCPD_C0CCP0_R { CCPD_C0CCP0_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Counter CCP1"]
# [inline (always)]
pub fn ccpd_c0ccp1 (& self) -> CCPD_C0CCP1_R { CCPD_C0CCP1_R :: new (((self . bits >> 1) & 1) != 0) } } impl W { # [doc = "Bit 0 - Counter CCP0"]
# [inline (always)]
# [must_use]
pub fn ccpd_c0ccp0 (& mut self) -> CCPD_C0CCP0_W < CCPD_SPEC , 0 > { CCPD_C0CCP0_W :: new (self) } # [doc = "Bit 1 - Counter CCP1"]
# [inline (always)]
# [must_use]
pub fn ccpd_c0ccp1 (& mut self) -> CCPD_C0CCP1_W < CCPD_SPEC , 1 > { CCPD_C0CCP1_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "CCP Direction\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ccpd::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ccpd::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CCPD_SPEC ; impl crate :: RegisterSpec for CCPD_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ccpd::R`](R) reader structure"]
impl crate :: Readable for CCPD_SPEC { } # [doc = "`write(|w| ..)` method takes [`ccpd::W`](W) writer structure"]
impl crate :: Writable for CCPD_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CCPD to value 0"]
impl crate :: Resettable for CCPD_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "ODIS (rw) register accessor: Output Disable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`odis::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`odis::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@odis`]
module"]
pub type ODIS = crate :: Reg < odis :: ODIS_SPEC > ; # [doc = "Output Disable"]
pub mod odis { # [doc = "Register `ODIS` reader"]
pub type R = crate :: R < ODIS_SPEC > ; # [doc = "Register `ODIS` writer"]
pub type W = crate :: W < ODIS_SPEC > ; # [doc = "Field `ODIS_C0CCP0` reader - Counter CCP0 Disable Mask Defines whether CCP0 of Counter n is forced low or not"]
pub type ODIS_C0CCP0_R = crate :: BitReader < ODIS_C0CCP0_A > ; # [doc = "Counter CCP0 Disable Mask Defines whether CCP0 of Counter n is forced low or not\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ODIS_C0CCP0_A { # [doc = "0: CCP_OUTPUT_OCTL"]
ODIS_C0CCP0_CCP_OUTPUT_OCTL = 0 , # [doc = "1: CCP_OUTPUT_LOW"]
ODIS_C0CCP0_CCP_OUTPUT_LOW = 1 , } impl From < ODIS_C0CCP0_A > for bool { # [inline (always)]
fn from (variant : ODIS_C0CCP0_A) -> Self { variant as u8 != 0 } } impl ODIS_C0CCP0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> ODIS_C0CCP0_A { match self . bits { false => ODIS_C0CCP0_A :: ODIS_C0CCP0_CCP_OUTPUT_OCTL , true => ODIS_C0CCP0_A :: ODIS_C0CCP0_CCP_OUTPUT_LOW , } } # [doc = "CCP_OUTPUT_OCTL"]
# [inline (always)]
pub fn is_odis_c0ccp0_ccp_output_octl (& self) -> bool { * self == ODIS_C0CCP0_A :: ODIS_C0CCP0_CCP_OUTPUT_OCTL } # [doc = "CCP_OUTPUT_LOW"]
# [inline (always)]
pub fn is_odis_c0ccp0_ccp_output_low (& self) -> bool { * self == ODIS_C0CCP0_A :: ODIS_C0CCP0_CCP_OUTPUT_LOW } } # [doc = "Field `ODIS_C0CCP0` writer - Counter CCP0 Disable Mask Defines whether CCP0 of Counter n is forced low or not"]
pub type ODIS_C0CCP0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ODIS_C0CCP0_A > ; impl < 'a , REG , const O : u8 > ODIS_C0CCP0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CCP_OUTPUT_OCTL"]
# [inline (always)]
pub fn odis_c0ccp0_ccp_output_octl (self) -> & 'a mut crate :: W < REG > { self . variant (ODIS_C0CCP0_A :: ODIS_C0CCP0_CCP_OUTPUT_OCTL) } # [doc = "CCP_OUTPUT_LOW"]
# [inline (always)]
pub fn odis_c0ccp0_ccp_output_low (self) -> & 'a mut crate :: W < REG > { self . variant (ODIS_C0CCP0_A :: ODIS_C0CCP0_CCP_OUTPUT_LOW) } } # [doc = "Field `ODIS_C0CCP1` reader - Counter CCP1 Disable Mask Defines whether CCP0 of Counter n is forced low or not"]
pub type ODIS_C0CCP1_R = crate :: BitReader < ODIS_C0CCP1_A > ; # [doc = "Counter CCP1 Disable Mask Defines whether CCP0 of Counter n is forced low or not\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ODIS_C0CCP1_A { # [doc = "0: CCP_OUTPUT_OCTL"]
ODIS_C0CCP1_CCP_OUTPUT_OCTL = 0 , # [doc = "1: CCP_OUTPUT_LOW"]
ODIS_C0CCP1_CCP_OUTPUT_LOW = 1 , } impl From < ODIS_C0CCP1_A > for bool { # [inline (always)]
fn from (variant : ODIS_C0CCP1_A) -> Self { variant as u8 != 0 } } impl ODIS_C0CCP1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> ODIS_C0CCP1_A { match self . bits { false => ODIS_C0CCP1_A :: ODIS_C0CCP1_CCP_OUTPUT_OCTL , true => ODIS_C0CCP1_A :: ODIS_C0CCP1_CCP_OUTPUT_LOW , } } # [doc = "CCP_OUTPUT_OCTL"]
# [inline (always)]
pub fn is_odis_c0ccp1_ccp_output_octl (& self) -> bool { * self == ODIS_C0CCP1_A :: ODIS_C0CCP1_CCP_OUTPUT_OCTL } # [doc = "CCP_OUTPUT_LOW"]
# [inline (always)]
pub fn is_odis_c0ccp1_ccp_output_low (& self) -> bool { * self == ODIS_C0CCP1_A :: ODIS_C0CCP1_CCP_OUTPUT_LOW } } # [doc = "Field `ODIS_C0CCP1` writer - Counter CCP1 Disable Mask Defines whether CCP0 of Counter n is forced low or not"]
pub type ODIS_C0CCP1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ODIS_C0CCP1_A > ; impl < 'a , REG , const O : u8 > ODIS_C0CCP1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CCP_OUTPUT_OCTL"]
# [inline (always)]
pub fn odis_c0ccp1_ccp_output_octl (self) -> & 'a mut crate :: W < REG > { self . variant (ODIS_C0CCP1_A :: ODIS_C0CCP1_CCP_OUTPUT_OCTL) } # [doc = "CCP_OUTPUT_LOW"]
# [inline (always)]
pub fn odis_c0ccp1_ccp_output_low (self) -> & 'a mut crate :: W < REG > { self . variant (ODIS_C0CCP1_A :: ODIS_C0CCP1_CCP_OUTPUT_LOW) } } impl R { # [doc = "Bit 0 - Counter CCP0 Disable Mask Defines whether CCP0 of Counter n is forced low or not"]
# [inline (always)]
pub fn odis_c0ccp0 (& self) -> ODIS_C0CCP0_R { ODIS_C0CCP0_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Counter CCP1 Disable Mask Defines whether CCP0 of Counter n is forced low or not"]
# [inline (always)]
pub fn odis_c0ccp1 (& self) -> ODIS_C0CCP1_R { ODIS_C0CCP1_R :: new (((self . bits >> 1) & 1) != 0) } } impl W { # [doc = "Bit 0 - Counter CCP0 Disable Mask Defines whether CCP0 of Counter n is forced low or not"]
# [inline (always)]
# [must_use]
pub fn odis_c0ccp0 (& mut self) -> ODIS_C0CCP0_W < ODIS_SPEC , 0 > { ODIS_C0CCP0_W :: new (self) } # [doc = "Bit 1 - Counter CCP1 Disable Mask Defines whether CCP0 of Counter n is forced low or not"]
# [inline (always)]
# [must_use]
pub fn odis_c0ccp1 (& mut self) -> ODIS_C0CCP1_W < ODIS_SPEC , 1 > { ODIS_C0CCP1_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Output Disable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`odis::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`odis::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ODIS_SPEC ; impl crate :: RegisterSpec for ODIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`odis::R`](R) reader structure"]
impl crate :: Readable for ODIS_SPEC { } # [doc = "`write(|w| ..)` method takes [`odis::W`](W) writer structure"]
impl crate :: Writable for ODIS_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets ODIS to value 0"]
impl crate :: Resettable for ODIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CCLKCTL (rw) register accessor: Counter Clock Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cclkctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cclkctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cclkctl`]
module"]
pub type CCLKCTL = crate :: Reg < cclkctl :: CCLKCTL_SPEC > ; # [doc = "Counter Clock Control Register"]
pub mod cclkctl { # [doc = "Register `CCLKCTL` reader"]
pub type R = crate :: R < CCLKCTL_SPEC > ; # [doc = "Register `CCLKCTL` writer"]
pub type W = crate :: W < CCLKCTL_SPEC > ; # [doc = "Field `CCLKCTL_CLKEN` reader - Clock Enable Disables the clock gating to the module. SW has to explicitly program the value to 0 to gate the clock."]
pub type CCLKCTL_CLKEN_R = crate :: BitReader < CCLKCTL_CLKEN_A > ; # [doc = "Clock Enable Disables the clock gating to the module. SW has to explicitly program the value to 0 to gate the clock.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CCLKCTL_CLKEN_A { # [doc = "0: DISABLED"]
CCLKCTL_CLKEN_DISABLED = 0 , # [doc = "1: ENABLED"]
CCLKCTL_CLKEN_ENABLED = 1 , } impl From < CCLKCTL_CLKEN_A > for bool { # [inline (always)]
fn from (variant : CCLKCTL_CLKEN_A) -> Self { variant as u8 != 0 } } impl CCLKCTL_CLKEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCLKCTL_CLKEN_A { match self . bits { false => CCLKCTL_CLKEN_A :: CCLKCTL_CLKEN_DISABLED , true => CCLKCTL_CLKEN_A :: CCLKCTL_CLKEN_ENABLED , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_cclkctl_clken_disabled (& self) -> bool { * self == CCLKCTL_CLKEN_A :: CCLKCTL_CLKEN_DISABLED } # [doc = "ENABLED"]
# [inline (always)]
pub fn is_cclkctl_clken_enabled (& self) -> bool { * self == CCLKCTL_CLKEN_A :: CCLKCTL_CLKEN_ENABLED } } # [doc = "Field `CCLKCTL_CLKEN` writer - Clock Enable Disables the clock gating to the module. SW has to explicitly program the value to 0 to gate the clock."]
pub type CCLKCTL_CLKEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CCLKCTL_CLKEN_A > ; impl < 'a , REG , const O : u8 > CCLKCTL_CLKEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn cclkctl_clken_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCLKCTL_CLKEN_A :: CCLKCTL_CLKEN_DISABLED) } # [doc = "ENABLED"]
# [inline (always)]
pub fn cclkctl_clken_enabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCLKCTL_CLKEN_A :: CCLKCTL_CLKEN_ENABLED) } } impl R { # [doc = "Bit 0 - Clock Enable Disables the clock gating to the module. SW has to explicitly program the value to 0 to gate the clock."]
# [inline (always)]
pub fn cclkctl_clken (& self) -> CCLKCTL_CLKEN_R { CCLKCTL_CLKEN_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - Clock Enable Disables the clock gating to the module. SW has to explicitly program the value to 0 to gate the clock."]
# [inline (always)]
# [must_use]
pub fn cclkctl_clken (& mut self) -> CCLKCTL_CLKEN_W < CCLKCTL_SPEC , 0 > { CCLKCTL_CLKEN_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Counter Clock Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cclkctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cclkctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CCLKCTL_SPEC ; impl crate :: RegisterSpec for CCLKCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cclkctl::R`](R) reader structure"]
impl crate :: Readable for CCLKCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`cclkctl::W`](W) writer structure"]
impl crate :: Writable for CCLKCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CCLKCTL to value 0"]
impl crate :: Resettable for CCLKCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CPS (rw) register accessor: Clock Prescale Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cps::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cps::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cps`]
module"]
pub type CPS = crate :: Reg < cps :: CPS_SPEC > ; # [doc = "Clock Prescale Register"]
pub mod cps { # [doc = "Register `CPS` reader"]
pub type R = crate :: R < CPS_SPEC > ; # [doc = "Register `CPS` writer"]
pub type W = crate :: W < CPS_SPEC > ; # [doc = "Field `CPS_PCNT` reader - Pre-Scale Count This field specifies the pre-scale count value. The selected TIMCLK source is divided by a value of (PCNT+1). A PCNT value of 0 divides TIMCLK by 1, effectively bypassing the divider. A PCNT value of greater than 0 divides the TIMCLK source generating a slower clock"]
pub type CPS_PCNT_R = crate :: FieldReader ; # [doc = "Field `CPS_PCNT` writer - Pre-Scale Count This field specifies the pre-scale count value. The selected TIMCLK source is divided by a value of (PCNT+1). A PCNT value of 0 divides TIMCLK by 1, effectively bypassing the divider. A PCNT value of greater than 0 divides the TIMCLK source generating a slower clock"]
pub type CPS_PCNT_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O > ; impl R { # [doc = "Bits 0:7 - Pre-Scale Count This field specifies the pre-scale count value. The selected TIMCLK source is divided by a value of (PCNT+1). A PCNT value of 0 divides TIMCLK by 1, effectively bypassing the divider. A PCNT value of greater than 0 divides the TIMCLK source generating a slower clock"]
# [inline (always)]
pub fn cps_pcnt (& self) -> CPS_PCNT_R { CPS_PCNT_R :: new ((self . bits & 0xff) as u8) } } impl W { # [doc = "Bits 0:7 - Pre-Scale Count This field specifies the pre-scale count value. The selected TIMCLK source is divided by a value of (PCNT+1). A PCNT value of 0 divides TIMCLK by 1, effectively bypassing the divider. A PCNT value of greater than 0 divides the TIMCLK source generating a slower clock"]
# [inline (always)]
# [must_use]
pub fn cps_pcnt (& mut self) -> CPS_PCNT_W < CPS_SPEC , 0 > { CPS_PCNT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Clock Prescale Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cps::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cps::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CPS_SPEC ; impl crate :: RegisterSpec for CPS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cps::R`](R) reader structure"]
impl crate :: Readable for CPS_SPEC { } # [doc = "`write(|w| ..)` method takes [`cps::W`](W) writer structure"]
impl crate :: Writable for CPS_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CPS to value 0"]
impl crate :: Resettable for CPS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CPSV (r) register accessor: Clock prescale count status register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cpsv::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cpsv`]
module"]
pub type CPSV = crate :: Reg < cpsv :: CPSV_SPEC > ; # [doc = "Clock prescale count status register"]
pub mod cpsv { # [doc = "Register `CPSV` reader"]
pub type R = crate :: R < CPSV_SPEC > ; # [doc = "Field `CPSV_CPSVAL` reader - Current Prescale Count Value"]
pub type CPSV_CPSVAL_R = crate :: FieldReader ; impl R { # [doc = "Bits 0:7 - Current Prescale Count Value"]
# [inline (always)]
pub fn cpsv_cpsval (& self) -> CPSV_CPSVAL_R { CPSV_CPSVAL_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Clock prescale count status register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cpsv::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CPSV_SPEC ; impl crate :: RegisterSpec for CPSV_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cpsv::R`](R) reader structure"]
impl crate :: Readable for CPSV_SPEC { } # [doc = "`reset()` method sets CPSV to value 0"]
impl crate :: Resettable for CPSV_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTTRIGCTL (rw) register accessor: Timer Cross Trigger Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cttrigctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cttrigctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cttrigctl`]
module"]
pub type CTTRIGCTL = crate :: Reg < cttrigctl :: CTTRIGCTL_SPEC > ; # [doc = "Timer Cross Trigger Control Register"]
pub mod cttrigctl { # [doc = "Register `CTTRIGCTL` reader"]
pub type R = crate :: R < CTTRIGCTL_SPEC > ; # [doc = "Register `CTTRIGCTL` writer"]
pub type W = crate :: W < CTTRIGCTL_SPEC > ; # [doc = "Field `CTTRIGCTL_CTEN` reader - Timer Cross trigger enable. This field is used to enable whether the SW or HW logic can generate a timer cross trigger event in the system. These cross triggers are connected to the respective timer trigger in of the other timer IPs in the SOC power domain. The timer cross trigger is essentially the combined logic of the HW and SW conditions controlling EN bit in the CTRCTL register."]
pub type CTTRIGCTL_CTEN_R = crate :: BitReader < CTTRIGCTL_CTEN_A > ; # [doc = "Timer Cross trigger enable. This field is used to enable whether the SW or HW logic can generate a timer cross trigger event in the system. These cross triggers are connected to the respective timer trigger in of the other timer IPs in the SOC power domain. The timer cross trigger is essentially the combined logic of the HW and SW conditions controlling EN bit in the CTRCTL register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTTRIGCTL_CTEN_A { # [doc = "0: DISABLED"]
CTTRIGCTL_CTEN_DISABLED = 0 , # [doc = "1: ENABLE"]
CTTRIGCTL_CTEN_ENABLE = 1 , } impl From < CTTRIGCTL_CTEN_A > for bool { # [inline (always)]
fn from (variant : CTTRIGCTL_CTEN_A) -> Self { variant as u8 != 0 } } impl CTTRIGCTL_CTEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTTRIGCTL_CTEN_A { match self . bits { false => CTTRIGCTL_CTEN_A :: CTTRIGCTL_CTEN_DISABLED , true => CTTRIGCTL_CTEN_A :: CTTRIGCTL_CTEN_ENABLE , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_cttrigctl_cten_disabled (& self) -> bool { * self == CTTRIGCTL_CTEN_A :: CTTRIGCTL_CTEN_DISABLED } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_cttrigctl_cten_enable (& self) -> bool { * self == CTTRIGCTL_CTEN_A :: CTTRIGCTL_CTEN_ENABLE } } # [doc = "Field `CTTRIGCTL_CTEN` writer - Timer Cross trigger enable. This field is used to enable whether the SW or HW logic can generate a timer cross trigger event in the system. These cross triggers are connected to the respective timer trigger in of the other timer IPs in the SOC power domain. The timer cross trigger is essentially the combined logic of the HW and SW conditions controlling EN bit in the CTRCTL register."]
pub type CTTRIGCTL_CTEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTTRIGCTL_CTEN_A > ; impl < 'a , REG , const O : u8 > CTTRIGCTL_CTEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn cttrigctl_cten_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_CTEN_A :: CTTRIGCTL_CTEN_DISABLED) } # [doc = "ENABLE"]
# [inline (always)]
pub fn cttrigctl_cten_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_CTEN_A :: CTTRIGCTL_CTEN_ENABLE) } } # [doc = "Field `CTTRIGCTL_EVTCTEN` reader - Enable the Input Trigger Conditions to the Timer module as a condition for Cross Triggers. Refer Figure 8 Cross Trigger Generation Path"]
pub type CTTRIGCTL_EVTCTEN_R = crate :: BitReader < CTTRIGCTL_EVTCTEN_A > ; # [doc = "Enable the Input Trigger Conditions to the Timer module as a condition for Cross Triggers. Refer Figure 8 Cross Trigger Generation Path\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTTRIGCTL_EVTCTEN_A { # [doc = "0: DISABLED"]
CTTRIGCTL_EVTCTEN_DISABLED = 0 , # [doc = "1: ENABLE"]
CTTRIGCTL_EVTCTEN_ENABLE = 1 , } impl From < CTTRIGCTL_EVTCTEN_A > for bool { # [inline (always)]
fn from (variant : CTTRIGCTL_EVTCTEN_A) -> Self { variant as u8 != 0 } } impl CTTRIGCTL_EVTCTEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTTRIGCTL_EVTCTEN_A { match self . bits { false => CTTRIGCTL_EVTCTEN_A :: CTTRIGCTL_EVTCTEN_DISABLED , true => CTTRIGCTL_EVTCTEN_A :: CTTRIGCTL_EVTCTEN_ENABLE , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_cttrigctl_evtcten_disabled (& self) -> bool { * self == CTTRIGCTL_EVTCTEN_A :: CTTRIGCTL_EVTCTEN_DISABLED } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_cttrigctl_evtcten_enable (& self) -> bool { * self == CTTRIGCTL_EVTCTEN_A :: CTTRIGCTL_EVTCTEN_ENABLE } } # [doc = "Field `CTTRIGCTL_EVTCTEN` writer - Enable the Input Trigger Conditions to the Timer module as a condition for Cross Triggers. Refer Figure 8 Cross Trigger Generation Path"]
pub type CTTRIGCTL_EVTCTEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTTRIGCTL_EVTCTEN_A > ; impl < 'a , REG , const O : u8 > CTTRIGCTL_EVTCTEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn cttrigctl_evtcten_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTEN_A :: CTTRIGCTL_EVTCTEN_DISABLED) } # [doc = "ENABLE"]
# [inline (always)]
pub fn cttrigctl_evtcten_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTEN_A :: CTTRIGCTL_EVTCTEN_ENABLE) } } # [doc = "Field `CTTRIGCTL_EVTCTTRIGSEL` reader - Used to Select the subscriber port that should be used for input cross trigger. Refer Figure 8 Cross Trigger Generation Path"]
pub type CTTRIGCTL_EVTCTTRIGSEL_R = crate :: FieldReader < CTTRIGCTL_EVTCTTRIGSEL_A > ; # [doc = "Used to Select the subscriber port that should be used for input cross trigger. Refer Figure 8 Cross Trigger Generation Path\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTTRIGCTL_EVTCTTRIGSEL_A { # [doc = "0: FSUB0"]
CTTRIGCTL_EVTCTTRIGSEL_FSUB0 = 0 , # [doc = "1: FSUB1"]
CTTRIGCTL_EVTCTTRIGSEL_FSUB1 = 1 , # [doc = "2: Z"]
CTTRIGCTL_EVTCTTRIGSEL_Z = 2 , # [doc = "3: L"]
CTTRIGCTL_EVTCTTRIGSEL_L = 3 , # [doc = "4: CCD0"]
CTTRIGCTL_EVTCTTRIGSEL_CCD0 = 4 , # [doc = "5: CCD1"]
CTTRIGCTL_EVTCTTRIGSEL_CCD1 = 5 , # [doc = "6: CCD2"]
CTTRIGCTL_EVTCTTRIGSEL_CCD2 = 6 , # [doc = "7: CCD3"]
CTTRIGCTL_EVTCTTRIGSEL_CCD3 = 7 , # [doc = "8: CCU0"]
CTTRIGCTL_EVTCTTRIGSEL_CCU0 = 8 , # [doc = "9: CCU1"]
CTTRIGCTL_EVTCTTRIGSEL_CCU1 = 9 , # [doc = "10: CCU2"]
CTTRIGCTL_EVTCTTRIGSEL_CCU2 = 10 , # [doc = "11: CCU3"]
CTTRIGCTL_EVTCTTRIGSEL_CCU3 = 11 , } impl From < CTTRIGCTL_EVTCTTRIGSEL_A > for u8 { # [inline (always)]
fn from (variant : CTTRIGCTL_EVTCTTRIGSEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTTRIGCTL_EVTCTTRIGSEL_A { type Ux = u8 ; } impl CTTRIGCTL_EVTCTTRIGSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTTRIGCTL_EVTCTTRIGSEL_A > { match self . bits { 0 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_FSUB0) , 1 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_FSUB1) , 2 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_Z) , 3 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_L) , 4 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD0) , 5 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD1) , 6 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD2) , 7 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD3) , 8 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU0) , 9 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU1) , 10 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU2) , 11 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU3) , _ => None , } } # [doc = "FSUB0"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_fsub0 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_FSUB0 } # [doc = "FSUB1"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_fsub1 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_FSUB1 } # [doc = "Z"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_z (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_Z } # [doc = "L"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_l (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_L } # [doc = "CCD0"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_ccd0 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD0 } # [doc = "CCD1"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_ccd1 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD1 } # [doc = "CCD2"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_ccd2 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD2 } # [doc = "CCD3"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_ccd3 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD3 } # [doc = "CCU0"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_ccu0 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU0 } # [doc = "CCU1"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_ccu1 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU1 } # [doc = "CCU2"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_ccu2 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU2 } # [doc = "CCU3"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_ccu3 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU3 } } # [doc = "Field `CTTRIGCTL_EVTCTTRIGSEL` writer - Used to Select the subscriber port that should be used for input cross trigger. Refer Figure 8 Cross Trigger Generation Path"]
pub type CTTRIGCTL_EVTCTTRIGSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 4 , O , CTTRIGCTL_EVTCTTRIGSEL_A > ; impl < 'a , REG , const O : u8 > CTTRIGCTL_EVTCTTRIGSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "FSUB0"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_fsub0 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_FSUB0) } # [doc = "FSUB1"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_fsub1 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_FSUB1) } # [doc = "Z"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_z (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_Z) } # [doc = "L"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_l (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_L) } # [doc = "CCD0"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_ccd0 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD0) } # [doc = "CCD1"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_ccd1 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD1) } # [doc = "CCD2"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_ccd2 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD2) } # [doc = "CCD3"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_ccd3 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD3) } # [doc = "CCU0"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_ccu0 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU0) } # [doc = "CCU1"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_ccu1 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU1) } # [doc = "CCU2"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_ccu2 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU2) } # [doc = "CCU3"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_ccu3 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU3) } } impl R { # [doc = "Bit 0 - Timer Cross trigger enable. This field is used to enable whether the SW or HW logic can generate a timer cross trigger event in the system. These cross triggers are connected to the respective timer trigger in of the other timer IPs in the SOC power domain. The timer cross trigger is essentially the combined logic of the HW and SW conditions controlling EN bit in the CTRCTL register."]
# [inline (always)]
pub fn cttrigctl_cten (& self) -> CTTRIGCTL_CTEN_R { CTTRIGCTL_CTEN_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Enable the Input Trigger Conditions to the Timer module as a condition for Cross Triggers. Refer Figure 8 Cross Trigger Generation Path"]
# [inline (always)]
pub fn cttrigctl_evtcten (& self) -> CTTRIGCTL_EVTCTEN_R { CTTRIGCTL_EVTCTEN_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bits 16:19 - Used to Select the subscriber port that should be used for input cross trigger. Refer Figure 8 Cross Trigger Generation Path"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel (& self) -> CTTRIGCTL_EVTCTTRIGSEL_R { CTTRIGCTL_EVTCTTRIGSEL_R :: new (((self . bits >> 16) & 0x0f) as u8) } } impl W { # [doc = "Bit 0 - Timer Cross trigger enable. This field is used to enable whether the SW or HW logic can generate a timer cross trigger event in the system. These cross triggers are connected to the respective timer trigger in of the other timer IPs in the SOC power domain. The timer cross trigger is essentially the combined logic of the HW and SW conditions controlling EN bit in the CTRCTL register."]
# [inline (always)]
# [must_use]
pub fn cttrigctl_cten (& mut self) -> CTTRIGCTL_CTEN_W < CTTRIGCTL_SPEC , 0 > { CTTRIGCTL_CTEN_W :: new (self) } # [doc = "Bit 1 - Enable the Input Trigger Conditions to the Timer module as a condition for Cross Triggers. Refer Figure 8 Cross Trigger Generation Path"]
# [inline (always)]
# [must_use]
pub fn cttrigctl_evtcten (& mut self) -> CTTRIGCTL_EVTCTEN_W < CTTRIGCTL_SPEC , 1 > { CTTRIGCTL_EVTCTEN_W :: new (self) } # [doc = "Bits 16:19 - Used to Select the subscriber port that should be used for input cross trigger. Refer Figure 8 Cross Trigger Generation Path"]
# [inline (always)]
# [must_use]
pub fn cttrigctl_evtcttrigsel (& mut self) -> CTTRIGCTL_EVTCTTRIGSEL_W < CTTRIGCTL_SPEC , 16 > { CTTRIGCTL_EVTCTTRIGSEL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Timer Cross Trigger Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cttrigctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cttrigctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTTRIGCTL_SPEC ; impl crate :: RegisterSpec for CTTRIGCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cttrigctl::R`](R) reader structure"]
impl crate :: Readable for CTTRIGCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`cttrigctl::W`](W) writer structure"]
impl crate :: Writable for CTTRIGCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTTRIGCTL to value 0"]
impl crate :: Resettable for CTTRIGCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTTRIG (w) register accessor: Timer Cross Trigger Register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cttrig::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cttrig`]
module"]
pub type CTTRIG = crate :: Reg < cttrig :: CTTRIG_SPEC > ; # [doc = "Timer Cross Trigger Register"]
pub mod cttrig { # [doc = "Register `CTTRIG` writer"]
pub type W = crate :: W < CTTRIG_SPEC > ; # [doc = "Generate Cross Trigger This bit when programmed will generate a synchronized trigger condition all the cross trigger enabled Timer instances including current timer instance.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTTRIG_TRIG_AW { # [doc = "0: DISABLED"]
CTTRIG_TRIG_DISABLED = 0 , # [doc = "1: GENERATE"]
CTTRIG_TRIG_GENERATE = 1 , } impl From < CTTRIG_TRIG_AW > for bool { # [inline (always)]
fn from (variant : CTTRIG_TRIG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `CTTRIG_TRIG` writer - Generate Cross Trigger This bit when programmed will generate a synchronized trigger condition all the cross trigger enabled Timer instances including current timer instance."]
pub type CTTRIG_TRIG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTTRIG_TRIG_AW > ; impl < 'a , REG , const O : u8 > CTTRIG_TRIG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn cttrig_trig_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIG_TRIG_AW :: CTTRIG_TRIG_DISABLED) } # [doc = "GENERATE"]
# [inline (always)]
pub fn cttrig_trig_generate (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIG_TRIG_AW :: CTTRIG_TRIG_GENERATE) } } impl W { # [doc = "Bit 0 - Generate Cross Trigger This bit when programmed will generate a synchronized trigger condition all the cross trigger enabled Timer instances including current timer instance."]
# [inline (always)]
# [must_use]
pub fn cttrig_trig (& mut self) -> CTTRIG_TRIG_W < CTTRIG_SPEC , 0 > { CTTRIG_TRIG_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Timer Cross Trigger Register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cttrig::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTTRIG_SPEC ; impl crate :: RegisterSpec for CTTRIG_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`cttrig::W`](W) writer structure"]
impl crate :: Writable for CTTRIG_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTTRIG to value 0"]
impl crate :: Resettable for CTTRIG_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "GCTL (rw) register accessor: Shadow to active load mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`gctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gctl`]
module"]
pub type GCTL = crate :: Reg < gctl :: GCTL_SPEC > ; # [doc = "Shadow to active load mask"]
pub mod gctl { # [doc = "Register `GCTL` reader"]
pub type R = crate :: R < GCTL_SPEC > ; # [doc = "Register `GCTL` writer"]
pub type W = crate :: W < GCTL_SPEC > ; # [doc = "Field `GCTL_SHDWLDEN` reader - Enables shadow to active load of bufferred registers and register fields."]
pub type GCTL_SHDWLDEN_R = crate :: BitReader < GCTL_SHDWLDEN_A > ; # [doc = "Enables shadow to active load of bufferred registers and register fields.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum GCTL_SHDWLDEN_A { # [doc = "0: DISABLE"]
GCTL_SHDWLDEN_DISABLE = 0 , # [doc = "1: ENABLE"]
GCTL_SHDWLDEN_ENABLE = 1 , } impl From < GCTL_SHDWLDEN_A > for bool { # [inline (always)]
fn from (variant : GCTL_SHDWLDEN_A) -> Self { variant as u8 != 0 } } impl GCTL_SHDWLDEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> GCTL_SHDWLDEN_A { match self . bits { false => GCTL_SHDWLDEN_A :: GCTL_SHDWLDEN_DISABLE , true => GCTL_SHDWLDEN_A :: GCTL_SHDWLDEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_gctl_shdwlden_disable (& self) -> bool { * self == GCTL_SHDWLDEN_A :: GCTL_SHDWLDEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_gctl_shdwlden_enable (& self) -> bool { * self == GCTL_SHDWLDEN_A :: GCTL_SHDWLDEN_ENABLE } } # [doc = "Field `GCTL_SHDWLDEN` writer - Enables shadow to active load of bufferred registers and register fields."]
pub type GCTL_SHDWLDEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , GCTL_SHDWLDEN_A > ; impl < 'a , REG , const O : u8 > GCTL_SHDWLDEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn gctl_shdwlden_disable (self) -> & 'a mut crate :: W < REG > { self . variant (GCTL_SHDWLDEN_A :: GCTL_SHDWLDEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn gctl_shdwlden_enable (self) -> & 'a mut crate :: W < REG > { self . variant (GCTL_SHDWLDEN_A :: GCTL_SHDWLDEN_ENABLE) } } impl R { # [doc = "Bit 0 - Enables shadow to active load of bufferred registers and register fields."]
# [inline (always)]
pub fn gctl_shdwlden (& self) -> GCTL_SHDWLDEN_R { GCTL_SHDWLDEN_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - Enables shadow to active load of bufferred registers and register fields."]
# [inline (always)]
# [must_use]
pub fn gctl_shdwlden (& mut self) -> GCTL_SHDWLDEN_W < GCTL_SPEC , 0 > { GCTL_SHDWLDEN_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Shadow to active load mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`gctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct GCTL_SPEC ; impl crate :: RegisterSpec for GCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`gctl::R`](R) reader structure"]
impl crate :: Readable for GCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`gctl::W`](W) writer structure"]
impl crate :: Writable for GCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets GCTL to value 0"]
impl crate :: Resettable for GCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTR (rw) register accessor: Counter Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctr::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctr`]
module"]
pub type CTR = crate :: Reg < ctr :: CTR_SPEC > ; # [doc = "Counter Register"]
pub mod ctr { # [doc = "Register `CTR` reader"]
pub type R = crate :: R < CTR_SPEC > ; # [doc = "Register `CTR` writer"]
pub type W = crate :: W < CTR_SPEC > ; # [doc = "Field `CTR_CCTR` reader - Current Counter value"]
pub type CTR_CCTR_R = crate :: FieldReader < u16 > ; # [doc = "Field `CTR_CCTR` writer - Current Counter value"]
pub type CTR_CCTR_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 16 , O , u16 > ; impl R { # [doc = "Bits 0:15 - Current Counter value"]
# [inline (always)]
pub fn ctr_cctr (& self) -> CTR_CCTR_R { CTR_CCTR_R :: new ((self . bits & 0xffff) as u16) } } impl W { # [doc = "Bits 0:15 - Current Counter value"]
# [inline (always)]
# [must_use]
pub fn ctr_cctr (& mut self) -> CTR_CCTR_W < CTR_SPEC , 0 > { CTR_CCTR_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Counter Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctr::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctr::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTR_SPEC ; impl crate :: RegisterSpec for CTR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ctr::R`](R) reader structure"]
impl crate :: Readable for CTR_SPEC { } # [doc = "`write(|w| ..)` method takes [`ctr::W`](W) writer structure"]
impl crate :: Writable for CTR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTR to value 0"]
impl crate :: Resettable for CTR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTRCTL (rw) register accessor: Counter Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctrctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctrctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctrctl`]
module"]
pub type CTRCTL = crate :: Reg < ctrctl :: CTRCTL_SPEC > ; # [doc = "Counter Control Register"]
pub mod ctrctl { # [doc = "Register `CTRCTL` reader"]
pub type R = crate :: R < CTRCTL_SPEC > ; # [doc = "Register `CTRCTL` writer"]
pub type W = crate :: W < CTRCTL_SPEC > ; # [doc = "Field `CTRCTL_EN` reader - Counter Enable. This bit allows the timer to advance This bit is automatically cleared if REPEAT=0 (do not automatically reload) and the counter value equals zero. CPU Write: A register write that sets the EN bit, the counter value is set per the CVAE value. Hardware: This bit may also be set as the result of an LCOND or ZCOND condition being met and the counter value changed to the load value or zero value, respectively."]
pub type CTRCTL_EN_R = crate :: BitReader < CTRCTL_EN_A > ; # [doc = "Counter Enable. This bit allows the timer to advance This bit is automatically cleared if REPEAT=0 (do not automatically reload) and the counter value equals zero. CPU Write: A register write that sets the EN bit, the counter value is set per the CVAE value. Hardware: This bit may also be set as the result of an LCOND or ZCOND condition being met and the counter value changed to the load value or zero value, respectively.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTRCTL_EN_A { # [doc = "0: DISABLED"]
CTRCTL_EN_DISABLED = 0 , # [doc = "1: ENABLED"]
CTRCTL_EN_ENABLED = 1 , } impl From < CTRCTL_EN_A > for bool { # [inline (always)]
fn from (variant : CTRCTL_EN_A) -> Self { variant as u8 != 0 } } impl CTRCTL_EN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTRCTL_EN_A { match self . bits { false => CTRCTL_EN_A :: CTRCTL_EN_DISABLED , true => CTRCTL_EN_A :: CTRCTL_EN_ENABLED , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ctrctl_en_disabled (& self) -> bool { * self == CTRCTL_EN_A :: CTRCTL_EN_DISABLED } # [doc = "ENABLED"]
# [inline (always)]
pub fn is_ctrctl_en_enabled (& self) -> bool { * self == CTRCTL_EN_A :: CTRCTL_EN_ENABLED } } # [doc = "Field `CTRCTL_EN` writer - Counter Enable. This bit allows the timer to advance This bit is automatically cleared if REPEAT=0 (do not automatically reload) and the counter value equals zero. CPU Write: A register write that sets the EN bit, the counter value is set per the CVAE value. Hardware: This bit may also be set as the result of an LCOND or ZCOND condition being met and the counter value changed to the load value or zero value, respectively."]
pub type CTRCTL_EN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTRCTL_EN_A > ; impl < 'a , REG , const O : u8 > CTRCTL_EN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn ctrctl_en_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_EN_A :: CTRCTL_EN_DISABLED) } # [doc = "ENABLED"]
# [inline (always)]
pub fn ctrctl_en_enabled (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_EN_A :: CTRCTL_EN_ENABLED) } } # [doc = "Field `CTRCTL_REPEAT` reader - Repeat. The repeat bit controls whether the counter continues to advance following a zero event, or the exiting of a debug or fault condition. If counting down, a zero event is followed by a load at the next advance condition. If counting up-down, a zero event is followed by an advance event (+1). The intent of encoding 3 is that if the debug condition is in effect, the generation of the load pulse is deferred until the debug condition is over. This allows the counter to reach zero before counting is suspended."]
pub type CTRCTL_REPEAT_R = crate :: FieldReader < CTRCTL_REPEAT_A > ; # [doc = "Repeat. The repeat bit controls whether the counter continues to advance following a zero event, or the exiting of a debug or fault condition. If counting down, a zero event is followed by a load at the next advance condition. If counting up-down, a zero event is followed by an advance event (+1). The intent of encoding 3 is that if the debug condition is in effect, the generation of the load pulse is deferred until the debug condition is over. This allows the counter to reach zero before counting is suspended.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTRCTL_REPEAT_A { # [doc = "0: REPEAT_0"]
CTRCTL_REPEAT_REPEAT_0 = 0 , # [doc = "1: REPEAT_1"]
CTRCTL_REPEAT_REPEAT_1 = 1 , # [doc = "2: REPEAT_2"]
CTRCTL_REPEAT_REPEAT_2 = 2 , # [doc = "3: REPEAT_3"]
CTRCTL_REPEAT_REPEAT_3 = 3 , # [doc = "4: REPEAT_4"]
CTRCTL_REPEAT_REPEAT_4 = 4 , } impl From < CTRCTL_REPEAT_A > for u8 { # [inline (always)]
fn from (variant : CTRCTL_REPEAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTRCTL_REPEAT_A { type Ux = u8 ; } impl CTRCTL_REPEAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTRCTL_REPEAT_A > { match self . bits { 0 => Some (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_0) , 1 => Some (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_1) , 2 => Some (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_2) , 3 => Some (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_3) , 4 => Some (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_4) , _ => None , } } # [doc = "REPEAT_0"]
# [inline (always)]
pub fn is_ctrctl_repeat_repeat_0 (& self) -> bool { * self == CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_0 } # [doc = "REPEAT_1"]
# [inline (always)]
pub fn is_ctrctl_repeat_repeat_1 (& self) -> bool { * self == CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_1 } # [doc = "REPEAT_2"]
# [inline (always)]
pub fn is_ctrctl_repeat_repeat_2 (& self) -> bool { * self == CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_2 } # [doc = "REPEAT_3"]
# [inline (always)]
pub fn is_ctrctl_repeat_repeat_3 (& self) -> bool { * self == CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_3 } # [doc = "REPEAT_4"]
# [inline (always)]
pub fn is_ctrctl_repeat_repeat_4 (& self) -> bool { * self == CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_4 } } # [doc = "Field `CTRCTL_REPEAT` writer - Repeat. The repeat bit controls whether the counter continues to advance following a zero event, or the exiting of a debug or fault condition. If counting down, a zero event is followed by a load at the next advance condition. If counting up-down, a zero event is followed by an advance event (+1). The intent of encoding 3 is that if the debug condition is in effect, the generation of the load pulse is deferred until the debug condition is over. This allows the counter to reach zero before counting is suspended."]
pub type CTRCTL_REPEAT_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CTRCTL_REPEAT_A > ; impl < 'a , REG , const O : u8 > CTRCTL_REPEAT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "REPEAT_0"]
# [inline (always)]
pub fn ctrctl_repeat_repeat_0 (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_0) } # [doc = "REPEAT_1"]
# [inline (always)]
pub fn ctrctl_repeat_repeat_1 (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_1) } # [doc = "REPEAT_2"]
# [inline (always)]
pub fn ctrctl_repeat_repeat_2 (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_2) } # [doc = "REPEAT_3"]
# [inline (always)]
pub fn ctrctl_repeat_repeat_3 (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_3) } # [doc = "REPEAT_4"]
# [inline (always)]
pub fn ctrctl_repeat_repeat_4 (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_4) } } # [doc = "Field `CTRCTL_CM` reader - Count Mode"]
pub type CTRCTL_CM_R = crate :: FieldReader < CTRCTL_CM_A > ; # [doc = "Count Mode\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTRCTL_CM_A { # [doc = "0: DOWN"]
CTRCTL_CM_DOWN = 0 , # [doc = "1: UP_DOWN"]
CTRCTL_CM_UP_DOWN = 1 , # [doc = "2: UP"]
CTRCTL_CM_UP = 2 , } impl From < CTRCTL_CM_A > for u8 { # [inline (always)]
fn from (variant : CTRCTL_CM_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTRCTL_CM_A { type Ux = u8 ; } impl CTRCTL_CM_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTRCTL_CM_A > { match self . bits { 0 => Some (CTRCTL_CM_A :: CTRCTL_CM_DOWN) , 1 => Some (CTRCTL_CM_A :: CTRCTL_CM_UP_DOWN) , 2 => Some (CTRCTL_CM_A :: CTRCTL_CM_UP) , _ => None , } } # [doc = "DOWN"]
# [inline (always)]
pub fn is_ctrctl_cm_down (& self) -> bool { * self == CTRCTL_CM_A :: CTRCTL_CM_DOWN } # [doc = "UP_DOWN"]
# [inline (always)]
pub fn is_ctrctl_cm_up_down (& self) -> bool { * self == CTRCTL_CM_A :: CTRCTL_CM_UP_DOWN } # [doc = "UP"]
# [inline (always)]
pub fn is_ctrctl_cm_up (& self) -> bool { * self == CTRCTL_CM_A :: CTRCTL_CM_UP } } # [doc = "Field `CTRCTL_CM` writer - Count Mode"]
pub type CTRCTL_CM_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , CTRCTL_CM_A > ; impl < 'a , REG , const O : u8 > CTRCTL_CM_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DOWN"]
# [inline (always)]
pub fn ctrctl_cm_down (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CM_A :: CTRCTL_CM_DOWN) } # [doc = "UP_DOWN"]
# [inline (always)]
pub fn ctrctl_cm_up_down (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CM_A :: CTRCTL_CM_UP_DOWN) } # [doc = "UP"]
# [inline (always)]
pub fn ctrctl_cm_up (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CM_A :: CTRCTL_CM_UP) } } # [doc = "Field `CTRCTL_CLC` reader - Counter Load Control. This field specifies what controls the counter operation with respect to setting the counter to the LD register value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
pub type CTRCTL_CLC_R = crate :: FieldReader < CTRCTL_CLC_A > ; # [doc = "Counter Load Control. This field specifies what controls the counter operation with respect to setting the counter to the LD register value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved.\n\nValue on reset: 7"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTRCTL_CLC_A { # [doc = "0: CCCTL0_LCOND"]
CTRCTL_CLC_CCCTL0_LCOND = 0 , # [doc = "1: CCCTL1_LCOND"]
CTRCTL_CLC_CCCTL1_LCOND = 1 , # [doc = "2: CCCTL2_LCOND"]
CTRCTL_CLC_CCCTL2_LCOND = 2 , # [doc = "3: CCCTL3_LCOND"]
CTRCTL_CLC_CCCTL3_LCOND = 3 , # [doc = "4: QEI_2INP"]
CTRCTL_CLC_QEI_2INP = 4 , # [doc = "5: QEI_3INP"]
CTRCTL_CLC_QEI_3INP = 5 , } impl From < CTRCTL_CLC_A > for u8 { # [inline (always)]
fn from (variant : CTRCTL_CLC_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTRCTL_CLC_A { type Ux = u8 ; } impl CTRCTL_CLC_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTRCTL_CLC_A > { match self . bits { 0 => Some (CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL0_LCOND) , 1 => Some (CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL1_LCOND) , 2 => Some (CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL2_LCOND) , 3 => Some (CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL3_LCOND) , 4 => Some (CTRCTL_CLC_A :: CTRCTL_CLC_QEI_2INP) , 5 => Some (CTRCTL_CLC_A :: CTRCTL_CLC_QEI_3INP) , _ => None , } } # [doc = "CCCTL0_LCOND"]
# [inline (always)]
pub fn is_ctrctl_clc_ccctl0_lcond (& self) -> bool { * self == CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL0_LCOND } # [doc = "CCCTL1_LCOND"]
# [inline (always)]
pub fn is_ctrctl_clc_ccctl1_lcond (& self) -> bool { * self == CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL1_LCOND } # [doc = "CCCTL2_LCOND"]
# [inline (always)]
pub fn is_ctrctl_clc_ccctl2_lcond (& self) -> bool { * self == CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL2_LCOND } # [doc = "CCCTL3_LCOND"]
# [inline (always)]
pub fn is_ctrctl_clc_ccctl3_lcond (& self) -> bool { * self == CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL3_LCOND } # [doc = "QEI_2INP"]
# [inline (always)]
pub fn is_ctrctl_clc_qei_2inp (& self) -> bool { * self == CTRCTL_CLC_A :: CTRCTL_CLC_QEI_2INP } # [doc = "QEI_3INP"]
# [inline (always)]
pub fn is_ctrctl_clc_qei_3inp (& self) -> bool { * self == CTRCTL_CLC_A :: CTRCTL_CLC_QEI_3INP } } # [doc = "Field `CTRCTL_CLC` writer - Counter Load Control. This field specifies what controls the counter operation with respect to setting the counter to the LD register value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
pub type CTRCTL_CLC_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CTRCTL_CLC_A > ; impl < 'a , REG , const O : u8 > CTRCTL_CLC_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "CCCTL0_LCOND"]
# [inline (always)]
pub fn ctrctl_clc_ccctl0_lcond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL0_LCOND) } # [doc = "CCCTL1_LCOND"]
# [inline (always)]
pub fn ctrctl_clc_ccctl1_lcond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL1_LCOND) } # [doc = "CCCTL2_LCOND"]
# [inline (always)]
pub fn ctrctl_clc_ccctl2_lcond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL2_LCOND) } # [doc = "CCCTL3_LCOND"]
# [inline (always)]
pub fn ctrctl_clc_ccctl3_lcond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL3_LCOND) } # [doc = "QEI_2INP"]
# [inline (always)]
pub fn ctrctl_clc_qei_2inp (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CLC_A :: CTRCTL_CLC_QEI_2INP) } # [doc = "QEI_3INP"]
# [inline (always)]
pub fn ctrctl_clc_qei_3inp (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CLC_A :: CTRCTL_CLC_QEI_3INP) } } # [doc = "Field `CTRCTL_CAC` reader - Counter Advance Control. This field specifies what controls the counter operation with respect to advancing (incrementing or decrementing) the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
pub type CTRCTL_CAC_R = crate :: FieldReader < CTRCTL_CAC_A > ; # [doc = "Counter Advance Control. This field specifies what controls the counter operation with respect to advancing (incrementing or decrementing) the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved.\n\nValue on reset: 7"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTRCTL_CAC_A { # [doc = "0: CCCTL0_ACOND"]
CTRCTL_CAC_CCCTL0_ACOND = 0 , # [doc = "1: CCCTL1_ACOND"]
CTRCTL_CAC_CCCTL1_ACOND = 1 , # [doc = "2: CCCTL2_ACOND"]
CTRCTL_CAC_CCCTL2_ACOND = 2 , # [doc = "3: CCCTL3_ACOND"]
CTRCTL_CAC_CCCTL3_ACOND = 3 , # [doc = "4: QEI_2INP"]
CTRCTL_CAC_QEI_2INP = 4 , # [doc = "5: QEI_3INP"]
CTRCTL_CAC_QEI_3INP = 5 , } impl From < CTRCTL_CAC_A > for u8 { # [inline (always)]
fn from (variant : CTRCTL_CAC_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTRCTL_CAC_A { type Ux = u8 ; } impl CTRCTL_CAC_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTRCTL_CAC_A > { match self . bits { 0 => Some (CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL0_ACOND) , 1 => Some (CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL1_ACOND) , 2 => Some (CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL2_ACOND) , 3 => Some (CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL3_ACOND) , 4 => Some (CTRCTL_CAC_A :: CTRCTL_CAC_QEI_2INP) , 5 => Some (CTRCTL_CAC_A :: CTRCTL_CAC_QEI_3INP) , _ => None , } } # [doc = "CCCTL0_ACOND"]
# [inline (always)]
pub fn is_ctrctl_cac_ccctl0_acond (& self) -> bool { * self == CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL0_ACOND } # [doc = "CCCTL1_ACOND"]
# [inline (always)]
pub fn is_ctrctl_cac_ccctl1_acond (& self) -> bool { * self == CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL1_ACOND } # [doc = "CCCTL2_ACOND"]
# [inline (always)]
pub fn is_ctrctl_cac_ccctl2_acond (& self) -> bool { * self == CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL2_ACOND } # [doc = "CCCTL3_ACOND"]
# [inline (always)]
pub fn is_ctrctl_cac_ccctl3_acond (& self) -> bool { * self == CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL3_ACOND } # [doc = "QEI_2INP"]
# [inline (always)]
pub fn is_ctrctl_cac_qei_2inp (& self) -> bool { * self == CTRCTL_CAC_A :: CTRCTL_CAC_QEI_2INP } # [doc = "QEI_3INP"]
# [inline (always)]
pub fn is_ctrctl_cac_qei_3inp (& self) -> bool { * self == CTRCTL_CAC_A :: CTRCTL_CAC_QEI_3INP } } # [doc = "Field `CTRCTL_CAC` writer - Counter Advance Control. This field specifies what controls the counter operation with respect to advancing (incrementing or decrementing) the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
pub type CTRCTL_CAC_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CTRCTL_CAC_A > ; impl < 'a , REG , const O : u8 > CTRCTL_CAC_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "CCCTL0_ACOND"]
# [inline (always)]
pub fn ctrctl_cac_ccctl0_acond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL0_ACOND) } # [doc = "CCCTL1_ACOND"]
# [inline (always)]
pub fn ctrctl_cac_ccctl1_acond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL1_ACOND) } # [doc = "CCCTL2_ACOND"]
# [inline (always)]
pub fn ctrctl_cac_ccctl2_acond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL2_ACOND) } # [doc = "CCCTL3_ACOND"]
# [inline (always)]
pub fn ctrctl_cac_ccctl3_acond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL3_ACOND) } # [doc = "QEI_2INP"]
# [inline (always)]
pub fn ctrctl_cac_qei_2inp (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CAC_A :: CTRCTL_CAC_QEI_2INP) } # [doc = "QEI_3INP"]
# [inline (always)]
pub fn ctrctl_cac_qei_3inp (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CAC_A :: CTRCTL_CAC_QEI_3INP) } } # [doc = "Field `CTRCTL_CZC` reader - Counter Zero Control This field specifies what controls the counter operation with respect to zeroing the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
pub type CTRCTL_CZC_R = crate :: FieldReader < CTRCTL_CZC_A > ; # [doc = "Counter Zero Control This field specifies what controls the counter operation with respect to zeroing the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved.\n\nValue on reset: 7"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTRCTL_CZC_A { # [doc = "0: CCCTL0_ZCOND"]
CTRCTL_CZC_CCCTL0_ZCOND = 0 , # [doc = "1: CCCTL1_ZCOND"]
CTRCTL_CZC_CCCTL1_ZCOND = 1 , # [doc = "2: CCCTL2_ZCOND"]
CTRCTL_CZC_CCCTL2_ZCOND = 2 , # [doc = "3: CCCTL3_ZCOND"]
CTRCTL_CZC_CCCTL3_ZCOND = 3 , # [doc = "4: QEI_2INP"]
CTRCTL_CZC_QEI_2INP = 4 , # [doc = "5: QEI_3INP"]
CTRCTL_CZC_QEI_3INP = 5 , } impl From < CTRCTL_CZC_A > for u8 { # [inline (always)]
fn from (variant : CTRCTL_CZC_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTRCTL_CZC_A { type Ux = u8 ; } impl CTRCTL_CZC_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTRCTL_CZC_A > { match self . bits { 0 => Some (CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL0_ZCOND) , 1 => Some (CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL1_ZCOND) , 2 => Some (CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL2_ZCOND) , 3 => Some (CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL3_ZCOND) , 4 => Some (CTRCTL_CZC_A :: CTRCTL_CZC_QEI_2INP) , 5 => Some (CTRCTL_CZC_A :: CTRCTL_CZC_QEI_3INP) , _ => None , } } # [doc = "CCCTL0_ZCOND"]
# [inline (always)]
pub fn is_ctrctl_czc_ccctl0_zcond (& self) -> bool { * self == CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL0_ZCOND } # [doc = "CCCTL1_ZCOND"]
# [inline (always)]
pub fn is_ctrctl_czc_ccctl1_zcond (& self) -> bool { * self == CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL1_ZCOND } # [doc = "CCCTL2_ZCOND"]
# [inline (always)]
pub fn is_ctrctl_czc_ccctl2_zcond (& self) -> bool { * self == CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL2_ZCOND } # [doc = "CCCTL3_ZCOND"]
# [inline (always)]
pub fn is_ctrctl_czc_ccctl3_zcond (& self) -> bool { * self == CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL3_ZCOND } # [doc = "QEI_2INP"]
# [inline (always)]
pub fn is_ctrctl_czc_qei_2inp (& self) -> bool { * self == CTRCTL_CZC_A :: CTRCTL_CZC_QEI_2INP } # [doc = "QEI_3INP"]
# [inline (always)]
pub fn is_ctrctl_czc_qei_3inp (& self) -> bool { * self == CTRCTL_CZC_A :: CTRCTL_CZC_QEI_3INP } } # [doc = "Field `CTRCTL_CZC` writer - Counter Zero Control This field specifies what controls the counter operation with respect to zeroing the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
pub type CTRCTL_CZC_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CTRCTL_CZC_A > ; impl < 'a , REG , const O : u8 > CTRCTL_CZC_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "CCCTL0_ZCOND"]
# [inline (always)]
pub fn ctrctl_czc_ccctl0_zcond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL0_ZCOND) } # [doc = "CCCTL1_ZCOND"]
# [inline (always)]
pub fn ctrctl_czc_ccctl1_zcond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL1_ZCOND) } # [doc = "CCCTL2_ZCOND"]
# [inline (always)]
pub fn ctrctl_czc_ccctl2_zcond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL2_ZCOND) } # [doc = "CCCTL3_ZCOND"]
# [inline (always)]
pub fn ctrctl_czc_ccctl3_zcond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL3_ZCOND) } # [doc = "QEI_2INP"]
# [inline (always)]
pub fn ctrctl_czc_qei_2inp (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CZC_A :: CTRCTL_CZC_QEI_2INP) } # [doc = "QEI_3INP"]
# [inline (always)]
pub fn ctrctl_czc_qei_3inp (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CZC_A :: CTRCTL_CZC_QEI_3INP) } } # [doc = "Field `CTRCTL_DRB` reader - Debug Resume Behavior This bit specifies what the device does following the release/exit of debug mode."]
pub type CTRCTL_DRB_R = crate :: BitReader < CTRCTL_DRB_A > ; # [doc = "Debug Resume Behavior This bit specifies what the device does following the release/exit of debug mode.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTRCTL_DRB_A { # [doc = "0: RESUME"]
CTRCTL_DRB_RESUME = 0 , # [doc = "1: CVAE_ACTION"]
CTRCTL_DRB_CVAE_ACTION = 1 , } impl From < CTRCTL_DRB_A > for bool { # [inline (always)]
fn from (variant : CTRCTL_DRB_A) -> Self { variant as u8 != 0 } } impl CTRCTL_DRB_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTRCTL_DRB_A { match self . bits { false => CTRCTL_DRB_A :: CTRCTL_DRB_RESUME , true => CTRCTL_DRB_A :: CTRCTL_DRB_CVAE_ACTION , } } # [doc = "RESUME"]
# [inline (always)]
pub fn is_ctrctl_drb_resume (& self) -> bool { * self == CTRCTL_DRB_A :: CTRCTL_DRB_RESUME } # [doc = "CVAE_ACTION"]
# [inline (always)]
pub fn is_ctrctl_drb_cvae_action (& self) -> bool { * self == CTRCTL_DRB_A :: CTRCTL_DRB_CVAE_ACTION } } # [doc = "Field `CTRCTL_DRB` writer - Debug Resume Behavior This bit specifies what the device does following the release/exit of debug mode."]
pub type CTRCTL_DRB_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTRCTL_DRB_A > ; impl < 'a , REG , const O : u8 > CTRCTL_DRB_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "RESUME"]
# [inline (always)]
pub fn ctrctl_drb_resume (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_DRB_A :: CTRCTL_DRB_RESUME) } # [doc = "CVAE_ACTION"]
# [inline (always)]
pub fn ctrctl_drb_cvae_action (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_DRB_A :: CTRCTL_DRB_CVAE_ACTION) } } # [doc = "Field `CTRCTL_CVAE` reader - Counter Value After Enable. This field specifies the initialization condition of the counter when the EN bit is changed from 0 to 1 by a write to the CTRCTL register. Note that an external event can also cause the EN bit to go active."]
pub type CTRCTL_CVAE_R = crate :: FieldReader < CTRCTL_CVAE_A > ; # [doc = "Counter Value After Enable. This field specifies the initialization condition of the counter when the EN bit is changed from 0 to 1 by a write to the CTRCTL register. Note that an external event can also cause the EN bit to go active.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTRCTL_CVAE_A { # [doc = "0: LDVAL"]
CTRCTL_CVAE_LDVAL = 0 , # [doc = "1: NOCHANGE"]
CTRCTL_CVAE_NOCHANGE = 1 , # [doc = "2: ZEROVAL"]
CTRCTL_CVAE_ZEROVAL = 2 , } impl From < CTRCTL_CVAE_A > for u8 { # [inline (always)]
fn from (variant : CTRCTL_CVAE_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTRCTL_CVAE_A { type Ux = u8 ; } impl CTRCTL_CVAE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTRCTL_CVAE_A > { match self . bits { 0 => Some (CTRCTL_CVAE_A :: CTRCTL_CVAE_LDVAL) , 1 => Some (CTRCTL_CVAE_A :: CTRCTL_CVAE_NOCHANGE) , 2 => Some (CTRCTL_CVAE_A :: CTRCTL_CVAE_ZEROVAL) , _ => None , } } # [doc = "LDVAL"]
# [inline (always)]
pub fn is_ctrctl_cvae_ldval (& self) -> bool { * self == CTRCTL_CVAE_A :: CTRCTL_CVAE_LDVAL } # [doc = "NOCHANGE"]
# [inline (always)]
pub fn is_ctrctl_cvae_nochange (& self) -> bool { * self == CTRCTL_CVAE_A :: CTRCTL_CVAE_NOCHANGE } # [doc = "ZEROVAL"]
# [inline (always)]
pub fn is_ctrctl_cvae_zeroval (& self) -> bool { * self == CTRCTL_CVAE_A :: CTRCTL_CVAE_ZEROVAL } } # [doc = "Field `CTRCTL_CVAE` writer - Counter Value After Enable. This field specifies the initialization condition of the counter when the EN bit is changed from 0 to 1 by a write to the CTRCTL register. Note that an external event can also cause the EN bit to go active."]
pub type CTRCTL_CVAE_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , CTRCTL_CVAE_A > ; impl < 'a , REG , const O : u8 > CTRCTL_CVAE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "LDVAL"]
# [inline (always)]
pub fn ctrctl_cvae_ldval (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CVAE_A :: CTRCTL_CVAE_LDVAL) } # [doc = "NOCHANGE"]
# [inline (always)]
pub fn ctrctl_cvae_nochange (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CVAE_A :: CTRCTL_CVAE_NOCHANGE) } # [doc = "ZEROVAL"]
# [inline (always)]
pub fn ctrctl_cvae_zeroval (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CVAE_A :: CTRCTL_CVAE_ZEROVAL) } } impl R { # [doc = "Bit 0 - Counter Enable. This bit allows the timer to advance This bit is automatically cleared if REPEAT=0 (do not automatically reload) and the counter value equals zero. CPU Write: A register write that sets the EN bit, the counter value is set per the CVAE value. Hardware: This bit may also be set as the result of an LCOND or ZCOND condition being met and the counter value changed to the load value or zero value, respectively."]
# [inline (always)]
pub fn ctrctl_en (& self) -> CTRCTL_EN_R { CTRCTL_EN_R :: new ((self . bits & 1) != 0) } # [doc = "Bits 1:3 - Repeat. The repeat bit controls whether the counter continues to advance following a zero event, or the exiting of a debug or fault condition. If counting down, a zero event is followed by a load at the next advance condition. If counting up-down, a zero event is followed by an advance event (+1). The intent of encoding 3 is that if the debug condition is in effect, the generation of the load pulse is deferred until the debug condition is over. This allows the counter to reach zero before counting is suspended."]
# [inline (always)]
pub fn ctrctl_repeat (& self) -> CTRCTL_REPEAT_R { CTRCTL_REPEAT_R :: new (((self . bits >> 1) & 7) as u8) } # [doc = "Bits 4:5 - Count Mode"]
# [inline (always)]
pub fn ctrctl_cm (& self) -> CTRCTL_CM_R { CTRCTL_CM_R :: new (((self . bits >> 4) & 3) as u8) } # [doc = "Bits 7:9 - Counter Load Control. This field specifies what controls the counter operation with respect to setting the counter to the LD register value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
# [inline (always)]
pub fn ctrctl_clc (& self) -> CTRCTL_CLC_R { CTRCTL_CLC_R :: new (((self . bits >> 7) & 7) as u8) } # [doc = "Bits 10:12 - Counter Advance Control. This field specifies what controls the counter operation with respect to advancing (incrementing or decrementing) the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
# [inline (always)]
pub fn ctrctl_cac (& self) -> CTRCTL_CAC_R { CTRCTL_CAC_R :: new (((self . bits >> 10) & 7) as u8) } # [doc = "Bits 13:15 - Counter Zero Control This field specifies what controls the counter operation with respect to zeroing the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
# [inline (always)]
pub fn ctrctl_czc (& self) -> CTRCTL_CZC_R { CTRCTL_CZC_R :: new (((self . bits >> 13) & 7) as u8) } # [doc = "Bit 17 - Debug Resume Behavior This bit specifies what the device does following the release/exit of debug mode."]
# [inline (always)]
pub fn ctrctl_drb (& self) -> CTRCTL_DRB_R { CTRCTL_DRB_R :: new (((self . bits >> 17) & 1) != 0) } # [doc = "Bits 28:29 - Counter Value After Enable. This field specifies the initialization condition of the counter when the EN bit is changed from 0 to 1 by a write to the CTRCTL register. Note that an external event can also cause the EN bit to go active."]
# [inline (always)]
pub fn ctrctl_cvae (& self) -> CTRCTL_CVAE_R { CTRCTL_CVAE_R :: new (((self . bits >> 28) & 3) as u8) } } impl W { # [doc = "Bit 0 - Counter Enable. This bit allows the timer to advance This bit is automatically cleared if REPEAT=0 (do not automatically reload) and the counter value equals zero. CPU Write: A register write that sets the EN bit, the counter value is set per the CVAE value. Hardware: This bit may also be set as the result of an LCOND or ZCOND condition being met and the counter value changed to the load value or zero value, respectively."]
# [inline (always)]
# [must_use]
pub fn ctrctl_en (& mut self) -> CTRCTL_EN_W < CTRCTL_SPEC , 0 > { CTRCTL_EN_W :: new (self) } # [doc = "Bits 1:3 - Repeat. The repeat bit controls whether the counter continues to advance following a zero event, or the exiting of a debug or fault condition. If counting down, a zero event is followed by a load at the next advance condition. If counting up-down, a zero event is followed by an advance event (+1). The intent of encoding 3 is that if the debug condition is in effect, the generation of the load pulse is deferred until the debug condition is over. This allows the counter to reach zero before counting is suspended."]
# [inline (always)]
# [must_use]
pub fn ctrctl_repeat (& mut self) -> CTRCTL_REPEAT_W < CTRCTL_SPEC , 1 > { CTRCTL_REPEAT_W :: new (self) } # [doc = "Bits 4:5 - Count Mode"]
# [inline (always)]
# [must_use]
pub fn ctrctl_cm (& mut self) -> CTRCTL_CM_W < CTRCTL_SPEC , 4 > { CTRCTL_CM_W :: new (self) } # [doc = "Bits 7:9 - Counter Load Control. This field specifies what controls the counter operation with respect to setting the counter to the LD register value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
# [inline (always)]
# [must_use]
pub fn ctrctl_clc (& mut self) -> CTRCTL_CLC_W < CTRCTL_SPEC , 7 > { CTRCTL_CLC_W :: new (self) } # [doc = "Bits 10:12 - Counter Advance Control. This field specifies what controls the counter operation with respect to advancing (incrementing or decrementing) the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
# [inline (always)]
# [must_use]
pub fn ctrctl_cac (& mut self) -> CTRCTL_CAC_W < CTRCTL_SPEC , 10 > { CTRCTL_CAC_W :: new (self) } # [doc = "Bits 13:15 - Counter Zero Control This field specifies what controls the counter operation with respect to zeroing the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
# [inline (always)]
# [must_use]
pub fn ctrctl_czc (& mut self) -> CTRCTL_CZC_W < CTRCTL_SPEC , 13 > { CTRCTL_CZC_W :: new (self) } # [doc = "Bit 17 - Debug Resume Behavior This bit specifies what the device does following the release/exit of debug mode."]
# [inline (always)]
# [must_use]
pub fn ctrctl_drb (& mut self) -> CTRCTL_DRB_W < CTRCTL_SPEC , 17 > { CTRCTL_DRB_W :: new (self) } # [doc = "Bits 28:29 - Counter Value After Enable. This field specifies the initialization condition of the counter when the EN bit is changed from 0 to 1 by a write to the CTRCTL register. Note that an external event can also cause the EN bit to go active."]
# [inline (always)]
# [must_use]
pub fn ctrctl_cvae (& mut self) -> CTRCTL_CVAE_W < CTRCTL_SPEC , 28 > { CTRCTL_CVAE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Counter Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctrctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctrctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTRCTL_SPEC ; impl crate :: RegisterSpec for CTRCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ctrctl::R`](R) reader structure"]
impl crate :: Readable for CTRCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`ctrctl::W`](W) writer structure"]
impl crate :: Writable for CTRCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTRCTL to value 0xff80"]
impl crate :: Resettable for CTRCTL_SPEC { const RESET_VALUE : Self :: Ux = 0xff80 ; } } # [doc = "LOAD (rw) register accessor: Load Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`load::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`load::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@load`]
module"]
pub type LOAD = crate :: Reg < load :: LOAD_SPEC > ; # [doc = "Load 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 `LOAD_LD` reader - Load Value"]
pub type LOAD_LD_R = crate :: FieldReader < u16 > ; # [doc = "Field `LOAD_LD` writer - Load Value"]
pub type LOAD_LD_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 16 , O , u16 > ; impl R { # [doc = "Bits 0:15 - Load Value"]
# [inline (always)]
pub fn load_ld (& self) -> LOAD_LD_R { LOAD_LD_R :: new ((self . bits & 0xffff) as u16) } } impl W { # [doc = "Bits 0:15 - Load Value"]
# [inline (always)]
# [must_use]
pub fn load_ld (& mut self) -> LOAD_LD_W < LOAD_SPEC , 0 > { LOAD_LD_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Load Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`load::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`load::W`](W). You can also [`modify`](crate::generic::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 { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets LOAD to value 0"]
impl crate :: Resettable for LOAD_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CC_01 (rw) register accessor: Capture or Compare Register 0 to Capture or Compare Register 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cc_01::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cc_01::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cc_01`]
module"]
pub type CC_01 = crate :: Reg < cc_01 :: CC_01_SPEC > ; # [doc = "Capture or Compare Register 0 to Capture or Compare Register 1"]
pub mod cc_01 { # [doc = "Register `CC_01[%s]` reader"]
pub type R = crate :: R < CC_01_SPEC > ; # [doc = "Register `CC_01[%s]` writer"]
pub type W = crate :: W < CC_01_SPEC > ; # [doc = "Field `CC_01_CCVAL` reader - Capture or compare value"]
pub type CC_01_CCVAL_R = crate :: FieldReader < u16 > ; # [doc = "Field `CC_01_CCVAL` writer - Capture or compare value"]
pub type CC_01_CCVAL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 16 , O , u16 > ; impl R { # [doc = "Bits 0:15 - Capture or compare value"]
# [inline (always)]
pub fn cc_01_ccval (& self) -> CC_01_CCVAL_R { CC_01_CCVAL_R :: new ((self . bits & 0xffff) as u16) } } impl W { # [doc = "Bits 0:15 - Capture or compare value"]
# [inline (always)]
# [must_use]
pub fn cc_01_ccval (& mut self) -> CC_01_CCVAL_W < CC_01_SPEC , 0 > { CC_01_CCVAL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Capture or Compare Register 0 to Capture or Compare Register 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cc_01::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cc_01::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CC_01_SPEC ; impl crate :: RegisterSpec for CC_01_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cc_01::R`](R) reader structure"]
impl crate :: Readable for CC_01_SPEC { } # [doc = "`write(|w| ..)` method takes [`cc_01::W`](W) writer structure"]
impl crate :: Writable for CC_01_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CC_01[%s]
to value 0"]
impl crate :: Resettable for CC_01_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CCCTL_01 (rw) register accessor: Capture or Compare Control Registers\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ccctl_01::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ccctl_01::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccctl_01`]
module"]
pub type CCCTL_01 = crate :: Reg < ccctl_01 :: CCCTL_01_SPEC > ; # [doc = "Capture or Compare Control Registers"]
pub mod ccctl_01 { # [doc = "Register `CCCTL_01[%s]` reader"]
pub type R = crate :: R < CCCTL_01_SPEC > ; # [doc = "Register `CCCTL_01[%s]` writer"]
pub type W = crate :: W < CCCTL_01_SPEC > ; # [doc = "Field `CCCTL_01_CCOND` reader - Capture Condition. #br# Specifies the condition that generates a capture pulse. 4h-Fh = Reserved"]
pub type CCCTL_01_CCOND_R = crate :: FieldReader < CCCTL_01_CCOND_A > ; # [doc = "Capture Condition. #br# Specifies the condition that generates a capture pulse. 4h-Fh = Reserved\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCCTL_01_CCOND_A { # [doc = "0: NOCAPTURE"]
CCCTL_01_CCOND_NOCAPTURE = 0 , # [doc = "1: CC_TRIG_RISE"]
CCCTL_01_CCOND_CC_TRIG_RISE = 1 , # [doc = "2: CC_TRIG_FALL"]
CCCTL_01_CCOND_CC_TRIG_FALL = 2 , # [doc = "3: CC_TRIG_EDGE"]
CCCTL_01_CCOND_CC_TRIG_EDGE = 3 , } impl From < CCCTL_01_CCOND_A > for u8 { # [inline (always)]
fn from (variant : CCCTL_01_CCOND_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCCTL_01_CCOND_A { type Ux = u8 ; } impl CCCTL_01_CCOND_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCCTL_01_CCOND_A > { match self . bits { 0 => Some (CCCTL_01_CCOND_A :: CCCTL_01_CCOND_NOCAPTURE) , 1 => Some (CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_RISE) , 2 => Some (CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_FALL) , 3 => Some (CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_EDGE) , _ => None , } } # [doc = "NOCAPTURE"]
# [inline (always)]
pub fn is_ccctl_01_ccond_nocapture (& self) -> bool { * self == CCCTL_01_CCOND_A :: CCCTL_01_CCOND_NOCAPTURE } # [doc = "CC_TRIG_RISE"]
# [inline (always)]
pub fn is_ccctl_01_ccond_cc_trig_rise (& self) -> bool { * self == CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_RISE } # [doc = "CC_TRIG_FALL"]
# [inline (always)]
pub fn is_ccctl_01_ccond_cc_trig_fall (& self) -> bool { * self == CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_FALL } # [doc = "CC_TRIG_EDGE"]
# [inline (always)]
pub fn is_ccctl_01_ccond_cc_trig_edge (& self) -> bool { * self == CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_EDGE } } # [doc = "Field `CCCTL_01_CCOND` writer - Capture Condition. #br# Specifies the condition that generates a capture pulse. 4h-Fh = Reserved"]
pub type CCCTL_01_CCOND_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CCCTL_01_CCOND_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_CCOND_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "NOCAPTURE"]
# [inline (always)]
pub fn ccctl_01_ccond_nocapture (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCOND_A :: CCCTL_01_CCOND_NOCAPTURE) } # [doc = "CC_TRIG_RISE"]
# [inline (always)]
pub fn ccctl_01_ccond_cc_trig_rise (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_RISE) } # [doc = "CC_TRIG_FALL"]
# [inline (always)]
pub fn ccctl_01_ccond_cc_trig_fall (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_FALL) } # [doc = "CC_TRIG_EDGE"]
# [inline (always)]
pub fn ccctl_01_ccond_cc_trig_edge (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_EDGE) } } # [doc = "Field `CCCTL_01_ACOND` reader - Advance Condition. #br# Specifies the condition that generates an advance pulse. 6h-Fh = Reserved"]
pub type CCCTL_01_ACOND_R = crate :: FieldReader < CCCTL_01_ACOND_A > ; # [doc = "Advance Condition. #br# Specifies the condition that generates an advance pulse. 6h-Fh = Reserved\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCCTL_01_ACOND_A { # [doc = "0: TIMCLK"]
CCCTL_01_ACOND_TIMCLK = 0 , # [doc = "1: CC_TRIG_RISE"]
CCCTL_01_ACOND_CC_TRIG_RISE = 1 , # [doc = "2: CC_TRIG_FALL"]
CCCTL_01_ACOND_CC_TRIG_FALL = 2 , # [doc = "3: CC_TRIG_EDGE"]
CCCTL_01_ACOND_CC_TRIG_EDGE = 3 , # [doc = "5: CC_TRIG_HIGH"]
CCCTL_01_ACOND_CC_TRIG_HIGH = 5 , } impl From < CCCTL_01_ACOND_A > for u8 { # [inline (always)]
fn from (variant : CCCTL_01_ACOND_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCCTL_01_ACOND_A { type Ux = u8 ; } impl CCCTL_01_ACOND_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCCTL_01_ACOND_A > { match self . bits { 0 => Some (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_TIMCLK) , 1 => Some (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_RISE) , 2 => Some (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_FALL) , 3 => Some (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_EDGE) , 5 => Some (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_HIGH) , _ => None , } } # [doc = "TIMCLK"]
# [inline (always)]
pub fn is_ccctl_01_acond_timclk (& self) -> bool { * self == CCCTL_01_ACOND_A :: CCCTL_01_ACOND_TIMCLK } # [doc = "CC_TRIG_RISE"]
# [inline (always)]
pub fn is_ccctl_01_acond_cc_trig_rise (& self) -> bool { * self == CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_RISE } # [doc = "CC_TRIG_FALL"]
# [inline (always)]
pub fn is_ccctl_01_acond_cc_trig_fall (& self) -> bool { * self == CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_FALL } # [doc = "CC_TRIG_EDGE"]
# [inline (always)]
pub fn is_ccctl_01_acond_cc_trig_edge (& self) -> bool { * self == CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_EDGE } # [doc = "CC_TRIG_HIGH"]
# [inline (always)]
pub fn is_ccctl_01_acond_cc_trig_high (& self) -> bool { * self == CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_HIGH } } # [doc = "Field `CCCTL_01_ACOND` writer - Advance Condition. #br# Specifies the condition that generates an advance pulse. 6h-Fh = Reserved"]
pub type CCCTL_01_ACOND_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CCCTL_01_ACOND_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_ACOND_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "TIMCLK"]
# [inline (always)]
pub fn ccctl_01_acond_timclk (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_TIMCLK) } # [doc = "CC_TRIG_RISE"]
# [inline (always)]
pub fn ccctl_01_acond_cc_trig_rise (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_RISE) } # [doc = "CC_TRIG_FALL"]
# [inline (always)]
pub fn ccctl_01_acond_cc_trig_fall (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_FALL) } # [doc = "CC_TRIG_EDGE"]
# [inline (always)]
pub fn ccctl_01_acond_cc_trig_edge (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_EDGE) } # [doc = "CC_TRIG_HIGH"]
# [inline (always)]
pub fn ccctl_01_acond_cc_trig_high (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_HIGH) } } # [doc = "Field `CCCTL_01_LCOND` reader - Load Condition. #br# Specifies the condition that generates a load pulse. 4h-Fh = Reserved"]
pub type CCCTL_01_LCOND_R = crate :: FieldReader < CCCTL_01_LCOND_A > ; # [doc = "Load Condition. #br# Specifies the condition that generates a load pulse. 4h-Fh = Reserved\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCCTL_01_LCOND_A { # [doc = "1: CC_TRIG_RISE"]
CCCTL_01_LCOND_CC_TRIG_RISE = 1 , # [doc = "2: CC_TRIG_FALL"]
CCCTL_01_LCOND_CC_TRIG_FALL = 2 , # [doc = "3: CC_TRIG_EDGE"]
CCCTL_01_LCOND_CC_TRIG_EDGE = 3 , } impl From < CCCTL_01_LCOND_A > for u8 { # [inline (always)]
fn from (variant : CCCTL_01_LCOND_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCCTL_01_LCOND_A { type Ux = u8 ; } impl CCCTL_01_LCOND_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCCTL_01_LCOND_A > { match self . bits { 1 => Some (CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_RISE) , 2 => Some (CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_FALL) , 3 => Some (CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_EDGE) , _ => None , } } # [doc = "CC_TRIG_RISE"]
# [inline (always)]
pub fn is_ccctl_01_lcond_cc_trig_rise (& self) -> bool { * self == CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_RISE } # [doc = "CC_TRIG_FALL"]
# [inline (always)]
pub fn is_ccctl_01_lcond_cc_trig_fall (& self) -> bool { * self == CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_FALL } # [doc = "CC_TRIG_EDGE"]
# [inline (always)]
pub fn is_ccctl_01_lcond_cc_trig_edge (& self) -> bool { * self == CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_EDGE } } # [doc = "Field `CCCTL_01_LCOND` writer - Load Condition. #br# Specifies the condition that generates a load pulse. 4h-Fh = Reserved"]
pub type CCCTL_01_LCOND_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CCCTL_01_LCOND_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_LCOND_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "CC_TRIG_RISE"]
# [inline (always)]
pub fn ccctl_01_lcond_cc_trig_rise (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_RISE) } # [doc = "CC_TRIG_FALL"]
# [inline (always)]
pub fn ccctl_01_lcond_cc_trig_fall (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_FALL) } # [doc = "CC_TRIG_EDGE"]
# [inline (always)]
pub fn ccctl_01_lcond_cc_trig_edge (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_EDGE) } } # [doc = "Field `CCCTL_01_ZCOND` reader - Zero Condition. #br# This field specifies the condition that generates a zero pulse. 4h-Fh = Reserved"]
pub type CCCTL_01_ZCOND_R = crate :: FieldReader < CCCTL_01_ZCOND_A > ; # [doc = "Zero Condition. #br# This field specifies the condition that generates a zero pulse. 4h-Fh = Reserved\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCCTL_01_ZCOND_A { # [doc = "1: CC_TRIG_RISE"]
CCCTL_01_ZCOND_CC_TRIG_RISE = 1 , # [doc = "2: CC_TRIG_FALL"]
CCCTL_01_ZCOND_CC_TRIG_FALL = 2 , # [doc = "3: CC_TRIG_EDGE"]
CCCTL_01_ZCOND_CC_TRIG_EDGE = 3 , } impl From < CCCTL_01_ZCOND_A > for u8 { # [inline (always)]
fn from (variant : CCCTL_01_ZCOND_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCCTL_01_ZCOND_A { type Ux = u8 ; } impl CCCTL_01_ZCOND_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCCTL_01_ZCOND_A > { match self . bits { 1 => Some (CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_RISE) , 2 => Some (CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_FALL) , 3 => Some (CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_EDGE) , _ => None , } } # [doc = "CC_TRIG_RISE"]
# [inline (always)]
pub fn is_ccctl_01_zcond_cc_trig_rise (& self) -> bool { * self == CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_RISE } # [doc = "CC_TRIG_FALL"]
# [inline (always)]
pub fn is_ccctl_01_zcond_cc_trig_fall (& self) -> bool { * self == CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_FALL } # [doc = "CC_TRIG_EDGE"]
# [inline (always)]
pub fn is_ccctl_01_zcond_cc_trig_edge (& self) -> bool { * self == CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_EDGE } } # [doc = "Field `CCCTL_01_ZCOND` writer - Zero Condition. #br# This field specifies the condition that generates a zero pulse. 4h-Fh = Reserved"]
pub type CCCTL_01_ZCOND_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CCCTL_01_ZCOND_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_ZCOND_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "CC_TRIG_RISE"]
# [inline (always)]
pub fn ccctl_01_zcond_cc_trig_rise (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_RISE) } # [doc = "CC_TRIG_FALL"]
# [inline (always)]
pub fn ccctl_01_zcond_cc_trig_fall (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_FALL) } # [doc = "CC_TRIG_EDGE"]
# [inline (always)]
pub fn ccctl_01_zcond_cc_trig_edge (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_EDGE) } } # [doc = "Field `CCCTL_01_COC` reader - Capture or Compare. #br# Specifies whether the corresponding CC register is used as a capture register or a compare register (never both)."]
pub type CCCTL_01_COC_R = crate :: BitReader < CCCTL_01_COC_A > ; # [doc = "Capture or Compare. #br# Specifies whether the corresponding CC register is used as a capture register or a compare register (never both).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CCCTL_01_COC_A { # [doc = "0: COMPARE"]
CCCTL_01_COC_COMPARE = 0 , # [doc = "1: CAPTURE"]
CCCTL_01_COC_CAPTURE = 1 , } impl From < CCCTL_01_COC_A > for bool { # [inline (always)]
fn from (variant : CCCTL_01_COC_A) -> Self { variant as u8 != 0 } } impl CCCTL_01_COC_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCCTL_01_COC_A { match self . bits { false => CCCTL_01_COC_A :: CCCTL_01_COC_COMPARE , true => CCCTL_01_COC_A :: CCCTL_01_COC_CAPTURE , } } # [doc = "COMPARE"]
# [inline (always)]
pub fn is_ccctl_01_coc_compare (& self) -> bool { * self == CCCTL_01_COC_A :: CCCTL_01_COC_COMPARE } # [doc = "CAPTURE"]
# [inline (always)]
pub fn is_ccctl_01_coc_capture (& self) -> bool { * self == CCCTL_01_COC_A :: CCCTL_01_COC_CAPTURE } } # [doc = "Field `CCCTL_01_COC` writer - Capture or Compare. #br# Specifies whether the corresponding CC register is used as a capture register or a compare register (never both)."]
pub type CCCTL_01_COC_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CCCTL_01_COC_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_COC_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "COMPARE"]
# [inline (always)]
pub fn ccctl_01_coc_compare (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_COC_A :: CCCTL_01_COC_COMPARE) } # [doc = "CAPTURE"]
# [inline (always)]
pub fn ccctl_01_coc_capture (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_COC_A :: CCCTL_01_COC_CAPTURE) } } # [doc = "Field `CCCTL_01_CCUPD` reader - Capture and Compare Update Method This field controls how updates to the pipelined capture and compare register are performed (when operating in compare mode, COC=0)."]
pub type CCCTL_01_CCUPD_R = crate :: FieldReader < CCCTL_01_CCUPD_A > ; # [doc = "Capture and Compare Update Method This field controls how updates to the pipelined capture and compare register are performed (when operating in compare mode, COC=0).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCCTL_01_CCUPD_A { # [doc = "0: IMMEDIATELY"]
CCCTL_01_CCUPD_IMMEDIATELY = 0 , # [doc = "1: ZERO_EVT"]
CCCTL_01_CCUPD_ZERO_EVT = 1 , # [doc = "2: COMPARE_DOWN_EVT"]
CCCTL_01_CCUPD_COMPARE_DOWN_EVT = 2 , # [doc = "3: COMPARE_UP_EVT"]
CCCTL_01_CCUPD_COMPARE_UP_EVT = 3 , # [doc = "4: ZERO_LOAD_EVT"]
CCCTL_01_CCUPD_ZERO_LOAD_EVT = 4 , # [doc = "5: ZERO_RC_ZERO_EVT"]
CCCTL_01_CCUPD_ZERO_RC_ZERO_EVT = 5 , # [doc = "6: TRIG"]
CCCTL_01_CCUPD_TRIG = 6 , } impl From < CCCTL_01_CCUPD_A > for u8 { # [inline (always)]
fn from (variant : CCCTL_01_CCUPD_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCCTL_01_CCUPD_A { type Ux = u8 ; } impl CCCTL_01_CCUPD_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCCTL_01_CCUPD_A > { match self . bits { 0 => Some (CCCTL_01_CCUPD_A :: CCCTL_01_CCUPD_IMMEDIATELY) , 1 => Some (CCCTL_01_CCUPD_A :: CCCTL_01_CCUPD_ZERO_EVT) , 2 => Some (CCCTL_01_CCUPD_A :: CCCTL_01_CCUPD_COMPARE_DOWN_EVT) , 3 => Some (CCCTL_01_CCUPD_A :: CCCTL_01_CCUPD_COMPARE_UP_EVT) , 4 => Some (CCCTL_01_CCUPD_A :: CCCTL_01_CCUPD_ZERO_LOAD_EVT) , 5 => Some (CCCTL_01_CCUPD_A :: CCCTL_01_CCUPD_ZERO_RC_ZERO_EVT) , 6 => Some (CCCTL_01_CCUPD_A :: CCCTL_01_CCUPD_TRIG) , _ => None , } } # [doc = "IMMEDIATELY"]
# [inline (always)]
pub fn is_ccctl_01_ccupd_immediately (& self) -> bool { * self == CCCTL_01_CCUPD_A :: CCCTL_01_CCUPD_IMMEDIATELY } # [doc = "ZERO_EVT"]
# [inline (always)]
pub fn is_ccctl_01_ccupd_zero_evt (& self) -> bool { * self == CCCTL_01_CCUPD_A :: CCCTL_01_CCUPD_ZERO_EVT } # [doc = "COMPARE_DOWN_EVT"]
# [inline (always)]
pub fn is_ccctl_01_ccupd_compare_down_evt (& self) -> bool { * self == CCCTL_01_CCUPD_A :: CCCTL_01_CCUPD_COMPARE_DOWN_EVT } # [doc = "COMPARE_UP_EVT"]
# [inline (always)]
pub fn is_ccctl_01_ccupd_compare_up_evt (& self) -> bool { * self == CCCTL_01_CCUPD_A :: CCCTL_01_CCUPD_COMPARE_UP_EVT } # [doc = "ZERO_LOAD_EVT"]
# [inline (always)]
pub fn is_ccctl_01_ccupd_zero_load_evt (& self) -> bool { * self == CCCTL_01_CCUPD_A :: CCCTL_01_CCUPD_ZERO_LOAD_EVT } # [doc = "ZERO_RC_ZERO_EVT"]
# [inline (always)]
pub fn is_ccctl_01_ccupd_zero_rc_zero_evt (& self) -> bool { * self == CCCTL_01_CCUPD_A :: CCCTL_01_CCUPD_ZERO_RC_ZERO_EVT } # [doc = "TRIG"]
# [inline (always)]
pub fn is_ccctl_01_ccupd_trig (& self) -> bool { * self == CCCTL_01_CCUPD_A :: CCCTL_01_CCUPD_TRIG } } # [doc = "Field `CCCTL_01_CCUPD` writer - Capture and Compare Update Method This field controls how updates to the pipelined capture and compare register are performed (when operating in compare mode, COC=0)."]
pub type CCCTL_01_CCUPD_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CCCTL_01_CCUPD_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_CCUPD_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "IMMEDIATELY"]
# [inline (always)]
pub fn ccctl_01_ccupd_immediately (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCUPD_A :: CCCTL_01_CCUPD_IMMEDIATELY) } # [doc = "ZERO_EVT"]
# [inline (always)]
pub fn ccctl_01_ccupd_zero_evt (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCUPD_A :: CCCTL_01_CCUPD_ZERO_EVT) } # [doc = "COMPARE_DOWN_EVT"]
# [inline (always)]
pub fn ccctl_01_ccupd_compare_down_evt (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCUPD_A :: CCCTL_01_CCUPD_COMPARE_DOWN_EVT) } # [doc = "COMPARE_UP_EVT"]
# [inline (always)]
pub fn ccctl_01_ccupd_compare_up_evt (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCUPD_A :: CCCTL_01_CCUPD_COMPARE_UP_EVT) } # [doc = "ZERO_LOAD_EVT"]
# [inline (always)]
pub fn ccctl_01_ccupd_zero_load_evt (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCUPD_A :: CCCTL_01_CCUPD_ZERO_LOAD_EVT) } # [doc = "ZERO_RC_ZERO_EVT"]
# [inline (always)]
pub fn ccctl_01_ccupd_zero_rc_zero_evt (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCUPD_A :: CCCTL_01_CCUPD_ZERO_RC_ZERO_EVT) } # [doc = "TRIG"]
# [inline (always)]
pub fn ccctl_01_ccupd_trig (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCUPD_A :: CCCTL_01_CCUPD_TRIG) } } # [doc = "Field `CCCTL_01_CC2SELU` reader - Selects the source second CCU event."]
pub type CCCTL_01_CC2SELU_R = crate :: FieldReader < CCCTL_01_CC2SELU_A > ; # [doc = "Selects the source second CCU event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCCTL_01_CC2SELU_A { # [doc = "0: SEL_CCU0"]
CCCTL_01_CC2SELU_SEL_CCU0 = 0 , # [doc = "1: SEL_CCU1"]
CCCTL_01_CC2SELU_SEL_CCU1 = 1 , # [doc = "2: SEL_CCU2"]
CCCTL_01_CC2SELU_SEL_CCU2 = 2 , # [doc = "3: SEL_CCU3"]
CCCTL_01_CC2SELU_SEL_CCU3 = 3 , # [doc = "4: SEL_CCU4"]
CCCTL_01_CC2SELU_SEL_CCU4 = 4 , # [doc = "5: SEL_CCU5"]
CCCTL_01_CC2SELU_SEL_CCU5 = 5 , } impl From < CCCTL_01_CC2SELU_A > for u8 { # [inline (always)]
fn from (variant : CCCTL_01_CC2SELU_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCCTL_01_CC2SELU_A { type Ux = u8 ; } impl CCCTL_01_CC2SELU_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCCTL_01_CC2SELU_A > { match self . bits { 0 => Some (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU0) , 1 => Some (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU1) , 2 => Some (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU2) , 3 => Some (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU3) , 4 => Some (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU4) , 5 => Some (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU5) , _ => None , } } # [doc = "SEL_CCU0"]
# [inline (always)]
pub fn is_ccctl_01_cc2selu_sel_ccu0 (& self) -> bool { * self == CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU0 } # [doc = "SEL_CCU1"]
# [inline (always)]
pub fn is_ccctl_01_cc2selu_sel_ccu1 (& self) -> bool { * self == CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU1 } # [doc = "SEL_CCU2"]
# [inline (always)]
pub fn is_ccctl_01_cc2selu_sel_ccu2 (& self) -> bool { * self == CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU2 } # [doc = "SEL_CCU3"]
# [inline (always)]
pub fn is_ccctl_01_cc2selu_sel_ccu3 (& self) -> bool { * self == CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU3 } # [doc = "SEL_CCU4"]
# [inline (always)]
pub fn is_ccctl_01_cc2selu_sel_ccu4 (& self) -> bool { * self == CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU4 } # [doc = "SEL_CCU5"]
# [inline (always)]
pub fn is_ccctl_01_cc2selu_sel_ccu5 (& self) -> bool { * self == CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU5 } } # [doc = "Field `CCCTL_01_CC2SELU` writer - Selects the source second CCU event."]
pub type CCCTL_01_CC2SELU_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CCCTL_01_CC2SELU_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_CC2SELU_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "SEL_CCU0"]
# [inline (always)]
pub fn ccctl_01_cc2selu_sel_ccu0 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU0) } # [doc = "SEL_CCU1"]
# [inline (always)]
pub fn ccctl_01_cc2selu_sel_ccu1 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU1) } # [doc = "SEL_CCU2"]
# [inline (always)]
pub fn ccctl_01_cc2selu_sel_ccu2 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU2) } # [doc = "SEL_CCU3"]
# [inline (always)]
pub fn ccctl_01_cc2selu_sel_ccu3 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU3) } # [doc = "SEL_CCU4"]
# [inline (always)]
pub fn ccctl_01_cc2selu_sel_ccu4 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU4) } # [doc = "SEL_CCU5"]
# [inline (always)]
pub fn ccctl_01_cc2selu_sel_ccu5 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU5) } } # [doc = "Field `CCCTL_01_CCACTUPD` reader - CCACT shadow register Update Method This field controls how updates to the CCCACT shadow register are performed"]
pub type CCCTL_01_CCACTUPD_R = crate :: FieldReader < CCCTL_01_CCACTUPD_A > ; # [doc = "CCACT shadow register Update Method This field controls how updates to the CCCACT shadow register are performed\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCCTL_01_CCACTUPD_A { # [doc = "0: IMMEDIATELY"]
CCCTL_01_CCACTUPD_IMMEDIATELY = 0 , # [doc = "1: ZERO_EVT"]
CCCTL_01_CCACTUPD_ZERO_EVT = 1 , # [doc = "2: COMPARE_DOWN_EVT"]
CCCTL_01_CCACTUPD_COMPARE_DOWN_EVT = 2 , # [doc = "3: COMPARE_UP_EVT"]
CCCTL_01_CCACTUPD_COMPARE_UP_EVT = 3 , # [doc = "4: ZERO_LOAD_EVT"]
CCCTL_01_CCACTUPD_ZERO_LOAD_EVT = 4 , # [doc = "5: ZERO_RC_ZERO_EVT"]
CCCTL_01_CCACTUPD_ZERO_RC_ZERO_EVT = 5 , # [doc = "6: TRIG"]
CCCTL_01_CCACTUPD_TRIG = 6 , } impl From < CCCTL_01_CCACTUPD_A > for u8 { # [inline (always)]
fn from (variant : CCCTL_01_CCACTUPD_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCCTL_01_CCACTUPD_A { type Ux = u8 ; } impl CCCTL_01_CCACTUPD_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCCTL_01_CCACTUPD_A > { match self . bits { 0 => Some (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_IMMEDIATELY) , 1 => Some (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_EVT) , 2 => Some (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_COMPARE_DOWN_EVT) , 3 => Some (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_COMPARE_UP_EVT) , 4 => Some (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_LOAD_EVT) , 5 => Some (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_RC_ZERO_EVT) , 6 => Some (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_TRIG) , _ => None , } } # [doc = "IMMEDIATELY"]
# [inline (always)]
pub fn is_ccctl_01_ccactupd_immediately (& self) -> bool { * self == CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_IMMEDIATELY } # [doc = "ZERO_EVT"]
# [inline (always)]
pub fn is_ccctl_01_ccactupd_zero_evt (& self) -> bool { * self == CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_EVT } # [doc = "COMPARE_DOWN_EVT"]
# [inline (always)]
pub fn is_ccctl_01_ccactupd_compare_down_evt (& self) -> bool { * self == CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_COMPARE_DOWN_EVT } # [doc = "COMPARE_UP_EVT"]
# [inline (always)]
pub fn is_ccctl_01_ccactupd_compare_up_evt (& self) -> bool { * self == CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_COMPARE_UP_EVT } # [doc = "ZERO_LOAD_EVT"]
# [inline (always)]
pub fn is_ccctl_01_ccactupd_zero_load_evt (& self) -> bool { * self == CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_LOAD_EVT } # [doc = "ZERO_RC_ZERO_EVT"]
# [inline (always)]
pub fn is_ccctl_01_ccactupd_zero_rc_zero_evt (& self) -> bool { * self == CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_RC_ZERO_EVT } # [doc = "TRIG"]
# [inline (always)]
pub fn is_ccctl_01_ccactupd_trig (& self) -> bool { * self == CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_TRIG } } # [doc = "Field `CCCTL_01_CCACTUPD` writer - CCACT shadow register Update Method This field controls how updates to the CCCACT shadow register are performed"]
pub type CCCTL_01_CCACTUPD_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CCCTL_01_CCACTUPD_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_CCACTUPD_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "IMMEDIATELY"]
# [inline (always)]
pub fn ccctl_01_ccactupd_immediately (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_IMMEDIATELY) } # [doc = "ZERO_EVT"]
# [inline (always)]
pub fn ccctl_01_ccactupd_zero_evt (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_EVT) } # [doc = "COMPARE_DOWN_EVT"]
# [inline (always)]
pub fn ccctl_01_ccactupd_compare_down_evt (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_COMPARE_DOWN_EVT) } # [doc = "COMPARE_UP_EVT"]
# [inline (always)]
pub fn ccctl_01_ccactupd_compare_up_evt (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_COMPARE_UP_EVT) } # [doc = "ZERO_LOAD_EVT"]
# [inline (always)]
pub fn ccctl_01_ccactupd_zero_load_evt (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_LOAD_EVT) } # [doc = "ZERO_RC_ZERO_EVT"]
# [inline (always)]
pub fn ccctl_01_ccactupd_zero_rc_zero_evt (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_RC_ZERO_EVT) } # [doc = "TRIG"]
# [inline (always)]
pub fn ccctl_01_ccactupd_trig (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_TRIG) } } # [doc = "Field `CCCTL_01_CC2SELD` reader - Selects the source second CCD event."]
pub type CCCTL_01_CC2SELD_R = crate :: FieldReader < CCCTL_01_CC2SELD_A > ; # [doc = "Selects the source second CCD event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCCTL_01_CC2SELD_A { # [doc = "0: SEL_CCD0"]
CCCTL_01_CC2SELD_SEL_CCD0 = 0 , # [doc = "1: SEL_CCD1"]
CCCTL_01_CC2SELD_SEL_CCD1 = 1 , # [doc = "2: SEL_CCD2"]
CCCTL_01_CC2SELD_SEL_CCD2 = 2 , # [doc = "3: SEL_CCD3"]
CCCTL_01_CC2SELD_SEL_CCD3 = 3 , # [doc = "4: SEL_CCD4"]
CCCTL_01_CC2SELD_SEL_CCD4 = 4 , # [doc = "5: SEL_CCD5"]
CCCTL_01_CC2SELD_SEL_CCD5 = 5 , } impl From < CCCTL_01_CC2SELD_A > for u8 { # [inline (always)]
fn from (variant : CCCTL_01_CC2SELD_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCCTL_01_CC2SELD_A { type Ux = u8 ; } impl CCCTL_01_CC2SELD_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCCTL_01_CC2SELD_A > { match self . bits { 0 => Some (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD0) , 1 => Some (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD1) , 2 => Some (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD2) , 3 => Some (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD3) , 4 => Some (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD4) , 5 => Some (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD5) , _ => None , } } # [doc = "SEL_CCD0"]
# [inline (always)]
pub fn is_ccctl_01_cc2seld_sel_ccd0 (& self) -> bool { * self == CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD0 } # [doc = "SEL_CCD1"]
# [inline (always)]
pub fn is_ccctl_01_cc2seld_sel_ccd1 (& self) -> bool { * self == CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD1 } # [doc = "SEL_CCD2"]
# [inline (always)]
pub fn is_ccctl_01_cc2seld_sel_ccd2 (& self) -> bool { * self == CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD2 } # [doc = "SEL_CCD3"]
# [inline (always)]
pub fn is_ccctl_01_cc2seld_sel_ccd3 (& self) -> bool { * self == CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD3 } # [doc = "SEL_CCD4"]
# [inline (always)]
pub fn is_ccctl_01_cc2seld_sel_ccd4 (& self) -> bool { * self == CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD4 } # [doc = "SEL_CCD5"]
# [inline (always)]
pub fn is_ccctl_01_cc2seld_sel_ccd5 (& self) -> bool { * self == CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD5 } } # [doc = "Field `CCCTL_01_CC2SELD` writer - Selects the source second CCD event."]
pub type CCCTL_01_CC2SELD_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CCCTL_01_CC2SELD_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_CC2SELD_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "SEL_CCD0"]
# [inline (always)]
pub fn ccctl_01_cc2seld_sel_ccd0 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD0) } # [doc = "SEL_CCD1"]
# [inline (always)]
pub fn ccctl_01_cc2seld_sel_ccd1 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD1) } # [doc = "SEL_CCD2"]
# [inline (always)]
pub fn ccctl_01_cc2seld_sel_ccd2 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD2) } # [doc = "SEL_CCD3"]
# [inline (always)]
pub fn ccctl_01_cc2seld_sel_ccd3 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD3) } # [doc = "SEL_CCD4"]
# [inline (always)]
pub fn ccctl_01_cc2seld_sel_ccd4 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD4) } # [doc = "SEL_CCD5"]
# [inline (always)]
pub fn ccctl_01_cc2seld_sel_ccd5 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD5) } } impl R { # [doc = "Bits 0:2 - Capture Condition. #br# Specifies the condition that generates a capture pulse. 4h-Fh = Reserved"]
# [inline (always)]
pub fn ccctl_01_ccond (& self) -> CCCTL_01_CCOND_R { CCCTL_01_CCOND_R :: new ((self . bits & 7) as u8) } # [doc = "Bits 4:6 - Advance Condition. #br# Specifies the condition that generates an advance pulse. 6h-Fh = Reserved"]
# [inline (always)]
pub fn ccctl_01_acond (& self) -> CCCTL_01_ACOND_R { CCCTL_01_ACOND_R :: new (((self . bits >> 4) & 7) as u8) } # [doc = "Bits 8:10 - Load Condition. #br# Specifies the condition that generates a load pulse. 4h-Fh = Reserved"]
# [inline (always)]
pub fn ccctl_01_lcond (& self) -> CCCTL_01_LCOND_R { CCCTL_01_LCOND_R :: new (((self . bits >> 8) & 7) as u8) } # [doc = "Bits 12:14 - Zero Condition. #br# This field specifies the condition that generates a zero pulse. 4h-Fh = Reserved"]
# [inline (always)]
pub fn ccctl_01_zcond (& self) -> CCCTL_01_ZCOND_R { CCCTL_01_ZCOND_R :: new (((self . bits >> 12) & 7) as u8) } # [doc = "Bit 17 - Capture or Compare. #br# Specifies whether the corresponding CC register is used as a capture register or a compare register (never both)."]
# [inline (always)]
pub fn ccctl_01_coc (& self) -> CCCTL_01_COC_R { CCCTL_01_COC_R :: new (((self . bits >> 17) & 1) != 0) } # [doc = "Bits 18:20 - Capture and Compare Update Method This field controls how updates to the pipelined capture and compare register are performed (when operating in compare mode, COC=0)."]
# [inline (always)]
pub fn ccctl_01_ccupd (& self) -> CCCTL_01_CCUPD_R { CCCTL_01_CCUPD_R :: new (((self . bits >> 18) & 7) as u8) } # [doc = "Bits 22:24 - Selects the source second CCU event."]
# [inline (always)]
pub fn ccctl_01_cc2selu (& self) -> CCCTL_01_CC2SELU_R { CCCTL_01_CC2SELU_R :: new (((self . bits >> 22) & 7) as u8) } # [doc = "Bits 26:28 - CCACT shadow register Update Method This field controls how updates to the CCCACT shadow register are performed"]
# [inline (always)]
pub fn ccctl_01_ccactupd (& self) -> CCCTL_01_CCACTUPD_R { CCCTL_01_CCACTUPD_R :: new (((self . bits >> 26) & 7) as u8) } # [doc = "Bits 29:31 - Selects the source second CCD event."]
# [inline (always)]
pub fn ccctl_01_cc2seld (& self) -> CCCTL_01_CC2SELD_R { CCCTL_01_CC2SELD_R :: new (((self . bits >> 29) & 7) as u8) } } impl W { # [doc = "Bits 0:2 - Capture Condition. #br# Specifies the condition that generates a capture pulse. 4h-Fh = Reserved"]
# [inline (always)]
# [must_use]
pub fn ccctl_01_ccond (& mut self) -> CCCTL_01_CCOND_W < CCCTL_01_SPEC , 0 > { CCCTL_01_CCOND_W :: new (self) } # [doc = "Bits 4:6 - Advance Condition. #br# Specifies the condition that generates an advance pulse. 6h-Fh = Reserved"]
# [inline (always)]
# [must_use]
pub fn ccctl_01_acond (& mut self) -> CCCTL_01_ACOND_W < CCCTL_01_SPEC , 4 > { CCCTL_01_ACOND_W :: new (self) } # [doc = "Bits 8:10 - Load Condition. #br# Specifies the condition that generates a load pulse. 4h-Fh = Reserved"]
# [inline (always)]
# [must_use]
pub fn ccctl_01_lcond (& mut self) -> CCCTL_01_LCOND_W < CCCTL_01_SPEC , 8 > { CCCTL_01_LCOND_W :: new (self) } # [doc = "Bits 12:14 - Zero Condition. #br# This field specifies the condition that generates a zero pulse. 4h-Fh = Reserved"]
# [inline (always)]
# [must_use]
pub fn ccctl_01_zcond (& mut self) -> CCCTL_01_ZCOND_W < CCCTL_01_SPEC , 12 > { CCCTL_01_ZCOND_W :: new (self) } # [doc = "Bit 17 - Capture or Compare. #br# Specifies whether the corresponding CC register is used as a capture register or a compare register (never both)."]
# [inline (always)]
# [must_use]
pub fn ccctl_01_coc (& mut self) -> CCCTL_01_COC_W < CCCTL_01_SPEC , 17 > { CCCTL_01_COC_W :: new (self) } # [doc = "Bits 18:20 - Capture and Compare Update Method This field controls how updates to the pipelined capture and compare register are performed (when operating in compare mode, COC=0)."]
# [inline (always)]
# [must_use]
pub fn ccctl_01_ccupd (& mut self) -> CCCTL_01_CCUPD_W < CCCTL_01_SPEC , 18 > { CCCTL_01_CCUPD_W :: new (self) } # [doc = "Bits 22:24 - Selects the source second CCU event."]
# [inline (always)]
# [must_use]
pub fn ccctl_01_cc2selu (& mut self) -> CCCTL_01_CC2SELU_W < CCCTL_01_SPEC , 22 > { CCCTL_01_CC2SELU_W :: new (self) } # [doc = "Bits 26:28 - CCACT shadow register Update Method This field controls how updates to the CCCACT shadow register are performed"]
# [inline (always)]
# [must_use]
pub fn ccctl_01_ccactupd (& mut self) -> CCCTL_01_CCACTUPD_W < CCCTL_01_SPEC , 26 > { CCCTL_01_CCACTUPD_W :: new (self) } # [doc = "Bits 29:31 - Selects the source second CCD event."]
# [inline (always)]
# [must_use]
pub fn ccctl_01_cc2seld (& mut self) -> CCCTL_01_CC2SELD_W < CCCTL_01_SPEC , 29 > { CCCTL_01_CC2SELD_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Capture or Compare Control Registers\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ccctl_01::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ccctl_01::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CCCTL_01_SPEC ; impl crate :: RegisterSpec for CCCTL_01_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ccctl_01::R`](R) reader structure"]
impl crate :: Readable for CCCTL_01_SPEC { } # [doc = "`write(|w| ..)` method takes [`ccctl_01::W`](W) writer structure"]
impl crate :: Writable for CCCTL_01_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CCCTL_01[%s]
to value 0"]
impl crate :: Resettable for CCCTL_01_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "OCTL_01 (rw) register accessor: CCP Output Control Registers\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`octl_01::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`octl_01::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@octl_01`]
module"]
pub type OCTL_01 = crate :: Reg < octl_01 :: OCTL_01_SPEC > ; # [doc = "CCP Output Control Registers"]
pub mod octl_01 { # [doc = "Register `OCTL_01[%s]` reader"]
pub type R = crate :: R < OCTL_01_SPEC > ; # [doc = "Register `OCTL_01[%s]` writer"]
pub type W = crate :: W < OCTL_01_SPEC > ; # [doc = "Field `OCTL_01_CCPO` reader - CCP Output Source"]
pub type OCTL_01_CCPO_R = crate :: FieldReader < OCTL_01_CCPO_A > ; # [doc = "CCP Output Source\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum OCTL_01_CCPO_A { # [doc = "0: FUNCVAL"]
OCTL_01_CCPO_FUNCVAL = 0 , # [doc = "1: LOAD"]
OCTL_01_CCPO_LOAD = 1 , # [doc = "2: CMPVAL"]
OCTL_01_CCPO_CMPVAL = 2 , # [doc = "4: ZERO"]
OCTL_01_CCPO_ZERO = 4 , # [doc = "5: CAPCOND"]
OCTL_01_CCPO_CAPCOND = 5 , # [doc = "6: FAULTCOND"]
OCTL_01_CCPO_FAULTCOND = 6 , # [doc = "8: CC0_MIRROR_ALL"]
OCTL_01_CCPO_CC0_MIRROR_ALL = 8 , # [doc = "9: CC1_MIRROR_ALL"]
OCTL_01_CCPO_CC1_MIRROR_ALL = 9 , # [doc = "12: DEADBAND"]
OCTL_01_CCPO_DEADBAND = 12 , # [doc = "13: CNTDIR"]
OCTL_01_CCPO_CNTDIR = 13 , } impl From < OCTL_01_CCPO_A > for u8 { # [inline (always)]
fn from (variant : OCTL_01_CCPO_A) -> Self { variant as _ } } impl crate :: FieldSpec for OCTL_01_CCPO_A { type Ux = u8 ; } impl OCTL_01_CCPO_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < OCTL_01_CCPO_A > { match self . bits { 0 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_FUNCVAL) , 1 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_LOAD) , 2 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_CMPVAL) , 4 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_ZERO) , 5 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_CAPCOND) , 6 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_FAULTCOND) , 8 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_CC0_MIRROR_ALL) , 9 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_CC1_MIRROR_ALL) , 12 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_DEADBAND) , 13 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_CNTDIR) , _ => None , } } # [doc = "FUNCVAL"]
# [inline (always)]
pub fn is_octl_01_ccpo_funcval (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_FUNCVAL } # [doc = "LOAD"]
# [inline (always)]
pub fn is_octl_01_ccpo_load (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_LOAD } # [doc = "CMPVAL"]
# [inline (always)]
pub fn is_octl_01_ccpo_cmpval (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_CMPVAL } # [doc = "ZERO"]
# [inline (always)]
pub fn is_octl_01_ccpo_zero (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_ZERO } # [doc = "CAPCOND"]
# [inline (always)]
pub fn is_octl_01_ccpo_capcond (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_CAPCOND } # [doc = "FAULTCOND"]
# [inline (always)]
pub fn is_octl_01_ccpo_faultcond (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_FAULTCOND } # [doc = "CC0_MIRROR_ALL"]
# [inline (always)]
pub fn is_octl_01_ccpo_cc0_mirror_all (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_CC0_MIRROR_ALL } # [doc = "CC1_MIRROR_ALL"]
# [inline (always)]
pub fn is_octl_01_ccpo_cc1_mirror_all (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_CC1_MIRROR_ALL } # [doc = "DEADBAND"]
# [inline (always)]
pub fn is_octl_01_ccpo_deadband (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_DEADBAND } # [doc = "CNTDIR"]
# [inline (always)]
pub fn is_octl_01_ccpo_cntdir (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_CNTDIR } } # [doc = "Field `OCTL_01_CCPO` writer - CCP Output Source"]
pub type OCTL_01_CCPO_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 4 , O , OCTL_01_CCPO_A > ; impl < 'a , REG , const O : u8 > OCTL_01_CCPO_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "FUNCVAL"]
# [inline (always)]
pub fn octl_01_ccpo_funcval (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_FUNCVAL) } # [doc = "LOAD"]
# [inline (always)]
pub fn octl_01_ccpo_load (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_LOAD) } # [doc = "CMPVAL"]
# [inline (always)]
pub fn octl_01_ccpo_cmpval (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_CMPVAL) } # [doc = "ZERO"]
# [inline (always)]
pub fn octl_01_ccpo_zero (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_ZERO) } # [doc = "CAPCOND"]
# [inline (always)]
pub fn octl_01_ccpo_capcond (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_CAPCOND) } # [doc = "FAULTCOND"]
# [inline (always)]
pub fn octl_01_ccpo_faultcond (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_FAULTCOND) } # [doc = "CC0_MIRROR_ALL"]
# [inline (always)]
pub fn octl_01_ccpo_cc0_mirror_all (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_CC0_MIRROR_ALL) } # [doc = "CC1_MIRROR_ALL"]
# [inline (always)]
pub fn octl_01_ccpo_cc1_mirror_all (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_CC1_MIRROR_ALL) } # [doc = "DEADBAND"]
# [inline (always)]
pub fn octl_01_ccpo_deadband (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_DEADBAND) } # [doc = "CNTDIR"]
# [inline (always)]
pub fn octl_01_ccpo_cntdir (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_CNTDIR) } } # [doc = "Field `OCTL_01_CCPOINV` reader - CCP Output Invert The output as selected by CCPO is conditionally inverted."]
pub type OCTL_01_CCPOINV_R = crate :: BitReader < OCTL_01_CCPOINV_A > ; # [doc = "CCP Output Invert The output as selected by CCPO is conditionally inverted.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum OCTL_01_CCPOINV_A { # [doc = "0: NOINV"]
OCTL_01_CCPOINV_NOINV = 0 , # [doc = "1: INV"]
OCTL_01_CCPOINV_INV = 1 , } impl From < OCTL_01_CCPOINV_A > for bool { # [inline (always)]
fn from (variant : OCTL_01_CCPOINV_A) -> Self { variant as u8 != 0 } } impl OCTL_01_CCPOINV_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> OCTL_01_CCPOINV_A { match self . bits { false => OCTL_01_CCPOINV_A :: OCTL_01_CCPOINV_NOINV , true => OCTL_01_CCPOINV_A :: OCTL_01_CCPOINV_INV , } } # [doc = "NOINV"]
# [inline (always)]
pub fn is_octl_01_ccpoinv_noinv (& self) -> bool { * self == OCTL_01_CCPOINV_A :: OCTL_01_CCPOINV_NOINV } # [doc = "INV"]
# [inline (always)]
pub fn is_octl_01_ccpoinv_inv (& self) -> bool { * self == OCTL_01_CCPOINV_A :: OCTL_01_CCPOINV_INV } } # [doc = "Field `OCTL_01_CCPOINV` writer - CCP Output Invert The output as selected by CCPO is conditionally inverted."]
pub type OCTL_01_CCPOINV_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , OCTL_01_CCPOINV_A > ; impl < 'a , REG , const O : u8 > OCTL_01_CCPOINV_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOINV"]
# [inline (always)]
pub fn octl_01_ccpoinv_noinv (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPOINV_A :: OCTL_01_CCPOINV_NOINV) } # [doc = "INV"]
# [inline (always)]
pub fn octl_01_ccpoinv_inv (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPOINV_A :: OCTL_01_CCPOINV_INV) } } # [doc = "Field `OCTL_01_CCPIV` reader - CCP Initial Value This bit specifies the logical value put on the signal generator state while the counter is disabled (CTRCTL.EN == 0)."]
pub type OCTL_01_CCPIV_R = crate :: BitReader < OCTL_01_CCPIV_A > ; # [doc = "CCP Initial Value This bit specifies the logical value put on the signal generator state while the counter is disabled (CTRCTL.EN == 0).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum OCTL_01_CCPIV_A { # [doc = "0: LOW"]
OCTL_01_CCPIV_LOW = 0 , # [doc = "1: HIGH"]
OCTL_01_CCPIV_HIGH = 1 , } impl From < OCTL_01_CCPIV_A > for bool { # [inline (always)]
fn from (variant : OCTL_01_CCPIV_A) -> Self { variant as u8 != 0 } } impl OCTL_01_CCPIV_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> OCTL_01_CCPIV_A { match self . bits { false => OCTL_01_CCPIV_A :: OCTL_01_CCPIV_LOW , true => OCTL_01_CCPIV_A :: OCTL_01_CCPIV_HIGH , } } # [doc = "LOW"]
# [inline (always)]
pub fn is_octl_01_ccpiv_low (& self) -> bool { * self == OCTL_01_CCPIV_A :: OCTL_01_CCPIV_LOW } # [doc = "HIGH"]
# [inline (always)]
pub fn is_octl_01_ccpiv_high (& self) -> bool { * self == OCTL_01_CCPIV_A :: OCTL_01_CCPIV_HIGH } } # [doc = "Field `OCTL_01_CCPIV` writer - CCP Initial Value This bit specifies the logical value put on the signal generator state while the counter is disabled (CTRCTL.EN == 0)."]
pub type OCTL_01_CCPIV_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , OCTL_01_CCPIV_A > ; impl < 'a , REG , const O : u8 > OCTL_01_CCPIV_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "LOW"]
# [inline (always)]
pub fn octl_01_ccpiv_low (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPIV_A :: OCTL_01_CCPIV_LOW) } # [doc = "HIGH"]
# [inline (always)]
pub fn octl_01_ccpiv_high (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPIV_A :: OCTL_01_CCPIV_HIGH) } } impl R { # [doc = "Bits 0:3 - CCP Output Source"]
# [inline (always)]
pub fn octl_01_ccpo (& self) -> OCTL_01_CCPO_R { OCTL_01_CCPO_R :: new ((self . bits & 0x0f) as u8) } # [doc = "Bit 4 - CCP Output Invert The output as selected by CCPO is conditionally inverted."]
# [inline (always)]
pub fn octl_01_ccpoinv (& self) -> OCTL_01_CCPOINV_R { OCTL_01_CCPOINV_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - CCP Initial Value This bit specifies the logical value put on the signal generator state while the counter is disabled (CTRCTL.EN == 0)."]
# [inline (always)]
pub fn octl_01_ccpiv (& self) -> OCTL_01_CCPIV_R { OCTL_01_CCPIV_R :: new (((self . bits >> 5) & 1) != 0) } } impl W { # [doc = "Bits 0:3 - CCP Output Source"]
# [inline (always)]
# [must_use]
pub fn octl_01_ccpo (& mut self) -> OCTL_01_CCPO_W < OCTL_01_SPEC , 0 > { OCTL_01_CCPO_W :: new (self) } # [doc = "Bit 4 - CCP Output Invert The output as selected by CCPO is conditionally inverted."]
# [inline (always)]
# [must_use]
pub fn octl_01_ccpoinv (& mut self) -> OCTL_01_CCPOINV_W < OCTL_01_SPEC , 4 > { OCTL_01_CCPOINV_W :: new (self) } # [doc = "Bit 5 - CCP Initial Value This bit specifies the logical value put on the signal generator state while the counter is disabled (CTRCTL.EN == 0)."]
# [inline (always)]
# [must_use]
pub fn octl_01_ccpiv (& mut self) -> OCTL_01_CCPIV_W < OCTL_01_SPEC , 5 > { OCTL_01_CCPIV_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "CCP Output Control Registers\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`octl_01::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`octl_01::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct OCTL_01_SPEC ; impl crate :: RegisterSpec for OCTL_01_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`octl_01::R`](R) reader structure"]
impl crate :: Readable for OCTL_01_SPEC { } # [doc = "`write(|w| ..)` method takes [`octl_01::W`](W) writer structure"]
impl crate :: Writable for OCTL_01_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets OCTL_01[%s]
to value 0"]
impl crate :: Resettable for OCTL_01_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CCACT_01 (rw) register accessor: Capture or Compare Action Registers\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ccact_01::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ccact_01::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccact_01`]
module"]
pub type CCACT_01 = crate :: Reg < ccact_01 :: CCACT_01_SPEC > ; # [doc = "Capture or Compare Action Registers"]
pub mod ccact_01 { # [doc = "Register `CCACT_01[%s]` reader"]
pub type R = crate :: R < CCACT_01_SPEC > ; # [doc = "Register `CCACT_01[%s]` writer"]
pub type W = crate :: W < CCACT_01_SPEC > ; # [doc = "Field `CCACT_01_ZACT` reader - CCP Output Action on Zero Specifies what changes occur to CCP output as the result of a zero event."]
pub type CCACT_01_ZACT_R = crate :: FieldReader < CCACT_01_ZACT_A > ; # [doc = "CCP Output Action on Zero Specifies what changes occur to CCP output as the result of a zero event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCACT_01_ZACT_A { # [doc = "0: DISABLED"]
CCACT_01_ZACT_DISABLED = 0 , # [doc = "1: CCP_HIGH"]
CCACT_01_ZACT_CCP_HIGH = 1 , # [doc = "2: CCP_LOW"]
CCACT_01_ZACT_CCP_LOW = 2 , # [doc = "3: CCP_TOGGLE"]
CCACT_01_ZACT_CCP_TOGGLE = 3 , } impl From < CCACT_01_ZACT_A > for u8 { # [inline (always)]
fn from (variant : CCACT_01_ZACT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCACT_01_ZACT_A { type Ux = u8 ; } impl CCACT_01_ZACT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCACT_01_ZACT_A { match self . bits { 0 => CCACT_01_ZACT_A :: CCACT_01_ZACT_DISABLED , 1 => CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_HIGH , 2 => CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_LOW , 3 => CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_TOGGLE , _ => unreachable ! () , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ccact_01_zact_disabled (& self) -> bool { * self == CCACT_01_ZACT_A :: CCACT_01_ZACT_DISABLED } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn is_ccact_01_zact_ccp_high (& self) -> bool { * self == CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_HIGH } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn is_ccact_01_zact_ccp_low (& self) -> bool { * self == CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_LOW } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn is_ccact_01_zact_ccp_toggle (& self) -> bool { * self == CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_TOGGLE } } # [doc = "Field `CCACT_01_ZACT` writer - CCP Output Action on Zero Specifies what changes occur to CCP output as the result of a zero event."]
pub type CCACT_01_ZACT_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , CCACT_01_ZACT_A > ; impl < 'a , REG , const O : u8 > CCACT_01_ZACT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLED"]
# [inline (always)]
pub fn ccact_01_zact_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_ZACT_A :: CCACT_01_ZACT_DISABLED) } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn ccact_01_zact_ccp_high (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_HIGH) } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn ccact_01_zact_ccp_low (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_LOW) } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn ccact_01_zact_ccp_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_TOGGLE) } } # [doc = "Field `CCACT_01_LACT` reader - CCP Output Action on Load Specifies what changes occur to CCP output as the result of a load event."]
pub type CCACT_01_LACT_R = crate :: FieldReader < CCACT_01_LACT_A > ; # [doc = "CCP Output Action on Load Specifies what changes occur to CCP output as the result of a load event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCACT_01_LACT_A { # [doc = "0: DISABLED"]
CCACT_01_LACT_DISABLED = 0 , # [doc = "1: CCP_HIGH"]
CCACT_01_LACT_CCP_HIGH = 1 , # [doc = "2: CCP_LOW"]
CCACT_01_LACT_CCP_LOW = 2 , # [doc = "3: CCP_TOGGLE"]
CCACT_01_LACT_CCP_TOGGLE = 3 , } impl From < CCACT_01_LACT_A > for u8 { # [inline (always)]
fn from (variant : CCACT_01_LACT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCACT_01_LACT_A { type Ux = u8 ; } impl CCACT_01_LACT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCACT_01_LACT_A { match self . bits { 0 => CCACT_01_LACT_A :: CCACT_01_LACT_DISABLED , 1 => CCACT_01_LACT_A :: CCACT_01_LACT_CCP_HIGH , 2 => CCACT_01_LACT_A :: CCACT_01_LACT_CCP_LOW , 3 => CCACT_01_LACT_A :: CCACT_01_LACT_CCP_TOGGLE , _ => unreachable ! () , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ccact_01_lact_disabled (& self) -> bool { * self == CCACT_01_LACT_A :: CCACT_01_LACT_DISABLED } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn is_ccact_01_lact_ccp_high (& self) -> bool { * self == CCACT_01_LACT_A :: CCACT_01_LACT_CCP_HIGH } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn is_ccact_01_lact_ccp_low (& self) -> bool { * self == CCACT_01_LACT_A :: CCACT_01_LACT_CCP_LOW } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn is_ccact_01_lact_ccp_toggle (& self) -> bool { * self == CCACT_01_LACT_A :: CCACT_01_LACT_CCP_TOGGLE } } # [doc = "Field `CCACT_01_LACT` writer - CCP Output Action on Load Specifies what changes occur to CCP output as the result of a load event."]
pub type CCACT_01_LACT_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , CCACT_01_LACT_A > ; impl < 'a , REG , const O : u8 > CCACT_01_LACT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLED"]
# [inline (always)]
pub fn ccact_01_lact_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_LACT_A :: CCACT_01_LACT_DISABLED) } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn ccact_01_lact_ccp_high (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_LACT_A :: CCACT_01_LACT_CCP_HIGH) } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn ccact_01_lact_ccp_low (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_LACT_A :: CCACT_01_LACT_CCP_LOW) } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn ccact_01_lact_ccp_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_LACT_A :: CCACT_01_LACT_CCP_TOGGLE) } } # [doc = "Field `CCACT_01_CDACT` reader - CCP Output Action on Compare (Down) This field describes the resulting action of the signal generator upon detecting a compare event while counting down."]
pub type CCACT_01_CDACT_R = crate :: FieldReader < CCACT_01_CDACT_A > ; # [doc = "CCP Output Action on Compare (Down) This field describes the resulting action of the signal generator upon detecting a compare event while counting down.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCACT_01_CDACT_A { # [doc = "0: DISABLED"]
CCACT_01_CDACT_DISABLED = 0 , # [doc = "1: CCP_HIGH"]
CCACT_01_CDACT_CCP_HIGH = 1 , # [doc = "2: CCP_LOW"]
CCACT_01_CDACT_CCP_LOW = 2 , # [doc = "3: CCP_TOGGLE"]
CCACT_01_CDACT_CCP_TOGGLE = 3 , } impl From < CCACT_01_CDACT_A > for u8 { # [inline (always)]
fn from (variant : CCACT_01_CDACT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCACT_01_CDACT_A { type Ux = u8 ; } impl CCACT_01_CDACT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCACT_01_CDACT_A { match self . bits { 0 => CCACT_01_CDACT_A :: CCACT_01_CDACT_DISABLED , 1 => CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_HIGH , 2 => CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_LOW , 3 => CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_TOGGLE , _ => unreachable ! () , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ccact_01_cdact_disabled (& self) -> bool { * self == CCACT_01_CDACT_A :: CCACT_01_CDACT_DISABLED } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn is_ccact_01_cdact_ccp_high (& self) -> bool { * self == CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_HIGH } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn is_ccact_01_cdact_ccp_low (& self) -> bool { * self == CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_LOW } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn is_ccact_01_cdact_ccp_toggle (& self) -> bool { * self == CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_TOGGLE } } # [doc = "Field `CCACT_01_CDACT` writer - CCP Output Action on Compare (Down) This field describes the resulting action of the signal generator upon detecting a compare event while counting down."]
pub type CCACT_01_CDACT_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , CCACT_01_CDACT_A > ; impl < 'a , REG , const O : u8 > CCACT_01_CDACT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLED"]
# [inline (always)]
pub fn ccact_01_cdact_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CDACT_A :: CCACT_01_CDACT_DISABLED) } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn ccact_01_cdact_ccp_high (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_HIGH) } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn ccact_01_cdact_ccp_low (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_LOW) } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn ccact_01_cdact_ccp_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_TOGGLE) } } # [doc = "Field `CCACT_01_CUACT` reader - CCP Output Action on Compare (Up) This field describes the resulting action of the signal generator upon detecting a compare event while counting up."]
pub type CCACT_01_CUACT_R = crate :: FieldReader < CCACT_01_CUACT_A > ; # [doc = "CCP Output Action on Compare (Up) This field describes the resulting action of the signal generator upon detecting a compare event while counting up.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCACT_01_CUACT_A { # [doc = "0: DISABLED"]
CCACT_01_CUACT_DISABLED = 0 , # [doc = "1: CCP_HIGH"]
CCACT_01_CUACT_CCP_HIGH = 1 , # [doc = "2: CCP_LOW"]
CCACT_01_CUACT_CCP_LOW = 2 , # [doc = "3: CCP_TOGGLE"]
CCACT_01_CUACT_CCP_TOGGLE = 3 , } impl From < CCACT_01_CUACT_A > for u8 { # [inline (always)]
fn from (variant : CCACT_01_CUACT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCACT_01_CUACT_A { type Ux = u8 ; } impl CCACT_01_CUACT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCACT_01_CUACT_A { match self . bits { 0 => CCACT_01_CUACT_A :: CCACT_01_CUACT_DISABLED , 1 => CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_HIGH , 2 => CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_LOW , 3 => CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_TOGGLE , _ => unreachable ! () , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ccact_01_cuact_disabled (& self) -> bool { * self == CCACT_01_CUACT_A :: CCACT_01_CUACT_DISABLED } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn is_ccact_01_cuact_ccp_high (& self) -> bool { * self == CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_HIGH } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn is_ccact_01_cuact_ccp_low (& self) -> bool { * self == CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_LOW } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn is_ccact_01_cuact_ccp_toggle (& self) -> bool { * self == CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_TOGGLE } } # [doc = "Field `CCACT_01_CUACT` writer - CCP Output Action on Compare (Up) This field describes the resulting action of the signal generator upon detecting a compare event while counting up."]
pub type CCACT_01_CUACT_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , CCACT_01_CUACT_A > ; impl < 'a , REG , const O : u8 > CCACT_01_CUACT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLED"]
# [inline (always)]
pub fn ccact_01_cuact_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CUACT_A :: CCACT_01_CUACT_DISABLED) } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn ccact_01_cuact_ccp_high (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_HIGH) } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn ccact_01_cuact_ccp_low (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_LOW) } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn ccact_01_cuact_ccp_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_TOGGLE) } } # [doc = "Field `CCACT_01_CC2DACT` reader - CCP Output Action on CC2D event."]
pub type CCACT_01_CC2DACT_R = crate :: FieldReader < CCACT_01_CC2DACT_A > ; # [doc = "CCP Output Action on CC2D event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCACT_01_CC2DACT_A { # [doc = "0: DISABLED"]
CCACT_01_CC2DACT_DISABLED = 0 , # [doc = "1: CCP_HIGH"]
CCACT_01_CC2DACT_CCP_HIGH = 1 , # [doc = "2: CCP_LOW"]
CCACT_01_CC2DACT_CCP_LOW = 2 , # [doc = "3: CCP_TOGGLE"]
CCACT_01_CC2DACT_CCP_TOGGLE = 3 , } impl From < CCACT_01_CC2DACT_A > for u8 { # [inline (always)]
fn from (variant : CCACT_01_CC2DACT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCACT_01_CC2DACT_A { type Ux = u8 ; } impl CCACT_01_CC2DACT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCACT_01_CC2DACT_A { match self . bits { 0 => CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_DISABLED , 1 => CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_HIGH , 2 => CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_LOW , 3 => CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_TOGGLE , _ => unreachable ! () , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ccact_01_cc2dact_disabled (& self) -> bool { * self == CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_DISABLED } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn is_ccact_01_cc2dact_ccp_high (& self) -> bool { * self == CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_HIGH } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn is_ccact_01_cc2dact_ccp_low (& self) -> bool { * self == CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_LOW } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn is_ccact_01_cc2dact_ccp_toggle (& self) -> bool { * self == CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_TOGGLE } } # [doc = "Field `CCACT_01_CC2DACT` writer - CCP Output Action on CC2D event."]
pub type CCACT_01_CC2DACT_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , CCACT_01_CC2DACT_A > ; impl < 'a , REG , const O : u8 > CCACT_01_CC2DACT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLED"]
# [inline (always)]
pub fn ccact_01_cc2dact_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_DISABLED) } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn ccact_01_cc2dact_ccp_high (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_HIGH) } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn ccact_01_cc2dact_ccp_low (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_LOW) } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn ccact_01_cc2dact_ccp_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_TOGGLE) } } # [doc = "Field `CCACT_01_CC2UACT` reader - CCP Output Action on CC2U event."]
pub type CCACT_01_CC2UACT_R = crate :: FieldReader < CCACT_01_CC2UACT_A > ; # [doc = "CCP Output Action on CC2U event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCACT_01_CC2UACT_A { # [doc = "0: DISABLED"]
CCACT_01_CC2UACT_DISABLED = 0 , # [doc = "1: CCP_HIGH"]
CCACT_01_CC2UACT_CCP_HIGH = 1 , # [doc = "2: CCP_LOW"]
CCACT_01_CC2UACT_CCP_LOW = 2 , # [doc = "3: CCP_TOGGLE"]
CCACT_01_CC2UACT_CCP_TOGGLE = 3 , } impl From < CCACT_01_CC2UACT_A > for u8 { # [inline (always)]
fn from (variant : CCACT_01_CC2UACT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCACT_01_CC2UACT_A { type Ux = u8 ; } impl CCACT_01_CC2UACT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCACT_01_CC2UACT_A { match self . bits { 0 => CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_DISABLED , 1 => CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_HIGH , 2 => CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_LOW , 3 => CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_TOGGLE , _ => unreachable ! () , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ccact_01_cc2uact_disabled (& self) -> bool { * self == CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_DISABLED } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn is_ccact_01_cc2uact_ccp_high (& self) -> bool { * self == CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_HIGH } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn is_ccact_01_cc2uact_ccp_low (& self) -> bool { * self == CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_LOW } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn is_ccact_01_cc2uact_ccp_toggle (& self) -> bool { * self == CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_TOGGLE } } # [doc = "Field `CCACT_01_CC2UACT` writer - CCP Output Action on CC2U event."]
pub type CCACT_01_CC2UACT_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , CCACT_01_CC2UACT_A > ; impl < 'a , REG , const O : u8 > CCACT_01_CC2UACT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLED"]
# [inline (always)]
pub fn ccact_01_cc2uact_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_DISABLED) } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn ccact_01_cc2uact_ccp_high (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_HIGH) } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn ccact_01_cc2uact_ccp_low (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_LOW) } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn ccact_01_cc2uact_ccp_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_TOGGLE) } } # [doc = "Field `CCACT_01_SWFRCACT` reader - CCP Output Action on Software Froce Output This field describes the resulting action of software force. This action has a shadow register, which will be updated under specific condition. So that this register cannot take into effect immediately."]
pub type CCACT_01_SWFRCACT_R = crate :: FieldReader < CCACT_01_SWFRCACT_A > ; # [doc = "CCP Output Action on Software Froce Output This field describes the resulting action of software force. This action has a shadow register, which will be updated under specific condition. So that this register cannot take into effect immediately.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCACT_01_SWFRCACT_A { # [doc = "0: DISABLED"]
CCACT_01_SWFRCACT_DISABLED = 0 , # [doc = "1: CCP_HIGH"]
CCACT_01_SWFRCACT_CCP_HIGH = 1 , # [doc = "2: CCP_LOW"]
CCACT_01_SWFRCACT_CCP_LOW = 2 , } impl From < CCACT_01_SWFRCACT_A > for u8 { # [inline (always)]
fn from (variant : CCACT_01_SWFRCACT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCACT_01_SWFRCACT_A { type Ux = u8 ; } impl CCACT_01_SWFRCACT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCACT_01_SWFRCACT_A > { match self . bits { 0 => Some (CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_DISABLED) , 1 => Some (CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_CCP_HIGH) , 2 => Some (CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_CCP_LOW) , _ => None , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ccact_01_swfrcact_disabled (& self) -> bool { * self == CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_DISABLED } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn is_ccact_01_swfrcact_ccp_high (& self) -> bool { * self == CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_CCP_HIGH } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn is_ccact_01_swfrcact_ccp_low (& self) -> bool { * self == CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_CCP_LOW } } # [doc = "Field `CCACT_01_SWFRCACT` writer - CCP Output Action on Software Froce Output This field describes the resulting action of software force. This action has a shadow register, which will be updated under specific condition. So that this register cannot take into effect immediately."]
pub type CCACT_01_SWFRCACT_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , CCACT_01_SWFRCACT_A > ; impl < 'a , REG , const O : u8 > CCACT_01_SWFRCACT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLED"]
# [inline (always)]
pub fn ccact_01_swfrcact_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_DISABLED) } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn ccact_01_swfrcact_ccp_high (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_CCP_HIGH) } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn ccact_01_swfrcact_ccp_low (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_CCP_LOW) } } impl R { # [doc = "Bits 0:1 - CCP Output Action on Zero Specifies what changes occur to CCP output as the result of a zero event."]
# [inline (always)]
pub fn ccact_01_zact (& self) -> CCACT_01_ZACT_R { CCACT_01_ZACT_R :: new ((self . bits & 3) as u8) } # [doc = "Bits 3:4 - CCP Output Action on Load Specifies what changes occur to CCP output as the result of a load event."]
# [inline (always)]
pub fn ccact_01_lact (& self) -> CCACT_01_LACT_R { CCACT_01_LACT_R :: new (((self . bits >> 3) & 3) as u8) } # [doc = "Bits 6:7 - CCP Output Action on Compare (Down) This field describes the resulting action of the signal generator upon detecting a compare event while counting down."]
# [inline (always)]
pub fn ccact_01_cdact (& self) -> CCACT_01_CDACT_R { CCACT_01_CDACT_R :: new (((self . bits >> 6) & 3) as u8) } # [doc = "Bits 9:10 - CCP Output Action on Compare (Up) This field describes the resulting action of the signal generator upon detecting a compare event while counting up."]
# [inline (always)]
pub fn ccact_01_cuact (& self) -> CCACT_01_CUACT_R { CCACT_01_CUACT_R :: new (((self . bits >> 9) & 3) as u8) } # [doc = "Bits 12:13 - CCP Output Action on CC2D event."]
# [inline (always)]
pub fn ccact_01_cc2dact (& self) -> CCACT_01_CC2DACT_R { CCACT_01_CC2DACT_R :: new (((self . bits >> 12) & 3) as u8) } # [doc = "Bits 15:16 - CCP Output Action on CC2U event."]
# [inline (always)]
pub fn ccact_01_cc2uact (& self) -> CCACT_01_CC2UACT_R { CCACT_01_CC2UACT_R :: new (((self . bits >> 15) & 3) as u8) } # [doc = "Bits 28:29 - CCP Output Action on Software Froce Output This field describes the resulting action of software force. This action has a shadow register, which will be updated under specific condition. So that this register cannot take into effect immediately."]
# [inline (always)]
pub fn ccact_01_swfrcact (& self) -> CCACT_01_SWFRCACT_R { CCACT_01_SWFRCACT_R :: new (((self . bits >> 28) & 3) as u8) } } impl W { # [doc = "Bits 0:1 - CCP Output Action on Zero Specifies what changes occur to CCP output as the result of a zero event."]
# [inline (always)]
# [must_use]
pub fn ccact_01_zact (& mut self) -> CCACT_01_ZACT_W < CCACT_01_SPEC , 0 > { CCACT_01_ZACT_W :: new (self) } # [doc = "Bits 3:4 - CCP Output Action on Load Specifies what changes occur to CCP output as the result of a load event."]
# [inline (always)]
# [must_use]
pub fn ccact_01_lact (& mut self) -> CCACT_01_LACT_W < CCACT_01_SPEC , 3 > { CCACT_01_LACT_W :: new (self) } # [doc = "Bits 6:7 - CCP Output Action on Compare (Down) This field describes the resulting action of the signal generator upon detecting a compare event while counting down."]
# [inline (always)]
# [must_use]
pub fn ccact_01_cdact (& mut self) -> CCACT_01_CDACT_W < CCACT_01_SPEC , 6 > { CCACT_01_CDACT_W :: new (self) } # [doc = "Bits 9:10 - CCP Output Action on Compare (Up) This field describes the resulting action of the signal generator upon detecting a compare event while counting up."]
# [inline (always)]
# [must_use]
pub fn ccact_01_cuact (& mut self) -> CCACT_01_CUACT_W < CCACT_01_SPEC , 9 > { CCACT_01_CUACT_W :: new (self) } # [doc = "Bits 12:13 - CCP Output Action on CC2D event."]
# [inline (always)]
# [must_use]
pub fn ccact_01_cc2dact (& mut self) -> CCACT_01_CC2DACT_W < CCACT_01_SPEC , 12 > { CCACT_01_CC2DACT_W :: new (self) } # [doc = "Bits 15:16 - CCP Output Action on CC2U event."]
# [inline (always)]
# [must_use]
pub fn ccact_01_cc2uact (& mut self) -> CCACT_01_CC2UACT_W < CCACT_01_SPEC , 15 > { CCACT_01_CC2UACT_W :: new (self) } # [doc = "Bits 28:29 - CCP Output Action on Software Froce Output This field describes the resulting action of software force. This action has a shadow register, which will be updated under specific condition. So that this register cannot take into effect immediately."]
# [inline (always)]
# [must_use]
pub fn ccact_01_swfrcact (& mut self) -> CCACT_01_SWFRCACT_W < CCACT_01_SPEC , 28 > { CCACT_01_SWFRCACT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Capture or Compare Action Registers\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ccact_01::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ccact_01::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CCACT_01_SPEC ; impl crate :: RegisterSpec for CCACT_01_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ccact_01::R`](R) reader structure"]
impl crate :: Readable for CCACT_01_SPEC { } # [doc = "`write(|w| ..)` method takes [`ccact_01::W`](W) writer structure"]
impl crate :: Writable for CCACT_01_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CCACT_01[%s]
to value 0"]
impl crate :: Resettable for CCACT_01_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "IFCTL_01 (rw) register accessor: Input Filter Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ifctl_01::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ifctl_01::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ifctl_01`]
module"]
pub type IFCTL_01 = crate :: Reg < ifctl_01 :: IFCTL_01_SPEC > ; # [doc = "Input Filter Control Register"]
pub mod ifctl_01 { # [doc = "Register `IFCTL_01[%s]` reader"]
pub type R = crate :: R < IFCTL_01_SPEC > ; # [doc = "Register `IFCTL_01[%s]` writer"]
pub type W = crate :: W < IFCTL_01_SPEC > ; # [doc = "Field `IFCTL_01_ISEL` reader - Input Select (CCP0) This field selects the input source to the filter input. 4h-7h = Reserved"]
pub type IFCTL_01_ISEL_R = crate :: FieldReader < IFCTL_01_ISEL_A > ; # [doc = "Input Select (CCP0) This field selects the input source to the filter input. 4h-7h = Reserved\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum IFCTL_01_ISEL_A { # [doc = "0: CCPX_INPUT"]
IFCTL_01_ISEL_CCPX_INPUT = 0 , # [doc = "1: CCPX_INPUT_PAIR"]
IFCTL_01_ISEL_CCPX_INPUT_PAIR = 1 , # [doc = "2: CCP0_INPUT"]
IFCTL_01_ISEL_CCP0_INPUT = 2 , # [doc = "3: TRIG_INPUT"]
IFCTL_01_ISEL_TRIG_INPUT = 3 , # [doc = "4: CCP_XOR"]
IFCTL_01_ISEL_CCP_XOR = 4 , # [doc = "5: FSUB0"]
IFCTL_01_ISEL_FSUB0 = 5 , # [doc = "6: FSUB1"]
IFCTL_01_ISEL_FSUB1 = 6 , # [doc = "7: COMP0"]
IFCTL_01_ISEL_COMP0 = 7 , # [doc = "8: COMP1"]
IFCTL_01_ISEL_COMP1 = 8 , # [doc = "9: COMP2"]
IFCTL_01_ISEL_COMP2 = 9 , } impl From < IFCTL_01_ISEL_A > for u8 { # [inline (always)]
fn from (variant : IFCTL_01_ISEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for IFCTL_01_ISEL_A { type Ux = u8 ; } impl IFCTL_01_ISEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < IFCTL_01_ISEL_A > { match self . bits { 0 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCPX_INPUT) , 1 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCPX_INPUT_PAIR) , 2 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCP0_INPUT) , 3 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_TRIG_INPUT) , 4 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCP_XOR) , 5 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_FSUB0) , 6 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_FSUB1) , 7 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP0) , 8 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP1) , 9 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP2) , _ => None , } } # [doc = "CCPX_INPUT"]
# [inline (always)]
pub fn is_ifctl_01_isel_ccpx_input (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCPX_INPUT } # [doc = "CCPX_INPUT_PAIR"]
# [inline (always)]
pub fn is_ifctl_01_isel_ccpx_input_pair (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCPX_INPUT_PAIR } # [doc = "CCP0_INPUT"]
# [inline (always)]
pub fn is_ifctl_01_isel_ccp0_input (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCP0_INPUT } # [doc = "TRIG_INPUT"]
# [inline (always)]
pub fn is_ifctl_01_isel_trig_input (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_TRIG_INPUT } # [doc = "CCP_XOR"]
# [inline (always)]
pub fn is_ifctl_01_isel_ccp_xor (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCP_XOR } # [doc = "FSUB0"]
# [inline (always)]
pub fn is_ifctl_01_isel_fsub0 (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_FSUB0 } # [doc = "FSUB1"]
# [inline (always)]
pub fn is_ifctl_01_isel_fsub1 (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_FSUB1 } # [doc = "COMP0"]
# [inline (always)]
pub fn is_ifctl_01_isel_comp0 (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP0 } # [doc = "COMP1"]
# [inline (always)]
pub fn is_ifctl_01_isel_comp1 (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP1 } # [doc = "COMP2"]
# [inline (always)]
pub fn is_ifctl_01_isel_comp2 (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP2 } } # [doc = "Field `IFCTL_01_ISEL` writer - Input Select (CCP0) This field selects the input source to the filter input. 4h-7h = Reserved"]
pub type IFCTL_01_ISEL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 4 , O , IFCTL_01_ISEL_A > ; impl < 'a , REG , const O : u8 > IFCTL_01_ISEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "CCPX_INPUT"]
# [inline (always)]
pub fn ifctl_01_isel_ccpx_input (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCPX_INPUT) } # [doc = "CCPX_INPUT_PAIR"]
# [inline (always)]
pub fn ifctl_01_isel_ccpx_input_pair (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCPX_INPUT_PAIR) } # [doc = "CCP0_INPUT"]
# [inline (always)]
pub fn ifctl_01_isel_ccp0_input (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCP0_INPUT) } # [doc = "TRIG_INPUT"]
# [inline (always)]
pub fn ifctl_01_isel_trig_input (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_TRIG_INPUT) } # [doc = "CCP_XOR"]
# [inline (always)]
pub fn ifctl_01_isel_ccp_xor (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCP_XOR) } # [doc = "FSUB0"]
# [inline (always)]
pub fn ifctl_01_isel_fsub0 (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_FSUB0) } # [doc = "FSUB1"]
# [inline (always)]
pub fn ifctl_01_isel_fsub1 (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_FSUB1) } # [doc = "COMP0"]
# [inline (always)]
pub fn ifctl_01_isel_comp0 (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP0) } # [doc = "COMP1"]
# [inline (always)]
pub fn ifctl_01_isel_comp1 (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP1) } # [doc = "COMP2"]
# [inline (always)]
pub fn ifctl_01_isel_comp2 (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP2) } } # [doc = "Field `IFCTL_01_INV` reader - Input Inversion This bit controls whether the selected input is inverted."]
pub type IFCTL_01_INV_R = crate :: BitReader < IFCTL_01_INV_A > ; # [doc = "Input Inversion This bit controls whether the selected input is inverted.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IFCTL_01_INV_A { # [doc = "0: NOINVERT"]
IFCTL_01_INV_NOINVERT = 0 , # [doc = "1: INVERT"]
IFCTL_01_INV_INVERT = 1 , } impl From < IFCTL_01_INV_A > for bool { # [inline (always)]
fn from (variant : IFCTL_01_INV_A) -> Self { variant as u8 != 0 } } impl IFCTL_01_INV_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IFCTL_01_INV_A { match self . bits { false => IFCTL_01_INV_A :: IFCTL_01_INV_NOINVERT , true => IFCTL_01_INV_A :: IFCTL_01_INV_INVERT , } } # [doc = "NOINVERT"]
# [inline (always)]
pub fn is_ifctl_01_inv_noinvert (& self) -> bool { * self == IFCTL_01_INV_A :: IFCTL_01_INV_NOINVERT } # [doc = "INVERT"]
# [inline (always)]
pub fn is_ifctl_01_inv_invert (& self) -> bool { * self == IFCTL_01_INV_A :: IFCTL_01_INV_INVERT } } # [doc = "Field `IFCTL_01_INV` writer - Input Inversion This bit controls whether the selected input is inverted."]
pub type IFCTL_01_INV_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IFCTL_01_INV_A > ; impl < 'a , REG , const O : u8 > IFCTL_01_INV_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOINVERT"]
# [inline (always)]
pub fn ifctl_01_inv_noinvert (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_INV_A :: IFCTL_01_INV_NOINVERT) } # [doc = "INVERT"]
# [inline (always)]
pub fn ifctl_01_inv_invert (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_INV_A :: IFCTL_01_INV_INVERT) } } # [doc = "Field `IFCTL_01_FP` reader - Filter Period. This field specifies the sample period for the input filter. I.e. The input is sampled for FP timer clocks during filtering."]
pub type IFCTL_01_FP_R = crate :: FieldReader < IFCTL_01_FP_A > ; # [doc = "Filter Period. This field specifies the sample period for the input filter. I.e. The input is sampled for FP timer clocks during filtering.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum IFCTL_01_FP_A { # [doc = "0: _3"]
IFCTL_01_FP__3 = 0 , # [doc = "1: _5"]
IFCTL_01_FP__5 = 1 , # [doc = "2: _8"]
IFCTL_01_FP__8 = 2 , } impl From < IFCTL_01_FP_A > for u8 { # [inline (always)]
fn from (variant : IFCTL_01_FP_A) -> Self { variant as _ } } impl crate :: FieldSpec for IFCTL_01_FP_A { type Ux = u8 ; } impl IFCTL_01_FP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < IFCTL_01_FP_A > { match self . bits { 0 => Some (IFCTL_01_FP_A :: IFCTL_01_FP__3) , 1 => Some (IFCTL_01_FP_A :: IFCTL_01_FP__5) , 2 => Some (IFCTL_01_FP_A :: IFCTL_01_FP__8) , _ => None , } } # [doc = "_3"]
# [inline (always)]
pub fn is_ifctl_01_fp__3 (& self) -> bool { * self == IFCTL_01_FP_A :: IFCTL_01_FP__3 } # [doc = "_5"]
# [inline (always)]
pub fn is_ifctl_01_fp__5 (& self) -> bool { * self == IFCTL_01_FP_A :: IFCTL_01_FP__5 } # [doc = "_8"]
# [inline (always)]
pub fn is_ifctl_01_fp__8 (& self) -> bool { * self == IFCTL_01_FP_A :: IFCTL_01_FP__8 } } # [doc = "Field `IFCTL_01_FP` writer - Filter Period. This field specifies the sample period for the input filter. I.e. The input is sampled for FP timer clocks during filtering."]
pub type IFCTL_01_FP_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , IFCTL_01_FP_A > ; impl < 'a , REG , const O : u8 > IFCTL_01_FP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_3"]
# [inline (always)]
pub fn ifctl_01_fp__3 (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_FP_A :: IFCTL_01_FP__3) } # [doc = "_5"]
# [inline (always)]
pub fn ifctl_01_fp__5 (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_FP_A :: IFCTL_01_FP__5) } # [doc = "_8"]
# [inline (always)]
pub fn ifctl_01_fp__8 (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_FP_A :: IFCTL_01_FP__8) } } # [doc = "Field `IFCTL_01_CPV` reader - Consecutive Period/Voting Select This bit controls whether the input filter uses a stricter consecutive period count or majority voting."]
pub type IFCTL_01_CPV_R = crate :: BitReader < IFCTL_01_CPV_A > ; # [doc = "Consecutive Period/Voting Select This bit controls whether the input filter uses a stricter consecutive period count or majority voting.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IFCTL_01_CPV_A { # [doc = "0: CONSECUTIVE"]
IFCTL_01_CPV_CONSECUTIVE = 0 , # [doc = "1: VOTING"]
IFCTL_01_CPV_VOTING = 1 , } impl From < IFCTL_01_CPV_A > for bool { # [inline (always)]
fn from (variant : IFCTL_01_CPV_A) -> Self { variant as u8 != 0 } } impl IFCTL_01_CPV_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IFCTL_01_CPV_A { match self . bits { false => IFCTL_01_CPV_A :: IFCTL_01_CPV_CONSECUTIVE , true => IFCTL_01_CPV_A :: IFCTL_01_CPV_VOTING , } } # [doc = "CONSECUTIVE"]
# [inline (always)]
pub fn is_ifctl_01_cpv_consecutive (& self) -> bool { * self == IFCTL_01_CPV_A :: IFCTL_01_CPV_CONSECUTIVE } # [doc = "VOTING"]
# [inline (always)]
pub fn is_ifctl_01_cpv_voting (& self) -> bool { * self == IFCTL_01_CPV_A :: IFCTL_01_CPV_VOTING } } # [doc = "Field `IFCTL_01_CPV` writer - Consecutive Period/Voting Select This bit controls whether the input filter uses a stricter consecutive period count or majority voting."]
pub type IFCTL_01_CPV_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IFCTL_01_CPV_A > ; impl < 'a , REG , const O : u8 > IFCTL_01_CPV_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CONSECUTIVE"]
# [inline (always)]
pub fn ifctl_01_cpv_consecutive (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_CPV_A :: IFCTL_01_CPV_CONSECUTIVE) } # [doc = "VOTING"]
# [inline (always)]
pub fn ifctl_01_cpv_voting (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_CPV_A :: IFCTL_01_CPV_VOTING) } } # [doc = "Field `IFCTL_01_FE` reader - Filter Enable This bit controls whether the input is filtered by the input filter or bypasses to the edge detect."]
pub type IFCTL_01_FE_R = crate :: BitReader < IFCTL_01_FE_A > ; # [doc = "Filter Enable This bit controls whether the input is filtered by the input filter or bypasses to the edge detect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IFCTL_01_FE_A { # [doc = "0: DISABLED"]
IFCTL_01_FE_DISABLED = 0 , # [doc = "1: ENABLED"]
IFCTL_01_FE_ENABLED = 1 , } impl From < IFCTL_01_FE_A > for bool { # [inline (always)]
fn from (variant : IFCTL_01_FE_A) -> Self { variant as u8 != 0 } } impl IFCTL_01_FE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IFCTL_01_FE_A { match self . bits { false => IFCTL_01_FE_A :: IFCTL_01_FE_DISABLED , true => IFCTL_01_FE_A :: IFCTL_01_FE_ENABLED , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ifctl_01_fe_disabled (& self) -> bool { * self == IFCTL_01_FE_A :: IFCTL_01_FE_DISABLED } # [doc = "ENABLED"]
# [inline (always)]
pub fn is_ifctl_01_fe_enabled (& self) -> bool { * self == IFCTL_01_FE_A :: IFCTL_01_FE_ENABLED } } # [doc = "Field `IFCTL_01_FE` writer - Filter Enable This bit controls whether the input is filtered by the input filter or bypasses to the edge detect."]
pub type IFCTL_01_FE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IFCTL_01_FE_A > ; impl < 'a , REG , const O : u8 > IFCTL_01_FE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn ifctl_01_fe_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_FE_A :: IFCTL_01_FE_DISABLED) } # [doc = "ENABLED"]
# [inline (always)]
pub fn ifctl_01_fe_enabled (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_FE_A :: IFCTL_01_FE_ENABLED) } } impl R { # [doc = "Bits 0:3 - Input Select (CCP0) This field selects the input source to the filter input. 4h-7h = Reserved"]
# [inline (always)]
pub fn ifctl_01_isel (& self) -> IFCTL_01_ISEL_R { IFCTL_01_ISEL_R :: new ((self . bits & 0x0f) as u8) } # [doc = "Bit 7 - Input Inversion This bit controls whether the selected input is inverted."]
# [inline (always)]
pub fn ifctl_01_inv (& self) -> IFCTL_01_INV_R { IFCTL_01_INV_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bits 8:9 - Filter Period. This field specifies the sample period for the input filter. I.e. The input is sampled for FP timer clocks during filtering."]
# [inline (always)]
pub fn ifctl_01_fp (& self) -> IFCTL_01_FP_R { IFCTL_01_FP_R :: new (((self . bits >> 8) & 3) as u8) } # [doc = "Bit 11 - Consecutive Period/Voting Select This bit controls whether the input filter uses a stricter consecutive period count or majority voting."]
# [inline (always)]
pub fn ifctl_01_cpv (& self) -> IFCTL_01_CPV_R { IFCTL_01_CPV_R :: new (((self . bits >> 11) & 1) != 0) } # [doc = "Bit 12 - Filter Enable This bit controls whether the input is filtered by the input filter or bypasses to the edge detect."]
# [inline (always)]
pub fn ifctl_01_fe (& self) -> IFCTL_01_FE_R { IFCTL_01_FE_R :: new (((self . bits >> 12) & 1) != 0) } } impl W { # [doc = "Bits 0:3 - Input Select (CCP0) This field selects the input source to the filter input. 4h-7h = Reserved"]
# [inline (always)]
# [must_use]
pub fn ifctl_01_isel (& mut self) -> IFCTL_01_ISEL_W < IFCTL_01_SPEC , 0 > { IFCTL_01_ISEL_W :: new (self) } # [doc = "Bit 7 - Input Inversion This bit controls whether the selected input is inverted."]
# [inline (always)]
# [must_use]
pub fn ifctl_01_inv (& mut self) -> IFCTL_01_INV_W < IFCTL_01_SPEC , 7 > { IFCTL_01_INV_W :: new (self) } # [doc = "Bits 8:9 - Filter Period. This field specifies the sample period for the input filter. I.e. The input is sampled for FP timer clocks during filtering."]
# [inline (always)]
# [must_use]
pub fn ifctl_01_fp (& mut self) -> IFCTL_01_FP_W < IFCTL_01_SPEC , 8 > { IFCTL_01_FP_W :: new (self) } # [doc = "Bit 11 - Consecutive Period/Voting Select This bit controls whether the input filter uses a stricter consecutive period count or majority voting."]
# [inline (always)]
# [must_use]
pub fn ifctl_01_cpv (& mut self) -> IFCTL_01_CPV_W < IFCTL_01_SPEC , 11 > { IFCTL_01_CPV_W :: new (self) } # [doc = "Bit 12 - Filter Enable This bit controls whether the input is filtered by the input filter or bypasses to the edge detect."]
# [inline (always)]
# [must_use]
pub fn ifctl_01_fe (& mut self) -> IFCTL_01_FE_W < IFCTL_01_SPEC , 12 > { IFCTL_01_FE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Input Filter Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ifctl_01::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ifctl_01::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IFCTL_01_SPEC ; impl crate :: RegisterSpec for IFCTL_01_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ifctl_01::R`](R) reader structure"]
impl crate :: Readable for IFCTL_01_SPEC { } # [doc = "`write(|w| ..)` method takes [`ifctl_01::W`](W) writer structure"]
impl crate :: Writable for IFCTL_01_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets IFCTL_01[%s]
to value 0"]
impl crate :: Resettable for IFCTL_01_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "TSEL (rw) register accessor: Trigger Select\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`tsel::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`tsel::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tsel`]
module"]
pub type TSEL = crate :: Reg < tsel :: TSEL_SPEC > ; # [doc = "Trigger Select"]
pub mod tsel { # [doc = "Register `TSEL` reader"]
pub type R = crate :: R < TSEL_SPEC > ; # [doc = "Register `TSEL` writer"]
pub type W = crate :: W < TSEL_SPEC > ; # [doc = "Field `TSEL_ETSEL` reader - External Trigger Select. #br# This selects which System Event is used if the input filter selects trigger. Triggers 0-15 are used to connect triggers generated by other timer modules in the same power domain. Refer to the SoC datasheet to get details. Triggers 16 and 17 are connected to event manager subscriber ports. Event lines 18-31 are reserved for future use."]
pub type TSEL_ETSEL_R = crate :: FieldReader < TSEL_ETSEL_A > ; # [doc = "External Trigger Select. #br# This selects which System Event is used if the input filter selects trigger. Triggers 0-15 are used to connect triggers generated by other timer modules in the same power domain. Refer to the SoC datasheet to get details. Triggers 16 and 17 are connected to event manager subscriber ports. Event lines 18-31 are reserved for future use.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum TSEL_ETSEL_A { # [doc = "0: TRIG0"]
TSEL_ETSEL_TRIG0 = 0 , # [doc = "1: TRIG1"]
TSEL_ETSEL_TRIG1 = 1 , # [doc = "2: TRIG2"]
TSEL_ETSEL_TRIG2 = 2 , # [doc = "3: TRIG3"]
TSEL_ETSEL_TRIG3 = 3 , # [doc = "4: TRIG4"]
TSEL_ETSEL_TRIG4 = 4 , # [doc = "5: TRIG5"]
TSEL_ETSEL_TRIG5 = 5 , # [doc = "6: TRIG6"]
TSEL_ETSEL_TRIG6 = 6 , # [doc = "7: TRIG7"]
TSEL_ETSEL_TRIG7 = 7 , # [doc = "8: TRIG8"]
TSEL_ETSEL_TRIG8 = 8 , # [doc = "9: TRIG9"]
TSEL_ETSEL_TRIG9 = 9 , # [doc = "10: TRIG10"]
TSEL_ETSEL_TRIG10 = 10 , # [doc = "11: TRIG11"]
TSEL_ETSEL_TRIG11 = 11 , # [doc = "12: TRIG12"]
TSEL_ETSEL_TRIG12 = 12 , # [doc = "13: TRIG13"]
TSEL_ETSEL_TRIG13 = 13 , # [doc = "14: TRIG14"]
TSEL_ETSEL_TRIG14 = 14 , # [doc = "15: TRIG15"]
TSEL_ETSEL_TRIG15 = 15 , # [doc = "16: TRIG_SUB0"]
TSEL_ETSEL_TRIG_SUB0 = 16 , # [doc = "17: TRIG_SUB1"]
TSEL_ETSEL_TRIG_SUB1 = 17 , } impl From < TSEL_ETSEL_A > for u8 { # [inline (always)]
fn from (variant : TSEL_ETSEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for TSEL_ETSEL_A { type Ux = u8 ; } impl TSEL_ETSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < TSEL_ETSEL_A > { match self . bits { 0 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG0) , 1 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG1) , 2 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG2) , 3 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG3) , 4 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG4) , 5 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG5) , 6 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG6) , 7 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG7) , 8 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG8) , 9 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG9) , 10 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG10) , 11 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG11) , 12 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG12) , 13 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG13) , 14 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG14) , 15 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG15) , 16 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG_SUB0) , 17 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG_SUB1) , _ => None , } } # [doc = "TRIG0"]
# [inline (always)]
pub fn is_tsel_etsel_trig0 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG0 } # [doc = "TRIG1"]
# [inline (always)]
pub fn is_tsel_etsel_trig1 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG1 } # [doc = "TRIG2"]
# [inline (always)]
pub fn is_tsel_etsel_trig2 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG2 } # [doc = "TRIG3"]
# [inline (always)]
pub fn is_tsel_etsel_trig3 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG3 } # [doc = "TRIG4"]
# [inline (always)]
pub fn is_tsel_etsel_trig4 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG4 } # [doc = "TRIG5"]
# [inline (always)]
pub fn is_tsel_etsel_trig5 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG5 } # [doc = "TRIG6"]
# [inline (always)]
pub fn is_tsel_etsel_trig6 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG6 } # [doc = "TRIG7"]
# [inline (always)]
pub fn is_tsel_etsel_trig7 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG7 } # [doc = "TRIG8"]
# [inline (always)]
pub fn is_tsel_etsel_trig8 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG8 } # [doc = "TRIG9"]
# [inline (always)]
pub fn is_tsel_etsel_trig9 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG9 } # [doc = "TRIG10"]
# [inline (always)]
pub fn is_tsel_etsel_trig10 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG10 } # [doc = "TRIG11"]
# [inline (always)]
pub fn is_tsel_etsel_trig11 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG11 } # [doc = "TRIG12"]
# [inline (always)]
pub fn is_tsel_etsel_trig12 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG12 } # [doc = "TRIG13"]
# [inline (always)]
pub fn is_tsel_etsel_trig13 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG13 } # [doc = "TRIG14"]
# [inline (always)]
pub fn is_tsel_etsel_trig14 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG14 } # [doc = "TRIG15"]
# [inline (always)]
pub fn is_tsel_etsel_trig15 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG15 } # [doc = "TRIG_SUB0"]
# [inline (always)]
pub fn is_tsel_etsel_trig_sub0 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG_SUB0 } # [doc = "TRIG_SUB1"]
# [inline (always)]
pub fn is_tsel_etsel_trig_sub1 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG_SUB1 } } # [doc = "Field `TSEL_ETSEL` writer - External Trigger Select. #br# This selects which System Event is used if the input filter selects trigger. Triggers 0-15 are used to connect triggers generated by other timer modules in the same power domain. Refer to the SoC datasheet to get details. Triggers 16 and 17 are connected to event manager subscriber ports. Event lines 18-31 are reserved for future use."]
pub type TSEL_ETSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 5 , O , TSEL_ETSEL_A > ; impl < 'a , REG , const O : u8 > TSEL_ETSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "TRIG0"]
# [inline (always)]
pub fn tsel_etsel_trig0 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG0) } # [doc = "TRIG1"]
# [inline (always)]
pub fn tsel_etsel_trig1 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG1) } # [doc = "TRIG2"]
# [inline (always)]
pub fn tsel_etsel_trig2 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG2) } # [doc = "TRIG3"]
# [inline (always)]
pub fn tsel_etsel_trig3 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG3) } # [doc = "TRIG4"]
# [inline (always)]
pub fn tsel_etsel_trig4 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG4) } # [doc = "TRIG5"]
# [inline (always)]
pub fn tsel_etsel_trig5 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG5) } # [doc = "TRIG6"]
# [inline (always)]
pub fn tsel_etsel_trig6 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG6) } # [doc = "TRIG7"]
# [inline (always)]
pub fn tsel_etsel_trig7 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG7) } # [doc = "TRIG8"]
# [inline (always)]
pub fn tsel_etsel_trig8 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG8) } # [doc = "TRIG9"]
# [inline (always)]
pub fn tsel_etsel_trig9 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG9) } # [doc = "TRIG10"]
# [inline (always)]
pub fn tsel_etsel_trig10 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG10) } # [doc = "TRIG11"]
# [inline (always)]
pub fn tsel_etsel_trig11 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG11) } # [doc = "TRIG12"]
# [inline (always)]
pub fn tsel_etsel_trig12 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG12) } # [doc = "TRIG13"]
# [inline (always)]
pub fn tsel_etsel_trig13 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG13) } # [doc = "TRIG14"]
# [inline (always)]
pub fn tsel_etsel_trig14 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG14) } # [doc = "TRIG15"]
# [inline (always)]
pub fn tsel_etsel_trig15 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG15) } # [doc = "TRIG_SUB0"]
# [inline (always)]
pub fn tsel_etsel_trig_sub0 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG_SUB0) } # [doc = "TRIG_SUB1"]
# [inline (always)]
pub fn tsel_etsel_trig_sub1 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG_SUB1) } } # [doc = "Field `TSEL_TE` reader - Trigger Enable. This selects whether a trigger is enabled or not for this counter 0x0 = Triggers are not used 0x1 = Triggers are used as selected by the ETSEL field"]
pub type TSEL_TE_R = crate :: BitReader < TSEL_TE_A > ; # [doc = "Trigger Enable. This selects whether a trigger is enabled or not for this counter 0x0 = Triggers are not used 0x1 = Triggers are used as selected by the ETSEL field\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum TSEL_TE_A { # [doc = "0: DISABLED"]
TSEL_TE_DISABLED = 0 , # [doc = "1: ENABLED"]
TSEL_TE_ENABLED = 1 , } impl From < TSEL_TE_A > for bool { # [inline (always)]
fn from (variant : TSEL_TE_A) -> Self { variant as u8 != 0 } } impl TSEL_TE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> TSEL_TE_A { match self . bits { false => TSEL_TE_A :: TSEL_TE_DISABLED , true => TSEL_TE_A :: TSEL_TE_ENABLED , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_tsel_te_disabled (& self) -> bool { * self == TSEL_TE_A :: TSEL_TE_DISABLED } # [doc = "ENABLED"]
# [inline (always)]
pub fn is_tsel_te_enabled (& self) -> bool { * self == TSEL_TE_A :: TSEL_TE_ENABLED } } # [doc = "Field `TSEL_TE` writer - Trigger Enable. This selects whether a trigger is enabled or not for this counter 0x0 = Triggers are not used 0x1 = Triggers are used as selected by the ETSEL field"]
pub type TSEL_TE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , TSEL_TE_A > ; impl < 'a , REG , const O : u8 > TSEL_TE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn tsel_te_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_TE_A :: TSEL_TE_DISABLED) } # [doc = "ENABLED"]
# [inline (always)]
pub fn tsel_te_enabled (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_TE_A :: TSEL_TE_ENABLED) } } impl R { # [doc = "Bits 0:4 - External Trigger Select. #br# This selects which System Event is used if the input filter selects trigger. Triggers 0-15 are used to connect triggers generated by other timer modules in the same power domain. Refer to the SoC datasheet to get details. Triggers 16 and 17 are connected to event manager subscriber ports. Event lines 18-31 are reserved for future use."]
# [inline (always)]
pub fn tsel_etsel (& self) -> TSEL_ETSEL_R { TSEL_ETSEL_R :: new ((self . bits & 0x1f) as u8) } # [doc = "Bit 9 - Trigger Enable. This selects whether a trigger is enabled or not for this counter 0x0 = Triggers are not used 0x1 = Triggers are used as selected by the ETSEL field"]
# [inline (always)]
pub fn tsel_te (& self) -> TSEL_TE_R { TSEL_TE_R :: new (((self . bits >> 9) & 1) != 0) } } impl W { # [doc = "Bits 0:4 - External Trigger Select. #br# This selects which System Event is used if the input filter selects trigger. Triggers 0-15 are used to connect triggers generated by other timer modules in the same power domain. Refer to the SoC datasheet to get details. Triggers 16 and 17 are connected to event manager subscriber ports. Event lines 18-31 are reserved for future use."]
# [inline (always)]
# [must_use]
pub fn tsel_etsel (& mut self) -> TSEL_ETSEL_W < TSEL_SPEC , 0 > { TSEL_ETSEL_W :: new (self) } # [doc = "Bit 9 - Trigger Enable. This selects whether a trigger is enabled or not for this counter 0x0 = Triggers are not used 0x1 = Triggers are used as selected by the ETSEL field"]
# [inline (always)]
# [must_use]
pub fn tsel_te (& mut self) -> TSEL_TE_W < TSEL_SPEC , 9 > { TSEL_TE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Trigger Select\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`tsel::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`tsel::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct TSEL_SPEC ; impl crate :: RegisterSpec for TSEL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`tsel::R`](R) reader structure"]
impl crate :: Readable for TSEL_SPEC { } # [doc = "`write(|w| ..)` method takes [`tsel::W`](W) writer structure"]
impl crate :: Writable for TSEL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets TSEL to value 0"]
impl crate :: Resettable for TSEL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } } # [doc = "PERIPHERALREGION"]
pub struct ADC0 { _marker : PhantomData < * const () > } unsafe impl Send for ADC0 { } impl ADC0 { # [doc = r"Pointer to the register block"]
pub const PTR : * const adc0 :: RegisterBlock = 0x4000_4000 as * const _ ; # [doc = r"Return the pointer to the register block"]
# [inline (always)]
pub const fn ptr () -> * const adc0 :: RegisterBlock { Self :: PTR } # [doc = r" Steal an instance of this peripheral"]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Ensure that the new instance of the peripheral cannot be used in a way"]
# [doc = r" that may race with any existing instances, for example by only"]
# [doc = r" accessing read-only or write-only registers, or by consuming the"]
# [doc = r" original peripheral and using critical sections to coordinate"]
# [doc = r" access between multiple new instances."]
# [doc = r""]
# [doc = r" Additionally, other software such as HALs may rely on only one"]
# [doc = r" peripheral instance existing to ensure memory safety; ensure"]
# [doc = r" no stolen instances are passed to such software."]
pub unsafe fn steal () -> Self { Self { _marker : PhantomData } } } impl Deref for ADC0 { type Target = adc0 :: RegisterBlock ; # [inline (always)]
fn deref (& self) -> & Self :: Target { unsafe { & * Self :: PTR } } } impl core :: fmt :: Debug for ADC0 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("ADC0") . finish () } } # [doc = "PERIPHERALREGION"]
pub mod adc0 { # [doc = r"Register block"]
# [repr (C)]
pub struct RegisterBlock { _reserved0 : [u8 ; 0x0400]
, # [doc = "0x400 - Subscriber Configuration Register."]
pub fsub_0 : FSUB_0 , _reserved1 : [u8 ; 0x40]
, # [doc = "0x444 - Publisher Configuration Register."]
pub fpub_1 : FPUB_1 , _reserved2 : [u8 ; 0x03b8]
, # [doc = "0x800 - Power enable"]
pub pwren : PWREN , # [doc = "0x804 - Reset Control"]
pub rstctl : RSTCTL , # [doc = "0x808 - ADC clock configuration Register"]
pub clkcfg : CLKCFG , _reserved5 : [u8 ; 0x08]
, # [doc = "0x814 - Status Register"]
pub stat : STAT , _reserved6 : [u8 ; 0x0808]
, # [doc = "0x1020 - Interrupt index"]
pub int_event0_iidx : INT_EVENT0_IIDX , _reserved7 : [u8 ; 0x04]
, # [doc = "0x1028 - Interrupt mask"]
pub int_event0_imask : INT_EVENT0_IMASK , _reserved8 : [u8 ; 0x04]
, # [doc = "0x1030 - Raw interrupt status"]
pub int_event0_ris : INT_EVENT0_RIS , _reserved9 : [u8 ; 0x04]
, # [doc = "0x1038 - Masked interrupt status"]
pub int_event0_mis : INT_EVENT0_MIS , _reserved10 : [u8 ; 0x04]
, # [doc = "0x1040 - Interrupt set"]
pub int_event0_iset : INT_EVENT0_ISET , _reserved11 : [u8 ; 0x04]
, # [doc = "0x1048 - Interrupt clear"]
pub int_event0_iclr : INT_EVENT0_ICLR , _reserved12 : [u8 ; 0x04]
, # [doc = "0x1050 - Interrupt index"]
pub int_event1_iidx : INT_EVENT1_IIDX , _reserved13 : [u8 ; 0x04]
, # [doc = "0x1058 - Interrupt mask"]
pub int_event1_imask : INT_EVENT1_IMASK , _reserved14 : [u8 ; 0x04]
, # [doc = "0x1060 - Raw interrupt status"]
pub int_event1_ris : INT_EVENT1_RIS , _reserved15 : [u8 ; 0x04]
, # [doc = "0x1068 - Masked interrupt status"]
pub int_event1_mis : INT_EVENT1_MIS , _reserved16 : [u8 ; 0x04]
, # [doc = "0x1070 - Interrupt set"]
pub int_event1_iset : INT_EVENT1_ISET , _reserved17 : [u8 ; 0x04]
, # [doc = "0x1078 - Interrupt clear"]
pub int_event1_iclr : INT_EVENT1_ICLR , _reserved18 : [u8 ; 0x04]
, # [doc = "0x1080 - Interrupt index"]
pub int_event2_iidx : INT_EVENT2_IIDX , _reserved19 : [u8 ; 0x04]
, # [doc = "0x1088 - Interrupt mask extension"]
pub int_event2_imask : INT_EVENT2_IMASK , _reserved20 : [u8 ; 0x04]
, # [doc = "0x1090 - Raw interrupt status extension"]
pub int_event2_ris : INT_EVENT2_RIS , _reserved21 : [u8 ; 0x04]
, # [doc = "0x1098 - Masked interrupt status extension"]
pub int_event2_mis : INT_EVENT2_MIS , _reserved22 : [u8 ; 0x04]
, # [doc = "0x10a0 - Interrupt set extension"]
pub int_event2_iset : INT_EVENT2_ISET , _reserved23 : [u8 ; 0x04]
, # [doc = "0x10a8 - Interrupt clear extension"]
pub int_event2_iclr : INT_EVENT2_ICLR , _reserved24 : [u8 ; 0x34]
, # [doc = "0x10e0 - Event Mode"]
pub evt_mode : EVT_MODE , _reserved25 : [u8 ; 0x18]
, # [doc = "0x10fc - Module Description"]
pub desc : DESC , # [doc = "0x1100 - Control Register 0"]
pub ctl0 : CTL0 , # [doc = "0x1104 - Control Register 1"]
pub ctl1 : CTL1 , # [doc = "0x1108 - Control Register 2"]
pub ctl2 : CTL2 , # [doc = "0x110c - Control Register 3"]
pub ctl3 : CTL3 , _reserved30 : [u8 ; 0x04]
, # [doc = "0x1114 - Sample Time Compare 0 Register"]
pub scomp0 : SCOMP0 , # [doc = "0x1118 - Sample Time Compare 1 Register"]
pub scomp1 : SCOMP1 , # [doc = "0x111c - Reference Buffer Configuration Register"]
pub refcfg : REFCFG , _reserved33 : [u8 ; 0x28]
, # [doc = "0x1148 - Window Comparator Low Threshold Register"]
pub wclow : WCLOW , _reserved34 : [u8 ; 0x04]
, # [doc = "0x1150 - Window Comparator High Threshold Register"]
pub wchigh : WCHIGH , _reserved35 : [u8 ; 0x2c]
, # [doc = "0x1180..0x1190 - Conversion Memory Control Register"]
pub memctl : [MEMCTL ; 4]
, _reserved36 : [u8 ; 0x01b0]
, # [doc = "0x1340 - Status Register"]
pub status : STATUS , } # [doc = "FSUB_0 (rw) register accessor: Subscriber Configuration Register.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fsub_0`]
module"]
pub type FSUB_0 = crate :: Reg < fsub_0 :: FSUB_0_SPEC > ; # [doc = "Subscriber Configuration Register."]
pub mod fsub_0 { # [doc = "Register `FSUB_0` reader"]
pub type R = crate :: R < FSUB_0_SPEC > ; # [doc = "Register `FSUB_0` writer"]
pub type W = crate :: W < FSUB_0_SPEC > ; # [doc = "Field `FSUB_0_CHANID` reader - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FSUB_0_CHANID_R = crate :: FieldReader < FSUB_0_CHANID_A > ; # [doc = "0 = disconnected. 1-15 = connected to channelID = CHANID.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FSUB_0_CHANID_A { # [doc = "0: UNCONNECTED"]
FSUB_0_CHANID_UNCONNECTED = 0 , } impl From < FSUB_0_CHANID_A > for u8 { # [inline (always)]
fn from (variant : FSUB_0_CHANID_A) -> Self { variant as _ } } impl crate :: FieldSpec for FSUB_0_CHANID_A { type Ux = u8 ; } impl FSUB_0_CHANID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < FSUB_0_CHANID_A > { match self . bits { 0 => Some (FSUB_0_CHANID_A :: FSUB_0_CHANID_UNCONNECTED) , _ => None , } } # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn is_fsub_0_chanid_unconnected (& self) -> bool { * self == FSUB_0_CHANID_A :: FSUB_0_CHANID_UNCONNECTED } } # [doc = "Field `FSUB_0_CHANID` writer - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FSUB_0_CHANID_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , FSUB_0_CHANID_A > ; impl < 'a , REG , const O : u8 > FSUB_0_CHANID_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn fsub_0_chanid_unconnected (self) -> & 'a mut crate :: W < REG > { self . variant (FSUB_0_CHANID_A :: FSUB_0_CHANID_UNCONNECTED) } } impl R { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
pub fn fsub_0_chanid (& self) -> FSUB_0_CHANID_R { FSUB_0_CHANID_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
# [must_use]
pub fn fsub_0_chanid (& mut self) -> FSUB_0_CHANID_W < FSUB_0_SPEC , 0 > { FSUB_0_CHANID_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Subscriber Configuration Register.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_0::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FSUB_0_SPEC ; impl crate :: RegisterSpec for FSUB_0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fsub_0::R`](R) reader structure"]
impl crate :: Readable for FSUB_0_SPEC { } # [doc = "`write(|w| ..)` method takes [`fsub_0::W`](W) writer structure"]
impl crate :: Writable for FSUB_0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FSUB_0 to value 0"]
impl crate :: Resettable for FSUB_0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "FPUB_1 (rw) register accessor: Publisher Configuration Register.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fpub_1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fpub_1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fpub_1`]
module"]
pub type FPUB_1 = crate :: Reg < fpub_1 :: FPUB_1_SPEC > ; # [doc = "Publisher Configuration Register."]
pub mod fpub_1 { # [doc = "Register `FPUB_1` reader"]
pub type R = crate :: R < FPUB_1_SPEC > ; # [doc = "Register `FPUB_1` writer"]
pub type W = crate :: W < FPUB_1_SPEC > ; # [doc = "Field `FPUB_1_CHANID` reader - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FPUB_1_CHANID_R = crate :: FieldReader < FPUB_1_CHANID_A > ; # [doc = "0 = disconnected. 1-15 = connected to channelID = CHANID.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FPUB_1_CHANID_A { # [doc = "0: UNCONNECTED"]
FPUB_1_CHANID_UNCONNECTED = 0 , } impl From < FPUB_1_CHANID_A > for u8 { # [inline (always)]
fn from (variant : FPUB_1_CHANID_A) -> Self { variant as _ } } impl crate :: FieldSpec for FPUB_1_CHANID_A { type Ux = u8 ; } impl FPUB_1_CHANID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < FPUB_1_CHANID_A > { match self . bits { 0 => Some (FPUB_1_CHANID_A :: FPUB_1_CHANID_UNCONNECTED) , _ => None , } } # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn is_fpub_1_chanid_unconnected (& self) -> bool { * self == FPUB_1_CHANID_A :: FPUB_1_CHANID_UNCONNECTED } } # [doc = "Field `FPUB_1_CHANID` writer - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FPUB_1_CHANID_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , FPUB_1_CHANID_A > ; impl < 'a , REG , const O : u8 > FPUB_1_CHANID_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn fpub_1_chanid_unconnected (self) -> & 'a mut crate :: W < REG > { self . variant (FPUB_1_CHANID_A :: FPUB_1_CHANID_UNCONNECTED) } } impl R { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
pub fn fpub_1_chanid (& self) -> FPUB_1_CHANID_R { FPUB_1_CHANID_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
# [must_use]
pub fn fpub_1_chanid (& mut self) -> FPUB_1_CHANID_W < FPUB_1_SPEC , 0 > { FPUB_1_CHANID_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Publisher Configuration Register.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fpub_1::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fpub_1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FPUB_1_SPEC ; impl crate :: RegisterSpec for FPUB_1_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fpub_1::R`](R) reader structure"]
impl crate :: Readable for FPUB_1_SPEC { } # [doc = "`write(|w| ..)` method takes [`fpub_1::W`](W) writer structure"]
impl crate :: Writable for FPUB_1_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FPUB_1 to value 0"]
impl crate :: Resettable for FPUB_1_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "PWREN (rw) register accessor: Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pwren`]
module"]
pub type PWREN = crate :: Reg < pwren :: PWREN_SPEC > ; # [doc = "Power enable"]
pub mod pwren { # [doc = "Register `PWREN` reader"]
pub type R = crate :: R < PWREN_SPEC > ; # [doc = "Register `PWREN` writer"]
pub type W = crate :: W < PWREN_SPEC > ; # [doc = "Field `PWREN_ENABLE` reader - Enable the power"]
pub type PWREN_ENABLE_R = crate :: BitReader < PWREN_ENABLE_A > ; # [doc = "Enable the power\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PWREN_ENABLE_A { # [doc = "0: DISABLE"]
PWREN_ENABLE_DISABLE = 0 , # [doc = "1: ENABLE"]
PWREN_ENABLE_ENABLE = 1 , } impl From < PWREN_ENABLE_A > for bool { # [inline (always)]
fn from (variant : PWREN_ENABLE_A) -> Self { variant as u8 != 0 } } impl PWREN_ENABLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PWREN_ENABLE_A { match self . bits { false => PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE , true => PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_pwren_enable_disable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_pwren_enable_enable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE } } # [doc = "Field `PWREN_ENABLE` writer - Enable the power"]
pub type PWREN_ENABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PWREN_ENABLE_A > ; impl < 'a , REG , const O : u8 > PWREN_ENABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn pwren_enable_disable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn pwren_enable_enable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE) } } # [doc = "KEY to allow Power State Change\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum PWREN_KEY_AW { # [doc = "38: _TO_UNLOCK_W_"]
PWREN_KEY_UNLOCK_W = 38 , } impl From < PWREN_KEY_AW > for u8 { # [inline (always)]
fn from (variant : PWREN_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for PWREN_KEY_AW { type Ux = u8 ; } # [doc = "Field `PWREN_KEY` writer - KEY to allow Power State Change"]
pub type PWREN_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , PWREN_KEY_AW > ; impl < 'a , REG , const O : u8 > PWREN_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn pwren_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_KEY_AW :: PWREN_KEY_UNLOCK_W) } } impl R { # [doc = "Bit 0 - Enable the power"]
# [inline (always)]
pub fn pwren_enable (& self) -> PWREN_ENABLE_R { PWREN_ENABLE_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - Enable the power"]
# [inline (always)]
# [must_use]
pub fn pwren_enable (& mut self) -> PWREN_ENABLE_W < PWREN_SPEC , 0 > { PWREN_ENABLE_W :: new (self) } # [doc = "Bits 24:31 - KEY to allow Power State Change"]
# [inline (always)]
# [must_use]
pub fn pwren_key (& mut self) -> PWREN_KEY_W < PWREN_SPEC , 24 > { PWREN_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PWREN_SPEC ; impl crate :: RegisterSpec for PWREN_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pwren::R`](R) reader structure"]
impl crate :: Readable for PWREN_SPEC { } # [doc = "`write(|w| ..)` method takes [`pwren::W`](W) writer structure"]
impl crate :: Writable for PWREN_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PWREN to value 0"]
impl crate :: Resettable for PWREN_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RSTCTL (w) register accessor: Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rstctl`]
module"]
pub type RSTCTL = crate :: Reg < rstctl :: RSTCTL_SPEC > ; # [doc = "Reset Control"]
pub mod rstctl { # [doc = "Register `RSTCTL` writer"]
pub type W = crate :: W < RSTCTL_SPEC > ; # [doc = "Assert reset to the peripheral\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETASSERT_AW { # [doc = "0: NOP"]
RSTCTL_RESETASSERT_NOP = 0 , # [doc = "1: ASSERT"]
RSTCTL_RESETASSERT_ASSERT = 1 , } impl From < RSTCTL_RESETASSERT_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETASSERT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETASSERT` writer - Assert reset to the peripheral"]
pub type RSTCTL_RESETASSERT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETASSERT_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETASSERT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetassert_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_NOP) } # [doc = "ASSERT"]
# [inline (always)]
pub fn rstctl_resetassert_assert (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_ASSERT) } } # [doc = "Clear the RESETSTKY bit in the STAT register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETSTKYCLR_AW { # [doc = "0: NOP"]
RSTCTL_RESETSTKYCLR_NOP = 0 , # [doc = "1: CLR"]
RSTCTL_RESETSTKYCLR_CLR = 1 , } impl From < RSTCTL_RESETSTKYCLR_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETSTKYCLR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETSTKYCLR` writer - Clear the RESETSTKY bit in the STAT register"]
pub type RSTCTL_RESETSTKYCLR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETSTKYCLR_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETSTKYCLR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetstkyclr_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_NOP) } # [doc = "CLR"]
# [inline (always)]
pub fn rstctl_resetstkyclr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_CLR) } } # [doc = "Unlock key\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum RSTCTL_KEY_AW { # [doc = "177: _TO_UNLOCK_W_"]
RSTCTL_KEY_UNLOCK_W = 177 , } impl From < RSTCTL_KEY_AW > for u8 { # [inline (always)]
fn from (variant : RSTCTL_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for RSTCTL_KEY_AW { type Ux = u8 ; } # [doc = "Field `RSTCTL_KEY` writer - Unlock key"]
pub type RSTCTL_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , RSTCTL_KEY_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn rstctl_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_KEY_AW :: RSTCTL_KEY_UNLOCK_W) } } impl W { # [doc = "Bit 0 - Assert reset to the peripheral"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetassert (& mut self) -> RSTCTL_RESETASSERT_W < RSTCTL_SPEC , 0 > { RSTCTL_RESETASSERT_W :: new (self) } # [doc = "Bit 1 - Clear the RESETSTKY bit in the STAT register"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetstkyclr (& mut self) -> RSTCTL_RESETSTKYCLR_W < RSTCTL_SPEC , 1 > { RSTCTL_RESETSTKYCLR_W :: new (self) } # [doc = "Bits 24:31 - Unlock key"]
# [inline (always)]
# [must_use]
pub fn rstctl_key (& mut self) -> RSTCTL_KEY_W < RSTCTL_SPEC , 24 > { RSTCTL_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RSTCTL_SPEC ; impl crate :: RegisterSpec for RSTCTL_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`rstctl::W`](W) writer structure"]
impl crate :: Writable for RSTCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets RSTCTL to value 0"]
impl crate :: Resettable for RSTCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CLKCFG (rw) register accessor: ADC clock configuration Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkcfg::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkcfg::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clkcfg`]
module"]
pub type CLKCFG = crate :: Reg < clkcfg :: CLKCFG_SPEC > ; # [doc = "ADC clock configuration Register"]
pub mod clkcfg { # [doc = "Register `CLKCFG` reader"]
pub type R = crate :: R < CLKCFG_SPEC > ; # [doc = "Register `CLKCFG` writer"]
pub type W = crate :: W < CLKCFG_SPEC > ; # [doc = "Field `CLKCFG_SAMPCLK` reader - ADC sample clock source selection."]
pub type CLKCFG_SAMPCLK_R = crate :: FieldReader < CLKCFG_SAMPCLK_A > ; # [doc = "ADC sample clock source selection.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CLKCFG_SAMPCLK_A { # [doc = "0: SYSOSC"]
CLKCFG_SAMPCLK_SYSOSC = 0 , # [doc = "1: ULPCLK"]
CLKCFG_SAMPCLK_ULPCLK = 1 , # [doc = "2: HFCLK"]
CLKCFG_SAMPCLK_HFCLK = 2 , } impl From < CLKCFG_SAMPCLK_A > for u8 { # [inline (always)]
fn from (variant : CLKCFG_SAMPCLK_A) -> Self { variant as _ } } impl crate :: FieldSpec for CLKCFG_SAMPCLK_A { type Ux = u8 ; } impl CLKCFG_SAMPCLK_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CLKCFG_SAMPCLK_A > { match self . bits { 0 => Some (CLKCFG_SAMPCLK_A :: CLKCFG_SAMPCLK_SYSOSC) , 1 => Some (CLKCFG_SAMPCLK_A :: CLKCFG_SAMPCLK_ULPCLK) , 2 => Some (CLKCFG_SAMPCLK_A :: CLKCFG_SAMPCLK_HFCLK) , _ => None , } } # [doc = "SYSOSC"]
# [inline (always)]
pub fn is_clkcfg_sampclk_sysosc (& self) -> bool { * self == CLKCFG_SAMPCLK_A :: CLKCFG_SAMPCLK_SYSOSC } # [doc = "ULPCLK"]
# [inline (always)]
pub fn is_clkcfg_sampclk_ulpclk (& self) -> bool { * self == CLKCFG_SAMPCLK_A :: CLKCFG_SAMPCLK_ULPCLK } # [doc = "HFCLK"]
# [inline (always)]
pub fn is_clkcfg_sampclk_hfclk (& self) -> bool { * self == CLKCFG_SAMPCLK_A :: CLKCFG_SAMPCLK_HFCLK } } # [doc = "Field `CLKCFG_SAMPCLK` writer - ADC sample clock source selection."]
pub type CLKCFG_SAMPCLK_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , CLKCFG_SAMPCLK_A > ; impl < 'a , REG , const O : u8 > CLKCFG_SAMPCLK_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "SYSOSC"]
# [inline (always)]
pub fn clkcfg_sampclk_sysosc (self) -> & 'a mut crate :: W < REG > { self . variant (CLKCFG_SAMPCLK_A :: CLKCFG_SAMPCLK_SYSOSC) } # [doc = "ULPCLK"]
# [inline (always)]
pub fn clkcfg_sampclk_ulpclk (self) -> & 'a mut crate :: W < REG > { self . variant (CLKCFG_SAMPCLK_A :: CLKCFG_SAMPCLK_ULPCLK) } # [doc = "HFCLK"]
# [inline (always)]
pub fn clkcfg_sampclk_hfclk (self) -> & 'a mut crate :: W < REG > { self . variant (CLKCFG_SAMPCLK_A :: CLKCFG_SAMPCLK_HFCLK) } } # [doc = "Field `CLKCFG_CCONRUN` reader - CCONRUN: Forces SYSOSC to run at base frequency when device is in RUN mode which can be used as ADC sample or conversion clock source."]
pub type CLKCFG_CCONRUN_R = crate :: BitReader < CLKCFG_CCONRUN_A > ; # [doc = "CCONRUN: Forces SYSOSC to run at base frequency when device is in RUN mode which can be used as ADC sample or conversion clock source.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKCFG_CCONRUN_A { # [doc = "0: DISABLE"]
CLKCFG_CCONRUN_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKCFG_CCONRUN_ENABLE = 1 , } impl From < CLKCFG_CCONRUN_A > for bool { # [inline (always)]
fn from (variant : CLKCFG_CCONRUN_A) -> Self { variant as u8 != 0 } } impl CLKCFG_CCONRUN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKCFG_CCONRUN_A { match self . bits { false => CLKCFG_CCONRUN_A :: CLKCFG_CCONRUN_DISABLE , true => CLKCFG_CCONRUN_A :: CLKCFG_CCONRUN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clkcfg_cconrun_disable (& self) -> bool { * self == CLKCFG_CCONRUN_A :: CLKCFG_CCONRUN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clkcfg_cconrun_enable (& self) -> bool { * self == CLKCFG_CCONRUN_A :: CLKCFG_CCONRUN_ENABLE } } # [doc = "Field `CLKCFG_CCONRUN` writer - CCONRUN: Forces SYSOSC to run at base frequency when device is in RUN mode which can be used as ADC sample or conversion clock source."]
pub type CLKCFG_CCONRUN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKCFG_CCONRUN_A > ; impl < 'a , REG , const O : u8 > CLKCFG_CCONRUN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clkcfg_cconrun_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKCFG_CCONRUN_A :: CLKCFG_CCONRUN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clkcfg_cconrun_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKCFG_CCONRUN_A :: CLKCFG_CCONRUN_ENABLE) } } # [doc = "Field `CLKCFG_CCONSTOP` reader - CCONSTOP: Forces SYSOSC to run at base frequency when device is in STOP mode which can be used as ADC sample or conversion clock source."]
pub type CLKCFG_CCONSTOP_R = crate :: BitReader < CLKCFG_CCONSTOP_A > ; # [doc = "CCONSTOP: Forces SYSOSC to run at base frequency when device is in STOP mode which can be used as ADC sample or conversion clock source.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKCFG_CCONSTOP_A { # [doc = "0: DISABLE"]
CLKCFG_CCONSTOP_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKCFG_CCONSTOP_ENABLE = 1 , } impl From < CLKCFG_CCONSTOP_A > for bool { # [inline (always)]
fn from (variant : CLKCFG_CCONSTOP_A) -> Self { variant as u8 != 0 } } impl CLKCFG_CCONSTOP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKCFG_CCONSTOP_A { match self . bits { false => CLKCFG_CCONSTOP_A :: CLKCFG_CCONSTOP_DISABLE , true => CLKCFG_CCONSTOP_A :: CLKCFG_CCONSTOP_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clkcfg_cconstop_disable (& self) -> bool { * self == CLKCFG_CCONSTOP_A :: CLKCFG_CCONSTOP_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clkcfg_cconstop_enable (& self) -> bool { * self == CLKCFG_CCONSTOP_A :: CLKCFG_CCONSTOP_ENABLE } } # [doc = "Field `CLKCFG_CCONSTOP` writer - CCONSTOP: Forces SYSOSC to run at base frequency when device is in STOP mode which can be used as ADC sample or conversion clock source."]
pub type CLKCFG_CCONSTOP_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKCFG_CCONSTOP_A > ; impl < 'a , REG , const O : u8 > CLKCFG_CCONSTOP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clkcfg_cconstop_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKCFG_CCONSTOP_A :: CLKCFG_CCONSTOP_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clkcfg_cconstop_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKCFG_CCONSTOP_A :: CLKCFG_CCONSTOP_ENABLE) } } # [doc = "Unlock key\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CLKCFG_KEY_AW { # [doc = "169: _TO_UNLOCK_W_"]
CLKCFG_KEY_UNLOCK_W = 169 , } impl From < CLKCFG_KEY_AW > for u8 { # [inline (always)]
fn from (variant : CLKCFG_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for CLKCFG_KEY_AW { type Ux = u8 ; } # [doc = "Field `CLKCFG_KEY` writer - Unlock key"]
pub type CLKCFG_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , CLKCFG_KEY_AW > ; impl < 'a , REG , const O : u8 > CLKCFG_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn clkcfg_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (CLKCFG_KEY_AW :: CLKCFG_KEY_UNLOCK_W) } } impl R { # [doc = "Bits 0:1 - ADC sample clock source selection."]
# [inline (always)]
pub fn clkcfg_sampclk (& self) -> CLKCFG_SAMPCLK_R { CLKCFG_SAMPCLK_R :: new ((self . bits & 3) as u8) } # [doc = "Bit 4 - CCONRUN: Forces SYSOSC to run at base frequency when device is in RUN mode which can be used as ADC sample or conversion clock source."]
# [inline (always)]
pub fn clkcfg_cconrun (& self) -> CLKCFG_CCONRUN_R { CLKCFG_CCONRUN_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - CCONSTOP: Forces SYSOSC to run at base frequency when device is in STOP mode which can be used as ADC sample or conversion clock source."]
# [inline (always)]
pub fn clkcfg_cconstop (& self) -> CLKCFG_CCONSTOP_R { CLKCFG_CCONSTOP_R :: new (((self . bits >> 5) & 1) != 0) } } impl W { # [doc = "Bits 0:1 - ADC sample clock source selection."]
# [inline (always)]
# [must_use]
pub fn clkcfg_sampclk (& mut self) -> CLKCFG_SAMPCLK_W < CLKCFG_SPEC , 0 > { CLKCFG_SAMPCLK_W :: new (self) } # [doc = "Bit 4 - CCONRUN: Forces SYSOSC to run at base frequency when device is in RUN mode which can be used as ADC sample or conversion clock source."]
# [inline (always)]
# [must_use]
pub fn clkcfg_cconrun (& mut self) -> CLKCFG_CCONRUN_W < CLKCFG_SPEC , 4 > { CLKCFG_CCONRUN_W :: new (self) } # [doc = "Bit 5 - CCONSTOP: Forces SYSOSC to run at base frequency when device is in STOP mode which can be used as ADC sample or conversion clock source."]
# [inline (always)]
# [must_use]
pub fn clkcfg_cconstop (& mut self) -> CLKCFG_CCONSTOP_W < CLKCFG_SPEC , 5 > { CLKCFG_CCONSTOP_W :: new (self) } # [doc = "Bits 24:31 - Unlock key"]
# [inline (always)]
# [must_use]
pub fn clkcfg_key (& mut self) -> CLKCFG_KEY_W < CLKCFG_SPEC , 24 > { CLKCFG_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "ADC clock configuration Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkcfg::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkcfg::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CLKCFG_SPEC ; impl crate :: RegisterSpec for CLKCFG_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`clkcfg::R`](R) reader structure"]
impl crate :: Readable for CLKCFG_SPEC { } # [doc = "`write(|w| ..)` method takes [`clkcfg::W`](W) writer structure"]
impl crate :: Writable for CLKCFG_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CLKCFG to value 0"]
impl crate :: Resettable for CLKCFG_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "STAT (r) register accessor: Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@stat`]
module"]
pub type STAT = crate :: Reg < stat :: STAT_SPEC > ; # [doc = "Status Register"]
pub mod stat { # [doc = "Register `STAT` reader"]
pub type R = crate :: R < STAT_SPEC > ; # [doc = "Field `STAT_RESETSTKY` reader - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
pub type STAT_RESETSTKY_R = crate :: BitReader < STAT_RESETSTKY_A > ; # [doc = "This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_RESETSTKY_A { # [doc = "0: NORES"]
STAT_RESETSTKY_NORES = 0 , # [doc = "1: RESET"]
STAT_RESETSTKY_RESET = 1 , } impl From < STAT_RESETSTKY_A > for bool { # [inline (always)]
fn from (variant : STAT_RESETSTKY_A) -> Self { variant as u8 != 0 } } impl STAT_RESETSTKY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_RESETSTKY_A { match self . bits { false => STAT_RESETSTKY_A :: STAT_RESETSTKY_NORES , true => STAT_RESETSTKY_A :: STAT_RESETSTKY_RESET , } } # [doc = "NORES"]
# [inline (always)]
pub fn is_stat_resetstky_nores (& self) -> bool { * self == STAT_RESETSTKY_A :: STAT_RESETSTKY_NORES } # [doc = "RESET"]
# [inline (always)]
pub fn is_stat_resetstky_reset (& self) -> bool { * self == STAT_RESETSTKY_A :: STAT_RESETSTKY_RESET } } impl R { # [doc = "Bit 16 - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
# [inline (always)]
pub fn stat_resetstky (& self) -> STAT_RESETSTKY_R { STAT_RESETSTKY_R :: new (((self . bits >> 16) & 1) != 0) } } # [doc = "Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct STAT_SPEC ; impl crate :: RegisterSpec for STAT_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`stat::R`](R) reader structure"]
impl crate :: Readable for STAT_SPEC { } # [doc = "`reset()` method sets STAT to value 0"]
impl crate :: Resettable for STAT_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_IIDX (r) register accessor: Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_iidx`]
module"]
pub type INT_EVENT0_IIDX = crate :: Reg < int_event0_iidx :: INT_EVENT0_IIDX_SPEC > ; # [doc = "Interrupt index"]
pub mod int_event0_iidx { # [doc = "Register `INT_EVENT0_IIDX` reader"]
pub type R = crate :: R < INT_EVENT0_IIDX_SPEC > ; # [doc = "Field `INT_EVENT0_IIDX_STAT` reader - Interrupt index status"]
pub type INT_EVENT0_IIDX_STAT_R = crate :: FieldReader < INT_EVENT0_IIDX_STAT_A > ; # [doc = "Interrupt index status\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u16)]
pub enum INT_EVENT0_IIDX_STAT_A { # [doc = "0: NO_INTR"]
INT_EVENT0_IIDX_STAT_NO_INTR = 0 , # [doc = "1: OVIFG"]
INT_EVENT0_IIDX_STAT_OVIFG = 1 , # [doc = "2: TOVIFG"]
INT_EVENT0_IIDX_STAT_TOVIFG = 2 , # [doc = "3: HIGHIFG"]
INT_EVENT0_IIDX_STAT_HIGHIFG = 3 , # [doc = "4: LOWIFG"]
INT_EVENT0_IIDX_STAT_LOWIFG = 4 , # [doc = "5: INIFG"]
INT_EVENT0_IIDX_STAT_INIFG = 5 , # [doc = "6: DMADONE"]
INT_EVENT0_IIDX_STAT_DMADONE = 6 , # [doc = "7: UVIFG"]
INT_EVENT0_IIDX_STAT_UVIFG = 7 , # [doc = "9: MEMRESIFG0"]
INT_EVENT0_IIDX_STAT_MEMRESIFG0 = 9 , # [doc = "10: MEMRESIFG1"]
INT_EVENT0_IIDX_STAT_MEMRESIFG1 = 10 , # [doc = "11: MEMRESIFG2"]
INT_EVENT0_IIDX_STAT_MEMRESIFG2 = 11 , # [doc = "12: MEMRESIFG3"]
INT_EVENT0_IIDX_STAT_MEMRESIFG3 = 12 , # [doc = "13: MEMRESIFG4"]
INT_EVENT0_IIDX_STAT_MEMRESIFG4 = 13 , # [doc = "14: MEMRESIFG5"]
INT_EVENT0_IIDX_STAT_MEMRESIFG5 = 14 , # [doc = "15: MEMRESIFG6"]
INT_EVENT0_IIDX_STAT_MEMRESIFG6 = 15 , # [doc = "16: MEMRESIFG7"]
INT_EVENT0_IIDX_STAT_MEMRESIFG7 = 16 , # [doc = "17: MEMRESIFG8"]
INT_EVENT0_IIDX_STAT_MEMRESIFG8 = 17 , # [doc = "18: MEMRESIFG9"]
INT_EVENT0_IIDX_STAT_MEMRESIFG9 = 18 , # [doc = "19: MEMRESIFG10"]
INT_EVENT0_IIDX_STAT_MEMRESIFG10 = 19 , # [doc = "20: MEMRESIFG11"]
INT_EVENT0_IIDX_STAT_MEMRESIFG11 = 20 , # [doc = "21: MEMRESIFG12"]
INT_EVENT0_IIDX_STAT_MEMRESIFG12 = 21 , # [doc = "22: MEMRESIFG13"]
INT_EVENT0_IIDX_STAT_MEMRESIFG13 = 22 , # [doc = "23: MEMRESIFG14"]
INT_EVENT0_IIDX_STAT_MEMRESIFG14 = 23 , # [doc = "24: MEMRESIFG15"]
INT_EVENT0_IIDX_STAT_MEMRESIFG15 = 24 , # [doc = "25: MEMRESIFG16"]
INT_EVENT0_IIDX_STAT_MEMRESIFG16 = 25 , # [doc = "26: MEMRESIFG17"]
INT_EVENT0_IIDX_STAT_MEMRESIFG17 = 26 , # [doc = "27: MEMRESIFG18"]
INT_EVENT0_IIDX_STAT_MEMRESIFG18 = 27 , # [doc = "28: MEMRESIFG19"]
INT_EVENT0_IIDX_STAT_MEMRESIFG19 = 28 , # [doc = "29: MEMRESIFG20"]
INT_EVENT0_IIDX_STAT_MEMRESIFG20 = 29 , # [doc = "30: MEMRESIFG21"]
INT_EVENT0_IIDX_STAT_MEMRESIFG21 = 30 , # [doc = "31: MEMRESIFG22"]
INT_EVENT0_IIDX_STAT_MEMRESIFG22 = 31 , # [doc = "32: MEMRESIFG23"]
INT_EVENT0_IIDX_STAT_MEMRESIFG23 = 32 , } impl From < INT_EVENT0_IIDX_STAT_A > for u16 { # [inline (always)]
fn from (variant : INT_EVENT0_IIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for INT_EVENT0_IIDX_STAT_A { type Ux = u16 ; } impl INT_EVENT0_IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < INT_EVENT0_IIDX_STAT_A > { match self . bits { 0 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_NO_INTR) , 1 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_OVIFG) , 2 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_TOVIFG) , 3 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_HIGHIFG) , 4 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_LOWIFG) , 5 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_INIFG) , 6 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DMADONE) , 7 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_UVIFG) , 9 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG0) , 10 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG1) , 11 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG2) , 12 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG3) , 13 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG4) , 14 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG5) , 15 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG6) , 16 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG7) , 17 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG8) , 18 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG9) , 19 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG10) , 20 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG11) , 21 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG12) , 22 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG13) , 23 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG14) , 24 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG15) , 25 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG16) , 26 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG17) , 27 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG18) , 28 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG19) , 29 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG20) , 30 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG21) , 31 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG22) , 32 => Some (INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG23) , _ => None , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_no_intr (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_NO_INTR } # [doc = "OVIFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_ovifg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_OVIFG } # [doc = "TOVIFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_tovifg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_TOVIFG } # [doc = "HIGHIFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_highifg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_HIGHIFG } # [doc = "LOWIFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_lowifg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_LOWIFG } # [doc = "INIFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_inifg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_INIFG } # [doc = "DMADONE"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_dmadone (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_DMADONE } # [doc = "UVIFG"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_uvifg (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_UVIFG } # [doc = "MEMRESIFG0"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_memresifg0 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG0 } # [doc = "MEMRESIFG1"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_memresifg1 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG1 } # [doc = "MEMRESIFG2"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_memresifg2 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG2 } # [doc = "MEMRESIFG3"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_memresifg3 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG3 } # [doc = "MEMRESIFG4"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_memresifg4 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG4 } # [doc = "MEMRESIFG5"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_memresifg5 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG5 } # [doc = "MEMRESIFG6"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_memresifg6 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG6 } # [doc = "MEMRESIFG7"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_memresifg7 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG7 } # [doc = "MEMRESIFG8"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_memresifg8 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG8 } # [doc = "MEMRESIFG9"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_memresifg9 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG9 } # [doc = "MEMRESIFG10"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_memresifg10 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG10 } # [doc = "MEMRESIFG11"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_memresifg11 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG11 } # [doc = "MEMRESIFG12"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_memresifg12 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG12 } # [doc = "MEMRESIFG13"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_memresifg13 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG13 } # [doc = "MEMRESIFG14"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_memresifg14 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG14 } # [doc = "MEMRESIFG15"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_memresifg15 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG15 } # [doc = "MEMRESIFG16"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_memresifg16 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG16 } # [doc = "MEMRESIFG17"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_memresifg17 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG17 } # [doc = "MEMRESIFG18"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_memresifg18 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG18 } # [doc = "MEMRESIFG19"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_memresifg19 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG19 } # [doc = "MEMRESIFG20"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_memresifg20 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG20 } # [doc = "MEMRESIFG21"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_memresifg21 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG21 } # [doc = "MEMRESIFG22"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_memresifg22 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG22 } # [doc = "MEMRESIFG23"]
# [inline (always)]
pub fn is_int_event0_iidx_stat_memresifg23 (& self) -> bool { * self == INT_EVENT0_IIDX_STAT_A :: INT_EVENT0_IIDX_STAT_MEMRESIFG23 } } impl R { # [doc = "Bits 0:9 - Interrupt index status"]
# [inline (always)]
pub fn int_event0_iidx_stat (& self) -> INT_EVENT0_IIDX_STAT_R { INT_EVENT0_IIDX_STAT_R :: new ((self . bits & 0x03ff) as u16) } } # [doc = "Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_IIDX_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event0_iidx::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT0_IIDX_SPEC { } # [doc = "`reset()` method sets INT_EVENT0_IIDX to value 0"]
impl crate :: Resettable for INT_EVENT0_IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_IMASK (rw) register accessor: Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_imask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_imask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_imask`]
module"]
pub type INT_EVENT0_IMASK = crate :: Reg < int_event0_imask :: INT_EVENT0_IMASK_SPEC > ; # [doc = "Interrupt mask"]
pub mod int_event0_imask { # [doc = "Register `INT_EVENT0_IMASK` reader"]
pub type R = crate :: R < INT_EVENT0_IMASK_SPEC > ; # [doc = "Register `INT_EVENT0_IMASK` writer"]
pub type W = crate :: W < INT_EVENT0_IMASK_SPEC > ; # [doc = "Field `INT_EVENT0_IMASK_OVIFG` reader - Raw interrupt flag for MEMRESx overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT0_IMASK_OVIFG_R = crate :: BitReader < INT_EVENT0_IMASK_OVIFG_A > ; # [doc = "Raw interrupt flag for MEMRESx overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_OVIFG_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_OVIFG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_OVIFG_SET = 1 , } impl From < INT_EVENT0_IMASK_OVIFG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_OVIFG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_OVIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_OVIFG_A { match self . bits { false => INT_EVENT0_IMASK_OVIFG_A :: INT_EVENT0_IMASK_OVIFG_CLR , true => INT_EVENT0_IMASK_OVIFG_A :: INT_EVENT0_IMASK_OVIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_ovifg_clr (& self) -> bool { * self == INT_EVENT0_IMASK_OVIFG_A :: INT_EVENT0_IMASK_OVIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_ovifg_set (& self) -> bool { * self == INT_EVENT0_IMASK_OVIFG_A :: INT_EVENT0_IMASK_OVIFG_SET } } # [doc = "Field `INT_EVENT0_IMASK_OVIFG` writer - Raw interrupt flag for MEMRESx overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT0_IMASK_OVIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_OVIFG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_OVIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_ovifg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_OVIFG_A :: INT_EVENT0_IMASK_OVIFG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_ovifg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_OVIFG_A :: INT_EVENT0_IMASK_OVIFG_SET) } } # [doc = "Field `INT_EVENT0_IMASK_TOVIFG` reader - Raw interrupt flag for sequence conversion timeout overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT0_IMASK_TOVIFG_R = crate :: BitReader < INT_EVENT0_IMASK_TOVIFG_A > ; # [doc = "Raw interrupt flag for sequence conversion timeout overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_TOVIFG_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_TOVIFG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_TOVIFG_SET = 1 , } impl From < INT_EVENT0_IMASK_TOVIFG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_TOVIFG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_TOVIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_TOVIFG_A { match self . bits { false => INT_EVENT0_IMASK_TOVIFG_A :: INT_EVENT0_IMASK_TOVIFG_CLR , true => INT_EVENT0_IMASK_TOVIFG_A :: INT_EVENT0_IMASK_TOVIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_tovifg_clr (& self) -> bool { * self == INT_EVENT0_IMASK_TOVIFG_A :: INT_EVENT0_IMASK_TOVIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_tovifg_set (& self) -> bool { * self == INT_EVENT0_IMASK_TOVIFG_A :: INT_EVENT0_IMASK_TOVIFG_SET } } # [doc = "Field `INT_EVENT0_IMASK_TOVIFG` writer - Raw interrupt flag for sequence conversion timeout overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT0_IMASK_TOVIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_TOVIFG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_TOVIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_tovifg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_TOVIFG_A :: INT_EVENT0_IMASK_TOVIFG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_tovifg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_TOVIFG_A :: INT_EVENT0_IMASK_TOVIFG_SET) } } # [doc = "Field `INT_EVENT0_IMASK_HIGHIFG` reader - Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT0_IMASK_HIGHIFG_R = crate :: BitReader < INT_EVENT0_IMASK_HIGHIFG_A > ; # [doc = "Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_HIGHIFG_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_HIGHIFG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_HIGHIFG_SET = 1 , } impl From < INT_EVENT0_IMASK_HIGHIFG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_HIGHIFG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_HIGHIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_HIGHIFG_A { match self . bits { false => INT_EVENT0_IMASK_HIGHIFG_A :: INT_EVENT0_IMASK_HIGHIFG_CLR , true => INT_EVENT0_IMASK_HIGHIFG_A :: INT_EVENT0_IMASK_HIGHIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_highifg_clr (& self) -> bool { * self == INT_EVENT0_IMASK_HIGHIFG_A :: INT_EVENT0_IMASK_HIGHIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_highifg_set (& self) -> bool { * self == INT_EVENT0_IMASK_HIGHIFG_A :: INT_EVENT0_IMASK_HIGHIFG_SET } } # [doc = "Field `INT_EVENT0_IMASK_HIGHIFG` writer - Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT0_IMASK_HIGHIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_HIGHIFG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_HIGHIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_highifg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_HIGHIFG_A :: INT_EVENT0_IMASK_HIGHIFG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_highifg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_HIGHIFG_A :: INT_EVENT0_IMASK_HIGHIFG_SET) } } # [doc = "Field `INT_EVENT0_IMASK_LOWIFG` reader - Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT0_IMASK_LOWIFG_R = crate :: BitReader < INT_EVENT0_IMASK_LOWIFG_A > ; # [doc = "Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_LOWIFG_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_LOWIFG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_LOWIFG_SET = 1 , } impl From < INT_EVENT0_IMASK_LOWIFG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_LOWIFG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_LOWIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_LOWIFG_A { match self . bits { false => INT_EVENT0_IMASK_LOWIFG_A :: INT_EVENT0_IMASK_LOWIFG_CLR , true => INT_EVENT0_IMASK_LOWIFG_A :: INT_EVENT0_IMASK_LOWIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_lowifg_clr (& self) -> bool { * self == INT_EVENT0_IMASK_LOWIFG_A :: INT_EVENT0_IMASK_LOWIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_lowifg_set (& self) -> bool { * self == INT_EVENT0_IMASK_LOWIFG_A :: INT_EVENT0_IMASK_LOWIFG_SET } } # [doc = "Field `INT_EVENT0_IMASK_LOWIFG` writer - Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT0_IMASK_LOWIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_LOWIFG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_LOWIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_lowifg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_LOWIFG_A :: INT_EVENT0_IMASK_LOWIFG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_lowifg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_LOWIFG_A :: INT_EVENT0_IMASK_LOWIFG_SET) } } # [doc = "Field `INT_EVENT0_IMASK_INIFG` reader - Mask INIFG in MIS_EX register."]
pub type INT_EVENT0_IMASK_INIFG_R = crate :: BitReader < INT_EVENT0_IMASK_INIFG_A > ; # [doc = "Mask INIFG in MIS_EX register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_INIFG_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_INIFG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_INIFG_SET = 1 , } impl From < INT_EVENT0_IMASK_INIFG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_INIFG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_INIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_INIFG_A { match self . bits { false => INT_EVENT0_IMASK_INIFG_A :: INT_EVENT0_IMASK_INIFG_CLR , true => INT_EVENT0_IMASK_INIFG_A :: INT_EVENT0_IMASK_INIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_inifg_clr (& self) -> bool { * self == INT_EVENT0_IMASK_INIFG_A :: INT_EVENT0_IMASK_INIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_inifg_set (& self) -> bool { * self == INT_EVENT0_IMASK_INIFG_A :: INT_EVENT0_IMASK_INIFG_SET } } # [doc = "Field `INT_EVENT0_IMASK_INIFG` writer - Mask INIFG in MIS_EX register."]
pub type INT_EVENT0_IMASK_INIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_INIFG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_INIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_inifg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_INIFG_A :: INT_EVENT0_IMASK_INIFG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_inifg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_INIFG_A :: INT_EVENT0_IMASK_INIFG_SET) } } # [doc = "Field `INT_EVENT0_IMASK_DMADONE` reader - Raw interrupt flag for DMADONE. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT0_IMASK_DMADONE_R = crate :: BitReader < INT_EVENT0_IMASK_DMADONE_A > ; # [doc = "Raw interrupt flag for DMADONE. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_DMADONE_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_DMADONE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_DMADONE_SET = 1 , } impl From < INT_EVENT0_IMASK_DMADONE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_DMADONE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_DMADONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_DMADONE_A { match self . bits { false => INT_EVENT0_IMASK_DMADONE_A :: INT_EVENT0_IMASK_DMADONE_CLR , true => INT_EVENT0_IMASK_DMADONE_A :: INT_EVENT0_IMASK_DMADONE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_dmadone_clr (& self) -> bool { * self == INT_EVENT0_IMASK_DMADONE_A :: INT_EVENT0_IMASK_DMADONE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_dmadone_set (& self) -> bool { * self == INT_EVENT0_IMASK_DMADONE_A :: INT_EVENT0_IMASK_DMADONE_SET } } # [doc = "Field `INT_EVENT0_IMASK_DMADONE` writer - Raw interrupt flag for DMADONE. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT0_IMASK_DMADONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_DMADONE_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_DMADONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_dmadone_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DMADONE_A :: INT_EVENT0_IMASK_DMADONE_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_dmadone_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_DMADONE_A :: INT_EVENT0_IMASK_DMADONE_SET) } } # [doc = "Field `INT_EVENT0_IMASK_UVIFG` reader - Raw interrupt flag for MEMRESx underflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR is set to 1."]
pub type INT_EVENT0_IMASK_UVIFG_R = crate :: BitReader < INT_EVENT0_IMASK_UVIFG_A > ; # [doc = "Raw interrupt flag for MEMRESx underflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_UVIFG_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_UVIFG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_UVIFG_SET = 1 , } impl From < INT_EVENT0_IMASK_UVIFG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_UVIFG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_UVIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_UVIFG_A { match self . bits { false => INT_EVENT0_IMASK_UVIFG_A :: INT_EVENT0_IMASK_UVIFG_CLR , true => INT_EVENT0_IMASK_UVIFG_A :: INT_EVENT0_IMASK_UVIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_uvifg_clr (& self) -> bool { * self == INT_EVENT0_IMASK_UVIFG_A :: INT_EVENT0_IMASK_UVIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_uvifg_set (& self) -> bool { * self == INT_EVENT0_IMASK_UVIFG_A :: INT_EVENT0_IMASK_UVIFG_SET } } # [doc = "Field `INT_EVENT0_IMASK_UVIFG` writer - Raw interrupt flag for MEMRESx underflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR is set to 1."]
pub type INT_EVENT0_IMASK_UVIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_UVIFG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_UVIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_uvifg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_UVIFG_A :: INT_EVENT0_IMASK_UVIFG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_uvifg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_UVIFG_A :: INT_EVENT0_IMASK_UVIFG_SET) } } # [doc = "Field `INT_EVENT0_IMASK_MEMRESIFG0` reader - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT0_IMASK_MEMRESIFG0_R = crate :: BitReader < INT_EVENT0_IMASK_MEMRESIFG0_A > ; # [doc = "Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_MEMRESIFG0_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_MEMRESIFG0_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_MEMRESIFG0_SET = 1 , } impl From < INT_EVENT0_IMASK_MEMRESIFG0_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_MEMRESIFG0_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_MEMRESIFG0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_MEMRESIFG0_A { match self . bits { false => INT_EVENT0_IMASK_MEMRESIFG0_A :: INT_EVENT0_IMASK_MEMRESIFG0_CLR , true => INT_EVENT0_IMASK_MEMRESIFG0_A :: INT_EVENT0_IMASK_MEMRESIFG0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_memresifg0_clr (& self) -> bool { * self == INT_EVENT0_IMASK_MEMRESIFG0_A :: INT_EVENT0_IMASK_MEMRESIFG0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_memresifg0_set (& self) -> bool { * self == INT_EVENT0_IMASK_MEMRESIFG0_A :: INT_EVENT0_IMASK_MEMRESIFG0_SET } } # [doc = "Field `INT_EVENT0_IMASK_MEMRESIFG0` writer - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT0_IMASK_MEMRESIFG0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_MEMRESIFG0_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_MEMRESIFG0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_memresifg0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MEMRESIFG0_A :: INT_EVENT0_IMASK_MEMRESIFG0_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_memresifg0_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MEMRESIFG0_A :: INT_EVENT0_IMASK_MEMRESIFG0_SET) } } # [doc = "Field `INT_EVENT0_IMASK_MEMRESIFG1` reader - Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT0_IMASK_MEMRESIFG1_R = crate :: BitReader < INT_EVENT0_IMASK_MEMRESIFG1_A > ; # [doc = "Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_MEMRESIFG1_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_MEMRESIFG1_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_MEMRESIFG1_SET = 1 , } impl From < INT_EVENT0_IMASK_MEMRESIFG1_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_MEMRESIFG1_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_MEMRESIFG1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_MEMRESIFG1_A { match self . bits { false => INT_EVENT0_IMASK_MEMRESIFG1_A :: INT_EVENT0_IMASK_MEMRESIFG1_CLR , true => INT_EVENT0_IMASK_MEMRESIFG1_A :: INT_EVENT0_IMASK_MEMRESIFG1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_memresifg1_clr (& self) -> bool { * self == INT_EVENT0_IMASK_MEMRESIFG1_A :: INT_EVENT0_IMASK_MEMRESIFG1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_memresifg1_set (& self) -> bool { * self == INT_EVENT0_IMASK_MEMRESIFG1_A :: INT_EVENT0_IMASK_MEMRESIFG1_SET } } # [doc = "Field `INT_EVENT0_IMASK_MEMRESIFG1` writer - Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT0_IMASK_MEMRESIFG1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_MEMRESIFG1_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_MEMRESIFG1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_memresifg1_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MEMRESIFG1_A :: INT_EVENT0_IMASK_MEMRESIFG1_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_memresifg1_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MEMRESIFG1_A :: INT_EVENT0_IMASK_MEMRESIFG1_SET) } } # [doc = "Field `INT_EVENT0_IMASK_MEMRESIFG2` reader - Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT0_IMASK_MEMRESIFG2_R = crate :: BitReader < INT_EVENT0_IMASK_MEMRESIFG2_A > ; # [doc = "Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_MEMRESIFG2_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_MEMRESIFG2_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_MEMRESIFG2_SET = 1 , } impl From < INT_EVENT0_IMASK_MEMRESIFG2_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_MEMRESIFG2_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_MEMRESIFG2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_MEMRESIFG2_A { match self . bits { false => INT_EVENT0_IMASK_MEMRESIFG2_A :: INT_EVENT0_IMASK_MEMRESIFG2_CLR , true => INT_EVENT0_IMASK_MEMRESIFG2_A :: INT_EVENT0_IMASK_MEMRESIFG2_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_memresifg2_clr (& self) -> bool { * self == INT_EVENT0_IMASK_MEMRESIFG2_A :: INT_EVENT0_IMASK_MEMRESIFG2_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_memresifg2_set (& self) -> bool { * self == INT_EVENT0_IMASK_MEMRESIFG2_A :: INT_EVENT0_IMASK_MEMRESIFG2_SET } } # [doc = "Field `INT_EVENT0_IMASK_MEMRESIFG2` writer - Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT0_IMASK_MEMRESIFG2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_MEMRESIFG2_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_MEMRESIFG2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_memresifg2_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MEMRESIFG2_A :: INT_EVENT0_IMASK_MEMRESIFG2_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_memresifg2_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MEMRESIFG2_A :: INT_EVENT0_IMASK_MEMRESIFG2_SET) } } # [doc = "Field `INT_EVENT0_IMASK_MEMRESIFG3` reader - Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT0_IMASK_MEMRESIFG3_R = crate :: BitReader < INT_EVENT0_IMASK_MEMRESIFG3_A > ; # [doc = "Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_IMASK_MEMRESIFG3_A { # [doc = "0: CLR"]
INT_EVENT0_IMASK_MEMRESIFG3_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_IMASK_MEMRESIFG3_SET = 1 , } impl From < INT_EVENT0_IMASK_MEMRESIFG3_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_IMASK_MEMRESIFG3_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_IMASK_MEMRESIFG3_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_IMASK_MEMRESIFG3_A { match self . bits { false => INT_EVENT0_IMASK_MEMRESIFG3_A :: INT_EVENT0_IMASK_MEMRESIFG3_CLR , true => INT_EVENT0_IMASK_MEMRESIFG3_A :: INT_EVENT0_IMASK_MEMRESIFG3_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_imask_memresifg3_clr (& self) -> bool { * self == INT_EVENT0_IMASK_MEMRESIFG3_A :: INT_EVENT0_IMASK_MEMRESIFG3_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_imask_memresifg3_set (& self) -> bool { * self == INT_EVENT0_IMASK_MEMRESIFG3_A :: INT_EVENT0_IMASK_MEMRESIFG3_SET } } # [doc = "Field `INT_EVENT0_IMASK_MEMRESIFG3` writer - Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT0_IMASK_MEMRESIFG3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_IMASK_MEMRESIFG3_A > ; impl < 'a , REG , const O : u8 > INT_EVENT0_IMASK_MEMRESIFG3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_imask_memresifg3_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MEMRESIFG3_A :: INT_EVENT0_IMASK_MEMRESIFG3_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_imask_memresifg3_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_IMASK_MEMRESIFG3_A :: INT_EVENT0_IMASK_MEMRESIFG3_SET) } } impl R { # [doc = "Bit 0 - Raw interrupt flag for MEMRESx overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
pub fn int_event0_imask_ovifg (& self) -> INT_EVENT0_IMASK_OVIFG_R { INT_EVENT0_IMASK_OVIFG_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Raw interrupt flag for sequence conversion timeout overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
pub fn int_event0_imask_tovifg (& self) -> INT_EVENT0_IMASK_TOVIFG_R { INT_EVENT0_IMASK_TOVIFG_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
pub fn int_event0_imask_highifg (& self) -> INT_EVENT0_IMASK_HIGHIFG_R { INT_EVENT0_IMASK_HIGHIFG_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
pub fn int_event0_imask_lowifg (& self) -> INT_EVENT0_IMASK_LOWIFG_R { INT_EVENT0_IMASK_LOWIFG_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - Mask INIFG in MIS_EX register."]
# [inline (always)]
pub fn int_event0_imask_inifg (& self) -> INT_EVENT0_IMASK_INIFG_R { INT_EVENT0_IMASK_INIFG_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Raw interrupt flag for DMADONE. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
pub fn int_event0_imask_dmadone (& self) -> INT_EVENT0_IMASK_DMADONE_R { INT_EVENT0_IMASK_DMADONE_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - Raw interrupt flag for MEMRESx underflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR is set to 1."]
# [inline (always)]
pub fn int_event0_imask_uvifg (& self) -> INT_EVENT0_IMASK_UVIFG_R { INT_EVENT0_IMASK_UVIFG_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 8 - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
pub fn int_event0_imask_memresifg0 (& self) -> INT_EVENT0_IMASK_MEMRESIFG0_R { INT_EVENT0_IMASK_MEMRESIFG0_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
pub fn int_event0_imask_memresifg1 (& self) -> INT_EVENT0_IMASK_MEMRESIFG1_R { INT_EVENT0_IMASK_MEMRESIFG1_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
pub fn int_event0_imask_memresifg2 (& self) -> INT_EVENT0_IMASK_MEMRESIFG2_R { INT_EVENT0_IMASK_MEMRESIFG2_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bit 11 - Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
pub fn int_event0_imask_memresifg3 (& self) -> INT_EVENT0_IMASK_MEMRESIFG3_R { INT_EVENT0_IMASK_MEMRESIFG3_R :: new (((self . bits >> 11) & 1) != 0) } } impl W { # [doc = "Bit 0 - Raw interrupt flag for MEMRESx overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_ovifg (& mut self) -> INT_EVENT0_IMASK_OVIFG_W < INT_EVENT0_IMASK_SPEC , 0 > { INT_EVENT0_IMASK_OVIFG_W :: new (self) } # [doc = "Bit 1 - Raw interrupt flag for sequence conversion timeout overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_tovifg (& mut self) -> INT_EVENT0_IMASK_TOVIFG_W < INT_EVENT0_IMASK_SPEC , 1 > { INT_EVENT0_IMASK_TOVIFG_W :: new (self) } # [doc = "Bit 2 - Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_highifg (& mut self) -> INT_EVENT0_IMASK_HIGHIFG_W < INT_EVENT0_IMASK_SPEC , 2 > { INT_EVENT0_IMASK_HIGHIFG_W :: new (self) } # [doc = "Bit 3 - Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_lowifg (& mut self) -> INT_EVENT0_IMASK_LOWIFG_W < INT_EVENT0_IMASK_SPEC , 3 > { INT_EVENT0_IMASK_LOWIFG_W :: new (self) } # [doc = "Bit 4 - Mask INIFG in MIS_EX register."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_inifg (& mut self) -> INT_EVENT0_IMASK_INIFG_W < INT_EVENT0_IMASK_SPEC , 4 > { INT_EVENT0_IMASK_INIFG_W :: new (self) } # [doc = "Bit 5 - Raw interrupt flag for DMADONE. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_dmadone (& mut self) -> INT_EVENT0_IMASK_DMADONE_W < INT_EVENT0_IMASK_SPEC , 5 > { INT_EVENT0_IMASK_DMADONE_W :: new (self) } # [doc = "Bit 6 - Raw interrupt flag for MEMRESx underflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR is set to 1."]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_uvifg (& mut self) -> INT_EVENT0_IMASK_UVIFG_W < INT_EVENT0_IMASK_SPEC , 6 > { INT_EVENT0_IMASK_UVIFG_W :: new (self) } # [doc = "Bit 8 - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_memresifg0 (& mut self) -> INT_EVENT0_IMASK_MEMRESIFG0_W < INT_EVENT0_IMASK_SPEC , 8 > { INT_EVENT0_IMASK_MEMRESIFG0_W :: new (self) } # [doc = "Bit 9 - Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_memresifg1 (& mut self) -> INT_EVENT0_IMASK_MEMRESIFG1_W < INT_EVENT0_IMASK_SPEC , 9 > { INT_EVENT0_IMASK_MEMRESIFG1_W :: new (self) } # [doc = "Bit 10 - Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_memresifg2 (& mut self) -> INT_EVENT0_IMASK_MEMRESIFG2_W < INT_EVENT0_IMASK_SPEC , 10 > { INT_EVENT0_IMASK_MEMRESIFG2_W :: new (self) } # [doc = "Bit 11 - Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
# [must_use]
pub fn int_event0_imask_memresifg3 (& mut self) -> INT_EVENT0_IMASK_MEMRESIFG3_W < INT_EVENT0_IMASK_SPEC , 11 > { INT_EVENT0_IMASK_MEMRESIFG3_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_imask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_imask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_IMASK_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event0_imask::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT0_IMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`int_event0_imask::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT0_IMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT0_IMASK to value 0"]
impl crate :: Resettable for INT_EVENT0_IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_RIS (r) register accessor: Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_ris`]
module"]
pub type INT_EVENT0_RIS = crate :: Reg < int_event0_ris :: INT_EVENT0_RIS_SPEC > ; # [doc = "Raw interrupt status"]
pub mod int_event0_ris { # [doc = "Register `INT_EVENT0_RIS` reader"]
pub type R = crate :: R < INT_EVENT0_RIS_SPEC > ; # [doc = "Field `INT_EVENT0_RIS_OVIFG` reader - Raw interrupt flag for MEMRESx overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT0_RIS_OVIFG_R = crate :: BitReader < INT_EVENT0_RIS_OVIFG_A > ; # [doc = "Raw interrupt flag for MEMRESx overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_OVIFG_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_OVIFG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_OVIFG_SET = 1 , } impl From < INT_EVENT0_RIS_OVIFG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_OVIFG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_OVIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_OVIFG_A { match self . bits { false => INT_EVENT0_RIS_OVIFG_A :: INT_EVENT0_RIS_OVIFG_CLR , true => INT_EVENT0_RIS_OVIFG_A :: INT_EVENT0_RIS_OVIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_ovifg_clr (& self) -> bool { * self == INT_EVENT0_RIS_OVIFG_A :: INT_EVENT0_RIS_OVIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_ovifg_set (& self) -> bool { * self == INT_EVENT0_RIS_OVIFG_A :: INT_EVENT0_RIS_OVIFG_SET } } # [doc = "Field `INT_EVENT0_RIS_TOVIFG` reader - Raw interrupt flag for sequence conversion trigger overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT0_RIS_TOVIFG_R = crate :: BitReader < INT_EVENT0_RIS_TOVIFG_A > ; # [doc = "Raw interrupt flag for sequence conversion trigger overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_TOVIFG_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_TOVIFG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_TOVIFG_SET = 1 , } impl From < INT_EVENT0_RIS_TOVIFG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_TOVIFG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_TOVIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_TOVIFG_A { match self . bits { false => INT_EVENT0_RIS_TOVIFG_A :: INT_EVENT0_RIS_TOVIFG_CLR , true => INT_EVENT0_RIS_TOVIFG_A :: INT_EVENT0_RIS_TOVIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_tovifg_clr (& self) -> bool { * self == INT_EVENT0_RIS_TOVIFG_A :: INT_EVENT0_RIS_TOVIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_tovifg_set (& self) -> bool { * self == INT_EVENT0_RIS_TOVIFG_A :: INT_EVENT0_RIS_TOVIFG_SET } } # [doc = "Field `INT_EVENT0_RIS_HIGHIFG` reader - Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT0_RIS_HIGHIFG_R = crate :: BitReader < INT_EVENT0_RIS_HIGHIFG_A > ; # [doc = "Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_HIGHIFG_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_HIGHIFG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_HIGHIFG_SET = 1 , } impl From < INT_EVENT0_RIS_HIGHIFG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_HIGHIFG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_HIGHIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_HIGHIFG_A { match self . bits { false => INT_EVENT0_RIS_HIGHIFG_A :: INT_EVENT0_RIS_HIGHIFG_CLR , true => INT_EVENT0_RIS_HIGHIFG_A :: INT_EVENT0_RIS_HIGHIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_highifg_clr (& self) -> bool { * self == INT_EVENT0_RIS_HIGHIFG_A :: INT_EVENT0_RIS_HIGHIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_highifg_set (& self) -> bool { * self == INT_EVENT0_RIS_HIGHIFG_A :: INT_EVENT0_RIS_HIGHIFG_SET } } # [doc = "Field `INT_EVENT0_RIS_LOWIFG` reader - Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT0_RIS_LOWIFG_R = crate :: BitReader < INT_EVENT0_RIS_LOWIFG_A > ; # [doc = "Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_LOWIFG_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_LOWIFG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_LOWIFG_SET = 1 , } impl From < INT_EVENT0_RIS_LOWIFG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_LOWIFG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_LOWIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_LOWIFG_A { match self . bits { false => INT_EVENT0_RIS_LOWIFG_A :: INT_EVENT0_RIS_LOWIFG_CLR , true => INT_EVENT0_RIS_LOWIFG_A :: INT_EVENT0_RIS_LOWIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_lowifg_clr (& self) -> bool { * self == INT_EVENT0_RIS_LOWIFG_A :: INT_EVENT0_RIS_LOWIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_lowifg_set (& self) -> bool { * self == INT_EVENT0_RIS_LOWIFG_A :: INT_EVENT0_RIS_LOWIFG_SET } } # [doc = "Field `INT_EVENT0_RIS_INIFG` reader - Mask INIFG in MIS_EX register."]
pub type INT_EVENT0_RIS_INIFG_R = crate :: BitReader < INT_EVENT0_RIS_INIFG_A > ; # [doc = "Mask INIFG in MIS_EX register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_INIFG_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_INIFG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_INIFG_SET = 1 , } impl From < INT_EVENT0_RIS_INIFG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_INIFG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_INIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_INIFG_A { match self . bits { false => INT_EVENT0_RIS_INIFG_A :: INT_EVENT0_RIS_INIFG_CLR , true => INT_EVENT0_RIS_INIFG_A :: INT_EVENT0_RIS_INIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_inifg_clr (& self) -> bool { * self == INT_EVENT0_RIS_INIFG_A :: INT_EVENT0_RIS_INIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_inifg_set (& self) -> bool { * self == INT_EVENT0_RIS_INIFG_A :: INT_EVENT0_RIS_INIFG_SET } } # [doc = "Field `INT_EVENT0_RIS_DMADONE` reader - Raw interrupt flag for DMADONE. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT0_RIS_DMADONE_R = crate :: BitReader < INT_EVENT0_RIS_DMADONE_A > ; # [doc = "Raw interrupt flag for DMADONE. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_DMADONE_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_DMADONE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_DMADONE_SET = 1 , } impl From < INT_EVENT0_RIS_DMADONE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_DMADONE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_DMADONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_DMADONE_A { match self . bits { false => INT_EVENT0_RIS_DMADONE_A :: INT_EVENT0_RIS_DMADONE_CLR , true => INT_EVENT0_RIS_DMADONE_A :: INT_EVENT0_RIS_DMADONE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_dmadone_clr (& self) -> bool { * self == INT_EVENT0_RIS_DMADONE_A :: INT_EVENT0_RIS_DMADONE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_dmadone_set (& self) -> bool { * self == INT_EVENT0_RIS_DMADONE_A :: INT_EVENT0_RIS_DMADONE_SET } } # [doc = "Field `INT_EVENT0_RIS_UVIFG` reader - Raw interrupt flag for MEMRESx underflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR is set to 1."]
pub type INT_EVENT0_RIS_UVIFG_R = crate :: BitReader < INT_EVENT0_RIS_UVIFG_A > ; # [doc = "Raw interrupt flag for MEMRESx underflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_UVIFG_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_UVIFG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_UVIFG_SET = 1 , } impl From < INT_EVENT0_RIS_UVIFG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_UVIFG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_UVIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_UVIFG_A { match self . bits { false => INT_EVENT0_RIS_UVIFG_A :: INT_EVENT0_RIS_UVIFG_CLR , true => INT_EVENT0_RIS_UVIFG_A :: INT_EVENT0_RIS_UVIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_uvifg_clr (& self) -> bool { * self == INT_EVENT0_RIS_UVIFG_A :: INT_EVENT0_RIS_UVIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_uvifg_set (& self) -> bool { * self == INT_EVENT0_RIS_UVIFG_A :: INT_EVENT0_RIS_UVIFG_SET } } # [doc = "Field `INT_EVENT0_RIS_MEMRESIFG0` reader - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT0_RIS_MEMRESIFG0_R = crate :: BitReader < INT_EVENT0_RIS_MEMRESIFG0_A > ; # [doc = "Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_MEMRESIFG0_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_MEMRESIFG0_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_MEMRESIFG0_SET = 1 , } impl From < INT_EVENT0_RIS_MEMRESIFG0_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_MEMRESIFG0_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_MEMRESIFG0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_MEMRESIFG0_A { match self . bits { false => INT_EVENT0_RIS_MEMRESIFG0_A :: INT_EVENT0_RIS_MEMRESIFG0_CLR , true => INT_EVENT0_RIS_MEMRESIFG0_A :: INT_EVENT0_RIS_MEMRESIFG0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_memresifg0_clr (& self) -> bool { * self == INT_EVENT0_RIS_MEMRESIFG0_A :: INT_EVENT0_RIS_MEMRESIFG0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_memresifg0_set (& self) -> bool { * self == INT_EVENT0_RIS_MEMRESIFG0_A :: INT_EVENT0_RIS_MEMRESIFG0_SET } } # [doc = "Field `INT_EVENT0_RIS_MEMRESIFG1` reader - Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT0_RIS_MEMRESIFG1_R = crate :: BitReader < INT_EVENT0_RIS_MEMRESIFG1_A > ; # [doc = "Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_MEMRESIFG1_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_MEMRESIFG1_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_MEMRESIFG1_SET = 1 , } impl From < INT_EVENT0_RIS_MEMRESIFG1_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_MEMRESIFG1_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_MEMRESIFG1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_MEMRESIFG1_A { match self . bits { false => INT_EVENT0_RIS_MEMRESIFG1_A :: INT_EVENT0_RIS_MEMRESIFG1_CLR , true => INT_EVENT0_RIS_MEMRESIFG1_A :: INT_EVENT0_RIS_MEMRESIFG1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_memresifg1_clr (& self) -> bool { * self == INT_EVENT0_RIS_MEMRESIFG1_A :: INT_EVENT0_RIS_MEMRESIFG1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_memresifg1_set (& self) -> bool { * self == INT_EVENT0_RIS_MEMRESIFG1_A :: INT_EVENT0_RIS_MEMRESIFG1_SET } } # [doc = "Field `INT_EVENT0_RIS_MEMRESIFG2` reader - Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT0_RIS_MEMRESIFG2_R = crate :: BitReader < INT_EVENT0_RIS_MEMRESIFG2_A > ; # [doc = "Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_MEMRESIFG2_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_MEMRESIFG2_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_MEMRESIFG2_SET = 1 , } impl From < INT_EVENT0_RIS_MEMRESIFG2_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_MEMRESIFG2_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_MEMRESIFG2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_MEMRESIFG2_A { match self . bits { false => INT_EVENT0_RIS_MEMRESIFG2_A :: INT_EVENT0_RIS_MEMRESIFG2_CLR , true => INT_EVENT0_RIS_MEMRESIFG2_A :: INT_EVENT0_RIS_MEMRESIFG2_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_memresifg2_clr (& self) -> bool { * self == INT_EVENT0_RIS_MEMRESIFG2_A :: INT_EVENT0_RIS_MEMRESIFG2_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_memresifg2_set (& self) -> bool { * self == INT_EVENT0_RIS_MEMRESIFG2_A :: INT_EVENT0_RIS_MEMRESIFG2_SET } } # [doc = "Field `INT_EVENT0_RIS_MEMRESIFG3` reader - Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT0_RIS_MEMRESIFG3_R = crate :: BitReader < INT_EVENT0_RIS_MEMRESIFG3_A > ; # [doc = "Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_RIS_MEMRESIFG3_A { # [doc = "0: CLR"]
INT_EVENT0_RIS_MEMRESIFG3_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_RIS_MEMRESIFG3_SET = 1 , } impl From < INT_EVENT0_RIS_MEMRESIFG3_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_RIS_MEMRESIFG3_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_RIS_MEMRESIFG3_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_RIS_MEMRESIFG3_A { match self . bits { false => INT_EVENT0_RIS_MEMRESIFG3_A :: INT_EVENT0_RIS_MEMRESIFG3_CLR , true => INT_EVENT0_RIS_MEMRESIFG3_A :: INT_EVENT0_RIS_MEMRESIFG3_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_ris_memresifg3_clr (& self) -> bool { * self == INT_EVENT0_RIS_MEMRESIFG3_A :: INT_EVENT0_RIS_MEMRESIFG3_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_ris_memresifg3_set (& self) -> bool { * self == INT_EVENT0_RIS_MEMRESIFG3_A :: INT_EVENT0_RIS_MEMRESIFG3_SET } } impl R { # [doc = "Bit 0 - Raw interrupt flag for MEMRESx overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
pub fn int_event0_ris_ovifg (& self) -> INT_EVENT0_RIS_OVIFG_R { INT_EVENT0_RIS_OVIFG_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Raw interrupt flag for sequence conversion trigger overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
pub fn int_event0_ris_tovifg (& self) -> INT_EVENT0_RIS_TOVIFG_R { INT_EVENT0_RIS_TOVIFG_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
pub fn int_event0_ris_highifg (& self) -> INT_EVENT0_RIS_HIGHIFG_R { INT_EVENT0_RIS_HIGHIFG_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
pub fn int_event0_ris_lowifg (& self) -> INT_EVENT0_RIS_LOWIFG_R { INT_EVENT0_RIS_LOWIFG_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - Mask INIFG in MIS_EX register."]
# [inline (always)]
pub fn int_event0_ris_inifg (& self) -> INT_EVENT0_RIS_INIFG_R { INT_EVENT0_RIS_INIFG_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Raw interrupt flag for DMADONE. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
pub fn int_event0_ris_dmadone (& self) -> INT_EVENT0_RIS_DMADONE_R { INT_EVENT0_RIS_DMADONE_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - Raw interrupt flag for MEMRESx underflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR is set to 1."]
# [inline (always)]
pub fn int_event0_ris_uvifg (& self) -> INT_EVENT0_RIS_UVIFG_R { INT_EVENT0_RIS_UVIFG_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 8 - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
pub fn int_event0_ris_memresifg0 (& self) -> INT_EVENT0_RIS_MEMRESIFG0_R { INT_EVENT0_RIS_MEMRESIFG0_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
pub fn int_event0_ris_memresifg1 (& self) -> INT_EVENT0_RIS_MEMRESIFG1_R { INT_EVENT0_RIS_MEMRESIFG1_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
pub fn int_event0_ris_memresifg2 (& self) -> INT_EVENT0_RIS_MEMRESIFG2_R { INT_EVENT0_RIS_MEMRESIFG2_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bit 11 - Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
pub fn int_event0_ris_memresifg3 (& self) -> INT_EVENT0_RIS_MEMRESIFG3_R { INT_EVENT0_RIS_MEMRESIFG3_R :: new (((self . bits >> 11) & 1) != 0) } } # [doc = "Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_RIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event0_ris::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT0_RIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT0_RIS to value 0"]
impl crate :: Resettable for INT_EVENT0_RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_MIS (r) register accessor: Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_mis`]
module"]
pub type INT_EVENT0_MIS = crate :: Reg < int_event0_mis :: INT_EVENT0_MIS_SPEC > ; # [doc = "Masked interrupt status"]
pub mod int_event0_mis { # [doc = "Register `INT_EVENT0_MIS` reader"]
pub type R = crate :: R < INT_EVENT0_MIS_SPEC > ; # [doc = "Field `INT_EVENT0_MIS_OVIFG` reader - Raw interrupt flag for MEMRESx overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT0_MIS_OVIFG_R = crate :: BitReader < INT_EVENT0_MIS_OVIFG_A > ; # [doc = "Raw interrupt flag for MEMRESx overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_OVIFG_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_OVIFG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_OVIFG_SET = 1 , } impl From < INT_EVENT0_MIS_OVIFG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_OVIFG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_OVIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_OVIFG_A { match self . bits { false => INT_EVENT0_MIS_OVIFG_A :: INT_EVENT0_MIS_OVIFG_CLR , true => INT_EVENT0_MIS_OVIFG_A :: INT_EVENT0_MIS_OVIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_ovifg_clr (& self) -> bool { * self == INT_EVENT0_MIS_OVIFG_A :: INT_EVENT0_MIS_OVIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_ovifg_set (& self) -> bool { * self == INT_EVENT0_MIS_OVIFG_A :: INT_EVENT0_MIS_OVIFG_SET } } # [doc = "Field `INT_EVENT0_MIS_TOVIFG` reader - Raw interrupt flag for sequence conversion timeout overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT0_MIS_TOVIFG_R = crate :: BitReader < INT_EVENT0_MIS_TOVIFG_A > ; # [doc = "Raw interrupt flag for sequence conversion timeout overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_TOVIFG_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_TOVIFG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_TOVIFG_SET = 1 , } impl From < INT_EVENT0_MIS_TOVIFG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_TOVIFG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_TOVIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_TOVIFG_A { match self . bits { false => INT_EVENT0_MIS_TOVIFG_A :: INT_EVENT0_MIS_TOVIFG_CLR , true => INT_EVENT0_MIS_TOVIFG_A :: INT_EVENT0_MIS_TOVIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_tovifg_clr (& self) -> bool { * self == INT_EVENT0_MIS_TOVIFG_A :: INT_EVENT0_MIS_TOVIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_tovifg_set (& self) -> bool { * self == INT_EVENT0_MIS_TOVIFG_A :: INT_EVENT0_MIS_TOVIFG_SET } } # [doc = "Field `INT_EVENT0_MIS_HIGHIFG` reader - Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT0_MIS_HIGHIFG_R = crate :: BitReader < INT_EVENT0_MIS_HIGHIFG_A > ; # [doc = "Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_HIGHIFG_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_HIGHIFG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_HIGHIFG_SET = 1 , } impl From < INT_EVENT0_MIS_HIGHIFG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_HIGHIFG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_HIGHIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_HIGHIFG_A { match self . bits { false => INT_EVENT0_MIS_HIGHIFG_A :: INT_EVENT0_MIS_HIGHIFG_CLR , true => INT_EVENT0_MIS_HIGHIFG_A :: INT_EVENT0_MIS_HIGHIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_highifg_clr (& self) -> bool { * self == INT_EVENT0_MIS_HIGHIFG_A :: INT_EVENT0_MIS_HIGHIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_highifg_set (& self) -> bool { * self == INT_EVENT0_MIS_HIGHIFG_A :: INT_EVENT0_MIS_HIGHIFG_SET } } # [doc = "Field `INT_EVENT0_MIS_LOWIFG` reader - Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT0_MIS_LOWIFG_R = crate :: BitReader < INT_EVENT0_MIS_LOWIFG_A > ; # [doc = "Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_LOWIFG_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_LOWIFG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_LOWIFG_SET = 1 , } impl From < INT_EVENT0_MIS_LOWIFG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_LOWIFG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_LOWIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_LOWIFG_A { match self . bits { false => INT_EVENT0_MIS_LOWIFG_A :: INT_EVENT0_MIS_LOWIFG_CLR , true => INT_EVENT0_MIS_LOWIFG_A :: INT_EVENT0_MIS_LOWIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_lowifg_clr (& self) -> bool { * self == INT_EVENT0_MIS_LOWIFG_A :: INT_EVENT0_MIS_LOWIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_lowifg_set (& self) -> bool { * self == INT_EVENT0_MIS_LOWIFG_A :: INT_EVENT0_MIS_LOWIFG_SET } } # [doc = "Field `INT_EVENT0_MIS_INIFG` reader - Mask INIFG in MIS_EX register."]
pub type INT_EVENT0_MIS_INIFG_R = crate :: BitReader < INT_EVENT0_MIS_INIFG_A > ; # [doc = "Mask INIFG in MIS_EX register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_INIFG_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_INIFG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_INIFG_SET = 1 , } impl From < INT_EVENT0_MIS_INIFG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_INIFG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_INIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_INIFG_A { match self . bits { false => INT_EVENT0_MIS_INIFG_A :: INT_EVENT0_MIS_INIFG_CLR , true => INT_EVENT0_MIS_INIFG_A :: INT_EVENT0_MIS_INIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_inifg_clr (& self) -> bool { * self == INT_EVENT0_MIS_INIFG_A :: INT_EVENT0_MIS_INIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_inifg_set (& self) -> bool { * self == INT_EVENT0_MIS_INIFG_A :: INT_EVENT0_MIS_INIFG_SET } } # [doc = "Field `INT_EVENT0_MIS_DMADONE` reader - Raw interrupt flag for DMADONE. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT0_MIS_DMADONE_R = crate :: BitReader < INT_EVENT0_MIS_DMADONE_A > ; # [doc = "Raw interrupt flag for DMADONE. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_DMADONE_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_DMADONE_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_DMADONE_SET = 1 , } impl From < INT_EVENT0_MIS_DMADONE_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_DMADONE_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_DMADONE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_DMADONE_A { match self . bits { false => INT_EVENT0_MIS_DMADONE_A :: INT_EVENT0_MIS_DMADONE_CLR , true => INT_EVENT0_MIS_DMADONE_A :: INT_EVENT0_MIS_DMADONE_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_dmadone_clr (& self) -> bool { * self == INT_EVENT0_MIS_DMADONE_A :: INT_EVENT0_MIS_DMADONE_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_dmadone_set (& self) -> bool { * self == INT_EVENT0_MIS_DMADONE_A :: INT_EVENT0_MIS_DMADONE_SET } } # [doc = "Field `INT_EVENT0_MIS_UVIFG` reader - Raw interrupt flag for MEMRESx underflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR is set to 1."]
pub type INT_EVENT0_MIS_UVIFG_R = crate :: BitReader < INT_EVENT0_MIS_UVIFG_A > ; # [doc = "Raw interrupt flag for MEMRESx underflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_UVIFG_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_UVIFG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_UVIFG_SET = 1 , } impl From < INT_EVENT0_MIS_UVIFG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_UVIFG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_UVIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_UVIFG_A { match self . bits { false => INT_EVENT0_MIS_UVIFG_A :: INT_EVENT0_MIS_UVIFG_CLR , true => INT_EVENT0_MIS_UVIFG_A :: INT_EVENT0_MIS_UVIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_uvifg_clr (& self) -> bool { * self == INT_EVENT0_MIS_UVIFG_A :: INT_EVENT0_MIS_UVIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_uvifg_set (& self) -> bool { * self == INT_EVENT0_MIS_UVIFG_A :: INT_EVENT0_MIS_UVIFG_SET } } # [doc = "Field `INT_EVENT0_MIS_MEMRESIFG0` reader - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT0_MIS_MEMRESIFG0_R = crate :: BitReader < INT_EVENT0_MIS_MEMRESIFG0_A > ; # [doc = "Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_MEMRESIFG0_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_MEMRESIFG0_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_MEMRESIFG0_SET = 1 , } impl From < INT_EVENT0_MIS_MEMRESIFG0_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_MEMRESIFG0_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_MEMRESIFG0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_MEMRESIFG0_A { match self . bits { false => INT_EVENT0_MIS_MEMRESIFG0_A :: INT_EVENT0_MIS_MEMRESIFG0_CLR , true => INT_EVENT0_MIS_MEMRESIFG0_A :: INT_EVENT0_MIS_MEMRESIFG0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_memresifg0_clr (& self) -> bool { * self == INT_EVENT0_MIS_MEMRESIFG0_A :: INT_EVENT0_MIS_MEMRESIFG0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_memresifg0_set (& self) -> bool { * self == INT_EVENT0_MIS_MEMRESIFG0_A :: INT_EVENT0_MIS_MEMRESIFG0_SET } } # [doc = "Field `INT_EVENT0_MIS_MEMRESIFG1` reader - Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT0_MIS_MEMRESIFG1_R = crate :: BitReader < INT_EVENT0_MIS_MEMRESIFG1_A > ; # [doc = "Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_MEMRESIFG1_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_MEMRESIFG1_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_MEMRESIFG1_SET = 1 , } impl From < INT_EVENT0_MIS_MEMRESIFG1_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_MEMRESIFG1_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_MEMRESIFG1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_MEMRESIFG1_A { match self . bits { false => INT_EVENT0_MIS_MEMRESIFG1_A :: INT_EVENT0_MIS_MEMRESIFG1_CLR , true => INT_EVENT0_MIS_MEMRESIFG1_A :: INT_EVENT0_MIS_MEMRESIFG1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_memresifg1_clr (& self) -> bool { * self == INT_EVENT0_MIS_MEMRESIFG1_A :: INT_EVENT0_MIS_MEMRESIFG1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_memresifg1_set (& self) -> bool { * self == INT_EVENT0_MIS_MEMRESIFG1_A :: INT_EVENT0_MIS_MEMRESIFG1_SET } } # [doc = "Field `INT_EVENT0_MIS_MEMRESIFG2` reader - Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT0_MIS_MEMRESIFG2_R = crate :: BitReader < INT_EVENT0_MIS_MEMRESIFG2_A > ; # [doc = "Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_MEMRESIFG2_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_MEMRESIFG2_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_MEMRESIFG2_SET = 1 , } impl From < INT_EVENT0_MIS_MEMRESIFG2_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_MEMRESIFG2_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_MEMRESIFG2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_MEMRESIFG2_A { match self . bits { false => INT_EVENT0_MIS_MEMRESIFG2_A :: INT_EVENT0_MIS_MEMRESIFG2_CLR , true => INT_EVENT0_MIS_MEMRESIFG2_A :: INT_EVENT0_MIS_MEMRESIFG2_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_memresifg2_clr (& self) -> bool { * self == INT_EVENT0_MIS_MEMRESIFG2_A :: INT_EVENT0_MIS_MEMRESIFG2_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_memresifg2_set (& self) -> bool { * self == INT_EVENT0_MIS_MEMRESIFG2_A :: INT_EVENT0_MIS_MEMRESIFG2_SET } } # [doc = "Field `INT_EVENT0_MIS_MEMRESIFG3` reader - Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT0_MIS_MEMRESIFG3_R = crate :: BitReader < INT_EVENT0_MIS_MEMRESIFG3_A > ; # [doc = "Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_MIS_MEMRESIFG3_A { # [doc = "0: CLR"]
INT_EVENT0_MIS_MEMRESIFG3_CLR = 0 , # [doc = "1: SET"]
INT_EVENT0_MIS_MEMRESIFG3_SET = 1 , } impl From < INT_EVENT0_MIS_MEMRESIFG3_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_MIS_MEMRESIFG3_A) -> Self { variant as u8 != 0 } } impl INT_EVENT0_MIS_MEMRESIFG3_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT0_MIS_MEMRESIFG3_A { match self . bits { false => INT_EVENT0_MIS_MEMRESIFG3_A :: INT_EVENT0_MIS_MEMRESIFG3_CLR , true => INT_EVENT0_MIS_MEMRESIFG3_A :: INT_EVENT0_MIS_MEMRESIFG3_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event0_mis_memresifg3_clr (& self) -> bool { * self == INT_EVENT0_MIS_MEMRESIFG3_A :: INT_EVENT0_MIS_MEMRESIFG3_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event0_mis_memresifg3_set (& self) -> bool { * self == INT_EVENT0_MIS_MEMRESIFG3_A :: INT_EVENT0_MIS_MEMRESIFG3_SET } } impl R { # [doc = "Bit 0 - Raw interrupt flag for MEMRESx overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
pub fn int_event0_mis_ovifg (& self) -> INT_EVENT0_MIS_OVIFG_R { INT_EVENT0_MIS_OVIFG_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Raw interrupt flag for sequence conversion timeout overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
pub fn int_event0_mis_tovifg (& self) -> INT_EVENT0_MIS_TOVIFG_R { INT_EVENT0_MIS_TOVIFG_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
pub fn int_event0_mis_highifg (& self) -> INT_EVENT0_MIS_HIGHIFG_R { INT_EVENT0_MIS_HIGHIFG_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
pub fn int_event0_mis_lowifg (& self) -> INT_EVENT0_MIS_LOWIFG_R { INT_EVENT0_MIS_LOWIFG_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - Mask INIFG in MIS_EX register."]
# [inline (always)]
pub fn int_event0_mis_inifg (& self) -> INT_EVENT0_MIS_INIFG_R { INT_EVENT0_MIS_INIFG_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Raw interrupt flag for DMADONE. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
pub fn int_event0_mis_dmadone (& self) -> INT_EVENT0_MIS_DMADONE_R { INT_EVENT0_MIS_DMADONE_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 6 - Raw interrupt flag for MEMRESx underflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR is set to 1."]
# [inline (always)]
pub fn int_event0_mis_uvifg (& self) -> INT_EVENT0_MIS_UVIFG_R { INT_EVENT0_MIS_UVIFG_R :: new (((self . bits >> 6) & 1) != 0) } # [doc = "Bit 8 - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
pub fn int_event0_mis_memresifg0 (& self) -> INT_EVENT0_MIS_MEMRESIFG0_R { INT_EVENT0_MIS_MEMRESIFG0_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
pub fn int_event0_mis_memresifg1 (& self) -> INT_EVENT0_MIS_MEMRESIFG1_R { INT_EVENT0_MIS_MEMRESIFG1_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
pub fn int_event0_mis_memresifg2 (& self) -> INT_EVENT0_MIS_MEMRESIFG2_R { INT_EVENT0_MIS_MEMRESIFG2_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bit 11 - Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
pub fn int_event0_mis_memresifg3 (& self) -> INT_EVENT0_MIS_MEMRESIFG3_R { INT_EVENT0_MIS_MEMRESIFG3_R :: new (((self . bits >> 11) & 1) != 0) } } # [doc = "Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event0_mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_MIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event0_mis::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT0_MIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT0_MIS to value 0"]
impl crate :: Resettable for INT_EVENT0_MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_ISET (w) register accessor: Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_iset`]
module"]
pub type INT_EVENT0_ISET = crate :: Reg < int_event0_iset :: INT_EVENT0_ISET_SPEC > ; # [doc = "Interrupt set"]
pub mod int_event0_iset { # [doc = "Register `INT_EVENT0_ISET` writer"]
pub type W = crate :: W < INT_EVENT0_ISET_SPEC > ; # [doc = "Raw interrupt flag for MEMRESx overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_OVIFG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_OVIFG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_OVIFG_SET = 1 , } impl From < INT_EVENT0_ISET_OVIFG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_OVIFG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_OVIFG` writer - Raw interrupt flag for MEMRESx overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT0_ISET_OVIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_OVIFG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_OVIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_ovifg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_OVIFG_AW :: INT_EVENT0_ISET_OVIFG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_ovifg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_OVIFG_AW :: INT_EVENT0_ISET_OVIFG_SET) } } # [doc = "Raw interrupt flag for sequence conversion timeout overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_TOVIFG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_TOVIFG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_TOVIFG_SET = 1 , } impl From < INT_EVENT0_ISET_TOVIFG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_TOVIFG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_TOVIFG` writer - Raw interrupt flag for sequence conversion timeout overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT0_ISET_TOVIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_TOVIFG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_TOVIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_tovifg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_TOVIFG_AW :: INT_EVENT0_ISET_TOVIFG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_tovifg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_TOVIFG_AW :: INT_EVENT0_ISET_TOVIFG_SET) } } # [doc = "Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_HIGHIFG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_HIGHIFG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_HIGHIFG_SET = 1 , } impl From < INT_EVENT0_ISET_HIGHIFG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_HIGHIFG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_HIGHIFG` writer - Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT0_ISET_HIGHIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_HIGHIFG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_HIGHIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_highifg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_HIGHIFG_AW :: INT_EVENT0_ISET_HIGHIFG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_highifg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_HIGHIFG_AW :: INT_EVENT0_ISET_HIGHIFG_SET) } } # [doc = "Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_LOWIFG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_LOWIFG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_LOWIFG_SET = 1 , } impl From < INT_EVENT0_ISET_LOWIFG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_LOWIFG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_LOWIFG` writer - Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT0_ISET_LOWIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_LOWIFG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_LOWIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_lowifg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_LOWIFG_AW :: INT_EVENT0_ISET_LOWIFG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_lowifg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_LOWIFG_AW :: INT_EVENT0_ISET_LOWIFG_SET) } } # [doc = "Mask INIFG in MIS_EX register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_INIFG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_INIFG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_INIFG_SET = 1 , } impl From < INT_EVENT0_ISET_INIFG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_INIFG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_INIFG` writer - Mask INIFG in MIS_EX register."]
pub type INT_EVENT0_ISET_INIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_INIFG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_INIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_inifg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_INIFG_AW :: INT_EVENT0_ISET_INIFG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_inifg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_INIFG_AW :: INT_EVENT0_ISET_INIFG_SET) } } # [doc = "Raw interrupt flag for DMADONE. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_DMADONE_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_DMADONE_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_DMADONE_SET = 1 , } impl From < INT_EVENT0_ISET_DMADONE_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_DMADONE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_DMADONE` writer - Raw interrupt flag for DMADONE. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT0_ISET_DMADONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_DMADONE_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_DMADONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_dmadone_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DMADONE_AW :: INT_EVENT0_ISET_DMADONE_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_dmadone_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_DMADONE_AW :: INT_EVENT0_ISET_DMADONE_SET) } } # [doc = "Raw interrupt flag for MEMRESx underflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_UVIFG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_UVIFG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_UVIFG_SET = 1 , } impl From < INT_EVENT0_ISET_UVIFG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_UVIFG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_UVIFG` writer - Raw interrupt flag for MEMRESx underflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT0_ISET_UVIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_UVIFG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_UVIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_uvifg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_UVIFG_AW :: INT_EVENT0_ISET_UVIFG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_uvifg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_UVIFG_AW :: INT_EVENT0_ISET_UVIFG_SET) } } # [doc = "Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_MEMRESIFG0_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_MEMRESIFG0_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_MEMRESIFG0_SET = 1 , } impl From < INT_EVENT0_ISET_MEMRESIFG0_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_MEMRESIFG0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_MEMRESIFG0` writer - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT0_ISET_MEMRESIFG0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_MEMRESIFG0_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_MEMRESIFG0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_memresifg0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MEMRESIFG0_AW :: INT_EVENT0_ISET_MEMRESIFG0_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_memresifg0_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MEMRESIFG0_AW :: INT_EVENT0_ISET_MEMRESIFG0_SET) } } # [doc = "Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_MEMRESIFG1_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_MEMRESIFG1_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_MEMRESIFG1_SET = 1 , } impl From < INT_EVENT0_ISET_MEMRESIFG1_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_MEMRESIFG1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_MEMRESIFG1` writer - Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT0_ISET_MEMRESIFG1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_MEMRESIFG1_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_MEMRESIFG1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_memresifg1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MEMRESIFG1_AW :: INT_EVENT0_ISET_MEMRESIFG1_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_memresifg1_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MEMRESIFG1_AW :: INT_EVENT0_ISET_MEMRESIFG1_SET) } } # [doc = "Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_MEMRESIFG2_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_MEMRESIFG2_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_MEMRESIFG2_SET = 1 , } impl From < INT_EVENT0_ISET_MEMRESIFG2_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_MEMRESIFG2_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_MEMRESIFG2` writer - Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT0_ISET_MEMRESIFG2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_MEMRESIFG2_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_MEMRESIFG2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_memresifg2_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MEMRESIFG2_AW :: INT_EVENT0_ISET_MEMRESIFG2_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_memresifg2_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MEMRESIFG2_AW :: INT_EVENT0_ISET_MEMRESIFG2_SET) } } # [doc = "Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ISET_MEMRESIFG3_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ISET_MEMRESIFG3_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT0_ISET_MEMRESIFG3_SET = 1 , } impl From < INT_EVENT0_ISET_MEMRESIFG3_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ISET_MEMRESIFG3_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ISET_MEMRESIFG3` writer - Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT0_ISET_MEMRESIFG3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ISET_MEMRESIFG3_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ISET_MEMRESIFG3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iset_memresifg3_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MEMRESIFG3_AW :: INT_EVENT0_ISET_MEMRESIFG3_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event0_iset_memresifg3_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ISET_MEMRESIFG3_AW :: INT_EVENT0_ISET_MEMRESIFG3_SET) } } impl W { # [doc = "Bit 0 - Raw interrupt flag for MEMRESx overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_ovifg (& mut self) -> INT_EVENT0_ISET_OVIFG_W < INT_EVENT0_ISET_SPEC , 0 > { INT_EVENT0_ISET_OVIFG_W :: new (self) } # [doc = "Bit 1 - Raw interrupt flag for sequence conversion timeout overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_tovifg (& mut self) -> INT_EVENT0_ISET_TOVIFG_W < INT_EVENT0_ISET_SPEC , 1 > { INT_EVENT0_ISET_TOVIFG_W :: new (self) } # [doc = "Bit 2 - Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_highifg (& mut self) -> INT_EVENT0_ISET_HIGHIFG_W < INT_EVENT0_ISET_SPEC , 2 > { INT_EVENT0_ISET_HIGHIFG_W :: new (self) } # [doc = "Bit 3 - Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_lowifg (& mut self) -> INT_EVENT0_ISET_LOWIFG_W < INT_EVENT0_ISET_SPEC , 3 > { INT_EVENT0_ISET_LOWIFG_W :: new (self) } # [doc = "Bit 4 - Mask INIFG in MIS_EX register."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_inifg (& mut self) -> INT_EVENT0_ISET_INIFG_W < INT_EVENT0_ISET_SPEC , 4 > { INT_EVENT0_ISET_INIFG_W :: new (self) } # [doc = "Bit 5 - Raw interrupt flag for DMADONE. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_dmadone (& mut self) -> INT_EVENT0_ISET_DMADONE_W < INT_EVENT0_ISET_SPEC , 5 > { INT_EVENT0_ISET_DMADONE_W :: new (self) } # [doc = "Bit 6 - Raw interrupt flag for MEMRESx underflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_uvifg (& mut self) -> INT_EVENT0_ISET_UVIFG_W < INT_EVENT0_ISET_SPEC , 6 > { INT_EVENT0_ISET_UVIFG_W :: new (self) } # [doc = "Bit 8 - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_memresifg0 (& mut self) -> INT_EVENT0_ISET_MEMRESIFG0_W < INT_EVENT0_ISET_SPEC , 8 > { INT_EVENT0_ISET_MEMRESIFG0_W :: new (self) } # [doc = "Bit 9 - Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_memresifg1 (& mut self) -> INT_EVENT0_ISET_MEMRESIFG1_W < INT_EVENT0_ISET_SPEC , 9 > { INT_EVENT0_ISET_MEMRESIFG1_W :: new (self) } # [doc = "Bit 10 - Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_memresifg2 (& mut self) -> INT_EVENT0_ISET_MEMRESIFG2_W < INT_EVENT0_ISET_SPEC , 10 > { INT_EVENT0_ISET_MEMRESIFG2_W :: new (self) } # [doc = "Bit 11 - Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
# [must_use]
pub fn int_event0_iset_memresifg3 (& mut self) -> INT_EVENT0_ISET_MEMRESIFG3_W < INT_EVENT0_ISET_SPEC , 11 > { INT_EVENT0_ISET_MEMRESIFG3_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_ISET_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event0_iset::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT0_ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT0_ISET to value 0"]
impl crate :: Resettable for INT_EVENT0_ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT0_ICLR (w) register accessor: Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event0_iclr`]
module"]
pub type INT_EVENT0_ICLR = crate :: Reg < int_event0_iclr :: INT_EVENT0_ICLR_SPEC > ; # [doc = "Interrupt clear"]
pub mod int_event0_iclr { # [doc = "Register `INT_EVENT0_ICLR` writer"]
pub type W = crate :: W < INT_EVENT0_ICLR_SPEC > ; # [doc = "Raw interrupt flag for MEMRESx overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_OVIFG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_OVIFG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_OVIFG_CLR = 1 , } impl From < INT_EVENT0_ICLR_OVIFG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_OVIFG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_OVIFG` writer - Raw interrupt flag for MEMRESx overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT0_ICLR_OVIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_OVIFG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_OVIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_ovifg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_OVIFG_AW :: INT_EVENT0_ICLR_OVIFG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_ovifg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_OVIFG_AW :: INT_EVENT0_ICLR_OVIFG_CLR) } } # [doc = "Raw interrupt flag for sequence conversion timeout overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_TOVIFG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_TOVIFG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_TOVIFG_CLR = 1 , } impl From < INT_EVENT0_ICLR_TOVIFG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_TOVIFG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_TOVIFG` writer - Raw interrupt flag for sequence conversion timeout overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT0_ICLR_TOVIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_TOVIFG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_TOVIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_tovifg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_TOVIFG_AW :: INT_EVENT0_ICLR_TOVIFG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_tovifg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_TOVIFG_AW :: INT_EVENT0_ICLR_TOVIFG_CLR) } } # [doc = "Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_HIGHIFG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_HIGHIFG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_HIGHIFG_CLR = 1 , } impl From < INT_EVENT0_ICLR_HIGHIFG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_HIGHIFG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_HIGHIFG` writer - Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT0_ICLR_HIGHIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_HIGHIFG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_HIGHIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_highifg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_HIGHIFG_AW :: INT_EVENT0_ICLR_HIGHIFG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_highifg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_HIGHIFG_AW :: INT_EVENT0_ICLR_HIGHIFG_CLR) } } # [doc = "Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_LOWIFG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_LOWIFG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_LOWIFG_CLR = 1 , } impl From < INT_EVENT0_ICLR_LOWIFG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_LOWIFG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_LOWIFG` writer - Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT0_ICLR_LOWIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_LOWIFG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_LOWIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_lowifg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_LOWIFG_AW :: INT_EVENT0_ICLR_LOWIFG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_lowifg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_LOWIFG_AW :: INT_EVENT0_ICLR_LOWIFG_CLR) } } # [doc = "Mask INIFG in MIS_EX register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_INIFG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_INIFG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_INIFG_CLR = 1 , } impl From < INT_EVENT0_ICLR_INIFG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_INIFG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_INIFG` writer - Mask INIFG in MIS_EX register."]
pub type INT_EVENT0_ICLR_INIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_INIFG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_INIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_inifg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_INIFG_AW :: INT_EVENT0_ICLR_INIFG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_inifg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_INIFG_AW :: INT_EVENT0_ICLR_INIFG_CLR) } } # [doc = "Raw interrupt flag for DMADONE. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_DMADONE_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_DMADONE_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_DMADONE_CLR = 1 , } impl From < INT_EVENT0_ICLR_DMADONE_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_DMADONE_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_DMADONE` writer - Raw interrupt flag for DMADONE. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT0_ICLR_DMADONE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_DMADONE_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_DMADONE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_dmadone_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DMADONE_AW :: INT_EVENT0_ICLR_DMADONE_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_dmadone_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_DMADONE_AW :: INT_EVENT0_ICLR_DMADONE_CLR) } } # [doc = "Raw interrupt flag for MEMRESx underflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_UVIFG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_UVIFG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_UVIFG_CLR = 1 , } impl From < INT_EVENT0_ICLR_UVIFG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_UVIFG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_UVIFG` writer - Raw interrupt flag for MEMRESx underflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT0_ICLR_UVIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_UVIFG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_UVIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_uvifg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_UVIFG_AW :: INT_EVENT0_ICLR_UVIFG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_uvifg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_UVIFG_AW :: INT_EVENT0_ICLR_UVIFG_CLR) } } # [doc = "Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_MEMRESIFG0_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_MEMRESIFG0_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_MEMRESIFG0_CLR = 1 , } impl From < INT_EVENT0_ICLR_MEMRESIFG0_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_MEMRESIFG0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_MEMRESIFG0` writer - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT0_ICLR_MEMRESIFG0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_MEMRESIFG0_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_MEMRESIFG0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_memresifg0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MEMRESIFG0_AW :: INT_EVENT0_ICLR_MEMRESIFG0_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_memresifg0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MEMRESIFG0_AW :: INT_EVENT0_ICLR_MEMRESIFG0_CLR) } } # [doc = "Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_MEMRESIFG1_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_MEMRESIFG1_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_MEMRESIFG1_CLR = 1 , } impl From < INT_EVENT0_ICLR_MEMRESIFG1_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_MEMRESIFG1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_MEMRESIFG1` writer - Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT0_ICLR_MEMRESIFG1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_MEMRESIFG1_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_MEMRESIFG1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_memresifg1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MEMRESIFG1_AW :: INT_EVENT0_ICLR_MEMRESIFG1_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_memresifg1_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MEMRESIFG1_AW :: INT_EVENT0_ICLR_MEMRESIFG1_CLR) } } # [doc = "Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_MEMRESIFG2_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_MEMRESIFG2_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_MEMRESIFG2_CLR = 1 , } impl From < INT_EVENT0_ICLR_MEMRESIFG2_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_MEMRESIFG2_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_MEMRESIFG2` writer - Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT0_ICLR_MEMRESIFG2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_MEMRESIFG2_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_MEMRESIFG2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_memresifg2_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MEMRESIFG2_AW :: INT_EVENT0_ICLR_MEMRESIFG2_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_memresifg2_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MEMRESIFG2_AW :: INT_EVENT0_ICLR_MEMRESIFG2_CLR) } } # [doc = "Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT0_ICLR_MEMRESIFG3_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT0_ICLR_MEMRESIFG3_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT0_ICLR_MEMRESIFG3_CLR = 1 , } impl From < INT_EVENT0_ICLR_MEMRESIFG3_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT0_ICLR_MEMRESIFG3_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT0_ICLR_MEMRESIFG3` writer - Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT0_ICLR_MEMRESIFG3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT0_ICLR_MEMRESIFG3_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT0_ICLR_MEMRESIFG3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event0_iclr_memresifg3_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MEMRESIFG3_AW :: INT_EVENT0_ICLR_MEMRESIFG3_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event0_iclr_memresifg3_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT0_ICLR_MEMRESIFG3_AW :: INT_EVENT0_ICLR_MEMRESIFG3_CLR) } } impl W { # [doc = "Bit 0 - Raw interrupt flag for MEMRESx overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_ovifg (& mut self) -> INT_EVENT0_ICLR_OVIFG_W < INT_EVENT0_ICLR_SPEC , 0 > { INT_EVENT0_ICLR_OVIFG_W :: new (self) } # [doc = "Bit 1 - Raw interrupt flag for sequence conversion timeout overflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_tovifg (& mut self) -> INT_EVENT0_ICLR_TOVIFG_W < INT_EVENT0_ICLR_SPEC , 1 > { INT_EVENT0_ICLR_TOVIFG_W :: new (self) } # [doc = "Bit 2 - Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_highifg (& mut self) -> INT_EVENT0_ICLR_HIGHIFG_W < INT_EVENT0_ICLR_SPEC , 2 > { INT_EVENT0_ICLR_HIGHIFG_W :: new (self) } # [doc = "Bit 3 - Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_lowifg (& mut self) -> INT_EVENT0_ICLR_LOWIFG_W < INT_EVENT0_ICLR_SPEC , 3 > { INT_EVENT0_ICLR_LOWIFG_W :: new (self) } # [doc = "Bit 4 - Mask INIFG in MIS_EX register."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_inifg (& mut self) -> INT_EVENT0_ICLR_INIFG_W < INT_EVENT0_ICLR_SPEC , 4 > { INT_EVENT0_ICLR_INIFG_W :: new (self) } # [doc = "Bit 5 - Raw interrupt flag for DMADONE. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_dmadone (& mut self) -> INT_EVENT0_ICLR_DMADONE_W < INT_EVENT0_ICLR_SPEC , 5 > { INT_EVENT0_ICLR_DMADONE_W :: new (self) } # [doc = "Bit 6 - Raw interrupt flag for MEMRESx underflow. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_uvifg (& mut self) -> INT_EVENT0_ICLR_UVIFG_W < INT_EVENT0_ICLR_SPEC , 6 > { INT_EVENT0_ICLR_UVIFG_W :: new (self) } # [doc = "Bit 8 - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_memresifg0 (& mut self) -> INT_EVENT0_ICLR_MEMRESIFG0_W < INT_EVENT0_ICLR_SPEC , 8 > { INT_EVENT0_ICLR_MEMRESIFG0_W :: new (self) } # [doc = "Bit 9 - Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_memresifg1 (& mut self) -> INT_EVENT0_ICLR_MEMRESIFG1_W < INT_EVENT0_ICLR_SPEC , 9 > { INT_EVENT0_ICLR_MEMRESIFG1_W :: new (self) } # [doc = "Bit 10 - Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_memresifg2 (& mut self) -> INT_EVENT0_ICLR_MEMRESIFG2_W < INT_EVENT0_ICLR_SPEC , 10 > { INT_EVENT0_ICLR_MEMRESIFG2_W :: new (self) } # [doc = "Bit 11 - Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
# [must_use]
pub fn int_event0_iclr_memresifg3 (& mut self) -> INT_EVENT0_ICLR_MEMRESIFG3_W < INT_EVENT0_ICLR_SPEC , 11 > { INT_EVENT0_ICLR_MEMRESIFG3_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event0_iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT0_ICLR_SPEC ; impl crate :: RegisterSpec for INT_EVENT0_ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event0_iclr::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT0_ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT0_ICLR to value 0"]
impl crate :: Resettable for INT_EVENT0_ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_IIDX (r) register accessor: Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_iidx`]
module"]
pub type INT_EVENT1_IIDX = crate :: Reg < int_event1_iidx :: INT_EVENT1_IIDX_SPEC > ; # [doc = "Interrupt index"]
pub mod int_event1_iidx { # [doc = "Register `INT_EVENT1_IIDX` reader"]
pub type R = crate :: R < INT_EVENT1_IIDX_SPEC > ; # [doc = "Field `INT_EVENT1_IIDX_STAT` reader - Interrupt index status"]
pub type INT_EVENT1_IIDX_STAT_R = crate :: FieldReader < INT_EVENT1_IIDX_STAT_A > ; # [doc = "Interrupt index status\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u16)]
pub enum INT_EVENT1_IIDX_STAT_A { # [doc = "0: NO_INTR"]
INT_EVENT1_IIDX_STAT_NO_INTR = 0 , # [doc = "3: HIGHIFG"]
INT_EVENT1_IIDX_STAT_HIGHIFG = 3 , # [doc = "4: LOWIFG"]
INT_EVENT1_IIDX_STAT_LOWIFG = 4 , # [doc = "5: INIFG"]
INT_EVENT1_IIDX_STAT_INIFG = 5 , # [doc = "9: MEMRESIFG0"]
INT_EVENT1_IIDX_STAT_MEMRESIFG0 = 9 , } impl From < INT_EVENT1_IIDX_STAT_A > for u16 { # [inline (always)]
fn from (variant : INT_EVENT1_IIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for INT_EVENT1_IIDX_STAT_A { type Ux = u16 ; } impl INT_EVENT1_IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < INT_EVENT1_IIDX_STAT_A > { match self . bits { 0 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_NO_INTR) , 3 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_HIGHIFG) , 4 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_LOWIFG) , 5 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_INIFG) , 9 => Some (INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_MEMRESIFG0) , _ => None , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_no_intr (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_NO_INTR } # [doc = "HIGHIFG"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_highifg (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_HIGHIFG } # [doc = "LOWIFG"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_lowifg (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_LOWIFG } # [doc = "INIFG"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_inifg (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_INIFG } # [doc = "MEMRESIFG0"]
# [inline (always)]
pub fn is_int_event1_iidx_stat_memresifg0 (& self) -> bool { * self == INT_EVENT1_IIDX_STAT_A :: INT_EVENT1_IIDX_STAT_MEMRESIFG0 } } impl R { # [doc = "Bits 0:9 - Interrupt index status"]
# [inline (always)]
pub fn int_event1_iidx_stat (& self) -> INT_EVENT1_IIDX_STAT_R { INT_EVENT1_IIDX_STAT_R :: new ((self . bits & 0x03ff) as u16) } } # [doc = "Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_IIDX_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event1_iidx::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT1_IIDX_SPEC { } # [doc = "`reset()` method sets INT_EVENT1_IIDX to value 0"]
impl crate :: Resettable for INT_EVENT1_IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_IMASK (rw) register accessor: Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_imask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_imask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_imask`]
module"]
pub type INT_EVENT1_IMASK = crate :: Reg < int_event1_imask :: INT_EVENT1_IMASK_SPEC > ; # [doc = "Interrupt mask"]
pub mod int_event1_imask { # [doc = "Register `INT_EVENT1_IMASK` reader"]
pub type R = crate :: R < INT_EVENT1_IMASK_SPEC > ; # [doc = "Register `INT_EVENT1_IMASK` writer"]
pub type W = crate :: W < INT_EVENT1_IMASK_SPEC > ; # [doc = "Field `INT_EVENT1_IMASK_HIGHIFG` reader - Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT1_IMASK_HIGHIFG_R = crate :: BitReader < INT_EVENT1_IMASK_HIGHIFG_A > ; # [doc = "Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_HIGHIFG_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_HIGHIFG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_HIGHIFG_SET = 1 , } impl From < INT_EVENT1_IMASK_HIGHIFG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_HIGHIFG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_HIGHIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_HIGHIFG_A { match self . bits { false => INT_EVENT1_IMASK_HIGHIFG_A :: INT_EVENT1_IMASK_HIGHIFG_CLR , true => INT_EVENT1_IMASK_HIGHIFG_A :: INT_EVENT1_IMASK_HIGHIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_highifg_clr (& self) -> bool { * self == INT_EVENT1_IMASK_HIGHIFG_A :: INT_EVENT1_IMASK_HIGHIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_highifg_set (& self) -> bool { * self == INT_EVENT1_IMASK_HIGHIFG_A :: INT_EVENT1_IMASK_HIGHIFG_SET } } # [doc = "Field `INT_EVENT1_IMASK_HIGHIFG` writer - Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT1_IMASK_HIGHIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_HIGHIFG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_HIGHIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_highifg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_HIGHIFG_A :: INT_EVENT1_IMASK_HIGHIFG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_highifg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_HIGHIFG_A :: INT_EVENT1_IMASK_HIGHIFG_SET) } } # [doc = "Field `INT_EVENT1_IMASK_LOWIFG` reader - Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT1_IMASK_LOWIFG_R = crate :: BitReader < INT_EVENT1_IMASK_LOWIFG_A > ; # [doc = "Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_LOWIFG_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_LOWIFG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_LOWIFG_SET = 1 , } impl From < INT_EVENT1_IMASK_LOWIFG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_LOWIFG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_LOWIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_LOWIFG_A { match self . bits { false => INT_EVENT1_IMASK_LOWIFG_A :: INT_EVENT1_IMASK_LOWIFG_CLR , true => INT_EVENT1_IMASK_LOWIFG_A :: INT_EVENT1_IMASK_LOWIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_lowifg_clr (& self) -> bool { * self == INT_EVENT1_IMASK_LOWIFG_A :: INT_EVENT1_IMASK_LOWIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_lowifg_set (& self) -> bool { * self == INT_EVENT1_IMASK_LOWIFG_A :: INT_EVENT1_IMASK_LOWIFG_SET } } # [doc = "Field `INT_EVENT1_IMASK_LOWIFG` writer - Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT1_IMASK_LOWIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_LOWIFG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_LOWIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_lowifg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_LOWIFG_A :: INT_EVENT1_IMASK_LOWIFG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_lowifg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_LOWIFG_A :: INT_EVENT1_IMASK_LOWIFG_SET) } } # [doc = "Field `INT_EVENT1_IMASK_INIFG` reader - Mask INIFG in MIS_EX register."]
pub type INT_EVENT1_IMASK_INIFG_R = crate :: BitReader < INT_EVENT1_IMASK_INIFG_A > ; # [doc = "Mask INIFG in MIS_EX register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_INIFG_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_INIFG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_INIFG_SET = 1 , } impl From < INT_EVENT1_IMASK_INIFG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_INIFG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_INIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_INIFG_A { match self . bits { false => INT_EVENT1_IMASK_INIFG_A :: INT_EVENT1_IMASK_INIFG_CLR , true => INT_EVENT1_IMASK_INIFG_A :: INT_EVENT1_IMASK_INIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_inifg_clr (& self) -> bool { * self == INT_EVENT1_IMASK_INIFG_A :: INT_EVENT1_IMASK_INIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_inifg_set (& self) -> bool { * self == INT_EVENT1_IMASK_INIFG_A :: INT_EVENT1_IMASK_INIFG_SET } } # [doc = "Field `INT_EVENT1_IMASK_INIFG` writer - Mask INIFG in MIS_EX register."]
pub type INT_EVENT1_IMASK_INIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_INIFG_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_INIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_inifg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_INIFG_A :: INT_EVENT1_IMASK_INIFG_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_inifg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_INIFG_A :: INT_EVENT1_IMASK_INIFG_SET) } } # [doc = "Field `INT_EVENT1_IMASK_MEMRESIFG0` reader - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT1_IMASK_MEMRESIFG0_R = crate :: BitReader < INT_EVENT1_IMASK_MEMRESIFG0_A > ; # [doc = "Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_IMASK_MEMRESIFG0_A { # [doc = "0: CLR"]
INT_EVENT1_IMASK_MEMRESIFG0_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_IMASK_MEMRESIFG0_SET = 1 , } impl From < INT_EVENT1_IMASK_MEMRESIFG0_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_IMASK_MEMRESIFG0_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_IMASK_MEMRESIFG0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_IMASK_MEMRESIFG0_A { match self . bits { false => INT_EVENT1_IMASK_MEMRESIFG0_A :: INT_EVENT1_IMASK_MEMRESIFG0_CLR , true => INT_EVENT1_IMASK_MEMRESIFG0_A :: INT_EVENT1_IMASK_MEMRESIFG0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_imask_memresifg0_clr (& self) -> bool { * self == INT_EVENT1_IMASK_MEMRESIFG0_A :: INT_EVENT1_IMASK_MEMRESIFG0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_imask_memresifg0_set (& self) -> bool { * self == INT_EVENT1_IMASK_MEMRESIFG0_A :: INT_EVENT1_IMASK_MEMRESIFG0_SET } } # [doc = "Field `INT_EVENT1_IMASK_MEMRESIFG0` writer - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT1_IMASK_MEMRESIFG0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_IMASK_MEMRESIFG0_A > ; impl < 'a , REG , const O : u8 > INT_EVENT1_IMASK_MEMRESIFG0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_imask_memresifg0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_MEMRESIFG0_A :: INT_EVENT1_IMASK_MEMRESIFG0_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_imask_memresifg0_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_IMASK_MEMRESIFG0_A :: INT_EVENT1_IMASK_MEMRESIFG0_SET) } } impl R { # [doc = "Bit 2 - Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
pub fn int_event1_imask_highifg (& self) -> INT_EVENT1_IMASK_HIGHIFG_R { INT_EVENT1_IMASK_HIGHIFG_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
pub fn int_event1_imask_lowifg (& self) -> INT_EVENT1_IMASK_LOWIFG_R { INT_EVENT1_IMASK_LOWIFG_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - Mask INIFG in MIS_EX register."]
# [inline (always)]
pub fn int_event1_imask_inifg (& self) -> INT_EVENT1_IMASK_INIFG_R { INT_EVENT1_IMASK_INIFG_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 8 - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
pub fn int_event1_imask_memresifg0 (& self) -> INT_EVENT1_IMASK_MEMRESIFG0_R { INT_EVENT1_IMASK_MEMRESIFG0_R :: new (((self . bits >> 8) & 1) != 0) } } impl W { # [doc = "Bit 2 - Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_highifg (& mut self) -> INT_EVENT1_IMASK_HIGHIFG_W < INT_EVENT1_IMASK_SPEC , 2 > { INT_EVENT1_IMASK_HIGHIFG_W :: new (self) } # [doc = "Bit 3 - Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_lowifg (& mut self) -> INT_EVENT1_IMASK_LOWIFG_W < INT_EVENT1_IMASK_SPEC , 3 > { INT_EVENT1_IMASK_LOWIFG_W :: new (self) } # [doc = "Bit 4 - Mask INIFG in MIS_EX register."]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_inifg (& mut self) -> INT_EVENT1_IMASK_INIFG_W < INT_EVENT1_IMASK_SPEC , 4 > { INT_EVENT1_IMASK_INIFG_W :: new (self) } # [doc = "Bit 8 - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
# [must_use]
pub fn int_event1_imask_memresifg0 (& mut self) -> INT_EVENT1_IMASK_MEMRESIFG0_W < INT_EVENT1_IMASK_SPEC , 8 > { INT_EVENT1_IMASK_MEMRESIFG0_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_imask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_imask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_IMASK_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event1_imask::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT1_IMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`int_event1_imask::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT1_IMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT1_IMASK to value 0"]
impl crate :: Resettable for INT_EVENT1_IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_RIS (r) register accessor: Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_ris`]
module"]
pub type INT_EVENT1_RIS = crate :: Reg < int_event1_ris :: INT_EVENT1_RIS_SPEC > ; # [doc = "Raw interrupt status"]
pub mod int_event1_ris { # [doc = "Register `INT_EVENT1_RIS` reader"]
pub type R = crate :: R < INT_EVENT1_RIS_SPEC > ; # [doc = "Field `INT_EVENT1_RIS_HIGHIFG` reader - Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT1_RIS_HIGHIFG_R = crate :: BitReader < INT_EVENT1_RIS_HIGHIFG_A > ; # [doc = "Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_HIGHIFG_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_HIGHIFG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_HIGHIFG_SET = 1 , } impl From < INT_EVENT1_RIS_HIGHIFG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_HIGHIFG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_HIGHIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_HIGHIFG_A { match self . bits { false => INT_EVENT1_RIS_HIGHIFG_A :: INT_EVENT1_RIS_HIGHIFG_CLR , true => INT_EVENT1_RIS_HIGHIFG_A :: INT_EVENT1_RIS_HIGHIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_highifg_clr (& self) -> bool { * self == INT_EVENT1_RIS_HIGHIFG_A :: INT_EVENT1_RIS_HIGHIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_highifg_set (& self) -> bool { * self == INT_EVENT1_RIS_HIGHIFG_A :: INT_EVENT1_RIS_HIGHIFG_SET } } # [doc = "Field `INT_EVENT1_RIS_LOWIFG` reader - Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT1_RIS_LOWIFG_R = crate :: BitReader < INT_EVENT1_RIS_LOWIFG_A > ; # [doc = "Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_LOWIFG_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_LOWIFG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_LOWIFG_SET = 1 , } impl From < INT_EVENT1_RIS_LOWIFG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_LOWIFG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_LOWIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_LOWIFG_A { match self . bits { false => INT_EVENT1_RIS_LOWIFG_A :: INT_EVENT1_RIS_LOWIFG_CLR , true => INT_EVENT1_RIS_LOWIFG_A :: INT_EVENT1_RIS_LOWIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_lowifg_clr (& self) -> bool { * self == INT_EVENT1_RIS_LOWIFG_A :: INT_EVENT1_RIS_LOWIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_lowifg_set (& self) -> bool { * self == INT_EVENT1_RIS_LOWIFG_A :: INT_EVENT1_RIS_LOWIFG_SET } } # [doc = "Field `INT_EVENT1_RIS_INIFG` reader - Mask INIFG in MIS_EX register."]
pub type INT_EVENT1_RIS_INIFG_R = crate :: BitReader < INT_EVENT1_RIS_INIFG_A > ; # [doc = "Mask INIFG in MIS_EX register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_INIFG_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_INIFG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_INIFG_SET = 1 , } impl From < INT_EVENT1_RIS_INIFG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_INIFG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_INIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_INIFG_A { match self . bits { false => INT_EVENT1_RIS_INIFG_A :: INT_EVENT1_RIS_INIFG_CLR , true => INT_EVENT1_RIS_INIFG_A :: INT_EVENT1_RIS_INIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_inifg_clr (& self) -> bool { * self == INT_EVENT1_RIS_INIFG_A :: INT_EVENT1_RIS_INIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_inifg_set (& self) -> bool { * self == INT_EVENT1_RIS_INIFG_A :: INT_EVENT1_RIS_INIFG_SET } } # [doc = "Field `INT_EVENT1_RIS_MEMRESIFG0` reader - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT1_RIS_MEMRESIFG0_R = crate :: BitReader < INT_EVENT1_RIS_MEMRESIFG0_A > ; # [doc = "Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_RIS_MEMRESIFG0_A { # [doc = "0: CLR"]
INT_EVENT1_RIS_MEMRESIFG0_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_RIS_MEMRESIFG0_SET = 1 , } impl From < INT_EVENT1_RIS_MEMRESIFG0_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_RIS_MEMRESIFG0_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_RIS_MEMRESIFG0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_RIS_MEMRESIFG0_A { match self . bits { false => INT_EVENT1_RIS_MEMRESIFG0_A :: INT_EVENT1_RIS_MEMRESIFG0_CLR , true => INT_EVENT1_RIS_MEMRESIFG0_A :: INT_EVENT1_RIS_MEMRESIFG0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_ris_memresifg0_clr (& self) -> bool { * self == INT_EVENT1_RIS_MEMRESIFG0_A :: INT_EVENT1_RIS_MEMRESIFG0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_ris_memresifg0_set (& self) -> bool { * self == INT_EVENT1_RIS_MEMRESIFG0_A :: INT_EVENT1_RIS_MEMRESIFG0_SET } } impl R { # [doc = "Bit 2 - Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
pub fn int_event1_ris_highifg (& self) -> INT_EVENT1_RIS_HIGHIFG_R { INT_EVENT1_RIS_HIGHIFG_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
pub fn int_event1_ris_lowifg (& self) -> INT_EVENT1_RIS_LOWIFG_R { INT_EVENT1_RIS_LOWIFG_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - Mask INIFG in MIS_EX register."]
# [inline (always)]
pub fn int_event1_ris_inifg (& self) -> INT_EVENT1_RIS_INIFG_R { INT_EVENT1_RIS_INIFG_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 8 - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
pub fn int_event1_ris_memresifg0 (& self) -> INT_EVENT1_RIS_MEMRESIFG0_R { INT_EVENT1_RIS_MEMRESIFG0_R :: new (((self . bits >> 8) & 1) != 0) } } # [doc = "Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_RIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event1_ris::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT1_RIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT1_RIS to value 0"]
impl crate :: Resettable for INT_EVENT1_RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_MIS (r) register accessor: Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_mis`]
module"]
pub type INT_EVENT1_MIS = crate :: Reg < int_event1_mis :: INT_EVENT1_MIS_SPEC > ; # [doc = "Masked interrupt status"]
pub mod int_event1_mis { # [doc = "Register `INT_EVENT1_MIS` reader"]
pub type R = crate :: R < INT_EVENT1_MIS_SPEC > ; # [doc = "Field `INT_EVENT1_MIS_HIGHIFG` reader - Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT1_MIS_HIGHIFG_R = crate :: BitReader < INT_EVENT1_MIS_HIGHIFG_A > ; # [doc = "Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_HIGHIFG_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_HIGHIFG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_HIGHIFG_SET = 1 , } impl From < INT_EVENT1_MIS_HIGHIFG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_HIGHIFG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_HIGHIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_HIGHIFG_A { match self . bits { false => INT_EVENT1_MIS_HIGHIFG_A :: INT_EVENT1_MIS_HIGHIFG_CLR , true => INT_EVENT1_MIS_HIGHIFG_A :: INT_EVENT1_MIS_HIGHIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_highifg_clr (& self) -> bool { * self == INT_EVENT1_MIS_HIGHIFG_A :: INT_EVENT1_MIS_HIGHIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_highifg_set (& self) -> bool { * self == INT_EVENT1_MIS_HIGHIFG_A :: INT_EVENT1_MIS_HIGHIFG_SET } } # [doc = "Field `INT_EVENT1_MIS_LOWIFG` reader - Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT1_MIS_LOWIFG_R = crate :: BitReader < INT_EVENT1_MIS_LOWIFG_A > ; # [doc = "Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_LOWIFG_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_LOWIFG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_LOWIFG_SET = 1 , } impl From < INT_EVENT1_MIS_LOWIFG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_LOWIFG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_LOWIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_LOWIFG_A { match self . bits { false => INT_EVENT1_MIS_LOWIFG_A :: INT_EVENT1_MIS_LOWIFG_CLR , true => INT_EVENT1_MIS_LOWIFG_A :: INT_EVENT1_MIS_LOWIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_lowifg_clr (& self) -> bool { * self == INT_EVENT1_MIS_LOWIFG_A :: INT_EVENT1_MIS_LOWIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_lowifg_set (& self) -> bool { * self == INT_EVENT1_MIS_LOWIFG_A :: INT_EVENT1_MIS_LOWIFG_SET } } # [doc = "Field `INT_EVENT1_MIS_INIFG` reader - Mask INIFG in MIS_EX register."]
pub type INT_EVENT1_MIS_INIFG_R = crate :: BitReader < INT_EVENT1_MIS_INIFG_A > ; # [doc = "Mask INIFG in MIS_EX register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_INIFG_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_INIFG_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_INIFG_SET = 1 , } impl From < INT_EVENT1_MIS_INIFG_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_INIFG_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_INIFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_INIFG_A { match self . bits { false => INT_EVENT1_MIS_INIFG_A :: INT_EVENT1_MIS_INIFG_CLR , true => INT_EVENT1_MIS_INIFG_A :: INT_EVENT1_MIS_INIFG_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_inifg_clr (& self) -> bool { * self == INT_EVENT1_MIS_INIFG_A :: INT_EVENT1_MIS_INIFG_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_inifg_set (& self) -> bool { * self == INT_EVENT1_MIS_INIFG_A :: INT_EVENT1_MIS_INIFG_SET } } # [doc = "Field `INT_EVENT1_MIS_MEMRESIFG0` reader - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT1_MIS_MEMRESIFG0_R = crate :: BitReader < INT_EVENT1_MIS_MEMRESIFG0_A > ; # [doc = "Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_MIS_MEMRESIFG0_A { # [doc = "0: CLR"]
INT_EVENT1_MIS_MEMRESIFG0_CLR = 0 , # [doc = "1: SET"]
INT_EVENT1_MIS_MEMRESIFG0_SET = 1 , } impl From < INT_EVENT1_MIS_MEMRESIFG0_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_MIS_MEMRESIFG0_A) -> Self { variant as u8 != 0 } } impl INT_EVENT1_MIS_MEMRESIFG0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT1_MIS_MEMRESIFG0_A { match self . bits { false => INT_EVENT1_MIS_MEMRESIFG0_A :: INT_EVENT1_MIS_MEMRESIFG0_CLR , true => INT_EVENT1_MIS_MEMRESIFG0_A :: INT_EVENT1_MIS_MEMRESIFG0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event1_mis_memresifg0_clr (& self) -> bool { * self == INT_EVENT1_MIS_MEMRESIFG0_A :: INT_EVENT1_MIS_MEMRESIFG0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event1_mis_memresifg0_set (& self) -> bool { * self == INT_EVENT1_MIS_MEMRESIFG0_A :: INT_EVENT1_MIS_MEMRESIFG0_SET } } impl R { # [doc = "Bit 2 - Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
pub fn int_event1_mis_highifg (& self) -> INT_EVENT1_MIS_HIGHIFG_R { INT_EVENT1_MIS_HIGHIFG_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
pub fn int_event1_mis_lowifg (& self) -> INT_EVENT1_MIS_LOWIFG_R { INT_EVENT1_MIS_LOWIFG_R :: new (((self . bits >> 3) & 1) != 0) } # [doc = "Bit 4 - Mask INIFG in MIS_EX register."]
# [inline (always)]
pub fn int_event1_mis_inifg (& self) -> INT_EVENT1_MIS_INIFG_R { INT_EVENT1_MIS_INIFG_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 8 - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
pub fn int_event1_mis_memresifg0 (& self) -> INT_EVENT1_MIS_MEMRESIFG0_R { INT_EVENT1_MIS_MEMRESIFG0_R :: new (((self . bits >> 8) & 1) != 0) } } # [doc = "Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event1_mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_MIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event1_mis::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT1_MIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT1_MIS to value 0"]
impl crate :: Resettable for INT_EVENT1_MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_ISET (w) register accessor: Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_iset`]
module"]
pub type INT_EVENT1_ISET = crate :: Reg < int_event1_iset :: INT_EVENT1_ISET_SPEC > ; # [doc = "Interrupt set"]
pub mod int_event1_iset { # [doc = "Register `INT_EVENT1_ISET` writer"]
pub type W = crate :: W < INT_EVENT1_ISET_SPEC > ; # [doc = "Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_HIGHIFG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_HIGHIFG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_HIGHIFG_SET = 1 , } impl From < INT_EVENT1_ISET_HIGHIFG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_HIGHIFG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_HIGHIFG` writer - Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT1_ISET_HIGHIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_HIGHIFG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_HIGHIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_highifg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_HIGHIFG_AW :: INT_EVENT1_ISET_HIGHIFG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_highifg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_HIGHIFG_AW :: INT_EVENT1_ISET_HIGHIFG_SET) } } # [doc = "Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_LOWIFG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_LOWIFG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_LOWIFG_SET = 1 , } impl From < INT_EVENT1_ISET_LOWIFG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_LOWIFG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_LOWIFG` writer - Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT1_ISET_LOWIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_LOWIFG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_LOWIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_lowifg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_LOWIFG_AW :: INT_EVENT1_ISET_LOWIFG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_lowifg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_LOWIFG_AW :: INT_EVENT1_ISET_LOWIFG_SET) } } # [doc = "Mask INIFG in MIS_EX register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_INIFG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_INIFG_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_INIFG_SET = 1 , } impl From < INT_EVENT1_ISET_INIFG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_INIFG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_INIFG` writer - Mask INIFG in MIS_EX register."]
pub type INT_EVENT1_ISET_INIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_INIFG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_INIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_inifg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_INIFG_AW :: INT_EVENT1_ISET_INIFG_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_inifg_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_INIFG_AW :: INT_EVENT1_ISET_INIFG_SET) } } # [doc = "Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ISET_MEMRESIFG0_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ISET_MEMRESIFG0_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT1_ISET_MEMRESIFG0_SET = 1 , } impl From < INT_EVENT1_ISET_MEMRESIFG0_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ISET_MEMRESIFG0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ISET_MEMRESIFG0` writer - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT1_ISET_MEMRESIFG0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ISET_MEMRESIFG0_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ISET_MEMRESIFG0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iset_memresifg0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_MEMRESIFG0_AW :: INT_EVENT1_ISET_MEMRESIFG0_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event1_iset_memresifg0_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ISET_MEMRESIFG0_AW :: INT_EVENT1_ISET_MEMRESIFG0_SET) } } impl W { # [doc = "Bit 2 - Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_highifg (& mut self) -> INT_EVENT1_ISET_HIGHIFG_W < INT_EVENT1_ISET_SPEC , 2 > { INT_EVENT1_ISET_HIGHIFG_W :: new (self) } # [doc = "Bit 3 - Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_lowifg (& mut self) -> INT_EVENT1_ISET_LOWIFG_W < INT_EVENT1_ISET_SPEC , 3 > { INT_EVENT1_ISET_LOWIFG_W :: new (self) } # [doc = "Bit 4 - Mask INIFG in MIS_EX register."]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_inifg (& mut self) -> INT_EVENT1_ISET_INIFG_W < INT_EVENT1_ISET_SPEC , 4 > { INT_EVENT1_ISET_INIFG_W :: new (self) } # [doc = "Bit 8 - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
# [must_use]
pub fn int_event1_iset_memresifg0 (& mut self) -> INT_EVENT1_ISET_MEMRESIFG0_W < INT_EVENT1_ISET_SPEC , 8 > { INT_EVENT1_ISET_MEMRESIFG0_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_ISET_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event1_iset::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT1_ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT1_ISET to value 0"]
impl crate :: Resettable for INT_EVENT1_ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT1_ICLR (w) register accessor: Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event1_iclr`]
module"]
pub type INT_EVENT1_ICLR = crate :: Reg < int_event1_iclr :: INT_EVENT1_ICLR_SPEC > ; # [doc = "Interrupt clear"]
pub mod int_event1_iclr { # [doc = "Register `INT_EVENT1_ICLR` writer"]
pub type W = crate :: W < INT_EVENT1_ICLR_SPEC > ; # [doc = "Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_HIGHIFG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_HIGHIFG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_HIGHIFG_CLR = 1 , } impl From < INT_EVENT1_ICLR_HIGHIFG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_HIGHIFG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_HIGHIFG` writer - Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT1_ICLR_HIGHIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_HIGHIFG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_HIGHIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_highifg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_HIGHIFG_AW :: INT_EVENT1_ICLR_HIGHIFG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_highifg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_HIGHIFG_AW :: INT_EVENT1_ICLR_HIGHIFG_CLR) } } # [doc = "Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_LOWIFG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_LOWIFG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_LOWIFG_CLR = 1 , } impl From < INT_EVENT1_ICLR_LOWIFG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_LOWIFG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_LOWIFG` writer - Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
pub type INT_EVENT1_ICLR_LOWIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_LOWIFG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_LOWIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_lowifg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_LOWIFG_AW :: INT_EVENT1_ICLR_LOWIFG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_lowifg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_LOWIFG_AW :: INT_EVENT1_ICLR_LOWIFG_CLR) } } # [doc = "Mask INIFG in MIS_EX register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_INIFG_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_INIFG_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_INIFG_CLR = 1 , } impl From < INT_EVENT1_ICLR_INIFG_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_INIFG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_INIFG` writer - Mask INIFG in MIS_EX register."]
pub type INT_EVENT1_ICLR_INIFG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_INIFG_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_INIFG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_inifg_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_INIFG_AW :: INT_EVENT1_ICLR_INIFG_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_inifg_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_INIFG_AW :: INT_EVENT1_ICLR_INIFG_CLR) } } # [doc = "Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT1_ICLR_MEMRESIFG0_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT1_ICLR_MEMRESIFG0_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT1_ICLR_MEMRESIFG0_CLR = 1 , } impl From < INT_EVENT1_ICLR_MEMRESIFG0_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT1_ICLR_MEMRESIFG0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT1_ICLR_MEMRESIFG0` writer - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT1_ICLR_MEMRESIFG0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT1_ICLR_MEMRESIFG0_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT1_ICLR_MEMRESIFG0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event1_iclr_memresifg0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_MEMRESIFG0_AW :: INT_EVENT1_ICLR_MEMRESIFG0_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event1_iclr_memresifg0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT1_ICLR_MEMRESIFG0_AW :: INT_EVENT1_ICLR_MEMRESIFG0_CLR) } } impl W { # [doc = "Bit 2 - Raw interrupt flag for the MEMRESx result register being higher than the WCHIGHx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_highifg (& mut self) -> INT_EVENT1_ICLR_HIGHIFG_W < INT_EVENT1_ICLR_SPEC , 2 > { INT_EVENT1_ICLR_HIGHIFG_W :: new (self) } # [doc = "Bit 3 - Raw interrupt flag for the MEMRESx result register being below than the WCLOWx threshold of the window comparator. This bit is reset to 0 by IIDX read or when corresponding bit in ICLR_EX is set to 1."]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_lowifg (& mut self) -> INT_EVENT1_ICLR_LOWIFG_W < INT_EVENT1_ICLR_SPEC , 3 > { INT_EVENT1_ICLR_LOWIFG_W :: new (self) } # [doc = "Bit 4 - Mask INIFG in MIS_EX register."]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_inifg (& mut self) -> INT_EVENT1_ICLR_INIFG_W < INT_EVENT1_ICLR_SPEC , 4 > { INT_EVENT1_ICLR_INIFG_W :: new (self) } # [doc = "Bit 8 - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
# [must_use]
pub fn int_event1_iclr_memresifg0 (& mut self) -> INT_EVENT1_ICLR_MEMRESIFG0_W < INT_EVENT1_ICLR_SPEC , 8 > { INT_EVENT1_ICLR_MEMRESIFG0_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event1_iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT1_ICLR_SPEC ; impl crate :: RegisterSpec for INT_EVENT1_ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event1_iclr::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT1_ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT1_ICLR to value 0"]
impl crate :: Resettable for INT_EVENT1_ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_IIDX (r) register accessor: Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_iidx`]
module"]
pub type INT_EVENT2_IIDX = crate :: Reg < int_event2_iidx :: INT_EVENT2_IIDX_SPEC > ; # [doc = "Interrupt index"]
pub mod int_event2_iidx { # [doc = "Register `INT_EVENT2_IIDX` reader"]
pub type R = crate :: R < INT_EVENT2_IIDX_SPEC > ; # [doc = "Field `INT_EVENT2_IIDX_STAT` reader - Interrupt index status"]
pub type INT_EVENT2_IIDX_STAT_R = crate :: FieldReader < INT_EVENT2_IIDX_STAT_A > ; # [doc = "Interrupt index status\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u16)]
pub enum INT_EVENT2_IIDX_STAT_A { # [doc = "0: NO_INTR"]
INT_EVENT2_IIDX_STAT_NO_INTR = 0 , # [doc = "9: MEMRESIFG0"]
INT_EVENT2_IIDX_STAT_MEMRESIFG0 = 9 , # [doc = "10: MEMRESIFG1"]
INT_EVENT2_IIDX_STAT_MEMRESIFG1 = 10 , # [doc = "11: MEMRESIFG2"]
INT_EVENT2_IIDX_STAT_MEMRESIFG2 = 11 , # [doc = "12: MEMRESIFG3"]
INT_EVENT2_IIDX_STAT_MEMRESIFG3 = 12 , # [doc = "13: MEMRESIFG4"]
INT_EVENT2_IIDX_STAT_MEMRESIFG4 = 13 , # [doc = "14: MEMRESIFG5"]
INT_EVENT2_IIDX_STAT_MEMRESIFG5 = 14 , # [doc = "15: MEMRESIFG6"]
INT_EVENT2_IIDX_STAT_MEMRESIFG6 = 15 , # [doc = "16: MEMRESIFG7"]
INT_EVENT2_IIDX_STAT_MEMRESIFG7 = 16 , # [doc = "17: MEMRESIFG8"]
INT_EVENT2_IIDX_STAT_MEMRESIFG8 = 17 , # [doc = "18: MEMRESIFG9"]
INT_EVENT2_IIDX_STAT_MEMRESIFG9 = 18 , # [doc = "19: MEMRESIFG10"]
INT_EVENT2_IIDX_STAT_MEMRESIFG10 = 19 , # [doc = "20: MEMRESIFG11"]
INT_EVENT2_IIDX_STAT_MEMRESIFG11 = 20 , # [doc = "21: MEMRESIFG12"]
INT_EVENT2_IIDX_STAT_MEMRESIFG12 = 21 , # [doc = "22: MEMRESIFG13"]
INT_EVENT2_IIDX_STAT_MEMRESIFG13 = 22 , # [doc = "23: MEMRESIFG14"]
INT_EVENT2_IIDX_STAT_MEMRESIFG14 = 23 , # [doc = "24: MEMRESIFG15"]
INT_EVENT2_IIDX_STAT_MEMRESIFG15 = 24 , # [doc = "25: MEMRESIFG16"]
INT_EVENT2_IIDX_STAT_MEMRESIFG16 = 25 , # [doc = "26: MEMRESIFG17"]
INT_EVENT2_IIDX_STAT_MEMRESIFG17 = 26 , # [doc = "27: MEMRESIFG18"]
INT_EVENT2_IIDX_STAT_MEMRESIFG18 = 27 , # [doc = "28: MEMRESIFG19"]
INT_EVENT2_IIDX_STAT_MEMRESIFG19 = 28 , # [doc = "29: MEMRESIFG20"]
INT_EVENT2_IIDX_STAT_MEMRESIFG20 = 29 , # [doc = "30: MEMRESIFG21"]
INT_EVENT2_IIDX_STAT_MEMRESIFG21 = 30 , # [doc = "31: MEMRESIFG22"]
INT_EVENT2_IIDX_STAT_MEMRESIFG22 = 31 , # [doc = "32: MEMRESIFG23"]
INT_EVENT2_IIDX_STAT_MEMRESIFG23 = 32 , } impl From < INT_EVENT2_IIDX_STAT_A > for u16 { # [inline (always)]
fn from (variant : INT_EVENT2_IIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for INT_EVENT2_IIDX_STAT_A { type Ux = u16 ; } impl INT_EVENT2_IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < INT_EVENT2_IIDX_STAT_A > { match self . bits { 0 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_NO_INTR) , 9 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG0) , 10 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG1) , 11 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG2) , 12 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG3) , 13 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG4) , 14 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG5) , 15 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG6) , 16 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG7) , 17 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG8) , 18 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG9) , 19 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG10) , 20 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG11) , 21 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG12) , 22 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG13) , 23 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG14) , 24 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG15) , 25 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG16) , 26 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG17) , 27 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG18) , 28 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG19) , 29 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG20) , 30 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG21) , 31 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG22) , 32 => Some (INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG23) , _ => None , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_no_intr (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_NO_INTR } # [doc = "MEMRESIFG0"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_memresifg0 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG0 } # [doc = "MEMRESIFG1"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_memresifg1 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG1 } # [doc = "MEMRESIFG2"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_memresifg2 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG2 } # [doc = "MEMRESIFG3"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_memresifg3 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG3 } # [doc = "MEMRESIFG4"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_memresifg4 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG4 } # [doc = "MEMRESIFG5"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_memresifg5 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG5 } # [doc = "MEMRESIFG6"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_memresifg6 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG6 } # [doc = "MEMRESIFG7"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_memresifg7 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG7 } # [doc = "MEMRESIFG8"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_memresifg8 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG8 } # [doc = "MEMRESIFG9"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_memresifg9 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG9 } # [doc = "MEMRESIFG10"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_memresifg10 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG10 } # [doc = "MEMRESIFG11"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_memresifg11 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG11 } # [doc = "MEMRESIFG12"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_memresifg12 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG12 } # [doc = "MEMRESIFG13"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_memresifg13 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG13 } # [doc = "MEMRESIFG14"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_memresifg14 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG14 } # [doc = "MEMRESIFG15"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_memresifg15 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG15 } # [doc = "MEMRESIFG16"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_memresifg16 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG16 } # [doc = "MEMRESIFG17"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_memresifg17 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG17 } # [doc = "MEMRESIFG18"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_memresifg18 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG18 } # [doc = "MEMRESIFG19"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_memresifg19 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG19 } # [doc = "MEMRESIFG20"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_memresifg20 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG20 } # [doc = "MEMRESIFG21"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_memresifg21 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG21 } # [doc = "MEMRESIFG22"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_memresifg22 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG22 } # [doc = "MEMRESIFG23"]
# [inline (always)]
pub fn is_int_event2_iidx_stat_memresifg23 (& self) -> bool { * self == INT_EVENT2_IIDX_STAT_A :: INT_EVENT2_IIDX_STAT_MEMRESIFG23 } } impl R { # [doc = "Bits 0:9 - Interrupt index status"]
# [inline (always)]
pub fn int_event2_iidx_stat (& self) -> INT_EVENT2_IIDX_STAT_R { INT_EVENT2_IIDX_STAT_R :: new ((self . bits & 0x03ff) as u16) } } # [doc = "Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_IIDX_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event2_iidx::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT2_IIDX_SPEC { } # [doc = "`reset()` method sets INT_EVENT2_IIDX to value 0"]
impl crate :: Resettable for INT_EVENT2_IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_IMASK (rw) register accessor: Interrupt mask extension\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_imask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_imask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_imask`]
module"]
pub type INT_EVENT2_IMASK = crate :: Reg < int_event2_imask :: INT_EVENT2_IMASK_SPEC > ; # [doc = "Interrupt mask extension"]
pub mod int_event2_imask { # [doc = "Register `INT_EVENT2_IMASK` reader"]
pub type R = crate :: R < INT_EVENT2_IMASK_SPEC > ; # [doc = "Register `INT_EVENT2_IMASK` writer"]
pub type W = crate :: W < INT_EVENT2_IMASK_SPEC > ; # [doc = "Field `INT_EVENT2_IMASK_MEMRESIFG0` reader - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT2_IMASK_MEMRESIFG0_R = crate :: BitReader < INT_EVENT2_IMASK_MEMRESIFG0_A > ; # [doc = "Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_IMASK_MEMRESIFG0_A { # [doc = "0: CLR"]
INT_EVENT2_IMASK_MEMRESIFG0_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_IMASK_MEMRESIFG0_SET = 1 , } impl From < INT_EVENT2_IMASK_MEMRESIFG0_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_IMASK_MEMRESIFG0_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_IMASK_MEMRESIFG0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_IMASK_MEMRESIFG0_A { match self . bits { false => INT_EVENT2_IMASK_MEMRESIFG0_A :: INT_EVENT2_IMASK_MEMRESIFG0_CLR , true => INT_EVENT2_IMASK_MEMRESIFG0_A :: INT_EVENT2_IMASK_MEMRESIFG0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_imask_memresifg0_clr (& self) -> bool { * self == INT_EVENT2_IMASK_MEMRESIFG0_A :: INT_EVENT2_IMASK_MEMRESIFG0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_imask_memresifg0_set (& self) -> bool { * self == INT_EVENT2_IMASK_MEMRESIFG0_A :: INT_EVENT2_IMASK_MEMRESIFG0_SET } } # [doc = "Field `INT_EVENT2_IMASK_MEMRESIFG0` writer - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT2_IMASK_MEMRESIFG0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_IMASK_MEMRESIFG0_A > ; impl < 'a , REG , const O : u8 > INT_EVENT2_IMASK_MEMRESIFG0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_imask_memresifg0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_MEMRESIFG0_A :: INT_EVENT2_IMASK_MEMRESIFG0_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_imask_memresifg0_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_MEMRESIFG0_A :: INT_EVENT2_IMASK_MEMRESIFG0_SET) } } # [doc = "Field `INT_EVENT2_IMASK_MEMRESIFG1` reader - Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT2_IMASK_MEMRESIFG1_R = crate :: BitReader < INT_EVENT2_IMASK_MEMRESIFG1_A > ; # [doc = "Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_IMASK_MEMRESIFG1_A { # [doc = "0: CLR"]
INT_EVENT2_IMASK_MEMRESIFG1_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_IMASK_MEMRESIFG1_SET = 1 , } impl From < INT_EVENT2_IMASK_MEMRESIFG1_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_IMASK_MEMRESIFG1_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_IMASK_MEMRESIFG1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_IMASK_MEMRESIFG1_A { match self . bits { false => INT_EVENT2_IMASK_MEMRESIFG1_A :: INT_EVENT2_IMASK_MEMRESIFG1_CLR , true => INT_EVENT2_IMASK_MEMRESIFG1_A :: INT_EVENT2_IMASK_MEMRESIFG1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_imask_memresifg1_clr (& self) -> bool { * self == INT_EVENT2_IMASK_MEMRESIFG1_A :: INT_EVENT2_IMASK_MEMRESIFG1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_imask_memresifg1_set (& self) -> bool { * self == INT_EVENT2_IMASK_MEMRESIFG1_A :: INT_EVENT2_IMASK_MEMRESIFG1_SET } } # [doc = "Field `INT_EVENT2_IMASK_MEMRESIFG1` writer - Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT2_IMASK_MEMRESIFG1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_IMASK_MEMRESIFG1_A > ; impl < 'a , REG , const O : u8 > INT_EVENT2_IMASK_MEMRESIFG1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_imask_memresifg1_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_MEMRESIFG1_A :: INT_EVENT2_IMASK_MEMRESIFG1_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_imask_memresifg1_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_MEMRESIFG1_A :: INT_EVENT2_IMASK_MEMRESIFG1_SET) } } # [doc = "Field `INT_EVENT2_IMASK_MEMRESIFG2` reader - Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT2_IMASK_MEMRESIFG2_R = crate :: BitReader < INT_EVENT2_IMASK_MEMRESIFG2_A > ; # [doc = "Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_IMASK_MEMRESIFG2_A { # [doc = "0: CLR"]
INT_EVENT2_IMASK_MEMRESIFG2_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_IMASK_MEMRESIFG2_SET = 1 , } impl From < INT_EVENT2_IMASK_MEMRESIFG2_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_IMASK_MEMRESIFG2_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_IMASK_MEMRESIFG2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_IMASK_MEMRESIFG2_A { match self . bits { false => INT_EVENT2_IMASK_MEMRESIFG2_A :: INT_EVENT2_IMASK_MEMRESIFG2_CLR , true => INT_EVENT2_IMASK_MEMRESIFG2_A :: INT_EVENT2_IMASK_MEMRESIFG2_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_imask_memresifg2_clr (& self) -> bool { * self == INT_EVENT2_IMASK_MEMRESIFG2_A :: INT_EVENT2_IMASK_MEMRESIFG2_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_imask_memresifg2_set (& self) -> bool { * self == INT_EVENT2_IMASK_MEMRESIFG2_A :: INT_EVENT2_IMASK_MEMRESIFG2_SET } } # [doc = "Field `INT_EVENT2_IMASK_MEMRESIFG2` writer - Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT2_IMASK_MEMRESIFG2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_IMASK_MEMRESIFG2_A > ; impl < 'a , REG , const O : u8 > INT_EVENT2_IMASK_MEMRESIFG2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_imask_memresifg2_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_MEMRESIFG2_A :: INT_EVENT2_IMASK_MEMRESIFG2_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_imask_memresifg2_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_MEMRESIFG2_A :: INT_EVENT2_IMASK_MEMRESIFG2_SET) } } # [doc = "Field `INT_EVENT2_IMASK_MEMRESIFG3` reader - Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT2_IMASK_MEMRESIFG3_R = crate :: BitReader < INT_EVENT2_IMASK_MEMRESIFG3_A > ; # [doc = "Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_IMASK_MEMRESIFG3_A { # [doc = "0: CLR"]
INT_EVENT2_IMASK_MEMRESIFG3_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_IMASK_MEMRESIFG3_SET = 1 , } impl From < INT_EVENT2_IMASK_MEMRESIFG3_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_IMASK_MEMRESIFG3_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_IMASK_MEMRESIFG3_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_IMASK_MEMRESIFG3_A { match self . bits { false => INT_EVENT2_IMASK_MEMRESIFG3_A :: INT_EVENT2_IMASK_MEMRESIFG3_CLR , true => INT_EVENT2_IMASK_MEMRESIFG3_A :: INT_EVENT2_IMASK_MEMRESIFG3_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_imask_memresifg3_clr (& self) -> bool { * self == INT_EVENT2_IMASK_MEMRESIFG3_A :: INT_EVENT2_IMASK_MEMRESIFG3_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_imask_memresifg3_set (& self) -> bool { * self == INT_EVENT2_IMASK_MEMRESIFG3_A :: INT_EVENT2_IMASK_MEMRESIFG3_SET } } # [doc = "Field `INT_EVENT2_IMASK_MEMRESIFG3` writer - Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT2_IMASK_MEMRESIFG3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_IMASK_MEMRESIFG3_A > ; impl < 'a , REG , const O : u8 > INT_EVENT2_IMASK_MEMRESIFG3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_imask_memresifg3_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_MEMRESIFG3_A :: INT_EVENT2_IMASK_MEMRESIFG3_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_imask_memresifg3_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_IMASK_MEMRESIFG3_A :: INT_EVENT2_IMASK_MEMRESIFG3_SET) } } impl R { # [doc = "Bit 8 - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
pub fn int_event2_imask_memresifg0 (& self) -> INT_EVENT2_IMASK_MEMRESIFG0_R { INT_EVENT2_IMASK_MEMRESIFG0_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
pub fn int_event2_imask_memresifg1 (& self) -> INT_EVENT2_IMASK_MEMRESIFG1_R { INT_EVENT2_IMASK_MEMRESIFG1_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
pub fn int_event2_imask_memresifg2 (& self) -> INT_EVENT2_IMASK_MEMRESIFG2_R { INT_EVENT2_IMASK_MEMRESIFG2_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bit 11 - Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
pub fn int_event2_imask_memresifg3 (& self) -> INT_EVENT2_IMASK_MEMRESIFG3_R { INT_EVENT2_IMASK_MEMRESIFG3_R :: new (((self . bits >> 11) & 1) != 0) } } impl W { # [doc = "Bit 8 - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
# [must_use]
pub fn int_event2_imask_memresifg0 (& mut self) -> INT_EVENT2_IMASK_MEMRESIFG0_W < INT_EVENT2_IMASK_SPEC , 8 > { INT_EVENT2_IMASK_MEMRESIFG0_W :: new (self) } # [doc = "Bit 9 - Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
# [must_use]
pub fn int_event2_imask_memresifg1 (& mut self) -> INT_EVENT2_IMASK_MEMRESIFG1_W < INT_EVENT2_IMASK_SPEC , 9 > { INT_EVENT2_IMASK_MEMRESIFG1_W :: new (self) } # [doc = "Bit 10 - Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
# [must_use]
pub fn int_event2_imask_memresifg2 (& mut self) -> INT_EVENT2_IMASK_MEMRESIFG2_W < INT_EVENT2_IMASK_SPEC , 10 > { INT_EVENT2_IMASK_MEMRESIFG2_W :: new (self) } # [doc = "Bit 11 - Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
# [must_use]
pub fn int_event2_imask_memresifg3 (& mut self) -> INT_EVENT2_IMASK_MEMRESIFG3_W < INT_EVENT2_IMASK_SPEC , 11 > { INT_EVENT2_IMASK_MEMRESIFG3_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt mask extension\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_imask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_imask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_IMASK_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event2_imask::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT2_IMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`int_event2_imask::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT2_IMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT2_IMASK to value 0"]
impl crate :: Resettable for INT_EVENT2_IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_RIS (r) register accessor: Raw interrupt status extension\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_ris`]
module"]
pub type INT_EVENT2_RIS = crate :: Reg < int_event2_ris :: INT_EVENT2_RIS_SPEC > ; # [doc = "Raw interrupt status extension"]
pub mod int_event2_ris { # [doc = "Register `INT_EVENT2_RIS` reader"]
pub type R = crate :: R < INT_EVENT2_RIS_SPEC > ; # [doc = "Field `INT_EVENT2_RIS_MEMRESIFG0` reader - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT2_RIS_MEMRESIFG0_R = crate :: BitReader < INT_EVENT2_RIS_MEMRESIFG0_A > ; # [doc = "Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_RIS_MEMRESIFG0_A { # [doc = "0: CLR"]
INT_EVENT2_RIS_MEMRESIFG0_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_RIS_MEMRESIFG0_SET = 1 , } impl From < INT_EVENT2_RIS_MEMRESIFG0_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_RIS_MEMRESIFG0_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_RIS_MEMRESIFG0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_RIS_MEMRESIFG0_A { match self . bits { false => INT_EVENT2_RIS_MEMRESIFG0_A :: INT_EVENT2_RIS_MEMRESIFG0_CLR , true => INT_EVENT2_RIS_MEMRESIFG0_A :: INT_EVENT2_RIS_MEMRESIFG0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_ris_memresifg0_clr (& self) -> bool { * self == INT_EVENT2_RIS_MEMRESIFG0_A :: INT_EVENT2_RIS_MEMRESIFG0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_ris_memresifg0_set (& self) -> bool { * self == INT_EVENT2_RIS_MEMRESIFG0_A :: INT_EVENT2_RIS_MEMRESIFG0_SET } } # [doc = "Field `INT_EVENT2_RIS_MEMRESIFG1` reader - Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT2_RIS_MEMRESIFG1_R = crate :: BitReader < INT_EVENT2_RIS_MEMRESIFG1_A > ; # [doc = "Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_RIS_MEMRESIFG1_A { # [doc = "0: CLR"]
INT_EVENT2_RIS_MEMRESIFG1_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_RIS_MEMRESIFG1_SET = 1 , } impl From < INT_EVENT2_RIS_MEMRESIFG1_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_RIS_MEMRESIFG1_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_RIS_MEMRESIFG1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_RIS_MEMRESIFG1_A { match self . bits { false => INT_EVENT2_RIS_MEMRESIFG1_A :: INT_EVENT2_RIS_MEMRESIFG1_CLR , true => INT_EVENT2_RIS_MEMRESIFG1_A :: INT_EVENT2_RIS_MEMRESIFG1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_ris_memresifg1_clr (& self) -> bool { * self == INT_EVENT2_RIS_MEMRESIFG1_A :: INT_EVENT2_RIS_MEMRESIFG1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_ris_memresifg1_set (& self) -> bool { * self == INT_EVENT2_RIS_MEMRESIFG1_A :: INT_EVENT2_RIS_MEMRESIFG1_SET } } # [doc = "Field `INT_EVENT2_RIS_MEMRESIFG2` reader - Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT2_RIS_MEMRESIFG2_R = crate :: BitReader < INT_EVENT2_RIS_MEMRESIFG2_A > ; # [doc = "Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_RIS_MEMRESIFG2_A { # [doc = "0: CLR"]
INT_EVENT2_RIS_MEMRESIFG2_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_RIS_MEMRESIFG2_SET = 1 , } impl From < INT_EVENT2_RIS_MEMRESIFG2_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_RIS_MEMRESIFG2_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_RIS_MEMRESIFG2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_RIS_MEMRESIFG2_A { match self . bits { false => INT_EVENT2_RIS_MEMRESIFG2_A :: INT_EVENT2_RIS_MEMRESIFG2_CLR , true => INT_EVENT2_RIS_MEMRESIFG2_A :: INT_EVENT2_RIS_MEMRESIFG2_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_ris_memresifg2_clr (& self) -> bool { * self == INT_EVENT2_RIS_MEMRESIFG2_A :: INT_EVENT2_RIS_MEMRESIFG2_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_ris_memresifg2_set (& self) -> bool { * self == INT_EVENT2_RIS_MEMRESIFG2_A :: INT_EVENT2_RIS_MEMRESIFG2_SET } } # [doc = "Field `INT_EVENT2_RIS_MEMRESIFG3` reader - Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT2_RIS_MEMRESIFG3_R = crate :: BitReader < INT_EVENT2_RIS_MEMRESIFG3_A > ; # [doc = "Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_RIS_MEMRESIFG3_A { # [doc = "0: CLR"]
INT_EVENT2_RIS_MEMRESIFG3_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_RIS_MEMRESIFG3_SET = 1 , } impl From < INT_EVENT2_RIS_MEMRESIFG3_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_RIS_MEMRESIFG3_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_RIS_MEMRESIFG3_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_RIS_MEMRESIFG3_A { match self . bits { false => INT_EVENT2_RIS_MEMRESIFG3_A :: INT_EVENT2_RIS_MEMRESIFG3_CLR , true => INT_EVENT2_RIS_MEMRESIFG3_A :: INT_EVENT2_RIS_MEMRESIFG3_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_ris_memresifg3_clr (& self) -> bool { * self == INT_EVENT2_RIS_MEMRESIFG3_A :: INT_EVENT2_RIS_MEMRESIFG3_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_ris_memresifg3_set (& self) -> bool { * self == INT_EVENT2_RIS_MEMRESIFG3_A :: INT_EVENT2_RIS_MEMRESIFG3_SET } } impl R { # [doc = "Bit 8 - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
pub fn int_event2_ris_memresifg0 (& self) -> INT_EVENT2_RIS_MEMRESIFG0_R { INT_EVENT2_RIS_MEMRESIFG0_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
pub fn int_event2_ris_memresifg1 (& self) -> INT_EVENT2_RIS_MEMRESIFG1_R { INT_EVENT2_RIS_MEMRESIFG1_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
pub fn int_event2_ris_memresifg2 (& self) -> INT_EVENT2_RIS_MEMRESIFG2_R { INT_EVENT2_RIS_MEMRESIFG2_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bit 11 - Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
pub fn int_event2_ris_memresifg3 (& self) -> INT_EVENT2_RIS_MEMRESIFG3_R { INT_EVENT2_RIS_MEMRESIFG3_R :: new (((self . bits >> 11) & 1) != 0) } } # [doc = "Raw interrupt status extension\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_RIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event2_ris::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT2_RIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT2_RIS to value 0"]
impl crate :: Resettable for INT_EVENT2_RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_MIS (r) register accessor: Masked interrupt status extension\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_mis`]
module"]
pub type INT_EVENT2_MIS = crate :: Reg < int_event2_mis :: INT_EVENT2_MIS_SPEC > ; # [doc = "Masked interrupt status extension"]
pub mod int_event2_mis { # [doc = "Register `INT_EVENT2_MIS` reader"]
pub type R = crate :: R < INT_EVENT2_MIS_SPEC > ; # [doc = "Field `INT_EVENT2_MIS_MEMRESIFG0` reader - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT2_MIS_MEMRESIFG0_R = crate :: BitReader < INT_EVENT2_MIS_MEMRESIFG0_A > ; # [doc = "Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_MIS_MEMRESIFG0_A { # [doc = "0: CLR"]
INT_EVENT2_MIS_MEMRESIFG0_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_MIS_MEMRESIFG0_SET = 1 , } impl From < INT_EVENT2_MIS_MEMRESIFG0_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_MIS_MEMRESIFG0_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_MIS_MEMRESIFG0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_MIS_MEMRESIFG0_A { match self . bits { false => INT_EVENT2_MIS_MEMRESIFG0_A :: INT_EVENT2_MIS_MEMRESIFG0_CLR , true => INT_EVENT2_MIS_MEMRESIFG0_A :: INT_EVENT2_MIS_MEMRESIFG0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_mis_memresifg0_clr (& self) -> bool { * self == INT_EVENT2_MIS_MEMRESIFG0_A :: INT_EVENT2_MIS_MEMRESIFG0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_mis_memresifg0_set (& self) -> bool { * self == INT_EVENT2_MIS_MEMRESIFG0_A :: INT_EVENT2_MIS_MEMRESIFG0_SET } } # [doc = "Field `INT_EVENT2_MIS_MEMRESIFG1` reader - Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT2_MIS_MEMRESIFG1_R = crate :: BitReader < INT_EVENT2_MIS_MEMRESIFG1_A > ; # [doc = "Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_MIS_MEMRESIFG1_A { # [doc = "0: CLR"]
INT_EVENT2_MIS_MEMRESIFG1_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_MIS_MEMRESIFG1_SET = 1 , } impl From < INT_EVENT2_MIS_MEMRESIFG1_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_MIS_MEMRESIFG1_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_MIS_MEMRESIFG1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_MIS_MEMRESIFG1_A { match self . bits { false => INT_EVENT2_MIS_MEMRESIFG1_A :: INT_EVENT2_MIS_MEMRESIFG1_CLR , true => INT_EVENT2_MIS_MEMRESIFG1_A :: INT_EVENT2_MIS_MEMRESIFG1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_mis_memresifg1_clr (& self) -> bool { * self == INT_EVENT2_MIS_MEMRESIFG1_A :: INT_EVENT2_MIS_MEMRESIFG1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_mis_memresifg1_set (& self) -> bool { * self == INT_EVENT2_MIS_MEMRESIFG1_A :: INT_EVENT2_MIS_MEMRESIFG1_SET } } # [doc = "Field `INT_EVENT2_MIS_MEMRESIFG2` reader - Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT2_MIS_MEMRESIFG2_R = crate :: BitReader < INT_EVENT2_MIS_MEMRESIFG2_A > ; # [doc = "Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_MIS_MEMRESIFG2_A { # [doc = "0: CLR"]
INT_EVENT2_MIS_MEMRESIFG2_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_MIS_MEMRESIFG2_SET = 1 , } impl From < INT_EVENT2_MIS_MEMRESIFG2_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_MIS_MEMRESIFG2_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_MIS_MEMRESIFG2_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_MIS_MEMRESIFG2_A { match self . bits { false => INT_EVENT2_MIS_MEMRESIFG2_A :: INT_EVENT2_MIS_MEMRESIFG2_CLR , true => INT_EVENT2_MIS_MEMRESIFG2_A :: INT_EVENT2_MIS_MEMRESIFG2_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_mis_memresifg2_clr (& self) -> bool { * self == INT_EVENT2_MIS_MEMRESIFG2_A :: INT_EVENT2_MIS_MEMRESIFG2_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_mis_memresifg2_set (& self) -> bool { * self == INT_EVENT2_MIS_MEMRESIFG2_A :: INT_EVENT2_MIS_MEMRESIFG2_SET } } # [doc = "Field `INT_EVENT2_MIS_MEMRESIFG3` reader - Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT2_MIS_MEMRESIFG3_R = crate :: BitReader < INT_EVENT2_MIS_MEMRESIFG3_A > ; # [doc = "Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_MIS_MEMRESIFG3_A { # [doc = "0: CLR"]
INT_EVENT2_MIS_MEMRESIFG3_CLR = 0 , # [doc = "1: SET"]
INT_EVENT2_MIS_MEMRESIFG3_SET = 1 , } impl From < INT_EVENT2_MIS_MEMRESIFG3_A > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_MIS_MEMRESIFG3_A) -> Self { variant as u8 != 0 } } impl INT_EVENT2_MIS_MEMRESIFG3_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> INT_EVENT2_MIS_MEMRESIFG3_A { match self . bits { false => INT_EVENT2_MIS_MEMRESIFG3_A :: INT_EVENT2_MIS_MEMRESIFG3_CLR , true => INT_EVENT2_MIS_MEMRESIFG3_A :: INT_EVENT2_MIS_MEMRESIFG3_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_int_event2_mis_memresifg3_clr (& self) -> bool { * self == INT_EVENT2_MIS_MEMRESIFG3_A :: INT_EVENT2_MIS_MEMRESIFG3_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_int_event2_mis_memresifg3_set (& self) -> bool { * self == INT_EVENT2_MIS_MEMRESIFG3_A :: INT_EVENT2_MIS_MEMRESIFG3_SET } } impl R { # [doc = "Bit 8 - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
pub fn int_event2_mis_memresifg0 (& self) -> INT_EVENT2_MIS_MEMRESIFG0_R { INT_EVENT2_MIS_MEMRESIFG0_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
pub fn int_event2_mis_memresifg1 (& self) -> INT_EVENT2_MIS_MEMRESIFG1_R { INT_EVENT2_MIS_MEMRESIFG1_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 10 - Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
pub fn int_event2_mis_memresifg2 (& self) -> INT_EVENT2_MIS_MEMRESIFG2_R { INT_EVENT2_MIS_MEMRESIFG2_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bit 11 - Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
pub fn int_event2_mis_memresifg3 (& self) -> INT_EVENT2_MIS_MEMRESIFG3_R { INT_EVENT2_MIS_MEMRESIFG3_R :: new (((self . bits >> 11) & 1) != 0) } } # [doc = "Masked interrupt status extension\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_event2_mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_MIS_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`int_event2_mis::R`](R) reader structure"]
impl crate :: Readable for INT_EVENT2_MIS_SPEC { } # [doc = "`reset()` method sets INT_EVENT2_MIS to value 0"]
impl crate :: Resettable for INT_EVENT2_MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_ISET (w) register accessor: Interrupt set extension\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_iset`]
module"]
pub type INT_EVENT2_ISET = crate :: Reg < int_event2_iset :: INT_EVENT2_ISET_SPEC > ; # [doc = "Interrupt set extension"]
pub mod int_event2_iset { # [doc = "Register `INT_EVENT2_ISET` writer"]
pub type W = crate :: W < INT_EVENT2_ISET_SPEC > ; # [doc = "Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ISET_MEMRESIFG0_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ISET_MEMRESIFG0_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT2_ISET_MEMRESIFG0_SET = 1 , } impl From < INT_EVENT2_ISET_MEMRESIFG0_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ISET_MEMRESIFG0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ISET_MEMRESIFG0` writer - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT2_ISET_MEMRESIFG0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ISET_MEMRESIFG0_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ISET_MEMRESIFG0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iset_memresifg0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_MEMRESIFG0_AW :: INT_EVENT2_ISET_MEMRESIFG0_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_iset_memresifg0_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_MEMRESIFG0_AW :: INT_EVENT2_ISET_MEMRESIFG0_SET) } } # [doc = "Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ISET_MEMRESIFG1_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ISET_MEMRESIFG1_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT2_ISET_MEMRESIFG1_SET = 1 , } impl From < INT_EVENT2_ISET_MEMRESIFG1_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ISET_MEMRESIFG1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ISET_MEMRESIFG1` writer - Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT2_ISET_MEMRESIFG1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ISET_MEMRESIFG1_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ISET_MEMRESIFG1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iset_memresifg1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_MEMRESIFG1_AW :: INT_EVENT2_ISET_MEMRESIFG1_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_iset_memresifg1_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_MEMRESIFG1_AW :: INT_EVENT2_ISET_MEMRESIFG1_SET) } } # [doc = "Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ISET_MEMRESIFG2_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ISET_MEMRESIFG2_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT2_ISET_MEMRESIFG2_SET = 1 , } impl From < INT_EVENT2_ISET_MEMRESIFG2_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ISET_MEMRESIFG2_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ISET_MEMRESIFG2` writer - Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT2_ISET_MEMRESIFG2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ISET_MEMRESIFG2_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ISET_MEMRESIFG2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iset_memresifg2_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_MEMRESIFG2_AW :: INT_EVENT2_ISET_MEMRESIFG2_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_iset_memresifg2_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_MEMRESIFG2_AW :: INT_EVENT2_ISET_MEMRESIFG2_SET) } } # [doc = "Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ISET_MEMRESIFG3_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ISET_MEMRESIFG3_NO_EFFECT = 0 , # [doc = "1: SET"]
INT_EVENT2_ISET_MEMRESIFG3_SET = 1 , } impl From < INT_EVENT2_ISET_MEMRESIFG3_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ISET_MEMRESIFG3_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ISET_MEMRESIFG3` writer - Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT2_ISET_MEMRESIFG3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ISET_MEMRESIFG3_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ISET_MEMRESIFG3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iset_memresifg3_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_MEMRESIFG3_AW :: INT_EVENT2_ISET_MEMRESIFG3_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn int_event2_iset_memresifg3_set (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ISET_MEMRESIFG3_AW :: INT_EVENT2_ISET_MEMRESIFG3_SET) } } impl W { # [doc = "Bit 8 - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
# [must_use]
pub fn int_event2_iset_memresifg0 (& mut self) -> INT_EVENT2_ISET_MEMRESIFG0_W < INT_EVENT2_ISET_SPEC , 8 > { INT_EVENT2_ISET_MEMRESIFG0_W :: new (self) } # [doc = "Bit 9 - Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
# [must_use]
pub fn int_event2_iset_memresifg1 (& mut self) -> INT_EVENT2_ISET_MEMRESIFG1_W < INT_EVENT2_ISET_SPEC , 9 > { INT_EVENT2_ISET_MEMRESIFG1_W :: new (self) } # [doc = "Bit 10 - Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
# [must_use]
pub fn int_event2_iset_memresifg2 (& mut self) -> INT_EVENT2_ISET_MEMRESIFG2_W < INT_EVENT2_ISET_SPEC , 10 > { INT_EVENT2_ISET_MEMRESIFG2_W :: new (self) } # [doc = "Bit 11 - Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
# [must_use]
pub fn int_event2_iset_memresifg3 (& mut self) -> INT_EVENT2_ISET_MEMRESIFG3_W < INT_EVENT2_ISET_SPEC , 11 > { INT_EVENT2_ISET_MEMRESIFG3_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt set extension\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_ISET_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event2_iset::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT2_ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT2_ISET to value 0"]
impl crate :: Resettable for INT_EVENT2_ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "INT_EVENT2_ICLR (w) register accessor: Interrupt clear extension\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_event2_iclr`]
module"]
pub type INT_EVENT2_ICLR = crate :: Reg < int_event2_iclr :: INT_EVENT2_ICLR_SPEC > ; # [doc = "Interrupt clear extension"]
pub mod int_event2_iclr { # [doc = "Register `INT_EVENT2_ICLR` writer"]
pub type W = crate :: W < INT_EVENT2_ICLR_SPEC > ; # [doc = "Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ICLR_MEMRESIFG0_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ICLR_MEMRESIFG0_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT2_ICLR_MEMRESIFG0_CLR = 1 , } impl From < INT_EVENT2_ICLR_MEMRESIFG0_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ICLR_MEMRESIFG0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ICLR_MEMRESIFG0` writer - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT2_ICLR_MEMRESIFG0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ICLR_MEMRESIFG0_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ICLR_MEMRESIFG0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iclr_memresifg0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_MEMRESIFG0_AW :: INT_EVENT2_ICLR_MEMRESIFG0_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_iclr_memresifg0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_MEMRESIFG0_AW :: INT_EVENT2_ICLR_MEMRESIFG0_CLR) } } # [doc = "Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ICLR_MEMRESIFG1_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ICLR_MEMRESIFG1_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT2_ICLR_MEMRESIFG1_CLR = 1 , } impl From < INT_EVENT2_ICLR_MEMRESIFG1_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ICLR_MEMRESIFG1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ICLR_MEMRESIFG1` writer - Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT2_ICLR_MEMRESIFG1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ICLR_MEMRESIFG1_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ICLR_MEMRESIFG1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iclr_memresifg1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_MEMRESIFG1_AW :: INT_EVENT2_ICLR_MEMRESIFG1_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_iclr_memresifg1_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_MEMRESIFG1_AW :: INT_EVENT2_ICLR_MEMRESIFG1_CLR) } } # [doc = "Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ICLR_MEMRESIFG2_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ICLR_MEMRESIFG2_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT2_ICLR_MEMRESIFG2_CLR = 1 , } impl From < INT_EVENT2_ICLR_MEMRESIFG2_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ICLR_MEMRESIFG2_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ICLR_MEMRESIFG2` writer - Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT2_ICLR_MEMRESIFG2_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ICLR_MEMRESIFG2_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ICLR_MEMRESIFG2_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iclr_memresifg2_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_MEMRESIFG2_AW :: INT_EVENT2_ICLR_MEMRESIFG2_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_iclr_memresifg2_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_MEMRESIFG2_AW :: INT_EVENT2_ICLR_MEMRESIFG2_CLR) } } # [doc = "Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum INT_EVENT2_ICLR_MEMRESIFG3_AW { # [doc = "0: NO_EFFECT"]
INT_EVENT2_ICLR_MEMRESIFG3_NO_EFFECT = 0 , # [doc = "1: CLR"]
INT_EVENT2_ICLR_MEMRESIFG3_CLR = 1 , } impl From < INT_EVENT2_ICLR_MEMRESIFG3_AW > for bool { # [inline (always)]
fn from (variant : INT_EVENT2_ICLR_MEMRESIFG3_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `INT_EVENT2_ICLR_MEMRESIFG3` writer - Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
pub type INT_EVENT2_ICLR_MEMRESIFG3_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , INT_EVENT2_ICLR_MEMRESIFG3_AW > ; impl < 'a , REG , const O : u8 > INT_EVENT2_ICLR_MEMRESIFG3_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn int_event2_iclr_memresifg3_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_MEMRESIFG3_AW :: INT_EVENT2_ICLR_MEMRESIFG3_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn int_event2_iclr_memresifg3_clr (self) -> & 'a mut crate :: W < REG > { self . variant (INT_EVENT2_ICLR_MEMRESIFG3_AW :: INT_EVENT2_ICLR_MEMRESIFG3_CLR) } } impl W { # [doc = "Bit 8 - Raw interrupt status for MEMRES0. This bit is set to 1 when MEMRES0 is loaded with a new conversion result. Reading MEMRES0 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
# [must_use]
pub fn int_event2_iclr_memresifg0 (& mut self) -> INT_EVENT2_ICLR_MEMRESIFG0_W < INT_EVENT2_ICLR_SPEC , 8 > { INT_EVENT2_ICLR_MEMRESIFG0_W :: new (self) } # [doc = "Bit 9 - Raw interrupt status for MEMRES1. This bit is set to 1 when MEMRES1 is loaded with a new conversion result. Reading MEMRES1 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
# [must_use]
pub fn int_event2_iclr_memresifg1 (& mut self) -> INT_EVENT2_ICLR_MEMRESIFG1_W < INT_EVENT2_ICLR_SPEC , 9 > { INT_EVENT2_ICLR_MEMRESIFG1_W :: new (self) } # [doc = "Bit 10 - Raw interrupt status for MEMRES2. This bit is set to 1 when MEMRES2 is loaded with a new conversion result. Reading MEMRES2 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
# [must_use]
pub fn int_event2_iclr_memresifg2 (& mut self) -> INT_EVENT2_ICLR_MEMRESIFG2_W < INT_EVENT2_ICLR_SPEC , 10 > { INT_EVENT2_ICLR_MEMRESIFG2_W :: new (self) } # [doc = "Bit 11 - Raw interrupt status for MEMRES3. This bit is set to 1 when MEMRES3 is loaded with a new conversion result. Reading MEMRES3 register will clear this bit, or when the corresponding bit in ICLR is set to 1"]
# [inline (always)]
# [must_use]
pub fn int_event2_iclr_memresifg3 (& mut self) -> INT_EVENT2_ICLR_MEMRESIFG3_W < INT_EVENT2_ICLR_SPEC , 11 > { INT_EVENT2_ICLR_MEMRESIFG3_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt clear extension\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_event2_iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_EVENT2_ICLR_SPEC ; impl crate :: RegisterSpec for INT_EVENT2_ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`int_event2_iclr::W`](W) writer structure"]
impl crate :: Writable for INT_EVENT2_ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets INT_EVENT2_ICLR to value 0"]
impl crate :: Resettable for INT_EVENT2_ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "EVT_MODE (r) register accessor: Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@evt_mode`]
module"]
pub type EVT_MODE = crate :: Reg < evt_mode :: EVT_MODE_SPEC > ; # [doc = "Event Mode"]
pub mod evt_mode { # [doc = "Register `EVT_MODE` reader"]
pub type R = crate :: R < EVT_MODE_SPEC > ; # [doc = "Field `EVT_MODE_INT0_CFG` reader - Event line mode select for event corresponding to IPSTANDARD.INT_EVENT0"]
pub type EVT_MODE_INT0_CFG_R = crate :: FieldReader < EVT_MODE_INT0_CFG_A > ; # [doc = "Event line mode select for event corresponding to IPSTANDARD.INT_EVENT0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_INT0_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_INT0_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_INT0_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_INT0_CFG_HARDWARE = 2 , } impl From < EVT_MODE_INT0_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_INT0_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_INT0_CFG_A { type Ux = u8 ; } impl EVT_MODE_INT0_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_INT0_CFG_A > { match self . bits { 0 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_DISABLE) , 1 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_SOFTWARE) , 2 => Some (EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_disable (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_software (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_int0_cfg_hardware (& self) -> bool { * self == EVT_MODE_INT0_CFG_A :: EVT_MODE_INT0_CFG_HARDWARE } } # [doc = "Field `EVT_MODE_EVT1_CFG` reader - Event line mode select for event corresponding to IPSTANDARD.INT_EVENT1"]
pub type EVT_MODE_EVT1_CFG_R = crate :: FieldReader < EVT_MODE_EVT1_CFG_A > ; # [doc = "Event line mode select for event corresponding to IPSTANDARD.INT_EVENT1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_EVT1_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_EVT1_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_EVT1_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_EVT1_CFG_HARDWARE = 2 , } impl From < EVT_MODE_EVT1_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_EVT1_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_EVT1_CFG_A { type Ux = u8 ; } impl EVT_MODE_EVT1_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_EVT1_CFG_A > { match self . bits { 0 => Some (EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_DISABLE) , 1 => Some (EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_SOFTWARE) , 2 => Some (EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_evt1_cfg_disable (& self) -> bool { * self == EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_evt1_cfg_software (& self) -> bool { * self == EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_evt1_cfg_hardware (& self) -> bool { * self == EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_HARDWARE } } impl R { # [doc = "Bits 0:1 - Event line mode select for event corresponding to IPSTANDARD.INT_EVENT0"]
# [inline (always)]
pub fn evt_mode_int0_cfg (& self) -> EVT_MODE_INT0_CFG_R { EVT_MODE_INT0_CFG_R :: new ((self . bits & 3) as u8) } # [doc = "Bits 2:3 - Event line mode select for event corresponding to IPSTANDARD.INT_EVENT1"]
# [inline (always)]
pub fn evt_mode_evt1_cfg (& self) -> EVT_MODE_EVT1_CFG_R { EVT_MODE_EVT1_CFG_R :: new (((self . bits >> 2) & 3) as u8) } } # [doc = "Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct EVT_MODE_SPEC ; impl crate :: RegisterSpec for EVT_MODE_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`evt_mode::R`](R) reader structure"]
impl crate :: Readable for EVT_MODE_SPEC { } # [doc = "`reset()` method sets EVT_MODE to value 0"]
impl crate :: Resettable for EVT_MODE_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "DESC (r) register accessor: Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@desc`]
module"]
pub type DESC = crate :: Reg < desc :: DESC_SPEC > ; # [doc = "Module Description"]
pub mod desc { # [doc = "Register `DESC` reader"]
pub type R = crate :: R < DESC_SPEC > ; # [doc = "Field `DESC_MINREV` reader - Minor rev of the IP"]
pub type DESC_MINREV_R = crate :: FieldReader ; # [doc = "Field `DESC_MAJREV` reader - Major rev of the IP"]
pub type DESC_MAJREV_R = crate :: FieldReader ; # [doc = "Field `DESC_INSTNUM` reader - Instance Number within the device. This will be a parameter to the RTL for modules that can have multiple instances"]
pub type DESC_INSTNUM_R = crate :: FieldReader ; # [doc = "Field `DESC_FEATUREVER` reader - Feature Set for the module *instance*"]
pub type DESC_FEATUREVER_R = crate :: FieldReader ; # [doc = "Field `DESC_MODULEID` reader - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
pub type DESC_MODULEID_R = crate :: FieldReader < u16 > ; impl R { # [doc = "Bits 0:3 - Minor rev of the IP"]
# [inline (always)]
pub fn desc_minrev (& self) -> DESC_MINREV_R { DESC_MINREV_R :: new ((self . bits & 0x0f) as u8) } # [doc = "Bits 4:7 - Major rev of the IP"]
# [inline (always)]
pub fn desc_majrev (& self) -> DESC_MAJREV_R { DESC_MAJREV_R :: new (((self . bits >> 4) & 0x0f) as u8) } # [doc = "Bits 8:11 - Instance Number within the device. This will be a parameter to the RTL for modules that can have multiple instances"]
# [inline (always)]
pub fn desc_instnum (& self) -> DESC_INSTNUM_R { DESC_INSTNUM_R :: new (((self . bits >> 8) & 0x0f) as u8) } # [doc = "Bits 12:15 - Feature Set for the module *instance*"]
# [inline (always)]
pub fn desc_featurever (& self) -> DESC_FEATUREVER_R { DESC_FEATUREVER_R :: new (((self . bits >> 12) & 0x0f) as u8) } # [doc = "Bits 16:31 - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
# [inline (always)]
pub fn desc_moduleid (& self) -> DESC_MODULEID_R { DESC_MODULEID_R :: new (((self . bits >> 16) & 0xffff) as u16) } } # [doc = "Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DESC_SPEC ; impl crate :: RegisterSpec for DESC_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`desc::R`](R) reader structure"]
impl crate :: Readable for DESC_SPEC { } # [doc = "`reset()` method sets DESC to value 0"]
impl crate :: Resettable for DESC_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTL0 (rw) register accessor: Control Register 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctl0`]
module"]
pub type CTL0 = crate :: Reg < ctl0 :: CTL0_SPEC > ; # [doc = "Control Register 0"]
pub mod ctl0 { # [doc = "Register `CTL0` reader"]
pub type R = crate :: R < CTL0_SPEC > ; # [doc = "Register `CTL0` writer"]
pub type W = crate :: W < CTL0_SPEC > ; # [doc = "Field `CTL0_ENC` reader - Enable conversion"]
pub type CTL0_ENC_R = crate :: BitReader < CTL0_ENC_A > ; # [doc = "Enable conversion\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_ENC_A { # [doc = "0: OFF"]
CTL0_ENC_OFF = 0 , # [doc = "1: ON"]
CTL0_ENC_ON = 1 , } impl From < CTL0_ENC_A > for bool { # [inline (always)]
fn from (variant : CTL0_ENC_A) -> Self { variant as u8 != 0 } } impl CTL0_ENC_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_ENC_A { match self . bits { false => CTL0_ENC_A :: CTL0_ENC_OFF , true => CTL0_ENC_A :: CTL0_ENC_ON , } } # [doc = "OFF"]
# [inline (always)]
pub fn is_ctl0_enc_off (& self) -> bool { * self == CTL0_ENC_A :: CTL0_ENC_OFF } # [doc = "ON"]
# [inline (always)]
pub fn is_ctl0_enc_on (& self) -> bool { * self == CTL0_ENC_A :: CTL0_ENC_ON } } # [doc = "Field `CTL0_ENC` writer - Enable conversion"]
pub type CTL0_ENC_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_ENC_A > ; impl < 'a , REG , const O : u8 > CTL0_ENC_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "OFF"]
# [inline (always)]
pub fn ctl0_enc_off (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_ENC_A :: CTL0_ENC_OFF) } # [doc = "ON"]
# [inline (always)]
pub fn ctl0_enc_on (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_ENC_A :: CTL0_ENC_ON) } } # [doc = "Field `CTL0_PWRDN` reader - Power down policy"]
pub type CTL0_PWRDN_R = crate :: BitReader < CTL0_PWRDN_A > ; # [doc = "Power down policy\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL0_PWRDN_A { # [doc = "0: AUTO"]
CTL0_PWRDN_AUTO = 0 , # [doc = "1: MANUAL"]
CTL0_PWRDN_MANUAL = 1 , } impl From < CTL0_PWRDN_A > for bool { # [inline (always)]
fn from (variant : CTL0_PWRDN_A) -> Self { variant as u8 != 0 } } impl CTL0_PWRDN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_PWRDN_A { match self . bits { false => CTL0_PWRDN_A :: CTL0_PWRDN_AUTO , true => CTL0_PWRDN_A :: CTL0_PWRDN_MANUAL , } } # [doc = "AUTO"]
# [inline (always)]
pub fn is_ctl0_pwrdn_auto (& self) -> bool { * self == CTL0_PWRDN_A :: CTL0_PWRDN_AUTO } # [doc = "MANUAL"]
# [inline (always)]
pub fn is_ctl0_pwrdn_manual (& self) -> bool { * self == CTL0_PWRDN_A :: CTL0_PWRDN_MANUAL } } # [doc = "Field `CTL0_PWRDN` writer - Power down policy"]
pub type CTL0_PWRDN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL0_PWRDN_A > ; impl < 'a , REG , const O : u8 > CTL0_PWRDN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "AUTO"]
# [inline (always)]
pub fn ctl0_pwrdn_auto (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_PWRDN_A :: CTL0_PWRDN_AUTO) } # [doc = "MANUAL"]
# [inline (always)]
pub fn ctl0_pwrdn_manual (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_PWRDN_A :: CTL0_PWRDN_MANUAL) } } # [doc = "Field `CTL0_SCLKDIV` reader - Sample clock divider"]
pub type CTL0_SCLKDIV_R = crate :: FieldReader < CTL0_SCLKDIV_A > ; # [doc = "Sample clock divider\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTL0_SCLKDIV_A { # [doc = "0: DIV_BY_1"]
CTL0_SCLKDIV_DIV_BY_1 = 0 , # [doc = "1: DIV_BY_2"]
CTL0_SCLKDIV_DIV_BY_2 = 1 , # [doc = "2: DIV_BY_4"]
CTL0_SCLKDIV_DIV_BY_4 = 2 , # [doc = "3: DIV_BY_8"]
CTL0_SCLKDIV_DIV_BY_8 = 3 , # [doc = "4: DIV_BY_16"]
CTL0_SCLKDIV_DIV_BY_16 = 4 , # [doc = "5: DIV_BY_24"]
CTL0_SCLKDIV_DIV_BY_24 = 5 , # [doc = "6: DIV_BY_32"]
CTL0_SCLKDIV_DIV_BY_32 = 6 , # [doc = "7: DIV_BY_48"]
CTL0_SCLKDIV_DIV_BY_48 = 7 , } impl From < CTL0_SCLKDIV_A > for u8 { # [inline (always)]
fn from (variant : CTL0_SCLKDIV_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTL0_SCLKDIV_A { type Ux = u8 ; } impl CTL0_SCLKDIV_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL0_SCLKDIV_A { match self . bits { 0 => CTL0_SCLKDIV_A :: CTL0_SCLKDIV_DIV_BY_1 , 1 => CTL0_SCLKDIV_A :: CTL0_SCLKDIV_DIV_BY_2 , 2 => CTL0_SCLKDIV_A :: CTL0_SCLKDIV_DIV_BY_4 , 3 => CTL0_SCLKDIV_A :: CTL0_SCLKDIV_DIV_BY_8 , 4 => CTL0_SCLKDIV_A :: CTL0_SCLKDIV_DIV_BY_16 , 5 => CTL0_SCLKDIV_A :: CTL0_SCLKDIV_DIV_BY_24 , 6 => CTL0_SCLKDIV_A :: CTL0_SCLKDIV_DIV_BY_32 , 7 => CTL0_SCLKDIV_A :: CTL0_SCLKDIV_DIV_BY_48 , _ => unreachable ! () , } } # [doc = "DIV_BY_1"]
# [inline (always)]
pub fn is_ctl0_sclkdiv_div_by_1 (& self) -> bool { * self == CTL0_SCLKDIV_A :: CTL0_SCLKDIV_DIV_BY_1 } # [doc = "DIV_BY_2"]
# [inline (always)]
pub fn is_ctl0_sclkdiv_div_by_2 (& self) -> bool { * self == CTL0_SCLKDIV_A :: CTL0_SCLKDIV_DIV_BY_2 } # [doc = "DIV_BY_4"]
# [inline (always)]
pub fn is_ctl0_sclkdiv_div_by_4 (& self) -> bool { * self == CTL0_SCLKDIV_A :: CTL0_SCLKDIV_DIV_BY_4 } # [doc = "DIV_BY_8"]
# [inline (always)]
pub fn is_ctl0_sclkdiv_div_by_8 (& self) -> bool { * self == CTL0_SCLKDIV_A :: CTL0_SCLKDIV_DIV_BY_8 } # [doc = "DIV_BY_16"]
# [inline (always)]
pub fn is_ctl0_sclkdiv_div_by_16 (& self) -> bool { * self == CTL0_SCLKDIV_A :: CTL0_SCLKDIV_DIV_BY_16 } # [doc = "DIV_BY_24"]
# [inline (always)]
pub fn is_ctl0_sclkdiv_div_by_24 (& self) -> bool { * self == CTL0_SCLKDIV_A :: CTL0_SCLKDIV_DIV_BY_24 } # [doc = "DIV_BY_32"]
# [inline (always)]
pub fn is_ctl0_sclkdiv_div_by_32 (& self) -> bool { * self == CTL0_SCLKDIV_A :: CTL0_SCLKDIV_DIV_BY_32 } # [doc = "DIV_BY_48"]
# [inline (always)]
pub fn is_ctl0_sclkdiv_div_by_48 (& self) -> bool { * self == CTL0_SCLKDIV_A :: CTL0_SCLKDIV_DIV_BY_48 } } # [doc = "Field `CTL0_SCLKDIV` writer - Sample clock divider"]
pub type CTL0_SCLKDIV_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 3 , O , CTL0_SCLKDIV_A > ; impl < 'a , REG , const O : u8 > CTL0_SCLKDIV_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DIV_BY_1"]
# [inline (always)]
pub fn ctl0_sclkdiv_div_by_1 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_SCLKDIV_A :: CTL0_SCLKDIV_DIV_BY_1) } # [doc = "DIV_BY_2"]
# [inline (always)]
pub fn ctl0_sclkdiv_div_by_2 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_SCLKDIV_A :: CTL0_SCLKDIV_DIV_BY_2) } # [doc = "DIV_BY_4"]
# [inline (always)]
pub fn ctl0_sclkdiv_div_by_4 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_SCLKDIV_A :: CTL0_SCLKDIV_DIV_BY_4) } # [doc = "DIV_BY_8"]
# [inline (always)]
pub fn ctl0_sclkdiv_div_by_8 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_SCLKDIV_A :: CTL0_SCLKDIV_DIV_BY_8) } # [doc = "DIV_BY_16"]
# [inline (always)]
pub fn ctl0_sclkdiv_div_by_16 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_SCLKDIV_A :: CTL0_SCLKDIV_DIV_BY_16) } # [doc = "DIV_BY_24"]
# [inline (always)]
pub fn ctl0_sclkdiv_div_by_24 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_SCLKDIV_A :: CTL0_SCLKDIV_DIV_BY_24) } # [doc = "DIV_BY_32"]
# [inline (always)]
pub fn ctl0_sclkdiv_div_by_32 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_SCLKDIV_A :: CTL0_SCLKDIV_DIV_BY_32) } # [doc = "DIV_BY_48"]
# [inline (always)]
pub fn ctl0_sclkdiv_div_by_48 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL0_SCLKDIV_A :: CTL0_SCLKDIV_DIV_BY_48) } } impl R { # [doc = "Bit 0 - Enable conversion"]
# [inline (always)]
pub fn ctl0_enc (& self) -> CTL0_ENC_R { CTL0_ENC_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 16 - Power down policy"]
# [inline (always)]
pub fn ctl0_pwrdn (& self) -> CTL0_PWRDN_R { CTL0_PWRDN_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bits 24:26 - Sample clock divider"]
# [inline (always)]
pub fn ctl0_sclkdiv (& self) -> CTL0_SCLKDIV_R { CTL0_SCLKDIV_R :: new (((self . bits >> 24) & 7) as u8) } } impl W { # [doc = "Bit 0 - Enable conversion"]
# [inline (always)]
# [must_use]
pub fn ctl0_enc (& mut self) -> CTL0_ENC_W < CTL0_SPEC , 0 > { CTL0_ENC_W :: new (self) } # [doc = "Bit 16 - Power down policy"]
# [inline (always)]
# [must_use]
pub fn ctl0_pwrdn (& mut self) -> CTL0_PWRDN_W < CTL0_SPEC , 16 > { CTL0_PWRDN_W :: new (self) } # [doc = "Bits 24:26 - Sample clock divider"]
# [inline (always)]
# [must_use]
pub fn ctl0_sclkdiv (& mut self) -> CTL0_SCLKDIV_W < CTL0_SPEC , 24 > { CTL0_SCLKDIV_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Control Register 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl0::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTL0_SPEC ; impl crate :: RegisterSpec for CTL0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ctl0::R`](R) reader structure"]
impl crate :: Readable for CTL0_SPEC { } # [doc = "`write(|w| ..)` method takes [`ctl0::W`](W) writer structure"]
impl crate :: Writable for CTL0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTL0 to value 0"]
impl crate :: Resettable for CTL0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTL1 (rw) register accessor: Control Register 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctl1`]
module"]
pub type CTL1 = crate :: Reg < ctl1 :: CTL1_SPEC > ; # [doc = "Control Register 1"]
pub mod ctl1 { # [doc = "Register `CTL1` reader"]
pub type R = crate :: R < CTL1_SPEC > ; # [doc = "Register `CTL1` writer"]
pub type W = crate :: W < CTL1_SPEC > ; # [doc = "Field `CTL1_TRIGSRC` reader - Sample trigger source"]
pub type CTL1_TRIGSRC_R = crate :: BitReader < CTL1_TRIGSRC_A > ; # [doc = "Sample trigger source\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL1_TRIGSRC_A { # [doc = "0: SOFTWARE"]
CTL1_TRIGSRC_SOFTWARE = 0 , # [doc = "1: EVENT"]
CTL1_TRIGSRC_EVENT = 1 , } impl From < CTL1_TRIGSRC_A > for bool { # [inline (always)]
fn from (variant : CTL1_TRIGSRC_A) -> Self { variant as u8 != 0 } } impl CTL1_TRIGSRC_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL1_TRIGSRC_A { match self . bits { false => CTL1_TRIGSRC_A :: CTL1_TRIGSRC_SOFTWARE , true => CTL1_TRIGSRC_A :: CTL1_TRIGSRC_EVENT , } } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_ctl1_trigsrc_software (& self) -> bool { * self == CTL1_TRIGSRC_A :: CTL1_TRIGSRC_SOFTWARE } # [doc = "EVENT"]
# [inline (always)]
pub fn is_ctl1_trigsrc_event (& self) -> bool { * self == CTL1_TRIGSRC_A :: CTL1_TRIGSRC_EVENT } } # [doc = "Field `CTL1_TRIGSRC` writer - Sample trigger source"]
pub type CTL1_TRIGSRC_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL1_TRIGSRC_A > ; impl < 'a , REG , const O : u8 > CTL1_TRIGSRC_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "SOFTWARE"]
# [inline (always)]
pub fn ctl1_trigsrc_software (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_TRIGSRC_A :: CTL1_TRIGSRC_SOFTWARE) } # [doc = "EVENT"]
# [inline (always)]
pub fn ctl1_trigsrc_event (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_TRIGSRC_A :: CTL1_TRIGSRC_EVENT) } } # [doc = "Field `CTL1_SC` reader - Start of conversion"]
pub type CTL1_SC_R = crate :: BitReader < CTL1_SC_A > ; # [doc = "Start of conversion\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL1_SC_A { # [doc = "0: STOP"]
CTL1_SC_STOP = 0 , # [doc = "1: START"]
CTL1_SC_START = 1 , } impl From < CTL1_SC_A > for bool { # [inline (always)]
fn from (variant : CTL1_SC_A) -> Self { variant as u8 != 0 } } impl CTL1_SC_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL1_SC_A { match self . bits { false => CTL1_SC_A :: CTL1_SC_STOP , true => CTL1_SC_A :: CTL1_SC_START , } } # [doc = "STOP"]
# [inline (always)]
pub fn is_ctl1_sc_stop (& self) -> bool { * self == CTL1_SC_A :: CTL1_SC_STOP } # [doc = "START"]
# [inline (always)]
pub fn is_ctl1_sc_start (& self) -> bool { * self == CTL1_SC_A :: CTL1_SC_START } } # [doc = "Field `CTL1_SC` writer - Start of conversion"]
pub type CTL1_SC_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL1_SC_A > ; impl < 'a , REG , const O : u8 > CTL1_SC_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "STOP"]
# [inline (always)]
pub fn ctl1_sc_stop (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_SC_A :: CTL1_SC_STOP) } # [doc = "START"]
# [inline (always)]
pub fn ctl1_sc_start (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_SC_A :: CTL1_SC_START) } } # [doc = "Field `CTL1_CONSEQ` reader - Conversion sequence mode"]
pub type CTL1_CONSEQ_R = crate :: FieldReader < CTL1_CONSEQ_A > ; # [doc = "Conversion sequence mode\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTL1_CONSEQ_A { # [doc = "0: SINGLE"]
CTL1_CONSEQ_SINGLE = 0 , # [doc = "1: SEQUENCE"]
CTL1_CONSEQ_SEQUENCE = 1 , # [doc = "2: REPEATSINGLE"]
CTL1_CONSEQ_REPEATSINGLE = 2 , # [doc = "3: REPEATSEQUENCE"]
CTL1_CONSEQ_REPEATSEQUENCE = 3 , } impl From < CTL1_CONSEQ_A > for u8 { # [inline (always)]
fn from (variant : CTL1_CONSEQ_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTL1_CONSEQ_A { type Ux = u8 ; } impl CTL1_CONSEQ_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL1_CONSEQ_A { match self . bits { 0 => CTL1_CONSEQ_A :: CTL1_CONSEQ_SINGLE , 1 => CTL1_CONSEQ_A :: CTL1_CONSEQ_SEQUENCE , 2 => CTL1_CONSEQ_A :: CTL1_CONSEQ_REPEATSINGLE , 3 => CTL1_CONSEQ_A :: CTL1_CONSEQ_REPEATSEQUENCE , _ => unreachable ! () , } } # [doc = "SINGLE"]
# [inline (always)]
pub fn is_ctl1_conseq_single (& self) -> bool { * self == CTL1_CONSEQ_A :: CTL1_CONSEQ_SINGLE } # [doc = "SEQUENCE"]
# [inline (always)]
pub fn is_ctl1_conseq_sequence (& self) -> bool { * self == CTL1_CONSEQ_A :: CTL1_CONSEQ_SEQUENCE } # [doc = "REPEATSINGLE"]
# [inline (always)]
pub fn is_ctl1_conseq_repeatsingle (& self) -> bool { * self == CTL1_CONSEQ_A :: CTL1_CONSEQ_REPEATSINGLE } # [doc = "REPEATSEQUENCE"]
# [inline (always)]
pub fn is_ctl1_conseq_repeatsequence (& self) -> bool { * self == CTL1_CONSEQ_A :: CTL1_CONSEQ_REPEATSEQUENCE } } # [doc = "Field `CTL1_CONSEQ` writer - Conversion sequence mode"]
pub type CTL1_CONSEQ_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , CTL1_CONSEQ_A > ; impl < 'a , REG , const O : u8 > CTL1_CONSEQ_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "SINGLE"]
# [inline (always)]
pub fn ctl1_conseq_single (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_CONSEQ_A :: CTL1_CONSEQ_SINGLE) } # [doc = "SEQUENCE"]
# [inline (always)]
pub fn ctl1_conseq_sequence (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_CONSEQ_A :: CTL1_CONSEQ_SEQUENCE) } # [doc = "REPEATSINGLE"]
# [inline (always)]
pub fn ctl1_conseq_repeatsingle (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_CONSEQ_A :: CTL1_CONSEQ_REPEATSINGLE) } # [doc = "REPEATSEQUENCE"]
# [inline (always)]
pub fn ctl1_conseq_repeatsequence (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_CONSEQ_A :: CTL1_CONSEQ_REPEATSEQUENCE) } } # [doc = "Field `CTL1_SAMPMODE` reader - Sample mode. This bit selects the source of the sampling signal. MANUAL option is not valid when TRIGSRC is selected as hardware event trigger."]
pub type CTL1_SAMPMODE_R = crate :: BitReader < CTL1_SAMPMODE_A > ; # [doc = "Sample mode. This bit selects the source of the sampling signal. MANUAL option is not valid when TRIGSRC is selected as hardware event trigger.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL1_SAMPMODE_A { # [doc = "0: AUTO"]
CTL1_SAMPMODE_AUTO = 0 , # [doc = "1: MANUAL"]
CTL1_SAMPMODE_MANUAL = 1 , } impl From < CTL1_SAMPMODE_A > for bool { # [inline (always)]
fn from (variant : CTL1_SAMPMODE_A) -> Self { variant as u8 != 0 } } impl CTL1_SAMPMODE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL1_SAMPMODE_A { match self . bits { false => CTL1_SAMPMODE_A :: CTL1_SAMPMODE_AUTO , true => CTL1_SAMPMODE_A :: CTL1_SAMPMODE_MANUAL , } } # [doc = "AUTO"]
# [inline (always)]
pub fn is_ctl1_sampmode_auto (& self) -> bool { * self == CTL1_SAMPMODE_A :: CTL1_SAMPMODE_AUTO } # [doc = "MANUAL"]
# [inline (always)]
pub fn is_ctl1_sampmode_manual (& self) -> bool { * self == CTL1_SAMPMODE_A :: CTL1_SAMPMODE_MANUAL } } # [doc = "Field `CTL1_SAMPMODE` writer - Sample mode. This bit selects the source of the sampling signal. MANUAL option is not valid when TRIGSRC is selected as hardware event trigger."]
pub type CTL1_SAMPMODE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL1_SAMPMODE_A > ; impl < 'a , REG , const O : u8 > CTL1_SAMPMODE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "AUTO"]
# [inline (always)]
pub fn ctl1_sampmode_auto (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_SAMPMODE_A :: CTL1_SAMPMODE_AUTO) } # [doc = "MANUAL"]
# [inline (always)]
pub fn ctl1_sampmode_manual (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_SAMPMODE_A :: CTL1_SAMPMODE_MANUAL) } } # [doc = "Field `CTL1_AVGN` reader - Hardware averager numerator. Selects number of conversions to accumulate for current MEMCTLx and then it is divided by AVGD. Result will be stored in MEMRESx."]
pub type CTL1_AVGN_R = crate :: FieldReader < CTL1_AVGN_A > ; # [doc = "Hardware averager numerator. Selects number of conversions to accumulate for current MEMCTLx and then it is divided by AVGD. Result will be stored in MEMRESx.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTL1_AVGN_A { # [doc = "0: DISABLE"]
CTL1_AVGN_DISABLE = 0 , # [doc = "1: AVG_2"]
CTL1_AVGN_AVG_2 = 1 , # [doc = "2: AVG_4"]
CTL1_AVGN_AVG_4 = 2 , # [doc = "3: AVG_8"]
CTL1_AVGN_AVG_8 = 3 , # [doc = "4: AVG_16"]
CTL1_AVGN_AVG_16 = 4 , # [doc = "5: AVG_32"]
CTL1_AVGN_AVG_32 = 5 , # [doc = "6: AVG_64"]
CTL1_AVGN_AVG_64 = 6 , # [doc = "7: AVG_128"]
CTL1_AVGN_AVG_128 = 7 , } impl From < CTL1_AVGN_A > for u8 { # [inline (always)]
fn from (variant : CTL1_AVGN_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTL1_AVGN_A { type Ux = u8 ; } impl CTL1_AVGN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL1_AVGN_A { match self . bits { 0 => CTL1_AVGN_A :: CTL1_AVGN_DISABLE , 1 => CTL1_AVGN_A :: CTL1_AVGN_AVG_2 , 2 => CTL1_AVGN_A :: CTL1_AVGN_AVG_4 , 3 => CTL1_AVGN_A :: CTL1_AVGN_AVG_8 , 4 => CTL1_AVGN_A :: CTL1_AVGN_AVG_16 , 5 => CTL1_AVGN_A :: CTL1_AVGN_AVG_32 , 6 => CTL1_AVGN_A :: CTL1_AVGN_AVG_64 , 7 => CTL1_AVGN_A :: CTL1_AVGN_AVG_128 , _ => unreachable ! () , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl1_avgn_disable (& self) -> bool { * self == CTL1_AVGN_A :: CTL1_AVGN_DISABLE } # [doc = "AVG_2"]
# [inline (always)]
pub fn is_ctl1_avgn_avg_2 (& self) -> bool { * self == CTL1_AVGN_A :: CTL1_AVGN_AVG_2 } # [doc = "AVG_4"]
# [inline (always)]
pub fn is_ctl1_avgn_avg_4 (& self) -> bool { * self == CTL1_AVGN_A :: CTL1_AVGN_AVG_4 } # [doc = "AVG_8"]
# [inline (always)]
pub fn is_ctl1_avgn_avg_8 (& self) -> bool { * self == CTL1_AVGN_A :: CTL1_AVGN_AVG_8 } # [doc = "AVG_16"]
# [inline (always)]
pub fn is_ctl1_avgn_avg_16 (& self) -> bool { * self == CTL1_AVGN_A :: CTL1_AVGN_AVG_16 } # [doc = "AVG_32"]
# [inline (always)]
pub fn is_ctl1_avgn_avg_32 (& self) -> bool { * self == CTL1_AVGN_A :: CTL1_AVGN_AVG_32 } # [doc = "AVG_64"]
# [inline (always)]
pub fn is_ctl1_avgn_avg_64 (& self) -> bool { * self == CTL1_AVGN_A :: CTL1_AVGN_AVG_64 } # [doc = "AVG_128"]
# [inline (always)]
pub fn is_ctl1_avgn_avg_128 (& self) -> bool { * self == CTL1_AVGN_A :: CTL1_AVGN_AVG_128 } } # [doc = "Field `CTL1_AVGN` writer - Hardware averager numerator. Selects number of conversions to accumulate for current MEMCTLx and then it is divided by AVGD. Result will be stored in MEMRESx."]
pub type CTL1_AVGN_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 3 , O , CTL1_AVGN_A > ; impl < 'a , REG , const O : u8 > CTL1_AVGN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl1_avgn_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_AVGN_A :: CTL1_AVGN_DISABLE) } # [doc = "AVG_2"]
# [inline (always)]
pub fn ctl1_avgn_avg_2 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_AVGN_A :: CTL1_AVGN_AVG_2) } # [doc = "AVG_4"]
# [inline (always)]
pub fn ctl1_avgn_avg_4 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_AVGN_A :: CTL1_AVGN_AVG_4) } # [doc = "AVG_8"]
# [inline (always)]
pub fn ctl1_avgn_avg_8 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_AVGN_A :: CTL1_AVGN_AVG_8) } # [doc = "AVG_16"]
# [inline (always)]
pub fn ctl1_avgn_avg_16 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_AVGN_A :: CTL1_AVGN_AVG_16) } # [doc = "AVG_32"]
# [inline (always)]
pub fn ctl1_avgn_avg_32 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_AVGN_A :: CTL1_AVGN_AVG_32) } # [doc = "AVG_64"]
# [inline (always)]
pub fn ctl1_avgn_avg_64 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_AVGN_A :: CTL1_AVGN_AVG_64) } # [doc = "AVG_128"]
# [inline (always)]
pub fn ctl1_avgn_avg_128 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_AVGN_A :: CTL1_AVGN_AVG_128) } } # [doc = "Field `CTL1_AVGD` reader - Hardware averager denominator. The number to divide the accumulated value by (this is a shift). Note result register is maximum of 16-bits long so if not shifted appropirately result will be truncated."]
pub type CTL1_AVGD_R = crate :: FieldReader < CTL1_AVGD_A > ; # [doc = "Hardware averager denominator. The number to divide the accumulated value by (this is a shift). Note result register is maximum of 16-bits long so if not shifted appropirately result will be truncated.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTL1_AVGD_A { # [doc = "0: SHIFT0"]
CTL1_AVGD_SHIFT0 = 0 , # [doc = "1: SHIFT1"]
CTL1_AVGD_SHIFT1 = 1 , # [doc = "2: SHIFT2"]
CTL1_AVGD_SHIFT2 = 2 , # [doc = "3: SHIFT3"]
CTL1_AVGD_SHIFT3 = 3 , # [doc = "4: SHIFT4"]
CTL1_AVGD_SHIFT4 = 4 , # [doc = "5: SHIFT5"]
CTL1_AVGD_SHIFT5 = 5 , # [doc = "6: SHIFT6"]
CTL1_AVGD_SHIFT6 = 6 , # [doc = "7: SHIFT7"]
CTL1_AVGD_SHIFT7 = 7 , } impl From < CTL1_AVGD_A > for u8 { # [inline (always)]
fn from (variant : CTL1_AVGD_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTL1_AVGD_A { type Ux = u8 ; } impl CTL1_AVGD_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL1_AVGD_A { match self . bits { 0 => CTL1_AVGD_A :: CTL1_AVGD_SHIFT0 , 1 => CTL1_AVGD_A :: CTL1_AVGD_SHIFT1 , 2 => CTL1_AVGD_A :: CTL1_AVGD_SHIFT2 , 3 => CTL1_AVGD_A :: CTL1_AVGD_SHIFT3 , 4 => CTL1_AVGD_A :: CTL1_AVGD_SHIFT4 , 5 => CTL1_AVGD_A :: CTL1_AVGD_SHIFT5 , 6 => CTL1_AVGD_A :: CTL1_AVGD_SHIFT6 , 7 => CTL1_AVGD_A :: CTL1_AVGD_SHIFT7 , _ => unreachable ! () , } } # [doc = "SHIFT0"]
# [inline (always)]
pub fn is_ctl1_avgd_shift0 (& self) -> bool { * self == CTL1_AVGD_A :: CTL1_AVGD_SHIFT0 } # [doc = "SHIFT1"]
# [inline (always)]
pub fn is_ctl1_avgd_shift1 (& self) -> bool { * self == CTL1_AVGD_A :: CTL1_AVGD_SHIFT1 } # [doc = "SHIFT2"]
# [inline (always)]
pub fn is_ctl1_avgd_shift2 (& self) -> bool { * self == CTL1_AVGD_A :: CTL1_AVGD_SHIFT2 } # [doc = "SHIFT3"]
# [inline (always)]
pub fn is_ctl1_avgd_shift3 (& self) -> bool { * self == CTL1_AVGD_A :: CTL1_AVGD_SHIFT3 } # [doc = "SHIFT4"]
# [inline (always)]
pub fn is_ctl1_avgd_shift4 (& self) -> bool { * self == CTL1_AVGD_A :: CTL1_AVGD_SHIFT4 } # [doc = "SHIFT5"]
# [inline (always)]
pub fn is_ctl1_avgd_shift5 (& self) -> bool { * self == CTL1_AVGD_A :: CTL1_AVGD_SHIFT5 } # [doc = "SHIFT6"]
# [inline (always)]
pub fn is_ctl1_avgd_shift6 (& self) -> bool { * self == CTL1_AVGD_A :: CTL1_AVGD_SHIFT6 } # [doc = "SHIFT7"]
# [inline (always)]
pub fn is_ctl1_avgd_shift7 (& self) -> bool { * self == CTL1_AVGD_A :: CTL1_AVGD_SHIFT7 } } # [doc = "Field `CTL1_AVGD` writer - Hardware averager denominator. The number to divide the accumulated value by (this is a shift). Note result register is maximum of 16-bits long so if not shifted appropirately result will be truncated."]
pub type CTL1_AVGD_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 3 , O , CTL1_AVGD_A > ; impl < 'a , REG , const O : u8 > CTL1_AVGD_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "SHIFT0"]
# [inline (always)]
pub fn ctl1_avgd_shift0 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_AVGD_A :: CTL1_AVGD_SHIFT0) } # [doc = "SHIFT1"]
# [inline (always)]
pub fn ctl1_avgd_shift1 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_AVGD_A :: CTL1_AVGD_SHIFT1) } # [doc = "SHIFT2"]
# [inline (always)]
pub fn ctl1_avgd_shift2 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_AVGD_A :: CTL1_AVGD_SHIFT2) } # [doc = "SHIFT3"]
# [inline (always)]
pub fn ctl1_avgd_shift3 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_AVGD_A :: CTL1_AVGD_SHIFT3) } # [doc = "SHIFT4"]
# [inline (always)]
pub fn ctl1_avgd_shift4 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_AVGD_A :: CTL1_AVGD_SHIFT4) } # [doc = "SHIFT5"]
# [inline (always)]
pub fn ctl1_avgd_shift5 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_AVGD_A :: CTL1_AVGD_SHIFT5) } # [doc = "SHIFT6"]
# [inline (always)]
pub fn ctl1_avgd_shift6 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_AVGD_A :: CTL1_AVGD_SHIFT6) } # [doc = "SHIFT7"]
# [inline (always)]
pub fn ctl1_avgd_shift7 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL1_AVGD_A :: CTL1_AVGD_SHIFT7) } } impl R { # [doc = "Bit 0 - Sample trigger source"]
# [inline (always)]
pub fn ctl1_trigsrc (& self) -> CTL1_TRIGSRC_R { CTL1_TRIGSRC_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 8 - Start of conversion"]
# [inline (always)]
pub fn ctl1_sc (& self) -> CTL1_SC_R { CTL1_SC_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bits 16:17 - Conversion sequence mode"]
# [inline (always)]
pub fn ctl1_conseq (& self) -> CTL1_CONSEQ_R { CTL1_CONSEQ_R :: new (((self . bits >> 16) & 3) as u8) } # [doc = "Bit 20 - Sample mode. This bit selects the source of the sampling signal. MANUAL option is not valid when TRIGSRC is selected as hardware event trigger."]
# [inline (always)]
pub fn ctl1_sampmode (& self) -> CTL1_SAMPMODE_R { CTL1_SAMPMODE_R :: new (((self . bits >> 20) & 1) != 0) } # [doc = "Bits 24:26 - Hardware averager numerator. Selects number of conversions to accumulate for current MEMCTLx and then it is divided by AVGD. Result will be stored in MEMRESx."]
# [inline (always)]
pub fn ctl1_avgn (& self) -> CTL1_AVGN_R { CTL1_AVGN_R :: new (((self . bits >> 24) & 7) as u8) } # [doc = "Bits 28:30 - Hardware averager denominator. The number to divide the accumulated value by (this is a shift). Note result register is maximum of 16-bits long so if not shifted appropirately result will be truncated."]
# [inline (always)]
pub fn ctl1_avgd (& self) -> CTL1_AVGD_R { CTL1_AVGD_R :: new (((self . bits >> 28) & 7) as u8) } } impl W { # [doc = "Bit 0 - Sample trigger source"]
# [inline (always)]
# [must_use]
pub fn ctl1_trigsrc (& mut self) -> CTL1_TRIGSRC_W < CTL1_SPEC , 0 > { CTL1_TRIGSRC_W :: new (self) } # [doc = "Bit 8 - Start of conversion"]
# [inline (always)]
# [must_use]
pub fn ctl1_sc (& mut self) -> CTL1_SC_W < CTL1_SPEC , 8 > { CTL1_SC_W :: new (self) } # [doc = "Bits 16:17 - Conversion sequence mode"]
# [inline (always)]
# [must_use]
pub fn ctl1_conseq (& mut self) -> CTL1_CONSEQ_W < CTL1_SPEC , 16 > { CTL1_CONSEQ_W :: new (self) } # [doc = "Bit 20 - Sample mode. This bit selects the source of the sampling signal. MANUAL option is not valid when TRIGSRC is selected as hardware event trigger."]
# [inline (always)]
# [must_use]
pub fn ctl1_sampmode (& mut self) -> CTL1_SAMPMODE_W < CTL1_SPEC , 20 > { CTL1_SAMPMODE_W :: new (self) } # [doc = "Bits 24:26 - Hardware averager numerator. Selects number of conversions to accumulate for current MEMCTLx and then it is divided by AVGD. Result will be stored in MEMRESx."]
# [inline (always)]
# [must_use]
pub fn ctl1_avgn (& mut self) -> CTL1_AVGN_W < CTL1_SPEC , 24 > { CTL1_AVGN_W :: new (self) } # [doc = "Bits 28:30 - Hardware averager denominator. The number to divide the accumulated value by (this is a shift). Note result register is maximum of 16-bits long so if not shifted appropirately result will be truncated."]
# [inline (always)]
# [must_use]
pub fn ctl1_avgd (& mut self) -> CTL1_AVGD_W < CTL1_SPEC , 28 > { CTL1_AVGD_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Control Register 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl1::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTL1_SPEC ; impl crate :: RegisterSpec for CTL1_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ctl1::R`](R) reader structure"]
impl crate :: Readable for CTL1_SPEC { } # [doc = "`write(|w| ..)` method takes [`ctl1::W`](W) writer structure"]
impl crate :: Writable for CTL1_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTL1 to value 0"]
impl crate :: Resettable for CTL1_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTL2 (rw) register accessor: Control Register 2\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl2::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl2::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctl2`]
module"]
pub type CTL2 = crate :: Reg < ctl2 :: CTL2_SPEC > ; # [doc = "Control Register 2"]
pub mod ctl2 { # [doc = "Register `CTL2` reader"]
pub type R = crate :: R < CTL2_SPEC > ; # [doc = "Register `CTL2` writer"]
pub type W = crate :: W < CTL2_SPEC > ; # [doc = "Field `CTL2_DF` reader - Data read-back format. Data is always stored in binary unsigned format."]
pub type CTL2_DF_R = crate :: BitReader < CTL2_DF_A > ; # [doc = "Data read-back format. Data is always stored in binary unsigned format.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL2_DF_A { # [doc = "0: UNSIGNED"]
CTL2_DF_UNSIGNED = 0 , # [doc = "1: SIGNED"]
CTL2_DF_SIGNED = 1 , } impl From < CTL2_DF_A > for bool { # [inline (always)]
fn from (variant : CTL2_DF_A) -> Self { variant as u8 != 0 } } impl CTL2_DF_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL2_DF_A { match self . bits { false => CTL2_DF_A :: CTL2_DF_UNSIGNED , true => CTL2_DF_A :: CTL2_DF_SIGNED , } } # [doc = "UNSIGNED"]
# [inline (always)]
pub fn is_ctl2_df_unsigned (& self) -> bool { * self == CTL2_DF_A :: CTL2_DF_UNSIGNED } # [doc = "SIGNED"]
# [inline (always)]
pub fn is_ctl2_df_signed (& self) -> bool { * self == CTL2_DF_A :: CTL2_DF_SIGNED } } # [doc = "Field `CTL2_DF` writer - Data read-back format. Data is always stored in binary unsigned format."]
pub type CTL2_DF_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL2_DF_A > ; impl < 'a , REG , const O : u8 > CTL2_DF_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "UNSIGNED"]
# [inline (always)]
pub fn ctl2_df_unsigned (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_DF_A :: CTL2_DF_UNSIGNED) } # [doc = "SIGNED"]
# [inline (always)]
pub fn ctl2_df_signed (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_DF_A :: CTL2_DF_SIGNED) } } # [doc = "Field `CTL2_RES` reader - Resolution. These bits define the resolutoin of ADC conversion result. Note : A value of 3 defaults to 12-bits resolution."]
pub type CTL2_RES_R = crate :: FieldReader < CTL2_RES_A > ; # [doc = "Resolution. These bits define the resolutoin of ADC conversion result. Note : A value of 3 defaults to 12-bits resolution.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTL2_RES_A { # [doc = "0: BIT_12"]
CTL2_RES_BIT_12 = 0 , # [doc = "1: BIT_10"]
CTL2_RES_BIT_10 = 1 , # [doc = "2: BIT_8"]
CTL2_RES_BIT_8 = 2 , } impl From < CTL2_RES_A > for u8 { # [inline (always)]
fn from (variant : CTL2_RES_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTL2_RES_A { type Ux = u8 ; } impl CTL2_RES_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTL2_RES_A > { match self . bits { 0 => Some (CTL2_RES_A :: CTL2_RES_BIT_12) , 1 => Some (CTL2_RES_A :: CTL2_RES_BIT_10) , 2 => Some (CTL2_RES_A :: CTL2_RES_BIT_8) , _ => None , } } # [doc = "BIT_12"]
# [inline (always)]
pub fn is_ctl2_res_bit_12 (& self) -> bool { * self == CTL2_RES_A :: CTL2_RES_BIT_12 } # [doc = "BIT_10"]
# [inline (always)]
pub fn is_ctl2_res_bit_10 (& self) -> bool { * self == CTL2_RES_A :: CTL2_RES_BIT_10 } # [doc = "BIT_8"]
# [inline (always)]
pub fn is_ctl2_res_bit_8 (& self) -> bool { * self == CTL2_RES_A :: CTL2_RES_BIT_8 } } # [doc = "Field `CTL2_RES` writer - Resolution. These bits define the resolutoin of ADC conversion result. Note : A value of 3 defaults to 12-bits resolution."]
pub type CTL2_RES_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , CTL2_RES_A > ; impl < 'a , REG , const O : u8 > CTL2_RES_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "BIT_12"]
# [inline (always)]
pub fn ctl2_res_bit_12 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_RES_A :: CTL2_RES_BIT_12) } # [doc = "BIT_10"]
# [inline (always)]
pub fn ctl2_res_bit_10 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_RES_A :: CTL2_RES_BIT_10) } # [doc = "BIT_8"]
# [inline (always)]
pub fn ctl2_res_bit_8 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_RES_A :: CTL2_RES_BIT_8) } } # [doc = "Field `CTL2_DMAEN` reader - Enable DMA trigger for data transfer. Note: DMAEN bit is cleared by hardware based on DMA done signal at the end of data transfer. Software has to re-enable DMAEN bit for ADC to generate DMA triggers."]
pub type CTL2_DMAEN_R = crate :: BitReader < CTL2_DMAEN_A > ; # [doc = "Enable DMA trigger for data transfer. Note: DMAEN bit is cleared by hardware based on DMA done signal at the end of data transfer. Software has to re-enable DMAEN bit for ADC to generate DMA triggers.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL2_DMAEN_A { # [doc = "0: DISABLE"]
CTL2_DMAEN_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL2_DMAEN_ENABLE = 1 , } impl From < CTL2_DMAEN_A > for bool { # [inline (always)]
fn from (variant : CTL2_DMAEN_A) -> Self { variant as u8 != 0 } } impl CTL2_DMAEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL2_DMAEN_A { match self . bits { false => CTL2_DMAEN_A :: CTL2_DMAEN_DISABLE , true => CTL2_DMAEN_A :: CTL2_DMAEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl2_dmaen_disable (& self) -> bool { * self == CTL2_DMAEN_A :: CTL2_DMAEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl2_dmaen_enable (& self) -> bool { * self == CTL2_DMAEN_A :: CTL2_DMAEN_ENABLE } } # [doc = "Field `CTL2_DMAEN` writer - Enable DMA trigger for data transfer. Note: DMAEN bit is cleared by hardware based on DMA done signal at the end of data transfer. Software has to re-enable DMAEN bit for ADC to generate DMA triggers."]
pub type CTL2_DMAEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL2_DMAEN_A > ; impl < 'a , REG , const O : u8 > CTL2_DMAEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl2_dmaen_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_DMAEN_A :: CTL2_DMAEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl2_dmaen_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_DMAEN_A :: CTL2_DMAEN_ENABLE) } } # [doc = "Field `CTL2_FIFOEN` reader - Enable FIFO based operation"]
pub type CTL2_FIFOEN_R = crate :: BitReader < CTL2_FIFOEN_A > ; # [doc = "Enable FIFO based operation\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTL2_FIFOEN_A { # [doc = "0: DISABLE"]
CTL2_FIFOEN_DISABLE = 0 , # [doc = "1: ENABLE"]
CTL2_FIFOEN_ENABLE = 1 , } impl From < CTL2_FIFOEN_A > for bool { # [inline (always)]
fn from (variant : CTL2_FIFOEN_A) -> Self { variant as u8 != 0 } } impl CTL2_FIFOEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTL2_FIFOEN_A { match self . bits { false => CTL2_FIFOEN_A :: CTL2_FIFOEN_DISABLE , true => CTL2_FIFOEN_A :: CTL2_FIFOEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_ctl2_fifoen_disable (& self) -> bool { * self == CTL2_FIFOEN_A :: CTL2_FIFOEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_ctl2_fifoen_enable (& self) -> bool { * self == CTL2_FIFOEN_A :: CTL2_FIFOEN_ENABLE } } # [doc = "Field `CTL2_FIFOEN` writer - Enable FIFO based operation"]
pub type CTL2_FIFOEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTL2_FIFOEN_A > ; impl < 'a , REG , const O : u8 > CTL2_FIFOEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn ctl2_fifoen_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_FIFOEN_A :: CTL2_FIFOEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn ctl2_fifoen_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_FIFOEN_A :: CTL2_FIFOEN_ENABLE) } } # [doc = "Field `CTL2_SAMPCNT` reader - Number of ADC converted samples to be transferred on a DMA trigger"]
pub type CTL2_SAMPCNT_R = crate :: FieldReader < CTL2_SAMPCNT_A > ; # [doc = "Number of ADC converted samples to be transferred on a DMA trigger\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTL2_SAMPCNT_A { # [doc = "0: MIN"]
CTL2_SAMPCNT_MIN = 0 , # [doc = "24: MAX"]
CTL2_SAMPCNT_MAX = 24 , } impl From < CTL2_SAMPCNT_A > for u8 { # [inline (always)]
fn from (variant : CTL2_SAMPCNT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTL2_SAMPCNT_A { type Ux = u8 ; } impl CTL2_SAMPCNT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTL2_SAMPCNT_A > { match self . bits { 0 => Some (CTL2_SAMPCNT_A :: CTL2_SAMPCNT_MIN) , 24 => Some (CTL2_SAMPCNT_A :: CTL2_SAMPCNT_MAX) , _ => None , } } # [doc = "MIN"]
# [inline (always)]
pub fn is_ctl2_sampcnt_min (& self) -> bool { * self == CTL2_SAMPCNT_A :: CTL2_SAMPCNT_MIN } # [doc = "MAX"]
# [inline (always)]
pub fn is_ctl2_sampcnt_max (& self) -> bool { * self == CTL2_SAMPCNT_A :: CTL2_SAMPCNT_MAX } } # [doc = "Field `CTL2_SAMPCNT` writer - Number of ADC converted samples to be transferred on a DMA trigger"]
pub type CTL2_SAMPCNT_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 5 , O , CTL2_SAMPCNT_A > ; impl < 'a , REG , const O : u8 > CTL2_SAMPCNT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "MIN"]
# [inline (always)]
pub fn ctl2_sampcnt_min (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_SAMPCNT_A :: CTL2_SAMPCNT_MIN) } # [doc = "MAX"]
# [inline (always)]
pub fn ctl2_sampcnt_max (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_SAMPCNT_A :: CTL2_SAMPCNT_MAX) } } # [doc = "Field `CTL2_STARTADD` reader - Sequencer start address. These bits select which MEMCTLx is used for single conversion or as first MEMCTL for sequence mode. The value of STARTADD is 0x00 to 0x17, corresponding to MEMRES0 to MEMRES23."]
pub type CTL2_STARTADD_R = crate :: FieldReader < CTL2_STARTADD_A > ; # [doc = "Sequencer start address. These bits select which MEMCTLx is used for single conversion or as first MEMCTL for sequence mode. The value of STARTADD is 0x00 to 0x17, corresponding to MEMRES0 to MEMRES23.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTL2_STARTADD_A { # [doc = "0: ADDR_00"]
CTL2_STARTADD_ADDR_00 = 0 , # [doc = "1: ADDR_01"]
CTL2_STARTADD_ADDR_01 = 1 , # [doc = "2: ADDR_02"]
CTL2_STARTADD_ADDR_02 = 2 , # [doc = "3: ADDR_03"]
CTL2_STARTADD_ADDR_03 = 3 , # [doc = "4: ADDR_04"]
CTL2_STARTADD_ADDR_04 = 4 , # [doc = "5: ADDR_05"]
CTL2_STARTADD_ADDR_05 = 5 , # [doc = "6: ADDR_06"]
CTL2_STARTADD_ADDR_06 = 6 , # [doc = "7: ADDR_07"]
CTL2_STARTADD_ADDR_07 = 7 , # [doc = "8: ADDR_08"]
CTL2_STARTADD_ADDR_08 = 8 , # [doc = "9: ADDR_09"]
CTL2_STARTADD_ADDR_09 = 9 , # [doc = "10: ADDR_10"]
CTL2_STARTADD_ADDR_10 = 10 , # [doc = "11: ADDR_11"]
CTL2_STARTADD_ADDR_11 = 11 , # [doc = "12: ADDR_12"]
CTL2_STARTADD_ADDR_12 = 12 , # [doc = "13: ADDR_13"]
CTL2_STARTADD_ADDR_13 = 13 , # [doc = "14: ADDR_14"]
CTL2_STARTADD_ADDR_14 = 14 , # [doc = "15: ADDR_15"]
CTL2_STARTADD_ADDR_15 = 15 , # [doc = "16: ADDR_16"]
CTL2_STARTADD_ADDR_16 = 16 , # [doc = "17: ADDR_17"]
CTL2_STARTADD_ADDR_17 = 17 , # [doc = "18: ADDR_18"]
CTL2_STARTADD_ADDR_18 = 18 , # [doc = "19: ADDR_19"]
CTL2_STARTADD_ADDR_19 = 19 , # [doc = "20: ADDR_20"]
CTL2_STARTADD_ADDR_20 = 20 , # [doc = "21: ADDR_21"]
CTL2_STARTADD_ADDR_21 = 21 , # [doc = "22: ADDR_22"]
CTL2_STARTADD_ADDR_22 = 22 , # [doc = "23: ADDR_23"]
CTL2_STARTADD_ADDR_23 = 23 , } impl From < CTL2_STARTADD_A > for u8 { # [inline (always)]
fn from (variant : CTL2_STARTADD_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTL2_STARTADD_A { type Ux = u8 ; } impl CTL2_STARTADD_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTL2_STARTADD_A > { match self . bits { 0 => Some (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_00) , 1 => Some (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_01) , 2 => Some (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_02) , 3 => Some (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_03) , 4 => Some (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_04) , 5 => Some (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_05) , 6 => Some (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_06) , 7 => Some (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_07) , 8 => Some (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_08) , 9 => Some (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_09) , 10 => Some (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_10) , 11 => Some (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_11) , 12 => Some (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_12) , 13 => Some (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_13) , 14 => Some (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_14) , 15 => Some (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_15) , 16 => Some (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_16) , 17 => Some (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_17) , 18 => Some (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_18) , 19 => Some (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_19) , 20 => Some (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_20) , 21 => Some (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_21) , 22 => Some (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_22) , 23 => Some (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_23) , _ => None , } } # [doc = "ADDR_00"]
# [inline (always)]
pub fn is_ctl2_startadd_addr_00 (& self) -> bool { * self == CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_00 } # [doc = "ADDR_01"]
# [inline (always)]
pub fn is_ctl2_startadd_addr_01 (& self) -> bool { * self == CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_01 } # [doc = "ADDR_02"]
# [inline (always)]
pub fn is_ctl2_startadd_addr_02 (& self) -> bool { * self == CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_02 } # [doc = "ADDR_03"]
# [inline (always)]
pub fn is_ctl2_startadd_addr_03 (& self) -> bool { * self == CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_03 } # [doc = "ADDR_04"]
# [inline (always)]
pub fn is_ctl2_startadd_addr_04 (& self) -> bool { * self == CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_04 } # [doc = "ADDR_05"]
# [inline (always)]
pub fn is_ctl2_startadd_addr_05 (& self) -> bool { * self == CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_05 } # [doc = "ADDR_06"]
# [inline (always)]
pub fn is_ctl2_startadd_addr_06 (& self) -> bool { * self == CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_06 } # [doc = "ADDR_07"]
# [inline (always)]
pub fn is_ctl2_startadd_addr_07 (& self) -> bool { * self == CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_07 } # [doc = "ADDR_08"]
# [inline (always)]
pub fn is_ctl2_startadd_addr_08 (& self) -> bool { * self == CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_08 } # [doc = "ADDR_09"]
# [inline (always)]
pub fn is_ctl2_startadd_addr_09 (& self) -> bool { * self == CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_09 } # [doc = "ADDR_10"]
# [inline (always)]
pub fn is_ctl2_startadd_addr_10 (& self) -> bool { * self == CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_10 } # [doc = "ADDR_11"]
# [inline (always)]
pub fn is_ctl2_startadd_addr_11 (& self) -> bool { * self == CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_11 } # [doc = "ADDR_12"]
# [inline (always)]
pub fn is_ctl2_startadd_addr_12 (& self) -> bool { * self == CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_12 } # [doc = "ADDR_13"]
# [inline (always)]
pub fn is_ctl2_startadd_addr_13 (& self) -> bool { * self == CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_13 } # [doc = "ADDR_14"]
# [inline (always)]
pub fn is_ctl2_startadd_addr_14 (& self) -> bool { * self == CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_14 } # [doc = "ADDR_15"]
# [inline (always)]
pub fn is_ctl2_startadd_addr_15 (& self) -> bool { * self == CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_15 } # [doc = "ADDR_16"]
# [inline (always)]
pub fn is_ctl2_startadd_addr_16 (& self) -> bool { * self == CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_16 } # [doc = "ADDR_17"]
# [inline (always)]
pub fn is_ctl2_startadd_addr_17 (& self) -> bool { * self == CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_17 } # [doc = "ADDR_18"]
# [inline (always)]
pub fn is_ctl2_startadd_addr_18 (& self) -> bool { * self == CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_18 } # [doc = "ADDR_19"]
# [inline (always)]
pub fn is_ctl2_startadd_addr_19 (& self) -> bool { * self == CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_19 } # [doc = "ADDR_20"]
# [inline (always)]
pub fn is_ctl2_startadd_addr_20 (& self) -> bool { * self == CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_20 } # [doc = "ADDR_21"]
# [inline (always)]
pub fn is_ctl2_startadd_addr_21 (& self) -> bool { * self == CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_21 } # [doc = "ADDR_22"]
# [inline (always)]
pub fn is_ctl2_startadd_addr_22 (& self) -> bool { * self == CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_22 } # [doc = "ADDR_23"]
# [inline (always)]
pub fn is_ctl2_startadd_addr_23 (& self) -> bool { * self == CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_23 } } # [doc = "Field `CTL2_STARTADD` writer - Sequencer start address. These bits select which MEMCTLx is used for single conversion or as first MEMCTL for sequence mode. The value of STARTADD is 0x00 to 0x17, corresponding to MEMRES0 to MEMRES23."]
pub type CTL2_STARTADD_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 5 , O , CTL2_STARTADD_A > ; impl < 'a , REG , const O : u8 > CTL2_STARTADD_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "ADDR_00"]
# [inline (always)]
pub fn ctl2_startadd_addr_00 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_00) } # [doc = "ADDR_01"]
# [inline (always)]
pub fn ctl2_startadd_addr_01 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_01) } # [doc = "ADDR_02"]
# [inline (always)]
pub fn ctl2_startadd_addr_02 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_02) } # [doc = "ADDR_03"]
# [inline (always)]
pub fn ctl2_startadd_addr_03 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_03) } # [doc = "ADDR_04"]
# [inline (always)]
pub fn ctl2_startadd_addr_04 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_04) } # [doc = "ADDR_05"]
# [inline (always)]
pub fn ctl2_startadd_addr_05 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_05) } # [doc = "ADDR_06"]
# [inline (always)]
pub fn ctl2_startadd_addr_06 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_06) } # [doc = "ADDR_07"]
# [inline (always)]
pub fn ctl2_startadd_addr_07 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_07) } # [doc = "ADDR_08"]
# [inline (always)]
pub fn ctl2_startadd_addr_08 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_08) } # [doc = "ADDR_09"]
# [inline (always)]
pub fn ctl2_startadd_addr_09 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_09) } # [doc = "ADDR_10"]
# [inline (always)]
pub fn ctl2_startadd_addr_10 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_10) } # [doc = "ADDR_11"]
# [inline (always)]
pub fn ctl2_startadd_addr_11 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_11) } # [doc = "ADDR_12"]
# [inline (always)]
pub fn ctl2_startadd_addr_12 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_12) } # [doc = "ADDR_13"]
# [inline (always)]
pub fn ctl2_startadd_addr_13 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_13) } # [doc = "ADDR_14"]
# [inline (always)]
pub fn ctl2_startadd_addr_14 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_14) } # [doc = "ADDR_15"]
# [inline (always)]
pub fn ctl2_startadd_addr_15 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_15) } # [doc = "ADDR_16"]
# [inline (always)]
pub fn ctl2_startadd_addr_16 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_16) } # [doc = "ADDR_17"]
# [inline (always)]
pub fn ctl2_startadd_addr_17 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_17) } # [doc = "ADDR_18"]
# [inline (always)]
pub fn ctl2_startadd_addr_18 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_18) } # [doc = "ADDR_19"]
# [inline (always)]
pub fn ctl2_startadd_addr_19 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_19) } # [doc = "ADDR_20"]
# [inline (always)]
pub fn ctl2_startadd_addr_20 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_20) } # [doc = "ADDR_21"]
# [inline (always)]
pub fn ctl2_startadd_addr_21 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_21) } # [doc = "ADDR_22"]
# [inline (always)]
pub fn ctl2_startadd_addr_22 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_22) } # [doc = "ADDR_23"]
# [inline (always)]
pub fn ctl2_startadd_addr_23 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_STARTADD_A :: CTL2_STARTADD_ADDR_23) } } # [doc = "Field `CTL2_ENDADD` reader - Sequence end address. These bits select which MEMCTLx is the last one for the sequence mode. The value of ENDADD is 0x00 to 0x17, corresponding to MEMRES0 to MEMRES23."]
pub type CTL2_ENDADD_R = crate :: FieldReader < CTL2_ENDADD_A > ; # [doc = "Sequence end address. These bits select which MEMCTLx is the last one for the sequence mode. The value of ENDADD is 0x00 to 0x17, corresponding to MEMRES0 to MEMRES23.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTL2_ENDADD_A { # [doc = "0: ADDR_00"]
CTL2_ENDADD_ADDR_00 = 0 , # [doc = "1: ADDR_01"]
CTL2_ENDADD_ADDR_01 = 1 , # [doc = "2: ADDR_02"]
CTL2_ENDADD_ADDR_02 = 2 , # [doc = "3: ADDR_03"]
CTL2_ENDADD_ADDR_03 = 3 , # [doc = "4: ADDR_04"]
CTL2_ENDADD_ADDR_04 = 4 , # [doc = "5: ADDR_05"]
CTL2_ENDADD_ADDR_05 = 5 , # [doc = "6: ADDR_06"]
CTL2_ENDADD_ADDR_06 = 6 , # [doc = "7: ADDR_07"]
CTL2_ENDADD_ADDR_07 = 7 , # [doc = "8: ADDR_08"]
CTL2_ENDADD_ADDR_08 = 8 , # [doc = "9: ADDR_09"]
CTL2_ENDADD_ADDR_09 = 9 , # [doc = "10: ADDR_10"]
CTL2_ENDADD_ADDR_10 = 10 , # [doc = "11: ADDR_11"]
CTL2_ENDADD_ADDR_11 = 11 , # [doc = "12: ADDR_12"]
CTL2_ENDADD_ADDR_12 = 12 , # [doc = "13: ADDR_13"]
CTL2_ENDADD_ADDR_13 = 13 , # [doc = "14: ADDR_14"]
CTL2_ENDADD_ADDR_14 = 14 , # [doc = "15: ADDR_15"]
CTL2_ENDADD_ADDR_15 = 15 , # [doc = "16: ADDR_16"]
CTL2_ENDADD_ADDR_16 = 16 , # [doc = "17: ADDR_17"]
CTL2_ENDADD_ADDR_17 = 17 , # [doc = "18: ADDR_18"]
CTL2_ENDADD_ADDR_18 = 18 , # [doc = "19: ADDR_19"]
CTL2_ENDADD_ADDR_19 = 19 , # [doc = "20: ADDR_20"]
CTL2_ENDADD_ADDR_20 = 20 , # [doc = "21: ADDR_21"]
CTL2_ENDADD_ADDR_21 = 21 , # [doc = "22: ADDR_22"]
CTL2_ENDADD_ADDR_22 = 22 , # [doc = "23: ADDR_23"]
CTL2_ENDADD_ADDR_23 = 23 , } impl From < CTL2_ENDADD_A > for u8 { # [inline (always)]
fn from (variant : CTL2_ENDADD_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTL2_ENDADD_A { type Ux = u8 ; } impl CTL2_ENDADD_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTL2_ENDADD_A > { match self . bits { 0 => Some (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_00) , 1 => Some (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_01) , 2 => Some (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_02) , 3 => Some (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_03) , 4 => Some (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_04) , 5 => Some (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_05) , 6 => Some (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_06) , 7 => Some (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_07) , 8 => Some (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_08) , 9 => Some (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_09) , 10 => Some (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_10) , 11 => Some (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_11) , 12 => Some (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_12) , 13 => Some (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_13) , 14 => Some (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_14) , 15 => Some (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_15) , 16 => Some (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_16) , 17 => Some (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_17) , 18 => Some (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_18) , 19 => Some (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_19) , 20 => Some (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_20) , 21 => Some (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_21) , 22 => Some (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_22) , 23 => Some (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_23) , _ => None , } } # [doc = "ADDR_00"]
# [inline (always)]
pub fn is_ctl2_endadd_addr_00 (& self) -> bool { * self == CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_00 } # [doc = "ADDR_01"]
# [inline (always)]
pub fn is_ctl2_endadd_addr_01 (& self) -> bool { * self == CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_01 } # [doc = "ADDR_02"]
# [inline (always)]
pub fn is_ctl2_endadd_addr_02 (& self) -> bool { * self == CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_02 } # [doc = "ADDR_03"]
# [inline (always)]
pub fn is_ctl2_endadd_addr_03 (& self) -> bool { * self == CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_03 } # [doc = "ADDR_04"]
# [inline (always)]
pub fn is_ctl2_endadd_addr_04 (& self) -> bool { * self == CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_04 } # [doc = "ADDR_05"]
# [inline (always)]
pub fn is_ctl2_endadd_addr_05 (& self) -> bool { * self == CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_05 } # [doc = "ADDR_06"]
# [inline (always)]
pub fn is_ctl2_endadd_addr_06 (& self) -> bool { * self == CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_06 } # [doc = "ADDR_07"]
# [inline (always)]
pub fn is_ctl2_endadd_addr_07 (& self) -> bool { * self == CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_07 } # [doc = "ADDR_08"]
# [inline (always)]
pub fn is_ctl2_endadd_addr_08 (& self) -> bool { * self == CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_08 } # [doc = "ADDR_09"]
# [inline (always)]
pub fn is_ctl2_endadd_addr_09 (& self) -> bool { * self == CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_09 } # [doc = "ADDR_10"]
# [inline (always)]
pub fn is_ctl2_endadd_addr_10 (& self) -> bool { * self == CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_10 } # [doc = "ADDR_11"]
# [inline (always)]
pub fn is_ctl2_endadd_addr_11 (& self) -> bool { * self == CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_11 } # [doc = "ADDR_12"]
# [inline (always)]
pub fn is_ctl2_endadd_addr_12 (& self) -> bool { * self == CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_12 } # [doc = "ADDR_13"]
# [inline (always)]
pub fn is_ctl2_endadd_addr_13 (& self) -> bool { * self == CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_13 } # [doc = "ADDR_14"]
# [inline (always)]
pub fn is_ctl2_endadd_addr_14 (& self) -> bool { * self == CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_14 } # [doc = "ADDR_15"]
# [inline (always)]
pub fn is_ctl2_endadd_addr_15 (& self) -> bool { * self == CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_15 } # [doc = "ADDR_16"]
# [inline (always)]
pub fn is_ctl2_endadd_addr_16 (& self) -> bool { * self == CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_16 } # [doc = "ADDR_17"]
# [inline (always)]
pub fn is_ctl2_endadd_addr_17 (& self) -> bool { * self == CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_17 } # [doc = "ADDR_18"]
# [inline (always)]
pub fn is_ctl2_endadd_addr_18 (& self) -> bool { * self == CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_18 } # [doc = "ADDR_19"]
# [inline (always)]
pub fn is_ctl2_endadd_addr_19 (& self) -> bool { * self == CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_19 } # [doc = "ADDR_20"]
# [inline (always)]
pub fn is_ctl2_endadd_addr_20 (& self) -> bool { * self == CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_20 } # [doc = "ADDR_21"]
# [inline (always)]
pub fn is_ctl2_endadd_addr_21 (& self) -> bool { * self == CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_21 } # [doc = "ADDR_22"]
# [inline (always)]
pub fn is_ctl2_endadd_addr_22 (& self) -> bool { * self == CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_22 } # [doc = "ADDR_23"]
# [inline (always)]
pub fn is_ctl2_endadd_addr_23 (& self) -> bool { * self == CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_23 } } # [doc = "Field `CTL2_ENDADD` writer - Sequence end address. These bits select which MEMCTLx is the last one for the sequence mode. The value of ENDADD is 0x00 to 0x17, corresponding to MEMRES0 to MEMRES23."]
pub type CTL2_ENDADD_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 5 , O , CTL2_ENDADD_A > ; impl < 'a , REG , const O : u8 > CTL2_ENDADD_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "ADDR_00"]
# [inline (always)]
pub fn ctl2_endadd_addr_00 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_00) } # [doc = "ADDR_01"]
# [inline (always)]
pub fn ctl2_endadd_addr_01 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_01) } # [doc = "ADDR_02"]
# [inline (always)]
pub fn ctl2_endadd_addr_02 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_02) } # [doc = "ADDR_03"]
# [inline (always)]
pub fn ctl2_endadd_addr_03 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_03) } # [doc = "ADDR_04"]
# [inline (always)]
pub fn ctl2_endadd_addr_04 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_04) } # [doc = "ADDR_05"]
# [inline (always)]
pub fn ctl2_endadd_addr_05 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_05) } # [doc = "ADDR_06"]
# [inline (always)]
pub fn ctl2_endadd_addr_06 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_06) } # [doc = "ADDR_07"]
# [inline (always)]
pub fn ctl2_endadd_addr_07 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_07) } # [doc = "ADDR_08"]
# [inline (always)]
pub fn ctl2_endadd_addr_08 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_08) } # [doc = "ADDR_09"]
# [inline (always)]
pub fn ctl2_endadd_addr_09 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_09) } # [doc = "ADDR_10"]
# [inline (always)]
pub fn ctl2_endadd_addr_10 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_10) } # [doc = "ADDR_11"]
# [inline (always)]
pub fn ctl2_endadd_addr_11 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_11) } # [doc = "ADDR_12"]
# [inline (always)]
pub fn ctl2_endadd_addr_12 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_12) } # [doc = "ADDR_13"]
# [inline (always)]
pub fn ctl2_endadd_addr_13 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_13) } # [doc = "ADDR_14"]
# [inline (always)]
pub fn ctl2_endadd_addr_14 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_14) } # [doc = "ADDR_15"]
# [inline (always)]
pub fn ctl2_endadd_addr_15 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_15) } # [doc = "ADDR_16"]
# [inline (always)]
pub fn ctl2_endadd_addr_16 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_16) } # [doc = "ADDR_17"]
# [inline (always)]
pub fn ctl2_endadd_addr_17 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_17) } # [doc = "ADDR_18"]
# [inline (always)]
pub fn ctl2_endadd_addr_18 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_18) } # [doc = "ADDR_19"]
# [inline (always)]
pub fn ctl2_endadd_addr_19 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_19) } # [doc = "ADDR_20"]
# [inline (always)]
pub fn ctl2_endadd_addr_20 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_20) } # [doc = "ADDR_21"]
# [inline (always)]
pub fn ctl2_endadd_addr_21 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_21) } # [doc = "ADDR_22"]
# [inline (always)]
pub fn ctl2_endadd_addr_22 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_22) } # [doc = "ADDR_23"]
# [inline (always)]
pub fn ctl2_endadd_addr_23 (self) -> & 'a mut crate :: W < REG > { self . variant (CTL2_ENDADD_A :: CTL2_ENDADD_ADDR_23) } } impl R { # [doc = "Bit 0 - Data read-back format. Data is always stored in binary unsigned format."]
# [inline (always)]
pub fn ctl2_df (& self) -> CTL2_DF_R { CTL2_DF_R :: new ((self . bits & 1) != 0) } # [doc = "Bits 1:2 - Resolution. These bits define the resolutoin of ADC conversion result. Note : A value of 3 defaults to 12-bits resolution."]
# [inline (always)]
pub fn ctl2_res (& self) -> CTL2_RES_R { CTL2_RES_R :: new (((self . bits >> 1) & 3) as u8) } # [doc = "Bit 8 - Enable DMA trigger for data transfer. Note: DMAEN bit is cleared by hardware based on DMA done signal at the end of data transfer. Software has to re-enable DMAEN bit for ADC to generate DMA triggers."]
# [inline (always)]
pub fn ctl2_dmaen (& self) -> CTL2_DMAEN_R { CTL2_DMAEN_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 10 - Enable FIFO based operation"]
# [inline (always)]
pub fn ctl2_fifoen (& self) -> CTL2_FIFOEN_R { CTL2_FIFOEN_R :: new (((self . bits >> 10) & 1) != 0) } # [doc = "Bits 11:15 - Number of ADC converted samples to be transferred on a DMA trigger"]
# [inline (always)]
pub fn ctl2_sampcnt (& self) -> CTL2_SAMPCNT_R { CTL2_SAMPCNT_R :: new (((self . bits >> 11) & 0x1f) as u8) } # [doc = "Bits 16:20 - Sequencer start address. These bits select which MEMCTLx is used for single conversion or as first MEMCTL for sequence mode. The value of STARTADD is 0x00 to 0x17, corresponding to MEMRES0 to MEMRES23."]
# [inline (always)]
pub fn ctl2_startadd (& self) -> CTL2_STARTADD_R { CTL2_STARTADD_R :: new (((self . bits >> 16) & 0x1f) as u8) } # [doc = "Bits 24:28 - Sequence end address. These bits select which MEMCTLx is the last one for the sequence mode. The value of ENDADD is 0x00 to 0x17, corresponding to MEMRES0 to MEMRES23."]
# [inline (always)]
pub fn ctl2_endadd (& self) -> CTL2_ENDADD_R { CTL2_ENDADD_R :: new (((self . bits >> 24) & 0x1f) as u8) } } impl W { # [doc = "Bit 0 - Data read-back format. Data is always stored in binary unsigned format."]
# [inline (always)]
# [must_use]
pub fn ctl2_df (& mut self) -> CTL2_DF_W < CTL2_SPEC , 0 > { CTL2_DF_W :: new (self) } # [doc = "Bits 1:2 - Resolution. These bits define the resolutoin of ADC conversion result. Note : A value of 3 defaults to 12-bits resolution."]
# [inline (always)]
# [must_use]
pub fn ctl2_res (& mut self) -> CTL2_RES_W < CTL2_SPEC , 1 > { CTL2_RES_W :: new (self) } # [doc = "Bit 8 - Enable DMA trigger for data transfer. Note: DMAEN bit is cleared by hardware based on DMA done signal at the end of data transfer. Software has to re-enable DMAEN bit for ADC to generate DMA triggers."]
# [inline (always)]
# [must_use]
pub fn ctl2_dmaen (& mut self) -> CTL2_DMAEN_W < CTL2_SPEC , 8 > { CTL2_DMAEN_W :: new (self) } # [doc = "Bit 10 - Enable FIFO based operation"]
# [inline (always)]
# [must_use]
pub fn ctl2_fifoen (& mut self) -> CTL2_FIFOEN_W < CTL2_SPEC , 10 > { CTL2_FIFOEN_W :: new (self) } # [doc = "Bits 11:15 - Number of ADC converted samples to be transferred on a DMA trigger"]
# [inline (always)]
# [must_use]
pub fn ctl2_sampcnt (& mut self) -> CTL2_SAMPCNT_W < CTL2_SPEC , 11 > { CTL2_SAMPCNT_W :: new (self) } # [doc = "Bits 16:20 - Sequencer start address. These bits select which MEMCTLx is used for single conversion or as first MEMCTL for sequence mode. The value of STARTADD is 0x00 to 0x17, corresponding to MEMRES0 to MEMRES23."]
# [inline (always)]
# [must_use]
pub fn ctl2_startadd (& mut self) -> CTL2_STARTADD_W < CTL2_SPEC , 16 > { CTL2_STARTADD_W :: new (self) } # [doc = "Bits 24:28 - Sequence end address. These bits select which MEMCTLx is the last one for the sequence mode. The value of ENDADD is 0x00 to 0x17, corresponding to MEMRES0 to MEMRES23."]
# [inline (always)]
# [must_use]
pub fn ctl2_endadd (& mut self) -> CTL2_ENDADD_W < CTL2_SPEC , 24 > { CTL2_ENDADD_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Control Register 2\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl2::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl2::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTL2_SPEC ; impl crate :: RegisterSpec for CTL2_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ctl2::R`](R) reader structure"]
impl crate :: Readable for CTL2_SPEC { } # [doc = "`write(|w| ..)` method takes [`ctl2::W`](W) writer structure"]
impl crate :: Writable for CTL2_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTL2 to value 0"]
impl crate :: Resettable for CTL2_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTL3 (rw) register accessor: Control Register 3\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl3::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl3::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctl3`]
module"]
pub type CTL3 = crate :: Reg < ctl3 :: CTL3_SPEC > ; # [doc = "Control Register 3"]
pub mod ctl3 { # [doc = "Register `CTL3` reader"]
pub type R = crate :: R < CTL3_SPEC > ; # [doc = "Register `CTL3` writer"]
pub type W = crate :: W < CTL3_SPEC > ; # [doc = "Field `CTL3_ASCCHSEL` reader - ASC channel select."]
pub type CTL3_ASCCHSEL_R = crate :: FieldReader ; # [doc = "Field `CTL3_ASCCHSEL` writer - ASC channel select."]
pub type CTL3_ASCCHSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 5 , O > ; # [doc = "Field `CTL3_ASCSTIME` reader - ASC sample time compare value select. This is used to select between SCOMP0 and SCOMP1 registers for ASC operation."]
pub type CTL3_ASCSTIME_R = crate :: BitReader ; # [doc = "Field `CTL3_ASCSTIME` writer - ASC sample time compare value select. This is used to select between SCOMP0 and SCOMP1 registers for ASC operation."]
pub type CTL3_ASCSTIME_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O > ; # [doc = "Field `CTL3_ASCVRSEL` reader - Selects voltage reference for ASC operation. VEREFM must be connected to on-board ground when external reference option is selected."]
pub type CTL3_ASCVRSEL_R = crate :: FieldReader ; # [doc = "Field `CTL3_ASCVRSEL` writer - Selects voltage reference for ASC operation. VEREFM must be connected to on-board ground when external reference option is selected."]
pub type CTL3_ASCVRSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O > ; impl R { # [doc = "Bits 0:4 - ASC channel select."]
# [inline (always)]
pub fn ctl3_ascchsel (& self) -> CTL3_ASCCHSEL_R { CTL3_ASCCHSEL_R :: new ((self . bits & 0x1f) as u8) } # [doc = "Bit 8 - ASC sample time compare value select. This is used to select between SCOMP0 and SCOMP1 registers for ASC operation."]
# [inline (always)]
pub fn ctl3_ascstime (& self) -> CTL3_ASCSTIME_R { CTL3_ASCSTIME_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bits 12:13 - Selects voltage reference for ASC operation. VEREFM must be connected to on-board ground when external reference option is selected."]
# [inline (always)]
pub fn ctl3_ascvrsel (& self) -> CTL3_ASCVRSEL_R { CTL3_ASCVRSEL_R :: new (((self . bits >> 12) & 3) as u8) } } impl W { # [doc = "Bits 0:4 - ASC channel select."]
# [inline (always)]
# [must_use]
pub fn ctl3_ascchsel (& mut self) -> CTL3_ASCCHSEL_W < CTL3_SPEC , 0 > { CTL3_ASCCHSEL_W :: new (self) } # [doc = "Bit 8 - ASC sample time compare value select. This is used to select between SCOMP0 and SCOMP1 registers for ASC operation."]
# [inline (always)]
# [must_use]
pub fn ctl3_ascstime (& mut self) -> CTL3_ASCSTIME_W < CTL3_SPEC , 8 > { CTL3_ASCSTIME_W :: new (self) } # [doc = "Bits 12:13 - Selects voltage reference for ASC operation. VEREFM must be connected to on-board ground when external reference option is selected."]
# [inline (always)]
# [must_use]
pub fn ctl3_ascvrsel (& mut self) -> CTL3_ASCVRSEL_W < CTL3_SPEC , 12 > { CTL3_ASCVRSEL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Control Register 3\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctl3::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctl3::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTL3_SPEC ; impl crate :: RegisterSpec for CTL3_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ctl3::R`](R) reader structure"]
impl crate :: Readable for CTL3_SPEC { } # [doc = "`write(|w| ..)` method takes [`ctl3::W`](W) writer structure"]
impl crate :: Writable for CTL3_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTL3 to value 0"]
impl crate :: Resettable for CTL3_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "SCOMP0 (rw) register accessor: Sample Time Compare 0 Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`scomp0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`scomp0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@scomp0`]
module"]
pub type SCOMP0 = crate :: Reg < scomp0 :: SCOMP0_SPEC > ; # [doc = "Sample Time Compare 0 Register"]
pub mod scomp0 { # [doc = "Register `SCOMP0` reader"]
pub type R = crate :: R < SCOMP0_SPEC > ; # [doc = "Register `SCOMP0` writer"]
pub type W = crate :: W < SCOMP0_SPEC > ; # [doc = "Field `SCOMP0_VAL` reader - Specifies the number of sample clocks. When VAL = 0 or 1, number of sample clocks = Sample clock divide value. When VAL &amp;gt; 1, number of sample clocks = VAL x Sample clock divide value. Note: Sample clock divide value is not the value written to SCLKDIV but the actual divide value (SCLKDIV = 2 implies divide value is 4). Example: VAL = 4, SCLKDIV = 3 implies 32 sample clock cycles."]
pub type SCOMP0_VAL_R = crate :: FieldReader < u16 > ; # [doc = "Field `SCOMP0_VAL` writer - Specifies the number of sample clocks. When VAL = 0 or 1, number of sample clocks = Sample clock divide value. When VAL &amp;gt; 1, number of sample clocks = VAL x Sample clock divide value. Note: Sample clock divide value is not the value written to SCLKDIV but the actual divide value (SCLKDIV = 2 implies divide value is 4). Example: VAL = 4, SCLKDIV = 3 implies 32 sample clock cycles."]
pub type SCOMP0_VAL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 10 , O , u16 > ; impl R { # [doc = "Bits 0:9 - Specifies the number of sample clocks. When VAL = 0 or 1, number of sample clocks = Sample clock divide value. When VAL &amp;gt; 1, number of sample clocks = VAL x Sample clock divide value. Note: Sample clock divide value is not the value written to SCLKDIV but the actual divide value (SCLKDIV = 2 implies divide value is 4). Example: VAL = 4, SCLKDIV = 3 implies 32 sample clock cycles."]
# [inline (always)]
pub fn scomp0_val (& self) -> SCOMP0_VAL_R { SCOMP0_VAL_R :: new ((self . bits & 0x03ff) as u16) } } impl W { # [doc = "Bits 0:9 - Specifies the number of sample clocks. When VAL = 0 or 1, number of sample clocks = Sample clock divide value. When VAL &amp;gt; 1, number of sample clocks = VAL x Sample clock divide value. Note: Sample clock divide value is not the value written to SCLKDIV but the actual divide value (SCLKDIV = 2 implies divide value is 4). Example: VAL = 4, SCLKDIV = 3 implies 32 sample clock cycles."]
# [inline (always)]
# [must_use]
pub fn scomp0_val (& mut self) -> SCOMP0_VAL_W < SCOMP0_SPEC , 0 > { SCOMP0_VAL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Sample Time Compare 0 Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`scomp0::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`scomp0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SCOMP0_SPEC ; impl crate :: RegisterSpec for SCOMP0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`scomp0::R`](R) reader structure"]
impl crate :: Readable for SCOMP0_SPEC { } # [doc = "`write(|w| ..)` method takes [`scomp0::W`](W) writer structure"]
impl crate :: Writable for SCOMP0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets SCOMP0 to value 0"]
impl crate :: Resettable for SCOMP0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "SCOMP1 (rw) register accessor: Sample Time Compare 1 Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`scomp1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`scomp1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@scomp1`]
module"]
pub type SCOMP1 = crate :: Reg < scomp1 :: SCOMP1_SPEC > ; # [doc = "Sample Time Compare 1 Register"]
pub mod scomp1 { # [doc = "Register `SCOMP1` reader"]
pub type R = crate :: R < SCOMP1_SPEC > ; # [doc = "Register `SCOMP1` writer"]
pub type W = crate :: W < SCOMP1_SPEC > ; # [doc = "Field `SCOMP1_VAL` reader - Specifies the number of sample clocks. When VAL = 0 or 1, number of sample clocks = Sample clock divide value. When VAL &amp;gt; 1, number of sample clocks = VAL x Sample clock divide value. Note: Sample clock divide value is not the value written to SCLKDIV but the actual divide value (SCLKDIV = 2 implies divide value is 4). Example: VAL = 4, SCLKDIV = 3 implies 32 sample clock cycles."]
pub type SCOMP1_VAL_R = crate :: FieldReader < u16 > ; # [doc = "Field `SCOMP1_VAL` writer - Specifies the number of sample clocks. When VAL = 0 or 1, number of sample clocks = Sample clock divide value. When VAL &amp;gt; 1, number of sample clocks = VAL x Sample clock divide value. Note: Sample clock divide value is not the value written to SCLKDIV but the actual divide value (SCLKDIV = 2 implies divide value is 4). Example: VAL = 4, SCLKDIV = 3 implies 32 sample clock cycles."]
pub type SCOMP1_VAL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 10 , O , u16 > ; impl R { # [doc = "Bits 0:9 - Specifies the number of sample clocks. When VAL = 0 or 1, number of sample clocks = Sample clock divide value. When VAL &amp;gt; 1, number of sample clocks = VAL x Sample clock divide value. Note: Sample clock divide value is not the value written to SCLKDIV but the actual divide value (SCLKDIV = 2 implies divide value is 4). Example: VAL = 4, SCLKDIV = 3 implies 32 sample clock cycles."]
# [inline (always)]
pub fn scomp1_val (& self) -> SCOMP1_VAL_R { SCOMP1_VAL_R :: new ((self . bits & 0x03ff) as u16) } } impl W { # [doc = "Bits 0:9 - Specifies the number of sample clocks. When VAL = 0 or 1, number of sample clocks = Sample clock divide value. When VAL &amp;gt; 1, number of sample clocks = VAL x Sample clock divide value. Note: Sample clock divide value is not the value written to SCLKDIV but the actual divide value (SCLKDIV = 2 implies divide value is 4). Example: VAL = 4, SCLKDIV = 3 implies 32 sample clock cycles."]
# [inline (always)]
# [must_use]
pub fn scomp1_val (& mut self) -> SCOMP1_VAL_W < SCOMP1_SPEC , 0 > { SCOMP1_VAL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Sample Time Compare 1 Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`scomp1::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`scomp1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SCOMP1_SPEC ; impl crate :: RegisterSpec for SCOMP1_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`scomp1::R`](R) reader structure"]
impl crate :: Readable for SCOMP1_SPEC { } # [doc = "`write(|w| ..)` method takes [`scomp1::W`](W) writer structure"]
impl crate :: Writable for SCOMP1_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets SCOMP1 to value 0"]
impl crate :: Resettable for SCOMP1_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "REFCFG (rw) register accessor: Reference Buffer Configuration Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`refcfg::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`refcfg::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@refcfg`]
module"]
pub type REFCFG = crate :: Reg < refcfg :: REFCFG_SPEC > ; # [doc = "Reference Buffer Configuration Register"]
pub mod refcfg { # [doc = "Register `REFCFG` reader"]
pub type R = crate :: R < REFCFG_SPEC > ; # [doc = "Register `REFCFG` writer"]
pub type W = crate :: W < REFCFG_SPEC > ; # [doc = "Field `REFCFG_REFEN` reader - Reference buffer enable"]
pub type REFCFG_REFEN_R = crate :: BitReader ; # [doc = "Field `REFCFG_REFEN` writer - Reference buffer enable"]
pub type REFCFG_REFEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O > ; # [doc = "Field `REFCFG_REFVSEL` reader - Configures reference buffer output voltage."]
pub type REFCFG_REFVSEL_R = crate :: BitReader ; # [doc = "Field `REFCFG_REFVSEL` writer - Configures reference buffer output voltage."]
pub type REFCFG_REFVSEL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O > ; # [doc = "Field `REFCFG_IBPROG` reader - Configures reference buffer bias current output value."]
pub type REFCFG_IBPROG_R = crate :: FieldReader ; # [doc = "Field `REFCFG_IBPROG` writer - Configures reference buffer bias current output value."]
pub type REFCFG_IBPROG_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O > ; impl R { # [doc = "Bit 0 - Reference buffer enable"]
# [inline (always)]
pub fn refcfg_refen (& self) -> REFCFG_REFEN_R { REFCFG_REFEN_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Configures reference buffer output voltage."]
# [inline (always)]
pub fn refcfg_refvsel (& self) -> REFCFG_REFVSEL_R { REFCFG_REFVSEL_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bits 3:4 - Configures reference buffer bias current output value."]
# [inline (always)]
pub fn refcfg_ibprog (& self) -> REFCFG_IBPROG_R { REFCFG_IBPROG_R :: new (((self . bits >> 3) & 3) as u8) } } impl W { # [doc = "Bit 0 - Reference buffer enable"]
# [inline (always)]
# [must_use]
pub fn refcfg_refen (& mut self) -> REFCFG_REFEN_W < REFCFG_SPEC , 0 > { REFCFG_REFEN_W :: new (self) } # [doc = "Bit 1 - Configures reference buffer output voltage."]
# [inline (always)]
# [must_use]
pub fn refcfg_refvsel (& mut self) -> REFCFG_REFVSEL_W < REFCFG_SPEC , 1 > { REFCFG_REFVSEL_W :: new (self) } # [doc = "Bits 3:4 - Configures reference buffer bias current output value."]
# [inline (always)]
# [must_use]
pub fn refcfg_ibprog (& mut self) -> REFCFG_IBPROG_W < REFCFG_SPEC , 3 > { REFCFG_IBPROG_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Reference Buffer Configuration Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`refcfg::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`refcfg::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct REFCFG_SPEC ; impl crate :: RegisterSpec for REFCFG_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`refcfg::R`](R) reader structure"]
impl crate :: Readable for REFCFG_SPEC { } # [doc = "`write(|w| ..)` method takes [`refcfg::W`](W) writer structure"]
impl crate :: Writable for REFCFG_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets REFCFG to value 0"]
impl crate :: Resettable for REFCFG_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "WCLOW (rw) register accessor: Window Comparator Low Threshold Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`wclow::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`wclow::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@wclow`]
module"]
pub type WCLOW = crate :: Reg < wclow :: WCLOW_SPEC > ; # [doc = "Window Comparator Low Threshold Register"]
pub mod wclow { # [doc = "Register `WCLOW` reader"]
pub type R = crate :: R < WCLOW_SPEC > ; # [doc = "Register `WCLOW` writer"]
pub type W = crate :: W < WCLOW_SPEC > ; # [doc = "Field `WCLOW_DATA` reader - If DF = 0, unsigned binary format has to be used. The value based on the resolution has to be right aligned with the MSB on the left. For 10-bits and 8-bits resolution, unused bits have to be 0s. If DF = 1, 2s-complement format has to be used. The value based on the resolution has to be left aligned with the LSB on the right. For 10-bits and 8-bits resolution, unused bits have to be 0s."]
pub type WCLOW_DATA_R = crate :: FieldReader < u16 > ; # [doc = "Field `WCLOW_DATA` writer - If DF = 0, unsigned binary format has to be used. The value based on the resolution has to be right aligned with the MSB on the left. For 10-bits and 8-bits resolution, unused bits have to be 0s. If DF = 1, 2s-complement format has to be used. The value based on the resolution has to be left aligned with the LSB on the right. For 10-bits and 8-bits resolution, unused bits have to be 0s."]
pub type WCLOW_DATA_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 16 , O , u16 > ; impl R { # [doc = "Bits 0:15 - If DF = 0, unsigned binary format has to be used. The value based on the resolution has to be right aligned with the MSB on the left. For 10-bits and 8-bits resolution, unused bits have to be 0s. If DF = 1, 2s-complement format has to be used. The value based on the resolution has to be left aligned with the LSB on the right. For 10-bits and 8-bits resolution, unused bits have to be 0s."]
# [inline (always)]
pub fn wclow_data (& self) -> WCLOW_DATA_R { WCLOW_DATA_R :: new ((self . bits & 0xffff) as u16) } } impl W { # [doc = "Bits 0:15 - If DF = 0, unsigned binary format has to be used. The value based on the resolution has to be right aligned with the MSB on the left. For 10-bits and 8-bits resolution, unused bits have to be 0s. If DF = 1, 2s-complement format has to be used. The value based on the resolution has to be left aligned with the LSB on the right. For 10-bits and 8-bits resolution, unused bits have to be 0s."]
# [inline (always)]
# [must_use]
pub fn wclow_data (& mut self) -> WCLOW_DATA_W < WCLOW_SPEC , 0 > { WCLOW_DATA_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Window Comparator Low Threshold Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`wclow::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`wclow::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct WCLOW_SPEC ; impl crate :: RegisterSpec for WCLOW_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`wclow::R`](R) reader structure"]
impl crate :: Readable for WCLOW_SPEC { } # [doc = "`write(|w| ..)` method takes [`wclow::W`](W) writer structure"]
impl crate :: Writable for WCLOW_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets WCLOW to value 0"]
impl crate :: Resettable for WCLOW_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "WCHIGH (rw) register accessor: Window Comparator High Threshold Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`wchigh::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`wchigh::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@wchigh`]
module"]
pub type WCHIGH = crate :: Reg < wchigh :: WCHIGH_SPEC > ; # [doc = "Window Comparator High Threshold Register"]
pub mod wchigh { # [doc = "Register `WCHIGH` reader"]
pub type R = crate :: R < WCHIGH_SPEC > ; # [doc = "Register `WCHIGH` writer"]
pub type W = crate :: W < WCHIGH_SPEC > ; # [doc = "Field `WCHIGH_DATA` reader - If DF = 0, unsigned binary format has to be used. The threshold value has to be right aligned, with the MSB on the left. For 10-bits and 8-bits resolution, unused bit have to be 0s. If DF = 1, 2s-complement format has to be used. The value based on the resolution has to be left aligned with the LSB on the right. For 10-bits and 8-bits resolution, unused bit have to be 0s."]
pub type WCHIGH_DATA_R = crate :: FieldReader < u16 > ; # [doc = "Field `WCHIGH_DATA` writer - If DF = 0, unsigned binary format has to be used. The threshold value has to be right aligned, with the MSB on the left. For 10-bits and 8-bits resolution, unused bit have to be 0s. If DF = 1, 2s-complement format has to be used. The value based on the resolution has to be left aligned with the LSB on the right. For 10-bits and 8-bits resolution, unused bit have to be 0s."]
pub type WCHIGH_DATA_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 16 , O , u16 > ; impl R { # [doc = "Bits 0:15 - If DF = 0, unsigned binary format has to be used. The threshold value has to be right aligned, with the MSB on the left. For 10-bits and 8-bits resolution, unused bit have to be 0s. If DF = 1, 2s-complement format has to be used. The value based on the resolution has to be left aligned with the LSB on the right. For 10-bits and 8-bits resolution, unused bit have to be 0s."]
# [inline (always)]
pub fn wchigh_data (& self) -> WCHIGH_DATA_R { WCHIGH_DATA_R :: new ((self . bits & 0xffff) as u16) } } impl W { # [doc = "Bits 0:15 - If DF = 0, unsigned binary format has to be used. The threshold value has to be right aligned, with the MSB on the left. For 10-bits and 8-bits resolution, unused bit have to be 0s. If DF = 1, 2s-complement format has to be used. The value based on the resolution has to be left aligned with the LSB on the right. For 10-bits and 8-bits resolution, unused bit have to be 0s."]
# [inline (always)]
# [must_use]
pub fn wchigh_data (& mut self) -> WCHIGH_DATA_W < WCHIGH_SPEC , 0 > { WCHIGH_DATA_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Window Comparator High Threshold Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`wchigh::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`wchigh::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct WCHIGH_SPEC ; impl crate :: RegisterSpec for WCHIGH_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`wchigh::R`](R) reader structure"]
impl crate :: Readable for WCHIGH_SPEC { } # [doc = "`write(|w| ..)` method takes [`wchigh::W`](W) writer structure"]
impl crate :: Writable for WCHIGH_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets WCHIGH to value 0"]
impl crate :: Resettable for WCHIGH_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "MEMCTL (rw) register accessor: Conversion Memory Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`memctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`memctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@memctl`]
module"]
pub type MEMCTL = crate :: Reg < memctl :: MEMCTL_SPEC > ; # [doc = "Conversion Memory Control Register"]
pub mod memctl { # [doc = "Register `MEMCTL[%s]` reader"]
pub type R = crate :: R < MEMCTL_SPEC > ; # [doc = "Register `MEMCTL[%s]` writer"]
pub type W = crate :: W < MEMCTL_SPEC > ; # [doc = "Field `MEMCTL_CHANSEL` reader - Input channel select."]
pub type MEMCTL_CHANSEL_R = crate :: FieldReader < MEMCTL_CHANSEL_A > ; # [doc = "Input channel select.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum MEMCTL_CHANSEL_A { # [doc = "0: CHAN_0"]
MEMCTL_CHANSEL_CHAN_0 = 0 , # [doc = "1: CHAN_1"]
MEMCTL_CHANSEL_CHAN_1 = 1 , # [doc = "2: CHAN_2"]
MEMCTL_CHANSEL_CHAN_2 = 2 , # [doc = "3: CHAN_3"]
MEMCTL_CHANSEL_CHAN_3 = 3 , # [doc = "4: CHAN_4"]
MEMCTL_CHANSEL_CHAN_4 = 4 , # [doc = "5: CHAN_5"]
MEMCTL_CHANSEL_CHAN_5 = 5 , # [doc = "6: CHAN_6"]
MEMCTL_CHANSEL_CHAN_6 = 6 , # [doc = "7: CHAN_7"]
MEMCTL_CHANSEL_CHAN_7 = 7 , # [doc = "8: CHAN_8"]
MEMCTL_CHANSEL_CHAN_8 = 8 , # [doc = "9: CHAN_9"]
MEMCTL_CHANSEL_CHAN_9 = 9 , # [doc = "10: CHAN_10"]
MEMCTL_CHANSEL_CHAN_10 = 10 , # [doc = "11: CHAN_11"]
MEMCTL_CHANSEL_CHAN_11 = 11 , # [doc = "12: CHAN_12"]
MEMCTL_CHANSEL_CHAN_12 = 12 , # [doc = "13: CHAN_13"]
MEMCTL_CHANSEL_CHAN_13 = 13 , # [doc = "14: CHAN_14"]
MEMCTL_CHANSEL_CHAN_14 = 14 , # [doc = "15: CHAN_15"]
MEMCTL_CHANSEL_CHAN_15 = 15 , # [doc = "16: CHAN_16"]
MEMCTL_CHANSEL_CHAN_16 = 16 , # [doc = "17: CHAN_17"]
MEMCTL_CHANSEL_CHAN_17 = 17 , # [doc = "18: CHAN_18"]
MEMCTL_CHANSEL_CHAN_18 = 18 , # [doc = "19: CHAN_19"]
MEMCTL_CHANSEL_CHAN_19 = 19 , # [doc = "20: CHAN_20"]
MEMCTL_CHANSEL_CHAN_20 = 20 , # [doc = "21: CHAN_21"]
MEMCTL_CHANSEL_CHAN_21 = 21 , # [doc = "22: CHAN_22"]
MEMCTL_CHANSEL_CHAN_22 = 22 , # [doc = "23: CHAN_23"]
MEMCTL_CHANSEL_CHAN_23 = 23 , # [doc = "24: CHAN_24"]
MEMCTL_CHANSEL_CHAN_24 = 24 , # [doc = "25: CHAN_25"]
MEMCTL_CHANSEL_CHAN_25 = 25 , # [doc = "26: CHAN_26"]
MEMCTL_CHANSEL_CHAN_26 = 26 , # [doc = "27: CHAN_27"]
MEMCTL_CHANSEL_CHAN_27 = 27 , # [doc = "28: CHAN_28"]
MEMCTL_CHANSEL_CHAN_28 = 28 , # [doc = "29: CHAN_29"]
MEMCTL_CHANSEL_CHAN_29 = 29 , # [doc = "30: CHAN_30"]
MEMCTL_CHANSEL_CHAN_30 = 30 , # [doc = "31: CHAN_31"]
MEMCTL_CHANSEL_CHAN_31 = 31 , } impl From < MEMCTL_CHANSEL_A > for u8 { # [inline (always)]
fn from (variant : MEMCTL_CHANSEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for MEMCTL_CHANSEL_A { type Ux = u8 ; } impl MEMCTL_CHANSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MEMCTL_CHANSEL_A { match self . bits { 0 => MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_0 , 1 => MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_1 , 2 => MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_2 , 3 => MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_3 , 4 => MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_4 , 5 => MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_5 , 6 => MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_6 , 7 => MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_7 , 8 => MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_8 , 9 => MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_9 , 10 => MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_10 , 11 => MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_11 , 12 => MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_12 , 13 => MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_13 , 14 => MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_14 , 15 => MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_15 , 16 => MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_16 , 17 => MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_17 , 18 => MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_18 , 19 => MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_19 , 20 => MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_20 , 21 => MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_21 , 22 => MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_22 , 23 => MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_23 , 24 => MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_24 , 25 => MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_25 , 26 => MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_26 , 27 => MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_27 , 28 => MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_28 , 29 => MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_29 , 30 => MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_30 , 31 => MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_31 , _ => unreachable ! () , } } # [doc = "CHAN_0"]
# [inline (always)]
pub fn is_memctl_chansel_chan_0 (& self) -> bool { * self == MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_0 } # [doc = "CHAN_1"]
# [inline (always)]
pub fn is_memctl_chansel_chan_1 (& self) -> bool { * self == MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_1 } # [doc = "CHAN_2"]
# [inline (always)]
pub fn is_memctl_chansel_chan_2 (& self) -> bool { * self == MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_2 } # [doc = "CHAN_3"]
# [inline (always)]
pub fn is_memctl_chansel_chan_3 (& self) -> bool { * self == MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_3 } # [doc = "CHAN_4"]
# [inline (always)]
pub fn is_memctl_chansel_chan_4 (& self) -> bool { * self == MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_4 } # [doc = "CHAN_5"]
# [inline (always)]
pub fn is_memctl_chansel_chan_5 (& self) -> bool { * self == MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_5 } # [doc = "CHAN_6"]
# [inline (always)]
pub fn is_memctl_chansel_chan_6 (& self) -> bool { * self == MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_6 } # [doc = "CHAN_7"]
# [inline (always)]
pub fn is_memctl_chansel_chan_7 (& self) -> bool { * self == MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_7 } # [doc = "CHAN_8"]
# [inline (always)]
pub fn is_memctl_chansel_chan_8 (& self) -> bool { * self == MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_8 } # [doc = "CHAN_9"]
# [inline (always)]
pub fn is_memctl_chansel_chan_9 (& self) -> bool { * self == MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_9 } # [doc = "CHAN_10"]
# [inline (always)]
pub fn is_memctl_chansel_chan_10 (& self) -> bool { * self == MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_10 } # [doc = "CHAN_11"]
# [inline (always)]
pub fn is_memctl_chansel_chan_11 (& self) -> bool { * self == MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_11 } # [doc = "CHAN_12"]
# [inline (always)]
pub fn is_memctl_chansel_chan_12 (& self) -> bool { * self == MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_12 } # [doc = "CHAN_13"]
# [inline (always)]
pub fn is_memctl_chansel_chan_13 (& self) -> bool { * self == MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_13 } # [doc = "CHAN_14"]
# [inline (always)]
pub fn is_memctl_chansel_chan_14 (& self) -> bool { * self == MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_14 } # [doc = "CHAN_15"]
# [inline (always)]
pub fn is_memctl_chansel_chan_15 (& self) -> bool { * self == MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_15 } # [doc = "CHAN_16"]
# [inline (always)]
pub fn is_memctl_chansel_chan_16 (& self) -> bool { * self == MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_16 } # [doc = "CHAN_17"]
# [inline (always)]
pub fn is_memctl_chansel_chan_17 (& self) -> bool { * self == MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_17 } # [doc = "CHAN_18"]
# [inline (always)]
pub fn is_memctl_chansel_chan_18 (& self) -> bool { * self == MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_18 } # [doc = "CHAN_19"]
# [inline (always)]
pub fn is_memctl_chansel_chan_19 (& self) -> bool { * self == MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_19 } # [doc = "CHAN_20"]
# [inline (always)]
pub fn is_memctl_chansel_chan_20 (& self) -> bool { * self == MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_20 } # [doc = "CHAN_21"]
# [inline (always)]
pub fn is_memctl_chansel_chan_21 (& self) -> bool { * self == MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_21 } # [doc = "CHAN_22"]
# [inline (always)]
pub fn is_memctl_chansel_chan_22 (& self) -> bool { * self == MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_22 } # [doc = "CHAN_23"]
# [inline (always)]
pub fn is_memctl_chansel_chan_23 (& self) -> bool { * self == MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_23 } # [doc = "CHAN_24"]
# [inline (always)]
pub fn is_memctl_chansel_chan_24 (& self) -> bool { * self == MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_24 } # [doc = "CHAN_25"]
# [inline (always)]
pub fn is_memctl_chansel_chan_25 (& self) -> bool { * self == MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_25 } # [doc = "CHAN_26"]
# [inline (always)]
pub fn is_memctl_chansel_chan_26 (& self) -> bool { * self == MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_26 } # [doc = "CHAN_27"]
# [inline (always)]
pub fn is_memctl_chansel_chan_27 (& self) -> bool { * self == MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_27 } # [doc = "CHAN_28"]
# [inline (always)]
pub fn is_memctl_chansel_chan_28 (& self) -> bool { * self == MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_28 } # [doc = "CHAN_29"]
# [inline (always)]
pub fn is_memctl_chansel_chan_29 (& self) -> bool { * self == MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_29 } # [doc = "CHAN_30"]
# [inline (always)]
pub fn is_memctl_chansel_chan_30 (& self) -> bool { * self == MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_30 } # [doc = "CHAN_31"]
# [inline (always)]
pub fn is_memctl_chansel_chan_31 (& self) -> bool { * self == MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_31 } } # [doc = "Field `MEMCTL_CHANSEL` writer - Input channel select."]
pub type MEMCTL_CHANSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 5 , O , MEMCTL_CHANSEL_A > ; impl < 'a , REG , const O : u8 > MEMCTL_CHANSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "CHAN_0"]
# [inline (always)]
pub fn memctl_chansel_chan_0 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_0) } # [doc = "CHAN_1"]
# [inline (always)]
pub fn memctl_chansel_chan_1 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_1) } # [doc = "CHAN_2"]
# [inline (always)]
pub fn memctl_chansel_chan_2 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_2) } # [doc = "CHAN_3"]
# [inline (always)]
pub fn memctl_chansel_chan_3 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_3) } # [doc = "CHAN_4"]
# [inline (always)]
pub fn memctl_chansel_chan_4 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_4) } # [doc = "CHAN_5"]
# [inline (always)]
pub fn memctl_chansel_chan_5 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_5) } # [doc = "CHAN_6"]
# [inline (always)]
pub fn memctl_chansel_chan_6 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_6) } # [doc = "CHAN_7"]
# [inline (always)]
pub fn memctl_chansel_chan_7 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_7) } # [doc = "CHAN_8"]
# [inline (always)]
pub fn memctl_chansel_chan_8 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_8) } # [doc = "CHAN_9"]
# [inline (always)]
pub fn memctl_chansel_chan_9 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_9) } # [doc = "CHAN_10"]
# [inline (always)]
pub fn memctl_chansel_chan_10 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_10) } # [doc = "CHAN_11"]
# [inline (always)]
pub fn memctl_chansel_chan_11 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_11) } # [doc = "CHAN_12"]
# [inline (always)]
pub fn memctl_chansel_chan_12 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_12) } # [doc = "CHAN_13"]
# [inline (always)]
pub fn memctl_chansel_chan_13 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_13) } # [doc = "CHAN_14"]
# [inline (always)]
pub fn memctl_chansel_chan_14 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_14) } # [doc = "CHAN_15"]
# [inline (always)]
pub fn memctl_chansel_chan_15 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_15) } # [doc = "CHAN_16"]
# [inline (always)]
pub fn memctl_chansel_chan_16 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_16) } # [doc = "CHAN_17"]
# [inline (always)]
pub fn memctl_chansel_chan_17 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_17) } # [doc = "CHAN_18"]
# [inline (always)]
pub fn memctl_chansel_chan_18 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_18) } # [doc = "CHAN_19"]
# [inline (always)]
pub fn memctl_chansel_chan_19 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_19) } # [doc = "CHAN_20"]
# [inline (always)]
pub fn memctl_chansel_chan_20 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_20) } # [doc = "CHAN_21"]
# [inline (always)]
pub fn memctl_chansel_chan_21 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_21) } # [doc = "CHAN_22"]
# [inline (always)]
pub fn memctl_chansel_chan_22 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_22) } # [doc = "CHAN_23"]
# [inline (always)]
pub fn memctl_chansel_chan_23 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_23) } # [doc = "CHAN_24"]
# [inline (always)]
pub fn memctl_chansel_chan_24 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_24) } # [doc = "CHAN_25"]
# [inline (always)]
pub fn memctl_chansel_chan_25 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_25) } # [doc = "CHAN_26"]
# [inline (always)]
pub fn memctl_chansel_chan_26 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_26) } # [doc = "CHAN_27"]
# [inline (always)]
pub fn memctl_chansel_chan_27 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_27) } # [doc = "CHAN_28"]
# [inline (always)]
pub fn memctl_chansel_chan_28 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_28) } # [doc = "CHAN_29"]
# [inline (always)]
pub fn memctl_chansel_chan_29 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_29) } # [doc = "CHAN_30"]
# [inline (always)]
pub fn memctl_chansel_chan_30 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_30) } # [doc = "CHAN_31"]
# [inline (always)]
pub fn memctl_chansel_chan_31 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_CHANSEL_A :: MEMCTL_CHANSEL_CHAN_31) } } # [doc = "Field `MEMCTL_VRSEL` reader - Voltage reference selection. VEREFM must be connected to on-board ground when external reference option is selected. Note: Writing value 0x3 defaults to INTREF."]
pub type MEMCTL_VRSEL_R = crate :: FieldReader < MEMCTL_VRSEL_A > ; # [doc = "Voltage reference selection. VEREFM must be connected to on-board ground when external reference option is selected. Note: Writing value 0x3 defaults to INTREF.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum MEMCTL_VRSEL_A { # [doc = "0: VDDA"]
MEMCTL_VRSEL_VDDA = 0 , # [doc = "1: EXTREF"]
MEMCTL_VRSEL_EXTREF = 1 , # [doc = "2: INTREF"]
MEMCTL_VRSEL_INTREF = 2 , } impl From < MEMCTL_VRSEL_A > for u8 { # [inline (always)]
fn from (variant : MEMCTL_VRSEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for MEMCTL_VRSEL_A { type Ux = u8 ; } impl MEMCTL_VRSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < MEMCTL_VRSEL_A > { match self . bits { 0 => Some (MEMCTL_VRSEL_A :: MEMCTL_VRSEL_VDDA) , 1 => Some (MEMCTL_VRSEL_A :: MEMCTL_VRSEL_EXTREF) , 2 => Some (MEMCTL_VRSEL_A :: MEMCTL_VRSEL_INTREF) , _ => None , } } # [doc = "VDDA"]
# [inline (always)]
pub fn is_memctl_vrsel_vdda (& self) -> bool { * self == MEMCTL_VRSEL_A :: MEMCTL_VRSEL_VDDA } # [doc = "EXTREF"]
# [inline (always)]
pub fn is_memctl_vrsel_extref (& self) -> bool { * self == MEMCTL_VRSEL_A :: MEMCTL_VRSEL_EXTREF } # [doc = "INTREF"]
# [inline (always)]
pub fn is_memctl_vrsel_intref (& self) -> bool { * self == MEMCTL_VRSEL_A :: MEMCTL_VRSEL_INTREF } } # [doc = "Field `MEMCTL_VRSEL` writer - Voltage reference selection. VEREFM must be connected to on-board ground when external reference option is selected. Note: Writing value 0x3 defaults to INTREF."]
pub type MEMCTL_VRSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , MEMCTL_VRSEL_A > ; impl < 'a , REG , const O : u8 > MEMCTL_VRSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "VDDA"]
# [inline (always)]
pub fn memctl_vrsel_vdda (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_VRSEL_A :: MEMCTL_VRSEL_VDDA) } # [doc = "EXTREF"]
# [inline (always)]
pub fn memctl_vrsel_extref (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_VRSEL_A :: MEMCTL_VRSEL_EXTREF) } # [doc = "INTREF"]
# [inline (always)]
pub fn memctl_vrsel_intref (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_VRSEL_A :: MEMCTL_VRSEL_INTREF) } } # [doc = "Field `MEMCTL_STIME` reader - Selects the source of sample timer period between SCOMP0 and SCOMP1."]
pub type MEMCTL_STIME_R = crate :: BitReader < MEMCTL_STIME_A > ; # [doc = "Selects the source of sample timer period between SCOMP0 and SCOMP1.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MEMCTL_STIME_A { # [doc = "0: SEL_SCOMP0"]
MEMCTL_STIME_SEL_SCOMP0 = 0 , # [doc = "1: SEL_SCOMP1"]
MEMCTL_STIME_SEL_SCOMP1 = 1 , } impl From < MEMCTL_STIME_A > for bool { # [inline (always)]
fn from (variant : MEMCTL_STIME_A) -> Self { variant as u8 != 0 } } impl MEMCTL_STIME_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MEMCTL_STIME_A { match self . bits { false => MEMCTL_STIME_A :: MEMCTL_STIME_SEL_SCOMP0 , true => MEMCTL_STIME_A :: MEMCTL_STIME_SEL_SCOMP1 , } } # [doc = "SEL_SCOMP0"]
# [inline (always)]
pub fn is_memctl_stime_sel_scomp0 (& self) -> bool { * self == MEMCTL_STIME_A :: MEMCTL_STIME_SEL_SCOMP0 } # [doc = "SEL_SCOMP1"]
# [inline (always)]
pub fn is_memctl_stime_sel_scomp1 (& self) -> bool { * self == MEMCTL_STIME_A :: MEMCTL_STIME_SEL_SCOMP1 } } # [doc = "Field `MEMCTL_STIME` writer - Selects the source of sample timer period between SCOMP0 and SCOMP1."]
pub type MEMCTL_STIME_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MEMCTL_STIME_A > ; impl < 'a , REG , const O : u8 > MEMCTL_STIME_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "SEL_SCOMP0"]
# [inline (always)]
pub fn memctl_stime_sel_scomp0 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_STIME_A :: MEMCTL_STIME_SEL_SCOMP0) } # [doc = "SEL_SCOMP1"]
# [inline (always)]
pub fn memctl_stime_sel_scomp1 (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_STIME_A :: MEMCTL_STIME_SEL_SCOMP1) } } # [doc = "Field `MEMCTL_AVGEN` reader - Enable hardware averaging."]
pub type MEMCTL_AVGEN_R = crate :: BitReader < MEMCTL_AVGEN_A > ; # [doc = "Enable hardware averaging.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MEMCTL_AVGEN_A { # [doc = "0: DISABLE"]
MEMCTL_AVGEN_DISABLE = 0 , # [doc = "1: ENABLE"]
MEMCTL_AVGEN_ENABLE = 1 , } impl From < MEMCTL_AVGEN_A > for bool { # [inline (always)]
fn from (variant : MEMCTL_AVGEN_A) -> Self { variant as u8 != 0 } } impl MEMCTL_AVGEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MEMCTL_AVGEN_A { match self . bits { false => MEMCTL_AVGEN_A :: MEMCTL_AVGEN_DISABLE , true => MEMCTL_AVGEN_A :: MEMCTL_AVGEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_memctl_avgen_disable (& self) -> bool { * self == MEMCTL_AVGEN_A :: MEMCTL_AVGEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_memctl_avgen_enable (& self) -> bool { * self == MEMCTL_AVGEN_A :: MEMCTL_AVGEN_ENABLE } } # [doc = "Field `MEMCTL_AVGEN` writer - Enable hardware averaging."]
pub type MEMCTL_AVGEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MEMCTL_AVGEN_A > ; impl < 'a , REG , const O : u8 > MEMCTL_AVGEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn memctl_avgen_disable (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_AVGEN_A :: MEMCTL_AVGEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn memctl_avgen_enable (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_AVGEN_A :: MEMCTL_AVGEN_ENABLE) } } # [doc = "Field `MEMCTL_BCSEN` reader - Enable burn out current source."]
pub type MEMCTL_BCSEN_R = crate :: BitReader < MEMCTL_BCSEN_A > ; # [doc = "Enable burn out current source.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MEMCTL_BCSEN_A { # [doc = "0: DISABLE"]
MEMCTL_BCSEN_DISABLE = 0 , # [doc = "1: ENABLE"]
MEMCTL_BCSEN_ENABLE = 1 , } impl From < MEMCTL_BCSEN_A > for bool { # [inline (always)]
fn from (variant : MEMCTL_BCSEN_A) -> Self { variant as u8 != 0 } } impl MEMCTL_BCSEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MEMCTL_BCSEN_A { match self . bits { false => MEMCTL_BCSEN_A :: MEMCTL_BCSEN_DISABLE , true => MEMCTL_BCSEN_A :: MEMCTL_BCSEN_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_memctl_bcsen_disable (& self) -> bool { * self == MEMCTL_BCSEN_A :: MEMCTL_BCSEN_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_memctl_bcsen_enable (& self) -> bool { * self == MEMCTL_BCSEN_A :: MEMCTL_BCSEN_ENABLE } } # [doc = "Field `MEMCTL_BCSEN` writer - Enable burn out current source."]
pub type MEMCTL_BCSEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MEMCTL_BCSEN_A > ; impl < 'a , REG , const O : u8 > MEMCTL_BCSEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn memctl_bcsen_disable (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_BCSEN_A :: MEMCTL_BCSEN_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn memctl_bcsen_enable (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_BCSEN_A :: MEMCTL_BCSEN_ENABLE) } } # [doc = "Field `MEMCTL_TRIG` reader - Trigger policy. Indicates if a trigger will be needed to step to the next MEMCTL in the sequence or to perform next conversion in the case of repeat single channel conversions."]
pub type MEMCTL_TRIG_R = crate :: BitReader < MEMCTL_TRIG_A > ; # [doc = "Trigger policy. Indicates if a trigger will be needed to step to the next MEMCTL in the sequence or to perform next conversion in the case of repeat single channel conversions.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MEMCTL_TRIG_A { # [doc = "0: AUTO_NEXT"]
MEMCTL_TRIG_AUTO_NEXT = 0 , # [doc = "1: TRIGGER_NEXT"]
MEMCTL_TRIG_TRIGGER_NEXT = 1 , } impl From < MEMCTL_TRIG_A > for bool { # [inline (always)]
fn from (variant : MEMCTL_TRIG_A) -> Self { variant as u8 != 0 } } impl MEMCTL_TRIG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MEMCTL_TRIG_A { match self . bits { false => MEMCTL_TRIG_A :: MEMCTL_TRIG_AUTO_NEXT , true => MEMCTL_TRIG_A :: MEMCTL_TRIG_TRIGGER_NEXT , } } # [doc = "AUTO_NEXT"]
# [inline (always)]
pub fn is_memctl_trig_auto_next (& self) -> bool { * self == MEMCTL_TRIG_A :: MEMCTL_TRIG_AUTO_NEXT } # [doc = "TRIGGER_NEXT"]
# [inline (always)]
pub fn is_memctl_trig_trigger_next (& self) -> bool { * self == MEMCTL_TRIG_A :: MEMCTL_TRIG_TRIGGER_NEXT } } # [doc = "Field `MEMCTL_TRIG` writer - Trigger policy. Indicates if a trigger will be needed to step to the next MEMCTL in the sequence or to perform next conversion in the case of repeat single channel conversions."]
pub type MEMCTL_TRIG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MEMCTL_TRIG_A > ; impl < 'a , REG , const O : u8 > MEMCTL_TRIG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "AUTO_NEXT"]
# [inline (always)]
pub fn memctl_trig_auto_next (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_TRIG_A :: MEMCTL_TRIG_AUTO_NEXT) } # [doc = "TRIGGER_NEXT"]
# [inline (always)]
pub fn memctl_trig_trigger_next (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_TRIG_A :: MEMCTL_TRIG_TRIGGER_NEXT) } } # [doc = "Field `MEMCTL_WINCOMP` reader - Enable window comparator."]
pub type MEMCTL_WINCOMP_R = crate :: BitReader < MEMCTL_WINCOMP_A > ; # [doc = "Enable window comparator.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MEMCTL_WINCOMP_A { # [doc = "0: DISABLE"]
MEMCTL_WINCOMP_DISABLE = 0 , # [doc = "1: ENABLE"]
MEMCTL_WINCOMP_ENABLE = 1 , } impl From < MEMCTL_WINCOMP_A > for bool { # [inline (always)]
fn from (variant : MEMCTL_WINCOMP_A) -> Self { variant as u8 != 0 } } impl MEMCTL_WINCOMP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MEMCTL_WINCOMP_A { match self . bits { false => MEMCTL_WINCOMP_A :: MEMCTL_WINCOMP_DISABLE , true => MEMCTL_WINCOMP_A :: MEMCTL_WINCOMP_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_memctl_wincomp_disable (& self) -> bool { * self == MEMCTL_WINCOMP_A :: MEMCTL_WINCOMP_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_memctl_wincomp_enable (& self) -> bool { * self == MEMCTL_WINCOMP_A :: MEMCTL_WINCOMP_ENABLE } } # [doc = "Field `MEMCTL_WINCOMP` writer - Enable window comparator."]
pub type MEMCTL_WINCOMP_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , MEMCTL_WINCOMP_A > ; impl < 'a , REG , const O : u8 > MEMCTL_WINCOMP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn memctl_wincomp_disable (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_WINCOMP_A :: MEMCTL_WINCOMP_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn memctl_wincomp_enable (self) -> & 'a mut crate :: W < REG > { self . variant (MEMCTL_WINCOMP_A :: MEMCTL_WINCOMP_ENABLE) } } impl R { # [doc = "Bits 0:4 - Input channel select."]
# [inline (always)]
pub fn memctl_chansel (& self) -> MEMCTL_CHANSEL_R { MEMCTL_CHANSEL_R :: new ((self . bits & 0x1f) as u8) } # [doc = "Bits 8:9 - Voltage reference selection. VEREFM must be connected to on-board ground when external reference option is selected. Note: Writing value 0x3 defaults to INTREF."]
# [inline (always)]
pub fn memctl_vrsel (& self) -> MEMCTL_VRSEL_R { MEMCTL_VRSEL_R :: new (((self . bits >> 8) & 3) as u8) } # [doc = "Bit 12 - Selects the source of sample timer period between SCOMP0 and SCOMP1."]
# [inline (always)]
pub fn memctl_stime (& self) -> MEMCTL_STIME_R { MEMCTL_STIME_R :: new (((self . bits >> 12) & 1) != 0) } # [doc = "Bit 16 - Enable hardware averaging."]
# [inline (always)]
pub fn memctl_avgen (& self) -> MEMCTL_AVGEN_R { MEMCTL_AVGEN_R :: new (((self . bits >> 16) & 1) != 0) } # [doc = "Bit 20 - Enable burn out current source."]
# [inline (always)]
pub fn memctl_bcsen (& self) -> MEMCTL_BCSEN_R { MEMCTL_BCSEN_R :: new (((self . bits >> 20) & 1) != 0) } # [doc = "Bit 24 - Trigger policy. Indicates if a trigger will be needed to step to the next MEMCTL in the sequence or to perform next conversion in the case of repeat single channel conversions."]
# [inline (always)]
pub fn memctl_trig (& self) -> MEMCTL_TRIG_R { MEMCTL_TRIG_R :: new (((self . bits >> 24) & 1) != 0) } # [doc = "Bit 28 - Enable window comparator."]
# [inline (always)]
pub fn memctl_wincomp (& self) -> MEMCTL_WINCOMP_R { MEMCTL_WINCOMP_R :: new (((self . bits >> 28) & 1) != 0) } } impl W { # [doc = "Bits 0:4 - Input channel select."]
# [inline (always)]
# [must_use]
pub fn memctl_chansel (& mut self) -> MEMCTL_CHANSEL_W < MEMCTL_SPEC , 0 > { MEMCTL_CHANSEL_W :: new (self) } # [doc = "Bits 8:9 - Voltage reference selection. VEREFM must be connected to on-board ground when external reference option is selected. Note: Writing value 0x3 defaults to INTREF."]
# [inline (always)]
# [must_use]
pub fn memctl_vrsel (& mut self) -> MEMCTL_VRSEL_W < MEMCTL_SPEC , 8 > { MEMCTL_VRSEL_W :: new (self) } # [doc = "Bit 12 - Selects the source of sample timer period between SCOMP0 and SCOMP1."]
# [inline (always)]
# [must_use]
pub fn memctl_stime (& mut self) -> MEMCTL_STIME_W < MEMCTL_SPEC , 12 > { MEMCTL_STIME_W :: new (self) } # [doc = "Bit 16 - Enable hardware averaging."]
# [inline (always)]
# [must_use]
pub fn memctl_avgen (& mut self) -> MEMCTL_AVGEN_W < MEMCTL_SPEC , 16 > { MEMCTL_AVGEN_W :: new (self) } # [doc = "Bit 20 - Enable burn out current source."]
# [inline (always)]
# [must_use]
pub fn memctl_bcsen (& mut self) -> MEMCTL_BCSEN_W < MEMCTL_SPEC , 20 > { MEMCTL_BCSEN_W :: new (self) } # [doc = "Bit 24 - Trigger policy. Indicates if a trigger will be needed to step to the next MEMCTL in the sequence or to perform next conversion in the case of repeat single channel conversions."]
# [inline (always)]
# [must_use]
pub fn memctl_trig (& mut self) -> MEMCTL_TRIG_W < MEMCTL_SPEC , 24 > { MEMCTL_TRIG_W :: new (self) } # [doc = "Bit 28 - Enable window comparator."]
# [inline (always)]
# [must_use]
pub fn memctl_wincomp (& mut self) -> MEMCTL_WINCOMP_W < MEMCTL_SPEC , 28 > { MEMCTL_WINCOMP_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Conversion Memory Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`memctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`memctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MEMCTL_SPEC ; impl crate :: RegisterSpec for MEMCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`memctl::R`](R) reader structure"]
impl crate :: Readable for MEMCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`memctl::W`](W) writer structure"]
impl crate :: Writable for MEMCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets MEMCTL[%s]
to value 0"]
impl crate :: Resettable for MEMCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "STATUS (r) register accessor: Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`status::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@status`]
module"]
pub type STATUS = crate :: Reg < status :: STATUS_SPEC > ; # [doc = "Status Register"]
pub mod status { # [doc = "Register `STATUS` reader"]
pub type R = crate :: R < STATUS_SPEC > ; # [doc = "Field `STATUS_BUSY` reader - Busy. This bit indicates that an active ADC sample or conversion operation is in progress."]
pub type STATUS_BUSY_R = crate :: BitReader < STATUS_BUSY_A > ; # [doc = "Busy. This bit indicates that an active ADC sample or conversion operation is in progress.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STATUS_BUSY_A { # [doc = "0: IDLE"]
STATUS_BUSY_IDLE = 0 , # [doc = "1: ACTIVE"]
STATUS_BUSY_ACTIVE = 1 , } impl From < STATUS_BUSY_A > for bool { # [inline (always)]
fn from (variant : STATUS_BUSY_A) -> Self { variant as u8 != 0 } } impl STATUS_BUSY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STATUS_BUSY_A { match self . bits { false => STATUS_BUSY_A :: STATUS_BUSY_IDLE , true => STATUS_BUSY_A :: STATUS_BUSY_ACTIVE , } } # [doc = "IDLE"]
# [inline (always)]
pub fn is_status_busy_idle (& self) -> bool { * self == STATUS_BUSY_A :: STATUS_BUSY_IDLE } # [doc = "ACTIVE"]
# [inline (always)]
pub fn is_status_busy_active (& self) -> bool { * self == STATUS_BUSY_A :: STATUS_BUSY_ACTIVE } } # [doc = "Field `STATUS_REFBUFRDY` reader - Indicates reference buffer is powered up and ready."]
pub type STATUS_REFBUFRDY_R = crate :: BitReader < STATUS_REFBUFRDY_A > ; # [doc = "Indicates reference buffer is powered up and ready.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STATUS_REFBUFRDY_A { # [doc = "0: NOTREADY"]
STATUS_REFBUFRDY_NOTREADY = 0 , # [doc = "1: READY"]
STATUS_REFBUFRDY_READY = 1 , } impl From < STATUS_REFBUFRDY_A > for bool { # [inline (always)]
fn from (variant : STATUS_REFBUFRDY_A) -> Self { variant as u8 != 0 } } impl STATUS_REFBUFRDY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STATUS_REFBUFRDY_A { match self . bits { false => STATUS_REFBUFRDY_A :: STATUS_REFBUFRDY_NOTREADY , true => STATUS_REFBUFRDY_A :: STATUS_REFBUFRDY_READY , } } # [doc = "NOTREADY"]
# [inline (always)]
pub fn is_status_refbufrdy_notready (& self) -> bool { * self == STATUS_REFBUFRDY_A :: STATUS_REFBUFRDY_NOTREADY } # [doc = "READY"]
# [inline (always)]
pub fn is_status_refbufrdy_ready (& self) -> bool { * self == STATUS_REFBUFRDY_A :: STATUS_REFBUFRDY_READY } } impl R { # [doc = "Bit 0 - Busy. This bit indicates that an active ADC sample or conversion operation is in progress."]
# [inline (always)]
pub fn status_busy (& self) -> STATUS_BUSY_R { STATUS_BUSY_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Indicates reference buffer is powered up and ready."]
# [inline (always)]
pub fn status_refbufrdy (& self) -> STATUS_REFBUFRDY_R { STATUS_REFBUFRDY_R :: new (((self . bits >> 1) & 1) != 0) } } # [doc = "Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`status::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct STATUS_SPEC ; impl crate :: RegisterSpec for STATUS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`status::R`](R) reader structure"]
impl crate :: Readable for STATUS_SPEC { } # [doc = "`reset()` method sets STATUS to value 0"]
impl crate :: Resettable for STATUS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } } # [doc = "PERIPHERALREGIONSVT"]
pub struct ADC0_SVT { _marker : PhantomData < * const () > } unsafe impl Send for ADC0_SVT { } impl ADC0_SVT { # [doc = r"Pointer to the register block"]
pub const PTR : * const adc0_svt :: RegisterBlock = 0x4055_a000 as * const _ ; # [doc = r"Return the pointer to the register block"]
# [inline (always)]
pub const fn ptr () -> * const adc0_svt :: RegisterBlock { Self :: PTR } # [doc = r" Steal an instance of this peripheral"]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Ensure that the new instance of the peripheral cannot be used in a way"]
# [doc = r" that may race with any existing instances, for example by only"]
# [doc = r" accessing read-only or write-only registers, or by consuming the"]
# [doc = r" original peripheral and using critical sections to coordinate"]
# [doc = r" access between multiple new instances."]
# [doc = r""]
# [doc = r" Additionally, other software such as HALs may rely on only one"]
# [doc = r" peripheral instance existing to ensure memory safety; ensure"]
# [doc = r" no stolen instances are passed to such software."]
pub unsafe fn steal () -> Self { Self { _marker : PhantomData } } } impl Deref for ADC0_SVT { type Target = adc0_svt :: RegisterBlock ; # [inline (always)]
fn deref (& self) -> & Self :: Target { unsafe { & * Self :: PTR } } } impl core :: fmt :: Debug for ADC0_SVT { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("ADC0_SVT") . finish () } } # [doc = "PERIPHERALREGIONSVT"]
pub mod adc0_svt { # [doc = r"Register block"]
# [repr (C)]
pub struct RegisterBlock { _reserved0 : [u8 ; 0x0160]
, # [doc = "0x160 - FIFO Data Register"]
pub fifodata : FIFODATA , _reserved1 : [u8 ; 0x011c]
, # [doc = "0x280..0x290 - Memory Result Register"]
pub memres : [MEMRES ; 4]
, } # [doc = "FIFODATA (r) register accessor: FIFO Data Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fifodata::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fifodata`]
module"]
pub type FIFODATA = crate :: Reg < fifodata :: FIFODATA_SPEC > ; # [doc = "FIFO Data Register"]
pub mod fifodata { # [doc = "Register `FIFODATA` reader"]
pub type R = crate :: R < FIFODATA_SPEC > ; # [doc = "Field `FIFODATA_DATA` reader - Read from this data field returns the ADC sample from FIFO."]
pub type FIFODATA_DATA_R = crate :: FieldReader < u32 > ; impl R { # [doc = "Bits 0:31 - Read from this data field returns the ADC sample from FIFO."]
# [inline (always)]
pub fn fifodata_data (& self) -> FIFODATA_DATA_R { FIFODATA_DATA_R :: new (self . bits) } } # [doc = "FIFO Data Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fifodata::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FIFODATA_SPEC ; impl crate :: RegisterSpec for FIFODATA_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fifodata::R`](R) reader structure"]
impl crate :: Readable for FIFODATA_SPEC { } # [doc = "`reset()` method sets FIFODATA to value 0"]
impl crate :: Resettable for FIFODATA_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "MEMRES (r) register accessor: Memory Result Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`memres::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@memres`]
module"]
pub type MEMRES = crate :: Reg < memres :: MEMRES_SPEC > ; # [doc = "Memory Result Register"]
pub mod memres { # [doc = "Register `MEMRES[%s]` reader"]
pub type R = crate :: R < MEMRES_SPEC > ; # [doc = "Field `MEMRES_DATA` reader - MEMRES result register. If DF = 0, unsigned binary: The conversion results are right aligned. In 10 and 8 bit modes, the unused MSB bits are forced to 0. If DF = 1, 2s-complement format: The conversion results are left aligned. In 10 and 8 bit modes, the unused LSB bits are forced to 0. The data is stored in the right-justified format and is converted to the left-justified 2s-complement format during read back."]
pub type MEMRES_DATA_R = crate :: FieldReader < u16 > ; impl R { # [doc = "Bits 0:15 - MEMRES result register. If DF = 0, unsigned binary: The conversion results are right aligned. In 10 and 8 bit modes, the unused MSB bits are forced to 0. If DF = 1, 2s-complement format: The conversion results are left aligned. In 10 and 8 bit modes, the unused LSB bits are forced to 0. The data is stored in the right-justified format and is converted to the left-justified 2s-complement format during read back."]
# [inline (always)]
pub fn memres_data (& self) -> MEMRES_DATA_R { MEMRES_DATA_R :: new ((self . bits & 0xffff) as u16) } } # [doc = "Memory Result Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`memres::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MEMRES_SPEC ; impl crate :: RegisterSpec for MEMRES_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`memres::R`](R) reader structure"]
impl crate :: Readable for MEMRES_SPEC { } # [doc = "`reset()` method sets MEMRES[%s]
to value 0"]
impl crate :: Resettable for MEMRES_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } } # [doc = "PERIPHERALREGION"]
pub struct WUC { _marker : PhantomData < * const () > } unsafe impl Send for WUC { } impl WUC { # [doc = r"Pointer to the register block"]
pub const PTR : * const wuc :: RegisterBlock = 0x4042_4000 as * const _ ; # [doc = r"Return the pointer to the register block"]
# [inline (always)]
pub const fn ptr () -> * const wuc :: RegisterBlock { Self :: PTR } # [doc = r" Steal an instance of this peripheral"]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Ensure that the new instance of the peripheral cannot be used in a way"]
# [doc = r" that may race with any existing instances, for example by only"]
# [doc = r" accessing read-only or write-only registers, or by consuming the"]
# [doc = r" original peripheral and using critical sections to coordinate"]
# [doc = r" access between multiple new instances."]
# [doc = r""]
# [doc = r" Additionally, other software such as HALs may rely on only one"]
# [doc = r" peripheral instance existing to ensure memory safety; ensure"]
# [doc = r" no stolen instances are passed to such software."]
pub unsafe fn steal () -> Self { Self { _marker : PhantomData } } } impl Deref for WUC { type Target = wuc :: RegisterBlock ; # [inline (always)]
fn deref (& self) -> & Self :: Target { unsafe { & * Self :: PTR } } } impl core :: fmt :: Debug for WUC { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("WUC") . finish () } } # [doc = "PERIPHERALREGION"]
pub mod wuc { # [doc = r"Register block"]
# [repr (C)]
pub struct RegisterBlock { _reserved0 : [u8 ; 0x0400]
, # [doc = "0x400 - Subscriber Port 0"]
pub fsub_0 : FSUB_0 , # [doc = "0x404 - Subscriber Port 1"]
pub fsub_1 : FSUB_1 , } # [doc = "FSUB_0 (rw) register accessor: Subscriber Port 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fsub_0`]
module"]
pub type FSUB_0 = crate :: Reg < fsub_0 :: FSUB_0_SPEC > ; # [doc = "Subscriber Port 0"]
pub mod fsub_0 { # [doc = "Register `FSUB_0` reader"]
pub type R = crate :: R < FSUB_0_SPEC > ; # [doc = "Register `FSUB_0` writer"]
pub type W = crate :: W < FSUB_0_SPEC > ; # [doc = "Field `FSUB_0_CHANID` reader - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FSUB_0_CHANID_R = crate :: FieldReader < FSUB_0_CHANID_A > ; # [doc = "0 = disconnected. 1-15 = connected to channelID = CHANID.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FSUB_0_CHANID_A { # [doc = "0: UNCONNECTED"]
FSUB_0_CHANID_UNCONNECTED = 0 , } impl From < FSUB_0_CHANID_A > for u8 { # [inline (always)]
fn from (variant : FSUB_0_CHANID_A) -> Self { variant as _ } } impl crate :: FieldSpec for FSUB_0_CHANID_A { type Ux = u8 ; } impl FSUB_0_CHANID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < FSUB_0_CHANID_A > { match self . bits { 0 => Some (FSUB_0_CHANID_A :: FSUB_0_CHANID_UNCONNECTED) , _ => None , } } # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn is_fsub_0_chanid_unconnected (& self) -> bool { * self == FSUB_0_CHANID_A :: FSUB_0_CHANID_UNCONNECTED } } # [doc = "Field `FSUB_0_CHANID` writer - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FSUB_0_CHANID_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , FSUB_0_CHANID_A > ; impl < 'a , REG , const O : u8 > FSUB_0_CHANID_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn fsub_0_chanid_unconnected (self) -> & 'a mut crate :: W < REG > { self . variant (FSUB_0_CHANID_A :: FSUB_0_CHANID_UNCONNECTED) } } impl R { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
pub fn fsub_0_chanid (& self) -> FSUB_0_CHANID_R { FSUB_0_CHANID_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
# [must_use]
pub fn fsub_0_chanid (& mut self) -> FSUB_0_CHANID_W < FSUB_0_SPEC , 0 > { FSUB_0_CHANID_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Subscriber Port 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_0::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FSUB_0_SPEC ; impl crate :: RegisterSpec for FSUB_0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fsub_0::R`](R) reader structure"]
impl crate :: Readable for FSUB_0_SPEC { } # [doc = "`write(|w| ..)` method takes [`fsub_0::W`](W) writer structure"]
impl crate :: Writable for FSUB_0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FSUB_0 to value 0"]
impl crate :: Resettable for FSUB_0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "FSUB_1 (rw) register accessor: Subscriber Port 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fsub_1`]
module"]
pub type FSUB_1 = crate :: Reg < fsub_1 :: FSUB_1_SPEC > ; # [doc = "Subscriber Port 1"]
pub mod fsub_1 { # [doc = "Register `FSUB_1` reader"]
pub type R = crate :: R < FSUB_1_SPEC > ; # [doc = "Register `FSUB_1` writer"]
pub type W = crate :: W < FSUB_1_SPEC > ; # [doc = "Field `FSUB_1_CHANID` reader - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FSUB_1_CHANID_R = crate :: FieldReader < FSUB_1_CHANID_A > ; # [doc = "0 = disconnected. 1-15 = connected to channelID = CHANID.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FSUB_1_CHANID_A { # [doc = "0: UNCONNECTED"]
FSUB_1_CHANID_UNCONNECTED = 0 , } impl From < FSUB_1_CHANID_A > for u8 { # [inline (always)]
fn from (variant : FSUB_1_CHANID_A) -> Self { variant as _ } } impl crate :: FieldSpec for FSUB_1_CHANID_A { type Ux = u8 ; } impl FSUB_1_CHANID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < FSUB_1_CHANID_A > { match self . bits { 0 => Some (FSUB_1_CHANID_A :: FSUB_1_CHANID_UNCONNECTED) , _ => None , } } # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn is_fsub_1_chanid_unconnected (& self) -> bool { * self == FSUB_1_CHANID_A :: FSUB_1_CHANID_UNCONNECTED } } # [doc = "Field `FSUB_1_CHANID` writer - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FSUB_1_CHANID_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , FSUB_1_CHANID_A > ; impl < 'a , REG , const O : u8 > FSUB_1_CHANID_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn fsub_1_chanid_unconnected (self) -> & 'a mut crate :: W < REG > { self . variant (FSUB_1_CHANID_A :: FSUB_1_CHANID_UNCONNECTED) } } impl R { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
pub fn fsub_1_chanid (& self) -> FSUB_1_CHANID_R { FSUB_1_CHANID_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
# [must_use]
pub fn fsub_1_chanid (& mut self) -> FSUB_1_CHANID_W < FSUB_1_SPEC , 0 > { FSUB_1_CHANID_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Subscriber Port 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_1::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FSUB_1_SPEC ; impl crate :: RegisterSpec for FSUB_1_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fsub_1::R`](R) reader structure"]
impl crate :: Readable for FSUB_1_SPEC { } # [doc = "`write(|w| ..)` method takes [`fsub_1::W`](W) writer structure"]
impl crate :: Writable for FSUB_1_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FSUB_1 to value 0"]
impl crate :: Resettable for FSUB_1_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } } # [doc = "PERIPHERALREGION"]
pub struct TIMG0 { _marker : PhantomData < * const () > } unsafe impl Send for TIMG0 { } impl TIMG0 { # [doc = r"Pointer to the register block"]
pub const PTR : * const timg0 :: RegisterBlock = 0x4008_4000 as * const _ ; # [doc = r"Return the pointer to the register block"]
# [inline (always)]
pub const fn ptr () -> * const timg0 :: RegisterBlock { Self :: PTR } # [doc = r" Steal an instance of this peripheral"]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Ensure that the new instance of the peripheral cannot be used in a way"]
# [doc = r" that may race with any existing instances, for example by only"]
# [doc = r" accessing read-only or write-only registers, or by consuming the"]
# [doc = r" original peripheral and using critical sections to coordinate"]
# [doc = r" access between multiple new instances."]
# [doc = r""]
# [doc = r" Additionally, other software such as HALs may rely on only one"]
# [doc = r" peripheral instance existing to ensure memory safety; ensure"]
# [doc = r" no stolen instances are passed to such software."]
pub unsafe fn steal () -> Self { Self { _marker : PhantomData } } } impl Deref for TIMG0 { type Target = timg0 :: RegisterBlock ; # [inline (always)]
fn deref (& self) -> & Self :: Target { unsafe { & * Self :: PTR } } } impl core :: fmt :: Debug for TIMG0 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("TIMG0") . finish () } } # [doc = "PERIPHERALREGION"]
pub mod timg0 { # [doc = r"Register block"]
# [repr (C)]
pub struct RegisterBlock { _reserved0 : [u8 ; 0x0400]
, # [doc = "0x400 - Subsciber Port 0"]
pub fsub_0 : FSUB_0 , # [doc = "0x404 - Subscriber Port 1"]
pub fsub_1 : FSUB_1 , _reserved2 : [u8 ; 0x3c]
, # [doc = "0x444 - Publisher Port 0"]
pub fpub_0 : FPUB_0 , # [doc = "0x448 - Publisher Port 1"]
pub fpub_1 : FPUB_1 , _reserved4 : [u8 ; 0x03b4]
, # [doc = "0x800 - Power enable"]
pub pwren : PWREN , # [doc = "0x804 - Reset Control"]
pub rstctl : RSTCTL , _reserved6 : [u8 ; 0x0c]
, # [doc = "0x814 - Status Register"]
pub stat : STAT , _reserved7 : [u8 ; 0x07e8]
, # [doc = "0x1000 - Clock Divider"]
pub clkdiv : CLKDIV , _reserved8 : [u8 ; 0x04]
, # [doc = "0x1008 - Clock Select for Ultra Low Power peripherals"]
pub clksel : CLKSEL , _reserved9 : [u8 ; 0x0c]
, # [doc = "0x1018 - Peripheral Debug Control"]
pub pdbgctl : PDBGCTL , _reserved10 : [u8 ; 0x04]
, # [doc = "0x1020 - Interrupt index"]
pub iidx : IIDX , _reserved11 : [u8 ; 0x04]
, # [doc = "0x1028 - Interrupt mask"]
pub imask : IMASK , _reserved12 : [u8 ; 0x04]
, # [doc = "0x1030 - Raw interrupt status"]
pub ris : RIS , _reserved13 : [u8 ; 0x04]
, # [doc = "0x1038 - Masked interrupt status"]
pub mis : MIS , _reserved14 : [u8 ; 0x04]
, # [doc = "0x1040 - Interrupt set"]
pub iset : ISET , _reserved15 : [u8 ; 0x04]
, # [doc = "0x1048 - Interrupt clear"]
pub iclr : ICLR , _reserved16 : [u8 ; 0x94]
, # [doc = "0x10e0 - Event Mode"]
pub evt_mode : EVT_MODE , _reserved17 : [u8 ; 0x18]
, # [doc = "0x10fc - Module Description"]
pub desc : DESC , # [doc = "0x1100 - CCP Direction"]
pub ccpd : CCPD , # [doc = "0x1104 - Output Disable"]
pub odis : ODIS , # [doc = "0x1108 - Counter Clock Control Register"]
pub cclkctl : CCLKCTL , # [doc = "0x110c - Clock Prescale Register"]
pub cps : CPS , # [doc = "0x1110 - Clock prescale count status register"]
pub cpsv : CPSV , # [doc = "0x1114 - Timer Cross Trigger Control Register"]
pub cttrigctl : CTTRIGCTL , _reserved24 : [u8 ; 0x04]
, # [doc = "0x111c - Timer Cross Trigger Register"]
pub cttrig : CTTRIG , _reserved25 : [u8 ; 0x06e0]
, # [doc = "0x1800 - Counter Register"]
pub ctr : CTR , # [doc = "0x1804 - Counter Control Register"]
pub ctrctl : CTRCTL , # [doc = "0x1808 - Load Register"]
pub load : LOAD , _reserved28 : [u8 ; 0x04]
, # [doc = "0x1810..0x1818 - Capture or Compare Register 0 to Capture or Compare Register 1"]
pub cc_01 : [CC_01 ; 2]
, _reserved29 : [u8 ; 0x18]
, # [doc = "0x1830..0x1838 - Capture or Compare Control Registers"]
pub ccctl_01 : [CCCTL_01 ; 2]
, _reserved30 : [u8 ; 0x18]
, # [doc = "0x1850..0x1858 - CCP Output Control Registers"]
pub octl_01 : [OCTL_01 ; 2]
, _reserved31 : [u8 ; 0x18]
, # [doc = "0x1870..0x1878 - Capture or Compare Action Registers"]
pub ccact_01 : [CCACT_01 ; 2]
, _reserved32 : [u8 ; 0x08]
, # [doc = "0x1880..0x1888 - Input Filter Control Register"]
pub ifctl_01 : [IFCTL_01 ; 2]
, _reserved33 : [u8 ; 0x28]
, # [doc = "0x18b0 - Trigger Select"]
pub tsel : TSEL , } # [doc = "FSUB_0 (rw) register accessor: Subsciber Port 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fsub_0`]
module"]
pub type FSUB_0 = crate :: Reg < fsub_0 :: FSUB_0_SPEC > ; # [doc = "Subsciber Port 0"]
pub mod fsub_0 { # [doc = "Register `FSUB_0` reader"]
pub type R = crate :: R < FSUB_0_SPEC > ; # [doc = "Register `FSUB_0` writer"]
pub type W = crate :: W < FSUB_0_SPEC > ; # [doc = "Field `FSUB_0_CHANID` reader - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FSUB_0_CHANID_R = crate :: FieldReader < FSUB_0_CHANID_A > ; # [doc = "0 = disconnected. 1-15 = connected to channelID = CHANID.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FSUB_0_CHANID_A { # [doc = "0: UNCONNECTED"]
FSUB_0_CHANID_UNCONNECTED = 0 , } impl From < FSUB_0_CHANID_A > for u8 { # [inline (always)]
fn from (variant : FSUB_0_CHANID_A) -> Self { variant as _ } } impl crate :: FieldSpec for FSUB_0_CHANID_A { type Ux = u8 ; } impl FSUB_0_CHANID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < FSUB_0_CHANID_A > { match self . bits { 0 => Some (FSUB_0_CHANID_A :: FSUB_0_CHANID_UNCONNECTED) , _ => None , } } # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn is_fsub_0_chanid_unconnected (& self) -> bool { * self == FSUB_0_CHANID_A :: FSUB_0_CHANID_UNCONNECTED } } # [doc = "Field `FSUB_0_CHANID` writer - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FSUB_0_CHANID_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , FSUB_0_CHANID_A > ; impl < 'a , REG , const O : u8 > FSUB_0_CHANID_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn fsub_0_chanid_unconnected (self) -> & 'a mut crate :: W < REG > { self . variant (FSUB_0_CHANID_A :: FSUB_0_CHANID_UNCONNECTED) } } impl R { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
pub fn fsub_0_chanid (& self) -> FSUB_0_CHANID_R { FSUB_0_CHANID_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
# [must_use]
pub fn fsub_0_chanid (& mut self) -> FSUB_0_CHANID_W < FSUB_0_SPEC , 0 > { FSUB_0_CHANID_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Subsciber Port 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_0::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FSUB_0_SPEC ; impl crate :: RegisterSpec for FSUB_0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fsub_0::R`](R) reader structure"]
impl crate :: Readable for FSUB_0_SPEC { } # [doc = "`write(|w| ..)` method takes [`fsub_0::W`](W) writer structure"]
impl crate :: Writable for FSUB_0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FSUB_0 to value 0"]
impl crate :: Resettable for FSUB_0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "FSUB_1 (rw) register accessor: Subscriber Port 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fsub_1`]
module"]
pub type FSUB_1 = crate :: Reg < fsub_1 :: FSUB_1_SPEC > ; # [doc = "Subscriber Port 1"]
pub mod fsub_1 { # [doc = "Register `FSUB_1` reader"]
pub type R = crate :: R < FSUB_1_SPEC > ; # [doc = "Register `FSUB_1` writer"]
pub type W = crate :: W < FSUB_1_SPEC > ; # [doc = "Field `FSUB_1_CHANID` reader - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FSUB_1_CHANID_R = crate :: FieldReader < FSUB_1_CHANID_A > ; # [doc = "0 = disconnected. 1-15 = connected to channelID = CHANID.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FSUB_1_CHANID_A { # [doc = "0: UNCONNECTED"]
FSUB_1_CHANID_UNCONNECTED = 0 , } impl From < FSUB_1_CHANID_A > for u8 { # [inline (always)]
fn from (variant : FSUB_1_CHANID_A) -> Self { variant as _ } } impl crate :: FieldSpec for FSUB_1_CHANID_A { type Ux = u8 ; } impl FSUB_1_CHANID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < FSUB_1_CHANID_A > { match self . bits { 0 => Some (FSUB_1_CHANID_A :: FSUB_1_CHANID_UNCONNECTED) , _ => None , } } # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn is_fsub_1_chanid_unconnected (& self) -> bool { * self == FSUB_1_CHANID_A :: FSUB_1_CHANID_UNCONNECTED } } # [doc = "Field `FSUB_1_CHANID` writer - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FSUB_1_CHANID_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , FSUB_1_CHANID_A > ; impl < 'a , REG , const O : u8 > FSUB_1_CHANID_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn fsub_1_chanid_unconnected (self) -> & 'a mut crate :: W < REG > { self . variant (FSUB_1_CHANID_A :: FSUB_1_CHANID_UNCONNECTED) } } impl R { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
pub fn fsub_1_chanid (& self) -> FSUB_1_CHANID_R { FSUB_1_CHANID_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
# [must_use]
pub fn fsub_1_chanid (& mut self) -> FSUB_1_CHANID_W < FSUB_1_SPEC , 0 > { FSUB_1_CHANID_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Subscriber Port 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsub_1::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsub_1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FSUB_1_SPEC ; impl crate :: RegisterSpec for FSUB_1_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fsub_1::R`](R) reader structure"]
impl crate :: Readable for FSUB_1_SPEC { } # [doc = "`write(|w| ..)` method takes [`fsub_1::W`](W) writer structure"]
impl crate :: Writable for FSUB_1_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FSUB_1 to value 0"]
impl crate :: Resettable for FSUB_1_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "FPUB_0 (rw) register accessor: Publisher Port 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fpub_0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fpub_0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fpub_0`]
module"]
pub type FPUB_0 = crate :: Reg < fpub_0 :: FPUB_0_SPEC > ; # [doc = "Publisher Port 0"]
pub mod fpub_0 { # [doc = "Register `FPUB_0` reader"]
pub type R = crate :: R < FPUB_0_SPEC > ; # [doc = "Register `FPUB_0` writer"]
pub type W = crate :: W < FPUB_0_SPEC > ; # [doc = "Field `FPUB_0_CHANID` reader - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FPUB_0_CHANID_R = crate :: FieldReader < FPUB_0_CHANID_A > ; # [doc = "0 = disconnected. 1-15 = connected to channelID = CHANID.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FPUB_0_CHANID_A { # [doc = "0: UNCONNECTED"]
FPUB_0_CHANID_UNCONNECTED = 0 , } impl From < FPUB_0_CHANID_A > for u8 { # [inline (always)]
fn from (variant : FPUB_0_CHANID_A) -> Self { variant as _ } } impl crate :: FieldSpec for FPUB_0_CHANID_A { type Ux = u8 ; } impl FPUB_0_CHANID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < FPUB_0_CHANID_A > { match self . bits { 0 => Some (FPUB_0_CHANID_A :: FPUB_0_CHANID_UNCONNECTED) , _ => None , } } # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn is_fpub_0_chanid_unconnected (& self) -> bool { * self == FPUB_0_CHANID_A :: FPUB_0_CHANID_UNCONNECTED } } # [doc = "Field `FPUB_0_CHANID` writer - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FPUB_0_CHANID_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , FPUB_0_CHANID_A > ; impl < 'a , REG , const O : u8 > FPUB_0_CHANID_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn fpub_0_chanid_unconnected (self) -> & 'a mut crate :: W < REG > { self . variant (FPUB_0_CHANID_A :: FPUB_0_CHANID_UNCONNECTED) } } impl R { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
pub fn fpub_0_chanid (& self) -> FPUB_0_CHANID_R { FPUB_0_CHANID_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
# [must_use]
pub fn fpub_0_chanid (& mut self) -> FPUB_0_CHANID_W < FPUB_0_SPEC , 0 > { FPUB_0_CHANID_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Publisher Port 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fpub_0::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fpub_0::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FPUB_0_SPEC ; impl crate :: RegisterSpec for FPUB_0_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fpub_0::R`](R) reader structure"]
impl crate :: Readable for FPUB_0_SPEC { } # [doc = "`write(|w| ..)` method takes [`fpub_0::W`](W) writer structure"]
impl crate :: Writable for FPUB_0_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FPUB_0 to value 0"]
impl crate :: Resettable for FPUB_0_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "FPUB_1 (rw) register accessor: Publisher Port 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fpub_1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fpub_1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fpub_1`]
module"]
pub type FPUB_1 = crate :: Reg < fpub_1 :: FPUB_1_SPEC > ; # [doc = "Publisher Port 1"]
pub mod fpub_1 { # [doc = "Register `FPUB_1` reader"]
pub type R = crate :: R < FPUB_1_SPEC > ; # [doc = "Register `FPUB_1` writer"]
pub type W = crate :: W < FPUB_1_SPEC > ; # [doc = "Field `FPUB_1_CHANID` reader - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FPUB_1_CHANID_R = crate :: FieldReader < FPUB_1_CHANID_A > ; # [doc = "0 = disconnected. 1-15 = connected to channelID = CHANID.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum FPUB_1_CHANID_A { # [doc = "0: UNCONNECTED"]
FPUB_1_CHANID_UNCONNECTED = 0 , } impl From < FPUB_1_CHANID_A > for u8 { # [inline (always)]
fn from (variant : FPUB_1_CHANID_A) -> Self { variant as _ } } impl crate :: FieldSpec for FPUB_1_CHANID_A { type Ux = u8 ; } impl FPUB_1_CHANID_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < FPUB_1_CHANID_A > { match self . bits { 0 => Some (FPUB_1_CHANID_A :: FPUB_1_CHANID_UNCONNECTED) , _ => None , } } # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn is_fpub_1_chanid_unconnected (& self) -> bool { * self == FPUB_1_CHANID_A :: FPUB_1_CHANID_UNCONNECTED } } # [doc = "Field `FPUB_1_CHANID` writer - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
pub type FPUB_1_CHANID_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , FPUB_1_CHANID_A > ; impl < 'a , REG , const O : u8 > FPUB_1_CHANID_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "UNCONNECTED"]
# [inline (always)]
pub fn fpub_1_chanid_unconnected (self) -> & 'a mut crate :: W < REG > { self . variant (FPUB_1_CHANID_A :: FPUB_1_CHANID_UNCONNECTED) } } impl R { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
pub fn fpub_1_chanid (& self) -> FPUB_1_CHANID_R { FPUB_1_CHANID_R :: new ((self . bits & 3) as u8) } } impl W { # [doc = "Bits 0:1 - 0 = disconnected. 1-15 = connected to channelID = CHANID."]
# [inline (always)]
# [must_use]
pub fn fpub_1_chanid (& mut self) -> FPUB_1_CHANID_W < FPUB_1_SPEC , 0 > { FPUB_1_CHANID_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Publisher Port 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fpub_1::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fpub_1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FPUB_1_SPEC ; impl crate :: RegisterSpec for FPUB_1_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`fpub_1::R`](R) reader structure"]
impl crate :: Readable for FPUB_1_SPEC { } # [doc = "`write(|w| ..)` method takes [`fpub_1::W`](W) writer structure"]
impl crate :: Writable for FPUB_1_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets FPUB_1 to value 0"]
impl crate :: Resettable for FPUB_1_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "PWREN (rw) register accessor: Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pwren`]
module"]
pub type PWREN = crate :: Reg < pwren :: PWREN_SPEC > ; # [doc = "Power enable"]
pub mod pwren { # [doc = "Register `PWREN` reader"]
pub type R = crate :: R < PWREN_SPEC > ; # [doc = "Register `PWREN` writer"]
pub type W = crate :: W < PWREN_SPEC > ; # [doc = "Field `PWREN_ENABLE` reader - Enable the power"]
pub type PWREN_ENABLE_R = crate :: BitReader < PWREN_ENABLE_A > ; # [doc = "Enable the power\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PWREN_ENABLE_A { # [doc = "0: DISABLE"]
PWREN_ENABLE_DISABLE = 0 , # [doc = "1: ENABLE"]
PWREN_ENABLE_ENABLE = 1 , } impl From < PWREN_ENABLE_A > for bool { # [inline (always)]
fn from (variant : PWREN_ENABLE_A) -> Self { variant as u8 != 0 } } impl PWREN_ENABLE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PWREN_ENABLE_A { match self . bits { false => PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE , true => PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_pwren_enable_disable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_pwren_enable_enable (& self) -> bool { * self == PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE } } # [doc = "Field `PWREN_ENABLE` writer - Enable the power"]
pub type PWREN_ENABLE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PWREN_ENABLE_A > ; impl < 'a , REG , const O : u8 > PWREN_ENABLE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn pwren_enable_disable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn pwren_enable_enable (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_ENABLE_A :: PWREN_ENABLE_ENABLE) } } # [doc = "KEY to allow Power State Change\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum PWREN_KEY_AW { # [doc = "38: _TO_UNLOCK_W_"]
PWREN_KEY_UNLOCK_W = 38 , } impl From < PWREN_KEY_AW > for u8 { # [inline (always)]
fn from (variant : PWREN_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for PWREN_KEY_AW { type Ux = u8 ; } # [doc = "Field `PWREN_KEY` writer - KEY to allow Power State Change"]
pub type PWREN_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , PWREN_KEY_AW > ; impl < 'a , REG , const O : u8 > PWREN_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn pwren_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (PWREN_KEY_AW :: PWREN_KEY_UNLOCK_W) } } impl R { # [doc = "Bit 0 - Enable the power"]
# [inline (always)]
pub fn pwren_enable (& self) -> PWREN_ENABLE_R { PWREN_ENABLE_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - Enable the power"]
# [inline (always)]
# [must_use]
pub fn pwren_enable (& mut self) -> PWREN_ENABLE_W < PWREN_SPEC , 0 > { PWREN_ENABLE_W :: new (self) } # [doc = "Bits 24:31 - KEY to allow Power State Change"]
# [inline (always)]
# [must_use]
pub fn pwren_key (& mut self) -> PWREN_KEY_W < PWREN_SPEC , 24 > { PWREN_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Power enable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pwren::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pwren::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PWREN_SPEC ; impl crate :: RegisterSpec for PWREN_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pwren::R`](R) reader structure"]
impl crate :: Readable for PWREN_SPEC { } # [doc = "`write(|w| ..)` method takes [`pwren::W`](W) writer structure"]
impl crate :: Writable for PWREN_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PWREN to value 0"]
impl crate :: Resettable for PWREN_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RSTCTL (w) register accessor: Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rstctl`]
module"]
pub type RSTCTL = crate :: Reg < rstctl :: RSTCTL_SPEC > ; # [doc = "Reset Control"]
pub mod rstctl { # [doc = "Register `RSTCTL` writer"]
pub type W = crate :: W < RSTCTL_SPEC > ; # [doc = "Assert reset to the peripheral\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETASSERT_AW { # [doc = "0: NOP"]
RSTCTL_RESETASSERT_NOP = 0 , # [doc = "1: ASSERT"]
RSTCTL_RESETASSERT_ASSERT = 1 , } impl From < RSTCTL_RESETASSERT_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETASSERT_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETASSERT` writer - Assert reset to the peripheral"]
pub type RSTCTL_RESETASSERT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETASSERT_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETASSERT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetassert_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_NOP) } # [doc = "ASSERT"]
# [inline (always)]
pub fn rstctl_resetassert_assert (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETASSERT_AW :: RSTCTL_RESETASSERT_ASSERT) } } # [doc = "Clear the RESETSTKY bit in the STAT register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RSTCTL_RESETSTKYCLR_AW { # [doc = "0: NOP"]
RSTCTL_RESETSTKYCLR_NOP = 0 , # [doc = "1: CLR"]
RSTCTL_RESETSTKYCLR_CLR = 1 , } impl From < RSTCTL_RESETSTKYCLR_AW > for bool { # [inline (always)]
fn from (variant : RSTCTL_RESETSTKYCLR_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `RSTCTL_RESETSTKYCLR` writer - Clear the RESETSTKY bit in the STAT register"]
pub type RSTCTL_RESETSTKYCLR_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , RSTCTL_RESETSTKYCLR_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_RESETSTKYCLR_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOP"]
# [inline (always)]
pub fn rstctl_resetstkyclr_nop (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_NOP) } # [doc = "CLR"]
# [inline (always)]
pub fn rstctl_resetstkyclr_clr (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_RESETSTKYCLR_AW :: RSTCTL_RESETSTKYCLR_CLR) } } # [doc = "Unlock key\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum RSTCTL_KEY_AW { # [doc = "177: _TO_UNLOCK_W_"]
RSTCTL_KEY_UNLOCK_W = 177 , } impl From < RSTCTL_KEY_AW > for u8 { # [inline (always)]
fn from (variant : RSTCTL_KEY_AW) -> Self { variant as _ } } impl crate :: FieldSpec for RSTCTL_KEY_AW { type Ux = u8 ; } # [doc = "Field `RSTCTL_KEY` writer - Unlock key"]
pub type RSTCTL_KEY_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O , RSTCTL_KEY_AW > ; impl < 'a , REG , const O : u8 > RSTCTL_KEY_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_TO_UNLOCK_W_"]
# [inline (always)]
pub fn rstctl_key_unlock_w (self) -> & 'a mut crate :: W < REG > { self . variant (RSTCTL_KEY_AW :: RSTCTL_KEY_UNLOCK_W) } } impl W { # [doc = "Bit 0 - Assert reset to the peripheral"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetassert (& mut self) -> RSTCTL_RESETASSERT_W < RSTCTL_SPEC , 0 > { RSTCTL_RESETASSERT_W :: new (self) } # [doc = "Bit 1 - Clear the RESETSTKY bit in the STAT register"]
# [inline (always)]
# [must_use]
pub fn rstctl_resetstkyclr (& mut self) -> RSTCTL_RESETSTKYCLR_W < RSTCTL_SPEC , 1 > { RSTCTL_RESETSTKYCLR_W :: new (self) } # [doc = "Bits 24:31 - Unlock key"]
# [inline (always)]
# [must_use]
pub fn rstctl_key (& mut self) -> RSTCTL_KEY_W < RSTCTL_SPEC , 24 > { RSTCTL_KEY_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Reset Control\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`rstctl::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RSTCTL_SPEC ; impl crate :: RegisterSpec for RSTCTL_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`rstctl::W`](W) writer structure"]
impl crate :: Writable for RSTCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets RSTCTL to value 0"]
impl crate :: Resettable for RSTCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "STAT (r) register accessor: Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@stat`]
module"]
pub type STAT = crate :: Reg < stat :: STAT_SPEC > ; # [doc = "Status Register"]
pub mod stat { # [doc = "Register `STAT` reader"]
pub type R = crate :: R < STAT_SPEC > ; # [doc = "Field `STAT_RESETSTKY` reader - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
pub type STAT_RESETSTKY_R = crate :: BitReader < STAT_RESETSTKY_A > ; # [doc = "This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum STAT_RESETSTKY_A { # [doc = "0: NORES"]
STAT_RESETSTKY_NORES = 0 , # [doc = "1: RESET"]
STAT_RESETSTKY_RESET = 1 , } impl From < STAT_RESETSTKY_A > for bool { # [inline (always)]
fn from (variant : STAT_RESETSTKY_A) -> Self { variant as u8 != 0 } } impl STAT_RESETSTKY_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> STAT_RESETSTKY_A { match self . bits { false => STAT_RESETSTKY_A :: STAT_RESETSTKY_NORES , true => STAT_RESETSTKY_A :: STAT_RESETSTKY_RESET , } } # [doc = "NORES"]
# [inline (always)]
pub fn is_stat_resetstky_nores (& self) -> bool { * self == STAT_RESETSTKY_A :: STAT_RESETSTKY_NORES } # [doc = "RESET"]
# [inline (always)]
pub fn is_stat_resetstky_reset (& self) -> bool { * self == STAT_RESETSTKY_A :: STAT_RESETSTKY_RESET } } impl R { # [doc = "Bit 16 - This bit indicates, if the peripheral was reset, since this bit was cleared by RESETSTKYCLR in the RSTCTL register"]
# [inline (always)]
pub fn stat_resetstky (& self) -> STAT_RESETSTKY_R { STAT_RESETSTKY_R :: new (((self . bits >> 16) & 1) != 0) } } # [doc = "Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`stat::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct STAT_SPEC ; impl crate :: RegisterSpec for STAT_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`stat::R`](R) reader structure"]
impl crate :: Readable for STAT_SPEC { } # [doc = "`reset()` method sets STAT to value 0"]
impl crate :: Resettable for STAT_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CLKDIV (rw) register accessor: Clock Divider\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkdiv::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkdiv::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clkdiv`]
module"]
pub type CLKDIV = crate :: Reg < clkdiv :: CLKDIV_SPEC > ; # [doc = "Clock Divider"]
pub mod clkdiv { # [doc = "Register `CLKDIV` reader"]
pub type R = crate :: R < CLKDIV_SPEC > ; # [doc = "Register `CLKDIV` writer"]
pub type W = crate :: W < CLKDIV_SPEC > ; # [doc = "Field `CLKDIV_RATIO` reader - Selects divide ratio of module clock"]
pub type CLKDIV_RATIO_R = crate :: FieldReader < CLKDIV_RATIO_A > ; # [doc = "Selects divide ratio of module clock\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CLKDIV_RATIO_A { # [doc = "0: DIV_BY_1"]
CLKDIV_RATIO_DIV_BY_1 = 0 , # [doc = "1: DIV_BY_2"]
CLKDIV_RATIO_DIV_BY_2 = 1 , # [doc = "2: DIV_BY_3"]
CLKDIV_RATIO_DIV_BY_3 = 2 , # [doc = "3: DIV_BY_4"]
CLKDIV_RATIO_DIV_BY_4 = 3 , # [doc = "4: DIV_BY_5"]
CLKDIV_RATIO_DIV_BY_5 = 4 , # [doc = "5: DIV_BY_6"]
CLKDIV_RATIO_DIV_BY_6 = 5 , # [doc = "6: DIV_BY_7"]
CLKDIV_RATIO_DIV_BY_7 = 6 , # [doc = "7: DIV_BY_8"]
CLKDIV_RATIO_DIV_BY_8 = 7 , } impl From < CLKDIV_RATIO_A > for u8 { # [inline (always)]
fn from (variant : CLKDIV_RATIO_A) -> Self { variant as _ } } impl crate :: FieldSpec for CLKDIV_RATIO_A { type Ux = u8 ; } impl CLKDIV_RATIO_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKDIV_RATIO_A { match self . bits { 0 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_1 , 1 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_2 , 2 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_3 , 3 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_4 , 4 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_5 , 5 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_6 , 6 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_7 , 7 => CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_8 , _ => unreachable ! () , } } # [doc = "DIV_BY_1"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_1 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_1 } # [doc = "DIV_BY_2"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_2 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_2 } # [doc = "DIV_BY_3"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_3 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_3 } # [doc = "DIV_BY_4"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_4 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_4 } # [doc = "DIV_BY_5"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_5 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_5 } # [doc = "DIV_BY_6"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_6 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_6 } # [doc = "DIV_BY_7"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_7 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_7 } # [doc = "DIV_BY_8"]
# [inline (always)]
pub fn is_clkdiv_ratio_div_by_8 (& self) -> bool { * self == CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_8 } } # [doc = "Field `CLKDIV_RATIO` writer - Selects divide ratio of module clock"]
pub type CLKDIV_RATIO_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 3 , O , CLKDIV_RATIO_A > ; impl < 'a , REG , const O : u8 > CLKDIV_RATIO_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DIV_BY_1"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_1 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_1) } # [doc = "DIV_BY_2"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_2 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_2) } # [doc = "DIV_BY_3"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_3 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_3) } # [doc = "DIV_BY_4"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_4 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_4) } # [doc = "DIV_BY_5"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_5 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_5) } # [doc = "DIV_BY_6"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_6 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_6) } # [doc = "DIV_BY_7"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_7 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_7) } # [doc = "DIV_BY_8"]
# [inline (always)]
pub fn clkdiv_ratio_div_by_8 (self) -> & 'a mut crate :: W < REG > { self . variant (CLKDIV_RATIO_A :: CLKDIV_RATIO_DIV_BY_8) } } impl R { # [doc = "Bits 0:2 - Selects divide ratio of module clock"]
# [inline (always)]
pub fn clkdiv_ratio (& self) -> CLKDIV_RATIO_R { CLKDIV_RATIO_R :: new ((self . bits & 7) as u8) } } impl W { # [doc = "Bits 0:2 - Selects divide ratio of module clock"]
# [inline (always)]
# [must_use]
pub fn clkdiv_ratio (& mut self) -> CLKDIV_RATIO_W < CLKDIV_SPEC , 0 > { CLKDIV_RATIO_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Clock Divider\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clkdiv::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clkdiv::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CLKDIV_SPEC ; impl crate :: RegisterSpec for CLKDIV_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`clkdiv::R`](R) reader structure"]
impl crate :: Readable for CLKDIV_SPEC { } # [doc = "`write(|w| ..)` method takes [`clkdiv::W`](W) writer structure"]
impl crate :: Writable for CLKDIV_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CLKDIV to value 0"]
impl crate :: Resettable for CLKDIV_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CLKSEL (rw) register accessor: Clock Select for Ultra Low Power peripherals\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clksel::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clksel::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clksel`]
module"]
pub type CLKSEL = crate :: Reg < clksel :: CLKSEL_SPEC > ; # [doc = "Clock Select for Ultra Low Power peripherals"]
pub mod clksel { # [doc = "Register `CLKSEL` reader"]
pub type R = crate :: R < CLKSEL_SPEC > ; # [doc = "Register `CLKSEL` writer"]
pub type W = crate :: W < CLKSEL_SPEC > ; # [doc = "Field `CLKSEL_LFCLK_SEL` reader - Selects LFCLK as clock source if enabled"]
pub type CLKSEL_LFCLK_SEL_R = crate :: BitReader < CLKSEL_LFCLK_SEL_A > ; # [doc = "Selects LFCLK as clock source if enabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKSEL_LFCLK_SEL_A { # [doc = "0: DISABLE"]
CLKSEL_LFCLK_SEL_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKSEL_LFCLK_SEL_ENABLE = 1 , } impl From < CLKSEL_LFCLK_SEL_A > for bool { # [inline (always)]
fn from (variant : CLKSEL_LFCLK_SEL_A) -> Self { variant as u8 != 0 } } impl CLKSEL_LFCLK_SEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKSEL_LFCLK_SEL_A { match self . bits { false => CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_DISABLE , true => CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clksel_lfclk_sel_disable (& self) -> bool { * self == CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clksel_lfclk_sel_enable (& self) -> bool { * self == CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_ENABLE } } # [doc = "Field `CLKSEL_LFCLK_SEL` writer - Selects LFCLK as clock source if enabled"]
pub type CLKSEL_LFCLK_SEL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKSEL_LFCLK_SEL_A > ; impl < 'a , REG , const O : u8 > CLKSEL_LFCLK_SEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clksel_lfclk_sel_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clksel_lfclk_sel_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_LFCLK_SEL_A :: CLKSEL_LFCLK_SEL_ENABLE) } } # [doc = "Field `CLKSEL_MFCLK_SEL` reader - Selects MFCLK as clock source if enabled"]
pub type CLKSEL_MFCLK_SEL_R = crate :: BitReader < CLKSEL_MFCLK_SEL_A > ; # [doc = "Selects MFCLK as clock source if enabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKSEL_MFCLK_SEL_A { # [doc = "0: DISABLE"]
CLKSEL_MFCLK_SEL_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKSEL_MFCLK_SEL_ENABLE = 1 , } impl From < CLKSEL_MFCLK_SEL_A > for bool { # [inline (always)]
fn from (variant : CLKSEL_MFCLK_SEL_A) -> Self { variant as u8 != 0 } } impl CLKSEL_MFCLK_SEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKSEL_MFCLK_SEL_A { match self . bits { false => CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_DISABLE , true => CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clksel_mfclk_sel_disable (& self) -> bool { * self == CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clksel_mfclk_sel_enable (& self) -> bool { * self == CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_ENABLE } } # [doc = "Field `CLKSEL_MFCLK_SEL` writer - Selects MFCLK as clock source if enabled"]
pub type CLKSEL_MFCLK_SEL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKSEL_MFCLK_SEL_A > ; impl < 'a , REG , const O : u8 > CLKSEL_MFCLK_SEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clksel_mfclk_sel_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clksel_mfclk_sel_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_MFCLK_SEL_A :: CLKSEL_MFCLK_SEL_ENABLE) } } # [doc = "Field `CLKSEL_BUSCLK_SEL` reader - Selects BUSCLK as clock source if enabled"]
pub type CLKSEL_BUSCLK_SEL_R = crate :: BitReader < CLKSEL_BUSCLK_SEL_A > ; # [doc = "Selects BUSCLK as clock source if enabled\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CLKSEL_BUSCLK_SEL_A { # [doc = "0: DISABLE"]
CLKSEL_BUSCLK_SEL_DISABLE = 0 , # [doc = "1: ENABLE"]
CLKSEL_BUSCLK_SEL_ENABLE = 1 , } impl From < CLKSEL_BUSCLK_SEL_A > for bool { # [inline (always)]
fn from (variant : CLKSEL_BUSCLK_SEL_A) -> Self { variant as u8 != 0 } } impl CLKSEL_BUSCLK_SEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CLKSEL_BUSCLK_SEL_A { match self . bits { false => CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_DISABLE , true => CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_ENABLE , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_clksel_busclk_sel_disable (& self) -> bool { * self == CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_DISABLE } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_clksel_busclk_sel_enable (& self) -> bool { * self == CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_ENABLE } } # [doc = "Field `CLKSEL_BUSCLK_SEL` writer - Selects BUSCLK as clock source if enabled"]
pub type CLKSEL_BUSCLK_SEL_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CLKSEL_BUSCLK_SEL_A > ; impl < 'a , REG , const O : u8 > CLKSEL_BUSCLK_SEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLE"]
# [inline (always)]
pub fn clksel_busclk_sel_disable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_DISABLE) } # [doc = "ENABLE"]
# [inline (always)]
pub fn clksel_busclk_sel_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CLKSEL_BUSCLK_SEL_A :: CLKSEL_BUSCLK_SEL_ENABLE) } } impl R { # [doc = "Bit 1 - Selects LFCLK as clock source if enabled"]
# [inline (always)]
pub fn clksel_lfclk_sel (& self) -> CLKSEL_LFCLK_SEL_R { CLKSEL_LFCLK_SEL_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 2 - Selects MFCLK as clock source if enabled"]
# [inline (always)]
pub fn clksel_mfclk_sel (& self) -> CLKSEL_MFCLK_SEL_R { CLKSEL_MFCLK_SEL_R :: new (((self . bits >> 2) & 1) != 0) } # [doc = "Bit 3 - Selects BUSCLK as clock source if enabled"]
# [inline (always)]
pub fn clksel_busclk_sel (& self) -> CLKSEL_BUSCLK_SEL_R { CLKSEL_BUSCLK_SEL_R :: new (((self . bits >> 3) & 1) != 0) } } impl W { # [doc = "Bit 1 - Selects LFCLK as clock source if enabled"]
# [inline (always)]
# [must_use]
pub fn clksel_lfclk_sel (& mut self) -> CLKSEL_LFCLK_SEL_W < CLKSEL_SPEC , 1 > { CLKSEL_LFCLK_SEL_W :: new (self) } # [doc = "Bit 2 - Selects MFCLK as clock source if enabled"]
# [inline (always)]
# [must_use]
pub fn clksel_mfclk_sel (& mut self) -> CLKSEL_MFCLK_SEL_W < CLKSEL_SPEC , 2 > { CLKSEL_MFCLK_SEL_W :: new (self) } # [doc = "Bit 3 - Selects BUSCLK as clock source if enabled"]
# [inline (always)]
# [must_use]
pub fn clksel_busclk_sel (& mut self) -> CLKSEL_BUSCLK_SEL_W < CLKSEL_SPEC , 3 > { CLKSEL_BUSCLK_SEL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Clock Select for Ultra Low Power peripherals\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`clksel::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`clksel::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CLKSEL_SPEC ; impl crate :: RegisterSpec for CLKSEL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`clksel::R`](R) reader structure"]
impl crate :: Readable for CLKSEL_SPEC { } # [doc = "`write(|w| ..)` method takes [`clksel::W`](W) writer structure"]
impl crate :: Writable for CLKSEL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CLKSEL to value 0"]
impl crate :: Resettable for CLKSEL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "PDBGCTL (rw) register accessor: Peripheral Debug Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pdbgctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pdbgctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pdbgctl`]
module"]
pub type PDBGCTL = crate :: Reg < pdbgctl :: PDBGCTL_SPEC > ; # [doc = "Peripheral Debug Control"]
pub mod pdbgctl { # [doc = "Register `PDBGCTL` reader"]
pub type R = crate :: R < PDBGCTL_SPEC > ; # [doc = "Register `PDBGCTL` writer"]
pub type W = crate :: W < PDBGCTL_SPEC > ; # [doc = "Field `PDBGCTL_FREE` reader - Free run control"]
pub type PDBGCTL_FREE_R = crate :: BitReader < PDBGCTL_FREE_A > ; # [doc = "Free run control\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PDBGCTL_FREE_A { # [doc = "0: STOP"]
PDBGCTL_FREE_STOP = 0 , # [doc = "1: RUN"]
PDBGCTL_FREE_RUN = 1 , } impl From < PDBGCTL_FREE_A > for bool { # [inline (always)]
fn from (variant : PDBGCTL_FREE_A) -> Self { variant as u8 != 0 } } impl PDBGCTL_FREE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PDBGCTL_FREE_A { match self . bits { false => PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP , true => PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN , } } # [doc = "STOP"]
# [inline (always)]
pub fn is_pdbgctl_free_stop (& self) -> bool { * self == PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP } # [doc = "RUN"]
# [inline (always)]
pub fn is_pdbgctl_free_run (& self) -> bool { * self == PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN } } # [doc = "Field `PDBGCTL_FREE` writer - Free run control"]
pub type PDBGCTL_FREE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PDBGCTL_FREE_A > ; impl < 'a , REG , const O : u8 > PDBGCTL_FREE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "STOP"]
# [inline (always)]
pub fn pdbgctl_free_stop (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_FREE_A :: PDBGCTL_FREE_STOP) } # [doc = "RUN"]
# [inline (always)]
pub fn pdbgctl_free_run (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_FREE_A :: PDBGCTL_FREE_RUN) } } # [doc = "Field `PDBGCTL_SOFT` reader - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
pub type PDBGCTL_SOFT_R = crate :: BitReader < PDBGCTL_SOFT_A > ; # [doc = "Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum PDBGCTL_SOFT_A { # [doc = "0: IMMEDIATE"]
PDBGCTL_SOFT_IMMEDIATE = 0 , # [doc = "1: DELAYED"]
PDBGCTL_SOFT_DELAYED = 1 , } impl From < PDBGCTL_SOFT_A > for bool { # [inline (always)]
fn from (variant : PDBGCTL_SOFT_A) -> Self { variant as u8 != 0 } } impl PDBGCTL_SOFT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> PDBGCTL_SOFT_A { match self . bits { false => PDBGCTL_SOFT_A :: PDBGCTL_SOFT_IMMEDIATE , true => PDBGCTL_SOFT_A :: PDBGCTL_SOFT_DELAYED , } } # [doc = "IMMEDIATE"]
# [inline (always)]
pub fn is_pdbgctl_soft_immediate (& self) -> bool { * self == PDBGCTL_SOFT_A :: PDBGCTL_SOFT_IMMEDIATE } # [doc = "DELAYED"]
# [inline (always)]
pub fn is_pdbgctl_soft_delayed (& self) -> bool { * self == PDBGCTL_SOFT_A :: PDBGCTL_SOFT_DELAYED } } # [doc = "Field `PDBGCTL_SOFT` writer - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
pub type PDBGCTL_SOFT_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , PDBGCTL_SOFT_A > ; impl < 'a , REG , const O : u8 > PDBGCTL_SOFT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "IMMEDIATE"]
# [inline (always)]
pub fn pdbgctl_soft_immediate (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_SOFT_A :: PDBGCTL_SOFT_IMMEDIATE) } # [doc = "DELAYED"]
# [inline (always)]
pub fn pdbgctl_soft_delayed (self) -> & 'a mut crate :: W < REG > { self . variant (PDBGCTL_SOFT_A :: PDBGCTL_SOFT_DELAYED) } } impl R { # [doc = "Bit 0 - Free run control"]
# [inline (always)]
pub fn pdbgctl_free (& self) -> PDBGCTL_FREE_R { PDBGCTL_FREE_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
# [inline (always)]
pub fn pdbgctl_soft (& self) -> PDBGCTL_SOFT_R { PDBGCTL_SOFT_R :: new (((self . bits >> 1) & 1) != 0) } } impl W { # [doc = "Bit 0 - Free run control"]
# [inline (always)]
# [must_use]
pub fn pdbgctl_free (& mut self) -> PDBGCTL_FREE_W < PDBGCTL_SPEC , 0 > { PDBGCTL_FREE_W :: new (self) } # [doc = "Bit 1 - Soft halt boundary control. This function is only available, if \\[FREE\\]
is set to 'STOP'"]
# [inline (always)]
# [must_use]
pub fn pdbgctl_soft (& mut self) -> PDBGCTL_SOFT_W < PDBGCTL_SPEC , 1 > { PDBGCTL_SOFT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Peripheral Debug Control\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pdbgctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pdbgctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PDBGCTL_SPEC ; impl crate :: RegisterSpec for PDBGCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`pdbgctl::R`](R) reader structure"]
impl crate :: Readable for PDBGCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`pdbgctl::W`](W) writer structure"]
impl crate :: Writable for PDBGCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets PDBGCTL to value 0"]
impl crate :: Resettable for PDBGCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "IIDX (r) register accessor: Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`iidx::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@iidx`]
module"]
pub type IIDX = crate :: Reg < iidx :: IIDX_SPEC > ; # [doc = "Interrupt index"]
pub mod iidx { # [doc = "Register `IIDX` reader"]
pub type R = crate :: R < IIDX_SPEC > ; # [doc = "Field `IIDX_STAT` reader - Interrupt index status"]
pub type IIDX_STAT_R = crate :: FieldReader < IIDX_STAT_A > ; # [doc = "Interrupt index status\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum IIDX_STAT_A { # [doc = "0: NO_INTR"]
IIDX_STAT_NO_INTR = 0 , # [doc = "1: Z"]
IIDX_STAT_Z = 1 , # [doc = "2: L"]
IIDX_STAT_L = 2 , # [doc = "5: CCD0"]
IIDX_STAT_CCD0 = 5 , # [doc = "6: CCD1"]
IIDX_STAT_CCD1 = 6 , # [doc = "7: CCD2"]
IIDX_STAT_CCD2 = 7 , # [doc = "8: CCD3"]
IIDX_STAT_CCD3 = 8 , # [doc = "9: CCU0"]
IIDX_STAT_CCU0 = 9 , # [doc = "10: CCU1"]
IIDX_STAT_CCU1 = 10 , # [doc = "11: CCU2"]
IIDX_STAT_CCU2 = 11 , # [doc = "12: CCU3"]
IIDX_STAT_CCU3 = 12 , # [doc = "13: CCD4"]
IIDX_STAT_CCD4 = 13 , # [doc = "14: CCD5"]
IIDX_STAT_CCD5 = 14 , # [doc = "15: CCU4"]
IIDX_STAT_CCU4 = 15 , # [doc = "16: CCU5"]
IIDX_STAT_CCU5 = 16 , # [doc = "25: F"]
IIDX_STAT_F = 25 , # [doc = "26: TOV"]
IIDX_STAT_TOV = 26 , # [doc = "27: REPC"]
IIDX_STAT_REPC = 27 , # [doc = "28: DC"]
IIDX_STAT_DC = 28 , # [doc = "29: QEIERR"]
IIDX_STAT_QEIERR = 29 , } impl From < IIDX_STAT_A > for u8 { # [inline (always)]
fn from (variant : IIDX_STAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for IIDX_STAT_A { type Ux = u8 ; } impl IIDX_STAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < IIDX_STAT_A > { match self . bits { 0 => Some (IIDX_STAT_A :: IIDX_STAT_NO_INTR) , 1 => Some (IIDX_STAT_A :: IIDX_STAT_Z) , 2 => Some (IIDX_STAT_A :: IIDX_STAT_L) , 5 => Some (IIDX_STAT_A :: IIDX_STAT_CCD0) , 6 => Some (IIDX_STAT_A :: IIDX_STAT_CCD1) , 7 => Some (IIDX_STAT_A :: IIDX_STAT_CCD2) , 8 => Some (IIDX_STAT_A :: IIDX_STAT_CCD3) , 9 => Some (IIDX_STAT_A :: IIDX_STAT_CCU0) , 10 => Some (IIDX_STAT_A :: IIDX_STAT_CCU1) , 11 => Some (IIDX_STAT_A :: IIDX_STAT_CCU2) , 12 => Some (IIDX_STAT_A :: IIDX_STAT_CCU3) , 13 => Some (IIDX_STAT_A :: IIDX_STAT_CCD4) , 14 => Some (IIDX_STAT_A :: IIDX_STAT_CCD5) , 15 => Some (IIDX_STAT_A :: IIDX_STAT_CCU4) , 16 => Some (IIDX_STAT_A :: IIDX_STAT_CCU5) , 25 => Some (IIDX_STAT_A :: IIDX_STAT_F) , 26 => Some (IIDX_STAT_A :: IIDX_STAT_TOV) , 27 => Some (IIDX_STAT_A :: IIDX_STAT_REPC) , 28 => Some (IIDX_STAT_A :: IIDX_STAT_DC) , 29 => Some (IIDX_STAT_A :: IIDX_STAT_QEIERR) , _ => None , } } # [doc = "NO_INTR"]
# [inline (always)]
pub fn is_iidx_stat_no_intr (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_NO_INTR } # [doc = "Z"]
# [inline (always)]
pub fn is_iidx_stat_z (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_Z } # [doc = "L"]
# [inline (always)]
pub fn is_iidx_stat_l (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_L } # [doc = "CCD0"]
# [inline (always)]
pub fn is_iidx_stat_ccd0 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCD0 } # [doc = "CCD1"]
# [inline (always)]
pub fn is_iidx_stat_ccd1 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCD1 } # [doc = "CCD2"]
# [inline (always)]
pub fn is_iidx_stat_ccd2 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCD2 } # [doc = "CCD3"]
# [inline (always)]
pub fn is_iidx_stat_ccd3 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCD3 } # [doc = "CCU0"]
# [inline (always)]
pub fn is_iidx_stat_ccu0 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCU0 } # [doc = "CCU1"]
# [inline (always)]
pub fn is_iidx_stat_ccu1 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCU1 } # [doc = "CCU2"]
# [inline (always)]
pub fn is_iidx_stat_ccu2 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCU2 } # [doc = "CCU3"]
# [inline (always)]
pub fn is_iidx_stat_ccu3 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCU3 } # [doc = "CCD4"]
# [inline (always)]
pub fn is_iidx_stat_ccd4 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCD4 } # [doc = "CCD5"]
# [inline (always)]
pub fn is_iidx_stat_ccd5 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCD5 } # [doc = "CCU4"]
# [inline (always)]
pub fn is_iidx_stat_ccu4 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCU4 } # [doc = "CCU5"]
# [inline (always)]
pub fn is_iidx_stat_ccu5 (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_CCU5 } # [doc = "F"]
# [inline (always)]
pub fn is_iidx_stat_f (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_F } # [doc = "TOV"]
# [inline (always)]
pub fn is_iidx_stat_tov (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_TOV } # [doc = "REPC"]
# [inline (always)]
pub fn is_iidx_stat_repc (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_REPC } # [doc = "DC"]
# [inline (always)]
pub fn is_iidx_stat_dc (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_DC } # [doc = "QEIERR"]
# [inline (always)]
pub fn is_iidx_stat_qeierr (& self) -> bool { * self == IIDX_STAT_A :: IIDX_STAT_QEIERR } } impl R { # [doc = "Bits 0:7 - Interrupt index status"]
# [inline (always)]
pub fn iidx_stat (& self) -> IIDX_STAT_R { IIDX_STAT_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Interrupt index\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`iidx::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IIDX_SPEC ; impl crate :: RegisterSpec for IIDX_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`iidx::R`](R) reader structure"]
impl crate :: Readable for IIDX_SPEC { } # [doc = "`reset()` method sets IIDX to value 0"]
impl crate :: Resettable for IIDX_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "IMASK (rw) register accessor: Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`imask::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`imask::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@imask`]
module"]
pub type IMASK = crate :: Reg < imask :: IMASK_SPEC > ; # [doc = "Interrupt mask"]
pub mod imask { # [doc = "Register `IMASK` reader"]
pub type R = crate :: R < IMASK_SPEC > ; # [doc = "Register `IMASK` writer"]
pub type W = crate :: W < IMASK_SPEC > ; # [doc = "Field `IMASK_Z` reader - Zero Event mask"]
pub type IMASK_Z_R = crate :: BitReader < IMASK_Z_A > ; # [doc = "Zero Event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_Z_A { # [doc = "0: CLR"]
IMASK_Z_CLR = 0 , # [doc = "1: SET"]
IMASK_Z_SET = 1 , } impl From < IMASK_Z_A > for bool { # [inline (always)]
fn from (variant : IMASK_Z_A) -> Self { variant as u8 != 0 } } impl IMASK_Z_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_Z_A { match self . bits { false => IMASK_Z_A :: IMASK_Z_CLR , true => IMASK_Z_A :: IMASK_Z_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_z_clr (& self) -> bool { * self == IMASK_Z_A :: IMASK_Z_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_z_set (& self) -> bool { * self == IMASK_Z_A :: IMASK_Z_SET } } # [doc = "Field `IMASK_Z` writer - Zero Event mask"]
pub type IMASK_Z_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_Z_A > ; impl < 'a , REG , const O : u8 > IMASK_Z_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_z_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_Z_A :: IMASK_Z_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_z_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_Z_A :: IMASK_Z_SET) } } # [doc = "Field `IMASK_L` reader - Load Event mask"]
pub type IMASK_L_R = crate :: BitReader < IMASK_L_A > ; # [doc = "Load Event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_L_A { # [doc = "0: CLR"]
IMASK_L_CLR = 0 , # [doc = "1: SET"]
IMASK_L_SET = 1 , } impl From < IMASK_L_A > for bool { # [inline (always)]
fn from (variant : IMASK_L_A) -> Self { variant as u8 != 0 } } impl IMASK_L_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_L_A { match self . bits { false => IMASK_L_A :: IMASK_L_CLR , true => IMASK_L_A :: IMASK_L_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_l_clr (& self) -> bool { * self == IMASK_L_A :: IMASK_L_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_l_set (& self) -> bool { * self == IMASK_L_A :: IMASK_L_SET } } # [doc = "Field `IMASK_L` writer - Load Event mask"]
pub type IMASK_L_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_L_A > ; impl < 'a , REG , const O : u8 > IMASK_L_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_l_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_L_A :: IMASK_L_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_l_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_L_A :: IMASK_L_SET) } } # [doc = "Field `IMASK_CCD0` reader - Capture or Compare DN event mask CCP0"]
pub type IMASK_CCD0_R = crate :: BitReader < IMASK_CCD0_A > ; # [doc = "Capture or Compare DN event mask CCP0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_CCD0_A { # [doc = "0: CLR"]
IMASK_CCD0_CLR = 0 , # [doc = "1: SET"]
IMASK_CCD0_SET = 1 , } impl From < IMASK_CCD0_A > for bool { # [inline (always)]
fn from (variant : IMASK_CCD0_A) -> Self { variant as u8 != 0 } } impl IMASK_CCD0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_CCD0_A { match self . bits { false => IMASK_CCD0_A :: IMASK_CCD0_CLR , true => IMASK_CCD0_A :: IMASK_CCD0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_ccd0_clr (& self) -> bool { * self == IMASK_CCD0_A :: IMASK_CCD0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_ccd0_set (& self) -> bool { * self == IMASK_CCD0_A :: IMASK_CCD0_SET } } # [doc = "Field `IMASK_CCD0` writer - Capture or Compare DN event mask CCP0"]
pub type IMASK_CCD0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_CCD0_A > ; impl < 'a , REG , const O : u8 > IMASK_CCD0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_ccd0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_CCD0_A :: IMASK_CCD0_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_ccd0_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_CCD0_A :: IMASK_CCD0_SET) } } # [doc = "Field `IMASK_CCD1` reader - Capture or Compare DN event mask CCP1"]
pub type IMASK_CCD1_R = crate :: BitReader < IMASK_CCD1_A > ; # [doc = "Capture or Compare DN event mask CCP1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_CCD1_A { # [doc = "0: CLR"]
IMASK_CCD1_CLR = 0 , # [doc = "1: SET"]
IMASK_CCD1_SET = 1 , } impl From < IMASK_CCD1_A > for bool { # [inline (always)]
fn from (variant : IMASK_CCD1_A) -> Self { variant as u8 != 0 } } impl IMASK_CCD1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_CCD1_A { match self . bits { false => IMASK_CCD1_A :: IMASK_CCD1_CLR , true => IMASK_CCD1_A :: IMASK_CCD1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_ccd1_clr (& self) -> bool { * self == IMASK_CCD1_A :: IMASK_CCD1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_ccd1_set (& self) -> bool { * self == IMASK_CCD1_A :: IMASK_CCD1_SET } } # [doc = "Field `IMASK_CCD1` writer - Capture or Compare DN event mask CCP1"]
pub type IMASK_CCD1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_CCD1_A > ; impl < 'a , REG , const O : u8 > IMASK_CCD1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_ccd1_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_CCD1_A :: IMASK_CCD1_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_ccd1_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_CCD1_A :: IMASK_CCD1_SET) } } # [doc = "Field `IMASK_CCU0` reader - Capture or Compare UP event mask CCP0"]
pub type IMASK_CCU0_R = crate :: BitReader < IMASK_CCU0_A > ; # [doc = "Capture or Compare UP event mask CCP0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_CCU0_A { # [doc = "0: CLR"]
IMASK_CCU0_CLR = 0 , # [doc = "1: SET"]
IMASK_CCU0_SET = 1 , } impl From < IMASK_CCU0_A > for bool { # [inline (always)]
fn from (variant : IMASK_CCU0_A) -> Self { variant as u8 != 0 } } impl IMASK_CCU0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_CCU0_A { match self . bits { false => IMASK_CCU0_A :: IMASK_CCU0_CLR , true => IMASK_CCU0_A :: IMASK_CCU0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_ccu0_clr (& self) -> bool { * self == IMASK_CCU0_A :: IMASK_CCU0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_ccu0_set (& self) -> bool { * self == IMASK_CCU0_A :: IMASK_CCU0_SET } } # [doc = "Field `IMASK_CCU0` writer - Capture or Compare UP event mask CCP0"]
pub type IMASK_CCU0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_CCU0_A > ; impl < 'a , REG , const O : u8 > IMASK_CCU0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_ccu0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_CCU0_A :: IMASK_CCU0_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_ccu0_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_CCU0_A :: IMASK_CCU0_SET) } } # [doc = "Field `IMASK_CCU1` reader - Capture or Compare UP event mask CCP1"]
pub type IMASK_CCU1_R = crate :: BitReader < IMASK_CCU1_A > ; # [doc = "Capture or Compare UP event mask CCP1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_CCU1_A { # [doc = "0: CLR"]
IMASK_CCU1_CLR = 0 , # [doc = "1: SET"]
IMASK_CCU1_SET = 1 , } impl From < IMASK_CCU1_A > for bool { # [inline (always)]
fn from (variant : IMASK_CCU1_A) -> Self { variant as u8 != 0 } } impl IMASK_CCU1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_CCU1_A { match self . bits { false => IMASK_CCU1_A :: IMASK_CCU1_CLR , true => IMASK_CCU1_A :: IMASK_CCU1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_ccu1_clr (& self) -> bool { * self == IMASK_CCU1_A :: IMASK_CCU1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_ccu1_set (& self) -> bool { * self == IMASK_CCU1_A :: IMASK_CCU1_SET } } # [doc = "Field `IMASK_CCU1` writer - Capture or Compare UP event mask CCP1"]
pub type IMASK_CCU1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_CCU1_A > ; impl < 'a , REG , const O : u8 > IMASK_CCU1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_ccu1_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_CCU1_A :: IMASK_CCU1_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_ccu1_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_CCU1_A :: IMASK_CCU1_SET) } } # [doc = "Field `IMASK_TOV` reader - Trigger Overflow Event mask"]
pub type IMASK_TOV_R = crate :: BitReader < IMASK_TOV_A > ; # [doc = "Trigger Overflow Event mask\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IMASK_TOV_A { # [doc = "0: CLR"]
IMASK_TOV_CLR = 0 , # [doc = "1: SET"]
IMASK_TOV_SET = 1 , } impl From < IMASK_TOV_A > for bool { # [inline (always)]
fn from (variant : IMASK_TOV_A) -> Self { variant as u8 != 0 } } impl IMASK_TOV_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IMASK_TOV_A { match self . bits { false => IMASK_TOV_A :: IMASK_TOV_CLR , true => IMASK_TOV_A :: IMASK_TOV_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_imask_tov_clr (& self) -> bool { * self == IMASK_TOV_A :: IMASK_TOV_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_imask_tov_set (& self) -> bool { * self == IMASK_TOV_A :: IMASK_TOV_SET } } # [doc = "Field `IMASK_TOV` writer - Trigger Overflow Event mask"]
pub type IMASK_TOV_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IMASK_TOV_A > ; impl < 'a , REG , const O : u8 > IMASK_TOV_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CLR"]
# [inline (always)]
pub fn imask_tov_clr (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_TOV_A :: IMASK_TOV_CLR) } # [doc = "SET"]
# [inline (always)]
pub fn imask_tov_set (self) -> & 'a mut crate :: W < REG > { self . variant (IMASK_TOV_A :: IMASK_TOV_SET) } } impl R { # [doc = "Bit 0 - Zero Event mask"]
# [inline (always)]
pub fn imask_z (& self) -> IMASK_Z_R { IMASK_Z_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Load Event mask"]
# [inline (always)]
pub fn imask_l (& self) -> IMASK_L_R { IMASK_L_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 4 - Capture or Compare DN event mask CCP0"]
# [inline (always)]
pub fn imask_ccd0 (& self) -> IMASK_CCD0_R { IMASK_CCD0_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Capture or Compare DN event mask CCP1"]
# [inline (always)]
pub fn imask_ccd1 (& self) -> IMASK_CCD1_R { IMASK_CCD1_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 8 - Capture or Compare UP event mask CCP0"]
# [inline (always)]
pub fn imask_ccu0 (& self) -> IMASK_CCU0_R { IMASK_CCU0_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - Capture or Compare UP event mask CCP1"]
# [inline (always)]
pub fn imask_ccu1 (& self) -> IMASK_CCU1_R { IMASK_CCU1_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 25 - Trigger Overflow Event mask"]
# [inline (always)]
pub fn imask_tov (& self) -> IMASK_TOV_R { IMASK_TOV_R :: new (((self . bits >> 25) & 1) != 0) } } impl W { # [doc = "Bit 0 - Zero Event mask"]
# [inline (always)]
# [must_use]
pub fn imask_z (& mut self) -> IMASK_Z_W < IMASK_SPEC , 0 > { IMASK_Z_W :: new (self) } # [doc = "Bit 1 - Load Event mask"]
# [inline (always)]
# [must_use]
pub fn imask_l (& mut self) -> IMASK_L_W < IMASK_SPEC , 1 > { IMASK_L_W :: new (self) } # [doc = "Bit 4 - Capture or Compare DN event mask CCP0"]
# [inline (always)]
# [must_use]
pub fn imask_ccd0 (& mut self) -> IMASK_CCD0_W < IMASK_SPEC , 4 > { IMASK_CCD0_W :: new (self) } # [doc = "Bit 5 - Capture or Compare DN event mask CCP1"]
# [inline (always)]
# [must_use]
pub fn imask_ccd1 (& mut self) -> IMASK_CCD1_W < IMASK_SPEC , 5 > { IMASK_CCD1_W :: new (self) } # [doc = "Bit 8 - Capture or Compare UP event mask CCP0"]
# [inline (always)]
# [must_use]
pub fn imask_ccu0 (& mut self) -> IMASK_CCU0_W < IMASK_SPEC , 8 > { IMASK_CCU0_W :: new (self) } # [doc = "Bit 9 - Capture or Compare UP event mask CCP1"]
# [inline (always)]
# [must_use]
pub fn imask_ccu1 (& mut self) -> IMASK_CCU1_W < IMASK_SPEC , 9 > { IMASK_CCU1_W :: new (self) } # [doc = "Bit 25 - Trigger Overflow Event mask"]
# [inline (always)]
# [must_use]
pub fn imask_tov (& mut self) -> IMASK_TOV_W < IMASK_SPEC , 25 > { IMASK_TOV_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt mask\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`imask::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`imask::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IMASK_SPEC ; impl crate :: RegisterSpec for IMASK_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`imask::R`](R) reader structure"]
impl crate :: Readable for IMASK_SPEC { } # [doc = "`write(|w| ..)` method takes [`imask::W`](W) writer structure"]
impl crate :: Writable for IMASK_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets IMASK to value 0"]
impl crate :: Resettable for IMASK_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "RIS (r) register accessor: Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ris`]
module"]
pub type RIS = crate :: Reg < ris :: RIS_SPEC > ; # [doc = "Raw interrupt status"]
pub mod ris { # [doc = "Register `RIS` reader"]
pub type R = crate :: R < RIS_SPEC > ; # [doc = "Field `RIS_Z` reader - Zero event generated an interrupt."]
pub type RIS_Z_R = crate :: BitReader < RIS_Z_A > ; # [doc = "Zero event generated an interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_Z_A { # [doc = "0: CLR"]
RIS_Z_CLR = 0 , # [doc = "1: SET"]
RIS_Z_SET = 1 , } impl From < RIS_Z_A > for bool { # [inline (always)]
fn from (variant : RIS_Z_A) -> Self { variant as u8 != 0 } } impl RIS_Z_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_Z_A { match self . bits { false => RIS_Z_A :: RIS_Z_CLR , true => RIS_Z_A :: RIS_Z_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_z_clr (& self) -> bool { * self == RIS_Z_A :: RIS_Z_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_z_set (& self) -> bool { * self == RIS_Z_A :: RIS_Z_SET } } # [doc = "Field `RIS_L` reader - Load event generated an interrupt."]
pub type RIS_L_R = crate :: BitReader < RIS_L_A > ; # [doc = "Load event generated an interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_L_A { # [doc = "0: CLR"]
RIS_L_CLR = 0 , # [doc = "1: SET"]
RIS_L_SET = 1 , } impl From < RIS_L_A > for bool { # [inline (always)]
fn from (variant : RIS_L_A) -> Self { variant as u8 != 0 } } impl RIS_L_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_L_A { match self . bits { false => RIS_L_A :: RIS_L_CLR , true => RIS_L_A :: RIS_L_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_l_clr (& self) -> bool { * self == RIS_L_A :: RIS_L_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_l_set (& self) -> bool { * self == RIS_L_A :: RIS_L_SET } } # [doc = "Field `RIS_CCD0` reader - Capture or compare down event generated an interrupt CCP0"]
pub type RIS_CCD0_R = crate :: BitReader < RIS_CCD0_A > ; # [doc = "Capture or compare down event generated an interrupt CCP0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_CCD0_A { # [doc = "0: CLR"]
RIS_CCD0_CLR = 0 , # [doc = "1: SET"]
RIS_CCD0_SET = 1 , } impl From < RIS_CCD0_A > for bool { # [inline (always)]
fn from (variant : RIS_CCD0_A) -> Self { variant as u8 != 0 } } impl RIS_CCD0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_CCD0_A { match self . bits { false => RIS_CCD0_A :: RIS_CCD0_CLR , true => RIS_CCD0_A :: RIS_CCD0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_ccd0_clr (& self) -> bool { * self == RIS_CCD0_A :: RIS_CCD0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_ccd0_set (& self) -> bool { * self == RIS_CCD0_A :: RIS_CCD0_SET } } # [doc = "Field `RIS_CCD1` reader - Capture or compare down event generated an interrupt CCP1"]
pub type RIS_CCD1_R = crate :: BitReader < RIS_CCD1_A > ; # [doc = "Capture or compare down event generated an interrupt CCP1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_CCD1_A { # [doc = "0: CLR"]
RIS_CCD1_CLR = 0 , # [doc = "1: SET"]
RIS_CCD1_SET = 1 , } impl From < RIS_CCD1_A > for bool { # [inline (always)]
fn from (variant : RIS_CCD1_A) -> Self { variant as u8 != 0 } } impl RIS_CCD1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_CCD1_A { match self . bits { false => RIS_CCD1_A :: RIS_CCD1_CLR , true => RIS_CCD1_A :: RIS_CCD1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_ccd1_clr (& self) -> bool { * self == RIS_CCD1_A :: RIS_CCD1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_ccd1_set (& self) -> bool { * self == RIS_CCD1_A :: RIS_CCD1_SET } } # [doc = "Field `RIS_CCU0` reader - Capture or compare up event generated an interrupt CCP0"]
pub type RIS_CCU0_R = crate :: BitReader < RIS_CCU0_A > ; # [doc = "Capture or compare up event generated an interrupt CCP0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_CCU0_A { # [doc = "0: CLR"]
RIS_CCU0_CLR = 0 , # [doc = "1: SET"]
RIS_CCU0_SET = 1 , } impl From < RIS_CCU0_A > for bool { # [inline (always)]
fn from (variant : RIS_CCU0_A) -> Self { variant as u8 != 0 } } impl RIS_CCU0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_CCU0_A { match self . bits { false => RIS_CCU0_A :: RIS_CCU0_CLR , true => RIS_CCU0_A :: RIS_CCU0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_ccu0_clr (& self) -> bool { * self == RIS_CCU0_A :: RIS_CCU0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_ccu0_set (& self) -> bool { * self == RIS_CCU0_A :: RIS_CCU0_SET } } # [doc = "Field `RIS_CCU1` reader - Capture or compare up event generated an interrupt CCP1"]
pub type RIS_CCU1_R = crate :: BitReader < RIS_CCU1_A > ; # [doc = "Capture or compare up event generated an interrupt CCP1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_CCU1_A { # [doc = "0: CLR"]
RIS_CCU1_CLR = 0 , # [doc = "1: SET"]
RIS_CCU1_SET = 1 , } impl From < RIS_CCU1_A > for bool { # [inline (always)]
fn from (variant : RIS_CCU1_A) -> Self { variant as u8 != 0 } } impl RIS_CCU1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_CCU1_A { match self . bits { false => RIS_CCU1_A :: RIS_CCU1_CLR , true => RIS_CCU1_A :: RIS_CCU1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_ccu1_clr (& self) -> bool { * self == RIS_CCU1_A :: RIS_CCU1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_ccu1_set (& self) -> bool { * self == RIS_CCU1_A :: RIS_CCU1_SET } } # [doc = "Field `RIS_TOV` reader - Trigger overflow"]
pub type RIS_TOV_R = crate :: BitReader < RIS_TOV_A > ; # [doc = "Trigger overflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum RIS_TOV_A { # [doc = "0: CLR"]
RIS_TOV_CLR = 0 , # [doc = "1: SET"]
RIS_TOV_SET = 1 , } impl From < RIS_TOV_A > for bool { # [inline (always)]
fn from (variant : RIS_TOV_A) -> Self { variant as u8 != 0 } } impl RIS_TOV_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> RIS_TOV_A { match self . bits { false => RIS_TOV_A :: RIS_TOV_CLR , true => RIS_TOV_A :: RIS_TOV_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_ris_tov_clr (& self) -> bool { * self == RIS_TOV_A :: RIS_TOV_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_ris_tov_set (& self) -> bool { * self == RIS_TOV_A :: RIS_TOV_SET } } impl R { # [doc = "Bit 0 - Zero event generated an interrupt."]
# [inline (always)]
pub fn ris_z (& self) -> RIS_Z_R { RIS_Z_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Load event generated an interrupt."]
# [inline (always)]
pub fn ris_l (& self) -> RIS_L_R { RIS_L_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 4 - Capture or compare down event generated an interrupt CCP0"]
# [inline (always)]
pub fn ris_ccd0 (& self) -> RIS_CCD0_R { RIS_CCD0_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Capture or compare down event generated an interrupt CCP1"]
# [inline (always)]
pub fn ris_ccd1 (& self) -> RIS_CCD1_R { RIS_CCD1_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 8 - Capture or compare up event generated an interrupt CCP0"]
# [inline (always)]
pub fn ris_ccu0 (& self) -> RIS_CCU0_R { RIS_CCU0_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - Capture or compare up event generated an interrupt CCP1"]
# [inline (always)]
pub fn ris_ccu1 (& self) -> RIS_CCU1_R { RIS_CCU1_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 25 - Trigger overflow"]
# [inline (always)]
pub fn ris_tov (& self) -> RIS_TOV_R { RIS_TOV_R :: new (((self . bits >> 25) & 1) != 0) } } # [doc = "Raw interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ris::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RIS_SPEC ; impl crate :: RegisterSpec for RIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ris::R`](R) reader structure"]
impl crate :: Readable for RIS_SPEC { } # [doc = "`reset()` method sets RIS to value 0"]
impl crate :: Resettable for RIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "MIS (r) register accessor: Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mis`]
module"]
pub type MIS = crate :: Reg < mis :: MIS_SPEC > ; # [doc = "Masked interrupt status"]
pub mod mis { # [doc = "Register `MIS` reader"]
pub type R = crate :: R < MIS_SPEC > ; # [doc = "Field `MIS_Z` reader - Zero event generated an interrupt."]
pub type MIS_Z_R = crate :: BitReader < MIS_Z_A > ; # [doc = "Zero event generated an interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_Z_A { # [doc = "0: CLR"]
MIS_Z_CLR = 0 , # [doc = "1: SET"]
MIS_Z_SET = 1 , } impl From < MIS_Z_A > for bool { # [inline (always)]
fn from (variant : MIS_Z_A) -> Self { variant as u8 != 0 } } impl MIS_Z_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_Z_A { match self . bits { false => MIS_Z_A :: MIS_Z_CLR , true => MIS_Z_A :: MIS_Z_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_z_clr (& self) -> bool { * self == MIS_Z_A :: MIS_Z_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_z_set (& self) -> bool { * self == MIS_Z_A :: MIS_Z_SET } } # [doc = "Field `MIS_L` reader - Load event generated an interrupt."]
pub type MIS_L_R = crate :: BitReader < MIS_L_A > ; # [doc = "Load event generated an interrupt.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_L_A { # [doc = "0: CLR"]
MIS_L_CLR = 0 , # [doc = "1: SET"]
MIS_L_SET = 1 , } impl From < MIS_L_A > for bool { # [inline (always)]
fn from (variant : MIS_L_A) -> Self { variant as u8 != 0 } } impl MIS_L_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_L_A { match self . bits { false => MIS_L_A :: MIS_L_CLR , true => MIS_L_A :: MIS_L_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_l_clr (& self) -> bool { * self == MIS_L_A :: MIS_L_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_l_set (& self) -> bool { * self == MIS_L_A :: MIS_L_SET } } # [doc = "Field `MIS_CCD0` reader - Capture or compare down event generated an interrupt CCP0"]
pub type MIS_CCD0_R = crate :: BitReader < MIS_CCD0_A > ; # [doc = "Capture or compare down event generated an interrupt CCP0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_CCD0_A { # [doc = "0: CLR"]
MIS_CCD0_CLR = 0 , # [doc = "1: SET"]
MIS_CCD0_SET = 1 , } impl From < MIS_CCD0_A > for bool { # [inline (always)]
fn from (variant : MIS_CCD0_A) -> Self { variant as u8 != 0 } } impl MIS_CCD0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_CCD0_A { match self . bits { false => MIS_CCD0_A :: MIS_CCD0_CLR , true => MIS_CCD0_A :: MIS_CCD0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_ccd0_clr (& self) -> bool { * self == MIS_CCD0_A :: MIS_CCD0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_ccd0_set (& self) -> bool { * self == MIS_CCD0_A :: MIS_CCD0_SET } } # [doc = "Field `MIS_CCD1` reader - Capture or compare down event generated an interrupt CCP1"]
pub type MIS_CCD1_R = crate :: BitReader < MIS_CCD1_A > ; # [doc = "Capture or compare down event generated an interrupt CCP1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_CCD1_A { # [doc = "0: CLR"]
MIS_CCD1_CLR = 0 , # [doc = "1: SET"]
MIS_CCD1_SET = 1 , } impl From < MIS_CCD1_A > for bool { # [inline (always)]
fn from (variant : MIS_CCD1_A) -> Self { variant as u8 != 0 } } impl MIS_CCD1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_CCD1_A { match self . bits { false => MIS_CCD1_A :: MIS_CCD1_CLR , true => MIS_CCD1_A :: MIS_CCD1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_ccd1_clr (& self) -> bool { * self == MIS_CCD1_A :: MIS_CCD1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_ccd1_set (& self) -> bool { * self == MIS_CCD1_A :: MIS_CCD1_SET } } # [doc = "Field `MIS_CCU0` reader - Capture or compare up event generated an interrupt CCP0"]
pub type MIS_CCU0_R = crate :: BitReader < MIS_CCU0_A > ; # [doc = "Capture or compare up event generated an interrupt CCP0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_CCU0_A { # [doc = "0: CLR"]
MIS_CCU0_CLR = 0 , # [doc = "1: SET"]
MIS_CCU0_SET = 1 , } impl From < MIS_CCU0_A > for bool { # [inline (always)]
fn from (variant : MIS_CCU0_A) -> Self { variant as u8 != 0 } } impl MIS_CCU0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_CCU0_A { match self . bits { false => MIS_CCU0_A :: MIS_CCU0_CLR , true => MIS_CCU0_A :: MIS_CCU0_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_ccu0_clr (& self) -> bool { * self == MIS_CCU0_A :: MIS_CCU0_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_ccu0_set (& self) -> bool { * self == MIS_CCU0_A :: MIS_CCU0_SET } } # [doc = "Field `MIS_CCU1` reader - Capture or compare up event generated an interrupt CCP1"]
pub type MIS_CCU1_R = crate :: BitReader < MIS_CCU1_A > ; # [doc = "Capture or compare up event generated an interrupt CCP1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_CCU1_A { # [doc = "0: CLR"]
MIS_CCU1_CLR = 0 , # [doc = "1: SET"]
MIS_CCU1_SET = 1 , } impl From < MIS_CCU1_A > for bool { # [inline (always)]
fn from (variant : MIS_CCU1_A) -> Self { variant as u8 != 0 } } impl MIS_CCU1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_CCU1_A { match self . bits { false => MIS_CCU1_A :: MIS_CCU1_CLR , true => MIS_CCU1_A :: MIS_CCU1_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_ccu1_clr (& self) -> bool { * self == MIS_CCU1_A :: MIS_CCU1_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_ccu1_set (& self) -> bool { * self == MIS_CCU1_A :: MIS_CCU1_SET } } # [doc = "Field `MIS_TOV` reader - Trigger overflow"]
pub type MIS_TOV_R = crate :: BitReader < MIS_TOV_A > ; # [doc = "Trigger overflow\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum MIS_TOV_A { # [doc = "0: CLR"]
MIS_TOV_CLR = 0 , # [doc = "1: SET"]
MIS_TOV_SET = 1 , } impl From < MIS_TOV_A > for bool { # [inline (always)]
fn from (variant : MIS_TOV_A) -> Self { variant as u8 != 0 } } impl MIS_TOV_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> MIS_TOV_A { match self . bits { false => MIS_TOV_A :: MIS_TOV_CLR , true => MIS_TOV_A :: MIS_TOV_SET , } } # [doc = "CLR"]
# [inline (always)]
pub fn is_mis_tov_clr (& self) -> bool { * self == MIS_TOV_A :: MIS_TOV_CLR } # [doc = "SET"]
# [inline (always)]
pub fn is_mis_tov_set (& self) -> bool { * self == MIS_TOV_A :: MIS_TOV_SET } } impl R { # [doc = "Bit 0 - Zero event generated an interrupt."]
# [inline (always)]
pub fn mis_z (& self) -> MIS_Z_R { MIS_Z_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Load event generated an interrupt."]
# [inline (always)]
pub fn mis_l (& self) -> MIS_L_R { MIS_L_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bit 4 - Capture or compare down event generated an interrupt CCP0"]
# [inline (always)]
pub fn mis_ccd0 (& self) -> MIS_CCD0_R { MIS_CCD0_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - Capture or compare down event generated an interrupt CCP1"]
# [inline (always)]
pub fn mis_ccd1 (& self) -> MIS_CCD1_R { MIS_CCD1_R :: new (((self . bits >> 5) & 1) != 0) } # [doc = "Bit 8 - Capture or compare up event generated an interrupt CCP0"]
# [inline (always)]
pub fn mis_ccu0 (& self) -> MIS_CCU0_R { MIS_CCU0_R :: new (((self . bits >> 8) & 1) != 0) } # [doc = "Bit 9 - Capture or compare up event generated an interrupt CCP1"]
# [inline (always)]
pub fn mis_ccu1 (& self) -> MIS_CCU1_R { MIS_CCU1_R :: new (((self . bits >> 9) & 1) != 0) } # [doc = "Bit 25 - Trigger overflow"]
# [inline (always)]
pub fn mis_tov (& self) -> MIS_TOV_R { MIS_TOV_R :: new (((self . bits >> 25) & 1) != 0) } } # [doc = "Masked interrupt status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mis::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MIS_SPEC ; impl crate :: RegisterSpec for MIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`mis::R`](R) reader structure"]
impl crate :: Readable for MIS_SPEC { } # [doc = "`reset()` method sets MIS to value 0"]
impl crate :: Resettable for MIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "ISET (w) register accessor: Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iset::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@iset`]
module"]
pub type ISET = crate :: Reg < iset :: ISET_SPEC > ; # [doc = "Interrupt set"]
pub mod iset { # [doc = "Register `ISET` writer"]
pub type W = crate :: W < ISET_SPEC > ; # [doc = "Zero event SET\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_Z_AW { # [doc = "0: NO_EFFECT"]
ISET_Z_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_Z_SET = 1 , } impl From < ISET_Z_AW > for bool { # [inline (always)]
fn from (variant : ISET_Z_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_Z` writer - Zero event SET"]
pub type ISET_Z_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_Z_AW > ; impl < 'a , REG , const O : u8 > ISET_Z_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_z_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_Z_AW :: ISET_Z_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_z_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_Z_AW :: ISET_Z_SET) } } # [doc = "Load event SET\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_L_AW { # [doc = "0: NO_EFFECT"]
ISET_L_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_L_SET = 1 , } impl From < ISET_L_AW > for bool { # [inline (always)]
fn from (variant : ISET_L_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_L` writer - Load event SET"]
pub type ISET_L_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_L_AW > ; impl < 'a , REG , const O : u8 > ISET_L_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_l_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_L_AW :: ISET_L_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_l_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_L_AW :: ISET_L_SET) } } # [doc = "Capture or compare down event SET\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_CCD0_AW { # [doc = "0: NO_EFFECT"]
ISET_CCD0_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_CCD0_SET = 1 , } impl From < ISET_CCD0_AW > for bool { # [inline (always)]
fn from (variant : ISET_CCD0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_CCD0` writer - Capture or compare down event SET"]
pub type ISET_CCD0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_CCD0_AW > ; impl < 'a , REG , const O : u8 > ISET_CCD0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_ccd0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_CCD0_AW :: ISET_CCD0_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_ccd0_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_CCD0_AW :: ISET_CCD0_SET) } } # [doc = "Capture or compare down event SET\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_CCD1_AW { # [doc = "0: NO_EFFECT"]
ISET_CCD1_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_CCD1_SET = 1 , } impl From < ISET_CCD1_AW > for bool { # [inline (always)]
fn from (variant : ISET_CCD1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_CCD1` writer - Capture or compare down event SET"]
pub type ISET_CCD1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_CCD1_AW > ; impl < 'a , REG , const O : u8 > ISET_CCD1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_ccd1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_CCD1_AW :: ISET_CCD1_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_ccd1_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_CCD1_AW :: ISET_CCD1_SET) } } # [doc = "Capture or compare up event SET\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_CCU0_AW { # [doc = "0: NO_EFFECT"]
ISET_CCU0_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_CCU0_SET = 1 , } impl From < ISET_CCU0_AW > for bool { # [inline (always)]
fn from (variant : ISET_CCU0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_CCU0` writer - Capture or compare up event SET"]
pub type ISET_CCU0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_CCU0_AW > ; impl < 'a , REG , const O : u8 > ISET_CCU0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_ccu0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_CCU0_AW :: ISET_CCU0_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_ccu0_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_CCU0_AW :: ISET_CCU0_SET) } } # [doc = "Capture or compare up event SET\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_CCU1_AW { # [doc = "0: NO_EFFECT"]
ISET_CCU1_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_CCU1_SET = 1 , } impl From < ISET_CCU1_AW > for bool { # [inline (always)]
fn from (variant : ISET_CCU1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_CCU1` writer - Capture or compare up event SET"]
pub type ISET_CCU1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_CCU1_AW > ; impl < 'a , REG , const O : u8 > ISET_CCU1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_ccu1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_CCU1_AW :: ISET_CCU1_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_ccu1_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_CCU1_AW :: ISET_CCU1_SET) } } # [doc = "Trigger Overflow event SET\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ISET_TOV_AW { # [doc = "0: NO_EFFECT"]
ISET_TOV_NO_EFFECT = 0 , # [doc = "1: SET"]
ISET_TOV_SET = 1 , } impl From < ISET_TOV_AW > for bool { # [inline (always)]
fn from (variant : ISET_TOV_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ISET_TOV` writer - Trigger Overflow event SET"]
pub type ISET_TOV_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ISET_TOV_AW > ; impl < 'a , REG , const O : u8 > ISET_TOV_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iset_tov_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_TOV_AW :: ISET_TOV_NO_EFFECT) } # [doc = "SET"]
# [inline (always)]
pub fn iset_tov_set (self) -> & 'a mut crate :: W < REG > { self . variant (ISET_TOV_AW :: ISET_TOV_SET) } } impl W { # [doc = "Bit 0 - Zero event SET"]
# [inline (always)]
# [must_use]
pub fn iset_z (& mut self) -> ISET_Z_W < ISET_SPEC , 0 > { ISET_Z_W :: new (self) } # [doc = "Bit 1 - Load event SET"]
# [inline (always)]
# [must_use]
pub fn iset_l (& mut self) -> ISET_L_W < ISET_SPEC , 1 > { ISET_L_W :: new (self) } # [doc = "Bit 4 - Capture or compare down event SET"]
# [inline (always)]
# [must_use]
pub fn iset_ccd0 (& mut self) -> ISET_CCD0_W < ISET_SPEC , 4 > { ISET_CCD0_W :: new (self) } # [doc = "Bit 5 - Capture or compare down event SET"]
# [inline (always)]
# [must_use]
pub fn iset_ccd1 (& mut self) -> ISET_CCD1_W < ISET_SPEC , 5 > { ISET_CCD1_W :: new (self) } # [doc = "Bit 8 - Capture or compare up event SET"]
# [inline (always)]
# [must_use]
pub fn iset_ccu0 (& mut self) -> ISET_CCU0_W < ISET_SPEC , 8 > { ISET_CCU0_W :: new (self) } # [doc = "Bit 9 - Capture or compare up event SET"]
# [inline (always)]
# [must_use]
pub fn iset_ccu1 (& mut self) -> ISET_CCU1_W < ISET_SPEC , 9 > { ISET_CCU1_W :: new (self) } # [doc = "Bit 25 - Trigger Overflow event SET"]
# [inline (always)]
# [must_use]
pub fn iset_tov (& mut self) -> ISET_TOV_W < ISET_SPEC , 25 > { ISET_TOV_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt set\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iset::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ISET_SPEC ; impl crate :: RegisterSpec for ISET_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`iset::W`](W) writer structure"]
impl crate :: Writable for ISET_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets ISET to value 0"]
impl crate :: Resettable for ISET_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "ICLR (w) register accessor: Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@iclr`]
module"]
pub type ICLR = crate :: Reg < iclr :: ICLR_SPEC > ; # [doc = "Interrupt clear"]
pub mod iclr { # [doc = "Register `ICLR` writer"]
pub type W = crate :: W < ICLR_SPEC > ; # [doc = "Zero event CLEAR\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_Z_AW { # [doc = "0: NO_EFFECT"]
ICLR_Z_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_Z_CLR = 1 , } impl From < ICLR_Z_AW > for bool { # [inline (always)]
fn from (variant : ICLR_Z_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_Z` writer - Zero event CLEAR"]
pub type ICLR_Z_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_Z_AW > ; impl < 'a , REG , const O : u8 > ICLR_Z_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_z_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_Z_AW :: ICLR_Z_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_z_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_Z_AW :: ICLR_Z_CLR) } } # [doc = "Load event CLEAR\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_L_AW { # [doc = "0: NO_EFFECT"]
ICLR_L_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_L_CLR = 1 , } impl From < ICLR_L_AW > for bool { # [inline (always)]
fn from (variant : ICLR_L_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_L` writer - Load event CLEAR"]
pub type ICLR_L_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_L_AW > ; impl < 'a , REG , const O : u8 > ICLR_L_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_l_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_L_AW :: ICLR_L_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_l_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_L_AW :: ICLR_L_CLR) } } # [doc = "Capture or compare down event CLEAR\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_CCD0_AW { # [doc = "0: NO_EFFECT"]
ICLR_CCD0_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_CCD0_CLR = 1 , } impl From < ICLR_CCD0_AW > for bool { # [inline (always)]
fn from (variant : ICLR_CCD0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_CCD0` writer - Capture or compare down event CLEAR"]
pub type ICLR_CCD0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_CCD0_AW > ; impl < 'a , REG , const O : u8 > ICLR_CCD0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_ccd0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_CCD0_AW :: ICLR_CCD0_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_ccd0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_CCD0_AW :: ICLR_CCD0_CLR) } } # [doc = "Capture or compare down event CLEAR\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_CCD1_AW { # [doc = "0: NO_EFFECT"]
ICLR_CCD1_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_CCD1_CLR = 1 , } impl From < ICLR_CCD1_AW > for bool { # [inline (always)]
fn from (variant : ICLR_CCD1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_CCD1` writer - Capture or compare down event CLEAR"]
pub type ICLR_CCD1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_CCD1_AW > ; impl < 'a , REG , const O : u8 > ICLR_CCD1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_ccd1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_CCD1_AW :: ICLR_CCD1_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_ccd1_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_CCD1_AW :: ICLR_CCD1_CLR) } } # [doc = "Capture or compare up event CLEAR\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_CCU0_AW { # [doc = "0: NO_EFFECT"]
ICLR_CCU0_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_CCU0_CLR = 1 , } impl From < ICLR_CCU0_AW > for bool { # [inline (always)]
fn from (variant : ICLR_CCU0_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_CCU0` writer - Capture or compare up event CLEAR"]
pub type ICLR_CCU0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_CCU0_AW > ; impl < 'a , REG , const O : u8 > ICLR_CCU0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_ccu0_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_CCU0_AW :: ICLR_CCU0_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_ccu0_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_CCU0_AW :: ICLR_CCU0_CLR) } } # [doc = "Capture or compare up event CLEAR\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_CCU1_AW { # [doc = "0: NO_EFFECT"]
ICLR_CCU1_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_CCU1_CLR = 1 , } impl From < ICLR_CCU1_AW > for bool { # [inline (always)]
fn from (variant : ICLR_CCU1_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_CCU1` writer - Capture or compare up event CLEAR"]
pub type ICLR_CCU1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_CCU1_AW > ; impl < 'a , REG , const O : u8 > ICLR_CCU1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_ccu1_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_CCU1_AW :: ICLR_CCU1_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_ccu1_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_CCU1_AW :: ICLR_CCU1_CLR) } } # [doc = "Trigger Overflow event CLEAR\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ICLR_TOV_AW { # [doc = "0: NO_EFFECT"]
ICLR_TOV_NO_EFFECT = 0 , # [doc = "1: CLR"]
ICLR_TOV_CLR = 1 , } impl From < ICLR_TOV_AW > for bool { # [inline (always)]
fn from (variant : ICLR_TOV_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `ICLR_TOV` writer - Trigger Overflow event CLEAR"]
pub type ICLR_TOV_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ICLR_TOV_AW > ; impl < 'a , REG , const O : u8 > ICLR_TOV_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NO_EFFECT"]
# [inline (always)]
pub fn iclr_tov_no_effect (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_TOV_AW :: ICLR_TOV_NO_EFFECT) } # [doc = "CLR"]
# [inline (always)]
pub fn iclr_tov_clr (self) -> & 'a mut crate :: W < REG > { self . variant (ICLR_TOV_AW :: ICLR_TOV_CLR) } } impl W { # [doc = "Bit 0 - Zero event CLEAR"]
# [inline (always)]
# [must_use]
pub fn iclr_z (& mut self) -> ICLR_Z_W < ICLR_SPEC , 0 > { ICLR_Z_W :: new (self) } # [doc = "Bit 1 - Load event CLEAR"]
# [inline (always)]
# [must_use]
pub fn iclr_l (& mut self) -> ICLR_L_W < ICLR_SPEC , 1 > { ICLR_L_W :: new (self) } # [doc = "Bit 4 - Capture or compare down event CLEAR"]
# [inline (always)]
# [must_use]
pub fn iclr_ccd0 (& mut self) -> ICLR_CCD0_W < ICLR_SPEC , 4 > { ICLR_CCD0_W :: new (self) } # [doc = "Bit 5 - Capture or compare down event CLEAR"]
# [inline (always)]
# [must_use]
pub fn iclr_ccd1 (& mut self) -> ICLR_CCD1_W < ICLR_SPEC , 5 > { ICLR_CCD1_W :: new (self) } # [doc = "Bit 8 - Capture or compare up event CLEAR"]
# [inline (always)]
# [must_use]
pub fn iclr_ccu0 (& mut self) -> ICLR_CCU0_W < ICLR_SPEC , 8 > { ICLR_CCU0_W :: new (self) } # [doc = "Bit 9 - Capture or compare up event CLEAR"]
# [inline (always)]
# [must_use]
pub fn iclr_ccu1 (& mut self) -> ICLR_CCU1_W < ICLR_SPEC , 9 > { ICLR_CCU1_W :: new (self) } # [doc = "Bit 25 - Trigger Overflow event CLEAR"]
# [inline (always)]
# [must_use]
pub fn iclr_tov (& mut self) -> ICLR_TOV_W < ICLR_SPEC , 25 > { ICLR_TOV_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Interrupt clear\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iclr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ICLR_SPEC ; impl crate :: RegisterSpec for ICLR_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`iclr::W`](W) writer structure"]
impl crate :: Writable for ICLR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets ICLR to value 0"]
impl crate :: Resettable for ICLR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "EVT_MODE (rw) register accessor: Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`evt_mode::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@evt_mode`]
module"]
pub type EVT_MODE = crate :: Reg < evt_mode :: EVT_MODE_SPEC > ; # [doc = "Event Mode"]
pub mod evt_mode { # [doc = "Register `EVT_MODE` reader"]
pub type R = crate :: R < EVT_MODE_SPEC > ; # [doc = "Register `EVT_MODE` writer"]
pub type W = crate :: W < EVT_MODE_SPEC > ; # [doc = "Field `EVT_MODE_EVT0_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[0\\]"]
pub type EVT_MODE_EVT0_CFG_R = crate :: FieldReader < EVT_MODE_EVT0_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[0\\]\n\nValue on reset: 1"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_EVT0_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_EVT0_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_EVT0_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_EVT0_CFG_HARDWARE = 2 , } impl From < EVT_MODE_EVT0_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_EVT0_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_EVT0_CFG_A { type Ux = u8 ; } impl EVT_MODE_EVT0_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_EVT0_CFG_A > { match self . bits { 0 => Some (EVT_MODE_EVT0_CFG_A :: EVT_MODE_EVT0_CFG_DISABLE) , 1 => Some (EVT_MODE_EVT0_CFG_A :: EVT_MODE_EVT0_CFG_SOFTWARE) , 2 => Some (EVT_MODE_EVT0_CFG_A :: EVT_MODE_EVT0_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_evt0_cfg_disable (& self) -> bool { * self == EVT_MODE_EVT0_CFG_A :: EVT_MODE_EVT0_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_evt0_cfg_software (& self) -> bool { * self == EVT_MODE_EVT0_CFG_A :: EVT_MODE_EVT0_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_evt0_cfg_hardware (& self) -> bool { * self == EVT_MODE_EVT0_CFG_A :: EVT_MODE_EVT0_CFG_HARDWARE } } # [doc = "Field `EVT_MODE_EVT1_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[1\\]"]
pub type EVT_MODE_EVT1_CFG_R = crate :: FieldReader < EVT_MODE_EVT1_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[1\\]\n\nValue on reset: 2"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_EVT1_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_EVT1_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_EVT1_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_EVT1_CFG_HARDWARE = 2 , } impl From < EVT_MODE_EVT1_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_EVT1_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_EVT1_CFG_A { type Ux = u8 ; } impl EVT_MODE_EVT1_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_EVT1_CFG_A > { match self . bits { 0 => Some (EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_DISABLE) , 1 => Some (EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_SOFTWARE) , 2 => Some (EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_evt1_cfg_disable (& self) -> bool { * self == EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_evt1_cfg_software (& self) -> bool { * self == EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_evt1_cfg_hardware (& self) -> bool { * self == EVT_MODE_EVT1_CFG_A :: EVT_MODE_EVT1_CFG_HARDWARE } } # [doc = "Field `EVT_MODE_EVT2_CFG` reader - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[1\\]"]
pub type EVT_MODE_EVT2_CFG_R = crate :: FieldReader < EVT_MODE_EVT2_CFG_A > ; # [doc = "Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[1\\]\n\nValue on reset: 2"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum EVT_MODE_EVT2_CFG_A { # [doc = "0: DISABLE"]
EVT_MODE_EVT2_CFG_DISABLE = 0 , # [doc = "1: SOFTWARE"]
EVT_MODE_EVT2_CFG_SOFTWARE = 1 , # [doc = "2: HARDWARE"]
EVT_MODE_EVT2_CFG_HARDWARE = 2 , } impl From < EVT_MODE_EVT2_CFG_A > for u8 { # [inline (always)]
fn from (variant : EVT_MODE_EVT2_CFG_A) -> Self { variant as _ } } impl crate :: FieldSpec for EVT_MODE_EVT2_CFG_A { type Ux = u8 ; } impl EVT_MODE_EVT2_CFG_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < EVT_MODE_EVT2_CFG_A > { match self . bits { 0 => Some (EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_DISABLE) , 1 => Some (EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_SOFTWARE) , 2 => Some (EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_HARDWARE) , _ => None , } } # [doc = "DISABLE"]
# [inline (always)]
pub fn is_evt_mode_evt2_cfg_disable (& self) -> bool { * self == EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_DISABLE } # [doc = "SOFTWARE"]
# [inline (always)]
pub fn is_evt_mode_evt2_cfg_software (& self) -> bool { * self == EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_SOFTWARE } # [doc = "HARDWARE"]
# [inline (always)]
pub fn is_evt_mode_evt2_cfg_hardware (& self) -> bool { * self == EVT_MODE_EVT2_CFG_A :: EVT_MODE_EVT2_CFG_HARDWARE } } impl R { # [doc = "Bits 0:1 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[0\\]"]
# [inline (always)]
pub fn evt_mode_evt0_cfg (& self) -> EVT_MODE_EVT0_CFG_R { EVT_MODE_EVT0_CFG_R :: new ((self . bits & 3) as u8) } # [doc = "Bits 2:3 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[1\\]"]
# [inline (always)]
pub fn evt_mode_evt1_cfg (& self) -> EVT_MODE_EVT1_CFG_R { EVT_MODE_EVT1_CFG_R :: new (((self . bits >> 2) & 3) as u8) } # [doc = "Bits 4:5 - Event line mode select for event corresponding to \\[IPSTANDARD.INT_EVENT\\]\\[1\\]"]
# [inline (always)]
pub fn evt_mode_evt2_cfg (& self) -> EVT_MODE_EVT2_CFG_R { EVT_MODE_EVT2_CFG_R :: new (((self . bits >> 4) & 3) as u8) } } impl W { # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Event Mode\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_mode::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`evt_mode::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct EVT_MODE_SPEC ; impl crate :: RegisterSpec for EVT_MODE_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`evt_mode::R`](R) reader structure"]
impl crate :: Readable for EVT_MODE_SPEC { } # [doc = "`write(|w| ..)` method takes [`evt_mode::W`](W) writer structure"]
impl crate :: Writable for EVT_MODE_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets EVT_MODE to value 0x29"]
impl crate :: Resettable for EVT_MODE_SPEC { const RESET_VALUE : Self :: Ux = 0x29 ; } } # [doc = "DESC (r) register accessor: Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@desc`]
module"]
pub type DESC = crate :: Reg < desc :: DESC_SPEC > ; # [doc = "Module Description"]
pub mod desc { # [doc = "Register `DESC` reader"]
pub type R = crate :: R < DESC_SPEC > ; # [doc = "Field `DESC_MINREV` reader - Minor rev of the IP"]
pub type DESC_MINREV_R = crate :: FieldReader ; # [doc = "Field `DESC_MAJREV` reader - Major rev of the IP"]
pub type DESC_MAJREV_R = crate :: FieldReader ; # [doc = "Field `DESC_INSTNUM` reader - Instance Number within the device. This will be a parameter to the RTL for modules that can have multiple instances"]
pub type DESC_INSTNUM_R = crate :: FieldReader ; # [doc = "Field `DESC_FEATUREVER` reader - Feature Set for the module *instance*"]
pub type DESC_FEATUREVER_R = crate :: FieldReader ; # [doc = "Field `DESC_MODULEID` reader - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
pub type DESC_MODULEID_R = crate :: FieldReader < u16 > ; impl R { # [doc = "Bits 0:3 - Minor rev of the IP"]
# [inline (always)]
pub fn desc_minrev (& self) -> DESC_MINREV_R { DESC_MINREV_R :: new ((self . bits & 0x0f) as u8) } # [doc = "Bits 4:7 - Major rev of the IP"]
# [inline (always)]
pub fn desc_majrev (& self) -> DESC_MAJREV_R { DESC_MAJREV_R :: new (((self . bits >> 4) & 0x0f) as u8) } # [doc = "Bits 8:11 - Instance Number within the device. This will be a parameter to the RTL for modules that can have multiple instances"]
# [inline (always)]
pub fn desc_instnum (& self) -> DESC_INSTNUM_R { DESC_INSTNUM_R :: new (((self . bits >> 8) & 0x0f) as u8) } # [doc = "Bits 12:15 - Feature Set for the module *instance*"]
# [inline (always)]
pub fn desc_featurever (& self) -> DESC_FEATUREVER_R { DESC_FEATUREVER_R :: new (((self . bits >> 12) & 0x0f) as u8) } # [doc = "Bits 16:31 - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."]
# [inline (always)]
pub fn desc_moduleid (& self) -> DESC_MODULEID_R { DESC_MODULEID_R :: new (((self . bits >> 16) & 0xffff) as u16) } } # [doc = "Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DESC_SPEC ; impl crate :: RegisterSpec for DESC_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`desc::R`](R) reader structure"]
impl crate :: Readable for DESC_SPEC { } # [doc = "`reset()` method sets DESC to value 0"]
impl crate :: Resettable for DESC_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CCPD (rw) register accessor: CCP Direction\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ccpd::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ccpd::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccpd`]
module"]
pub type CCPD = crate :: Reg < ccpd :: CCPD_SPEC > ; # [doc = "CCP Direction"]
pub mod ccpd { # [doc = "Register `CCPD` reader"]
pub type R = crate :: R < CCPD_SPEC > ; # [doc = "Register `CCPD` writer"]
pub type W = crate :: W < CCPD_SPEC > ; # [doc = "Field `CCPD_C0CCP0` reader - Counter CCP0"]
pub type CCPD_C0CCP0_R = crate :: BitReader < CCPD_C0CCP0_A > ; # [doc = "Counter CCP0\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CCPD_C0CCP0_A { # [doc = "0: INPUT"]
CCPD_C0CCP0_INPUT = 0 , # [doc = "1: OUTPUT"]
CCPD_C0CCP0_OUTPUT = 1 , } impl From < CCPD_C0CCP0_A > for bool { # [inline (always)]
fn from (variant : CCPD_C0CCP0_A) -> Self { variant as u8 != 0 } } impl CCPD_C0CCP0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCPD_C0CCP0_A { match self . bits { false => CCPD_C0CCP0_A :: CCPD_C0CCP0_INPUT , true => CCPD_C0CCP0_A :: CCPD_C0CCP0_OUTPUT , } } # [doc = "INPUT"]
# [inline (always)]
pub fn is_ccpd_c0ccp0_input (& self) -> bool { * self == CCPD_C0CCP0_A :: CCPD_C0CCP0_INPUT } # [doc = "OUTPUT"]
# [inline (always)]
pub fn is_ccpd_c0ccp0_output (& self) -> bool { * self == CCPD_C0CCP0_A :: CCPD_C0CCP0_OUTPUT } } # [doc = "Field `CCPD_C0CCP0` writer - Counter CCP0"]
pub type CCPD_C0CCP0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CCPD_C0CCP0_A > ; impl < 'a , REG , const O : u8 > CCPD_C0CCP0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "INPUT"]
# [inline (always)]
pub fn ccpd_c0ccp0_input (self) -> & 'a mut crate :: W < REG > { self . variant (CCPD_C0CCP0_A :: CCPD_C0CCP0_INPUT) } # [doc = "OUTPUT"]
# [inline (always)]
pub fn ccpd_c0ccp0_output (self) -> & 'a mut crate :: W < REG > { self . variant (CCPD_C0CCP0_A :: CCPD_C0CCP0_OUTPUT) } } # [doc = "Field `CCPD_C0CCP1` reader - Counter CCP1"]
pub type CCPD_C0CCP1_R = crate :: BitReader < CCPD_C0CCP1_A > ; # [doc = "Counter CCP1\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CCPD_C0CCP1_A { # [doc = "0: INPUT"]
CCPD_C0CCP1_INPUT = 0 , # [doc = "1: OUTPUT"]
CCPD_C0CCP1_OUTPUT = 1 , } impl From < CCPD_C0CCP1_A > for bool { # [inline (always)]
fn from (variant : CCPD_C0CCP1_A) -> Self { variant as u8 != 0 } } impl CCPD_C0CCP1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCPD_C0CCP1_A { match self . bits { false => CCPD_C0CCP1_A :: CCPD_C0CCP1_INPUT , true => CCPD_C0CCP1_A :: CCPD_C0CCP1_OUTPUT , } } # [doc = "INPUT"]
# [inline (always)]
pub fn is_ccpd_c0ccp1_input (& self) -> bool { * self == CCPD_C0CCP1_A :: CCPD_C0CCP1_INPUT } # [doc = "OUTPUT"]
# [inline (always)]
pub fn is_ccpd_c0ccp1_output (& self) -> bool { * self == CCPD_C0CCP1_A :: CCPD_C0CCP1_OUTPUT } } # [doc = "Field `CCPD_C0CCP1` writer - Counter CCP1"]
pub type CCPD_C0CCP1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CCPD_C0CCP1_A > ; impl < 'a , REG , const O : u8 > CCPD_C0CCP1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "INPUT"]
# [inline (always)]
pub fn ccpd_c0ccp1_input (self) -> & 'a mut crate :: W < REG > { self . variant (CCPD_C0CCP1_A :: CCPD_C0CCP1_INPUT) } # [doc = "OUTPUT"]
# [inline (always)]
pub fn ccpd_c0ccp1_output (self) -> & 'a mut crate :: W < REG > { self . variant (CCPD_C0CCP1_A :: CCPD_C0CCP1_OUTPUT) } } impl R { # [doc = "Bit 0 - Counter CCP0"]
# [inline (always)]
pub fn ccpd_c0ccp0 (& self) -> CCPD_C0CCP0_R { CCPD_C0CCP0_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Counter CCP1"]
# [inline (always)]
pub fn ccpd_c0ccp1 (& self) -> CCPD_C0CCP1_R { CCPD_C0CCP1_R :: new (((self . bits >> 1) & 1) != 0) } } impl W { # [doc = "Bit 0 - Counter CCP0"]
# [inline (always)]
# [must_use]
pub fn ccpd_c0ccp0 (& mut self) -> CCPD_C0CCP0_W < CCPD_SPEC , 0 > { CCPD_C0CCP0_W :: new (self) } # [doc = "Bit 1 - Counter CCP1"]
# [inline (always)]
# [must_use]
pub fn ccpd_c0ccp1 (& mut self) -> CCPD_C0CCP1_W < CCPD_SPEC , 1 > { CCPD_C0CCP1_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "CCP Direction\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ccpd::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ccpd::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CCPD_SPEC ; impl crate :: RegisterSpec for CCPD_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ccpd::R`](R) reader structure"]
impl crate :: Readable for CCPD_SPEC { } # [doc = "`write(|w| ..)` method takes [`ccpd::W`](W) writer structure"]
impl crate :: Writable for CCPD_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CCPD to value 0"]
impl crate :: Resettable for CCPD_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "ODIS (rw) register accessor: Output Disable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`odis::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`odis::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@odis`]
module"]
pub type ODIS = crate :: Reg < odis :: ODIS_SPEC > ; # [doc = "Output Disable"]
pub mod odis { # [doc = "Register `ODIS` reader"]
pub type R = crate :: R < ODIS_SPEC > ; # [doc = "Register `ODIS` writer"]
pub type W = crate :: W < ODIS_SPEC > ; # [doc = "Field `ODIS_C0CCP0` reader - Counter CCP0 Disable Mask Defines whether CCP0 of Counter n is forced low or not"]
pub type ODIS_C0CCP0_R = crate :: BitReader < ODIS_C0CCP0_A > ; # [doc = "Counter CCP0 Disable Mask Defines whether CCP0 of Counter n is forced low or not\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ODIS_C0CCP0_A { # [doc = "0: CCP_OUTPUT_OCTL"]
ODIS_C0CCP0_CCP_OUTPUT_OCTL = 0 , # [doc = "1: CCP_OUTPUT_LOW"]
ODIS_C0CCP0_CCP_OUTPUT_LOW = 1 , } impl From < ODIS_C0CCP0_A > for bool { # [inline (always)]
fn from (variant : ODIS_C0CCP0_A) -> Self { variant as u8 != 0 } } impl ODIS_C0CCP0_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> ODIS_C0CCP0_A { match self . bits { false => ODIS_C0CCP0_A :: ODIS_C0CCP0_CCP_OUTPUT_OCTL , true => ODIS_C0CCP0_A :: ODIS_C0CCP0_CCP_OUTPUT_LOW , } } # [doc = "CCP_OUTPUT_OCTL"]
# [inline (always)]
pub fn is_odis_c0ccp0_ccp_output_octl (& self) -> bool { * self == ODIS_C0CCP0_A :: ODIS_C0CCP0_CCP_OUTPUT_OCTL } # [doc = "CCP_OUTPUT_LOW"]
# [inline (always)]
pub fn is_odis_c0ccp0_ccp_output_low (& self) -> bool { * self == ODIS_C0CCP0_A :: ODIS_C0CCP0_CCP_OUTPUT_LOW } } # [doc = "Field `ODIS_C0CCP0` writer - Counter CCP0 Disable Mask Defines whether CCP0 of Counter n is forced low or not"]
pub type ODIS_C0CCP0_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ODIS_C0CCP0_A > ; impl < 'a , REG , const O : u8 > ODIS_C0CCP0_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CCP_OUTPUT_OCTL"]
# [inline (always)]
pub fn odis_c0ccp0_ccp_output_octl (self) -> & 'a mut crate :: W < REG > { self . variant (ODIS_C0CCP0_A :: ODIS_C0CCP0_CCP_OUTPUT_OCTL) } # [doc = "CCP_OUTPUT_LOW"]
# [inline (always)]
pub fn odis_c0ccp0_ccp_output_low (self) -> & 'a mut crate :: W < REG > { self . variant (ODIS_C0CCP0_A :: ODIS_C0CCP0_CCP_OUTPUT_LOW) } } # [doc = "Field `ODIS_C0CCP1` reader - Counter CCP1 Disable Mask Defines whether CCP0 of Counter n is forced low or not"]
pub type ODIS_C0CCP1_R = crate :: BitReader < ODIS_C0CCP1_A > ; # [doc = "Counter CCP1 Disable Mask Defines whether CCP0 of Counter n is forced low or not\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum ODIS_C0CCP1_A { # [doc = "0: CCP_OUTPUT_OCTL"]
ODIS_C0CCP1_CCP_OUTPUT_OCTL = 0 , # [doc = "1: CCP_OUTPUT_LOW"]
ODIS_C0CCP1_CCP_OUTPUT_LOW = 1 , } impl From < ODIS_C0CCP1_A > for bool { # [inline (always)]
fn from (variant : ODIS_C0CCP1_A) -> Self { variant as u8 != 0 } } impl ODIS_C0CCP1_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> ODIS_C0CCP1_A { match self . bits { false => ODIS_C0CCP1_A :: ODIS_C0CCP1_CCP_OUTPUT_OCTL , true => ODIS_C0CCP1_A :: ODIS_C0CCP1_CCP_OUTPUT_LOW , } } # [doc = "CCP_OUTPUT_OCTL"]
# [inline (always)]
pub fn is_odis_c0ccp1_ccp_output_octl (& self) -> bool { * self == ODIS_C0CCP1_A :: ODIS_C0CCP1_CCP_OUTPUT_OCTL } # [doc = "CCP_OUTPUT_LOW"]
# [inline (always)]
pub fn is_odis_c0ccp1_ccp_output_low (& self) -> bool { * self == ODIS_C0CCP1_A :: ODIS_C0CCP1_CCP_OUTPUT_LOW } } # [doc = "Field `ODIS_C0CCP1` writer - Counter CCP1 Disable Mask Defines whether CCP0 of Counter n is forced low or not"]
pub type ODIS_C0CCP1_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , ODIS_C0CCP1_A > ; impl < 'a , REG , const O : u8 > ODIS_C0CCP1_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CCP_OUTPUT_OCTL"]
# [inline (always)]
pub fn odis_c0ccp1_ccp_output_octl (self) -> & 'a mut crate :: W < REG > { self . variant (ODIS_C0CCP1_A :: ODIS_C0CCP1_CCP_OUTPUT_OCTL) } # [doc = "CCP_OUTPUT_LOW"]
# [inline (always)]
pub fn odis_c0ccp1_ccp_output_low (self) -> & 'a mut crate :: W < REG > { self . variant (ODIS_C0CCP1_A :: ODIS_C0CCP1_CCP_OUTPUT_LOW) } } impl R { # [doc = "Bit 0 - Counter CCP0 Disable Mask Defines whether CCP0 of Counter n is forced low or not"]
# [inline (always)]
pub fn odis_c0ccp0 (& self) -> ODIS_C0CCP0_R { ODIS_C0CCP0_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Counter CCP1 Disable Mask Defines whether CCP0 of Counter n is forced low or not"]
# [inline (always)]
pub fn odis_c0ccp1 (& self) -> ODIS_C0CCP1_R { ODIS_C0CCP1_R :: new (((self . bits >> 1) & 1) != 0) } } impl W { # [doc = "Bit 0 - Counter CCP0 Disable Mask Defines whether CCP0 of Counter n is forced low or not"]
# [inline (always)]
# [must_use]
pub fn odis_c0ccp0 (& mut self) -> ODIS_C0CCP0_W < ODIS_SPEC , 0 > { ODIS_C0CCP0_W :: new (self) } # [doc = "Bit 1 - Counter CCP1 Disable Mask Defines whether CCP0 of Counter n is forced low or not"]
# [inline (always)]
# [must_use]
pub fn odis_c0ccp1 (& mut self) -> ODIS_C0CCP1_W < ODIS_SPEC , 1 > { ODIS_C0CCP1_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Output Disable\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`odis::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`odis::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ODIS_SPEC ; impl crate :: RegisterSpec for ODIS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`odis::R`](R) reader structure"]
impl crate :: Readable for ODIS_SPEC { } # [doc = "`write(|w| ..)` method takes [`odis::W`](W) writer structure"]
impl crate :: Writable for ODIS_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets ODIS to value 0"]
impl crate :: Resettable for ODIS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CCLKCTL (rw) register accessor: Counter Clock Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cclkctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cclkctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cclkctl`]
module"]
pub type CCLKCTL = crate :: Reg < cclkctl :: CCLKCTL_SPEC > ; # [doc = "Counter Clock Control Register"]
pub mod cclkctl { # [doc = "Register `CCLKCTL` reader"]
pub type R = crate :: R < CCLKCTL_SPEC > ; # [doc = "Register `CCLKCTL` writer"]
pub type W = crate :: W < CCLKCTL_SPEC > ; # [doc = "Field `CCLKCTL_CLKEN` reader - Clock Enable Disables the clock gating to the module. SW has to explicitly program the value to 0 to gate the clock."]
pub type CCLKCTL_CLKEN_R = crate :: BitReader < CCLKCTL_CLKEN_A > ; # [doc = "Clock Enable Disables the clock gating to the module. SW has to explicitly program the value to 0 to gate the clock.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CCLKCTL_CLKEN_A { # [doc = "0: DISABLED"]
CCLKCTL_CLKEN_DISABLED = 0 , # [doc = "1: ENABLED"]
CCLKCTL_CLKEN_ENABLED = 1 , } impl From < CCLKCTL_CLKEN_A > for bool { # [inline (always)]
fn from (variant : CCLKCTL_CLKEN_A) -> Self { variant as u8 != 0 } } impl CCLKCTL_CLKEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCLKCTL_CLKEN_A { match self . bits { false => CCLKCTL_CLKEN_A :: CCLKCTL_CLKEN_DISABLED , true => CCLKCTL_CLKEN_A :: CCLKCTL_CLKEN_ENABLED , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_cclkctl_clken_disabled (& self) -> bool { * self == CCLKCTL_CLKEN_A :: CCLKCTL_CLKEN_DISABLED } # [doc = "ENABLED"]
# [inline (always)]
pub fn is_cclkctl_clken_enabled (& self) -> bool { * self == CCLKCTL_CLKEN_A :: CCLKCTL_CLKEN_ENABLED } } # [doc = "Field `CCLKCTL_CLKEN` writer - Clock Enable Disables the clock gating to the module. SW has to explicitly program the value to 0 to gate the clock."]
pub type CCLKCTL_CLKEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CCLKCTL_CLKEN_A > ; impl < 'a , REG , const O : u8 > CCLKCTL_CLKEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn cclkctl_clken_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCLKCTL_CLKEN_A :: CCLKCTL_CLKEN_DISABLED) } # [doc = "ENABLED"]
# [inline (always)]
pub fn cclkctl_clken_enabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCLKCTL_CLKEN_A :: CCLKCTL_CLKEN_ENABLED) } } impl R { # [doc = "Bit 0 - Clock Enable Disables the clock gating to the module. SW has to explicitly program the value to 0 to gate the clock."]
# [inline (always)]
pub fn cclkctl_clken (& self) -> CCLKCTL_CLKEN_R { CCLKCTL_CLKEN_R :: new ((self . bits & 1) != 0) } } impl W { # [doc = "Bit 0 - Clock Enable Disables the clock gating to the module. SW has to explicitly program the value to 0 to gate the clock."]
# [inline (always)]
# [must_use]
pub fn cclkctl_clken (& mut self) -> CCLKCTL_CLKEN_W < CCLKCTL_SPEC , 0 > { CCLKCTL_CLKEN_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Counter Clock Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cclkctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cclkctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CCLKCTL_SPEC ; impl crate :: RegisterSpec for CCLKCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cclkctl::R`](R) reader structure"]
impl crate :: Readable for CCLKCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`cclkctl::W`](W) writer structure"]
impl crate :: Writable for CCLKCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CCLKCTL to value 0"]
impl crate :: Resettable for CCLKCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CPS (rw) register accessor: Clock Prescale Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cps::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cps::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cps`]
module"]
pub type CPS = crate :: Reg < cps :: CPS_SPEC > ; # [doc = "Clock Prescale Register"]
pub mod cps { # [doc = "Register `CPS` reader"]
pub type R = crate :: R < CPS_SPEC > ; # [doc = "Register `CPS` writer"]
pub type W = crate :: W < CPS_SPEC > ; # [doc = "Field `CPS_PCNT` reader - Pre-Scale Count This field specifies the pre-scale count value. The selected TIMCLK source is divided by a value of (PCNT+1). A PCNT value of 0 divides TIMCLK by 1, effectively bypassing the divider. A PCNT value of greater than 0 divides the TIMCLK source generating a slower clock"]
pub type CPS_PCNT_R = crate :: FieldReader ; # [doc = "Field `CPS_PCNT` writer - Pre-Scale Count This field specifies the pre-scale count value. The selected TIMCLK source is divided by a value of (PCNT+1). A PCNT value of 0 divides TIMCLK by 1, effectively bypassing the divider. A PCNT value of greater than 0 divides the TIMCLK source generating a slower clock"]
pub type CPS_PCNT_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 8 , O > ; impl R { # [doc = "Bits 0:7 - Pre-Scale Count This field specifies the pre-scale count value. The selected TIMCLK source is divided by a value of (PCNT+1). A PCNT value of 0 divides TIMCLK by 1, effectively bypassing the divider. A PCNT value of greater than 0 divides the TIMCLK source generating a slower clock"]
# [inline (always)]
pub fn cps_pcnt (& self) -> CPS_PCNT_R { CPS_PCNT_R :: new ((self . bits & 0xff) as u8) } } impl W { # [doc = "Bits 0:7 - Pre-Scale Count This field specifies the pre-scale count value. The selected TIMCLK source is divided by a value of (PCNT+1). A PCNT value of 0 divides TIMCLK by 1, effectively bypassing the divider. A PCNT value of greater than 0 divides the TIMCLK source generating a slower clock"]
# [inline (always)]
# [must_use]
pub fn cps_pcnt (& mut self) -> CPS_PCNT_W < CPS_SPEC , 0 > { CPS_PCNT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Clock Prescale Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cps::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cps::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CPS_SPEC ; impl crate :: RegisterSpec for CPS_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cps::R`](R) reader structure"]
impl crate :: Readable for CPS_SPEC { } # [doc = "`write(|w| ..)` method takes [`cps::W`](W) writer structure"]
impl crate :: Writable for CPS_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CPS to value 0"]
impl crate :: Resettable for CPS_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CPSV (r) register accessor: Clock prescale count status register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cpsv::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cpsv`]
module"]
pub type CPSV = crate :: Reg < cpsv :: CPSV_SPEC > ; # [doc = "Clock prescale count status register"]
pub mod cpsv { # [doc = "Register `CPSV` reader"]
pub type R = crate :: R < CPSV_SPEC > ; # [doc = "Field `CPSV_CPSVAL` reader - Current Prescale Count Value"]
pub type CPSV_CPSVAL_R = crate :: FieldReader ; impl R { # [doc = "Bits 0:7 - Current Prescale Count Value"]
# [inline (always)]
pub fn cpsv_cpsval (& self) -> CPSV_CPSVAL_R { CPSV_CPSVAL_R :: new ((self . bits & 0xff) as u8) } } # [doc = "Clock prescale count status register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cpsv::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CPSV_SPEC ; impl crate :: RegisterSpec for CPSV_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cpsv::R`](R) reader structure"]
impl crate :: Readable for CPSV_SPEC { } # [doc = "`reset()` method sets CPSV to value 0"]
impl crate :: Resettable for CPSV_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTTRIGCTL (rw) register accessor: Timer Cross Trigger Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cttrigctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cttrigctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cttrigctl`]
module"]
pub type CTTRIGCTL = crate :: Reg < cttrigctl :: CTTRIGCTL_SPEC > ; # [doc = "Timer Cross Trigger Control Register"]
pub mod cttrigctl { # [doc = "Register `CTTRIGCTL` reader"]
pub type R = crate :: R < CTTRIGCTL_SPEC > ; # [doc = "Register `CTTRIGCTL` writer"]
pub type W = crate :: W < CTTRIGCTL_SPEC > ; # [doc = "Field `CTTRIGCTL_CTEN` reader - Timer Cross trigger enable. This field is used to enable whether the SW or HW logic can generate a timer cross trigger event in the system. These cross triggers are connected to the respective timer trigger in of the other timer IPs in the SOC power domain. The timer cross trigger is essentially the combined logic of the HW and SW conditions controlling EN bit in the CTRCTL register."]
pub type CTTRIGCTL_CTEN_R = crate :: BitReader < CTTRIGCTL_CTEN_A > ; # [doc = "Timer Cross trigger enable. This field is used to enable whether the SW or HW logic can generate a timer cross trigger event in the system. These cross triggers are connected to the respective timer trigger in of the other timer IPs in the SOC power domain. The timer cross trigger is essentially the combined logic of the HW and SW conditions controlling EN bit in the CTRCTL register.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTTRIGCTL_CTEN_A { # [doc = "0: DISABLED"]
CTTRIGCTL_CTEN_DISABLED = 0 , # [doc = "1: ENABLE"]
CTTRIGCTL_CTEN_ENABLE = 1 , } impl From < CTTRIGCTL_CTEN_A > for bool { # [inline (always)]
fn from (variant : CTTRIGCTL_CTEN_A) -> Self { variant as u8 != 0 } } impl CTTRIGCTL_CTEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTTRIGCTL_CTEN_A { match self . bits { false => CTTRIGCTL_CTEN_A :: CTTRIGCTL_CTEN_DISABLED , true => CTTRIGCTL_CTEN_A :: CTTRIGCTL_CTEN_ENABLE , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_cttrigctl_cten_disabled (& self) -> bool { * self == CTTRIGCTL_CTEN_A :: CTTRIGCTL_CTEN_DISABLED } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_cttrigctl_cten_enable (& self) -> bool { * self == CTTRIGCTL_CTEN_A :: CTTRIGCTL_CTEN_ENABLE } } # [doc = "Field `CTTRIGCTL_CTEN` writer - Timer Cross trigger enable. This field is used to enable whether the SW or HW logic can generate a timer cross trigger event in the system. These cross triggers are connected to the respective timer trigger in of the other timer IPs in the SOC power domain. The timer cross trigger is essentially the combined logic of the HW and SW conditions controlling EN bit in the CTRCTL register."]
pub type CTTRIGCTL_CTEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTTRIGCTL_CTEN_A > ; impl < 'a , REG , const O : u8 > CTTRIGCTL_CTEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn cttrigctl_cten_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_CTEN_A :: CTTRIGCTL_CTEN_DISABLED) } # [doc = "ENABLE"]
# [inline (always)]
pub fn cttrigctl_cten_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_CTEN_A :: CTTRIGCTL_CTEN_ENABLE) } } # [doc = "Field `CTTRIGCTL_EVTCTEN` reader - Enable the Input Trigger Conditions to the Timer module as a condition for Cross Triggers. Refer Figure 8 Cross Trigger Generation Path"]
pub type CTTRIGCTL_EVTCTEN_R = crate :: BitReader < CTTRIGCTL_EVTCTEN_A > ; # [doc = "Enable the Input Trigger Conditions to the Timer module as a condition for Cross Triggers. Refer Figure 8 Cross Trigger Generation Path\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTTRIGCTL_EVTCTEN_A { # [doc = "0: DISABLED"]
CTTRIGCTL_EVTCTEN_DISABLED = 0 , # [doc = "1: ENABLE"]
CTTRIGCTL_EVTCTEN_ENABLE = 1 , } impl From < CTTRIGCTL_EVTCTEN_A > for bool { # [inline (always)]
fn from (variant : CTTRIGCTL_EVTCTEN_A) -> Self { variant as u8 != 0 } } impl CTTRIGCTL_EVTCTEN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTTRIGCTL_EVTCTEN_A { match self . bits { false => CTTRIGCTL_EVTCTEN_A :: CTTRIGCTL_EVTCTEN_DISABLED , true => CTTRIGCTL_EVTCTEN_A :: CTTRIGCTL_EVTCTEN_ENABLE , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_cttrigctl_evtcten_disabled (& self) -> bool { * self == CTTRIGCTL_EVTCTEN_A :: CTTRIGCTL_EVTCTEN_DISABLED } # [doc = "ENABLE"]
# [inline (always)]
pub fn is_cttrigctl_evtcten_enable (& self) -> bool { * self == CTTRIGCTL_EVTCTEN_A :: CTTRIGCTL_EVTCTEN_ENABLE } } # [doc = "Field `CTTRIGCTL_EVTCTEN` writer - Enable the Input Trigger Conditions to the Timer module as a condition for Cross Triggers. Refer Figure 8 Cross Trigger Generation Path"]
pub type CTTRIGCTL_EVTCTEN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTTRIGCTL_EVTCTEN_A > ; impl < 'a , REG , const O : u8 > CTTRIGCTL_EVTCTEN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn cttrigctl_evtcten_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTEN_A :: CTTRIGCTL_EVTCTEN_DISABLED) } # [doc = "ENABLE"]
# [inline (always)]
pub fn cttrigctl_evtcten_enable (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTEN_A :: CTTRIGCTL_EVTCTEN_ENABLE) } } # [doc = "Field `CTTRIGCTL_EVTCTTRIGSEL` reader - Used to Select the subscriber port that should be used for input cross trigger. Refer Figure 8 Cross Trigger Generation Path"]
pub type CTTRIGCTL_EVTCTTRIGSEL_R = crate :: FieldReader < CTTRIGCTL_EVTCTTRIGSEL_A > ; # [doc = "Used to Select the subscriber port that should be used for input cross trigger. Refer Figure 8 Cross Trigger Generation Path\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTTRIGCTL_EVTCTTRIGSEL_A { # [doc = "0: FSUB0"]
CTTRIGCTL_EVTCTTRIGSEL_FSUB0 = 0 , # [doc = "1: FSUB1"]
CTTRIGCTL_EVTCTTRIGSEL_FSUB1 = 1 , # [doc = "2: Z"]
CTTRIGCTL_EVTCTTRIGSEL_Z = 2 , # [doc = "3: L"]
CTTRIGCTL_EVTCTTRIGSEL_L = 3 , # [doc = "4: CCD0"]
CTTRIGCTL_EVTCTTRIGSEL_CCD0 = 4 , # [doc = "5: CCD1"]
CTTRIGCTL_EVTCTTRIGSEL_CCD1 = 5 , # [doc = "6: CCD2"]
CTTRIGCTL_EVTCTTRIGSEL_CCD2 = 6 , # [doc = "7: CCD3"]
CTTRIGCTL_EVTCTTRIGSEL_CCD3 = 7 , # [doc = "8: CCU0"]
CTTRIGCTL_EVTCTTRIGSEL_CCU0 = 8 , # [doc = "9: CCU1"]
CTTRIGCTL_EVTCTTRIGSEL_CCU1 = 9 , # [doc = "10: CCU2"]
CTTRIGCTL_EVTCTTRIGSEL_CCU2 = 10 , # [doc = "11: CCU3"]
CTTRIGCTL_EVTCTTRIGSEL_CCU3 = 11 , } impl From < CTTRIGCTL_EVTCTTRIGSEL_A > for u8 { # [inline (always)]
fn from (variant : CTTRIGCTL_EVTCTTRIGSEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTTRIGCTL_EVTCTTRIGSEL_A { type Ux = u8 ; } impl CTTRIGCTL_EVTCTTRIGSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTTRIGCTL_EVTCTTRIGSEL_A > { match self . bits { 0 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_FSUB0) , 1 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_FSUB1) , 2 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_Z) , 3 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_L) , 4 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD0) , 5 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD1) , 6 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD2) , 7 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD3) , 8 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU0) , 9 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU1) , 10 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU2) , 11 => Some (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU3) , _ => None , } } # [doc = "FSUB0"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_fsub0 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_FSUB0 } # [doc = "FSUB1"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_fsub1 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_FSUB1 } # [doc = "Z"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_z (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_Z } # [doc = "L"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_l (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_L } # [doc = "CCD0"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_ccd0 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD0 } # [doc = "CCD1"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_ccd1 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD1 } # [doc = "CCD2"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_ccd2 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD2 } # [doc = "CCD3"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_ccd3 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD3 } # [doc = "CCU0"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_ccu0 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU0 } # [doc = "CCU1"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_ccu1 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU1 } # [doc = "CCU2"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_ccu2 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU2 } # [doc = "CCU3"]
# [inline (always)]
pub fn is_cttrigctl_evtcttrigsel_ccu3 (& self) -> bool { * self == CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU3 } } # [doc = "Field `CTTRIGCTL_EVTCTTRIGSEL` writer - Used to Select the subscriber port that should be used for input cross trigger. Refer Figure 8 Cross Trigger Generation Path"]
pub type CTTRIGCTL_EVTCTTRIGSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 4 , O , CTTRIGCTL_EVTCTTRIGSEL_A > ; impl < 'a , REG , const O : u8 > CTTRIGCTL_EVTCTTRIGSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "FSUB0"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_fsub0 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_FSUB0) } # [doc = "FSUB1"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_fsub1 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_FSUB1) } # [doc = "Z"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_z (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_Z) } # [doc = "L"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_l (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_L) } # [doc = "CCD0"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_ccd0 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD0) } # [doc = "CCD1"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_ccd1 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD1) } # [doc = "CCD2"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_ccd2 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD2) } # [doc = "CCD3"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_ccd3 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCD3) } # [doc = "CCU0"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_ccu0 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU0) } # [doc = "CCU1"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_ccu1 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU1) } # [doc = "CCU2"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_ccu2 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU2) } # [doc = "CCU3"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel_ccu3 (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIGCTL_EVTCTTRIGSEL_A :: CTTRIGCTL_EVTCTTRIGSEL_CCU3) } } impl R { # [doc = "Bit 0 - Timer Cross trigger enable. This field is used to enable whether the SW or HW logic can generate a timer cross trigger event in the system. These cross triggers are connected to the respective timer trigger in of the other timer IPs in the SOC power domain. The timer cross trigger is essentially the combined logic of the HW and SW conditions controlling EN bit in the CTRCTL register."]
# [inline (always)]
pub fn cttrigctl_cten (& self) -> CTTRIGCTL_CTEN_R { CTTRIGCTL_CTEN_R :: new ((self . bits & 1) != 0) } # [doc = "Bit 1 - Enable the Input Trigger Conditions to the Timer module as a condition for Cross Triggers. Refer Figure 8 Cross Trigger Generation Path"]
# [inline (always)]
pub fn cttrigctl_evtcten (& self) -> CTTRIGCTL_EVTCTEN_R { CTTRIGCTL_EVTCTEN_R :: new (((self . bits >> 1) & 1) != 0) } # [doc = "Bits 16:19 - Used to Select the subscriber port that should be used for input cross trigger. Refer Figure 8 Cross Trigger Generation Path"]
# [inline (always)]
pub fn cttrigctl_evtcttrigsel (& self) -> CTTRIGCTL_EVTCTTRIGSEL_R { CTTRIGCTL_EVTCTTRIGSEL_R :: new (((self . bits >> 16) & 0x0f) as u8) } } impl W { # [doc = "Bit 0 - Timer Cross trigger enable. This field is used to enable whether the SW or HW logic can generate a timer cross trigger event in the system. These cross triggers are connected to the respective timer trigger in of the other timer IPs in the SOC power domain. The timer cross trigger is essentially the combined logic of the HW and SW conditions controlling EN bit in the CTRCTL register."]
# [inline (always)]
# [must_use]
pub fn cttrigctl_cten (& mut self) -> CTTRIGCTL_CTEN_W < CTTRIGCTL_SPEC , 0 > { CTTRIGCTL_CTEN_W :: new (self) } # [doc = "Bit 1 - Enable the Input Trigger Conditions to the Timer module as a condition for Cross Triggers. Refer Figure 8 Cross Trigger Generation Path"]
# [inline (always)]
# [must_use]
pub fn cttrigctl_evtcten (& mut self) -> CTTRIGCTL_EVTCTEN_W < CTTRIGCTL_SPEC , 1 > { CTTRIGCTL_EVTCTEN_W :: new (self) } # [doc = "Bits 16:19 - Used to Select the subscriber port that should be used for input cross trigger. Refer Figure 8 Cross Trigger Generation Path"]
# [inline (always)]
# [must_use]
pub fn cttrigctl_evtcttrigsel (& mut self) -> CTTRIGCTL_EVTCTTRIGSEL_W < CTTRIGCTL_SPEC , 16 > { CTTRIGCTL_EVTCTTRIGSEL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Timer Cross Trigger Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cttrigctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cttrigctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTTRIGCTL_SPEC ; impl crate :: RegisterSpec for CTTRIGCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cttrigctl::R`](R) reader structure"]
impl crate :: Readable for CTTRIGCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`cttrigctl::W`](W) writer structure"]
impl crate :: Writable for CTTRIGCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTTRIGCTL to value 0"]
impl crate :: Resettable for CTTRIGCTL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTTRIG (w) register accessor: Timer Cross Trigger Register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cttrig::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cttrig`]
module"]
pub type CTTRIG = crate :: Reg < cttrig :: CTTRIG_SPEC > ; # [doc = "Timer Cross Trigger Register"]
pub mod cttrig { # [doc = "Register `CTTRIG` writer"]
pub type W = crate :: W < CTTRIG_SPEC > ; # [doc = "Generate Cross Trigger This bit when programmed will generate a synchronized trigger condition all the cross trigger enabled Timer instances including current timer instance.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTTRIG_TRIG_AW { # [doc = "0: DISABLED"]
CTTRIG_TRIG_DISABLED = 0 , # [doc = "1: GENERATE"]
CTTRIG_TRIG_GENERATE = 1 , } impl From < CTTRIG_TRIG_AW > for bool { # [inline (always)]
fn from (variant : CTTRIG_TRIG_AW) -> Self { variant as u8 != 0 } } # [doc = "Field `CTTRIG_TRIG` writer - Generate Cross Trigger This bit when programmed will generate a synchronized trigger condition all the cross trigger enabled Timer instances including current timer instance."]
pub type CTTRIG_TRIG_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTTRIG_TRIG_AW > ; impl < 'a , REG , const O : u8 > CTTRIG_TRIG_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn cttrig_trig_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIG_TRIG_AW :: CTTRIG_TRIG_DISABLED) } # [doc = "GENERATE"]
# [inline (always)]
pub fn cttrig_trig_generate (self) -> & 'a mut crate :: W < REG > { self . variant (CTTRIG_TRIG_AW :: CTTRIG_TRIG_GENERATE) } } impl W { # [doc = "Bit 0 - Generate Cross Trigger This bit when programmed will generate a synchronized trigger condition all the cross trigger enabled Timer instances including current timer instance."]
# [inline (always)]
# [must_use]
pub fn cttrig_trig (& mut self) -> CTTRIG_TRIG_W < CTTRIG_SPEC , 0 > { CTTRIG_TRIG_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Timer Cross Trigger Register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cttrig::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTTRIG_SPEC ; impl crate :: RegisterSpec for CTTRIG_SPEC { type Ux = u32 ; } # [doc = "`write(|w| ..)` method takes [`cttrig::W`](W) writer structure"]
impl crate :: Writable for CTTRIG_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTTRIG to value 0"]
impl crate :: Resettable for CTTRIG_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTR (rw) register accessor: Counter Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctr::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctr`]
module"]
pub type CTR = crate :: Reg < ctr :: CTR_SPEC > ; # [doc = "Counter Register"]
pub mod ctr { # [doc = "Register `CTR` reader"]
pub type R = crate :: R < CTR_SPEC > ; # [doc = "Register `CTR` writer"]
pub type W = crate :: W < CTR_SPEC > ; # [doc = "Field `CTR_CCTR` reader - Current Counter value"]
pub type CTR_CCTR_R = crate :: FieldReader < u16 > ; # [doc = "Field `CTR_CCTR` writer - Current Counter value"]
pub type CTR_CCTR_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 16 , O , u16 > ; impl R { # [doc = "Bits 0:15 - Current Counter value"]
# [inline (always)]
pub fn ctr_cctr (& self) -> CTR_CCTR_R { CTR_CCTR_R :: new ((self . bits & 0xffff) as u16) } } impl W { # [doc = "Bits 0:15 - Current Counter value"]
# [inline (always)]
# [must_use]
pub fn ctr_cctr (& mut self) -> CTR_CCTR_W < CTR_SPEC , 0 > { CTR_CCTR_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Counter Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctr::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctr::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTR_SPEC ; impl crate :: RegisterSpec for CTR_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ctr::R`](R) reader structure"]
impl crate :: Readable for CTR_SPEC { } # [doc = "`write(|w| ..)` method takes [`ctr::W`](W) writer structure"]
impl crate :: Writable for CTR_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTR to value 0"]
impl crate :: Resettable for CTR_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CTRCTL (rw) register accessor: Counter Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctrctl::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctrctl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctrctl`]
module"]
pub type CTRCTL = crate :: Reg < ctrctl :: CTRCTL_SPEC > ; # [doc = "Counter Control Register"]
pub mod ctrctl { # [doc = "Register `CTRCTL` reader"]
pub type R = crate :: R < CTRCTL_SPEC > ; # [doc = "Register `CTRCTL` writer"]
pub type W = crate :: W < CTRCTL_SPEC > ; # [doc = "Field `CTRCTL_EN` reader - Counter Enable. This bit allows the timer to advance This bit is automatically cleared if REPEAT=0 (do not automatically reload) and the counter value equals zero. CPU Write: A register write that sets the EN bit, the counter value is set per the CVAE value. Hardware: This bit may also be set as the result of an LCOND or ZCOND condition being met and the counter value changed to the load value or zero value, respectively."]
pub type CTRCTL_EN_R = crate :: BitReader < CTRCTL_EN_A > ; # [doc = "Counter Enable. This bit allows the timer to advance This bit is automatically cleared if REPEAT=0 (do not automatically reload) and the counter value equals zero. CPU Write: A register write that sets the EN bit, the counter value is set per the CVAE value. Hardware: This bit may also be set as the result of an LCOND or ZCOND condition being met and the counter value changed to the load value or zero value, respectively.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTRCTL_EN_A { # [doc = "0: DISABLED"]
CTRCTL_EN_DISABLED = 0 , # [doc = "1: ENABLED"]
CTRCTL_EN_ENABLED = 1 , } impl From < CTRCTL_EN_A > for bool { # [inline (always)]
fn from (variant : CTRCTL_EN_A) -> Self { variant as u8 != 0 } } impl CTRCTL_EN_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTRCTL_EN_A { match self . bits { false => CTRCTL_EN_A :: CTRCTL_EN_DISABLED , true => CTRCTL_EN_A :: CTRCTL_EN_ENABLED , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ctrctl_en_disabled (& self) -> bool { * self == CTRCTL_EN_A :: CTRCTL_EN_DISABLED } # [doc = "ENABLED"]
# [inline (always)]
pub fn is_ctrctl_en_enabled (& self) -> bool { * self == CTRCTL_EN_A :: CTRCTL_EN_ENABLED } } # [doc = "Field `CTRCTL_EN` writer - Counter Enable. This bit allows the timer to advance This bit is automatically cleared if REPEAT=0 (do not automatically reload) and the counter value equals zero. CPU Write: A register write that sets the EN bit, the counter value is set per the CVAE value. Hardware: This bit may also be set as the result of an LCOND or ZCOND condition being met and the counter value changed to the load value or zero value, respectively."]
pub type CTRCTL_EN_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTRCTL_EN_A > ; impl < 'a , REG , const O : u8 > CTRCTL_EN_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn ctrctl_en_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_EN_A :: CTRCTL_EN_DISABLED) } # [doc = "ENABLED"]
# [inline (always)]
pub fn ctrctl_en_enabled (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_EN_A :: CTRCTL_EN_ENABLED) } } # [doc = "Field `CTRCTL_REPEAT` reader - Repeat. The repeat bit controls whether the counter continues to advance following a zero event, or the exiting of a debug or fault condition. If counting down, a zero event is followed by a load at the next advance condition. If counting up-down, a zero event is followed by an advance event (+1). The intent of encoding 3 is that if the debug condition is in effect, the generation of the load pulse is deferred until the debug condition is over. This allows the counter to reach zero before counting is suspended."]
pub type CTRCTL_REPEAT_R = crate :: FieldReader < CTRCTL_REPEAT_A > ; # [doc = "Repeat. The repeat bit controls whether the counter continues to advance following a zero event, or the exiting of a debug or fault condition. If counting down, a zero event is followed by a load at the next advance condition. If counting up-down, a zero event is followed by an advance event (+1). The intent of encoding 3 is that if the debug condition is in effect, the generation of the load pulse is deferred until the debug condition is over. This allows the counter to reach zero before counting is suspended.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTRCTL_REPEAT_A { # [doc = "0: REPEAT_0"]
CTRCTL_REPEAT_REPEAT_0 = 0 , # [doc = "1: REPEAT_1"]
CTRCTL_REPEAT_REPEAT_1 = 1 , # [doc = "2: REPEAT_2"]
CTRCTL_REPEAT_REPEAT_2 = 2 , # [doc = "3: REPEAT_3"]
CTRCTL_REPEAT_REPEAT_3 = 3 , # [doc = "4: REPEAT_4"]
CTRCTL_REPEAT_REPEAT_4 = 4 , } impl From < CTRCTL_REPEAT_A > for u8 { # [inline (always)]
fn from (variant : CTRCTL_REPEAT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTRCTL_REPEAT_A { type Ux = u8 ; } impl CTRCTL_REPEAT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTRCTL_REPEAT_A > { match self . bits { 0 => Some (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_0) , 1 => Some (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_1) , 2 => Some (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_2) , 3 => Some (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_3) , 4 => Some (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_4) , _ => None , } } # [doc = "REPEAT_0"]
# [inline (always)]
pub fn is_ctrctl_repeat_repeat_0 (& self) -> bool { * self == CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_0 } # [doc = "REPEAT_1"]
# [inline (always)]
pub fn is_ctrctl_repeat_repeat_1 (& self) -> bool { * self == CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_1 } # [doc = "REPEAT_2"]
# [inline (always)]
pub fn is_ctrctl_repeat_repeat_2 (& self) -> bool { * self == CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_2 } # [doc = "REPEAT_3"]
# [inline (always)]
pub fn is_ctrctl_repeat_repeat_3 (& self) -> bool { * self == CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_3 } # [doc = "REPEAT_4"]
# [inline (always)]
pub fn is_ctrctl_repeat_repeat_4 (& self) -> bool { * self == CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_4 } } # [doc = "Field `CTRCTL_REPEAT` writer - Repeat. The repeat bit controls whether the counter continues to advance following a zero event, or the exiting of a debug or fault condition. If counting down, a zero event is followed by a load at the next advance condition. If counting up-down, a zero event is followed by an advance event (+1). The intent of encoding 3 is that if the debug condition is in effect, the generation of the load pulse is deferred until the debug condition is over. This allows the counter to reach zero before counting is suspended."]
pub type CTRCTL_REPEAT_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CTRCTL_REPEAT_A > ; impl < 'a , REG , const O : u8 > CTRCTL_REPEAT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "REPEAT_0"]
# [inline (always)]
pub fn ctrctl_repeat_repeat_0 (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_0) } # [doc = "REPEAT_1"]
# [inline (always)]
pub fn ctrctl_repeat_repeat_1 (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_1) } # [doc = "REPEAT_2"]
# [inline (always)]
pub fn ctrctl_repeat_repeat_2 (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_2) } # [doc = "REPEAT_3"]
# [inline (always)]
pub fn ctrctl_repeat_repeat_3 (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_3) } # [doc = "REPEAT_4"]
# [inline (always)]
pub fn ctrctl_repeat_repeat_4 (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_REPEAT_A :: CTRCTL_REPEAT_REPEAT_4) } } # [doc = "Field `CTRCTL_CM` reader - Count Mode"]
pub type CTRCTL_CM_R = crate :: FieldReader < CTRCTL_CM_A > ; # [doc = "Count Mode\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTRCTL_CM_A { # [doc = "0: DOWN"]
CTRCTL_CM_DOWN = 0 , # [doc = "1: UP_DOWN"]
CTRCTL_CM_UP_DOWN = 1 , # [doc = "2: UP"]
CTRCTL_CM_UP = 2 , } impl From < CTRCTL_CM_A > for u8 { # [inline (always)]
fn from (variant : CTRCTL_CM_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTRCTL_CM_A { type Ux = u8 ; } impl CTRCTL_CM_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTRCTL_CM_A > { match self . bits { 0 => Some (CTRCTL_CM_A :: CTRCTL_CM_DOWN) , 1 => Some (CTRCTL_CM_A :: CTRCTL_CM_UP_DOWN) , 2 => Some (CTRCTL_CM_A :: CTRCTL_CM_UP) , _ => None , } } # [doc = "DOWN"]
# [inline (always)]
pub fn is_ctrctl_cm_down (& self) -> bool { * self == CTRCTL_CM_A :: CTRCTL_CM_DOWN } # [doc = "UP_DOWN"]
# [inline (always)]
pub fn is_ctrctl_cm_up_down (& self) -> bool { * self == CTRCTL_CM_A :: CTRCTL_CM_UP_DOWN } # [doc = "UP"]
# [inline (always)]
pub fn is_ctrctl_cm_up (& self) -> bool { * self == CTRCTL_CM_A :: CTRCTL_CM_UP } } # [doc = "Field `CTRCTL_CM` writer - Count Mode"]
pub type CTRCTL_CM_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , CTRCTL_CM_A > ; impl < 'a , REG , const O : u8 > CTRCTL_CM_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DOWN"]
# [inline (always)]
pub fn ctrctl_cm_down (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CM_A :: CTRCTL_CM_DOWN) } # [doc = "UP_DOWN"]
# [inline (always)]
pub fn ctrctl_cm_up_down (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CM_A :: CTRCTL_CM_UP_DOWN) } # [doc = "UP"]
# [inline (always)]
pub fn ctrctl_cm_up (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CM_A :: CTRCTL_CM_UP) } } # [doc = "Field `CTRCTL_CLC` reader - Counter Load Control. This field specifies what controls the counter operation with respect to setting the counter to the LD register value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
pub type CTRCTL_CLC_R = crate :: FieldReader < CTRCTL_CLC_A > ; # [doc = "Counter Load Control. This field specifies what controls the counter operation with respect to setting the counter to the LD register value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved.\n\nValue on reset: 7"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTRCTL_CLC_A { # [doc = "0: CCCTL0_LCOND"]
CTRCTL_CLC_CCCTL0_LCOND = 0 , # [doc = "1: CCCTL1_LCOND"]
CTRCTL_CLC_CCCTL1_LCOND = 1 , # [doc = "2: CCCTL2_LCOND"]
CTRCTL_CLC_CCCTL2_LCOND = 2 , # [doc = "3: CCCTL3_LCOND"]
CTRCTL_CLC_CCCTL3_LCOND = 3 , # [doc = "4: QEI_2INP"]
CTRCTL_CLC_QEI_2INP = 4 , # [doc = "5: QEI_3INP"]
CTRCTL_CLC_QEI_3INP = 5 , } impl From < CTRCTL_CLC_A > for u8 { # [inline (always)]
fn from (variant : CTRCTL_CLC_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTRCTL_CLC_A { type Ux = u8 ; } impl CTRCTL_CLC_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTRCTL_CLC_A > { match self . bits { 0 => Some (CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL0_LCOND) , 1 => Some (CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL1_LCOND) , 2 => Some (CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL2_LCOND) , 3 => Some (CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL3_LCOND) , 4 => Some (CTRCTL_CLC_A :: CTRCTL_CLC_QEI_2INP) , 5 => Some (CTRCTL_CLC_A :: CTRCTL_CLC_QEI_3INP) , _ => None , } } # [doc = "CCCTL0_LCOND"]
# [inline (always)]
pub fn is_ctrctl_clc_ccctl0_lcond (& self) -> bool { * self == CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL0_LCOND } # [doc = "CCCTL1_LCOND"]
# [inline (always)]
pub fn is_ctrctl_clc_ccctl1_lcond (& self) -> bool { * self == CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL1_LCOND } # [doc = "CCCTL2_LCOND"]
# [inline (always)]
pub fn is_ctrctl_clc_ccctl2_lcond (& self) -> bool { * self == CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL2_LCOND } # [doc = "CCCTL3_LCOND"]
# [inline (always)]
pub fn is_ctrctl_clc_ccctl3_lcond (& self) -> bool { * self == CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL3_LCOND } # [doc = "QEI_2INP"]
# [inline (always)]
pub fn is_ctrctl_clc_qei_2inp (& self) -> bool { * self == CTRCTL_CLC_A :: CTRCTL_CLC_QEI_2INP } # [doc = "QEI_3INP"]
# [inline (always)]
pub fn is_ctrctl_clc_qei_3inp (& self) -> bool { * self == CTRCTL_CLC_A :: CTRCTL_CLC_QEI_3INP } } # [doc = "Field `CTRCTL_CLC` writer - Counter Load Control. This field specifies what controls the counter operation with respect to setting the counter to the LD register value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
pub type CTRCTL_CLC_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CTRCTL_CLC_A > ; impl < 'a , REG , const O : u8 > CTRCTL_CLC_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "CCCTL0_LCOND"]
# [inline (always)]
pub fn ctrctl_clc_ccctl0_lcond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL0_LCOND) } # [doc = "CCCTL1_LCOND"]
# [inline (always)]
pub fn ctrctl_clc_ccctl1_lcond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL1_LCOND) } # [doc = "CCCTL2_LCOND"]
# [inline (always)]
pub fn ctrctl_clc_ccctl2_lcond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL2_LCOND) } # [doc = "CCCTL3_LCOND"]
# [inline (always)]
pub fn ctrctl_clc_ccctl3_lcond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CLC_A :: CTRCTL_CLC_CCCTL3_LCOND) } # [doc = "QEI_2INP"]
# [inline (always)]
pub fn ctrctl_clc_qei_2inp (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CLC_A :: CTRCTL_CLC_QEI_2INP) } # [doc = "QEI_3INP"]
# [inline (always)]
pub fn ctrctl_clc_qei_3inp (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CLC_A :: CTRCTL_CLC_QEI_3INP) } } # [doc = "Field `CTRCTL_CAC` reader - Counter Advance Control. This field specifies what controls the counter operation with respect to advancing (incrementing or decrementing) the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
pub type CTRCTL_CAC_R = crate :: FieldReader < CTRCTL_CAC_A > ; # [doc = "Counter Advance Control. This field specifies what controls the counter operation with respect to advancing (incrementing or decrementing) the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved.\n\nValue on reset: 7"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTRCTL_CAC_A { # [doc = "0: CCCTL0_ACOND"]
CTRCTL_CAC_CCCTL0_ACOND = 0 , # [doc = "1: CCCTL1_ACOND"]
CTRCTL_CAC_CCCTL1_ACOND = 1 , # [doc = "2: CCCTL2_ACOND"]
CTRCTL_CAC_CCCTL2_ACOND = 2 , # [doc = "3: CCCTL3_ACOND"]
CTRCTL_CAC_CCCTL3_ACOND = 3 , # [doc = "4: QEI_2INP"]
CTRCTL_CAC_QEI_2INP = 4 , # [doc = "5: QEI_3INP"]
CTRCTL_CAC_QEI_3INP = 5 , } impl From < CTRCTL_CAC_A > for u8 { # [inline (always)]
fn from (variant : CTRCTL_CAC_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTRCTL_CAC_A { type Ux = u8 ; } impl CTRCTL_CAC_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTRCTL_CAC_A > { match self . bits { 0 => Some (CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL0_ACOND) , 1 => Some (CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL1_ACOND) , 2 => Some (CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL2_ACOND) , 3 => Some (CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL3_ACOND) , 4 => Some (CTRCTL_CAC_A :: CTRCTL_CAC_QEI_2INP) , 5 => Some (CTRCTL_CAC_A :: CTRCTL_CAC_QEI_3INP) , _ => None , } } # [doc = "CCCTL0_ACOND"]
# [inline (always)]
pub fn is_ctrctl_cac_ccctl0_acond (& self) -> bool { * self == CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL0_ACOND } # [doc = "CCCTL1_ACOND"]
# [inline (always)]
pub fn is_ctrctl_cac_ccctl1_acond (& self) -> bool { * self == CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL1_ACOND } # [doc = "CCCTL2_ACOND"]
# [inline (always)]
pub fn is_ctrctl_cac_ccctl2_acond (& self) -> bool { * self == CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL2_ACOND } # [doc = "CCCTL3_ACOND"]
# [inline (always)]
pub fn is_ctrctl_cac_ccctl3_acond (& self) -> bool { * self == CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL3_ACOND } # [doc = "QEI_2INP"]
# [inline (always)]
pub fn is_ctrctl_cac_qei_2inp (& self) -> bool { * self == CTRCTL_CAC_A :: CTRCTL_CAC_QEI_2INP } # [doc = "QEI_3INP"]
# [inline (always)]
pub fn is_ctrctl_cac_qei_3inp (& self) -> bool { * self == CTRCTL_CAC_A :: CTRCTL_CAC_QEI_3INP } } # [doc = "Field `CTRCTL_CAC` writer - Counter Advance Control. This field specifies what controls the counter operation with respect to advancing (incrementing or decrementing) the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
pub type CTRCTL_CAC_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CTRCTL_CAC_A > ; impl < 'a , REG , const O : u8 > CTRCTL_CAC_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "CCCTL0_ACOND"]
# [inline (always)]
pub fn ctrctl_cac_ccctl0_acond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL0_ACOND) } # [doc = "CCCTL1_ACOND"]
# [inline (always)]
pub fn ctrctl_cac_ccctl1_acond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL1_ACOND) } # [doc = "CCCTL2_ACOND"]
# [inline (always)]
pub fn ctrctl_cac_ccctl2_acond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL2_ACOND) } # [doc = "CCCTL3_ACOND"]
# [inline (always)]
pub fn ctrctl_cac_ccctl3_acond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CAC_A :: CTRCTL_CAC_CCCTL3_ACOND) } # [doc = "QEI_2INP"]
# [inline (always)]
pub fn ctrctl_cac_qei_2inp (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CAC_A :: CTRCTL_CAC_QEI_2INP) } # [doc = "QEI_3INP"]
# [inline (always)]
pub fn ctrctl_cac_qei_3inp (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CAC_A :: CTRCTL_CAC_QEI_3INP) } } # [doc = "Field `CTRCTL_CZC` reader - Counter Zero Control This field specifies what controls the counter operation with respect to zeroing the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
pub type CTRCTL_CZC_R = crate :: FieldReader < CTRCTL_CZC_A > ; # [doc = "Counter Zero Control This field specifies what controls the counter operation with respect to zeroing the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved.\n\nValue on reset: 7"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTRCTL_CZC_A { # [doc = "0: CCCTL0_ZCOND"]
CTRCTL_CZC_CCCTL0_ZCOND = 0 , # [doc = "1: CCCTL1_ZCOND"]
CTRCTL_CZC_CCCTL1_ZCOND = 1 , # [doc = "2: CCCTL2_ZCOND"]
CTRCTL_CZC_CCCTL2_ZCOND = 2 , # [doc = "3: CCCTL3_ZCOND"]
CTRCTL_CZC_CCCTL3_ZCOND = 3 , # [doc = "4: QEI_2INP"]
CTRCTL_CZC_QEI_2INP = 4 , # [doc = "5: QEI_3INP"]
CTRCTL_CZC_QEI_3INP = 5 , } impl From < CTRCTL_CZC_A > for u8 { # [inline (always)]
fn from (variant : CTRCTL_CZC_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTRCTL_CZC_A { type Ux = u8 ; } impl CTRCTL_CZC_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTRCTL_CZC_A > { match self . bits { 0 => Some (CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL0_ZCOND) , 1 => Some (CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL1_ZCOND) , 2 => Some (CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL2_ZCOND) , 3 => Some (CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL3_ZCOND) , 4 => Some (CTRCTL_CZC_A :: CTRCTL_CZC_QEI_2INP) , 5 => Some (CTRCTL_CZC_A :: CTRCTL_CZC_QEI_3INP) , _ => None , } } # [doc = "CCCTL0_ZCOND"]
# [inline (always)]
pub fn is_ctrctl_czc_ccctl0_zcond (& self) -> bool { * self == CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL0_ZCOND } # [doc = "CCCTL1_ZCOND"]
# [inline (always)]
pub fn is_ctrctl_czc_ccctl1_zcond (& self) -> bool { * self == CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL1_ZCOND } # [doc = "CCCTL2_ZCOND"]
# [inline (always)]
pub fn is_ctrctl_czc_ccctl2_zcond (& self) -> bool { * self == CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL2_ZCOND } # [doc = "CCCTL3_ZCOND"]
# [inline (always)]
pub fn is_ctrctl_czc_ccctl3_zcond (& self) -> bool { * self == CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL3_ZCOND } # [doc = "QEI_2INP"]
# [inline (always)]
pub fn is_ctrctl_czc_qei_2inp (& self) -> bool { * self == CTRCTL_CZC_A :: CTRCTL_CZC_QEI_2INP } # [doc = "QEI_3INP"]
# [inline (always)]
pub fn is_ctrctl_czc_qei_3inp (& self) -> bool { * self == CTRCTL_CZC_A :: CTRCTL_CZC_QEI_3INP } } # [doc = "Field `CTRCTL_CZC` writer - Counter Zero Control This field specifies what controls the counter operation with respect to zeroing the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
pub type CTRCTL_CZC_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CTRCTL_CZC_A > ; impl < 'a , REG , const O : u8 > CTRCTL_CZC_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "CCCTL0_ZCOND"]
# [inline (always)]
pub fn ctrctl_czc_ccctl0_zcond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL0_ZCOND) } # [doc = "CCCTL1_ZCOND"]
# [inline (always)]
pub fn ctrctl_czc_ccctl1_zcond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL1_ZCOND) } # [doc = "CCCTL2_ZCOND"]
# [inline (always)]
pub fn ctrctl_czc_ccctl2_zcond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL2_ZCOND) } # [doc = "CCCTL3_ZCOND"]
# [inline (always)]
pub fn ctrctl_czc_ccctl3_zcond (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CZC_A :: CTRCTL_CZC_CCCTL3_ZCOND) } # [doc = "QEI_2INP"]
# [inline (always)]
pub fn ctrctl_czc_qei_2inp (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CZC_A :: CTRCTL_CZC_QEI_2INP) } # [doc = "QEI_3INP"]
# [inline (always)]
pub fn ctrctl_czc_qei_3inp (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CZC_A :: CTRCTL_CZC_QEI_3INP) } } # [doc = "Field `CTRCTL_DRB` reader - Debug Resume Behavior This bit specifies what the device does following the release/exit of debug mode."]
pub type CTRCTL_DRB_R = crate :: BitReader < CTRCTL_DRB_A > ; # [doc = "Debug Resume Behavior This bit specifies what the device does following the release/exit of debug mode.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CTRCTL_DRB_A { # [doc = "0: RESUME"]
CTRCTL_DRB_RESUME = 0 , # [doc = "1: CVAE_ACTION"]
CTRCTL_DRB_CVAE_ACTION = 1 , } impl From < CTRCTL_DRB_A > for bool { # [inline (always)]
fn from (variant : CTRCTL_DRB_A) -> Self { variant as u8 != 0 } } impl CTRCTL_DRB_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CTRCTL_DRB_A { match self . bits { false => CTRCTL_DRB_A :: CTRCTL_DRB_RESUME , true => CTRCTL_DRB_A :: CTRCTL_DRB_CVAE_ACTION , } } # [doc = "RESUME"]
# [inline (always)]
pub fn is_ctrctl_drb_resume (& self) -> bool { * self == CTRCTL_DRB_A :: CTRCTL_DRB_RESUME } # [doc = "CVAE_ACTION"]
# [inline (always)]
pub fn is_ctrctl_drb_cvae_action (& self) -> bool { * self == CTRCTL_DRB_A :: CTRCTL_DRB_CVAE_ACTION } } # [doc = "Field `CTRCTL_DRB` writer - Debug Resume Behavior This bit specifies what the device does following the release/exit of debug mode."]
pub type CTRCTL_DRB_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CTRCTL_DRB_A > ; impl < 'a , REG , const O : u8 > CTRCTL_DRB_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "RESUME"]
# [inline (always)]
pub fn ctrctl_drb_resume (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_DRB_A :: CTRCTL_DRB_RESUME) } # [doc = "CVAE_ACTION"]
# [inline (always)]
pub fn ctrctl_drb_cvae_action (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_DRB_A :: CTRCTL_DRB_CVAE_ACTION) } } # [doc = "Field `CTRCTL_CVAE` reader - Counter Value After Enable. This field specifies the initialization condition of the counter when the EN bit is changed from 0 to 1 by a write to the CTRCTL register. Note that an external event can also cause the EN bit to go active."]
pub type CTRCTL_CVAE_R = crate :: FieldReader < CTRCTL_CVAE_A > ; # [doc = "Counter Value After Enable. This field specifies the initialization condition of the counter when the EN bit is changed from 0 to 1 by a write to the CTRCTL register. Note that an external event can also cause the EN bit to go active.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CTRCTL_CVAE_A { # [doc = "0: LDVAL"]
CTRCTL_CVAE_LDVAL = 0 , # [doc = "1: NOCHANGE"]
CTRCTL_CVAE_NOCHANGE = 1 , # [doc = "2: ZEROVAL"]
CTRCTL_CVAE_ZEROVAL = 2 , } impl From < CTRCTL_CVAE_A > for u8 { # [inline (always)]
fn from (variant : CTRCTL_CVAE_A) -> Self { variant as _ } } impl crate :: FieldSpec for CTRCTL_CVAE_A { type Ux = u8 ; } impl CTRCTL_CVAE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CTRCTL_CVAE_A > { match self . bits { 0 => Some (CTRCTL_CVAE_A :: CTRCTL_CVAE_LDVAL) , 1 => Some (CTRCTL_CVAE_A :: CTRCTL_CVAE_NOCHANGE) , 2 => Some (CTRCTL_CVAE_A :: CTRCTL_CVAE_ZEROVAL) , _ => None , } } # [doc = "LDVAL"]
# [inline (always)]
pub fn is_ctrctl_cvae_ldval (& self) -> bool { * self == CTRCTL_CVAE_A :: CTRCTL_CVAE_LDVAL } # [doc = "NOCHANGE"]
# [inline (always)]
pub fn is_ctrctl_cvae_nochange (& self) -> bool { * self == CTRCTL_CVAE_A :: CTRCTL_CVAE_NOCHANGE } # [doc = "ZEROVAL"]
# [inline (always)]
pub fn is_ctrctl_cvae_zeroval (& self) -> bool { * self == CTRCTL_CVAE_A :: CTRCTL_CVAE_ZEROVAL } } # [doc = "Field `CTRCTL_CVAE` writer - Counter Value After Enable. This field specifies the initialization condition of the counter when the EN bit is changed from 0 to 1 by a write to the CTRCTL register. Note that an external event can also cause the EN bit to go active."]
pub type CTRCTL_CVAE_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , CTRCTL_CVAE_A > ; impl < 'a , REG , const O : u8 > CTRCTL_CVAE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "LDVAL"]
# [inline (always)]
pub fn ctrctl_cvae_ldval (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CVAE_A :: CTRCTL_CVAE_LDVAL) } # [doc = "NOCHANGE"]
# [inline (always)]
pub fn ctrctl_cvae_nochange (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CVAE_A :: CTRCTL_CVAE_NOCHANGE) } # [doc = "ZEROVAL"]
# [inline (always)]
pub fn ctrctl_cvae_zeroval (self) -> & 'a mut crate :: W < REG > { self . variant (CTRCTL_CVAE_A :: CTRCTL_CVAE_ZEROVAL) } } impl R { # [doc = "Bit 0 - Counter Enable. This bit allows the timer to advance This bit is automatically cleared if REPEAT=0 (do not automatically reload) and the counter value equals zero. CPU Write: A register write that sets the EN bit, the counter value is set per the CVAE value. Hardware: This bit may also be set as the result of an LCOND or ZCOND condition being met and the counter value changed to the load value or zero value, respectively."]
# [inline (always)]
pub fn ctrctl_en (& self) -> CTRCTL_EN_R { CTRCTL_EN_R :: new ((self . bits & 1) != 0) } # [doc = "Bits 1:3 - Repeat. The repeat bit controls whether the counter continues to advance following a zero event, or the exiting of a debug or fault condition. If counting down, a zero event is followed by a load at the next advance condition. If counting up-down, a zero event is followed by an advance event (+1). The intent of encoding 3 is that if the debug condition is in effect, the generation of the load pulse is deferred until the debug condition is over. This allows the counter to reach zero before counting is suspended."]
# [inline (always)]
pub fn ctrctl_repeat (& self) -> CTRCTL_REPEAT_R { CTRCTL_REPEAT_R :: new (((self . bits >> 1) & 7) as u8) } # [doc = "Bits 4:5 - Count Mode"]
# [inline (always)]
pub fn ctrctl_cm (& self) -> CTRCTL_CM_R { CTRCTL_CM_R :: new (((self . bits >> 4) & 3) as u8) } # [doc = "Bits 7:9 - Counter Load Control. This field specifies what controls the counter operation with respect to setting the counter to the LD register value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
# [inline (always)]
pub fn ctrctl_clc (& self) -> CTRCTL_CLC_R { CTRCTL_CLC_R :: new (((self . bits >> 7) & 7) as u8) } # [doc = "Bits 10:12 - Counter Advance Control. This field specifies what controls the counter operation with respect to advancing (incrementing or decrementing) the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
# [inline (always)]
pub fn ctrctl_cac (& self) -> CTRCTL_CAC_R { CTRCTL_CAC_R :: new (((self . bits >> 10) & 7) as u8) } # [doc = "Bits 13:15 - Counter Zero Control This field specifies what controls the counter operation with respect to zeroing the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
# [inline (always)]
pub fn ctrctl_czc (& self) -> CTRCTL_CZC_R { CTRCTL_CZC_R :: new (((self . bits >> 13) & 7) as u8) } # [doc = "Bit 17 - Debug Resume Behavior This bit specifies what the device does following the release/exit of debug mode."]
# [inline (always)]
pub fn ctrctl_drb (& self) -> CTRCTL_DRB_R { CTRCTL_DRB_R :: new (((self . bits >> 17) & 1) != 0) } # [doc = "Bits 28:29 - Counter Value After Enable. This field specifies the initialization condition of the counter when the EN bit is changed from 0 to 1 by a write to the CTRCTL register. Note that an external event can also cause the EN bit to go active."]
# [inline (always)]
pub fn ctrctl_cvae (& self) -> CTRCTL_CVAE_R { CTRCTL_CVAE_R :: new (((self . bits >> 28) & 3) as u8) } } impl W { # [doc = "Bit 0 - Counter Enable. This bit allows the timer to advance This bit is automatically cleared if REPEAT=0 (do not automatically reload) and the counter value equals zero. CPU Write: A register write that sets the EN bit, the counter value is set per the CVAE value. Hardware: This bit may also be set as the result of an LCOND or ZCOND condition being met and the counter value changed to the load value or zero value, respectively."]
# [inline (always)]
# [must_use]
pub fn ctrctl_en (& mut self) -> CTRCTL_EN_W < CTRCTL_SPEC , 0 > { CTRCTL_EN_W :: new (self) } # [doc = "Bits 1:3 - Repeat. The repeat bit controls whether the counter continues to advance following a zero event, or the exiting of a debug or fault condition. If counting down, a zero event is followed by a load at the next advance condition. If counting up-down, a zero event is followed by an advance event (+1). The intent of encoding 3 is that if the debug condition is in effect, the generation of the load pulse is deferred until the debug condition is over. This allows the counter to reach zero before counting is suspended."]
# [inline (always)]
# [must_use]
pub fn ctrctl_repeat (& mut self) -> CTRCTL_REPEAT_W < CTRCTL_SPEC , 1 > { CTRCTL_REPEAT_W :: new (self) } # [doc = "Bits 4:5 - Count Mode"]
# [inline (always)]
# [must_use]
pub fn ctrctl_cm (& mut self) -> CTRCTL_CM_W < CTRCTL_SPEC , 4 > { CTRCTL_CM_W :: new (self) } # [doc = "Bits 7:9 - Counter Load Control. This field specifies what controls the counter operation with respect to setting the counter to the LD register value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
# [inline (always)]
# [must_use]
pub fn ctrctl_clc (& mut self) -> CTRCTL_CLC_W < CTRCTL_SPEC , 7 > { CTRCTL_CLC_W :: new (self) } # [doc = "Bits 10:12 - Counter Advance Control. This field specifies what controls the counter operation with respect to advancing (incrementing or decrementing) the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
# [inline (always)]
# [must_use]
pub fn ctrctl_cac (& mut self) -> CTRCTL_CAC_W < CTRCTL_SPEC , 10 > { CTRCTL_CAC_W :: new (self) } # [doc = "Bits 13:15 - Counter Zero Control This field specifies what controls the counter operation with respect to zeroing the counter value. Encodings 1-3 are present based on the CCPC parameter value. Bits 4-5 are present based on the HQEI parameter value. Any encodings not provided are documented as reserved."]
# [inline (always)]
# [must_use]
pub fn ctrctl_czc (& mut self) -> CTRCTL_CZC_W < CTRCTL_SPEC , 13 > { CTRCTL_CZC_W :: new (self) } # [doc = "Bit 17 - Debug Resume Behavior This bit specifies what the device does following the release/exit of debug mode."]
# [inline (always)]
# [must_use]
pub fn ctrctl_drb (& mut self) -> CTRCTL_DRB_W < CTRCTL_SPEC , 17 > { CTRCTL_DRB_W :: new (self) } # [doc = "Bits 28:29 - Counter Value After Enable. This field specifies the initialization condition of the counter when the EN bit is changed from 0 to 1 by a write to the CTRCTL register. Note that an external event can also cause the EN bit to go active."]
# [inline (always)]
# [must_use]
pub fn ctrctl_cvae (& mut self) -> CTRCTL_CVAE_W < CTRCTL_SPEC , 28 > { CTRCTL_CVAE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Counter Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ctrctl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ctrctl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CTRCTL_SPEC ; impl crate :: RegisterSpec for CTRCTL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ctrctl::R`](R) reader structure"]
impl crate :: Readable for CTRCTL_SPEC { } # [doc = "`write(|w| ..)` method takes [`ctrctl::W`](W) writer structure"]
impl crate :: Writable for CTRCTL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CTRCTL to value 0xff80"]
impl crate :: Resettable for CTRCTL_SPEC { const RESET_VALUE : Self :: Ux = 0xff80 ; } } # [doc = "LOAD (rw) register accessor: Load Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`load::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`load::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@load`]
module"]
pub type LOAD = crate :: Reg < load :: LOAD_SPEC > ; # [doc = "Load 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 `LOAD_LD` reader - Load Value"]
pub type LOAD_LD_R = crate :: FieldReader < u16 > ; # [doc = "Field `LOAD_LD` writer - Load Value"]
pub type LOAD_LD_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 16 , O , u16 > ; impl R { # [doc = "Bits 0:15 - Load Value"]
# [inline (always)]
pub fn load_ld (& self) -> LOAD_LD_R { LOAD_LD_R :: new ((self . bits & 0xffff) as u16) } } impl W { # [doc = "Bits 0:15 - Load Value"]
# [inline (always)]
# [must_use]
pub fn load_ld (& mut self) -> LOAD_LD_W < LOAD_SPEC , 0 > { LOAD_LD_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Load Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`load::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`load::W`](W). You can also [`modify`](crate::generic::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 { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets LOAD to value 0"]
impl crate :: Resettable for LOAD_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CC_01 (rw) register accessor: Capture or Compare Register 0 to Capture or Compare Register 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cc_01::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cc_01::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cc_01`]
module"]
pub type CC_01 = crate :: Reg < cc_01 :: CC_01_SPEC > ; # [doc = "Capture or Compare Register 0 to Capture or Compare Register 1"]
pub mod cc_01 { # [doc = "Register `CC_01[%s]` reader"]
pub type R = crate :: R < CC_01_SPEC > ; # [doc = "Register `CC_01[%s]` writer"]
pub type W = crate :: W < CC_01_SPEC > ; # [doc = "Field `CC_01_CCVAL` reader - Capture or compare value"]
pub type CC_01_CCVAL_R = crate :: FieldReader < u16 > ; # [doc = "Field `CC_01_CCVAL` writer - Capture or compare value"]
pub type CC_01_CCVAL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 16 , O , u16 > ; impl R { # [doc = "Bits 0:15 - Capture or compare value"]
# [inline (always)]
pub fn cc_01_ccval (& self) -> CC_01_CCVAL_R { CC_01_CCVAL_R :: new ((self . bits & 0xffff) as u16) } } impl W { # [doc = "Bits 0:15 - Capture or compare value"]
# [inline (always)]
# [must_use]
pub fn cc_01_ccval (& mut self) -> CC_01_CCVAL_W < CC_01_SPEC , 0 > { CC_01_CCVAL_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Capture or Compare Register 0 to Capture or Compare Register 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cc_01::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cc_01::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CC_01_SPEC ; impl crate :: RegisterSpec for CC_01_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`cc_01::R`](R) reader structure"]
impl crate :: Readable for CC_01_SPEC { } # [doc = "`write(|w| ..)` method takes [`cc_01::W`](W) writer structure"]
impl crate :: Writable for CC_01_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CC_01[%s]
to value 0"]
impl crate :: Resettable for CC_01_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CCCTL_01 (rw) register accessor: Capture or Compare Control Registers\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ccctl_01::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ccctl_01::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccctl_01`]
module"]
pub type CCCTL_01 = crate :: Reg < ccctl_01 :: CCCTL_01_SPEC > ; # [doc = "Capture or Compare Control Registers"]
pub mod ccctl_01 { # [doc = "Register `CCCTL_01[%s]` reader"]
pub type R = crate :: R < CCCTL_01_SPEC > ; # [doc = "Register `CCCTL_01[%s]` writer"]
pub type W = crate :: W < CCCTL_01_SPEC > ; # [doc = "Field `CCCTL_01_CCOND` reader - Capture Condition. #br# Specifies the condition that generates a capture pulse. 4h-Fh = Reserved"]
pub type CCCTL_01_CCOND_R = crate :: FieldReader < CCCTL_01_CCOND_A > ; # [doc = "Capture Condition. #br# Specifies the condition that generates a capture pulse. 4h-Fh = Reserved\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCCTL_01_CCOND_A { # [doc = "0: NOCAPTURE"]
CCCTL_01_CCOND_NOCAPTURE = 0 , # [doc = "1: CC_TRIG_RISE"]
CCCTL_01_CCOND_CC_TRIG_RISE = 1 , # [doc = "2: CC_TRIG_FALL"]
CCCTL_01_CCOND_CC_TRIG_FALL = 2 , # [doc = "3: CC_TRIG_EDGE"]
CCCTL_01_CCOND_CC_TRIG_EDGE = 3 , } impl From < CCCTL_01_CCOND_A > for u8 { # [inline (always)]
fn from (variant : CCCTL_01_CCOND_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCCTL_01_CCOND_A { type Ux = u8 ; } impl CCCTL_01_CCOND_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCCTL_01_CCOND_A > { match self . bits { 0 => Some (CCCTL_01_CCOND_A :: CCCTL_01_CCOND_NOCAPTURE) , 1 => Some (CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_RISE) , 2 => Some (CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_FALL) , 3 => Some (CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_EDGE) , _ => None , } } # [doc = "NOCAPTURE"]
# [inline (always)]
pub fn is_ccctl_01_ccond_nocapture (& self) -> bool { * self == CCCTL_01_CCOND_A :: CCCTL_01_CCOND_NOCAPTURE } # [doc = "CC_TRIG_RISE"]
# [inline (always)]
pub fn is_ccctl_01_ccond_cc_trig_rise (& self) -> bool { * self == CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_RISE } # [doc = "CC_TRIG_FALL"]
# [inline (always)]
pub fn is_ccctl_01_ccond_cc_trig_fall (& self) -> bool { * self == CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_FALL } # [doc = "CC_TRIG_EDGE"]
# [inline (always)]
pub fn is_ccctl_01_ccond_cc_trig_edge (& self) -> bool { * self == CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_EDGE } } # [doc = "Field `CCCTL_01_CCOND` writer - Capture Condition. #br# Specifies the condition that generates a capture pulse. 4h-Fh = Reserved"]
pub type CCCTL_01_CCOND_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CCCTL_01_CCOND_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_CCOND_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "NOCAPTURE"]
# [inline (always)]
pub fn ccctl_01_ccond_nocapture (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCOND_A :: CCCTL_01_CCOND_NOCAPTURE) } # [doc = "CC_TRIG_RISE"]
# [inline (always)]
pub fn ccctl_01_ccond_cc_trig_rise (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_RISE) } # [doc = "CC_TRIG_FALL"]
# [inline (always)]
pub fn ccctl_01_ccond_cc_trig_fall (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_FALL) } # [doc = "CC_TRIG_EDGE"]
# [inline (always)]
pub fn ccctl_01_ccond_cc_trig_edge (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCOND_A :: CCCTL_01_CCOND_CC_TRIG_EDGE) } } # [doc = "Field `CCCTL_01_ACOND` reader - Advance Condition. #br# Specifies the condition that generates an advance pulse. 6h-Fh = Reserved"]
pub type CCCTL_01_ACOND_R = crate :: FieldReader < CCCTL_01_ACOND_A > ; # [doc = "Advance Condition. #br# Specifies the condition that generates an advance pulse. 6h-Fh = Reserved\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCCTL_01_ACOND_A { # [doc = "0: TIMCLK"]
CCCTL_01_ACOND_TIMCLK = 0 , # [doc = "1: CC_TRIG_RISE"]
CCCTL_01_ACOND_CC_TRIG_RISE = 1 , # [doc = "2: CC_TRIG_FALL"]
CCCTL_01_ACOND_CC_TRIG_FALL = 2 , # [doc = "3: CC_TRIG_EDGE"]
CCCTL_01_ACOND_CC_TRIG_EDGE = 3 , # [doc = "5: CC_TRIG_HIGH"]
CCCTL_01_ACOND_CC_TRIG_HIGH = 5 , } impl From < CCCTL_01_ACOND_A > for u8 { # [inline (always)]
fn from (variant : CCCTL_01_ACOND_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCCTL_01_ACOND_A { type Ux = u8 ; } impl CCCTL_01_ACOND_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCCTL_01_ACOND_A > { match self . bits { 0 => Some (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_TIMCLK) , 1 => Some (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_RISE) , 2 => Some (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_FALL) , 3 => Some (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_EDGE) , 5 => Some (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_HIGH) , _ => None , } } # [doc = "TIMCLK"]
# [inline (always)]
pub fn is_ccctl_01_acond_timclk (& self) -> bool { * self == CCCTL_01_ACOND_A :: CCCTL_01_ACOND_TIMCLK } # [doc = "CC_TRIG_RISE"]
# [inline (always)]
pub fn is_ccctl_01_acond_cc_trig_rise (& self) -> bool { * self == CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_RISE } # [doc = "CC_TRIG_FALL"]
# [inline (always)]
pub fn is_ccctl_01_acond_cc_trig_fall (& self) -> bool { * self == CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_FALL } # [doc = "CC_TRIG_EDGE"]
# [inline (always)]
pub fn is_ccctl_01_acond_cc_trig_edge (& self) -> bool { * self == CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_EDGE } # [doc = "CC_TRIG_HIGH"]
# [inline (always)]
pub fn is_ccctl_01_acond_cc_trig_high (& self) -> bool { * self == CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_HIGH } } # [doc = "Field `CCCTL_01_ACOND` writer - Advance Condition. #br# Specifies the condition that generates an advance pulse. 6h-Fh = Reserved"]
pub type CCCTL_01_ACOND_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CCCTL_01_ACOND_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_ACOND_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "TIMCLK"]
# [inline (always)]
pub fn ccctl_01_acond_timclk (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_TIMCLK) } # [doc = "CC_TRIG_RISE"]
# [inline (always)]
pub fn ccctl_01_acond_cc_trig_rise (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_RISE) } # [doc = "CC_TRIG_FALL"]
# [inline (always)]
pub fn ccctl_01_acond_cc_trig_fall (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_FALL) } # [doc = "CC_TRIG_EDGE"]
# [inline (always)]
pub fn ccctl_01_acond_cc_trig_edge (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_EDGE) } # [doc = "CC_TRIG_HIGH"]
# [inline (always)]
pub fn ccctl_01_acond_cc_trig_high (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_ACOND_A :: CCCTL_01_ACOND_CC_TRIG_HIGH) } } # [doc = "Field `CCCTL_01_LCOND` reader - Load Condition. #br# Specifies the condition that generates a load pulse. 4h-Fh = Reserved"]
pub type CCCTL_01_LCOND_R = crate :: FieldReader < CCCTL_01_LCOND_A > ; # [doc = "Load Condition. #br# Specifies the condition that generates a load pulse. 4h-Fh = Reserved\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCCTL_01_LCOND_A { # [doc = "1: CC_TRIG_RISE"]
CCCTL_01_LCOND_CC_TRIG_RISE = 1 , # [doc = "2: CC_TRIG_FALL"]
CCCTL_01_LCOND_CC_TRIG_FALL = 2 , # [doc = "3: CC_TRIG_EDGE"]
CCCTL_01_LCOND_CC_TRIG_EDGE = 3 , } impl From < CCCTL_01_LCOND_A > for u8 { # [inline (always)]
fn from (variant : CCCTL_01_LCOND_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCCTL_01_LCOND_A { type Ux = u8 ; } impl CCCTL_01_LCOND_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCCTL_01_LCOND_A > { match self . bits { 1 => Some (CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_RISE) , 2 => Some (CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_FALL) , 3 => Some (CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_EDGE) , _ => None , } } # [doc = "CC_TRIG_RISE"]
# [inline (always)]
pub fn is_ccctl_01_lcond_cc_trig_rise (& self) -> bool { * self == CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_RISE } # [doc = "CC_TRIG_FALL"]
# [inline (always)]
pub fn is_ccctl_01_lcond_cc_trig_fall (& self) -> bool { * self == CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_FALL } # [doc = "CC_TRIG_EDGE"]
# [inline (always)]
pub fn is_ccctl_01_lcond_cc_trig_edge (& self) -> bool { * self == CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_EDGE } } # [doc = "Field `CCCTL_01_LCOND` writer - Load Condition. #br# Specifies the condition that generates a load pulse. 4h-Fh = Reserved"]
pub type CCCTL_01_LCOND_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CCCTL_01_LCOND_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_LCOND_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "CC_TRIG_RISE"]
# [inline (always)]
pub fn ccctl_01_lcond_cc_trig_rise (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_RISE) } # [doc = "CC_TRIG_FALL"]
# [inline (always)]
pub fn ccctl_01_lcond_cc_trig_fall (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_FALL) } # [doc = "CC_TRIG_EDGE"]
# [inline (always)]
pub fn ccctl_01_lcond_cc_trig_edge (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_LCOND_A :: CCCTL_01_LCOND_CC_TRIG_EDGE) } } # [doc = "Field `CCCTL_01_ZCOND` reader - Zero Condition. #br# This field specifies the condition that generates a zero pulse. 4h-Fh = Reserved"]
pub type CCCTL_01_ZCOND_R = crate :: FieldReader < CCCTL_01_ZCOND_A > ; # [doc = "Zero Condition. #br# This field specifies the condition that generates a zero pulse. 4h-Fh = Reserved\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCCTL_01_ZCOND_A { # [doc = "1: CC_TRIG_RISE"]
CCCTL_01_ZCOND_CC_TRIG_RISE = 1 , # [doc = "2: CC_TRIG_FALL"]
CCCTL_01_ZCOND_CC_TRIG_FALL = 2 , # [doc = "3: CC_TRIG_EDGE"]
CCCTL_01_ZCOND_CC_TRIG_EDGE = 3 , } impl From < CCCTL_01_ZCOND_A > for u8 { # [inline (always)]
fn from (variant : CCCTL_01_ZCOND_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCCTL_01_ZCOND_A { type Ux = u8 ; } impl CCCTL_01_ZCOND_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCCTL_01_ZCOND_A > { match self . bits { 1 => Some (CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_RISE) , 2 => Some (CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_FALL) , 3 => Some (CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_EDGE) , _ => None , } } # [doc = "CC_TRIG_RISE"]
# [inline (always)]
pub fn is_ccctl_01_zcond_cc_trig_rise (& self) -> bool { * self == CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_RISE } # [doc = "CC_TRIG_FALL"]
# [inline (always)]
pub fn is_ccctl_01_zcond_cc_trig_fall (& self) -> bool { * self == CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_FALL } # [doc = "CC_TRIG_EDGE"]
# [inline (always)]
pub fn is_ccctl_01_zcond_cc_trig_edge (& self) -> bool { * self == CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_EDGE } } # [doc = "Field `CCCTL_01_ZCOND` writer - Zero Condition. #br# This field specifies the condition that generates a zero pulse. 4h-Fh = Reserved"]
pub type CCCTL_01_ZCOND_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CCCTL_01_ZCOND_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_ZCOND_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "CC_TRIG_RISE"]
# [inline (always)]
pub fn ccctl_01_zcond_cc_trig_rise (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_RISE) } # [doc = "CC_TRIG_FALL"]
# [inline (always)]
pub fn ccctl_01_zcond_cc_trig_fall (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_FALL) } # [doc = "CC_TRIG_EDGE"]
# [inline (always)]
pub fn ccctl_01_zcond_cc_trig_edge (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_ZCOND_A :: CCCTL_01_ZCOND_CC_TRIG_EDGE) } } # [doc = "Field `CCCTL_01_COC` reader - Capture or Compare. #br# Specifies whether the corresponding CC register is used as a capture register or a compare register (never both)."]
pub type CCCTL_01_COC_R = crate :: BitReader < CCCTL_01_COC_A > ; # [doc = "Capture or Compare. #br# Specifies whether the corresponding CC register is used as a capture register or a compare register (never both).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum CCCTL_01_COC_A { # [doc = "0: COMPARE"]
CCCTL_01_COC_COMPARE = 0 , # [doc = "1: CAPTURE"]
CCCTL_01_COC_CAPTURE = 1 , } impl From < CCCTL_01_COC_A > for bool { # [inline (always)]
fn from (variant : CCCTL_01_COC_A) -> Self { variant as u8 != 0 } } impl CCCTL_01_COC_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCCTL_01_COC_A { match self . bits { false => CCCTL_01_COC_A :: CCCTL_01_COC_COMPARE , true => CCCTL_01_COC_A :: CCCTL_01_COC_CAPTURE , } } # [doc = "COMPARE"]
# [inline (always)]
pub fn is_ccctl_01_coc_compare (& self) -> bool { * self == CCCTL_01_COC_A :: CCCTL_01_COC_COMPARE } # [doc = "CAPTURE"]
# [inline (always)]
pub fn is_ccctl_01_coc_capture (& self) -> bool { * self == CCCTL_01_COC_A :: CCCTL_01_COC_CAPTURE } } # [doc = "Field `CCCTL_01_COC` writer - Capture or Compare. #br# Specifies whether the corresponding CC register is used as a capture register or a compare register (never both)."]
pub type CCCTL_01_COC_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , CCCTL_01_COC_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_COC_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "COMPARE"]
# [inline (always)]
pub fn ccctl_01_coc_compare (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_COC_A :: CCCTL_01_COC_COMPARE) } # [doc = "CAPTURE"]
# [inline (always)]
pub fn ccctl_01_coc_capture (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_COC_A :: CCCTL_01_COC_CAPTURE) } } # [doc = "Field `CCCTL_01_CC2SELU` reader - Selects the source second CCU event."]
pub type CCCTL_01_CC2SELU_R = crate :: FieldReader < CCCTL_01_CC2SELU_A > ; # [doc = "Selects the source second CCU event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCCTL_01_CC2SELU_A { # [doc = "0: SEL_CCU0"]
CCCTL_01_CC2SELU_SEL_CCU0 = 0 , # [doc = "1: SEL_CCU1"]
CCCTL_01_CC2SELU_SEL_CCU1 = 1 , # [doc = "2: SEL_CCU2"]
CCCTL_01_CC2SELU_SEL_CCU2 = 2 , # [doc = "3: SEL_CCU3"]
CCCTL_01_CC2SELU_SEL_CCU3 = 3 , # [doc = "4: SEL_CCU4"]
CCCTL_01_CC2SELU_SEL_CCU4 = 4 , # [doc = "5: SEL_CCU5"]
CCCTL_01_CC2SELU_SEL_CCU5 = 5 , } impl From < CCCTL_01_CC2SELU_A > for u8 { # [inline (always)]
fn from (variant : CCCTL_01_CC2SELU_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCCTL_01_CC2SELU_A { type Ux = u8 ; } impl CCCTL_01_CC2SELU_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCCTL_01_CC2SELU_A > { match self . bits { 0 => Some (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU0) , 1 => Some (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU1) , 2 => Some (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU2) , 3 => Some (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU3) , 4 => Some (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU4) , 5 => Some (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU5) , _ => None , } } # [doc = "SEL_CCU0"]
# [inline (always)]
pub fn is_ccctl_01_cc2selu_sel_ccu0 (& self) -> bool { * self == CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU0 } # [doc = "SEL_CCU1"]
# [inline (always)]
pub fn is_ccctl_01_cc2selu_sel_ccu1 (& self) -> bool { * self == CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU1 } # [doc = "SEL_CCU2"]
# [inline (always)]
pub fn is_ccctl_01_cc2selu_sel_ccu2 (& self) -> bool { * self == CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU2 } # [doc = "SEL_CCU3"]
# [inline (always)]
pub fn is_ccctl_01_cc2selu_sel_ccu3 (& self) -> bool { * self == CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU3 } # [doc = "SEL_CCU4"]
# [inline (always)]
pub fn is_ccctl_01_cc2selu_sel_ccu4 (& self) -> bool { * self == CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU4 } # [doc = "SEL_CCU5"]
# [inline (always)]
pub fn is_ccctl_01_cc2selu_sel_ccu5 (& self) -> bool { * self == CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU5 } } # [doc = "Field `CCCTL_01_CC2SELU` writer - Selects the source second CCU event."]
pub type CCCTL_01_CC2SELU_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CCCTL_01_CC2SELU_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_CC2SELU_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "SEL_CCU0"]
# [inline (always)]
pub fn ccctl_01_cc2selu_sel_ccu0 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU0) } # [doc = "SEL_CCU1"]
# [inline (always)]
pub fn ccctl_01_cc2selu_sel_ccu1 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU1) } # [doc = "SEL_CCU2"]
# [inline (always)]
pub fn ccctl_01_cc2selu_sel_ccu2 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU2) } # [doc = "SEL_CCU3"]
# [inline (always)]
pub fn ccctl_01_cc2selu_sel_ccu3 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU3) } # [doc = "SEL_CCU4"]
# [inline (always)]
pub fn ccctl_01_cc2selu_sel_ccu4 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU4) } # [doc = "SEL_CCU5"]
# [inline (always)]
pub fn ccctl_01_cc2selu_sel_ccu5 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELU_A :: CCCTL_01_CC2SELU_SEL_CCU5) } } # [doc = "Field `CCCTL_01_CCACTUPD` reader - CCACT shadow register Update Method This field controls how updates to the CCCACT shadow register are performed"]
pub type CCCTL_01_CCACTUPD_R = crate :: FieldReader < CCCTL_01_CCACTUPD_A > ; # [doc = "CCACT shadow register Update Method This field controls how updates to the CCCACT shadow register are performed\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCCTL_01_CCACTUPD_A { # [doc = "0: IMMEDIATELY"]
CCCTL_01_CCACTUPD_IMMEDIATELY = 0 , # [doc = "1: ZERO_EVT"]
CCCTL_01_CCACTUPD_ZERO_EVT = 1 , # [doc = "2: COMPARE_DOWN_EVT"]
CCCTL_01_CCACTUPD_COMPARE_DOWN_EVT = 2 , # [doc = "3: COMPARE_UP_EVT"]
CCCTL_01_CCACTUPD_COMPARE_UP_EVT = 3 , # [doc = "4: ZERO_LOAD_EVT"]
CCCTL_01_CCACTUPD_ZERO_LOAD_EVT = 4 , # [doc = "5: ZERO_RC_ZERO_EVT"]
CCCTL_01_CCACTUPD_ZERO_RC_ZERO_EVT = 5 , # [doc = "6: TRIG"]
CCCTL_01_CCACTUPD_TRIG = 6 , } impl From < CCCTL_01_CCACTUPD_A > for u8 { # [inline (always)]
fn from (variant : CCCTL_01_CCACTUPD_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCCTL_01_CCACTUPD_A { type Ux = u8 ; } impl CCCTL_01_CCACTUPD_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCCTL_01_CCACTUPD_A > { match self . bits { 0 => Some (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_IMMEDIATELY) , 1 => Some (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_EVT) , 2 => Some (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_COMPARE_DOWN_EVT) , 3 => Some (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_COMPARE_UP_EVT) , 4 => Some (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_LOAD_EVT) , 5 => Some (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_RC_ZERO_EVT) , 6 => Some (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_TRIG) , _ => None , } } # [doc = "IMMEDIATELY"]
# [inline (always)]
pub fn is_ccctl_01_ccactupd_immediately (& self) -> bool { * self == CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_IMMEDIATELY } # [doc = "ZERO_EVT"]
# [inline (always)]
pub fn is_ccctl_01_ccactupd_zero_evt (& self) -> bool { * self == CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_EVT } # [doc = "COMPARE_DOWN_EVT"]
# [inline (always)]
pub fn is_ccctl_01_ccactupd_compare_down_evt (& self) -> bool { * self == CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_COMPARE_DOWN_EVT } # [doc = "COMPARE_UP_EVT"]
# [inline (always)]
pub fn is_ccctl_01_ccactupd_compare_up_evt (& self) -> bool { * self == CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_COMPARE_UP_EVT } # [doc = "ZERO_LOAD_EVT"]
# [inline (always)]
pub fn is_ccctl_01_ccactupd_zero_load_evt (& self) -> bool { * self == CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_LOAD_EVT } # [doc = "ZERO_RC_ZERO_EVT"]
# [inline (always)]
pub fn is_ccctl_01_ccactupd_zero_rc_zero_evt (& self) -> bool { * self == CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_RC_ZERO_EVT } # [doc = "TRIG"]
# [inline (always)]
pub fn is_ccctl_01_ccactupd_trig (& self) -> bool { * self == CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_TRIG } } # [doc = "Field `CCCTL_01_CCACTUPD` writer - CCACT shadow register Update Method This field controls how updates to the CCCACT shadow register are performed"]
pub type CCCTL_01_CCACTUPD_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CCCTL_01_CCACTUPD_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_CCACTUPD_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "IMMEDIATELY"]
# [inline (always)]
pub fn ccctl_01_ccactupd_immediately (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_IMMEDIATELY) } # [doc = "ZERO_EVT"]
# [inline (always)]
pub fn ccctl_01_ccactupd_zero_evt (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_EVT) } # [doc = "COMPARE_DOWN_EVT"]
# [inline (always)]
pub fn ccctl_01_ccactupd_compare_down_evt (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_COMPARE_DOWN_EVT) } # [doc = "COMPARE_UP_EVT"]
# [inline (always)]
pub fn ccctl_01_ccactupd_compare_up_evt (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_COMPARE_UP_EVT) } # [doc = "ZERO_LOAD_EVT"]
# [inline (always)]
pub fn ccctl_01_ccactupd_zero_load_evt (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_LOAD_EVT) } # [doc = "ZERO_RC_ZERO_EVT"]
# [inline (always)]
pub fn ccctl_01_ccactupd_zero_rc_zero_evt (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_ZERO_RC_ZERO_EVT) } # [doc = "TRIG"]
# [inline (always)]
pub fn ccctl_01_ccactupd_trig (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CCACTUPD_A :: CCCTL_01_CCACTUPD_TRIG) } } # [doc = "Field `CCCTL_01_CC2SELD` reader - Selects the source second CCD event."]
pub type CCCTL_01_CC2SELD_R = crate :: FieldReader < CCCTL_01_CC2SELD_A > ; # [doc = "Selects the source second CCD event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCCTL_01_CC2SELD_A { # [doc = "0: SEL_CCD0"]
CCCTL_01_CC2SELD_SEL_CCD0 = 0 , # [doc = "1: SEL_CCD1"]
CCCTL_01_CC2SELD_SEL_CCD1 = 1 , # [doc = "2: SEL_CCD2"]
CCCTL_01_CC2SELD_SEL_CCD2 = 2 , # [doc = "3: SEL_CCD3"]
CCCTL_01_CC2SELD_SEL_CCD3 = 3 , # [doc = "4: SEL_CCD4"]
CCCTL_01_CC2SELD_SEL_CCD4 = 4 , # [doc = "5: SEL_CCD5"]
CCCTL_01_CC2SELD_SEL_CCD5 = 5 , } impl From < CCCTL_01_CC2SELD_A > for u8 { # [inline (always)]
fn from (variant : CCCTL_01_CC2SELD_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCCTL_01_CC2SELD_A { type Ux = u8 ; } impl CCCTL_01_CC2SELD_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCCTL_01_CC2SELD_A > { match self . bits { 0 => Some (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD0) , 1 => Some (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD1) , 2 => Some (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD2) , 3 => Some (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD3) , 4 => Some (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD4) , 5 => Some (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD5) , _ => None , } } # [doc = "SEL_CCD0"]
# [inline (always)]
pub fn is_ccctl_01_cc2seld_sel_ccd0 (& self) -> bool { * self == CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD0 } # [doc = "SEL_CCD1"]
# [inline (always)]
pub fn is_ccctl_01_cc2seld_sel_ccd1 (& self) -> bool { * self == CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD1 } # [doc = "SEL_CCD2"]
# [inline (always)]
pub fn is_ccctl_01_cc2seld_sel_ccd2 (& self) -> bool { * self == CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD2 } # [doc = "SEL_CCD3"]
# [inline (always)]
pub fn is_ccctl_01_cc2seld_sel_ccd3 (& self) -> bool { * self == CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD3 } # [doc = "SEL_CCD4"]
# [inline (always)]
pub fn is_ccctl_01_cc2seld_sel_ccd4 (& self) -> bool { * self == CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD4 } # [doc = "SEL_CCD5"]
# [inline (always)]
pub fn is_ccctl_01_cc2seld_sel_ccd5 (& self) -> bool { * self == CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD5 } } # [doc = "Field `CCCTL_01_CC2SELD` writer - Selects the source second CCD event."]
pub type CCCTL_01_CC2SELD_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 3 , O , CCCTL_01_CC2SELD_A > ; impl < 'a , REG , const O : u8 > CCCTL_01_CC2SELD_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "SEL_CCD0"]
# [inline (always)]
pub fn ccctl_01_cc2seld_sel_ccd0 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD0) } # [doc = "SEL_CCD1"]
# [inline (always)]
pub fn ccctl_01_cc2seld_sel_ccd1 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD1) } # [doc = "SEL_CCD2"]
# [inline (always)]
pub fn ccctl_01_cc2seld_sel_ccd2 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD2) } # [doc = "SEL_CCD3"]
# [inline (always)]
pub fn ccctl_01_cc2seld_sel_ccd3 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD3) } # [doc = "SEL_CCD4"]
# [inline (always)]
pub fn ccctl_01_cc2seld_sel_ccd4 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD4) } # [doc = "SEL_CCD5"]
# [inline (always)]
pub fn ccctl_01_cc2seld_sel_ccd5 (self) -> & 'a mut crate :: W < REG > { self . variant (CCCTL_01_CC2SELD_A :: CCCTL_01_CC2SELD_SEL_CCD5) } } impl R { # [doc = "Bits 0:2 - Capture Condition. #br# Specifies the condition that generates a capture pulse. 4h-Fh = Reserved"]
# [inline (always)]
pub fn ccctl_01_ccond (& self) -> CCCTL_01_CCOND_R { CCCTL_01_CCOND_R :: new ((self . bits & 7) as u8) } # [doc = "Bits 4:6 - Advance Condition. #br# Specifies the condition that generates an advance pulse. 6h-Fh = Reserved"]
# [inline (always)]
pub fn ccctl_01_acond (& self) -> CCCTL_01_ACOND_R { CCCTL_01_ACOND_R :: new (((self . bits >> 4) & 7) as u8) } # [doc = "Bits 8:10 - Load Condition. #br# Specifies the condition that generates a load pulse. 4h-Fh = Reserved"]
# [inline (always)]
pub fn ccctl_01_lcond (& self) -> CCCTL_01_LCOND_R { CCCTL_01_LCOND_R :: new (((self . bits >> 8) & 7) as u8) } # [doc = "Bits 12:14 - Zero Condition. #br# This field specifies the condition that generates a zero pulse. 4h-Fh = Reserved"]
# [inline (always)]
pub fn ccctl_01_zcond (& self) -> CCCTL_01_ZCOND_R { CCCTL_01_ZCOND_R :: new (((self . bits >> 12) & 7) as u8) } # [doc = "Bit 17 - Capture or Compare. #br# Specifies whether the corresponding CC register is used as a capture register or a compare register (never both)."]
# [inline (always)]
pub fn ccctl_01_coc (& self) -> CCCTL_01_COC_R { CCCTL_01_COC_R :: new (((self . bits >> 17) & 1) != 0) } # [doc = "Bits 22:24 - Selects the source second CCU event."]
# [inline (always)]
pub fn ccctl_01_cc2selu (& self) -> CCCTL_01_CC2SELU_R { CCCTL_01_CC2SELU_R :: new (((self . bits >> 22) & 7) as u8) } # [doc = "Bits 26:28 - CCACT shadow register Update Method This field controls how updates to the CCCACT shadow register are performed"]
# [inline (always)]
pub fn ccctl_01_ccactupd (& self) -> CCCTL_01_CCACTUPD_R { CCCTL_01_CCACTUPD_R :: new (((self . bits >> 26) & 7) as u8) } # [doc = "Bits 29:31 - Selects the source second CCD event."]
# [inline (always)]
pub fn ccctl_01_cc2seld (& self) -> CCCTL_01_CC2SELD_R { CCCTL_01_CC2SELD_R :: new (((self . bits >> 29) & 7) as u8) } } impl W { # [doc = "Bits 0:2 - Capture Condition. #br# Specifies the condition that generates a capture pulse. 4h-Fh = Reserved"]
# [inline (always)]
# [must_use]
pub fn ccctl_01_ccond (& mut self) -> CCCTL_01_CCOND_W < CCCTL_01_SPEC , 0 > { CCCTL_01_CCOND_W :: new (self) } # [doc = "Bits 4:6 - Advance Condition. #br# Specifies the condition that generates an advance pulse. 6h-Fh = Reserved"]
# [inline (always)]
# [must_use]
pub fn ccctl_01_acond (& mut self) -> CCCTL_01_ACOND_W < CCCTL_01_SPEC , 4 > { CCCTL_01_ACOND_W :: new (self) } # [doc = "Bits 8:10 - Load Condition. #br# Specifies the condition that generates a load pulse. 4h-Fh = Reserved"]
# [inline (always)]
# [must_use]
pub fn ccctl_01_lcond (& mut self) -> CCCTL_01_LCOND_W < CCCTL_01_SPEC , 8 > { CCCTL_01_LCOND_W :: new (self) } # [doc = "Bits 12:14 - Zero Condition. #br# This field specifies the condition that generates a zero pulse. 4h-Fh = Reserved"]
# [inline (always)]
# [must_use]
pub fn ccctl_01_zcond (& mut self) -> CCCTL_01_ZCOND_W < CCCTL_01_SPEC , 12 > { CCCTL_01_ZCOND_W :: new (self) } # [doc = "Bit 17 - Capture or Compare. #br# Specifies whether the corresponding CC register is used as a capture register or a compare register (never both)."]
# [inline (always)]
# [must_use]
pub fn ccctl_01_coc (& mut self) -> CCCTL_01_COC_W < CCCTL_01_SPEC , 17 > { CCCTL_01_COC_W :: new (self) } # [doc = "Bits 22:24 - Selects the source second CCU event."]
# [inline (always)]
# [must_use]
pub fn ccctl_01_cc2selu (& mut self) -> CCCTL_01_CC2SELU_W < CCCTL_01_SPEC , 22 > { CCCTL_01_CC2SELU_W :: new (self) } # [doc = "Bits 26:28 - CCACT shadow register Update Method This field controls how updates to the CCCACT shadow register are performed"]
# [inline (always)]
# [must_use]
pub fn ccctl_01_ccactupd (& mut self) -> CCCTL_01_CCACTUPD_W < CCCTL_01_SPEC , 26 > { CCCTL_01_CCACTUPD_W :: new (self) } # [doc = "Bits 29:31 - Selects the source second CCD event."]
# [inline (always)]
# [must_use]
pub fn ccctl_01_cc2seld (& mut self) -> CCCTL_01_CC2SELD_W < CCCTL_01_SPEC , 29 > { CCCTL_01_CC2SELD_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Capture or Compare Control Registers\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ccctl_01::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ccctl_01::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CCCTL_01_SPEC ; impl crate :: RegisterSpec for CCCTL_01_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ccctl_01::R`](R) reader structure"]
impl crate :: Readable for CCCTL_01_SPEC { } # [doc = "`write(|w| ..)` method takes [`ccctl_01::W`](W) writer structure"]
impl crate :: Writable for CCCTL_01_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CCCTL_01[%s]
to value 0"]
impl crate :: Resettable for CCCTL_01_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "OCTL_01 (rw) register accessor: CCP Output Control Registers\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`octl_01::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`octl_01::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@octl_01`]
module"]
pub type OCTL_01 = crate :: Reg < octl_01 :: OCTL_01_SPEC > ; # [doc = "CCP Output Control Registers"]
pub mod octl_01 { # [doc = "Register `OCTL_01[%s]` reader"]
pub type R = crate :: R < OCTL_01_SPEC > ; # [doc = "Register `OCTL_01[%s]` writer"]
pub type W = crate :: W < OCTL_01_SPEC > ; # [doc = "Field `OCTL_01_CCPO` reader - CCP Output Source"]
pub type OCTL_01_CCPO_R = crate :: FieldReader < OCTL_01_CCPO_A > ; # [doc = "CCP Output Source\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum OCTL_01_CCPO_A { # [doc = "0: FUNCVAL"]
OCTL_01_CCPO_FUNCVAL = 0 , # [doc = "1: LOAD"]
OCTL_01_CCPO_LOAD = 1 , # [doc = "2: CMPVAL"]
OCTL_01_CCPO_CMPVAL = 2 , # [doc = "4: ZERO"]
OCTL_01_CCPO_ZERO = 4 , # [doc = "5: CAPCOND"]
OCTL_01_CCPO_CAPCOND = 5 , # [doc = "6: FAULTCOND"]
OCTL_01_CCPO_FAULTCOND = 6 , # [doc = "8: CC0_MIRROR_ALL"]
OCTL_01_CCPO_CC0_MIRROR_ALL = 8 , # [doc = "9: CC1_MIRROR_ALL"]
OCTL_01_CCPO_CC1_MIRROR_ALL = 9 , # [doc = "12: DEADBAND"]
OCTL_01_CCPO_DEADBAND = 12 , # [doc = "13: CNTDIR"]
OCTL_01_CCPO_CNTDIR = 13 , } impl From < OCTL_01_CCPO_A > for u8 { # [inline (always)]
fn from (variant : OCTL_01_CCPO_A) -> Self { variant as _ } } impl crate :: FieldSpec for OCTL_01_CCPO_A { type Ux = u8 ; } impl OCTL_01_CCPO_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < OCTL_01_CCPO_A > { match self . bits { 0 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_FUNCVAL) , 1 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_LOAD) , 2 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_CMPVAL) , 4 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_ZERO) , 5 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_CAPCOND) , 6 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_FAULTCOND) , 8 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_CC0_MIRROR_ALL) , 9 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_CC1_MIRROR_ALL) , 12 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_DEADBAND) , 13 => Some (OCTL_01_CCPO_A :: OCTL_01_CCPO_CNTDIR) , _ => None , } } # [doc = "FUNCVAL"]
# [inline (always)]
pub fn is_octl_01_ccpo_funcval (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_FUNCVAL } # [doc = "LOAD"]
# [inline (always)]
pub fn is_octl_01_ccpo_load (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_LOAD } # [doc = "CMPVAL"]
# [inline (always)]
pub fn is_octl_01_ccpo_cmpval (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_CMPVAL } # [doc = "ZERO"]
# [inline (always)]
pub fn is_octl_01_ccpo_zero (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_ZERO } # [doc = "CAPCOND"]
# [inline (always)]
pub fn is_octl_01_ccpo_capcond (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_CAPCOND } # [doc = "FAULTCOND"]
# [inline (always)]
pub fn is_octl_01_ccpo_faultcond (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_FAULTCOND } # [doc = "CC0_MIRROR_ALL"]
# [inline (always)]
pub fn is_octl_01_ccpo_cc0_mirror_all (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_CC0_MIRROR_ALL } # [doc = "CC1_MIRROR_ALL"]
# [inline (always)]
pub fn is_octl_01_ccpo_cc1_mirror_all (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_CC1_MIRROR_ALL } # [doc = "DEADBAND"]
# [inline (always)]
pub fn is_octl_01_ccpo_deadband (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_DEADBAND } # [doc = "CNTDIR"]
# [inline (always)]
pub fn is_octl_01_ccpo_cntdir (& self) -> bool { * self == OCTL_01_CCPO_A :: OCTL_01_CCPO_CNTDIR } } # [doc = "Field `OCTL_01_CCPO` writer - CCP Output Source"]
pub type OCTL_01_CCPO_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 4 , O , OCTL_01_CCPO_A > ; impl < 'a , REG , const O : u8 > OCTL_01_CCPO_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "FUNCVAL"]
# [inline (always)]
pub fn octl_01_ccpo_funcval (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_FUNCVAL) } # [doc = "LOAD"]
# [inline (always)]
pub fn octl_01_ccpo_load (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_LOAD) } # [doc = "CMPVAL"]
# [inline (always)]
pub fn octl_01_ccpo_cmpval (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_CMPVAL) } # [doc = "ZERO"]
# [inline (always)]
pub fn octl_01_ccpo_zero (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_ZERO) } # [doc = "CAPCOND"]
# [inline (always)]
pub fn octl_01_ccpo_capcond (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_CAPCOND) } # [doc = "FAULTCOND"]
# [inline (always)]
pub fn octl_01_ccpo_faultcond (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_FAULTCOND) } # [doc = "CC0_MIRROR_ALL"]
# [inline (always)]
pub fn octl_01_ccpo_cc0_mirror_all (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_CC0_MIRROR_ALL) } # [doc = "CC1_MIRROR_ALL"]
# [inline (always)]
pub fn octl_01_ccpo_cc1_mirror_all (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_CC1_MIRROR_ALL) } # [doc = "DEADBAND"]
# [inline (always)]
pub fn octl_01_ccpo_deadband (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_DEADBAND) } # [doc = "CNTDIR"]
# [inline (always)]
pub fn octl_01_ccpo_cntdir (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPO_A :: OCTL_01_CCPO_CNTDIR) } } # [doc = "Field `OCTL_01_CCPOINV` reader - CCP Output Invert The output as selected by CCPO is conditionally inverted."]
pub type OCTL_01_CCPOINV_R = crate :: BitReader < OCTL_01_CCPOINV_A > ; # [doc = "CCP Output Invert The output as selected by CCPO is conditionally inverted.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum OCTL_01_CCPOINV_A { # [doc = "0: NOINV"]
OCTL_01_CCPOINV_NOINV = 0 , # [doc = "1: INV"]
OCTL_01_CCPOINV_INV = 1 , } impl From < OCTL_01_CCPOINV_A > for bool { # [inline (always)]
fn from (variant : OCTL_01_CCPOINV_A) -> Self { variant as u8 != 0 } } impl OCTL_01_CCPOINV_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> OCTL_01_CCPOINV_A { match self . bits { false => OCTL_01_CCPOINV_A :: OCTL_01_CCPOINV_NOINV , true => OCTL_01_CCPOINV_A :: OCTL_01_CCPOINV_INV , } } # [doc = "NOINV"]
# [inline (always)]
pub fn is_octl_01_ccpoinv_noinv (& self) -> bool { * self == OCTL_01_CCPOINV_A :: OCTL_01_CCPOINV_NOINV } # [doc = "INV"]
# [inline (always)]
pub fn is_octl_01_ccpoinv_inv (& self) -> bool { * self == OCTL_01_CCPOINV_A :: OCTL_01_CCPOINV_INV } } # [doc = "Field `OCTL_01_CCPOINV` writer - CCP Output Invert The output as selected by CCPO is conditionally inverted."]
pub type OCTL_01_CCPOINV_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , OCTL_01_CCPOINV_A > ; impl < 'a , REG , const O : u8 > OCTL_01_CCPOINV_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOINV"]
# [inline (always)]
pub fn octl_01_ccpoinv_noinv (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPOINV_A :: OCTL_01_CCPOINV_NOINV) } # [doc = "INV"]
# [inline (always)]
pub fn octl_01_ccpoinv_inv (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPOINV_A :: OCTL_01_CCPOINV_INV) } } # [doc = "Field `OCTL_01_CCPIV` reader - CCP Initial Value This bit specifies the logical value put on the signal generator state while the counter is disabled (CTRCTL.EN == 0)."]
pub type OCTL_01_CCPIV_R = crate :: BitReader < OCTL_01_CCPIV_A > ; # [doc = "CCP Initial Value This bit specifies the logical value put on the signal generator state while the counter is disabled (CTRCTL.EN == 0).\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum OCTL_01_CCPIV_A { # [doc = "0: LOW"]
OCTL_01_CCPIV_LOW = 0 , # [doc = "1: HIGH"]
OCTL_01_CCPIV_HIGH = 1 , } impl From < OCTL_01_CCPIV_A > for bool { # [inline (always)]
fn from (variant : OCTL_01_CCPIV_A) -> Self { variant as u8 != 0 } } impl OCTL_01_CCPIV_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> OCTL_01_CCPIV_A { match self . bits { false => OCTL_01_CCPIV_A :: OCTL_01_CCPIV_LOW , true => OCTL_01_CCPIV_A :: OCTL_01_CCPIV_HIGH , } } # [doc = "LOW"]
# [inline (always)]
pub fn is_octl_01_ccpiv_low (& self) -> bool { * self == OCTL_01_CCPIV_A :: OCTL_01_CCPIV_LOW } # [doc = "HIGH"]
# [inline (always)]
pub fn is_octl_01_ccpiv_high (& self) -> bool { * self == OCTL_01_CCPIV_A :: OCTL_01_CCPIV_HIGH } } # [doc = "Field `OCTL_01_CCPIV` writer - CCP Initial Value This bit specifies the logical value put on the signal generator state while the counter is disabled (CTRCTL.EN == 0)."]
pub type OCTL_01_CCPIV_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , OCTL_01_CCPIV_A > ; impl < 'a , REG , const O : u8 > OCTL_01_CCPIV_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "LOW"]
# [inline (always)]
pub fn octl_01_ccpiv_low (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPIV_A :: OCTL_01_CCPIV_LOW) } # [doc = "HIGH"]
# [inline (always)]
pub fn octl_01_ccpiv_high (self) -> & 'a mut crate :: W < REG > { self . variant (OCTL_01_CCPIV_A :: OCTL_01_CCPIV_HIGH) } } impl R { # [doc = "Bits 0:3 - CCP Output Source"]
# [inline (always)]
pub fn octl_01_ccpo (& self) -> OCTL_01_CCPO_R { OCTL_01_CCPO_R :: new ((self . bits & 0x0f) as u8) } # [doc = "Bit 4 - CCP Output Invert The output as selected by CCPO is conditionally inverted."]
# [inline (always)]
pub fn octl_01_ccpoinv (& self) -> OCTL_01_CCPOINV_R { OCTL_01_CCPOINV_R :: new (((self . bits >> 4) & 1) != 0) } # [doc = "Bit 5 - CCP Initial Value This bit specifies the logical value put on the signal generator state while the counter is disabled (CTRCTL.EN == 0)."]
# [inline (always)]
pub fn octl_01_ccpiv (& self) -> OCTL_01_CCPIV_R { OCTL_01_CCPIV_R :: new (((self . bits >> 5) & 1) != 0) } } impl W { # [doc = "Bits 0:3 - CCP Output Source"]
# [inline (always)]
# [must_use]
pub fn octl_01_ccpo (& mut self) -> OCTL_01_CCPO_W < OCTL_01_SPEC , 0 > { OCTL_01_CCPO_W :: new (self) } # [doc = "Bit 4 - CCP Output Invert The output as selected by CCPO is conditionally inverted."]
# [inline (always)]
# [must_use]
pub fn octl_01_ccpoinv (& mut self) -> OCTL_01_CCPOINV_W < OCTL_01_SPEC , 4 > { OCTL_01_CCPOINV_W :: new (self) } # [doc = "Bit 5 - CCP Initial Value This bit specifies the logical value put on the signal generator state while the counter is disabled (CTRCTL.EN == 0)."]
# [inline (always)]
# [must_use]
pub fn octl_01_ccpiv (& mut self) -> OCTL_01_CCPIV_W < OCTL_01_SPEC , 5 > { OCTL_01_CCPIV_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "CCP Output Control Registers\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`octl_01::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`octl_01::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct OCTL_01_SPEC ; impl crate :: RegisterSpec for OCTL_01_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`octl_01::R`](R) reader structure"]
impl crate :: Readable for OCTL_01_SPEC { } # [doc = "`write(|w| ..)` method takes [`octl_01::W`](W) writer structure"]
impl crate :: Writable for OCTL_01_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets OCTL_01[%s]
to value 0"]
impl crate :: Resettable for OCTL_01_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "CCACT_01 (rw) register accessor: Capture or Compare Action Registers\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ccact_01::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ccact_01::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccact_01`]
module"]
pub type CCACT_01 = crate :: Reg < ccact_01 :: CCACT_01_SPEC > ; # [doc = "Capture or Compare Action Registers"]
pub mod ccact_01 { # [doc = "Register `CCACT_01[%s]` reader"]
pub type R = crate :: R < CCACT_01_SPEC > ; # [doc = "Register `CCACT_01[%s]` writer"]
pub type W = crate :: W < CCACT_01_SPEC > ; # [doc = "Field `CCACT_01_ZACT` reader - CCP Output Action on Zero Specifies what changes occur to CCP output as the result of a zero event."]
pub type CCACT_01_ZACT_R = crate :: FieldReader < CCACT_01_ZACT_A > ; # [doc = "CCP Output Action on Zero Specifies what changes occur to CCP output as the result of a zero event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCACT_01_ZACT_A { # [doc = "0: DISABLED"]
CCACT_01_ZACT_DISABLED = 0 , # [doc = "1: CCP_HIGH"]
CCACT_01_ZACT_CCP_HIGH = 1 , # [doc = "2: CCP_LOW"]
CCACT_01_ZACT_CCP_LOW = 2 , # [doc = "3: CCP_TOGGLE"]
CCACT_01_ZACT_CCP_TOGGLE = 3 , } impl From < CCACT_01_ZACT_A > for u8 { # [inline (always)]
fn from (variant : CCACT_01_ZACT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCACT_01_ZACT_A { type Ux = u8 ; } impl CCACT_01_ZACT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCACT_01_ZACT_A { match self . bits { 0 => CCACT_01_ZACT_A :: CCACT_01_ZACT_DISABLED , 1 => CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_HIGH , 2 => CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_LOW , 3 => CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_TOGGLE , _ => unreachable ! () , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ccact_01_zact_disabled (& self) -> bool { * self == CCACT_01_ZACT_A :: CCACT_01_ZACT_DISABLED } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn is_ccact_01_zact_ccp_high (& self) -> bool { * self == CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_HIGH } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn is_ccact_01_zact_ccp_low (& self) -> bool { * self == CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_LOW } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn is_ccact_01_zact_ccp_toggle (& self) -> bool { * self == CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_TOGGLE } } # [doc = "Field `CCACT_01_ZACT` writer - CCP Output Action on Zero Specifies what changes occur to CCP output as the result of a zero event."]
pub type CCACT_01_ZACT_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , CCACT_01_ZACT_A > ; impl < 'a , REG , const O : u8 > CCACT_01_ZACT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLED"]
# [inline (always)]
pub fn ccact_01_zact_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_ZACT_A :: CCACT_01_ZACT_DISABLED) } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn ccact_01_zact_ccp_high (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_HIGH) } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn ccact_01_zact_ccp_low (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_LOW) } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn ccact_01_zact_ccp_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_ZACT_A :: CCACT_01_ZACT_CCP_TOGGLE) } } # [doc = "Field `CCACT_01_LACT` reader - CCP Output Action on Load Specifies what changes occur to CCP output as the result of a load event."]
pub type CCACT_01_LACT_R = crate :: FieldReader < CCACT_01_LACT_A > ; # [doc = "CCP Output Action on Load Specifies what changes occur to CCP output as the result of a load event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCACT_01_LACT_A { # [doc = "0: DISABLED"]
CCACT_01_LACT_DISABLED = 0 , # [doc = "1: CCP_HIGH"]
CCACT_01_LACT_CCP_HIGH = 1 , # [doc = "2: CCP_LOW"]
CCACT_01_LACT_CCP_LOW = 2 , # [doc = "3: CCP_TOGGLE"]
CCACT_01_LACT_CCP_TOGGLE = 3 , } impl From < CCACT_01_LACT_A > for u8 { # [inline (always)]
fn from (variant : CCACT_01_LACT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCACT_01_LACT_A { type Ux = u8 ; } impl CCACT_01_LACT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCACT_01_LACT_A { match self . bits { 0 => CCACT_01_LACT_A :: CCACT_01_LACT_DISABLED , 1 => CCACT_01_LACT_A :: CCACT_01_LACT_CCP_HIGH , 2 => CCACT_01_LACT_A :: CCACT_01_LACT_CCP_LOW , 3 => CCACT_01_LACT_A :: CCACT_01_LACT_CCP_TOGGLE , _ => unreachable ! () , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ccact_01_lact_disabled (& self) -> bool { * self == CCACT_01_LACT_A :: CCACT_01_LACT_DISABLED } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn is_ccact_01_lact_ccp_high (& self) -> bool { * self == CCACT_01_LACT_A :: CCACT_01_LACT_CCP_HIGH } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn is_ccact_01_lact_ccp_low (& self) -> bool { * self == CCACT_01_LACT_A :: CCACT_01_LACT_CCP_LOW } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn is_ccact_01_lact_ccp_toggle (& self) -> bool { * self == CCACT_01_LACT_A :: CCACT_01_LACT_CCP_TOGGLE } } # [doc = "Field `CCACT_01_LACT` writer - CCP Output Action on Load Specifies what changes occur to CCP output as the result of a load event."]
pub type CCACT_01_LACT_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , CCACT_01_LACT_A > ; impl < 'a , REG , const O : u8 > CCACT_01_LACT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLED"]
# [inline (always)]
pub fn ccact_01_lact_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_LACT_A :: CCACT_01_LACT_DISABLED) } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn ccact_01_lact_ccp_high (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_LACT_A :: CCACT_01_LACT_CCP_HIGH) } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn ccact_01_lact_ccp_low (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_LACT_A :: CCACT_01_LACT_CCP_LOW) } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn ccact_01_lact_ccp_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_LACT_A :: CCACT_01_LACT_CCP_TOGGLE) } } # [doc = "Field `CCACT_01_CDACT` reader - CCP Output Action on Compare (Down) This field describes the resulting action of the signal generator upon detecting a compare event while counting down."]
pub type CCACT_01_CDACT_R = crate :: FieldReader < CCACT_01_CDACT_A > ; # [doc = "CCP Output Action on Compare (Down) This field describes the resulting action of the signal generator upon detecting a compare event while counting down.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCACT_01_CDACT_A { # [doc = "0: DISABLED"]
CCACT_01_CDACT_DISABLED = 0 , # [doc = "1: CCP_HIGH"]
CCACT_01_CDACT_CCP_HIGH = 1 , # [doc = "2: CCP_LOW"]
CCACT_01_CDACT_CCP_LOW = 2 , # [doc = "3: CCP_TOGGLE"]
CCACT_01_CDACT_CCP_TOGGLE = 3 , } impl From < CCACT_01_CDACT_A > for u8 { # [inline (always)]
fn from (variant : CCACT_01_CDACT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCACT_01_CDACT_A { type Ux = u8 ; } impl CCACT_01_CDACT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCACT_01_CDACT_A { match self . bits { 0 => CCACT_01_CDACT_A :: CCACT_01_CDACT_DISABLED , 1 => CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_HIGH , 2 => CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_LOW , 3 => CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_TOGGLE , _ => unreachable ! () , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ccact_01_cdact_disabled (& self) -> bool { * self == CCACT_01_CDACT_A :: CCACT_01_CDACT_DISABLED } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn is_ccact_01_cdact_ccp_high (& self) -> bool { * self == CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_HIGH } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn is_ccact_01_cdact_ccp_low (& self) -> bool { * self == CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_LOW } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn is_ccact_01_cdact_ccp_toggle (& self) -> bool { * self == CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_TOGGLE } } # [doc = "Field `CCACT_01_CDACT` writer - CCP Output Action on Compare (Down) This field describes the resulting action of the signal generator upon detecting a compare event while counting down."]
pub type CCACT_01_CDACT_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , CCACT_01_CDACT_A > ; impl < 'a , REG , const O : u8 > CCACT_01_CDACT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLED"]
# [inline (always)]
pub fn ccact_01_cdact_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CDACT_A :: CCACT_01_CDACT_DISABLED) } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn ccact_01_cdact_ccp_high (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_HIGH) } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn ccact_01_cdact_ccp_low (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_LOW) } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn ccact_01_cdact_ccp_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CDACT_A :: CCACT_01_CDACT_CCP_TOGGLE) } } # [doc = "Field `CCACT_01_CUACT` reader - CCP Output Action on Compare (Up) This field describes the resulting action of the signal generator upon detecting a compare event while counting up."]
pub type CCACT_01_CUACT_R = crate :: FieldReader < CCACT_01_CUACT_A > ; # [doc = "CCP Output Action on Compare (Up) This field describes the resulting action of the signal generator upon detecting a compare event while counting up.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCACT_01_CUACT_A { # [doc = "0: DISABLED"]
CCACT_01_CUACT_DISABLED = 0 , # [doc = "1: CCP_HIGH"]
CCACT_01_CUACT_CCP_HIGH = 1 , # [doc = "2: CCP_LOW"]
CCACT_01_CUACT_CCP_LOW = 2 , # [doc = "3: CCP_TOGGLE"]
CCACT_01_CUACT_CCP_TOGGLE = 3 , } impl From < CCACT_01_CUACT_A > for u8 { # [inline (always)]
fn from (variant : CCACT_01_CUACT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCACT_01_CUACT_A { type Ux = u8 ; } impl CCACT_01_CUACT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCACT_01_CUACT_A { match self . bits { 0 => CCACT_01_CUACT_A :: CCACT_01_CUACT_DISABLED , 1 => CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_HIGH , 2 => CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_LOW , 3 => CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_TOGGLE , _ => unreachable ! () , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ccact_01_cuact_disabled (& self) -> bool { * self == CCACT_01_CUACT_A :: CCACT_01_CUACT_DISABLED } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn is_ccact_01_cuact_ccp_high (& self) -> bool { * self == CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_HIGH } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn is_ccact_01_cuact_ccp_low (& self) -> bool { * self == CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_LOW } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn is_ccact_01_cuact_ccp_toggle (& self) -> bool { * self == CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_TOGGLE } } # [doc = "Field `CCACT_01_CUACT` writer - CCP Output Action on Compare (Up) This field describes the resulting action of the signal generator upon detecting a compare event while counting up."]
pub type CCACT_01_CUACT_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , CCACT_01_CUACT_A > ; impl < 'a , REG , const O : u8 > CCACT_01_CUACT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLED"]
# [inline (always)]
pub fn ccact_01_cuact_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CUACT_A :: CCACT_01_CUACT_DISABLED) } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn ccact_01_cuact_ccp_high (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_HIGH) } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn ccact_01_cuact_ccp_low (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_LOW) } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn ccact_01_cuact_ccp_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CUACT_A :: CCACT_01_CUACT_CCP_TOGGLE) } } # [doc = "Field `CCACT_01_CC2DACT` reader - CCP Output Action on CC2D event."]
pub type CCACT_01_CC2DACT_R = crate :: FieldReader < CCACT_01_CC2DACT_A > ; # [doc = "CCP Output Action on CC2D event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCACT_01_CC2DACT_A { # [doc = "0: DISABLED"]
CCACT_01_CC2DACT_DISABLED = 0 , # [doc = "1: CCP_HIGH"]
CCACT_01_CC2DACT_CCP_HIGH = 1 , # [doc = "2: CCP_LOW"]
CCACT_01_CC2DACT_CCP_LOW = 2 , # [doc = "3: CCP_TOGGLE"]
CCACT_01_CC2DACT_CCP_TOGGLE = 3 , } impl From < CCACT_01_CC2DACT_A > for u8 { # [inline (always)]
fn from (variant : CCACT_01_CC2DACT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCACT_01_CC2DACT_A { type Ux = u8 ; } impl CCACT_01_CC2DACT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCACT_01_CC2DACT_A { match self . bits { 0 => CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_DISABLED , 1 => CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_HIGH , 2 => CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_LOW , 3 => CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_TOGGLE , _ => unreachable ! () , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ccact_01_cc2dact_disabled (& self) -> bool { * self == CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_DISABLED } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn is_ccact_01_cc2dact_ccp_high (& self) -> bool { * self == CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_HIGH } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn is_ccact_01_cc2dact_ccp_low (& self) -> bool { * self == CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_LOW } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn is_ccact_01_cc2dact_ccp_toggle (& self) -> bool { * self == CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_TOGGLE } } # [doc = "Field `CCACT_01_CC2DACT` writer - CCP Output Action on CC2D event."]
pub type CCACT_01_CC2DACT_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , CCACT_01_CC2DACT_A > ; impl < 'a , REG , const O : u8 > CCACT_01_CC2DACT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLED"]
# [inline (always)]
pub fn ccact_01_cc2dact_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_DISABLED) } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn ccact_01_cc2dact_ccp_high (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_HIGH) } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn ccact_01_cc2dact_ccp_low (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_LOW) } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn ccact_01_cc2dact_ccp_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CC2DACT_A :: CCACT_01_CC2DACT_CCP_TOGGLE) } } # [doc = "Field `CCACT_01_CC2UACT` reader - CCP Output Action on CC2U event."]
pub type CCACT_01_CC2UACT_R = crate :: FieldReader < CCACT_01_CC2UACT_A > ; # [doc = "CCP Output Action on CC2U event.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCACT_01_CC2UACT_A { # [doc = "0: DISABLED"]
CCACT_01_CC2UACT_DISABLED = 0 , # [doc = "1: CCP_HIGH"]
CCACT_01_CC2UACT_CCP_HIGH = 1 , # [doc = "2: CCP_LOW"]
CCACT_01_CC2UACT_CCP_LOW = 2 , # [doc = "3: CCP_TOGGLE"]
CCACT_01_CC2UACT_CCP_TOGGLE = 3 , } impl From < CCACT_01_CC2UACT_A > for u8 { # [inline (always)]
fn from (variant : CCACT_01_CC2UACT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCACT_01_CC2UACT_A { type Ux = u8 ; } impl CCACT_01_CC2UACT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> CCACT_01_CC2UACT_A { match self . bits { 0 => CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_DISABLED , 1 => CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_HIGH , 2 => CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_LOW , 3 => CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_TOGGLE , _ => unreachable ! () , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ccact_01_cc2uact_disabled (& self) -> bool { * self == CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_DISABLED } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn is_ccact_01_cc2uact_ccp_high (& self) -> bool { * self == CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_HIGH } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn is_ccact_01_cc2uact_ccp_low (& self) -> bool { * self == CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_LOW } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn is_ccact_01_cc2uact_ccp_toggle (& self) -> bool { * self == CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_TOGGLE } } # [doc = "Field `CCACT_01_CC2UACT` writer - CCP Output Action on CC2U event."]
pub type CCACT_01_CC2UACT_W < 'a , REG , const O : u8 > = crate :: FieldWriterSafe < 'a , REG , 2 , O , CCACT_01_CC2UACT_A > ; impl < 'a , REG , const O : u8 > CCACT_01_CC2UACT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLED"]
# [inline (always)]
pub fn ccact_01_cc2uact_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_DISABLED) } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn ccact_01_cc2uact_ccp_high (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_HIGH) } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn ccact_01_cc2uact_ccp_low (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_LOW) } # [doc = "CCP_TOGGLE"]
# [inline (always)]
pub fn ccact_01_cc2uact_ccp_toggle (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_CC2UACT_A :: CCACT_01_CC2UACT_CCP_TOGGLE) } } # [doc = "Field `CCACT_01_SWFRCACT` reader - CCP Output Action on Software Froce Output This field describes the resulting action of software force. This action has a shadow register, which will be updated under specific condition. So that this register cannot take into effect immediately."]
pub type CCACT_01_SWFRCACT_R = crate :: FieldReader < CCACT_01_SWFRCACT_A > ; # [doc = "CCP Output Action on Software Froce Output This field describes the resulting action of software force. This action has a shadow register, which will be updated under specific condition. So that this register cannot take into effect immediately.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum CCACT_01_SWFRCACT_A { # [doc = "0: DISABLED"]
CCACT_01_SWFRCACT_DISABLED = 0 , # [doc = "1: CCP_HIGH"]
CCACT_01_SWFRCACT_CCP_HIGH = 1 , # [doc = "2: CCP_LOW"]
CCACT_01_SWFRCACT_CCP_LOW = 2 , } impl From < CCACT_01_SWFRCACT_A > for u8 { # [inline (always)]
fn from (variant : CCACT_01_SWFRCACT_A) -> Self { variant as _ } } impl crate :: FieldSpec for CCACT_01_SWFRCACT_A { type Ux = u8 ; } impl CCACT_01_SWFRCACT_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < CCACT_01_SWFRCACT_A > { match self . bits { 0 => Some (CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_DISABLED) , 1 => Some (CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_CCP_HIGH) , 2 => Some (CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_CCP_LOW) , _ => None , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ccact_01_swfrcact_disabled (& self) -> bool { * self == CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_DISABLED } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn is_ccact_01_swfrcact_ccp_high (& self) -> bool { * self == CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_CCP_HIGH } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn is_ccact_01_swfrcact_ccp_low (& self) -> bool { * self == CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_CCP_LOW } } # [doc = "Field `CCACT_01_SWFRCACT` writer - CCP Output Action on Software Froce Output This field describes the resulting action of software force. This action has a shadow register, which will be updated under specific condition. So that this register cannot take into effect immediately."]
pub type CCACT_01_SWFRCACT_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , CCACT_01_SWFRCACT_A > ; impl < 'a , REG , const O : u8 > CCACT_01_SWFRCACT_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "DISABLED"]
# [inline (always)]
pub fn ccact_01_swfrcact_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_DISABLED) } # [doc = "CCP_HIGH"]
# [inline (always)]
pub fn ccact_01_swfrcact_ccp_high (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_CCP_HIGH) } # [doc = "CCP_LOW"]
# [inline (always)]
pub fn ccact_01_swfrcact_ccp_low (self) -> & 'a mut crate :: W < REG > { self . variant (CCACT_01_SWFRCACT_A :: CCACT_01_SWFRCACT_CCP_LOW) } } impl R { # [doc = "Bits 0:1 - CCP Output Action on Zero Specifies what changes occur to CCP output as the result of a zero event."]
# [inline (always)]
pub fn ccact_01_zact (& self) -> CCACT_01_ZACT_R { CCACT_01_ZACT_R :: new ((self . bits & 3) as u8) } # [doc = "Bits 3:4 - CCP Output Action on Load Specifies what changes occur to CCP output as the result of a load event."]
# [inline (always)]
pub fn ccact_01_lact (& self) -> CCACT_01_LACT_R { CCACT_01_LACT_R :: new (((self . bits >> 3) & 3) as u8) } # [doc = "Bits 6:7 - CCP Output Action on Compare (Down) This field describes the resulting action of the signal generator upon detecting a compare event while counting down."]
# [inline (always)]
pub fn ccact_01_cdact (& self) -> CCACT_01_CDACT_R { CCACT_01_CDACT_R :: new (((self . bits >> 6) & 3) as u8) } # [doc = "Bits 9:10 - CCP Output Action on Compare (Up) This field describes the resulting action of the signal generator upon detecting a compare event while counting up."]
# [inline (always)]
pub fn ccact_01_cuact (& self) -> CCACT_01_CUACT_R { CCACT_01_CUACT_R :: new (((self . bits >> 9) & 3) as u8) } # [doc = "Bits 12:13 - CCP Output Action on CC2D event."]
# [inline (always)]
pub fn ccact_01_cc2dact (& self) -> CCACT_01_CC2DACT_R { CCACT_01_CC2DACT_R :: new (((self . bits >> 12) & 3) as u8) } # [doc = "Bits 15:16 - CCP Output Action on CC2U event."]
# [inline (always)]
pub fn ccact_01_cc2uact (& self) -> CCACT_01_CC2UACT_R { CCACT_01_CC2UACT_R :: new (((self . bits >> 15) & 3) as u8) } # [doc = "Bits 28:29 - CCP Output Action on Software Froce Output This field describes the resulting action of software force. This action has a shadow register, which will be updated under specific condition. So that this register cannot take into effect immediately."]
# [inline (always)]
pub fn ccact_01_swfrcact (& self) -> CCACT_01_SWFRCACT_R { CCACT_01_SWFRCACT_R :: new (((self . bits >> 28) & 3) as u8) } } impl W { # [doc = "Bits 0:1 - CCP Output Action on Zero Specifies what changes occur to CCP output as the result of a zero event."]
# [inline (always)]
# [must_use]
pub fn ccact_01_zact (& mut self) -> CCACT_01_ZACT_W < CCACT_01_SPEC , 0 > { CCACT_01_ZACT_W :: new (self) } # [doc = "Bits 3:4 - CCP Output Action on Load Specifies what changes occur to CCP output as the result of a load event."]
# [inline (always)]
# [must_use]
pub fn ccact_01_lact (& mut self) -> CCACT_01_LACT_W < CCACT_01_SPEC , 3 > { CCACT_01_LACT_W :: new (self) } # [doc = "Bits 6:7 - CCP Output Action on Compare (Down) This field describes the resulting action of the signal generator upon detecting a compare event while counting down."]
# [inline (always)]
# [must_use]
pub fn ccact_01_cdact (& mut self) -> CCACT_01_CDACT_W < CCACT_01_SPEC , 6 > { CCACT_01_CDACT_W :: new (self) } # [doc = "Bits 9:10 - CCP Output Action on Compare (Up) This field describes the resulting action of the signal generator upon detecting a compare event while counting up."]
# [inline (always)]
# [must_use]
pub fn ccact_01_cuact (& mut self) -> CCACT_01_CUACT_W < CCACT_01_SPEC , 9 > { CCACT_01_CUACT_W :: new (self) } # [doc = "Bits 12:13 - CCP Output Action on CC2D event."]
# [inline (always)]
# [must_use]
pub fn ccact_01_cc2dact (& mut self) -> CCACT_01_CC2DACT_W < CCACT_01_SPEC , 12 > { CCACT_01_CC2DACT_W :: new (self) } # [doc = "Bits 15:16 - CCP Output Action on CC2U event."]
# [inline (always)]
# [must_use]
pub fn ccact_01_cc2uact (& mut self) -> CCACT_01_CC2UACT_W < CCACT_01_SPEC , 15 > { CCACT_01_CC2UACT_W :: new (self) } # [doc = "Bits 28:29 - CCP Output Action on Software Froce Output This field describes the resulting action of software force. This action has a shadow register, which will be updated under specific condition. So that this register cannot take into effect immediately."]
# [inline (always)]
# [must_use]
pub fn ccact_01_swfrcact (& mut self) -> CCACT_01_SWFRCACT_W < CCACT_01_SPEC , 28 > { CCACT_01_SWFRCACT_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Capture or Compare Action Registers\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ccact_01::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ccact_01::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CCACT_01_SPEC ; impl crate :: RegisterSpec for CCACT_01_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ccact_01::R`](R) reader structure"]
impl crate :: Readable for CCACT_01_SPEC { } # [doc = "`write(|w| ..)` method takes [`ccact_01::W`](W) writer structure"]
impl crate :: Writable for CCACT_01_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets CCACT_01[%s]
to value 0"]
impl crate :: Resettable for CCACT_01_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "IFCTL_01 (rw) register accessor: Input Filter Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ifctl_01::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ifctl_01::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ifctl_01`]
module"]
pub type IFCTL_01 = crate :: Reg < ifctl_01 :: IFCTL_01_SPEC > ; # [doc = "Input Filter Control Register"]
pub mod ifctl_01 { # [doc = "Register `IFCTL_01[%s]` reader"]
pub type R = crate :: R < IFCTL_01_SPEC > ; # [doc = "Register `IFCTL_01[%s]` writer"]
pub type W = crate :: W < IFCTL_01_SPEC > ; # [doc = "Field `IFCTL_01_ISEL` reader - Input Select (CCP0) This field selects the input source to the filter input. 4h-7h = Reserved"]
pub type IFCTL_01_ISEL_R = crate :: FieldReader < IFCTL_01_ISEL_A > ; # [doc = "Input Select (CCP0) This field selects the input source to the filter input. 4h-7h = Reserved\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum IFCTL_01_ISEL_A { # [doc = "0: CCPX_INPUT"]
IFCTL_01_ISEL_CCPX_INPUT = 0 , # [doc = "1: CCPX_INPUT_PAIR"]
IFCTL_01_ISEL_CCPX_INPUT_PAIR = 1 , # [doc = "2: CCP0_INPUT"]
IFCTL_01_ISEL_CCP0_INPUT = 2 , # [doc = "3: TRIG_INPUT"]
IFCTL_01_ISEL_TRIG_INPUT = 3 , # [doc = "4: CCP_XOR"]
IFCTL_01_ISEL_CCP_XOR = 4 , # [doc = "5: FSUB0"]
IFCTL_01_ISEL_FSUB0 = 5 , # [doc = "6: FSUB1"]
IFCTL_01_ISEL_FSUB1 = 6 , # [doc = "7: COMP0"]
IFCTL_01_ISEL_COMP0 = 7 , # [doc = "8: COMP1"]
IFCTL_01_ISEL_COMP1 = 8 , # [doc = "9: COMP2"]
IFCTL_01_ISEL_COMP2 = 9 , } impl From < IFCTL_01_ISEL_A > for u8 { # [inline (always)]
fn from (variant : IFCTL_01_ISEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for IFCTL_01_ISEL_A { type Ux = u8 ; } impl IFCTL_01_ISEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < IFCTL_01_ISEL_A > { match self . bits { 0 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCPX_INPUT) , 1 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCPX_INPUT_PAIR) , 2 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCP0_INPUT) , 3 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_TRIG_INPUT) , 4 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCP_XOR) , 5 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_FSUB0) , 6 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_FSUB1) , 7 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP0) , 8 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP1) , 9 => Some (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP2) , _ => None , } } # [doc = "CCPX_INPUT"]
# [inline (always)]
pub fn is_ifctl_01_isel_ccpx_input (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCPX_INPUT } # [doc = "CCPX_INPUT_PAIR"]
# [inline (always)]
pub fn is_ifctl_01_isel_ccpx_input_pair (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCPX_INPUT_PAIR } # [doc = "CCP0_INPUT"]
# [inline (always)]
pub fn is_ifctl_01_isel_ccp0_input (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCP0_INPUT } # [doc = "TRIG_INPUT"]
# [inline (always)]
pub fn is_ifctl_01_isel_trig_input (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_TRIG_INPUT } # [doc = "CCP_XOR"]
# [inline (always)]
pub fn is_ifctl_01_isel_ccp_xor (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCP_XOR } # [doc = "FSUB0"]
# [inline (always)]
pub fn is_ifctl_01_isel_fsub0 (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_FSUB0 } # [doc = "FSUB1"]
# [inline (always)]
pub fn is_ifctl_01_isel_fsub1 (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_FSUB1 } # [doc = "COMP0"]
# [inline (always)]
pub fn is_ifctl_01_isel_comp0 (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP0 } # [doc = "COMP1"]
# [inline (always)]
pub fn is_ifctl_01_isel_comp1 (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP1 } # [doc = "COMP2"]
# [inline (always)]
pub fn is_ifctl_01_isel_comp2 (& self) -> bool { * self == IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP2 } } # [doc = "Field `IFCTL_01_ISEL` writer - Input Select (CCP0) This field selects the input source to the filter input. 4h-7h = Reserved"]
pub type IFCTL_01_ISEL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 4 , O , IFCTL_01_ISEL_A > ; impl < 'a , REG , const O : u8 > IFCTL_01_ISEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "CCPX_INPUT"]
# [inline (always)]
pub fn ifctl_01_isel_ccpx_input (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCPX_INPUT) } # [doc = "CCPX_INPUT_PAIR"]
# [inline (always)]
pub fn ifctl_01_isel_ccpx_input_pair (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCPX_INPUT_PAIR) } # [doc = "CCP0_INPUT"]
# [inline (always)]
pub fn ifctl_01_isel_ccp0_input (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCP0_INPUT) } # [doc = "TRIG_INPUT"]
# [inline (always)]
pub fn ifctl_01_isel_trig_input (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_TRIG_INPUT) } # [doc = "CCP_XOR"]
# [inline (always)]
pub fn ifctl_01_isel_ccp_xor (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_CCP_XOR) } # [doc = "FSUB0"]
# [inline (always)]
pub fn ifctl_01_isel_fsub0 (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_FSUB0) } # [doc = "FSUB1"]
# [inline (always)]
pub fn ifctl_01_isel_fsub1 (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_FSUB1) } # [doc = "COMP0"]
# [inline (always)]
pub fn ifctl_01_isel_comp0 (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP0) } # [doc = "COMP1"]
# [inline (always)]
pub fn ifctl_01_isel_comp1 (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP1) } # [doc = "COMP2"]
# [inline (always)]
pub fn ifctl_01_isel_comp2 (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_ISEL_A :: IFCTL_01_ISEL_COMP2) } } # [doc = "Field `IFCTL_01_INV` reader - Input Inversion This bit controls whether the selected input is inverted."]
pub type IFCTL_01_INV_R = crate :: BitReader < IFCTL_01_INV_A > ; # [doc = "Input Inversion This bit controls whether the selected input is inverted.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IFCTL_01_INV_A { # [doc = "0: NOINVERT"]
IFCTL_01_INV_NOINVERT = 0 , # [doc = "1: INVERT"]
IFCTL_01_INV_INVERT = 1 , } impl From < IFCTL_01_INV_A > for bool { # [inline (always)]
fn from (variant : IFCTL_01_INV_A) -> Self { variant as u8 != 0 } } impl IFCTL_01_INV_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IFCTL_01_INV_A { match self . bits { false => IFCTL_01_INV_A :: IFCTL_01_INV_NOINVERT , true => IFCTL_01_INV_A :: IFCTL_01_INV_INVERT , } } # [doc = "NOINVERT"]
# [inline (always)]
pub fn is_ifctl_01_inv_noinvert (& self) -> bool { * self == IFCTL_01_INV_A :: IFCTL_01_INV_NOINVERT } # [doc = "INVERT"]
# [inline (always)]
pub fn is_ifctl_01_inv_invert (& self) -> bool { * self == IFCTL_01_INV_A :: IFCTL_01_INV_INVERT } } # [doc = "Field `IFCTL_01_INV` writer - Input Inversion This bit controls whether the selected input is inverted."]
pub type IFCTL_01_INV_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IFCTL_01_INV_A > ; impl < 'a , REG , const O : u8 > IFCTL_01_INV_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "NOINVERT"]
# [inline (always)]
pub fn ifctl_01_inv_noinvert (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_INV_A :: IFCTL_01_INV_NOINVERT) } # [doc = "INVERT"]
# [inline (always)]
pub fn ifctl_01_inv_invert (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_INV_A :: IFCTL_01_INV_INVERT) } } # [doc = "Field `IFCTL_01_FP` reader - Filter Period. This field specifies the sample period for the input filter. I.e. The input is sampled for FP timer clocks during filtering."]
pub type IFCTL_01_FP_R = crate :: FieldReader < IFCTL_01_FP_A > ; # [doc = "Filter Period. This field specifies the sample period for the input filter. I.e. The input is sampled for FP timer clocks during filtering.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum IFCTL_01_FP_A { # [doc = "0: _3"]
IFCTL_01_FP__3 = 0 , # [doc = "1: _5"]
IFCTL_01_FP__5 = 1 , # [doc = "2: _8"]
IFCTL_01_FP__8 = 2 , } impl From < IFCTL_01_FP_A > for u8 { # [inline (always)]
fn from (variant : IFCTL_01_FP_A) -> Self { variant as _ } } impl crate :: FieldSpec for IFCTL_01_FP_A { type Ux = u8 ; } impl IFCTL_01_FP_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < IFCTL_01_FP_A > { match self . bits { 0 => Some (IFCTL_01_FP_A :: IFCTL_01_FP__3) , 1 => Some (IFCTL_01_FP_A :: IFCTL_01_FP__5) , 2 => Some (IFCTL_01_FP_A :: IFCTL_01_FP__8) , _ => None , } } # [doc = "_3"]
# [inline (always)]
pub fn is_ifctl_01_fp__3 (& self) -> bool { * self == IFCTL_01_FP_A :: IFCTL_01_FP__3 } # [doc = "_5"]
# [inline (always)]
pub fn is_ifctl_01_fp__5 (& self) -> bool { * self == IFCTL_01_FP_A :: IFCTL_01_FP__5 } # [doc = "_8"]
# [inline (always)]
pub fn is_ifctl_01_fp__8 (& self) -> bool { * self == IFCTL_01_FP_A :: IFCTL_01_FP__8 } } # [doc = "Field `IFCTL_01_FP` writer - Filter Period. This field specifies the sample period for the input filter. I.e. The input is sampled for FP timer clocks during filtering."]
pub type IFCTL_01_FP_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 2 , O , IFCTL_01_FP_A > ; impl < 'a , REG , const O : u8 > IFCTL_01_FP_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "_3"]
# [inline (always)]
pub fn ifctl_01_fp__3 (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_FP_A :: IFCTL_01_FP__3) } # [doc = "_5"]
# [inline (always)]
pub fn ifctl_01_fp__5 (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_FP_A :: IFCTL_01_FP__5) } # [doc = "_8"]
# [inline (always)]
pub fn ifctl_01_fp__8 (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_FP_A :: IFCTL_01_FP__8) } } # [doc = "Field `IFCTL_01_CPV` reader - Consecutive Period/Voting Select This bit controls whether the input filter uses a stricter consecutive period count or majority voting."]
pub type IFCTL_01_CPV_R = crate :: BitReader < IFCTL_01_CPV_A > ; # [doc = "Consecutive Period/Voting Select This bit controls whether the input filter uses a stricter consecutive period count or majority voting.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IFCTL_01_CPV_A { # [doc = "0: CONSECUTIVE"]
IFCTL_01_CPV_CONSECUTIVE = 0 , # [doc = "1: VOTING"]
IFCTL_01_CPV_VOTING = 1 , } impl From < IFCTL_01_CPV_A > for bool { # [inline (always)]
fn from (variant : IFCTL_01_CPV_A) -> Self { variant as u8 != 0 } } impl IFCTL_01_CPV_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IFCTL_01_CPV_A { match self . bits { false => IFCTL_01_CPV_A :: IFCTL_01_CPV_CONSECUTIVE , true => IFCTL_01_CPV_A :: IFCTL_01_CPV_VOTING , } } # [doc = "CONSECUTIVE"]
# [inline (always)]
pub fn is_ifctl_01_cpv_consecutive (& self) -> bool { * self == IFCTL_01_CPV_A :: IFCTL_01_CPV_CONSECUTIVE } # [doc = "VOTING"]
# [inline (always)]
pub fn is_ifctl_01_cpv_voting (& self) -> bool { * self == IFCTL_01_CPV_A :: IFCTL_01_CPV_VOTING } } # [doc = "Field `IFCTL_01_CPV` writer - Consecutive Period/Voting Select This bit controls whether the input filter uses a stricter consecutive period count or majority voting."]
pub type IFCTL_01_CPV_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IFCTL_01_CPV_A > ; impl < 'a , REG , const O : u8 > IFCTL_01_CPV_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "CONSECUTIVE"]
# [inline (always)]
pub fn ifctl_01_cpv_consecutive (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_CPV_A :: IFCTL_01_CPV_CONSECUTIVE) } # [doc = "VOTING"]
# [inline (always)]
pub fn ifctl_01_cpv_voting (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_CPV_A :: IFCTL_01_CPV_VOTING) } } # [doc = "Field `IFCTL_01_FE` reader - Filter Enable This bit controls whether the input is filtered by the input filter or bypasses to the edge detect."]
pub type IFCTL_01_FE_R = crate :: BitReader < IFCTL_01_FE_A > ; # [doc = "Filter Enable This bit controls whether the input is filtered by the input filter or bypasses to the edge detect.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum IFCTL_01_FE_A { # [doc = "0: DISABLED"]
IFCTL_01_FE_DISABLED = 0 , # [doc = "1: ENABLED"]
IFCTL_01_FE_ENABLED = 1 , } impl From < IFCTL_01_FE_A > for bool { # [inline (always)]
fn from (variant : IFCTL_01_FE_A) -> Self { variant as u8 != 0 } } impl IFCTL_01_FE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> IFCTL_01_FE_A { match self . bits { false => IFCTL_01_FE_A :: IFCTL_01_FE_DISABLED , true => IFCTL_01_FE_A :: IFCTL_01_FE_ENABLED , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_ifctl_01_fe_disabled (& self) -> bool { * self == IFCTL_01_FE_A :: IFCTL_01_FE_DISABLED } # [doc = "ENABLED"]
# [inline (always)]
pub fn is_ifctl_01_fe_enabled (& self) -> bool { * self == IFCTL_01_FE_A :: IFCTL_01_FE_ENABLED } } # [doc = "Field `IFCTL_01_FE` writer - Filter Enable This bit controls whether the input is filtered by the input filter or bypasses to the edge detect."]
pub type IFCTL_01_FE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , IFCTL_01_FE_A > ; impl < 'a , REG , const O : u8 > IFCTL_01_FE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn ifctl_01_fe_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_FE_A :: IFCTL_01_FE_DISABLED) } # [doc = "ENABLED"]
# [inline (always)]
pub fn ifctl_01_fe_enabled (self) -> & 'a mut crate :: W < REG > { self . variant (IFCTL_01_FE_A :: IFCTL_01_FE_ENABLED) } } impl R { # [doc = "Bits 0:3 - Input Select (CCP0) This field selects the input source to the filter input. 4h-7h = Reserved"]
# [inline (always)]
pub fn ifctl_01_isel (& self) -> IFCTL_01_ISEL_R { IFCTL_01_ISEL_R :: new ((self . bits & 0x0f) as u8) } # [doc = "Bit 7 - Input Inversion This bit controls whether the selected input is inverted."]
# [inline (always)]
pub fn ifctl_01_inv (& self) -> IFCTL_01_INV_R { IFCTL_01_INV_R :: new (((self . bits >> 7) & 1) != 0) } # [doc = "Bits 8:9 - Filter Period. This field specifies the sample period for the input filter. I.e. The input is sampled for FP timer clocks during filtering."]
# [inline (always)]
pub fn ifctl_01_fp (& self) -> IFCTL_01_FP_R { IFCTL_01_FP_R :: new (((self . bits >> 8) & 3) as u8) } # [doc = "Bit 11 - Consecutive Period/Voting Select This bit controls whether the input filter uses a stricter consecutive period count or majority voting."]
# [inline (always)]
pub fn ifctl_01_cpv (& self) -> IFCTL_01_CPV_R { IFCTL_01_CPV_R :: new (((self . bits >> 11) & 1) != 0) } # [doc = "Bit 12 - Filter Enable This bit controls whether the input is filtered by the input filter or bypasses to the edge detect."]
# [inline (always)]
pub fn ifctl_01_fe (& self) -> IFCTL_01_FE_R { IFCTL_01_FE_R :: new (((self . bits >> 12) & 1) != 0) } } impl W { # [doc = "Bits 0:3 - Input Select (CCP0) This field selects the input source to the filter input. 4h-7h = Reserved"]
# [inline (always)]
# [must_use]
pub fn ifctl_01_isel (& mut self) -> IFCTL_01_ISEL_W < IFCTL_01_SPEC , 0 > { IFCTL_01_ISEL_W :: new (self) } # [doc = "Bit 7 - Input Inversion This bit controls whether the selected input is inverted."]
# [inline (always)]
# [must_use]
pub fn ifctl_01_inv (& mut self) -> IFCTL_01_INV_W < IFCTL_01_SPEC , 7 > { IFCTL_01_INV_W :: new (self) } # [doc = "Bits 8:9 - Filter Period. This field specifies the sample period for the input filter. I.e. The input is sampled for FP timer clocks during filtering."]
# [inline (always)]
# [must_use]
pub fn ifctl_01_fp (& mut self) -> IFCTL_01_FP_W < IFCTL_01_SPEC , 8 > { IFCTL_01_FP_W :: new (self) } # [doc = "Bit 11 - Consecutive Period/Voting Select This bit controls whether the input filter uses a stricter consecutive period count or majority voting."]
# [inline (always)]
# [must_use]
pub fn ifctl_01_cpv (& mut self) -> IFCTL_01_CPV_W < IFCTL_01_SPEC , 11 > { IFCTL_01_CPV_W :: new (self) } # [doc = "Bit 12 - Filter Enable This bit controls whether the input is filtered by the input filter or bypasses to the edge detect."]
# [inline (always)]
# [must_use]
pub fn ifctl_01_fe (& mut self) -> IFCTL_01_FE_W < IFCTL_01_SPEC , 12 > { IFCTL_01_FE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Input Filter Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ifctl_01::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ifctl_01::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IFCTL_01_SPEC ; impl crate :: RegisterSpec for IFCTL_01_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`ifctl_01::R`](R) reader structure"]
impl crate :: Readable for IFCTL_01_SPEC { } # [doc = "`write(|w| ..)` method takes [`ifctl_01::W`](W) writer structure"]
impl crate :: Writable for IFCTL_01_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets IFCTL_01[%s]
to value 0"]
impl crate :: Resettable for IFCTL_01_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } # [doc = "TSEL (rw) register accessor: Trigger Select\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`tsel::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`tsel::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tsel`]
module"]
pub type TSEL = crate :: Reg < tsel :: TSEL_SPEC > ; # [doc = "Trigger Select"]
pub mod tsel { # [doc = "Register `TSEL` reader"]
pub type R = crate :: R < TSEL_SPEC > ; # [doc = "Register `TSEL` writer"]
pub type W = crate :: W < TSEL_SPEC > ; # [doc = "Field `TSEL_ETSEL` reader - External Trigger Select. #br# This selects which System Event is used if the input filter selects trigger. Triggers 0-15 are used to connect triggers generated by other timer modules in the same power domain. Refer to the SoC datasheet to get details. Triggers 16 and 17 are connected to event manager subscriber ports. Event lines 18-31 are reserved for future use."]
pub type TSEL_ETSEL_R = crate :: FieldReader < TSEL_ETSEL_A > ; # [doc = "External Trigger Select. #br# This selects which System Event is used if the input filter selects trigger. Triggers 0-15 are used to connect triggers generated by other timer modules in the same power domain. Refer to the SoC datasheet to get details. Triggers 16 and 17 are connected to event manager subscriber ports. Event lines 18-31 are reserved for future use.\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
# [repr (u8)]
pub enum TSEL_ETSEL_A { # [doc = "0: TRIG0"]
TSEL_ETSEL_TRIG0 = 0 , # [doc = "1: TRIG1"]
TSEL_ETSEL_TRIG1 = 1 , # [doc = "2: TRIG2"]
TSEL_ETSEL_TRIG2 = 2 , # [doc = "3: TRIG3"]
TSEL_ETSEL_TRIG3 = 3 , # [doc = "4: TRIG4"]
TSEL_ETSEL_TRIG4 = 4 , # [doc = "5: TRIG5"]
TSEL_ETSEL_TRIG5 = 5 , # [doc = "6: TRIG6"]
TSEL_ETSEL_TRIG6 = 6 , # [doc = "7: TRIG7"]
TSEL_ETSEL_TRIG7 = 7 , # [doc = "8: TRIG8"]
TSEL_ETSEL_TRIG8 = 8 , # [doc = "9: TRIG9"]
TSEL_ETSEL_TRIG9 = 9 , # [doc = "10: TRIG10"]
TSEL_ETSEL_TRIG10 = 10 , # [doc = "11: TRIG11"]
TSEL_ETSEL_TRIG11 = 11 , # [doc = "12: TRIG12"]
TSEL_ETSEL_TRIG12 = 12 , # [doc = "13: TRIG13"]
TSEL_ETSEL_TRIG13 = 13 , # [doc = "14: TRIG14"]
TSEL_ETSEL_TRIG14 = 14 , # [doc = "15: TRIG15"]
TSEL_ETSEL_TRIG15 = 15 , # [doc = "16: TRIG_SUB0"]
TSEL_ETSEL_TRIG_SUB0 = 16 , # [doc = "17: TRIG_SUB1"]
TSEL_ETSEL_TRIG_SUB1 = 17 , } impl From < TSEL_ETSEL_A > for u8 { # [inline (always)]
fn from (variant : TSEL_ETSEL_A) -> Self { variant as _ } } impl crate :: FieldSpec for TSEL_ETSEL_A { type Ux = u8 ; } impl TSEL_ETSEL_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> Option < TSEL_ETSEL_A > { match self . bits { 0 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG0) , 1 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG1) , 2 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG2) , 3 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG3) , 4 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG4) , 5 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG5) , 6 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG6) , 7 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG7) , 8 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG8) , 9 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG9) , 10 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG10) , 11 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG11) , 12 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG12) , 13 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG13) , 14 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG14) , 15 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG15) , 16 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG_SUB0) , 17 => Some (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG_SUB1) , _ => None , } } # [doc = "TRIG0"]
# [inline (always)]
pub fn is_tsel_etsel_trig0 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG0 } # [doc = "TRIG1"]
# [inline (always)]
pub fn is_tsel_etsel_trig1 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG1 } # [doc = "TRIG2"]
# [inline (always)]
pub fn is_tsel_etsel_trig2 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG2 } # [doc = "TRIG3"]
# [inline (always)]
pub fn is_tsel_etsel_trig3 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG3 } # [doc = "TRIG4"]
# [inline (always)]
pub fn is_tsel_etsel_trig4 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG4 } # [doc = "TRIG5"]
# [inline (always)]
pub fn is_tsel_etsel_trig5 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG5 } # [doc = "TRIG6"]
# [inline (always)]
pub fn is_tsel_etsel_trig6 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG6 } # [doc = "TRIG7"]
# [inline (always)]
pub fn is_tsel_etsel_trig7 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG7 } # [doc = "TRIG8"]
# [inline (always)]
pub fn is_tsel_etsel_trig8 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG8 } # [doc = "TRIG9"]
# [inline (always)]
pub fn is_tsel_etsel_trig9 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG9 } # [doc = "TRIG10"]
# [inline (always)]
pub fn is_tsel_etsel_trig10 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG10 } # [doc = "TRIG11"]
# [inline (always)]
pub fn is_tsel_etsel_trig11 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG11 } # [doc = "TRIG12"]
# [inline (always)]
pub fn is_tsel_etsel_trig12 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG12 } # [doc = "TRIG13"]
# [inline (always)]
pub fn is_tsel_etsel_trig13 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG13 } # [doc = "TRIG14"]
# [inline (always)]
pub fn is_tsel_etsel_trig14 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG14 } # [doc = "TRIG15"]
# [inline (always)]
pub fn is_tsel_etsel_trig15 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG15 } # [doc = "TRIG_SUB0"]
# [inline (always)]
pub fn is_tsel_etsel_trig_sub0 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG_SUB0 } # [doc = "TRIG_SUB1"]
# [inline (always)]
pub fn is_tsel_etsel_trig_sub1 (& self) -> bool { * self == TSEL_ETSEL_A :: TSEL_ETSEL_TRIG_SUB1 } } # [doc = "Field `TSEL_ETSEL` writer - External Trigger Select. #br# This selects which System Event is used if the input filter selects trigger. Triggers 0-15 are used to connect triggers generated by other timer modules in the same power domain. Refer to the SoC datasheet to get details. Triggers 16 and 17 are connected to event manager subscriber ports. Event lines 18-31 are reserved for future use."]
pub type TSEL_ETSEL_W < 'a , REG , const O : u8 > = crate :: FieldWriter < 'a , REG , 5 , O , TSEL_ETSEL_A > ; impl < 'a , REG , const O : u8 > TSEL_ETSEL_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , REG :: Ux : From < u8 > { # [doc = "TRIG0"]
# [inline (always)]
pub fn tsel_etsel_trig0 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG0) } # [doc = "TRIG1"]
# [inline (always)]
pub fn tsel_etsel_trig1 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG1) } # [doc = "TRIG2"]
# [inline (always)]
pub fn tsel_etsel_trig2 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG2) } # [doc = "TRIG3"]
# [inline (always)]
pub fn tsel_etsel_trig3 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG3) } # [doc = "TRIG4"]
# [inline (always)]
pub fn tsel_etsel_trig4 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG4) } # [doc = "TRIG5"]
# [inline (always)]
pub fn tsel_etsel_trig5 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG5) } # [doc = "TRIG6"]
# [inline (always)]
pub fn tsel_etsel_trig6 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG6) } # [doc = "TRIG7"]
# [inline (always)]
pub fn tsel_etsel_trig7 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG7) } # [doc = "TRIG8"]
# [inline (always)]
pub fn tsel_etsel_trig8 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG8) } # [doc = "TRIG9"]
# [inline (always)]
pub fn tsel_etsel_trig9 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG9) } # [doc = "TRIG10"]
# [inline (always)]
pub fn tsel_etsel_trig10 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG10) } # [doc = "TRIG11"]
# [inline (always)]
pub fn tsel_etsel_trig11 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG11) } # [doc = "TRIG12"]
# [inline (always)]
pub fn tsel_etsel_trig12 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG12) } # [doc = "TRIG13"]
# [inline (always)]
pub fn tsel_etsel_trig13 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG13) } # [doc = "TRIG14"]
# [inline (always)]
pub fn tsel_etsel_trig14 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG14) } # [doc = "TRIG15"]
# [inline (always)]
pub fn tsel_etsel_trig15 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG15) } # [doc = "TRIG_SUB0"]
# [inline (always)]
pub fn tsel_etsel_trig_sub0 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG_SUB0) } # [doc = "TRIG_SUB1"]
# [inline (always)]
pub fn tsel_etsel_trig_sub1 (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_ETSEL_A :: TSEL_ETSEL_TRIG_SUB1) } } # [doc = "Field `TSEL_TE` reader - Trigger Enable. This selects whether a trigger is enabled or not for this counter 0x0 = Triggers are not used 0x1 = Triggers are used as selected by the ETSEL field"]
pub type TSEL_TE_R = crate :: BitReader < TSEL_TE_A > ; # [doc = "Trigger Enable. This selects whether a trigger is enabled or not for this counter 0x0 = Triggers are not used 0x1 = Triggers are used as selected by the ETSEL field\n\nValue on reset: 0"]
# [derive (Clone , Copy , Debug , PartialEq , Eq)]
pub enum TSEL_TE_A { # [doc = "0: DISABLED"]
TSEL_TE_DISABLED = 0 , # [doc = "1: ENABLED"]
TSEL_TE_ENABLED = 1 , } impl From < TSEL_TE_A > for bool { # [inline (always)]
fn from (variant : TSEL_TE_A) -> Self { variant as u8 != 0 } } impl TSEL_TE_R { # [doc = "Get enumerated values variant"]
# [inline (always)]
pub const fn variant (& self) -> TSEL_TE_A { match self . bits { false => TSEL_TE_A :: TSEL_TE_DISABLED , true => TSEL_TE_A :: TSEL_TE_ENABLED , } } # [doc = "DISABLED"]
# [inline (always)]
pub fn is_tsel_te_disabled (& self) -> bool { * self == TSEL_TE_A :: TSEL_TE_DISABLED } # [doc = "ENABLED"]
# [inline (always)]
pub fn is_tsel_te_enabled (& self) -> bool { * self == TSEL_TE_A :: TSEL_TE_ENABLED } } # [doc = "Field `TSEL_TE` writer - Trigger Enable. This selects whether a trigger is enabled or not for this counter 0x0 = Triggers are not used 0x1 = Triggers are used as selected by the ETSEL field"]
pub type TSEL_TE_W < 'a , REG , const O : u8 > = crate :: BitWriter < 'a , REG , O , TSEL_TE_A > ; impl < 'a , REG , const O : u8 > TSEL_TE_W < 'a , REG , O > where REG : crate :: Writable + crate :: RegisterSpec , { # [doc = "DISABLED"]
# [inline (always)]
pub fn tsel_te_disabled (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_TE_A :: TSEL_TE_DISABLED) } # [doc = "ENABLED"]
# [inline (always)]
pub fn tsel_te_enabled (self) -> & 'a mut crate :: W < REG > { self . variant (TSEL_TE_A :: TSEL_TE_ENABLED) } } impl R { # [doc = "Bits 0:4 - External Trigger Select. #br# This selects which System Event is used if the input filter selects trigger. Triggers 0-15 are used to connect triggers generated by other timer modules in the same power domain. Refer to the SoC datasheet to get details. Triggers 16 and 17 are connected to event manager subscriber ports. Event lines 18-31 are reserved for future use."]
# [inline (always)]
pub fn tsel_etsel (& self) -> TSEL_ETSEL_R { TSEL_ETSEL_R :: new ((self . bits & 0x1f) as u8) } # [doc = "Bit 9 - Trigger Enable. This selects whether a trigger is enabled or not for this counter 0x0 = Triggers are not used 0x1 = Triggers are used as selected by the ETSEL field"]
# [inline (always)]
pub fn tsel_te (& self) -> TSEL_TE_R { TSEL_TE_R :: new (((self . bits >> 9) & 1) != 0) } } impl W { # [doc = "Bits 0:4 - External Trigger Select. #br# This selects which System Event is used if the input filter selects trigger. Triggers 0-15 are used to connect triggers generated by other timer modules in the same power domain. Refer to the SoC datasheet to get details. Triggers 16 and 17 are connected to event manager subscriber ports. Event lines 18-31 are reserved for future use."]
# [inline (always)]
# [must_use]
pub fn tsel_etsel (& mut self) -> TSEL_ETSEL_W < TSEL_SPEC , 0 > { TSEL_ETSEL_W :: new (self) } # [doc = "Bit 9 - Trigger Enable. This selects whether a trigger is enabled or not for this counter 0x0 = Triggers are not used 0x1 = Triggers are used as selected by the ETSEL field"]
# [inline (always)]
# [must_use]
pub fn tsel_te (& mut self) -> TSEL_TE_W < TSEL_SPEC , 9 > { TSEL_TE_W :: new (self) } # [doc = r" Writes raw bits to the register."]
# [doc = r""]
# [doc = r" # Safety"]
# [doc = r""]
# [doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
# [inline (always)]
pub unsafe fn bits (& mut self , bits : u32) -> & mut Self { self . bits = bits ; self } } # [doc = "Trigger Select\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`tsel::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`tsel::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct TSEL_SPEC ; impl crate :: RegisterSpec for TSEL_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`tsel::R`](R) reader structure"]
impl crate :: Readable for TSEL_SPEC { } # [doc = "`write(|w| ..)` method takes [`tsel::W`](W) writer structure"]
impl crate :: Writable for TSEL_SPEC { const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = 0 ; } # [doc = "`reset()` method sets TSEL to value 0"]
impl crate :: Resettable for TSEL_SPEC { const RESET_VALUE : Self :: Ux = 0 ; } } } # [no_mangle]
static mut DEVICE_PERIPHERALS : bool = false ; # [doc = r" All the peripherals."]
# [allow (non_snake_case)]
pub struct Peripherals { # [doc = "UART0"]
pub UART0 : UART0 , # [doc = "FLASHCTL"]
pub FLASHCTL : FLASHCTL , # [doc = "SPI0"]
pub SPI0 : SPI0 , # [doc = "I2C0"]
pub I2C0 : I2C0 , # [doc = "CPUSS"]
pub CPUSS : CPUSS , # [doc = "GPIOA"]
pub GPIOA : GPIOA , # [doc = "UART1"]
pub UART1 : UART1 , # [doc = "WWDT0"]
pub WWDT0 : WWDT0 , # [doc = "DEBUGSS"]
pub DEBUGSS : DEBUGSS , # [doc = "VREF"]
pub VREF : VREF , # [doc = "CRC"]
pub CRC : CRC , # [doc = "OPA0"]
pub OPA0 : OPA0 , # [doc = "TIMG1"]
pub TIMG1 : TIMG1 , # [doc = "DMA"]
pub DMA : DMA , # [doc = "COMP0"]
pub COMP0 : COMP0 , # [doc = "SYSCTL"]
pub SYSCTL : SYSCTL , # [doc = "OPA1"]
pub OPA1 : OPA1 , # [doc = "I2C1"]
pub I2C1 : I2C1 , # [doc = "IOMUX"]
pub IOMUX : IOMUX , # [doc = "TIMG2"]
pub TIMG2 : TIMG2 , # [doc = "TIMG4"]
pub TIMG4 : TIMG4 , # [doc = "ADC0"]
pub ADC0 : ADC0 , # [doc = "ADC0_SVT"]
pub ADC0_SVT : ADC0_SVT , # [doc = "WUC"]
pub WUC : WUC , # [doc = "TIMG0"]
pub TIMG0 : TIMG0 , } 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 { UART0 : UART0 { _marker : PhantomData } , FLASHCTL : FLASHCTL { _marker : PhantomData } , SPI0 : SPI0 { _marker : PhantomData } , I2C0 : I2C0 { _marker : PhantomData } , CPUSS : CPUSS { _marker : PhantomData } , GPIOA : GPIOA { _marker : PhantomData } , UART1 : UART1 { _marker : PhantomData } , WWDT0 : WWDT0 { _marker : PhantomData } , DEBUGSS : DEBUGSS { _marker : PhantomData } , VREF : VREF { _marker : PhantomData } , CRC : CRC { _marker : PhantomData } , OPA0 : OPA0 { _marker : PhantomData } , TIMG1 : TIMG1 { _marker : PhantomData } , DMA : DMA { _marker : PhantomData } , COMP0 : COMP0 { _marker : PhantomData } , SYSCTL : SYSCTL { _marker : PhantomData } , OPA1 : OPA1 { _marker : PhantomData } , I2C1 : I2C1 { _marker : PhantomData } , IOMUX : IOMUX { _marker : PhantomData } , TIMG2 : TIMG2 { _marker : PhantomData } , TIMG4 : TIMG4 { _marker : PhantomData } , ADC0 : ADC0 { _marker : PhantomData } , ADC0_SVT : ADC0_SVT { _marker : PhantomData } , WUC : WUC { _marker : PhantomData } , TIMG0 : TIMG0 { _marker : PhantomData } , } } }