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
#[doc = "LPUART"]
#[repr(C)]
pub struct RegisterBlock {
    #[doc = "Version ID Register"]
    pub VERID: crate::RORegister<u32>,
    #[doc = "Parameter Register"]
    pub PARAM: crate::RORegister<u32>,
    #[doc = "LPUART Global Register"]
    pub GLOBAL: crate::RWRegister<u32>,
    #[doc = "LPUART Pin Configuration Register"]
    pub PINCFG: crate::RWRegister<u32>,
    #[doc = "LPUART Baud Rate Register"]
    pub BAUD: crate::RWRegister<u32>,
    #[doc = "LPUART Status Register"]
    pub STAT: crate::RWRegister<u32>,
    #[doc = "LPUART Control Register"]
    pub CTRL: crate::RWRegister<u32>,
    #[doc = "LPUART Data Register"]
    pub DATA: crate::RWRegister<u32>,
    #[doc = "LPUART Match Address Register"]
    pub MATCH: crate::RWRegister<u32>,
    #[doc = "LPUART Modem IrDA Register"]
    pub MODIR: crate::RWRegister<u32>,
    #[doc = "LPUART FIFO Register"]
    pub FIFO: crate::RWRegister<u32>,
    #[doc = "LPUART Watermark Register"]
    pub WATER: crate::RWRegister<u32>,
}
#[doc = "Version ID Register"]
pub mod VERID {
    #[doc = "Feature Identification Number"]
    pub mod FEATURE {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Standard feature set."]
            pub const FEATURE_1: u32 = 0x01;
            #[doc = "Standard feature set with MODEM/IrDA support."]
            pub const FEATURE_3: u32 = 0x03;
        }
    }
    #[doc = "Minor Version Number"]
    pub mod MINOR {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Major Version Number"]
    pub mod MAJOR {
        pub const offset: u32 = 24;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Parameter Register"]
pub mod PARAM {
    #[doc = "Transmit FIFO Size"]
    pub mod TXFIFO {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Receive FIFO Size"]
    pub mod RXFIFO {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "LPUART Global Register"]
pub mod GLOBAL {
    #[doc = "Software Reset"]
    pub mod RST {
        pub const offset: u32 = 1;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Module is not reset."]
            pub const RST_0: u32 = 0;
            #[doc = "Module is reset."]
            pub const RST_1: u32 = 0x01;
        }
    }
}
#[doc = "LPUART Pin Configuration Register"]
pub mod PINCFG {
    #[doc = "Trigger Select"]
    pub mod TRGSEL {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Input trigger is disabled."]
            pub const TRGSEL_0: u32 = 0;
            #[doc = "Input trigger is used instead of RXD pin input."]
            pub const TRGSEL_1: u32 = 0x01;
            #[doc = "Input trigger is used instead of CTS_B pin input."]
            pub const TRGSEL_2: u32 = 0x02;
            #[doc = "Input trigger is used to modulate the TXD pin output. The TXD pin output (after TXINV configuration) is ANDed with the input trigger."]
            pub const TRGSEL_3: u32 = 0x03;
        }
    }
}
#[doc = "LPUART Baud Rate Register"]
pub mod BAUD {
    #[doc = "Baud Rate Modulo Divisor."]
    pub mod SBR {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x1fff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Stop Bit Number Select"]
    pub mod SBNS {
        pub const offset: u32 = 13;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "One stop bit."]
            pub const SBNS_0: u32 = 0;
            #[doc = "Two stop bits."]
            pub const SBNS_1: u32 = 0x01;
        }
    }
    #[doc = "RX Input Active Edge Interrupt Enable"]
    pub mod RXEDGIE {
        pub const offset: u32 = 14;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Hardware interrupts from STAT\\[RXEDGIF\\] are disabled."]
            pub const RXEDGIE_0: u32 = 0;
            #[doc = "Hardware interrupt is requested when STAT\\[RXEDGIF\\] flag is 1."]
            pub const RXEDGIE_1: u32 = 0x01;
        }
    }
    #[doc = "LIN Break Detect Interrupt Enable"]
    pub mod LBKDIE {
        pub const offset: u32 = 15;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Hardware interrupts from STAT\\[LBKDIF\\] flag are disabled (use polling)."]
            pub const LBKDIE_0: u32 = 0;
            #[doc = "Hardware interrupt requested when STAT\\[LBKDIF\\] flag is 1."]
            pub const LBKDIE_1: u32 = 0x01;
        }
    }
    #[doc = "Resynchronization Disable"]
    pub mod RESYNCDIS {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Resynchronization during received data word is supported"]
            pub const RESYNCDIS_0: u32 = 0;
            #[doc = "Resynchronization during received data word is disabled"]
            pub const RESYNCDIS_1: u32 = 0x01;
        }
    }
    #[doc = "Both Edge Sampling"]
    pub mod BOTHEDGE {
        pub const offset: u32 = 17;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Receiver samples input data using the rising edge of the baud rate clock."]
            pub const BOTHEDGE_0: u32 = 0;
            #[doc = "Receiver samples input data using the rising and falling edge of the baud rate clock."]
            pub const BOTHEDGE_1: u32 = 0x01;
        }
    }
    #[doc = "Match Configuration"]
    pub mod MATCFG {
        pub const offset: u32 = 18;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Address Match Wakeup"]
            pub const MATCFG_0: u32 = 0;
            #[doc = "Idle Match Wakeup"]
            pub const MATCFG_1: u32 = 0x01;
            #[doc = "Match On and Match Off"]
            pub const MATCFG_2: u32 = 0x02;
            #[doc = "Enables RWU on Data Match and Match On/Off for transmitter CTS input"]
            pub const MATCFG_3: u32 = 0x03;
        }
    }
    #[doc = "Receiver Idle DMA Enable"]
    pub mod RIDMAE {
        pub const offset: u32 = 20;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "DMA request disabled."]
            pub const RIDMAE_0: u32 = 0;
            #[doc = "DMA request enabled."]
            pub const RIDMAE_1: u32 = 0x01;
        }
    }
    #[doc = "Receiver Full DMA Enable"]
    pub mod RDMAE {
        pub const offset: u32 = 21;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "DMA request disabled."]
            pub const RDMAE_0: u32 = 0;
            #[doc = "DMA request enabled."]
            pub const RDMAE_1: u32 = 0x01;
        }
    }
    #[doc = "Transmitter DMA Enable"]
    pub mod TDMAE {
        pub const offset: u32 = 23;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "DMA request disabled."]
            pub const TDMAE_0: u32 = 0;
            #[doc = "DMA request enabled."]
            pub const TDMAE_1: u32 = 0x01;
        }
    }
    #[doc = "Oversampling Ratio"]
    pub mod OSR {
        pub const offset: u32 = 24;
        pub const mask: u32 = 0x1f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Writing 0 to this field will result in an oversampling ratio of 16"]
            pub const OSR_0: u32 = 0;
            #[doc = "Oversampling ratio of 4, requires BOTHEDGE to be set."]
            pub const OSR_3: u32 = 0x03;
            #[doc = "Oversampling ratio of 5, requires BOTHEDGE to be set."]
            pub const OSR_4: u32 = 0x04;
            #[doc = "Oversampling ratio of 6, requires BOTHEDGE to be set."]
            pub const OSR_5: u32 = 0x05;
            #[doc = "Oversampling ratio of 7, requires BOTHEDGE to be set."]
            pub const OSR_6: u32 = 0x06;
            #[doc = "Oversampling ratio of 8."]
            pub const OSR_7: u32 = 0x07;
            #[doc = "Oversampling ratio of 9."]
            pub const OSR_8: u32 = 0x08;
            #[doc = "Oversampling ratio of 10."]
            pub const OSR_9: u32 = 0x09;
            #[doc = "Oversampling ratio of 11."]
            pub const OSR_10: u32 = 0x0a;
            #[doc = "Oversampling ratio of 12."]
            pub const OSR_11: u32 = 0x0b;
            #[doc = "Oversampling ratio of 13."]
            pub const OSR_12: u32 = 0x0c;
            #[doc = "Oversampling ratio of 14."]
            pub const OSR_13: u32 = 0x0d;
            #[doc = "Oversampling ratio of 15."]
            pub const OSR_14: u32 = 0x0e;
            #[doc = "Oversampling ratio of 16."]
            pub const OSR_15: u32 = 0x0f;
            #[doc = "Oversampling ratio of 17."]
            pub const OSR_16: u32 = 0x10;
            #[doc = "Oversampling ratio of 18."]
            pub const OSR_17: u32 = 0x11;
            #[doc = "Oversampling ratio of 19."]
            pub const OSR_18: u32 = 0x12;
            #[doc = "Oversampling ratio of 20."]
            pub const OSR_19: u32 = 0x13;
            #[doc = "Oversampling ratio of 21."]
            pub const OSR_20: u32 = 0x14;
            #[doc = "Oversampling ratio of 22."]
            pub const OSR_21: u32 = 0x15;
            #[doc = "Oversampling ratio of 23."]
            pub const OSR_22: u32 = 0x16;
            #[doc = "Oversampling ratio of 24."]
            pub const OSR_23: u32 = 0x17;
            #[doc = "Oversampling ratio of 25."]
            pub const OSR_24: u32 = 0x18;
            #[doc = "Oversampling ratio of 26."]
            pub const OSR_25: u32 = 0x19;
            #[doc = "Oversampling ratio of 27."]
            pub const OSR_26: u32 = 0x1a;
            #[doc = "Oversampling ratio of 28."]
            pub const OSR_27: u32 = 0x1b;
            #[doc = "Oversampling ratio of 29."]
            pub const OSR_28: u32 = 0x1c;
            #[doc = "Oversampling ratio of 30."]
            pub const OSR_29: u32 = 0x1d;
            #[doc = "Oversampling ratio of 31."]
            pub const OSR_30: u32 = 0x1e;
            #[doc = "Oversampling ratio of 32."]
            pub const OSR_31: u32 = 0x1f;
        }
    }
    #[doc = "10-bit Mode select"]
    pub mod M10 {
        pub const offset: u32 = 29;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Receiver and transmitter use 7-bit to 9-bit data characters."]
            pub const M10_0: u32 = 0;
            #[doc = "Receiver and transmitter use 10-bit data characters."]
            pub const M10_1: u32 = 0x01;
        }
    }
    #[doc = "Match Address Mode Enable 2"]
    pub mod MAEN2 {
        pub const offset: u32 = 30;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Normal operation."]
            pub const MAEN2_0: u32 = 0;
            #[doc = "Enables automatic address matching or data matching mode for MATCH\\[MA2\\]."]
            pub const MAEN2_1: u32 = 0x01;
        }
    }
    #[doc = "Match Address Mode Enable 1"]
    pub mod MAEN1 {
        pub const offset: u32 = 31;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Normal operation."]
            pub const MAEN1_0: u32 = 0;
            #[doc = "Enables automatic address matching or data matching mode for MATCH\\[MA1\\]."]
            pub const MAEN1_1: u32 = 0x01;
        }
    }
}
#[doc = "LPUART Status Register"]
pub mod STAT {
    #[doc = "Match 2 Flag"]
    pub mod MA2F {
        pub const offset: u32 = 14;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Received data is not equal to MA2"]
            pub const MA2F_0: u32 = 0;
            #[doc = "Received data is equal to MA2"]
            pub const MA2F_1: u32 = 0x01;
        }
    }
    #[doc = "Match 1 Flag"]
    pub mod MA1F {
        pub const offset: u32 = 15;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Received data is not equal to MA1"]
            pub const MA1F_0: u32 = 0;
            #[doc = "Received data is equal to MA1"]
            pub const MA1F_1: u32 = 0x01;
        }
    }
    #[doc = "Parity Error Flag"]
    pub mod PF {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "No parity error."]
            pub const PF_0: u32 = 0;
            #[doc = "Parity error."]
            pub const PF_1: u32 = 0x01;
        }
    }
    #[doc = "Framing Error Flag"]
    pub mod FE {
        pub const offset: u32 = 17;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "No framing error detected. This does not guarantee the framing is correct."]
            pub const FE_0: u32 = 0;
            #[doc = "Framing error."]
            pub const FE_1: u32 = 0x01;
        }
    }
    #[doc = "Noise Flag"]
    pub mod NF {
        pub const offset: u32 = 18;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "No noise detected."]
            pub const NF_0: u32 = 0;
            #[doc = "Noise detected in the received character in the DATA register."]
            pub const NF_1: u32 = 0x01;
        }
    }
    #[doc = "Receiver Overrun Flag"]
    pub mod OR {
        pub const offset: u32 = 19;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "No overrun."]
            pub const OR_0: u32 = 0;
            #[doc = "Receive overrun (new LPUART data lost)."]
            pub const OR_1: u32 = 0x01;
        }
    }
    #[doc = "Idle Line Flag"]
    pub mod IDLE {
        pub const offset: u32 = 20;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "No idle line detected."]
            pub const IDLE_0: u32 = 0;
            #[doc = "Idle line was detected."]
            pub const IDLE_1: u32 = 0x01;
        }
    }
    #[doc = "Receive Data Register Full Flag"]
    pub mod RDRF {
        pub const offset: u32 = 21;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Receive data buffer empty."]
            pub const RDRF_0: u32 = 0;
            #[doc = "Receive data buffer full."]
            pub const RDRF_1: u32 = 0x01;
        }
    }
    #[doc = "Transmission Complete Flag"]
    pub mod TC {
        pub const offset: u32 = 22;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Transmitter active (sending data, a preamble, or a break)."]
            pub const TC_0: u32 = 0;
            #[doc = "Transmitter idle (transmission activity complete)."]
            pub const TC_1: u32 = 0x01;
        }
    }
    #[doc = "Transmit Data Register Empty Flag"]
    pub mod TDRE {
        pub const offset: u32 = 23;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Transmit data buffer full."]
            pub const TDRE_0: u32 = 0;
            #[doc = "Transmit data buffer empty."]
            pub const TDRE_1: u32 = 0x01;
        }
    }
    #[doc = "Receiver Active Flag"]
    pub mod RAF {
        pub const offset: u32 = 24;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "LPUART receiver idle waiting for a start bit."]
            pub const RAF_0: u32 = 0;
            #[doc = "LPUART receiver active (RXD input not idle)."]
            pub const RAF_1: u32 = 0x01;
        }
    }
    #[doc = "LIN Break Detection Enable"]
    pub mod LBKDE {
        pub const offset: u32 = 25;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "LIN break detect is disabled, normal break character can be detected."]
            pub const LBKDE_0: u32 = 0;
            #[doc = "LIN break detect is enabled. LIN break character is detected at length of 11 bit times (if M = 0) or 12 (if M = 1) or 13 (M10 = 1)."]
            pub const LBKDE_1: u32 = 0x01;
        }
    }
    #[doc = "Break Character Generation Length"]
    pub mod BRK13 {
        pub const offset: u32 = 26;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Break character is transmitted with length of 9 to 13 bit times."]
            pub const BRK13_0: u32 = 0;
            #[doc = "Break character is transmitted with length of 12 to 15 bit times."]
            pub const BRK13_1: u32 = 0x01;
        }
    }
    #[doc = "Receive Wake Up Idle Detect"]
    pub mod RWUID {
        pub const offset: u32 = 27;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "During receive standby state (RWU = 1), the IDLE bit does not get set upon detection of an idle character. During address match wakeup, the IDLE bit does not set when an address does not match."]
            pub const RWUID_0: u32 = 0;
            #[doc = "During receive standby state (RWU = 1), the IDLE bit gets set upon detection of an idle character. During address match wakeup, the IDLE bit does set when an address does not match."]
            pub const RWUID_1: u32 = 0x01;
        }
    }
    #[doc = "Receive Data Inversion"]
    pub mod RXINV {
        pub const offset: u32 = 28;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Receive data not inverted."]
            pub const RXINV_0: u32 = 0;
            #[doc = "Receive data inverted."]
            pub const RXINV_1: u32 = 0x01;
        }
    }
    #[doc = "MSB First"]
    pub mod MSBF {
        pub const offset: u32 = 29;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "LSB (bit0) is the first bit that is transmitted following the start bit. Further, the first bit received after the start bit is identified as bit0."]
            pub const MSBF_0: u32 = 0;
            #[doc = "MSB (bit9, bit8, bit7 or bit6) is the first bit that is transmitted following the start bit depending on the setting of CTRL\\[M\\], CTRL\\[PE\\] and BAUD\\[M10\\]. Further, the first bit received after the start bit is identified as bit9, bit8, bit7 or bit6 depending on the setting of CTRL\\[M\\] and CTRL\\[PE\\]."]
            pub const MSBF_1: u32 = 0x01;
        }
    }
    #[doc = "RXD Pin Active Edge Interrupt Flag"]
    pub mod RXEDGIF {
        pub const offset: u32 = 30;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "No active edge on the receive pin has occurred."]
            pub const RXEDGIF_0: u32 = 0;
            #[doc = "An active edge on the receive pin has occurred."]
            pub const RXEDGIF_1: u32 = 0x01;
        }
    }
    #[doc = "LIN Break Detect Interrupt Flag"]
    pub mod LBKDIF {
        pub const offset: u32 = 31;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "No LIN break character has been detected."]
            pub const LBKDIF_0: u32 = 0;
            #[doc = "LIN break character has been detected."]
            pub const LBKDIF_1: u32 = 0x01;
        }
    }
}
#[doc = "LPUART Control Register"]
pub mod CTRL {
    #[doc = "Parity Type"]
    pub mod PT {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Even parity."]
            pub const PT_0: u32 = 0;
            #[doc = "Odd parity."]
            pub const PT_1: u32 = 0x01;
        }
    }
    #[doc = "Parity Enable"]
    pub mod PE {
        pub const offset: u32 = 1;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "No hardware parity generation or checking."]
            pub const PE_0: u32 = 0;
            #[doc = "Parity enabled."]
            pub const PE_1: u32 = 0x01;
        }
    }
    #[doc = "Idle Line Type Select"]
    pub mod ILT {
        pub const offset: u32 = 2;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Idle character bit count starts after start bit."]
            pub const ILT_0: u32 = 0;
            #[doc = "Idle character bit count starts after stop bit."]
            pub const ILT_1: u32 = 0x01;
        }
    }
    #[doc = "Receiver Wakeup Method Select"]
    pub mod WAKE {
        pub const offset: u32 = 3;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Configures RWU for idle-line wakeup."]
            pub const WAKE_0: u32 = 0;
            #[doc = "Configures RWU with address-mark wakeup."]
            pub const WAKE_1: u32 = 0x01;
        }
    }
    #[doc = "9-Bit or 8-Bit Mode Select"]
    pub mod M {
        pub const offset: u32 = 4;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Receiver and transmitter use 8-bit data characters."]
            pub const M_0: u32 = 0;
            #[doc = "Receiver and transmitter use 9-bit data characters."]
            pub const M_1: u32 = 0x01;
        }
    }
    #[doc = "Receiver Source Select"]
    pub mod RSRC {
        pub const offset: u32 = 5;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Provided LOOPS is set, RSRC is cleared, selects internal loop back mode and the LPUART does not use the RXD pin."]
            pub const RSRC_0: u32 = 0;
            #[doc = "Single-wire LPUART mode where the TXD pin is connected to the transmitter output and receiver input."]
            pub const RSRC_1: u32 = 0x01;
        }
    }
    #[doc = "Doze Enable"]
    pub mod DOZEEN {
        pub const offset: u32 = 6;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "LPUART is enabled in Doze mode."]
            pub const DOZEEN_0: u32 = 0;
            #[doc = "LPUART is disabled in Doze mode."]
            pub const DOZEEN_1: u32 = 0x01;
        }
    }
    #[doc = "Loop Mode Select"]
    pub mod LOOPS {
        pub const offset: u32 = 7;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Normal operation - RXD and TXD use separate pins."]
            pub const LOOPS_0: u32 = 0;
            #[doc = "Loop mode or single-wire mode where transmitter outputs are internally connected to receiver input (see RSRC bit)."]
            pub const LOOPS_1: u32 = 0x01;
        }
    }
    #[doc = "Idle Configuration"]
    pub mod IDLECFG {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0x07 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "1 idle character"]
            pub const IDLECFG_0: u32 = 0;
            #[doc = "2 idle characters"]
            pub const IDLECFG_1: u32 = 0x01;
            #[doc = "4 idle characters"]
            pub const IDLECFG_2: u32 = 0x02;
            #[doc = "8 idle characters"]
            pub const IDLECFG_3: u32 = 0x03;
            #[doc = "16 idle characters"]
            pub const IDLECFG_4: u32 = 0x04;
            #[doc = "32 idle characters"]
            pub const IDLECFG_5: u32 = 0x05;
            #[doc = "64 idle characters"]
            pub const IDLECFG_6: u32 = 0x06;
            #[doc = "128 idle characters"]
            pub const IDLECFG_7: u32 = 0x07;
        }
    }
    #[doc = "7-Bit Mode Select"]
    pub mod M7 {
        pub const offset: u32 = 11;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Receiver and transmitter use 8-bit to 10-bit data characters."]
            pub const M7_0: u32 = 0;
            #[doc = "Receiver and transmitter use 7-bit data characters."]
            pub const M7_1: u32 = 0x01;
        }
    }
    #[doc = "Match 2 Interrupt Enable"]
    pub mod MA2IE {
        pub const offset: u32 = 14;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "MA2F interrupt disabled"]
            pub const MA2IE_0: u32 = 0;
            #[doc = "MA2F interrupt enabled"]
            pub const MA2IE_1: u32 = 0x01;
        }
    }
    #[doc = "Match 1 Interrupt Enable"]
    pub mod MA1IE {
        pub const offset: u32 = 15;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "MA1F interrupt disabled"]
            pub const MA1IE_0: u32 = 0;
            #[doc = "MA1F interrupt enabled"]
            pub const MA1IE_1: u32 = 0x01;
        }
    }
    #[doc = "Send Break"]
    pub mod SBK {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Normal transmitter operation."]
            pub const SBK_0: u32 = 0;
            #[doc = "Queue break character(s) to be sent."]
            pub const SBK_1: u32 = 0x01;
        }
    }
    #[doc = "Receiver Wakeup Control"]
    pub mod RWU {
        pub const offset: u32 = 17;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Normal receiver operation."]
            pub const RWU_0: u32 = 0;
            #[doc = "LPUART receiver in standby waiting for wakeup condition."]
            pub const RWU_1: u32 = 0x01;
        }
    }
    #[doc = "Receiver Enable"]
    pub mod RE {
        pub const offset: u32 = 18;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Receiver disabled."]
            pub const RE_0: u32 = 0;
            #[doc = "Receiver enabled."]
            pub const RE_1: u32 = 0x01;
        }
    }
    #[doc = "Transmitter Enable"]
    pub mod TE {
        pub const offset: u32 = 19;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Transmitter disabled."]
            pub const TE_0: u32 = 0;
            #[doc = "Transmitter enabled."]
            pub const TE_1: u32 = 0x01;
        }
    }
    #[doc = "Idle Line Interrupt Enable"]
    pub mod ILIE {
        pub const offset: u32 = 20;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Hardware interrupts from IDLE disabled; use polling."]
            pub const ILIE_0: u32 = 0;
            #[doc = "Hardware interrupt requested when IDLE flag is 1."]
            pub const ILIE_1: u32 = 0x01;
        }
    }
    #[doc = "Receiver Interrupt Enable"]
    pub mod RIE {
        pub const offset: u32 = 21;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Hardware interrupts from RDRF disabled; use polling."]
            pub const RIE_0: u32 = 0;
            #[doc = "Hardware interrupt requested when RDRF flag is 1."]
            pub const RIE_1: u32 = 0x01;
        }
    }
    #[doc = "Transmission Complete Interrupt Enable for"]
    pub mod TCIE {
        pub const offset: u32 = 22;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Hardware interrupts from TC disabled; use polling."]
            pub const TCIE_0: u32 = 0;
            #[doc = "Hardware interrupt requested when TC flag is 1."]
            pub const TCIE_1: u32 = 0x01;
        }
    }
    #[doc = "Transmit Interrupt Enable"]
    pub mod TIE {
        pub const offset: u32 = 23;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Hardware interrupts from TDRE disabled; use polling."]
            pub const TIE_0: u32 = 0;
            #[doc = "Hardware interrupt requested when TDRE flag is 1."]
            pub const TIE_1: u32 = 0x01;
        }
    }
    #[doc = "Parity Error Interrupt Enable"]
    pub mod PEIE {
        pub const offset: u32 = 24;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "PF interrupts disabled; use polling)."]
            pub const PEIE_0: u32 = 0;
            #[doc = "Hardware interrupt requested when PF is set."]
            pub const PEIE_1: u32 = 0x01;
        }
    }
    #[doc = "Framing Error Interrupt Enable"]
    pub mod FEIE {
        pub const offset: u32 = 25;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "FE interrupts disabled; use polling."]
            pub const FEIE_0: u32 = 0;
            #[doc = "Hardware interrupt requested when FE is set."]
            pub const FEIE_1: u32 = 0x01;
        }
    }
    #[doc = "Noise Error Interrupt Enable"]
    pub mod NEIE {
        pub const offset: u32 = 26;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "NF interrupts disabled; use polling."]
            pub const NEIE_0: u32 = 0;
            #[doc = "Hardware interrupt requested when NF is set."]
            pub const NEIE_1: u32 = 0x01;
        }
    }
    #[doc = "Overrun Interrupt Enable"]
    pub mod ORIE {
        pub const offset: u32 = 27;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "OR interrupts disabled; use polling."]
            pub const ORIE_0: u32 = 0;
            #[doc = "Hardware interrupt requested when OR is set."]
            pub const ORIE_1: u32 = 0x01;
        }
    }
    #[doc = "Transmit Data Inversion"]
    pub mod TXINV {
        pub const offset: u32 = 28;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Transmit data not inverted."]
            pub const TXINV_0: u32 = 0;
            #[doc = "Transmit data inverted."]
            pub const TXINV_1: u32 = 0x01;
        }
    }
    #[doc = "TXD Pin Direction in Single-Wire Mode"]
    pub mod TXDIR {
        pub const offset: u32 = 29;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "TXD pin is an input in single-wire mode."]
            pub const TXDIR_0: u32 = 0;
            #[doc = "TXD pin is an output in single-wire mode."]
            pub const TXDIR_1: u32 = 0x01;
        }
    }
    #[doc = "Receive Bit 9 / Transmit Bit 8"]
    pub mod R9T8 {
        pub const offset: u32 = 30;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Receive Bit 8 / Transmit Bit 9"]
    pub mod R8T9 {
        pub const offset: u32 = 31;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "LPUART Data Register"]
pub mod DATA {
    #[doc = "R0T0"]
    pub mod R0T0 {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "R1T1"]
    pub mod R1T1 {
        pub const offset: u32 = 1;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "R2T2"]
    pub mod R2T2 {
        pub const offset: u32 = 2;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "R3T3"]
    pub mod R3T3 {
        pub const offset: u32 = 3;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "R4T4"]
    pub mod R4T4 {
        pub const offset: u32 = 4;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "R5T5"]
    pub mod R5T5 {
        pub const offset: u32 = 5;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "R6T6"]
    pub mod R6T6 {
        pub const offset: u32 = 6;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "R7T7"]
    pub mod R7T7 {
        pub const offset: u32 = 7;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "R8T8"]
    pub mod R8T8 {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "R9T9"]
    pub mod R9T9 {
        pub const offset: u32 = 9;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Idle Line"]
    pub mod IDLINE {
        pub const offset: u32 = 11;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Receiver was not idle before receiving this character."]
            pub const IDLINE_0: u32 = 0;
            #[doc = "Receiver was idle before receiving this character."]
            pub const IDLINE_1: u32 = 0x01;
        }
    }
    #[doc = "Receive Buffer Empty"]
    pub mod RXEMPT {
        pub const offset: u32 = 12;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Receive buffer contains valid data."]
            pub const RXEMPT_0: u32 = 0;
            #[doc = "Receive buffer is empty, data returned on read is not valid."]
            pub const RXEMPT_1: u32 = 0x01;
        }
    }
    #[doc = "Frame Error / Transmit Special Character"]
    pub mod FRETSC {
        pub const offset: u32 = 13;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "The dataword was received without a frame error on read, or transmit a normal character on write."]
            pub const FRETSC_0: u32 = 0;
            #[doc = "The dataword was received with a frame error, or transmit an idle or break character on transmit."]
            pub const FRETSC_1: u32 = 0x01;
        }
    }
    #[doc = "PARITYE"]
    pub mod PARITYE {
        pub const offset: u32 = 14;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "The dataword was received without a parity error."]
            pub const PARITYE_0: u32 = 0;
            #[doc = "The dataword was received with a parity error."]
            pub const PARITYE_1: u32 = 0x01;
        }
    }
    #[doc = "NOISY"]
    pub mod NOISY {
        pub const offset: u32 = 15;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "The dataword was received without noise."]
            pub const NOISY_0: u32 = 0;
            #[doc = "The data was received with noise."]
            pub const NOISY_1: u32 = 0x01;
        }
    }
}
#[doc = "LPUART Match Address Register"]
pub mod MATCH {
    #[doc = "Match Address 1"]
    pub mod MA1 {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x03ff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Match Address 2"]
    pub mod MA2 {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x03ff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "LPUART Modem IrDA Register"]
pub mod MODIR {
    #[doc = "Transmitter clear-to-send enable"]
    pub mod TXCTSE {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "CTS has no effect on the transmitter."]
            pub const TXCTSE_0: u32 = 0;
            #[doc = "Enables clear-to-send operation. The transmitter checks the state of CTS each time it is ready to send a character. If CTS is asserted, the character is sent. If CTS is deasserted, the signal TXD remains in the mark state and transmission is delayed until CTS is asserted. Changes in CTS as a character is being sent do not affect its transmission."]
            pub const TXCTSE_1: u32 = 0x01;
        }
    }
    #[doc = "Transmitter request-to-send enable"]
    pub mod TXRTSE {
        pub const offset: u32 = 1;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "The transmitter has no effect on RTS."]
            pub const TXRTSE_0: u32 = 0;
            #[doc = "When a character is placed into an empty transmitter data buffer , RTS asserts one bit time before the start bit is transmitted. RTS deasserts one bit time after all characters in the transmitter data buffer and shift register are completely sent, including the last stop bit."]
            pub const TXRTSE_1: u32 = 0x01;
        }
    }
    #[doc = "Transmitter request-to-send polarity"]
    pub mod TXRTSPOL {
        pub const offset: u32 = 2;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Transmitter RTS is active low."]
            pub const TXRTSPOL_0: u32 = 0;
            #[doc = "Transmitter RTS is active high."]
            pub const TXRTSPOL_1: u32 = 0x01;
        }
    }
    #[doc = "Receiver request-to-send enable"]
    pub mod RXRTSE {
        pub const offset: u32 = 3;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "The receiver has no effect on RTS."]
            pub const RXRTSE_0: u32 = 0;
            #[doc = "RTS is deasserted if the receiver data register is full or a start bit has been detected that would cause the receiver data register to become full. RTS is asserted if the receiver data register is not full and has not detected a start bit that would cause the receiver data register to become full."]
            pub const RXRTSE_1: u32 = 0x01;
        }
    }
    #[doc = "Transmit CTS Configuration"]
    pub mod TXCTSC {
        pub const offset: u32 = 4;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "CTS input is sampled at the start of each character."]
            pub const TXCTSC_0: u32 = 0;
            #[doc = "CTS input is sampled when the transmitter is idle."]
            pub const TXCTSC_1: u32 = 0x01;
        }
    }
    #[doc = "Transmit CTS Source"]
    pub mod TXCTSSRC {
        pub const offset: u32 = 5;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "CTS input is the CTS_B pin."]
            pub const TXCTSSRC_0: u32 = 0;
            #[doc = "CTS input is the inverted Receiver Match result."]
            pub const TXCTSSRC_1: u32 = 0x01;
        }
    }
    #[doc = "Receive RTS Configuration"]
    pub mod RTSWATER {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Transmitter narrow pulse"]
    pub mod TNP {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "1/OSR."]
            pub const TNP_0: u32 = 0;
            #[doc = "2/OSR."]
            pub const TNP_1: u32 = 0x01;
            #[doc = "3/OSR."]
            pub const TNP_2: u32 = 0x02;
            #[doc = "4/OSR."]
            pub const TNP_3: u32 = 0x03;
        }
    }
    #[doc = "Infrared enable"]
    pub mod IREN {
        pub const offset: u32 = 18;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "IR disabled."]
            pub const IREN_0: u32 = 0;
            #[doc = "IR enabled."]
            pub const IREN_1: u32 = 0x01;
        }
    }
}
#[doc = "LPUART FIFO Register"]
pub mod FIFO {
    #[doc = "Receive FIFO Buffer Depth"]
    pub mod RXFIFOSIZE {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x07 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Receive FIFO/Buffer depth = 1 dataword."]
            pub const RXFIFOSIZE_0: u32 = 0;
            #[doc = "Receive FIFO/Buffer depth = 4 datawords."]
            pub const RXFIFOSIZE_1: u32 = 0x01;
            #[doc = "Receive FIFO/Buffer depth = 8 datawords."]
            pub const RXFIFOSIZE_2: u32 = 0x02;
            #[doc = "Receive FIFO/Buffer depth = 16 datawords."]
            pub const RXFIFOSIZE_3: u32 = 0x03;
            #[doc = "Receive FIFO/Buffer depth = 32 datawords."]
            pub const RXFIFOSIZE_4: u32 = 0x04;
            #[doc = "Receive FIFO/Buffer depth = 64 datawords."]
            pub const RXFIFOSIZE_5: u32 = 0x05;
            #[doc = "Receive FIFO/Buffer depth = 128 datawords."]
            pub const RXFIFOSIZE_6: u32 = 0x06;
            #[doc = "Receive FIFO/Buffer depth = 256 datawords."]
            pub const RXFIFOSIZE_7: u32 = 0x07;
        }
    }
    #[doc = "Receive FIFO Enable"]
    pub mod RXFE {
        pub const offset: u32 = 3;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Receive FIFO is not enabled. Buffer is depth 1."]
            pub const RXFE_0: u32 = 0;
            #[doc = "Receive FIFO is enabled. Buffer is depth indicted by RXFIFOSIZE."]
            pub const RXFE_1: u32 = 0x01;
        }
    }
    #[doc = "Transmit FIFO Buffer Depth"]
    pub mod TXFIFOSIZE {
        pub const offset: u32 = 4;
        pub const mask: u32 = 0x07 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Transmit FIFO/Buffer depth = 1 dataword."]
            pub const TXFIFOSIZE_0: u32 = 0;
            #[doc = "Transmit FIFO/Buffer depth = 4 datawords."]
            pub const TXFIFOSIZE_1: u32 = 0x01;
            #[doc = "Transmit FIFO/Buffer depth = 8 datawords."]
            pub const TXFIFOSIZE_2: u32 = 0x02;
            #[doc = "Transmit FIFO/Buffer depth = 16 datawords."]
            pub const TXFIFOSIZE_3: u32 = 0x03;
            #[doc = "Transmit FIFO/Buffer depth = 32 datawords."]
            pub const TXFIFOSIZE_4: u32 = 0x04;
            #[doc = "Transmit FIFO/Buffer depth = 64 datawords."]
            pub const TXFIFOSIZE_5: u32 = 0x05;
            #[doc = "Transmit FIFO/Buffer depth = 128 datawords."]
            pub const TXFIFOSIZE_6: u32 = 0x06;
            #[doc = "Transmit FIFO/Buffer depth = 256 datawords"]
            pub const TXFIFOSIZE_7: u32 = 0x07;
        }
    }
    #[doc = "Transmit FIFO Enable"]
    pub mod TXFE {
        pub const offset: u32 = 7;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Transmit FIFO is not enabled. Buffer is depth 1."]
            pub const TXFE_0: u32 = 0;
            #[doc = "Transmit FIFO is enabled. Buffer is depth indicated by TXFIFOSIZE."]
            pub const TXFE_1: u32 = 0x01;
        }
    }
    #[doc = "Receive FIFO Underflow Interrupt Enable"]
    pub mod RXUFE {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "RXUF flag does not generate an interrupt to the host."]
            pub const RXUFE_0: u32 = 0;
            #[doc = "RXUF flag generates an interrupt to the host."]
            pub const RXUFE_1: u32 = 0x01;
        }
    }
    #[doc = "Transmit FIFO Overflow Interrupt Enable"]
    pub mod TXOFE {
        pub const offset: u32 = 9;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "TXOF flag does not generate an interrupt to the host."]
            pub const TXOFE_0: u32 = 0;
            #[doc = "TXOF flag generates an interrupt to the host."]
            pub const TXOFE_1: u32 = 0x01;
        }
    }
    #[doc = "Receiver Idle Empty Enable"]
    pub mod RXIDEN {
        pub const offset: u32 = 10;
        pub const mask: u32 = 0x07 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Disable RDRF assertion due to partially filled FIFO when receiver is idle."]
            pub const RXIDEN_0: u32 = 0;
            #[doc = "Enable RDRF assertion due to partially filled FIFO when receiver is idle for 1 character."]
            pub const RXIDEN_1: u32 = 0x01;
            #[doc = "Enable RDRF assertion due to partially filled FIFO when receiver is idle for 2 characters."]
            pub const RXIDEN_2: u32 = 0x02;
            #[doc = "Enable RDRF assertion due to partially filled FIFO when receiver is idle for 4 characters."]
            pub const RXIDEN_3: u32 = 0x03;
            #[doc = "Enable RDRF assertion due to partially filled FIFO when receiver is idle for 8 characters."]
            pub const RXIDEN_4: u32 = 0x04;
            #[doc = "Enable RDRF assertion due to partially filled FIFO when receiver is idle for 16 characters."]
            pub const RXIDEN_5: u32 = 0x05;
            #[doc = "Enable RDRF assertion due to partially filled FIFO when receiver is idle for 32 characters."]
            pub const RXIDEN_6: u32 = 0x06;
            #[doc = "Enable RDRF assertion due to partially filled FIFO when receiver is idle for 64 characters."]
            pub const RXIDEN_7: u32 = 0x07;
        }
    }
    #[doc = "Receive FIFO/Buffer Flush"]
    pub mod RXFLUSH {
        pub const offset: u32 = 14;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "No flush operation occurs."]
            pub const RXFLUSH_0: u32 = 0;
            #[doc = "All data in the receive FIFO/buffer is cleared out."]
            pub const RXFLUSH_1: u32 = 0x01;
        }
    }
    #[doc = "Transmit FIFO/Buffer Flush"]
    pub mod TXFLUSH {
        pub const offset: u32 = 15;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "No flush operation occurs."]
            pub const TXFLUSH_0: u32 = 0;
            #[doc = "All data in the transmit FIFO/Buffer is cleared out."]
            pub const TXFLUSH_1: u32 = 0x01;
        }
    }
    #[doc = "Receiver Buffer Underflow Flag"]
    pub mod RXUF {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "No receive buffer underflow has occurred since the last time the flag was cleared."]
            pub const RXUF_0: u32 = 0;
            #[doc = "At least one receive buffer underflow has occurred since the last time the flag was cleared."]
            pub const RXUF_1: u32 = 0x01;
        }
    }
    #[doc = "Transmitter Buffer Overflow Flag"]
    pub mod TXOF {
        pub const offset: u32 = 17;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "No transmit buffer overflow has occurred since the last time the flag was cleared."]
            pub const TXOF_0: u32 = 0;
            #[doc = "At least one transmit buffer overflow has occurred since the last time the flag was cleared."]
            pub const TXOF_1: u32 = 0x01;
        }
    }
    #[doc = "Receive Buffer/FIFO Empty"]
    pub mod RXEMPT {
        pub const offset: u32 = 22;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Receive buffer is not empty."]
            pub const RXEMPT_0: u32 = 0;
            #[doc = "Receive buffer is empty."]
            pub const RXEMPT_1: u32 = 0x01;
        }
    }
    #[doc = "Transmit Buffer/FIFO Empty"]
    pub mod TXEMPT {
        pub const offset: u32 = 23;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Transmit buffer is not empty."]
            pub const TXEMPT_0: u32 = 0;
            #[doc = "Transmit buffer is empty."]
            pub const TXEMPT_1: u32 = 0x01;
        }
    }
}
#[doc = "LPUART Watermark Register"]
pub mod WATER {
    #[doc = "Transmit Watermark"]
    pub mod TXWATER {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Transmit Counter"]
    pub mod TXCOUNT {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0x07 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Receive Watermark"]
    pub mod RXWATER {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Receive Counter"]
    pub mod RXCOUNT {
        pub const offset: u32 = 24;
        pub const mask: u32 = 0x07 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}