1#[doc = "Register `SUPC_SR` reader"]
2pub struct R(crate::R<SUPC_SR_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<SUPC_SR_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<SUPC_SR_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<SUPC_SR_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "WKUP Wake-up Status (cleared on read)\n\nValue on reset: 0"]
17#[derive(Clone, Copy, Debug, PartialEq)]
18pub enum WKUPS_A {
19 #[doc = "0: No wake-up due to the assertion of the WKUP pins has occurred since the last read of SUPC_SR."]
20 NO = 0,
21 #[doc = "1: At least one wake-up due to the assertion of the WKUP pins has occurred since the last read of SUPC_SR."]
22 PRESENT = 1,
23}
24impl From<WKUPS_A> for bool {
25 #[inline(always)]
26 fn from(variant: WKUPS_A) -> Self {
27 variant as u8 != 0
28 }
29}
30#[doc = "Field `WKUPS` reader - WKUP Wake-up Status (cleared on read)"]
31pub struct WKUPS_R(crate::FieldReader<bool, WKUPS_A>);
32impl WKUPS_R {
33 #[inline(always)]
34 pub(crate) fn new(bits: bool) -> Self {
35 WKUPS_R(crate::FieldReader::new(bits))
36 }
37 #[doc = r"Get enumerated values variant"]
38 #[inline(always)]
39 pub fn variant(&self) -> WKUPS_A {
40 match self.bits {
41 false => WKUPS_A::NO,
42 true => WKUPS_A::PRESENT,
43 }
44 }
45 #[doc = "Checks if the value of the field is `NO`"]
46 #[inline(always)]
47 pub fn is_no(&self) -> bool {
48 **self == WKUPS_A::NO
49 }
50 #[doc = "Checks if the value of the field is `PRESENT`"]
51 #[inline(always)]
52 pub fn is_present(&self) -> bool {
53 **self == WKUPS_A::PRESENT
54 }
55}
56impl core::ops::Deref for WKUPS_R {
57 type Target = crate::FieldReader<bool, WKUPS_A>;
58 #[inline(always)]
59 fn deref(&self) -> &Self::Target {
60 &self.0
61 }
62}
63#[doc = "Supply Monitor Detection Wake-up Status (cleared on read)\n\nValue on reset: 0"]
64#[derive(Clone, Copy, Debug, PartialEq)]
65pub enum SMWS_A {
66 #[doc = "0: No wake-up due to a supply monitor detection has occurred since the last read of SUPC_SR."]
67 NO = 0,
68 #[doc = "1: At least one wake-up due to a supply monitor detection has occurred since the last read of SUPC_SR."]
69 PRESENT = 1,
70}
71impl From<SMWS_A> for bool {
72 #[inline(always)]
73 fn from(variant: SMWS_A) -> Self {
74 variant as u8 != 0
75 }
76}
77#[doc = "Field `SMWS` reader - Supply Monitor Detection Wake-up Status (cleared on read)"]
78pub struct SMWS_R(crate::FieldReader<bool, SMWS_A>);
79impl SMWS_R {
80 #[inline(always)]
81 pub(crate) fn new(bits: bool) -> Self {
82 SMWS_R(crate::FieldReader::new(bits))
83 }
84 #[doc = r"Get enumerated values variant"]
85 #[inline(always)]
86 pub fn variant(&self) -> SMWS_A {
87 match self.bits {
88 false => SMWS_A::NO,
89 true => SMWS_A::PRESENT,
90 }
91 }
92 #[doc = "Checks if the value of the field is `NO`"]
93 #[inline(always)]
94 pub fn is_no(&self) -> bool {
95 **self == SMWS_A::NO
96 }
97 #[doc = "Checks if the value of the field is `PRESENT`"]
98 #[inline(always)]
99 pub fn is_present(&self) -> bool {
100 **self == SMWS_A::PRESENT
101 }
102}
103impl core::ops::Deref for SMWS_R {
104 type Target = crate::FieldReader<bool, SMWS_A>;
105 #[inline(always)]
106 fn deref(&self) -> &Self::Target {
107 &self.0
108 }
109}
110#[doc = "Brownout Detector Reset Status (cleared on read)\n\nValue on reset: 0"]
111#[derive(Clone, Copy, Debug, PartialEq)]
112pub enum BODRSTS_A {
113 #[doc = "0: No core brownout rising edge event has been detected since the last read of the SUPC_SR."]
114 NO = 0,
115 #[doc = "1: At least one brownout output rising edge event has been detected since the last read of the SUPC_SR."]
116 PRESENT = 1,
117}
118impl From<BODRSTS_A> for bool {
119 #[inline(always)]
120 fn from(variant: BODRSTS_A) -> Self {
121 variant as u8 != 0
122 }
123}
124#[doc = "Field `BODRSTS` reader - Brownout Detector Reset Status (cleared on read)"]
125pub struct BODRSTS_R(crate::FieldReader<bool, BODRSTS_A>);
126impl BODRSTS_R {
127 #[inline(always)]
128 pub(crate) fn new(bits: bool) -> Self {
129 BODRSTS_R(crate::FieldReader::new(bits))
130 }
131 #[doc = r"Get enumerated values variant"]
132 #[inline(always)]
133 pub fn variant(&self) -> BODRSTS_A {
134 match self.bits {
135 false => BODRSTS_A::NO,
136 true => BODRSTS_A::PRESENT,
137 }
138 }
139 #[doc = "Checks if the value of the field is `NO`"]
140 #[inline(always)]
141 pub fn is_no(&self) -> bool {
142 **self == BODRSTS_A::NO
143 }
144 #[doc = "Checks if the value of the field is `PRESENT`"]
145 #[inline(always)]
146 pub fn is_present(&self) -> bool {
147 **self == BODRSTS_A::PRESENT
148 }
149}
150impl core::ops::Deref for BODRSTS_R {
151 type Target = crate::FieldReader<bool, BODRSTS_A>;
152 #[inline(always)]
153 fn deref(&self) -> &Self::Target {
154 &self.0
155 }
156}
157#[doc = "Supply Monitor Reset Status (cleared on read)\n\nValue on reset: 0"]
158#[derive(Clone, Copy, Debug, PartialEq)]
159pub enum SMRSTS_A {
160 #[doc = "0: No supply monitor detection has generated a core reset since the last read of the SUPC_SR."]
161 NO = 0,
162 #[doc = "1: At least one supply monitor detection has generated a core reset since the last read of the SUPC_SR."]
163 PRESENT = 1,
164}
165impl From<SMRSTS_A> for bool {
166 #[inline(always)]
167 fn from(variant: SMRSTS_A) -> Self {
168 variant as u8 != 0
169 }
170}
171#[doc = "Field `SMRSTS` reader - Supply Monitor Reset Status (cleared on read)"]
172pub struct SMRSTS_R(crate::FieldReader<bool, SMRSTS_A>);
173impl SMRSTS_R {
174 #[inline(always)]
175 pub(crate) fn new(bits: bool) -> Self {
176 SMRSTS_R(crate::FieldReader::new(bits))
177 }
178 #[doc = r"Get enumerated values variant"]
179 #[inline(always)]
180 pub fn variant(&self) -> SMRSTS_A {
181 match self.bits {
182 false => SMRSTS_A::NO,
183 true => SMRSTS_A::PRESENT,
184 }
185 }
186 #[doc = "Checks if the value of the field is `NO`"]
187 #[inline(always)]
188 pub fn is_no(&self) -> bool {
189 **self == SMRSTS_A::NO
190 }
191 #[doc = "Checks if the value of the field is `PRESENT`"]
192 #[inline(always)]
193 pub fn is_present(&self) -> bool {
194 **self == SMRSTS_A::PRESENT
195 }
196}
197impl core::ops::Deref for SMRSTS_R {
198 type Target = crate::FieldReader<bool, SMRSTS_A>;
199 #[inline(always)]
200 fn deref(&self) -> &Self::Target {
201 &self.0
202 }
203}
204#[doc = "Supply Monitor Status (cleared on read)\n\nValue on reset: 0"]
205#[derive(Clone, Copy, Debug, PartialEq)]
206pub enum SMS_A {
207 #[doc = "0: No supply monitor detection since the last read of SUPC_SR."]
208 NO = 0,
209 #[doc = "1: At least one supply monitor detection since the last read of SUPC_SR."]
210 PRESENT = 1,
211}
212impl From<SMS_A> for bool {
213 #[inline(always)]
214 fn from(variant: SMS_A) -> Self {
215 variant as u8 != 0
216 }
217}
218#[doc = "Field `SMS` reader - Supply Monitor Status (cleared on read)"]
219pub struct SMS_R(crate::FieldReader<bool, SMS_A>);
220impl SMS_R {
221 #[inline(always)]
222 pub(crate) fn new(bits: bool) -> Self {
223 SMS_R(crate::FieldReader::new(bits))
224 }
225 #[doc = r"Get enumerated values variant"]
226 #[inline(always)]
227 pub fn variant(&self) -> SMS_A {
228 match self.bits {
229 false => SMS_A::NO,
230 true => SMS_A::PRESENT,
231 }
232 }
233 #[doc = "Checks if the value of the field is `NO`"]
234 #[inline(always)]
235 pub fn is_no(&self) -> bool {
236 **self == SMS_A::NO
237 }
238 #[doc = "Checks if the value of the field is `PRESENT`"]
239 #[inline(always)]
240 pub fn is_present(&self) -> bool {
241 **self == SMS_A::PRESENT
242 }
243}
244impl core::ops::Deref for SMS_R {
245 type Target = crate::FieldReader<bool, SMS_A>;
246 #[inline(always)]
247 fn deref(&self) -> &Self::Target {
248 &self.0
249 }
250}
251#[doc = "Supply Monitor Output Status\n\nValue on reset: 0"]
252#[derive(Clone, Copy, Debug, PartialEq)]
253pub enum SMOS_A {
254 #[doc = "0: The supply monitor detected VDDIO higher than its threshold at its last measurement."]
255 HIGH = 0,
256 #[doc = "1: The supply monitor detected VDDIO lower than its threshold at its last measurement."]
257 LOW = 1,
258}
259impl From<SMOS_A> for bool {
260 #[inline(always)]
261 fn from(variant: SMOS_A) -> Self {
262 variant as u8 != 0
263 }
264}
265#[doc = "Field `SMOS` reader - Supply Monitor Output Status"]
266pub struct SMOS_R(crate::FieldReader<bool, SMOS_A>);
267impl SMOS_R {
268 #[inline(always)]
269 pub(crate) fn new(bits: bool) -> Self {
270 SMOS_R(crate::FieldReader::new(bits))
271 }
272 #[doc = r"Get enumerated values variant"]
273 #[inline(always)]
274 pub fn variant(&self) -> SMOS_A {
275 match self.bits {
276 false => SMOS_A::HIGH,
277 true => SMOS_A::LOW,
278 }
279 }
280 #[doc = "Checks if the value of the field is `HIGH`"]
281 #[inline(always)]
282 pub fn is_high(&self) -> bool {
283 **self == SMOS_A::HIGH
284 }
285 #[doc = "Checks if the value of the field is `LOW`"]
286 #[inline(always)]
287 pub fn is_low(&self) -> bool {
288 **self == SMOS_A::LOW
289 }
290}
291impl core::ops::Deref for SMOS_R {
292 type Target = crate::FieldReader<bool, SMOS_A>;
293 #[inline(always)]
294 fn deref(&self) -> &Self::Target {
295 &self.0
296 }
297}
298#[doc = "32-kHz Oscillator Selection Status\n\nValue on reset: 0"]
299#[derive(Clone, Copy, Debug, PartialEq)]
300pub enum OSCSEL_A {
301 #[doc = "0: The slow clock, SLCK, is generated by the embedded 32 kHz RC oscillator."]
302 RC = 0,
303 #[doc = "1: The slow clock, SLCK, is generated by the 32 kHz crystal oscillator."]
304 CRYST = 1,
305}
306impl From<OSCSEL_A> for bool {
307 #[inline(always)]
308 fn from(variant: OSCSEL_A) -> Self {
309 variant as u8 != 0
310 }
311}
312#[doc = "Field `OSCSEL` reader - 32-kHz Oscillator Selection Status"]
313pub struct OSCSEL_R(crate::FieldReader<bool, OSCSEL_A>);
314impl OSCSEL_R {
315 #[inline(always)]
316 pub(crate) fn new(bits: bool) -> Self {
317 OSCSEL_R(crate::FieldReader::new(bits))
318 }
319 #[doc = r"Get enumerated values variant"]
320 #[inline(always)]
321 pub fn variant(&self) -> OSCSEL_A {
322 match self.bits {
323 false => OSCSEL_A::RC,
324 true => OSCSEL_A::CRYST,
325 }
326 }
327 #[doc = "Checks if the value of the field is `RC`"]
328 #[inline(always)]
329 pub fn is_rc(&self) -> bool {
330 **self == OSCSEL_A::RC
331 }
332 #[doc = "Checks if the value of the field is `CRYST`"]
333 #[inline(always)]
334 pub fn is_cryst(&self) -> bool {
335 **self == OSCSEL_A::CRYST
336 }
337}
338impl core::ops::Deref for OSCSEL_R {
339 type Target = crate::FieldReader<bool, OSCSEL_A>;
340 #[inline(always)]
341 fn deref(&self) -> &Self::Target {
342 &self.0
343 }
344}
345#[doc = "Low-power Debouncer Wake-up Status on WKUP0 (cleared on read)\n\nValue on reset: 0"]
346#[derive(Clone, Copy, Debug, PartialEq)]
347pub enum LPDBCS0_A {
348 #[doc = "0: No wake-up due to the assertion of the WKUP0 pin has occurred since the last read of SUPC_SR."]
349 NO = 0,
350 #[doc = "1: At least one wake-up due to the assertion of the WKUP0 pin has occurred since the last read of SUPC_SR."]
351 PRESENT = 1,
352}
353impl From<LPDBCS0_A> for bool {
354 #[inline(always)]
355 fn from(variant: LPDBCS0_A) -> Self {
356 variant as u8 != 0
357 }
358}
359#[doc = "Field `LPDBCS0` reader - Low-power Debouncer Wake-up Status on WKUP0 (cleared on read)"]
360pub struct LPDBCS0_R(crate::FieldReader<bool, LPDBCS0_A>);
361impl LPDBCS0_R {
362 #[inline(always)]
363 pub(crate) fn new(bits: bool) -> Self {
364 LPDBCS0_R(crate::FieldReader::new(bits))
365 }
366 #[doc = r"Get enumerated values variant"]
367 #[inline(always)]
368 pub fn variant(&self) -> LPDBCS0_A {
369 match self.bits {
370 false => LPDBCS0_A::NO,
371 true => LPDBCS0_A::PRESENT,
372 }
373 }
374 #[doc = "Checks if the value of the field is `NO`"]
375 #[inline(always)]
376 pub fn is_no(&self) -> bool {
377 **self == LPDBCS0_A::NO
378 }
379 #[doc = "Checks if the value of the field is `PRESENT`"]
380 #[inline(always)]
381 pub fn is_present(&self) -> bool {
382 **self == LPDBCS0_A::PRESENT
383 }
384}
385impl core::ops::Deref for LPDBCS0_R {
386 type Target = crate::FieldReader<bool, LPDBCS0_A>;
387 #[inline(always)]
388 fn deref(&self) -> &Self::Target {
389 &self.0
390 }
391}
392#[doc = "Low-power Debouncer Wake-up Status on WKUP1 (cleared on read)\n\nValue on reset: 0"]
393#[derive(Clone, Copy, Debug, PartialEq)]
394pub enum LPDBCS1_A {
395 #[doc = "0: No wake-up due to the assertion of the WKUP1 pin has occurred since the last read of SUPC_SR."]
396 NO = 0,
397 #[doc = "1: At least one wake-up due to the assertion of the WKUP1 pin has occurred since the last read of SUPC_SR."]
398 PRESENT = 1,
399}
400impl From<LPDBCS1_A> for bool {
401 #[inline(always)]
402 fn from(variant: LPDBCS1_A) -> Self {
403 variant as u8 != 0
404 }
405}
406#[doc = "Field `LPDBCS1` reader - Low-power Debouncer Wake-up Status on WKUP1 (cleared on read)"]
407pub struct LPDBCS1_R(crate::FieldReader<bool, LPDBCS1_A>);
408impl LPDBCS1_R {
409 #[inline(always)]
410 pub(crate) fn new(bits: bool) -> Self {
411 LPDBCS1_R(crate::FieldReader::new(bits))
412 }
413 #[doc = r"Get enumerated values variant"]
414 #[inline(always)]
415 pub fn variant(&self) -> LPDBCS1_A {
416 match self.bits {
417 false => LPDBCS1_A::NO,
418 true => LPDBCS1_A::PRESENT,
419 }
420 }
421 #[doc = "Checks if the value of the field is `NO`"]
422 #[inline(always)]
423 pub fn is_no(&self) -> bool {
424 **self == LPDBCS1_A::NO
425 }
426 #[doc = "Checks if the value of the field is `PRESENT`"]
427 #[inline(always)]
428 pub fn is_present(&self) -> bool {
429 **self == LPDBCS1_A::PRESENT
430 }
431}
432impl core::ops::Deref for LPDBCS1_R {
433 type Target = crate::FieldReader<bool, LPDBCS1_A>;
434 #[inline(always)]
435 fn deref(&self) -> &Self::Target {
436 &self.0
437 }
438}
439#[doc = "WKUPx Input Status (cleared on read)\n\nValue on reset: 0"]
440#[derive(Clone, Copy, Debug, PartialEq)]
441pub enum WKUPIS0_A {
442 #[doc = "0: The corresponding wake-up input is disabled, or was inactive at the time the debouncer triggered a wake-up event."]
443 DIS = 0,
444 #[doc = "1: The corresponding wake-up input was active at the time the debouncer triggered a wake-up event since the last read of SUPC_SR."]
445 EN = 1,
446}
447impl From<WKUPIS0_A> for bool {
448 #[inline(always)]
449 fn from(variant: WKUPIS0_A) -> Self {
450 variant as u8 != 0
451 }
452}
453#[doc = "Field `WKUPIS0` reader - WKUPx Input Status (cleared on read)"]
454pub struct WKUPIS0_R(crate::FieldReader<bool, WKUPIS0_A>);
455impl WKUPIS0_R {
456 #[inline(always)]
457 pub(crate) fn new(bits: bool) -> Self {
458 WKUPIS0_R(crate::FieldReader::new(bits))
459 }
460 #[doc = r"Get enumerated values variant"]
461 #[inline(always)]
462 pub fn variant(&self) -> WKUPIS0_A {
463 match self.bits {
464 false => WKUPIS0_A::DIS,
465 true => WKUPIS0_A::EN,
466 }
467 }
468 #[doc = "Checks if the value of the field is `DIS`"]
469 #[inline(always)]
470 pub fn is_dis(&self) -> bool {
471 **self == WKUPIS0_A::DIS
472 }
473 #[doc = "Checks if the value of the field is `EN`"]
474 #[inline(always)]
475 pub fn is_en(&self) -> bool {
476 **self == WKUPIS0_A::EN
477 }
478}
479impl core::ops::Deref for WKUPIS0_R {
480 type Target = crate::FieldReader<bool, WKUPIS0_A>;
481 #[inline(always)]
482 fn deref(&self) -> &Self::Target {
483 &self.0
484 }
485}
486#[doc = "WKUPx Input Status (cleared on read)\n\nValue on reset: 0"]
487#[derive(Clone, Copy, Debug, PartialEq)]
488pub enum WKUPIS1_A {
489 #[doc = "0: The corresponding wake-up input is disabled, or was inactive at the time the debouncer triggered a wake-up event."]
490 DIS = 0,
491 #[doc = "1: The corresponding wake-up input was active at the time the debouncer triggered a wake-up event since the last read of SUPC_SR."]
492 EN = 1,
493}
494impl From<WKUPIS1_A> for bool {
495 #[inline(always)]
496 fn from(variant: WKUPIS1_A) -> Self {
497 variant as u8 != 0
498 }
499}
500#[doc = "Field `WKUPIS1` reader - WKUPx Input Status (cleared on read)"]
501pub struct WKUPIS1_R(crate::FieldReader<bool, WKUPIS1_A>);
502impl WKUPIS1_R {
503 #[inline(always)]
504 pub(crate) fn new(bits: bool) -> Self {
505 WKUPIS1_R(crate::FieldReader::new(bits))
506 }
507 #[doc = r"Get enumerated values variant"]
508 #[inline(always)]
509 pub fn variant(&self) -> WKUPIS1_A {
510 match self.bits {
511 false => WKUPIS1_A::DIS,
512 true => WKUPIS1_A::EN,
513 }
514 }
515 #[doc = "Checks if the value of the field is `DIS`"]
516 #[inline(always)]
517 pub fn is_dis(&self) -> bool {
518 **self == WKUPIS1_A::DIS
519 }
520 #[doc = "Checks if the value of the field is `EN`"]
521 #[inline(always)]
522 pub fn is_en(&self) -> bool {
523 **self == WKUPIS1_A::EN
524 }
525}
526impl core::ops::Deref for WKUPIS1_R {
527 type Target = crate::FieldReader<bool, WKUPIS1_A>;
528 #[inline(always)]
529 fn deref(&self) -> &Self::Target {
530 &self.0
531 }
532}
533#[doc = "WKUPx Input Status (cleared on read)\n\nValue on reset: 0"]
534#[derive(Clone, Copy, Debug, PartialEq)]
535pub enum WKUPIS2_A {
536 #[doc = "0: The corresponding wake-up input is disabled, or was inactive at the time the debouncer triggered a wake-up event."]
537 DIS = 0,
538 #[doc = "1: The corresponding wake-up input was active at the time the debouncer triggered a wake-up event since the last read of SUPC_SR."]
539 EN = 1,
540}
541impl From<WKUPIS2_A> for bool {
542 #[inline(always)]
543 fn from(variant: WKUPIS2_A) -> Self {
544 variant as u8 != 0
545 }
546}
547#[doc = "Field `WKUPIS2` reader - WKUPx Input Status (cleared on read)"]
548pub struct WKUPIS2_R(crate::FieldReader<bool, WKUPIS2_A>);
549impl WKUPIS2_R {
550 #[inline(always)]
551 pub(crate) fn new(bits: bool) -> Self {
552 WKUPIS2_R(crate::FieldReader::new(bits))
553 }
554 #[doc = r"Get enumerated values variant"]
555 #[inline(always)]
556 pub fn variant(&self) -> WKUPIS2_A {
557 match self.bits {
558 false => WKUPIS2_A::DIS,
559 true => WKUPIS2_A::EN,
560 }
561 }
562 #[doc = "Checks if the value of the field is `DIS`"]
563 #[inline(always)]
564 pub fn is_dis(&self) -> bool {
565 **self == WKUPIS2_A::DIS
566 }
567 #[doc = "Checks if the value of the field is `EN`"]
568 #[inline(always)]
569 pub fn is_en(&self) -> bool {
570 **self == WKUPIS2_A::EN
571 }
572}
573impl core::ops::Deref for WKUPIS2_R {
574 type Target = crate::FieldReader<bool, WKUPIS2_A>;
575 #[inline(always)]
576 fn deref(&self) -> &Self::Target {
577 &self.0
578 }
579}
580#[doc = "WKUPx Input Status (cleared on read)\n\nValue on reset: 0"]
581#[derive(Clone, Copy, Debug, PartialEq)]
582pub enum WKUPIS3_A {
583 #[doc = "0: The corresponding wake-up input is disabled, or was inactive at the time the debouncer triggered a wake-up event."]
584 DIS = 0,
585 #[doc = "1: The corresponding wake-up input was active at the time the debouncer triggered a wake-up event since the last read of SUPC_SR."]
586 EN = 1,
587}
588impl From<WKUPIS3_A> for bool {
589 #[inline(always)]
590 fn from(variant: WKUPIS3_A) -> Self {
591 variant as u8 != 0
592 }
593}
594#[doc = "Field `WKUPIS3` reader - WKUPx Input Status (cleared on read)"]
595pub struct WKUPIS3_R(crate::FieldReader<bool, WKUPIS3_A>);
596impl WKUPIS3_R {
597 #[inline(always)]
598 pub(crate) fn new(bits: bool) -> Self {
599 WKUPIS3_R(crate::FieldReader::new(bits))
600 }
601 #[doc = r"Get enumerated values variant"]
602 #[inline(always)]
603 pub fn variant(&self) -> WKUPIS3_A {
604 match self.bits {
605 false => WKUPIS3_A::DIS,
606 true => WKUPIS3_A::EN,
607 }
608 }
609 #[doc = "Checks if the value of the field is `DIS`"]
610 #[inline(always)]
611 pub fn is_dis(&self) -> bool {
612 **self == WKUPIS3_A::DIS
613 }
614 #[doc = "Checks if the value of the field is `EN`"]
615 #[inline(always)]
616 pub fn is_en(&self) -> bool {
617 **self == WKUPIS3_A::EN
618 }
619}
620impl core::ops::Deref for WKUPIS3_R {
621 type Target = crate::FieldReader<bool, WKUPIS3_A>;
622 #[inline(always)]
623 fn deref(&self) -> &Self::Target {
624 &self.0
625 }
626}
627#[doc = "WKUPx Input Status (cleared on read)\n\nValue on reset: 0"]
628#[derive(Clone, Copy, Debug, PartialEq)]
629pub enum WKUPIS4_A {
630 #[doc = "0: The corresponding wake-up input is disabled, or was inactive at the time the debouncer triggered a wake-up event."]
631 DIS = 0,
632 #[doc = "1: The corresponding wake-up input was active at the time the debouncer triggered a wake-up event since the last read of SUPC_SR."]
633 EN = 1,
634}
635impl From<WKUPIS4_A> for bool {
636 #[inline(always)]
637 fn from(variant: WKUPIS4_A) -> Self {
638 variant as u8 != 0
639 }
640}
641#[doc = "Field `WKUPIS4` reader - WKUPx Input Status (cleared on read)"]
642pub struct WKUPIS4_R(crate::FieldReader<bool, WKUPIS4_A>);
643impl WKUPIS4_R {
644 #[inline(always)]
645 pub(crate) fn new(bits: bool) -> Self {
646 WKUPIS4_R(crate::FieldReader::new(bits))
647 }
648 #[doc = r"Get enumerated values variant"]
649 #[inline(always)]
650 pub fn variant(&self) -> WKUPIS4_A {
651 match self.bits {
652 false => WKUPIS4_A::DIS,
653 true => WKUPIS4_A::EN,
654 }
655 }
656 #[doc = "Checks if the value of the field is `DIS`"]
657 #[inline(always)]
658 pub fn is_dis(&self) -> bool {
659 **self == WKUPIS4_A::DIS
660 }
661 #[doc = "Checks if the value of the field is `EN`"]
662 #[inline(always)]
663 pub fn is_en(&self) -> bool {
664 **self == WKUPIS4_A::EN
665 }
666}
667impl core::ops::Deref for WKUPIS4_R {
668 type Target = crate::FieldReader<bool, WKUPIS4_A>;
669 #[inline(always)]
670 fn deref(&self) -> &Self::Target {
671 &self.0
672 }
673}
674#[doc = "WKUPx Input Status (cleared on read)\n\nValue on reset: 0"]
675#[derive(Clone, Copy, Debug, PartialEq)]
676pub enum WKUPIS5_A {
677 #[doc = "0: The corresponding wake-up input is disabled, or was inactive at the time the debouncer triggered a wake-up event."]
678 DIS = 0,
679 #[doc = "1: The corresponding wake-up input was active at the time the debouncer triggered a wake-up event since the last read of SUPC_SR."]
680 EN = 1,
681}
682impl From<WKUPIS5_A> for bool {
683 #[inline(always)]
684 fn from(variant: WKUPIS5_A) -> Self {
685 variant as u8 != 0
686 }
687}
688#[doc = "Field `WKUPIS5` reader - WKUPx Input Status (cleared on read)"]
689pub struct WKUPIS5_R(crate::FieldReader<bool, WKUPIS5_A>);
690impl WKUPIS5_R {
691 #[inline(always)]
692 pub(crate) fn new(bits: bool) -> Self {
693 WKUPIS5_R(crate::FieldReader::new(bits))
694 }
695 #[doc = r"Get enumerated values variant"]
696 #[inline(always)]
697 pub fn variant(&self) -> WKUPIS5_A {
698 match self.bits {
699 false => WKUPIS5_A::DIS,
700 true => WKUPIS5_A::EN,
701 }
702 }
703 #[doc = "Checks if the value of the field is `DIS`"]
704 #[inline(always)]
705 pub fn is_dis(&self) -> bool {
706 **self == WKUPIS5_A::DIS
707 }
708 #[doc = "Checks if the value of the field is `EN`"]
709 #[inline(always)]
710 pub fn is_en(&self) -> bool {
711 **self == WKUPIS5_A::EN
712 }
713}
714impl core::ops::Deref for WKUPIS5_R {
715 type Target = crate::FieldReader<bool, WKUPIS5_A>;
716 #[inline(always)]
717 fn deref(&self) -> &Self::Target {
718 &self.0
719 }
720}
721#[doc = "WKUPx Input Status (cleared on read)\n\nValue on reset: 0"]
722#[derive(Clone, Copy, Debug, PartialEq)]
723pub enum WKUPIS6_A {
724 #[doc = "0: The corresponding wake-up input is disabled, or was inactive at the time the debouncer triggered a wake-up event."]
725 DIS = 0,
726 #[doc = "1: The corresponding wake-up input was active at the time the debouncer triggered a wake-up event since the last read of SUPC_SR."]
727 EN = 1,
728}
729impl From<WKUPIS6_A> for bool {
730 #[inline(always)]
731 fn from(variant: WKUPIS6_A) -> Self {
732 variant as u8 != 0
733 }
734}
735#[doc = "Field `WKUPIS6` reader - WKUPx Input Status (cleared on read)"]
736pub struct WKUPIS6_R(crate::FieldReader<bool, WKUPIS6_A>);
737impl WKUPIS6_R {
738 #[inline(always)]
739 pub(crate) fn new(bits: bool) -> Self {
740 WKUPIS6_R(crate::FieldReader::new(bits))
741 }
742 #[doc = r"Get enumerated values variant"]
743 #[inline(always)]
744 pub fn variant(&self) -> WKUPIS6_A {
745 match self.bits {
746 false => WKUPIS6_A::DIS,
747 true => WKUPIS6_A::EN,
748 }
749 }
750 #[doc = "Checks if the value of the field is `DIS`"]
751 #[inline(always)]
752 pub fn is_dis(&self) -> bool {
753 **self == WKUPIS6_A::DIS
754 }
755 #[doc = "Checks if the value of the field is `EN`"]
756 #[inline(always)]
757 pub fn is_en(&self) -> bool {
758 **self == WKUPIS6_A::EN
759 }
760}
761impl core::ops::Deref for WKUPIS6_R {
762 type Target = crate::FieldReader<bool, WKUPIS6_A>;
763 #[inline(always)]
764 fn deref(&self) -> &Self::Target {
765 &self.0
766 }
767}
768#[doc = "WKUPx Input Status (cleared on read)\n\nValue on reset: 0"]
769#[derive(Clone, Copy, Debug, PartialEq)]
770pub enum WKUPIS7_A {
771 #[doc = "0: The corresponding wake-up input is disabled, or was inactive at the time the debouncer triggered a wake-up event."]
772 DIS = 0,
773 #[doc = "1: The corresponding wake-up input was active at the time the debouncer triggered a wake-up event since the last read of SUPC_SR."]
774 EN = 1,
775}
776impl From<WKUPIS7_A> for bool {
777 #[inline(always)]
778 fn from(variant: WKUPIS7_A) -> Self {
779 variant as u8 != 0
780 }
781}
782#[doc = "Field `WKUPIS7` reader - WKUPx Input Status (cleared on read)"]
783pub struct WKUPIS7_R(crate::FieldReader<bool, WKUPIS7_A>);
784impl WKUPIS7_R {
785 #[inline(always)]
786 pub(crate) fn new(bits: bool) -> Self {
787 WKUPIS7_R(crate::FieldReader::new(bits))
788 }
789 #[doc = r"Get enumerated values variant"]
790 #[inline(always)]
791 pub fn variant(&self) -> WKUPIS7_A {
792 match self.bits {
793 false => WKUPIS7_A::DIS,
794 true => WKUPIS7_A::EN,
795 }
796 }
797 #[doc = "Checks if the value of the field is `DIS`"]
798 #[inline(always)]
799 pub fn is_dis(&self) -> bool {
800 **self == WKUPIS7_A::DIS
801 }
802 #[doc = "Checks if the value of the field is `EN`"]
803 #[inline(always)]
804 pub fn is_en(&self) -> bool {
805 **self == WKUPIS7_A::EN
806 }
807}
808impl core::ops::Deref for WKUPIS7_R {
809 type Target = crate::FieldReader<bool, WKUPIS7_A>;
810 #[inline(always)]
811 fn deref(&self) -> &Self::Target {
812 &self.0
813 }
814}
815#[doc = "WKUPx Input Status (cleared on read)\n\nValue on reset: 0"]
816#[derive(Clone, Copy, Debug, PartialEq)]
817pub enum WKUPIS8_A {
818 #[doc = "0: The corresponding wake-up input is disabled, or was inactive at the time the debouncer triggered a wake-up event."]
819 DIS = 0,
820 #[doc = "1: The corresponding wake-up input was active at the time the debouncer triggered a wake-up event since the last read of SUPC_SR."]
821 EN = 1,
822}
823impl From<WKUPIS8_A> for bool {
824 #[inline(always)]
825 fn from(variant: WKUPIS8_A) -> Self {
826 variant as u8 != 0
827 }
828}
829#[doc = "Field `WKUPIS8` reader - WKUPx Input Status (cleared on read)"]
830pub struct WKUPIS8_R(crate::FieldReader<bool, WKUPIS8_A>);
831impl WKUPIS8_R {
832 #[inline(always)]
833 pub(crate) fn new(bits: bool) -> Self {
834 WKUPIS8_R(crate::FieldReader::new(bits))
835 }
836 #[doc = r"Get enumerated values variant"]
837 #[inline(always)]
838 pub fn variant(&self) -> WKUPIS8_A {
839 match self.bits {
840 false => WKUPIS8_A::DIS,
841 true => WKUPIS8_A::EN,
842 }
843 }
844 #[doc = "Checks if the value of the field is `DIS`"]
845 #[inline(always)]
846 pub fn is_dis(&self) -> bool {
847 **self == WKUPIS8_A::DIS
848 }
849 #[doc = "Checks if the value of the field is `EN`"]
850 #[inline(always)]
851 pub fn is_en(&self) -> bool {
852 **self == WKUPIS8_A::EN
853 }
854}
855impl core::ops::Deref for WKUPIS8_R {
856 type Target = crate::FieldReader<bool, WKUPIS8_A>;
857 #[inline(always)]
858 fn deref(&self) -> &Self::Target {
859 &self.0
860 }
861}
862#[doc = "WKUPx Input Status (cleared on read)\n\nValue on reset: 0"]
863#[derive(Clone, Copy, Debug, PartialEq)]
864pub enum WKUPIS9_A {
865 #[doc = "0: The corresponding wake-up input is disabled, or was inactive at the time the debouncer triggered a wake-up event."]
866 DIS = 0,
867 #[doc = "1: The corresponding wake-up input was active at the time the debouncer triggered a wake-up event since the last read of SUPC_SR."]
868 EN = 1,
869}
870impl From<WKUPIS9_A> for bool {
871 #[inline(always)]
872 fn from(variant: WKUPIS9_A) -> Self {
873 variant as u8 != 0
874 }
875}
876#[doc = "Field `WKUPIS9` reader - WKUPx Input Status (cleared on read)"]
877pub struct WKUPIS9_R(crate::FieldReader<bool, WKUPIS9_A>);
878impl WKUPIS9_R {
879 #[inline(always)]
880 pub(crate) fn new(bits: bool) -> Self {
881 WKUPIS9_R(crate::FieldReader::new(bits))
882 }
883 #[doc = r"Get enumerated values variant"]
884 #[inline(always)]
885 pub fn variant(&self) -> WKUPIS9_A {
886 match self.bits {
887 false => WKUPIS9_A::DIS,
888 true => WKUPIS9_A::EN,
889 }
890 }
891 #[doc = "Checks if the value of the field is `DIS`"]
892 #[inline(always)]
893 pub fn is_dis(&self) -> bool {
894 **self == WKUPIS9_A::DIS
895 }
896 #[doc = "Checks if the value of the field is `EN`"]
897 #[inline(always)]
898 pub fn is_en(&self) -> bool {
899 **self == WKUPIS9_A::EN
900 }
901}
902impl core::ops::Deref for WKUPIS9_R {
903 type Target = crate::FieldReader<bool, WKUPIS9_A>;
904 #[inline(always)]
905 fn deref(&self) -> &Self::Target {
906 &self.0
907 }
908}
909#[doc = "WKUPx Input Status (cleared on read)\n\nValue on reset: 0"]
910#[derive(Clone, Copy, Debug, PartialEq)]
911pub enum WKUPIS10_A {
912 #[doc = "0: The corresponding wake-up input is disabled, or was inactive at the time the debouncer triggered a wake-up event."]
913 DIS = 0,
914 #[doc = "1: The corresponding wake-up input was active at the time the debouncer triggered a wake-up event since the last read of SUPC_SR."]
915 EN = 1,
916}
917impl From<WKUPIS10_A> for bool {
918 #[inline(always)]
919 fn from(variant: WKUPIS10_A) -> Self {
920 variant as u8 != 0
921 }
922}
923#[doc = "Field `WKUPIS10` reader - WKUPx Input Status (cleared on read)"]
924pub struct WKUPIS10_R(crate::FieldReader<bool, WKUPIS10_A>);
925impl WKUPIS10_R {
926 #[inline(always)]
927 pub(crate) fn new(bits: bool) -> Self {
928 WKUPIS10_R(crate::FieldReader::new(bits))
929 }
930 #[doc = r"Get enumerated values variant"]
931 #[inline(always)]
932 pub fn variant(&self) -> WKUPIS10_A {
933 match self.bits {
934 false => WKUPIS10_A::DIS,
935 true => WKUPIS10_A::EN,
936 }
937 }
938 #[doc = "Checks if the value of the field is `DIS`"]
939 #[inline(always)]
940 pub fn is_dis(&self) -> bool {
941 **self == WKUPIS10_A::DIS
942 }
943 #[doc = "Checks if the value of the field is `EN`"]
944 #[inline(always)]
945 pub fn is_en(&self) -> bool {
946 **self == WKUPIS10_A::EN
947 }
948}
949impl core::ops::Deref for WKUPIS10_R {
950 type Target = crate::FieldReader<bool, WKUPIS10_A>;
951 #[inline(always)]
952 fn deref(&self) -> &Self::Target {
953 &self.0
954 }
955}
956#[doc = "WKUPx Input Status (cleared on read)\n\nValue on reset: 0"]
957#[derive(Clone, Copy, Debug, PartialEq)]
958pub enum WKUPIS11_A {
959 #[doc = "0: The corresponding wake-up input is disabled, or was inactive at the time the debouncer triggered a wake-up event."]
960 DIS = 0,
961 #[doc = "1: The corresponding wake-up input was active at the time the debouncer triggered a wake-up event since the last read of SUPC_SR."]
962 EN = 1,
963}
964impl From<WKUPIS11_A> for bool {
965 #[inline(always)]
966 fn from(variant: WKUPIS11_A) -> Self {
967 variant as u8 != 0
968 }
969}
970#[doc = "Field `WKUPIS11` reader - WKUPx Input Status (cleared on read)"]
971pub struct WKUPIS11_R(crate::FieldReader<bool, WKUPIS11_A>);
972impl WKUPIS11_R {
973 #[inline(always)]
974 pub(crate) fn new(bits: bool) -> Self {
975 WKUPIS11_R(crate::FieldReader::new(bits))
976 }
977 #[doc = r"Get enumerated values variant"]
978 #[inline(always)]
979 pub fn variant(&self) -> WKUPIS11_A {
980 match self.bits {
981 false => WKUPIS11_A::DIS,
982 true => WKUPIS11_A::EN,
983 }
984 }
985 #[doc = "Checks if the value of the field is `DIS`"]
986 #[inline(always)]
987 pub fn is_dis(&self) -> bool {
988 **self == WKUPIS11_A::DIS
989 }
990 #[doc = "Checks if the value of the field is `EN`"]
991 #[inline(always)]
992 pub fn is_en(&self) -> bool {
993 **self == WKUPIS11_A::EN
994 }
995}
996impl core::ops::Deref for WKUPIS11_R {
997 type Target = crate::FieldReader<bool, WKUPIS11_A>;
998 #[inline(always)]
999 fn deref(&self) -> &Self::Target {
1000 &self.0
1001 }
1002}
1003#[doc = "WKUPx Input Status (cleared on read)\n\nValue on reset: 0"]
1004#[derive(Clone, Copy, Debug, PartialEq)]
1005pub enum WKUPIS12_A {
1006 #[doc = "0: The corresponding wake-up input is disabled, or was inactive at the time the debouncer triggered a wake-up event."]
1007 DIS = 0,
1008 #[doc = "1: The corresponding wake-up input was active at the time the debouncer triggered a wake-up event since the last read of SUPC_SR."]
1009 EN = 1,
1010}
1011impl From<WKUPIS12_A> for bool {
1012 #[inline(always)]
1013 fn from(variant: WKUPIS12_A) -> Self {
1014 variant as u8 != 0
1015 }
1016}
1017#[doc = "Field `WKUPIS12` reader - WKUPx Input Status (cleared on read)"]
1018pub struct WKUPIS12_R(crate::FieldReader<bool, WKUPIS12_A>);
1019impl WKUPIS12_R {
1020 #[inline(always)]
1021 pub(crate) fn new(bits: bool) -> Self {
1022 WKUPIS12_R(crate::FieldReader::new(bits))
1023 }
1024 #[doc = r"Get enumerated values variant"]
1025 #[inline(always)]
1026 pub fn variant(&self) -> WKUPIS12_A {
1027 match self.bits {
1028 false => WKUPIS12_A::DIS,
1029 true => WKUPIS12_A::EN,
1030 }
1031 }
1032 #[doc = "Checks if the value of the field is `DIS`"]
1033 #[inline(always)]
1034 pub fn is_dis(&self) -> bool {
1035 **self == WKUPIS12_A::DIS
1036 }
1037 #[doc = "Checks if the value of the field is `EN`"]
1038 #[inline(always)]
1039 pub fn is_en(&self) -> bool {
1040 **self == WKUPIS12_A::EN
1041 }
1042}
1043impl core::ops::Deref for WKUPIS12_R {
1044 type Target = crate::FieldReader<bool, WKUPIS12_A>;
1045 #[inline(always)]
1046 fn deref(&self) -> &Self::Target {
1047 &self.0
1048 }
1049}
1050#[doc = "WKUPx Input Status (cleared on read)\n\nValue on reset: 0"]
1051#[derive(Clone, Copy, Debug, PartialEq)]
1052pub enum WKUPIS13_A {
1053 #[doc = "0: The corresponding wake-up input is disabled, or was inactive at the time the debouncer triggered a wake-up event."]
1054 DIS = 0,
1055 #[doc = "1: The corresponding wake-up input was active at the time the debouncer triggered a wake-up event since the last read of SUPC_SR."]
1056 EN = 1,
1057}
1058impl From<WKUPIS13_A> for bool {
1059 #[inline(always)]
1060 fn from(variant: WKUPIS13_A) -> Self {
1061 variant as u8 != 0
1062 }
1063}
1064#[doc = "Field `WKUPIS13` reader - WKUPx Input Status (cleared on read)"]
1065pub struct WKUPIS13_R(crate::FieldReader<bool, WKUPIS13_A>);
1066impl WKUPIS13_R {
1067 #[inline(always)]
1068 pub(crate) fn new(bits: bool) -> Self {
1069 WKUPIS13_R(crate::FieldReader::new(bits))
1070 }
1071 #[doc = r"Get enumerated values variant"]
1072 #[inline(always)]
1073 pub fn variant(&self) -> WKUPIS13_A {
1074 match self.bits {
1075 false => WKUPIS13_A::DIS,
1076 true => WKUPIS13_A::EN,
1077 }
1078 }
1079 #[doc = "Checks if the value of the field is `DIS`"]
1080 #[inline(always)]
1081 pub fn is_dis(&self) -> bool {
1082 **self == WKUPIS13_A::DIS
1083 }
1084 #[doc = "Checks if the value of the field is `EN`"]
1085 #[inline(always)]
1086 pub fn is_en(&self) -> bool {
1087 **self == WKUPIS13_A::EN
1088 }
1089}
1090impl core::ops::Deref for WKUPIS13_R {
1091 type Target = crate::FieldReader<bool, WKUPIS13_A>;
1092 #[inline(always)]
1093 fn deref(&self) -> &Self::Target {
1094 &self.0
1095 }
1096}
1097impl R {
1098 #[doc = "Bit 1 - WKUP Wake-up Status (cleared on read)"]
1099 #[inline(always)]
1100 pub fn wkups(&self) -> WKUPS_R {
1101 WKUPS_R::new(((self.bits >> 1) & 0x01) != 0)
1102 }
1103 #[doc = "Bit 2 - Supply Monitor Detection Wake-up Status (cleared on read)"]
1104 #[inline(always)]
1105 pub fn smws(&self) -> SMWS_R {
1106 SMWS_R::new(((self.bits >> 2) & 0x01) != 0)
1107 }
1108 #[doc = "Bit 3 - Brownout Detector Reset Status (cleared on read)"]
1109 #[inline(always)]
1110 pub fn bodrsts(&self) -> BODRSTS_R {
1111 BODRSTS_R::new(((self.bits >> 3) & 0x01) != 0)
1112 }
1113 #[doc = "Bit 4 - Supply Monitor Reset Status (cleared on read)"]
1114 #[inline(always)]
1115 pub fn smrsts(&self) -> SMRSTS_R {
1116 SMRSTS_R::new(((self.bits >> 4) & 0x01) != 0)
1117 }
1118 #[doc = "Bit 5 - Supply Monitor Status (cleared on read)"]
1119 #[inline(always)]
1120 pub fn sms(&self) -> SMS_R {
1121 SMS_R::new(((self.bits >> 5) & 0x01) != 0)
1122 }
1123 #[doc = "Bit 6 - Supply Monitor Output Status"]
1124 #[inline(always)]
1125 pub fn smos(&self) -> SMOS_R {
1126 SMOS_R::new(((self.bits >> 6) & 0x01) != 0)
1127 }
1128 #[doc = "Bit 7 - 32-kHz Oscillator Selection Status"]
1129 #[inline(always)]
1130 pub fn oscsel(&self) -> OSCSEL_R {
1131 OSCSEL_R::new(((self.bits >> 7) & 0x01) != 0)
1132 }
1133 #[doc = "Bit 13 - Low-power Debouncer Wake-up Status on WKUP0 (cleared on read)"]
1134 #[inline(always)]
1135 pub fn lpdbcs0(&self) -> LPDBCS0_R {
1136 LPDBCS0_R::new(((self.bits >> 13) & 0x01) != 0)
1137 }
1138 #[doc = "Bit 14 - Low-power Debouncer Wake-up Status on WKUP1 (cleared on read)"]
1139 #[inline(always)]
1140 pub fn lpdbcs1(&self) -> LPDBCS1_R {
1141 LPDBCS1_R::new(((self.bits >> 14) & 0x01) != 0)
1142 }
1143 #[doc = "Bit 16 - WKUPx Input Status (cleared on read)"]
1144 #[inline(always)]
1145 pub fn wkupis0(&self) -> WKUPIS0_R {
1146 WKUPIS0_R::new(((self.bits >> 16) & 0x01) != 0)
1147 }
1148 #[doc = "Bit 17 - WKUPx Input Status (cleared on read)"]
1149 #[inline(always)]
1150 pub fn wkupis1(&self) -> WKUPIS1_R {
1151 WKUPIS1_R::new(((self.bits >> 17) & 0x01) != 0)
1152 }
1153 #[doc = "Bit 18 - WKUPx Input Status (cleared on read)"]
1154 #[inline(always)]
1155 pub fn wkupis2(&self) -> WKUPIS2_R {
1156 WKUPIS2_R::new(((self.bits >> 18) & 0x01) != 0)
1157 }
1158 #[doc = "Bit 19 - WKUPx Input Status (cleared on read)"]
1159 #[inline(always)]
1160 pub fn wkupis3(&self) -> WKUPIS3_R {
1161 WKUPIS3_R::new(((self.bits >> 19) & 0x01) != 0)
1162 }
1163 #[doc = "Bit 20 - WKUPx Input Status (cleared on read)"]
1164 #[inline(always)]
1165 pub fn wkupis4(&self) -> WKUPIS4_R {
1166 WKUPIS4_R::new(((self.bits >> 20) & 0x01) != 0)
1167 }
1168 #[doc = "Bit 21 - WKUPx Input Status (cleared on read)"]
1169 #[inline(always)]
1170 pub fn wkupis5(&self) -> WKUPIS5_R {
1171 WKUPIS5_R::new(((self.bits >> 21) & 0x01) != 0)
1172 }
1173 #[doc = "Bit 22 - WKUPx Input Status (cleared on read)"]
1174 #[inline(always)]
1175 pub fn wkupis6(&self) -> WKUPIS6_R {
1176 WKUPIS6_R::new(((self.bits >> 22) & 0x01) != 0)
1177 }
1178 #[doc = "Bit 23 - WKUPx Input Status (cleared on read)"]
1179 #[inline(always)]
1180 pub fn wkupis7(&self) -> WKUPIS7_R {
1181 WKUPIS7_R::new(((self.bits >> 23) & 0x01) != 0)
1182 }
1183 #[doc = "Bit 24 - WKUPx Input Status (cleared on read)"]
1184 #[inline(always)]
1185 pub fn wkupis8(&self) -> WKUPIS8_R {
1186 WKUPIS8_R::new(((self.bits >> 24) & 0x01) != 0)
1187 }
1188 #[doc = "Bit 25 - WKUPx Input Status (cleared on read)"]
1189 #[inline(always)]
1190 pub fn wkupis9(&self) -> WKUPIS9_R {
1191 WKUPIS9_R::new(((self.bits >> 25) & 0x01) != 0)
1192 }
1193 #[doc = "Bit 26 - WKUPx Input Status (cleared on read)"]
1194 #[inline(always)]
1195 pub fn wkupis10(&self) -> WKUPIS10_R {
1196 WKUPIS10_R::new(((self.bits >> 26) & 0x01) != 0)
1197 }
1198 #[doc = "Bit 27 - WKUPx Input Status (cleared on read)"]
1199 #[inline(always)]
1200 pub fn wkupis11(&self) -> WKUPIS11_R {
1201 WKUPIS11_R::new(((self.bits >> 27) & 0x01) != 0)
1202 }
1203 #[doc = "Bit 28 - WKUPx Input Status (cleared on read)"]
1204 #[inline(always)]
1205 pub fn wkupis12(&self) -> WKUPIS12_R {
1206 WKUPIS12_R::new(((self.bits >> 28) & 0x01) != 0)
1207 }
1208 #[doc = "Bit 29 - WKUPx Input Status (cleared on read)"]
1209 #[inline(always)]
1210 pub fn wkupis13(&self) -> WKUPIS13_R {
1211 WKUPIS13_R::new(((self.bits >> 29) & 0x01) != 0)
1212 }
1213}
1214#[doc = "Supply Controller Status Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [supc_sr](index.html) module"]
1215pub struct SUPC_SR_SPEC;
1216impl crate::RegisterSpec for SUPC_SR_SPEC {
1217 type Ux = u32;
1218}
1219#[doc = "`read()` method returns [supc_sr::R](R) reader structure"]
1220impl crate::Readable for SUPC_SR_SPEC {
1221 type Reader = R;
1222}
1223#[doc = "`reset()` method sets SUPC_SR to value 0"]
1224impl crate::Resettable for SUPC_SR_SPEC {
1225 #[inline(always)]
1226 fn reset_value() -> Self::Ux {
1227 0
1228 }
1229}