efm32gg11b510_pac/cmu/
status.rs

1#[doc = "Register `STATUS` reader"]
2pub struct R(crate::R<STATUS_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<STATUS_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<STATUS_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<STATUS_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Field `HFRCOENS` reader - HFRCO Enable Status"]
17pub type HFRCOENS_R = crate::BitReader<bool>;
18#[doc = "Field `HFRCORDY` reader - HFRCO Ready"]
19pub type HFRCORDY_R = crate::BitReader<bool>;
20#[doc = "Field `HFXOENS` reader - HFXO Enable Status"]
21pub type HFXOENS_R = crate::BitReader<bool>;
22#[doc = "Field `HFXORDY` reader - HFXO Ready"]
23pub type HFXORDY_R = crate::BitReader<bool>;
24#[doc = "Field `AUXHFRCOENS` reader - AUXHFRCO Enable Status"]
25pub type AUXHFRCOENS_R = crate::BitReader<bool>;
26#[doc = "Field `AUXHFRCORDY` reader - AUXHFRCO Ready"]
27pub type AUXHFRCORDY_R = crate::BitReader<bool>;
28#[doc = "Field `LFRCOENS` reader - LFRCO Enable Status"]
29pub type LFRCOENS_R = crate::BitReader<bool>;
30#[doc = "Field `LFRCORDY` reader - LFRCO Ready"]
31pub type LFRCORDY_R = crate::BitReader<bool>;
32#[doc = "Field `LFXOENS` reader - LFXO Enable Status"]
33pub type LFXOENS_R = crate::BitReader<bool>;
34#[doc = "Field `LFXORDY` reader - LFXO Ready"]
35pub type LFXORDY_R = crate::BitReader<bool>;
36#[doc = "Field `USHFRCOENS` reader - USHFRCO Enable Status"]
37pub type USHFRCOENS_R = crate::BitReader<bool>;
38#[doc = "Field `USHFRCORDY` reader - USHFRCO Ready"]
39pub type USHFRCORDY_R = crate::BitReader<bool>;
40#[doc = "Field `DPLLENS` reader - DPLL Enable Status"]
41pub type DPLLENS_R = crate::BitReader<bool>;
42#[doc = "Field `DPLLRDY` reader - DPLL Ready"]
43pub type DPLLRDY_R = crate::BitReader<bool>;
44#[doc = "Field `CALRDY` reader - Calibration Ready"]
45pub type CALRDY_R = crate::BitReader<bool>;
46#[doc = "Field `HFXOPEAKDETRDY` reader - HFXO Peak Detection Ready"]
47pub type HFXOPEAKDETRDY_R = crate::BitReader<bool>;
48#[doc = "Field `HFXOAMPLOW` reader - HFXO Amplitude Tuning Value Too Low"]
49pub type HFXOAMPLOW_R = crate::BitReader<bool>;
50#[doc = "Field `LFXOPHASE` reader - LFXO Clock Phase"]
51pub type LFXOPHASE_R = crate::BitReader<bool>;
52#[doc = "Field `LFRCOPHASE` reader - LFRCO Clock Phase"]
53pub type LFRCOPHASE_R = crate::BitReader<bool>;
54#[doc = "Field `ULFRCOPHASE` reader - ULFRCO Clock Phase"]
55pub type ULFRCOPHASE_R = crate::BitReader<bool>;
56impl R {
57    #[doc = "Bit 0 - HFRCO Enable Status"]
58    #[inline(always)]
59    pub fn hfrcoens(&self) -> HFRCOENS_R {
60        HFRCOENS_R::new((self.bits & 1) != 0)
61    }
62    #[doc = "Bit 1 - HFRCO Ready"]
63    #[inline(always)]
64    pub fn hfrcordy(&self) -> HFRCORDY_R {
65        HFRCORDY_R::new(((self.bits >> 1) & 1) != 0)
66    }
67    #[doc = "Bit 2 - HFXO Enable Status"]
68    #[inline(always)]
69    pub fn hfxoens(&self) -> HFXOENS_R {
70        HFXOENS_R::new(((self.bits >> 2) & 1) != 0)
71    }
72    #[doc = "Bit 3 - HFXO Ready"]
73    #[inline(always)]
74    pub fn hfxordy(&self) -> HFXORDY_R {
75        HFXORDY_R::new(((self.bits >> 3) & 1) != 0)
76    }
77    #[doc = "Bit 4 - AUXHFRCO Enable Status"]
78    #[inline(always)]
79    pub fn auxhfrcoens(&self) -> AUXHFRCOENS_R {
80        AUXHFRCOENS_R::new(((self.bits >> 4) & 1) != 0)
81    }
82    #[doc = "Bit 5 - AUXHFRCO Ready"]
83    #[inline(always)]
84    pub fn auxhfrcordy(&self) -> AUXHFRCORDY_R {
85        AUXHFRCORDY_R::new(((self.bits >> 5) & 1) != 0)
86    }
87    #[doc = "Bit 6 - LFRCO Enable Status"]
88    #[inline(always)]
89    pub fn lfrcoens(&self) -> LFRCOENS_R {
90        LFRCOENS_R::new(((self.bits >> 6) & 1) != 0)
91    }
92    #[doc = "Bit 7 - LFRCO Ready"]
93    #[inline(always)]
94    pub fn lfrcordy(&self) -> LFRCORDY_R {
95        LFRCORDY_R::new(((self.bits >> 7) & 1) != 0)
96    }
97    #[doc = "Bit 8 - LFXO Enable Status"]
98    #[inline(always)]
99    pub fn lfxoens(&self) -> LFXOENS_R {
100        LFXOENS_R::new(((self.bits >> 8) & 1) != 0)
101    }
102    #[doc = "Bit 9 - LFXO Ready"]
103    #[inline(always)]
104    pub fn lfxordy(&self) -> LFXORDY_R {
105        LFXORDY_R::new(((self.bits >> 9) & 1) != 0)
106    }
107    #[doc = "Bit 10 - USHFRCO Enable Status"]
108    #[inline(always)]
109    pub fn ushfrcoens(&self) -> USHFRCOENS_R {
110        USHFRCOENS_R::new(((self.bits >> 10) & 1) != 0)
111    }
112    #[doc = "Bit 11 - USHFRCO Ready"]
113    #[inline(always)]
114    pub fn ushfrcordy(&self) -> USHFRCORDY_R {
115        USHFRCORDY_R::new(((self.bits >> 11) & 1) != 0)
116    }
117    #[doc = "Bit 12 - DPLL Enable Status"]
118    #[inline(always)]
119    pub fn dpllens(&self) -> DPLLENS_R {
120        DPLLENS_R::new(((self.bits >> 12) & 1) != 0)
121    }
122    #[doc = "Bit 13 - DPLL Ready"]
123    #[inline(always)]
124    pub fn dpllrdy(&self) -> DPLLRDY_R {
125        DPLLRDY_R::new(((self.bits >> 13) & 1) != 0)
126    }
127    #[doc = "Bit 16 - Calibration Ready"]
128    #[inline(always)]
129    pub fn calrdy(&self) -> CALRDY_R {
130        CALRDY_R::new(((self.bits >> 16) & 1) != 0)
131    }
132    #[doc = "Bit 22 - HFXO Peak Detection Ready"]
133    #[inline(always)]
134    pub fn hfxopeakdetrdy(&self) -> HFXOPEAKDETRDY_R {
135        HFXOPEAKDETRDY_R::new(((self.bits >> 22) & 1) != 0)
136    }
137    #[doc = "Bit 25 - HFXO Amplitude Tuning Value Too Low"]
138    #[inline(always)]
139    pub fn hfxoamplow(&self) -> HFXOAMPLOW_R {
140        HFXOAMPLOW_R::new(((self.bits >> 25) & 1) != 0)
141    }
142    #[doc = "Bit 27 - LFXO Clock Phase"]
143    #[inline(always)]
144    pub fn lfxophase(&self) -> LFXOPHASE_R {
145        LFXOPHASE_R::new(((self.bits >> 27) & 1) != 0)
146    }
147    #[doc = "Bit 28 - LFRCO Clock Phase"]
148    #[inline(always)]
149    pub fn lfrcophase(&self) -> LFRCOPHASE_R {
150        LFRCOPHASE_R::new(((self.bits >> 28) & 1) != 0)
151    }
152    #[doc = "Bit 29 - ULFRCO Clock Phase"]
153    #[inline(always)]
154    pub fn ulfrcophase(&self) -> ULFRCOPHASE_R {
155        ULFRCOPHASE_R::new(((self.bits >> 29) & 1) != 0)
156    }
157}
158#[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 [status](index.html) module"]
159pub struct STATUS_SPEC;
160impl crate::RegisterSpec for STATUS_SPEC {
161    type Ux = u32;
162}
163#[doc = "`read()` method returns [status::R](R) reader structure"]
164impl crate::Readable for STATUS_SPEC {
165    type Reader = R;
166}
167#[doc = "`reset()` method sets STATUS to value 0x0001_0003"]
168impl crate::Resettable for STATUS_SPEC {
169    #[inline(always)]
170    fn reset_value() -> Self::Ux {
171        0x0001_0003
172    }
173}