atsamd51p/rtc/mode1/
syncbusy.rs1#[doc = "Register `SYNCBUSY` reader"]
2pub type R = crate::R<SyncbusySpec>;
3#[doc = "Field `SWRST` reader - Software Reset Bit Busy"]
4pub type SwrstR = crate::BitReader;
5#[doc = "Field `ENABLE` reader - Enable Bit Busy"]
6pub type EnableR = crate::BitReader;
7#[doc = "Field `FREQCORR` reader - FREQCORR Register Busy"]
8pub type FreqcorrR = crate::BitReader;
9#[doc = "Field `COUNT` reader - COUNT Register Busy"]
10pub type CountR = crate::BitReader;
11#[doc = "Field `PER` reader - PER Register Busy"]
12pub type PerR = crate::BitReader;
13#[doc = "Field `COMP0` reader - COMP 0 Register Busy"]
14pub type Comp0R = crate::BitReader;
15#[doc = "Field `COMP1` reader - COMP 1 Register Busy"]
16pub type Comp1R = crate::BitReader;
17#[doc = "Field `COMP2` reader - COMP 2 Register Busy"]
18pub type Comp2R = crate::BitReader;
19#[doc = "Field `COMP3` reader - COMP 3 Register Busy"]
20pub type Comp3R = crate::BitReader;
21#[doc = "Field `COUNTSYNC` reader - Count Synchronization Enable Bit Busy"]
22pub type CountsyncR = crate::BitReader;
23#[doc = "Field `GP0` reader - General Purpose 0 Register Busy"]
24pub type Gp0R = crate::BitReader;
25#[doc = "Field `GP1` reader - General Purpose 1 Register Busy"]
26pub type Gp1R = crate::BitReader;
27#[doc = "Field `GP2` reader - General Purpose 2 Register Busy"]
28pub type Gp2R = crate::BitReader;
29#[doc = "Field `GP3` reader - General Purpose 3 Register Busy"]
30pub type Gp3R = crate::BitReader;
31impl R {
32 #[doc = "Bit 0 - Software Reset Bit Busy"]
33 #[inline(always)]
34 pub fn swrst(&self) -> SwrstR {
35 SwrstR::new((self.bits & 1) != 0)
36 }
37 #[doc = "Bit 1 - Enable Bit Busy"]
38 #[inline(always)]
39 pub fn enable(&self) -> EnableR {
40 EnableR::new(((self.bits >> 1) & 1) != 0)
41 }
42 #[doc = "Bit 2 - FREQCORR Register Busy"]
43 #[inline(always)]
44 pub fn freqcorr(&self) -> FreqcorrR {
45 FreqcorrR::new(((self.bits >> 2) & 1) != 0)
46 }
47 #[doc = "Bit 3 - COUNT Register Busy"]
48 #[inline(always)]
49 pub fn count(&self) -> CountR {
50 CountR::new(((self.bits >> 3) & 1) != 0)
51 }
52 #[doc = "Bit 4 - PER Register Busy"]
53 #[inline(always)]
54 pub fn per(&self) -> PerR {
55 PerR::new(((self.bits >> 4) & 1) != 0)
56 }
57 #[doc = "Bit 5 - COMP 0 Register Busy"]
58 #[inline(always)]
59 pub fn comp0(&self) -> Comp0R {
60 Comp0R::new(((self.bits >> 5) & 1) != 0)
61 }
62 #[doc = "Bit 6 - COMP 1 Register Busy"]
63 #[inline(always)]
64 pub fn comp1(&self) -> Comp1R {
65 Comp1R::new(((self.bits >> 6) & 1) != 0)
66 }
67 #[doc = "Bit 7 - COMP 2 Register Busy"]
68 #[inline(always)]
69 pub fn comp2(&self) -> Comp2R {
70 Comp2R::new(((self.bits >> 7) & 1) != 0)
71 }
72 #[doc = "Bit 8 - COMP 3 Register Busy"]
73 #[inline(always)]
74 pub fn comp3(&self) -> Comp3R {
75 Comp3R::new(((self.bits >> 8) & 1) != 0)
76 }
77 #[doc = "Bit 15 - Count Synchronization Enable Bit Busy"]
78 #[inline(always)]
79 pub fn countsync(&self) -> CountsyncR {
80 CountsyncR::new(((self.bits >> 15) & 1) != 0)
81 }
82 #[doc = "Bit 16 - General Purpose 0 Register Busy"]
83 #[inline(always)]
84 pub fn gp0(&self) -> Gp0R {
85 Gp0R::new(((self.bits >> 16) & 1) != 0)
86 }
87 #[doc = "Bit 17 - General Purpose 1 Register Busy"]
88 #[inline(always)]
89 pub fn gp1(&self) -> Gp1R {
90 Gp1R::new(((self.bits >> 17) & 1) != 0)
91 }
92 #[doc = "Bit 18 - General Purpose 2 Register Busy"]
93 #[inline(always)]
94 pub fn gp2(&self) -> Gp2R {
95 Gp2R::new(((self.bits >> 18) & 1) != 0)
96 }
97 #[doc = "Bit 19 - General Purpose 3 Register Busy"]
98 #[inline(always)]
99 pub fn gp3(&self) -> Gp3R {
100 Gp3R::new(((self.bits >> 19) & 1) != 0)
101 }
102}
103#[doc = "MODE1 Synchronization Busy Status\n\nYou can [`read`](crate::Reg::read) this register and get [`syncbusy::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
104pub struct SyncbusySpec;
105impl crate::RegisterSpec for SyncbusySpec {
106 type Ux = u32;
107}
108#[doc = "`read()` method returns [`syncbusy::R`](R) reader structure"]
109impl crate::Readable for SyncbusySpec {}
110#[doc = "`reset()` method sets SYNCBUSY to value 0"]
111impl crate::Resettable for SyncbusySpec {
112 const RESET_VALUE: u32 = 0;
113}