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