efm32gg12b110_pac/cmu/
ifs.rs1#[doc = "Register `IFS` writer"]
2pub struct W(crate::W<IFS_SPEC>);
3impl core::ops::Deref for W {
4 type Target = crate::W<IFS_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl core::ops::DerefMut for W {
11 #[inline(always)]
12 fn deref_mut(&mut self) -> &mut Self::Target {
13 &mut self.0
14 }
15}
16impl From<crate::W<IFS_SPEC>> for W {
17 #[inline(always)]
18 fn from(writer: crate::W<IFS_SPEC>) -> Self {
19 W(writer)
20 }
21}
22#[doc = "Field `HFRCORDY` writer - Set HFRCORDY Interrupt Flag"]
23pub type HFRCORDY_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 0>;
24#[doc = "Field `HFXORDY` writer - Set HFXORDY Interrupt Flag"]
25pub type HFXORDY_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 1>;
26#[doc = "Field `LFRCORDY` writer - Set LFRCORDY Interrupt Flag"]
27pub type LFRCORDY_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 2>;
28#[doc = "Field `LFXORDY` writer - Set LFXORDY Interrupt Flag"]
29pub type LFXORDY_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 3>;
30#[doc = "Field `AUXHFRCORDY` writer - Set AUXHFRCORDY Interrupt Flag"]
31pub type AUXHFRCORDY_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 4>;
32#[doc = "Field `CALRDY` writer - Set CALRDY Interrupt Flag"]
33pub type CALRDY_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 5>;
34#[doc = "Field `CALOF` writer - Set CALOF Interrupt Flag"]
35pub type CALOF_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 6>;
36#[doc = "Field `USHFRCORDY` writer - Set USHFRCORDY Interrupt Flag"]
37pub type USHFRCORDY_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 7>;
38#[doc = "Field `HFXODISERR` writer - Set HFXODISERR Interrupt Flag"]
39pub type HFXODISERR_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 8>;
40#[doc = "Field `HFXOAUTOSW` writer - Set HFXOAUTOSW Interrupt Flag"]
41pub type HFXOAUTOSW_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 9>;
42#[doc = "Field `HFXOPEAKDETRDY` writer - Set HFXOPEAKDETRDY Interrupt Flag"]
43pub type HFXOPEAKDETRDY_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 11>;
44#[doc = "Field `HFRCODIS` writer - Set HFRCODIS Interrupt Flag"]
45pub type HFRCODIS_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 13>;
46#[doc = "Field `LFTIMEOUTERR` writer - Set LFTIMEOUTERR Interrupt Flag"]
47pub type LFTIMEOUTERR_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 14>;
48#[doc = "Field `DPLLRDY` writer - Set DPLLRDY Interrupt Flag"]
49pub type DPLLRDY_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 15>;
50#[doc = "Field `DPLLLOCKFAILLOW` writer - Set DPLLLOCKFAILLOW Interrupt Flag"]
51pub type DPLLLOCKFAILLOW_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 16>;
52#[doc = "Field `DPLLLOCKFAILHIGH` writer - Set DPLLLOCKFAILHIGH Interrupt Flag"]
53pub type DPLLLOCKFAILHIGH_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 17>;
54#[doc = "Field `LFXOEDGE` writer - Set LFXOEDGE Interrupt Flag"]
55pub type LFXOEDGE_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 27>;
56#[doc = "Field `LFRCOEDGE` writer - Set LFRCOEDGE Interrupt Flag"]
57pub type LFRCOEDGE_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 28>;
58#[doc = "Field `ULFRCOEDGE` writer - Set ULFRCOEDGE Interrupt Flag"]
59pub type ULFRCOEDGE_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 29>;
60#[doc = "Field `CMUERR` writer - Set CMUERR Interrupt Flag"]
61pub type CMUERR_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 31>;
62impl W {
63 #[doc = "Bit 0 - Set HFRCORDY Interrupt Flag"]
64 #[inline(always)]
65 pub fn hfrcordy(&mut self) -> HFRCORDY_W {
66 HFRCORDY_W::new(self)
67 }
68 #[doc = "Bit 1 - Set HFXORDY Interrupt Flag"]
69 #[inline(always)]
70 pub fn hfxordy(&mut self) -> HFXORDY_W {
71 HFXORDY_W::new(self)
72 }
73 #[doc = "Bit 2 - Set LFRCORDY Interrupt Flag"]
74 #[inline(always)]
75 pub fn lfrcordy(&mut self) -> LFRCORDY_W {
76 LFRCORDY_W::new(self)
77 }
78 #[doc = "Bit 3 - Set LFXORDY Interrupt Flag"]
79 #[inline(always)]
80 pub fn lfxordy(&mut self) -> LFXORDY_W {
81 LFXORDY_W::new(self)
82 }
83 #[doc = "Bit 4 - Set AUXHFRCORDY Interrupt Flag"]
84 #[inline(always)]
85 pub fn auxhfrcordy(&mut self) -> AUXHFRCORDY_W {
86 AUXHFRCORDY_W::new(self)
87 }
88 #[doc = "Bit 5 - Set CALRDY Interrupt Flag"]
89 #[inline(always)]
90 pub fn calrdy(&mut self) -> CALRDY_W {
91 CALRDY_W::new(self)
92 }
93 #[doc = "Bit 6 - Set CALOF Interrupt Flag"]
94 #[inline(always)]
95 pub fn calof(&mut self) -> CALOF_W {
96 CALOF_W::new(self)
97 }
98 #[doc = "Bit 7 - Set USHFRCORDY Interrupt Flag"]
99 #[inline(always)]
100 pub fn ushfrcordy(&mut self) -> USHFRCORDY_W {
101 USHFRCORDY_W::new(self)
102 }
103 #[doc = "Bit 8 - Set HFXODISERR Interrupt Flag"]
104 #[inline(always)]
105 pub fn hfxodiserr(&mut self) -> HFXODISERR_W {
106 HFXODISERR_W::new(self)
107 }
108 #[doc = "Bit 9 - Set HFXOAUTOSW Interrupt Flag"]
109 #[inline(always)]
110 pub fn hfxoautosw(&mut self) -> HFXOAUTOSW_W {
111 HFXOAUTOSW_W::new(self)
112 }
113 #[doc = "Bit 11 - Set HFXOPEAKDETRDY Interrupt Flag"]
114 #[inline(always)]
115 pub fn hfxopeakdetrdy(&mut self) -> HFXOPEAKDETRDY_W {
116 HFXOPEAKDETRDY_W::new(self)
117 }
118 #[doc = "Bit 13 - Set HFRCODIS Interrupt Flag"]
119 #[inline(always)]
120 pub fn hfrcodis(&mut self) -> HFRCODIS_W {
121 HFRCODIS_W::new(self)
122 }
123 #[doc = "Bit 14 - Set LFTIMEOUTERR Interrupt Flag"]
124 #[inline(always)]
125 pub fn lftimeouterr(&mut self) -> LFTIMEOUTERR_W {
126 LFTIMEOUTERR_W::new(self)
127 }
128 #[doc = "Bit 15 - Set DPLLRDY Interrupt Flag"]
129 #[inline(always)]
130 pub fn dpllrdy(&mut self) -> DPLLRDY_W {
131 DPLLRDY_W::new(self)
132 }
133 #[doc = "Bit 16 - Set DPLLLOCKFAILLOW Interrupt Flag"]
134 #[inline(always)]
135 pub fn dplllockfaillow(&mut self) -> DPLLLOCKFAILLOW_W {
136 DPLLLOCKFAILLOW_W::new(self)
137 }
138 #[doc = "Bit 17 - Set DPLLLOCKFAILHIGH Interrupt Flag"]
139 #[inline(always)]
140 pub fn dplllockfailhigh(&mut self) -> DPLLLOCKFAILHIGH_W {
141 DPLLLOCKFAILHIGH_W::new(self)
142 }
143 #[doc = "Bit 27 - Set LFXOEDGE Interrupt Flag"]
144 #[inline(always)]
145 pub fn lfxoedge(&mut self) -> LFXOEDGE_W {
146 LFXOEDGE_W::new(self)
147 }
148 #[doc = "Bit 28 - Set LFRCOEDGE Interrupt Flag"]
149 #[inline(always)]
150 pub fn lfrcoedge(&mut self) -> LFRCOEDGE_W {
151 LFRCOEDGE_W::new(self)
152 }
153 #[doc = "Bit 29 - Set ULFRCOEDGE Interrupt Flag"]
154 #[inline(always)]
155 pub fn ulfrcoedge(&mut self) -> ULFRCOEDGE_W {
156 ULFRCOEDGE_W::new(self)
157 }
158 #[doc = "Bit 31 - Set CMUERR Interrupt Flag"]
159 #[inline(always)]
160 pub fn cmuerr(&mut self) -> CMUERR_W {
161 CMUERR_W::new(self)
162 }
163 #[doc = "Writes raw bits to the register."]
164 #[inline(always)]
165 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
166 self.0.bits(bits);
167 self
168 }
169}
170#[doc = "Interrupt Flag Set Register\n\nThis register you can [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ifs](index.html) module"]
171pub struct IFS_SPEC;
172impl crate::RegisterSpec for IFS_SPEC {
173 type Ux = u32;
174}
175#[doc = "`write(|w| ..)` method takes [ifs::W](W) writer structure"]
176impl crate::Writable for IFS_SPEC {
177 type Writer = W;
178}
179#[doc = "`reset()` method sets IFS to value 0"]
180impl crate::Resettable for IFS_SPEC {
181 #[inline(always)]
182 fn reset_value() -> Self::Ux {
183 0
184 }
185}