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
//! The AVR AT90PWM81 microcontroller
//!
//! # Variants
//! |        | Pinout | Mcu age | Operating temperature | Operating voltage | Max speed |
//! |--------|--------|---------|-----------------------|-------------------|-----------|
//! | standard |  |  | 0°C - 0°C | 2.7V - 5.5V | 0 MHz |
//!

#![allow(non_upper_case_globals)]

/// `LOCKBIT` register
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | LB | 11 |
/// | BLB0 | 1100 |
/// | BLB1 | 110000 |
pub const LOCKBIT: *mut u8 = 0x0 as *mut u8;

/// `LOW` register
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | CKDIV8 | 10000000 |
/// | SUT_CKSEL | 111111 |
/// | CKOUT | 1000000 |
pub const LOW: *mut u8 = 0x0 as *mut u8;

/// `HIGH` register
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | SPIEN | 100000 |
/// | EESAVE | 1000 |
/// | DWEN | 1000000 |
/// | BOOTSZ | 110 |
/// | BOOTRST | 1 |
/// | RSTDISBL | 10000000 |
/// | WDTON | 10000 |
pub const HIGH: *mut u8 = 0x1 as *mut u8;

/// `EXTENDED` register
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | PSCINRB | 1000 |
/// | PSC2RB | 10000000 |
/// | PSC0RB | 100000 |
/// | BODLEVEL | 111 |
/// | PSC2RBA | 1000000 |
/// | PSCRV | 10000 |
pub const EXTENDED: *mut u8 = 0x2 as *mut u8;

/// Analog Comparator Status Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | AC3O | 1000 |
/// | AC2IF | 1000000 |
/// | AC1O | 10 |
/// | AC1IF | 100000 |
/// | AC2O | 100 |
/// | AC3IF | 10000000 |
pub const ACSR: *mut u8 = 0x20 as *mut u8;

/// Timer/Counter Interrupt Mask Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | TOIE1 | 1 |
/// | ICIE1 | 100000 |
pub const TIMSK1: *mut u8 = 0x21 as *mut u8;

/// Timer/Counter Interrupt Flag register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | ICF1 | 100000 |
/// | TOV1 | 1 |
pub const TIFR1: *mut u8 = 0x22 as *mut u8;

/// Port B Input Pins.
pub const PINB: *mut u8 = 0x23 as *mut u8;

/// Port B Data Direction Register.
pub const DDRB: *mut u8 = 0x24 as *mut u8;

/// Port B Data Register.
pub const PORTB: *mut u8 = 0x25 as *mut u8;

/// The ADC Control and Status register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | ADPS | 111 |
/// | ADIE | 1000 |
/// | ADEN | 10000000 |
/// | ADIF | 10000 |
/// | ADSC | 1000000 |
/// | ADATE | 100000 |
pub const ADCSRA: *mut u8 = 0x26 as *mut u8;

/// ADC Control and Status Register B.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | ADSSEN | 10000 |
/// | ADHSM | 10000000 |
/// | ADNCDIS | 1000000 |
/// | ADTS | 1111 |
pub const ADCSRB: *mut u8 = 0x27 as *mut u8;

/// The ADC multiplexer Selection Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | ADLAR | 100000 |
/// | REFS | 11000000 |
/// | MUX | 1111 |
pub const ADMUX: *mut u8 = 0x28 as *mut u8;

/// Port D Input Pins.
pub const PIND: *mut u8 = 0x29 as *mut u8;

/// Port D Data Direction Register.
pub const DDRD: *mut u8 = 0x2A as *mut u8;

/// Port D Data Register.
pub const PORTD: *mut u8 = 0x2B as *mut u8;

/// Port E Input Pins.
pub const PINE: *mut u8 = 0x2C as *mut u8;

/// Port E Data Direction Register.
pub const DDRE: *mut u8 = 0x2D as *mut u8;

/// Port E Data Register.
pub const PORTE: *mut u8 = 0x2E as *mut u8;

/// PSC0 Interrupt Mask Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | PEVE0A | 1000 |
/// | PEVE0B | 10000 |
/// | PEOPE0 | 1 |
/// | PEOEPE0 | 10 |
pub const PIM0: *mut u8 = 0x2F as *mut u8;

/// PSC0 Interrupt Flag Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | PEOP0 | 1 |
/// | POAC0A | 1000000 |
/// | PRN0 | 110 |
/// | PEV0A | 1000 |
/// | POAC0B | 10000000 |
/// | PEV0B | 10000 |
pub const PIFR0: *mut u8 = 0x30 as *mut u8;

/// PSC 0 Configuration Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | PCLKSEL0 | 10 |
/// | PMODE0 | 11000 |
/// | PALOCK0 | 1000000 |
/// | POP0 | 100 |
/// | PFIFTY0 | 10000000 |
/// | PLOCK0 | 100000 |
pub const PCNF0: *mut u8 = 0x31 as *mut u8;

/// PSC 0 Control Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | PAOC0B | 10000 |
/// | PCCYC0 | 10 |
/// | PAOC0A | 1000 |
/// | PPRE0 | 11000000 |
/// | PRUN0 | 1 |
/// | PBFM0 | 100100 |
pub const PCTL0: *mut u8 = 0x32 as *mut u8;

/// PSC2 Interrupt Mask Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | PEVE2B | 10000 |
/// | PEOPE2 | 1 |
/// | PEVE2A | 1000 |
/// | PSEIE2 | 100000 |
/// | PEOEPE2 | 10 |
pub const PIM2: *mut u8 = 0x33 as *mut u8;

/// PSC2 Interrupt Flag Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | PEOP2 | 1 |
/// | PRN2 | 110 |
/// | POAC2A | 1000000 |
/// | PEV2A | 1000 |
/// | POAC2B | 10000000 |
/// | PEV2B | 10000 |
/// | PSEI2 | 100000 |
pub const PIFR2: *mut u8 = 0x34 as *mut u8;

/// PSC 2 Configuration Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | POP2 | 100 |
/// | PCLKSEL2 | 10 |
/// | PALOCK2 | 1000000 |
/// | PLOCK2 | 100000 |
/// | PFIFTY2 | 10000000 |
/// | PMODE2 | 11000 |
/// | POME2 | 1 |
pub const PCNF2: *mut u8 = 0x35 as *mut u8;

/// PSC 2 Control Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | PPRE2 | 11000000 |
/// | PBFM2 | 100000 |
/// | PAOC2B | 10000 |
/// | PRUN2 | 1 |
/// | PAOC2A | 1000 |
/// | PCCYC2 | 10 |
/// | PARUN2 | 100 |
pub const PCTL2: *mut u8 = 0x36 as *mut u8;

/// SPI Control Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | MSTR | 10000 |
/// | SPIE | 10000000 |
/// | SPR | 11 |
/// | DORD | 100000 |
/// | CPOL | 1000 |
/// | SPE | 1000000 |
/// | CPHA | 100 |
pub const SPCR: *mut u8 = 0x37 as *mut u8;

/// SPI Status Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | SPI2X | 1 |
/// | SPIF | 10000000 |
/// | WCOL | 1000000 |
pub const SPSR: *mut u8 = 0x38 as *mut u8;

/// General Purpose IO Register 0.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | GPIOR05 | 100000 |
/// | GPIOR06 | 1000000 |
/// | GPIOR03 | 1000 |
/// | GPIOR00 | 1 |
/// | GPIOR01 | 10 |
/// | GPIOR07 | 10000000 |
/// | GPIOR04 | 10000 |
/// | GPIOR02 | 100 |
pub const GPIOR0: *mut u8 = 0x39 as *mut u8;

/// General Purpose IO Register 1.
pub const GPIOR1: *mut u8 = 0x3A as *mut u8;

/// General Purpose IO Register 2.
pub const GPIOR2: *mut u8 = 0x3B as *mut u8;

/// EEPROM Control Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | EEPAGE | 1000000 |
/// | EERIE | 1000 |
/// | EERE | 1 |
/// | NVMBSY | 10000000 |
/// | EEWE | 10 |
/// | EEMWE | 100 |
/// | EEPM | 110000 |
pub const EECR: *mut u8 = 0x3C as *mut u8;

/// EEPROM Data Register.
pub const EEDR: *mut u8 = 0x3D as *mut u8;

/// EEPROM Read/Write Access Bytes.
pub const EEAR: *mut u16 = 0x3E as *mut u16;

/// EEPROM Read/Write Access Bytes low byte.
pub const EEARL: *mut u8 = 0x3E as *mut u8;

/// EEPROM Read/Write Access Bytes high byte.
pub const EEARH: *mut u8 = 0x3F as *mut u8;

/// External Interrupt Flag Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | INTF | 111 |
pub const EIFR: *mut u8 = 0x40 as *mut u8;

/// External Interrupt Mask Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | INT | 111 |
pub const EIMSK: *mut u8 = 0x41 as *mut u8;

/// Output Compare SB Register.
pub const OCR0SB: *mut u16 = 0x42 as *mut u16;

/// Output Compare SB Register  low byte.
pub const OCR0SBL: *mut u8 = 0x42 as *mut u8;

/// Output Compare SB Register  high byte.
pub const OCR0SBH: *mut u8 = 0x43 as *mut u8;

/// Output Compare RB Register.
pub const OCR0RB: *mut u16 = 0x44 as *mut u16;

/// Output Compare RB Register  low byte.
pub const OCR0RBL: *mut u8 = 0x44 as *mut u8;

/// Output Compare RB Register  high byte.
pub const OCR0RBH: *mut u8 = 0x45 as *mut u8;

/// Output Compare SB Register.
pub const OCR2SB: *mut u16 = 0x46 as *mut u16;

/// Output Compare SB Register  low byte.
pub const OCR2SBL: *mut u8 = 0x46 as *mut u8;

/// Output Compare SB Register  high byte.
pub const OCR2SBH: *mut u8 = 0x47 as *mut u8;

/// Output Compare RB Register  low byte.
pub const OCR2RBL: *mut u8 = 0x48 as *mut u8;

/// Output Compare RB Register.
pub const OCR2RB: *mut u16 = 0x48 as *mut u16;

/// Output Compare RB Register  high byte.
pub const OCR2RBH: *mut u8 = 0x49 as *mut u8;

/// Output Compare RA Register.
pub const OCR0RA: *mut u16 = 0x4A as *mut u16;

/// Output Compare RA Register  low byte.
pub const OCR0RAL: *mut u8 = 0x4A as *mut u8;

/// Output Compare RA Register  high byte.
pub const OCR0RAH: *mut u8 = 0x4B as *mut u8;

/// ADC Data Register Bytes.
pub const ADC: *mut u16 = 0x4C as *mut u16;

/// ADC Data Register Bytes low byte.
pub const ADCL: *mut u8 = 0x4C as *mut u8;

/// ADC Data Register Bytes high byte.
pub const ADCH: *mut u8 = 0x4D as *mut u8;

/// Output Compare RA Register  low byte.
pub const OCR2RAL: *mut u8 = 0x4E as *mut u8;

/// Output Compare RA Register.
pub const OCR2RA: *mut u16 = 0x4E as *mut u16;

/// Output Compare RA Register  high byte.
pub const OCR2RAH: *mut u8 = 0x4F as *mut u8;

/// Sleep Mode Control Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | SM | 1110 |
/// | SE | 1 |
pub const SMCR: *mut u8 = 0x53 as *mut u8;

/// MCU Status Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | WDRF | 1000 |
/// | EXTRF | 10 |
/// | BORF | 100 |
/// | PORF | 1 |
pub const MCUSR: *mut u8 = 0x54 as *mut u8;

/// MCU Control Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | IVSEL | 10 |
/// | IVCE | 1 |
/// | PUD | 10000 |
/// | RSTDIS | 1000 |
/// | CKRC81 | 100 |
pub const MCUCR: *mut u8 = 0x55 as *mut u8;

/// SPI Data Register.
pub const SPDR: *mut u8 = 0x56 as *mut u8;

/// Store Program Memory Control Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | PGERS | 10 |
/// | BLBSET | 1000 |
/// | SPMIE | 10000000 |
/// | RWWSRE | 10000 |
/// | SIGRD | 100000 |
/// | SPMEN | 1 |
/// | RWWSB | 1000000 |
/// | PGWRT | 100 |
pub const SPMCSR: *mut u8 = 0x57 as *mut u8;

/// DAC Data Register low byte.
pub const DACL: *mut u8 = 0x58 as *mut u8;

/// DAC Data Register.
pub const DAC: *mut u16 = 0x58 as *mut u16;

/// DAC Data Register high byte.
pub const DACH: *mut u8 = 0x59 as *mut u8;

/// Timer/Counter1 Bytes.
pub const TCNT1: *mut u16 = 0x5A as *mut u16;

/// Timer/Counter1 Bytes low byte.
pub const TCNT1L: *mut u8 = 0x5A as *mut u8;

/// Timer/Counter1 Bytes high byte.
pub const TCNT1H: *mut u8 = 0x5B as *mut u8;

/// Stack Pointer  low byte.
pub const SPL: *mut u8 = 0x5D as *mut u8;

/// Stack Pointer.
pub const SP: *mut u16 = 0x5D as *mut u16;

/// Stack Pointer  high byte.
pub const SPH: *mut u8 = 0x5E as *mut u8;

/// Status Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | C | 1 |
/// | T | 1000000 |
/// | S | 10000 |
/// | N | 100 |
/// | H | 100000 |
/// | Z | 10 |
/// | V | 1000 |
/// | I | 10000000 |
pub const SREG: *mut u8 = 0x5F as *mut u8;

/// Output Compare SA Register.
pub const OCR0SA: *mut u16 = 0x60 as *mut u16;

/// Output Compare SA Register  low byte.
pub const OCR0SAL: *mut u8 = 0x60 as *mut u8;

/// Output Compare SA Register  high byte.
pub const OCR0SAH: *mut u8 = 0x61 as *mut u8;

/// PSC 0 Input A Control.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | PRFM0A | 1111 |
/// | PFLTE0A | 10000 |
/// | PELEV0A | 100000 |
/// | PCAE0A | 10000000 |
/// | PISEL0A | 1000000 |
pub const PFRC0A: *mut u8 = 0x62 as *mut u8;

/// PSC 0 Input B Control.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | PRFM0B | 1111 |
/// | PCAE0B | 10000000 |
/// | PELEV0B | 100000 |
/// | PFLTE0B | 10000 |
/// | PISEL0B | 1000000 |
pub const PFRC0B: *mut u8 = 0x63 as *mut u8;

/// Output Compare SA Register.
pub const OCR2SA: *mut u16 = 0x64 as *mut u16;

/// Output Compare SA Register  low byte.
pub const OCR2SAL: *mut u8 = 0x64 as *mut u8;

/// Output Compare SA Register  high byte.
pub const OCR2SAH: *mut u8 = 0x65 as *mut u8;

/// PSC 2 Input B Control.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | PELEV2A | 100000 |
/// | PISEL2A | 1000000 |
/// | PRFM2A | 1111 |
/// | PFLTE2A | 10000 |
/// | PCAE2A | 10000000 |
pub const PFRC2A: *mut u8 = 0x66 as *mut u8;

/// PSC 2 Input B Control.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | PFLTE2B | 10000 |
/// | PRFM2B | 1111 |
/// | PCAE2B | 10000000 |
/// | PELEV2B | 100000 |
/// | PISEL2B | 1000000 |
pub const PFRC2B: *mut u8 = 0x67 as *mut u8;

/// PSC 0 Input Capture Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | PCST0 | 1000000000000000 |
pub const PICR0: *mut u16 = 0x68 as *mut u16;

/// PSC 0 Input Capture Register  low byte.
pub const PICR0L: *mut u8 = 0x68 as *mut u8;

/// PSC 0 Input Capture Register  high byte.
pub const PICR0H: *mut u8 = 0x69 as *mut u8;

/// PSC0 Synchro and Output Configuration.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | PISEL0B1 | 1000000 |
/// | PISEL0A1 | 10000000 |
/// | PSYNC0 | 110000 |
/// | POEN0A | 1 |
/// | POEN0B | 100 |
pub const PSOC0: *mut u8 = 0x6A as *mut u8;

/// PSC 2 Input Capture Register low byte.
pub const PICR2L: *mut u8 = 0x6C as *mut u8;

/// PSC 2 Input Capture Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | PCST2 | 1000000000000000 |
pub const PICR2: *mut u16 = 0x6C as *mut u16;

/// PSC 2 Input Capture Register high byte.
pub const PICR2H: *mut u8 = 0x6D as *mut u8;

/// PSC2 Synchro and Output Configuration.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | POS2 | 11000000 |
/// | POEN2A | 1 |
/// | POEN2B | 100 |
/// | POEN2C | 10 |
/// | PSYNC2 | 110000 |
/// | POEN2D | 1000 |
pub const PSOC2: *mut u8 = 0x6E as *mut u8;

/// PSC 2 Output Matrix.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | POMV2A | 1111 |
/// | POMV2B | 11110000 |
pub const POM2: *mut u8 = 0x6F as *mut u8;

/// PSC 2 Enhanced Configuration Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | PISEL2B1 | 1 |
/// | PASDLK2 | 11100000 |
/// | PISEL2A1 | 10 |
/// | PELEV2B1 | 100 |
/// | PBFM21 | 10000 |
/// | PELEV2A1 | 1000 |
pub const PCNFE2: *mut u8 = 0x70 as *mut u8;

/// Analog Synchronization Delay Register.
pub const PASDLY2: *mut u8 = 0x71 as *mut u8;

/// DAC Control Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | DALA | 100 |
/// | DAEN | 1 |
/// | DATS | 1110000 |
/// | DAATE | 10000000 |
pub const DACON: *mut u8 = 0x76 as *mut u8;

/// Digital Input Disable Register 0.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | ADC2D | 100 |
/// | ADC4D | 10000 |
/// | ADC0D | 1 |
/// | ADC8D | 10000000 |
/// | ADC7D | 1000000 |
/// | ADC5D | 100000 |
/// | ADC3D | 1000 |
/// | ADC1D | 10 |
pub const DIDR0: *mut u8 = 0x77 as *mut u8;

/// Digital Input Disable Register 1.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | AMP0PD | 100 |
/// | ADC10D | 10 |
/// | ADC9D | 1 |
/// | ACMP1MD | 1000 |
pub const DIDR1: *mut u8 = 0x78 as *mut u8;

/// `AMP0CSR` register
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | AMP0IS | 1000000 |
/// | AMP0G | 110000 |
/// | AMP0GS | 1000 |
/// | AMP0TS | 11 |
/// | AMP0EN | 10000000 |
pub const AMP0CSR: *mut u8 = 0x79 as *mut u8;

/// `AC1ECON` register
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | AC1ICE | 1000 |
/// | AC1OE | 10000 |
/// | AC1OI | 100000 |
/// | AC1H | 111 |
pub const AC1ECON: *mut u8 = 0x7A as *mut u8;

/// `AC2ECON` register
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | AC2OE | 10000 |
/// | AC2OI | 100000 |
/// | AC2H | 111 |
pub const AC2ECON: *mut u8 = 0x7B as *mut u8;

/// `AC3ECON` register
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | AC3OI | 100000 |
/// | AC3OE | 10000 |
/// | AC3H | 111 |
pub const AC3ECON: *mut u8 = 0x7C as *mut u8;

/// Analog Comparator 1 Control Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | AC1M | 111 |
/// | AC1EN | 10000000 |
/// | AC1IS | 110000 |
/// | AC1IE | 1000000 |
pub const AC1CON: *mut u8 = 0x7D as *mut u8;

/// Analog Comparator 2 Control Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | AC2IE | 1000000 |
/// | AC2EN | 10000000 |
/// | AC2IS | 110000 |
/// | AC2M | 111 |
pub const AC2CON: *mut u8 = 0x7E as *mut u8;

/// Analog Comparator3 Control Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | AC3IS | 110000 |
/// | AC3M | 111 |
/// | AC3OEA | 1000 |
/// | AC3EN | 10000000 |
/// | AC3IE | 1000000 |
pub const AC3CON: *mut u8 = 0x7F as *mut u8;

/// BandGap Resistor Calibration Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | BGCR | 1111 |
pub const BGCRR: *mut u8 = 0x80 as *mut u8;

/// BandGap Current Calibration Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | BGCC | 1111 |
pub const BGCCR: *mut u8 = 0x81 as *mut u8;

/// Watchdog Timer Control Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | WDIF | 10000000 |
/// | WDIE | 1000000 |
/// | WDE | 1000 |
/// | WDCE | 10000 |
/// | WDP | 100111 |
pub const WDTCSR: *mut u8 = 0x82 as *mut u8;

/// `CLKPR` register
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | CLKPCE | 10000000 |
/// | CLKPS | 1111 |
pub const CLKPR: *mut u8 = 0x83 as *mut u8;

/// `CLKCSR` register
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | CLKCCE | 10000000 |
/// | CLKRDY | 10000 |
/// | CLKC | 1111 |
pub const CLKCSR: *mut u8 = 0x84 as *mut u8;

/// `CLKSELR` register
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | CSUT | 110000 |
/// | CKSEL | 1111 |
/// | COUT | 1000000 |
pub const CLKSELR: *mut u8 = 0x85 as *mut u8;

/// Power Reduction Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | PRADC | 1 |
/// | PRPSC2 | 10000000 |
/// | PRTIM1 | 10000 |
/// | PRPSCR | 100000 |
/// | PRSPI | 100 |
pub const PRR: *mut u8 = 0x86 as *mut u8;

/// PLL Control And Status Register.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | PLLF | 111100 |
/// | PLLE | 10 |
/// | PLOCK | 1 |
pub const PLLCSR: *mut u8 = 0x87 as *mut u8;

/// Oscillator Calibration Value.
pub const OSCCAL: *mut u8 = 0x88 as *mut u8;

/// External Interrupt Control Register A.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | ISC2 | 110000 |
/// | ISC0 | 11 |
/// | ISC1 | 1100 |
pub const EICRA: *mut u8 = 0x89 as *mut u8;

/// Timer/Counter1 Control Register B.
///
/// Bitfields:
///
/// | Name | Mask (binary) |
/// | ---- | ------------- |
/// | ICES1 | 1000000 |
/// | WGM13 | 10000 |
/// | ICNC1 | 10000000 |
/// | CS1 | 111 |
pub const TCCR1B: *mut u8 = 0x8A as *mut u8;

/// Timer/Counter1 Input Capture Register Bytes low byte.
pub const ICR1L: *mut u8 = 0x8C as *mut u8;

/// Timer/Counter1 Input Capture Register Bytes.
pub const ICR1: *mut u16 = 0x8C as *mut u16;

/// Timer/Counter1 Input Capture Register Bytes high byte.
pub const ICR1H: *mut u8 = 0x8D as *mut u8;

/// Bitfield on register `AC1CON`
pub const AC1M: *mut u8 = 0x7 as *mut u8;

/// Bitfield on register `AC1CON`
pub const AC1EN: *mut u8 = 0x80 as *mut u8;

/// Bitfield on register `AC1CON`
pub const AC1IS: *mut u8 = 0x30 as *mut u8;

/// Bitfield on register `AC1CON`
pub const AC1IE: *mut u8 = 0x40 as *mut u8;

/// Bitfield on register `AC1ECON`
pub const AC1ICE: *mut u8 = 0x8 as *mut u8;

/// Bitfield on register `AC1ECON`
pub const AC1OE: *mut u8 = 0x10 as *mut u8;

/// Bitfield on register `AC1ECON`
pub const AC1OI: *mut u8 = 0x20 as *mut u8;

/// Bitfield on register `AC1ECON`
pub const AC1H: *mut u8 = 0x7 as *mut u8;

/// Bitfield on register `AC2CON`
pub const AC2IE: *mut u8 = 0x40 as *mut u8;

/// Bitfield on register `AC2CON`
pub const AC2EN: *mut u8 = 0x80 as *mut u8;

/// Bitfield on register `AC2CON`
pub const AC2IS: *mut u8 = 0x30 as *mut u8;

/// Bitfield on register `AC2CON`
pub const AC2M: *mut u8 = 0x7 as *mut u8;

/// Bitfield on register `AC2ECON`
pub const AC2OE: *mut u8 = 0x10 as *mut u8;

/// Bitfield on register `AC2ECON`
pub const AC2OI: *mut u8 = 0x20 as *mut u8;

/// Bitfield on register `AC2ECON`
pub const AC2H: *mut u8 = 0x7 as *mut u8;

/// Bitfield on register `AC3CON`
pub const AC3IS: *mut u8 = 0x30 as *mut u8;

/// Bitfield on register `AC3CON`
pub const AC3M: *mut u8 = 0x7 as *mut u8;

/// Bitfield on register `AC3CON`
pub const AC3OEA: *mut u8 = 0x8 as *mut u8;

/// Bitfield on register `AC3CON`
pub const AC3EN: *mut u8 = 0x80 as *mut u8;

/// Bitfield on register `AC3CON`
pub const AC3IE: *mut u8 = 0x40 as *mut u8;

/// Bitfield on register `AC3ECON`
pub const AC3OI: *mut u8 = 0x20 as *mut u8;

/// Bitfield on register `AC3ECON`
pub const AC3OE: *mut u8 = 0x10 as *mut u8;

/// Bitfield on register `AC3ECON`
pub const AC3H: *mut u8 = 0x7 as *mut u8;

/// Bitfield on register `ACSR`
pub const AC3O: *mut u8 = 0x8 as *mut u8;

/// Bitfield on register `ACSR`
pub const AC2IF: *mut u8 = 0x40 as *mut u8;

/// Bitfield on register `ACSR`
pub const AC1O: *mut u8 = 0x2 as *mut u8;

/// Bitfield on register `ACSR`
pub const AC1IF: *mut u8 = 0x20 as *mut u8;

/// Bitfield on register `ACSR`
pub const AC2O: *mut u8 = 0x4 as *mut u8;

/// Bitfield on register `ACSR`
pub const AC3IF: *mut u8 = 0x80 as *mut u8;

/// Bitfield on register `ADCSRA`
pub const ADPS: *mut u8 = 0x7 as *mut u8;

/// Bitfield on register `ADCSRA`
pub const ADIE: *mut u8 = 0x8 as *mut u8;

/// Bitfield on register `ADCSRA`
pub const ADEN: *mut u8 = 0x80 as *mut u8;

/// Bitfield on register `ADCSRA`
pub const ADIF: *mut u8 = 0x10 as *mut u8;

/// Bitfield on register `ADCSRA`
pub const ADSC: *mut u8 = 0x40 as *mut u8;

/// Bitfield on register `ADCSRA`
pub const ADATE: *mut u8 = 0x20 as *mut u8;

/// Bitfield on register `ADCSRB`
pub const ADSSEN: *mut u8 = 0x10 as *mut u8;

/// Bitfield on register `ADCSRB`
pub const ADHSM: *mut u8 = 0x80 as *mut u8;

/// Bitfield on register `ADCSRB`
pub const ADNCDIS: *mut u8 = 0x40 as *mut u8;

/// Bitfield on register `ADCSRB`
pub const ADTS: *mut u8 = 0xF as *mut u8;

/// Bitfield on register `ADMUX`
pub const ADLAR: *mut u8 = 0x20 as *mut u8;

/// Bitfield on register `ADMUX`
pub const REFS: *mut u8 = 0xC0 as *mut u8;

/// Bitfield on register `ADMUX`
pub const MUX: *mut u8 = 0xF as *mut u8;

/// Bitfield on register `AMP0CSR`
pub const AMP0IS: *mut u8 = 0x40 as *mut u8;

/// Bitfield on register `AMP0CSR`
pub const AMP0G: *mut u8 = 0x30 as *mut u8;

/// Bitfield on register `AMP0CSR`
pub const AMP0GS: *mut u8 = 0x8 as *mut u8;

/// Bitfield on register `AMP0CSR`
pub const AMP0TS: *mut u8 = 0x3 as *mut u8;

/// Bitfield on register `AMP0CSR`
pub const AMP0EN: *mut u8 = 0x80 as *mut u8;

/// Bitfield on register `BGCCR`
pub const BGCC: *mut u8 = 0xF as *mut u8;

/// Bitfield on register `BGCRR`
pub const BGCR: *mut u8 = 0xF as *mut u8;

/// Bitfield on register `CLKCSR`
pub const CLKCCE: *mut u8 = 0x80 as *mut u8;

/// Bitfield on register `CLKCSR`
pub const CLKRDY: *mut u8 = 0x10 as *mut u8;

/// Bitfield on register `CLKCSR`
pub const CLKC: *mut u8 = 0xF as *mut u8;

/// Bitfield on register `CLKPR`
pub const CLKPCE: *mut u8 = 0x80 as *mut u8;

/// Bitfield on register `CLKPR`
pub const CLKPS: *mut u8 = 0xF as *mut u8;

/// Bitfield on register `CLKSELR`
pub const CSUT: *mut u8 = 0x30 as *mut u8;

/// Bitfield on register `CLKSELR`
pub const CKSEL: *mut u8 = 0xF as *mut u8;

/// Bitfield on register `CLKSELR`
pub const COUT: *mut u8 = 0x40 as *mut u8;

/// Bitfield on register `DACON`
pub const DALA: *mut u8 = 0x4 as *mut u8;

/// Bitfield on register `DACON`
pub const DAEN: *mut u8 = 0x1 as *mut u8;

/// Bitfield on register `DACON`
pub const DATS: *mut u8 = 0x70 as *mut u8;

/// Bitfield on register `DACON`
pub const DAATE: *mut u8 = 0x80 as *mut u8;

/// Bitfield on register `DIDR0`
pub const ADC2D: *mut u8 = 0x4 as *mut u8;

/// Bitfield on register `DIDR0`
pub const ADC4D: *mut u8 = 0x10 as *mut u8;

/// Bitfield on register `DIDR0`
pub const ADC0D: *mut u8 = 0x1 as *mut u8;

/// Bitfield on register `DIDR0`
pub const ADC8D: *mut u8 = 0x80 as *mut u8;

/// Bitfield on register `DIDR0`
pub const ADC7D: *mut u8 = 0x40 as *mut u8;

/// Bitfield on register `DIDR0`
pub const ADC5D: *mut u8 = 0x20 as *mut u8;

/// Bitfield on register `DIDR0`
pub const ADC3D: *mut u8 = 0x8 as *mut u8;

/// Bitfield on register `DIDR0`
pub const ADC1D: *mut u8 = 0x2 as *mut u8;

/// Bitfield on register `DIDR1`
pub const AMP0PD: *mut u8 = 0x4 as *mut u8;

/// Bitfield on register `DIDR1`
pub const ADC10D: *mut u8 = 0x2 as *mut u8;

/// Bitfield on register `DIDR1`
pub const ADC9D: *mut u8 = 0x1 as *mut u8;

/// Bitfield on register `DIDR1`
pub const ACMP1MD: *mut u8 = 0x8 as *mut u8;

/// Bitfield on register `EECR`
pub const EEPAGE: *mut u8 = 0x40 as *mut u8;

/// Bitfield on register `EECR`
pub const EERIE: *mut u8 = 0x8 as *mut u8;

/// Bitfield on register `EECR`
pub const EERE: *mut u8 = 0x1 as *mut u8;

/// Bitfield on register `EECR`
pub const NVMBSY: *mut u8 = 0x80 as *mut u8;

/// Bitfield on register `EECR`
pub const EEWE: *mut u8 = 0x2 as *mut u8;

/// Bitfield on register `EECR`
pub const EEMWE: *mut u8 = 0x4 as *mut u8;

/// Bitfield on register `EECR`
pub const EEPM: *mut u8 = 0x30 as *mut u8;

/// Bitfield on register `EICRA`
pub const ISC2: *mut u8 = 0x30 as *mut u8;

/// Bitfield on register `EICRA`
pub const ISC0: *mut u8 = 0x3 as *mut u8;

/// Bitfield on register `EICRA`
pub const ISC1: *mut u8 = 0xC as *mut u8;

/// Bitfield on register `EIFR`
pub const INTF: *mut u8 = 0x7 as *mut u8;

/// Bitfield on register `EIMSK`
pub const INT: *mut u8 = 0x7 as *mut u8;

/// Bitfield on register `EXTENDED`
pub const PSCINRB: *mut u8 = 0x8 as *mut u8;

/// Bitfield on register `EXTENDED`
pub const PSC2RB: *mut u8 = 0x80 as *mut u8;

/// Bitfield on register `EXTENDED`
pub const PSC0RB: *mut u8 = 0x20 as *mut u8;

/// Bitfield on register `EXTENDED`
pub const BODLEVEL: *mut u8 = 0x7 as *mut u8;

/// Bitfield on register `EXTENDED`
pub const PSC2RBA: *mut u8 = 0x40 as *mut u8;

/// Bitfield on register `EXTENDED`
pub const PSCRV: *mut u8 = 0x10 as *mut u8;

/// Bitfield on register `GPIOR0`
pub const GPIOR05: *mut u8 = 0x20 as *mut u8;

/// Bitfield on register `GPIOR0`
pub const GPIOR06: *mut u8 = 0x40 as *mut u8;

/// Bitfield on register `GPIOR0`
pub const GPIOR03: *mut u8 = 0x8 as *mut u8;

/// Bitfield on register `GPIOR0`
pub const GPIOR00: *mut u8 = 0x1 as *mut u8;

/// Bitfield on register `GPIOR0`
pub const GPIOR01: *mut u8 = 0x2 as *mut u8;

/// Bitfield on register `GPIOR0`
pub const GPIOR07: *mut u8 = 0x80 as *mut u8;

/// Bitfield on register `GPIOR0`
pub const GPIOR04: *mut u8 = 0x10 as *mut u8;

/// Bitfield on register `GPIOR0`
pub const GPIOR02: *mut u8 = 0x4 as *mut u8;

/// Bitfield on register `HIGH`
pub const SPIEN: *mut u8 = 0x20 as *mut u8;

/// Bitfield on register `HIGH`
pub const EESAVE: *mut u8 = 0x8 as *mut u8;

/// Bitfield on register `HIGH`
pub const DWEN: *mut u8 = 0x40 as *mut u8;

/// Bitfield on register `HIGH`
pub const BOOTSZ: *mut u8 = 0x6 as *mut u8;

/// Bitfield on register `HIGH`
pub const BOOTRST: *mut u8 = 0x1 as *mut u8;

/// Bitfield on register `HIGH`
pub const RSTDISBL: *mut u8 = 0x80 as *mut u8;

/// Bitfield on register `HIGH`
pub const WDTON: *mut u8 = 0x10 as *mut u8;

/// Bitfield on register `LOCKBIT`
pub const LB: *mut u8 = 0x3 as *mut u8;

/// Bitfield on register `LOCKBIT`
pub const BLB0: *mut u8 = 0xC as *mut u8;

/// Bitfield on register `LOCKBIT`
pub const BLB1: *mut u8 = 0x30 as *mut u8;

/// Bitfield on register `LOW`
pub const CKDIV8: *mut u8 = 0x80 as *mut u8;

/// Bitfield on register `LOW`
pub const SUT_CKSEL: *mut u8 = 0x3F as *mut u8;

/// Bitfield on register `LOW`
pub const CKOUT: *mut u8 = 0x40 as *mut u8;

/// Bitfield on register `MCUCR`
pub const IVSEL: *mut u8 = 0x2 as *mut u8;

/// Bitfield on register `MCUCR`
pub const IVCE: *mut u8 = 0x1 as *mut u8;

/// Bitfield on register `MCUCR`
pub const PUD: *mut u8 = 0x10 as *mut u8;

/// Bitfield on register `MCUCR`
pub const RSTDIS: *mut u8 = 0x8 as *mut u8;

/// Bitfield on register `MCUCR`
pub const CKRC81: *mut u8 = 0x4 as *mut u8;

/// Bitfield on register `MCUSR`
pub const WDRF: *mut u8 = 0x8 as *mut u8;

/// Bitfield on register `MCUSR`
pub const EXTRF: *mut u8 = 0x2 as *mut u8;

/// Bitfield on register `MCUSR`
pub const BORF: *mut u8 = 0x4 as *mut u8;

/// Bitfield on register `MCUSR`
pub const PORF: *mut u8 = 0x1 as *mut u8;

/// Bitfield on register `PCNF0`
pub const PCLKSEL0: *mut u8 = 0x2 as *mut u8;

/// Bitfield on register `PCNF0`
pub const PMODE0: *mut u8 = 0x18 as *mut u8;

/// Bitfield on register `PCNF0`
pub const PALOCK0: *mut u8 = 0x40 as *mut u8;

/// Bitfield on register `PCNF0`
pub const POP0: *mut u8 = 0x4 as *mut u8;

/// Bitfield on register `PCNF0`
pub const PFIFTY0: *mut u8 = 0x80 as *mut u8;

/// Bitfield on register `PCNF0`
pub const PLOCK0: *mut u8 = 0x20 as *mut u8;

/// Bitfield on register `PCNF2`
pub const POP2: *mut u8 = 0x4 as *mut u8;

/// Bitfield on register `PCNF2`
pub const PCLKSEL2: *mut u8 = 0x2 as *mut u8;

/// Bitfield on register `PCNF2`
pub const PALOCK2: *mut u8 = 0x40 as *mut u8;

/// Bitfield on register `PCNF2`
pub const PLOCK2: *mut u8 = 0x20 as *mut u8;

/// Bitfield on register `PCNF2`
pub const PFIFTY2: *mut u8 = 0x80 as *mut u8;

/// Bitfield on register `PCNF2`
pub const PMODE2: *mut u8 = 0x18 as *mut u8;

/// Bitfield on register `PCNF2`
pub const POME2: *mut u8 = 0x1 as *mut u8;

/// Bitfield on register `PCNFE2`
pub const PISEL2B1: *mut u8 = 0x1 as *mut u8;

/// Bitfield on register `PCNFE2`
pub const PASDLK2: *mut u8 = 0xE0 as *mut u8;

/// Bitfield on register `PCNFE2`
pub const PISEL2A1: *mut u8 = 0x2 as *mut u8;

/// Bitfield on register `PCNFE2`
pub const PELEV2B1: *mut u8 = 0x4 as *mut u8;

/// Bitfield on register `PCNFE2`
pub const PBFM21: *mut u8 = 0x10 as *mut u8;

/// Bitfield on register `PCNFE2`
pub const PELEV2A1: *mut u8 = 0x8 as *mut u8;

/// Bitfield on register `PCTL0`
pub const PAOC0B: *mut u8 = 0x10 as *mut u8;

/// Bitfield on register `PCTL0`
pub const PCCYC0: *mut u8 = 0x2 as *mut u8;

/// Bitfield on register `PCTL0`
pub const PAOC0A: *mut u8 = 0x8 as *mut u8;

/// Bitfield on register `PCTL0`
pub const PPRE0: *mut u8 = 0xC0 as *mut u8;

/// Bitfield on register `PCTL0`
pub const PRUN0: *mut u8 = 0x1 as *mut u8;

/// Bitfield on register `PCTL0`
pub const PBFM0: *mut u8 = 0x24 as *mut u8;

/// Bitfield on register `PCTL2`
pub const PPRE2: *mut u8 = 0xC0 as *mut u8;

/// Bitfield on register `PCTL2`
pub const PBFM2: *mut u8 = 0x20 as *mut u8;

/// Bitfield on register `PCTL2`
pub const PAOC2B: *mut u8 = 0x10 as *mut u8;

/// Bitfield on register `PCTL2`
pub const PRUN2: *mut u8 = 0x1 as *mut u8;

/// Bitfield on register `PCTL2`
pub const PAOC2A: *mut u8 = 0x8 as *mut u8;

/// Bitfield on register `PCTL2`
pub const PCCYC2: *mut u8 = 0x2 as *mut u8;

/// Bitfield on register `PCTL2`
pub const PARUN2: *mut u8 = 0x4 as *mut u8;

/// Bitfield on register `PFRC0A`
pub const PRFM0A: *mut u8 = 0xF as *mut u8;

/// Bitfield on register `PFRC0A`
pub const PFLTE0A: *mut u8 = 0x10 as *mut u8;

/// Bitfield on register `PFRC0A`
pub const PELEV0A: *mut u8 = 0x20 as *mut u8;

/// Bitfield on register `PFRC0A`
pub const PCAE0A: *mut u8 = 0x80 as *mut u8;

/// Bitfield on register `PFRC0A`
pub const PISEL0A: *mut u8 = 0x40 as *mut u8;

/// Bitfield on register `PFRC0B`
pub const PRFM0B: *mut u8 = 0xF as *mut u8;

/// Bitfield on register `PFRC0B`
pub const PCAE0B: *mut u8 = 0x80 as *mut u8;

/// Bitfield on register `PFRC0B`
pub const PELEV0B: *mut u8 = 0x20 as *mut u8;

/// Bitfield on register `PFRC0B`
pub const PFLTE0B: *mut u8 = 0x10 as *mut u8;

/// Bitfield on register `PFRC0B`
pub const PISEL0B: *mut u8 = 0x40 as *mut u8;

/// Bitfield on register `PFRC2A`
pub const PELEV2A: *mut u8 = 0x20 as *mut u8;

/// Bitfield on register `PFRC2A`
pub const PISEL2A: *mut u8 = 0x40 as *mut u8;

/// Bitfield on register `PFRC2A`
pub const PRFM2A: *mut u8 = 0xF as *mut u8;

/// Bitfield on register `PFRC2A`
pub const PFLTE2A: *mut u8 = 0x10 as *mut u8;

/// Bitfield on register `PFRC2A`
pub const PCAE2A: *mut u8 = 0x80 as *mut u8;

/// Bitfield on register `PFRC2B`
pub const PFLTE2B: *mut u8 = 0x10 as *mut u8;

/// Bitfield on register `PFRC2B`
pub const PRFM2B: *mut u8 = 0xF as *mut u8;

/// Bitfield on register `PFRC2B`
pub const PCAE2B: *mut u8 = 0x80 as *mut u8;

/// Bitfield on register `PFRC2B`
pub const PELEV2B: *mut u8 = 0x20 as *mut u8;

/// Bitfield on register `PFRC2B`
pub const PISEL2B: *mut u8 = 0x40 as *mut u8;

/// Bitfield on register `PICR0`
pub const PCST0: *mut u16 = 0x8000 as *mut u16;

/// Bitfield on register `PICR2`
pub const PCST2: *mut u16 = 0x8000 as *mut u16;

/// Bitfield on register `PIFR0`
pub const PEOP0: *mut u8 = 0x1 as *mut u8;

/// Bitfield on register `PIFR0`
pub const POAC0A: *mut u8 = 0x40 as *mut u8;

/// Bitfield on register `PIFR0`
pub const PRN0: *mut u8 = 0x6 as *mut u8;

/// Bitfield on register `PIFR0`
pub const PEV0A: *mut u8 = 0x8 as *mut u8;

/// Bitfield on register `PIFR0`
pub const POAC0B: *mut u8 = 0x80 as *mut u8;

/// Bitfield on register `PIFR0`
pub const PEV0B: *mut u8 = 0x10 as *mut u8;

/// Bitfield on register `PIFR2`
pub const PEOP2: *mut u8 = 0x1 as *mut u8;

/// Bitfield on register `PIFR2`
pub const PRN2: *mut u8 = 0x6 as *mut u8;

/// Bitfield on register `PIFR2`
pub const POAC2A: *mut u8 = 0x40 as *mut u8;

/// Bitfield on register `PIFR2`
pub const PEV2A: *mut u8 = 0x8 as *mut u8;

/// Bitfield on register `PIFR2`
pub const POAC2B: *mut u8 = 0x80 as *mut u8;

/// Bitfield on register `PIFR2`
pub const PEV2B: *mut u8 = 0x10 as *mut u8;

/// Bitfield on register `PIFR2`
pub const PSEI2: *mut u8 = 0x20 as *mut u8;

/// Bitfield on register `PIM0`
pub const PEVE0A: *mut u8 = 0x8 as *mut u8;

/// Bitfield on register `PIM0`
pub const PEVE0B: *mut u8 = 0x10 as *mut u8;

/// Bitfield on register `PIM0`
pub const PEOPE0: *mut u8 = 0x1 as *mut u8;

/// Bitfield on register `PIM0`
pub const PEOEPE0: *mut u8 = 0x2 as *mut u8;

/// Bitfield on register `PIM2`
pub const PEVE2B: *mut u8 = 0x10 as *mut u8;

/// Bitfield on register `PIM2`
pub const PEOPE2: *mut u8 = 0x1 as *mut u8;

/// Bitfield on register `PIM2`
pub const PEVE2A: *mut u8 = 0x8 as *mut u8;

/// Bitfield on register `PIM2`
pub const PSEIE2: *mut u8 = 0x20 as *mut u8;

/// Bitfield on register `PIM2`
pub const PEOEPE2: *mut u8 = 0x2 as *mut u8;

/// Bitfield on register `PLLCSR`
pub const PLLF: *mut u8 = 0x3C as *mut u8;

/// Bitfield on register `PLLCSR`
pub const PLLE: *mut u8 = 0x2 as *mut u8;

/// Bitfield on register `PLLCSR`
pub const PLOCK: *mut u8 = 0x1 as *mut u8;

/// Bitfield on register `POM2`
pub const POMV2A: *mut u8 = 0xF as *mut u8;

/// Bitfield on register `POM2`
pub const POMV2B: *mut u8 = 0xF0 as *mut u8;

/// Bitfield on register `PRR`
pub const PRADC: *mut u8 = 0x1 as *mut u8;

/// Bitfield on register `PRR`
pub const PRPSC2: *mut u8 = 0x80 as *mut u8;

/// Bitfield on register `PRR`
pub const PRTIM1: *mut u8 = 0x10 as *mut u8;

/// Bitfield on register `PRR`
pub const PRPSCR: *mut u8 = 0x20 as *mut u8;

/// Bitfield on register `PRR`
pub const PRSPI: *mut u8 = 0x4 as *mut u8;

/// Bitfield on register `PSOC0`
pub const PISEL0B1: *mut u8 = 0x40 as *mut u8;

/// Bitfield on register `PSOC0`
pub const PISEL0A1: *mut u8 = 0x80 as *mut u8;

/// Bitfield on register `PSOC0`
pub const PSYNC0: *mut u8 = 0x30 as *mut u8;

/// Bitfield on register `PSOC0`
pub const POEN0A: *mut u8 = 0x1 as *mut u8;

/// Bitfield on register `PSOC0`
pub const POEN0B: *mut u8 = 0x4 as *mut u8;

/// Bitfield on register `PSOC2`
pub const POS2: *mut u8 = 0xC0 as *mut u8;

/// Bitfield on register `PSOC2`
pub const POEN2A: *mut u8 = 0x1 as *mut u8;

/// Bitfield on register `PSOC2`
pub const POEN2B: *mut u8 = 0x4 as *mut u8;

/// Bitfield on register `PSOC2`
pub const POEN2C: *mut u8 = 0x2 as *mut u8;

/// Bitfield on register `PSOC2`
pub const PSYNC2: *mut u8 = 0x30 as *mut u8;

/// Bitfield on register `PSOC2`
pub const POEN2D: *mut u8 = 0x8 as *mut u8;

/// Bitfield on register `SMCR`
pub const SM: *mut u8 = 0xE as *mut u8;

/// Bitfield on register `SMCR`
pub const SE: *mut u8 = 0x1 as *mut u8;

/// Bitfield on register `SPCR`
pub const MSTR: *mut u8 = 0x10 as *mut u8;

/// Bitfield on register `SPCR`
pub const SPIE: *mut u8 = 0x80 as *mut u8;

/// Bitfield on register `SPCR`
pub const SPR: *mut u8 = 0x3 as *mut u8;

/// Bitfield on register `SPCR`
pub const DORD: *mut u8 = 0x20 as *mut u8;

/// Bitfield on register `SPCR`
pub const CPOL: *mut u8 = 0x8 as *mut u8;

/// Bitfield on register `SPCR`
pub const SPE: *mut u8 = 0x40 as *mut u8;

/// Bitfield on register `SPCR`
pub const CPHA: *mut u8 = 0x4 as *mut u8;

/// Bitfield on register `SPMCSR`
pub const PGERS: *mut u8 = 0x2 as *mut u8;

/// Bitfield on register `SPMCSR`
pub const BLBSET: *mut u8 = 0x8 as *mut u8;

/// Bitfield on register `SPMCSR`
pub const SPMIE: *mut u8 = 0x80 as *mut u8;

/// Bitfield on register `SPMCSR`
pub const RWWSRE: *mut u8 = 0x10 as *mut u8;

/// Bitfield on register `SPMCSR`
pub const SIGRD: *mut u8 = 0x20 as *mut u8;

/// Bitfield on register `SPMCSR`
pub const SPMEN: *mut u8 = 0x1 as *mut u8;

/// Bitfield on register `SPMCSR`
pub const RWWSB: *mut u8 = 0x40 as *mut u8;

/// Bitfield on register `SPMCSR`
pub const PGWRT: *mut u8 = 0x4 as *mut u8;

/// Bitfield on register `SPSR`
pub const SPI2X: *mut u8 = 0x1 as *mut u8;

/// Bitfield on register `SPSR`
pub const SPIF: *mut u8 = 0x80 as *mut u8;

/// Bitfield on register `SPSR`
pub const WCOL: *mut u8 = 0x40 as *mut u8;

/// Bitfield on register `SREG`
pub const C: *mut u8 = 0x1 as *mut u8;

/// Bitfield on register `SREG`
pub const T: *mut u8 = 0x40 as *mut u8;

/// Bitfield on register `SREG`
pub const S: *mut u8 = 0x10 as *mut u8;

/// Bitfield on register `SREG`
pub const N: *mut u8 = 0x4 as *mut u8;

/// Bitfield on register `SREG`
pub const H: *mut u8 = 0x20 as *mut u8;

/// Bitfield on register `SREG`
pub const Z: *mut u8 = 0x2 as *mut u8;

/// Bitfield on register `SREG`
pub const V: *mut u8 = 0x8 as *mut u8;

/// Bitfield on register `SREG`
pub const I: *mut u8 = 0x80 as *mut u8;

/// Bitfield on register `TCCR1B`
pub const ICES1: *mut u8 = 0x40 as *mut u8;

/// Bitfield on register `TCCR1B`
pub const WGM13: *mut u8 = 0x10 as *mut u8;

/// Bitfield on register `TCCR1B`
pub const ICNC1: *mut u8 = 0x80 as *mut u8;

/// Bitfield on register `TCCR1B`
pub const CS1: *mut u8 = 0x7 as *mut u8;

/// Bitfield on register `TIFR1`
pub const ICF1: *mut u8 = 0x20 as *mut u8;

/// Bitfield on register `TIFR1`
pub const TOV1: *mut u8 = 0x1 as *mut u8;

/// Bitfield on register `TIMSK1`
pub const TOIE1: *mut u8 = 0x1 as *mut u8;

/// Bitfield on register `TIMSK1`
pub const ICIE1: *mut u8 = 0x20 as *mut u8;

/// Bitfield on register `WDTCSR`
pub const WDIF: *mut u8 = 0x80 as *mut u8;

/// Bitfield on register `WDTCSR`
pub const WDIE: *mut u8 = 0x40 as *mut u8;

/// Bitfield on register `WDTCSR`
pub const WDE: *mut u8 = 0x8 as *mut u8;

/// Bitfield on register `WDTCSR`
pub const WDCE: *mut u8 = 0x10 as *mut u8;

/// Bitfield on register `WDTCSR`
pub const WDP: *mut u8 = 0x27 as *mut u8;

/// `ANALOG_ADC_AUTO_TRIGGER_4BITS` value group
#[allow(non_upper_case_globals)]
pub mod analog_adc_auto_trigger_4bits {
   /// Free Running mode.
   pub const VAL_0x00: u32 = 0x0;
   /// Analog Comparator.
   pub const VAL_0x01: u32 = 0x1;
   /// External Interrupt Request 0.
   pub const VAL_0x02: u32 = 0x2;
   /// Timer/Counter0 Compare Match A.
   pub const VAL_0x03: u32 = 0x3;
   /// Timer/Counter0 Overflow.
   pub const VAL_0x04: u32 = 0x4;
   /// Timer/Counter1 Compare Match B.
   pub const VAL_0x05: u32 = 0x5;
   /// Timer/Counter1 Overflow.
   pub const VAL_0x06: u32 = 0x6;
   /// Timer/Counter1 Capture Event.
   pub const VAL_0x07: u32 = 0x7;
   /// PSC0ASY Event.
   pub const VAL_0x08: u32 = 0x8;
   /// PSC1ASY Event.
   pub const VAL_0x09: u32 = 0x9;
   /// PSC2ASY Event.
   pub const VAL_0x0A: u32 = 0xA;
   /// Analog comparator 1.
   pub const VAL_0x0B: u32 = 0xB;
   /// Analog comparator 2.
   pub const VAL_0x0C: u32 = 0xC;
}

/// `ANALOG_ADC_V_REF2` value group
#[allow(non_upper_case_globals)]
pub mod analog_adc_v_ref2 {
   /// AREF, Internal Vref turned off.
   pub const VAL_0x00: u32 = 0x0;
   /// AVCC with external capacitor at AREF pin.
   pub const VAL_0x01: u32 = 0x1;
   /// Reserved.
   pub const VAL_0x02: u32 = 0x2;
   /// Internal 2.56V Voltage Reference with external capacitor at AREF pin.
   pub const VAL_0x03: u32 = 0x3;
}

/// `ANALOG_COMP_INTERRUPT` value group
#[allow(non_upper_case_globals)]
pub mod analog_comp_interrupt {
   /// Interrupt on Toggle.
   pub const VAL_0x00: u32 = 0x0;
   /// Reserved.
   pub const VAL_0x01: u32 = 0x1;
   /// Interrupt on Falling Edge.
   pub const VAL_0x02: u32 = 0x2;
   /// Interrupt on Rising Edge.
   pub const VAL_0x03: u32 = 0x3;
}

/// `ANALOG_DAC_AUTO_TRIGGER` value group
#[allow(non_upper_case_globals)]
pub mod analog_dac_auto_trigger {
   /// Analog Comparator 0.
   pub const VAL_0x00: u32 = 0x0;
   /// Analog Comparator 1.
   pub const VAL_0x01: u32 = 0x1;
   /// External Interrupt Request 0.
   pub const VAL_0x02: u32 = 0x2;
   /// Timer/Counter0 Compare Match A.
   pub const VAL_0x03: u32 = 0x3;
   /// Timer/Counter0 Overflow.
   pub const VAL_0x04: u32 = 0x4;
   /// Timer/Counter1 Compare Match B.
   pub const VAL_0x05: u32 = 0x5;
   /// Timer/Counter1 Overflow.
   pub const VAL_0x06: u32 = 0x6;
   /// Timer/Counter1 Capture Event.
   pub const VAL_0x07: u32 = 0x7;
}

/// `CLK_SEL_3BIT_EXT` value group
#[allow(non_upper_case_globals)]
pub mod clk_sel_3bit_ext {
   /// No Clock Source (Stopped).
   pub const VAL_0x00: u32 = 0x0;
   /// Running, No Prescaling.
   pub const VAL_0x01: u32 = 0x1;
   /// Running, CLK/8.
   pub const VAL_0x02: u32 = 0x2;
   /// Running, CLK/64.
   pub const VAL_0x03: u32 = 0x3;
   /// Running, CLK/256.
   pub const VAL_0x04: u32 = 0x4;
   /// Running, CLK/1024.
   pub const VAL_0x05: u32 = 0x5;
   /// Running, ExtClk Tx Falling Edge.
   pub const VAL_0x06: u32 = 0x6;
   /// Running, ExtClk Tx Rising Edge.
   pub const VAL_0x07: u32 = 0x7;
}

/// `COMM_SCK_RATE_3BIT` value group
#[allow(non_upper_case_globals)]
pub mod comm_sck_rate_3bit {
   /// fosc/4.
   pub const VAL_0x00: u32 = 0x0;
   /// fosc/16.
   pub const VAL_0x01: u32 = 0x1;
   /// fosc/64.
   pub const VAL_0x02: u32 = 0x2;
   /// fosc/128.
   pub const VAL_0x03: u32 = 0x3;
   /// fosc/2.
   pub const VAL_0x04: u32 = 0x4;
   /// fosc/8.
   pub const VAL_0x05: u32 = 0x5;
   /// fosc/32.
   pub const VAL_0x06: u32 = 0x6;
   /// fosc/64.
   pub const VAL_0x07: u32 = 0x7;
}

/// `CPU_CLK_PRESCALE_4_BITS_SMALL` value group
#[allow(non_upper_case_globals)]
pub mod cpu_clk_prescale_4_bits_small {
   /// 1.
   pub const VAL_0x00: u32 = 0x0;
   /// 2.
   pub const VAL_0x01: u32 = 0x1;
   /// 4.
   pub const VAL_0x02: u32 = 0x2;
   /// 8.
   pub const VAL_0x03: u32 = 0x3;
   /// 16.
   pub const VAL_0x04: u32 = 0x4;
   /// 32.
   pub const VAL_0x05: u32 = 0x5;
   /// 64.
   pub const VAL_0x06: u32 = 0x6;
   /// 128.
   pub const VAL_0x07: u32 = 0x7;
   /// 256.
   pub const VAL_0x08: u32 = 0x8;
}

/// `CPU_SLEEP_MODE_3BITS4` value group
#[allow(non_upper_case_globals)]
pub mod cpu_sleep_mode_3bits4 {
   /// Idle.
   pub const IDLE: u32 = 0x0;
   /// ADC Noise Reduction (If Available).
   pub const ADC: u32 = 0x1;
   /// Power Down.
   pub const PDOWN: u32 = 0x2;
   /// Reserved.
   pub const VAL_0x03: u32 = 0x3;
   /// Reserved.
   pub const VAL_0x04: u32 = 0x4;
   /// Reserved.
   pub const VAL_0x05: u32 = 0x5;
   /// Standby.
   pub const STDBY: u32 = 0x6;
   /// Reserved.
   pub const VAL_0x07: u32 = 0x7;
}

/// `ENUM_BLB` value group
#[allow(non_upper_case_globals)]
pub mod enum_blb {
   /// LPM and SPM prohibited in Application Section.
   pub const LPM_SPM_DISABLE: u32 = 0x0;
   /// LPM prohibited in Application Section.
   pub const LPM_DISABLE: u32 = 0x1;
   /// SPM prohibited in Application Section.
   pub const SPM_DISABLE: u32 = 0x2;
   /// No lock on SPM and LPM in Application Section.
   pub const NO_LOCK: u32 = 0x3;
}

/// `ENUM_BLB2` value group
#[allow(non_upper_case_globals)]
pub mod enum_blb2 {
   /// LPM and SPM prohibited in Boot Section.
   pub const LPM_SPM_DISABLE: u32 = 0x0;
   /// LPM prohibited in Boot Section.
   pub const LPM_DISABLE: u32 = 0x1;
   /// SPM prohibited in Boot Section.
   pub const SPM_DISABLE: u32 = 0x2;
   /// No lock on SPM and LPM in Boot Section.
   pub const NO_LOCK: u32 = 0x3;
}

/// `ENUM_BODLEVEL` value group
#[allow(non_upper_case_globals)]
pub mod enum_bodlevel {
   /// Brown-out detection disabled.
   pub const DISABLED: u32 = 0x7;
   /// Brown-out detection at VCC=1.8 V.
   pub const _1V8: u32 = 0x6;
   /// Brown-out detection at VCC=2.7 V.
   pub const _2V7: u32 = 0x5;
   /// Brown-out detection at VCC=4.3 V.
   pub const _4V3: u32 = 0x4;
   /// Brown-out detection at VCC=2.3 V.
   pub const _2V3: u32 = 0x3;
   /// Brown-out detection at VCC=2.2 V.
   pub const _2V2: u32 = 0x2;
   /// Brown-out detection at VCC=1.9 V.
   pub const _1V9: u32 = 0x1;
   /// Brown-out detection at VCC=2.0 V.
   pub const _2V0: u32 = 0x0;
}

/// `ENUM_BOOTSZ` value group
#[allow(non_upper_case_globals)]
pub mod enum_bootsz {
   /// Boot Flash size=128 words Boot address=$0F80.
   pub const _128W_0F80: u32 = 0x3;
   /// Boot Flash size=256 words Boot address=$0F00.
   pub const _256W_0F00: u32 = 0x2;
   /// Boot Flash size=512 words Boot address=$0E00.
   pub const _512W_0E00: u32 = 0x1;
   /// Boot Flash size=1024 words Boot address=$0C00.
   pub const _1024W_0C00: u32 = 0x0;
}

/// `ENUM_LB` value group
#[allow(non_upper_case_globals)]
pub mod enum_lb {
   /// Further programming and verification disabled.
   pub const PROG_VER_DISABLED: u32 = 0x0;
   /// Further programming disabled.
   pub const PROG_DISABLED: u32 = 0x2;
   /// No memory lock features enabled.
   pub const NO_LOCK: u32 = 0x3;
}

/// `ENUM_SUT_CKSEL` value group
#[allow(non_upper_case_globals)]
pub mod enum_sut_cksel {
   /// Ext. CK; PLLin: RC8; SUT: 6CK/14CK+0ms; \[CKSEL=0000 SUT=00\].
   pub const EXTCLK_PLLIN_RC_8MHZ_6CK_14CK_0MS: u32 = 0x0;
   /// Ext. CK; PLLin: RC8 MHz; SUT:6 CK/14CK+4.1 ms; \[CKSEL=0000 SUT=01\].
   pub const EXTCLK_PLLIN_RC_8MHZ_6CK_14CK_4MS1: u32 = 0x10;
   /// Ext. CK; PLLin: RC8 MHz; SUT:6 CK/14CK+65 ms; \[CKSEL=0000 SUT=10\].
   pub const EXTCLK_PLLIN_RC_8MHZ_6CK_14CK_65MS: u32 = 0x20;
   /// RC8 MHz; PLLin: RC8; SUT: 6CK/14CK+0ms; \[CKSEL=0010 SUT=00\].
   pub const RC_8MHZ_PLLIN_RC_8MHZ_6CK_14CK_0MS: u32 = 0x2;
   /// RC8 MHz; PLLin: RC8; SUT: 6CK/14CK+4.1 ms; \[CKSEL=0010 SUT=01\].
   pub const RC_8MHZ_PLLIN_RC_8MHZ_6CK_14CK_4MS1: u32 = 0x12;
   /// RC8 MHz; PLLin: RC8; SUT: 6CK/14CK+65 ms;  \[CKSEL=0010 SUT=10\].
   pub const RC_8MHZ_PLLIN_RC_8MHZ_6CK_14CK_65MS: u32 = 0x22;
   /// XOSC.9-3MHz; PLLin: RC8; SUT: 258CK/14CK+4.1 ms; \[CKSEL=1000 SUT=00\].
   pub const XOSC_PLLIN_RC_8MHZ_258CK_14CK_4MS1: u32 = 0x8;
   /// XOSC.9-3MHz; PLLin: RC8; SUT: 258CK/14CK+65 ms; \[CKSEL=1000 SUT=01\].
   pub const XOSC_PLLIN_RC_8MHZ_258CK_14CK_65MS: u32 = 0x18;
   /// XOSC.9-3MHz; PLLin: RC8; SUT: 1KCK/14CK+0 ms; \[CKSEL=1000 SUT=10\].
   pub const XOSC_PLLIN_RC_8MHZ_1KCK_14CK_0MS: u32 = 0x28;
   /// XOSC.9-3MHz; PLLin: RC8; SUT: 1KCK/14CK+4.1 ms; \[CKSEL=1000 SUT=11\].
   pub const XOSC_PLLIN_RC_8MHZ_1KCK_14CK_4MS1: u32 = 0x38;
   /// XOSC.9-3MHz; PLLin: RC8; SUT: 1KCK/14CK+65 ms; \[CKSEL=1001 SUT=00\].
   pub const XOSC_PLLIN_RC_8MHZ_1KCK_14CK_65MS: u32 = 0x9;
   /// XOSC.9-3MHz; PLLin: RC8; SUT: 16KCK/14CK+0 ms; \[CKSEL=1001 SUT=01\].
   pub const XOSC_PLLIN_RC_8MHZ_16KCK_14CK_0MS: u32 = 0x19;
   /// XOSC.9-3MHz; PLLin: RC8; SUT: 16KCK/14CK+4.1 ms; \[CKSEL=1001 SUT=10\].
   pub const XOSC_PLLIN_RC_8MHZ_16KCK_14CK_4MS1: u32 = 0x29;
   /// XOSC.9-3MHz; PLLin: RC8; SUT: 16KCK/14CK+65 ms;  \[CKSEL=1001 SUT=11\].
   pub const XOSC_PLLIN_RC_8MHZ_16KCK_14CK_65MS: u32 = 0x39;
   /// XOSC3-8MHz; PLLin: RC8; SUT: 258CK/14CK+4.1 ms; \[CKSEL=1010 SUT=00\].
   pub const XOSC_3MHZ_8MHZ_PLLIN_RC_8MHZ_258CK_14CK_4MS1: u32 = 0xA;
   /// XOSC3-8MHz; PLLin: RC8; SUT: 258CK/14CK+65 ms; \[CKSEL=1010 SUT=01\].
   pub const XOSC_3MHZ_8MHZ_PLLIN_RC_8MHZ_258CK_14CK_65MS: u32 = 0x1A;
   /// XOSC3-8MHz; PLLin: RC8; SUT: 1KCK/14CK+0 ms; \[CKSEL=1010 SUT=10\].
   pub const XOSC_3MHZ_8MHZ_PLLIN_RC_8MHZ_1KCK_14CK_0MS: u32 = 0x2A;
   /// XOSC3-8MHz; PLLin: RC8; SUT: 1KCK/14CK+4.1 ms; \[CKSEL=1010 SUT=11\].
   pub const XOSC_3MHZ_8MHZ_PLLIN_RC_8MHZ_1KCK_14CK_4MS1: u32 = 0x3A;
   /// XOSC3-8MHz; PLLin: RC8; SUT: 1KCK/14CK+65 ms;  \[CKSEL=1011 SUT=00\].
   pub const XOSC_3MHZ_8MHZ_PLLIN_RC_8MHZ_1KCK_14CK_65MS: u32 = 0xB;
   /// XOSC3-8MHz; PLLin: RC8; SUT: 16KCK/14CK+0 ms; \[CKSEL=1011 SUT=01\].
   pub const XOSC_3MHZ_8MHZ_PLLIN_RC_8MHZ_16KCK_14CK_0MS: u32 = 0x1B;
   /// XOSC3-8MHz; PLLin: RC8; SUT: 16KCK/14CK+4.1 ms; \[CKSEL=1011 SUT=10\].
   pub const XOSC_3MHZ_8MHZ_PLLIN_RC_8MHZ_16KCK_14CK_4MS1: u32 = 0x2B;
   /// XOSC3-8MHz; PLLin: RC8; SUT: 16KCK/14CK+65 ms;  \[CKSEL=1011 SUT=11\].
   pub const XOSC_3MHZ_8MHZ_PLLIN_RC_8MHZ_16KCK_14CK_65MS: u32 = 0x3B;
   /// XOSC3-8MHz; PLLin: XOSC; SUT: 258CK/14CK+4.1 ms; \[CKSEL=1100 SUT=00\].
   pub const XOSC_3MHZ_8MHZ_PLLIN_XOSC_258CK_14CK_4MS1: u32 = 0xC;
   /// XOSC3-8MHz; PLLin: XOSC; SUT: 258CK/14CK+65 ms;  \[CKSEL=1100 SUT=01\].
   pub const XOSC_3MHZ_8MHZ_PLLIN_XOSC_258CK_14CK_65MS: u32 = 0x1C;
   /// XOSC3-8MHz; PLLin: XOSC; SUT: 1KCK/14CK+0 ms; \[CKSEL=1100 SUT=10\].
   pub const XOSC_3MHZ_8MHZ_PLLIN_XOSC_1KCK_14CK_0MS: u32 = 0x2C;
   /// XOSC3-8MHz; PLLin: XOSC; SUT: 1KCK/14CK+4.1 ms; \[CKSEL=1100 SUT=11\].
   pub const XOSC_3MHZ_8MHZ_PLLIN_XOSC_1KCK_14CK_4MS1: u32 = 0x3C;
   /// XOSC3-8MHz; PLLin: XOSC; SUT: 1KCK/14CK+65 ms;  \[CKSEL=1101 SUT=00.
   pub const XOSC_3MHZ_8MHZ_PLLIN_XOSC_1KCK_14CK_65MS: u32 = 0xD;
   /// XOSC3-8MHz; PLLin: XOSC; SUT: 16KCK/14CK+0 ms; \[CKSEL=1101 SUT=01\].
   pub const XOSC_3MHZ_8MHZ_PLLIN_XOSC_16KCK_14CK_0MS: u32 = 0x1D;
   /// XOSC3-8MHz; PLLin: XOSC; SUT: 16KCK/14CK+4.1 ms; \[CKSEL=1101 SUT=10\].
   pub const XOSC_3MHZ_8MHZ_PLLIN_XOSC_16KCK_14CK_4MS1: u32 = 0x2D;
   /// XOSC3-8MHz; PLLin: XOSC; SUT: 16KCK/14CK+65 ms;  \[CKSEL=1101 SUT=11\].
   pub const XOSC_3MHZ_8MHZ_PLLIN_XOSC_16KCK_14CK_65MS: u32 = 0x3D;
   /// XOSC8-16MHz; PLLin: RC8; SUT: 258CK/14CK+4.1 ms; \[CKSEL=1110 SUT=00\].
   pub const XOSC_8MHZ_16MHZ_PLLIN_RC_8MHZ_258CK_14CK_4MS1: u32 = 0xE;
   /// XOSC8-16MHz; PLLin: RC8; SUT: 258CK/14CK+65 ms;  \[CKSEL=1110 SUT=01\].
   pub const XOSC_8MHZ_16MHZ_PLLIN_RC_8MHZ_258CK_14CK_65MS: u32 = 0x1E;
   /// XOSC8-16MHz; PLLin: RC8; SUT: 1KCK/14CK+0 ms; \[CKSEL=1110 SUT=10\].
   pub const XOSC_8MHZ_16MHZ_PLLIN_RC_8MHZ_1KCK_14CK_0MS: u32 = 0x2E;
   /// XOSC8-16MHz; PLLin: RC8; SUT: 1KCK/14CK+4.1 ms; \[CKSEL=1110 SUT=11\].
   pub const XOSC_8MHZ_16MHZ_PLLIN_RC_8MHZ_1KCK_14CK_4MS1: u32 = 0x3E;
   /// XOSC8-16MHz; PLLin: RC8; SUT: 1KCK/14CK+65 ms; \[CKSEL=1111 SUT=00\].
   pub const XOSC_8MHZ_16MHZ_PLLIN_RC_8MHZ_1KCK_14CK_65MS: u32 = 0xF;
   /// XOSC8-16MHz; PLLin: RC8; SUT: 16KCK/14CK+0 ms; \[CKSEL=1111 SUT=01\].
   pub const XOSC_8MHZ_16MHZ_PLLIN_RC_8MHZ_16KCK_14CK_0MS: u32 = 0x1F;
   /// XOSC8-16MHz; PLLin: RC8; SUT: 16KCK/14CK+4.1 ms; \[CKSEL=1111 SUT=10\].
   pub const XOSC_8MHZ_16MHZ_PLLIN_RC_8MHZ_16KCK_14CK_4MS1: u32 = 0x2F;
   /// XOSC8-16MHz; PLLin: RC8; SUT: 16KCK/14CK+65 ms;  \[CKSEL=1111 SUT=11\].
   pub const XOSC_8MHZ_16MHZ_PLLIN_RC_8MHZ_16KCK_14CK_65MS: u32 = 0x3F;
   /// WD128 KHz; SUT: 1KCK/14CK+0 ms; \[CKSEL=0011 SUT=00\].
   pub const WDOSC_128KHZ_1KCK_14CK_0MS: u32 = 0x3;
   /// WD128 KHz; SUT: 1KCK/14CK+4.1 ms; \[CKSEL=0011 SUT=01\].
   pub const WDOSC_128KHZ_1KCK_14CK_4MS1: u32 = 0x13;
   /// WD128 KHz; SUT: 1KCK/14CK+65 ms; \[CKSEL=0011 SUT=10\].
   pub const WDOSC_128KHZ_1KCK_14CK_65MS: u32 = 0x23;
   /// WD128 KHz; SUT: 16KCK/14CK+0 ms; \[CKSEL=0011 SUT=11\].
   pub const WDOSC_128KHZ_16KCK_14CK_0MS: u32 = 0x33;
   /// PLL/4; PLLin: RC8; SUT: 1KCK/14CK+0 ms; \[CKSEL=0001 SUT=00\].
   pub const PLLCLK_DIV4_PLLIN_RC_8MHZ_1KCK_14CK_0MS: u32 = 0x1;
   /// PLL/4; PLLin: RC8; SUT: 1KCK/14CK+4 ms;   \[CKSEL=0001 SUT=01\].
   pub const PLLCLK_DIV4_PLLIN_RC_8MHZ_1KCK_14CK_4MS: u32 = 0x11;
   /// PLL/4; PLLin: RC8; SUT: 1KCK/14CK+64 ms;   \[CKSEL=0001 SUT=10\].
   pub const PLLCLK_DIV4_PLLIN_RC_8MHZ_1KCK_14CK_64MS: u32 = 0x21;
   /// PLL/4; PLLin: Ext. CK; SUT: 16KCK/14CK+0 ms; \[CKSEL=0101 SUT=00\].
   pub const PLLCLK_DIV4_PLLIN_EXTCLK_16KCK_14CK_0MS: u32 = 0x5;
   /// PLL/4; PLLin: Ext. CK; SUT: 16KCK/14CK+64 ms; \[CKSEL=0101 SUT=11\].
   pub const PLLCLK_DIV4_PLLIN_EXTCLK_16KCK_14CK_64MS: u32 = 0x35;
   /// PLL/4; PLLin: XOSC; SUT: 1KCK/14CK+0 ms; \[CKSEL=0100 SUT=00\].
   pub const PLLCLK_DIV4_PLLIN_XOSC_1KCK_14CK_0MS: u32 = 0x4;
   /// PLL/4; PLLin: XOSC; SUT: 1KCK/14CK+4 ms; \[CKSEL=0100 SUT=01\].
   pub const PLLCLK_DIV4_PLLIN_XOSC_1KCK_14CK_4MS: u32 = 0x14;
   /// PLL/4; PLLin: XOSC; SUT: 1KCK/14CK+64 ms; \[CKSEL=0100 SUT=10\].
   pub const PLLCLK_DIV4_PLLIN_XOSC_1KCK_14CK_64MS: u32 = 0x24;
   /// PLL/4; PLLin: XOSC; SUT: 16KCK/14CK+0 ms; \[CKSEL=0100 SUT=11\].
   pub const PLLCLK_DIV4_PLLIN_XOSC_16KCK_14CK_0MS: u32 = 0x34;
   /// RC 1 MHz; SUT: 1KCK/14CK+0 ms; \[CKSEL=0110 SUT=00\].
   pub const RC_1MHZ_1KCK_14CK_0MS: u32 = 0x6;
   /// RC 1 MHz; SUT: 1KCK/14CK+4.1 ms; \[CKSEL=0110 SUT=01\].
   pub const RC_1MHZ_1KCK_14CK_4MS1: u32 = 0x16;
   /// RC 1 MHz; SUT: 1KCK/14CK+65 ms;  \[CKSEL=0110 SUT=10\].
   pub const RC_1MHZ_1KCK_14CK_65MS: u32 = 0x26;
}

/// Interrupt Sense Control
#[allow(non_upper_case_globals)]
pub mod interrupt_sense_control {
   /// Low Level of INTX.
   pub const VAL_0x00: u32 = 0x0;
   /// Any Logical Change of INTX.
   pub const VAL_0x01: u32 = 0x1;
   /// Falling Edge of INTX.
   pub const VAL_0x02: u32 = 0x2;
   /// Rising Edge of INTX.
   pub const VAL_0x03: u32 = 0x3;
}

/// Oscillator Calibration Values
#[allow(non_upper_case_globals)]
pub mod osccal_value_addresses {
   /// 8.0 MHz.
   pub const _8_0_MHz: u32 = 0x0;
}

/// `WDOG_TIMER_PRESCALE_4BITS` value group
#[allow(non_upper_case_globals)]
pub mod wdog_timer_prescale_4bits {
   /// Oscillator Cycles 2K.
   pub const VAL_0x00: u32 = 0x0;
   /// Oscillator Cycles 4K.
   pub const VAL_0x01: u32 = 0x1;
   /// Oscillator Cycles 8K.
   pub const VAL_0x02: u32 = 0x2;
   /// Oscillator Cycles 16K.
   pub const VAL_0x03: u32 = 0x3;
   /// Oscillator Cycles 32K.
   pub const VAL_0x04: u32 = 0x4;
   /// Oscillator Cycles 64K.
   pub const VAL_0x05: u32 = 0x5;
   /// Oscillator Cycles 128K.
   pub const VAL_0x06: u32 = 0x6;
   /// Oscillator Cycles 256K.
   pub const VAL_0x07: u32 = 0x7;
   /// Oscillator Cycles 512K.
   pub const VAL_0x08: u32 = 0x8;
   /// Oscillator Cycles 1024K.
   pub const VAL_0x09: u32 = 0x9;
}