efm32pg12b500_pac/cmu/
status.rs1#[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 `DPLLENS` reader - DPLL Enable Status"]
37pub type DPLLENS_R = crate::BitReader<bool>;
38#[doc = "Field `DPLLRDY` reader - DPLL Ready"]
39pub type DPLLRDY_R = crate::BitReader<bool>;
40#[doc = "Field `CALRDY` reader - Calibration Ready"]
41pub type CALRDY_R = crate::BitReader<bool>;
42#[doc = "Field `HFXOREQ` reader - HFXO is Required By Hardware"]
43pub type HFXOREQ_R = crate::BitReader<bool>;
44#[doc = "Field `HFXOPEAKDETRDY` reader - HFXO Peak Detection Ready"]
45pub type HFXOPEAKDETRDY_R = crate::BitReader<bool>;
46#[doc = "Field `HFXOSHUNTOPTRDY` reader - HFXO Shunt Current Optimization Ready"]
47pub type HFXOSHUNTOPTRDY_R = crate::BitReader<bool>;
48#[doc = "Field `HFXOAMPHIGH` reader - HFXO Oscillation Amplitude is Too High"]
49pub type HFXOAMPHIGH_R = crate::BitReader<bool>;
50#[doc = "Field `HFXOAMPLOW` reader - HFXO Amplitude Tuning Value Too Low"]
51pub type HFXOAMPLOW_R = crate::BitReader<bool>;
52#[doc = "Field `HFXOREGILOW` reader - HFXO Regulator Shunt Current Too Low"]
53pub type HFXOREGILOW_R = crate::BitReader<bool>;
54impl R {
55    #[doc = "Bit 0 - HFRCO Enable Status"]
56    #[inline(always)]
57    pub fn hfrcoens(&self) -> HFRCOENS_R {
58        HFRCOENS_R::new((self.bits & 1) != 0)
59    }
60    #[doc = "Bit 1 - HFRCO Ready"]
61    #[inline(always)]
62    pub fn hfrcordy(&self) -> HFRCORDY_R {
63        HFRCORDY_R::new(((self.bits >> 1) & 1) != 0)
64    }
65    #[doc = "Bit 2 - HFXO Enable Status"]
66    #[inline(always)]
67    pub fn hfxoens(&self) -> HFXOENS_R {
68        HFXOENS_R::new(((self.bits >> 2) & 1) != 0)
69    }
70    #[doc = "Bit 3 - HFXO Ready"]
71    #[inline(always)]
72    pub fn hfxordy(&self) -> HFXORDY_R {
73        HFXORDY_R::new(((self.bits >> 3) & 1) != 0)
74    }
75    #[doc = "Bit 4 - AUXHFRCO Enable Status"]
76    #[inline(always)]
77    pub fn auxhfrcoens(&self) -> AUXHFRCOENS_R {
78        AUXHFRCOENS_R::new(((self.bits >> 4) & 1) != 0)
79    }
80    #[doc = "Bit 5 - AUXHFRCO Ready"]
81    #[inline(always)]
82    pub fn auxhfrcordy(&self) -> AUXHFRCORDY_R {
83        AUXHFRCORDY_R::new(((self.bits >> 5) & 1) != 0)
84    }
85    #[doc = "Bit 6 - LFRCO Enable Status"]
86    #[inline(always)]
87    pub fn lfrcoens(&self) -> LFRCOENS_R {
88        LFRCOENS_R::new(((self.bits >> 6) & 1) != 0)
89    }
90    #[doc = "Bit 7 - LFRCO Ready"]
91    #[inline(always)]
92    pub fn lfrcordy(&self) -> LFRCORDY_R {
93        LFRCORDY_R::new(((self.bits >> 7) & 1) != 0)
94    }
95    #[doc = "Bit 8 - LFXO Enable Status"]
96    #[inline(always)]
97    pub fn lfxoens(&self) -> LFXOENS_R {
98        LFXOENS_R::new(((self.bits >> 8) & 1) != 0)
99    }
100    #[doc = "Bit 9 - LFXO Ready"]
101    #[inline(always)]
102    pub fn lfxordy(&self) -> LFXORDY_R {
103        LFXORDY_R::new(((self.bits >> 9) & 1) != 0)
104    }
105    #[doc = "Bit 12 - DPLL Enable Status"]
106    #[inline(always)]
107    pub fn dpllens(&self) -> DPLLENS_R {
108        DPLLENS_R::new(((self.bits >> 12) & 1) != 0)
109    }
110    #[doc = "Bit 13 - DPLL Ready"]
111    #[inline(always)]
112    pub fn dpllrdy(&self) -> DPLLRDY_R {
113        DPLLRDY_R::new(((self.bits >> 13) & 1) != 0)
114    }
115    #[doc = "Bit 16 - Calibration Ready"]
116    #[inline(always)]
117    pub fn calrdy(&self) -> CALRDY_R {
118        CALRDY_R::new(((self.bits >> 16) & 1) != 0)
119    }
120    #[doc = "Bit 21 - HFXO is Required By Hardware"]
121    #[inline(always)]
122    pub fn hfxoreq(&self) -> HFXOREQ_R {
123        HFXOREQ_R::new(((self.bits >> 21) & 1) != 0)
124    }
125    #[doc = "Bit 22 - HFXO Peak Detection Ready"]
126    #[inline(always)]
127    pub fn hfxopeakdetrdy(&self) -> HFXOPEAKDETRDY_R {
128        HFXOPEAKDETRDY_R::new(((self.bits >> 22) & 1) != 0)
129    }
130    #[doc = "Bit 23 - HFXO Shunt Current Optimization Ready"]
131    #[inline(always)]
132    pub fn hfxoshuntoptrdy(&self) -> HFXOSHUNTOPTRDY_R {
133        HFXOSHUNTOPTRDY_R::new(((self.bits >> 23) & 1) != 0)
134    }
135    #[doc = "Bit 24 - HFXO Oscillation Amplitude is Too High"]
136    #[inline(always)]
137    pub fn hfxoamphigh(&self) -> HFXOAMPHIGH_R {
138        HFXOAMPHIGH_R::new(((self.bits >> 24) & 1) != 0)
139    }
140    #[doc = "Bit 25 - HFXO Amplitude Tuning Value Too Low"]
141    #[inline(always)]
142    pub fn hfxoamplow(&self) -> HFXOAMPLOW_R {
143        HFXOAMPLOW_R::new(((self.bits >> 25) & 1) != 0)
144    }
145    #[doc = "Bit 26 - HFXO Regulator Shunt Current Too Low"]
146    #[inline(always)]
147    pub fn hfxoregilow(&self) -> HFXOREGILOW_R {
148        HFXOREGILOW_R::new(((self.bits >> 26) & 1) != 0)
149    }
150}
151#[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"]
152pub struct STATUS_SPEC;
153impl crate::RegisterSpec for STATUS_SPEC {
154    type Ux = u32;
155}
156#[doc = "`read()` method returns [status::R](R) reader structure"]
157impl crate::Readable for STATUS_SPEC {
158    type Reader = R;
159}
160#[doc = "`reset()` method sets STATUS to value 0x0001_0003"]
161impl crate::Resettable for STATUS_SPEC {
162    #[inline(always)]
163    fn reset_value() -> Self::Ux {
164        0x0001_0003
165    }
166}