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
#[doc = "Register `CC` reader"]
pub struct R(crate::R<CC_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<CC_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<CC_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<CC_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `CC` writer"]
pub struct W(crate::W<CC_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<CC_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl core::ops::DerefMut for W {
    #[inline(always)]
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.0
    }
}
impl From<crate::W<CC_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<CC_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `TYPE` reader - Channel x Transfer Type"]
pub type TYPE_R = crate::BitReader<TYPESELECT_A>;
#[doc = "Channel x Transfer Type\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum TYPESELECT_A {
    #[doc = "0: Self-triggered mode (memory-to-memory transfer)."]
    MEM_TRAN = 0,
    #[doc = "1: Synchronized mode (peripheral-to-memory or memory-to-peripheral transfer)."]
    PER_TRAN = 1,
}
impl From<TYPESELECT_A> for bool {
    #[inline(always)]
    fn from(variant: TYPESELECT_A) -> Self {
        variant as u8 != 0
    }
}
impl TYPE_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> TYPESELECT_A {
        match self.bits {
            false => TYPESELECT_A::MEM_TRAN,
            true => TYPESELECT_A::PER_TRAN,
        }
    }
    #[doc = "Checks if the value of the field is `MEM_TRAN`"]
    #[inline(always)]
    pub fn is_mem_tran(&self) -> bool {
        *self == TYPESELECT_A::MEM_TRAN
    }
    #[doc = "Checks if the value of the field is `PER_TRAN`"]
    #[inline(always)]
    pub fn is_per_tran(&self) -> bool {
        *self == TYPESELECT_A::PER_TRAN
    }
}
#[doc = "Field `TYPE` writer - Channel x Transfer Type"]
pub type TYPE_W<'a, const O: u8> = crate::BitWriter<'a, u32, CC_SPEC, TYPESELECT_A, O>;
impl<'a, const O: u8> TYPE_W<'a, O> {
    #[doc = "Self-triggered mode (memory-to-memory transfer)."]
    #[inline(always)]
    pub fn mem_tran(self) -> &'a mut W {
        self.variant(TYPESELECT_A::MEM_TRAN)
    }
    #[doc = "Synchronized mode (peripheral-to-memory or memory-to-peripheral transfer)."]
    #[inline(always)]
    pub fn per_tran(self) -> &'a mut W {
        self.variant(TYPESELECT_A::PER_TRAN)
    }
}
#[doc = "Field `MBSIZE` reader - Channel x Memory Burst Size"]
pub type MBSIZE_R = crate::FieldReader<u8, MBSIZESELECT_A>;
#[doc = "Channel x Memory Burst Size\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum MBSIZESELECT_A {
    #[doc = "0: The memory burst size is set to one."]
    SINGLE = 0,
    #[doc = "1: The memory burst size is set to four."]
    FOUR = 1,
    #[doc = "2: The memory burst size is set to eight."]
    EIGHT = 2,
    #[doc = "3: The memory burst size is set to sixteen."]
    SIXTEEN = 3,
}
impl From<MBSIZESELECT_A> for u8 {
    #[inline(always)]
    fn from(variant: MBSIZESELECT_A) -> Self {
        variant as _
    }
}
impl MBSIZE_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> MBSIZESELECT_A {
        match self.bits {
            0 => MBSIZESELECT_A::SINGLE,
            1 => MBSIZESELECT_A::FOUR,
            2 => MBSIZESELECT_A::EIGHT,
            3 => MBSIZESELECT_A::SIXTEEN,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `SINGLE`"]
    #[inline(always)]
    pub fn is_single(&self) -> bool {
        *self == MBSIZESELECT_A::SINGLE
    }
    #[doc = "Checks if the value of the field is `FOUR`"]
    #[inline(always)]
    pub fn is_four(&self) -> bool {
        *self == MBSIZESELECT_A::FOUR
    }
    #[doc = "Checks if the value of the field is `EIGHT`"]
    #[inline(always)]
    pub fn is_eight(&self) -> bool {
        *self == MBSIZESELECT_A::EIGHT
    }
    #[doc = "Checks if the value of the field is `SIXTEEN`"]
    #[inline(always)]
    pub fn is_sixteen(&self) -> bool {
        *self == MBSIZESELECT_A::SIXTEEN
    }
}
#[doc = "Field `MBSIZE` writer - Channel x Memory Burst Size"]
pub type MBSIZE_W<'a, const O: u8> =
    crate::FieldWriterSafe<'a, u32, CC_SPEC, u8, MBSIZESELECT_A, 2, O>;
impl<'a, const O: u8> MBSIZE_W<'a, O> {
    #[doc = "The memory burst size is set to one."]
    #[inline(always)]
    pub fn single(self) -> &'a mut W {
        self.variant(MBSIZESELECT_A::SINGLE)
    }
    #[doc = "The memory burst size is set to four."]
    #[inline(always)]
    pub fn four(self) -> &'a mut W {
        self.variant(MBSIZESELECT_A::FOUR)
    }
    #[doc = "The memory burst size is set to eight."]
    #[inline(always)]
    pub fn eight(self) -> &'a mut W {
        self.variant(MBSIZESELECT_A::EIGHT)
    }
    #[doc = "The memory burst size is set to sixteen."]
    #[inline(always)]
    pub fn sixteen(self) -> &'a mut W {
        self.variant(MBSIZESELECT_A::SIXTEEN)
    }
}
#[doc = "Field `DSYNC` reader - Channel x Synchronization"]
pub type DSYNC_R = crate::BitReader<DSYNCSELECT_A>;
#[doc = "Channel x Synchronization\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum DSYNCSELECT_A {
    #[doc = "0: Peripheral-to-memory transfer."]
    PER2MEM = 0,
    #[doc = "1: Memory-to-peripheral transfer."]
    MEM2PER = 1,
}
impl From<DSYNCSELECT_A> for bool {
    #[inline(always)]
    fn from(variant: DSYNCSELECT_A) -> Self {
        variant as u8 != 0
    }
}
impl DSYNC_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> DSYNCSELECT_A {
        match self.bits {
            false => DSYNCSELECT_A::PER2MEM,
            true => DSYNCSELECT_A::MEM2PER,
        }
    }
    #[doc = "Checks if the value of the field is `PER2MEM`"]
    #[inline(always)]
    pub fn is_per2mem(&self) -> bool {
        *self == DSYNCSELECT_A::PER2MEM
    }
    #[doc = "Checks if the value of the field is `MEM2PER`"]
    #[inline(always)]
    pub fn is_mem2per(&self) -> bool {
        *self == DSYNCSELECT_A::MEM2PER
    }
}
#[doc = "Field `DSYNC` writer - Channel x Synchronization"]
pub type DSYNC_W<'a, const O: u8> = crate::BitWriter<'a, u32, CC_SPEC, DSYNCSELECT_A, O>;
impl<'a, const O: u8> DSYNC_W<'a, O> {
    #[doc = "Peripheral-to-memory transfer."]
    #[inline(always)]
    pub fn per2mem(self) -> &'a mut W {
        self.variant(DSYNCSELECT_A::PER2MEM)
    }
    #[doc = "Memory-to-peripheral transfer."]
    #[inline(always)]
    pub fn mem2per(self) -> &'a mut W {
        self.variant(DSYNCSELECT_A::MEM2PER)
    }
}
#[doc = "Field `SWREQ` reader - Channel x Software Request Trigger"]
pub type SWREQ_R = crate::BitReader<SWREQSELECT_A>;
#[doc = "Channel x Software Request Trigger\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum SWREQSELECT_A {
    #[doc = "0: Hardware request line is connected to the peripheral request line."]
    HWR_CONNECTED = 0,
    #[doc = "1: Software request is connected to the peripheral request line."]
    SWR_CONNECTED = 1,
}
impl From<SWREQSELECT_A> for bool {
    #[inline(always)]
    fn from(variant: SWREQSELECT_A) -> Self {
        variant as u8 != 0
    }
}
impl SWREQ_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> SWREQSELECT_A {
        match self.bits {
            false => SWREQSELECT_A::HWR_CONNECTED,
            true => SWREQSELECT_A::SWR_CONNECTED,
        }
    }
    #[doc = "Checks if the value of the field is `HWR_CONNECTED`"]
    #[inline(always)]
    pub fn is_hwr_connected(&self) -> bool {
        *self == SWREQSELECT_A::HWR_CONNECTED
    }
    #[doc = "Checks if the value of the field is `SWR_CONNECTED`"]
    #[inline(always)]
    pub fn is_swr_connected(&self) -> bool {
        *self == SWREQSELECT_A::SWR_CONNECTED
    }
}
#[doc = "Field `SWREQ` writer - Channel x Software Request Trigger"]
pub type SWREQ_W<'a, const O: u8> = crate::BitWriter<'a, u32, CC_SPEC, SWREQSELECT_A, O>;
impl<'a, const O: u8> SWREQ_W<'a, O> {
    #[doc = "Hardware request line is connected to the peripheral request line."]
    #[inline(always)]
    pub fn hwr_connected(self) -> &'a mut W {
        self.variant(SWREQSELECT_A::HWR_CONNECTED)
    }
    #[doc = "Software request is connected to the peripheral request line."]
    #[inline(always)]
    pub fn swr_connected(self) -> &'a mut W {
        self.variant(SWREQSELECT_A::SWR_CONNECTED)
    }
}
#[doc = "Field `MEMSET` reader - Channel x Fill Block of memory"]
pub type MEMSET_R = crate::BitReader<MEMSETSELECT_A>;
#[doc = "Channel x Fill Block of memory\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum MEMSETSELECT_A {
    #[doc = "0: Memset is not activated."]
    NORMAL_MODE = 0,
    #[doc = "1: Sets the block of memory pointed by DA field to the specified value. This operation is performed on 8-, 16- or 32-bit basis."]
    HW_MODE = 1,
}
impl From<MEMSETSELECT_A> for bool {
    #[inline(always)]
    fn from(variant: MEMSETSELECT_A) -> Self {
        variant as u8 != 0
    }
}
impl MEMSET_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> MEMSETSELECT_A {
        match self.bits {
            false => MEMSETSELECT_A::NORMAL_MODE,
            true => MEMSETSELECT_A::HW_MODE,
        }
    }
    #[doc = "Checks if the value of the field is `NORMAL_MODE`"]
    #[inline(always)]
    pub fn is_normal_mode(&self) -> bool {
        *self == MEMSETSELECT_A::NORMAL_MODE
    }
    #[doc = "Checks if the value of the field is `HW_MODE`"]
    #[inline(always)]
    pub fn is_hw_mode(&self) -> bool {
        *self == MEMSETSELECT_A::HW_MODE
    }
}
#[doc = "Field `MEMSET` writer - Channel x Fill Block of memory"]
pub type MEMSET_W<'a, const O: u8> = crate::BitWriter<'a, u32, CC_SPEC, MEMSETSELECT_A, O>;
impl<'a, const O: u8> MEMSET_W<'a, O> {
    #[doc = "Memset is not activated."]
    #[inline(always)]
    pub fn normal_mode(self) -> &'a mut W {
        self.variant(MEMSETSELECT_A::NORMAL_MODE)
    }
    #[doc = "Sets the block of memory pointed by DA field to the specified value. This operation is performed on 8-, 16- or 32-bit basis."]
    #[inline(always)]
    pub fn hw_mode(self) -> &'a mut W {
        self.variant(MEMSETSELECT_A::HW_MODE)
    }
}
#[doc = "Field `CSIZE` reader - Channel x Chunk Size"]
pub type CSIZE_R = crate::FieldReader<u8, CSIZESELECT_A>;
#[doc = "Channel x Chunk Size\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum CSIZESELECT_A {
    #[doc = "0: 1 data transferred"]
    CHK_1 = 0,
    #[doc = "1: 2 data transferred"]
    CHK_2 = 1,
    #[doc = "2: 4 data transferred"]
    CHK_4 = 2,
    #[doc = "3: 8 data transferred"]
    CHK_8 = 3,
    #[doc = "4: 16 data transferred"]
    CHK_16 = 4,
}
impl From<CSIZESELECT_A> for u8 {
    #[inline(always)]
    fn from(variant: CSIZESELECT_A) -> Self {
        variant as _
    }
}
impl CSIZE_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> Option<CSIZESELECT_A> {
        match self.bits {
            0 => Some(CSIZESELECT_A::CHK_1),
            1 => Some(CSIZESELECT_A::CHK_2),
            2 => Some(CSIZESELECT_A::CHK_4),
            3 => Some(CSIZESELECT_A::CHK_8),
            4 => Some(CSIZESELECT_A::CHK_16),
            _ => None,
        }
    }
    #[doc = "Checks if the value of the field is `CHK_1`"]
    #[inline(always)]
    pub fn is_chk_1(&self) -> bool {
        *self == CSIZESELECT_A::CHK_1
    }
    #[doc = "Checks if the value of the field is `CHK_2`"]
    #[inline(always)]
    pub fn is_chk_2(&self) -> bool {
        *self == CSIZESELECT_A::CHK_2
    }
    #[doc = "Checks if the value of the field is `CHK_4`"]
    #[inline(always)]
    pub fn is_chk_4(&self) -> bool {
        *self == CSIZESELECT_A::CHK_4
    }
    #[doc = "Checks if the value of the field is `CHK_8`"]
    #[inline(always)]
    pub fn is_chk_8(&self) -> bool {
        *self == CSIZESELECT_A::CHK_8
    }
    #[doc = "Checks if the value of the field is `CHK_16`"]
    #[inline(always)]
    pub fn is_chk_16(&self) -> bool {
        *self == CSIZESELECT_A::CHK_16
    }
}
#[doc = "Field `CSIZE` writer - Channel x Chunk Size"]
pub type CSIZE_W<'a, const O: u8> = crate::FieldWriter<'a, u32, CC_SPEC, u8, CSIZESELECT_A, 3, O>;
impl<'a, const O: u8> CSIZE_W<'a, O> {
    #[doc = "1 data transferred"]
    #[inline(always)]
    pub fn chk_1(self) -> &'a mut W {
        self.variant(CSIZESELECT_A::CHK_1)
    }
    #[doc = "2 data transferred"]
    #[inline(always)]
    pub fn chk_2(self) -> &'a mut W {
        self.variant(CSIZESELECT_A::CHK_2)
    }
    #[doc = "4 data transferred"]
    #[inline(always)]
    pub fn chk_4(self) -> &'a mut W {
        self.variant(CSIZESELECT_A::CHK_4)
    }
    #[doc = "8 data transferred"]
    #[inline(always)]
    pub fn chk_8(self) -> &'a mut W {
        self.variant(CSIZESELECT_A::CHK_8)
    }
    #[doc = "16 data transferred"]
    #[inline(always)]
    pub fn chk_16(self) -> &'a mut W {
        self.variant(CSIZESELECT_A::CHK_16)
    }
}
#[doc = "Field `DWIDTH` reader - Channel x Data Width"]
pub type DWIDTH_R = crate::FieldReader<u8, DWIDTHSELECT_A>;
#[doc = "Channel x Data Width\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum DWIDTHSELECT_A {
    #[doc = "0: The data size is set to 8 bits"]
    BYTE = 0,
    #[doc = "1: The data size is set to 16 bits"]
    HALFWORD = 1,
    #[doc = "2: The data size is set to 32 bits"]
    WORD = 2,
}
impl From<DWIDTHSELECT_A> for u8 {
    #[inline(always)]
    fn from(variant: DWIDTHSELECT_A) -> Self {
        variant as _
    }
}
impl DWIDTH_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> Option<DWIDTHSELECT_A> {
        match self.bits {
            0 => Some(DWIDTHSELECT_A::BYTE),
            1 => Some(DWIDTHSELECT_A::HALFWORD),
            2 => Some(DWIDTHSELECT_A::WORD),
            _ => None,
        }
    }
    #[doc = "Checks if the value of the field is `BYTE`"]
    #[inline(always)]
    pub fn is_byte(&self) -> bool {
        *self == DWIDTHSELECT_A::BYTE
    }
    #[doc = "Checks if the value of the field is `HALFWORD`"]
    #[inline(always)]
    pub fn is_halfword(&self) -> bool {
        *self == DWIDTHSELECT_A::HALFWORD
    }
    #[doc = "Checks if the value of the field is `WORD`"]
    #[inline(always)]
    pub fn is_word(&self) -> bool {
        *self == DWIDTHSELECT_A::WORD
    }
}
#[doc = "Field `DWIDTH` writer - Channel x Data Width"]
pub type DWIDTH_W<'a, const O: u8> = crate::FieldWriter<'a, u32, CC_SPEC, u8, DWIDTHSELECT_A, 2, O>;
impl<'a, const O: u8> DWIDTH_W<'a, O> {
    #[doc = "The data size is set to 8 bits"]
    #[inline(always)]
    pub fn byte(self) -> &'a mut W {
        self.variant(DWIDTHSELECT_A::BYTE)
    }
    #[doc = "The data size is set to 16 bits"]
    #[inline(always)]
    pub fn halfword(self) -> &'a mut W {
        self.variant(DWIDTHSELECT_A::HALFWORD)
    }
    #[doc = "The data size is set to 32 bits"]
    #[inline(always)]
    pub fn word(self) -> &'a mut W {
        self.variant(DWIDTHSELECT_A::WORD)
    }
}
#[doc = "Field `SIF` reader - Channel x Source Interface Identifier"]
pub type SIF_R = crate::BitReader<SIFSELECT_A>;
#[doc = "Channel x Source Interface Identifier\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum SIFSELECT_A {
    #[doc = "0: The data is read through the system bus interface 0."]
    AHB_IF0 = 0,
    #[doc = "1: The data is read through the system bus interface 1."]
    AHB_IF1 = 1,
}
impl From<SIFSELECT_A> for bool {
    #[inline(always)]
    fn from(variant: SIFSELECT_A) -> Self {
        variant as u8 != 0
    }
}
impl SIF_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> SIFSELECT_A {
        match self.bits {
            false => SIFSELECT_A::AHB_IF0,
            true => SIFSELECT_A::AHB_IF1,
        }
    }
    #[doc = "Checks if the value of the field is `AHB_IF0`"]
    #[inline(always)]
    pub fn is_ahb_if0(&self) -> bool {
        *self == SIFSELECT_A::AHB_IF0
    }
    #[doc = "Checks if the value of the field is `AHB_IF1`"]
    #[inline(always)]
    pub fn is_ahb_if1(&self) -> bool {
        *self == SIFSELECT_A::AHB_IF1
    }
}
#[doc = "Field `SIF` writer - Channel x Source Interface Identifier"]
pub type SIF_W<'a, const O: u8> = crate::BitWriter<'a, u32, CC_SPEC, SIFSELECT_A, O>;
impl<'a, const O: u8> SIF_W<'a, O> {
    #[doc = "The data is read through the system bus interface 0."]
    #[inline(always)]
    pub fn ahb_if0(self) -> &'a mut W {
        self.variant(SIFSELECT_A::AHB_IF0)
    }
    #[doc = "The data is read through the system bus interface 1."]
    #[inline(always)]
    pub fn ahb_if1(self) -> &'a mut W {
        self.variant(SIFSELECT_A::AHB_IF1)
    }
}
#[doc = "Field `DIF` reader - Channel x Destination Interface Identifier"]
pub type DIF_R = crate::BitReader<DIFSELECT_A>;
#[doc = "Channel x Destination Interface Identifier\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum DIFSELECT_A {
    #[doc = "0: The data is written through the system bus interface 0."]
    AHB_IF0 = 0,
    #[doc = "1: The data is written though the system bus interface 1."]
    AHB_IF1 = 1,
}
impl From<DIFSELECT_A> for bool {
    #[inline(always)]
    fn from(variant: DIFSELECT_A) -> Self {
        variant as u8 != 0
    }
}
impl DIF_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> DIFSELECT_A {
        match self.bits {
            false => DIFSELECT_A::AHB_IF0,
            true => DIFSELECT_A::AHB_IF1,
        }
    }
    #[doc = "Checks if the value of the field is `AHB_IF0`"]
    #[inline(always)]
    pub fn is_ahb_if0(&self) -> bool {
        *self == DIFSELECT_A::AHB_IF0
    }
    #[doc = "Checks if the value of the field is `AHB_IF1`"]
    #[inline(always)]
    pub fn is_ahb_if1(&self) -> bool {
        *self == DIFSELECT_A::AHB_IF1
    }
}
#[doc = "Field `DIF` writer - Channel x Destination Interface Identifier"]
pub type DIF_W<'a, const O: u8> = crate::BitWriter<'a, u32, CC_SPEC, DIFSELECT_A, O>;
impl<'a, const O: u8> DIF_W<'a, O> {
    #[doc = "The data is written through the system bus interface 0."]
    #[inline(always)]
    pub fn ahb_if0(self) -> &'a mut W {
        self.variant(DIFSELECT_A::AHB_IF0)
    }
    #[doc = "The data is written though the system bus interface 1."]
    #[inline(always)]
    pub fn ahb_if1(self) -> &'a mut W {
        self.variant(DIFSELECT_A::AHB_IF1)
    }
}
#[doc = "Field `SAM` reader - Channel x Source Addressing Mode"]
pub type SAM_R = crate::FieldReader<u8, SAMSELECT_A>;
#[doc = "Channel x Source Addressing Mode\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum SAMSELECT_A {
    #[doc = "0: The address remains unchanged."]
    FIXED_AM = 0,
    #[doc = "1: The addressing mode is incremented (the increment size is set to the data size)."]
    INCREMENTED_AM = 1,
    #[doc = "2: The microblock stride is added at the microblock boundary."]
    UBS_AM = 2,
    #[doc = "3: The microblock stride is added at the microblock boundary, the data stride is added at the data boundary."]
    UBS_DS_AM = 3,
}
impl From<SAMSELECT_A> for u8 {
    #[inline(always)]
    fn from(variant: SAMSELECT_A) -> Self {
        variant as _
    }
}
impl SAM_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> SAMSELECT_A {
        match self.bits {
            0 => SAMSELECT_A::FIXED_AM,
            1 => SAMSELECT_A::INCREMENTED_AM,
            2 => SAMSELECT_A::UBS_AM,
            3 => SAMSELECT_A::UBS_DS_AM,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `FIXED_AM`"]
    #[inline(always)]
    pub fn is_fixed_am(&self) -> bool {
        *self == SAMSELECT_A::FIXED_AM
    }
    #[doc = "Checks if the value of the field is `INCREMENTED_AM`"]
    #[inline(always)]
    pub fn is_incremented_am(&self) -> bool {
        *self == SAMSELECT_A::INCREMENTED_AM
    }
    #[doc = "Checks if the value of the field is `UBS_AM`"]
    #[inline(always)]
    pub fn is_ubs_am(&self) -> bool {
        *self == SAMSELECT_A::UBS_AM
    }
    #[doc = "Checks if the value of the field is `UBS_DS_AM`"]
    #[inline(always)]
    pub fn is_ubs_ds_am(&self) -> bool {
        *self == SAMSELECT_A::UBS_DS_AM
    }
}
#[doc = "Field `SAM` writer - Channel x Source Addressing Mode"]
pub type SAM_W<'a, const O: u8> = crate::FieldWriterSafe<'a, u32, CC_SPEC, u8, SAMSELECT_A, 2, O>;
impl<'a, const O: u8> SAM_W<'a, O> {
    #[doc = "The address remains unchanged."]
    #[inline(always)]
    pub fn fixed_am(self) -> &'a mut W {
        self.variant(SAMSELECT_A::FIXED_AM)
    }
    #[doc = "The addressing mode is incremented (the increment size is set to the data size)."]
    #[inline(always)]
    pub fn incremented_am(self) -> &'a mut W {
        self.variant(SAMSELECT_A::INCREMENTED_AM)
    }
    #[doc = "The microblock stride is added at the microblock boundary."]
    #[inline(always)]
    pub fn ubs_am(self) -> &'a mut W {
        self.variant(SAMSELECT_A::UBS_AM)
    }
    #[doc = "The microblock stride is added at the microblock boundary, the data stride is added at the data boundary."]
    #[inline(always)]
    pub fn ubs_ds_am(self) -> &'a mut W {
        self.variant(SAMSELECT_A::UBS_DS_AM)
    }
}
#[doc = "Field `DAM` reader - Channel x Destination Addressing Mode"]
pub type DAM_R = crate::FieldReader<u8, DAMSELECT_A>;
#[doc = "Channel x Destination Addressing Mode\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum DAMSELECT_A {
    #[doc = "0: The address remains unchanged."]
    FIXED_AM = 0,
    #[doc = "1: The addressing mode is incremented (the increment size is set to the data size)."]
    INCREMENTED_AM = 1,
    #[doc = "2: The microblock stride is added at the microblock boundary."]
    UBS_AM = 2,
    #[doc = "3: The microblock stride is added at the microblock boundary; the data stride is added at the data boundary."]
    UBS_DS_AM = 3,
}
impl From<DAMSELECT_A> for u8 {
    #[inline(always)]
    fn from(variant: DAMSELECT_A) -> Self {
        variant as _
    }
}
impl DAM_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> DAMSELECT_A {
        match self.bits {
            0 => DAMSELECT_A::FIXED_AM,
            1 => DAMSELECT_A::INCREMENTED_AM,
            2 => DAMSELECT_A::UBS_AM,
            3 => DAMSELECT_A::UBS_DS_AM,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `FIXED_AM`"]
    #[inline(always)]
    pub fn is_fixed_am(&self) -> bool {
        *self == DAMSELECT_A::FIXED_AM
    }
    #[doc = "Checks if the value of the field is `INCREMENTED_AM`"]
    #[inline(always)]
    pub fn is_incremented_am(&self) -> bool {
        *self == DAMSELECT_A::INCREMENTED_AM
    }
    #[doc = "Checks if the value of the field is `UBS_AM`"]
    #[inline(always)]
    pub fn is_ubs_am(&self) -> bool {
        *self == DAMSELECT_A::UBS_AM
    }
    #[doc = "Checks if the value of the field is `UBS_DS_AM`"]
    #[inline(always)]
    pub fn is_ubs_ds_am(&self) -> bool {
        *self == DAMSELECT_A::UBS_DS_AM
    }
}
#[doc = "Field `DAM` writer - Channel x Destination Addressing Mode"]
pub type DAM_W<'a, const O: u8> = crate::FieldWriterSafe<'a, u32, CC_SPEC, u8, DAMSELECT_A, 2, O>;
impl<'a, const O: u8> DAM_W<'a, O> {
    #[doc = "The address remains unchanged."]
    #[inline(always)]
    pub fn fixed_am(self) -> &'a mut W {
        self.variant(DAMSELECT_A::FIXED_AM)
    }
    #[doc = "The addressing mode is incremented (the increment size is set to the data size)."]
    #[inline(always)]
    pub fn incremented_am(self) -> &'a mut W {
        self.variant(DAMSELECT_A::INCREMENTED_AM)
    }
    #[doc = "The microblock stride is added at the microblock boundary."]
    #[inline(always)]
    pub fn ubs_am(self) -> &'a mut W {
        self.variant(DAMSELECT_A::UBS_AM)
    }
    #[doc = "The microblock stride is added at the microblock boundary; the data stride is added at the data boundary."]
    #[inline(always)]
    pub fn ubs_ds_am(self) -> &'a mut W {
        self.variant(DAMSELECT_A::UBS_DS_AM)
    }
}
#[doc = "Field `INITD` reader - Channel Initialization Terminated (this bit is read-only)"]
pub type INITD_R = crate::BitReader<INITDSELECT_A>;
#[doc = "Channel Initialization Terminated (this bit is read-only)\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum INITDSELECT_A {
    #[doc = "0: Channel initialization is in progress."]
    IN_PROGRESS = 0,
    #[doc = "1: Channel initialization is completed."]
    TERMINATED = 1,
}
impl From<INITDSELECT_A> for bool {
    #[inline(always)]
    fn from(variant: INITDSELECT_A) -> Self {
        variant as u8 != 0
    }
}
impl INITD_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> INITDSELECT_A {
        match self.bits {
            false => INITDSELECT_A::IN_PROGRESS,
            true => INITDSELECT_A::TERMINATED,
        }
    }
    #[doc = "Checks if the value of the field is `IN_PROGRESS`"]
    #[inline(always)]
    pub fn is_in_progress(&self) -> bool {
        *self == INITDSELECT_A::IN_PROGRESS
    }
    #[doc = "Checks if the value of the field is `TERMINATED`"]
    #[inline(always)]
    pub fn is_terminated(&self) -> bool {
        *self == INITDSELECT_A::TERMINATED
    }
}
#[doc = "Field `INITD` writer - Channel Initialization Terminated (this bit is read-only)"]
pub type INITD_W<'a, const O: u8> = crate::BitWriter<'a, u32, CC_SPEC, INITDSELECT_A, O>;
impl<'a, const O: u8> INITD_W<'a, O> {
    #[doc = "Channel initialization is in progress."]
    #[inline(always)]
    pub fn in_progress(self) -> &'a mut W {
        self.variant(INITDSELECT_A::IN_PROGRESS)
    }
    #[doc = "Channel initialization is completed."]
    #[inline(always)]
    pub fn terminated(self) -> &'a mut W {
        self.variant(INITDSELECT_A::TERMINATED)
    }
}
#[doc = "Field `RDIP` reader - Read in Progress (this bit is read-only)"]
pub type RDIP_R = crate::BitReader<RDIPSELECT_A>;
#[doc = "Read in Progress (this bit is read-only)\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RDIPSELECT_A {
    #[doc = "0: No active read transaction on the bus."]
    DONE = 0,
    #[doc = "1: A read transaction is in progress."]
    IN_PROGRESS = 1,
}
impl From<RDIPSELECT_A> for bool {
    #[inline(always)]
    fn from(variant: RDIPSELECT_A) -> Self {
        variant as u8 != 0
    }
}
impl RDIP_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> RDIPSELECT_A {
        match self.bits {
            false => RDIPSELECT_A::DONE,
            true => RDIPSELECT_A::IN_PROGRESS,
        }
    }
    #[doc = "Checks if the value of the field is `DONE`"]
    #[inline(always)]
    pub fn is_done(&self) -> bool {
        *self == RDIPSELECT_A::DONE
    }
    #[doc = "Checks if the value of the field is `IN_PROGRESS`"]
    #[inline(always)]
    pub fn is_in_progress(&self) -> bool {
        *self == RDIPSELECT_A::IN_PROGRESS
    }
}
#[doc = "Field `RDIP` writer - Read in Progress (this bit is read-only)"]
pub type RDIP_W<'a, const O: u8> = crate::BitWriter<'a, u32, CC_SPEC, RDIPSELECT_A, O>;
impl<'a, const O: u8> RDIP_W<'a, O> {
    #[doc = "No active read transaction on the bus."]
    #[inline(always)]
    pub fn done(self) -> &'a mut W {
        self.variant(RDIPSELECT_A::DONE)
    }
    #[doc = "A read transaction is in progress."]
    #[inline(always)]
    pub fn in_progress(self) -> &'a mut W {
        self.variant(RDIPSELECT_A::IN_PROGRESS)
    }
}
#[doc = "Field `WRIP` reader - Write in Progress (this bit is read-only)"]
pub type WRIP_R = crate::BitReader<WRIPSELECT_A>;
#[doc = "Write in Progress (this bit is read-only)\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum WRIPSELECT_A {
    #[doc = "0: No active write transaction on the bus."]
    DONE = 0,
    #[doc = "1: A write transaction is in progress."]
    IN_PROGRESS = 1,
}
impl From<WRIPSELECT_A> for bool {
    #[inline(always)]
    fn from(variant: WRIPSELECT_A) -> Self {
        variant as u8 != 0
    }
}
impl WRIP_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> WRIPSELECT_A {
        match self.bits {
            false => WRIPSELECT_A::DONE,
            true => WRIPSELECT_A::IN_PROGRESS,
        }
    }
    #[doc = "Checks if the value of the field is `DONE`"]
    #[inline(always)]
    pub fn is_done(&self) -> bool {
        *self == WRIPSELECT_A::DONE
    }
    #[doc = "Checks if the value of the field is `IN_PROGRESS`"]
    #[inline(always)]
    pub fn is_in_progress(&self) -> bool {
        *self == WRIPSELECT_A::IN_PROGRESS
    }
}
#[doc = "Field `WRIP` writer - Write in Progress (this bit is read-only)"]
pub type WRIP_W<'a, const O: u8> = crate::BitWriter<'a, u32, CC_SPEC, WRIPSELECT_A, O>;
impl<'a, const O: u8> WRIP_W<'a, O> {
    #[doc = "No active write transaction on the bus."]
    #[inline(always)]
    pub fn done(self) -> &'a mut W {
        self.variant(WRIPSELECT_A::DONE)
    }
    #[doc = "A write transaction is in progress."]
    #[inline(always)]
    pub fn in_progress(self) -> &'a mut W {
        self.variant(WRIPSELECT_A::IN_PROGRESS)
    }
}
#[doc = "Field `PERID` reader - Channel x Peripheral Hardware Request Line Identifier"]
pub type PERID_R = crate::FieldReader<u8, PERIDSELECT_A>;
#[doc = "Channel x Peripheral Hardware Request Line Identifier\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum PERIDSELECT_A {
    #[doc = "0: HSMCI"]
    HSMCI = 0,
    #[doc = "1: SPI0_TX"]
    SPI0_TX = 1,
    #[doc = "2: SPI0_RX"]
    SPI0_RX = 2,
    #[doc = "3: SPI1_TX"]
    SPI1_TX = 3,
    #[doc = "4: SPI1_RX"]
    SPI1_RX = 4,
    #[doc = "5: QSPI_TX"]
    QSPI_TX = 5,
    #[doc = "6: QSPI_RX"]
    QSPI_RX = 6,
    #[doc = "7: USART0_TX"]
    USART0_TX = 7,
    #[doc = "8: USART0_RX"]
    USART0_RX = 8,
    #[doc = "9: USART1_TX"]
    USART1_TX = 9,
    #[doc = "10: USART1_RX"]
    USART1_RX = 10,
    #[doc = "11: USART2_TX"]
    USART2_TX = 11,
    #[doc = "12: USART2_RX"]
    USART2_RX = 12,
    #[doc = "13: PWM0"]
    PWM0 = 13,
    #[doc = "14: TWIHS0_TX"]
    TWIHS0_TX = 14,
    #[doc = "15: TWIHS0_RX"]
    TWIHS0_RX = 15,
    #[doc = "16: TWIHS1_TX"]
    TWIHS1_TX = 16,
    #[doc = "17: TWIHS1_RX"]
    TWIHS1_RX = 17,
    #[doc = "18: TWIHS2_TX"]
    TWIHS2_TX = 18,
    #[doc = "19: TWIHS2_RX"]
    TWIHS2_RX = 19,
    #[doc = "20: UART0_TX"]
    UART0_TX = 20,
    #[doc = "21: UART0_RX"]
    UART0_RX = 21,
    #[doc = "22: UART1_TX"]
    UART1_TX = 22,
    #[doc = "23: UART1_RX"]
    UART1_RX = 23,
    #[doc = "24: UART2_TX"]
    UART2_TX = 24,
    #[doc = "25: UART2_RX"]
    UART2_RX = 25,
    #[doc = "26: UART3_TX"]
    UART3_TX = 26,
    #[doc = "27: UART3_RX"]
    UART3_RX = 27,
    #[doc = "28: UART4_TX"]
    UART4_TX = 28,
    #[doc = "29: UART4_RX"]
    UART4_RX = 29,
    #[doc = "30: DACC0"]
    DACC0 = 30,
    #[doc = "31: DACC1"]
    DACC1 = 31,
    #[doc = "32: SSC_TX"]
    SSC_TX = 32,
    #[doc = "33: SSC_RX"]
    SSC_RX = 33,
    #[doc = "34: PIOA"]
    PIOA = 34,
    #[doc = "35: AFEC0"]
    AFEC0 = 35,
    #[doc = "36: AFEC1"]
    AFEC1 = 36,
    #[doc = "37: AES_TX"]
    AES_TX = 37,
    #[doc = "38: AES_RX"]
    AES_RX = 38,
    #[doc = "39: PWM1"]
    PWM1 = 39,
    #[doc = "40: TC0"]
    TC0 = 40,
    #[doc = "41: TC3"]
    TC3 = 41,
    #[doc = "42: TC6"]
    TC6 = 42,
    #[doc = "43: TC9"]
    TC9 = 43,
    #[doc = "44: I2SC0_TX_LEFT"]
    I2SC0_TX_LEFT = 44,
    #[doc = "45: I2SC0_RX_LEFT"]
    I2SC0_RX_LEFT = 45,
    #[doc = "46: I2SC1_TX_LEFT"]
    I2SC1_TX_LEFT = 46,
    #[doc = "47: I2SC1_RX_LEFT"]
    I2SC1_RX_LEFT = 47,
    #[doc = "48: I2SC0_TX_RIGHT"]
    I2SC0_TX_RIGHT = 48,
    #[doc = "49: I2SC0_RX_RIGHT"]
    I2SC0_RX_RIGHT = 49,
    #[doc = "50: I2SC1_TX_RIGHT"]
    I2SC1_TX_RIGHT = 50,
    #[doc = "51: I2SC1_RX_RIGHT"]
    I2SC1_RX_RIGHT = 51,
}
impl From<PERIDSELECT_A> for u8 {
    #[inline(always)]
    fn from(variant: PERIDSELECT_A) -> Self {
        variant as _
    }
}
impl PERID_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> Option<PERIDSELECT_A> {
        match self.bits {
            0 => Some(PERIDSELECT_A::HSMCI),
            1 => Some(PERIDSELECT_A::SPI0_TX),
            2 => Some(PERIDSELECT_A::SPI0_RX),
            3 => Some(PERIDSELECT_A::SPI1_TX),
            4 => Some(PERIDSELECT_A::SPI1_RX),
            5 => Some(PERIDSELECT_A::QSPI_TX),
            6 => Some(PERIDSELECT_A::QSPI_RX),
            7 => Some(PERIDSELECT_A::USART0_TX),
            8 => Some(PERIDSELECT_A::USART0_RX),
            9 => Some(PERIDSELECT_A::USART1_TX),
            10 => Some(PERIDSELECT_A::USART1_RX),
            11 => Some(PERIDSELECT_A::USART2_TX),
            12 => Some(PERIDSELECT_A::USART2_RX),
            13 => Some(PERIDSELECT_A::PWM0),
            14 => Some(PERIDSELECT_A::TWIHS0_TX),
            15 => Some(PERIDSELECT_A::TWIHS0_RX),
            16 => Some(PERIDSELECT_A::TWIHS1_TX),
            17 => Some(PERIDSELECT_A::TWIHS1_RX),
            18 => Some(PERIDSELECT_A::TWIHS2_TX),
            19 => Some(PERIDSELECT_A::TWIHS2_RX),
            20 => Some(PERIDSELECT_A::UART0_TX),
            21 => Some(PERIDSELECT_A::UART0_RX),
            22 => Some(PERIDSELECT_A::UART1_TX),
            23 => Some(PERIDSELECT_A::UART1_RX),
            24 => Some(PERIDSELECT_A::UART2_TX),
            25 => Some(PERIDSELECT_A::UART2_RX),
            26 => Some(PERIDSELECT_A::UART3_TX),
            27 => Some(PERIDSELECT_A::UART3_RX),
            28 => Some(PERIDSELECT_A::UART4_TX),
            29 => Some(PERIDSELECT_A::UART4_RX),
            30 => Some(PERIDSELECT_A::DACC0),
            31 => Some(PERIDSELECT_A::DACC1),
            32 => Some(PERIDSELECT_A::SSC_TX),
            33 => Some(PERIDSELECT_A::SSC_RX),
            34 => Some(PERIDSELECT_A::PIOA),
            35 => Some(PERIDSELECT_A::AFEC0),
            36 => Some(PERIDSELECT_A::AFEC1),
            37 => Some(PERIDSELECT_A::AES_TX),
            38 => Some(PERIDSELECT_A::AES_RX),
            39 => Some(PERIDSELECT_A::PWM1),
            40 => Some(PERIDSELECT_A::TC0),
            41 => Some(PERIDSELECT_A::TC3),
            42 => Some(PERIDSELECT_A::TC6),
            43 => Some(PERIDSELECT_A::TC9),
            44 => Some(PERIDSELECT_A::I2SC0_TX_LEFT),
            45 => Some(PERIDSELECT_A::I2SC0_RX_LEFT),
            46 => Some(PERIDSELECT_A::I2SC1_TX_LEFT),
            47 => Some(PERIDSELECT_A::I2SC1_RX_LEFT),
            48 => Some(PERIDSELECT_A::I2SC0_TX_RIGHT),
            49 => Some(PERIDSELECT_A::I2SC0_RX_RIGHT),
            50 => Some(PERIDSELECT_A::I2SC1_TX_RIGHT),
            51 => Some(PERIDSELECT_A::I2SC1_RX_RIGHT),
            _ => None,
        }
    }
    #[doc = "Checks if the value of the field is `HSMCI`"]
    #[inline(always)]
    pub fn is_hsmci(&self) -> bool {
        *self == PERIDSELECT_A::HSMCI
    }
    #[doc = "Checks if the value of the field is `SPI0_TX`"]
    #[inline(always)]
    pub fn is_spi0_tx(&self) -> bool {
        *self == PERIDSELECT_A::SPI0_TX
    }
    #[doc = "Checks if the value of the field is `SPI0_RX`"]
    #[inline(always)]
    pub fn is_spi0_rx(&self) -> bool {
        *self == PERIDSELECT_A::SPI0_RX
    }
    #[doc = "Checks if the value of the field is `SPI1_TX`"]
    #[inline(always)]
    pub fn is_spi1_tx(&self) -> bool {
        *self == PERIDSELECT_A::SPI1_TX
    }
    #[doc = "Checks if the value of the field is `SPI1_RX`"]
    #[inline(always)]
    pub fn is_spi1_rx(&self) -> bool {
        *self == PERIDSELECT_A::SPI1_RX
    }
    #[doc = "Checks if the value of the field is `QSPI_TX`"]
    #[inline(always)]
    pub fn is_qspi_tx(&self) -> bool {
        *self == PERIDSELECT_A::QSPI_TX
    }
    #[doc = "Checks if the value of the field is `QSPI_RX`"]
    #[inline(always)]
    pub fn is_qspi_rx(&self) -> bool {
        *self == PERIDSELECT_A::QSPI_RX
    }
    #[doc = "Checks if the value of the field is `USART0_TX`"]
    #[inline(always)]
    pub fn is_usart0_tx(&self) -> bool {
        *self == PERIDSELECT_A::USART0_TX
    }
    #[doc = "Checks if the value of the field is `USART0_RX`"]
    #[inline(always)]
    pub fn is_usart0_rx(&self) -> bool {
        *self == PERIDSELECT_A::USART0_RX
    }
    #[doc = "Checks if the value of the field is `USART1_TX`"]
    #[inline(always)]
    pub fn is_usart1_tx(&self) -> bool {
        *self == PERIDSELECT_A::USART1_TX
    }
    #[doc = "Checks if the value of the field is `USART1_RX`"]
    #[inline(always)]
    pub fn is_usart1_rx(&self) -> bool {
        *self == PERIDSELECT_A::USART1_RX
    }
    #[doc = "Checks if the value of the field is `USART2_TX`"]
    #[inline(always)]
    pub fn is_usart2_tx(&self) -> bool {
        *self == PERIDSELECT_A::USART2_TX
    }
    #[doc = "Checks if the value of the field is `USART2_RX`"]
    #[inline(always)]
    pub fn is_usart2_rx(&self) -> bool {
        *self == PERIDSELECT_A::USART2_RX
    }
    #[doc = "Checks if the value of the field is `PWM0`"]
    #[inline(always)]
    pub fn is_pwm0(&self) -> bool {
        *self == PERIDSELECT_A::PWM0
    }
    #[doc = "Checks if the value of the field is `TWIHS0_TX`"]
    #[inline(always)]
    pub fn is_twihs0_tx(&self) -> bool {
        *self == PERIDSELECT_A::TWIHS0_TX
    }
    #[doc = "Checks if the value of the field is `TWIHS0_RX`"]
    #[inline(always)]
    pub fn is_twihs0_rx(&self) -> bool {
        *self == PERIDSELECT_A::TWIHS0_RX
    }
    #[doc = "Checks if the value of the field is `TWIHS1_TX`"]
    #[inline(always)]
    pub fn is_twihs1_tx(&self) -> bool {
        *self == PERIDSELECT_A::TWIHS1_TX
    }
    #[doc = "Checks if the value of the field is `TWIHS1_RX`"]
    #[inline(always)]
    pub fn is_twihs1_rx(&self) -> bool {
        *self == PERIDSELECT_A::TWIHS1_RX
    }
    #[doc = "Checks if the value of the field is `TWIHS2_TX`"]
    #[inline(always)]
    pub fn is_twihs2_tx(&self) -> bool {
        *self == PERIDSELECT_A::TWIHS2_TX
    }
    #[doc = "Checks if the value of the field is `TWIHS2_RX`"]
    #[inline(always)]
    pub fn is_twihs2_rx(&self) -> bool {
        *self == PERIDSELECT_A::TWIHS2_RX
    }
    #[doc = "Checks if the value of the field is `UART0_TX`"]
    #[inline(always)]
    pub fn is_uart0_tx(&self) -> bool {
        *self == PERIDSELECT_A::UART0_TX
    }
    #[doc = "Checks if the value of the field is `UART0_RX`"]
    #[inline(always)]
    pub fn is_uart0_rx(&self) -> bool {
        *self == PERIDSELECT_A::UART0_RX
    }
    #[doc = "Checks if the value of the field is `UART1_TX`"]
    #[inline(always)]
    pub fn is_uart1_tx(&self) -> bool {
        *self == PERIDSELECT_A::UART1_TX
    }
    #[doc = "Checks if the value of the field is `UART1_RX`"]
    #[inline(always)]
    pub fn is_uart1_rx(&self) -> bool {
        *self == PERIDSELECT_A::UART1_RX
    }
    #[doc = "Checks if the value of the field is `UART2_TX`"]
    #[inline(always)]
    pub fn is_uart2_tx(&self) -> bool {
        *self == PERIDSELECT_A::UART2_TX
    }
    #[doc = "Checks if the value of the field is `UART2_RX`"]
    #[inline(always)]
    pub fn is_uart2_rx(&self) -> bool {
        *self == PERIDSELECT_A::UART2_RX
    }
    #[doc = "Checks if the value of the field is `UART3_TX`"]
    #[inline(always)]
    pub fn is_uart3_tx(&self) -> bool {
        *self == PERIDSELECT_A::UART3_TX
    }
    #[doc = "Checks if the value of the field is `UART3_RX`"]
    #[inline(always)]
    pub fn is_uart3_rx(&self) -> bool {
        *self == PERIDSELECT_A::UART3_RX
    }
    #[doc = "Checks if the value of the field is `UART4_TX`"]
    #[inline(always)]
    pub fn is_uart4_tx(&self) -> bool {
        *self == PERIDSELECT_A::UART4_TX
    }
    #[doc = "Checks if the value of the field is `UART4_RX`"]
    #[inline(always)]
    pub fn is_uart4_rx(&self) -> bool {
        *self == PERIDSELECT_A::UART4_RX
    }
    #[doc = "Checks if the value of the field is `DACC0`"]
    #[inline(always)]
    pub fn is_dacc0(&self) -> bool {
        *self == PERIDSELECT_A::DACC0
    }
    #[doc = "Checks if the value of the field is `DACC1`"]
    #[inline(always)]
    pub fn is_dacc1(&self) -> bool {
        *self == PERIDSELECT_A::DACC1
    }
    #[doc = "Checks if the value of the field is `SSC_TX`"]
    #[inline(always)]
    pub fn is_ssc_tx(&self) -> bool {
        *self == PERIDSELECT_A::SSC_TX
    }
    #[doc = "Checks if the value of the field is `SSC_RX`"]
    #[inline(always)]
    pub fn is_ssc_rx(&self) -> bool {
        *self == PERIDSELECT_A::SSC_RX
    }
    #[doc = "Checks if the value of the field is `PIOA`"]
    #[inline(always)]
    pub fn is_pioa(&self) -> bool {
        *self == PERIDSELECT_A::PIOA
    }
    #[doc = "Checks if the value of the field is `AFEC0`"]
    #[inline(always)]
    pub fn is_afec0(&self) -> bool {
        *self == PERIDSELECT_A::AFEC0
    }
    #[doc = "Checks if the value of the field is `AFEC1`"]
    #[inline(always)]
    pub fn is_afec1(&self) -> bool {
        *self == PERIDSELECT_A::AFEC1
    }
    #[doc = "Checks if the value of the field is `AES_TX`"]
    #[inline(always)]
    pub fn is_aes_tx(&self) -> bool {
        *self == PERIDSELECT_A::AES_TX
    }
    #[doc = "Checks if the value of the field is `AES_RX`"]
    #[inline(always)]
    pub fn is_aes_rx(&self) -> bool {
        *self == PERIDSELECT_A::AES_RX
    }
    #[doc = "Checks if the value of the field is `PWM1`"]
    #[inline(always)]
    pub fn is_pwm1(&self) -> bool {
        *self == PERIDSELECT_A::PWM1
    }
    #[doc = "Checks if the value of the field is `TC0`"]
    #[inline(always)]
    pub fn is_tc0(&self) -> bool {
        *self == PERIDSELECT_A::TC0
    }
    #[doc = "Checks if the value of the field is `TC3`"]
    #[inline(always)]
    pub fn is_tc3(&self) -> bool {
        *self == PERIDSELECT_A::TC3
    }
    #[doc = "Checks if the value of the field is `TC6`"]
    #[inline(always)]
    pub fn is_tc6(&self) -> bool {
        *self == PERIDSELECT_A::TC6
    }
    #[doc = "Checks if the value of the field is `TC9`"]
    #[inline(always)]
    pub fn is_tc9(&self) -> bool {
        *self == PERIDSELECT_A::TC9
    }
    #[doc = "Checks if the value of the field is `I2SC0_TX_LEFT`"]
    #[inline(always)]
    pub fn is_i2sc0_tx_left(&self) -> bool {
        *self == PERIDSELECT_A::I2SC0_TX_LEFT
    }
    #[doc = "Checks if the value of the field is `I2SC0_RX_LEFT`"]
    #[inline(always)]
    pub fn is_i2sc0_rx_left(&self) -> bool {
        *self == PERIDSELECT_A::I2SC0_RX_LEFT
    }
    #[doc = "Checks if the value of the field is `I2SC1_TX_LEFT`"]
    #[inline(always)]
    pub fn is_i2sc1_tx_left(&self) -> bool {
        *self == PERIDSELECT_A::I2SC1_TX_LEFT
    }
    #[doc = "Checks if the value of the field is `I2SC1_RX_LEFT`"]
    #[inline(always)]
    pub fn is_i2sc1_rx_left(&self) -> bool {
        *self == PERIDSELECT_A::I2SC1_RX_LEFT
    }
    #[doc = "Checks if the value of the field is `I2SC0_TX_RIGHT`"]
    #[inline(always)]
    pub fn is_i2sc0_tx_right(&self) -> bool {
        *self == PERIDSELECT_A::I2SC0_TX_RIGHT
    }
    #[doc = "Checks if the value of the field is `I2SC0_RX_RIGHT`"]
    #[inline(always)]
    pub fn is_i2sc0_rx_right(&self) -> bool {
        *self == PERIDSELECT_A::I2SC0_RX_RIGHT
    }
    #[doc = "Checks if the value of the field is `I2SC1_TX_RIGHT`"]
    #[inline(always)]
    pub fn is_i2sc1_tx_right(&self) -> bool {
        *self == PERIDSELECT_A::I2SC1_TX_RIGHT
    }
    #[doc = "Checks if the value of the field is `I2SC1_RX_RIGHT`"]
    #[inline(always)]
    pub fn is_i2sc1_rx_right(&self) -> bool {
        *self == PERIDSELECT_A::I2SC1_RX_RIGHT
    }
}
#[doc = "Field `PERID` writer - Channel x Peripheral Hardware Request Line Identifier"]
pub type PERID_W<'a, const O: u8> = crate::FieldWriter<'a, u32, CC_SPEC, u8, PERIDSELECT_A, 7, O>;
impl<'a, const O: u8> PERID_W<'a, O> {
    #[doc = "HSMCI"]
    #[inline(always)]
    pub fn hsmci(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::HSMCI)
    }
    #[doc = "SPI0_TX"]
    #[inline(always)]
    pub fn spi0_tx(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::SPI0_TX)
    }
    #[doc = "SPI0_RX"]
    #[inline(always)]
    pub fn spi0_rx(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::SPI0_RX)
    }
    #[doc = "SPI1_TX"]
    #[inline(always)]
    pub fn spi1_tx(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::SPI1_TX)
    }
    #[doc = "SPI1_RX"]
    #[inline(always)]
    pub fn spi1_rx(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::SPI1_RX)
    }
    #[doc = "QSPI_TX"]
    #[inline(always)]
    pub fn qspi_tx(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::QSPI_TX)
    }
    #[doc = "QSPI_RX"]
    #[inline(always)]
    pub fn qspi_rx(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::QSPI_RX)
    }
    #[doc = "USART0_TX"]
    #[inline(always)]
    pub fn usart0_tx(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::USART0_TX)
    }
    #[doc = "USART0_RX"]
    #[inline(always)]
    pub fn usart0_rx(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::USART0_RX)
    }
    #[doc = "USART1_TX"]
    #[inline(always)]
    pub fn usart1_tx(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::USART1_TX)
    }
    #[doc = "USART1_RX"]
    #[inline(always)]
    pub fn usart1_rx(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::USART1_RX)
    }
    #[doc = "USART2_TX"]
    #[inline(always)]
    pub fn usart2_tx(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::USART2_TX)
    }
    #[doc = "USART2_RX"]
    #[inline(always)]
    pub fn usart2_rx(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::USART2_RX)
    }
    #[doc = "PWM0"]
    #[inline(always)]
    pub fn pwm0(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::PWM0)
    }
    #[doc = "TWIHS0_TX"]
    #[inline(always)]
    pub fn twihs0_tx(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::TWIHS0_TX)
    }
    #[doc = "TWIHS0_RX"]
    #[inline(always)]
    pub fn twihs0_rx(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::TWIHS0_RX)
    }
    #[doc = "TWIHS1_TX"]
    #[inline(always)]
    pub fn twihs1_tx(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::TWIHS1_TX)
    }
    #[doc = "TWIHS1_RX"]
    #[inline(always)]
    pub fn twihs1_rx(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::TWIHS1_RX)
    }
    #[doc = "TWIHS2_TX"]
    #[inline(always)]
    pub fn twihs2_tx(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::TWIHS2_TX)
    }
    #[doc = "TWIHS2_RX"]
    #[inline(always)]
    pub fn twihs2_rx(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::TWIHS2_RX)
    }
    #[doc = "UART0_TX"]
    #[inline(always)]
    pub fn uart0_tx(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::UART0_TX)
    }
    #[doc = "UART0_RX"]
    #[inline(always)]
    pub fn uart0_rx(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::UART0_RX)
    }
    #[doc = "UART1_TX"]
    #[inline(always)]
    pub fn uart1_tx(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::UART1_TX)
    }
    #[doc = "UART1_RX"]
    #[inline(always)]
    pub fn uart1_rx(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::UART1_RX)
    }
    #[doc = "UART2_TX"]
    #[inline(always)]
    pub fn uart2_tx(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::UART2_TX)
    }
    #[doc = "UART2_RX"]
    #[inline(always)]
    pub fn uart2_rx(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::UART2_RX)
    }
    #[doc = "UART3_TX"]
    #[inline(always)]
    pub fn uart3_tx(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::UART3_TX)
    }
    #[doc = "UART3_RX"]
    #[inline(always)]
    pub fn uart3_rx(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::UART3_RX)
    }
    #[doc = "UART4_TX"]
    #[inline(always)]
    pub fn uart4_tx(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::UART4_TX)
    }
    #[doc = "UART4_RX"]
    #[inline(always)]
    pub fn uart4_rx(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::UART4_RX)
    }
    #[doc = "DACC0"]
    #[inline(always)]
    pub fn dacc0(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::DACC0)
    }
    #[doc = "DACC1"]
    #[inline(always)]
    pub fn dacc1(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::DACC1)
    }
    #[doc = "SSC_TX"]
    #[inline(always)]
    pub fn ssc_tx(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::SSC_TX)
    }
    #[doc = "SSC_RX"]
    #[inline(always)]
    pub fn ssc_rx(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::SSC_RX)
    }
    #[doc = "PIOA"]
    #[inline(always)]
    pub fn pioa(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::PIOA)
    }
    #[doc = "AFEC0"]
    #[inline(always)]
    pub fn afec0(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::AFEC0)
    }
    #[doc = "AFEC1"]
    #[inline(always)]
    pub fn afec1(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::AFEC1)
    }
    #[doc = "AES_TX"]
    #[inline(always)]
    pub fn aes_tx(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::AES_TX)
    }
    #[doc = "AES_RX"]
    #[inline(always)]
    pub fn aes_rx(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::AES_RX)
    }
    #[doc = "PWM1"]
    #[inline(always)]
    pub fn pwm1(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::PWM1)
    }
    #[doc = "TC0"]
    #[inline(always)]
    pub fn tc0(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::TC0)
    }
    #[doc = "TC3"]
    #[inline(always)]
    pub fn tc3(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::TC3)
    }
    #[doc = "TC6"]
    #[inline(always)]
    pub fn tc6(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::TC6)
    }
    #[doc = "TC9"]
    #[inline(always)]
    pub fn tc9(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::TC9)
    }
    #[doc = "I2SC0_TX_LEFT"]
    #[inline(always)]
    pub fn i2sc0_tx_left(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::I2SC0_TX_LEFT)
    }
    #[doc = "I2SC0_RX_LEFT"]
    #[inline(always)]
    pub fn i2sc0_rx_left(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::I2SC0_RX_LEFT)
    }
    #[doc = "I2SC1_TX_LEFT"]
    #[inline(always)]
    pub fn i2sc1_tx_left(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::I2SC1_TX_LEFT)
    }
    #[doc = "I2SC1_RX_LEFT"]
    #[inline(always)]
    pub fn i2sc1_rx_left(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::I2SC1_RX_LEFT)
    }
    #[doc = "I2SC0_TX_RIGHT"]
    #[inline(always)]
    pub fn i2sc0_tx_right(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::I2SC0_TX_RIGHT)
    }
    #[doc = "I2SC0_RX_RIGHT"]
    #[inline(always)]
    pub fn i2sc0_rx_right(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::I2SC0_RX_RIGHT)
    }
    #[doc = "I2SC1_TX_RIGHT"]
    #[inline(always)]
    pub fn i2sc1_tx_right(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::I2SC1_TX_RIGHT)
    }
    #[doc = "I2SC1_RX_RIGHT"]
    #[inline(always)]
    pub fn i2sc1_rx_right(self) -> &'a mut W {
        self.variant(PERIDSELECT_A::I2SC1_RX_RIGHT)
    }
}
impl R {
    #[doc = "Bit 0 - Channel x Transfer Type"]
    #[inline(always)]
    pub fn type_(&self) -> TYPE_R {
        TYPE_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bits 1:2 - Channel x Memory Burst Size"]
    #[inline(always)]
    pub fn mbsize(&self) -> MBSIZE_R {
        MBSIZE_R::new(((self.bits >> 1) & 3) as u8)
    }
    #[doc = "Bit 4 - Channel x Synchronization"]
    #[inline(always)]
    pub fn dsync(&self) -> DSYNC_R {
        DSYNC_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 6 - Channel x Software Request Trigger"]
    #[inline(always)]
    pub fn swreq(&self) -> SWREQ_R {
        SWREQ_R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - Channel x Fill Block of memory"]
    #[inline(always)]
    pub fn memset(&self) -> MEMSET_R {
        MEMSET_R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bits 8:10 - Channel x Chunk Size"]
    #[inline(always)]
    pub fn csize(&self) -> CSIZE_R {
        CSIZE_R::new(((self.bits >> 8) & 7) as u8)
    }
    #[doc = "Bits 11:12 - Channel x Data Width"]
    #[inline(always)]
    pub fn dwidth(&self) -> DWIDTH_R {
        DWIDTH_R::new(((self.bits >> 11) & 3) as u8)
    }
    #[doc = "Bit 13 - Channel x Source Interface Identifier"]
    #[inline(always)]
    pub fn sif(&self) -> SIF_R {
        SIF_R::new(((self.bits >> 13) & 1) != 0)
    }
    #[doc = "Bit 14 - Channel x Destination Interface Identifier"]
    #[inline(always)]
    pub fn dif(&self) -> DIF_R {
        DIF_R::new(((self.bits >> 14) & 1) != 0)
    }
    #[doc = "Bits 16:17 - Channel x Source Addressing Mode"]
    #[inline(always)]
    pub fn sam(&self) -> SAM_R {
        SAM_R::new(((self.bits >> 16) & 3) as u8)
    }
    #[doc = "Bits 18:19 - Channel x Destination Addressing Mode"]
    #[inline(always)]
    pub fn dam(&self) -> DAM_R {
        DAM_R::new(((self.bits >> 18) & 3) as u8)
    }
    #[doc = "Bit 21 - Channel Initialization Terminated (this bit is read-only)"]
    #[inline(always)]
    pub fn initd(&self) -> INITD_R {
        INITD_R::new(((self.bits >> 21) & 1) != 0)
    }
    #[doc = "Bit 22 - Read in Progress (this bit is read-only)"]
    #[inline(always)]
    pub fn rdip(&self) -> RDIP_R {
        RDIP_R::new(((self.bits >> 22) & 1) != 0)
    }
    #[doc = "Bit 23 - Write in Progress (this bit is read-only)"]
    #[inline(always)]
    pub fn wrip(&self) -> WRIP_R {
        WRIP_R::new(((self.bits >> 23) & 1) != 0)
    }
    #[doc = "Bits 24:30 - Channel x Peripheral Hardware Request Line Identifier"]
    #[inline(always)]
    pub fn perid(&self) -> PERID_R {
        PERID_R::new(((self.bits >> 24) & 0x7f) as u8)
    }
}
impl W {
    #[doc = "Bit 0 - Channel x Transfer Type"]
    #[inline(always)]
    pub fn type_(&mut self) -> TYPE_W<0> {
        TYPE_W::new(self)
    }
    #[doc = "Bits 1:2 - Channel x Memory Burst Size"]
    #[inline(always)]
    pub fn mbsize(&mut self) -> MBSIZE_W<1> {
        MBSIZE_W::new(self)
    }
    #[doc = "Bit 4 - Channel x Synchronization"]
    #[inline(always)]
    pub fn dsync(&mut self) -> DSYNC_W<4> {
        DSYNC_W::new(self)
    }
    #[doc = "Bit 6 - Channel x Software Request Trigger"]
    #[inline(always)]
    pub fn swreq(&mut self) -> SWREQ_W<6> {
        SWREQ_W::new(self)
    }
    #[doc = "Bit 7 - Channel x Fill Block of memory"]
    #[inline(always)]
    pub fn memset(&mut self) -> MEMSET_W<7> {
        MEMSET_W::new(self)
    }
    #[doc = "Bits 8:10 - Channel x Chunk Size"]
    #[inline(always)]
    pub fn csize(&mut self) -> CSIZE_W<8> {
        CSIZE_W::new(self)
    }
    #[doc = "Bits 11:12 - Channel x Data Width"]
    #[inline(always)]
    pub fn dwidth(&mut self) -> DWIDTH_W<11> {
        DWIDTH_W::new(self)
    }
    #[doc = "Bit 13 - Channel x Source Interface Identifier"]
    #[inline(always)]
    pub fn sif(&mut self) -> SIF_W<13> {
        SIF_W::new(self)
    }
    #[doc = "Bit 14 - Channel x Destination Interface Identifier"]
    #[inline(always)]
    pub fn dif(&mut self) -> DIF_W<14> {
        DIF_W::new(self)
    }
    #[doc = "Bits 16:17 - Channel x Source Addressing Mode"]
    #[inline(always)]
    pub fn sam(&mut self) -> SAM_W<16> {
        SAM_W::new(self)
    }
    #[doc = "Bits 18:19 - Channel x Destination Addressing Mode"]
    #[inline(always)]
    pub fn dam(&mut self) -> DAM_W<18> {
        DAM_W::new(self)
    }
    #[doc = "Bit 21 - Channel Initialization Terminated (this bit is read-only)"]
    #[inline(always)]
    pub fn initd(&mut self) -> INITD_W<21> {
        INITD_W::new(self)
    }
    #[doc = "Bit 22 - Read in Progress (this bit is read-only)"]
    #[inline(always)]
    pub fn rdip(&mut self) -> RDIP_W<22> {
        RDIP_W::new(self)
    }
    #[doc = "Bit 23 - Write in Progress (this bit is read-only)"]
    #[inline(always)]
    pub fn wrip(&mut self) -> WRIP_W<23> {
        WRIP_W::new(self)
    }
    #[doc = "Bits 24:30 - Channel x Peripheral Hardware Request Line Identifier"]
    #[inline(always)]
    pub fn perid(&mut self) -> PERID_W<24> {
        PERID_W::new(self)
    }
    #[doc = "Writes raw bits to the register."]
    #[inline(always)]
    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
        self.0.bits(bits);
        self
    }
}
#[doc = "Channel Configuration Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [cc](index.html) module"]
pub struct CC_SPEC;
impl crate::RegisterSpec for CC_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [cc::R](R) reader structure"]
impl crate::Readable for CC_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [cc::W](W) writer structure"]
impl crate::Writable for CC_SPEC {
    type Writer = W;
}
#[doc = "`reset()` method sets CC to value 0"]
impl crate::Resettable for CC_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0
    }
}