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
#[doc = "Register `CSSTAT` reader"]
pub struct R(crate::R<CSSTAT_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<CSSTAT_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<CSSTAT_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<CSSTAT_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "DCO status\n\nValue on reset: 1"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum DCO_ON_A {
    #[doc = "0: Inactive"]
    DCO_ON_0 = 0,
    #[doc = "1: Active"]
    DCO_ON_1 = 1,
}
impl From<DCO_ON_A> for bool {
    #[inline(always)]
    fn from(variant: DCO_ON_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `DCO_ON` reader - DCO status"]
pub type DCO_ON_R = crate::BitReader<DCO_ON_A>;
impl DCO_ON_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> DCO_ON_A {
        match self.bits {
            false => DCO_ON_A::DCO_ON_0,
            true => DCO_ON_A::DCO_ON_1,
        }
    }
    #[doc = "Checks if the value of the field is `DCO_ON_0`"]
    #[inline(always)]
    pub fn is_dco_on_0(&self) -> bool {
        *self == DCO_ON_A::DCO_ON_0
    }
    #[doc = "Checks if the value of the field is `DCO_ON_1`"]
    #[inline(always)]
    pub fn is_dco_on_1(&self) -> bool {
        *self == DCO_ON_A::DCO_ON_1
    }
}
#[doc = "DCO bias status\n\nValue on reset: 1"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum DCOBIAS_ON_A {
    #[doc = "0: Inactive"]
    DCOBIAS_ON_0 = 0,
    #[doc = "1: Active"]
    DCOBIAS_ON_1 = 1,
}
impl From<DCOBIAS_ON_A> for bool {
    #[inline(always)]
    fn from(variant: DCOBIAS_ON_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `DCOBIAS_ON` reader - DCO bias status"]
pub type DCOBIAS_ON_R = crate::BitReader<DCOBIAS_ON_A>;
impl DCOBIAS_ON_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> DCOBIAS_ON_A {
        match self.bits {
            false => DCOBIAS_ON_A::DCOBIAS_ON_0,
            true => DCOBIAS_ON_A::DCOBIAS_ON_1,
        }
    }
    #[doc = "Checks if the value of the field is `DCOBIAS_ON_0`"]
    #[inline(always)]
    pub fn is_dcobias_on_0(&self) -> bool {
        *self == DCOBIAS_ON_A::DCOBIAS_ON_0
    }
    #[doc = "Checks if the value of the field is `DCOBIAS_ON_1`"]
    #[inline(always)]
    pub fn is_dcobias_on_1(&self) -> bool {
        *self == DCOBIAS_ON_A::DCOBIAS_ON_1
    }
}
#[doc = "HFXT status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum HFXT_ON_A {
    #[doc = "0: Inactive"]
    HFXT_ON_0 = 0,
    #[doc = "1: Active"]
    HFXT_ON_1 = 1,
}
impl From<HFXT_ON_A> for bool {
    #[inline(always)]
    fn from(variant: HFXT_ON_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `HFXT_ON` reader - HFXT status"]
pub type HFXT_ON_R = crate::BitReader<HFXT_ON_A>;
impl HFXT_ON_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> HFXT_ON_A {
        match self.bits {
            false => HFXT_ON_A::HFXT_ON_0,
            true => HFXT_ON_A::HFXT_ON_1,
        }
    }
    #[doc = "Checks if the value of the field is `HFXT_ON_0`"]
    #[inline(always)]
    pub fn is_hfxt_on_0(&self) -> bool {
        *self == HFXT_ON_A::HFXT_ON_0
    }
    #[doc = "Checks if the value of the field is `HFXT_ON_1`"]
    #[inline(always)]
    pub fn is_hfxt_on_1(&self) -> bool {
        *self == HFXT_ON_A::HFXT_ON_1
    }
}
#[doc = "HFXT2 status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum HFXT2_ON_A {
    #[doc = "0: Inactive"]
    HFXT2_ON_0 = 0,
    #[doc = "1: Active"]
    HFXT2_ON_1 = 1,
}
impl From<HFXT2_ON_A> for bool {
    #[inline(always)]
    fn from(variant: HFXT2_ON_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `HFXT2_ON` reader - HFXT2 status"]
pub type HFXT2_ON_R = crate::BitReader<HFXT2_ON_A>;
impl HFXT2_ON_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> HFXT2_ON_A {
        match self.bits {
            false => HFXT2_ON_A::HFXT2_ON_0,
            true => HFXT2_ON_A::HFXT2_ON_1,
        }
    }
    #[doc = "Checks if the value of the field is `HFXT2_ON_0`"]
    #[inline(always)]
    pub fn is_hfxt2_on_0(&self) -> bool {
        *self == HFXT2_ON_A::HFXT2_ON_0
    }
    #[doc = "Checks if the value of the field is `HFXT2_ON_1`"]
    #[inline(always)]
    pub fn is_hfxt2_on_1(&self) -> bool {
        *self == HFXT2_ON_A::HFXT2_ON_1
    }
}
#[doc = "MODOSC status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum MODOSC_ON_A {
    #[doc = "0: Inactive"]
    MODOSC_ON_0 = 0,
    #[doc = "1: Active"]
    MODOSC_ON_1 = 1,
}
impl From<MODOSC_ON_A> for bool {
    #[inline(always)]
    fn from(variant: MODOSC_ON_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `MODOSC_ON` reader - MODOSC status"]
pub type MODOSC_ON_R = crate::BitReader<MODOSC_ON_A>;
impl MODOSC_ON_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> MODOSC_ON_A {
        match self.bits {
            false => MODOSC_ON_A::MODOSC_ON_0,
            true => MODOSC_ON_A::MODOSC_ON_1,
        }
    }
    #[doc = "Checks if the value of the field is `MODOSC_ON_0`"]
    #[inline(always)]
    pub fn is_modosc_on_0(&self) -> bool {
        *self == MODOSC_ON_A::MODOSC_ON_0
    }
    #[doc = "Checks if the value of the field is `MODOSC_ON_1`"]
    #[inline(always)]
    pub fn is_modosc_on_1(&self) -> bool {
        *self == MODOSC_ON_A::MODOSC_ON_1
    }
}
#[doc = "VLO status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum VLO_ON_A {
    #[doc = "0: Inactive"]
    VLO_ON_0 = 0,
    #[doc = "1: Active"]
    VLO_ON_1 = 1,
}
impl From<VLO_ON_A> for bool {
    #[inline(always)]
    fn from(variant: VLO_ON_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `VLO_ON` reader - VLO status"]
pub type VLO_ON_R = crate::BitReader<VLO_ON_A>;
impl VLO_ON_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> VLO_ON_A {
        match self.bits {
            false => VLO_ON_A::VLO_ON_0,
            true => VLO_ON_A::VLO_ON_1,
        }
    }
    #[doc = "Checks if the value of the field is `VLO_ON_0`"]
    #[inline(always)]
    pub fn is_vlo_on_0(&self) -> bool {
        *self == VLO_ON_A::VLO_ON_0
    }
    #[doc = "Checks if the value of the field is `VLO_ON_1`"]
    #[inline(always)]
    pub fn is_vlo_on_1(&self) -> bool {
        *self == VLO_ON_A::VLO_ON_1
    }
}
#[doc = "LFXT status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum LFXT_ON_A {
    #[doc = "0: Inactive"]
    LFXT_ON_0 = 0,
    #[doc = "1: Active"]
    LFXT_ON_1 = 1,
}
impl From<LFXT_ON_A> for bool {
    #[inline(always)]
    fn from(variant: LFXT_ON_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `LFXT_ON` reader - LFXT status"]
pub type LFXT_ON_R = crate::BitReader<LFXT_ON_A>;
impl LFXT_ON_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> LFXT_ON_A {
        match self.bits {
            false => LFXT_ON_A::LFXT_ON_0,
            true => LFXT_ON_A::LFXT_ON_1,
        }
    }
    #[doc = "Checks if the value of the field is `LFXT_ON_0`"]
    #[inline(always)]
    pub fn is_lfxt_on_0(&self) -> bool {
        *self == LFXT_ON_A::LFXT_ON_0
    }
    #[doc = "Checks if the value of the field is `LFXT_ON_1`"]
    #[inline(always)]
    pub fn is_lfxt_on_1(&self) -> bool {
        *self == LFXT_ON_A::LFXT_ON_1
    }
}
#[doc = "REFO status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum REFO_ON_A {
    #[doc = "0: Inactive"]
    REFO_ON_0 = 0,
    #[doc = "1: Active"]
    REFO_ON_1 = 1,
}
impl From<REFO_ON_A> for bool {
    #[inline(always)]
    fn from(variant: REFO_ON_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `REFO_ON` reader - REFO status"]
pub type REFO_ON_R = crate::BitReader<REFO_ON_A>;
impl REFO_ON_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> REFO_ON_A {
        match self.bits {
            false => REFO_ON_A::REFO_ON_0,
            true => REFO_ON_A::REFO_ON_1,
        }
    }
    #[doc = "Checks if the value of the field is `REFO_ON_0`"]
    #[inline(always)]
    pub fn is_refo_on_0(&self) -> bool {
        *self == REFO_ON_A::REFO_ON_0
    }
    #[doc = "Checks if the value of the field is `REFO_ON_1`"]
    #[inline(always)]
    pub fn is_refo_on_1(&self) -> bool {
        *self == REFO_ON_A::REFO_ON_1
    }
}
#[doc = "ACLK system clock status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ACLK_ON_A {
    #[doc = "0: Inactive"]
    ACLK_ON_0 = 0,
    #[doc = "1: Active"]
    ACLK_ON_1 = 1,
}
impl From<ACLK_ON_A> for bool {
    #[inline(always)]
    fn from(variant: ACLK_ON_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `ACLK_ON` reader - ACLK system clock status"]
pub type ACLK_ON_R = crate::BitReader<ACLK_ON_A>;
impl ACLK_ON_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ACLK_ON_A {
        match self.bits {
            false => ACLK_ON_A::ACLK_ON_0,
            true => ACLK_ON_A::ACLK_ON_1,
        }
    }
    #[doc = "Checks if the value of the field is `ACLK_ON_0`"]
    #[inline(always)]
    pub fn is_aclk_on_0(&self) -> bool {
        *self == ACLK_ON_A::ACLK_ON_0
    }
    #[doc = "Checks if the value of the field is `ACLK_ON_1`"]
    #[inline(always)]
    pub fn is_aclk_on_1(&self) -> bool {
        *self == ACLK_ON_A::ACLK_ON_1
    }
}
#[doc = "MCLK system clock status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum MCLK_ON_A {
    #[doc = "0: Inactive"]
    MCLK_ON_0 = 0,
    #[doc = "1: Active"]
    MCLK_ON_1 = 1,
}
impl From<MCLK_ON_A> for bool {
    #[inline(always)]
    fn from(variant: MCLK_ON_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `MCLK_ON` reader - MCLK system clock status"]
pub type MCLK_ON_R = crate::BitReader<MCLK_ON_A>;
impl MCLK_ON_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> MCLK_ON_A {
        match self.bits {
            false => MCLK_ON_A::MCLK_ON_0,
            true => MCLK_ON_A::MCLK_ON_1,
        }
    }
    #[doc = "Checks if the value of the field is `MCLK_ON_0`"]
    #[inline(always)]
    pub fn is_mclk_on_0(&self) -> bool {
        *self == MCLK_ON_A::MCLK_ON_0
    }
    #[doc = "Checks if the value of the field is `MCLK_ON_1`"]
    #[inline(always)]
    pub fn is_mclk_on_1(&self) -> bool {
        *self == MCLK_ON_A::MCLK_ON_1
    }
}
#[doc = "HSMCLK system clock status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum HSMCLK_ON_A {
    #[doc = "0: Inactive"]
    HSMCLK_ON_0 = 0,
    #[doc = "1: Active"]
    HSMCLK_ON_1 = 1,
}
impl From<HSMCLK_ON_A> for bool {
    #[inline(always)]
    fn from(variant: HSMCLK_ON_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `HSMCLK_ON` reader - HSMCLK system clock status"]
pub type HSMCLK_ON_R = crate::BitReader<HSMCLK_ON_A>;
impl HSMCLK_ON_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> HSMCLK_ON_A {
        match self.bits {
            false => HSMCLK_ON_A::HSMCLK_ON_0,
            true => HSMCLK_ON_A::HSMCLK_ON_1,
        }
    }
    #[doc = "Checks if the value of the field is `HSMCLK_ON_0`"]
    #[inline(always)]
    pub fn is_hsmclk_on_0(&self) -> bool {
        *self == HSMCLK_ON_A::HSMCLK_ON_0
    }
    #[doc = "Checks if the value of the field is `HSMCLK_ON_1`"]
    #[inline(always)]
    pub fn is_hsmclk_on_1(&self) -> bool {
        *self == HSMCLK_ON_A::HSMCLK_ON_1
    }
}
#[doc = "SMCLK system clock status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum SMCLK_ON_A {
    #[doc = "0: Inactive"]
    SMCLK_ON_0 = 0,
    #[doc = "1: Active"]
    SMCLK_ON_1 = 1,
}
impl From<SMCLK_ON_A> for bool {
    #[inline(always)]
    fn from(variant: SMCLK_ON_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `SMCLK_ON` reader - SMCLK system clock status"]
pub type SMCLK_ON_R = crate::BitReader<SMCLK_ON_A>;
impl SMCLK_ON_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> SMCLK_ON_A {
        match self.bits {
            false => SMCLK_ON_A::SMCLK_ON_0,
            true => SMCLK_ON_A::SMCLK_ON_1,
        }
    }
    #[doc = "Checks if the value of the field is `SMCLK_ON_0`"]
    #[inline(always)]
    pub fn is_smclk_on_0(&self) -> bool {
        *self == SMCLK_ON_A::SMCLK_ON_0
    }
    #[doc = "Checks if the value of the field is `SMCLK_ON_1`"]
    #[inline(always)]
    pub fn is_smclk_on_1(&self) -> bool {
        *self == SMCLK_ON_A::SMCLK_ON_1
    }
}
#[doc = "MODCLK system clock status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum MODCLK_ON_A {
    #[doc = "0: Inactive"]
    MODCLK_ON_0 = 0,
    #[doc = "1: Active"]
    MODCLK_ON_1 = 1,
}
impl From<MODCLK_ON_A> for bool {
    #[inline(always)]
    fn from(variant: MODCLK_ON_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `MODCLK_ON` reader - MODCLK system clock status"]
pub type MODCLK_ON_R = crate::BitReader<MODCLK_ON_A>;
impl MODCLK_ON_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> MODCLK_ON_A {
        match self.bits {
            false => MODCLK_ON_A::MODCLK_ON_0,
            true => MODCLK_ON_A::MODCLK_ON_1,
        }
    }
    #[doc = "Checks if the value of the field is `MODCLK_ON_0`"]
    #[inline(always)]
    pub fn is_modclk_on_0(&self) -> bool {
        *self == MODCLK_ON_A::MODCLK_ON_0
    }
    #[doc = "Checks if the value of the field is `MODCLK_ON_1`"]
    #[inline(always)]
    pub fn is_modclk_on_1(&self) -> bool {
        *self == MODCLK_ON_A::MODCLK_ON_1
    }
}
#[doc = "VLOCLK system clock status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum VLOCLK_ON_A {
    #[doc = "0: Inactive"]
    VLOCLK_ON_0 = 0,
    #[doc = "1: Active"]
    VLOCLK_ON_1 = 1,
}
impl From<VLOCLK_ON_A> for bool {
    #[inline(always)]
    fn from(variant: VLOCLK_ON_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `VLOCLK_ON` reader - VLOCLK system clock status"]
pub type VLOCLK_ON_R = crate::BitReader<VLOCLK_ON_A>;
impl VLOCLK_ON_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> VLOCLK_ON_A {
        match self.bits {
            false => VLOCLK_ON_A::VLOCLK_ON_0,
            true => VLOCLK_ON_A::VLOCLK_ON_1,
        }
    }
    #[doc = "Checks if the value of the field is `VLOCLK_ON_0`"]
    #[inline(always)]
    pub fn is_vloclk_on_0(&self) -> bool {
        *self == VLOCLK_ON_A::VLOCLK_ON_0
    }
    #[doc = "Checks if the value of the field is `VLOCLK_ON_1`"]
    #[inline(always)]
    pub fn is_vloclk_on_1(&self) -> bool {
        *self == VLOCLK_ON_A::VLOCLK_ON_1
    }
}
#[doc = "LFXTCLK system clock status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum LFXTCLK_ON_A {
    #[doc = "0: Inactive"]
    LFXTCLK_ON_0 = 0,
    #[doc = "1: Active"]
    LFXTCLK_ON_1 = 1,
}
impl From<LFXTCLK_ON_A> for bool {
    #[inline(always)]
    fn from(variant: LFXTCLK_ON_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `LFXTCLK_ON` reader - LFXTCLK system clock status"]
pub type LFXTCLK_ON_R = crate::BitReader<LFXTCLK_ON_A>;
impl LFXTCLK_ON_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> LFXTCLK_ON_A {
        match self.bits {
            false => LFXTCLK_ON_A::LFXTCLK_ON_0,
            true => LFXTCLK_ON_A::LFXTCLK_ON_1,
        }
    }
    #[doc = "Checks if the value of the field is `LFXTCLK_ON_0`"]
    #[inline(always)]
    pub fn is_lfxtclk_on_0(&self) -> bool {
        *self == LFXTCLK_ON_A::LFXTCLK_ON_0
    }
    #[doc = "Checks if the value of the field is `LFXTCLK_ON_1`"]
    #[inline(always)]
    pub fn is_lfxtclk_on_1(&self) -> bool {
        *self == LFXTCLK_ON_A::LFXTCLK_ON_1
    }
}
#[doc = "REFOCLK system clock status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum REFOCLK_ON_A {
    #[doc = "0: Inactive"]
    REFOCLK_ON_0 = 0,
    #[doc = "1: Active"]
    REFOCLK_ON_1 = 1,
}
impl From<REFOCLK_ON_A> for bool {
    #[inline(always)]
    fn from(variant: REFOCLK_ON_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `REFOCLK_ON` reader - REFOCLK system clock status"]
pub type REFOCLK_ON_R = crate::BitReader<REFOCLK_ON_A>;
impl REFOCLK_ON_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> REFOCLK_ON_A {
        match self.bits {
            false => REFOCLK_ON_A::REFOCLK_ON_0,
            true => REFOCLK_ON_A::REFOCLK_ON_1,
        }
    }
    #[doc = "Checks if the value of the field is `REFOCLK_ON_0`"]
    #[inline(always)]
    pub fn is_refoclk_on_0(&self) -> bool {
        *self == REFOCLK_ON_A::REFOCLK_ON_0
    }
    #[doc = "Checks if the value of the field is `REFOCLK_ON_1`"]
    #[inline(always)]
    pub fn is_refoclk_on_1(&self) -> bool {
        *self == REFOCLK_ON_A::REFOCLK_ON_1
    }
}
#[doc = "ACLK Ready status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ACLK_READY_A {
    #[doc = "0: Not ready"]
    ACLK_READY_0 = 0,
    #[doc = "1: Ready"]
    ACLK_READY_1 = 1,
}
impl From<ACLK_READY_A> for bool {
    #[inline(always)]
    fn from(variant: ACLK_READY_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `ACLK_READY` reader - ACLK Ready status"]
pub type ACLK_READY_R = crate::BitReader<ACLK_READY_A>;
impl ACLK_READY_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ACLK_READY_A {
        match self.bits {
            false => ACLK_READY_A::ACLK_READY_0,
            true => ACLK_READY_A::ACLK_READY_1,
        }
    }
    #[doc = "Checks if the value of the field is `ACLK_READY_0`"]
    #[inline(always)]
    pub fn is_aclk_ready_0(&self) -> bool {
        *self == ACLK_READY_A::ACLK_READY_0
    }
    #[doc = "Checks if the value of the field is `ACLK_READY_1`"]
    #[inline(always)]
    pub fn is_aclk_ready_1(&self) -> bool {
        *self == ACLK_READY_A::ACLK_READY_1
    }
}
#[doc = "MCLK Ready status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum MCLK_READY_A {
    #[doc = "0: Not ready"]
    MCLK_READY_0 = 0,
    #[doc = "1: Ready"]
    MCLK_READY_1 = 1,
}
impl From<MCLK_READY_A> for bool {
    #[inline(always)]
    fn from(variant: MCLK_READY_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `MCLK_READY` reader - MCLK Ready status"]
pub type MCLK_READY_R = crate::BitReader<MCLK_READY_A>;
impl MCLK_READY_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> MCLK_READY_A {
        match self.bits {
            false => MCLK_READY_A::MCLK_READY_0,
            true => MCLK_READY_A::MCLK_READY_1,
        }
    }
    #[doc = "Checks if the value of the field is `MCLK_READY_0`"]
    #[inline(always)]
    pub fn is_mclk_ready_0(&self) -> bool {
        *self == MCLK_READY_A::MCLK_READY_0
    }
    #[doc = "Checks if the value of the field is `MCLK_READY_1`"]
    #[inline(always)]
    pub fn is_mclk_ready_1(&self) -> bool {
        *self == MCLK_READY_A::MCLK_READY_1
    }
}
#[doc = "HSMCLK Ready status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum HSMCLK_READY_A {
    #[doc = "0: Not ready"]
    HSMCLK_READY_0 = 0,
    #[doc = "1: Ready"]
    HSMCLK_READY_1 = 1,
}
impl From<HSMCLK_READY_A> for bool {
    #[inline(always)]
    fn from(variant: HSMCLK_READY_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `HSMCLK_READY` reader - HSMCLK Ready status"]
pub type HSMCLK_READY_R = crate::BitReader<HSMCLK_READY_A>;
impl HSMCLK_READY_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> HSMCLK_READY_A {
        match self.bits {
            false => HSMCLK_READY_A::HSMCLK_READY_0,
            true => HSMCLK_READY_A::HSMCLK_READY_1,
        }
    }
    #[doc = "Checks if the value of the field is `HSMCLK_READY_0`"]
    #[inline(always)]
    pub fn is_hsmclk_ready_0(&self) -> bool {
        *self == HSMCLK_READY_A::HSMCLK_READY_0
    }
    #[doc = "Checks if the value of the field is `HSMCLK_READY_1`"]
    #[inline(always)]
    pub fn is_hsmclk_ready_1(&self) -> bool {
        *self == HSMCLK_READY_A::HSMCLK_READY_1
    }
}
#[doc = "SMCLK Ready status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum SMCLK_READY_A {
    #[doc = "0: Not ready"]
    SMCLK_READY_0 = 0,
    #[doc = "1: Ready"]
    SMCLK_READY_1 = 1,
}
impl From<SMCLK_READY_A> for bool {
    #[inline(always)]
    fn from(variant: SMCLK_READY_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `SMCLK_READY` reader - SMCLK Ready status"]
pub type SMCLK_READY_R = crate::BitReader<SMCLK_READY_A>;
impl SMCLK_READY_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> SMCLK_READY_A {
        match self.bits {
            false => SMCLK_READY_A::SMCLK_READY_0,
            true => SMCLK_READY_A::SMCLK_READY_1,
        }
    }
    #[doc = "Checks if the value of the field is `SMCLK_READY_0`"]
    #[inline(always)]
    pub fn is_smclk_ready_0(&self) -> bool {
        *self == SMCLK_READY_A::SMCLK_READY_0
    }
    #[doc = "Checks if the value of the field is `SMCLK_READY_1`"]
    #[inline(always)]
    pub fn is_smclk_ready_1(&self) -> bool {
        *self == SMCLK_READY_A::SMCLK_READY_1
    }
}
#[doc = "BCLK Ready status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum BCLK_READY_A {
    #[doc = "0: Not ready"]
    BCLK_READY_0 = 0,
    #[doc = "1: Ready"]
    BCLK_READY_1 = 1,
}
impl From<BCLK_READY_A> for bool {
    #[inline(always)]
    fn from(variant: BCLK_READY_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `BCLK_READY` reader - BCLK Ready status"]
pub type BCLK_READY_R = crate::BitReader<BCLK_READY_A>;
impl BCLK_READY_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> BCLK_READY_A {
        match self.bits {
            false => BCLK_READY_A::BCLK_READY_0,
            true => BCLK_READY_A::BCLK_READY_1,
        }
    }
    #[doc = "Checks if the value of the field is `BCLK_READY_0`"]
    #[inline(always)]
    pub fn is_bclk_ready_0(&self) -> bool {
        *self == BCLK_READY_A::BCLK_READY_0
    }
    #[doc = "Checks if the value of the field is `BCLK_READY_1`"]
    #[inline(always)]
    pub fn is_bclk_ready_1(&self) -> bool {
        *self == BCLK_READY_A::BCLK_READY_1
    }
}
impl R {
    #[doc = "Bit 0 - DCO status"]
    #[inline(always)]
    pub fn dco_on(&self) -> DCO_ON_R {
        DCO_ON_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - DCO bias status"]
    #[inline(always)]
    pub fn dcobias_on(&self) -> DCOBIAS_ON_R {
        DCOBIAS_ON_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - HFXT status"]
    #[inline(always)]
    pub fn hfxt_on(&self) -> HFXT_ON_R {
        HFXT_ON_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - HFXT2 status"]
    #[inline(always)]
    pub fn hfxt2_on(&self) -> HFXT2_ON_R {
        HFXT2_ON_R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - MODOSC status"]
    #[inline(always)]
    pub fn modosc_on(&self) -> MODOSC_ON_R {
        MODOSC_ON_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - VLO status"]
    #[inline(always)]
    pub fn vlo_on(&self) -> VLO_ON_R {
        VLO_ON_R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - LFXT status"]
    #[inline(always)]
    pub fn lfxt_on(&self) -> LFXT_ON_R {
        LFXT_ON_R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - REFO status"]
    #[inline(always)]
    pub fn refo_on(&self) -> REFO_ON_R {
        REFO_ON_R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 16 - ACLK system clock status"]
    #[inline(always)]
    pub fn aclk_on(&self) -> ACLK_ON_R {
        ACLK_ON_R::new(((self.bits >> 16) & 1) != 0)
    }
    #[doc = "Bit 17 - MCLK system clock status"]
    #[inline(always)]
    pub fn mclk_on(&self) -> MCLK_ON_R {
        MCLK_ON_R::new(((self.bits >> 17) & 1) != 0)
    }
    #[doc = "Bit 18 - HSMCLK system clock status"]
    #[inline(always)]
    pub fn hsmclk_on(&self) -> HSMCLK_ON_R {
        HSMCLK_ON_R::new(((self.bits >> 18) & 1) != 0)
    }
    #[doc = "Bit 19 - SMCLK system clock status"]
    #[inline(always)]
    pub fn smclk_on(&self) -> SMCLK_ON_R {
        SMCLK_ON_R::new(((self.bits >> 19) & 1) != 0)
    }
    #[doc = "Bit 20 - MODCLK system clock status"]
    #[inline(always)]
    pub fn modclk_on(&self) -> MODCLK_ON_R {
        MODCLK_ON_R::new(((self.bits >> 20) & 1) != 0)
    }
    #[doc = "Bit 21 - VLOCLK system clock status"]
    #[inline(always)]
    pub fn vloclk_on(&self) -> VLOCLK_ON_R {
        VLOCLK_ON_R::new(((self.bits >> 21) & 1) != 0)
    }
    #[doc = "Bit 22 - LFXTCLK system clock status"]
    #[inline(always)]
    pub fn lfxtclk_on(&self) -> LFXTCLK_ON_R {
        LFXTCLK_ON_R::new(((self.bits >> 22) & 1) != 0)
    }
    #[doc = "Bit 23 - REFOCLK system clock status"]
    #[inline(always)]
    pub fn refoclk_on(&self) -> REFOCLK_ON_R {
        REFOCLK_ON_R::new(((self.bits >> 23) & 1) != 0)
    }
    #[doc = "Bit 24 - ACLK Ready status"]
    #[inline(always)]
    pub fn aclk_ready(&self) -> ACLK_READY_R {
        ACLK_READY_R::new(((self.bits >> 24) & 1) != 0)
    }
    #[doc = "Bit 25 - MCLK Ready status"]
    #[inline(always)]
    pub fn mclk_ready(&self) -> MCLK_READY_R {
        MCLK_READY_R::new(((self.bits >> 25) & 1) != 0)
    }
    #[doc = "Bit 26 - HSMCLK Ready status"]
    #[inline(always)]
    pub fn hsmclk_ready(&self) -> HSMCLK_READY_R {
        HSMCLK_READY_R::new(((self.bits >> 26) & 1) != 0)
    }
    #[doc = "Bit 27 - SMCLK Ready status"]
    #[inline(always)]
    pub fn smclk_ready(&self) -> SMCLK_READY_R {
        SMCLK_READY_R::new(((self.bits >> 27) & 1) != 0)
    }
    #[doc = "Bit 28 - BCLK Ready status"]
    #[inline(always)]
    pub fn bclk_ready(&self) -> BCLK_READY_R {
        BCLK_READY_R::new(((self.bits >> 28) & 1) != 0)
    }
}
#[doc = "Status Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [csstat](index.html) module"]
pub struct CSSTAT_SPEC;
impl crate::RegisterSpec for CSSTAT_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [csstat::R](R) reader structure"]
impl crate::Readable for CSSTAT_SPEC {
    type Reader = R;
}
#[doc = "`reset()` method sets CSSTAT to value 0x03"]
impl crate::Resettable for CSSTAT_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0x03
    }
}