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
|
// THIS HEADER FILE IS AUTOMATICALLY GENERATED -- DO NOT EDIT
/**
* Copyright (c) 2024 Raspberry Pi Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
// =============================================================================
// Register block : PIO
// Version : 1
// Bus type : ahbl
// Description : Programmable IO block
// =============================================================================
#ifndef _HARDWARE_REGS_PIO_H
#define _HARDWARE_REGS_PIO_H
// =============================================================================
// Register : PIO_CTRL
// Description : PIO control register
#define PIO_CTRL_OFFSET _u(0x00000000)
#define PIO_CTRL_BITS _u(0x00000fff)
#define PIO_CTRL_RESET _u(0x00000000)
// -----------------------------------------------------------------------------
// Field : PIO_CTRL_CLKDIV_RESTART
// Description : Restart a state machine's clock divider from an initial phase
// of 0. Clock dividers are free-running, so once started, their
// output (including fractional jitter) is completely determined
// by the integer/fractional divisor configured in SMx_CLKDIV.
// This means that, if multiple clock dividers with the same
// divisor are restarted simultaneously, by writing multiple 1
// bits to this field, the execution clocks of those state
// machines will run in precise lockstep.
//
// Note that setting/clearing SM_ENABLE does not stop the clock
// divider from running, so once multiple state machines' clocks
// are synchronised, it is safe to disable/reenable a state
// machine, whilst keeping the clock dividers in sync.
//
// Note also that CLKDIV_RESTART can be written to whilst the
// state machine is running, and this is useful to resynchronise
// clock dividers after the divisors (SMx_CLKDIV) have been
// changed on-the-fly.
#define PIO_CTRL_CLKDIV_RESTART_RESET _u(0x0)
#define PIO_CTRL_CLKDIV_RESTART_BITS _u(0x00000f00)
#define PIO_CTRL_CLKDIV_RESTART_MSB _u(11)
#define PIO_CTRL_CLKDIV_RESTART_LSB _u(8)
#define PIO_CTRL_CLKDIV_RESTART_ACCESS "SC"
// -----------------------------------------------------------------------------
// Field : PIO_CTRL_SM_RESTART
// Description : Write 1 to instantly clear internal SM state which may be
// otherwise difficult to access and will affect future execution.
//
// Specifically, the following are cleared: input and output shift
// counters; the contents of the input shift register; the delay
// counter; the waiting-on-IRQ state; any stalled instruction
// written to SMx_INSTR or run by OUT/MOV EXEC; any pin write left
// asserted due to OUT_STICKY.
//
// The program counter, the contents of the output shift register
// and the X/Y scratch registers are not affected.
#define PIO_CTRL_SM_RESTART_RESET _u(0x0)
#define PIO_CTRL_SM_RESTART_BITS _u(0x000000f0)
#define PIO_CTRL_SM_RESTART_MSB _u(7)
#define PIO_CTRL_SM_RESTART_LSB _u(4)
#define PIO_CTRL_SM_RESTART_ACCESS "SC"
// -----------------------------------------------------------------------------
// Field : PIO_CTRL_SM_ENABLE
// Description : Enable/disable each of the four state machines by writing 1/0
// to each of these four bits. When disabled, a state machine will
// cease executing instructions, except those written directly to
// SMx_INSTR by the system. Multiple bits can be set/cleared at
// once to run/halt multiple state machines simultaneously.
#define PIO_CTRL_SM_ENABLE_RESET _u(0x0)
#define PIO_CTRL_SM_ENABLE_BITS _u(0x0000000f)
#define PIO_CTRL_SM_ENABLE_MSB _u(3)
#define PIO_CTRL_SM_ENABLE_LSB _u(0)
#define PIO_CTRL_SM_ENABLE_ACCESS "RW"
// =============================================================================
// Register : PIO_FSTAT
// Description : FIFO status register
#define PIO_FSTAT_OFFSET _u(0x00000004)
#define PIO_FSTAT_BITS _u(0x0f0f0f0f)
#define PIO_FSTAT_RESET _u(0x0f000f00)
// -----------------------------------------------------------------------------
// Field : PIO_FSTAT_TXEMPTY
// Description : State machine TX FIFO is empty
#define PIO_FSTAT_TXEMPTY_RESET _u(0xf)
#define PIO_FSTAT_TXEMPTY_BITS _u(0x0f000000)
#define PIO_FSTAT_TXEMPTY_MSB _u(27)
#define PIO_FSTAT_TXEMPTY_LSB _u(24)
#define PIO_FSTAT_TXEMPTY_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_FSTAT_TXFULL
// Description : State machine TX FIFO is full
#define PIO_FSTAT_TXFULL_RESET _u(0x0)
#define PIO_FSTAT_TXFULL_BITS _u(0x000f0000)
#define PIO_FSTAT_TXFULL_MSB _u(19)
#define PIO_FSTAT_TXFULL_LSB _u(16)
#define PIO_FSTAT_TXFULL_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_FSTAT_RXEMPTY
// Description : State machine RX FIFO is empty
#define PIO_FSTAT_RXEMPTY_RESET _u(0xf)
#define PIO_FSTAT_RXEMPTY_BITS _u(0x00000f00)
#define PIO_FSTAT_RXEMPTY_MSB _u(11)
#define PIO_FSTAT_RXEMPTY_LSB _u(8)
#define PIO_FSTAT_RXEMPTY_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_FSTAT_RXFULL
// Description : State machine RX FIFO is full
#define PIO_FSTAT_RXFULL_RESET _u(0x0)
#define PIO_FSTAT_RXFULL_BITS _u(0x0000000f)
#define PIO_FSTAT_RXFULL_MSB _u(3)
#define PIO_FSTAT_RXFULL_LSB _u(0)
#define PIO_FSTAT_RXFULL_ACCESS "RO"
// =============================================================================
// Register : PIO_FDEBUG
// Description : FIFO debug register
#define PIO_FDEBUG_OFFSET _u(0x00000008)
#define PIO_FDEBUG_BITS _u(0x0f0f0f0f)
#define PIO_FDEBUG_RESET _u(0x00000000)
// -----------------------------------------------------------------------------
// Field : PIO_FDEBUG_TXSTALL
// Description : State machine has stalled on empty TX FIFO during a blocking
// PULL, or an OUT with autopull enabled. Write 1 to clear.
#define PIO_FDEBUG_TXSTALL_RESET _u(0x0)
#define PIO_FDEBUG_TXSTALL_BITS _u(0x0f000000)
#define PIO_FDEBUG_TXSTALL_MSB _u(27)
#define PIO_FDEBUG_TXSTALL_LSB _u(24)
#define PIO_FDEBUG_TXSTALL_ACCESS "WC"
// -----------------------------------------------------------------------------
// Field : PIO_FDEBUG_TXOVER
// Description : TX FIFO overflow (i.e. write-on-full by the system) has
// occurred. Write 1 to clear. Note that write-on-full does not
// alter the state or contents of the FIFO in any way, but the
// data that the system attempted to write is dropped, so if this
// flag is set, your software has quite likely dropped some data
// on the floor.
#define PIO_FDEBUG_TXOVER_RESET _u(0x0)
#define PIO_FDEBUG_TXOVER_BITS _u(0x000f0000)
#define PIO_FDEBUG_TXOVER_MSB _u(19)
#define PIO_FDEBUG_TXOVER_LSB _u(16)
#define PIO_FDEBUG_TXOVER_ACCESS "WC"
// -----------------------------------------------------------------------------
// Field : PIO_FDEBUG_RXUNDER
// Description : RX FIFO underflow (i.e. read-on-empty by the system) has
// occurred. Write 1 to clear. Note that read-on-empty does not
// perturb the state of the FIFO in any way, but the data returned
// by reading from an empty FIFO is undefined, so this flag
// generally only becomes set due to some kind of software error.
#define PIO_FDEBUG_RXUNDER_RESET _u(0x0)
#define PIO_FDEBUG_RXUNDER_BITS _u(0x00000f00)
#define PIO_FDEBUG_RXUNDER_MSB _u(11)
#define PIO_FDEBUG_RXUNDER_LSB _u(8)
#define PIO_FDEBUG_RXUNDER_ACCESS "WC"
// -----------------------------------------------------------------------------
// Field : PIO_FDEBUG_RXSTALL
// Description : State machine has stalled on full RX FIFO during a blocking
// PUSH, or an IN with autopush enabled. This flag is also set
// when a nonblocking PUSH to a full FIFO took place, in which
// case the state machine has dropped data. Write 1 to clear.
#define PIO_FDEBUG_RXSTALL_RESET _u(0x0)
#define PIO_FDEBUG_RXSTALL_BITS _u(0x0000000f)
#define PIO_FDEBUG_RXSTALL_MSB _u(3)
#define PIO_FDEBUG_RXSTALL_LSB _u(0)
#define PIO_FDEBUG_RXSTALL_ACCESS "WC"
// =============================================================================
// Register : PIO_FLEVEL
// Description : FIFO levels
#define PIO_FLEVEL_OFFSET _u(0x0000000c)
#define PIO_FLEVEL_BITS _u(0xffffffff)
#define PIO_FLEVEL_RESET _u(0x00000000)
// -----------------------------------------------------------------------------
// Field : PIO_FLEVEL_RX3
#define PIO_FLEVEL_RX3_RESET _u(0x0)
#define PIO_FLEVEL_RX3_BITS _u(0xf0000000)
#define PIO_FLEVEL_RX3_MSB _u(31)
#define PIO_FLEVEL_RX3_LSB _u(28)
#define PIO_FLEVEL_RX3_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_FLEVEL_TX3
#define PIO_FLEVEL_TX3_RESET _u(0x0)
#define PIO_FLEVEL_TX3_BITS _u(0x0f000000)
#define PIO_FLEVEL_TX3_MSB _u(27)
#define PIO_FLEVEL_TX3_LSB _u(24)
#define PIO_FLEVEL_TX3_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_FLEVEL_RX2
#define PIO_FLEVEL_RX2_RESET _u(0x0)
#define PIO_FLEVEL_RX2_BITS _u(0x00f00000)
#define PIO_FLEVEL_RX2_MSB _u(23)
#define PIO_FLEVEL_RX2_LSB _u(20)
#define PIO_FLEVEL_RX2_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_FLEVEL_TX2
#define PIO_FLEVEL_TX2_RESET _u(0x0)
#define PIO_FLEVEL_TX2_BITS _u(0x000f0000)
#define PIO_FLEVEL_TX2_MSB _u(19)
#define PIO_FLEVEL_TX2_LSB _u(16)
#define PIO_FLEVEL_TX2_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_FLEVEL_RX1
#define PIO_FLEVEL_RX1_RESET _u(0x0)
#define PIO_FLEVEL_RX1_BITS _u(0x0000f000)
#define PIO_FLEVEL_RX1_MSB _u(15)
#define PIO_FLEVEL_RX1_LSB _u(12)
#define PIO_FLEVEL_RX1_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_FLEVEL_TX1
#define PIO_FLEVEL_TX1_RESET _u(0x0)
#define PIO_FLEVEL_TX1_BITS _u(0x00000f00)
#define PIO_FLEVEL_TX1_MSB _u(11)
#define PIO_FLEVEL_TX1_LSB _u(8)
#define PIO_FLEVEL_TX1_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_FLEVEL_RX0
#define PIO_FLEVEL_RX0_RESET _u(0x0)
#define PIO_FLEVEL_RX0_BITS _u(0x000000f0)
#define PIO_FLEVEL_RX0_MSB _u(7)
#define PIO_FLEVEL_RX0_LSB _u(4)
#define PIO_FLEVEL_RX0_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_FLEVEL_TX0
#define PIO_FLEVEL_TX0_RESET _u(0x0)
#define PIO_FLEVEL_TX0_BITS _u(0x0000000f)
#define PIO_FLEVEL_TX0_MSB _u(3)
#define PIO_FLEVEL_TX0_LSB _u(0)
#define PIO_FLEVEL_TX0_ACCESS "RO"
// =============================================================================
// Register : PIO_TXF0
// Description : Direct write access to the TX FIFO for this state machine. Each
// write pushes one word to the FIFO. Attempting to write to a
// full FIFO has no effect on the FIFO state or contents, and sets
// the sticky FDEBUG_TXOVER error flag for this FIFO.
#define PIO_TXF0_OFFSET _u(0x00000010)
#define PIO_TXF0_BITS _u(0xffffffff)
#define PIO_TXF0_RESET _u(0x00000000)
#define PIO_TXF0_MSB _u(31)
#define PIO_TXF0_LSB _u(0)
#define PIO_TXF0_ACCESS "WF"
// =============================================================================
// Register : PIO_TXF1
// Description : Direct write access to the TX FIFO for this state machine. Each
// write pushes one word to the FIFO. Attempting to write to a
// full FIFO has no effect on the FIFO state or contents, and sets
// the sticky FDEBUG_TXOVER error flag for this FIFO.
#define PIO_TXF1_OFFSET _u(0x00000014)
#define PIO_TXF1_BITS _u(0xffffffff)
#define PIO_TXF1_RESET _u(0x00000000)
#define PIO_TXF1_MSB _u(31)
#define PIO_TXF1_LSB _u(0)
#define PIO_TXF1_ACCESS "WF"
// =============================================================================
// Register : PIO_TXF2
// Description : Direct write access to the TX FIFO for this state machine. Each
// write pushes one word to the FIFO. Attempting to write to a
// full FIFO has no effect on the FIFO state or contents, and sets
// the sticky FDEBUG_TXOVER error flag for this FIFO.
#define PIO_TXF2_OFFSET _u(0x00000018)
#define PIO_TXF2_BITS _u(0xffffffff)
#define PIO_TXF2_RESET _u(0x00000000)
#define PIO_TXF2_MSB _u(31)
#define PIO_TXF2_LSB _u(0)
#define PIO_TXF2_ACCESS "WF"
// =============================================================================
// Register : PIO_TXF3
// Description : Direct write access to the TX FIFO for this state machine. Each
// write pushes one word to the FIFO. Attempting to write to a
// full FIFO has no effect on the FIFO state or contents, and sets
// the sticky FDEBUG_TXOVER error flag for this FIFO.
#define PIO_TXF3_OFFSET _u(0x0000001c)
#define PIO_TXF3_BITS _u(0xffffffff)
#define PIO_TXF3_RESET _u(0x00000000)
#define PIO_TXF3_MSB _u(31)
#define PIO_TXF3_LSB _u(0)
#define PIO_TXF3_ACCESS "WF"
// =============================================================================
// Register : PIO_RXF0
// Description : Direct read access to the RX FIFO for this state machine. Each
// read pops one word from the FIFO. Attempting to read from an
// empty FIFO has no effect on the FIFO state, and sets the sticky
// FDEBUG_RXUNDER error flag for this FIFO. The data returned to
// the system on a read from an empty FIFO is undefined.
#define PIO_RXF0_OFFSET _u(0x00000020)
#define PIO_RXF0_BITS _u(0xffffffff)
#define PIO_RXF0_RESET "-"
#define PIO_RXF0_MSB _u(31)
#define PIO_RXF0_LSB _u(0)
#define PIO_RXF0_ACCESS "RF"
// =============================================================================
// Register : PIO_RXF1
// Description : Direct read access to the RX FIFO for this state machine. Each
// read pops one word from the FIFO. Attempting to read from an
// empty FIFO has no effect on the FIFO state, and sets the sticky
// FDEBUG_RXUNDER error flag for this FIFO. The data returned to
// the system on a read from an empty FIFO is undefined.
#define PIO_RXF1_OFFSET _u(0x00000024)
#define PIO_RXF1_BITS _u(0xffffffff)
#define PIO_RXF1_RESET "-"
#define PIO_RXF1_MSB _u(31)
#define PIO_RXF1_LSB _u(0)
#define PIO_RXF1_ACCESS "RF"
// =============================================================================
// Register : PIO_RXF2
// Description : Direct read access to the RX FIFO for this state machine. Each
// read pops one word from the FIFO. Attempting to read from an
// empty FIFO has no effect on the FIFO state, and sets the sticky
// FDEBUG_RXUNDER error flag for this FIFO. The data returned to
// the system on a read from an empty FIFO is undefined.
#define PIO_RXF2_OFFSET _u(0x00000028)
#define PIO_RXF2_BITS _u(0xffffffff)
#define PIO_RXF2_RESET "-"
#define PIO_RXF2_MSB _u(31)
#define PIO_RXF2_LSB _u(0)
#define PIO_RXF2_ACCESS "RF"
// =============================================================================
// Register : PIO_RXF3
// Description : Direct read access to the RX FIFO for this state machine. Each
// read pops one word from the FIFO. Attempting to read from an
// empty FIFO has no effect on the FIFO state, and sets the sticky
// FDEBUG_RXUNDER error flag for this FIFO. The data returned to
// the system on a read from an empty FIFO is undefined.
#define PIO_RXF3_OFFSET _u(0x0000002c)
#define PIO_RXF3_BITS _u(0xffffffff)
#define PIO_RXF3_RESET "-"
#define PIO_RXF3_MSB _u(31)
#define PIO_RXF3_LSB _u(0)
#define PIO_RXF3_ACCESS "RF"
// =============================================================================
// Register : PIO_IRQ
// Description : State machine IRQ flags register. Write 1 to clear. There are 8
// state machine IRQ flags, which can be set, cleared, and waited
// on by the state machines. There's no fixed association between
// flags and state machines -- any state machine can use any flag.
//
// Any of the 8 flags can be used for timing synchronisation
// between state machines, using IRQ and WAIT instructions. The
// lower four of these flags are also routed out to system-level
// interrupt requests, alongside FIFO status interrupts -- see
// e.g. IRQ0_INTE.
#define PIO_IRQ_OFFSET _u(0x00000030)
#define PIO_IRQ_BITS _u(0x000000ff)
#define PIO_IRQ_RESET _u(0x00000000)
#define PIO_IRQ_MSB _u(7)
#define PIO_IRQ_LSB _u(0)
#define PIO_IRQ_ACCESS "WC"
// =============================================================================
// Register : PIO_IRQ_FORCE
// Description : Writing a 1 to each of these bits will forcibly assert the
// corresponding IRQ. Note this is different to the INTF register:
// writing here affects PIO internal state. INTF just asserts the
// processor-facing IRQ signal for testing ISRs, and is not
// visible to the state machines.
#define PIO_IRQ_FORCE_OFFSET _u(0x00000034)
#define PIO_IRQ_FORCE_BITS _u(0x000000ff)
#define PIO_IRQ_FORCE_RESET _u(0x00000000)
#define PIO_IRQ_FORCE_MSB _u(7)
#define PIO_IRQ_FORCE_LSB _u(0)
#define PIO_IRQ_FORCE_ACCESS "WF"
// =============================================================================
// Register : PIO_INPUT_SYNC_BYPASS
// Description : There is a 2-flipflop synchronizer on each GPIO input, which
// protects PIO logic from metastabilities. This increases input
// delay, and for fast synchronous IO (e.g. SPI) these
// synchronizers may need to be bypassed. Each bit in this
// register corresponds to one GPIO.
// 0 -> input is synchronized (default)
// 1 -> synchronizer is bypassed
// If in doubt, leave this register as all zeroes.
#define PIO_INPUT_SYNC_BYPASS_OFFSET _u(0x00000038)
#define PIO_INPUT_SYNC_BYPASS_BITS _u(0xffffffff)
#define PIO_INPUT_SYNC_BYPASS_RESET _u(0x00000000)
#define PIO_INPUT_SYNC_BYPASS_MSB _u(31)
#define PIO_INPUT_SYNC_BYPASS_LSB _u(0)
#define PIO_INPUT_SYNC_BYPASS_ACCESS "RW"
// =============================================================================
// Register : PIO_DBG_PADOUT
// Description : Read to sample the pad output values PIO is currently driving
// to the GPIOs. On RP2040 there are 30 GPIOs, so the two most
// significant bits are hardwired to 0.
#define PIO_DBG_PADOUT_OFFSET _u(0x0000003c)
#define PIO_DBG_PADOUT_BITS _u(0xffffffff)
#define PIO_DBG_PADOUT_RESET _u(0x00000000)
#define PIO_DBG_PADOUT_MSB _u(31)
#define PIO_DBG_PADOUT_LSB _u(0)
#define PIO_DBG_PADOUT_ACCESS "RO"
// =============================================================================
// Register : PIO_DBG_PADOE
// Description : Read to sample the pad output enables (direction) PIO is
// currently driving to the GPIOs. On RP2040 there are 30 GPIOs,
// so the two most significant bits are hardwired to 0.
#define PIO_DBG_PADOE_OFFSET _u(0x00000040)
#define PIO_DBG_PADOE_BITS _u(0xffffffff)
#define PIO_DBG_PADOE_RESET _u(0x00000000)
#define PIO_DBG_PADOE_MSB _u(31)
#define PIO_DBG_PADOE_LSB _u(0)
#define PIO_DBG_PADOE_ACCESS "RO"
// =============================================================================
// Register : PIO_DBG_CFGINFO
// Description : The PIO hardware has some free parameters that may vary between
// chip products.
// These should be provided in the chip datasheet, but are also
// exposed here.
#define PIO_DBG_CFGINFO_OFFSET _u(0x00000044)
#define PIO_DBG_CFGINFO_BITS _u(0x003f0f3f)
#define PIO_DBG_CFGINFO_RESET _u(0x00000000)
// -----------------------------------------------------------------------------
// Field : PIO_DBG_CFGINFO_IMEM_SIZE
// Description : The size of the instruction memory, measured in units of one
// instruction
#define PIO_DBG_CFGINFO_IMEM_SIZE_RESET "-"
#define PIO_DBG_CFGINFO_IMEM_SIZE_BITS _u(0x003f0000)
#define PIO_DBG_CFGINFO_IMEM_SIZE_MSB _u(21)
#define PIO_DBG_CFGINFO_IMEM_SIZE_LSB _u(16)
#define PIO_DBG_CFGINFO_IMEM_SIZE_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_DBG_CFGINFO_SM_COUNT
// Description : The number of state machines this PIO instance is equipped
// with.
#define PIO_DBG_CFGINFO_SM_COUNT_RESET "-"
#define PIO_DBG_CFGINFO_SM_COUNT_BITS _u(0x00000f00)
#define PIO_DBG_CFGINFO_SM_COUNT_MSB _u(11)
#define PIO_DBG_CFGINFO_SM_COUNT_LSB _u(8)
#define PIO_DBG_CFGINFO_SM_COUNT_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_DBG_CFGINFO_FIFO_DEPTH
// Description : The depth of the state machine TX/RX FIFOs, measured in words.
// Joining fifos via SHIFTCTRL_FJOIN gives one FIFO with double
// this depth.
#define PIO_DBG_CFGINFO_FIFO_DEPTH_RESET "-"
#define PIO_DBG_CFGINFO_FIFO_DEPTH_BITS _u(0x0000003f)
#define PIO_DBG_CFGINFO_FIFO_DEPTH_MSB _u(5)
#define PIO_DBG_CFGINFO_FIFO_DEPTH_LSB _u(0)
#define PIO_DBG_CFGINFO_FIFO_DEPTH_ACCESS "RO"
// =============================================================================
// Register : PIO_INSTR_MEM0
// Description : Write-only access to instruction memory location 0
#define PIO_INSTR_MEM0_OFFSET _u(0x00000048)
#define PIO_INSTR_MEM0_BITS _u(0x0000ffff)
#define PIO_INSTR_MEM0_RESET _u(0x00000000)
#define PIO_INSTR_MEM0_MSB _u(15)
#define PIO_INSTR_MEM0_LSB _u(0)
#define PIO_INSTR_MEM0_ACCESS "WO"
// =============================================================================
// Register : PIO_INSTR_MEM1
// Description : Write-only access to instruction memory location 1
#define PIO_INSTR_MEM1_OFFSET _u(0x0000004c)
#define PIO_INSTR_MEM1_BITS _u(0x0000ffff)
#define PIO_INSTR_MEM1_RESET _u(0x00000000)
#define PIO_INSTR_MEM1_MSB _u(15)
#define PIO_INSTR_MEM1_LSB _u(0)
#define PIO_INSTR_MEM1_ACCESS "WO"
// =============================================================================
// Register : PIO_INSTR_MEM2
// Description : Write-only access to instruction memory location 2
#define PIO_INSTR_MEM2_OFFSET _u(0x00000050)
#define PIO_INSTR_MEM2_BITS _u(0x0000ffff)
#define PIO_INSTR_MEM2_RESET _u(0x00000000)
#define PIO_INSTR_MEM2_MSB _u(15)
#define PIO_INSTR_MEM2_LSB _u(0)
#define PIO_INSTR_MEM2_ACCESS "WO"
// =============================================================================
// Register : PIO_INSTR_MEM3
// Description : Write-only access to instruction memory location 3
#define PIO_INSTR_MEM3_OFFSET _u(0x00000054)
#define PIO_INSTR_MEM3_BITS _u(0x0000ffff)
#define PIO_INSTR_MEM3_RESET _u(0x00000000)
#define PIO_INSTR_MEM3_MSB _u(15)
#define PIO_INSTR_MEM3_LSB _u(0)
#define PIO_INSTR_MEM3_ACCESS "WO"
// =============================================================================
// Register : PIO_INSTR_MEM4
// Description : Write-only access to instruction memory location 4
#define PIO_INSTR_MEM4_OFFSET _u(0x00000058)
#define PIO_INSTR_MEM4_BITS _u(0x0000ffff)
#define PIO_INSTR_MEM4_RESET _u(0x00000000)
#define PIO_INSTR_MEM4_MSB _u(15)
#define PIO_INSTR_MEM4_LSB _u(0)
#define PIO_INSTR_MEM4_ACCESS "WO"
// =============================================================================
// Register : PIO_INSTR_MEM5
// Description : Write-only access to instruction memory location 5
#define PIO_INSTR_MEM5_OFFSET _u(0x0000005c)
#define PIO_INSTR_MEM5_BITS _u(0x0000ffff)
#define PIO_INSTR_MEM5_RESET _u(0x00000000)
#define PIO_INSTR_MEM5_MSB _u(15)
#define PIO_INSTR_MEM5_LSB _u(0)
#define PIO_INSTR_MEM5_ACCESS "WO"
// =============================================================================
// Register : PIO_INSTR_MEM6
// Description : Write-only access to instruction memory location 6
#define PIO_INSTR_MEM6_OFFSET _u(0x00000060)
#define PIO_INSTR_MEM6_BITS _u(0x0000ffff)
#define PIO_INSTR_MEM6_RESET _u(0x00000000)
#define PIO_INSTR_MEM6_MSB _u(15)
#define PIO_INSTR_MEM6_LSB _u(0)
#define PIO_INSTR_MEM6_ACCESS "WO"
// =============================================================================
// Register : PIO_INSTR_MEM7
// Description : Write-only access to instruction memory location 7
#define PIO_INSTR_MEM7_OFFSET _u(0x00000064)
#define PIO_INSTR_MEM7_BITS _u(0x0000ffff)
#define PIO_INSTR_MEM7_RESET _u(0x00000000)
#define PIO_INSTR_MEM7_MSB _u(15)
#define PIO_INSTR_MEM7_LSB _u(0)
#define PIO_INSTR_MEM7_ACCESS "WO"
// =============================================================================
// Register : PIO_INSTR_MEM8
// Description : Write-only access to instruction memory location 8
#define PIO_INSTR_MEM8_OFFSET _u(0x00000068)
#define PIO_INSTR_MEM8_BITS _u(0x0000ffff)
#define PIO_INSTR_MEM8_RESET _u(0x00000000)
#define PIO_INSTR_MEM8_MSB _u(15)
#define PIO_INSTR_MEM8_LSB _u(0)
#define PIO_INSTR_MEM8_ACCESS "WO"
// =============================================================================
// Register : PIO_INSTR_MEM9
// Description : Write-only access to instruction memory location 9
#define PIO_INSTR_MEM9_OFFSET _u(0x0000006c)
#define PIO_INSTR_MEM9_BITS _u(0x0000ffff)
#define PIO_INSTR_MEM9_RESET _u(0x00000000)
#define PIO_INSTR_MEM9_MSB _u(15)
#define PIO_INSTR_MEM9_LSB _u(0)
#define PIO_INSTR_MEM9_ACCESS "WO"
// =============================================================================
// Register : PIO_INSTR_MEM10
// Description : Write-only access to instruction memory location 10
#define PIO_INSTR_MEM10_OFFSET _u(0x00000070)
#define PIO_INSTR_MEM10_BITS _u(0x0000ffff)
#define PIO_INSTR_MEM10_RESET _u(0x00000000)
#define PIO_INSTR_MEM10_MSB _u(15)
#define PIO_INSTR_MEM10_LSB _u(0)
#define PIO_INSTR_MEM10_ACCESS "WO"
// =============================================================================
// Register : PIO_INSTR_MEM11
// Description : Write-only access to instruction memory location 11
#define PIO_INSTR_MEM11_OFFSET _u(0x00000074)
#define PIO_INSTR_MEM11_BITS _u(0x0000ffff)
#define PIO_INSTR_MEM11_RESET _u(0x00000000)
#define PIO_INSTR_MEM11_MSB _u(15)
#define PIO_INSTR_MEM11_LSB _u(0)
#define PIO_INSTR_MEM11_ACCESS "WO"
// =============================================================================
// Register : PIO_INSTR_MEM12
// Description : Write-only access to instruction memory location 12
#define PIO_INSTR_MEM12_OFFSET _u(0x00000078)
#define PIO_INSTR_MEM12_BITS _u(0x0000ffff)
#define PIO_INSTR_MEM12_RESET _u(0x00000000)
#define PIO_INSTR_MEM12_MSB _u(15)
#define PIO_INSTR_MEM12_LSB _u(0)
#define PIO_INSTR_MEM12_ACCESS "WO"
// =============================================================================
// Register : PIO_INSTR_MEM13
// Description : Write-only access to instruction memory location 13
#define PIO_INSTR_MEM13_OFFSET _u(0x0000007c)
#define PIO_INSTR_MEM13_BITS _u(0x0000ffff)
#define PIO_INSTR_MEM13_RESET _u(0x00000000)
#define PIO_INSTR_MEM13_MSB _u(15)
#define PIO_INSTR_MEM13_LSB _u(0)
#define PIO_INSTR_MEM13_ACCESS "WO"
// =============================================================================
// Register : PIO_INSTR_MEM14
// Description : Write-only access to instruction memory location 14
#define PIO_INSTR_MEM14_OFFSET _u(0x00000080)
#define PIO_INSTR_MEM14_BITS _u(0x0000ffff)
#define PIO_INSTR_MEM14_RESET _u(0x00000000)
#define PIO_INSTR_MEM14_MSB _u(15)
#define PIO_INSTR_MEM14_LSB _u(0)
#define PIO_INSTR_MEM14_ACCESS "WO"
// =============================================================================
// Register : PIO_INSTR_MEM15
// Description : Write-only access to instruction memory location 15
#define PIO_INSTR_MEM15_OFFSET _u(0x00000084)
#define PIO_INSTR_MEM15_BITS _u(0x0000ffff)
#define PIO_INSTR_MEM15_RESET _u(0x00000000)
#define PIO_INSTR_MEM15_MSB _u(15)
#define PIO_INSTR_MEM15_LSB _u(0)
#define PIO_INSTR_MEM15_ACCESS "WO"
// =============================================================================
// Register : PIO_INSTR_MEM16
// Description : Write-only access to instruction memory location 16
#define PIO_INSTR_MEM16_OFFSET _u(0x00000088)
#define PIO_INSTR_MEM16_BITS _u(0x0000ffff)
#define PIO_INSTR_MEM16_RESET _u(0x00000000)
#define PIO_INSTR_MEM16_MSB _u(15)
#define PIO_INSTR_MEM16_LSB _u(0)
#define PIO_INSTR_MEM16_ACCESS "WO"
// =============================================================================
// Register : PIO_INSTR_MEM17
// Description : Write-only access to instruction memory location 17
#define PIO_INSTR_MEM17_OFFSET _u(0x0000008c)
#define PIO_INSTR_MEM17_BITS _u(0x0000ffff)
#define PIO_INSTR_MEM17_RESET _u(0x00000000)
#define PIO_INSTR_MEM17_MSB _u(15)
#define PIO_INSTR_MEM17_LSB _u(0)
#define PIO_INSTR_MEM17_ACCESS "WO"
// =============================================================================
// Register : PIO_INSTR_MEM18
// Description : Write-only access to instruction memory location 18
#define PIO_INSTR_MEM18_OFFSET _u(0x00000090)
#define PIO_INSTR_MEM18_BITS _u(0x0000ffff)
#define PIO_INSTR_MEM18_RESET _u(0x00000000)
#define PIO_INSTR_MEM18_MSB _u(15)
#define PIO_INSTR_MEM18_LSB _u(0)
#define PIO_INSTR_MEM18_ACCESS "WO"
// =============================================================================
// Register : PIO_INSTR_MEM19
// Description : Write-only access to instruction memory location 19
#define PIO_INSTR_MEM19_OFFSET _u(0x00000094)
#define PIO_INSTR_MEM19_BITS _u(0x0000ffff)
#define PIO_INSTR_MEM19_RESET _u(0x00000000)
#define PIO_INSTR_MEM19_MSB _u(15)
#define PIO_INSTR_MEM19_LSB _u(0)
#define PIO_INSTR_MEM19_ACCESS "WO"
// =============================================================================
// Register : PIO_INSTR_MEM20
// Description : Write-only access to instruction memory location 20
#define PIO_INSTR_MEM20_OFFSET _u(0x00000098)
#define PIO_INSTR_MEM20_BITS _u(0x0000ffff)
#define PIO_INSTR_MEM20_RESET _u(0x00000000)
#define PIO_INSTR_MEM20_MSB _u(15)
#define PIO_INSTR_MEM20_LSB _u(0)
#define PIO_INSTR_MEM20_ACCESS "WO"
// =============================================================================
// Register : PIO_INSTR_MEM21
// Description : Write-only access to instruction memory location 21
#define PIO_INSTR_MEM21_OFFSET _u(0x0000009c)
#define PIO_INSTR_MEM21_BITS _u(0x0000ffff)
#define PIO_INSTR_MEM21_RESET _u(0x00000000)
#define PIO_INSTR_MEM21_MSB _u(15)
#define PIO_INSTR_MEM21_LSB _u(0)
#define PIO_INSTR_MEM21_ACCESS "WO"
// =============================================================================
// Register : PIO_INSTR_MEM22
// Description : Write-only access to instruction memory location 22
#define PIO_INSTR_MEM22_OFFSET _u(0x000000a0)
#define PIO_INSTR_MEM22_BITS _u(0x0000ffff)
#define PIO_INSTR_MEM22_RESET _u(0x00000000)
#define PIO_INSTR_MEM22_MSB _u(15)
#define PIO_INSTR_MEM22_LSB _u(0)
#define PIO_INSTR_MEM22_ACCESS "WO"
// =============================================================================
// Register : PIO_INSTR_MEM23
// Description : Write-only access to instruction memory location 23
#define PIO_INSTR_MEM23_OFFSET _u(0x000000a4)
#define PIO_INSTR_MEM23_BITS _u(0x0000ffff)
#define PIO_INSTR_MEM23_RESET _u(0x00000000)
#define PIO_INSTR_MEM23_MSB _u(15)
#define PIO_INSTR_MEM23_LSB _u(0)
#define PIO_INSTR_MEM23_ACCESS "WO"
// =============================================================================
// Register : PIO_INSTR_MEM24
// Description : Write-only access to instruction memory location 24
#define PIO_INSTR_MEM24_OFFSET _u(0x000000a8)
#define PIO_INSTR_MEM24_BITS _u(0x0000ffff)
#define PIO_INSTR_MEM24_RESET _u(0x00000000)
#define PIO_INSTR_MEM24_MSB _u(15)
#define PIO_INSTR_MEM24_LSB _u(0)
#define PIO_INSTR_MEM24_ACCESS "WO"
// =============================================================================
// Register : PIO_INSTR_MEM25
// Description : Write-only access to instruction memory location 25
#define PIO_INSTR_MEM25_OFFSET _u(0x000000ac)
#define PIO_INSTR_MEM25_BITS _u(0x0000ffff)
#define PIO_INSTR_MEM25_RESET _u(0x00000000)
#define PIO_INSTR_MEM25_MSB _u(15)
#define PIO_INSTR_MEM25_LSB _u(0)
#define PIO_INSTR_MEM25_ACCESS "WO"
// =============================================================================
// Register : PIO_INSTR_MEM26
// Description : Write-only access to instruction memory location 26
#define PIO_INSTR_MEM26_OFFSET _u(0x000000b0)
#define PIO_INSTR_MEM26_BITS _u(0x0000ffff)
#define PIO_INSTR_MEM26_RESET _u(0x00000000)
#define PIO_INSTR_MEM26_MSB _u(15)
#define PIO_INSTR_MEM26_LSB _u(0)
#define PIO_INSTR_MEM26_ACCESS "WO"
// =============================================================================
// Register : PIO_INSTR_MEM27
// Description : Write-only access to instruction memory location 27
#define PIO_INSTR_MEM27_OFFSET _u(0x000000b4)
#define PIO_INSTR_MEM27_BITS _u(0x0000ffff)
#define PIO_INSTR_MEM27_RESET _u(0x00000000)
#define PIO_INSTR_MEM27_MSB _u(15)
#define PIO_INSTR_MEM27_LSB _u(0)
#define PIO_INSTR_MEM27_ACCESS "WO"
// =============================================================================
// Register : PIO_INSTR_MEM28
// Description : Write-only access to instruction memory location 28
#define PIO_INSTR_MEM28_OFFSET _u(0x000000b8)
#define PIO_INSTR_MEM28_BITS _u(0x0000ffff)
#define PIO_INSTR_MEM28_RESET _u(0x00000000)
#define PIO_INSTR_MEM28_MSB _u(15)
#define PIO_INSTR_MEM28_LSB _u(0)
#define PIO_INSTR_MEM28_ACCESS "WO"
// =============================================================================
// Register : PIO_INSTR_MEM29
// Description : Write-only access to instruction memory location 29
#define PIO_INSTR_MEM29_OFFSET _u(0x000000bc)
#define PIO_INSTR_MEM29_BITS _u(0x0000ffff)
#define PIO_INSTR_MEM29_RESET _u(0x00000000)
#define PIO_INSTR_MEM29_MSB _u(15)
#define PIO_INSTR_MEM29_LSB _u(0)
#define PIO_INSTR_MEM29_ACCESS "WO"
// =============================================================================
// Register : PIO_INSTR_MEM30
// Description : Write-only access to instruction memory location 30
#define PIO_INSTR_MEM30_OFFSET _u(0x000000c0)
#define PIO_INSTR_MEM30_BITS _u(0x0000ffff)
#define PIO_INSTR_MEM30_RESET _u(0x00000000)
#define PIO_INSTR_MEM30_MSB _u(15)
#define PIO_INSTR_MEM30_LSB _u(0)
#define PIO_INSTR_MEM30_ACCESS "WO"
// =============================================================================
// Register : PIO_INSTR_MEM31
// Description : Write-only access to instruction memory location 31
#define PIO_INSTR_MEM31_OFFSET _u(0x000000c4)
#define PIO_INSTR_MEM31_BITS _u(0x0000ffff)
#define PIO_INSTR_MEM31_RESET _u(0x00000000)
#define PIO_INSTR_MEM31_MSB _u(15)
#define PIO_INSTR_MEM31_LSB _u(0)
#define PIO_INSTR_MEM31_ACCESS "WO"
// =============================================================================
// Register : PIO_SM0_CLKDIV
// Description : Clock divisor register for state machine 0
// Frequency = clock freq / (CLKDIV_INT + CLKDIV_FRAC / 256)
#define PIO_SM0_CLKDIV_OFFSET _u(0x000000c8)
#define PIO_SM0_CLKDIV_BITS _u(0xffffff00)
#define PIO_SM0_CLKDIV_RESET _u(0x00010000)
// -----------------------------------------------------------------------------
// Field : PIO_SM0_CLKDIV_INT
// Description : Effective frequency is sysclk/(int + frac/256).
// Value of 0 is interpreted as 65536. If INT is 0, FRAC must also
// be 0.
#define PIO_SM0_CLKDIV_INT_RESET _u(0x0001)
#define PIO_SM0_CLKDIV_INT_BITS _u(0xffff0000)
#define PIO_SM0_CLKDIV_INT_MSB _u(31)
#define PIO_SM0_CLKDIV_INT_LSB _u(16)
#define PIO_SM0_CLKDIV_INT_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM0_CLKDIV_FRAC
// Description : Fractional part of clock divisor
#define PIO_SM0_CLKDIV_FRAC_RESET _u(0x00)
#define PIO_SM0_CLKDIV_FRAC_BITS _u(0x0000ff00)
#define PIO_SM0_CLKDIV_FRAC_MSB _u(15)
#define PIO_SM0_CLKDIV_FRAC_LSB _u(8)
#define PIO_SM0_CLKDIV_FRAC_ACCESS "RW"
// =============================================================================
// Register : PIO_SM0_EXECCTRL
// Description : Execution/behavioural settings for state machine 0
#define PIO_SM0_EXECCTRL_OFFSET _u(0x000000cc)
#define PIO_SM0_EXECCTRL_BITS _u(0xffffff9f)
#define PIO_SM0_EXECCTRL_RESET _u(0x0001f000)
// -----------------------------------------------------------------------------
// Field : PIO_SM0_EXECCTRL_EXEC_STALLED
// Description : If 1, an instruction written to SMx_INSTR is stalled, and
// latched by the state machine. Will clear to 0 once this
// instruction completes.
#define PIO_SM0_EXECCTRL_EXEC_STALLED_RESET _u(0x0)
#define PIO_SM0_EXECCTRL_EXEC_STALLED_BITS _u(0x80000000)
#define PIO_SM0_EXECCTRL_EXEC_STALLED_MSB _u(31)
#define PIO_SM0_EXECCTRL_EXEC_STALLED_LSB _u(31)
#define PIO_SM0_EXECCTRL_EXEC_STALLED_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_SM0_EXECCTRL_SIDE_EN
// Description : If 1, the MSB of the Delay/Side-set instruction field is used
// as side-set enable, rather than a side-set data bit. This
// allows instructions to perform side-set optionally, rather than
// on every instruction, but the maximum possible side-set width
// is reduced from 5 to 4. Note that the value of
// PINCTRL_SIDESET_COUNT is inclusive of this enable bit.
#define PIO_SM0_EXECCTRL_SIDE_EN_RESET _u(0x0)
#define PIO_SM0_EXECCTRL_SIDE_EN_BITS _u(0x40000000)
#define PIO_SM0_EXECCTRL_SIDE_EN_MSB _u(30)
#define PIO_SM0_EXECCTRL_SIDE_EN_LSB _u(30)
#define PIO_SM0_EXECCTRL_SIDE_EN_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM0_EXECCTRL_SIDE_PINDIR
// Description : If 1, side-set data is asserted to pin directions, instead of
// pin values
#define PIO_SM0_EXECCTRL_SIDE_PINDIR_RESET _u(0x0)
#define PIO_SM0_EXECCTRL_SIDE_PINDIR_BITS _u(0x20000000)
#define PIO_SM0_EXECCTRL_SIDE_PINDIR_MSB _u(29)
#define PIO_SM0_EXECCTRL_SIDE_PINDIR_LSB _u(29)
#define PIO_SM0_EXECCTRL_SIDE_PINDIR_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM0_EXECCTRL_JMP_PIN
// Description : The GPIO number to use as condition for JMP PIN. Unaffected by
// input mapping.
#define PIO_SM0_EXECCTRL_JMP_PIN_RESET _u(0x00)
#define PIO_SM0_EXECCTRL_JMP_PIN_BITS _u(0x1f000000)
#define PIO_SM0_EXECCTRL_JMP_PIN_MSB _u(28)
#define PIO_SM0_EXECCTRL_JMP_PIN_LSB _u(24)
#define PIO_SM0_EXECCTRL_JMP_PIN_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM0_EXECCTRL_OUT_EN_SEL
// Description : Which data bit to use for inline OUT enable
#define PIO_SM0_EXECCTRL_OUT_EN_SEL_RESET _u(0x00)
#define PIO_SM0_EXECCTRL_OUT_EN_SEL_BITS _u(0x00f80000)
#define PIO_SM0_EXECCTRL_OUT_EN_SEL_MSB _u(23)
#define PIO_SM0_EXECCTRL_OUT_EN_SEL_LSB _u(19)
#define PIO_SM0_EXECCTRL_OUT_EN_SEL_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM0_EXECCTRL_INLINE_OUT_EN
// Description : If 1, use a bit of OUT data as an auxiliary write enable
// When used in conjunction with OUT_STICKY, writes with an enable
// of 0 will
// deassert the latest pin write. This can create useful
// masking/override behaviour
// due to the priority ordering of state machine pin writes (SM0 <
// SM1 < ...)
#define PIO_SM0_EXECCTRL_INLINE_OUT_EN_RESET _u(0x0)
#define PIO_SM0_EXECCTRL_INLINE_OUT_EN_BITS _u(0x00040000)
#define PIO_SM0_EXECCTRL_INLINE_OUT_EN_MSB _u(18)
#define PIO_SM0_EXECCTRL_INLINE_OUT_EN_LSB _u(18)
#define PIO_SM0_EXECCTRL_INLINE_OUT_EN_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM0_EXECCTRL_OUT_STICKY
// Description : Continuously assert the most recent OUT/SET to the pins
#define PIO_SM0_EXECCTRL_OUT_STICKY_RESET _u(0x0)
#define PIO_SM0_EXECCTRL_OUT_STICKY_BITS _u(0x00020000)
#define PIO_SM0_EXECCTRL_OUT_STICKY_MSB _u(17)
#define PIO_SM0_EXECCTRL_OUT_STICKY_LSB _u(17)
#define PIO_SM0_EXECCTRL_OUT_STICKY_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM0_EXECCTRL_WRAP_TOP
// Description : After reaching this address, execution is wrapped to
// wrap_bottom.
// If the instruction is a jump, and the jump condition is true,
// the jump takes priority.
#define PIO_SM0_EXECCTRL_WRAP_TOP_RESET _u(0x1f)
#define PIO_SM0_EXECCTRL_WRAP_TOP_BITS _u(0x0001f000)
#define PIO_SM0_EXECCTRL_WRAP_TOP_MSB _u(16)
#define PIO_SM0_EXECCTRL_WRAP_TOP_LSB _u(12)
#define PIO_SM0_EXECCTRL_WRAP_TOP_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM0_EXECCTRL_WRAP_BOTTOM
// Description : After reaching wrap_top, execution is wrapped to this address.
#define PIO_SM0_EXECCTRL_WRAP_BOTTOM_RESET _u(0x00)
#define PIO_SM0_EXECCTRL_WRAP_BOTTOM_BITS _u(0x00000f80)
#define PIO_SM0_EXECCTRL_WRAP_BOTTOM_MSB _u(11)
#define PIO_SM0_EXECCTRL_WRAP_BOTTOM_LSB _u(7)
#define PIO_SM0_EXECCTRL_WRAP_BOTTOM_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM0_EXECCTRL_STATUS_SEL
// Description : Comparison used for the MOV x, STATUS instruction.
// 0x0 -> All-ones if TX FIFO level < N, otherwise all-zeroes
// 0x1 -> All-ones if RX FIFO level < N, otherwise all-zeroes
#define PIO_SM0_EXECCTRL_STATUS_SEL_RESET _u(0x0)
#define PIO_SM0_EXECCTRL_STATUS_SEL_BITS _u(0x00000010)
#define PIO_SM0_EXECCTRL_STATUS_SEL_MSB _u(4)
#define PIO_SM0_EXECCTRL_STATUS_SEL_LSB _u(4)
#define PIO_SM0_EXECCTRL_STATUS_SEL_ACCESS "RW"
#define PIO_SM0_EXECCTRL_STATUS_SEL_VALUE_TXLEVEL _u(0x0)
#define PIO_SM0_EXECCTRL_STATUS_SEL_VALUE_RXLEVEL _u(0x1)
// -----------------------------------------------------------------------------
// Field : PIO_SM0_EXECCTRL_STATUS_N
// Description : Comparison level for the MOV x, STATUS instruction
#define PIO_SM0_EXECCTRL_STATUS_N_RESET _u(0x0)
#define PIO_SM0_EXECCTRL_STATUS_N_BITS _u(0x0000000f)
#define PIO_SM0_EXECCTRL_STATUS_N_MSB _u(3)
#define PIO_SM0_EXECCTRL_STATUS_N_LSB _u(0)
#define PIO_SM0_EXECCTRL_STATUS_N_ACCESS "RW"
// =============================================================================
// Register : PIO_SM0_SHIFTCTRL
// Description : Control behaviour of the input/output shift registers for state
// machine 0
#define PIO_SM0_SHIFTCTRL_OFFSET _u(0x000000d0)
#define PIO_SM0_SHIFTCTRL_BITS _u(0xffff0000)
#define PIO_SM0_SHIFTCTRL_RESET _u(0x000c0000)
// -----------------------------------------------------------------------------
// Field : PIO_SM0_SHIFTCTRL_FJOIN_RX
// Description : When 1, RX FIFO steals the TX FIFO's storage, and becomes twice
// as deep.
// TX FIFO is disabled as a result (always reads as both full and
// empty).
// FIFOs are flushed when this bit is changed.
#define PIO_SM0_SHIFTCTRL_FJOIN_RX_RESET _u(0x0)
#define PIO_SM0_SHIFTCTRL_FJOIN_RX_BITS _u(0x80000000)
#define PIO_SM0_SHIFTCTRL_FJOIN_RX_MSB _u(31)
#define PIO_SM0_SHIFTCTRL_FJOIN_RX_LSB _u(31)
#define PIO_SM0_SHIFTCTRL_FJOIN_RX_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM0_SHIFTCTRL_FJOIN_TX
// Description : When 1, TX FIFO steals the RX FIFO's storage, and becomes twice
// as deep.
// RX FIFO is disabled as a result (always reads as both full and
// empty).
// FIFOs are flushed when this bit is changed.
#define PIO_SM0_SHIFTCTRL_FJOIN_TX_RESET _u(0x0)
#define PIO_SM0_SHIFTCTRL_FJOIN_TX_BITS _u(0x40000000)
#define PIO_SM0_SHIFTCTRL_FJOIN_TX_MSB _u(30)
#define PIO_SM0_SHIFTCTRL_FJOIN_TX_LSB _u(30)
#define PIO_SM0_SHIFTCTRL_FJOIN_TX_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM0_SHIFTCTRL_PULL_THRESH
// Description : Number of bits shifted out of OSR before autopull, or
// conditional pull (PULL IFEMPTY), will take place.
// Write 0 for value of 32.
#define PIO_SM0_SHIFTCTRL_PULL_THRESH_RESET _u(0x00)
#define PIO_SM0_SHIFTCTRL_PULL_THRESH_BITS _u(0x3e000000)
#define PIO_SM0_SHIFTCTRL_PULL_THRESH_MSB _u(29)
#define PIO_SM0_SHIFTCTRL_PULL_THRESH_LSB _u(25)
#define PIO_SM0_SHIFTCTRL_PULL_THRESH_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM0_SHIFTCTRL_PUSH_THRESH
// Description : Number of bits shifted into ISR before autopush, or conditional
// push (PUSH IFFULL), will take place.
// Write 0 for value of 32.
#define PIO_SM0_SHIFTCTRL_PUSH_THRESH_RESET _u(0x00)
#define PIO_SM0_SHIFTCTRL_PUSH_THRESH_BITS _u(0x01f00000)
#define PIO_SM0_SHIFTCTRL_PUSH_THRESH_MSB _u(24)
#define PIO_SM0_SHIFTCTRL_PUSH_THRESH_LSB _u(20)
#define PIO_SM0_SHIFTCTRL_PUSH_THRESH_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM0_SHIFTCTRL_OUT_SHIFTDIR
// Description : 1 = shift out of output shift register to right. 0 = to left.
#define PIO_SM0_SHIFTCTRL_OUT_SHIFTDIR_RESET _u(0x1)
#define PIO_SM0_SHIFTCTRL_OUT_SHIFTDIR_BITS _u(0x00080000)
#define PIO_SM0_SHIFTCTRL_OUT_SHIFTDIR_MSB _u(19)
#define PIO_SM0_SHIFTCTRL_OUT_SHIFTDIR_LSB _u(19)
#define PIO_SM0_SHIFTCTRL_OUT_SHIFTDIR_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM0_SHIFTCTRL_IN_SHIFTDIR
// Description : 1 = shift input shift register to right (data enters from
// left). 0 = to left.
#define PIO_SM0_SHIFTCTRL_IN_SHIFTDIR_RESET _u(0x1)
#define PIO_SM0_SHIFTCTRL_IN_SHIFTDIR_BITS _u(0x00040000)
#define PIO_SM0_SHIFTCTRL_IN_SHIFTDIR_MSB _u(18)
#define PIO_SM0_SHIFTCTRL_IN_SHIFTDIR_LSB _u(18)
#define PIO_SM0_SHIFTCTRL_IN_SHIFTDIR_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM0_SHIFTCTRL_AUTOPULL
// Description : Pull automatically when the output shift register is emptied,
// i.e. on or following an OUT instruction which causes the output
// shift counter to reach or exceed PULL_THRESH.
#define PIO_SM0_SHIFTCTRL_AUTOPULL_RESET _u(0x0)
#define PIO_SM0_SHIFTCTRL_AUTOPULL_BITS _u(0x00020000)
#define PIO_SM0_SHIFTCTRL_AUTOPULL_MSB _u(17)
#define PIO_SM0_SHIFTCTRL_AUTOPULL_LSB _u(17)
#define PIO_SM0_SHIFTCTRL_AUTOPULL_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM0_SHIFTCTRL_AUTOPUSH
// Description : Push automatically when the input shift register is filled,
// i.e. on an IN instruction which causes the input shift counter
// to reach or exceed PUSH_THRESH.
#define PIO_SM0_SHIFTCTRL_AUTOPUSH_RESET _u(0x0)
#define PIO_SM0_SHIFTCTRL_AUTOPUSH_BITS _u(0x00010000)
#define PIO_SM0_SHIFTCTRL_AUTOPUSH_MSB _u(16)
#define PIO_SM0_SHIFTCTRL_AUTOPUSH_LSB _u(16)
#define PIO_SM0_SHIFTCTRL_AUTOPUSH_ACCESS "RW"
// =============================================================================
// Register : PIO_SM0_ADDR
// Description : Current instruction address of state machine 0
#define PIO_SM0_ADDR_OFFSET _u(0x000000d4)
#define PIO_SM0_ADDR_BITS _u(0x0000001f)
#define PIO_SM0_ADDR_RESET _u(0x00000000)
#define PIO_SM0_ADDR_MSB _u(4)
#define PIO_SM0_ADDR_LSB _u(0)
#define PIO_SM0_ADDR_ACCESS "RO"
// =============================================================================
// Register : PIO_SM0_INSTR
// Description : Read to see the instruction currently addressed by state
// machine 0's program counter
// Write to execute an instruction immediately (including jumps)
// and then resume execution.
#define PIO_SM0_INSTR_OFFSET _u(0x000000d8)
#define PIO_SM0_INSTR_BITS _u(0x0000ffff)
#define PIO_SM0_INSTR_RESET "-"
#define PIO_SM0_INSTR_MSB _u(15)
#define PIO_SM0_INSTR_LSB _u(0)
#define PIO_SM0_INSTR_ACCESS "RW"
// =============================================================================
// Register : PIO_SM0_PINCTRL
// Description : State machine pin control
#define PIO_SM0_PINCTRL_OFFSET _u(0x000000dc)
#define PIO_SM0_PINCTRL_BITS _u(0xffffffff)
#define PIO_SM0_PINCTRL_RESET _u(0x14000000)
// -----------------------------------------------------------------------------
// Field : PIO_SM0_PINCTRL_SIDESET_COUNT
// Description : The number of MSBs of the Delay/Side-set instruction field
// which are used for side-set. Inclusive of the enable bit, if
// present. Minimum of 0 (all delay bits, no side-set) and maximum
// of 5 (all side-set, no delay).
#define PIO_SM0_PINCTRL_SIDESET_COUNT_RESET _u(0x0)
#define PIO_SM0_PINCTRL_SIDESET_COUNT_BITS _u(0xe0000000)
#define PIO_SM0_PINCTRL_SIDESET_COUNT_MSB _u(31)
#define PIO_SM0_PINCTRL_SIDESET_COUNT_LSB _u(29)
#define PIO_SM0_PINCTRL_SIDESET_COUNT_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM0_PINCTRL_SET_COUNT
// Description : The number of pins asserted by a SET. In the range 0 to 5
// inclusive.
#define PIO_SM0_PINCTRL_SET_COUNT_RESET _u(0x5)
#define PIO_SM0_PINCTRL_SET_COUNT_BITS _u(0x1c000000)
#define PIO_SM0_PINCTRL_SET_COUNT_MSB _u(28)
#define PIO_SM0_PINCTRL_SET_COUNT_LSB _u(26)
#define PIO_SM0_PINCTRL_SET_COUNT_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM0_PINCTRL_OUT_COUNT
// Description : The number of pins asserted by an OUT PINS, OUT PINDIRS or MOV
// PINS instruction. In the range 0 to 32 inclusive.
#define PIO_SM0_PINCTRL_OUT_COUNT_RESET _u(0x00)
#define PIO_SM0_PINCTRL_OUT_COUNT_BITS _u(0x03f00000)
#define PIO_SM0_PINCTRL_OUT_COUNT_MSB _u(25)
#define PIO_SM0_PINCTRL_OUT_COUNT_LSB _u(20)
#define PIO_SM0_PINCTRL_OUT_COUNT_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM0_PINCTRL_IN_BASE
// Description : The pin which is mapped to the least-significant bit of a state
// machine's IN data bus. Higher-numbered pins are mapped to
// consecutively more-significant data bits, with a modulo of 32
// applied to pin number.
#define PIO_SM0_PINCTRL_IN_BASE_RESET _u(0x00)
#define PIO_SM0_PINCTRL_IN_BASE_BITS _u(0x000f8000)
#define PIO_SM0_PINCTRL_IN_BASE_MSB _u(19)
#define PIO_SM0_PINCTRL_IN_BASE_LSB _u(15)
#define PIO_SM0_PINCTRL_IN_BASE_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM0_PINCTRL_SIDESET_BASE
// Description : The lowest-numbered pin that will be affected by a side-set
// operation. The MSBs of an instruction's side-set/delay field
// (up to 5, determined by SIDESET_COUNT) are used for side-set
// data, with the remaining LSBs used for delay. The least-
// significant bit of the side-set portion is the bit written to
// this pin, with more-significant bits written to higher-numbered
// pins.
#define PIO_SM0_PINCTRL_SIDESET_BASE_RESET _u(0x00)
#define PIO_SM0_PINCTRL_SIDESET_BASE_BITS _u(0x00007c00)
#define PIO_SM0_PINCTRL_SIDESET_BASE_MSB _u(14)
#define PIO_SM0_PINCTRL_SIDESET_BASE_LSB _u(10)
#define PIO_SM0_PINCTRL_SIDESET_BASE_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM0_PINCTRL_SET_BASE
// Description : The lowest-numbered pin that will be affected by a SET PINS or
// SET PINDIRS instruction. The data written to this pin is the
// least-significant bit of the SET data.
#define PIO_SM0_PINCTRL_SET_BASE_RESET _u(0x00)
#define PIO_SM0_PINCTRL_SET_BASE_BITS _u(0x000003e0)
#define PIO_SM0_PINCTRL_SET_BASE_MSB _u(9)
#define PIO_SM0_PINCTRL_SET_BASE_LSB _u(5)
#define PIO_SM0_PINCTRL_SET_BASE_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM0_PINCTRL_OUT_BASE
// Description : The lowest-numbered pin that will be affected by an OUT PINS,
// OUT PINDIRS or MOV PINS instruction. The data written to this
// pin will always be the least-significant bit of the OUT or MOV
// data.
#define PIO_SM0_PINCTRL_OUT_BASE_RESET _u(0x00)
#define PIO_SM0_PINCTRL_OUT_BASE_BITS _u(0x0000001f)
#define PIO_SM0_PINCTRL_OUT_BASE_MSB _u(4)
#define PIO_SM0_PINCTRL_OUT_BASE_LSB _u(0)
#define PIO_SM0_PINCTRL_OUT_BASE_ACCESS "RW"
// =============================================================================
// Register : PIO_SM1_CLKDIV
// Description : Clock divisor register for state machine 1
// Frequency = clock freq / (CLKDIV_INT + CLKDIV_FRAC / 256)
#define PIO_SM1_CLKDIV_OFFSET _u(0x000000e0)
#define PIO_SM1_CLKDIV_BITS _u(0xffffff00)
#define PIO_SM1_CLKDIV_RESET _u(0x00010000)
// -----------------------------------------------------------------------------
// Field : PIO_SM1_CLKDIV_INT
// Description : Effective frequency is sysclk/(int + frac/256).
// Value of 0 is interpreted as 65536. If INT is 0, FRAC must also
// be 0.
#define PIO_SM1_CLKDIV_INT_RESET _u(0x0001)
#define PIO_SM1_CLKDIV_INT_BITS _u(0xffff0000)
#define PIO_SM1_CLKDIV_INT_MSB _u(31)
#define PIO_SM1_CLKDIV_INT_LSB _u(16)
#define PIO_SM1_CLKDIV_INT_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM1_CLKDIV_FRAC
// Description : Fractional part of clock divisor
#define PIO_SM1_CLKDIV_FRAC_RESET _u(0x00)
#define PIO_SM1_CLKDIV_FRAC_BITS _u(0x0000ff00)
#define PIO_SM1_CLKDIV_FRAC_MSB _u(15)
#define PIO_SM1_CLKDIV_FRAC_LSB _u(8)
#define PIO_SM1_CLKDIV_FRAC_ACCESS "RW"
// =============================================================================
// Register : PIO_SM1_EXECCTRL
// Description : Execution/behavioural settings for state machine 1
#define PIO_SM1_EXECCTRL_OFFSET _u(0x000000e4)
#define PIO_SM1_EXECCTRL_BITS _u(0xffffff9f)
#define PIO_SM1_EXECCTRL_RESET _u(0x0001f000)
// -----------------------------------------------------------------------------
// Field : PIO_SM1_EXECCTRL_EXEC_STALLED
// Description : If 1, an instruction written to SMx_INSTR is stalled, and
// latched by the state machine. Will clear to 0 once this
// instruction completes.
#define PIO_SM1_EXECCTRL_EXEC_STALLED_RESET _u(0x0)
#define PIO_SM1_EXECCTRL_EXEC_STALLED_BITS _u(0x80000000)
#define PIO_SM1_EXECCTRL_EXEC_STALLED_MSB _u(31)
#define PIO_SM1_EXECCTRL_EXEC_STALLED_LSB _u(31)
#define PIO_SM1_EXECCTRL_EXEC_STALLED_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_SM1_EXECCTRL_SIDE_EN
// Description : If 1, the MSB of the Delay/Side-set instruction field is used
// as side-set enable, rather than a side-set data bit. This
// allows instructions to perform side-set optionally, rather than
// on every instruction, but the maximum possible side-set width
// is reduced from 5 to 4. Note that the value of
// PINCTRL_SIDESET_COUNT is inclusive of this enable bit.
#define PIO_SM1_EXECCTRL_SIDE_EN_RESET _u(0x0)
#define PIO_SM1_EXECCTRL_SIDE_EN_BITS _u(0x40000000)
#define PIO_SM1_EXECCTRL_SIDE_EN_MSB _u(30)
#define PIO_SM1_EXECCTRL_SIDE_EN_LSB _u(30)
#define PIO_SM1_EXECCTRL_SIDE_EN_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM1_EXECCTRL_SIDE_PINDIR
// Description : If 1, side-set data is asserted to pin directions, instead of
// pin values
#define PIO_SM1_EXECCTRL_SIDE_PINDIR_RESET _u(0x0)
#define PIO_SM1_EXECCTRL_SIDE_PINDIR_BITS _u(0x20000000)
#define PIO_SM1_EXECCTRL_SIDE_PINDIR_MSB _u(29)
#define PIO_SM1_EXECCTRL_SIDE_PINDIR_LSB _u(29)
#define PIO_SM1_EXECCTRL_SIDE_PINDIR_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM1_EXECCTRL_JMP_PIN
// Description : The GPIO number to use as condition for JMP PIN. Unaffected by
// input mapping.
#define PIO_SM1_EXECCTRL_JMP_PIN_RESET _u(0x00)
#define PIO_SM1_EXECCTRL_JMP_PIN_BITS _u(0x1f000000)
#define PIO_SM1_EXECCTRL_JMP_PIN_MSB _u(28)
#define PIO_SM1_EXECCTRL_JMP_PIN_LSB _u(24)
#define PIO_SM1_EXECCTRL_JMP_PIN_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM1_EXECCTRL_OUT_EN_SEL
// Description : Which data bit to use for inline OUT enable
#define PIO_SM1_EXECCTRL_OUT_EN_SEL_RESET _u(0x00)
#define PIO_SM1_EXECCTRL_OUT_EN_SEL_BITS _u(0x00f80000)
#define PIO_SM1_EXECCTRL_OUT_EN_SEL_MSB _u(23)
#define PIO_SM1_EXECCTRL_OUT_EN_SEL_LSB _u(19)
#define PIO_SM1_EXECCTRL_OUT_EN_SEL_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM1_EXECCTRL_INLINE_OUT_EN
// Description : If 1, use a bit of OUT data as an auxiliary write enable
// When used in conjunction with OUT_STICKY, writes with an enable
// of 0 will
// deassert the latest pin write. This can create useful
// masking/override behaviour
// due to the priority ordering of state machine pin writes (SM0 <
// SM1 < ...)
#define PIO_SM1_EXECCTRL_INLINE_OUT_EN_RESET _u(0x0)
#define PIO_SM1_EXECCTRL_INLINE_OUT_EN_BITS _u(0x00040000)
#define PIO_SM1_EXECCTRL_INLINE_OUT_EN_MSB _u(18)
#define PIO_SM1_EXECCTRL_INLINE_OUT_EN_LSB _u(18)
#define PIO_SM1_EXECCTRL_INLINE_OUT_EN_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM1_EXECCTRL_OUT_STICKY
// Description : Continuously assert the most recent OUT/SET to the pins
#define PIO_SM1_EXECCTRL_OUT_STICKY_RESET _u(0x0)
#define PIO_SM1_EXECCTRL_OUT_STICKY_BITS _u(0x00020000)
#define PIO_SM1_EXECCTRL_OUT_STICKY_MSB _u(17)
#define PIO_SM1_EXECCTRL_OUT_STICKY_LSB _u(17)
#define PIO_SM1_EXECCTRL_OUT_STICKY_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM1_EXECCTRL_WRAP_TOP
// Description : After reaching this address, execution is wrapped to
// wrap_bottom.
// If the instruction is a jump, and the jump condition is true,
// the jump takes priority.
#define PIO_SM1_EXECCTRL_WRAP_TOP_RESET _u(0x1f)
#define PIO_SM1_EXECCTRL_WRAP_TOP_BITS _u(0x0001f000)
#define PIO_SM1_EXECCTRL_WRAP_TOP_MSB _u(16)
#define PIO_SM1_EXECCTRL_WRAP_TOP_LSB _u(12)
#define PIO_SM1_EXECCTRL_WRAP_TOP_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM1_EXECCTRL_WRAP_BOTTOM
// Description : After reaching wrap_top, execution is wrapped to this address.
#define PIO_SM1_EXECCTRL_WRAP_BOTTOM_RESET _u(0x00)
#define PIO_SM1_EXECCTRL_WRAP_BOTTOM_BITS _u(0x00000f80)
#define PIO_SM1_EXECCTRL_WRAP_BOTTOM_MSB _u(11)
#define PIO_SM1_EXECCTRL_WRAP_BOTTOM_LSB _u(7)
#define PIO_SM1_EXECCTRL_WRAP_BOTTOM_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM1_EXECCTRL_STATUS_SEL
// Description : Comparison used for the MOV x, STATUS instruction.
// 0x0 -> All-ones if TX FIFO level < N, otherwise all-zeroes
// 0x1 -> All-ones if RX FIFO level < N, otherwise all-zeroes
#define PIO_SM1_EXECCTRL_STATUS_SEL_RESET _u(0x0)
#define PIO_SM1_EXECCTRL_STATUS_SEL_BITS _u(0x00000010)
#define PIO_SM1_EXECCTRL_STATUS_SEL_MSB _u(4)
#define PIO_SM1_EXECCTRL_STATUS_SEL_LSB _u(4)
#define PIO_SM1_EXECCTRL_STATUS_SEL_ACCESS "RW"
#define PIO_SM1_EXECCTRL_STATUS_SEL_VALUE_TXLEVEL _u(0x0)
#define PIO_SM1_EXECCTRL_STATUS_SEL_VALUE_RXLEVEL _u(0x1)
// -----------------------------------------------------------------------------
// Field : PIO_SM1_EXECCTRL_STATUS_N
// Description : Comparison level for the MOV x, STATUS instruction
#define PIO_SM1_EXECCTRL_STATUS_N_RESET _u(0x0)
#define PIO_SM1_EXECCTRL_STATUS_N_BITS _u(0x0000000f)
#define PIO_SM1_EXECCTRL_STATUS_N_MSB _u(3)
#define PIO_SM1_EXECCTRL_STATUS_N_LSB _u(0)
#define PIO_SM1_EXECCTRL_STATUS_N_ACCESS "RW"
// =============================================================================
// Register : PIO_SM1_SHIFTCTRL
// Description : Control behaviour of the input/output shift registers for state
// machine 1
#define PIO_SM1_SHIFTCTRL_OFFSET _u(0x000000e8)
#define PIO_SM1_SHIFTCTRL_BITS _u(0xffff0000)
#define PIO_SM1_SHIFTCTRL_RESET _u(0x000c0000)
// -----------------------------------------------------------------------------
// Field : PIO_SM1_SHIFTCTRL_FJOIN_RX
// Description : When 1, RX FIFO steals the TX FIFO's storage, and becomes twice
// as deep.
// TX FIFO is disabled as a result (always reads as both full and
// empty).
// FIFOs are flushed when this bit is changed.
#define PIO_SM1_SHIFTCTRL_FJOIN_RX_RESET _u(0x0)
#define PIO_SM1_SHIFTCTRL_FJOIN_RX_BITS _u(0x80000000)
#define PIO_SM1_SHIFTCTRL_FJOIN_RX_MSB _u(31)
#define PIO_SM1_SHIFTCTRL_FJOIN_RX_LSB _u(31)
#define PIO_SM1_SHIFTCTRL_FJOIN_RX_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM1_SHIFTCTRL_FJOIN_TX
// Description : When 1, TX FIFO steals the RX FIFO's storage, and becomes twice
// as deep.
// RX FIFO is disabled as a result (always reads as both full and
// empty).
// FIFOs are flushed when this bit is changed.
#define PIO_SM1_SHIFTCTRL_FJOIN_TX_RESET _u(0x0)
#define PIO_SM1_SHIFTCTRL_FJOIN_TX_BITS _u(0x40000000)
#define PIO_SM1_SHIFTCTRL_FJOIN_TX_MSB _u(30)
#define PIO_SM1_SHIFTCTRL_FJOIN_TX_LSB _u(30)
#define PIO_SM1_SHIFTCTRL_FJOIN_TX_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM1_SHIFTCTRL_PULL_THRESH
// Description : Number of bits shifted out of OSR before autopull, or
// conditional pull (PULL IFEMPTY), will take place.
// Write 0 for value of 32.
#define PIO_SM1_SHIFTCTRL_PULL_THRESH_RESET _u(0x00)
#define PIO_SM1_SHIFTCTRL_PULL_THRESH_BITS _u(0x3e000000)
#define PIO_SM1_SHIFTCTRL_PULL_THRESH_MSB _u(29)
#define PIO_SM1_SHIFTCTRL_PULL_THRESH_LSB _u(25)
#define PIO_SM1_SHIFTCTRL_PULL_THRESH_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM1_SHIFTCTRL_PUSH_THRESH
// Description : Number of bits shifted into ISR before autopush, or conditional
// push (PUSH IFFULL), will take place.
// Write 0 for value of 32.
#define PIO_SM1_SHIFTCTRL_PUSH_THRESH_RESET _u(0x00)
#define PIO_SM1_SHIFTCTRL_PUSH_THRESH_BITS _u(0x01f00000)
#define PIO_SM1_SHIFTCTRL_PUSH_THRESH_MSB _u(24)
#define PIO_SM1_SHIFTCTRL_PUSH_THRESH_LSB _u(20)
#define PIO_SM1_SHIFTCTRL_PUSH_THRESH_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM1_SHIFTCTRL_OUT_SHIFTDIR
// Description : 1 = shift out of output shift register to right. 0 = to left.
#define PIO_SM1_SHIFTCTRL_OUT_SHIFTDIR_RESET _u(0x1)
#define PIO_SM1_SHIFTCTRL_OUT_SHIFTDIR_BITS _u(0x00080000)
#define PIO_SM1_SHIFTCTRL_OUT_SHIFTDIR_MSB _u(19)
#define PIO_SM1_SHIFTCTRL_OUT_SHIFTDIR_LSB _u(19)
#define PIO_SM1_SHIFTCTRL_OUT_SHIFTDIR_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM1_SHIFTCTRL_IN_SHIFTDIR
// Description : 1 = shift input shift register to right (data enters from
// left). 0 = to left.
#define PIO_SM1_SHIFTCTRL_IN_SHIFTDIR_RESET _u(0x1)
#define PIO_SM1_SHIFTCTRL_IN_SHIFTDIR_BITS _u(0x00040000)
#define PIO_SM1_SHIFTCTRL_IN_SHIFTDIR_MSB _u(18)
#define PIO_SM1_SHIFTCTRL_IN_SHIFTDIR_LSB _u(18)
#define PIO_SM1_SHIFTCTRL_IN_SHIFTDIR_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM1_SHIFTCTRL_AUTOPULL
// Description : Pull automatically when the output shift register is emptied,
// i.e. on or following an OUT instruction which causes the output
// shift counter to reach or exceed PULL_THRESH.
#define PIO_SM1_SHIFTCTRL_AUTOPULL_RESET _u(0x0)
#define PIO_SM1_SHIFTCTRL_AUTOPULL_BITS _u(0x00020000)
#define PIO_SM1_SHIFTCTRL_AUTOPULL_MSB _u(17)
#define PIO_SM1_SHIFTCTRL_AUTOPULL_LSB _u(17)
#define PIO_SM1_SHIFTCTRL_AUTOPULL_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM1_SHIFTCTRL_AUTOPUSH
// Description : Push automatically when the input shift register is filled,
// i.e. on an IN instruction which causes the input shift counter
// to reach or exceed PUSH_THRESH.
#define PIO_SM1_SHIFTCTRL_AUTOPUSH_RESET _u(0x0)
#define PIO_SM1_SHIFTCTRL_AUTOPUSH_BITS _u(0x00010000)
#define PIO_SM1_SHIFTCTRL_AUTOPUSH_MSB _u(16)
#define PIO_SM1_SHIFTCTRL_AUTOPUSH_LSB _u(16)
#define PIO_SM1_SHIFTCTRL_AUTOPUSH_ACCESS "RW"
// =============================================================================
// Register : PIO_SM1_ADDR
// Description : Current instruction address of state machine 1
#define PIO_SM1_ADDR_OFFSET _u(0x000000ec)
#define PIO_SM1_ADDR_BITS _u(0x0000001f)
#define PIO_SM1_ADDR_RESET _u(0x00000000)
#define PIO_SM1_ADDR_MSB _u(4)
#define PIO_SM1_ADDR_LSB _u(0)
#define PIO_SM1_ADDR_ACCESS "RO"
// =============================================================================
// Register : PIO_SM1_INSTR
// Description : Read to see the instruction currently addressed by state
// machine 1's program counter
// Write to execute an instruction immediately (including jumps)
// and then resume execution.
#define PIO_SM1_INSTR_OFFSET _u(0x000000f0)
#define PIO_SM1_INSTR_BITS _u(0x0000ffff)
#define PIO_SM1_INSTR_RESET "-"
#define PIO_SM1_INSTR_MSB _u(15)
#define PIO_SM1_INSTR_LSB _u(0)
#define PIO_SM1_INSTR_ACCESS "RW"
// =============================================================================
// Register : PIO_SM1_PINCTRL
// Description : State machine pin control
#define PIO_SM1_PINCTRL_OFFSET _u(0x000000f4)
#define PIO_SM1_PINCTRL_BITS _u(0xffffffff)
#define PIO_SM1_PINCTRL_RESET _u(0x14000000)
// -----------------------------------------------------------------------------
// Field : PIO_SM1_PINCTRL_SIDESET_COUNT
// Description : The number of MSBs of the Delay/Side-set instruction field
// which are used for side-set. Inclusive of the enable bit, if
// present. Minimum of 0 (all delay bits, no side-set) and maximum
// of 5 (all side-set, no delay).
#define PIO_SM1_PINCTRL_SIDESET_COUNT_RESET _u(0x0)
#define PIO_SM1_PINCTRL_SIDESET_COUNT_BITS _u(0xe0000000)
#define PIO_SM1_PINCTRL_SIDESET_COUNT_MSB _u(31)
#define PIO_SM1_PINCTRL_SIDESET_COUNT_LSB _u(29)
#define PIO_SM1_PINCTRL_SIDESET_COUNT_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM1_PINCTRL_SET_COUNT
// Description : The number of pins asserted by a SET. In the range 0 to 5
// inclusive.
#define PIO_SM1_PINCTRL_SET_COUNT_RESET _u(0x5)
#define PIO_SM1_PINCTRL_SET_COUNT_BITS _u(0x1c000000)
#define PIO_SM1_PINCTRL_SET_COUNT_MSB _u(28)
#define PIO_SM1_PINCTRL_SET_COUNT_LSB _u(26)
#define PIO_SM1_PINCTRL_SET_COUNT_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM1_PINCTRL_OUT_COUNT
// Description : The number of pins asserted by an OUT PINS, OUT PINDIRS or MOV
// PINS instruction. In the range 0 to 32 inclusive.
#define PIO_SM1_PINCTRL_OUT_COUNT_RESET _u(0x00)
#define PIO_SM1_PINCTRL_OUT_COUNT_BITS _u(0x03f00000)
#define PIO_SM1_PINCTRL_OUT_COUNT_MSB _u(25)
#define PIO_SM1_PINCTRL_OUT_COUNT_LSB _u(20)
#define PIO_SM1_PINCTRL_OUT_COUNT_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM1_PINCTRL_IN_BASE
// Description : The pin which is mapped to the least-significant bit of a state
// machine's IN data bus. Higher-numbered pins are mapped to
// consecutively more-significant data bits, with a modulo of 32
// applied to pin number.
#define PIO_SM1_PINCTRL_IN_BASE_RESET _u(0x00)
#define PIO_SM1_PINCTRL_IN_BASE_BITS _u(0x000f8000)
#define PIO_SM1_PINCTRL_IN_BASE_MSB _u(19)
#define PIO_SM1_PINCTRL_IN_BASE_LSB _u(15)
#define PIO_SM1_PINCTRL_IN_BASE_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM1_PINCTRL_SIDESET_BASE
// Description : The lowest-numbered pin that will be affected by a side-set
// operation. The MSBs of an instruction's side-set/delay field
// (up to 5, determined by SIDESET_COUNT) are used for side-set
// data, with the remaining LSBs used for delay. The least-
// significant bit of the side-set portion is the bit written to
// this pin, with more-significant bits written to higher-numbered
// pins.
#define PIO_SM1_PINCTRL_SIDESET_BASE_RESET _u(0x00)
#define PIO_SM1_PINCTRL_SIDESET_BASE_BITS _u(0x00007c00)
#define PIO_SM1_PINCTRL_SIDESET_BASE_MSB _u(14)
#define PIO_SM1_PINCTRL_SIDESET_BASE_LSB _u(10)
#define PIO_SM1_PINCTRL_SIDESET_BASE_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM1_PINCTRL_SET_BASE
// Description : The lowest-numbered pin that will be affected by a SET PINS or
// SET PINDIRS instruction. The data written to this pin is the
// least-significant bit of the SET data.
#define PIO_SM1_PINCTRL_SET_BASE_RESET _u(0x00)
#define PIO_SM1_PINCTRL_SET_BASE_BITS _u(0x000003e0)
#define PIO_SM1_PINCTRL_SET_BASE_MSB _u(9)
#define PIO_SM1_PINCTRL_SET_BASE_LSB _u(5)
#define PIO_SM1_PINCTRL_SET_BASE_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM1_PINCTRL_OUT_BASE
// Description : The lowest-numbered pin that will be affected by an OUT PINS,
// OUT PINDIRS or MOV PINS instruction. The data written to this
// pin will always be the least-significant bit of the OUT or MOV
// data.
#define PIO_SM1_PINCTRL_OUT_BASE_RESET _u(0x00)
#define PIO_SM1_PINCTRL_OUT_BASE_BITS _u(0x0000001f)
#define PIO_SM1_PINCTRL_OUT_BASE_MSB _u(4)
#define PIO_SM1_PINCTRL_OUT_BASE_LSB _u(0)
#define PIO_SM1_PINCTRL_OUT_BASE_ACCESS "RW"
// =============================================================================
// Register : PIO_SM2_CLKDIV
// Description : Clock divisor register for state machine 2
// Frequency = clock freq / (CLKDIV_INT + CLKDIV_FRAC / 256)
#define PIO_SM2_CLKDIV_OFFSET _u(0x000000f8)
#define PIO_SM2_CLKDIV_BITS _u(0xffffff00)
#define PIO_SM2_CLKDIV_RESET _u(0x00010000)
// -----------------------------------------------------------------------------
// Field : PIO_SM2_CLKDIV_INT
// Description : Effective frequency is sysclk/(int + frac/256).
// Value of 0 is interpreted as 65536. If INT is 0, FRAC must also
// be 0.
#define PIO_SM2_CLKDIV_INT_RESET _u(0x0001)
#define PIO_SM2_CLKDIV_INT_BITS _u(0xffff0000)
#define PIO_SM2_CLKDIV_INT_MSB _u(31)
#define PIO_SM2_CLKDIV_INT_LSB _u(16)
#define PIO_SM2_CLKDIV_INT_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM2_CLKDIV_FRAC
// Description : Fractional part of clock divisor
#define PIO_SM2_CLKDIV_FRAC_RESET _u(0x00)
#define PIO_SM2_CLKDIV_FRAC_BITS _u(0x0000ff00)
#define PIO_SM2_CLKDIV_FRAC_MSB _u(15)
#define PIO_SM2_CLKDIV_FRAC_LSB _u(8)
#define PIO_SM2_CLKDIV_FRAC_ACCESS "RW"
// =============================================================================
// Register : PIO_SM2_EXECCTRL
// Description : Execution/behavioural settings for state machine 2
#define PIO_SM2_EXECCTRL_OFFSET _u(0x000000fc)
#define PIO_SM2_EXECCTRL_BITS _u(0xffffff9f)
#define PIO_SM2_EXECCTRL_RESET _u(0x0001f000)
// -----------------------------------------------------------------------------
// Field : PIO_SM2_EXECCTRL_EXEC_STALLED
// Description : If 1, an instruction written to SMx_INSTR is stalled, and
// latched by the state machine. Will clear to 0 once this
// instruction completes.
#define PIO_SM2_EXECCTRL_EXEC_STALLED_RESET _u(0x0)
#define PIO_SM2_EXECCTRL_EXEC_STALLED_BITS _u(0x80000000)
#define PIO_SM2_EXECCTRL_EXEC_STALLED_MSB _u(31)
#define PIO_SM2_EXECCTRL_EXEC_STALLED_LSB _u(31)
#define PIO_SM2_EXECCTRL_EXEC_STALLED_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_SM2_EXECCTRL_SIDE_EN
// Description : If 1, the MSB of the Delay/Side-set instruction field is used
// as side-set enable, rather than a side-set data bit. This
// allows instructions to perform side-set optionally, rather than
// on every instruction, but the maximum possible side-set width
// is reduced from 5 to 4. Note that the value of
// PINCTRL_SIDESET_COUNT is inclusive of this enable bit.
#define PIO_SM2_EXECCTRL_SIDE_EN_RESET _u(0x0)
#define PIO_SM2_EXECCTRL_SIDE_EN_BITS _u(0x40000000)
#define PIO_SM2_EXECCTRL_SIDE_EN_MSB _u(30)
#define PIO_SM2_EXECCTRL_SIDE_EN_LSB _u(30)
#define PIO_SM2_EXECCTRL_SIDE_EN_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM2_EXECCTRL_SIDE_PINDIR
// Description : If 1, side-set data is asserted to pin directions, instead of
// pin values
#define PIO_SM2_EXECCTRL_SIDE_PINDIR_RESET _u(0x0)
#define PIO_SM2_EXECCTRL_SIDE_PINDIR_BITS _u(0x20000000)
#define PIO_SM2_EXECCTRL_SIDE_PINDIR_MSB _u(29)
#define PIO_SM2_EXECCTRL_SIDE_PINDIR_LSB _u(29)
#define PIO_SM2_EXECCTRL_SIDE_PINDIR_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM2_EXECCTRL_JMP_PIN
// Description : The GPIO number to use as condition for JMP PIN. Unaffected by
// input mapping.
#define PIO_SM2_EXECCTRL_JMP_PIN_RESET _u(0x00)
#define PIO_SM2_EXECCTRL_JMP_PIN_BITS _u(0x1f000000)
#define PIO_SM2_EXECCTRL_JMP_PIN_MSB _u(28)
#define PIO_SM2_EXECCTRL_JMP_PIN_LSB _u(24)
#define PIO_SM2_EXECCTRL_JMP_PIN_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM2_EXECCTRL_OUT_EN_SEL
// Description : Which data bit to use for inline OUT enable
#define PIO_SM2_EXECCTRL_OUT_EN_SEL_RESET _u(0x00)
#define PIO_SM2_EXECCTRL_OUT_EN_SEL_BITS _u(0x00f80000)
#define PIO_SM2_EXECCTRL_OUT_EN_SEL_MSB _u(23)
#define PIO_SM2_EXECCTRL_OUT_EN_SEL_LSB _u(19)
#define PIO_SM2_EXECCTRL_OUT_EN_SEL_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM2_EXECCTRL_INLINE_OUT_EN
// Description : If 1, use a bit of OUT data as an auxiliary write enable
// When used in conjunction with OUT_STICKY, writes with an enable
// of 0 will
// deassert the latest pin write. This can create useful
// masking/override behaviour
// due to the priority ordering of state machine pin writes (SM0 <
// SM1 < ...)
#define PIO_SM2_EXECCTRL_INLINE_OUT_EN_RESET _u(0x0)
#define PIO_SM2_EXECCTRL_INLINE_OUT_EN_BITS _u(0x00040000)
#define PIO_SM2_EXECCTRL_INLINE_OUT_EN_MSB _u(18)
#define PIO_SM2_EXECCTRL_INLINE_OUT_EN_LSB _u(18)
#define PIO_SM2_EXECCTRL_INLINE_OUT_EN_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM2_EXECCTRL_OUT_STICKY
// Description : Continuously assert the most recent OUT/SET to the pins
#define PIO_SM2_EXECCTRL_OUT_STICKY_RESET _u(0x0)
#define PIO_SM2_EXECCTRL_OUT_STICKY_BITS _u(0x00020000)
#define PIO_SM2_EXECCTRL_OUT_STICKY_MSB _u(17)
#define PIO_SM2_EXECCTRL_OUT_STICKY_LSB _u(17)
#define PIO_SM2_EXECCTRL_OUT_STICKY_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM2_EXECCTRL_WRAP_TOP
// Description : After reaching this address, execution is wrapped to
// wrap_bottom.
// If the instruction is a jump, and the jump condition is true,
// the jump takes priority.
#define PIO_SM2_EXECCTRL_WRAP_TOP_RESET _u(0x1f)
#define PIO_SM2_EXECCTRL_WRAP_TOP_BITS _u(0x0001f000)
#define PIO_SM2_EXECCTRL_WRAP_TOP_MSB _u(16)
#define PIO_SM2_EXECCTRL_WRAP_TOP_LSB _u(12)
#define PIO_SM2_EXECCTRL_WRAP_TOP_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM2_EXECCTRL_WRAP_BOTTOM
// Description : After reaching wrap_top, execution is wrapped to this address.
#define PIO_SM2_EXECCTRL_WRAP_BOTTOM_RESET _u(0x00)
#define PIO_SM2_EXECCTRL_WRAP_BOTTOM_BITS _u(0x00000f80)
#define PIO_SM2_EXECCTRL_WRAP_BOTTOM_MSB _u(11)
#define PIO_SM2_EXECCTRL_WRAP_BOTTOM_LSB _u(7)
#define PIO_SM2_EXECCTRL_WRAP_BOTTOM_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM2_EXECCTRL_STATUS_SEL
// Description : Comparison used for the MOV x, STATUS instruction.
// 0x0 -> All-ones if TX FIFO level < N, otherwise all-zeroes
// 0x1 -> All-ones if RX FIFO level < N, otherwise all-zeroes
#define PIO_SM2_EXECCTRL_STATUS_SEL_RESET _u(0x0)
#define PIO_SM2_EXECCTRL_STATUS_SEL_BITS _u(0x00000010)
#define PIO_SM2_EXECCTRL_STATUS_SEL_MSB _u(4)
#define PIO_SM2_EXECCTRL_STATUS_SEL_LSB _u(4)
#define PIO_SM2_EXECCTRL_STATUS_SEL_ACCESS "RW"
#define PIO_SM2_EXECCTRL_STATUS_SEL_VALUE_TXLEVEL _u(0x0)
#define PIO_SM2_EXECCTRL_STATUS_SEL_VALUE_RXLEVEL _u(0x1)
// -----------------------------------------------------------------------------
// Field : PIO_SM2_EXECCTRL_STATUS_N
// Description : Comparison level for the MOV x, STATUS instruction
#define PIO_SM2_EXECCTRL_STATUS_N_RESET _u(0x0)
#define PIO_SM2_EXECCTRL_STATUS_N_BITS _u(0x0000000f)
#define PIO_SM2_EXECCTRL_STATUS_N_MSB _u(3)
#define PIO_SM2_EXECCTRL_STATUS_N_LSB _u(0)
#define PIO_SM2_EXECCTRL_STATUS_N_ACCESS "RW"
// =============================================================================
// Register : PIO_SM2_SHIFTCTRL
// Description : Control behaviour of the input/output shift registers for state
// machine 2
#define PIO_SM2_SHIFTCTRL_OFFSET _u(0x00000100)
#define PIO_SM2_SHIFTCTRL_BITS _u(0xffff0000)
#define PIO_SM2_SHIFTCTRL_RESET _u(0x000c0000)
// -----------------------------------------------------------------------------
// Field : PIO_SM2_SHIFTCTRL_FJOIN_RX
// Description : When 1, RX FIFO steals the TX FIFO's storage, and becomes twice
// as deep.
// TX FIFO is disabled as a result (always reads as both full and
// empty).
// FIFOs are flushed when this bit is changed.
#define PIO_SM2_SHIFTCTRL_FJOIN_RX_RESET _u(0x0)
#define PIO_SM2_SHIFTCTRL_FJOIN_RX_BITS _u(0x80000000)
#define PIO_SM2_SHIFTCTRL_FJOIN_RX_MSB _u(31)
#define PIO_SM2_SHIFTCTRL_FJOIN_RX_LSB _u(31)
#define PIO_SM2_SHIFTCTRL_FJOIN_RX_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM2_SHIFTCTRL_FJOIN_TX
// Description : When 1, TX FIFO steals the RX FIFO's storage, and becomes twice
// as deep.
// RX FIFO is disabled as a result (always reads as both full and
// empty).
// FIFOs are flushed when this bit is changed.
#define PIO_SM2_SHIFTCTRL_FJOIN_TX_RESET _u(0x0)
#define PIO_SM2_SHIFTCTRL_FJOIN_TX_BITS _u(0x40000000)
#define PIO_SM2_SHIFTCTRL_FJOIN_TX_MSB _u(30)
#define PIO_SM2_SHIFTCTRL_FJOIN_TX_LSB _u(30)
#define PIO_SM2_SHIFTCTRL_FJOIN_TX_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM2_SHIFTCTRL_PULL_THRESH
// Description : Number of bits shifted out of OSR before autopull, or
// conditional pull (PULL IFEMPTY), will take place.
// Write 0 for value of 32.
#define PIO_SM2_SHIFTCTRL_PULL_THRESH_RESET _u(0x00)
#define PIO_SM2_SHIFTCTRL_PULL_THRESH_BITS _u(0x3e000000)
#define PIO_SM2_SHIFTCTRL_PULL_THRESH_MSB _u(29)
#define PIO_SM2_SHIFTCTRL_PULL_THRESH_LSB _u(25)
#define PIO_SM2_SHIFTCTRL_PULL_THRESH_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM2_SHIFTCTRL_PUSH_THRESH
// Description : Number of bits shifted into ISR before autopush, or conditional
// push (PUSH IFFULL), will take place.
// Write 0 for value of 32.
#define PIO_SM2_SHIFTCTRL_PUSH_THRESH_RESET _u(0x00)
#define PIO_SM2_SHIFTCTRL_PUSH_THRESH_BITS _u(0x01f00000)
#define PIO_SM2_SHIFTCTRL_PUSH_THRESH_MSB _u(24)
#define PIO_SM2_SHIFTCTRL_PUSH_THRESH_LSB _u(20)
#define PIO_SM2_SHIFTCTRL_PUSH_THRESH_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM2_SHIFTCTRL_OUT_SHIFTDIR
// Description : 1 = shift out of output shift register to right. 0 = to left.
#define PIO_SM2_SHIFTCTRL_OUT_SHIFTDIR_RESET _u(0x1)
#define PIO_SM2_SHIFTCTRL_OUT_SHIFTDIR_BITS _u(0x00080000)
#define PIO_SM2_SHIFTCTRL_OUT_SHIFTDIR_MSB _u(19)
#define PIO_SM2_SHIFTCTRL_OUT_SHIFTDIR_LSB _u(19)
#define PIO_SM2_SHIFTCTRL_OUT_SHIFTDIR_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM2_SHIFTCTRL_IN_SHIFTDIR
// Description : 1 = shift input shift register to right (data enters from
// left). 0 = to left.
#define PIO_SM2_SHIFTCTRL_IN_SHIFTDIR_RESET _u(0x1)
#define PIO_SM2_SHIFTCTRL_IN_SHIFTDIR_BITS _u(0x00040000)
#define PIO_SM2_SHIFTCTRL_IN_SHIFTDIR_MSB _u(18)
#define PIO_SM2_SHIFTCTRL_IN_SHIFTDIR_LSB _u(18)
#define PIO_SM2_SHIFTCTRL_IN_SHIFTDIR_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM2_SHIFTCTRL_AUTOPULL
// Description : Pull automatically when the output shift register is emptied,
// i.e. on or following an OUT instruction which causes the output
// shift counter to reach or exceed PULL_THRESH.
#define PIO_SM2_SHIFTCTRL_AUTOPULL_RESET _u(0x0)
#define PIO_SM2_SHIFTCTRL_AUTOPULL_BITS _u(0x00020000)
#define PIO_SM2_SHIFTCTRL_AUTOPULL_MSB _u(17)
#define PIO_SM2_SHIFTCTRL_AUTOPULL_LSB _u(17)
#define PIO_SM2_SHIFTCTRL_AUTOPULL_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM2_SHIFTCTRL_AUTOPUSH
// Description : Push automatically when the input shift register is filled,
// i.e. on an IN instruction which causes the input shift counter
// to reach or exceed PUSH_THRESH.
#define PIO_SM2_SHIFTCTRL_AUTOPUSH_RESET _u(0x0)
#define PIO_SM2_SHIFTCTRL_AUTOPUSH_BITS _u(0x00010000)
#define PIO_SM2_SHIFTCTRL_AUTOPUSH_MSB _u(16)
#define PIO_SM2_SHIFTCTRL_AUTOPUSH_LSB _u(16)
#define PIO_SM2_SHIFTCTRL_AUTOPUSH_ACCESS "RW"
// =============================================================================
// Register : PIO_SM2_ADDR
// Description : Current instruction address of state machine 2
#define PIO_SM2_ADDR_OFFSET _u(0x00000104)
#define PIO_SM2_ADDR_BITS _u(0x0000001f)
#define PIO_SM2_ADDR_RESET _u(0x00000000)
#define PIO_SM2_ADDR_MSB _u(4)
#define PIO_SM2_ADDR_LSB _u(0)
#define PIO_SM2_ADDR_ACCESS "RO"
// =============================================================================
// Register : PIO_SM2_INSTR
// Description : Read to see the instruction currently addressed by state
// machine 2's program counter
// Write to execute an instruction immediately (including jumps)
// and then resume execution.
#define PIO_SM2_INSTR_OFFSET _u(0x00000108)
#define PIO_SM2_INSTR_BITS _u(0x0000ffff)
#define PIO_SM2_INSTR_RESET "-"
#define PIO_SM2_INSTR_MSB _u(15)
#define PIO_SM2_INSTR_LSB _u(0)
#define PIO_SM2_INSTR_ACCESS "RW"
// =============================================================================
// Register : PIO_SM2_PINCTRL
// Description : State machine pin control
#define PIO_SM2_PINCTRL_OFFSET _u(0x0000010c)
#define PIO_SM2_PINCTRL_BITS _u(0xffffffff)
#define PIO_SM2_PINCTRL_RESET _u(0x14000000)
// -----------------------------------------------------------------------------
// Field : PIO_SM2_PINCTRL_SIDESET_COUNT
// Description : The number of MSBs of the Delay/Side-set instruction field
// which are used for side-set. Inclusive of the enable bit, if
// present. Minimum of 0 (all delay bits, no side-set) and maximum
// of 5 (all side-set, no delay).
#define PIO_SM2_PINCTRL_SIDESET_COUNT_RESET _u(0x0)
#define PIO_SM2_PINCTRL_SIDESET_COUNT_BITS _u(0xe0000000)
#define PIO_SM2_PINCTRL_SIDESET_COUNT_MSB _u(31)
#define PIO_SM2_PINCTRL_SIDESET_COUNT_LSB _u(29)
#define PIO_SM2_PINCTRL_SIDESET_COUNT_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM2_PINCTRL_SET_COUNT
// Description : The number of pins asserted by a SET. In the range 0 to 5
// inclusive.
#define PIO_SM2_PINCTRL_SET_COUNT_RESET _u(0x5)
#define PIO_SM2_PINCTRL_SET_COUNT_BITS _u(0x1c000000)
#define PIO_SM2_PINCTRL_SET_COUNT_MSB _u(28)
#define PIO_SM2_PINCTRL_SET_COUNT_LSB _u(26)
#define PIO_SM2_PINCTRL_SET_COUNT_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM2_PINCTRL_OUT_COUNT
// Description : The number of pins asserted by an OUT PINS, OUT PINDIRS or MOV
// PINS instruction. In the range 0 to 32 inclusive.
#define PIO_SM2_PINCTRL_OUT_COUNT_RESET _u(0x00)
#define PIO_SM2_PINCTRL_OUT_COUNT_BITS _u(0x03f00000)
#define PIO_SM2_PINCTRL_OUT_COUNT_MSB _u(25)
#define PIO_SM2_PINCTRL_OUT_COUNT_LSB _u(20)
#define PIO_SM2_PINCTRL_OUT_COUNT_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM2_PINCTRL_IN_BASE
// Description : The pin which is mapped to the least-significant bit of a state
// machine's IN data bus. Higher-numbered pins are mapped to
// consecutively more-significant data bits, with a modulo of 32
// applied to pin number.
#define PIO_SM2_PINCTRL_IN_BASE_RESET _u(0x00)
#define PIO_SM2_PINCTRL_IN_BASE_BITS _u(0x000f8000)
#define PIO_SM2_PINCTRL_IN_BASE_MSB _u(19)
#define PIO_SM2_PINCTRL_IN_BASE_LSB _u(15)
#define PIO_SM2_PINCTRL_IN_BASE_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM2_PINCTRL_SIDESET_BASE
// Description : The lowest-numbered pin that will be affected by a side-set
// operation. The MSBs of an instruction's side-set/delay field
// (up to 5, determined by SIDESET_COUNT) are used for side-set
// data, with the remaining LSBs used for delay. The least-
// significant bit of the side-set portion is the bit written to
// this pin, with more-significant bits written to higher-numbered
// pins.
#define PIO_SM2_PINCTRL_SIDESET_BASE_RESET _u(0x00)
#define PIO_SM2_PINCTRL_SIDESET_BASE_BITS _u(0x00007c00)
#define PIO_SM2_PINCTRL_SIDESET_BASE_MSB _u(14)
#define PIO_SM2_PINCTRL_SIDESET_BASE_LSB _u(10)
#define PIO_SM2_PINCTRL_SIDESET_BASE_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM2_PINCTRL_SET_BASE
// Description : The lowest-numbered pin that will be affected by a SET PINS or
// SET PINDIRS instruction. The data written to this pin is the
// least-significant bit of the SET data.
#define PIO_SM2_PINCTRL_SET_BASE_RESET _u(0x00)
#define PIO_SM2_PINCTRL_SET_BASE_BITS _u(0x000003e0)
#define PIO_SM2_PINCTRL_SET_BASE_MSB _u(9)
#define PIO_SM2_PINCTRL_SET_BASE_LSB _u(5)
#define PIO_SM2_PINCTRL_SET_BASE_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM2_PINCTRL_OUT_BASE
// Description : The lowest-numbered pin that will be affected by an OUT PINS,
// OUT PINDIRS or MOV PINS instruction. The data written to this
// pin will always be the least-significant bit of the OUT or MOV
// data.
#define PIO_SM2_PINCTRL_OUT_BASE_RESET _u(0x00)
#define PIO_SM2_PINCTRL_OUT_BASE_BITS _u(0x0000001f)
#define PIO_SM2_PINCTRL_OUT_BASE_MSB _u(4)
#define PIO_SM2_PINCTRL_OUT_BASE_LSB _u(0)
#define PIO_SM2_PINCTRL_OUT_BASE_ACCESS "RW"
// =============================================================================
// Register : PIO_SM3_CLKDIV
// Description : Clock divisor register for state machine 3
// Frequency = clock freq / (CLKDIV_INT + CLKDIV_FRAC / 256)
#define PIO_SM3_CLKDIV_OFFSET _u(0x00000110)
#define PIO_SM3_CLKDIV_BITS _u(0xffffff00)
#define PIO_SM3_CLKDIV_RESET _u(0x00010000)
// -----------------------------------------------------------------------------
// Field : PIO_SM3_CLKDIV_INT
// Description : Effective frequency is sysclk/(int + frac/256).
// Value of 0 is interpreted as 65536. If INT is 0, FRAC must also
// be 0.
#define PIO_SM3_CLKDIV_INT_RESET _u(0x0001)
#define PIO_SM3_CLKDIV_INT_BITS _u(0xffff0000)
#define PIO_SM3_CLKDIV_INT_MSB _u(31)
#define PIO_SM3_CLKDIV_INT_LSB _u(16)
#define PIO_SM3_CLKDIV_INT_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM3_CLKDIV_FRAC
// Description : Fractional part of clock divisor
#define PIO_SM3_CLKDIV_FRAC_RESET _u(0x00)
#define PIO_SM3_CLKDIV_FRAC_BITS _u(0x0000ff00)
#define PIO_SM3_CLKDIV_FRAC_MSB _u(15)
#define PIO_SM3_CLKDIV_FRAC_LSB _u(8)
#define PIO_SM3_CLKDIV_FRAC_ACCESS "RW"
// =============================================================================
// Register : PIO_SM3_EXECCTRL
// Description : Execution/behavioural settings for state machine 3
#define PIO_SM3_EXECCTRL_OFFSET _u(0x00000114)
#define PIO_SM3_EXECCTRL_BITS _u(0xffffff9f)
#define PIO_SM3_EXECCTRL_RESET _u(0x0001f000)
// -----------------------------------------------------------------------------
// Field : PIO_SM3_EXECCTRL_EXEC_STALLED
// Description : If 1, an instruction written to SMx_INSTR is stalled, and
// latched by the state machine. Will clear to 0 once this
// instruction completes.
#define PIO_SM3_EXECCTRL_EXEC_STALLED_RESET _u(0x0)
#define PIO_SM3_EXECCTRL_EXEC_STALLED_BITS _u(0x80000000)
#define PIO_SM3_EXECCTRL_EXEC_STALLED_MSB _u(31)
#define PIO_SM3_EXECCTRL_EXEC_STALLED_LSB _u(31)
#define PIO_SM3_EXECCTRL_EXEC_STALLED_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_SM3_EXECCTRL_SIDE_EN
// Description : If 1, the MSB of the Delay/Side-set instruction field is used
// as side-set enable, rather than a side-set data bit. This
// allows instructions to perform side-set optionally, rather than
// on every instruction, but the maximum possible side-set width
// is reduced from 5 to 4. Note that the value of
// PINCTRL_SIDESET_COUNT is inclusive of this enable bit.
#define PIO_SM3_EXECCTRL_SIDE_EN_RESET _u(0x0)
#define PIO_SM3_EXECCTRL_SIDE_EN_BITS _u(0x40000000)
#define PIO_SM3_EXECCTRL_SIDE_EN_MSB _u(30)
#define PIO_SM3_EXECCTRL_SIDE_EN_LSB _u(30)
#define PIO_SM3_EXECCTRL_SIDE_EN_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM3_EXECCTRL_SIDE_PINDIR
// Description : If 1, side-set data is asserted to pin directions, instead of
// pin values
#define PIO_SM3_EXECCTRL_SIDE_PINDIR_RESET _u(0x0)
#define PIO_SM3_EXECCTRL_SIDE_PINDIR_BITS _u(0x20000000)
#define PIO_SM3_EXECCTRL_SIDE_PINDIR_MSB _u(29)
#define PIO_SM3_EXECCTRL_SIDE_PINDIR_LSB _u(29)
#define PIO_SM3_EXECCTRL_SIDE_PINDIR_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM3_EXECCTRL_JMP_PIN
// Description : The GPIO number to use as condition for JMP PIN. Unaffected by
// input mapping.
#define PIO_SM3_EXECCTRL_JMP_PIN_RESET _u(0x00)
#define PIO_SM3_EXECCTRL_JMP_PIN_BITS _u(0x1f000000)
#define PIO_SM3_EXECCTRL_JMP_PIN_MSB _u(28)
#define PIO_SM3_EXECCTRL_JMP_PIN_LSB _u(24)
#define PIO_SM3_EXECCTRL_JMP_PIN_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM3_EXECCTRL_OUT_EN_SEL
// Description : Which data bit to use for inline OUT enable
#define PIO_SM3_EXECCTRL_OUT_EN_SEL_RESET _u(0x00)
#define PIO_SM3_EXECCTRL_OUT_EN_SEL_BITS _u(0x00f80000)
#define PIO_SM3_EXECCTRL_OUT_EN_SEL_MSB _u(23)
#define PIO_SM3_EXECCTRL_OUT_EN_SEL_LSB _u(19)
#define PIO_SM3_EXECCTRL_OUT_EN_SEL_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM3_EXECCTRL_INLINE_OUT_EN
// Description : If 1, use a bit of OUT data as an auxiliary write enable
// When used in conjunction with OUT_STICKY, writes with an enable
// of 0 will
// deassert the latest pin write. This can create useful
// masking/override behaviour
// due to the priority ordering of state machine pin writes (SM0 <
// SM1 < ...)
#define PIO_SM3_EXECCTRL_INLINE_OUT_EN_RESET _u(0x0)
#define PIO_SM3_EXECCTRL_INLINE_OUT_EN_BITS _u(0x00040000)
#define PIO_SM3_EXECCTRL_INLINE_OUT_EN_MSB _u(18)
#define PIO_SM3_EXECCTRL_INLINE_OUT_EN_LSB _u(18)
#define PIO_SM3_EXECCTRL_INLINE_OUT_EN_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM3_EXECCTRL_OUT_STICKY
// Description : Continuously assert the most recent OUT/SET to the pins
#define PIO_SM3_EXECCTRL_OUT_STICKY_RESET _u(0x0)
#define PIO_SM3_EXECCTRL_OUT_STICKY_BITS _u(0x00020000)
#define PIO_SM3_EXECCTRL_OUT_STICKY_MSB _u(17)
#define PIO_SM3_EXECCTRL_OUT_STICKY_LSB _u(17)
#define PIO_SM3_EXECCTRL_OUT_STICKY_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM3_EXECCTRL_WRAP_TOP
// Description : After reaching this address, execution is wrapped to
// wrap_bottom.
// If the instruction is a jump, and the jump condition is true,
// the jump takes priority.
#define PIO_SM3_EXECCTRL_WRAP_TOP_RESET _u(0x1f)
#define PIO_SM3_EXECCTRL_WRAP_TOP_BITS _u(0x0001f000)
#define PIO_SM3_EXECCTRL_WRAP_TOP_MSB _u(16)
#define PIO_SM3_EXECCTRL_WRAP_TOP_LSB _u(12)
#define PIO_SM3_EXECCTRL_WRAP_TOP_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM3_EXECCTRL_WRAP_BOTTOM
// Description : After reaching wrap_top, execution is wrapped to this address.
#define PIO_SM3_EXECCTRL_WRAP_BOTTOM_RESET _u(0x00)
#define PIO_SM3_EXECCTRL_WRAP_BOTTOM_BITS _u(0x00000f80)
#define PIO_SM3_EXECCTRL_WRAP_BOTTOM_MSB _u(11)
#define PIO_SM3_EXECCTRL_WRAP_BOTTOM_LSB _u(7)
#define PIO_SM3_EXECCTRL_WRAP_BOTTOM_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM3_EXECCTRL_STATUS_SEL
// Description : Comparison used for the MOV x, STATUS instruction.
// 0x0 -> All-ones if TX FIFO level < N, otherwise all-zeroes
// 0x1 -> All-ones if RX FIFO level < N, otherwise all-zeroes
#define PIO_SM3_EXECCTRL_STATUS_SEL_RESET _u(0x0)
#define PIO_SM3_EXECCTRL_STATUS_SEL_BITS _u(0x00000010)
#define PIO_SM3_EXECCTRL_STATUS_SEL_MSB _u(4)
#define PIO_SM3_EXECCTRL_STATUS_SEL_LSB _u(4)
#define PIO_SM3_EXECCTRL_STATUS_SEL_ACCESS "RW"
#define PIO_SM3_EXECCTRL_STATUS_SEL_VALUE_TXLEVEL _u(0x0)
#define PIO_SM3_EXECCTRL_STATUS_SEL_VALUE_RXLEVEL _u(0x1)
// -----------------------------------------------------------------------------
// Field : PIO_SM3_EXECCTRL_STATUS_N
// Description : Comparison level for the MOV x, STATUS instruction
#define PIO_SM3_EXECCTRL_STATUS_N_RESET _u(0x0)
#define PIO_SM3_EXECCTRL_STATUS_N_BITS _u(0x0000000f)
#define PIO_SM3_EXECCTRL_STATUS_N_MSB _u(3)
#define PIO_SM3_EXECCTRL_STATUS_N_LSB _u(0)
#define PIO_SM3_EXECCTRL_STATUS_N_ACCESS "RW"
// =============================================================================
// Register : PIO_SM3_SHIFTCTRL
// Description : Control behaviour of the input/output shift registers for state
// machine 3
#define PIO_SM3_SHIFTCTRL_OFFSET _u(0x00000118)
#define PIO_SM3_SHIFTCTRL_BITS _u(0xffff0000)
#define PIO_SM3_SHIFTCTRL_RESET _u(0x000c0000)
// -----------------------------------------------------------------------------
// Field : PIO_SM3_SHIFTCTRL_FJOIN_RX
// Description : When 1, RX FIFO steals the TX FIFO's storage, and becomes twice
// as deep.
// TX FIFO is disabled as a result (always reads as both full and
// empty).
// FIFOs are flushed when this bit is changed.
#define PIO_SM3_SHIFTCTRL_FJOIN_RX_RESET _u(0x0)
#define PIO_SM3_SHIFTCTRL_FJOIN_RX_BITS _u(0x80000000)
#define PIO_SM3_SHIFTCTRL_FJOIN_RX_MSB _u(31)
#define PIO_SM3_SHIFTCTRL_FJOIN_RX_LSB _u(31)
#define PIO_SM3_SHIFTCTRL_FJOIN_RX_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM3_SHIFTCTRL_FJOIN_TX
// Description : When 1, TX FIFO steals the RX FIFO's storage, and becomes twice
// as deep.
// RX FIFO is disabled as a result (always reads as both full and
// empty).
// FIFOs are flushed when this bit is changed.
#define PIO_SM3_SHIFTCTRL_FJOIN_TX_RESET _u(0x0)
#define PIO_SM3_SHIFTCTRL_FJOIN_TX_BITS _u(0x40000000)
#define PIO_SM3_SHIFTCTRL_FJOIN_TX_MSB _u(30)
#define PIO_SM3_SHIFTCTRL_FJOIN_TX_LSB _u(30)
#define PIO_SM3_SHIFTCTRL_FJOIN_TX_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM3_SHIFTCTRL_PULL_THRESH
// Description : Number of bits shifted out of OSR before autopull, or
// conditional pull (PULL IFEMPTY), will take place.
// Write 0 for value of 32.
#define PIO_SM3_SHIFTCTRL_PULL_THRESH_RESET _u(0x00)
#define PIO_SM3_SHIFTCTRL_PULL_THRESH_BITS _u(0x3e000000)
#define PIO_SM3_SHIFTCTRL_PULL_THRESH_MSB _u(29)
#define PIO_SM3_SHIFTCTRL_PULL_THRESH_LSB _u(25)
#define PIO_SM3_SHIFTCTRL_PULL_THRESH_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM3_SHIFTCTRL_PUSH_THRESH
// Description : Number of bits shifted into ISR before autopush, or conditional
// push (PUSH IFFULL), will take place.
// Write 0 for value of 32.
#define PIO_SM3_SHIFTCTRL_PUSH_THRESH_RESET _u(0x00)
#define PIO_SM3_SHIFTCTRL_PUSH_THRESH_BITS _u(0x01f00000)
#define PIO_SM3_SHIFTCTRL_PUSH_THRESH_MSB _u(24)
#define PIO_SM3_SHIFTCTRL_PUSH_THRESH_LSB _u(20)
#define PIO_SM3_SHIFTCTRL_PUSH_THRESH_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM3_SHIFTCTRL_OUT_SHIFTDIR
// Description : 1 = shift out of output shift register to right. 0 = to left.
#define PIO_SM3_SHIFTCTRL_OUT_SHIFTDIR_RESET _u(0x1)
#define PIO_SM3_SHIFTCTRL_OUT_SHIFTDIR_BITS _u(0x00080000)
#define PIO_SM3_SHIFTCTRL_OUT_SHIFTDIR_MSB _u(19)
#define PIO_SM3_SHIFTCTRL_OUT_SHIFTDIR_LSB _u(19)
#define PIO_SM3_SHIFTCTRL_OUT_SHIFTDIR_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM3_SHIFTCTRL_IN_SHIFTDIR
// Description : 1 = shift input shift register to right (data enters from
// left). 0 = to left.
#define PIO_SM3_SHIFTCTRL_IN_SHIFTDIR_RESET _u(0x1)
#define PIO_SM3_SHIFTCTRL_IN_SHIFTDIR_BITS _u(0x00040000)
#define PIO_SM3_SHIFTCTRL_IN_SHIFTDIR_MSB _u(18)
#define PIO_SM3_SHIFTCTRL_IN_SHIFTDIR_LSB _u(18)
#define PIO_SM3_SHIFTCTRL_IN_SHIFTDIR_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM3_SHIFTCTRL_AUTOPULL
// Description : Pull automatically when the output shift register is emptied,
// i.e. on or following an OUT instruction which causes the output
// shift counter to reach or exceed PULL_THRESH.
#define PIO_SM3_SHIFTCTRL_AUTOPULL_RESET _u(0x0)
#define PIO_SM3_SHIFTCTRL_AUTOPULL_BITS _u(0x00020000)
#define PIO_SM3_SHIFTCTRL_AUTOPULL_MSB _u(17)
#define PIO_SM3_SHIFTCTRL_AUTOPULL_LSB _u(17)
#define PIO_SM3_SHIFTCTRL_AUTOPULL_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM3_SHIFTCTRL_AUTOPUSH
// Description : Push automatically when the input shift register is filled,
// i.e. on an IN instruction which causes the input shift counter
// to reach or exceed PUSH_THRESH.
#define PIO_SM3_SHIFTCTRL_AUTOPUSH_RESET _u(0x0)
#define PIO_SM3_SHIFTCTRL_AUTOPUSH_BITS _u(0x00010000)
#define PIO_SM3_SHIFTCTRL_AUTOPUSH_MSB _u(16)
#define PIO_SM3_SHIFTCTRL_AUTOPUSH_LSB _u(16)
#define PIO_SM3_SHIFTCTRL_AUTOPUSH_ACCESS "RW"
// =============================================================================
// Register : PIO_SM3_ADDR
// Description : Current instruction address of state machine 3
#define PIO_SM3_ADDR_OFFSET _u(0x0000011c)
#define PIO_SM3_ADDR_BITS _u(0x0000001f)
#define PIO_SM3_ADDR_RESET _u(0x00000000)
#define PIO_SM3_ADDR_MSB _u(4)
#define PIO_SM3_ADDR_LSB _u(0)
#define PIO_SM3_ADDR_ACCESS "RO"
// =============================================================================
// Register : PIO_SM3_INSTR
// Description : Read to see the instruction currently addressed by state
// machine 3's program counter
// Write to execute an instruction immediately (including jumps)
// and then resume execution.
#define PIO_SM3_INSTR_OFFSET _u(0x00000120)
#define PIO_SM3_INSTR_BITS _u(0x0000ffff)
#define PIO_SM3_INSTR_RESET "-"
#define PIO_SM3_INSTR_MSB _u(15)
#define PIO_SM3_INSTR_LSB _u(0)
#define PIO_SM3_INSTR_ACCESS "RW"
// =============================================================================
// Register : PIO_SM3_PINCTRL
// Description : State machine pin control
#define PIO_SM3_PINCTRL_OFFSET _u(0x00000124)
#define PIO_SM3_PINCTRL_BITS _u(0xffffffff)
#define PIO_SM3_PINCTRL_RESET _u(0x14000000)
// -----------------------------------------------------------------------------
// Field : PIO_SM3_PINCTRL_SIDESET_COUNT
// Description : The number of MSBs of the Delay/Side-set instruction field
// which are used for side-set. Inclusive of the enable bit, if
// present. Minimum of 0 (all delay bits, no side-set) and maximum
// of 5 (all side-set, no delay).
#define PIO_SM3_PINCTRL_SIDESET_COUNT_RESET _u(0x0)
#define PIO_SM3_PINCTRL_SIDESET_COUNT_BITS _u(0xe0000000)
#define PIO_SM3_PINCTRL_SIDESET_COUNT_MSB _u(31)
#define PIO_SM3_PINCTRL_SIDESET_COUNT_LSB _u(29)
#define PIO_SM3_PINCTRL_SIDESET_COUNT_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM3_PINCTRL_SET_COUNT
// Description : The number of pins asserted by a SET. In the range 0 to 5
// inclusive.
#define PIO_SM3_PINCTRL_SET_COUNT_RESET _u(0x5)
#define PIO_SM3_PINCTRL_SET_COUNT_BITS _u(0x1c000000)
#define PIO_SM3_PINCTRL_SET_COUNT_MSB _u(28)
#define PIO_SM3_PINCTRL_SET_COUNT_LSB _u(26)
#define PIO_SM3_PINCTRL_SET_COUNT_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM3_PINCTRL_OUT_COUNT
// Description : The number of pins asserted by an OUT PINS, OUT PINDIRS or MOV
// PINS instruction. In the range 0 to 32 inclusive.
#define PIO_SM3_PINCTRL_OUT_COUNT_RESET _u(0x00)
#define PIO_SM3_PINCTRL_OUT_COUNT_BITS _u(0x03f00000)
#define PIO_SM3_PINCTRL_OUT_COUNT_MSB _u(25)
#define PIO_SM3_PINCTRL_OUT_COUNT_LSB _u(20)
#define PIO_SM3_PINCTRL_OUT_COUNT_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM3_PINCTRL_IN_BASE
// Description : The pin which is mapped to the least-significant bit of a state
// machine's IN data bus. Higher-numbered pins are mapped to
// consecutively more-significant data bits, with a modulo of 32
// applied to pin number.
#define PIO_SM3_PINCTRL_IN_BASE_RESET _u(0x00)
#define PIO_SM3_PINCTRL_IN_BASE_BITS _u(0x000f8000)
#define PIO_SM3_PINCTRL_IN_BASE_MSB _u(19)
#define PIO_SM3_PINCTRL_IN_BASE_LSB _u(15)
#define PIO_SM3_PINCTRL_IN_BASE_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM3_PINCTRL_SIDESET_BASE
// Description : The lowest-numbered pin that will be affected by a side-set
// operation. The MSBs of an instruction's side-set/delay field
// (up to 5, determined by SIDESET_COUNT) are used for side-set
// data, with the remaining LSBs used for delay. The least-
// significant bit of the side-set portion is the bit written to
// this pin, with more-significant bits written to higher-numbered
// pins.
#define PIO_SM3_PINCTRL_SIDESET_BASE_RESET _u(0x00)
#define PIO_SM3_PINCTRL_SIDESET_BASE_BITS _u(0x00007c00)
#define PIO_SM3_PINCTRL_SIDESET_BASE_MSB _u(14)
#define PIO_SM3_PINCTRL_SIDESET_BASE_LSB _u(10)
#define PIO_SM3_PINCTRL_SIDESET_BASE_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM3_PINCTRL_SET_BASE
// Description : The lowest-numbered pin that will be affected by a SET PINS or
// SET PINDIRS instruction. The data written to this pin is the
// least-significant bit of the SET data.
#define PIO_SM3_PINCTRL_SET_BASE_RESET _u(0x00)
#define PIO_SM3_PINCTRL_SET_BASE_BITS _u(0x000003e0)
#define PIO_SM3_PINCTRL_SET_BASE_MSB _u(9)
#define PIO_SM3_PINCTRL_SET_BASE_LSB _u(5)
#define PIO_SM3_PINCTRL_SET_BASE_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_SM3_PINCTRL_OUT_BASE
// Description : The lowest-numbered pin that will be affected by an OUT PINS,
// OUT PINDIRS or MOV PINS instruction. The data written to this
// pin will always be the least-significant bit of the OUT or MOV
// data.
#define PIO_SM3_PINCTRL_OUT_BASE_RESET _u(0x00)
#define PIO_SM3_PINCTRL_OUT_BASE_BITS _u(0x0000001f)
#define PIO_SM3_PINCTRL_OUT_BASE_MSB _u(4)
#define PIO_SM3_PINCTRL_OUT_BASE_LSB _u(0)
#define PIO_SM3_PINCTRL_OUT_BASE_ACCESS "RW"
// =============================================================================
// Register : PIO_INTR
// Description : Raw Interrupts
#define PIO_INTR_OFFSET _u(0x00000128)
#define PIO_INTR_BITS _u(0x00000fff)
#define PIO_INTR_RESET _u(0x00000000)
// -----------------------------------------------------------------------------
// Field : PIO_INTR_SM3
#define PIO_INTR_SM3_RESET _u(0x0)
#define PIO_INTR_SM3_BITS _u(0x00000800)
#define PIO_INTR_SM3_MSB _u(11)
#define PIO_INTR_SM3_LSB _u(11)
#define PIO_INTR_SM3_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_INTR_SM2
#define PIO_INTR_SM2_RESET _u(0x0)
#define PIO_INTR_SM2_BITS _u(0x00000400)
#define PIO_INTR_SM2_MSB _u(10)
#define PIO_INTR_SM2_LSB _u(10)
#define PIO_INTR_SM2_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_INTR_SM1
#define PIO_INTR_SM1_RESET _u(0x0)
#define PIO_INTR_SM1_BITS _u(0x00000200)
#define PIO_INTR_SM1_MSB _u(9)
#define PIO_INTR_SM1_LSB _u(9)
#define PIO_INTR_SM1_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_INTR_SM0
#define PIO_INTR_SM0_RESET _u(0x0)
#define PIO_INTR_SM0_BITS _u(0x00000100)
#define PIO_INTR_SM0_MSB _u(8)
#define PIO_INTR_SM0_LSB _u(8)
#define PIO_INTR_SM0_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_INTR_SM3_TXNFULL
#define PIO_INTR_SM3_TXNFULL_RESET _u(0x0)
#define PIO_INTR_SM3_TXNFULL_BITS _u(0x00000080)
#define PIO_INTR_SM3_TXNFULL_MSB _u(7)
#define PIO_INTR_SM3_TXNFULL_LSB _u(7)
#define PIO_INTR_SM3_TXNFULL_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_INTR_SM2_TXNFULL
#define PIO_INTR_SM2_TXNFULL_RESET _u(0x0)
#define PIO_INTR_SM2_TXNFULL_BITS _u(0x00000040)
#define PIO_INTR_SM2_TXNFULL_MSB _u(6)
#define PIO_INTR_SM2_TXNFULL_LSB _u(6)
#define PIO_INTR_SM2_TXNFULL_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_INTR_SM1_TXNFULL
#define PIO_INTR_SM1_TXNFULL_RESET _u(0x0)
#define PIO_INTR_SM1_TXNFULL_BITS _u(0x00000020)
#define PIO_INTR_SM1_TXNFULL_MSB _u(5)
#define PIO_INTR_SM1_TXNFULL_LSB _u(5)
#define PIO_INTR_SM1_TXNFULL_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_INTR_SM0_TXNFULL
#define PIO_INTR_SM0_TXNFULL_RESET _u(0x0)
#define PIO_INTR_SM0_TXNFULL_BITS _u(0x00000010)
#define PIO_INTR_SM0_TXNFULL_MSB _u(4)
#define PIO_INTR_SM0_TXNFULL_LSB _u(4)
#define PIO_INTR_SM0_TXNFULL_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_INTR_SM3_RXNEMPTY
#define PIO_INTR_SM3_RXNEMPTY_RESET _u(0x0)
#define PIO_INTR_SM3_RXNEMPTY_BITS _u(0x00000008)
#define PIO_INTR_SM3_RXNEMPTY_MSB _u(3)
#define PIO_INTR_SM3_RXNEMPTY_LSB _u(3)
#define PIO_INTR_SM3_RXNEMPTY_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_INTR_SM2_RXNEMPTY
#define PIO_INTR_SM2_RXNEMPTY_RESET _u(0x0)
#define PIO_INTR_SM2_RXNEMPTY_BITS _u(0x00000004)
#define PIO_INTR_SM2_RXNEMPTY_MSB _u(2)
#define PIO_INTR_SM2_RXNEMPTY_LSB _u(2)
#define PIO_INTR_SM2_RXNEMPTY_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_INTR_SM1_RXNEMPTY
#define PIO_INTR_SM1_RXNEMPTY_RESET _u(0x0)
#define PIO_INTR_SM1_RXNEMPTY_BITS _u(0x00000002)
#define PIO_INTR_SM1_RXNEMPTY_MSB _u(1)
#define PIO_INTR_SM1_RXNEMPTY_LSB _u(1)
#define PIO_INTR_SM1_RXNEMPTY_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_INTR_SM0_RXNEMPTY
#define PIO_INTR_SM0_RXNEMPTY_RESET _u(0x0)
#define PIO_INTR_SM0_RXNEMPTY_BITS _u(0x00000001)
#define PIO_INTR_SM0_RXNEMPTY_MSB _u(0)
#define PIO_INTR_SM0_RXNEMPTY_LSB _u(0)
#define PIO_INTR_SM0_RXNEMPTY_ACCESS "RO"
// =============================================================================
// Register : PIO_IRQ0_INTE
// Description : Interrupt Enable for irq0
#define PIO_IRQ0_INTE_OFFSET _u(0x0000012c)
#define PIO_IRQ0_INTE_BITS _u(0x00000fff)
#define PIO_IRQ0_INTE_RESET _u(0x00000000)
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTE_SM3
#define PIO_IRQ0_INTE_SM3_RESET _u(0x0)
#define PIO_IRQ0_INTE_SM3_BITS _u(0x00000800)
#define PIO_IRQ0_INTE_SM3_MSB _u(11)
#define PIO_IRQ0_INTE_SM3_LSB _u(11)
#define PIO_IRQ0_INTE_SM3_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTE_SM2
#define PIO_IRQ0_INTE_SM2_RESET _u(0x0)
#define PIO_IRQ0_INTE_SM2_BITS _u(0x00000400)
#define PIO_IRQ0_INTE_SM2_MSB _u(10)
#define PIO_IRQ0_INTE_SM2_LSB _u(10)
#define PIO_IRQ0_INTE_SM2_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTE_SM1
#define PIO_IRQ0_INTE_SM1_RESET _u(0x0)
#define PIO_IRQ0_INTE_SM1_BITS _u(0x00000200)
#define PIO_IRQ0_INTE_SM1_MSB _u(9)
#define PIO_IRQ0_INTE_SM1_LSB _u(9)
#define PIO_IRQ0_INTE_SM1_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTE_SM0
#define PIO_IRQ0_INTE_SM0_RESET _u(0x0)
#define PIO_IRQ0_INTE_SM0_BITS _u(0x00000100)
#define PIO_IRQ0_INTE_SM0_MSB _u(8)
#define PIO_IRQ0_INTE_SM0_LSB _u(8)
#define PIO_IRQ0_INTE_SM0_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTE_SM3_TXNFULL
#define PIO_IRQ0_INTE_SM3_TXNFULL_RESET _u(0x0)
#define PIO_IRQ0_INTE_SM3_TXNFULL_BITS _u(0x00000080)
#define PIO_IRQ0_INTE_SM3_TXNFULL_MSB _u(7)
#define PIO_IRQ0_INTE_SM3_TXNFULL_LSB _u(7)
#define PIO_IRQ0_INTE_SM3_TXNFULL_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTE_SM2_TXNFULL
#define PIO_IRQ0_INTE_SM2_TXNFULL_RESET _u(0x0)
#define PIO_IRQ0_INTE_SM2_TXNFULL_BITS _u(0x00000040)
#define PIO_IRQ0_INTE_SM2_TXNFULL_MSB _u(6)
#define PIO_IRQ0_INTE_SM2_TXNFULL_LSB _u(6)
#define PIO_IRQ0_INTE_SM2_TXNFULL_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTE_SM1_TXNFULL
#define PIO_IRQ0_INTE_SM1_TXNFULL_RESET _u(0x0)
#define PIO_IRQ0_INTE_SM1_TXNFULL_BITS _u(0x00000020)
#define PIO_IRQ0_INTE_SM1_TXNFULL_MSB _u(5)
#define PIO_IRQ0_INTE_SM1_TXNFULL_LSB _u(5)
#define PIO_IRQ0_INTE_SM1_TXNFULL_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTE_SM0_TXNFULL
#define PIO_IRQ0_INTE_SM0_TXNFULL_RESET _u(0x0)
#define PIO_IRQ0_INTE_SM0_TXNFULL_BITS _u(0x00000010)
#define PIO_IRQ0_INTE_SM0_TXNFULL_MSB _u(4)
#define PIO_IRQ0_INTE_SM0_TXNFULL_LSB _u(4)
#define PIO_IRQ0_INTE_SM0_TXNFULL_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTE_SM3_RXNEMPTY
#define PIO_IRQ0_INTE_SM3_RXNEMPTY_RESET _u(0x0)
#define PIO_IRQ0_INTE_SM3_RXNEMPTY_BITS _u(0x00000008)
#define PIO_IRQ0_INTE_SM3_RXNEMPTY_MSB _u(3)
#define PIO_IRQ0_INTE_SM3_RXNEMPTY_LSB _u(3)
#define PIO_IRQ0_INTE_SM3_RXNEMPTY_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTE_SM2_RXNEMPTY
#define PIO_IRQ0_INTE_SM2_RXNEMPTY_RESET _u(0x0)
#define PIO_IRQ0_INTE_SM2_RXNEMPTY_BITS _u(0x00000004)
#define PIO_IRQ0_INTE_SM2_RXNEMPTY_MSB _u(2)
#define PIO_IRQ0_INTE_SM2_RXNEMPTY_LSB _u(2)
#define PIO_IRQ0_INTE_SM2_RXNEMPTY_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTE_SM1_RXNEMPTY
#define PIO_IRQ0_INTE_SM1_RXNEMPTY_RESET _u(0x0)
#define PIO_IRQ0_INTE_SM1_RXNEMPTY_BITS _u(0x00000002)
#define PIO_IRQ0_INTE_SM1_RXNEMPTY_MSB _u(1)
#define PIO_IRQ0_INTE_SM1_RXNEMPTY_LSB _u(1)
#define PIO_IRQ0_INTE_SM1_RXNEMPTY_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTE_SM0_RXNEMPTY
#define PIO_IRQ0_INTE_SM0_RXNEMPTY_RESET _u(0x0)
#define PIO_IRQ0_INTE_SM0_RXNEMPTY_BITS _u(0x00000001)
#define PIO_IRQ0_INTE_SM0_RXNEMPTY_MSB _u(0)
#define PIO_IRQ0_INTE_SM0_RXNEMPTY_LSB _u(0)
#define PIO_IRQ0_INTE_SM0_RXNEMPTY_ACCESS "RW"
// =============================================================================
// Register : PIO_IRQ0_INTF
// Description : Interrupt Force for irq0
#define PIO_IRQ0_INTF_OFFSET _u(0x00000130)
#define PIO_IRQ0_INTF_BITS _u(0x00000fff)
#define PIO_IRQ0_INTF_RESET _u(0x00000000)
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTF_SM3
#define PIO_IRQ0_INTF_SM3_RESET _u(0x0)
#define PIO_IRQ0_INTF_SM3_BITS _u(0x00000800)
#define PIO_IRQ0_INTF_SM3_MSB _u(11)
#define PIO_IRQ0_INTF_SM3_LSB _u(11)
#define PIO_IRQ0_INTF_SM3_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTF_SM2
#define PIO_IRQ0_INTF_SM2_RESET _u(0x0)
#define PIO_IRQ0_INTF_SM2_BITS _u(0x00000400)
#define PIO_IRQ0_INTF_SM2_MSB _u(10)
#define PIO_IRQ0_INTF_SM2_LSB _u(10)
#define PIO_IRQ0_INTF_SM2_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTF_SM1
#define PIO_IRQ0_INTF_SM1_RESET _u(0x0)
#define PIO_IRQ0_INTF_SM1_BITS _u(0x00000200)
#define PIO_IRQ0_INTF_SM1_MSB _u(9)
#define PIO_IRQ0_INTF_SM1_LSB _u(9)
#define PIO_IRQ0_INTF_SM1_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTF_SM0
#define PIO_IRQ0_INTF_SM0_RESET _u(0x0)
#define PIO_IRQ0_INTF_SM0_BITS _u(0x00000100)
#define PIO_IRQ0_INTF_SM0_MSB _u(8)
#define PIO_IRQ0_INTF_SM0_LSB _u(8)
#define PIO_IRQ0_INTF_SM0_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTF_SM3_TXNFULL
#define PIO_IRQ0_INTF_SM3_TXNFULL_RESET _u(0x0)
#define PIO_IRQ0_INTF_SM3_TXNFULL_BITS _u(0x00000080)
#define PIO_IRQ0_INTF_SM3_TXNFULL_MSB _u(7)
#define PIO_IRQ0_INTF_SM3_TXNFULL_LSB _u(7)
#define PIO_IRQ0_INTF_SM3_TXNFULL_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTF_SM2_TXNFULL
#define PIO_IRQ0_INTF_SM2_TXNFULL_RESET _u(0x0)
#define PIO_IRQ0_INTF_SM2_TXNFULL_BITS _u(0x00000040)
#define PIO_IRQ0_INTF_SM2_TXNFULL_MSB _u(6)
#define PIO_IRQ0_INTF_SM2_TXNFULL_LSB _u(6)
#define PIO_IRQ0_INTF_SM2_TXNFULL_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTF_SM1_TXNFULL
#define PIO_IRQ0_INTF_SM1_TXNFULL_RESET _u(0x0)
#define PIO_IRQ0_INTF_SM1_TXNFULL_BITS _u(0x00000020)
#define PIO_IRQ0_INTF_SM1_TXNFULL_MSB _u(5)
#define PIO_IRQ0_INTF_SM1_TXNFULL_LSB _u(5)
#define PIO_IRQ0_INTF_SM1_TXNFULL_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTF_SM0_TXNFULL
#define PIO_IRQ0_INTF_SM0_TXNFULL_RESET _u(0x0)
#define PIO_IRQ0_INTF_SM0_TXNFULL_BITS _u(0x00000010)
#define PIO_IRQ0_INTF_SM0_TXNFULL_MSB _u(4)
#define PIO_IRQ0_INTF_SM0_TXNFULL_LSB _u(4)
#define PIO_IRQ0_INTF_SM0_TXNFULL_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTF_SM3_RXNEMPTY
#define PIO_IRQ0_INTF_SM3_RXNEMPTY_RESET _u(0x0)
#define PIO_IRQ0_INTF_SM3_RXNEMPTY_BITS _u(0x00000008)
#define PIO_IRQ0_INTF_SM3_RXNEMPTY_MSB _u(3)
#define PIO_IRQ0_INTF_SM3_RXNEMPTY_LSB _u(3)
#define PIO_IRQ0_INTF_SM3_RXNEMPTY_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTF_SM2_RXNEMPTY
#define PIO_IRQ0_INTF_SM2_RXNEMPTY_RESET _u(0x0)
#define PIO_IRQ0_INTF_SM2_RXNEMPTY_BITS _u(0x00000004)
#define PIO_IRQ0_INTF_SM2_RXNEMPTY_MSB _u(2)
#define PIO_IRQ0_INTF_SM2_RXNEMPTY_LSB _u(2)
#define PIO_IRQ0_INTF_SM2_RXNEMPTY_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTF_SM1_RXNEMPTY
#define PIO_IRQ0_INTF_SM1_RXNEMPTY_RESET _u(0x0)
#define PIO_IRQ0_INTF_SM1_RXNEMPTY_BITS _u(0x00000002)
#define PIO_IRQ0_INTF_SM1_RXNEMPTY_MSB _u(1)
#define PIO_IRQ0_INTF_SM1_RXNEMPTY_LSB _u(1)
#define PIO_IRQ0_INTF_SM1_RXNEMPTY_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTF_SM0_RXNEMPTY
#define PIO_IRQ0_INTF_SM0_RXNEMPTY_RESET _u(0x0)
#define PIO_IRQ0_INTF_SM0_RXNEMPTY_BITS _u(0x00000001)
#define PIO_IRQ0_INTF_SM0_RXNEMPTY_MSB _u(0)
#define PIO_IRQ0_INTF_SM0_RXNEMPTY_LSB _u(0)
#define PIO_IRQ0_INTF_SM0_RXNEMPTY_ACCESS "RW"
// =============================================================================
// Register : PIO_IRQ0_INTS
// Description : Interrupt status after masking & forcing for irq0
#define PIO_IRQ0_INTS_OFFSET _u(0x00000134)
#define PIO_IRQ0_INTS_BITS _u(0x00000fff)
#define PIO_IRQ0_INTS_RESET _u(0x00000000)
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTS_SM3
#define PIO_IRQ0_INTS_SM3_RESET _u(0x0)
#define PIO_IRQ0_INTS_SM3_BITS _u(0x00000800)
#define PIO_IRQ0_INTS_SM3_MSB _u(11)
#define PIO_IRQ0_INTS_SM3_LSB _u(11)
#define PIO_IRQ0_INTS_SM3_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTS_SM2
#define PIO_IRQ0_INTS_SM2_RESET _u(0x0)
#define PIO_IRQ0_INTS_SM2_BITS _u(0x00000400)
#define PIO_IRQ0_INTS_SM2_MSB _u(10)
#define PIO_IRQ0_INTS_SM2_LSB _u(10)
#define PIO_IRQ0_INTS_SM2_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTS_SM1
#define PIO_IRQ0_INTS_SM1_RESET _u(0x0)
#define PIO_IRQ0_INTS_SM1_BITS _u(0x00000200)
#define PIO_IRQ0_INTS_SM1_MSB _u(9)
#define PIO_IRQ0_INTS_SM1_LSB _u(9)
#define PIO_IRQ0_INTS_SM1_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTS_SM0
#define PIO_IRQ0_INTS_SM0_RESET _u(0x0)
#define PIO_IRQ0_INTS_SM0_BITS _u(0x00000100)
#define PIO_IRQ0_INTS_SM0_MSB _u(8)
#define PIO_IRQ0_INTS_SM0_LSB _u(8)
#define PIO_IRQ0_INTS_SM0_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTS_SM3_TXNFULL
#define PIO_IRQ0_INTS_SM3_TXNFULL_RESET _u(0x0)
#define PIO_IRQ0_INTS_SM3_TXNFULL_BITS _u(0x00000080)
#define PIO_IRQ0_INTS_SM3_TXNFULL_MSB _u(7)
#define PIO_IRQ0_INTS_SM3_TXNFULL_LSB _u(7)
#define PIO_IRQ0_INTS_SM3_TXNFULL_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTS_SM2_TXNFULL
#define PIO_IRQ0_INTS_SM2_TXNFULL_RESET _u(0x0)
#define PIO_IRQ0_INTS_SM2_TXNFULL_BITS _u(0x00000040)
#define PIO_IRQ0_INTS_SM2_TXNFULL_MSB _u(6)
#define PIO_IRQ0_INTS_SM2_TXNFULL_LSB _u(6)
#define PIO_IRQ0_INTS_SM2_TXNFULL_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTS_SM1_TXNFULL
#define PIO_IRQ0_INTS_SM1_TXNFULL_RESET _u(0x0)
#define PIO_IRQ0_INTS_SM1_TXNFULL_BITS _u(0x00000020)
#define PIO_IRQ0_INTS_SM1_TXNFULL_MSB _u(5)
#define PIO_IRQ0_INTS_SM1_TXNFULL_LSB _u(5)
#define PIO_IRQ0_INTS_SM1_TXNFULL_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTS_SM0_TXNFULL
#define PIO_IRQ0_INTS_SM0_TXNFULL_RESET _u(0x0)
#define PIO_IRQ0_INTS_SM0_TXNFULL_BITS _u(0x00000010)
#define PIO_IRQ0_INTS_SM0_TXNFULL_MSB _u(4)
#define PIO_IRQ0_INTS_SM0_TXNFULL_LSB _u(4)
#define PIO_IRQ0_INTS_SM0_TXNFULL_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTS_SM3_RXNEMPTY
#define PIO_IRQ0_INTS_SM3_RXNEMPTY_RESET _u(0x0)
#define PIO_IRQ0_INTS_SM3_RXNEMPTY_BITS _u(0x00000008)
#define PIO_IRQ0_INTS_SM3_RXNEMPTY_MSB _u(3)
#define PIO_IRQ0_INTS_SM3_RXNEMPTY_LSB _u(3)
#define PIO_IRQ0_INTS_SM3_RXNEMPTY_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTS_SM2_RXNEMPTY
#define PIO_IRQ0_INTS_SM2_RXNEMPTY_RESET _u(0x0)
#define PIO_IRQ0_INTS_SM2_RXNEMPTY_BITS _u(0x00000004)
#define PIO_IRQ0_INTS_SM2_RXNEMPTY_MSB _u(2)
#define PIO_IRQ0_INTS_SM2_RXNEMPTY_LSB _u(2)
#define PIO_IRQ0_INTS_SM2_RXNEMPTY_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTS_SM1_RXNEMPTY
#define PIO_IRQ0_INTS_SM1_RXNEMPTY_RESET _u(0x0)
#define PIO_IRQ0_INTS_SM1_RXNEMPTY_BITS _u(0x00000002)
#define PIO_IRQ0_INTS_SM1_RXNEMPTY_MSB _u(1)
#define PIO_IRQ0_INTS_SM1_RXNEMPTY_LSB _u(1)
#define PIO_IRQ0_INTS_SM1_RXNEMPTY_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ0_INTS_SM0_RXNEMPTY
#define PIO_IRQ0_INTS_SM0_RXNEMPTY_RESET _u(0x0)
#define PIO_IRQ0_INTS_SM0_RXNEMPTY_BITS _u(0x00000001)
#define PIO_IRQ0_INTS_SM0_RXNEMPTY_MSB _u(0)
#define PIO_IRQ0_INTS_SM0_RXNEMPTY_LSB _u(0)
#define PIO_IRQ0_INTS_SM0_RXNEMPTY_ACCESS "RO"
// =============================================================================
// Register : PIO_IRQ1_INTE
// Description : Interrupt Enable for irq1
#define PIO_IRQ1_INTE_OFFSET _u(0x00000138)
#define PIO_IRQ1_INTE_BITS _u(0x00000fff)
#define PIO_IRQ1_INTE_RESET _u(0x00000000)
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTE_SM3
#define PIO_IRQ1_INTE_SM3_RESET _u(0x0)
#define PIO_IRQ1_INTE_SM3_BITS _u(0x00000800)
#define PIO_IRQ1_INTE_SM3_MSB _u(11)
#define PIO_IRQ1_INTE_SM3_LSB _u(11)
#define PIO_IRQ1_INTE_SM3_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTE_SM2
#define PIO_IRQ1_INTE_SM2_RESET _u(0x0)
#define PIO_IRQ1_INTE_SM2_BITS _u(0x00000400)
#define PIO_IRQ1_INTE_SM2_MSB _u(10)
#define PIO_IRQ1_INTE_SM2_LSB _u(10)
#define PIO_IRQ1_INTE_SM2_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTE_SM1
#define PIO_IRQ1_INTE_SM1_RESET _u(0x0)
#define PIO_IRQ1_INTE_SM1_BITS _u(0x00000200)
#define PIO_IRQ1_INTE_SM1_MSB _u(9)
#define PIO_IRQ1_INTE_SM1_LSB _u(9)
#define PIO_IRQ1_INTE_SM1_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTE_SM0
#define PIO_IRQ1_INTE_SM0_RESET _u(0x0)
#define PIO_IRQ1_INTE_SM0_BITS _u(0x00000100)
#define PIO_IRQ1_INTE_SM0_MSB _u(8)
#define PIO_IRQ1_INTE_SM0_LSB _u(8)
#define PIO_IRQ1_INTE_SM0_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTE_SM3_TXNFULL
#define PIO_IRQ1_INTE_SM3_TXNFULL_RESET _u(0x0)
#define PIO_IRQ1_INTE_SM3_TXNFULL_BITS _u(0x00000080)
#define PIO_IRQ1_INTE_SM3_TXNFULL_MSB _u(7)
#define PIO_IRQ1_INTE_SM3_TXNFULL_LSB _u(7)
#define PIO_IRQ1_INTE_SM3_TXNFULL_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTE_SM2_TXNFULL
#define PIO_IRQ1_INTE_SM2_TXNFULL_RESET _u(0x0)
#define PIO_IRQ1_INTE_SM2_TXNFULL_BITS _u(0x00000040)
#define PIO_IRQ1_INTE_SM2_TXNFULL_MSB _u(6)
#define PIO_IRQ1_INTE_SM2_TXNFULL_LSB _u(6)
#define PIO_IRQ1_INTE_SM2_TXNFULL_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTE_SM1_TXNFULL
#define PIO_IRQ1_INTE_SM1_TXNFULL_RESET _u(0x0)
#define PIO_IRQ1_INTE_SM1_TXNFULL_BITS _u(0x00000020)
#define PIO_IRQ1_INTE_SM1_TXNFULL_MSB _u(5)
#define PIO_IRQ1_INTE_SM1_TXNFULL_LSB _u(5)
#define PIO_IRQ1_INTE_SM1_TXNFULL_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTE_SM0_TXNFULL
#define PIO_IRQ1_INTE_SM0_TXNFULL_RESET _u(0x0)
#define PIO_IRQ1_INTE_SM0_TXNFULL_BITS _u(0x00000010)
#define PIO_IRQ1_INTE_SM0_TXNFULL_MSB _u(4)
#define PIO_IRQ1_INTE_SM0_TXNFULL_LSB _u(4)
#define PIO_IRQ1_INTE_SM0_TXNFULL_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTE_SM3_RXNEMPTY
#define PIO_IRQ1_INTE_SM3_RXNEMPTY_RESET _u(0x0)
#define PIO_IRQ1_INTE_SM3_RXNEMPTY_BITS _u(0x00000008)
#define PIO_IRQ1_INTE_SM3_RXNEMPTY_MSB _u(3)
#define PIO_IRQ1_INTE_SM3_RXNEMPTY_LSB _u(3)
#define PIO_IRQ1_INTE_SM3_RXNEMPTY_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTE_SM2_RXNEMPTY
#define PIO_IRQ1_INTE_SM2_RXNEMPTY_RESET _u(0x0)
#define PIO_IRQ1_INTE_SM2_RXNEMPTY_BITS _u(0x00000004)
#define PIO_IRQ1_INTE_SM2_RXNEMPTY_MSB _u(2)
#define PIO_IRQ1_INTE_SM2_RXNEMPTY_LSB _u(2)
#define PIO_IRQ1_INTE_SM2_RXNEMPTY_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTE_SM1_RXNEMPTY
#define PIO_IRQ1_INTE_SM1_RXNEMPTY_RESET _u(0x0)
#define PIO_IRQ1_INTE_SM1_RXNEMPTY_BITS _u(0x00000002)
#define PIO_IRQ1_INTE_SM1_RXNEMPTY_MSB _u(1)
#define PIO_IRQ1_INTE_SM1_RXNEMPTY_LSB _u(1)
#define PIO_IRQ1_INTE_SM1_RXNEMPTY_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTE_SM0_RXNEMPTY
#define PIO_IRQ1_INTE_SM0_RXNEMPTY_RESET _u(0x0)
#define PIO_IRQ1_INTE_SM0_RXNEMPTY_BITS _u(0x00000001)
#define PIO_IRQ1_INTE_SM0_RXNEMPTY_MSB _u(0)
#define PIO_IRQ1_INTE_SM0_RXNEMPTY_LSB _u(0)
#define PIO_IRQ1_INTE_SM0_RXNEMPTY_ACCESS "RW"
// =============================================================================
// Register : PIO_IRQ1_INTF
// Description : Interrupt Force for irq1
#define PIO_IRQ1_INTF_OFFSET _u(0x0000013c)
#define PIO_IRQ1_INTF_BITS _u(0x00000fff)
#define PIO_IRQ1_INTF_RESET _u(0x00000000)
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTF_SM3
#define PIO_IRQ1_INTF_SM3_RESET _u(0x0)
#define PIO_IRQ1_INTF_SM3_BITS _u(0x00000800)
#define PIO_IRQ1_INTF_SM3_MSB _u(11)
#define PIO_IRQ1_INTF_SM3_LSB _u(11)
#define PIO_IRQ1_INTF_SM3_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTF_SM2
#define PIO_IRQ1_INTF_SM2_RESET _u(0x0)
#define PIO_IRQ1_INTF_SM2_BITS _u(0x00000400)
#define PIO_IRQ1_INTF_SM2_MSB _u(10)
#define PIO_IRQ1_INTF_SM2_LSB _u(10)
#define PIO_IRQ1_INTF_SM2_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTF_SM1
#define PIO_IRQ1_INTF_SM1_RESET _u(0x0)
#define PIO_IRQ1_INTF_SM1_BITS _u(0x00000200)
#define PIO_IRQ1_INTF_SM1_MSB _u(9)
#define PIO_IRQ1_INTF_SM1_LSB _u(9)
#define PIO_IRQ1_INTF_SM1_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTF_SM0
#define PIO_IRQ1_INTF_SM0_RESET _u(0x0)
#define PIO_IRQ1_INTF_SM0_BITS _u(0x00000100)
#define PIO_IRQ1_INTF_SM0_MSB _u(8)
#define PIO_IRQ1_INTF_SM0_LSB _u(8)
#define PIO_IRQ1_INTF_SM0_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTF_SM3_TXNFULL
#define PIO_IRQ1_INTF_SM3_TXNFULL_RESET _u(0x0)
#define PIO_IRQ1_INTF_SM3_TXNFULL_BITS _u(0x00000080)
#define PIO_IRQ1_INTF_SM3_TXNFULL_MSB _u(7)
#define PIO_IRQ1_INTF_SM3_TXNFULL_LSB _u(7)
#define PIO_IRQ1_INTF_SM3_TXNFULL_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTF_SM2_TXNFULL
#define PIO_IRQ1_INTF_SM2_TXNFULL_RESET _u(0x0)
#define PIO_IRQ1_INTF_SM2_TXNFULL_BITS _u(0x00000040)
#define PIO_IRQ1_INTF_SM2_TXNFULL_MSB _u(6)
#define PIO_IRQ1_INTF_SM2_TXNFULL_LSB _u(6)
#define PIO_IRQ1_INTF_SM2_TXNFULL_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTF_SM1_TXNFULL
#define PIO_IRQ1_INTF_SM1_TXNFULL_RESET _u(0x0)
#define PIO_IRQ1_INTF_SM1_TXNFULL_BITS _u(0x00000020)
#define PIO_IRQ1_INTF_SM1_TXNFULL_MSB _u(5)
#define PIO_IRQ1_INTF_SM1_TXNFULL_LSB _u(5)
#define PIO_IRQ1_INTF_SM1_TXNFULL_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTF_SM0_TXNFULL
#define PIO_IRQ1_INTF_SM0_TXNFULL_RESET _u(0x0)
#define PIO_IRQ1_INTF_SM0_TXNFULL_BITS _u(0x00000010)
#define PIO_IRQ1_INTF_SM0_TXNFULL_MSB _u(4)
#define PIO_IRQ1_INTF_SM0_TXNFULL_LSB _u(4)
#define PIO_IRQ1_INTF_SM0_TXNFULL_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTF_SM3_RXNEMPTY
#define PIO_IRQ1_INTF_SM3_RXNEMPTY_RESET _u(0x0)
#define PIO_IRQ1_INTF_SM3_RXNEMPTY_BITS _u(0x00000008)
#define PIO_IRQ1_INTF_SM3_RXNEMPTY_MSB _u(3)
#define PIO_IRQ1_INTF_SM3_RXNEMPTY_LSB _u(3)
#define PIO_IRQ1_INTF_SM3_RXNEMPTY_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTF_SM2_RXNEMPTY
#define PIO_IRQ1_INTF_SM2_RXNEMPTY_RESET _u(0x0)
#define PIO_IRQ1_INTF_SM2_RXNEMPTY_BITS _u(0x00000004)
#define PIO_IRQ1_INTF_SM2_RXNEMPTY_MSB _u(2)
#define PIO_IRQ1_INTF_SM2_RXNEMPTY_LSB _u(2)
#define PIO_IRQ1_INTF_SM2_RXNEMPTY_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTF_SM1_RXNEMPTY
#define PIO_IRQ1_INTF_SM1_RXNEMPTY_RESET _u(0x0)
#define PIO_IRQ1_INTF_SM1_RXNEMPTY_BITS _u(0x00000002)
#define PIO_IRQ1_INTF_SM1_RXNEMPTY_MSB _u(1)
#define PIO_IRQ1_INTF_SM1_RXNEMPTY_LSB _u(1)
#define PIO_IRQ1_INTF_SM1_RXNEMPTY_ACCESS "RW"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTF_SM0_RXNEMPTY
#define PIO_IRQ1_INTF_SM0_RXNEMPTY_RESET _u(0x0)
#define PIO_IRQ1_INTF_SM0_RXNEMPTY_BITS _u(0x00000001)
#define PIO_IRQ1_INTF_SM0_RXNEMPTY_MSB _u(0)
#define PIO_IRQ1_INTF_SM0_RXNEMPTY_LSB _u(0)
#define PIO_IRQ1_INTF_SM0_RXNEMPTY_ACCESS "RW"
// =============================================================================
// Register : PIO_IRQ1_INTS
// Description : Interrupt status after masking & forcing for irq1
#define PIO_IRQ1_INTS_OFFSET _u(0x00000140)
#define PIO_IRQ1_INTS_BITS _u(0x00000fff)
#define PIO_IRQ1_INTS_RESET _u(0x00000000)
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTS_SM3
#define PIO_IRQ1_INTS_SM3_RESET _u(0x0)
#define PIO_IRQ1_INTS_SM3_BITS _u(0x00000800)
#define PIO_IRQ1_INTS_SM3_MSB _u(11)
#define PIO_IRQ1_INTS_SM3_LSB _u(11)
#define PIO_IRQ1_INTS_SM3_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTS_SM2
#define PIO_IRQ1_INTS_SM2_RESET _u(0x0)
#define PIO_IRQ1_INTS_SM2_BITS _u(0x00000400)
#define PIO_IRQ1_INTS_SM2_MSB _u(10)
#define PIO_IRQ1_INTS_SM2_LSB _u(10)
#define PIO_IRQ1_INTS_SM2_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTS_SM1
#define PIO_IRQ1_INTS_SM1_RESET _u(0x0)
#define PIO_IRQ1_INTS_SM1_BITS _u(0x00000200)
#define PIO_IRQ1_INTS_SM1_MSB _u(9)
#define PIO_IRQ1_INTS_SM1_LSB _u(9)
#define PIO_IRQ1_INTS_SM1_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTS_SM0
#define PIO_IRQ1_INTS_SM0_RESET _u(0x0)
#define PIO_IRQ1_INTS_SM0_BITS _u(0x00000100)
#define PIO_IRQ1_INTS_SM0_MSB _u(8)
#define PIO_IRQ1_INTS_SM0_LSB _u(8)
#define PIO_IRQ1_INTS_SM0_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTS_SM3_TXNFULL
#define PIO_IRQ1_INTS_SM3_TXNFULL_RESET _u(0x0)
#define PIO_IRQ1_INTS_SM3_TXNFULL_BITS _u(0x00000080)
#define PIO_IRQ1_INTS_SM3_TXNFULL_MSB _u(7)
#define PIO_IRQ1_INTS_SM3_TXNFULL_LSB _u(7)
#define PIO_IRQ1_INTS_SM3_TXNFULL_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTS_SM2_TXNFULL
#define PIO_IRQ1_INTS_SM2_TXNFULL_RESET _u(0x0)
#define PIO_IRQ1_INTS_SM2_TXNFULL_BITS _u(0x00000040)
#define PIO_IRQ1_INTS_SM2_TXNFULL_MSB _u(6)
#define PIO_IRQ1_INTS_SM2_TXNFULL_LSB _u(6)
#define PIO_IRQ1_INTS_SM2_TXNFULL_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTS_SM1_TXNFULL
#define PIO_IRQ1_INTS_SM1_TXNFULL_RESET _u(0x0)
#define PIO_IRQ1_INTS_SM1_TXNFULL_BITS _u(0x00000020)
#define PIO_IRQ1_INTS_SM1_TXNFULL_MSB _u(5)
#define PIO_IRQ1_INTS_SM1_TXNFULL_LSB _u(5)
#define PIO_IRQ1_INTS_SM1_TXNFULL_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTS_SM0_TXNFULL
#define PIO_IRQ1_INTS_SM0_TXNFULL_RESET _u(0x0)
#define PIO_IRQ1_INTS_SM0_TXNFULL_BITS _u(0x00000010)
#define PIO_IRQ1_INTS_SM0_TXNFULL_MSB _u(4)
#define PIO_IRQ1_INTS_SM0_TXNFULL_LSB _u(4)
#define PIO_IRQ1_INTS_SM0_TXNFULL_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTS_SM3_RXNEMPTY
#define PIO_IRQ1_INTS_SM3_RXNEMPTY_RESET _u(0x0)
#define PIO_IRQ1_INTS_SM3_RXNEMPTY_BITS _u(0x00000008)
#define PIO_IRQ1_INTS_SM3_RXNEMPTY_MSB _u(3)
#define PIO_IRQ1_INTS_SM3_RXNEMPTY_LSB _u(3)
#define PIO_IRQ1_INTS_SM3_RXNEMPTY_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTS_SM2_RXNEMPTY
#define PIO_IRQ1_INTS_SM2_RXNEMPTY_RESET _u(0x0)
#define PIO_IRQ1_INTS_SM2_RXNEMPTY_BITS _u(0x00000004)
#define PIO_IRQ1_INTS_SM2_RXNEMPTY_MSB _u(2)
#define PIO_IRQ1_INTS_SM2_RXNEMPTY_LSB _u(2)
#define PIO_IRQ1_INTS_SM2_RXNEMPTY_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTS_SM1_RXNEMPTY
#define PIO_IRQ1_INTS_SM1_RXNEMPTY_RESET _u(0x0)
#define PIO_IRQ1_INTS_SM1_RXNEMPTY_BITS _u(0x00000002)
#define PIO_IRQ1_INTS_SM1_RXNEMPTY_MSB _u(1)
#define PIO_IRQ1_INTS_SM1_RXNEMPTY_LSB _u(1)
#define PIO_IRQ1_INTS_SM1_RXNEMPTY_ACCESS "RO"
// -----------------------------------------------------------------------------
// Field : PIO_IRQ1_INTS_SM0_RXNEMPTY
#define PIO_IRQ1_INTS_SM0_RXNEMPTY_RESET _u(0x0)
#define PIO_IRQ1_INTS_SM0_RXNEMPTY_BITS _u(0x00000001)
#define PIO_IRQ1_INTS_SM0_RXNEMPTY_MSB _u(0)
#define PIO_IRQ1_INTS_SM0_RXNEMPTY_LSB _u(0)
#define PIO_IRQ1_INTS_SM0_RXNEMPTY_ACCESS "RO"
// =============================================================================
#endif // _HARDWARE_REGS_PIO_H
|