efm32gg_pac/efm32gg230/lesense/
ifc.rs1#[doc = "Register `IFC` writer"]
2pub struct W(crate::W<IFC_SPEC>);
3impl core::ops::Deref for W {
4 type Target = crate::W<IFC_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<IFC_SPEC>> for W {
17 #[inline(always)]
18 fn from(writer: crate::W<IFC_SPEC>) -> Self {
19 W(writer)
20 }
21}
22#[doc = "Field `CH0` writer - "]
23pub type CH0_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
24#[doc = "Field `CH1` writer - "]
25pub type CH1_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
26#[doc = "Field `CH2` writer - "]
27pub type CH2_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
28#[doc = "Field `CH3` writer - "]
29pub type CH3_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
30#[doc = "Field `CH4` writer - "]
31pub type CH4_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
32#[doc = "Field `CH5` writer - "]
33pub type CH5_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
34#[doc = "Field `CH6` writer - "]
35pub type CH6_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
36#[doc = "Field `CH7` writer - "]
37pub type CH7_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
38#[doc = "Field `CH8` writer - "]
39pub type CH8_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
40#[doc = "Field `CH9` writer - "]
41pub type CH9_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
42#[doc = "Field `CH10` writer - "]
43pub type CH10_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
44#[doc = "Field `CH11` writer - "]
45pub type CH11_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
46#[doc = "Field `CH12` writer - "]
47pub type CH12_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
48#[doc = "Field `CH13` writer - "]
49pub type CH13_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
50#[doc = "Field `CH14` writer - "]
51pub type CH14_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
52#[doc = "Field `CH15` writer - "]
53pub type CH15_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
54#[doc = "Field `SCANCOMPLETE` writer - "]
55pub type SCANCOMPLETE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
56#[doc = "Field `DEC` writer - "]
57pub type DEC_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
58#[doc = "Field `DECERR` writer - "]
59pub type DECERR_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
60#[doc = "Field `BUFDATAV` writer - "]
61pub type BUFDATAV_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
62#[doc = "Field `BUFLEVEL` writer - "]
63pub type BUFLEVEL_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
64#[doc = "Field `BUFOF` writer - "]
65pub type BUFOF_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
66#[doc = "Field `CNTOF` writer - "]
67pub type CNTOF_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFC_SPEC, bool, O>;
68impl W {
69 #[doc = "Bit 0"]
70 #[inline(always)]
71 #[must_use]
72 pub fn ch0(&mut self) -> CH0_W<0> {
73 CH0_W::new(self)
74 }
75 #[doc = "Bit 1"]
76 #[inline(always)]
77 #[must_use]
78 pub fn ch1(&mut self) -> CH1_W<1> {
79 CH1_W::new(self)
80 }
81 #[doc = "Bit 2"]
82 #[inline(always)]
83 #[must_use]
84 pub fn ch2(&mut self) -> CH2_W<2> {
85 CH2_W::new(self)
86 }
87 #[doc = "Bit 3"]
88 #[inline(always)]
89 #[must_use]
90 pub fn ch3(&mut self) -> CH3_W<3> {
91 CH3_W::new(self)
92 }
93 #[doc = "Bit 4"]
94 #[inline(always)]
95 #[must_use]
96 pub fn ch4(&mut self) -> CH4_W<4> {
97 CH4_W::new(self)
98 }
99 #[doc = "Bit 5"]
100 #[inline(always)]
101 #[must_use]
102 pub fn ch5(&mut self) -> CH5_W<5> {
103 CH5_W::new(self)
104 }
105 #[doc = "Bit 6"]
106 #[inline(always)]
107 #[must_use]
108 pub fn ch6(&mut self) -> CH6_W<6> {
109 CH6_W::new(self)
110 }
111 #[doc = "Bit 7"]
112 #[inline(always)]
113 #[must_use]
114 pub fn ch7(&mut self) -> CH7_W<7> {
115 CH7_W::new(self)
116 }
117 #[doc = "Bit 8"]
118 #[inline(always)]
119 #[must_use]
120 pub fn ch8(&mut self) -> CH8_W<8> {
121 CH8_W::new(self)
122 }
123 #[doc = "Bit 9"]
124 #[inline(always)]
125 #[must_use]
126 pub fn ch9(&mut self) -> CH9_W<9> {
127 CH9_W::new(self)
128 }
129 #[doc = "Bit 10"]
130 #[inline(always)]
131 #[must_use]
132 pub fn ch10(&mut self) -> CH10_W<10> {
133 CH10_W::new(self)
134 }
135 #[doc = "Bit 11"]
136 #[inline(always)]
137 #[must_use]
138 pub fn ch11(&mut self) -> CH11_W<11> {
139 CH11_W::new(self)
140 }
141 #[doc = "Bit 12"]
142 #[inline(always)]
143 #[must_use]
144 pub fn ch12(&mut self) -> CH12_W<12> {
145 CH12_W::new(self)
146 }
147 #[doc = "Bit 13"]
148 #[inline(always)]
149 #[must_use]
150 pub fn ch13(&mut self) -> CH13_W<13> {
151 CH13_W::new(self)
152 }
153 #[doc = "Bit 14"]
154 #[inline(always)]
155 #[must_use]
156 pub fn ch14(&mut self) -> CH14_W<14> {
157 CH14_W::new(self)
158 }
159 #[doc = "Bit 15"]
160 #[inline(always)]
161 #[must_use]
162 pub fn ch15(&mut self) -> CH15_W<15> {
163 CH15_W::new(self)
164 }
165 #[doc = "Bit 16"]
166 #[inline(always)]
167 #[must_use]
168 pub fn scancomplete(&mut self) -> SCANCOMPLETE_W<16> {
169 SCANCOMPLETE_W::new(self)
170 }
171 #[doc = "Bit 17"]
172 #[inline(always)]
173 #[must_use]
174 pub fn dec(&mut self) -> DEC_W<17> {
175 DEC_W::new(self)
176 }
177 #[doc = "Bit 18"]
178 #[inline(always)]
179 #[must_use]
180 pub fn decerr(&mut self) -> DECERR_W<18> {
181 DECERR_W::new(self)
182 }
183 #[doc = "Bit 19"]
184 #[inline(always)]
185 #[must_use]
186 pub fn bufdatav(&mut self) -> BUFDATAV_W<19> {
187 BUFDATAV_W::new(self)
188 }
189 #[doc = "Bit 20"]
190 #[inline(always)]
191 #[must_use]
192 pub fn buflevel(&mut self) -> BUFLEVEL_W<20> {
193 BUFLEVEL_W::new(self)
194 }
195 #[doc = "Bit 21"]
196 #[inline(always)]
197 #[must_use]
198 pub fn bufof(&mut self) -> BUFOF_W<21> {
199 BUFOF_W::new(self)
200 }
201 #[doc = "Bit 22"]
202 #[inline(always)]
203 #[must_use]
204 pub fn cntof(&mut self) -> CNTOF_W<22> {
205 CNTOF_W::new(self)
206 }
207 #[doc = "Writes raw bits to the register."]
208 #[inline(always)]
209 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
210 self.0.bits(bits);
211 self
212 }
213}
214#[doc = "Interrupt Flag Clear 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 [ifc](index.html) module"]
215pub struct IFC_SPEC;
216impl crate::RegisterSpec for IFC_SPEC {
217 type Ux = u32;
218}
219#[doc = "`write(|w| ..)` method takes [ifc::W](W) writer structure"]
220impl crate::Writable for IFC_SPEC {
221 type Writer = W;
222 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
223 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
224}
225#[doc = "`reset()` method sets IFC to value 0"]
226impl crate::Resettable for IFC_SPEC {
227 const RESET_VALUE: Self::Ux = 0;
228}