efm32gg11b510_pac/cmu/
if_.rs1#[doc = "Register `IF` reader"]
2pub struct R(crate::R<IF_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<IF_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<IF_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<IF_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Field `HFRCORDY` reader - HFRCO Ready Interrupt Flag"]
17pub type HFRCORDY_R = crate::BitReader<bool>;
18#[doc = "Field `HFXORDY` reader - HFXO Ready Interrupt Flag"]
19pub type HFXORDY_R = crate::BitReader<bool>;
20#[doc = "Field `LFRCORDY` reader - LFRCO Ready Interrupt Flag"]
21pub type LFRCORDY_R = crate::BitReader<bool>;
22#[doc = "Field `LFXORDY` reader - LFXO Ready Interrupt Flag"]
23pub type LFXORDY_R = crate::BitReader<bool>;
24#[doc = "Field `AUXHFRCORDY` reader - AUXHFRCO Ready Interrupt Flag"]
25pub type AUXHFRCORDY_R = crate::BitReader<bool>;
26#[doc = "Field `CALRDY` reader - Calibration Ready Interrupt Flag"]
27pub type CALRDY_R = crate::BitReader<bool>;
28#[doc = "Field `CALOF` reader - Calibration Overflow Interrupt Flag"]
29pub type CALOF_R = crate::BitReader<bool>;
30#[doc = "Field `USHFRCORDY` reader - USHFRCO Ready Interrupt Flag"]
31pub type USHFRCORDY_R = crate::BitReader<bool>;
32#[doc = "Field `HFXODISERR` reader - HFXO Disable Error Interrupt Flag"]
33pub type HFXODISERR_R = crate::BitReader<bool>;
34#[doc = "Field `HFXOAUTOSW` reader - HFXO Automatic Switch Interrupt Flag"]
35pub type HFXOAUTOSW_R = crate::BitReader<bool>;
36#[doc = "Field `HFXOPEAKDETRDY` reader - HFXO Automatic Peak Detection Ready Interrupt Flag"]
37pub type HFXOPEAKDETRDY_R = crate::BitReader<bool>;
38#[doc = "Field `HFRCODIS` reader - HFRCO Disable Interrupt Flag"]
39pub type HFRCODIS_R = crate::BitReader<bool>;
40#[doc = "Field `LFTIMEOUTERR` reader - Low Frequency Timeout Error Interrupt Flag"]
41pub type LFTIMEOUTERR_R = crate::BitReader<bool>;
42#[doc = "Field `DPLLRDY` reader - DPLL Lock Interrupt Flag"]
43pub type DPLLRDY_R = crate::BitReader<bool>;
44#[doc = "Field `DPLLLOCKFAILLOW` reader - DPLL Lock Failure Low Interrupt Flag"]
45pub type DPLLLOCKFAILLOW_R = crate::BitReader<bool>;
46#[doc = "Field `DPLLLOCKFAILHIGH` reader - DPLL Lock Failure Low Interrupt Flag"]
47pub type DPLLLOCKFAILHIGH_R = crate::BitReader<bool>;
48#[doc = "Field `LFXOEDGE` reader - LFXO Clock Edge Detected Interrupt Flag"]
49pub type LFXOEDGE_R = crate::BitReader<bool>;
50#[doc = "Field `LFRCOEDGE` reader - LFRCO Clock Edge Detected Interrupt Flag"]
51pub type LFRCOEDGE_R = crate::BitReader<bool>;
52#[doc = "Field `ULFRCOEDGE` reader - ULFRCO Clock Edge Detected Interrupt Flag"]
53pub type ULFRCOEDGE_R = crate::BitReader<bool>;
54#[doc = "Field `CMUERR` reader - CMU Error Interrupt Flag"]
55pub type CMUERR_R = crate::BitReader<bool>;
56impl R {
57 #[doc = "Bit 0 - HFRCO Ready Interrupt Flag"]
58 #[inline(always)]
59 pub fn hfrcordy(&self) -> HFRCORDY_R {
60 HFRCORDY_R::new((self.bits & 1) != 0)
61 }
62 #[doc = "Bit 1 - HFXO Ready Interrupt Flag"]
63 #[inline(always)]
64 pub fn hfxordy(&self) -> HFXORDY_R {
65 HFXORDY_R::new(((self.bits >> 1) & 1) != 0)
66 }
67 #[doc = "Bit 2 - LFRCO Ready Interrupt Flag"]
68 #[inline(always)]
69 pub fn lfrcordy(&self) -> LFRCORDY_R {
70 LFRCORDY_R::new(((self.bits >> 2) & 1) != 0)
71 }
72 #[doc = "Bit 3 - LFXO Ready Interrupt Flag"]
73 #[inline(always)]
74 pub fn lfxordy(&self) -> LFXORDY_R {
75 LFXORDY_R::new(((self.bits >> 3) & 1) != 0)
76 }
77 #[doc = "Bit 4 - AUXHFRCO Ready Interrupt Flag"]
78 #[inline(always)]
79 pub fn auxhfrcordy(&self) -> AUXHFRCORDY_R {
80 AUXHFRCORDY_R::new(((self.bits >> 4) & 1) != 0)
81 }
82 #[doc = "Bit 5 - Calibration Ready Interrupt Flag"]
83 #[inline(always)]
84 pub fn calrdy(&self) -> CALRDY_R {
85 CALRDY_R::new(((self.bits >> 5) & 1) != 0)
86 }
87 #[doc = "Bit 6 - Calibration Overflow Interrupt Flag"]
88 #[inline(always)]
89 pub fn calof(&self) -> CALOF_R {
90 CALOF_R::new(((self.bits >> 6) & 1) != 0)
91 }
92 #[doc = "Bit 7 - USHFRCO Ready Interrupt Flag"]
93 #[inline(always)]
94 pub fn ushfrcordy(&self) -> USHFRCORDY_R {
95 USHFRCORDY_R::new(((self.bits >> 7) & 1) != 0)
96 }
97 #[doc = "Bit 8 - HFXO Disable Error Interrupt Flag"]
98 #[inline(always)]
99 pub fn hfxodiserr(&self) -> HFXODISERR_R {
100 HFXODISERR_R::new(((self.bits >> 8) & 1) != 0)
101 }
102 #[doc = "Bit 9 - HFXO Automatic Switch Interrupt Flag"]
103 #[inline(always)]
104 pub fn hfxoautosw(&self) -> HFXOAUTOSW_R {
105 HFXOAUTOSW_R::new(((self.bits >> 9) & 1) != 0)
106 }
107 #[doc = "Bit 11 - HFXO Automatic Peak Detection Ready Interrupt Flag"]
108 #[inline(always)]
109 pub fn hfxopeakdetrdy(&self) -> HFXOPEAKDETRDY_R {
110 HFXOPEAKDETRDY_R::new(((self.bits >> 11) & 1) != 0)
111 }
112 #[doc = "Bit 13 - HFRCO Disable Interrupt Flag"]
113 #[inline(always)]
114 pub fn hfrcodis(&self) -> HFRCODIS_R {
115 HFRCODIS_R::new(((self.bits >> 13) & 1) != 0)
116 }
117 #[doc = "Bit 14 - Low Frequency Timeout Error Interrupt Flag"]
118 #[inline(always)]
119 pub fn lftimeouterr(&self) -> LFTIMEOUTERR_R {
120 LFTIMEOUTERR_R::new(((self.bits >> 14) & 1) != 0)
121 }
122 #[doc = "Bit 15 - DPLL Lock Interrupt Flag"]
123 #[inline(always)]
124 pub fn dpllrdy(&self) -> DPLLRDY_R {
125 DPLLRDY_R::new(((self.bits >> 15) & 1) != 0)
126 }
127 #[doc = "Bit 16 - DPLL Lock Failure Low Interrupt Flag"]
128 #[inline(always)]
129 pub fn dplllockfaillow(&self) -> DPLLLOCKFAILLOW_R {
130 DPLLLOCKFAILLOW_R::new(((self.bits >> 16) & 1) != 0)
131 }
132 #[doc = "Bit 17 - DPLL Lock Failure Low Interrupt Flag"]
133 #[inline(always)]
134 pub fn dplllockfailhigh(&self) -> DPLLLOCKFAILHIGH_R {
135 DPLLLOCKFAILHIGH_R::new(((self.bits >> 17) & 1) != 0)
136 }
137 #[doc = "Bit 27 - LFXO Clock Edge Detected Interrupt Flag"]
138 #[inline(always)]
139 pub fn lfxoedge(&self) -> LFXOEDGE_R {
140 LFXOEDGE_R::new(((self.bits >> 27) & 1) != 0)
141 }
142 #[doc = "Bit 28 - LFRCO Clock Edge Detected Interrupt Flag"]
143 #[inline(always)]
144 pub fn lfrcoedge(&self) -> LFRCOEDGE_R {
145 LFRCOEDGE_R::new(((self.bits >> 28) & 1) != 0)
146 }
147 #[doc = "Bit 29 - ULFRCO Clock Edge Detected Interrupt Flag"]
148 #[inline(always)]
149 pub fn ulfrcoedge(&self) -> ULFRCOEDGE_R {
150 ULFRCOEDGE_R::new(((self.bits >> 29) & 1) != 0)
151 }
152 #[doc = "Bit 31 - CMU Error Interrupt Flag"]
153 #[inline(always)]
154 pub fn cmuerr(&self) -> CMUERR_R {
155 CMUERR_R::new(((self.bits >> 31) & 1) != 0)
156 }
157}
158#[doc = "Interrupt Flag 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 [if_](index.html) module"]
159pub struct IF_SPEC;
160impl crate::RegisterSpec for IF_SPEC {
161 type Ux = u32;
162}
163#[doc = "`read()` method returns [if_::R](R) reader structure"]
164impl crate::Readable for IF_SPEC {
165 type Reader = R;
166}
167#[doc = "`reset()` method sets IF to value 0x01"]
168impl crate::Resettable for IF_SPEC {
169 #[inline(always)]
170 fn reset_value() -> Self::Ux {
171 0x01
172 }
173}