atsamd51j/rtc/mode0/
syncbusy.rs
1#[doc = "Register `SYNCBUSY` reader"]
2pub type R = crate::R<SyncbusySpec>;
3#[doc = "Field `SWRST` reader - Software Reset 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 `COMP0` reader - COMP 0 Register Busy"]
12pub type Comp0R = crate::BitReader;
13#[doc = "Field `COMP1` reader - COMP 1 Register Busy"]
14pub type Comp1R = crate::BitReader;
15#[doc = "Field `COUNTSYNC` reader - Count Synchronization Enable Bit Busy"]
16pub type CountsyncR = crate::BitReader;
17#[doc = "Field `GP0` reader - General Purpose 0 Register Busy"]
18pub type Gp0R = crate::BitReader;
19#[doc = "Field `GP1` reader - General Purpose 1 Register Busy"]
20pub type Gp1R = crate::BitReader;
21#[doc = "Field `GP2` reader - General Purpose 2 Register Busy"]
22pub type Gp2R = crate::BitReader;
23#[doc = "Field `GP3` reader - General Purpose 3 Register Busy"]
24pub type Gp3R = crate::BitReader;
25impl R {
26 #[doc = "Bit 0 - Software Reset Busy"]
27 #[inline(always)]
28 pub fn swrst(&self) -> SwrstR {
29 SwrstR::new((self.bits & 1) != 0)
30 }
31 #[doc = "Bit 1 - Enable Bit Busy"]
32 #[inline(always)]
33 pub fn enable(&self) -> EnableR {
34 EnableR::new(((self.bits >> 1) & 1) != 0)
35 }
36 #[doc = "Bit 2 - FREQCORR Register Busy"]
37 #[inline(always)]
38 pub fn freqcorr(&self) -> FreqcorrR {
39 FreqcorrR::new(((self.bits >> 2) & 1) != 0)
40 }
41 #[doc = "Bit 3 - COUNT Register Busy"]
42 #[inline(always)]
43 pub fn count(&self) -> CountR {
44 CountR::new(((self.bits >> 3) & 1) != 0)
45 }
46 #[doc = "Bit 5 - COMP 0 Register Busy"]
47 #[inline(always)]
48 pub fn comp0(&self) -> Comp0R {
49 Comp0R::new(((self.bits >> 5) & 1) != 0)
50 }
51 #[doc = "Bit 6 - COMP 1 Register Busy"]
52 #[inline(always)]
53 pub fn comp1(&self) -> Comp1R {
54 Comp1R::new(((self.bits >> 6) & 1) != 0)
55 }
56 #[doc = "Bit 15 - Count Synchronization Enable Bit Busy"]
57 #[inline(always)]
58 pub fn countsync(&self) -> CountsyncR {
59 CountsyncR::new(((self.bits >> 15) & 1) != 0)
60 }
61 #[doc = "Bit 16 - General Purpose 0 Register Busy"]
62 #[inline(always)]
63 pub fn gp0(&self) -> Gp0R {
64 Gp0R::new(((self.bits >> 16) & 1) != 0)
65 }
66 #[doc = "Bit 17 - General Purpose 1 Register Busy"]
67 #[inline(always)]
68 pub fn gp1(&self) -> Gp1R {
69 Gp1R::new(((self.bits >> 17) & 1) != 0)
70 }
71 #[doc = "Bit 18 - General Purpose 2 Register Busy"]
72 #[inline(always)]
73 pub fn gp2(&self) -> Gp2R {
74 Gp2R::new(((self.bits >> 18) & 1) != 0)
75 }
76 #[doc = "Bit 19 - General Purpose 3 Register Busy"]
77 #[inline(always)]
78 pub fn gp3(&self) -> Gp3R {
79 Gp3R::new(((self.bits >> 19) & 1) != 0)
80 }
81}
82#[doc = "MODE0 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)."]
83pub struct SyncbusySpec;
84impl crate::RegisterSpec for SyncbusySpec {
85 type Ux = u32;
86}
87#[doc = "`read()` method returns [`syncbusy::R`](R) reader structure"]
88impl crate::Readable for SyncbusySpec {}
89#[doc = "`reset()` method sets SYNCBUSY to value 0"]
90impl crate::Resettable for SyncbusySpec {
91 const RESET_VALUE: u32 = 0;
92}