1#[doc = "Writer for register IFC"]
2pub type W = crate::W<u32, super::IFC>;
3#[doc = "Register IFC `reset()`'s with value 0"]
4impl crate::ResetValue for super::IFC {
5 type Type = u32;
6 #[inline(always)]
7 fn reset_value() -> Self::Type {
8 0
9 }
10}
11#[doc = "Write proxy for field `VMONAVDDFALL`"]
12pub struct VMONAVDDFALL_W<'a> {
13 w: &'a mut W,
14}
15impl<'a> VMONAVDDFALL_W<'a> {
16 #[doc = r"Sets the field bit"]
17 #[inline(always)]
18 pub fn set_bit(self) -> &'a mut W {
19 self.bit(true)
20 }
21 #[doc = r"Clears the field bit"]
22 #[inline(always)]
23 pub fn clear_bit(self) -> &'a mut W {
24 self.bit(false)
25 }
26 #[doc = r"Writes raw bits to the field"]
27 #[inline(always)]
28 pub fn bit(self, value: bool) -> &'a mut W {
29 self.w.bits = (self.w.bits & !0x01) | ((value as u32) & 0x01);
30 self.w
31 }
32}
33#[doc = "Write proxy for field `VMONAVDDRISE`"]
34pub struct VMONAVDDRISE_W<'a> {
35 w: &'a mut W,
36}
37impl<'a> VMONAVDDRISE_W<'a> {
38 #[doc = r"Sets the field bit"]
39 #[inline(always)]
40 pub fn set_bit(self) -> &'a mut W {
41 self.bit(true)
42 }
43 #[doc = r"Clears the field bit"]
44 #[inline(always)]
45 pub fn clear_bit(self) -> &'a mut W {
46 self.bit(false)
47 }
48 #[doc = r"Writes raw bits to the field"]
49 #[inline(always)]
50 pub fn bit(self, value: bool) -> &'a mut W {
51 self.w.bits = (self.w.bits & !(0x01 << 1)) | (((value as u32) & 0x01) << 1);
52 self.w
53 }
54}
55#[doc = "Write proxy for field `VMONALTAVDDFALL`"]
56pub struct VMONALTAVDDFALL_W<'a> {
57 w: &'a mut W,
58}
59impl<'a> VMONALTAVDDFALL_W<'a> {
60 #[doc = r"Sets the field bit"]
61 #[inline(always)]
62 pub fn set_bit(self) -> &'a mut W {
63 self.bit(true)
64 }
65 #[doc = r"Clears the field bit"]
66 #[inline(always)]
67 pub fn clear_bit(self) -> &'a mut W {
68 self.bit(false)
69 }
70 #[doc = r"Writes raw bits to the field"]
71 #[inline(always)]
72 pub fn bit(self, value: bool) -> &'a mut W {
73 self.w.bits = (self.w.bits & !(0x01 << 2)) | (((value as u32) & 0x01) << 2);
74 self.w
75 }
76}
77#[doc = "Write proxy for field `VMONALTAVDDRISE`"]
78pub struct VMONALTAVDDRISE_W<'a> {
79 w: &'a mut W,
80}
81impl<'a> VMONALTAVDDRISE_W<'a> {
82 #[doc = r"Sets the field bit"]
83 #[inline(always)]
84 pub fn set_bit(self) -> &'a mut W {
85 self.bit(true)
86 }
87 #[doc = r"Clears the field bit"]
88 #[inline(always)]
89 pub fn clear_bit(self) -> &'a mut W {
90 self.bit(false)
91 }
92 #[doc = r"Writes raw bits to the field"]
93 #[inline(always)]
94 pub fn bit(self, value: bool) -> &'a mut W {
95 self.w.bits = (self.w.bits & !(0x01 << 3)) | (((value as u32) & 0x01) << 3);
96 self.w
97 }
98}
99#[doc = "Write proxy for field `VMONDVDDFALL`"]
100pub struct VMONDVDDFALL_W<'a> {
101 w: &'a mut W,
102}
103impl<'a> VMONDVDDFALL_W<'a> {
104 #[doc = r"Sets the field bit"]
105 #[inline(always)]
106 pub fn set_bit(self) -> &'a mut W {
107 self.bit(true)
108 }
109 #[doc = r"Clears the field bit"]
110 #[inline(always)]
111 pub fn clear_bit(self) -> &'a mut W {
112 self.bit(false)
113 }
114 #[doc = r"Writes raw bits to the field"]
115 #[inline(always)]
116 pub fn bit(self, value: bool) -> &'a mut W {
117 self.w.bits = (self.w.bits & !(0x01 << 4)) | (((value as u32) & 0x01) << 4);
118 self.w
119 }
120}
121#[doc = "Write proxy for field `VMONDVDDRISE`"]
122pub struct VMONDVDDRISE_W<'a> {
123 w: &'a mut W,
124}
125impl<'a> VMONDVDDRISE_W<'a> {
126 #[doc = r"Sets the field bit"]
127 #[inline(always)]
128 pub fn set_bit(self) -> &'a mut W {
129 self.bit(true)
130 }
131 #[doc = r"Clears the field bit"]
132 #[inline(always)]
133 pub fn clear_bit(self) -> &'a mut W {
134 self.bit(false)
135 }
136 #[doc = r"Writes raw bits to the field"]
137 #[inline(always)]
138 pub fn bit(self, value: bool) -> &'a mut W {
139 self.w.bits = (self.w.bits & !(0x01 << 5)) | (((value as u32) & 0x01) << 5);
140 self.w
141 }
142}
143#[doc = "Write proxy for field `VMONIO0FALL`"]
144pub struct VMONIO0FALL_W<'a> {
145 w: &'a mut W,
146}
147impl<'a> VMONIO0FALL_W<'a> {
148 #[doc = r"Sets the field bit"]
149 #[inline(always)]
150 pub fn set_bit(self) -> &'a mut W {
151 self.bit(true)
152 }
153 #[doc = r"Clears the field bit"]
154 #[inline(always)]
155 pub fn clear_bit(self) -> &'a mut W {
156 self.bit(false)
157 }
158 #[doc = r"Writes raw bits to the field"]
159 #[inline(always)]
160 pub fn bit(self, value: bool) -> &'a mut W {
161 self.w.bits = (self.w.bits & !(0x01 << 6)) | (((value as u32) & 0x01) << 6);
162 self.w
163 }
164}
165#[doc = "Write proxy for field `VMONIO0RISE`"]
166pub struct VMONIO0RISE_W<'a> {
167 w: &'a mut W,
168}
169impl<'a> VMONIO0RISE_W<'a> {
170 #[doc = r"Sets the field bit"]
171 #[inline(always)]
172 pub fn set_bit(self) -> &'a mut W {
173 self.bit(true)
174 }
175 #[doc = r"Clears the field bit"]
176 #[inline(always)]
177 pub fn clear_bit(self) -> &'a mut W {
178 self.bit(false)
179 }
180 #[doc = r"Writes raw bits to the field"]
181 #[inline(always)]
182 pub fn bit(self, value: bool) -> &'a mut W {
183 self.w.bits = (self.w.bits & !(0x01 << 7)) | (((value as u32) & 0x01) << 7);
184 self.w
185 }
186}
187#[doc = "Write proxy for field `VMONFVDDFALL`"]
188pub struct VMONFVDDFALL_W<'a> {
189 w: &'a mut W,
190}
191impl<'a> VMONFVDDFALL_W<'a> {
192 #[doc = r"Sets the field bit"]
193 #[inline(always)]
194 pub fn set_bit(self) -> &'a mut W {
195 self.bit(true)
196 }
197 #[doc = r"Clears the field bit"]
198 #[inline(always)]
199 pub fn clear_bit(self) -> &'a mut W {
200 self.bit(false)
201 }
202 #[doc = r"Writes raw bits to the field"]
203 #[inline(always)]
204 pub fn bit(self, value: bool) -> &'a mut W {
205 self.w.bits = (self.w.bits & !(0x01 << 14)) | (((value as u32) & 0x01) << 14);
206 self.w
207 }
208}
209#[doc = "Write proxy for field `VMONFVDDRISE`"]
210pub struct VMONFVDDRISE_W<'a> {
211 w: &'a mut W,
212}
213impl<'a> VMONFVDDRISE_W<'a> {
214 #[doc = r"Sets the field bit"]
215 #[inline(always)]
216 pub fn set_bit(self) -> &'a mut W {
217 self.bit(true)
218 }
219 #[doc = r"Clears the field bit"]
220 #[inline(always)]
221 pub fn clear_bit(self) -> &'a mut W {
222 self.bit(false)
223 }
224 #[doc = r"Writes raw bits to the field"]
225 #[inline(always)]
226 pub fn bit(self, value: bool) -> &'a mut W {
227 self.w.bits = (self.w.bits & !(0x01 << 15)) | (((value as u32) & 0x01) << 15);
228 self.w
229 }
230}
231#[doc = "Write proxy for field `PFETOVERCURRENTLIMIT`"]
232pub struct PFETOVERCURRENTLIMIT_W<'a> {
233 w: &'a mut W,
234}
235impl<'a> PFETOVERCURRENTLIMIT_W<'a> {
236 #[doc = r"Sets the field bit"]
237 #[inline(always)]
238 pub fn set_bit(self) -> &'a mut W {
239 self.bit(true)
240 }
241 #[doc = r"Clears the field bit"]
242 #[inline(always)]
243 pub fn clear_bit(self) -> &'a mut W {
244 self.bit(false)
245 }
246 #[doc = r"Writes raw bits to the field"]
247 #[inline(always)]
248 pub fn bit(self, value: bool) -> &'a mut W {
249 self.w.bits = (self.w.bits & !(0x01 << 16)) | (((value as u32) & 0x01) << 16);
250 self.w
251 }
252}
253#[doc = "Write proxy for field `NFETOVERCURRENTLIMIT`"]
254pub struct NFETOVERCURRENTLIMIT_W<'a> {
255 w: &'a mut W,
256}
257impl<'a> NFETOVERCURRENTLIMIT_W<'a> {
258 #[doc = r"Sets the field bit"]
259 #[inline(always)]
260 pub fn set_bit(self) -> &'a mut W {
261 self.bit(true)
262 }
263 #[doc = r"Clears the field bit"]
264 #[inline(always)]
265 pub fn clear_bit(self) -> &'a mut W {
266 self.bit(false)
267 }
268 #[doc = r"Writes raw bits to the field"]
269 #[inline(always)]
270 pub fn bit(self, value: bool) -> &'a mut W {
271 self.w.bits = (self.w.bits & !(0x01 << 17)) | (((value as u32) & 0x01) << 17);
272 self.w
273 }
274}
275#[doc = "Write proxy for field `DCDCLPRUNNING`"]
276pub struct DCDCLPRUNNING_W<'a> {
277 w: &'a mut W,
278}
279impl<'a> DCDCLPRUNNING_W<'a> {
280 #[doc = r"Sets the field bit"]
281 #[inline(always)]
282 pub fn set_bit(self) -> &'a mut W {
283 self.bit(true)
284 }
285 #[doc = r"Clears the field bit"]
286 #[inline(always)]
287 pub fn clear_bit(self) -> &'a mut W {
288 self.bit(false)
289 }
290 #[doc = r"Writes raw bits to the field"]
291 #[inline(always)]
292 pub fn bit(self, value: bool) -> &'a mut W {
293 self.w.bits = (self.w.bits & !(0x01 << 18)) | (((value as u32) & 0x01) << 18);
294 self.w
295 }
296}
297#[doc = "Write proxy for field `DCDCLNRUNNING`"]
298pub struct DCDCLNRUNNING_W<'a> {
299 w: &'a mut W,
300}
301impl<'a> DCDCLNRUNNING_W<'a> {
302 #[doc = r"Sets the field bit"]
303 #[inline(always)]
304 pub fn set_bit(self) -> &'a mut W {
305 self.bit(true)
306 }
307 #[doc = r"Clears the field bit"]
308 #[inline(always)]
309 pub fn clear_bit(self) -> &'a mut W {
310 self.bit(false)
311 }
312 #[doc = r"Writes raw bits to the field"]
313 #[inline(always)]
314 pub fn bit(self, value: bool) -> &'a mut W {
315 self.w.bits = (self.w.bits & !(0x01 << 19)) | (((value as u32) & 0x01) << 19);
316 self.w
317 }
318}
319#[doc = "Write proxy for field `DCDCINBYPASS`"]
320pub struct DCDCINBYPASS_W<'a> {
321 w: &'a mut W,
322}
323impl<'a> DCDCINBYPASS_W<'a> {
324 #[doc = r"Sets the field bit"]
325 #[inline(always)]
326 pub fn set_bit(self) -> &'a mut W {
327 self.bit(true)
328 }
329 #[doc = r"Clears the field bit"]
330 #[inline(always)]
331 pub fn clear_bit(self) -> &'a mut W {
332 self.bit(false)
333 }
334 #[doc = r"Writes raw bits to the field"]
335 #[inline(always)]
336 pub fn bit(self, value: bool) -> &'a mut W {
337 self.w.bits = (self.w.bits & !(0x01 << 20)) | (((value as u32) & 0x01) << 20);
338 self.w
339 }
340}
341#[doc = "Write proxy for field `EM23WAKEUP`"]
342pub struct EM23WAKEUP_W<'a> {
343 w: &'a mut W,
344}
345impl<'a> EM23WAKEUP_W<'a> {
346 #[doc = r"Sets the field bit"]
347 #[inline(always)]
348 pub fn set_bit(self) -> &'a mut W {
349 self.bit(true)
350 }
351 #[doc = r"Clears the field bit"]
352 #[inline(always)]
353 pub fn clear_bit(self) -> &'a mut W {
354 self.bit(false)
355 }
356 #[doc = r"Writes raw bits to the field"]
357 #[inline(always)]
358 pub fn bit(self, value: bool) -> &'a mut W {
359 self.w.bits = (self.w.bits & !(0x01 << 24)) | (((value as u32) & 0x01) << 24);
360 self.w
361 }
362}
363#[doc = "Write proxy for field `VSCALEDONE`"]
364pub struct VSCALEDONE_W<'a> {
365 w: &'a mut W,
366}
367impl<'a> VSCALEDONE_W<'a> {
368 #[doc = r"Sets the field bit"]
369 #[inline(always)]
370 pub fn set_bit(self) -> &'a mut W {
371 self.bit(true)
372 }
373 #[doc = r"Clears the field bit"]
374 #[inline(always)]
375 pub fn clear_bit(self) -> &'a mut W {
376 self.bit(false)
377 }
378 #[doc = r"Writes raw bits to the field"]
379 #[inline(always)]
380 pub fn bit(self, value: bool) -> &'a mut W {
381 self.w.bits = (self.w.bits & !(0x01 << 25)) | (((value as u32) & 0x01) << 25);
382 self.w
383 }
384}
385#[doc = "Write proxy for field `TEMP`"]
386pub struct TEMP_W<'a> {
387 w: &'a mut W,
388}
389impl<'a> TEMP_W<'a> {
390 #[doc = r"Sets the field bit"]
391 #[inline(always)]
392 pub fn set_bit(self) -> &'a mut W {
393 self.bit(true)
394 }
395 #[doc = r"Clears the field bit"]
396 #[inline(always)]
397 pub fn clear_bit(self) -> &'a mut W {
398 self.bit(false)
399 }
400 #[doc = r"Writes raw bits to the field"]
401 #[inline(always)]
402 pub fn bit(self, value: bool) -> &'a mut W {
403 self.w.bits = (self.w.bits & !(0x01 << 29)) | (((value as u32) & 0x01) << 29);
404 self.w
405 }
406}
407#[doc = "Write proxy for field `TEMPLOW`"]
408pub struct TEMPLOW_W<'a> {
409 w: &'a mut W,
410}
411impl<'a> TEMPLOW_W<'a> {
412 #[doc = r"Sets the field bit"]
413 #[inline(always)]
414 pub fn set_bit(self) -> &'a mut W {
415 self.bit(true)
416 }
417 #[doc = r"Clears the field bit"]
418 #[inline(always)]
419 pub fn clear_bit(self) -> &'a mut W {
420 self.bit(false)
421 }
422 #[doc = r"Writes raw bits to the field"]
423 #[inline(always)]
424 pub fn bit(self, value: bool) -> &'a mut W {
425 self.w.bits = (self.w.bits & !(0x01 << 30)) | (((value as u32) & 0x01) << 30);
426 self.w
427 }
428}
429#[doc = "Write proxy for field `TEMPHIGH`"]
430pub struct TEMPHIGH_W<'a> {
431 w: &'a mut W,
432}
433impl<'a> TEMPHIGH_W<'a> {
434 #[doc = r"Sets the field bit"]
435 #[inline(always)]
436 pub fn set_bit(self) -> &'a mut W {
437 self.bit(true)
438 }
439 #[doc = r"Clears the field bit"]
440 #[inline(always)]
441 pub fn clear_bit(self) -> &'a mut W {
442 self.bit(false)
443 }
444 #[doc = r"Writes raw bits to the field"]
445 #[inline(always)]
446 pub fn bit(self, value: bool) -> &'a mut W {
447 self.w.bits = (self.w.bits & !(0x01 << 31)) | (((value as u32) & 0x01) << 31);
448 self.w
449 }
450}
451impl W {
452 #[doc = "Bit 0 - Clear VMONAVDDFALL Interrupt Flag"]
453 #[inline(always)]
454 pub fn vmonavddfall(&mut self) -> VMONAVDDFALL_W {
455 VMONAVDDFALL_W { w: self }
456 }
457 #[doc = "Bit 1 - Clear VMONAVDDRISE Interrupt Flag"]
458 #[inline(always)]
459 pub fn vmonavddrise(&mut self) -> VMONAVDDRISE_W {
460 VMONAVDDRISE_W { w: self }
461 }
462 #[doc = "Bit 2 - Clear VMONALTAVDDFALL Interrupt Flag"]
463 #[inline(always)]
464 pub fn vmonaltavddfall(&mut self) -> VMONALTAVDDFALL_W {
465 VMONALTAVDDFALL_W { w: self }
466 }
467 #[doc = "Bit 3 - Clear VMONALTAVDDRISE Interrupt Flag"]
468 #[inline(always)]
469 pub fn vmonaltavddrise(&mut self) -> VMONALTAVDDRISE_W {
470 VMONALTAVDDRISE_W { w: self }
471 }
472 #[doc = "Bit 4 - Clear VMONDVDDFALL Interrupt Flag"]
473 #[inline(always)]
474 pub fn vmondvddfall(&mut self) -> VMONDVDDFALL_W {
475 VMONDVDDFALL_W { w: self }
476 }
477 #[doc = "Bit 5 - Clear VMONDVDDRISE Interrupt Flag"]
478 #[inline(always)]
479 pub fn vmondvddrise(&mut self) -> VMONDVDDRISE_W {
480 VMONDVDDRISE_W { w: self }
481 }
482 #[doc = "Bit 6 - Clear VMONIO0FALL Interrupt Flag"]
483 #[inline(always)]
484 pub fn vmonio0fall(&mut self) -> VMONIO0FALL_W {
485 VMONIO0FALL_W { w: self }
486 }
487 #[doc = "Bit 7 - Clear VMONIO0RISE Interrupt Flag"]
488 #[inline(always)]
489 pub fn vmonio0rise(&mut self) -> VMONIO0RISE_W {
490 VMONIO0RISE_W { w: self }
491 }
492 #[doc = "Bit 14 - Clear VMONFVDDFALL Interrupt Flag"]
493 #[inline(always)]
494 pub fn vmonfvddfall(&mut self) -> VMONFVDDFALL_W {
495 VMONFVDDFALL_W { w: self }
496 }
497 #[doc = "Bit 15 - Clear VMONFVDDRISE Interrupt Flag"]
498 #[inline(always)]
499 pub fn vmonfvddrise(&mut self) -> VMONFVDDRISE_W {
500 VMONFVDDRISE_W { w: self }
501 }
502 #[doc = "Bit 16 - Clear PFETOVERCURRENTLIMIT Interrupt Flag"]
503 #[inline(always)]
504 pub fn pfetovercurrentlimit(&mut self) -> PFETOVERCURRENTLIMIT_W {
505 PFETOVERCURRENTLIMIT_W { w: self }
506 }
507 #[doc = "Bit 17 - Clear NFETOVERCURRENTLIMIT Interrupt Flag"]
508 #[inline(always)]
509 pub fn nfetovercurrentlimit(&mut self) -> NFETOVERCURRENTLIMIT_W {
510 NFETOVERCURRENTLIMIT_W { w: self }
511 }
512 #[doc = "Bit 18 - Clear DCDCLPRUNNING Interrupt Flag"]
513 #[inline(always)]
514 pub fn dcdclprunning(&mut self) -> DCDCLPRUNNING_W {
515 DCDCLPRUNNING_W { w: self }
516 }
517 #[doc = "Bit 19 - Clear DCDCLNRUNNING Interrupt Flag"]
518 #[inline(always)]
519 pub fn dcdclnrunning(&mut self) -> DCDCLNRUNNING_W {
520 DCDCLNRUNNING_W { w: self }
521 }
522 #[doc = "Bit 20 - Clear DCDCINBYPASS Interrupt Flag"]
523 #[inline(always)]
524 pub fn dcdcinbypass(&mut self) -> DCDCINBYPASS_W {
525 DCDCINBYPASS_W { w: self }
526 }
527 #[doc = "Bit 24 - Clear EM23WAKEUP Interrupt Flag"]
528 #[inline(always)]
529 pub fn em23wakeup(&mut self) -> EM23WAKEUP_W {
530 EM23WAKEUP_W { w: self }
531 }
532 #[doc = "Bit 25 - Clear VSCALEDONE Interrupt Flag"]
533 #[inline(always)]
534 pub fn vscaledone(&mut self) -> VSCALEDONE_W {
535 VSCALEDONE_W { w: self }
536 }
537 #[doc = "Bit 29 - Clear TEMP Interrupt Flag"]
538 #[inline(always)]
539 pub fn temp(&mut self) -> TEMP_W {
540 TEMP_W { w: self }
541 }
542 #[doc = "Bit 30 - Clear TEMPLOW Interrupt Flag"]
543 #[inline(always)]
544 pub fn templow(&mut self) -> TEMPLOW_W {
545 TEMPLOW_W { w: self }
546 }
547 #[doc = "Bit 31 - Clear TEMPHIGH Interrupt Flag"]
548 #[inline(always)]
549 pub fn temphigh(&mut self) -> TEMPHIGH_W {
550 TEMPHIGH_W { w: self }
551 }
552}