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
#[doc = "Register `CMR%s_ALT` reader"]
pub struct R(crate::R<WAVEFORM_CMR_ALT_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<WAVEFORM_CMR_ALT_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<WAVEFORM_CMR_ALT_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<WAVEFORM_CMR_ALT_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `CMR%s_ALT` writer"]
pub struct W(crate::W<WAVEFORM_CMR_ALT_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<WAVEFORM_CMR_ALT_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl core::ops::DerefMut for W {
    #[inline(always)]
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.0
    }
}
impl From<crate::W<WAVEFORM_CMR_ALT_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<WAVEFORM_CMR_ALT_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `TCCLKS` reader - Clock Selection"]
pub type TCCLKS_R = crate::FieldReader<u8, TCCLKSSELECT_A>;
#[doc = "Clock Selection\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum TCCLKSSELECT_A {
    #[doc = "0: TIMER_DIV1_CLOCK"]
    TIMER_DIV1_CLOCK = 0,
    #[doc = "1: TIMER_DIV2_CLOCK"]
    TIMER_DIV2_CLOCK = 1,
    #[doc = "2: TIMER_DIV3_CLOCK"]
    TIMER_DIV3_CLOCK = 2,
    #[doc = "3: TIMER_DIV4_CLOCK"]
    TIMER_DIV4_CLOCK = 3,
    #[doc = "4: TIMER_DIV5_CLOCK"]
    TIMER_DIV5_CLOCK = 4,
    #[doc = "5: XC0"]
    XC0 = 5,
    #[doc = "6: XC1"]
    XC1 = 6,
    #[doc = "7: XC2"]
    XC2 = 7,
}
impl From<TCCLKSSELECT_A> for u8 {
    #[inline(always)]
    fn from(variant: TCCLKSSELECT_A) -> Self {
        variant as _
    }
}
impl TCCLKS_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> TCCLKSSELECT_A {
        match self.bits {
            0 => TCCLKSSELECT_A::TIMER_DIV1_CLOCK,
            1 => TCCLKSSELECT_A::TIMER_DIV2_CLOCK,
            2 => TCCLKSSELECT_A::TIMER_DIV3_CLOCK,
            3 => TCCLKSSELECT_A::TIMER_DIV4_CLOCK,
            4 => TCCLKSSELECT_A::TIMER_DIV5_CLOCK,
            5 => TCCLKSSELECT_A::XC0,
            6 => TCCLKSSELECT_A::XC1,
            7 => TCCLKSSELECT_A::XC2,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `TIMER_DIV1_CLOCK`"]
    #[inline(always)]
    pub fn is_timer_div1_clock(&self) -> bool {
        *self == TCCLKSSELECT_A::TIMER_DIV1_CLOCK
    }
    #[doc = "Checks if the value of the field is `TIMER_DIV2_CLOCK`"]
    #[inline(always)]
    pub fn is_timer_div2_clock(&self) -> bool {
        *self == TCCLKSSELECT_A::TIMER_DIV2_CLOCK
    }
    #[doc = "Checks if the value of the field is `TIMER_DIV3_CLOCK`"]
    #[inline(always)]
    pub fn is_timer_div3_clock(&self) -> bool {
        *self == TCCLKSSELECT_A::TIMER_DIV3_CLOCK
    }
    #[doc = "Checks if the value of the field is `TIMER_DIV4_CLOCK`"]
    #[inline(always)]
    pub fn is_timer_div4_clock(&self) -> bool {
        *self == TCCLKSSELECT_A::TIMER_DIV4_CLOCK
    }
    #[doc = "Checks if the value of the field is `TIMER_DIV5_CLOCK`"]
    #[inline(always)]
    pub fn is_timer_div5_clock(&self) -> bool {
        *self == TCCLKSSELECT_A::TIMER_DIV5_CLOCK
    }
    #[doc = "Checks if the value of the field is `XC0`"]
    #[inline(always)]
    pub fn is_xc0(&self) -> bool {
        *self == TCCLKSSELECT_A::XC0
    }
    #[doc = "Checks if the value of the field is `XC1`"]
    #[inline(always)]
    pub fn is_xc1(&self) -> bool {
        *self == TCCLKSSELECT_A::XC1
    }
    #[doc = "Checks if the value of the field is `XC2`"]
    #[inline(always)]
    pub fn is_xc2(&self) -> bool {
        *self == TCCLKSSELECT_A::XC2
    }
}
#[doc = "Field `TCCLKS` writer - Clock Selection"]
pub type TCCLKS_W<'a, const O: u8> =
    crate::FieldWriterSafe<'a, u32, WAVEFORM_CMR_ALT_SPEC, u8, TCCLKSSELECT_A, 3, O>;
impl<'a, const O: u8> TCCLKS_W<'a, O> {
    #[doc = "TIMER_DIV1_CLOCK"]
    #[inline(always)]
    pub fn timer_div1_clock(self) -> &'a mut W {
        self.variant(TCCLKSSELECT_A::TIMER_DIV1_CLOCK)
    }
    #[doc = "TIMER_DIV2_CLOCK"]
    #[inline(always)]
    pub fn timer_div2_clock(self) -> &'a mut W {
        self.variant(TCCLKSSELECT_A::TIMER_DIV2_CLOCK)
    }
    #[doc = "TIMER_DIV3_CLOCK"]
    #[inline(always)]
    pub fn timer_div3_clock(self) -> &'a mut W {
        self.variant(TCCLKSSELECT_A::TIMER_DIV3_CLOCK)
    }
    #[doc = "TIMER_DIV4_CLOCK"]
    #[inline(always)]
    pub fn timer_div4_clock(self) -> &'a mut W {
        self.variant(TCCLKSSELECT_A::TIMER_DIV4_CLOCK)
    }
    #[doc = "TIMER_DIV5_CLOCK"]
    #[inline(always)]
    pub fn timer_div5_clock(self) -> &'a mut W {
        self.variant(TCCLKSSELECT_A::TIMER_DIV5_CLOCK)
    }
    #[doc = "XC0"]
    #[inline(always)]
    pub fn xc0(self) -> &'a mut W {
        self.variant(TCCLKSSELECT_A::XC0)
    }
    #[doc = "XC1"]
    #[inline(always)]
    pub fn xc1(self) -> &'a mut W {
        self.variant(TCCLKSSELECT_A::XC1)
    }
    #[doc = "XC2"]
    #[inline(always)]
    pub fn xc2(self) -> &'a mut W {
        self.variant(TCCLKSSELECT_A::XC2)
    }
}
#[doc = "Field `CLKI` reader - Clock Invert"]
pub type CLKI_R = crate::BitReader<CLKISELECT_A>;
#[doc = "Clock Invert\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CLKISELECT_A {
    #[doc = "0: Counter is incremented on rising edge of the clock."]
    _0 = 0,
    #[doc = "1: Counter is incremented on falling edge of the clock."]
    _1 = 1,
}
impl From<CLKISELECT_A> for bool {
    #[inline(always)]
    fn from(variant: CLKISELECT_A) -> Self {
        variant as u8 != 0
    }
}
impl CLKI_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> CLKISELECT_A {
        match self.bits {
            false => CLKISELECT_A::_0,
            true => CLKISELECT_A::_1,
        }
    }
    #[doc = "Checks if the value of the field is `_0`"]
    #[inline(always)]
    pub fn is_0(&self) -> bool {
        *self == CLKISELECT_A::_0
    }
    #[doc = "Checks if the value of the field is `_1`"]
    #[inline(always)]
    pub fn is_1(&self) -> bool {
        *self == CLKISELECT_A::_1
    }
}
#[doc = "Field `CLKI` writer - Clock Invert"]
pub type CLKI_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, WAVEFORM_CMR_ALT_SPEC, CLKISELECT_A, O>;
impl<'a, const O: u8> CLKI_W<'a, O> {
    #[doc = "Counter is incremented on rising edge of the clock."]
    #[inline(always)]
    pub fn _0(self) -> &'a mut W {
        self.variant(CLKISELECT_A::_0)
    }
    #[doc = "Counter is incremented on falling edge of the clock."]
    #[inline(always)]
    pub fn _1(self) -> &'a mut W {
        self.variant(CLKISELECT_A::_1)
    }
}
#[doc = "Field `BURST` reader - Burst Signal Selection"]
pub type BURST_R = crate::FieldReader<u8, BURSTSELECT_A>;
#[doc = "Burst Signal Selection\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum BURSTSELECT_A {
    #[doc = "0: The clock is not gated by an external signal."]
    NOT_GATED = 0,
    #[doc = "1: XC0 is ANDed with the selected clock."]
    CLK_AND_XC0 = 1,
    #[doc = "2: XC1 is ANDed with the selected clock."]
    CLK_AND_XC1 = 2,
    #[doc = "3: XC2 is ANDed with the selected clock."]
    CLK_AND_XC2 = 3,
}
impl From<BURSTSELECT_A> for u8 {
    #[inline(always)]
    fn from(variant: BURSTSELECT_A) -> Self {
        variant as _
    }
}
impl BURST_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> BURSTSELECT_A {
        match self.bits {
            0 => BURSTSELECT_A::NOT_GATED,
            1 => BURSTSELECT_A::CLK_AND_XC0,
            2 => BURSTSELECT_A::CLK_AND_XC1,
            3 => BURSTSELECT_A::CLK_AND_XC2,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `NOT_GATED`"]
    #[inline(always)]
    pub fn is_not_gated(&self) -> bool {
        *self == BURSTSELECT_A::NOT_GATED
    }
    #[doc = "Checks if the value of the field is `CLK_AND_XC0`"]
    #[inline(always)]
    pub fn is_clk_and_xc0(&self) -> bool {
        *self == BURSTSELECT_A::CLK_AND_XC0
    }
    #[doc = "Checks if the value of the field is `CLK_AND_XC1`"]
    #[inline(always)]
    pub fn is_clk_and_xc1(&self) -> bool {
        *self == BURSTSELECT_A::CLK_AND_XC1
    }
    #[doc = "Checks if the value of the field is `CLK_AND_XC2`"]
    #[inline(always)]
    pub fn is_clk_and_xc2(&self) -> bool {
        *self == BURSTSELECT_A::CLK_AND_XC2
    }
}
#[doc = "Field `BURST` writer - Burst Signal Selection"]
pub type BURST_W<'a, const O: u8> =
    crate::FieldWriterSafe<'a, u32, WAVEFORM_CMR_ALT_SPEC, u8, BURSTSELECT_A, 2, O>;
impl<'a, const O: u8> BURST_W<'a, O> {
    #[doc = "The clock is not gated by an external signal."]
    #[inline(always)]
    pub fn not_gated(self) -> &'a mut W {
        self.variant(BURSTSELECT_A::NOT_GATED)
    }
    #[doc = "XC0 is ANDed with the selected clock."]
    #[inline(always)]
    pub fn clk_and_xc0(self) -> &'a mut W {
        self.variant(BURSTSELECT_A::CLK_AND_XC0)
    }
    #[doc = "XC1 is ANDed with the selected clock."]
    #[inline(always)]
    pub fn clk_and_xc1(self) -> &'a mut W {
        self.variant(BURSTSELECT_A::CLK_AND_XC1)
    }
    #[doc = "XC2 is ANDed with the selected clock."]
    #[inline(always)]
    pub fn clk_and_xc2(self) -> &'a mut W {
        self.variant(BURSTSELECT_A::CLK_AND_XC2)
    }
}
#[doc = "Field `CPCSTOP` reader - Counter Clock Stopped with RC Compare"]
pub type CPCSTOP_R = crate::BitReader<CPCSTOPSELECT_A>;
#[doc = "Counter Clock Stopped with RC Compare\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CPCSTOPSELECT_A {
    #[doc = "0: Counter clock is not stopped when counter reaches RC."]
    _0 = 0,
    #[doc = "1: Counter clock is stopped when counter reaches RC."]
    _1 = 1,
}
impl From<CPCSTOPSELECT_A> for bool {
    #[inline(always)]
    fn from(variant: CPCSTOPSELECT_A) -> Self {
        variant as u8 != 0
    }
}
impl CPCSTOP_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> CPCSTOPSELECT_A {
        match self.bits {
            false => CPCSTOPSELECT_A::_0,
            true => CPCSTOPSELECT_A::_1,
        }
    }
    #[doc = "Checks if the value of the field is `_0`"]
    #[inline(always)]
    pub fn is_0(&self) -> bool {
        *self == CPCSTOPSELECT_A::_0
    }
    #[doc = "Checks if the value of the field is `_1`"]
    #[inline(always)]
    pub fn is_1(&self) -> bool {
        *self == CPCSTOPSELECT_A::_1
    }
}
#[doc = "Field `CPCSTOP` writer - Counter Clock Stopped with RC Compare"]
pub type CPCSTOP_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, WAVEFORM_CMR_ALT_SPEC, CPCSTOPSELECT_A, O>;
impl<'a, const O: u8> CPCSTOP_W<'a, O> {
    #[doc = "Counter clock is not stopped when counter reaches RC."]
    #[inline(always)]
    pub fn _0(self) -> &'a mut W {
        self.variant(CPCSTOPSELECT_A::_0)
    }
    #[doc = "Counter clock is stopped when counter reaches RC."]
    #[inline(always)]
    pub fn _1(self) -> &'a mut W {
        self.variant(CPCSTOPSELECT_A::_1)
    }
}
#[doc = "Field `CPCDIS` reader - Counter Clock Disable with RC Compare"]
pub type CPCDIS_R = crate::BitReader<CPCDISSELECT_A>;
#[doc = "Counter Clock Disable with RC Compare\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CPCDISSELECT_A {
    #[doc = "0: Counter clock is not disabled when counter reaches RC."]
    _0 = 0,
    #[doc = "1: Counter clock is disabled when counter reaches RC."]
    _1 = 1,
}
impl From<CPCDISSELECT_A> for bool {
    #[inline(always)]
    fn from(variant: CPCDISSELECT_A) -> Self {
        variant as u8 != 0
    }
}
impl CPCDIS_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> CPCDISSELECT_A {
        match self.bits {
            false => CPCDISSELECT_A::_0,
            true => CPCDISSELECT_A::_1,
        }
    }
    #[doc = "Checks if the value of the field is `_0`"]
    #[inline(always)]
    pub fn is_0(&self) -> bool {
        *self == CPCDISSELECT_A::_0
    }
    #[doc = "Checks if the value of the field is `_1`"]
    #[inline(always)]
    pub fn is_1(&self) -> bool {
        *self == CPCDISSELECT_A::_1
    }
}
#[doc = "Field `CPCDIS` writer - Counter Clock Disable with RC Compare"]
pub type CPCDIS_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, WAVEFORM_CMR_ALT_SPEC, CPCDISSELECT_A, O>;
impl<'a, const O: u8> CPCDIS_W<'a, O> {
    #[doc = "Counter clock is not disabled when counter reaches RC."]
    #[inline(always)]
    pub fn _0(self) -> &'a mut W {
        self.variant(CPCDISSELECT_A::_0)
    }
    #[doc = "Counter clock is disabled when counter reaches RC."]
    #[inline(always)]
    pub fn _1(self) -> &'a mut W {
        self.variant(CPCDISSELECT_A::_1)
    }
}
#[doc = "Field `EEVTEDG` reader - External Event Edge Selection"]
pub type EEVTEDG_R = crate::FieldReader<u8, EEVTEDGSELECT_A>;
#[doc = "External Event Edge Selection\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum EEVTEDGSELECT_A {
    #[doc = "0: none"]
    NO_EDGE = 0,
    #[doc = "1: rising edge"]
    POS_EDGE = 1,
    #[doc = "2: falling edge"]
    NEG_EDGE = 2,
    #[doc = "3: each edge"]
    BOTH_EDGES = 3,
}
impl From<EEVTEDGSELECT_A> for u8 {
    #[inline(always)]
    fn from(variant: EEVTEDGSELECT_A) -> Self {
        variant as _
    }
}
impl EEVTEDG_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> EEVTEDGSELECT_A {
        match self.bits {
            0 => EEVTEDGSELECT_A::NO_EDGE,
            1 => EEVTEDGSELECT_A::POS_EDGE,
            2 => EEVTEDGSELECT_A::NEG_EDGE,
            3 => EEVTEDGSELECT_A::BOTH_EDGES,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `NO_EDGE`"]
    #[inline(always)]
    pub fn is_no_edge(&self) -> bool {
        *self == EEVTEDGSELECT_A::NO_EDGE
    }
    #[doc = "Checks if the value of the field is `POS_EDGE`"]
    #[inline(always)]
    pub fn is_pos_edge(&self) -> bool {
        *self == EEVTEDGSELECT_A::POS_EDGE
    }
    #[doc = "Checks if the value of the field is `NEG_EDGE`"]
    #[inline(always)]
    pub fn is_neg_edge(&self) -> bool {
        *self == EEVTEDGSELECT_A::NEG_EDGE
    }
    #[doc = "Checks if the value of the field is `BOTH_EDGES`"]
    #[inline(always)]
    pub fn is_both_edges(&self) -> bool {
        *self == EEVTEDGSELECT_A::BOTH_EDGES
    }
}
#[doc = "Field `EEVTEDG` writer - External Event Edge Selection"]
pub type EEVTEDG_W<'a, const O: u8> =
    crate::FieldWriterSafe<'a, u32, WAVEFORM_CMR_ALT_SPEC, u8, EEVTEDGSELECT_A, 2, O>;
impl<'a, const O: u8> EEVTEDG_W<'a, O> {
    #[doc = "none"]
    #[inline(always)]
    pub fn no_edge(self) -> &'a mut W {
        self.variant(EEVTEDGSELECT_A::NO_EDGE)
    }
    #[doc = "rising edge"]
    #[inline(always)]
    pub fn pos_edge(self) -> &'a mut W {
        self.variant(EEVTEDGSELECT_A::POS_EDGE)
    }
    #[doc = "falling edge"]
    #[inline(always)]
    pub fn neg_edge(self) -> &'a mut W {
        self.variant(EEVTEDGSELECT_A::NEG_EDGE)
    }
    #[doc = "each edge"]
    #[inline(always)]
    pub fn both_edges(self) -> &'a mut W {
        self.variant(EEVTEDGSELECT_A::BOTH_EDGES)
    }
}
#[doc = "Field `EEVT` reader - External Event Selection"]
pub type EEVT_R = crate::FieldReader<u8, EEVTSELECT_A>;
#[doc = "External Event Selection\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum EEVTSELECT_A {
    #[doc = "0: TIOB input. If TIOB is chosen as the external event signal, it is configured as an input and no longer generates waveforms."]
    TIOB_INPUT = 0,
    #[doc = "1: XC0 output"]
    XC0_OUTPUT = 1,
    #[doc = "2: XC1 output"]
    XC1_OUTPUT = 2,
    #[doc = "3: XC2 output"]
    XC2_OUTPUT = 3,
}
impl From<EEVTSELECT_A> for u8 {
    #[inline(always)]
    fn from(variant: EEVTSELECT_A) -> Self {
        variant as _
    }
}
impl EEVT_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> EEVTSELECT_A {
        match self.bits {
            0 => EEVTSELECT_A::TIOB_INPUT,
            1 => EEVTSELECT_A::XC0_OUTPUT,
            2 => EEVTSELECT_A::XC1_OUTPUT,
            3 => EEVTSELECT_A::XC2_OUTPUT,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `TIOB_INPUT`"]
    #[inline(always)]
    pub fn is_tiob_input(&self) -> bool {
        *self == EEVTSELECT_A::TIOB_INPUT
    }
    #[doc = "Checks if the value of the field is `XC0_OUTPUT`"]
    #[inline(always)]
    pub fn is_xc0_output(&self) -> bool {
        *self == EEVTSELECT_A::XC0_OUTPUT
    }
    #[doc = "Checks if the value of the field is `XC1_OUTPUT`"]
    #[inline(always)]
    pub fn is_xc1_output(&self) -> bool {
        *self == EEVTSELECT_A::XC1_OUTPUT
    }
    #[doc = "Checks if the value of the field is `XC2_OUTPUT`"]
    #[inline(always)]
    pub fn is_xc2_output(&self) -> bool {
        *self == EEVTSELECT_A::XC2_OUTPUT
    }
}
#[doc = "Field `EEVT` writer - External Event Selection"]
pub type EEVT_W<'a, const O: u8> =
    crate::FieldWriterSafe<'a, u32, WAVEFORM_CMR_ALT_SPEC, u8, EEVTSELECT_A, 2, O>;
impl<'a, const O: u8> EEVT_W<'a, O> {
    #[doc = "TIOB input. If TIOB is chosen as the external event signal, it is configured as an input and no longer generates waveforms."]
    #[inline(always)]
    pub fn tiob_input(self) -> &'a mut W {
        self.variant(EEVTSELECT_A::TIOB_INPUT)
    }
    #[doc = "XC0 output"]
    #[inline(always)]
    pub fn xc0_output(self) -> &'a mut W {
        self.variant(EEVTSELECT_A::XC0_OUTPUT)
    }
    #[doc = "XC1 output"]
    #[inline(always)]
    pub fn xc1_output(self) -> &'a mut W {
        self.variant(EEVTSELECT_A::XC1_OUTPUT)
    }
    #[doc = "XC2 output"]
    #[inline(always)]
    pub fn xc2_output(self) -> &'a mut W {
        self.variant(EEVTSELECT_A::XC2_OUTPUT)
    }
}
#[doc = "Field `ENETRG` reader - External Event Trigger Enable"]
pub type ENETRG_R = crate::BitReader<ENETRGSELECT_A>;
#[doc = "External Event Trigger Enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum ENETRGSELECT_A {
    #[doc = "0: The external event has no effect on the counter and its clock. In this case, the selected external event only controls the TIOA output."]
    _0 = 0,
    #[doc = "1: The external event resets the counter and starts the counter clock."]
    _1 = 1,
}
impl From<ENETRGSELECT_A> for bool {
    #[inline(always)]
    fn from(variant: ENETRGSELECT_A) -> Self {
        variant as u8 != 0
    }
}
impl ENETRG_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ENETRGSELECT_A {
        match self.bits {
            false => ENETRGSELECT_A::_0,
            true => ENETRGSELECT_A::_1,
        }
    }
    #[doc = "Checks if the value of the field is `_0`"]
    #[inline(always)]
    pub fn is_0(&self) -> bool {
        *self == ENETRGSELECT_A::_0
    }
    #[doc = "Checks if the value of the field is `_1`"]
    #[inline(always)]
    pub fn is_1(&self) -> bool {
        *self == ENETRGSELECT_A::_1
    }
}
#[doc = "Field `ENETRG` writer - External Event Trigger Enable"]
pub type ENETRG_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, WAVEFORM_CMR_ALT_SPEC, ENETRGSELECT_A, O>;
impl<'a, const O: u8> ENETRG_W<'a, O> {
    #[doc = "The external event has no effect on the counter and its clock. In this case, the selected external event only controls the TIOA output."]
    #[inline(always)]
    pub fn _0(self) -> &'a mut W {
        self.variant(ENETRGSELECT_A::_0)
    }
    #[doc = "The external event resets the counter and starts the counter clock."]
    #[inline(always)]
    pub fn _1(self) -> &'a mut W {
        self.variant(ENETRGSELECT_A::_1)
    }
}
#[doc = "Field `WAVSEL` reader - Waveform Selection"]
pub type WAVSEL_R = crate::FieldReader<u8, WAVSELSELECT_A>;
#[doc = "Waveform Selection\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum WAVSELSELECT_A {
    #[doc = "0: UP mode without automatic trigger on RC Compare"]
    UP_NO_AUTO = 0,
    #[doc = "1: UPDOWN mode without automatic trigger on RC Compare"]
    UPDOWN_NO_AUTO = 1,
    #[doc = "2: UP mode with automatic trigger on RC Compare"]
    UP_AUTO = 2,
    #[doc = "3: UPDOWN mode with automatic trigger on RC Compare"]
    UPDOWN_AUTO = 3,
}
impl From<WAVSELSELECT_A> for u8 {
    #[inline(always)]
    fn from(variant: WAVSELSELECT_A) -> Self {
        variant as _
    }
}
impl WAVSEL_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> WAVSELSELECT_A {
        match self.bits {
            0 => WAVSELSELECT_A::UP_NO_AUTO,
            1 => WAVSELSELECT_A::UPDOWN_NO_AUTO,
            2 => WAVSELSELECT_A::UP_AUTO,
            3 => WAVSELSELECT_A::UPDOWN_AUTO,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `UP_NO_AUTO`"]
    #[inline(always)]
    pub fn is_up_no_auto(&self) -> bool {
        *self == WAVSELSELECT_A::UP_NO_AUTO
    }
    #[doc = "Checks if the value of the field is `UPDOWN_NO_AUTO`"]
    #[inline(always)]
    pub fn is_updown_no_auto(&self) -> bool {
        *self == WAVSELSELECT_A::UPDOWN_NO_AUTO
    }
    #[doc = "Checks if the value of the field is `UP_AUTO`"]
    #[inline(always)]
    pub fn is_up_auto(&self) -> bool {
        *self == WAVSELSELECT_A::UP_AUTO
    }
    #[doc = "Checks if the value of the field is `UPDOWN_AUTO`"]
    #[inline(always)]
    pub fn is_updown_auto(&self) -> bool {
        *self == WAVSELSELECT_A::UPDOWN_AUTO
    }
}
#[doc = "Field `WAVSEL` writer - Waveform Selection"]
pub type WAVSEL_W<'a, const O: u8> =
    crate::FieldWriterSafe<'a, u32, WAVEFORM_CMR_ALT_SPEC, u8, WAVSELSELECT_A, 2, O>;
impl<'a, const O: u8> WAVSEL_W<'a, O> {
    #[doc = "UP mode without automatic trigger on RC Compare"]
    #[inline(always)]
    pub fn up_no_auto(self) -> &'a mut W {
        self.variant(WAVSELSELECT_A::UP_NO_AUTO)
    }
    #[doc = "UPDOWN mode without automatic trigger on RC Compare"]
    #[inline(always)]
    pub fn updown_no_auto(self) -> &'a mut W {
        self.variant(WAVSELSELECT_A::UPDOWN_NO_AUTO)
    }
    #[doc = "UP mode with automatic trigger on RC Compare"]
    #[inline(always)]
    pub fn up_auto(self) -> &'a mut W {
        self.variant(WAVSELSELECT_A::UP_AUTO)
    }
    #[doc = "UPDOWN mode with automatic trigger on RC Compare"]
    #[inline(always)]
    pub fn updown_auto(self) -> &'a mut W {
        self.variant(WAVSELSELECT_A::UPDOWN_AUTO)
    }
}
#[doc = "Field `WAVE` reader - WAVE"]
pub type WAVE_R = crate::BitReader<WAVESELECT_A>;
#[doc = "WAVE\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum WAVESELECT_A {
    #[doc = "0: Waveform Mode is disabled (Capture Mode is enabled)."]
    _0 = 0,
    #[doc = "1: Waveform Mode is enabled."]
    _1 = 1,
}
impl From<WAVESELECT_A> for bool {
    #[inline(always)]
    fn from(variant: WAVESELECT_A) -> Self {
        variant as u8 != 0
    }
}
impl WAVE_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> WAVESELECT_A {
        match self.bits {
            false => WAVESELECT_A::_0,
            true => WAVESELECT_A::_1,
        }
    }
    #[doc = "Checks if the value of the field is `_0`"]
    #[inline(always)]
    pub fn is_0(&self) -> bool {
        *self == WAVESELECT_A::_0
    }
    #[doc = "Checks if the value of the field is `_1`"]
    #[inline(always)]
    pub fn is_1(&self) -> bool {
        *self == WAVESELECT_A::_1
    }
}
#[doc = "Field `WAVE` writer - WAVE"]
pub type WAVE_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, WAVEFORM_CMR_ALT_SPEC, WAVESELECT_A, O>;
impl<'a, const O: u8> WAVE_W<'a, O> {
    #[doc = "Waveform Mode is disabled (Capture Mode is enabled)."]
    #[inline(always)]
    pub fn _0(self) -> &'a mut W {
        self.variant(WAVESELECT_A::_0)
    }
    #[doc = "Waveform Mode is enabled."]
    #[inline(always)]
    pub fn _1(self) -> &'a mut W {
        self.variant(WAVESELECT_A::_1)
    }
}
#[doc = "Field `ACPA` reader - RA Compare Effect on TIOA"]
pub type ACPA_R = crate::FieldReader<u8, ACPASELECT_A>;
#[doc = "RA Compare Effect on TIOA\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum ACPASELECT_A {
    #[doc = "0: none"]
    NONE = 0,
    #[doc = "1: set"]
    SET = 1,
    #[doc = "2: clear"]
    CLEAR = 2,
    #[doc = "3: toggle"]
    TOGGLE = 3,
}
impl From<ACPASELECT_A> for u8 {
    #[inline(always)]
    fn from(variant: ACPASELECT_A) -> Self {
        variant as _
    }
}
impl ACPA_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ACPASELECT_A {
        match self.bits {
            0 => ACPASELECT_A::NONE,
            1 => ACPASELECT_A::SET,
            2 => ACPASELECT_A::CLEAR,
            3 => ACPASELECT_A::TOGGLE,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `NONE`"]
    #[inline(always)]
    pub fn is_none(&self) -> bool {
        *self == ACPASELECT_A::NONE
    }
    #[doc = "Checks if the value of the field is `SET`"]
    #[inline(always)]
    pub fn is_set(&self) -> bool {
        *self == ACPASELECT_A::SET
    }
    #[doc = "Checks if the value of the field is `CLEAR`"]
    #[inline(always)]
    pub fn is_clear(&self) -> bool {
        *self == ACPASELECT_A::CLEAR
    }
    #[doc = "Checks if the value of the field is `TOGGLE`"]
    #[inline(always)]
    pub fn is_toggle(&self) -> bool {
        *self == ACPASELECT_A::TOGGLE
    }
}
#[doc = "Field `ACPA` writer - RA Compare Effect on TIOA"]
pub type ACPA_W<'a, const O: u8> =
    crate::FieldWriterSafe<'a, u32, WAVEFORM_CMR_ALT_SPEC, u8, ACPASELECT_A, 2, O>;
impl<'a, const O: u8> ACPA_W<'a, O> {
    #[doc = "none"]
    #[inline(always)]
    pub fn none(self) -> &'a mut W {
        self.variant(ACPASELECT_A::NONE)
    }
    #[doc = "set"]
    #[inline(always)]
    pub fn set(self) -> &'a mut W {
        self.variant(ACPASELECT_A::SET)
    }
    #[doc = "clear"]
    #[inline(always)]
    pub fn clear(self) -> &'a mut W {
        self.variant(ACPASELECT_A::CLEAR)
    }
    #[doc = "toggle"]
    #[inline(always)]
    pub fn toggle(self) -> &'a mut W {
        self.variant(ACPASELECT_A::TOGGLE)
    }
}
#[doc = "Field `ACPC` reader - RC Compare Effect on TIOA"]
pub type ACPC_R = crate::FieldReader<u8, ACPCSELECT_A>;
#[doc = "RC Compare Effect on TIOA\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum ACPCSELECT_A {
    #[doc = "0: none"]
    NONE = 0,
    #[doc = "1: set"]
    SET = 1,
    #[doc = "2: clear"]
    CLEAR = 2,
    #[doc = "3: toggle"]
    TOGGLE = 3,
}
impl From<ACPCSELECT_A> for u8 {
    #[inline(always)]
    fn from(variant: ACPCSELECT_A) -> Self {
        variant as _
    }
}
impl ACPC_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ACPCSELECT_A {
        match self.bits {
            0 => ACPCSELECT_A::NONE,
            1 => ACPCSELECT_A::SET,
            2 => ACPCSELECT_A::CLEAR,
            3 => ACPCSELECT_A::TOGGLE,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `NONE`"]
    #[inline(always)]
    pub fn is_none(&self) -> bool {
        *self == ACPCSELECT_A::NONE
    }
    #[doc = "Checks if the value of the field is `SET`"]
    #[inline(always)]
    pub fn is_set(&self) -> bool {
        *self == ACPCSELECT_A::SET
    }
    #[doc = "Checks if the value of the field is `CLEAR`"]
    #[inline(always)]
    pub fn is_clear(&self) -> bool {
        *self == ACPCSELECT_A::CLEAR
    }
    #[doc = "Checks if the value of the field is `TOGGLE`"]
    #[inline(always)]
    pub fn is_toggle(&self) -> bool {
        *self == ACPCSELECT_A::TOGGLE
    }
}
#[doc = "Field `ACPC` writer - RC Compare Effect on TIOA"]
pub type ACPC_W<'a, const O: u8> =
    crate::FieldWriterSafe<'a, u32, WAVEFORM_CMR_ALT_SPEC, u8, ACPCSELECT_A, 2, O>;
impl<'a, const O: u8> ACPC_W<'a, O> {
    #[doc = "none"]
    #[inline(always)]
    pub fn none(self) -> &'a mut W {
        self.variant(ACPCSELECT_A::NONE)
    }
    #[doc = "set"]
    #[inline(always)]
    pub fn set(self) -> &'a mut W {
        self.variant(ACPCSELECT_A::SET)
    }
    #[doc = "clear"]
    #[inline(always)]
    pub fn clear(self) -> &'a mut W {
        self.variant(ACPCSELECT_A::CLEAR)
    }
    #[doc = "toggle"]
    #[inline(always)]
    pub fn toggle(self) -> &'a mut W {
        self.variant(ACPCSELECT_A::TOGGLE)
    }
}
#[doc = "Field `AEEVT` reader - External Event Effect on TIOA"]
pub type AEEVT_R = crate::FieldReader<u8, AEEVTSELECT_A>;
#[doc = "External Event Effect on TIOA\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum AEEVTSELECT_A {
    #[doc = "0: none"]
    NONE = 0,
    #[doc = "1: set"]
    SET = 1,
    #[doc = "2: clear"]
    CLEAR = 2,
    #[doc = "3: toggle"]
    TOGGLE = 3,
}
impl From<AEEVTSELECT_A> for u8 {
    #[inline(always)]
    fn from(variant: AEEVTSELECT_A) -> Self {
        variant as _
    }
}
impl AEEVT_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> AEEVTSELECT_A {
        match self.bits {
            0 => AEEVTSELECT_A::NONE,
            1 => AEEVTSELECT_A::SET,
            2 => AEEVTSELECT_A::CLEAR,
            3 => AEEVTSELECT_A::TOGGLE,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `NONE`"]
    #[inline(always)]
    pub fn is_none(&self) -> bool {
        *self == AEEVTSELECT_A::NONE
    }
    #[doc = "Checks if the value of the field is `SET`"]
    #[inline(always)]
    pub fn is_set(&self) -> bool {
        *self == AEEVTSELECT_A::SET
    }
    #[doc = "Checks if the value of the field is `CLEAR`"]
    #[inline(always)]
    pub fn is_clear(&self) -> bool {
        *self == AEEVTSELECT_A::CLEAR
    }
    #[doc = "Checks if the value of the field is `TOGGLE`"]
    #[inline(always)]
    pub fn is_toggle(&self) -> bool {
        *self == AEEVTSELECT_A::TOGGLE
    }
}
#[doc = "Field `AEEVT` writer - External Event Effect on TIOA"]
pub type AEEVT_W<'a, const O: u8> =
    crate::FieldWriterSafe<'a, u32, WAVEFORM_CMR_ALT_SPEC, u8, AEEVTSELECT_A, 2, O>;
impl<'a, const O: u8> AEEVT_W<'a, O> {
    #[doc = "none"]
    #[inline(always)]
    pub fn none(self) -> &'a mut W {
        self.variant(AEEVTSELECT_A::NONE)
    }
    #[doc = "set"]
    #[inline(always)]
    pub fn set(self) -> &'a mut W {
        self.variant(AEEVTSELECT_A::SET)
    }
    #[doc = "clear"]
    #[inline(always)]
    pub fn clear(self) -> &'a mut W {
        self.variant(AEEVTSELECT_A::CLEAR)
    }
    #[doc = "toggle"]
    #[inline(always)]
    pub fn toggle(self) -> &'a mut W {
        self.variant(AEEVTSELECT_A::TOGGLE)
    }
}
#[doc = "Field `ASWTRG` reader - Software Trigger Effect on TIOA"]
pub type ASWTRG_R = crate::FieldReader<u8, ASWTRGSELECT_A>;
#[doc = "Software Trigger Effect on TIOA\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum ASWTRGSELECT_A {
    #[doc = "0: none"]
    NONE = 0,
    #[doc = "1: set"]
    SET = 1,
    #[doc = "2: clear"]
    CLEAR = 2,
    #[doc = "3: toggle"]
    TOGGLE = 3,
}
impl From<ASWTRGSELECT_A> for u8 {
    #[inline(always)]
    fn from(variant: ASWTRGSELECT_A) -> Self {
        variant as _
    }
}
impl ASWTRG_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ASWTRGSELECT_A {
        match self.bits {
            0 => ASWTRGSELECT_A::NONE,
            1 => ASWTRGSELECT_A::SET,
            2 => ASWTRGSELECT_A::CLEAR,
            3 => ASWTRGSELECT_A::TOGGLE,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `NONE`"]
    #[inline(always)]
    pub fn is_none(&self) -> bool {
        *self == ASWTRGSELECT_A::NONE
    }
    #[doc = "Checks if the value of the field is `SET`"]
    #[inline(always)]
    pub fn is_set(&self) -> bool {
        *self == ASWTRGSELECT_A::SET
    }
    #[doc = "Checks if the value of the field is `CLEAR`"]
    #[inline(always)]
    pub fn is_clear(&self) -> bool {
        *self == ASWTRGSELECT_A::CLEAR
    }
    #[doc = "Checks if the value of the field is `TOGGLE`"]
    #[inline(always)]
    pub fn is_toggle(&self) -> bool {
        *self == ASWTRGSELECT_A::TOGGLE
    }
}
#[doc = "Field `ASWTRG` writer - Software Trigger Effect on TIOA"]
pub type ASWTRG_W<'a, const O: u8> =
    crate::FieldWriterSafe<'a, u32, WAVEFORM_CMR_ALT_SPEC, u8, ASWTRGSELECT_A, 2, O>;
impl<'a, const O: u8> ASWTRG_W<'a, O> {
    #[doc = "none"]
    #[inline(always)]
    pub fn none(self) -> &'a mut W {
        self.variant(ASWTRGSELECT_A::NONE)
    }
    #[doc = "set"]
    #[inline(always)]
    pub fn set(self) -> &'a mut W {
        self.variant(ASWTRGSELECT_A::SET)
    }
    #[doc = "clear"]
    #[inline(always)]
    pub fn clear(self) -> &'a mut W {
        self.variant(ASWTRGSELECT_A::CLEAR)
    }
    #[doc = "toggle"]
    #[inline(always)]
    pub fn toggle(self) -> &'a mut W {
        self.variant(ASWTRGSELECT_A::TOGGLE)
    }
}
#[doc = "Field `BCPB` reader - RB Compare Effect on TIOB"]
pub type BCPB_R = crate::FieldReader<u8, BCPBSELECT_A>;
#[doc = "RB Compare Effect on TIOB\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum BCPBSELECT_A {
    #[doc = "0: none"]
    NONE = 0,
    #[doc = "1: set"]
    SET = 1,
    #[doc = "2: clear"]
    CLEAR = 2,
    #[doc = "3: toggle"]
    TOGGLE = 3,
}
impl From<BCPBSELECT_A> for u8 {
    #[inline(always)]
    fn from(variant: BCPBSELECT_A) -> Self {
        variant as _
    }
}
impl BCPB_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> BCPBSELECT_A {
        match self.bits {
            0 => BCPBSELECT_A::NONE,
            1 => BCPBSELECT_A::SET,
            2 => BCPBSELECT_A::CLEAR,
            3 => BCPBSELECT_A::TOGGLE,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `NONE`"]
    #[inline(always)]
    pub fn is_none(&self) -> bool {
        *self == BCPBSELECT_A::NONE
    }
    #[doc = "Checks if the value of the field is `SET`"]
    #[inline(always)]
    pub fn is_set(&self) -> bool {
        *self == BCPBSELECT_A::SET
    }
    #[doc = "Checks if the value of the field is `CLEAR`"]
    #[inline(always)]
    pub fn is_clear(&self) -> bool {
        *self == BCPBSELECT_A::CLEAR
    }
    #[doc = "Checks if the value of the field is `TOGGLE`"]
    #[inline(always)]
    pub fn is_toggle(&self) -> bool {
        *self == BCPBSELECT_A::TOGGLE
    }
}
#[doc = "Field `BCPB` writer - RB Compare Effect on TIOB"]
pub type BCPB_W<'a, const O: u8> =
    crate::FieldWriterSafe<'a, u32, WAVEFORM_CMR_ALT_SPEC, u8, BCPBSELECT_A, 2, O>;
impl<'a, const O: u8> BCPB_W<'a, O> {
    #[doc = "none"]
    #[inline(always)]
    pub fn none(self) -> &'a mut W {
        self.variant(BCPBSELECT_A::NONE)
    }
    #[doc = "set"]
    #[inline(always)]
    pub fn set(self) -> &'a mut W {
        self.variant(BCPBSELECT_A::SET)
    }
    #[doc = "clear"]
    #[inline(always)]
    pub fn clear(self) -> &'a mut W {
        self.variant(BCPBSELECT_A::CLEAR)
    }
    #[doc = "toggle"]
    #[inline(always)]
    pub fn toggle(self) -> &'a mut W {
        self.variant(BCPBSELECT_A::TOGGLE)
    }
}
#[doc = "Field `BCPC` reader - RC Compare Effect on TIOB"]
pub type BCPC_R = crate::FieldReader<u8, BCPCSELECT_A>;
#[doc = "RC Compare Effect on TIOB\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum BCPCSELECT_A {
    #[doc = "0: none"]
    NONE = 0,
    #[doc = "1: set"]
    SET = 1,
    #[doc = "2: clear"]
    CLEAR = 2,
    #[doc = "3: toggle"]
    TOGGLE = 3,
}
impl From<BCPCSELECT_A> for u8 {
    #[inline(always)]
    fn from(variant: BCPCSELECT_A) -> Self {
        variant as _
    }
}
impl BCPC_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> BCPCSELECT_A {
        match self.bits {
            0 => BCPCSELECT_A::NONE,
            1 => BCPCSELECT_A::SET,
            2 => BCPCSELECT_A::CLEAR,
            3 => BCPCSELECT_A::TOGGLE,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `NONE`"]
    #[inline(always)]
    pub fn is_none(&self) -> bool {
        *self == BCPCSELECT_A::NONE
    }
    #[doc = "Checks if the value of the field is `SET`"]
    #[inline(always)]
    pub fn is_set(&self) -> bool {
        *self == BCPCSELECT_A::SET
    }
    #[doc = "Checks if the value of the field is `CLEAR`"]
    #[inline(always)]
    pub fn is_clear(&self) -> bool {
        *self == BCPCSELECT_A::CLEAR
    }
    #[doc = "Checks if the value of the field is `TOGGLE`"]
    #[inline(always)]
    pub fn is_toggle(&self) -> bool {
        *self == BCPCSELECT_A::TOGGLE
    }
}
#[doc = "Field `BCPC` writer - RC Compare Effect on TIOB"]
pub type BCPC_W<'a, const O: u8> =
    crate::FieldWriterSafe<'a, u32, WAVEFORM_CMR_ALT_SPEC, u8, BCPCSELECT_A, 2, O>;
impl<'a, const O: u8> BCPC_W<'a, O> {
    #[doc = "none"]
    #[inline(always)]
    pub fn none(self) -> &'a mut W {
        self.variant(BCPCSELECT_A::NONE)
    }
    #[doc = "set"]
    #[inline(always)]
    pub fn set(self) -> &'a mut W {
        self.variant(BCPCSELECT_A::SET)
    }
    #[doc = "clear"]
    #[inline(always)]
    pub fn clear(self) -> &'a mut W {
        self.variant(BCPCSELECT_A::CLEAR)
    }
    #[doc = "toggle"]
    #[inline(always)]
    pub fn toggle(self) -> &'a mut W {
        self.variant(BCPCSELECT_A::TOGGLE)
    }
}
#[doc = "Field `BEEVT` reader - External Event Effect on TIOB"]
pub type BEEVT_R = crate::FieldReader<u8, BEEVTSELECT_A>;
#[doc = "External Event Effect on TIOB\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum BEEVTSELECT_A {
    #[doc = "0: none"]
    NONE = 0,
    #[doc = "1: set"]
    SET = 1,
    #[doc = "2: clear"]
    CLEAR = 2,
    #[doc = "3: toggle"]
    TOGGLE = 3,
}
impl From<BEEVTSELECT_A> for u8 {
    #[inline(always)]
    fn from(variant: BEEVTSELECT_A) -> Self {
        variant as _
    }
}
impl BEEVT_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> BEEVTSELECT_A {
        match self.bits {
            0 => BEEVTSELECT_A::NONE,
            1 => BEEVTSELECT_A::SET,
            2 => BEEVTSELECT_A::CLEAR,
            3 => BEEVTSELECT_A::TOGGLE,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `NONE`"]
    #[inline(always)]
    pub fn is_none(&self) -> bool {
        *self == BEEVTSELECT_A::NONE
    }
    #[doc = "Checks if the value of the field is `SET`"]
    #[inline(always)]
    pub fn is_set(&self) -> bool {
        *self == BEEVTSELECT_A::SET
    }
    #[doc = "Checks if the value of the field is `CLEAR`"]
    #[inline(always)]
    pub fn is_clear(&self) -> bool {
        *self == BEEVTSELECT_A::CLEAR
    }
    #[doc = "Checks if the value of the field is `TOGGLE`"]
    #[inline(always)]
    pub fn is_toggle(&self) -> bool {
        *self == BEEVTSELECT_A::TOGGLE
    }
}
#[doc = "Field `BEEVT` writer - External Event Effect on TIOB"]
pub type BEEVT_W<'a, const O: u8> =
    crate::FieldWriterSafe<'a, u32, WAVEFORM_CMR_ALT_SPEC, u8, BEEVTSELECT_A, 2, O>;
impl<'a, const O: u8> BEEVT_W<'a, O> {
    #[doc = "none"]
    #[inline(always)]
    pub fn none(self) -> &'a mut W {
        self.variant(BEEVTSELECT_A::NONE)
    }
    #[doc = "set"]
    #[inline(always)]
    pub fn set(self) -> &'a mut W {
        self.variant(BEEVTSELECT_A::SET)
    }
    #[doc = "clear"]
    #[inline(always)]
    pub fn clear(self) -> &'a mut W {
        self.variant(BEEVTSELECT_A::CLEAR)
    }
    #[doc = "toggle"]
    #[inline(always)]
    pub fn toggle(self) -> &'a mut W {
        self.variant(BEEVTSELECT_A::TOGGLE)
    }
}
#[doc = "Field `BSWTRG` reader - Software Trigger Effect on TIOB"]
pub type BSWTRG_R = crate::FieldReader<u8, BSWTRGSELECT_A>;
#[doc = "Software Trigger Effect on TIOB\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum BSWTRGSELECT_A {
    #[doc = "0: none"]
    NONE = 0,
    #[doc = "1: set"]
    SET = 1,
    #[doc = "2: clear"]
    CLEAR = 2,
    #[doc = "3: toggle"]
    TOGGLE = 3,
}
impl From<BSWTRGSELECT_A> for u8 {
    #[inline(always)]
    fn from(variant: BSWTRGSELECT_A) -> Self {
        variant as _
    }
}
impl BSWTRG_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> BSWTRGSELECT_A {
        match self.bits {
            0 => BSWTRGSELECT_A::NONE,
            1 => BSWTRGSELECT_A::SET,
            2 => BSWTRGSELECT_A::CLEAR,
            3 => BSWTRGSELECT_A::TOGGLE,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `NONE`"]
    #[inline(always)]
    pub fn is_none(&self) -> bool {
        *self == BSWTRGSELECT_A::NONE
    }
    #[doc = "Checks if the value of the field is `SET`"]
    #[inline(always)]
    pub fn is_set(&self) -> bool {
        *self == BSWTRGSELECT_A::SET
    }
    #[doc = "Checks if the value of the field is `CLEAR`"]
    #[inline(always)]
    pub fn is_clear(&self) -> bool {
        *self == BSWTRGSELECT_A::CLEAR
    }
    #[doc = "Checks if the value of the field is `TOGGLE`"]
    #[inline(always)]
    pub fn is_toggle(&self) -> bool {
        *self == BSWTRGSELECT_A::TOGGLE
    }
}
#[doc = "Field `BSWTRG` writer - Software Trigger Effect on TIOB"]
pub type BSWTRG_W<'a, const O: u8> =
    crate::FieldWriterSafe<'a, u32, WAVEFORM_CMR_ALT_SPEC, u8, BSWTRGSELECT_A, 2, O>;
impl<'a, const O: u8> BSWTRG_W<'a, O> {
    #[doc = "none"]
    #[inline(always)]
    pub fn none(self) -> &'a mut W {
        self.variant(BSWTRGSELECT_A::NONE)
    }
    #[doc = "set"]
    #[inline(always)]
    pub fn set(self) -> &'a mut W {
        self.variant(BSWTRGSELECT_A::SET)
    }
    #[doc = "clear"]
    #[inline(always)]
    pub fn clear(self) -> &'a mut W {
        self.variant(BSWTRGSELECT_A::CLEAR)
    }
    #[doc = "toggle"]
    #[inline(always)]
    pub fn toggle(self) -> &'a mut W {
        self.variant(BSWTRGSELECT_A::TOGGLE)
    }
}
impl R {
    #[doc = "Bits 0:2 - Clock Selection"]
    #[inline(always)]
    pub fn tcclks(&self) -> TCCLKS_R {
        TCCLKS_R::new((self.bits & 7) as u8)
    }
    #[doc = "Bit 3 - Clock Invert"]
    #[inline(always)]
    pub fn clki(&self) -> CLKI_R {
        CLKI_R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bits 4:5 - Burst Signal Selection"]
    #[inline(always)]
    pub fn burst(&self) -> BURST_R {
        BURST_R::new(((self.bits >> 4) & 3) as u8)
    }
    #[doc = "Bit 6 - Counter Clock Stopped with RC Compare"]
    #[inline(always)]
    pub fn cpcstop(&self) -> CPCSTOP_R {
        CPCSTOP_R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - Counter Clock Disable with RC Compare"]
    #[inline(always)]
    pub fn cpcdis(&self) -> CPCDIS_R {
        CPCDIS_R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bits 8:9 - External Event Edge Selection"]
    #[inline(always)]
    pub fn eevtedg(&self) -> EEVTEDG_R {
        EEVTEDG_R::new(((self.bits >> 8) & 3) as u8)
    }
    #[doc = "Bits 10:11 - External Event Selection"]
    #[inline(always)]
    pub fn eevt(&self) -> EEVT_R {
        EEVT_R::new(((self.bits >> 10) & 3) as u8)
    }
    #[doc = "Bit 12 - External Event Trigger Enable"]
    #[inline(always)]
    pub fn enetrg(&self) -> ENETRG_R {
        ENETRG_R::new(((self.bits >> 12) & 1) != 0)
    }
    #[doc = "Bits 13:14 - Waveform Selection"]
    #[inline(always)]
    pub fn wavsel(&self) -> WAVSEL_R {
        WAVSEL_R::new(((self.bits >> 13) & 3) as u8)
    }
    #[doc = "Bit 15 - WAVE"]
    #[inline(always)]
    pub fn wave(&self) -> WAVE_R {
        WAVE_R::new(((self.bits >> 15) & 1) != 0)
    }
    #[doc = "Bits 16:17 - RA Compare Effect on TIOA"]
    #[inline(always)]
    pub fn acpa(&self) -> ACPA_R {
        ACPA_R::new(((self.bits >> 16) & 3) as u8)
    }
    #[doc = "Bits 18:19 - RC Compare Effect on TIOA"]
    #[inline(always)]
    pub fn acpc(&self) -> ACPC_R {
        ACPC_R::new(((self.bits >> 18) & 3) as u8)
    }
    #[doc = "Bits 20:21 - External Event Effect on TIOA"]
    #[inline(always)]
    pub fn aeevt(&self) -> AEEVT_R {
        AEEVT_R::new(((self.bits >> 20) & 3) as u8)
    }
    #[doc = "Bits 22:23 - Software Trigger Effect on TIOA"]
    #[inline(always)]
    pub fn aswtrg(&self) -> ASWTRG_R {
        ASWTRG_R::new(((self.bits >> 22) & 3) as u8)
    }
    #[doc = "Bits 24:25 - RB Compare Effect on TIOB"]
    #[inline(always)]
    pub fn bcpb(&self) -> BCPB_R {
        BCPB_R::new(((self.bits >> 24) & 3) as u8)
    }
    #[doc = "Bits 26:27 - RC Compare Effect on TIOB"]
    #[inline(always)]
    pub fn bcpc(&self) -> BCPC_R {
        BCPC_R::new(((self.bits >> 26) & 3) as u8)
    }
    #[doc = "Bits 28:29 - External Event Effect on TIOB"]
    #[inline(always)]
    pub fn beevt(&self) -> BEEVT_R {
        BEEVT_R::new(((self.bits >> 28) & 3) as u8)
    }
    #[doc = "Bits 30:31 - Software Trigger Effect on TIOB"]
    #[inline(always)]
    pub fn bswtrg(&self) -> BSWTRG_R {
        BSWTRG_R::new(((self.bits >> 30) & 3) as u8)
    }
}
impl W {
    #[doc = "Bits 0:2 - Clock Selection"]
    #[inline(always)]
    #[must_use]
    pub fn tcclks(&mut self) -> TCCLKS_W<0> {
        TCCLKS_W::new(self)
    }
    #[doc = "Bit 3 - Clock Invert"]
    #[inline(always)]
    #[must_use]
    pub fn clki(&mut self) -> CLKI_W<3> {
        CLKI_W::new(self)
    }
    #[doc = "Bits 4:5 - Burst Signal Selection"]
    #[inline(always)]
    #[must_use]
    pub fn burst(&mut self) -> BURST_W<4> {
        BURST_W::new(self)
    }
    #[doc = "Bit 6 - Counter Clock Stopped with RC Compare"]
    #[inline(always)]
    #[must_use]
    pub fn cpcstop(&mut self) -> CPCSTOP_W<6> {
        CPCSTOP_W::new(self)
    }
    #[doc = "Bit 7 - Counter Clock Disable with RC Compare"]
    #[inline(always)]
    #[must_use]
    pub fn cpcdis(&mut self) -> CPCDIS_W<7> {
        CPCDIS_W::new(self)
    }
    #[doc = "Bits 8:9 - External Event Edge Selection"]
    #[inline(always)]
    #[must_use]
    pub fn eevtedg(&mut self) -> EEVTEDG_W<8> {
        EEVTEDG_W::new(self)
    }
    #[doc = "Bits 10:11 - External Event Selection"]
    #[inline(always)]
    #[must_use]
    pub fn eevt(&mut self) -> EEVT_W<10> {
        EEVT_W::new(self)
    }
    #[doc = "Bit 12 - External Event Trigger Enable"]
    #[inline(always)]
    #[must_use]
    pub fn enetrg(&mut self) -> ENETRG_W<12> {
        ENETRG_W::new(self)
    }
    #[doc = "Bits 13:14 - Waveform Selection"]
    #[inline(always)]
    #[must_use]
    pub fn wavsel(&mut self) -> WAVSEL_W<13> {
        WAVSEL_W::new(self)
    }
    #[doc = "Bit 15 - WAVE"]
    #[inline(always)]
    #[must_use]
    pub fn wave(&mut self) -> WAVE_W<15> {
        WAVE_W::new(self)
    }
    #[doc = "Bits 16:17 - RA Compare Effect on TIOA"]
    #[inline(always)]
    #[must_use]
    pub fn acpa(&mut self) -> ACPA_W<16> {
        ACPA_W::new(self)
    }
    #[doc = "Bits 18:19 - RC Compare Effect on TIOA"]
    #[inline(always)]
    #[must_use]
    pub fn acpc(&mut self) -> ACPC_W<18> {
        ACPC_W::new(self)
    }
    #[doc = "Bits 20:21 - External Event Effect on TIOA"]
    #[inline(always)]
    #[must_use]
    pub fn aeevt(&mut self) -> AEEVT_W<20> {
        AEEVT_W::new(self)
    }
    #[doc = "Bits 22:23 - Software Trigger Effect on TIOA"]
    #[inline(always)]
    #[must_use]
    pub fn aswtrg(&mut self) -> ASWTRG_W<22> {
        ASWTRG_W::new(self)
    }
    #[doc = "Bits 24:25 - RB Compare Effect on TIOB"]
    #[inline(always)]
    #[must_use]
    pub fn bcpb(&mut self) -> BCPB_W<24> {
        BCPB_W::new(self)
    }
    #[doc = "Bits 26:27 - RC Compare Effect on TIOB"]
    #[inline(always)]
    #[must_use]
    pub fn bcpc(&mut self) -> BCPC_W<26> {
        BCPC_W::new(self)
    }
    #[doc = "Bits 28:29 - External Event Effect on TIOB"]
    #[inline(always)]
    #[must_use]
    pub fn beevt(&mut self) -> BEEVT_W<28> {
        BEEVT_W::new(self)
    }
    #[doc = "Bits 30:31 - Software Trigger Effect on TIOB"]
    #[inline(always)]
    #[must_use]
    pub fn bswtrg(&mut self) -> BSWTRG_W<30> {
        BSWTRG_W::new(self)
    }
    #[doc = "Writes raw bits to the register."]
    #[inline(always)]
    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
        self.0.bits(bits);
        self
    }
}
#[doc = "Channel Mode Register Channel\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [waveform_cmr_alt](index.html) module"]
pub struct WAVEFORM_CMR_ALT_SPEC;
impl crate::RegisterSpec for WAVEFORM_CMR_ALT_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [waveform_cmr_alt::R](R) reader structure"]
impl crate::Readable for WAVEFORM_CMR_ALT_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [waveform_cmr_alt::W](W) writer structure"]
impl crate::Writable for WAVEFORM_CMR_ALT_SPEC {
    type Writer = W;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}
#[doc = "`reset()` method sets CMR%s_ALT to value 0"]
impl crate::Resettable for WAVEFORM_CMR_ALT_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}