mtb_pac_psoc6_01 0.1.1

Peripheral Access Crate for Infineon CY8C6xx6 and CY8C6xx7 PSOCâ„¢ 6 microcontrollers
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
/*
(c) (2016-2024), Cypress Semiconductor Corporation (an Infineon company)

    or an affiliate of Cypress Semiconductor Corporation.



    SPDX-License-Identifier: Apache-2.0



    Licensed under the Apache License, Version 2.0 (the "License");

    you may not use this file except in compliance with the License.

    You may obtain a copy of the License at



      http://www.apache.org/licenses/LICENSE-2.0



    Unless required by applicable law or agreed to in writing, software

    distributed under the License is distributed on an "AS IS" BASIS,

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

    See the License for the specific language governing permissions and

    limitations under the License.
*/
// Generated from SVD 1.0, with svd2pac 0.6.0 on Tue, 27 May 2025 19:21:54 +0000

#![allow(clippy::identity_op)]
#![allow(clippy::module_inception)]
#![allow(clippy::derivable_impls)]
#[allow(unused_imports)]
use crate::common::sealed;
#[allow(unused_imports)]
use crate::common::*;
#[doc = r"Serial Memory Interface"]
unsafe impl ::core::marker::Send for super::Smif {}
unsafe impl ::core::marker::Sync for super::Smif {}
impl super::Smif {
    #[allow(unused)]
    #[inline(always)]
    pub(crate) const fn _svd2pac_as_ptr(&self) -> *mut u8 {
        self.ptr
    }

    #[doc = "Control"]
    #[inline(always)]
    pub const fn ctl(&self) -> &'static crate::common::Reg<self::Ctl_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<self::Ctl_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(0usize),
            )
        }
    }

    #[doc = "Status"]
    #[inline(always)]
    pub const fn status(&self) -> &'static crate::common::Reg<self::Status_SPEC, crate::common::R> {
        unsafe {
            crate::common::Reg::<self::Status_SPEC, crate::common::R>::from_ptr(
                self._svd2pac_as_ptr().add(4usize),
            )
        }
    }

    #[doc = "Transmitter command FIFO status"]
    #[inline(always)]
    pub const fn tx_cmd_fifo_status(
        &self,
    ) -> &'static crate::common::Reg<self::TxCmdFifoStatus_SPEC, crate::common::R> {
        unsafe {
            crate::common::Reg::<self::TxCmdFifoStatus_SPEC, crate::common::R>::from_ptr(
                self._svd2pac_as_ptr().add(68usize),
            )
        }
    }

    #[doc = "Transmitter command FIFO write"]
    #[inline(always)]
    pub const fn tx_cmd_fifo_wr(
        &self,
    ) -> &'static crate::common::Reg<self::TxCmdFifoWr_SPEC, crate::common::W> {
        unsafe {
            crate::common::Reg::<self::TxCmdFifoWr_SPEC, crate::common::W>::from_ptr(
                self._svd2pac_as_ptr().add(80usize),
            )
        }
    }

    #[doc = "Transmitter data FIFO control"]
    #[inline(always)]
    pub const fn tx_data_fifo_ctl(
        &self,
    ) -> &'static crate::common::Reg<self::TxDataFifoCtl_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<self::TxDataFifoCtl_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(128usize),
            )
        }
    }

    #[doc = "Transmitter data FIFO status"]
    #[inline(always)]
    pub const fn tx_data_fifo_status(
        &self,
    ) -> &'static crate::common::Reg<self::TxDataFifoStatus_SPEC, crate::common::R> {
        unsafe {
            crate::common::Reg::<self::TxDataFifoStatus_SPEC, crate::common::R>::from_ptr(
                self._svd2pac_as_ptr().add(132usize),
            )
        }
    }

    #[doc = "Transmitter data FIFO write"]
    #[inline(always)]
    pub const fn tx_data_fifo_wr1(
        &self,
    ) -> &'static crate::common::Reg<self::TxDataFifoWr1_SPEC, crate::common::W> {
        unsafe {
            crate::common::Reg::<self::TxDataFifoWr1_SPEC, crate::common::W>::from_ptr(
                self._svd2pac_as_ptr().add(144usize),
            )
        }
    }

    #[doc = "Transmitter data FIFO write"]
    #[inline(always)]
    pub const fn tx_data_fifo_wr2(
        &self,
    ) -> &'static crate::common::Reg<self::TxDataFifoWr2_SPEC, crate::common::W> {
        unsafe {
            crate::common::Reg::<self::TxDataFifoWr2_SPEC, crate::common::W>::from_ptr(
                self._svd2pac_as_ptr().add(148usize),
            )
        }
    }

    #[doc = "Transmitter data FIFO write"]
    #[inline(always)]
    pub const fn tx_data_fifo_wr4(
        &self,
    ) -> &'static crate::common::Reg<self::TxDataFifoWr4_SPEC, crate::common::W> {
        unsafe {
            crate::common::Reg::<self::TxDataFifoWr4_SPEC, crate::common::W>::from_ptr(
                self._svd2pac_as_ptr().add(152usize),
            )
        }
    }

    #[doc = "Receiver data FIFO control"]
    #[inline(always)]
    pub const fn rx_data_fifo_ctl(
        &self,
    ) -> &'static crate::common::Reg<self::RxDataFifoCtl_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<self::RxDataFifoCtl_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(192usize),
            )
        }
    }

    #[doc = "Receiver data FIFO status"]
    #[inline(always)]
    pub const fn rx_data_fifo_status(
        &self,
    ) -> &'static crate::common::Reg<self::RxDataFifoStatus_SPEC, crate::common::R> {
        unsafe {
            crate::common::Reg::<self::RxDataFifoStatus_SPEC, crate::common::R>::from_ptr(
                self._svd2pac_as_ptr().add(196usize),
            )
        }
    }

    #[doc = "Receiver data FIFO read"]
    #[inline(always)]
    pub const fn rx_data_fifo_rd1(
        &self,
    ) -> &'static crate::common::Reg<self::RxDataFifoRd1_SPEC, crate::common::R> {
        unsafe {
            crate::common::Reg::<self::RxDataFifoRd1_SPEC, crate::common::R>::from_ptr(
                self._svd2pac_as_ptr().add(208usize),
            )
        }
    }

    #[doc = "Receiver data FIFO read"]
    #[inline(always)]
    pub const fn rx_data_fifo_rd2(
        &self,
    ) -> &'static crate::common::Reg<self::RxDataFifoRd2_SPEC, crate::common::R> {
        unsafe {
            crate::common::Reg::<self::RxDataFifoRd2_SPEC, crate::common::R>::from_ptr(
                self._svd2pac_as_ptr().add(212usize),
            )
        }
    }

    #[doc = "Receiver data FIFO read"]
    #[inline(always)]
    pub const fn rx_data_fifo_rd4(
        &self,
    ) -> &'static crate::common::Reg<self::RxDataFifoRd4_SPEC, crate::common::R> {
        unsafe {
            crate::common::Reg::<self::RxDataFifoRd4_SPEC, crate::common::R>::from_ptr(
                self._svd2pac_as_ptr().add(216usize),
            )
        }
    }

    #[doc = "Receiver data FIFO silent read"]
    #[inline(always)]
    pub const fn rx_data_fifo_rd1_silent(
        &self,
    ) -> &'static crate::common::Reg<self::RxDataFifoRd1Silent_SPEC, crate::common::R> {
        unsafe {
            crate::common::Reg::<self::RxDataFifoRd1Silent_SPEC, crate::common::R>::from_ptr(
                self._svd2pac_as_ptr().add(224usize),
            )
        }
    }

    #[doc = "Slow cache control"]
    #[inline(always)]
    pub const fn slow_ca_ctl(
        &self,
    ) -> &'static crate::common::Reg<self::SlowCaCtl_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<self::SlowCaCtl_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(256usize),
            )
        }
    }

    #[doc = "Slow cache command"]
    #[inline(always)]
    pub const fn slow_ca_cmd(
        &self,
    ) -> &'static crate::common::Reg<self::SlowCaCmd_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<self::SlowCaCmd_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(264usize),
            )
        }
    }

    #[doc = "Fast cache control"]
    #[inline(always)]
    pub const fn fast_ca_ctl(
        &self,
    ) -> &'static crate::common::Reg<self::FastCaCtl_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<self::FastCaCtl_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(384usize),
            )
        }
    }

    #[doc = "Fast cache command"]
    #[inline(always)]
    pub const fn fast_ca_cmd(
        &self,
    ) -> &'static crate::common::Reg<self::FastCaCmd_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<self::FastCaCmd_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(392usize),
            )
        }
    }

    #[doc = "Cryptography Command"]
    #[inline(always)]
    pub const fn crypto_cmd(
        &self,
    ) -> &'static crate::common::Reg<self::CryptoCmd_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<self::CryptoCmd_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(512usize),
            )
        }
    }

    #[doc = "Cryptography input 0"]
    #[inline(always)]
    pub const fn crypto_input0(
        &self,
    ) -> &'static crate::common::Reg<self::CryptoInput0_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<self::CryptoInput0_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(544usize),
            )
        }
    }

    #[doc = "Cryptography input 1"]
    #[inline(always)]
    pub const fn crypto_input1(
        &self,
    ) -> &'static crate::common::Reg<self::CryptoInput1_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<self::CryptoInput1_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(548usize),
            )
        }
    }

    #[doc = "Cryptography input 2"]
    #[inline(always)]
    pub const fn crypto_input2(
        &self,
    ) -> &'static crate::common::Reg<self::CryptoInput2_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<self::CryptoInput2_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(552usize),
            )
        }
    }

    #[doc = "Cryptography input 3"]
    #[inline(always)]
    pub const fn crypto_input3(
        &self,
    ) -> &'static crate::common::Reg<self::CryptoInput3_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<self::CryptoInput3_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(556usize),
            )
        }
    }

    #[doc = "Cryptography key 0"]
    #[inline(always)]
    pub const fn crypto_key0(
        &self,
    ) -> &'static crate::common::Reg<self::CryptoKey0_SPEC, crate::common::W> {
        unsafe {
            crate::common::Reg::<self::CryptoKey0_SPEC, crate::common::W>::from_ptr(
                self._svd2pac_as_ptr().add(576usize),
            )
        }
    }

    #[doc = "Cryptography key 1"]
    #[inline(always)]
    pub const fn crypto_key1(
        &self,
    ) -> &'static crate::common::Reg<self::CryptoKey1_SPEC, crate::common::W> {
        unsafe {
            crate::common::Reg::<self::CryptoKey1_SPEC, crate::common::W>::from_ptr(
                self._svd2pac_as_ptr().add(580usize),
            )
        }
    }

    #[doc = "Cryptography key 2"]
    #[inline(always)]
    pub const fn crypto_key2(
        &self,
    ) -> &'static crate::common::Reg<self::CryptoKey2_SPEC, crate::common::W> {
        unsafe {
            crate::common::Reg::<self::CryptoKey2_SPEC, crate::common::W>::from_ptr(
                self._svd2pac_as_ptr().add(584usize),
            )
        }
    }

    #[doc = "Cryptography key 3"]
    #[inline(always)]
    pub const fn crypto_key3(
        &self,
    ) -> &'static crate::common::Reg<self::CryptoKey3_SPEC, crate::common::W> {
        unsafe {
            crate::common::Reg::<self::CryptoKey3_SPEC, crate::common::W>::from_ptr(
                self._svd2pac_as_ptr().add(588usize),
            )
        }
    }

    #[doc = "Cryptography output 0"]
    #[inline(always)]
    pub const fn crypto_output0(
        &self,
    ) -> &'static crate::common::Reg<self::CryptoOutput0_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<self::CryptoOutput0_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(608usize),
            )
        }
    }

    #[doc = "Cryptography output 1"]
    #[inline(always)]
    pub const fn crypto_output1(
        &self,
    ) -> &'static crate::common::Reg<self::CryptoOutput1_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<self::CryptoOutput1_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(612usize),
            )
        }
    }

    #[doc = "Cryptography output 2"]
    #[inline(always)]
    pub const fn crypto_output2(
        &self,
    ) -> &'static crate::common::Reg<self::CryptoOutput2_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<self::CryptoOutput2_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(616usize),
            )
        }
    }

    #[doc = "Cryptography output 3"]
    #[inline(always)]
    pub const fn crypto_output3(
        &self,
    ) -> &'static crate::common::Reg<self::CryptoOutput3_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<self::CryptoOutput3_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(620usize),
            )
        }
    }

    #[doc = "Interrupt register"]
    #[inline(always)]
    pub const fn intr(&self) -> &'static crate::common::Reg<self::Intr_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<self::Intr_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(1984usize),
            )
        }
    }

    #[doc = "Interrupt set register"]
    #[inline(always)]
    pub const fn intr_set(
        &self,
    ) -> &'static crate::common::Reg<self::IntrSet_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<self::IntrSet_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(1988usize),
            )
        }
    }

    #[doc = "Interrupt mask register"]
    #[inline(always)]
    pub const fn intr_mask(
        &self,
    ) -> &'static crate::common::Reg<self::IntrMask_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<self::IntrMask_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(1992usize),
            )
        }
    }

    #[doc = "Interrupt masked register"]
    #[inline(always)]
    pub const fn intr_masked(
        &self,
    ) -> &'static crate::common::Reg<self::IntrMasked_SPEC, crate::common::R> {
        unsafe {
            crate::common::Reg::<self::IntrMasked_SPEC, crate::common::R>::from_ptr(
                self._svd2pac_as_ptr().add(1996usize),
            )
        }
    }

    #[doc = "Device (only used in XIP mode)"]
    #[inline(always)]
    pub fn device(
        self,
    ) -> &'static crate::common::ClusterRegisterArray<crate::smif::_Device, 4, 0x80> {
        unsafe {
            crate::common::ClusterRegisterArray::from_ptr(self._svd2pac_as_ptr().add(0x800usize))
        }
    }
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Ctl_SPEC;
impl crate::sealed::RegSpec for Ctl_SPEC {
    type DataType = u32;
}

#[doc = "Control"]
pub type Ctl = crate::RegValueT<Ctl_SPEC>;

impl Ctl {
    #[doc = "Mode of operation.\n\nNote: this field should only be changed when the IP is disabled or when STATUS.BUSY is \'0\' and SW should not be executing from the XIP interface or MMIO interface."]
    #[inline(always)]
    pub fn xip_mode(
        self,
    ) -> crate::common::RegisterField<
        0,
        0x1,
        1,
        0,
        ctl::XipMode,
        ctl::XipMode,
        Ctl_SPEC,
        crate::common::RW,
    > {
        crate::common::RegisterField::<
            0,
            0x1,
            1,
            0,
            ctl::XipMode,
            ctl::XipMode,
            Ctl_SPEC,
            crate::common::RW,
        >::from_register(self, 0)
    }

    #[doc = "Specifies device interface receiver clock \'clk_if_rx\' source. MISO data is captured on the rising edge of \'clk_if_rx\'.\n\'0\': \'spi_clk_out\' (internal clock)\n\'1\': !\'spi_clk_out\' (internal clock)\n\'2\': \'spi_clk_in\' (feedback clock)\n\'3\': !\'spi_clk_in\' (feedback clock)\n\nNote: the device interface transmitter clock \'clk_if_tx\' is fixed and is \'spi_clk_out\' MOSI data is driven on the falling edge of \'clk_if_tx\'."]
    #[inline(always)]
    pub fn clock_if_rx_sel(
        self,
    ) -> crate::common::RegisterField<12, 0x3, 1, 0, u8, u8, Ctl_SPEC, crate::common::RW> {
        crate::common::RegisterField::<12,0x3,1,0,u8,u8,Ctl_SPEC,crate::common::RW>::from_register(self,0)
    }

    #[doc = "Specifies the minimum duration of SPI deselection (\'spi_select_out\\[\\]\' is high/\'1\') in between SPI transfers:\n\'0\': 1 interface clock cycle.\n\'1\': 2 interface clock cycles.\n\'2\': 3 interface clock cycles.\n\'3\': 4 interface clock cycles.\n\'4\': 5 interface clock cycles.\n\'5\': 6 interface clock cycles.\n\'6\': 7 interface clock cycles.\n\'7\': 8 interface clock cycles.\n\nDuring SPI deselection, \'spi_select_out\\[\\]\' are \'1\'/inactive, \'spi_data_out\\[\\]\' are \'1\' and \'spi_clk_out\' is \'0\'/inactive."]
    #[inline(always)]
    pub fn deselect_delay(
        self,
    ) -> crate::common::RegisterField<16, 0x7, 1, 0, u8, u8, Ctl_SPEC, crate::common::RW> {
        crate::common::RegisterField::<16,0x7,1,0,u8,u8,Ctl_SPEC,crate::common::RW>::from_register(self,0)
    }

    #[doc = "Specifies what happens for MMIO interface read accesses to an empty RX data FIFO or to a full TX format/data FIFO. Note: the FIFOs can only be accessed in MMIO_MODE.\n\nThis field is not used for test controller accesses."]
    #[inline(always)]
    pub fn block(
        self,
    ) -> crate::common::RegisterField<
        24,
        0x1,
        1,
        0,
        ctl::Block,
        ctl::Block,
        Ctl_SPEC,
        crate::common::RW,
    > {
        crate::common::RegisterField::<
            24,
            0x1,
            1,
            0,
            ctl::Block,
            ctl::Block,
            Ctl_SPEC,
            crate::common::RW,
        >::from_register(self, 0)
    }

    #[doc = "IP enable:\n\'0\': Disabled. All non-retention registers are reset to their default value when the IP is disabled. When the IP is disabled, the XIP accesses produce AHB-Lite bus errors.\n\'1\': Enabled.\n\nNote: Before disabling the IP, SW should ensure that the IP is NOT busy (STATUS.BUSY is \'0\'), otherwise illegal interface transfers may occur."]
    #[inline(always)]
    pub fn enabled(
        self,
    ) -> crate::common::RegisterField<
        31,
        0x1,
        1,
        0,
        ctl::Enabled,
        ctl::Enabled,
        Ctl_SPEC,
        crate::common::RW,
    > {
        crate::common::RegisterField::<
            31,
            0x1,
            1,
            0,
            ctl::Enabled,
            ctl::Enabled,
            Ctl_SPEC,
            crate::common::RW,
        >::from_register(self, 0)
    }
}
impl ::core::default::Default for Ctl {
    #[inline(always)]
    fn default() -> Ctl {
        <crate::RegValueT<Ctl_SPEC> as RegisterValue<_>>::new(12288)
    }
}
pub mod ctl {

    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
    pub struct XipMode_SPEC;
    pub type XipMode = crate::EnumBitfieldStruct<u8, XipMode_SPEC>;
    impl XipMode {
        #[doc = "\'0\': MMIO mode. Individual MMIO accesses to TX and RX FIFOs are used to generate a sequence of SPI transfers. This mode of operation allows for large flexibility in terms of the SPI transfers that can be generated."]
        pub const MMIO_MODE: Self = Self::new(0);

        #[doc = "1\': XIP mode. eXecute-In-Place mode: incoming read and write transfers over the AHB-Lite bus infrastructure are automatically translated in SPI transfers to read data from and write data to a device. This mode of operation allow for efficient device read and write operations. This mode is only supported in SPI_MODE."]
        pub const XIP_MODE: Self = Self::new(1);
    }
    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
    pub struct Block_SPEC;
    pub type Block = crate::EnumBitfieldStruct<u8, Block_SPEC>;
    impl Block {
        #[doc = "0\': Generate an AHB-Lite bus error. This option is useful when SW decides to use polling on STATUS.TR_BUSY to determine if a interface transfer is no longer busy (transfer is completed). This option adds SW complexity, but limits the number of AHB-Lite wait states (and limits ISR latency)."]
        pub const BUS_ERROR: Self = Self::new(0);

        #[doc = "1\': Introduce wait states. This setting potentially locks up the AHB-Lite infrastructure and may increase the CPU interrupt latency.This option is useful when SW performs TX/RX data FIFO accesses immediately after a command is setup using the TX format FIFO. This option has low SW complexity, but may result in a significant number of AHB-Lite wait states (and may increase ISR latency)."]
        pub const WAIT_STATES: Self = Self::new(1);
    }
    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
    pub struct Enabled_SPEC;
    pub type Enabled = crate::EnumBitfieldStruct<u8, Enabled_SPEC>;
    impl Enabled {
        #[doc = "N/A"]
        pub const DISABLED: Self = Self::new(0);

        #[doc = "N/A"]
        pub const ENABLED: Self = Self::new(1);
    }
}
#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Status_SPEC;
impl crate::sealed::RegSpec for Status_SPEC {
    type DataType = u32;
}

#[doc = "Status"]
pub type Status = crate::RegValueT<Status_SPEC>;

impl Status {
    #[doc = "Cache, cryptography, XIP, device interface or any other logic busy in the IP:\n\'0\': not busy\n\'1\': busy\nWhen BUSY is \'0\', the IP can be safely disabled without:\n- the potential loss of transient write data.\n- the potential risk of aborting an inflight SPI device interface transfer.\nWhen BUSY is \'0\', the mode of operation (XIP_MODE or MMIO_MODE) can be safely changed."]
    #[inline(always)]
    pub fn busy(self) -> crate::common::RegisterFieldBool<31, 1, 0, Status_SPEC, crate::common::R> {
        crate::common::RegisterFieldBool::<31, 1, 0, Status_SPEC, crate::common::R>::from_register(
            self, 0,
        )
    }
}
impl ::core::default::Default for Status {
    #[inline(always)]
    fn default() -> Status {
        <crate::RegValueT<Status_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct TxCmdFifoStatus_SPEC;
impl crate::sealed::RegSpec for TxCmdFifoStatus_SPEC {
    type DataType = u32;
}

#[doc = "Transmitter command FIFO status"]
pub type TxCmdFifoStatus = crate::RegValueT<TxCmdFifoStatus_SPEC>;

impl TxCmdFifoStatus {
    #[doc = "Number of entries that are used in the TX command FIFO (available in both XIP_MODE and MMIO_MODE). Legal range: \\[0, 4\\]."]
    #[inline(always)]
    pub fn used3(
        self,
    ) -> crate::common::RegisterField<0, 0x7, 1, 0, u8, u8, TxCmdFifoStatus_SPEC, crate::common::R>
    {
        crate::common::RegisterField::<0,0x7,1,0,u8,u8,TxCmdFifoStatus_SPEC,crate::common::R>::from_register(self,0)
    }
}
impl ::core::default::Default for TxCmdFifoStatus {
    #[inline(always)]
    fn default() -> TxCmdFifoStatus {
        <crate::RegValueT<TxCmdFifoStatus_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct TxCmdFifoWr_SPEC;
impl crate::sealed::RegSpec for TxCmdFifoWr_SPEC {
    type DataType = u32;
}

#[doc = "Transmitter command FIFO write"]
pub type TxCmdFifoWr = crate::RegValueT<TxCmdFifoWr_SPEC>;

impl TxCmdFifoWr {
    #[doc = "Command data. The higher two bits DATA\\[19:18\\] specify the specific command\n\'0\'/TX: A SPI transfer always start with a TX command FIFO entry of the \'TX\' format.\n- DATA\\[17:16\\] specifies the width of the data transfer:\n   - \'0\': 1 bit/cycle (single data transfer).\n   - \'1\': 2 bits/cycle (dual data transfer).\n   - \'2\': 4 bits/cycle (quad data transfer).\n   - \'3\': 8 bits/cycle (octal data transfer).\n- DATA\\[15\\]: specifies whether this is the last TX Byte; i.e. whether the \'spi_select_out\\[3:0\\]\' IO output signals are de-activated after the transfer.\n- DATA\\[11:8\\] specifies which of the four devices are selected. DATA\\[11:8\\] are directly mapped to \'spi_select_out\\[3:0\\]\'. Two devices can be selected at the same time in dual-quad mode.\n  - \'0\': device deselected\n  - \'1\': device selected \n- DATA\\[7:0\\] specifies the transmitted Byte.\n\n\'1\'/TX_COUNT: The \'TX_COUNT\' command relies on the TX data FIFO to provide the transmitted bytes. The \'TX_COUNT\' command is ALWAYS considered to be the last command of a SPI data transfers.\n- DATA\\[17:16\\] specifies the width of the transfer.\n- DATA\\[15:0\\] specifies the number of to be transmitted Bytes (minus 1) from the TX data FIFO.\n\n\'2\'/RX_COUNT: The \'RX_COUNT\' command relies on the RX data FIFO to accept the received bytes. The \'RX_COUNT\' command is ALWAYS considered to be the last command of a SPI data transfers.\n- DATA\\[17:16\\] specifies the width of the transfer.\n- DATA\\[15:0\\] specifies the number of to be transmitted Bytes (minus 1) to the RX data FIFO.\n\n\'3\'/DUMMY_COUNT: The \'DUMMY_COUNT\' command conveys dummy cycles. Dummy cycles are used to implement a Turn-Around time in which the SPI master changes from a transmitter driving the data lines to a receiver receiving on the same data lines. The \'DUMMY_COUNT\' command is ALWAYS considered to be NOT the last command of a SPI data transfers; i.e. it needs to be followed by another command.\n- DATA\\[15:0\\] specifies the number of dummy cycles (minus 1). In dummy cycles, the data lines are not driven."]
    #[inline(always)]
    pub fn data20(
        self,
    ) -> crate::common::RegisterField<0, 0xfffff, 1, 0, u32, u32, TxCmdFifoWr_SPEC, crate::common::W>
    {
        crate::common::RegisterField::<0,0xfffff,1,0,u32,u32,TxCmdFifoWr_SPEC,crate::common::W>::from_register(self,0)
    }
}
impl ::core::default::Default for TxCmdFifoWr {
    #[inline(always)]
    fn default() -> TxCmdFifoWr {
        <crate::RegValueT<TxCmdFifoWr_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct TxDataFifoCtl_SPEC;
impl crate::sealed::RegSpec for TxDataFifoCtl_SPEC {
    type DataType = u32;
}

#[doc = "Transmitter data FIFO control"]
pub type TxDataFifoCtl = crate::RegValueT<TxDataFifoCtl_SPEC>;

impl TxDataFifoCtl {
    #[doc = "Determines when the TX data FIFO \'tr_tx_req\' trigger is activated  (trigger activation requires MMIO_MODE, the trigger is NOT activated in XIP_MODE):\n- Trigger is active when TX_DATA_FIFO_STATUS.USED <= TRIGGER_LEVEL."]
    #[inline(always)]
    pub fn trigger_level(
        self,
    ) -> crate::common::RegisterField<0, 0x7, 1, 0, u8, u8, TxDataFifoCtl_SPEC, crate::common::RW>
    {
        crate::common::RegisterField::<0,0x7,1,0,u8,u8,TxDataFifoCtl_SPEC,crate::common::RW>::from_register(self,0)
    }
}
impl ::core::default::Default for TxDataFifoCtl {
    #[inline(always)]
    fn default() -> TxDataFifoCtl {
        <crate::RegValueT<TxDataFifoCtl_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct TxDataFifoStatus_SPEC;
impl crate::sealed::RegSpec for TxDataFifoStatus_SPEC {
    type DataType = u32;
}

#[doc = "Transmitter data FIFO status"]
pub type TxDataFifoStatus = crate::RegValueT<TxDataFifoStatus_SPEC>;

impl TxDataFifoStatus {
    #[doc = "Number of entries that are used in the TX data FIFO (available in both XIP_MODE and MMIO_MODE). Legal range: \\[0, 8\\]."]
    #[inline(always)]
    pub fn used4(
        self,
    ) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, TxDataFifoStatus_SPEC, crate::common::R>
    {
        crate::common::RegisterField::<0,0xf,1,0,u8,u8,TxDataFifoStatus_SPEC,crate::common::R>::from_register(self,0)
    }
}
impl ::core::default::Default for TxDataFifoStatus {
    #[inline(always)]
    fn default() -> TxDataFifoStatus {
        <crate::RegValueT<TxDataFifoStatus_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct TxDataFifoWr1_SPEC;
impl crate::sealed::RegSpec for TxDataFifoWr1_SPEC {
    type DataType = u32;
}

#[doc = "Transmitter data FIFO write"]
pub type TxDataFifoWr1 = crate::RegValueT<TxDataFifoWr1_SPEC>;

impl TxDataFifoWr1 {
    #[doc = "TX data (written to TX data FIFO)."]
    #[inline(always)]
    pub fn data0(
        self,
    ) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, TxDataFifoWr1_SPEC, crate::common::W>
    {
        crate::common::RegisterField::<0,0xff,1,0,u8,u8,TxDataFifoWr1_SPEC,crate::common::W>::from_register(self,0)
    }
}
impl ::core::default::Default for TxDataFifoWr1 {
    #[inline(always)]
    fn default() -> TxDataFifoWr1 {
        <crate::RegValueT<TxDataFifoWr1_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct TxDataFifoWr2_SPEC;
impl crate::sealed::RegSpec for TxDataFifoWr2_SPEC {
    type DataType = u32;
}

#[doc = "Transmitter data FIFO write"]
pub type TxDataFifoWr2 = crate::RegValueT<TxDataFifoWr2_SPEC>;

impl TxDataFifoWr2 {
    #[doc = "TX data (written to TX data FIFO, first byte)."]
    #[inline(always)]
    pub fn data0(
        self,
    ) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, TxDataFifoWr2_SPEC, crate::common::W>
    {
        crate::common::RegisterField::<0,0xff,1,0,u8,u8,TxDataFifoWr2_SPEC,crate::common::W>::from_register(self,0)
    }

    #[doc = "TX data (written to TX data FIFO, second byte)."]
    #[inline(always)]
    pub fn data1(
        self,
    ) -> crate::common::RegisterField<8, 0xff, 1, 0, u8, u8, TxDataFifoWr2_SPEC, crate::common::W>
    {
        crate::common::RegisterField::<8,0xff,1,0,u8,u8,TxDataFifoWr2_SPEC,crate::common::W>::from_register(self,0)
    }
}
impl ::core::default::Default for TxDataFifoWr2 {
    #[inline(always)]
    fn default() -> TxDataFifoWr2 {
        <crate::RegValueT<TxDataFifoWr2_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct TxDataFifoWr4_SPEC;
impl crate::sealed::RegSpec for TxDataFifoWr4_SPEC {
    type DataType = u32;
}

#[doc = "Transmitter data FIFO write"]
pub type TxDataFifoWr4 = crate::RegValueT<TxDataFifoWr4_SPEC>;

impl TxDataFifoWr4 {
    #[doc = "TX data (written to TX data FIFO, first byte)."]
    #[inline(always)]
    pub fn data0(
        self,
    ) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, TxDataFifoWr4_SPEC, crate::common::W>
    {
        crate::common::RegisterField::<0,0xff,1,0,u8,u8,TxDataFifoWr4_SPEC,crate::common::W>::from_register(self,0)
    }

    #[doc = "TX data (written to TX data FIFO, second byte)."]
    #[inline(always)]
    pub fn data1(
        self,
    ) -> crate::common::RegisterField<8, 0xff, 1, 0, u8, u8, TxDataFifoWr4_SPEC, crate::common::W>
    {
        crate::common::RegisterField::<8,0xff,1,0,u8,u8,TxDataFifoWr4_SPEC,crate::common::W>::from_register(self,0)
    }

    #[doc = "TX data (written to TX data FIFO, third byte)."]
    #[inline(always)]
    pub fn data2(
        self,
    ) -> crate::common::RegisterField<16, 0xff, 1, 0, u8, u8, TxDataFifoWr4_SPEC, crate::common::W>
    {
        crate::common::RegisterField::<16,0xff,1,0,u8,u8,TxDataFifoWr4_SPEC,crate::common::W>::from_register(self,0)
    }

    #[doc = "TX data (written to TX data FIFO, fourth byte)."]
    #[inline(always)]
    pub fn data3(
        self,
    ) -> crate::common::RegisterField<24, 0xff, 1, 0, u8, u8, TxDataFifoWr4_SPEC, crate::common::W>
    {
        crate::common::RegisterField::<24,0xff,1,0,u8,u8,TxDataFifoWr4_SPEC,crate::common::W>::from_register(self,0)
    }
}
impl ::core::default::Default for TxDataFifoWr4 {
    #[inline(always)]
    fn default() -> TxDataFifoWr4 {
        <crate::RegValueT<TxDataFifoWr4_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct RxDataFifoCtl_SPEC;
impl crate::sealed::RegSpec for RxDataFifoCtl_SPEC {
    type DataType = u32;
}

#[doc = "Receiver data FIFO control"]
pub type RxDataFifoCtl = crate::RegValueT<RxDataFifoCtl_SPEC>;

impl RxDataFifoCtl {
    #[doc = "Determines when RX data FIFO \'tr_rx_req\' trigger is activated (trigger activation requires MMIO_MODE, the trigger is NOT activated in XIP_MODE):\n- Trigger is active when RX_DATA_FIFO_STATUS.USED > TRIGGER_LEVEL."]
    #[inline(always)]
    pub fn trigger_level(
        self,
    ) -> crate::common::RegisterField<0, 0x7, 1, 0, u8, u8, RxDataFifoCtl_SPEC, crate::common::RW>
    {
        crate::common::RegisterField::<0,0x7,1,0,u8,u8,RxDataFifoCtl_SPEC,crate::common::RW>::from_register(self,0)
    }
}
impl ::core::default::Default for RxDataFifoCtl {
    #[inline(always)]
    fn default() -> RxDataFifoCtl {
        <crate::RegValueT<RxDataFifoCtl_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct RxDataFifoStatus_SPEC;
impl crate::sealed::RegSpec for RxDataFifoStatus_SPEC {
    type DataType = u32;
}

#[doc = "Receiver data FIFO status"]
pub type RxDataFifoStatus = crate::RegValueT<RxDataFifoStatus_SPEC>;

impl RxDataFifoStatus {
    #[doc = "Number of entries that are used in the RX data FIFO (available in both XIP_MODE and MMIO_MODE). Legal range: \\[0, 8\\]."]
    #[inline(always)]
    pub fn used4(
        self,
    ) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, RxDataFifoStatus_SPEC, crate::common::R>
    {
        crate::common::RegisterField::<0,0xf,1,0,u8,u8,RxDataFifoStatus_SPEC,crate::common::R>::from_register(self,0)
    }
}
impl ::core::default::Default for RxDataFifoStatus {
    #[inline(always)]
    fn default() -> RxDataFifoStatus {
        <crate::RegValueT<RxDataFifoStatus_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct RxDataFifoRd1_SPEC;
impl crate::sealed::RegSpec for RxDataFifoRd1_SPEC {
    type DataType = u32;
}

#[doc = "Receiver data FIFO read"]
pub type RxDataFifoRd1 = crate::RegValueT<RxDataFifoRd1_SPEC>;

impl RxDataFifoRd1 {
    #[doc = "RX data (read from RX data FIFO)."]
    #[inline(always)]
    pub fn data0(
        self,
    ) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, RxDataFifoRd1_SPEC, crate::common::R>
    {
        crate::common::RegisterField::<0,0xff,1,0,u8,u8,RxDataFifoRd1_SPEC,crate::common::R>::from_register(self,0)
    }
}
impl ::core::default::Default for RxDataFifoRd1 {
    #[inline(always)]
    fn default() -> RxDataFifoRd1 {
        <crate::RegValueT<RxDataFifoRd1_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct RxDataFifoRd2_SPEC;
impl crate::sealed::RegSpec for RxDataFifoRd2_SPEC {
    type DataType = u32;
}

#[doc = "Receiver data FIFO read"]
pub type RxDataFifoRd2 = crate::RegValueT<RxDataFifoRd2_SPEC>;

impl RxDataFifoRd2 {
    #[doc = "RX data (read from RX data FIFO, first byte)."]
    #[inline(always)]
    pub fn data0(
        self,
    ) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, RxDataFifoRd2_SPEC, crate::common::R>
    {
        crate::common::RegisterField::<0,0xff,1,0,u8,u8,RxDataFifoRd2_SPEC,crate::common::R>::from_register(self,0)
    }

    #[doc = "RX data (read from RX data FIFO, second byte)."]
    #[inline(always)]
    pub fn data1(
        self,
    ) -> crate::common::RegisterField<8, 0xff, 1, 0, u8, u8, RxDataFifoRd2_SPEC, crate::common::R>
    {
        crate::common::RegisterField::<8,0xff,1,0,u8,u8,RxDataFifoRd2_SPEC,crate::common::R>::from_register(self,0)
    }
}
impl ::core::default::Default for RxDataFifoRd2 {
    #[inline(always)]
    fn default() -> RxDataFifoRd2 {
        <crate::RegValueT<RxDataFifoRd2_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct RxDataFifoRd4_SPEC;
impl crate::sealed::RegSpec for RxDataFifoRd4_SPEC {
    type DataType = u32;
}

#[doc = "Receiver data FIFO read"]
pub type RxDataFifoRd4 = crate::RegValueT<RxDataFifoRd4_SPEC>;

impl RxDataFifoRd4 {
    #[doc = "RX data (read from RX data FIFO, first byte)."]
    #[inline(always)]
    pub fn data0(
        self,
    ) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, RxDataFifoRd4_SPEC, crate::common::R>
    {
        crate::common::RegisterField::<0,0xff,1,0,u8,u8,RxDataFifoRd4_SPEC,crate::common::R>::from_register(self,0)
    }

    #[doc = "RX data (read from RX data FIFO, second byte)."]
    #[inline(always)]
    pub fn data1(
        self,
    ) -> crate::common::RegisterField<8, 0xff, 1, 0, u8, u8, RxDataFifoRd4_SPEC, crate::common::R>
    {
        crate::common::RegisterField::<8,0xff,1,0,u8,u8,RxDataFifoRd4_SPEC,crate::common::R>::from_register(self,0)
    }

    #[doc = "RX data (read from RX data FIFO, third byte)."]
    #[inline(always)]
    pub fn data2(
        self,
    ) -> crate::common::RegisterField<16, 0xff, 1, 0, u8, u8, RxDataFifoRd4_SPEC, crate::common::R>
    {
        crate::common::RegisterField::<16,0xff,1,0,u8,u8,RxDataFifoRd4_SPEC,crate::common::R>::from_register(self,0)
    }

    #[doc = "RX data (read from RX data FIFO, fourth byte)."]
    #[inline(always)]
    pub fn data3(
        self,
    ) -> crate::common::RegisterField<24, 0xff, 1, 0, u8, u8, RxDataFifoRd4_SPEC, crate::common::R>
    {
        crate::common::RegisterField::<24,0xff,1,0,u8,u8,RxDataFifoRd4_SPEC,crate::common::R>::from_register(self,0)
    }
}
impl ::core::default::Default for RxDataFifoRd4 {
    #[inline(always)]
    fn default() -> RxDataFifoRd4 {
        <crate::RegValueT<RxDataFifoRd4_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct RxDataFifoRd1Silent_SPEC;
impl crate::sealed::RegSpec for RxDataFifoRd1Silent_SPEC {
    type DataType = u32;
}

#[doc = "Receiver data FIFO silent read"]
pub type RxDataFifoRd1Silent = crate::RegValueT<RxDataFifoRd1Silent_SPEC>;

impl RxDataFifoRd1Silent {
    #[doc = "RX data (read from RX data FIFO)."]
    #[inline(always)]
    pub fn data0(
        self,
    ) -> crate::common::RegisterField<
        0,
        0xff,
        1,
        0,
        u8,
        u8,
        RxDataFifoRd1Silent_SPEC,
        crate::common::R,
    > {
        crate::common::RegisterField::<
            0,
            0xff,
            1,
            0,
            u8,
            u8,
            RxDataFifoRd1Silent_SPEC,
            crate::common::R,
        >::from_register(self, 0)
    }
}
impl ::core::default::Default for RxDataFifoRd1Silent {
    #[inline(always)]
    fn default() -> RxDataFifoRd1Silent {
        <crate::RegValueT<RxDataFifoRd1Silent_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct SlowCaCtl_SPEC;
impl crate::sealed::RegSpec for SlowCaCtl_SPEC {
    type DataType = u32;
}

#[doc = "Slow cache control"]
pub type SlowCaCtl = crate::RegValueT<SlowCaCtl_SPEC>;

impl SlowCaCtl {
    #[doc = "this is for debug purpose only, and should be hidden to customers in technical document"]
    #[inline(always)]
    pub fn way(
        self,
    ) -> crate::common::RegisterField<16, 0x3, 1, 0, u8, u8, SlowCaCtl_SPEC, crate::common::RW>
    {
        crate::common::RegisterField::<16,0x3,1,0,u8,u8,SlowCaCtl_SPEC,crate::common::RW>::from_register(self,0)
    }

    #[doc = "this is for debug purpose only, and should be hidden to customers in technical document"]
    #[inline(always)]
    pub fn set_addr(
        self,
    ) -> crate::common::RegisterField<24, 0x3, 1, 0, u8, u8, SlowCaCtl_SPEC, crate::common::RW>
    {
        crate::common::RegisterField::<24,0x3,1,0,u8,u8,SlowCaCtl_SPEC,crate::common::RW>::from_register(self,0)
    }

    #[doc = "N/A"]
    #[inline(always)]
    pub fn pref_en(
        self,
    ) -> crate::common::RegisterFieldBool<30, 1, 0, SlowCaCtl_SPEC, crate::common::RW> {
        crate::common::RegisterFieldBool::<30,1,0,SlowCaCtl_SPEC,crate::common::RW>::from_register(self,0)
    }

    #[doc = "N/A"]
    #[inline(always)]
    pub fn enabled(
        self,
    ) -> crate::common::RegisterFieldBool<31, 1, 0, SlowCaCtl_SPEC, crate::common::RW> {
        crate::common::RegisterFieldBool::<31,1,0,SlowCaCtl_SPEC,crate::common::RW>::from_register(self,0)
    }
}
impl ::core::default::Default for SlowCaCtl {
    #[inline(always)]
    fn default() -> SlowCaCtl {
        <crate::RegValueT<SlowCaCtl_SPEC> as RegisterValue<_>>::new(3221225472)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct SlowCaCmd_SPEC;
impl crate::sealed::RegSpec for SlowCaCmd_SPEC {
    type DataType = u32;
}

#[doc = "Slow cache command"]
pub type SlowCaCmd = crate::RegValueT<SlowCaCmd_SPEC>;

impl SlowCaCmd {
    #[doc = "Cache and prefetch buffer invalidation. \nSW writes a \'1\' to clear the cache and prefetch buffer. The cache\'s LRU structure is also reset to its default state.\nNote, \nA write access will invalidate the prefetch buffer automatically in hardware.\nA write access should invalidate both fast and slow caches, by firmware.\nNote, firmware should invalidate the cache and prefetch buffer only when STATUS.BUSY is \'0\'."]
    #[inline(always)]
    pub fn inv(
        self,
    ) -> crate::common::RegisterFieldBool<0, 1, 0, SlowCaCmd_SPEC, crate::common::RW> {
        crate::common::RegisterFieldBool::<0,1,0,SlowCaCmd_SPEC,crate::common::RW>::from_register(self,0)
    }
}
impl ::core::default::Default for SlowCaCmd {
    #[inline(always)]
    fn default() -> SlowCaCmd {
        <crate::RegValueT<SlowCaCmd_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct FastCaCtl_SPEC;
impl crate::sealed::RegSpec for FastCaCtl_SPEC {
    type DataType = u32;
}

#[doc = "Fast cache control"]
pub type FastCaCtl = crate::RegValueT<FastCaCtl_SPEC>;

impl FastCaCtl {
    #[doc = "this is for debug purpose only, and should be hidden to customers in technical document"]
    #[inline(always)]
    pub fn way(
        self,
    ) -> crate::common::RegisterField<16, 0x3, 1, 0, u8, u8, FastCaCtl_SPEC, crate::common::RW>
    {
        crate::common::RegisterField::<16,0x3,1,0,u8,u8,FastCaCtl_SPEC,crate::common::RW>::from_register(self,0)
    }

    #[doc = "this is for debug purpose only, and should be hidden to customers in technical document"]
    #[inline(always)]
    pub fn set_addr(
        self,
    ) -> crate::common::RegisterField<24, 0x3, 1, 0, u8, u8, FastCaCtl_SPEC, crate::common::RW>
    {
        crate::common::RegisterField::<24,0x3,1,0,u8,u8,FastCaCtl_SPEC,crate::common::RW>::from_register(self,0)
    }

    #[doc = "N/A"]
    #[inline(always)]
    pub fn pref_en(
        self,
    ) -> crate::common::RegisterFieldBool<30, 1, 0, FastCaCtl_SPEC, crate::common::RW> {
        crate::common::RegisterFieldBool::<30,1,0,FastCaCtl_SPEC,crate::common::RW>::from_register(self,0)
    }

    #[doc = "N/A"]
    #[inline(always)]
    pub fn enabled(
        self,
    ) -> crate::common::RegisterFieldBool<31, 1, 0, FastCaCtl_SPEC, crate::common::RW> {
        crate::common::RegisterFieldBool::<31,1,0,FastCaCtl_SPEC,crate::common::RW>::from_register(self,0)
    }
}
impl ::core::default::Default for FastCaCtl {
    #[inline(always)]
    fn default() -> FastCaCtl {
        <crate::RegValueT<FastCaCtl_SPEC> as RegisterValue<_>>::new(3221225472)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct FastCaCmd_SPEC;
impl crate::sealed::RegSpec for FastCaCmd_SPEC {
    type DataType = u32;
}

#[doc = "Fast cache command"]
pub type FastCaCmd = crate::RegValueT<FastCaCmd_SPEC>;

impl FastCaCmd {
    #[doc = "See SLOW_CA_CMD.INV."]
    #[inline(always)]
    pub fn inv(
        self,
    ) -> crate::common::RegisterFieldBool<0, 1, 0, FastCaCmd_SPEC, crate::common::RW> {
        crate::common::RegisterFieldBool::<0,1,0,FastCaCmd_SPEC,crate::common::RW>::from_register(self,0)
    }
}
impl ::core::default::Default for FastCaCmd {
    #[inline(always)]
    fn default() -> FastCaCmd {
        <crate::RegValueT<FastCaCmd_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct CryptoCmd_SPEC;
impl crate::sealed::RegSpec for CryptoCmd_SPEC {
    type DataType = u32;
}

#[doc = "Cryptography Command"]
pub type CryptoCmd = crate::RegValueT<CryptoCmd_SPEC>;

impl CryptoCmd {
    #[doc = "SW sets this field to \'1\' to start a AES-128 forward block cipher operation (on the address in CRYPTO_ADDR). HW sets this field to \'0\' to indicate that the operation has completed. Once completed, the result of the operation can be read from CRYPTO_RESULT0, ..., CRYPTO_RESULT3.\n\nThe operation takes roughly 13 clk_hf clock cycles.\n\nNote: An operation can only be started in MMIO_MODE."]
    #[inline(always)]
    pub fn start(
        self,
    ) -> crate::common::RegisterFieldBool<0, 1, 0, CryptoCmd_SPEC, crate::common::RW> {
        crate::common::RegisterFieldBool::<0,1,0,CryptoCmd_SPEC,crate::common::RW>::from_register(self,0)
    }
}
impl ::core::default::Default for CryptoCmd {
    #[inline(always)]
    fn default() -> CryptoCmd {
        <crate::RegValueT<CryptoCmd_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct CryptoInput0_SPEC;
impl crate::sealed::RegSpec for CryptoInput0_SPEC {
    type DataType = u32;
}

#[doc = "Cryptography input 0"]
pub type CryptoInput0 = crate::RegValueT<CryptoInput0_SPEC>;

impl CryptoInput0 {
    #[doc = "Four Bytes of the plaintext PT\\[31:0\\] = CRYPTO_INPUT0.INPUT\\[31:0\\]."]
    #[inline(always)]
    pub fn input(
        self,
    ) -> crate::common::RegisterField<
        0,
        0xffffffff,
        1,
        0,
        u32,
        u32,
        CryptoInput0_SPEC,
        crate::common::RW,
    > {
        crate::common::RegisterField::<
            0,
            0xffffffff,
            1,
            0,
            u32,
            u32,
            CryptoInput0_SPEC,
            crate::common::RW,
        >::from_register(self, 0)
    }
}
impl ::core::default::Default for CryptoInput0 {
    #[inline(always)]
    fn default() -> CryptoInput0 {
        <crate::RegValueT<CryptoInput0_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct CryptoInput1_SPEC;
impl crate::sealed::RegSpec for CryptoInput1_SPEC {
    type DataType = u32;
}

#[doc = "Cryptography input 1"]
pub type CryptoInput1 = crate::RegValueT<CryptoInput1_SPEC>;

impl CryptoInput1 {
    #[doc = "Four Bytes of the plaintext PT\\[63:32\\] = CRYPTO_INPUT1.INPUT\\[31:0\\]."]
    #[inline(always)]
    pub fn input(
        self,
    ) -> crate::common::RegisterField<
        0,
        0xffffffff,
        1,
        0,
        u32,
        u32,
        CryptoInput1_SPEC,
        crate::common::RW,
    > {
        crate::common::RegisterField::<
            0,
            0xffffffff,
            1,
            0,
            u32,
            u32,
            CryptoInput1_SPEC,
            crate::common::RW,
        >::from_register(self, 0)
    }
}
impl ::core::default::Default for CryptoInput1 {
    #[inline(always)]
    fn default() -> CryptoInput1 {
        <crate::RegValueT<CryptoInput1_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct CryptoInput2_SPEC;
impl crate::sealed::RegSpec for CryptoInput2_SPEC {
    type DataType = u32;
}

#[doc = "Cryptography input 2"]
pub type CryptoInput2 = crate::RegValueT<CryptoInput2_SPEC>;

impl CryptoInput2 {
    #[doc = "Four Bytes of the plaintext PT\\[95:64\\] = CRYPTO_INPUT2.INPUT\\[31:0\\]."]
    #[inline(always)]
    pub fn input(
        self,
    ) -> crate::common::RegisterField<
        0,
        0xffffffff,
        1,
        0,
        u32,
        u32,
        CryptoInput2_SPEC,
        crate::common::RW,
    > {
        crate::common::RegisterField::<
            0,
            0xffffffff,
            1,
            0,
            u32,
            u32,
            CryptoInput2_SPEC,
            crate::common::RW,
        >::from_register(self, 0)
    }
}
impl ::core::default::Default for CryptoInput2 {
    #[inline(always)]
    fn default() -> CryptoInput2 {
        <crate::RegValueT<CryptoInput2_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct CryptoInput3_SPEC;
impl crate::sealed::RegSpec for CryptoInput3_SPEC {
    type DataType = u32;
}

#[doc = "Cryptography input 3"]
pub type CryptoInput3 = crate::RegValueT<CryptoInput3_SPEC>;

impl CryptoInput3 {
    #[doc = "Four Bytes of the plaintext PT\\[127:96\\] = CRYPTO_INPUT3.INPUT\\[31:0\\]."]
    #[inline(always)]
    pub fn input(
        self,
    ) -> crate::common::RegisterField<
        0,
        0xffffffff,
        1,
        0,
        u32,
        u32,
        CryptoInput3_SPEC,
        crate::common::RW,
    > {
        crate::common::RegisterField::<
            0,
            0xffffffff,
            1,
            0,
            u32,
            u32,
            CryptoInput3_SPEC,
            crate::common::RW,
        >::from_register(self, 0)
    }
}
impl ::core::default::Default for CryptoInput3 {
    #[inline(always)]
    fn default() -> CryptoInput3 {
        <crate::RegValueT<CryptoInput3_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct CryptoKey0_SPEC;
impl crate::sealed::RegSpec for CryptoKey0_SPEC {
    type DataType = u32;
}

#[doc = "Cryptography key 0"]
pub type CryptoKey0 = crate::RegValueT<CryptoKey0_SPEC>;

impl CryptoKey0 {
    #[doc = "Four Bytes of the key KEY\\[31:0\\] = CRYPTO_KEY0.KEY\\[31:0\\]."]
    #[inline(always)]
    pub fn key(
        self,
    ) -> crate::common::RegisterField<
        0,
        0xffffffff,
        1,
        0,
        u32,
        u32,
        CryptoKey0_SPEC,
        crate::common::W,
    > {
        crate::common::RegisterField::<
            0,
            0xffffffff,
            1,
            0,
            u32,
            u32,
            CryptoKey0_SPEC,
            crate::common::W,
        >::from_register(self, 0)
    }
}
impl ::core::default::Default for CryptoKey0 {
    #[inline(always)]
    fn default() -> CryptoKey0 {
        <crate::RegValueT<CryptoKey0_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct CryptoKey1_SPEC;
impl crate::sealed::RegSpec for CryptoKey1_SPEC {
    type DataType = u32;
}

#[doc = "Cryptography key 1"]
pub type CryptoKey1 = crate::RegValueT<CryptoKey1_SPEC>;

impl CryptoKey1 {
    #[doc = "Four Bytes of the key KEY\\[63:32\\] = CRYPTO_KEY1.KEY\\[31:0\\]."]
    #[inline(always)]
    pub fn key(
        self,
    ) -> crate::common::RegisterField<
        0,
        0xffffffff,
        1,
        0,
        u32,
        u32,
        CryptoKey1_SPEC,
        crate::common::W,
    > {
        crate::common::RegisterField::<
            0,
            0xffffffff,
            1,
            0,
            u32,
            u32,
            CryptoKey1_SPEC,
            crate::common::W,
        >::from_register(self, 0)
    }
}
impl ::core::default::Default for CryptoKey1 {
    #[inline(always)]
    fn default() -> CryptoKey1 {
        <crate::RegValueT<CryptoKey1_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct CryptoKey2_SPEC;
impl crate::sealed::RegSpec for CryptoKey2_SPEC {
    type DataType = u32;
}

#[doc = "Cryptography key 2"]
pub type CryptoKey2 = crate::RegValueT<CryptoKey2_SPEC>;

impl CryptoKey2 {
    #[doc = "Four Bytes of the key KEY\\[95:64\\] = CRYPTO_KEY2.KEY\\[31:0\\]."]
    #[inline(always)]
    pub fn key(
        self,
    ) -> crate::common::RegisterField<
        0,
        0xffffffff,
        1,
        0,
        u32,
        u32,
        CryptoKey2_SPEC,
        crate::common::W,
    > {
        crate::common::RegisterField::<
            0,
            0xffffffff,
            1,
            0,
            u32,
            u32,
            CryptoKey2_SPEC,
            crate::common::W,
        >::from_register(self, 0)
    }
}
impl ::core::default::Default for CryptoKey2 {
    #[inline(always)]
    fn default() -> CryptoKey2 {
        <crate::RegValueT<CryptoKey2_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct CryptoKey3_SPEC;
impl crate::sealed::RegSpec for CryptoKey3_SPEC {
    type DataType = u32;
}

#[doc = "Cryptography key 3"]
pub type CryptoKey3 = crate::RegValueT<CryptoKey3_SPEC>;

impl CryptoKey3 {
    #[doc = "Four Bytes of the key KEY\\[127:96\\] = CRYPTO_KEY3.KEY\\[31:0\\]."]
    #[inline(always)]
    pub fn key(
        self,
    ) -> crate::common::RegisterField<
        0,
        0xffffffff,
        1,
        0,
        u32,
        u32,
        CryptoKey3_SPEC,
        crate::common::W,
    > {
        crate::common::RegisterField::<
            0,
            0xffffffff,
            1,
            0,
            u32,
            u32,
            CryptoKey3_SPEC,
            crate::common::W,
        >::from_register(self, 0)
    }
}
impl ::core::default::Default for CryptoKey3 {
    #[inline(always)]
    fn default() -> CryptoKey3 {
        <crate::RegValueT<CryptoKey3_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct CryptoOutput0_SPEC;
impl crate::sealed::RegSpec for CryptoOutput0_SPEC {
    type DataType = u32;
}

#[doc = "Cryptography output 0"]
pub type CryptoOutput0 = crate::RegValueT<CryptoOutput0_SPEC>;

impl CryptoOutput0 {
    #[doc = "Four Bytes of the ciphertext CT\\[31:0\\] = CRYPTO_OUTPUT0.OUTPUT\\[31:0\\]."]
    #[inline(always)]
    pub fn output(
        self,
    ) -> crate::common::RegisterField<
        0,
        0xffffffff,
        1,
        0,
        u32,
        u32,
        CryptoOutput0_SPEC,
        crate::common::RW,
    > {
        crate::common::RegisterField::<
            0,
            0xffffffff,
            1,
            0,
            u32,
            u32,
            CryptoOutput0_SPEC,
            crate::common::RW,
        >::from_register(self, 0)
    }
}
impl ::core::default::Default for CryptoOutput0 {
    #[inline(always)]
    fn default() -> CryptoOutput0 {
        <crate::RegValueT<CryptoOutput0_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct CryptoOutput1_SPEC;
impl crate::sealed::RegSpec for CryptoOutput1_SPEC {
    type DataType = u32;
}

#[doc = "Cryptography output 1"]
pub type CryptoOutput1 = crate::RegValueT<CryptoOutput1_SPEC>;

impl CryptoOutput1 {
    #[doc = "Four Bytes of the ciphertext CT\\[63:32\\] = CRYPTO_OUTPUT1.OUTPUT\\[31:0\\]."]
    #[inline(always)]
    pub fn output(
        self,
    ) -> crate::common::RegisterField<
        0,
        0xffffffff,
        1,
        0,
        u32,
        u32,
        CryptoOutput1_SPEC,
        crate::common::RW,
    > {
        crate::common::RegisterField::<
            0,
            0xffffffff,
            1,
            0,
            u32,
            u32,
            CryptoOutput1_SPEC,
            crate::common::RW,
        >::from_register(self, 0)
    }
}
impl ::core::default::Default for CryptoOutput1 {
    #[inline(always)]
    fn default() -> CryptoOutput1 {
        <crate::RegValueT<CryptoOutput1_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct CryptoOutput2_SPEC;
impl crate::sealed::RegSpec for CryptoOutput2_SPEC {
    type DataType = u32;
}

#[doc = "Cryptography output 2"]
pub type CryptoOutput2 = crate::RegValueT<CryptoOutput2_SPEC>;

impl CryptoOutput2 {
    #[doc = "Four Bytes of the ciphertext CT\\[95:64\\] = CRYPTO_OUTPUT2.OUTPUT\\[31:0\\]."]
    #[inline(always)]
    pub fn output(
        self,
    ) -> crate::common::RegisterField<
        0,
        0xffffffff,
        1,
        0,
        u32,
        u32,
        CryptoOutput2_SPEC,
        crate::common::RW,
    > {
        crate::common::RegisterField::<
            0,
            0xffffffff,
            1,
            0,
            u32,
            u32,
            CryptoOutput2_SPEC,
            crate::common::RW,
        >::from_register(self, 0)
    }
}
impl ::core::default::Default for CryptoOutput2 {
    #[inline(always)]
    fn default() -> CryptoOutput2 {
        <crate::RegValueT<CryptoOutput2_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct CryptoOutput3_SPEC;
impl crate::sealed::RegSpec for CryptoOutput3_SPEC {
    type DataType = u32;
}

#[doc = "Cryptography output 3"]
pub type CryptoOutput3 = crate::RegValueT<CryptoOutput3_SPEC>;

impl CryptoOutput3 {
    #[doc = "Four Bytes of the ciphertext CT\\[127:96\\] = CRYPTO_OUTPUT3.OUTPUT\\[31:0\\]."]
    #[inline(always)]
    pub fn output(
        self,
    ) -> crate::common::RegisterField<
        0,
        0xffffffff,
        1,
        0,
        u32,
        u32,
        CryptoOutput3_SPEC,
        crate::common::RW,
    > {
        crate::common::RegisterField::<
            0,
            0xffffffff,
            1,
            0,
            u32,
            u32,
            CryptoOutput3_SPEC,
            crate::common::RW,
        >::from_register(self, 0)
    }
}
impl ::core::default::Default for CryptoOutput3 {
    #[inline(always)]
    fn default() -> CryptoOutput3 {
        <crate::RegValueT<CryptoOutput3_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Intr_SPEC;
impl crate::sealed::RegSpec for Intr_SPEC {
    type DataType = u32;
}

#[doc = "Interrupt register"]
pub type Intr = crate::RegValueT<Intr_SPEC>;

impl Intr {
    #[doc = "Activated in MMIO mode, when a TX data FIFO trigger \'tr_tx_req\' is activated."]
    #[inline(always)]
    pub fn tr_tx_req(
        self,
    ) -> crate::common::RegisterFieldBool<0, 1, 0, Intr_SPEC, crate::common::RW> {
        crate::common::RegisterFieldBool::<0, 1, 0, Intr_SPEC, crate::common::RW>::from_register(
            self, 0,
        )
    }

    #[doc = "Activated in MMIO mode, when a RX data FIFO trigger \'tr_rx_req\' is activated."]
    #[inline(always)]
    pub fn tr_rx_req(
        self,
    ) -> crate::common::RegisterFieldBool<1, 1, 0, Intr_SPEC, crate::common::RW> {
        crate::common::RegisterFieldBool::<1, 1, 0, Intr_SPEC, crate::common::RW>::from_register(
            self, 0,
        )
    }

    #[doc = "Activated in XIP mode, if:\n- The selected device\'s ADDR_CTL.DIV2 is \'1\' and the AHB-Lite bus transfer address is not a multiple of 2.\n- The selected device\'s ADDR_CTL.DIV2 is \'1\' and the XIP transfer request is NOT for a multiple of 2 Bytes. \n\nNote: In dual-quad SPI mode (ADDR_CTL.DIV is \'1\'), each memory device contributes a 4-bit nibble for read data or write data. This is only possible if the request address is a multiple of 2 and the number of requested Bytes is a multiple of 2."]
    #[inline(always)]
    pub fn xip_alignment_error(
        self,
    ) -> crate::common::RegisterFieldBool<2, 1, 0, Intr_SPEC, crate::common::RW> {
        crate::common::RegisterFieldBool::<2, 1, 0, Intr_SPEC, crate::common::RW>::from_register(
            self, 0,
        )
    }

    #[doc = "Activated in MMIO mode, on an AHB-Lite write transfer to the TX command FIFO (TX_CMD_FIFO_WR) with not enough free entries available."]
    #[inline(always)]
    pub fn tx_cmd_fifo_overflow(
        self,
    ) -> crate::common::RegisterFieldBool<3, 1, 0, Intr_SPEC, crate::common::RW> {
        crate::common::RegisterFieldBool::<3, 1, 0, Intr_SPEC, crate::common::RW>::from_register(
            self, 0,
        )
    }

    #[doc = "Activated in MMIO mode, on an AHB-Lite write transfer to the TX data FIFO (TX_DATA_FIFO_WR1, TX_DATA_FIFO_WR2, TX_DATA_FIFO_WR4) with not enough free entries available."]
    #[inline(always)]
    pub fn tx_data_fifo_overflow(
        self,
    ) -> crate::common::RegisterFieldBool<4, 1, 0, Intr_SPEC, crate::common::RW> {
        crate::common::RegisterFieldBool::<4, 1, 0, Intr_SPEC, crate::common::RW>::from_register(
            self, 0,
        )
    }

    #[doc = "Activated in MMIO mode, on an AHB-Lite read transfer from the RX data FIFO (RX_DATA_FIFO_RD1, RX_DATA_FIFO_RD2, RX_DATA_FIFO_RD4) with not enough entries available. Only activated for NON test bus controller transfers."]
    #[inline(always)]
    pub fn rx_data_fifo_underflow(
        self,
    ) -> crate::common::RegisterFieldBool<5, 1, 0, Intr_SPEC, crate::common::RW> {
        crate::common::RegisterFieldBool::<5, 1, 0, Intr_SPEC, crate::common::RW>::from_register(
            self, 0,
        )
    }
}
impl ::core::default::Default for Intr {
    #[inline(always)]
    fn default() -> Intr {
        <crate::RegValueT<Intr_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct IntrSet_SPEC;
impl crate::sealed::RegSpec for IntrSet_SPEC {
    type DataType = u32;
}

#[doc = "Interrupt set register"]
pub type IntrSet = crate::RegValueT<IntrSet_SPEC>;

impl IntrSet {
    #[doc = "Write with \'1\' to set corresponding bit in interrupt request register."]
    #[inline(always)]
    pub fn tr_tx_req(
        self,
    ) -> crate::common::RegisterFieldBool<0, 1, 0, IntrSet_SPEC, crate::common::RW> {
        crate::common::RegisterFieldBool::<0, 1, 0, IntrSet_SPEC, crate::common::RW>::from_register(
            self, 0,
        )
    }

    #[doc = "Write with \'1\' to set corresponding bit in interrupt request register."]
    #[inline(always)]
    pub fn tr_rx_req(
        self,
    ) -> crate::common::RegisterFieldBool<1, 1, 0, IntrSet_SPEC, crate::common::RW> {
        crate::common::RegisterFieldBool::<1, 1, 0, IntrSet_SPEC, crate::common::RW>::from_register(
            self, 0,
        )
    }

    #[doc = "Write with \'1\' to set corresponding bit in interrupt request register."]
    #[inline(always)]
    pub fn xip_alignment_error(
        self,
    ) -> crate::common::RegisterFieldBool<2, 1, 0, IntrSet_SPEC, crate::common::RW> {
        crate::common::RegisterFieldBool::<2, 1, 0, IntrSet_SPEC, crate::common::RW>::from_register(
            self, 0,
        )
    }

    #[doc = "Write with \'1\' to set corresponding bit in interrupt request register."]
    #[inline(always)]
    pub fn tx_cmd_fifo_overflow(
        self,
    ) -> crate::common::RegisterFieldBool<3, 1, 0, IntrSet_SPEC, crate::common::RW> {
        crate::common::RegisterFieldBool::<3, 1, 0, IntrSet_SPEC, crate::common::RW>::from_register(
            self, 0,
        )
    }

    #[doc = "Write with \'1\' to set corresponding bit in interrupt request register."]
    #[inline(always)]
    pub fn tx_data_fifo_overflow(
        self,
    ) -> crate::common::RegisterFieldBool<4, 1, 0, IntrSet_SPEC, crate::common::RW> {
        crate::common::RegisterFieldBool::<4, 1, 0, IntrSet_SPEC, crate::common::RW>::from_register(
            self, 0,
        )
    }

    #[doc = "Write with \'1\' to set corresponding bit in interrupt request register."]
    #[inline(always)]
    pub fn rx_data_fifo_underflow(
        self,
    ) -> crate::common::RegisterFieldBool<5, 1, 0, IntrSet_SPEC, crate::common::RW> {
        crate::common::RegisterFieldBool::<5, 1, 0, IntrSet_SPEC, crate::common::RW>::from_register(
            self, 0,
        )
    }
}
impl ::core::default::Default for IntrSet {
    #[inline(always)]
    fn default() -> IntrSet {
        <crate::RegValueT<IntrSet_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct IntrMask_SPEC;
impl crate::sealed::RegSpec for IntrMask_SPEC {
    type DataType = u32;
}

#[doc = "Interrupt mask register"]
pub type IntrMask = crate::RegValueT<IntrMask_SPEC>;

impl IntrMask {
    #[doc = "Mask bit for corresponding bit in interrupt request register."]
    #[inline(always)]
    pub fn tr_tx_req(
        self,
    ) -> crate::common::RegisterFieldBool<0, 1, 0, IntrMask_SPEC, crate::common::RW> {
        crate::common::RegisterFieldBool::<0, 1, 0, IntrMask_SPEC, crate::common::RW>::from_register(
            self, 0,
        )
    }

    #[doc = "Mask bit for corresponding bit in interrupt request register."]
    #[inline(always)]
    pub fn tr_rx_req(
        self,
    ) -> crate::common::RegisterFieldBool<1, 1, 0, IntrMask_SPEC, crate::common::RW> {
        crate::common::RegisterFieldBool::<1, 1, 0, IntrMask_SPEC, crate::common::RW>::from_register(
            self, 0,
        )
    }

    #[doc = "Mask bit for corresponding bit in interrupt request register."]
    #[inline(always)]
    pub fn xip_alignment_error(
        self,
    ) -> crate::common::RegisterFieldBool<2, 1, 0, IntrMask_SPEC, crate::common::RW> {
        crate::common::RegisterFieldBool::<2, 1, 0, IntrMask_SPEC, crate::common::RW>::from_register(
            self, 0,
        )
    }

    #[doc = "Mask bit for corresponding bit in interrupt request register."]
    #[inline(always)]
    pub fn tx_cmd_fifo_overflow(
        self,
    ) -> crate::common::RegisterFieldBool<3, 1, 0, IntrMask_SPEC, crate::common::RW> {
        crate::common::RegisterFieldBool::<3, 1, 0, IntrMask_SPEC, crate::common::RW>::from_register(
            self, 0,
        )
    }

    #[doc = "Mask bit for corresponding bit in interrupt request register."]
    #[inline(always)]
    pub fn tx_data_fifo_overflow(
        self,
    ) -> crate::common::RegisterFieldBool<4, 1, 0, IntrMask_SPEC, crate::common::RW> {
        crate::common::RegisterFieldBool::<4, 1, 0, IntrMask_SPEC, crate::common::RW>::from_register(
            self, 0,
        )
    }

    #[doc = "Mask bit for corresponding bit in interrupt request register."]
    #[inline(always)]
    pub fn rx_data_fifo_underflow(
        self,
    ) -> crate::common::RegisterFieldBool<5, 1, 0, IntrMask_SPEC, crate::common::RW> {
        crate::common::RegisterFieldBool::<5, 1, 0, IntrMask_SPEC, crate::common::RW>::from_register(
            self, 0,
        )
    }
}
impl ::core::default::Default for IntrMask {
    #[inline(always)]
    fn default() -> IntrMask {
        <crate::RegValueT<IntrMask_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc(hidden)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct IntrMasked_SPEC;
impl crate::sealed::RegSpec for IntrMasked_SPEC {
    type DataType = u32;
}

#[doc = "Interrupt masked register"]
pub type IntrMasked = crate::RegValueT<IntrMasked_SPEC>;

impl IntrMasked {
    #[doc = "Logical and of corresponding request and mask bits."]
    #[inline(always)]
    pub fn tr_tx_req(
        self,
    ) -> crate::common::RegisterFieldBool<0, 1, 0, IntrMasked_SPEC, crate::common::R> {
        crate::common::RegisterFieldBool::<0,1,0,IntrMasked_SPEC,crate::common::R>::from_register(self,0)
    }

    #[doc = "Logical and of corresponding request and mask bits."]
    #[inline(always)]
    pub fn tr_rx_req(
        self,
    ) -> crate::common::RegisterFieldBool<1, 1, 0, IntrMasked_SPEC, crate::common::R> {
        crate::common::RegisterFieldBool::<1,1,0,IntrMasked_SPEC,crate::common::R>::from_register(self,0)
    }

    #[doc = "Logical and of corresponding request and mask bits."]
    #[inline(always)]
    pub fn xip_alignment_error(
        self,
    ) -> crate::common::RegisterFieldBool<2, 1, 0, IntrMasked_SPEC, crate::common::R> {
        crate::common::RegisterFieldBool::<2,1,0,IntrMasked_SPEC,crate::common::R>::from_register(self,0)
    }

    #[doc = "Logical and of corresponding request and mask bits."]
    #[inline(always)]
    pub fn tx_cmd_fifo_overflow(
        self,
    ) -> crate::common::RegisterFieldBool<3, 1, 0, IntrMasked_SPEC, crate::common::R> {
        crate::common::RegisterFieldBool::<3,1,0,IntrMasked_SPEC,crate::common::R>::from_register(self,0)
    }

    #[doc = "Logical and of corresponding request and mask bits."]
    #[inline(always)]
    pub fn tx_data_fifo_overflow(
        self,
    ) -> crate::common::RegisterFieldBool<4, 1, 0, IntrMasked_SPEC, crate::common::R> {
        crate::common::RegisterFieldBool::<4,1,0,IntrMasked_SPEC,crate::common::R>::from_register(self,0)
    }

    #[doc = "Logical and of corresponding request and mask bits."]
    #[inline(always)]
    pub fn rx_data_fifo_underflow(
        self,
    ) -> crate::common::RegisterFieldBool<5, 1, 0, IntrMasked_SPEC, crate::common::R> {
        crate::common::RegisterFieldBool::<5,1,0,IntrMasked_SPEC,crate::common::R>::from_register(self,0)
    }
}
impl ::core::default::Default for IntrMasked {
    #[inline(always)]
    fn default() -> IntrMasked {
        <crate::RegValueT<IntrMasked_SPEC> as RegisterValue<_>>::new(0)
    }
}

#[doc = "Device (only used in XIP mode)"]
#[non_exhaustive]
pub struct _Device;

#[doc = "Device (only used in XIP mode)"]
pub type Device = &'static _Device;

unsafe impl ::core::marker::Sync for _Device {}
impl _Device {
    #[allow(unused)]
    #[inline(always)]
    pub(crate) const unsafe fn _svd2pac_from_ptr(ptr: *mut u8) -> &'static Self {
        &*(ptr as *const _)
    }

    #[allow(unused)]
    #[inline(always)]
    pub(crate) const fn _svd2pac_as_ptr(&self) -> *mut u8 {
        self as *const Self as *mut u8
    }

    #[doc = "Control"]
    #[inline(always)]
    pub const fn ctl(&self) -> &'static crate::common::Reg<device::Ctl_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<device::Ctl_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(0usize),
            )
        }
    }

    #[doc = "Device region base address"]
    #[inline(always)]
    pub const fn addr(&self) -> &'static crate::common::Reg<device::Addr_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<device::Addr_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(8usize),
            )
        }
    }

    #[doc = "Device region mask"]
    #[inline(always)]
    pub const fn mask(&self) -> &'static crate::common::Reg<device::Mask_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<device::Mask_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(12usize),
            )
        }
    }

    #[doc = "Address control"]
    #[inline(always)]
    pub const fn addr_ctl(
        &self,
    ) -> &'static crate::common::Reg<device::AddrCtl_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<device::AddrCtl_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(32usize),
            )
        }
    }

    #[doc = "Read command control"]
    #[inline(always)]
    pub const fn rd_cmd_ctl(
        &self,
    ) -> &'static crate::common::Reg<device::RdCmdCtl_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<device::RdCmdCtl_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(64usize),
            )
        }
    }

    #[doc = "Read address control"]
    #[inline(always)]
    pub const fn rd_addr_ctl(
        &self,
    ) -> &'static crate::common::Reg<device::RdAddrCtl_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<device::RdAddrCtl_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(68usize),
            )
        }
    }

    #[doc = "Read mode control"]
    #[inline(always)]
    pub const fn rd_mode_ctl(
        &self,
    ) -> &'static crate::common::Reg<device::RdModeCtl_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<device::RdModeCtl_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(72usize),
            )
        }
    }

    #[doc = "Read dummy control"]
    #[inline(always)]
    pub const fn rd_dummy_ctl(
        &self,
    ) -> &'static crate::common::Reg<device::RdDummyCtl_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<device::RdDummyCtl_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(76usize),
            )
        }
    }

    #[doc = "Read data control"]
    #[inline(always)]
    pub const fn rd_data_ctl(
        &self,
    ) -> &'static crate::common::Reg<device::RdDataCtl_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<device::RdDataCtl_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(80usize),
            )
        }
    }

    #[doc = "Write command control"]
    #[inline(always)]
    pub const fn wr_cmd_ctl(
        &self,
    ) -> &'static crate::common::Reg<device::WrCmdCtl_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<device::WrCmdCtl_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(96usize),
            )
        }
    }

    #[doc = "Write address control"]
    #[inline(always)]
    pub const fn wr_addr_ctl(
        &self,
    ) -> &'static crate::common::Reg<device::WrAddrCtl_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<device::WrAddrCtl_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(100usize),
            )
        }
    }

    #[doc = "Write mode control"]
    #[inline(always)]
    pub const fn wr_mode_ctl(
        &self,
    ) -> &'static crate::common::Reg<device::WrModeCtl_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<device::WrModeCtl_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(104usize),
            )
        }
    }

    #[doc = "Write dummy control"]
    #[inline(always)]
    pub const fn wr_dummy_ctl(
        &self,
    ) -> &'static crate::common::Reg<device::WrDummyCtl_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<device::WrDummyCtl_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(108usize),
            )
        }
    }

    #[doc = "Write data control"]
    #[inline(always)]
    pub const fn wr_data_ctl(
        &self,
    ) -> &'static crate::common::Reg<device::WrDataCtl_SPEC, crate::common::RW> {
        unsafe {
            crate::common::Reg::<device::WrDataCtl_SPEC, crate::common::RW>::from_ptr(
                self._svd2pac_as_ptr().add(112usize),
            )
        }
    }
}
pub mod device {
    #[allow(unused_imports)]
    use crate::common::*;
    #[doc(hidden)]
    #[derive(Copy, Clone, Eq, PartialEq)]
    pub struct Ctl_SPEC;
    impl crate::sealed::RegSpec for Ctl_SPEC {
        type DataType = u32;
    }

    #[doc = "Control"]
    pub type Ctl = crate::RegValueT<Ctl_SPEC>;

    impl Ctl {
        #[doc = "Write enable:\n\'0\': write transfers are not allowed to this device. An attempt to write to this device results in an AHB-Lite bus error.\n\'1\': write transfers are allowed to this device."]
        #[inline(always)]
        pub fn wr_en(
            self,
        ) -> crate::common::RegisterFieldBool<0, 1, 0, Ctl_SPEC, crate::common::RW> {
            crate::common::RegisterFieldBool::<0, 1, 0, Ctl_SPEC, crate::common::RW>::from_register(
                self, 0,
            )
        }

        #[doc = "Cryptography on read/write accesses:\n\'0\': disabled.\n\'1\': enabled."]
        #[inline(always)]
        pub fn crypto_en(
            self,
        ) -> crate::common::RegisterFieldBool<8, 1, 0, Ctl_SPEC, crate::common::RW> {
            crate::common::RegisterFieldBool::<8, 1, 0, Ctl_SPEC, crate::common::RW>::from_register(
                self, 0,
            )
        }

        #[doc = "Specifies the connection of the IP\'s data lines (spi_data\\[0\\], ..., spi_data\\[7\\]) to the device\'s data lines (SI/IO0, SO/IO1, IO2, IO3, IO4, IO5, IO6, IO7):\n\'0\': spi_data\\[0\\] = IO0, spi_data\\[1\\] = IO1, ..., spi_data\\[7\\] = IO7. This value is allowed for single, dual, quad, dual quad and octal SPI modes. This value must be used for the first device in dual quad SPI mode. This value must be used for octal SPI mode.\n\'1\': spi_data\\[2\\] = IO0, spi_data\\[3\\] = IO1. This value is only allowed for single and dual SPI modes.\n\'2\': spi_data\\[4\\] = IO0, spi_data\\[5\\] = IO1, ..., spi_data\\[7\\] = IO3. This value is only allowed for single, dual, quad and dual quad  SPI modes. In dual quad SPI mode, this value must be used for the second device. \n\'3\': spi_data\\[6\\] = IO0, spi_data\\[7\\] = IO1. This value is only allowed for single and dual SPI modes."]
        #[inline(always)]
        pub fn data_sel(
            self,
        ) -> crate::common::RegisterField<16, 0x3, 1, 0, u8, u8, Ctl_SPEC, crate::common::RW>
        {
            crate::common::RegisterField::<16,0x3,1,0,u8,u8,Ctl_SPEC,crate::common::RW>::from_register(self,0)
        }

        #[doc = "Device enable:\n\'0\': Disabled.\n\'1\': Enabled."]
        #[inline(always)]
        pub fn enabled(
            self,
        ) -> crate::common::RegisterFieldBool<31, 1, 0, Ctl_SPEC, crate::common::RW> {
            crate::common::RegisterFieldBool::<31, 1, 0, Ctl_SPEC, crate::common::RW>::from_register(
                self, 0,
            )
        }
    }
    impl ::core::default::Default for Ctl {
        #[inline(always)]
        fn default() -> Ctl {
            <crate::RegValueT<Ctl_SPEC> as RegisterValue<_>>::new(0)
        }
    }

    #[doc(hidden)]
    #[derive(Copy, Clone, Eq, PartialEq)]
    pub struct Addr_SPEC;
    impl crate::sealed::RegSpec for Addr_SPEC {
        type DataType = u32;
    }

    #[doc = "Device region base address"]
    pub type Addr = crate::RegValueT<Addr_SPEC>;

    impl Addr {
        #[doc = "Specifies the base address of the device region. If the device region is 2^m Bytes, ADDR MUST be a multiple of 2^m.\n\nIn dual quad SPI data transfer, the two devices should have the same ADDR and MASK register settings. The device control information (ADDR_CTL, RD_CMD_CTL, etc.) are provided by the MMIO control registers of the device with the lowest index.\n\nThe most significant bit fields are constants and set based on the SMIF_XIP_ADDR parameter. The most significant bits are identified on the SMIF_XIP_MASK parameter. E.g., if SMIF_XIP_MASK is 0xff00:0000 (16 MB XIP memory region), ADDR\\[31:24\\] = SMIF_XIP_ADDR\\[31:24\\]."]
        #[inline(always)]
        pub fn addr(
            self,
        ) -> crate::common::RegisterField<8, 0xffffff, 1, 0, u32, u32, Addr_SPEC, crate::common::RW>
        {
            crate::common::RegisterField::<8,0xffffff,1,0,u32,u32,Addr_SPEC,crate::common::RW>::from_register(self,0)
        }
    }
    impl ::core::default::Default for Addr {
        #[inline(always)]
        fn default() -> Addr {
            <crate::RegValueT<Addr_SPEC> as RegisterValue<_>>::new(0)
        }
    }

    #[doc(hidden)]
    #[derive(Copy, Clone, Eq, PartialEq)]
    pub struct Mask_SPEC;
    impl crate::sealed::RegSpec for Mask_SPEC {
        type DataType = u32;
    }

    #[doc = "Device region mask"]
    pub type Mask = crate::RegValueT<Mask_SPEC>;

    impl Mask {
        #[doc = "Specifies the size of the device region. All \'1\' bits are used to compare the incoming transfer request address A\\[31:0\\] with the address as specified in ADDR.ADDR: Address A is in the device when (A\\[31:8\\] & MASK\\[31:8\\]) == ADDR.ADDR\\[31:8\\].\n\nThe most significant bit fields are constants and set to\'1\'. The most significant bits are identified on the SMIF_XIP_MASK parameter. E.g., if SMIF_XIP_MASK  is 0xff00:0000 (16 MB XIP memory region), MASK\\[31:24\\] = 0xff.\n\nNote: a transfer request that is not in any device region results in an AHB-Lite bus error."]
        #[inline(always)]
        pub fn mask(
            self,
        ) -> crate::common::RegisterField<8, 0xffffff, 1, 0, u32, u32, Mask_SPEC, crate::common::RW>
        {
            crate::common::RegisterField::<8,0xffffff,1,0,u32,u32,Mask_SPEC,crate::common::RW>::from_register(self,0)
        }
    }
    impl ::core::default::Default for Mask {
        #[inline(always)]
        fn default() -> Mask {
            <crate::RegValueT<Mask_SPEC> as RegisterValue<_>>::new(0)
        }
    }

    #[doc(hidden)]
    #[derive(Copy, Clone, Eq, PartialEq)]
    pub struct AddrCtl_SPEC;
    impl crate::sealed::RegSpec for AddrCtl_SPEC {
        type DataType = u32;
    }

    #[doc = "Address control"]
    pub type AddrCtl = crate::RegValueT<AddrCtl_SPEC>;

    impl AddrCtl {
        #[doc = "Specifies the size of the XIP device address in Bytes:\n\'0\': 1 Byte address.\n\'1\': 2 Byte address.\n\'2\': 3 Byte address.\n\'3\': 4 Byte address.\nThe lower significant address Bytes of the transfer request are used as XIP address to the external device. Note that for dual quad SPI data transfer, the transfer request address is divided by 2. Therefore, the transfer request address needs to be a multiple of 2. If the trasnfer requestaddress is NOT a multiple of 2, the XIP_ALIGNMENT_ERROR interrupt cause is activated."]
        #[inline(always)]
        pub fn size2(
            self,
        ) -> crate::common::RegisterField<0, 0x3, 1, 0, u8, u8, AddrCtl_SPEC, crate::common::RW>
        {
            crate::common::RegisterField::<0,0x3,1,0,u8,u8,AddrCtl_SPEC,crate::common::RW>::from_register(self,0)
        }

        #[doc = "Specifies if the AHB-Lite bus transfer address is divided by 2 or not:\n\'0\': No divide by 2.\n\'1\': Divide by 2.  \n\nThis functionality is used for read and write operation in XIP, dual quad SPI mode; i.e. this DIV2 must be set to \'1\' in dual quad SPI mode. If the transfer request address is NOT a multiple of 2 or the requested number of Bytes is not a multiple of 2, the XIP_ALIGNMENT_ERROR interrupt cause is activated."]
        #[inline(always)]
        pub fn div2(
            self,
        ) -> crate::common::RegisterFieldBool<8, 1, 0, AddrCtl_SPEC, crate::common::RW> {
            crate::common::RegisterFieldBool::<8,1,0,AddrCtl_SPEC,crate::common::RW>::from_register(self,0)
        }
    }
    impl ::core::default::Default for AddrCtl {
        #[inline(always)]
        fn default() -> AddrCtl {
            <crate::RegValueT<AddrCtl_SPEC> as RegisterValue<_>>::new(0)
        }
    }

    #[doc(hidden)]
    #[derive(Copy, Clone, Eq, PartialEq)]
    pub struct RdCmdCtl_SPEC;
    impl crate::sealed::RegSpec for RdCmdCtl_SPEC {
        type DataType = u32;
    }

    #[doc = "Read command control"]
    pub type RdCmdCtl = crate::RegValueT<RdCmdCtl_SPEC>;

    impl RdCmdCtl {
        #[doc = "Command byte code."]
        #[inline(always)]
        pub fn code(
            self,
        ) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, RdCmdCtl_SPEC, crate::common::RW>
        {
            crate::common::RegisterField::<0,0xff,1,0,u8,u8,RdCmdCtl_SPEC,crate::common::RW>::from_register(self,0)
        }

        #[doc = "Width of data transfer:\n\'0\': 1 bit/cycle (single data transfer).\n\'1\': 2 bits/cycle (dual data transfer).\n\'2\': 4 bits/cycle (quad data transfer).\n\'3\': 8 bits/cycle (octal data transfer)."]
        #[inline(always)]
        pub fn width(
            self,
        ) -> crate::common::RegisterField<16, 0x3, 1, 0, u8, u8, RdCmdCtl_SPEC, crate::common::RW>
        {
            crate::common::RegisterField::<16,0x3,1,0,u8,u8,RdCmdCtl_SPEC,crate::common::RW>::from_register(self,0)
        }

        #[doc = "Presence of command field:\n\'0\': not present\n\'1\': present"]
        #[inline(always)]
        pub fn present(
            self,
        ) -> crate::common::RegisterFieldBool<31, 1, 0, RdCmdCtl_SPEC, crate::common::RW> {
            crate::common::RegisterFieldBool::<31,1,0,RdCmdCtl_SPEC,crate::common::RW>::from_register(self,0)
        }
    }
    impl ::core::default::Default for RdCmdCtl {
        #[inline(always)]
        fn default() -> RdCmdCtl {
            <crate::RegValueT<RdCmdCtl_SPEC> as RegisterValue<_>>::new(0)
        }
    }

    #[doc(hidden)]
    #[derive(Copy, Clone, Eq, PartialEq)]
    pub struct RdAddrCtl_SPEC;
    impl crate::sealed::RegSpec for RdAddrCtl_SPEC {
        type DataType = u32;
    }

    #[doc = "Read address control"]
    pub type RdAddrCtl = crate::RegValueT<RdAddrCtl_SPEC>;

    impl RdAddrCtl {
        #[doc = "Width of transfer."]
        #[inline(always)]
        pub fn width(
            self,
        ) -> crate::common::RegisterField<16, 0x3, 1, 0, u8, u8, RdAddrCtl_SPEC, crate::common::RW>
        {
            crate::common::RegisterField::<16,0x3,1,0,u8,u8,RdAddrCtl_SPEC,crate::common::RW>::from_register(self,0)
        }
    }
    impl ::core::default::Default for RdAddrCtl {
        #[inline(always)]
        fn default() -> RdAddrCtl {
            <crate::RegValueT<RdAddrCtl_SPEC> as RegisterValue<_>>::new(0)
        }
    }

    #[doc(hidden)]
    #[derive(Copy, Clone, Eq, PartialEq)]
    pub struct RdModeCtl_SPEC;
    impl crate::sealed::RegSpec for RdModeCtl_SPEC {
        type DataType = u32;
    }

    #[doc = "Read mode control"]
    pub type RdModeCtl = crate::RegValueT<RdModeCtl_SPEC>;

    impl RdModeCtl {
        #[doc = "Mode byte code."]
        #[inline(always)]
        pub fn code(
            self,
        ) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, RdModeCtl_SPEC, crate::common::RW>
        {
            crate::common::RegisterField::<0,0xff,1,0,u8,u8,RdModeCtl_SPEC,crate::common::RW>::from_register(self,0)
        }

        #[doc = "Width of transfer."]
        #[inline(always)]
        pub fn width(
            self,
        ) -> crate::common::RegisterField<16, 0x3, 1, 0, u8, u8, RdModeCtl_SPEC, crate::common::RW>
        {
            crate::common::RegisterField::<16,0x3,1,0,u8,u8,RdModeCtl_SPEC,crate::common::RW>::from_register(self,0)
        }

        #[doc = "Presence of mode field:\n\'0\': not present\n\'1\': present"]
        #[inline(always)]
        pub fn present(
            self,
        ) -> crate::common::RegisterFieldBool<31, 1, 0, RdModeCtl_SPEC, crate::common::RW> {
            crate::common::RegisterFieldBool::<31,1,0,RdModeCtl_SPEC,crate::common::RW>::from_register(self,0)
        }
    }
    impl ::core::default::Default for RdModeCtl {
        #[inline(always)]
        fn default() -> RdModeCtl {
            <crate::RegValueT<RdModeCtl_SPEC> as RegisterValue<_>>::new(0)
        }
    }

    #[doc(hidden)]
    #[derive(Copy, Clone, Eq, PartialEq)]
    pub struct RdDummyCtl_SPEC;
    impl crate::sealed::RegSpec for RdDummyCtl_SPEC {
        type DataType = u32;
    }

    #[doc = "Read dummy control"]
    pub type RdDummyCtl = crate::RegValueT<RdDummyCtl_SPEC>;

    impl RdDummyCtl {
        #[doc = "Number of dummy cycles (minus 1):\n\'0\': 1 cycles\n...\n\'31\': 32 cycles.\n\nNote: this field specifies dummy cycles, not dummy Bytes!"]
        #[inline(always)]
        pub fn size5(
            self,
        ) -> crate::common::RegisterField<0, 0x1f, 1, 0, u8, u8, RdDummyCtl_SPEC, crate::common::RW>
        {
            crate::common::RegisterField::<0,0x1f,1,0,u8,u8,RdDummyCtl_SPEC,crate::common::RW>::from_register(self,0)
        }

        #[doc = "Presence of dummy cycles:\n\'0\': not present\n\'1\': present"]
        #[inline(always)]
        pub fn present(
            self,
        ) -> crate::common::RegisterFieldBool<31, 1, 0, RdDummyCtl_SPEC, crate::common::RW>
        {
            crate::common::RegisterFieldBool::<31,1,0,RdDummyCtl_SPEC,crate::common::RW>::from_register(self,0)
        }
    }
    impl ::core::default::Default for RdDummyCtl {
        #[inline(always)]
        fn default() -> RdDummyCtl {
            <crate::RegValueT<RdDummyCtl_SPEC> as RegisterValue<_>>::new(0)
        }
    }

    #[doc(hidden)]
    #[derive(Copy, Clone, Eq, PartialEq)]
    pub struct RdDataCtl_SPEC;
    impl crate::sealed::RegSpec for RdDataCtl_SPEC {
        type DataType = u32;
    }

    #[doc = "Read data control"]
    pub type RdDataCtl = crate::RegValueT<RdDataCtl_SPEC>;

    impl RdDataCtl {
        #[doc = "Width of transfer."]
        #[inline(always)]
        pub fn width(
            self,
        ) -> crate::common::RegisterField<16, 0x3, 1, 0, u8, u8, RdDataCtl_SPEC, crate::common::RW>
        {
            crate::common::RegisterField::<16,0x3,1,0,u8,u8,RdDataCtl_SPEC,crate::common::RW>::from_register(self,0)
        }
    }
    impl ::core::default::Default for RdDataCtl {
        #[inline(always)]
        fn default() -> RdDataCtl {
            <crate::RegValueT<RdDataCtl_SPEC> as RegisterValue<_>>::new(0)
        }
    }

    #[doc(hidden)]
    #[derive(Copy, Clone, Eq, PartialEq)]
    pub struct WrCmdCtl_SPEC;
    impl crate::sealed::RegSpec for WrCmdCtl_SPEC {
        type DataType = u32;
    }

    #[doc = "Write command control"]
    pub type WrCmdCtl = crate::RegValueT<WrCmdCtl_SPEC>;

    impl WrCmdCtl {
        #[doc = "Command byte code."]
        #[inline(always)]
        pub fn code(
            self,
        ) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, WrCmdCtl_SPEC, crate::common::RW>
        {
            crate::common::RegisterField::<0,0xff,1,0,u8,u8,WrCmdCtl_SPEC,crate::common::RW>::from_register(self,0)
        }

        #[doc = "Width of transfer."]
        #[inline(always)]
        pub fn width(
            self,
        ) -> crate::common::RegisterField<16, 0x3, 1, 0, u8, u8, WrCmdCtl_SPEC, crate::common::RW>
        {
            crate::common::RegisterField::<16,0x3,1,0,u8,u8,WrCmdCtl_SPEC,crate::common::RW>::from_register(self,0)
        }

        #[doc = "Presence of command field:\n\'0\': not present\n\'1\': present"]
        #[inline(always)]
        pub fn present(
            self,
        ) -> crate::common::RegisterFieldBool<31, 1, 0, WrCmdCtl_SPEC, crate::common::RW> {
            crate::common::RegisterFieldBool::<31,1,0,WrCmdCtl_SPEC,crate::common::RW>::from_register(self,0)
        }
    }
    impl ::core::default::Default for WrCmdCtl {
        #[inline(always)]
        fn default() -> WrCmdCtl {
            <crate::RegValueT<WrCmdCtl_SPEC> as RegisterValue<_>>::new(0)
        }
    }

    #[doc(hidden)]
    #[derive(Copy, Clone, Eq, PartialEq)]
    pub struct WrAddrCtl_SPEC;
    impl crate::sealed::RegSpec for WrAddrCtl_SPEC {
        type DataType = u32;
    }

    #[doc = "Write address control"]
    pub type WrAddrCtl = crate::RegValueT<WrAddrCtl_SPEC>;

    impl WrAddrCtl {
        #[doc = "Width of transfer."]
        #[inline(always)]
        pub fn width(
            self,
        ) -> crate::common::RegisterField<16, 0x3, 1, 0, u8, u8, WrAddrCtl_SPEC, crate::common::RW>
        {
            crate::common::RegisterField::<16,0x3,1,0,u8,u8,WrAddrCtl_SPEC,crate::common::RW>::from_register(self,0)
        }
    }
    impl ::core::default::Default for WrAddrCtl {
        #[inline(always)]
        fn default() -> WrAddrCtl {
            <crate::RegValueT<WrAddrCtl_SPEC> as RegisterValue<_>>::new(0)
        }
    }

    #[doc(hidden)]
    #[derive(Copy, Clone, Eq, PartialEq)]
    pub struct WrModeCtl_SPEC;
    impl crate::sealed::RegSpec for WrModeCtl_SPEC {
        type DataType = u32;
    }

    #[doc = "Write mode control"]
    pub type WrModeCtl = crate::RegValueT<WrModeCtl_SPEC>;

    impl WrModeCtl {
        #[doc = "Mode byte code."]
        #[inline(always)]
        pub fn code(
            self,
        ) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, WrModeCtl_SPEC, crate::common::RW>
        {
            crate::common::RegisterField::<0,0xff,1,0,u8,u8,WrModeCtl_SPEC,crate::common::RW>::from_register(self,0)
        }

        #[doc = "Width of transfer."]
        #[inline(always)]
        pub fn width(
            self,
        ) -> crate::common::RegisterField<16, 0x3, 1, 0, u8, u8, WrModeCtl_SPEC, crate::common::RW>
        {
            crate::common::RegisterField::<16,0x3,1,0,u8,u8,WrModeCtl_SPEC,crate::common::RW>::from_register(self,0)
        }

        #[doc = "Presence of mode field:\n\'0\': not present\n\'1\': present"]
        #[inline(always)]
        pub fn present(
            self,
        ) -> crate::common::RegisterFieldBool<31, 1, 0, WrModeCtl_SPEC, crate::common::RW> {
            crate::common::RegisterFieldBool::<31,1,0,WrModeCtl_SPEC,crate::common::RW>::from_register(self,0)
        }
    }
    impl ::core::default::Default for WrModeCtl {
        #[inline(always)]
        fn default() -> WrModeCtl {
            <crate::RegValueT<WrModeCtl_SPEC> as RegisterValue<_>>::new(0)
        }
    }

    #[doc(hidden)]
    #[derive(Copy, Clone, Eq, PartialEq)]
    pub struct WrDummyCtl_SPEC;
    impl crate::sealed::RegSpec for WrDummyCtl_SPEC {
        type DataType = u32;
    }

    #[doc = "Write dummy control"]
    pub type WrDummyCtl = crate::RegValueT<WrDummyCtl_SPEC>;

    impl WrDummyCtl {
        #[doc = "Number of dummy cycles (minus 1):\n\'0\': 1 cycles\n...\n\'31\': 32 cycles."]
        #[inline(always)]
        pub fn size5(
            self,
        ) -> crate::common::RegisterField<0, 0x1f, 1, 0, u8, u8, WrDummyCtl_SPEC, crate::common::RW>
        {
            crate::common::RegisterField::<0,0x1f,1,0,u8,u8,WrDummyCtl_SPEC,crate::common::RW>::from_register(self,0)
        }

        #[doc = "Presence of dummy cycles:\n\'0\': not present\n\'1\': present"]
        #[inline(always)]
        pub fn present(
            self,
        ) -> crate::common::RegisterFieldBool<31, 1, 0, WrDummyCtl_SPEC, crate::common::RW>
        {
            crate::common::RegisterFieldBool::<31,1,0,WrDummyCtl_SPEC,crate::common::RW>::from_register(self,0)
        }
    }
    impl ::core::default::Default for WrDummyCtl {
        #[inline(always)]
        fn default() -> WrDummyCtl {
            <crate::RegValueT<WrDummyCtl_SPEC> as RegisterValue<_>>::new(0)
        }
    }

    #[doc(hidden)]
    #[derive(Copy, Clone, Eq, PartialEq)]
    pub struct WrDataCtl_SPEC;
    impl crate::sealed::RegSpec for WrDataCtl_SPEC {
        type DataType = u32;
    }

    #[doc = "Write data control"]
    pub type WrDataCtl = crate::RegValueT<WrDataCtl_SPEC>;

    impl WrDataCtl {
        #[doc = "Width of transfer."]
        #[inline(always)]
        pub fn width(
            self,
        ) -> crate::common::RegisterField<16, 0x3, 1, 0, u8, u8, WrDataCtl_SPEC, crate::common::RW>
        {
            crate::common::RegisterField::<16,0x3,1,0,u8,u8,WrDataCtl_SPEC,crate::common::RW>::from_register(self,0)
        }
    }
    impl ::core::default::Default for WrDataCtl {
        #[inline(always)]
        fn default() -> WrDataCtl {
            <crate::RegValueT<WrDataCtl_SPEC> as RegisterValue<_>>::new(0)
        }
    }
}