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
#[doc = r" Value read from the register"]
pub struct R {
    bits: u32,
}
#[doc = r" Value to write to the register"]
pub struct W {
    bits: u32,
}
impl super::UDMACH14BSEL {
    #[doc = r" Modifies the contents of the register"]
    #[inline]
    pub fn modify<F>(&self, f: F)
    where
        for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W,
    {
        let bits = self.register.get();
        let r = R { bits: bits };
        let mut w = W { bits: bits };
        f(&r, &mut w);
        self.register.set(w.bits);
    }
    #[doc = r" Reads the contents of the register"]
    #[inline]
    pub fn read(&self) -> R {
        R {
            bits: self.register.get(),
        }
    }
    #[doc = r" Writes to the register"]
    #[inline]
    pub fn write<F>(&self, f: F)
    where
        F: FnOnce(&mut W) -> &mut W,
    {
        let mut w = W::reset_value();
        f(&mut w);
        self.register.set(w.bits);
    }
    #[doc = r" Writes the reset value to the register"]
    #[inline]
    pub fn reset(&self) {
        self.write(|w| w)
    }
}
#[doc = "Possible values of the field `EV`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum EVR {
    #[doc = "Always asserted"]
    ALWAYS_ACTIVE,
    #[doc = "CPU halted"]
    CPU_HALTED,
    #[doc = "RTC periodic event controlled by AON_RTC:CTL.RTC_UPD_EN"]
    AON_RTC_UPD,
    #[doc = "DMA burst request event from AUX, configured by AUX_EVCTL:DMACTL"]
    AUX_DMABREQ,
    #[doc = "DMA single request event from AUX, configured by AUX_EVCTL:DMACTL"]
    AUX_DMASREQ,
    #[doc = "DMA sofware trigger from AUX, triggered by AUX_EVCTL:DMASWREQ.START"]
    AUX_SW_DMABREQ,
    #[doc = "AUX ADC interrupt event, corresponds to AUX_EVCTL:EVTOMCUFLAGS.AUX_ADC_IRQ. Status flags are found here AUX_EVCTL:EVTOMCUFLAGS"]
    AUX_ADC_IRQ,
    #[doc = "Loopback of OBSMUX0 through AUX, corresponds to AUX_EVCTL:EVTOMCUFLAGS.MCU_OBSMUX0"]
    AUX_OBSMUX0,
    #[doc = "AUX ADC FIFO watermark event, corresponds to AUX_EVCTL:EVTOMCUFLAGS.AUX_ADC_FIFO_ALMOST_FULL"]
    AUX_ADC_FIFO_ALMOST_FULL,
    #[doc = "AUX ADC done, corresponds to AUX_EVCTL:EVTOMCUFLAGS.AUX_ADC_DONE"]
    AUX_ADC_DONE,
    #[doc = "Autotake event from AUX semaphore, configured by AUX_SMPH:AUTOTAKE"]
    AUX_SMPH_AUTOTAKE_DONE,
    #[doc = "AUX timer 1 event, corresponds to AUX_EVCTL:EVTOMCUFLAGS.AUX_TIMER1_EV"]
    AUX_TIMER1_EV,
    #[doc = "AUX timer 0 event, corresponds to AUX_EVCTL:EVTOMCUFLAGS.AUX_TIMER0_EV"]
    AUX_TIMER0_EV,
    #[doc = "AUX TDC measurement done event, corresponds to the flag AUX_EVCTL:EVTOMCUFLAGS.AUX_TDC_DONE and the AUX_TDC status AUX_TDC:STAT.DONE"]
    AUX_TDC_DONE,
    #[doc = "AUX Compare B event, corresponds to AUX_EVCTL:EVTOMCUFLAGS.AUX_COMPB"]
    AUX_COMPB,
    #[doc = "AUX Compare A event, corresponds to AUX_EVCTL:EVTOMCUFLAGS.AUX_COMPA"]
    AUX_COMPA,
    #[doc = "AON wakeup event, the corresponding flag is here AUX_EVCTL:EVTOMCUFLAGS.AUX_WU_EV"]
    AUX_AON_WU_EV,
    #[doc = "TRNG Interrupt event, controlled by TRNG:IRQEN.EN"]
    TRNG_IRQ,
    #[doc = "Software event 3, triggered by SWEV.SWEV3"]
    SWEV3,
    #[doc = "Software event 2, triggered by SWEV.SWEV2"]
    SWEV2,
    #[doc = "Software event 1, triggered by SWEV.SWEV1"]
    SWEV1,
    #[doc = "Software event 0, triggered by SWEV.SWEV0"]
    SWEV0,
    #[doc = "Watchdog non maskable interrupt event, controlled by WDT:CTL.INTTYPE"]
    WDT_NMI,
    #[doc = "CRYPTO DMA input done event, the correspondingg flag is CRYPTO:IRQSTAT.DMA_IN_DONE. Controlled by CRYPTO:IRQEN.DMA_IN_DONE"]
    CRYPTO_DMA_DONE_IRQ,
    #[doc = "CRYPTO result available interupt event, the corresponding flag is found here CRYPTO:IRQSTAT.RESULT_AVAIL. Controlled by CRYPTO:IRQSTAT.RESULT_AVAIL"]
    CRYPTO_RESULT_AVAIL_IRQ,
    #[doc = "Port capture event from IOC, configured by IOC:IOCFGn.PORT_ID. Events on ports configured with ENUM PORT_EVENT7 wil be routed here."]
    PORT_EVENT7,
    #[doc = "Port capture event from IOC, configured by IOC:IOCFGn.PORT_ID. Events on ports configured with ENUM PORT_EVENT6 wil be routed here."]
    PORT_EVENT6,
    #[doc = "Port capture event from IOC, configured by IOC:IOCFGn.PORT_ID. Events on ports configured with ENUM PORT_EVENT4 wil be routed here."]
    PORT_EVENT5,
    #[doc = "Port capture event from IOC, configured by IOC:IOCFGn.PORT_ID. Events on ports configured with ENUM PORT_EVENT4 wil be routed here."]
    PORT_EVENT4,
    #[doc = "Port capture event from IOC, configured by IOC:IOCFGn.PORT_ID. Events on ports configured with ENUM PORT_EVENT3 wil be routed here."]
    PORT_EVENT3,
    #[doc = "Port capture event from IOC, configured by IOC:IOCFGn.PORT_ID. Events on ports configured with ENUM PORT_EVENT2 wil be routed here."]
    PORT_EVENT2,
    #[doc = "Port capture event from IOC, configured by IOC:IOCFGn.PORT_ID. Events on ports configured with ENUM PORT_EVENT1 wil be routed here."]
    PORT_EVENT1,
    #[doc = "Port capture event from IOC, configured by IOC:IOCFGn.PORT_ID. Events on ports configured with ENUM PORT_EVENT0 wil be routed here."]
    PORT_EVENT0,
    #[doc = "GPT3B DMA trigger event. Configured by GPT3:DMAEV"]
    GPT3B_DMABREQ,
    #[doc = "GPT3A DMA trigger event. Configured by GPT3:DMAEV"]
    GPT3A_DMABREQ,
    #[doc = "GPT2B DMA trigger event. Configured by GPT2:DMAEV"]
    GPT2B_DMABREQ,
    #[doc = "GPT2A DMA trigger event. Configured by GPT2:DMAEV"]
    GPT2A_DMABREQ,
    #[doc = "GPT1B DMA trigger event. Configured by GPT1:DMAEV"]
    GPT1B_DMABREQ,
    #[doc = "GPT1A DMA trigger event. Configured by GPT1:DMAEV"]
    GPT1A_DMABREQ,
    #[doc = "GPT0B DMA trigger event. Configured by GPT0:DMAEV"]
    GPT0B_DMABREQ,
    #[doc = "GPT0A DMA trigger event. Configured by GPT0:DMAEV"]
    GPT0A_DMABREQ,
    #[doc = "GPT3B compare event. Configured by GPT3:TBMR.TCACT"]
    GPT3B_CMP,
    #[doc = "GPT3A compare event. Configured by GPT3:TAMR.TCACT"]
    GPT3A_CMP,
    #[doc = "GPT2B compare event. Configured by GPT2:TBMR.TCACT"]
    GPT2B_CMP,
    #[doc = "GPT2A compare event. Configured by GPT2:TAMR.TCACT"]
    GPT2A_CMP,
    #[doc = "GPT1B compare event. Configured by GPT1:TBMR.TCACT"]
    GPT1B_CMP,
    #[doc = "GPT1A compare event. Configured by GPT1:TAMR.TCACT"]
    GPT1A_CMP,
    #[doc = "GPT0B compare event. Configured by GPT0:TBMR.TCACT"]
    GPT0B_CMP,
    #[doc = "GPT0A compare event. Configured by GPT0:TAMR.TCACT"]
    GPT0A_CMP,
    #[doc = "AUX Timer2 pulse, corresponding to flag AUX_EVCTL:EVTOMCUFLAGS.AUX_TIMER2_PULSE"]
    AUX_TIMER2_PULSE,
    #[doc = "AUX Timer2 event 3, corresponding to flag AUX_EVCTL:EVTOMCUFLAGS.AUX_TIMER2_EV3"]
    AUX_TIMER2_EV3,
    #[doc = "AUX Timer2 event 2, corresponding to flag AUX_EVCTL:EVTOMCUFLAGS.AUX_TIMER2_EV2"]
    AUX_TIMER2_EV2,
    #[doc = "AUX Timer2 event 1, corresponding to flag AUX_EVCTL:EVTOMCUFLAGS.AUX_TIMER2_EV1"]
    AUX_TIMER2_EV1,
    #[doc = "AUX Timer2 event 0, corresponding to flag AUX_EVCTL:EVTOMCUFLAGS.AUX_TIMER2_EV0"]
    AUX_TIMER2_EV0,
    #[doc = "UART1 TX DMA single request, controlled by UART1:DMACTL.TXDMAE"]
    UART1_TX_DMASREQ,
    #[doc = "UART1 TX DMA burst request, controlled by UART1:DMACTL.TXDMAE"]
    UART1_TX_DMABREQ,
    #[doc = "UART1 RX DMA single request, controlled by UART1:DMACTL.RXDMAE"]
    UART1_RX_DMASREQ,
    #[doc = "UART1 RX DMA burst request, controlled by UART1:DMACTL.RXDMAE"]
    UART1_RX_DMABREQ,
    #[doc = "UART0 TX DMA single request, controlled by UART0:DMACTL.TXDMAE"]
    UART0_TX_DMASREQ,
    #[doc = "UART0 TX DMA burst request, controlled by UART0:DMACTL.TXDMAE"]
    UART0_TX_DMABREQ,
    #[doc = "UART0 RX DMA single request, controlled by UART0:DMACTL.RXDMAE"]
    UART0_RX_DMASREQ,
    #[doc = "UART0 RX DMA burst request, controlled by UART0:DMACTL.RXDMAE"]
    UART0_RX_DMABREQ,
    #[doc = "SSI1 TX DMA single request, controlled by SSI0:DMACR.TXDMAE"]
    SSI1_TX_DMASREQ,
    #[doc = "SSI1 TX DMA burst request , controlled by SSI0:DMACR.TXDMAE"]
    SSI1_TX_DMABREQ,
    #[doc = "SSI1 RX DMA single request, controlled by SSI0:DMACR.RXDMAE"]
    SSI1_RX_DMASREQ,
    #[doc = "SSI1 RX DMA burst request , controlled by SSI0:DMACR.RXDMAE"]
    SSI1_RX_DMABREQ,
    #[doc = "SSI0 TX DMA single request, controlled by SSI0:DMACR.TXDMAE"]
    SSI0_TX_DMASREQ,
    #[doc = "SSI0 TX DMA burst request , controlled by SSI0:DMACR.TXDMAE"]
    SSI0_TX_DMABREQ,
    #[doc = "SSI0 RX DMA single request, controlled by SSI0:DMACR.RXDMAE"]
    SSI0_RX_DMASREQ,
    #[doc = "SSI0 RX DMA burst request , controlled by SSI0:DMACR.RXDMAE"]
    SSI0_RX_DMABREQ,
    #[doc = "Combined DMA done, corresponding flags are here UDMA0:REQDONE"]
    DMA_DONE_COMB,
    #[doc = "DMA bus error, corresponds to UDMA0:ERROR.STATUS"]
    DMA_ERR,
    #[doc = "UART1 combined interrupt, interrupt flags are found here UART1:MIS"]
    UART1_COMB,
    #[doc = "UART0 combined interrupt, interrupt flags are found here UART0:MIS"]
    UART0_COMB,
    #[doc = "SSI1 combined interrupt, interrupt flags are found here SSI1:MIS"]
    SSI1_COMB,
    #[doc = "SSI0 combined interrupt, interrupt flags are found here SSI0:MIS"]
    SSI0_COMB,
    #[doc = "PKA Interrupt event"]
    PKA_IRQ,
    #[doc = "Combined Interrupt for CPE Generated events. Corresponding flags are here RFC_DBELL:RFCPEIFG. Only interrupts selected with CPE1 in RFC_DBELL:RFCPEIFG can trigger a RFC_CPE_1 event"]
    RFC_CPE_1,
    #[doc = "AUX software event 1, triggered by AUX_EVCTL:SWEVSET.SWEV1, also available as AUX_EVENT2 AON wake up event.\nMCU domain wakeup control AON_EVENT:MCUWUSEL"]
    AUX_SWEV1,
    #[doc = "Combined Interrupt for CPE Generated events. Corresponding flags are here RFC_DBELL:RFCPEIFG. Only interrupts selected with CPE0 in RFC_DBELL:RFCPEIFG can trigger a RFC_CPE_0 event"]
    RFC_CPE_0,
    #[doc = "Combined RFC hardware interrupt, corresponding flag is here RFC_DBELL:RFHWIFG"]
    RFC_HW_COMB,
    #[doc = "RFC Doorbell Command Acknowledgement Interrupt, equvialent to RFC_DBELL:RFACKIFG.ACKFLAG"]
    RFC_CMD_ACK,
    #[doc = "Watchdog interrupt event, controlled by WDT:CTL.INTEN"]
    WDT_IRQ,
    #[doc = "DMA done for software tiggered UDMA channel 18, see UDMA0:SOFTREQ"]
    DMA_CH18_DONE,
    #[doc = "FLASH controller error event,  the status flags are FLASH:FEDACSTAT.FSM_DONE and FLASH:FEDACSTAT.RVF_INT"]
    FLASH,
    #[doc = "DMA done for software tiggered UDMA channel 0, see UDMA0:SOFTREQ"]
    DMA_CH0_DONE,
    #[doc = "GPT1B interrupt event, controlled by GPT1:TBMR"]
    GPT1B,
    #[doc = "GPT1A interrupt event, controlled by GPT1:TAMR"]
    GPT1A,
    #[doc = "GPT0B interrupt event, controlled by GPT0:TBMR"]
    GPT0B,
    #[doc = "GPT0A interrupt event, controlled by GPT0:TAMR"]
    GPT0A,
    #[doc = "GPT3B interrupt event, controlled by GPT3:TBMR"]
    GPT3B,
    #[doc = "GPT3A interrupt event, controlled by GPT3:TAMR"]
    GPT3A,
    #[doc = "GPT2B interrupt event, controlled by GPT2:TBMR"]
    GPT2B,
    #[doc = "GPT2A interrupt event, controlled by GPT2:TAMR"]
    GPT2A,
    #[doc = "AUX combined event, the corresponding flag register is here AUX_EVCTL:EVTOMCUFLAGS"]
    AUX_COMB,
    #[doc = "AUX Software event 0, AUX_EVCTL:SWEVSET.SWEV0"]
    AON_AUX_SWEV0,
    #[doc = "Interrupt event from I2C"]
    I2C_IRQ,
    #[doc = "Interrupt event from I2S"]
    I2S_IRQ,
    #[doc = "Event from AON_RTC, controlled by the AON_RTC:CTL.COMB_EV_MASK setting"]
    AON_RTC_COMB,
    #[doc = "Combined event from Oscillator control"]
    OSC_COMB,
    #[doc = "Combined event from battery monitor"]
    BATMON_COMB,
    #[doc = "Edge detect event from IOC. Configureded by the IOC:IOCFGn.EDGE_IRQ_EN and  IOC:IOCFGn.EDGE_DET settings"]
    AON_GPIO_EDGE,
    #[doc = "AON programmable event 2. Event selected by AON_EVENT MCU event selector, AON_EVENT:EVTOMCUSEL.AON_PROG2_EV"]
    AON_PROG2,
    #[doc = "AON programmable event 1. Event selected by AON_EVENT MCU event selector, AON_EVENT:EVTOMCUSEL.AON_PROG1_EV"]
    AON_PROG1,
    #[doc = "AON programmable event 0. Event selected by AON_EVENT  MCU event selector, AON_EVENT:EVTOMCUSEL.AON_PROG0_EV"]
    AON_PROG0,
    #[doc = "Always inactive"]
    NONE,
    #[doc = r" Reserved"]
    _Reserved(u8),
}
impl EVR {
    #[doc = r" Value of the field as raw bits"]
    #[inline]
    pub fn bits(&self) -> u8 {
        match *self {
            EVR::ALWAYS_ACTIVE => 121,
            EVR::CPU_HALTED => 120,
            EVR::AON_RTC_UPD => 119,
            EVR::AUX_DMABREQ => 118,
            EVR::AUX_DMASREQ => 117,
            EVR::AUX_SW_DMABREQ => 116,
            EVR::AUX_ADC_IRQ => 115,
            EVR::AUX_OBSMUX0 => 114,
            EVR::AUX_ADC_FIFO_ALMOST_FULL => 113,
            EVR::AUX_ADC_DONE => 112,
            EVR::AUX_SMPH_AUTOTAKE_DONE => 111,
            EVR::AUX_TIMER1_EV => 110,
            EVR::AUX_TIMER0_EV => 109,
            EVR::AUX_TDC_DONE => 108,
            EVR::AUX_COMPB => 107,
            EVR::AUX_COMPA => 106,
            EVR::AUX_AON_WU_EV => 105,
            EVR::TRNG_IRQ => 104,
            EVR::SWEV3 => 103,
            EVR::SWEV2 => 102,
            EVR::SWEV1 => 101,
            EVR::SWEV0 => 100,
            EVR::WDT_NMI => 99,
            EVR::CRYPTO_DMA_DONE_IRQ => 94,
            EVR::CRYPTO_RESULT_AVAIL_IRQ => 93,
            EVR::PORT_EVENT7 => 92,
            EVR::PORT_EVENT6 => 91,
            EVR::PORT_EVENT5 => 90,
            EVR::PORT_EVENT4 => 89,
            EVR::PORT_EVENT3 => 88,
            EVR::PORT_EVENT2 => 87,
            EVR::PORT_EVENT1 => 86,
            EVR::PORT_EVENT0 => 85,
            EVR::GPT3B_DMABREQ => 84,
            EVR::GPT3A_DMABREQ => 83,
            EVR::GPT2B_DMABREQ => 82,
            EVR::GPT2A_DMABREQ => 81,
            EVR::GPT1B_DMABREQ => 80,
            EVR::GPT1A_DMABREQ => 79,
            EVR::GPT0B_DMABREQ => 78,
            EVR::GPT0A_DMABREQ => 77,
            EVR::GPT3B_CMP => 68,
            EVR::GPT3A_CMP => 67,
            EVR::GPT2B_CMP => 66,
            EVR::GPT2A_CMP => 65,
            EVR::GPT1B_CMP => 64,
            EVR::GPT1A_CMP => 63,
            EVR::GPT0B_CMP => 62,
            EVR::GPT0A_CMP => 61,
            EVR::AUX_TIMER2_PULSE => 60,
            EVR::AUX_TIMER2_EV3 => 59,
            EVR::AUX_TIMER2_EV2 => 58,
            EVR::AUX_TIMER2_EV1 => 57,
            EVR::AUX_TIMER2_EV0 => 56,
            EVR::UART1_TX_DMASREQ => 55,
            EVR::UART1_TX_DMABREQ => 54,
            EVR::UART1_RX_DMASREQ => 53,
            EVR::UART1_RX_DMABREQ => 52,
            EVR::UART0_TX_DMASREQ => 51,
            EVR::UART0_TX_DMABREQ => 50,
            EVR::UART0_RX_DMASREQ => 49,
            EVR::UART0_RX_DMABREQ => 48,
            EVR::SSI1_TX_DMASREQ => 47,
            EVR::SSI1_TX_DMABREQ => 46,
            EVR::SSI1_RX_DMASREQ => 45,
            EVR::SSI1_RX_DMABREQ => 44,
            EVR::SSI0_TX_DMASREQ => 43,
            EVR::SSI0_TX_DMABREQ => 42,
            EVR::SSI0_RX_DMASREQ => 41,
            EVR::SSI0_RX_DMABREQ => 40,
            EVR::DMA_DONE_COMB => 39,
            EVR::DMA_ERR => 38,
            EVR::UART1_COMB => 37,
            EVR::UART0_COMB => 36,
            EVR::SSI1_COMB => 35,
            EVR::SSI0_COMB => 34,
            EVR::PKA_IRQ => 31,
            EVR::RFC_CPE_1 => 30,
            EVR::AUX_SWEV1 => 29,
            EVR::RFC_CPE_0 => 27,
            EVR::RFC_HW_COMB => 26,
            EVR::RFC_CMD_ACK => 25,
            EVR::WDT_IRQ => 24,
            EVR::DMA_CH18_DONE => 22,
            EVR::FLASH => 21,
            EVR::DMA_CH0_DONE => 20,
            EVR::GPT1B => 19,
            EVR::GPT1A => 18,
            EVR::GPT0B => 17,
            EVR::GPT0A => 16,
            EVR::GPT3B => 15,
            EVR::GPT3A => 14,
            EVR::GPT2B => 13,
            EVR::GPT2A => 12,
            EVR::AUX_COMB => 11,
            EVR::AON_AUX_SWEV0 => 10,
            EVR::I2C_IRQ => 9,
            EVR::I2S_IRQ => 8,
            EVR::AON_RTC_COMB => 7,
            EVR::OSC_COMB => 6,
            EVR::BATMON_COMB => 5,
            EVR::AON_GPIO_EDGE => 4,
            EVR::AON_PROG2 => 3,
            EVR::AON_PROG1 => 2,
            EVR::AON_PROG0 => 1,
            EVR::NONE => 0,
            EVR::_Reserved(bits) => bits,
        }
    }
    #[allow(missing_docs)]
    #[doc(hidden)]
    #[inline]
    pub fn _from(value: u8) -> EVR {
        match value {
            121 => EVR::ALWAYS_ACTIVE,
            120 => EVR::CPU_HALTED,
            119 => EVR::AON_RTC_UPD,
            118 => EVR::AUX_DMABREQ,
            117 => EVR::AUX_DMASREQ,
            116 => EVR::AUX_SW_DMABREQ,
            115 => EVR::AUX_ADC_IRQ,
            114 => EVR::AUX_OBSMUX0,
            113 => EVR::AUX_ADC_FIFO_ALMOST_FULL,
            112 => EVR::AUX_ADC_DONE,
            111 => EVR::AUX_SMPH_AUTOTAKE_DONE,
            110 => EVR::AUX_TIMER1_EV,
            109 => EVR::AUX_TIMER0_EV,
            108 => EVR::AUX_TDC_DONE,
            107 => EVR::AUX_COMPB,
            106 => EVR::AUX_COMPA,
            105 => EVR::AUX_AON_WU_EV,
            104 => EVR::TRNG_IRQ,
            103 => EVR::SWEV3,
            102 => EVR::SWEV2,
            101 => EVR::SWEV1,
            100 => EVR::SWEV0,
            99 => EVR::WDT_NMI,
            94 => EVR::CRYPTO_DMA_DONE_IRQ,
            93 => EVR::CRYPTO_RESULT_AVAIL_IRQ,
            92 => EVR::PORT_EVENT7,
            91 => EVR::PORT_EVENT6,
            90 => EVR::PORT_EVENT5,
            89 => EVR::PORT_EVENT4,
            88 => EVR::PORT_EVENT3,
            87 => EVR::PORT_EVENT2,
            86 => EVR::PORT_EVENT1,
            85 => EVR::PORT_EVENT0,
            84 => EVR::GPT3B_DMABREQ,
            83 => EVR::GPT3A_DMABREQ,
            82 => EVR::GPT2B_DMABREQ,
            81 => EVR::GPT2A_DMABREQ,
            80 => EVR::GPT1B_DMABREQ,
            79 => EVR::GPT1A_DMABREQ,
            78 => EVR::GPT0B_DMABREQ,
            77 => EVR::GPT0A_DMABREQ,
            68 => EVR::GPT3B_CMP,
            67 => EVR::GPT3A_CMP,
            66 => EVR::GPT2B_CMP,
            65 => EVR::GPT2A_CMP,
            64 => EVR::GPT1B_CMP,
            63 => EVR::GPT1A_CMP,
            62 => EVR::GPT0B_CMP,
            61 => EVR::GPT0A_CMP,
            60 => EVR::AUX_TIMER2_PULSE,
            59 => EVR::AUX_TIMER2_EV3,
            58 => EVR::AUX_TIMER2_EV2,
            57 => EVR::AUX_TIMER2_EV1,
            56 => EVR::AUX_TIMER2_EV0,
            55 => EVR::UART1_TX_DMASREQ,
            54 => EVR::UART1_TX_DMABREQ,
            53 => EVR::UART1_RX_DMASREQ,
            52 => EVR::UART1_RX_DMABREQ,
            51 => EVR::UART0_TX_DMASREQ,
            50 => EVR::UART0_TX_DMABREQ,
            49 => EVR::UART0_RX_DMASREQ,
            48 => EVR::UART0_RX_DMABREQ,
            47 => EVR::SSI1_TX_DMASREQ,
            46 => EVR::SSI1_TX_DMABREQ,
            45 => EVR::SSI1_RX_DMASREQ,
            44 => EVR::SSI1_RX_DMABREQ,
            43 => EVR::SSI0_TX_DMASREQ,
            42 => EVR::SSI0_TX_DMABREQ,
            41 => EVR::SSI0_RX_DMASREQ,
            40 => EVR::SSI0_RX_DMABREQ,
            39 => EVR::DMA_DONE_COMB,
            38 => EVR::DMA_ERR,
            37 => EVR::UART1_COMB,
            36 => EVR::UART0_COMB,
            35 => EVR::SSI1_COMB,
            34 => EVR::SSI0_COMB,
            31 => EVR::PKA_IRQ,
            30 => EVR::RFC_CPE_1,
            29 => EVR::AUX_SWEV1,
            27 => EVR::RFC_CPE_0,
            26 => EVR::RFC_HW_COMB,
            25 => EVR::RFC_CMD_ACK,
            24 => EVR::WDT_IRQ,
            22 => EVR::DMA_CH18_DONE,
            21 => EVR::FLASH,
            20 => EVR::DMA_CH0_DONE,
            19 => EVR::GPT1B,
            18 => EVR::GPT1A,
            17 => EVR::GPT0B,
            16 => EVR::GPT0A,
            15 => EVR::GPT3B,
            14 => EVR::GPT3A,
            13 => EVR::GPT2B,
            12 => EVR::GPT2A,
            11 => EVR::AUX_COMB,
            10 => EVR::AON_AUX_SWEV0,
            9 => EVR::I2C_IRQ,
            8 => EVR::I2S_IRQ,
            7 => EVR::AON_RTC_COMB,
            6 => EVR::OSC_COMB,
            5 => EVR::BATMON_COMB,
            4 => EVR::AON_GPIO_EDGE,
            3 => EVR::AON_PROG2,
            2 => EVR::AON_PROG1,
            1 => EVR::AON_PROG0,
            0 => EVR::NONE,
            i => EVR::_Reserved(i),
        }
    }
    #[doc = "Checks if the value of the field is `ALWAYS_ACTIVE`"]
    #[inline]
    pub fn is_always_active(&self) -> bool {
        *self == EVR::ALWAYS_ACTIVE
    }
    #[doc = "Checks if the value of the field is `CPU_HALTED`"]
    #[inline]
    pub fn is_cpu_halted(&self) -> bool {
        *self == EVR::CPU_HALTED
    }
    #[doc = "Checks if the value of the field is `AON_RTC_UPD`"]
    #[inline]
    pub fn is_aon_rtc_upd(&self) -> bool {
        *self == EVR::AON_RTC_UPD
    }
    #[doc = "Checks if the value of the field is `AUX_DMABREQ`"]
    #[inline]
    pub fn is_aux_dmabreq(&self) -> bool {
        *self == EVR::AUX_DMABREQ
    }
    #[doc = "Checks if the value of the field is `AUX_DMASREQ`"]
    #[inline]
    pub fn is_aux_dmasreq(&self) -> bool {
        *self == EVR::AUX_DMASREQ
    }
    #[doc = "Checks if the value of the field is `AUX_SW_DMABREQ`"]
    #[inline]
    pub fn is_aux_sw_dmabreq(&self) -> bool {
        *self == EVR::AUX_SW_DMABREQ
    }
    #[doc = "Checks if the value of the field is `AUX_ADC_IRQ`"]
    #[inline]
    pub fn is_aux_adc_irq(&self) -> bool {
        *self == EVR::AUX_ADC_IRQ
    }
    #[doc = "Checks if the value of the field is `AUX_OBSMUX0`"]
    #[inline]
    pub fn is_aux_obsmux0(&self) -> bool {
        *self == EVR::AUX_OBSMUX0
    }
    #[doc = "Checks if the value of the field is `AUX_ADC_FIFO_ALMOST_FULL`"]
    #[inline]
    pub fn is_aux_adc_fifo_almost_full(&self) -> bool {
        *self == EVR::AUX_ADC_FIFO_ALMOST_FULL
    }
    #[doc = "Checks if the value of the field is `AUX_ADC_DONE`"]
    #[inline]
    pub fn is_aux_adc_done(&self) -> bool {
        *self == EVR::AUX_ADC_DONE
    }
    #[doc = "Checks if the value of the field is `AUX_SMPH_AUTOTAKE_DONE`"]
    #[inline]
    pub fn is_aux_smph_autotake_done(&self) -> bool {
        *self == EVR::AUX_SMPH_AUTOTAKE_DONE
    }
    #[doc = "Checks if the value of the field is `AUX_TIMER1_EV`"]
    #[inline]
    pub fn is_aux_timer1_ev(&self) -> bool {
        *self == EVR::AUX_TIMER1_EV
    }
    #[doc = "Checks if the value of the field is `AUX_TIMER0_EV`"]
    #[inline]
    pub fn is_aux_timer0_ev(&self) -> bool {
        *self == EVR::AUX_TIMER0_EV
    }
    #[doc = "Checks if the value of the field is `AUX_TDC_DONE`"]
    #[inline]
    pub fn is_aux_tdc_done(&self) -> bool {
        *self == EVR::AUX_TDC_DONE
    }
    #[doc = "Checks if the value of the field is `AUX_COMPB`"]
    #[inline]
    pub fn is_aux_compb(&self) -> bool {
        *self == EVR::AUX_COMPB
    }
    #[doc = "Checks if the value of the field is `AUX_COMPA`"]
    #[inline]
    pub fn is_aux_compa(&self) -> bool {
        *self == EVR::AUX_COMPA
    }
    #[doc = "Checks if the value of the field is `AUX_AON_WU_EV`"]
    #[inline]
    pub fn is_aux_aon_wu_ev(&self) -> bool {
        *self == EVR::AUX_AON_WU_EV
    }
    #[doc = "Checks if the value of the field is `TRNG_IRQ`"]
    #[inline]
    pub fn is_trng_irq(&self) -> bool {
        *self == EVR::TRNG_IRQ
    }
    #[doc = "Checks if the value of the field is `SWEV3`"]
    #[inline]
    pub fn is_swev3(&self) -> bool {
        *self == EVR::SWEV3
    }
    #[doc = "Checks if the value of the field is `SWEV2`"]
    #[inline]
    pub fn is_swev2(&self) -> bool {
        *self == EVR::SWEV2
    }
    #[doc = "Checks if the value of the field is `SWEV1`"]
    #[inline]
    pub fn is_swev1(&self) -> bool {
        *self == EVR::SWEV1
    }
    #[doc = "Checks if the value of the field is `SWEV0`"]
    #[inline]
    pub fn is_swev0(&self) -> bool {
        *self == EVR::SWEV0
    }
    #[doc = "Checks if the value of the field is `WDT_NMI`"]
    #[inline]
    pub fn is_wdt_nmi(&self) -> bool {
        *self == EVR::WDT_NMI
    }
    #[doc = "Checks if the value of the field is `CRYPTO_DMA_DONE_IRQ`"]
    #[inline]
    pub fn is_crypto_dma_done_irq(&self) -> bool {
        *self == EVR::CRYPTO_DMA_DONE_IRQ
    }
    #[doc = "Checks if the value of the field is `CRYPTO_RESULT_AVAIL_IRQ`"]
    #[inline]
    pub fn is_crypto_result_avail_irq(&self) -> bool {
        *self == EVR::CRYPTO_RESULT_AVAIL_IRQ
    }
    #[doc = "Checks if the value of the field is `PORT_EVENT7`"]
    #[inline]
    pub fn is_port_event7(&self) -> bool {
        *self == EVR::PORT_EVENT7
    }
    #[doc = "Checks if the value of the field is `PORT_EVENT6`"]
    #[inline]
    pub fn is_port_event6(&self) -> bool {
        *self == EVR::PORT_EVENT6
    }
    #[doc = "Checks if the value of the field is `PORT_EVENT5`"]
    #[inline]
    pub fn is_port_event5(&self) -> bool {
        *self == EVR::PORT_EVENT5
    }
    #[doc = "Checks if the value of the field is `PORT_EVENT4`"]
    #[inline]
    pub fn is_port_event4(&self) -> bool {
        *self == EVR::PORT_EVENT4
    }
    #[doc = "Checks if the value of the field is `PORT_EVENT3`"]
    #[inline]
    pub fn is_port_event3(&self) -> bool {
        *self == EVR::PORT_EVENT3
    }
    #[doc = "Checks if the value of the field is `PORT_EVENT2`"]
    #[inline]
    pub fn is_port_event2(&self) -> bool {
        *self == EVR::PORT_EVENT2
    }
    #[doc = "Checks if the value of the field is `PORT_EVENT1`"]
    #[inline]
    pub fn is_port_event1(&self) -> bool {
        *self == EVR::PORT_EVENT1
    }
    #[doc = "Checks if the value of the field is `PORT_EVENT0`"]
    #[inline]
    pub fn is_port_event0(&self) -> bool {
        *self == EVR::PORT_EVENT0
    }
    #[doc = "Checks if the value of the field is `GPT3B_DMABREQ`"]
    #[inline]
    pub fn is_gpt3b_dmabreq(&self) -> bool {
        *self == EVR::GPT3B_DMABREQ
    }
    #[doc = "Checks if the value of the field is `GPT3A_DMABREQ`"]
    #[inline]
    pub fn is_gpt3a_dmabreq(&self) -> bool {
        *self == EVR::GPT3A_DMABREQ
    }
    #[doc = "Checks if the value of the field is `GPT2B_DMABREQ`"]
    #[inline]
    pub fn is_gpt2b_dmabreq(&self) -> bool {
        *self == EVR::GPT2B_DMABREQ
    }
    #[doc = "Checks if the value of the field is `GPT2A_DMABREQ`"]
    #[inline]
    pub fn is_gpt2a_dmabreq(&self) -> bool {
        *self == EVR::GPT2A_DMABREQ
    }
    #[doc = "Checks if the value of the field is `GPT1B_DMABREQ`"]
    #[inline]
    pub fn is_gpt1b_dmabreq(&self) -> bool {
        *self == EVR::GPT1B_DMABREQ
    }
    #[doc = "Checks if the value of the field is `GPT1A_DMABREQ`"]
    #[inline]
    pub fn is_gpt1a_dmabreq(&self) -> bool {
        *self == EVR::GPT1A_DMABREQ
    }
    #[doc = "Checks if the value of the field is `GPT0B_DMABREQ`"]
    #[inline]
    pub fn is_gpt0b_dmabreq(&self) -> bool {
        *self == EVR::GPT0B_DMABREQ
    }
    #[doc = "Checks if the value of the field is `GPT0A_DMABREQ`"]
    #[inline]
    pub fn is_gpt0a_dmabreq(&self) -> bool {
        *self == EVR::GPT0A_DMABREQ
    }
    #[doc = "Checks if the value of the field is `GPT3B_CMP`"]
    #[inline]
    pub fn is_gpt3b_cmp(&self) -> bool {
        *self == EVR::GPT3B_CMP
    }
    #[doc = "Checks if the value of the field is `GPT3A_CMP`"]
    #[inline]
    pub fn is_gpt3a_cmp(&self) -> bool {
        *self == EVR::GPT3A_CMP
    }
    #[doc = "Checks if the value of the field is `GPT2B_CMP`"]
    #[inline]
    pub fn is_gpt2b_cmp(&self) -> bool {
        *self == EVR::GPT2B_CMP
    }
    #[doc = "Checks if the value of the field is `GPT2A_CMP`"]
    #[inline]
    pub fn is_gpt2a_cmp(&self) -> bool {
        *self == EVR::GPT2A_CMP
    }
    #[doc = "Checks if the value of the field is `GPT1B_CMP`"]
    #[inline]
    pub fn is_gpt1b_cmp(&self) -> bool {
        *self == EVR::GPT1B_CMP
    }
    #[doc = "Checks if the value of the field is `GPT1A_CMP`"]
    #[inline]
    pub fn is_gpt1a_cmp(&self) -> bool {
        *self == EVR::GPT1A_CMP
    }
    #[doc = "Checks if the value of the field is `GPT0B_CMP`"]
    #[inline]
    pub fn is_gpt0b_cmp(&self) -> bool {
        *self == EVR::GPT0B_CMP
    }
    #[doc = "Checks if the value of the field is `GPT0A_CMP`"]
    #[inline]
    pub fn is_gpt0a_cmp(&self) -> bool {
        *self == EVR::GPT0A_CMP
    }
    #[doc = "Checks if the value of the field is `AUX_TIMER2_PULSE`"]
    #[inline]
    pub fn is_aux_timer2_pulse(&self) -> bool {
        *self == EVR::AUX_TIMER2_PULSE
    }
    #[doc = "Checks if the value of the field is `AUX_TIMER2_EV3`"]
    #[inline]
    pub fn is_aux_timer2_ev3(&self) -> bool {
        *self == EVR::AUX_TIMER2_EV3
    }
    #[doc = "Checks if the value of the field is `AUX_TIMER2_EV2`"]
    #[inline]
    pub fn is_aux_timer2_ev2(&self) -> bool {
        *self == EVR::AUX_TIMER2_EV2
    }
    #[doc = "Checks if the value of the field is `AUX_TIMER2_EV1`"]
    #[inline]
    pub fn is_aux_timer2_ev1(&self) -> bool {
        *self == EVR::AUX_TIMER2_EV1
    }
    #[doc = "Checks if the value of the field is `AUX_TIMER2_EV0`"]
    #[inline]
    pub fn is_aux_timer2_ev0(&self) -> bool {
        *self == EVR::AUX_TIMER2_EV0
    }
    #[doc = "Checks if the value of the field is `UART1_TX_DMASREQ`"]
    #[inline]
    pub fn is_uart1_tx_dmasreq(&self) -> bool {
        *self == EVR::UART1_TX_DMASREQ
    }
    #[doc = "Checks if the value of the field is `UART1_TX_DMABREQ`"]
    #[inline]
    pub fn is_uart1_tx_dmabreq(&self) -> bool {
        *self == EVR::UART1_TX_DMABREQ
    }
    #[doc = "Checks if the value of the field is `UART1_RX_DMASREQ`"]
    #[inline]
    pub fn is_uart1_rx_dmasreq(&self) -> bool {
        *self == EVR::UART1_RX_DMASREQ
    }
    #[doc = "Checks if the value of the field is `UART1_RX_DMABREQ`"]
    #[inline]
    pub fn is_uart1_rx_dmabreq(&self) -> bool {
        *self == EVR::UART1_RX_DMABREQ
    }
    #[doc = "Checks if the value of the field is `UART0_TX_DMASREQ`"]
    #[inline]
    pub fn is_uart0_tx_dmasreq(&self) -> bool {
        *self == EVR::UART0_TX_DMASREQ
    }
    #[doc = "Checks if the value of the field is `UART0_TX_DMABREQ`"]
    #[inline]
    pub fn is_uart0_tx_dmabreq(&self) -> bool {
        *self == EVR::UART0_TX_DMABREQ
    }
    #[doc = "Checks if the value of the field is `UART0_RX_DMASREQ`"]
    #[inline]
    pub fn is_uart0_rx_dmasreq(&self) -> bool {
        *self == EVR::UART0_RX_DMASREQ
    }
    #[doc = "Checks if the value of the field is `UART0_RX_DMABREQ`"]
    #[inline]
    pub fn is_uart0_rx_dmabreq(&self) -> bool {
        *self == EVR::UART0_RX_DMABREQ
    }
    #[doc = "Checks if the value of the field is `SSI1_TX_DMASREQ`"]
    #[inline]
    pub fn is_ssi1_tx_dmasreq(&self) -> bool {
        *self == EVR::SSI1_TX_DMASREQ
    }
    #[doc = "Checks if the value of the field is `SSI1_TX_DMABREQ`"]
    #[inline]
    pub fn is_ssi1_tx_dmabreq(&self) -> bool {
        *self == EVR::SSI1_TX_DMABREQ
    }
    #[doc = "Checks if the value of the field is `SSI1_RX_DMASREQ`"]
    #[inline]
    pub fn is_ssi1_rx_dmasreq(&self) -> bool {
        *self == EVR::SSI1_RX_DMASREQ
    }
    #[doc = "Checks if the value of the field is `SSI1_RX_DMABREQ`"]
    #[inline]
    pub fn is_ssi1_rx_dmabreq(&self) -> bool {
        *self == EVR::SSI1_RX_DMABREQ
    }
    #[doc = "Checks if the value of the field is `SSI0_TX_DMASREQ`"]
    #[inline]
    pub fn is_ssi0_tx_dmasreq(&self) -> bool {
        *self == EVR::SSI0_TX_DMASREQ
    }
    #[doc = "Checks if the value of the field is `SSI0_TX_DMABREQ`"]
    #[inline]
    pub fn is_ssi0_tx_dmabreq(&self) -> bool {
        *self == EVR::SSI0_TX_DMABREQ
    }
    #[doc = "Checks if the value of the field is `SSI0_RX_DMASREQ`"]
    #[inline]
    pub fn is_ssi0_rx_dmasreq(&self) -> bool {
        *self == EVR::SSI0_RX_DMASREQ
    }
    #[doc = "Checks if the value of the field is `SSI0_RX_DMABREQ`"]
    #[inline]
    pub fn is_ssi0_rx_dmabreq(&self) -> bool {
        *self == EVR::SSI0_RX_DMABREQ
    }
    #[doc = "Checks if the value of the field is `DMA_DONE_COMB`"]
    #[inline]
    pub fn is_dma_done_comb(&self) -> bool {
        *self == EVR::DMA_DONE_COMB
    }
    #[doc = "Checks if the value of the field is `DMA_ERR`"]
    #[inline]
    pub fn is_dma_err(&self) -> bool {
        *self == EVR::DMA_ERR
    }
    #[doc = "Checks if the value of the field is `UART1_COMB`"]
    #[inline]
    pub fn is_uart1_comb(&self) -> bool {
        *self == EVR::UART1_COMB
    }
    #[doc = "Checks if the value of the field is `UART0_COMB`"]
    #[inline]
    pub fn is_uart0_comb(&self) -> bool {
        *self == EVR::UART0_COMB
    }
    #[doc = "Checks if the value of the field is `SSI1_COMB`"]
    #[inline]
    pub fn is_ssi1_comb(&self) -> bool {
        *self == EVR::SSI1_COMB
    }
    #[doc = "Checks if the value of the field is `SSI0_COMB`"]
    #[inline]
    pub fn is_ssi0_comb(&self) -> bool {
        *self == EVR::SSI0_COMB
    }
    #[doc = "Checks if the value of the field is `PKA_IRQ`"]
    #[inline]
    pub fn is_pka_irq(&self) -> bool {
        *self == EVR::PKA_IRQ
    }
    #[doc = "Checks if the value of the field is `RFC_CPE_1`"]
    #[inline]
    pub fn is_rfc_cpe_1(&self) -> bool {
        *self == EVR::RFC_CPE_1
    }
    #[doc = "Checks if the value of the field is `AUX_SWEV1`"]
    #[inline]
    pub fn is_aux_swev1(&self) -> bool {
        *self == EVR::AUX_SWEV1
    }
    #[doc = "Checks if the value of the field is `RFC_CPE_0`"]
    #[inline]
    pub fn is_rfc_cpe_0(&self) -> bool {
        *self == EVR::RFC_CPE_0
    }
    #[doc = "Checks if the value of the field is `RFC_HW_COMB`"]
    #[inline]
    pub fn is_rfc_hw_comb(&self) -> bool {
        *self == EVR::RFC_HW_COMB
    }
    #[doc = "Checks if the value of the field is `RFC_CMD_ACK`"]
    #[inline]
    pub fn is_rfc_cmd_ack(&self) -> bool {
        *self == EVR::RFC_CMD_ACK
    }
    #[doc = "Checks if the value of the field is `WDT_IRQ`"]
    #[inline]
    pub fn is_wdt_irq(&self) -> bool {
        *self == EVR::WDT_IRQ
    }
    #[doc = "Checks if the value of the field is `DMA_CH18_DONE`"]
    #[inline]
    pub fn is_dma_ch18_done(&self) -> bool {
        *self == EVR::DMA_CH18_DONE
    }
    #[doc = "Checks if the value of the field is `FLASH`"]
    #[inline]
    pub fn is_flash(&self) -> bool {
        *self == EVR::FLASH
    }
    #[doc = "Checks if the value of the field is `DMA_CH0_DONE`"]
    #[inline]
    pub fn is_dma_ch0_done(&self) -> bool {
        *self == EVR::DMA_CH0_DONE
    }
    #[doc = "Checks if the value of the field is `GPT1B`"]
    #[inline]
    pub fn is_gpt1b(&self) -> bool {
        *self == EVR::GPT1B
    }
    #[doc = "Checks if the value of the field is `GPT1A`"]
    #[inline]
    pub fn is_gpt1a(&self) -> bool {
        *self == EVR::GPT1A
    }
    #[doc = "Checks if the value of the field is `GPT0B`"]
    #[inline]
    pub fn is_gpt0b(&self) -> bool {
        *self == EVR::GPT0B
    }
    #[doc = "Checks if the value of the field is `GPT0A`"]
    #[inline]
    pub fn is_gpt0a(&self) -> bool {
        *self == EVR::GPT0A
    }
    #[doc = "Checks if the value of the field is `GPT3B`"]
    #[inline]
    pub fn is_gpt3b(&self) -> bool {
        *self == EVR::GPT3B
    }
    #[doc = "Checks if the value of the field is `GPT3A`"]
    #[inline]
    pub fn is_gpt3a(&self) -> bool {
        *self == EVR::GPT3A
    }
    #[doc = "Checks if the value of the field is `GPT2B`"]
    #[inline]
    pub fn is_gpt2b(&self) -> bool {
        *self == EVR::GPT2B
    }
    #[doc = "Checks if the value of the field is `GPT2A`"]
    #[inline]
    pub fn is_gpt2a(&self) -> bool {
        *self == EVR::GPT2A
    }
    #[doc = "Checks if the value of the field is `AUX_COMB`"]
    #[inline]
    pub fn is_aux_comb(&self) -> bool {
        *self == EVR::AUX_COMB
    }
    #[doc = "Checks if the value of the field is `AON_AUX_SWEV0`"]
    #[inline]
    pub fn is_aon_aux_swev0(&self) -> bool {
        *self == EVR::AON_AUX_SWEV0
    }
    #[doc = "Checks if the value of the field is `I2C_IRQ`"]
    #[inline]
    pub fn is_i2c_irq(&self) -> bool {
        *self == EVR::I2C_IRQ
    }
    #[doc = "Checks if the value of the field is `I2S_IRQ`"]
    #[inline]
    pub fn is_i2s_irq(&self) -> bool {
        *self == EVR::I2S_IRQ
    }
    #[doc = "Checks if the value of the field is `AON_RTC_COMB`"]
    #[inline]
    pub fn is_aon_rtc_comb(&self) -> bool {
        *self == EVR::AON_RTC_COMB
    }
    #[doc = "Checks if the value of the field is `OSC_COMB`"]
    #[inline]
    pub fn is_osc_comb(&self) -> bool {
        *self == EVR::OSC_COMB
    }
    #[doc = "Checks if the value of the field is `BATMON_COMB`"]
    #[inline]
    pub fn is_batmon_comb(&self) -> bool {
        *self == EVR::BATMON_COMB
    }
    #[doc = "Checks if the value of the field is `AON_GPIO_EDGE`"]
    #[inline]
    pub fn is_aon_gpio_edge(&self) -> bool {
        *self == EVR::AON_GPIO_EDGE
    }
    #[doc = "Checks if the value of the field is `AON_PROG2`"]
    #[inline]
    pub fn is_aon_prog2(&self) -> bool {
        *self == EVR::AON_PROG2
    }
    #[doc = "Checks if the value of the field is `AON_PROG1`"]
    #[inline]
    pub fn is_aon_prog1(&self) -> bool {
        *self == EVR::AON_PROG1
    }
    #[doc = "Checks if the value of the field is `AON_PROG0`"]
    #[inline]
    pub fn is_aon_prog0(&self) -> bool {
        *self == EVR::AON_PROG0
    }
    #[doc = "Checks if the value of the field is `NONE`"]
    #[inline]
    pub fn is_none(&self) -> bool {
        *self == EVR::NONE
    }
}
#[doc = "Values that can be written to the field `EV`"]
pub enum EVW {
    #[doc = "Always asserted"]
    ALWAYS_ACTIVE,
    #[doc = "CPU halted"]
    CPU_HALTED,
    #[doc = "RTC periodic event controlled by AON_RTC:CTL.RTC_UPD_EN"]
    AON_RTC_UPD,
    #[doc = "DMA burst request event from AUX, configured by AUX_EVCTL:DMACTL"]
    AUX_DMABREQ,
    #[doc = "DMA single request event from AUX, configured by AUX_EVCTL:DMACTL"]
    AUX_DMASREQ,
    #[doc = "DMA sofware trigger from AUX, triggered by AUX_EVCTL:DMASWREQ.START"]
    AUX_SW_DMABREQ,
    #[doc = "AUX ADC interrupt event, corresponds to AUX_EVCTL:EVTOMCUFLAGS.AUX_ADC_IRQ. Status flags are found here AUX_EVCTL:EVTOMCUFLAGS"]
    AUX_ADC_IRQ,
    #[doc = "Loopback of OBSMUX0 through AUX, corresponds to AUX_EVCTL:EVTOMCUFLAGS.MCU_OBSMUX0"]
    AUX_OBSMUX0,
    #[doc = "AUX ADC FIFO watermark event, corresponds to AUX_EVCTL:EVTOMCUFLAGS.AUX_ADC_FIFO_ALMOST_FULL"]
    AUX_ADC_FIFO_ALMOST_FULL,
    #[doc = "AUX ADC done, corresponds to AUX_EVCTL:EVTOMCUFLAGS.AUX_ADC_DONE"]
    AUX_ADC_DONE,
    #[doc = "Autotake event from AUX semaphore, configured by AUX_SMPH:AUTOTAKE"]
    AUX_SMPH_AUTOTAKE_DONE,
    #[doc = "AUX timer 1 event, corresponds to AUX_EVCTL:EVTOMCUFLAGS.AUX_TIMER1_EV"]
    AUX_TIMER1_EV,
    #[doc = "AUX timer 0 event, corresponds to AUX_EVCTL:EVTOMCUFLAGS.AUX_TIMER0_EV"]
    AUX_TIMER0_EV,
    #[doc = "AUX TDC measurement done event, corresponds to the flag AUX_EVCTL:EVTOMCUFLAGS.AUX_TDC_DONE and the AUX_TDC status AUX_TDC:STAT.DONE"]
    AUX_TDC_DONE,
    #[doc = "AUX Compare B event, corresponds to AUX_EVCTL:EVTOMCUFLAGS.AUX_COMPB"]
    AUX_COMPB,
    #[doc = "AUX Compare A event, corresponds to AUX_EVCTL:EVTOMCUFLAGS.AUX_COMPA"]
    AUX_COMPA,
    #[doc = "AON wakeup event, the corresponding flag is here AUX_EVCTL:EVTOMCUFLAGS.AUX_WU_EV"]
    AUX_AON_WU_EV,
    #[doc = "TRNG Interrupt event, controlled by TRNG:IRQEN.EN"]
    TRNG_IRQ,
    #[doc = "Software event 3, triggered by SWEV.SWEV3"]
    SWEV3,
    #[doc = "Software event 2, triggered by SWEV.SWEV2"]
    SWEV2,
    #[doc = "Software event 1, triggered by SWEV.SWEV1"]
    SWEV1,
    #[doc = "Software event 0, triggered by SWEV.SWEV0"]
    SWEV0,
    #[doc = "Watchdog non maskable interrupt event, controlled by WDT:CTL.INTTYPE"]
    WDT_NMI,
    #[doc = "CRYPTO DMA input done event, the correspondingg flag is CRYPTO:IRQSTAT.DMA_IN_DONE. Controlled by CRYPTO:IRQEN.DMA_IN_DONE"]
    CRYPTO_DMA_DONE_IRQ,
    #[doc = "CRYPTO result available interupt event, the corresponding flag is found here CRYPTO:IRQSTAT.RESULT_AVAIL. Controlled by CRYPTO:IRQSTAT.RESULT_AVAIL"]
    CRYPTO_RESULT_AVAIL_IRQ,
    #[doc = "Port capture event from IOC, configured by IOC:IOCFGn.PORT_ID. Events on ports configured with ENUM PORT_EVENT7 wil be routed here."]
    PORT_EVENT7,
    #[doc = "Port capture event from IOC, configured by IOC:IOCFGn.PORT_ID. Events on ports configured with ENUM PORT_EVENT6 wil be routed here."]
    PORT_EVENT6,
    #[doc = "Port capture event from IOC, configured by IOC:IOCFGn.PORT_ID. Events on ports configured with ENUM PORT_EVENT4 wil be routed here."]
    PORT_EVENT5,
    #[doc = "Port capture event from IOC, configured by IOC:IOCFGn.PORT_ID. Events on ports configured with ENUM PORT_EVENT4 wil be routed here."]
    PORT_EVENT4,
    #[doc = "Port capture event from IOC, configured by IOC:IOCFGn.PORT_ID. Events on ports configured with ENUM PORT_EVENT3 wil be routed here."]
    PORT_EVENT3,
    #[doc = "Port capture event from IOC, configured by IOC:IOCFGn.PORT_ID. Events on ports configured with ENUM PORT_EVENT2 wil be routed here."]
    PORT_EVENT2,
    #[doc = "Port capture event from IOC, configured by IOC:IOCFGn.PORT_ID. Events on ports configured with ENUM PORT_EVENT1 wil be routed here."]
    PORT_EVENT1,
    #[doc = "Port capture event from IOC, configured by IOC:IOCFGn.PORT_ID. Events on ports configured with ENUM PORT_EVENT0 wil be routed here."]
    PORT_EVENT0,
    #[doc = "GPT3B DMA trigger event. Configured by GPT3:DMAEV"]
    GPT3B_DMABREQ,
    #[doc = "GPT3A DMA trigger event. Configured by GPT3:DMAEV"]
    GPT3A_DMABREQ,
    #[doc = "GPT2B DMA trigger event. Configured by GPT2:DMAEV"]
    GPT2B_DMABREQ,
    #[doc = "GPT2A DMA trigger event. Configured by GPT2:DMAEV"]
    GPT2A_DMABREQ,
    #[doc = "GPT1B DMA trigger event. Configured by GPT1:DMAEV"]
    GPT1B_DMABREQ,
    #[doc = "GPT1A DMA trigger event. Configured by GPT1:DMAEV"]
    GPT1A_DMABREQ,
    #[doc = "GPT0B DMA trigger event. Configured by GPT0:DMAEV"]
    GPT0B_DMABREQ,
    #[doc = "GPT0A DMA trigger event. Configured by GPT0:DMAEV"]
    GPT0A_DMABREQ,
    #[doc = "GPT3B compare event. Configured by GPT3:TBMR.TCACT"]
    GPT3B_CMP,
    #[doc = "GPT3A compare event. Configured by GPT3:TAMR.TCACT"]
    GPT3A_CMP,
    #[doc = "GPT2B compare event. Configured by GPT2:TBMR.TCACT"]
    GPT2B_CMP,
    #[doc = "GPT2A compare event. Configured by GPT2:TAMR.TCACT"]
    GPT2A_CMP,
    #[doc = "GPT1B compare event. Configured by GPT1:TBMR.TCACT"]
    GPT1B_CMP,
    #[doc = "GPT1A compare event. Configured by GPT1:TAMR.TCACT"]
    GPT1A_CMP,
    #[doc = "GPT0B compare event. Configured by GPT0:TBMR.TCACT"]
    GPT0B_CMP,
    #[doc = "GPT0A compare event. Configured by GPT0:TAMR.TCACT"]
    GPT0A_CMP,
    #[doc = "AUX Timer2 pulse, corresponding to flag AUX_EVCTL:EVTOMCUFLAGS.AUX_TIMER2_PULSE"]
    AUX_TIMER2_PULSE,
    #[doc = "AUX Timer2 event 3, corresponding to flag AUX_EVCTL:EVTOMCUFLAGS.AUX_TIMER2_EV3"]
    AUX_TIMER2_EV3,
    #[doc = "AUX Timer2 event 2, corresponding to flag AUX_EVCTL:EVTOMCUFLAGS.AUX_TIMER2_EV2"]
    AUX_TIMER2_EV2,
    #[doc = "AUX Timer2 event 1, corresponding to flag AUX_EVCTL:EVTOMCUFLAGS.AUX_TIMER2_EV1"]
    AUX_TIMER2_EV1,
    #[doc = "AUX Timer2 event 0, corresponding to flag AUX_EVCTL:EVTOMCUFLAGS.AUX_TIMER2_EV0"]
    AUX_TIMER2_EV0,
    #[doc = "UART1 TX DMA single request, controlled by UART1:DMACTL.TXDMAE"]
    UART1_TX_DMASREQ,
    #[doc = "UART1 TX DMA burst request, controlled by UART1:DMACTL.TXDMAE"]
    UART1_TX_DMABREQ,
    #[doc = "UART1 RX DMA single request, controlled by UART1:DMACTL.RXDMAE"]
    UART1_RX_DMASREQ,
    #[doc = "UART1 RX DMA burst request, controlled by UART1:DMACTL.RXDMAE"]
    UART1_RX_DMABREQ,
    #[doc = "UART0 TX DMA single request, controlled by UART0:DMACTL.TXDMAE"]
    UART0_TX_DMASREQ,
    #[doc = "UART0 TX DMA burst request, controlled by UART0:DMACTL.TXDMAE"]
    UART0_TX_DMABREQ,
    #[doc = "UART0 RX DMA single request, controlled by UART0:DMACTL.RXDMAE"]
    UART0_RX_DMASREQ,
    #[doc = "UART0 RX DMA burst request, controlled by UART0:DMACTL.RXDMAE"]
    UART0_RX_DMABREQ,
    #[doc = "SSI1 TX DMA single request, controlled by SSI0:DMACR.TXDMAE"]
    SSI1_TX_DMASREQ,
    #[doc = "SSI1 TX DMA burst request , controlled by SSI0:DMACR.TXDMAE"]
    SSI1_TX_DMABREQ,
    #[doc = "SSI1 RX DMA single request, controlled by SSI0:DMACR.RXDMAE"]
    SSI1_RX_DMASREQ,
    #[doc = "SSI1 RX DMA burst request , controlled by SSI0:DMACR.RXDMAE"]
    SSI1_RX_DMABREQ,
    #[doc = "SSI0 TX DMA single request, controlled by SSI0:DMACR.TXDMAE"]
    SSI0_TX_DMASREQ,
    #[doc = "SSI0 TX DMA burst request , controlled by SSI0:DMACR.TXDMAE"]
    SSI0_TX_DMABREQ,
    #[doc = "SSI0 RX DMA single request, controlled by SSI0:DMACR.RXDMAE"]
    SSI0_RX_DMASREQ,
    #[doc = "SSI0 RX DMA burst request , controlled by SSI0:DMACR.RXDMAE"]
    SSI0_RX_DMABREQ,
    #[doc = "Combined DMA done, corresponding flags are here UDMA0:REQDONE"]
    DMA_DONE_COMB,
    #[doc = "DMA bus error, corresponds to UDMA0:ERROR.STATUS"]
    DMA_ERR,
    #[doc = "UART1 combined interrupt, interrupt flags are found here UART1:MIS"]
    UART1_COMB,
    #[doc = "UART0 combined interrupt, interrupt flags are found here UART0:MIS"]
    UART0_COMB,
    #[doc = "SSI1 combined interrupt, interrupt flags are found here SSI1:MIS"]
    SSI1_COMB,
    #[doc = "SSI0 combined interrupt, interrupt flags are found here SSI0:MIS"]
    SSI0_COMB,
    #[doc = "PKA Interrupt event"]
    PKA_IRQ,
    #[doc = "Combined Interrupt for CPE Generated events. Corresponding flags are here RFC_DBELL:RFCPEIFG. Only interrupts selected with CPE1 in RFC_DBELL:RFCPEIFG can trigger a RFC_CPE_1 event"]
    RFC_CPE_1,
    #[doc = "AUX software event 1, triggered by AUX_EVCTL:SWEVSET.SWEV1, also available as AUX_EVENT2 AON wake up event.\nMCU domain wakeup control AON_EVENT:MCUWUSEL"]
    AUX_SWEV1,
    #[doc = "Combined Interrupt for CPE Generated events. Corresponding flags are here RFC_DBELL:RFCPEIFG. Only interrupts selected with CPE0 in RFC_DBELL:RFCPEIFG can trigger a RFC_CPE_0 event"]
    RFC_CPE_0,
    #[doc = "Combined RFC hardware interrupt, corresponding flag is here RFC_DBELL:RFHWIFG"]
    RFC_HW_COMB,
    #[doc = "RFC Doorbell Command Acknowledgement Interrupt, equvialent to RFC_DBELL:RFACKIFG.ACKFLAG"]
    RFC_CMD_ACK,
    #[doc = "Watchdog interrupt event, controlled by WDT:CTL.INTEN"]
    WDT_IRQ,
    #[doc = "DMA done for software tiggered UDMA channel 18, see UDMA0:SOFTREQ"]
    DMA_CH18_DONE,
    #[doc = "FLASH controller error event,  the status flags are FLASH:FEDACSTAT.FSM_DONE and FLASH:FEDACSTAT.RVF_INT"]
    FLASH,
    #[doc = "DMA done for software tiggered UDMA channel 0, see UDMA0:SOFTREQ"]
    DMA_CH0_DONE,
    #[doc = "GPT1B interrupt event, controlled by GPT1:TBMR"]
    GPT1B,
    #[doc = "GPT1A interrupt event, controlled by GPT1:TAMR"]
    GPT1A,
    #[doc = "GPT0B interrupt event, controlled by GPT0:TBMR"]
    GPT0B,
    #[doc = "GPT0A interrupt event, controlled by GPT0:TAMR"]
    GPT0A,
    #[doc = "GPT3B interrupt event, controlled by GPT3:TBMR"]
    GPT3B,
    #[doc = "GPT3A interrupt event, controlled by GPT3:TAMR"]
    GPT3A,
    #[doc = "GPT2B interrupt event, controlled by GPT2:TBMR"]
    GPT2B,
    #[doc = "GPT2A interrupt event, controlled by GPT2:TAMR"]
    GPT2A,
    #[doc = "AUX combined event, the corresponding flag register is here AUX_EVCTL:EVTOMCUFLAGS"]
    AUX_COMB,
    #[doc = "AUX Software event 0, AUX_EVCTL:SWEVSET.SWEV0"]
    AON_AUX_SWEV0,
    #[doc = "Interrupt event from I2C"]
    I2C_IRQ,
    #[doc = "Interrupt event from I2S"]
    I2S_IRQ,
    #[doc = "Event from AON_RTC, controlled by the AON_RTC:CTL.COMB_EV_MASK setting"]
    AON_RTC_COMB,
    #[doc = "Combined event from Oscillator control"]
    OSC_COMB,
    #[doc = "Combined event from battery monitor"]
    BATMON_COMB,
    #[doc = "Edge detect event from IOC. Configureded by the IOC:IOCFGn.EDGE_IRQ_EN and  IOC:IOCFGn.EDGE_DET settings"]
    AON_GPIO_EDGE,
    #[doc = "AON programmable event 2. Event selected by AON_EVENT MCU event selector, AON_EVENT:EVTOMCUSEL.AON_PROG2_EV"]
    AON_PROG2,
    #[doc = "AON programmable event 1. Event selected by AON_EVENT MCU event selector, AON_EVENT:EVTOMCUSEL.AON_PROG1_EV"]
    AON_PROG1,
    #[doc = "AON programmable event 0. Event selected by AON_EVENT  MCU event selector, AON_EVENT:EVTOMCUSEL.AON_PROG0_EV"]
    AON_PROG0,
    #[doc = "Always inactive"]
    NONE,
}
impl EVW {
    #[allow(missing_docs)]
    #[doc(hidden)]
    #[inline]
    pub fn _bits(&self) -> u8 {
        match *self {
            EVW::ALWAYS_ACTIVE => 121,
            EVW::CPU_HALTED => 120,
            EVW::AON_RTC_UPD => 119,
            EVW::AUX_DMABREQ => 118,
            EVW::AUX_DMASREQ => 117,
            EVW::AUX_SW_DMABREQ => 116,
            EVW::AUX_ADC_IRQ => 115,
            EVW::AUX_OBSMUX0 => 114,
            EVW::AUX_ADC_FIFO_ALMOST_FULL => 113,
            EVW::AUX_ADC_DONE => 112,
            EVW::AUX_SMPH_AUTOTAKE_DONE => 111,
            EVW::AUX_TIMER1_EV => 110,
            EVW::AUX_TIMER0_EV => 109,
            EVW::AUX_TDC_DONE => 108,
            EVW::AUX_COMPB => 107,
            EVW::AUX_COMPA => 106,
            EVW::AUX_AON_WU_EV => 105,
            EVW::TRNG_IRQ => 104,
            EVW::SWEV3 => 103,
            EVW::SWEV2 => 102,
            EVW::SWEV1 => 101,
            EVW::SWEV0 => 100,
            EVW::WDT_NMI => 99,
            EVW::CRYPTO_DMA_DONE_IRQ => 94,
            EVW::CRYPTO_RESULT_AVAIL_IRQ => 93,
            EVW::PORT_EVENT7 => 92,
            EVW::PORT_EVENT6 => 91,
            EVW::PORT_EVENT5 => 90,
            EVW::PORT_EVENT4 => 89,
            EVW::PORT_EVENT3 => 88,
            EVW::PORT_EVENT2 => 87,
            EVW::PORT_EVENT1 => 86,
            EVW::PORT_EVENT0 => 85,
            EVW::GPT3B_DMABREQ => 84,
            EVW::GPT3A_DMABREQ => 83,
            EVW::GPT2B_DMABREQ => 82,
            EVW::GPT2A_DMABREQ => 81,
            EVW::GPT1B_DMABREQ => 80,
            EVW::GPT1A_DMABREQ => 79,
            EVW::GPT0B_DMABREQ => 78,
            EVW::GPT0A_DMABREQ => 77,
            EVW::GPT3B_CMP => 68,
            EVW::GPT3A_CMP => 67,
            EVW::GPT2B_CMP => 66,
            EVW::GPT2A_CMP => 65,
            EVW::GPT1B_CMP => 64,
            EVW::GPT1A_CMP => 63,
            EVW::GPT0B_CMP => 62,
            EVW::GPT0A_CMP => 61,
            EVW::AUX_TIMER2_PULSE => 60,
            EVW::AUX_TIMER2_EV3 => 59,
            EVW::AUX_TIMER2_EV2 => 58,
            EVW::AUX_TIMER2_EV1 => 57,
            EVW::AUX_TIMER2_EV0 => 56,
            EVW::UART1_TX_DMASREQ => 55,
            EVW::UART1_TX_DMABREQ => 54,
            EVW::UART1_RX_DMASREQ => 53,
            EVW::UART1_RX_DMABREQ => 52,
            EVW::UART0_TX_DMASREQ => 51,
            EVW::UART0_TX_DMABREQ => 50,
            EVW::UART0_RX_DMASREQ => 49,
            EVW::UART0_RX_DMABREQ => 48,
            EVW::SSI1_TX_DMASREQ => 47,
            EVW::SSI1_TX_DMABREQ => 46,
            EVW::SSI1_RX_DMASREQ => 45,
            EVW::SSI1_RX_DMABREQ => 44,
            EVW::SSI0_TX_DMASREQ => 43,
            EVW::SSI0_TX_DMABREQ => 42,
            EVW::SSI0_RX_DMASREQ => 41,
            EVW::SSI0_RX_DMABREQ => 40,
            EVW::DMA_DONE_COMB => 39,
            EVW::DMA_ERR => 38,
            EVW::UART1_COMB => 37,
            EVW::UART0_COMB => 36,
            EVW::SSI1_COMB => 35,
            EVW::SSI0_COMB => 34,
            EVW::PKA_IRQ => 31,
            EVW::RFC_CPE_1 => 30,
            EVW::AUX_SWEV1 => 29,
            EVW::RFC_CPE_0 => 27,
            EVW::RFC_HW_COMB => 26,
            EVW::RFC_CMD_ACK => 25,
            EVW::WDT_IRQ => 24,
            EVW::DMA_CH18_DONE => 22,
            EVW::FLASH => 21,
            EVW::DMA_CH0_DONE => 20,
            EVW::GPT1B => 19,
            EVW::GPT1A => 18,
            EVW::GPT0B => 17,
            EVW::GPT0A => 16,
            EVW::GPT3B => 15,
            EVW::GPT3A => 14,
            EVW::GPT2B => 13,
            EVW::GPT2A => 12,
            EVW::AUX_COMB => 11,
            EVW::AON_AUX_SWEV0 => 10,
            EVW::I2C_IRQ => 9,
            EVW::I2S_IRQ => 8,
            EVW::AON_RTC_COMB => 7,
            EVW::OSC_COMB => 6,
            EVW::BATMON_COMB => 5,
            EVW::AON_GPIO_EDGE => 4,
            EVW::AON_PROG2 => 3,
            EVW::AON_PROG1 => 2,
            EVW::AON_PROG0 => 1,
            EVW::NONE => 0,
        }
    }
}
#[doc = r" Proxy"]
pub struct _EVW<'a> {
    w: &'a mut W,
}
impl<'a> _EVW<'a> {
    #[doc = r" Writes `variant` to the field"]
    #[inline]
    pub fn variant(self, variant: EVW) -> &'a mut W {
        unsafe { self.bits(variant._bits()) }
    }
    #[doc = "Always asserted"]
    #[inline]
    pub fn always_active(self) -> &'a mut W {
        self.variant(EVW::ALWAYS_ACTIVE)
    }
    #[doc = "CPU halted"]
    #[inline]
    pub fn cpu_halted(self) -> &'a mut W {
        self.variant(EVW::CPU_HALTED)
    }
    #[doc = "RTC periodic event controlled by AON_RTC:CTL.RTC_UPD_EN"]
    #[inline]
    pub fn aon_rtc_upd(self) -> &'a mut W {
        self.variant(EVW::AON_RTC_UPD)
    }
    #[doc = "DMA burst request event from AUX, configured by AUX_EVCTL:DMACTL"]
    #[inline]
    pub fn aux_dmabreq(self) -> &'a mut W {
        self.variant(EVW::AUX_DMABREQ)
    }
    #[doc = "DMA single request event from AUX, configured by AUX_EVCTL:DMACTL"]
    #[inline]
    pub fn aux_dmasreq(self) -> &'a mut W {
        self.variant(EVW::AUX_DMASREQ)
    }
    #[doc = "DMA sofware trigger from AUX, triggered by AUX_EVCTL:DMASWREQ.START"]
    #[inline]
    pub fn aux_sw_dmabreq(self) -> &'a mut W {
        self.variant(EVW::AUX_SW_DMABREQ)
    }
    #[doc = "AUX ADC interrupt event, corresponds to AUX_EVCTL:EVTOMCUFLAGS.AUX_ADC_IRQ. Status flags are found here AUX_EVCTL:EVTOMCUFLAGS"]
    #[inline]
    pub fn aux_adc_irq(self) -> &'a mut W {
        self.variant(EVW::AUX_ADC_IRQ)
    }
    #[doc = "Loopback of OBSMUX0 through AUX, corresponds to AUX_EVCTL:EVTOMCUFLAGS.MCU_OBSMUX0"]
    #[inline]
    pub fn aux_obsmux0(self) -> &'a mut W {
        self.variant(EVW::AUX_OBSMUX0)
    }
    #[doc = "AUX ADC FIFO watermark event, corresponds to AUX_EVCTL:EVTOMCUFLAGS.AUX_ADC_FIFO_ALMOST_FULL"]
    #[inline]
    pub fn aux_adc_fifo_almost_full(self) -> &'a mut W {
        self.variant(EVW::AUX_ADC_FIFO_ALMOST_FULL)
    }
    #[doc = "AUX ADC done, corresponds to AUX_EVCTL:EVTOMCUFLAGS.AUX_ADC_DONE"]
    #[inline]
    pub fn aux_adc_done(self) -> &'a mut W {
        self.variant(EVW::AUX_ADC_DONE)
    }
    #[doc = "Autotake event from AUX semaphore, configured by AUX_SMPH:AUTOTAKE"]
    #[inline]
    pub fn aux_smph_autotake_done(self) -> &'a mut W {
        self.variant(EVW::AUX_SMPH_AUTOTAKE_DONE)
    }
    #[doc = "AUX timer 1 event, corresponds to AUX_EVCTL:EVTOMCUFLAGS.AUX_TIMER1_EV"]
    #[inline]
    pub fn aux_timer1_ev(self) -> &'a mut W {
        self.variant(EVW::AUX_TIMER1_EV)
    }
    #[doc = "AUX timer 0 event, corresponds to AUX_EVCTL:EVTOMCUFLAGS.AUX_TIMER0_EV"]
    #[inline]
    pub fn aux_timer0_ev(self) -> &'a mut W {
        self.variant(EVW::AUX_TIMER0_EV)
    }
    #[doc = "AUX TDC measurement done event, corresponds to the flag AUX_EVCTL:EVTOMCUFLAGS.AUX_TDC_DONE and the AUX_TDC status AUX_TDC:STAT.DONE"]
    #[inline]
    pub fn aux_tdc_done(self) -> &'a mut W {
        self.variant(EVW::AUX_TDC_DONE)
    }
    #[doc = "AUX Compare B event, corresponds to AUX_EVCTL:EVTOMCUFLAGS.AUX_COMPB"]
    #[inline]
    pub fn aux_compb(self) -> &'a mut W {
        self.variant(EVW::AUX_COMPB)
    }
    #[doc = "AUX Compare A event, corresponds to AUX_EVCTL:EVTOMCUFLAGS.AUX_COMPA"]
    #[inline]
    pub fn aux_compa(self) -> &'a mut W {
        self.variant(EVW::AUX_COMPA)
    }
    #[doc = "AON wakeup event, the corresponding flag is here AUX_EVCTL:EVTOMCUFLAGS.AUX_WU_EV"]
    #[inline]
    pub fn aux_aon_wu_ev(self) -> &'a mut W {
        self.variant(EVW::AUX_AON_WU_EV)
    }
    #[doc = "TRNG Interrupt event, controlled by TRNG:IRQEN.EN"]
    #[inline]
    pub fn trng_irq(self) -> &'a mut W {
        self.variant(EVW::TRNG_IRQ)
    }
    #[doc = "Software event 3, triggered by SWEV.SWEV3"]
    #[inline]
    pub fn swev3(self) -> &'a mut W {
        self.variant(EVW::SWEV3)
    }
    #[doc = "Software event 2, triggered by SWEV.SWEV2"]
    #[inline]
    pub fn swev2(self) -> &'a mut W {
        self.variant(EVW::SWEV2)
    }
    #[doc = "Software event 1, triggered by SWEV.SWEV1"]
    #[inline]
    pub fn swev1(self) -> &'a mut W {
        self.variant(EVW::SWEV1)
    }
    #[doc = "Software event 0, triggered by SWEV.SWEV0"]
    #[inline]
    pub fn swev0(self) -> &'a mut W {
        self.variant(EVW::SWEV0)
    }
    #[doc = "Watchdog non maskable interrupt event, controlled by WDT:CTL.INTTYPE"]
    #[inline]
    pub fn wdt_nmi(self) -> &'a mut W {
        self.variant(EVW::WDT_NMI)
    }
    #[doc = "CRYPTO DMA input done event, the correspondingg flag is CRYPTO:IRQSTAT.DMA_IN_DONE. Controlled by CRYPTO:IRQEN.DMA_IN_DONE"]
    #[inline]
    pub fn crypto_dma_done_irq(self) -> &'a mut W {
        self.variant(EVW::CRYPTO_DMA_DONE_IRQ)
    }
    #[doc = "CRYPTO result available interupt event, the corresponding flag is found here CRYPTO:IRQSTAT.RESULT_AVAIL. Controlled by CRYPTO:IRQSTAT.RESULT_AVAIL"]
    #[inline]
    pub fn crypto_result_avail_irq(self) -> &'a mut W {
        self.variant(EVW::CRYPTO_RESULT_AVAIL_IRQ)
    }
    #[doc = "Port capture event from IOC, configured by IOC:IOCFGn.PORT_ID. Events on ports configured with ENUM PORT_EVENT7 wil be routed here."]
    #[inline]
    pub fn port_event7(self) -> &'a mut W {
        self.variant(EVW::PORT_EVENT7)
    }
    #[doc = "Port capture event from IOC, configured by IOC:IOCFGn.PORT_ID. Events on ports configured with ENUM PORT_EVENT6 wil be routed here."]
    #[inline]
    pub fn port_event6(self) -> &'a mut W {
        self.variant(EVW::PORT_EVENT6)
    }
    #[doc = "Port capture event from IOC, configured by IOC:IOCFGn.PORT_ID. Events on ports configured with ENUM PORT_EVENT4 wil be routed here."]
    #[inline]
    pub fn port_event5(self) -> &'a mut W {
        self.variant(EVW::PORT_EVENT5)
    }
    #[doc = "Port capture event from IOC, configured by IOC:IOCFGn.PORT_ID. Events on ports configured with ENUM PORT_EVENT4 wil be routed here."]
    #[inline]
    pub fn port_event4(self) -> &'a mut W {
        self.variant(EVW::PORT_EVENT4)
    }
    #[doc = "Port capture event from IOC, configured by IOC:IOCFGn.PORT_ID. Events on ports configured with ENUM PORT_EVENT3 wil be routed here."]
    #[inline]
    pub fn port_event3(self) -> &'a mut W {
        self.variant(EVW::PORT_EVENT3)
    }
    #[doc = "Port capture event from IOC, configured by IOC:IOCFGn.PORT_ID. Events on ports configured with ENUM PORT_EVENT2 wil be routed here."]
    #[inline]
    pub fn port_event2(self) -> &'a mut W {
        self.variant(EVW::PORT_EVENT2)
    }
    #[doc = "Port capture event from IOC, configured by IOC:IOCFGn.PORT_ID. Events on ports configured with ENUM PORT_EVENT1 wil be routed here."]
    #[inline]
    pub fn port_event1(self) -> &'a mut W {
        self.variant(EVW::PORT_EVENT1)
    }
    #[doc = "Port capture event from IOC, configured by IOC:IOCFGn.PORT_ID. Events on ports configured with ENUM PORT_EVENT0 wil be routed here."]
    #[inline]
    pub fn port_event0(self) -> &'a mut W {
        self.variant(EVW::PORT_EVENT0)
    }
    #[doc = "GPT3B DMA trigger event. Configured by GPT3:DMAEV"]
    #[inline]
    pub fn gpt3b_dmabreq(self) -> &'a mut W {
        self.variant(EVW::GPT3B_DMABREQ)
    }
    #[doc = "GPT3A DMA trigger event. Configured by GPT3:DMAEV"]
    #[inline]
    pub fn gpt3a_dmabreq(self) -> &'a mut W {
        self.variant(EVW::GPT3A_DMABREQ)
    }
    #[doc = "GPT2B DMA trigger event. Configured by GPT2:DMAEV"]
    #[inline]
    pub fn gpt2b_dmabreq(self) -> &'a mut W {
        self.variant(EVW::GPT2B_DMABREQ)
    }
    #[doc = "GPT2A DMA trigger event. Configured by GPT2:DMAEV"]
    #[inline]
    pub fn gpt2a_dmabreq(self) -> &'a mut W {
        self.variant(EVW::GPT2A_DMABREQ)
    }
    #[doc = "GPT1B DMA trigger event. Configured by GPT1:DMAEV"]
    #[inline]
    pub fn gpt1b_dmabreq(self) -> &'a mut W {
        self.variant(EVW::GPT1B_DMABREQ)
    }
    #[doc = "GPT1A DMA trigger event. Configured by GPT1:DMAEV"]
    #[inline]
    pub fn gpt1a_dmabreq(self) -> &'a mut W {
        self.variant(EVW::GPT1A_DMABREQ)
    }
    #[doc = "GPT0B DMA trigger event. Configured by GPT0:DMAEV"]
    #[inline]
    pub fn gpt0b_dmabreq(self) -> &'a mut W {
        self.variant(EVW::GPT0B_DMABREQ)
    }
    #[doc = "GPT0A DMA trigger event. Configured by GPT0:DMAEV"]
    #[inline]
    pub fn gpt0a_dmabreq(self) -> &'a mut W {
        self.variant(EVW::GPT0A_DMABREQ)
    }
    #[doc = "GPT3B compare event. Configured by GPT3:TBMR.TCACT"]
    #[inline]
    pub fn gpt3b_cmp(self) -> &'a mut W {
        self.variant(EVW::GPT3B_CMP)
    }
    #[doc = "GPT3A compare event. Configured by GPT3:TAMR.TCACT"]
    #[inline]
    pub fn gpt3a_cmp(self) -> &'a mut W {
        self.variant(EVW::GPT3A_CMP)
    }
    #[doc = "GPT2B compare event. Configured by GPT2:TBMR.TCACT"]
    #[inline]
    pub fn gpt2b_cmp(self) -> &'a mut W {
        self.variant(EVW::GPT2B_CMP)
    }
    #[doc = "GPT2A compare event. Configured by GPT2:TAMR.TCACT"]
    #[inline]
    pub fn gpt2a_cmp(self) -> &'a mut W {
        self.variant(EVW::GPT2A_CMP)
    }
    #[doc = "GPT1B compare event. Configured by GPT1:TBMR.TCACT"]
    #[inline]
    pub fn gpt1b_cmp(self) -> &'a mut W {
        self.variant(EVW::GPT1B_CMP)
    }
    #[doc = "GPT1A compare event. Configured by GPT1:TAMR.TCACT"]
    #[inline]
    pub fn gpt1a_cmp(self) -> &'a mut W {
        self.variant(EVW::GPT1A_CMP)
    }
    #[doc = "GPT0B compare event. Configured by GPT0:TBMR.TCACT"]
    #[inline]
    pub fn gpt0b_cmp(self) -> &'a mut W {
        self.variant(EVW::GPT0B_CMP)
    }
    #[doc = "GPT0A compare event. Configured by GPT0:TAMR.TCACT"]
    #[inline]
    pub fn gpt0a_cmp(self) -> &'a mut W {
        self.variant(EVW::GPT0A_CMP)
    }
    #[doc = "AUX Timer2 pulse, corresponding to flag AUX_EVCTL:EVTOMCUFLAGS.AUX_TIMER2_PULSE"]
    #[inline]
    pub fn aux_timer2_pulse(self) -> &'a mut W {
        self.variant(EVW::AUX_TIMER2_PULSE)
    }
    #[doc = "AUX Timer2 event 3, corresponding to flag AUX_EVCTL:EVTOMCUFLAGS.AUX_TIMER2_EV3"]
    #[inline]
    pub fn aux_timer2_ev3(self) -> &'a mut W {
        self.variant(EVW::AUX_TIMER2_EV3)
    }
    #[doc = "AUX Timer2 event 2, corresponding to flag AUX_EVCTL:EVTOMCUFLAGS.AUX_TIMER2_EV2"]
    #[inline]
    pub fn aux_timer2_ev2(self) -> &'a mut W {
        self.variant(EVW::AUX_TIMER2_EV2)
    }
    #[doc = "AUX Timer2 event 1, corresponding to flag AUX_EVCTL:EVTOMCUFLAGS.AUX_TIMER2_EV1"]
    #[inline]
    pub fn aux_timer2_ev1(self) -> &'a mut W {
        self.variant(EVW::AUX_TIMER2_EV1)
    }
    #[doc = "AUX Timer2 event 0, corresponding to flag AUX_EVCTL:EVTOMCUFLAGS.AUX_TIMER2_EV0"]
    #[inline]
    pub fn aux_timer2_ev0(self) -> &'a mut W {
        self.variant(EVW::AUX_TIMER2_EV0)
    }
    #[doc = "UART1 TX DMA single request, controlled by UART1:DMACTL.TXDMAE"]
    #[inline]
    pub fn uart1_tx_dmasreq(self) -> &'a mut W {
        self.variant(EVW::UART1_TX_DMASREQ)
    }
    #[doc = "UART1 TX DMA burst request, controlled by UART1:DMACTL.TXDMAE"]
    #[inline]
    pub fn uart1_tx_dmabreq(self) -> &'a mut W {
        self.variant(EVW::UART1_TX_DMABREQ)
    }
    #[doc = "UART1 RX DMA single request, controlled by UART1:DMACTL.RXDMAE"]
    #[inline]
    pub fn uart1_rx_dmasreq(self) -> &'a mut W {
        self.variant(EVW::UART1_RX_DMASREQ)
    }
    #[doc = "UART1 RX DMA burst request, controlled by UART1:DMACTL.RXDMAE"]
    #[inline]
    pub fn uart1_rx_dmabreq(self) -> &'a mut W {
        self.variant(EVW::UART1_RX_DMABREQ)
    }
    #[doc = "UART0 TX DMA single request, controlled by UART0:DMACTL.TXDMAE"]
    #[inline]
    pub fn uart0_tx_dmasreq(self) -> &'a mut W {
        self.variant(EVW::UART0_TX_DMASREQ)
    }
    #[doc = "UART0 TX DMA burst request, controlled by UART0:DMACTL.TXDMAE"]
    #[inline]
    pub fn uart0_tx_dmabreq(self) -> &'a mut W {
        self.variant(EVW::UART0_TX_DMABREQ)
    }
    #[doc = "UART0 RX DMA single request, controlled by UART0:DMACTL.RXDMAE"]
    #[inline]
    pub fn uart0_rx_dmasreq(self) -> &'a mut W {
        self.variant(EVW::UART0_RX_DMASREQ)
    }
    #[doc = "UART0 RX DMA burst request, controlled by UART0:DMACTL.RXDMAE"]
    #[inline]
    pub fn uart0_rx_dmabreq(self) -> &'a mut W {
        self.variant(EVW::UART0_RX_DMABREQ)
    }
    #[doc = "SSI1 TX DMA single request, controlled by SSI0:DMACR.TXDMAE"]
    #[inline]
    pub fn ssi1_tx_dmasreq(self) -> &'a mut W {
        self.variant(EVW::SSI1_TX_DMASREQ)
    }
    #[doc = "SSI1 TX DMA burst request , controlled by SSI0:DMACR.TXDMAE"]
    #[inline]
    pub fn ssi1_tx_dmabreq(self) -> &'a mut W {
        self.variant(EVW::SSI1_TX_DMABREQ)
    }
    #[doc = "SSI1 RX DMA single request, controlled by SSI0:DMACR.RXDMAE"]
    #[inline]
    pub fn ssi1_rx_dmasreq(self) -> &'a mut W {
        self.variant(EVW::SSI1_RX_DMASREQ)
    }
    #[doc = "SSI1 RX DMA burst request , controlled by SSI0:DMACR.RXDMAE"]
    #[inline]
    pub fn ssi1_rx_dmabreq(self) -> &'a mut W {
        self.variant(EVW::SSI1_RX_DMABREQ)
    }
    #[doc = "SSI0 TX DMA single request, controlled by SSI0:DMACR.TXDMAE"]
    #[inline]
    pub fn ssi0_tx_dmasreq(self) -> &'a mut W {
        self.variant(EVW::SSI0_TX_DMASREQ)
    }
    #[doc = "SSI0 TX DMA burst request , controlled by SSI0:DMACR.TXDMAE"]
    #[inline]
    pub fn ssi0_tx_dmabreq(self) -> &'a mut W {
        self.variant(EVW::SSI0_TX_DMABREQ)
    }
    #[doc = "SSI0 RX DMA single request, controlled by SSI0:DMACR.RXDMAE"]
    #[inline]
    pub fn ssi0_rx_dmasreq(self) -> &'a mut W {
        self.variant(EVW::SSI0_RX_DMASREQ)
    }
    #[doc = "SSI0 RX DMA burst request , controlled by SSI0:DMACR.RXDMAE"]
    #[inline]
    pub fn ssi0_rx_dmabreq(self) -> &'a mut W {
        self.variant(EVW::SSI0_RX_DMABREQ)
    }
    #[doc = "Combined DMA done, corresponding flags are here UDMA0:REQDONE"]
    #[inline]
    pub fn dma_done_comb(self) -> &'a mut W {
        self.variant(EVW::DMA_DONE_COMB)
    }
    #[doc = "DMA bus error, corresponds to UDMA0:ERROR.STATUS"]
    #[inline]
    pub fn dma_err(self) -> &'a mut W {
        self.variant(EVW::DMA_ERR)
    }
    #[doc = "UART1 combined interrupt, interrupt flags are found here UART1:MIS"]
    #[inline]
    pub fn uart1_comb(self) -> &'a mut W {
        self.variant(EVW::UART1_COMB)
    }
    #[doc = "UART0 combined interrupt, interrupt flags are found here UART0:MIS"]
    #[inline]
    pub fn uart0_comb(self) -> &'a mut W {
        self.variant(EVW::UART0_COMB)
    }
    #[doc = "SSI1 combined interrupt, interrupt flags are found here SSI1:MIS"]
    #[inline]
    pub fn ssi1_comb(self) -> &'a mut W {
        self.variant(EVW::SSI1_COMB)
    }
    #[doc = "SSI0 combined interrupt, interrupt flags are found here SSI0:MIS"]
    #[inline]
    pub fn ssi0_comb(self) -> &'a mut W {
        self.variant(EVW::SSI0_COMB)
    }
    #[doc = "PKA Interrupt event"]
    #[inline]
    pub fn pka_irq(self) -> &'a mut W {
        self.variant(EVW::PKA_IRQ)
    }
    #[doc = "Combined Interrupt for CPE Generated events. Corresponding flags are here RFC_DBELL:RFCPEIFG. Only interrupts selected with CPE1 in RFC_DBELL:RFCPEIFG can trigger a RFC_CPE_1 event"]
    #[inline]
    pub fn rfc_cpe_1(self) -> &'a mut W {
        self.variant(EVW::RFC_CPE_1)
    }
    #[doc = "AUX software event 1, triggered by AUX_EVCTL:SWEVSET.SWEV1, also available as AUX_EVENT2 AON wake up event. MCU domain wakeup control AON_EVENT:MCUWUSEL"]
    #[inline]
    pub fn aux_swev1(self) -> &'a mut W {
        self.variant(EVW::AUX_SWEV1)
    }
    #[doc = "Combined Interrupt for CPE Generated events. Corresponding flags are here RFC_DBELL:RFCPEIFG. Only interrupts selected with CPE0 in RFC_DBELL:RFCPEIFG can trigger a RFC_CPE_0 event"]
    #[inline]
    pub fn rfc_cpe_0(self) -> &'a mut W {
        self.variant(EVW::RFC_CPE_0)
    }
    #[doc = "Combined RFC hardware interrupt, corresponding flag is here RFC_DBELL:RFHWIFG"]
    #[inline]
    pub fn rfc_hw_comb(self) -> &'a mut W {
        self.variant(EVW::RFC_HW_COMB)
    }
    #[doc = "RFC Doorbell Command Acknowledgement Interrupt, equvialent to RFC_DBELL:RFACKIFG.ACKFLAG"]
    #[inline]
    pub fn rfc_cmd_ack(self) -> &'a mut W {
        self.variant(EVW::RFC_CMD_ACK)
    }
    #[doc = "Watchdog interrupt event, controlled by WDT:CTL.INTEN"]
    #[inline]
    pub fn wdt_irq(self) -> &'a mut W {
        self.variant(EVW::WDT_IRQ)
    }
    #[doc = "DMA done for software tiggered UDMA channel 18, see UDMA0:SOFTREQ"]
    #[inline]
    pub fn dma_ch18_done(self) -> &'a mut W {
        self.variant(EVW::DMA_CH18_DONE)
    }
    #[doc = "FLASH controller error event, the status flags are FLASH:FEDACSTAT.FSM_DONE and FLASH:FEDACSTAT.RVF_INT"]
    #[inline]
    pub fn flash(self) -> &'a mut W {
        self.variant(EVW::FLASH)
    }
    #[doc = "DMA done for software tiggered UDMA channel 0, see UDMA0:SOFTREQ"]
    #[inline]
    pub fn dma_ch0_done(self) -> &'a mut W {
        self.variant(EVW::DMA_CH0_DONE)
    }
    #[doc = "GPT1B interrupt event, controlled by GPT1:TBMR"]
    #[inline]
    pub fn gpt1b(self) -> &'a mut W {
        self.variant(EVW::GPT1B)
    }
    #[doc = "GPT1A interrupt event, controlled by GPT1:TAMR"]
    #[inline]
    pub fn gpt1a(self) -> &'a mut W {
        self.variant(EVW::GPT1A)
    }
    #[doc = "GPT0B interrupt event, controlled by GPT0:TBMR"]
    #[inline]
    pub fn gpt0b(self) -> &'a mut W {
        self.variant(EVW::GPT0B)
    }
    #[doc = "GPT0A interrupt event, controlled by GPT0:TAMR"]
    #[inline]
    pub fn gpt0a(self) -> &'a mut W {
        self.variant(EVW::GPT0A)
    }
    #[doc = "GPT3B interrupt event, controlled by GPT3:TBMR"]
    #[inline]
    pub fn gpt3b(self) -> &'a mut W {
        self.variant(EVW::GPT3B)
    }
    #[doc = "GPT3A interrupt event, controlled by GPT3:TAMR"]
    #[inline]
    pub fn gpt3a(self) -> &'a mut W {
        self.variant(EVW::GPT3A)
    }
    #[doc = "GPT2B interrupt event, controlled by GPT2:TBMR"]
    #[inline]
    pub fn gpt2b(self) -> &'a mut W {
        self.variant(EVW::GPT2B)
    }
    #[doc = "GPT2A interrupt event, controlled by GPT2:TAMR"]
    #[inline]
    pub fn gpt2a(self) -> &'a mut W {
        self.variant(EVW::GPT2A)
    }
    #[doc = "AUX combined event, the corresponding flag register is here AUX_EVCTL:EVTOMCUFLAGS"]
    #[inline]
    pub fn aux_comb(self) -> &'a mut W {
        self.variant(EVW::AUX_COMB)
    }
    #[doc = "AUX Software event 0, AUX_EVCTL:SWEVSET.SWEV0"]
    #[inline]
    pub fn aon_aux_swev0(self) -> &'a mut W {
        self.variant(EVW::AON_AUX_SWEV0)
    }
    #[doc = "Interrupt event from I2C"]
    #[inline]
    pub fn i2c_irq(self) -> &'a mut W {
        self.variant(EVW::I2C_IRQ)
    }
    #[doc = "Interrupt event from I2S"]
    #[inline]
    pub fn i2s_irq(self) -> &'a mut W {
        self.variant(EVW::I2S_IRQ)
    }
    #[doc = "Event from AON_RTC, controlled by the AON_RTC:CTL.COMB_EV_MASK setting"]
    #[inline]
    pub fn aon_rtc_comb(self) -> &'a mut W {
        self.variant(EVW::AON_RTC_COMB)
    }
    #[doc = "Combined event from Oscillator control"]
    #[inline]
    pub fn osc_comb(self) -> &'a mut W {
        self.variant(EVW::OSC_COMB)
    }
    #[doc = "Combined event from battery monitor"]
    #[inline]
    pub fn batmon_comb(self) -> &'a mut W {
        self.variant(EVW::BATMON_COMB)
    }
    #[doc = "Edge detect event from IOC. Configureded by the IOC:IOCFGn.EDGE_IRQ_EN and IOC:IOCFGn.EDGE_DET settings"]
    #[inline]
    pub fn aon_gpio_edge(self) -> &'a mut W {
        self.variant(EVW::AON_GPIO_EDGE)
    }
    #[doc = "AON programmable event 2. Event selected by AON_EVENT MCU event selector, AON_EVENT:EVTOMCUSEL.AON_PROG2_EV"]
    #[inline]
    pub fn aon_prog2(self) -> &'a mut W {
        self.variant(EVW::AON_PROG2)
    }
    #[doc = "AON programmable event 1. Event selected by AON_EVENT MCU event selector, AON_EVENT:EVTOMCUSEL.AON_PROG1_EV"]
    #[inline]
    pub fn aon_prog1(self) -> &'a mut W {
        self.variant(EVW::AON_PROG1)
    }
    #[doc = "AON programmable event 0. Event selected by AON_EVENT MCU event selector, AON_EVENT:EVTOMCUSEL.AON_PROG0_EV"]
    #[inline]
    pub fn aon_prog0(self) -> &'a mut W {
        self.variant(EVW::AON_PROG0)
    }
    #[doc = "Always inactive"]
    #[inline]
    pub fn none(self) -> &'a mut W {
        self.variant(EVW::NONE)
    }
    #[doc = r" Writes raw bits to the field"]
    #[inline]
    pub unsafe fn bits(self, value: u8) -> &'a mut W {
        const MASK: u8 = 127;
        const OFFSET: u8 = 0;
        self.w.bits &= !((MASK as u32) << OFFSET);
        self.w.bits |= ((value & MASK) as u32) << OFFSET;
        self.w
    }
}
impl R {
    #[doc = r" Value of the register as raw bits"]
    #[inline]
    pub fn bits(&self) -> u32 {
        self.bits
    }
    #[doc = "Bits 0:6 - 6:0\\] Read/write selection value Writing any other value than values defined by a ENUM may result in undefined behavior."]
    #[inline]
    pub fn ev(&self) -> EVR {
        EVR::_from({
            const MASK: u8 = 127;
            const OFFSET: u8 = 0;
            ((self.bits >> OFFSET) & MASK as u32) as u8
        })
    }
}
impl W {
    #[doc = r" Reset value of the register"]
    #[inline]
    pub fn reset_value() -> W {
        W { bits: 1 }
    }
    #[doc = r" Writes raw bits to the register"]
    #[inline]
    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
        self.bits = bits;
        self
    }
    #[doc = "Bits 0:6 - 6:0\\] Read/write selection value Writing any other value than values defined by a ENUM may result in undefined behavior."]
    #[inline]
    pub fn ev(&mut self) -> _EVW {
        _EVW { w: self }
    }
}