1#[doc = "Register `POFCON` reader"]
2pub struct R(crate::R<POFCON_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<POFCON_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<POFCON_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<POFCON_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `POFCON` writer"]
17pub struct W(crate::W<POFCON_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<POFCON_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<POFCON_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<POFCON_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `POF` reader - Enable or disable power failure warning"]
38pub type POF_R = crate::BitReader<POF_A>;
39#[doc = "Enable or disable power failure warning\n\nValue on reset: 0"]
40#[derive(Clone, Copy, Debug, PartialEq)]
41pub enum POF_A {
42 #[doc = "0: Disable"]
43 DISABLED = 0,
44 #[doc = "1: Enable"]
45 ENABLED = 1,
46}
47impl From<POF_A> for bool {
48 #[inline(always)]
49 fn from(variant: POF_A) -> Self {
50 variant as u8 != 0
51 }
52}
53impl POF_R {
54 #[doc = "Get enumerated values variant"]
55 #[inline(always)]
56 pub fn variant(&self) -> POF_A {
57 match self.bits {
58 false => POF_A::DISABLED,
59 true => POF_A::ENABLED,
60 }
61 }
62 #[doc = "Checks if the value of the field is `DISABLED`"]
63 #[inline(always)]
64 pub fn is_disabled(&self) -> bool {
65 *self == POF_A::DISABLED
66 }
67 #[doc = "Checks if the value of the field is `ENABLED`"]
68 #[inline(always)]
69 pub fn is_enabled(&self) -> bool {
70 *self == POF_A::ENABLED
71 }
72}
73#[doc = "Field `POF` writer - Enable or disable power failure warning"]
74pub type POF_W<'a, const O: u8> = crate::BitWriter<'a, u32, POFCON_SPEC, POF_A, O>;
75impl<'a, const O: u8> POF_W<'a, O> {
76 #[doc = "Disable"]
77 #[inline(always)]
78 pub fn disabled(self) -> &'a mut W {
79 self.variant(POF_A::DISABLED)
80 }
81 #[doc = "Enable"]
82 #[inline(always)]
83 pub fn enabled(self) -> &'a mut W {
84 self.variant(POF_A::ENABLED)
85 }
86}
87#[doc = "Field `THRESHOLD` reader - Power-fail comparator threshold setting. This setting applies both for normal voltage mode (supply connected to both VDD and VDDH) and high voltage mode (supply connected to VDDH only). Values 0-3 set threshold below 1.7 V and should not be used as brown out detection will be activated before power failure warning on such low voltages."]
88pub type THRESHOLD_R = crate::FieldReader<u8, THRESHOLD_A>;
89#[doc = "Power-fail comparator threshold setting. This setting applies both for normal voltage mode (supply connected to both VDD and VDDH) and high voltage mode (supply connected to VDDH only). Values 0-3 set threshold below 1.7 V and should not be used as brown out detection will be activated before power failure warning on such low voltages.\n\nValue on reset: 0"]
90#[derive(Clone, Copy, Debug, PartialEq)]
91#[repr(u8)]
92pub enum THRESHOLD_A {
93 #[doc = "4: Set threshold to 1.7 V"]
94 V17 = 4,
95 #[doc = "5: Set threshold to 1.8 V"]
96 V18 = 5,
97 #[doc = "6: Set threshold to 1.9 V"]
98 V19 = 6,
99 #[doc = "7: Set threshold to 2.0 V"]
100 V20 = 7,
101 #[doc = "8: Set threshold to 2.1 V"]
102 V21 = 8,
103 #[doc = "9: Set threshold to 2.2 V"]
104 V22 = 9,
105 #[doc = "10: Set threshold to 2.3 V"]
106 V23 = 10,
107 #[doc = "11: Set threshold to 2.4 V"]
108 V24 = 11,
109 #[doc = "12: Set threshold to 2.5 V"]
110 V25 = 12,
111 #[doc = "13: Set threshold to 2.6 V"]
112 V26 = 13,
113 #[doc = "14: Set threshold to 2.7 V"]
114 V27 = 14,
115 #[doc = "15: Set threshold to 2.8 V"]
116 V28 = 15,
117}
118impl From<THRESHOLD_A> for u8 {
119 #[inline(always)]
120 fn from(variant: THRESHOLD_A) -> Self {
121 variant as _
122 }
123}
124impl THRESHOLD_R {
125 #[doc = "Get enumerated values variant"]
126 #[inline(always)]
127 pub fn variant(&self) -> Option<THRESHOLD_A> {
128 match self.bits {
129 4 => Some(THRESHOLD_A::V17),
130 5 => Some(THRESHOLD_A::V18),
131 6 => Some(THRESHOLD_A::V19),
132 7 => Some(THRESHOLD_A::V20),
133 8 => Some(THRESHOLD_A::V21),
134 9 => Some(THRESHOLD_A::V22),
135 10 => Some(THRESHOLD_A::V23),
136 11 => Some(THRESHOLD_A::V24),
137 12 => Some(THRESHOLD_A::V25),
138 13 => Some(THRESHOLD_A::V26),
139 14 => Some(THRESHOLD_A::V27),
140 15 => Some(THRESHOLD_A::V28),
141 _ => None,
142 }
143 }
144 #[doc = "Checks if the value of the field is `V17`"]
145 #[inline(always)]
146 pub fn is_v17(&self) -> bool {
147 *self == THRESHOLD_A::V17
148 }
149 #[doc = "Checks if the value of the field is `V18`"]
150 #[inline(always)]
151 pub fn is_v18(&self) -> bool {
152 *self == THRESHOLD_A::V18
153 }
154 #[doc = "Checks if the value of the field is `V19`"]
155 #[inline(always)]
156 pub fn is_v19(&self) -> bool {
157 *self == THRESHOLD_A::V19
158 }
159 #[doc = "Checks if the value of the field is `V20`"]
160 #[inline(always)]
161 pub fn is_v20(&self) -> bool {
162 *self == THRESHOLD_A::V20
163 }
164 #[doc = "Checks if the value of the field is `V21`"]
165 #[inline(always)]
166 pub fn is_v21(&self) -> bool {
167 *self == THRESHOLD_A::V21
168 }
169 #[doc = "Checks if the value of the field is `V22`"]
170 #[inline(always)]
171 pub fn is_v22(&self) -> bool {
172 *self == THRESHOLD_A::V22
173 }
174 #[doc = "Checks if the value of the field is `V23`"]
175 #[inline(always)]
176 pub fn is_v23(&self) -> bool {
177 *self == THRESHOLD_A::V23
178 }
179 #[doc = "Checks if the value of the field is `V24`"]
180 #[inline(always)]
181 pub fn is_v24(&self) -> bool {
182 *self == THRESHOLD_A::V24
183 }
184 #[doc = "Checks if the value of the field is `V25`"]
185 #[inline(always)]
186 pub fn is_v25(&self) -> bool {
187 *self == THRESHOLD_A::V25
188 }
189 #[doc = "Checks if the value of the field is `V26`"]
190 #[inline(always)]
191 pub fn is_v26(&self) -> bool {
192 *self == THRESHOLD_A::V26
193 }
194 #[doc = "Checks if the value of the field is `V27`"]
195 #[inline(always)]
196 pub fn is_v27(&self) -> bool {
197 *self == THRESHOLD_A::V27
198 }
199 #[doc = "Checks if the value of the field is `V28`"]
200 #[inline(always)]
201 pub fn is_v28(&self) -> bool {
202 *self == THRESHOLD_A::V28
203 }
204}
205#[doc = "Field `THRESHOLD` writer - Power-fail comparator threshold setting. This setting applies both for normal voltage mode (supply connected to both VDD and VDDH) and high voltage mode (supply connected to VDDH only). Values 0-3 set threshold below 1.7 V and should not be used as brown out detection will be activated before power failure warning on such low voltages."]
206pub type THRESHOLD_W<'a, const O: u8> =
207 crate::FieldWriter<'a, u32, POFCON_SPEC, u8, THRESHOLD_A, 4, O>;
208impl<'a, const O: u8> THRESHOLD_W<'a, O> {
209 #[doc = "Set threshold to 1.7 V"]
210 #[inline(always)]
211 pub fn v17(self) -> &'a mut W {
212 self.variant(THRESHOLD_A::V17)
213 }
214 #[doc = "Set threshold to 1.8 V"]
215 #[inline(always)]
216 pub fn v18(self) -> &'a mut W {
217 self.variant(THRESHOLD_A::V18)
218 }
219 #[doc = "Set threshold to 1.9 V"]
220 #[inline(always)]
221 pub fn v19(self) -> &'a mut W {
222 self.variant(THRESHOLD_A::V19)
223 }
224 #[doc = "Set threshold to 2.0 V"]
225 #[inline(always)]
226 pub fn v20(self) -> &'a mut W {
227 self.variant(THRESHOLD_A::V20)
228 }
229 #[doc = "Set threshold to 2.1 V"]
230 #[inline(always)]
231 pub fn v21(self) -> &'a mut W {
232 self.variant(THRESHOLD_A::V21)
233 }
234 #[doc = "Set threshold to 2.2 V"]
235 #[inline(always)]
236 pub fn v22(self) -> &'a mut W {
237 self.variant(THRESHOLD_A::V22)
238 }
239 #[doc = "Set threshold to 2.3 V"]
240 #[inline(always)]
241 pub fn v23(self) -> &'a mut W {
242 self.variant(THRESHOLD_A::V23)
243 }
244 #[doc = "Set threshold to 2.4 V"]
245 #[inline(always)]
246 pub fn v24(self) -> &'a mut W {
247 self.variant(THRESHOLD_A::V24)
248 }
249 #[doc = "Set threshold to 2.5 V"]
250 #[inline(always)]
251 pub fn v25(self) -> &'a mut W {
252 self.variant(THRESHOLD_A::V25)
253 }
254 #[doc = "Set threshold to 2.6 V"]
255 #[inline(always)]
256 pub fn v26(self) -> &'a mut W {
257 self.variant(THRESHOLD_A::V26)
258 }
259 #[doc = "Set threshold to 2.7 V"]
260 #[inline(always)]
261 pub fn v27(self) -> &'a mut W {
262 self.variant(THRESHOLD_A::V27)
263 }
264 #[doc = "Set threshold to 2.8 V"]
265 #[inline(always)]
266 pub fn v28(self) -> &'a mut W {
267 self.variant(THRESHOLD_A::V28)
268 }
269}
270#[doc = "Field `THRESHOLDVDDH` reader - Power-fail comparator threshold setting for high voltage mode (supply connected to VDDH only). This setting does not apply for normal voltage mode (supply connected to both VDD and VDDH)."]
271pub type THRESHOLDVDDH_R = crate::FieldReader<u8, THRESHOLDVDDH_A>;
272#[doc = "Power-fail comparator threshold setting for high voltage mode (supply connected to VDDH only). This setting does not apply for normal voltage mode (supply connected to both VDD and VDDH).\n\nValue on reset: 0"]
273#[derive(Clone, Copy, Debug, PartialEq)]
274#[repr(u8)]
275pub enum THRESHOLDVDDH_A {
276 #[doc = "0: Set threshold to 2.7 V"]
277 V27 = 0,
278 #[doc = "1: Set threshold to 2.8 V"]
279 V28 = 1,
280 #[doc = "2: Set threshold to 2.9 V"]
281 V29 = 2,
282 #[doc = "3: Set threshold to 3.0 V"]
283 V30 = 3,
284 #[doc = "4: Set threshold to 3.1 V"]
285 V31 = 4,
286 #[doc = "5: Set threshold to 3.2 V"]
287 V32 = 5,
288 #[doc = "6: Set threshold to 3.3 V"]
289 V33 = 6,
290 #[doc = "7: Set threshold to 3.4 V"]
291 V34 = 7,
292 #[doc = "8: Set threshold to 3.5 V"]
293 V35 = 8,
294 #[doc = "9: Set threshold to 3.6 V"]
295 V36 = 9,
296 #[doc = "10: Set threshold to 3.7 V"]
297 V37 = 10,
298 #[doc = "11: Set threshold to 3.8 V"]
299 V38 = 11,
300 #[doc = "12: Set threshold to 3.9 V"]
301 V39 = 12,
302 #[doc = "13: Set threshold to 4.0 V"]
303 V40 = 13,
304 #[doc = "14: Set threshold to 4.1 V"]
305 V41 = 14,
306 #[doc = "15: Set threshold to 4.2 V"]
307 V42 = 15,
308}
309impl From<THRESHOLDVDDH_A> for u8 {
310 #[inline(always)]
311 fn from(variant: THRESHOLDVDDH_A) -> Self {
312 variant as _
313 }
314}
315impl THRESHOLDVDDH_R {
316 #[doc = "Get enumerated values variant"]
317 #[inline(always)]
318 pub fn variant(&self) -> THRESHOLDVDDH_A {
319 match self.bits {
320 0 => THRESHOLDVDDH_A::V27,
321 1 => THRESHOLDVDDH_A::V28,
322 2 => THRESHOLDVDDH_A::V29,
323 3 => THRESHOLDVDDH_A::V30,
324 4 => THRESHOLDVDDH_A::V31,
325 5 => THRESHOLDVDDH_A::V32,
326 6 => THRESHOLDVDDH_A::V33,
327 7 => THRESHOLDVDDH_A::V34,
328 8 => THRESHOLDVDDH_A::V35,
329 9 => THRESHOLDVDDH_A::V36,
330 10 => THRESHOLDVDDH_A::V37,
331 11 => THRESHOLDVDDH_A::V38,
332 12 => THRESHOLDVDDH_A::V39,
333 13 => THRESHOLDVDDH_A::V40,
334 14 => THRESHOLDVDDH_A::V41,
335 15 => THRESHOLDVDDH_A::V42,
336 _ => unreachable!(),
337 }
338 }
339 #[doc = "Checks if the value of the field is `V27`"]
340 #[inline(always)]
341 pub fn is_v27(&self) -> bool {
342 *self == THRESHOLDVDDH_A::V27
343 }
344 #[doc = "Checks if the value of the field is `V28`"]
345 #[inline(always)]
346 pub fn is_v28(&self) -> bool {
347 *self == THRESHOLDVDDH_A::V28
348 }
349 #[doc = "Checks if the value of the field is `V29`"]
350 #[inline(always)]
351 pub fn is_v29(&self) -> bool {
352 *self == THRESHOLDVDDH_A::V29
353 }
354 #[doc = "Checks if the value of the field is `V30`"]
355 #[inline(always)]
356 pub fn is_v30(&self) -> bool {
357 *self == THRESHOLDVDDH_A::V30
358 }
359 #[doc = "Checks if the value of the field is `V31`"]
360 #[inline(always)]
361 pub fn is_v31(&self) -> bool {
362 *self == THRESHOLDVDDH_A::V31
363 }
364 #[doc = "Checks if the value of the field is `V32`"]
365 #[inline(always)]
366 pub fn is_v32(&self) -> bool {
367 *self == THRESHOLDVDDH_A::V32
368 }
369 #[doc = "Checks if the value of the field is `V33`"]
370 #[inline(always)]
371 pub fn is_v33(&self) -> bool {
372 *self == THRESHOLDVDDH_A::V33
373 }
374 #[doc = "Checks if the value of the field is `V34`"]
375 #[inline(always)]
376 pub fn is_v34(&self) -> bool {
377 *self == THRESHOLDVDDH_A::V34
378 }
379 #[doc = "Checks if the value of the field is `V35`"]
380 #[inline(always)]
381 pub fn is_v35(&self) -> bool {
382 *self == THRESHOLDVDDH_A::V35
383 }
384 #[doc = "Checks if the value of the field is `V36`"]
385 #[inline(always)]
386 pub fn is_v36(&self) -> bool {
387 *self == THRESHOLDVDDH_A::V36
388 }
389 #[doc = "Checks if the value of the field is `V37`"]
390 #[inline(always)]
391 pub fn is_v37(&self) -> bool {
392 *self == THRESHOLDVDDH_A::V37
393 }
394 #[doc = "Checks if the value of the field is `V38`"]
395 #[inline(always)]
396 pub fn is_v38(&self) -> bool {
397 *self == THRESHOLDVDDH_A::V38
398 }
399 #[doc = "Checks if the value of the field is `V39`"]
400 #[inline(always)]
401 pub fn is_v39(&self) -> bool {
402 *self == THRESHOLDVDDH_A::V39
403 }
404 #[doc = "Checks if the value of the field is `V40`"]
405 #[inline(always)]
406 pub fn is_v40(&self) -> bool {
407 *self == THRESHOLDVDDH_A::V40
408 }
409 #[doc = "Checks if the value of the field is `V41`"]
410 #[inline(always)]
411 pub fn is_v41(&self) -> bool {
412 *self == THRESHOLDVDDH_A::V41
413 }
414 #[doc = "Checks if the value of the field is `V42`"]
415 #[inline(always)]
416 pub fn is_v42(&self) -> bool {
417 *self == THRESHOLDVDDH_A::V42
418 }
419}
420#[doc = "Field `THRESHOLDVDDH` writer - Power-fail comparator threshold setting for high voltage mode (supply connected to VDDH only). This setting does not apply for normal voltage mode (supply connected to both VDD and VDDH)."]
421pub type THRESHOLDVDDH_W<'a, const O: u8> =
422 crate::FieldWriterSafe<'a, u32, POFCON_SPEC, u8, THRESHOLDVDDH_A, 4, O>;
423impl<'a, const O: u8> THRESHOLDVDDH_W<'a, O> {
424 #[doc = "Set threshold to 2.7 V"]
425 #[inline(always)]
426 pub fn v27(self) -> &'a mut W {
427 self.variant(THRESHOLDVDDH_A::V27)
428 }
429 #[doc = "Set threshold to 2.8 V"]
430 #[inline(always)]
431 pub fn v28(self) -> &'a mut W {
432 self.variant(THRESHOLDVDDH_A::V28)
433 }
434 #[doc = "Set threshold to 2.9 V"]
435 #[inline(always)]
436 pub fn v29(self) -> &'a mut W {
437 self.variant(THRESHOLDVDDH_A::V29)
438 }
439 #[doc = "Set threshold to 3.0 V"]
440 #[inline(always)]
441 pub fn v30(self) -> &'a mut W {
442 self.variant(THRESHOLDVDDH_A::V30)
443 }
444 #[doc = "Set threshold to 3.1 V"]
445 #[inline(always)]
446 pub fn v31(self) -> &'a mut W {
447 self.variant(THRESHOLDVDDH_A::V31)
448 }
449 #[doc = "Set threshold to 3.2 V"]
450 #[inline(always)]
451 pub fn v32(self) -> &'a mut W {
452 self.variant(THRESHOLDVDDH_A::V32)
453 }
454 #[doc = "Set threshold to 3.3 V"]
455 #[inline(always)]
456 pub fn v33(self) -> &'a mut W {
457 self.variant(THRESHOLDVDDH_A::V33)
458 }
459 #[doc = "Set threshold to 3.4 V"]
460 #[inline(always)]
461 pub fn v34(self) -> &'a mut W {
462 self.variant(THRESHOLDVDDH_A::V34)
463 }
464 #[doc = "Set threshold to 3.5 V"]
465 #[inline(always)]
466 pub fn v35(self) -> &'a mut W {
467 self.variant(THRESHOLDVDDH_A::V35)
468 }
469 #[doc = "Set threshold to 3.6 V"]
470 #[inline(always)]
471 pub fn v36(self) -> &'a mut W {
472 self.variant(THRESHOLDVDDH_A::V36)
473 }
474 #[doc = "Set threshold to 3.7 V"]
475 #[inline(always)]
476 pub fn v37(self) -> &'a mut W {
477 self.variant(THRESHOLDVDDH_A::V37)
478 }
479 #[doc = "Set threshold to 3.8 V"]
480 #[inline(always)]
481 pub fn v38(self) -> &'a mut W {
482 self.variant(THRESHOLDVDDH_A::V38)
483 }
484 #[doc = "Set threshold to 3.9 V"]
485 #[inline(always)]
486 pub fn v39(self) -> &'a mut W {
487 self.variant(THRESHOLDVDDH_A::V39)
488 }
489 #[doc = "Set threshold to 4.0 V"]
490 #[inline(always)]
491 pub fn v40(self) -> &'a mut W {
492 self.variant(THRESHOLDVDDH_A::V40)
493 }
494 #[doc = "Set threshold to 4.1 V"]
495 #[inline(always)]
496 pub fn v41(self) -> &'a mut W {
497 self.variant(THRESHOLDVDDH_A::V41)
498 }
499 #[doc = "Set threshold to 4.2 V"]
500 #[inline(always)]
501 pub fn v42(self) -> &'a mut W {
502 self.variant(THRESHOLDVDDH_A::V42)
503 }
504}
505impl R {
506 #[doc = "Bit 0 - Enable or disable power failure warning"]
507 #[inline(always)]
508 pub fn pof(&self) -> POF_R {
509 POF_R::new((self.bits & 1) != 0)
510 }
511 #[doc = "Bits 1:4 - Power-fail comparator threshold setting. This setting applies both for normal voltage mode (supply connected to both VDD and VDDH) and high voltage mode (supply connected to VDDH only). Values 0-3 set threshold below 1.7 V and should not be used as brown out detection will be activated before power failure warning on such low voltages."]
512 #[inline(always)]
513 pub fn threshold(&self) -> THRESHOLD_R {
514 THRESHOLD_R::new(((self.bits >> 1) & 0x0f) as u8)
515 }
516 #[doc = "Bits 8:11 - Power-fail comparator threshold setting for high voltage mode (supply connected to VDDH only). This setting does not apply for normal voltage mode (supply connected to both VDD and VDDH)."]
517 #[inline(always)]
518 pub fn thresholdvddh(&self) -> THRESHOLDVDDH_R {
519 THRESHOLDVDDH_R::new(((self.bits >> 8) & 0x0f) as u8)
520 }
521}
522impl W {
523 #[doc = "Bit 0 - Enable or disable power failure warning"]
524 #[inline(always)]
525 pub fn pof(&mut self) -> POF_W<0> {
526 POF_W::new(self)
527 }
528 #[doc = "Bits 1:4 - Power-fail comparator threshold setting. This setting applies both for normal voltage mode (supply connected to both VDD and VDDH) and high voltage mode (supply connected to VDDH only). Values 0-3 set threshold below 1.7 V and should not be used as brown out detection will be activated before power failure warning on such low voltages."]
529 #[inline(always)]
530 pub fn threshold(&mut self) -> THRESHOLD_W<1> {
531 THRESHOLD_W::new(self)
532 }
533 #[doc = "Bits 8:11 - Power-fail comparator threshold setting for high voltage mode (supply connected to VDDH only). This setting does not apply for normal voltage mode (supply connected to both VDD and VDDH)."]
534 #[inline(always)]
535 pub fn thresholdvddh(&mut self) -> THRESHOLDVDDH_W<8> {
536 THRESHOLDVDDH_W::new(self)
537 }
538 #[doc = "Writes raw bits to the register."]
539 #[inline(always)]
540 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
541 self.0.bits(bits);
542 self
543 }
544}
545#[doc = "Power-fail comparator configuration\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 [pofcon](index.html) module"]
546pub struct POFCON_SPEC;
547impl crate::RegisterSpec for POFCON_SPEC {
548 type Ux = u32;
549}
550#[doc = "`read()` method returns [pofcon::R](R) reader structure"]
551impl crate::Readable for POFCON_SPEC {
552 type Reader = R;
553}
554#[doc = "`write(|w| ..)` method takes [pofcon::W](W) writer structure"]
555impl crate::Writable for POFCON_SPEC {
556 type Writer = W;
557}
558#[doc = "`reset()` method sets POFCON to value 0"]
559impl crate::Resettable for POFCON_SPEC {
560 #[inline(always)]
561 fn reset_value() -> Self::Ux {
562 0
563 }
564}