xmc4100 0.14.0

XMC4100 Cortex-M peripheral access library
Documentation
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
#[doc = "Register `SC` reader"]
pub type R = crate::R<SC_SPEC>;
#[doc = "Register `SC` writer"]
pub type W = crate::W<SC_SPEC>;
#[doc = "Prescaler external start configuration\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum PSRM_A {
    #[doc = "0: External start trigger is ignored"]
    VALUE1 = 0,
    #[doc = "1: Start prescaler"]
    VALUE2 = 1,
    #[doc = "2: Clear prescaler"]
    VALUE3 = 2,
    #[doc = "3: Clear & Start prescaler"]
    VALUE4 = 3,
}
impl From<PSRM_A> for u8 {
    #[inline(always)]
    fn from(variant: PSRM_A) -> Self {
        variant as _
    }
}
impl crate::FieldSpec for PSRM_A {
    type Ux = u8;
}
impl crate::IsEnum for PSRM_A {}
#[doc = "Field `PSRM` reader - Prescaler external start configuration"]
pub type PSRM_R = crate::FieldReader<PSRM_A>;
impl PSRM_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> PSRM_A {
        match self.bits {
            0 => PSRM_A::VALUE1,
            1 => PSRM_A::VALUE2,
            2 => PSRM_A::VALUE3,
            3 => PSRM_A::VALUE4,
            _ => unreachable!(),
        }
    }
    #[doc = "External start trigger is ignored"]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == PSRM_A::VALUE1
    }
    #[doc = "Start prescaler"]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == PSRM_A::VALUE2
    }
    #[doc = "Clear prescaler"]
    #[inline(always)]
    pub fn is_value3(&self) -> bool {
        *self == PSRM_A::VALUE3
    }
    #[doc = "Clear & Start prescaler"]
    #[inline(always)]
    pub fn is_value4(&self) -> bool {
        *self == PSRM_A::VALUE4
    }
}
#[doc = "Field `PSRM` writer - Prescaler external start configuration"]
pub type PSRM_W<'a, REG> = crate::FieldWriter<'a, REG, 2, PSRM_A, crate::Safe>;
impl<'a, REG> PSRM_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
    REG::Ux: From<u8>,
{
    #[doc = "External start trigger is ignored"]
    #[inline(always)]
    pub fn value1(self) -> &'a mut crate::W<REG> {
        self.variant(PSRM_A::VALUE1)
    }
    #[doc = "Start prescaler"]
    #[inline(always)]
    pub fn value2(self) -> &'a mut crate::W<REG> {
        self.variant(PSRM_A::VALUE2)
    }
    #[doc = "Clear prescaler"]
    #[inline(always)]
    pub fn value3(self) -> &'a mut crate::W<REG> {
        self.variant(PSRM_A::VALUE3)
    }
    #[doc = "Clear & Start prescaler"]
    #[inline(always)]
    pub fn value4(self) -> &'a mut crate::W<REG> {
        self.variant(PSRM_A::VALUE4)
    }
}
#[doc = "Prescaler external stop configuration\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum PSTM_A {
    #[doc = "0: External stop trigger is ignored"]
    VALUE1 = 0,
    #[doc = "1: Stop prescaler"]
    VALUE2 = 1,
    #[doc = "2: Clear prescaler"]
    VALUE3 = 2,
    #[doc = "3: Clear & Stop prescaler"]
    VALUE4 = 3,
}
impl From<PSTM_A> for u8 {
    #[inline(always)]
    fn from(variant: PSTM_A) -> Self {
        variant as _
    }
}
impl crate::FieldSpec for PSTM_A {
    type Ux = u8;
}
impl crate::IsEnum for PSTM_A {}
#[doc = "Field `PSTM` reader - Prescaler external stop configuration"]
pub type PSTM_R = crate::FieldReader<PSTM_A>;
impl PSTM_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> PSTM_A {
        match self.bits {
            0 => PSTM_A::VALUE1,
            1 => PSTM_A::VALUE2,
            2 => PSTM_A::VALUE3,
            3 => PSTM_A::VALUE4,
            _ => unreachable!(),
        }
    }
    #[doc = "External stop trigger is ignored"]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == PSTM_A::VALUE1
    }
    #[doc = "Stop prescaler"]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == PSTM_A::VALUE2
    }
    #[doc = "Clear prescaler"]
    #[inline(always)]
    pub fn is_value3(&self) -> bool {
        *self == PSTM_A::VALUE3
    }
    #[doc = "Clear & Stop prescaler"]
    #[inline(always)]
    pub fn is_value4(&self) -> bool {
        *self == PSTM_A::VALUE4
    }
}
#[doc = "Field `PSTM` writer - Prescaler external stop configuration"]
pub type PSTM_W<'a, REG> = crate::FieldWriter<'a, REG, 2, PSTM_A, crate::Safe>;
impl<'a, REG> PSTM_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
    REG::Ux: From<u8>,
{
    #[doc = "External stop trigger is ignored"]
    #[inline(always)]
    pub fn value1(self) -> &'a mut crate::W<REG> {
        self.variant(PSTM_A::VALUE1)
    }
    #[doc = "Stop prescaler"]
    #[inline(always)]
    pub fn value2(self) -> &'a mut crate::W<REG> {
        self.variant(PSTM_A::VALUE2)
    }
    #[doc = "Clear prescaler"]
    #[inline(always)]
    pub fn value3(self) -> &'a mut crate::W<REG> {
        self.variant(PSTM_A::VALUE3)
    }
    #[doc = "Clear & Stop prescaler"]
    #[inline(always)]
    pub fn value4(self) -> &'a mut crate::W<REG> {
        self.variant(PSTM_A::VALUE4)
    }
}
#[doc = "Fixed division disable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum FPD_A {
    #[doc = "0: Division by 4 enabled"]
    VALUE1 = 0,
    #[doc = "1: Division by 4 disabled"]
    VALUE2 = 1,
}
impl From<FPD_A> for bool {
    #[inline(always)]
    fn from(variant: FPD_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `FPD` reader - Fixed division disable"]
pub type FPD_R = crate::BitReader<FPD_A>;
impl FPD_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> FPD_A {
        match self.bits {
            false => FPD_A::VALUE1,
            true => FPD_A::VALUE2,
        }
    }
    #[doc = "Division by 4 enabled"]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == FPD_A::VALUE1
    }
    #[doc = "Division by 4 disabled"]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == FPD_A::VALUE2
    }
}
#[doc = "Field `FPD` writer - Fixed division disable"]
pub type FPD_W<'a, REG> = crate::BitWriter<'a, REG, FPD_A>;
impl<'a, REG> FPD_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Division by 4 enabled"]
    #[inline(always)]
    pub fn value1(self) -> &'a mut crate::W<REG> {
        self.variant(FPD_A::VALUE1)
    }
    #[doc = "Division by 4 disabled"]
    #[inline(always)]
    pub fn value2(self) -> &'a mut crate::W<REG> {
        self.variant(FPD_A::VALUE2)
    }
}
#[doc = "Prescaler division factor\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum PSV_A {
    #[doc = "0: division by 1"]
    VALUE1 = 0,
    #[doc = "1: division by 2"]
    VALUE2 = 1,
    #[doc = "2: division by 4"]
    VALUE3 = 2,
    #[doc = "3: division by 8"]
    VALUE4 = 3,
}
impl From<PSV_A> for u8 {
    #[inline(always)]
    fn from(variant: PSV_A) -> Self {
        variant as _
    }
}
impl crate::FieldSpec for PSV_A {
    type Ux = u8;
}
impl crate::IsEnum for PSV_A {}
#[doc = "Field `PSV` reader - Prescaler division factor"]
pub type PSV_R = crate::FieldReader<PSV_A>;
impl PSV_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> PSV_A {
        match self.bits {
            0 => PSV_A::VALUE1,
            1 => PSV_A::VALUE2,
            2 => PSV_A::VALUE3,
            3 => PSV_A::VALUE4,
            _ => unreachable!(),
        }
    }
    #[doc = "division by 1"]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == PSV_A::VALUE1
    }
    #[doc = "division by 2"]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == PSV_A::VALUE2
    }
    #[doc = "division by 4"]
    #[inline(always)]
    pub fn is_value3(&self) -> bool {
        *self == PSV_A::VALUE3
    }
    #[doc = "division by 8"]
    #[inline(always)]
    pub fn is_value4(&self) -> bool {
        *self == PSV_A::VALUE4
    }
}
#[doc = "Field `PSV` writer - Prescaler division factor"]
pub type PSV_W<'a, REG> = crate::FieldWriter<'a, REG, 2, PSV_A, crate::Safe>;
impl<'a, REG> PSV_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
    REG::Ux: From<u8>,
{
    #[doc = "division by 1"]
    #[inline(always)]
    pub fn value1(self) -> &'a mut crate::W<REG> {
        self.variant(PSV_A::VALUE1)
    }
    #[doc = "division by 2"]
    #[inline(always)]
    pub fn value2(self) -> &'a mut crate::W<REG> {
        self.variant(PSV_A::VALUE2)
    }
    #[doc = "division by 4"]
    #[inline(always)]
    pub fn value3(self) -> &'a mut crate::W<REG> {
        self.variant(PSV_A::VALUE3)
    }
    #[doc = "division by 8"]
    #[inline(always)]
    pub fn value4(self) -> &'a mut crate::W<REG> {
        self.variant(PSV_A::VALUE4)
    }
}
#[doc = "Slope control mode\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum SCM_A {
    #[doc = "0: Slope generation disabled. Used when the switch between the two reference values, CSGyDSV1This register contains the actual value used for the DSV1 reference. and CSGyDSV2This register contains the actual value used for the DSV2 reference. is done via external signal."]
    VALUE1 = 0,
    #[doc = "1: Decrementing slope generation."]
    VALUE2 = 1,
    #[doc = "2: Incrementing slope generation."]
    VALUE3 = 2,
    #[doc = "3: Triangular slope generation."]
    VALUE4 = 3,
}
impl From<SCM_A> for u8 {
    #[inline(always)]
    fn from(variant: SCM_A) -> Self {
        variant as _
    }
}
impl crate::FieldSpec for SCM_A {
    type Ux = u8;
}
impl crate::IsEnum for SCM_A {}
#[doc = "Field `SCM` reader - Slope control mode"]
pub type SCM_R = crate::FieldReader<SCM_A>;
impl SCM_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> SCM_A {
        match self.bits {
            0 => SCM_A::VALUE1,
            1 => SCM_A::VALUE2,
            2 => SCM_A::VALUE3,
            3 => SCM_A::VALUE4,
            _ => unreachable!(),
        }
    }
    #[doc = "Slope generation disabled. Used when the switch between the two reference values, CSGyDSV1This register contains the actual value used for the DSV1 reference. and CSGyDSV2This register contains the actual value used for the DSV2 reference. is done via external signal."]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == SCM_A::VALUE1
    }
    #[doc = "Decrementing slope generation."]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == SCM_A::VALUE2
    }
    #[doc = "Incrementing slope generation."]
    #[inline(always)]
    pub fn is_value3(&self) -> bool {
        *self == SCM_A::VALUE3
    }
    #[doc = "Triangular slope generation."]
    #[inline(always)]
    pub fn is_value4(&self) -> bool {
        *self == SCM_A::VALUE4
    }
}
#[doc = "Field `SCM` writer - Slope control mode"]
pub type SCM_W<'a, REG> = crate::FieldWriter<'a, REG, 2, SCM_A, crate::Safe>;
impl<'a, REG> SCM_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
    REG::Ux: From<u8>,
{
    #[doc = "Slope generation disabled. Used when the switch between the two reference values, CSGyDSV1This register contains the actual value used for the DSV1 reference. and CSGyDSV2This register contains the actual value used for the DSV2 reference. is done via external signal."]
    #[inline(always)]
    pub fn value1(self) -> &'a mut crate::W<REG> {
        self.variant(SCM_A::VALUE1)
    }
    #[doc = "Decrementing slope generation."]
    #[inline(always)]
    pub fn value2(self) -> &'a mut crate::W<REG> {
        self.variant(SCM_A::VALUE2)
    }
    #[doc = "Incrementing slope generation."]
    #[inline(always)]
    pub fn value3(self) -> &'a mut crate::W<REG> {
        self.variant(SCM_A::VALUE3)
    }
    #[doc = "Triangular slope generation."]
    #[inline(always)]
    pub fn value4(self) -> &'a mut crate::W<REG> {
        self.variant(SCM_A::VALUE4)
    }
}
#[doc = "Slope external start configuration\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum SSRM_A {
    #[doc = "0: External start trigger is ignored"]
    VALUE1 = 0,
    #[doc = "1: Start/restart slope generation"]
    VALUE2 = 1,
    #[doc = "2: Resumes slope"]
    VALUE3 = 2,
}
impl From<SSRM_A> for u8 {
    #[inline(always)]
    fn from(variant: SSRM_A) -> Self {
        variant as _
    }
}
impl crate::FieldSpec for SSRM_A {
    type Ux = u8;
}
impl crate::IsEnum for SSRM_A {}
#[doc = "Field `SSRM` reader - Slope external start configuration"]
pub type SSRM_R = crate::FieldReader<SSRM_A>;
impl SSRM_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Option<SSRM_A> {
        match self.bits {
            0 => Some(SSRM_A::VALUE1),
            1 => Some(SSRM_A::VALUE2),
            2 => Some(SSRM_A::VALUE3),
            _ => None,
        }
    }
    #[doc = "External start trigger is ignored"]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == SSRM_A::VALUE1
    }
    #[doc = "Start/restart slope generation"]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == SSRM_A::VALUE2
    }
    #[doc = "Resumes slope"]
    #[inline(always)]
    pub fn is_value3(&self) -> bool {
        *self == SSRM_A::VALUE3
    }
}
#[doc = "Field `SSRM` writer - Slope external start configuration"]
pub type SSRM_W<'a, REG> = crate::FieldWriter<'a, REG, 2, SSRM_A>;
impl<'a, REG> SSRM_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
    REG::Ux: From<u8>,
{
    #[doc = "External start trigger is ignored"]
    #[inline(always)]
    pub fn value1(self) -> &'a mut crate::W<REG> {
        self.variant(SSRM_A::VALUE1)
    }
    #[doc = "Start/restart slope generation"]
    #[inline(always)]
    pub fn value2(self) -> &'a mut crate::W<REG> {
        self.variant(SSRM_A::VALUE2)
    }
    #[doc = "Resumes slope"]
    #[inline(always)]
    pub fn value3(self) -> &'a mut crate::W<REG> {
        self.variant(SSRM_A::VALUE3)
    }
}
#[doc = "Slope external stop configuration\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum SSTM_A {
    #[doc = "0: External stop trigger is ignored"]
    VALUE1 = 0,
    #[doc = "1: Stops/Halts the slope generation"]
    VALUE2 = 1,
    #[doc = "2: Used in hybrid mode. It freezes the slope generation and feeds constantly the value programmed in CSGyDSV2This register contains the actual value used for the DSV2 reference. to the DAC."]
    VALUE3 = 2,
}
impl From<SSTM_A> for u8 {
    #[inline(always)]
    fn from(variant: SSTM_A) -> Self {
        variant as _
    }
}
impl crate::FieldSpec for SSTM_A {
    type Ux = u8;
}
impl crate::IsEnum for SSTM_A {}
#[doc = "Field `SSTM` reader - Slope external stop configuration"]
pub type SSTM_R = crate::FieldReader<SSTM_A>;
impl SSTM_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Option<SSTM_A> {
        match self.bits {
            0 => Some(SSTM_A::VALUE1),
            1 => Some(SSTM_A::VALUE2),
            2 => Some(SSTM_A::VALUE3),
            _ => None,
        }
    }
    #[doc = "External stop trigger is ignored"]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == SSTM_A::VALUE1
    }
    #[doc = "Stops/Halts the slope generation"]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == SSTM_A::VALUE2
    }
    #[doc = "Used in hybrid mode. It freezes the slope generation and feeds constantly the value programmed in CSGyDSV2This register contains the actual value used for the DSV2 reference. to the DAC."]
    #[inline(always)]
    pub fn is_value3(&self) -> bool {
        *self == SSTM_A::VALUE3
    }
}
#[doc = "Field `SSTM` writer - Slope external stop configuration"]
pub type SSTM_W<'a, REG> = crate::FieldWriter<'a, REG, 2, SSTM_A>;
impl<'a, REG> SSTM_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
    REG::Ux: From<u8>,
{
    #[doc = "External stop trigger is ignored"]
    #[inline(always)]
    pub fn value1(self) -> &'a mut crate::W<REG> {
        self.variant(SSTM_A::VALUE1)
    }
    #[doc = "Stops/Halts the slope generation"]
    #[inline(always)]
    pub fn value2(self) -> &'a mut crate::W<REG> {
        self.variant(SSTM_A::VALUE2)
    }
    #[doc = "Used in hybrid mode. It freezes the slope generation and feeds constantly the value programmed in CSGyDSV2This register contains the actual value used for the DSV2 reference. to the DAC."]
    #[inline(always)]
    pub fn value3(self) -> &'a mut crate::W<REG> {
        self.variant(SSTM_A::VALUE3)
    }
}
#[doc = "Slope reference value mode\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum SVSC_A {
    #[doc = "0: Only CSGyDSV1This register contains the actual value used for the DSV1 reference. value is used for the slope generation: if slope is incrementing, CSGyDSV1This register contains the actual value used for the DSV1 reference. is the bottom reference value from where the ramp starts; if decrementing, then CSGyDSV1This register contains the actual value used for the DSV1 reference. is the upper reference value from where the ramp starts."]
    VALUE1 = 0,
    #[doc = "1: The two reference values are being used: CSGyDSV1This register contains the actual value used for the DSV1 reference. is the low or high reference value from where the ramp starts (incrementing or decrementing respectively); CSGyDSV2This register contains the actual value used for the DSV2 reference. is used as a static value (this value is constantly fed to the DAC after a stop trigger as been detected)."]
    VALUE2 = 1,
    #[doc = "2: The two reference values are used: CSGyDSV1This register contains the actual value used for the DSV1 reference. is the low or high reference value from where the slope starts (incrementing or decrementing respectively); CSGyDSV2This register contains the actual value used for the DSV2 reference. is used as an internal re start condition for the slope."]
    VALUE3 = 2,
}
impl From<SVSC_A> for u8 {
    #[inline(always)]
    fn from(variant: SVSC_A) -> Self {
        variant as _
    }
}
impl crate::FieldSpec for SVSC_A {
    type Ux = u8;
}
impl crate::IsEnum for SVSC_A {}
#[doc = "Field `SVSC` reader - Slope reference value mode"]
pub type SVSC_R = crate::FieldReader<SVSC_A>;
impl SVSC_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Option<SVSC_A> {
        match self.bits {
            0 => Some(SVSC_A::VALUE1),
            1 => Some(SVSC_A::VALUE2),
            2 => Some(SVSC_A::VALUE3),
            _ => None,
        }
    }
    #[doc = "Only CSGyDSV1This register contains the actual value used for the DSV1 reference. value is used for the slope generation: if slope is incrementing, CSGyDSV1This register contains the actual value used for the DSV1 reference. is the bottom reference value from where the ramp starts; if decrementing, then CSGyDSV1This register contains the actual value used for the DSV1 reference. is the upper reference value from where the ramp starts."]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == SVSC_A::VALUE1
    }
    #[doc = "The two reference values are being used: CSGyDSV1This register contains the actual value used for the DSV1 reference. is the low or high reference value from where the ramp starts (incrementing or decrementing respectively); CSGyDSV2This register contains the actual value used for the DSV2 reference. is used as a static value (this value is constantly fed to the DAC after a stop trigger as been detected)."]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == SVSC_A::VALUE2
    }
    #[doc = "The two reference values are used: CSGyDSV1This register contains the actual value used for the DSV1 reference. is the low or high reference value from where the slope starts (incrementing or decrementing respectively); CSGyDSV2This register contains the actual value used for the DSV2 reference. is used as an internal re start condition for the slope."]
    #[inline(always)]
    pub fn is_value3(&self) -> bool {
        *self == SVSC_A::VALUE3
    }
}
#[doc = "Field `SVSC` writer - Slope reference value mode"]
pub type SVSC_W<'a, REG> = crate::FieldWriter<'a, REG, 2, SVSC_A>;
impl<'a, REG> SVSC_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
    REG::Ux: From<u8>,
{
    #[doc = "Only CSGyDSV1This register contains the actual value used for the DSV1 reference. value is used for the slope generation: if slope is incrementing, CSGyDSV1This register contains the actual value used for the DSV1 reference. is the bottom reference value from where the ramp starts; if decrementing, then CSGyDSV1This register contains the actual value used for the DSV1 reference. is the upper reference value from where the ramp starts."]
    #[inline(always)]
    pub fn value1(self) -> &'a mut crate::W<REG> {
        self.variant(SVSC_A::VALUE1)
    }
    #[doc = "The two reference values are being used: CSGyDSV1This register contains the actual value used for the DSV1 reference. is the low or high reference value from where the ramp starts (incrementing or decrementing respectively); CSGyDSV2This register contains the actual value used for the DSV2 reference. is used as a static value (this value is constantly fed to the DAC after a stop trigger as been detected)."]
    #[inline(always)]
    pub fn value2(self) -> &'a mut crate::W<REG> {
        self.variant(SVSC_A::VALUE2)
    }
    #[doc = "The two reference values are used: CSGyDSV1This register contains the actual value used for the DSV1 reference. is the low or high reference value from where the slope starts (incrementing or decrementing respectively); CSGyDSV2This register contains the actual value used for the DSV2 reference. is used as an internal re start condition for the slope."]
    #[inline(always)]
    pub fn value3(self) -> &'a mut crate::W<REG> {
        self.variant(SVSC_A::VALUE3)
    }
}
#[doc = "Initial DAC start mode\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum SWSM_A {
    #[doc = "0: CSGyDSV2This register contains the actual value used for the DSV2 reference. is fed to the DAC and initial conversion trigger is generated."]
    VALUE1 = 0,
    #[doc = "1: CSGyDSV1This register contains the actual value used for the DSV1 reference. is fed to the DAC and initial conversion trigger is generated."]
    VALUE2 = 1,
    #[doc = "2: CSGyDSV2This register contains the actual value used for the DSV2 reference. is fed to the DAC but initial conversion trigger is not generated."]
    VALUE3 = 2,
    #[doc = "3: CSGyDSV1This register contains the actual value used for the DSV1 reference. is fed to the DAC but initial conversion trigger is not generated."]
    VALUE4 = 3,
}
impl From<SWSM_A> for u8 {
    #[inline(always)]
    fn from(variant: SWSM_A) -> Self {
        variant as _
    }
}
impl crate::FieldSpec for SWSM_A {
    type Ux = u8;
}
impl crate::IsEnum for SWSM_A {}
#[doc = "Field `SWSM` reader - Initial DAC start mode"]
pub type SWSM_R = crate::FieldReader<SWSM_A>;
impl SWSM_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> SWSM_A {
        match self.bits {
            0 => SWSM_A::VALUE1,
            1 => SWSM_A::VALUE2,
            2 => SWSM_A::VALUE3,
            3 => SWSM_A::VALUE4,
            _ => unreachable!(),
        }
    }
    #[doc = "CSGyDSV2This register contains the actual value used for the DSV2 reference. is fed to the DAC and initial conversion trigger is generated."]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == SWSM_A::VALUE1
    }
    #[doc = "CSGyDSV1This register contains the actual value used for the DSV1 reference. is fed to the DAC and initial conversion trigger is generated."]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == SWSM_A::VALUE2
    }
    #[doc = "CSGyDSV2This register contains the actual value used for the DSV2 reference. is fed to the DAC but initial conversion trigger is not generated."]
    #[inline(always)]
    pub fn is_value3(&self) -> bool {
        *self == SWSM_A::VALUE3
    }
    #[doc = "CSGyDSV1This register contains the actual value used for the DSV1 reference. is fed to the DAC but initial conversion trigger is not generated."]
    #[inline(always)]
    pub fn is_value4(&self) -> bool {
        *self == SWSM_A::VALUE4
    }
}
#[doc = "Field `SWSM` writer - Initial DAC start mode"]
pub type SWSM_W<'a, REG> = crate::FieldWriter<'a, REG, 2, SWSM_A, crate::Safe>;
impl<'a, REG> SWSM_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
    REG::Ux: From<u8>,
{
    #[doc = "CSGyDSV2This register contains the actual value used for the DSV2 reference. is fed to the DAC and initial conversion trigger is generated."]
    #[inline(always)]
    pub fn value1(self) -> &'a mut crate::W<REG> {
        self.variant(SWSM_A::VALUE1)
    }
    #[doc = "CSGyDSV1This register contains the actual value used for the DSV1 reference. is fed to the DAC and initial conversion trigger is generated."]
    #[inline(always)]
    pub fn value2(self) -> &'a mut crate::W<REG> {
        self.variant(SWSM_A::VALUE2)
    }
    #[doc = "CSGyDSV2This register contains the actual value used for the DSV2 reference. is fed to the DAC but initial conversion trigger is not generated."]
    #[inline(always)]
    pub fn value3(self) -> &'a mut crate::W<REG> {
        self.variant(SWSM_A::VALUE3)
    }
    #[doc = "CSGyDSV1This register contains the actual value used for the DSV1 reference. is fed to the DAC but initial conversion trigger is not generated."]
    #[inline(always)]
    pub fn value4(self) -> &'a mut crate::W<REG> {
        self.variant(SWSM_A::VALUE4)
    }
}
#[doc = "Slope step gain configuration\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum GCFG_A {
    #[doc = "0: Each slope step has an increment/decrement of 1"]
    VALUE1 = 0,
    #[doc = "1: Each slope step has an increment/decrement of 2"]
    VALUE2 = 1,
    #[doc = "2: Each slope step has an increment/decrement of 4"]
    VALUE3 = 2,
    #[doc = "3: Each slope step has an increment/decrement of 8"]
    VALUE4 = 3,
}
impl From<GCFG_A> for u8 {
    #[inline(always)]
    fn from(variant: GCFG_A) -> Self {
        variant as _
    }
}
impl crate::FieldSpec for GCFG_A {
    type Ux = u8;
}
impl crate::IsEnum for GCFG_A {}
#[doc = "Field `GCFG` reader - Slope step gain configuration"]
pub type GCFG_R = crate::FieldReader<GCFG_A>;
impl GCFG_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> GCFG_A {
        match self.bits {
            0 => GCFG_A::VALUE1,
            1 => GCFG_A::VALUE2,
            2 => GCFG_A::VALUE3,
            3 => GCFG_A::VALUE4,
            _ => unreachable!(),
        }
    }
    #[doc = "Each slope step has an increment/decrement of 1"]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == GCFG_A::VALUE1
    }
    #[doc = "Each slope step has an increment/decrement of 2"]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == GCFG_A::VALUE2
    }
    #[doc = "Each slope step has an increment/decrement of 4"]
    #[inline(always)]
    pub fn is_value3(&self) -> bool {
        *self == GCFG_A::VALUE3
    }
    #[doc = "Each slope step has an increment/decrement of 8"]
    #[inline(always)]
    pub fn is_value4(&self) -> bool {
        *self == GCFG_A::VALUE4
    }
}
#[doc = "Field `GCFG` writer - Slope step gain configuration"]
pub type GCFG_W<'a, REG> = crate::FieldWriter<'a, REG, 2, GCFG_A, crate::Safe>;
impl<'a, REG> GCFG_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
    REG::Ux: From<u8>,
{
    #[doc = "Each slope step has an increment/decrement of 1"]
    #[inline(always)]
    pub fn value1(self) -> &'a mut crate::W<REG> {
        self.variant(GCFG_A::VALUE1)
    }
    #[doc = "Each slope step has an increment/decrement of 2"]
    #[inline(always)]
    pub fn value2(self) -> &'a mut crate::W<REG> {
        self.variant(GCFG_A::VALUE2)
    }
    #[doc = "Each slope step has an increment/decrement of 4"]
    #[inline(always)]
    pub fn value3(self) -> &'a mut crate::W<REG> {
        self.variant(GCFG_A::VALUE3)
    }
    #[doc = "Each slope step has an increment/decrement of 8"]
    #[inline(always)]
    pub fn value4(self) -> &'a mut crate::W<REG> {
        self.variant(GCFG_A::VALUE4)
    }
}
#[doc = "Field `IST` reader - Immediate shadow transfer"]
pub type IST_R = crate::BitReader;
#[doc = "Field `IST` writer - Immediate shadow transfer"]
pub type IST_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Pulse swallow enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum PSE_A {
    #[doc = "0: Pulse swallow disabled"]
    VALUE1 = 0,
    #[doc = "1: Pulse swallow enabled"]
    VALUE2 = 1,
}
impl From<PSE_A> for bool {
    #[inline(always)]
    fn from(variant: PSE_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `PSE` reader - Pulse swallow enable"]
pub type PSE_R = crate::BitReader<PSE_A>;
impl PSE_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> PSE_A {
        match self.bits {
            false => PSE_A::VALUE1,
            true => PSE_A::VALUE2,
        }
    }
    #[doc = "Pulse swallow disabled"]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == PSE_A::VALUE1
    }
    #[doc = "Pulse swallow enabled"]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == PSE_A::VALUE2
    }
}
#[doc = "Field `PSE` writer - Pulse swallow enable"]
pub type PSE_W<'a, REG> = crate::BitWriter<'a, REG, PSE_A>;
impl<'a, REG> PSE_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Pulse swallow disabled"]
    #[inline(always)]
    pub fn value1(self) -> &'a mut crate::W<REG> {
        self.variant(PSE_A::VALUE1)
    }
    #[doc = "Pulse swallow enabled"]
    #[inline(always)]
    pub fn value2(self) -> &'a mut crate::W<REG> {
        self.variant(PSE_A::VALUE2)
    }
}
#[doc = "Pulse swallow window mode\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum PSWM_A {
    #[doc = "0: 16 clock cycle window"]
    VALUE1 = 0,
    #[doc = "1: 32 clock cycle window"]
    VALUE2 = 1,
    #[doc = "2: 64 clock cycle window"]
    VALUE3 = 2,
}
impl From<PSWM_A> for u8 {
    #[inline(always)]
    fn from(variant: PSWM_A) -> Self {
        variant as _
    }
}
impl crate::FieldSpec for PSWM_A {
    type Ux = u8;
}
impl crate::IsEnum for PSWM_A {}
#[doc = "Field `PSWM` reader - Pulse swallow window mode"]
pub type PSWM_R = crate::FieldReader<PSWM_A>;
impl PSWM_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Option<PSWM_A> {
        match self.bits {
            0 => Some(PSWM_A::VALUE1),
            1 => Some(PSWM_A::VALUE2),
            2 => Some(PSWM_A::VALUE3),
            _ => None,
        }
    }
    #[doc = "16 clock cycle window"]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == PSWM_A::VALUE1
    }
    #[doc = "32 clock cycle window"]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == PSWM_A::VALUE2
    }
    #[doc = "64 clock cycle window"]
    #[inline(always)]
    pub fn is_value3(&self) -> bool {
        *self == PSWM_A::VALUE3
    }
}
#[doc = "Field `PSWM` writer - Pulse swallow window mode"]
pub type PSWM_W<'a, REG> = crate::FieldWriter<'a, REG, 2, PSWM_A>;
impl<'a, REG> PSWM_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
    REG::Ux: From<u8>,
{
    #[doc = "16 clock cycle window"]
    #[inline(always)]
    pub fn value1(self) -> &'a mut crate::W<REG> {
        self.variant(PSWM_A::VALUE1)
    }
    #[doc = "32 clock cycle window"]
    #[inline(always)]
    pub fn value2(self) -> &'a mut crate::W<REG> {
        self.variant(PSWM_A::VALUE2)
    }
    #[doc = "64 clock cycle window"]
    #[inline(always)]
    pub fn value3(self) -> &'a mut crate::W<REG> {
        self.variant(PSWM_A::VALUE3)
    }
}
impl R {
    #[doc = "Bits 0:1 - Prescaler external start configuration"]
    #[inline(always)]
    pub fn psrm(&self) -> PSRM_R {
        PSRM_R::new((self.bits & 3) as u8)
    }
    #[doc = "Bits 2:3 - Prescaler external stop configuration"]
    #[inline(always)]
    pub fn pstm(&self) -> PSTM_R {
        PSTM_R::new(((self.bits >> 2) & 3) as u8)
    }
    #[doc = "Bit 4 - Fixed division disable"]
    #[inline(always)]
    pub fn fpd(&self) -> FPD_R {
        FPD_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bits 5:6 - Prescaler division factor"]
    #[inline(always)]
    pub fn psv(&self) -> PSV_R {
        PSV_R::new(((self.bits >> 5) & 3) as u8)
    }
    #[doc = "Bits 8:9 - Slope control mode"]
    #[inline(always)]
    pub fn scm(&self) -> SCM_R {
        SCM_R::new(((self.bits >> 8) & 3) as u8)
    }
    #[doc = "Bits 10:11 - Slope external start configuration"]
    #[inline(always)]
    pub fn ssrm(&self) -> SSRM_R {
        SSRM_R::new(((self.bits >> 10) & 3) as u8)
    }
    #[doc = "Bits 12:13 - Slope external stop configuration"]
    #[inline(always)]
    pub fn sstm(&self) -> SSTM_R {
        SSTM_R::new(((self.bits >> 12) & 3) as u8)
    }
    #[doc = "Bits 14:15 - Slope reference value mode"]
    #[inline(always)]
    pub fn svsc(&self) -> SVSC_R {
        SVSC_R::new(((self.bits >> 14) & 3) as u8)
    }
    #[doc = "Bits 16:17 - Initial DAC start mode"]
    #[inline(always)]
    pub fn swsm(&self) -> SWSM_R {
        SWSM_R::new(((self.bits >> 16) & 3) as u8)
    }
    #[doc = "Bits 18:19 - Slope step gain configuration"]
    #[inline(always)]
    pub fn gcfg(&self) -> GCFG_R {
        GCFG_R::new(((self.bits >> 18) & 3) as u8)
    }
    #[doc = "Bit 20 - Immediate shadow transfer"]
    #[inline(always)]
    pub fn ist(&self) -> IST_R {
        IST_R::new(((self.bits >> 20) & 1) != 0)
    }
    #[doc = "Bit 21 - Pulse swallow enable"]
    #[inline(always)]
    pub fn pse(&self) -> PSE_R {
        PSE_R::new(((self.bits >> 21) & 1) != 0)
    }
    #[doc = "Bits 24:25 - Pulse swallow window mode"]
    #[inline(always)]
    pub fn pswm(&self) -> PSWM_R {
        PSWM_R::new(((self.bits >> 24) & 3) as u8)
    }
}
impl W {
    #[doc = "Bits 0:1 - Prescaler external start configuration"]
    #[inline(always)]
    pub fn psrm(&mut self) -> PSRM_W<SC_SPEC> {
        PSRM_W::new(self, 0)
    }
    #[doc = "Bits 2:3 - Prescaler external stop configuration"]
    #[inline(always)]
    pub fn pstm(&mut self) -> PSTM_W<SC_SPEC> {
        PSTM_W::new(self, 2)
    }
    #[doc = "Bit 4 - Fixed division disable"]
    #[inline(always)]
    pub fn fpd(&mut self) -> FPD_W<SC_SPEC> {
        FPD_W::new(self, 4)
    }
    #[doc = "Bits 5:6 - Prescaler division factor"]
    #[inline(always)]
    pub fn psv(&mut self) -> PSV_W<SC_SPEC> {
        PSV_W::new(self, 5)
    }
    #[doc = "Bits 8:9 - Slope control mode"]
    #[inline(always)]
    pub fn scm(&mut self) -> SCM_W<SC_SPEC> {
        SCM_W::new(self, 8)
    }
    #[doc = "Bits 10:11 - Slope external start configuration"]
    #[inline(always)]
    pub fn ssrm(&mut self) -> SSRM_W<SC_SPEC> {
        SSRM_W::new(self, 10)
    }
    #[doc = "Bits 12:13 - Slope external stop configuration"]
    #[inline(always)]
    pub fn sstm(&mut self) -> SSTM_W<SC_SPEC> {
        SSTM_W::new(self, 12)
    }
    #[doc = "Bits 14:15 - Slope reference value mode"]
    #[inline(always)]
    pub fn svsc(&mut self) -> SVSC_W<SC_SPEC> {
        SVSC_W::new(self, 14)
    }
    #[doc = "Bits 16:17 - Initial DAC start mode"]
    #[inline(always)]
    pub fn swsm(&mut self) -> SWSM_W<SC_SPEC> {
        SWSM_W::new(self, 16)
    }
    #[doc = "Bits 18:19 - Slope step gain configuration"]
    #[inline(always)]
    pub fn gcfg(&mut self) -> GCFG_W<SC_SPEC> {
        GCFG_W::new(self, 18)
    }
    #[doc = "Bit 20 - Immediate shadow transfer"]
    #[inline(always)]
    pub fn ist(&mut self) -> IST_W<SC_SPEC> {
        IST_W::new(self, 20)
    }
    #[doc = "Bit 21 - Pulse swallow enable"]
    #[inline(always)]
    pub fn pse(&mut self) -> PSE_W<SC_SPEC> {
        PSE_W::new(self, 21)
    }
    #[doc = "Bits 24:25 - Pulse swallow window mode"]
    #[inline(always)]
    pub fn pswm(&mut self) -> PSWM_W<SC_SPEC> {
        PSWM_W::new(self, 24)
    }
}
#[doc = "Slope generation control\n\nYou can [`read`](crate::Reg::read) this register and get [`sc::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sc::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SC_SPEC;
impl crate::RegisterSpec for SC_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`sc::R`](R) reader structure"]
impl crate::Readable for SC_SPEC {}
#[doc = "`write(|w| ..)` method takes [`sc::W`](W) writer structure"]
impl crate::Writable for SC_SPEC {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets SC to value 0"]
impl crate::Resettable for SC_SPEC {
    const RESET_VALUE: u32 = 0;
}