summaryrefslogtreecommitdiffstats
path: root/include/APE_DEVICE.h
blob: 28835d08412a292b15b4bdb6f91e197a3062a1b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
////////////////////////////////////////////////////////////////////////////////
///
/// @file       APE_DEVICE.h
///
/// @project    ape
///
/// @brief      APE_DEVICE
///
////////////////////////////////////////////////////////////////////////////////
///
////////////////////////////////////////////////////////////////////////////////
///
/// @copyright Copyright (c) 2018, Evan Lojewski
/// @cond
///
/// All rights reserved.
///
/// Redistribution and use in source and binary forms, with or without
/// modification, are permitted provided that the following conditions are met:
/// 1. Redistributions of source code must retain the above copyright notice,
/// this list of conditions and the following disclaimer.
/// 2. Redistributions in binary form must reproduce the above copyright notice,
/// this list of conditions and the following disclaimer in the documentation
/// and/or other materials provided with the distribution.
/// 3. Neither the name of the <organization> nor the
/// names of its contributors may be used to endorse or promote products
/// derived from this software without specific prior written permission.
///
////////////////////////////////////////////////////////////////////////////////
///
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
/// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
/// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
/// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
/// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
/// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
/// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
/// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
/// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
/// POSSIBILITY OF SUCH DAMAGE.
/// @endcond
////////////////////////////////////////////////////////////////////////////////

/** @defgroup APE_DEVICE_H    APE_DEVICE */
/** @addtogroup APE_DEVICE_H
 * @{
 */
#ifndef APE_DEVICE_H
#define APE_DEVICE_H

#include <stdint.h>

#ifdef CXX_SIMULATOR /* Compiling c++ simulator code - uses register wrappers */
void init_APE_DEVICE_sim(void* base);
void init_APE_DEVICE(void);

#include <CXXRegister.h>
typedef CXXRegister<uint8_t,  0,  8> APE_DEVICE_H_uint8_t;
typedef CXXRegister<uint16_t, 0, 16> APE_DEVICE_H_uint16_t;
typedef CXXRegister<uint32_t, 0, 32> APE_DEVICE_H_uint32_t;
#define APE_DEVICE_H_uint8_t_bitfield(__pos__, __width__)  CXXRegister<uint8_t,  __pos__, __width__>
#define APE_DEVICE_H_uint16_t_bitfield(__pos__, __width__) CXXRegister<uint16_t, __pos__, __width__>
#define APE_DEVICE_H_uint32_t_bitfield(__pos__, __width__) CXXRegister<uint32_t, __pos__, __width__>
#define register_container struct
#define volatile
#define BITFIELD_BEGIN(__type__, __name__) struct {
#define BITFIELD_MEMBER(__type__, __name__, __offset__, __bits__) __type__##_bitfield(__offset__, __bits__) __name__;
#define BITFIELD_END(__type__, __name__) } __name__;

#else /* Firmware Data types */
typedef uint8_t  APE_DEVICE_H_uint8_t;
typedef uint16_t APE_DEVICE_H_uint16_t;
typedef uint32_t APE_DEVICE_H_uint32_t;
#define register_container union
#define BITFIELD_BEGIN(__type__, __name__) struct {
#define BITFIELD_MEMBER(__type__, __name__, __offset__, __bits__) __type__ __name__:__bits__;
#define BITFIELD_END(__type__, __name__) } __name__;
#endif /* !CXX_SIMULATOR */

#define REG_DEVICE_BASE ((volatile void*)0xa0040000) /* Device Registers, function 0 */
#define REG_DEVICE_SIZE (sizeof(DEVICE_t))

#define REG_DEVICE_MISCELLANEOUS_HOST_CONTROL ((volatile APE_DEVICE_H_uint32_t*)0xa0040068) /*  */
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_CLEAR_INTERRUPT_SHIFT 0u
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_CLEAR_INTERRUPT_MASK  0x1u
#define GET_DEVICE_MISCELLANEOUS_HOST_CONTROL_CLEAR_INTERRUPT(__reg__)  (((__reg__) & 0x1) >> 0u)
#define SET_DEVICE_MISCELLANEOUS_HOST_CONTROL_CLEAR_INTERRUPT(__val__)  (((__val__) << 0u) & 0x1u)
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_MASK_INTERRUPT_SHIFT 1u
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_MASK_INTERRUPT_MASK  0x2u
#define GET_DEVICE_MISCELLANEOUS_HOST_CONTROL_MASK_INTERRUPT(__reg__)  (((__reg__) & 0x2) >> 1u)
#define SET_DEVICE_MISCELLANEOUS_HOST_CONTROL_MASK_INTERRUPT(__val__)  (((__val__) << 1u) & 0x2u)
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_ENABLE_ENDIAN_BYTE_SWAP_SHIFT 2u
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_ENABLE_ENDIAN_BYTE_SWAP_MASK  0x4u
#define GET_DEVICE_MISCELLANEOUS_HOST_CONTROL_ENABLE_ENDIAN_BYTE_SWAP(__reg__)  (((__reg__) & 0x4) >> 2u)
#define SET_DEVICE_MISCELLANEOUS_HOST_CONTROL_ENABLE_ENDIAN_BYTE_SWAP(__val__)  (((__val__) << 2u) & 0x4u)
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_ENABLE_ENDIAN_WORD_SWAP_SHIFT 3u
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_ENABLE_ENDIAN_WORD_SWAP_MASK  0x8u
#define GET_DEVICE_MISCELLANEOUS_HOST_CONTROL_ENABLE_ENDIAN_WORD_SWAP(__reg__)  (((__reg__) & 0x8) >> 3u)
#define SET_DEVICE_MISCELLANEOUS_HOST_CONTROL_ENABLE_ENDIAN_WORD_SWAP(__val__)  (((__val__) << 3u) & 0x8u)
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_ENABLE_PCI_STATE_REGISTER_READ_DIV_WRITE_CAPABILITY_SHIFT 4u
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_ENABLE_PCI_STATE_REGISTER_READ_DIV_WRITE_CAPABILITY_MASK  0x10u
#define GET_DEVICE_MISCELLANEOUS_HOST_CONTROL_ENABLE_PCI_STATE_REGISTER_READ_DIV_WRITE_CAPABILITY(__reg__)  (((__reg__) & 0x10) >> 4u)
#define SET_DEVICE_MISCELLANEOUS_HOST_CONTROL_ENABLE_PCI_STATE_REGISTER_READ_DIV_WRITE_CAPABILITY(__val__)  (((__val__) << 4u) & 0x10u)
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_ENABLE_CLOCK_CONTROL_REGISTER_READ_DIV_WRITE_CAPABILITY_SHIFT 5u
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_ENABLE_CLOCK_CONTROL_REGISTER_READ_DIV_WRITE_CAPABILITY_MASK  0x20u
#define GET_DEVICE_MISCELLANEOUS_HOST_CONTROL_ENABLE_CLOCK_CONTROL_REGISTER_READ_DIV_WRITE_CAPABILITY(__reg__)  (((__reg__) & 0x20) >> 5u)
#define SET_DEVICE_MISCELLANEOUS_HOST_CONTROL_ENABLE_CLOCK_CONTROL_REGISTER_READ_DIV_WRITE_CAPABILITY(__val__)  (((__val__) << 5u) & 0x20u)
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_ENABLE_REGISTER_WORD_SWAP_SHIFT 6u
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_ENABLE_REGISTER_WORD_SWAP_MASK  0x40u
#define GET_DEVICE_MISCELLANEOUS_HOST_CONTROL_ENABLE_REGISTER_WORD_SWAP(__reg__)  (((__reg__) & 0x40) >> 6u)
#define SET_DEVICE_MISCELLANEOUS_HOST_CONTROL_ENABLE_REGISTER_WORD_SWAP(__val__)  (((__val__) << 6u) & 0x40u)
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_ENABLE_INDIRECT_ACCESS_SHIFT 7u
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_ENABLE_INDIRECT_ACCESS_MASK  0x80u
#define GET_DEVICE_MISCELLANEOUS_HOST_CONTROL_ENABLE_INDIRECT_ACCESS(__reg__)  (((__reg__) & 0x80) >> 7u)
#define SET_DEVICE_MISCELLANEOUS_HOST_CONTROL_ENABLE_INDIRECT_ACCESS(__val__)  (((__val__) << 7u) & 0x80u)
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_MASK_INTERRUPT_MODE_SHIFT 8u
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_MASK_INTERRUPT_MODE_MASK  0x100u
#define GET_DEVICE_MISCELLANEOUS_HOST_CONTROL_MASK_INTERRUPT_MODE(__reg__)  (((__reg__) & 0x100) >> 8u)
#define SET_DEVICE_MISCELLANEOUS_HOST_CONTROL_MASK_INTERRUPT_MODE(__val__)  (((__val__) << 8u) & 0x100u)
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_ENABLE_TAGGED_STATUS_MODE_SHIFT 9u
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_ENABLE_TAGGED_STATUS_MODE_MASK  0x200u
#define GET_DEVICE_MISCELLANEOUS_HOST_CONTROL_ENABLE_TAGGED_STATUS_MODE(__reg__)  (((__reg__) & 0x200) >> 9u)
#define SET_DEVICE_MISCELLANEOUS_HOST_CONTROL_ENABLE_TAGGED_STATUS_MODE(__val__)  (((__val__) << 9u) & 0x200u)
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_RCB_CHECK_SHIFT 10u
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_RCB_CHECK_MASK  0x400u
#define GET_DEVICE_MISCELLANEOUS_HOST_CONTROL_RCB_CHECK(__reg__)  (((__reg__) & 0x400) >> 10u)
#define SET_DEVICE_MISCELLANEOUS_HOST_CONTROL_RCB_CHECK(__val__)  (((__val__) << 10u) & 0x400u)
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_INTERRUPT_CHECK_SHIFT 11u
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_INTERRUPT_CHECK_MASK  0x800u
#define GET_DEVICE_MISCELLANEOUS_HOST_CONTROL_INTERRUPT_CHECK(__reg__)  (((__reg__) & 0x800) >> 11u)
#define SET_DEVICE_MISCELLANEOUS_HOST_CONTROL_INTERRUPT_CHECK(__val__)  (((__val__) << 11u) & 0x800u)
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_BYTE_ENABLE_RULE_CHECK_SHIFT 12u
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_BYTE_ENABLE_RULE_CHECK_MASK  0x1000u
#define GET_DEVICE_MISCELLANEOUS_HOST_CONTROL_BYTE_ENABLE_RULE_CHECK(__reg__)  (((__reg__) & 0x1000) >> 12u)
#define SET_DEVICE_MISCELLANEOUS_HOST_CONTROL_BYTE_ENABLE_RULE_CHECK(__val__)  (((__val__) << 12u) & 0x1000u)
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_BOUNDARY_CHECK_SHIFT 13u
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_BOUNDARY_CHECK_MASK  0x2000u
#define GET_DEVICE_MISCELLANEOUS_HOST_CONTROL_BOUNDARY_CHECK(__reg__)  (((__reg__) & 0x2000) >> 13u)
#define SET_DEVICE_MISCELLANEOUS_HOST_CONTROL_BOUNDARY_CHECK(__val__)  (((__val__) << 13u) & 0x2000u)
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_LOG_HEADER_OVERFLOW_SHIFT 14u
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_LOG_HEADER_OVERFLOW_MASK  0x4000u
#define GET_DEVICE_MISCELLANEOUS_HOST_CONTROL_LOG_HEADER_OVERFLOW(__reg__)  (((__reg__) & 0x4000) >> 14u)
#define SET_DEVICE_MISCELLANEOUS_HOST_CONTROL_LOG_HEADER_OVERFLOW(__val__)  (((__val__) << 14u) & 0x4000u)
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_ENABLE_TLP_MINOR_ERROR_TOLERANCE_SHIFT 15u
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_ENABLE_TLP_MINOR_ERROR_TOLERANCE_MASK  0x8000u
#define GET_DEVICE_MISCELLANEOUS_HOST_CONTROL_ENABLE_TLP_MINOR_ERROR_TOLERANCE(__reg__)  (((__reg__) & 0x8000) >> 15u)
#define SET_DEVICE_MISCELLANEOUS_HOST_CONTROL_ENABLE_TLP_MINOR_ERROR_TOLERANCE(__val__)  (((__val__) << 15u) & 0x8000u)
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_METAL_REV_ID_SHIFT 16u
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_METAL_REV_ID_MASK  0xff0000u
#define GET_DEVICE_MISCELLANEOUS_HOST_CONTROL_METAL_REV_ID(__reg__)  (((__reg__) & 0xff0000) >> 16u)
#define SET_DEVICE_MISCELLANEOUS_HOST_CONTROL_METAL_REV_ID(__val__)  (((__val__) << 16u) & 0xff0000u)
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_METAL_REV_ID_0 0x0u
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_METAL_REV_ID_1 0x1u
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_METAL_REV_ID_2 0x2u

#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_ALL_LAYER_ID_SHIFT 24u
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_ALL_LAYER_ID_MASK  0xf000000u
#define GET_DEVICE_MISCELLANEOUS_HOST_CONTROL_ALL_LAYER_ID(__reg__)  (((__reg__) & 0xf000000) >> 24u)
#define SET_DEVICE_MISCELLANEOUS_HOST_CONTROL_ALL_LAYER_ID(__val__)  (((__val__) << 24u) & 0xf000000u)
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_ALL_LAYER_ID_A 0x0u
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_ALL_LAYER_ID_B 0x1u
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_ALL_LAYER_ID_C 0x2u

#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_PRODUCT_ID_SHIFT 28u
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_PRODUCT_ID_MASK  0xf0000000u
#define GET_DEVICE_MISCELLANEOUS_HOST_CONTROL_PRODUCT_ID(__reg__)  (((__reg__) & 0xf0000000) >> 28u)
#define SET_DEVICE_MISCELLANEOUS_HOST_CONTROL_PRODUCT_ID(__val__)  (((__val__) << 28u) & 0xf0000000u)
#define     DEVICE_MISCELLANEOUS_HOST_CONTROL_PRODUCT_ID_NEW_PRODUCT_MAPPING 0xfu


/** @brief Register definition for @ref DEVICE_t.MiscellaneousHostControl. */
typedef register_container RegDEVICEMiscellaneousHostControl_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Setting this bit will clear interrupt as long as the mask interrupt bit is not set. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, ClearInterrupt, 0, 1)
        /** @brief Setting this bit will mask future interrupt events from being generated. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MaskInterrupt, 1, 1)
        /** @brief Set this bit to enable endian byte swapping when accessing through PCIE target interface. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableEndianByteSwap, 2, 1)
        /** @brief Set this bit to enable endian word swapping when accessing through PCIE target interface. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableEndianWordSwap, 3, 1)
        /** @brief Set this bit to enable PCI state register read/ write capability, otherwise the register is read only. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnablePCIStateRegisterRead_DIV_WriteCapability, 4, 1)
        /** @brief Set this bit enable clock control register read/ write capability, otherwise, the clock control register is read only. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableClockControlRegisterRead_DIV_WriteCapability, 5, 1)
        /** @brief Set this bit to enable word swapping when accessing registers through the PCI target device. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableRegisterWordSwap, 6, 1)
        /** @brief Set this bit to enable indirect addressing mode. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableIndirectAccess, 7, 1)
        /** @brief When set, the interrupt is masked. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MaskInterruptMode, 8, 1)
        /** @brief When set, an unique 8-bit tag value will be inserted into the Status block status tag. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableTaggedStatusMode, 9, 1)
        /** @brief Set this bit to enable RCB check. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, RCBCheck, 10, 1)
        /** @brief Set this bit to enable the interrupt check. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, InterruptCheck, 11, 1)
        /** @brief Set this bit to enable the byte enable rule check. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, ByteEnableRuleCheck, 12, 1)
        /** @brief Set this bit to enable crossing 4 KB boundary check. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, BoundaryCheck, 13, 1)
        /** @brief Set this bit to enable log header due to overflow. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LogHeaderOverflow, 14, 1)
        /** @brief Set this bit to enable TLP minor error tolerance (ATTR/TC/LOCK command). */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableTLPMinorErrorTolerance, 15, 1)
        /** @brief Metal Rev Number */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MetalRevID, 16, 8)
        /** @brief External All Layer Revision ID. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, AllLayerID, 24, 4)
        /** @brief Product ID. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, ProductID, 28, 4)
#elif defined(__BIG_ENDIAN__)
        /** @brief Product ID. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, ProductID, 28, 4)
        /** @brief External All Layer Revision ID. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, AllLayerID, 24, 4)
        /** @brief Metal Rev Number */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MetalRevID, 16, 8)
        /** @brief Set this bit to enable TLP minor error tolerance (ATTR/TC/LOCK command). */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableTLPMinorErrorTolerance, 15, 1)
        /** @brief Set this bit to enable log header due to overflow. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LogHeaderOverflow, 14, 1)
        /** @brief Set this bit to enable crossing 4 KB boundary check. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, BoundaryCheck, 13, 1)
        /** @brief Set this bit to enable the byte enable rule check. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, ByteEnableRuleCheck, 12, 1)
        /** @brief Set this bit to enable the interrupt check. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, InterruptCheck, 11, 1)
        /** @brief Set this bit to enable RCB check. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, RCBCheck, 10, 1)
        /** @brief When set, an unique 8-bit tag value will be inserted into the Status block status tag. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableTaggedStatusMode, 9, 1)
        /** @brief When set, the interrupt is masked. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MaskInterruptMode, 8, 1)
        /** @brief Set this bit to enable indirect addressing mode. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableIndirectAccess, 7, 1)
        /** @brief Set this bit to enable word swapping when accessing registers through the PCI target device. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableRegisterWordSwap, 6, 1)
        /** @brief Set this bit enable clock control register read/ write capability, otherwise, the clock control register is read only. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableClockControlRegisterRead_DIV_WriteCapability, 5, 1)
        /** @brief Set this bit to enable PCI state register read/ write capability, otherwise the register is read only. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnablePCIStateRegisterRead_DIV_WriteCapability, 4, 1)
        /** @brief Set this bit to enable endian word swapping when accessing through PCIE target interface. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableEndianWordSwap, 3, 1)
        /** @brief Set this bit to enable endian byte swapping when accessing through PCIE target interface. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableEndianByteSwap, 2, 1)
        /** @brief Setting this bit will mask future interrupt events from being generated. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MaskInterrupt, 1, 1)
        /** @brief Setting this bit will clear interrupt as long as the mask interrupt bit is not set. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, ClearInterrupt, 0, 1)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "MiscellaneousHostControl"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEMiscellaneousHostControl_t()
    {
        /** @brief constructor for @ref DEVICE_t.MiscellaneousHostControl. */
        r32.setName("MiscellaneousHostControl");
        bits.ClearInterrupt.setBaseRegister(&r32);
        bits.ClearInterrupt.setName("ClearInterrupt");
        bits.MaskInterrupt.setBaseRegister(&r32);
        bits.MaskInterrupt.setName("MaskInterrupt");
        bits.EnableEndianByteSwap.setBaseRegister(&r32);
        bits.EnableEndianByteSwap.setName("EnableEndianByteSwap");
        bits.EnableEndianWordSwap.setBaseRegister(&r32);
        bits.EnableEndianWordSwap.setName("EnableEndianWordSwap");
        bits.EnablePCIStateRegisterRead_DIV_WriteCapability.setBaseRegister(&r32);
        bits.EnablePCIStateRegisterRead_DIV_WriteCapability.setName("EnablePCIStateRegisterRead_DIV_WriteCapability");
        bits.EnableClockControlRegisterRead_DIV_WriteCapability.setBaseRegister(&r32);
        bits.EnableClockControlRegisterRead_DIV_WriteCapability.setName("EnableClockControlRegisterRead_DIV_WriteCapability");
        bits.EnableRegisterWordSwap.setBaseRegister(&r32);
        bits.EnableRegisterWordSwap.setName("EnableRegisterWordSwap");
        bits.EnableIndirectAccess.setBaseRegister(&r32);
        bits.EnableIndirectAccess.setName("EnableIndirectAccess");
        bits.MaskInterruptMode.setBaseRegister(&r32);
        bits.MaskInterruptMode.setName("MaskInterruptMode");
        bits.EnableTaggedStatusMode.setBaseRegister(&r32);
        bits.EnableTaggedStatusMode.setName("EnableTaggedStatusMode");
        bits.RCBCheck.setBaseRegister(&r32);
        bits.RCBCheck.setName("RCBCheck");
        bits.InterruptCheck.setBaseRegister(&r32);
        bits.InterruptCheck.setName("InterruptCheck");
        bits.ByteEnableRuleCheck.setBaseRegister(&r32);
        bits.ByteEnableRuleCheck.setName("ByteEnableRuleCheck");
        bits.BoundaryCheck.setBaseRegister(&r32);
        bits.BoundaryCheck.setName("BoundaryCheck");
        bits.LogHeaderOverflow.setBaseRegister(&r32);
        bits.LogHeaderOverflow.setName("LogHeaderOverflow");
        bits.EnableTLPMinorErrorTolerance.setBaseRegister(&r32);
        bits.EnableTLPMinorErrorTolerance.setName("EnableTLPMinorErrorTolerance");
        bits.MetalRevID.setBaseRegister(&r32);
        bits.MetalRevID.setName("MetalRevID");
        bits.AllLayerID.setBaseRegister(&r32);
        bits.AllLayerID.setName("AllLayerID");
        bits.ProductID.setBaseRegister(&r32);
        bits.ProductID.setName("ProductID");
    }
    RegDEVICEMiscellaneousHostControl_t& operator=(const RegDEVICEMiscellaneousHostControl_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEMiscellaneousHostControl_t;

#define REG_DEVICE_PCI_STATE ((volatile APE_DEVICE_H_uint32_t*)0xa0040070) /*  */
#define     DEVICE_PCI_STATE_PCI_EXPANSION_ROM_DESIRED_SHIFT 5u
#define     DEVICE_PCI_STATE_PCI_EXPANSION_ROM_DESIRED_MASK  0x20u
#define GET_DEVICE_PCI_STATE_PCI_EXPANSION_ROM_DESIRED(__reg__)  (((__reg__) & 0x20) >> 5u)
#define SET_DEVICE_PCI_STATE_PCI_EXPANSION_ROM_DESIRED(__val__)  (((__val__) << 5u) & 0x20u)
#define     DEVICE_PCI_STATE_PCI_EXPANSION_ROM_RETRY_SHIFT 6u
#define     DEVICE_PCI_STATE_PCI_EXPANSION_ROM_RETRY_MASK  0x40u
#define GET_DEVICE_PCI_STATE_PCI_EXPANSION_ROM_RETRY(__reg__)  (((__reg__) & 0x40) >> 6u)
#define SET_DEVICE_PCI_STATE_PCI_EXPANSION_ROM_RETRY(__val__)  (((__val__) << 6u) & 0x40u)
#define     DEVICE_PCI_STATE_VPD_AVAILABLE_SHIFT 7u
#define     DEVICE_PCI_STATE_VPD_AVAILABLE_MASK  0x80u
#define GET_DEVICE_PCI_STATE_VPD_AVAILABLE(__reg__)  (((__reg__) & 0x80) >> 7u)
#define SET_DEVICE_PCI_STATE_VPD_AVAILABLE(__val__)  (((__val__) << 7u) & 0x80u)
#define     DEVICE_PCI_STATE_FLAT_VIEW_SHIFT 8u
#define     DEVICE_PCI_STATE_FLAT_VIEW_MASK  0x100u
#define GET_DEVICE_PCI_STATE_FLAT_VIEW(__reg__)  (((__reg__) & 0x100) >> 8u)
#define SET_DEVICE_PCI_STATE_FLAT_VIEW(__val__)  (((__val__) << 8u) & 0x100u)
#define     DEVICE_PCI_STATE_MAX_PCI_TARGET_RETRY_SHIFT 9u
#define     DEVICE_PCI_STATE_MAX_PCI_TARGET_RETRY_MASK  0xe00u
#define GET_DEVICE_PCI_STATE_MAX_PCI_TARGET_RETRY(__reg__)  (((__reg__) & 0xe00) >> 9u)
#define SET_DEVICE_PCI_STATE_MAX_PCI_TARGET_RETRY(__val__)  (((__val__) << 9u) & 0xe00u)
#define     DEVICE_PCI_STATE_CONFIG_RETRY_SHIFT 15u
#define     DEVICE_PCI_STATE_CONFIG_RETRY_MASK  0x8000u
#define GET_DEVICE_PCI_STATE_CONFIG_RETRY(__reg__)  (((__reg__) & 0x8000) >> 15u)
#define SET_DEVICE_PCI_STATE_CONFIG_RETRY(__val__)  (((__val__) << 15u) & 0x8000u)
#define     DEVICE_PCI_STATE_APE_CONTROL_REGISTER_WRITE_ENABLE_SHIFT 16u
#define     DEVICE_PCI_STATE_APE_CONTROL_REGISTER_WRITE_ENABLE_MASK  0x10000u
#define GET_DEVICE_PCI_STATE_APE_CONTROL_REGISTER_WRITE_ENABLE(__reg__)  (((__reg__) & 0x10000) >> 16u)
#define SET_DEVICE_PCI_STATE_APE_CONTROL_REGISTER_WRITE_ENABLE(__val__)  (((__val__) << 16u) & 0x10000u)
#define     DEVICE_PCI_STATE_APE_SHARED_MEMORY_WRITE_ENABLE_SHIFT 17u
#define     DEVICE_PCI_STATE_APE_SHARED_MEMORY_WRITE_ENABLE_MASK  0x20000u
#define GET_DEVICE_PCI_STATE_APE_SHARED_MEMORY_WRITE_ENABLE(__reg__)  (((__reg__) & 0x20000) >> 17u)
#define SET_DEVICE_PCI_STATE_APE_SHARED_MEMORY_WRITE_ENABLE(__val__)  (((__val__) << 17u) & 0x20000u)
#define     DEVICE_PCI_STATE_APE_PROGRAM_SPACE_WRITE_ENABLE_SHIFT 18u
#define     DEVICE_PCI_STATE_APE_PROGRAM_SPACE_WRITE_ENABLE_MASK  0x40000u
#define GET_DEVICE_PCI_STATE_APE_PROGRAM_SPACE_WRITE_ENABLE(__reg__)  (((__reg__) & 0x40000) >> 18u)
#define SET_DEVICE_PCI_STATE_APE_PROGRAM_SPACE_WRITE_ENABLE(__val__)  (((__val__) << 18u) & 0x40000u)
#define     DEVICE_PCI_STATE_GENERATE_RESET_PLUS_SHIFT 19u
#define     DEVICE_PCI_STATE_GENERATE_RESET_PLUS_MASK  0x80000u
#define GET_DEVICE_PCI_STATE_GENERATE_RESET_PLUS(__reg__)  (((__reg__) & 0x80000) >> 19u)
#define SET_DEVICE_PCI_STATE_GENERATE_RESET_PLUS(__val__)  (((__val__) << 19u) & 0x80000u)

/** @brief Register definition for @ref DEVICE_t.PciState. */
typedef register_container RegDEVICEPciState_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_4_0, 0, 5)
        /** @brief Enable PCI ROM base address register to be visible to the PCI host */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PCIExpansionROMDesired, 5, 1)
        /** @brief Force PCI Retry for accesses to Expansion ROM region if enabled */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PCIExpansionROMRetry, 6, 1)
        /** @brief This bit reads as 1 if the VPD region of the NVRAM can be accessed by the host */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, VPDAvailable, 7, 1)
        /** @brief Asserted if the Base Address register presents a 32 MB PCI Address map flat view, otherwise, indicates a 64 KB PCI Address map in standard view */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, FlatView, 8, 1)
        /** @brief Indicates the number of PCI clock cycles before Retry occurs, in multiple of 8. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MaxPCITargetRetry, 9, 3)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_14_12, 12, 3)
        /** @brief When asserted, forces all config access to be retried. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, ConfigRetry, 15, 1)
        /** @brief When this bit is set the APE control registers may be written. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, APEControlRegisterWriteEnable, 16, 1)
        /** @brief When this bit is set the APE shared memory region may be written. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, APESharedMemoryWriteEnable, 17, 1)
        /** @brief When this bit is set the APE program space may be written. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, APEProgramSpaceWriteEnable, 18, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, GenerateResetPlus, 19, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_20, 20, 12)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_20, 20, 12)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, GenerateResetPlus, 19, 1)
        /** @brief When this bit is set the APE program space may be written. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, APEProgramSpaceWriteEnable, 18, 1)
        /** @brief When this bit is set the APE shared memory region may be written. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, APESharedMemoryWriteEnable, 17, 1)
        /** @brief When this bit is set the APE control registers may be written. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, APEControlRegisterWriteEnable, 16, 1)
        /** @brief When asserted, forces all config access to be retried. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, ConfigRetry, 15, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_14_12, 12, 3)
        /** @brief Indicates the number of PCI clock cycles before Retry occurs, in multiple of 8. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MaxPCITargetRetry, 9, 3)
        /** @brief Asserted if the Base Address register presents a 32 MB PCI Address map flat view, otherwise, indicates a 64 KB PCI Address map in standard view */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, FlatView, 8, 1)
        /** @brief This bit reads as 1 if the VPD region of the NVRAM can be accessed by the host */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, VPDAvailable, 7, 1)
        /** @brief Force PCI Retry for accesses to Expansion ROM region if enabled */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PCIExpansionROMRetry, 6, 1)
        /** @brief Enable PCI ROM base address register to be visible to the PCI host */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PCIExpansionROMDesired, 5, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_4_0, 0, 5)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "PciState"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEPciState_t()
    {
        /** @brief constructor for @ref DEVICE_t.PciState. */
        r32.setName("PciState");
        bits.PCIExpansionROMDesired.setBaseRegister(&r32);
        bits.PCIExpansionROMDesired.setName("PCIExpansionROMDesired");
        bits.PCIExpansionROMRetry.setBaseRegister(&r32);
        bits.PCIExpansionROMRetry.setName("PCIExpansionROMRetry");
        bits.VPDAvailable.setBaseRegister(&r32);
        bits.VPDAvailable.setName("VPDAvailable");
        bits.FlatView.setBaseRegister(&r32);
        bits.FlatView.setName("FlatView");
        bits.MaxPCITargetRetry.setBaseRegister(&r32);
        bits.MaxPCITargetRetry.setName("MaxPCITargetRetry");
        bits.ConfigRetry.setBaseRegister(&r32);
        bits.ConfigRetry.setName("ConfigRetry");
        bits.APEControlRegisterWriteEnable.setBaseRegister(&r32);
        bits.APEControlRegisterWriteEnable.setName("APEControlRegisterWriteEnable");
        bits.APESharedMemoryWriteEnable.setBaseRegister(&r32);
        bits.APESharedMemoryWriteEnable.setName("APESharedMemoryWriteEnable");
        bits.APEProgramSpaceWriteEnable.setBaseRegister(&r32);
        bits.APEProgramSpaceWriteEnable.setName("APEProgramSpaceWriteEnable");
        bits.GenerateResetPlus.setBaseRegister(&r32);
        bits.GenerateResetPlus.setName("GenerateResetPlus");
    }
    RegDEVICEPciState_t& operator=(const RegDEVICEPciState_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEPciState_t;

#define REG_DEVICE_REGISTER_BASE ((volatile APE_DEVICE_H_uint32_t*)0xa0040078) /* Local controller memory address of a register than can be written or read by writing to the register data register. */
/** @brief Register definition for @ref DEVICE_t.RegisterBase. */
typedef register_container RegDEVICERegisterBase_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RegisterBase"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERegisterBase_t()
    {
        /** @brief constructor for @ref DEVICE_t.RegisterBase. */
        r32.setName("RegisterBase");
    }
    RegDEVICERegisterBase_t& operator=(const RegDEVICERegisterBase_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERegisterBase_t;

#define REG_DEVICE_MEMORY_BASE ((volatile APE_DEVICE_H_uint32_t*)0xa004007c) /* Local controller memory address of the NIC memory region that can be accessed via Memory Window data register. */
/** @brief Register definition for @ref DEVICE_t.MemoryBase. */
typedef register_container RegDEVICEMemoryBase_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "MemoryBase"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEMemoryBase_t()
    {
        /** @brief constructor for @ref DEVICE_t.MemoryBase. */
        r32.setName("MemoryBase");
    }
    RegDEVICEMemoryBase_t& operator=(const RegDEVICEMemoryBase_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEMemoryBase_t;

#define REG_DEVICE_REGISTER_DATA ((volatile APE_DEVICE_H_uint32_t*)0xa0040080) /* Register Data at the location pointed by the Register Base Register. */
/** @brief Register definition for @ref DEVICE_t.RegisterData. */
typedef register_container RegDEVICERegisterData_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RegisterData"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERegisterData_t()
    {
        /** @brief constructor for @ref DEVICE_t.RegisterData. */
        r32.setName("RegisterData");
    }
    RegDEVICERegisterData_t& operator=(const RegDEVICERegisterData_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERegisterData_t;

#define REG_DEVICE_UNDI_RECEIVE_RETURN_RING_CONSUMER_INDEX ((volatile APE_DEVICE_H_uint32_t*)0xa0040088) /* UNDI Receive Return Ring Consumer Index Mailbox */
/** @brief Register definition for @ref DEVICE_t.UndiReceiveReturnRingConsumerIndex. */
typedef register_container RegDEVICEUndiReceiveReturnRingConsumerIndex_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "UndiReceiveReturnRingConsumerIndex"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEUndiReceiveReturnRingConsumerIndex_t()
    {
        /** @brief constructor for @ref DEVICE_t.UndiReceiveReturnRingConsumerIndex. */
        r32.setName("UndiReceiveReturnRingConsumerIndex");
    }
    RegDEVICEUndiReceiveReturnRingConsumerIndex_t& operator=(const RegDEVICEUndiReceiveReturnRingConsumerIndex_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEUndiReceiveReturnRingConsumerIndex_t;

#define REG_DEVICE_UNDI_RECEIVE_RETURN_RING_CONSUMER_INDEX_LOW ((volatile APE_DEVICE_H_uint32_t*)0xa004008c) /* UNDI Receive Return Ring Consumer Index Mailbox */
/** @brief Register definition for @ref DEVICE_t.UndiReceiveReturnRingConsumerIndexLow. */
typedef register_container RegDEVICEUndiReceiveReturnRingConsumerIndexLow_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "UndiReceiveReturnRingConsumerIndexLow"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEUndiReceiveReturnRingConsumerIndexLow_t()
    {
        /** @brief constructor for @ref DEVICE_t.UndiReceiveReturnRingConsumerIndexLow. */
        r32.setName("UndiReceiveReturnRingConsumerIndexLow");
    }
    RegDEVICEUndiReceiveReturnRingConsumerIndexLow_t& operator=(const RegDEVICEUndiReceiveReturnRingConsumerIndexLow_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEUndiReceiveReturnRingConsumerIndexLow_t;

#define REG_DEVICE_LINK_STATUS_CONTROL ((volatile APE_DEVICE_H_uint32_t*)0xa00400bc) /* PCIe standard register. */
#define     DEVICE_LINK_STATUS_CONTROL_NEGOTIATED_LINK_SPEED_SHIFT 16u
#define     DEVICE_LINK_STATUS_CONTROL_NEGOTIATED_LINK_SPEED_MASK  0xf0000u
#define GET_DEVICE_LINK_STATUS_CONTROL_NEGOTIATED_LINK_SPEED(__reg__)  (((__reg__) & 0xf0000) >> 16u)
#define SET_DEVICE_LINK_STATUS_CONTROL_NEGOTIATED_LINK_SPEED(__val__)  (((__val__) << 16u) & 0xf0000u)
#define     DEVICE_LINK_STATUS_CONTROL_NEGOTIATED_LINK_SPEED_PCIE_1_0 0x1u
#define     DEVICE_LINK_STATUS_CONTROL_NEGOTIATED_LINK_SPEED_PCIE_2_0 0x2u

#define     DEVICE_LINK_STATUS_CONTROL_NEGOTIATED_LINK_WIDTH_SHIFT 20u
#define     DEVICE_LINK_STATUS_CONTROL_NEGOTIATED_LINK_WIDTH_MASK  0x3f00000u
#define GET_DEVICE_LINK_STATUS_CONTROL_NEGOTIATED_LINK_WIDTH(__reg__)  (((__reg__) & 0x3f00000) >> 20u)
#define SET_DEVICE_LINK_STATUS_CONTROL_NEGOTIATED_LINK_WIDTH(__val__)  (((__val__) << 20u) & 0x3f00000u)

/** @brief Register definition for @ref DEVICE_t.LinkStatusControl. */
typedef register_container RegDEVICELinkStatusControl_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_15_0, 0, 16)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, NegotiatedLinkSpeed, 16, 4)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, NegotiatedLinkWidth, 20, 6)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_26, 26, 6)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_26, 26, 6)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, NegotiatedLinkWidth, 20, 6)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, NegotiatedLinkSpeed, 16, 4)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_15_0, 0, 16)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "LinkStatusControl"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICELinkStatusControl_t()
    {
        /** @brief constructor for @ref DEVICE_t.LinkStatusControl. */
        r32.setName("LinkStatusControl");
        bits.NegotiatedLinkSpeed.setBaseRegister(&r32);
        bits.NegotiatedLinkSpeed.setName("NegotiatedLinkSpeed");
        bits.NegotiatedLinkWidth.setBaseRegister(&r32);
        bits.NegotiatedLinkWidth.setName("NegotiatedLinkWidth");
    }
    RegDEVICELinkStatusControl_t& operator=(const RegDEVICELinkStatusControl_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICELinkStatusControl_t;

#define REG_DEVICE_APE_MEMORY_BASE ((volatile APE_DEVICE_H_uint32_t*)0xa00400f8) /* APE Memory address to read/write using the APE Memory Data register.. */
/** @brief Register definition for @ref DEVICE_t.ApeMemoryBase. */
typedef register_container RegDEVICEApeMemoryBase_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "ApeMemoryBase"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEApeMemoryBase_t()
    {
        /** @brief constructor for @ref DEVICE_t.ApeMemoryBase. */
        r32.setName("ApeMemoryBase");
    }
    RegDEVICEApeMemoryBase_t& operator=(const RegDEVICEApeMemoryBase_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEApeMemoryBase_t;

#define REG_DEVICE_APE_MEMORY_DATA ((volatile APE_DEVICE_H_uint32_t*)0xa00400fc) /* APE Memory value at the location pointed by the Memory Base Register. */
/** @brief Register definition for @ref DEVICE_t.ApeMemoryData. */
typedef register_container RegDEVICEApeMemoryData_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "ApeMemoryData"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEApeMemoryData_t()
    {
        /** @brief constructor for @ref DEVICE_t.ApeMemoryData. */
        r32.setName("ApeMemoryData");
    }
    RegDEVICEApeMemoryData_t& operator=(const RegDEVICEApeMemoryData_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEApeMemoryData_t;

#define REG_DEVICE_EMAC_MODE ((volatile APE_DEVICE_H_uint32_t*)0xa0040400) /*  */
#define     DEVICE_EMAC_MODE_GLOBAL_RESET_SHIFT 0u
#define     DEVICE_EMAC_MODE_GLOBAL_RESET_MASK  0x1u
#define GET_DEVICE_EMAC_MODE_GLOBAL_RESET(__reg__)  (((__reg__) & 0x1) >> 0u)
#define SET_DEVICE_EMAC_MODE_GLOBAL_RESET(__val__)  (((__val__) << 0u) & 0x1u)
#define     DEVICE_EMAC_MODE_HALF_DUPLEX_SHIFT 1u
#define     DEVICE_EMAC_MODE_HALF_DUPLEX_MASK  0x2u
#define GET_DEVICE_EMAC_MODE_HALF_DUPLEX(__reg__)  (((__reg__) & 0x2) >> 1u)
#define SET_DEVICE_EMAC_MODE_HALF_DUPLEX(__val__)  (((__val__) << 1u) & 0x2u)
#define     DEVICE_EMAC_MODE_PORT_MODE_SHIFT 2u
#define     DEVICE_EMAC_MODE_PORT_MODE_MASK  0xcu
#define GET_DEVICE_EMAC_MODE_PORT_MODE(__reg__)  (((__reg__) & 0xc) >> 2u)
#define SET_DEVICE_EMAC_MODE_PORT_MODE(__val__)  (((__val__) << 2u) & 0xcu)
#define     DEVICE_EMAC_MODE_PORT_MODE_NONE 0x0u
#define     DEVICE_EMAC_MODE_PORT_MODE_10_DIV_100 0x1u
#define     DEVICE_EMAC_MODE_PORT_MODE_1000 0x2u
#define     DEVICE_EMAC_MODE_PORT_MODE_TBI 0x3u

#define     DEVICE_EMAC_MODE_LOOPBACK_MODE_SHIFT 4u
#define     DEVICE_EMAC_MODE_LOOPBACK_MODE_MASK  0x10u
#define GET_DEVICE_EMAC_MODE_LOOPBACK_MODE(__reg__)  (((__reg__) & 0x10) >> 4u)
#define SET_DEVICE_EMAC_MODE_LOOPBACK_MODE(__val__)  (((__val__) << 4u) & 0x10u)
#define     DEVICE_EMAC_MODE_TAGGED_MAC_CONTROL_SHIFT 7u
#define     DEVICE_EMAC_MODE_TAGGED_MAC_CONTROL_MASK  0x80u
#define GET_DEVICE_EMAC_MODE_TAGGED_MAC_CONTROL(__reg__)  (((__reg__) & 0x80) >> 7u)
#define SET_DEVICE_EMAC_MODE_TAGGED_MAC_CONTROL(__val__)  (((__val__) << 7u) & 0x80u)
#define     DEVICE_EMAC_MODE_ENABLE_TX_BURSTING_SHIFT 8u
#define     DEVICE_EMAC_MODE_ENABLE_TX_BURSTING_MASK  0x100u
#define GET_DEVICE_EMAC_MODE_ENABLE_TX_BURSTING(__reg__)  (((__reg__) & 0x100) >> 8u)
#define SET_DEVICE_EMAC_MODE_ENABLE_TX_BURSTING(__val__)  (((__val__) << 8u) & 0x100u)
#define     DEVICE_EMAC_MODE_MAX_DEFER_SHIFT 9u
#define     DEVICE_EMAC_MODE_MAX_DEFER_MASK  0x200u
#define GET_DEVICE_EMAC_MODE_MAX_DEFER(__reg__)  (((__reg__) & 0x200) >> 9u)
#define SET_DEVICE_EMAC_MODE_MAX_DEFER(__val__)  (((__val__) << 9u) & 0x200u)
#define     DEVICE_EMAC_MODE_ENABLE_RX_STATISTICS_SHIFT 11u
#define     DEVICE_EMAC_MODE_ENABLE_RX_STATISTICS_MASK  0x800u
#define GET_DEVICE_EMAC_MODE_ENABLE_RX_STATISTICS(__reg__)  (((__reg__) & 0x800) >> 11u)
#define SET_DEVICE_EMAC_MODE_ENABLE_RX_STATISTICS(__val__)  (((__val__) << 11u) & 0x800u)
#define     DEVICE_EMAC_MODE_CLEAR_RX_STATISTICS_SHIFT 12u
#define     DEVICE_EMAC_MODE_CLEAR_RX_STATISTICS_MASK  0x1000u
#define GET_DEVICE_EMAC_MODE_CLEAR_RX_STATISTICS(__reg__)  (((__reg__) & 0x1000) >> 12u)
#define SET_DEVICE_EMAC_MODE_CLEAR_RX_STATISTICS(__val__)  (((__val__) << 12u) & 0x1000u)
#define     DEVICE_EMAC_MODE_FLUSH_RX_STATISTICS_SHIFT 13u
#define     DEVICE_EMAC_MODE_FLUSH_RX_STATISTICS_MASK  0x2000u
#define GET_DEVICE_EMAC_MODE_FLUSH_RX_STATISTICS(__reg__)  (((__reg__) & 0x2000) >> 13u)
#define SET_DEVICE_EMAC_MODE_FLUSH_RX_STATISTICS(__val__)  (((__val__) << 13u) & 0x2000u)
#define     DEVICE_EMAC_MODE_ENABLE_TX_STATISTICS_SHIFT 14u
#define     DEVICE_EMAC_MODE_ENABLE_TX_STATISTICS_MASK  0x4000u
#define GET_DEVICE_EMAC_MODE_ENABLE_TX_STATISTICS(__reg__)  (((__reg__) & 0x4000) >> 14u)
#define SET_DEVICE_EMAC_MODE_ENABLE_TX_STATISTICS(__val__)  (((__val__) << 14u) & 0x4000u)
#define     DEVICE_EMAC_MODE_CLEAR_TX_STATISTICS_SHIFT 15u
#define     DEVICE_EMAC_MODE_CLEAR_TX_STATISTICS_MASK  0x8000u
#define GET_DEVICE_EMAC_MODE_CLEAR_TX_STATISTICS(__reg__)  (((__reg__) & 0x8000) >> 15u)
#define SET_DEVICE_EMAC_MODE_CLEAR_TX_STATISTICS(__val__)  (((__val__) << 15u) & 0x8000u)
#define     DEVICE_EMAC_MODE_FLUSH_TX_STATISTICS_SHIFT 16u
#define     DEVICE_EMAC_MODE_FLUSH_TX_STATISTICS_MASK  0x10000u
#define GET_DEVICE_EMAC_MODE_FLUSH_TX_STATISTICS(__reg__)  (((__reg__) & 0x10000) >> 16u)
#define SET_DEVICE_EMAC_MODE_FLUSH_TX_STATISTICS(__val__)  (((__val__) << 16u) & 0x10000u)
#define     DEVICE_EMAC_MODE_SEND_CONFIG_COMMAND_SHIFT 17u
#define     DEVICE_EMAC_MODE_SEND_CONFIG_COMMAND_MASK  0x20000u
#define GET_DEVICE_EMAC_MODE_SEND_CONFIG_COMMAND(__reg__)  (((__reg__) & 0x20000) >> 17u)
#define SET_DEVICE_EMAC_MODE_SEND_CONFIG_COMMAND(__val__)  (((__val__) << 17u) & 0x20000u)
#define     DEVICE_EMAC_MODE_MAGIC_PACKET_DETECTION_ENABLE_SHIFT 18u
#define     DEVICE_EMAC_MODE_MAGIC_PACKET_DETECTION_ENABLE_MASK  0x40000u
#define GET_DEVICE_EMAC_MODE_MAGIC_PACKET_DETECTION_ENABLE(__reg__)  (((__reg__) & 0x40000) >> 18u)
#define SET_DEVICE_EMAC_MODE_MAGIC_PACKET_DETECTION_ENABLE(__val__)  (((__val__) << 18u) & 0x40000u)
#define     DEVICE_EMAC_MODE_ACPI_POWER_ON_ENABLE_SHIFT 19u
#define     DEVICE_EMAC_MODE_ACPI_POWER_ON_ENABLE_MASK  0x80000u
#define GET_DEVICE_EMAC_MODE_ACPI_POWER_ON_ENABLE(__reg__)  (((__reg__) & 0x80000) >> 19u)
#define SET_DEVICE_EMAC_MODE_ACPI_POWER_ON_ENABLE(__val__)  (((__val__) << 19u) & 0x80000u)
#define     DEVICE_EMAC_MODE_ENABLE_TCE_SHIFT 21u
#define     DEVICE_EMAC_MODE_ENABLE_TCE_MASK  0x200000u
#define GET_DEVICE_EMAC_MODE_ENABLE_TCE(__reg__)  (((__reg__) & 0x200000) >> 21u)
#define SET_DEVICE_EMAC_MODE_ENABLE_TCE(__val__)  (((__val__) << 21u) & 0x200000u)
#define     DEVICE_EMAC_MODE_ENABLE_RDE_SHIFT 22u
#define     DEVICE_EMAC_MODE_ENABLE_RDE_MASK  0x400000u
#define GET_DEVICE_EMAC_MODE_ENABLE_RDE(__reg__)  (((__reg__) & 0x400000) >> 22u)
#define SET_DEVICE_EMAC_MODE_ENABLE_RDE(__val__)  (((__val__) << 22u) & 0x400000u)
#define     DEVICE_EMAC_MODE_ENABLE_FHDE_SHIFT 23u
#define     DEVICE_EMAC_MODE_ENABLE_FHDE_MASK  0x800000u
#define GET_DEVICE_EMAC_MODE_ENABLE_FHDE(__reg__)  (((__reg__) & 0x800000) >> 23u)
#define SET_DEVICE_EMAC_MODE_ENABLE_FHDE(__val__)  (((__val__) << 23u) & 0x800000u)
#define     DEVICE_EMAC_MODE_KEEP_FRAME_IN_WOL_SHIFT 24u
#define     DEVICE_EMAC_MODE_KEEP_FRAME_IN_WOL_MASK  0x1000000u
#define GET_DEVICE_EMAC_MODE_KEEP_FRAME_IN_WOL(__reg__)  (((__reg__) & 0x1000000) >> 24u)
#define SET_DEVICE_EMAC_MODE_KEEP_FRAME_IN_WOL(__val__)  (((__val__) << 24u) & 0x1000000u)
#define     DEVICE_EMAC_MODE_HALT_INTERESTING_PACKET_PME_SHIFT 25u
#define     DEVICE_EMAC_MODE_HALT_INTERESTING_PACKET_PME_MASK  0x2000000u
#define GET_DEVICE_EMAC_MODE_HALT_INTERESTING_PACKET_PME(__reg__)  (((__reg__) & 0x2000000) >> 25u)
#define SET_DEVICE_EMAC_MODE_HALT_INTERESTING_PACKET_PME(__val__)  (((__val__) << 25u) & 0x2000000u)
#define     DEVICE_EMAC_MODE_FREE_RUNNING_ACPI_SHIFT 26u
#define     DEVICE_EMAC_MODE_FREE_RUNNING_ACPI_MASK  0x4000000u
#define GET_DEVICE_EMAC_MODE_FREE_RUNNING_ACPI(__reg__)  (((__reg__) & 0x4000000) >> 26u)
#define SET_DEVICE_EMAC_MODE_FREE_RUNNING_ACPI(__val__)  (((__val__) << 26u) & 0x4000000u)
#define     DEVICE_EMAC_MODE_ENABLE_APE_RX_PATH_SHIFT 27u
#define     DEVICE_EMAC_MODE_ENABLE_APE_RX_PATH_MASK  0x8000000u
#define GET_DEVICE_EMAC_MODE_ENABLE_APE_RX_PATH(__reg__)  (((__reg__) & 0x8000000) >> 27u)
#define SET_DEVICE_EMAC_MODE_ENABLE_APE_RX_PATH(__val__)  (((__val__) << 27u) & 0x8000000u)
#define     DEVICE_EMAC_MODE_ENABLE_APE_TX_PATH_SHIFT 28u
#define     DEVICE_EMAC_MODE_ENABLE_APE_TX_PATH_MASK  0x10000000u
#define GET_DEVICE_EMAC_MODE_ENABLE_APE_TX_PATH(__reg__)  (((__reg__) & 0x10000000) >> 28u)
#define SET_DEVICE_EMAC_MODE_ENABLE_APE_TX_PATH(__val__)  (((__val__) << 28u) & 0x10000000u)
#define     DEVICE_EMAC_MODE_MAC_LOOPBACK_MODE_CONTROL_SHIFT 29u
#define     DEVICE_EMAC_MODE_MAC_LOOPBACK_MODE_CONTROL_MASK  0x20000000u
#define GET_DEVICE_EMAC_MODE_MAC_LOOPBACK_MODE_CONTROL(__reg__)  (((__reg__) & 0x20000000) >> 29u)
#define SET_DEVICE_EMAC_MODE_MAC_LOOPBACK_MODE_CONTROL(__val__)  (((__val__) << 29u) & 0x20000000u)

/** @brief Register definition for @ref DEVICE_t.EmacMode. */
typedef register_container RegDEVICEEmacMode_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief When this bit is set to 1, the MAC state machine is reset. This is a self-clearing bit. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, GlobalReset, 0, 1)
        /** @brief When set, the MII/GMII interface is configured to operate in half-duplex mode and the CSMA/ CD state machines in the MAC are set to half-duplex mode. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, HalfDuplex, 1, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PortMode, 2, 2)
        /** @brief When set, an internal loopback path is enabled from the transmit MAC to the receive MAC. This bit is provided for diagnostic purposes only. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LoopbackMode, 4, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_6_5, 5, 2)
        /** @brief Allow the MAC to receive tagged MAC control packets. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, TaggedMACControl, 7, 1)
        /** @brief Enable transmit bursting in gigabit half-duplex mode. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableTXBursting, 8, 1)
        /** @brief Enable Max Deferral checking statistic. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MaxDefer, 9, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_10_10, 10, 1)
        /** @brief Enable receive statistics external updates. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableRXStatistics, 11, 1)
        /** @brief Clear receive statistics internal RAM. This bit is self-clearing. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, ClearRXStatistics, 12, 1)
        /** @brief Write receive statistics to external memory. This bit is self-clearing. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, FlushRXStatistics, 13, 1)
        /** @brief Enable transmit statistics external updates. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableTXStatistics, 14, 1)
        /** @brief Clear transmit statistics internal RAM. This bit is self-clearing. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, ClearTXStatistics, 15, 1)
        /** @brief Write transmit statistics to external memory. This bit is self-clearing. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, FlushTXStatistics, 16, 1)
        /** @brief Send config commands when in TBI mode. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, SendConfigCommand, 17, 1)
        /** @brief Enable Magic Packet detection. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MagicPacketDetectionEnable, 18, 1)
        /** @brief Enable Wake on LAN filters when in powerdown mode. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, ACPIPowerOnEnable, 19, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_20_20, 20, 1)
        /** @brief Enable Transmit DMA engine. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableTCE, 21, 1)
        /** @brief Enable RDMA engine. Must be set for normal operation. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableRDE, 22, 1)
        /** @brief Enable receive Frame Header DMA engine. Must be set for normal operation. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableFHDE, 23, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, KeepFrameInWOL, 24, 1)
        /** @brief When this bit is set, the WOL signal will not be asserted on an interesting packet match. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, HaltInterestingPacketPME, 25, 1)
        /** @brief When this bit is set, the ACPI state machine will continue running when a match is found. When this bit is clear, the ACPI state machine will halt when a match is found. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Free_RunningACPI, 26, 1)
        /** @brief This bit must be written a 1 for APE subsystem to receive packets from the EMAC. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableAPERXPath, 27, 1)
        /** @brief This bit must be written a 1 for the EMAC to transmit APE packets. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableAPETXPath, 28, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MACLoopbackModeControl, 29, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_30, 30, 2)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_30, 30, 2)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MACLoopbackModeControl, 29, 1)
        /** @brief This bit must be written a 1 for the EMAC to transmit APE packets. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableAPETXPath, 28, 1)
        /** @brief This bit must be written a 1 for APE subsystem to receive packets from the EMAC. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableAPERXPath, 27, 1)
        /** @brief When this bit is set, the ACPI state machine will continue running when a match is found. When this bit is clear, the ACPI state machine will halt when a match is found. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Free_RunningACPI, 26, 1)
        /** @brief When this bit is set, the WOL signal will not be asserted on an interesting packet match. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, HaltInterestingPacketPME, 25, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, KeepFrameInWOL, 24, 1)
        /** @brief Enable receive Frame Header DMA engine. Must be set for normal operation. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableFHDE, 23, 1)
        /** @brief Enable RDMA engine. Must be set for normal operation. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableRDE, 22, 1)
        /** @brief Enable Transmit DMA engine. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableTCE, 21, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_20_20, 20, 1)
        /** @brief Enable Wake on LAN filters when in powerdown mode. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, ACPIPowerOnEnable, 19, 1)
        /** @brief Enable Magic Packet detection. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MagicPacketDetectionEnable, 18, 1)
        /** @brief Send config commands when in TBI mode. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, SendConfigCommand, 17, 1)
        /** @brief Write transmit statistics to external memory. This bit is self-clearing. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, FlushTXStatistics, 16, 1)
        /** @brief Clear transmit statistics internal RAM. This bit is self-clearing. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, ClearTXStatistics, 15, 1)
        /** @brief Enable transmit statistics external updates. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableTXStatistics, 14, 1)
        /** @brief Write receive statistics to external memory. This bit is self-clearing. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, FlushRXStatistics, 13, 1)
        /** @brief Clear receive statistics internal RAM. This bit is self-clearing. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, ClearRXStatistics, 12, 1)
        /** @brief Enable receive statistics external updates. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableRXStatistics, 11, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_10_10, 10, 1)
        /** @brief Enable Max Deferral checking statistic. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MaxDefer, 9, 1)
        /** @brief Enable transmit bursting in gigabit half-duplex mode. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableTXBursting, 8, 1)
        /** @brief Allow the MAC to receive tagged MAC control packets. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, TaggedMACControl, 7, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_6_5, 5, 2)
        /** @brief When set, an internal loopback path is enabled from the transmit MAC to the receive MAC. This bit is provided for diagnostic purposes only. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LoopbackMode, 4, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PortMode, 2, 2)
        /** @brief When set, the MII/GMII interface is configured to operate in half-duplex mode and the CSMA/ CD state machines in the MAC are set to half-duplex mode. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, HalfDuplex, 1, 1)
        /** @brief When this bit is set to 1, the MAC state machine is reset. This is a self-clearing bit. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, GlobalReset, 0, 1)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "EmacMode"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEEmacMode_t()
    {
        /** @brief constructor for @ref DEVICE_t.EmacMode. */
        r32.setName("EmacMode");
        bits.GlobalReset.setBaseRegister(&r32);
        bits.GlobalReset.setName("GlobalReset");
        bits.HalfDuplex.setBaseRegister(&r32);
        bits.HalfDuplex.setName("HalfDuplex");
        bits.PortMode.setBaseRegister(&r32);
        bits.PortMode.setName("PortMode");
        bits.LoopbackMode.setBaseRegister(&r32);
        bits.LoopbackMode.setName("LoopbackMode");
        bits.TaggedMACControl.setBaseRegister(&r32);
        bits.TaggedMACControl.setName("TaggedMACControl");
        bits.EnableTXBursting.setBaseRegister(&r32);
        bits.EnableTXBursting.setName("EnableTXBursting");
        bits.MaxDefer.setBaseRegister(&r32);
        bits.MaxDefer.setName("MaxDefer");
        bits.EnableRXStatistics.setBaseRegister(&r32);
        bits.EnableRXStatistics.setName("EnableRXStatistics");
        bits.ClearRXStatistics.setBaseRegister(&r32);
        bits.ClearRXStatistics.setName("ClearRXStatistics");
        bits.FlushRXStatistics.setBaseRegister(&r32);
        bits.FlushRXStatistics.setName("FlushRXStatistics");
        bits.EnableTXStatistics.setBaseRegister(&r32);
        bits.EnableTXStatistics.setName("EnableTXStatistics");
        bits.ClearTXStatistics.setBaseRegister(&r32);
        bits.ClearTXStatistics.setName("ClearTXStatistics");
        bits.FlushTXStatistics.setBaseRegister(&r32);
        bits.FlushTXStatistics.setName("FlushTXStatistics");
        bits.SendConfigCommand.setBaseRegister(&r32);
        bits.SendConfigCommand.setName("SendConfigCommand");
        bits.MagicPacketDetectionEnable.setBaseRegister(&r32);
        bits.MagicPacketDetectionEnable.setName("MagicPacketDetectionEnable");
        bits.ACPIPowerOnEnable.setBaseRegister(&r32);
        bits.ACPIPowerOnEnable.setName("ACPIPowerOnEnable");
        bits.EnableTCE.setBaseRegister(&r32);
        bits.EnableTCE.setName("EnableTCE");
        bits.EnableRDE.setBaseRegister(&r32);
        bits.EnableRDE.setName("EnableRDE");
        bits.EnableFHDE.setBaseRegister(&r32);
        bits.EnableFHDE.setName("EnableFHDE");
        bits.KeepFrameInWOL.setBaseRegister(&r32);
        bits.KeepFrameInWOL.setName("KeepFrameInWOL");
        bits.HaltInterestingPacketPME.setBaseRegister(&r32);
        bits.HaltInterestingPacketPME.setName("HaltInterestingPacketPME");
        bits.Free_RunningACPI.setBaseRegister(&r32);
        bits.Free_RunningACPI.setName("Free_RunningACPI");
        bits.EnableAPERXPath.setBaseRegister(&r32);
        bits.EnableAPERXPath.setName("EnableAPERXPath");
        bits.EnableAPETXPath.setBaseRegister(&r32);
        bits.EnableAPETXPath.setName("EnableAPETXPath");
        bits.MACLoopbackModeControl.setBaseRegister(&r32);
        bits.MACLoopbackModeControl.setName("MACLoopbackModeControl");
    }
    RegDEVICEEmacMode_t& operator=(const RegDEVICEEmacMode_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEEmacMode_t;

#define REG_DEVICE_LED_CONTROL ((volatile APE_DEVICE_H_uint32_t*)0xa004040c) /*  */
#define     DEVICE_LED_CONTROL_OVERRIDE_LINK_SHIFT 0u
#define     DEVICE_LED_CONTROL_OVERRIDE_LINK_MASK  0x1u
#define GET_DEVICE_LED_CONTROL_OVERRIDE_LINK(__reg__)  (((__reg__) & 0x1) >> 0u)
#define SET_DEVICE_LED_CONTROL_OVERRIDE_LINK(__val__)  (((__val__) << 0u) & 0x1u)
#define     DEVICE_LED_CONTROL_LED_1000_SHIFT 1u
#define     DEVICE_LED_CONTROL_LED_1000_MASK  0x2u
#define GET_DEVICE_LED_CONTROL_LED_1000(__reg__)  (((__reg__) & 0x2) >> 1u)
#define SET_DEVICE_LED_CONTROL_LED_1000(__val__)  (((__val__) << 1u) & 0x2u)
#define     DEVICE_LED_CONTROL_LED_100_SHIFT 2u
#define     DEVICE_LED_CONTROL_LED_100_MASK  0x4u
#define GET_DEVICE_LED_CONTROL_LED_100(__reg__)  (((__reg__) & 0x4) >> 2u)
#define SET_DEVICE_LED_CONTROL_LED_100(__val__)  (((__val__) << 2u) & 0x4u)
#define     DEVICE_LED_CONTROL_LED_10_SHIFT 3u
#define     DEVICE_LED_CONTROL_LED_10_MASK  0x8u
#define GET_DEVICE_LED_CONTROL_LED_10(__reg__)  (((__reg__) & 0x8) >> 3u)
#define SET_DEVICE_LED_CONTROL_LED_10(__val__)  (((__val__) << 3u) & 0x8u)
#define     DEVICE_LED_CONTROL_OVERRIDE_TRAFFIC_SHIFT 4u
#define     DEVICE_LED_CONTROL_OVERRIDE_TRAFFIC_MASK  0x10u
#define GET_DEVICE_LED_CONTROL_OVERRIDE_TRAFFIC(__reg__)  (((__reg__) & 0x10) >> 4u)
#define SET_DEVICE_LED_CONTROL_OVERRIDE_TRAFFIC(__val__)  (((__val__) << 4u) & 0x10u)
#define     DEVICE_LED_CONTROL_LED_TRAFFIC_BLINK_SHIFT 5u
#define     DEVICE_LED_CONTROL_LED_TRAFFIC_BLINK_MASK  0x20u
#define GET_DEVICE_LED_CONTROL_LED_TRAFFIC_BLINK(__reg__)  (((__reg__) & 0x20) >> 5u)
#define SET_DEVICE_LED_CONTROL_LED_TRAFFIC_BLINK(__val__)  (((__val__) << 5u) & 0x20u)
#define     DEVICE_LED_CONTROL_LED_TRAFFIC_SHIFT 6u
#define     DEVICE_LED_CONTROL_LED_TRAFFIC_MASK  0x40u
#define GET_DEVICE_LED_CONTROL_LED_TRAFFIC(__reg__)  (((__reg__) & 0x40) >> 6u)
#define SET_DEVICE_LED_CONTROL_LED_TRAFFIC(__val__)  (((__val__) << 6u) & 0x40u)
#define     DEVICE_LED_CONTROL_LED_STATUS_1000_SHIFT 7u
#define     DEVICE_LED_CONTROL_LED_STATUS_1000_MASK  0x80u
#define GET_DEVICE_LED_CONTROL_LED_STATUS_1000(__reg__)  (((__reg__) & 0x80) >> 7u)
#define SET_DEVICE_LED_CONTROL_LED_STATUS_1000(__val__)  (((__val__) << 7u) & 0x80u)
#define     DEVICE_LED_CONTROL_LED_STATUS_100_SHIFT 8u
#define     DEVICE_LED_CONTROL_LED_STATUS_100_MASK  0x100u
#define GET_DEVICE_LED_CONTROL_LED_STATUS_100(__reg__)  (((__reg__) & 0x100) >> 8u)
#define SET_DEVICE_LED_CONTROL_LED_STATUS_100(__val__)  (((__val__) << 8u) & 0x100u)
#define     DEVICE_LED_CONTROL_LED_STATUS_10_SHIFT 9u
#define     DEVICE_LED_CONTROL_LED_STATUS_10_MASK  0x200u
#define GET_DEVICE_LED_CONTROL_LED_STATUS_10(__reg__)  (((__reg__) & 0x200) >> 9u)
#define SET_DEVICE_LED_CONTROL_LED_STATUS_10(__val__)  (((__val__) << 9u) & 0x200u)
#define     DEVICE_LED_CONTROL_LED_STATUS_TRAFFIC_SHIFT 10u
#define     DEVICE_LED_CONTROL_LED_STATUS_TRAFFIC_MASK  0x400u
#define GET_DEVICE_LED_CONTROL_LED_STATUS_TRAFFIC(__reg__)  (((__reg__) & 0x400) >> 10u)
#define SET_DEVICE_LED_CONTROL_LED_STATUS_TRAFFIC(__val__)  (((__val__) << 10u) & 0x400u)
#define     DEVICE_LED_CONTROL_LED_MODE_SHIFT 11u
#define     DEVICE_LED_CONTROL_LED_MODE_MASK  0x1800u
#define GET_DEVICE_LED_CONTROL_LED_MODE(__reg__)  (((__reg__) & 0x1800) >> 11u)
#define SET_DEVICE_LED_CONTROL_LED_MODE(__val__)  (((__val__) << 11u) & 0x1800u)
#define     DEVICE_LED_CONTROL_LED_MODE_MAC 0x0u
#define     DEVICE_LED_CONTROL_LED_MODE_PHY_MODE_1 0x1u
#define     DEVICE_LED_CONTROL_LED_MODE_PHY_MODE_2 0x2u
#define     DEVICE_LED_CONTROL_LED_MODE_PHY_MODE_1_ 0x3u

#define     DEVICE_LED_CONTROL_MAC_MODE_SHIFT 13u
#define     DEVICE_LED_CONTROL_MAC_MODE_MASK  0x2000u
#define GET_DEVICE_LED_CONTROL_MAC_MODE(__reg__)  (((__reg__) & 0x2000) >> 13u)
#define SET_DEVICE_LED_CONTROL_MAC_MODE(__val__)  (((__val__) << 13u) & 0x2000u)
#define     DEVICE_LED_CONTROL_SHARED_TRAFFIC_DIV_LINK_LED_MODE_SHIFT 14u
#define     DEVICE_LED_CONTROL_SHARED_TRAFFIC_DIV_LINK_LED_MODE_MASK  0x4000u
#define GET_DEVICE_LED_CONTROL_SHARED_TRAFFIC_DIV_LINK_LED_MODE(__reg__)  (((__reg__) & 0x4000) >> 14u)
#define SET_DEVICE_LED_CONTROL_SHARED_TRAFFIC_DIV_LINK_LED_MODE(__val__)  (((__val__) << 14u) & 0x4000u)
#define     DEVICE_LED_CONTROL_BLINK_PERIOD_SHIFT 19u
#define     DEVICE_LED_CONTROL_BLINK_PERIOD_MASK  0x7ff80000u
#define GET_DEVICE_LED_CONTROL_BLINK_PERIOD(__reg__)  (((__reg__) & 0x7ff80000) >> 19u)
#define SET_DEVICE_LED_CONTROL_BLINK_PERIOD(__val__)  (((__val__) << 19u) & 0x7ff80000u)
#define     DEVICE_LED_CONTROL_OVERRIDE_BLINK_RATE_SHIFT 31u
#define     DEVICE_LED_CONTROL_OVERRIDE_BLINK_RATE_MASK  0x80000000u
#define GET_DEVICE_LED_CONTROL_OVERRIDE_BLINK_RATE(__reg__)  (((__reg__) & 0x80000000) >> 31u)
#define SET_DEVICE_LED_CONTROL_OVERRIDE_BLINK_RATE(__val__)  (((__val__) << 31u) & 0x80000000u)

/** @brief Register definition for @ref DEVICE_t.LedControl. */
typedef register_container RegDEVICELedControl_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief If set, overrides hardware control of the three link LEDs. The LEDs will be controlled via bits [3:1]. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, OverrideLink, 0, 1)
        /** @brief If set along with the LED Override bit, turns on the 1000 Mbps LED. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LED1000, 1, 1)
        /** @brief If set along with the LED Override bit, turns on the 100 Mbps LED. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LED100, 2, 1)
        /** @brief If set along with the LED Override bit, turns on the 10 Mbps LED. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LED10, 3, 1)
        /** @brief If set, overrides hardware control of the Traffic LED. The Traffic LED will then be controlled via bits [6:5]. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, OverrideTraffic, 4, 1)
        /** @brief If set along with the Override Traffic bit and Traffic LED bit, the Traffic LED will blink with the blink rate specified in Override Blink Rate (bit 31) and Blink Period (bits [30:19]) fields. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LEDTrafficBlink, 5, 1)
        /** @brief If set along with the Override Traffic bit, the Traffic LED is turned on. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LEDTraffic, 6, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LEDStatus1000, 7, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LEDStatus100, 8, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LEDStatus10, 9, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LEDStatusTraffic, 10, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LEDMode, 11, 2)
        /** @brief When this bit is set, the traffic LED blinks only when traffic is addressed for the device (The LED_MODE field must be set to 00 before enabling this bit). */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MACMode, 13, 1)
        /** @brief When this bit is set, the Link LED is solid green when there is a link and blinks when there is traffic. (The LED_MODE field must be set to 00 before enabling this bit). */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, SharedTraffic_DIV_LinkLEDMode, 14, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_18_15, 15, 4)
        /** @brief Specifies the period of each blink cycle (on+off) for Traffic LED in milliseconds. Must be a nonzero value. This 12-bit field is reset to 0x040, giving a default blink period of approximately 15.9Hz. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, BlinkPeriod, 19, 12)
        /** @brief If set, the blink rate for the Traffic LED is determined by the Blink Period field (bit 30 to bit 19). This bit is rest to 1. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, OverrideBlinkRate, 31, 1)
#elif defined(__BIG_ENDIAN__)
        /** @brief If set, the blink rate for the Traffic LED is determined by the Blink Period field (bit 30 to bit 19). This bit is rest to 1. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, OverrideBlinkRate, 31, 1)
        /** @brief Specifies the period of each blink cycle (on+off) for Traffic LED in milliseconds. Must be a nonzero value. This 12-bit field is reset to 0x040, giving a default blink period of approximately 15.9Hz. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, BlinkPeriod, 19, 12)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_18_15, 15, 4)
        /** @brief When this bit is set, the Link LED is solid green when there is a link and blinks when there is traffic. (The LED_MODE field must be set to 00 before enabling this bit). */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, SharedTraffic_DIV_LinkLEDMode, 14, 1)
        /** @brief When this bit is set, the traffic LED blinks only when traffic is addressed for the device (The LED_MODE field must be set to 00 before enabling this bit). */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MACMode, 13, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LEDMode, 11, 2)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LEDStatusTraffic, 10, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LEDStatus10, 9, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LEDStatus100, 8, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LEDStatus1000, 7, 1)
        /** @brief If set along with the Override Traffic bit, the Traffic LED is turned on. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LEDTraffic, 6, 1)
        /** @brief If set along with the Override Traffic bit and Traffic LED bit, the Traffic LED will blink with the blink rate specified in Override Blink Rate (bit 31) and Blink Period (bits [30:19]) fields. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LEDTrafficBlink, 5, 1)
        /** @brief If set, overrides hardware control of the Traffic LED. The Traffic LED will then be controlled via bits [6:5]. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, OverrideTraffic, 4, 1)
        /** @brief If set along with the LED Override bit, turns on the 10 Mbps LED. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LED10, 3, 1)
        /** @brief If set along with the LED Override bit, turns on the 100 Mbps LED. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LED100, 2, 1)
        /** @brief If set along with the LED Override bit, turns on the 1000 Mbps LED. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LED1000, 1, 1)
        /** @brief If set, overrides hardware control of the three link LEDs. The LEDs will be controlled via bits [3:1]. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, OverrideLink, 0, 1)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "LedControl"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICELedControl_t()
    {
        /** @brief constructor for @ref DEVICE_t.LedControl. */
        r32.setName("LedControl");
        bits.OverrideLink.setBaseRegister(&r32);
        bits.OverrideLink.setName("OverrideLink");
        bits.LED1000.setBaseRegister(&r32);
        bits.LED1000.setName("LED1000");
        bits.LED100.setBaseRegister(&r32);
        bits.LED100.setName("LED100");
        bits.LED10.setBaseRegister(&r32);
        bits.LED10.setName("LED10");
        bits.OverrideTraffic.setBaseRegister(&r32);
        bits.OverrideTraffic.setName("OverrideTraffic");
        bits.LEDTrafficBlink.setBaseRegister(&r32);
        bits.LEDTrafficBlink.setName("LEDTrafficBlink");
        bits.LEDTraffic.setBaseRegister(&r32);
        bits.LEDTraffic.setName("LEDTraffic");
        bits.LEDStatus1000.setBaseRegister(&r32);
        bits.LEDStatus1000.setName("LEDStatus1000");
        bits.LEDStatus100.setBaseRegister(&r32);
        bits.LEDStatus100.setName("LEDStatus100");
        bits.LEDStatus10.setBaseRegister(&r32);
        bits.LEDStatus10.setName("LEDStatus10");
        bits.LEDStatusTraffic.setBaseRegister(&r32);
        bits.LEDStatusTraffic.setName("LEDStatusTraffic");
        bits.LEDMode.setBaseRegister(&r32);
        bits.LEDMode.setName("LEDMode");
        bits.MACMode.setBaseRegister(&r32);
        bits.MACMode.setName("MACMode");
        bits.SharedTraffic_DIV_LinkLEDMode.setBaseRegister(&r32);
        bits.SharedTraffic_DIV_LinkLEDMode.setName("SharedTraffic_DIV_LinkLEDMode");
        bits.BlinkPeriod.setBaseRegister(&r32);
        bits.BlinkPeriod.setName("BlinkPeriod");
        bits.OverrideBlinkRate.setBaseRegister(&r32);
        bits.OverrideBlinkRate.setName("OverrideBlinkRate");
    }
    RegDEVICELedControl_t& operator=(const RegDEVICELedControl_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICELedControl_t;

#define REG_DEVICE_EMAC_MAC_ADDRESSES_0_HIGH ((volatile APE_DEVICE_H_uint32_t*)0xa0040410) /* Upper 2-bytes of this node's MAC address. */
/** @brief Register definition for @ref DEVICE_t.EmacMacAddresses0High. */
typedef register_container RegDEVICEEmacMacAddresses0High_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "EmacMacAddresses0High"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEEmacMacAddresses0High_t()
    {
        /** @brief constructor for @ref DEVICE_t.EmacMacAddresses0High. */
        r32.setName("EmacMacAddresses0High");
    }
    RegDEVICEEmacMacAddresses0High_t& operator=(const RegDEVICEEmacMacAddresses0High_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEEmacMacAddresses0High_t;

#define REG_DEVICE_EMAC_MAC_ADDRESSES_0_LOW ((volatile APE_DEVICE_H_uint32_t*)0xa0040414) /* Lower 4-byte of this node's MAC address. */
/** @brief Register definition for @ref DEVICE_t.EmacMacAddresses0Low. */
typedef register_container RegDEVICEEmacMacAddresses0Low_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "EmacMacAddresses0Low"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEEmacMacAddresses0Low_t()
    {
        /** @brief constructor for @ref DEVICE_t.EmacMacAddresses0Low. */
        r32.setName("EmacMacAddresses0Low");
    }
    RegDEVICEEmacMacAddresses0Low_t& operator=(const RegDEVICEEmacMacAddresses0Low_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEEmacMacAddresses0Low_t;

#define REG_DEVICE_EMAC_MAC_ADDRESSES_1_HIGH ((volatile APE_DEVICE_H_uint32_t*)0xa0040418) /* Upper 2-bytes of this node's MAC address. */
/** @brief Register definition for @ref DEVICE_t.EmacMacAddresses1High. */
typedef register_container RegDEVICEEmacMacAddresses1High_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "EmacMacAddresses1High"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEEmacMacAddresses1High_t()
    {
        /** @brief constructor for @ref DEVICE_t.EmacMacAddresses1High. */
        r32.setName("EmacMacAddresses1High");
    }
    RegDEVICEEmacMacAddresses1High_t& operator=(const RegDEVICEEmacMacAddresses1High_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEEmacMacAddresses1High_t;

#define REG_DEVICE_EMAC_MAC_ADDRESSES_1_LOW ((volatile APE_DEVICE_H_uint32_t*)0xa004041c) /* Lower 4-byte of this node's MAC address. */
/** @brief Register definition for @ref DEVICE_t.EmacMacAddresses1Low. */
typedef register_container RegDEVICEEmacMacAddresses1Low_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "EmacMacAddresses1Low"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEEmacMacAddresses1Low_t()
    {
        /** @brief constructor for @ref DEVICE_t.EmacMacAddresses1Low. */
        r32.setName("EmacMacAddresses1Low");
    }
    RegDEVICEEmacMacAddresses1Low_t& operator=(const RegDEVICEEmacMacAddresses1Low_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEEmacMacAddresses1Low_t;

#define REG_DEVICE_EMAC_MAC_ADDRESSES_2_HIGH ((volatile APE_DEVICE_H_uint32_t*)0xa0040420) /* Upper 2-bytes of this node's MAC address. */
/** @brief Register definition for @ref DEVICE_t.EmacMacAddresses2High. */
typedef register_container RegDEVICEEmacMacAddresses2High_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "EmacMacAddresses2High"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEEmacMacAddresses2High_t()
    {
        /** @brief constructor for @ref DEVICE_t.EmacMacAddresses2High. */
        r32.setName("EmacMacAddresses2High");
    }
    RegDEVICEEmacMacAddresses2High_t& operator=(const RegDEVICEEmacMacAddresses2High_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEEmacMacAddresses2High_t;

#define REG_DEVICE_EMAC_MAC_ADDRESSES_2_LOW ((volatile APE_DEVICE_H_uint32_t*)0xa0040424) /* Lower 4-byte of this node's MAC address. */
/** @brief Register definition for @ref DEVICE_t.EmacMacAddresses2Low. */
typedef register_container RegDEVICEEmacMacAddresses2Low_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "EmacMacAddresses2Low"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEEmacMacAddresses2Low_t()
    {
        /** @brief constructor for @ref DEVICE_t.EmacMacAddresses2Low. */
        r32.setName("EmacMacAddresses2Low");
    }
    RegDEVICEEmacMacAddresses2Low_t& operator=(const RegDEVICEEmacMacAddresses2Low_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEEmacMacAddresses2Low_t;

#define REG_DEVICE_EMAC_MAC_ADDRESSES_3_HIGH ((volatile APE_DEVICE_H_uint32_t*)0xa0040428) /* Upper 2-bytes of this node's MAC address. */
/** @brief Register definition for @ref DEVICE_t.EmacMacAddresses3High. */
typedef register_container RegDEVICEEmacMacAddresses3High_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "EmacMacAddresses3High"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEEmacMacAddresses3High_t()
    {
        /** @brief constructor for @ref DEVICE_t.EmacMacAddresses3High. */
        r32.setName("EmacMacAddresses3High");
    }
    RegDEVICEEmacMacAddresses3High_t& operator=(const RegDEVICEEmacMacAddresses3High_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEEmacMacAddresses3High_t;

#define REG_DEVICE_EMAC_MAC_ADDRESSES_3_LOW ((volatile APE_DEVICE_H_uint32_t*)0xa004042c) /* Lower 4-byte of this node's MAC address. */
/** @brief Register definition for @ref DEVICE_t.EmacMacAddresses3Low. */
typedef register_container RegDEVICEEmacMacAddresses3Low_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "EmacMacAddresses3Low"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEEmacMacAddresses3Low_t()
    {
        /** @brief constructor for @ref DEVICE_t.EmacMacAddresses3Low. */
        r32.setName("EmacMacAddresses3Low");
    }
    RegDEVICEEmacMacAddresses3Low_t& operator=(const RegDEVICEEmacMacAddresses3Low_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEEmacMacAddresses3Low_t;

#define REG_DEVICE_WOL_PATTERN_POINTER ((volatile APE_DEVICE_H_uint32_t*)0xa0040430) /* Specifies the offset into the 6KB BD memory for frame comparison. (Bits 3:0 are ignored to align the memory address to a natural 128-bit boundary). */
/** @brief Register definition for @ref DEVICE_t.WolPatternPointer. */
typedef register_container RegDEVICEWolPatternPointer_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "WolPatternPointer"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEWolPatternPointer_t()
    {
        /** @brief constructor for @ref DEVICE_t.WolPatternPointer. */
        r32.setName("WolPatternPointer");
    }
    RegDEVICEWolPatternPointer_t& operator=(const RegDEVICEWolPatternPointer_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEWolPatternPointer_t;

#define REG_DEVICE_WOL_PATTERN_CFG ((volatile APE_DEVICE_H_uint32_t*)0xa0040434) /*  */
/** @brief Register definition for @ref DEVICE_t.WolPatternCfg. */
typedef register_container RegDEVICEWolPatternCfg_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "WolPatternCfg"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEWolPatternCfg_t()
    {
        /** @brief constructor for @ref DEVICE_t.WolPatternCfg. */
        r32.setName("WolPatternCfg");
    }
    RegDEVICEWolPatternCfg_t& operator=(const RegDEVICEWolPatternCfg_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEWolPatternCfg_t;

#define REG_DEVICE_MTU_SIZE ((volatile APE_DEVICE_H_uint32_t*)0xa004043c) /* 2-byte field which is the largest size frame that will be accepted without being marked as oversize. */
#define     DEVICE_MTU_SIZE_MTU_SHIFT 0u
#define     DEVICE_MTU_SIZE_MTU_MASK  0xffffu
#define GET_DEVICE_MTU_SIZE_MTU(__reg__)  (((__reg__) & 0xffff) >> 0u)
#define SET_DEVICE_MTU_SIZE_MTU(__val__)  (((__val__) << 0u) & 0xffffu)

/** @brief Register definition for @ref DEVICE_t.MtuSize. */
typedef register_container RegDEVICEMtuSize_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief 2-byte field which is the largest size frame that will be accepted without being marked as oversize. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MTU, 0, 16)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_16, 16, 16)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_16, 16, 16)
        /** @brief 2-byte field which is the largest size frame that will be accepted without being marked as oversize. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MTU, 0, 16)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "MtuSize"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEMtuSize_t()
    {
        /** @brief constructor for @ref DEVICE_t.MtuSize. */
        r32.setName("MtuSize");
        bits.MTU.setBaseRegister(&r32);
        bits.MTU.setName("MTU");
    }
    RegDEVICEMtuSize_t& operator=(const RegDEVICEMtuSize_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEMtuSize_t;

#define REG_DEVICE_MII_COMMUNICATION ((volatile APE_DEVICE_H_uint32_t*)0xa004044c) /*  */
#define     DEVICE_MII_COMMUNICATION_TRANSACTION_DATA_SHIFT 0u
#define     DEVICE_MII_COMMUNICATION_TRANSACTION_DATA_MASK  0xffffu
#define GET_DEVICE_MII_COMMUNICATION_TRANSACTION_DATA(__reg__)  (((__reg__) & 0xffff) >> 0u)
#define SET_DEVICE_MII_COMMUNICATION_TRANSACTION_DATA(__val__)  (((__val__) << 0u) & 0xffffu)
#define     DEVICE_MII_COMMUNICATION_REGISTER_ADDRESS_SHIFT 16u
#define     DEVICE_MII_COMMUNICATION_REGISTER_ADDRESS_MASK  0x1f0000u
#define GET_DEVICE_MII_COMMUNICATION_REGISTER_ADDRESS(__reg__)  (((__reg__) & 0x1f0000) >> 16u)
#define SET_DEVICE_MII_COMMUNICATION_REGISTER_ADDRESS(__val__)  (((__val__) << 16u) & 0x1f0000u)
#define     DEVICE_MII_COMMUNICATION_PHY_ADDRESS_SHIFT 21u
#define     DEVICE_MII_COMMUNICATION_PHY_ADDRESS_MASK  0x3e00000u
#define GET_DEVICE_MII_COMMUNICATION_PHY_ADDRESS(__reg__)  (((__reg__) & 0x3e00000) >> 21u)
#define SET_DEVICE_MII_COMMUNICATION_PHY_ADDRESS(__val__)  (((__val__) << 21u) & 0x3e00000u)
#define     DEVICE_MII_COMMUNICATION_PHY_ADDRESS_PHY_0 0x1u
#define     DEVICE_MII_COMMUNICATION_PHY_ADDRESS_PHY_1 0x2u
#define     DEVICE_MII_COMMUNICATION_PHY_ADDRESS_PHY_2 0x3u
#define     DEVICE_MII_COMMUNICATION_PHY_ADDRESS_PHY_3 0x4u
#define     DEVICE_MII_COMMUNICATION_PHY_ADDRESS_SGMII_0 0x8u
#define     DEVICE_MII_COMMUNICATION_PHY_ADDRESS_SGMII_1 0x9u
#define     DEVICE_MII_COMMUNICATION_PHY_ADDRESS_SGMII_2 0xau
#define     DEVICE_MII_COMMUNICATION_PHY_ADDRESS_SGMII_3 0xbu

#define     DEVICE_MII_COMMUNICATION_COMMAND_SHIFT 26u
#define     DEVICE_MII_COMMUNICATION_COMMAND_MASK  0xc000000u
#define GET_DEVICE_MII_COMMUNICATION_COMMAND(__reg__)  (((__reg__) & 0xc000000) >> 26u)
#define SET_DEVICE_MII_COMMUNICATION_COMMAND(__val__)  (((__val__) << 26u) & 0xc000000u)
#define     DEVICE_MII_COMMUNICATION_COMMAND_WRITE 0x1u
#define     DEVICE_MII_COMMUNICATION_COMMAND_READ 0x2u

#define     DEVICE_MII_COMMUNICATION_READ_FAILED_SHIFT 28u
#define     DEVICE_MII_COMMUNICATION_READ_FAILED_MASK  0x10000000u
#define GET_DEVICE_MII_COMMUNICATION_READ_FAILED(__reg__)  (((__reg__) & 0x10000000) >> 28u)
#define SET_DEVICE_MII_COMMUNICATION_READ_FAILED(__val__)  (((__val__) << 28u) & 0x10000000u)
#define     DEVICE_MII_COMMUNICATION_START_DIV_BUSY_SHIFT 29u
#define     DEVICE_MII_COMMUNICATION_START_DIV_BUSY_MASK  0x20000000u
#define GET_DEVICE_MII_COMMUNICATION_START_DIV_BUSY(__reg__)  (((__reg__) & 0x20000000) >> 29u)
#define SET_DEVICE_MII_COMMUNICATION_START_DIV_BUSY(__val__)  (((__val__) << 29u) & 0x20000000u)

/** @brief Register definition for @ref DEVICE_t.MiiCommunication. */
typedef register_container RegDEVICEMiiCommunication_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief When configured for a write command, the data stored at this location is written to the PHY at the specified PHY and register address. During a read command, the data returned by the PHY is stored at this location. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, TransactionData, 0, 16)
        /** @brief Address of the register to be read or written. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, RegisterAddress, 16, 5)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PHYAddress, 21, 5)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Command, 26, 2)
        /** @brief When set, the transceiver device did not drive the bus during the attempted read transaction. Valid after the Start/Busy bit is cleared. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, ReadFailed, 28, 1)
        /** @brief Set this bit to start a transaction. While it is high, it indicates that the current transaction is still ongoing. If enabled, generates an attention via EMAC Status Register MI Completion bit (bit 22). */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Start_DIV_Busy, 29, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_30, 30, 2)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_30, 30, 2)
        /** @brief Set this bit to start a transaction. While it is high, it indicates that the current transaction is still ongoing. If enabled, generates an attention via EMAC Status Register MI Completion bit (bit 22). */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Start_DIV_Busy, 29, 1)
        /** @brief When set, the transceiver device did not drive the bus during the attempted read transaction. Valid after the Start/Busy bit is cleared. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, ReadFailed, 28, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Command, 26, 2)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PHYAddress, 21, 5)
        /** @brief Address of the register to be read or written. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, RegisterAddress, 16, 5)
        /** @brief When configured for a write command, the data stored at this location is written to the PHY at the specified PHY and register address. During a read command, the data returned by the PHY is stored at this location. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, TransactionData, 0, 16)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "MiiCommunication"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEMiiCommunication_t()
    {
        /** @brief constructor for @ref DEVICE_t.MiiCommunication. */
        r32.setName("MiiCommunication");
        bits.TransactionData.setBaseRegister(&r32);
        bits.TransactionData.setName("TransactionData");
        bits.RegisterAddress.setBaseRegister(&r32);
        bits.RegisterAddress.setName("RegisterAddress");
        bits.PHYAddress.setBaseRegister(&r32);
        bits.PHYAddress.setName("PHYAddress");
        bits.Command.setBaseRegister(&r32);
        bits.Command.setName("Command");
        bits.ReadFailed.setBaseRegister(&r32);
        bits.ReadFailed.setName("ReadFailed");
        bits.Start_DIV_Busy.setBaseRegister(&r32);
        bits.Start_DIV_Busy.setName("Start_DIV_Busy");
    }
    RegDEVICEMiiCommunication_t& operator=(const RegDEVICEMiiCommunication_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEMiiCommunication_t;

#define REG_DEVICE_MII_MODE ((volatile APE_DEVICE_H_uint32_t*)0xa0040454) /*  */
#define     DEVICE_MII_MODE_PHY_ADDRESS_SHIFT 5u
#define     DEVICE_MII_MODE_PHY_ADDRESS_MASK  0x3e0u
#define GET_DEVICE_MII_MODE_PHY_ADDRESS(__reg__)  (((__reg__) & 0x3e0) >> 5u)
#define SET_DEVICE_MII_MODE_PHY_ADDRESS(__val__)  (((__val__) << 5u) & 0x3e0u)
#define     DEVICE_MII_MODE_CONSTANT_MDIO_DIV_MDC_CLOCK_SPEED_SHIFT 15u
#define     DEVICE_MII_MODE_CONSTANT_MDIO_DIV_MDC_CLOCK_SPEED_MASK  0x8000u
#define GET_DEVICE_MII_MODE_CONSTANT_MDIO_DIV_MDC_CLOCK_SPEED(__reg__)  (((__reg__) & 0x8000) >> 15u)
#define SET_DEVICE_MII_MODE_CONSTANT_MDIO_DIV_MDC_CLOCK_SPEED(__val__)  (((__val__) << 15u) & 0x8000u)
#define     DEVICE_MII_MODE_MII_CLOCK_COUNT_SHIFT 16u
#define     DEVICE_MII_MODE_MII_CLOCK_COUNT_MASK  0x1f0000u
#define GET_DEVICE_MII_MODE_MII_CLOCK_COUNT(__reg__)  (((__reg__) & 0x1f0000) >> 16u)
#define SET_DEVICE_MII_MODE_MII_CLOCK_COUNT(__val__)  (((__val__) << 16u) & 0x1f0000u)

/** @brief Register definition for @ref DEVICE_t.MiiMode. */
typedef register_container RegDEVICEMiiMode_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_4_0, 0, 5)
        /** @brief This field specifies the PHY Address. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PHYAddress, 5, 5)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_14_10, 10, 5)
        /** @brief Enable ~500Khz constant MII management interface (MDIO/MDC) frequency regardless core clock frequency. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, ConstantMDIO_DIV_MDCClockSpeed, 15, 1)
        /** @brief Counter to divide CORE_CLK (62.5 MHz) to generate the MI clock. CORE_CLK/2/(MII Clock Count + 1). */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MIIClockCount, 16, 5)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_21, 21, 11)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_21, 21, 11)
        /** @brief Counter to divide CORE_CLK (62.5 MHz) to generate the MI clock. CORE_CLK/2/(MII Clock Count + 1). */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MIIClockCount, 16, 5)
        /** @brief Enable ~500Khz constant MII management interface (MDIO/MDC) frequency regardless core clock frequency. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, ConstantMDIO_DIV_MDCClockSpeed, 15, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_14_10, 10, 5)
        /** @brief This field specifies the PHY Address. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PHYAddress, 5, 5)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_4_0, 0, 5)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "MiiMode"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEMiiMode_t()
    {
        /** @brief constructor for @ref DEVICE_t.MiiMode. */
        r32.setName("MiiMode");
        bits.PHYAddress.setBaseRegister(&r32);
        bits.PHYAddress.setName("PHYAddress");
        bits.ConstantMDIO_DIV_MDCClockSpeed.setBaseRegister(&r32);
        bits.ConstantMDIO_DIV_MDCClockSpeed.setName("ConstantMDIO_DIV_MDCClockSpeed");
        bits.MIIClockCount.setBaseRegister(&r32);
        bits.MIIClockCount.setName("MIIClockCount");
    }
    RegDEVICEMiiMode_t& operator=(const RegDEVICEMiiMode_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEMiiMode_t;

#define REG_DEVICE_TRANSMIT_MAC_MODE ((volatile APE_DEVICE_H_uint32_t*)0xa004045c) /*  */
#define     DEVICE_TRANSMIT_MAC_MODE_RESET_SHIFT 0u
#define     DEVICE_TRANSMIT_MAC_MODE_RESET_MASK  0x1u
#define GET_DEVICE_TRANSMIT_MAC_MODE_RESET(__reg__)  (((__reg__) & 0x1) >> 0u)
#define SET_DEVICE_TRANSMIT_MAC_MODE_RESET(__val__)  (((__val__) << 0u) & 0x1u)
#define     DEVICE_TRANSMIT_MAC_MODE_ENABLE_TCE_SHIFT 1u
#define     DEVICE_TRANSMIT_MAC_MODE_ENABLE_TCE_MASK  0x2u
#define GET_DEVICE_TRANSMIT_MAC_MODE_ENABLE_TCE(__reg__)  (((__reg__) & 0x2) >> 1u)
#define SET_DEVICE_TRANSMIT_MAC_MODE_ENABLE_TCE(__val__)  (((__val__) << 1u) & 0x2u)
#define     DEVICE_TRANSMIT_MAC_MODE_ENABLE_FLOW_CONTROL_SHIFT 4u
#define     DEVICE_TRANSMIT_MAC_MODE_ENABLE_FLOW_CONTROL_MASK  0x10u
#define GET_DEVICE_TRANSMIT_MAC_MODE_ENABLE_FLOW_CONTROL(__reg__)  (((__reg__) & 0x10) >> 4u)
#define SET_DEVICE_TRANSMIT_MAC_MODE_ENABLE_FLOW_CONTROL(__val__)  (((__val__) << 4u) & 0x10u)
#define     DEVICE_TRANSMIT_MAC_MODE_ENABLE_BIG_BACKOFF_SHIFT 5u
#define     DEVICE_TRANSMIT_MAC_MODE_ENABLE_BIG_BACKOFF_MASK  0x20u
#define GET_DEVICE_TRANSMIT_MAC_MODE_ENABLE_BIG_BACKOFF(__reg__)  (((__reg__) & 0x20) >> 5u)
#define SET_DEVICE_TRANSMIT_MAC_MODE_ENABLE_BIG_BACKOFF(__val__)  (((__val__) << 5u) & 0x20u)
#define     DEVICE_TRANSMIT_MAC_MODE_ENABLE_LONG_PAUSE_SHIFT 6u
#define     DEVICE_TRANSMIT_MAC_MODE_ENABLE_LONG_PAUSE_MASK  0x40u
#define GET_DEVICE_TRANSMIT_MAC_MODE_ENABLE_LONG_PAUSE(__reg__)  (((__reg__) & 0x40) >> 6u)
#define SET_DEVICE_TRANSMIT_MAC_MODE_ENABLE_LONG_PAUSE(__val__)  (((__val__) << 6u) & 0x40u)
#define     DEVICE_TRANSMIT_MAC_MODE_LINK_AWARE_ENABLE_SHIFT 7u
#define     DEVICE_TRANSMIT_MAC_MODE_LINK_AWARE_ENABLE_MASK  0x80u
#define GET_DEVICE_TRANSMIT_MAC_MODE_LINK_AWARE_ENABLE(__reg__)  (((__reg__) & 0x80) >> 7u)
#define SET_DEVICE_TRANSMIT_MAC_MODE_LINK_AWARE_ENABLE(__val__)  (((__val__) << 7u) & 0x80u)
#define     DEVICE_TRANSMIT_MAC_MODE_TXMBUF_CORRUPTION_LOCKUP_FIX_ENABLE_SHIFT 8u
#define     DEVICE_TRANSMIT_MAC_MODE_TXMBUF_CORRUPTION_LOCKUP_FIX_ENABLE_MASK  0x100u
#define GET_DEVICE_TRANSMIT_MAC_MODE_TXMBUF_CORRUPTION_LOCKUP_FIX_ENABLE(__reg__)  (((__reg__) & 0x100) >> 8u)
#define SET_DEVICE_TRANSMIT_MAC_MODE_TXMBUF_CORRUPTION_LOCKUP_FIX_ENABLE(__val__)  (((__val__) << 8u) & 0x100u)
#define     DEVICE_TRANSMIT_MAC_MODE_ENABLE_TX_ESP_OFFLOAD_SHIFT 9u
#define     DEVICE_TRANSMIT_MAC_MODE_ENABLE_TX_ESP_OFFLOAD_MASK  0x200u
#define GET_DEVICE_TRANSMIT_MAC_MODE_ENABLE_TX_ESP_OFFLOAD(__reg__)  (((__reg__) & 0x200) >> 9u)
#define SET_DEVICE_TRANSMIT_MAC_MODE_ENABLE_TX_ESP_OFFLOAD(__val__)  (((__val__) << 9u) & 0x200u)
#define     DEVICE_TRANSMIT_MAC_MODE_ENABLE_TX_AH_OFFLOAD_SHIFT 10u
#define     DEVICE_TRANSMIT_MAC_MODE_ENABLE_TX_AH_OFFLOAD_MASK  0x400u
#define GET_DEVICE_TRANSMIT_MAC_MODE_ENABLE_TX_AH_OFFLOAD(__reg__)  (((__reg__) & 0x400) >> 10u)
#define SET_DEVICE_TRANSMIT_MAC_MODE_ENABLE_TX_AH_OFFLOAD(__val__)  (((__val__) << 10u) & 0x400u)

/** @brief Register definition for @ref DEVICE_t.TransmitMacMode. */
typedef register_container RegDEVICETransmitMacMode_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief When this bit is set to 1, the Transmit MAC state machine will be reset. This is a self-clearing bit. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Reset, 0, 1)
        /** @brief Used to be enable TDE in legacy-same purpose. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableTCE, 1, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_3_2, 2, 2)
        /** @brief MAC will send 802.3x flow control frames. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableFlowControl, 4, 1)
        /** @brief MAC will use larger than normal back-off algorithm. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableBigBackoff, 5, 1)
        /** @brief When set, the Pause time value set in the transmitted PAUSE frames is 0xFFFF. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableLongPause, 6, 1)
        /** @brief When set, transmission of packets by the MAC is enabled only when link is up. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LinkAwareEnable, 7, 1)
        /** @brief When set, TXMBUF corruption lockup fix is enabled. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, TxMBUFCorruptionLockupFixEnable, 8, 1)
        /** @brief A value 1 enables the TX ESP offload feature. When 0, offloaded ESP packet gets dropped. This value must be static. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableTXESPOffload, 9, 1)
        /** @brief A value 1 enables the TX AH offload feature. When 0, offloaded AH packet gets dropped. This value must be static. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableTXAHOffload, 10, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_11, 11, 21)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_11, 11, 21)
        /** @brief A value 1 enables the TX AH offload feature. When 0, offloaded AH packet gets dropped. This value must be static. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableTXAHOffload, 10, 1)
        /** @brief A value 1 enables the TX ESP offload feature. When 0, offloaded ESP packet gets dropped. This value must be static. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableTXESPOffload, 9, 1)
        /** @brief When set, TXMBUF corruption lockup fix is enabled. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, TxMBUFCorruptionLockupFixEnable, 8, 1)
        /** @brief When set, transmission of packets by the MAC is enabled only when link is up. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LinkAwareEnable, 7, 1)
        /** @brief When set, the Pause time value set in the transmitted PAUSE frames is 0xFFFF. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableLongPause, 6, 1)
        /** @brief MAC will use larger than normal back-off algorithm. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableBigBackoff, 5, 1)
        /** @brief MAC will send 802.3x flow control frames. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableFlowControl, 4, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_3_2, 2, 2)
        /** @brief Used to be enable TDE in legacy-same purpose. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableTCE, 1, 1)
        /** @brief When this bit is set to 1, the Transmit MAC state machine will be reset. This is a self-clearing bit. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Reset, 0, 1)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "TransmitMacMode"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICETransmitMacMode_t()
    {
        /** @brief constructor for @ref DEVICE_t.TransmitMacMode. */
        r32.setName("TransmitMacMode");
        bits.Reset.setBaseRegister(&r32);
        bits.Reset.setName("Reset");
        bits.EnableTCE.setBaseRegister(&r32);
        bits.EnableTCE.setName("EnableTCE");
        bits.EnableFlowControl.setBaseRegister(&r32);
        bits.EnableFlowControl.setName("EnableFlowControl");
        bits.EnableBigBackoff.setBaseRegister(&r32);
        bits.EnableBigBackoff.setName("EnableBigBackoff");
        bits.EnableLongPause.setBaseRegister(&r32);
        bits.EnableLongPause.setName("EnableLongPause");
        bits.LinkAwareEnable.setBaseRegister(&r32);
        bits.LinkAwareEnable.setName("LinkAwareEnable");
        bits.TxMBUFCorruptionLockupFixEnable.setBaseRegister(&r32);
        bits.TxMBUFCorruptionLockupFixEnable.setName("TxMBUFCorruptionLockupFixEnable");
        bits.EnableTXESPOffload.setBaseRegister(&r32);
        bits.EnableTXESPOffload.setName("EnableTXESPOffload");
        bits.EnableTXAHOffload.setBaseRegister(&r32);
        bits.EnableTXAHOffload.setName("EnableTXAHOffload");
    }
    RegDEVICETransmitMacMode_t& operator=(const RegDEVICETransmitMacMode_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICETransmitMacMode_t;

#define REG_DEVICE_RECEIVE_MAC_MODE ((volatile APE_DEVICE_H_uint32_t*)0xa0040468) /*  */
#define     DEVICE_RECEIVE_MAC_MODE_RESET_SHIFT 0u
#define     DEVICE_RECEIVE_MAC_MODE_RESET_MASK  0x1u
#define GET_DEVICE_RECEIVE_MAC_MODE_RESET(__reg__)  (((__reg__) & 0x1) >> 0u)
#define SET_DEVICE_RECEIVE_MAC_MODE_RESET(__val__)  (((__val__) << 0u) & 0x1u)
#define     DEVICE_RECEIVE_MAC_MODE_ENABLE_SHIFT 1u
#define     DEVICE_RECEIVE_MAC_MODE_ENABLE_MASK  0x2u
#define GET_DEVICE_RECEIVE_MAC_MODE_ENABLE(__reg__)  (((__reg__) & 0x2) >> 1u)
#define SET_DEVICE_RECEIVE_MAC_MODE_ENABLE(__val__)  (((__val__) << 1u) & 0x2u)
#define     DEVICE_RECEIVE_MAC_MODE_PROMISCUOUS_MODE_SHIFT 8u
#define     DEVICE_RECEIVE_MAC_MODE_PROMISCUOUS_MODE_MASK  0x100u
#define GET_DEVICE_RECEIVE_MAC_MODE_PROMISCUOUS_MODE(__reg__)  (((__reg__) & 0x100) >> 8u)
#define SET_DEVICE_RECEIVE_MAC_MODE_PROMISCUOUS_MODE(__val__)  (((__val__) << 8u) & 0x100u)
#define     DEVICE_RECEIVE_MAC_MODE_APE_PROMISCUOUS_MODE_SHIFT 25u
#define     DEVICE_RECEIVE_MAC_MODE_APE_PROMISCUOUS_MODE_MASK  0x2000000u
#define GET_DEVICE_RECEIVE_MAC_MODE_APE_PROMISCUOUS_MODE(__reg__)  (((__reg__) & 0x2000000) >> 25u)
#define SET_DEVICE_RECEIVE_MAC_MODE_APE_PROMISCUOUS_MODE(__val__)  (((__val__) << 25u) & 0x2000000u)

/** @brief Register definition for @ref DEVICE_t.ReceiveMacMode. */
typedef register_container RegDEVICEReceiveMacMode_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief When this bit is set to 1, the Receive MAC state machine will be reset. This is a self-clearing bit. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Reset, 0, 1)
        /** @brief This bit controls whether the Receive MAC state machine is active or not. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Enable, 1, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_7_2, 2, 6)
        /** @brief When set, no source address or MC hashing checking will be performed on incoming frames. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PromiscuousMode, 8, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_24_9, 9, 16)
        /** @brief When set, no source address or MC hashing checking will be performed on incoming frames on APE filter path. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, APEPromiscuousMode, 25, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_26, 26, 6)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_26, 26, 6)
        /** @brief When set, no source address or MC hashing checking will be performed on incoming frames on APE filter path. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, APEPromiscuousMode, 25, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_24_9, 9, 16)
        /** @brief When set, no source address or MC hashing checking will be performed on incoming frames. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PromiscuousMode, 8, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_7_2, 2, 6)
        /** @brief This bit controls whether the Receive MAC state machine is active or not. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Enable, 1, 1)
        /** @brief When this bit is set to 1, the Receive MAC state machine will be reset. This is a self-clearing bit. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Reset, 0, 1)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "ReceiveMacMode"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEReceiveMacMode_t()
    {
        /** @brief constructor for @ref DEVICE_t.ReceiveMacMode. */
        r32.setName("ReceiveMacMode");
        bits.Reset.setBaseRegister(&r32);
        bits.Reset.setName("Reset");
        bits.Enable.setBaseRegister(&r32);
        bits.Enable.setName("Enable");
        bits.PromiscuousMode.setBaseRegister(&r32);
        bits.PromiscuousMode.setName("PromiscuousMode");
        bits.APEPromiscuousMode.setBaseRegister(&r32);
        bits.APEPromiscuousMode.setName("APEPromiscuousMode");
    }
    RegDEVICEReceiveMacMode_t& operator=(const RegDEVICEReceiveMacMode_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEReceiveMacMode_t;

#define REG_DEVICE_PERFECT_MATCH1_HIGH ((volatile APE_DEVICE_H_uint32_t*)0xa0040540) /*  */
#define     DEVICE_PERFECT_MATCH1_HIGH_HIGH_SHIFT 0u
#define     DEVICE_PERFECT_MATCH1_HIGH_HIGH_MASK  0xffffu
#define GET_DEVICE_PERFECT_MATCH1_HIGH_HIGH(__reg__)  (((__reg__) & 0xffff) >> 0u)
#define SET_DEVICE_PERFECT_MATCH1_HIGH_HIGH(__val__)  (((__val__) << 0u) & 0xffffu)

/** @brief Register definition for @ref DEVICE_t.PerfectMatch1High. */
typedef register_container RegDEVICEPerfectMatch1High_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Upper two bytes of the MAC */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, High, 0, 16)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_16, 16, 16)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_16, 16, 16)
        /** @brief Upper two bytes of the MAC */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, High, 0, 16)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "PerfectMatch1High"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEPerfectMatch1High_t()
    {
        /** @brief constructor for @ref DEVICE_t.PerfectMatch1High. */
        r32.setName("PerfectMatch1High");
        bits.High.setBaseRegister(&r32);
        bits.High.setName("High");
    }
    RegDEVICEPerfectMatch1High_t& operator=(const RegDEVICEPerfectMatch1High_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEPerfectMatch1High_t;

#define REG_DEVICE_PERFECT_MATCH1_LOW ((volatile APE_DEVICE_H_uint32_t*)0xa0040544) /*  */
#define     DEVICE_PERFECT_MATCH1_LOW_LOW_SHIFT 0u
#define     DEVICE_PERFECT_MATCH1_LOW_LOW_MASK  0xffffffffu
#define GET_DEVICE_PERFECT_MATCH1_LOW_LOW(__reg__)  (((__reg__) & 0xffffffff) >> 0u)
#define SET_DEVICE_PERFECT_MATCH1_LOW_LOW(__val__)  (((__val__) << 0u) & 0xffffffffu)

/** @brief Register definition for @ref DEVICE_t.PerfectMatch1Low. */
typedef register_container RegDEVICEPerfectMatch1Low_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Lower four bytes of the MAC */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Low, 0, 32)
#elif defined(__BIG_ENDIAN__)
        /** @brief Lower four bytes of the MAC */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Low, 0, 32)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "PerfectMatch1Low"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEPerfectMatch1Low_t()
    {
        /** @brief constructor for @ref DEVICE_t.PerfectMatch1Low. */
        r32.setName("PerfectMatch1Low");
        bits.Low.setBaseRegister(&r32);
        bits.Low.setName("Low");
    }
    RegDEVICEPerfectMatch1Low_t& operator=(const RegDEVICEPerfectMatch1Low_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEPerfectMatch1Low_t;

#define REG_DEVICE_PERFECT_MATCH2_HIGH ((volatile APE_DEVICE_H_uint32_t*)0xa0040548) /*  */
#define     DEVICE_PERFECT_MATCH2_HIGH_HIGH_SHIFT 0u
#define     DEVICE_PERFECT_MATCH2_HIGH_HIGH_MASK  0xffffu
#define GET_DEVICE_PERFECT_MATCH2_HIGH_HIGH(__reg__)  (((__reg__) & 0xffff) >> 0u)
#define SET_DEVICE_PERFECT_MATCH2_HIGH_HIGH(__val__)  (((__val__) << 0u) & 0xffffu)

/** @brief Register definition for @ref DEVICE_t.PerfectMatch2High. */
typedef register_container RegDEVICEPerfectMatch2High_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Upper two bytes of the MAC */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, High, 0, 16)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_16, 16, 16)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_16, 16, 16)
        /** @brief Upper two bytes of the MAC */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, High, 0, 16)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "PerfectMatch2High"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEPerfectMatch2High_t()
    {
        /** @brief constructor for @ref DEVICE_t.PerfectMatch2High. */
        r32.setName("PerfectMatch2High");
        bits.High.setBaseRegister(&r32);
        bits.High.setName("High");
    }
    RegDEVICEPerfectMatch2High_t& operator=(const RegDEVICEPerfectMatch2High_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEPerfectMatch2High_t;

#define REG_DEVICE_PERFECT_MATCH2_LOW ((volatile APE_DEVICE_H_uint32_t*)0xa004054c) /*  */
#define     DEVICE_PERFECT_MATCH2_LOW_LOW_SHIFT 0u
#define     DEVICE_PERFECT_MATCH2_LOW_LOW_MASK  0xffffffffu
#define GET_DEVICE_PERFECT_MATCH2_LOW_LOW(__reg__)  (((__reg__) & 0xffffffff) >> 0u)
#define SET_DEVICE_PERFECT_MATCH2_LOW_LOW(__val__)  (((__val__) << 0u) & 0xffffffffu)

/** @brief Register definition for @ref DEVICE_t.PerfectMatch2Low. */
typedef register_container RegDEVICEPerfectMatch2Low_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Lower four bytes of the MAC */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Low, 0, 32)
#elif defined(__BIG_ENDIAN__)
        /** @brief Lower four bytes of the MAC */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Low, 0, 32)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "PerfectMatch2Low"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEPerfectMatch2Low_t()
    {
        /** @brief constructor for @ref DEVICE_t.PerfectMatch2Low. */
        r32.setName("PerfectMatch2Low");
        bits.Low.setBaseRegister(&r32);
        bits.Low.setName("Low");
    }
    RegDEVICEPerfectMatch2Low_t& operator=(const RegDEVICEPerfectMatch2Low_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEPerfectMatch2Low_t;

#define REG_DEVICE_PERFECT_MATCH3_HIGH ((volatile APE_DEVICE_H_uint32_t*)0xa0040550) /*  */
#define     DEVICE_PERFECT_MATCH3_HIGH_HIGH_SHIFT 0u
#define     DEVICE_PERFECT_MATCH3_HIGH_HIGH_MASK  0xffffu
#define GET_DEVICE_PERFECT_MATCH3_HIGH_HIGH(__reg__)  (((__reg__) & 0xffff) >> 0u)
#define SET_DEVICE_PERFECT_MATCH3_HIGH_HIGH(__val__)  (((__val__) << 0u) & 0xffffu)

/** @brief Register definition for @ref DEVICE_t.PerfectMatch3High. */
typedef register_container RegDEVICEPerfectMatch3High_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Upper two bytes of the MAC */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, High, 0, 16)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_16, 16, 16)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_16, 16, 16)
        /** @brief Upper two bytes of the MAC */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, High, 0, 16)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "PerfectMatch3High"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEPerfectMatch3High_t()
    {
        /** @brief constructor for @ref DEVICE_t.PerfectMatch3High. */
        r32.setName("PerfectMatch3High");
        bits.High.setBaseRegister(&r32);
        bits.High.setName("High");
    }
    RegDEVICEPerfectMatch3High_t& operator=(const RegDEVICEPerfectMatch3High_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEPerfectMatch3High_t;

#define REG_DEVICE_PERFECT_MATCH3_LOW ((volatile APE_DEVICE_H_uint32_t*)0xa0040554) /*  */
#define     DEVICE_PERFECT_MATCH3_LOW_LOW_SHIFT 0u
#define     DEVICE_PERFECT_MATCH3_LOW_LOW_MASK  0xffffffffu
#define GET_DEVICE_PERFECT_MATCH3_LOW_LOW(__reg__)  (((__reg__) & 0xffffffff) >> 0u)
#define SET_DEVICE_PERFECT_MATCH3_LOW_LOW(__val__)  (((__val__) << 0u) & 0xffffffffu)

/** @brief Register definition for @ref DEVICE_t.PerfectMatch3Low. */
typedef register_container RegDEVICEPerfectMatch3Low_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Lower four bytes of the MAC */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Low, 0, 32)
#elif defined(__BIG_ENDIAN__)
        /** @brief Lower four bytes of the MAC */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Low, 0, 32)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "PerfectMatch3Low"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEPerfectMatch3Low_t()
    {
        /** @brief constructor for @ref DEVICE_t.PerfectMatch3Low. */
        r32.setName("PerfectMatch3Low");
        bits.Low.setBaseRegister(&r32);
        bits.Low.setName("Low");
    }
    RegDEVICEPerfectMatch3Low_t& operator=(const RegDEVICEPerfectMatch3Low_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEPerfectMatch3Low_t;

#define REG_DEVICE_PERFECT_MATCH4_HIGH ((volatile APE_DEVICE_H_uint32_t*)0xa0040558) /*  */
#define     DEVICE_PERFECT_MATCH4_HIGH_HIGH_SHIFT 0u
#define     DEVICE_PERFECT_MATCH4_HIGH_HIGH_MASK  0xffffu
#define GET_DEVICE_PERFECT_MATCH4_HIGH_HIGH(__reg__)  (((__reg__) & 0xffff) >> 0u)
#define SET_DEVICE_PERFECT_MATCH4_HIGH_HIGH(__val__)  (((__val__) << 0u) & 0xffffu)

/** @brief Register definition for @ref DEVICE_t.PerfectMatch4High. */
typedef register_container RegDEVICEPerfectMatch4High_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Upper two bytes of the MAC */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, High, 0, 16)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_16, 16, 16)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_16, 16, 16)
        /** @brief Upper two bytes of the MAC */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, High, 0, 16)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "PerfectMatch4High"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEPerfectMatch4High_t()
    {
        /** @brief constructor for @ref DEVICE_t.PerfectMatch4High. */
        r32.setName("PerfectMatch4High");
        bits.High.setBaseRegister(&r32);
        bits.High.setName("High");
    }
    RegDEVICEPerfectMatch4High_t& operator=(const RegDEVICEPerfectMatch4High_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEPerfectMatch4High_t;

#define REG_DEVICE_PERFECT_MATCH4_LOW ((volatile APE_DEVICE_H_uint32_t*)0xa004055c) /*  */
#define     DEVICE_PERFECT_MATCH4_LOW_LOW_SHIFT 0u
#define     DEVICE_PERFECT_MATCH4_LOW_LOW_MASK  0xffffffffu
#define GET_DEVICE_PERFECT_MATCH4_LOW_LOW(__reg__)  (((__reg__) & 0xffffffff) >> 0u)
#define SET_DEVICE_PERFECT_MATCH4_LOW_LOW(__val__)  (((__val__) << 0u) & 0xffffffffu)

/** @brief Register definition for @ref DEVICE_t.PerfectMatch4Low. */
typedef register_container RegDEVICEPerfectMatch4Low_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Lower four bytes of the MAC */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Low, 0, 32)
#elif defined(__BIG_ENDIAN__)
        /** @brief Lower four bytes of the MAC */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Low, 0, 32)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "PerfectMatch4Low"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEPerfectMatch4Low_t()
    {
        /** @brief constructor for @ref DEVICE_t.PerfectMatch4Low. */
        r32.setName("PerfectMatch4Low");
        bits.Low.setBaseRegister(&r32);
        bits.Low.setName("Low");
    }
    RegDEVICEPerfectMatch4Low_t& operator=(const RegDEVICEPerfectMatch4Low_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEPerfectMatch4Low_t;

#define REG_DEVICE_SGMII_STATUS ((volatile APE_DEVICE_H_uint32_t*)0xa00405b4) /* This register reflects various status of the respective SGMII port when enabled. */
#define     DEVICE_SGMII_STATUS_AUTONEGOTIATION_COMPLETE_SHIFT 0u
#define     DEVICE_SGMII_STATUS_AUTONEGOTIATION_COMPLETE_MASK  0x1u
#define GET_DEVICE_SGMII_STATUS_AUTONEGOTIATION_COMPLETE(__reg__)  (((__reg__) & 0x1) >> 0u)
#define SET_DEVICE_SGMII_STATUS_AUTONEGOTIATION_COMPLETE(__val__)  (((__val__) << 0u) & 0x1u)
#define     DEVICE_SGMII_STATUS_LINK_STATUS_SHIFT 1u
#define     DEVICE_SGMII_STATUS_LINK_STATUS_MASK  0x2u
#define GET_DEVICE_SGMII_STATUS_LINK_STATUS(__reg__)  (((__reg__) & 0x2) >> 1u)
#define SET_DEVICE_SGMII_STATUS_LINK_STATUS(__val__)  (((__val__) << 1u) & 0x2u)
#define     DEVICE_SGMII_STATUS_DUPLEX_STATUS_SHIFT 2u
#define     DEVICE_SGMII_STATUS_DUPLEX_STATUS_MASK  0x4u
#define GET_DEVICE_SGMII_STATUS_DUPLEX_STATUS(__reg__)  (((__reg__) & 0x4) >> 2u)
#define SET_DEVICE_SGMII_STATUS_DUPLEX_STATUS(__val__)  (((__val__) << 2u) & 0x4u)
#define     DEVICE_SGMII_STATUS_SPEED_1000_SHIFT 3u
#define     DEVICE_SGMII_STATUS_SPEED_1000_MASK  0x8u
#define GET_DEVICE_SGMII_STATUS_SPEED_1000(__reg__)  (((__reg__) & 0x8) >> 3u)
#define SET_DEVICE_SGMII_STATUS_SPEED_1000(__val__)  (((__val__) << 3u) & 0x8u)
#define     DEVICE_SGMII_STATUS_SPEED_100_SHIFT 4u
#define     DEVICE_SGMII_STATUS_SPEED_100_MASK  0x10u
#define GET_DEVICE_SGMII_STATUS_SPEED_100(__reg__)  (((__reg__) & 0x10) >> 4u)
#define SET_DEVICE_SGMII_STATUS_SPEED_100(__val__)  (((__val__) << 4u) & 0x10u)
#define     DEVICE_SGMII_STATUS_NEXT_PAGE_RX_SHIFT 5u
#define     DEVICE_SGMII_STATUS_NEXT_PAGE_RX_MASK  0x20u
#define GET_DEVICE_SGMII_STATUS_NEXT_PAGE_RX(__reg__)  (((__reg__) & 0x20) >> 5u)
#define SET_DEVICE_SGMII_STATUS_NEXT_PAGE_RX(__val__)  (((__val__) << 5u) & 0x20u)
#define     DEVICE_SGMII_STATUS_PAUSE_RX_SHIFT 6u
#define     DEVICE_SGMII_STATUS_PAUSE_RX_MASK  0x40u
#define GET_DEVICE_SGMII_STATUS_PAUSE_RX(__reg__)  (((__reg__) & 0x40) >> 6u)
#define SET_DEVICE_SGMII_STATUS_PAUSE_RX(__val__)  (((__val__) << 6u) & 0x40u)
#define     DEVICE_SGMII_STATUS_PAUSE_TX_SHIFT 7u
#define     DEVICE_SGMII_STATUS_PAUSE_TX_MASK  0x80u
#define GET_DEVICE_SGMII_STATUS_PAUSE_TX(__reg__)  (((__reg__) & 0x80) >> 7u)
#define SET_DEVICE_SGMII_STATUS_PAUSE_TX(__val__)  (((__val__) << 7u) & 0x80u)
#define     DEVICE_SGMII_STATUS_MEDIA_SELECTION_MODE_SHIFT 8u
#define     DEVICE_SGMII_STATUS_MEDIA_SELECTION_MODE_MASK  0x100u
#define GET_DEVICE_SGMII_STATUS_MEDIA_SELECTION_MODE(__reg__)  (((__reg__) & 0x100) >> 8u)
#define SET_DEVICE_SGMII_STATUS_MEDIA_SELECTION_MODE(__val__)  (((__val__) << 8u) & 0x100u)
#define     DEVICE_SGMII_STATUS_MEDIA_SELECTION_MODE_COPPER 0x0u
#define     DEVICE_SGMII_STATUS_MEDIA_SELECTION_MODE_SGMII 0x1u

#define     DEVICE_SGMII_STATUS_PCS_CRS_DETECT_SHIFT 9u
#define     DEVICE_SGMII_STATUS_PCS_CRS_DETECT_MASK  0x200u
#define GET_DEVICE_SGMII_STATUS_PCS_CRS_DETECT(__reg__)  (((__reg__) & 0x200) >> 9u)
#define SET_DEVICE_SGMII_STATUS_PCS_CRS_DETECT(__val__)  (((__val__) << 9u) & 0x200u)
#define     DEVICE_SGMII_STATUS_EXTERNAL_CRS_DETECT_SHIFT 10u
#define     DEVICE_SGMII_STATUS_EXTERNAL_CRS_DETECT_MASK  0x400u
#define GET_DEVICE_SGMII_STATUS_EXTERNAL_CRS_DETECT(__reg__)  (((__reg__) & 0x400) >> 10u)
#define SET_DEVICE_SGMII_STATUS_EXTERNAL_CRS_DETECT(__val__)  (((__val__) << 10u) & 0x400u)
#define     DEVICE_SGMII_STATUS_LINK_PARTNER_AUTONEGOTIATION_CAPABILITY_SHIFT 16u
#define     DEVICE_SGMII_STATUS_LINK_PARTNER_AUTONEGOTIATION_CAPABILITY_MASK  0xffff0000u
#define GET_DEVICE_SGMII_STATUS_LINK_PARTNER_AUTONEGOTIATION_CAPABILITY(__reg__)  (((__reg__) & 0xffff0000) >> 16u)
#define SET_DEVICE_SGMII_STATUS_LINK_PARTNER_AUTONEGOTIATION_CAPABILITY(__val__)  (((__val__) << 16u) & 0xffff0000u)

/** @brief Register definition for @ref DEVICE_t.SgmiiStatus. */
typedef register_container RegDEVICESgmiiStatus_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Auto-negotiation process has completed. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, AutonegotiationComplete, 0, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LinkStatus, 1, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, DuplexStatus, 2, 1)
        /** @brief The SGMII Link currently operable at 1 Gbps data speed. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Speed1000, 3, 1)
        /** @brief The SGMII Link currently operable at 100mbps data speed. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Speed100, 4, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, NextPageRX, 5, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PauseRX, 6, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PauseTX, 7, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MediaSelectionMode, 8, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PCSCRSDetect, 9, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, ExternalCRSDetect, 10, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_15_11, 11, 5)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LinkPartnerAutonegotiationCapability, 16, 16)
#elif defined(__BIG_ENDIAN__)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LinkPartnerAutonegotiationCapability, 16, 16)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_15_11, 11, 5)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, ExternalCRSDetect, 10, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PCSCRSDetect, 9, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MediaSelectionMode, 8, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PauseTX, 7, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PauseRX, 6, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, NextPageRX, 5, 1)
        /** @brief The SGMII Link currently operable at 100mbps data speed. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Speed100, 4, 1)
        /** @brief The SGMII Link currently operable at 1 Gbps data speed. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Speed1000, 3, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, DuplexStatus, 2, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LinkStatus, 1, 1)
        /** @brief Auto-negotiation process has completed. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, AutonegotiationComplete, 0, 1)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "SgmiiStatus"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICESgmiiStatus_t()
    {
        /** @brief constructor for @ref DEVICE_t.SgmiiStatus. */
        r32.setName("SgmiiStatus");
        bits.AutonegotiationComplete.setBaseRegister(&r32);
        bits.AutonegotiationComplete.setName("AutonegotiationComplete");
        bits.LinkStatus.setBaseRegister(&r32);
        bits.LinkStatus.setName("LinkStatus");
        bits.DuplexStatus.setBaseRegister(&r32);
        bits.DuplexStatus.setName("DuplexStatus");
        bits.Speed1000.setBaseRegister(&r32);
        bits.Speed1000.setName("Speed1000");
        bits.Speed100.setBaseRegister(&r32);
        bits.Speed100.setName("Speed100");
        bits.NextPageRX.setBaseRegister(&r32);
        bits.NextPageRX.setName("NextPageRX");
        bits.PauseRX.setBaseRegister(&r32);
        bits.PauseRX.setName("PauseRX");
        bits.PauseTX.setBaseRegister(&r32);
        bits.PauseTX.setName("PauseTX");
        bits.MediaSelectionMode.setBaseRegister(&r32);
        bits.MediaSelectionMode.setName("MediaSelectionMode");
        bits.PCSCRSDetect.setBaseRegister(&r32);
        bits.PCSCRSDetect.setName("PCSCRSDetect");
        bits.ExternalCRSDetect.setBaseRegister(&r32);
        bits.ExternalCRSDetect.setName("ExternalCRSDetect");
        bits.LinkPartnerAutonegotiationCapability.setBaseRegister(&r32);
        bits.LinkPartnerAutonegotiationCapability.setName("LinkPartnerAutonegotiationCapability");
    }
    RegDEVICESgmiiStatus_t& operator=(const RegDEVICESgmiiStatus_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICESgmiiStatus_t;

#define REG_DEVICE_CPMU_CONTROL ((volatile APE_DEVICE_H_uint32_t*)0xa0043600) /*  */
#define     DEVICE_CPMU_CONTROL_CPMU_SOFTWARE_RESET_SHIFT 0u
#define     DEVICE_CPMU_CONTROL_CPMU_SOFTWARE_RESET_MASK  0x1u
#define GET_DEVICE_CPMU_CONTROL_CPMU_SOFTWARE_RESET(__reg__)  (((__reg__) & 0x1) >> 0u)
#define SET_DEVICE_CPMU_CONTROL_CPMU_SOFTWARE_RESET(__val__)  (((__val__) << 0u) & 0x1u)
#define     DEVICE_CPMU_CONTROL_CPMU_REGISTER_SOFTWARE_RESET_SHIFT 1u
#define     DEVICE_CPMU_CONTROL_CPMU_REGISTER_SOFTWARE_RESET_MASK  0x2u
#define GET_DEVICE_CPMU_CONTROL_CPMU_REGISTER_SOFTWARE_RESET(__reg__)  (((__reg__) & 0x2) >> 1u)
#define SET_DEVICE_CPMU_CONTROL_CPMU_REGISTER_SOFTWARE_RESET(__val__)  (((__val__) << 1u) & 0x2u)
#define     DEVICE_CPMU_CONTROL_POWER_DOWN_SHIFT 2u
#define     DEVICE_CPMU_CONTROL_POWER_DOWN_MASK  0x4u
#define GET_DEVICE_CPMU_CONTROL_POWER_DOWN(__reg__)  (((__reg__) & 0x4) >> 2u)
#define SET_DEVICE_CPMU_CONTROL_POWER_DOWN(__val__)  (((__val__) << 2u) & 0x4u)
#define     DEVICE_CPMU_CONTROL_APE_SLEEP_MODE_ENABLE_SHIFT 4u
#define     DEVICE_CPMU_CONTROL_APE_SLEEP_MODE_ENABLE_MASK  0x10u
#define GET_DEVICE_CPMU_CONTROL_APE_SLEEP_MODE_ENABLE(__reg__)  (((__reg__) & 0x10) >> 4u)
#define SET_DEVICE_CPMU_CONTROL_APE_SLEEP_MODE_ENABLE(__val__)  (((__val__) << 4u) & 0x10u)
#define     DEVICE_CPMU_CONTROL_APE_DEEP_SLEEP_MODE_ENABLE_SHIFT 5u
#define     DEVICE_CPMU_CONTROL_APE_DEEP_SLEEP_MODE_ENABLE_MASK  0x20u
#define GET_DEVICE_CPMU_CONTROL_APE_DEEP_SLEEP_MODE_ENABLE(__reg__)  (((__reg__) & 0x20) >> 5u)
#define SET_DEVICE_CPMU_CONTROL_APE_DEEP_SLEEP_MODE_ENABLE(__val__)  (((__val__) << 5u) & 0x20u)
#define     DEVICE_CPMU_CONTROL_LINK_IDLE_POWER_MODE_ENABLE_SHIFT 9u
#define     DEVICE_CPMU_CONTROL_LINK_IDLE_POWER_MODE_ENABLE_MASK  0x200u
#define GET_DEVICE_CPMU_CONTROL_LINK_IDLE_POWER_MODE_ENABLE(__reg__)  (((__reg__) & 0x200) >> 9u)
#define SET_DEVICE_CPMU_CONTROL_LINK_IDLE_POWER_MODE_ENABLE(__val__)  (((__val__) << 9u) & 0x200u)
#define     DEVICE_CPMU_CONTROL_LINK_AWARE_POWER_MODE_ENABLE_SHIFT 10u
#define     DEVICE_CPMU_CONTROL_LINK_AWARE_POWER_MODE_ENABLE_MASK  0x400u
#define GET_DEVICE_CPMU_CONTROL_LINK_AWARE_POWER_MODE_ENABLE(__reg__)  (((__reg__) & 0x400) >> 10u)
#define SET_DEVICE_CPMU_CONTROL_LINK_AWARE_POWER_MODE_ENABLE(__val__)  (((__val__) << 10u) & 0x400u)
#define     DEVICE_CPMU_CONTROL_LINK_SPEED_POWER_MODE_ENABLE_SHIFT 14u
#define     DEVICE_CPMU_CONTROL_LINK_SPEED_POWER_MODE_ENABLE_MASK  0x4000u
#define GET_DEVICE_CPMU_CONTROL_LINK_SPEED_POWER_MODE_ENABLE(__reg__)  (((__reg__) & 0x4000) >> 14u)
#define SET_DEVICE_CPMU_CONTROL_LINK_SPEED_POWER_MODE_ENABLE(__val__)  (((__val__) << 14u) & 0x4000u)
#define     DEVICE_CPMU_CONTROL_GPHY_10MB_RECEIVE_ONLY_MODE_ENABLE_SHIFT 16u
#define     DEVICE_CPMU_CONTROL_GPHY_10MB_RECEIVE_ONLY_MODE_ENABLE_MASK  0x10000u
#define GET_DEVICE_CPMU_CONTROL_GPHY_10MB_RECEIVE_ONLY_MODE_ENABLE(__reg__)  (((__reg__) & 0x10000) >> 16u)
#define SET_DEVICE_CPMU_CONTROL_GPHY_10MB_RECEIVE_ONLY_MODE_ENABLE(__val__)  (((__val__) << 16u) & 0x10000u)
#define     DEVICE_CPMU_CONTROL_LEGACY_TIMER_ENABLE_SHIFT 18u
#define     DEVICE_CPMU_CONTROL_LEGACY_TIMER_ENABLE_MASK  0x40000u
#define GET_DEVICE_CPMU_CONTROL_LEGACY_TIMER_ENABLE(__reg__)  (((__reg__) & 0x40000) >> 18u)
#define SET_DEVICE_CPMU_CONTROL_LEGACY_TIMER_ENABLE(__val__)  (((__val__) << 18u) & 0x40000u)
#define     DEVICE_CPMU_CONTROL_SGMII_DIV_PCS_POWER_DOWN_SHIFT 19u
#define     DEVICE_CPMU_CONTROL_SGMII_DIV_PCS_POWER_DOWN_MASK  0x80000u
#define GET_DEVICE_CPMU_CONTROL_SGMII_DIV_PCS_POWER_DOWN(__reg__)  (((__reg__) & 0x80000) >> 19u)
#define SET_DEVICE_CPMU_CONTROL_SGMII_DIV_PCS_POWER_DOWN(__val__)  (((__val__) << 19u) & 0x80000u)
#define     DEVICE_CPMU_CONTROL_SOFTWARE_CONTROLLED_GPHY_FORCE_DLL_ON_SHIFT 28u
#define     DEVICE_CPMU_CONTROL_SOFTWARE_CONTROLLED_GPHY_FORCE_DLL_ON_MASK  0x10000000u
#define GET_DEVICE_CPMU_CONTROL_SOFTWARE_CONTROLLED_GPHY_FORCE_DLL_ON(__reg__)  (((__reg__) & 0x10000000) >> 28u)
#define SET_DEVICE_CPMU_CONTROL_SOFTWARE_CONTROLLED_GPHY_FORCE_DLL_ON(__val__)  (((__val__) << 28u) & 0x10000000u)

/** @brief Register definition for @ref DEVICE_t.CpmuControl. */
typedef register_container RegDEVICECpmuControl_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, CPMUSoftwareReset, 0, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, CPMURegisterSoftwareReset, 1, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PowerDown, 2, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_3_3, 3, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, APESleepModeEnable, 4, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, APEDeepSleepModeEnable, 5, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_8_6, 6, 3)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LinkIdlePowerModeEnable, 9, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LinkAwarePowerModeEnable, 10, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_13_11, 11, 3)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LinkSpeedPowerModeEnable, 14, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_15_15, 15, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, GPHY10MBReceiveOnlyModeEnable, 16, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_17_17, 17, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LegacyTimerEnable, 18, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, SGMII_DIV_PCSPowerDown, 19, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_27_20, 20, 8)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, SoftwareControlledGPHYForceDLLOn, 28, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_29, 29, 3)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_29, 29, 3)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, SoftwareControlledGPHYForceDLLOn, 28, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_27_20, 20, 8)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, SGMII_DIV_PCSPowerDown, 19, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LegacyTimerEnable, 18, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_17_17, 17, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, GPHY10MBReceiveOnlyModeEnable, 16, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_15_15, 15, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LinkSpeedPowerModeEnable, 14, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_13_11, 11, 3)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LinkAwarePowerModeEnable, 10, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LinkIdlePowerModeEnable, 9, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_8_6, 6, 3)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, APEDeepSleepModeEnable, 5, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, APESleepModeEnable, 4, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_3_3, 3, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PowerDown, 2, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, CPMURegisterSoftwareReset, 1, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, CPMUSoftwareReset, 0, 1)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "CpmuControl"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICECpmuControl_t()
    {
        /** @brief constructor for @ref DEVICE_t.CpmuControl. */
        r32.setName("CpmuControl");
        bits.CPMUSoftwareReset.setBaseRegister(&r32);
        bits.CPMUSoftwareReset.setName("CPMUSoftwareReset");
        bits.CPMURegisterSoftwareReset.setBaseRegister(&r32);
        bits.CPMURegisterSoftwareReset.setName("CPMURegisterSoftwareReset");
        bits.PowerDown.setBaseRegister(&r32);
        bits.PowerDown.setName("PowerDown");
        bits.APESleepModeEnable.setBaseRegister(&r32);
        bits.APESleepModeEnable.setName("APESleepModeEnable");
        bits.APEDeepSleepModeEnable.setBaseRegister(&r32);
        bits.APEDeepSleepModeEnable.setName("APEDeepSleepModeEnable");
        bits.LinkIdlePowerModeEnable.setBaseRegister(&r32);
        bits.LinkIdlePowerModeEnable.setName("LinkIdlePowerModeEnable");
        bits.LinkAwarePowerModeEnable.setBaseRegister(&r32);
        bits.LinkAwarePowerModeEnable.setName("LinkAwarePowerModeEnable");
        bits.LinkSpeedPowerModeEnable.setBaseRegister(&r32);
        bits.LinkSpeedPowerModeEnable.setName("LinkSpeedPowerModeEnable");
        bits.GPHY10MBReceiveOnlyModeEnable.setBaseRegister(&r32);
        bits.GPHY10MBReceiveOnlyModeEnable.setName("GPHY10MBReceiveOnlyModeEnable");
        bits.LegacyTimerEnable.setBaseRegister(&r32);
        bits.LegacyTimerEnable.setName("LegacyTimerEnable");
        bits.SGMII_DIV_PCSPowerDown.setBaseRegister(&r32);
        bits.SGMII_DIV_PCSPowerDown.setName("SGMII_DIV_PCSPowerDown");
        bits.SoftwareControlledGPHYForceDLLOn.setBaseRegister(&r32);
        bits.SoftwareControlledGPHYForceDLLOn.setName("SoftwareControlledGPHYForceDLLOn");
    }
    RegDEVICECpmuControl_t& operator=(const RegDEVICECpmuControl_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICECpmuControl_t;

#define REG_DEVICE_LINK_AWARE_POWER_MODE_CLOCK_POLICY ((volatile APE_DEVICE_H_uint32_t*)0xa0043610) /*  */
#define     DEVICE_LINK_AWARE_POWER_MODE_CLOCK_POLICY_MAC_CLOCK_SWITCH_SHIFT 16u
#define     DEVICE_LINK_AWARE_POWER_MODE_CLOCK_POLICY_MAC_CLOCK_SWITCH_MASK  0x1f0000u
#define GET_DEVICE_LINK_AWARE_POWER_MODE_CLOCK_POLICY_MAC_CLOCK_SWITCH(__reg__)  (((__reg__) & 0x1f0000) >> 16u)
#define SET_DEVICE_LINK_AWARE_POWER_MODE_CLOCK_POLICY_MAC_CLOCK_SWITCH(__val__)  (((__val__) << 16u) & 0x1f0000u)
#define     DEVICE_LINK_AWARE_POWER_MODE_CLOCK_POLICY_MAC_CLOCK_SWITCH_60_0MHZ 0x1u
#define     DEVICE_LINK_AWARE_POWER_MODE_CLOCK_POLICY_MAC_CLOCK_SWITCH_30_0MHZ 0x3u
#define     DEVICE_LINK_AWARE_POWER_MODE_CLOCK_POLICY_MAC_CLOCK_SWITCH_15_0MHZ 0x5u
#define     DEVICE_LINK_AWARE_POWER_MODE_CLOCK_POLICY_MAC_CLOCK_SWITCH_7_5MHZ 0x7u
#define     DEVICE_LINK_AWARE_POWER_MODE_CLOCK_POLICY_MAC_CLOCK_SWITCH_3_75MHZ 0x9u
#define     DEVICE_LINK_AWARE_POWER_MODE_CLOCK_POLICY_MAC_CLOCK_SWITCH_12_5MHZ 0x11u
#define     DEVICE_LINK_AWARE_POWER_MODE_CLOCK_POLICY_MAC_CLOCK_SWITCH_6_25MHZ 0x13u
#define     DEVICE_LINK_AWARE_POWER_MODE_CLOCK_POLICY_MAC_CLOCK_SWITCH_3_125MHZ 0x15u
#define     DEVICE_LINK_AWARE_POWER_MODE_CLOCK_POLICY_MAC_CLOCK_SWITCH_1_563MHZ 0x17u
#define     DEVICE_LINK_AWARE_POWER_MODE_CLOCK_POLICY_MAC_CLOCK_SWITCH_781KHZ 0x19u
#define     DEVICE_LINK_AWARE_POWER_MODE_CLOCK_POLICY_MAC_CLOCK_SWITCH_12_5MHZ_DIV_1_25MHZ 0x1fu


/** @brief Register definition for @ref DEVICE_t.LinkAwarePowerModeClockPolicy. */
typedef register_container RegDEVICELinkAwarePowerModeClockPolicy_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_15_0, 0, 16)
        /** @brief Software Controlled MAC Core Clock Speed Select. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MACClockSwitch, 16, 5)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_21, 21, 11)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_21, 21, 11)
        /** @brief Software Controlled MAC Core Clock Speed Select. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MACClockSwitch, 16, 5)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_15_0, 0, 16)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "LinkAwarePowerModeClockPolicy"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICELinkAwarePowerModeClockPolicy_t()
    {
        /** @brief constructor for @ref DEVICE_t.LinkAwarePowerModeClockPolicy. */
        r32.setName("LinkAwarePowerModeClockPolicy");
        bits.MACClockSwitch.setBaseRegister(&r32);
        bits.MACClockSwitch.setName("MACClockSwitch");
    }
    RegDEVICELinkAwarePowerModeClockPolicy_t& operator=(const RegDEVICELinkAwarePowerModeClockPolicy_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICELinkAwarePowerModeClockPolicy_t;

#define REG_DEVICE_CLOCK_SPEED_OVERRIDE_POLICY ((volatile APE_DEVICE_H_uint32_t*)0xa0043624) /*  */
#define     DEVICE_CLOCK_SPEED_OVERRIDE_POLICY_MAC_CLOCK_SWITCH_SHIFT 16u
#define     DEVICE_CLOCK_SPEED_OVERRIDE_POLICY_MAC_CLOCK_SWITCH_MASK  0x1f0000u
#define GET_DEVICE_CLOCK_SPEED_OVERRIDE_POLICY_MAC_CLOCK_SWITCH(__reg__)  (((__reg__) & 0x1f0000) >> 16u)
#define SET_DEVICE_CLOCK_SPEED_OVERRIDE_POLICY_MAC_CLOCK_SWITCH(__val__)  (((__val__) << 16u) & 0x1f0000u)
#define     DEVICE_CLOCK_SPEED_OVERRIDE_POLICY_MAC_CLOCK_SPEED_OVERRIDE_ENABLED_SHIFT 31u
#define     DEVICE_CLOCK_SPEED_OVERRIDE_POLICY_MAC_CLOCK_SPEED_OVERRIDE_ENABLED_MASK  0x80000000u
#define GET_DEVICE_CLOCK_SPEED_OVERRIDE_POLICY_MAC_CLOCK_SPEED_OVERRIDE_ENABLED(__reg__)  (((__reg__) & 0x80000000) >> 31u)
#define SET_DEVICE_CLOCK_SPEED_OVERRIDE_POLICY_MAC_CLOCK_SPEED_OVERRIDE_ENABLED(__val__)  (((__val__) << 31u) & 0x80000000u)

/** @brief Register definition for @ref DEVICE_t.ClockSpeedOverridePolicy. */
typedef register_container RegDEVICEClockSpeedOverridePolicy_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_15_0, 0, 16)
        /** @brief Software Controlled MAC Core Clock Speed Select */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MACClockSwitch, 16, 5)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_30_21, 21, 10)
        /** @brief Enable MAC clock speed override */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MACClockSpeedOverrideEnabled, 31, 1)
#elif defined(__BIG_ENDIAN__)
        /** @brief Enable MAC clock speed override */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MACClockSpeedOverrideEnabled, 31, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_30_21, 21, 10)
        /** @brief Software Controlled MAC Core Clock Speed Select */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MACClockSwitch, 16, 5)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_15_0, 0, 16)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "ClockSpeedOverridePolicy"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEClockSpeedOverridePolicy_t()
    {
        /** @brief constructor for @ref DEVICE_t.ClockSpeedOverridePolicy. */
        r32.setName("ClockSpeedOverridePolicy");
        bits.MACClockSwitch.setBaseRegister(&r32);
        bits.MACClockSwitch.setName("MACClockSwitch");
        bits.MACClockSpeedOverrideEnabled.setBaseRegister(&r32);
        bits.MACClockSpeedOverrideEnabled.setName("MACClockSpeedOverrideEnabled");
    }
    RegDEVICEClockSpeedOverridePolicy_t& operator=(const RegDEVICEClockSpeedOverridePolicy_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEClockSpeedOverridePolicy_t;

#define REG_DEVICE_STATUS ((volatile APE_DEVICE_H_uint32_t*)0xa004362c) /*  */
#define     DEVICE_STATUS_POWER_MANAGEMENT_STATE_MACHINE_STATE_SHIFT 0u
#define     DEVICE_STATUS_POWER_MANAGEMENT_STATE_MACHINE_STATE_MASK  0xfu
#define GET_DEVICE_STATUS_POWER_MANAGEMENT_STATE_MACHINE_STATE(__reg__)  (((__reg__) & 0xf) >> 0u)
#define SET_DEVICE_STATUS_POWER_MANAGEMENT_STATE_MACHINE_STATE(__val__)  (((__val__) << 0u) & 0xfu)
#define     DEVICE_STATUS_CPMU_POWER_STATE_SHIFT 4u
#define     DEVICE_STATUS_CPMU_POWER_STATE_MASK  0x70u
#define GET_DEVICE_STATUS_CPMU_POWER_STATE(__reg__)  (((__reg__) & 0x70) >> 4u)
#define SET_DEVICE_STATUS_CPMU_POWER_STATE(__val__)  (((__val__) << 4u) & 0x70u)
#define     DEVICE_STATUS_ENERGY_DETECT_STATUS_SHIFT 7u
#define     DEVICE_STATUS_ENERGY_DETECT_STATUS_MASK  0x80u
#define GET_DEVICE_STATUS_ENERGY_DETECT_STATUS(__reg__)  (((__reg__) & 0x80) >> 7u)
#define SET_DEVICE_STATUS_ENERGY_DETECT_STATUS(__val__)  (((__val__) << 7u) & 0x80u)
#define     DEVICE_STATUS_POWER_STATE_SHIFT 8u
#define     DEVICE_STATUS_POWER_STATE_MASK  0x300u
#define GET_DEVICE_STATUS_POWER_STATE(__reg__)  (((__reg__) & 0x300) >> 8u)
#define SET_DEVICE_STATUS_POWER_STATE(__val__)  (((__val__) << 8u) & 0x300u)
#define     DEVICE_STATUS_VMAIN_POWER_STATUS_SHIFT 13u
#define     DEVICE_STATUS_VMAIN_POWER_STATUS_MASK  0x2000u
#define GET_DEVICE_STATUS_VMAIN_POWER_STATUS(__reg__)  (((__reg__) & 0x2000) >> 13u)
#define SET_DEVICE_STATUS_VMAIN_POWER_STATUS(__val__)  (((__val__) << 13u) & 0x2000u)
#define     DEVICE_STATUS_WOL_MAGIC_PACKET_DETECTION_ENABLE_PORT_0_SHIFT 14u
#define     DEVICE_STATUS_WOL_MAGIC_PACKET_DETECTION_ENABLE_PORT_0_MASK  0x4000u
#define GET_DEVICE_STATUS_WOL_MAGIC_PACKET_DETECTION_ENABLE_PORT_0(__reg__)  (((__reg__) & 0x4000) >> 14u)
#define SET_DEVICE_STATUS_WOL_MAGIC_PACKET_DETECTION_ENABLE_PORT_0(__val__)  (((__val__) << 14u) & 0x4000u)
#define     DEVICE_STATUS_WOL_ACPI_DETECTION_ENABLE_PORT_0_SHIFT 15u
#define     DEVICE_STATUS_WOL_ACPI_DETECTION_ENABLE_PORT_0_MASK  0x8000u
#define GET_DEVICE_STATUS_WOL_ACPI_DETECTION_ENABLE_PORT_0(__reg__)  (((__reg__) & 0x8000) >> 15u)
#define SET_DEVICE_STATUS_WOL_ACPI_DETECTION_ENABLE_PORT_0(__val__)  (((__val__) << 15u) & 0x8000u)
#define     DEVICE_STATUS_NCSI_DLL_LOCK_STATUS_SHIFT 16u
#define     DEVICE_STATUS_NCSI_DLL_LOCK_STATUS_MASK  0x10000u
#define GET_DEVICE_STATUS_NCSI_DLL_LOCK_STATUS(__reg__)  (((__reg__) & 0x10000) >> 16u)
#define SET_DEVICE_STATUS_NCSI_DLL_LOCK_STATUS(__val__)  (((__val__) << 16u) & 0x10000u)
#define     DEVICE_STATUS_GPHY_DLL_LOCK_STATUS_SHIFT 17u
#define     DEVICE_STATUS_GPHY_DLL_LOCK_STATUS_MASK  0x20000u
#define GET_DEVICE_STATUS_GPHY_DLL_LOCK_STATUS(__reg__)  (((__reg__) & 0x20000) >> 17u)
#define SET_DEVICE_STATUS_GPHY_DLL_LOCK_STATUS(__val__)  (((__val__) << 17u) & 0x20000u)
#define     DEVICE_STATUS_LINK_IDLE_STATUS_SHIFT 18u
#define     DEVICE_STATUS_LINK_IDLE_STATUS_MASK  0x40000u
#define GET_DEVICE_STATUS_LINK_IDLE_STATUS(__reg__)  (((__reg__) & 0x40000) >> 18u)
#define SET_DEVICE_STATUS_LINK_IDLE_STATUS(__val__)  (((__val__) << 18u) & 0x40000u)
#define     DEVICE_STATUS_ETHERNET_LINK_STATUS_SHIFT 19u
#define     DEVICE_STATUS_ETHERNET_LINK_STATUS_MASK  0x180000u
#define GET_DEVICE_STATUS_ETHERNET_LINK_STATUS(__reg__)  (((__reg__) & 0x180000) >> 19u)
#define SET_DEVICE_STATUS_ETHERNET_LINK_STATUS(__val__)  (((__val__) << 19u) & 0x180000u)
#define     DEVICE_STATUS_ETHERNET_LINK_STATUS_1000_MB 0x0u
#define     DEVICE_STATUS_ETHERNET_LINK_STATUS_100_MB 0x1u
#define     DEVICE_STATUS_ETHERNET_LINK_STATUS_10_MB 0x2u
#define     DEVICE_STATUS_ETHERNET_LINK_STATUS_NO_LINK 0x3u

#define     DEVICE_STATUS_WOL_MAGIC_PACKET_DETECTION_ENABLE_PORT_1_SHIFT 21u
#define     DEVICE_STATUS_WOL_MAGIC_PACKET_DETECTION_ENABLE_PORT_1_MASK  0x200000u
#define GET_DEVICE_STATUS_WOL_MAGIC_PACKET_DETECTION_ENABLE_PORT_1(__reg__)  (((__reg__) & 0x200000) >> 21u)
#define SET_DEVICE_STATUS_WOL_MAGIC_PACKET_DETECTION_ENABLE_PORT_1(__val__)  (((__val__) << 21u) & 0x200000u)
#define     DEVICE_STATUS_WOL_ACPI_DETECTION_ENABLE_PORT_1_SHIFT 22u
#define     DEVICE_STATUS_WOL_ACPI_DETECTION_ENABLE_PORT_1_MASK  0x400000u
#define GET_DEVICE_STATUS_WOL_ACPI_DETECTION_ENABLE_PORT_1(__reg__)  (((__reg__) & 0x400000) >> 22u)
#define SET_DEVICE_STATUS_WOL_ACPI_DETECTION_ENABLE_PORT_1(__val__)  (((__val__) << 22u) & 0x400000u)
#define     DEVICE_STATUS_APE_STATUS_SHIFT 23u
#define     DEVICE_STATUS_APE_STATUS_MASK  0x1800000u
#define GET_DEVICE_STATUS_APE_STATUS(__reg__)  (((__reg__) & 0x1800000) >> 23u)
#define SET_DEVICE_STATUS_APE_STATUS(__val__)  (((__val__) << 23u) & 0x1800000u)
#define     DEVICE_STATUS_APE_STATUS_ACTIVE 0x0u
#define     DEVICE_STATUS_APE_STATUS_SLEEP 0x1u
#define     DEVICE_STATUS_APE_STATUS_DEEP_SLEEP 0x2u

#define     DEVICE_STATUS_FUNCTION_ENABLE_SHIFT 25u
#define     DEVICE_STATUS_FUNCTION_ENABLE_MASK  0x3e000000u
#define GET_DEVICE_STATUS_FUNCTION_ENABLE(__reg__)  (((__reg__) & 0x3e000000) >> 25u)
#define SET_DEVICE_STATUS_FUNCTION_ENABLE(__val__)  (((__val__) << 25u) & 0x3e000000u)
#define     DEVICE_STATUS_FUNCTION_NUMBER_SHIFT 30u
#define     DEVICE_STATUS_FUNCTION_NUMBER_MASK  0xc0000000u
#define GET_DEVICE_STATUS_FUNCTION_NUMBER(__reg__)  (((__reg__) & 0xc0000000) >> 30u)
#define SET_DEVICE_STATUS_FUNCTION_NUMBER(__val__)  (((__val__) << 30u) & 0xc0000000u)

/** @brief Register definition for @ref DEVICE_t.Status. */
typedef register_container RegDEVICEStatus_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PowerManagementStateMachineState, 0, 4)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, CPMUPowerState, 4, 3)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnergyDetectStatus, 7, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PowerState, 8, 2)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_12_10, 10, 3)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, VMAINPowerStatus, 13, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, WOLMagicPacketDetectionEnablePort0, 14, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, WOLACPIDetectionEnablePort0, 15, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, NCSIDLLLockStatus, 16, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, GPHYDLLLockStatus, 17, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LinkIdleStatus, 18, 1)
        /** @brief EthernetLink Status */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EthernetLinkStatus, 19, 2)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, WOLMagicPacketDetectionEnablePort1, 21, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, WOLACPIDetectionEnablePort1, 22, 1)
        /** @brief APE Engine Status */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, APEStatus, 23, 2)
        /** @brief Function Enable input from System BIOS */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, FunctionEnable, 25, 5)
        /** @brief PCIE function number */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, FunctionNumber, 30, 2)
#elif defined(__BIG_ENDIAN__)
        /** @brief PCIE function number */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, FunctionNumber, 30, 2)
        /** @brief Function Enable input from System BIOS */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, FunctionEnable, 25, 5)
        /** @brief APE Engine Status */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, APEStatus, 23, 2)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, WOLACPIDetectionEnablePort1, 22, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, WOLMagicPacketDetectionEnablePort1, 21, 1)
        /** @brief EthernetLink Status */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EthernetLinkStatus, 19, 2)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LinkIdleStatus, 18, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, GPHYDLLLockStatus, 17, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, NCSIDLLLockStatus, 16, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, WOLACPIDetectionEnablePort0, 15, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, WOLMagicPacketDetectionEnablePort0, 14, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, VMAINPowerStatus, 13, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_12_10, 10, 3)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PowerState, 8, 2)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnergyDetectStatus, 7, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, CPMUPowerState, 4, 3)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PowerManagementStateMachineState, 0, 4)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "Status"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEStatus_t()
    {
        /** @brief constructor for @ref DEVICE_t.Status. */
        r32.setName("Status");
        bits.PowerManagementStateMachineState.setBaseRegister(&r32);
        bits.PowerManagementStateMachineState.setName("PowerManagementStateMachineState");
        bits.CPMUPowerState.setBaseRegister(&r32);
        bits.CPMUPowerState.setName("CPMUPowerState");
        bits.EnergyDetectStatus.setBaseRegister(&r32);
        bits.EnergyDetectStatus.setName("EnergyDetectStatus");
        bits.PowerState.setBaseRegister(&r32);
        bits.PowerState.setName("PowerState");
        bits.VMAINPowerStatus.setBaseRegister(&r32);
        bits.VMAINPowerStatus.setName("VMAINPowerStatus");
        bits.WOLMagicPacketDetectionEnablePort0.setBaseRegister(&r32);
        bits.WOLMagicPacketDetectionEnablePort0.setName("WOLMagicPacketDetectionEnablePort0");
        bits.WOLACPIDetectionEnablePort0.setBaseRegister(&r32);
        bits.WOLACPIDetectionEnablePort0.setName("WOLACPIDetectionEnablePort0");
        bits.NCSIDLLLockStatus.setBaseRegister(&r32);
        bits.NCSIDLLLockStatus.setName("NCSIDLLLockStatus");
        bits.GPHYDLLLockStatus.setBaseRegister(&r32);
        bits.GPHYDLLLockStatus.setName("GPHYDLLLockStatus");
        bits.LinkIdleStatus.setBaseRegister(&r32);
        bits.LinkIdleStatus.setName("LinkIdleStatus");
        bits.EthernetLinkStatus.setBaseRegister(&r32);
        bits.EthernetLinkStatus.setName("EthernetLinkStatus");
        bits.WOLMagicPacketDetectionEnablePort1.setBaseRegister(&r32);
        bits.WOLMagicPacketDetectionEnablePort1.setName("WOLMagicPacketDetectionEnablePort1");
        bits.WOLACPIDetectionEnablePort1.setBaseRegister(&r32);
        bits.WOLACPIDetectionEnablePort1.setName("WOLACPIDetectionEnablePort1");
        bits.APEStatus.setBaseRegister(&r32);
        bits.APEStatus.setName("APEStatus");
        bits.FunctionEnable.setBaseRegister(&r32);
        bits.FunctionEnable.setName("FunctionEnable");
        bits.FunctionNumber.setBaseRegister(&r32);
        bits.FunctionNumber.setName("FunctionNumber");
    }
    RegDEVICEStatus_t& operator=(const RegDEVICEStatus_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEStatus_t;

#define REG_DEVICE_CLOCK_STATUS ((volatile APE_DEVICE_H_uint32_t*)0xa0043630) /*  */
/** @brief Register definition for @ref DEVICE_t.ClockStatus. */
typedef register_container RegDEVICEClockStatus_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "ClockStatus"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEClockStatus_t()
    {
        /** @brief constructor for @ref DEVICE_t.ClockStatus. */
        r32.setName("ClockStatus");
    }
    RegDEVICEClockStatus_t& operator=(const RegDEVICEClockStatus_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEClockStatus_t;

#define REG_DEVICE_GPHY_CONTROL_STATUS ((volatile APE_DEVICE_H_uint32_t*)0xa0043638) /*  */
#define     DEVICE_GPHY_CONTROL_STATUS_GPHY_IDDQ_SHIFT 0u
#define     DEVICE_GPHY_CONTROL_STATUS_GPHY_IDDQ_MASK  0x1u
#define GET_DEVICE_GPHY_CONTROL_STATUS_GPHY_IDDQ(__reg__)  (((__reg__) & 0x1) >> 0u)
#define SET_DEVICE_GPHY_CONTROL_STATUS_GPHY_IDDQ(__val__)  (((__val__) << 0u) & 0x1u)
#define     DEVICE_GPHY_CONTROL_STATUS_BIAS_IDDQ_SHIFT 1u
#define     DEVICE_GPHY_CONTROL_STATUS_BIAS_IDDQ_MASK  0x2u
#define GET_DEVICE_GPHY_CONTROL_STATUS_BIAS_IDDQ(__reg__)  (((__reg__) & 0x2) >> 1u)
#define SET_DEVICE_GPHY_CONTROL_STATUS_BIAS_IDDQ(__val__)  (((__val__) << 1u) & 0x2u)
#define     DEVICE_GPHY_CONTROL_STATUS_CPMU_SOFTWARE_RESET_SHIFT 2u
#define     DEVICE_GPHY_CONTROL_STATUS_CPMU_SOFTWARE_RESET_MASK  0x4u
#define GET_DEVICE_GPHY_CONTROL_STATUS_CPMU_SOFTWARE_RESET(__reg__)  (((__reg__) & 0x4) >> 2u)
#define SET_DEVICE_GPHY_CONTROL_STATUS_CPMU_SOFTWARE_RESET(__val__)  (((__val__) << 2u) & 0x4u)
#define     DEVICE_GPHY_CONTROL_STATUS_CPMU_REGISTER_SOFTWARE_RESET_SHIFT 3u
#define     DEVICE_GPHY_CONTROL_STATUS_CPMU_REGISTER_SOFTWARE_RESET_MASK  0x8u
#define GET_DEVICE_GPHY_CONTROL_STATUS_CPMU_REGISTER_SOFTWARE_RESET(__reg__)  (((__reg__) & 0x8) >> 3u)
#define SET_DEVICE_GPHY_CONTROL_STATUS_CPMU_REGISTER_SOFTWARE_RESET(__val__)  (((__val__) << 3u) & 0x8u)
#define     DEVICE_GPHY_CONTROL_STATUS_POWER_DOWN_SHIFT 4u
#define     DEVICE_GPHY_CONTROL_STATUS_POWER_DOWN_MASK  0x10u
#define GET_DEVICE_GPHY_CONTROL_STATUS_POWER_DOWN(__reg__)  (((__reg__) & 0x10) >> 4u)
#define SET_DEVICE_GPHY_CONTROL_STATUS_POWER_DOWN(__val__)  (((__val__) << 4u) & 0x10u)
#define     DEVICE_GPHY_CONTROL_STATUS_SGMII_DIV_PCS_POWER_DOWN_SHIFT 15u
#define     DEVICE_GPHY_CONTROL_STATUS_SGMII_DIV_PCS_POWER_DOWN_MASK  0x8000u
#define GET_DEVICE_GPHY_CONTROL_STATUS_SGMII_DIV_PCS_POWER_DOWN(__reg__)  (((__reg__) & 0x8000) >> 15u)
#define SET_DEVICE_GPHY_CONTROL_STATUS_SGMII_DIV_PCS_POWER_DOWN(__val__)  (((__val__) << 15u) & 0x8000u)
#define     DEVICE_GPHY_CONTROL_STATUS_NCSI_PLL_LOCK_STATUS_SHIFT 25u
#define     DEVICE_GPHY_CONTROL_STATUS_NCSI_PLL_LOCK_STATUS_MASK  0x2000000u
#define GET_DEVICE_GPHY_CONTROL_STATUS_NCSI_PLL_LOCK_STATUS(__reg__)  (((__reg__) & 0x2000000) >> 25u)
#define SET_DEVICE_GPHY_CONTROL_STATUS_NCSI_PLL_LOCK_STATUS(__val__)  (((__val__) << 25u) & 0x2000000u)
#define     DEVICE_GPHY_CONTROL_STATUS_TLP_CLOCK_SOURCE_SHIFT 26u
#define     DEVICE_GPHY_CONTROL_STATUS_TLP_CLOCK_SOURCE_MASK  0x4000000u
#define GET_DEVICE_GPHY_CONTROL_STATUS_TLP_CLOCK_SOURCE(__reg__)  (((__reg__) & 0x4000000) >> 26u)
#define SET_DEVICE_GPHY_CONTROL_STATUS_TLP_CLOCK_SOURCE(__val__)  (((__val__) << 26u) & 0x4000000u)
#define     DEVICE_GPHY_CONTROL_STATUS_SWITCHING_REGULATOR_POWER_DOWN_SHIFT 27u
#define     DEVICE_GPHY_CONTROL_STATUS_SWITCHING_REGULATOR_POWER_DOWN_MASK  0x8000000u
#define GET_DEVICE_GPHY_CONTROL_STATUS_SWITCHING_REGULATOR_POWER_DOWN(__reg__)  (((__reg__) & 0x8000000) >> 27u)
#define SET_DEVICE_GPHY_CONTROL_STATUS_SWITCHING_REGULATOR_POWER_DOWN(__val__)  (((__val__) << 27u) & 0x8000000u)

/** @brief Register definition for @ref DEVICE_t.GphyControlStatus. */
typedef register_container RegDEVICEGphyControlStatus_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief When this bit is set, GPHY will be powered down. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, GPHYIDDQ, 0, 1)
        /** @brief When this bit is set, BIAS will be powered down. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, BIASIDDQ, 1, 1)
        /** @brief Software reset for all the CPMU logic expect for registers. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, CPMUSoftwareReset, 2, 1)
        /** @brief Software reset for resetting all the registers to default. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, CPMURegisterSoftwareReset, 3, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PowerDown, 4, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_14_5, 5, 10)
        /** @brief Setting this bit will powerdown SGMII-PCS module. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, SGMII_DIV_PCSPowerDown, 15, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_24_16, 16, 9)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, NCSIPLLLockStatus, 25, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, TLPClockSource, 26, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, SwitchingRegulatorPowerDown, 27, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_28, 28, 4)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_28, 28, 4)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, SwitchingRegulatorPowerDown, 27, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, TLPClockSource, 26, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, NCSIPLLLockStatus, 25, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_24_16, 16, 9)
        /** @brief Setting this bit will powerdown SGMII-PCS module. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, SGMII_DIV_PCSPowerDown, 15, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_14_5, 5, 10)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PowerDown, 4, 1)
        /** @brief Software reset for resetting all the registers to default. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, CPMURegisterSoftwareReset, 3, 1)
        /** @brief Software reset for all the CPMU logic expect for registers. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, CPMUSoftwareReset, 2, 1)
        /** @brief When this bit is set, BIAS will be powered down. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, BIASIDDQ, 1, 1)
        /** @brief When this bit is set, GPHY will be powered down. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, GPHYIDDQ, 0, 1)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "GphyControlStatus"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEGphyControlStatus_t()
    {
        /** @brief constructor for @ref DEVICE_t.GphyControlStatus. */
        r32.setName("GphyControlStatus");
        bits.GPHYIDDQ.setBaseRegister(&r32);
        bits.GPHYIDDQ.setName("GPHYIDDQ");
        bits.BIASIDDQ.setBaseRegister(&r32);
        bits.BIASIDDQ.setName("BIASIDDQ");
        bits.CPMUSoftwareReset.setBaseRegister(&r32);
        bits.CPMUSoftwareReset.setName("CPMUSoftwareReset");
        bits.CPMURegisterSoftwareReset.setBaseRegister(&r32);
        bits.CPMURegisterSoftwareReset.setName("CPMURegisterSoftwareReset");
        bits.PowerDown.setBaseRegister(&r32);
        bits.PowerDown.setName("PowerDown");
        bits.SGMII_DIV_PCSPowerDown.setBaseRegister(&r32);
        bits.SGMII_DIV_PCSPowerDown.setName("SGMII_DIV_PCSPowerDown");
        bits.NCSIPLLLockStatus.setBaseRegister(&r32);
        bits.NCSIPLLLockStatus.setName("NCSIPLLLockStatus");
        bits.TLPClockSource.setBaseRegister(&r32);
        bits.TLPClockSource.setName("TLPClockSource");
        bits.SwitchingRegulatorPowerDown.setBaseRegister(&r32);
        bits.SwitchingRegulatorPowerDown.setName("SwitchingRegulatorPowerDown");
    }
    RegDEVICEGphyControlStatus_t& operator=(const RegDEVICEGphyControlStatus_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEGphyControlStatus_t;

#define REG_DEVICE_CHIP_ID ((volatile APE_DEVICE_H_uint32_t*)0xa0043658) /*  */
/** @brief Register definition for @ref DEVICE_t.ChipId. */
typedef register_container RegDEVICEChipId_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "ChipId"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEChipId_t()
    {
        /** @brief constructor for @ref DEVICE_t.ChipId. */
        r32.setName("ChipId");
    }
    RegDEVICEChipId_t& operator=(const RegDEVICEChipId_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEChipId_t;

#define REG_DEVICE_MUTEX_REQUEST ((volatile APE_DEVICE_H_uint32_t*)0xa004365c) /* Writing a 1 to any of these bits pends a Mutex lock request on behalf of a software agent. The bit is subsequently latched by hardware and shall read 1 as long as the request is pending. Writing a 0 to a bit shall have no effect. */
/** @brief Register definition for @ref DEVICE_t.MutexRequest. */
typedef register_container RegDEVICEMutexRequest_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "MutexRequest"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEMutexRequest_t()
    {
        /** @brief constructor for @ref DEVICE_t.MutexRequest. */
        r32.setName("MutexRequest");
    }
    RegDEVICEMutexRequest_t& operator=(const RegDEVICEMutexRequest_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEMutexRequest_t;

#define REG_DEVICE_MUTEX_GRANT ((volatile APE_DEVICE_H_uint32_t*)0xa0043660) /* Reading this field shall return a maximum of one set bit at any time. The set bit shall point to the lock owner. If the Mutex is not locked, then a read shall return a value 0x0000. Writing a 1 to the already set bit shall relinquish the lock and the set bit shall be cleared. Writing a 1 to an unset bit shall cancel the corresponding pending request if there was one, and the pairing bit in the Mutex_Request_Reg shall be cleared. */
/** @brief Register definition for @ref DEVICE_t.MutexGrant. */
typedef register_container RegDEVICEMutexGrant_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "MutexGrant"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEMutexGrant_t()
    {
        /** @brief constructor for @ref DEVICE_t.MutexGrant. */
        r32.setName("MutexGrant");
    }
    RegDEVICEMutexGrant_t& operator=(const RegDEVICEMutexGrant_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEMutexGrant_t;

#define REG_DEVICE_GPHY_STRAP ((volatile APE_DEVICE_H_uint32_t*)0xa0043664) /*  */
#define     DEVICE_GPHY_STRAP_TXMBUF_ECC_ENABLE_SHIFT 2u
#define     DEVICE_GPHY_STRAP_TXMBUF_ECC_ENABLE_MASK  0x4u
#define GET_DEVICE_GPHY_STRAP_TXMBUF_ECC_ENABLE(__reg__)  (((__reg__) & 0x4) >> 2u)
#define SET_DEVICE_GPHY_STRAP_TXMBUF_ECC_ENABLE(__val__)  (((__val__) << 2u) & 0x4u)
#define     DEVICE_GPHY_STRAP_RXMBUF_ECC_ENABLE_SHIFT 3u
#define     DEVICE_GPHY_STRAP_RXMBUF_ECC_ENABLE_MASK  0x8u
#define GET_DEVICE_GPHY_STRAP_RXMBUF_ECC_ENABLE(__reg__)  (((__reg__) & 0x8) >> 3u)
#define SET_DEVICE_GPHY_STRAP_RXMBUF_ECC_ENABLE(__val__)  (((__val__) << 3u) & 0x8u)
#define     DEVICE_GPHY_STRAP_RXCPU_SPAD_ECC_ENABLE_SHIFT 4u
#define     DEVICE_GPHY_STRAP_RXCPU_SPAD_ECC_ENABLE_MASK  0x10u
#define GET_DEVICE_GPHY_STRAP_RXCPU_SPAD_ECC_ENABLE(__reg__)  (((__reg__) & 0x10) >> 4u)
#define SET_DEVICE_GPHY_STRAP_RXCPU_SPAD_ECC_ENABLE(__val__)  (((__val__) << 4u) & 0x10u)

/** @brief Register definition for @ref DEVICE_t.GphyStrap. */
typedef register_container RegDEVICEGphyStrap_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_1_0, 0, 2)
        /** @brief Enable TXMBUF ECC. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, TXMBUFECCEnable, 2, 1)
        /** @brief Enable RXMBUF ECC. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, RXMBUFECCEnable, 3, 1)
        /** @brief Enable ECC for rxcpu scratchpad. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, RXCPUSPADECCEnable, 4, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_5, 5, 27)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_5, 5, 27)
        /** @brief Enable ECC for rxcpu scratchpad. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, RXCPUSPADECCEnable, 4, 1)
        /** @brief Enable RXMBUF ECC. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, RXMBUFECCEnable, 3, 1)
        /** @brief Enable TXMBUF ECC. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, TXMBUFECCEnable, 2, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_1_0, 0, 2)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "GphyStrap"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEGphyStrap_t()
    {
        /** @brief constructor for @ref DEVICE_t.GphyStrap. */
        r32.setName("GphyStrap");
        bits.TXMBUFECCEnable.setBaseRegister(&r32);
        bits.TXMBUFECCEnable.setName("TXMBUFECCEnable");
        bits.RXMBUFECCEnable.setBaseRegister(&r32);
        bits.RXMBUFECCEnable.setName("RXMBUFECCEnable");
        bits.RXCPUSPADECCEnable.setBaseRegister(&r32);
        bits.RXCPUSPADECCEnable.setName("RXCPUSPADECCEnable");
    }
    RegDEVICEGphyStrap_t& operator=(const RegDEVICEGphyStrap_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEGphyStrap_t;

#define REG_DEVICE_TOP_LEVEL_MISCELLANEOUS_CONTROL_1 ((volatile APE_DEVICE_H_uint32_t*)0xa004367c) /*  */
#define     DEVICE_TOP_LEVEL_MISCELLANEOUS_CONTROL_1_NCSI_CLOCK_OUTPUT_DISABLE_SHIFT 4u
#define     DEVICE_TOP_LEVEL_MISCELLANEOUS_CONTROL_1_NCSI_CLOCK_OUTPUT_DISABLE_MASK  0x10u
#define GET_DEVICE_TOP_LEVEL_MISCELLANEOUS_CONTROL_1_NCSI_CLOCK_OUTPUT_DISABLE(__reg__)  (((__reg__) & 0x10) >> 4u)
#define SET_DEVICE_TOP_LEVEL_MISCELLANEOUS_CONTROL_1_NCSI_CLOCK_OUTPUT_DISABLE(__val__)  (((__val__) << 4u) & 0x10u)
#define     DEVICE_TOP_LEVEL_MISCELLANEOUS_CONTROL_1_LOW_POWER_IDDQ_MODE_SHIFT 5u
#define     DEVICE_TOP_LEVEL_MISCELLANEOUS_CONTROL_1_LOW_POWER_IDDQ_MODE_MASK  0x20u
#define GET_DEVICE_TOP_LEVEL_MISCELLANEOUS_CONTROL_1_LOW_POWER_IDDQ_MODE(__reg__)  (((__reg__) & 0x20) >> 5u)
#define SET_DEVICE_TOP_LEVEL_MISCELLANEOUS_CONTROL_1_LOW_POWER_IDDQ_MODE(__val__)  (((__val__) << 5u) & 0x20u)

/** @brief Register definition for @ref DEVICE_t.TopLevelMiscellaneousControl1. */
typedef register_container RegDEVICETopLevelMiscellaneousControl1_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_3_0, 0, 4)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, NCSIClockOutputDisable, 4, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LowPowerIDDQMode, 5, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_6, 6, 26)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_6, 6, 26)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, LowPowerIDDQMode, 5, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, NCSIClockOutputDisable, 4, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_3_0, 0, 4)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "TopLevelMiscellaneousControl1"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICETopLevelMiscellaneousControl1_t()
    {
        /** @brief constructor for @ref DEVICE_t.TopLevelMiscellaneousControl1. */
        r32.setName("TopLevelMiscellaneousControl1");
        bits.NCSIClockOutputDisable.setBaseRegister(&r32);
        bits.NCSIClockOutputDisable.setName("NCSIClockOutputDisable");
        bits.LowPowerIDDQMode.setBaseRegister(&r32);
        bits.LowPowerIDDQMode.setName("LowPowerIDDQMode");
    }
    RegDEVICETopLevelMiscellaneousControl1_t& operator=(const RegDEVICETopLevelMiscellaneousControl1_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICETopLevelMiscellaneousControl1_t;

#define REG_DEVICE_EEE_MODE ((volatile APE_DEVICE_H_uint32_t*)0xa00436b0) /*  */
#define     DEVICE_EEE_MODE_RX_CPU_ALLOW_LPI_SHIFT 0u
#define     DEVICE_EEE_MODE_RX_CPU_ALLOW_LPI_MASK  0x1u
#define GET_DEVICE_EEE_MODE_RX_CPU_ALLOW_LPI(__reg__)  (((__reg__) & 0x1) >> 0u)
#define SET_DEVICE_EEE_MODE_RX_CPU_ALLOW_LPI(__val__)  (((__val__) << 0u) & 0x1u)
#define     DEVICE_EEE_MODE_DRIVE_ALLOW_LPI_SHIFT 1u
#define     DEVICE_EEE_MODE_DRIVE_ALLOW_LPI_MASK  0x2u
#define GET_DEVICE_EEE_MODE_DRIVE_ALLOW_LPI(__reg__)  (((__reg__) & 0x2) >> 1u)
#define SET_DEVICE_EEE_MODE_DRIVE_ALLOW_LPI(__val__)  (((__val__) << 1u) & 0x2u)
#define     DEVICE_EEE_MODE_APE_TX_DETECTION_ENABLE_SHIFT 2u
#define     DEVICE_EEE_MODE_APE_TX_DETECTION_ENABLE_MASK  0x4u
#define GET_DEVICE_EEE_MODE_APE_TX_DETECTION_ENABLE(__reg__)  (((__reg__) & 0x4) >> 2u)
#define SET_DEVICE_EEE_MODE_APE_TX_DETECTION_ENABLE(__val__)  (((__val__) << 2u) & 0x4u)
#define     DEVICE_EEE_MODE_EEE_LINK_IDLE_DETECTION_ENABLE_SHIFT 3u
#define     DEVICE_EEE_MODE_EEE_LINK_IDLE_DETECTION_ENABLE_MASK  0x8u
#define GET_DEVICE_EEE_MODE_EEE_LINK_IDLE_DETECTION_ENABLE(__reg__)  (((__reg__) & 0x8) >> 3u)
#define SET_DEVICE_EEE_MODE_EEE_LINK_IDLE_DETECTION_ENABLE(__val__)  (((__val__) << 3u) & 0x8u)
#define     DEVICE_EEE_MODE_PCIE_L1_EXIT_DETECTION_ENABLE_SHIFT 4u
#define     DEVICE_EEE_MODE_PCIE_L1_EXIT_DETECTION_ENABLE_MASK  0x10u
#define GET_DEVICE_EEE_MODE_PCIE_L1_EXIT_DETECTION_ENABLE(__reg__)  (((__reg__) & 0x10) >> 4u)
#define SET_DEVICE_EEE_MODE_PCIE_L1_EXIT_DETECTION_ENABLE(__val__)  (((__val__) << 4u) & 0x10u)
#define     DEVICE_EEE_MODE_RX_CPU_ALLOW_LPI_ENABLE_SHIFT 5u
#define     DEVICE_EEE_MODE_RX_CPU_ALLOW_LPI_ENABLE_MASK  0x20u
#define GET_DEVICE_EEE_MODE_RX_CPU_ALLOW_LPI_ENABLE(__reg__)  (((__reg__) & 0x20) >> 5u)
#define SET_DEVICE_EEE_MODE_RX_CPU_ALLOW_LPI_ENABLE(__val__)  (((__val__) << 5u) & 0x20u)
#define     DEVICE_EEE_MODE_SEND_INDEX_DETECTION_ENABLE_SHIFT 6u
#define     DEVICE_EEE_MODE_SEND_INDEX_DETECTION_ENABLE_MASK  0x40u
#define GET_DEVICE_EEE_MODE_SEND_INDEX_DETECTION_ENABLE(__reg__)  (((__reg__) & 0x40) >> 6u)
#define SET_DEVICE_EEE_MODE_SEND_INDEX_DETECTION_ENABLE(__val__)  (((__val__) << 6u) & 0x40u)
#define     DEVICE_EEE_MODE_USER_LPI_ENABLE_SHIFT 7u
#define     DEVICE_EEE_MODE_USER_LPI_ENABLE_MASK  0x80u
#define GET_DEVICE_EEE_MODE_USER_LPI_ENABLE(__reg__)  (((__reg__) & 0x80) >> 7u)
#define SET_DEVICE_EEE_MODE_USER_LPI_ENABLE(__val__)  (((__val__) << 7u) & 0x80u)
#define     DEVICE_EEE_MODE_TX_LPI_ENABLE_SHIFT 8u
#define     DEVICE_EEE_MODE_TX_LPI_ENABLE_MASK  0x100u
#define GET_DEVICE_EEE_MODE_TX_LPI_ENABLE(__reg__)  (((__reg__) & 0x100) >> 8u)
#define SET_DEVICE_EEE_MODE_TX_LPI_ENABLE(__val__)  (((__val__) << 8u) & 0x100u)
#define     DEVICE_EEE_MODE_RX_LPI_ENABLE_SHIFT 9u
#define     DEVICE_EEE_MODE_RX_LPI_ENABLE_MASK  0x200u
#define GET_DEVICE_EEE_MODE_RX_LPI_ENABLE(__reg__)  (((__reg__) & 0x200) >> 9u)
#define SET_DEVICE_EEE_MODE_RX_LPI_ENABLE(__val__)  (((__val__) << 9u) & 0x200u)
#define     DEVICE_EEE_MODE_AUTO_WAKE_ENABLE_SHIFT 10u
#define     DEVICE_EEE_MODE_AUTO_WAKE_ENABLE_MASK  0x400u
#define GET_DEVICE_EEE_MODE_AUTO_WAKE_ENABLE(__reg__)  (((__reg__) & 0x400) >> 10u)
#define SET_DEVICE_EEE_MODE_AUTO_WAKE_ENABLE(__val__)  (((__val__) << 10u) & 0x400u)
#define     DEVICE_EEE_MODE_BLOCK_TIME_SHIFT 11u
#define     DEVICE_EEE_MODE_BLOCK_TIME_MASK  0x7f800u
#define GET_DEVICE_EEE_MODE_BLOCK_TIME(__reg__)  (((__reg__) & 0x7f800) >> 11u)
#define SET_DEVICE_EEE_MODE_BLOCK_TIME(__val__)  (((__val__) << 11u) & 0x7f800u)
#define     DEVICE_EEE_MODE_DRIVE_ALLOW_LPI_ENABLE_SHIFT 19u
#define     DEVICE_EEE_MODE_DRIVE_ALLOW_LPI_ENABLE_MASK  0x80000u
#define GET_DEVICE_EEE_MODE_DRIVE_ALLOW_LPI_ENABLE(__reg__)  (((__reg__) & 0x80000) >> 19u)
#define SET_DEVICE_EEE_MODE_DRIVE_ALLOW_LPI_ENABLE(__val__)  (((__val__) << 19u) & 0x80000u)

/** @brief Register definition for @ref DEVICE_t.EeeMode. */
typedef register_container RegDEVICEEeeMode_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, RXCPUAllowLPI, 0, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, DriveAllowLPI, 1, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, APETXDetectionEnable, 2, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EEELinkIdleDetectionEnable, 3, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PCIeL1ExitDetectionEnable, 4, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, RXCPUAllowLPIEnable, 5, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, SendIndexDetectionEnable, 6, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, UserLPIEnable, 7, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, TXLPIEnable, 8, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, RXLPIEnable, 9, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, AutoWakeEnable, 10, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, BlockTime, 11, 8)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, DriveAllowLPIEnable, 19, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_20, 20, 12)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_20, 20, 12)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, DriveAllowLPIEnable, 19, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, BlockTime, 11, 8)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, AutoWakeEnable, 10, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, RXLPIEnable, 9, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, TXLPIEnable, 8, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, UserLPIEnable, 7, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, SendIndexDetectionEnable, 6, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, RXCPUAllowLPIEnable, 5, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PCIeL1ExitDetectionEnable, 4, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EEELinkIdleDetectionEnable, 3, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, APETXDetectionEnable, 2, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, DriveAllowLPI, 1, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, RXCPUAllowLPI, 0, 1)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "EeeMode"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEEeeMode_t()
    {
        /** @brief constructor for @ref DEVICE_t.EeeMode. */
        r32.setName("EeeMode");
        bits.RXCPUAllowLPI.setBaseRegister(&r32);
        bits.RXCPUAllowLPI.setName("RXCPUAllowLPI");
        bits.DriveAllowLPI.setBaseRegister(&r32);
        bits.DriveAllowLPI.setName("DriveAllowLPI");
        bits.APETXDetectionEnable.setBaseRegister(&r32);
        bits.APETXDetectionEnable.setName("APETXDetectionEnable");
        bits.EEELinkIdleDetectionEnable.setBaseRegister(&r32);
        bits.EEELinkIdleDetectionEnable.setName("EEELinkIdleDetectionEnable");
        bits.PCIeL1ExitDetectionEnable.setBaseRegister(&r32);
        bits.PCIeL1ExitDetectionEnable.setName("PCIeL1ExitDetectionEnable");
        bits.RXCPUAllowLPIEnable.setBaseRegister(&r32);
        bits.RXCPUAllowLPIEnable.setName("RXCPUAllowLPIEnable");
        bits.SendIndexDetectionEnable.setBaseRegister(&r32);
        bits.SendIndexDetectionEnable.setName("SendIndexDetectionEnable");
        bits.UserLPIEnable.setBaseRegister(&r32);
        bits.UserLPIEnable.setName("UserLPIEnable");
        bits.TXLPIEnable.setBaseRegister(&r32);
        bits.TXLPIEnable.setName("TXLPIEnable");
        bits.RXLPIEnable.setBaseRegister(&r32);
        bits.RXLPIEnable.setName("RXLPIEnable");
        bits.AutoWakeEnable.setBaseRegister(&r32);
        bits.AutoWakeEnable.setName("AutoWakeEnable");
        bits.BlockTime.setBaseRegister(&r32);
        bits.BlockTime.setName("BlockTime");
        bits.DriveAllowLPIEnable.setBaseRegister(&r32);
        bits.DriveAllowLPIEnable.setName("DriveAllowLPIEnable");
    }
    RegDEVICEEeeMode_t& operator=(const RegDEVICEEeeMode_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEEeeMode_t;

#define REG_DEVICE_EEE_LINK_IDLE_CONTROL ((volatile APE_DEVICE_H_uint32_t*)0xa00436bc) /*  */
#define     DEVICE_EEE_LINK_IDLE_CONTROL_DEBUG_UART_IDLE_SHIFT 2u
#define     DEVICE_EEE_LINK_IDLE_CONTROL_DEBUG_UART_IDLE_MASK  0x4u
#define GET_DEVICE_EEE_LINK_IDLE_CONTROL_DEBUG_UART_IDLE(__reg__)  (((__reg__) & 0x4) >> 2u)
#define SET_DEVICE_EEE_LINK_IDLE_CONTROL_DEBUG_UART_IDLE(__val__)  (((__val__) << 2u) & 0x4u)

/** @brief Register definition for @ref DEVICE_t.EeeLinkIdleControl. */
typedef register_container RegDEVICEEeeLinkIdleControl_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_1_0, 0, 2)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, DebugUARTIdle, 2, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_3, 3, 29)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_3, 3, 29)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, DebugUARTIdle, 2, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_1_0, 0, 2)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "EeeLinkIdleControl"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEEeeLinkIdleControl_t()
    {
        /** @brief constructor for @ref DEVICE_t.EeeLinkIdleControl. */
        r32.setName("EeeLinkIdleControl");
        bits.DebugUARTIdle.setBaseRegister(&r32);
        bits.DebugUARTIdle.setName("DebugUARTIdle");
    }
    RegDEVICEEeeLinkIdleControl_t& operator=(const RegDEVICEEeeLinkIdleControl_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEEeeLinkIdleControl_t;

#define REG_DEVICE_EEE_CONTROL ((volatile APE_DEVICE_H_uint32_t*)0xa00436d0) /*  */
#define     DEVICE_EEE_CONTROL_EXIT_TIME_SHIFT 0u
#define     DEVICE_EEE_CONTROL_EXIT_TIME_MASK  0xffffu
#define GET_DEVICE_EEE_CONTROL_EXIT_TIME(__reg__)  (((__reg__) & 0xffff) >> 0u)
#define SET_DEVICE_EEE_CONTROL_EXIT_TIME(__val__)  (((__val__) << 0u) & 0xffffu)
#define     DEVICE_EEE_CONTROL_MINIMUM_ASSERT_SHIFT 16u
#define     DEVICE_EEE_CONTROL_MINIMUM_ASSERT_MASK  0xffff0000u
#define GET_DEVICE_EEE_CONTROL_MINIMUM_ASSERT(__reg__)  (((__reg__) & 0xffff0000) >> 16u)
#define SET_DEVICE_EEE_CONTROL_MINIMUM_ASSERT(__val__)  (((__val__) << 16u) & 0xffff0000u)

/** @brief Register definition for @ref DEVICE_t.EeeControl. */
typedef register_container RegDEVICEEeeControl_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, ExitTime, 0, 16)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MinimumAssert, 16, 16)
#elif defined(__BIG_ENDIAN__)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MinimumAssert, 16, 16)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, ExitTime, 0, 16)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "EeeControl"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEEeeControl_t()
    {
        /** @brief constructor for @ref DEVICE_t.EeeControl. */
        r32.setName("EeeControl");
        bits.ExitTime.setBaseRegister(&r32);
        bits.ExitTime.setName("ExitTime");
        bits.MinimumAssert.setBaseRegister(&r32);
        bits.MinimumAssert.setName("MinimumAssert");
    }
    RegDEVICEEeeControl_t& operator=(const RegDEVICEEeeControl_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEEeeControl_t;

#define REG_DEVICE_GLOBAL_MUTEX_REQUEST ((volatile APE_DEVICE_H_uint32_t*)0xa00436f0) /*  */
/** @brief Register definition for @ref DEVICE_t.GlobalMutexRequest. */
typedef register_container RegDEVICEGlobalMutexRequest_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "GlobalMutexRequest"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEGlobalMutexRequest_t()
    {
        /** @brief constructor for @ref DEVICE_t.GlobalMutexRequest. */
        r32.setName("GlobalMutexRequest");
    }
    RegDEVICEGlobalMutexRequest_t& operator=(const RegDEVICEGlobalMutexRequest_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEGlobalMutexRequest_t;

#define REG_DEVICE_GLOBAL_MUTEX_GRANT ((volatile APE_DEVICE_H_uint32_t*)0xa00436f4) /*  */
/** @brief Register definition for @ref DEVICE_t.GlobalMutexGrant. */
typedef register_container RegDEVICEGlobalMutexGrant_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "GlobalMutexGrant"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEGlobalMutexGrant_t()
    {
        /** @brief constructor for @ref DEVICE_t.GlobalMutexGrant. */
        r32.setName("GlobalMutexGrant");
    }
    RegDEVICEGlobalMutexGrant_t& operator=(const RegDEVICEGlobalMutexGrant_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEGlobalMutexGrant_t;

#define REG_DEVICE_MEMORY_ARBITER_MODE ((volatile APE_DEVICE_H_uint32_t*)0xa0044000) /*  */
#define     DEVICE_MEMORY_ARBITER_MODE_ENABLE_SHIFT 1u
#define     DEVICE_MEMORY_ARBITER_MODE_ENABLE_MASK  0x2u
#define GET_DEVICE_MEMORY_ARBITER_MODE_ENABLE(__reg__)  (((__reg__) & 0x2) >> 1u)
#define SET_DEVICE_MEMORY_ARBITER_MODE_ENABLE(__val__)  (((__val__) << 1u) & 0x2u)

/** @brief Register definition for @ref DEVICE_t.MemoryArbiterMode. */
typedef register_container RegDEVICEMemoryArbiterMode_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_0_0, 0, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Enable, 1, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_2, 2, 30)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_2, 2, 30)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Enable, 1, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_0_0, 0, 1)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "MemoryArbiterMode"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEMemoryArbiterMode_t()
    {
        /** @brief constructor for @ref DEVICE_t.MemoryArbiterMode. */
        r32.setName("MemoryArbiterMode");
        bits.Enable.setBaseRegister(&r32);
        bits.Enable.setName("Enable");
    }
    RegDEVICEMemoryArbiterMode_t& operator=(const RegDEVICEMemoryArbiterMode_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEMemoryArbiterMode_t;

#define REG_DEVICE_BUFFER_MANAGER_MODE ((volatile APE_DEVICE_H_uint32_t*)0xa0044400) /*  */
#define     DEVICE_BUFFER_MANAGER_MODE_ENABLE_SHIFT 1u
#define     DEVICE_BUFFER_MANAGER_MODE_ENABLE_MASK  0x2u
#define GET_DEVICE_BUFFER_MANAGER_MODE_ENABLE(__reg__)  (((__reg__) & 0x2) >> 1u)
#define SET_DEVICE_BUFFER_MANAGER_MODE_ENABLE(__val__)  (((__val__) << 1u) & 0x2u)
#define     DEVICE_BUFFER_MANAGER_MODE_ATTENTION_ENABLE_SHIFT 2u
#define     DEVICE_BUFFER_MANAGER_MODE_ATTENTION_ENABLE_MASK  0x4u
#define GET_DEVICE_BUFFER_MANAGER_MODE_ATTENTION_ENABLE(__reg__)  (((__reg__) & 0x4) >> 2u)
#define SET_DEVICE_BUFFER_MANAGER_MODE_ATTENTION_ENABLE(__val__)  (((__val__) << 2u) & 0x4u)
#define     DEVICE_BUFFER_MANAGER_MODE_RESET_RXMBUF_POINTER_SHIFT 5u
#define     DEVICE_BUFFER_MANAGER_MODE_RESET_RXMBUF_POINTER_MASK  0x20u
#define GET_DEVICE_BUFFER_MANAGER_MODE_RESET_RXMBUF_POINTER(__reg__)  (((__reg__) & 0x20) >> 5u)
#define SET_DEVICE_BUFFER_MANAGER_MODE_RESET_RXMBUF_POINTER(__val__)  (((__val__) << 5u) & 0x20u)

/** @brief Register definition for @ref DEVICE_t.BufferManagerMode. */
typedef register_container RegDEVICEBufferManagerMode_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_0_0, 0, 1)
        /** @brief This bit controls whether the Buffer Manager is active or not. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Enable, 1, 1)
        /** @brief When this bit is set to 1, an internal attention is generated when an error occurs. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, AttentionEnable, 2, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_4_3, 3, 2)
        /** @brief When this bit is set, it will cause the RXMBUF allocation and deallocation pointer to reset back to the RXMBUF base. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, ResetRXMBUFPointer, 5, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_6, 6, 26)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_6, 6, 26)
        /** @brief When this bit is set, it will cause the RXMBUF allocation and deallocation pointer to reset back to the RXMBUF base. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, ResetRXMBUFPointer, 5, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_4_3, 3, 2)
        /** @brief When this bit is set to 1, an internal attention is generated when an error occurs. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, AttentionEnable, 2, 1)
        /** @brief This bit controls whether the Buffer Manager is active or not. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Enable, 1, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_0_0, 0, 1)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "BufferManagerMode"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEBufferManagerMode_t()
    {
        /** @brief constructor for @ref DEVICE_t.BufferManagerMode. */
        r32.setName("BufferManagerMode");
        bits.Enable.setBaseRegister(&r32);
        bits.Enable.setName("Enable");
        bits.AttentionEnable.setBaseRegister(&r32);
        bits.AttentionEnable.setName("AttentionEnable");
        bits.ResetRXMBUFPointer.setBaseRegister(&r32);
        bits.ResetRXMBUFPointer.setName("ResetRXMBUFPointer");
    }
    RegDEVICEBufferManagerMode_t& operator=(const RegDEVICEBufferManagerMode_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEBufferManagerMode_t;

#define REG_DEVICE_LSO_NONLSO_BD_READ_DMA_CORRUPTION_ENABLE_CONTROL ((volatile APE_DEVICE_H_uint32_t*)0xa0044910) /*  */
#define     DEVICE_LSO_NONLSO_BD_READ_DMA_CORRUPTION_ENABLE_CONTROL_PCI_REQUEST_BURST_LENGTH_FOR_BD_RDMA_ENGINE_SHIFT 16u
#define     DEVICE_LSO_NONLSO_BD_READ_DMA_CORRUPTION_ENABLE_CONTROL_PCI_REQUEST_BURST_LENGTH_FOR_BD_RDMA_ENGINE_MASK  0x30000u
#define GET_DEVICE_LSO_NONLSO_BD_READ_DMA_CORRUPTION_ENABLE_CONTROL_PCI_REQUEST_BURST_LENGTH_FOR_BD_RDMA_ENGINE(__reg__)  (((__reg__) & 0x30000) >> 16u)
#define SET_DEVICE_LSO_NONLSO_BD_READ_DMA_CORRUPTION_ENABLE_CONTROL_PCI_REQUEST_BURST_LENGTH_FOR_BD_RDMA_ENGINE(__val__)  (((__val__) << 16u) & 0x30000u)
#define     DEVICE_LSO_NONLSO_BD_READ_DMA_CORRUPTION_ENABLE_CONTROL_PCI_REQUEST_BURST_LENGTH_FOR_BD_RDMA_ENGINE_128B 0x0u
#define     DEVICE_LSO_NONLSO_BD_READ_DMA_CORRUPTION_ENABLE_CONTROL_PCI_REQUEST_BURST_LENGTH_FOR_BD_RDMA_ENGINE_256B 0x1u
#define     DEVICE_LSO_NONLSO_BD_READ_DMA_CORRUPTION_ENABLE_CONTROL_PCI_REQUEST_BURST_LENGTH_FOR_BD_RDMA_ENGINE_512B 0x2u
#define     DEVICE_LSO_NONLSO_BD_READ_DMA_CORRUPTION_ENABLE_CONTROL_PCI_REQUEST_BURST_LENGTH_FOR_BD_RDMA_ENGINE_4K 0x3u

#define     DEVICE_LSO_NONLSO_BD_READ_DMA_CORRUPTION_ENABLE_CONTROL_PCI_REQUEST_BURST_LENGTH_FOR_NONLSO_RDMA_ENGINE_SHIFT 18u
#define     DEVICE_LSO_NONLSO_BD_READ_DMA_CORRUPTION_ENABLE_CONTROL_PCI_REQUEST_BURST_LENGTH_FOR_NONLSO_RDMA_ENGINE_MASK  0xc0000u
#define GET_DEVICE_LSO_NONLSO_BD_READ_DMA_CORRUPTION_ENABLE_CONTROL_PCI_REQUEST_BURST_LENGTH_FOR_NONLSO_RDMA_ENGINE(__reg__)  (((__reg__) & 0xc0000) >> 18u)
#define SET_DEVICE_LSO_NONLSO_BD_READ_DMA_CORRUPTION_ENABLE_CONTROL_PCI_REQUEST_BURST_LENGTH_FOR_NONLSO_RDMA_ENGINE(__val__)  (((__val__) << 18u) & 0xc0000u)
#define     DEVICE_LSO_NONLSO_BD_READ_DMA_CORRUPTION_ENABLE_CONTROL_PCI_REQUEST_BURST_LENGTH_FOR_NONLSO_RDMA_ENGINE_128B 0x0u
#define     DEVICE_LSO_NONLSO_BD_READ_DMA_CORRUPTION_ENABLE_CONTROL_PCI_REQUEST_BURST_LENGTH_FOR_NONLSO_RDMA_ENGINE_256B 0x1u
#define     DEVICE_LSO_NONLSO_BD_READ_DMA_CORRUPTION_ENABLE_CONTROL_PCI_REQUEST_BURST_LENGTH_FOR_NONLSO_RDMA_ENGINE_512B 0x2u
#define     DEVICE_LSO_NONLSO_BD_READ_DMA_CORRUPTION_ENABLE_CONTROL_PCI_REQUEST_BURST_LENGTH_FOR_NONLSO_RDMA_ENGINE_4K 0x3u


/** @brief Register definition for @ref DEVICE_t.LsoNonlsoBdReadDmaCorruptionEnableControl. */
typedef register_container RegDEVICELsoNonlsoBdReadDmaCorruptionEnableControl_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_15_0, 0, 16)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PCIRequestBurstLengthforBDRDMAEngine, 16, 2)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PCIRequestBurstLengthforNonLSORDMAEngine, 18, 2)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_20, 20, 12)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_20, 20, 12)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PCIRequestBurstLengthforNonLSORDMAEngine, 18, 2)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PCIRequestBurstLengthforBDRDMAEngine, 16, 2)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_15_0, 0, 16)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "LsoNonlsoBdReadDmaCorruptionEnableControl"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICELsoNonlsoBdReadDmaCorruptionEnableControl_t()
    {
        /** @brief constructor for @ref DEVICE_t.LsoNonlsoBdReadDmaCorruptionEnableControl. */
        r32.setName("LsoNonlsoBdReadDmaCorruptionEnableControl");
        bits.PCIRequestBurstLengthforBDRDMAEngine.setBaseRegister(&r32);
        bits.PCIRequestBurstLengthforBDRDMAEngine.setName("PCIRequestBurstLengthforBDRDMAEngine");
        bits.PCIRequestBurstLengthforNonLSORDMAEngine.setBaseRegister(&r32);
        bits.PCIRequestBurstLengthforNonLSORDMAEngine.setName("PCIRequestBurstLengthforNonLSORDMAEngine");
    }
    RegDEVICELsoNonlsoBdReadDmaCorruptionEnableControl_t& operator=(const RegDEVICELsoNonlsoBdReadDmaCorruptionEnableControl_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICELsoNonlsoBdReadDmaCorruptionEnableControl_t;

#define REG_DEVICE_RX_RISC_MODE ((volatile APE_DEVICE_H_uint32_t*)0xa0045000) /*  */
#define     DEVICE_RX_RISC_MODE_RESET_SHIFT 0u
#define     DEVICE_RX_RISC_MODE_RESET_MASK  0x1u
#define GET_DEVICE_RX_RISC_MODE_RESET(__reg__)  (((__reg__) & 0x1) >> 0u)
#define SET_DEVICE_RX_RISC_MODE_RESET(__val__)  (((__val__) << 0u) & 0x1u)
#define     DEVICE_RX_RISC_MODE_SINGLE_STEP_SHIFT 1u
#define     DEVICE_RX_RISC_MODE_SINGLE_STEP_MASK  0x2u
#define GET_DEVICE_RX_RISC_MODE_SINGLE_STEP(__reg__)  (((__reg__) & 0x2) >> 1u)
#define SET_DEVICE_RX_RISC_MODE_SINGLE_STEP(__val__)  (((__val__) << 1u) & 0x2u)
#define     DEVICE_RX_RISC_MODE_PAGE_0_DATA_HALT_SHIFT 2u
#define     DEVICE_RX_RISC_MODE_PAGE_0_DATA_HALT_MASK  0x4u
#define GET_DEVICE_RX_RISC_MODE_PAGE_0_DATA_HALT(__reg__)  (((__reg__) & 0x4) >> 2u)
#define SET_DEVICE_RX_RISC_MODE_PAGE_0_DATA_HALT(__val__)  (((__val__) << 2u) & 0x4u)
#define     DEVICE_RX_RISC_MODE_PAGE_0_INSTR_HALT_SHIFT 3u
#define     DEVICE_RX_RISC_MODE_PAGE_0_INSTR_HALT_MASK  0x8u
#define GET_DEVICE_RX_RISC_MODE_PAGE_0_INSTR_HALT(__reg__)  (((__reg__) & 0x8) >> 3u)
#define SET_DEVICE_RX_RISC_MODE_PAGE_0_INSTR_HALT(__val__)  (((__val__) << 3u) & 0x8u)
#define     DEVICE_RX_RISC_MODE_ENABLE_DATA_CACHE_SHIFT 5u
#define     DEVICE_RX_RISC_MODE_ENABLE_DATA_CACHE_MASK  0x20u
#define GET_DEVICE_RX_RISC_MODE_ENABLE_DATA_CACHE(__reg__)  (((__reg__) & 0x20) >> 5u)
#define SET_DEVICE_RX_RISC_MODE_ENABLE_DATA_CACHE(__val__)  (((__val__) << 5u) & 0x20u)
#define     DEVICE_RX_RISC_MODE_ROM_FAIL_SHIFT 6u
#define     DEVICE_RX_RISC_MODE_ROM_FAIL_MASK  0x40u
#define GET_DEVICE_RX_RISC_MODE_ROM_FAIL(__reg__)  (((__reg__) & 0x40) >> 6u)
#define SET_DEVICE_RX_RISC_MODE_ROM_FAIL(__val__)  (((__val__) << 6u) & 0x40u)
#define     DEVICE_RX_RISC_MODE_ENABLE_WATCHDOG_SHIFT 7u
#define     DEVICE_RX_RISC_MODE_ENABLE_WATCHDOG_MASK  0x80u
#define GET_DEVICE_RX_RISC_MODE_ENABLE_WATCHDOG(__reg__)  (((__reg__) & 0x80) >> 7u)
#define SET_DEVICE_RX_RISC_MODE_ENABLE_WATCHDOG(__val__)  (((__val__) << 7u) & 0x80u)
#define     DEVICE_RX_RISC_MODE_ENABLE_INSTRUCTION_CACHE_SHIFT 8u
#define     DEVICE_RX_RISC_MODE_ENABLE_INSTRUCTION_CACHE_MASK  0x100u
#define GET_DEVICE_RX_RISC_MODE_ENABLE_INSTRUCTION_CACHE(__reg__)  (((__reg__) & 0x100) >> 8u)
#define SET_DEVICE_RX_RISC_MODE_ENABLE_INSTRUCTION_CACHE(__val__)  (((__val__) << 8u) & 0x100u)
#define     DEVICE_RX_RISC_MODE_FLUSH_INSTRUCTION_CACHE_SHIFT 9u
#define     DEVICE_RX_RISC_MODE_FLUSH_INSTRUCTION_CACHE_MASK  0x200u
#define GET_DEVICE_RX_RISC_MODE_FLUSH_INSTRUCTION_CACHE(__reg__)  (((__reg__) & 0x200) >> 9u)
#define SET_DEVICE_RX_RISC_MODE_FLUSH_INSTRUCTION_CACHE(__val__)  (((__val__) << 9u) & 0x200u)
#define     DEVICE_RX_RISC_MODE_HALT_SHIFT 10u
#define     DEVICE_RX_RISC_MODE_HALT_MASK  0x400u
#define GET_DEVICE_RX_RISC_MODE_HALT(__reg__)  (((__reg__) & 0x400) >> 10u)
#define SET_DEVICE_RX_RISC_MODE_HALT(__val__)  (((__val__) << 10u) & 0x400u)
#define     DEVICE_RX_RISC_MODE_INVALID_DATA_ACCESS_HALT_SHIFT 11u
#define     DEVICE_RX_RISC_MODE_INVALID_DATA_ACCESS_HALT_MASK  0x800u
#define GET_DEVICE_RX_RISC_MODE_INVALID_DATA_ACCESS_HALT(__reg__)  (((__reg__) & 0x800) >> 11u)
#define SET_DEVICE_RX_RISC_MODE_INVALID_DATA_ACCESS_HALT(__val__)  (((__val__) << 11u) & 0x800u)
#define     DEVICE_RX_RISC_MODE_INVALID_INSTRUCTION_ACCESS_HALT_SHIFT 12u
#define     DEVICE_RX_RISC_MODE_INVALID_INSTRUCTION_ACCESS_HALT_MASK  0x1000u
#define GET_DEVICE_RX_RISC_MODE_INVALID_INSTRUCTION_ACCESS_HALT(__reg__)  (((__reg__) & 0x1000) >> 12u)
#define SET_DEVICE_RX_RISC_MODE_INVALID_INSTRUCTION_ACCESS_HALT(__val__)  (((__val__) << 12u) & 0x1000u)
#define     DEVICE_RX_RISC_MODE_ENABLE_MEMORY_ADDRESS_TRAP_HALT_SHIFT 13u
#define     DEVICE_RX_RISC_MODE_ENABLE_MEMORY_ADDRESS_TRAP_HALT_MASK  0x2000u
#define GET_DEVICE_RX_RISC_MODE_ENABLE_MEMORY_ADDRESS_TRAP_HALT(__reg__)  (((__reg__) & 0x2000) >> 13u)
#define SET_DEVICE_RX_RISC_MODE_ENABLE_MEMORY_ADDRESS_TRAP_HALT(__val__)  (((__val__) << 13u) & 0x2000u)
#define     DEVICE_RX_RISC_MODE_ENABLE_REGISTER_ADDRESS_TRAP_HALT_SHIFT 14u
#define     DEVICE_RX_RISC_MODE_ENABLE_REGISTER_ADDRESS_TRAP_HALT_MASK  0x4000u
#define GET_DEVICE_RX_RISC_MODE_ENABLE_REGISTER_ADDRESS_TRAP_HALT(__reg__)  (((__reg__) & 0x4000) >> 14u)
#define SET_DEVICE_RX_RISC_MODE_ENABLE_REGISTER_ADDRESS_TRAP_HALT(__val__)  (((__val__) << 14u) & 0x4000u)

/** @brief Register definition for @ref DEVICE_t.RxRiscMode. */
typedef register_container RegDEVICERxRiscMode_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Self-clearing bit which resets only the RX RISC. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Reset, 0, 1)
        /** @brief Advances the RX RISC's PC for one cycle. If halting condition still exists, the RX RISC will again halt; otherwise, it will resume normal operation. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, SingleStep, 1, 1)
        /** @brief When set, data references to the first 256 bytes of SRAM force the RX RISC to halt and cause bit 3 in the RX RISC state register to be latched. Cleared on reset and Watchdog interrupt. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Page0DataHalt, 2, 1)
        /** @brief When set, instruction references to the first 256 bytes of SRAM force the RX RISC to halt and cause bit 4 in the RX RISC state register to be latched. Cleared on reset and Watchdog interrupt. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Page0InstrHalt, 3, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_4_4, 4, 1)
        /** @brief Enables the data cache. Cleared on reset. Note: Firmware developers should take care to clear this bit before polling internal SRAM memory locations, because the RX RISC processor uses a two-element LRU caching algorithm, which is not affected by writes from the PCI interface. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableDataCache, 5, 1)
        /** @brief Asserted on reset. Cleared by ROM code after it successfully loads code from NVRAM. Afterwards, this bit can be used by software for any purpose. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, ROMFail, 6, 1)
        /** @brief Enables watchdog interrupt state machine. Used in conjunction with Watchdog Clear register, Watchdog Saved PC register and Watchdog Vector register. Cleared on reset and Watchdog interrupt. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableWatchdog, 7, 1)
        /** @brief Enables prefetch logic within the instruction cache. When disabled only a single cache line is read on a cache miss. Cleared on reset. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableInstructionCache, 8, 1)
        /** @brief Self-clearing bit which forces the instruction cache to flush. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, FlushInstructionCache, 9, 1)
        /** @brief Set by TX RISC or the host to halt the RX RISC. Cleared on reset and Watchdog interrupt. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Halt, 10, 1)
        /** @brief When set, the condition that causes RX RISC state bit 5 to be set, also halts the RX RISC. Set by reset. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, InvalidDataAccessHalt, 11, 1)
        /** @brief When set, the condition that causes RX RISC state bit 6 to be set, also halts the RX RISC. Set by reset. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, InvalidInstructionAccessHalt, 12, 1)
        /** @brief When set, if the MA raises the trap signal to this processor, it will halt. CLeared on reset and Watchdog interrupt. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableMemoryAddressTrapHalt, 13, 1)
        /** @brief When set, if the GRC raises the trap signal to this processor, it will halt. CLeared on reset and Watchdog interrupt. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableRegisterAddressTrapHalt, 14, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_15, 15, 17)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_15, 15, 17)
        /** @brief When set, if the GRC raises the trap signal to this processor, it will halt. CLeared on reset and Watchdog interrupt. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableRegisterAddressTrapHalt, 14, 1)
        /** @brief When set, if the MA raises the trap signal to this processor, it will halt. CLeared on reset and Watchdog interrupt. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableMemoryAddressTrapHalt, 13, 1)
        /** @brief When set, the condition that causes RX RISC state bit 6 to be set, also halts the RX RISC. Set by reset. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, InvalidInstructionAccessHalt, 12, 1)
        /** @brief When set, the condition that causes RX RISC state bit 5 to be set, also halts the RX RISC. Set by reset. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, InvalidDataAccessHalt, 11, 1)
        /** @brief Set by TX RISC or the host to halt the RX RISC. Cleared on reset and Watchdog interrupt. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Halt, 10, 1)
        /** @brief Self-clearing bit which forces the instruction cache to flush. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, FlushInstructionCache, 9, 1)
        /** @brief Enables prefetch logic within the instruction cache. When disabled only a single cache line is read on a cache miss. Cleared on reset. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableInstructionCache, 8, 1)
        /** @brief Enables watchdog interrupt state machine. Used in conjunction with Watchdog Clear register, Watchdog Saved PC register and Watchdog Vector register. Cleared on reset and Watchdog interrupt. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableWatchdog, 7, 1)
        /** @brief Asserted on reset. Cleared by ROM code after it successfully loads code from NVRAM. Afterwards, this bit can be used by software for any purpose. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, ROMFail, 6, 1)
        /** @brief Enables the data cache. Cleared on reset. Note: Firmware developers should take care to clear this bit before polling internal SRAM memory locations, because the RX RISC processor uses a two-element LRU caching algorithm, which is not affected by writes from the PCI interface. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, EnableDataCache, 5, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_4_4, 4, 1)
        /** @brief When set, instruction references to the first 256 bytes of SRAM force the RX RISC to halt and cause bit 4 in the RX RISC state register to be latched. Cleared on reset and Watchdog interrupt. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Page0InstrHalt, 3, 1)
        /** @brief When set, data references to the first 256 bytes of SRAM force the RX RISC to halt and cause bit 3 in the RX RISC state register to be latched. Cleared on reset and Watchdog interrupt. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Page0DataHalt, 2, 1)
        /** @brief Advances the RX RISC's PC for one cycle. If halting condition still exists, the RX RISC will again halt; otherwise, it will resume normal operation. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, SingleStep, 1, 1)
        /** @brief Self-clearing bit which resets only the RX RISC. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Reset, 0, 1)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscMode"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscMode_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscMode. */
        r32.setName("RxRiscMode");
        bits.Reset.setBaseRegister(&r32);
        bits.Reset.setName("Reset");
        bits.SingleStep.setBaseRegister(&r32);
        bits.SingleStep.setName("SingleStep");
        bits.Page0DataHalt.setBaseRegister(&r32);
        bits.Page0DataHalt.setName("Page0DataHalt");
        bits.Page0InstrHalt.setBaseRegister(&r32);
        bits.Page0InstrHalt.setName("Page0InstrHalt");
        bits.EnableDataCache.setBaseRegister(&r32);
        bits.EnableDataCache.setName("EnableDataCache");
        bits.ROMFail.setBaseRegister(&r32);
        bits.ROMFail.setName("ROMFail");
        bits.EnableWatchdog.setBaseRegister(&r32);
        bits.EnableWatchdog.setName("EnableWatchdog");
        bits.EnableInstructionCache.setBaseRegister(&r32);
        bits.EnableInstructionCache.setName("EnableInstructionCache");
        bits.FlushInstructionCache.setBaseRegister(&r32);
        bits.FlushInstructionCache.setName("FlushInstructionCache");
        bits.Halt.setBaseRegister(&r32);
        bits.Halt.setName("Halt");
        bits.InvalidDataAccessHalt.setBaseRegister(&r32);
        bits.InvalidDataAccessHalt.setName("InvalidDataAccessHalt");
        bits.InvalidInstructionAccessHalt.setBaseRegister(&r32);
        bits.InvalidInstructionAccessHalt.setName("InvalidInstructionAccessHalt");
        bits.EnableMemoryAddressTrapHalt.setBaseRegister(&r32);
        bits.EnableMemoryAddressTrapHalt.setName("EnableMemoryAddressTrapHalt");
        bits.EnableRegisterAddressTrapHalt.setBaseRegister(&r32);
        bits.EnableRegisterAddressTrapHalt.setName("EnableRegisterAddressTrapHalt");
    }
    RegDEVICERxRiscMode_t& operator=(const RegDEVICERxRiscMode_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscMode_t;

#define REG_DEVICE_RX_RISC_STATUS ((volatile APE_DEVICE_H_uint32_t*)0xa0045004) /*  */
#define     DEVICE_RX_RISC_STATUS_HARDWARE_BREAKPOINT_SHIFT 0u
#define     DEVICE_RX_RISC_STATUS_HARDWARE_BREAKPOINT_MASK  0x1u
#define GET_DEVICE_RX_RISC_STATUS_HARDWARE_BREAKPOINT(__reg__)  (((__reg__) & 0x1) >> 0u)
#define SET_DEVICE_RX_RISC_STATUS_HARDWARE_BREAKPOINT(__val__)  (((__val__) << 0u) & 0x1u)
#define     DEVICE_RX_RISC_STATUS_HALT_INSTRUCTION_EXECUTED_SHIFT 1u
#define     DEVICE_RX_RISC_STATUS_HALT_INSTRUCTION_EXECUTED_MASK  0x2u
#define GET_DEVICE_RX_RISC_STATUS_HALT_INSTRUCTION_EXECUTED(__reg__)  (((__reg__) & 0x2) >> 1u)
#define SET_DEVICE_RX_RISC_STATUS_HALT_INSTRUCTION_EXECUTED(__val__)  (((__val__) << 1u) & 0x2u)
#define     DEVICE_RX_RISC_STATUS_INVALID_INSTRUCTION_SHIFT 2u
#define     DEVICE_RX_RISC_STATUS_INVALID_INSTRUCTION_MASK  0x4u
#define GET_DEVICE_RX_RISC_STATUS_INVALID_INSTRUCTION(__reg__)  (((__reg__) & 0x4) >> 2u)
#define SET_DEVICE_RX_RISC_STATUS_INVALID_INSTRUCTION(__val__)  (((__val__) << 2u) & 0x4u)
#define     DEVICE_RX_RISC_STATUS_PAGE_0_DATA_REFEENCE_SHIFT 3u
#define     DEVICE_RX_RISC_STATUS_PAGE_0_DATA_REFEENCE_MASK  0x8u
#define GET_DEVICE_RX_RISC_STATUS_PAGE_0_DATA_REFEENCE(__reg__)  (((__reg__) & 0x8) >> 3u)
#define SET_DEVICE_RX_RISC_STATUS_PAGE_0_DATA_REFEENCE(__val__)  (((__val__) << 3u) & 0x8u)
#define     DEVICE_RX_RISC_STATUS_PAGE_0_INSTRUCTION_REFERENCE_SHIFT 4u
#define     DEVICE_RX_RISC_STATUS_PAGE_0_INSTRUCTION_REFERENCE_MASK  0x10u
#define GET_DEVICE_RX_RISC_STATUS_PAGE_0_INSTRUCTION_REFERENCE(__reg__)  (((__reg__) & 0x10) >> 4u)
#define SET_DEVICE_RX_RISC_STATUS_PAGE_0_INSTRUCTION_REFERENCE(__val__)  (((__val__) << 4u) & 0x10u)
#define     DEVICE_RX_RISC_STATUS_INVALID_DATA_ACCESS_SHIFT 5u
#define     DEVICE_RX_RISC_STATUS_INVALID_DATA_ACCESS_MASK  0x20u
#define GET_DEVICE_RX_RISC_STATUS_INVALID_DATA_ACCESS(__reg__)  (((__reg__) & 0x20) >> 5u)
#define SET_DEVICE_RX_RISC_STATUS_INVALID_DATA_ACCESS(__val__)  (((__val__) << 5u) & 0x20u)
#define     DEVICE_RX_RISC_STATUS_INVALID_INSTRUCTION_FETCH_SHIFT 6u
#define     DEVICE_RX_RISC_STATUS_INVALID_INSTRUCTION_FETCH_MASK  0x40u
#define GET_DEVICE_RX_RISC_STATUS_INVALID_INSTRUCTION_FETCH(__reg__)  (((__reg__) & 0x40) >> 6u)
#define SET_DEVICE_RX_RISC_STATUS_INVALID_INSTRUCTION_FETCH(__val__)  (((__val__) << 6u) & 0x40u)
#define     DEVICE_RX_RISC_STATUS_BAD_MEMORY_ALIGNMENT_SHIFT 7u
#define     DEVICE_RX_RISC_STATUS_BAD_MEMORY_ALIGNMENT_MASK  0x80u
#define GET_DEVICE_RX_RISC_STATUS_BAD_MEMORY_ALIGNMENT(__reg__)  (((__reg__) & 0x80) >> 7u)
#define SET_DEVICE_RX_RISC_STATUS_BAD_MEMORY_ALIGNMENT(__val__)  (((__val__) << 7u) & 0x80u)
#define     DEVICE_RX_RISC_STATUS_MEMORY_ADDRESS_TRAP_SHIFT 8u
#define     DEVICE_RX_RISC_STATUS_MEMORY_ADDRESS_TRAP_MASK  0x100u
#define GET_DEVICE_RX_RISC_STATUS_MEMORY_ADDRESS_TRAP(__reg__)  (((__reg__) & 0x100) >> 8u)
#define SET_DEVICE_RX_RISC_STATUS_MEMORY_ADDRESS_TRAP(__val__)  (((__val__) << 8u) & 0x100u)
#define     DEVICE_RX_RISC_STATUS_REGISTER_ADDRESS_TRAP_SHIFT 9u
#define     DEVICE_RX_RISC_STATUS_REGISTER_ADDRESS_TRAP_MASK  0x200u
#define GET_DEVICE_RX_RISC_STATUS_REGISTER_ADDRESS_TRAP(__reg__)  (((__reg__) & 0x200) >> 9u)
#define SET_DEVICE_RX_RISC_STATUS_REGISTER_ADDRESS_TRAP(__val__)  (((__val__) << 9u) & 0x200u)
#define     DEVICE_RX_RISC_STATUS_HALTED_SHIFT 10u
#define     DEVICE_RX_RISC_STATUS_HALTED_MASK  0x400u
#define GET_DEVICE_RX_RISC_STATUS_HALTED(__reg__)  (((__reg__) & 0x400) >> 10u)
#define SET_DEVICE_RX_RISC_STATUS_HALTED(__val__)  (((__val__) << 10u) & 0x400u)
#define     DEVICE_RX_RISC_STATUS_UNKNOWN_SHIFT 11u
#define     DEVICE_RX_RISC_STATUS_UNKNOWN_MASK  0x800u
#define GET_DEVICE_RX_RISC_STATUS_UNKNOWN(__reg__)  (((__reg__) & 0x800) >> 11u)
#define SET_DEVICE_RX_RISC_STATUS_UNKNOWN(__val__)  (((__val__) << 11u) & 0x800u)
#define     DEVICE_RX_RISC_STATUS_DATA_ACCESS_STALL_SHIFT 14u
#define     DEVICE_RX_RISC_STATUS_DATA_ACCESS_STALL_MASK  0x4000u
#define GET_DEVICE_RX_RISC_STATUS_DATA_ACCESS_STALL(__reg__)  (((__reg__) & 0x4000) >> 14u)
#define SET_DEVICE_RX_RISC_STATUS_DATA_ACCESS_STALL(__val__)  (((__val__) << 14u) & 0x4000u)
#define     DEVICE_RX_RISC_STATUS_INSTRUCTION_FETCH_STALL_SHIFT 15u
#define     DEVICE_RX_RISC_STATUS_INSTRUCTION_FETCH_STALL_MASK  0x8000u
#define GET_DEVICE_RX_RISC_STATUS_INSTRUCTION_FETCH_STALL(__reg__)  (((__reg__) & 0x8000) >> 15u)
#define SET_DEVICE_RX_RISC_STATUS_INSTRUCTION_FETCH_STALL(__val__)  (((__val__) << 15u) & 0x8000u)
#define     DEVICE_RX_RISC_STATUS_BLOCKING_READ_SHIFT 31u
#define     DEVICE_RX_RISC_STATUS_BLOCKING_READ_MASK  0x80000000u
#define GET_DEVICE_RX_RISC_STATUS_BLOCKING_READ(__reg__)  (((__reg__) & 0x80000000) >> 31u)
#define SET_DEVICE_RX_RISC_STATUS_BLOCKING_READ(__val__)  (((__val__) << 31u) & 0x80000000u)

/** @brief Register definition for @ref DEVICE_t.RxRiscStatus. */
typedef register_container RegDEVICERxRiscStatus_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief When enabled in mode register, indicates hardware breakpoint has been reached. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, HardwareBreakpoint, 0, 1)
        /** @brief When enabled in mode register, indicates hardware breakpoint has been reached. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, HaltInstructionExecuted, 1, 1)
        /** @brief Invalid instruction fetched. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, InvalidInstruction, 2, 1)
        /** @brief When enabled in mode register, indicates data reference within lower 256 bytes of SRAM. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Page0DataRefeence, 3, 1)
        /** @brief When enabled in mode register, indicates the address in the PC is within the lower 256 bytes of SRAM. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Page0InstructionReference, 4, 1)
        /** @brief Data reference to illegal location. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, InvalidDataAccess, 5, 1)
        /** @brief Program Counter (PC) is set to invalid location in processor address space. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, InvalidInstructionFetch, 6, 1)
        /** @brief Load or Store instruction was executed with the least significant two address bits not valid for the width of the operation (e.g., Load word or Load Half-word from an odd byte address). */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, BadMemoryAlignment, 7, 1)
        /** @brief A signal was received from the Memory Arbiter indicating that some BCM5700 block, possibly this processor, accessed a memory location that triggered a software trap. The MA registers are used to configure memory address trapping. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MemoryAddressTrap, 8, 1)
        /** @brief A signal was received from the Global Resources block indicating that this processor accessed a register location that triggered a software trap. The GRC registers are used to configure register address trapping. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, RegisterAddressTrap, 9, 1)
        /** @brief The RX RISC was explicitly halted via bit 10 in the RX RISC Mode register. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Halted, 10, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Unknown, 11, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_13_12, 12, 2)
        /** @brief The processor is currently stalled due to a data access. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, DataAccessStall, 14, 1)
        /** @brief The processor is currently stalled due to an instruction fetch. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, InstructionFetchStall, 15, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_30_16, 16, 15)
        /** @brief A blocking data cache miss occurred, causing the RX RISC to stall while data is fetched from external (to the RX RISC) memory. This is intended as a debugging tool. No state is saved other than the fact that the miss occurred. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, BlockingRead, 31, 1)
#elif defined(__BIG_ENDIAN__)
        /** @brief A blocking data cache miss occurred, causing the RX RISC to stall while data is fetched from external (to the RX RISC) memory. This is intended as a debugging tool. No state is saved other than the fact that the miss occurred. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, BlockingRead, 31, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_30_16, 16, 15)
        /** @brief The processor is currently stalled due to an instruction fetch. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, InstructionFetchStall, 15, 1)
        /** @brief The processor is currently stalled due to a data access. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, DataAccessStall, 14, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_13_12, 12, 2)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Unknown, 11, 1)
        /** @brief The RX RISC was explicitly halted via bit 10 in the RX RISC Mode register. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Halted, 10, 1)
        /** @brief A signal was received from the Global Resources block indicating that this processor accessed a register location that triggered a software trap. The GRC registers are used to configure register address trapping. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, RegisterAddressTrap, 9, 1)
        /** @brief A signal was received from the Memory Arbiter indicating that some BCM5700 block, possibly this processor, accessed a memory location that triggered a software trap. The MA registers are used to configure memory address trapping. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MemoryAddressTrap, 8, 1)
        /** @brief Load or Store instruction was executed with the least significant two address bits not valid for the width of the operation (e.g., Load word or Load Half-word from an odd byte address). */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, BadMemoryAlignment, 7, 1)
        /** @brief Program Counter (PC) is set to invalid location in processor address space. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, InvalidInstructionFetch, 6, 1)
        /** @brief Data reference to illegal location. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, InvalidDataAccess, 5, 1)
        /** @brief When enabled in mode register, indicates the address in the PC is within the lower 256 bytes of SRAM. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Page0InstructionReference, 4, 1)
        /** @brief When enabled in mode register, indicates data reference within lower 256 bytes of SRAM. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Page0DataRefeence, 3, 1)
        /** @brief Invalid instruction fetched. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, InvalidInstruction, 2, 1)
        /** @brief When enabled in mode register, indicates hardware breakpoint has been reached. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, HaltInstructionExecuted, 1, 1)
        /** @brief When enabled in mode register, indicates hardware breakpoint has been reached. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, HardwareBreakpoint, 0, 1)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscStatus"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscStatus_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscStatus. */
        r32.setName("RxRiscStatus");
        bits.HardwareBreakpoint.setBaseRegister(&r32);
        bits.HardwareBreakpoint.setName("HardwareBreakpoint");
        bits.HaltInstructionExecuted.setBaseRegister(&r32);
        bits.HaltInstructionExecuted.setName("HaltInstructionExecuted");
        bits.InvalidInstruction.setBaseRegister(&r32);
        bits.InvalidInstruction.setName("InvalidInstruction");
        bits.Page0DataRefeence.setBaseRegister(&r32);
        bits.Page0DataRefeence.setName("Page0DataRefeence");
        bits.Page0InstructionReference.setBaseRegister(&r32);
        bits.Page0InstructionReference.setName("Page0InstructionReference");
        bits.InvalidDataAccess.setBaseRegister(&r32);
        bits.InvalidDataAccess.setName("InvalidDataAccess");
        bits.InvalidInstructionFetch.setBaseRegister(&r32);
        bits.InvalidInstructionFetch.setName("InvalidInstructionFetch");
        bits.BadMemoryAlignment.setBaseRegister(&r32);
        bits.BadMemoryAlignment.setName("BadMemoryAlignment");
        bits.MemoryAddressTrap.setBaseRegister(&r32);
        bits.MemoryAddressTrap.setName("MemoryAddressTrap");
        bits.RegisterAddressTrap.setBaseRegister(&r32);
        bits.RegisterAddressTrap.setName("RegisterAddressTrap");
        bits.Halted.setBaseRegister(&r32);
        bits.Halted.setName("Halted");
        bits.Unknown.setBaseRegister(&r32);
        bits.Unknown.setName("Unknown");
        bits.DataAccessStall.setBaseRegister(&r32);
        bits.DataAccessStall.setName("DataAccessStall");
        bits.InstructionFetchStall.setBaseRegister(&r32);
        bits.InstructionFetchStall.setName("InstructionFetchStall");
        bits.BlockingRead.setBaseRegister(&r32);
        bits.BlockingRead.setName("BlockingRead");
    }
    RegDEVICERxRiscStatus_t& operator=(const RegDEVICERxRiscStatus_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscStatus_t;

#define REG_DEVICE_RX_RISC_PROGRAM_COUNTER ((volatile APE_DEVICE_H_uint32_t*)0xa004501c) /* The program counter register can be used to read or write the current Program Counter of the each CPU. Reads can occur at any time, however writes can only be performed when the CPU is halted. Writes will also clear any pending instruction in the decode stage of the pipeline. Bits 31-2 are implemented. 1s written to bits 1-0 are ignored. */
/** @brief Register definition for @ref DEVICE_t.RxRiscProgramCounter. */
typedef register_container RegDEVICERxRiscProgramCounter_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscProgramCounter"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscProgramCounter_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscProgramCounter. */
        r32.setName("RxRiscProgramCounter");
    }
    RegDEVICERxRiscProgramCounter_t& operator=(const RegDEVICERxRiscProgramCounter_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscProgramCounter_t;

#define REG_DEVICE_RX_RISC_CURRENT_INSTRUCTION ((volatile APE_DEVICE_H_uint32_t*)0xa0045020) /* This undocumented register contains the current word located at the program counter address loaded in  */
/** @brief Register definition for @ref DEVICE_t.RxRiscCurrentInstruction. */
typedef register_container RegDEVICERxRiscCurrentInstruction_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscCurrentInstruction"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscCurrentInstruction_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscCurrentInstruction. */
        r32.setName("RxRiscCurrentInstruction");
    }
    RegDEVICERxRiscCurrentInstruction_t& operator=(const RegDEVICERxRiscCurrentInstruction_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscCurrentInstruction_t;

#define REG_DEVICE_RX_RISC_HARDWARE_BREAKPOINT ((volatile APE_DEVICE_H_uint32_t*)0xa0045034) /* This register is used to set a hardware breakpoint based on the RISC's program counter (PC). If the PC equals the value in this register, and the hardware breakpoint is enabled, the RISC is halted and the appropriate stopping condition is indicated in the RISC State Register. To enable the hardware breakpoint, simply write the byte address of the instruction to break on and clear the Disable Hardware Breakpoint bit. */
/** @brief Register definition for @ref DEVICE_t.RxRiscHardwareBreakpoint. */
typedef register_container RegDEVICERxRiscHardwareBreakpoint_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscHardwareBreakpoint"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscHardwareBreakpoint_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscHardwareBreakpoint. */
        r32.setName("RxRiscHardwareBreakpoint");
    }
    RegDEVICERxRiscHardwareBreakpoint_t& operator=(const RegDEVICERxRiscHardwareBreakpoint_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscHardwareBreakpoint_t;

#define REG_DEVICE_RX_RISC_REGISTER_0 ((volatile APE_DEVICE_H_uint32_t*)0xa0045200) /* $zero (R0) */
/** @brief Register definition for @ref DEVICE_t.RxRiscRegister0. */
typedef register_container RegDEVICERxRiscRegister0_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscRegister0"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscRegister0_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscRegister0. */
        r32.setName("RxRiscRegister0");
    }
    RegDEVICERxRiscRegister0_t& operator=(const RegDEVICERxRiscRegister0_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscRegister0_t;

#define REG_DEVICE_RX_RISC_REGISTER_1 ((volatile APE_DEVICE_H_uint32_t*)0xa0045204) /* $at (R1) */
/** @brief Register definition for @ref DEVICE_t.RxRiscRegister1. */
typedef register_container RegDEVICERxRiscRegister1_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscRegister1"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscRegister1_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscRegister1. */
        r32.setName("RxRiscRegister1");
    }
    RegDEVICERxRiscRegister1_t& operator=(const RegDEVICERxRiscRegister1_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscRegister1_t;

#define REG_DEVICE_RX_RISC_REGISTER_2 ((volatile APE_DEVICE_H_uint32_t*)0xa0045208) /* $v0 (R2) */
/** @brief Register definition for @ref DEVICE_t.RxRiscRegister2. */
typedef register_container RegDEVICERxRiscRegister2_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscRegister2"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscRegister2_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscRegister2. */
        r32.setName("RxRiscRegister2");
    }
    RegDEVICERxRiscRegister2_t& operator=(const RegDEVICERxRiscRegister2_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscRegister2_t;

#define REG_DEVICE_RX_RISC_REGISTER_3 ((volatile APE_DEVICE_H_uint32_t*)0xa004520c) /* $v1 (R3) */
/** @brief Register definition for @ref DEVICE_t.RxRiscRegister3. */
typedef register_container RegDEVICERxRiscRegister3_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscRegister3"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscRegister3_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscRegister3. */
        r32.setName("RxRiscRegister3");
    }
    RegDEVICERxRiscRegister3_t& operator=(const RegDEVICERxRiscRegister3_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscRegister3_t;

#define REG_DEVICE_RX_RISC_REGISTER_4 ((volatile APE_DEVICE_H_uint32_t*)0xa0045210) /* $a0 (R4) */
/** @brief Register definition for @ref DEVICE_t.RxRiscRegister4. */
typedef register_container RegDEVICERxRiscRegister4_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscRegister4"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscRegister4_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscRegister4. */
        r32.setName("RxRiscRegister4");
    }
    RegDEVICERxRiscRegister4_t& operator=(const RegDEVICERxRiscRegister4_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscRegister4_t;

#define REG_DEVICE_RX_RISC_REGISTER_5 ((volatile APE_DEVICE_H_uint32_t*)0xa0045214) /* $a1 (R5) */
/** @brief Register definition for @ref DEVICE_t.RxRiscRegister5. */
typedef register_container RegDEVICERxRiscRegister5_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscRegister5"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscRegister5_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscRegister5. */
        r32.setName("RxRiscRegister5");
    }
    RegDEVICERxRiscRegister5_t& operator=(const RegDEVICERxRiscRegister5_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscRegister5_t;

#define REG_DEVICE_RX_RISC_REGISTER_6 ((volatile APE_DEVICE_H_uint32_t*)0xa0045218) /* $a2 (R6) */
/** @brief Register definition for @ref DEVICE_t.RxRiscRegister6. */
typedef register_container RegDEVICERxRiscRegister6_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscRegister6"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscRegister6_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscRegister6. */
        r32.setName("RxRiscRegister6");
    }
    RegDEVICERxRiscRegister6_t& operator=(const RegDEVICERxRiscRegister6_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscRegister6_t;

#define REG_DEVICE_RX_RISC_REGISTER_7 ((volatile APE_DEVICE_H_uint32_t*)0xa004521c) /* $a3 (R7) */
/** @brief Register definition for @ref DEVICE_t.RxRiscRegister7. */
typedef register_container RegDEVICERxRiscRegister7_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscRegister7"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscRegister7_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscRegister7. */
        r32.setName("RxRiscRegister7");
    }
    RegDEVICERxRiscRegister7_t& operator=(const RegDEVICERxRiscRegister7_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscRegister7_t;

#define REG_DEVICE_RX_RISC_REGISTER_8 ((volatile APE_DEVICE_H_uint32_t*)0xa0045220) /* $t0 (R8) */
/** @brief Register definition for @ref DEVICE_t.RxRiscRegister8. */
typedef register_container RegDEVICERxRiscRegister8_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscRegister8"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscRegister8_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscRegister8. */
        r32.setName("RxRiscRegister8");
    }
    RegDEVICERxRiscRegister8_t& operator=(const RegDEVICERxRiscRegister8_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscRegister8_t;

#define REG_DEVICE_RX_RISC_REGISTER_9 ((volatile APE_DEVICE_H_uint32_t*)0xa0045224) /* $t1 (R9) */
/** @brief Register definition for @ref DEVICE_t.RxRiscRegister9. */
typedef register_container RegDEVICERxRiscRegister9_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscRegister9"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscRegister9_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscRegister9. */
        r32.setName("RxRiscRegister9");
    }
    RegDEVICERxRiscRegister9_t& operator=(const RegDEVICERxRiscRegister9_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscRegister9_t;

#define REG_DEVICE_RX_RISC_REGISTER_10 ((volatile APE_DEVICE_H_uint32_t*)0xa0045228) /* $t2 (R10) */
/** @brief Register definition for @ref DEVICE_t.RxRiscRegister10. */
typedef register_container RegDEVICERxRiscRegister10_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscRegister10"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscRegister10_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscRegister10. */
        r32.setName("RxRiscRegister10");
    }
    RegDEVICERxRiscRegister10_t& operator=(const RegDEVICERxRiscRegister10_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscRegister10_t;

#define REG_DEVICE_RX_RISC_REGISTER_11 ((volatile APE_DEVICE_H_uint32_t*)0xa004522c) /* $t3 (R11) */
/** @brief Register definition for @ref DEVICE_t.RxRiscRegister11. */
typedef register_container RegDEVICERxRiscRegister11_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscRegister11"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscRegister11_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscRegister11. */
        r32.setName("RxRiscRegister11");
    }
    RegDEVICERxRiscRegister11_t& operator=(const RegDEVICERxRiscRegister11_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscRegister11_t;

#define REG_DEVICE_RX_RISC_REGISTER_12 ((volatile APE_DEVICE_H_uint32_t*)0xa0045230) /* $t4 (R12) */
/** @brief Register definition for @ref DEVICE_t.RxRiscRegister12. */
typedef register_container RegDEVICERxRiscRegister12_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscRegister12"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscRegister12_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscRegister12. */
        r32.setName("RxRiscRegister12");
    }
    RegDEVICERxRiscRegister12_t& operator=(const RegDEVICERxRiscRegister12_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscRegister12_t;

#define REG_DEVICE_RX_RISC_REGISTER_13 ((volatile APE_DEVICE_H_uint32_t*)0xa0045234) /* $t5 (R13) */
/** @brief Register definition for @ref DEVICE_t.RxRiscRegister13. */
typedef register_container RegDEVICERxRiscRegister13_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscRegister13"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscRegister13_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscRegister13. */
        r32.setName("RxRiscRegister13");
    }
    RegDEVICERxRiscRegister13_t& operator=(const RegDEVICERxRiscRegister13_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscRegister13_t;

#define REG_DEVICE_RX_RISC_REGISTER_14 ((volatile APE_DEVICE_H_uint32_t*)0xa0045238) /* $t6 (R14) */
/** @brief Register definition for @ref DEVICE_t.RxRiscRegister14. */
typedef register_container RegDEVICERxRiscRegister14_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscRegister14"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscRegister14_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscRegister14. */
        r32.setName("RxRiscRegister14");
    }
    RegDEVICERxRiscRegister14_t& operator=(const RegDEVICERxRiscRegister14_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscRegister14_t;

#define REG_DEVICE_RX_RISC_REGISTER_15 ((volatile APE_DEVICE_H_uint32_t*)0xa004523c) /* $t7 (R15) */
/** @brief Register definition for @ref DEVICE_t.RxRiscRegister15. */
typedef register_container RegDEVICERxRiscRegister15_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscRegister15"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscRegister15_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscRegister15. */
        r32.setName("RxRiscRegister15");
    }
    RegDEVICERxRiscRegister15_t& operator=(const RegDEVICERxRiscRegister15_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscRegister15_t;

#define REG_DEVICE_RX_RISC_REGISTER_16 ((volatile APE_DEVICE_H_uint32_t*)0xa0045240) /* $s0 (R16) */
/** @brief Register definition for @ref DEVICE_t.RxRiscRegister16. */
typedef register_container RegDEVICERxRiscRegister16_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscRegister16"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscRegister16_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscRegister16. */
        r32.setName("RxRiscRegister16");
    }
    RegDEVICERxRiscRegister16_t& operator=(const RegDEVICERxRiscRegister16_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscRegister16_t;

#define REG_DEVICE_RX_RISC_REGISTER_17 ((volatile APE_DEVICE_H_uint32_t*)0xa0045244) /* $s1 (R17) */
/** @brief Register definition for @ref DEVICE_t.RxRiscRegister17. */
typedef register_container RegDEVICERxRiscRegister17_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscRegister17"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscRegister17_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscRegister17. */
        r32.setName("RxRiscRegister17");
    }
    RegDEVICERxRiscRegister17_t& operator=(const RegDEVICERxRiscRegister17_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscRegister17_t;

#define REG_DEVICE_RX_RISC_REGISTER_18 ((volatile APE_DEVICE_H_uint32_t*)0xa0045248) /* $s2 (R18) */
/** @brief Register definition for @ref DEVICE_t.RxRiscRegister18. */
typedef register_container RegDEVICERxRiscRegister18_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscRegister18"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscRegister18_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscRegister18. */
        r32.setName("RxRiscRegister18");
    }
    RegDEVICERxRiscRegister18_t& operator=(const RegDEVICERxRiscRegister18_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscRegister18_t;

#define REG_DEVICE_RX_RISC_REGISTER_19 ((volatile APE_DEVICE_H_uint32_t*)0xa004524c) /* $s3 (R19) */
/** @brief Register definition for @ref DEVICE_t.RxRiscRegister19. */
typedef register_container RegDEVICERxRiscRegister19_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscRegister19"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscRegister19_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscRegister19. */
        r32.setName("RxRiscRegister19");
    }
    RegDEVICERxRiscRegister19_t& operator=(const RegDEVICERxRiscRegister19_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscRegister19_t;

#define REG_DEVICE_RX_RISC_REGISTER_20 ((volatile APE_DEVICE_H_uint32_t*)0xa0045250) /* $s4 (R20) */
/** @brief Register definition for @ref DEVICE_t.RxRiscRegister20. */
typedef register_container RegDEVICERxRiscRegister20_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscRegister20"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscRegister20_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscRegister20. */
        r32.setName("RxRiscRegister20");
    }
    RegDEVICERxRiscRegister20_t& operator=(const RegDEVICERxRiscRegister20_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscRegister20_t;

#define REG_DEVICE_RX_RISC_REGISTER_21 ((volatile APE_DEVICE_H_uint32_t*)0xa0045254) /* $s5 (R21) */
/** @brief Register definition for @ref DEVICE_t.RxRiscRegister21. */
typedef register_container RegDEVICERxRiscRegister21_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscRegister21"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscRegister21_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscRegister21. */
        r32.setName("RxRiscRegister21");
    }
    RegDEVICERxRiscRegister21_t& operator=(const RegDEVICERxRiscRegister21_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscRegister21_t;

#define REG_DEVICE_RX_RISC_REGISTER_22 ((volatile APE_DEVICE_H_uint32_t*)0xa0045258) /* $s6 (R22) */
/** @brief Register definition for @ref DEVICE_t.RxRiscRegister22. */
typedef register_container RegDEVICERxRiscRegister22_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscRegister22"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscRegister22_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscRegister22. */
        r32.setName("RxRiscRegister22");
    }
    RegDEVICERxRiscRegister22_t& operator=(const RegDEVICERxRiscRegister22_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscRegister22_t;

#define REG_DEVICE_RX_RISC_REGISTER_23 ((volatile APE_DEVICE_H_uint32_t*)0xa004525c) /* $s7 (R23) */
/** @brief Register definition for @ref DEVICE_t.RxRiscRegister23. */
typedef register_container RegDEVICERxRiscRegister23_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscRegister23"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscRegister23_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscRegister23. */
        r32.setName("RxRiscRegister23");
    }
    RegDEVICERxRiscRegister23_t& operator=(const RegDEVICERxRiscRegister23_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscRegister23_t;

#define REG_DEVICE_RX_RISC_REGISTER_24 ((volatile APE_DEVICE_H_uint32_t*)0xa0045260) /* $t8 (R24) */
/** @brief Register definition for @ref DEVICE_t.RxRiscRegister24. */
typedef register_container RegDEVICERxRiscRegister24_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscRegister24"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscRegister24_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscRegister24. */
        r32.setName("RxRiscRegister24");
    }
    RegDEVICERxRiscRegister24_t& operator=(const RegDEVICERxRiscRegister24_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscRegister24_t;

#define REG_DEVICE_RX_RISC_REGISTER_25 ((volatile APE_DEVICE_H_uint32_t*)0xa0045264) /* $t9 (R25) */
/** @brief Register definition for @ref DEVICE_t.RxRiscRegister25. */
typedef register_container RegDEVICERxRiscRegister25_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscRegister25"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscRegister25_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscRegister25. */
        r32.setName("RxRiscRegister25");
    }
    RegDEVICERxRiscRegister25_t& operator=(const RegDEVICERxRiscRegister25_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscRegister25_t;

#define REG_DEVICE_RX_RISC_REGISTER_26 ((volatile APE_DEVICE_H_uint32_t*)0xa0045268) /* $k0 (R26) */
/** @brief Register definition for @ref DEVICE_t.RxRiscRegister26. */
typedef register_container RegDEVICERxRiscRegister26_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscRegister26"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscRegister26_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscRegister26. */
        r32.setName("RxRiscRegister26");
    }
    RegDEVICERxRiscRegister26_t& operator=(const RegDEVICERxRiscRegister26_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscRegister26_t;

#define REG_DEVICE_RX_RISC_REGISTER_27 ((volatile APE_DEVICE_H_uint32_t*)0xa004526c) /* $k1 (R27) */
/** @brief Register definition for @ref DEVICE_t.RxRiscRegister27. */
typedef register_container RegDEVICERxRiscRegister27_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscRegister27"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscRegister27_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscRegister27. */
        r32.setName("RxRiscRegister27");
    }
    RegDEVICERxRiscRegister27_t& operator=(const RegDEVICERxRiscRegister27_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscRegister27_t;

#define REG_DEVICE_RX_RISC_REGISTER_28 ((volatile APE_DEVICE_H_uint32_t*)0xa0045270) /* $gp (R28) */
/** @brief Register definition for @ref DEVICE_t.RxRiscRegister28. */
typedef register_container RegDEVICERxRiscRegister28_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscRegister28"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscRegister28_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscRegister28. */
        r32.setName("RxRiscRegister28");
    }
    RegDEVICERxRiscRegister28_t& operator=(const RegDEVICERxRiscRegister28_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscRegister28_t;

#define REG_DEVICE_RX_RISC_REGISTER_29 ((volatile APE_DEVICE_H_uint32_t*)0xa0045274) /* $sp (R29) */
/** @brief Register definition for @ref DEVICE_t.RxRiscRegister29. */
typedef register_container RegDEVICERxRiscRegister29_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscRegister29"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscRegister29_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscRegister29. */
        r32.setName("RxRiscRegister29");
    }
    RegDEVICERxRiscRegister29_t& operator=(const RegDEVICERxRiscRegister29_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscRegister29_t;

#define REG_DEVICE_RX_RISC_REGISTER_30 ((volatile APE_DEVICE_H_uint32_t*)0xa0045278) /* $fp (R30) */
/** @brief Register definition for @ref DEVICE_t.RxRiscRegister30. */
typedef register_container RegDEVICERxRiscRegister30_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscRegister30"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscRegister30_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscRegister30. */
        r32.setName("RxRiscRegister30");
    }
    RegDEVICERxRiscRegister30_t& operator=(const RegDEVICERxRiscRegister30_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscRegister30_t;

#define REG_DEVICE_RX_RISC_REGISTER_31 ((volatile APE_DEVICE_H_uint32_t*)0xa004527c) /* $ra (R31) */
/** @brief Register definition for @ref DEVICE_t.RxRiscRegister31. */
typedef register_container RegDEVICERxRiscRegister31_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxRiscRegister31"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxRiscRegister31_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxRiscRegister31. */
        r32.setName("RxRiscRegister31");
    }
    RegDEVICERxRiscRegister31_t& operator=(const RegDEVICERxRiscRegister31_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxRiscRegister31_t;

#define REG_DEVICE_6408 ((volatile APE_DEVICE_H_uint32_t*)0xa0046408) /*  */
/** @brief Register definition for @ref DEVICE_t.6408. */
typedef register_container RegDEVICE6408_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "6408"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICE6408_t()
    {
        /** @brief constructor for @ref DEVICE_t.6408. */
        r32.setName("6408");
    }
    RegDEVICE6408_t& operator=(const RegDEVICE6408_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICE6408_t;

#define REG_DEVICE_PCI_POWER_CONSUMPTION_INFO ((volatile APE_DEVICE_H_uint32_t*)0xa0046410) /* This undocumented register is used to set PCIe Power Consumption information as reported in configuration space. It is loaded from NVM configuration data. */
/** @brief Register definition for @ref DEVICE_t.PciPowerConsumptionInfo. */
typedef register_container RegDEVICEPciPowerConsumptionInfo_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "PciPowerConsumptionInfo"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEPciPowerConsumptionInfo_t()
    {
        /** @brief constructor for @ref DEVICE_t.PciPowerConsumptionInfo. */
        r32.setName("PciPowerConsumptionInfo");
    }
    RegDEVICEPciPowerConsumptionInfo_t& operator=(const RegDEVICEPciPowerConsumptionInfo_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEPciPowerConsumptionInfo_t;

#define REG_DEVICE_PCI_POWER_DISSIPATED_INFO ((volatile APE_DEVICE_H_uint32_t*)0xa0046414) /* This undocumented register is used to set PCIe Power Dissipated information as reported in configuration space. It is loaded from NVM configuration data. */
/** @brief Register definition for @ref DEVICE_t.PciPowerDissipatedInfo. */
typedef register_container RegDEVICEPciPowerDissipatedInfo_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "PciPowerDissipatedInfo"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEPciPowerDissipatedInfo_t()
    {
        /** @brief constructor for @ref DEVICE_t.PciPowerDissipatedInfo. */
        r32.setName("PciPowerDissipatedInfo");
    }
    RegDEVICEPciPowerDissipatedInfo_t& operator=(const RegDEVICEPciPowerDissipatedInfo_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEPciPowerDissipatedInfo_t;

#define REG_DEVICE_PCI_VPD_REQUEST ((volatile APE_DEVICE_H_uint32_t*)0xa004642c) /* This undocumented register appears to be used to implement the PCI VPD capability. It is set to the VPD offset which was requested by the host by writing to the VPD register. */
#define     DEVICE_PCI_VPD_REQUEST_REQUESTED_VPD_OFFSET_SHIFT 16u
#define     DEVICE_PCI_VPD_REQUEST_REQUESTED_VPD_OFFSET_MASK  0x7fff0000u
#define GET_DEVICE_PCI_VPD_REQUEST_REQUESTED_VPD_OFFSET(__reg__)  (((__reg__) & 0x7fff0000) >> 16u)
#define SET_DEVICE_PCI_VPD_REQUEST_REQUESTED_VPD_OFFSET(__val__)  (((__val__) << 16u) & 0x7fff0000u)

/** @brief Register definition for @ref DEVICE_t.PciVpdRequest. */
typedef register_container RegDEVICEPciVpdRequest_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_15_0, 0, 16)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, RequestedVPDOffset, 16, 15)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_31, 31, 1)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_31, 31, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, RequestedVPDOffset, 16, 15)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_15_0, 0, 16)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "PciVpdRequest"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEPciVpdRequest_t()
    {
        /** @brief constructor for @ref DEVICE_t.PciVpdRequest. */
        r32.setName("PciVpdRequest");
        bits.RequestedVPDOffset.setBaseRegister(&r32);
        bits.RequestedVPDOffset.setName("RequestedVPDOffset");
    }
    RegDEVICEPciVpdRequest_t& operator=(const RegDEVICEPciVpdRequest_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEPciVpdRequest_t;

#define REG_DEVICE_PCI_VPD_RESPONSE ((volatile APE_DEVICE_H_uint32_t*)0xa0046430) /* This undocumented register appears to be used to implement the PCI VPD capability. Bootcode writes the 32 bits of data loaded from the word requested by  */
/** @brief Register definition for @ref DEVICE_t.PciVpdResponse. */
typedef register_container RegDEVICEPciVpdResponse_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "PciVpdResponse"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEPciVpdResponse_t()
    {
        /** @brief constructor for @ref DEVICE_t.PciVpdResponse. */
        r32.setName("PciVpdResponse");
    }
    RegDEVICEPciVpdResponse_t& operator=(const RegDEVICEPciVpdResponse_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEPciVpdResponse_t;

#define REG_DEVICE_PCI_VENDOR_DEVICE_ID ((volatile APE_DEVICE_H_uint32_t*)0xa0046434) /* This is the undocumented register used to set the PCI Vendor/Device ID, which is configurable from NVM. */
#define     DEVICE_PCI_VENDOR_DEVICE_ID_DEVICE_ID_SHIFT 0u
#define     DEVICE_PCI_VENDOR_DEVICE_ID_DEVICE_ID_MASK  0xffffu
#define GET_DEVICE_PCI_VENDOR_DEVICE_ID_DEVICE_ID(__reg__)  (((__reg__) & 0xffff) >> 0u)
#define SET_DEVICE_PCI_VENDOR_DEVICE_ID_DEVICE_ID(__val__)  (((__val__) << 0u) & 0xffffu)
#define     DEVICE_PCI_VENDOR_DEVICE_ID_VENDOR_ID_SHIFT 16u
#define     DEVICE_PCI_VENDOR_DEVICE_ID_VENDOR_ID_MASK  0xffff0000u
#define GET_DEVICE_PCI_VENDOR_DEVICE_ID_VENDOR_ID(__reg__)  (((__reg__) & 0xffff0000) >> 16u)
#define SET_DEVICE_PCI_VENDOR_DEVICE_ID_VENDOR_ID(__val__)  (((__val__) << 16u) & 0xffff0000u)

/** @brief Register definition for @ref DEVICE_t.PciVendorDeviceId. */
typedef register_container RegDEVICEPciVendorDeviceId_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, DeviceID, 0, 16)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, VendorID, 16, 16)
#elif defined(__BIG_ENDIAN__)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, VendorID, 16, 16)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, DeviceID, 0, 16)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "PciVendorDeviceId"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEPciVendorDeviceId_t()
    {
        /** @brief constructor for @ref DEVICE_t.PciVendorDeviceId. */
        r32.setName("PciVendorDeviceId");
        bits.DeviceID.setBaseRegister(&r32);
        bits.DeviceID.setName("DeviceID");
        bits.VendorID.setBaseRegister(&r32);
        bits.VendorID.setName("VendorID");
    }
    RegDEVICEPciVendorDeviceId_t& operator=(const RegDEVICEPciVendorDeviceId_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEPciVendorDeviceId_t;

#define REG_DEVICE_PCI_SUBSYSTEM_ID ((volatile APE_DEVICE_H_uint32_t*)0xa0046438) /* This is the undocumented register used to set the PCI Subsystem/Subsystem Vendor ID, which is configurable from NVM. */
#define     DEVICE_PCI_SUBSYSTEM_ID_SUBSYSTEM_VENDOR_ID_SHIFT 0u
#define     DEVICE_PCI_SUBSYSTEM_ID_SUBSYSTEM_VENDOR_ID_MASK  0xffffu
#define GET_DEVICE_PCI_SUBSYSTEM_ID_SUBSYSTEM_VENDOR_ID(__reg__)  (((__reg__) & 0xffff) >> 0u)
#define SET_DEVICE_PCI_SUBSYSTEM_ID_SUBSYSTEM_VENDOR_ID(__val__)  (((__val__) << 0u) & 0xffffu)
#define     DEVICE_PCI_SUBSYSTEM_ID_SUBSYSTEM_ID_SHIFT 16u
#define     DEVICE_PCI_SUBSYSTEM_ID_SUBSYSTEM_ID_MASK  0xffff0000u
#define GET_DEVICE_PCI_SUBSYSTEM_ID_SUBSYSTEM_ID(__reg__)  (((__reg__) & 0xffff0000) >> 16u)
#define SET_DEVICE_PCI_SUBSYSTEM_ID_SUBSYSTEM_ID(__val__)  (((__val__) << 16u) & 0xffff0000u)

/** @brief Register definition for @ref DEVICE_t.PciSubsystemId. */
typedef register_container RegDEVICEPciSubsystemId_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, SubsystemVendorID, 0, 16)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, SubsystemID, 16, 16)
#elif defined(__BIG_ENDIAN__)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, SubsystemID, 16, 16)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, SubsystemVendorID, 0, 16)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "PciSubsystemId"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEPciSubsystemId_t()
    {
        /** @brief constructor for @ref DEVICE_t.PciSubsystemId. */
        r32.setName("PciSubsystemId");
        bits.SubsystemVendorID.setBaseRegister(&r32);
        bits.SubsystemVendorID.setName("SubsystemVendorID");
        bits.SubsystemID.setBaseRegister(&r32);
        bits.SubsystemID.setName("SubsystemID");
    }
    RegDEVICEPciSubsystemId_t& operator=(const RegDEVICEPciSubsystemId_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEPciSubsystemId_t;

#define REG_DEVICE_PCI_CLASS_CODE_REVISION ((volatile APE_DEVICE_H_uint32_t*)0xa004643c) /* This undocumented register is suspected to set the class code and device revision in PCI configuration space. Unconfirmed. */
/** @brief Register definition for @ref DEVICE_t.PciClassCodeRevision. */
typedef register_container RegDEVICEPciClassCodeRevision_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "PciClassCodeRevision"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEPciClassCodeRevision_t()
    {
        /** @brief constructor for @ref DEVICE_t.PciClassCodeRevision. */
        r32.setName("PciClassCodeRevision");
    }
    RegDEVICEPciClassCodeRevision_t& operator=(const RegDEVICEPciClassCodeRevision_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEPciClassCodeRevision_t;

#define REG_DEVICE_64C0 ((volatile APE_DEVICE_H_uint32_t*)0xa00464c0) /*  */
/** @brief Register definition for @ref DEVICE_t.64c0. */
typedef register_container RegDEVICE64c0_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "64c0"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICE64c0_t()
    {
        /** @brief constructor for @ref DEVICE_t.64c0. */
        r32.setName("64c0");
    }
    RegDEVICE64c0_t& operator=(const RegDEVICE64c0_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICE64c0_t;

#define REG_DEVICE_64C8 ((volatile APE_DEVICE_H_uint32_t*)0xa00464c8) /*  */
/** @brief Register definition for @ref DEVICE_t.64c8. */
typedef register_container RegDEVICE64c8_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "64c8"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICE64c8_t()
    {
        /** @brief constructor for @ref DEVICE_t.64c8. */
        r32.setName("64c8");
    }
    RegDEVICE64c8_t& operator=(const RegDEVICE64c8_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICE64c8_t;

#define REG_DEVICE_64DC ((volatile APE_DEVICE_H_uint32_t*)0xa00464dc) /*  */
/** @brief Register definition for @ref DEVICE_t.64dc. */
typedef register_container RegDEVICE64dc_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "64dc"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICE64dc_t()
    {
        /** @brief constructor for @ref DEVICE_t.64dc. */
        r32.setName("64dc");
    }
    RegDEVICE64dc_t& operator=(const RegDEVICE64dc_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICE64dc_t;

#define REG_DEVICE_PCI_SERIAL_NUMBER_LOW ((volatile APE_DEVICE_H_uint32_t*)0xa0046504) /* This sets the low 32 bits of the 64-bit device serial number, which isexposed as a PCIe capability in configuration space. */
/** @brief Register definition for @ref DEVICE_t.PciSerialNumberLow. */
typedef register_container RegDEVICEPciSerialNumberLow_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "PciSerialNumberLow"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEPciSerialNumberLow_t()
    {
        /** @brief constructor for @ref DEVICE_t.PciSerialNumberLow. */
        r32.setName("PciSerialNumberLow");
    }
    RegDEVICEPciSerialNumberLow_t& operator=(const RegDEVICEPciSerialNumberLow_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEPciSerialNumberLow_t;

#define REG_DEVICE_PCI_SERIAL_NUMBER_HIGH ((volatile APE_DEVICE_H_uint32_t*)0xa0046508) /* This sets the high 32 bits of the 64-bit device serial number, which isexposed as a PCIe capability in configuration space. */
/** @brief Register definition for @ref DEVICE_t.PciSerialNumberHigh. */
typedef register_container RegDEVICEPciSerialNumberHigh_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "PciSerialNumberHigh"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEPciSerialNumberHigh_t()
    {
        /** @brief constructor for @ref DEVICE_t.PciSerialNumberHigh. */
        r32.setName("PciSerialNumberHigh");
    }
    RegDEVICEPciSerialNumberHigh_t& operator=(const RegDEVICEPciSerialNumberHigh_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEPciSerialNumberHigh_t;

#define REG_DEVICE_PCI_POWER_BUDGET_0 ((volatile APE_DEVICE_H_uint32_t*)0xa0046510) /* Used to report power budget capability data to the host. The values are loaded from NVM, and up to eight values may be specified.  */
#define     DEVICE_PCI_POWER_BUDGET_0_BASE_POWER_SHIFT 0u
#define     DEVICE_PCI_POWER_BUDGET_0_BASE_POWER_MASK  0xffu
#define GET_DEVICE_PCI_POWER_BUDGET_0_BASE_POWER(__reg__)  (((__reg__) & 0xff) >> 0u)
#define SET_DEVICE_PCI_POWER_BUDGET_0_BASE_POWER(__val__)  (((__val__) << 0u) & 0xffu)
#define     DEVICE_PCI_POWER_BUDGET_0_DATA_SCALE_SHIFT 8u
#define     DEVICE_PCI_POWER_BUDGET_0_DATA_SCALE_MASK  0x300u
#define GET_DEVICE_PCI_POWER_BUDGET_0_DATA_SCALE(__reg__)  (((__reg__) & 0x300) >> 8u)
#define SET_DEVICE_PCI_POWER_BUDGET_0_DATA_SCALE(__val__)  (((__val__) << 8u) & 0x300u)
#define     DEVICE_PCI_POWER_BUDGET_0_DATA_SCALE_1_0X 0x0u
#define     DEVICE_PCI_POWER_BUDGET_0_DATA_SCALE_0_1X 0x1u
#define     DEVICE_PCI_POWER_BUDGET_0_DATA_SCALE_0_01X 0x2u
#define     DEVICE_PCI_POWER_BUDGET_0_DATA_SCALE_0_001X 0x3u

#define     DEVICE_PCI_POWER_BUDGET_0_PM_SUB_STATE_SHIFT 10u
#define     DEVICE_PCI_POWER_BUDGET_0_PM_SUB_STATE_MASK  0x1c00u
#define GET_DEVICE_PCI_POWER_BUDGET_0_PM_SUB_STATE(__reg__)  (((__reg__) & 0x1c00) >> 10u)
#define SET_DEVICE_PCI_POWER_BUDGET_0_PM_SUB_STATE(__val__)  (((__val__) << 10u) & 0x1c00u)
#define     DEVICE_PCI_POWER_BUDGET_0_PM_STATE_SHIFT 13u
#define     DEVICE_PCI_POWER_BUDGET_0_PM_STATE_MASK  0x6000u
#define GET_DEVICE_PCI_POWER_BUDGET_0_PM_STATE(__reg__)  (((__reg__) & 0x6000) >> 13u)
#define SET_DEVICE_PCI_POWER_BUDGET_0_PM_STATE(__val__)  (((__val__) << 13u) & 0x6000u)
#define     DEVICE_PCI_POWER_BUDGET_0_PM_STATE_D0 0x0u
#define     DEVICE_PCI_POWER_BUDGET_0_PM_STATE_D1 0x1u
#define     DEVICE_PCI_POWER_BUDGET_0_PM_STATE_D2 0x2u
#define     DEVICE_PCI_POWER_BUDGET_0_PM_STATE_D3 0x3u

#define     DEVICE_PCI_POWER_BUDGET_0_TYPE_SHIFT 15u
#define     DEVICE_PCI_POWER_BUDGET_0_TYPE_MASK  0x38000u
#define GET_DEVICE_PCI_POWER_BUDGET_0_TYPE(__reg__)  (((__reg__) & 0x38000) >> 15u)
#define SET_DEVICE_PCI_POWER_BUDGET_0_TYPE(__val__)  (((__val__) << 15u) & 0x38000u)
#define     DEVICE_PCI_POWER_BUDGET_0_TYPE_PME_AUX 0x0u
#define     DEVICE_PCI_POWER_BUDGET_0_TYPE_AUXILIARY 0x1u
#define     DEVICE_PCI_POWER_BUDGET_0_TYPE_IDLE 0x2u
#define     DEVICE_PCI_POWER_BUDGET_0_TYPE_SUSTAINED 0x3u
#define     DEVICE_PCI_POWER_BUDGET_0_TYPE_MAXIMUM 0x7u

#define     DEVICE_PCI_POWER_BUDGET_0_POWER_RAIL_SHIFT 18u
#define     DEVICE_PCI_POWER_BUDGET_0_POWER_RAIL_MASK  0x1c0000u
#define GET_DEVICE_PCI_POWER_BUDGET_0_POWER_RAIL(__reg__)  (((__reg__) & 0x1c0000) >> 18u)
#define SET_DEVICE_PCI_POWER_BUDGET_0_POWER_RAIL(__val__)  (((__val__) << 18u) & 0x1c0000u)
#define     DEVICE_PCI_POWER_BUDGET_0_POWER_RAIL_POWER_12V 0x0u
#define     DEVICE_PCI_POWER_BUDGET_0_POWER_RAIL_POWER_3_3V 0x1u
#define     DEVICE_PCI_POWER_BUDGET_0_POWER_RAIL_POWER_1_5V_OR_1_8V 0x2u
#define     DEVICE_PCI_POWER_BUDGET_0_POWER_RAIL_THERMAL 0x7u


/** @brief Register definition for @ref DEVICE_t.PciPowerBudget0. */
typedef register_container RegDEVICEPciPowerBudget0_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Specifies in watts the base power value in the given operating condition. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, BasePower, 0, 8)
        /** @brief Specifies the scale to apply to the Base Power value. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, DataScale, 8, 2)
        /** @brief Specifies the power management sub state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PMSubState, 10, 3)
        /** @brief Specifies the power management state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PMState, 13, 2)
        /** @brief Specifies the power management state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Type, 15, 3)
        /** @brief Specifies the thermal load or power rail of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PowerRail, 18, 3)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_21, 21, 11)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_21, 21, 11)
        /** @brief Specifies the thermal load or power rail of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PowerRail, 18, 3)
        /** @brief Specifies the power management state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Type, 15, 3)
        /** @brief Specifies the power management state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PMState, 13, 2)
        /** @brief Specifies the power management sub state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PMSubState, 10, 3)
        /** @brief Specifies the scale to apply to the Base Power value. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, DataScale, 8, 2)
        /** @brief Specifies in watts the base power value in the given operating condition. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, BasePower, 0, 8)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "PciPowerBudget0"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEPciPowerBudget0_t()
    {
        /** @brief constructor for @ref DEVICE_t.PciPowerBudget0. */
        r32.setName("PciPowerBudget0");
        bits.BasePower.setBaseRegister(&r32);
        bits.BasePower.setName("BasePower");
        bits.DataScale.setBaseRegister(&r32);
        bits.DataScale.setName("DataScale");
        bits.PMSubState.setBaseRegister(&r32);
        bits.PMSubState.setName("PMSubState");
        bits.PMState.setBaseRegister(&r32);
        bits.PMState.setName("PMState");
        bits.Type.setBaseRegister(&r32);
        bits.Type.setName("Type");
        bits.PowerRail.setBaseRegister(&r32);
        bits.PowerRail.setName("PowerRail");
    }
    RegDEVICEPciPowerBudget0_t& operator=(const RegDEVICEPciPowerBudget0_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEPciPowerBudget0_t;

#define REG_DEVICE_PCI_POWER_BUDGET_1 ((volatile APE_DEVICE_H_uint32_t*)0xa0046514) /* See  */
#define     DEVICE_PCI_POWER_BUDGET_1_BASE_POWER_SHIFT 0u
#define     DEVICE_PCI_POWER_BUDGET_1_BASE_POWER_MASK  0xffu
#define GET_DEVICE_PCI_POWER_BUDGET_1_BASE_POWER(__reg__)  (((__reg__) & 0xff) >> 0u)
#define SET_DEVICE_PCI_POWER_BUDGET_1_BASE_POWER(__val__)  (((__val__) << 0u) & 0xffu)
#define     DEVICE_PCI_POWER_BUDGET_1_DATA_SCALE_SHIFT 8u
#define     DEVICE_PCI_POWER_BUDGET_1_DATA_SCALE_MASK  0x300u
#define GET_DEVICE_PCI_POWER_BUDGET_1_DATA_SCALE(__reg__)  (((__reg__) & 0x300) >> 8u)
#define SET_DEVICE_PCI_POWER_BUDGET_1_DATA_SCALE(__val__)  (((__val__) << 8u) & 0x300u)
#define     DEVICE_PCI_POWER_BUDGET_1_DATA_SCALE_1_0X 0x0u
#define     DEVICE_PCI_POWER_BUDGET_1_DATA_SCALE_0_1X 0x1u
#define     DEVICE_PCI_POWER_BUDGET_1_DATA_SCALE_0_01X 0x2u
#define     DEVICE_PCI_POWER_BUDGET_1_DATA_SCALE_0_001X 0x3u

#define     DEVICE_PCI_POWER_BUDGET_1_PM_SUB_STATE_SHIFT 10u
#define     DEVICE_PCI_POWER_BUDGET_1_PM_SUB_STATE_MASK  0x1c00u
#define GET_DEVICE_PCI_POWER_BUDGET_1_PM_SUB_STATE(__reg__)  (((__reg__) & 0x1c00) >> 10u)
#define SET_DEVICE_PCI_POWER_BUDGET_1_PM_SUB_STATE(__val__)  (((__val__) << 10u) & 0x1c00u)
#define     DEVICE_PCI_POWER_BUDGET_1_PM_STATE_SHIFT 13u
#define     DEVICE_PCI_POWER_BUDGET_1_PM_STATE_MASK  0x6000u
#define GET_DEVICE_PCI_POWER_BUDGET_1_PM_STATE(__reg__)  (((__reg__) & 0x6000) >> 13u)
#define SET_DEVICE_PCI_POWER_BUDGET_1_PM_STATE(__val__)  (((__val__) << 13u) & 0x6000u)
#define     DEVICE_PCI_POWER_BUDGET_1_PM_STATE_D0 0x0u
#define     DEVICE_PCI_POWER_BUDGET_1_PM_STATE_D1 0x1u
#define     DEVICE_PCI_POWER_BUDGET_1_PM_STATE_D2 0x2u
#define     DEVICE_PCI_POWER_BUDGET_1_PM_STATE_D3 0x3u

#define     DEVICE_PCI_POWER_BUDGET_1_TYPE_SHIFT 15u
#define     DEVICE_PCI_POWER_BUDGET_1_TYPE_MASK  0x38000u
#define GET_DEVICE_PCI_POWER_BUDGET_1_TYPE(__reg__)  (((__reg__) & 0x38000) >> 15u)
#define SET_DEVICE_PCI_POWER_BUDGET_1_TYPE(__val__)  (((__val__) << 15u) & 0x38000u)
#define     DEVICE_PCI_POWER_BUDGET_1_TYPE_PME_AUX 0x0u
#define     DEVICE_PCI_POWER_BUDGET_1_TYPE_AUXILIARY 0x1u
#define     DEVICE_PCI_POWER_BUDGET_1_TYPE_IDLE 0x2u
#define     DEVICE_PCI_POWER_BUDGET_1_TYPE_SUSTAINED 0x3u
#define     DEVICE_PCI_POWER_BUDGET_1_TYPE_MAXIMUM 0x7u

#define     DEVICE_PCI_POWER_BUDGET_1_POWER_RAIL_SHIFT 18u
#define     DEVICE_PCI_POWER_BUDGET_1_POWER_RAIL_MASK  0x1c0000u
#define GET_DEVICE_PCI_POWER_BUDGET_1_POWER_RAIL(__reg__)  (((__reg__) & 0x1c0000) >> 18u)
#define SET_DEVICE_PCI_POWER_BUDGET_1_POWER_RAIL(__val__)  (((__val__) << 18u) & 0x1c0000u)
#define     DEVICE_PCI_POWER_BUDGET_1_POWER_RAIL_POWER_12V 0x0u
#define     DEVICE_PCI_POWER_BUDGET_1_POWER_RAIL_POWER_3_3V 0x1u
#define     DEVICE_PCI_POWER_BUDGET_1_POWER_RAIL_POWER_1_5V_OR_1_8V 0x2u
#define     DEVICE_PCI_POWER_BUDGET_1_POWER_RAIL_THERMAL 0x7u


/** @brief Register definition for @ref DEVICE_t.PciPowerBudget1. */
typedef register_container RegDEVICEPciPowerBudget1_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Specifies in watts the base power value in the given operating condition. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, BasePower, 0, 8)
        /** @brief Specifies the scale to apply to the Base Power value. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, DataScale, 8, 2)
        /** @brief Specifies the power management sub state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PMSubState, 10, 3)
        /** @brief Specifies the power management state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PMState, 13, 2)
        /** @brief Specifies the power management state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Type, 15, 3)
        /** @brief Specifies the thermal load or power rail of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PowerRail, 18, 3)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_21, 21, 11)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_21, 21, 11)
        /** @brief Specifies the thermal load or power rail of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PowerRail, 18, 3)
        /** @brief Specifies the power management state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Type, 15, 3)
        /** @brief Specifies the power management state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PMState, 13, 2)
        /** @brief Specifies the power management sub state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PMSubState, 10, 3)
        /** @brief Specifies the scale to apply to the Base Power value. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, DataScale, 8, 2)
        /** @brief Specifies in watts the base power value in the given operating condition. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, BasePower, 0, 8)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "PciPowerBudget1"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEPciPowerBudget1_t()
    {
        /** @brief constructor for @ref DEVICE_t.PciPowerBudget1. */
        r32.setName("PciPowerBudget1");
        bits.BasePower.setBaseRegister(&r32);
        bits.BasePower.setName("BasePower");
        bits.DataScale.setBaseRegister(&r32);
        bits.DataScale.setName("DataScale");
        bits.PMSubState.setBaseRegister(&r32);
        bits.PMSubState.setName("PMSubState");
        bits.PMState.setBaseRegister(&r32);
        bits.PMState.setName("PMState");
        bits.Type.setBaseRegister(&r32);
        bits.Type.setName("Type");
        bits.PowerRail.setBaseRegister(&r32);
        bits.PowerRail.setName("PowerRail");
    }
    RegDEVICEPciPowerBudget1_t& operator=(const RegDEVICEPciPowerBudget1_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEPciPowerBudget1_t;

#define REG_DEVICE_PCI_POWER_BUDGET_2 ((volatile APE_DEVICE_H_uint32_t*)0xa0046518) /* See  */
#define     DEVICE_PCI_POWER_BUDGET_2_BASE_POWER_SHIFT 0u
#define     DEVICE_PCI_POWER_BUDGET_2_BASE_POWER_MASK  0xffu
#define GET_DEVICE_PCI_POWER_BUDGET_2_BASE_POWER(__reg__)  (((__reg__) & 0xff) >> 0u)
#define SET_DEVICE_PCI_POWER_BUDGET_2_BASE_POWER(__val__)  (((__val__) << 0u) & 0xffu)
#define     DEVICE_PCI_POWER_BUDGET_2_DATA_SCALE_SHIFT 8u
#define     DEVICE_PCI_POWER_BUDGET_2_DATA_SCALE_MASK  0x300u
#define GET_DEVICE_PCI_POWER_BUDGET_2_DATA_SCALE(__reg__)  (((__reg__) & 0x300) >> 8u)
#define SET_DEVICE_PCI_POWER_BUDGET_2_DATA_SCALE(__val__)  (((__val__) << 8u) & 0x300u)
#define     DEVICE_PCI_POWER_BUDGET_2_DATA_SCALE_1_0X 0x0u
#define     DEVICE_PCI_POWER_BUDGET_2_DATA_SCALE_0_1X 0x1u
#define     DEVICE_PCI_POWER_BUDGET_2_DATA_SCALE_0_01X 0x2u
#define     DEVICE_PCI_POWER_BUDGET_2_DATA_SCALE_0_001X 0x3u

#define     DEVICE_PCI_POWER_BUDGET_2_PM_SUB_STATE_SHIFT 10u
#define     DEVICE_PCI_POWER_BUDGET_2_PM_SUB_STATE_MASK  0x1c00u
#define GET_DEVICE_PCI_POWER_BUDGET_2_PM_SUB_STATE(__reg__)  (((__reg__) & 0x1c00) >> 10u)
#define SET_DEVICE_PCI_POWER_BUDGET_2_PM_SUB_STATE(__val__)  (((__val__) << 10u) & 0x1c00u)
#define     DEVICE_PCI_POWER_BUDGET_2_PM_STATE_SHIFT 13u
#define     DEVICE_PCI_POWER_BUDGET_2_PM_STATE_MASK  0x6000u
#define GET_DEVICE_PCI_POWER_BUDGET_2_PM_STATE(__reg__)  (((__reg__) & 0x6000) >> 13u)
#define SET_DEVICE_PCI_POWER_BUDGET_2_PM_STATE(__val__)  (((__val__) << 13u) & 0x6000u)
#define     DEVICE_PCI_POWER_BUDGET_2_PM_STATE_D0 0x0u
#define     DEVICE_PCI_POWER_BUDGET_2_PM_STATE_D1 0x1u
#define     DEVICE_PCI_POWER_BUDGET_2_PM_STATE_D2 0x2u
#define     DEVICE_PCI_POWER_BUDGET_2_PM_STATE_D3 0x3u

#define     DEVICE_PCI_POWER_BUDGET_2_TYPE_SHIFT 15u
#define     DEVICE_PCI_POWER_BUDGET_2_TYPE_MASK  0x38000u
#define GET_DEVICE_PCI_POWER_BUDGET_2_TYPE(__reg__)  (((__reg__) & 0x38000) >> 15u)
#define SET_DEVICE_PCI_POWER_BUDGET_2_TYPE(__val__)  (((__val__) << 15u) & 0x38000u)
#define     DEVICE_PCI_POWER_BUDGET_2_TYPE_PME_AUX 0x0u
#define     DEVICE_PCI_POWER_BUDGET_2_TYPE_AUXILIARY 0x1u
#define     DEVICE_PCI_POWER_BUDGET_2_TYPE_IDLE 0x2u
#define     DEVICE_PCI_POWER_BUDGET_2_TYPE_SUSTAINED 0x3u
#define     DEVICE_PCI_POWER_BUDGET_2_TYPE_MAXIMUM 0x7u

#define     DEVICE_PCI_POWER_BUDGET_2_POWER_RAIL_SHIFT 18u
#define     DEVICE_PCI_POWER_BUDGET_2_POWER_RAIL_MASK  0x1c0000u
#define GET_DEVICE_PCI_POWER_BUDGET_2_POWER_RAIL(__reg__)  (((__reg__) & 0x1c0000) >> 18u)
#define SET_DEVICE_PCI_POWER_BUDGET_2_POWER_RAIL(__val__)  (((__val__) << 18u) & 0x1c0000u)
#define     DEVICE_PCI_POWER_BUDGET_2_POWER_RAIL_POWER_12V 0x0u
#define     DEVICE_PCI_POWER_BUDGET_2_POWER_RAIL_POWER_3_3V 0x1u
#define     DEVICE_PCI_POWER_BUDGET_2_POWER_RAIL_POWER_1_5V_OR_1_8V 0x2u
#define     DEVICE_PCI_POWER_BUDGET_2_POWER_RAIL_THERMAL 0x7u


/** @brief Register definition for @ref DEVICE_t.PciPowerBudget2. */
typedef register_container RegDEVICEPciPowerBudget2_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Specifies in watts the base power value in the given operating condition. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, BasePower, 0, 8)
        /** @brief Specifies the scale to apply to the Base Power value. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, DataScale, 8, 2)
        /** @brief Specifies the power management sub state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PMSubState, 10, 3)
        /** @brief Specifies the power management state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PMState, 13, 2)
        /** @brief Specifies the power management state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Type, 15, 3)
        /** @brief Specifies the thermal load or power rail of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PowerRail, 18, 3)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_21, 21, 11)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_21, 21, 11)
        /** @brief Specifies the thermal load or power rail of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PowerRail, 18, 3)
        /** @brief Specifies the power management state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Type, 15, 3)
        /** @brief Specifies the power management state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PMState, 13, 2)
        /** @brief Specifies the power management sub state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PMSubState, 10, 3)
        /** @brief Specifies the scale to apply to the Base Power value. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, DataScale, 8, 2)
        /** @brief Specifies in watts the base power value in the given operating condition. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, BasePower, 0, 8)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "PciPowerBudget2"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEPciPowerBudget2_t()
    {
        /** @brief constructor for @ref DEVICE_t.PciPowerBudget2. */
        r32.setName("PciPowerBudget2");
        bits.BasePower.setBaseRegister(&r32);
        bits.BasePower.setName("BasePower");
        bits.DataScale.setBaseRegister(&r32);
        bits.DataScale.setName("DataScale");
        bits.PMSubState.setBaseRegister(&r32);
        bits.PMSubState.setName("PMSubState");
        bits.PMState.setBaseRegister(&r32);
        bits.PMState.setName("PMState");
        bits.Type.setBaseRegister(&r32);
        bits.Type.setName("Type");
        bits.PowerRail.setBaseRegister(&r32);
        bits.PowerRail.setName("PowerRail");
    }
    RegDEVICEPciPowerBudget2_t& operator=(const RegDEVICEPciPowerBudget2_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEPciPowerBudget2_t;

#define REG_DEVICE_PCI_POWER_BUDGET_3 ((volatile APE_DEVICE_H_uint32_t*)0xa004651c) /* See  */
#define     DEVICE_PCI_POWER_BUDGET_3_BASE_POWER_SHIFT 0u
#define     DEVICE_PCI_POWER_BUDGET_3_BASE_POWER_MASK  0xffu
#define GET_DEVICE_PCI_POWER_BUDGET_3_BASE_POWER(__reg__)  (((__reg__) & 0xff) >> 0u)
#define SET_DEVICE_PCI_POWER_BUDGET_3_BASE_POWER(__val__)  (((__val__) << 0u) & 0xffu)
#define     DEVICE_PCI_POWER_BUDGET_3_DATA_SCALE_SHIFT 8u
#define     DEVICE_PCI_POWER_BUDGET_3_DATA_SCALE_MASK  0x300u
#define GET_DEVICE_PCI_POWER_BUDGET_3_DATA_SCALE(__reg__)  (((__reg__) & 0x300) >> 8u)
#define SET_DEVICE_PCI_POWER_BUDGET_3_DATA_SCALE(__val__)  (((__val__) << 8u) & 0x300u)
#define     DEVICE_PCI_POWER_BUDGET_3_DATA_SCALE_1_0X 0x0u
#define     DEVICE_PCI_POWER_BUDGET_3_DATA_SCALE_0_1X 0x1u
#define     DEVICE_PCI_POWER_BUDGET_3_DATA_SCALE_0_01X 0x2u
#define     DEVICE_PCI_POWER_BUDGET_3_DATA_SCALE_0_001X 0x3u

#define     DEVICE_PCI_POWER_BUDGET_3_PM_SUB_STATE_SHIFT 10u
#define     DEVICE_PCI_POWER_BUDGET_3_PM_SUB_STATE_MASK  0x1c00u
#define GET_DEVICE_PCI_POWER_BUDGET_3_PM_SUB_STATE(__reg__)  (((__reg__) & 0x1c00) >> 10u)
#define SET_DEVICE_PCI_POWER_BUDGET_3_PM_SUB_STATE(__val__)  (((__val__) << 10u) & 0x1c00u)
#define     DEVICE_PCI_POWER_BUDGET_3_PM_STATE_SHIFT 13u
#define     DEVICE_PCI_POWER_BUDGET_3_PM_STATE_MASK  0x6000u
#define GET_DEVICE_PCI_POWER_BUDGET_3_PM_STATE(__reg__)  (((__reg__) & 0x6000) >> 13u)
#define SET_DEVICE_PCI_POWER_BUDGET_3_PM_STATE(__val__)  (((__val__) << 13u) & 0x6000u)
#define     DEVICE_PCI_POWER_BUDGET_3_PM_STATE_D0 0x0u
#define     DEVICE_PCI_POWER_BUDGET_3_PM_STATE_D1 0x1u
#define     DEVICE_PCI_POWER_BUDGET_3_PM_STATE_D2 0x2u
#define     DEVICE_PCI_POWER_BUDGET_3_PM_STATE_D3 0x3u

#define     DEVICE_PCI_POWER_BUDGET_3_TYPE_SHIFT 15u
#define     DEVICE_PCI_POWER_BUDGET_3_TYPE_MASK  0x38000u
#define GET_DEVICE_PCI_POWER_BUDGET_3_TYPE(__reg__)  (((__reg__) & 0x38000) >> 15u)
#define SET_DEVICE_PCI_POWER_BUDGET_3_TYPE(__val__)  (((__val__) << 15u) & 0x38000u)
#define     DEVICE_PCI_POWER_BUDGET_3_TYPE_PME_AUX 0x0u
#define     DEVICE_PCI_POWER_BUDGET_3_TYPE_AUXILIARY 0x1u
#define     DEVICE_PCI_POWER_BUDGET_3_TYPE_IDLE 0x2u
#define     DEVICE_PCI_POWER_BUDGET_3_TYPE_SUSTAINED 0x3u
#define     DEVICE_PCI_POWER_BUDGET_3_TYPE_MAXIMUM 0x7u

#define     DEVICE_PCI_POWER_BUDGET_3_POWER_RAIL_SHIFT 18u
#define     DEVICE_PCI_POWER_BUDGET_3_POWER_RAIL_MASK  0x1c0000u
#define GET_DEVICE_PCI_POWER_BUDGET_3_POWER_RAIL(__reg__)  (((__reg__) & 0x1c0000) >> 18u)
#define SET_DEVICE_PCI_POWER_BUDGET_3_POWER_RAIL(__val__)  (((__val__) << 18u) & 0x1c0000u)
#define     DEVICE_PCI_POWER_BUDGET_3_POWER_RAIL_POWER_12V 0x0u
#define     DEVICE_PCI_POWER_BUDGET_3_POWER_RAIL_POWER_3_3V 0x1u
#define     DEVICE_PCI_POWER_BUDGET_3_POWER_RAIL_POWER_1_5V_OR_1_8V 0x2u
#define     DEVICE_PCI_POWER_BUDGET_3_POWER_RAIL_THERMAL 0x7u


/** @brief Register definition for @ref DEVICE_t.PciPowerBudget3. */
typedef register_container RegDEVICEPciPowerBudget3_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Specifies in watts the base power value in the given operating condition. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, BasePower, 0, 8)
        /** @brief Specifies the scale to apply to the Base Power value. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, DataScale, 8, 2)
        /** @brief Specifies the power management sub state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PMSubState, 10, 3)
        /** @brief Specifies the power management state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PMState, 13, 2)
        /** @brief Specifies the power management state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Type, 15, 3)
        /** @brief Specifies the thermal load or power rail of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PowerRail, 18, 3)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_21, 21, 11)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_21, 21, 11)
        /** @brief Specifies the thermal load or power rail of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PowerRail, 18, 3)
        /** @brief Specifies the power management state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Type, 15, 3)
        /** @brief Specifies the power management state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PMState, 13, 2)
        /** @brief Specifies the power management sub state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PMSubState, 10, 3)
        /** @brief Specifies the scale to apply to the Base Power value. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, DataScale, 8, 2)
        /** @brief Specifies in watts the base power value in the given operating condition. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, BasePower, 0, 8)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "PciPowerBudget3"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEPciPowerBudget3_t()
    {
        /** @brief constructor for @ref DEVICE_t.PciPowerBudget3. */
        r32.setName("PciPowerBudget3");
        bits.BasePower.setBaseRegister(&r32);
        bits.BasePower.setName("BasePower");
        bits.DataScale.setBaseRegister(&r32);
        bits.DataScale.setName("DataScale");
        bits.PMSubState.setBaseRegister(&r32);
        bits.PMSubState.setName("PMSubState");
        bits.PMState.setBaseRegister(&r32);
        bits.PMState.setName("PMState");
        bits.Type.setBaseRegister(&r32);
        bits.Type.setName("Type");
        bits.PowerRail.setBaseRegister(&r32);
        bits.PowerRail.setName("PowerRail");
    }
    RegDEVICEPciPowerBudget3_t& operator=(const RegDEVICEPciPowerBudget3_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEPciPowerBudget3_t;

#define REG_DEVICE_PCI_POWER_BUDGET_4 ((volatile APE_DEVICE_H_uint32_t*)0xa0046520) /* See  */
#define     DEVICE_PCI_POWER_BUDGET_4_BASE_POWER_SHIFT 0u
#define     DEVICE_PCI_POWER_BUDGET_4_BASE_POWER_MASK  0xffu
#define GET_DEVICE_PCI_POWER_BUDGET_4_BASE_POWER(__reg__)  (((__reg__) & 0xff) >> 0u)
#define SET_DEVICE_PCI_POWER_BUDGET_4_BASE_POWER(__val__)  (((__val__) << 0u) & 0xffu)
#define     DEVICE_PCI_POWER_BUDGET_4_DATA_SCALE_SHIFT 8u
#define     DEVICE_PCI_POWER_BUDGET_4_DATA_SCALE_MASK  0x300u
#define GET_DEVICE_PCI_POWER_BUDGET_4_DATA_SCALE(__reg__)  (((__reg__) & 0x300) >> 8u)
#define SET_DEVICE_PCI_POWER_BUDGET_4_DATA_SCALE(__val__)  (((__val__) << 8u) & 0x300u)
#define     DEVICE_PCI_POWER_BUDGET_4_DATA_SCALE_1_0X 0x0u
#define     DEVICE_PCI_POWER_BUDGET_4_DATA_SCALE_0_1X 0x1u
#define     DEVICE_PCI_POWER_BUDGET_4_DATA_SCALE_0_01X 0x2u
#define     DEVICE_PCI_POWER_BUDGET_4_DATA_SCALE_0_001X 0x3u

#define     DEVICE_PCI_POWER_BUDGET_4_PM_SUB_STATE_SHIFT 10u
#define     DEVICE_PCI_POWER_BUDGET_4_PM_SUB_STATE_MASK  0x1c00u
#define GET_DEVICE_PCI_POWER_BUDGET_4_PM_SUB_STATE(__reg__)  (((__reg__) & 0x1c00) >> 10u)
#define SET_DEVICE_PCI_POWER_BUDGET_4_PM_SUB_STATE(__val__)  (((__val__) << 10u) & 0x1c00u)
#define     DEVICE_PCI_POWER_BUDGET_4_PM_STATE_SHIFT 13u
#define     DEVICE_PCI_POWER_BUDGET_4_PM_STATE_MASK  0x6000u
#define GET_DEVICE_PCI_POWER_BUDGET_4_PM_STATE(__reg__)  (((__reg__) & 0x6000) >> 13u)
#define SET_DEVICE_PCI_POWER_BUDGET_4_PM_STATE(__val__)  (((__val__) << 13u) & 0x6000u)
#define     DEVICE_PCI_POWER_BUDGET_4_PM_STATE_D0 0x0u
#define     DEVICE_PCI_POWER_BUDGET_4_PM_STATE_D1 0x1u
#define     DEVICE_PCI_POWER_BUDGET_4_PM_STATE_D2 0x2u
#define     DEVICE_PCI_POWER_BUDGET_4_PM_STATE_D3 0x3u

#define     DEVICE_PCI_POWER_BUDGET_4_TYPE_SHIFT 15u
#define     DEVICE_PCI_POWER_BUDGET_4_TYPE_MASK  0x38000u
#define GET_DEVICE_PCI_POWER_BUDGET_4_TYPE(__reg__)  (((__reg__) & 0x38000) >> 15u)
#define SET_DEVICE_PCI_POWER_BUDGET_4_TYPE(__val__)  (((__val__) << 15u) & 0x38000u)
#define     DEVICE_PCI_POWER_BUDGET_4_TYPE_PME_AUX 0x0u
#define     DEVICE_PCI_POWER_BUDGET_4_TYPE_AUXILIARY 0x1u
#define     DEVICE_PCI_POWER_BUDGET_4_TYPE_IDLE 0x2u
#define     DEVICE_PCI_POWER_BUDGET_4_TYPE_SUSTAINED 0x3u
#define     DEVICE_PCI_POWER_BUDGET_4_TYPE_MAXIMUM 0x7u

#define     DEVICE_PCI_POWER_BUDGET_4_POWER_RAIL_SHIFT 18u
#define     DEVICE_PCI_POWER_BUDGET_4_POWER_RAIL_MASK  0x1c0000u
#define GET_DEVICE_PCI_POWER_BUDGET_4_POWER_RAIL(__reg__)  (((__reg__) & 0x1c0000) >> 18u)
#define SET_DEVICE_PCI_POWER_BUDGET_4_POWER_RAIL(__val__)  (((__val__) << 18u) & 0x1c0000u)
#define     DEVICE_PCI_POWER_BUDGET_4_POWER_RAIL_POWER_12V 0x0u
#define     DEVICE_PCI_POWER_BUDGET_4_POWER_RAIL_POWER_3_3V 0x1u
#define     DEVICE_PCI_POWER_BUDGET_4_POWER_RAIL_POWER_1_5V_OR_1_8V 0x2u
#define     DEVICE_PCI_POWER_BUDGET_4_POWER_RAIL_THERMAL 0x7u


/** @brief Register definition for @ref DEVICE_t.PciPowerBudget4. */
typedef register_container RegDEVICEPciPowerBudget4_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Specifies in watts the base power value in the given operating condition. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, BasePower, 0, 8)
        /** @brief Specifies the scale to apply to the Base Power value. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, DataScale, 8, 2)
        /** @brief Specifies the power management sub state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PMSubState, 10, 3)
        /** @brief Specifies the power management state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PMState, 13, 2)
        /** @brief Specifies the power management state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Type, 15, 3)
        /** @brief Specifies the thermal load or power rail of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PowerRail, 18, 3)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_21, 21, 11)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_21, 21, 11)
        /** @brief Specifies the thermal load or power rail of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PowerRail, 18, 3)
        /** @brief Specifies the power management state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Type, 15, 3)
        /** @brief Specifies the power management state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PMState, 13, 2)
        /** @brief Specifies the power management sub state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PMSubState, 10, 3)
        /** @brief Specifies the scale to apply to the Base Power value. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, DataScale, 8, 2)
        /** @brief Specifies in watts the base power value in the given operating condition. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, BasePower, 0, 8)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "PciPowerBudget4"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEPciPowerBudget4_t()
    {
        /** @brief constructor for @ref DEVICE_t.PciPowerBudget4. */
        r32.setName("PciPowerBudget4");
        bits.BasePower.setBaseRegister(&r32);
        bits.BasePower.setName("BasePower");
        bits.DataScale.setBaseRegister(&r32);
        bits.DataScale.setName("DataScale");
        bits.PMSubState.setBaseRegister(&r32);
        bits.PMSubState.setName("PMSubState");
        bits.PMState.setBaseRegister(&r32);
        bits.PMState.setName("PMState");
        bits.Type.setBaseRegister(&r32);
        bits.Type.setName("Type");
        bits.PowerRail.setBaseRegister(&r32);
        bits.PowerRail.setName("PowerRail");
    }
    RegDEVICEPciPowerBudget4_t& operator=(const RegDEVICEPciPowerBudget4_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEPciPowerBudget4_t;

#define REG_DEVICE_PCI_POWER_BUDGET_5 ((volatile APE_DEVICE_H_uint32_t*)0xa0046524) /* See  */
#define     DEVICE_PCI_POWER_BUDGET_5_BASE_POWER_SHIFT 0u
#define     DEVICE_PCI_POWER_BUDGET_5_BASE_POWER_MASK  0xffu
#define GET_DEVICE_PCI_POWER_BUDGET_5_BASE_POWER(__reg__)  (((__reg__) & 0xff) >> 0u)
#define SET_DEVICE_PCI_POWER_BUDGET_5_BASE_POWER(__val__)  (((__val__) << 0u) & 0xffu)
#define     DEVICE_PCI_POWER_BUDGET_5_DATA_SCALE_SHIFT 8u
#define     DEVICE_PCI_POWER_BUDGET_5_DATA_SCALE_MASK  0x300u
#define GET_DEVICE_PCI_POWER_BUDGET_5_DATA_SCALE(__reg__)  (((__reg__) & 0x300) >> 8u)
#define SET_DEVICE_PCI_POWER_BUDGET_5_DATA_SCALE(__val__)  (((__val__) << 8u) & 0x300u)
#define     DEVICE_PCI_POWER_BUDGET_5_DATA_SCALE_1_0X 0x0u
#define     DEVICE_PCI_POWER_BUDGET_5_DATA_SCALE_0_1X 0x1u
#define     DEVICE_PCI_POWER_BUDGET_5_DATA_SCALE_0_01X 0x2u
#define     DEVICE_PCI_POWER_BUDGET_5_DATA_SCALE_0_001X 0x3u

#define     DEVICE_PCI_POWER_BUDGET_5_PM_SUB_STATE_SHIFT 10u
#define     DEVICE_PCI_POWER_BUDGET_5_PM_SUB_STATE_MASK  0x1c00u
#define GET_DEVICE_PCI_POWER_BUDGET_5_PM_SUB_STATE(__reg__)  (((__reg__) & 0x1c00) >> 10u)
#define SET_DEVICE_PCI_POWER_BUDGET_5_PM_SUB_STATE(__val__)  (((__val__) << 10u) & 0x1c00u)
#define     DEVICE_PCI_POWER_BUDGET_5_PM_STATE_SHIFT 13u
#define     DEVICE_PCI_POWER_BUDGET_5_PM_STATE_MASK  0x6000u
#define GET_DEVICE_PCI_POWER_BUDGET_5_PM_STATE(__reg__)  (((__reg__) & 0x6000) >> 13u)
#define SET_DEVICE_PCI_POWER_BUDGET_5_PM_STATE(__val__)  (((__val__) << 13u) & 0x6000u)
#define     DEVICE_PCI_POWER_BUDGET_5_PM_STATE_D0 0x0u
#define     DEVICE_PCI_POWER_BUDGET_5_PM_STATE_D1 0x1u
#define     DEVICE_PCI_POWER_BUDGET_5_PM_STATE_D2 0x2u
#define     DEVICE_PCI_POWER_BUDGET_5_PM_STATE_D3 0x3u

#define     DEVICE_PCI_POWER_BUDGET_5_TYPE_SHIFT 15u
#define     DEVICE_PCI_POWER_BUDGET_5_TYPE_MASK  0x38000u
#define GET_DEVICE_PCI_POWER_BUDGET_5_TYPE(__reg__)  (((__reg__) & 0x38000) >> 15u)
#define SET_DEVICE_PCI_POWER_BUDGET_5_TYPE(__val__)  (((__val__) << 15u) & 0x38000u)
#define     DEVICE_PCI_POWER_BUDGET_5_TYPE_PME_AUX 0x0u
#define     DEVICE_PCI_POWER_BUDGET_5_TYPE_AUXILIARY 0x1u
#define     DEVICE_PCI_POWER_BUDGET_5_TYPE_IDLE 0x2u
#define     DEVICE_PCI_POWER_BUDGET_5_TYPE_SUSTAINED 0x3u
#define     DEVICE_PCI_POWER_BUDGET_5_TYPE_MAXIMUM 0x7u

#define     DEVICE_PCI_POWER_BUDGET_5_POWER_RAIL_SHIFT 18u
#define     DEVICE_PCI_POWER_BUDGET_5_POWER_RAIL_MASK  0x1c0000u
#define GET_DEVICE_PCI_POWER_BUDGET_5_POWER_RAIL(__reg__)  (((__reg__) & 0x1c0000) >> 18u)
#define SET_DEVICE_PCI_POWER_BUDGET_5_POWER_RAIL(__val__)  (((__val__) << 18u) & 0x1c0000u)
#define     DEVICE_PCI_POWER_BUDGET_5_POWER_RAIL_POWER_12V 0x0u
#define     DEVICE_PCI_POWER_BUDGET_5_POWER_RAIL_POWER_3_3V 0x1u
#define     DEVICE_PCI_POWER_BUDGET_5_POWER_RAIL_POWER_1_5V_OR_1_8V 0x2u
#define     DEVICE_PCI_POWER_BUDGET_5_POWER_RAIL_THERMAL 0x7u


/** @brief Register definition for @ref DEVICE_t.PciPowerBudget5. */
typedef register_container RegDEVICEPciPowerBudget5_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Specifies in watts the base power value in the given operating condition. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, BasePower, 0, 8)
        /** @brief Specifies the scale to apply to the Base Power value. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, DataScale, 8, 2)
        /** @brief Specifies the power management sub state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PMSubState, 10, 3)
        /** @brief Specifies the power management state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PMState, 13, 2)
        /** @brief Specifies the power management state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Type, 15, 3)
        /** @brief Specifies the thermal load or power rail of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PowerRail, 18, 3)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_21, 21, 11)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_21, 21, 11)
        /** @brief Specifies the thermal load or power rail of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PowerRail, 18, 3)
        /** @brief Specifies the power management state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Type, 15, 3)
        /** @brief Specifies the power management state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PMState, 13, 2)
        /** @brief Specifies the power management sub state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PMSubState, 10, 3)
        /** @brief Specifies the scale to apply to the Base Power value. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, DataScale, 8, 2)
        /** @brief Specifies in watts the base power value in the given operating condition. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, BasePower, 0, 8)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "PciPowerBudget5"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEPciPowerBudget5_t()
    {
        /** @brief constructor for @ref DEVICE_t.PciPowerBudget5. */
        r32.setName("PciPowerBudget5");
        bits.BasePower.setBaseRegister(&r32);
        bits.BasePower.setName("BasePower");
        bits.DataScale.setBaseRegister(&r32);
        bits.DataScale.setName("DataScale");
        bits.PMSubState.setBaseRegister(&r32);
        bits.PMSubState.setName("PMSubState");
        bits.PMState.setBaseRegister(&r32);
        bits.PMState.setName("PMState");
        bits.Type.setBaseRegister(&r32);
        bits.Type.setName("Type");
        bits.PowerRail.setBaseRegister(&r32);
        bits.PowerRail.setName("PowerRail");
    }
    RegDEVICEPciPowerBudget5_t& operator=(const RegDEVICEPciPowerBudget5_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEPciPowerBudget5_t;

#define REG_DEVICE_PCI_POWER_BUDGET_6 ((volatile APE_DEVICE_H_uint32_t*)0xa0046528) /* See  */
#define     DEVICE_PCI_POWER_BUDGET_6_BASE_POWER_SHIFT 0u
#define     DEVICE_PCI_POWER_BUDGET_6_BASE_POWER_MASK  0xffu
#define GET_DEVICE_PCI_POWER_BUDGET_6_BASE_POWER(__reg__)  (((__reg__) & 0xff) >> 0u)
#define SET_DEVICE_PCI_POWER_BUDGET_6_BASE_POWER(__val__)  (((__val__) << 0u) & 0xffu)
#define     DEVICE_PCI_POWER_BUDGET_6_DATA_SCALE_SHIFT 8u
#define     DEVICE_PCI_POWER_BUDGET_6_DATA_SCALE_MASK  0x300u
#define GET_DEVICE_PCI_POWER_BUDGET_6_DATA_SCALE(__reg__)  (((__reg__) & 0x300) >> 8u)
#define SET_DEVICE_PCI_POWER_BUDGET_6_DATA_SCALE(__val__)  (((__val__) << 8u) & 0x300u)
#define     DEVICE_PCI_POWER_BUDGET_6_DATA_SCALE_1_0X 0x0u
#define     DEVICE_PCI_POWER_BUDGET_6_DATA_SCALE_0_1X 0x1u
#define     DEVICE_PCI_POWER_BUDGET_6_DATA_SCALE_0_01X 0x2u
#define     DEVICE_PCI_POWER_BUDGET_6_DATA_SCALE_0_001X 0x3u

#define     DEVICE_PCI_POWER_BUDGET_6_PM_SUB_STATE_SHIFT 10u
#define     DEVICE_PCI_POWER_BUDGET_6_PM_SUB_STATE_MASK  0x1c00u
#define GET_DEVICE_PCI_POWER_BUDGET_6_PM_SUB_STATE(__reg__)  (((__reg__) & 0x1c00) >> 10u)
#define SET_DEVICE_PCI_POWER_BUDGET_6_PM_SUB_STATE(__val__)  (((__val__) << 10u) & 0x1c00u)
#define     DEVICE_PCI_POWER_BUDGET_6_PM_STATE_SHIFT 13u
#define     DEVICE_PCI_POWER_BUDGET_6_PM_STATE_MASK  0x6000u
#define GET_DEVICE_PCI_POWER_BUDGET_6_PM_STATE(__reg__)  (((__reg__) & 0x6000) >> 13u)
#define SET_DEVICE_PCI_POWER_BUDGET_6_PM_STATE(__val__)  (((__val__) << 13u) & 0x6000u)
#define     DEVICE_PCI_POWER_BUDGET_6_PM_STATE_D0 0x0u
#define     DEVICE_PCI_POWER_BUDGET_6_PM_STATE_D1 0x1u
#define     DEVICE_PCI_POWER_BUDGET_6_PM_STATE_D2 0x2u
#define     DEVICE_PCI_POWER_BUDGET_6_PM_STATE_D3 0x3u

#define     DEVICE_PCI_POWER_BUDGET_6_TYPE_SHIFT 15u
#define     DEVICE_PCI_POWER_BUDGET_6_TYPE_MASK  0x38000u
#define GET_DEVICE_PCI_POWER_BUDGET_6_TYPE(__reg__)  (((__reg__) & 0x38000) >> 15u)
#define SET_DEVICE_PCI_POWER_BUDGET_6_TYPE(__val__)  (((__val__) << 15u) & 0x38000u)
#define     DEVICE_PCI_POWER_BUDGET_6_TYPE_PME_AUX 0x0u
#define     DEVICE_PCI_POWER_BUDGET_6_TYPE_AUXILIARY 0x1u
#define     DEVICE_PCI_POWER_BUDGET_6_TYPE_IDLE 0x2u
#define     DEVICE_PCI_POWER_BUDGET_6_TYPE_SUSTAINED 0x3u
#define     DEVICE_PCI_POWER_BUDGET_6_TYPE_MAXIMUM 0x7u

#define     DEVICE_PCI_POWER_BUDGET_6_POWER_RAIL_SHIFT 18u
#define     DEVICE_PCI_POWER_BUDGET_6_POWER_RAIL_MASK  0x1c0000u
#define GET_DEVICE_PCI_POWER_BUDGET_6_POWER_RAIL(__reg__)  (((__reg__) & 0x1c0000) >> 18u)
#define SET_DEVICE_PCI_POWER_BUDGET_6_POWER_RAIL(__val__)  (((__val__) << 18u) & 0x1c0000u)
#define     DEVICE_PCI_POWER_BUDGET_6_POWER_RAIL_POWER_12V 0x0u
#define     DEVICE_PCI_POWER_BUDGET_6_POWER_RAIL_POWER_3_3V 0x1u
#define     DEVICE_PCI_POWER_BUDGET_6_POWER_RAIL_POWER_1_5V_OR_1_8V 0x2u
#define     DEVICE_PCI_POWER_BUDGET_6_POWER_RAIL_THERMAL 0x7u


/** @brief Register definition for @ref DEVICE_t.PciPowerBudget6. */
typedef register_container RegDEVICEPciPowerBudget6_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Specifies in watts the base power value in the given operating condition. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, BasePower, 0, 8)
        /** @brief Specifies the scale to apply to the Base Power value. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, DataScale, 8, 2)
        /** @brief Specifies the power management sub state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PMSubState, 10, 3)
        /** @brief Specifies the power management state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PMState, 13, 2)
        /** @brief Specifies the power management state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Type, 15, 3)
        /** @brief Specifies the thermal load or power rail of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PowerRail, 18, 3)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_21, 21, 11)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_21, 21, 11)
        /** @brief Specifies the thermal load or power rail of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PowerRail, 18, 3)
        /** @brief Specifies the power management state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Type, 15, 3)
        /** @brief Specifies the power management state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PMState, 13, 2)
        /** @brief Specifies the power management sub state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PMSubState, 10, 3)
        /** @brief Specifies the scale to apply to the Base Power value. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, DataScale, 8, 2)
        /** @brief Specifies in watts the base power value in the given operating condition. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, BasePower, 0, 8)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "PciPowerBudget6"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEPciPowerBudget6_t()
    {
        /** @brief constructor for @ref DEVICE_t.PciPowerBudget6. */
        r32.setName("PciPowerBudget6");
        bits.BasePower.setBaseRegister(&r32);
        bits.BasePower.setName("BasePower");
        bits.DataScale.setBaseRegister(&r32);
        bits.DataScale.setName("DataScale");
        bits.PMSubState.setBaseRegister(&r32);
        bits.PMSubState.setName("PMSubState");
        bits.PMState.setBaseRegister(&r32);
        bits.PMState.setName("PMState");
        bits.Type.setBaseRegister(&r32);
        bits.Type.setName("Type");
        bits.PowerRail.setBaseRegister(&r32);
        bits.PowerRail.setName("PowerRail");
    }
    RegDEVICEPciPowerBudget6_t& operator=(const RegDEVICEPciPowerBudget6_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEPciPowerBudget6_t;

#define REG_DEVICE_PCI_POWER_BUDGET_7 ((volatile APE_DEVICE_H_uint32_t*)0xa004652c) /* See  */
#define     DEVICE_PCI_POWER_BUDGET_7_BASE_POWER_SHIFT 0u
#define     DEVICE_PCI_POWER_BUDGET_7_BASE_POWER_MASK  0xffu
#define GET_DEVICE_PCI_POWER_BUDGET_7_BASE_POWER(__reg__)  (((__reg__) & 0xff) >> 0u)
#define SET_DEVICE_PCI_POWER_BUDGET_7_BASE_POWER(__val__)  (((__val__) << 0u) & 0xffu)
#define     DEVICE_PCI_POWER_BUDGET_7_DATA_SCALE_SHIFT 8u
#define     DEVICE_PCI_POWER_BUDGET_7_DATA_SCALE_MASK  0x300u
#define GET_DEVICE_PCI_POWER_BUDGET_7_DATA_SCALE(__reg__)  (((__reg__) & 0x300) >> 8u)
#define SET_DEVICE_PCI_POWER_BUDGET_7_DATA_SCALE(__val__)  (((__val__) << 8u) & 0x300u)
#define     DEVICE_PCI_POWER_BUDGET_7_DATA_SCALE_1_0X 0x0u
#define     DEVICE_PCI_POWER_BUDGET_7_DATA_SCALE_0_1X 0x1u
#define     DEVICE_PCI_POWER_BUDGET_7_DATA_SCALE_0_01X 0x2u
#define     DEVICE_PCI_POWER_BUDGET_7_DATA_SCALE_0_001X 0x3u

#define     DEVICE_PCI_POWER_BUDGET_7_PM_SUB_STATE_SHIFT 10u
#define     DEVICE_PCI_POWER_BUDGET_7_PM_SUB_STATE_MASK  0x1c00u
#define GET_DEVICE_PCI_POWER_BUDGET_7_PM_SUB_STATE(__reg__)  (((__reg__) & 0x1c00) >> 10u)
#define SET_DEVICE_PCI_POWER_BUDGET_7_PM_SUB_STATE(__val__)  (((__val__) << 10u) & 0x1c00u)
#define     DEVICE_PCI_POWER_BUDGET_7_PM_STATE_SHIFT 13u
#define     DEVICE_PCI_POWER_BUDGET_7_PM_STATE_MASK  0x6000u
#define GET_DEVICE_PCI_POWER_BUDGET_7_PM_STATE(__reg__)  (((__reg__) & 0x6000) >> 13u)
#define SET_DEVICE_PCI_POWER_BUDGET_7_PM_STATE(__val__)  (((__val__) << 13u) & 0x6000u)
#define     DEVICE_PCI_POWER_BUDGET_7_PM_STATE_D0 0x0u
#define     DEVICE_PCI_POWER_BUDGET_7_PM_STATE_D1 0x1u
#define     DEVICE_PCI_POWER_BUDGET_7_PM_STATE_D2 0x2u
#define     DEVICE_PCI_POWER_BUDGET_7_PM_STATE_D3 0x3u

#define     DEVICE_PCI_POWER_BUDGET_7_TYPE_SHIFT 15u
#define     DEVICE_PCI_POWER_BUDGET_7_TYPE_MASK  0x38000u
#define GET_DEVICE_PCI_POWER_BUDGET_7_TYPE(__reg__)  (((__reg__) & 0x38000) >> 15u)
#define SET_DEVICE_PCI_POWER_BUDGET_7_TYPE(__val__)  (((__val__) << 15u) & 0x38000u)
#define     DEVICE_PCI_POWER_BUDGET_7_TYPE_PME_AUX 0x0u
#define     DEVICE_PCI_POWER_BUDGET_7_TYPE_AUXILIARY 0x1u
#define     DEVICE_PCI_POWER_BUDGET_7_TYPE_IDLE 0x2u
#define     DEVICE_PCI_POWER_BUDGET_7_TYPE_SUSTAINED 0x3u
#define     DEVICE_PCI_POWER_BUDGET_7_TYPE_MAXIMUM 0x7u

#define     DEVICE_PCI_POWER_BUDGET_7_POWER_RAIL_SHIFT 18u
#define     DEVICE_PCI_POWER_BUDGET_7_POWER_RAIL_MASK  0x1c0000u
#define GET_DEVICE_PCI_POWER_BUDGET_7_POWER_RAIL(__reg__)  (((__reg__) & 0x1c0000) >> 18u)
#define SET_DEVICE_PCI_POWER_BUDGET_7_POWER_RAIL(__val__)  (((__val__) << 18u) & 0x1c0000u)
#define     DEVICE_PCI_POWER_BUDGET_7_POWER_RAIL_POWER_12V 0x0u
#define     DEVICE_PCI_POWER_BUDGET_7_POWER_RAIL_POWER_3_3V 0x1u
#define     DEVICE_PCI_POWER_BUDGET_7_POWER_RAIL_POWER_1_5V_OR_1_8V 0x2u
#define     DEVICE_PCI_POWER_BUDGET_7_POWER_RAIL_THERMAL 0x7u


/** @brief Register definition for @ref DEVICE_t.PciPowerBudget7. */
typedef register_container RegDEVICEPciPowerBudget7_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Specifies in watts the base power value in the given operating condition. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, BasePower, 0, 8)
        /** @brief Specifies the scale to apply to the Base Power value. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, DataScale, 8, 2)
        /** @brief Specifies the power management sub state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PMSubState, 10, 3)
        /** @brief Specifies the power management state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PMState, 13, 2)
        /** @brief Specifies the power management state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Type, 15, 3)
        /** @brief Specifies the thermal load or power rail of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PowerRail, 18, 3)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_21, 21, 11)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_21, 21, 11)
        /** @brief Specifies the thermal load or power rail of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PowerRail, 18, 3)
        /** @brief Specifies the power management state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Type, 15, 3)
        /** @brief Specifies the power management state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PMState, 13, 2)
        /** @brief Specifies the power management sub state of the operating condition being described. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PMSubState, 10, 3)
        /** @brief Specifies the scale to apply to the Base Power value. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, DataScale, 8, 2)
        /** @brief Specifies in watts the base power value in the given operating condition. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, BasePower, 0, 8)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "PciPowerBudget7"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEPciPowerBudget7_t()
    {
        /** @brief constructor for @ref DEVICE_t.PciPowerBudget7. */
        r32.setName("PciPowerBudget7");
        bits.BasePower.setBaseRegister(&r32);
        bits.BasePower.setName("BasePower");
        bits.DataScale.setBaseRegister(&r32);
        bits.DataScale.setName("DataScale");
        bits.PMSubState.setBaseRegister(&r32);
        bits.PMSubState.setName("PMSubState");
        bits.PMState.setBaseRegister(&r32);
        bits.PMState.setName("PMState");
        bits.Type.setBaseRegister(&r32);
        bits.Type.setName("Type");
        bits.PowerRail.setBaseRegister(&r32);
        bits.PowerRail.setName("PowerRail");
    }
    RegDEVICEPciPowerBudget7_t& operator=(const RegDEVICEPciPowerBudget7_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEPciPowerBudget7_t;

#define REG_DEVICE_6530 ((volatile APE_DEVICE_H_uint32_t*)0xa0046530) /*  */
/** @brief Register definition for @ref DEVICE_t.6530. */
typedef register_container RegDEVICE6530_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "6530"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICE6530_t()
    {
        /** @brief constructor for @ref DEVICE_t.6530. */
        r32.setName("6530");
    }
    RegDEVICE6530_t& operator=(const RegDEVICE6530_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICE6530_t;

#define REG_DEVICE_6550 ((volatile APE_DEVICE_H_uint32_t*)0xa0046550) /* The LSB in this undocumented and unknown register is set if the device is a LOM (LAN-on-Motherboard) design (i.e., builtin to a system and not an expansion card). */
/** @brief Register definition for @ref DEVICE_t.6550. */
typedef register_container RegDEVICE6550_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "6550"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICE6550_t()
    {
        /** @brief constructor for @ref DEVICE_t.6550. */
        r32.setName("6550");
    }
    RegDEVICE6550_t& operator=(const RegDEVICE6550_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICE6550_t;

#define REG_DEVICE_65F4 ((volatile APE_DEVICE_H_uint32_t*)0xa00465f4) /*  */
/** @brief Register definition for @ref DEVICE_t.65f4. */
typedef register_container RegDEVICE65f4_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "65f4"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICE65f4_t()
    {
        /** @brief constructor for @ref DEVICE_t.65f4. */
        r32.setName("65f4");
    }
    RegDEVICE65f4_t& operator=(const RegDEVICE65f4_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICE65f4_t;

#define REG_DEVICE_GRC_MODE_CONTROL ((volatile APE_DEVICE_H_uint32_t*)0xa0046800) /*  */
#define     DEVICE_GRC_MODE_CONTROL_TIME_SYNC_MODE_ENABLE_SHIFT 19u
#define     DEVICE_GRC_MODE_CONTROL_TIME_SYNC_MODE_ENABLE_MASK  0x80000u
#define GET_DEVICE_GRC_MODE_CONTROL_TIME_SYNC_MODE_ENABLE(__reg__)  (((__reg__) & 0x80000) >> 19u)
#define SET_DEVICE_GRC_MODE_CONTROL_TIME_SYNC_MODE_ENABLE(__val__)  (((__val__) << 19u) & 0x80000u)
#define     DEVICE_GRC_MODE_CONTROL_NVRAM_WRITE_ENABLE_SHIFT 21u
#define     DEVICE_GRC_MODE_CONTROL_NVRAM_WRITE_ENABLE_MASK  0x200000u
#define GET_DEVICE_GRC_MODE_CONTROL_NVRAM_WRITE_ENABLE(__reg__)  (((__reg__) & 0x200000) >> 21u)
#define SET_DEVICE_GRC_MODE_CONTROL_NVRAM_WRITE_ENABLE(__val__)  (((__val__) << 21u) & 0x200000u)
#define     DEVICE_GRC_MODE_CONTROL_PCIE_TL_DIV_DL_DIV_PL_MAPPING_1_SHIFT 22u
#define     DEVICE_GRC_MODE_CONTROL_PCIE_TL_DIV_DL_DIV_PL_MAPPING_1_MASK  0x400000u
#define GET_DEVICE_GRC_MODE_CONTROL_PCIE_TL_DIV_DL_DIV_PL_MAPPING_1(__reg__)  (((__reg__) & 0x400000) >> 22u)
#define SET_DEVICE_GRC_MODE_CONTROL_PCIE_TL_DIV_DL_DIV_PL_MAPPING_1(__val__)  (((__val__) << 22u) & 0x400000u)
#define     DEVICE_GRC_MODE_CONTROL_PCIE_TL_DIV_DL_DIV_PL_MAPPING_2_SHIFT 29u
#define     DEVICE_GRC_MODE_CONTROL_PCIE_TL_DIV_DL_DIV_PL_MAPPING_2_MASK  0x20000000u
#define GET_DEVICE_GRC_MODE_CONTROL_PCIE_TL_DIV_DL_DIV_PL_MAPPING_2(__reg__)  (((__reg__) & 0x20000000) >> 29u)
#define SET_DEVICE_GRC_MODE_CONTROL_PCIE_TL_DIV_DL_DIV_PL_MAPPING_2(__val__)  (((__val__) << 29u) & 0x20000000u)
#define     DEVICE_GRC_MODE_CONTROL_PCIE_TL_DIV_DL_DIV_PL_MAPPING_3_SHIFT 31u
#define     DEVICE_GRC_MODE_CONTROL_PCIE_TL_DIV_DL_DIV_PL_MAPPING_3_MASK  0x80000000u
#define GET_DEVICE_GRC_MODE_CONTROL_PCIE_TL_DIV_DL_DIV_PL_MAPPING_3(__reg__)  (((__reg__) & 0x80000000) >> 31u)
#define SET_DEVICE_GRC_MODE_CONTROL_PCIE_TL_DIV_DL_DIV_PL_MAPPING_3(__val__)  (((__val__) << 31u) & 0x80000000u)

/** @brief Register definition for @ref DEVICE_t.GrcModeControl. */
typedef register_container RegDEVICEGrcModeControl_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_18_0, 0, 19)
        /** @brief Write 1 to this bit to enable Time Sync Mode. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, TimeSyncModeEnable, 19, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_20_20, 20, 1)
        /** @brief The host must set this bit before attempting to update the Flash or SEEPROM. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, NVRAMWriteEnable, 21, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PCIeTL_DIV_DL_DIV_PLMapping1, 22, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_28_23, 23, 6)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PCIeTL_DIV_DL_DIV_PLMapping2, 29, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_30_30, 30, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PCIeTL_DIV_DL_DIV_PLMapping3, 31, 1)
#elif defined(__BIG_ENDIAN__)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PCIeTL_DIV_DL_DIV_PLMapping3, 31, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_30_30, 30, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PCIeTL_DIV_DL_DIV_PLMapping2, 29, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_28_23, 23, 6)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, PCIeTL_DIV_DL_DIV_PLMapping1, 22, 1)
        /** @brief The host must set this bit before attempting to update the Flash or SEEPROM. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, NVRAMWriteEnable, 21, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_20_20, 20, 1)
        /** @brief Write 1 to this bit to enable Time Sync Mode. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, TimeSyncModeEnable, 19, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_18_0, 0, 19)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "GrcModeControl"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEGrcModeControl_t()
    {
        /** @brief constructor for @ref DEVICE_t.GrcModeControl. */
        r32.setName("GrcModeControl");
        bits.TimeSyncModeEnable.setBaseRegister(&r32);
        bits.TimeSyncModeEnable.setName("TimeSyncModeEnable");
        bits.NVRAMWriteEnable.setBaseRegister(&r32);
        bits.NVRAMWriteEnable.setName("NVRAMWriteEnable");
        bits.PCIeTL_DIV_DL_DIV_PLMapping1.setBaseRegister(&r32);
        bits.PCIeTL_DIV_DL_DIV_PLMapping1.setName("PCIeTL_DIV_DL_DIV_PLMapping1");
        bits.PCIeTL_DIV_DL_DIV_PLMapping2.setBaseRegister(&r32);
        bits.PCIeTL_DIV_DL_DIV_PLMapping2.setName("PCIeTL_DIV_DL_DIV_PLMapping2");
        bits.PCIeTL_DIV_DL_DIV_PLMapping3.setBaseRegister(&r32);
        bits.PCIeTL_DIV_DL_DIV_PLMapping3.setName("PCIeTL_DIV_DL_DIV_PLMapping3");
    }
    RegDEVICEGrcModeControl_t& operator=(const RegDEVICEGrcModeControl_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEGrcModeControl_t;

#define REG_DEVICE_MISCELLANEOUS_CONFIG ((volatile APE_DEVICE_H_uint32_t*)0xa0046804) /*  */
#define     DEVICE_MISCELLANEOUS_CONFIG_GRC_RESET_SHIFT 1u
#define     DEVICE_MISCELLANEOUS_CONFIG_GRC_RESET_MASK  0x2u
#define GET_DEVICE_MISCELLANEOUS_CONFIG_GRC_RESET(__reg__)  (((__reg__) & 0x2) >> 1u)
#define SET_DEVICE_MISCELLANEOUS_CONFIG_GRC_RESET(__val__)  (((__val__) << 1u) & 0x2u)
#define     DEVICE_MISCELLANEOUS_CONFIG_ALL_SHIFT 1u
#define     DEVICE_MISCELLANEOUS_CONFIG_ALL_MASK  0xfffffffeu
#define GET_DEVICE_MISCELLANEOUS_CONFIG_ALL(__reg__)  (((__reg__) & 0xfffffffe) >> 1u)
#define SET_DEVICE_MISCELLANEOUS_CONFIG_ALL(__val__)  (((__val__) << 1u) & 0xfffffffeu)

/** @brief Register definition for @ref DEVICE_t.MiscellaneousConfig. */
typedef register_container RegDEVICEMiscellaneousConfig_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_0_0, 0, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, GRCReset, 1, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, all, 1, 31)
#elif defined(__BIG_ENDIAN__)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, all, 1, 31)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, GRCReset, 1, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_0_0, 0, 1)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "MiscellaneousConfig"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEMiscellaneousConfig_t()
    {
        /** @brief constructor for @ref DEVICE_t.MiscellaneousConfig. */
        r32.setName("MiscellaneousConfig");
        bits.GRCReset.setBaseRegister(&r32);
        bits.GRCReset.setName("GRCReset");
        bits.all.setBaseRegister(&r32);
        bits.all.setName("all");
    }
    RegDEVICEMiscellaneousConfig_t& operator=(const RegDEVICEMiscellaneousConfig_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEMiscellaneousConfig_t;

#define REG_DEVICE_MISCELLANEOUS_LOCAL_CONTROL ((volatile APE_DEVICE_H_uint32_t*)0xa0046808) /*  */
#define     DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_0_INPUT_SHIFT 8u
#define     DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_0_INPUT_MASK  0x100u
#define GET_DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_0_INPUT(__reg__)  (((__reg__) & 0x100) >> 8u)
#define SET_DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_0_INPUT(__val__)  (((__val__) << 8u) & 0x100u)
#define     DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_1_INPUT_SHIFT 9u
#define     DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_1_INPUT_MASK  0x200u
#define GET_DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_1_INPUT(__reg__)  (((__reg__) & 0x200) >> 9u)
#define SET_DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_1_INPUT(__val__)  (((__val__) << 9u) & 0x200u)
#define     DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_2_INPUT_SHIFT 10u
#define     DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_2_INPUT_MASK  0x400u
#define GET_DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_2_INPUT(__reg__)  (((__reg__) & 0x400) >> 10u)
#define SET_DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_2_INPUT(__val__)  (((__val__) << 10u) & 0x400u)
#define     DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_0_OUTPUT_ENABLE_SHIFT 11u
#define     DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_0_OUTPUT_ENABLE_MASK  0x800u
#define GET_DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_0_OUTPUT_ENABLE(__reg__)  (((__reg__) & 0x800) >> 11u)
#define SET_DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_0_OUTPUT_ENABLE(__val__)  (((__val__) << 11u) & 0x800u)
#define     DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_1_OUTPUT_ENABLE_SHIFT 12u
#define     DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_1_OUTPUT_ENABLE_MASK  0x1000u
#define GET_DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_1_OUTPUT_ENABLE(__reg__)  (((__reg__) & 0x1000) >> 12u)
#define SET_DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_1_OUTPUT_ENABLE(__val__)  (((__val__) << 12u) & 0x1000u)
#define     DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_2_OUTPUT_ENABLE_SHIFT 13u
#define     DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_2_OUTPUT_ENABLE_MASK  0x2000u
#define GET_DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_2_OUTPUT_ENABLE(__reg__)  (((__reg__) & 0x2000) >> 13u)
#define SET_DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_2_OUTPUT_ENABLE(__val__)  (((__val__) << 13u) & 0x2000u)
#define     DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_0_OUTPUT_SHIFT 14u
#define     DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_0_OUTPUT_MASK  0x4000u
#define GET_DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_0_OUTPUT(__reg__)  (((__reg__) & 0x4000) >> 14u)
#define SET_DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_0_OUTPUT(__val__)  (((__val__) << 14u) & 0x4000u)
#define     DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_1_OUTPUT_SHIFT 15u
#define     DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_1_OUTPUT_MASK  0x8000u
#define GET_DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_1_OUTPUT(__reg__)  (((__reg__) & 0x8000) >> 15u)
#define SET_DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_1_OUTPUT(__val__)  (((__val__) << 15u) & 0x8000u)
#define     DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_2_OUTPUT_SHIFT 16u
#define     DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_2_OUTPUT_MASK  0x10000u
#define GET_DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_2_OUTPUT(__reg__)  (((__reg__) & 0x10000) >> 16u)
#define SET_DEVICE_MISCELLANEOUS_LOCAL_CONTROL_GPIO_2_OUTPUT(__val__)  (((__val__) << 16u) & 0x10000u)
#define     DEVICE_MISCELLANEOUS_LOCAL_CONTROL_AUTO_SEEPROM_ACCESS_SHIFT 24u
#define     DEVICE_MISCELLANEOUS_LOCAL_CONTROL_AUTO_SEEPROM_ACCESS_MASK  0x1000000u
#define GET_DEVICE_MISCELLANEOUS_LOCAL_CONTROL_AUTO_SEEPROM_ACCESS(__reg__)  (((__reg__) & 0x1000000) >> 24u)
#define SET_DEVICE_MISCELLANEOUS_LOCAL_CONTROL_AUTO_SEEPROM_ACCESS(__val__)  (((__val__) << 24u) & 0x1000000u)

/** @brief Register definition for @ref DEVICE_t.MiscellaneousLocalControl. */
typedef register_container RegDEVICEMiscellaneousLocalControl_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_7_0, 0, 8)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, GPIO0Input, 8, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, GPIO1Input, 9, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, GPIO2Input, 10, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, GPIO0OutputEnable, 11, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, GPIO1OutputEnable, 12, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, GPIO2OutputEnable, 13, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, GPIO0Output, 14, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, GPIO1Output, 15, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, GPIO2Output, 16, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_23_17, 17, 7)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, AutoSEEPROMAccess, 24, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_25, 25, 7)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_25, 25, 7)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, AutoSEEPROMAccess, 24, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_23_17, 17, 7)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, GPIO2Output, 16, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, GPIO1Output, 15, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, GPIO0Output, 14, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, GPIO2OutputEnable, 13, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, GPIO1OutputEnable, 12, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, GPIO0OutputEnable, 11, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, GPIO2Input, 10, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, GPIO1Input, 9, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, GPIO0Input, 8, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_7_0, 0, 8)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "MiscellaneousLocalControl"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEMiscellaneousLocalControl_t()
    {
        /** @brief constructor for @ref DEVICE_t.MiscellaneousLocalControl. */
        r32.setName("MiscellaneousLocalControl");
        bits.GPIO0Input.setBaseRegister(&r32);
        bits.GPIO0Input.setName("GPIO0Input");
        bits.GPIO1Input.setBaseRegister(&r32);
        bits.GPIO1Input.setName("GPIO1Input");
        bits.GPIO2Input.setBaseRegister(&r32);
        bits.GPIO2Input.setName("GPIO2Input");
        bits.GPIO0OutputEnable.setBaseRegister(&r32);
        bits.GPIO0OutputEnable.setName("GPIO0OutputEnable");
        bits.GPIO1OutputEnable.setBaseRegister(&r32);
        bits.GPIO1OutputEnable.setName("GPIO1OutputEnable");
        bits.GPIO2OutputEnable.setBaseRegister(&r32);
        bits.GPIO2OutputEnable.setName("GPIO2OutputEnable");
        bits.GPIO0Output.setBaseRegister(&r32);
        bits.GPIO0Output.setName("GPIO0Output");
        bits.GPIO1Output.setBaseRegister(&r32);
        bits.GPIO1Output.setName("GPIO1Output");
        bits.GPIO2Output.setBaseRegister(&r32);
        bits.GPIO2Output.setName("GPIO2Output");
        bits.AutoSEEPROMAccess.setBaseRegister(&r32);
        bits.AutoSEEPROMAccess.setName("AutoSEEPROMAccess");
    }
    RegDEVICEMiscellaneousLocalControl_t& operator=(const RegDEVICEMiscellaneousLocalControl_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEMiscellaneousLocalControl_t;

#define REG_DEVICE_TIMER ((volatile APE_DEVICE_H_uint32_t*)0xa004680c) /* 32-bit free-running counter */
/** @brief Register definition for @ref DEVICE_t.Timer. */
typedef register_container RegDEVICETimer_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "Timer"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICETimer_t()
    {
        /** @brief constructor for @ref DEVICE_t.Timer. */
        r32.setName("Timer");
    }
    RegDEVICETimer_t& operator=(const RegDEVICETimer_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICETimer_t;

#define REG_DEVICE_RX_CPU_EVENT ((volatile APE_DEVICE_H_uint32_t*)0xa0046810) /*  */
#define     DEVICE_RX_CPU_EVENT_MAC_ATTENTION_SHIFT 25u
#define     DEVICE_RX_CPU_EVENT_MAC_ATTENTION_MASK  0x2000000u
#define GET_DEVICE_RX_CPU_EVENT_MAC_ATTENTION(__reg__)  (((__reg__) & 0x2000000) >> 25u)
#define SET_DEVICE_RX_CPU_EVENT_MAC_ATTENTION(__val__)  (((__val__) << 25u) & 0x2000000u)
#define     DEVICE_RX_CPU_EVENT_RX_CPU_ATTENTION_SHIFT 26u
#define     DEVICE_RX_CPU_EVENT_RX_CPU_ATTENTION_MASK  0x4000000u
#define GET_DEVICE_RX_CPU_EVENT_RX_CPU_ATTENTION(__reg__)  (((__reg__) & 0x4000000) >> 26u)
#define SET_DEVICE_RX_CPU_EVENT_RX_CPU_ATTENTION(__val__)  (((__val__) << 26u) & 0x4000000u)
#define     DEVICE_RX_CPU_EVENT_TIMER_SHIFT 29u
#define     DEVICE_RX_CPU_EVENT_TIMER_MASK  0x20000000u
#define GET_DEVICE_RX_CPU_EVENT_TIMER(__reg__)  (((__reg__) & 0x20000000) >> 29u)
#define SET_DEVICE_RX_CPU_EVENT_TIMER(__val__)  (((__val__) << 29u) & 0x20000000u)
#define     DEVICE_RX_CPU_EVENT_VPD_ATTENTION_SHIFT 30u
#define     DEVICE_RX_CPU_EVENT_VPD_ATTENTION_MASK  0x40000000u
#define GET_DEVICE_RX_CPU_EVENT_VPD_ATTENTION(__reg__)  (((__reg__) & 0x40000000) >> 30u)
#define SET_DEVICE_RX_CPU_EVENT_VPD_ATTENTION(__val__)  (((__val__) << 30u) & 0x40000000u)

/** @brief Register definition for @ref DEVICE_t.RxCpuEvent. */
typedef register_container RegDEVICERxCpuEvent_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_24_0, 0, 25)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MACAttention, 25, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, RXCPUAttention, 26, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_28_27, 27, 2)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Timer, 29, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, VPDAttention, 30, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_31, 31, 1)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_31, 31, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, VPDAttention, 30, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Timer, 29, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_28_27, 27, 2)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, RXCPUAttention, 26, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, MACAttention, 25, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_24_0, 0, 25)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxCpuEvent"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxCpuEvent_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxCpuEvent. */
        r32.setName("RxCpuEvent");
        bits.MACAttention.setBaseRegister(&r32);
        bits.MACAttention.setName("MACAttention");
        bits.RXCPUAttention.setBaseRegister(&r32);
        bits.RXCPUAttention.setName("RXCPUAttention");
        bits.Timer.setBaseRegister(&r32);
        bits.Timer.setName("Timer");
        bits.VPDAttention.setBaseRegister(&r32);
        bits.VPDAttention.setName("VPDAttention");
    }
    RegDEVICERxCpuEvent_t& operator=(const RegDEVICERxCpuEvent_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxCpuEvent_t;

#define REG_DEVICE_6838 ((volatile APE_DEVICE_H_uint32_t*)0xa0046838) /* Unknown. Used by PXE agent. */
/** @brief Register definition for @ref DEVICE_t.6838. */
typedef register_container RegDEVICE6838_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "6838"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICE6838_t()
    {
        /** @brief constructor for @ref DEVICE_t.6838. */
        r32.setName("6838");
    }
    RegDEVICE6838_t& operator=(const RegDEVICE6838_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICE6838_t;

#define REG_DEVICE_MDI_CONTROL ((volatile APE_DEVICE_H_uint32_t*)0xa0046844) /* The register manual only mentions this in the changelog; it was removed from the manual in a previous revision. :| */
/** @brief Register definition for @ref DEVICE_t.MdiControl. */
typedef register_container RegDEVICEMdiControl_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "MdiControl"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEMdiControl_t()
    {
        /** @brief constructor for @ref DEVICE_t.MdiControl. */
        r32.setName("MdiControl");
    }
    RegDEVICEMdiControl_t& operator=(const RegDEVICEMdiControl_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEMdiControl_t;

#define REG_DEVICE_RX_CPU_EVENT_ENABLE ((volatile APE_DEVICE_H_uint32_t*)0xa004684c) /*  */
#define     DEVICE_RX_CPU_EVENT_ENABLE_VPD_ATTENTION_SHIFT 30u
#define     DEVICE_RX_CPU_EVENT_ENABLE_VPD_ATTENTION_MASK  0x40000000u
#define GET_DEVICE_RX_CPU_EVENT_ENABLE_VPD_ATTENTION(__reg__)  (((__reg__) & 0x40000000) >> 30u)
#define SET_DEVICE_RX_CPU_EVENT_ENABLE_VPD_ATTENTION(__val__)  (((__val__) << 30u) & 0x40000000u)

/** @brief Register definition for @ref DEVICE_t.RxCpuEventEnable. */
typedef register_container RegDEVICERxCpuEventEnable_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_29_0, 0, 30)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, VPDAttention, 30, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_31, 31, 1)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_31, 31, 1)
        /** @brief  */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, VPDAttention, 30, 1)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_29_0, 0, 30)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "RxCpuEventEnable"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICERxCpuEventEnable_t()
    {
        /** @brief constructor for @ref DEVICE_t.RxCpuEventEnable. */
        r32.setName("RxCpuEventEnable");
        bits.VPDAttention.setBaseRegister(&r32);
        bits.VPDAttention.setName("VPDAttention");
    }
    RegDEVICERxCpuEventEnable_t& operator=(const RegDEVICERxCpuEventEnable_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICERxCpuEventEnable_t;

#define REG_DEVICE_FAST_BOOT_PROGRAM_COUNTER ((volatile APE_DEVICE_H_uint32_t*)0xa0046894) /*  */
#define     DEVICE_FAST_BOOT_PROGRAM_COUNTER_PROGRAM_COUNTER_SHIFT 0u
#define     DEVICE_FAST_BOOT_PROGRAM_COUNTER_PROGRAM_COUNTER_MASK  0x7fffffffu
#define GET_DEVICE_FAST_BOOT_PROGRAM_COUNTER_PROGRAM_COUNTER(__reg__)  (((__reg__) & 0x7fffffff) >> 0u)
#define SET_DEVICE_FAST_BOOT_PROGRAM_COUNTER_PROGRAM_COUNTER(__val__)  (((__val__) << 0u) & 0x7fffffffu)
#define     DEVICE_FAST_BOOT_PROGRAM_COUNTER_ENABLE_SHIFT 31u
#define     DEVICE_FAST_BOOT_PROGRAM_COUNTER_ENABLE_MASK  0x80000000u
#define GET_DEVICE_FAST_BOOT_PROGRAM_COUNTER_ENABLE(__reg__)  (((__reg__) & 0x80000000) >> 31u)
#define SET_DEVICE_FAST_BOOT_PROGRAM_COUNTER_ENABLE(__val__)  (((__val__) << 31u) & 0x80000000u)

/** @brief Register definition for @ref DEVICE_t.FastBootProgramCounter. */
typedef register_container RegDEVICEFastBootProgramCounter_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief This field is used by the CPU to keep track of the location of the phase 1 boot code in RX MBUF. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, ProgramCounter, 0, 31)
        /** @brief This bit is used by the CPU to keep track of whether or not there is valid phase 1 boot code stored in the RX MBUF. If the bit is set, then RXMBUF contains valid boot code. Otherwise, it is assumed that RXMBUF does not contain valid boot code. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Enable, 31, 1)
#elif defined(__BIG_ENDIAN__)
        /** @brief This bit is used by the CPU to keep track of whether or not there is valid phase 1 boot code stored in the RX MBUF. If the bit is set, then RXMBUF contains valid boot code. Otherwise, it is assumed that RXMBUF does not contain valid boot code. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, Enable, 31, 1)
        /** @brief This field is used by the CPU to keep track of the location of the phase 1 boot code in RX MBUF. */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, ProgramCounter, 0, 31)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "FastBootProgramCounter"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEFastBootProgramCounter_t()
    {
        /** @brief constructor for @ref DEVICE_t.FastBootProgramCounter. */
        r32.setName("FastBootProgramCounter");
        bits.ProgramCounter.setBaseRegister(&r32);
        bits.ProgramCounter.setName("ProgramCounter");
        bits.Enable.setBaseRegister(&r32);
        bits.Enable.setName("Enable");
    }
    RegDEVICEFastBootProgramCounter_t& operator=(const RegDEVICEFastBootProgramCounter_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEFastBootProgramCounter_t;

#define REG_DEVICE_EXPANSION_ROM_ADDR ((volatile APE_DEVICE_H_uint32_t*)0xa00468ec) /* Expansion ROM base address, expect to be d- word aligned. */
/** @brief Register definition for @ref DEVICE_t.ExpansionRomAddr. */
typedef register_container RegDEVICEExpansionRomAddr_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "ExpansionRomAddr"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEExpansionRomAddr_t()
    {
        /** @brief constructor for @ref DEVICE_t.ExpansionRomAddr. */
        r32.setName("ExpansionRomAddr");
    }
    RegDEVICEExpansionRomAddr_t& operator=(const RegDEVICEExpansionRomAddr_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEExpansionRomAddr_t;

#define REG_DEVICE_68F0 ((volatile APE_DEVICE_H_uint32_t*)0xa00468f0) /*  */
/** @brief Register definition for @ref DEVICE_t.68f0. */
typedef register_container RegDEVICE68f0_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "68f0"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICE68f0_t()
    {
        /** @brief constructor for @ref DEVICE_t.68f0. */
        r32.setName("68f0");
    }
    RegDEVICE68f0_t& operator=(const RegDEVICE68f0_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICE68f0_t;

#define REG_DEVICE_EAV_REF_CLOCK_CONTROL ((volatile APE_DEVICE_H_uint32_t*)0xa0046908) /*  */
#define     DEVICE_EAV_REF_CLOCK_CONTROL_TIMESYNC_GPIO_MAPPING_SHIFT 16u
#define     DEVICE_EAV_REF_CLOCK_CONTROL_TIMESYNC_GPIO_MAPPING_MASK  0x30000u
#define GET_DEVICE_EAV_REF_CLOCK_CONTROL_TIMESYNC_GPIO_MAPPING(__reg__)  (((__reg__) & 0x30000) >> 16u)
#define SET_DEVICE_EAV_REF_CLOCK_CONTROL_TIMESYNC_GPIO_MAPPING(__val__)  (((__val__) << 16u) & 0x30000u)
#define     DEVICE_EAV_REF_CLOCK_CONTROL_TIMESYNC_GPIO_MAPPING_SNAP_SHOT_0_ 0x0u
#define     DEVICE_EAV_REF_CLOCK_CONTROL_TIMESYNC_GPIO_MAPPING_SNAP_SHOT_1_ 0x1u
#define     DEVICE_EAV_REF_CLOCK_CONTROL_TIMESYNC_GPIO_MAPPING_TIME_WATCHDOG_0_ 0x2u
#define     DEVICE_EAV_REF_CLOCK_CONTROL_TIMESYNC_GPIO_MAPPING_TIME_WATCHDOG_1_ 0x3u

#define     DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_0_MAPPING_SHIFT 18u
#define     DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_0_MAPPING_MASK  0x1c0000u
#define GET_DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_0_MAPPING(__reg__)  (((__reg__) & 0x1c0000) >> 18u)
#define SET_DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_0_MAPPING(__val__)  (((__val__) << 18u) & 0x1c0000u)
#define     DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_0_MAPPING_NOT_USED 0x0u
#define     DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_0_MAPPING_SNAP_SHOT_0_ 0x4u
#define     DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_0_MAPPING_SNAP_SHOT_1_ 0x5u
#define     DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_0_MAPPING_TIME_WATCHDOG_0_ 0x6u
#define     DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_0_MAPPING_TIME_WATCHDOG_1_ 0x7u

#define     DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_1_MAPPING_SHIFT 21u
#define     DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_1_MAPPING_MASK  0xe00000u
#define GET_DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_1_MAPPING(__reg__)  (((__reg__) & 0xe00000) >> 21u)
#define SET_DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_1_MAPPING(__val__)  (((__val__) << 21u) & 0xe00000u)
#define     DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_1_MAPPING_NOT_USED 0x0u
#define     DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_1_MAPPING_SNAP_SHOT_0_ 0x4u
#define     DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_1_MAPPING_SNAP_SHOT_1_ 0x5u
#define     DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_1_MAPPING_TIME_WATCHDOG_0_ 0x6u
#define     DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_1_MAPPING_TIME_WATCHDOG_1_ 0x7u

#define     DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_2_MAPPING_SHIFT 24u
#define     DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_2_MAPPING_MASK  0x7000000u
#define GET_DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_2_MAPPING(__reg__)  (((__reg__) & 0x7000000) >> 24u)
#define SET_DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_2_MAPPING(__val__)  (((__val__) << 24u) & 0x7000000u)
#define     DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_2_MAPPING_NOT_USED 0x0u
#define     DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_2_MAPPING_SNAP_SHOT_0_ 0x4u
#define     DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_2_MAPPING_SNAP_SHOT_1_ 0x5u
#define     DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_2_MAPPING_TIME_WATCHDOG_0_ 0x6u
#define     DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_2_MAPPING_TIME_WATCHDOG_1_ 0x7u

#define     DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_3_MAPPING_SHIFT 27u
#define     DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_3_MAPPING_MASK  0x38000000u
#define GET_DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_3_MAPPING(__reg__)  (((__reg__) & 0x38000000) >> 27u)
#define SET_DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_3_MAPPING(__val__)  (((__val__) << 27u) & 0x38000000u)
#define     DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_3_MAPPING_NOT_USED 0x0u
#define     DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_3_MAPPING_SNAP_SHOT_0_ 0x4u
#define     DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_3_MAPPING_SNAP_SHOT_1_ 0x5u
#define     DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_3_MAPPING_TIME_WATCHDOG_0_ 0x6u
#define     DEVICE_EAV_REF_CLOCK_CONTROL_APE_GPIO_3_MAPPING_TIME_WATCHDOG_1_ 0x7u


/** @brief Register definition for @ref DEVICE_t.EavRefClockControl. */
typedef register_container RegDEVICEEavRefClockControl_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;

    BITFIELD_BEGIN(APE_DEVICE_H_uint32_t, bits)
#if defined(__LITTLE_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_15_0, 0, 16)
        /** @brief The MAC/Port dedicated TimeSync_GPIO pin is mapped via this field */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, TimesyncGPIOMapping, 16, 2)
        /** @brief APE_GPIO[0] pin is mapped to 1588 input/ output via this field */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, APEGPIO0Mapping, 18, 3)
        /** @brief APE_GPIO[1] pin is mapped to 1588 input/ output via this field */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, APEGPIO1Mapping, 21, 3)
        /** @brief APE_GPIO[2] pin is mapped to 1588 input/ output via this field */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, APEGPIO2Mapping, 24, 3)
        /** @brief APE_GPIO[3] pin is mapped to 1588 input/ output via this field */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, APEGPIO3Mapping, 27, 3)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_30, 30, 2)
#elif defined(__BIG_ENDIAN__)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_31_30, 30, 2)
        /** @brief APE_GPIO[3] pin is mapped to 1588 input/ output via this field */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, APEGPIO3Mapping, 27, 3)
        /** @brief APE_GPIO[2] pin is mapped to 1588 input/ output via this field */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, APEGPIO2Mapping, 24, 3)
        /** @brief APE_GPIO[1] pin is mapped to 1588 input/ output via this field */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, APEGPIO1Mapping, 21, 3)
        /** @brief APE_GPIO[0] pin is mapped to 1588 input/ output via this field */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, APEGPIO0Mapping, 18, 3)
        /** @brief The MAC/Port dedicated TimeSync_GPIO pin is mapped via this field */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, TimesyncGPIOMapping, 16, 2)
        /** @brief Padding */
        BITFIELD_MEMBER(APE_DEVICE_H_uint32_t, reserved_15_0, 0, 16)
#else
#error Unknown Endian
#endif
    BITFIELD_END(APE_DEVICE_H_uint32_t, bits)
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "EavRefClockControl"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICEEavRefClockControl_t()
    {
        /** @brief constructor for @ref DEVICE_t.EavRefClockControl. */
        r32.setName("EavRefClockControl");
        bits.TimesyncGPIOMapping.setBaseRegister(&r32);
        bits.TimesyncGPIOMapping.setName("TimesyncGPIOMapping");
        bits.APEGPIO0Mapping.setBaseRegister(&r32);
        bits.APEGPIO0Mapping.setName("APEGPIO0Mapping");
        bits.APEGPIO1Mapping.setBaseRegister(&r32);
        bits.APEGPIO1Mapping.setName("APEGPIO1Mapping");
        bits.APEGPIO2Mapping.setBaseRegister(&r32);
        bits.APEGPIO2Mapping.setName("APEGPIO2Mapping");
        bits.APEGPIO3Mapping.setBaseRegister(&r32);
        bits.APEGPIO3Mapping.setName("APEGPIO3Mapping");
    }
    RegDEVICEEavRefClockControl_t& operator=(const RegDEVICEEavRefClockControl_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICEEavRefClockControl_t;

#define REG_DEVICE_7C04 ((volatile APE_DEVICE_H_uint32_t*)0xa0047c04) /* PCIe-related. tg3 driver calls this  */
/** @brief Register definition for @ref DEVICE_t.7c04. */
typedef register_container RegDEVICE7c04_t {
    /** @brief 32bit direct register access. */
    APE_DEVICE_H_uint32_t r32;
#ifdef CXX_SIMULATOR
    /** @brief Register name for use with the simulator. */
    const char* getName(void) { return "7c04"; }

    /** @brief Print register value. */
    void print(void) { r32.print(); }

    RegDEVICE7c04_t()
    {
        /** @brief constructor for @ref DEVICE_t.7c04. */
        r32.setName("7c04");
    }
    RegDEVICE7c04_t& operator=(const RegDEVICE7c04_t& other)
    {
        r32 = other.r32;
        return *this;
    }
#endif /* CXX_SIMULATOR */
} RegDEVICE7c04_t;

/** @brief Component definition for @ref DEVICE. */
typedef struct DEVICE_t {
    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_0[26];

    /** @brief  */
    RegDEVICEMiscellaneousHostControl_t MiscellaneousHostControl;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_108[1];

    /** @brief  */
    RegDEVICEPciState_t PciState;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_116[1];

    /** @brief Local controller memory address of a register than can be written or read by writing to the register data register. */
    RegDEVICERegisterBase_t RegisterBase;

    /** @brief Local controller memory address of the NIC memory region that can be accessed via Memory Window data register. */
    RegDEVICEMemoryBase_t MemoryBase;

    /** @brief Register Data at the location pointed by the Register Base Register. */
    RegDEVICERegisterData_t RegisterData;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_132[1];

    /** @brief UNDI Receive Return Ring Consumer Index Mailbox */
    RegDEVICEUndiReceiveReturnRingConsumerIndex_t UndiReceiveReturnRingConsumerIndex;

    /** @brief UNDI Receive Return Ring Consumer Index Mailbox */
    RegDEVICEUndiReceiveReturnRingConsumerIndexLow_t UndiReceiveReturnRingConsumerIndexLow;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_144[11];

    /** @brief PCIe standard register. */
    RegDEVICELinkStatusControl_t LinkStatusControl;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_192[14];

    /** @brief APE Memory address to read/write using the APE Memory Data register.. */
    RegDEVICEApeMemoryBase_t ApeMemoryBase;

    /** @brief APE Memory value at the location pointed by the Memory Base Register. */
    RegDEVICEApeMemoryData_t ApeMemoryData;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_256[192];

    /** @brief  */
    RegDEVICEEmacMode_t EmacMode;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_1028[2];

    /** @brief  */
    RegDEVICELedControl_t LedControl;

    /** @brief Upper 2-bytes of this node's MAC address. */
    RegDEVICEEmacMacAddresses0High_t EmacMacAddresses0High;

    /** @brief Lower 4-byte of this node's MAC address. */
    RegDEVICEEmacMacAddresses0Low_t EmacMacAddresses0Low;

    /** @brief Upper 2-bytes of this node's MAC address. */
    RegDEVICEEmacMacAddresses1High_t EmacMacAddresses1High;

    /** @brief Lower 4-byte of this node's MAC address. */
    RegDEVICEEmacMacAddresses1Low_t EmacMacAddresses1Low;

    /** @brief Upper 2-bytes of this node's MAC address. */
    RegDEVICEEmacMacAddresses2High_t EmacMacAddresses2High;

    /** @brief Lower 4-byte of this node's MAC address. */
    RegDEVICEEmacMacAddresses2Low_t EmacMacAddresses2Low;

    /** @brief Upper 2-bytes of this node's MAC address. */
    RegDEVICEEmacMacAddresses3High_t EmacMacAddresses3High;

    /** @brief Lower 4-byte of this node's MAC address. */
    RegDEVICEEmacMacAddresses3Low_t EmacMacAddresses3Low;

    /** @brief Specifies the offset into the 6KB BD memory for frame comparison. (Bits 3:0 are ignored to align the memory address to a natural 128-bit boundary). */
    RegDEVICEWolPatternPointer_t WolPatternPointer;

    /** @brief  */
    RegDEVICEWolPatternCfg_t WolPatternCfg;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_1080[1];

    /** @brief 2-byte field which is the largest size frame that will be accepted without being marked as oversize. */
    RegDEVICEMtuSize_t MtuSize;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_1088[3];

    /** @brief  */
    RegDEVICEMiiCommunication_t MiiCommunication;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_1104[1];

    /** @brief  */
    RegDEVICEMiiMode_t MiiMode;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_1112[1];

    /** @brief  */
    RegDEVICETransmitMacMode_t TransmitMacMode;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_1120[2];

    /** @brief  */
    RegDEVICEReceiveMacMode_t ReceiveMacMode;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_1132[53];

    /** @brief  */
    RegDEVICEPerfectMatch1High_t PerfectMatch1High;

    /** @brief  */
    RegDEVICEPerfectMatch1Low_t PerfectMatch1Low;

    /** @brief  */
    RegDEVICEPerfectMatch2High_t PerfectMatch2High;

    /** @brief  */
    RegDEVICEPerfectMatch2Low_t PerfectMatch2Low;

    /** @brief  */
    RegDEVICEPerfectMatch3High_t PerfectMatch3High;

    /** @brief  */
    RegDEVICEPerfectMatch3Low_t PerfectMatch3Low;

    /** @brief  */
    RegDEVICEPerfectMatch4High_t PerfectMatch4High;

    /** @brief  */
    RegDEVICEPerfectMatch4Low_t PerfectMatch4Low;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_1376[21];

    /** @brief This register reflects various status of the respective SGMII port when enabled. */
    RegDEVICESgmiiStatus_t SgmiiStatus;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_1464[3090];

    /** @brief  */
    RegDEVICECpmuControl_t CpmuControl;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_13828[3];

    /** @brief  */
    RegDEVICELinkAwarePowerModeClockPolicy_t LinkAwarePowerModeClockPolicy;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_13844[4];

    /** @brief  */
    RegDEVICEClockSpeedOverridePolicy_t ClockSpeedOverridePolicy;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_13864[1];

    /** @brief  */
    RegDEVICEStatus_t Status;

    /** @brief  */
    RegDEVICEClockStatus_t ClockStatus;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_13876[1];

    /** @brief  */
    RegDEVICEGphyControlStatus_t GphyControlStatus;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_13884[7];

    /** @brief  */
    RegDEVICEChipId_t ChipId;

    /** @brief Writing a 1 to any of these bits pends a Mutex lock request on behalf of a software agent. The bit is subsequently latched by hardware and shall read 1 as long as the request is pending. Writing a 0 to a bit shall have no effect. */
    RegDEVICEMutexRequest_t MutexRequest;

    /** @brief Reading this field shall return a maximum of one set bit at any time. The set bit shall point to the lock owner. If the Mutex is not locked, then a read shall return a value 0x0000. Writing a 1 to the already set bit shall relinquish the lock and the set bit shall be cleared. Writing a 1 to an unset bit shall cancel the corresponding pending request if there was one, and the pairing bit in the Mutex_Request_Reg shall be cleared. */
    RegDEVICEMutexGrant_t MutexGrant;

    /** @brief  */
    RegDEVICEGphyStrap_t GphyStrap;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_13928[5];

    /** @brief  */
    RegDEVICETopLevelMiscellaneousControl1_t TopLevelMiscellaneousControl1;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_13952[12];

    /** @brief  */
    RegDEVICEEeeMode_t EeeMode;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_14004[2];

    /** @brief  */
    RegDEVICEEeeLinkIdleControl_t EeeLinkIdleControl;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_14016[4];

    /** @brief  */
    RegDEVICEEeeControl_t EeeControl;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_14036[7];

    /** @brief  */
    RegDEVICEGlobalMutexRequest_t GlobalMutexRequest;

    /** @brief  */
    RegDEVICEGlobalMutexGrant_t GlobalMutexGrant;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_14072[578];

    /** @brief  */
    RegDEVICEMemoryArbiterMode_t MemoryArbiterMode;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_16388[255];

    /** @brief  */
    RegDEVICEBufferManagerMode_t BufferManagerMode;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_17412[323];

    /** @brief  */
    RegDEVICELsoNonlsoBdReadDmaCorruptionEnableControl_t LsoNonlsoBdReadDmaCorruptionEnableControl;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_18708[443];

    /** @brief  */
    RegDEVICERxRiscMode_t RxRiscMode;

    /** @brief  */
    RegDEVICERxRiscStatus_t RxRiscStatus;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_20488[5];

    /** @brief The program counter register can be used to read or write the current Program Counter of the each CPU. Reads can occur at any time, however writes can only be performed when the CPU is halted. Writes will also clear any pending instruction in the decode stage of the pipeline. Bits 31-2 are implemented. 1s written to bits 1-0 are ignored. */
    RegDEVICERxRiscProgramCounter_t RxRiscProgramCounter;

    /** @brief This undocumented register contains the current word located at the program counter address loaded in  */
    RegDEVICERxRiscCurrentInstruction_t RxRiscCurrentInstruction;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_20516[4];

    /** @brief This register is used to set a hardware breakpoint based on the RISC's program counter (PC). If the PC equals the value in this register, and the hardware breakpoint is enabled, the RISC is halted and the appropriate stopping condition is indicated in the RISC State Register. To enable the hardware breakpoint, simply write the byte address of the instruction to break on and clear the Disable Hardware Breakpoint bit. */
    RegDEVICERxRiscHardwareBreakpoint_t RxRiscHardwareBreakpoint;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_20536[114];

    /** @brief $zero (R0) */
    RegDEVICERxRiscRegister0_t RxRiscRegister0;

    /** @brief $at (R1) */
    RegDEVICERxRiscRegister1_t RxRiscRegister1;

    /** @brief $v0 (R2) */
    RegDEVICERxRiscRegister2_t RxRiscRegister2;

    /** @brief $v1 (R3) */
    RegDEVICERxRiscRegister3_t RxRiscRegister3;

    /** @brief $a0 (R4) */
    RegDEVICERxRiscRegister4_t RxRiscRegister4;

    /** @brief $a1 (R5) */
    RegDEVICERxRiscRegister5_t RxRiscRegister5;

    /** @brief $a2 (R6) */
    RegDEVICERxRiscRegister6_t RxRiscRegister6;

    /** @brief $a3 (R7) */
    RegDEVICERxRiscRegister7_t RxRiscRegister7;

    /** @brief $t0 (R8) */
    RegDEVICERxRiscRegister8_t RxRiscRegister8;

    /** @brief $t1 (R9) */
    RegDEVICERxRiscRegister9_t RxRiscRegister9;

    /** @brief $t2 (R10) */
    RegDEVICERxRiscRegister10_t RxRiscRegister10;

    /** @brief $t3 (R11) */
    RegDEVICERxRiscRegister11_t RxRiscRegister11;

    /** @brief $t4 (R12) */
    RegDEVICERxRiscRegister12_t RxRiscRegister12;

    /** @brief $t5 (R13) */
    RegDEVICERxRiscRegister13_t RxRiscRegister13;

    /** @brief $t6 (R14) */
    RegDEVICERxRiscRegister14_t RxRiscRegister14;

    /** @brief $t7 (R15) */
    RegDEVICERxRiscRegister15_t RxRiscRegister15;

    /** @brief $s0 (R16) */
    RegDEVICERxRiscRegister16_t RxRiscRegister16;

    /** @brief $s1 (R17) */
    RegDEVICERxRiscRegister17_t RxRiscRegister17;

    /** @brief $s2 (R18) */
    RegDEVICERxRiscRegister18_t RxRiscRegister18;

    /** @brief $s3 (R19) */
    RegDEVICERxRiscRegister19_t RxRiscRegister19;

    /** @brief $s4 (R20) */
    RegDEVICERxRiscRegister20_t RxRiscRegister20;

    /** @brief $s5 (R21) */
    RegDEVICERxRiscRegister21_t RxRiscRegister21;

    /** @brief $s6 (R22) */
    RegDEVICERxRiscRegister22_t RxRiscRegister22;

    /** @brief $s7 (R23) */
    RegDEVICERxRiscRegister23_t RxRiscRegister23;

    /** @brief $t8 (R24) */
    RegDEVICERxRiscRegister24_t RxRiscRegister24;

    /** @brief $t9 (R25) */
    RegDEVICERxRiscRegister25_t RxRiscRegister25;

    /** @brief $k0 (R26) */
    RegDEVICERxRiscRegister26_t RxRiscRegister26;

    /** @brief $k1 (R27) */
    RegDEVICERxRiscRegister27_t RxRiscRegister27;

    /** @brief $gp (R28) */
    RegDEVICERxRiscRegister28_t RxRiscRegister28;

    /** @brief $sp (R29) */
    RegDEVICERxRiscRegister29_t RxRiscRegister29;

    /** @brief $fp (R30) */
    RegDEVICERxRiscRegister30_t RxRiscRegister30;

    /** @brief $ra (R31) */
    RegDEVICERxRiscRegister31_t RxRiscRegister31;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_21120[1122];

    /** @brief  */
    RegDEVICE6408_t _6408;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_25612[1];

    /** @brief This undocumented register is used to set PCIe Power Consumption information as reported in configuration space. It is loaded from NVM configuration data. */
    RegDEVICEPciPowerConsumptionInfo_t PciPowerConsumptionInfo;

    /** @brief This undocumented register is used to set PCIe Power Dissipated information as reported in configuration space. It is loaded from NVM configuration data. */
    RegDEVICEPciPowerDissipatedInfo_t PciPowerDissipatedInfo;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_25624[5];

    /** @brief This undocumented register appears to be used to implement the PCI VPD capability. It is set to the VPD offset which was requested by the host by writing to the VPD register. */
    RegDEVICEPciVpdRequest_t PciVpdRequest;

    /** @brief This undocumented register appears to be used to implement the PCI VPD capability. Bootcode writes the 32 bits of data loaded from the word requested by  */
    RegDEVICEPciVpdResponse_t PciVpdResponse;

    /** @brief This is the undocumented register used to set the PCI Vendor/Device ID, which is configurable from NVM. */
    RegDEVICEPciVendorDeviceId_t PciVendorDeviceId;

    /** @brief This is the undocumented register used to set the PCI Subsystem/Subsystem Vendor ID, which is configurable from NVM. */
    RegDEVICEPciSubsystemId_t PciSubsystemId;

    /** @brief This undocumented register is suspected to set the class code and device revision in PCI configuration space. Unconfirmed. */
    RegDEVICEPciClassCodeRevision_t PciClassCodeRevision;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_25664[32];

    /** @brief  */
    RegDEVICE64c0_t _64c0;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_25796[1];

    /** @brief  */
    RegDEVICE64c8_t _64c8;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_25804[4];

    /** @brief  */
    RegDEVICE64dc_t _64dc;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_25824[9];

    /** @brief This sets the low 32 bits of the 64-bit device serial number, which isexposed as a PCIe capability in configuration space. */
    RegDEVICEPciSerialNumberLow_t PciSerialNumberLow;

    /** @brief This sets the high 32 bits of the 64-bit device serial number, which isexposed as a PCIe capability in configuration space. */
    RegDEVICEPciSerialNumberHigh_t PciSerialNumberHigh;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_25868[1];

    /** @brief Used to report power budget capability data to the host. The values are loaded from NVM, and up to eight values may be specified.  */
    RegDEVICEPciPowerBudget0_t PciPowerBudget0;

    /** @brief See  */
    RegDEVICEPciPowerBudget1_t PciPowerBudget1;

    /** @brief See  */
    RegDEVICEPciPowerBudget2_t PciPowerBudget2;

    /** @brief See  */
    RegDEVICEPciPowerBudget3_t PciPowerBudget3;

    /** @brief See  */
    RegDEVICEPciPowerBudget4_t PciPowerBudget4;

    /** @brief See  */
    RegDEVICEPciPowerBudget5_t PciPowerBudget5;

    /** @brief See  */
    RegDEVICEPciPowerBudget6_t PciPowerBudget6;

    /** @brief See  */
    RegDEVICEPciPowerBudget7_t PciPowerBudget7;

    /** @brief  */
    RegDEVICE6530_t _6530;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_25908[7];

    /** @brief The LSB in this undocumented and unknown register is set if the device is a LOM (LAN-on-Motherboard) design (i.e., builtin to a system and not an expansion card). */
    RegDEVICE6550_t _6550;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_25940[40];

    /** @brief  */
    RegDEVICE65f4_t _65f4;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_26104[130];

    /** @brief  */
    RegDEVICEGrcModeControl_t GrcModeControl;

    /** @brief  */
    RegDEVICEMiscellaneousConfig_t MiscellaneousConfig;

    /** @brief  */
    RegDEVICEMiscellaneousLocalControl_t MiscellaneousLocalControl;

    /** @brief 32-bit free-running counter */
    RegDEVICETimer_t Timer;

    /** @brief  */
    RegDEVICERxCpuEvent_t RxCpuEvent;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_26644[9];

    /** @brief Unknown. Used by PXE agent. */
    RegDEVICE6838_t _6838;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_26684[2];

    /** @brief The register manual only mentions this in the changelog; it was removed from the manual in a previous revision. :| */
    RegDEVICEMdiControl_t MdiControl;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_26696[1];

    /** @brief  */
    RegDEVICERxCpuEventEnable_t RxCpuEventEnable;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_26704[17];

    /** @brief  */
    RegDEVICEFastBootProgramCounter_t FastBootProgramCounter;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_26776[21];

    /** @brief Expansion ROM base address, expect to be d- word aligned. */
    RegDEVICEExpansionRomAddr_t ExpansionRomAddr;

    /** @brief  */
    RegDEVICE68f0_t _68f0;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_26868[5];

    /** @brief  */
    RegDEVICEEavRefClockControl_t EavRefClockControl;

    /** @brief Reserved bytes to pad out data structure. */
    APE_DEVICE_H_uint32_t reserved_26892[1214];

    /** @brief PCIe-related. tg3 driver calls this  */
    RegDEVICE7c04_t _7c04;

#ifdef CXX_SIMULATOR
    DEVICE_t()
    {
        MiscellaneousHostControl.r32.setComponentOffset(0x68);
        PciState.r32.setComponentOffset(0x70);
        RegisterBase.r32.setComponentOffset(0x78);
        MemoryBase.r32.setComponentOffset(0x7c);
        RegisterData.r32.setComponentOffset(0x80);
        UndiReceiveReturnRingConsumerIndex.r32.setComponentOffset(0x88);
        UndiReceiveReturnRingConsumerIndexLow.r32.setComponentOffset(0x8c);
        LinkStatusControl.r32.setComponentOffset(0xbc);
        ApeMemoryBase.r32.setComponentOffset(0xf8);
        ApeMemoryData.r32.setComponentOffset(0xfc);
        EmacMode.r32.setComponentOffset(0x400);
        LedControl.r32.setComponentOffset(0x40c);
        EmacMacAddresses0High.r32.setComponentOffset(0x410);
        EmacMacAddresses0Low.r32.setComponentOffset(0x414);
        EmacMacAddresses1High.r32.setComponentOffset(0x418);
        EmacMacAddresses1Low.r32.setComponentOffset(0x41c);
        EmacMacAddresses2High.r32.setComponentOffset(0x420);
        EmacMacAddresses2Low.r32.setComponentOffset(0x424);
        EmacMacAddresses3High.r32.setComponentOffset(0x428);
        EmacMacAddresses3Low.r32.setComponentOffset(0x42c);
        WolPatternPointer.r32.setComponentOffset(0x430);
        WolPatternCfg.r32.setComponentOffset(0x434);
        MtuSize.r32.setComponentOffset(0x43c);
        MiiCommunication.r32.setComponentOffset(0x44c);
        MiiMode.r32.setComponentOffset(0x454);
        TransmitMacMode.r32.setComponentOffset(0x45c);
        ReceiveMacMode.r32.setComponentOffset(0x468);
        PerfectMatch1High.r32.setComponentOffset(0x540);
        PerfectMatch1Low.r32.setComponentOffset(0x544);
        PerfectMatch2High.r32.setComponentOffset(0x548);
        PerfectMatch2Low.r32.setComponentOffset(0x54c);
        PerfectMatch3High.r32.setComponentOffset(0x550);
        PerfectMatch3Low.r32.setComponentOffset(0x554);
        PerfectMatch4High.r32.setComponentOffset(0x558);
        PerfectMatch4Low.r32.setComponentOffset(0x55c);
        SgmiiStatus.r32.setComponentOffset(0x5b4);
        CpmuControl.r32.setComponentOffset(0x3600);
        LinkAwarePowerModeClockPolicy.r32.setComponentOffset(0x3610);
        ClockSpeedOverridePolicy.r32.setComponentOffset(0x3624);
        Status.r32.setComponentOffset(0x362c);
        ClockStatus.r32.setComponentOffset(0x3630);
        GphyControlStatus.r32.setComponentOffset(0x3638);
        ChipId.r32.setComponentOffset(0x3658);
        MutexRequest.r32.setComponentOffset(0x365c);
        MutexGrant.r32.setComponentOffset(0x3660);
        GphyStrap.r32.setComponentOffset(0x3664);
        TopLevelMiscellaneousControl1.r32.setComponentOffset(0x367c);
        EeeMode.r32.setComponentOffset(0x36b0);
        EeeLinkIdleControl.r32.setComponentOffset(0x36bc);
        EeeControl.r32.setComponentOffset(0x36d0);
        GlobalMutexRequest.r32.setComponentOffset(0x36f0);
        GlobalMutexGrant.r32.setComponentOffset(0x36f4);
        MemoryArbiterMode.r32.setComponentOffset(0x4000);
        BufferManagerMode.r32.setComponentOffset(0x4400);
        LsoNonlsoBdReadDmaCorruptionEnableControl.r32.setComponentOffset(0x4910);
        RxRiscMode.r32.setComponentOffset(0x5000);
        RxRiscStatus.r32.setComponentOffset(0x5004);
        RxRiscProgramCounter.r32.setComponentOffset(0x501c);
        RxRiscCurrentInstruction.r32.setComponentOffset(0x5020);
        RxRiscHardwareBreakpoint.r32.setComponentOffset(0x5034);
        RxRiscRegister0.r32.setComponentOffset(0x5200);
        RxRiscRegister1.r32.setComponentOffset(0x5204);
        RxRiscRegister2.r32.setComponentOffset(0x5208);
        RxRiscRegister3.r32.setComponentOffset(0x520c);
        RxRiscRegister4.r32.setComponentOffset(0x5210);
        RxRiscRegister5.r32.setComponentOffset(0x5214);
        RxRiscRegister6.r32.setComponentOffset(0x5218);
        RxRiscRegister7.r32.setComponentOffset(0x521c);
        RxRiscRegister8.r32.setComponentOffset(0x5220);
        RxRiscRegister9.r32.setComponentOffset(0x5224);
        RxRiscRegister10.r32.setComponentOffset(0x5228);
        RxRiscRegister11.r32.setComponentOffset(0x522c);
        RxRiscRegister12.r32.setComponentOffset(0x5230);
        RxRiscRegister13.r32.setComponentOffset(0x5234);
        RxRiscRegister14.r32.setComponentOffset(0x5238);
        RxRiscRegister15.r32.setComponentOffset(0x523c);
        RxRiscRegister16.r32.setComponentOffset(0x5240);
        RxRiscRegister17.r32.setComponentOffset(0x5244);
        RxRiscRegister18.r32.setComponentOffset(0x5248);
        RxRiscRegister19.r32.setComponentOffset(0x524c);
        RxRiscRegister20.r32.setComponentOffset(0x5250);
        RxRiscRegister21.r32.setComponentOffset(0x5254);
        RxRiscRegister22.r32.setComponentOffset(0x5258);
        RxRiscRegister23.r32.setComponentOffset(0x525c);
        RxRiscRegister24.r32.setComponentOffset(0x5260);
        RxRiscRegister25.r32.setComponentOffset(0x5264);
        RxRiscRegister26.r32.setComponentOffset(0x5268);
        RxRiscRegister27.r32.setComponentOffset(0x526c);
        RxRiscRegister28.r32.setComponentOffset(0x5270);
        RxRiscRegister29.r32.setComponentOffset(0x5274);
        RxRiscRegister30.r32.setComponentOffset(0x5278);
        RxRiscRegister31.r32.setComponentOffset(0x527c);
        _6408.r32.setComponentOffset(0x6408);
        PciPowerConsumptionInfo.r32.setComponentOffset(0x6410);
        PciPowerDissipatedInfo.r32.setComponentOffset(0x6414);
        PciVpdRequest.r32.setComponentOffset(0x642c);
        PciVpdResponse.r32.setComponentOffset(0x6430);
        PciVendorDeviceId.r32.setComponentOffset(0x6434);
        PciSubsystemId.r32.setComponentOffset(0x6438);
        PciClassCodeRevision.r32.setComponentOffset(0x643c);
        _64c0.r32.setComponentOffset(0x64c0);
        _64c8.r32.setComponentOffset(0x64c8);
        _64dc.r32.setComponentOffset(0x64dc);
        PciSerialNumberLow.r32.setComponentOffset(0x6504);
        PciSerialNumberHigh.r32.setComponentOffset(0x6508);
        PciPowerBudget0.r32.setComponentOffset(0x6510);
        PciPowerBudget1.r32.setComponentOffset(0x6514);
        PciPowerBudget2.r32.setComponentOffset(0x6518);
        PciPowerBudget3.r32.setComponentOffset(0x651c);
        PciPowerBudget4.r32.setComponentOffset(0x6520);
        PciPowerBudget5.r32.setComponentOffset(0x6524);
        PciPowerBudget6.r32.setComponentOffset(0x6528);
        PciPowerBudget7.r32.setComponentOffset(0x652c);
        _6530.r32.setComponentOffset(0x6530);
        _6550.r32.setComponentOffset(0x6550);
        _65f4.r32.setComponentOffset(0x65f4);
        GrcModeControl.r32.setComponentOffset(0x6800);
        MiscellaneousConfig.r32.setComponentOffset(0x6804);
        MiscellaneousLocalControl.r32.setComponentOffset(0x6808);
        Timer.r32.setComponentOffset(0x680c);
        RxCpuEvent.r32.setComponentOffset(0x6810);
        _6838.r32.setComponentOffset(0x6838);
        MdiControl.r32.setComponentOffset(0x6844);
        RxCpuEventEnable.r32.setComponentOffset(0x684c);
        FastBootProgramCounter.r32.setComponentOffset(0x6894);
        ExpansionRomAddr.r32.setComponentOffset(0x68ec);
        _68f0.r32.setComponentOffset(0x68f0);
        EavRefClockControl.r32.setComponentOffset(0x6908);
        _7c04.r32.setComponentOffset(0x7c04);
    }
    typedef uint32_t (*callback_t)(uint32_t, uint32_t, void*);
    callback_t mIndexReadCallback;
    void* mIndexReadCallbackArgs;

    callback_t mIndexWriteCallback;
    void* mIndexWriteCallbackArgs;

    uint32_t read(int offset) { return mIndexReadCallback(0, offset, mIndexReadCallbackArgs); }
    void write(int offset, uint32_t value) { (void)mIndexWriteCallback(value, offset, mIndexWriteCallbackArgs); }
#endif /* CXX_SIMULATOR */
} DEVICE_t;

/** @brief Device Registers, function 0 */
extern volatile DEVICE_t DEVICE;



#ifdef CXX_SIMULATOR /* Compiling c++ code - uses register wrappers */
#undef volatile
#endif /* CXX_SIMULATOR */

#undef register_container
#undef BITFIELD_BEGIN
#undef BITFIELD_MEMBER
#undef BITFIELD_END

#endif /* !APE_DEVICE_H */

/** @} */
OpenPOWER on IntegriCloud