aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios/os/common/ext/ADI/ADUCM41x/ADuCM410.h
blob: 1248b744bd6fdac3dbfb19af79c905aa929abac7 (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
/* ================================================================================
     Project     :   ADuCM410
     File        :   ADuCM410_device.h
     Description :   C typedef structures for bit-fields and enums for enumerations.

     Copyright (c) 2019 Analog Devices, Inc.  All Rights Reserved.
     This software is proprietary and confidential to Analog Devices, Inc. and
     its licensors.

     This file was auto-generated. Do not make local changes to this file.
   ================================================================================ */

#ifndef __ADUCM410_H__
#define __ADUCM410_H__

/*  =========================================================================
 *! \enum   IRQn_Type
 *! \brief  Interrupt Number Assignments
 *  ========================================================================= */

typedef enum
{
    RESET_IRQn                                  =   -15,    /*!<* RESET */
    NonMaskableInt_IRQn                         =   -14,    /*!<* NonMaskableInt */
    HardFault_IRQn                              =   -13,    /*!<* HardFault */
    MemoryManagement_IRQn                       =   -12,    /*!<* MemoryManagement */
    BusFault_IRQn                               =   -11,    /*!<* BusFault */
    UsageFault_IRQn                             =   -10,    /*!<* UsageFault */
    SVCall_IRQn                                 =    -5,    /*!<* SVCall */
    DebugMonitor_IRQn                           =    -4,    /*!<* DebugMonitor */
    PendSV_IRQn                                 =    -2,    /*!<* PendSV */
    SysTick_IRQn                                =    -1,    /*!<* SysTick */
    WUT_IRQn                                    =     0,    /*!<* WUT */
    EINT0_IRQn                                  =     1,    /*!<* EINT0 */
    EINT1_IRQn                                  =     2,    /*!<* EINT1 */
    EINT2_IRQn                                  =     3,    /*!<* EINT2 */
    EINT3_IRQn                                  =     4,    /*!<* EINT3 */
    EINT4_IRQn                                  =     5,    /*!<* EINT4 */
    EINT5_IRQn                                  =     6,    /*!<* EINT5 */
    EINT6_IRQn                                  =     7,    /*!<* EINT6 */
    EINT7_IRQn                                  =     8,    /*!<* EINT7 */
    EINT8_IRQn                                  =     9,    /*!<* EINT8 */
    EINT9_IRQn                                  =    10,    /*!<* EINT9 */
    WDT_IRQn                                    =    11,    /*!<* WDT */
    GPT0_IRQn                                   =    12,    /*!<* GPT0 */
    GPT1_IRQn                                   =    13,    /*!<* GPT1 */
    GPT2_IRQn                                   =    14,    /*!<* GPT2 */
    GPT3_IRQn                                   =    15,    /*!<* GPT3 */
    GPT4_IRQn                                   =    16,    /*!<* GPT4 */
    MDIO_IRQn                                   =    17,    /*!<* MDIO */
    FLASH_IRQn                                  =    18,    /*!<* FLASH */
    UART0_IRQn                                  =    19,    /*!<* UART0 */
    UART1_IRQn                                  =    20,    /*!<* UART1 */
    SPI0_IRQn                                   =    21,    /*!<* SPI0 */
    SPI1_IRQn                                   =    22,    /*!<* SPI1 */
    SPI2_IRQn                                   =    23,    /*!<* SPI2 */
    I2C0S_IRQn                                  =    24,    /*!<* I2C0S */
    I2C0M_IRQn                                  =    25,    /*!<* I2C0M */
    I2C1S_IRQn                                  =    26,    /*!<* I2C1S */
    I2C1M_IRQn                                  =    27,    /*!<* I2C1M */
    I2C2S_IRQn                                  =    28,    /*!<* I2C2S */
    I2C2M_IRQn                                  =    29,    /*!<* I2C2M */
    PLA0_IRQn                                   =    30,    /*!<* PLA0 */
    PLA1_IRQn                                   =    31,    /*!<* PLA1 */
    PLA2_IRQn                                   =    32,    /*!<* PLA2 */
    PLA3_IRQn                                   =    33,    /*!<* PLA3 */
    PWM_TRIP_IRQn                               =    34,    /*!<* PWM_TRIP */
    PWM0_IRQn                                   =    35,    /*!<* PWM0 */
    PWM1_IRQn                                   =    36,    /*!<* PWM1 */
    PWM2_IRQn                                   =    37,    /*!<* PWM2 */
    PWM3_IRQn                                   =    38,    /*!<* PWM3 */
    SRAM_ERR_IRQn                               =    39,    /*!<* SRAM_ERR */
    DMA_ERR_IRQn                                =    40,    /*!<* DMA_ERR */
    DMA_SPI0_TX_IRQn                            =    41,    /*!<* DMA_SPI0_TX */
    DMA_SPI0_RX_IRQn                            =    42,    /*!<* DMA_SPI0_RX */
    DMA_SPI1_TX_IRQn                            =    43,    /*!<* DMA_SPI1_TX */
    DMA_SPI1_RX_IRQn                            =    44,    /*!<* DMA_SPI1_RX */
    DMA_SPI2_TX_IRQn                            =    45,    /*!<* DMA_SPI2_TX */
    DMA_SPI2_RX_IRQn                            =    46,    /*!<* DMA_SPI2_RX */
    DMA_UART0_TX_IRQn                           =    47,    /*!<* DMA_UART0_TX */
    DMA_UART0_RX_IRQn                           =    48,    /*!<* DMA_UART0_RX */
    DMA_UART1_TX_IRQn                           =    49,    /*!<* DMA_UART1_TX */
    DMA_UART1_RX_IRQn                           =    50,    /*!<* DMA_UART1_RX */
    DMA_I2C0S_TX_IRQn                           =    51,    /*!<* DMA_I2C0S_TX */
    DMA_I2C0S_RX_IRQn                           =    52,    /*!<* DMA_I2C0S_RX */
    DMA_I2C0M_IRQn                              =    53,    /*!<* DMA_I2C0M */
    DMA_I2C1S_TX_IRQn                           =    54,    /*!<* DMA_I2C1S_TX */
    DMA_I2C1S_RX_IRQn                           =    55,    /*!<* DMA_I2C1S_RX */
    DMA_I2C1M_IRQn                              =    56,    /*!<* DMA_I2C1M */
    DMA_I2C2S_TX_IRQn                           =    57,    /*!<* DMA_I2C2S_TX */
    DMA_I2C2S_RX_IRQn                           =    58,    /*!<* DMA_I2C2S_RX */
    DMA_I2C2M_IRQn                              =    59,    /*!<* DMA_I2C2M */
    DMA_MDIO_TX_IRQn                            =    60,    /*!<* DMA_MDIO_TX */
    DMA_MDIO_RX_IRQn                            =    61,    /*!<* DMA_MDIO_RX */
    DMA_FLASH_IRQn                              =    62,    /*!<* DMA_FLASH */
    DMA_ADC_IRQn                                =    63,    /*!<* DMA_ADC */
    PLL_IRQn                                    =    64,    /*!<* PLL */
    HFOSC_IRQn                                  =    65,    /*!<* HFOSC */
    ADC_IRQn                                    =    66,    /*!<* ADC */
    SEQ_IRQn                                    =    67,    /*!<* SEQ */
    COMP0_IRQn                                  =    68,    /*!<* COMP0 */
    COMP1_IRQn                                  =    69,    /*!<* COMP1 */
    COMP2_IRQn                                  =    70,    /*!<* COMP2 */
    COMP3_IRQn                                  =    71,    /*!<* COMP3 */
    VDAC_IRQn                                   =    72,    /*!<* VDAC */
    DMA_TRIG0_IRQn                              =    81,    /*!<* DMA_TRIG0 */
    DMA_TRIG1_IRQn                              =    82,    /*!<* DMA_TRIG1 */
    DMA_SW0_IRQn                                =    83,    /*!<* DMA_SW0 */
    DMA_SW1_IRQn                                =    84,    /*!<* DMA_SW1 */
    CACHE_IRQn                                  =    85,    /*!<* CACHE */
    DIG_COMP_IRQn                               =    86,    /*!<* DIG_COMP */
    GPIO_INTA_IRQn                              =    87,    /*!<* GPIO_INTA */
    GPIO_INTB_IRQn                              =    88,    /*!<* GPIO_INTB */
} IRQn_Type;  /* typedef name for fixed interrupt numbers */


/** @addtogroup Configuration_of_CMSIS
  * @brief Configuration of the Cortex-M4 Processor and Core Peripherals
  * @todo switch to M33 when port is done.  
  * @{
  */
#define __CM4_REV                 0x0001U  /*!< Core revision r0p1                            */
#define __MPU_PRESENT             1U       /*!< ADUCM41X provides an MPU                      */
#define __NVIC_PRIO_BITS          3U       /*!< ADUCM41X uses 3 Bits for the Priority Levels  */
#define __Vendor_SysTickConfig    0U       /*!< Set to 1 if different SysTick Config is used  */
#define __FPU_PRESENT             1U       /*!< FPU present                                   */

//#include <core_cm33.h>                    /*!< Cortex-M33 processor and core peripherals */
#include <core_cm4.h>                       /*!< Cortex-M4 processor and core peripherals  */
#include "system_ADuCM410.h"                /*!< ADUCM410 System                           */
/** @} */

#ifdef __cplusplus
extern "C" {
#endif

#ifndef TMR_ADDR_RDEF_H_
#define TMR_ADDR_RDEF_H_    /* TMR: GPT0 */

/* ====================================================================================================
        TMR Module Instances Address and Mask Definitions
   ==================================================================================================== */
#define INST_GPT0                                                (0X40000000U)    /* gpt0: */
#define INST_GPT1                                                (0X40000400U)    /* gpt1: */
#define INST_GPT2                                                (0X40000800U)    /* gpt2: */

#define MASK_TMR                                                 (0XFFFFFFFFU)    /* TMR: GPT0 */

/* ====================================================================================================
        TMR Module Register Address Offset Definitions
   ==================================================================================================== */
#define IDX_TMR_LD                                              (0X00000000U)    /* 16-bit Load Value Register */
#define IDX_TMR_VAL                                             (0X00000004U)    /* 16-bit Timer Value Register */
#define IDX_TMR_CON                                             (0X00000008U)    /* Control Register */
#define IDX_TMR_CLRI                                            (0X0000000CU)    /* Clear Interrupt Register */
#define IDX_TMR_STA                                             (0X0000001CU)    /* Status Register */

/* ====================================================================================================
        TMR Module Register ResetValue Definitions
   ==================================================================================================== */
#define RSTVAL_TMR_LD                                              (0X0) 
#define RSTVAL_TMR_VAL                                             (0X0) 
#define RSTVAL_TMR_CON                                             (0XA) 
#define RSTVAL_TMR_CLRI                                            (0X0) 
#define RSTVAL_TMR_STA                                             (0X0) 

/* ====================================================================================================
        TMR Module Register BitPositions, Lengths, Masks and Enumerations Definitions
   ==================================================================================================== */

/* ----------------------------------------------------------------------------------------------------
          LD                                                    Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_TMR_LD_LOAD                                      (0U)           /* Load Value */
#define BITL_TMR_LD_LOAD                                      (16U)          /* Load Value */
#define BITM_TMR_LD_LOAD                                      (0XFFFFU)      /* Load Value */

/* ----------------------------------------------------------------------------------------------------
          VAL                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_TMR_VAL_COUNT_VAL                                (0U)           /* Current Count */
#define BITL_TMR_VAL_COUNT_VAL                                (16U)          /* Current Count */
#define BITM_TMR_VAL_COUNT_VAL                                (0XFFFFU)      /* Current Count */

/* ----------------------------------------------------------------------------------------------------
          CON                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_TMR_CON_PRE                                      (0U)           /* Prescaler */
#define BITL_TMR_CON_PRE                                      (2U)           /* Prescaler */
#define BITM_TMR_CON_PRE                                      (0X0003U)      /* Prescaler */
#define BITP_TMR_CON_UP                                       (2U)           /* Count up */
#define BITL_TMR_CON_UP                                       (1U)           /* Count up */
#define BITM_TMR_CON_UP                                       (0X0004U)      /* Count up */
#define BITP_TMR_CON_MOD                                      (3U)           /* Timer Mode */
#define BITL_TMR_CON_MOD                                      (1U)           /* Timer Mode */
#define BITM_TMR_CON_MOD                                      (0X0008U)      /* Timer Mode */
#define BITP_TMR_CON_ENABLE                                   (4U)           /* Timer Enable */
#define BITL_TMR_CON_ENABLE                                   (1U)           /* Timer Enable */
#define BITM_TMR_CON_ENABLE                                   (0X0010U)      /* Timer Enable */
#define BITP_TMR_CON_CLK                                      (5U)           /* Clock Select */
#define BITL_TMR_CON_CLK                                      (2U)           /* Clock Select */
#define BITM_TMR_CON_CLK                                      (0X0060U)      /* Clock Select */
#define BITP_TMR_CON_RLD                                      (7U)           /* Reload Control */
#define BITL_TMR_CON_RLD                                      (1U)           /* Reload Control */
#define BITM_TMR_CON_RLD                                      (0X0080U)      /* Reload Control */

#define ENUM_TMR_CON_RLD_EN                                   (0X0001U)      /* Resets the Up/down Counter When GPTCLRI[0] is Set */
#define ENUM_TMR_CON_RLD_DIS                                  (0X0000U)      /* Up/Down Counter is Only Reset on a Timeout Event */
#define ENUM_TMR_CON_CLK_PCLK0                                (0X0000U)      /* PCLK. */
#define ENUM_TMR_CON_CLK_HCLK                                 (0X0001U)      /* ROOT_CLK */
#define ENUM_TMR_CON_CLK_LFOSC                                (0X0002U)      /* LFOSC. 32 KHz OSC */
#define ENUM_TMR_CON_CLK_HFXTAL                               (0X0003U)      /* HFXTAL. 16 MHz OSC or XTAL (Dependent on CLKCON0.11) */
#define ENUM_TMR_CON_ENABLE_DIS                               (0X0000U)      /* DIS. Timer is Disabled (default) */
#define ENUM_TMR_CON_ENABLE_EN                                (0X0001U)      /* EN. Timer is Enabled */
#define ENUM_TMR_CON_MOD_FREERUN                              (0X0000U)      /* FREERUN.Timer Runs in Free Running Mode */
#define ENUM_TMR_CON_MOD_PERIODIC                             (0X0001U)      /* PERIODIC. Timer Runs in Periodic Mode (default) */
#define ENUM_TMR_CON_UP_DIS                                   (0X0000U)      /* DIS. Timer is Set to Count Down (default) */
#define ENUM_TMR_CON_UP_EN                                    (0X0001U)      /* EN. Timer is Set to Count up */
#define ENUM_TMR_CON_PRE_DIV1OR4                              (0X0000U)      /* Source_clock / [1 or 4] */
#define ENUM_TMR_CON_PRE_DIV16                                (0X0001U)      /* Source_clock / 16 */
#define ENUM_TMR_CON_PRE_DIV256                               (0X0002U)      /* Source_clock / 256 */
#define ENUM_TMR_CON_PRE_DIV32768                             (0X0003U)      /* Source_clock / 32,768 */

/* ----------------------------------------------------------------------------------------------------
          CLRI                                                  Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_TMR_CLRI_TMOUT                                   (0U)           /* Clear Timeout Interrupt */
#define BITL_TMR_CLRI_TMOUT                                   (1U)           /* Clear Timeout Interrupt */
#define BITM_TMR_CLRI_TMOUT                                   (0X0001U)      /* Clear Timeout Interrupt */

/* ----------------------------------------------------------------------------------------------------
          STA                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_TMR_STA_TMOUT                                    (0U)           /* Timeout Event Occurred */
#define BITL_TMR_STA_TMOUT                                    (1U)           /* Timeout Event Occurred */
#define BITM_TMR_STA_TMOUT                                    (0X0001U)      /* Timeout Event Occurred */
#define BITP_TMR_STA_BUSY                                     (6U)           /* Timer Busy */
#define BITL_TMR_STA_BUSY                                     (1U)           /* Timer Busy */
#define BITM_TMR_STA_BUSY                                     (0X0040U)      /* Timer Busy */
#define BITP_TMR_STA_PDOK                                     (7U)           /* GPTCLRI Synchronization */
#define BITL_TMR_STA_PDOK                                     (1U)           /* GPTCLRI Synchronization */
#define BITM_TMR_STA_PDOK                                     (0X0080U)      /* GPTCLRI Synchronization */

#define ENUM_TMR_STA_PDOK_CLR_FLAG                            (0X0000U)      /* CLR. the Interrupt is Cleared in the Timer Clock Domain */
#define ENUM_TMR_STA_PDOK_SET_FLAG                            (0X0001U)      /* SET. GPTCLRI[0] is Being Updated in the Timer Clock Domain */
#define ENUM_TMR_STA_BUSY_CLR_FLAG                            (0X0000U)      /* Timer Ready to Receive Commands to GPTCON */
#define ENUM_TMR_STA_BUSY_SET_FLAG                            (0X0001U)      /* Timer Not Ready to Receive Commands to GPTCON */
#define ENUM_TMR_STA_TMOUT_CLR_FLAG                           (0X0000U)      /* No Timeout Event Has Occurred */
#define ENUM_TMR_STA_TMOUT_SET_FLAG                           (0X0001U)      /* a Timeout Event Has Occurred */

#endif  /* end ifndef TMR_ADDR_RDEF_H_ */


#ifndef TIMER_ADDR_RDEF_H_
#define TIMER_ADDR_RDEF_H_    /* TIMER: Timer */

/* ====================================================================================================
        TIMER Module Instances Address and Mask Definitions
   ==================================================================================================== */
#define INST_GPTH0                                               (0X40000C00U)    /* gpth0: */
#define INST_GPTH1                                               (0X40001000U)    /* gpth1: */

#define MASK_TIMER                                               (0X000000FFU)    /* TIMER: Timer */

/* ====================================================================================================
        TIMER Module Register Address Offset Definitions
   ==================================================================================================== */
#define IDX_TIMER_CTL                                           (0X00U)    /* Timer Control */
#define IDX_TIMER_CNT                                           (0X04U)    /* Count Value */
#define IDX_TIMER_STATUS                                        (0X08U)    /* Timer Status */
#define IDX_TIMER_CFG0                                          (0X10U)    /* Capture Compare Configuration */
#define IDX_TIMER_CFG1                                          (0X14U)    /* Capture Compare Configuration */
#define IDX_TIMER_CFG2                                          (0X18U)    /* Capture Compare Configuration */
#define IDX_TIMER_CFG3                                          (0X1CU)    /* Capture Compare Configuration */
#define IDX_TIMER_CC0                                           (0X20U)    /* Compare and Capture Value */
#define IDX_TIMER_CC1                                           (0X24U)    /* Compare and Capture Value */
#define IDX_TIMER_CC2                                           (0X28U)    /* Compare and Capture Value */
#define IDX_TIMER_CC3                                           (0X2CU)    /* Compare and Capture Value */

/* ====================================================================================================
        TIMER Module Register ResetValue Definitions
   ==================================================================================================== */
#define RSTVAL_TIMER_CTL                                           (0X170) 
#define RSTVAL_TIMER_CNT                                           (0X0) 
#define RSTVAL_TIMER_STATUS                                        (0X0) 
#define RSTVAL_TIMER_CFG0                                          (0X0) 
#define RSTVAL_TIMER_CFG1                                          (0X0) 
#define RSTVAL_TIMER_CFG2                                          (0X0) 
#define RSTVAL_TIMER_CFG3                                          (0X0) 
#define RSTVAL_TIMER_CC0                                           (0X0) 
#define RSTVAL_TIMER_CC1                                           (0X0) 
#define RSTVAL_TIMER_CC2                                           (0X0) 
#define RSTVAL_TIMER_CC3                                           (0X0) 

/* ====================================================================================================
        TIMER Module Register BitPositions, Lengths, Masks and Enumerations Definitions
   ==================================================================================================== */

/* ----------------------------------------------------------------------------------------------------
          CTL                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_TIMER_CTL_EN                                     (0U)           /* Timer Enable */
#define BITL_TIMER_CTL_EN                                     (1U)           /* Timer Enable */
#define BITM_TIMER_CTL_EN                                     (0X00000001U)  /* Timer Enable */
#define BITP_TIMER_CTL_SEL                                    (2U)           /* Clock Source Select */
#define BITL_TIMER_CTL_SEL                                    (2U)           /* Clock Source Select */
#define BITM_TIMER_CTL_SEL                                    (0X0000000CU)  /* Clock Source Select */
#define BITP_TIMER_CTL_PRE                                    (4U)           /* Timer Prescale */
#define BITL_TIMER_CTL_PRE                                    (5U)           /* Timer Prescale */
#define BITM_TIMER_CTL_PRE                                    (0X000001F0U)  /* Timer Prescale */

#define ENUM_TIMER_CTL_SEL_PCLK                               (0X00000000U)  /* PCLK */
#define ENUM_TIMER_CTL_SEL_SYSCLK                             (0X00000001U)  /* HCLK */
#define ENUM_TIMER_CTL_SEL_LFOSC                              (0X00000002U)  /* High Frequency Oscillator */
#define ENUM_TIMER_CTL_SEL_HFXSTAL                            (0X00000003U)  /* High Frequency XTALL */

/* ----------------------------------------------------------------------------------------------------
          CNT                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_TIMER_CNT_CNT                                    (0U)           /* Current Counter Value. */
#define BITL_TIMER_CNT_CNT                                    (32U)          /* Current Counter Value. */
#define BITM_TIMER_CNT_CNT                                    (0XFFFFFFFFU)  /* Current Counter Value. */

/* ----------------------------------------------------------------------------------------------------
          STATUS                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_TIMER_STATUS_CC0_STATUS                          (0U)           /* CC0 Status */
#define BITL_TIMER_STATUS_CC0_STATUS                          (1U)           /* CC0 Status */
#define BITM_TIMER_STATUS_CC0_STATUS                          (0X00000001U)  /* CC0 Status */
#define BITP_TIMER_STATUS_CC1_STATUS                          (1U)           /* CC1 Status */
#define BITL_TIMER_STATUS_CC1_STATUS                          (1U)           /* CC1 Status */
#define BITM_TIMER_STATUS_CC1_STATUS                          (0X00000002U)  /* CC1 Status */
#define BITP_TIMER_STATUS_CC2_STATUS                          (2U)           /* CC2 Status */
#define BITL_TIMER_STATUS_CC2_STATUS                          (1U)           /* CC2 Status */
#define BITM_TIMER_STATUS_CC2_STATUS                          (0X00000004U)  /* CC2 Status */
#define BITP_TIMER_STATUS_CC3_STATUS                          (3U)           /* CC3 Status */
#define BITL_TIMER_STATUS_CC3_STATUS                          (1U)           /* CC3 Status */
#define BITM_TIMER_STATUS_CC3_STATUS                          (0X00000008U)  /* CC3 Status */

/* ----------------------------------------------------------------------------------------------------
          CFG0                                                  Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_TIMER_CFG_N__MODE                                (0U)           /* Capture or Compare Mode */
#define BITL_TIMER_CFG_N__MODE                                (1U)           /* Capture or Compare Mode */
#define BITM_TIMER_CFG_N__MODE                                (0X00000001U)  /* Capture or Compare Mode */
#define BITP_TIMER_CFG_N__CC_EN                               (1U)           /* Capture Compare Enabled */
#define BITL_TIMER_CFG_N__CC_EN                               (1U)           /* Capture Compare Enabled */
#define BITM_TIMER_CFG_N__CC_EN                               (0X00000002U)  /* Capture Compare Enabled */
#define BITP_TIMER_CFG_N__EVENT_SEL                           (2U)           /* Capture Events Select */
#define BITL_TIMER_CFG_N__EVENT_SEL                           (4U)           /* Capture Events Select */
#define BITM_TIMER_CFG_N__EVENT_SEL                           (0X0000003CU)  /* Capture Events Select */

#define ENUM_TIMER_CFG_N__MODE_CMP                            (0X00000000U)  /* Compare */
#define ENUM_TIMER_CFG_N__MODE_CAP                            (0X00000001U)  /* Capture */

/* ----------------------------------------------------------------------------------------------------
          CC0                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_TIMER_CC_N__CC                                   (0U)           /* Capture or Compare Value */
#define BITL_TIMER_CC_N__CC                                   (32U)          /* Capture or Compare Value */
#define BITM_TIMER_CC_N__CC                                   (0XFFFFFFFFU)  /* Capture or Compare Value */

#endif  /* end ifndef TIMER_ADDR_RDEF_H_ */


#ifndef MISC16_ADDR_RDEF_H_
#define MISC16_ADDR_RDEF_H_    /* MISC16: Your module description, here. */

/* ====================================================================================================
        MISC16 Module Instances Address and Mask Definitions
   ==================================================================================================== */
#define INST_MISC                                                (0X40002000U)    /* misc: */

#define MASK_MISC16                                              (0X00000FFFU)    /* MISC16: Your module description, here. */

/* ====================================================================================================
        MISC16 Module Register Address Offset Definitions
   ==================================================================================================== */
#define IDX_MISC16_ADIID                                        (0X020U)    /* ADI ID */
#define IDX_MISC16_CHIPID                                       (0X024U)    /* Chip ID */
#define IDX_MISC16_USERKEY                                      (0X134U)    /* Open to Customer to Protect Important Registers */

/* ====================================================================================================
        MISC16 Module Register ResetValue Definitions
   ==================================================================================================== */
#define RSTVAL_MISC16_ADIID                                        (0X4144) 
#define RSTVAL_MISC16_CHIPID                                       (0X571) 
#define RSTVAL_MISC16_USERKEY                                      (0X0) 

/* ====================================================================================================
        MISC16 Module Register BitPositions, Lengths, Masks and Enumerations Definitions
   ==================================================================================================== */

/* ----------------------------------------------------------------------------------------------------
          ADIID                                                 Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_MISC16_ADIID_ADIID                               (0U)           /* ADI ID */
#define BITL_MISC16_ADIID_ADIID                               (16U)          /* ADI ID */
#define BITM_MISC16_ADIID_ADIID                               (0X0000FFFFU)  /* ADI ID */

/* ----------------------------------------------------------------------------------------------------
          CHIPID                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_MISC16_CHIPID_REVISION                           (0U)           /* Silicon Revision Number */
#define BITL_MISC16_CHIPID_REVISION                           (4U)           /* Silicon Revision Number */
#define BITM_MISC16_CHIPID_REVISION                           (0X0000000FU)  /* Silicon Revision Number */
#define BITP_MISC16_CHIPID_PARTID                             (4U)           /* Part Identifier */
#define BITL_MISC16_CHIPID_PARTID                             (12U)          /* Part Identifier */
#define BITM_MISC16_CHIPID_PARTID                             (0X0000FFF0U)  /* Part Identifier */

/* ----------------------------------------------------------------------------------------------------
          USERKEY                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_MISC16_USERKEY_KEY                               (0U)           /* User Key */
#define BITL_MISC16_USERKEY_KEY                               (32U)          /* User Key */
#define BITM_MISC16_USERKEY_KEY                               (0XFFFFFFFFU)  /* User Key */

#endif  /* end ifndef MISC16_ADDR_RDEF_H_ */


#ifndef WUT_ADDR_RDEF_H_
#define WUT_ADDR_RDEF_H_    /* WUT: WUT */

/* ====================================================================================================
        WUT Module Instances Address and Mask Definitions
   ==================================================================================================== */
#define INST_WUT                                                 (0X40003000U)    /* wut: */

#define MASK_WUT                                                 (0XFFFFFFFFU)    /* WUT: WUT */

/* ====================================================================================================
        WUT Module Register Address Offset Definitions
   ==================================================================================================== */
#define IDX_WUT_T4VAL0                                          (0X00000000U)    /* Current Count Value - LS 16 Bits */
#define IDX_WUT_T4VAL1                                          (0X00000004U)    /* Current Count Value - MS 16 Bits */
#define IDX_WUT_T4CON                                           (0X00000008U)    /* Control Register */
#define IDX_WUT_T4INC                                           (0X0000000CU)    /* 12-bit Interval for Wakeup Field a */
#define IDX_WUT_T4WUFB0                                         (0X00000010U)    /* Wakeup Field B - LS 16 Bits */
#define IDX_WUT_T4WUFB1                                         (0X00000014U)    /* Wakeup Field B - MS 16 Bits */
#define IDX_WUT_T4WUFC0                                         (0X00000018U)    /* Wakeup Field C - LS 16 Bits */
#define IDX_WUT_T4WUFC1                                         (0X0000001CU)    /* Wakeup Field C - MS 16 Bits */
#define IDX_WUT_T4WUFD0                                         (0X00000020U)    /* Wakeup Field D - LS 16 Bits */
#define IDX_WUT_T4WUFD1                                         (0X00000024U)    /* Wakeup Field D - MS 16 Bits */
#define IDX_WUT_T4IEN                                           (0X00000028U)    /* Interrupt Enable Register */
#define IDX_WUT_T4STA                                           (0X0000002CU)    /* Status Register */
#define IDX_WUT_T4CLRI                                          (0X00000030U)    /* Clear Interrupt Register */
#define IDX_WUT_T4WUFA0                                         (0X0000003CU)    /* Wakeup Field a - LS 16 Bits */
#define IDX_WUT_T4WUFA1                                         (0X00000040U)    /* Wakeup Field a - MS 16 Bits */

/* ====================================================================================================
        WUT Module Register ResetValue Definitions
   ==================================================================================================== */
#define RSTVAL_WUT_T4VAL0                                          (0X0) 
#define RSTVAL_WUT_T4VAL1                                          (0X0) 
#define RSTVAL_WUT_T4CON                                           (0X40) 
#define RSTVAL_WUT_T4INC                                           (0XC8) 
#define RSTVAL_WUT_T4WUFB0                                         (0X1FFF) 
#define RSTVAL_WUT_T4WUFB1                                         (0X0) 
#define RSTVAL_WUT_T4WUFC0                                         (0X2FFF) 
#define RSTVAL_WUT_T4WUFC1                                         (0X0) 
#define RSTVAL_WUT_T4WUFD0                                         (0X3FFF) 
#define RSTVAL_WUT_T4WUFD1                                         (0X0) 
#define RSTVAL_WUT_T4IEN                                           (0X0) 
#define RSTVAL_WUT_T4STA                                           (0X0) 
#define RSTVAL_WUT_T4CLRI                                          (0X0) 
#define RSTVAL_WUT_T4WUFA0                                         (0X1900) 
#define RSTVAL_WUT_T4WUFA1                                         (0X0) 

/* ====================================================================================================
        WUT Module Register BitPositions, Lengths, Masks and Enumerations Definitions
   ==================================================================================================== */

/* ----------------------------------------------------------------------------------------------------
          T4VAL0                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_WUT_T4VAL0_T4VALL                                (0U)           /* Current Count Low */
#define BITL_WUT_T4VAL0_T4VALL                                (16U)          /* Current Count Low */
#define BITM_WUT_T4VAL0_T4VALL                                (0XFFFFU)      /* Current Count Low */

/* ----------------------------------------------------------------------------------------------------
          T4VAL1                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_WUT_T4VAL1_T4VALH                                (0U)           /* Current Count High */
#define BITL_WUT_T4VAL1_T4VALH                                (16U)          /* Current Count High */
#define BITM_WUT_T4VAL1_T4VALH                                (0XFFFFU)      /* Current Count High */

/* ----------------------------------------------------------------------------------------------------
          T4CON                                                 Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_WUT_T4CON_PRE                                    (0U)           /* Prescaler */
#define BITL_WUT_T4CON_PRE                                    (2U)           /* Prescaler */
#define BITM_WUT_T4CON_PRE                                    (0X0003U)      /* Prescaler */
#define BITP_WUT_T4CON_FREEZE                                 (3U)           /* Freeze Enable */
#define BITL_WUT_T4CON_FREEZE                                 (1U)           /* Freeze Enable */
#define BITM_WUT_T4CON_FREEZE                                 (0X0008U)      /* Freeze Enable */
#define BITP_WUT_T4CON_TMODE                                  (6U)           /* Timer Mode */
#define BITL_WUT_T4CON_TMODE                                  (1U)           /* Timer Mode */
#define BITM_WUT_T4CON_TMODE                                  (0X0040U)      /* Timer Mode */
#define BITP_WUT_T4CON_ENABLE                                 (7U)           /* Timer Enable */
#define BITL_WUT_T4CON_ENABLE                                 (1U)           /* Timer Enable */
#define BITM_WUT_T4CON_ENABLE                                 (0X0080U)      /* Timer Enable */
#define BITP_WUT_T4CON_WUEN                                   (8U)           /* Wakeup Enable */
#define BITL_WUT_T4CON_WUEN                                   (1U)           /* Wakeup Enable */
#define BITM_WUT_T4CON_WUEN                                   (0X0100U)      /* Wakeup Enable */
#define BITP_WUT_T4CON_CLK                                    (9U)           /* Clock Select */
#define BITL_WUT_T4CON_CLK                                    (2U)           /* Clock Select */
#define BITM_WUT_T4CON_CLK                                    (0X0600U)      /* Clock Select */
#define BITP_WUT_T4CON_STOP_WUFA                              (11U)          /* Disables Updating Field a Register T4WUFA */
#define BITL_WUT_T4CON_STOP_WUFA                              (1U)           /* Disables Updating Field a Register T4WUFA */
#define BITM_WUT_T4CON_STOP_WUFA                              (0X0800U)      /* Disables Updating Field a Register T4WUFA */

#define ENUM_WUT_T4CON_CLK_PCLK                               (0X0000U)      /* PCLK: PCLK (default) */
#define ENUM_WUT_T4CON_CLK_LFOSC                              (0X0001U)      /* LFOSC: 32 KHz Internal Oscillator */
#define ENUM_WUT_T4CON_CLK_LFOSC1                             (0X0002U)      /* LFOSC: 32kHz Internal Oscillator */
#define ENUM_WUT_T4CON_CLK_ECLKIN                             (0X0003U)      /* ECLKIN: External Clock from P1.0 */
#define ENUM_WUT_T4CON_WUEN_DIS                               (0X0000U)      /* DIS: Cleared by User to Disable the Wake up Timer When the Core Clock is off */
#define ENUM_WUT_T4CON_WUEN_EN                                (0X0001U)      /* EN: Set by User to Enable the Wake up Timer Even When the Core Clock is Off. */
#define ENUM_WUT_T4CON_ENABLE_DIS                             (0X0000U)      /* DIS: Disable the Timer (default). */
#define ENUM_WUT_T4CON_ENABLE_EN                              (0X0001U)      /* EN: Enable the Timer. */
#define ENUM_WUT_T4CON_TMODE_PERIODIC                         (0X0000U)      /* PERIODIC: Cleared by User to Operate in Periodic Mode. in This Mode, the Timer Counts up to T4WUFD */
#define ENUM_WUT_T4CON_TMODE_FREERUN                          (0X0001U)      /* FREERUN: Set by User to Operate in Free Running Mode (default). */
#define ENUM_WUT_T4CON_FREEZE_DIS                             (0X0000U)      /* DIS: Cleared by User to Disable This Feature (default). */
#define ENUM_WUT_T4CON_FREEZE_EN                              (0X0001U)      /* EN: Set by User to Enable the Freeze of the High 16-bits After the Lower Bits Have Been Read from T4VAL0. This Ensures That the Software Will Read an Atomic Shot of the Timer. T4VAL1 Unfreezes After It Has Been Read. */
#define ENUM_WUT_T4CON_PRE_PREDIV1                            (0X0000U)      /* PREDIV1: Source Clock/1 (default). If the Selected Clock Source is PCLK, Then This Setting Results in a Prescaler of 4. */
#define ENUM_WUT_T4CON_PRE_PREDIV16                           (0X0001U)      /* PREDIV16: Source Clock/16 */
#define ENUM_WUT_T4CON_PRE_PREDIV256                          (0X0002U)      /* PREDIV256: Source Clock/256 */
#define ENUM_WUT_T4CON_PRE_PREDIV32768                        (0X0003U)      /* PREDIV32768: Source Clock/32,768 */

/* ----------------------------------------------------------------------------------------------------
          T4INC                                                 Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_WUT_T4INC_INTERVAL                               (0U)           /* Interval for Wakeup Field a */
#define BITL_WUT_T4INC_INTERVAL                               (12U)          /* Interval for Wakeup Field a */
#define BITM_WUT_T4INC_INTERVAL                               (0X0FFFU)      /* Interval for Wakeup Field a */

/* ----------------------------------------------------------------------------------------------------
          T4WUFB0                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_WUT_T4WUFB0_T4WUFBL                              (0U)           /* Wakeup Field B Low */
#define BITL_WUT_T4WUFB0_T4WUFBL                              (16U)          /* Wakeup Field B Low */
#define BITM_WUT_T4WUFB0_T4WUFBL                              (0XFFFFU)      /* Wakeup Field B Low */

/* ----------------------------------------------------------------------------------------------------
          T4WUFB1                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_WUT_T4WUFB1_T4WUFBH                              (0U)           /* Wakeup Field B High */
#define BITL_WUT_T4WUFB1_T4WUFBH                              (16U)          /* Wakeup Field B High */
#define BITM_WUT_T4WUFB1_T4WUFBH                              (0XFFFFU)      /* Wakeup Field B High */

/* ----------------------------------------------------------------------------------------------------
          T4WUFC0                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_WUT_T4WUFC0_T4WUFCL                              (0U)           /* Wakeup Field C Low */
#define BITL_WUT_T4WUFC0_T4WUFCL                              (16U)          /* Wakeup Field C Low */
#define BITM_WUT_T4WUFC0_T4WUFCL                              (0XFFFFU)      /* Wakeup Field C Low */

/* ----------------------------------------------------------------------------------------------------
          T4WUFC1                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_WUT_T4WUFC1_T4WUFCH                              (0U)           /* Wakeup Field C High */
#define BITL_WUT_T4WUFC1_T4WUFCH                              (16U)          /* Wakeup Field C High */
#define BITM_WUT_T4WUFC1_T4WUFCH                              (0XFFFFU)      /* Wakeup Field C High */

/* ----------------------------------------------------------------------------------------------------
          T4WUFD0                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_WUT_T4WUFD0_T4WUFD0                              (0U)           /* Wakeup Field D Low */
#define BITL_WUT_T4WUFD0_T4WUFD0                              (16U)          /* Wakeup Field D Low */
#define BITM_WUT_T4WUFD0_T4WUFD0                              (0XFFFFU)      /* Wakeup Field D Low */

/* ----------------------------------------------------------------------------------------------------
          T4WUFD1                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_WUT_T4WUFD1_T4WUFDH                              (0U)           /* Wakeup Field D High */
#define BITL_WUT_T4WUFD1_T4WUFDH                              (16U)          /* Wakeup Field D High */
#define BITM_WUT_T4WUFD1_T4WUFDH                              (0XFFFFU)      /* Wakeup Field D High */

/* ----------------------------------------------------------------------------------------------------
          T4IEN                                                 Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_WUT_T4IEN_WUFA                                   (0U)           /* T4WUFA Interrupt Enable */
#define BITL_WUT_T4IEN_WUFA                                   (1U)           /* T4WUFA Interrupt Enable */
#define BITM_WUT_T4IEN_WUFA                                   (0X0001U)      /* T4WUFA Interrupt Enable */
#define BITP_WUT_T4IEN_WUFB                                   (1U)           /* T4WUFB Interrupt Enable */
#define BITL_WUT_T4IEN_WUFB                                   (1U)           /* T4WUFB Interrupt Enable */
#define BITM_WUT_T4IEN_WUFB                                   (0X0002U)      /* T4WUFB Interrupt Enable */
#define BITP_WUT_T4IEN_WUFC                                   (2U)           /* T4WUFC Interrupt Enable */
#define BITL_WUT_T4IEN_WUFC                                   (1U)           /* T4WUFC Interrupt Enable */
#define BITM_WUT_T4IEN_WUFC                                   (0X0004U)      /* T4WUFC Interrupt Enable */
#define BITP_WUT_T4IEN_WUFD                                   (3U)           /* T4WUFD Interrupt Enable */
#define BITL_WUT_T4IEN_WUFD                                   (1U)           /* T4WUFD Interrupt Enable */
#define BITM_WUT_T4IEN_WUFD                                   (0X0008U)      /* T4WUFD Interrupt Enable */
#define BITP_WUT_T4IEN_ROLL                                   (4U)           /* Rollover Interrupt Enable */
#define BITL_WUT_T4IEN_ROLL                                   (1U)           /* Rollover Interrupt Enable */
#define BITM_WUT_T4IEN_ROLL                                   (0X0010U)      /* Rollover Interrupt Enable */

/* ----------------------------------------------------------------------------------------------------
          T4STA                                                 Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_WUT_T4STA_WUFA                                   (0U)           /* T4WUFA Interrupt Flag */
#define BITL_WUT_T4STA_WUFA                                   (1U)           /* T4WUFA Interrupt Flag */
#define BITM_WUT_T4STA_WUFA                                   (0X0001U)      /* T4WUFA Interrupt Flag */
#define BITP_WUT_T4STA_WUFB                                   (1U)           /* T4WUFB Interrupt Flag */
#define BITL_WUT_T4STA_WUFB                                   (1U)           /* T4WUFB Interrupt Flag */
#define BITM_WUT_T4STA_WUFB                                   (0X0002U)      /* T4WUFB Interrupt Flag */
#define BITP_WUT_T4STA_WUFC                                   (2U)           /* T4WUFC Interrupt Flag */
#define BITL_WUT_T4STA_WUFC                                   (1U)           /* T4WUFC Interrupt Flag */
#define BITM_WUT_T4STA_WUFC                                   (0X0004U)      /* T4WUFC Interrupt Flag */
#define BITP_WUT_T4STA_WUFD                                   (3U)           /* T4WUFD Interrupt Flag */
#define BITL_WUT_T4STA_WUFD                                   (1U)           /* T4WUFD Interrupt Flag */
#define BITM_WUT_T4STA_WUFD                                   (0X0008U)      /* T4WUFD Interrupt Flag */
#define BITP_WUT_T4STA_ROLL                                   (4U)           /* Rollover Interrupt Flag */
#define BITL_WUT_T4STA_ROLL                                   (1U)           /* Rollover Interrupt Flag */
#define BITM_WUT_T4STA_ROLL                                   (0X0010U)      /* Rollover Interrupt Flag */
#define BITP_WUT_T4STA_IRQCRY                                 (6U)           /* Wakeup Status to Powerdown */
#define BITL_WUT_T4STA_IRQCRY                                 (1U)           /* Wakeup Status to Powerdown */
#define BITM_WUT_T4STA_IRQCRY                                 (0X0040U)      /* Wakeup Status to Powerdown */
#define BITP_WUT_T4STA_FREEZE                                 (7U)           /* Timer Value Freeze */
#define BITL_WUT_T4STA_FREEZE                                 (1U)           /* Timer Value Freeze */
#define BITM_WUT_T4STA_FREEZE                                 (0X0080U)      /* Timer Value Freeze */
#define BITP_WUT_T4STA_PDOK                                   (8U)           /* Enable Bit Synchronized */
#define BITL_WUT_T4STA_PDOK                                   (1U)           /* Enable Bit Synchronized */
#define BITM_WUT_T4STA_PDOK                                   (0X0100U)      /* Enable Bit Synchronized */

/* ----------------------------------------------------------------------------------------------------
          T4CLRI                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_WUT_T4CLRI_WUFA                                  (0U)           /* T4WUFA Interrupt Clear */
#define BITL_WUT_T4CLRI_WUFA                                  (1U)           /* T4WUFA Interrupt Clear */
#define BITM_WUT_T4CLRI_WUFA                                  (0X0001U)      /* T4WUFA Interrupt Clear */
#define BITP_WUT_T4CLRI_WUFB                                  (1U)           /* T4WUFB Interrupt Clear */
#define BITL_WUT_T4CLRI_WUFB                                  (1U)           /* T4WUFB Interrupt Clear */
#define BITM_WUT_T4CLRI_WUFB                                  (0X0002U)      /* T4WUFB Interrupt Clear */
#define BITP_WUT_T4CLRI_WUFC                                  (2U)           /* T4WUFC Interrupt Clear */
#define BITL_WUT_T4CLRI_WUFC                                  (1U)           /* T4WUFC Interrupt Clear */
#define BITM_WUT_T4CLRI_WUFC                                  (0X0004U)      /* T4WUFC Interrupt Clear */
#define BITP_WUT_T4CLRI_WUFD                                  (3U)           /* T4WUFD Interrupt Clear */
#define BITL_WUT_T4CLRI_WUFD                                  (1U)           /* T4WUFD Interrupt Clear */
#define BITM_WUT_T4CLRI_WUFD                                  (0X0008U)      /* T4WUFD Interrupt Clear */
#define BITP_WUT_T4CLRI_ROLL                                  (4U)           /* Rollover Interrupt Clear */
#define BITL_WUT_T4CLRI_ROLL                                  (1U)           /* Rollover Interrupt Clear */
#define BITM_WUT_T4CLRI_ROLL                                  (0X0010U)      /* Rollover Interrupt Clear */

/* ----------------------------------------------------------------------------------------------------
          T4WUFA0                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_WUT_T4WUFA0_T4WUFAL                              (0U)           /* Wakeup Field a Low */
#define BITL_WUT_T4WUFA0_T4WUFAL                              (16U)          /* Wakeup Field a Low */
#define BITM_WUT_T4WUFA0_T4WUFAL                              (0XFFFFU)      /* Wakeup Field a Low */

/* ----------------------------------------------------------------------------------------------------
          T4WUFA1                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_WUT_T4WUFA1_T4WUFAH                              (0U)           /* Wakeup Field a High */
#define BITL_WUT_T4WUFA1_T4WUFAH                              (16U)          /* Wakeup Field a High */
#define BITM_WUT_T4WUFA1_T4WUFAH                              (0XFFFFU)      /* Wakeup Field a High */

#endif  /* end ifndef WUT_ADDR_RDEF_H_ */


#ifndef WDT_ADDR_RDEF_H_
#define WDT_ADDR_RDEF_H_    /* WDT: Watchdog Timer Register Map */

/* ====================================================================================================
        WDT Module Instances Address and Mask Definitions
   ==================================================================================================== */
#define INST_WDT                                                 (0X40004000U)    /* wdt: */

#define MASK_WDT                                                 (0X000000FFU)    /* WDT: Watchdog Timer Register Map */

/* ====================================================================================================
        WDT Module Register Address Offset Definitions
   ==================================================================================================== */
#define IDX_WDT_LD                                              (0X00U)    /* Watchdog Timer Load Value */
#define IDX_WDT_VALS                                            (0X04U)    /* Current Count Value */
#define IDX_WDT_CON                                             (0X08U)    /* Watchdog Timer Control Register */
#define IDX_WDT_CLRI                                            (0X0CU)    /* Refresh Watchdog Register */
#define IDX_WDT_STA                                             (0X18U)    /* Timer Status */
#define IDX_WDT_MINLD                                           (0X1CU)    /* Minimum Load Value */

/* ====================================================================================================
        WDT Module Register ResetValue Definitions
   ==================================================================================================== */
#define RSTVAL_WDT_LD                                              (0X1000) 
#define RSTVAL_WDT_VALS                                            (0X1000) 
#define RSTVAL_WDT_CON                                             (0X69) 
#define RSTVAL_WDT_CLRI                                            (0X0) 
#define RSTVAL_WDT_STA                                             (0X0) 
#define RSTVAL_WDT_MINLD                                           (0X800) 

/* ====================================================================================================
        WDT Module Register BitPositions, Lengths, Masks and Enumerations Definitions
   ==================================================================================================== */

/* ----------------------------------------------------------------------------------------------------
          LD                                                    Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_WDT_LD_LOAD                                      (0U)           /* WDT Load Value */
#define BITL_WDT_LD_LOAD                                      (16U)          /* WDT Load Value */
#define BITM_WDT_LD_LOAD                                      (0XFFFFU)      /* WDT Load Value */

/* ----------------------------------------------------------------------------------------------------
          VALS                                                  Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_WDT_VALS_CCOUNT                                  (0U)           /* Current WDT Count Value. */
#define BITL_WDT_VALS_CCOUNT                                  (16U)          /* Current WDT Count Value. */
#define BITM_WDT_VALS_CCOUNT                                  (0XFFFFU)      /* Current WDT Count Value. */

/* ----------------------------------------------------------------------------------------------------
          CON                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_WDT_CON_PDSTOP                                   (0U)           /* Power Down Stop Enable */
#define BITL_WDT_CON_PDSTOP                                   (1U)           /* Power Down Stop Enable */
#define BITM_WDT_CON_PDSTOP                                   (0X0001U)      /* Power Down Stop Enable */
#define BITP_WDT_CON_IRQ                                      (1U)           /* WDT Interrupt Enable */
#define BITL_WDT_CON_IRQ                                      (1U)           /* WDT Interrupt Enable */
#define BITM_WDT_CON_IRQ                                      (0X0002U)      /* WDT Interrupt Enable */
#define BITP_WDT_CON_PRE                                      (2U)           /* Prescaler. */
#define BITL_WDT_CON_PRE                                      (2U)           /* Prescaler. */
#define BITM_WDT_CON_PRE                                      (0X000CU)      /* Prescaler. */
#define BITP_WDT_CON_EN                                       (5U)           /* Timer Enable */
#define BITL_WDT_CON_EN                                       (1U)           /* Timer Enable */
#define BITM_WDT_CON_EN                                       (0X0020U)      /* Timer Enable */
#define BITP_WDT_CON_MDE                                      (6U)           /* Timer Mode Select */
#define BITL_WDT_CON_MDE                                      (1U)           /* Timer Mode Select */
#define BITM_WDT_CON_MDE                                      (0X0040U)      /* Timer Mode Select */
#define BITP_WDT_CON_CLKDIV2                                  (8U)           /* Clock Source */
#define BITL_WDT_CON_CLKDIV2                                  (1U)           /* Clock Source */
#define BITM_WDT_CON_CLKDIV2                                  (0X0100U)      /* Clock Source */
#define BITP_WDT_CON_MINLOADEN                                (9U)           /* Timer Window Control */
#define BITL_WDT_CON_MINLOADEN                                (1U)           /* Timer Window Control */
#define BITM_WDT_CON_MINLOADEN                                (0X0200U)      /* Timer Window Control */
#define BITP_WDT_CON_WDTIRQEN                                 (10U)          /* WDT Interrupt Enable */
#define BITL_WDT_CON_WDTIRQEN                                 (1U)           /* WDT Interrupt Enable */
#define BITM_WDT_CON_WDTIRQEN                                 (0X0400U)      /* WDT Interrupt Enable */

#define ENUM_WDT_CON_MDE_FREE                                 (0X0000U)      /* Free-running Mode */
#define ENUM_WDT_CON_MDE_PERIODIC                             (0X0001U)      /* Periodic Mode (default) */
#define ENUM_WDT_CON_PRE_DIV1                                 (0X0000U)      /* Source Clock/1 */
#define ENUM_WDT_CON_PRE_DIV16                                (0X0001U)      /* Source Clock/16. */
#define ENUM_WDT_CON_PRE_DIV256                               (0X0002U)      /* Source Clock/256 (default). */
#define ENUM_WDT_CON_PRE_DIV4096                              (0X0003U)      /* Source Clock/4096 */
#define ENUM_WDT_CON_IRQ_RESET                                (0X0000U)      /* Watchdog Timer Timeout Creates a Reset. */
#define ENUM_WDT_CON_IRQ_INTERRUPT                            (0X0001U)      /* Watchdog Timer Timeout Creates an Interrupt Instead of Reset. */
#define ENUM_WDT_CON_PDSTOP_CONTINUE                          (0X0000U)      /* Continue Counting When in Hibernate */
#define ENUM_WDT_CON_PDSTOP_STOPED                            (0X0001U)      /* Stop Counter When in Hibernate. */

/* ----------------------------------------------------------------------------------------------------
          CLRI                                                  Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_WDT_CLRI_CLRWDG                                  (0U)           /* Refresh Register */
#define BITL_WDT_CLRI_CLRWDG                                  (16U)          /* Refresh Register */
#define BITM_WDT_CLRI_CLRWDG                                  (0XFFFFU)      /* Refresh Register */

/* ----------------------------------------------------------------------------------------------------
          STA                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_WDT_STA_IRQ                                      (0U)           /* WDT Interrupt */
#define BITL_WDT_STA_IRQ                                      (1U)           /* WDT Interrupt */
#define BITM_WDT_STA_IRQ                                      (0X0001U)      /* WDT Interrupt */
#define BITP_WDT_STA_CLRI                                     (1U)           /* WDTCLRI Write Status */
#define BITL_WDT_STA_CLRI                                     (1U)           /* WDTCLRI Write Status */
#define BITM_WDT_STA_CLRI                                     (0X0002U)      /* WDTCLRI Write Status */
#define BITP_WDT_STA_TLD                                      (2U)           /* WDTVAL Write Status */
#define BITL_WDT_STA_TLD                                      (1U)           /* WDTVAL Write Status */
#define BITM_WDT_STA_TLD                                      (0X0004U)      /* WDTVAL Write Status */
#define BITP_WDT_STA_CON                                      (3U)           /* WDTCON Write Status */
#define BITL_WDT_STA_CON                                      (1U)           /* WDTCON Write Status */
#define BITM_WDT_STA_CON                                      (0X0008U)      /* WDTCON Write Status */
#define BITP_WDT_STA_LOCKS                                    (4U)           /* Lock Status */
#define BITL_WDT_STA_LOCKS                                    (1U)           /* Lock Status */
#define BITM_WDT_STA_LOCKS                                    (0X0010U)      /* Lock Status */
#define BITP_WDT_STA_OTPWRDONE                                (5U)           /* Reset Type Status */
#define BITL_WDT_STA_OTPWRDONE                                (1U)           /* Reset Type Status */
#define BITM_WDT_STA_OTPWRDONE                                (0X0020U)      /* Reset Type Status */
#define BITP_WDT_STA_TMINLD                                   (6U)           /* WDTMINLD Write Status */
#define BITL_WDT_STA_TMINLD                                   (1U)           /* WDTMINLD Write Status */
#define BITM_WDT_STA_TMINLD                                   (0X0040U)      /* WDTMINLD Write Status */

#define ENUM_WDT_STA_LOCKS_OPENED                             (0X0000U)      /* Timer Operation Not Locked */
#define ENUM_WDT_STA_LOCKS_LOCKED                             (0X0001U)      /* Timer Enabled and Locked */
#define ENUM_WDT_STA_IRQ_CLEARED                              (0X0000U)      /* Watchdog Timer Interrupt Not Pending */
#define ENUM_WDT_STA_IRQ_PENDING                              (0X0001U)      /* Watchdog Timer Interrupt Pending */

/* ----------------------------------------------------------------------------------------------------
          MINLD                                                 Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_WDT_MINLD_MINLOAD                                (0U)           /* WDT Min Load Value */
#define BITL_WDT_MINLD_MINLOAD                                (16U)          /* WDT Min Load Value */
#define BITM_WDT_MINLD_MINLOAD                                (0XFFFFU)      /* WDT Min Load Value */

#endif  /* end ifndef WDT_ADDR_RDEF_H_ */


#ifndef ALWAYS_ON_ADDR_RDEF_H_
#define ALWAYS_ON_ADDR_RDEF_H_    /* ALWAYS_ON: Always on clock, reset, power management and test */

/* ====================================================================================================
        ALWAYS_ON Module Instances Address and Mask Definitions
   ==================================================================================================== */
#define INST_ALLON                                               (0X40005000U)    /* allon: */

#define MASK_ALWAYS_ON                                           (0XFFFFFFFFU)    /* ALWAYS_ON: Always on clock, reset, power management and test */

/* ====================================================================================================
        ALWAYS_ON Module Register Address Offset Definitions
   ==================================================================================================== */
#define IDX_ALWAYS_ON_PWRMOD                                    (0X00000000U)    /* Power Modes */
#define IDX_ALWAYS_ON_PWRKEY                                    (0X00000004U)    /* Key Protection for PWRMOD */
#define IDX_ALWAYS_ON_RSTCFG                                    (0X00000008U)    /* Reset Configuration */
#define IDX_ALWAYS_ON_RSTKEY                                    (0X0000000CU)    /* Key Protection for RSTCFG */
#define IDX_ALWAYS_ON_EI0CFG                                    (0X00000020U)    /* External Interrupt Configuration 0 */
#define IDX_ALWAYS_ON_EI1CFG                                    (0X00000024U)    /* External Interrupt Configuration 1 */
#define IDX_ALWAYS_ON_EI2CFG                                    (0X00000028U)    /* External Interrupt Configuration 2 */
#define IDX_ALWAYS_ON_EICLR                                     (0X00000030U)    /* External Interrupt Clear */
#define IDX_ALWAYS_ON_RSTSTA                                    (0X00000040U)    /* Reset Status */

/* ====================================================================================================
        ALWAYS_ON Module Register ResetValue Definitions
   ==================================================================================================== */
#define RSTVAL_ALWAYS_ON_PWRMOD                                    (0X0) 
#define RSTVAL_ALWAYS_ON_PWRKEY                                    (0X0) 
#define RSTVAL_ALWAYS_ON_RSTCFG                                    (0X0) 
#define RSTVAL_ALWAYS_ON_RSTKEY                                    (0X0) 
#define RSTVAL_ALWAYS_ON_EI0CFG                                    (0X0) 
#define RSTVAL_ALWAYS_ON_EI1CFG                                    (0X0) 
#define RSTVAL_ALWAYS_ON_EI2CFG                                    (0X0) 
#define RSTVAL_ALWAYS_ON_EICLR                                     (0X0) 
#define RSTVAL_ALWAYS_ON_RSTSTA                                    (0X0) 

/* ====================================================================================================
        ALWAYS_ON Module Register BitPositions, Lengths, Masks and Enumerations Definitions
   ==================================================================================================== */

/* ----------------------------------------------------------------------------------------------------
          PWRMOD                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ALWAYS_ON_PWRMOD_PWRMOD                          (0U)           /* Power Modes Control Bits */
#define BITL_ALWAYS_ON_PWRMOD_PWRMOD                          (2U)           /* Power Modes Control Bits */
#define BITM_ALWAYS_ON_PWRMOD_PWRMOD                          (0X0003U)      /* Power Modes Control Bits */
#define BITP_ALWAYS_ON_PWRMOD_WICENACK                        (3U)           /* WIC Acknowledgment for SLEEPDEEP */
#define BITL_ALWAYS_ON_PWRMOD_WICENACK                        (1U)           /* WIC Acknowledgment for SLEEPDEEP */
#define BITM_ALWAYS_ON_PWRMOD_WICENACK                        (0X0008U)      /* WIC Acknowledgment for SLEEPDEEP */

#define ENUM_ALWAYS_ON_PWRMOD_WICENACK_NOACK                  (0X0000U)      /* No description provided */
#define ENUM_ALWAYS_ON_PWRMOD_WICENACK_ACK                    (0X0001U)      /* No description provided */
#define ENUM_ALWAYS_ON_PWRMOD_PWRMOD_FULLACTIVE               (0X0000U)      /* Active Mode */
#define ENUM_ALWAYS_ON_PWRMOD_PWRMOD_CORESLEEP                (0X0001U)      /* CORE_SLEEP Mode */
#define ENUM_ALWAYS_ON_PWRMOD_PWRMOD_SYSSLEEP                 (0X0002U)      /* SYS_SLEEP Mode */
#define ENUM_ALWAYS_ON_PWRMOD_PWRMOD_HIBERNATE                (0X0003U)      /* Hibernate Mode */

/* ----------------------------------------------------------------------------------------------------
          PWRKEY                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ALWAYS_ON_PWRKEY_PWRKEY                          (0U)           /* Power Control Key Register */
#define BITL_ALWAYS_ON_PWRKEY_PWRKEY                          (16U)          /* Power Control Key Register */
#define BITM_ALWAYS_ON_PWRKEY_PWRKEY                          (0XFFFFU)      /* Power Control Key Register */

/* ----------------------------------------------------------------------------------------------------
          RSTCFG                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ALWAYS_ON_RSTCFG_GPIO_PLA_RETAIN                 (0U)           /* GPIO/PLA Retain Their Status After WDT and Software Reset */
#define BITL_ALWAYS_ON_RSTCFG_GPIO_PLA_RETAIN                 (1U)           /* GPIO/PLA Retain Their Status After WDT and Software Reset */
#define BITM_ALWAYS_ON_RSTCFG_GPIO_PLA_RETAIN                 (0X0001U)      /* GPIO/PLA Retain Their Status After WDT and Software Reset */
#define BITP_ALWAYS_ON_RSTCFG_LV_RETAIN                       (2U)           /* LV Die Retain Status After Watchdog or Software Reset */
#define BITL_ALWAYS_ON_RSTCFG_LV_RETAIN                       (1U)           /* LV Die Retain Status After Watchdog or Software Reset */
#define BITM_ALWAYS_ON_RSTCFG_LV_RETAIN                       (0X0004U)      /* LV Die Retain Status After Watchdog or Software Reset */
#define BITP_ALWAYS_ON_RSTCFG_ANA_RETAIN                      (3U)           /* Analog Block Retain Status After Watchdog or Software Reset */
#define BITL_ALWAYS_ON_RSTCFG_ANA_RETAIN                      (1U)           /* Analog Block Retain Status After Watchdog or Software Reset */
#define BITM_ALWAYS_ON_RSTCFG_ANA_RETAIN                      (0X0008U)      /* Analog Block Retain Status After Watchdog or Software Reset */

#define ENUM_ALWAYS_ON_RSTCFG_ANA_RETAIN_DIS                  (0X0000U)      /* GPIO/PLA Retain Status After Watchdog or Software Reset. */
#define ENUM_ALWAYS_ON_RSTCFG_ANA_RETAIN_EN                   (0X0001U)      /* GPIO/PLA not Retain Status After Watchdog or Software Reset */
#define ENUM_ALWAYS_ON_RSTCFG_LV_RETAIN_DIS                   (0X0000U)      /* LV Die Retain Status After Watchdog or Software Reset. */
#define ENUM_ALWAYS_ON_RSTCFG_LV_RETAIN_EN                    (0X0001U)      /* LV Die not Retain Status After Watchdog or Software Reset */
#define ENUM_ALWAYS_ON_RSTCFG_GPIO_PLA_RETAIN_DIS             (0X0000U)      /* GPIO/PLA  Retain Status After Watchdog or Software Reset. */
#define ENUM_ALWAYS_ON_RSTCFG_GPIO_PLA_RETAIN_EN              (0X0001U)      /* GPIO/PLA not Retain Status After Watchdog or Software Reset */

/* ----------------------------------------------------------------------------------------------------
          RSTKEY                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ALWAYS_ON_RSTKEY_RSTKEY                          (0U)           /* Reset Configuration Key Register */
#define BITL_ALWAYS_ON_RSTKEY_RSTKEY                          (16U)          /* Reset Configuration Key Register */
#define BITM_ALWAYS_ON_RSTKEY_RSTKEY                          (0XFFFFU)      /* Reset Configuration Key Register */

#define ENUM_ALWAYS_ON_RSTKEY_RSTKEY_RSTKEY1                  (0X2009U)      /* First Key to Write Reset Configuration */
#define ENUM_ALWAYS_ON_RSTKEY_RSTKEY_RSTKEY2                  (0X0426U)      /* Second Key to Write Reset Configuration */

/* ----------------------------------------------------------------------------------------------------
          EI0CFG                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ALWAYS_ON_EI0CFG_IRQ0MDE                         (0U)           /* External Interrupt 0 Mode Registers */
#define BITL_ALWAYS_ON_EI0CFG_IRQ0MDE                         (3U)           /* External Interrupt 0 Mode Registers */
#define BITM_ALWAYS_ON_EI0CFG_IRQ0MDE                         (0X0007U)      /* External Interrupt 0 Mode Registers */
#define BITP_ALWAYS_ON_EI0CFG_IRQ0EN                          (3U)           /* External Interrupt 0 Enable Bit */
#define BITL_ALWAYS_ON_EI0CFG_IRQ0EN                          (1U)           /* External Interrupt 0 Enable Bit */
#define BITM_ALWAYS_ON_EI0CFG_IRQ0EN                          (0X0008U)      /* External Interrupt 0 Enable Bit */
#define BITP_ALWAYS_ON_EI0CFG_IRQ1MDE                         (4U)           /* External Interrupt 1 Mode Registers */
#define BITL_ALWAYS_ON_EI0CFG_IRQ1MDE                         (3U)           /* External Interrupt 1 Mode Registers */
#define BITM_ALWAYS_ON_EI0CFG_IRQ1MDE                         (0X0070U)      /* External Interrupt 1 Mode Registers */
#define BITP_ALWAYS_ON_EI0CFG_IRQ1EN                          (7U)           /* External Interrupt 1 Enable Bit */
#define BITL_ALWAYS_ON_EI0CFG_IRQ1EN                          (1U)           /* External Interrupt 1 Enable Bit */
#define BITM_ALWAYS_ON_EI0CFG_IRQ1EN                          (0X0080U)      /* External Interrupt 1 Enable Bit */
#define BITP_ALWAYS_ON_EI0CFG_IRQ2MDE                         (8U)           /* External Interrupt 2 Mode Registers */
#define BITL_ALWAYS_ON_EI0CFG_IRQ2MDE                         (3U)           /* External Interrupt 2 Mode Registers */
#define BITM_ALWAYS_ON_EI0CFG_IRQ2MDE                         (0X0700U)      /* External Interrupt 2 Mode Registers */
#define BITP_ALWAYS_ON_EI0CFG_IRQ2EN                          (11U)          /* External Interrupt 2 Enable Bit */
#define BITL_ALWAYS_ON_EI0CFG_IRQ2EN                          (1U)           /* External Interrupt 2 Enable Bit */
#define BITM_ALWAYS_ON_EI0CFG_IRQ2EN                          (0X0800U)      /* External Interrupt 2 Enable Bit */
#define BITP_ALWAYS_ON_EI0CFG_IRQ3MDE                         (12U)          /* External Interrupt 3 Mode Registers */
#define BITL_ALWAYS_ON_EI0CFG_IRQ3MDE                         (3U)           /* External Interrupt 3 Mode Registers */
#define BITM_ALWAYS_ON_EI0CFG_IRQ3MDE                         (0X7000U)      /* External Interrupt 3 Mode Registers */
#define BITP_ALWAYS_ON_EI0CFG_IRQ3EN                          (15U)          /* External Interrupt 3 Enable Bit */
#define BITL_ALWAYS_ON_EI0CFG_IRQ3EN                          (1U)           /* External Interrupt 3 Enable Bit */
#define BITM_ALWAYS_ON_EI0CFG_IRQ3EN                          (0X8000U)      /* External Interrupt 3 Enable Bit */

#define ENUM_ALWAYS_ON_EI0CFG_IRQ3EN_DIS                      (0X0000U)      /* External Interrupt 3 Disabled */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ3EN_EN                       (0X0001U)      /* External Interrupt 3 Enabled */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ3MDE_RISE                    (0X0000U)      /* Rising Edge */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ3MDE_FALL                    (0X0001U)      /* Falling Edge */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ3MDE_RISEORFALL              (0X0002U)      /* Rising or Falling Edge */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ3MDE_HIGHLEVEL               (0X0003U)      /* High Level */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ3MDE_LOWLEVEL                (0X0004U)      /* Low Level */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ3MDE_FALLAUX                 (0X0005U)      /* Falling Edge (same as 001) */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ3MDE_RISEORFALLAUX           (0X0006U)      /* Rising or Falling Edge (same as 010) */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ3MDE_HIGHLEVELAUX            (0X0007U)      /* High Level (same as 011) */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ2EN_DIS                      (0X0000U)      /* External Interrupt 2 Disabled */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ2EN_EN                       (0X0001U)      /* External Interrupt 2 Enabled */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ2MDE_RISE                    (0X0000U)      /* Rising Edge */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ2MDE_FALL                    (0X0001U)      /* Falling Edge */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ2MDE_RISEORFALL              (0X0002U)      /* Rising or Falling Edge */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ2MDE_HIGHLEVEL               (0X0003U)      /* High Level */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ2MDE_LOWLEVEL                (0X0004U)      /* Low Level */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ2MDE_FALLAUX                 (0X0005U)      /* Falling Edge (same as 001) */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ2MDE_RISEORFALLAUX           (0X0006U)      /* Rising or Falling Edge (same as 010) */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ2MDE_HIGHLEVELAUX            (0X0007U)      /* High Level (same as 011) */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ1EN_DIS                      (0X0000U)      /* External Interrupt 0 Disabled */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ1EN_EN                       (0X0001U)      /* External Interrupt 0 Enabled */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ1MDE_RISE                    (0X0000U)      /* Rising Edge */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ1MDE_FALL                    (0X0001U)      /* Falling Edge */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ1MDE_RISEORFALL              (0X0002U)      /* Rising or Falling Edge */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ1MDE_HIGHLEVEL               (0X0003U)      /* High Level */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ1MDE_LOWLEVEL                (0X0004U)      /* Low Level */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ1MDE_FALLAUX                 (0X0005U)      /* Falling Edge (same as 001) */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ1MDE_RISEORFALLAUX           (0X0006U)      /* Rising or Falling Edge (same as 010) */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ1MDE_HIGHLEVELAUX            (0X0007U)      /* High Level (same as 011) */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ0EN_DIS                      (0X0000U)      /* External Interrupt 0 Disabled */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ0EN_EN                       (0X0001U)      /* External Interrupt 0 Enabled */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ0MDE_RISE                    (0X0000U)      /* Rising Edge */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ0MDE_FALL                    (0X0001U)      /* Falling Edge */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ0MDE_RISEORFALL              (0X0002U)      /* Rising or Falling Edge */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ0MDE_HIGHLEVEL               (0X0003U)      /* High Level */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ0MDE_LOWLEVEL                (0X0004U)      /* Low Level */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ0MDE_FALLAUX                 (0X0005U)      /* Falling Edge (same as 001) */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ0MDE_RISEORFALLAUX           (0X0006U)      /* Rising or Falling Edge (same as 010) */
#define ENUM_ALWAYS_ON_EI0CFG_IRQ0MDE_HIGHLEVELAUX            (0X0007U)      /* High Level (same as 011) */

/* ----------------------------------------------------------------------------------------------------
          EI1CFG                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ALWAYS_ON_EI1CFG_IRQ4MDE                         (0U)           /* External Interrupt 4 Mode Registers */
#define BITL_ALWAYS_ON_EI1CFG_IRQ4MDE                         (3U)           /* External Interrupt 4 Mode Registers */
#define BITM_ALWAYS_ON_EI1CFG_IRQ4MDE                         (0X0007U)      /* External Interrupt 4 Mode Registers */
#define BITP_ALWAYS_ON_EI1CFG_IRQ4EN                          (3U)           /* External Interrupt 4 Enable Bit */
#define BITL_ALWAYS_ON_EI1CFG_IRQ4EN                          (1U)           /* External Interrupt 4 Enable Bit */
#define BITM_ALWAYS_ON_EI1CFG_IRQ4EN                          (0X0008U)      /* External Interrupt 4 Enable Bit */
#define BITP_ALWAYS_ON_EI1CFG_IRQ5MDE                         (4U)           /* External Interrupt 5 Mode Registers */
#define BITL_ALWAYS_ON_EI1CFG_IRQ5MDE                         (3U)           /* External Interrupt 5 Mode Registers */
#define BITM_ALWAYS_ON_EI1CFG_IRQ5MDE                         (0X0070U)      /* External Interrupt 5 Mode Registers */
#define BITP_ALWAYS_ON_EI1CFG_IRQ5EN                          (7U)           /* External Interrupt 5 Enable Bit */
#define BITL_ALWAYS_ON_EI1CFG_IRQ5EN                          (1U)           /* External Interrupt 5 Enable Bit */
#define BITM_ALWAYS_ON_EI1CFG_IRQ5EN                          (0X0080U)      /* External Interrupt 5 Enable Bit */
#define BITP_ALWAYS_ON_EI1CFG_IRQ6MDE                         (8U)           /* External Interrupt 6 Mode Registers */
#define BITL_ALWAYS_ON_EI1CFG_IRQ6MDE                         (3U)           /* External Interrupt 6 Mode Registers */
#define BITM_ALWAYS_ON_EI1CFG_IRQ6MDE                         (0X0700U)      /* External Interrupt 6 Mode Registers */
#define BITP_ALWAYS_ON_EI1CFG_IRQ6EN                          (11U)          /* External Interrupt 6 Enable Bit */
#define BITL_ALWAYS_ON_EI1CFG_IRQ6EN                          (1U)           /* External Interrupt 6 Enable Bit */
#define BITM_ALWAYS_ON_EI1CFG_IRQ6EN                          (0X0800U)      /* External Interrupt 6 Enable Bit */
#define BITP_ALWAYS_ON_EI1CFG_IRQ7MDE                         (12U)          /* External Interrupt 7 Mode Registers */
#define BITL_ALWAYS_ON_EI1CFG_IRQ7MDE                         (3U)           /* External Interrupt 7 Mode Registers */
#define BITM_ALWAYS_ON_EI1CFG_IRQ7MDE                         (0X7000U)      /* External Interrupt 7 Mode Registers */
#define BITP_ALWAYS_ON_EI1CFG_IRQ7EN                          (15U)          /* External Interrupt 7 Enable Bit */
#define BITL_ALWAYS_ON_EI1CFG_IRQ7EN                          (1U)           /* External Interrupt 7 Enable Bit */
#define BITM_ALWAYS_ON_EI1CFG_IRQ7EN                          (0X8000U)      /* External Interrupt 7 Enable Bit */

#define ENUM_ALWAYS_ON_EI1CFG_IRQ7EN_DIS                      (0X0000U)      /* External Interrupt 7 Disabled */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ7EN_EN                       (0X0001U)      /* External Interrupt 7 Enabled */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ7MDE_RISE                    (0X0000U)      /* Rising Edge */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ7MDE_FALL                    (0X0001U)      /* Falling Edge */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ7MDE_RISEORFALL              (0X0002U)      /* Rising or Falling Edge */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ7MDE_HIGHLEVEL               (0X0003U)      /* High Level */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ7MDE_LOWLEVEL                (0X0004U)      /* Low Level */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ7MDE_FALLAUX                 (0X0005U)      /* Falling Edge (same as 001) */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ7MDE_RISEORFALLAUX           (0X0006U)      /* Rising or Falling Edge (same as 010) */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ7MDE_HIGHLEVELAUX            (0X0007U)      /* High Level (same as 011) */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ6EN_DIS                      (0X0000U)      /* External Interrupt 6 Disabled */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ6EN_EN                       (0X0001U)      /* External Interrupt 6 Enabled */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ6MDE_RISE                    (0X0000U)      /* Rising Edge */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ6MDE_FALL                    (0X0001U)      /* Falling Edge */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ6MDE_RISEORFALL              (0X0002U)      /* Rising or Falling Edge */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ6MDE_HIGHLEVEL               (0X0003U)      /* High Level */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ6MDE_LOWLEVEL                (0X0004U)      /* Low Level */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ6MDE_FALLAUX                 (0X0005U)      /* Falling Edge (same as 001) */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ6MDE_RISEORFALLAUX           (0X0006U)      /* Rising or Falling Edge (same as 010) */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ6MDE_HIGHLEVELAUX            (0X0007U)      /* High Level (same as 011) */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ5EN_DIS                      (0X0000U)      /* External Interrupt 5 Disabled */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ5EN_EN                       (0X0001U)      /* External Interrupt 5 Enabled */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ5MDE_RISING                  (0X0000U)      /* Rising Edge */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ5MDE_FALLING                 (0X0001U)      /* Falling Edge */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ5MDE_RISEORFALL              (0X0002U)      /* Rising or Falling Edge */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ5MDE_HIGHLEVEL               (0X0003U)      /* High Level */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ5MDE_LOWLEVEL                (0X0004U)      /* Low Level */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ5MDE_FALLAUX                 (0X0005U)      /* Falling Edge (same as 001) */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ5MDE_RISEORFALLAUX           (0X0006U)      /* Rising or Falling Edge (same as 010) */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ5MDE_HIGHLEVELAUX            (0X0007U)      /* High Level (same as 011) */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ4EN_DIS                      (0X0000U)      /* External Interrupt 4 Disabled */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ4EN_EN                       (0X0001U)      /* External Interrupt 4 Enabled */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ4MDE_RISE                    (0X0000U)      /* Rising Edge */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ4MDE_FALL                    (0X0001U)      /* Falling Edge */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ4MDE_RISEORFALL              (0X0002U)      /* Rising or Falling Edge */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ4MDE_HIGHLEVEL               (0X0003U)      /* High Level */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ4MDE_LOWLEVEL                (0X0004U)      /* Low Level */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ4MDE_FALLAUX                 (0X0005U)      /* Falling Edge (same as 001) */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ4MDE_RISEORFALLAUX           (0X0006U)      /* Rising or Falling Edge (same as 010) */
#define ENUM_ALWAYS_ON_EI1CFG_IRQ4MDE_HIGHLEVELAUX            (0X0007U)      /* High Level (same as 011) */

/* ----------------------------------------------------------------------------------------------------
          EI2CFG                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ALWAYS_ON_EI2CFG_IRQ8MDE                         (0U)           /* External Interrupt 8 Mode Registers */
#define BITL_ALWAYS_ON_EI2CFG_IRQ8MDE                         (3U)           /* External Interrupt 8 Mode Registers */
#define BITM_ALWAYS_ON_EI2CFG_IRQ8MDE                         (0X0007U)      /* External Interrupt 8 Mode Registers */
#define BITP_ALWAYS_ON_EI2CFG_IRQ8EN                          (3U)           /* External Interrupt 8 Enable Bit */
#define BITL_ALWAYS_ON_EI2CFG_IRQ8EN                          (1U)           /* External Interrupt 8 Enable Bit */
#define BITM_ALWAYS_ON_EI2CFG_IRQ8EN                          (0X0008U)      /* External Interrupt 8 Enable Bit */
#define BITP_ALWAYS_ON_EI2CFG_IRQ9MDE                         (4U)           /* External Interrupt 8 Mode Registers */
#define BITL_ALWAYS_ON_EI2CFG_IRQ9MDE                         (3U)           /* External Interrupt 8 Mode Registers */
#define BITM_ALWAYS_ON_EI2CFG_IRQ9MDE                         (0X0070U)      /* External Interrupt 8 Mode Registers */
#define BITP_ALWAYS_ON_EI2CFG_IRQ9EN                          (7U)           /* External Interrupt 8 Enable Bit */
#define BITL_ALWAYS_ON_EI2CFG_IRQ9EN                          (1U)           /* External Interrupt 8 Enable Bit */
#define BITM_ALWAYS_ON_EI2CFG_IRQ9EN                          (0X0080U)      /* External Interrupt 8 Enable Bit */

#define ENUM_ALWAYS_ON_EI2CFG_IRQ9EN_DIS                      (0X0000U)      /* External Interrupt 8 Disabled */
#define ENUM_ALWAYS_ON_EI2CFG_IRQ9EN_EN                       (0X0001U)      /* External Interrupt 8 Enabled */
#define ENUM_ALWAYS_ON_EI2CFG_IRQ9MDE_RISE                    (0X0000U)      /* Rising Edge */
#define ENUM_ALWAYS_ON_EI2CFG_IRQ9MDE_FALL                    (0X0001U)      /* Falling Edge */
#define ENUM_ALWAYS_ON_EI2CFG_IRQ9MDE_RISEORFALL              (0X0002U)      /* Rising or Falling Edge */
#define ENUM_ALWAYS_ON_EI2CFG_IRQ9MDE_HIGHLEVEL               (0X0003U)      /* High Level */
#define ENUM_ALWAYS_ON_EI2CFG_IRQ9MDE_LOWLEVEL                (0X0004U)      /* Low Level */
#define ENUM_ALWAYS_ON_EI2CFG_IRQ9MDE_FALLAUX                 (0X0005U)      /* Falling Edge (same as 001) */
#define ENUM_ALWAYS_ON_EI2CFG_IRQ9MDE_RISEORFALLAUX           (0X0006U)      /* Rising or Falling Edge (same as 010) */
#define ENUM_ALWAYS_ON_EI2CFG_IRQ9MDE_HIGHLEVELAUX            (0X0007U)      /* High Level (same as 011) */
#define ENUM_ALWAYS_ON_EI2CFG_IRQ8EN_DIS                      (0X0000U)      /* External Interrupt 8 Disabled */
#define ENUM_ALWAYS_ON_EI2CFG_IRQ8EN_EN                       (0X0001U)      /* External Interrupt 8 Enabled */
#define ENUM_ALWAYS_ON_EI2CFG_IRQ8MDE_RISE                    (0X0000U)      /* Rising Edge */
#define ENUM_ALWAYS_ON_EI2CFG_IRQ8MDE_FALL                    (0X0001U)      /* Falling Edge */
#define ENUM_ALWAYS_ON_EI2CFG_IRQ8MDE_RISEORFALL              (0X0002U)      /* Rising or Falling Edge */
#define ENUM_ALWAYS_ON_EI2CFG_IRQ8MDE_HIGHLEVEL               (0X0003U)      /* High Level */
#define ENUM_ALWAYS_ON_EI2CFG_IRQ8MDE_LOWLEVEL                (0X0004U)      /* Low Level */
#define ENUM_ALWAYS_ON_EI2CFG_IRQ8MDE_FALLAUX                 (0X0005U)      /* Falling Edge (same as 001) */
#define ENUM_ALWAYS_ON_EI2CFG_IRQ8MDE_RISEORFALLAUX           (0X0006U)      /* Rising or Falling Edge (same as 010) */
#define ENUM_ALWAYS_ON_EI2CFG_IRQ8MDE_HIGHLEVELAUX            (0X0007U)      /* High Level (same as 011) */

/* ----------------------------------------------------------------------------------------------------
          EICLR                                                 Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ALWAYS_ON_EICLR_IRQ0                             (0U)           /* External Interrupt 0 */
#define BITL_ALWAYS_ON_EICLR_IRQ0                             (1U)           /* External Interrupt 0 */
#define BITM_ALWAYS_ON_EICLR_IRQ0                             (0X0001U)      /* External Interrupt 0 */
#define BITP_ALWAYS_ON_EICLR_IRQ1                             (1U)           /* External Interrupt 1 */
#define BITL_ALWAYS_ON_EICLR_IRQ1                             (1U)           /* External Interrupt 1 */
#define BITM_ALWAYS_ON_EICLR_IRQ1                             (0X0002U)      /* External Interrupt 1 */
#define BITP_ALWAYS_ON_EICLR_IRQ2                             (2U)           /* External Interrupt 2 */
#define BITL_ALWAYS_ON_EICLR_IRQ2                             (1U)           /* External Interrupt 2 */
#define BITM_ALWAYS_ON_EICLR_IRQ2                             (0X0004U)      /* External Interrupt 2 */
#define BITP_ALWAYS_ON_EICLR_IRQ3                             (3U)           /* External Interrupt 3 */
#define BITL_ALWAYS_ON_EICLR_IRQ3                             (1U)           /* External Interrupt 3 */
#define BITM_ALWAYS_ON_EICLR_IRQ3                             (0X0008U)      /* External Interrupt 3 */
#define BITP_ALWAYS_ON_EICLR_IRQ4                             (4U)           /* External Interrupt 4 */
#define BITL_ALWAYS_ON_EICLR_IRQ4                             (1U)           /* External Interrupt 4 */
#define BITM_ALWAYS_ON_EICLR_IRQ4                             (0X0010U)      /* External Interrupt 4 */
#define BITP_ALWAYS_ON_EICLR_IRQ5                             (5U)           /* External Interrupt 5 */
#define BITL_ALWAYS_ON_EICLR_IRQ5                             (1U)           /* External Interrupt 5 */
#define BITM_ALWAYS_ON_EICLR_IRQ5                             (0X0020U)      /* External Interrupt 5 */
#define BITP_ALWAYS_ON_EICLR_IRQ6                             (6U)           /* External Interrupt 6 */
#define BITL_ALWAYS_ON_EICLR_IRQ6                             (1U)           /* External Interrupt 6 */
#define BITM_ALWAYS_ON_EICLR_IRQ6                             (0X0040U)      /* External Interrupt 6 */
#define BITP_ALWAYS_ON_EICLR_IRQ7                             (7U)           /* External Interrupt 7 */
#define BITL_ALWAYS_ON_EICLR_IRQ7                             (1U)           /* External Interrupt 7 */
#define BITM_ALWAYS_ON_EICLR_IRQ7                             (0X0080U)      /* External Interrupt 7 */
#define BITP_ALWAYS_ON_EICLR_IRQ8                             (8U)           /* External Interrupt 8 */
#define BITL_ALWAYS_ON_EICLR_IRQ8                             (1U)           /* External Interrupt 8 */
#define BITM_ALWAYS_ON_EICLR_IRQ8                             (0X0100U)      /* External Interrupt 8 */
#define BITP_ALWAYS_ON_EICLR_IRQ9                             (9U)           /* External Interrupt 9 */
#define BITL_ALWAYS_ON_EICLR_IRQ9                             (1U)           /* External Interrupt 9 */
#define BITM_ALWAYS_ON_EICLR_IRQ9                             (0X0200U)      /* External Interrupt 9 */

#define ENUM_ALWAYS_ON_EICLR_IRQ9_NOTCLR                      (0X0000U)      /* No description provided */
#define ENUM_ALWAYS_ON_EICLR_IRQ9_CLR                         (0X0001U)      /* No description provided */
#define ENUM_ALWAYS_ON_EICLR_IRQ8_NOTCLR                      (0X0000U)      /* No description provided */
#define ENUM_ALWAYS_ON_EICLR_IRQ8_CLR                         (0X0001U)      /* No description provided */
#define ENUM_ALWAYS_ON_EICLR_IRQ7_NOTCLR                      (0X0000U)      /* No description provided */
#define ENUM_ALWAYS_ON_EICLR_IRQ7_CLR                         (0X0001U)      /* No description provided */
#define ENUM_ALWAYS_ON_EICLR_IRQ6_NOTCLR                      (0X0000U)      /* No description provided */
#define ENUM_ALWAYS_ON_EICLR_IRQ6_CLR                         (0X0001U)      /* No description provided */
#define ENUM_ALWAYS_ON_EICLR_IRQ5_NOTCLR                      (0X0000U)      /* No description provided */
#define ENUM_ALWAYS_ON_EICLR_IRQ5_CLR                         (0X0001U)      /* No description provided */
#define ENUM_ALWAYS_ON_EICLR_IRQ4_NOTCLR                      (0X0000U)      /* No description provided */
#define ENUM_ALWAYS_ON_EICLR_IRQ4_CLR                         (0X0001U)      /* No description provided */
#define ENUM_ALWAYS_ON_EICLR_IRQ3_NOTCLR                      (0X0000U)      /* No description provided */
#define ENUM_ALWAYS_ON_EICLR_IRQ3_CLR                         (0X0001U)      /* No description provided */
#define ENUM_ALWAYS_ON_EICLR_IRQ2_NOTCLR                      (0X0000U)      /* No description provided */
#define ENUM_ALWAYS_ON_EICLR_IRQ2_CLR                         (0X0001U)      /* No description provided */
#define ENUM_ALWAYS_ON_EICLR_IRQ1_NOTCLR                      (0X0000U)      /* No description provided */
#define ENUM_ALWAYS_ON_EICLR_IRQ1_CLR                         (0X0001U)      /* No description provided */
#define ENUM_ALWAYS_ON_EICLR_IRQ0_NOTCLR                      (0X0000U)      /* No description provided */
#define ENUM_ALWAYS_ON_EICLR_IRQ0_CLR                         (0X0001U)      /* No description provided */

/* ----------------------------------------------------------------------------------------------------
          RSTSTA                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ALWAYS_ON_RSTSTA_POR                             (0U)           /* Power-on Reset */
#define BITL_ALWAYS_ON_RSTSTA_POR                             (1U)           /* Power-on Reset */
#define BITM_ALWAYS_ON_RSTSTA_POR                             (0X0001U)      /* Power-on Reset */
#define BITP_ALWAYS_ON_RSTSTA_EXTRST                          (1U)           /* External Reset */
#define BITL_ALWAYS_ON_RSTSTA_EXTRST                          (1U)           /* External Reset */
#define BITM_ALWAYS_ON_RSTSTA_EXTRST                          (0X0002U)      /* External Reset */
#define BITP_ALWAYS_ON_RSTSTA_WDRST                           (2U)           /* Watchdog Timeout */
#define BITL_ALWAYS_ON_RSTSTA_WDRST                           (1U)           /* Watchdog Timeout */
#define BITM_ALWAYS_ON_RSTSTA_WDRST                           (0X0004U)      /* Watchdog Timeout */
#define BITP_ALWAYS_ON_RSTSTA_SWRST                           (3U)           /* Software Reset */
#define BITL_ALWAYS_ON_RSTSTA_SWRST                           (1U)           /* Software Reset */
#define BITM_ALWAYS_ON_RSTSTA_SWRST                           (0X0008U)      /* Software Reset */

#endif  /* end ifndef ALWAYS_ON_ADDR_RDEF_H_ */


#ifndef PLA_ADDR_RDEF_H_
#define PLA_ADDR_RDEF_H_    /* PLA: PLA Register Map */

/* ====================================================================================================
        PLA Module Instances Address and Mask Definitions
   ==================================================================================================== */
#define INST_PLA                                                 (0X40006000U)    /* pla: */

#define MASK_PLA                                                 (0XFFFFFFFFU)    /* PLA: PLA Register Map */

/* ====================================================================================================
        PLA Module Register Address Offset Definitions
   ==================================================================================================== */
#define IDX_PLA_PLA_ELEM0                                       (0X00000000U)    /* ELEMx Configuration Register */
#define IDX_PLA_PLA_ELEM1                                       (0X00000004U)    /* ELEMx Configuration Register */
#define IDX_PLA_PLA_ELEM2                                       (0X00000008U)    /* ELEMx Configuration Register */
#define IDX_PLA_PLA_ELEM3                                       (0X0000000CU)    /* ELEMx Configuration Register */
#define IDX_PLA_PLA_ELEM4                                       (0X00000010U)    /* ELEMx Configuration Register */
#define IDX_PLA_PLA_ELEM5                                       (0X00000014U)    /* ELEMx Configuration Register */
#define IDX_PLA_PLA_ELEM6                                       (0X00000018U)    /* ELEMx Configuration Register */
#define IDX_PLA_PLA_ELEM7                                       (0X0000001CU)    /* ELEMx Configuration Register */
#define IDX_PLA_PLA_ELEM8                                       (0X00000020U)    /* ELEMx Configuration Register */
#define IDX_PLA_PLA_ELEM9                                       (0X00000024U)    /* ELEMx Configuration Register */
#define IDX_PLA_PLA_ELEM10                                      (0X00000028U)    /* ELEMx Configuration Register */
#define IDX_PLA_PLA_ELEM11                                      (0X0000002CU)    /* ELEMx Configuration Register */
#define IDX_PLA_PLA_ELEM12                                      (0X00000030U)    /* ELEMx Configuration Register */
#define IDX_PLA_PLA_ELEM13                                      (0X00000034U)    /* ELEMx Configuration Register */
#define IDX_PLA_PLA_ELEM14                                      (0X00000038U)    /* ELEMx Configuration Register */
#define IDX_PLA_PLA_ELEM15                                      (0X0000003CU)    /* ELEMx Configuration Register */
#define IDX_PLA_PLA_ELEM16                                      (0X00000040U)    /* ELEMx Configuration Register */
#define IDX_PLA_PLA_ELEM17                                      (0X00000044U)    /* ELEMx Configuration Register */
#define IDX_PLA_PLA_ELEM18                                      (0X00000048U)    /* ELEMx Configuration Register */
#define IDX_PLA_PLA_ELEM19                                      (0X0000004CU)    /* ELEMx Configuration Register */
#define IDX_PLA_PLA_ELEM20                                      (0X00000050U)    /* ELEMx Configuration Register */
#define IDX_PLA_PLA_ELEM21                                      (0X00000054U)    /* ELEMx Configuration Register */
#define IDX_PLA_PLA_ELEM22                                      (0X00000058U)    /* ELEMx Configuration Register */
#define IDX_PLA_PLA_ELEM23                                      (0X0000005CU)    /* ELEMx Configuration Register */
#define IDX_PLA_PLA_ELEM24                                      (0X00000060U)    /* ELEMx Configuration Register */
#define IDX_PLA_PLA_ELEM25                                      (0X00000064U)    /* ELEMx Configuration Register */
#define IDX_PLA_PLA_ELEM26                                      (0X00000068U)    /* ELEMx Configuration Register */
#define IDX_PLA_PLA_ELEM27                                      (0X0000006CU)    /* ELEMx Configuration Register */
#define IDX_PLA_PLA_ELEM28                                      (0X00000070U)    /* ELEMx Configuration Register */
#define IDX_PLA_PLA_ELEM29                                      (0X00000074U)    /* ELEMx Configuration Register */
#define IDX_PLA_PLA_ELEM30                                      (0X00000078U)    /* ELEMx Configuration Register */
#define IDX_PLA_PLA_ELEM31                                      (0X0000007CU)    /* ELEMx Configuration Register */
#define IDX_PLA_PLA_CLK                                         (0X00000080U)    /* PLA Clock Select */
#define IDX_PLA_PLA_IRQ0                                        (0X00000084U)    /* Interrupt Register for Block 0 */
#define IDX_PLA_PLA_IRQ1                                        (0X00000088U)    /* Interrupt Register for Block1 */
#define IDX_PLA_PLA_ADC                                         (0X0000008CU)    /* ADC Configuration Register */
#define IDX_PLA_PLA_DIN0                                        (0X00000090U)    /* AMBA Bus Data Input for Block 0 */
#define IDX_PLA_PLA_DOUT0                                       (0X00000098U)    /* AMBA Bus Data Output for Block 0 */
#define IDX_PLA_PLA_DOUT1                                       (0X0000009CU)    /* AMBA Bus Data Output for Block1 */
#define IDX_PLA_PLA_LCK                                         (0X000000A0U)    /* Write Lock Register. */
#define IDX_PLA_PLA_IRQTYPE                                     (0X000000A4U)    /* PLA Interrupt Request and DMA Request Type */

/* ====================================================================================================
        PLA Module Register ResetValue Definitions
   ==================================================================================================== */
#define RSTVAL_PLA_PLA_ELEM0                                       (0X0) 
#define RSTVAL_PLA_PLA_ELEM1                                       (0X0) 
#define RSTVAL_PLA_PLA_ELEM2                                       (0X0) 
#define RSTVAL_PLA_PLA_ELEM3                                       (0X0) 
#define RSTVAL_PLA_PLA_ELEM4                                       (0X0) 
#define RSTVAL_PLA_PLA_ELEM5                                       (0X0) 
#define RSTVAL_PLA_PLA_ELEM6                                       (0X0) 
#define RSTVAL_PLA_PLA_ELEM7                                       (0X0) 
#define RSTVAL_PLA_PLA_ELEM8                                       (0X0) 
#define RSTVAL_PLA_PLA_ELEM9                                       (0X0) 
#define RSTVAL_PLA_PLA_ELEM10                                      (0X0) 
#define RSTVAL_PLA_PLA_ELEM11                                      (0X0) 
#define RSTVAL_PLA_PLA_ELEM12                                      (0X0) 
#define RSTVAL_PLA_PLA_ELEM13                                      (0X0) 
#define RSTVAL_PLA_PLA_ELEM14                                      (0X0) 
#define RSTVAL_PLA_PLA_ELEM15                                      (0X0) 
#define RSTVAL_PLA_PLA_ELEM16                                      (0X0) 
#define RSTVAL_PLA_PLA_ELEM17                                      (0X0) 
#define RSTVAL_PLA_PLA_ELEM18                                      (0X0) 
#define RSTVAL_PLA_PLA_ELEM19                                      (0X0) 
#define RSTVAL_PLA_PLA_ELEM20                                      (0X0) 
#define RSTVAL_PLA_PLA_ELEM21                                      (0X0) 
#define RSTVAL_PLA_PLA_ELEM22                                      (0X0) 
#define RSTVAL_PLA_PLA_ELEM23                                      (0X0) 
#define RSTVAL_PLA_PLA_ELEM24                                      (0X0) 
#define RSTVAL_PLA_PLA_ELEM25                                      (0X0) 
#define RSTVAL_PLA_PLA_ELEM26                                      (0X0) 
#define RSTVAL_PLA_PLA_ELEM27                                      (0X0) 
#define RSTVAL_PLA_PLA_ELEM28                                      (0X0) 
#define RSTVAL_PLA_PLA_ELEM29                                      (0X0) 
#define RSTVAL_PLA_PLA_ELEM30                                      (0X0) 
#define RSTVAL_PLA_PLA_ELEM31                                      (0X0) 
#define RSTVAL_PLA_PLA_CLK                                         (0X0) 
#define RSTVAL_PLA_PLA_IRQ0                                        (0X0) 
#define RSTVAL_PLA_PLA_IRQ1                                        (0X0) 
#define RSTVAL_PLA_PLA_ADC                                         (0X0) 
#define RSTVAL_PLA_PLA_DIN0                                        (0X0) 
#define RSTVAL_PLA_PLA_DOUT0                                       (0X0) 
#define RSTVAL_PLA_PLA_DOUT1                                       (0X0) 
#define RSTVAL_PLA_PLA_LCK                                         (0X0) 
#define RSTVAL_PLA_PLA_IRQTYPE                                     (0X0) 

/* ====================================================================================================
        PLA Module Register BitPositions, Lengths, Masks and Enumerations Definitions
   ==================================================================================================== */

/* ----------------------------------------------------------------------------------------------------
          PLA_ELEM0                                             Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PLA_PLA_ELEM_N__MUX4                             (0U)           /* Select or Bypass Flip-flop Output */
#define BITL_PLA_PLA_ELEM_N__MUX4                             (1U)           /* Select or Bypass Flip-flop Output */
#define BITM_PLA_PLA_ELEM_N__MUX4                             (0X0001U)      /* Select or Bypass Flip-flop Output */
#define BITP_PLA_PLA_ELEM_N__TBL                              (1U)           /* Configures Output */
#define BITL_PLA_PLA_ELEM_N__TBL                              (4U)           /* Configures Output */
#define BITM_PLA_PLA_ELEM_N__TBL                              (0X001EU)      /* Configures Output */
#define BITP_PLA_PLA_ELEM_N__MUX3                             (5U)           /* Mux Between GPIO Bus Input or Odd Feedback Input */
#define BITL_PLA_PLA_ELEM_N__MUX3                             (1U)           /* Mux Between GPIO Bus Input or Odd Feedback Input */
#define BITM_PLA_PLA_ELEM_N__MUX3                             (0X0020U)      /* Mux Between GPIO Bus Input or Odd Feedback Input */
#define BITP_PLA_PLA_ELEM_N__MUX2                             (6U)           /* Mux Between PLA_DINx Register/Block0 Output or Even Feedback */
#define BITL_PLA_PLA_ELEM_N__MUX2                             (1U)           /* Mux Between PLA_DINx Register/Block0 Output or Even Feedback */
#define BITM_PLA_PLA_ELEM_N__MUX2                             (0X0040U)      /* Mux Between PLA_DINx Register/Block0 Output or Even Feedback */
#define BITP_PLA_PLA_ELEM_N__MUX1                             (7U)           /* Mux for Odd Element Feedback (In Respective Block) */
#define BITL_PLA_PLA_ELEM_N__MUX1                             (3U)           /* Mux for Odd Element Feedback (In Respective Block) */
#define BITM_PLA_PLA_ELEM_N__MUX1                             (0X0380U)      /* Mux for Odd Element Feedback (In Respective Block) */
#define BITP_PLA_PLA_ELEM_N__MUX0                             (10U)          /* Mux for Even Element Feedback(in Respective Block) */
#define BITL_PLA_PLA_ELEM_N__MUX0                             (3U)           /* Mux for Even Element Feedback(in Respective Block) */
#define BITM_PLA_PLA_ELEM_N__MUX0                             (0X1C00U)      /* Mux for Even Element Feedback(in Respective Block) */

#define ENUM_PLA_PLA_ELEM_N__MUX0_ELEM0                       (0X0000U)      /* Feedback from Element 0 (all Except Element 0) / Input from Other Block (Element 0 Only) */
#define ENUM_PLA_PLA_ELEM_N__MUX0_ELEM2                       (0X0001U)      /* Feedback from Element 2 */
#define ENUM_PLA_PLA_ELEM_N__MUX0_ELEM4                       (0X0002U)      /* Feedback from Element 4 */
#define ENUM_PLA_PLA_ELEM_N__MUX0_ELEM6                       (0X0003U)      /* Feedback from Element 6 */
#define ENUM_PLA_PLA_ELEM_N__MUX0_ELEM8                       (0X0004U)      /* Feedback from Element 8 */
#define ENUM_PLA_PLA_ELEM_N__MUX0_ELEM10                      (0X0005U)      /* Feedback from Element 10 */
#define ENUM_PLA_PLA_ELEM_N__MUX0_ELEM12                      (0X0006U)      /* Feedback from Element 12 */
#define ENUM_PLA_PLA_ELEM_N__MUX0_ELEM14                      (0X0007U)      /* Feedback from Element 14 */
#define ENUM_PLA_PLA_ELEM_N__MUX1_ELEM1                       (0X0000U)      /* Feedback from Element 1 */
#define ENUM_PLA_PLA_ELEM_N__MUX1_ELEM3                       (0X0001U)      /* Feedback from Element 3 */
#define ENUM_PLA_PLA_ELEM_N__MUX1_ELEM5                       (0X0002U)      /* Feedback from Element 5 */
#define ENUM_PLA_PLA_ELEM_N__MUX1_ELEM7                       (0X0003U)      /* Feedback from Element 7 */
#define ENUM_PLA_PLA_ELEM_N__MUX1_ELEM9                       (0X0004U)      /* Feedback from Element 9 */
#define ENUM_PLA_PLA_ELEM_N__MUX1_ELEM11                      (0X0005U)      /* Feedback from Element 11 */
#define ENUM_PLA_PLA_ELEM_N__MUX1_ELEM13                      (0X0006U)      /* Feedback from Element 13 */
#define ENUM_PLA_PLA_ELEM_N__MUX1_ELEM15                      (0X0007U)      /* Feedback from Element 15 */
#define ENUM_PLA_PLA_ELEM_N__MUX2_MMR                         (0X0000U)      /* PLA_DINx Input */
#define ENUM_PLA_PLA_ELEM_N__MUX2_EVEN                        (0X0001U)      /* Even Feedback Mux */
#define ENUM_PLA_PLA_ELEM_N__MUX3_ODD                         (0X0000U)      /* Odd Feedback Mux */
#define ENUM_PLA_PLA_ELEM_N__MUX3_GPIO                        (0X0001U)      /* GPIO Input */
#define ENUM_PLA_PLA_ELEM_N__TBL_LOW                          (0X0000U)      /* 0. */
#define ENUM_PLA_PLA_ELEM_N__TBL_FUN_NOR                      (0X0001U)      /* NOR. */
#define ENUM_PLA_PLA_ELEM_N__TBL_BANDNOTA                     (0X0002U)      /* B and Not A. */
#define ENUM_PLA_PLA_ELEM_N__TBL_NOTA                         (0X0003U)      /* NOT A. */
#define ENUM_PLA_PLA_ELEM_N__TBL_AANDNOTB                     (0X0004U)      /* A and Not B. */
#define ENUM_PLA_PLA_ELEM_N__TBL_NOTB                         (0X0005U)      /* Not B. */
#define ENUM_PLA_PLA_ELEM_N__TBL_EXOR                         (0X0006U)      /* EXOR. */
#define ENUM_PLA_PLA_ELEM_N__TBL_FUN_NAND                     (0X0007U)      /* NAND. */
#define ENUM_PLA_PLA_ELEM_N__TBL_FUN_AND                      (0X0008U)      /* AND. */
#define ENUM_PLA_PLA_ELEM_N__TBL_EXNOR                        (0X0009U)      /* EXNOR. */
#define ENUM_PLA_PLA_ELEM_N__TBL_B                            (0X000AU)      /* B. */
#define ENUM_PLA_PLA_ELEM_N__TBL_BORNOTA                      (0X000BU)      /* B or Not A. */
#define ENUM_PLA_PLA_ELEM_N__TBL_A                            (0X000CU)      /* A. */
#define ENUM_PLA_PLA_ELEM_N__TBL_AORNOTB                      (0X000DU)      /* A or Not B. */
#define ENUM_PLA_PLA_ELEM_N__TBL_FUN_OR                       (0X000EU)      /* OR */
#define ENUM_PLA_PLA_ELEM_N__TBL_HIGH                         (0X000FU)      /* 1. */
#define ENUM_PLA_PLA_ELEM_N__MUX4_FF                          (0X0000U)      /* FF Output */
#define ENUM_PLA_PLA_ELEM_N__MUX4_BYPASS                      (0X0001U)      /* Bypass Output */

/* ----------------------------------------------------------------------------------------------------
          PLA_CLK                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PLA_PLA_CLK_BLOCK0                               (0U)           /* Clock Select for Block 0 */
#define BITL_PLA_PLA_CLK_BLOCK0                               (3U)           /* Clock Select for Block 0 */
#define BITM_PLA_PLA_CLK_BLOCK0                               (0X0007U)      /* Clock Select for Block 0 */
#define BITP_PLA_PLA_CLK_BLOCK1                               (4U)           /* Clock Select for Block 1 */
#define BITL_PLA_PLA_CLK_BLOCK1                               (3U)           /* Clock Select for Block 1 */
#define BITM_PLA_PLA_CLK_BLOCK1                               (0X0070U)      /* Clock Select for Block 1 */

#define ENUM_PLA_PLA_CLK_BLOCK1_PLACLK0                       (0X0000U)      /* GPIO Clock 0 */
#define ENUM_PLA_PLA_CLK_BLOCK1_PLACLK1                       (0X0001U)      /* GPIO Clock 1 */
#define ENUM_PLA_PLA_CLK_BLOCK1_PLACLK2                       (0X0002U)      /* GPIO Clock 2 */
#define ENUM_PLA_PLA_CLK_BLOCK1_PCLK0                         (0X0003U)      /* PCLK0 */
#define ENUM_PLA_PLA_CLK_BLOCK1_MOSC                          (0X0004U)      /* MOSC (16 MHz) */
#define ENUM_PLA_PLA_CLK_BLOCK1_T0                            (0X0005U)      /* Timer 0 */
#define ENUM_PLA_PLA_CLK_BLOCK1_T2                            (0X0006U)      /* Timer 2 */
#define ENUM_PLA_PLA_CLK_BLOCK1_KOSC                          (0X0007U)      /* KOSC (32 KHz) */
#define ENUM_PLA_PLA_CLK_BLOCK0_PLACLK0                       (0X0000U)      /* GPIO Clock 0 */
#define ENUM_PLA_PLA_CLK_BLOCK0_PLACLK1                       (0X0001U)      /* GPIO Clock 1 */
#define ENUM_PLA_PLA_CLK_BLOCK0_PLACLK2                       (0X0002U)      /* GPIO Clock 2 */
#define ENUM_PLA_PLA_CLK_BLOCK0_PCLK0                         (0X0003U)      /* PCLK0 */
#define ENUM_PLA_PLA_CLK_BLOCK0_MOSC                          (0X0004U)      /* MOSC (16 MHz) */
#define ENUM_PLA_PLA_CLK_BLOCK0_T0                            (0X0005U)      /* Timer 0 */
#define ENUM_PLA_PLA_CLK_BLOCK0_T2                            (0X0006U)      /* Timer 2 */
#define ENUM_PLA_PLA_CLK_BLOCK0_KOSC                          (0X0007U)      /* KOSC (32 KHz) */

/* ----------------------------------------------------------------------------------------------------
          PLA_IRQ0                                              Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PLA_PLA_IRQ0_IRQ0_SRC                            (0U)           /* IRQ0 Source Select */
#define BITL_PLA_PLA_IRQ0_IRQ0_SRC                            (4U)           /* IRQ0 Source Select */
#define BITM_PLA_PLA_IRQ0_IRQ0_SRC                            (0X000FU)      /* IRQ0 Source Select */
#define BITP_PLA_PLA_IRQ0_IRQ0_EN                             (4U)           /* IRQ0 Enable */
#define BITL_PLA_PLA_IRQ0_IRQ0_EN                             (1U)           /* IRQ0 Enable */
#define BITM_PLA_PLA_IRQ0_IRQ0_EN                             (0X0010U)      /* IRQ0 Enable */
#define BITP_PLA_PLA_IRQ0_IRQ1_SRC                            (8U)           /* IRQ1 Source Select */
#define BITL_PLA_PLA_IRQ0_IRQ1_SRC                            (4U)           /* IRQ1 Source Select */
#define BITM_PLA_PLA_IRQ0_IRQ1_SRC                            (0X0F00U)      /* IRQ1 Source Select */
#define BITP_PLA_PLA_IRQ0_IRQ1_EN                             (12U)          /* IRQ1 Enable */
#define BITL_PLA_PLA_IRQ0_IRQ1_EN                             (1U)           /* IRQ1 Enable */
#define BITM_PLA_PLA_IRQ0_IRQ1_EN                             (0X1000U)      /* IRQ1 Enable */

#define ENUM_PLA_PLA_IRQ0_IRQ1_EN_DIS                         (0X0000U)      /* Disable IRQ1 Interrupt */
#define ENUM_PLA_PLA_IRQ0_IRQ1_EN_EN                          (0X0001U)      /* Enable IRQ1 Interrupt */
#define ENUM_PLA_PLA_IRQ0_IRQ0_EN_DIS                         (0X0000U)      /* Disable IRQ0 Interrupt */
#define ENUM_PLA_PLA_IRQ0_IRQ0_EN_EN                          (0X0001U)      /* Enable IRQ0 Interrupt */

/* ----------------------------------------------------------------------------------------------------
          PLA_IRQ1                                              Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PLA_PLA_IRQ1_IRQ2_SRC                            (0U)           /* IRQ2 Source Select */
#define BITL_PLA_PLA_IRQ1_IRQ2_SRC                            (4U)           /* IRQ2 Source Select */
#define BITM_PLA_PLA_IRQ1_IRQ2_SRC                            (0X000FU)      /* IRQ2 Source Select */
#define BITP_PLA_PLA_IRQ1_IRQ2_EN                             (4U)           /* IRQ2 Enable */
#define BITL_PLA_PLA_IRQ1_IRQ2_EN                             (1U)           /* IRQ2 Enable */
#define BITM_PLA_PLA_IRQ1_IRQ2_EN                             (0X0010U)      /* IRQ2 Enable */
#define BITP_PLA_PLA_IRQ1_IRQ3_SRC                            (8U)           /* IRQ3 Source Select */
#define BITL_PLA_PLA_IRQ1_IRQ3_SRC                            (4U)           /* IRQ3 Source Select */
#define BITM_PLA_PLA_IRQ1_IRQ3_SRC                            (0X0F00U)      /* IRQ3 Source Select */
#define BITP_PLA_PLA_IRQ1_IRQ3_EN                             (12U)          /* IRQ3 Enable */
#define BITL_PLA_PLA_IRQ1_IRQ3_EN                             (1U)           /* IRQ3 Enable */
#define BITM_PLA_PLA_IRQ1_IRQ3_EN                             (0X1000U)      /* IRQ3 Enable */

#define ENUM_PLA_PLA_IRQ1_IRQ3_EN_DIS                         (0X0000U)      /* Disable IRQ3 Interrupt */
#define ENUM_PLA_PLA_IRQ1_IRQ3_EN_EN                          (0X0001U)      /* Enable IRQ3 Interrupt */
#define ENUM_PLA_PLA_IRQ1_IRQ2_EN_DIS                         (0X0000U)      /* Disable IRQ2 Interrupt */
#define ENUM_PLA_PLA_IRQ1_IRQ2_EN_EN                          (0X0001U)      /* Enable IRQ2 Interrupt */

/* ----------------------------------------------------------------------------------------------------
          PLA_ADC                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PLA_PLA_ADC_CONVST_SRC                           (0U)           /* Element for ADC Start Convert Source */
#define BITL_PLA_PLA_ADC_CONVST_SRC                           (5U)           /* Element for ADC Start Convert Source */
#define BITM_PLA_PLA_ADC_CONVST_SRC                           (0X001FU)      /* Element for ADC Start Convert Source */
#define BITP_PLA_PLA_ADC_CONVST_EN                            (5U)           /* Bit to Enable ADC Start Convert from PLA */
#define BITL_PLA_PLA_ADC_CONVST_EN                            (1U)           /* Bit to Enable ADC Start Convert from PLA */
#define BITM_PLA_PLA_ADC_CONVST_EN                            (0X0020U)      /* Bit to Enable ADC Start Convert from PLA */

#define ENUM_PLA_PLA_ADC_CONVST_EN_DISABLE                    (0X0000U)      /* Disable */
#define ENUM_PLA_PLA_ADC_CONVST_EN_ENABLE                     (0X0001U)      /* Enable */

/* ----------------------------------------------------------------------------------------------------
          PLA_DIN0                                              Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PLA_PLA_DIN0_DIN                                 (0U)           /* Input Bit to Element 15 to Element 0. */
#define BITL_PLA_PLA_DIN0_DIN                                 (16U)          /* Input Bit to Element 15 to Element 0. */
#define BITM_PLA_PLA_DIN0_DIN                                 (0XFFFFU)      /* Input Bit to Element 15 to Element 0. */

/* ----------------------------------------------------------------------------------------------------
          PLA_DOUT0                                             Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PLA_PLA_DOUT0_E0                                 (0U)           /* Output Bit from Element 0 */
#define BITL_PLA_PLA_DOUT0_E0                                 (1U)           /* Output Bit from Element 0 */
#define BITM_PLA_PLA_DOUT0_E0                                 (0X0001U)      /* Output Bit from Element 0 */
#define BITP_PLA_PLA_DOUT0_E1                                 (1U)           /* Output Bit from Element 1 */
#define BITL_PLA_PLA_DOUT0_E1                                 (1U)           /* Output Bit from Element 1 */
#define BITM_PLA_PLA_DOUT0_E1                                 (0X0002U)      /* Output Bit from Element 1 */
#define BITP_PLA_PLA_DOUT0_E2                                 (2U)           /* Output Bit from Element 2 */
#define BITL_PLA_PLA_DOUT0_E2                                 (1U)           /* Output Bit from Element 2 */
#define BITM_PLA_PLA_DOUT0_E2                                 (0X0004U)      /* Output Bit from Element 2 */
#define BITP_PLA_PLA_DOUT0_E3                                 (3U)           /* Output Bit from Element 3 */
#define BITL_PLA_PLA_DOUT0_E3                                 (1U)           /* Output Bit from Element 3 */
#define BITM_PLA_PLA_DOUT0_E3                                 (0X0008U)      /* Output Bit from Element 3 */
#define BITP_PLA_PLA_DOUT0_E4                                 (4U)           /* Output Bit from Element 4 */
#define BITL_PLA_PLA_DOUT0_E4                                 (1U)           /* Output Bit from Element 4 */
#define BITM_PLA_PLA_DOUT0_E4                                 (0X0010U)      /* Output Bit from Element 4 */
#define BITP_PLA_PLA_DOUT0_E5                                 (5U)           /* Output Bit from Element 5 */
#define BITL_PLA_PLA_DOUT0_E5                                 (1U)           /* Output Bit from Element 5 */
#define BITM_PLA_PLA_DOUT0_E5                                 (0X0020U)      /* Output Bit from Element 5 */
#define BITP_PLA_PLA_DOUT0_E6                                 (6U)           /* Output Bit from Element 6 */
#define BITL_PLA_PLA_DOUT0_E6                                 (1U)           /* Output Bit from Element 6 */
#define BITM_PLA_PLA_DOUT0_E6                                 (0X0040U)      /* Output Bit from Element 6 */
#define BITP_PLA_PLA_DOUT0_E7                                 (7U)           /* Output Bit from Element 7 */
#define BITL_PLA_PLA_DOUT0_E7                                 (1U)           /* Output Bit from Element 7 */
#define BITM_PLA_PLA_DOUT0_E7                                 (0X0080U)      /* Output Bit from Element 7 */
#define BITP_PLA_PLA_DOUT0_E8                                 (8U)           /* Output Bit from Element 8 */
#define BITL_PLA_PLA_DOUT0_E8                                 (1U)           /* Output Bit from Element 8 */
#define BITM_PLA_PLA_DOUT0_E8                                 (0X0100U)      /* Output Bit from Element 8 */
#define BITP_PLA_PLA_DOUT0_E9                                 (9U)           /* Output Bit from Element 9 */
#define BITL_PLA_PLA_DOUT0_E9                                 (1U)           /* Output Bit from Element 9 */
#define BITM_PLA_PLA_DOUT0_E9                                 (0X0200U)      /* Output Bit from Element 9 */
#define BITP_PLA_PLA_DOUT0_E10                                (10U)          /* Output Bit from Element 10 */
#define BITL_PLA_PLA_DOUT0_E10                                (1U)           /* Output Bit from Element 10 */
#define BITM_PLA_PLA_DOUT0_E10                                (0X0400U)      /* Output Bit from Element 10 */
#define BITP_PLA_PLA_DOUT0_E11                                (11U)          /* Output Bit from Element 11 */
#define BITL_PLA_PLA_DOUT0_E11                                (1U)           /* Output Bit from Element 11 */
#define BITM_PLA_PLA_DOUT0_E11                                (0X0800U)      /* Output Bit from Element 11 */
#define BITP_PLA_PLA_DOUT0_E12                                (12U)          /* Output Bit from Element 12 */
#define BITL_PLA_PLA_DOUT0_E12                                (1U)           /* Output Bit from Element 12 */
#define BITM_PLA_PLA_DOUT0_E12                                (0X1000U)      /* Output Bit from Element 12 */
#define BITP_PLA_PLA_DOUT0_E13                                (13U)          /* Output Bit from Element 13 */
#define BITL_PLA_PLA_DOUT0_E13                                (1U)           /* Output Bit from Element 13 */
#define BITM_PLA_PLA_DOUT0_E13                                (0X2000U)      /* Output Bit from Element 13 */
#define BITP_PLA_PLA_DOUT0_E14                                (14U)          /* Output Bit from Element 14 */
#define BITL_PLA_PLA_DOUT0_E14                                (1U)           /* Output Bit from Element 14 */
#define BITM_PLA_PLA_DOUT0_E14                                (0X4000U)      /* Output Bit from Element 14 */
#define BITP_PLA_PLA_DOUT0_E15                                (15U)          /* Output Bit from Element 15 */
#define BITL_PLA_PLA_DOUT0_E15                                (1U)           /* Output Bit from Element 15 */
#define BITM_PLA_PLA_DOUT0_E15                                (0X8000U)      /* Output Bit from Element 15 */

/* ----------------------------------------------------------------------------------------------------
          PLA_DOUT1                                             Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PLA_PLA_DOUT1_E16                                (0U)           /* Output Bit from Element 16 */
#define BITL_PLA_PLA_DOUT1_E16                                (1U)           /* Output Bit from Element 16 */
#define BITM_PLA_PLA_DOUT1_E16                                (0X0001U)      /* Output Bit from Element 16 */
#define BITP_PLA_PLA_DOUT1_E17                                (1U)           /* Output Bit from Element 17 */
#define BITL_PLA_PLA_DOUT1_E17                                (1U)           /* Output Bit from Element 17 */
#define BITM_PLA_PLA_DOUT1_E17                                (0X0002U)      /* Output Bit from Element 17 */
#define BITP_PLA_PLA_DOUT1_E18                                (2U)           /* Output Bit from Element 18 */
#define BITL_PLA_PLA_DOUT1_E18                                (1U)           /* Output Bit from Element 18 */
#define BITM_PLA_PLA_DOUT1_E18                                (0X0004U)      /* Output Bit from Element 18 */
#define BITP_PLA_PLA_DOUT1_E19                                (3U)           /* Output Bit from Element 19 */
#define BITL_PLA_PLA_DOUT1_E19                                (1U)           /* Output Bit from Element 19 */
#define BITM_PLA_PLA_DOUT1_E19                                (0X0008U)      /* Output Bit from Element 19 */
#define BITP_PLA_PLA_DOUT1_E20                                (4U)           /* Output Bit from Element 20 */
#define BITL_PLA_PLA_DOUT1_E20                                (1U)           /* Output Bit from Element 20 */
#define BITM_PLA_PLA_DOUT1_E20                                (0X0010U)      /* Output Bit from Element 20 */
#define BITP_PLA_PLA_DOUT1_E21                                (5U)           /* Output Bit from Element 21 */
#define BITL_PLA_PLA_DOUT1_E21                                (1U)           /* Output Bit from Element 21 */
#define BITM_PLA_PLA_DOUT1_E21                                (0X0020U)      /* Output Bit from Element 21 */
#define BITP_PLA_PLA_DOUT1_E22                                (6U)           /* Output Bit from Element 22 */
#define BITL_PLA_PLA_DOUT1_E22                                (1U)           /* Output Bit from Element 22 */
#define BITM_PLA_PLA_DOUT1_E22                                (0X0040U)      /* Output Bit from Element 22 */
#define BITP_PLA_PLA_DOUT1_E23                                (7U)           /* Output Bit from Element 23 */
#define BITL_PLA_PLA_DOUT1_E23                                (1U)           /* Output Bit from Element 23 */
#define BITM_PLA_PLA_DOUT1_E23                                (0X0080U)      /* Output Bit from Element 23 */
#define BITP_PLA_PLA_DOUT1_E24                                (8U)           /* Output Bit from Element 24 */
#define BITL_PLA_PLA_DOUT1_E24                                (1U)           /* Output Bit from Element 24 */
#define BITM_PLA_PLA_DOUT1_E24                                (0X0100U)      /* Output Bit from Element 24 */
#define BITP_PLA_PLA_DOUT1_E25                                (9U)           /* Output Bit from Element 25 */
#define BITL_PLA_PLA_DOUT1_E25                                (1U)           /* Output Bit from Element 25 */
#define BITM_PLA_PLA_DOUT1_E25                                (0X0200U)      /* Output Bit from Element 25 */
#define BITP_PLA_PLA_DOUT1_E26                                (10U)          /* Output Bit from Element 26 */
#define BITL_PLA_PLA_DOUT1_E26                                (1U)           /* Output Bit from Element 26 */
#define BITM_PLA_PLA_DOUT1_E26                                (0X0400U)      /* Output Bit from Element 26 */
#define BITP_PLA_PLA_DOUT1_E27                                (11U)          /* Output Bit from Element 27 */
#define BITL_PLA_PLA_DOUT1_E27                                (1U)           /* Output Bit from Element 27 */
#define BITM_PLA_PLA_DOUT1_E27                                (0X0800U)      /* Output Bit from Element 27 */
#define BITP_PLA_PLA_DOUT1_E28                                (12U)          /* Output Bit from Element 28 */
#define BITL_PLA_PLA_DOUT1_E28                                (1U)           /* Output Bit from Element 28 */
#define BITM_PLA_PLA_DOUT1_E28                                (0X1000U)      /* Output Bit from Element 28 */
#define BITP_PLA_PLA_DOUT1_E29                                (13U)          /* Output Bit from Element 29 */
#define BITL_PLA_PLA_DOUT1_E29                                (1U)           /* Output Bit from Element 29 */
#define BITM_PLA_PLA_DOUT1_E29                                (0X2000U)      /* Output Bit from Element 29 */
#define BITP_PLA_PLA_DOUT1_E30                                (14U)          /* Output Bit from Element 30 */
#define BITL_PLA_PLA_DOUT1_E30                                (1U)           /* Output Bit from Element 30 */
#define BITM_PLA_PLA_DOUT1_E30                                (0X4000U)      /* Output Bit from Element 30 */
#define BITP_PLA_PLA_DOUT1_E31                                (15U)          /* Output Bit from Element 31 */
#define BITL_PLA_PLA_DOUT1_E31                                (1U)           /* Output Bit from Element 31 */
#define BITM_PLA_PLA_DOUT1_E31                                (0X8000U)      /* Output Bit from Element 31 */

/* ----------------------------------------------------------------------------------------------------
          PLA_LCK                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PLA_PLA_LCK_LOCKED                               (0U)           /* Set to Disable Writing to Registers */
#define BITL_PLA_PLA_LCK_LOCKED                               (1U)           /* Set to Disable Writing to Registers */
#define BITM_PLA_PLA_LCK_LOCKED                               (0X0001U)      /* Set to Disable Writing to Registers */

#define ENUM_PLA_PLA_LCK_LOCKED_DIS                           (0X0000U)      /* Writing to Registers Allowed */
#define ENUM_PLA_PLA_LCK_LOCKED_EN                            (0X0001U)      /* Writing to Registers Disabled */

/* ----------------------------------------------------------------------------------------------------
          PLA_IRQTYPE                                           Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PLA_PLA_IRQTYPE_IRQ0_TYPE                        (0U)           /* IRQ0 and DMA Request 0 Type */
#define BITL_PLA_PLA_IRQTYPE_IRQ0_TYPE                        (2U)           /* IRQ0 and DMA Request 0 Type */
#define BITM_PLA_PLA_IRQTYPE_IRQ0_TYPE                        (0X0003U)      /* IRQ0 and DMA Request 0 Type */
#define BITP_PLA_PLA_IRQTYPE_IRQ1_TYPE                        (2U)           /* IRQ1 and DMA Request 1Type */
#define BITL_PLA_PLA_IRQTYPE_IRQ1_TYPE                        (2U)           /* IRQ1 and DMA Request 1Type */
#define BITM_PLA_PLA_IRQTYPE_IRQ1_TYPE                        (0X000CU)      /* IRQ1 and DMA Request 1Type */
#define BITP_PLA_PLA_IRQTYPE_IRQ2_TYPE                        (4U)           /* IRQ2 and DMA Request 2 Type */
#define BITL_PLA_PLA_IRQTYPE_IRQ2_TYPE                        (2U)           /* IRQ2 and DMA Request 2 Type */
#define BITM_PLA_PLA_IRQTYPE_IRQ2_TYPE                        (0X0030U)      /* IRQ2 and DMA Request 2 Type */
#define BITP_PLA_PLA_IRQTYPE_IRQ3_TYPE                        (6U)           /* IRQ3 and DMA Request 3 Type */
#define BITL_PLA_PLA_IRQTYPE_IRQ3_TYPE                        (2U)           /* IRQ3 and DMA Request 3 Type */
#define BITM_PLA_PLA_IRQTYPE_IRQ3_TYPE                        (0X00C0U)      /* IRQ3 and DMA Request 3 Type */

#define ENUM_PLA_PLA_IRQTYPE_IRQ3_TYPE_HIGH_LEVEL             (0X0000U)      /* High Level Trigger Interrupt and High Level Trigger DMA Request */
#define ENUM_PLA_PLA_IRQTYPE_IRQ3_TYPE_RISING_EDGE            (0X0001U)      /* Rising Edge Trigger Interrupt and High Level Trigger DMA Request */
#define ENUM_PLA_PLA_IRQTYPE_IRQ3_TYPE_LOW_LEVEL              (0X0002U)      /* Low Level Trigger Interrupt and Low Level Trigger DMA Request */
#define ENUM_PLA_PLA_IRQTYPE_IRQ3_TYPE_FALLING_EDGE           (0X0003U)      /* Falling Edge Trigger Interrupt and Low Level Trigger DMA Request */
#define ENUM_PLA_PLA_IRQTYPE_IRQ2_TYPE_HIGH_LEVEL             (0X0000U)      /* High Level Trigger Interrupt and High Level Trigger DMA Request */
#define ENUM_PLA_PLA_IRQTYPE_IRQ2_TYPE_RISING_EDGE            (0X0001U)      /* Rising Edge Trigger Interrupt and High Level Trigger DMA Request */
#define ENUM_PLA_PLA_IRQTYPE_IRQ2_TYPE_LOW_LEVEL              (0X0002U)      /* Low Level Trigger Interrupt and Low Level Trigger DMA Request */
#define ENUM_PLA_PLA_IRQTYPE_IRQ2_TYPE_FALLING_EDGE           (0X0003U)      /* Falling Edge Trigger Interrupt and Low Level Trigger DMA Request */
#define ENUM_PLA_PLA_IRQTYPE_IRQ1_TYPE_HIGH_LEVEL             (0X0000U)      /* High Level Trigger Interrupt and High Level Trigger DMA Request */
#define ENUM_PLA_PLA_IRQTYPE_IRQ1_TYPE_RISING_EDGE            (0X0001U)      /* Rising Edge Trigger Interrupt and High Level Trigger DMA Request */
#define ENUM_PLA_PLA_IRQTYPE_IRQ1_TYPE_LOW_LEVEL              (0X0002U)      /* Low Level Trigger Interrupt and Low Level Trigger DMA Request */
#define ENUM_PLA_PLA_IRQTYPE_IRQ1_TYPE_FALLING_EDGE           (0X0003U)      /* Falling Edge Trigger Interrupt and Low Level Trigger DMA Request */
#define ENUM_PLA_PLA_IRQTYPE_IRQ0_TYPE_HIGH_LEVEL             (0X0000U)      /* High Level Trigger Interrupt and High Level Trigger DMA Request */
#define ENUM_PLA_PLA_IRQTYPE_IRQ0_TYPE_RISING_EDGE            (0X0001U)      /* Rising Edge Trigger Interrupt and Rising Edge Trigger DMA Request */
#define ENUM_PLA_PLA_IRQTYPE_IRQ0_TYPE_LOW_LEVEL              (0X0002U)      /* Low Level Trigger Interrupt and Low Level Trigger DMA Request */
#define ENUM_PLA_PLA_IRQTYPE_IRQ0_TYPE_FALLING_EDGE           (0X0003U)      /* Falling Edge Trigger Interrupt and Falling Edge Trigger DMA Request */

#endif  /* end ifndef PLA_ADDR_RDEF_H_ */


#ifndef DMAREQ_ADDR_RDEF_H_
#define DMAREQ_ADDR_RDEF_H_    /* DMAREQ: Your module description, here. */

/* ====================================================================================================
        DMAREQ Module Instances Address and Mask Definitions
   ==================================================================================================== */
#define INST_DMAREQ                                              (0X40007000U)    /* dmareq: */

#define MASK_DMAREQ                                              (0X000000FFU)    /* DMAREQ: Your module description, here. */

/* ====================================================================================================
        DMAREQ Module Register Address Offset Definitions
   ==================================================================================================== */
#define IDX_DMAREQ_REQEN                                        (0X00U)    /* GPT/GPT32 and PLA DMA Request Enable */
#define IDX_DMAREQ_REQ0SEL                                      (0X04U)    /* GPT/GPT32 and PLA DMA Request 0 Select */
#define IDX_DMAREQ_REQ1SEL                                      (0X08U)    /* GPT/GPT32 and PLA DMA Request 1 Select */
#define IDX_DMAREQ_PLAREQEN                                     (0X0CU)    /* PLA DMA Requests Enable */
#define IDX_DMAREQ_GPTREQEN                                     (0X10U)    /* GPT/GPT32 DMA Requests Enable */
#define IDX_DMAREQ_GPT_MDA_REQ_TTYPE                            (0X14U)    /* GPT and GPT32 Require Type */

/* ====================================================================================================
        DMAREQ Module Register ResetValue Definitions
   ==================================================================================================== */
#define RSTVAL_DMAREQ_REQEN                                        (0X0) 
#define RSTVAL_DMAREQ_REQ0SEL                                      (0X0) 
#define RSTVAL_DMAREQ_REQ1SEL                                      (0X0) 
#define RSTVAL_DMAREQ_PLAREQEN                                     (0X0) 
#define RSTVAL_DMAREQ_GPTREQEN                                     (0X0) 
#define RSTVAL_DMAREQ_GPT_MDA_REQ_TTYPE                            (0X0) 

/* ====================================================================================================
        DMAREQ Module Register BitPositions, Lengths, Masks and Enumerations Definitions
   ==================================================================================================== */

/* ----------------------------------------------------------------------------------------------------
          REQEN                                                 Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_DMAREQ_REQEN_GPLA_DMA_EN0                        (0U)           /* GPT/GPT32 and PLA DMA Request 0 Enable */
#define BITL_DMAREQ_REQEN_GPLA_DMA_EN0                        (1U)           /* GPT/GPT32 and PLA DMA Request 0 Enable */
#define BITM_DMAREQ_REQEN_GPLA_DMA_EN0                        (0X01U)        /* GPT/GPT32 and PLA DMA Request 0 Enable */
#define BITP_DMAREQ_REQEN_GPLA_DMA_EN1                        (1U)           /* GPT/GPT32 and PLA DMA Request 1 Enable */
#define BITL_DMAREQ_REQEN_GPLA_DMA_EN1                        (1U)           /* GPT/GPT32 and PLA DMA Request 1 Enable */
#define BITM_DMAREQ_REQEN_GPLA_DMA_EN1                        (0X02U)        /* GPT/GPT32 and PLA DMA Request 1 Enable */

/* ----------------------------------------------------------------------------------------------------
          REQ0SEL                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_DMAREQ_REQ0SEL_DMA_REQ0_SEL                      (0U)           /* GPT/GPT32 and PLA DMA Request 0 Source Select */
#define BITL_DMAREQ_REQ0SEL_DMA_REQ0_SEL                      (4U)           /* GPT/GPT32 and PLA DMA Request 0 Source Select */
#define BITM_DMAREQ_REQ0SEL_DMA_REQ0_SEL                      (0X0FU)        /* GPT/GPT32 and PLA DMA Request 0 Source Select */

#define ENUM_DMAREQ_REQ0SEL_DMA_REQ0_SEL_PLA_REQ0             (0X00U)        /* PLA DMA Request 0 */
#define ENUM_DMAREQ_REQ0SEL_DMA_REQ0_SEL_PLA_REQ1             (0X01U)        /* PLA DMA Request 1 */
#define ENUM_DMAREQ_REQ0SEL_DMA_REQ0_SEL_PLA_REQ2             (0X02U)        /* PLA DMA Request 2 */
#define ENUM_DMAREQ_REQ0SEL_DMA_REQ0_SEL_PLA_REQ3             (0X03U)        /* PLA DMA Request 3 */
#define ENUM_DMAREQ_REQ0SEL_DMA_REQ0_SEL_GPT_REQ0             (0X04U)        /* GPT 0 DMA Request */
#define ENUM_DMAREQ_REQ0SEL_DMA_REQ0_SEL_GPT_REQ1             (0X05U)        /* GPT 1 DMA Request */
#define ENUM_DMAREQ_REQ0SEL_DMA_REQ0_SEL_GPT_REQ2             (0X06U)        /* GPT 2 DMA Request */
#define ENUM_DMAREQ_REQ0SEL_DMA_REQ0_SEL_GPT32_REQ0           (0X07U)        /* GPT32 0 DMA Request */
#define ENUM_DMAREQ_REQ0SEL_DMA_REQ0_SEL_GPT32_REQ1           (0X08U)        /* GPT32 1 DMA Request */

/* ----------------------------------------------------------------------------------------------------
          REQ1SEL                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_DMAREQ_REQ1SEL_DMA_REQ1_SEL                      (0U)           /* GPT/GPT32 and PLA DMA Request 1 Source Select */
#define BITL_DMAREQ_REQ1SEL_DMA_REQ1_SEL                      (4U)           /* GPT/GPT32 and PLA DMA Request 1 Source Select */
#define BITM_DMAREQ_REQ1SEL_DMA_REQ1_SEL                      (0X0FU)        /* GPT/GPT32 and PLA DMA Request 1 Source Select */

#define ENUM_DMAREQ_REQ1SEL_DMA_REQ1_SEL_PLA_REQ0             (0X00U)        /* PLA DMA Request 0 */
#define ENUM_DMAREQ_REQ1SEL_DMA_REQ1_SEL_PLA_REQ1             (0X01U)        /* PLA DMA Request 1 */
#define ENUM_DMAREQ_REQ1SEL_DMA_REQ1_SEL_PLA_REQ2             (0X02U)        /* PLA DMA Request 2 */
#define ENUM_DMAREQ_REQ1SEL_DMA_REQ1_SEL_PLA_REQ3             (0X03U)        /* PLA DMA Request 3 */
#define ENUM_DMAREQ_REQ1SEL_DMA_REQ1_SEL_GPT_REQ0             (0X04U)        /* GPT 0 DMA Request */
#define ENUM_DMAREQ_REQ1SEL_DMA_REQ1_SEL_GPT_REQ1             (0X05U)        /* GPT 1 DMA Request */
#define ENUM_DMAREQ_REQ1SEL_DMA_REQ1_SEL_GPT_REQ2             (0X06U)        /* GPT 2 DMA Request */
#define ENUM_DMAREQ_REQ1SEL_DMA_REQ1_SEL_GPT32_REQ0           (0X07U)        /* GPT32 0 DMA Request */
#define ENUM_DMAREQ_REQ1SEL_DMA_REQ1_SEL_GPT32_REQ1           (0X08U)        /* GPT32 1 DMA Request */

/* ----------------------------------------------------------------------------------------------------
          PLAREQEN                                              Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_DMAREQ_PLAREQEN_PLA_DMA_REQ0_EN                  (0U)           /* PLA DMA Request 0 Enable */
#define BITL_DMAREQ_PLAREQEN_PLA_DMA_REQ0_EN                  (1U)           /* PLA DMA Request 0 Enable */
#define BITM_DMAREQ_PLAREQEN_PLA_DMA_REQ0_EN                  (0X01U)        /* PLA DMA Request 0 Enable */
#define BITP_DMAREQ_PLAREQEN_PLA_DMA_REQ1_EN                  (1U)           /* PLA DMA Request 1 Enable */
#define BITL_DMAREQ_PLAREQEN_PLA_DMA_REQ1_EN                  (1U)           /* PLA DMA Request 1 Enable */
#define BITM_DMAREQ_PLAREQEN_PLA_DMA_REQ1_EN                  (0X02U)        /* PLA DMA Request 1 Enable */
#define BITP_DMAREQ_PLAREQEN_PLA_DMA_REQ2_EN                  (2U)           /* PLA DMA Request 2 Enable */
#define BITL_DMAREQ_PLAREQEN_PLA_DMA_REQ2_EN                  (1U)           /* PLA DMA Request 2 Enable */
#define BITM_DMAREQ_PLAREQEN_PLA_DMA_REQ2_EN                  (0X04U)        /* PLA DMA Request 2 Enable */
#define BITP_DMAREQ_PLAREQEN_PLA_DMA_REQ3_EN                  (3U)           /* PLA DMA Request 3 Enable */
#define BITL_DMAREQ_PLAREQEN_PLA_DMA_REQ3_EN                  (1U)           /* PLA DMA Request 3 Enable */
#define BITM_DMAREQ_PLAREQEN_PLA_DMA_REQ3_EN                  (0X08U)        /* PLA DMA Request 3 Enable */

/* ----------------------------------------------------------------------------------------------------
          GPTREQEN                                              Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_DMAREQ_GPTREQEN_GPT_DMA_REQ0_EN                  (0U)           /* GPT 0 DMA Request Enable */
#define BITL_DMAREQ_GPTREQEN_GPT_DMA_REQ0_EN                  (1U)           /* GPT 0 DMA Request Enable */
#define BITM_DMAREQ_GPTREQEN_GPT_DMA_REQ0_EN                  (0X01U)        /* GPT 0 DMA Request Enable */
#define BITP_DMAREQ_GPTREQEN_GPT_DMA_REQ1_EN                  (1U)           /* GPT 1 DMA Request Enable */
#define BITL_DMAREQ_GPTREQEN_GPT_DMA_REQ1_EN                  (1U)           /* GPT 1 DMA Request Enable */
#define BITM_DMAREQ_GPTREQEN_GPT_DMA_REQ1_EN                  (0X02U)        /* GPT 1 DMA Request Enable */
#define BITP_DMAREQ_GPTREQEN_GPT_DMA_REQ2_EN                  (2U)           /* GPT 2 DMA Request Enable */
#define BITL_DMAREQ_GPTREQEN_GPT_DMA_REQ2_EN                  (1U)           /* GPT 2 DMA Request Enable */
#define BITM_DMAREQ_GPTREQEN_GPT_DMA_REQ2_EN                  (0X04U)        /* GPT 2 DMA Request Enable */
#define BITP_DMAREQ_GPTREQEN_GPT32_DMA_REQ0_EN                (3U)           /* GPT32 0 DMA Request Enable */
#define BITL_DMAREQ_GPTREQEN_GPT32_DMA_REQ0_EN                (1U)           /* GPT32 0 DMA Request Enable */
#define BITM_DMAREQ_GPTREQEN_GPT32_DMA_REQ0_EN                (0X08U)        /* GPT32 0 DMA Request Enable */
#define BITP_DMAREQ_GPTREQEN_GPT32_DMA_REQ1_EN                (4U)           /* GPT32 1 DMA Request Enable */
#define BITL_DMAREQ_GPTREQEN_GPT32_DMA_REQ1_EN                (1U)           /* GPT32 1 DMA Request Enable */
#define BITM_DMAREQ_GPTREQEN_GPT32_DMA_REQ1_EN                (0X10U)        /* GPT32 1 DMA Request Enable */

/* ----------------------------------------------------------------------------------------------------
          GPT_MDA_REQ_TTYPE                                     Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_DMAREQ_GPT_MDA_REQ_TTYPE_GPT_REQ0_TYPE           (0U)           /* GPT Req0 DMA Require Type */
#define BITL_DMAREQ_GPT_MDA_REQ_TTYPE_GPT_REQ0_TYPE           (2U)           /* GPT Req0 DMA Require Type */
#define BITM_DMAREQ_GPT_MDA_REQ_TTYPE_GPT_REQ0_TYPE           (0X0003U)      /* GPT Req0 DMA Require Type */
#define BITP_DMAREQ_GPT_MDA_REQ_TTYPE_GPT_REQ1_TYPE           (2U)           /* GPT Req1 DMA Require Type */
#define BITL_DMAREQ_GPT_MDA_REQ_TTYPE_GPT_REQ1_TYPE           (2U)           /* GPT Req1 DMA Require Type */
#define BITM_DMAREQ_GPT_MDA_REQ_TTYPE_GPT_REQ1_TYPE           (0X000CU)      /* GPT Req1 DMA Require Type */
#define BITP_DMAREQ_GPT_MDA_REQ_TTYPE_GPT_REQ2_TYPE           (4U)           /* GPT Req2 DMA Require Type */
#define BITL_DMAREQ_GPT_MDA_REQ_TTYPE_GPT_REQ2_TYPE           (2U)           /* GPT Req2 DMA Require Type */
#define BITM_DMAREQ_GPT_MDA_REQ_TTYPE_GPT_REQ2_TYPE           (0X0030U)      /* GPT Req2 DMA Require Type */
#define BITP_DMAREQ_GPT_MDA_REQ_TTYPE_GPT32_REQ0_TYPE         (6U)           /* GPT32 Req0 DMA Require Type */
#define BITL_DMAREQ_GPT_MDA_REQ_TTYPE_GPT32_REQ0_TYPE         (2U)           /* GPT32 Req0 DMA Require Type */
#define BITM_DMAREQ_GPT_MDA_REQ_TTYPE_GPT32_REQ0_TYPE         (0X00C0U)      /* GPT32 Req0 DMA Require Type */
#define BITP_DMAREQ_GPT_MDA_REQ_TTYPE_GPT32_REQ1_TYPE         (8U)           /* GPT32 Req1 DMA Require Type */
#define BITL_DMAREQ_GPT_MDA_REQ_TTYPE_GPT32_REQ1_TYPE         (2U)           /* GPT32 Req1 DMA Require Type */
#define BITM_DMAREQ_GPT_MDA_REQ_TTYPE_GPT32_REQ1_TYPE         (0X0300U)      /* GPT32 Req1 DMA Require Type */

#define ENUM_DMAREQ_GPT_MDA_REQ_TTYPE_GPT32_REQ1_TYPE_HIGH_LEVEL (0X0000U)      /* High Level Trigger Interrupt and High Level Trigger DMA Request */
#define ENUM_DMAREQ_GPT_MDA_REQ_TTYPE_GPT32_REQ1_TYPE_RISING_EDGE (0X0001U)      /* Rising Edge Trigger Interrupt and Rising Edge Trigger DMA Request */
#define ENUM_DMAREQ_GPT_MDA_REQ_TTYPE_GPT32_REQ1_TYPE_LOW_LEVEL (0X0002U)      /* Low Level Trigger Interrupt and Low Level Trigger DMA Request */
#define ENUM_DMAREQ_GPT_MDA_REQ_TTYPE_GPT32_REQ1_TYPE_FALLING_EDGE (0X0003U)      /* Falling Edge Trigger Interrupt and Falling Edge Trigger DMA Request */
#define ENUM_DMAREQ_GPT_MDA_REQ_TTYPE_GPT32_REQ0_TYPE_HIGH_LEVEL (0X0000U)      /* High Level Trigger Interrupt and High Level Trigger DMA Request */
#define ENUM_DMAREQ_GPT_MDA_REQ_TTYPE_GPT32_REQ0_TYPE_RISING_EDGE (0X0001U)      /* Rising Edge Trigger Interrupt and Rising Edge Trigger DMA Request */
#define ENUM_DMAREQ_GPT_MDA_REQ_TTYPE_GPT32_REQ0_TYPE_LOW_LEVEL (0X0002U)      /* Low Level Trigger Interrupt and Low Level Trigger DMA Request */
#define ENUM_DMAREQ_GPT_MDA_REQ_TTYPE_GPT32_REQ0_TYPE_FALLING_EDGE (0X0003U)      /* Falling Edge Trigger Interrupt and Falling Edge Trigger DMA Request */
#define ENUM_DMAREQ_GPT_MDA_REQ_TTYPE_GPT_REQ2_TYPE_HIGH_LEVEL (0X0000U)      /* High Level Trigger Interrupt and High Level Trigger DMA Request */
#define ENUM_DMAREQ_GPT_MDA_REQ_TTYPE_GPT_REQ2_TYPE_RISING_EDGE (0X0001U)      /* Rising Edge Trigger Interrupt and Rising Edge Trigger DMA Request */
#define ENUM_DMAREQ_GPT_MDA_REQ_TTYPE_GPT_REQ2_TYPE_LOW_LEVEL (0X0002U)      /* Low Level Trigger Interrupt and Low Level Trigger DMA Request */
#define ENUM_DMAREQ_GPT_MDA_REQ_TTYPE_GPT_REQ2_TYPE_FALLING_EDGE (0X0003U)      /* Falling Edge Trigger Interrupt and Falling Edge Trigger DMA Request */
#define ENUM_DMAREQ_GPT_MDA_REQ_TTYPE_GPT_REQ1_TYPE_HIGH_LEVEL (0X0000U)      /* High Level Trigger Interrupt and High Level Trigger DMA Request */
#define ENUM_DMAREQ_GPT_MDA_REQ_TTYPE_GPT_REQ1_TYPE_RISING_EDGE (0X0001U)      /* Rising Edge Trigger Interrupt and Rising Edge Trigger DMA Request */
#define ENUM_DMAREQ_GPT_MDA_REQ_TTYPE_GPT_REQ1_TYPE_LOW_LEVEL (0X0002U)      /* Low Level Trigger Interrupt and Low Level Trigger DMA Request */
#define ENUM_DMAREQ_GPT_MDA_REQ_TTYPE_GPT_REQ1_TYPE_FALLING_EDGE (0X0003U)      /* Falling Edge Trigger Interrupt and Falling Edge Trigger DMA Request */
#define ENUM_DMAREQ_GPT_MDA_REQ_TTYPE_GPT_REQ0_TYPE_HIGH_LEVEL (0X0000U)      /* High Level Trigger Interrupt and High Level Trigger DMA Request */
#define ENUM_DMAREQ_GPT_MDA_REQ_TTYPE_GPT_REQ0_TYPE_RISING_EDGE (0X0001U)      /* Rising Edge Trigger Interrupt and Rising Edge Trigger DMA Request */
#define ENUM_DMAREQ_GPT_MDA_REQ_TTYPE_GPT_REQ0_TYPE_LOW_LEVEL (0X0002U)      /* Low Level Trigger Interrupt and Low Level Trigger DMA Request */
#define ENUM_DMAREQ_GPT_MDA_REQ_TTYPE_GPT_REQ0_TYPE_FALLING_EDGE (0X0003U)      /* Falling Edge Trigger Interrupt and Falling Edge Trigger DMA Request */

#endif  /* end ifndef DMAREQ_ADDR_RDEF_H_ */


#ifndef UART_ADDR_RDEF_H_
#define UART_ADDR_RDEF_H_    /* UART: Universal Asynchronous Receiver/Transmitter */

/* ====================================================================================================
        UART Module Instances Address and Mask Definitions
   ==================================================================================================== */
#define INST_UART0                                               (0X40020000U)    /* uart0: */
#define INST_UART1                                               (0X40020400U)    /* uart1: */

#define MASK_UART                                                (0X000000FFU)    /* UART: Universal Asynchronous Receiver/Transmitter */

/* ====================================================================================================
        UART Module Register Address Offset Definitions
   ==================================================================================================== */
#define IDX_UART_RX                                             (0X00U)    /* Receive/transfer Buffer Register */
#define IDX_UART_IEN                                            (0X04U)    /* Interrupt Enable */
#define IDX_UART_IIR                                            (0X08U)    /* Interrupt ID */
#define IDX_UART_LCR                                            (0X0CU)    /* Line Control */
#define IDX_UART_MCR                                            (0X10U)    /* Modem Control */
#define IDX_UART_LSR                                            (0X14U)    /* Line Status */
#define IDX_UART_MSR                                            (0X18U)    /* Modem Status */
#define IDX_UART_SCR                                            (0X1CU)    /* Scratch Buffer */
#define IDX_UART_FCR                                            (0X20U)    /* FIFO Control */
#define IDX_UART_FBR                                            (0X24U)    /* Fractional Baud Rate */
#define IDX_UART_DIV                                            (0X28U)    /* Baudrate Divider */
#define IDX_UART_LCR2                                           (0X2CU)    /* Second Line Control */
#define IDX_UART_CTL                                            (0X30U)    /* UART Control Register */
#define IDX_UART_RFC                                            (0X34U)    /* RX FIFO Byte Count */
#define IDX_UART_TFC                                            (0X38U)    /* TX FIFO Byte Count */
#define IDX_UART_RSC                                            (0X3CU)    /* RS485 Half-duplex Control */
#define IDX_UART_ACR                                            (0X40U)    /* Auto Baud Control */
#define IDX_UART_ASRL                                           (0X44U)    /* Auto Baud Status (Low) */
#define IDX_UART_ASRH                                           (0X48U)    /* Auto Baud Status (High) */

/* ====================================================================================================
        UART Module Register ResetValue Definitions
   ==================================================================================================== */
#define RSTVAL_UART_RX                                             (0X0) 
#define RSTVAL_UART_IEN                                            (0X0) 
#define RSTVAL_UART_IIR                                            (0X1) 
#define RSTVAL_UART_LCR                                            (0X0) 
#define RSTVAL_UART_MCR                                            (0X0) 
#define RSTVAL_UART_LSR                                            (0X60) 
#define RSTVAL_UART_SCR                                            (0X0) 
#define RSTVAL_UART_FCR                                            (0X0) 
#define RSTVAL_UART_FBR                                            (0X0) 
#define RSTVAL_UART_DIV                                            (0X0) 
#define RSTVAL_UART_LCR2                                           (0X2) 
#define RSTVAL_UART_CTL                                            (0X100) 
#define RSTVAL_UART_RFC                                            (0X0) 
#define RSTVAL_UART_TFC                                            (0X0) 
#define RSTVAL_UART_RSC                                            (0X0) 
#define RSTVAL_UART_ACR                                            (0X0) 
#define RSTVAL_UART_ASRL                                           (0X0) 
#define RSTVAL_UART_ASRH                                           (0X0) 

/* ====================================================================================================
        UART Module Register BitPositions, Lengths, Masks and Enumerations Definitions
   ==================================================================================================== */

/* ----------------------------------------------------------------------------------------------------
          RX                                                    Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_UART_RX_RBR                                      (0U)           /* Receive Buffer Register */
#define BITL_UART_RX_RBR                                      (8U)           /* Receive Buffer Register */
#define BITM_UART_RX_RBR                                      (0X00FFU)      /* Receive Buffer Register */

/* ----------------------------------------------------------------------------------------------------
          IEN                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_UART_IEN_ERBFI                                   (0U)           /* Receive Buffer Full Interrupt */
#define BITL_UART_IEN_ERBFI                                   (1U)           /* Receive Buffer Full Interrupt */
#define BITM_UART_IEN_ERBFI                                   (0X0001U)      /* Receive Buffer Full Interrupt */
#define BITP_UART_IEN_ETBEI                                   (1U)           /* Transmit Buffer Empty Interrupt */
#define BITL_UART_IEN_ETBEI                                   (1U)           /* Transmit Buffer Empty Interrupt */
#define BITM_UART_IEN_ETBEI                                   (0X0002U)      /* Transmit Buffer Empty Interrupt */
#define BITP_UART_IEN_ELSI                                    (2U)           /* Rx Status Interrupt */
#define BITL_UART_IEN_ELSI                                    (1U)           /* Rx Status Interrupt */
#define BITM_UART_IEN_ELSI                                    (0X0004U)      /* Rx Status Interrupt */
#define BITP_UART_IEN_EDSSI                                   (3U)           /* Modem Status Interrupt */
#define BITL_UART_IEN_EDSSI                                   (1U)           /* Modem Status Interrupt */
#define BITM_UART_IEN_EDSSI                                   (0X0008U)      /* Modem Status Interrupt */
#define BITP_UART_IEN_EDMAT                                   (4U)           /* DMA Requests in Transmit Mode */
#define BITL_UART_IEN_EDMAT                                   (1U)           /* DMA Requests in Transmit Mode */
#define BITM_UART_IEN_EDMAT                                   (0X0010U)      /* DMA Requests in Transmit Mode */
#define BITP_UART_IEN_EDMAR                                   (5U)           /* DMA Requests in Receive Mode */
#define BITL_UART_IEN_EDMAR                                   (1U)           /* DMA Requests in Receive Mode */
#define BITM_UART_IEN_EDMAR                                   (0X0020U)      /* DMA Requests in Receive Mode */

#define ENUM_UART_IEN_EDMAR_DIS                               (0X0000U)      /* DMA Requests Disabled */
#define ENUM_UART_IEN_EDMAR_EN                                (0X0001U)      /* DMA Requests Enabled */
#define ENUM_UART_IEN_EDMAT_DIS                               (0X0000U)      /* DMA Requests are Disabled */
#define ENUM_UART_IEN_EDMAT_EN                                (0X0001U)      /* DMA Requests are Enabled */
#define ENUM_UART_IEN_EDSSI_DIS                               (0X0000U)      /* Interrupt Disabled */
#define ENUM_UART_IEN_EDSSI_EN                                (0X0001U)      /* Interrupt Enabled */
#define ENUM_UART_IEN_ELSI_DIS                                (0X0000U)      /* Interrupt Disabled */
#define ENUM_UART_IEN_ELSI_EN                                 (0X0001U)      /* Interrupt Enabled */
#define ENUM_UART_IEN_ETBEI_DIS                               (0X0000U)      /* Interrupt Disabled */
#define ENUM_UART_IEN_ETBEI_EN                                (0X0001U)      /* Interrupt Enabled */
#define ENUM_UART_IEN_ERBFI_DIS                               (0X0000U)      /* Interrupt Disabled */
#define ENUM_UART_IEN_ERBFI_EN                                (0X0001U)      /* Interrupt Enabled */

/* ----------------------------------------------------------------------------------------------------
          IIR                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_UART_IIR_NIRQ                                    (0U)           /* Interrupt Flag */
#define BITL_UART_IIR_NIRQ                                    (1U)           /* Interrupt Flag */
#define BITM_UART_IIR_NIRQ                                    (0X0001U)      /* Interrupt Flag */
#define BITP_UART_IIR_STAT                                    (1U)           /* Interrupt Status */
#define BITL_UART_IIR_STAT                                    (3U)           /* Interrupt Status */
#define BITM_UART_IIR_STAT                                    (0X000EU)      /* Interrupt Status */
#define BITP_UART_IIR_FEND                                    (6U)           /* FIFO Enabled */
#define BITL_UART_IIR_FEND                                    (2U)           /* FIFO Enabled */
#define BITM_UART_IIR_FEND                                    (0X00C0U)      /* FIFO Enabled */

#define ENUM_UART_IIR_FEND_DIS                                (0X0000U)      /* FIFO Not Enabled, 16450 Mode */
#define ENUM_UART_IIR_FEND_EN                                 (0X0003U)      /* FIFO Enabled, 16550 Mode */
#define ENUM_UART_IIR_STAT_MODEMINT                           (0X0000U)      /* Modem Status Interrupt (Read MSR Register to Clear) */
#define ENUM_UART_IIR_STAT_TXEMPTYINT                         (0X0001U)      /* Transmit Buffer Empty Interrupt (Write to Tx Register or Read IIR Register to Clear) */
#define ENUM_UART_IIR_STAT_RXFULLINT                          (0X0002U)      /* Receive Buffer Full Interrupt (Read Rx Register to Clear) */
#define ENUM_UART_IIR_STAT_RXTIMEOUTINT                       (0X0006U)      /* Receive FIFO Time-out Interrupt (Read Rx Register to Clear) */
#define ENUM_UART_IIR_STAT_RXLINEINT                          (0X0003U)      /* Receive Line Status Interrupt (Read LSR Register to Clear) */

/* ----------------------------------------------------------------------------------------------------
          LCR                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_UART_LCR_WLS                                     (0U)           /* Word Length Select */
#define BITL_UART_LCR_WLS                                     (2U)           /* Word Length Select */
#define BITM_UART_LCR_WLS                                     (0X0003U)      /* Word Length Select */
#define BITP_UART_LCR_STOPPED                                 (2U)           /* Stop Bit */
#define BITL_UART_LCR_STOPPED                                 (1U)           /* Stop Bit */
#define BITM_UART_LCR_STOPPED                                 (0X0004U)      /* Stop Bit */
#define BITP_UART_LCR_PEN                                     (3U)           /* Parity Enable */
#define BITL_UART_LCR_PEN                                     (1U)           /* Parity Enable */
#define BITM_UART_LCR_PEN                                     (0X0008U)      /* Parity Enable */
#define BITP_UART_LCR_EPS                                     (4U)           /* Parity Select */
#define BITL_UART_LCR_EPS                                     (1U)           /* Parity Select */
#define BITM_UART_LCR_EPS                                     (0X0010U)      /* Parity Select */
#define BITP_UART_LCR_SP                                      (5U)           /* Stick Parity */
#define BITL_UART_LCR_SP                                      (1U)           /* Stick Parity */
#define BITM_UART_LCR_SP                                      (0X0020U)      /* Stick Parity */
#define BITP_UART_LCR_BRK                                     (6U)           /* Set Break */
#define BITL_UART_LCR_BRK                                     (1U)           /* Set Break */
#define BITM_UART_LCR_BRK                                     (0X0040U)      /* Set Break */

#define ENUM_UART_LCR_SP_STICK                                (0X0000U)      /* Parity Will Not Be Forced Based on Parity Select and Parity Enable Bits. */
#define ENUM_UART_LCR_SP_EPSPEN                               (0X0001U)      /* Parity Forced Based on Parity Select and Parity Enable Bits. */
#define ENUM_UART_LCR_EPS_ODD                                 (0X0000U)      /* Odd Parity Will Be Transmitted and Checked. */
#define ENUM_UART_LCR_EPS_EVEN                                (0X0001U)      /* Even Parity Will Be Transmitted and Checked. */
#define ENUM_UART_LCR_PEN_DIS                                 (0X0000U)      /* Parity Will Not Be Transmitted or Checked. */
#define ENUM_UART_LCR_PEN_EN                                  (0X0001U)      /* Parity Will Be Transmitted and Checked. */
#define ENUM_UART_LCR_STOPPED_ONTBIT                          (0X0000U)      /* Send 1 Stop Bit Regardless of the Word Length Select Bit */
#define ENUM_UART_LCR_STOPPED_MULTIBIT                        (0X0001U)      /* Send a Number of Stop Bits Based on the Word Length as Follows: WLS = 00, 1.5 Stop Bits Transmitted (5-bit Word Length) WLS = 01 or 10 or 11, 2 Stop Bits Transmitted (6 or 7 or 8-bit Word Length) */
#define ENUM_UART_LCR_WLS_BITS5                               (0X0000U)      /* 5 Bits */
#define ENUM_UART_LCR_WLS_BITS6                               (0X0001U)      /* 6 Bits */
#define ENUM_UART_LCR_WLS_BITS7                               (0X0002U)      /* 7 Bits */
#define ENUM_UART_LCR_WLS_BITS8                               (0X0003U)      /* 8 Bits */

/* ----------------------------------------------------------------------------------------------------
          MCR                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_UART_MCR_DTR                                     (0U)           /* Data Terminal Ready */
#define BITL_UART_MCR_DTR                                     (1U)           /* Data Terminal Ready */
#define BITM_UART_MCR_DTR                                     (0X0001U)      /* Data Terminal Ready */
#define BITP_UART_MCR_RTS                                     (1U)           /* Request to Send */
#define BITL_UART_MCR_RTS                                     (1U)           /* Request to Send */
#define BITM_UART_MCR_RTS                                     (0X0002U)      /* Request to Send */
#define BITP_UART_MCR_OUT1                                    (2U)           /* Output 1 */
#define BITL_UART_MCR_OUT1                                    (1U)           /* Output 1 */
#define BITM_UART_MCR_OUT1                                    (0X0004U)      /* Output 1 */
#define BITP_UART_MCR_OUT2                                    (3U)           /* Output 2 */
#define BITL_UART_MCR_OUT2                                    (1U)           /* Output 2 */
#define BITM_UART_MCR_OUT2                                    (0X0008U)      /* Output 2 */
#define BITP_UART_MCR_LOOPBACK                                (4U)           /* Loop Back Mode */
#define BITL_UART_MCR_LOOPBACK                                (1U)           /* Loop Back Mode */
#define BITM_UART_MCR_LOOPBACK                                (0X0010U)      /* Loop Back Mode */

#define ENUM_UART_MCR_LOOPBACK_DIS                            (0X0000U)      /* Normal Operation - Loopback Disabled */
#define ENUM_UART_MCR_LOOPBACK_EN                             (0X0001U)      /* Loopback Enabled */
#define ENUM_UART_MCR_OUT2_FORCE1                             (0X0000U)      /* Force NOUT2 to a Logic 1 */
#define ENUM_UART_MCR_OUT2_FORCE0                             (0X0001U)      /* Force NOUT2 to a Logic 0 */
#define ENUM_UART_MCR_OUT1_FORCE1                             (0X0000U)      /* Force NOUT1 to a Logic 1 */
#define ENUM_UART_MCR_OUT1_FORCE0                             (0X0001U)      /* Force NOUT1 to a Logic 0 */
#define ENUM_UART_MCR_RTS_FORCE1                              (0X0000U)      /* Force NRTS to a Logic 1 */
#define ENUM_UART_MCR_RTS_FORCE0                              (0X0001U)      /* Force NRTS to a Logic 0 */
#define ENUM_UART_MCR_DTR_FORCE1                              (0X0000U)      /* Force NDTR to a Logic 1 */
#define ENUM_UART_MCR_DTR_FORCE0                              (0X0001U)      /* Force NDTR to a Logic 0 */

/* ----------------------------------------------------------------------------------------------------
          LSR                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_UART_LSR_DR                                      (0U)           /* Data Ready */
#define BITL_UART_LSR_DR                                      (1U)           /* Data Ready */
#define BITM_UART_LSR_DR                                      (0X0001U)      /* Data Ready */
#define BITP_UART_LSR_OE                                      (1U)           /* Overrun Error */
#define BITL_UART_LSR_OE                                      (1U)           /* Overrun Error */
#define BITM_UART_LSR_OE                                      (0X0002U)      /* Overrun Error */
#define BITP_UART_LSR_PE                                      (2U)           /* Parity Error */
#define BITL_UART_LSR_PE                                      (1U)           /* Parity Error */
#define BITM_UART_LSR_PE                                      (0X0004U)      /* Parity Error */
#define BITP_UART_LSR_FE                                      (3U)           /* Framing Error */
#define BITL_UART_LSR_FE                                      (1U)           /* Framing Error */
#define BITM_UART_LSR_FE                                      (0X0008U)      /* Framing Error */
#define BITP_UART_LSR_BI                                      (4U)           /* Break Indicator */
#define BITL_UART_LSR_BI                                      (1U)           /* Break Indicator */
#define BITM_UART_LSR_BI                                      (0X0010U)      /* Break Indicator */
#define BITP_UART_LSR_THRE                                    (5U)           /* Transmit Register Empty */
#define BITL_UART_LSR_THRE                                    (1U)           /* Transmit Register Empty */
#define BITM_UART_LSR_THRE                                    (0X0020U)      /* Transmit Register Empty */
#define BITP_UART_LSR_TEMT                                    (6U)           /* Transmit and Shift Register Empty Status */
#define BITL_UART_LSR_TEMT                                    (1U)           /* Transmit and Shift Register Empty Status */
#define BITM_UART_LSR_TEMT                                    (0X0040U)      /* Transmit and Shift Register Empty Status */
#define BITP_UART_LSR_FIFOERR                                 (7U)           /* FIFO Error */
#define BITL_UART_LSR_FIFOERR                                 (1U)           /* FIFO Error */
#define BITM_UART_LSR_FIFOERR                                 (0X0080U)      /* FIFO Error */

#define ENUM_UART_LSR_TEMT_NOTEMPTY                           (0X0000U)      /* Tx Register Has Been Written to and Contains Data to Be Transmitted. Care Should Be Taken Not to Overwrite Its Value. */
#define ENUM_UART_LSR_TEMT_EMPTY                              (0X0001U)      /* Tx Register and the Transmit Shift Register are Empty and It is Safe to Write New Data to the Tx Register. Data Has Been Transmitted. */
#define ENUM_UART_LSR_THRE_NOTEMPTY                           (0X0000U)      /* Tx Register Has Been Written to and Contains Data to Be Transmitted. Care Should Be Taken Not to Overwrite Its Value. */
#define ENUM_UART_LSR_THRE_EMPTY                              (0X0001U)      /* Tx Register is Empty and It is Safe to Write New Data to Tx Register the Previous Data May Not Have Been Transmitted Yet and Can Still Be Present in the Shift Register. */
#define ENUM_UART_LSR_FE_OKAY                                 (0X0000U)      /* No Invalid Stop Bit Was Detected. */
#define ENUM_UART_LSR_FE_INVALIDSTOP                          (0X0001U)      /* An Invalid Stop Bit Was Detected on a Received Word. */
#define ENUM_UART_LSR_PE_NOERR                                (0X0000U)      /* No Parity Error Was Detected. */
#define ENUM_UART_LSR_PE_ERRORS                               (0X0001U)      /* A Parity Error Occurred on a Received Word. */
#define ENUM_UART_LSR_OE_OKAY                                 (0X0000U)      /* Receive Data Has Not Been Overwritten. */
#define ENUM_UART_LSR_OE_OVERWRITTEN                          (0X0001U)      /* Receive Data Was Overwritten by New Data Before Rx Register Was Read. */
#define ENUM_UART_LSR_DR_NOTREADY                             (0X0000U)      /* Rx Register Does Not Contain New Receive Data. */
#define ENUM_UART_LSR_DR_READY                                (0X0001U)      /* Rx Register Contains Receive Data That Should Be Read. */

/* ----------------------------------------------------------------------------------------------------
          MSR                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_UART_MSR_DCTS                                    (0U)           /* Delta CTS */
#define BITL_UART_MSR_DCTS                                    (1U)           /* Delta CTS */
#define BITM_UART_MSR_DCTS                                    (0X0001U)      /* Delta CTS */
#define BITP_UART_MSR_DDSR                                    (1U)           /* Delta DSR */
#define BITL_UART_MSR_DDSR                                    (1U)           /* Delta DSR */
#define BITM_UART_MSR_DDSR                                    (0X0002U)      /* Delta DSR */
#define BITP_UART_MSR_TERI                                    (2U)           /* Trailing Edge RI */
#define BITL_UART_MSR_TERI                                    (1U)           /* Trailing Edge RI */
#define BITM_UART_MSR_TERI                                    (0X0004U)      /* Trailing Edge RI */
#define BITP_UART_MSR_DDCD                                    (3U)           /* Delta DCD */
#define BITL_UART_MSR_DDCD                                    (1U)           /* Delta DCD */
#define BITM_UART_MSR_DDCD                                    (0X0008U)      /* Delta DCD */
#define BITP_UART_MSR_CTS                                     (4U)           /* Clear to Send */
#define BITL_UART_MSR_CTS                                     (1U)           /* Clear to Send */
#define BITM_UART_MSR_CTS                                     (0X0010U)      /* Clear to Send */
#define BITP_UART_MSR_DSR                                     (5U)           /* Data Set Ready */
#define BITL_UART_MSR_DSR                                     (1U)           /* Data Set Ready */
#define BITM_UART_MSR_DSR                                     (0X0020U)      /* Data Set Ready */
#define BITP_UART_MSR_RI                                      (6U)           /* Ring Indicator */
#define BITL_UART_MSR_RI                                      (1U)           /* Ring Indicator */
#define BITM_UART_MSR_RI                                      (0X0040U)      /* Ring Indicator */
#define BITP_UART_MSR_DCD                                     (7U)           /* Data Carrier Detect */
#define BITL_UART_MSR_DCD                                     (1U)           /* Data Carrier Detect */
#define BITM_UART_MSR_DCD                                     (0X0080U)      /* Data Carrier Detect */

#define ENUM_UART_MSR_DCD_HIGH                                (0X0000U)      /* NDCD is Currently Logic High. */
#define ENUM_UART_MSR_DCD_LOW                                 (0X0001U)      /* NDCD is Currently Logic Low. */
#define ENUM_UART_MSR_RI_HIGH                                 (0X0000U)      /* NRI is Currently Logic High. */
#define ENUM_UART_MSR_RI_LOW                                  (0X0001U)      /* NRI is Currently Logic Low. */
#define ENUM_UART_MSR_DSR_HIGH                                (0X0000U)      /* NDSR is Currently Logic High */
#define ENUM_UART_MSR_DSR_LOW                                 (0X0001U)      /* NDSR is Currently Logic Low */
#define ENUM_UART_MSR_CTS_HIGH                                (0X0000U)      /* NCTS is Currently Logic High */
#define ENUM_UART_MSR_CTS_LOW                                 (0X0001U)      /* NCTS is Currently Logic Low */
#define ENUM_UART_MSR_DDCD_NOCHANGE                           (0X0000U)      /* Data Carrier Detect Bit Has Not Changed State Since MSR Register Was Last Read */
#define ENUM_UART_MSR_DDCD_CHANGED                            (0X0001U)      /* Data Carrier Detect Bit Changed State Since MSR Register Last Read */
#define ENUM_UART_MSR_TERI_NOTCHANGED                         (0X0000U)      /* Ring Indicator Bit Has Not Changed from 0 to 1 Since MSR Register Last Read */
#define ENUM_UART_MSR_TERI_CHANGED                            (0X0001U)      /* Ring Indicator Bit Changed from 0 to 1 Since MSR Register Last Read */
#define ENUM_UART_MSR_DDSR_NOCHANGE                           (0X0000U)      /* Data Set Ready Bit Has Not Changed State Since MSR Register Was Last Read */
#define ENUM_UART_MSR_DDSR_CHANGED                            (0X0001U)      /* Data Set Ready Bit Changed State Since MSR Register Last Read */
#define ENUM_UART_MSR_DCTS_NOCHANGE                           (0X0000U)      /* Clear to Send Bit Has Not Changed State Since MSR Register Was Last Read */
#define ENUM_UART_MSR_DCTS_CHANGED                            (0X0001U)      /* Clear to Send Bit Changed State Since MSR Register Last Read */

/* ----------------------------------------------------------------------------------------------------
          SCR                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_UART_SCR_SCR                                     (0U)           /* Scratch */
#define BITL_UART_SCR_SCR                                     (8U)           /* Scratch */
#define BITM_UART_SCR_SCR                                     (0X00FFU)      /* Scratch */

/* ----------------------------------------------------------------------------------------------------
          FCR                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_UART_FCR_FIFOEN                                  (0U)           /* FIFO Enable as to Work in 16550 Mode */
#define BITL_UART_FCR_FIFOEN                                  (1U)           /* FIFO Enable as to Work in 16550 Mode */
#define BITM_UART_FCR_FIFOEN                                  (0X0001U)      /* FIFO Enable as to Work in 16550 Mode */
#define BITP_UART_FCR_RFCLR                                   (1U)           /* Clear RX FIFO */
#define BITL_UART_FCR_RFCLR                                   (1U)           /* Clear RX FIFO */
#define BITM_UART_FCR_RFCLR                                   (0X0002U)      /* Clear RX FIFO */
#define BITP_UART_FCR_TFCLR                                   (2U)           /* Clear TX FIFO */
#define BITL_UART_FCR_TFCLR                                   (1U)           /* Clear TX FIFO */
#define BITM_UART_FCR_TFCLR                                   (0X0004U)      /* Clear TX FIFO */
#define BITP_UART_FCR_FDMAMD                                  (3U)           /* FIFO DMA Mode */
#define BITL_UART_FCR_FDMAMD                                  (1U)           /* FIFO DMA Mode */
#define BITM_UART_FCR_FDMAMD                                  (0X0008U)      /* FIFO DMA Mode */
#define BITP_UART_FCR_RFTRIG                                  (6U)           /* RX FIFO Trig Level */
#define BITL_UART_FCR_RFTRIG                                  (2U)           /* RX FIFO Trig Level */
#define BITM_UART_FCR_RFTRIG                                  (0X00C0U)      /* RX FIFO Trig Level */

#define ENUM_UART_FCR_RFTRIG_BYTE1                            (0X0000U)      /* 1 Byte to Trig RX Interrupt */
#define ENUM_UART_FCR_RFTRIG_BYTE4                            (0X0001U)      /* 4 Byte to Trig RX Interrupt */
#define ENUM_UART_FCR_RFTRIG_BYTE8                            (0X0002U)      /* 8 Byte to Trig RX Interrupt */
#define ENUM_UART_FCR_RFTRIG_BYTE14                           (0X0003U)      /* 14 Byte to Trig RX Interrupt */
#define ENUM_UART_FCR_FDMAMD_MODE0                            (0X0000U)      /* In DMA Mode 0, RX DMA Request Will Be Asserted Whenever There's Data in RBR or RX FIFO and De-assert Whenever RBR or RX FIFO is Empty; TX DMA Request Will Be Asserted Whenever THR or TX FIFO is Empty and De-assert Whenever Data Written To. */
#define ENUM_UART_FCR_FDMAMD_MODE1                            (0X0001U)      /* In DMA Mode 1, RX DMA Request Will Be Asserted Whenever RX FIFO Trig Level or Time Out Reached and De-assert Thereafter When RX FIFO is Empty; TX DMA Request Will Be Asserted Whenever TX FIFO is Empty and De-assert Thereafter When TX FIFO is Completely Filled up Full. */

/* ----------------------------------------------------------------------------------------------------
          FBR                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_UART_FBR_DIVN                                    (0U)           /* Fractional Baud Rate N Divide Bits 0 to 2047 */
#define BITL_UART_FBR_DIVN                                    (11U)          /* Fractional Baud Rate N Divide Bits 0 to 2047 */
#define BITM_UART_FBR_DIVN                                    (0X07FFU)      /* Fractional Baud Rate N Divide Bits 0 to 2047 */
#define BITP_UART_FBR_DIVM                                    (11U)          /* Fractional Baud Rate M Divide Bits 1 to 3 */
#define BITL_UART_FBR_DIVM                                    (2U)           /* Fractional Baud Rate M Divide Bits 1 to 3 */
#define BITM_UART_FBR_DIVM                                    (0X1800U)      /* Fractional Baud Rate M Divide Bits 1 to 3 */
#define BITP_UART_FBR_FBEN                                    (15U)          /* Fractional Baud Rate Generator Enable */
#define BITL_UART_FBR_FBEN                                    (1U)           /* Fractional Baud Rate Generator Enable */
#define BITM_UART_FBR_FBEN                                    (0X8000U)      /* Fractional Baud Rate Generator Enable */

/* ----------------------------------------------------------------------------------------------------
          DIV                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_UART_DIV_DIV                                     (0U)           /* Baud Rate Divider */
#define BITL_UART_DIV_DIV                                     (16U)          /* Baud Rate Divider */
#define BITM_UART_DIV_DIV                                     (0XFFFFU)      /* Baud Rate Divider */

/* ----------------------------------------------------------------------------------------------------
          LCR2                                                  Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_UART_LCR2_OSR                                    (0U)           /* Over Sample Rate */
#define BITL_UART_LCR2_OSR                                    (2U)           /* Over Sample Rate */
#define BITM_UART_LCR2_OSR                                    (0X0003U)      /* Over Sample Rate */

#define ENUM_UART_LCR2_OSR_OSR4                               (0X0000U)      /* Over Sample by 4 */
#define ENUM_UART_LCR2_OSR_OSR8                               (0X0001U)      /* Over Sample by 8 */
#define ENUM_UART_LCR2_OSR_OSR16                              (0X0002U)      /* Over Sample by 16 */
#define ENUM_UART_LCR2_OSR_OSR32                              (0X0003U)      /* Over Sample by 32 */

/* ----------------------------------------------------------------------------------------------------
          CTL                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_UART_CTL_FORCECLK                                (1U)           /* Force UCLK on */
#define BITL_UART_CTL_FORCECLK                                (1U)           /* Force UCLK on */
#define BITM_UART_CTL_FORCECLK                                (0X0002U)      /* Force UCLK on */
#define BITP_UART_CTL_RXINV                                   (4U)           /* Invert Receiver Line */
#define BITL_UART_CTL_RXINV                                   (1U)           /* Invert Receiver Line */
#define BITM_UART_CTL_RXINV                                   (0X0010U)      /* Invert Receiver Line */
#define BITP_UART_CTL_REV                                     (8U)           /* UART Revision ID */
#define BITL_UART_CTL_REV                                     (8U)           /* UART Revision ID */
#define BITM_UART_CTL_REV                                     (0XFF00U)      /* UART Revision ID */

#define ENUM_UART_CTL_RXINV_EN000                             (0X0000U)      /* Don't Invert Receiver Line (idling High) */
#define ENUM_UART_CTL_RXINV_EN001                             (0X0001U)      /* Invert Receiver Line (idling Low) */
#define ENUM_UART_CTL_FORCECLK_GATEUCLK                       (0X0000U)      /* UCLK Automatically Gated */
#define ENUM_UART_CTL_FORCECLK_UCLKEN                         (0X0001U)      /* UCLK Always Working */

/* ----------------------------------------------------------------------------------------------------
          RFC                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_UART_RFC_RFC                                     (0U)           /* Current RX FIFO Data Bytes */
#define BITL_UART_RFC_RFC                                     (5U)           /* Current RX FIFO Data Bytes */
#define BITM_UART_RFC_RFC                                     (0X001FU)      /* Current RX FIFO Data Bytes */

/* ----------------------------------------------------------------------------------------------------
          TFC                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_UART_TFC_TFC                                     (0U)           /* Current TX FIFO Data Bytes */
#define BITL_UART_TFC_TFC                                     (5U)           /* Current TX FIFO Data Bytes */
#define BITM_UART_TFC_TFC                                     (0X001FU)      /* Current TX FIFO Data Bytes */

/* ----------------------------------------------------------------------------------------------------
          RSC                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_UART_RSC_OENP                                    (0U)           /* SOUT_EN Polarity */
#define BITL_UART_RSC_OENP                                    (1U)           /* SOUT_EN Polarity */
#define BITM_UART_RSC_OENP                                    (0X0001U)      /* SOUT_EN Polarity */
#define BITP_UART_RSC_OENSP                                   (1U)           /* SOUT_EN De-assert Before Full Stop Bit(s) */
#define BITL_UART_RSC_OENSP                                   (1U)           /* SOUT_EN De-assert Before Full Stop Bit(s) */
#define BITM_UART_RSC_OENSP                                   (0X0002U)      /* SOUT_EN De-assert Before Full Stop Bit(s) */
#define BITP_UART_RSC_DISRX                                   (2U)           /* Disable RX When Transmitting */
#define BITL_UART_RSC_DISRX                                   (1U)           /* Disable RX When Transmitting */
#define BITM_UART_RSC_DISRX                                   (0X0004U)      /* Disable RX When Transmitting */
#define BITP_UART_RSC_DISTX                                   (3U)           /* Hold off TX When Receiving */
#define BITL_UART_RSC_DISTX                                   (1U)           /* Hold off TX When Receiving */
#define BITM_UART_RSC_DISTX                                   (0X0008U)      /* Hold off TX When Receiving */

#define ENUM_UART_RSC_OENSP_FULLBIT                           (0X0000U)      /* SOUT_EN De-assert Same Time as Full Stop Bit(s) */
#define ENUM_UART_RSC_OENSP_HALFBIT                           (0X0001U)      /* SOUT_EN De-assert Half-bit Earlier Than Full Stop Bit(s) */
#define ENUM_UART_RSC_OENP_HIGHACTIVE                         (0X0000U)      /* High Active */
#define ENUM_UART_RSC_OENP_LOWACTIVE                          (0X0001U)      /* Low Active */

/* ----------------------------------------------------------------------------------------------------
          ACR                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_UART_ACR_ABE                                     (0U)           /* Auto Baud Enable */
#define BITL_UART_ACR_ABE                                     (1U)           /* Auto Baud Enable */
#define BITM_UART_ACR_ABE                                     (0X0001U)      /* Auto Baud Enable */
#define BITP_UART_ACR_DNIEN                                   (1U)           /* Enable Done Interrupt */
#define BITL_UART_ACR_DNIEN                                   (1U)           /* Enable Done Interrupt */
#define BITM_UART_ACR_DNIEN                                   (0X0002U)      /* Enable Done Interrupt */
#define BITP_UART_ACR_TOIEN                                   (2U)           /* Enable Time-out Interrupt */
#define BITL_UART_ACR_TOIEN                                   (1U)           /* Enable Time-out Interrupt */
#define BITM_UART_ACR_TOIEN                                   (0X0004U)      /* Enable Time-out Interrupt */
#define BITP_UART_ACR_SEC                                     (4U)           /* Starting Edge Count */
#define BITL_UART_ACR_SEC                                     (3U)           /* Starting Edge Count */
#define BITM_UART_ACR_SEC                                     (0X0070U)      /* Starting Edge Count */
#define BITP_UART_ACR_EEC                                     (8U)           /* Ending Edge Count */
#define BITL_UART_ACR_EEC                                     (4U)           /* Ending Edge Count */
#define BITM_UART_ACR_EEC                                     (0X0F00U)      /* Ending Edge Count */

#define ENUM_UART_ACR_EEC_FIRST                               (0X0000U)      /* First Edge */
#define ENUM_UART_ACR_EEC_SECOND                              (0X0001U)      /* Second Edge */
#define ENUM_UART_ACR_EEC_THIRD                               (0X0002U)      /* Third Edge */
#define ENUM_UART_ACR_EEC_FOURTH                              (0X0003U)      /* Fourth Edge */
#define ENUM_UART_ACR_EEC_FIFTH                               (0X0004U)      /* Fifth Edge */
#define ENUM_UART_ACR_EEC_SIXTH                               (0X0005U)      /* Sixth Edge */
#define ENUM_UART_ACR_EEC_SEVENTH                             (0X0006U)      /* Seventh Edge */
#define ENUM_UART_ACR_EEC_EIGHTH                              (0X0007U)      /* Eighth Edge */
#define ENUM_UART_ACR_EEC_NINTH                               (0X0008U)      /* Ninth Edge */
#define ENUM_UART_ACR_SEC_FIRST                               (0X0000U)      /* First Edge (always the Falling Edge of START Bit) */
#define ENUM_UART_ACR_SEC_SECOND                              (0X0001U)      /* Second Edge */
#define ENUM_UART_ACR_SEC_THIRD                               (0X0002U)      /* Third Edge */
#define ENUM_UART_ACR_SEC_FOURTH                              (0X0003U)      /* Fourth Edge */
#define ENUM_UART_ACR_SEC_FIFTH                               (0X0004U)      /* Fifth Edge */
#define ENUM_UART_ACR_SEC_SIXTH                               (0X0005U)      /* Sixth Edge */
#define ENUM_UART_ACR_SEC_SEVENTH                             (0X0006U)      /* Seventh Edge */
#define ENUM_UART_ACR_SEC_EIGHTH                              (0X0007U)      /* Eighth Edge */

/* ----------------------------------------------------------------------------------------------------
          ASRL                                                  Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_UART_ASRL_DONE                                   (0U)           /* Auto Baud Done Successfully */
#define BITL_UART_ASRL_DONE                                   (1U)           /* Auto Baud Done Successfully */
#define BITM_UART_ASRL_DONE                                   (0X0001U)      /* Auto Baud Done Successfully */
#define BITP_UART_ASRL_BRKTO                                  (1U)           /* Timed Out Due to Long Time Break Condition */
#define BITL_UART_ASRL_BRKTO                                  (1U)           /* Timed Out Due to Long Time Break Condition */
#define BITM_UART_ASRL_BRKTO                                  (0X0002U)      /* Timed Out Due to Long Time Break Condition */
#define BITP_UART_ASRL_NSETO                                  (2U)           /* Timed Out Due to No Valid Start Edge Found */
#define BITL_UART_ASRL_NSETO                                  (1U)           /* Timed Out Due to No Valid Start Edge Found */
#define BITM_UART_ASRL_NSETO                                  (0X0004U)      /* Timed Out Due to No Valid Start Edge Found */
#define BITP_UART_ASRL_NEETO                                  (3U)           /* Timed Out Due to No Valid Ending Edge Found */
#define BITL_UART_ASRL_NEETO                                  (1U)           /* Timed Out Due to No Valid Ending Edge Found */
#define BITM_UART_ASRL_NEETO                                  (0X0008U)      /* Timed Out Due to No Valid Ending Edge Found */
#define BITP_UART_ASRL_CNT                                    (4U)           /* Auto Baud Counter Value */
#define BITL_UART_ASRL_CNT                                    (12U)          /* Auto Baud Counter Value */
#define BITM_UART_ASRL_CNT                                    (0XFFF0U)      /* Auto Baud Counter Value */

/* ----------------------------------------------------------------------------------------------------
          ASRH                                                  Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_UART_ASRH_CNT                                    (0U)           /* Auto Baud Counter Value */
#define BITL_UART_ASRH_CNT                                    (8U)           /* Auto Baud Counter Value */
#define BITM_UART_ASRH_CNT                                    (0X00FFU)      /* Auto Baud Counter Value */

#endif  /* end ifndef UART_ADDR_RDEF_H_ */


#ifndef I2C_ADDR_RDEF_H_
#define I2C_ADDR_RDEF_H_    /* I2C: I2C Master/Slave */

/* ====================================================================================================
        I2C Module Instances Address and Mask Definitions
   ==================================================================================================== */
#define INST_I2C0                                                (0X40020800U)    /* i2c0: */
#define INST_I2C1                                                (0X40020C00U)    /* i2c1: */
#define INST_I2C2                                                (0X40021000U)    /* i2c2: */

#define MASK_I2C                                                 (0X0000007FU)    /* I2C: I2C Master/Slave */

/* ====================================================================================================
        I2C Module Register Address Offset Definitions
   ==================================================================================================== */
#define IDX_I2C_MCTL                                            (0X00U)    /* Master Control */
#define IDX_I2C_MSTAT                                           (0X04U)    /* Master Status */
#define IDX_I2C_MRX                                             (0X08U)    /* Master Receive Data */
#define IDX_I2C_MTX                                             (0X0CU)    /* Master Transmit Data */
#define IDX_I2C_MRXCNT                                          (0X10U)    /* Master Receive Data Count */
#define IDX_I2C_MCRXCNT                                         (0X14U)    /* Master Current Receive Data Count */
#define IDX_I2C_ADDR0                                           (0X18U)    /* 1st Master Address Byte */
#define IDX_I2C_ADDR1                                           (0X1CU)    /* 2nd Master Address Byte */
#define IDX_I2C_BYT                                             (0X20U)    /* Start Byte */
#define IDX_I2C_DIV                                             (0X24U)    /* Serial Clock Period Divisor */
#define IDX_I2C_SCTL                                            (0X28U)    /* Slave Control */
#define IDX_I2C_SSTAT                                           (0X2CU)    /* Slave I2C Status/Error/IRQ */
#define IDX_I2C_SRX                                             (0X30U)    /* Slave Receive */
#define IDX_I2C_STX                                             (0X34U)    /* Slave Transmit */
#define IDX_I2C_ALT                                             (0X38U)    /* Hardware General Call ID */
#define IDX_I2C_ID0                                             (0X3CU)    /* 1st Slave Address Device ID */
#define IDX_I2C_ID1                                             (0X40U)    /* 2nd Slave Address Device ID */
#define IDX_I2C_ID2                                             (0X44U)    /* 3rd Slave Address Device ID */
#define IDX_I2C_ID3                                             (0X48U)    /* 4th Slave Address Device ID */
#define IDX_I2C_STAT                                            (0X4CU)    /* Master and Slave FIFO Status */
#define IDX_I2C_SHCTL                                           (0X50U)    /* Shared Control */
#define IDX_I2C_TCTL                                            (0X54U)    /* Timing Control Register */
#define IDX_I2C_ASTRETCH_SCL                                    (0X58U)    /* Automatic Stretch SCL Register */
#define IDX_I2C_IDFSTA                                          (0X5CU)    /* ID FIFO Status Register */
#define IDX_I2C_SLV_ADDR1                                       (0X60U)    /* Slave 10 Bits Address 1st Byte. */
#define IDX_I2C_SLV_ADDR2                                       (0X64U)    /* Slave 10 Bits Address 2nd Byte. */
#define IDX_I2C_SSTAT2                                          (0X68U)    /* Slave I2C Status/IRQ 2 */

/* ====================================================================================================
        I2C Module Register ResetValue Definitions
   ==================================================================================================== */
#define RSTVAL_I2C_MCTL                                            (0X0) 
#define RSTVAL_I2C_MSTAT                                           (0X6000) 
#define RSTVAL_I2C_MRX                                             (0X0) 
#define RSTVAL_I2C_MTX                                             (0X0) 
#define RSTVAL_I2C_MRXCNT                                          (0X0) 
#define RSTVAL_I2C_MCRXCNT                                         (0X0) 
#define RSTVAL_I2C_ADDR0                                           (0X0) 
#define RSTVAL_I2C_ADDR1                                           (0X0) 
#define RSTVAL_I2C_BYT                                             (0X0) 
#define RSTVAL_I2C_DIV                                             (0XC6C7) 
#define RSTVAL_I2C_SCTL                                            (0X0) 
#define RSTVAL_I2C_SSTAT                                           (0X1) 
#define RSTVAL_I2C_SRX                                             (0X0) 
#define RSTVAL_I2C_STX                                             (0X0) 
#define RSTVAL_I2C_ALT                                             (0X0) 
#define RSTVAL_I2C_ID0                                             (0X0) 
#define RSTVAL_I2C_ID1                                             (0X0) 
#define RSTVAL_I2C_ID2                                             (0X0) 
#define RSTVAL_I2C_ID3                                             (0X0) 
#define RSTVAL_I2C_STAT                                            (0X0) 
#define RSTVAL_I2C_SHCTL                                           (0X0) 
#define RSTVAL_I2C_TCTL                                            (0X205) 
#define RSTVAL_I2C_ASTRETCH_SCL                                    (0X0) 
#define RSTVAL_I2C_IDFSTA                                          (0X0) 
#define RSTVAL_I2C_SLV_ADDR1                                       (0X0) 
#define RSTVAL_I2C_SLV_ADDR2                                       (0X0) 
#define RSTVAL_I2C_SSTAT2                                          (0X0) 

/* ====================================================================================================
        I2C Module Register BitPositions, Lengths, Masks and Enumerations Definitions
   ==================================================================================================== */

/* ----------------------------------------------------------------------------------------------------
          MCTL                                                  Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_I2C_MCTL_MASEN                                   (0U)           /* Master Enable */
#define BITL_I2C_MCTL_MASEN                                   (1U)           /* Master Enable */
#define BITM_I2C_MCTL_MASEN                                   (0X0001U)      /* Master Enable */
#define BITP_I2C_MCTL_COMPETE                                 (1U)           /* Start Back-off Disable */
#define BITL_I2C_MCTL_COMPETE                                 (1U)           /* Start Back-off Disable */
#define BITM_I2C_MCTL_COMPETE                                 (0X0002U)      /* Start Back-off Disable */
#define BITP_I2C_MCTL_LOOPBACK                                (2U)           /* Internal Loopback Enable */
#define BITL_I2C_MCTL_LOOPBACK                                (1U)           /* Internal Loopback Enable */
#define BITM_I2C_MCTL_LOOPBACK                                (0X0004U)      /* Internal Loopback Enable */
#define BITP_I2C_MCTL_IENMRX                                  (4U)           /* Receive Request Interrupt Enable */
#define BITL_I2C_MCTL_IENMRX                                  (1U)           /* Receive Request Interrupt Enable */
#define BITM_I2C_MCTL_IENMRX                                  (0X0010U)      /* Receive Request Interrupt Enable */
#define BITP_I2C_MCTL_IENMTX                                  (5U)           /* Transmit Request Interrupt Enable. */
#define BITL_I2C_MCTL_IENMTX                                  (1U)           /* Transmit Request Interrupt Enable. */
#define BITM_I2C_MCTL_IENMTX                                  (0X0020U)      /* Transmit Request Interrupt Enable. */
#define BITP_I2C_MCTL_IENALOST                                (6U)           /* Arbitration Lost Interrupt Enable */
#define BITL_I2C_MCTL_IENALOST                                (1U)           /* Arbitration Lost Interrupt Enable */
#define BITM_I2C_MCTL_IENALOST                                (0X0040U)      /* Arbitration Lost Interrupt Enable */
#define BITP_I2C_MCTL_IENACK                                  (7U)           /* ACK Not Received Interrupt Enable */
#define BITL_I2C_MCTL_IENACK                                  (1U)           /* ACK Not Received Interrupt Enable */
#define BITM_I2C_MCTL_IENACK                                  (0X0080U)      /* ACK Not Received Interrupt Enable */
#define BITP_I2C_MCTL_IENCMP                                  (8U)           /* Transaction Completed (Or Stop Detected) Interrupt Enable */
#define BITL_I2C_MCTL_IENCMP                                  (1U)           /* Transaction Completed (Or Stop Detected) Interrupt Enable */
#define BITM_I2C_MCTL_IENCMP                                  (0X0100U)      /* Transaction Completed (Or Stop Detected) Interrupt Enable */
#define BITP_I2C_MCTL_MXMITDEC                                (9U)           /* Decrement Master TX FIFO Status When Transmitted One Byte */
#define BITL_I2C_MCTL_MXMITDEC                                (1U)           /* Decrement Master TX FIFO Status When Transmitted One Byte */
#define BITM_I2C_MCTL_MXMITDEC                                (0X0200U)      /* Decrement Master TX FIFO Status When Transmitted One Byte */
#define BITP_I2C_MCTL_MRXDMA                                  (10U)          /* Enable Master Rx DMA Request */
#define BITL_I2C_MCTL_MRXDMA                                  (1U)           /* Enable Master Rx DMA Request */
#define BITM_I2C_MCTL_MRXDMA                                  (0X0400U)      /* Enable Master Rx DMA Request */
#define BITP_I2C_MCTL_MTXDMA                                  (11U)          /* Enable Master Tx DMA Request */
#define BITL_I2C_MCTL_MTXDMA                                  (1U)           /* Enable Master Tx DMA Request */
#define BITM_I2C_MCTL_MTXDMA                                  (0X0800U)      /* Enable Master Tx DMA Request */
#define BITP_I2C_MCTL_BUS_CLR_EN                              (12U)          /* Bus-Clear Enable */
#define BITL_I2C_MCTL_BUS_CLR_EN                              (1U)           /* Bus-Clear Enable */
#define BITM_I2C_MCTL_BUS_CLR_EN                              (0X1000U)      /* Bus-Clear Enable */
#define BITP_I2C_MCTL_PRESTOP_BUS_CLR                         (13U)          /* Prestop Bus-Clear */
#define BITL_I2C_MCTL_PRESTOP_BUS_CLR                         (1U)           /* Prestop Bus-Clear */
#define BITM_I2C_MCTL_PRESTOP_BUS_CLR                         (0X2000U)      /* Prestop Bus-Clear */

/* ----------------------------------------------------------------------------------------------------
          MSTAT                                                 Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_I2C_MSTAT_MTXFSTA                                (0U)           /* Master Transmit FIFO Status */
#define BITL_I2C_MSTAT_MTXFSTA                                (2U)           /* Master Transmit FIFO Status */
#define BITM_I2C_MSTAT_MTXFSTA                                (0X0003U)      /* Master Transmit FIFO Status */
#define BITP_I2C_MSTAT_MTXREQ                                 (2U)           /* Master Transmit Interrupt Bit */
#define BITL_I2C_MSTAT_MTXREQ                                 (1U)           /* Master Transmit Interrupt Bit */
#define BITM_I2C_MSTAT_MTXREQ                                 (0X0004U)      /* Master Transmit Interrupt Bit */
#define BITP_I2C_MSTAT_MRXREQ                                 (3U)           /* Master Receive Request */
#define BITL_I2C_MSTAT_MRXREQ                                 (1U)           /* Master Receive Request */
#define BITM_I2C_MSTAT_MRXREQ                                 (0X0008U)      /* Master Receive Request */
#define BITP_I2C_MSTAT_NACKADDR                               (4U)           /* ACK Not Received in Response to an Address */
#define BITL_I2C_MSTAT_NACKADDR                               (1U)           /* ACK Not Received in Response to an Address */
#define BITM_I2C_MSTAT_NACKADDR                               (0X0010U)      /* ACK Not Received in Response to an Address */
#define BITP_I2C_MSTAT_ALOST                                  (5U)           /* Arbitration Lost */
#define BITL_I2C_MSTAT_ALOST                                  (1U)           /* Arbitration Lost */
#define BITM_I2C_MSTAT_ALOST                                  (0X0020U)      /* Arbitration Lost */
#define BITP_I2C_MSTAT_MBUSY                                  (6U)           /* Master Busy */
#define BITL_I2C_MSTAT_MBUSY                                  (1U)           /* Master Busy */
#define BITM_I2C_MSTAT_MBUSY                                  (0X0040U)      /* Master Busy */
#define BITP_I2C_MSTAT_NACKDATA                               (7U)           /* ACK Not Received in Response to Data Write */
#define BITL_I2C_MSTAT_NACKDATA                               (1U)           /* ACK Not Received in Response to Data Write */
#define BITM_I2C_MSTAT_NACKDATA                               (0X0080U)      /* ACK Not Received in Response to Data Write */
#define BITP_I2C_MSTAT_TCOMP                                  (8U)           /* Transaction Complete or Stop Detected */
#define BITL_I2C_MSTAT_TCOMP                                  (1U)           /* Transaction Complete or Stop Detected */
#define BITM_I2C_MSTAT_TCOMP                                  (0X0100U)      /* Transaction Complete or Stop Detected */
#define BITP_I2C_MSTAT_MRXOF                                  (9U)           /* Master Receive FIFO Overflow */
#define BITL_I2C_MSTAT_MRXOF                                  (1U)           /* Master Receive FIFO Overflow */
#define BITM_I2C_MSTAT_MRXOF                                  (0X0200U)      /* Master Receive FIFO Overflow */
#define BITP_I2C_MSTAT_LINEBUSY                               (10U)          /* Line is Busy */
#define BITL_I2C_MSTAT_LINEBUSY                               (1U)           /* Line is Busy */
#define BITM_I2C_MSTAT_LINEBUSY                               (0X0400U)      /* Line is Busy */
#define BITP_I2C_MSTAT_MSTOP                                  (11U)          /* STOP Driven by This I2C Master */
#define BITL_I2C_MSTAT_MSTOP                                  (1U)           /* STOP Driven by This I2C Master */
#define BITM_I2C_MSTAT_MSTOP                                  (0X0800U)      /* STOP Driven by This I2C Master */
#define BITP_I2C_MSTAT_MTXUFLOW                               (12U)          /* Master Transmit Underflow */
#define BITL_I2C_MSTAT_MTXUFLOW                               (1U)           /* Master Transmit Underflow */
#define BITM_I2C_MSTAT_MTXUFLOW                               (0X1000U)      /* Master Transmit Underflow */
#define BITP_I2C_MSTAT_SDA_FILTERED                           (13U)          /* State of SDA Line */
#define BITL_I2C_MSTAT_SDA_FILTERED                           (1U)           /* State of SDA Line */
#define BITM_I2C_MSTAT_SDA_FILTERED                           (0X2000U)      /* State of SDA Line */
#define BITP_I2C_MSTAT_SCL_FILTERED                           (14U)          /* State of SCL Line */
#define BITL_I2C_MSTAT_SCL_FILTERED                           (1U)           /* State of SCL Line */
#define BITM_I2C_MSTAT_SCL_FILTERED                           (0X4000U)      /* State of SCL Line */
#define BITP_I2C_MSTAT_MSTR_HS_MODE                           (15U)          /* Master High Speed Mode Flag */
#define BITL_I2C_MSTAT_MSTR_HS_MODE                           (1U)           /* Master High Speed Mode Flag */
#define BITM_I2C_MSTAT_MSTR_HS_MODE                           (0X8000U)      /* Master High Speed Mode Flag */

/* ----------------------------------------------------------------------------------------------------
          MRX                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_I2C_MRX_ICMRX                                    (0U)           /* Master Receive Register */
#define BITL_I2C_MRX_ICMRX                                    (8U)           /* Master Receive Register */
#define BITM_I2C_MRX_ICMRX                                    (0X00FFU)      /* Master Receive Register */

/* ----------------------------------------------------------------------------------------------------
          MTX                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_I2C_MTX_I2CMRX                                   (0U)           /* Master Transmit Register */
#define BITL_I2C_MTX_I2CMRX                                   (8U)           /* Master Transmit Register */
#define BITM_I2C_MTX_I2CMRX                                   (0X00FFU)      /* Master Transmit Register */

/* ----------------------------------------------------------------------------------------------------
          MRXCNT                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_I2C_MRXCNT_COUNT                                 (0U)           /* Receive Count */
#define BITL_I2C_MRXCNT_COUNT                                 (8U)           /* Receive Count */
#define BITM_I2C_MRXCNT_COUNT                                 (0X00FFU)      /* Receive Count */
#define BITP_I2C_MRXCNT_EXTEND                                (8U)           /* Extended Read */
#define BITL_I2C_MRXCNT_EXTEND                                (1U)           /* Extended Read */
#define BITM_I2C_MRXCNT_EXTEND                                (0X0100U)      /* Extended Read */

/* ----------------------------------------------------------------------------------------------------
          MCRXCNT                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_I2C_MCRXCNT_COUNT                                (0U)           /* Current Receive Count */
#define BITL_I2C_MCRXCNT_COUNT                                (8U)           /* Current Receive Count */
#define BITM_I2C_MCRXCNT_COUNT                                (0X00FFU)      /* Current Receive Count */

/* ----------------------------------------------------------------------------------------------------
          ADDR0                                                 Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_I2C_ADDR0_ADR1                                   (0U)           /* Address Byte 1 */
#define BITL_I2C_ADDR0_ADR1                                   (8U)           /* Address Byte 1 */
#define BITM_I2C_ADDR0_ADR1                                   (0X00FFU)      /* Address Byte 1 */

/* ----------------------------------------------------------------------------------------------------
          ADDR1                                                 Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_I2C_ADDR1_ADR2                                   (0U)           /* Address Byte 2 */
#define BITL_I2C_ADDR1_ADR2                                   (8U)           /* Address Byte 2 */
#define BITM_I2C_ADDR1_ADR2                                   (0X00FFU)      /* Address Byte 2 */

/* ----------------------------------------------------------------------------------------------------
          BYT                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_I2C_BYT_SBYTE                                    (0U)           /* Start Byte */
#define BITL_I2C_BYT_SBYTE                                    (8U)           /* Start Byte */
#define BITM_I2C_BYT_SBYTE                                    (0X00FFU)      /* Start Byte */

/* ----------------------------------------------------------------------------------------------------
          DIV                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_I2C_DIV_LOW                                      (0U)           /* Serial Clock Low Time */
#define BITL_I2C_DIV_LOW                                      (8U)           /* Serial Clock Low Time */
#define BITM_I2C_DIV_LOW                                      (0X00FFU)      /* Serial Clock Low Time */
#define BITP_I2C_DIV_HIGH                                     (8U)           /* Serial Clock High Time */
#define BITL_I2C_DIV_HIGH                                     (8U)           /* Serial Clock High Time */
#define BITM_I2C_DIV_HIGH                                     (0XFF00U)      /* Serial Clock High Time */

/* ----------------------------------------------------------------------------------------------------
          SCTL                                                  Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_I2C_SCTL_SLVEN                                   (0U)           /* Slave Enable */
#define BITL_I2C_SCTL_SLVEN                                   (1U)           /* Slave Enable */
#define BITM_I2C_SCTL_SLVEN                                   (0X0001U)      /* Slave Enable */
#define BITP_I2C_SCTL_ADR10EN                                 (1U)           /* Enabled 10-bit Addressing */
#define BITL_I2C_SCTL_ADR10EN                                 (1U)           /* Enabled 10-bit Addressing */
#define BITM_I2C_SCTL_ADR10EN                                 (0X0002U)      /* Enabled 10-bit Addressing */
#define BITP_I2C_SCTL_GCEN                                    (2U)           /* General Call Enable */
#define BITL_I2C_SCTL_GCEN                                    (1U)           /* General Call Enable */
#define BITM_I2C_SCTL_GCEN                                    (0X0004U)      /* General Call Enable */
#define BITP_I2C_SCTL_HGCEN                                   (3U)           /* Hardware General Call Enable */
#define BITL_I2C_SCTL_HGCEN                                   (1U)           /* Hardware General Call Enable */
#define BITM_I2C_SCTL_HGCEN                                   (0X0008U)      /* Hardware General Call Enable */
#define BITP_I2C_SCTL_GCSBCLR                                 (4U)           /* General Call Status Bit Clear */
#define BITL_I2C_SCTL_GCSBCLR                                 (1U)           /* General Call Status Bit Clear */
#define BITM_I2C_SCTL_GCSBCLR                                 (0X0010U)      /* General Call Status Bit Clear */
#define BITP_I2C_SCTL_EARLYTXR                                (5U)           /* Early Transmit Request Mode */
#define BITL_I2C_SCTL_EARLYTXR                                (1U)           /* Early Transmit Request Mode */
#define BITM_I2C_SCTL_EARLYTXR                                (0X0020U)      /* Early Transmit Request Mode */
#define BITP_I2C_SCTL_NACK                                    (7U)           /* NACK Next Communication */
#define BITL_I2C_SCTL_NACK                                    (1U)           /* NACK Next Communication */
#define BITM_I2C_SCTL_NACK                                    (0X0080U)      /* NACK Next Communication */
#define BITP_I2C_SCTL_IENSTOP                                 (8U)           /* Stop Condition Detected Interrupt Enable */
#define BITL_I2C_SCTL_IENSTOP                                 (1U)           /* Stop Condition Detected Interrupt Enable */
#define BITM_I2C_SCTL_IENSTOP                                 (0X0100U)      /* Stop Condition Detected Interrupt Enable */
#define BITP_I2C_SCTL_IENSRX                                  (9U)           /* Slave Receive Request Interrupt Enable */
#define BITL_I2C_SCTL_IENSRX                                  (1U)           /* Slave Receive Request Interrupt Enable */
#define BITM_I2C_SCTL_IENSRX                                  (0X0200U)      /* Slave Receive Request Interrupt Enable */
#define BITP_I2C_SCTL_IENSTX                                  (10U)          /* Slave Transmit Request Interrupt Enable */
#define BITL_I2C_SCTL_IENSTX                                  (1U)           /* Slave Transmit Request Interrupt Enable */
#define BITM_I2C_SCTL_IENSTX                                  (0X0400U)      /* Slave Transmit Request Interrupt Enable */
#define BITP_I2C_SCTL_SXMITDEC                                (11U)          /* Decrement Slave Tx FIFO Status When Transmitted a Byte */
#define BITL_I2C_SCTL_SXMITDEC                                (1U)           /* Decrement Slave Tx FIFO Status When Transmitted a Byte */
#define BITM_I2C_SCTL_SXMITDEC                                (0X0800U)      /* Decrement Slave Tx FIFO Status When Transmitted a Byte */
#define BITP_I2C_SCTL_IENREPST                                (12U)          /* Repeated Start Interrupt Enable */
#define BITL_I2C_SCTL_IENREPST                                (1U)           /* Repeated Start Interrupt Enable */
#define BITM_I2C_SCTL_IENREPST                                (0X1000U)      /* Repeated Start Interrupt Enable */
#define BITP_I2C_SCTL_SRXDMA                                  (13U)          /* Enable Slave Rx DMA Request */
#define BITL_I2C_SCTL_SRXDMA                                  (1U)           /* Enable Slave Rx DMA Request */
#define BITM_I2C_SCTL_SRXDMA                                  (0X2000U)      /* Enable Slave Rx DMA Request */
#define BITP_I2C_SCTL_STXDMA                                  (14U)          /* Enable Slave Tx DMA Request */
#define BITL_I2C_SCTL_STXDMA                                  (1U)           /* Enable Slave Tx DMA Request */
#define BITM_I2C_SCTL_STXDMA                                  (0X4000U)      /* Enable Slave Tx DMA Request */
#define BITP_I2C_SCTL_ID_FIFO_EN                              (15U)          /* ID FIFO Enable */
#define BITL_I2C_SCTL_ID_FIFO_EN                              (1U)           /* ID FIFO Enable */
#define BITM_I2C_SCTL_ID_FIFO_EN                              (0X8000U)      /* ID FIFO Enable */

/* ----------------------------------------------------------------------------------------------------
          SSTAT                                                 Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_I2C_SSTAT_STXFSEREQ                              (0U)           /* Slave Tx FIFO Status or Early Request */
#define BITL_I2C_SSTAT_STXFSEREQ                              (1U)           /* Slave Tx FIFO Status or Early Request */
#define BITM_I2C_SSTAT_STXFSEREQ                              (0X0001U)      /* Slave Tx FIFO Status or Early Request */
#define BITP_I2C_SSTAT_STXUR                                  (1U)           /* Slave Transmit FIFO Underflow */
#define BITL_I2C_SSTAT_STXUR                                  (1U)           /* Slave Transmit FIFO Underflow */
#define BITM_I2C_SSTAT_STXUR                                  (0X0002U)      /* Slave Transmit FIFO Underflow */
#define BITP_I2C_SSTAT_STXREQ                                 (2U)           /* Slave Transmit Interrupt Bit */
#define BITL_I2C_SSTAT_STXREQ                                 (1U)           /* Slave Transmit Interrupt Bit */
#define BITM_I2C_SSTAT_STXREQ                                 (0X0004U)      /* Slave Transmit Interrupt Bit */
#define BITP_I2C_SSTAT_SRXREQ                                 (3U)           /* Slave Receive Request */
#define BITL_I2C_SSTAT_SRXREQ                                 (1U)           /* Slave Receive Request */
#define BITM_I2C_SSTAT_SRXREQ                                 (0X0008U)      /* Slave Receive Request */
#define BITP_I2C_SSTAT_SRXOF                                  (4U)           /* Slave Receive FIFO Overflow */
#define BITL_I2C_SSTAT_SRXOF                                  (1U)           /* Slave Receive FIFO Overflow */
#define BITM_I2C_SSTAT_SRXOF                                  (0X0010U)      /* Slave Receive FIFO Overflow */
#define BITP_I2C_SSTAT_NOACK                                  (5U)           /* Ack Not Generated by the Slave */
#define BITL_I2C_SSTAT_NOACK                                  (1U)           /* Ack Not Generated by the Slave */
#define BITM_I2C_SSTAT_NOACK                                  (0X0020U)      /* Ack Not Generated by the Slave */
#define BITP_I2C_SSTAT_SBUSY                                  (6U)           /* Slave Busy */
#define BITL_I2C_SSTAT_SBUSY                                  (1U)           /* Slave Busy */
#define BITM_I2C_SSTAT_SBUSY                                  (0X0040U)      /* Slave Busy */
#define BITP_I2C_SSTAT_GCINT                                  (7U)           /* General Call Interrupt */
#define BITL_I2C_SSTAT_GCINT                                  (1U)           /* General Call Interrupt */
#define BITM_I2C_SSTAT_GCINT                                  (0X0080U)      /* General Call Interrupt */
#define BITP_I2C_SSTAT_GCID                                   (8U)           /* General ID */
#define BITL_I2C_SSTAT_GCID                                   (2U)           /* General ID */
#define BITM_I2C_SSTAT_GCID                                   (0X0300U)      /* General ID */
#define BITP_I2C_SSTAT_STOP                                   (10U)          /* Stop After Start and Matching Address */
#define BITL_I2C_SSTAT_STOP                                   (1U)           /* Stop After Start and Matching Address */
#define BITM_I2C_SSTAT_STOP                                   (0X0400U)      /* Stop After Start and Matching Address */
#define BITP_I2C_SSTAT_IDMAT                                  (11U)          /* Device ID Matched */
#define BITL_I2C_SSTAT_IDMAT                                  (2U)           /* Device ID Matched */
#define BITM_I2C_SSTAT_IDMAT                                  (0X1800U)      /* Device ID Matched */
#define BITP_I2C_SSTAT_REPSTART                               (13U)          /* Repeated Start and Matching Address */
#define BITL_I2C_SSTAT_REPSTART                               (1U)           /* Repeated Start and Matching Address */
#define BITM_I2C_SSTAT_REPSTART                               (0X2000U)      /* Repeated Start and Matching Address */
#define BITP_I2C_SSTAT_START                                  (14U)          /* Start and Matching Address */
#define BITL_I2C_SSTAT_START                                  (1U)           /* Start and Matching Address */
#define BITM_I2C_SSTAT_START                                  (0X4000U)      /* Start and Matching Address */
#define BITP_I2C_SSTAT_SLV_HS_MODE                            (15U)          /* Slave High Speed Mode Flag */
#define BITL_I2C_SSTAT_SLV_HS_MODE                            (1U)           /* Slave High Speed Mode Flag */
#define BITM_I2C_SSTAT_SLV_HS_MODE                            (0X8000U)      /* Slave High Speed Mode Flag */

#define ENUM_I2C_SSTAT_IDMAT_ID0                              (0X0000U)      /* Received Address Matched ID Register 0 */
#define ENUM_I2C_SSTAT_IDMAT_ID1                              (0X0001U)      /* Received Address Matched ID Register 1 */
#define ENUM_I2C_SSTAT_IDMAT_ID2                              (0X0002U)      /* Received Address Matched ID Register 2 */
#define ENUM_I2C_SSTAT_IDMAT_ID3                              (0X0003U)      /* Received Address Matched ID Register 3 */
#define ENUM_I2C_SSTAT_GCID_NONE                              (0X0000U)      /* No general call */
#define ENUM_I2C_SSTAT_GCID_RESETPROGADDR                     (0X0001U)      /* General call Reset and Program Address */
#define ENUM_I2C_SSTAT_GCID_PROGADDR                          (0X0002U)      /* General Call Program Address */
#define ENUM_I2C_SSTAT_GCID_MATCHID                           (0X0003U)      /* General Call Matching Alternative ID */

/* ----------------------------------------------------------------------------------------------------
          SRX                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_I2C_SRX_I2CSRX                                   (0U)           /* Slave Receive Register */
#define BITL_I2C_SRX_I2CSRX                                   (8U)           /* Slave Receive Register */
#define BITM_I2C_SRX_I2CSRX                                   (0X00FFU)      /* Slave Receive Register */

/* ----------------------------------------------------------------------------------------------------
          STX                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_I2C_STX_I2CSTX                                   (0U)           /* Slave Transmit Register */
#define BITL_I2C_STX_I2CSTX                                   (8U)           /* Slave Transmit Register */
#define BITM_I2C_STX_I2CSTX                                   (0X00FFU)      /* Slave Transmit Register */
#define BITP_I2C_STX_ID_SEL                                   (8U)           /* ID FIFO Selection */
#define BITL_I2C_STX_ID_SEL                                   (2U)           /* ID FIFO Selection */
#define BITM_I2C_STX_ID_SEL                                   (0X0300U)      /* ID FIFO Selection */

#define ENUM_I2C_STX_ID_SEL_FIFO0                             (0X0000U)      /* Select Address Matched ID Register 0 */
#define ENUM_I2C_STX_ID_SEL_FIFO1                             (0X0001U)      /* Select Address Matched ID Register 1 */
#define ENUM_I2C_STX_ID_SEL_FIFO2                             (0X0002U)      /* Select Address Matched ID Register 2 */
#define ENUM_I2C_STX_ID_SEL_FIFO3                             (0X0003U)      /* Select Address Matched ID Register 3 */

/* ----------------------------------------------------------------------------------------------------
          ALT                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_I2C_ALT_ALT                                      (0U)           /* Slave Alt */
#define BITL_I2C_ALT_ALT                                      (8U)           /* Slave Alt */
#define BITM_I2C_ALT_ALT                                      (0X00FFU)      /* Slave Alt */

/* ----------------------------------------------------------------------------------------------------
          ID0                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_I2C_ID0_ID0                                      (0U)           /* Slave Device ID 0 */
#define BITL_I2C_ID0_ID0                                      (8U)           /* Slave Device ID 0 */
#define BITM_I2C_ID0_ID0                                      (0X00FFU)      /* Slave Device ID 0 */

/* ----------------------------------------------------------------------------------------------------
          ID1                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_I2C_ID1_ID1                                      (0U)           /* Slave Device ID 1 */
#define BITL_I2C_ID1_ID1                                      (8U)           /* Slave Device ID 1 */
#define BITM_I2C_ID1_ID1                                      (0X00FFU)      /* Slave Device ID 1 */

/* ----------------------------------------------------------------------------------------------------
          ID2                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_I2C_ID2_ID2                                      (0U)           /* Slave Device ID 2 */
#define BITL_I2C_ID2_ID2                                      (8U)           /* Slave Device ID 2 */
#define BITM_I2C_ID2_ID2                                      (0X00FFU)      /* Slave Device ID 2 */

/* ----------------------------------------------------------------------------------------------------
          ID3                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_I2C_ID3_ID3                                      (0U)           /* Slave Device ID 3 */
#define BITL_I2C_ID3_ID3                                      (8U)           /* Slave Device ID 3 */
#define BITM_I2C_ID3_ID3                                      (0X00FFU)      /* Slave Device ID 3 */

/* ----------------------------------------------------------------------------------------------------
          STAT                                                  Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_I2C_STAT_STXFSTA                                 (0U)           /* Slave Transmit FIFO Status */
#define BITL_I2C_STAT_STXFSTA                                 (2U)           /* Slave Transmit FIFO Status */
#define BITM_I2C_STAT_STXFSTA                                 (0X0003U)      /* Slave Transmit FIFO Status */
#define BITP_I2C_STAT_SRXFSTA                                 (2U)           /* Slave Receive FIFO Status */
#define BITL_I2C_STAT_SRXFSTA                                 (2U)           /* Slave Receive FIFO Status */
#define BITM_I2C_STAT_SRXFSTA                                 (0X000CU)      /* Slave Receive FIFO Status */
#define BITP_I2C_STAT_MTXSFA                                  (4U)           /* Master Transmit FIFO Status */
#define BITL_I2C_STAT_MTXSFA                                  (2U)           /* Master Transmit FIFO Status */
#define BITM_I2C_STAT_MTXSFA                                  (0X0030U)      /* Master Transmit FIFO Status */
#define BITP_I2C_STAT_MRXFSTA                                 (6U)           /* Master Receive FIFO Status */
#define BITL_I2C_STAT_MRXFSTA                                 (2U)           /* Master Receive FIFO Status */
#define BITM_I2C_STAT_MRXFSTA                                 (0X00C0U)      /* Master Receive FIFO Status */
#define BITP_I2C_STAT_SFLUSH                                  (8U)           /* Flush the Slave Transmit FIFO */
#define BITL_I2C_STAT_SFLUSH                                  (1U)           /* Flush the Slave Transmit FIFO */
#define BITM_I2C_STAT_SFLUSH                                  (0X0100U)      /* Flush the Slave Transmit FIFO */
#define BITP_I2C_STAT_MFLUSH                                  (9U)           /* Flush the Master Transmit FIFO */
#define BITL_I2C_STAT_MFLUSH                                  (1U)           /* Flush the Master Transmit FIFO */
#define BITM_I2C_STAT_MFLUSH                                  (0X0200U)      /* Flush the Master Transmit FIFO */
#define BITP_I2C_STAT_STX_FLUSH_ALL                           (10U)          /* Flush All the Slave Transmit ID FIFOs. */
#define BITL_I2C_STAT_STX_FLUSH_ALL                           (1U)           /* Flush All the Slave Transmit ID FIFOs. */
#define BITM_I2C_STAT_STX_FLUSH_ALL                           (0X0400U)      /* Flush All the Slave Transmit ID FIFOs. */

#define ENUM_I2C_STAT_MRXFSTA_EMPTY                           (0X0000U)      /* FIFO Empty */
#define ENUM_I2C_STAT_MRXFSTA_ONE                             (0X0001U)      /* 1 Bytes In The FIFO */
#define ENUM_I2C_STAT_MRXFSTA_TWO                             (0X0002U)      /* 2 Bytes in the FIFO */
#define ENUM_I2C_STAT_MRXFSTA_RESERVED                        (0X0003U)      /* Reserved */
#define ENUM_I2C_STAT_MTXSFA_EMPTY                            (0X0000U)      /* FIFO Empty */
#define ENUM_I2C_STAT_MTXSFA_ONE                              (0X0001U)      /* 1 Bytes in the FIFO */
#define ENUM_I2C_STAT_MTXSFA_TWO                              (0X0002U)      /* 2 Bytes in the FIFO */
#define ENUM_I2C_STAT_MTXSFA_RESERVED                         (0X0003U)      /* Reserved */
#define ENUM_I2C_STAT_SRXFSTA_EMPTY                           (0X0000U)      /* FIFO Empty */
#define ENUM_I2C_STAT_SRXFSTA_ONE                             (0X0001U)      /* 1 Bytes in the FIFO */
#define ENUM_I2C_STAT_SRXFSTA_TWO                             (0X0002U)      /* 2 Bytes in the FIFO */
#define ENUM_I2C_STAT_SRXFSTA_RESERVED                        (0X0003U)      /* Reserved */
#define ENUM_I2C_STAT_STXFSTA_EMPTY                           (0X0000U)      /* FIFO Empty */
#define ENUM_I2C_STAT_STXFSTA_ONE                             (0X0001U)      /* 1 Bytes in the FIFO */
#define ENUM_I2C_STAT_STXFSTA_TWO                             (0X0002U)      /* 2 Bytes in the FIFO */
#define ENUM_I2C_STAT_STXFSTA_RESERVED                        (0X0003U)      /* Reserved */

/* ----------------------------------------------------------------------------------------------------
          SHCTL                                                 Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_I2C_SHCTL_RESET                                  (0U)           /* Reset START STOP Detect Circuit */
#define BITL_I2C_SHCTL_RESET                                  (1U)           /* Reset START STOP Detect Circuit */
#define BITM_I2C_SHCTL_RESET                                  (0X0001U)      /* Reset START STOP Detect Circuit */
#define BITP_I2C_SHCTL_ADR_BUSY                               (6U)           /* ADR Busy Flag */
#define BITL_I2C_SHCTL_ADR_BUSY                               (1U)           /* ADR Busy Flag */
#define BITM_I2C_SHCTL_ADR_BUSY                               (0X0040U)      /* ADR Busy Flag */
#define BITP_I2C_SHCTL_SDA_DLY                                (8U)           /* Delay Between SDAOUT and SDAOEN */
#define BITL_I2C_SHCTL_SDA_DLY                                (4U)           /* Delay Between SDAOUT and SDAOEN */
#define BITM_I2C_SHCTL_SDA_DLY                                (0X0F00U)      /* Delay Between SDAOUT and SDAOEN */
#define BITP_I2C_SHCTL_SCL_DLY                                (12U)          /* Delay Between SCLOUT and SCLOEN */
#define BITL_I2C_SHCTL_SCL_DLY                                (4U)           /* Delay Between SCLOUT and SCLOEN */
#define BITM_I2C_SHCTL_SCL_DLY                                (0XF000U)      /* Delay Between SCLOUT and SCLOEN */

/* ----------------------------------------------------------------------------------------------------
          TCTL                                                  Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_I2C_TCTL_THDATIN                                 (0U)           /* Data in Hold Start */
#define BITL_I2C_TCTL_THDATIN                                 (6U)           /* Data in Hold Start */
#define BITM_I2C_TCTL_THDATIN                                 (0X003FU)      /* Data in Hold Start */
#define BITP_I2C_TCTL_FILTEROFF                               (8U)           /* Input Filter Control */
#define BITL_I2C_TCTL_FILTEROFF                               (1U)           /* Input Filter Control */
#define BITM_I2C_TCTL_FILTEROFF                               (0X0100U)      /* Input Filter Control */
#define BITP_I2C_TCTL_PRE_DIV                                 (9U)           /* Presale Divide Counter for SCK DIV */
#define BITL_I2C_TCTL_PRE_DIV                                 (3U)           /* Presale Divide Counter for SCK DIV */
#define BITM_I2C_TCTL_PRE_DIV                                 (0X0E00U)      /* Presale Divide Counter for SCK DIV */
#define BITP_I2C_TCTL_FILTER_TICKS                            (12U)          /* SCK & SDA Gglitch Filter Ticks. */
#define BITL_I2C_TCTL_FILTER_TICKS                            (4U)           /* SCK & SDA Gglitch Filter Ticks. */
#define BITM_I2C_TCTL_FILTER_TICKS                            (0XF000U)      /* SCK & SDA Gglitch Filter Ticks. */

/* ----------------------------------------------------------------------------------------------------
          ASTRETCH_SCL                                          Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_I2C_ASTRETCH_SCL_STRETCH_MODE_MAS                (0U)           /* Master Automatic Stretch Mode */
#define BITL_I2C_ASTRETCH_SCL_STRETCH_MODE_MAS                (4U)           /* Master Automatic Stretch Mode */
#define BITM_I2C_ASTRETCH_SCL_STRETCH_MODE_MAS                (0X000FU)      /* Master Automatic Stretch Mode */
#define BITP_I2C_ASTRETCH_SCL_STRECTH_MODE_SLV                (4U)           /* Slave Automatic Stretch Mode */
#define BITL_I2C_ASTRETCH_SCL_STRECTH_MODE_SLV                (4U)           /* Slave Automatic Stretch Mode */
#define BITM_I2C_ASTRETCH_SCL_STRECTH_MODE_SLV                (0X00F0U)      /* Slave Automatic Stretch Mode */
#define BITP_I2C_ASTRETCH_SCL_TIMEOUT_SSCL_MAS                (8U)           /* Master Automatic Stretch Timeout */
#define BITL_I2C_ASTRETCH_SCL_TIMEOUT_SSCL_MAS                (1U)           /* Master Automatic Stretch Timeout */
#define BITM_I2C_ASTRETCH_SCL_TIMEOUT_SSCL_MAS                (0X0100U)      /* Master Automatic Stretch Timeout */
#define BITP_I2C_ASTRETCH_SCL_TIMEOUT_SSCL_SLV                (9U)           /* Slave Automatic Stretch Timeout */
#define BITL_I2C_ASTRETCH_SCL_TIMEOUT_SSCL_SLV                (1U)           /* Slave Automatic Stretch Timeout */
#define BITM_I2C_ASTRETCH_SCL_TIMEOUT_SSCL_SLV                (0X0200U)      /* Slave Automatic Stretch Timeout */
#define BITP_I2C_ASTRETCH_SCL_MAN_RLS_EN                      (10U)          /* Manual Release Stretch Enable */
#define BITL_I2C_ASTRETCH_SCL_MAN_RLS_EN                      (1U)           /* Manual Release Stretch Enable */
#define BITM_I2C_ASTRETCH_SCL_MAN_RLS_EN                      (0X0400U)      /* Manual Release Stretch Enable */
#define BITP_I2C_ASTRETCH_SCL_SSCL_AFTER_ACK                  (11U)          /* Slave RX Stretch After ACK Mode */
#define BITL_I2C_ASTRETCH_SCL_SSCL_AFTER_ACK                  (1U)           /* Slave RX Stretch After ACK Mode */
#define BITM_I2C_ASTRETCH_SCL_SSCL_AFTER_ACK                  (0X0800U)      /* Slave RX Stretch After ACK Mode */
#define BITP_I2C_ASTRETCH_SCL_SSCL_RLS                        (12U)          /* Slave Manual Clear Stretch */
#define BITL_I2C_ASTRETCH_SCL_SSCL_RLS                        (1U)           /* Slave Manual Clear Stretch */
#define BITM_I2C_ASTRETCH_SCL_SSCL_RLS                        (0X1000U)      /* Slave Manual Clear Stretch */
#define BITP_I2C_ASTRETCH_SCL_ADDR_ACK_IEN                    (13U)          /* Slave ADDRESS ACK Interruption Enable */
#define BITL_I2C_ASTRETCH_SCL_ADDR_ACK_IEN                    (1U)           /* Slave ADDRESS ACK Interruption Enable */
#define BITM_I2C_ASTRETCH_SCL_ADDR_ACK_IEN                    (0X2000U)      /* Slave ADDRESS ACK Interruption Enable */
#define BITP_I2C_ASTRETCH_SCL_SSCL_IRQ_IEN                    (14U)          /* Slave Stretch Interruption Enable */
#define BITL_I2C_ASTRETCH_SCL_SSCL_IRQ_IEN                    (1U)           /* Slave Stretch Interruption Enable */
#define BITM_I2C_ASTRETCH_SCL_SSCL_IRQ_IEN                    (0X4000U)      /* Slave Stretch Interruption Enable */
#define BITP_I2C_ASTRETCH_SCL_CLR_ADDR_ACK_IRQ                (15U)          /* Write Clear the Address ACK IRQ. */
#define BITL_I2C_ASTRETCH_SCL_CLR_ADDR_ACK_IRQ                (1U)           /* Write Clear the Address ACK IRQ. */
#define BITM_I2C_ASTRETCH_SCL_CLR_ADDR_ACK_IRQ                (0X8000U)      /* Write Clear the Address ACK IRQ. */

/* ----------------------------------------------------------------------------------------------------
          IDFSTA                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_I2C_IDFSTA_STX0FSTA                              (0U)           /* Slave Transmit ID0 FIFO Status */
#define BITL_I2C_IDFSTA_STX0FSTA                              (2U)           /* Slave Transmit ID0 FIFO Status */
#define BITM_I2C_IDFSTA_STX0FSTA                              (0X0003U)      /* Slave Transmit ID0 FIFO Status */
#define BITP_I2C_IDFSTA_STX1FSTA                              (2U)           /* Slave Transmit ID1 FIFO Status */
#define BITL_I2C_IDFSTA_STX1FSTA                              (2U)           /* Slave Transmit ID1 FIFO Status */
#define BITM_I2C_IDFSTA_STX1FSTA                              (0X000CU)      /* Slave Transmit ID1 FIFO Status */
#define BITP_I2C_IDFSTA_STX2FSTA                              (4U)           /* Slave Transmit ID2 FIFO Status */
#define BITL_I2C_IDFSTA_STX2FSTA                              (2U)           /* Slave Transmit ID2 FIFO Status */
#define BITM_I2C_IDFSTA_STX2FSTA                              (0X0030U)      /* Slave Transmit ID2 FIFO Status */
#define BITP_I2C_IDFSTA_STX3FSTA                              (6U)           /* Slave Transmit ID3 FIFO Status */
#define BITL_I2C_IDFSTA_STX3FSTA                              (2U)           /* Slave Transmit ID3 FIFO Status */
#define BITM_I2C_IDFSTA_STX3FSTA                              (0X00C0U)      /* Slave Transmit ID3 FIFO Status */
#define BITP_I2C_IDFSTA_SFLUSH0                               (8U)           /* Flush the Slave Transmit ID0 FIFO */
#define BITL_I2C_IDFSTA_SFLUSH0                               (1U)           /* Flush the Slave Transmit ID0 FIFO */
#define BITM_I2C_IDFSTA_SFLUSH0                               (0X0100U)      /* Flush the Slave Transmit ID0 FIFO */
#define BITP_I2C_IDFSTA_SFLUSH1                               (9U)           /* Flush the Slave Transmit ID1 FIFO */
#define BITL_I2C_IDFSTA_SFLUSH1                               (1U)           /* Flush the Slave Transmit ID1 FIFO */
#define BITM_I2C_IDFSTA_SFLUSH1                               (0X0200U)      /* Flush the Slave Transmit ID1 FIFO */
#define BITP_I2C_IDFSTA_SFLUSH2                               (10U)          /* Flush the Slave Transmit ID2 FIFO */
#define BITL_I2C_IDFSTA_SFLUSH2                               (1U)           /* Flush the Slave Transmit ID2 FIFO */
#define BITM_I2C_IDFSTA_SFLUSH2                               (0X0400U)      /* Flush the Slave Transmit ID2 FIFO */
#define BITP_I2C_IDFSTA_SFLUSH3                               (11U)          /* Flush the Slave Transmit ID3 FIFO */
#define BITL_I2C_IDFSTA_SFLUSH3                               (1U)           /* Flush the Slave Transmit ID3 FIFO */
#define BITM_I2C_IDFSTA_SFLUSH3                               (0X0800U)      /* Flush the Slave Transmit ID3 FIFO */
#define BITP_I2C_IDFSTA_STX0UR                                (12U)          /* Slave Transmit ID0 FIFO Underflow */
#define BITL_I2C_IDFSTA_STX0UR                                (1U)           /* Slave Transmit ID0 FIFO Underflow */
#define BITM_I2C_IDFSTA_STX0UR                                (0X1000U)      /* Slave Transmit ID0 FIFO Underflow */
#define BITP_I2C_IDFSTA_STX1UR                                (13U)          /* Slave Transmit ID1 FIFO Underflow */
#define BITL_I2C_IDFSTA_STX1UR                                (1U)           /* Slave Transmit ID1 FIFO Underflow */
#define BITM_I2C_IDFSTA_STX1UR                                (0X2000U)      /* Slave Transmit ID1 FIFO Underflow */
#define BITP_I2C_IDFSTA_STX2UR                                (14U)          /* Slave Transmit ID2 FIFO Underflow */
#define BITL_I2C_IDFSTA_STX2UR                                (1U)           /* Slave Transmit ID2 FIFO Underflow */
#define BITM_I2C_IDFSTA_STX2UR                                (0X4000U)      /* Slave Transmit ID2 FIFO Underflow */
#define BITP_I2C_IDFSTA_STX3UR                                (15U)          /* Slave Transmit ID3 FIFO Underflow */
#define BITL_I2C_IDFSTA_STX3UR                                (1U)           /* Slave Transmit ID3 FIFO Underflow */
#define BITM_I2C_IDFSTA_STX3UR                                (0X8000U)      /* Slave Transmit ID3 FIFO Underflow */

#define ENUM_I2C_IDFSTA_STX3FSTA_EMPTY                        (0X0000U)      /* FIFO Empty */
#define ENUM_I2C_IDFSTA_STX3FSTA_ONE                          (0X0001U)      /* 1 Bytes in the FIFO */
#define ENUM_I2C_IDFSTA_STX3FSTA_TWO                          (0X0002U)      /* 2 Bytes in the FIFO */
#define ENUM_I2C_IDFSTA_STX3FSTA_RESERVED                     (0X0003U)      /* Reserved */
#define ENUM_I2C_IDFSTA_STX2FSTA_EMPTY                        (0X0000U)      /* FIFO Empty */
#define ENUM_I2C_IDFSTA_STX2FSTA_ONE                          (0X0001U)      /* 1 Bytes in the FIFO */
#define ENUM_I2C_IDFSTA_STX2FSTA_TWO                          (0X0002U)      /* 2 Bytes in the FIFO */
#define ENUM_I2C_IDFSTA_STX2FSTA_RESERVED                     (0X0003U)      /* Reserved */
#define ENUM_I2C_IDFSTA_STX1FSTA_EMPTY                        (0X0000U)      /* FIFO Empty */
#define ENUM_I2C_IDFSTA_STX1FSTA_ONE                          (0X0001U)      /* 1 Bytes in the FIFO */
#define ENUM_I2C_IDFSTA_STX1FSTA_TWO                          (0X0002U)      /* 2 Bytes in the FIFO */
#define ENUM_I2C_IDFSTA_STX1FSTA_RESERVED                     (0X0003U)      /* Reserved */
#define ENUM_I2C_IDFSTA_STX0FSTA_EMPTY                        (0X0000U)      /* FIFO Empty */
#define ENUM_I2C_IDFSTA_STX0FSTA_ONE                          (0X0001U)      /* 1 Bytes in the FIFO */
#define ENUM_I2C_IDFSTA_STX0FSTA_TWO                          (0X0002U)      /* 2 Bytes in the FIFO */
#define ENUM_I2C_IDFSTA_STX0FSTA_RESERVED                     (0X0003U)      /* Reserved */

/* ----------------------------------------------------------------------------------------------------
          SLV_ADDR1                                             Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_I2C_SLV_ADDR1_SLV_ADR1                           (0U)           /* Slave 10 Bits Address 1st Byte */
#define BITL_I2C_SLV_ADDR1_SLV_ADR1                           (8U)           /* Slave 10 Bits Address 1st Byte */
#define BITM_I2C_SLV_ADDR1_SLV_ADR1                           (0X00FFU)      /* Slave 10 Bits Address 1st Byte */

/* ----------------------------------------------------------------------------------------------------
          SLV_ADDR2                                             Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_I2C_SLV_ADDR2_SLV_ADR2                           (0U)           /* Slave 10 Bit Address 2nd Byte */
#define BITL_I2C_SLV_ADDR2_SLV_ADR2                           (8U)           /* Slave 10 Bit Address 2nd Byte */
#define BITM_I2C_SLV_ADDR2_SLV_ADR2                           (0X00FFU)      /* Slave 10 Bit Address 2nd Byte */

/* ----------------------------------------------------------------------------------------------------
          SSTAT2                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_I2C_SSTAT2_SSCL_IRQ                              (0U)           /* Stretch Interruption State. */
#define BITL_I2C_SSTAT2_SSCL_IRQ                              (1U)           /* Stretch Interruption State. */
#define BITM_I2C_SSTAT2_SSCL_IRQ                              (0X0001U)      /* Stretch Interruption State. */
#define BITP_I2C_SSTAT2_ADDR_ACK_IRQ                          (1U)           /* Slave ADDR ACK Interruption State. */
#define BITL_I2C_SSTAT2_ADDR_ACK_IRQ                          (1U)           /* Slave ADDR ACK Interruption State. */
#define BITM_I2C_SSTAT2_ADDR_ACK_IRQ                          (0X0002U)      /* Slave ADDR ACK Interruption State. */
#define BITP_I2C_SSTAT2_RW_DIRECTION                          (2U)           /* Slave I2C RW Direction. */
#define BITL_I2C_SSTAT2_RW_DIRECTION                          (1U)           /* Slave I2C RW Direction. */
#define BITM_I2C_SSTAT2_RW_DIRECTION                          (0X0004U)      /* Slave I2C RW Direction. */

#endif  /* end ifndef I2C_ADDR_RDEF_H_ */


#ifndef MDIO_ADDR_RDEF_H_
#define MDIO_ADDR_RDEF_H_    /* MDIO: MDIO Interface */

/* ====================================================================================================
        MDIO Module Instances Address and Mask Definitions
   ==================================================================================================== */
#define INST_MDIO                                                (0X40022000U)    /* mdio: */

#define MASK_MDIO                                                (0XFFFFFFFFU)    /* MDIO: MDIO Interface */

/* ====================================================================================================
        MDIO Module Register Address Offset Definitions
   ==================================================================================================== */
#define IDX_MDIO_MDCON                                          (0X00000000U)    /* MDIO Block Control */
#define IDX_MDIO_MDFRM                                          (0X00000004U)    /* MDIO Received Frame Control Information */
#define IDX_MDIO_MDRXD                                          (0X00000008U)    /* MDIO Received Data */
#define IDX_MDIO_MDADR                                          (0X0000000CU)    /* MDIO Received Address */
#define IDX_MDIO_MDTXD                                          (0X00000010U)    /* MDIO Data for Transmission */
#define IDX_MDIO_MDPHY                                          (0X00000014U)    /* MDIO PHYADDR Software Values and Selection and DEVADD */
#define IDX_MDIO_MDSTA                                          (0X00000018U)    /* MDIO Progress Signaling Through Frame */
#define IDX_MDIO_MDIEN                                          (0X0000001CU)    /* MDIO Interrupt Enables */
#define IDX_MDIO_MDPIN                                          (0X00000020U)    /* MDIO Read PHYADDR Pins */
#define IDX_MDIO_DMAEN                                          (0X00000028U)    /* MDIO DMA Enable */
#define IDX_MDIO_MDTESTCON                                      (0X0000002CU)    /* MDIO Test Controller Protected by Test Key */

/* ====================================================================================================
        MDIO Module Register ResetValue Definitions
   ==================================================================================================== */
#define RSTVAL_MDIO_MDCON                                          (0X0) 
#define RSTVAL_MDIO_MDFRM                                          (0X0) 
#define RSTVAL_MDIO_MDTXD                                          (0X0) 
#define RSTVAL_MDIO_MDPHY                                          (0X400) 
#define RSTVAL_MDIO_MDSTA                                          (0X0) 
#define RSTVAL_MDIO_MDIEN                                          (0X0) 
#define RSTVAL_MDIO_MDPIN                                          (0X0) 
#define RSTVAL_MDIO_DMAEN                                          (0X0) 
#define RSTVAL_MDIO_MDTESTCON                                      (0X800) 

/* ====================================================================================================
        MDIO Module Register BitPositions, Lengths, Masks and Enumerations Definitions
   ==================================================================================================== */

/* ----------------------------------------------------------------------------------------------------
          MDCON                                                 Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_MDIO_MDCON_MD_RST                                (0U)           /* Write 1 to Reset MDIO Block. */
#define BITL_MDIO_MDCON_MD_RST                                (1U)           /* Write 1 to Reset MDIO Block. */
#define BITM_MDIO_MDCON_MD_RST                                (0X0001U)      /* Write 1 to Reset MDIO Block. */
#define BITP_MDIO_MDCON_MD_PHM                                (1U)           /* Enable PHY Address Bit Width */
#define BITL_MDIO_MDCON_MD_PHM                                (1U)           /* Enable PHY Address Bit Width */
#define BITM_MDIO_MDCON_MD_PHM                                (0X0002U)      /* Enable PHY Address Bit Width */
#define BITP_MDIO_MDCON_MD_DRV                                (2U)           /* Enable Open-drain or Push-pull of MDIO Drive */
#define BITL_MDIO_MDCON_MD_DRV                                (1U)           /* Enable Open-drain or Push-pull of MDIO Drive */
#define BITM_MDIO_MDCON_MD_DRV                                (0X0004U)      /* Enable Open-drain or Push-pull of MDIO Drive */
#define BITP_MDIO_MDCON_MD_EN                                 (8U)           /* MD Enable */
#define BITL_MDIO_MDCON_MD_EN                                 (1U)           /* MD Enable */
#define BITM_MDIO_MDCON_MD_EN                                 (0X0100U)      /* MD Enable */

#define ENUM_MDIO_MDCON_MD_DRV_MD_DRV_OD                      (0X0000U)      /* MDIO Drive Open Drain. */
#define ENUM_MDIO_MDCON_MD_DRV_MD_DRV_PP                      (0X0001U)      /* MDIO Drive Push-pull. */
#define ENUM_MDIO_MDCON_MD_PHM_EN_5BIT                        (0X0000U)      /* 5bits PHYADD is active */
#define ENUM_MDIO_MDCON_MD_PHM_EN_3BITS                       (0X0001U)      /* 3bits PHYADD is active, two MSBS are ignored */
#define ENUM_MDIO_MDCON_MD_RST_RSTACTIVE                      (0X0001U)      /* Reset MDIO */
#define ENUM_MDIO_MDCON_MD_RST_RSTINACTIVE                    (0X0000U)      /* Reset MDIO */

/* ----------------------------------------------------------------------------------------------------
          MDFRM                                                 Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_MDIO_MDFRM_MD_OP                                 (0U)           /* Received OP */
#define BITL_MDIO_MDFRM_MD_OP                                 (2U)           /* Received OP */
#define BITM_MDIO_MDFRM_MD_OP                                 (0X0003U)      /* Received OP */
#define BITP_MDIO_MDFRM_MD_PHY                                (2U)           /* Received PHYADR. */
#define BITL_MDIO_MDFRM_MD_PHY                                (5U)           /* Received PHYADR. */
#define BITM_MDIO_MDFRM_MD_PHY                                (0X007CU)      /* Received PHYADR. */
#define BITP_MDIO_MDFRM_MD_DEV                                (7U)           /* Received DEVADD */
#define BITL_MDIO_MDFRM_MD_DEV                                (5U)           /* Received DEVADD */
#define BITM_MDIO_MDFRM_MD_DEV                                (0X0F80U)      /* Received DEVADD */

#define ENUM_MDIO_MDFRM_MD_OP_MD_OP_ADF                       (0X0000U)      /* Address Frame. */
#define ENUM_MDIO_MDFRM_MD_OP_MD_OP_WRF                       (0X0001U)      /* Write Frame. */
#define ENUM_MDIO_MDFRM_MD_OP_MD_OP_INCF                      (0X0002U)      /* PostReadIncAdd Frame. */
#define ENUM_MDIO_MDFRM_MD_OP_MD_OP_RDF                       (0X0003U)      /* Read Frame. */

/* ----------------------------------------------------------------------------------------------------
          MDRXD                                                 Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_MDIO_MDRXD_MD_RXD                                (0U)           /* Received Data */
#define BITL_MDIO_MDRXD_MD_RXD                                (16U)          /* Received Data */
#define BITM_MDIO_MDRXD_MD_RXD                                (0XFFFFU)      /* Received Data */

/* ----------------------------------------------------------------------------------------------------
          MDADR                                                 Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_MDIO_MDADR_MD_ADR                                (0U)           /* Received Address */
#define BITL_MDIO_MDADR_MD_ADR                                (16U)          /* Received Address */
#define BITM_MDIO_MDADR_MD_ADR                                (0XFFFFU)      /* Received Address */

/* ----------------------------------------------------------------------------------------------------
          MDTXD                                                 Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_MDIO_MDTXD_MD_TXD                                (0U)           /* TX Data */
#define BITL_MDIO_MDTXD_MD_TXD                                (16U)          /* TX Data */
#define BITM_MDIO_MDTXD_MD_TXD                                (0XFFFFU)      /* TX Data */

/* ----------------------------------------------------------------------------------------------------
          MDPHY                                                 Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_MDIO_MDPHY_MD_PHYSW                              (0U)           /* Software Provided PHYADR */
#define BITL_MDIO_MDPHY_MD_PHYSW                              (5U)           /* Software Provided PHYADR */
#define BITM_MDIO_MDPHY_MD_PHYSW                              (0X001FU)      /* Software Provided PHYADR */
#define BITP_MDIO_MDPHY_MD_PHYSEL                             (5U)           /* Selects Expected PHYADR Bits */
#define BITL_MDIO_MDPHY_MD_PHYSEL                             (5U)           /* Selects Expected PHYADR Bits */
#define BITM_MDIO_MDPHY_MD_PHYSEL                             (0X03E0U)      /* Selects Expected PHYADR Bits */
#define BITP_MDIO_MDPHY_MD_DEVADD                             (10U)          /* Expected DEVADD */
#define BITL_MDIO_MDPHY_MD_DEVADD                             (5U)           /* Expected DEVADD */
#define BITM_MDIO_MDPHY_MD_DEVADD                             (0X7C00U)      /* Expected DEVADD */

/* ----------------------------------------------------------------------------------------------------
          MDSTA                                                 Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_MDIO_MDSTA_MD_WRF                                (0U)           /* Write Frame Status */
#define BITL_MDIO_MDSTA_MD_WRF                                (1U)           /* Write Frame Status */
#define BITM_MDIO_MDSTA_MD_WRF                                (0X0001U)      /* Write Frame Status */
#define BITP_MDIO_MDSTA_MD_ADRF                               (1U)           /* Address Frame Status */
#define BITL_MDIO_MDSTA_MD_ADRF                               (1U)           /* Address Frame Status */
#define BITM_MDIO_MDSTA_MD_ADRF                               (0X0002U)      /* Address Frame Status */
#define BITP_MDIO_MDSTA_MD_INCF                               (2U)           /* Post Read Increment Address Frame Status */
#define BITL_MDIO_MDSTA_MD_INCF                               (1U)           /* Post Read Increment Address Frame Status */
#define BITM_MDIO_MDSTA_MD_INCF                               (0X0004U)      /* Post Read Increment Address Frame Status */
#define BITP_MDIO_MDSTA_MD_RDF                                (3U)           /* Read Frame Status */
#define BITL_MDIO_MDSTA_MD_RDF                                (1U)           /* Read Frame Status */
#define BITM_MDIO_MDSTA_MD_RDF                                (0X0008U)      /* Read Frame Status */
#define BITP_MDIO_MDSTA_MD_DEVM                               (4U)           /* Device Address Matching Status */
#define BITL_MDIO_MDSTA_MD_DEVM                               (1U)           /* Device Address Matching Status */
#define BITM_MDIO_MDSTA_MD_DEVM                               (0X0010U)      /* Device Address Matching Status */
#define BITP_MDIO_MDSTA_MD_DEVN                               (5U)           /* Device Address None Match Status */
#define BITL_MDIO_MDSTA_MD_DEVN                               (1U)           /* Device Address None Match Status */
#define BITM_MDIO_MDSTA_MD_DEVN                               (0X0020U)      /* Device Address None Match Status */
#define BITP_MDIO_MDSTA_MD_PHYM                               (6U)           /* PHY Address Matching Status */
#define BITL_MDIO_MDSTA_MD_PHYM                               (1U)           /* PHY Address Matching Status */
#define BITM_MDIO_MDSTA_MD_PHYM                               (0X0040U)      /* PHY Address Matching Status */
#define BITP_MDIO_MDSTA_MD_PHYN                               (7U)           /* PHY Address Non Matching Status */
#define BITL_MDIO_MDSTA_MD_PHYN                               (1U)           /* PHY Address Non Matching Status */
#define BITM_MDIO_MDSTA_MD_PHYN                               (0X0080U)      /* PHY Address Non Matching Status */

/* ----------------------------------------------------------------------------------------------------
          MDIEN                                                 Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_MDIO_MDIEN_MD_WRFI                               (0U)           /* Interrupt Enable for MD_WRF */
#define BITL_MDIO_MDIEN_MD_WRFI                               (1U)           /* Interrupt Enable for MD_WRF */
#define BITM_MDIO_MDIEN_MD_WRFI                               (0X0001U)      /* Interrupt Enable for MD_WRF */
#define BITP_MDIO_MDIEN_MD_ADRI                               (1U)           /* Interrupt Enable for MD_ADRF */
#define BITL_MDIO_MDIEN_MD_ADRI                               (1U)           /* Interrupt Enable for MD_ADRF */
#define BITM_MDIO_MDIEN_MD_ADRI                               (0X0002U)      /* Interrupt Enable for MD_ADRF */
#define BITP_MDIO_MDIEN_MD_INCFI                              (2U)           /* Interrupt Enable for MD_INCF */
#define BITL_MDIO_MDIEN_MD_INCFI                              (1U)           /* Interrupt Enable for MD_INCF */
#define BITM_MDIO_MDIEN_MD_INCFI                              (0X0004U)      /* Interrupt Enable for MD_INCF */
#define BITP_MDIO_MDIEN_MD_RDFI                               (3U)           /* Interrupt Enable for MD_RDF */
#define BITL_MDIO_MDIEN_MD_RDFI                               (1U)           /* Interrupt Enable for MD_RDF */
#define BITM_MDIO_MDIEN_MD_RDFI                               (0X0008U)      /* Interrupt Enable for MD_RDF */
#define BITP_MDIO_MDIEN_MD_DEVMI                              (4U)           /* Interrupt Enable for MD_DEVM */
#define BITL_MDIO_MDIEN_MD_DEVMI                              (1U)           /* Interrupt Enable for MD_DEVM */
#define BITM_MDIO_MDIEN_MD_DEVMI                              (0X0010U)      /* Interrupt Enable for MD_DEVM */
#define BITP_MDIO_MDIEN_MD_DEVNI                              (5U)           /* Interrupt Enable for MD_DEVN */
#define BITL_MDIO_MDIEN_MD_DEVNI                              (1U)           /* Interrupt Enable for MD_DEVN */
#define BITM_MDIO_MDIEN_MD_DEVNI                              (0X0020U)      /* Interrupt Enable for MD_DEVN */
#define BITP_MDIO_MDIEN_MD_PHYMI                              (6U)           /* Interrupt Enable for MD_PHYM */
#define BITL_MDIO_MDIEN_MD_PHYMI                              (1U)           /* Interrupt Enable for MD_PHYM */
#define BITM_MDIO_MDIEN_MD_PHYMI                              (0X0040U)      /* Interrupt Enable for MD_PHYM */
#define BITP_MDIO_MDIEN_MD_PHYNI                              (7U)           /* Interrupt Enable for MD_PHYN */
#define BITL_MDIO_MDIEN_MD_PHYNI                              (1U)           /* Interrupt Enable for MD_PHYN */
#define BITM_MDIO_MDIEN_MD_PHYNI                              (0X0080U)      /* Interrupt Enable for MD_PHYN */

/* ----------------------------------------------------------------------------------------------------
          MDPIN                                                 Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_MDIO_MDPIN_MD_PIN                                (0U)           /* PRTADR Pins */
#define BITL_MDIO_MDPIN_MD_PIN                                (5U)           /* PRTADR Pins */
#define BITM_MDIO_MDPIN_MD_PIN                                (0X001FU)      /* PRTADR Pins */

/* ----------------------------------------------------------------------------------------------------
          DMAEN                                                 Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_MDIO_DMAEN_RD_DATA                               (0U)           /* Read Data */
#define BITL_MDIO_DMAEN_RD_DATA                               (1U)           /* Read Data */
#define BITM_MDIO_DMAEN_RD_DATA                               (0X0001U)      /* Read Data */
#define BITP_MDIO_DMAEN_INCRD_DATA                            (1U)           /* Increment Read Data */
#define BITL_MDIO_DMAEN_INCRD_DATA                            (1U)           /* Increment Read Data */
#define BITM_MDIO_DMAEN_INCRD_DATA                            (0X0002U)      /* Increment Read Data */
#define BITP_MDIO_DMAEN_WR_ADR                                (2U)           /* Write Address */
#define BITL_MDIO_DMAEN_WR_ADR                                (1U)           /* Write Address */
#define BITM_MDIO_DMAEN_WR_ADR                                (0X0004U)      /* Write Address */
#define BITP_MDIO_DMAEN_WR_DATA                               (3U)           /* Write Data */
#define BITL_MDIO_DMAEN_WR_DATA                               (1U)           /* Write Data */
#define BITM_MDIO_DMAEN_WR_DATA                               (0X0008U)      /* Write Data */

/* ----------------------------------------------------------------------------------------------------
          MDTESTCON                                             Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_MDIO_MDTESTCON_TA_0_VALUE                        (11U)          /* Output Value During First Bit of OP */
#define BITL_MDIO_MDTESTCON_TA_0_VALUE                        (1U)           /* Output Value During First Bit of OP */
#define BITM_MDIO_MDTESTCON_TA_0_VALUE                        (0X0800U)      /* Output Value During First Bit of OP */
#define BITP_MDIO_MDTESTCON_TA_1_VALUE                        (12U)          /* Output Value During Second Bit of OP */
#define BITL_MDIO_MDTESTCON_TA_1_VALUE                        (1U)           /* Output Value During Second Bit of OP */
#define BITM_MDIO_MDTESTCON_TA_1_VALUE                        (0X1000U)      /* Output Value During Second Bit of OP */
#define BITP_MDIO_MDTESTCON_EN_TA_OUTPUT                      (13U)          /* Enable Output Different During OP Phase */
#define BITL_MDIO_MDTESTCON_EN_TA_OUTPUT                      (1U)           /* Enable Output Different During OP Phase */
#define BITM_MDIO_MDTESTCON_EN_TA_OUTPUT                      (0X2000U)      /* Enable Output Different During OP Phase */

#endif  /* end ifndef MDIO_ADDR_RDEF_H_ */


#ifndef DMA_ADDR_RDEF_H_
#define DMA_ADDR_RDEF_H_    /* DMA: DMA */

/* ====================================================================================================
        DMA Module Instances Address and Mask Definitions
   ==================================================================================================== */
#define INST_DMA                                                 (0X40040000U)    /* dma: */

#define MASK_DMA                                                 (0X00000FFFU)    /* DMA: DMA */

/* ====================================================================================================
        DMA Module Register Address Offset Definitions
   ==================================================================================================== */
#define IDX_DMA_STAT                                            (0X000U)    /* DMA Status */
#define IDX_DMA_CFG                                             (0X004U)    /* DMA Configuration */
#define IDX_DMA_PDBPTR                                          (0X008U)    /* DMA Channel Primary Control Data Base Pointer */
#define IDX_DMA_ADBPTR                                          (0X00CU)    /* DMA Channel Alternate Control Data Base Pointer */
#define IDX_DMA_SWREQ                                           (0X014U)    /* DMA Channel Software Request */
#define IDX_DMA_RMSKSET                                         (0X020U)    /* DMA Channel Request Mask Set */
#define IDX_DMA_RMSKCLR                                         (0X024U)    /* DMA Channel Request Mask Clear */
#define IDX_DMA_ENSET                                           (0X028U)    /* DMA Channel Enable Set */
#define IDX_DMA_ENCLR                                           (0X02CU)    /* DMA Channel Enable Clear */
#define IDX_DMA_ALTSET                                          (0X030U)    /* DMA Channel Primary-alternate Set */
#define IDX_DMA_ALTCLR                                          (0X034U)    /* DMA Channel Primary-alternate Clear */
#define IDX_DMA_PRISET                                          (0X038U)    /* DMA Channel Priority Set */
#define IDX_DMA_PRICLR                                          (0X03CU)    /* DMA Channel Priority Clear */
#define IDX_DMA_ERRCHNLCLR                                      (0X048U)    /* DMA per Channel Error Clear */
#define IDX_DMA_ERRCLR                                          (0X04CU)    /* DMA Bus Error Clear */
#define IDX_DMA_INVALIDDESCCLR                                  (0X050U)    /* DMA per Channel Invalid Descriptor Clear */
#define IDX_DMA_BSSET                                           (0X800U)    /* DMA Channel Bytes Swap Enable Set */
#define IDX_DMA_BSCLR                                           (0X804U)    /* DMA Channel Bytes Swap Enable Clear */
#define IDX_DMA_SRCADDRSET                                      (0X810U)    /* DMA Channel Source Address Decrement Enable Set */
#define IDX_DMA_SRCADDRCLR                                      (0X814U)    /* DMA Channel Source Address Decrement Enable Clear */
#define IDX_DMA_DSTADDRSET                                      (0X818U)    /* DMA Channel Destination Address Decrement Enable Set */
#define IDX_DMA_DSTADDRCLR                                      (0X81CU)    /* DMA Channel Destination Address Decrement Enable Clear */
#define IDX_DMA_REVID                                           (0XFE0U)    /* DMA Controller Revision ID */

/* ====================================================================================================
        DMA Module Register ResetValue Definitions
   ==================================================================================================== */
#define RSTVAL_DMA_STAT                                            (0X1E0000) 
#define RSTVAL_DMA_CFG                                             (0X0) 
#define RSTVAL_DMA_PDBPTR                                          (0X0) 
#define RSTVAL_DMA_ADBPTR                                          (0X200) 
#define RSTVAL_DMA_SWREQ                                           (0X0) 
#define RSTVAL_DMA_RMSKSET                                         (0X0) 
#define RSTVAL_DMA_RMSKCLR                                         (0X0) 
#define RSTVAL_DMA_ENSET                                           (0X0) 
#define RSTVAL_DMA_ENCLR                                           (0X0) 
#define RSTVAL_DMA_ALTSET                                          (0X0) 
#define RSTVAL_DMA_ALTCLR                                          (0X0) 
#define RSTVAL_DMA_PRISET                                          (0X0) 
#define RSTVAL_DMA_PRICLR                                          (0X0) 
#define RSTVAL_DMA_ERRCHNLCLR                                      (0X0) 
#define RSTVAL_DMA_ERRCLR                                          (0X0) 
#define RSTVAL_DMA_INVALIDDESCCLR                                  (0X0) 
#define RSTVAL_DMA_BSSET                                           (0X0) 
#define RSTVAL_DMA_BSCLR                                           (0X0) 
#define RSTVAL_DMA_SRCADDRSET                                      (0X0) 
#define RSTVAL_DMA_SRCADDRCLR                                      (0X0) 
#define RSTVAL_DMA_DSTADDRSET                                      (0X0) 
#define RSTVAL_DMA_DSTADDRCLR                                      (0X0) 
#define RSTVAL_DMA_REVID                                           (0X2) 

/* ====================================================================================================
        DMA Module Register BitPositions, Lengths, Masks and Enumerations Definitions
   ==================================================================================================== */

/* ----------------------------------------------------------------------------------------------------
          STAT                                                  Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_DMA_STAT_MEN                                     (0U)           /* Enable Status of the Controller */
#define BITL_DMA_STAT_MEN                                     (1U)           /* Enable Status of the Controller */
#define BITM_DMA_STAT_MEN                                     (0X00000001U)  /* Enable Status of the Controller */
#define BITP_DMA_STAT_CHANM1                                  (16U)          /* Number of Available DMA Channels Minus 1 */
#define BITL_DMA_STAT_CHANM1                                  (5U)           /* Number of Available DMA Channels Minus 1 */
#define BITM_DMA_STAT_CHANM1                                  (0X001F0000U)  /* Number of Available DMA Channels Minus 1 */

/* ----------------------------------------------------------------------------------------------------
          CFG                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_DMA_CFG_MEN                                      (0U)           /* Controller Enable */
#define BITL_DMA_CFG_MEN                                      (1U)           /* Controller Enable */
#define BITM_DMA_CFG_MEN                                      (0X00000001U)  /* Controller Enable */

/* ----------------------------------------------------------------------------------------------------
          PDBPTR                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_DMA_PDBPTR_ADDR                                  (0U)           /* Pointer to the Base Address of the Primary Data Structure */
#define BITL_DMA_PDBPTR_ADDR                                  (32U)          /* Pointer to the Base Address of the Primary Data Structure */
#define BITM_DMA_PDBPTR_ADDR                                  (0XFFFFFFFFU)  /* Pointer to the Base Address of the Primary Data Structure */

/* ----------------------------------------------------------------------------------------------------
          ADBPTR                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_DMA_ADBPTR_ADDR                                  (0U)           /* Base Address of the Alternate Data Structure */
#define BITL_DMA_ADBPTR_ADDR                                  (32U)          /* Base Address of the Alternate Data Structure */
#define BITM_DMA_ADBPTR_ADDR                                  (0XFFFFFFFFU)  /* Base Address of the Alternate Data Structure */

/* ----------------------------------------------------------------------------------------------------
          SWREQ                                                 Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_DMA_SWREQ_CHAN                                   (0U)           /* Generate Software Request */
#define BITL_DMA_SWREQ_CHAN                                   (31U)          /* Generate Software Request */
#define BITM_DMA_SWREQ_CHAN                                   (0X7FFFFFFFU)  /* Generate Software Request */

/* ----------------------------------------------------------------------------------------------------
          RMSKSET                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_DMA_RMSKSET_CHAN                                 (0U)           /* Mask Requests from DMA Channels */
#define BITL_DMA_RMSKSET_CHAN                                 (31U)          /* Mask Requests from DMA Channels */
#define BITM_DMA_RMSKSET_CHAN                                 (0X7FFFFFFFU)  /* Mask Requests from DMA Channels */

/* ----------------------------------------------------------------------------------------------------
          RMSKCLR                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_DMA_RMSKCLR_CHAN                                 (0U)           /* Clear REQ_MASK_SET Bits in DMARMSKSET */
#define BITL_DMA_RMSKCLR_CHAN                                 (31U)          /* Clear REQ_MASK_SET Bits in DMARMSKSET */
#define BITM_DMA_RMSKCLR_CHAN                                 (0X7FFFFFFFU)  /* Clear REQ_MASK_SET Bits in DMARMSKSET */

/* ----------------------------------------------------------------------------------------------------
          ENSET                                                 Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_DMA_ENSET_CHAN                                   (0U)           /* Enable DMA Channels */
#define BITL_DMA_ENSET_CHAN                                   (31U)          /* Enable DMA Channels */
#define BITM_DMA_ENSET_CHAN                                   (0X7FFFFFFFU)  /* Enable DMA Channels */

/* ----------------------------------------------------------------------------------------------------
          ENCLR                                                 Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_DMA_ENCLR_CHAN                                   (0U)           /* Disable DMA Channels */
#define BITL_DMA_ENCLR_CHAN                                   (31U)          /* Disable DMA Channels */
#define BITM_DMA_ENCLR_CHAN                                   (0X7FFFFFFFU)  /* Disable DMA Channels */

/* ----------------------------------------------------------------------------------------------------
          ALTSET                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_DMA_ALTSET_CHAN                                  (0U)           /* Control Structure Status / Select Alt Structure */
#define BITL_DMA_ALTSET_CHAN                                  (31U)          /* Control Structure Status / Select Alt Structure */
#define BITM_DMA_ALTSET_CHAN                                  (0X7FFFFFFFU)  /* Control Structure Status / Select Alt Structure */

/* ----------------------------------------------------------------------------------------------------
          ALTCLR                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_DMA_ALTCLR_CHAN                                  (0U)           /* Select Primary Data Structure */
#define BITL_DMA_ALTCLR_CHAN                                  (31U)          /* Select Primary Data Structure */
#define BITM_DMA_ALTCLR_CHAN                                  (0X7FFFFFFFU)  /* Select Primary Data Structure */

/* ----------------------------------------------------------------------------------------------------
          PRISET                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_DMA_PRISET_CHAN                                  (0U)           /* Configure Channel for High Priority */
#define BITL_DMA_PRISET_CHAN                                  (31U)          /* Configure Channel for High Priority */
#define BITM_DMA_PRISET_CHAN                                  (0X7FFFFFFFU)  /* Configure Channel for High Priority */

/* ----------------------------------------------------------------------------------------------------
          PRICLR                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_DMA_PRICLR_CHPRICLR                              (0U)           /* Configure Channel for Default Priority Level */
#define BITL_DMA_PRICLR_CHPRICLR                              (31U)          /* Configure Channel for Default Priority Level */
#define BITM_DMA_PRICLR_CHPRICLR                              (0X7FFFFFFFU)  /* Configure Channel for Default Priority Level */

/* ----------------------------------------------------------------------------------------------------
          ERRCHNLCLR                                            Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_DMA_ERRCHNLCLR_CHAN                              (0U)           /* Per Channel Bus Error Status/ Clear */
#define BITL_DMA_ERRCHNLCLR_CHAN                              (31U)          /* Per Channel Bus Error Status/ Clear */
#define BITM_DMA_ERRCHNLCLR_CHAN                              (0X7FFFFFFFU)  /* Per Channel Bus Error Status/ Clear */

/* ----------------------------------------------------------------------------------------------------
          ERRCLR                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_DMA_ERRCLR_CHAN                                  (0U)           /* Bus Error Status */
#define BITL_DMA_ERRCLR_CHAN                                  (31U)          /* Bus Error Status */
#define BITM_DMA_ERRCLR_CHAN                                  (0X7FFFFFFFU)  /* Bus Error Status */

/* ----------------------------------------------------------------------------------------------------
          INVALIDDESCCLR                                        Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_DMA_INVALIDDESCCLR_CHAN                          (0U)           /* Per Channel Invalid Descriptor Status */
#define BITL_DMA_INVALIDDESCCLR_CHAN                          (31U)          /* Per Channel Invalid Descriptor Status */
#define BITM_DMA_INVALIDDESCCLR_CHAN                          (0X7FFFFFFFU)  /* Per Channel Invalid Descriptor Status */

/* ----------------------------------------------------------------------------------------------------
          BSSET                                                 Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_DMA_BSSET_CHAN                                   (0U)           /* Byte Swap Status */
#define BITL_DMA_BSSET_CHAN                                   (31U)          /* Byte Swap Status */
#define BITM_DMA_BSSET_CHAN                                   (0X7FFFFFFFU)  /* Byte Swap Status */

/* ----------------------------------------------------------------------------------------------------
          BSCLR                                                 Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_DMA_BSCLR_CHAN                                   (0U)           /* Disable Byte Swap */
#define BITL_DMA_BSCLR_CHAN                                   (31U)          /* Disable Byte Swap */
#define BITM_DMA_BSCLR_CHAN                                   (0X7FFFFFFFU)  /* Disable Byte Swap */

/* ----------------------------------------------------------------------------------------------------
          SRCADDRSET                                            Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_DMA_SRCADDRSET_CHAN                              (0U)           /* Source Address Decrement Status / Configure */
#define BITL_DMA_SRCADDRSET_CHAN                              (31U)          /* Source Address Decrement Status / Configure */
#define BITM_DMA_SRCADDRSET_CHAN                              (0X7FFFFFFFU)  /* Source Address Decrement Status / Configure */

/* ----------------------------------------------------------------------------------------------------
          SRCADDRCLR                                            Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_DMA_SRCADDRCLR_CHAN                              (0U)           /* Disable Source Address Decrement */
#define BITL_DMA_SRCADDRCLR_CHAN                              (31U)          /* Disable Source Address Decrement */
#define BITM_DMA_SRCADDRCLR_CHAN                              (0X7FFFFFFFU)  /* Disable Source Address Decrement */

/* ----------------------------------------------------------------------------------------------------
          DSTADDRSET                                            Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_DMA_DSTADDRSET_CHAN                              (0U)           /* Destination Address Decrement Status */
#define BITL_DMA_DSTADDRSET_CHAN                              (31U)          /* Destination Address Decrement Status */
#define BITM_DMA_DSTADDRSET_CHAN                              (0X7FFFFFFFU)  /* Destination Address Decrement Status */

/* ----------------------------------------------------------------------------------------------------
          DSTADDRCLR                                            Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_DMA_DSTADDRCLR_CHAN                              (0U)           /* Disable Destination Address Decrement */
#define BITL_DMA_DSTADDRCLR_CHAN                              (31U)          /* Disable Destination Address Decrement */
#define BITM_DMA_DSTADDRCLR_CHAN                              (0X7FFFFFFFU)  /* Disable Destination Address Decrement */

/* ----------------------------------------------------------------------------------------------------
          REVID                                                 Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_DMA_REVID_DMAREVID                               (0U)           /* DMA Controller Revision ID */
#define BITL_DMA_REVID_DMAREVID                               (8U)           /* DMA Controller Revision ID */
#define BITM_DMA_REVID_DMAREVID                               (0X000000FFU)  /* DMA Controller Revision ID */

#endif  /* end ifndef DMA_ADDR_RDEF_H_ */


#ifndef CC_ADDR_RDEF_H_
#define CC_ADDR_RDEF_H_    /* CC: Cache Controller */

/* ====================================================================================================
        CC Module Instances Address and Mask Definitions
   ==================================================================================================== */
#define INST_CACHE                                               (0X40044000U)    /* cache: */

#define MASK_CC                                                  (0X000000FFU)    /* CC: Cache Controller */

/* ====================================================================================================
        CC Module Register Address Offset Definitions
   ==================================================================================================== */
#define IDX_CC_STAT                                             (0X00U)    /* Cache Status Register */
#define IDX_CC_SETUP                                            (0X04U)    /* Cache Setup Register */
#define IDX_CC_KEY                                              (0X08U)    /* Cache Key Register */
#define IDX_CC_PERFSETUP                                        (0X0CU)    /* Cache Performance Monitor Setup Register */
#define IDX_CC_ACCESSCNTR                                       (0X10U)    /* Cache Miss Counter */
#define IDX_CC_MSTRSETUP                                        (0X24U)    /* Cache Master Setup Register */
#define IDX_CC_ECCSTAT                                          (0X34U)    /* Cache SRAM ECC Status Register */
#define IDX_CC_ECCADDR                                          (0X38U)    /* Cache SRAM ECC Address Register */

/* ====================================================================================================
        CC Module Register ResetValue Definitions
   ==================================================================================================== */
#define RSTVAL_CC_STAT                                             (0X0) 
#define RSTVAL_CC_SETUP                                            (0X0) 
#define RSTVAL_CC_KEY                                              (0X0) 
#define RSTVAL_CC_PERFSETUP                                        (0X0) 
#define RSTVAL_CC_ACCESSCNTR                                       (0X0) 
#define RSTVAL_CC_MSTRSETUP                                        (0X0) 
#define RSTVAL_CC_ECCSTAT                                          (0X0) 
#define RSTVAL_CC_ECCADDR                                          (0X0) 

/* ====================================================================================================
        CC Module Register BitPositions, Lengths, Masks and Enumerations Definitions
   ==================================================================================================== */

/* ----------------------------------------------------------------------------------------------------
          STAT                                                  Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_CC_STAT_CCEN                                     (0U)           /* Code Cache Enable Status */
#define BITL_CC_STAT_CCEN                                     (1U)           /* Code Cache Enable Status */
#define BITM_CC_STAT_CCEN                                     (0X00000001U)  /* Code Cache Enable Status */
#define BITP_CC_STAT_CCLCK                                    (1U)           /* Code Cache Lock Status */
#define BITL_CC_STAT_CCLCK                                    (1U)           /* Code Cache Lock Status */
#define BITM_CC_STAT_CCLCK                                    (0X00000002U)  /* Code Cache Lock Status */
#define BITP_CC_STAT_CCWIPE                                   (3U)           /* Code Cache Memory Wipe in Progress */
#define BITL_CC_STAT_CCWIPE                                   (1U)           /* Code Cache Memory Wipe in Progress */
#define BITM_CC_STAT_CCWIPE                                   (0X00000008U)  /* Code Cache Memory Wipe in Progress */

/* ----------------------------------------------------------------------------------------------------
          SETUP                                                 Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_CC_SETUP_CCEN                                    (0U)           /* Code Cache Enable */
#define BITL_CC_SETUP_CCEN                                    (1U)           /* Code Cache Enable */
#define BITM_CC_SETUP_CCEN                                    (0X00000001U)  /* Code Cache Enable */
#define BITP_CC_SETUP_CCFLUSHDIS                              (8U)           /* Disable Automatic Cache and Buffer Flush on Any Flash Update */
#define BITL_CC_SETUP_CCFLUSHDIS                              (1U)           /* Disable Automatic Cache and Buffer Flush on Any Flash Update */
#define BITM_CC_SETUP_CCFLUSHDIS                              (0X00000100U)  /* Disable Automatic Cache and Buffer Flush on Any Flash Update */

/* ----------------------------------------------------------------------------------------------------
          KEY                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_CC_KEY_KEY                                       (0U)           /* Cache Key Register */
#define BITL_CC_KEY_KEY                                       (32U)          /* Cache Key Register */
#define BITM_CC_KEY_KEY                                       (0XFFFFFFFFU)  /* Cache Key Register */

/* ----------------------------------------------------------------------------------------------------
          PERFSETUP                                             Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_CC_PERFSETUP_STOPCNTR                            (0U)           /* Performance Counter Stop */
#define BITL_CC_PERFSETUP_STOPCNTR                            (1U)           /* Performance Counter Stop */
#define BITM_CC_PERFSETUP_STOPCNTR                            (0X00000001U)  /* Performance Counter Stop */
#define BITP_CC_PERFSETUP_STRTCNTR                            (1U)           /* Performance Counter Start */
#define BITL_CC_PERFSETUP_STRTCNTR                            (1U)           /* Performance Counter Start */
#define BITM_CC_PERFSETUP_STRTCNTR                            (0X00000002U)  /* Performance Counter Start */

/* ----------------------------------------------------------------------------------------------------
          ACCESSCNTR                                            Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_CC_ACCESSCNTR_CNT                                (0U)           /* Cache Internal Performance Counter */
#define BITL_CC_ACCESSCNTR_CNT                                (32U)          /* Cache Internal Performance Counter */
#define BITM_CC_ACCESSCNTR_CNT                                (0XFFFFFFFFU)  /* Cache Internal Performance Counter */

/* ----------------------------------------------------------------------------------------------------
          MSTRSETUP                                             Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_CC_MSTRSETUP_MSTRNRA                             (0U)           /* No Read Allocate for Master */
#define BITL_CC_MSTRSETUP_MSTRNRA                             (8U)           /* No Read Allocate for Master */
#define BITM_CC_MSTRSETUP_MSTRNRA                             (0X000000FFU)  /* No Read Allocate for Master */

/* ----------------------------------------------------------------------------------------------------
          ECCSTAT                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_CC_ECCSTAT_ECCINTSTA                             (0U)           /* Cache SRAM ECC Error Interrupt Status */
#define BITL_CC_ECCSTAT_ECCINTSTA                             (2U)           /* Cache SRAM ECC Error Interrupt Status */
#define BITM_CC_ECCSTAT_ECCINTSTA                             (0X00000003U)  /* Cache SRAM ECC Error Interrupt Status */
#define BITP_CC_ECCSTAT_ECCHRESPSTA                           (2U)           /* Cache SRAM ECC Error Hresp Status */
#define BITL_CC_ECCSTAT_ECCHRESPSTA                           (2U)           /* Cache SRAM ECC Error Hresp Status */
#define BITM_CC_ECCSTAT_ECCHRESPSTA                           (0X0000000CU)  /* Cache SRAM ECC Error Hresp Status */
#define BITP_CC_ECCSTAT_ECCERRORCNT                           (4U)           /* Cache SRAM ECC Error Counter */
#define BITL_CC_ECCSTAT_ECCERRORCNT                           (3U)           /* Cache SRAM ECC Error Counter */
#define BITM_CC_ECCSTAT_ECCERRORCNT                           (0X00000070U)  /* Cache SRAM ECC Error Counter */

#define ENUM_CC_ECCSTAT_ECCHRESPSTA_NOERROR                   (0X00000000U)  /* No Error */
#define ENUM_CC_ECCSTAT_ECCHRESPSTA_ERROR2BIT                 (0X00000001U)  /* 2 Bit Error */
#define ENUM_CC_ECCSTAT_ECCHRESPSTA_ERROR1BIT                 (0X00000002U)  /* 1 Bit Error */
#define ENUM_CC_ECCSTAT_ECCHRESPSTA_RESERVED                  (0X00000003U)  /* Reserved */
#define ENUM_CC_ECCSTAT_ECCINTSTA_NOERROR                     (0X00000000U)  /* No Error */
#define ENUM_CC_ECCSTAT_ECCINTSTA_ERROR2BIT                   (0X00000001U)  /* 2 Bit Error */
#define ENUM_CC_ECCSTAT_ECCINTSTA_ERROR1BIT                   (0X00000002U)  /* 1 Bit Error */
#define ENUM_CC_ECCSTAT_ECCINTSTA_ERROR1OR2BIT                (0X00000003U)  /* Either 1 Bit Error or 2 Bit Error */

/* ----------------------------------------------------------------------------------------------------
          ECCADDR                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_CC_ECCADDR_ECCADDR                               (0U)           /* Cache SRAM ECC Error Interrupt Address */
#define BITL_CC_ECCADDR_ECCADDR                               (11U)          /* Cache SRAM ECC Error Interrupt Address */
#define BITM_CC_ECCADDR_ECCADDR                               (0X000007FFU)  /* Cache SRAM ECC Error Interrupt Address */

#endif  /* end ifndef CC_ADDR_RDEF_H_ */


#ifndef FLASH_ADDR_RDEF_H_
#define FLASH_ADDR_RDEF_H_    /* FLASH: Flash Controller */

/* ====================================================================================================
        FLASH Module Instances Address and Mask Definitions
   ==================================================================================================== */
#define INST_FLASH                                               (0X40048000U)    /* flash: */

#define MASK_FLASH                                               (0XFFFFFFFFU)    /* FLASH: Flash Controller */

/* ====================================================================================================
        FLASH Module Register Address Offset Definitions
   ==================================================================================================== */
#define IDX_FLASH_FEESTA                                        (0X00000000U)    /* Status Register */
#define IDX_FLASH_FEECON0                                       (0X00000004U)    /* Command Control Register – Interrupt Enable Register */
#define IDX_FLASH_FEECMD                                        (0X00000008U)    /* Command Register */
#define IDX_FLASH_FEEFLADR                                      (0X0000000CU)    /* Flash Address Key - Hole Register */
#define IDX_FLASH_FEEFLDATA0                                    (0X00000010U)    /* Flash Data Register - Key - Hole Interface Lower 32 Bits */
#define IDX_FLASH_FEEFLDATA1                                    (0X00000014U)    /* Flash Data Register - Key - Hole Interface Upper 32 Bits */
#define IDX_FLASH_FEEADR0                                       (0X00000018U)    /* Lower Page Address */
#define IDX_FLASH_FEEADR1                                       (0X0000001CU)    /* Upper Page Address */
#define IDX_FLASH_FEEKEY                                        (0X00000020U)    /* Flash Key Register. */
#define IDX_FLASH_FEEPRO0                                       (0X00000028U)    /* Write Protection Register for Flash0 */
#define IDX_FLASH_FEEPRO1                                       (0X0000002CU)    /* Write Protection Register for Flash1 */
#define IDX_FLASH_FEESIG                                        (0X00000034U)    /* Flash Signature */
#define IDX_FLASH_FEECON1                                       (0X00000038U)    /* User Setup Register */
#define IDX_FLASH_FEEWRADDRA                                    (0X00000040U)    /* Write Abort Address Register */
#define IDX_FLASH_FEEAEN0                                       (0X00000048U)    /* Lower 32 Bits of the Sys Irq Abort Enable Register. */
#define IDX_FLASH_FEEAEN1                                       (0X0000004CU)    /* Middle 32 Bits of the Sys Irq Abort Enable Register. */
#define IDX_FLASH_FEEAEN2                                       (0X00000050U)    /* Upper 32 Bits of the Sys Irq Abort Enable Register. */
#define IDX_FLASH_FEEECCCONFIG                                  (0X00000064U)    /* Configurable ECC Enable/disable, Error Response */
#define IDX_FLASH_FEEECCADDRC0                                  (0X00000074U)    /* Flash 0 ECC Error Address via CODE Bus */
#define IDX_FLASH_FEEECCADDRC1                                  (0X00000078U)    /* Flash 1 ECC Error Address via CODE Bus */
#define IDX_FLASH_FEEECCADDRD0                                  (0X00000094U)    /* Flash 0 ECC Error Address via DMA Bus */
#define IDX_FLASH_FEEECCADDRD1                                  (0X00000098U)    /* Flash 1 ECC Error Address via DMA Bus */

/* ====================================================================================================
        FLASH Module Register ResetValue Definitions
   ==================================================================================================== */
#define RSTVAL_FLASH_FEESTA                                        (0X0) 
#define RSTVAL_FLASH_FEECON0                                       (0X0) 
#define RSTVAL_FLASH_FEECMD                                        (0X0) 
#define RSTVAL_FLASH_FEEFLADR                                      (0X0) 
#define RSTVAL_FLASH_FEEFLDATA0                                    (0X0) 
#define RSTVAL_FLASH_FEEFLDATA1                                    (0X0) 
#define RSTVAL_FLASH_FEEADR0                                       (0X0) 
#define RSTVAL_FLASH_FEEADR1                                       (0X0) 
#define RSTVAL_FLASH_FEEKEY                                        (0X0) 
#define RSTVAL_FLASH_FEEPRO0                                       (0XFFFFFFFF) 
#define RSTVAL_FLASH_FEEPRO1                                       (0XFFFFFFFF) 
#define RSTVAL_FLASH_FEECON1                                       (0X0) 
#define RSTVAL_FLASH_FEEAEN0                                       (0X0) 
#define RSTVAL_FLASH_FEEAEN1                                       (0X0) 
#define RSTVAL_FLASH_FEEAEN2                                       (0X0) 
#define RSTVAL_FLASH_FEEECCCONFIG                                  (0X12) 
#define RSTVAL_FLASH_FEEECCADDRC0                                  (0X0) 
#define RSTVAL_FLASH_FEEECCADDRC1                                  (0X0) 
#define RSTVAL_FLASH_FEEECCADDRD0                                  (0X0) 
#define RSTVAL_FLASH_FEEECCADDRD1                                  (0X0) 

/* ====================================================================================================
        FLASH Module Register BitPositions, Lengths, Masks and Enumerations Definitions
   ==================================================================================================== */

/* ----------------------------------------------------------------------------------------------------
          FEESTA                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_FLASH_FEESTA_CMDBUSY                             (0U)           /* Command Busy. */
#define BITL_FLASH_FEESTA_CMDBUSY                             (1U)           /* Command Busy. */
#define BITM_FLASH_FEESTA_CMDBUSY                             (0X00000001U)  /* Command Busy. */
#define BITP_FLASH_FEESTA_WRCLOSE                             (1U)           /* Key-hole Registers Closed for Access */
#define BITL_FLASH_FEESTA_WRCLOSE                             (1U)           /* Key-hole Registers Closed for Access */
#define BITM_FLASH_FEESTA_WRCLOSE                             (0X00000002U)  /* Key-hole Registers Closed for Access */
#define BITP_FLASH_FEESTA_CMDCOMP                             (2U)           /* Command Complete */
#define BITL_FLASH_FEESTA_CMDCOMP                             (1U)           /* Command Complete */
#define BITM_FLASH_FEESTA_CMDCOMP                             (0X00000004U)  /* Command Complete */
#define BITP_FLASH_FEESTA_WRALCOMP                            (3U)           /* Write Almost Complete – Key-hole Registers Open for Access */
#define BITL_FLASH_FEESTA_WRALCOMP                            (1U)           /* Write Almost Complete – Key-hole Registers Open for Access */
#define BITM_FLASH_FEESTA_WRALCOMP                            (0X00000008U)  /* Write Almost Complete – Key-hole Registers Open for Access */
#define BITP_FLASH_FEESTA_CMDFAIL                             (4U)           /* Command Failed */
#define BITL_FLASH_FEESTA_CMDFAIL                             (2U)           /* Command Failed */
#define BITM_FLASH_FEESTA_CMDFAIL                             (0X00000030U)  /* Command Failed */
#define BITP_FLASH_FEESTA_ECCERRCMD                           (7U)           /* ECC Errors Produced During Signature Commands */
#define BITL_FLASH_FEESTA_ECCERRCMD                           (2U)           /* ECC Errors Produced During Signature Commands */
#define BITM_FLASH_FEESTA_ECCERRCMD                           (0X00000180U)  /* ECC Errors Produced During Signature Commands */
#define BITP_FLASH_FEESTA_ECCREADERRFLSH0                     (9U)           /* ECC Interrupt Errors During AHB Read to Flash 0. */
#define BITL_FLASH_FEESTA_ECCREADERRFLSH0                     (2U)           /* ECC Interrupt Errors During AHB Read to Flash 0. */
#define BITM_FLASH_FEESTA_ECCREADERRFLSH0                     (0X00000600U)  /* ECC Interrupt Errors During AHB Read to Flash 0. */
#define BITP_FLASH_FEESTA_ECCREADERRFLSH1                     (11U)          /* ECC Interrupt Errors During AHB Read to Flash 1. */
#define BITL_FLASH_FEESTA_ECCREADERRFLSH1                     (2U)           /* ECC Interrupt Errors During AHB Read to Flash 1. */
#define BITM_FLASH_FEESTA_ECCREADERRFLSH1                     (0X00001800U)  /* ECC Interrupt Errors During AHB Read to Flash 1. */
#define BITP_FLASH_FEESTA_SIGNERR                             (13U)          /* Initial Signature Check Error on Info Space */
#define BITL_FLASH_FEESTA_SIGNERR                             (1U)           /* Initial Signature Check Error on Info Space */
#define BITM_FLASH_FEESTA_SIGNERR                             (0X00002000U)  /* Initial Signature Check Error on Info Space */
#define BITP_FLASH_FEESTA_INIT                                (14U)          /* Initialization Upload in Progress. */
#define BITL_FLASH_FEESTA_INIT                                (1U)           /* Initialization Upload in Progress. */
#define BITM_FLASH_FEESTA_INIT                                (0X00004000U)  /* Initialization Upload in Progress. */
#define BITP_FLASH_FEESTA_ECCERRINITSIGN                      (15U)          /* ECC Error on Initial Info Signature Check */
#define BITL_FLASH_FEESTA_ECCERRINITSIGN                      (2U)           /* ECC Error on Initial Info Signature Check */
#define BITM_FLASH_FEESTA_ECCERRINITSIGN                      (0X00018000U)  /* ECC Error on Initial Info Signature Check */
#define BITP_FLASH_FEESTA_ECCERRCNTC0                         (17U)          /* ECC Error Count via CODE Bus of Flash 0 */
#define BITL_FLASH_FEESTA_ECCERRCNTC0                         (3U)           /* ECC Error Count via CODE Bus of Flash 0 */
#define BITM_FLASH_FEESTA_ECCERRCNTC0                         (0X000E0000U)  /* ECC Error Count via CODE Bus of Flash 0 */
#define BITP_FLASH_FEESTA_ECCERRCNTD0                         (20U)          /* ECC Error Count via DMA Bus of Flash 0 */
#define BITL_FLASH_FEESTA_ECCERRCNTD0                         (2U)           /* ECC Error Count via DMA Bus of Flash 0 */
#define BITM_FLASH_FEESTA_ECCERRCNTD0                         (0X00300000U)  /* ECC Error Count via DMA Bus of Flash 0 */
#define BITP_FLASH_FEESTA_ECCERRCNTC1                         (22U)          /* ECC Error Count via CODE Bus of Flash 1 */
#define BITL_FLASH_FEESTA_ECCERRCNTC1                         (3U)           /* ECC Error Count via CODE Bus of Flash 1 */
#define BITM_FLASH_FEESTA_ECCERRCNTC1                         (0X01C00000U)  /* ECC Error Count via CODE Bus of Flash 1 */
#define BITP_FLASH_FEESTA_ECCHRESPCODE                        (25U)          /* ECC Error Response on CODE Bus */
#define BITL_FLASH_FEESTA_ECCHRESPCODE                        (2U)           /* ECC Error Response on CODE Bus */
#define BITM_FLASH_FEESTA_ECCHRESPCODE                        (0X06000000U)  /* ECC Error Response on CODE Bus */
#define BITP_FLASH_FEESTA_ECCHRESPDMA                         (27U)          /* ECC Error Response on DMA Bus */
#define BITL_FLASH_FEESTA_ECCHRESPDMA                         (2U)           /* ECC Error Response on DMA Bus */
#define BITM_FLASH_FEESTA_ECCHRESPDMA                         (0X18000000U)  /* ECC Error Response on DMA Bus */
#define BITP_FLASH_FEESTA_ECCERRCNTD1                         (29U)          /* ECC Error Count via DMA Bus of Flash 1 */
#define BITL_FLASH_FEESTA_ECCERRCNTD1                         (2U)           /* ECC Error Count via DMA Bus of Flash 1 */
#define BITM_FLASH_FEESTA_ECCERRCNTD1                         (0X60000000U)  /* ECC Error Count via DMA Bus of Flash 1 */

#define ENUM_FLASH_FEESTA_ECCHRESPDMA_NOERROR                 (0X00000000U)  /* No Error. Successful Read from Program Flash via AHB Bus */
#define ENUM_FLASH_FEESTA_ECCHRESPDMA_ERROR2BIT               (0X00000001U)  /* During AHB Read to Flash, 2 Bit Error Detected, Not Corrected. */
#define ENUM_FLASH_FEESTA_ECCHRESPDMA_ERROR1BIT               (0X00000002U)  /* 1 Bit Error is Corrected for One Flash Location While Doing AHB Read to Program Flash */
#define ENUM_FLASH_FEESTA_ECCHRESPDMA_RESERVED                (0X00000003U)  /* Reserved */
#define ENUM_FLASH_FEESTA_ECCHRESPCODE_NOERROR                (0X00000000U)  /* No Error. Successful Read from Program Flash via AHB Bus */
#define ENUM_FLASH_FEESTA_ECCHRESPCODE_ERROR2BIT              (0X00000001U)  /* During AHB Read to Flash, 2 Bit Error Detected, Not Corrected. */
#define ENUM_FLASH_FEESTA_ECCHRESPCODE_ERROR1BIT              (0X00000002U)  /* 1 Bit Error is Corrected for One Flash Location While Doing AHB Read to Program Flash */
#define ENUM_FLASH_FEESTA_ECCHRESPCODE_RESERVED               (0X00000003U)  /* Reserved */
#define ENUM_FLASH_FEESTA_ECCERRINITSIGN_NOERROR              (0X00000000U)  /* No Error, Successful Flash Read Operation During Initial Signature Check, Page Signature Check */
#define ENUM_FLASH_FEESTA_ECCERRINITSIGN_ERROR2BIT            (0X00000001U)  /* During Initial Signature Check, 2 Bit Error Detected, Not Corrected for at Least One Flash Location */
#define ENUM_FLASH_FEESTA_ECCERRINITSIGN_ERROR1BIT            (0X00000002U)  /* 1 Bit Error is Corrected for One Flash Location While Doing Signature Commands */
#define ENUM_FLASH_FEESTA_ECCERRINITSIGN_ERROR1OR2BIT         (0X00000003U)  /* During Initial Signature Command, 1 Bit Error and 2 Bit Errors are Detected on One or More Flash Locations */
#define ENUM_FLASH_FEESTA_ECCREADERRFLSH1_NOERROR             (0X00000000U)  /* No Error. Successful Read from Data Flash via AHB Bus */
#define ENUM_FLASH_FEESTA_ECCREADERRFLSH1_ERROR2BIT           (0X00000001U)  /* 1 Bit Error is Corrected for One Flash Location While Doing AHB Read to Data Flash */
#define ENUM_FLASH_FEESTA_ECCREADERRFLSH1_ERROR1BIT           (0X00000002U)  /* During AHB Read to Flash, 2 Bit Error Detected, Not Corrected. */
#define ENUM_FLASH_FEESTA_ECCREADERRFLSH1_ERROR1OR2BIT        (0X00000003U)  /* During AHB Read, It is Either ECC Error or ECC Corrected Error Only. but This Condition Can Occur If the Consecutive Access Had AHB HRESP Error Due to ECC Error, Before the Status Register is Read. */
#define ENUM_FLASH_FEESTA_ECCREADERRFLSH0_NOERROR             (0X00000000U)  /* No Error. Successful Read from Program Flash via AHB Bus */
#define ENUM_FLASH_FEESTA_ECCREADERRFLSH0_ERROR2BIT           (0X00000001U)  /* During AHB Read to Flash, 2 Bit Error Detected, Not Corrected. */
#define ENUM_FLASH_FEESTA_ECCREADERRFLSH0_ERROR1BIT           (0X00000002U)  /* 1 Bit Error is Corrected for One Flash Location While Doing AHB Read to Program Flash */
#define ENUM_FLASH_FEESTA_ECCREADERRFLSH0_ERROR1OR2BIT        (0X00000003U)  /* During AHB Read, It is Either ECC Error or ECC Corrected Error Only. but This Condition Can Occur If the Consecutive Access Had AHB HRESP Error Due to ECC Error, Before the Status Register is Read. */
#define ENUM_FLASH_FEESTA_ECCERRCMD_NOERROR                   (0X00000000U)  /* No Error, Successful Flash Read Operation During Signature Check */
#define ENUM_FLASH_FEESTA_ECCERRCMD_ERROR2BIT                 (0X00000001U)  /* During Signature Commands, 2 Bit Error is Detected on One or More Flash Locations, Not Corrected. */
#define ENUM_FLASH_FEESTA_ECCERRCMD_ERROR1BIT                 (0X00000002U)  /* 1 Bit Error is Corrected for One or More Flash Locations While Doing Signature Commands */
#define ENUM_FLASH_FEESTA_ECCERRCMD_ERROR1OR2BIT              (0X00000003U)  /* During Signature Commands, 1 Bit Error and 2 Bit Errors are Detected on One or More Flash Locations */
#define ENUM_FLASH_FEESTA_CMDFAIL_SUCCESS                     (0X00000000U)  /* Successful Completion of a Command or a Write */
#define ENUM_FLASH_FEESTA_CMDFAIL_DENIED                      (0X00000001U)  /* Attempted Signcheck,write or Erase of a Protected Location or Out of Memory Location. the Command is Ignored. */
#define ENUM_FLASH_FEESTA_CMDFAIL_VERIFYERR                   (0X00000002U)  /* Read Verify Error */
#define ENUM_FLASH_FEESTA_CMDFAIL_ABORTED                     (0X00000003U)  /* Indicates That a Command or a Write Was Aborted by an Abort Command or a System Interrupt Has Caused an Abort */

/* ----------------------------------------------------------------------------------------------------
          FEECON0                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_FLASH_FEECON0_IENCMD                             (0U)           /* Command Complete Interrupt Enable */
#define BITL_FLASH_FEECON0_IENCMD                             (1U)           /* Command Complete Interrupt Enable */
#define BITM_FLASH_FEECON0_IENCMD                             (0X00000001U)  /* Command Complete Interrupt Enable */
#define BITP_FLASH_FEECON0_IWRALCOMP                          (1U)           /* Write Almost Complete Interrupt Enable */
#define BITL_FLASH_FEECON0_IWRALCOMP                          (1U)           /* Write Almost Complete Interrupt Enable */
#define BITM_FLASH_FEECON0_IWRALCOMP                          (0X00000002U)  /* Write Almost Complete Interrupt Enable */
#define BITP_FLASH_FEECON0_IENERR                             (2U)           /* Command Fail Interrupt Enable */
#define BITL_FLASH_FEECON0_IENERR                             (1U)           /* Command Fail Interrupt Enable */
#define BITM_FLASH_FEECON0_IENERR                             (0X00000004U)  /* Command Fail Interrupt Enable */

/* ----------------------------------------------------------------------------------------------------
          FEECMD                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_FLASH_FEECMD_CMD                                 (0U)           /* Commands */
#define BITL_FLASH_FEECMD_CMD                                 (5U)           /* Commands */
#define BITM_FLASH_FEECMD_CMD                                 (0X0000001FU)  /* Commands */

#define ENUM_FLASH_FEECMD_CMD_IDLE                            (0X00000000U)  /* IDLE */
#define ENUM_FLASH_FEECMD_CMD_ERASEPAGE                       (0X00000001U)  /* ERASEPAGE */
#define ENUM_FLASH_FEECMD_CMD_SIGN                            (0X00000002U)  /* SIGN */
#define ENUM_FLASH_FEECMD_CMD_WRITE                           (0X00000004U)  /* WRITE */
#define ENUM_FLASH_FEECMD_CMD_MASSERASE_ACTIVE                (0X00000005U)  /* MASSERASE_ACTIVE */
#define ENUM_FLASH_FEECMD_CMD_MASSERASE_PASSIVE               (0X00000006U)  /* MASSERASE_PASSIVE */
#define ENUM_FLASH_FEECMD_CMD_ABORT                           (0X00000008U)  /* ABORT */

/* ----------------------------------------------------------------------------------------------------
          FEEFLADR                                              Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_FLASH_FEEFLADR_FLADDR                            (3U)           /* Memory Mapped Address for the Flash Location */
#define BITL_FLASH_FEEFLADR_FLADDR                            (18U)          /* Memory Mapped Address for the Flash Location */
#define BITM_FLASH_FEEFLADR_FLADDR                            (0X001FFFF8U)  /* Memory Mapped Address for the Flash Location */

/* ----------------------------------------------------------------------------------------------------
          FEEFLDATA0                                            Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_FLASH_FEEFLDATA0_FLDATA0                         (0U)           /* Lower 32 Bit of 64 Bit Data to Be Written to Flash */
#define BITL_FLASH_FEEFLDATA0_FLDATA0                         (32U)          /* Lower 32 Bit of 64 Bit Data to Be Written to Flash */
#define BITM_FLASH_FEEFLDATA0_FLDATA0                         (0XFFFFFFFFU)  /* Lower 32 Bit of 64 Bit Data to Be Written to Flash */

/* ----------------------------------------------------------------------------------------------------
          FEEFLDATA1                                            Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_FLASH_FEEFLDATA1_FLDATA1                         (0U)           /* Upper 32 Bit of 64 Bit Data to Be Written to Flash */
#define BITL_FLASH_FEEFLDATA1_FLDATA1                         (32U)          /* Upper 32 Bit of 64 Bit Data to Be Written to Flash */
#define BITM_FLASH_FEEFLDATA1_FLDATA1                         (0XFFFFFFFFU)  /* Upper 32 Bit of 64 Bit Data to Be Written to Flash */

/* ----------------------------------------------------------------------------------------------------
          FEEADR0                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_FLASH_FEEADR0_PAGEADDR0                          (13U)          /* Page Address 0 */
#define BITL_FLASH_FEEADR0_PAGEADDR0                          (8U)           /* Page Address 0 */
#define BITM_FLASH_FEEADR0_PAGEADDR0                          (0X001FE000U)  /* Page Address 0 */

/* ----------------------------------------------------------------------------------------------------
          FEEADR1                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_FLASH_FEEADR1_PAGEADDR1                          (13U)          /* Page Address 1 */
#define BITL_FLASH_FEEADR1_PAGEADDR1                          (8U)           /* Page Address 1 */
#define BITM_FLASH_FEEADR1_PAGEADDR1                          (0X001FE000U)  /* Page Address 1 */

/* ----------------------------------------------------------------------------------------------------
          FEEKEY                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_FLASH_FEEKEY_KEY                                 (0U)           /* Key Register */
#define BITL_FLASH_FEEKEY_KEY                                 (32U)          /* Key Register */
#define BITM_FLASH_FEEKEY_KEY                                 (0XFFFFFFFFU)  /* Key Register */

/* ----------------------------------------------------------------------------------------------------
          FEEPRO0                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_FLASH_FEEPRO0_WRPROT0                            (0U)           /* Write Protection for Flash0 – 32 Bits. */
#define BITL_FLASH_FEEPRO0_WRPROT0                            (32U)          /* Write Protection for Flash0 – 32 Bits. */
#define BITM_FLASH_FEEPRO0_WRPROT0                            (0XFFFFFFFFU)  /* Write Protection for Flash0 – 32 Bits. */

/* ----------------------------------------------------------------------------------------------------
          FEEPRO1                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_FLASH_FEEPRO1_WRPROT1                            (0U)           /* Write Protection for Flash1 – 32 Bits. */
#define BITL_FLASH_FEEPRO1_WRPROT1                            (32U)          /* Write Protection for Flash1 – 32 Bits. */
#define BITM_FLASH_FEEPRO1_WRPROT1                            (0XFFFFFFFFU)  /* Write Protection for Flash1 – 32 Bits. */

/* ----------------------------------------------------------------------------------------------------
          FEESIG                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_FLASH_FEESIG_SIGN                                (0U)           /* Signature */
#define BITL_FLASH_FEESIG_SIGN                                (24U)          /* Signature */
#define BITM_FLASH_FEESIG_SIGN                                (0X00FFFFFFU)  /* Signature */

/* ----------------------------------------------------------------------------------------------------
          FEECON1                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_FLASH_FEECON1_JTAGDEBUGEN                        (0U)           /* JTAG Debug Enable */
#define BITL_FLASH_FEECON1_JTAGDEBUGEN                        (1U)           /* JTAG Debug Enable */
#define BITM_FLASH_FEECON1_JTAGDEBUGEN                        (0X00000001U)  /* JTAG Debug Enable */
#define BITP_FLASH_FEECON1_KHDMAEN                            (1U)           /* Key – Hole DMA Enable. */
#define BITL_FLASH_FEECON1_KHDMAEN                            (1U)           /* Key – Hole DMA Enable. */
#define BITM_FLASH_FEECON1_KHDMAEN                            (0X00000002U)  /* Key – Hole DMA Enable. */
#define BITP_FLASH_FEECON1_AUTOINCREN                         (2U)           /* Auto Address Increment for Key Hole Access. */
#define BITL_FLASH_FEECON1_AUTOINCREN                         (1U)           /* Auto Address Increment for Key Hole Access. */
#define BITM_FLASH_FEECON1_AUTOINCREN                         (0X00000004U)  /* Auto Address Increment for Key Hole Access. */
#define BITP_FLASH_FEECON1_SWAPPROGRAMCODE                    (3U)           /* Swap Program Code for MDIO Mode. */
#define BITL_FLASH_FEECON1_SWAPPROGRAMCODE                    (1U)           /* Swap Program Code for MDIO Mode. */
#define BITM_FLASH_FEECON1_SWAPPROGRAMCODE                    (0X00000008U)  /* Swap Program Code for MDIO Mode. */
#define BITP_FLASH_FEECON1_MDIOMODE                           (4U)           /* MDIO Mode */
#define BITL_FLASH_FEECON1_MDIOMODE                           (1U)           /* MDIO Mode */
#define BITM_FLASH_FEECON1_MDIOMODE                           (0X00000010U)  /* MDIO Mode */
#define BITP_FLASH_FEECON1_SWAPFLASH0                         (5U)           /* Swap Top and Bottom Image Inside Flash 0. */
#define BITL_FLASH_FEECON1_SWAPFLASH0                         (1U)           /* Swap Top and Bottom Image Inside Flash 0. */
#define BITM_FLASH_FEECON1_SWAPFLASH0                         (0X00000020U)  /* Swap Top and Bottom Image Inside Flash 0. */
#define BITP_FLASH_FEECON1_SWAPFLASH1                         (6U)           /* Swap Top and Bottom Image Inside Flash 1. */
#define BITL_FLASH_FEECON1_SWAPFLASH1                         (1U)           /* Swap Top and Bottom Image Inside Flash 1. */
#define BITM_FLASH_FEECON1_SWAPFLASH1                         (0X00000040U)  /* Swap Top and Bottom Image Inside Flash 1. */
#define BITP_FLASH_FEECON1_SWAPINFLASHEN                      (8U)           /* Swap Inside Flash Enable */
#define BITL_FLASH_FEECON1_SWAPINFLASHEN                      (1U)           /* Swap Inside Flash Enable */
#define BITM_FLASH_FEECON1_SWAPINFLASHEN                      (0X00000100U)  /* Swap Inside Flash Enable */

/* ----------------------------------------------------------------------------------------------------
          FEEWRADDRA                                            Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_FLASH_FEEWRADDRA_WRABORTADDR                     (0U)           /* Write Abort Address */
#define BITL_FLASH_FEEWRADDRA_WRABORTADDR                     (32U)          /* Write Abort Address */
#define BITM_FLASH_FEEWRADDRA_WRABORTADDR                     (0XFFFFFFFFU)  /* Write Abort Address */

/* ----------------------------------------------------------------------------------------------------
          FEEAEN0                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_FLASH_FEEAEN0_SYSIRQABORTEN                      (0U)           /* Lower 32 Bits of System Interrupt Abort Enable. */
#define BITL_FLASH_FEEAEN0_SYSIRQABORTEN                      (32U)          /* Lower 32 Bits of System Interrupt Abort Enable. */
#define BITM_FLASH_FEEAEN0_SYSIRQABORTEN                      (0XFFFFFFFFU)  /* Lower 32 Bits of System Interrupt Abort Enable. */

/* ----------------------------------------------------------------------------------------------------
          FEEAEN1                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_FLASH_FEEAEN1_SYSIRQABORTEN                      (0U)           /* Middle 32 Bits of System Interrupt Abort Enable. */
#define BITL_FLASH_FEEAEN1_SYSIRQABORTEN                      (32U)          /* Middle 32 Bits of System Interrupt Abort Enable. */
#define BITM_FLASH_FEEAEN1_SYSIRQABORTEN                      (0XFFFFFFFFU)  /* Middle 32 Bits of System Interrupt Abort Enable. */

/* ----------------------------------------------------------------------------------------------------
          FEEAEN2                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_FLASH_FEEAEN2_SYSIRQABORTEN                      (0U)           /* Upper 32 Bits of System Interrupt Abort Enable. */
#define BITL_FLASH_FEEAEN2_SYSIRQABORTEN                      (32U)          /* Upper 32 Bits of System Interrupt Abort Enable. */
#define BITM_FLASH_FEEAEN2_SYSIRQABORTEN                      (0XFFFFFFFFU)  /* Upper 32 Bits of System Interrupt Abort Enable. */

/* ----------------------------------------------------------------------------------------------------
          FEEECCCONFIG                                          Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_FLASH_FEEECCCONFIG_ECCDISABLE                    (0U)           /* ECC Disable Bit. */
#define BITL_FLASH_FEEECCCONFIG_ECCDISABLE                    (1U)           /* ECC Disable Bit. */
#define BITM_FLASH_FEEECCCONFIG_ECCDISABLE                    (0X00000001U)  /* ECC Disable Bit. */
#define BITP_FLASH_FEEECCCONFIG_ECCAHBERROR                   (1U)           /* Signifies How to Generate AHB Error on ECC */
#define BITL_FLASH_FEEECCCONFIG_ECCAHBERROR                   (2U)           /* Signifies How to Generate AHB Error on ECC */
#define BITM_FLASH_FEEECCCONFIG_ECCAHBERROR                   (0X00000006U)  /* Signifies How to Generate AHB Error on ECC */
#define BITP_FLASH_FEEECCCONFIG_ECCINTRERROR                  (3U)           /* Interrupt Enable When a ECC Error Happens During an AHB Read */
#define BITL_FLASH_FEEECCCONFIG_ECCINTRERROR                  (2U)           /* Interrupt Enable When a ECC Error Happens During an AHB Read */
#define BITM_FLASH_FEEECCCONFIG_ECCINTRERROR                  (0X00000018U)  /* Interrupt Enable When a ECC Error Happens During an AHB Read */
#define BITP_FLASH_FEEECCCONFIG_ECCADDRCON                    (5U)           /* ECC Error Address Control Bit. */
#define BITL_FLASH_FEEECCCONFIG_ECCADDRCON                    (2U)           /* ECC Error Address Control Bit. */
#define BITM_FLASH_FEEECCCONFIG_ECCADDRCON                    (0X00000060U)  /* ECC Error Address Control Bit. */

#define ENUM_FLASH_FEEECCCONFIG_ECCADDRCON_NBUFNCLR           (0X00000000U)  /* ECC Error Address Register Can't Be Cleared Until Reset; Current ECC Error Address Will Be Returned Directly When Reading ECC_ADDR MMR. */
#define ENUM_FLASH_FEEECCCONFIG_ECCADDRCON_BUFNCLR            (0X00000001U)  /* ECC Error Address Register Can't Be Cleared Until Reset; ECC Error Address is Latched on Read of STATUS MMR, and It Will Be Returned When Reading ECC_ADDR MMR. */
#define ENUM_FLASH_FEEECCCONFIG_ECCINTRERROR_DISABLE          (0X00000000U)  /* Interrupt is Not Generated Even If There is an ECC Error While Reading from Flash via AHB. This Applies to Both Flash. */
#define ENUM_FLASH_FEEECCCONFIG_ECCINTRERROR_ERROR2BITEN      (0X00000001U)  /* Interrupt is Generated Only If 2 Bit Error is Detected During AHB Read to Flash 0 or 1. */
#define ENUM_FLASH_FEEECCCONFIG_ECCINTRERROR_ERROR1BITEN      (0X00000002U)  /* Interrupt is Generated Only If 1 Bit Error Corrected During AHB Read to Flash 0 or 1. */
#define ENUM_FLASH_FEEECCCONFIG_ECCINTRERROR_ERROR1OR2BITEN   (0X00000003U)  /* Interrupt is Generated If Either 2 Bit Detected or 1 Bit Error Corrected During AHB Read to Flash 0 or 1. */
#define ENUM_FLASH_FEEECCCONFIG_ECCAHBERROR_NOERROR           (0X00000000U)  /* AHB Error (HRESP = 1) is Not Generated Even If There is an ECC Error While Reading from Flash via AHB. This Applies to Both Flash. */
#define ENUM_FLASH_FEEECCCONFIG_ECCAHBERROR_ERROR2BIT         (0X00000001U)  /* AHB Error (HRESP = 1) is Generated Only If 2 Bit Error is Detected During AHB Read to Flash 0 or 1. */
#define ENUM_FLASH_FEEECCCONFIG_ECCAHBERROR_ERROR1BIT         (0X00000002U)  /* AHB Error (HRESP = 1) is Generated Only If 1 Bit Error Corrected During AHB Read to Flash 0 or 1 */
#define ENUM_FLASH_FEEECCCONFIG_ECCAHBERROR_ERROR1OR2BIT      (0X00000003U)  /* AHB Error (HRESP = 1) is Generated If Either 2 Bit Detected or 1 Bit Error Corrected During AHB Read to Flash 0 or 1 */

/* ----------------------------------------------------------------------------------------------------
          FEEECCADDRC0                                          Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_FLASH_FEEECCADDRC0_FLECCADDRC0                   (0U)           /* Flash0 Address for Which ECC Error is Detected via CODE Bus. */
#define BITL_FLASH_FEEECCADDRC0_FLECCADDRC0                   (21U)          /* Flash0 Address for Which ECC Error is Detected via CODE Bus. */
#define BITM_FLASH_FEEECCADDRC0_FLECCADDRC0                   (0X001FFFFFU)  /* Flash0 Address for Which ECC Error is Detected via CODE Bus. */

/* ----------------------------------------------------------------------------------------------------
          FEEECCADDRC1                                          Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_FLASH_FEEECCADDRC1_FLECCADDRC1                   (0U)           /* Flash1 Address for Which ECC Error is Detected via CODE Bus. */
#define BITL_FLASH_FEEECCADDRC1_FLECCADDRC1                   (21U)          /* Flash1 Address for Which ECC Error is Detected via CODE Bus. */
#define BITM_FLASH_FEEECCADDRC1_FLECCADDRC1                   (0X001FFFFFU)  /* Flash1 Address for Which ECC Error is Detected via CODE Bus. */

/* ----------------------------------------------------------------------------------------------------
          FEEECCADDRD0                                          Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_FLASH_FEEECCADDRD0_FLECCADDRD0                   (0U)           /* Flash0 Address for Which ECC Error is Detected via DMA Bus. */
#define BITL_FLASH_FEEECCADDRD0_FLECCADDRD0                   (21U)          /* Flash0 Address for Which ECC Error is Detected via DMA Bus. */
#define BITM_FLASH_FEEECCADDRD0_FLECCADDRD0                   (0X001FFFFFU)  /* Flash0 Address for Which ECC Error is Detected via DMA Bus. */

/* ----------------------------------------------------------------------------------------------------
          FEEECCADDRD1                                          Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_FLASH_FEEECCADDRD1_FLECCADDRD1                   (0U)           /* Flash1 Address for Which ECC Error is Detected via DMA Bus. */
#define BITL_FLASH_FEEECCADDRD1_FLECCADDRD1                   (21U)          /* Flash1 Address for Which ECC Error is Detected via DMA Bus. */
#define BITM_FLASH_FEEECCADDRD1_FLECCADDRD1                   (0X001FFFFFU)  /* Flash1 Address for Which ECC Error is Detected via DMA Bus. */

#endif  /* end ifndef FLASH_ADDR_RDEF_H_ */


#ifndef GPIO_ADDR_RDEF_H_
#define GPIO_ADDR_RDEF_H_    /* GPIO: GPIO */

/* ====================================================================================================
        GPIO Module Instances Address and Mask Definitions
   ==================================================================================================== */
#define INST_GPIO0                                               (0X40050000U)    /* gpio0: */
#define INST_GPIO1                                               (0X40050050U)    /* gpio1: */
#define INST_GPIO2                                               (0X400500A0U)    /* gpio2: */
#define INST_GPIO3                                               (0X400500F0U)    /* gpio3: */
#define INST_GPIO4                                               (0X40050140U)    /* gpio4: */
#define INST_GPIO5                                               (0X40050190U)    /* gpio5: */

#define MASK_GPIO                                                (0XFFFFFFFFU)    /* GPIO: GPIO */

/* ====================================================================================================
        GPIO Module Register Address Offset Definitions
   ==================================================================================================== */
#define IDX_GPIO_CON                                            (0X00000000U)    /* Port Configuration */
#define IDX_GPIO_OE                                             (0X00000004U)    /* Port Output Enable */
#define IDX_GPIO_IE                                             (0X00000008U)    /* Port Input Path Enable */
#define IDX_GPIO_IN                                             (0X0000000CU)    /* Port Registered Data Input */
#define IDX_GPIO_OUT                                            (0X00000010U)    /* Port Data Output */
#define IDX_GPIO_SET                                            (0X00000014U)    /* Port Data Out Set */
#define IDX_GPIO_CLR                                            (0X00000018U)    /* Port Data Out Clear */
#define IDX_GPIO_TGL                                            (0X0000001CU)    /* Port Pin Toggle */
#define IDX_GPIO_ODE                                            (0X00000020U)    /* Port Open Drain Enable */
#define IDX_GPIO_IS                                             (0X00000024U)    /* Port Input Select */
#define IDX_GPIO_PE                                             (0X00000028U)    /* Port Pull Enable */
#define IDX_GPIO_PS                                             (0X0000002CU)    /* Port Pull Select */
#define IDX_GPIO_SR                                             (0X00000030U)    /* Port Slew Rate */
#define IDX_GPIO_DS                                             (0X00000034U)    /* Port Drive Select */
#define IDX_GPIO_PWR                                            (0X00000038U)    /* Port Power Select */
#define IDX_GPIO_POL                                            (0X0000003CU)    /* GPIO Interrupt Polarity Select */
#define IDX_GPIO_IENA                                           (0X00000040U)    /* InterruptA Enable */
#define IDX_GPIO_IENB                                           (0X00000044U)    /* InterruptB Enable */
#define IDX_GPIO_INT                                            (0X00000048U)    /* Interrupt Status */

/* ====================================================================================================
        GPIO Module Register ResetValue Definitions
   ==================================================================================================== */
#define RSTVAL_GPIO_CON                                            (0X0) 
#define RSTVAL_GPIO_OE                                             (0X0) 
#define RSTVAL_GPIO_IE                                             (0X0) 
#define RSTVAL_GPIO_IN                                             (0X0) 
#define RSTVAL_GPIO_OUT                                            (0X0) 
#define RSTVAL_GPIO_SET                                            (0X0) 
#define RSTVAL_GPIO_CLR                                            (0X0) 
#define RSTVAL_GPIO_TGL                                            (0X0) 
#define RSTVAL_GPIO_ODE                                            (0X0) 
#define RSTVAL_GPIO_IS                                             (0XFF) 
#define RSTVAL_GPIO_PE                                             (0X0) 
#define RSTVAL_GPIO_PS                                             (0XFF) 
#define RSTVAL_GPIO_SR                                             (0X0) 
#define RSTVAL_GPIO_DS                                             (0X0) 
#define RSTVAL_GPIO_PWR                                            (0XFF) 
#define RSTVAL_GPIO_POL                                            (0X0) 
#define RSTVAL_GPIO_IENA                                           (0X0) 
#define RSTVAL_GPIO_IENB                                           (0X0) 
#define RSTVAL_GPIO_INT                                            (0X0) 

/* ====================================================================================================
        GPIO Module Register BitPositions, Lengths, Masks and Enumerations Definitions
   ==================================================================================================== */

/* ----------------------------------------------------------------------------------------------------
          CON                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_GPIO_CON_CON0                                    (0U)           /* PIN 0 Configuration Bits */
#define BITL_GPIO_CON_CON0                                    (2U)           /* PIN 0 Configuration Bits */
#define BITM_GPIO_CON_CON0                                    (0X0003U)      /* PIN 0 Configuration Bits */
#define BITP_GPIO_CON_CON1                                    (2U)           /* PIN 1 Configuration Bits */
#define BITL_GPIO_CON_CON1                                    (2U)           /* PIN 1 Configuration Bits */
#define BITM_GPIO_CON_CON1                                    (0X000CU)      /* PIN 1 Configuration Bits */
#define BITP_GPIO_CON_CON2                                    (4U)           /* PIN 2 Configuration Bits */
#define BITL_GPIO_CON_CON2                                    (2U)           /* PIN 2 Configuration Bits */
#define BITM_GPIO_CON_CON2                                    (0X0030U)      /* PIN 2 Configuration Bits */
#define BITP_GPIO_CON_CON3                                    (6U)           /* PIN 3 Configuration Bits */
#define BITL_GPIO_CON_CON3                                    (2U)           /* PIN 3 Configuration Bits */
#define BITM_GPIO_CON_CON3                                    (0X00C0U)      /* PIN 3 Configuration Bits */
#define BITP_GPIO_CON_CON4                                    (8U)           /* PIN 4 Configuration Bits */
#define BITL_GPIO_CON_CON4                                    (2U)           /* PIN 4 Configuration Bits */
#define BITM_GPIO_CON_CON4                                    (0X0300U)      /* PIN 4 Configuration Bits */
#define BITP_GPIO_CON_CON5                                    (10U)          /* PIN 5 Configuration Bits */
#define BITL_GPIO_CON_CON5                                    (2U)           /* PIN 5 Configuration Bits */
#define BITM_GPIO_CON_CON5                                    (0X0C00U)      /* PIN 5 Configuration Bits */
#define BITP_GPIO_CON_CON6                                    (12U)          /* PIN 6 Configuration Bits */
#define BITL_GPIO_CON_CON6                                    (2U)           /* PIN 6 Configuration Bits */
#define BITM_GPIO_CON_CON6                                    (0X3000U)      /* PIN 6 Configuration Bits */
#define BITP_GPIO_CON_CON7                                    (14U)          /* PIN 6 Configuration Bits */
#define BITL_GPIO_CON_CON7                                    (2U)           /* PIN 6 Configuration Bits */
#define BITM_GPIO_CON_CON7                                    (0XC000U)      /* PIN 6 Configuration Bits */

#define ENUM_GPIO_CON_CON7_FUNCTION0                          (0X0000U)      /* No description provided */
#define ENUM_GPIO_CON_CON7_FUNCTION1                          (0X0001U)      /* No description provided */
#define ENUM_GPIO_CON_CON7_FUNCTION2                          (0X0002U)      /* No description provided */
#define ENUM_GPIO_CON_CON7_FUNCTION3                          (0X0003U)      /* No description provided */
#define ENUM_GPIO_CON_CON6_FUNCTION0                          (0X0000U)      /* No description provided */
#define ENUM_GPIO_CON_CON6_FUNCTION1                          (0X0001U)      /* No description provided */
#define ENUM_GPIO_CON_CON6_FUNCTION2                          (0X0002U)      /* No description provided */
#define ENUM_GPIO_CON_CON6_FUNCTION3                          (0X0003U)      /* No description provided */
#define ENUM_GPIO_CON_CON5_FUNCTION0                          (0X0000U)      /* No description provided */
#define ENUM_GPIO_CON_CON5_FUNCTION1                          (0X0001U)      /* No description provided */
#define ENUM_GPIO_CON_CON5_FUNCTION2                          (0X0002U)      /* No description provided */
#define ENUM_GPIO_CON_CON5_FUNCTION3                          (0X0003U)      /* No description provided */
#define ENUM_GPIO_CON_CON4_FUNCTION0                          (0X0000U)      /* No description provided */
#define ENUM_GPIO_CON_CON4_FUNCTION1                          (0X0001U)      /* No description provided */
#define ENUM_GPIO_CON_CON4_FUNCTION2                          (0X0002U)      /* No description provided */
#define ENUM_GPIO_CON_CON4_FUNCTION3                          (0X0003U)      /* No description provided */
#define ENUM_GPIO_CON_CON3_FUNCTION0                          (0X0000U)      /* No description provided */
#define ENUM_GPIO_CON_CON3_FUNCTION1                          (0X0001U)      /* No description provided */
#define ENUM_GPIO_CON_CON3_FUNCTION2                          (0X0002U)      /* No description provided */
#define ENUM_GPIO_CON_CON3_FUNCTION3                          (0X0003U)      /* No description provided */
#define ENUM_GPIO_CON_CON2_FUNCTION0                          (0X0000U)      /* No description provided */
#define ENUM_GPIO_CON_CON2_FUNCTION1                          (0X0001U)      /* No description provided */
#define ENUM_GPIO_CON_CON2_FUNCTION2                          (0X0002U)      /* No description provided */
#define ENUM_GPIO_CON_CON2_FUNCTION3                          (0X0003U)      /* No description provided */
#define ENUM_GPIO_CON_CON1_FUNCTION0                          (0X0000U)      /* No description provided */
#define ENUM_GPIO_CON_CON1_FUNCTION1                          (0X0001U)      /* No description provided */
#define ENUM_GPIO_CON_CON1_FUNCTION2                          (0X0002U)      /* No description provided */
#define ENUM_GPIO_CON_CON1_FUNCTION3                          (0X0003U)      /* No description provided */
#define ENUM_GPIO_CON_CON0_FUNCTION0                          (0X0000U)      /* No description provided */
#define ENUM_GPIO_CON_CON0_FUNCTION1                          (0X0001U)      /* No description provided */
#define ENUM_GPIO_CON_CON0_FUNCTION2                          (0X0002U)      /* No description provided */
#define ENUM_GPIO_CON_CON0_FUNCTION3                          (0X0003U)      /* No description provided */

/* ----------------------------------------------------------------------------------------------------
          OE                                                    Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_GPIO_OE_OE                                       (0U)           /* Open Drain Enable */
#define BITL_GPIO_OE_OE                                       (8U)           /* Open Drain Enable */
#define BITM_GPIO_OE_OE                                       (0XFFU)        /* Open Drain Enable */

/* ----------------------------------------------------------------------------------------------------
          IE                                                    Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_GPIO_IE_IE                                       (0U)           /* Input Enable */
#define BITL_GPIO_IE_IE                                       (8U)           /* Input Enable */
#define BITM_GPIO_IE_IE                                       (0XFFU)        /* Input Enable */

/* ----------------------------------------------------------------------------------------------------
          IN                                                    Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_GPIO_IN_A                                        (0U)           /* Diver Data Input */
#define BITL_GPIO_IN_A                                        (8U)           /* Diver Data Input */
#define BITM_GPIO_IN_A                                        (0XFFU)        /* Diver Data Input */

/* ----------------------------------------------------------------------------------------------------
          OUT                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_GPIO_OUT_Y                                       (0U)           /* Input Data from Pad */
#define BITL_GPIO_OUT_Y                                       (8U)           /* Input Data from Pad */
#define BITM_GPIO_OUT_Y                                       (0XFFU)        /* Input Data from Pad */

/* ----------------------------------------------------------------------------------------------------
          SET                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_GPIO_SET_SETUP                                   (0U)           /* Set the Output HIGH for the Pin */
#define BITL_GPIO_SET_SETUP                                   (8U)           /* Set the Output HIGH for the Pin */
#define BITM_GPIO_SET_SETUP                                   (0XFFU)        /* Set the Output HIGH for the Pin */

/* ----------------------------------------------------------------------------------------------------
          CLR                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_GPIO_CLR_CLR                                     (0U)           /* Set the Output Low for the Port Pin */
#define BITL_GPIO_CLR_CLR                                     (8U)           /* Set the Output Low for the Port Pin */
#define BITM_GPIO_CLR_CLR                                     (0XFFU)        /* Set the Output Low for the Port Pin */

/* ----------------------------------------------------------------------------------------------------
          TGL                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_GPIO_TGL_TGL                                     (0U)           /* Toggle the Output of the Port Pin */
#define BITL_GPIO_TGL_TGL                                     (8U)           /* Toggle the Output of the Port Pin */
#define BITM_GPIO_TGL_TGL                                     (0XFFU)        /* Toggle the Output of the Port Pin */

/* ----------------------------------------------------------------------------------------------------
          ODE                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_GPIO_ODE_ODE                                     (0U)           /* Open Drain Enable */
#define BITL_GPIO_ODE_ODE                                     (8U)           /* Open Drain Enable */
#define BITM_GPIO_ODE_ODE                                     (0XFFU)        /* Open Drain Enable */

/* ----------------------------------------------------------------------------------------------------
          IS                                                    Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_GPIO_IS_IS                                       (0U)           /* Input Select */
#define BITL_GPIO_IS_IS                                       (8U)           /* Input Select */
#define BITM_GPIO_IS_IS                                       (0XFFU)        /* Input Select */

/* ----------------------------------------------------------------------------------------------------
          PE                                                    Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_GPIO_PE_PE                                       (0U)           /* Pull Enable */
#define BITL_GPIO_PE_PE                                       (8U)           /* Pull Enable */
#define BITM_GPIO_PE_PE                                       (0XFFU)        /* Pull Enable */

/* ----------------------------------------------------------------------------------------------------
          PS                                                    Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_GPIO_PS_PS                                       (0U)           /* Pull Select */
#define BITL_GPIO_PS_PS                                       (8U)           /* Pull Select */
#define BITM_GPIO_PS_PS                                       (0XFFU)        /* Pull Select */

/* ----------------------------------------------------------------------------------------------------
          SR                                                    Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_GPIO_SR_SR                                       (0U)           /* Slew Rate */
#define BITL_GPIO_SR_SR                                       (8U)           /* Slew Rate */
#define BITM_GPIO_SR_SR                                       (0XFFU)        /* Slew Rate */

/* ----------------------------------------------------------------------------------------------------
          DS                                                    Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_GPIO_DS_DS0                                      (0U)           /* PIN 0 Drive Select */
#define BITL_GPIO_DS_DS0                                      (2U)           /* PIN 0 Drive Select */
#define BITM_GPIO_DS_DS0                                      (0X0003U)      /* PIN 0 Drive Select */
#define BITP_GPIO_DS_DS1                                      (2U)           /* PIN 1 Drive Select */
#define BITL_GPIO_DS_DS1                                      (2U)           /* PIN 1 Drive Select */
#define BITM_GPIO_DS_DS1                                      (0X000CU)      /* PIN 1 Drive Select */
#define BITP_GPIO_DS_DS2                                      (4U)           /* PIN 2 Drive Select */
#define BITL_GPIO_DS_DS2                                      (2U)           /* PIN 2 Drive Select */
#define BITM_GPIO_DS_DS2                                      (0X0030U)      /* PIN 2 Drive Select */
#define BITP_GPIO_DS_DS3                                      (6U)           /* PIN 3 Drive Select */
#define BITL_GPIO_DS_DS3                                      (2U)           /* PIN 3 Drive Select */
#define BITM_GPIO_DS_DS3                                      (0X00C0U)      /* PIN 3 Drive Select */
#define BITP_GPIO_DS_DS4                                      (8U)           /* PIN 4 Drive Select */
#define BITL_GPIO_DS_DS4                                      (2U)           /* PIN 4 Drive Select */
#define BITM_GPIO_DS_DS4                                      (0X0300U)      /* PIN 4 Drive Select */
#define BITP_GPIO_DS_DS5                                      (10U)          /* PIN 5 Drive Select */
#define BITL_GPIO_DS_DS5                                      (2U)           /* PIN 5 Drive Select */
#define BITM_GPIO_DS_DS5                                      (0X0C00U)      /* PIN 5 Drive Select */
#define BITP_GPIO_DS_DS6                                      (12U)          /* PIN6 Drive Select */
#define BITL_GPIO_DS_DS6                                      (2U)           /* PIN6 Drive Select */
#define BITM_GPIO_DS_DS6                                      (0X3000U)      /* PIN6 Drive Select */
#define BITP_GPIO_DS_DS7                                      (14U)          /* PIN 7 Drive Select */
#define BITL_GPIO_DS_DS7                                      (2U)           /* PIN 7 Drive Select */
#define BITM_GPIO_DS_DS7                                      (0XC000U)      /* PIN 7 Drive Select */

#define ENUM_GPIO_DS_DS7_STRENGTH1                            (0X0000U)      /* Drive Strength 1 */
#define ENUM_GPIO_DS_DS7_STRENGTH2                            (0X0001U)      /* Drive Strength 2 */
#define ENUM_GPIO_DS_DS7_STRENGTH3                            (0X0002U)      /* Drive Strength 3 */
#define ENUM_GPIO_DS_DS7_STRENGTH4                            (0X0003U)      /* Drive Strength 4 */
#define ENUM_GPIO_DS_DS6_STRENGTH1                            (0X0000U)      /* Drive Strength 1 */
#define ENUM_GPIO_DS_DS6_STRENGTH2                            (0X0001U)      /* Drive Strength 2 */
#define ENUM_GPIO_DS_DS6_STRENGTH3                            (0X0002U)      /* Drive Strength 3 */
#define ENUM_GPIO_DS_DS6_STRENGTH4                            (0X0003U)      /* Drive Strength 4 */
#define ENUM_GPIO_DS_DS5_STRENGTH1                            (0X0000U)      /* Drive Strength 1 */
#define ENUM_GPIO_DS_DS5_STRENGTH2                            (0X0001U)      /* Drive Strength 2 */
#define ENUM_GPIO_DS_DS5_STRENGTH3                            (0X0002U)      /* Drive Strength 3 */
#define ENUM_GPIO_DS_DS5_STRENGTH4                            (0X0003U)      /* Drive Strength 4 */
#define ENUM_GPIO_DS_DS4_STRENGTH1                            (0X0000U)      /* Drive Strength 1 */
#define ENUM_GPIO_DS_DS4_STRENGTH2                            (0X0001U)      /* Drive Strength 2 */
#define ENUM_GPIO_DS_DS4_STRENGTH3                            (0X0002U)      /* Drive Strength 3 */
#define ENUM_GPIO_DS_DS4_STRENGTH4                            (0X0003U)      /* Drive Strength 4 */
#define ENUM_GPIO_DS_DS3_STRENGTH1                            (0X0000U)      /* Drive Strength 1 */
#define ENUM_GPIO_DS_DS3_STRENGTH2                            (0X0001U)      /* Drive Strength 2 */
#define ENUM_GPIO_DS_DS3_STRENGTH3                            (0X0002U)      /* Drive Strength 3 */
#define ENUM_GPIO_DS_DS3_STRENGTH4                            (0X0003U)      /* Drive Strength 4 */
#define ENUM_GPIO_DS_DS2_STRENGTH1                            (0X0000U)      /* Drive Strength 1 */
#define ENUM_GPIO_DS_DS2_STRENGTH2                            (0X0001U)      /* Drive Strength 2 */
#define ENUM_GPIO_DS_DS2_STRENGTH3                            (0X0002U)      /* Drive Strength 3 */
#define ENUM_GPIO_DS_DS2_STRENGTH4                            (0X0003U)      /* Drive Strength 4 */
#define ENUM_GPIO_DS_DS1_STRENGTH1                            (0X0000U)      /* Drive Strength 1 */
#define ENUM_GPIO_DS_DS1_STRENGTH2                            (0X0001U)      /* Drive Strength 2 */
#define ENUM_GPIO_DS_DS1_STRENGTH3                            (0X0002U)      /* Drive Strength 3 */
#define ENUM_GPIO_DS_DS1_STRENGTH4                            (0X0003U)      /* Drive Strength 4 */
#define ENUM_GPIO_DS_DS0_STRENGTH1                            (0X0000U)      /* Drive Strength 1 */
#define ENUM_GPIO_DS_DS0_STRENGTH2                            (0X0001U)      /* Drive Strength 2 */
#define ENUM_GPIO_DS_DS0_STRENGTH3                            (0X0002U)      /* Drive Strength 3 */
#define ENUM_GPIO_DS_DS0_STRENGTH4                            (0X0003U)      /* Drive Strength 4 */

/* ----------------------------------------------------------------------------------------------------
          PWR                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_GPIO_PWR_PWR                                     (0U)           /* Pad Power Select */
#define BITL_GPIO_PWR_PWR                                     (8U)           /* Pad Power Select */
#define BITM_GPIO_PWR_PWR                                     (0XFFU)        /* Pad Power Select */

/* ----------------------------------------------------------------------------------------------------
          POL                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_GPIO_POL_INTPOL                                  (0U)           /* Parametric Output */
#define BITL_GPIO_POL_INTPOL                                  (8U)           /* Parametric Output */
#define BITM_GPIO_POL_INTPOL                                  (0XFFU)        /* Parametric Output */

/* ----------------------------------------------------------------------------------------------------
          IENA                                                  Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_GPIO_IENA_INTAEN                                 (0U)           /* InterruptA Enable */
#define BITL_GPIO_IENA_INTAEN                                 (8U)           /* InterruptA Enable */
#define BITM_GPIO_IENA_INTAEN                                 (0XFFU)        /* InterruptA Enable */

/* ----------------------------------------------------------------------------------------------------
          IENB                                                  Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_GPIO_IENB_INTBEN                                 (0U)           /* InterruptA Enable */
#define BITL_GPIO_IENB_INTBEN                                 (8U)           /* InterruptA Enable */
#define BITM_GPIO_IENB_INTBEN                                 (0XFFU)        /* InterruptA Enable */

/* ----------------------------------------------------------------------------------------------------
          INT                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_GPIO_INT_INTSTATUS                               (0U)           /* Interrupt Status */
#define BITL_GPIO_INT_INTSTATUS                               (8U)           /* Interrupt Status */
#define BITM_GPIO_INT_INTSTATUS                               (0XFFU)        /* Interrupt Status */

#endif  /* end ifndef GPIO_ADDR_RDEF_H_ */


#ifndef SPI_ADDR_RDEF_H_
#define SPI_ADDR_RDEF_H_    /* SPI: Serial Peripheral Interface */

/* ====================================================================================================
        SPI Module Instances Address and Mask Definitions
   ==================================================================================================== */
#define INST_SPI0                                                (0X40054000U)    /* spi0: */
#define INST_SPI1                                                (0X40058000U)    /* spi1: */
#define INST_SPI2                                                (0X4005C000U)    /* spi2: */

#define MASK_SPI                                                 (0X000000FFU)    /* SPI: Serial Peripheral Interface */

/* ====================================================================================================
        SPI Module Register Address Offset Definitions
   ==================================================================================================== */
#define IDX_SPI_STAT                                            (0X00U)    /* Status */
#define IDX_SPI_RX                                              (0X04U)    /* Receive */
#define IDX_SPI_TX                                              (0X08U)    /* Transmit */
#define IDX_SPI_DIV                                             (0X0CU)    /* SPI Baud Rate Selection */
#define IDX_SPI_CTL                                             (0X10U)    /* SPI Configuration 1 */
#define IDX_SPI_IEN                                             (0X14U)    /* SPI Configuration 2 */
#define IDX_SPI_CNT                                             (0X18U)    /* Transfer Byte Count */
#define IDX_SPI_DMA                                             (0X1CU)    /* SPI DMA Enable */
#define IDX_SPI_FIFOSTAT                                        (0X20U)    /* FIFO Status */
#define IDX_SPI_RDCTL                                           (0X24U)    /* Read Control */
#define IDX_SPI_FLOWCTL                                         (0X28U)    /* Flow Control */
#define IDX_SPI_WAITTMR                                         (0X2CU)    /* Wait Timer for Flow Control */
#define IDX_SPI_CSOVERRIDE                                      (0X34U)    /* Chip-Select Override */

/* ====================================================================================================
        SPI Module Register ResetValue Definitions
   ==================================================================================================== */
#define RSTVAL_SPI_STAT                                            (0X800) 
#define RSTVAL_SPI_RX                                              (0X0) 
#define RSTVAL_SPI_TX                                              (0X0) 
#define RSTVAL_SPI_DIV                                             (0X0) 
#define RSTVAL_SPI_CTL                                             (0X0) 
#define RSTVAL_SPI_IEN                                             (0X0) 
#define RSTVAL_SPI_CNT                                             (0X0) 
#define RSTVAL_SPI_DMA                                             (0X0) 
#define RSTVAL_SPI_FIFOSTAT                                        (0X0) 
#define RSTVAL_SPI_RDCTL                                           (0X0) 
#define RSTVAL_SPI_FLOWCTL                                         (0X0) 
#define RSTVAL_SPI_WAITTMR                                         (0X0) 
#define RSTVAL_SPI_CSOVERRIDE                                      (0X0) 

/* ====================================================================================================
        SPI Module Register BitPositions, Lengths, Masks and Enumerations Definitions
   ==================================================================================================== */

/* ----------------------------------------------------------------------------------------------------
          STAT                                                  Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_SPI_STAT_IRQ                                     (0U)           /* SPI Interrupt Status */
#define BITL_SPI_STAT_IRQ                                     (1U)           /* SPI Interrupt Status */
#define BITM_SPI_STAT_IRQ                                     (0X0001U)      /* SPI Interrupt Status */
#define BITP_SPI_STAT_XFRDONE                                 (1U)           /* SPI Transfer Completion */
#define BITL_SPI_STAT_XFRDONE                                 (1U)           /* SPI Transfer Completion */
#define BITM_SPI_STAT_XFRDONE                                 (0X0002U)      /* SPI Transfer Completion */
#define BITP_SPI_STAT_TXEMPTY                                 (2U)           /* SPI Tx FIFO Empty Interrupt */
#define BITL_SPI_STAT_TXEMPTY                                 (1U)           /* SPI Tx FIFO Empty Interrupt */
#define BITM_SPI_STAT_TXEMPTY                                 (0X0004U)      /* SPI Tx FIFO Empty Interrupt */
#define BITP_SPI_STAT_TXDONE                                  (3U)           /* SPI Tx Done in Read Command Mode */
#define BITL_SPI_STAT_TXDONE                                  (1U)           /* SPI Tx Done in Read Command Mode */
#define BITM_SPI_STAT_TXDONE                                  (0X0008U)      /* SPI Tx Done in Read Command Mode */
#define BITP_SPI_STAT_TXUNDR                                  (4U)           /* SPI Tx FIFO Underflow */
#define BITL_SPI_STAT_TXUNDR                                  (1U)           /* SPI Tx FIFO Underflow */
#define BITM_SPI_STAT_TXUNDR                                  (0X0010U)      /* SPI Tx FIFO Underflow */
#define BITP_SPI_STAT_TXIRQ                                   (5U)           /* SPI Tx IRQ */
#define BITL_SPI_STAT_TXIRQ                                   (1U)           /* SPI Tx IRQ */
#define BITM_SPI_STAT_TXIRQ                                   (0X0020U)      /* SPI Tx IRQ */
#define BITP_SPI_STAT_RXIRQ                                   (6U)           /* SPI Rx IRQ */
#define BITL_SPI_STAT_RXIRQ                                   (1U)           /* SPI Rx IRQ */
#define BITM_SPI_STAT_RXIRQ                                   (0X0040U)      /* SPI Rx IRQ */
#define BITP_SPI_STAT_RXOVR                                   (7U)           /* SPI Rx FIFO Overflow */
#define BITL_SPI_STAT_RXOVR                                   (1U)           /* SPI Rx FIFO Overflow */
#define BITM_SPI_STAT_RXOVR                                   (0X0080U)      /* SPI Rx FIFO Overflow */
#define BITP_SPI_STAT_CS                                      (11U)          /* CS Status */
#define BITL_SPI_STAT_CS                                      (1U)           /* CS Status */
#define BITM_SPI_STAT_CS                                      (0X0800U)      /* CS Status */
#define BITP_SPI_STAT_CSERR                                   (12U)          /* Detected a CS Error Condition in Slave Mode */
#define BITL_SPI_STAT_CSERR                                   (1U)           /* Detected a CS Error Condition in Slave Mode */
#define BITM_SPI_STAT_CSERR                                   (0X1000U)      /* Detected a CS Error Condition in Slave Mode */
#define BITP_SPI_STAT_CSRISE                                  (13U)          /* Detected a Rising Edge on CS, in Slave CON Mode */
#define BITL_SPI_STAT_CSRISE                                  (1U)           /* Detected a Rising Edge on CS, in Slave CON Mode */
#define BITM_SPI_STAT_CSRISE                                  (0X2000U)      /* Detected a Rising Edge on CS, in Slave CON Mode */
#define BITP_SPI_STAT_CSFALL                                  (14U)          /* Detected a Falling Edge on CS, in Slave CON Mode */
#define BITL_SPI_STAT_CSFALL                                  (1U)           /* Detected a Falling Edge on CS, in Slave CON Mode */
#define BITM_SPI_STAT_CSFALL                                  (0X4000U)      /* Detected a Falling Edge on CS, in Slave CON Mode */
#define BITP_SPI_STAT_RDY                                     (15U)          /* Detected an Edge on Ready Indicator for Flow-control */
#define BITL_SPI_STAT_RDY                                     (1U)           /* Detected an Edge on Ready Indicator for Flow-control */
#define BITM_SPI_STAT_RDY                                     (0X8000U)      /* Detected an Edge on Ready Indicator for Flow-control */

/* ----------------------------------------------------------------------------------------------------
          RX                                                    Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_SPI_RX_BYTE1                                     (0U)           /* 8-bit Receive Buffer */
#define BITL_SPI_RX_BYTE1                                     (8U)           /* 8-bit Receive Buffer */
#define BITM_SPI_RX_BYTE1                                     (0X00FFU)      /* 8-bit Receive Buffer */
#define BITP_SPI_RX_BYTE2                                     (8U)           /* 8-bit Receive Buffer, Used Only in DMA Modes */
#define BITL_SPI_RX_BYTE2                                     (8U)           /* 8-bit Receive Buffer, Used Only in DMA Modes */
#define BITM_SPI_RX_BYTE2                                     (0XFF00U)      /* 8-bit Receive Buffer, Used Only in DMA Modes */

/* ----------------------------------------------------------------------------------------------------
          TX                                                    Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_SPI_TX_BYTE1                                     (0U)           /* 8-bit Transmit Buffer */
#define BITL_SPI_TX_BYTE1                                     (8U)           /* 8-bit Transmit Buffer */
#define BITM_SPI_TX_BYTE1                                     (0X00FFU)      /* 8-bit Transmit Buffer */
#define BITP_SPI_TX_BYTE2                                     (8U)           /* 8-bit Transmit Buffer, Used Only in DMA Modes */
#define BITL_SPI_TX_BYTE2                                     (8U)           /* 8-bit Transmit Buffer, Used Only in DMA Modes */
#define BITM_SPI_TX_BYTE2                                     (0XFF00U)      /* 8-bit Transmit Buffer, Used Only in DMA Modes */

/* ----------------------------------------------------------------------------------------------------
          DIV                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_SPI_DIV_DIV                                      (0U)           /* SPI Clock Divider */
#define BITL_SPI_DIV_DIV                                      (6U)           /* SPI Clock Divider */
#define BITM_SPI_DIV_DIV                                      (0X003FU)      /* SPI Clock Divider */
#define BITP_SPI_DIV_SFR                                      (8U)           /* Slave Free Run Mode */
#define BITL_SPI_DIV_SFR                                      (1U)           /* Slave Free Run Mode */
#define BITM_SPI_DIV_SFR                                      (0X0100U)      /* Slave Free Run Mode */

/* ----------------------------------------------------------------------------------------------------
          CTL                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_SPI_CTL_SPIEN                                    (0U)           /* SPI Enable */
#define BITL_SPI_CTL_SPIEN                                    (1U)           /* SPI Enable */
#define BITM_SPI_CTL_SPIEN                                    (0X0001U)      /* SPI Enable */
#define BITP_SPI_CTL_MASEN                                    (1U)           /* Master Mode Enable */
#define BITL_SPI_CTL_MASEN                                    (1U)           /* Master Mode Enable */
#define BITM_SPI_CTL_MASEN                                    (0X0002U)      /* Master Mode Enable */
#define BITP_SPI_CTL_CPHA                                     (2U)           /* Serial Clock Phase Mode */
#define BITL_SPI_CTL_CPHA                                     (1U)           /* Serial Clock Phase Mode */
#define BITM_SPI_CTL_CPHA                                     (0X0004U)      /* Serial Clock Phase Mode */
#define BITP_SPI_CTL_CPOL                                     (3U)           /* Serial Clock Polarity */
#define BITL_SPI_CTL_CPOL                                     (1U)           /* Serial Clock Polarity */
#define BITM_SPI_CTL_CPOL                                     (0X0008U)      /* Serial Clock Polarity */
#define BITP_SPI_CTL_WOM                                      (4U)           /* SPI Wired or Mode */
#define BITL_SPI_CTL_WOM                                      (1U)           /* SPI Wired or Mode */
#define BITM_SPI_CTL_WOM                                      (0X0010U)      /* SPI Wired or Mode */
#define BITP_SPI_CTL_LSB                                      (5U)           /* LSB First Transfer Enable */
#define BITL_SPI_CTL_LSB                                      (1U)           /* LSB First Transfer Enable */
#define BITM_SPI_CTL_LSB                                      (0X0020U)      /* LSB First Transfer Enable */
#define BITP_SPI_CTL_TIM                                      (6U)           /* SPI Transfer and Interrupt Mode */
#define BITL_SPI_CTL_TIM                                      (1U)           /* SPI Transfer and Interrupt Mode */
#define BITM_SPI_CTL_TIM                                      (0X0040U)      /* SPI Transfer and Interrupt Mode */
#define BITP_SPI_CTL_ZEN                                      (7U)           /* Transmit Zeros Enable */
#define BITL_SPI_CTL_ZEN                                      (1U)           /* Transmit Zeros Enable */
#define BITM_SPI_CTL_ZEN                                      (0X0080U)      /* Transmit Zeros Enable */
#define BITP_SPI_CTL_RXOF                                     (8U)           /* RX Overflow Overwrite Enable */
#define BITL_SPI_CTL_RXOF                                     (1U)           /* RX Overflow Overwrite Enable */
#define BITM_SPI_CTL_RXOF                                     (0X0100U)      /* RX Overflow Overwrite Enable */
#define BITP_SPI_CTL_OEN                                      (9U)           /* Slave MISO Output Enable */
#define BITL_SPI_CTL_OEN                                      (1U)           /* Slave MISO Output Enable */
#define BITM_SPI_CTL_OEN                                      (0X0200U)      /* Slave MISO Output Enable */
#define BITP_SPI_CTL_LOOPBACK                                 (10U)          /* Loopback Enable */
#define BITL_SPI_CTL_LOOPBACK                                 (1U)           /* Loopback Enable */
#define BITM_SPI_CTL_LOOPBACK                                 (0X0400U)      /* Loopback Enable */
#define BITP_SPI_CTL_CON                                      (11U)          /* Continuous Transfer Enable */
#define BITL_SPI_CTL_CON                                      (1U)           /* Continuous Transfer Enable */
#define BITM_SPI_CTL_CON                                      (0X0800U)      /* Continuous Transfer Enable */
#define BITP_SPI_CTL_RFLUSH                                   (12U)          /* SPI Rx FIFO Flush Enable */
#define BITL_SPI_CTL_RFLUSH                                   (1U)           /* SPI Rx FIFO Flush Enable */
#define BITM_SPI_CTL_RFLUSH                                   (0X1000U)      /* SPI Rx FIFO Flush Enable */
#define BITP_SPI_CTL_TFLUSH                                   (13U)          /* SPI Tx FIFO Flush Enable */
#define BITL_SPI_CTL_TFLUSH                                   (1U)           /* SPI Tx FIFO Flush Enable */
#define BITM_SPI_CTL_TFLUSH                                   (0X2000U)      /* SPI Tx FIFO Flush Enable */
#define BITP_SPI_CTL_CSRST                                    (14U)          /* Reset Mode for CS Error Bit */
#define BITL_SPI_CTL_CSRST                                    (1U)           /* Reset Mode for CS Error Bit */
#define BITM_SPI_CTL_CSRST                                    (0X4000U)      /* Reset Mode for CS Error Bit */

/* ----------------------------------------------------------------------------------------------------
          IEN                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_SPI_IEN_IRQMODE                                  (0U)           /* SPI IRQ Mode Bits */
#define BITL_SPI_IEN_IRQMODE                                  (3U)           /* SPI IRQ Mode Bits */
#define BITM_SPI_IEN_IRQMODE                                  (0X0007U)      /* SPI IRQ Mode Bits */
#define BITP_SPI_IEN_CS                                       (8U)           /* Enable Interrupt on Every CS Edge in Slave CON Mode */
#define BITL_SPI_IEN_CS                                       (1U)           /* Enable Interrupt on Every CS Edge in Slave CON Mode */
#define BITM_SPI_IEN_CS                                       (0X0100U)      /* Enable Interrupt on Every CS Edge in Slave CON Mode */
#define BITP_SPI_IEN_TXUNDR                                   (9U)           /* Tx-underflow Interrupt Enable */
#define BITL_SPI_IEN_TXUNDR                                   (1U)           /* Tx-underflow Interrupt Enable */
#define BITM_SPI_IEN_TXUNDR                                   (0X0200U)      /* Tx-underflow Interrupt Enable */
#define BITP_SPI_IEN_RXOVR                                    (10U)          /* Rx-overflow Interrupt Enable */
#define BITL_SPI_IEN_RXOVR                                    (1U)           /* Rx-overflow Interrupt Enable */
#define BITM_SPI_IEN_RXOVR                                    (0X0400U)      /* Rx-overflow Interrupt Enable */
#define BITP_SPI_IEN_RDY                                      (11U)          /* Ready Signal Edge Interrupt Enable */
#define BITL_SPI_IEN_RDY                                      (1U)           /* Ready Signal Edge Interrupt Enable */
#define BITM_SPI_IEN_RDY                                      (0X0800U)      /* Ready Signal Edge Interrupt Enable */
#define BITP_SPI_IEN_TXDONE                                   (12U)          /* SPI Transmit Done Interrupt Enable */
#define BITL_SPI_IEN_TXDONE                                   (1U)           /* SPI Transmit Done Interrupt Enable */
#define BITM_SPI_IEN_TXDONE                                   (0X1000U)      /* SPI Transmit Done Interrupt Enable */
#define BITP_SPI_IEN_XFRDONE                                  (13U)          /* SPI Transfer Completion Interrupt Enable */
#define BITL_SPI_IEN_XFRDONE                                  (1U)           /* SPI Transfer Completion Interrupt Enable */
#define BITM_SPI_IEN_XFRDONE                                  (0X2000U)      /* SPI Transfer Completion Interrupt Enable */
#define BITP_SPI_IEN_TXEMPTY                                  (14U)          /* Tx-FIFO Empty Interrupt Enable */
#define BITL_SPI_IEN_TXEMPTY                                  (1U)           /* Tx-FIFO Empty Interrupt Enable */
#define BITM_SPI_IEN_TXEMPTY                                  (0X4000U)      /* Tx-FIFO Empty Interrupt Enable */

#define ENUM_SPI_IEN_IRQMODE_TX1RX1                           (0X0000U)      /* Interrupt Occurs After 1 Byte is Transfered or Received */
#define ENUM_SPI_IEN_IRQMODE_TX2RX2                           (0X0001U)      /* Interrupt Occurs After 2 Byte is Transfered or Received */
#define ENUM_SPI_IEN_IRQMODE_TX3RX3                           (0X0002U)      /* Interrupt Occurs After 3 Byte is Transfered or Received */
#define ENUM_SPI_IEN_IRQMODE_TX4RX4                           (0X0003U)      /* Interrupt Occurs After 4 Byte is Transfered or Received */
#define ENUM_SPI_IEN_IRQMODE_TX5RX5                           (0X0004U)      /* Interrupt Occurs After 5 Byte is Transfered or Received */
#define ENUM_SPI_IEN_IRQMODE_TX6RX6                           (0X0005U)      /* Interrupt Occurs After 6 Byte is Transfered or Received */
#define ENUM_SPI_IEN_IRQMODE_TX7RX7                           (0X0006U)      /* Interrupt Occurs After 7 Byte is Transfered or Received */
#define ENUM_SPI_IEN_IRQMODE_TX8RX8                           (0X0007U)      /* Interrupt Occurs After 8 Byte is Transfered or Received */

/* ----------------------------------------------------------------------------------------------------
          CNT                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_SPI_CNT_VALUES                                   (0U)           /* Transfer Byte Count */
#define BITL_SPI_CNT_VALUES                                   (14U)          /* Transfer Byte Count */
#define BITM_SPI_CNT_VALUES                                   (0X3FFFU)      /* Transfer Byte Count */
#define BITP_SPI_CNT_FRAMECONT                                (15U)          /* Continue Frame */
#define BITL_SPI_CNT_FRAMECONT                                (1U)           /* Continue Frame */
#define BITM_SPI_CNT_FRAMECONT                                (0X8000U)      /* Continue Frame */

/* ----------------------------------------------------------------------------------------------------
          DMA                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_SPI_DMA_EN                                       (0U)           /* Enable DMA for Data Transfer */
#define BITL_SPI_DMA_EN                                       (1U)           /* Enable DMA for Data Transfer */
#define BITM_SPI_DMA_EN                                       (0X0001U)      /* Enable DMA for Data Transfer */
#define BITP_SPI_DMA_TXEN                                     (1U)           /* Enable Transmit DMA Request */
#define BITL_SPI_DMA_TXEN                                     (1U)           /* Enable Transmit DMA Request */
#define BITM_SPI_DMA_TXEN                                     (0X0002U)      /* Enable Transmit DMA Request */
#define BITP_SPI_DMA_RXEN                                     (2U)           /* Enable Receive DMA Request */
#define BITL_SPI_DMA_RXEN                                     (1U)           /* Enable Receive DMA Request */
#define BITM_SPI_DMA_RXEN                                     (0X0004U)      /* Enable Receive DMA Request */

/* ----------------------------------------------------------------------------------------------------
          FIFOSTAT                                              Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_SPI_FIFOSTAT_TX                                  (0U)           /* SPI Tx FIFO Status */
#define BITL_SPI_FIFOSTAT_TX                                  (4U)           /* SPI Tx FIFO Status */
#define BITM_SPI_FIFOSTAT_TX                                  (0X000FU)      /* SPI Tx FIFO Status */
#define BITP_SPI_FIFOSTAT_RX                                  (8U)           /* SPI Rx FIFO Status */
#define BITL_SPI_FIFOSTAT_RX                                  (4U)           /* SPI Rx FIFO Status */
#define BITM_SPI_FIFOSTAT_RX                                  (0X0F00U)      /* SPI Rx FIFO Status */

#define ENUM_SPI_FIFOSTAT_RX_EMPTY                            (0X0000U)      /* Rx FIFO Empty */
#define ENUM_SPI_FIFOSTAT_RX_ONE                              (0X0001U)      /* 1 Valid Byte/half-word in Rx FIFO */
#define ENUM_SPI_FIFOSTAT_RX_TWO                              (0X0002U)      /* 2 Valid Bytes/half-words in Rx FIFO */
#define ENUM_SPI_FIFOSTAT_RX_THREE                            (0X0003U)      /* 3 Valid Bytes/half-words in Rx FIFO */
#define ENUM_SPI_FIFOSTAT_RX_FOUR                             (0X0004U)      /* 4 Valid Bytes/half-words in Rx FIFO */
#define ENUM_SPI_FIFOSTAT_RX_FIVE                             (0X0005U)      /* 5 Valid Bytes/half-words in Rx FIFO */
#define ENUM_SPI_FIFOSTAT_RX_SIX                              (0X0006U)      /* 6 Valid Bytes/half-words in Rx FIFO */
#define ENUM_SPI_FIFOSTAT_RX_SEVEN                            (0X0007U)      /* 7 Valid Bytes/half-words in Rx FIFO */
#define ENUM_SPI_FIFOSTAT_RX_FULL                             (0X0008U)      /* 8 Valid Bytes/half-words in Rx FIFO (Rx FIFO Full) */
#define ENUM_SPI_FIFOSTAT_TX_EMPTY                            (0X0000U)      /* Tx FIFO Empty */
#define ENUM_SPI_FIFOSTAT_TX_ONE                              (0X0001U)      /* 1 Valid Byte/half-word in Tx FIFO */
#define ENUM_SPI_FIFOSTAT_TX_TWO                              (0X0002U)      /* 2 Valid Bytes/half-words in Tx FIFO */
#define ENUM_SPI_FIFOSTAT_TX_THREE                            (0X0003U)      /* 3 Valid Bytes/half-words in Tx FIFO */
#define ENUM_SPI_FIFOSTAT_TX_FOUR                             (0X0004U)      /* 4 Valid Bytes/half-words in Tx FIFO */
#define ENUM_SPI_FIFOSTAT_TX_FIVE                             (0X0005U)      /* 5 Valid Bytes/half-words in Tx FIFO */
#define ENUM_SPI_FIFOSTAT_TX_SIX                              (0X0006U)      /* 6 Valid Bytes/half-words in Tx FIFO */
#define ENUM_SPI_FIFOSTAT_TX_SEVEN                            (0X0007U)      /* 7 Valid Bytes/half-words in Tx FIFO */
#define ENUM_SPI_FIFOSTAT_TX_FULL                             (0X0008U)      /* 8 Valid Bytes/half-words in Tx FIFO (Tx FIFO Full) */

/* ----------------------------------------------------------------------------------------------------
          RDCTL                                                 Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_SPI_RDCTL_CMDEN                                  (0U)           /* Read Command Enable */
#define BITL_SPI_RDCTL_CMDEN                                  (1U)           /* Read Command Enable */
#define BITM_SPI_RDCTL_CMDEN                                  (0X0001U)      /* Read Command Enable */
#define BITP_SPI_RDCTL_OVERLAP                                (1U)           /* Tx/Rx Overlap Mode */
#define BITL_SPI_RDCTL_OVERLAP                                (1U)           /* Tx/Rx Overlap Mode */
#define BITM_SPI_RDCTL_OVERLAP                                (0X0002U)      /* Tx/Rx Overlap Mode */
#define BITP_SPI_RDCTL_TXBYTES                                (2U)           /* Transmit Byte Count Minus 1 for Read Command */
#define BITL_SPI_RDCTL_TXBYTES                                (4U)           /* Transmit Byte Count Minus 1 for Read Command */
#define BITM_SPI_RDCTL_TXBYTES                                (0X003CU)      /* Transmit Byte Count Minus 1 for Read Command */
#define BITP_SPI_RDCTL_THREEPIN                               (8U)           /* Three Pin SPI Mode */
#define BITL_SPI_RDCTL_THREEPIN                               (1U)           /* Three Pin SPI Mode */
#define BITM_SPI_RDCTL_THREEPIN                               (0X0100U)      /* Three Pin SPI Mode */

/* ----------------------------------------------------------------------------------------------------
          FLOWCTL                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_SPI_FLOWCTL_MODE                                 (0U)           /* Flow Control Mode */
#define BITL_SPI_FLOWCTL_MODE                                 (2U)           /* Flow Control Mode */
#define BITM_SPI_FLOWCTL_MODE                                 (0X0003U)      /* Flow Control Mode */
#define BITP_SPI_FLOWCTL_RDYPOL                               (4U)           /* Polarity of RDY/MISO Line */
#define BITL_SPI_FLOWCTL_RDYPOL                               (1U)           /* Polarity of RDY/MISO Line */
#define BITM_SPI_FLOWCTL_RDYPOL                               (0X0010U)      /* Polarity of RDY/MISO Line */
#define BITP_SPI_FLOWCTL_RDBURSTSZ                            (6U)           /* Read Data Burst Size Minus 1 */
#define BITL_SPI_FLOWCTL_RDBURSTSZ                            (10U)          /* Read Data Burst Size Minus 1 */
#define BITM_SPI_FLOWCTL_RDBURSTSZ                            (0XFFC0U)      /* Read Data Burst Size Minus 1 */

#define ENUM_SPI_FLOWCTL_RDYPOL_HIGH                          (0X0000U)      /* Polarity is Active HIGH. SPI Master Waits Until RDY/MISO Becomes HIGH. */
#define ENUM_SPI_FLOWCTL_RDYPOL_LOW                           (0X0001U)      /* Polarity is Active LOW. SPI Master Waits Until RDY/MISO Becomes LOW. */
#define ENUM_SPI_FLOWCTL_MODE_DISABLE                         (0X0000U)      /* Flow Control is Disabled. */
#define ENUM_SPI_FLOWCTL_MODE_TIMER                           (0X0001U)      /* Flow Control is Based on Timer (WAIT_TMR). */
#define ENUM_SPI_FLOWCTL_MODE_RDY                             (0X0002U)      /* Flow Control is Based on RDY Signal. */
#define ENUM_SPI_FLOWCTL_MODE_MISO                            (0X0003U)      /* Flow Control is Based on MISO Pin. */

/* ----------------------------------------------------------------------------------------------------
          WAITTMR                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_SPI_WAITTMR_TRIMS                                (0U)           /* Wait Timer for Flow-control */
#define BITL_SPI_WAITTMR_TRIMS                                (16U)          /* Wait Timer for Flow-control */
#define BITM_SPI_WAITTMR_TRIMS                                (0XFFFFU)      /* Wait Timer for Flow-control */

/* ----------------------------------------------------------------------------------------------------
          CSOVERRIDE                                            Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_SPI_CSOVERRIDE_CTL                               (0U)           /* CS Override Control */
#define BITL_SPI_CSOVERRIDE_CTL                               (2U)           /* CS Override Control */
#define BITM_SPI_CSOVERRIDE_CTL                               (0X0003U)      /* CS Override Control */

#define ENUM_SPI_CSOVERRIDE_CTL_NOTFORCE                      (0X0000U)      /* CS is Not Forced. */
#define ENUM_SPI_CSOVERRIDE_CTL_FORCETO1                      (0X0001U)      /* CS is Forced to Drive 1'b1. */
#define ENUM_SPI_CSOVERRIDE_CTL_FORCETO0                      (0X0002U)      /* CS is Forced to Drive 1'b0. */

#endif  /* end ifndef SPI_ADDR_RDEF_H_ */


#ifndef CLOCK_ADDR_RDEF_H_
#define CLOCK_ADDR_RDEF_H_    /* CLOCK: Clock Gating and Other Settings */

/* ====================================================================================================
        CLOCK Module Instances Address and Mask Definitions
   ==================================================================================================== */
#define INST_CLK                                                 (0X40060000U)    /* clk: */

#define MASK_CLOCK                                               (0X000003FFU)    /* CLOCK: Clock Gating and Other Settings */

/* ====================================================================================================
        CLOCK Module Register Address Offset Definitions
   ==================================================================================================== */
#define IDX_CLOCK_CLKCON0                                       (0X000U)    /* Misc Clock Settings Register */
#define IDX_CLOCK_CLKCON1                                       (0X004U)    /* Clock Dividers Register */
#define IDX_CLOCK_CLKSTAT0                                      (0X008U)    /* Clocking Status */

/* ====================================================================================================
        CLOCK Module Register ResetValue Definitions
   ==================================================================================================== */
#define RSTVAL_CLOCK_CLKCON0                                       (0X43C) 
#define RSTVAL_CLOCK_CLKCON1                                       (0X48) 
#define RSTVAL_CLOCK_CLKSTAT0                                      (0X0) 

/* ====================================================================================================
        CLOCK Module Register BitPositions, Lengths, Masks and Enumerations Definitions
   ==================================================================================================== */

/* ----------------------------------------------------------------------------------------------------
          CLKCON0                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_CLOCK_CLKCON0_CLKMUX                             (0U)           /* Clock Mux Select */
#define BITL_CLOCK_CLKCON0_CLKMUX                             (2U)           /* Clock Mux Select */
#define BITM_CLOCK_CLKCON0_CLKMUX                             (0X0003U)      /* Clock Mux Select */
#define BITP_CLOCK_CLKCON0_CLKOUT                             (2U)           /* GPIO CLK Out Select */
#define BITL_CLOCK_CLKCON0_CLKOUT                             (4U)           /* GPIO CLK Out Select */
#define BITM_CLOCK_CLKCON0_CLKOUT                             (0X003CU)      /* GPIO CLK Out Select */
#define BITP_CLOCK_CLKCON0_ANACLKMUX                          (7U)           /* Mux Selection Analog Clock Source */
#define BITL_CLOCK_CLKCON0_ANACLKMUX                          (2U)           /* Mux Selection Analog Clock Source */
#define BITM_CLOCK_CLKCON0_ANACLKMUX                          (0X0180U)      /* Mux Selection Analog Clock Source */
#define BITP_CLOCK_CLKCON0_SPLLIE                             (9U)           /* PLL Unlock and Lock Interrupt Enable */
#define BITL_CLOCK_CLKCON0_SPLLIE                             (1U)           /* PLL Unlock and Lock Interrupt Enable */
#define BITM_CLOCK_CLKCON0_SPLLIE                             (0X0200U)      /* PLL Unlock and Lock Interrupt Enable */
#define BITP_CLOCK_CLKCON0_ANAROOTCLKMUX                      (10U)          /* Clock Mux Select */
#define BITL_CLOCK_CLKCON0_ANAROOTCLKMUX                      (2U)           /* Clock Mux Select */
#define BITM_CLOCK_CLKCON0_ANAROOTCLKMUX                      (0X0C00U)      /* Clock Mux Select */

#define ENUM_CLOCK_CLKCON0_ANAROOTCLKMUX_OSC16                (0X0000U)      /* 16MHz Oscillator Clock */
#define ENUM_CLOCK_CLKCON0_ANAROOTCLKMUX_OSC32                (0X0001U)      /* 32MHz Oscillator Clock */
#define ENUM_CLOCK_CLKCON0_ANAROOTCLKMUX_PLL                  (0X0002U)      /* PLL Clock */
#define ENUM_CLOCK_CLKCON0_ANAROOTCLKMUX_GPIO                 (0X0003U)      /* External GPIO Clock */
#define ENUM_CLOCK_CLKCON0_SPLLIE_DIS                         (0X0000U)      /* PLL Interrupt Will Not Be Generated */
#define ENUM_CLOCK_CLKCON0_SPLLIE_EN                          (0X0001U)      /* PLL Interrupt Will Be Generated */
#define ENUM_CLOCK_CLKCON0_ANACLKMUX_HFOSC                    (0X0000U)      /* Internal Oscillator is Selected (HFOSC) */
#define ENUM_CLOCK_CLKCON0_ANACLKMUX_GPIOCLK                  (0X0002U)      /* GPIO Clock */
#define ENUM_CLOCK_CLKCON0_CLKOUT_HFOSC                       (0X0000U)      /* HFOSC (16 MHz) */
#define ENUM_CLOCK_CLKCON0_CLKOUT_ROOT                        (0X0001U)      /* Root Clock */
#define ENUM_CLOCK_CLKCON0_CLKOUT_LFOSC                       (0X0003U)      /* 32K OSC */
#define ENUM_CLOCK_CLKCON0_CLKOUT_CORE                        (0X0004U)      /* Core Clock */
#define ENUM_CLOCK_CLKCON0_CLKOUT_B0_PCLK                     (0X0005U)      /* Bridge 0 Pclk */
#define ENUM_CLOCK_CLKCON0_CLKOUT_B1_PCLK                     (0X0006U)      /* Bridge 1 PCLK */
#define ENUM_CLOCK_CLKCON0_CLKOUT_B2_PCLK                     (0X0007U)      /* Bridge 2 PCLK */
#define ENUM_CLOCK_CLKCON0_CLKOUT_ANA_CLK                     (0X0008U)      /* Analog Test Signal */
#define ENUM_CLOCK_CLKCON0_CLKOUT_T0                          (0X0009U)      /* Timer 0 Clock */
#define ENUM_CLOCK_CLKCON0_CLKOUT_WUT                         (0X000AU)      /* Wake up Timer Clock */
#define ENUM_CLOCK_CLKCON0_CLKOUT_T3                          (0X000BU)      /* Timer 3 Clock */
#define ENUM_CLOCK_CLKCON0_CLKOUT_HCLKBUS                     (0X000CU)      /* Hclk_bus */
#define ENUM_CLOCK_CLKCON0_CLKOUT_SPLL_CLK                    (0X000DU)      /* SPLL clock */
#define ENUM_CLOCK_CLKCON0_CLKMUX_HFOSC                       (0X0000U)      /* High Frequency Internal Oscillator (HFOSC) */
#define ENUM_CLOCK_CLKCON0_CLKMUX_SPLL                        (0X0001U)      /* System PLL is Selected (160 MHz) */
#define ENUM_CLOCK_CLKCON0_CLKMUX_EXTCLK                      (0X0003U)      /* External GPIO Port is Selected (ECLKIN) */

/* ----------------------------------------------------------------------------------------------------
          CLKCON1                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_CLOCK_CLKCON1_CDHCLK                             (0U)           /* HCLK Divide Bits */
#define BITL_CLOCK_CLKCON1_CDHCLK                             (3U)           /* HCLK Divide Bits */
#define BITM_CLOCK_CLKCON1_CDHCLK                             (0X0007U)      /* HCLK Divide Bits */
#define BITP_CLOCK_CLKCON1_CDPCLK0                            (3U)           /* APB0 PCLK Divide Bits */
#define BITL_CLOCK_CLKCON1_CDPCLK0                            (3U)           /* APB0 PCLK Divide Bits */
#define BITM_CLOCK_CLKCON1_CDPCLK0                            (0X0038U)      /* APB0 PCLK Divide Bits */
#define BITP_CLOCK_CLKCON1_CDPCLK1                            (6U)           /* APB1 PCLK Divide Bits */
#define BITL_CLOCK_CLKCON1_CDPCLK1                            (3U)           /* APB1 PCLK Divide Bits */
#define BITM_CLOCK_CLKCON1_CDPCLK1                            (0X01C0U)      /* APB1 PCLK Divide Bits */
#define BITP_CLOCK_CLKCON1_CDADCCLK                           (9U)           /* ADCCLK Divide Bits */
#define BITL_CLOCK_CLKCON1_CDADCCLK                           (3U)           /* ADCCLK Divide Bits */
#define BITM_CLOCK_CLKCON1_CDADCCLK                           (0X0E00U)      /* ADCCLK Divide Bits */

#define ENUM_CLOCK_CLKCON1_CDADCCLK_DIV1                      (0X0000U)      /* DIV1. Divide by 1 (ADCCLK is Equal to Root Clock) */
#define ENUM_CLOCK_CLKCON1_CDADCCLK_DIV2                      (0X0001U)      /* DIV2. Divide by 2 (ADCCLK is Half the Frequency of Root Clock) */
#define ENUM_CLOCK_CLKCON1_CDADCCLK_DIV4                      (0X0002U)      /* DIV4. Divide by 4 (ADCCLK is Quarter the Frequency of Root Clock, 20 MHz) */
#define ENUM_CLOCK_CLKCON1_CDADCCLK_DIV8                      (0X0003U)      /* DIV8. Divide by 8 */
#define ENUM_CLOCK_CLKCON1_CDADCCLK_DIV16                     (0X0004U)      /* DIV16. Divide by 16 */
#define ENUM_CLOCK_CLKCON1_CDADCCLK_DIV32                     (0X0005U)      /* DIV32. Divide by 32 */
#define ENUM_CLOCK_CLKCON1_CDADCCLK_DIV64                     (0X0006U)      /* DIV64. Divide by 164 */
#define ENUM_CLOCK_CLKCON1_CDADCCLK_DIV128                    (0X0007U)      /* DIV128. Divide by 128 */
#define ENUM_CLOCK_CLKCON1_CDPCLK1_DIV1                       (0X0000U)      /* DIV1. Divide by 1 (PCLK is Equal to Root Clock) */
#define ENUM_CLOCK_CLKCON1_CDPCLK1_DIV2                       (0X0001U)      /* DIV2. Divide by 2 (PCLK is Half the Frequency of Root Clock) */
#define ENUM_CLOCK_CLKCON1_CDPCLK1_DIV4                       (0X0002U)      /* DIV4. Divide by 4 (PCLK is Quarter the Frequency of Root Clock, 20 MHz) */
#define ENUM_CLOCK_CLKCON1_CDPCLK1_DIV8                       (0X0003U)      /* DIV8. Divide by 8 */
#define ENUM_CLOCK_CLKCON1_CDPCLK1_DIV16                      (0X0004U)      /* DIV16. Divide by 16 */
#define ENUM_CLOCK_CLKCON1_CDPCLK1_DIV32                      (0X0005U)      /* DIV32. Divide by 32 */
#define ENUM_CLOCK_CLKCON1_CDPCLK1_DIV64                      (0X0006U)      /* DIV64. Divide by 164 */
#define ENUM_CLOCK_CLKCON1_CDPCLK1_DIV128                     (0X0007U)      /* DIV128. Divide by 128 */
#define ENUM_CLOCK_CLKCON1_CDPCLK0_DIV1                       (0X0000U)      /* DIV1. Divide by 1 (PCLK is Equal to Root Clock) */
#define ENUM_CLOCK_CLKCON1_CDPCLK0_DIV2                       (0X0001U)      /* DIV2. Divide by 2 (PCLK is Half the Frequency of Root Clock) */
#define ENUM_CLOCK_CLKCON1_CDPCLK0_DIV4                       (0X0002U)      /* DIV4. Divide by 4 (PCLK is Quarter the Frequency of Root Clock, 20 MHz) */
#define ENUM_CLOCK_CLKCON1_CDPCLK0_DIV8                       (0X0003U)      /* DIV8. Divide by 8 */
#define ENUM_CLOCK_CLKCON1_CDPCLK0_DIV16                      (0X0004U)      /* DIV16. Divide by 16 */
#define ENUM_CLOCK_CLKCON1_CDPCLK0_DIV32                      (0X0005U)      /* DIV32. Divide by 32 */
#define ENUM_CLOCK_CLKCON1_CDPCLK0_DIV64                      (0X0006U)      /* DIV64. Divide by 164 */
#define ENUM_CLOCK_CLKCON1_CDPCLK0_DIV128                     (0X0007U)      /* DIV128. Divide by 128 */
#define ENUM_CLOCK_CLKCON1_CDHCLK_DIV1                        (0X0000U)      /* DIV1. Divide by 1 (HCLK is Equal to Root Clock) */
#define ENUM_CLOCK_CLKCON1_CDHCLK_DIV2                        (0X0001U)      /* DIV2. Divide by 2 (HCLK is Half the Frequency of Root Clock) */
#define ENUM_CLOCK_CLKCON1_CDHCLK_DIV4                        (0X0002U)      /* DIV4. Divide by 4 (HCLK is Quarter the Frequency of Root Clock) */
#define ENUM_CLOCK_CLKCON1_CDHCLK_DIV8                        (0X0003U)      /* DIV8. Divide by 8 */
#define ENUM_CLOCK_CLKCON1_CDHCLK_DIV16                       (0X0004U)      /* DIV16.Divide by 16 */
#define ENUM_CLOCK_CLKCON1_CDHCLK_DIV32                       (0X0005U)      /* DIV32.Divide by 32 */
#define ENUM_CLOCK_CLKCON1_CDHCLK_DIV64                       (0X0006U)      /* DIV64.Divide by 64 */
#define ENUM_CLOCK_CLKCON1_CDHCLK_DIV128                      (0X0007U)      /* DIV128. Divide by 128 */

/* ----------------------------------------------------------------------------------------------------
          CLKSTAT0                                              Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_CLOCK_CLKSTAT0_SPLLSTATUS                        (0U)           /* System PLL Status */
#define BITL_CLOCK_CLKSTAT0_SPLLSTATUS                        (1U)           /* System PLL Status */
#define BITM_CLOCK_CLKSTAT0_SPLLSTATUS                        (0X0001U)      /* System PLL Status */
#define BITP_CLOCK_CLKSTAT0_SPLLLOCKCLR                       (1U)           /* System PLL Lock */
#define BITL_CLOCK_CLKSTAT0_SPLLLOCKCLR                       (1U)           /* System PLL Lock */
#define BITM_CLOCK_CLKSTAT0_SPLLLOCKCLR                       (0X0002U)      /* System PLL Lock */
#define BITP_CLOCK_CLKSTAT0_SPLLUNLOCKCLR                     (2U)           /* System PLL Unlock */
#define BITL_CLOCK_CLKSTAT0_SPLLUNLOCKCLR                     (1U)           /* System PLL Unlock */
#define BITM_CLOCK_CLKSTAT0_SPLLUNLOCKCLR                     (0X0004U)      /* System PLL Unlock */
#define BITP_CLOCK_CLKSTAT0_SPLLLOCK                          (3U)           /* Sticky System PLL Lock Flag */
#define BITL_CLOCK_CLKSTAT0_SPLLLOCK                          (1U)           /* Sticky System PLL Lock Flag */
#define BITM_CLOCK_CLKSTAT0_SPLLLOCK                          (0X0008U)      /* Sticky System PLL Lock Flag */
#define BITP_CLOCK_CLKSTAT0_SPLLUNLOCK                        (4U)           /* Sticky System PLL Unlock Flag */
#define BITL_CLOCK_CLKSTAT0_SPLLUNLOCK                        (1U)           /* Sticky System PLL Unlock Flag */
#define BITM_CLOCK_CLKSTAT0_SPLLUNLOCK                        (0X0010U)      /* Sticky System PLL Unlock Flag */

#define ENUM_CLOCK_CLKSTAT0_SPLLUNLOCK_UNLOCKED               (0X0000U)      /* No PLL Lock Event Was Detected */
#define ENUM_CLOCK_CLKSTAT0_SPLLUNLOCK_LOCKED                 (0X0001U)      /* A PLL Lock Event Was Detected */
#define ENUM_CLOCK_CLKSTAT0_SPLLLOCK_UNLOCKED                 (0X0000U)      /* No PLL Lock Event Was Detected */
#define ENUM_CLOCK_CLKSTAT0_SPLLLOCK_LOCKED                   (0X0001U)      /* A PLL Lock Event Was Detected */
#define ENUM_CLOCK_CLKSTAT0_SPLLUNLOCKCLR_NOLOSS              (0X0000U)      /* No Loss of PLL Lock Was Detected */
#define ENUM_CLOCK_CLKSTAT0_SPLLUNLOCKCLR_LOSS                (0X0001U)      /* A PLL Loss of Lock Was Detected */
#define ENUM_CLOCK_CLKSTAT0_SPLLLOCKCLR_UNLOCKED              (0X0000U)      /* No PLL Lock Event Was Detected */
#define ENUM_CLOCK_CLKSTAT0_SPLLLOCKCLR_LOCKED                (0X0001U)      /* A PLL Lock Event Was Detected */
#define ENUM_CLOCK_CLKSTAT0_SPLLSTATUS_UNLOCKED               (0X0000U)      /* The PLL is Not Locked or Not Properly Configured. the PLL is Not Ready for Use as the System Clock Source */
#define ENUM_CLOCK_CLKSTAT0_SPLLSTATUS_LOCKED                 (0X0001U)      /* The PLL is Locked and is Ready for Use as the System Clock Source */

#endif  /* end ifndef CLOCK_ADDR_RDEF_H_ */


#ifndef PWM_ADDR_RDEF_H_
#define PWM_ADDR_RDEF_H_    /* PWM: PWM MMR */

/* ====================================================================================================
        PWM Module Instances Address and Mask Definitions
   ==================================================================================================== */
#define INST_PWM                                                 (0X40064000U)    /* pwm: */

#define MASK_PWM                                                 (0XFFFFFFFFU)    /* PWM: PWM MMR */

/* ====================================================================================================
        PWM Module Register Address Offset Definitions
   ==================================================================================================== */
#define IDX_PWM_PWMCON0                                         (0X00000000U)    /* PWM Control Register */
#define IDX_PWM_PWMCON1                                         (0X00000004U)    /* ADC Conversion Start and Trip Control Register */
#define IDX_PWM_PWMICLR                                         (0X00000008U)    /* Hardware Trip Configuration Register */
#define IDX_PWM_PWM0COM0                                        (0X00000010U)    /* Compare Register 0 for PWM0 and PWM1 */
#define IDX_PWM_PWM0COM1                                        (0X00000014U)    /* Compare Register 1 for PWM0 and PWM1 */
#define IDX_PWM_PWM0COM2                                        (0X00000018U)    /* Compare Register 2 for PWM0 and PWM1 */
#define IDX_PWM_PWM0LEN                                         (0X0000001CU)    /* Period Value Register for PWM0 and PWM1 */
#define IDX_PWM_PWM1COM0                                        (0X00000020U)    /* Compare Register 0 for PWM2 and PWM3 */
#define IDX_PWM_PWM1COM1                                        (0X00000024U)    /* Compare Register 1 for PWM2 and PWM3 */
#define IDX_PWM_PWM1COM2                                        (0X00000028U)    /* Compare Register 2 for PWM2 and PWM3 */
#define IDX_PWM_PWM1LEN                                         (0X0000002CU)    /* Period Value Register for PWM2 and PWM3 */
#define IDX_PWM_PWM2COM0                                        (0X00000030U)    /* Compare Register 0 for PWM4 and PWM5 */
#define IDX_PWM_PWM2COM1                                        (0X00000034U)    /* Compare Register 1 for PWM4 and PWM5 */
#define IDX_PWM_PWM2COM2                                        (0X00000038U)    /* Compare Register 2 for PWM4 and PWM5 */
#define IDX_PWM_PWM2LEN                                         (0X0000003CU)    /* Period Value Register for PWM4 and PWM5 */

/* ====================================================================================================
        PWM Module Register ResetValue Definitions
   ==================================================================================================== */
#define RSTVAL_PWM_PWMCON0                                         (0X12) 
#define RSTVAL_PWM_PWMCON1                                         (0X0) 
#define RSTVAL_PWM_PWMICLR                                         (0X0) 
#define RSTVAL_PWM_PWM0COM0                                        (0X0) 
#define RSTVAL_PWM_PWM0COM1                                        (0X0) 
#define RSTVAL_PWM_PWM0COM2                                        (0X0) 
#define RSTVAL_PWM_PWM0LEN                                         (0X0) 
#define RSTVAL_PWM_PWM1COM0                                        (0X0) 
#define RSTVAL_PWM_PWM1COM1                                        (0X0) 
#define RSTVAL_PWM_PWM1COM2                                        (0X0) 
#define RSTVAL_PWM_PWM1LEN                                         (0X0) 
#define RSTVAL_PWM_PWM2COM0                                        (0X0) 
#define RSTVAL_PWM_PWM2COM1                                        (0X0) 
#define RSTVAL_PWM_PWM2COM2                                        (0X0) 
#define RSTVAL_PWM_PWM2LEN                                         (0X0) 

/* ====================================================================================================
        PWM Module Register BitPositions, Lengths, Masks and Enumerations Definitions
   ==================================================================================================== */

/* ----------------------------------------------------------------------------------------------------
          PWMCON0                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PWM_PWMCON0_PWMEN                                (0U)           /* Master Enable for PWM */
#define BITL_PWM_PWMCON0_PWMEN                                (1U)           /* Master Enable for PWM */
#define BITM_PWM_PWMCON0_PWMEN                                (0X0001U)      /* Master Enable for PWM */
#define BITP_PWM_PWMCON0_HMODE                                (1U)           /* Set to Enable H-bridge Mode */
#define BITL_PWM_PWMCON0_HMODE                                (1U)           /* Set to Enable H-bridge Mode */
#define BITM_PWM_PWMCON0_HMODE                                (0X0002U)      /* Set to Enable H-bridge Mode */
#define BITP_PWM_PWMCON0_HDIR                                 (2U)           /* Direction Control When PWM is in H-bridge Mode */
#define BITL_PWM_PWMCON0_HDIR                                 (1U)           /* Direction Control When PWM is in H-bridge Mode */
#define BITM_PWM_PWMCON0_HDIR                                 (0X0004U)      /* Direction Control When PWM is in H-bridge Mode */
#define BITP_PWM_PWMCON0_LCOMP                                (3U)           /* Signal to Load a New Set of Compare Register Values */
#define BITL_PWM_PWMCON0_LCOMP                                (1U)           /* Signal to Load a New Set of Compare Register Values */
#define BITM_PWM_PWMCON0_LCOMP                                (0X0008U)      /* Signal to Load a New Set of Compare Register Values */
#define BITP_PWM_PWMCON0_HOFF                                 (4U)           /* Set to Turn off the High-side for Pair 0/1 in H-bridge Mode */
#define BITL_PWM_PWMCON0_HOFF                                 (1U)           /* Set to Turn off the High-side for Pair 0/1 in H-bridge Mode */
#define BITM_PWM_PWMCON0_HOFF                                 (0X0010U)      /* Set to Turn off the High-side for Pair 0/1 in H-bridge Mode */
#define BITP_PWM_PWMCON0_POINV                                (5U)           /* Set to Invert PWM Outputs for Pair 0/1 in H-bridge Mode */
#define BITL_PWM_PWMCON0_POINV                                (1U)           /* Set to Invert PWM Outputs for Pair 0/1 in H-bridge Mode */
#define BITM_PWM_PWMCON0_POINV                                (0X0020U)      /* Set to Invert PWM Outputs for Pair 0/1 in H-bridge Mode */
#define BITP_PWM_PWMCON0_PWMCMP                               (6U)           /* PWM Clock Prescaler. Sets UCLK Divider. */
#define BITL_PWM_PWMCON0_PWMCMP                               (3U)           /* PWM Clock Prescaler. Sets UCLK Divider. */
#define BITM_PWM_PWMCON0_PWMCMP                               (0X01C0U)      /* PWM Clock Prescaler. Sets UCLK Divider. */
#define BITP_PWM_PWMCON0_ENA                                  (9U)           /* Enable for Pair 0 and 1 When HOFF=0 and HMODE=1 */
#define BITL_PWM_PWMCON0_ENA                                  (1U)           /* Enable for Pair 0 and 1 When HOFF=0 and HMODE=1 */
#define BITM_PWM_PWMCON0_ENA                                  (0X0200U)      /* Enable for Pair 0 and 1 When HOFF=0 and HMODE=1 */
#define BITP_PWM_PWMCON0_PWMIEN                               (10U)          /* Set to Enable Interrupts for PWM */
#define BITL_PWM_PWMCON0_PWMIEN                               (1U)           /* Set to Enable Interrupts for PWM */
#define BITM_PWM_PWMCON0_PWMIEN                               (0X0400U)      /* Set to Enable Interrupts for PWM */
#define BITP_PWM_PWMCON0_PWM1INV                              (11U)          /* Set to Invert PWM1 Output */
#define BITL_PWM_PWMCON0_PWM1INV                              (1U)           /* Set to Invert PWM1 Output */
#define BITM_PWM_PWMCON0_PWM1INV                              (0X0800U)      /* Set to Invert PWM1 Output */
#define BITP_PWM_PWMCON0_PWM3INV                              (12U)          /* Set to Invert PWM3 Output */
#define BITL_PWM_PWMCON0_PWM3INV                              (1U)           /* Set to Invert PWM3 Output */
#define BITM_PWM_PWMCON0_PWM3INV                              (0X1000U)      /* Set to Invert PWM3 Output */
#define BITP_PWM_PWMCON0_PWM5INV                              (13U)          /* Set to Invert PWM5 Output */
#define BITL_PWM_PWMCON0_PWM5INV                              (1U)           /* Set to Invert PWM5 Output */
#define BITM_PWM_PWMCON0_PWM5INV                              (0X2000U)      /* Set to Invert PWM5 Output */
#define BITP_PWM_PWMCON0_SYNC                                 (15U)          /* Set to Enable PWM Synchronization from the SYNC Pin */
#define BITL_PWM_PWMCON0_SYNC                                 (1U)           /* Set to Enable PWM Synchronization from the SYNC Pin */
#define BITM_PWM_PWMCON0_SYNC                                 (0X8000U)      /* Set to Enable PWM Synchronization from the SYNC Pin */

#define ENUM_PWM_PWMCON0_SYNC_DIS                             (0X0000U)      /* Ignore Transition from the SYNC Pin */
#define ENUM_PWM_PWMCON0_SYNC_EN                              (0X0001U)      /* All PWM Counters are Reset on the Next Clock Cycle After Detection of a Falling Edge from SYNC Pin */
#define ENUM_PWM_PWMCON0_ENA_DIS                              (0X0000U)      /* Disable Pair 0 and 1 */
#define ENUM_PWM_PWMCON0_ENA_EN                               (0X0001U)      /* Enable Pair 0 and 1 */
#define ENUM_PWM_PWMCON0_PWMCMP_DIV2                          (0X0000U)      /* UCLK/2 */
#define ENUM_PWM_PWMCON0_PWMCMP_DIV4                          (0X0001U)      /* UCLK/4 */
#define ENUM_PWM_PWMCON0_PWMCMP_DIV8                          (0X0002U)      /* UCLK/8 */
#define ENUM_PWM_PWMCON0_PWMCMP_DIV16                         (0X0003U)      /* UCLK/16 */
#define ENUM_PWM_PWMCON0_PWMCMP_DIV32                         (0X0004U)      /* UCLK/32 */
#define ENUM_PWM_PWMCON0_PWMCMP_DIV64                         (0X0005U)      /* UCLK/64 */
#define ENUM_PWM_PWMCON0_PWMCMP_DIV128                        (0X0006U)      /* UCLK/128 */
#define ENUM_PWM_PWMCON0_PWMCMP_DIV256                        (0X0007U)      /* UCLK/256 */
#define ENUM_PWM_PWMCON0_LCOMP_DIS                            (0X0000U)      /* Use the Values Previously Store in the Compare and Length Registers */
#define ENUM_PWM_PWMCON0_LCOMP_EN                             (0X0001U)      /* Load the Internal Compare Registers with Values Stored in the PWMxCOMx and PWMxLEN Registers */
#define ENUM_PWM_PWMCON0_HDIR_DIS                             (0X0000U)      /* PWM2 and PWM3 Act as Output Signals While PWM0 and PWM1 are Held Low */
#define ENUM_PWM_PWMCON0_HDIR_EN                              (0X0001U)      /* PWM0 and PWM1 Act as Output Signals While PWM2 and PWM3 are Held Low */
#define ENUM_PWM_PWMCON0_PWMEN_DIS                            (0X0000U)      /* Disable All PWM Outputs */
#define ENUM_PWM_PWMCON0_PWMEN_EN                             (0X0001U)      /* Enable All PWM Outputs */

/* ----------------------------------------------------------------------------------------------------
          PWMCON1                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PWM_PWMCON1_REVREG0                              (4U)           /* Reserved */
#define BITL_PWM_PWMCON1_REVREG0                              (2U)           /* Reserved */
#define BITM_PWM_PWMCON1_REVREG0                              (0X0030U)      /* Reserved */
#define BITP_PWM_PWMCON1_TRIP_EN                              (6U)           /* Set to Enable PWM Trip Functionality */
#define BITL_PWM_PWMCON1_TRIP_EN                              (1U)           /* Set to Enable PWM Trip Functionality */
#define BITM_PWM_PWMCON1_TRIP_EN                              (0X0040U)      /* Set to Enable PWM Trip Functionality */
#define BITP_PWM_PWMCON1_REVREG1                              (8U)           /* Reserved. Return 0 on Reads */
#define BITL_PWM_PWMCON1_REVREG1                              (8U)           /* Reserved. Return 0 on Reads */
#define BITM_PWM_PWMCON1_REVREG1                              (0XFF00U)      /* Reserved. Return 0 on Reads */

/* ----------------------------------------------------------------------------------------------------
          PWMICLR                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PWM_PWMICLR_PWM0                                 (0U)           /* Write a 1 to Clear Latched IRQPWM0 Interrupt. */
#define BITL_PWM_PWMICLR_PWM0                                 (1U)           /* Write a 1 to Clear Latched IRQPWM0 Interrupt. */
#define BITM_PWM_PWMICLR_PWM0                                 (0X0001U)      /* Write a 1 to Clear Latched IRQPWM0 Interrupt. */
#define BITP_PWM_PWMICLR_PWM1                                 (1U)           /* Write a 1 to Clear Latched IRQPWM1 Interrupt. */
#define BITL_PWM_PWMICLR_PWM1                                 (1U)           /* Write a 1 to Clear Latched IRQPWM1 Interrupt. */
#define BITM_PWM_PWMICLR_PWM1                                 (0X0002U)      /* Write a 1 to Clear Latched IRQPWM1 Interrupt. */
#define BITP_PWM_PWMICLR_PWM2                                 (2U)           /* Write a 1 to Clear Latched IRQPWM2 Interrupt. */
#define BITL_PWM_PWMICLR_PWM2                                 (1U)           /* Write a 1 to Clear Latched IRQPWM2 Interrupt. */
#define BITM_PWM_PWMICLR_PWM2                                 (0X0004U)      /* Write a 1 to Clear Latched IRQPWM2 Interrupt. */
#define BITP_PWM_PWMICLR_TRIP                                 (4U)           /* Write a 1 to Clear Latched IRQPWMTrip Interrupt. */
#define BITL_PWM_PWMICLR_TRIP                                 (1U)           /* Write a 1 to Clear Latched IRQPWMTrip Interrupt. */
#define BITM_PWM_PWMICLR_TRIP                                 (0X0010U)      /* Write a 1 to Clear Latched IRQPWMTrip Interrupt. */
#define BITP_PWM_PWMICLR_REVREG2                              (5U)           /* Reserved. Return 0 on Reads */
#define BITL_PWM_PWMICLR_REVREG2                              (11U)          /* Reserved. Return 0 on Reads */
#define BITM_PWM_PWMICLR_REVREG2                              (0XFFE0U)      /* Reserved. Return 0 on Reads */

/* ----------------------------------------------------------------------------------------------------
          PWM0COM0                                              Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PWM_PWM0COM0_PWM0COM0                            (0U)           /* Compare Register 0 for PWM0 and PWM1 */
#define BITL_PWM_PWM0COM0_PWM0COM0                            (16U)          /* Compare Register 0 for PWM0 and PWM1 */
#define BITM_PWM_PWM0COM0_PWM0COM0                            (0XFFFFU)      /* Compare Register 0 for PWM0 and PWM1 */

/* ----------------------------------------------------------------------------------------------------
          PWM0COM1                                              Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PWM_PWM0COM1_PWM0COM1                            (0U)           /* Compare Register 1 for PWM0 and PWM1 */
#define BITL_PWM_PWM0COM1_PWM0COM1                            (16U)          /* Compare Register 1 for PWM0 and PWM1 */
#define BITM_PWM_PWM0COM1_PWM0COM1                            (0XFFFFU)      /* Compare Register 1 for PWM0 and PWM1 */

/* ----------------------------------------------------------------------------------------------------
          PWM0COM2                                              Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PWM_PWM0COM2_PWM0COM2                            (0U)           /* Compare Register 2 for PWM0 and PWM1 */
#define BITL_PWM_PWM0COM2_PWM0COM2                            (16U)          /* Compare Register 2 for PWM0 and PWM1 */
#define BITM_PWM_PWM0COM2_PWM0COM2                            (0XFFFFU)      /* Compare Register 2 for PWM0 and PWM1 */

/* ----------------------------------------------------------------------------------------------------
          PWM0LEN                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PWM_PWM0LEN_PWM0LEN                              (0U)           /* Period Value Register for PWM0 and PWM1 */
#define BITL_PWM_PWM0LEN_PWM0LEN                              (16U)          /* Period Value Register for PWM0 and PWM1 */
#define BITM_PWM_PWM0LEN_PWM0LEN                              (0XFFFFU)      /* Period Value Register for PWM0 and PWM1 */

/* ----------------------------------------------------------------------------------------------------
          PWM1COM0                                              Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PWM_PWM1COM0_PWM1COM0                            (0U)           /* Compare Register 0 for PWM2 and PWM3 */
#define BITL_PWM_PWM1COM0_PWM1COM0                            (16U)          /* Compare Register 0 for PWM2 and PWM3 */
#define BITM_PWM_PWM1COM0_PWM1COM0                            (0XFFFFU)      /* Compare Register 0 for PWM2 and PWM3 */

/* ----------------------------------------------------------------------------------------------------
          PWM1COM1                                              Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PWM_PWM1COM1_PWM1COM1                            (0U)           /* Compare Register 1 for PWM2 and PWM3 */
#define BITL_PWM_PWM1COM1_PWM1COM1                            (16U)          /* Compare Register 1 for PWM2 and PWM3 */
#define BITM_PWM_PWM1COM1_PWM1COM1                            (0XFFFFU)      /* Compare Register 1 for PWM2 and PWM3 */

/* ----------------------------------------------------------------------------------------------------
          PWM1COM2                                              Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PWM_PWM1COM2_PWM1COM2                            (0U)           /* Compare Register 2 for PWM2 and PWM3 */
#define BITL_PWM_PWM1COM2_PWM1COM2                            (16U)          /* Compare Register 2 for PWM2 and PWM3 */
#define BITM_PWM_PWM1COM2_PWM1COM2                            (0XFFFFU)      /* Compare Register 2 for PWM2 and PWM3 */

/* ----------------------------------------------------------------------------------------------------
          PWM1LEN                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PWM_PWM1LEN_PWM1LEN                              (0U)           /* Period Value Register for PWM2 and PWM3 */
#define BITL_PWM_PWM1LEN_PWM1LEN                              (16U)          /* Period Value Register for PWM2 and PWM3 */
#define BITM_PWM_PWM1LEN_PWM1LEN                              (0XFFFFU)      /* Period Value Register for PWM2 and PWM3 */

/* ----------------------------------------------------------------------------------------------------
          PWM2COM0                                              Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PWM_PWM2COM0_PWM2COM0                            (0U)           /* Compare Register 0 for PWM4 and PWM5 */
#define BITL_PWM_PWM2COM0_PWM2COM0                            (16U)          /* Compare Register 0 for PWM4 and PWM5 */
#define BITM_PWM_PWM2COM0_PWM2COM0                            (0XFFFFU)      /* Compare Register 0 for PWM4 and PWM5 */

/* ----------------------------------------------------------------------------------------------------
          PWM2COM1                                              Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PWM_PWM2COM1_PWM2COM1                            (0U)           /* Compare Register 1 for PWM4 and PWM5 */
#define BITL_PWM_PWM2COM1_PWM2COM1                            (16U)          /* Compare Register 1 for PWM4 and PWM5 */
#define BITM_PWM_PWM2COM1_PWM2COM1                            (0XFFFFU)      /* Compare Register 1 for PWM4 and PWM5 */

/* ----------------------------------------------------------------------------------------------------
          PWM2COM2                                              Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PWM_PWM2COM2_PWM2COM2                            (0U)           /* Compare Register 2 for PWM4 and PWM5 */
#define BITL_PWM_PWM2COM2_PWM2COM2                            (16U)          /* Compare Register 2 for PWM4 and PWM5 */
#define BITM_PWM_PWM2COM2_PWM2COM2                            (0XFFFFU)      /* Compare Register 2 for PWM4 and PWM5 */

/* ----------------------------------------------------------------------------------------------------
          PWM2LEN                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PWM_PWM2LEN_PWM2LEN                              (0U)           /* Period Value Register for PWM4 and PWM5 */
#define BITL_PWM_PWM2LEN_PWM2LEN                              (16U)          /* Period Value Register for PWM4 and PWM5 */
#define BITM_PWM_PWM2LEN_PWM2LEN                              (0XFFFFU)      /* Period Value Register for PWM4 and PWM5 */

#endif  /* end ifndef PWM_ADDR_RDEF_H_ */


#ifndef SUBSYS_ADDR_RDEF_H_
#define SUBSYS_ADDR_RDEF_H_    /* SUBSYS: Your module description, here. */

/* ====================================================================================================
        SUBSYS Module Instances Address and Mask Definitions
   ==================================================================================================== */
#define INST_SRAM                                                (0X40065000U)    /* sram: */

#define MASK_SUBSYS                                              (0X00000FFFU)    /* SUBSYS: Your module description, here. */

/* ====================================================================================================
        SUBSYS Module Register Address Offset Definitions
   ==================================================================================================== */
#define IDX_SUBSYS_SRAMCON                                      (0X000U)    /* SRAM Control Register */
#define IDX_SUBSYS_SRAMECCCON                                   (0X00CU)    /* SRAM ECC Control Register */
#define IDX_SUBSYS_SRAMECCSTA                                   (0X010U)    /* SRAM ECC Status Register */
#define IDX_SUBSYS_SRAMECCA0                                    (0X014U)    /* SRAM0 ECC Error Address Register */
#define IDX_SUBSYS_SRAMECCD0                                    (0X018U)    /* SRAM0 ECC Error Data Register */
#define IDX_SUBSYS_SRAMECCP0                                    (0X01CU)    /* SRAM0 ECC Error Parity Register */
#define IDX_SUBSYS_SRAMECCA1                                    (0X020U)    /* SRAM1 ECC Error Address Register */
#define IDX_SUBSYS_SRAMECCD1                                    (0X024U)    /* SRAM1 ECC Error Data Register */
#define IDX_SUBSYS_SRAMECCP1                                    (0X028U)    /* SRAM1 ECC Error Parity Register */
#define IDX_SUBSYS_SRAMECCA2                                    (0X02CU)    /* SRAM2 ECC Error Address Register */
#define IDX_SUBSYS_SRAMECCD2                                    (0X030U)    /* SRAM2 ECC Error Data Register */
#define IDX_SUBSYS_SRAMECCP2                                    (0X034U)    /* SRAM2 ECC Error Parity Register */

/* ====================================================================================================
        SUBSYS Module Register ResetValue Definitions
   ==================================================================================================== */
#define RSTVAL_SUBSYS_SRAMCON                                      (0X2) 
#define RSTVAL_SUBSYS_SRAMECCCON                                   (0XCF) 
#define RSTVAL_SUBSYS_SRAMECCSTA                                   (0X0) 
#define RSTVAL_SUBSYS_SRAMECCA0                                    (0X0) 
#define RSTVAL_SUBSYS_SRAMECCD0                                    (0X0) 
#define RSTVAL_SUBSYS_SRAMECCP0                                    (0X0) 
#define RSTVAL_SUBSYS_SRAMECCA1                                    (0X0) 
#define RSTVAL_SUBSYS_SRAMECCD1                                    (0X0) 
#define RSTVAL_SUBSYS_SRAMECCP1                                    (0X0) 
#define RSTVAL_SUBSYS_SRAMECCA2                                    (0X0) 
#define RSTVAL_SUBSYS_SRAMECCD2                                    (0X0) 
#define RSTVAL_SUBSYS_SRAMECCP2                                    (0X0) 

/* ====================================================================================================
        SUBSYS Module Register BitPositions, Lengths, Masks and Enumerations Definitions
   ==================================================================================================== */

/* ----------------------------------------------------------------------------------------------------
          SRAMCON                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_SUBSYS_SRAMCON_REMAP                             (0U)           /* Using SRAM0 as Instruction SRAM */
#define BITL_SUBSYS_SRAMCON_REMAP                             (1U)           /* Using SRAM0 as Instruction SRAM */
#define BITM_SUBSYS_SRAMCON_REMAP                             (0X00000001U)  /* Using SRAM0 as Instruction SRAM */
#define BITP_SUBSYS_SRAMCON_CSEL                              (1U)           /* Use Cache as a Part of SRAM0 */
#define BITL_SUBSYS_SRAMCON_CSEL                              (1U)           /* Use Cache as a Part of SRAM0 */
#define BITM_SUBSYS_SRAMCON_CSEL                              (0X00000002U)  /* Use Cache as a Part of SRAM0 */

#define ENUM_SUBSYS_SRAMCON_CSEL_CAS                          (0X00000001U)  /* Cache as SRAM */
#define ENUM_SUBSYS_SRAMCON_CSEL_NCAS                         (0X00000000U)  /* Cache not as SRAM */
#define ENUM_SUBSYS_SRAMCON_REMAP_CODRAM                      (0X00000000U)  /* Using as Code SRAM */
#define ENUM_SUBSYS_SRAMCON_REMAP_SYSRAM                      (0X00000001U)  /* Using as System SRAM */

/* ----------------------------------------------------------------------------------------------------
          SRAMECCCON                                            Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_SUBSYS_SRAMECCCON_EN                             (0U)           /* ECC Check Enable */
#define BITL_SUBSYS_SRAMECCCON_EN                             (3U)           /* ECC Check Enable */
#define BITM_SUBSYS_SRAMECCCON_EN                             (0X00000007U)  /* ECC Check Enable */
#define BITP_SUBSYS_SRAMECCCON_BUSERRTYPE                     (3U)           /* ECC AHB Bus Error Response Type */
#define BITL_SUBSYS_SRAMECCCON_BUSERRTYPE                     (2U)           /* ECC AHB Bus Error Response Type */
#define BITM_SUBSYS_SRAMECCCON_BUSERRTYPE                     (0X00000018U)  /* ECC AHB Bus Error Response Type */
#define BITP_SUBSYS_SRAMECCCON_INTERRTYPE                     (5U)           /* ECC Interrupt Error Response Type */
#define BITL_SUBSYS_SRAMECCCON_INTERRTYPE                     (2U)           /* ECC Interrupt Error Response Type */
#define BITM_SUBSYS_SRAMECCCON_INTERRTYPE                     (0X00000060U)  /* ECC Interrupt Error Response Type */
#define BITP_SUBSYS_SRAMECCCON_RECERRTYPE                     (7U)           /* ECC Error Address and Data Record Type */
#define BITL_SUBSYS_SRAMECCCON_RECERRTYPE                     (2U)           /* ECC Error Address and Data Record Type */
#define BITM_SUBSYS_SRAMECCCON_RECERRTYPE                     (0X00000180U)  /* ECC Error Address and Data Record Type */

#define ENUM_SUBSYS_SRAMECCCON_RECERRTYPE_CURERR              (0X00000000U)  /* Return Current Error Address and Data Information */
#define ENUM_SUBSYS_SRAMECCCON_RECERRTYPE_STRERR0             (0X00000001U)  /* Return Stored Error Address and Data Information */
#define ENUM_SUBSYS_SRAMECCCON_INTERRTYPE_NOERR               (0X00000000U)  /* No Error Report */
#define ENUM_SUBSYS_SRAMECCCON_INTERRTYPE_ERR2B               (0X00000001U)  /* 2 Bits Error Report */
#define ENUM_SUBSYS_SRAMECCCON_INTERRTYPE_ERR1B               (0X00000002U)  /* 1 Bit Error Report */
#define ENUM_SUBSYS_SRAMECCCON_INTERRTYPE_ALERR               (0X00000003U)  /* 1 or 2 Bits Error Report */
#define ENUM_SUBSYS_SRAMECCCON_BUSERRTYPE_NOERR               (0X00000000U)  /* No Error Report */
#define ENUM_SUBSYS_SRAMECCCON_BUSERRTYPE_ERR2B               (0X00000001U)  /* 2 Bits Error Report */
#define ENUM_SUBSYS_SRAMECCCON_BUSERRTYPE_ERR1B               (0X00000002U)  /* 1 Bit Error Report */
#define ENUM_SUBSYS_SRAMECCCON_BUSERRTYPE_ALERR               (0X00000003U)  /* 1 or 2 Bits Error Report */
#define ENUM_SUBSYS_SRAMECCCON_EN_EN0                         (0X00000001U)  /* SRAM0 ECC Enable */
#define ENUM_SUBSYS_SRAMECCCON_EN_EN1                         (0X00000002U)  /* SRAM1 ECC Enable */
#define ENUM_SUBSYS_SRAMECCCON_EN_EN2                         (0X00000004U)  /* SRAM2 ECC Enable */
#define ENUM_SUBSYS_SRAMECCCON_EN_EN01                        (0X00000003U)  /* SRAM0 and SRAM1 ECC Enable */
#define ENUM_SUBSYS_SRAMECCCON_EN_EN02                        (0X00000005U)  /* SRAM0 and SRAM2 ECC Enable */
#define ENUM_SUBSYS_SRAMECCCON_EN_EN12                        (0X00000006U)  /* SRAM1 and SRAM2 ECC Enable */
#define ENUM_SUBSYS_SRAMECCCON_EN_EN012                       (0X00000007U)  /* SRAM0 and SRAM1 and SRAM2 ECC Enable */
#define ENUM_SUBSYS_SRAMECCCON_EN_ENNA                        (0X00000000U)  /* None SRAM ECC Enable */

/* ----------------------------------------------------------------------------------------------------
          SRAMECCSTA                                            Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_SUBSYS_SRAMECCSTA_S0ERR2B                        (0U)           /* SRAM0 ECC 2 Bits Error */
#define BITL_SUBSYS_SRAMECCSTA_S0ERR2B                        (1U)           /* SRAM0 ECC 2 Bits Error */
#define BITM_SUBSYS_SRAMECCSTA_S0ERR2B                        (0X00000001U)  /* SRAM0 ECC 2 Bits Error */
#define BITP_SUBSYS_SRAMECCSTA_S0ERR1B                        (1U)           /* SRAM0 ECC 1 Bit Error */
#define BITL_SUBSYS_SRAMECCSTA_S0ERR1B                        (1U)           /* SRAM0 ECC 1 Bit Error */
#define BITM_SUBSYS_SRAMECCSTA_S0ERR1B                        (0X00000002U)  /* SRAM0 ECC 1 Bit Error */
#define BITP_SUBSYS_SRAMECCSTA_S1ERR2B                        (2U)           /* SRAM1 ECC 2 Bits Error */
#define BITL_SUBSYS_SRAMECCSTA_S1ERR2B                        (1U)           /* SRAM1 ECC 2 Bits Error */
#define BITM_SUBSYS_SRAMECCSTA_S1ERR2B                        (0X00000004U)  /* SRAM1 ECC 2 Bits Error */
#define BITP_SUBSYS_SRAMECCSTA_S1ERR1B                        (3U)           /* SRAM1 ECC 1 Bit Error */
#define BITL_SUBSYS_SRAMECCSTA_S1ERR1B                        (1U)           /* SRAM1 ECC 1 Bit Error */
#define BITM_SUBSYS_SRAMECCSTA_S1ERR1B                        (0X00000008U)  /* SRAM1 ECC 1 Bit Error */
#define BITP_SUBSYS_SRAMECCSTA_S2ERR2B                        (4U)           /* SRAM2 ECC 2 Bits Error */
#define BITL_SUBSYS_SRAMECCSTA_S2ERR2B                        (1U)           /* SRAM2 ECC 2 Bits Error */
#define BITM_SUBSYS_SRAMECCSTA_S2ERR2B                        (0X00000010U)  /* SRAM2 ECC 2 Bits Error */
#define BITP_SUBSYS_SRAMECCSTA_S2ERR1B                        (5U)           /* SRAM2 ECC 1 Bits Error */
#define BITL_SUBSYS_SRAMECCSTA_S2ERR1B                        (1U)           /* SRAM2 ECC 1 Bits Error */
#define BITM_SUBSYS_SRAMECCSTA_S2ERR1B                        (0X00000020U)  /* SRAM2 ECC 1 Bits Error */
#define BITP_SUBSYS_SRAMECCSTA_ERRCNT                         (8U)           /* ECC Error Counter */
#define BITL_SUBSYS_SRAMECCSTA_ERRCNT                         (3U)           /* ECC Error Counter */
#define BITM_SUBSYS_SRAMECCSTA_ERRCNT                         (0X00000700U)  /* ECC Error Counter */

/* ----------------------------------------------------------------------------------------------------
          SRAMECCA0                                             Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_SUBSYS_SRAMECCA0_ADDR                            (0U)           /* ECC Error Address */
#define BITL_SUBSYS_SRAMECCA0_ADDR                            (32U)          /* ECC Error Address */
#define BITM_SUBSYS_SRAMECCA0_ADDR                            (0XFFFFFFFFU)  /* ECC Error Address */

/* ----------------------------------------------------------------------------------------------------
          SRAMECCD0                                             Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_SUBSYS_SRAMECCD0_DATA                            (0U)           /* ECC Error Raw Data */
#define BITL_SUBSYS_SRAMECCD0_DATA                            (32U)          /* ECC Error Raw Data */
#define BITM_SUBSYS_SRAMECCD0_DATA                            (0XFFFFFFFFU)  /* ECC Error Raw Data */

/* ----------------------------------------------------------------------------------------------------
          SRAMECCP0                                             Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_SUBSYS_SRAMECCP0_PARITY                          (0U)           /* ECC Error Raw Parity */
#define BITL_SUBSYS_SRAMECCP0_PARITY                          (7U)           /* ECC Error Raw Parity */
#define BITM_SUBSYS_SRAMECCP0_PARITY                          (0X0000007FU)  /* ECC Error Raw Parity */

/* ----------------------------------------------------------------------------------------------------
          SRAMECCA1                                             Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_SUBSYS_SRAMECCA1_ADDR                            (0U)           /* ECC Error Address */
#define BITL_SUBSYS_SRAMECCA1_ADDR                            (32U)          /* ECC Error Address */
#define BITM_SUBSYS_SRAMECCA1_ADDR                            (0XFFFFFFFFU)  /* ECC Error Address */

/* ----------------------------------------------------------------------------------------------------
          SRAMECCD1                                             Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_SUBSYS_SRAMECCD1_DATA                            (0U)           /* ECC Error Raw Data */
#define BITL_SUBSYS_SRAMECCD1_DATA                            (32U)          /* ECC Error Raw Data */
#define BITM_SUBSYS_SRAMECCD1_DATA                            (0XFFFFFFFFU)  /* ECC Error Raw Data */

/* ----------------------------------------------------------------------------------------------------
          SRAMECCP1                                             Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_SUBSYS_SRAMECCP1_PARITY                          (0U)           /* ECC Error Raw Parity */
#define BITL_SUBSYS_SRAMECCP1_PARITY                          (7U)           /* ECC Error Raw Parity */
#define BITM_SUBSYS_SRAMECCP1_PARITY                          (0X0000007FU)  /* ECC Error Raw Parity */

/* ----------------------------------------------------------------------------------------------------
          SRAMECCA2                                             Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_SUBSYS_SRAMECCA2_ADDR                            (0U)           /* ECC Error Address */
#define BITL_SUBSYS_SRAMECCA2_ADDR                            (32U)          /* ECC Error Address */
#define BITM_SUBSYS_SRAMECCA2_ADDR                            (0XFFFFFFFFU)  /* ECC Error Address */

/* ----------------------------------------------------------------------------------------------------
          SRAMECCD2                                             Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_SUBSYS_SRAMECCD2_DATA                            (0U)           /* ECC Error Raw Data */
#define BITL_SUBSYS_SRAMECCD2_DATA                            (32U)          /* ECC Error Raw Data */
#define BITM_SUBSYS_SRAMECCD2_DATA                            (0XFFFFFFFFU)  /* ECC Error Raw Data */

/* ----------------------------------------------------------------------------------------------------
          SRAMECCP2                                             Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_SUBSYS_SRAMECCP2_PARITY                          (0U)           /* ECC Error Raw Parity */
#define BITL_SUBSYS_SRAMECCP2_PARITY                          (7U)           /* ECC Error Raw Parity */
#define BITM_SUBSYS_SRAMECCP2_PARITY                          (0X0000007FU)  /* ECC Error Raw Parity */

#endif  /* end ifndef SUBSYS_ADDR_RDEF_H_ */


#ifndef CRC_ADDR_RDEF_H_
#define CRC_ADDR_RDEF_H_    /* CRC: CRC Accelerator */

/* ====================================================================================================
        CRC Module Instances Address and Mask Definitions
   ==================================================================================================== */
#define INST_CRC                                                 (0X40066000U)    /* crc: */

#define MASK_CRC                                                 (0X000000FFU)    /* CRC: CRC Accelerator */

/* ====================================================================================================
        CRC Module Register Address Offset Definitions
   ==================================================================================================== */
#define IDX_CRC_CTL                                             (0X00U)    /* CRC Control Register */
#define IDX_CRC_IPDATA                                          (0X04U)    /* Input Data Word Register */
#define IDX_CRC_RESULT                                          (0X08U)    /* CRC Result Register */
#define IDX_CRC_POLY                                            (0X0CU)    /* Programmable CRC Polynomial */

/* ====================================================================================================
        CRC Module Register ResetValue Definitions
   ==================================================================================================== */
#define RSTVAL_CRC_CTL                                             (0X10000000) 
#define RSTVAL_CRC_IPDATA                                          (0X0) 
#define RSTVAL_CRC_RESULT                                          (0X0) 
#define RSTVAL_CRC_POLY                                            (0X4C11DB7) 

/* ====================================================================================================
        CRC Module Register BitPositions, Lengths, Masks and Enumerations Definitions
   ==================================================================================================== */

/* ----------------------------------------------------------------------------------------------------
          CTL                                                   Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_CRC_CTL_EN                                       (0U)           /* CRC Peripheral Enable */
#define BITL_CRC_CTL_EN                                       (1U)           /* CRC Peripheral Enable */
#define BITM_CRC_CTL_EN                                       (0X00000001U)  /* CRC Peripheral Enable */
#define BITP_CRC_CTL_LSBFIRST                                 (1U)           /* LSB First Calculation Order */
#define BITL_CRC_CTL_LSBFIRST                                 (1U)           /* LSB First Calculation Order */
#define BITM_CRC_CTL_LSBFIRST                                 (0X00000002U)  /* LSB First Calculation Order */
#define BITP_CRC_CTL_BITMIRR                                  (2U)           /* Bit Mirroring */
#define BITL_CRC_CTL_BITMIRR                                  (1U)           /* Bit Mirroring */
#define BITM_CRC_CTL_BITMIRR                                  (0X00000004U)  /* Bit Mirroring */
#define BITP_CRC_CTL_BYTMIRR                                  (3U)           /* Byte Mirroring */
#define BITL_CRC_CTL_BYTMIRR                                  (1U)           /* Byte Mirroring */
#define BITM_CRC_CTL_BYTMIRR                                  (0X00000008U)  /* Byte Mirroring */
#define BITP_CRC_CTL_W16SWP                                   (4U)           /* Word16 Swap */
#define BITL_CRC_CTL_W16SWP                                   (1U)           /* Word16 Swap */
#define BITM_CRC_CTL_W16SWP                                   (0X00000010U)  /* Word16 Swap */
#define BITP_CRC_CTL_REVID                                    (28U)          /* Revision ID */
#define BITL_CRC_CTL_REVID                                    (4U)           /* Revision ID */
#define BITM_CRC_CTL_REVID                                    (0XF0000000U)  /* Revision ID */

/* ----------------------------------------------------------------------------------------------------
          IPDATA                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_CRC_IPDATA_DATA_WORD                             (0U)           /* Data Input. */
#define BITL_CRC_IPDATA_DATA_WORD                             (32U)          /* Data Input. */
#define BITM_CRC_IPDATA_DATA_WORD                             (0XFFFFFFFFU)  /* Data Input. */

/* ----------------------------------------------------------------------------------------------------
          RESULT                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_CRC_RESULT_RESIDUE                               (0U)           /* CRC Residue */
#define BITL_CRC_RESULT_RESIDUE                               (32U)          /* CRC Residue */
#define BITM_CRC_RESULT_RESIDUE                               (0XFFFFFFFFU)  /* CRC Residue */

/* ----------------------------------------------------------------------------------------------------
          POLY                                                  Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_CRC_POLY_REDUCTION_POLY                          (0U)           /* CRC Reduction Polynomial */
#define BITL_CRC_POLY_REDUCTION_POLY                          (32U)          /* CRC Reduction Polynomial */
#define BITM_CRC_POLY_REDUCTION_POLY                          (0XFFFFFFFFU)  /* CRC Reduction Polynomial */

#endif  /* end ifndef CRC_ADDR_RDEF_H_ */


#ifndef ADC_ADDR_RDEF_H_
#define ADC_ADDR_RDEF_H_    /* ADC: Your module description, here. */

/* ====================================================================================================
        ADC Module Instances Address and Mask Definitions
   ==================================================================================================== */
#define INST_ADC                                                 (0X40068000U)    /* adc: */

#define MASK_ADC                                                 (0X000007FFU)    /* ADC: Your module description, here. */

/* ====================================================================================================
        ADC Module Register Address Offset Definitions
   ==================================================================================================== */
#define IDX_ADC_ADCDAT0                                         (0X000U)    /* ADCx Data and Flags */
#define IDX_ADC_ADCDAT1                                         (0X004U)    /* ADCx Data and Flags */
#define IDX_ADC_ADCDAT2                                         (0X008U)    /* ADCx Data and Flags */
#define IDX_ADC_ADCDAT3                                         (0X00CU)    /* ADCx Data and Flags */
#define IDX_ADC_ADCDAT4                                         (0X010U)    /* ADCx Data and Flags */
#define IDX_ADC_ADCDAT5                                         (0X014U)    /* ADCx Data and Flags */
#define IDX_ADC_ADCDAT6                                         (0X018U)    /* ADCx Data and Flags */
#define IDX_ADC_ADCDAT7                                         (0X01CU)    /* ADCx Data and Flags */
#define IDX_ADC_ADCDAT8                                         (0X020U)    /* ADCx Data and Flags */
#define IDX_ADC_ADCDAT9                                         (0X024U)    /* ADCx Data and Flags */
#define IDX_ADC_ADCDAT10                                        (0X028U)    /* ADCx Data and Flags */
#define IDX_ADC_ADCDAT11                                        (0X02CU)    /* ADCx Data and Flags */
#define IDX_ADC_ADCDAT12                                        (0X030U)    /* ADCx Data and Flags */
#define IDX_ADC_ADCDAT13                                        (0X034U)    /* ADCx Data and Flags */
#define IDX_ADC_ADCDAT14                                        (0X038U)    /* ADCx Data and Flags */
#define IDX_ADC_ADCDAT15                                        (0X03CU)    /* ADCx Data and Flags */
#define IDX_ADC_ADCDAT16                                        (0X040U)    /* ADCx Data and Flags */
#define IDX_ADC_ADCDAT17                                        (0X044U)    /* ADCx Data and Flags */
#define IDX_ADC_ADCDAT18                                        (0X048U)    /* ADCx Data and Flags */
#define IDX_ADC_ADCDAT19                                        (0X04CU)    /* ADCx Data and Flags */
#define IDX_ADC_ADCDAT20                                        (0X050U)    /* ADCx Data and Flags */
#define IDX_ADC_ADCDAT21                                        (0X054U)    /* ADCx Data and Flags */
#define IDX_ADC_ADCDAT22                                        (0X058U)    /* ADCx Data and Flags */
#define IDX_ADC_ADCDAT23                                        (0X05CU)    /* ADCx Data and Flags */
#define IDX_ADC_ADCDAT24                                        (0X060U)    /* ADCx Data and Flags */
#define IDX_ADC_ADCDAT25                                        (0X064U)    /* ADCx Data and Flags */
#define IDX_ADC_ADCDAT26                                        (0X068U)    /* ADCx Data and Flags */
#define IDX_ADC_ADCDAT27                                        (0X06CU)    /* ADCx Data and Flags */
#define IDX_ADC_ADCDAT28                                        (0X070U)    /* ADCx Data and Flags */
#define IDX_ADC_ADCDAT29                                        (0X074U)    /* ADCx Data and Flags */
#define IDX_ADC_ADCCON                                          (0X078U)    /* ADC Configuration */
#define IDX_ADC_PREBUFCON                                       (0X07CU)    /* Pre-charge Buffer Control */
#define IDX_ADC_ADCCNVC                                         (0X080U)    /* ADC Conversion Cycle for Positive Input Channels */
#define IDX_ADC_ADCCNVCSLOW                                     (0X084U)    /* ADC Conversion Cycle for Positive Input Channels */
#define IDX_ADC_ADCCHA                                          (0X088U)    /* ADC Channel Select */
#define IDX_ADC_ADCIRQSTAT                                      (0X08CU)    /* ADC Interrupt Status */
#define IDX_ADC_ADCSEQ                                          (0X090U)    /* ADC Sequencer Control */
#define IDX_ADC_ADCSEQC                                         (0X094U)    /* ADC Sequencer Configuration */
#define IDX_ADC_ADCSEQS                                         (0X098U)    /* ADC Sequencer Status */
#define IDX_ADC_ADCSEQCH                                        (0X09CU)    /* ADC Sequencer Channel 0 */
#define IDX_ADC_ADCSEQCHMUX0                                    (0X0A0U)    /* ADC Sequencer Channel 1 */
#define IDX_ADC_ADCSEQCHMUX1                                    (0X0A4U)    /* ADC Sequencer Channel 1 */
#define IDX_ADC_ADCCMP                                          (0X0A8U)    /* Digital Comparator 0 Configuration */
#define IDX_ADC_ADCCMPIRQSTAT                                   (0X0ACU)    /* Digital Comparator Interrupt Status */
#define IDX_ADC_ADCOFGNDIFF                                     (0X0B0U)    /* ADC Offset Gain Differential Channel Error Correction */
#define IDX_ADC_ADCOFTEMP                                       (0X0B4U)    /* ADC Offset Gain Temp Sensor Channel Error Correction */
#define IDX_ADC_ADCGNTEMP                                       (0X0B8U)    /* ADC Offset Gain Temp Sensor Channel Error Correction */
#define IDX_ADC_ADCOFGNPGA0                                     (0X0BCU)    /* ADC Offset Gain PGA0 Channel Error Correction */
#define IDX_ADC_ADCOFGNPGA1                                     (0X0C0U)    /* ADC Offset Gain PGA1 Channel Error Correction */
#define IDX_ADC_ADCOFGNPGA2                                     (0X0C4U)    /* ADC Offset Gain PGA2 Channel Error Correction */
#define IDX_ADC_ADCOFGNPGA3                                     (0X0C8U)    /* ADC Offset Gain PGA3 Channel Error Correction */
#define IDX_ADC_ADCOFGNPGA0TIA                                  (0X0CCU)    /* ADC Offset Gain PGA0 Channel Error Correction */
#define IDX_ADC_ADCOFGNPGA1TIA                                  (0X0D0U)    /* ADC Offset Gain PGA1 Channel Error Correction */
#define IDX_ADC_ADCOFGNPGA2TIA                                  (0X0D4U)    /* ADC Offset Gain PGA2 Channel Error Correction */
#define IDX_ADC_ADCOFGNPGA3TIA                                  (0X0D8U)    /* ADC Offset Gain PGA3 Channel Error Correction */
#define IDX_ADC_ADCCMP1                                         (0X154U)    /* Digital Comparator 1 Configuration */
#define IDX_ADC_ADCCMP2                                         (0X158U)    /* Digital Comparator 2 Configuration */
#define IDX_ADC_ADCCMP3                                         (0X15CU)    /* Digital Comparator 3 Configuration */

/* ====================================================================================================
        ADC Module Register ResetValue Definitions
   ==================================================================================================== */
#define RSTVAL_ADC_ADCDAT0                                         (0X0) 
#define RSTVAL_ADC_ADCDAT1                                         (0X0) 
#define RSTVAL_ADC_ADCDAT2                                         (0X0) 
#define RSTVAL_ADC_ADCDAT3                                         (0X0) 
#define RSTVAL_ADC_ADCDAT4                                         (0X0) 
#define RSTVAL_ADC_ADCDAT5                                         (0X0) 
#define RSTVAL_ADC_ADCDAT6                                         (0X0) 
#define RSTVAL_ADC_ADCDAT7                                         (0X0) 
#define RSTVAL_ADC_ADCDAT8                                         (0X0) 
#define RSTVAL_ADC_ADCDAT9                                         (0X0) 
#define RSTVAL_ADC_ADCDAT10                                        (0X0) 
#define RSTVAL_ADC_ADCDAT11                                        (0X0) 
#define RSTVAL_ADC_ADCDAT12                                        (0X0) 
#define RSTVAL_ADC_ADCDAT13                                        (0X0) 
#define RSTVAL_ADC_ADCDAT14                                        (0X0) 
#define RSTVAL_ADC_ADCDAT15                                        (0X0) 
#define RSTVAL_ADC_ADCDAT16                                        (0X0) 
#define RSTVAL_ADC_ADCDAT17                                        (0X0) 
#define RSTVAL_ADC_ADCDAT18                                        (0X0) 
#define RSTVAL_ADC_ADCDAT19                                        (0X0) 
#define RSTVAL_ADC_ADCDAT20                                        (0X0) 
#define RSTVAL_ADC_ADCDAT21                                        (0X0) 
#define RSTVAL_ADC_ADCDAT22                                        (0X0) 
#define RSTVAL_ADC_ADCDAT23                                        (0X0) 
#define RSTVAL_ADC_ADCDAT24                                        (0X0) 
#define RSTVAL_ADC_ADCDAT25                                        (0X0) 
#define RSTVAL_ADC_ADCDAT26                                        (0X0) 
#define RSTVAL_ADC_ADCDAT27                                        (0X0) 
#define RSTVAL_ADC_ADCDAT28                                        (0X0) 
#define RSTVAL_ADC_ADCDAT29                                        (0X0) 
#define RSTVAL_ADC_ADCCON                                          (0X200) 
#define RSTVAL_ADC_PREBUFCON                                       (0X3) 
#define RSTVAL_ADC_ADCCNVC                                         (0X10) 
#define RSTVAL_ADC_ADCCNVCSLOW                                     (0X140) 
#define RSTVAL_ADC_ADCCHA                                          (0X0) 
#define RSTVAL_ADC_ADCIRQSTAT                                      (0X0) 
#define RSTVAL_ADC_ADCSEQ                                          (0X0) 
#define RSTVAL_ADC_ADCSEQC                                         (0X0) 
#define RSTVAL_ADC_ADCSEQS                                         (0X0) 
#define RSTVAL_ADC_ADCSEQCH                                        (0X0) 
#define RSTVAL_ADC_ADCSEQCHMUX0                                    (0X0) 
#define RSTVAL_ADC_ADCSEQCHMUX1                                    (0X0) 
#define RSTVAL_ADC_ADCCMP                                          (0X40000) 
#define RSTVAL_ADC_ADCCMPIRQSTAT                                   (0X0) 
#define RSTVAL_ADC_ADCOFGNDIFF                                     (0X4000) 
#define RSTVAL_ADC_ADCOFTEMP                                       (0X0) 
#define RSTVAL_ADC_ADCGNTEMP                                       (0X80000) 
#define RSTVAL_ADC_ADCOFGNPGA0                                     (0X4000) 
#define RSTVAL_ADC_ADCOFGNPGA1                                     (0X4000) 
#define RSTVAL_ADC_ADCOFGNPGA2                                     (0X4000) 
#define RSTVAL_ADC_ADCOFGNPGA3                                     (0X4000) 
#define RSTVAL_ADC_ADCOFGNPGA0TIA                                  (0X4000) 
#define RSTVAL_ADC_ADCOFGNPGA1TIA                                  (0X4000) 
#define RSTVAL_ADC_ADCOFGNPGA2TIA                                  (0X4000) 
#define RSTVAL_ADC_ADCOFGNPGA3TIA                                  (0X4000) 
#define RSTVAL_ADC_ADCCMP1                                         (0X40000) 
#define RSTVAL_ADC_ADCCMP2                                         (0X40000) 
#define RSTVAL_ADC_ADCCMP3                                         (0X40000) 

/* ====================================================================================================
        ADC Module Register BitPositions, Lengths, Masks and Enumerations Definitions
   ==================================================================================================== */

/* ----------------------------------------------------------------------------------------------------
          ADCDAT0                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ADC_ADCDAT_N__OVF                                (0U)           /* Overflow Flag */
#define BITL_ADC_ADCDAT_N__OVF                                (1U)           /* Overflow Flag */
#define BITM_ADC_ADCDAT_N__OVF                                (0X00000001U)  /* Overflow Flag */
#define BITP_ADC_ADCDAT_N__UVF                                (1U)           /* Underflow Flag */
#define BITL_ADC_ADCDAT_N__UVF                                (1U)           /* Underflow Flag */
#define BITM_ADC_ADCDAT_N__UVF                                (0X00000002U)  /* Underflow Flag */
#define BITP_ADC_ADCDAT_N__RDY                                (2U)           /* Data Read Flag */
#define BITL_ADC_ADCDAT_N__RDY                                (1U)           /* Data Read Flag */
#define BITM_ADC_ADCDAT_N__RDY                                (0X00000004U)  /* Data Read Flag */
#define BITP_ADC_ADCDAT_N__DAT                                (4U)           /* ADCx Data */
#define BITL_ADC_ADCDAT_N__DAT                                (16U)          /* ADCx Data */
#define BITM_ADC_ADCDAT_N__DAT                                (0X000FFFF0U)  /* ADCx Data */

#define ENUM_ADC_ADCDAT_N__RDY_NORDY                          (0X00000000U)  /* Data is Not Ready or Has Been Read Out */
#define ENUM_ADC_ADCDAT_N__RDY_RDY                            (0X00000001U)  /* Data is Ready to Be Read */
#define ENUM_ADC_ADCDAT_N__UVF_NUNF                           (0X00000000U)  /* Not Underflow */
#define ENUM_ADC_ADCDAT_N__UVF_UNF                            (0X00000001U)  /* Underflow */
#define ENUM_ADC_ADCDAT_N__OVF_NOVF                           (0X00000000U)  /* Not Overflow */
#define ENUM_ADC_ADCDAT_N__OVF_OVF                            (0X00000001U)  /* Overflow */

/* ----------------------------------------------------------------------------------------------------
          ADCCON                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ADC_ADCCON_CONVTYPE                              (0U)           /* ADC Conversion Type Selection */
#define BITL_ADC_ADCCON_CONVTYPE                              (3U)           /* ADC Conversion Type Selection */
#define BITM_ADC_ADCCON_CONVTYPE                              (0X00000007U)  /* ADC Conversion Type Selection */
#define BITP_ADC_ADCCON_CNVDMA                                (3U)           /* DMA Request Enable for ADC Non-sequence Conversion */
#define BITL_ADC_ADCCON_CNVDMA                                (1U)           /* DMA Request Enable for ADC Non-sequence Conversion */
#define BITM_ADC_ADCCON_CNVDMA                                (0X00000008U)  /* DMA Request Enable for ADC Non-sequence Conversion */
#define BITP_ADC_ADCCON_SEQDMA                                (4U)           /* DMA Request Enable for ADC Sequence Conversion */
#define BITL_ADC_ADCCON_SEQDMA                                (1U)           /* DMA Request Enable for ADC Sequence Conversion */
#define BITM_ADC_ADCCON_SEQDMA                                (0X00000010U)  /* DMA Request Enable for ADC Sequence Conversion */
#define BITP_ADC_ADCCON_PINMOD                                (5U)           /* PIN Conversion Mode Selection */
#define BITL_ADC_ADCCON_PINMOD                                (1U)           /* PIN Conversion Mode Selection */
#define BITM_ADC_ADCCON_PINMOD                                (0X00000020U)  /* PIN Conversion Mode Selection */
#define BITP_ADC_ADCCON_RESTARTADC                            (6U)           /* Restart ADC, Reset Analog Part of ADC */
#define BITL_ADC_ADCCON_RESTARTADC                            (1U)           /* Restart ADC, Reset Analog Part of ADC */
#define BITM_ADC_ADCCON_RESTARTADC                            (0X00000040U)  /* Restart ADC, Reset Analog Part of ADC */
#define BITP_ADC_ADCCON_PDREFBUF                              (7U)           /* ADC Refbuf Power Down */
#define BITL_ADC_ADCCON_PDREFBUF                              (1U)           /* ADC Refbuf Power Down */
#define BITM_ADC_ADCCON_PDREFBUF                              (0X00000080U)  /* ADC Refbuf Power Down */
#define BITP_ADC_ADCCON_VDDSEL                                (8U)           /* Select Whether Channel 29 is DVDD Channel or AVDD Channel */
#define BITL_ADC_ADCCON_VDDSEL                                (1U)           /* Select Whether Channel 29 is DVDD Channel or AVDD Channel */
#define BITM_ADC_ADCCON_VDDSEL                                (0X00000100U)  /* Select Whether Channel 29 is DVDD Channel or AVDD Channel */
#define BITP_ADC_ADCCON_PDADC                                 (9U)           /* ADC Power Down */
#define BITL_ADC_ADCCON_PDADC                                 (1U)           /* ADC Power Down */
#define BITM_ADC_ADCCON_PDADC                                 (0X00000200U)  /* ADC Power Down */
#define BITP_ADC_ADCCON_OSR                                   (10U)          /* Oversampling Ratio */
#define BITL_ADC_ADCCON_OSR                                   (3U)           /* Oversampling Ratio */
#define BITM_ADC_ADCCON_OSR                                   (0X00001C00U)  /* Oversampling Ratio */
#define BITP_ADC_ADCCON_CNVIRQEN                              (14U)          /* Enable Conversion Interrupt Generation */
#define BITL_ADC_ADCCON_CNVIRQEN                              (1U)           /* Enable Conversion Interrupt Generation */
#define BITM_ADC_ADCCON_CNVIRQEN                              (0X00004000U)  /* Enable Conversion Interrupt Generation */
#define BITP_ADC_ADCCON_GPTEVENTEN                            (15U)          /* Enable GPT Event to Trigger Conversion */
#define BITL_ADC_ADCCON_GPTEVENTEN                            (5U)           /* Enable GPT Event to Trigger Conversion */
#define BITM_ADC_ADCCON_GPTEVENTEN                            (0X000F8000U)  /* Enable GPT Event to Trigger Conversion */
#define BITP_ADC_ADCCON_GPTTRIGMD                             (20U)          /* Mux Select GP Timer Trigger Mode */
#define BITL_ADC_ADCCON_GPTTRIGMD                             (1U)           /* Mux Select GP Timer Trigger Mode */
#define BITM_ADC_ADCCON_GPTTRIGMD                             (0X00100000U)  /* Mux Select GP Timer Trigger Mode */

#define ENUM_ADC_ADCCON_GPTTRIGMD_MD0                         (0X00000000U)  /* Two Timeout Events Trigger One Conversion */
#define ENUM_ADC_ADCCON_GPTTRIGMD_MD1                         (0X00000001U)  /* One Timeout Events Trigger One Conversion */
#define ENUM_ADC_ADCCON_OSR_OSR_NS1                           (0X00000000U)  /* Oversampling Disable */
#define ENUM_ADC_ADCCON_OSR_OSR2                              (0X00000001U)  /* Oversampling X2 */
#define ENUM_ADC_ADCCON_OSR_OSR4                              (0X00000002U)  /* Oversampling X4 */
#define ENUM_ADC_ADCCON_OSR_OSR8                              (0X00000003U)  /* Oversampling X8 */
#define ENUM_ADC_ADCCON_OSR_OSR16                             (0X00000004U)  /* Oversampling X16 */
#define ENUM_ADC_ADCCON_OSR_OSR_NS32                          (0X00000005U)  /* Oversampling X32 */
#define ENUM_ADC_ADCCON_OSR_OSR_NS64                          (0X00000006U)  /* Oversampling Disable */
#define ENUM_ADC_ADCCON_OSR_OSR_NS128                         (0X00000007U)  /* Oversampling Disable */
#define ENUM_ADC_ADCCON_PDADC_ADCPU                           (0X00000000U)  /* Not Power Down ADC */
#define ENUM_ADC_ADCCON_PDADC_ADCPD                           (0X00000001U)  /* Power Down ADC */
#define ENUM_ADC_ADCCON_VDDSEL_DVDD                           (0X00000000U)  /* Channel 29 is Half of DVDD Channel */
#define ENUM_ADC_ADCCON_VDDSEL_AVSS                           (0X00000001U)  /* Channel 29 is AVSS Channel */
#define ENUM_ADC_ADCCON_PDREFBUF_REFBUFPU                     (0X00000000U)  /* Normal Mode */
#define ENUM_ADC_ADCCON_PDREFBUF_REFBUFPD                     (0X00000001U)  /* Power Down Reference Mode */
#define ENUM_ADC_ADCCON_RESTARTADC_ADCPU                      (0X00000000U)  /* Not Power Down ADC */
#define ENUM_ADC_ADCCON_RESTARTADC_ADCPD                      (0X00000001U)  /* Power Down ADC */
#define ENUM_ADC_ADCCON_PINMOD_PIN_LVL                        (0X00000000U)  /* CNV is Controlled by PIN Level */
#define ENUM_ADC_ADCCON_PINMOD_PIN_EDGE                       (0X00000001U)  /* CNV is Controlled by PIN Edge */
#define ENUM_ADC_ADCCON_CONVTYPE_IDLE                         (0X00000000U)  /* No Conversion */
#define ENUM_ADC_ADCCON_CONVTYPE_GPIO                         (0X00000001U)  /* ADC Controlled by GPIO Pin */
#define ENUM_ADC_ADCCON_CONVTYPE_SINGL                        (0X00000002U)  /* Software Single Conversion */
#define ENUM_ADC_ADCCON_CONVTYPE_CONT                         (0X00000003U)  /* Software Continue Conversion */
#define ENUM_ADC_ADCCON_CONVTYPE_PLA                          (0X00000004U)  /* PLA Conversion */
#define ENUM_ADC_ADCCON_CONVTYPE_GPT                          (0X00000005U)  /* GPT Triggered Conversion */

/* ----------------------------------------------------------------------------------------------------
          PREBUFCON                                             Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ADC_PREBUFCON_PRGBYPP                            (0U)           /* Bypass P Channel Pre_buf */
#define BITL_ADC_PREBUFCON_PRGBYPP                            (1U)           /* Bypass P Channel Pre_buf */
#define BITM_ADC_PREBUFCON_PRGBYPP                            (0X00000001U)  /* Bypass P Channel Pre_buf */
#define BITP_ADC_PREBUFCON_PRGBYPN                            (1U)           /* Bypass N Channel Pre_buf */
#define BITL_ADC_PREBUFCON_PRGBYPN                            (1U)           /* Bypass N Channel Pre_buf */
#define BITM_ADC_PREBUFCON_PRGBYPN                            (0X00000002U)  /* Bypass N Channel Pre_buf */

/* ----------------------------------------------------------------------------------------------------
          ADCCNVC                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ADC_ADCCNVC_CNVC                                 (0U)           /* CNV Frequency Configuration for Positive Channels */
#define BITL_ADC_ADCCNVC_CNVC                                 (32U)          /* CNV Frequency Configuration for Positive Channels */
#define BITM_ADC_ADCCNVC_CNVC                                 (0XFFFFFFFFU)  /* CNV Frequency Configuration for Positive Channels */

/* ----------------------------------------------------------------------------------------------------
          ADCCNVCSLOW                                           Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ADC_ADCCNVCSLOW_CNVCSLOW                         (0U)           /* CNV Frequency Configuration for 100KSPS Channels */
#define BITL_ADC_ADCCNVCSLOW_CNVCSLOW                         (32U)          /* CNV Frequency Configuration for 100KSPS Channels */
#define BITM_ADC_ADCCNVCSLOW_CNVCSLOW                         (0XFFFFFFFFU)  /* CNV Frequency Configuration for 100KSPS Channels */

/* ----------------------------------------------------------------------------------------------------
          ADCCHA                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ADC_ADCCHA_ADCCP                                 (0U)           /* ADC P Channel Selection */
#define BITL_ADC_ADCCHA_ADCCP                                 (5U)           /* ADC P Channel Selection */
#define BITM_ADC_ADCCHA_ADCCP                                 (0X0000001FU)  /* ADC P Channel Selection */
#define BITP_ADC_ADCCHA_ADCCN                                 (5U)           /* ADC N Channel Selection */
#define BITL_ADC_ADCCHA_ADCCN                                 (4U)           /* ADC N Channel Selection */
#define BITM_ADC_ADCCHA_ADCCN                                 (0X000001E0U)  /* ADC N Channel Selection */

#define ENUM_ADC_ADCCHA_ADCCP_AIN0                            (0X00000000U)  /* No description provided */
#define ENUM_ADC_ADCCHA_ADCCP_AIN1                            (0X00000001U)  /* No description provided */
#define ENUM_ADC_ADCCHA_ADCCP_AIN2                            (0X00000002U)  /* No description provided */
#define ENUM_ADC_ADCCHA_ADCCP_AIN3                            (0X00000003U)  /* No description provided */
#define ENUM_ADC_ADCCHA_ADCCP_AIN4                            (0X00000004U)  /* No description provided */
#define ENUM_ADC_ADCCHA_ADCCP_AIN5                            (0X00000005U)  /* No description provided */
#define ENUM_ADC_ADCCHA_ADCCP_AIN6                            (0X00000006U)  /* No description provided */
#define ENUM_ADC_ADCCHA_ADCCP_AIN7                            (0X00000007U)  /* No description provided */
#define ENUM_ADC_ADCCHA_ADCCP_AIN8                            (0X00000008U)  /* No description provided */
#define ENUM_ADC_ADCCHA_ADCCP_AIN9                            (0X00000009U)  /* No description provided */
#define ENUM_ADC_ADCCHA_ADCCP_AIN10                           (0X0000000AU)  /* No description provided */
#define ENUM_ADC_ADCCHA_ADCCP_AIN11                           (0X0000000BU)  /* No description provided */
#define ENUM_ADC_ADCCHA_ADCCP_AIN12                           (0X0000000CU)  /* No description provided */
#define ENUM_ADC_ADCCHA_ADCCP_AIN13                           (0X0000000DU)  /* No description provided */
#define ENUM_ADC_ADCCHA_ADCCP_AIN14                           (0X0000000EU)  /* No description provided */
#define ENUM_ADC_ADCCHA_ADCCP_AIN15                           (0X0000000FU)  /* No description provided */
#define ENUM_ADC_ADCCHA_ADCCP_PGA0                            (0X00000010U)  /* No description provided */
#define ENUM_ADC_ADCCHA_ADCCP_PGA1                            (0X00000011U)  /* No description provided */
#define ENUM_ADC_ADCCHA_ADCCP_PGA2                            (0X00000012U)  /* No description provided */
#define ENUM_ADC_ADCCHA_ADCCP_PGA3                            (0X00000013U)  /* No description provided */
#define ENUM_ADC_ADCCHA_ADCCP_TEMPSNS                         (0X00000014U)  /* No description provided */
#define ENUM_ADC_ADCCHA_ADCCP_AVDDDIV2                        (0X00000015U)  /* No description provided */
#define ENUM_ADC_ADCCHA_ADCCP_IOVDD0DIV2                      (0X00000016U)  /* No description provided */
#define ENUM_ADC_ADCCHA_ADCCP_IOVDD1                          (0X00000017U)  /* No description provided */
#define ENUM_ADC_ADCCHA_ADCCP_HVTIA0                          (0X00000018U)  /* No description provided */
#define ENUM_ADC_ADCCHA_ADCCP_HVTIA1                          (0X00000019U)  /* No description provided */
#define ENUM_ADC_ADCCHA_ADCCP_HVTIA2                          (0X0000001AU)  /* No description provided */
#define ENUM_ADC_ADCCHA_ADCCP_HVTIA3                          (0X0000001BU)  /* No description provided */
#define ENUM_ADC_ADCCHA_ADCCP_HVTIA4                          (0X0000001CU)  /* No description provided */
#define ENUM_ADC_ADCCHA_ADCCP_AVSS                            (0X0000001DU)  /* No description provided */

/* ----------------------------------------------------------------------------------------------------
          ADCIRQSTAT                                            Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ADC_ADCIRQSTAT_CNVIRQSTAT                        (0U)           /* Single Conversion IRQ Status */
#define BITL_ADC_ADCIRQSTAT_CNVIRQSTAT                        (1U)           /* Single Conversion IRQ Status */
#define BITM_ADC_ADCIRQSTAT_CNVIRQSTAT                        (0X00000001U)  /* Single Conversion IRQ Status */
#define BITP_ADC_ADCIRQSTAT_SEQIRQSTAT                        (1U)           /* Sequence Conversion IRQ Status */
#define BITL_ADC_ADCIRQSTAT_SEQIRQSTAT                        (1U)           /* Sequence Conversion IRQ Status */
#define BITM_ADC_ADCIRQSTAT_SEQIRQSTAT                        (0X00000002U)  /* Sequence Conversion IRQ Status */

#define ENUM_ADC_ADCIRQSTAT_SEQIRQSTAT_IRQCLR                 (0X00000000U)  /* Interrupt Clear */
#define ENUM_ADC_ADCIRQSTAT_SEQIRQSTAT_IRQSET                 (0X00000001U)  /* Interrupt Set */
#define ENUM_ADC_ADCIRQSTAT_CNVIRQSTAT_IRQCLR                 (0X00000000U)  /* Interrupt Clear */
#define ENUM_ADC_ADCIRQSTAT_CNVIRQSTAT_IRQSET                 (0X00000001U)  /* Interrupt Set */

/* ----------------------------------------------------------------------------------------------------
          ADCSEQ                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ADC_ADCSEQ_SEQEN                                 (0U)           /* Sequence Enable */
#define BITL_ADC_ADCSEQ_SEQEN                                 (1U)           /* Sequence Enable */
#define BITM_ADC_ADCSEQ_SEQEN                                 (0X00000001U)  /* Sequence Enable */
#define BITP_ADC_ADCSEQ_SEQREN                                (1U)           /* Sequence Restart */
#define BITL_ADC_ADCSEQ_SEQREN                                (1U)           /* Sequence Restart */
#define BITM_ADC_ADCSEQ_SEQREN                                (0X00000002U)  /* Sequence Restart */
#define BITP_ADC_ADCSEQ_SEQSTL                                (2U)           /* Sequence Stall */
#define BITL_ADC_ADCSEQ_SEQSTL                                (1U)           /* Sequence Stall */
#define BITM_ADC_ADCSEQ_SEQSTL                                (0X00000004U)  /* Sequence Stall */
#define BITP_ADC_ADCSEQ_SEQIRQEN                              (3U)           /* Enable Sequencer Interrupt Generation */
#define BITL_ADC_ADCSEQ_SEQIRQEN                              (1U)           /* Enable Sequencer Interrupt Generation */
#define BITM_ADC_ADCSEQ_SEQIRQEN                              (0X00000008U)  /* Enable Sequencer Interrupt Generation */

#define ENUM_ADC_ADCSEQ_SEQSTL_SEQNSTALL                      (0X00000000U)  /* Running Sequence */
#define ENUM_ADC_ADCSEQ_SEQSTL_SEQSTALL                       (0X00000001U)  /* Stalling Sequence */

/* ----------------------------------------------------------------------------------------------------
          ADCSEQC                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ADC_ADCSEQC_SEQT                                 (0U)           /* Repeat Sequence Interval */
#define BITL_ADC_ADCSEQC_SEQT                                 (8U)           /* Repeat Sequence Interval */
#define BITM_ADC_ADCSEQC_SEQT                                 (0X000000FFU)  /* Repeat Sequence Interval */

/* ----------------------------------------------------------------------------------------------------
          ADCSEQS                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ADC_ADCSEQS_CNVSTAT                              (0U)           /* ADC Conversion Idle/Busy Flag */
#define BITL_ADC_ADCSEQS_CNVSTAT                              (1U)           /* ADC Conversion Idle/Busy Flag */
#define BITM_ADC_ADCSEQS_CNVSTAT                              (0X00000001U)  /* ADC Conversion Idle/Busy Flag */
#define BITP_ADC_ADCSEQS_SEQSTLSTAT                           (1U)           /* Stall Sequencer Status */
#define BITL_ADC_ADCSEQS_SEQSTLSTAT                           (1U)           /* Stall Sequencer Status */
#define BITM_ADC_ADCSEQS_SEQSTLSTAT                           (0X00000002U)  /* Stall Sequencer Status */
#define BITP_ADC_ADCSEQS_SEQSTAT                              (2U)           /* Sequencer Status */
#define BITL_ADC_ADCSEQS_SEQSTAT                              (1U)           /* Sequencer Status */
#define BITM_ADC_ADCSEQS_SEQSTAT                              (0X00000004U)  /* Sequencer Status */

#define ENUM_ADC_ADCSEQS_SEQSTAT_SEQBUSY                      (0X00000001U)  /* Sequence is Busy */
#define ENUM_ADC_ADCSEQS_SEQSTAT_SEQNBUSY                     (0X00000000U)  /* Sequence is Idle */
#define ENUM_ADC_ADCSEQS_SEQSTLSTAT_SEQNSTOP                  (0X00000000U)  /* Sequence Still Run */
#define ENUM_ADC_ADCSEQS_SEQSTLSTAT_SEQSTOP                   (0X00000001U)  /* Sequence Has Stalled */
#define ENUM_ADC_ADCSEQS_CNVSTAT_CNVIDLE                      (0X00000000U)  /* ADC Conversion is Idle */
#define ENUM_ADC_ADCSEQS_CNVSTAT_CNVBUSY                      (0X00000001U)  /* ADC Conversion is Busy */

/* ----------------------------------------------------------------------------------------------------
          ADCSEQCH                                              Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ADC_ADCSEQCH_SEQCH                               (0U)           /* Sequence Channel Selection */
#define BITL_ADC_ADCSEQCH_SEQCH                               (30U)          /* Sequence Channel Selection */
#define BITM_ADC_ADCSEQCH_SEQCH                               (0X3FFFFFFFU)  /* Sequence Channel Selection */

/* ----------------------------------------------------------------------------------------------------
          ADCSEQCHMUX0                                          Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ADC_ADCSEQCHMUX0_DIF0                            (0U)           /* When AIN0 is P Ch. N Ch. Mux Selection in Sequencer Mode */
#define BITL_ADC_ADCSEQCHMUX0_DIF0                            (4U)           /* When AIN0 is P Ch. N Ch. Mux Selection in Sequencer Mode */
#define BITM_ADC_ADCSEQCHMUX0_DIF0                            (0X0000000FU)  /* When AIN0 is P Ch. N Ch. Mux Selection in Sequencer Mode */
#define BITP_ADC_ADCSEQCHMUX0_DIF1                            (4U)           /* When AIN1 is N Ch. P Ch. Mux Selection in Sequencer Mode */
#define BITL_ADC_ADCSEQCHMUX0_DIF1                            (1U)           /* When AIN1 is N Ch. P Ch. Mux Selection in Sequencer Mode */
#define BITM_ADC_ADCSEQCHMUX0_DIF1                            (0X00000010U)  /* When AIN1 is N Ch. P Ch. Mux Selection in Sequencer Mode */
#define BITP_ADC_ADCSEQCHMUX0_DIF2                            (5U)           /* When AIN2 is P Ch. N Ch. Mux Selection in Sequencer Mode */
#define BITL_ADC_ADCSEQCHMUX0_DIF2                            (4U)           /* When AIN2 is P Ch. N Ch. Mux Selection in Sequencer Mode */
#define BITM_ADC_ADCSEQCHMUX0_DIF2                            (0X000001E0U)  /* When AIN2 is P Ch. N Ch. Mux Selection in Sequencer Mode */
#define BITP_ADC_ADCSEQCHMUX0_DIF3                            (9U)           /* When AIN3 is N Ch. P Ch. Mux Selection in Sequencer Mode */
#define BITL_ADC_ADCSEQCHMUX0_DIF3                            (1U)           /* When AIN3 is N Ch. P Ch. Mux Selection in Sequencer Mode */
#define BITM_ADC_ADCSEQCHMUX0_DIF3                            (0X00000200U)  /* When AIN3 is N Ch. P Ch. Mux Selection in Sequencer Mode */
#define BITP_ADC_ADCSEQCHMUX0_DIF4                            (10U)          /* When AIN4 is P Ch. N Ch. Mux Selection in Sequencer Mode */
#define BITL_ADC_ADCSEQCHMUX0_DIF4                            (4U)           /* When AIN4 is P Ch. N Ch. Mux Selection in Sequencer Mode */
#define BITM_ADC_ADCSEQCHMUX0_DIF4                            (0X00003C00U)  /* When AIN4 is P Ch. N Ch. Mux Selection in Sequencer Mode */
#define BITP_ADC_ADCSEQCHMUX0_DIF5                            (14U)          /* When AIN5 is N Ch. P Ch. Mux Selection in Sequencer Mode */
#define BITL_ADC_ADCSEQCHMUX0_DIF5                            (1U)           /* When AIN5 is N Ch. P Ch. Mux Selection in Sequencer Mode */
#define BITM_ADC_ADCSEQCHMUX0_DIF5                            (0X00004000U)  /* When AIN5 is N Ch. P Ch. Mux Selection in Sequencer Mode */
#define BITP_ADC_ADCSEQCHMUX0_DIF6                            (15U)          /* When AIN6 is P Ch. N Ch. Mux Selection in Sequencer Mode */
#define BITL_ADC_ADCSEQCHMUX0_DIF6                            (4U)           /* When AIN6 is P Ch. N Ch. Mux Selection in Sequencer Mode */
#define BITM_ADC_ADCSEQCHMUX0_DIF6                            (0X00078000U)  /* When AIN6 is P Ch. N Ch. Mux Selection in Sequencer Mode */
#define BITP_ADC_ADCSEQCHMUX0_DIF7                            (19U)          /* When AIN7 is N Ch. P Ch. Mux Selection in Sequencer Mode */
#define BITL_ADC_ADCSEQCHMUX0_DIF7                            (1U)           /* When AIN7 is N Ch. P Ch. Mux Selection in Sequencer Mode */
#define BITM_ADC_ADCSEQCHMUX0_DIF7                            (0X00080000U)  /* When AIN7 is N Ch. P Ch. Mux Selection in Sequencer Mode */
#define BITP_ADC_ADCSEQCHMUX0_DIF8                            (20U)          /* When AIN8 is P Ch. N Ch. Mux Selection in Sequencer Mode */
#define BITL_ADC_ADCSEQCHMUX0_DIF8                            (4U)           /* When AIN8 is P Ch. N Ch. Mux Selection in Sequencer Mode */
#define BITM_ADC_ADCSEQCHMUX0_DIF8                            (0X00F00000U)  /* When AIN8 is P Ch. N Ch. Mux Selection in Sequencer Mode */
#define BITP_ADC_ADCSEQCHMUX0_DIF9                            (24U)          /* When AIN9 is N Ch. P Ch. Mux Selection in Sequencer Mode */
#define BITL_ADC_ADCSEQCHMUX0_DIF9                            (1U)           /* When AIN9 is N Ch. P Ch. Mux Selection in Sequencer Mode */
#define BITM_ADC_ADCSEQCHMUX0_DIF9                            (0X01000000U)  /* When AIN9 is N Ch. P Ch. Mux Selection in Sequencer Mode */
#define BITP_ADC_ADCSEQCHMUX0_DIF10                           (25U)          /* When AIN10 is P Ch. N Ch. Mux Selection in Sequencer Mode */
#define BITL_ADC_ADCSEQCHMUX0_DIF10                           (4U)           /* When AIN10 is P Ch. N Ch. Mux Selection in Sequencer Mode */
#define BITM_ADC_ADCSEQCHMUX0_DIF10                           (0X1E000000U)  /* When AIN10 is P Ch. N Ch. Mux Selection in Sequencer Mode */
#define BITP_ADC_ADCSEQCHMUX0_DIF11                           (29U)          /* When AIN11 is N Ch. P Ch. Mux Selection in Sequencer Mode */
#define BITL_ADC_ADCSEQCHMUX0_DIF11                           (1U)           /* When AIN11 is N Ch. P Ch. Mux Selection in Sequencer Mode */
#define BITM_ADC_ADCSEQCHMUX0_DIF11                           (0X20000000U)  /* When AIN11 is N Ch. P Ch. Mux Selection in Sequencer Mode */

#define ENUM_ADC_ADCSEQCHMUX0_DIF11_REFN                      (0X00000000U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF11_REFP                      (0X00000001U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF10_REFN                      (0X00000000U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF10_REFP                      (0X00000001U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF10_AIN1                      (0X00000002U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF10_AIN3                      (0X00000003U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF10_AIN5                      (0X00000004U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF10_AIN7                      (0X00000005U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF10_AIN9                      (0X00000006U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF10_AIN11                     (0X00000007U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF10_AIN13                     (0X00000008U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF10_AIN15                     (0X00000009U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF9_REFN                       (0X00000000U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF9_REFP                       (0X00000001U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF8_REFN                       (0X00000000U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF8_REFP                       (0X00000001U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF8_AIN1                       (0X00000002U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF8_AIN3                       (0X00000003U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF8_AIN5                       (0X00000004U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF8_AIN7                       (0X00000005U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF8_AIN9                       (0X00000006U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF8_AIN11                      (0X00000007U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF8_AIN13                      (0X00000008U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF8_AIN15                      (0X00000009U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF7_REFN                       (0X00000000U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF7_REFP                       (0X00000001U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF6_REFN                       (0X00000000U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF6_REFP                       (0X00000001U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF6_AIN1                       (0X00000002U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF6_AIN3                       (0X00000003U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF6_AIN5                       (0X00000004U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF6_AIN7                       (0X00000005U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF6_AIN9                       (0X00000006U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF6_AIN11                      (0X00000007U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF6_AIN13                      (0X00000008U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF6_AIN15                      (0X00000009U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF5_REFN                       (0X00000000U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF5_REFP                       (0X00000001U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF4_REFN                       (0X00000000U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF4_REFP                       (0X00000001U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF4_AIN1                       (0X00000002U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF4_AIN3                       (0X00000003U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF4_AIN5                       (0X00000004U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF4_AIN7                       (0X00000005U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF4_AIN9                       (0X00000006U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF4_AIN11                      (0X00000007U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF4_AIN13                      (0X00000008U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF4_AIN15                      (0X00000009U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF3_REFN                       (0X00000000U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF3_REFP                       (0X00000001U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF2_REFN                       (0X00000000U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF2_REFP                       (0X00000001U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF2_AIN1                       (0X00000002U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF2_AIN3                       (0X00000003U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF2_AIN5                       (0X00000004U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF2_AIN7                       (0X00000005U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF2_AIN9                       (0X00000006U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF2_AIN11                      (0X00000007U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF2_AIN13                      (0X00000008U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF2_AIN15                      (0X00000009U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF1_REFN                       (0X00000000U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF1_REFP                       (0X00000001U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF0_REFN                       (0X00000000U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF0_REFP                       (0X00000001U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF0_AIN1                       (0X00000002U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF0_AIN3                       (0X00000003U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF0_AIN5                       (0X00000004U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF0_AIN7                       (0X00000005U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF0_AIN9                       (0X00000006U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF0_AIN11                      (0X00000007U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF0_AIN13                      (0X00000008U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX0_DIF0_AIN15                      (0X00000009U)  /* No description provided */

/* ----------------------------------------------------------------------------------------------------
          ADCSEQCHMUX1                                          Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ADC_ADCSEQCHMUX1_DIF12                           (0U)           /* When AIN12 is P Ch. N Ch. Mux Selection in Sequencer Mode */
#define BITL_ADC_ADCSEQCHMUX1_DIF12                           (4U)           /* When AIN12 is P Ch. N Ch. Mux Selection in Sequencer Mode */
#define BITM_ADC_ADCSEQCHMUX1_DIF12                           (0X0000000FU)  /* When AIN12 is P Ch. N Ch. Mux Selection in Sequencer Mode */
#define BITP_ADC_ADCSEQCHMUX1_DIF13                           (4U)           /* When AIN13 is N Ch. P Ch. Mux Selection in Sequencer Mode */
#define BITL_ADC_ADCSEQCHMUX1_DIF13                           (1U)           /* When AIN13 is N Ch. P Ch. Mux Selection in Sequencer Mode */
#define BITM_ADC_ADCSEQCHMUX1_DIF13                           (0X00000010U)  /* When AIN13 is N Ch. P Ch. Mux Selection in Sequencer Mode */
#define BITP_ADC_ADCSEQCHMUX1_DIF14                           (5U)           /* When AIN14 is P Ch. N Ch. Mux Selection in Sequencer Mode */
#define BITL_ADC_ADCSEQCHMUX1_DIF14                           (4U)           /* When AIN14 is P Ch. N Ch. Mux Selection in Sequencer Mode */
#define BITM_ADC_ADCSEQCHMUX1_DIF14                           (0X000001E0U)  /* When AIN14 is P Ch. N Ch. Mux Selection in Sequencer Mode */
#define BITP_ADC_ADCSEQCHMUX1_DIF15                           (9U)           /* When AIN15 is N Ch. P Ch. Mux Selection in Sequencer Mode */
#define BITL_ADC_ADCSEQCHMUX1_DIF15                           (1U)           /* When AIN15 is N Ch. P Ch. Mux Selection in Sequencer Mode */
#define BITM_ADC_ADCSEQCHMUX1_DIF15                           (0X00000200U)  /* When AIN15 is N Ch. P Ch. Mux Selection in Sequencer Mode */

#define ENUM_ADC_ADCSEQCHMUX1_DIF15_REFN                      (0X00000000U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX1_DIF15_REFP                      (0X00000001U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX1_DIF14_REFN                      (0X00000000U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX1_DIF14_REFP                      (0X00000001U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX1_DIF14_AIN1                      (0X00000002U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX1_DIF14_AIN3                      (0X00000003U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX1_DIF14_AIN5                      (0X00000004U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX1_DIF14_AIN7                      (0X00000005U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX1_DIF14_AIN9                      (0X00000006U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX1_DIF14_AIN11                     (0X00000007U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX1_DIF14_AIN13                     (0X00000008U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX1_DIF14_AIN15                     (0X00000009U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX1_DIF13_REFN                      (0X00000000U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX1_DIF13_REFP                      (0X00000001U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX1_DIF12_REFN                      (0X00000000U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX1_DIF12_REFP                      (0X00000001U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX1_DIF12_AIN1                      (0X00000002U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX1_DIF12_AIN3                      (0X00000003U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX1_DIF12_AIN5                      (0X00000004U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX1_DIF12_AIN7                      (0X00000005U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX1_DIF12_AIN9                      (0X00000006U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX1_DIF12_AIN11                     (0X00000007U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX1_DIF12_AIN13                     (0X00000008U)  /* No description provided */
#define ENUM_ADC_ADCSEQCHMUX1_DIF12_AIN15                     (0X00000009U)  /* No description provided */

/* ----------------------------------------------------------------------------------------------------
          ADCCMP                                                Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ADC_ADCCMP_EN                                    (0U)           /* Digital Comparator Enable */
#define BITL_ADC_ADCCMP_EN                                    (1U)           /* Digital Comparator Enable */
#define BITM_ADC_ADCCMP_EN                                    (0X00000001U)  /* Digital Comparator Enable */
#define BITP_ADC_ADCCMP_CMPDIR                                (1U)           /* Select Digital Comparator Direction */
#define BITL_ADC_ADCCMP_CMPDIR                                (1U)           /* Select Digital Comparator Direction */
#define BITM_ADC_ADCCMP_CMPDIR                                (0X00000002U)  /* Select Digital Comparator Direction */
#define BITP_ADC_ADCCMP_THR                                   (2U)           /* Compare Threshold */
#define BITL_ADC_ADCCMP_THR                                   (16U)          /* Compare Threshold */
#define BITM_ADC_ADCCMP_THR                                   (0X0003FFFCU)  /* Compare Threshold */
#define BITP_ADC_ADCCMP_IRQEN                                 (18U)          /* Enable IRQ Generation */
#define BITL_ADC_ADCCMP_IRQEN                                 (1U)           /* Enable IRQ Generation */
#define BITM_ADC_ADCCMP_IRQEN                                 (0X00040000U)  /* Enable IRQ Generation */
#define BITP_ADC_ADCCMP_CH                                    (19U)          /* Channel Index for Data Comparison */
#define BITL_ADC_ADCCMP_CH                                    (5U)           /* Channel Index for Data Comparison */
#define BITM_ADC_ADCCMP_CH                                    (0X00F80000U)  /* Channel Index for Data Comparison */

/* ----------------------------------------------------------------------------------------------------
          ADCCMPIRQSTAT                                         Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ADC_ADCCMPIRQSTAT_COMP0IRQSTA                    (0U)           /* Comparator0 Interrupt Status */
#define BITL_ADC_ADCCMPIRQSTAT_COMP0IRQSTA                    (1U)           /* Comparator0 Interrupt Status */
#define BITM_ADC_ADCCMPIRQSTAT_COMP0IRQSTA                    (0X00000001U)  /* Comparator0 Interrupt Status */
#define BITP_ADC_ADCCMPIRQSTAT_COMP1IRQSTA                    (1U)           /* Comparator1 Interrupt Status */
#define BITL_ADC_ADCCMPIRQSTAT_COMP1IRQSTA                    (1U)           /* Comparator1 Interrupt Status */
#define BITM_ADC_ADCCMPIRQSTAT_COMP1IRQSTA                    (0X00000002U)  /* Comparator1 Interrupt Status */
#define BITP_ADC_ADCCMPIRQSTAT_COMP2IRQSTA                    (2U)           /* Comparator2 Interrupt Status */
#define BITL_ADC_ADCCMPIRQSTAT_COMP2IRQSTA                    (1U)           /* Comparator2 Interrupt Status */
#define BITM_ADC_ADCCMPIRQSTAT_COMP2IRQSTA                    (0X00000004U)  /* Comparator2 Interrupt Status */
#define BITP_ADC_ADCCMPIRQSTAT_COMP3IRQSTA                    (3U)           /* Comparator3 Interrupt Status */
#define BITL_ADC_ADCCMPIRQSTAT_COMP3IRQSTA                    (1U)           /* Comparator3 Interrupt Status */
#define BITM_ADC_ADCCMPIRQSTAT_COMP3IRQSTA                    (0X00000008U)  /* Comparator3 Interrupt Status */
#define BITP_ADC_ADCCMPIRQSTAT_COMP0IRQCLR                    (4U)           /* Comparator0 Interrupt Clear */
#define BITL_ADC_ADCCMPIRQSTAT_COMP0IRQCLR                    (1U)           /* Comparator0 Interrupt Clear */
#define BITM_ADC_ADCCMPIRQSTAT_COMP0IRQCLR                    (0X00000010U)  /* Comparator0 Interrupt Clear */
#define BITP_ADC_ADCCMPIRQSTAT_COMP1IRQCLR                    (5U)           /* Comparator1 Interrupt Clear */
#define BITL_ADC_ADCCMPIRQSTAT_COMP1IRQCLR                    (1U)           /* Comparator1 Interrupt Clear */
#define BITM_ADC_ADCCMPIRQSTAT_COMP1IRQCLR                    (0X00000020U)  /* Comparator1 Interrupt Clear */
#define BITP_ADC_ADCCMPIRQSTAT_COMP2IRQCLR                    (6U)           /* Comparator2 Interrupt Clear */
#define BITL_ADC_ADCCMPIRQSTAT_COMP2IRQCLR                    (1U)           /* Comparator2 Interrupt Clear */
#define BITM_ADC_ADCCMPIRQSTAT_COMP2IRQCLR                    (0X00000040U)  /* Comparator2 Interrupt Clear */
#define BITP_ADC_ADCCMPIRQSTAT_COMP3IRQCLR                    (7U)           /* Comparator3 Interrupt Clear */
#define BITL_ADC_ADCCMPIRQSTAT_COMP3IRQCLR                    (1U)           /* Comparator3 Interrupt Clear */
#define BITM_ADC_ADCCMPIRQSTAT_COMP3IRQCLR                    (0X00000080U)  /* Comparator3 Interrupt Clear */
#define BITP_ADC_ADCCMPIRQSTAT_COMP0PLACLR                    (8U)           /* Comparator0 to PLA Clear */
#define BITL_ADC_ADCCMPIRQSTAT_COMP0PLACLR                    (1U)           /* Comparator0 to PLA Clear */
#define BITM_ADC_ADCCMPIRQSTAT_COMP0PLACLR                    (0X00000100U)  /* Comparator0 to PLA Clear */
#define BITP_ADC_ADCCMPIRQSTAT_COMP1PLACLR                    (9U)           /* Comparator1 to PLA Clear */
#define BITL_ADC_ADCCMPIRQSTAT_COMP1PLACLR                    (1U)           /* Comparator1 to PLA Clear */
#define BITM_ADC_ADCCMPIRQSTAT_COMP1PLACLR                    (0X00000200U)  /* Comparator1 to PLA Clear */
#define BITP_ADC_ADCCMPIRQSTAT_COMP2PLACLR                    (10U)          /* Comparator2 to PLA Clear */
#define BITL_ADC_ADCCMPIRQSTAT_COMP2PLACLR                    (1U)           /* Comparator2 to PLA Clear */
#define BITM_ADC_ADCCMPIRQSTAT_COMP2PLACLR                    (0X00000400U)  /* Comparator2 to PLA Clear */
#define BITP_ADC_ADCCMPIRQSTAT_COMP3PLACLR                    (11U)          /* Comparator3 to PLA Clear */
#define BITL_ADC_ADCCMPIRQSTAT_COMP3PLACLR                    (1U)           /* Comparator3 to PLA Clear */
#define BITM_ADC_ADCCMPIRQSTAT_COMP3PLACLR                    (0X00000800U)  /* Comparator3 to PLA Clear */

/* ----------------------------------------------------------------------------------------------------
          ADCOFGNDIFF                                           Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ADC_ADCOFGNDIFF_GAIN                             (0U)           /* Gain Error Correction */
#define BITL_ADC_ADCOFGNDIFF_GAIN                             (15U)          /* Gain Error Correction */
#define BITM_ADC_ADCOFGNDIFF_GAIN                             (0X00007FFFU)  /* Gain Error Correction */
#define BITP_ADC_ADCOFGNDIFF_OFFSET                           (15U)          /* Offset Error Correction */
#define BITL_ADC_ADCOFGNDIFF_OFFSET                           (17U)          /* Offset Error Correction */
#define BITM_ADC_ADCOFGNDIFF_OFFSET                           (0XFFFF8000U)  /* Offset Error Correction */

/* ----------------------------------------------------------------------------------------------------
          ADCOFTEMP                                             Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ADC_ADCOFTEMP_OFFSET                             (0U)           /* Offset Error Correction */
#define BITL_ADC_ADCOFTEMP_OFFSET                             (17U)          /* Offset Error Correction */
#define BITM_ADC_ADCOFTEMP_OFFSET                             (0X0001FFFFU)  /* Offset Error Correction */

/* ----------------------------------------------------------------------------------------------------
          ADCGNTEMP                                             Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ADC_ADCGNTEMP_GAIN                               (0U)           /* Gain Error Correction */
#define BITL_ADC_ADCGNTEMP_GAIN                               (20U)          /* Gain Error Correction */
#define BITM_ADC_ADCGNTEMP_GAIN                               (0X000FFFFFU)  /* Gain Error Correction */

/* ----------------------------------------------------------------------------------------------------
          ADCOFGNPGA0                                           Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ADC_ADCOFGNPGA0_GAIN                             (0U)           /* Gain Error Correction */
#define BITL_ADC_ADCOFGNPGA0_GAIN                             (15U)          /* Gain Error Correction */
#define BITM_ADC_ADCOFGNPGA0_GAIN                             (0X00007FFFU)  /* Gain Error Correction */

/* ----------------------------------------------------------------------------------------------------
          ADCOFGNPGA1                                           Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ADC_ADCOFGNPGA1_GAIN                             (0U)           /* Gain Error Correction */
#define BITL_ADC_ADCOFGNPGA1_GAIN                             (15U)          /* Gain Error Correction */
#define BITM_ADC_ADCOFGNPGA1_GAIN                             (0X00007FFFU)  /* Gain Error Correction */

/* ----------------------------------------------------------------------------------------------------
          ADCOFGNPGA2                                           Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ADC_ADCOFGNPGA2_GAIN                             (0U)           /* Gain Error Correction */
#define BITL_ADC_ADCOFGNPGA2_GAIN                             (15U)          /* Gain Error Correction */
#define BITM_ADC_ADCOFGNPGA2_GAIN                             (0X00007FFFU)  /* Gain Error Correction */

/* ----------------------------------------------------------------------------------------------------
          ADCOFGNPGA3                                           Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ADC_ADCOFGNPGA3_GAIN                             (0U)           /* Gain Error Correction */
#define BITL_ADC_ADCOFGNPGA3_GAIN                             (15U)          /* Gain Error Correction */
#define BITM_ADC_ADCOFGNPGA3_GAIN                             (0X00007FFFU)  /* Gain Error Correction */

/* ----------------------------------------------------------------------------------------------------
          ADCOFGNPGA0TIA                                        Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ADC_ADCOFGNPGA0TIA_GAIN                          (0U)           /* Gain Error Correction */
#define BITL_ADC_ADCOFGNPGA0TIA_GAIN                          (15U)          /* Gain Error Correction */
#define BITM_ADC_ADCOFGNPGA0TIA_GAIN                          (0X00007FFFU)  /* Gain Error Correction */

/* ----------------------------------------------------------------------------------------------------
          ADCOFGNPGA1TIA                                        Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ADC_ADCOFGNPGA1TIA_GAIN                          (0U)           /* Gain Error Correction */
#define BITL_ADC_ADCOFGNPGA1TIA_GAIN                          (15U)          /* Gain Error Correction */
#define BITM_ADC_ADCOFGNPGA1TIA_GAIN                          (0X00007FFFU)  /* Gain Error Correction */

/* ----------------------------------------------------------------------------------------------------
          ADCOFGNPGA2TIA                                        Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ADC_ADCOFGNPGA2TIA_GAIN                          (0U)           /* Gain Error Correction */
#define BITL_ADC_ADCOFGNPGA2TIA_GAIN                          (15U)          /* Gain Error Correction */
#define BITM_ADC_ADCOFGNPGA2TIA_GAIN                          (0X00007FFFU)  /* Gain Error Correction */

/* ----------------------------------------------------------------------------------------------------
          ADCOFGNPGA3TIA                                        Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ADC_ADCOFGNPGA3TIA_GAIN                          (0U)           /* Gain Error Correction */
#define BITL_ADC_ADCOFGNPGA3TIA_GAIN                          (15U)          /* Gain Error Correction */
#define BITM_ADC_ADCOFGNPGA3TIA_GAIN                          (0X00007FFFU)  /* Gain Error Correction */

/* ----------------------------------------------------------------------------------------------------
          ADCCMP1                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ADC_ADCCMP1_EN                                   (0U)           /* Digital Comparator Enable */
#define BITL_ADC_ADCCMP1_EN                                   (1U)           /* Digital Comparator Enable */
#define BITM_ADC_ADCCMP1_EN                                   (0X00000001U)  /* Digital Comparator Enable */
#define BITP_ADC_ADCCMP1_CMPDIR                               (1U)           /* Select Digital Comparator Direction */
#define BITL_ADC_ADCCMP1_CMPDIR                               (1U)           /* Select Digital Comparator Direction */
#define BITM_ADC_ADCCMP1_CMPDIR                               (0X00000002U)  /* Select Digital Comparator Direction */
#define BITP_ADC_ADCCMP1_THR                                  (2U)           /* Compare Threshold */
#define BITL_ADC_ADCCMP1_THR                                  (16U)          /* Compare Threshold */
#define BITM_ADC_ADCCMP1_THR                                  (0X0003FFFCU)  /* Compare Threshold */
#define BITP_ADC_ADCCMP1_IRQEN                                (18U)          /* Enable IRQ Generation */
#define BITL_ADC_ADCCMP1_IRQEN                                (1U)           /* Enable IRQ Generation */
#define BITM_ADC_ADCCMP1_IRQEN                                (0X00040000U)  /* Enable IRQ Generation */
#define BITP_ADC_ADCCMP1_CH                                   (19U)          /* Channel Index for Data Comparison */
#define BITL_ADC_ADCCMP1_CH                                   (5U)           /* Channel Index for Data Comparison */
#define BITM_ADC_ADCCMP1_CH                                   (0X00F80000U)  /* Channel Index for Data Comparison */

/* ----------------------------------------------------------------------------------------------------
          ADCCMP2                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ADC_ADCCMP2_EN                                   (0U)           /* Digital Comparator Enable */
#define BITL_ADC_ADCCMP2_EN                                   (1U)           /* Digital Comparator Enable */
#define BITM_ADC_ADCCMP2_EN                                   (0X00000001U)  /* Digital Comparator Enable */
#define BITP_ADC_ADCCMP2_CMPDIR                               (1U)           /* Select Digital Comparator Direction */
#define BITL_ADC_ADCCMP2_CMPDIR                               (1U)           /* Select Digital Comparator Direction */
#define BITM_ADC_ADCCMP2_CMPDIR                               (0X00000002U)  /* Select Digital Comparator Direction */
#define BITP_ADC_ADCCMP2_THR                                  (2U)           /* Compare Threshold */
#define BITL_ADC_ADCCMP2_THR                                  (16U)          /* Compare Threshold */
#define BITM_ADC_ADCCMP2_THR                                  (0X0003FFFCU)  /* Compare Threshold */
#define BITP_ADC_ADCCMP2_IRQEN                                (18U)          /* Enable IRQ Generation */
#define BITL_ADC_ADCCMP2_IRQEN                                (1U)           /* Enable IRQ Generation */
#define BITM_ADC_ADCCMP2_IRQEN                                (0X00040000U)  /* Enable IRQ Generation */
#define BITP_ADC_ADCCMP2_CH                                   (19U)          /* Channel Index for Data Comparison */
#define BITL_ADC_ADCCMP2_CH                                   (5U)           /* Channel Index for Data Comparison */
#define BITM_ADC_ADCCMP2_CH                                   (0X00F80000U)  /* Channel Index for Data Comparison */

/* ----------------------------------------------------------------------------------------------------
          ADCCMP3                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_ADC_ADCCMP3_EN                                   (0U)           /* Digital Comparator Enable */
#define BITL_ADC_ADCCMP3_EN                                   (1U)           /* Digital Comparator Enable */
#define BITM_ADC_ADCCMP3_EN                                   (0X00000001U)  /* Digital Comparator Enable */
#define BITP_ADC_ADCCMP3_CMPDIR                               (1U)           /* Select Digital Comparator Direction */
#define BITL_ADC_ADCCMP3_CMPDIR                               (1U)           /* Select Digital Comparator Direction */
#define BITM_ADC_ADCCMP3_CMPDIR                               (0X00000002U)  /* Select Digital Comparator Direction */
#define BITP_ADC_ADCCMP3_THR                                  (2U)           /* Compare Threshold */
#define BITL_ADC_ADCCMP3_THR                                  (16U)          /* Compare Threshold */
#define BITM_ADC_ADCCMP3_THR                                  (0X0003FFFCU)  /* Compare Threshold */
#define BITP_ADC_ADCCMP3_IRQEN                                (18U)          /* Enable IRQ Generation */
#define BITL_ADC_ADCCMP3_IRQEN                                (1U)           /* Enable IRQ Generation */
#define BITM_ADC_ADCCMP3_IRQEN                                (0X00040000U)  /* Enable IRQ Generation */
#define BITP_ADC_ADCCMP3_CH                                   (19U)          /* Channel Index for Data Comparison */
#define BITL_ADC_ADCCMP3_CH                                   (5U)           /* Channel Index for Data Comparison */
#define BITM_ADC_ADCCMP3_CH                                   (0X00F80000U)  /* Channel Index for Data Comparison */

#endif  /* end ifndef ADC_ADDR_RDEF_H_ */


#ifndef COMP_ADDR_RDEF_H_
#define COMP_ADDR_RDEF_H_    /* COMP: Your module description, here. */

/* ====================================================================================================
        COMP Module Instances Address and Mask Definitions
   ==================================================================================================== */
#define INST_COMP                                                (0X40068A00U)    /* comp: */

#define MASK_COMP                                                (0X000001FFU)    /* COMP: Your module description, here. */

/* ====================================================================================================
        COMP Module Register Address Offset Definitions
   ==================================================================================================== */
#define IDX_COMP_COMPCON0                                       (0X000U)    /* No description provided */
#define IDX_COMP_COMPCON1                                       (0X004U)    /* No description provided */
#define IDX_COMP_COMPCON2                                       (0X008U)    /* No description provided */
#define IDX_COMP_COMPCON3                                       (0X00CU)    /* No description provided */
#define IDX_COMP_COMPIRQSTAT                                    (0X010U)    /* No description provided */

/* ====================================================================================================
        COMP Module Register ResetValue Definitions
   ==================================================================================================== */
#define RSTVAL_COMP_COMPCON0                                       (0X60) 
#define RSTVAL_COMP_COMPCON1                                       (0X60) 
#define RSTVAL_COMP_COMPCON2                                       (0X60) 
#define RSTVAL_COMP_COMPCON3                                       (0X60) 
#define RSTVAL_COMP_COMPIRQSTAT                                    (0X0) 

/* ====================================================================================================
        COMP Module Register BitPositions, Lengths, Masks and Enumerations Definitions
   ==================================================================================================== */

/* ----------------------------------------------------------------------------------------------------
          COMPCON0                                              Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_COMP_COMPCON_N__HYS                              (0U)           /* Comp Hysteresis Register */
#define BITL_COMP_COMPCON_N__HYS                              (5U)           /* Comp Hysteresis Register */
#define BITM_COMP_COMPCON_N__HYS                              (0X0000001FU)  /* Comp Hysteresis Register */
#define BITP_COMP_COMPCON_N__INV                              (7U)           /* Select Output Logic State */
#define BITL_COMP_COMPCON_N__INV                              (1U)           /* Select Output Logic State */
#define BITM_COMP_COMPCON_N__INV                              (0X00000080U)  /* Select Output Logic State */
#define BITP_COMP_COMPCON_N__OUT                              (8U)           /* Comp Interrupt Select */
#define BITL_COMP_COMPCON_N__OUT                              (2U)           /* Comp Interrupt Select */
#define BITM_COMP_COMPCON_N__OUT                              (0X00000300U)  /* Comp Interrupt Select */
#define BITP_COMP_COMPCON_N__INNEG                            (10U)          /* Select Comparator Negative Input Source */
#define BITL_COMP_COMPCON_N__INNEG                            (3U)           /* Select Comparator Negative Input Source */
#define BITM_COMP_COMPCON_N__INNEG                            (0X00001C00U)  /* Select Comparator Negative Input Source */
#define BITP_COMP_COMPCON_N__INPOS                            (13U)          /* Select Comparator Positive Input Source */
#define BITL_COMP_COMPCON_N__INPOS                            (3U)           /* Select Comparator Positive Input Source */
#define BITM_COMP_COMPCON_N__INPOS                            (0X0000E000U)  /* Select Comparator Positive Input Source */
#define BITP_COMP_COMPCON_N__HYSTYP                           (16U)          /* Select Hysteresis Type */
#define BITL_COMP_COMPCON_N__HYSTYP                           (1U)           /* Select Hysteresis Type */
#define BITM_COMP_COMPCON_N__HYSTYP                           (0X00010000U)  /* Select Hysteresis Type */
#define BITP_COMP_COMPCON_N__EN                               (17U)          /* Enable Comparator */
#define BITL_COMP_COMPCON_N__EN                               (1U)           /* Enable Comparator */
#define BITM_COMP_COMPCON_N__EN                               (0X00020000U)  /* Enable Comparator */
#define BITP_COMP_COMPCON_N__INTEN                            (18U)          /* Interrupt Enable */
#define BITL_COMP_COMPCON_N__INTEN                            (1U)           /* Interrupt Enable */
#define BITM_COMP_COMPCON_N__INTEN                            (0X00040000U)  /* Interrupt Enable */
#define BITP_COMP_COMPCON_N__INTMODE                          (19U)          /* Interrupt Mode */
#define BITL_COMP_COMPCON_N__INTMODE                          (2U)           /* Interrupt Mode */
#define BITM_COMP_COMPCON_N__INTMODE                          (0X00180000U)  /* Interrupt Mode */

#define ENUM_COMP_COMPCON_N__INTMODE_RISEEDGE                 (0X00000000U)  /* Generate Interrupt if Rising Edge Happens */
#define ENUM_COMP_COMPCON_N__INTMODE_FALLEDGE                 (0X00000001U)  /* Generate Interrupt if Falling Edge Happens */
#define ENUM_COMP_COMPCON_N__INTMODE_LOWLEVEL                 (0X00000002U)  /* Generate Interrupt if Low Level Happens */
#define ENUM_COMP_COMPCON_N__INTMODE_HIGHLEVEL                (0X00000003U)  /* Generate Interrupt if High Level Happens */
#define ENUM_COMP_COMPCON_N__HYSTYP_EXTHYS                    (0X00000000U)  /* Select External Hysteresis */
#define ENUM_COMP_COMPCON_N__HYSTYP_INTHYS                    (0X00000001U)  /* Select Internal Hysteresis */
#define ENUM_COMP_COMPCON_N__INPOS_NO_INPUT                   (0X00000000U)  /* All Input Switches Off */
#define ENUM_COMP_COMPCON_N__INPOS_AINXP                      (0X00000001U)  /* Enable AIN8/10/12/14 for comp 0/1/2/3 */
#define ENUM_COMP_COMPCON_N__INPOS_PGAIN                      (0X00000002U)  /* Enable PGA0/1/2/3 for comp 0/1/2/3 */
#define ENUM_COMP_COMPCON_N__INPOS_GPIO_ANAIN                 (0X00000003U)  /* Enable GPIO0.6/0.7/2.0/2.1 Analog Signal Input for comp 0/1/2/3 */
#define ENUM_COMP_COMPCON_N__INNEG_NO_INPUT                   (0X00000000U)  /* All Input Switches Off */
#define ENUM_COMP_COMPCON_N__INNEG_AHIDIV2IN                  (0X00000001U)  /* Enable Half Avdd Input */
#define ENUM_COMP_COMPCON_N__INNEG_AINXN                      (0X00000002U)  /* Enable AIN9/11/13/15 for Comp 0/1/2/3 */
#define ENUM_COMP_COMPCON_N__INNEG_VDAC8IN                    (0X00000003U)  /* Enable VDAC8 Input */
#define ENUM_COMP_COMPCON_N__INNEG_VDAC9IN                    (0X00000004U)  /* Enable VDAC9 Input */
#define ENUM_COMP_COMPCON_N__INNEG_VDAC10IN                   (0X00000005U)  /* Enable VDAC10 Input */
#define ENUM_COMP_COMPCON_N__INNEG_VDAC11IN                   (0X00000006U)  /* Enable VDAC11 Input */
#define ENUM_COMP_COMPCON_N__INNEG_V1P25REFIN                 (0X00000007U)  /* Enable 1.25V Ref Input from AIN15(BUF1) */
#define ENUM_COMP_COMPCON_N__OUT_DIS00                        (0X00000000U)  /* Output to Test Pad Disable */
#define ENUM_COMP_COMPCON_N__OUT_DIS01                        (0X00000001U)  /* Output to Test Pad Disable */
#define ENUM_COMP_COMPCON_N__OUT_EN10                         (0X00000002U)  /* Output to Test Pad Enable */
#define ENUM_COMP_COMPCON_N__OUT_DIS11                        (0X00000003U)  /* Output to Test Pad Disable */
#define ENUM_COMP_COMPCON_N__INV_NOM                          (0X00000000U)  /* Output is High if +ve is higher than -ve input */
#define ENUM_COMP_COMPCON_N__INV_COV                          (0X00000001U)  /* Output is High if -ve is higher than +ve input */
#define ENUM_COMP_COMPCON_N__HYS_DIS                          (0X00000000U)  /* hysteresis disabled */
#define ENUM_COMP_COMPCON_N__HYS_EN10MV                       (0X00000001U)  /* 10mv hysteresis enabled */
#define ENUM_COMP_COMPCON_N__HYS_EN25MV                       (0X00000002U)  /* 25mv hysteresis */
#define ENUM_COMP_COMPCON_N__HYS_EN35MV                       (0X00000003U)  /* 35mv hysteresis */
#define ENUM_COMP_COMPCON_N__HYS_EN50MV                       (0X00000006U)  /* 50mv hysteresis */
#define ENUM_COMP_COMPCON_N__HYS_EN60MV                       (0X00000007U)  /* 60mv hysteresis */
#define ENUM_COMP_COMPCON_N__HYS_EN75MV                       (0X0000000CU)  /* 75mv hysteresis */
#define ENUM_COMP_COMPCON_N__HYS_EN85MV                       (0X0000000DU)  /* 85mv hysteresis */
#define ENUM_COMP_COMPCON_N__HYS_EN100MV                      (0X0000000EU)  /* 100mv hysteresis */
#define ENUM_COMP_COMPCON_N__HYS_EN110MV                      (0X00000011U)  /* 110mv hysteresis */
#define ENUM_COMP_COMPCON_N__HYS_EN125MV                      (0X00000012U)  /* 125mv hysteresis */
#define ENUM_COMP_COMPCON_N__HYS_EN135MV                      (0X00000013U)  /* 135mv hysteresis */
#define ENUM_COMP_COMPCON_N__HYS_EN150MV                      (0X00000016U)  /* 150mv hysteresis */
#define ENUM_COMP_COMPCON_N__HYS_EN160MV                      (0X00000017U)  /* 160mv hysteresis */
#define ENUM_COMP_COMPCON_N__HYS_EN175MV                      (0X0000001CU)  /* 175mv hysteresis */
#define ENUM_COMP_COMPCON_N__HYS_EN185MV                      (0X0000001DU)  /* 185mv hysteresis */
#define ENUM_COMP_COMPCON_N__HYS_EN200MV                      (0X0000001EU)  /* 200mv hysteresis */
#define ENUM_COMP_COMPCON_N__HYS_EN210MV                      (0X0000001FU)  /* 210mv hysteresis */

/* ----------------------------------------------------------------------------------------------------
          COMPIRQSTAT                                           Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_COMP_COMPIRQSTAT_COMP0                           (0U)           /* Comparator 0 Interrupt Status */
#define BITL_COMP_COMPIRQSTAT_COMP0                           (1U)           /* Comparator 0 Interrupt Status */
#define BITM_COMP_COMPIRQSTAT_COMP0                           (0X00000001U)  /* Comparator 0 Interrupt Status */
#define BITP_COMP_COMPIRQSTAT_COMP1                           (1U)           /* Comparator 1 Interrupt Status */
#define BITL_COMP_COMPIRQSTAT_COMP1                           (1U)           /* Comparator 1 Interrupt Status */
#define BITM_COMP_COMPIRQSTAT_COMP1                           (0X00000002U)  /* Comparator 1 Interrupt Status */
#define BITP_COMP_COMPIRQSTAT_COMP2                           (2U)           /* Comparator 2 Interrupt Status */
#define BITL_COMP_COMPIRQSTAT_COMP2                           (1U)           /* Comparator 2 Interrupt Status */
#define BITM_COMP_COMPIRQSTAT_COMP2                           (0X00000004U)  /* Comparator 2 Interrupt Status */
#define BITP_COMP_COMPIRQSTAT_COMP3                           (3U)           /* Comparator 3 Interrupt Status */
#define BITL_COMP_COMPIRQSTAT_COMP3                           (1U)           /* Comparator 3 Interrupt Status */
#define BITM_COMP_COMPIRQSTAT_COMP3                           (0X00000008U)  /* Comparator 3 Interrupt Status */

#endif  /* end ifndef COMP_ADDR_RDEF_H_ */


#ifndef OSC_MMRS_ADDR_RDEF_H_
#define OSC_MMRS_ADDR_RDEF_H_    /* OSC_MMRS: Your module description, here. */

/* ====================================================================================================
        OSC_MMRS Module Instances Address and Mask Definitions
   ==================================================================================================== */
#define INST_OSC                                                 (0X40068E00U)    /* osc: */

#define MASK_OSC_MMRS                                            (0X000001FFU)    /* OSC_MMRS: Your module description, here. */

/* ====================================================================================================
        OSC_MMRS Module Register Address Offset Definitions
   ==================================================================================================== */
#define IDX_OSC_MMRS_HFOSCCTRL                                  (0X004U)    /* No description provided */
#define IDX_OSC_MMRS_HFXTALCTRL                                 (0X018U)    /* No description provided */

/* ====================================================================================================
        OSC_MMRS Module Register ResetValue Definitions
   ==================================================================================================== */
#define RSTVAL_OSC_MMRS_HFOSCCTRL                                  (0X0) 
#define RSTVAL_OSC_MMRS_HFXTALCTRL                                 (0X2) 

/* ====================================================================================================
        OSC_MMRS Module Register BitPositions, Lengths, Masks and Enumerations Definitions
   ==================================================================================================== */

/* ----------------------------------------------------------------------------------------------------
          HFOSCCTRL                                             Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_OSC_MMRS_HFOSCCTRL_CLKSEL                        (0U)           /* Selects Either Xtal RC */
#define BITL_OSC_MMRS_HFOSCCTRL_CLKSEL                        (2U)           /* Selects Either Xtal RC */
#define BITM_OSC_MMRS_HFOSCCTRL_CLKSEL                        (0X00000003U)  /* Selects Either Xtal RC */
#define BITP_OSC_MMRS_HFOSCCTRL_PDOSC16M                      (2U)           /* Power Down Pin Oscillator */
#define BITL_OSC_MMRS_HFOSCCTRL_PDOSC16M                      (1U)           /* Power Down Pin Oscillator */
#define BITM_OSC_MMRS_HFOSCCTRL_PDOSC16M                      (0X00000004U)  /* Power Down Pin Oscillator */

#define ENUM_OSC_MMRS_HFOSCCTRL_CLKSEL_SELRC                  (0X00000000U)  /* RC clock */
#define ENUM_OSC_MMRS_HFOSCCTRL_CLKSEL_SELXTAL                (0X00000001U)  /* Xtal clock */
#define ENUM_OSC_MMRS_HFOSCCTRL_CLKSEL_SELEXT                 (0X00000002U)  /* External Clock */
#define ENUM_OSC_MMRS_HFOSCCTRL_CLKSEL_SELGND                 (0X00000003U)  /* gnd */

/* ----------------------------------------------------------------------------------------------------
          HFXTALCTRL                                            Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_OSC_MMRS_HFXTALCTRL_ENXTAL                       (0U)           /* Enable Xtal */
#define BITL_OSC_MMRS_HFXTALCTRL_ENXTAL                       (1U)           /* Enable Xtal */
#define BITM_OSC_MMRS_HFXTALCTRL_ENXTAL                       (0X00000001U)  /* Enable Xtal */

#endif  /* end ifndef OSC_MMRS_ADDR_RDEF_H_ */


#ifndef PGA_ADDR_RDEF_H_
#define PGA_ADDR_RDEF_H_    /* PGA: Your module description, here. */

/* ====================================================================================================
        PGA Module Instances Address and Mask Definitions
   ==================================================================================================== */
#define INST_PGA                                                 (0X40069000U)    /* pga: */

#define MASK_PGA                                                 (0X000001FFU)    /* PGA: Your module description, here. */

/* ====================================================================================================
        PGA Module Register Address Offset Definitions
   ==================================================================================================== */
#define IDX_PGA_PGABIASCON                                      (0X000U)    /* PGA Bias Circuit Control Signal */
#define IDX_PGA_PGA0CON                                         (0X020U)    /* PGA0 Control Register */
#define IDX_PGA_PGA0CHPCON                                      (0X024U)    /* PGA0 Chop Function Ctrl */
#define IDX_PGA_PGA3CHPCON                                      (0X028U)    /* PGA3 Chop Function Ctrl */
#define IDX_PGA_PGA1CON                                         (0X070U)    /* PGA1 Control Register */
#define IDX_PGA_PGA1CHPCON                                      (0X074U)    /* PGA1 Chop Function Ctrl */
#define IDX_PGA_PGA2CON                                         (0X0A0U)    /* PGA2 Control Register */
#define IDX_PGA_PGA2CHPCON                                      (0X0A4U)    /* PGA2 Chop Function Ctrl */
#define IDX_PGA_PGA3CON                                         (0X0D0U)    /* PGA3 Control Register */

/* ====================================================================================================
        PGA Module Register ResetValue Definitions
   ==================================================================================================== */
#define RSTVAL_PGA_PGABIASCON                                      (0X3F) 
#define RSTVAL_PGA_PGA0CON                                         (0X19) 
#define RSTVAL_PGA_PGA0CHPCON                                      (0X1) 
#define RSTVAL_PGA_PGA3CHPCON                                      (0X1) 
#define RSTVAL_PGA_PGA1CON                                         (0X11) 
#define RSTVAL_PGA_PGA1CHPCON                                      (0X1) 
#define RSTVAL_PGA_PGA2CON                                         (0X19) 
#define RSTVAL_PGA_PGA2CHPCON                                      (0X1) 
#define RSTVAL_PGA_PGA3CON                                         (0X11) 

/* ====================================================================================================
        PGA Module Register BitPositions, Lengths, Masks and Enumerations Definitions
   ==================================================================================================== */

/* ----------------------------------------------------------------------------------------------------
          PGABIASCON                                            Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PGA_PGABIASCON_PD0BUF0P2                         (0U)           /* Buf_200mv Power Down */
#define BITL_PGA_PGABIASCON_PD0BUF0P2                         (1U)           /* Buf_200mv Power Down */
#define BITM_PGA_PGABIASCON_PD0BUF0P2                         (0X00000001U)  /* Buf_200mv Power Down */
#define BITP_PGA_PGABIASCON_PD1BUF0P2                         (1U)           /* Buf_200mv Power Down */
#define BITL_PGA_PGABIASCON_PD1BUF0P2                         (1U)           /* Buf_200mv Power Down */
#define BITM_PGA_PGABIASCON_PD1BUF0P2                         (0X00000002U)  /* Buf_200mv Power Down */
#define BITP_PGA_PGABIASCON_PD0BUF1P25                        (2U)           /* BUF1P25 Power Down */
#define BITL_PGA_PGABIASCON_PD0BUF1P25                        (1U)           /* BUF1P25 Power Down */
#define BITM_PGA_PGABIASCON_PD0BUF1P25                        (0X00000004U)  /* BUF1P25 Power Down */
#define BITP_PGA_PGABIASCON_PD1BUF1P25                        (3U)           /* BUF1P25 Power Down */
#define BITL_PGA_PGABIASCON_PD1BUF1P25                        (1U)           /* BUF1P25 Power Down */
#define BITM_PGA_PGABIASCON_PD1BUF1P25                        (0X00000008U)  /* BUF1P25 Power Down */
#define BITP_PGA_PGABIASCON_PD2BUF1P25                        (4U)           /* BUF1P25 Power Down */
#define BITL_PGA_PGABIASCON_PD2BUF1P25                        (1U)           /* BUF1P25 Power Down */
#define BITM_PGA_PGABIASCON_PD2BUF1P25                        (0X00000010U)  /* BUF1P25 Power Down */
#define BITP_PGA_PGABIASCON_PD3BUF1P25                        (5U)           /* BUF1P25 Power Down */
#define BITL_PGA_PGABIASCON_PD3BUF1P25                        (1U)           /* BUF1P25 Power Down */
#define BITM_PGA_PGABIASCON_PD3BUF1P25                        (0X00000020U)  /* BUF1P25 Power Down */

#define ENUM_PGA_PGABIASCON_PD3BUF1P25_ENABLE                 (0X00000000U)  /* BUF1p25 Enable */
#define ENUM_PGA_PGABIASCON_PD3BUF1P25_OFF                    (0X00000001U)  /* BUF1p25 Power Down */
#define ENUM_PGA_PGABIASCON_PD2BUF1P25_ENABLE                 (0X00000000U)  /* BUF1p25 Enable */
#define ENUM_PGA_PGABIASCON_PD2BUF1P25_OFF                    (0X00000001U)  /* BUF1p25 Power Down */
#define ENUM_PGA_PGABIASCON_PD1BUF1P25_ENABLE                 (0X00000000U)  /* BUF1p25 Enable */
#define ENUM_PGA_PGABIASCON_PD1BUF1P25_OFF                    (0X00000001U)  /* BUF1p25 Power Down */
#define ENUM_PGA_PGABIASCON_PD0BUF1P25_ENABLE                 (0X00000000U)  /* BUF1p25 Enable */
#define ENUM_PGA_PGABIASCON_PD0BUF1P25_OFF                    (0X00000001U)  /* BUF1p25 Power Down */
#define ENUM_PGA_PGABIASCON_PD1BUF0P2_ENABLE                  (0X00000000U)  /* Buf_200mV Enable */
#define ENUM_PGA_PGABIASCON_PD1BUF0P2_OFF                     (0X00000001U)  /* Buf_200mv Power Down */
#define ENUM_PGA_PGABIASCON_PD0BUF0P2_ENABLE                  (0X00000000U)  /* Buf_200mV Enable */
#define ENUM_PGA_PGABIASCON_PD0BUF0P2_OFF                     (0X00000001U)  /* Buf_200mv Power Down */

/* ----------------------------------------------------------------------------------------------------
          PGA0CON                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PGA_PGA0CON_PDPGACORE                            (0U)           /* PGA Core Power Down */
#define BITL_PGA_PGA0CON_PDPGACORE                            (1U)           /* PGA Core Power Down */
#define BITM_PGA_PGA0CON_PDPGACORE                            (0X00000001U)  /* PGA Core Power Down */
#define BITP_PGA_PGA0CON_MODE                                 (1U)           /* PGA or TIA Mode Selection */
#define BITL_PGA_PGA0CON_MODE                                 (1U)           /* PGA or TIA Mode Selection */
#define BITM_PGA_PGA0CON_MODE                                 (0X00000002U)  /* PGA or TIA Mode Selection */
#define BITP_PGA_PGA0CON_PGAMODE                              (2U)           /* PGA DC Mode or AC Couple Mode Selection */
#define BITL_PGA_PGA0CON_PGAMODE                              (1U)           /* PGA DC Mode or AC Couple Mode Selection */
#define BITM_PGA_PGA0CON_PGAMODE                              (0X00000004U)  /* PGA DC Mode or AC Couple Mode Selection */
#define BITP_PGA_PGA0CON_CAPBYPASS                            (3U)           /* Bypass the External Cap */
#define BITL_PGA_PGA0CON_CAPBYPASS                            (1U)           /* Bypass the External Cap */
#define BITM_PGA_PGA0CON_CAPBYPASS                            (0X00000008U)  /* Bypass the External Cap */
#define BITP_PGA_PGA0CON_PGAGAIN                              (5U)           /* PGA Gain Configuration */
#define BITL_PGA_PGA0CON_PGAGAIN                              (3U)           /* PGA Gain Configuration */
#define BITM_PGA_PGA0CON_PGAGAIN                              (0X000000E0U)  /* PGA Gain Configuration */
#define BITP_PGA_PGA0CON_TIAGAIN                              (8U)           /* TIA Gain Configuration */
#define BITL_PGA_PGA0CON_TIAGAIN                              (3U)           /* TIA Gain Configuration */
#define BITM_PGA_PGA0CON_TIAGAIN                              (0X00000700U)  /* TIA Gain Configuration */
#define BITP_PGA_PGA0CON_TIAVDACSEL                           (11U)          /* TIA Vbias Selection of VDAC Channel */
#define BITL_PGA_PGA0CON_TIAVDACSEL                           (2U)           /* TIA Vbias Selection of VDAC Channel */
#define BITM_PGA_PGA0CON_TIAVDACSEL                           (0X00001800U)  /* TIA Vbias Selection of VDAC Channel */
#define BITP_PGA_PGA0CON_DRVEN                                (14U)          /* Sink Current Ability Improve */
#define BITL_PGA_PGA0CON_DRVEN                                (1U)           /* Sink Current Ability Improve */
#define BITM_PGA_PGA0CON_DRVEN                                (0X00004000U)  /* Sink Current Ability Improve */
#define BITP_PGA_PGA0CON_TIASRCEN                             (15U)          /* Select Between Source Mode and Sink Mode */
#define BITL_PGA_PGA0CON_TIASRCEN                             (1U)           /* Select Between Source Mode and Sink Mode */
#define BITM_PGA_PGA0CON_TIASRCEN                             (0X00008000U)  /* Select Between Source Mode and Sink Mode */

#define ENUM_PGA_PGA0CON_TIASRCEN_SINKMD                      (0X00000000U)  /* Sink Mode */
#define ENUM_PGA_PGA0CON_TIASRCEN_SOURCEMD                    (0X00000001U)  /* Source Mode */
#define ENUM_PGA_PGA0CON_DRVEN_DRVDISABLE                     (0X00000000U)  /* Disable Isink Ability Improvement, Normal Drive */
#define ENUM_PGA_PGA0CON_DRVEN_DRVENABLE                      (0X00000001U)  /* Enable Isink Ability Improvement */
#define ENUM_PGA_PGA0CON_TIAVDACSEL_VDAC8SEL                  (0X00000000U)  /* Select VDAC8 as TIA Vbias */
#define ENUM_PGA_PGA0CON_TIAVDACSEL_VDAC9SEL                  (0X00000001U)  /* Select VDAC9 as TIA Vbias */
#define ENUM_PGA_PGA0CON_TIAVDACSEL_VDAC10SEL                 (0X00000002U)  /* Select VDAC10 as TIA Vbias */
#define ENUM_PGA_PGA0CON_TIAVDACSEL_VDAC11SEL                 (0X00000003U)  /* Select VDAC11 as TIA Vbias */
#define ENUM_PGA_PGA0CON_TIAGAIN_RES250                       (0X00000000U)  /* TIARES=250ohm */
#define ENUM_PGA_PGA0CON_TIAGAIN_RES750                       (0X00000001U)  /* TIARES=750ohm */
#define ENUM_PGA_PGA0CON_TIAGAIN_RES2K                        (0X00000002U)  /* TIARES=2kohm */
#define ENUM_PGA_PGA0CON_TIAGAIN_RES5K                        (0X00000003U)  /* TIARES=5kohm */
#define ENUM_PGA_PGA0CON_TIAGAIN_RES10K                       (0X00000004U)  /* TIARES=10kohm */
#define ENUM_PGA_PGA0CON_TIAGAIN_RES20K                       (0X00000005U)  /* TIARES=20kohm */
#define ENUM_PGA_PGA0CON_TIAGAIN_RES100K                      (0X00000006U)  /* TIARES=100kohm */
#define ENUM_PGA_PGA0CON_PGAGAIN_GAIN1                        (0X00000000U)  /* Gain=1 */
#define ENUM_PGA_PGA0CON_PGAGAIN_GAIN2                        (0X00000001U)  /* GAIN=2 */
#define ENUM_PGA_PGA0CON_PGAGAIN_GAIN4                        (0X00000002U)  /* GAIN=4 */
#define ENUM_PGA_PGA0CON_PGAGAIN_GAIN6                        (0X00000003U)  /* GAIN=6 */
#define ENUM_PGA_PGA0CON_PGAGAIN_GAIN8                        (0X00000004U)  /* GAIN=8 */
#define ENUM_PGA_PGA0CON_PGAGAIN_GAIN10                       (0X00000005U)  /* GAIN=10 */
#define ENUM_PGA_PGA0CON_CAPBYPASS_BYPEN                      (0X00000001U)  /* Bypass the External Cap */
#define ENUM_PGA_PGA0CON_CAPBYPASS_BYPDISABLE                 (0X00000000U)  /* Select the External CAP */
#define ENUM_PGA_PGA0CON_PGAMODE_DCCOUPLE                     (0X00000000U)  /* PGA DC Mode Enable */
#define ENUM_PGA_PGA0CON_PGAMODE_ACCOUPLE                     (0X00000001U)  /* PGA AC Coupling Mode Enable */
#define ENUM_PGA_PGA0CON_MODE_PGAMODE                         (0X00000000U)  /* PGA Mode Enable */
#define ENUM_PGA_PGA0CON_MODE_TIAMODE                         (0X00000001U)  /* TIA Mode Enable */

/* ----------------------------------------------------------------------------------------------------
          PGA0CHPCON                                            Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PGA_PGA0CHPCON_CHOPOFF                           (0U)           /* Disable Chop Function */
#define BITL_PGA_PGA0CHPCON_CHOPOFF                           (1U)           /* Disable Chop Function */
#define BITM_PGA_PGA0CHPCON_CHOPOFF                           (0X00000001U)  /* Disable Chop Function */

#define ENUM_PGA_PGA0CHPCON_CHOPOFF_CHOPEN                    (0X00000000U)  /* Enable Chop Function */
#define ENUM_PGA_PGA0CHPCON_CHOPOFF_CHOPDIS                   (0X00000001U)  /* Disable Chop Function */

/* ----------------------------------------------------------------------------------------------------
          PGA3CHPCON                                            Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PGA_PGA3CHPCON_CHOPOFF                           (0U)           /* Disable Chop Function */
#define BITL_PGA_PGA3CHPCON_CHOPOFF                           (1U)           /* Disable Chop Function */
#define BITM_PGA_PGA3CHPCON_CHOPOFF                           (0X00000001U)  /* Disable Chop Function */

#define ENUM_PGA_PGA3CHPCON_CHOPOFF_CHOPEN                    (0X00000000U)  /* Enable Chop Function */
#define ENUM_PGA_PGA3CHPCON_CHOPOFF_CHOPDIS                   (0X00000001U)  /* Disable Chop Function */

/* ----------------------------------------------------------------------------------------------------
          PGA1CON                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PGA_PGA1CON_PDPGACORE                            (0U)           /* PGA Core Power Down */
#define BITL_PGA_PGA1CON_PDPGACORE                            (1U)           /* PGA Core Power Down */
#define BITM_PGA_PGA1CON_PDPGACORE                            (0X00000001U)  /* PGA Core Power Down */
#define BITP_PGA_PGA1CON_MODE                                 (1U)           /* PGA or TIA Mode Selection */
#define BITL_PGA_PGA1CON_MODE                                 (1U)           /* PGA or TIA Mode Selection */
#define BITM_PGA_PGA1CON_MODE                                 (0X00000002U)  /* PGA or TIA Mode Selection */
#define BITP_PGA_PGA1CON_PGAMODE                              (2U)           /* PGA DC Mode or AC Couple Mode Selection */
#define BITL_PGA_PGA1CON_PGAMODE                              (1U)           /* PGA DC Mode or AC Couple Mode Selection */
#define BITM_PGA_PGA1CON_PGAMODE                              (0X00000004U)  /* PGA DC Mode or AC Couple Mode Selection */
#define BITP_PGA_PGA1CON_PGAGAIN                              (5U)           /* PGA Gain Configuration */
#define BITL_PGA_PGA1CON_PGAGAIN                              (3U)           /* PGA Gain Configuration */
#define BITM_PGA_PGA1CON_PGAGAIN                              (0X000000E0U)  /* PGA Gain Configuration */
#define BITP_PGA_PGA1CON_TIAGAIN                              (8U)           /* TIA Gain Configuration */
#define BITL_PGA_PGA1CON_TIAGAIN                              (3U)           /* TIA Gain Configuration */
#define BITM_PGA_PGA1CON_TIAGAIN                              (0X00000700U)  /* TIA Gain Configuration */
#define BITP_PGA_PGA1CON_TIAVDACSEL                           (11U)          /* TIA Vbias Selection of VDAC Channel */
#define BITL_PGA_PGA1CON_TIAVDACSEL                           (2U)           /* TIA Vbias Selection of VDAC Channel */
#define BITM_PGA_PGA1CON_TIAVDACSEL                           (0X00001800U)  /* TIA Vbias Selection of VDAC Channel */
#define BITP_PGA_PGA1CON_DRVEN                                (14U)          /* Sink Current Ability Improve */
#define BITL_PGA_PGA1CON_DRVEN                                (1U)           /* Sink Current Ability Improve */
#define BITM_PGA_PGA1CON_DRVEN                                (0X00004000U)  /* Sink Current Ability Improve */
#define BITP_PGA_PGA1CON_TIASRCEN                             (15U)          /* Select Between Source Mode and Sink Mode */
#define BITL_PGA_PGA1CON_TIASRCEN                             (1U)           /* Select Between Source Mode and Sink Mode */
#define BITM_PGA_PGA1CON_TIASRCEN                             (0X00008000U)  /* Select Between Source Mode and Sink Mode */

#define ENUM_PGA_PGA1CON_TIASRCEN_SINKMD                      (0X00000000U)  /* Sink Mode */
#define ENUM_PGA_PGA1CON_TIASRCEN_SOURCEMD                    (0X00000001U)  /* Source Mode */
#define ENUM_PGA_PGA1CON_DRVEN_DRVDISABLE                     (0X00000000U)  /* Disable Isink Ability Improvement, Normal Drive */
#define ENUM_PGA_PGA1CON_DRVEN_DRVENABLE                      (0X00000001U)  /* Enable Isink Ability Improvement */
#define ENUM_PGA_PGA1CON_TIAVDACSEL_VDAC8SEL                  (0X00000000U)  /* Select VDAC8 as TIA Vbias */
#define ENUM_PGA_PGA1CON_TIAVDACSEL_VDAC9SEL                  (0X00000001U)  /* Select VDAC9 as TIA Vbias */
#define ENUM_PGA_PGA1CON_TIAVDACSEL_VDAC10SEL                 (0X00000002U)  /* Select VDAC10 as TIA Vbias */
#define ENUM_PGA_PGA1CON_TIAVDACSEL_VDAC11SEL                 (0X00000003U)  /* Select VDAC11 as TIA Vbias */
#define ENUM_PGA_PGA1CON_TIAGAIN_RES250                       (0X00000000U)  /* TIARES=250ohm */
#define ENUM_PGA_PGA1CON_TIAGAIN_RES750                       (0X00000001U)  /* TIARES=750ohm */
#define ENUM_PGA_PGA1CON_TIAGAIN_RES2K                        (0X00000002U)  /* TIARES=2kohm */
#define ENUM_PGA_PGA1CON_TIAGAIN_RES5K                        (0X00000003U)  /* TIARES=5kohm */
#define ENUM_PGA_PGA1CON_TIAGAIN_RES10K                       (0X00000004U)  /* TIARES=10kohm */
#define ENUM_PGA_PGA1CON_TIAGAIN_RES20K                       (0X00000005U)  /* TIARES=20kohm */
#define ENUM_PGA_PGA1CON_TIAGAIN_RES100K                      (0X00000006U)  /* TIARES=100kohm */
#define ENUM_PGA_PGA1CON_PGAGAIN_GAIN1                        (0X00000000U)  /* Gain=1 */
#define ENUM_PGA_PGA1CON_PGAGAIN_GAIN2                        (0X00000001U)  /* GAIN=2 */
#define ENUM_PGA_PGA1CON_PGAGAIN_GAIN4                        (0X00000002U)  /* GAIN=4 */
#define ENUM_PGA_PGA1CON_PGAGAIN_GAIN6                        (0X00000003U)  /* GAIN=6 */
#define ENUM_PGA_PGA1CON_PGAGAIN_GAIN8                        (0X00000004U)  /* GAIN=8 */
#define ENUM_PGA_PGA1CON_PGAGAIN_GAIN10                       (0X00000005U)  /* GAIN=10 */
#define ENUM_PGA_PGA1CON_PGAMODE_DCCOUPLE                     (0X00000000U)  /* PGA DC Mode Enable */
#define ENUM_PGA_PGA1CON_PGAMODE_ACCOUPLE                     (0X00000001U)  /* PGA AC Coupling Mode Enable */
#define ENUM_PGA_PGA1CON_MODE_PGAMODE                         (0X00000000U)  /* PGA Mode Enable */
#define ENUM_PGA_PGA1CON_MODE_TIAMODE                         (0X00000001U)  /* TIA Mode Enable */

/* ----------------------------------------------------------------------------------------------------
          PGA1CHPCON                                            Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PGA_PGA1CHPCON_CHOPOFF                           (0U)           /* Disable Chop Function */
#define BITL_PGA_PGA1CHPCON_CHOPOFF                           (1U)           /* Disable Chop Function */
#define BITM_PGA_PGA1CHPCON_CHOPOFF                           (0X00000001U)  /* Disable Chop Function */

#define ENUM_PGA_PGA1CHPCON_CHOPOFF_CHOPEN                    (0X00000000U)  /* Enable Chop Function */
#define ENUM_PGA_PGA1CHPCON_CHOPOFF_CHOPDIS                   (0X00000001U)  /* Disable Chop Function */

/* ----------------------------------------------------------------------------------------------------
          PGA2CON                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PGA_PGA2CON_PDPGACORE                            (0U)           /* PGA Core Power Down */
#define BITL_PGA_PGA2CON_PDPGACORE                            (1U)           /* PGA Core Power Down */
#define BITM_PGA_PGA2CON_PDPGACORE                            (0X00000001U)  /* PGA Core Power Down */
#define BITP_PGA_PGA2CON_MODE                                 (1U)           /* PGA or TIA Mode Selection */
#define BITL_PGA_PGA2CON_MODE                                 (1U)           /* PGA or TIA Mode Selection */
#define BITM_PGA_PGA2CON_MODE                                 (0X00000002U)  /* PGA or TIA Mode Selection */
#define BITP_PGA_PGA2CON_PGAMODE                              (2U)           /* PGA DC Mode or AC Couple Mode Selection */
#define BITL_PGA_PGA2CON_PGAMODE                              (1U)           /* PGA DC Mode or AC Couple Mode Selection */
#define BITM_PGA_PGA2CON_PGAMODE                              (0X00000004U)  /* PGA DC Mode or AC Couple Mode Selection */
#define BITP_PGA_PGA2CON_CAPBYPASS                            (3U)           /* Bypass the External Cap */
#define BITL_PGA_PGA2CON_CAPBYPASS                            (1U)           /* Bypass the External Cap */
#define BITM_PGA_PGA2CON_CAPBYPASS                            (0X00000008U)  /* Bypass the External Cap */
#define BITP_PGA_PGA2CON_PGAGAIN                              (5U)           /* PGA Gain Configuration */
#define BITL_PGA_PGA2CON_PGAGAIN                              (3U)           /* PGA Gain Configuration */
#define BITM_PGA_PGA2CON_PGAGAIN                              (0X000000E0U)  /* PGA Gain Configuration */
#define BITP_PGA_PGA2CON_TIAGAIN                              (8U)           /* TIA Gain Configuration */
#define BITL_PGA_PGA2CON_TIAGAIN                              (3U)           /* TIA Gain Configuration */
#define BITM_PGA_PGA2CON_TIAGAIN                              (0X00000700U)  /* TIA Gain Configuration */
#define BITP_PGA_PGA2CON_TIAVDACSEL                           (11U)          /* TIA Vbias Selection of VDAC Channel */
#define BITL_PGA_PGA2CON_TIAVDACSEL                           (2U)           /* TIA Vbias Selection of VDAC Channel */
#define BITM_PGA_PGA2CON_TIAVDACSEL                           (0X00001800U)  /* TIA Vbias Selection of VDAC Channel */
#define BITP_PGA_PGA2CON_DRVEN                                (14U)          /* Sink Current Ability Improve */
#define BITL_PGA_PGA2CON_DRVEN                                (1U)           /* Sink Current Ability Improve */
#define BITM_PGA_PGA2CON_DRVEN                                (0X00004000U)  /* Sink Current Ability Improve */
#define BITP_PGA_PGA2CON_TIASRCEN                             (15U)          /* Select Between Source Mode and Sink Mode */
#define BITL_PGA_PGA2CON_TIASRCEN                             (1U)           /* Select Between Source Mode and Sink Mode */
#define BITM_PGA_PGA2CON_TIASRCEN                             (0X00008000U)  /* Select Between Source Mode and Sink Mode */

#define ENUM_PGA_PGA2CON_TIASRCEN_SINKMD                      (0X00000000U)  /* Sink Mode */
#define ENUM_PGA_PGA2CON_TIASRCEN_SOURCEMD                    (0X00000001U)  /* Source Mode */
#define ENUM_PGA_PGA2CON_DRVEN_DRVDISABLE                     (0X00000000U)  /* Disable Isink Ability Improvement, Normal Drive */
#define ENUM_PGA_PGA2CON_DRVEN_DRVENABLE                      (0X00000001U)  /* Enable Isink Ability Improvement */
#define ENUM_PGA_PGA2CON_TIAVDACSEL_VDAC8SEL                  (0X00000000U)  /* Select VDAC8 as TIA Vbias */
#define ENUM_PGA_PGA2CON_TIAVDACSEL_VDAC9SEL                  (0X00000001U)  /* Select VDAC9 as TIA Vbias */
#define ENUM_PGA_PGA2CON_TIAVDACSEL_VDAC10SEL                 (0X00000002U)  /* Select VDAC10 as TIA Vbias */
#define ENUM_PGA_PGA2CON_TIAVDACSEL_VDAC11SEL                 (0X00000003U)  /* Select VDAC11 as TIA Vbias */
#define ENUM_PGA_PGA2CON_TIAGAIN_RES250                       (0X00000000U)  /* TIARES=250ohm */
#define ENUM_PGA_PGA2CON_TIAGAIN_RES750                       (0X00000001U)  /* TIARES=750ohm */
#define ENUM_PGA_PGA2CON_TIAGAIN_RES2K                        (0X00000002U)  /* TIARES=2kohm */
#define ENUM_PGA_PGA2CON_TIAGAIN_RES5K                        (0X00000003U)  /* TIARES=5kohm */
#define ENUM_PGA_PGA2CON_TIAGAIN_RES10K                       (0X00000004U)  /* TIARES=10kohm */
#define ENUM_PGA_PGA2CON_TIAGAIN_RES20K                       (0X00000005U)  /* TIARES=20kohm */
#define ENUM_PGA_PGA2CON_TIAGAIN_RES100K                      (0X00000006U)  /* TIARES=100kohm */
#define ENUM_PGA_PGA2CON_PGAGAIN_GAIN1                        (0X00000000U)  /* Gain=1 */
#define ENUM_PGA_PGA2CON_PGAGAIN_GAIN2                        (0X00000001U)  /* GAIN=2 */
#define ENUM_PGA_PGA2CON_PGAGAIN_GAIN4                        (0X00000002U)  /* GAIN=4 */
#define ENUM_PGA_PGA2CON_PGAGAIN_GAIN6                        (0X00000003U)  /* GAIN=6 */
#define ENUM_PGA_PGA2CON_PGAGAIN_GAIN8                        (0X00000004U)  /* GAIN=8 */
#define ENUM_PGA_PGA2CON_PGAGAIN_GAIN10                       (0X00000005U)  /* GAIN=10 */
#define ENUM_PGA_PGA2CON_CAPBYPASS_BYPEN                      (0X00000001U)  /* Bypass the External Cap */
#define ENUM_PGA_PGA2CON_CAPBYPASS_BYPDISABLE                 (0X00000000U)  /* Select the External CAP */
#define ENUM_PGA_PGA2CON_PGAMODE_DCCOUPLE                     (0X00000000U)  /* PGA DC Mode Enable */
#define ENUM_PGA_PGA2CON_PGAMODE_ACCOUPLE                     (0X00000001U)  /* PGA AC Coupling Mode Enable */
#define ENUM_PGA_PGA2CON_MODE_PGAMODE                         (0X00000000U)  /* PGA Mode Enable */
#define ENUM_PGA_PGA2CON_MODE_TIAMODE                         (0X00000001U)  /* TIA Mode Enable */

/* ----------------------------------------------------------------------------------------------------
          PGA2CHPCON                                            Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PGA_PGA2CHPCON_CHOPOFF                           (0U)           /* Disable Chop Function */
#define BITL_PGA_PGA2CHPCON_CHOPOFF                           (1U)           /* Disable Chop Function */
#define BITM_PGA_PGA2CHPCON_CHOPOFF                           (0X00000001U)  /* Disable Chop Function */

#define ENUM_PGA_PGA2CHPCON_CHOPOFF_CHOPEN                    (0X00000000U)  /* Enable Chop Function */
#define ENUM_PGA_PGA2CHPCON_CHOPOFF_CHOPDIS                   (0X00000001U)  /* Disable Chop Function */

/* ----------------------------------------------------------------------------------------------------
          PGA3CON                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PGA_PGA3CON_PDPGACORE                            (0U)           /* PGA Core Power Down */
#define BITL_PGA_PGA3CON_PDPGACORE                            (1U)           /* PGA Core Power Down */
#define BITM_PGA_PGA3CON_PDPGACORE                            (0X00000001U)  /* PGA Core Power Down */
#define BITP_PGA_PGA3CON_MODE                                 (1U)           /* PGA or TIA Mode Selection */
#define BITL_PGA_PGA3CON_MODE                                 (1U)           /* PGA or TIA Mode Selection */
#define BITM_PGA_PGA3CON_MODE                                 (0X00000002U)  /* PGA or TIA Mode Selection */
#define BITP_PGA_PGA3CON_PGAMODE                              (2U)           /* PGA DC Mode or AC Couple Mode Selection */
#define BITL_PGA_PGA3CON_PGAMODE                              (1U)           /* PGA DC Mode or AC Couple Mode Selection */
#define BITM_PGA_PGA3CON_PGAMODE                              (0X00000004U)  /* PGA DC Mode or AC Couple Mode Selection */
#define BITP_PGA_PGA3CON_PGAGAIN                              (5U)           /* PGA Gain Configuration */
#define BITL_PGA_PGA3CON_PGAGAIN                              (3U)           /* PGA Gain Configuration */
#define BITM_PGA_PGA3CON_PGAGAIN                              (0X000000E0U)  /* PGA Gain Configuration */
#define BITP_PGA_PGA3CON_TIAGAIN                              (8U)           /* TIA Gain Configuration */
#define BITL_PGA_PGA3CON_TIAGAIN                              (3U)           /* TIA Gain Configuration */
#define BITM_PGA_PGA3CON_TIAGAIN                              (0X00000700U)  /* TIA Gain Configuration */
#define BITP_PGA_PGA3CON_TIAVDACSEL                           (11U)          /* TIA Vbias Selection of VDAC Channel */
#define BITL_PGA_PGA3CON_TIAVDACSEL                           (2U)           /* TIA Vbias Selection of VDAC Channel */
#define BITM_PGA_PGA3CON_TIAVDACSEL                           (0X00001800U)  /* TIA Vbias Selection of VDAC Channel */
#define BITP_PGA_PGA3CON_DRVEN                                (14U)          /* Sink Current Ability Improve */
#define BITL_PGA_PGA3CON_DRVEN                                (1U)           /* Sink Current Ability Improve */
#define BITM_PGA_PGA3CON_DRVEN                                (0X00004000U)  /* Sink Current Ability Improve */
#define BITP_PGA_PGA3CON_TIASRCEN                             (15U)          /* Select Between Source Mode and Sink Mode */
#define BITL_PGA_PGA3CON_TIASRCEN                             (1U)           /* Select Between Source Mode and Sink Mode */
#define BITM_PGA_PGA3CON_TIASRCEN                             (0X00008000U)  /* Select Between Source Mode and Sink Mode */

#define ENUM_PGA_PGA3CON_TIASRCEN_SINKMD                      (0X00000000U)  /* Sink Mode */
#define ENUM_PGA_PGA3CON_TIASRCEN_SOURCEMD                    (0X00000001U)  /* Source Mode */
#define ENUM_PGA_PGA3CON_DRVEN_DRVDISABLE                     (0X00000000U)  /* Disable Isink Ability Improvement, Normal Drive */
#define ENUM_PGA_PGA3CON_DRVEN_DRVENABLE                      (0X00000001U)  /* Enable Isink Ability Improvement */
#define ENUM_PGA_PGA3CON_TIAVDACSEL_VDAC8SEL                  (0X00000000U)  /* Select VDAC8 as TIA Vbias */
#define ENUM_PGA_PGA3CON_TIAVDACSEL_VDAC9SEL                  (0X00000001U)  /* Select VDAC9 as TIA Vbias */
#define ENUM_PGA_PGA3CON_TIAVDACSEL_VDAC10SEL                 (0X00000002U)  /* Select VDAC10 as TIA Vbias */
#define ENUM_PGA_PGA3CON_TIAVDACSEL_VDAC11SEL                 (0X00000003U)  /* Select VDAC11 as TIA Vbias */
#define ENUM_PGA_PGA3CON_TIAGAIN_RES250                       (0X00000000U)  /* TIARES=250ohm */
#define ENUM_PGA_PGA3CON_TIAGAIN_RES750                       (0X00000001U)  /* TIARES=750ohm */
#define ENUM_PGA_PGA3CON_TIAGAIN_RES2K                        (0X00000002U)  /* TIARES=2kohm */
#define ENUM_PGA_PGA3CON_TIAGAIN_RES5K                        (0X00000003U)  /* TIARES=5kohm */
#define ENUM_PGA_PGA3CON_TIAGAIN_RES10K                       (0X00000004U)  /* TIARES=10kohm */
#define ENUM_PGA_PGA3CON_TIAGAIN_RES20K                       (0X00000005U)  /* TIARES=20kohm */
#define ENUM_PGA_PGA3CON_TIAGAIN_RES100K                      (0X00000006U)  /* TIARES=100kohm */
#define ENUM_PGA_PGA3CON_PGAGAIN_GAIN1                        (0X00000000U)  /* Gain=1 */
#define ENUM_PGA_PGA3CON_PGAGAIN_GAIN2                        (0X00000001U)  /* GAIN=2 */
#define ENUM_PGA_PGA3CON_PGAGAIN_GAIN4                        (0X00000002U)  /* GAIN=4 */
#define ENUM_PGA_PGA3CON_PGAGAIN_GAIN6                        (0X00000003U)  /* GAIN=6 */
#define ENUM_PGA_PGA3CON_PGAGAIN_GAIN8                        (0X00000004U)  /* GAIN=8 */
#define ENUM_PGA_PGA3CON_PGAGAIN_GAIN10                       (0X00000005U)  /* GAIN=10 */
#define ENUM_PGA_PGA3CON_PGAMODE_DCCOUPLE                     (0X00000000U)  /* PGA DC Mode Enable */
#define ENUM_PGA_PGA3CON_PGAMODE_ACCOUPLE                     (0X00000001U)  /* PGA AC Coupling Mode Enable */
#define ENUM_PGA_PGA3CON_MODE_PGAMODE                         (0X00000000U)  /* PGA Mode Enable */
#define ENUM_PGA_PGA3CON_MODE_TIAMODE                         (0X00000001U)  /* TIA Mode Enable */

#endif  /* end ifndef PGA_ADDR_RDEF_H_ */


#ifndef PLL_MMRS_ADDR_RDEF_H_
#define PLL_MMRS_ADDR_RDEF_H_    /* PLL_MMRS: Your module description, here. */

/* ====================================================================================================
        PLL_MMRS Module Instances Address and Mask Definitions
   ==================================================================================================== */
#define INST_PLL                                                 (0X40069200U)    /* pll: */

#define MASK_PLL_MMRS                                            (0X000001FFU)    /* PLL_MMRS: Your module description, here. */

/* ====================================================================================================
        PLL_MMRS Module Register Address Offset Definitions
   ==================================================================================================== */
#define IDX_PLL_MMRS_PLLPDCTRL                                  (0X000U)    /* No description provided */

/* ====================================================================================================
        PLL_MMRS Module Register ResetValue Definitions
   ==================================================================================================== */
#define RSTVAL_PLL_MMRS_PLLPDCTRL                                  (0X3F) 

/* ====================================================================================================
        PLL_MMRS Module Register BitPositions, Lengths, Masks and Enumerations Definitions
   ==================================================================================================== */

/* ----------------------------------------------------------------------------------------------------
          PLLPDCTRL                                             Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_PLL_MMRS_PLLPDCTRL_TOTPDB                        (6U)           /* PDB of PLL All */
#define BITL_PLL_MMRS_PLLPDCTRL_TOTPDB                        (1U)           /* PDB of PLL All */
#define BITM_PLL_MMRS_PLLPDCTRL_TOTPDB                        (0X00000040U)  /* PDB of PLL All */

#endif  /* end ifndef PLL_MMRS_ADDR_RDEF_H_ */


#ifndef VCM_MMRS_ADDR_RDEF_H_
#define VCM_MMRS_ADDR_RDEF_H_    /* VCM_MMRS: Your module description, here. */

/* ====================================================================================================
        VCM_MMRS Module Instances Address and Mask Definitions
   ==================================================================================================== */
#define INST_TMPSNS                                              (0X40069600U)    /* tmpsns: */

#define MASK_VCM_MMRS                                            (0X000001FFU)    /* VCM_MMRS: Your module description, here. */

/* ====================================================================================================
        VCM_MMRS Module Register Address Offset Definitions
   ==================================================================================================== */
#define IDX_VCM_MMRS_TMPSNSCON                                  (0X000U)    /* No description provided */
#define IDX_VCM_MMRS_TMPSNSCHPCON                               (0X004U)    /* No description provided */
#define IDX_VCM_MMRS_VCMREFCON                                  (0X008U)    /* No description provided */
#define IDX_VCM_MMRS_VCMBUFCON                                  (0X010U)    /* No description provided */

/* ====================================================================================================
        VCM_MMRS Module Register ResetValue Definitions
   ==================================================================================================== */
#define RSTVAL_VCM_MMRS_TMPSNSCON                                  (0X2) 
#define RSTVAL_VCM_MMRS_TMPSNSCHPCON                               (0X0) 
#define RSTVAL_VCM_MMRS_VCMREFCON                                  (0X0) 
#define RSTVAL_VCM_MMRS_VCMBUFCON                                  (0X13) 

/* ====================================================================================================
        VCM_MMRS Module Register BitPositions, Lengths, Masks and Enumerations Definitions
   ==================================================================================================== */

/* ----------------------------------------------------------------------------------------------------
          TMPSNSCON                                             Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_VCM_MMRS_TMPSNSCON_ENTMPSNS                      (1U)           /* Enable Temp Sensor */
#define BITL_VCM_MMRS_TMPSNSCON_ENTMPSNS                      (1U)           /* Enable Temp Sensor */
#define BITM_VCM_MMRS_TMPSNSCON_ENTMPSNS                      (0X00000002U)  /* Enable Temp Sensor */

/* ----------------------------------------------------------------------------------------------------
          TMPSNSCHPCON                                          Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_VCM_MMRS_TMPSNSCHPCON_CHOFFTMPSNS                (0U)           /* Chopping Disable = 1 Enable = 0 */
#define BITL_VCM_MMRS_TMPSNSCHPCON_CHOFFTMPSNS                (1U)           /* Chopping Disable = 1 Enable = 0 */
#define BITM_VCM_MMRS_TMPSNSCHPCON_CHOFFTMPSNS                (0X00000001U)  /* Chopping Disable = 1 Enable = 0 */

/* ----------------------------------------------------------------------------------------------------
          VCMREFCON                                             Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_VCM_MMRS_VCMREFCON_PGAREFSEL                     (1U)           /* 0.2V or 0.5V Selection for PGA */
#define BITL_VCM_MMRS_VCMREFCON_PGAREFSEL                     (1U)           /* 0.2V or 0.5V Selection for PGA */
#define BITM_VCM_MMRS_VCMREFCON_PGAREFSEL                     (0X00000002U)  /* 0.2V or 0.5V Selection for PGA */

#define ENUM_VCM_MMRS_VCMREFCON_PGAREFSEL_SEL0P2V             (0X00000000U)  /* Select 0.2V Reference */
#define ENUM_VCM_MMRS_VCMREFCON_PGAREFSEL_SEL0P5V             (0X00000001U)  /* Select 0.5V Reference */

/* ----------------------------------------------------------------------------------------------------
          VCMBUFCON                                             Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_VCM_MMRS_VCMBUFCON_PDBUF0                        (0U)           /* Power Down Unit Gain Buffer0 */
#define BITL_VCM_MMRS_VCMBUFCON_PDBUF0                        (1U)           /* Power Down Unit Gain Buffer0 */
#define BITM_VCM_MMRS_VCMBUFCON_PDBUF0                        (0X00000001U)  /* Power Down Unit Gain Buffer0 */
#define BITP_VCM_MMRS_VCMBUFCON_PDBUF1                        (1U)           /* Power Down Unit Gain Buffer1 */
#define BITL_VCM_MMRS_VCMBUFCON_PDBUF1                        (1U)           /* Power Down Unit Gain Buffer1 */
#define BITM_VCM_MMRS_VCMBUFCON_PDBUF1                        (0X00000002U)  /* Power Down Unit Gain Buffer1 */
#define BITP_VCM_MMRS_VCMBUFCON_MUXSEL0                       (2U)           /* Selection 0=2.5V 1=1.25V */
#define BITL_VCM_MMRS_VCMBUFCON_MUXSEL0                       (1U)           /* Selection 0=2.5V 1=1.25V */
#define BITM_VCM_MMRS_VCMBUFCON_MUXSEL0                       (0X00000004U)  /* Selection 0=2.5V 1=1.25V */
#define BITP_VCM_MMRS_VCMBUFCON_MUXSEL1                       (4U)           /* Selection 0=2.5V 1=1.25V */
#define BITL_VCM_MMRS_VCMBUFCON_MUXSEL1                       (1U)           /* Selection 0=2.5V 1=1.25V */
#define BITM_VCM_MMRS_VCMBUFCON_MUXSEL1                       (0X00000010U)  /* Selection 0=2.5V 1=1.25V */

#define ENUM_VCM_MMRS_VCMBUFCON_MUXSEL1_BUF1_2P5              (0X00000000U)  /* Buffer1 Input 2.5V */
#define ENUM_VCM_MMRS_VCMBUFCON_MUXSEL1_BUF1_1P25             (0X00000001U)  /* Buffer1 Input 1.25V */
#define ENUM_VCM_MMRS_VCMBUFCON_MUXSEL0_BUF0_2P5              (0X00000000U)  /* Input Buffer0 2.5V */
#define ENUM_VCM_MMRS_VCMBUFCON_MUXSEL0_BUF0_1P25             (0X00000001U)  /* Input Buffer0 1.25V */

#endif  /* end ifndef VCM_MMRS_ADDR_RDEF_H_ */


#ifndef DAC_ADDR_RDEF_H_
#define DAC_ADDR_RDEF_H_    /* DAC: Your module description, here. */

/* ====================================================================================================
        DAC Module Instances Address and Mask Definitions
   ==================================================================================================== */
#define INST_VDAC                                                (0X40069800U)    /* vdac: */

#define MASK_DAC                                                 (0X000001FFU)    /* DAC: Your module description, here. */

/* ====================================================================================================
        DAC Module Register Address Offset Definitions
   ==================================================================================================== */
#define IDX_DAC_DACCON0                                         (0X000U)    /* DAC Control Register */
#define IDX_DAC_DACCON1                                         (0X004U)    /* DAC Control Register */
#define IDX_DAC_DACCON2                                         (0X008U)    /* DAC Control Register */
#define IDX_DAC_DACCON3                                         (0X00CU)    /* DAC Control Register */
#define IDX_DAC_DACCON4                                         (0X010U)    /* DAC Control Register */
#define IDX_DAC_DACCON5                                         (0X014U)    /* DAC Control Register */
#define IDX_DAC_DACCON6                                         (0X018U)    /* DAC Control Register */
#define IDX_DAC_DACCON7                                         (0X01CU)    /* DAC Control Register */
#define IDX_DAC_DACCON8                                         (0X020U)    /* DAC Control Register */
#define IDX_DAC_DACCON9                                         (0X024U)    /* DAC Control Register */
#define IDX_DAC_DACCON10                                        (0X028U)    /* DAC Control Register */
#define IDX_DAC_DACCON11                                        (0X02CU)    /* DAC Control Register */
#define IDX_DAC_DACDAT0                                         (0X030U)    /* DAC Data Register */
#define IDX_DAC_DACDAT1                                         (0X034U)    /* DAC Data Register */
#define IDX_DAC_DACDAT2                                         (0X038U)    /* DAC Data Register */
#define IDX_DAC_DACDAT3                                         (0X03CU)    /* DAC Data Register */
#define IDX_DAC_DACDAT4                                         (0X040U)    /* DAC Data Register */
#define IDX_DAC_DACDAT5                                         (0X044U)    /* DAC Data Register */
#define IDX_DAC_DACDAT6                                         (0X048U)    /* DAC Data Register */
#define IDX_DAC_DACDAT7                                         (0X04CU)    /* DAC Data Register */
#define IDX_DAC_DACDAT8                                         (0X050U)    /* DAC Data Register */
#define IDX_DAC_DACDAT9                                         (0X054U)    /* DAC Data Register */
#define IDX_DAC_DACDAT10                                        (0X058U)    /* DAC Data Register */
#define IDX_DAC_DACDAT11                                        (0X05CU)    /* DAC Data Register */

/* ====================================================================================================
        DAC Module Register ResetValue Definitions
   ==================================================================================================== */
#define RSTVAL_DAC_DACCON0                                         (0XD02) 
#define RSTVAL_DAC_DACCON1                                         (0XD02) 
#define RSTVAL_DAC_DACCON2                                         (0XD02) 
#define RSTVAL_DAC_DACCON3                                         (0XD02) 
#define RSTVAL_DAC_DACCON4                                         (0XD02) 
#define RSTVAL_DAC_DACCON5                                         (0XD02) 
#define RSTVAL_DAC_DACCON6                                         (0XD02) 
#define RSTVAL_DAC_DACCON7                                         (0XD02) 
#define RSTVAL_DAC_DACCON8                                         (0XD02) 
#define RSTVAL_DAC_DACCON9                                         (0XD02) 
#define RSTVAL_DAC_DACCON10                                        (0XD02) 
#define RSTVAL_DAC_DACCON11                                        (0XD02) 
#define RSTVAL_DAC_DACDAT0                                         (0X0) 
#define RSTVAL_DAC_DACDAT1                                         (0X0) 
#define RSTVAL_DAC_DACDAT2                                         (0X0) 
#define RSTVAL_DAC_DACDAT3                                         (0X0) 
#define RSTVAL_DAC_DACDAT4                                         (0X0) 
#define RSTVAL_DAC_DACDAT5                                         (0X0) 
#define RSTVAL_DAC_DACDAT6                                         (0X0) 
#define RSTVAL_DAC_DACDAT7                                         (0X0) 
#define RSTVAL_DAC_DACDAT8                                         (0X0) 
#define RSTVAL_DAC_DACDAT9                                         (0X0) 
#define RSTVAL_DAC_DACDAT10                                        (0X0) 
#define RSTVAL_DAC_DACDAT11                                        (0X0) 

/* ====================================================================================================
        DAC Module Register BitPositions, Lengths, Masks and Enumerations Definitions
   ==================================================================================================== */

/* ----------------------------------------------------------------------------------------------------
          DACCON0                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_DAC_DACCON_N__EN                                 (4U)           /* DAC Input Data Clear, Won't Be Controlled by Sync Mode. */
#define BITL_DAC_DACCON_N__EN                                 (1U)           /* DAC Input Data Clear, Won't Be Controlled by Sync Mode. */
#define BITM_DAC_DACCON_N__EN                                 (0X00000010U)  /* DAC Input Data Clear, Won't Be Controlled by Sync Mode. */
#define BITP_DAC_DACCON_N__FSLVL                              (5U)           /* Select Output Full Scale */
#define BITL_DAC_DACCON_N__FSLVL                              (1U)           /* Select Output Full Scale */
#define BITM_DAC_DACCON_N__FSLVL                              (0X00000020U)  /* Select Output Full Scale */
#define BITP_DAC_DACCON_N__PD                                 (8U)           /* DAC Top Power Down */
#define BITL_DAC_DACCON_N__PD                                 (1U)           /* DAC Top Power Down */
#define BITM_DAC_DACCON_N__PD                                 (0X00000100U)  /* DAC Top Power Down */
#define BITP_DAC_DACCON_N__DRV                                (9U)           /* Drive Ability Boost Enable, Can Drive 10mA Load. */
#define BITL_DAC_DACCON_N__DRV                                (1U)           /* Drive Ability Boost Enable, Can Drive 10mA Load. */
#define BITM_DAC_DACCON_N__DRV                                (0X00000200U)  /* Drive Ability Boost Enable, Can Drive 10mA Load. */

#define ENUM_DAC_DACCON_N__DRV_NORMAL                         (0X00000000U)  /* Normal Work Mode */
#define ENUM_DAC_DACCON_N__DRV_DRIVEBOOST                     (0X00000001U)  /* Drive Ability Boost Mode */
#define ENUM_DAC_DACCON_N__PD_DACON                           (0X00000000U)  /* DAC Top Enable */
#define ENUM_DAC_DACCON_N__PD_DACOFF                          (0X00000001U)  /* DAC TOP Power Down */
#define ENUM_DAC_DACCON_N__FSLVL_OUT2P5                       (0X00000000U)  /* Full Scale is 2.5V */
#define ENUM_DAC_DACCON_N__FSLVL_OUT3V3                       (0X00000001U)  /* Full Scale is 3.3V */
#define ENUM_DAC_DACCON_N__EN_CLEAR                           (0X00000000U)  /* DAC DATA Clear */
#define ENUM_DAC_DACCON_N__EN_CLEAROFF                        (0X00000001U)  /* DAC DATA Normal Input */

/* ----------------------------------------------------------------------------------------------------
          DACDAT0                                               Value             Description
   ---------------------------------------------------------------------------------------------------- */
#define BITP_DAC_DACDAT_N__DATAIN                             (12U)          /* DAC Input Data */
#define BITL_DAC_DACDAT_N__DATAIN                             (16U)          /* DAC Input Data */
#define BITM_DAC_DACDAT_N__DATAIN                             (0X0FFFF000U)  /* DAC Input Data */

#endif  /* end ifndef DAC_ADDR_RDEF_H_ */

/*! ========================================================================
 *  \struct ADI_TMR_TypeDef
 *  \brief GPT0
 *  ======================================================================== */
typedef struct _ADI_TMR_TypeDef
{
    volatile       uint16_t LD;                              /**< 0 16-bit Load Value Register */
    volatile const uint8_t RESERVED0[2];                   
    volatile const uint16_t VAL;                             /**< 4 16-bit Timer Value Register */
    volatile const uint8_t RESERVED1[2];                   
    volatile       uint16_t CON;                             /**< 8 Control Register */
    volatile const uint8_t RESERVED2[2];                   
    volatile       uint16_t CLRI;                            /**< C Clear Interrupt Register */
    volatile const uint8_t RESERVED3[14];                  
    volatile const uint16_t STA;                             /**< 1C Status Register */
} ADI_TMR_TypeDef;

/*! ========================================================================
 *  \struct ADI_TIMER_TypeDef
 *  \brief Timer
 *  ======================================================================== */
typedef struct _ADI_TIMER_TypeDef
{
    volatile       uint32_t CTL;                             /**< 0 Timer Control */
    volatile       uint32_t CNT;                             /**< 4 Count Value */
    volatile       uint32_t STATUS;                          /**< 8 Timer Status */
    volatile const uint8_t RESERVED0[4];                   
    volatile       uint32_t CFG0;                            /**< 10 Capture Compare Configuration */
    volatile       uint32_t CFG1;                            /**< 14 Capture Compare Configuration */
    volatile       uint32_t CFG2;                            /**< 18 Capture Compare Configuration */
    volatile       uint32_t CFG3;                            /**< 1C Capture Compare Configuration */
    volatile       uint32_t CC0;                             /**< 20 Compare and Capture Value */
    volatile       uint32_t CC1;                             /**< 24 Compare and Capture Value */
    volatile       uint32_t CC2;                             /**< 28 Compare and Capture Value */
    volatile       uint32_t CC3;                             /**< 2C Compare and Capture Value */
} ADI_TIMER_TypeDef;

/*! ========================================================================
 *  \struct ADI_MISC16_TypeDef
 *  \brief Your module description, here.
 *  ======================================================================== */
typedef struct _ADI_MISC16_TypeDef
{
    volatile const uint8_t RESERVED0[32];                  
    volatile const uint32_t ADIID;                           /**< 20 ADI ID */
    volatile const uint32_t CHIPID;                          /**< 24 Chip ID */
    volatile const uint8_t RESERVED1[268];                 
    volatile       uint32_t USERKEY;                         /**< 134 Open to Customer to Protect Important Registers */
} ADI_MISC16_TypeDef;

/*! ========================================================================
 *  \struct ADI_WUT_TypeDef
 *  \brief WUT
 *  ======================================================================== */
typedef struct _ADI_WUT_TypeDef
{
    volatile const uint16_t T4VAL0;                          /**< 0 Current Count Value - LS 16 Bits */
    volatile const uint8_t RESERVED0[2];                   
    volatile const uint16_t T4VAL1;                          /**< 4 Current Count Value - MS 16 Bits */
    volatile const uint8_t RESERVED1[2];                   
    volatile       uint16_t T4CON;                           /**< 8 Control Register */
    volatile const uint8_t RESERVED2[2];                   
    volatile       uint16_t T4INC;                           /**< C 12-bit Interval for Wakeup Field a */
    volatile const uint8_t RESERVED3[2];                   
    volatile       uint16_t T4WUFB0;                         /**< 10 Wakeup Field B - LS 16 Bits */
    volatile const uint8_t RESERVED4[2];                   
    volatile       uint16_t T4WUFB1;                         /**< 14 Wakeup Field B - MS 16 Bits */
    volatile const uint8_t RESERVED5[2];                   
    volatile       uint16_t T4WUFC0;                         /**< 18 Wakeup Field C - LS 16 Bits */
    volatile const uint8_t RESERVED6[2];                   
    volatile       uint16_t T4WUFC1;                         /**< 1C Wakeup Field C - MS 16 Bits */
    volatile const uint8_t RESERVED7[2];                   
    volatile       uint16_t T4WUFD0;                         /**< 20 Wakeup Field D - LS 16 Bits */
    volatile const uint8_t RESERVED8[2];                   
    volatile       uint16_t T4WUFD1;                         /**< 24 Wakeup Field D - MS 16 Bits */
    volatile const uint8_t RESERVED9[2];                   
    volatile       uint16_t T4IEN;                           /**< 28 Interrupt Enable Register */
    volatile const uint8_t RESERVED10[2];                  
    volatile const uint16_t T4STA;                           /**< 2C Status Register */
    volatile const uint8_t RESERVED11[2];                  
    volatile       uint16_t T4CLRI;                          /**< 30 Clear Interrupt Register */
    volatile const uint8_t RESERVED12[10];                 
    volatile       uint16_t T4WUFA0;                         /**< 3C Wakeup Field a - LS 16 Bits */
    volatile const uint8_t RESERVED13[2];                  
    volatile       uint16_t T4WUFA1;                         /**< 40 Wakeup Field a - MS 16 Bits */
} ADI_WUT_TypeDef;

/*! ========================================================================
 *  \struct ADI_WDT_TypeDef
 *  \brief Watchdog Timer Register Map
 *  ======================================================================== */
typedef struct _ADI_WDT_TypeDef
{
    volatile       uint16_t LD;                              /**< 0 Watchdog Timer Load Value */
    volatile const uint8_t RESERVED0[2];                   
    volatile const uint16_t VALS;                            /**< 4 Current Count Value */
    volatile const uint8_t RESERVED1[2];                   
    volatile       uint16_t CON;                             /**< 8 Watchdog Timer Control Register */
    volatile const uint8_t RESERVED2[2];                   
    volatile       uint16_t CLRI;                            /**< C Refresh Watchdog Register */
    volatile const uint8_t RESERVED3[10];                  
    volatile const uint16_t STA;                             /**< 18 Timer Status */
    volatile const uint8_t RESERVED4[2];                   
    volatile       uint16_t MINLD;                           /**< 1C Minimum Load Value */
} ADI_WDT_TypeDef;

/*! ========================================================================
 *  \struct ADI_ALWAYS_ON_TypeDef
 *  \brief Always on clock, reset, power management and test
 *  ======================================================================== */
typedef struct _ADI_ALWAYS_ON_TypeDef
{
    volatile       uint16_t PWRMOD;                          /**< 0 Power Modes */
    volatile const uint8_t RESERVED0[2];                   
    volatile       uint16_t PWRKEY;                          /**< 4 Key Protection for PWRMOD */
    volatile const uint8_t RESERVED1[2];                   
    volatile       uint16_t RSTCFG;                          /**< 8 Reset Configuration */
    volatile const uint8_t RESERVED2[2];                   
    volatile       uint16_t RSTKEY;                          /**< C Key Protection for RSTCFG */
    volatile const uint8_t RESERVED3[18];                  
    volatile       uint16_t EI0CFG;                          /**< 20 External Interrupt Configuration 0 */
    volatile const uint8_t RESERVED4[2];                   
    volatile       uint16_t EI1CFG;                          /**< 24 External Interrupt Configuration 1 */
    volatile const uint8_t RESERVED5[2];                   
    volatile       uint16_t EI2CFG;                          /**< 28 External Interrupt Configuration 2 */
    volatile const uint8_t RESERVED6[6];                   
    volatile       uint16_t EICLR;                           /**< 30 External Interrupt Clear */
    volatile const uint8_t RESERVED7[14];                  
    volatile       uint16_t RSTSTA;                          /**< 40 Reset Status */
} ADI_ALWAYS_ON_TypeDef;

/*! ========================================================================
 *  \struct ADI_PLA_TypeDef
 *  \brief PLA Register Map
 *  ======================================================================== */
typedef struct _ADI_PLA_TypeDef
{
    volatile       uint16_t PLA_ELEM0;                       /**< 0 ELEMx Configuration Register */
    volatile const uint8_t RESERVED0[2];                   
    volatile       uint16_t PLA_ELEM1;                       /**< 4 ELEMx Configuration Register */
    volatile const uint8_t RESERVED1[2];                   
    volatile       uint16_t PLA_ELEM2;                       /**< 8 ELEMx Configuration Register */
    volatile const uint8_t RESERVED2[2];                   
    volatile       uint16_t PLA_ELEM3;                       /**< C ELEMx Configuration Register */
    volatile const uint8_t RESERVED3[2];                   
    volatile       uint16_t PLA_ELEM4;                       /**< 10 ELEMx Configuration Register */
    volatile const uint8_t RESERVED4[2];                   
    volatile       uint16_t PLA_ELEM5;                       /**< 14 ELEMx Configuration Register */
    volatile const uint8_t RESERVED5[2];                   
    volatile       uint16_t PLA_ELEM6;                       /**< 18 ELEMx Configuration Register */
    volatile const uint8_t RESERVED6[2];                   
    volatile       uint16_t PLA_ELEM7;                       /**< 1C ELEMx Configuration Register */
    volatile const uint8_t RESERVED7[2];                   
    volatile       uint16_t PLA_ELEM8;                       /**< 20 ELEMx Configuration Register */
    volatile const uint8_t RESERVED8[2];                   
    volatile       uint16_t PLA_ELEM9;                       /**< 24 ELEMx Configuration Register */
    volatile const uint8_t RESERVED9[2];                   
    volatile       uint16_t PLA_ELEM10;                      /**< 28 ELEMx Configuration Register */
    volatile const uint8_t RESERVED10[2];                  
    volatile       uint16_t PLA_ELEM11;                      /**< 2C ELEMx Configuration Register */
    volatile const uint8_t RESERVED11[2];                  
    volatile       uint16_t PLA_ELEM12;                      /**< 30 ELEMx Configuration Register */
    volatile const uint8_t RESERVED12[2];                  
    volatile       uint16_t PLA_ELEM13;                      /**< 34 ELEMx Configuration Register */
    volatile const uint8_t RESERVED13[2];                  
    volatile       uint16_t PLA_ELEM14;                      /**< 38 ELEMx Configuration Register */
    volatile const uint8_t RESERVED14[2];                  
    volatile       uint16_t PLA_ELEM15;                      /**< 3C ELEMx Configuration Register */
    volatile const uint8_t RESERVED15[2];                  
    volatile       uint16_t PLA_ELEM16;                      /**< 40 ELEMx Configuration Register */
    volatile const uint8_t RESERVED16[2];                  
    volatile       uint16_t PLA_ELEM17;                      /**< 44 ELEMx Configuration Register */
    volatile const uint8_t RESERVED17[2];                  
    volatile       uint16_t PLA_ELEM18;                      /**< 48 ELEMx Configuration Register */
    volatile const uint8_t RESERVED18[2];                  
    volatile       uint16_t PLA_ELEM19;                      /**< 4C ELEMx Configuration Register */
    volatile const uint8_t RESERVED19[2];                  
    volatile       uint16_t PLA_ELEM20;                      /**< 50 ELEMx Configuration Register */
    volatile const uint8_t RESERVED20[2];                  
    volatile       uint16_t PLA_ELEM21;                      /**< 54 ELEMx Configuration Register */
    volatile const uint8_t RESERVED21[2];                  
    volatile       uint16_t PLA_ELEM22;                      /**< 58 ELEMx Configuration Register */
    volatile const uint8_t RESERVED22[2];                  
    volatile       uint16_t PLA_ELEM23;                      /**< 5C ELEMx Configuration Register */
    volatile const uint8_t RESERVED23[2];                  
    volatile       uint16_t PLA_ELEM24;                      /**< 60 ELEMx Configuration Register */
    volatile const uint8_t RESERVED24[2];                  
    volatile       uint16_t PLA_ELEM25;                      /**< 64 ELEMx Configuration Register */
    volatile const uint8_t RESERVED25[2];                  
    volatile       uint16_t PLA_ELEM26;                      /**< 68 ELEMx Configuration Register */
    volatile const uint8_t RESERVED26[2];                  
    volatile       uint16_t PLA_ELEM27;                      /**< 6C ELEMx Configuration Register */
    volatile const uint8_t RESERVED27[2];                  
    volatile       uint16_t PLA_ELEM28;                      /**< 70 ELEMx Configuration Register */
    volatile const uint8_t RESERVED28[2];                  
    volatile       uint16_t PLA_ELEM29;                      /**< 74 ELEMx Configuration Register */
    volatile const uint8_t RESERVED29[2];                  
    volatile       uint16_t PLA_ELEM30;                      /**< 78 ELEMx Configuration Register */
    volatile const uint8_t RESERVED30[2];                  
    volatile       uint16_t PLA_ELEM31;                      /**< 7C ELEMx Configuration Register */
    volatile const uint8_t RESERVED31[2];                  
    volatile       uint16_t PLA_CLK;                         /**< 80 PLA Clock Select */
    volatile const uint8_t RESERVED32[2];                  
    volatile       uint16_t PLA_IRQ0;                        /**< 84 Interrupt Register for Block 0 */
    volatile const uint8_t RESERVED33[2];                  
    volatile       uint16_t PLA_IRQ1;                        /**< 88 Interrupt Register for Block1 */
    volatile const uint8_t RESERVED34[2];                  
    volatile       uint16_t PLA_ADC;                         /**< 8C ADC Configuration Register */
    volatile const uint8_t RESERVED35[2];                  
    volatile       int16_t PLA_DIN0;                        /**< 90 AMBA Bus Data Input for Block 0 */
    volatile const uint8_t RESERVED36[6];                  
    volatile const uint16_t PLA_DOUT0;                       /**< 98 AMBA Bus Data Output for Block 0 */
    volatile const uint8_t RESERVED37[2];                  
    volatile const uint16_t PLA_DOUT1;                       /**< 9C AMBA Bus Data Output for Block1 */
    volatile const uint8_t RESERVED38[2];                  
    volatile       uint16_t PLA_LCK;                         /**< A0 Write Lock Register. */
    volatile const uint8_t RESERVED39[2];                  
    volatile       uint16_t PLA_IRQTYPE;                     /**< A4 PLA Interrupt Request and DMA Request Type */
} ADI_PLA_TypeDef;

/*! ========================================================================
 *  \struct ADI_DMAREQ_TypeDef
 *  \brief Your module description, here.
 *  ======================================================================== */
typedef struct _ADI_DMAREQ_TypeDef
{
    volatile       uint8_t REQEN;                           /**< 0 GPT/GPT32 and PLA DMA Request Enable */
    volatile const uint8_t RESERVED0[3];                   
    volatile       uint8_t REQ0SEL;                         /**< 4 GPT/GPT32 and PLA DMA Request 0 Select */
    volatile const uint8_t RESERVED1[3];                   
    volatile       uint8_t REQ1SEL;                         /**< 8 GPT/GPT32 and PLA DMA Request 1 Select */
    volatile const uint8_t RESERVED2[3];                   
    volatile       uint8_t PLAREQEN;                        /**< C PLA DMA Requests Enable */
    volatile const uint8_t RESERVED3[3];                   
    volatile       uint8_t GPTREQEN;                        /**< 10 GPT/GPT32 DMA Requests Enable */
    volatile const uint8_t RESERVED4[3];                   
    volatile       uint16_t GPT_MDA_REQ_TTYPE;               /**< 14 GPT and GPT32 Require Type */
} ADI_DMAREQ_TypeDef;

/*! ========================================================================
 *  \struct ADI_UART_TypeDef
 *  \brief Universal Asynchronous Receiver/Transmitter
 *  ======================================================================== */
typedef struct _ADI_UART_TypeDef
{
    union {
    volatile const uint16_t   RX;                         /*!< Receive Buffer Register */
    volatile       uint16_t   TX;                         /*!< Transmit Holding Register */
    };
    volatile const uint8_t RESERVED0[2];                   
    volatile       uint16_t IEN;                             /**< 4 Interrupt Enable */
    volatile const uint8_t RESERVED1[2];                   
    volatile const uint16_t IIR;                             /**< 8 Interrupt ID */
    volatile const uint8_t RESERVED2[2];                   
    volatile       uint16_t LCR;                             /**< C Line Control */
    volatile const uint8_t RESERVED3[2];                   
    volatile       uint16_t MCR;                             /**< 10 Modem Control */
    volatile const uint8_t RESERVED4[2];                   
    volatile const uint16_t LSR;                             /**< 14 Line Status */
    volatile const uint8_t RESERVED5[2];                   
    volatile const uint16_t MSR;                             /**< 18 Modem Status */
    volatile const uint8_t RESERVED6[2];                   
    volatile       uint16_t SCR;                             /**< 1C Scratch Buffer */
    volatile const uint8_t RESERVED7[2];                   
    volatile       uint16_t FCR;                             /**< 20 FIFO Control */
    volatile const uint8_t RESERVED8[2];                   
    volatile       uint16_t FBR;                             /**< 24 Fractional Baud Rate */
    volatile const uint8_t RESERVED9[2];                   
    volatile       uint16_t DIV;                             /**< 28 Baudrate Divider */
    volatile const uint8_t RESERVED10[2];                  
    volatile       uint16_t LCR2;                            /**< 2C Second Line Control */
    volatile const uint8_t RESERVED11[2];                  
    volatile       uint16_t CTL;                             /**< 30 UART Control Register */
    volatile const uint8_t RESERVED12[2];                  
    volatile const uint16_t RFC;                             /**< 34 RX FIFO Byte Count */
    volatile const uint8_t RESERVED13[2];                  
    volatile const uint16_t TFC;                             /**< 38 TX FIFO Byte Count */
    volatile const uint8_t RESERVED14[2];                  
    volatile       uint16_t RSC;                             /**< 3C RS485 Half-duplex Control */
    volatile const uint8_t RESERVED15[2];                  
    volatile       uint16_t ACR;                             /**< 40 Auto Baud Control */
    volatile const uint8_t RESERVED16[2];                  
    volatile const uint16_t ASRL;                            /**< 44 Auto Baud Status (Low) */
    volatile const uint8_t RESERVED17[2];                  
    volatile const uint16_t ASRH;                            /**< 48 Auto Baud Status (High) */
} ADI_UART_TypeDef;

/*! ========================================================================
 *  \struct ADI_I2C_TypeDef
 *  \brief I2C Master/Slave
 *  ======================================================================== */
typedef struct _ADI_I2C_TypeDef
{
    volatile       uint16_t MCTL;                            /**< 0 Master Control */
    volatile const uint8_t RESERVED0[2];                   
    volatile       uint16_t MSTAT;                           /**< 4 Master Status */
    volatile const uint8_t RESERVED1[2];                   
    volatile const uint16_t MRX;                             /**< 8 Master Receive Data */
    volatile const uint8_t RESERVED2[2];                   
    volatile       uint16_t MTX;                             /**< C Master Transmit Data */
    volatile const uint8_t RESERVED3[2];                   
    volatile       uint16_t MRXCNT;                          /**< 10 Master Receive Data Count */
    volatile const uint8_t RESERVED4[2];                   
    volatile const uint16_t MCRXCNT;                         /**< 14 Master Current Receive Data Count */
    volatile const uint8_t RESERVED5[2];                   
    volatile       uint16_t ADDR0;                           /**< 18 1st Master Address Byte */
    volatile const uint8_t RESERVED6[2];                   
    volatile       uint16_t ADDR1;                           /**< 1C 2nd Master Address Byte */
    volatile const uint8_t RESERVED7[2];                   
    volatile       uint16_t BYT;                             /**< 20 Start Byte */
    volatile const uint8_t RESERVED8[2];                   
    volatile       uint16_t DIV;                             /**< 24 Serial Clock Period Divisor */
    volatile const uint8_t RESERVED9[2];                   
    volatile       uint16_t SCTL;                            /**< 28 Slave Control */
    volatile const uint8_t RESERVED10[2];                  
    volatile       uint16_t SSTAT;                           /**< 2C Slave I2C Status/Error/IRQ */
    volatile const uint8_t RESERVED11[2];                  
    volatile const uint16_t SRX;                             /**< 30 Slave Receive */
    volatile const uint8_t RESERVED12[2];                  
    volatile       uint16_t STX;                             /**< 34 Slave Transmit */
    volatile const uint8_t RESERVED13[2];                  
    volatile       uint16_t ALT;                             /**< 38 Hardware General Call ID */
    volatile const uint8_t RESERVED14[2];                  
    volatile       uint16_t ID0;                             /**< 3C 1st Slave Address Device ID */
    volatile const uint8_t RESERVED15[2];                  
    volatile       uint16_t ID1;                             /**< 40 2nd Slave Address Device ID */
    volatile const uint8_t RESERVED16[2];                  
    volatile       uint16_t ID2;                             /**< 44 3rd Slave Address Device ID */
    volatile const uint8_t RESERVED17[2];                  
    volatile       uint16_t ID3;                             /**< 48 4th Slave Address Device ID */
    volatile const uint8_t RESERVED18[2];                  
    volatile       uint16_t STAT;                            /**< 4C Master and Slave FIFO Status */
    volatile const uint8_t RESERVED19[2];                  
    volatile       uint16_t SHCTL;                           /**< 50 Shared Control */
    volatile const uint8_t RESERVED20[2];                  
    volatile       uint16_t TCTL;                            /**< 54 Timing Control Register */
    volatile const uint8_t RESERVED21[2];                  
    volatile       uint16_t ASTRETCH_SCL;                    /**< 58 Automatic Stretch SCL Register */
    volatile const uint8_t RESERVED22[2];                  
    volatile       uint16_t IDFSTA;                          /**< 5C ID FIFO Status Register */
    volatile const uint8_t RESERVED23[2];                  
    volatile       uint16_t SLV_ADDR1;                       /**< 60 Slave 10 Bits Address 1st Byte. */
    volatile const uint8_t RESERVED24[2];                  
    volatile       uint16_t SLV_ADDR2;                       /**< 64 Slave 10 Bits Address 2nd Byte. */
    volatile const uint8_t RESERVED25[2];                  
    volatile const uint16_t SSTAT2;                          /**< 68 Slave I2C Status/IRQ 2 */
} ADI_I2C_TypeDef;

/*! ========================================================================
 *  \struct ADI_MDIO_TypeDef
 *  \brief MDIO Interface
 *  ======================================================================== */
typedef struct _ADI_MDIO_TypeDef
{
    volatile       uint16_t MDCON;                           /**< 0 MDIO Block Control */
    volatile const uint8_t RESERVED0[2];                   
    volatile const uint16_t MDFRM;                           /**< 4 MDIO Received Frame Control Information */
    volatile const uint8_t RESERVED1[2];                   
    volatile const uint16_t MDRXD;                           /**< 8 MDIO Received Data */
    volatile const uint8_t RESERVED2[2];                   
    volatile const uint16_t MDADR;                           /**< C MDIO Received Address */
    volatile const uint8_t RESERVED3[2];                   
    volatile       uint16_t MDTXD;                           /**< 10 MDIO Data for Transmission */
    volatile const uint8_t RESERVED4[2];                   
    volatile       uint16_t MDPHY;                           /**< 14 MDIO PHYADDR Software Values and Selection and DEVADD */
    volatile const uint8_t RESERVED5[2];                   
    volatile const uint16_t MDSTA;                           /**< 18 MDIO Progress Signaling Through Frame */
    volatile const uint8_t RESERVED6[2];                   
    volatile       uint16_t MDIEN;                           /**< 1C MDIO Interrupt Enables */
    volatile const uint8_t RESERVED7[2];                   
    volatile const uint16_t MDPIN;                           /**< 20 MDIO Read PHYADDR Pins */
    volatile const uint8_t RESERVED8[6];                   
    volatile       uint16_t DMAEN;                           /**< 28 MDIO DMA Enable */
    volatile const uint8_t RESERVED9[2];                   
    volatile       uint16_t MDTESTCON;                       /**< 2C MDIO Test Controller Protected by Test Key */
} ADI_MDIO_TypeDef;

/*! ========================================================================
 *  \struct ADI_DMA_TypeDef
 *  \brief DMA
 *  ======================================================================== */
typedef struct _ADI_DMA_TypeDef
{
    volatile const uint32_t STAT;                            /**< 0 DMA Status */
    volatile       uint32_t CFG;                             /**< 4 DMA Configuration */
    volatile       uint32_t PDBPTR;                          /**< 8 DMA Channel Primary Control Data Base Pointer */
    volatile const uint32_t ADBPTR;                          /**< C DMA Channel Alternate Control Data Base Pointer */
    volatile const uint8_t RESERVED0[4];                   
    volatile       uint32_t SWREQ;                           /**< 14 DMA Channel Software Request */
    volatile const uint8_t RESERVED1[8];                   
    volatile       uint32_t RMSKSET;                         /**< 20 DMA Channel Request Mask Set */
    volatile       uint32_t RMSKCLR;                         /**< 24 DMA Channel Request Mask Clear */
    volatile       uint32_t ENSET;                           /**< 28 DMA Channel Enable Set */
    volatile       uint32_t ENCLR;                           /**< 2C DMA Channel Enable Clear */
    volatile       uint32_t ALTSET;                          /**< 30 DMA Channel Primary-alternate Set */
    volatile       uint32_t ALTCLR;                          /**< 34 DMA Channel Primary-alternate Clear */
    volatile       uint32_t PRISET;                          /**< 38 DMA Channel Priority Set */
    volatile       uint32_t PRICLR;                          /**< 3C DMA Channel Priority Clear */
    volatile const uint8_t RESERVED2[8];                   
    volatile       uint32_t ERRCHNLCLR;                      /**< 48 DMA per Channel Error Clear */
    volatile       uint32_t ERRCLR;                          /**< 4C DMA Bus Error Clear */
    volatile       uint32_t INVALIDDESCCLR;                  /**< 50 DMA per Channel Invalid Descriptor Clear */
    volatile const uint8_t RESERVED3[1964];                
    volatile       uint32_t BSSET;                           /**< 800 DMA Channel Bytes Swap Enable Set */
    volatile       uint32_t BSCLR;                           /**< 804 DMA Channel Bytes Swap Enable Clear */
    volatile const uint8_t RESERVED4[8];                   
    volatile       uint32_t SRCADDRSET;                      /**< 810 DMA Channel Source Address Decrement Enable Set */
    volatile       uint32_t SRCADDRCLR;                      /**< 814 DMA Channel Source Address Decrement Enable Clear */
    volatile       uint32_t DSTADDRSET;                      /**< 818 DMA Channel Destination Address Decrement Enable Set */
    volatile       uint32_t DSTADDRCLR;                      /**< 81C DMA Channel Destination Address Decrement Enable Clear */
    volatile const uint8_t RESERVED5[1984];                
    volatile const uint32_t REVID;                           /**< FE0 DMA Controller Revision ID */
} ADI_DMA_TypeDef;

/*! ========================================================================
 *  \struct ADI_CC_TypeDef
 *  \brief Cache Controller
 *  ======================================================================== */
typedef struct _ADI_CC_TypeDef
{
    volatile const uint32_t STAT;                            /**< 0 Cache Status Register */
    volatile       uint32_t SETUP;                           /**< 4 Cache Setup Register */
    volatile       uint32_t KEY;                             /**< 8 Cache Key Register */
    volatile       uint32_t PERFSETUP;                       /**< C Cache Performance Monitor Setup Register */
    volatile const uint32_t ACCESSCNTR;                      /**< 10 Cache Miss Counter */
    volatile const uint8_t RESERVED0[16];                  
    volatile       uint32_t MSTRSETUP;                       /**< 24 Cache Master Setup Register */
    volatile const uint8_t RESERVED1[12];                  
    volatile const uint32_t ECCSTAT;                         /**< 34 Cache SRAM ECC Status Register */
    volatile const uint32_t ECCADDR;                         /**< 38 Cache SRAM ECC Address Register */
} ADI_CC_TypeDef;

/*! ========================================================================
 *  \struct ADI_FLASH_TypeDef
 *  \brief Flash Controller
 *  ======================================================================== */
typedef struct _ADI_FLASH_TypeDef
{
    volatile const uint32_t FEESTA;                          /**< 0 Status Register */
    volatile       uint32_t FEECON0;                         /**< 4 Command Control Register – Interrupt Enable Register */
    volatile       uint32_t FEECMD;                          /**< 8 Command Register */
    volatile       uint32_t FEEFLADR;                        /**< C Flash Address Key - Hole Register */
    volatile       uint32_t FEEFLDATA0;                      /**< 10 Flash Data Register - Key - Hole Interface Lower 32 Bits */
    volatile       uint32_t FEEFLDATA1;                      /**< 14 Flash Data Register - Key - Hole Interface Upper 32 Bits */
    volatile       uint32_t FEEADR0;                         /**< 18 Lower Page Address */
    volatile       uint32_t FEEADR1;                         /**< 1C Upper Page Address */
    volatile       uint32_t FEEKEY;                          /**< 20 Flash Key Register. */
    volatile const uint8_t RESERVED0[4];                   
    volatile       uint32_t FEEPRO0;                         /**< 28 Write Protection Register for Flash0 */
    volatile       uint32_t FEEPRO1;                         /**< 2C Write Protection Register for Flash1 */
    volatile const uint8_t RESERVED1[4];                   
    volatile const uint32_t FEESIG;                          /**< 34 Flash Signature */
    volatile       uint32_t FEECON1;                         /**< 38 User Setup Register */
    volatile const uint8_t RESERVED2[4];                   
    volatile const uint32_t FEEWRADDRA;                      /**< 40 Write Abort Address Register */
    volatile const uint8_t RESERVED3[4];                   
    volatile       uint32_t FEEAEN0;                         /**< 48 Lower 32 Bits of the Sys Irq Abort Enable Register. */
    volatile       uint32_t FEEAEN1;                         /**< 4C Middle 32 Bits of the Sys Irq Abort Enable Register. */
    volatile       uint32_t FEEAEN2;                         /**< 50 Upper 32 Bits of the Sys Irq Abort Enable Register. */
    volatile const uint8_t RESERVED4[16];                  
    volatile       uint32_t FEEECCCONFIG;                    /**< 64 Configurable ECC Enable/disable, Error Response */
    volatile const uint8_t RESERVED5[12];                  
    volatile const uint32_t FEEECCADDRC0;                    /**< 74 Flash 0 ECC Error Address via CODE Bus */
    volatile const uint32_t FEEECCADDRC1;                    /**< 78 Flash 1 ECC Error Address via CODE Bus */
    volatile const uint8_t RESERVED6[24];                  
    volatile const uint32_t FEEECCADDRD0;                    /**< 94 Flash 0 ECC Error Address via DMA Bus */
    volatile const uint32_t FEEECCADDRD1;                    /**< 98 Flash 1 ECC Error Address via DMA Bus */
} ADI_FLASH_TypeDef;

/*! ========================================================================
 *  \struct ADI_GPIO_TypeDef
 *  \brief GPIO
 *  ======================================================================== */
typedef struct _ADI_GPIO_TypeDef
{
    volatile       uint16_t CON;                             /**< 0 Port Configuration */
    volatile const uint8_t RESERVED0[2];                   
    volatile       uint8_t OE;                              /**< 4 Port Output Enable */
    volatile const uint8_t RESERVED1[3];                   
    volatile       uint8_t IE;                              /**< 8 Port Input Path Enable */
    volatile const uint8_t RESERVED2[3];                   
    volatile const uint8_t IN;                              /**< C Port Registered Data Input */
    volatile const uint8_t RESERVED3[3];                   
    volatile       uint8_t OUT;                             /**< 10 Port Data Output */
    volatile const uint8_t RESERVED4[3];                   
    volatile       uint8_t SET;                             /**< 14 Port Data Out Set */
    volatile const uint8_t RESERVED5[3];                   
    volatile       uint8_t CLR;                             /**< 18 Port Data Out Clear */
    volatile const uint8_t RESERVED6[3];                   
    volatile       uint8_t TGL;                             /**< 1C Port Pin Toggle */
    volatile const uint8_t RESERVED7[3];                   
    volatile       uint8_t ODE;                             /**< 20 Port Open Drain Enable */
    volatile const uint8_t RESERVED8[3];                   
    volatile       uint8_t IS;                              /**< 24 Port Input Select */
    volatile const uint8_t RESERVED9[3];                   
    volatile       uint8_t PE;                              /**< 28 Port Pull Enable */
    volatile const uint8_t RESERVED10[3];                  
    volatile       uint8_t PS;                              /**< 2C Port Pull Select */
    volatile const uint8_t RESERVED11[3];                  
    volatile       uint8_t SR;                              /**< 30 Port Slew Rate */
    volatile const uint8_t RESERVED12[3];                  
    volatile       uint16_t DS;                              /**< 34 Port Drive Select */
    volatile const uint8_t RESERVED13[2];                  
    volatile       uint8_t PWR;                             /**< 38 Port Power Select */
    volatile const uint8_t RESERVED14[3];                  
    volatile       uint8_t POL;                             /**< 3C GPIO Interrupt Polarity Select */
    volatile const uint8_t RESERVED15[3];                  
    volatile       uint8_t IENA;                            /**< 40 InterruptA Enable */
    volatile const uint8_t RESERVED16[3];                  
    volatile       uint8_t IENB;                            /**< 44 InterruptB Enable */
    volatile const uint8_t RESERVED17[3];                  
    volatile       uint8_t INT;                             /**< 48 Interrupt Status */
    volatile const uint8_t RESERVED18[3]; 
} ADI_GPIO_TypeDef;

/*! ========================================================================
 *  \struct ADI_SPI_TypeDef
 *  \brief Serial Peripheral Interface
 *  ======================================================================== */
typedef struct _ADI_SPI_TypeDef
{
    volatile       uint16_t STAT;                            /**< 0 Status */
    volatile const uint8_t RESERVED0[2];                   
    volatile const uint16_t RX;                              /**< 4 Receive */
    volatile const uint8_t RESERVED1[2];                   
    volatile       uint16_t TX;                              /**< 8 Transmit */
    volatile const uint8_t RESERVED2[2];                   
    volatile       uint16_t DIV;                             /**< C SPI Baud Rate Selection */
    volatile const uint8_t RESERVED3[2];                   
    volatile       uint16_t CTL;                             /**< 10 SPI Configuration 1 */
    volatile const uint8_t RESERVED4[2];                   
    volatile       uint16_t IEN;                             /**< 14 SPI Configuration 2 */
    volatile const uint8_t RESERVED5[2];                   
    volatile       uint16_t CNT;                             /**< 18 Transfer Byte Count */
    volatile const uint8_t RESERVED6[2];                   
    volatile       uint16_t DMA;                             /**< 1C SPI DMA Enable */
    volatile const uint8_t RESERVED7[2];                   
    volatile const uint16_t FIFOSTAT;                        /**< 20 FIFO Status */
    volatile const uint8_t RESERVED8[2];                   
    volatile       uint16_t RDCTL;                           /**< 24 Read Control */
    volatile const uint8_t RESERVED9[2];                   
    volatile       uint16_t FLOWCTL;                         /**< 28 Flow Control */
    volatile const uint8_t RESERVED10[2];                  
    volatile       uint16_t WAITTMR;                         /**< 2C Wait Timer for Flow Control */
    volatile const uint8_t RESERVED11[6];                  
    volatile       uint16_t CSOVERRIDE;                      /**< 34 Chip-Select Override */
} ADI_SPI_TypeDef;

/*! ========================================================================
 *  \struct ADI_CLOCK_TypeDef
 *  \brief Clock Gating and Other Settings
 *  ======================================================================== */
typedef struct _ADI_CLOCK_TypeDef
{
    volatile       uint16_t CLKCON0;                         /**< 0 Misc Clock Settings Register */
    volatile const uint8_t RESERVED0[2];                   
    volatile       uint16_t CLKCON1;                         /**< 4 Clock Dividers Register */
    volatile const uint8_t RESERVED1[2];                   
    volatile       uint16_t CLKSTAT0;                        /**< 8 Clocking Status */
} ADI_CLOCK_TypeDef;

/*! ========================================================================
 *  \struct ADI_PWM_TypeDef
 *  \brief PWM MMR
 *  ======================================================================== */
typedef struct _ADI_PWM_TypeDef
{
    volatile       uint16_t PWMCON0;                         /**< 0 PWM Control Register */
    volatile const uint8_t RESERVED0[2];                   
    volatile       uint16_t PWMCON1;                         /**< 4 ADC Conversion Start and Trip Control Register */
    volatile const uint8_t RESERVED1[2];                   
    volatile       uint16_t PWMICLR;                         /**< 8 Hardware Trip Configuration Register */
    volatile const uint8_t RESERVED2[6];                   
    volatile       uint16_t PWM0COM0;                        /**< 10 Compare Register 0 for PWM0 and PWM1 */
    volatile const uint8_t RESERVED3[2];                   
    volatile       uint16_t PWM0COM1;                        /**< 14 Compare Register 1 for PWM0 and PWM1 */
    volatile const uint8_t RESERVED4[2];                   
    volatile       uint16_t PWM0COM2;                        /**< 18 Compare Register 2 for PWM0 and PWM1 */
    volatile const uint8_t RESERVED5[2];                   
    volatile       uint16_t PWM0LEN;                         /**< 1C Period Value Register for PWM0 and PWM1 */
    volatile const uint8_t RESERVED6[2];                   
    volatile       uint16_t PWM1COM0;                        /**< 20 Compare Register 0 for PWM2 and PWM3 */
    volatile const uint8_t RESERVED7[2];                   
    volatile       uint16_t PWM1COM1;                        /**< 24 Compare Register 1 for PWM2 and PWM3 */
    volatile const uint8_t RESERVED8[2];                   
    volatile       uint16_t PWM1COM2;                        /**< 28 Compare Register 2 for PWM2 and PWM3 */
    volatile const uint8_t RESERVED9[2];                   
    volatile       uint16_t PWM1LEN;                         /**< 2C Period Value Register for PWM2 and PWM3 */
    volatile const uint8_t RESERVED10[2];                  
    volatile       uint16_t PWM2COM0;                        /**< 30 Compare Register 0 for PWM4 and PWM5 */
    volatile const uint8_t RESERVED11[2];                  
    volatile       uint16_t PWM2COM1;                        /**< 34 Compare Register 1 for PWM4 and PWM5 */
    volatile const uint8_t RESERVED12[2];                  
    volatile       uint16_t PWM2COM2;                        /**< 38 Compare Register 2 for PWM4 and PWM5 */
    volatile const uint8_t RESERVED13[2];                  
    volatile       uint16_t PWM2LEN;                         /**< 3C Period Value Register for PWM4 and PWM5 */
} ADI_PWM_TypeDef;

/*! ========================================================================
 *  \struct ADI_SUBSYS_TypeDef
 *  \brief Your module description, here.
 *  ======================================================================== */
typedef struct _ADI_SUBSYS_TypeDef
{
    volatile       uint32_t SRAMCON;                         /**< 0 SRAM Control Register */
    volatile const uint8_t RESERVED0[8];                   
    volatile       uint32_t SRAMECCCON;                      /**< C SRAM ECC Control Register */
    volatile const uint32_t SRAMECCSTA;                      /**< 10 SRAM ECC Status Register */
    volatile const uint32_t SRAMECCA0;                       /**< 14 SRAM0 ECC Error Address Register */
    volatile const uint32_t SRAMECCD0;                       /**< 18 SRAM0 ECC Error Data Register */
    volatile const uint32_t SRAMECCP0;                       /**< 1C SRAM0 ECC Error Parity Register */
    volatile const uint32_t SRAMECCA1;                       /**< 20 SRAM1 ECC Error Address Register */
    volatile const uint32_t SRAMECCD1;                       /**< 24 SRAM1 ECC Error Data Register */
    volatile const uint32_t SRAMECCP1;                       /**< 28 SRAM1 ECC Error Parity Register */
    volatile const uint32_t SRAMECCA2;                       /**< 2C SRAM2 ECC Error Address Register */
    volatile const uint32_t SRAMECCD2;                       /**< 30 SRAM2 ECC Error Data Register */
    volatile const uint32_t SRAMECCP2;                       /**< 34 SRAM2 ECC Error Parity Register */
} ADI_SUBSYS_TypeDef;

/*! ========================================================================
 *  \struct ADI_CRC_TypeDef
 *  \brief CRC Accelerator
 *  ======================================================================== */
typedef struct _ADI_CRC_TypeDef
{
    volatile       uint32_t CTL;                             /**< 0 CRC Control Register */
    volatile       int32_t IPDATA;                          /**< 4 Input Data Word Register */
    volatile       int32_t RESULT;                          /**< 8 CRC Result Register */
    volatile       uint32_t POLY;                            /**< C Programmable CRC Polynomial */
} ADI_CRC_TypeDef;

/*! ========================================================================
 *  \struct ADI_ADC_TypeDef
 *  \brief Your module description, here.
 *  ======================================================================== */
typedef struct _ADI_ADC_TypeDef
{
    volatile const uint32_t ADCDAT0;                         /**< 0 ADCx Data and Flags */
    volatile const uint32_t ADCDAT1;                         /**< 4 ADCx Data and Flags */
    volatile const uint32_t ADCDAT2;                         /**< 8 ADCx Data and Flags */
    volatile const uint32_t ADCDAT3;                         /**< C ADCx Data and Flags */
    volatile const uint32_t ADCDAT4;                         /**< 10 ADCx Data and Flags */
    volatile const uint32_t ADCDAT5;                         /**< 14 ADCx Data and Flags */
    volatile const uint32_t ADCDAT6;                         /**< 18 ADCx Data and Flags */
    volatile const uint32_t ADCDAT7;                         /**< 1C ADCx Data and Flags */
    volatile const uint32_t ADCDAT8;                         /**< 20 ADCx Data and Flags */
    volatile const uint32_t ADCDAT9;                         /**< 24 ADCx Data and Flags */
    volatile const uint32_t ADCDAT10;                        /**< 28 ADCx Data and Flags */
    volatile const uint32_t ADCDAT11;                        /**< 2C ADCx Data and Flags */
    volatile const uint32_t ADCDAT12;                        /**< 30 ADCx Data and Flags */
    volatile const uint32_t ADCDAT13;                        /**< 34 ADCx Data and Flags */
    volatile const uint32_t ADCDAT14;                        /**< 38 ADCx Data and Flags */
    volatile const uint32_t ADCDAT15;                        /**< 3C ADCx Data and Flags */
    volatile const uint32_t ADCDAT16;                        /**< 40 ADCx Data and Flags */
    volatile const uint32_t ADCDAT17;                        /**< 44 ADCx Data and Flags */
    volatile const uint32_t ADCDAT18;                        /**< 48 ADCx Data and Flags */
    volatile const uint32_t ADCDAT19;                        /**< 4C ADCx Data and Flags */
    volatile const uint32_t ADCDAT20;                        /**< 50 ADCx Data and Flags */
    volatile const uint32_t ADCDAT21;                        /**< 54 ADCx Data and Flags */
    volatile const uint32_t ADCDAT22;                        /**< 58 ADCx Data and Flags */
    volatile const uint32_t ADCDAT23;                        /**< 5C ADCx Data and Flags */
    volatile const uint32_t ADCDAT24;                        /**< 60 ADCx Data and Flags */
    volatile const uint32_t ADCDAT25;                        /**< 64 ADCx Data and Flags */
    volatile const uint32_t ADCDAT26;                        /**< 68 ADCx Data and Flags */
    volatile const uint32_t ADCDAT27;                        /**< 6C ADCx Data and Flags */
    volatile const uint32_t ADCDAT28;                        /**< 70 ADCx Data and Flags */
    volatile const uint32_t ADCDAT29;                        /**< 74 ADCx Data and Flags */
    volatile       uint32_t ADCCON;                          /**< 78 ADC Configuration */
    volatile       uint32_t PREBUFCON;                       /**< 7C Pre-charge Buffer Control */
    volatile       uint32_t ADCCNVC;                         /**< 80 ADC Conversion Cycle for Positive Input Channels */
    volatile       uint32_t ADCCNVCSLOW;                     /**< 84 ADC Conversion Cycle for Positive Input Channels */
    volatile       uint32_t ADCCHA;                          /**< 88 ADC Channel Select */
    volatile const uint32_t ADCIRQSTAT;                      /**< 8C ADC Interrupt Status */
    volatile       uint32_t ADCSEQ;                          /**< 90 ADC Sequencer Control */
    volatile       uint32_t ADCSEQC;                         /**< 94 ADC Sequencer Configuration */
    volatile const uint32_t ADCSEQS;                         /**< 98 ADC Sequencer Status */
    volatile       uint32_t ADCSEQCH;                        /**< 9C ADC Sequencer Channel 0 */
    volatile       uint32_t ADCSEQCHMUX0;                    /**< A0 ADC Sequencer Channel 1 */
    volatile       uint32_t ADCSEQCHMUX1;                    /**< A4 ADC Sequencer Channel 1 */
    volatile       uint32_t ADCCMP;                          /**< A8 Digital Comparator 0 Configuration */
    volatile       uint32_t ADCCMPIRQSTAT;                   /**< AC Digital Comparator Interrupt Status */
    volatile       uint32_t ADCOFGNDIFF;                     /**< B0 ADC Offset Gain Differential Channel Error Correction */
    volatile       uint32_t ADCOFTEMP;                       /**< B4 ADC Offset Gain Temp Sensor Channel Error Correction */
    volatile       uint32_t ADCGNTEMP;                       /**< B8 ADC Offset Gain Temp Sensor Channel Error Correction */
    volatile       uint32_t ADCOFGNPGA0;                     /**< BC ADC Offset Gain PGA0 Channel Error Correction */
    volatile       uint32_t ADCOFGNPGA1;                     /**< C0 ADC Offset Gain PGA1 Channel Error Correction */
    volatile       uint32_t ADCOFGNPGA2;                     /**< C4 ADC Offset Gain PGA2 Channel Error Correction */
    volatile       uint32_t ADCOFGNPGA3;                     /**< C8 ADC Offset Gain PGA3 Channel Error Correction */
    volatile       uint32_t ADCOFGNPGA0TIA;                  /**< CC ADC Offset Gain PGA0 Channel Error Correction */
    volatile       uint32_t ADCOFGNPGA1TIA;                  /**< D0 ADC Offset Gain PGA1 Channel Error Correction */
    volatile       uint32_t ADCOFGNPGA2TIA;                  /**< D4 ADC Offset Gain PGA2 Channel Error Correction */
    volatile       uint32_t ADCOFGNPGA3TIA;                  /**< D8 ADC Offset Gain PGA3 Channel Error Correction */
    volatile const uint8_t RESERVED0[120];                 
    volatile       uint32_t ADCCMP1;                         /**< 154 Digital Comparator 1 Configuration */
    volatile       uint32_t ADCCMP2;                         /**< 158 Digital Comparator 2 Configuration */
    volatile       uint32_t ADCCMP3;                         /**< 15C Digital Comparator 3 Configuration */
} ADI_ADC_TypeDef;

/*! ========================================================================
 *  \struct ADI_COMP_TypeDef
 *  \brief Your module description, here.
 *  ======================================================================== */
typedef struct _ADI_COMP_TypeDef
{
    volatile       uint32_t COMPCON0;                        /**< 0 No description provided */
    volatile       uint32_t COMPCON1;                        /**< 4 No description provided */
    volatile       uint32_t COMPCON2;                        /**< 8 No description provided */
    volatile       uint32_t COMPCON3;                        /**< C No description provided */
    volatile const uint32_t COMPIRQSTAT;                     /**< 10 No description provided */
} ADI_COMP_TypeDef;

/*! ========================================================================
 *  \struct ADI_OSC_MMRS_TypeDef
 *  \brief Your module description, here.
 *  ======================================================================== */
typedef struct _ADI_OSC_MMRS_TypeDef
{
    volatile const uint8_t RESERVED0[3];                   
    volatile       uint32_t HFOSCCTRL;                       /**< 4 No description provided */
    volatile const uint8_t RESERVED1[16];                  
    volatile       uint32_t HFXTALCTRL;                      /**< 18 No description provided */
} ADI_OSC_MMRS_TypeDef;

/*! ========================================================================
 *  \struct ADI_PGA_TypeDef
 *  \brief Your module description, here.
 *  ======================================================================== */
typedef struct _ADI_PGA_TypeDef
{
    volatile       uint32_t PGABIASCON;                      /**< 0 PGA Bias Circuit Control Signal */
    volatile const uint8_t RESERVED0[28];                  
    volatile       uint32_t PGA0CON;                         /**< 20 PGA0 Control Register */
    volatile       uint32_t PGA0CHPCON;                      /**< 24 PGA0 Chop Function Ctrl */
    volatile       uint32_t PGA3CHPCON;                      /**< 28 PGA3 Chop Function Ctrl */
    volatile const uint8_t RESERVED1[68];                  
    volatile       uint32_t PGA1CON;                         /**< 70 PGA1 Control Register */
    volatile       uint32_t PGA1CHPCON;                      /**< 74 PGA1 Chop Function Ctrl */
    volatile const uint8_t RESERVED2[40];                  
    volatile       uint32_t PGA2CON;                         /**< A0 PGA2 Control Register */
    volatile       uint32_t PGA2CHPCON;                      /**< A4 PGA2 Chop Function Ctrl */
    volatile const uint8_t RESERVED3[40];                  
    volatile       uint32_t PGA3CON;                         /**< D0 PGA3 Control Register */
} ADI_PGA_TypeDef;

/*! ========================================================================
 *  \struct ADI_PLL_MMRS_TypeDef
 *  \brief Your module description, here.
 *  ======================================================================== */
typedef struct _ADI_PLL_MMRS_TypeDef
{
    volatile       uint32_t PLLPDCTRL;                       /**< 0 No description provided */
} ADI_PLL_MMRS_TypeDef;

/*! ========================================================================
 *  \struct ADI_VCM_MMRS_TypeDef
 *  \brief Your module description, here.
 *  ======================================================================== */
typedef struct _ADI_VCM_MMRS_TypeDef
{
    volatile       uint32_t TMPSNSCON;                       /**< 0 No description provided */
    volatile       uint32_t TMPSNSCHPCON;                    /**< 4 No description provided */
    volatile       uint32_t VCMREFCON;                       /**< 8 No description provided */
    volatile const uint8_t RESERVED0[4];                   
    volatile       uint32_t VCMBUFCON;                       /**< 10 No description provided */
} ADI_VCM_MMRS_TypeDef;

/*! ========================================================================
 *  \struct ADI_DAC_TypeDef
 *  \brief Your module description, here.
 *  ======================================================================== */
typedef struct _ADI_DAC_TypeDef
{
    volatile       uint32_t DACCON0;                         /**< 0 DAC Control Register */
    volatile       uint32_t DACCON1;                         /**< 4 DAC Control Register */
    volatile       uint32_t DACCON2;                         /**< 8 DAC Control Register */
    volatile       uint32_t DACCON3;                         /**< C DAC Control Register */
    volatile       uint32_t DACCON4;                         /**< 10 DAC Control Register */
    volatile       uint32_t DACCON5;                         /**< 14 DAC Control Register */
    volatile       uint32_t DACCON6;                         /**< 18 DAC Control Register */
    volatile       uint32_t DACCON7;                         /**< 1C DAC Control Register */
    volatile       uint32_t DACCON8;                         /**< 20 DAC Control Register */
    volatile       uint32_t DACCON9;                         /**< 24 DAC Control Register */
    volatile       uint32_t DACCON10;                        /**< 28 DAC Control Register */
    volatile       uint32_t DACCON11;                        /**< 2C DAC Control Register */
    volatile       uint32_t DACDAT0;                         /**< 30 DAC Data Register */
    volatile       uint32_t DACDAT1;                         /**< 34 DAC Data Register */
    volatile       uint32_t DACDAT2;                         /**< 38 DAC Data Register */
    volatile       uint32_t DACDAT3;                         /**< 3C DAC Data Register */
    volatile       uint32_t DACDAT4;                         /**< 40 DAC Data Register */
    volatile       uint32_t DACDAT5;                         /**< 44 DAC Data Register */
    volatile       uint32_t DACDAT6;                         /**< 48 DAC Data Register */
    volatile       uint32_t DACDAT7;                         /**< 4C DAC Data Register */
    volatile       uint32_t DACDAT8;                         /**< 50 DAC Data Register */
    volatile       uint32_t DACDAT9;                         /**< 54 DAC Data Register */
    volatile       uint32_t DACDAT10;                        /**< 58 DAC Data Register */
    volatile       uint32_t DACDAT11;                        /**< 5C DAC Data Register */
} ADI_DAC_TypeDef;


/*  =========================================================================
 * Peripheral Memory Map Declarations
 *  ========================================================================= */

#define ADI_GPT0_BASE                       (0x40000000U)    /* Base address of gpt0: */
#define ADI_GPT1_BASE                       (0x40000400U)    /* Base address of gpt1: */
#define ADI_GPT2_BASE                       (0x40000800U)    /* Base address of gpt2: */
#define ADI_GPTH0_BASE                      (0x40000C00U)    /* Base address of gpth0: */
#define ADI_GPTH1_BASE                      (0x40001000U)    /* Base address of gpth1: */
#define ADI_MISC_BASE                       (0x40002000U)    /* Base address of misc: */
#define ADI_WUT_BASE                        (0x40003000U)    /* Base address of wut: */
#define ADI_WDT_BASE                        (0x40004000U)    /* Base address of wdt: */
#define ADI_ALLON_BASE                      (0x40005000U)    /* Base address of allon: */
#define ADI_PLA_BASE                        (0x40006000U)    /* Base address of pla: */
#define ADI_DMAREQ_BASE                     (0x40007000U)    /* Base address of dmareq: */
#define ADI_UART0_BASE                      (0x40020000U)    /* Base address of uart0: */
#define ADI_UART1_BASE                      (0x40020400U)    /* Base address of uart1: */
#define ADI_I2C0_BASE                       (0x40020800U)    /* Base address of i2c0: */
#define ADI_I2C1_BASE                       (0x40020C00U)    /* Base address of i2c1: */
#define ADI_I2C2_BASE                       (0x40021000U)    /* Base address of i2c2: */
#define ADI_MDIO_BASE                       (0x40022000U)    /* Base address of mdio: */
#define ADI_DMA_BASE                        (0x40040000U)    /* Base address of dma: */
#define ADI_CACHE_BASE                      (0x40044000U)    /* Base address of cache: */
#define ADI_FLASH_BASE                      (0x40048000U)    /* Base address of flash: */
#define ADI_GPIO0_BASE                      (0x40050000U)    /* Base address of gpio0: */
#define ADI_GPIO1_BASE                      (0x40050050U)    /* Base address of gpio1: */
#define ADI_GPIO2_BASE                      (0x400500A0U)    /* Base address of gpio2: */
#define ADI_GPIO3_BASE                      (0x400500F0U)    /* Base address of gpio3: */
#define ADI_GPIO4_BASE                      (0x40050140U)    /* Base address of gpio4: */
#define ADI_GPIO5_BASE                      (0x40050190U)    /* Base address of gpio5: */
#define ADI_SPI0_BASE                       (0x40054000U)    /* Base address of spi0: */
#define ADI_SPI1_BASE                       (0x40058000U)    /* Base address of spi1: */
#define ADI_SPI2_BASE                       (0x4005C000U)    /* Base address of spi2: */
#define ADI_CLK_BASE                        (0x40060000U)    /* Base address of clk: */
#define ADI_PWM_BASE                        (0x40064000U)    /* Base address of pwm: */
#define ADI_SRAM_BASE                       (0x40065000U)    /* Base address of sram: */
#define ADI_CRC_BASE                        (0x40066000U)    /* Base address of crc: */
#define ADI_ADC_BASE                        (0x40068000U)    /* Base address of adc: */
#define ADI_COMP_BASE                       (0x40068A00U)    /* Base address of comp: */
#define ADI_OSC_BASE                        (0x40068E00U)    /* Base address of osc: */
#define ADI_PGA_BASE                        (0x40069000U)    /* Base address of pga: */
#define ADI_PLL_BASE                        (0x40069200U)    /* Base address of pll: */
#define ADI_TMPSNS_BASE                     (0x40069600U)    /* Base address of tmpsns: */
#define ADI_VDAC_BASE                       (0x40069800U)    /* Base address of vdac: */


/*  =========================================================================
 * Peripheral Pointer Declarations
 *  ========================================================================= */

#define pADI_GPT0                           ((ADI_TMR_TypeDef *) ADI_GPT0_BASE)                   /* Pointer to  (gpt0)*/
#define pADI_GPT1                           ((ADI_TMR_TypeDef *) ADI_GPT1_BASE)                   /* Pointer to  (gpt1)*/
#define pADI_GPT2                           ((ADI_TMR_TypeDef *) ADI_GPT2_BASE)                   /* Pointer to  (gpt2)*/
#define pADI_GPTH0                          ((ADI_TIMER_TypeDef *) ADI_GPTH0_BASE)                /* Pointer to  (gpth0)*/
#define pADI_GPTH1                          ((ADI_TIMER_TypeDef *) ADI_GPTH1_BASE)                /* Pointer to  (gpth1)*/
#define pADI_MISC                           ((ADI_MISC16_TypeDef *) ADI_MISC_BASE)                /* Pointer to  (misc)*/
#define pADI_WUT                            ((ADI_WUT_TypeDef *) ADI_WUT_BASE)                    /* Pointer to  (wut)*/
#define pADI_WDT                            ((ADI_WDT_TypeDef *) ADI_WDT_BASE)                    /* Pointer to  (wdt)*/
#define pADI_ALLON                          ((ADI_ALWAYS_ON_TypeDef *) ADI_ALLON_BASE)            /* Pointer to  (allon)*/
#define pADI_PLA                            ((ADI_PLA_TypeDef *) ADI_PLA_BASE)                    /* Pointer to  (pla)*/
#define pADI_DMAREQ                         ((ADI_DMAREQ_TypeDef *) ADI_DMAREQ_BASE)              /* Pointer to  (dmareq)*/
#define pADI_UART0                          ((ADI_UART_TypeDef *) ADI_UART0_BASE)                 /* Pointer to  (uart0)*/
#define pADI_UART1                          ((ADI_UART_TypeDef *) ADI_UART1_BASE)                 /* Pointer to  (uart1)*/
#define pADI_I2C0                           ((ADI_I2C_TypeDef *) ADI_I2C0_BASE)                   /* Pointer to  (i2c0)*/
#define pADI_I2C1                           ((ADI_I2C_TypeDef *) ADI_I2C1_BASE)                   /* Pointer to  (i2c1)*/
#define pADI_I2C2                           ((ADI_I2C_TypeDef *) ADI_I2C2_BASE)                   /* Pointer to  (i2c2)*/
#define pADI_MDIO                           ((ADI_MDIO_TypeDef *) ADI_MDIO_BASE)                  /* Pointer to  (mdio)*/
#define pADI_DMA                            ((ADI_DMA_TypeDef *) ADI_DMA_BASE)                    /* Pointer to  (dma)*/
#define pADI_CACHE                          ((ADI_CC_TypeDef *) ADI_CACHE_BASE)                   /* Pointer to  (cache)*/
#define pADI_FLASH                          ((ADI_FLASH_TypeDef *) ADI_FLASH_BASE)                /* Pointer to  (flash)*/
#define pADI_GPIO0                          ((ADI_GPIO_TypeDef *) ADI_GPIO0_BASE)                 /* Pointer to  (gpio0)*/
#define pADI_GPIO1                          ((ADI_GPIO_TypeDef *) ADI_GPIO1_BASE)                 /* Pointer to  (gpio1)*/
#define pADI_GPIO2                          ((ADI_GPIO_TypeDef *) ADI_GPIO2_BASE)                 /* Pointer to  (gpio2)*/
#define pADI_GPIO3                          ((ADI_GPIO_TypeDef *) ADI_GPIO3_BASE)                 /* Pointer to  (gpio3)*/
#define pADI_GPIO4                          ((ADI_GPIO_TypeDef *) ADI_GPIO4_BASE)                 /* Pointer to  (gpio4)*/
#define pADI_GPIO5                          ((ADI_GPIO_TypeDef *) ADI_GPIO5_BASE)                 /* Pointer to  (gpio5)*/
#define pADI_SPI0                           ((ADI_SPI_TypeDef *) ADI_SPI0_BASE)                   /* Pointer to  (spi0)*/
#define pADI_SPI1                           ((ADI_SPI_TypeDef *) ADI_SPI1_BASE)                   /* Pointer to  (spi1)*/
#define pADI_SPI2                           ((ADI_SPI_TypeDef *) ADI_SPI2_BASE)                   /* Pointer to  (spi2)*/
#define pADI_CLK                            ((ADI_CLOCK_TypeDef *) ADI_CLK_BASE)                  /* Pointer to  (clk)*/
#define pADI_PWM                            ((ADI_PWM_TypeDef *) ADI_PWM_BASE)                    /* Pointer to  (pwm)*/
#define pADI_SRAM                           ((ADI_SUBSYS_TypeDef *) ADI_SRAM_BASE)                /* Pointer to  (sram)*/
#define pADI_CRC                            ((ADI_CRC_TypeDef *) ADI_CRC_BASE)                    /* Pointer to  (crc)*/
#define pADI_ADC                            ((ADI_ADC_TypeDef *) ADI_ADC_BASE)                    /* Pointer to  (adc)*/
#define pADI_COMP                           ((ADI_COMP_TypeDef *) ADI_COMP_BASE)                  /* Pointer to  (comp)*/
#define pADI_OSC                            ((ADI_OSC_MMRS_TypeDef *) ADI_OSC_BASE)               /* Pointer to  (osc)*/
#define pADI_PGA                            ((ADI_PGA_TypeDef *) ADI_PGA_BASE)                    /* Pointer to  (pga)*/
#define pADI_PLL                            ((ADI_PLL_MMRS_TypeDef *) ADI_PLL_BASE)               /* Pointer to  (pll)*/
#define pADI_TMPSNS                         ((ADI_VCM_MMRS_TypeDef *) ADI_TMPSNS_BASE)            /* Pointer to  (tmpsns)*/
#define pADI_VDAC                           ((ADI_DAC_TypeDef *) ADI_VDAC_BASE)                   /* Pointer to  (vdac)*/

/*  =========================================================================
 *! \enum   DMA_CHANn_TypeDef
 *! \brief  DMAChannel Number Assignments
 *  ========================================================================= */

typedef enum
{
    SPI0_TX_CHANn                               =     0,    /*!<* SPI0_TX */
    SPI0_RX_CHANn                               =     1,    /*!<* SPI0_RX */
    SPI1_TX_CHANn                               =     2,    /*!<* SPI1_TX */
    SPI1_RX_CHANn                               =     3,    /*!<* SPI1_RX */
    SPI2_TX_CHANn                               =     4,    /*!<* SPI2_TX */
    SPI2_RX_CHANn                               =     5,    /*!<* SPI2_RX */
    UART0_TX_CHANn                              =     6,    /*!<* UART0_TX */
    UART0_RX_CHANn                              =     7,    /*!<* UART0_RX */
    UART1_TX_CHANn                              =     8,    /*!<* UART1_TX */
    UART1_RX_CHANn                              =     9,    /*!<* UART1_RX */
    I2C0S_TX_CHANn                              =    10,    /*!<* I2C0S_TX */
    I2C0S_RX_CHANn                              =    11,    /*!<* I2C0S_RX */
    I2C0M_CHANn                                 =    12,    /*!<* I2C0M */
    I2C1S_TX_CHANn                              =    13,    /*!<* I2C1S_TX */
    I2C1S_RX_CHANn                              =    14,    /*!<* I2C1S_RX */
    I2C1M_CHANn                                 =    15,    /*!<* I2C1M */
    I2C2S_TX_CHANn                              =    16,    /*!<* I2C2S_TX */
    I2C2S_RX_CHANn                              =    17,    /*!<* I2C2S_RX */
    I2C2M_CHANn                                 =    18,    /*!<* I2C2M */
    MDIO_TX_CHANn                               =    19,    /*!<* MDIO_TX */
    MDIO_RX_CHANn                               =    20,    /*!<* MDIO_RX */
    FLASH_KHWR_CHANn                            =    21,    /*!<* FLASH_KHWR */
    ADC_RD_CHANn                                =    22,    /*!<* ADC_RD */
    sys_Trig0_CHANn                             =    27,    /*!<* sys_Trig0 */
    sys_Trig1_CHANn                             =    28,    /*!<* sys_Trig1 */
    sys_SW0_CHANn                               =    29,    /*!<* sys_SW0 */
    sys_SW1_CHANn                               =    30,    /*!<* sys_SW1 */
} DMA_CHANn_TypeDef;  /* typedef name for fixed DMA channel assignment */


#ifdef __cplusplus
}
#endif

#endif // __ADUCM410_H__