1#[doc = "Register `IEN` reader"]
2pub struct R(crate::R<IEN_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<IEN_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<IEN_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<IEN_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `IEN` writer"]
17pub struct W(crate::W<IEN_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<IEN_SPEC>;
20 #[inline(always)]
21 fn deref(&self) -> &Self::Target {
22 &self.0
23 }
24}
25impl core::ops::DerefMut for W {
26 #[inline(always)]
27 fn deref_mut(&mut self) -> &mut Self::Target {
28 &mut self.0
29 }
30}
31impl From<crate::W<IEN_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<IEN_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `VMONAVDDFALL` reader - VMONAVDDFALL Interrupt Enable"]
38pub type VMONAVDDFALL_R = crate::BitReader<bool>;
39#[doc = "Field `VMONAVDDFALL` writer - VMONAVDDFALL Interrupt Enable"]
40pub type VMONAVDDFALL_W<'a> = crate::BitWriter<'a, u32, IEN_SPEC, bool, 0>;
41#[doc = "Field `VMONAVDDRISE` reader - VMONAVDDRISE Interrupt Enable"]
42pub type VMONAVDDRISE_R = crate::BitReader<bool>;
43#[doc = "Field `VMONAVDDRISE` writer - VMONAVDDRISE Interrupt Enable"]
44pub type VMONAVDDRISE_W<'a> = crate::BitWriter<'a, u32, IEN_SPEC, bool, 1>;
45#[doc = "Field `VMONALTAVDDFALL` reader - VMONALTAVDDFALL Interrupt Enable"]
46pub type VMONALTAVDDFALL_R = crate::BitReader<bool>;
47#[doc = "Field `VMONALTAVDDFALL` writer - VMONALTAVDDFALL Interrupt Enable"]
48pub type VMONALTAVDDFALL_W<'a> = crate::BitWriter<'a, u32, IEN_SPEC, bool, 2>;
49#[doc = "Field `VMONALTAVDDRISE` reader - VMONALTAVDDRISE Interrupt Enable"]
50pub type VMONALTAVDDRISE_R = crate::BitReader<bool>;
51#[doc = "Field `VMONALTAVDDRISE` writer - VMONALTAVDDRISE Interrupt Enable"]
52pub type VMONALTAVDDRISE_W<'a> = crate::BitWriter<'a, u32, IEN_SPEC, bool, 3>;
53#[doc = "Field `VMONDVDDFALL` reader - VMONDVDDFALL Interrupt Enable"]
54pub type VMONDVDDFALL_R = crate::BitReader<bool>;
55#[doc = "Field `VMONDVDDFALL` writer - VMONDVDDFALL Interrupt Enable"]
56pub type VMONDVDDFALL_W<'a> = crate::BitWriter<'a, u32, IEN_SPEC, bool, 4>;
57#[doc = "Field `VMONDVDDRISE` reader - VMONDVDDRISE Interrupt Enable"]
58pub type VMONDVDDRISE_R = crate::BitReader<bool>;
59#[doc = "Field `VMONDVDDRISE` writer - VMONDVDDRISE Interrupt Enable"]
60pub type VMONDVDDRISE_W<'a> = crate::BitWriter<'a, u32, IEN_SPEC, bool, 5>;
61#[doc = "Field `VMONIO0FALL` reader - VMONIO0FALL Interrupt Enable"]
62pub type VMONIO0FALL_R = crate::BitReader<bool>;
63#[doc = "Field `VMONIO0FALL` writer - VMONIO0FALL Interrupt Enable"]
64pub type VMONIO0FALL_W<'a> = crate::BitWriter<'a, u32, IEN_SPEC, bool, 6>;
65#[doc = "Field `VMONIO0RISE` reader - VMONIO0RISE Interrupt Enable"]
66pub type VMONIO0RISE_R = crate::BitReader<bool>;
67#[doc = "Field `VMONIO0RISE` writer - VMONIO0RISE Interrupt Enable"]
68pub type VMONIO0RISE_W<'a> = crate::BitWriter<'a, u32, IEN_SPEC, bool, 7>;
69#[doc = "Field `VMONBUVDDFALL` reader - VMONBUVDDFALL Interrupt Enable"]
70pub type VMONBUVDDFALL_R = crate::BitReader<bool>;
71#[doc = "Field `VMONBUVDDFALL` writer - VMONBUVDDFALL Interrupt Enable"]
72pub type VMONBUVDDFALL_W<'a> = crate::BitWriter<'a, u32, IEN_SPEC, bool, 12>;
73#[doc = "Field `VMONBUVDDRISE` reader - VMONBUVDDRISE Interrupt Enable"]
74pub type VMONBUVDDRISE_R = crate::BitReader<bool>;
75#[doc = "Field `VMONBUVDDRISE` writer - VMONBUVDDRISE Interrupt Enable"]
76pub type VMONBUVDDRISE_W<'a> = crate::BitWriter<'a, u32, IEN_SPEC, bool, 13>;
77#[doc = "Field `VMONFVDDFALL` reader - VMONFVDDFALL Interrupt Enable"]
78pub type VMONFVDDFALL_R = crate::BitReader<bool>;
79#[doc = "Field `VMONFVDDFALL` writer - VMONFVDDFALL Interrupt Enable"]
80pub type VMONFVDDFALL_W<'a> = crate::BitWriter<'a, u32, IEN_SPEC, bool, 14>;
81#[doc = "Field `VMONFVDDRISE` reader - VMONFVDDRISE Interrupt Enable"]
82pub type VMONFVDDRISE_R = crate::BitReader<bool>;
83#[doc = "Field `VMONFVDDRISE` writer - VMONFVDDRISE Interrupt Enable"]
84pub type VMONFVDDRISE_W<'a> = crate::BitWriter<'a, u32, IEN_SPEC, bool, 15>;
85#[doc = "Field `PFETOVERCURRENTLIMIT` reader - PFETOVERCURRENTLIMIT Interrupt Enable"]
86pub type PFETOVERCURRENTLIMIT_R = crate::BitReader<bool>;
87#[doc = "Field `PFETOVERCURRENTLIMIT` writer - PFETOVERCURRENTLIMIT Interrupt Enable"]
88pub type PFETOVERCURRENTLIMIT_W<'a> = crate::BitWriter<'a, u32, IEN_SPEC, bool, 16>;
89#[doc = "Field `NFETOVERCURRENTLIMIT` reader - NFETOVERCURRENTLIMIT Interrupt Enable"]
90pub type NFETOVERCURRENTLIMIT_R = crate::BitReader<bool>;
91#[doc = "Field `NFETOVERCURRENTLIMIT` writer - NFETOVERCURRENTLIMIT Interrupt Enable"]
92pub type NFETOVERCURRENTLIMIT_W<'a> = crate::BitWriter<'a, u32, IEN_SPEC, bool, 17>;
93#[doc = "Field `DCDCLPRUNNING` reader - DCDCLPRUNNING Interrupt Enable"]
94pub type DCDCLPRUNNING_R = crate::BitReader<bool>;
95#[doc = "Field `DCDCLPRUNNING` writer - DCDCLPRUNNING Interrupt Enable"]
96pub type DCDCLPRUNNING_W<'a> = crate::BitWriter<'a, u32, IEN_SPEC, bool, 18>;
97#[doc = "Field `DCDCLNRUNNING` reader - DCDCLNRUNNING Interrupt Enable"]
98pub type DCDCLNRUNNING_R = crate::BitReader<bool>;
99#[doc = "Field `DCDCLNRUNNING` writer - DCDCLNRUNNING Interrupt Enable"]
100pub type DCDCLNRUNNING_W<'a> = crate::BitWriter<'a, u32, IEN_SPEC, bool, 19>;
101#[doc = "Field `DCDCINBYPASS` reader - DCDCINBYPASS Interrupt Enable"]
102pub type DCDCINBYPASS_R = crate::BitReader<bool>;
103#[doc = "Field `DCDCINBYPASS` writer - DCDCINBYPASS Interrupt Enable"]
104pub type DCDCINBYPASS_W<'a> = crate::BitWriter<'a, u32, IEN_SPEC, bool, 20>;
105#[doc = "Field `BURDY` reader - BURDY Interrupt Enable"]
106pub type BURDY_R = crate::BitReader<bool>;
107#[doc = "Field `BURDY` writer - BURDY Interrupt Enable"]
108pub type BURDY_W<'a> = crate::BitWriter<'a, u32, IEN_SPEC, bool, 22>;
109#[doc = "Field `EM23WAKEUP` reader - EM23WAKEUP Interrupt Enable"]
110pub type EM23WAKEUP_R = crate::BitReader<bool>;
111#[doc = "Field `EM23WAKEUP` writer - EM23WAKEUP Interrupt Enable"]
112pub type EM23WAKEUP_W<'a> = crate::BitWriter<'a, u32, IEN_SPEC, bool, 24>;
113#[doc = "Field `VSCALEDONE` reader - VSCALEDONE Interrupt Enable"]
114pub type VSCALEDONE_R = crate::BitReader<bool>;
115#[doc = "Field `VSCALEDONE` writer - VSCALEDONE Interrupt Enable"]
116pub type VSCALEDONE_W<'a> = crate::BitWriter<'a, u32, IEN_SPEC, bool, 25>;
117#[doc = "Field `TEMP` reader - TEMP Interrupt Enable"]
118pub type TEMP_R = crate::BitReader<bool>;
119#[doc = "Field `TEMP` writer - TEMP Interrupt Enable"]
120pub type TEMP_W<'a> = crate::BitWriter<'a, u32, IEN_SPEC, bool, 29>;
121#[doc = "Field `TEMPLOW` reader - TEMPLOW Interrupt Enable"]
122pub type TEMPLOW_R = crate::BitReader<bool>;
123#[doc = "Field `TEMPLOW` writer - TEMPLOW Interrupt Enable"]
124pub type TEMPLOW_W<'a> = crate::BitWriter<'a, u32, IEN_SPEC, bool, 30>;
125#[doc = "Field `TEMPHIGH` reader - TEMPHIGH Interrupt Enable"]
126pub type TEMPHIGH_R = crate::BitReader<bool>;
127#[doc = "Field `TEMPHIGH` writer - TEMPHIGH Interrupt Enable"]
128pub type TEMPHIGH_W<'a> = crate::BitWriter<'a, u32, IEN_SPEC, bool, 31>;
129impl R {
130 #[doc = "Bit 0 - VMONAVDDFALL Interrupt Enable"]
131 #[inline(always)]
132 pub fn vmonavddfall(&self) -> VMONAVDDFALL_R {
133 VMONAVDDFALL_R::new((self.bits & 1) != 0)
134 }
135 #[doc = "Bit 1 - VMONAVDDRISE Interrupt Enable"]
136 #[inline(always)]
137 pub fn vmonavddrise(&self) -> VMONAVDDRISE_R {
138 VMONAVDDRISE_R::new(((self.bits >> 1) & 1) != 0)
139 }
140 #[doc = "Bit 2 - VMONALTAVDDFALL Interrupt Enable"]
141 #[inline(always)]
142 pub fn vmonaltavddfall(&self) -> VMONALTAVDDFALL_R {
143 VMONALTAVDDFALL_R::new(((self.bits >> 2) & 1) != 0)
144 }
145 #[doc = "Bit 3 - VMONALTAVDDRISE Interrupt Enable"]
146 #[inline(always)]
147 pub fn vmonaltavddrise(&self) -> VMONALTAVDDRISE_R {
148 VMONALTAVDDRISE_R::new(((self.bits >> 3) & 1) != 0)
149 }
150 #[doc = "Bit 4 - VMONDVDDFALL Interrupt Enable"]
151 #[inline(always)]
152 pub fn vmondvddfall(&self) -> VMONDVDDFALL_R {
153 VMONDVDDFALL_R::new(((self.bits >> 4) & 1) != 0)
154 }
155 #[doc = "Bit 5 - VMONDVDDRISE Interrupt Enable"]
156 #[inline(always)]
157 pub fn vmondvddrise(&self) -> VMONDVDDRISE_R {
158 VMONDVDDRISE_R::new(((self.bits >> 5) & 1) != 0)
159 }
160 #[doc = "Bit 6 - VMONIO0FALL Interrupt Enable"]
161 #[inline(always)]
162 pub fn vmonio0fall(&self) -> VMONIO0FALL_R {
163 VMONIO0FALL_R::new(((self.bits >> 6) & 1) != 0)
164 }
165 #[doc = "Bit 7 - VMONIO0RISE Interrupt Enable"]
166 #[inline(always)]
167 pub fn vmonio0rise(&self) -> VMONIO0RISE_R {
168 VMONIO0RISE_R::new(((self.bits >> 7) & 1) != 0)
169 }
170 #[doc = "Bit 12 - VMONBUVDDFALL Interrupt Enable"]
171 #[inline(always)]
172 pub fn vmonbuvddfall(&self) -> VMONBUVDDFALL_R {
173 VMONBUVDDFALL_R::new(((self.bits >> 12) & 1) != 0)
174 }
175 #[doc = "Bit 13 - VMONBUVDDRISE Interrupt Enable"]
176 #[inline(always)]
177 pub fn vmonbuvddrise(&self) -> VMONBUVDDRISE_R {
178 VMONBUVDDRISE_R::new(((self.bits >> 13) & 1) != 0)
179 }
180 #[doc = "Bit 14 - VMONFVDDFALL Interrupt Enable"]
181 #[inline(always)]
182 pub fn vmonfvddfall(&self) -> VMONFVDDFALL_R {
183 VMONFVDDFALL_R::new(((self.bits >> 14) & 1) != 0)
184 }
185 #[doc = "Bit 15 - VMONFVDDRISE Interrupt Enable"]
186 #[inline(always)]
187 pub fn vmonfvddrise(&self) -> VMONFVDDRISE_R {
188 VMONFVDDRISE_R::new(((self.bits >> 15) & 1) != 0)
189 }
190 #[doc = "Bit 16 - PFETOVERCURRENTLIMIT Interrupt Enable"]
191 #[inline(always)]
192 pub fn pfetovercurrentlimit(&self) -> PFETOVERCURRENTLIMIT_R {
193 PFETOVERCURRENTLIMIT_R::new(((self.bits >> 16) & 1) != 0)
194 }
195 #[doc = "Bit 17 - NFETOVERCURRENTLIMIT Interrupt Enable"]
196 #[inline(always)]
197 pub fn nfetovercurrentlimit(&self) -> NFETOVERCURRENTLIMIT_R {
198 NFETOVERCURRENTLIMIT_R::new(((self.bits >> 17) & 1) != 0)
199 }
200 #[doc = "Bit 18 - DCDCLPRUNNING Interrupt Enable"]
201 #[inline(always)]
202 pub fn dcdclprunning(&self) -> DCDCLPRUNNING_R {
203 DCDCLPRUNNING_R::new(((self.bits >> 18) & 1) != 0)
204 }
205 #[doc = "Bit 19 - DCDCLNRUNNING Interrupt Enable"]
206 #[inline(always)]
207 pub fn dcdclnrunning(&self) -> DCDCLNRUNNING_R {
208 DCDCLNRUNNING_R::new(((self.bits >> 19) & 1) != 0)
209 }
210 #[doc = "Bit 20 - DCDCINBYPASS Interrupt Enable"]
211 #[inline(always)]
212 pub fn dcdcinbypass(&self) -> DCDCINBYPASS_R {
213 DCDCINBYPASS_R::new(((self.bits >> 20) & 1) != 0)
214 }
215 #[doc = "Bit 22 - BURDY Interrupt Enable"]
216 #[inline(always)]
217 pub fn burdy(&self) -> BURDY_R {
218 BURDY_R::new(((self.bits >> 22) & 1) != 0)
219 }
220 #[doc = "Bit 24 - EM23WAKEUP Interrupt Enable"]
221 #[inline(always)]
222 pub fn em23wakeup(&self) -> EM23WAKEUP_R {
223 EM23WAKEUP_R::new(((self.bits >> 24) & 1) != 0)
224 }
225 #[doc = "Bit 25 - VSCALEDONE Interrupt Enable"]
226 #[inline(always)]
227 pub fn vscaledone(&self) -> VSCALEDONE_R {
228 VSCALEDONE_R::new(((self.bits >> 25) & 1) != 0)
229 }
230 #[doc = "Bit 29 - TEMP Interrupt Enable"]
231 #[inline(always)]
232 pub fn temp(&self) -> TEMP_R {
233 TEMP_R::new(((self.bits >> 29) & 1) != 0)
234 }
235 #[doc = "Bit 30 - TEMPLOW Interrupt Enable"]
236 #[inline(always)]
237 pub fn templow(&self) -> TEMPLOW_R {
238 TEMPLOW_R::new(((self.bits >> 30) & 1) != 0)
239 }
240 #[doc = "Bit 31 - TEMPHIGH Interrupt Enable"]
241 #[inline(always)]
242 pub fn temphigh(&self) -> TEMPHIGH_R {
243 TEMPHIGH_R::new(((self.bits >> 31) & 1) != 0)
244 }
245}
246impl W {
247 #[doc = "Bit 0 - VMONAVDDFALL Interrupt Enable"]
248 #[inline(always)]
249 pub fn vmonavddfall(&mut self) -> VMONAVDDFALL_W {
250 VMONAVDDFALL_W::new(self)
251 }
252 #[doc = "Bit 1 - VMONAVDDRISE Interrupt Enable"]
253 #[inline(always)]
254 pub fn vmonavddrise(&mut self) -> VMONAVDDRISE_W {
255 VMONAVDDRISE_W::new(self)
256 }
257 #[doc = "Bit 2 - VMONALTAVDDFALL Interrupt Enable"]
258 #[inline(always)]
259 pub fn vmonaltavddfall(&mut self) -> VMONALTAVDDFALL_W {
260 VMONALTAVDDFALL_W::new(self)
261 }
262 #[doc = "Bit 3 - VMONALTAVDDRISE Interrupt Enable"]
263 #[inline(always)]
264 pub fn vmonaltavddrise(&mut self) -> VMONALTAVDDRISE_W {
265 VMONALTAVDDRISE_W::new(self)
266 }
267 #[doc = "Bit 4 - VMONDVDDFALL Interrupt Enable"]
268 #[inline(always)]
269 pub fn vmondvddfall(&mut self) -> VMONDVDDFALL_W {
270 VMONDVDDFALL_W::new(self)
271 }
272 #[doc = "Bit 5 - VMONDVDDRISE Interrupt Enable"]
273 #[inline(always)]
274 pub fn vmondvddrise(&mut self) -> VMONDVDDRISE_W {
275 VMONDVDDRISE_W::new(self)
276 }
277 #[doc = "Bit 6 - VMONIO0FALL Interrupt Enable"]
278 #[inline(always)]
279 pub fn vmonio0fall(&mut self) -> VMONIO0FALL_W {
280 VMONIO0FALL_W::new(self)
281 }
282 #[doc = "Bit 7 - VMONIO0RISE Interrupt Enable"]
283 #[inline(always)]
284 pub fn vmonio0rise(&mut self) -> VMONIO0RISE_W {
285 VMONIO0RISE_W::new(self)
286 }
287 #[doc = "Bit 12 - VMONBUVDDFALL Interrupt Enable"]
288 #[inline(always)]
289 pub fn vmonbuvddfall(&mut self) -> VMONBUVDDFALL_W {
290 VMONBUVDDFALL_W::new(self)
291 }
292 #[doc = "Bit 13 - VMONBUVDDRISE Interrupt Enable"]
293 #[inline(always)]
294 pub fn vmonbuvddrise(&mut self) -> VMONBUVDDRISE_W {
295 VMONBUVDDRISE_W::new(self)
296 }
297 #[doc = "Bit 14 - VMONFVDDFALL Interrupt Enable"]
298 #[inline(always)]
299 pub fn vmonfvddfall(&mut self) -> VMONFVDDFALL_W {
300 VMONFVDDFALL_W::new(self)
301 }
302 #[doc = "Bit 15 - VMONFVDDRISE Interrupt Enable"]
303 #[inline(always)]
304 pub fn vmonfvddrise(&mut self) -> VMONFVDDRISE_W {
305 VMONFVDDRISE_W::new(self)
306 }
307 #[doc = "Bit 16 - PFETOVERCURRENTLIMIT Interrupt Enable"]
308 #[inline(always)]
309 pub fn pfetovercurrentlimit(&mut self) -> PFETOVERCURRENTLIMIT_W {
310 PFETOVERCURRENTLIMIT_W::new(self)
311 }
312 #[doc = "Bit 17 - NFETOVERCURRENTLIMIT Interrupt Enable"]
313 #[inline(always)]
314 pub fn nfetovercurrentlimit(&mut self) -> NFETOVERCURRENTLIMIT_W {
315 NFETOVERCURRENTLIMIT_W::new(self)
316 }
317 #[doc = "Bit 18 - DCDCLPRUNNING Interrupt Enable"]
318 #[inline(always)]
319 pub fn dcdclprunning(&mut self) -> DCDCLPRUNNING_W {
320 DCDCLPRUNNING_W::new(self)
321 }
322 #[doc = "Bit 19 - DCDCLNRUNNING Interrupt Enable"]
323 #[inline(always)]
324 pub fn dcdclnrunning(&mut self) -> DCDCLNRUNNING_W {
325 DCDCLNRUNNING_W::new(self)
326 }
327 #[doc = "Bit 20 - DCDCINBYPASS Interrupt Enable"]
328 #[inline(always)]
329 pub fn dcdcinbypass(&mut self) -> DCDCINBYPASS_W {
330 DCDCINBYPASS_W::new(self)
331 }
332 #[doc = "Bit 22 - BURDY Interrupt Enable"]
333 #[inline(always)]
334 pub fn burdy(&mut self) -> BURDY_W {
335 BURDY_W::new(self)
336 }
337 #[doc = "Bit 24 - EM23WAKEUP Interrupt Enable"]
338 #[inline(always)]
339 pub fn em23wakeup(&mut self) -> EM23WAKEUP_W {
340 EM23WAKEUP_W::new(self)
341 }
342 #[doc = "Bit 25 - VSCALEDONE Interrupt Enable"]
343 #[inline(always)]
344 pub fn vscaledone(&mut self) -> VSCALEDONE_W {
345 VSCALEDONE_W::new(self)
346 }
347 #[doc = "Bit 29 - TEMP Interrupt Enable"]
348 #[inline(always)]
349 pub fn temp(&mut self) -> TEMP_W {
350 TEMP_W::new(self)
351 }
352 #[doc = "Bit 30 - TEMPLOW Interrupt Enable"]
353 #[inline(always)]
354 pub fn templow(&mut self) -> TEMPLOW_W {
355 TEMPLOW_W::new(self)
356 }
357 #[doc = "Bit 31 - TEMPHIGH Interrupt Enable"]
358 #[inline(always)]
359 pub fn temphigh(&mut self) -> TEMPHIGH_W {
360 TEMPHIGH_W::new(self)
361 }
362 #[doc = "Writes raw bits to the register."]
363 #[inline(always)]
364 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
365 self.0.bits(bits);
366 self
367 }
368}
369#[doc = "Interrupt Enable Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ien](index.html) module"]
370pub struct IEN_SPEC;
371impl crate::RegisterSpec for IEN_SPEC {
372 type Ux = u32;
373}
374#[doc = "`read()` method returns [ien::R](R) reader structure"]
375impl crate::Readable for IEN_SPEC {
376 type Reader = R;
377}
378#[doc = "`write(|w| ..)` method takes [ien::W](W) writer structure"]
379impl crate::Writable for IEN_SPEC {
380 type Writer = W;
381}
382#[doc = "`reset()` method sets IEN to value 0"]
383impl crate::Resettable for IEN_SPEC {
384 #[inline(always)]
385 fn reset_value() -> Self::Ux {
386 0
387 }
388}