atsamd51p/rtc/mode2/
syncbusy.rs
1#[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 `CLOCK` reader - CLOCK Register Busy"]
10pub type ClockR = crate::BitReader;
11#[doc = "Field `ALARM0` reader - ALARM 0 Register Busy"]
12pub type Alarm0R = crate::BitReader;
13#[doc = "Field `ALARM1` reader - ALARM 1 Register Busy"]
14pub type Alarm1R = crate::BitReader;
15#[doc = "Field `MASK0` reader - MASK 0 Register Busy"]
16pub type Mask0R = crate::BitReader;
17#[doc = "Field `MASK1` reader - MASK 1 Register Busy"]
18pub type Mask1R = crate::BitReader;
19#[doc = "Field `CLOCKSYNC` reader - Clock Synchronization Enable Bit Busy"]
20pub type ClocksyncR = crate::BitReader;
21#[doc = "Field `GP0` reader - General Purpose 0 Register Busy"]
22pub type Gp0R = crate::BitReader;
23#[doc = "Field `GP1` reader - General Purpose 1 Register Busy"]
24pub type Gp1R = crate::BitReader;
25#[doc = "Field `GP2` reader - General Purpose 2 Register Busy"]
26pub type Gp2R = crate::BitReader;
27#[doc = "Field `GP3` reader - General Purpose 3 Register Busy"]
28pub type Gp3R = crate::BitReader;
29impl R {
30 #[doc = "Bit 0 - Software Reset Bit Busy"]
31 #[inline(always)]
32 pub fn swrst(&self) -> SwrstR {
33 SwrstR::new((self.bits & 1) != 0)
34 }
35 #[doc = "Bit 1 - Enable Bit Busy"]
36 #[inline(always)]
37 pub fn enable(&self) -> EnableR {
38 EnableR::new(((self.bits >> 1) & 1) != 0)
39 }
40 #[doc = "Bit 2 - FREQCORR Register Busy"]
41 #[inline(always)]
42 pub fn freqcorr(&self) -> FreqcorrR {
43 FreqcorrR::new(((self.bits >> 2) & 1) != 0)
44 }
45 #[doc = "Bit 3 - CLOCK Register Busy"]
46 #[inline(always)]
47 pub fn clock(&self) -> ClockR {
48 ClockR::new(((self.bits >> 3) & 1) != 0)
49 }
50 #[doc = "Bit 5 - ALARM 0 Register Busy"]
51 #[inline(always)]
52 pub fn alarm0(&self) -> Alarm0R {
53 Alarm0R::new(((self.bits >> 5) & 1) != 0)
54 }
55 #[doc = "Bit 6 - ALARM 1 Register Busy"]
56 #[inline(always)]
57 pub fn alarm1(&self) -> Alarm1R {
58 Alarm1R::new(((self.bits >> 6) & 1) != 0)
59 }
60 #[doc = "Bit 11 - MASK 0 Register Busy"]
61 #[inline(always)]
62 pub fn mask0(&self) -> Mask0R {
63 Mask0R::new(((self.bits >> 11) & 1) != 0)
64 }
65 #[doc = "Bit 12 - MASK 1 Register Busy"]
66 #[inline(always)]
67 pub fn mask1(&self) -> Mask1R {
68 Mask1R::new(((self.bits >> 12) & 1) != 0)
69 }
70 #[doc = "Bit 15 - Clock Synchronization Enable Bit Busy"]
71 #[inline(always)]
72 pub fn clocksync(&self) -> ClocksyncR {
73 ClocksyncR::new(((self.bits >> 15) & 1) != 0)
74 }
75 #[doc = "Bit 16 - General Purpose 0 Register Busy"]
76 #[inline(always)]
77 pub fn gp0(&self) -> Gp0R {
78 Gp0R::new(((self.bits >> 16) & 1) != 0)
79 }
80 #[doc = "Bit 17 - General Purpose 1 Register Busy"]
81 #[inline(always)]
82 pub fn gp1(&self) -> Gp1R {
83 Gp1R::new(((self.bits >> 17) & 1) != 0)
84 }
85 #[doc = "Bit 18 - General Purpose 2 Register Busy"]
86 #[inline(always)]
87 pub fn gp2(&self) -> Gp2R {
88 Gp2R::new(((self.bits >> 18) & 1) != 0)
89 }
90 #[doc = "Bit 19 - General Purpose 3 Register Busy"]
91 #[inline(always)]
92 pub fn gp3(&self) -> Gp3R {
93 Gp3R::new(((self.bits >> 19) & 1) != 0)
94 }
95}
96#[doc = "MODE2 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)."]
97pub struct SyncbusySpec;
98impl crate::RegisterSpec for SyncbusySpec {
99 type Ux = u32;
100}
101#[doc = "`read()` method returns [`syncbusy::R`](R) reader structure"]
102impl crate::Readable for SyncbusySpec {}
103#[doc = "`reset()` method sets SYNCBUSY to value 0"]
104impl crate::Resettable for SyncbusySpec {
105 const RESET_VALUE: u32 = 0;
106}