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#![allow(clippy::missing_safety_doc)]
#![allow(clippy::identity_op)]
#![allow(clippy::unnecessary_cast)]
#![allow(clippy::erasing_op)]
# [doc = "DSI Host."]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Dsihost { ptr : * mut u8 } unsafe impl Send for Dsihost { } unsafe impl Sync for Dsihost { } impl Dsihost { # [inline (always)]
pub const unsafe fn from_ptr (ptr : * mut ()) -> Self { Self { ptr : ptr as _ , } } # [inline (always)]
pub const fn as_ptr (& self) -> * mut () { self . ptr as _ } # [doc = "DSI Host Version Register."]
# [inline (always)]
pub const fn vr (self) -> crate :: common :: Reg < regs :: Vr , crate :: common :: R > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x0usize) as _) } } # [doc = "DSI Host Control Register."]
# [inline (always)]
pub const fn cr (self) -> crate :: common :: Reg < regs :: Cr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x04usize) as _) } } # [doc = "DSI HOST Clock Control Register."]
# [inline (always)]
pub const fn ccr (self) -> crate :: common :: Reg < regs :: Ccr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x08usize) as _) } } # [doc = "DSI Host LTDC VCID Register."]
# [inline (always)]
pub const fn lvcidr (self) -> crate :: common :: Reg < regs :: Lvcidr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x0cusize) as _) } } # [doc = "DSI Host LTDC Color Coding Register."]
# [inline (always)]
pub const fn lcolcr (self) -> crate :: common :: Reg < regs :: Lcolcr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x10usize) as _) } } # [doc = "DSI Host LTDC Polarity Configuration Register."]
# [inline (always)]
pub const fn lpcr (self) -> crate :: common :: Reg < regs :: Lpcr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x14usize) as _) } } # [doc = "DSI Host Low-Power mode Configuration Register."]
# [inline (always)]
pub const fn lpmcr (self) -> crate :: common :: Reg < regs :: Lpmcr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x18usize) as _) } } # [doc = "DSI Host Protocol Configuration Register."]
# [inline (always)]
pub const fn pcr (self) -> crate :: common :: Reg < regs :: Pcr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x2cusize) as _) } } # [doc = "DSI Host Generic VCID Register."]
# [inline (always)]
pub const fn gvcidr (self) -> crate :: common :: Reg < regs :: Gvcidr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x30usize) as _) } } # [doc = "DSI Host mode Configuration Register."]
# [inline (always)]
pub const fn mcr (self) -> crate :: common :: Reg < regs :: Mcr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x34usize) as _) } } # [doc = "DSI Host Video mode Configuration Register."]
# [inline (always)]
pub const fn vmcr (self) -> crate :: common :: Reg < regs :: Vmcr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x38usize) as _) } } # [doc = "DSI Host Video Packet Configuration Register."]
# [inline (always)]
pub const fn vpcr (self) -> crate :: common :: Reg < regs :: Vpcr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x3cusize) as _) } } # [doc = "DSI Host Video Chunks Configuration Register."]
# [inline (always)]
pub const fn vccr (self) -> crate :: common :: Reg < regs :: Vccr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x40usize) as _) } } # [doc = "DSI Host Video Null Packet Configuration Register."]
# [inline (always)]
pub const fn vnpcr (self) -> crate :: common :: Reg < regs :: Vnpcr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x44usize) as _) } } # [doc = "DSI Host Video HSA Configuration Register."]
# [inline (always)]
pub const fn vhsacr (self) -> crate :: common :: Reg < regs :: Vhsacr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x48usize) as _) } } # [doc = "DSI Host Video HBP Configuration Register."]
# [inline (always)]
pub const fn vhbpcr (self) -> crate :: common :: Reg < regs :: Vhbpcr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x4cusize) as _) } } # [doc = "DSI Host Video Line Configuration Register."]
# [inline (always)]
pub const fn vlcr (self) -> crate :: common :: Reg < regs :: Vlcr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x50usize) as _) } } # [doc = "DSI Host Video VSA Configuration Register."]
# [inline (always)]
pub const fn vvsacr (self) -> crate :: common :: Reg < regs :: Vvsacr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x54usize) as _) } } # [doc = "DSI Host Video VBP Configuration Register."]
# [inline (always)]
pub const fn vvbpcr (self) -> crate :: common :: Reg < regs :: Vvbpcr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x58usize) as _) } } # [doc = "DSI Host Video VFP Configuration Register."]
# [inline (always)]
pub const fn vvfpcr (self) -> crate :: common :: Reg < regs :: Vvfpcr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x5cusize) as _) } } # [doc = "DSI Host Video VA Configuration Register."]
# [inline (always)]
pub const fn vvacr (self) -> crate :: common :: Reg < regs :: Vvacr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x60usize) as _) } } # [doc = "DSI Host LTDC Command Configuration Register."]
# [inline (always)]
pub const fn lccr (self) -> crate :: common :: Reg < regs :: Lccr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x64usize) as _) } } # [doc = "DSI Host Command mode Configuration Register."]
# [inline (always)]
pub const fn cmcr (self) -> crate :: common :: Reg < regs :: Cmcr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x68usize) as _) } } # [doc = "DSI Host Generic Header Configuration Register."]
# [inline (always)]
pub const fn ghcr (self) -> crate :: common :: Reg < regs :: Ghcr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x6cusize) as _) } } # [doc = "DSI Host Generic Payload Data Register."]
# [inline (always)]
pub const fn gpdr (self) -> crate :: common :: Reg < regs :: Gpdr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x70usize) as _) } } # [doc = "DSI Host Generic Packet Status Register."]
# [inline (always)]
pub const fn gpsr (self) -> crate :: common :: Reg < regs :: Gpsr , crate :: common :: R > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x74usize) as _) } } # [doc = "DSI Host Timeout Counter Configuration Register 0."]
# [inline (always)]
pub const fn tccr0 (self) -> crate :: common :: Reg < regs :: Tccr0 , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x78usize) as _) } } # [doc = "DSI Host Timeout Counter Configuration Register 1."]
# [inline (always)]
pub const fn tccr1 (self) -> crate :: common :: Reg < regs :: Tccr1 , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x7cusize) as _) } } # [doc = "DSI Host Timeout Counter Configuration Register 2."]
# [inline (always)]
pub const fn tccr2 (self) -> crate :: common :: Reg < regs :: Tccr2 , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x80usize) as _) } } # [doc = "DSI Host Timeout Counter Configuration Register 3."]
# [inline (always)]
pub const fn tccr3 (self) -> crate :: common :: Reg < regs :: Tccr3 , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x84usize) as _) } } # [doc = "DSI Host Timeout Counter Configuration Register 4."]
# [inline (always)]
pub const fn tccr4 (self) -> crate :: common :: Reg < regs :: Tccr4 , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x88usize) as _) } } # [doc = "DSI Host Timeout Counter Configuration Register 5."]
# [inline (always)]
pub const fn tccr5 (self) -> crate :: common :: Reg < regs :: Tccr5 , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x8cusize) as _) } } # [doc = "DSI Host Clock Lane Configuration Register."]
# [inline (always)]
pub const fn clcr (self) -> crate :: common :: Reg < regs :: Clcr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x94usize) as _) } } # [doc = "DSI Host Clock Lane Timer Configuration Register."]
# [inline (always)]
pub const fn cltcr (self) -> crate :: common :: Reg < regs :: Cltcr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x98usize) as _) } } # [doc = "DSI Host Data Lane Timer Configuration Register."]
# [inline (always)]
pub const fn dltcr (self) -> crate :: common :: Reg < regs :: Dltcr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x9cusize) as _) } } # [doc = "DSI Host PHY Control Register."]
# [inline (always)]
pub const fn pctlr (self) -> crate :: common :: Reg < regs :: Pctlr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0xa0usize) as _) } } # [doc = "DSI Host PHY Configuration Register."]
# [inline (always)]
pub const fn pconfr (self) -> crate :: common :: Reg < regs :: Pconfr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0xa4usize) as _) } } # [doc = "DSI Host PHY ULPS Control Register."]
# [inline (always)]
pub const fn pucr (self) -> crate :: common :: Reg < regs :: Pucr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0xa8usize) as _) } } # [doc = "DSI Host PHY TX Triggers Configuration Register."]
# [inline (always)]
pub const fn pttcr (self) -> crate :: common :: Reg < regs :: Pttcr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0xacusize) as _) } } # [doc = "DSI Host PHY Status Register."]
# [inline (always)]
pub const fn psr (self) -> crate :: common :: Reg < regs :: Psr , crate :: common :: R > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0xb0usize) as _) } } # [doc = "DSI Host Interrupt & Status Register 0."]
# [inline (always)]
pub const fn isr0 (self) -> crate :: common :: Reg < regs :: Isr0 , crate :: common :: R > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0xbcusize) as _) } } # [doc = "DSI Host Interrupt & Status Register 1."]
# [inline (always)]
pub const fn isr1 (self) -> crate :: common :: Reg < regs :: Isr1 , crate :: common :: R > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0xc0usize) as _) } } # [doc = "DSI Host Interrupt Enable Register 0."]
# [inline (always)]
pub const fn ier0 (self) -> crate :: common :: Reg < regs :: Ier0 , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0xc4usize) as _) } } # [doc = "DSI Host Interrupt Enable Register 1."]
# [inline (always)]
pub const fn ier1 (self) -> crate :: common :: Reg < regs :: Ier1 , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0xc8usize) as _) } } # [doc = "DSI Host Force Interrupt Register 0."]
# [inline (always)]
pub const fn fir0 (self) -> crate :: common :: Reg < regs :: Fir0 , crate :: common :: W > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0xd8usize) as _) } } # [doc = "DSI Host Force Interrupt Register 1."]
# [inline (always)]
pub const fn fir1 (self) -> crate :: common :: Reg < regs :: Fir1 , crate :: common :: W > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0xdcusize) as _) } } # [doc = "DSI Host Video Shadow Control Register."]
# [inline (always)]
pub const fn vscr (self) -> crate :: common :: Reg < regs :: Vscr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x0100usize) as _) } } # [doc = "DSI Host LTDC Current VCID Register."]
# [inline (always)]
pub const fn lcvcidr (self) -> crate :: common :: Reg < regs :: Lcvcidr , crate :: common :: R > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x010cusize) as _) } } # [doc = "DSI Host LTDC Current Color Coding Register."]
# [inline (always)]
pub const fn lcccr (self) -> crate :: common :: Reg < regs :: Lcccr , crate :: common :: R > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x0110usize) as _) } } # [doc = "DSI Host Low-Power mode Current Configuration Register."]
# [inline (always)]
pub const fn lpmccr (self) -> crate :: common :: Reg < regs :: Lpmccr , crate :: common :: R > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x0118usize) as _) } } # [doc = "DSI Host Video mode Current Configuration Register."]
# [inline (always)]
pub const fn vmccr (self) -> crate :: common :: Reg < regs :: Vmccr , crate :: common :: R > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x0138usize) as _) } } # [doc = "DSI Host Video Packet Current Configuration Register."]
# [inline (always)]
pub const fn vpccr (self) -> crate :: common :: Reg < regs :: Vpccr , crate :: common :: R > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x013cusize) as _) } } # [doc = "DSI Host Video Chunks Current Configuration Register."]
# [inline (always)]
pub const fn vcccr (self) -> crate :: common :: Reg < regs :: Vcccr , crate :: common :: R > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x0140usize) as _) } } # [doc = "DSI Host Video Null Packet Current Configuration Register."]
# [inline (always)]
pub const fn vnpccr (self) -> crate :: common :: Reg < regs :: Vnpccr , crate :: common :: R > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x0144usize) as _) } } # [doc = "DSI Host Video HSA Current Configuration Register."]
# [inline (always)]
pub const fn vhsaccr (self) -> crate :: common :: Reg < regs :: Vhsaccr , crate :: common :: R > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x0148usize) as _) } } # [doc = "DSI Host Video HBP Current Configuration Register."]
# [inline (always)]
pub const fn vhbpccr (self) -> crate :: common :: Reg < regs :: Vhbpccr , crate :: common :: R > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x014cusize) as _) } } # [doc = "DSI Host Video Line Current Configuration Register."]
# [inline (always)]
pub const fn vlccr (self) -> crate :: common :: Reg < regs :: Vlccr , crate :: common :: R > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x0150usize) as _) } } # [doc = "DSI Host Video VSA Current Configuration Register."]
# [inline (always)]
pub const fn vvsaccr (self) -> crate :: common :: Reg < regs :: Vvsaccr , crate :: common :: R > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x0154usize) as _) } } # [doc = "DSI Host Video VBP Current Configuration Register."]
# [inline (always)]
pub const fn vvbpccr (self) -> crate :: common :: Reg < regs :: Vvbpccr , crate :: common :: R > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x0158usize) as _) } } # [doc = "DSI Host Video VFP Current Configuration Register."]
# [inline (always)]
pub const fn vvfpccr (self) -> crate :: common :: Reg < regs :: Vvfpccr , crate :: common :: R > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x015cusize) as _) } } # [doc = "DSI Host Video VA Current Configuration Register."]
# [inline (always)]
pub const fn vvaccr (self) -> crate :: common :: Reg < regs :: Vvaccr , crate :: common :: R > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x0160usize) as _) } } # [doc = "DSI Wrapper Configuration Register."]
# [inline (always)]
pub const fn wcfgr (self) -> crate :: common :: Reg < regs :: Wcfgr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x0400usize) as _) } } # [doc = "DSI Wrapper Control Register."]
# [inline (always)]
pub const fn wcr (self) -> crate :: common :: Reg < regs :: Wcr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x0404usize) as _) } } # [doc = "DSI Wrapper Interrupt Enable Register."]
# [inline (always)]
pub const fn wier (self) -> crate :: common :: Reg < regs :: Wier , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x0408usize) as _) } } # [doc = "DSI Wrapper Interrupt & Status Register."]
# [inline (always)]
pub const fn wisr (self) -> crate :: common :: Reg < regs :: Wisr , crate :: common :: R > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x040cusize) as _) } } # [doc = "DSI Wrapper Interrupt Flag Clear Register."]
# [inline (always)]
pub const fn wifcr (self) -> crate :: common :: Reg < regs :: Wifcr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x0410usize) as _) } } # [doc = "DSI Wrapper PHY Configuration Register 0."]
# [inline (always)]
pub const fn wpcr0 (self) -> crate :: common :: Reg < regs :: Wpcr0 , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x0418usize) as _) } } # [doc = "DSI Wrapper PHY Configuration Register 1."]
# [inline (always)]
pub const fn wpcr1 (self) -> crate :: common :: Reg < regs :: Wpcr1 , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x041cusize) as _) } } # [doc = "DSI Wrapper PHY Configuration Register 2."]
# [inline (always)]
pub const fn wpcr2 (self) -> crate :: common :: Reg < regs :: Wpcr2 , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x0420usize) as _) } } # [doc = "DSI Wrapper PHY Configuration Register 3."]
# [inline (always)]
pub const fn wpcr3 (self) -> crate :: common :: Reg < regs :: Wpcr3 , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x0424usize) as _) } } # [doc = "DSI Wrapper PHY Configuration Register 4."]
# [inline (always)]
pub const fn wpcr4 (self) -> crate :: common :: Reg < regs :: Wpcr4 , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x0428usize) as _) } } # [doc = "DSI Wrapper Regulator and PLL Control Register."]
# [inline (always)]
pub const fn wrpcr (self) -> crate :: common :: Reg < regs :: Wrpcr , crate :: common :: RW > { unsafe { crate :: common :: Reg :: from_ptr (self . ptr . add (0x0430usize) as _) } } } pub mod regs { # [doc = "DSI HOST Clock Control Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Ccr (pub u32) ; impl Ccr { # [doc = "TX Escape Clock Division."]
# [inline (always)]
pub const fn txeckdiv (& self) -> u8 { let val = (self . 0 >> 0usize) & 0xff ; val as u8 } # [doc = "TX Escape Clock Division."]
# [inline (always)]
pub fn set_txeckdiv (& mut self , val : u8) { self . 0 = (self . 0 & ! (0xff << 0usize)) | (((val as u32) & 0xff) << 0usize) ; } # [doc = "Timeout Clock Division."]
# [inline (always)]
pub const fn tockdiv (& self) -> u8 { let val = (self . 0 >> 8usize) & 0xff ; val as u8 } # [doc = "Timeout Clock Division."]
# [inline (always)]
pub fn set_tockdiv (& mut self , val : u8) { self . 0 = (self . 0 & ! (0xff << 8usize)) | (((val as u32) & 0xff) << 8usize) ; } } impl Default for Ccr { # [inline (always)]
fn default () -> Ccr { Ccr (0) } } # [doc = "DSI Host Clock Lane Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Clcr (pub u32) ; impl Clcr { # [doc = "D-PHY Clock Control."]
# [inline (always)]
pub const fn dpcc (& self) -> bool { let val = (self . 0 >> 0usize) & 0x01 ; val != 0 } # [doc = "D-PHY Clock Control."]
# [inline (always)]
pub fn set_dpcc (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 0usize)) | (((val as u32) & 0x01) << 0usize) ; } # [doc = "Automatic Clock lane Control."]
# [inline (always)]
pub const fn acr (& self) -> bool { let val = (self . 0 >> 1usize) & 0x01 ; val != 0 } # [doc = "Automatic Clock lane Control."]
# [inline (always)]
pub fn set_acr (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 1usize)) | (((val as u32) & 0x01) << 1usize) ; } } impl Default for Clcr { # [inline (always)]
fn default () -> Clcr { Clcr (0) } } # [doc = "DSI Host Clock Lane Timer Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Cltcr (pub u32) ; impl Cltcr { # [doc = "Low-Power to High-Speed Time."]
# [inline (always)]
pub const fn lp2hs_time (& self) -> u16 { let val = (self . 0 >> 0usize) & 0x03ff ; val as u16 } # [doc = "Low-Power to High-Speed Time."]
# [inline (always)]
pub fn set_lp2hs_time (& mut self , val : u16) { self . 0 = (self . 0 & ! (0x03ff << 0usize)) | (((val as u32) & 0x03ff) << 0usize) ; } # [doc = "High-Speed to Low-Power Time."]
# [inline (always)]
pub const fn hs2lp_time (& self) -> u16 { let val = (self . 0 >> 16usize) & 0x03ff ; val as u16 } # [doc = "High-Speed to Low-Power Time."]
# [inline (always)]
pub fn set_hs2lp_time (& mut self , val : u16) { self . 0 = (self . 0 & ! (0x03ff << 16usize)) | (((val as u32) & 0x03ff) << 16usize) ; } } impl Default for Cltcr { # [inline (always)]
fn default () -> Cltcr { Cltcr (0) } } # [doc = "DSI Host Command mode Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Cmcr (pub u32) ; impl Cmcr { # [doc = "Tearing Effect Acknowledge Request Enable."]
# [inline (always)]
pub const fn teare (& self) -> bool { let val = (self . 0 >> 0usize) & 0x01 ; val != 0 } # [doc = "Tearing Effect Acknowledge Request Enable."]
# [inline (always)]
pub fn set_teare (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 0usize)) | (((val as u32) & 0x01) << 0usize) ; } # [doc = "Acknowledge Request Enable."]
# [inline (always)]
pub const fn are (& self) -> bool { let val = (self . 0 >> 1usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Request Enable."]
# [inline (always)]
pub fn set_are (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 1usize)) | (((val as u32) & 0x01) << 1usize) ; } # [doc = "Generic Short Write Zero parameters Transmission."]
# [inline (always)]
pub const fn gsw0tx (& self) -> bool { let val = (self . 0 >> 8usize) & 0x01 ; val != 0 } # [doc = "Generic Short Write Zero parameters Transmission."]
# [inline (always)]
pub fn set_gsw0tx (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 8usize)) | (((val as u32) & 0x01) << 8usize) ; } # [doc = "Generic Short Write One parameters Transmission."]
# [inline (always)]
pub const fn gsw1tx (& self) -> bool { let val = (self . 0 >> 9usize) & 0x01 ; val != 0 } # [doc = "Generic Short Write One parameters Transmission."]
# [inline (always)]
pub fn set_gsw1tx (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 9usize)) | (((val as u32) & 0x01) << 9usize) ; } # [doc = "Generic Short Write Two parameters Transmission."]
# [inline (always)]
pub const fn gsw2tx (& self) -> bool { let val = (self . 0 >> 10usize) & 0x01 ; val != 0 } # [doc = "Generic Short Write Two parameters Transmission."]
# [inline (always)]
pub fn set_gsw2tx (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 10usize)) | (((val as u32) & 0x01) << 10usize) ; } # [doc = "Generic Short Read Zero parameters Transmission."]
# [inline (always)]
pub const fn gsr0tx (& self) -> bool { let val = (self . 0 >> 11usize) & 0x01 ; val != 0 } # [doc = "Generic Short Read Zero parameters Transmission."]
# [inline (always)]
pub fn set_gsr0tx (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 11usize)) | (((val as u32) & 0x01) << 11usize) ; } # [doc = "Generic Short Read One parameters Transmission."]
# [inline (always)]
pub const fn gsr1tx (& self) -> bool { let val = (self . 0 >> 12usize) & 0x01 ; val != 0 } # [doc = "Generic Short Read One parameters Transmission."]
# [inline (always)]
pub fn set_gsr1tx (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 12usize)) | (((val as u32) & 0x01) << 12usize) ; } # [doc = "Generic Short Read Two parameters Transmission."]
# [inline (always)]
pub const fn gsr2tx (& self) -> bool { let val = (self . 0 >> 13usize) & 0x01 ; val != 0 } # [doc = "Generic Short Read Two parameters Transmission."]
# [inline (always)]
pub fn set_gsr2tx (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 13usize)) | (((val as u32) & 0x01) << 13usize) ; } # [doc = "Generic Long Write Transmission."]
# [inline (always)]
pub const fn glwtx (& self) -> bool { let val = (self . 0 >> 14usize) & 0x01 ; val != 0 } # [doc = "Generic Long Write Transmission."]
# [inline (always)]
pub fn set_glwtx (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 14usize)) | (((val as u32) & 0x01) << 14usize) ; } # [doc = "DCS Short Write Zero parameter Transmission."]
# [inline (always)]
pub const fn dsw0tx (& self) -> bool { let val = (self . 0 >> 16usize) & 0x01 ; val != 0 } # [doc = "DCS Short Write Zero parameter Transmission."]
# [inline (always)]
pub fn set_dsw0tx (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 16usize)) | (((val as u32) & 0x01) << 16usize) ; } # [doc = "DCS Short Read One parameter Transmission."]
# [inline (always)]
pub const fn dsw1tx (& self) -> bool { let val = (self . 0 >> 17usize) & 0x01 ; val != 0 } # [doc = "DCS Short Read One parameter Transmission."]
# [inline (always)]
pub fn set_dsw1tx (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 17usize)) | (((val as u32) & 0x01) << 17usize) ; } # [doc = "DCS Short Read Zero parameter Transmission."]
# [inline (always)]
pub const fn dsr0tx (& self) -> bool { let val = (self . 0 >> 18usize) & 0x01 ; val != 0 } # [doc = "DCS Short Read Zero parameter Transmission."]
# [inline (always)]
pub fn set_dsr0tx (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 18usize)) | (((val as u32) & 0x01) << 18usize) ; } # [doc = "DCS Long Write Transmission."]
# [inline (always)]
pub const fn dlwtx (& self) -> bool { let val = (self . 0 >> 19usize) & 0x01 ; val != 0 } # [doc = "DCS Long Write Transmission."]
# [inline (always)]
pub fn set_dlwtx (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 19usize)) | (((val as u32) & 0x01) << 19usize) ; } # [doc = "Maximum Read Packet Size."]
# [inline (always)]
pub const fn mrdps (& self) -> bool { let val = (self . 0 >> 24usize) & 0x01 ; val != 0 } # [doc = "Maximum Read Packet Size."]
# [inline (always)]
pub fn set_mrdps (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 24usize)) | (((val as u32) & 0x01) << 24usize) ; } } impl Default for Cmcr { # [inline (always)]
fn default () -> Cmcr { Cmcr (0) } } # [doc = "DSI Host Control Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Cr (pub u32) ; impl Cr { # [doc = "Enable."]
# [inline (always)]
pub const fn en (& self) -> bool { let val = (self . 0 >> 0usize) & 0x01 ; val != 0 } # [doc = "Enable."]
# [inline (always)]
pub fn set_en (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 0usize)) | (((val as u32) & 0x01) << 0usize) ; } } impl Default for Cr { # [inline (always)]
fn default () -> Cr { Cr (0) } } # [doc = "DSI Host Data Lane Timer Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Dltcr (pub u32) ; impl Dltcr { # [doc = "Maximum Read Time."]
# [inline (always)]
pub const fn mrd_time (& self) -> u16 { let val = (self . 0 >> 0usize) & 0x7fff ; val as u16 } # [doc = "Maximum Read Time."]
# [inline (always)]
pub fn set_mrd_time (& mut self , val : u16) { self . 0 = (self . 0 & ! (0x7fff << 0usize)) | (((val as u32) & 0x7fff) << 0usize) ; } # [doc = "Low-Power To High-Speed Time."]
# [inline (always)]
pub const fn lp2hs_time (& self) -> u8 { let val = (self . 0 >> 16usize) & 0xff ; val as u8 } # [doc = "Low-Power To High-Speed Time."]
# [inline (always)]
pub fn set_lp2hs_time (& mut self , val : u8) { self . 0 = (self . 0 & ! (0xff << 16usize)) | (((val as u32) & 0xff) << 16usize) ; } # [doc = "High-Speed To Low-Power Time."]
# [inline (always)]
pub const fn hs2lp_time (& self) -> u8 { let val = (self . 0 >> 24usize) & 0xff ; val as u8 } # [doc = "High-Speed To Low-Power Time."]
# [inline (always)]
pub fn set_hs2lp_time (& mut self , val : u8) { self . 0 = (self . 0 & ! (0xff << 24usize)) | (((val as u32) & 0xff) << 24usize) ; } } impl Default for Dltcr { # [inline (always)]
fn default () -> Dltcr { Dltcr (0) } } # [doc = "DSI Host Force Interrupt Register 0."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Fir0 (pub u32) ; impl Fir0 { # [doc = "Force Acknowledge Error 0."]
# [inline (always)]
pub const fn fae0 (& self) -> bool { let val = (self . 0 >> 0usize) & 0x01 ; val != 0 } # [doc = "Force Acknowledge Error 0."]
# [inline (always)]
pub fn set_fae0 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 0usize)) | (((val as u32) & 0x01) << 0usize) ; } # [doc = "Force Acknowledge Error 1."]
# [inline (always)]
pub const fn fae1 (& self) -> bool { let val = (self . 0 >> 1usize) & 0x01 ; val != 0 } # [doc = "Force Acknowledge Error 1."]
# [inline (always)]
pub fn set_fae1 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 1usize)) | (((val as u32) & 0x01) << 1usize) ; } # [doc = "Force Acknowledge Error 2."]
# [inline (always)]
pub const fn fae2 (& self) -> bool { let val = (self . 0 >> 2usize) & 0x01 ; val != 0 } # [doc = "Force Acknowledge Error 2."]
# [inline (always)]
pub fn set_fae2 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 2usize)) | (((val as u32) & 0x01) << 2usize) ; } # [doc = "Force Acknowledge Error 3."]
# [inline (always)]
pub const fn fae3 (& self) -> bool { let val = (self . 0 >> 3usize) & 0x01 ; val != 0 } # [doc = "Force Acknowledge Error 3."]
# [inline (always)]
pub fn set_fae3 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 3usize)) | (((val as u32) & 0x01) << 3usize) ; } # [doc = "Force Acknowledge Error 4."]
# [inline (always)]
pub const fn fae4 (& self) -> bool { let val = (self . 0 >> 4usize) & 0x01 ; val != 0 } # [doc = "Force Acknowledge Error 4."]
# [inline (always)]
pub fn set_fae4 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 4usize)) | (((val as u32) & 0x01) << 4usize) ; } # [doc = "Force Acknowledge Error 5."]
# [inline (always)]
pub const fn fae5 (& self) -> bool { let val = (self . 0 >> 5usize) & 0x01 ; val != 0 } # [doc = "Force Acknowledge Error 5."]
# [inline (always)]
pub fn set_fae5 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 5usize)) | (((val as u32) & 0x01) << 5usize) ; } # [doc = "Force Acknowledge Error 6."]
# [inline (always)]
pub const fn fae6 (& self) -> bool { let val = (self . 0 >> 6usize) & 0x01 ; val != 0 } # [doc = "Force Acknowledge Error 6."]
# [inline (always)]
pub fn set_fae6 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 6usize)) | (((val as u32) & 0x01) << 6usize) ; } # [doc = "Force Acknowledge Error 7."]
# [inline (always)]
pub const fn fae7 (& self) -> bool { let val = (self . 0 >> 7usize) & 0x01 ; val != 0 } # [doc = "Force Acknowledge Error 7."]
# [inline (always)]
pub fn set_fae7 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 7usize)) | (((val as u32) & 0x01) << 7usize) ; } # [doc = "Force Acknowledge Error 8."]
# [inline (always)]
pub const fn fae8 (& self) -> bool { let val = (self . 0 >> 8usize) & 0x01 ; val != 0 } # [doc = "Force Acknowledge Error 8."]
# [inline (always)]
pub fn set_fae8 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 8usize)) | (((val as u32) & 0x01) << 8usize) ; } # [doc = "Force Acknowledge Error 9."]
# [inline (always)]
pub const fn fae9 (& self) -> bool { let val = (self . 0 >> 9usize) & 0x01 ; val != 0 } # [doc = "Force Acknowledge Error 9."]
# [inline (always)]
pub fn set_fae9 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 9usize)) | (((val as u32) & 0x01) << 9usize) ; } # [doc = "Force Acknowledge Error 10."]
# [inline (always)]
pub const fn fae10 (& self) -> bool { let val = (self . 0 >> 10usize) & 0x01 ; val != 0 } # [doc = "Force Acknowledge Error 10."]
# [inline (always)]
pub fn set_fae10 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 10usize)) | (((val as u32) & 0x01) << 10usize) ; } # [doc = "Force Acknowledge Error 11."]
# [inline (always)]
pub const fn fae11 (& self) -> bool { let val = (self . 0 >> 11usize) & 0x01 ; val != 0 } # [doc = "Force Acknowledge Error 11."]
# [inline (always)]
pub fn set_fae11 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 11usize)) | (((val as u32) & 0x01) << 11usize) ; } # [doc = "Force Acknowledge Error 12."]
# [inline (always)]
pub const fn fae12 (& self) -> bool { let val = (self . 0 >> 12usize) & 0x01 ; val != 0 } # [doc = "Force Acknowledge Error 12."]
# [inline (always)]
pub fn set_fae12 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 12usize)) | (((val as u32) & 0x01) << 12usize) ; } # [doc = "Force Acknowledge Error 13."]
# [inline (always)]
pub const fn fae13 (& self) -> bool { let val = (self . 0 >> 13usize) & 0x01 ; val != 0 } # [doc = "Force Acknowledge Error 13."]
# [inline (always)]
pub fn set_fae13 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 13usize)) | (((val as u32) & 0x01) << 13usize) ; } # [doc = "Force Acknowledge Error 14."]
# [inline (always)]
pub const fn fae14 (& self) -> bool { let val = (self . 0 >> 14usize) & 0x01 ; val != 0 } # [doc = "Force Acknowledge Error 14."]
# [inline (always)]
pub fn set_fae14 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 14usize)) | (((val as u32) & 0x01) << 14usize) ; } # [doc = "Force Acknowledge Error 15."]
# [inline (always)]
pub const fn fae15 (& self) -> bool { let val = (self . 0 >> 15usize) & 0x01 ; val != 0 } # [doc = "Force Acknowledge Error 15."]
# [inline (always)]
pub fn set_fae15 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 15usize)) | (((val as u32) & 0x01) << 15usize) ; } # [doc = "Force PHY Error 0."]
# [inline (always)]
pub const fn fpe0 (& self) -> bool { let val = (self . 0 >> 16usize) & 0x01 ; val != 0 } # [doc = "Force PHY Error 0."]
# [inline (always)]
pub fn set_fpe0 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 16usize)) | (((val as u32) & 0x01) << 16usize) ; } # [doc = "Force PHY Error 1."]
# [inline (always)]
pub const fn fpe1 (& self) -> bool { let val = (self . 0 >> 17usize) & 0x01 ; val != 0 } # [doc = "Force PHY Error 1."]
# [inline (always)]
pub fn set_fpe1 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 17usize)) | (((val as u32) & 0x01) << 17usize) ; } # [doc = "Force PHY Error 2."]
# [inline (always)]
pub const fn fpe2 (& self) -> bool { let val = (self . 0 >> 18usize) & 0x01 ; val != 0 } # [doc = "Force PHY Error 2."]
# [inline (always)]
pub fn set_fpe2 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 18usize)) | (((val as u32) & 0x01) << 18usize) ; } # [doc = "Force PHY Error 3."]
# [inline (always)]
pub const fn fpe3 (& self) -> bool { let val = (self . 0 >> 19usize) & 0x01 ; val != 0 } # [doc = "Force PHY Error 3."]
# [inline (always)]
pub fn set_fpe3 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 19usize)) | (((val as u32) & 0x01) << 19usize) ; } # [doc = "Force PHY Error 4."]
# [inline (always)]
pub const fn fpe4 (& self) -> bool { let val = (self . 0 >> 20usize) & 0x01 ; val != 0 } # [doc = "Force PHY Error 4."]
# [inline (always)]
pub fn set_fpe4 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 20usize)) | (((val as u32) & 0x01) << 20usize) ; } } impl Default for Fir0 { # [inline (always)]
fn default () -> Fir0 { Fir0 (0) } } # [doc = "DSI Host Force Interrupt Register 1."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Fir1 (pub u32) ; impl Fir1 { # [doc = "Force Timeout High-Speed Transmission."]
# [inline (always)]
pub const fn ftohstx (& self) -> bool { let val = (self . 0 >> 0usize) & 0x01 ; val != 0 } # [doc = "Force Timeout High-Speed Transmission."]
# [inline (always)]
pub fn set_ftohstx (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 0usize)) | (((val as u32) & 0x01) << 0usize) ; } # [doc = "Force Timeout Low-Power Reception."]
# [inline (always)]
pub const fn ftolprx (& self) -> bool { let val = (self . 0 >> 1usize) & 0x01 ; val != 0 } # [doc = "Force Timeout Low-Power Reception."]
# [inline (always)]
pub fn set_ftolprx (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 1usize)) | (((val as u32) & 0x01) << 1usize) ; } # [doc = "Force ECC Single-bit Error."]
# [inline (always)]
pub const fn feccse (& self) -> bool { let val = (self . 0 >> 2usize) & 0x01 ; val != 0 } # [doc = "Force ECC Single-bit Error."]
# [inline (always)]
pub fn set_feccse (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 2usize)) | (((val as u32) & 0x01) << 2usize) ; } # [doc = "Force ECC Multi-bit Error."]
# [inline (always)]
pub const fn feccme (& self) -> bool { let val = (self . 0 >> 3usize) & 0x01 ; val != 0 } # [doc = "Force ECC Multi-bit Error."]
# [inline (always)]
pub fn set_feccme (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 3usize)) | (((val as u32) & 0x01) << 3usize) ; } # [doc = "Force CRC Error."]
# [inline (always)]
pub const fn fcrce (& self) -> bool { let val = (self . 0 >> 4usize) & 0x01 ; val != 0 } # [doc = "Force CRC Error."]
# [inline (always)]
pub fn set_fcrce (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 4usize)) | (((val as u32) & 0x01) << 4usize) ; } # [doc = "Force Packet Size Error."]
# [inline (always)]
pub const fn fpse (& self) -> bool { let val = (self . 0 >> 5usize) & 0x01 ; val != 0 } # [doc = "Force Packet Size Error."]
# [inline (always)]
pub fn set_fpse (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 5usize)) | (((val as u32) & 0x01) << 5usize) ; } # [doc = "Force EoTp Error."]
# [inline (always)]
pub const fn feotpe (& self) -> bool { let val = (self . 0 >> 6usize) & 0x01 ; val != 0 } # [doc = "Force EoTp Error."]
# [inline (always)]
pub fn set_feotpe (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 6usize)) | (((val as u32) & 0x01) << 6usize) ; } # [doc = "Force LTDC Payload Write Error."]
# [inline (always)]
pub const fn flpwre (& self) -> bool { let val = (self . 0 >> 7usize) & 0x01 ; val != 0 } # [doc = "Force LTDC Payload Write Error."]
# [inline (always)]
pub fn set_flpwre (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 7usize)) | (((val as u32) & 0x01) << 7usize) ; } # [doc = "Force Generic Command Write Error."]
# [inline (always)]
pub const fn fgcwre (& self) -> bool { let val = (self . 0 >> 8usize) & 0x01 ; val != 0 } # [doc = "Force Generic Command Write Error."]
# [inline (always)]
pub fn set_fgcwre (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 8usize)) | (((val as u32) & 0x01) << 8usize) ; } # [doc = "Force Generic Payload Write Error."]
# [inline (always)]
pub const fn fgpwre (& self) -> bool { let val = (self . 0 >> 9usize) & 0x01 ; val != 0 } # [doc = "Force Generic Payload Write Error."]
# [inline (always)]
pub fn set_fgpwre (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 9usize)) | (((val as u32) & 0x01) << 9usize) ; } # [doc = "Force Generic Payload Transmit Error."]
# [inline (always)]
pub const fn fgptxe (& self) -> bool { let val = (self . 0 >> 10usize) & 0x01 ; val != 0 } # [doc = "Force Generic Payload Transmit Error."]
# [inline (always)]
pub fn set_fgptxe (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 10usize)) | (((val as u32) & 0x01) << 10usize) ; } # [doc = "Force Generic Payload Read Error."]
# [inline (always)]
pub const fn fgprde (& self) -> bool { let val = (self . 0 >> 11usize) & 0x01 ; val != 0 } # [doc = "Force Generic Payload Read Error."]
# [inline (always)]
pub fn set_fgprde (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 11usize)) | (((val as u32) & 0x01) << 11usize) ; } # [doc = "Force Generic Payload Receive Error."]
# [inline (always)]
pub const fn fgprxe (& self) -> bool { let val = (self . 0 >> 12usize) & 0x01 ; val != 0 } # [doc = "Force Generic Payload Receive Error."]
# [inline (always)]
pub fn set_fgprxe (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 12usize)) | (((val as u32) & 0x01) << 12usize) ; } } impl Default for Fir1 { # [inline (always)]
fn default () -> Fir1 { Fir1 (0) } } # [doc = "DSI Host Generic Header Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Ghcr (pub u32) ; impl Ghcr { # [doc = "Type."]
# [inline (always)]
pub const fn dt (& self) -> u8 { let val = (self . 0 >> 0usize) & 0x3f ; val as u8 } # [doc = "Type."]
# [inline (always)]
pub fn set_dt (& mut self , val : u8) { self . 0 = (self . 0 & ! (0x3f << 0usize)) | (((val as u32) & 0x3f) << 0usize) ; } # [doc = "Channel."]
# [inline (always)]
pub const fn vcid (& self) -> u8 { let val = (self . 0 >> 6usize) & 0x03 ; val as u8 } # [doc = "Channel."]
# [inline (always)]
pub fn set_vcid (& mut self , val : u8) { self . 0 = (self . 0 & ! (0x03 << 6usize)) | (((val as u32) & 0x03) << 6usize) ; } # [doc = "WordCount LSB."]
# [inline (always)]
pub const fn wclsb (& self) -> u8 { let val = (self . 0 >> 8usize) & 0xff ; val as u8 } # [doc = "WordCount LSB."]
# [inline (always)]
pub fn set_wclsb (& mut self , val : u8) { self . 0 = (self . 0 & ! (0xff << 8usize)) | (((val as u32) & 0xff) << 8usize) ; } # [doc = "WordCount MSB."]
# [inline (always)]
pub const fn wcmsb (& self) -> u8 { let val = (self . 0 >> 16usize) & 0xff ; val as u8 } # [doc = "WordCount MSB."]
# [inline (always)]
pub fn set_wcmsb (& mut self , val : u8) { self . 0 = (self . 0 & ! (0xff << 16usize)) | (((val as u32) & 0xff) << 16usize) ; } } impl Default for Ghcr { # [inline (always)]
fn default () -> Ghcr { Ghcr (0) } } # [doc = "DSI Host Generic Payload Data Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Gpdr (pub u32) ; impl Gpdr { # [doc = "Payload Byte 1."]
# [inline (always)]
pub const fn data1 (& self) -> u8 { let val = (self . 0 >> 0usize) & 0xff ; val as u8 } # [doc = "Payload Byte 1."]
# [inline (always)]
pub fn set_data1 (& mut self , val : u8) { self . 0 = (self . 0 & ! (0xff << 0usize)) | (((val as u32) & 0xff) << 0usize) ; } # [doc = "Payload Byte 2."]
# [inline (always)]
pub const fn data2 (& self) -> u8 { let val = (self . 0 >> 8usize) & 0xff ; val as u8 } # [doc = "Payload Byte 2."]
# [inline (always)]
pub fn set_data2 (& mut self , val : u8) { self . 0 = (self . 0 & ! (0xff << 8usize)) | (((val as u32) & 0xff) << 8usize) ; } # [doc = "Payload Byte 3."]
# [inline (always)]
pub const fn data3 (& self) -> u8 { let val = (self . 0 >> 16usize) & 0xff ; val as u8 } # [doc = "Payload Byte 3."]
# [inline (always)]
pub fn set_data3 (& mut self , val : u8) { self . 0 = (self . 0 & ! (0xff << 16usize)) | (((val as u32) & 0xff) << 16usize) ; } # [doc = "Payload Byte 4."]
# [inline (always)]
pub const fn data4 (& self) -> u8 { let val = (self . 0 >> 24usize) & 0xff ; val as u8 } # [doc = "Payload Byte 4."]
# [inline (always)]
pub fn set_data4 (& mut self , val : u8) { self . 0 = (self . 0 & ! (0xff << 24usize)) | (((val as u32) & 0xff) << 24usize) ; } } impl Default for Gpdr { # [inline (always)]
fn default () -> Gpdr { Gpdr (0) } } # [doc = "DSI Host Generic Packet Status Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Gpsr (pub u32) ; impl Gpsr { # [doc = "Command FIFO Empty."]
# [inline (always)]
pub const fn cmdfe (& self) -> bool { let val = (self . 0 >> 0usize) & 0x01 ; val != 0 } # [doc = "Command FIFO Empty."]
# [inline (always)]
pub fn set_cmdfe (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 0usize)) | (((val as u32) & 0x01) << 0usize) ; } # [doc = "Command FIFO Full."]
# [inline (always)]
pub const fn cmdff (& self) -> bool { let val = (self . 0 >> 1usize) & 0x01 ; val != 0 } # [doc = "Command FIFO Full."]
# [inline (always)]
pub fn set_cmdff (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 1usize)) | (((val as u32) & 0x01) << 1usize) ; } # [doc = "Payload Write FIFO Empty."]
# [inline (always)]
pub const fn pwrfe (& self) -> bool { let val = (self . 0 >> 2usize) & 0x01 ; val != 0 } # [doc = "Payload Write FIFO Empty."]
# [inline (always)]
pub fn set_pwrfe (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 2usize)) | (((val as u32) & 0x01) << 2usize) ; } # [doc = "Payload Write FIFO Full."]
# [inline (always)]
pub const fn pwrff (& self) -> bool { let val = (self . 0 >> 3usize) & 0x01 ; val != 0 } # [doc = "Payload Write FIFO Full."]
# [inline (always)]
pub fn set_pwrff (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 3usize)) | (((val as u32) & 0x01) << 3usize) ; } # [doc = "Payload Read FIFO Empty."]
# [inline (always)]
pub const fn prdfe (& self) -> bool { let val = (self . 0 >> 4usize) & 0x01 ; val != 0 } # [doc = "Payload Read FIFO Empty."]
# [inline (always)]
pub fn set_prdfe (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 4usize)) | (((val as u32) & 0x01) << 4usize) ; } # [doc = "Payload Read FIFO Full."]
# [inline (always)]
pub const fn prdff (& self) -> bool { let val = (self . 0 >> 5usize) & 0x01 ; val != 0 } # [doc = "Payload Read FIFO Full."]
# [inline (always)]
pub fn set_prdff (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 5usize)) | (((val as u32) & 0x01) << 5usize) ; } # [doc = "Read Command Busy."]
# [inline (always)]
pub const fn rcb (& self) -> bool { let val = (self . 0 >> 6usize) & 0x01 ; val != 0 } # [doc = "Read Command Busy."]
# [inline (always)]
pub fn set_rcb (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 6usize)) | (((val as u32) & 0x01) << 6usize) ; } } impl Default for Gpsr { # [inline (always)]
fn default () -> Gpsr { Gpsr (0) } } # [doc = "DSI Host Generic VCID Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Gvcidr (pub u32) ; impl Gvcidr { # [doc = "Virtual Channel ID."]
# [inline (always)]
pub const fn vcid (& self) -> u8 { let val = (self . 0 >> 0usize) & 0x03 ; val as u8 } # [doc = "Virtual Channel ID."]
# [inline (always)]
pub fn set_vcid (& mut self , val : u8) { self . 0 = (self . 0 & ! (0x03 << 0usize)) | (((val as u32) & 0x03) << 0usize) ; } } impl Default for Gvcidr { # [inline (always)]
fn default () -> Gvcidr { Gvcidr (0) } } # [doc = "DSI Host Interrupt Enable Register 0."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Ier0 (pub u32) ; impl Ier0 { # [doc = "Acknowledge Error 0 Interrupt Enable."]
# [inline (always)]
pub const fn ae0ie (& self) -> bool { let val = (self . 0 >> 0usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Error 0 Interrupt Enable."]
# [inline (always)]
pub fn set_ae0ie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 0usize)) | (((val as u32) & 0x01) << 0usize) ; } # [doc = "Acknowledge Error 1 Interrupt Enable."]
# [inline (always)]
pub const fn ae1ie (& self) -> bool { let val = (self . 0 >> 1usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Error 1 Interrupt Enable."]
# [inline (always)]
pub fn set_ae1ie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 1usize)) | (((val as u32) & 0x01) << 1usize) ; } # [doc = "Acknowledge Error 2 Interrupt Enable."]
# [inline (always)]
pub const fn ae2ie (& self) -> bool { let val = (self . 0 >> 2usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Error 2 Interrupt Enable."]
# [inline (always)]
pub fn set_ae2ie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 2usize)) | (((val as u32) & 0x01) << 2usize) ; } # [doc = "Acknowledge Error 3 Interrupt Enable."]
# [inline (always)]
pub const fn ae3ie (& self) -> bool { let val = (self . 0 >> 3usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Error 3 Interrupt Enable."]
# [inline (always)]
pub fn set_ae3ie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 3usize)) | (((val as u32) & 0x01) << 3usize) ; } # [doc = "Acknowledge Error 4 Interrupt Enable."]
# [inline (always)]
pub const fn ae4ie (& self) -> bool { let val = (self . 0 >> 4usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Error 4 Interrupt Enable."]
# [inline (always)]
pub fn set_ae4ie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 4usize)) | (((val as u32) & 0x01) << 4usize) ; } # [doc = "Acknowledge Error 5 Interrupt Enable."]
# [inline (always)]
pub const fn ae5ie (& self) -> bool { let val = (self . 0 >> 5usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Error 5 Interrupt Enable."]
# [inline (always)]
pub fn set_ae5ie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 5usize)) | (((val as u32) & 0x01) << 5usize) ; } # [doc = "Acknowledge Error 6 Interrupt Enable."]
# [inline (always)]
pub const fn ae6ie (& self) -> bool { let val = (self . 0 >> 6usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Error 6 Interrupt Enable."]
# [inline (always)]
pub fn set_ae6ie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 6usize)) | (((val as u32) & 0x01) << 6usize) ; } # [doc = "Acknowledge Error 7 Interrupt Enable."]
# [inline (always)]
pub const fn ae7ie (& self) -> bool { let val = (self . 0 >> 7usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Error 7 Interrupt Enable."]
# [inline (always)]
pub fn set_ae7ie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 7usize)) | (((val as u32) & 0x01) << 7usize) ; } # [doc = "Acknowledge Error 8 Interrupt Enable."]
# [inline (always)]
pub const fn ae8ie (& self) -> bool { let val = (self . 0 >> 8usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Error 8 Interrupt Enable."]
# [inline (always)]
pub fn set_ae8ie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 8usize)) | (((val as u32) & 0x01) << 8usize) ; } # [doc = "Acknowledge Error 9 Interrupt Enable."]
# [inline (always)]
pub const fn ae9ie (& self) -> bool { let val = (self . 0 >> 9usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Error 9 Interrupt Enable."]
# [inline (always)]
pub fn set_ae9ie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 9usize)) | (((val as u32) & 0x01) << 9usize) ; } # [doc = "Acknowledge Error 10 Interrupt Enable."]
# [inline (always)]
pub const fn ae10ie (& self) -> bool { let val = (self . 0 >> 10usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Error 10 Interrupt Enable."]
# [inline (always)]
pub fn set_ae10ie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 10usize)) | (((val as u32) & 0x01) << 10usize) ; } # [doc = "Acknowledge Error 11 Interrupt Enable."]
# [inline (always)]
pub const fn ae11ie (& self) -> bool { let val = (self . 0 >> 11usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Error 11 Interrupt Enable."]
# [inline (always)]
pub fn set_ae11ie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 11usize)) | (((val as u32) & 0x01) << 11usize) ; } # [doc = "Acknowledge Error 12 Interrupt Enable."]
# [inline (always)]
pub const fn ae12ie (& self) -> bool { let val = (self . 0 >> 12usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Error 12 Interrupt Enable."]
# [inline (always)]
pub fn set_ae12ie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 12usize)) | (((val as u32) & 0x01) << 12usize) ; } # [doc = "Acknowledge Error 13 Interrupt Enable."]
# [inline (always)]
pub const fn ae13ie (& self) -> bool { let val = (self . 0 >> 13usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Error 13 Interrupt Enable."]
# [inline (always)]
pub fn set_ae13ie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 13usize)) | (((val as u32) & 0x01) << 13usize) ; } # [doc = "Acknowledge Error 14 Interrupt Enable."]
# [inline (always)]
pub const fn ae14ie (& self) -> bool { let val = (self . 0 >> 14usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Error 14 Interrupt Enable."]
# [inline (always)]
pub fn set_ae14ie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 14usize)) | (((val as u32) & 0x01) << 14usize) ; } # [doc = "Acknowledge Error 15 Interrupt Enable."]
# [inline (always)]
pub const fn ae15ie (& self) -> bool { let val = (self . 0 >> 15usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Error 15 Interrupt Enable."]
# [inline (always)]
pub fn set_ae15ie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 15usize)) | (((val as u32) & 0x01) << 15usize) ; } # [doc = "PHY Error 0 Interrupt Enable."]
# [inline (always)]
pub const fn pe0ie (& self) -> bool { let val = (self . 0 >> 16usize) & 0x01 ; val != 0 } # [doc = "PHY Error 0 Interrupt Enable."]
# [inline (always)]
pub fn set_pe0ie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 16usize)) | (((val as u32) & 0x01) << 16usize) ; } # [doc = "PHY Error 1 Interrupt Enable."]
# [inline (always)]
pub const fn pe1ie (& self) -> bool { let val = (self . 0 >> 17usize) & 0x01 ; val != 0 } # [doc = "PHY Error 1 Interrupt Enable."]
# [inline (always)]
pub fn set_pe1ie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 17usize)) | (((val as u32) & 0x01) << 17usize) ; } # [doc = "PHY Error 2 Interrupt Enable."]
# [inline (always)]
pub const fn pe2ie (& self) -> bool { let val = (self . 0 >> 18usize) & 0x01 ; val != 0 } # [doc = "PHY Error 2 Interrupt Enable."]
# [inline (always)]
pub fn set_pe2ie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 18usize)) | (((val as u32) & 0x01) << 18usize) ; } # [doc = "PHY Error 3 Interrupt Enable."]
# [inline (always)]
pub const fn pe3ie (& self) -> bool { let val = (self . 0 >> 19usize) & 0x01 ; val != 0 } # [doc = "PHY Error 3 Interrupt Enable."]
# [inline (always)]
pub fn set_pe3ie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 19usize)) | (((val as u32) & 0x01) << 19usize) ; } # [doc = "PHY Error 4 Interrupt Enable."]
# [inline (always)]
pub const fn pe4ie (& self) -> bool { let val = (self . 0 >> 20usize) & 0x01 ; val != 0 } # [doc = "PHY Error 4 Interrupt Enable."]
# [inline (always)]
pub fn set_pe4ie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 20usize)) | (((val as u32) & 0x01) << 20usize) ; } } impl Default for Ier0 { # [inline (always)]
fn default () -> Ier0 { Ier0 (0) } } # [doc = "DSI Host Interrupt Enable Register 1."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Ier1 (pub u32) ; impl Ier1 { # [doc = "Timeout High-Speed Transmission Interrupt Enable."]
# [inline (always)]
pub const fn tohstxie (& self) -> bool { let val = (self . 0 >> 0usize) & 0x01 ; val != 0 } # [doc = "Timeout High-Speed Transmission Interrupt Enable."]
# [inline (always)]
pub fn set_tohstxie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 0usize)) | (((val as u32) & 0x01) << 0usize) ; } # [doc = "Timeout Low-Power Reception Interrupt Enable."]
# [inline (always)]
pub const fn tolprxie (& self) -> bool { let val = (self . 0 >> 1usize) & 0x01 ; val != 0 } # [doc = "Timeout Low-Power Reception Interrupt Enable."]
# [inline (always)]
pub fn set_tolprxie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 1usize)) | (((val as u32) & 0x01) << 1usize) ; } # [doc = "ECC Single-bit Error Interrupt Enable."]
# [inline (always)]
pub const fn eccseie (& self) -> bool { let val = (self . 0 >> 2usize) & 0x01 ; val != 0 } # [doc = "ECC Single-bit Error Interrupt Enable."]
# [inline (always)]
pub fn set_eccseie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 2usize)) | (((val as u32) & 0x01) << 2usize) ; } # [doc = "ECC Multi-bit Error Interrupt Enable."]
# [inline (always)]
pub const fn eccmeie (& self) -> bool { let val = (self . 0 >> 3usize) & 0x01 ; val != 0 } # [doc = "ECC Multi-bit Error Interrupt Enable."]
# [inline (always)]
pub fn set_eccmeie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 3usize)) | (((val as u32) & 0x01) << 3usize) ; } # [doc = "CRC Error Interrupt Enable."]
# [inline (always)]
pub const fn crceie (& self) -> bool { let val = (self . 0 >> 4usize) & 0x01 ; val != 0 } # [doc = "CRC Error Interrupt Enable."]
# [inline (always)]
pub fn set_crceie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 4usize)) | (((val as u32) & 0x01) << 4usize) ; } # [doc = "Packet Size Error Interrupt Enable."]
# [inline (always)]
pub const fn pseie (& self) -> bool { let val = (self . 0 >> 5usize) & 0x01 ; val != 0 } # [doc = "Packet Size Error Interrupt Enable."]
# [inline (always)]
pub fn set_pseie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 5usize)) | (((val as u32) & 0x01) << 5usize) ; } # [doc = "EoTp Error Interrupt Enable."]
# [inline (always)]
pub const fn eotpeie (& self) -> bool { let val = (self . 0 >> 6usize) & 0x01 ; val != 0 } # [doc = "EoTp Error Interrupt Enable."]
# [inline (always)]
pub fn set_eotpeie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 6usize)) | (((val as u32) & 0x01) << 6usize) ; } # [doc = "LTDC Payload Write Error Interrupt Enable."]
# [inline (always)]
pub const fn lpwreie (& self) -> bool { let val = (self . 0 >> 7usize) & 0x01 ; val != 0 } # [doc = "LTDC Payload Write Error Interrupt Enable."]
# [inline (always)]
pub fn set_lpwreie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 7usize)) | (((val as u32) & 0x01) << 7usize) ; } # [doc = "Generic Command Write Error Interrupt Enable."]
# [inline (always)]
pub const fn gcwreie (& self) -> bool { let val = (self . 0 >> 8usize) & 0x01 ; val != 0 } # [doc = "Generic Command Write Error Interrupt Enable."]
# [inline (always)]
pub fn set_gcwreie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 8usize)) | (((val as u32) & 0x01) << 8usize) ; } # [doc = "Generic Payload Write Error Interrupt Enable."]
# [inline (always)]
pub const fn gpwreie (& self) -> bool { let val = (self . 0 >> 9usize) & 0x01 ; val != 0 } # [doc = "Generic Payload Write Error Interrupt Enable."]
# [inline (always)]
pub fn set_gpwreie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 9usize)) | (((val as u32) & 0x01) << 9usize) ; } # [doc = "Generic Payload Transmit Error Interrupt Enable."]
# [inline (always)]
pub const fn gptxeie (& self) -> bool { let val = (self . 0 >> 10usize) & 0x01 ; val != 0 } # [doc = "Generic Payload Transmit Error Interrupt Enable."]
# [inline (always)]
pub fn set_gptxeie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 10usize)) | (((val as u32) & 0x01) << 10usize) ; } # [doc = "Generic Payload Read Error Interrupt Enable."]
# [inline (always)]
pub const fn gprdeie (& self) -> bool { let val = (self . 0 >> 11usize) & 0x01 ; val != 0 } # [doc = "Generic Payload Read Error Interrupt Enable."]
# [inline (always)]
pub fn set_gprdeie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 11usize)) | (((val as u32) & 0x01) << 11usize) ; } # [doc = "Generic Payload Receive Error Interrupt Enable."]
# [inline (always)]
pub const fn gprxeie (& self) -> bool { let val = (self . 0 >> 12usize) & 0x01 ; val != 0 } # [doc = "Generic Payload Receive Error Interrupt Enable."]
# [inline (always)]
pub fn set_gprxeie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 12usize)) | (((val as u32) & 0x01) << 12usize) ; } } impl Default for Ier1 { # [inline (always)]
fn default () -> Ier1 { Ier1 (0) } } # [doc = "DSI Host Interrupt & Status Register 0."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Isr0 (pub u32) ; impl Isr0 { # [doc = "Acknowledge Error 0."]
# [inline (always)]
pub const fn ae0 (& self) -> bool { let val = (self . 0 >> 0usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Error 0."]
# [inline (always)]
pub fn set_ae0 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 0usize)) | (((val as u32) & 0x01) << 0usize) ; } # [doc = "Acknowledge Error 1."]
# [inline (always)]
pub const fn ae1 (& self) -> bool { let val = (self . 0 >> 1usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Error 1."]
# [inline (always)]
pub fn set_ae1 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 1usize)) | (((val as u32) & 0x01) << 1usize) ; } # [doc = "Acknowledge Error 2."]
# [inline (always)]
pub const fn ae2 (& self) -> bool { let val = (self . 0 >> 2usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Error 2."]
# [inline (always)]
pub fn set_ae2 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 2usize)) | (((val as u32) & 0x01) << 2usize) ; } # [doc = "Acknowledge Error 3."]
# [inline (always)]
pub const fn ae3 (& self) -> bool { let val = (self . 0 >> 3usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Error 3."]
# [inline (always)]
pub fn set_ae3 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 3usize)) | (((val as u32) & 0x01) << 3usize) ; } # [doc = "Acknowledge Error 4."]
# [inline (always)]
pub const fn ae4 (& self) -> bool { let val = (self . 0 >> 4usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Error 4."]
# [inline (always)]
pub fn set_ae4 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 4usize)) | (((val as u32) & 0x01) << 4usize) ; } # [doc = "Acknowledge Error 5."]
# [inline (always)]
pub const fn ae5 (& self) -> bool { let val = (self . 0 >> 5usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Error 5."]
# [inline (always)]
pub fn set_ae5 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 5usize)) | (((val as u32) & 0x01) << 5usize) ; } # [doc = "Acknowledge Error 6."]
# [inline (always)]
pub const fn ae6 (& self) -> bool { let val = (self . 0 >> 6usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Error 6."]
# [inline (always)]
pub fn set_ae6 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 6usize)) | (((val as u32) & 0x01) << 6usize) ; } # [doc = "Acknowledge Error 7."]
# [inline (always)]
pub const fn ae7 (& self) -> bool { let val = (self . 0 >> 7usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Error 7."]
# [inline (always)]
pub fn set_ae7 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 7usize)) | (((val as u32) & 0x01) << 7usize) ; } # [doc = "Acknowledge Error 8."]
# [inline (always)]
pub const fn ae8 (& self) -> bool { let val = (self . 0 >> 8usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Error 8."]
# [inline (always)]
pub fn set_ae8 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 8usize)) | (((val as u32) & 0x01) << 8usize) ; } # [doc = "Acknowledge Error 9."]
# [inline (always)]
pub const fn ae9 (& self) -> bool { let val = (self . 0 >> 9usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Error 9."]
# [inline (always)]
pub fn set_ae9 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 9usize)) | (((val as u32) & 0x01) << 9usize) ; } # [doc = "Acknowledge Error 10."]
# [inline (always)]
pub const fn ae10 (& self) -> bool { let val = (self . 0 >> 10usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Error 10."]
# [inline (always)]
pub fn set_ae10 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 10usize)) | (((val as u32) & 0x01) << 10usize) ; } # [doc = "Acknowledge Error 11."]
# [inline (always)]
pub const fn ae11 (& self) -> bool { let val = (self . 0 >> 11usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Error 11."]
# [inline (always)]
pub fn set_ae11 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 11usize)) | (((val as u32) & 0x01) << 11usize) ; } # [doc = "Acknowledge Error 12."]
# [inline (always)]
pub const fn ae12 (& self) -> bool { let val = (self . 0 >> 12usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Error 12."]
# [inline (always)]
pub fn set_ae12 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 12usize)) | (((val as u32) & 0x01) << 12usize) ; } # [doc = "Acknowledge Error 13."]
# [inline (always)]
pub const fn ae13 (& self) -> bool { let val = (self . 0 >> 13usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Error 13."]
# [inline (always)]
pub fn set_ae13 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 13usize)) | (((val as u32) & 0x01) << 13usize) ; } # [doc = "Acknowledge Error 14."]
# [inline (always)]
pub const fn ae14 (& self) -> bool { let val = (self . 0 >> 14usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Error 14."]
# [inline (always)]
pub fn set_ae14 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 14usize)) | (((val as u32) & 0x01) << 14usize) ; } # [doc = "Acknowledge Error 15."]
# [inline (always)]
pub const fn ae15 (& self) -> bool { let val = (self . 0 >> 15usize) & 0x01 ; val != 0 } # [doc = "Acknowledge Error 15."]
# [inline (always)]
pub fn set_ae15 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 15usize)) | (((val as u32) & 0x01) << 15usize) ; } # [doc = "PHY Error 0."]
# [inline (always)]
pub const fn pe0 (& self) -> bool { let val = (self . 0 >> 16usize) & 0x01 ; val != 0 } # [doc = "PHY Error 0."]
# [inline (always)]
pub fn set_pe0 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 16usize)) | (((val as u32) & 0x01) << 16usize) ; } # [doc = "PHY Error 1."]
# [inline (always)]
pub const fn pe1 (& self) -> bool { let val = (self . 0 >> 17usize) & 0x01 ; val != 0 } # [doc = "PHY Error 1."]
# [inline (always)]
pub fn set_pe1 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 17usize)) | (((val as u32) & 0x01) << 17usize) ; } # [doc = "PHY Error 2."]
# [inline (always)]
pub const fn pe2 (& self) -> bool { let val = (self . 0 >> 18usize) & 0x01 ; val != 0 } # [doc = "PHY Error 2."]
# [inline (always)]
pub fn set_pe2 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 18usize)) | (((val as u32) & 0x01) << 18usize) ; } # [doc = "PHY Error 3."]
# [inline (always)]
pub const fn pe3 (& self) -> bool { let val = (self . 0 >> 19usize) & 0x01 ; val != 0 } # [doc = "PHY Error 3."]
# [inline (always)]
pub fn set_pe3 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 19usize)) | (((val as u32) & 0x01) << 19usize) ; } # [doc = "PHY Error 4."]
# [inline (always)]
pub const fn pe4 (& self) -> bool { let val = (self . 0 >> 20usize) & 0x01 ; val != 0 } # [doc = "PHY Error 4."]
# [inline (always)]
pub fn set_pe4 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 20usize)) | (((val as u32) & 0x01) << 20usize) ; } } impl Default for Isr0 { # [inline (always)]
fn default () -> Isr0 { Isr0 (0) } } # [doc = "DSI Host Interrupt & Status Register 1."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Isr1 (pub u32) ; impl Isr1 { # [doc = "Timeout High-Speed Transmission."]
# [inline (always)]
pub const fn tohstx (& self) -> bool { let val = (self . 0 >> 0usize) & 0x01 ; val != 0 } # [doc = "Timeout High-Speed Transmission."]
# [inline (always)]
pub fn set_tohstx (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 0usize)) | (((val as u32) & 0x01) << 0usize) ; } # [doc = "Timeout Low-Power Reception."]
# [inline (always)]
pub const fn tolprx (& self) -> bool { let val = (self . 0 >> 1usize) & 0x01 ; val != 0 } # [doc = "Timeout Low-Power Reception."]
# [inline (always)]
pub fn set_tolprx (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 1usize)) | (((val as u32) & 0x01) << 1usize) ; } # [doc = "ECC Single-bit Error."]
# [inline (always)]
pub const fn eccse (& self) -> bool { let val = (self . 0 >> 2usize) & 0x01 ; val != 0 } # [doc = "ECC Single-bit Error."]
# [inline (always)]
pub fn set_eccse (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 2usize)) | (((val as u32) & 0x01) << 2usize) ; } # [doc = "ECC Multi-bit Error."]
# [inline (always)]
pub const fn eccme (& self) -> bool { let val = (self . 0 >> 3usize) & 0x01 ; val != 0 } # [doc = "ECC Multi-bit Error."]
# [inline (always)]
pub fn set_eccme (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 3usize)) | (((val as u32) & 0x01) << 3usize) ; } # [doc = "CRC Error."]
# [inline (always)]
pub const fn crce (& self) -> bool { let val = (self . 0 >> 4usize) & 0x01 ; val != 0 } # [doc = "CRC Error."]
# [inline (always)]
pub fn set_crce (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 4usize)) | (((val as u32) & 0x01) << 4usize) ; } # [doc = "Packet Size Error."]
# [inline (always)]
pub const fn pse (& self) -> bool { let val = (self . 0 >> 5usize) & 0x01 ; val != 0 } # [doc = "Packet Size Error."]
# [inline (always)]
pub fn set_pse (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 5usize)) | (((val as u32) & 0x01) << 5usize) ; } # [doc = "EoTp Error."]
# [inline (always)]
pub const fn eotpe (& self) -> bool { let val = (self . 0 >> 6usize) & 0x01 ; val != 0 } # [doc = "EoTp Error."]
# [inline (always)]
pub fn set_eotpe (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 6usize)) | (((val as u32) & 0x01) << 6usize) ; } # [doc = "LTDC Payload Write Error."]
# [inline (always)]
pub const fn lpwre (& self) -> bool { let val = (self . 0 >> 7usize) & 0x01 ; val != 0 } # [doc = "LTDC Payload Write Error."]
# [inline (always)]
pub fn set_lpwre (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 7usize)) | (((val as u32) & 0x01) << 7usize) ; } # [doc = "Generic Command Write Error."]
# [inline (always)]
pub const fn gcwre (& self) -> bool { let val = (self . 0 >> 8usize) & 0x01 ; val != 0 } # [doc = "Generic Command Write Error."]
# [inline (always)]
pub fn set_gcwre (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 8usize)) | (((val as u32) & 0x01) << 8usize) ; } # [doc = "Generic Payload Write Error."]
# [inline (always)]
pub const fn gpwre (& self) -> bool { let val = (self . 0 >> 9usize) & 0x01 ; val != 0 } # [doc = "Generic Payload Write Error."]
# [inline (always)]
pub fn set_gpwre (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 9usize)) | (((val as u32) & 0x01) << 9usize) ; } # [doc = "Generic Payload Transmit Error."]
# [inline (always)]
pub const fn gptxe (& self) -> bool { let val = (self . 0 >> 10usize) & 0x01 ; val != 0 } # [doc = "Generic Payload Transmit Error."]
# [inline (always)]
pub fn set_gptxe (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 10usize)) | (((val as u32) & 0x01) << 10usize) ; } # [doc = "Generic Payload Read Error."]
# [inline (always)]
pub const fn gprde (& self) -> bool { let val = (self . 0 >> 11usize) & 0x01 ; val != 0 } # [doc = "Generic Payload Read Error."]
# [inline (always)]
pub fn set_gprde (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 11usize)) | (((val as u32) & 0x01) << 11usize) ; } # [doc = "Generic Payload Receive Error."]
# [inline (always)]
pub const fn gprxe (& self) -> bool { let val = (self . 0 >> 12usize) & 0x01 ; val != 0 } # [doc = "Generic Payload Receive Error."]
# [inline (always)]
pub fn set_gprxe (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 12usize)) | (((val as u32) & 0x01) << 12usize) ; } } impl Default for Isr1 { # [inline (always)]
fn default () -> Isr1 { Isr1 (0) } } # [doc = "DSI Host LTDC Current Color Coding Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Lcccr (pub u32) ; impl Lcccr { # [doc = "Color Coding."]
# [inline (always)]
pub const fn colc (& self) -> u8 { let val = (self . 0 >> 0usize) & 0x0f ; val as u8 } # [doc = "Color Coding."]
# [inline (always)]
pub fn set_colc (& mut self , val : u8) { self . 0 = (self . 0 & ! (0x0f << 0usize)) | (((val as u32) & 0x0f) << 0usize) ; } # [doc = "Loosely Packed Enable."]
# [inline (always)]
pub const fn lpe (& self) -> bool { let val = (self . 0 >> 8usize) & 0x01 ; val != 0 } # [doc = "Loosely Packed Enable."]
# [inline (always)]
pub fn set_lpe (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 8usize)) | (((val as u32) & 0x01) << 8usize) ; } } impl Default for Lcccr { # [inline (always)]
fn default () -> Lcccr { Lcccr (0) } } # [doc = "DSI Host LTDC Command Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Lccr (pub u32) ; impl Lccr { # [doc = "Command Size."]
# [inline (always)]
pub const fn cmdsize (& self) -> u16 { let val = (self . 0 >> 0usize) & 0xffff ; val as u16 } # [doc = "Command Size."]
# [inline (always)]
pub fn set_cmdsize (& mut self , val : u16) { self . 0 = (self . 0 & ! (0xffff << 0usize)) | (((val as u32) & 0xffff) << 0usize) ; } } impl Default for Lccr { # [inline (always)]
fn default () -> Lccr { Lccr (0) } } # [doc = "DSI Host LTDC Color Coding Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Lcolcr (pub u32) ; impl Lcolcr { # [doc = "Color Coding."]
# [inline (always)]
pub const fn colc (& self) -> u8 { let val = (self . 0 >> 0usize) & 0x0f ; val as u8 } # [doc = "Color Coding."]
# [inline (always)]
pub fn set_colc (& mut self , val : u8) { self . 0 = (self . 0 & ! (0x0f << 0usize)) | (((val as u32) & 0x0f) << 0usize) ; } # [doc = "Loosely Packet Enable."]
# [inline (always)]
pub const fn lpe (& self) -> bool { let val = (self . 0 >> 8usize) & 0x01 ; val != 0 } # [doc = "Loosely Packet Enable."]
# [inline (always)]
pub fn set_lpe (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 8usize)) | (((val as u32) & 0x01) << 8usize) ; } } impl Default for Lcolcr { # [inline (always)]
fn default () -> Lcolcr { Lcolcr (0) } } # [doc = "DSI Host LTDC Current VCID Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Lcvcidr (pub u32) ; impl Lcvcidr { # [doc = "Virtual Channel ID."]
# [inline (always)]
pub const fn vcid (& self) -> u8 { let val = (self . 0 >> 0usize) & 0x03 ; val as u8 } # [doc = "Virtual Channel ID."]
# [inline (always)]
pub fn set_vcid (& mut self , val : u8) { self . 0 = (self . 0 & ! (0x03 << 0usize)) | (((val as u32) & 0x03) << 0usize) ; } } impl Default for Lcvcidr { # [inline (always)]
fn default () -> Lcvcidr { Lcvcidr (0) } } # [doc = "DSI Host LTDC Polarity Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Lpcr (pub u32) ; impl Lpcr { # [doc = "Data Enable Polarity."]
# [inline (always)]
pub const fn dep (& self) -> bool { let val = (self . 0 >> 0usize) & 0x01 ; val != 0 } # [doc = "Data Enable Polarity."]
# [inline (always)]
pub fn set_dep (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 0usize)) | (((val as u32) & 0x01) << 0usize) ; } # [doc = "VSYNC Polarity."]
# [inline (always)]
pub const fn vsp (& self) -> bool { let val = (self . 0 >> 1usize) & 0x01 ; val != 0 } # [doc = "VSYNC Polarity."]
# [inline (always)]
pub fn set_vsp (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 1usize)) | (((val as u32) & 0x01) << 1usize) ; } # [doc = "HSYNC Polarity."]
# [inline (always)]
pub const fn hsp (& self) -> bool { let val = (self . 0 >> 2usize) & 0x01 ; val != 0 } # [doc = "HSYNC Polarity."]
# [inline (always)]
pub fn set_hsp (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 2usize)) | (((val as u32) & 0x01) << 2usize) ; } } impl Default for Lpcr { # [inline (always)]
fn default () -> Lpcr { Lpcr (0) } } # [doc = "DSI Host Low-Power mode Current Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Lpmccr (pub u32) ; impl Lpmccr { # [doc = "VACT Largest Packet Size."]
# [inline (always)]
pub const fn vlpsize (& self) -> u8 { let val = (self . 0 >> 0usize) & 0xff ; val as u8 } # [doc = "VACT Largest Packet Size."]
# [inline (always)]
pub fn set_vlpsize (& mut self , val : u8) { self . 0 = (self . 0 & ! (0xff << 0usize)) | (((val as u32) & 0xff) << 0usize) ; } # [doc = "Largest Packet Size."]
# [inline (always)]
pub const fn lpsize (& self) -> u8 { let val = (self . 0 >> 16usize) & 0xff ; val as u8 } # [doc = "Largest Packet Size."]
# [inline (always)]
pub fn set_lpsize (& mut self , val : u8) { self . 0 = (self . 0 & ! (0xff << 16usize)) | (((val as u32) & 0xff) << 16usize) ; } } impl Default for Lpmccr { # [inline (always)]
fn default () -> Lpmccr { Lpmccr (0) } } # [doc = "DSI Host Low-Power mode Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Lpmcr (pub u32) ; impl Lpmcr { # [doc = "VACT Largest Packet Size."]
# [inline (always)]
pub const fn vlpsize (& self) -> u8 { let val = (self . 0 >> 0usize) & 0xff ; val as u8 } # [doc = "VACT Largest Packet Size."]
# [inline (always)]
pub fn set_vlpsize (& mut self , val : u8) { self . 0 = (self . 0 & ! (0xff << 0usize)) | (((val as u32) & 0xff) << 0usize) ; } # [doc = "Largest Packet Size."]
# [inline (always)]
pub const fn lpsize (& self) -> u8 { let val = (self . 0 >> 16usize) & 0xff ; val as u8 } # [doc = "Largest Packet Size."]
# [inline (always)]
pub fn set_lpsize (& mut self , val : u8) { self . 0 = (self . 0 & ! (0xff << 16usize)) | (((val as u32) & 0xff) << 16usize) ; } } impl Default for Lpmcr { # [inline (always)]
fn default () -> Lpmcr { Lpmcr (0) } } # [doc = "DSI Host LTDC VCID Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Lvcidr (pub u32) ; impl Lvcidr { # [doc = "Virtual Channel ID."]
# [inline (always)]
pub const fn vcid (& self) -> u8 { let val = (self . 0 >> 0usize) & 0x03 ; val as u8 } # [doc = "Virtual Channel ID."]
# [inline (always)]
pub fn set_vcid (& mut self , val : u8) { self . 0 = (self . 0 & ! (0x03 << 0usize)) | (((val as u32) & 0x03) << 0usize) ; } } impl Default for Lvcidr { # [inline (always)]
fn default () -> Lvcidr { Lvcidr (0) } } # [doc = "DSI Host mode Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Mcr (pub u32) ; impl Mcr { # [doc = "Command mode."]
# [inline (always)]
pub const fn cmdm (& self) -> bool { let val = (self . 0 >> 0usize) & 0x01 ; val != 0 } # [doc = "Command mode."]
# [inline (always)]
pub fn set_cmdm (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 0usize)) | (((val as u32) & 0x01) << 0usize) ; } } impl Default for Mcr { # [inline (always)]
fn default () -> Mcr { Mcr (0) } } # [doc = "DSI Host PHY Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Pconfr (pub u32) ; impl Pconfr { # [doc = "Number of Lanes."]
# [inline (always)]
pub const fn nl (& self) -> u8 { let val = (self . 0 >> 0usize) & 0x03 ; val as u8 } # [doc = "Number of Lanes."]
# [inline (always)]
pub fn set_nl (& mut self , val : u8) { self . 0 = (self . 0 & ! (0x03 << 0usize)) | (((val as u32) & 0x03) << 0usize) ; } # [doc = "Stop Wait Time."]
# [inline (always)]
pub const fn sw_time (& self) -> u8 { let val = (self . 0 >> 8usize) & 0xff ; val as u8 } # [doc = "Stop Wait Time."]
# [inline (always)]
pub fn set_sw_time (& mut self , val : u8) { self . 0 = (self . 0 & ! (0xff << 8usize)) | (((val as u32) & 0xff) << 8usize) ; } } impl Default for Pconfr { # [inline (always)]
fn default () -> Pconfr { Pconfr (0) } } # [doc = "DSI Host Protocol Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Pcr (pub u32) ; impl Pcr { # [doc = "EoTp Transmission Enable."]
# [inline (always)]
pub const fn ettxe (& self) -> bool { let val = (self . 0 >> 0usize) & 0x01 ; val != 0 } # [doc = "EoTp Transmission Enable."]
# [inline (always)]
pub fn set_ettxe (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 0usize)) | (((val as u32) & 0x01) << 0usize) ; } # [doc = "EoTp Reception Enable."]
# [inline (always)]
pub const fn etrxe (& self) -> bool { let val = (self . 0 >> 1usize) & 0x01 ; val != 0 } # [doc = "EoTp Reception Enable."]
# [inline (always)]
pub fn set_etrxe (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 1usize)) | (((val as u32) & 0x01) << 1usize) ; } # [doc = "Bus Turn Around Enable."]
# [inline (always)]
pub const fn btae (& self) -> bool { let val = (self . 0 >> 2usize) & 0x01 ; val != 0 } # [doc = "Bus Turn Around Enable."]
# [inline (always)]
pub fn set_btae (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 2usize)) | (((val as u32) & 0x01) << 2usize) ; } # [doc = "ECC Reception Enable."]
# [inline (always)]
pub const fn eccrxe (& self) -> bool { let val = (self . 0 >> 3usize) & 0x01 ; val != 0 } # [doc = "ECC Reception Enable."]
# [inline (always)]
pub fn set_eccrxe (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 3usize)) | (((val as u32) & 0x01) << 3usize) ; } # [doc = "CRC Reception Enable."]
# [inline (always)]
pub const fn crcrxe (& self) -> bool { let val = (self . 0 >> 4usize) & 0x01 ; val != 0 } # [doc = "CRC Reception Enable."]
# [inline (always)]
pub fn set_crcrxe (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 4usize)) | (((val as u32) & 0x01) << 4usize) ; } } impl Default for Pcr { # [inline (always)]
fn default () -> Pcr { Pcr (0) } } # [doc = "DSI Host PHY Control Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Pctlr (pub u32) ; impl Pctlr { # [doc = "Digital Enable."]
# [inline (always)]
pub const fn den (& self) -> bool { let val = (self . 0 >> 1usize) & 0x01 ; val != 0 } # [doc = "Digital Enable."]
# [inline (always)]
pub fn set_den (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 1usize)) | (((val as u32) & 0x01) << 1usize) ; } # [doc = "Clock Enable."]
# [inline (always)]
pub const fn cke (& self) -> bool { let val = (self . 0 >> 2usize) & 0x01 ; val != 0 } # [doc = "Clock Enable."]
# [inline (always)]
pub fn set_cke (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 2usize)) | (((val as u32) & 0x01) << 2usize) ; } } impl Default for Pctlr { # [inline (always)]
fn default () -> Pctlr { Pctlr (0) } } # [doc = "DSI Host PHY Status Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Psr (pub u32) ; impl Psr { # [doc = "PHY Direction."]
# [inline (always)]
pub const fn pd (& self) -> bool { let val = (self . 0 >> 1usize) & 0x01 ; val != 0 } # [doc = "PHY Direction."]
# [inline (always)]
pub fn set_pd (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 1usize)) | (((val as u32) & 0x01) << 1usize) ; } # [doc = "PHY Stop State Clock lane."]
# [inline (always)]
pub const fn pssc (& self) -> bool { let val = (self . 0 >> 2usize) & 0x01 ; val != 0 } # [doc = "PHY Stop State Clock lane."]
# [inline (always)]
pub fn set_pssc (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 2usize)) | (((val as u32) & 0x01) << 2usize) ; } # [doc = "ULPS Active Not Clock lane."]
# [inline (always)]
pub const fn uanc (& self) -> bool { let val = (self . 0 >> 3usize) & 0x01 ; val != 0 } # [doc = "ULPS Active Not Clock lane."]
# [inline (always)]
pub fn set_uanc (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 3usize)) | (((val as u32) & 0x01) << 3usize) ; } # [doc = "PHY Stop State lane 0."]
# [inline (always)]
pub const fn pss0 (& self) -> bool { let val = (self . 0 >> 4usize) & 0x01 ; val != 0 } # [doc = "PHY Stop State lane 0."]
# [inline (always)]
pub fn set_pss0 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 4usize)) | (((val as u32) & 0x01) << 4usize) ; } # [doc = "ULPS Active Not lane 1."]
# [inline (always)]
pub const fn uan0 (& self) -> bool { let val = (self . 0 >> 5usize) & 0x01 ; val != 0 } # [doc = "ULPS Active Not lane 1."]
# [inline (always)]
pub fn set_uan0 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 5usize)) | (((val as u32) & 0x01) << 5usize) ; } # [doc = "RX ULPS Escape lane 0."]
# [inline (always)]
pub const fn rue0 (& self) -> bool { let val = (self . 0 >> 6usize) & 0x01 ; val != 0 } # [doc = "RX ULPS Escape lane 0."]
# [inline (always)]
pub fn set_rue0 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 6usize)) | (((val as u32) & 0x01) << 6usize) ; } # [doc = "PHY Stop State lane 1."]
# [inline (always)]
pub const fn pss1 (& self) -> bool { let val = (self . 0 >> 7usize) & 0x01 ; val != 0 } # [doc = "PHY Stop State lane 1."]
# [inline (always)]
pub fn set_pss1 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 7usize)) | (((val as u32) & 0x01) << 7usize) ; } # [doc = "ULPS Active Not lane 1."]
# [inline (always)]
pub const fn uan1 (& self) -> bool { let val = (self . 0 >> 8usize) & 0x01 ; val != 0 } # [doc = "ULPS Active Not lane 1."]
# [inline (always)]
pub fn set_uan1 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 8usize)) | (((val as u32) & 0x01) << 8usize) ; } } impl Default for Psr { # [inline (always)]
fn default () -> Psr { Psr (0) } } # [doc = "DSI Host PHY TX Triggers Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Pttcr (pub u32) ; impl Pttcr { # [doc = "Transmission Trigger."]
# [inline (always)]
pub const fn tx_trig (& self) -> u8 { let val = (self . 0 >> 0usize) & 0x0f ; val as u8 } # [doc = "Transmission Trigger."]
# [inline (always)]
pub fn set_tx_trig (& mut self , val : u8) { self . 0 = (self . 0 & ! (0x0f << 0usize)) | (((val as u32) & 0x0f) << 0usize) ; } } impl Default for Pttcr { # [inline (always)]
fn default () -> Pttcr { Pttcr (0) } } # [doc = "DSI Host PHY ULPS Control Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Pucr (pub u32) ; impl Pucr { # [doc = "ULPS Request on Clock Lane."]
# [inline (always)]
pub const fn urcl (& self) -> bool { let val = (self . 0 >> 0usize) & 0x01 ; val != 0 } # [doc = "ULPS Request on Clock Lane."]
# [inline (always)]
pub fn set_urcl (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 0usize)) | (((val as u32) & 0x01) << 0usize) ; } # [doc = "ULPS Exit on Clock Lane."]
# [inline (always)]
pub const fn uecl (& self) -> bool { let val = (self . 0 >> 1usize) & 0x01 ; val != 0 } # [doc = "ULPS Exit on Clock Lane."]
# [inline (always)]
pub fn set_uecl (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 1usize)) | (((val as u32) & 0x01) << 1usize) ; } # [doc = "ULPS Request on Data Lane."]
# [inline (always)]
pub const fn urdl (& self) -> bool { let val = (self . 0 >> 2usize) & 0x01 ; val != 0 } # [doc = "ULPS Request on Data Lane."]
# [inline (always)]
pub fn set_urdl (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 2usize)) | (((val as u32) & 0x01) << 2usize) ; } # [doc = "ULPS Exit on Data Lane."]
# [inline (always)]
pub const fn uedl (& self) -> bool { let val = (self . 0 >> 3usize) & 0x01 ; val != 0 } # [doc = "ULPS Exit on Data Lane."]
# [inline (always)]
pub fn set_uedl (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 3usize)) | (((val as u32) & 0x01) << 3usize) ; } } impl Default for Pucr { # [inline (always)]
fn default () -> Pucr { Pucr (0) } } # [doc = "DSI Host Timeout Counter Configuration Register 0."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Tccr0 (pub u32) ; impl Tccr0 { # [doc = "Low-power Reception Timeout Counter."]
# [inline (always)]
pub const fn lprx_tocnt (& self) -> u16 { let val = (self . 0 >> 0usize) & 0xffff ; val as u16 } # [doc = "Low-power Reception Timeout Counter."]
# [inline (always)]
pub fn set_lprx_tocnt (& mut self , val : u16) { self . 0 = (self . 0 & ! (0xffff << 0usize)) | (((val as u32) & 0xffff) << 0usize) ; } # [doc = "High-Speed Transmission Timeout Counter."]
# [inline (always)]
pub const fn hstx_tocnt (& self) -> u16 { let val = (self . 0 >> 16usize) & 0xffff ; val as u16 } # [doc = "High-Speed Transmission Timeout Counter."]
# [inline (always)]
pub fn set_hstx_tocnt (& mut self , val : u16) { self . 0 = (self . 0 & ! (0xffff << 16usize)) | (((val as u32) & 0xffff) << 16usize) ; } } impl Default for Tccr0 { # [inline (always)]
fn default () -> Tccr0 { Tccr0 (0) } } # [doc = "DSI Host Timeout Counter Configuration Register 1."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Tccr1 (pub u32) ; impl Tccr1 { # [doc = "High-Speed Read Timeout Counter."]
# [inline (always)]
pub const fn hsrd_tocnt (& self) -> u16 { let val = (self . 0 >> 0usize) & 0xffff ; val as u16 } # [doc = "High-Speed Read Timeout Counter."]
# [inline (always)]
pub fn set_hsrd_tocnt (& mut self , val : u16) { self . 0 = (self . 0 & ! (0xffff << 0usize)) | (((val as u32) & 0xffff) << 0usize) ; } } impl Default for Tccr1 { # [inline (always)]
fn default () -> Tccr1 { Tccr1 (0) } } # [doc = "DSI Host Timeout Counter Configuration Register 2."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Tccr2 (pub u32) ; impl Tccr2 { # [doc = "Low-Power Read Timeout Counter."]
# [inline (always)]
pub const fn lprd_tocnt (& self) -> u16 { let val = (self . 0 >> 0usize) & 0xffff ; val as u16 } # [doc = "Low-Power Read Timeout Counter."]
# [inline (always)]
pub fn set_lprd_tocnt (& mut self , val : u16) { self . 0 = (self . 0 & ! (0xffff << 0usize)) | (((val as u32) & 0xffff) << 0usize) ; } } impl Default for Tccr2 { # [inline (always)]
fn default () -> Tccr2 { Tccr2 (0) } } # [doc = "DSI Host Timeout Counter Configuration Register 3."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Tccr3 (pub u32) ; impl Tccr3 { # [doc = "High-Speed Write Timeout Counter."]
# [inline (always)]
pub const fn hswr_tocnt (& self) -> u16 { let val = (self . 0 >> 0usize) & 0xffff ; val as u16 } # [doc = "High-Speed Write Timeout Counter."]
# [inline (always)]
pub fn set_hswr_tocnt (& mut self , val : u16) { self . 0 = (self . 0 & ! (0xffff << 0usize)) | (((val as u32) & 0xffff) << 0usize) ; } # [doc = "Presp mode."]
# [inline (always)]
pub const fn pm (& self) -> bool { let val = (self . 0 >> 24usize) & 0x01 ; val != 0 } # [doc = "Presp mode."]
# [inline (always)]
pub fn set_pm (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 24usize)) | (((val as u32) & 0x01) << 24usize) ; } } impl Default for Tccr3 { # [inline (always)]
fn default () -> Tccr3 { Tccr3 (0) } } # [doc = "DSI Host Timeout Counter Configuration Register 4."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Tccr4 (pub u32) ; impl Tccr4 { # [doc = "Low-Power Write Timeout Counter."]
# [inline (always)]
pub const fn lswr_tocnt (& self) -> u16 { let val = (self . 0 >> 0usize) & 0xffff ; val as u16 } # [doc = "Low-Power Write Timeout Counter."]
# [inline (always)]
pub fn set_lswr_tocnt (& mut self , val : u16) { self . 0 = (self . 0 & ! (0xffff << 0usize)) | (((val as u32) & 0xffff) << 0usize) ; } } impl Default for Tccr4 { # [inline (always)]
fn default () -> Tccr4 { Tccr4 (0) } } # [doc = "DSI Host Timeout Counter Configuration Register 5."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Tccr5 (pub u32) ; impl Tccr5 { # [doc = "Bus-Turn-Around Timeout Counter."]
# [inline (always)]
pub const fn bta_tocnt (& self) -> u16 { let val = (self . 0 >> 0usize) & 0xffff ; val as u16 } # [doc = "Bus-Turn-Around Timeout Counter."]
# [inline (always)]
pub fn set_bta_tocnt (& mut self , val : u16) { self . 0 = (self . 0 & ! (0xffff << 0usize)) | (((val as u32) & 0xffff) << 0usize) ; } } impl Default for Tccr5 { # [inline (always)]
fn default () -> Tccr5 { Tccr5 (0) } } # [doc = "DSI Host Video Chunks Current Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Vcccr (pub u32) ; impl Vcccr { # [doc = "Number of Chunks."]
# [inline (always)]
pub const fn numc (& self) -> u16 { let val = (self . 0 >> 0usize) & 0x1fff ; val as u16 } # [doc = "Number of Chunks."]
# [inline (always)]
pub fn set_numc (& mut self , val : u16) { self . 0 = (self . 0 & ! (0x1fff << 0usize)) | (((val as u32) & 0x1fff) << 0usize) ; } } impl Default for Vcccr { # [inline (always)]
fn default () -> Vcccr { Vcccr (0) } } # [doc = "DSI Host Video Chunks Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Vccr (pub u32) ; impl Vccr { # [doc = "Number of Chunks."]
# [inline (always)]
pub const fn numc (& self) -> u16 { let val = (self . 0 >> 0usize) & 0x1fff ; val as u16 } # [doc = "Number of Chunks."]
# [inline (always)]
pub fn set_numc (& mut self , val : u16) { self . 0 = (self . 0 & ! (0x1fff << 0usize)) | (((val as u32) & 0x1fff) << 0usize) ; } } impl Default for Vccr { # [inline (always)]
fn default () -> Vccr { Vccr (0) } } # [doc = "DSI Host Video HBP Current Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Vhbpccr (pub u32) ; impl Vhbpccr { # [doc = "Horizontal Back-Porch duration."]
# [inline (always)]
pub const fn hbp (& self) -> u16 { let val = (self . 0 >> 0usize) & 0x0fff ; val as u16 } # [doc = "Horizontal Back-Porch duration."]
# [inline (always)]
pub fn set_hbp (& mut self , val : u16) { self . 0 = (self . 0 & ! (0x0fff << 0usize)) | (((val as u32) & 0x0fff) << 0usize) ; } } impl Default for Vhbpccr { # [inline (always)]
fn default () -> Vhbpccr { Vhbpccr (0) } } # [doc = "DSI Host Video HBP Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Vhbpcr (pub u32) ; impl Vhbpcr { # [doc = "Horizontal Back-Porch duration."]
# [inline (always)]
pub const fn hbp (& self) -> u16 { let val = (self . 0 >> 0usize) & 0x0fff ; val as u16 } # [doc = "Horizontal Back-Porch duration."]
# [inline (always)]
pub fn set_hbp (& mut self , val : u16) { self . 0 = (self . 0 & ! (0x0fff << 0usize)) | (((val as u32) & 0x0fff) << 0usize) ; } } impl Default for Vhbpcr { # [inline (always)]
fn default () -> Vhbpcr { Vhbpcr (0) } } # [doc = "DSI Host Video HSA Current Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Vhsaccr (pub u32) ; impl Vhsaccr { # [doc = "Horizontal Synchronism Active duration."]
# [inline (always)]
pub const fn hsa (& self) -> u16 { let val = (self . 0 >> 0usize) & 0x0fff ; val as u16 } # [doc = "Horizontal Synchronism Active duration."]
# [inline (always)]
pub fn set_hsa (& mut self , val : u16) { self . 0 = (self . 0 & ! (0x0fff << 0usize)) | (((val as u32) & 0x0fff) << 0usize) ; } } impl Default for Vhsaccr { # [inline (always)]
fn default () -> Vhsaccr { Vhsaccr (0) } } # [doc = "DSI Host Video HSA Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Vhsacr (pub u32) ; impl Vhsacr { # [doc = "Horizontal Synchronism Active duration."]
# [inline (always)]
pub const fn hsa (& self) -> u16 { let val = (self . 0 >> 0usize) & 0x0fff ; val as u16 } # [doc = "Horizontal Synchronism Active duration."]
# [inline (always)]
pub fn set_hsa (& mut self , val : u16) { self . 0 = (self . 0 & ! (0x0fff << 0usize)) | (((val as u32) & 0x0fff) << 0usize) ; } } impl Default for Vhsacr { # [inline (always)]
fn default () -> Vhsacr { Vhsacr (0) } } # [doc = "DSI Host Video Line Current Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Vlccr (pub u32) ; impl Vlccr { # [doc = "Horizontal Line duration."]
# [inline (always)]
pub const fn hline (& self) -> u16 { let val = (self . 0 >> 0usize) & 0x7fff ; val as u16 } # [doc = "Horizontal Line duration."]
# [inline (always)]
pub fn set_hline (& mut self , val : u16) { self . 0 = (self . 0 & ! (0x7fff << 0usize)) | (((val as u32) & 0x7fff) << 0usize) ; } } impl Default for Vlccr { # [inline (always)]
fn default () -> Vlccr { Vlccr (0) } } # [doc = "DSI Host Video Line Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Vlcr (pub u32) ; impl Vlcr { # [doc = "Horizontal Line duration."]
# [inline (always)]
pub const fn hline (& self) -> u16 { let val = (self . 0 >> 0usize) & 0x7fff ; val as u16 } # [doc = "Horizontal Line duration."]
# [inline (always)]
pub fn set_hline (& mut self , val : u16) { self . 0 = (self . 0 & ! (0x7fff << 0usize)) | (((val as u32) & 0x7fff) << 0usize) ; } } impl Default for Vlcr { # [inline (always)]
fn default () -> Vlcr { Vlcr (0) } } # [doc = "DSI Host Video mode Current Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Vmccr (pub u32) ; impl Vmccr { # [doc = "Video mode Type."]
# [inline (always)]
pub const fn vmt (& self) -> u8 { let val = (self . 0 >> 0usize) & 0x03 ; val as u8 } # [doc = "Video mode Type."]
# [inline (always)]
pub fn set_vmt (& mut self , val : u8) { self . 0 = (self . 0 & ! (0x03 << 0usize)) | (((val as u32) & 0x03) << 0usize) ; } # [doc = "Low-Power Vertical Sync time Enable."]
# [inline (always)]
pub const fn lpvsae (& self) -> bool { let val = (self . 0 >> 2usize) & 0x01 ; val != 0 } # [doc = "Low-Power Vertical Sync time Enable."]
# [inline (always)]
pub fn set_lpvsae (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 2usize)) | (((val as u32) & 0x01) << 2usize) ; } # [doc = "Low-power Vertical Back-Porch Enable."]
# [inline (always)]
pub const fn lpvbpe (& self) -> bool { let val = (self . 0 >> 3usize) & 0x01 ; val != 0 } # [doc = "Low-power Vertical Back-Porch Enable."]
# [inline (always)]
pub fn set_lpvbpe (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 3usize)) | (((val as u32) & 0x01) << 3usize) ; } # [doc = "Low-power Vertical Front-Porch Enable."]
# [inline (always)]
pub const fn lpvfpe (& self) -> bool { let val = (self . 0 >> 4usize) & 0x01 ; val != 0 } # [doc = "Low-power Vertical Front-Porch Enable."]
# [inline (always)]
pub fn set_lpvfpe (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 4usize)) | (((val as u32) & 0x01) << 4usize) ; } # [doc = "Low-Power Vertical Active Enable."]
# [inline (always)]
pub const fn lpvae (& self) -> bool { let val = (self . 0 >> 5usize) & 0x01 ; val != 0 } # [doc = "Low-Power Vertical Active Enable."]
# [inline (always)]
pub fn set_lpvae (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 5usize)) | (((val as u32) & 0x01) << 5usize) ; } # [doc = "Low-power Horizontal Back-Porch Enable."]
# [inline (always)]
pub const fn lphbpe (& self) -> bool { let val = (self . 0 >> 6usize) & 0x01 ; val != 0 } # [doc = "Low-power Horizontal Back-Porch Enable."]
# [inline (always)]
pub fn set_lphbpe (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 6usize)) | (((val as u32) & 0x01) << 6usize) ; } # [doc = "Low-Power Horizontal Front-Porch Enable."]
# [inline (always)]
pub const fn lphfe (& self) -> bool { let val = (self . 0 >> 7usize) & 0x01 ; val != 0 } # [doc = "Low-Power Horizontal Front-Porch Enable."]
# [inline (always)]
pub fn set_lphfe (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 7usize)) | (((val as u32) & 0x01) << 7usize) ; } # [doc = "Frame BTA Acknowledge Enable."]
# [inline (always)]
pub const fn fbtaae (& self) -> bool { let val = (self . 0 >> 8usize) & 0x01 ; val != 0 } # [doc = "Frame BTA Acknowledge Enable."]
# [inline (always)]
pub fn set_fbtaae (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 8usize)) | (((val as u32) & 0x01) << 8usize) ; } # [doc = "Low-Power Command Enable."]
# [inline (always)]
pub const fn lpce (& self) -> bool { let val = (self . 0 >> 9usize) & 0x01 ; val != 0 } # [doc = "Low-Power Command Enable."]
# [inline (always)]
pub fn set_lpce (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 9usize)) | (((val as u32) & 0x01) << 9usize) ; } } impl Default for Vmccr { # [inline (always)]
fn default () -> Vmccr { Vmccr (0) } } # [doc = "DSI Host Video mode Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Vmcr (pub u32) ; impl Vmcr { # [doc = "Video mode Type."]
# [inline (always)]
pub const fn vmt (& self) -> u8 { let val = (self . 0 >> 0usize) & 0x03 ; val as u8 } # [doc = "Video mode Type."]
# [inline (always)]
pub fn set_vmt (& mut self , val : u8) { self . 0 = (self . 0 & ! (0x03 << 0usize)) | (((val as u32) & 0x03) << 0usize) ; } # [doc = "Low-Power Vertical Sync Active Enable."]
# [inline (always)]
pub const fn lpvsae (& self) -> bool { let val = (self . 0 >> 8usize) & 0x01 ; val != 0 } # [doc = "Low-Power Vertical Sync Active Enable."]
# [inline (always)]
pub fn set_lpvsae (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 8usize)) | (((val as u32) & 0x01) << 8usize) ; } # [doc = "Low-power Vertical Back-Porch Enable."]
# [inline (always)]
pub const fn lpvbpe (& self) -> bool { let val = (self . 0 >> 9usize) & 0x01 ; val != 0 } # [doc = "Low-power Vertical Back-Porch Enable."]
# [inline (always)]
pub fn set_lpvbpe (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 9usize)) | (((val as u32) & 0x01) << 9usize) ; } # [doc = "Low-power Vertical Front-porch Enable."]
# [inline (always)]
pub const fn lpvfpe (& self) -> bool { let val = (self . 0 >> 10usize) & 0x01 ; val != 0 } # [doc = "Low-power Vertical Front-porch Enable."]
# [inline (always)]
pub fn set_lpvfpe (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 10usize)) | (((val as u32) & 0x01) << 10usize) ; } # [doc = "Low-Power Vertical Active Enable."]
# [inline (always)]
pub const fn lpvae (& self) -> bool { let val = (self . 0 >> 11usize) & 0x01 ; val != 0 } # [doc = "Low-Power Vertical Active Enable."]
# [inline (always)]
pub fn set_lpvae (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 11usize)) | (((val as u32) & 0x01) << 11usize) ; } # [doc = "Low-Power Horizontal Back-Porch Enable."]
# [inline (always)]
pub const fn lphbpe (& self) -> bool { let val = (self . 0 >> 12usize) & 0x01 ; val != 0 } # [doc = "Low-Power Horizontal Back-Porch Enable."]
# [inline (always)]
pub fn set_lphbpe (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 12usize)) | (((val as u32) & 0x01) << 12usize) ; } # [doc = "Low-Power Horizontal Front-Porch Enable."]
# [inline (always)]
pub const fn lphfpe (& self) -> bool { let val = (self . 0 >> 13usize) & 0x01 ; val != 0 } # [doc = "Low-Power Horizontal Front-Porch Enable."]
# [inline (always)]
pub fn set_lphfpe (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 13usize)) | (((val as u32) & 0x01) << 13usize) ; } # [doc = "Frame Bus-Turn-Around Acknowledge Enable."]
# [inline (always)]
pub const fn fbtaae (& self) -> bool { let val = (self . 0 >> 14usize) & 0x01 ; val != 0 } # [doc = "Frame Bus-Turn-Around Acknowledge Enable."]
# [inline (always)]
pub fn set_fbtaae (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 14usize)) | (((val as u32) & 0x01) << 14usize) ; } # [doc = "Low-Power Command Enable."]
# [inline (always)]
pub const fn lpce (& self) -> bool { let val = (self . 0 >> 15usize) & 0x01 ; val != 0 } # [doc = "Low-Power Command Enable."]
# [inline (always)]
pub fn set_lpce (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 15usize)) | (((val as u32) & 0x01) << 15usize) ; } # [doc = "Pattern Generator Enable."]
# [inline (always)]
pub const fn pge (& self) -> bool { let val = (self . 0 >> 16usize) & 0x01 ; val != 0 } # [doc = "Pattern Generator Enable."]
# [inline (always)]
pub fn set_pge (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 16usize)) | (((val as u32) & 0x01) << 16usize) ; } # [doc = "Pattern Generator mode."]
# [inline (always)]
pub const fn pgm (& self) -> bool { let val = (self . 0 >> 20usize) & 0x01 ; val != 0 } # [doc = "Pattern Generator mode."]
# [inline (always)]
pub fn set_pgm (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 20usize)) | (((val as u32) & 0x01) << 20usize) ; } # [doc = "Pattern Generator Orientation."]
# [inline (always)]
pub const fn pgo (& self) -> bool { let val = (self . 0 >> 24usize) & 0x01 ; val != 0 } # [doc = "Pattern Generator Orientation."]
# [inline (always)]
pub fn set_pgo (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 24usize)) | (((val as u32) & 0x01) << 24usize) ; } } impl Default for Vmcr { # [inline (always)]
fn default () -> Vmcr { Vmcr (0) } } # [doc = "DSI Host Video Null Packet Current Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Vnpccr (pub u32) ; impl Vnpccr { # [doc = "Null Packet Size."]
# [inline (always)]
pub const fn npsize (& self) -> u16 { let val = (self . 0 >> 0usize) & 0x1fff ; val as u16 } # [doc = "Null Packet Size."]
# [inline (always)]
pub fn set_npsize (& mut self , val : u16) { self . 0 = (self . 0 & ! (0x1fff << 0usize)) | (((val as u32) & 0x1fff) << 0usize) ; } } impl Default for Vnpccr { # [inline (always)]
fn default () -> Vnpccr { Vnpccr (0) } } # [doc = "DSI Host Video Null Packet Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Vnpcr (pub u32) ; impl Vnpcr { # [doc = "Null Packet Size."]
# [inline (always)]
pub const fn npsize (& self) -> u16 { let val = (self . 0 >> 0usize) & 0x1fff ; val as u16 } # [doc = "Null Packet Size."]
# [inline (always)]
pub fn set_npsize (& mut self , val : u16) { self . 0 = (self . 0 & ! (0x1fff << 0usize)) | (((val as u32) & 0x1fff) << 0usize) ; } } impl Default for Vnpcr { # [inline (always)]
fn default () -> Vnpcr { Vnpcr (0) } } # [doc = "DSI Host Video Packet Current Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Vpccr (pub u32) ; impl Vpccr { # [doc = "Video Packet Size."]
# [inline (always)]
pub const fn vpsize (& self) -> u16 { let val = (self . 0 >> 0usize) & 0x3fff ; val as u16 } # [doc = "Video Packet Size."]
# [inline (always)]
pub fn set_vpsize (& mut self , val : u16) { self . 0 = (self . 0 & ! (0x3fff << 0usize)) | (((val as u32) & 0x3fff) << 0usize) ; } } impl Default for Vpccr { # [inline (always)]
fn default () -> Vpccr { Vpccr (0) } } # [doc = "DSI Host Video Packet Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Vpcr (pub u32) ; impl Vpcr { # [doc = "Video Packet Size."]
# [inline (always)]
pub const fn vpsize (& self) -> u16 { let val = (self . 0 >> 0usize) & 0x3fff ; val as u16 } # [doc = "Video Packet Size."]
# [inline (always)]
pub fn set_vpsize (& mut self , val : u16) { self . 0 = (self . 0 & ! (0x3fff << 0usize)) | (((val as u32) & 0x3fff) << 0usize) ; } } impl Default for Vpcr { # [inline (always)]
fn default () -> Vpcr { Vpcr (0) } } # [doc = "DSI Host Version Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Vr (pub u32) ; impl Vr { # [doc = "Version of the DSI Host."]
# [inline (always)]
pub const fn version (& self) -> u32 { let val = (self . 0 >> 0usize) & 0xffff_ffff ; val as u32 } # [doc = "Version of the DSI Host."]
# [inline (always)]
pub fn set_version (& mut self , val : u32) { self . 0 = (self . 0 & ! (0xffff_ffff << 0usize)) | (((val as u32) & 0xffff_ffff) << 0usize) ; } } impl Default for Vr { # [inline (always)]
fn default () -> Vr { Vr (0) } } # [doc = "DSI Host Video Shadow Control Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Vscr (pub u32) ; impl Vscr { # [doc = "Enable."]
# [inline (always)]
pub const fn en (& self) -> bool { let val = (self . 0 >> 0usize) & 0x01 ; val != 0 } # [doc = "Enable."]
# [inline (always)]
pub fn set_en (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 0usize)) | (((val as u32) & 0x01) << 0usize) ; } # [doc = "Update Register."]
# [inline (always)]
pub const fn ur (& self) -> bool { let val = (self . 0 >> 8usize) & 0x01 ; val != 0 } # [doc = "Update Register."]
# [inline (always)]
pub fn set_ur (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 8usize)) | (((val as u32) & 0x01) << 8usize) ; } } impl Default for Vscr { # [inline (always)]
fn default () -> Vscr { Vscr (0) } } # [doc = "DSI Host Video VA Current Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Vvaccr (pub u32) ; impl Vvaccr { # [doc = "Vertical Active duration."]
# [inline (always)]
pub const fn va (& self) -> u16 { let val = (self . 0 >> 0usize) & 0x3fff ; val as u16 } # [doc = "Vertical Active duration."]
# [inline (always)]
pub fn set_va (& mut self , val : u16) { self . 0 = (self . 0 & ! (0x3fff << 0usize)) | (((val as u32) & 0x3fff) << 0usize) ; } } impl Default for Vvaccr { # [inline (always)]
fn default () -> Vvaccr { Vvaccr (0) } } # [doc = "DSI Host Video VA Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Vvacr (pub u32) ; impl Vvacr { # [doc = "Vertical Active duration."]
# [inline (always)]
pub const fn va (& self) -> u16 { let val = (self . 0 >> 0usize) & 0x3fff ; val as u16 } # [doc = "Vertical Active duration."]
# [inline (always)]
pub fn set_va (& mut self , val : u16) { self . 0 = (self . 0 & ! (0x3fff << 0usize)) | (((val as u32) & 0x3fff) << 0usize) ; } } impl Default for Vvacr { # [inline (always)]
fn default () -> Vvacr { Vvacr (0) } } # [doc = "DSI Host Video VBP Current Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Vvbpccr (pub u32) ; impl Vvbpccr { # [doc = "Vertical Back-Porch duration."]
# [inline (always)]
pub const fn vbp (& self) -> u16 { let val = (self . 0 >> 0usize) & 0x03ff ; val as u16 } # [doc = "Vertical Back-Porch duration."]
# [inline (always)]
pub fn set_vbp (& mut self , val : u16) { self . 0 = (self . 0 & ! (0x03ff << 0usize)) | (((val as u32) & 0x03ff) << 0usize) ; } } impl Default for Vvbpccr { # [inline (always)]
fn default () -> Vvbpccr { Vvbpccr (0) } } # [doc = "DSI Host Video VBP Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Vvbpcr (pub u32) ; impl Vvbpcr { # [doc = "Vertical Back-Porch duration."]
# [inline (always)]
pub const fn vbp (& self) -> u16 { let val = (self . 0 >> 0usize) & 0x03ff ; val as u16 } # [doc = "Vertical Back-Porch duration."]
# [inline (always)]
pub fn set_vbp (& mut self , val : u16) { self . 0 = (self . 0 & ! (0x03ff << 0usize)) | (((val as u32) & 0x03ff) << 0usize) ; } } impl Default for Vvbpcr { # [inline (always)]
fn default () -> Vvbpcr { Vvbpcr (0) } } # [doc = "DSI Host Video VFP Current Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Vvfpccr (pub u32) ; impl Vvfpccr { # [doc = "Vertical Front-Porch duration."]
# [inline (always)]
pub const fn vfp (& self) -> u16 { let val = (self . 0 >> 0usize) & 0x03ff ; val as u16 } # [doc = "Vertical Front-Porch duration."]
# [inline (always)]
pub fn set_vfp (& mut self , val : u16) { self . 0 = (self . 0 & ! (0x03ff << 0usize)) | (((val as u32) & 0x03ff) << 0usize) ; } } impl Default for Vvfpccr { # [inline (always)]
fn default () -> Vvfpccr { Vvfpccr (0) } } # [doc = "DSI Host Video VFP Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Vvfpcr (pub u32) ; impl Vvfpcr { # [doc = "Vertical Front-Porch duration."]
# [inline (always)]
pub const fn vfp (& self) -> u16 { let val = (self . 0 >> 0usize) & 0x03ff ; val as u16 } # [doc = "Vertical Front-Porch duration."]
# [inline (always)]
pub fn set_vfp (& mut self , val : u16) { self . 0 = (self . 0 & ! (0x03ff << 0usize)) | (((val as u32) & 0x03ff) << 0usize) ; } } impl Default for Vvfpcr { # [inline (always)]
fn default () -> Vvfpcr { Vvfpcr (0) } } # [doc = "DSI Host Video VSA Current Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Vvsaccr (pub u32) ; impl Vvsaccr { # [doc = "Vertical Synchronism Active duration."]
# [inline (always)]
pub const fn vsa (& self) -> u16 { let val = (self . 0 >> 0usize) & 0x03ff ; val as u16 } # [doc = "Vertical Synchronism Active duration."]
# [inline (always)]
pub fn set_vsa (& mut self , val : u16) { self . 0 = (self . 0 & ! (0x03ff << 0usize)) | (((val as u32) & 0x03ff) << 0usize) ; } } impl Default for Vvsaccr { # [inline (always)]
fn default () -> Vvsaccr { Vvsaccr (0) } } # [doc = "DSI Host Video VSA Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Vvsacr (pub u32) ; impl Vvsacr { # [doc = "Vertical Synchronism Active duration."]
# [inline (always)]
pub const fn vsa (& self) -> u16 { let val = (self . 0 >> 0usize) & 0x03ff ; val as u16 } # [doc = "Vertical Synchronism Active duration."]
# [inline (always)]
pub fn set_vsa (& mut self , val : u16) { self . 0 = (self . 0 & ! (0x03ff << 0usize)) | (((val as u32) & 0x03ff) << 0usize) ; } } impl Default for Vvsacr { # [inline (always)]
fn default () -> Vvsacr { Vvsacr (0) } } # [doc = "DSI Wrapper Configuration Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Wcfgr (pub u32) ; impl Wcfgr { # [doc = "DSI Mode."]
# [inline (always)]
pub const fn dsim (& self) -> bool { let val = (self . 0 >> 0usize) & 0x01 ; val != 0 } # [doc = "DSI Mode."]
# [inline (always)]
pub fn set_dsim (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 0usize)) | (((val as u32) & 0x01) << 0usize) ; } # [doc = "Color Multiplexing."]
# [inline (always)]
pub const fn colmux (& self) -> u8 { let val = (self . 0 >> 1usize) & 0x07 ; val as u8 } # [doc = "Color Multiplexing."]
# [inline (always)]
pub fn set_colmux (& mut self , val : u8) { self . 0 = (self . 0 & ! (0x07 << 1usize)) | (((val as u32) & 0x07) << 1usize) ; } # [doc = "TE Source."]
# [inline (always)]
pub const fn tesrc (& self) -> bool { let val = (self . 0 >> 4usize) & 0x01 ; val != 0 } # [doc = "TE Source."]
# [inline (always)]
pub fn set_tesrc (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 4usize)) | (((val as u32) & 0x01) << 4usize) ; } # [doc = "TE Polarity."]
# [inline (always)]
pub const fn tepol (& self) -> bool { let val = (self . 0 >> 5usize) & 0x01 ; val != 0 } # [doc = "TE Polarity."]
# [inline (always)]
pub fn set_tepol (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 5usize)) | (((val as u32) & 0x01) << 5usize) ; } # [doc = "Automatic Refresh."]
# [inline (always)]
pub const fn ar (& self) -> bool { let val = (self . 0 >> 6usize) & 0x01 ; val != 0 } # [doc = "Automatic Refresh."]
# [inline (always)]
pub fn set_ar (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 6usize)) | (((val as u32) & 0x01) << 6usize) ; } # [doc = "VSync Polarity."]
# [inline (always)]
pub const fn vspol (& self) -> bool { let val = (self . 0 >> 7usize) & 0x01 ; val != 0 } # [doc = "VSync Polarity."]
# [inline (always)]
pub fn set_vspol (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 7usize)) | (((val as u32) & 0x01) << 7usize) ; } } impl Default for Wcfgr { # [inline (always)]
fn default () -> Wcfgr { Wcfgr (0) } } # [doc = "DSI Wrapper Control Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Wcr (pub u32) ; impl Wcr { # [doc = "Color Mode."]
# [inline (always)]
pub const fn colm (& self) -> bool { let val = (self . 0 >> 0usize) & 0x01 ; val != 0 } # [doc = "Color Mode."]
# [inline (always)]
pub fn set_colm (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 0usize)) | (((val as u32) & 0x01) << 0usize) ; } # [doc = "Shutdown."]
# [inline (always)]
pub const fn shtdn (& self) -> bool { let val = (self . 0 >> 1usize) & 0x01 ; val != 0 } # [doc = "Shutdown."]
# [inline (always)]
pub fn set_shtdn (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 1usize)) | (((val as u32) & 0x01) << 1usize) ; } # [doc = "LTDC Enable."]
# [inline (always)]
pub const fn ltdcen (& self) -> bool { let val = (self . 0 >> 2usize) & 0x01 ; val != 0 } # [doc = "LTDC Enable."]
# [inline (always)]
pub fn set_ltdcen (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 2usize)) | (((val as u32) & 0x01) << 2usize) ; } # [doc = "DSI Enable."]
# [inline (always)]
pub const fn dsien (& self) -> bool { let val = (self . 0 >> 3usize) & 0x01 ; val != 0 } # [doc = "DSI Enable."]
# [inline (always)]
pub fn set_dsien (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 3usize)) | (((val as u32) & 0x01) << 3usize) ; } } impl Default for Wcr { # [inline (always)]
fn default () -> Wcr { Wcr (0) } } # [doc = "DSI Wrapper Interrupt Enable Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Wier (pub u32) ; impl Wier { # [doc = "Tearing Effect Interrupt Enable."]
# [inline (always)]
pub const fn teie (& self) -> bool { let val = (self . 0 >> 0usize) & 0x01 ; val != 0 } # [doc = "Tearing Effect Interrupt Enable."]
# [inline (always)]
pub fn set_teie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 0usize)) | (((val as u32) & 0x01) << 0usize) ; } # [doc = "End of Refresh Interrupt Enable."]
# [inline (always)]
pub const fn erie (& self) -> bool { let val = (self . 0 >> 1usize) & 0x01 ; val != 0 } # [doc = "End of Refresh Interrupt Enable."]
# [inline (always)]
pub fn set_erie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 1usize)) | (((val as u32) & 0x01) << 1usize) ; } # [doc = "PLL Lock Interrupt Enable."]
# [inline (always)]
pub const fn plllie (& self) -> bool { let val = (self . 0 >> 9usize) & 0x01 ; val != 0 } # [doc = "PLL Lock Interrupt Enable."]
# [inline (always)]
pub fn set_plllie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 9usize)) | (((val as u32) & 0x01) << 9usize) ; } # [doc = "PLL Unlock Interrupt Enable."]
# [inline (always)]
pub const fn plluie (& self) -> bool { let val = (self . 0 >> 10usize) & 0x01 ; val != 0 } # [doc = "PLL Unlock Interrupt Enable."]
# [inline (always)]
pub fn set_plluie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 10usize)) | (((val as u32) & 0x01) << 10usize) ; } # [doc = "Regulator Ready Interrupt Enable."]
# [inline (always)]
pub const fn rrie (& self) -> bool { let val = (self . 0 >> 13usize) & 0x01 ; val != 0 } # [doc = "Regulator Ready Interrupt Enable."]
# [inline (always)]
pub fn set_rrie (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 13usize)) | (((val as u32) & 0x01) << 13usize) ; } } impl Default for Wier { # [inline (always)]
fn default () -> Wier { Wier (0) } } # [doc = "DSI Wrapper Interrupt Flag Clear Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Wifcr (pub u32) ; impl Wifcr { # [doc = "Clear Tearing Effect Interrupt Flag."]
# [inline (always)]
pub const fn cteif (& self) -> bool { let val = (self . 0 >> 0usize) & 0x01 ; val != 0 } # [doc = "Clear Tearing Effect Interrupt Flag."]
# [inline (always)]
pub fn set_cteif (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 0usize)) | (((val as u32) & 0x01) << 0usize) ; } # [doc = "Clear End of Refresh Interrupt Flag."]
# [inline (always)]
pub const fn cerif (& self) -> bool { let val = (self . 0 >> 1usize) & 0x01 ; val != 0 } # [doc = "Clear End of Refresh Interrupt Flag."]
# [inline (always)]
pub fn set_cerif (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 1usize)) | (((val as u32) & 0x01) << 1usize) ; } # [doc = "Clear PLL Lock Interrupt Flag."]
# [inline (always)]
pub const fn cplllif (& self) -> bool { let val = (self . 0 >> 9usize) & 0x01 ; val != 0 } # [doc = "Clear PLL Lock Interrupt Flag."]
# [inline (always)]
pub fn set_cplllif (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 9usize)) | (((val as u32) & 0x01) << 9usize) ; } # [doc = "Clear PLL Unlock Interrupt Flag."]
# [inline (always)]
pub const fn cplluif (& self) -> bool { let val = (self . 0 >> 10usize) & 0x01 ; val != 0 } # [doc = "Clear PLL Unlock Interrupt Flag."]
# [inline (always)]
pub fn set_cplluif (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 10usize)) | (((val as u32) & 0x01) << 10usize) ; } # [doc = "Clear Regulator Ready Interrupt Flag."]
# [inline (always)]
pub const fn crrif (& self) -> bool { let val = (self . 0 >> 13usize) & 0x01 ; val != 0 } # [doc = "Clear Regulator Ready Interrupt Flag."]
# [inline (always)]
pub fn set_crrif (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 13usize)) | (((val as u32) & 0x01) << 13usize) ; } } impl Default for Wifcr { # [inline (always)]
fn default () -> Wifcr { Wifcr (0) } } # [doc = "DSI Wrapper Interrupt & Status Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Wisr (pub u32) ; impl Wisr { # [doc = "Tearing Effect Interrupt Flag."]
# [inline (always)]
pub const fn teif (& self) -> bool { let val = (self . 0 >> 0usize) & 0x01 ; val != 0 } # [doc = "Tearing Effect Interrupt Flag."]
# [inline (always)]
pub fn set_teif (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 0usize)) | (((val as u32) & 0x01) << 0usize) ; } # [doc = "End of Refresh Interrupt Flag."]
# [inline (always)]
pub const fn erif (& self) -> bool { let val = (self . 0 >> 1usize) & 0x01 ; val != 0 } # [doc = "End of Refresh Interrupt Flag."]
# [inline (always)]
pub fn set_erif (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 1usize)) | (((val as u32) & 0x01) << 1usize) ; } # [doc = "Busy Flag."]
# [inline (always)]
pub const fn busy (& self) -> bool { let val = (self . 0 >> 2usize) & 0x01 ; val != 0 } # [doc = "Busy Flag."]
# [inline (always)]
pub fn set_busy (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 2usize)) | (((val as u32) & 0x01) << 2usize) ; } # [doc = "PLL Lock Status."]
# [inline (always)]
pub const fn pllls (& self) -> bool { let val = (self . 0 >> 8usize) & 0x01 ; val != 0 } # [doc = "PLL Lock Status."]
# [inline (always)]
pub fn set_pllls (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 8usize)) | (((val as u32) & 0x01) << 8usize) ; } # [doc = "PLL Lock Interrupt Flag."]
# [inline (always)]
pub const fn plllif (& self) -> bool { let val = (self . 0 >> 9usize) & 0x01 ; val != 0 } # [doc = "PLL Lock Interrupt Flag."]
# [inline (always)]
pub fn set_plllif (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 9usize)) | (((val as u32) & 0x01) << 9usize) ; } # [doc = "PLL Unlock Interrupt Flag."]
# [inline (always)]
pub const fn plluif (& self) -> bool { let val = (self . 0 >> 10usize) & 0x01 ; val != 0 } # [doc = "PLL Unlock Interrupt Flag."]
# [inline (always)]
pub fn set_plluif (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 10usize)) | (((val as u32) & 0x01) << 10usize) ; } # [doc = "Regulator Ready Status."]
# [inline (always)]
pub const fn rrs (& self) -> bool { let val = (self . 0 >> 12usize) & 0x01 ; val != 0 } # [doc = "Regulator Ready Status."]
# [inline (always)]
pub fn set_rrs (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 12usize)) | (((val as u32) & 0x01) << 12usize) ; } # [doc = "Regulator Ready Interrupt Flag."]
# [inline (always)]
pub const fn rrif (& self) -> bool { let val = (self . 0 >> 13usize) & 0x01 ; val != 0 } # [doc = "Regulator Ready Interrupt Flag."]
# [inline (always)]
pub fn set_rrif (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 13usize)) | (((val as u32) & 0x01) << 13usize) ; } } impl Default for Wisr { # [inline (always)]
fn default () -> Wisr { Wisr (0) } } # [doc = "DSI Wrapper PHY Configuration Register 0."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Wpcr0 (pub u32) ; impl Wpcr0 { # [doc = "Unit Interval multiplied by 4."]
# [inline (always)]
pub const fn uix4 (& self) -> u8 { let val = (self . 0 >> 0usize) & 0x3f ; val as u8 } # [doc = "Unit Interval multiplied by 4."]
# [inline (always)]
pub fn set_uix4 (& mut self , val : u8) { self . 0 = (self . 0 & ! (0x3f << 0usize)) | (((val as u32) & 0x3f) << 0usize) ; } # [doc = "Swap Clock Lane pins."]
# [inline (always)]
pub const fn swcl (& self) -> bool { let val = (self . 0 >> 6usize) & 0x01 ; val != 0 } # [doc = "Swap Clock Lane pins."]
# [inline (always)]
pub fn set_swcl (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 6usize)) | (((val as u32) & 0x01) << 6usize) ; } # [doc = "Swap Data Lane 0 pins."]
# [inline (always)]
pub const fn swdl0 (& self) -> bool { let val = (self . 0 >> 7usize) & 0x01 ; val != 0 } # [doc = "Swap Data Lane 0 pins."]
# [inline (always)]
pub fn set_swdl0 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 7usize)) | (((val as u32) & 0x01) << 7usize) ; } # [doc = "Swap Data Lane 1 pins."]
# [inline (always)]
pub const fn swdl1 (& self) -> bool { let val = (self . 0 >> 8usize) & 0x01 ; val != 0 } # [doc = "Swap Data Lane 1 pins."]
# [inline (always)]
pub fn set_swdl1 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 8usize)) | (((val as u32) & 0x01) << 8usize) ; } # [doc = "Invert Hight-Speed data signal on Clock Lane."]
# [inline (always)]
pub const fn hsicl (& self) -> bool { let val = (self . 0 >> 9usize) & 0x01 ; val != 0 } # [doc = "Invert Hight-Speed data signal on Clock Lane."]
# [inline (always)]
pub fn set_hsicl (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 9usize)) | (((val as u32) & 0x01) << 9usize) ; } # [doc = "Invert the Hight-Speed data signal on Data Lane 0."]
# [inline (always)]
pub const fn hsidl0 (& self) -> bool { let val = (self . 0 >> 10usize) & 0x01 ; val != 0 } # [doc = "Invert the Hight-Speed data signal on Data Lane 0."]
# [inline (always)]
pub fn set_hsidl0 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 10usize)) | (((val as u32) & 0x01) << 10usize) ; } # [doc = "Invert the High-Speed data signal on Data Lane 1."]
# [inline (always)]
pub const fn hsidl1 (& self) -> bool { let val = (self . 0 >> 11usize) & 0x01 ; val != 0 } # [doc = "Invert the High-Speed data signal on Data Lane 1."]
# [inline (always)]
pub fn set_hsidl1 (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 11usize)) | (((val as u32) & 0x01) << 11usize) ; } # [doc = "Force in TX Stop Mode the Clock Lane."]
# [inline (always)]
pub const fn ftxsmcl (& self) -> bool { let val = (self . 0 >> 12usize) & 0x01 ; val != 0 } # [doc = "Force in TX Stop Mode the Clock Lane."]
# [inline (always)]
pub fn set_ftxsmcl (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 12usize)) | (((val as u32) & 0x01) << 12usize) ; } # [doc = "Force in TX Stop Mode the Data Lanes."]
# [inline (always)]
pub const fn ftxsmdl (& self) -> bool { let val = (self . 0 >> 13usize) & 0x01 ; val != 0 } # [doc = "Force in TX Stop Mode the Data Lanes."]
# [inline (always)]
pub fn set_ftxsmdl (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 13usize)) | (((val as u32) & 0x01) << 13usize) ; } # [doc = "Contention Detection OFF on Data Lanes."]
# [inline (always)]
pub const fn cdoffdl (& self) -> bool { let val = (self . 0 >> 14usize) & 0x01 ; val != 0 } # [doc = "Contention Detection OFF on Data Lanes."]
# [inline (always)]
pub fn set_cdoffdl (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 14usize)) | (((val as u32) & 0x01) << 14usize) ; } # [doc = "Turn Disable Data Lanes."]
# [inline (always)]
pub const fn tddl (& self) -> bool { let val = (self . 0 >> 16usize) & 0x01 ; val != 0 } # [doc = "Turn Disable Data Lanes."]
# [inline (always)]
pub fn set_tddl (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 16usize)) | (((val as u32) & 0x01) << 16usize) ; } # [doc = "Pull-Down Enable."]
# [inline (always)]
pub const fn pden (& self) -> bool { let val = (self . 0 >> 18usize) & 0x01 ; val != 0 } # [doc = "Pull-Down Enable."]
# [inline (always)]
pub fn set_pden (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 18usize)) | (((val as u32) & 0x01) << 18usize) ; } # [doc = "custom time for tCLK-PREPARE Enable."]
# [inline (always)]
pub const fn tclkprepen (& self) -> bool { let val = (self . 0 >> 19usize) & 0x01 ; val != 0 } # [doc = "custom time for tCLK-PREPARE Enable."]
# [inline (always)]
pub fn set_tclkprepen (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 19usize)) | (((val as u32) & 0x01) << 19usize) ; } # [doc = "custom time for tCLK-ZERO Enable."]
# [inline (always)]
pub const fn tclkzeroen (& self) -> bool { let val = (self . 0 >> 20usize) & 0x01 ; val != 0 } # [doc = "custom time for tCLK-ZERO Enable."]
# [inline (always)]
pub fn set_tclkzeroen (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 20usize)) | (((val as u32) & 0x01) << 20usize) ; } # [doc = "custom time for tHS-PREPARE Enable."]
# [inline (always)]
pub const fn thsprepen (& self) -> bool { let val = (self . 0 >> 21usize) & 0x01 ; val != 0 } # [doc = "custom time for tHS-PREPARE Enable."]
# [inline (always)]
pub fn set_thsprepen (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 21usize)) | (((val as u32) & 0x01) << 21usize) ; } # [doc = "custom time for tHS-TRAIL Enable."]
# [inline (always)]
pub const fn thstrailen (& self) -> bool { let val = (self . 0 >> 22usize) & 0x01 ; val != 0 } # [doc = "custom time for tHS-TRAIL Enable."]
# [inline (always)]
pub fn set_thstrailen (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 22usize)) | (((val as u32) & 0x01) << 22usize) ; } # [doc = "custom time for tHS-ZERO Enable."]
# [inline (always)]
pub const fn thszeroen (& self) -> bool { let val = (self . 0 >> 23usize) & 0x01 ; val != 0 } # [doc = "custom time for tHS-ZERO Enable."]
# [inline (always)]
pub fn set_thszeroen (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 23usize)) | (((val as u32) & 0x01) << 23usize) ; } # [doc = "custom time for tLPX for Data lanes Enable."]
# [inline (always)]
pub const fn tlpxden (& self) -> bool { let val = (self . 0 >> 24usize) & 0x01 ; val != 0 } # [doc = "custom time for tLPX for Data lanes Enable."]
# [inline (always)]
pub fn set_tlpxden (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 24usize)) | (((val as u32) & 0x01) << 24usize) ; } # [doc = "custom time for tHS-EXIT Enable."]
# [inline (always)]
pub const fn thsexiten (& self) -> bool { let val = (self . 0 >> 25usize) & 0x01 ; val != 0 } # [doc = "custom time for tHS-EXIT Enable."]
# [inline (always)]
pub fn set_thsexiten (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 25usize)) | (((val as u32) & 0x01) << 25usize) ; } # [doc = "custom time for tLPX for Clock lane Enable."]
# [inline (always)]
pub const fn tlpxcen (& self) -> bool { let val = (self . 0 >> 26usize) & 0x01 ; val != 0 } # [doc = "custom time for tLPX for Clock lane Enable."]
# [inline (always)]
pub fn set_tlpxcen (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 26usize)) | (((val as u32) & 0x01) << 26usize) ; } # [doc = "custom time for tCLK-POST Enable."]
# [inline (always)]
pub const fn tclkposten (& self) -> bool { let val = (self . 0 >> 27usize) & 0x01 ; val != 0 } # [doc = "custom time for tCLK-POST Enable."]
# [inline (always)]
pub fn set_tclkposten (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 27usize)) | (((val as u32) & 0x01) << 27usize) ; } } impl Default for Wpcr0 { # [inline (always)]
fn default () -> Wpcr0 { Wpcr0 (0) } } # [doc = "DSI Wrapper PHY Configuration Register 1."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Wpcr1 (pub u32) ; impl Wpcr1 { # [doc = "High-Speed Transmission Delay on Clock Lane."]
# [inline (always)]
pub const fn hstxdcl (& self) -> u8 { let val = (self . 0 >> 0usize) & 0x03 ; val as u8 } # [doc = "High-Speed Transmission Delay on Clock Lane."]
# [inline (always)]
pub fn set_hstxdcl (& mut self , val : u8) { self . 0 = (self . 0 & ! (0x03 << 0usize)) | (((val as u32) & 0x03) << 0usize) ; } # [doc = "High-Speed Transmission Delay on Data Lanes."]
# [inline (always)]
pub const fn hstxdll (& self) -> u8 { let val = (self . 0 >> 2usize) & 0x03 ; val as u8 } # [doc = "High-Speed Transmission Delay on Data Lanes."]
# [inline (always)]
pub fn set_hstxdll (& mut self , val : u8) { self . 0 = (self . 0 & ! (0x03 << 2usize)) | (((val as u32) & 0x03) << 2usize) ; } # [doc = "Low-Power transmission Slew Rate Compensation on Clock Lane."]
# [inline (always)]
pub const fn lpsrcl (& self) -> u8 { let val = (self . 0 >> 6usize) & 0x03 ; val as u8 } # [doc = "Low-Power transmission Slew Rate Compensation on Clock Lane."]
# [inline (always)]
pub fn set_lpsrcl (& mut self , val : u8) { self . 0 = (self . 0 & ! (0x03 << 6usize)) | (((val as u32) & 0x03) << 6usize) ; } # [doc = "Low-Power transmission Slew Rate Compensation on Data Lanes."]
# [inline (always)]
pub const fn lpsrdl (& self) -> u8 { let val = (self . 0 >> 8usize) & 0x03 ; val as u8 } # [doc = "Low-Power transmission Slew Rate Compensation on Data Lanes."]
# [inline (always)]
pub fn set_lpsrdl (& mut self , val : u8) { self . 0 = (self . 0 & ! (0x03 << 8usize)) | (((val as u32) & 0x03) << 8usize) ; } # [doc = "SDD Control."]
# [inline (always)]
pub const fn sdcc (& self) -> bool { let val = (self . 0 >> 12usize) & 0x01 ; val != 0 } # [doc = "SDD Control."]
# [inline (always)]
pub fn set_sdcc (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 12usize)) | (((val as u32) & 0x01) << 12usize) ; } # [doc = "High-Speed Transmission Slew Rate Control on Clock Lane."]
# [inline (always)]
pub const fn hstxsrccl (& self) -> u8 { let val = (self . 0 >> 16usize) & 0x03 ; val as u8 } # [doc = "High-Speed Transmission Slew Rate Control on Clock Lane."]
# [inline (always)]
pub fn set_hstxsrccl (& mut self , val : u8) { self . 0 = (self . 0 & ! (0x03 << 16usize)) | (((val as u32) & 0x03) << 16usize) ; } # [doc = "High-Speed Transmission Slew Rate Control on Data Lanes."]
# [inline (always)]
pub const fn hstxsrcdl (& self) -> u8 { let val = (self . 0 >> 18usize) & 0x03 ; val as u8 } # [doc = "High-Speed Transmission Slew Rate Control on Data Lanes."]
# [inline (always)]
pub fn set_hstxsrcdl (& mut self , val : u8) { self . 0 = (self . 0 & ! (0x03 << 18usize)) | (((val as u32) & 0x03) << 18usize) ; } # [doc = "Forces LP Receiver in Low-Power Mode."]
# [inline (always)]
pub const fn flprxlpm (& self) -> bool { let val = (self . 0 >> 22usize) & 0x01 ; val != 0 } # [doc = "Forces LP Receiver in Low-Power Mode."]
# [inline (always)]
pub fn set_flprxlpm (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 22usize)) | (((val as u32) & 0x01) << 22usize) ; } # [doc = "Low-Power RX low-pass Filtering Tuning."]
# [inline (always)]
pub const fn lprxft (& self) -> u8 { let val = (self . 0 >> 25usize) & 0x03 ; val as u8 } # [doc = "Low-Power RX low-pass Filtering Tuning."]
# [inline (always)]
pub fn set_lprxft (& mut self , val : u8) { self . 0 = (self . 0 & ! (0x03 << 25usize)) | (((val as u32) & 0x03) << 25usize) ; } } impl Default for Wpcr1 { # [inline (always)]
fn default () -> Wpcr1 { Wpcr1 (0) } } # [doc = "DSI Wrapper PHY Configuration Register 2."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Wpcr2 (pub u32) ; impl Wpcr2 { # [doc = "tCLK-PREPARE."]
# [inline (always)]
pub const fn tclkprep (& self) -> u8 { let val = (self . 0 >> 0usize) & 0xff ; val as u8 } # [doc = "tCLK-PREPARE."]
# [inline (always)]
pub fn set_tclkprep (& mut self , val : u8) { self . 0 = (self . 0 & ! (0xff << 0usize)) | (((val as u32) & 0xff) << 0usize) ; } # [doc = "tCLK-ZERO."]
# [inline (always)]
pub const fn tclkzeo (& self) -> u8 { let val = (self . 0 >> 8usize) & 0xff ; val as u8 } # [doc = "tCLK-ZERO."]
# [inline (always)]
pub fn set_tclkzeo (& mut self , val : u8) { self . 0 = (self . 0 & ! (0xff << 8usize)) | (((val as u32) & 0xff) << 8usize) ; } # [doc = "tHS-PREPARE."]
# [inline (always)]
pub const fn thsprep (& self) -> u8 { let val = (self . 0 >> 16usize) & 0xff ; val as u8 } # [doc = "tHS-PREPARE."]
# [inline (always)]
pub fn set_thsprep (& mut self , val : u8) { self . 0 = (self . 0 & ! (0xff << 16usize)) | (((val as u32) & 0xff) << 16usize) ; } # [doc = "tHSTRAIL."]
# [inline (always)]
pub const fn thstrail (& self) -> u8 { let val = (self . 0 >> 24usize) & 0xff ; val as u8 } # [doc = "tHSTRAIL."]
# [inline (always)]
pub fn set_thstrail (& mut self , val : u8) { self . 0 = (self . 0 & ! (0xff << 24usize)) | (((val as u32) & 0xff) << 24usize) ; } } impl Default for Wpcr2 { # [inline (always)]
fn default () -> Wpcr2 { Wpcr2 (0) } } # [doc = "DSI Wrapper PHY Configuration Register 3."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Wpcr3 (pub u32) ; impl Wpcr3 { # [doc = "tHS-ZERO."]
# [inline (always)]
pub const fn thszero (& self) -> u8 { let val = (self . 0 >> 0usize) & 0xff ; val as u8 } # [doc = "tHS-ZERO."]
# [inline (always)]
pub fn set_thszero (& mut self , val : u8) { self . 0 = (self . 0 & ! (0xff << 0usize)) | (((val as u32) & 0xff) << 0usize) ; } # [doc = "tLPX for Data lanes."]
# [inline (always)]
pub const fn tlpxd (& self) -> u8 { let val = (self . 0 >> 8usize) & 0xff ; val as u8 } # [doc = "tLPX for Data lanes."]
# [inline (always)]
pub fn set_tlpxd (& mut self , val : u8) { self . 0 = (self . 0 & ! (0xff << 8usize)) | (((val as u32) & 0xff) << 8usize) ; } # [doc = "tHSEXIT."]
# [inline (always)]
pub const fn thsexit (& self) -> u8 { let val = (self . 0 >> 16usize) & 0xff ; val as u8 } # [doc = "tHSEXIT."]
# [inline (always)]
pub fn set_thsexit (& mut self , val : u8) { self . 0 = (self . 0 & ! (0xff << 16usize)) | (((val as u32) & 0xff) << 16usize) ; } # [doc = "tLPXC for Clock lane."]
# [inline (always)]
pub const fn tlpxc (& self) -> u8 { let val = (self . 0 >> 24usize) & 0xff ; val as u8 } # [doc = "tLPXC for Clock lane."]
# [inline (always)]
pub fn set_tlpxc (& mut self , val : u8) { self . 0 = (self . 0 & ! (0xff << 24usize)) | (((val as u32) & 0xff) << 24usize) ; } } impl Default for Wpcr3 { # [inline (always)]
fn default () -> Wpcr3 { Wpcr3 (0) } } # [doc = "DSI Wrapper PHY Configuration Register 4."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Wpcr4 (pub u32) ; impl Wpcr4 { # [doc = "tCLK-POST."]
# [inline (always)]
pub const fn tclkpost (& self) -> u8 { let val = (self . 0 >> 0usize) & 0xff ; val as u8 } # [doc = "tCLK-POST."]
# [inline (always)]
pub fn set_tclkpost (& mut self , val : u8) { self . 0 = (self . 0 & ! (0xff << 0usize)) | (((val as u32) & 0xff) << 0usize) ; } } impl Default for Wpcr4 { # [inline (always)]
fn default () -> Wpcr4 { Wpcr4 (0) } } # [doc = "DSI Wrapper Regulator and PLL Control Register."]
# [repr (transparent)]
# [derive (Copy , Clone , Eq , PartialEq)]
pub struct Wrpcr (pub u32) ; impl Wrpcr { # [doc = "PLL Enable."]
# [inline (always)]
pub const fn pllen (& self) -> bool { let val = (self . 0 >> 0usize) & 0x01 ; val != 0 } # [doc = "PLL Enable."]
# [inline (always)]
pub fn set_pllen (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 0usize)) | (((val as u32) & 0x01) << 0usize) ; } # [doc = "PLL Loop Division Factor."]
# [inline (always)]
pub const fn ndiv (& self) -> u8 { let val = (self . 0 >> 2usize) & 0x7f ; val as u8 } # [doc = "PLL Loop Division Factor."]
# [inline (always)]
pub fn set_ndiv (& mut self , val : u8) { self . 0 = (self . 0 & ! (0x7f << 2usize)) | (((val as u32) & 0x7f) << 2usize) ; } # [doc = "PLL Input Division Factor."]
# [inline (always)]
pub const fn idf (& self) -> u8 { let val = (self . 0 >> 11usize) & 0x0f ; val as u8 } # [doc = "PLL Input Division Factor."]
# [inline (always)]
pub fn set_idf (& mut self , val : u8) { self . 0 = (self . 0 & ! (0x0f << 11usize)) | (((val as u32) & 0x0f) << 11usize) ; } # [doc = "PLL Output Division Factor."]
# [inline (always)]
pub const fn odf (& self) -> u8 { let val = (self . 0 >> 16usize) & 0x03 ; val as u8 } # [doc = "PLL Output Division Factor."]
# [inline (always)]
pub fn set_odf (& mut self , val : u8) { self . 0 = (self . 0 & ! (0x03 << 16usize)) | (((val as u32) & 0x03) << 16usize) ; } # [doc = "Regulator Enable."]
# [inline (always)]
pub const fn regen (& self) -> bool { let val = (self . 0 >> 24usize) & 0x01 ; val != 0 } # [doc = "Regulator Enable."]
# [inline (always)]
pub fn set_regen (& mut self , val : bool) { self . 0 = (self . 0 & ! (0x01 << 24usize)) | (((val as u32) & 0x01) << 24usize) ; } } impl Default for Wrpcr { # [inline (always)]
fn default () -> Wrpcr { Wrpcr (0) } } }