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
#![allow(non_snake_case, non_upper_case_globals)]
#![allow(non_camel_case_types)]
//! DMAMUX
//!
//! Used by: stm32h743, stm32h743v, stm32h747cm4, stm32h747cm7, stm32h753, stm32h753v, stm32h7b3
use crate::{RORegister, RWRegister, WORegister};
#[cfg(not(feature = "nosync"))]
use core::marker::PhantomData;
/// DMAMux - DMA request line multiplexer channel x control register
pub mod CCR0 {
/// Input DMA request line selected
pub mod DMAREQ_ID {
/// Offset (0 bits)
pub const offset: u32 = 0;
/// Mask (8 bits: 0xff << 0)
pub const mask: u32 = 0xff << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values
pub mod RW {
/// 0b00000000: No signal selected as request input
pub const none: u32 = 0b00000000;
/// 0b00000001: Signal `dmamux1_req_gen0` selected as request input
pub const dmamux1_req_gen0: u32 = 0b00000001;
/// 0b00000010: Signal `dmamux1_req_gen1` selected as request input
pub const dmamux1_req_gen1: u32 = 0b00000010;
/// 0b00000011: Signal `dmamux1_req_gen2` selected as request input
pub const dmamux1_req_gen2: u32 = 0b00000011;
/// 0b00000100: Signal `dmamux1_req_gen3` selected as request input
pub const dmamux1_req_gen3: u32 = 0b00000100;
/// 0b00000101: Signal `dmamux1_req_gen4` selected as request input
pub const dmamux1_req_gen4: u32 = 0b00000101;
/// 0b00000110: Signal `dmamux1_req_gen5` selected as request input
pub const dmamux1_req_gen5: u32 = 0b00000110;
/// 0b00000111: Signal `dmamux1_req_gen6` selected as request input
pub const dmamux1_req_gen6: u32 = 0b00000111;
/// 0b00001000: Signal `dmamux1_req_gen7` selected as request input
pub const dmamux1_req_gen7: u32 = 0b00001000;
/// 0b00001001: Signal `adc1_dma` selected as request input
pub const adc1_dma: u32 = 0b00001001;
/// 0b00001010: Signal `adc2_dma` selected as request input
pub const adc2_dma: u32 = 0b00001010;
/// 0b00001011: Signal `tim1_ch1` selected as request input
pub const tim1_ch1: u32 = 0b00001011;
/// 0b00001100: Signal `tim1_ch2` selected as request input
pub const tim1_ch2: u32 = 0b00001100;
/// 0b00001101: Signal `tim1_ch3` selected as request input
pub const tim1_ch3: u32 = 0b00001101;
/// 0b00001110: Signal `tim1_ch4` selected as request input
pub const tim1_ch4: u32 = 0b00001110;
/// 0b00001111: Signal `tim1_up` selected as request input
pub const tim1_up: u32 = 0b00001111;
/// 0b00010000: Signal `tim1_trig` selected as request input
pub const tim1_trig: u32 = 0b00010000;
/// 0b00010001: Signal `tim1_com` selected as request input
pub const tim1_com: u32 = 0b00010001;
/// 0b00010010: Signal `tim2_ch1` selected as request input
pub const tim2_ch1: u32 = 0b00010010;
/// 0b00010011: Signal `tim2_ch2` selected as request input
pub const tim2_ch2: u32 = 0b00010011;
/// 0b00010100: Signal `tim2_ch3` selected as request input
pub const tim2_ch3: u32 = 0b00010100;
/// 0b00010101: Signal `tim2_ch4` selected as request input
pub const tim2_ch4: u32 = 0b00010101;
/// 0b00010110: Signal `tim2_up` selected as request input
pub const tim2_up: u32 = 0b00010110;
/// 0b00010111: Signal `tim3_ch1` selected as request input
pub const tim3_ch1: u32 = 0b00010111;
/// 0b00011000: Signal `tim3_ch2` selected as request input
pub const tim3_ch2: u32 = 0b00011000;
/// 0b00011001: Signal `tim3_ch3` selected as request input
pub const tim3_ch3: u32 = 0b00011001;
/// 0b00011010: Signal `tim3_ch4` selected as request input
pub const tim3_ch4: u32 = 0b00011010;
/// 0b00011011: Signal `tim3_up` selected as request input
pub const tim3_up: u32 = 0b00011011;
/// 0b00011100: Signal `tim3_trig` selected as request input
pub const tim3_trig: u32 = 0b00011100;
/// 0b00011101: Signal `tim4_ch1` selected as request input
pub const tim4_ch1: u32 = 0b00011101;
/// 0b00011110: Signal `tim4_ch2` selected as request input
pub const tim4_ch2: u32 = 0b00011110;
/// 0b00011111: Signal `tim4_ch3` selected as request input
pub const tim4_ch3: u32 = 0b00011111;
/// 0b00100000: Signal `tim4_up` selected as request input
pub const tim4_up: u32 = 0b00100000;
/// 0b00100001: Signal `i2c1_rx_dma` selected as request input
pub const i2c1_rx_dma: u32 = 0b00100001;
/// 0b00100010: Signal `i2c1_tx_dma` selected as request input
pub const i2c1_tx_dma: u32 = 0b00100010;
/// 0b00100011: Signal `i2c2_rx_dma` selected as request input
pub const i2c2_rx_dma: u32 = 0b00100011;
/// 0b00100100: Signal `i2c2_tx_dma` selected as request input
pub const i2c2_tx_dma: u32 = 0b00100100;
/// 0b00100101: Signal `spi1_rx_dma` selected as request input
pub const spi1_rx_dma: u32 = 0b00100101;
/// 0b00100110: Signal `spi1_tx_dma` selected as request input
pub const spi1_tx_dma: u32 = 0b00100110;
/// 0b00100111: Signal `spi2_rx_dma` selected as request input
pub const spi2_rx_dma: u32 = 0b00100111;
/// 0b00101000: Signal `spi2_tx_dma` selected as request input
pub const spi2_tx_dma: u32 = 0b00101000;
/// 0b00101001: Signal `usart1_rx_dma` selected as request input
pub const usart1_rx_dma: u32 = 0b00101001;
/// 0b00101010: Signal `usart1_tx_dma` selected as request input
pub const usart1_tx_dma: u32 = 0b00101010;
/// 0b00101011: Signal `usart2_rx_dma` selected as request input
pub const usart2_rx_dma: u32 = 0b00101011;
/// 0b00101100: Signal `usart2_tx_dma` selected as request input
pub const usart2_tx_dma: u32 = 0b00101100;
/// 0b00101101: Signal `usart3_rx_dma` selected as request input
pub const usart3_rx_dma: u32 = 0b00101101;
/// 0b00101110: Signal `usart3_tx_dma` selected as request input
pub const usart3_tx_dma: u32 = 0b00101110;
/// 0b00101111: Signal `tim8_ch1` selected as request input
pub const tim8_ch1: u32 = 0b00101111;
/// 0b00110000: Signal `tim8_ch2` selected as request input
pub const tim8_ch2: u32 = 0b00110000;
/// 0b00110001: Signal `tim8_ch3` selected as request input
pub const tim8_ch3: u32 = 0b00110001;
/// 0b00110010: Signal `tim8_ch4` selected as request input
pub const tim8_ch4: u32 = 0b00110010;
/// 0b00110011: Signal `tim8_up` selected as request input
pub const tim8_up: u32 = 0b00110011;
/// 0b00110100: Signal `tim8_trig` selected as request input
pub const tim8_trig: u32 = 0b00110100;
/// 0b00110101: Signal `tim8_com` selected as request input
pub const tim8_com: u32 = 0b00110101;
/// 0b00110111: Signal `tim5_ch1` selected as request input
pub const tim5_ch1: u32 = 0b00110111;
/// 0b00111000: Signal `tim5_ch2` selected as request input
pub const tim5_ch2: u32 = 0b00111000;
/// 0b00111001: Signal `tim5_ch3` selected as request input
pub const tim5_ch3: u32 = 0b00111001;
/// 0b00111010: Signal `tim5_ch4` selected as request input
pub const tim5_ch4: u32 = 0b00111010;
/// 0b00111011: Signal `tim5_up` selected as request input
pub const tim5_up: u32 = 0b00111011;
/// 0b00111100: Signal `tim5_trig` selected as request input
pub const tim5_trig: u32 = 0b00111100;
/// 0b00111101: Signal `spi3_rx_dma` selected as request input
pub const spi3_rx_dma: u32 = 0b00111101;
/// 0b00111110: Signal `spi3_tx_dma` selected as request input
pub const spi3_tx_dma: u32 = 0b00111110;
/// 0b00111111: Signal `uart4_rx_dma` selected as request input
pub const uart4_rx_dma: u32 = 0b00111111;
/// 0b01000000: Signal `uart4_tx_dma` selected as request input
pub const uart4_tx_dma: u32 = 0b01000000;
/// 0b01000001: Signal `uart5_rx_dma` selected as request input
pub const uart5_rx_dma: u32 = 0b01000001;
/// 0b01000010: Signal `uart5_tx_dma` selected as request input
pub const uart5_tx_dma: u32 = 0b01000010;
/// 0b01000011: Signal `dac_ch1_dma` selected as request input
pub const dac_ch1_dma: u32 = 0b01000011;
/// 0b01000100: Signal `dac_ch2_dma` selected as request input
pub const dac_ch2_dma: u32 = 0b01000100;
/// 0b01000101: Signal `tim6_up` selected as request input
pub const tim6_up: u32 = 0b01000101;
/// 0b01000110: Signal `tim7_up` selected as request input
pub const tim7_up: u32 = 0b01000110;
/// 0b01000111: Signal `usart6_rx_dma` selected as request input
pub const usart6_rx_dma: u32 = 0b01000111;
/// 0b01001000: Signal `usart6_tx_dma` selected as request input
pub const usart6_tx_dma: u32 = 0b01001000;
/// 0b01001001: Signal `i2c3_rx_dma` selected as request input
pub const i2c3_rx_dma: u32 = 0b01001001;
/// 0b01001010: Signal `i2c3_tx_dma` selected as request input
pub const i2c3_tx_dma: u32 = 0b01001010;
/// 0b01001011: Signal `dcmi_dma` selected as request input
pub const dcmi_dma: u32 = 0b01001011;
/// 0b01001100: Signal `cryp_in_dma` selected as request input
pub const cryp_in_dma: u32 = 0b01001100;
/// 0b01001101: Signal `cryp_out_dma` selected as request input
pub const cryp_out_dma: u32 = 0b01001101;
/// 0b01001110: Signal `hash_in_dma` selected as request input
pub const hash_in_dma: u32 = 0b01001110;
/// 0b01001111: Signal `uart7_rx_dma` selected as request input
pub const uart7_rx_dma: u32 = 0b01001111;
/// 0b01010000: Signal `uart7_tx_dma` selected as request input
pub const uart7_tx_dma: u32 = 0b01010000;
/// 0b01010001: Signal `uart8_rx_dma` selected as request input
pub const uart8_rx_dma: u32 = 0b01010001;
/// 0b01010010: Signal `uart8_tx_dma` selected as request input
pub const uart8_tx_dma: u32 = 0b01010010;
/// 0b01010011: Signal `spi4_rx_dma` selected as request input
pub const spi4_rx_dma: u32 = 0b01010011;
/// 0b01010100: Signal `spi4_tx_dma` selected as request input
pub const spi4_tx_dma: u32 = 0b01010100;
/// 0b01010101: Signal `spi5_rx_dma` selected as request input
pub const spi5_rx_dma: u32 = 0b01010101;
/// 0b01010110: Signal `spi5_tx_dma` selected as request input
pub const spi5_tx_dma: u32 = 0b01010110;
/// 0b01010111: Signal `sai1a_dma` selected as request input
pub const sai1a_dma: u32 = 0b01010111;
/// 0b01011000: Signal `sai1b_dma` selected as request input
pub const sai1b_dma: u32 = 0b01011000;
/// 0b01011001: Signal `sai2a_dma` selected as request input
pub const sai2a_dma: u32 = 0b01011001;
/// 0b01011010: Signal `sai2b_dma` selected as request input
pub const sai2b_dma: u32 = 0b01011010;
/// 0b01011011: Signal `swpmi_rx_dma` selected as request input
pub const swpmi_rx_dma: u32 = 0b01011011;
/// 0b01011100: Signal `swpmi_tx_dma` selected as request input
pub const swpmi_tx_dma: u32 = 0b01011100;
/// 0b01011101: Signal `spdifrx_dat_dma` selected as request input
pub const spdifrx_dat_dma: u32 = 0b01011101;
/// 0b01011110: Signal `spdifrx_ctrl_dma` selected as request input
pub const spdifrx_ctrl_dma: u32 = 0b01011110;
/// 0b01011111: Signal `hr_req(1)` selected as request input
pub const hr_req1: u32 = 0b01011111;
/// 0b01100000: Signal `hr_req(2)` selected as request input
pub const hr_req2: u32 = 0b01100000;
/// 0b01100001: Signal `hr_req(3)` selected as request input
pub const hr_req3: u32 = 0b01100001;
/// 0b01100010: Signal `hr_req(4)` selected as request input
pub const hr_req4: u32 = 0b01100010;
/// 0b01100011: Signal `hr_req(5)` selected as request input
pub const hr_req5: u32 = 0b01100011;
/// 0b01100100: Signal `hr_req(6)` selected as request input
pub const hr_req6: u32 = 0b01100100;
/// 0b01100101: Signal `dfsdm1_dma0` selected as request input
pub const dfsdm1_dma0: u32 = 0b01100101;
/// 0b01100110: Signal `dfsdm1_dma1` selected as request input
pub const dfsdm1_dma1: u32 = 0b01100110;
/// 0b01100111: Signal `dfsdm1_dma2` selected as request input
pub const dfsdm1_dma2: u32 = 0b01100111;
/// 0b01101000: Signal `dfsdm1_dma3` selected as request input
pub const dfsdm1_dma3: u32 = 0b01101000;
/// 0b01101001: Signal `tim15_ch1` selected as request input
pub const tim15_ch1: u32 = 0b01101001;
/// 0b01101010: Signal `tim15_up` selected as request input
pub const tim15_up: u32 = 0b01101010;
/// 0b01101011: Signal `tim15_trig` selected as request input
pub const tim15_trig: u32 = 0b01101011;
/// 0b01101100: Signal `tim15_com` selected as request input
pub const tim15_com: u32 = 0b01101100;
/// 0b01101101: Signal `tim16_ch1` selected as request input
pub const tim16_ch1: u32 = 0b01101101;
/// 0b01101110: Signal `tim16_up` selected as request input
pub const tim16_up: u32 = 0b01101110;
/// 0b01101111: Signal `tim17_ch1` selected as request input
pub const tim17_ch1: u32 = 0b01101111;
/// 0b01110000: Signal `tim17_up` selected as request input
pub const tim17_up: u32 = 0b01110000;
/// 0b01110001: Signal `sai3_a_dma` selected as request input
pub const sai3_a_dma: u32 = 0b01110001;
/// 0b01110010: Signal `sai3_b_dma` selected as request input
pub const sai3_b_dma: u32 = 0b01110010;
/// 0b01110011: Signal `adc3_dma` selected as request input
pub const adc3_dma: u32 = 0b01110011;
}
}
/// Interrupt enable at synchronization event overrun
pub mod SOIE {
/// Offset (8 bits)
pub const offset: u32 = 8;
/// Mask (1 bit: 1 << 8)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values
pub mod RW {
/// 0b0: Synchronization overrun interrupt disabled
pub const Disabled: u32 = 0b0;
/// 0b1: Synchronization overrun interrupt enabled
pub const Enabled: u32 = 0b1;
}
}
/// Event generation enable/disable
pub mod EGE {
/// Offset (9 bits)
pub const offset: u32 = 9;
/// Mask (1 bit: 1 << 9)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values
pub mod RW {
/// 0b0: Event generation disabled
pub const Disabled: u32 = 0b0;
/// 0b1: Event generation enabled
pub const Enabled: u32 = 0b1;
}
}
/// Synchronous operating mode enable/disable
pub mod SE {
/// Offset (16 bits)
pub const offset: u32 = 16;
/// Mask (1 bit: 1 << 16)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values
pub mod RW {
/// 0b0: Synchronization disabled
pub const Disabled: u32 = 0b0;
/// 0b1: Synchronization enabled
pub const Enabled: u32 = 0b1;
}
}
/// Synchronization event type selector Defines the synchronization event on the selected synchronization input:
pub mod SPOL {
/// Offset (17 bits)
pub const offset: u32 = 17;
/// Mask (2 bits: 0b11 << 17)
pub const mask: u32 = 0b11 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values
pub mod RW {
/// 0b00: No event, i.e. no synchronization nor detection
pub const NoEdge: u32 = 0b00;
/// 0b01: Rising edge
pub const RisingEdge: u32 = 0b01;
/// 0b10: Falling edge
pub const FallingEdge: u32 = 0b10;
/// 0b11: Rising and falling edges
pub const BothEdges: u32 = 0b11;
}
}
/// Number of DMA requests to forward Defines the number of DMA requests forwarded before output event is generated. In synchronous mode, it also defines the number of DMA requests to forward after a synchronization event, then stop forwarding. The actual number of DMA requests forwarded is NBREQ+1. Note: This field can only be written when both SE and EGE bits are reset.
pub mod NBREQ {
/// Offset (19 bits)
pub const offset: u32 = 19;
/// Mask (5 bits: 0b11111 << 19)
pub const mask: u32 = 0b11111 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Synchronization input selected
pub mod SYNC_ID {
/// Offset (24 bits)
pub const offset: u32 = 24;
/// Mask (5 bits: 0b11111 << 24)
pub const mask: u32 = 0b11111 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values
pub mod RW {
/// 0b00000: Signal `dmamux1_evt0` selected as synchronization input
pub const dmamux1_evt0: u32 = 0b00000;
/// 0b00001: Signal `dmamux1_evt1` selected as synchronization input
pub const dmamux1_evt1: u32 = 0b00001;
/// 0b00010: Signal `dmamux1_evt2` selected as synchronization input
pub const dmamux1_evt2: u32 = 0b00010;
/// 0b00011: Signal `lptim1_out` selected as synchronization input
pub const lptim1_out: u32 = 0b00011;
/// 0b00100: Signal `lptim2_out` selected as synchronization input
pub const lptim2_out: u32 = 0b00100;
/// 0b00101: Signal `lptim3_out` selected as synchronization input
pub const lptim3_out: u32 = 0b00101;
/// 0b00110: Signal `extit0` selected as synchronization input
pub const extit0: u32 = 0b00110;
/// 0b00111: Signal `tim12_trgo` selected as synchronization input
pub const tim12_trgo: u32 = 0b00111;
}
}
}
/// DMAMux - DMA request line multiplexer channel x control register
pub mod CCR1 {
pub use super::CCR0::DMAREQ_ID;
pub use super::CCR0::EGE;
pub use super::CCR0::NBREQ;
pub use super::CCR0::SE;
pub use super::CCR0::SOIE;
pub use super::CCR0::SPOL;
pub use super::CCR0::SYNC_ID;
}
/// DMAMux - DMA request line multiplexer channel x control register
pub mod CCR2 {
pub use super::CCR0::DMAREQ_ID;
pub use super::CCR0::EGE;
pub use super::CCR0::NBREQ;
pub use super::CCR0::SE;
pub use super::CCR0::SOIE;
pub use super::CCR0::SPOL;
pub use super::CCR0::SYNC_ID;
}
/// DMAMux - DMA request line multiplexer channel x control register
pub mod CCR3 {
pub use super::CCR0::DMAREQ_ID;
pub use super::CCR0::EGE;
pub use super::CCR0::NBREQ;
pub use super::CCR0::SE;
pub use super::CCR0::SOIE;
pub use super::CCR0::SPOL;
pub use super::CCR0::SYNC_ID;
}
/// DMAMux - DMA request line multiplexer channel x control register
pub mod CCR4 {
pub use super::CCR0::DMAREQ_ID;
pub use super::CCR0::EGE;
pub use super::CCR0::NBREQ;
pub use super::CCR0::SE;
pub use super::CCR0::SOIE;
pub use super::CCR0::SPOL;
pub use super::CCR0::SYNC_ID;
}
/// DMAMux - DMA request line multiplexer channel x control register
pub mod CCR5 {
pub use super::CCR0::DMAREQ_ID;
pub use super::CCR0::EGE;
pub use super::CCR0::NBREQ;
pub use super::CCR0::SE;
pub use super::CCR0::SOIE;
pub use super::CCR0::SPOL;
pub use super::CCR0::SYNC_ID;
}
/// DMAMux - DMA request line multiplexer channel x control register
pub mod CCR6 {
pub use super::CCR0::DMAREQ_ID;
pub use super::CCR0::EGE;
pub use super::CCR0::NBREQ;
pub use super::CCR0::SE;
pub use super::CCR0::SOIE;
pub use super::CCR0::SPOL;
pub use super::CCR0::SYNC_ID;
}
/// DMAMux - DMA request line multiplexer channel x control register
pub mod CCR7 {
pub use super::CCR0::DMAREQ_ID;
pub use super::CCR0::EGE;
pub use super::CCR0::NBREQ;
pub use super::CCR0::SE;
pub use super::CCR0::SOIE;
pub use super::CCR0::SPOL;
pub use super::CCR0::SYNC_ID;
}
/// DMAMux - DMA request line multiplexer channel x control register
pub mod CCR8 {
pub use super::CCR0::DMAREQ_ID;
pub use super::CCR0::EGE;
pub use super::CCR0::NBREQ;
pub use super::CCR0::SE;
pub use super::CCR0::SOIE;
pub use super::CCR0::SPOL;
pub use super::CCR0::SYNC_ID;
}
/// DMAMux - DMA request line multiplexer channel x control register
pub mod CCR9 {
pub use super::CCR0::DMAREQ_ID;
pub use super::CCR0::EGE;
pub use super::CCR0::NBREQ;
pub use super::CCR0::SE;
pub use super::CCR0::SOIE;
pub use super::CCR0::SPOL;
pub use super::CCR0::SYNC_ID;
}
/// DMAMux - DMA request line multiplexer channel x control register
pub mod CCR10 {
pub use super::CCR0::DMAREQ_ID;
pub use super::CCR0::EGE;
pub use super::CCR0::NBREQ;
pub use super::CCR0::SE;
pub use super::CCR0::SOIE;
pub use super::CCR0::SPOL;
pub use super::CCR0::SYNC_ID;
}
/// DMAMux - DMA request line multiplexer channel x control register
pub mod CCR11 {
pub use super::CCR0::DMAREQ_ID;
pub use super::CCR0::EGE;
pub use super::CCR0::NBREQ;
pub use super::CCR0::SE;
pub use super::CCR0::SOIE;
pub use super::CCR0::SPOL;
pub use super::CCR0::SYNC_ID;
}
/// DMAMux - DMA request line multiplexer channel x control register
pub mod CCR12 {
pub use super::CCR0::DMAREQ_ID;
pub use super::CCR0::EGE;
pub use super::CCR0::NBREQ;
pub use super::CCR0::SE;
pub use super::CCR0::SOIE;
pub use super::CCR0::SPOL;
pub use super::CCR0::SYNC_ID;
}
/// DMAMux - DMA request line multiplexer channel x control register
pub mod CCR13 {
pub use super::CCR0::DMAREQ_ID;
pub use super::CCR0::EGE;
pub use super::CCR0::NBREQ;
pub use super::CCR0::SE;
pub use super::CCR0::SOIE;
pub use super::CCR0::SPOL;
pub use super::CCR0::SYNC_ID;
}
/// DMAMux - DMA request line multiplexer channel x control register
pub mod CCR14 {
pub use super::CCR0::DMAREQ_ID;
pub use super::CCR0::EGE;
pub use super::CCR0::NBREQ;
pub use super::CCR0::SE;
pub use super::CCR0::SOIE;
pub use super::CCR0::SPOL;
pub use super::CCR0::SYNC_ID;
}
/// DMAMux - DMA request line multiplexer channel x control register
pub mod CCR15 {
pub use super::CCR0::DMAREQ_ID;
pub use super::CCR0::EGE;
pub use super::CCR0::NBREQ;
pub use super::CCR0::SE;
pub use super::CCR0::SOIE;
pub use super::CCR0::SPOL;
pub use super::CCR0::SYNC_ID;
}
/// DMAMux - DMA request generator channel x control register
pub mod RGCR0 {
/// DMA request trigger input selected
pub mod SIG_ID {
/// Offset (0 bits)
pub const offset: u32 = 0;
/// Mask (5 bits: 0b11111 << 0)
pub const mask: u32 = 0b11111 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values
pub mod RW {
/// 0b00000: Signal `dmamux1_evt0` selected as trigger input
pub const dmamux1_evt0: u32 = 0b00000;
/// 0b00001: Signal `dmamux1_evt1` selected as trigger input
pub const dmamux1_evt1: u32 = 0b00001;
/// 0b00010: Signal `dmamux1_evt2` selected as trigger input
pub const dmamux1_evt2: u32 = 0b00010;
/// 0b00011: Signal `lptim1_out` selected as trigger input
pub const lptim1_out: u32 = 0b00011;
/// 0b00100: Signal `lptim2_out` selected as trigger input
pub const lptim2_out: u32 = 0b00100;
/// 0b00101: Signal `lptim3_out` selected as trigger input
pub const lptim3_out: u32 = 0b00101;
/// 0b00110: Signal `extit0` selected as trigger input
pub const extit0: u32 = 0b00110;
/// 0b00111: Signal `tim12_trgo` selected as trigger input
pub const tim12_trgo: u32 = 0b00111;
}
}
/// Interrupt enable at trigger event overrun
pub mod OIE {
/// Offset (8 bits)
pub const offset: u32 = 8;
/// Mask (1 bit: 1 << 8)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values
pub mod RW {
/// 0b0: Trigger overrun interrupt disabled
pub const Disabled: u32 = 0b0;
/// 0b1: Trigger overrun interrupt enabled
pub const Enabled: u32 = 0b1;
}
}
/// DMA request generator channel enable/disable
pub mod GE {
/// Offset (16 bits)
pub const offset: u32 = 16;
/// Mask (1 bit: 1 << 16)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values
pub mod RW {
/// 0b0: DMA request generation disabled
pub const Disabled: u32 = 0b0;
/// 0b1: DMA request enabled
pub const Enabled: u32 = 0b1;
}
}
/// DMA request generator trigger event type selection Defines the trigger event on the selected DMA request trigger input
pub mod GPOL {
/// Offset (17 bits)
pub const offset: u32 = 17;
/// Mask (2 bits: 0b11 << 17)
pub const mask: u32 = 0b11 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values
pub mod RW {
/// 0b00: No event, i.e. no detection nor generation
pub const NoEdge: u32 = 0b00;
/// 0b01: Rising edge
pub const RisingEdge: u32 = 0b01;
/// 0b10: Falling edge
pub const FallingEdge: u32 = 0b10;
/// 0b11: Rising and falling edges
pub const BothEdges: u32 = 0b11;
}
}
/// Number of DMA requests to generate Defines the number of DMA requests generated after a trigger event, then stop generating. The actual number of generated DMA requests is GNBREQ+1. Note: This field can only be written when GE bit is reset.
pub mod GNBREQ {
/// Offset (19 bits)
pub const offset: u32 = 19;
/// Mask (5 bits: 0b11111 << 19)
pub const mask: u32 = 0b11111 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
}
/// DMAMux - DMA request generator channel x control register
pub mod RGCR1 {
pub use super::RGCR0::GE;
pub use super::RGCR0::GNBREQ;
pub use super::RGCR0::GPOL;
pub use super::RGCR0::OIE;
pub use super::RGCR0::SIG_ID;
}
/// DMAMux - DMA request generator channel x control register
pub mod RGCR2 {
pub use super::RGCR0::GE;
pub use super::RGCR0::GNBREQ;
pub use super::RGCR0::GPOL;
pub use super::RGCR0::OIE;
pub use super::RGCR0::SIG_ID;
}
/// DMAMux - DMA request generator channel x control register
pub mod RGCR3 {
pub use super::RGCR0::GE;
pub use super::RGCR0::GNBREQ;
pub use super::RGCR0::GPOL;
pub use super::RGCR0::OIE;
pub use super::RGCR0::SIG_ID;
}
/// DMAMux - DMA request generator channel x control register
pub mod RGCR4 {
pub use super::RGCR0::GE;
pub use super::RGCR0::GNBREQ;
pub use super::RGCR0::GPOL;
pub use super::RGCR0::OIE;
pub use super::RGCR0::SIG_ID;
}
/// DMAMux - DMA request generator channel x control register
pub mod RGCR5 {
pub use super::RGCR0::GE;
pub use super::RGCR0::GNBREQ;
pub use super::RGCR0::GPOL;
pub use super::RGCR0::OIE;
pub use super::RGCR0::SIG_ID;
}
/// DMAMux - DMA request generator channel x control register
pub mod RGCR6 {
pub use super::RGCR0::GE;
pub use super::RGCR0::GNBREQ;
pub use super::RGCR0::GPOL;
pub use super::RGCR0::OIE;
pub use super::RGCR0::SIG_ID;
}
/// DMAMux - DMA request generator channel x control register
pub mod RGCR7 {
pub use super::RGCR0::GE;
pub use super::RGCR0::GNBREQ;
pub use super::RGCR0::GPOL;
pub use super::RGCR0::OIE;
pub use super::RGCR0::SIG_ID;
}
/// DMAMux - DMA request generator status register
pub mod RGSR {
/// Trigger event overrun flag The flag is set when a trigger event occurs on DMA request generator channel x, while the DMA request generator counter value is lower than GNBREQ. The flag is cleared by writing 1 to the corresponding COFx bit in DMAMUX_RGCFR register.
pub mod OF0 {
/// Offset (0 bits)
pub const offset: u32 = 0;
/// Mask (1 bit: 1 << 0)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Trigger event overrun flag The flag is set when a trigger event occurs on DMA request generator channel x, while the DMA request generator counter value is lower than GNBREQ. The flag is cleared by writing 1 to the corresponding COFx bit in DMAMUX_RGCFR register.
pub mod OF1 {
/// Offset (1 bits)
pub const offset: u32 = 1;
/// Mask (1 bit: 1 << 1)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Trigger event overrun flag The flag is set when a trigger event occurs on DMA request generator channel x, while the DMA request generator counter value is lower than GNBREQ. The flag is cleared by writing 1 to the corresponding COFx bit in DMAMUX_RGCFR register.
pub mod OF2 {
/// Offset (2 bits)
pub const offset: u32 = 2;
/// Mask (1 bit: 1 << 2)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Trigger event overrun flag The flag is set when a trigger event occurs on DMA request generator channel x, while the DMA request generator counter value is lower than GNBREQ. The flag is cleared by writing 1 to the corresponding COFx bit in DMAMUX_RGCFR register.
pub mod OF3 {
/// Offset (3 bits)
pub const offset: u32 = 3;
/// Mask (1 bit: 1 << 3)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Trigger event overrun flag The flag is set when a trigger event occurs on DMA request generator channel x, while the DMA request generator counter value is lower than GNBREQ. The flag is cleared by writing 1 to the corresponding COFx bit in DMAMUX_RGCFR register.
pub mod OF4 {
/// Offset (4 bits)
pub const offset: u32 = 4;
/// Mask (1 bit: 1 << 4)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Trigger event overrun flag The flag is set when a trigger event occurs on DMA request generator channel x, while the DMA request generator counter value is lower than GNBREQ. The flag is cleared by writing 1 to the corresponding COFx bit in DMAMUX_RGCFR register.
pub mod OF5 {
/// Offset (5 bits)
pub const offset: u32 = 5;
/// Mask (1 bit: 1 << 5)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Trigger event overrun flag The flag is set when a trigger event occurs on DMA request generator channel x, while the DMA request generator counter value is lower than GNBREQ. The flag is cleared by writing 1 to the corresponding COFx bit in DMAMUX_RGCFR register.
pub mod OF6 {
/// Offset (6 bits)
pub const offset: u32 = 6;
/// Mask (1 bit: 1 << 6)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Trigger event overrun flag The flag is set when a trigger event occurs on DMA request generator channel x, while the DMA request generator counter value is lower than GNBREQ. The flag is cleared by writing 1 to the corresponding COFx bit in DMAMUX_RGCFR register.
pub mod OF7 {
/// Offset (7 bits)
pub const offset: u32 = 7;
/// Mask (1 bit: 1 << 7)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
}
/// DMAMux - DMA request generator clear flag register
pub mod RGCFR {
/// Clear trigger event overrun flag Upon setting, this bit clears the corresponding overrun flag OFx in the DMAMUX_RGCSR register.
pub mod COF0 {
/// Offset (0 bits)
pub const offset: u32 = 0;
/// Mask (1 bit: 1 << 0)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Clear trigger event overrun flag Upon setting, this bit clears the corresponding overrun flag OFx in the DMAMUX_RGCSR register.
pub mod COF1 {
/// Offset (1 bits)
pub const offset: u32 = 1;
/// Mask (1 bit: 1 << 1)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Clear trigger event overrun flag Upon setting, this bit clears the corresponding overrun flag OFx in the DMAMUX_RGCSR register.
pub mod COF2 {
/// Offset (2 bits)
pub const offset: u32 = 2;
/// Mask (1 bit: 1 << 2)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Clear trigger event overrun flag Upon setting, this bit clears the corresponding overrun flag OFx in the DMAMUX_RGCSR register.
pub mod COF3 {
/// Offset (3 bits)
pub const offset: u32 = 3;
/// Mask (1 bit: 1 << 3)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Clear trigger event overrun flag Upon setting, this bit clears the corresponding overrun flag OFx in the DMAMUX_RGCSR register.
pub mod COF4 {
/// Offset (4 bits)
pub const offset: u32 = 4;
/// Mask (1 bit: 1 << 4)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Clear trigger event overrun flag Upon setting, this bit clears the corresponding overrun flag OFx in the DMAMUX_RGCSR register.
pub mod COF5 {
/// Offset (5 bits)
pub const offset: u32 = 5;
/// Mask (1 bit: 1 << 5)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Clear trigger event overrun flag Upon setting, this bit clears the corresponding overrun flag OFx in the DMAMUX_RGCSR register.
pub mod COF6 {
/// Offset (6 bits)
pub const offset: u32 = 6;
/// Mask (1 bit: 1 << 6)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Clear trigger event overrun flag Upon setting, this bit clears the corresponding overrun flag OFx in the DMAMUX_RGCSR register.
pub mod COF7 {
/// Offset (7 bits)
pub const offset: u32 = 7;
/// Mask (1 bit: 1 << 7)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
}
/// DMAMUX request line multiplexer interrupt channel status register
pub mod CSR {
/// Synchronization overrun event flag
pub mod SOF0 {
/// Offset (0 bits)
pub const offset: u32 = 0;
/// Mask (1 bit: 1 << 0)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Synchronization overrun event flag
pub mod SOF1 {
/// Offset (1 bits)
pub const offset: u32 = 1;
/// Mask (1 bit: 1 << 1)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Synchronization overrun event flag
pub mod SOF2 {
/// Offset (2 bits)
pub const offset: u32 = 2;
/// Mask (1 bit: 1 << 2)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Synchronization overrun event flag
pub mod SOF3 {
/// Offset (3 bits)
pub const offset: u32 = 3;
/// Mask (1 bit: 1 << 3)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Synchronization overrun event flag
pub mod SOF4 {
/// Offset (4 bits)
pub const offset: u32 = 4;
/// Mask (1 bit: 1 << 4)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Synchronization overrun event flag
pub mod SOF5 {
/// Offset (5 bits)
pub const offset: u32 = 5;
/// Mask (1 bit: 1 << 5)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Synchronization overrun event flag
pub mod SOF6 {
/// Offset (6 bits)
pub const offset: u32 = 6;
/// Mask (1 bit: 1 << 6)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Synchronization overrun event flag
pub mod SOF7 {
/// Offset (7 bits)
pub const offset: u32 = 7;
/// Mask (1 bit: 1 << 7)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Synchronization overrun event flag
pub mod SOF8 {
/// Offset (8 bits)
pub const offset: u32 = 8;
/// Mask (1 bit: 1 << 8)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Synchronization overrun event flag
pub mod SOF9 {
/// Offset (9 bits)
pub const offset: u32 = 9;
/// Mask (1 bit: 1 << 9)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Synchronization overrun event flag
pub mod SOF10 {
/// Offset (10 bits)
pub const offset: u32 = 10;
/// Mask (1 bit: 1 << 10)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Synchronization overrun event flag
pub mod SOF11 {
/// Offset (11 bits)
pub const offset: u32 = 11;
/// Mask (1 bit: 1 << 11)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Synchronization overrun event flag
pub mod SOF12 {
/// Offset (12 bits)
pub const offset: u32 = 12;
/// Mask (1 bit: 1 << 12)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Synchronization overrun event flag
pub mod SOF13 {
/// Offset (13 bits)
pub const offset: u32 = 13;
/// Mask (1 bit: 1 << 13)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Synchronization overrun event flag
pub mod SOF14 {
/// Offset (14 bits)
pub const offset: u32 = 14;
/// Mask (1 bit: 1 << 14)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Synchronization overrun event flag
pub mod SOF15 {
/// Offset (15 bits)
pub const offset: u32 = 15;
/// Mask (1 bit: 1 << 15)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
}
/// DMAMUX request line multiplexer interrupt clear flag register
pub mod CFR {
/// Clear synchronization overrun event flag
pub mod CSOF0 {
/// Offset (0 bits)
pub const offset: u32 = 0;
/// Mask (1 bit: 1 << 0)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Clear synchronization overrun event flag
pub mod CSOF1 {
/// Offset (1 bits)
pub const offset: u32 = 1;
/// Mask (1 bit: 1 << 1)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Clear synchronization overrun event flag
pub mod CSOF2 {
/// Offset (2 bits)
pub const offset: u32 = 2;
/// Mask (1 bit: 1 << 2)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Clear synchronization overrun event flag
pub mod CSOF3 {
/// Offset (3 bits)
pub const offset: u32 = 3;
/// Mask (1 bit: 1 << 3)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Clear synchronization overrun event flag
pub mod CSOF4 {
/// Offset (4 bits)
pub const offset: u32 = 4;
/// Mask (1 bit: 1 << 4)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Clear synchronization overrun event flag
pub mod CSOF5 {
/// Offset (5 bits)
pub const offset: u32 = 5;
/// Mask (1 bit: 1 << 5)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Clear synchronization overrun event flag
pub mod CSOF6 {
/// Offset (6 bits)
pub const offset: u32 = 6;
/// Mask (1 bit: 1 << 6)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Clear synchronization overrun event flag
pub mod CSOF7 {
/// Offset (7 bits)
pub const offset: u32 = 7;
/// Mask (1 bit: 1 << 7)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Clear synchronization overrun event flag
pub mod CSOF8 {
/// Offset (8 bits)
pub const offset: u32 = 8;
/// Mask (1 bit: 1 << 8)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Clear synchronization overrun event flag
pub mod CSOF9 {
/// Offset (9 bits)
pub const offset: u32 = 9;
/// Mask (1 bit: 1 << 9)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Clear synchronization overrun event flag
pub mod CSOF10 {
/// Offset (10 bits)
pub const offset: u32 = 10;
/// Mask (1 bit: 1 << 10)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Clear synchronization overrun event flag
pub mod CSOF11 {
/// Offset (11 bits)
pub const offset: u32 = 11;
/// Mask (1 bit: 1 << 11)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Clear synchronization overrun event flag
pub mod CSOF12 {
/// Offset (12 bits)
pub const offset: u32 = 12;
/// Mask (1 bit: 1 << 12)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Clear synchronization overrun event flag
pub mod CSOF13 {
/// Offset (13 bits)
pub const offset: u32 = 13;
/// Mask (1 bit: 1 << 13)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Clear synchronization overrun event flag
pub mod CSOF14 {
/// Offset (14 bits)
pub const offset: u32 = 14;
/// Mask (1 bit: 1 << 14)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
/// Clear synchronization overrun event flag
pub mod CSOF15 {
/// Offset (15 bits)
pub const offset: u32 = 15;
/// Mask (1 bit: 1 << 15)
pub const mask: u32 = 1 << offset;
/// Read-only values (empty)
pub mod R {}
/// Write-only values (empty)
pub mod W {}
/// Read-write values (empty)
pub mod RW {}
}
}
#[repr(C)]
pub struct RegisterBlock {
/// DMAMux - DMA request line multiplexer channel x control register
pub CCR0: RWRegister<u32>,
/// DMAMux - DMA request line multiplexer channel x control register
pub CCR1: RWRegister<u32>,
/// DMAMux - DMA request line multiplexer channel x control register
pub CCR2: RWRegister<u32>,
/// DMAMux - DMA request line multiplexer channel x control register
pub CCR3: RWRegister<u32>,
/// DMAMux - DMA request line multiplexer channel x control register
pub CCR4: RWRegister<u32>,
/// DMAMux - DMA request line multiplexer channel x control register
pub CCR5: RWRegister<u32>,
/// DMAMux - DMA request line multiplexer channel x control register
pub CCR6: RWRegister<u32>,
/// DMAMux - DMA request line multiplexer channel x control register
pub CCR7: RWRegister<u32>,
/// DMAMux - DMA request line multiplexer channel x control register
pub CCR8: RWRegister<u32>,
/// DMAMux - DMA request line multiplexer channel x control register
pub CCR9: RWRegister<u32>,
/// DMAMux - DMA request line multiplexer channel x control register
pub CCR10: RWRegister<u32>,
/// DMAMux - DMA request line multiplexer channel x control register
pub CCR11: RWRegister<u32>,
/// DMAMux - DMA request line multiplexer channel x control register
pub CCR12: RWRegister<u32>,
/// DMAMux - DMA request line multiplexer channel x control register
pub CCR13: RWRegister<u32>,
/// DMAMux - DMA request line multiplexer channel x control register
pub CCR14: RWRegister<u32>,
/// DMAMux - DMA request line multiplexer channel x control register
pub CCR15: RWRegister<u32>,
_reserved1: [u32; 16],
/// DMAMUX request line multiplexer interrupt channel status register
pub CSR: RORegister<u32>,
/// DMAMUX request line multiplexer interrupt clear flag register
pub CFR: WORegister<u32>,
_reserved2: [u32; 30],
/// DMAMux - DMA request generator channel x control register
pub RGCR0: RWRegister<u32>,
/// DMAMux - DMA request generator channel x control register
pub RGCR1: RWRegister<u32>,
/// DMAMux - DMA request generator channel x control register
pub RGCR2: RWRegister<u32>,
/// DMAMux - DMA request generator channel x control register
pub RGCR3: RWRegister<u32>,
/// DMAMux - DMA request generator channel x control register
pub RGCR4: RWRegister<u32>,
/// DMAMux - DMA request generator channel x control register
pub RGCR5: RWRegister<u32>,
/// DMAMux - DMA request generator channel x control register
pub RGCR6: RWRegister<u32>,
/// DMAMux - DMA request generator channel x control register
pub RGCR7: RWRegister<u32>,
_reserved3: [u32; 8],
/// DMAMux - DMA request generator status register
pub RGSR: RORegister<u32>,
/// DMAMux - DMA request generator clear flag register
pub RGCFR: WORegister<u32>,
}
pub struct ResetValues {
pub CCR0: u32,
pub CCR1: u32,
pub CCR2: u32,
pub CCR3: u32,
pub CCR4: u32,
pub CCR5: u32,
pub CCR6: u32,
pub CCR7: u32,
pub CCR8: u32,
pub CCR9: u32,
pub CCR10: u32,
pub CCR11: u32,
pub CCR12: u32,
pub CCR13: u32,
pub CCR14: u32,
pub CCR15: u32,
pub CSR: u32,
pub CFR: u32,
pub RGCR0: u32,
pub RGCR1: u32,
pub RGCR2: u32,
pub RGCR3: u32,
pub RGCR4: u32,
pub RGCR5: u32,
pub RGCR6: u32,
pub RGCR7: u32,
pub RGSR: u32,
pub RGCFR: u32,
}
#[cfg(not(feature = "nosync"))]
pub struct Instance {
pub(crate) addr: u32,
pub(crate) _marker: PhantomData<*const RegisterBlock>,
}
#[cfg(not(feature = "nosync"))]
impl ::core::ops::Deref for Instance {
type Target = RegisterBlock;
#[inline(always)]
fn deref(&self) -> &RegisterBlock {
unsafe { &*(self.addr as *const _) }
}
}
#[cfg(feature = "rtic")]
unsafe impl Send for Instance {}