atsam4s8c_pac/supc/
wuir.rs

1#[doc = "Register `WUIR` reader"]
2pub struct R(crate::R<WUIR_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<WUIR_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<WUIR_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<WUIR_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `WUIR` writer"]
17pub struct W(crate::W<WUIR_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<WUIR_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<WUIR_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<WUIR_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `WKUPEN0` reader - Wake-up Input Enable 0"]
38pub type WKUPEN0_R = crate::BitReader<WKUPEN0_A>;
39#[doc = "Wake-up Input Enable 0\n\nValue on reset: 0"]
40#[derive(Clone, Copy, Debug, PartialEq, Eq)]
41pub enum WKUPEN0_A {
42    #[doc = "0: The corresponding wake-up input has no wake-up effect."]
43    DISABLE = 0,
44    #[doc = "1: The corresponding wake-up input forces the wake-up of the core power supply."]
45    ENABLE = 1,
46}
47impl From<WKUPEN0_A> for bool {
48    #[inline(always)]
49    fn from(variant: WKUPEN0_A) -> Self {
50        variant as u8 != 0
51    }
52}
53impl WKUPEN0_R {
54    #[doc = "Get enumerated values variant"]
55    #[inline(always)]
56    pub fn variant(&self) -> WKUPEN0_A {
57        match self.bits {
58            false => WKUPEN0_A::DISABLE,
59            true => WKUPEN0_A::ENABLE,
60        }
61    }
62    #[doc = "Checks if the value of the field is `DISABLE`"]
63    #[inline(always)]
64    pub fn is_disable(&self) -> bool {
65        *self == WKUPEN0_A::DISABLE
66    }
67    #[doc = "Checks if the value of the field is `ENABLE`"]
68    #[inline(always)]
69    pub fn is_enable(&self) -> bool {
70        *self == WKUPEN0_A::ENABLE
71    }
72}
73#[doc = "Field `WKUPEN0` writer - Wake-up Input Enable 0"]
74pub type WKUPEN0_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUIR_SPEC, WKUPEN0_A, O>;
75impl<'a, const O: u8> WKUPEN0_W<'a, O> {
76    #[doc = "The corresponding wake-up input has no wake-up effect."]
77    #[inline(always)]
78    pub fn disable(self) -> &'a mut W {
79        self.variant(WKUPEN0_A::DISABLE)
80    }
81    #[doc = "The corresponding wake-up input forces the wake-up of the core power supply."]
82    #[inline(always)]
83    pub fn enable(self) -> &'a mut W {
84        self.variant(WKUPEN0_A::ENABLE)
85    }
86}
87#[doc = "Field `WKUPEN1` reader - Wake-up Input Enable 1"]
88pub type WKUPEN1_R = crate::BitReader<WKUPEN1_A>;
89#[doc = "Wake-up Input Enable 1\n\nValue on reset: 0"]
90#[derive(Clone, Copy, Debug, PartialEq, Eq)]
91pub enum WKUPEN1_A {
92    #[doc = "0: The corresponding wake-up input has no wake-up effect."]
93    DISABLE = 0,
94    #[doc = "1: The corresponding wake-up input forces the wake-up of the core power supply."]
95    ENABLE = 1,
96}
97impl From<WKUPEN1_A> for bool {
98    #[inline(always)]
99    fn from(variant: WKUPEN1_A) -> Self {
100        variant as u8 != 0
101    }
102}
103impl WKUPEN1_R {
104    #[doc = "Get enumerated values variant"]
105    #[inline(always)]
106    pub fn variant(&self) -> WKUPEN1_A {
107        match self.bits {
108            false => WKUPEN1_A::DISABLE,
109            true => WKUPEN1_A::ENABLE,
110        }
111    }
112    #[doc = "Checks if the value of the field is `DISABLE`"]
113    #[inline(always)]
114    pub fn is_disable(&self) -> bool {
115        *self == WKUPEN1_A::DISABLE
116    }
117    #[doc = "Checks if the value of the field is `ENABLE`"]
118    #[inline(always)]
119    pub fn is_enable(&self) -> bool {
120        *self == WKUPEN1_A::ENABLE
121    }
122}
123#[doc = "Field `WKUPEN1` writer - Wake-up Input Enable 1"]
124pub type WKUPEN1_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUIR_SPEC, WKUPEN1_A, O>;
125impl<'a, const O: u8> WKUPEN1_W<'a, O> {
126    #[doc = "The corresponding wake-up input has no wake-up effect."]
127    #[inline(always)]
128    pub fn disable(self) -> &'a mut W {
129        self.variant(WKUPEN1_A::DISABLE)
130    }
131    #[doc = "The corresponding wake-up input forces the wake-up of the core power supply."]
132    #[inline(always)]
133    pub fn enable(self) -> &'a mut W {
134        self.variant(WKUPEN1_A::ENABLE)
135    }
136}
137#[doc = "Field `WKUPEN2` reader - Wake-up Input Enable 2"]
138pub type WKUPEN2_R = crate::BitReader<WKUPEN2_A>;
139#[doc = "Wake-up Input Enable 2\n\nValue on reset: 0"]
140#[derive(Clone, Copy, Debug, PartialEq, Eq)]
141pub enum WKUPEN2_A {
142    #[doc = "0: The corresponding wake-up input has no wake-up effect."]
143    DISABLE = 0,
144    #[doc = "1: The corresponding wake-up input forces the wake-up of the core power supply."]
145    ENABLE = 1,
146}
147impl From<WKUPEN2_A> for bool {
148    #[inline(always)]
149    fn from(variant: WKUPEN2_A) -> Self {
150        variant as u8 != 0
151    }
152}
153impl WKUPEN2_R {
154    #[doc = "Get enumerated values variant"]
155    #[inline(always)]
156    pub fn variant(&self) -> WKUPEN2_A {
157        match self.bits {
158            false => WKUPEN2_A::DISABLE,
159            true => WKUPEN2_A::ENABLE,
160        }
161    }
162    #[doc = "Checks if the value of the field is `DISABLE`"]
163    #[inline(always)]
164    pub fn is_disable(&self) -> bool {
165        *self == WKUPEN2_A::DISABLE
166    }
167    #[doc = "Checks if the value of the field is `ENABLE`"]
168    #[inline(always)]
169    pub fn is_enable(&self) -> bool {
170        *self == WKUPEN2_A::ENABLE
171    }
172}
173#[doc = "Field `WKUPEN2` writer - Wake-up Input Enable 2"]
174pub type WKUPEN2_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUIR_SPEC, WKUPEN2_A, O>;
175impl<'a, const O: u8> WKUPEN2_W<'a, O> {
176    #[doc = "The corresponding wake-up input has no wake-up effect."]
177    #[inline(always)]
178    pub fn disable(self) -> &'a mut W {
179        self.variant(WKUPEN2_A::DISABLE)
180    }
181    #[doc = "The corresponding wake-up input forces the wake-up of the core power supply."]
182    #[inline(always)]
183    pub fn enable(self) -> &'a mut W {
184        self.variant(WKUPEN2_A::ENABLE)
185    }
186}
187#[doc = "Field `WKUPEN3` reader - Wake-up Input Enable 3"]
188pub type WKUPEN3_R = crate::BitReader<WKUPEN3_A>;
189#[doc = "Wake-up Input Enable 3\n\nValue on reset: 0"]
190#[derive(Clone, Copy, Debug, PartialEq, Eq)]
191pub enum WKUPEN3_A {
192    #[doc = "0: The corresponding wake-up input has no wake-up effect."]
193    DISABLE = 0,
194    #[doc = "1: The corresponding wake-up input forces the wake-up of the core power supply."]
195    ENABLE = 1,
196}
197impl From<WKUPEN3_A> for bool {
198    #[inline(always)]
199    fn from(variant: WKUPEN3_A) -> Self {
200        variant as u8 != 0
201    }
202}
203impl WKUPEN3_R {
204    #[doc = "Get enumerated values variant"]
205    #[inline(always)]
206    pub fn variant(&self) -> WKUPEN3_A {
207        match self.bits {
208            false => WKUPEN3_A::DISABLE,
209            true => WKUPEN3_A::ENABLE,
210        }
211    }
212    #[doc = "Checks if the value of the field is `DISABLE`"]
213    #[inline(always)]
214    pub fn is_disable(&self) -> bool {
215        *self == WKUPEN3_A::DISABLE
216    }
217    #[doc = "Checks if the value of the field is `ENABLE`"]
218    #[inline(always)]
219    pub fn is_enable(&self) -> bool {
220        *self == WKUPEN3_A::ENABLE
221    }
222}
223#[doc = "Field `WKUPEN3` writer - Wake-up Input Enable 3"]
224pub type WKUPEN3_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUIR_SPEC, WKUPEN3_A, O>;
225impl<'a, const O: u8> WKUPEN3_W<'a, O> {
226    #[doc = "The corresponding wake-up input has no wake-up effect."]
227    #[inline(always)]
228    pub fn disable(self) -> &'a mut W {
229        self.variant(WKUPEN3_A::DISABLE)
230    }
231    #[doc = "The corresponding wake-up input forces the wake-up of the core power supply."]
232    #[inline(always)]
233    pub fn enable(self) -> &'a mut W {
234        self.variant(WKUPEN3_A::ENABLE)
235    }
236}
237#[doc = "Field `WKUPEN4` reader - Wake-up Input Enable 4"]
238pub type WKUPEN4_R = crate::BitReader<WKUPEN4_A>;
239#[doc = "Wake-up Input Enable 4\n\nValue on reset: 0"]
240#[derive(Clone, Copy, Debug, PartialEq, Eq)]
241pub enum WKUPEN4_A {
242    #[doc = "0: The corresponding wake-up input has no wake-up effect."]
243    DISABLE = 0,
244    #[doc = "1: The corresponding wake-up input forces the wake-up of the core power supply."]
245    ENABLE = 1,
246}
247impl From<WKUPEN4_A> for bool {
248    #[inline(always)]
249    fn from(variant: WKUPEN4_A) -> Self {
250        variant as u8 != 0
251    }
252}
253impl WKUPEN4_R {
254    #[doc = "Get enumerated values variant"]
255    #[inline(always)]
256    pub fn variant(&self) -> WKUPEN4_A {
257        match self.bits {
258            false => WKUPEN4_A::DISABLE,
259            true => WKUPEN4_A::ENABLE,
260        }
261    }
262    #[doc = "Checks if the value of the field is `DISABLE`"]
263    #[inline(always)]
264    pub fn is_disable(&self) -> bool {
265        *self == WKUPEN4_A::DISABLE
266    }
267    #[doc = "Checks if the value of the field is `ENABLE`"]
268    #[inline(always)]
269    pub fn is_enable(&self) -> bool {
270        *self == WKUPEN4_A::ENABLE
271    }
272}
273#[doc = "Field `WKUPEN4` writer - Wake-up Input Enable 4"]
274pub type WKUPEN4_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUIR_SPEC, WKUPEN4_A, O>;
275impl<'a, const O: u8> WKUPEN4_W<'a, O> {
276    #[doc = "The corresponding wake-up input has no wake-up effect."]
277    #[inline(always)]
278    pub fn disable(self) -> &'a mut W {
279        self.variant(WKUPEN4_A::DISABLE)
280    }
281    #[doc = "The corresponding wake-up input forces the wake-up of the core power supply."]
282    #[inline(always)]
283    pub fn enable(self) -> &'a mut W {
284        self.variant(WKUPEN4_A::ENABLE)
285    }
286}
287#[doc = "Field `WKUPEN5` reader - Wake-up Input Enable 5"]
288pub type WKUPEN5_R = crate::BitReader<WKUPEN5_A>;
289#[doc = "Wake-up Input Enable 5\n\nValue on reset: 0"]
290#[derive(Clone, Copy, Debug, PartialEq, Eq)]
291pub enum WKUPEN5_A {
292    #[doc = "0: The corresponding wake-up input has no wake-up effect."]
293    DISABLE = 0,
294    #[doc = "1: The corresponding wake-up input forces the wake-up of the core power supply."]
295    ENABLE = 1,
296}
297impl From<WKUPEN5_A> for bool {
298    #[inline(always)]
299    fn from(variant: WKUPEN5_A) -> Self {
300        variant as u8 != 0
301    }
302}
303impl WKUPEN5_R {
304    #[doc = "Get enumerated values variant"]
305    #[inline(always)]
306    pub fn variant(&self) -> WKUPEN5_A {
307        match self.bits {
308            false => WKUPEN5_A::DISABLE,
309            true => WKUPEN5_A::ENABLE,
310        }
311    }
312    #[doc = "Checks if the value of the field is `DISABLE`"]
313    #[inline(always)]
314    pub fn is_disable(&self) -> bool {
315        *self == WKUPEN5_A::DISABLE
316    }
317    #[doc = "Checks if the value of the field is `ENABLE`"]
318    #[inline(always)]
319    pub fn is_enable(&self) -> bool {
320        *self == WKUPEN5_A::ENABLE
321    }
322}
323#[doc = "Field `WKUPEN5` writer - Wake-up Input Enable 5"]
324pub type WKUPEN5_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUIR_SPEC, WKUPEN5_A, O>;
325impl<'a, const O: u8> WKUPEN5_W<'a, O> {
326    #[doc = "The corresponding wake-up input has no wake-up effect."]
327    #[inline(always)]
328    pub fn disable(self) -> &'a mut W {
329        self.variant(WKUPEN5_A::DISABLE)
330    }
331    #[doc = "The corresponding wake-up input forces the wake-up of the core power supply."]
332    #[inline(always)]
333    pub fn enable(self) -> &'a mut W {
334        self.variant(WKUPEN5_A::ENABLE)
335    }
336}
337#[doc = "Field `WKUPEN6` reader - Wake-up Input Enable 6"]
338pub type WKUPEN6_R = crate::BitReader<WKUPEN6_A>;
339#[doc = "Wake-up Input Enable 6\n\nValue on reset: 0"]
340#[derive(Clone, Copy, Debug, PartialEq, Eq)]
341pub enum WKUPEN6_A {
342    #[doc = "0: The corresponding wake-up input has no wake-up effect."]
343    DISABLE = 0,
344    #[doc = "1: The corresponding wake-up input forces the wake-up of the core power supply."]
345    ENABLE = 1,
346}
347impl From<WKUPEN6_A> for bool {
348    #[inline(always)]
349    fn from(variant: WKUPEN6_A) -> Self {
350        variant as u8 != 0
351    }
352}
353impl WKUPEN6_R {
354    #[doc = "Get enumerated values variant"]
355    #[inline(always)]
356    pub fn variant(&self) -> WKUPEN6_A {
357        match self.bits {
358            false => WKUPEN6_A::DISABLE,
359            true => WKUPEN6_A::ENABLE,
360        }
361    }
362    #[doc = "Checks if the value of the field is `DISABLE`"]
363    #[inline(always)]
364    pub fn is_disable(&self) -> bool {
365        *self == WKUPEN6_A::DISABLE
366    }
367    #[doc = "Checks if the value of the field is `ENABLE`"]
368    #[inline(always)]
369    pub fn is_enable(&self) -> bool {
370        *self == WKUPEN6_A::ENABLE
371    }
372}
373#[doc = "Field `WKUPEN6` writer - Wake-up Input Enable 6"]
374pub type WKUPEN6_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUIR_SPEC, WKUPEN6_A, O>;
375impl<'a, const O: u8> WKUPEN6_W<'a, O> {
376    #[doc = "The corresponding wake-up input has no wake-up effect."]
377    #[inline(always)]
378    pub fn disable(self) -> &'a mut W {
379        self.variant(WKUPEN6_A::DISABLE)
380    }
381    #[doc = "The corresponding wake-up input forces the wake-up of the core power supply."]
382    #[inline(always)]
383    pub fn enable(self) -> &'a mut W {
384        self.variant(WKUPEN6_A::ENABLE)
385    }
386}
387#[doc = "Field `WKUPEN7` reader - Wake-up Input Enable 7"]
388pub type WKUPEN7_R = crate::BitReader<WKUPEN7_A>;
389#[doc = "Wake-up Input Enable 7\n\nValue on reset: 0"]
390#[derive(Clone, Copy, Debug, PartialEq, Eq)]
391pub enum WKUPEN7_A {
392    #[doc = "0: The corresponding wake-up input has no wake-up effect."]
393    DISABLE = 0,
394    #[doc = "1: The corresponding wake-up input forces the wake-up of the core power supply."]
395    ENABLE = 1,
396}
397impl From<WKUPEN7_A> for bool {
398    #[inline(always)]
399    fn from(variant: WKUPEN7_A) -> Self {
400        variant as u8 != 0
401    }
402}
403impl WKUPEN7_R {
404    #[doc = "Get enumerated values variant"]
405    #[inline(always)]
406    pub fn variant(&self) -> WKUPEN7_A {
407        match self.bits {
408            false => WKUPEN7_A::DISABLE,
409            true => WKUPEN7_A::ENABLE,
410        }
411    }
412    #[doc = "Checks if the value of the field is `DISABLE`"]
413    #[inline(always)]
414    pub fn is_disable(&self) -> bool {
415        *self == WKUPEN7_A::DISABLE
416    }
417    #[doc = "Checks if the value of the field is `ENABLE`"]
418    #[inline(always)]
419    pub fn is_enable(&self) -> bool {
420        *self == WKUPEN7_A::ENABLE
421    }
422}
423#[doc = "Field `WKUPEN7` writer - Wake-up Input Enable 7"]
424pub type WKUPEN7_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUIR_SPEC, WKUPEN7_A, O>;
425impl<'a, const O: u8> WKUPEN7_W<'a, O> {
426    #[doc = "The corresponding wake-up input has no wake-up effect."]
427    #[inline(always)]
428    pub fn disable(self) -> &'a mut W {
429        self.variant(WKUPEN7_A::DISABLE)
430    }
431    #[doc = "The corresponding wake-up input forces the wake-up of the core power supply."]
432    #[inline(always)]
433    pub fn enable(self) -> &'a mut W {
434        self.variant(WKUPEN7_A::ENABLE)
435    }
436}
437#[doc = "Field `WKUPEN8` reader - Wake-up Input Enable 8"]
438pub type WKUPEN8_R = crate::BitReader<WKUPEN8_A>;
439#[doc = "Wake-up Input Enable 8\n\nValue on reset: 0"]
440#[derive(Clone, Copy, Debug, PartialEq, Eq)]
441pub enum WKUPEN8_A {
442    #[doc = "0: The corresponding wake-up input has no wake-up effect."]
443    DISABLE = 0,
444    #[doc = "1: The corresponding wake-up input forces the wake-up of the core power supply."]
445    ENABLE = 1,
446}
447impl From<WKUPEN8_A> for bool {
448    #[inline(always)]
449    fn from(variant: WKUPEN8_A) -> Self {
450        variant as u8 != 0
451    }
452}
453impl WKUPEN8_R {
454    #[doc = "Get enumerated values variant"]
455    #[inline(always)]
456    pub fn variant(&self) -> WKUPEN8_A {
457        match self.bits {
458            false => WKUPEN8_A::DISABLE,
459            true => WKUPEN8_A::ENABLE,
460        }
461    }
462    #[doc = "Checks if the value of the field is `DISABLE`"]
463    #[inline(always)]
464    pub fn is_disable(&self) -> bool {
465        *self == WKUPEN8_A::DISABLE
466    }
467    #[doc = "Checks if the value of the field is `ENABLE`"]
468    #[inline(always)]
469    pub fn is_enable(&self) -> bool {
470        *self == WKUPEN8_A::ENABLE
471    }
472}
473#[doc = "Field `WKUPEN8` writer - Wake-up Input Enable 8"]
474pub type WKUPEN8_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUIR_SPEC, WKUPEN8_A, O>;
475impl<'a, const O: u8> WKUPEN8_W<'a, O> {
476    #[doc = "The corresponding wake-up input has no wake-up effect."]
477    #[inline(always)]
478    pub fn disable(self) -> &'a mut W {
479        self.variant(WKUPEN8_A::DISABLE)
480    }
481    #[doc = "The corresponding wake-up input forces the wake-up of the core power supply."]
482    #[inline(always)]
483    pub fn enable(self) -> &'a mut W {
484        self.variant(WKUPEN8_A::ENABLE)
485    }
486}
487#[doc = "Field `WKUPEN9` reader - Wake-up Input Enable 9"]
488pub type WKUPEN9_R = crate::BitReader<WKUPEN9_A>;
489#[doc = "Wake-up Input Enable 9\n\nValue on reset: 0"]
490#[derive(Clone, Copy, Debug, PartialEq, Eq)]
491pub enum WKUPEN9_A {
492    #[doc = "0: The corresponding wake-up input has no wake-up effect."]
493    DISABLE = 0,
494    #[doc = "1: The corresponding wake-up input forces the wake-up of the core power supply."]
495    ENABLE = 1,
496}
497impl From<WKUPEN9_A> for bool {
498    #[inline(always)]
499    fn from(variant: WKUPEN9_A) -> Self {
500        variant as u8 != 0
501    }
502}
503impl WKUPEN9_R {
504    #[doc = "Get enumerated values variant"]
505    #[inline(always)]
506    pub fn variant(&self) -> WKUPEN9_A {
507        match self.bits {
508            false => WKUPEN9_A::DISABLE,
509            true => WKUPEN9_A::ENABLE,
510        }
511    }
512    #[doc = "Checks if the value of the field is `DISABLE`"]
513    #[inline(always)]
514    pub fn is_disable(&self) -> bool {
515        *self == WKUPEN9_A::DISABLE
516    }
517    #[doc = "Checks if the value of the field is `ENABLE`"]
518    #[inline(always)]
519    pub fn is_enable(&self) -> bool {
520        *self == WKUPEN9_A::ENABLE
521    }
522}
523#[doc = "Field `WKUPEN9` writer - Wake-up Input Enable 9"]
524pub type WKUPEN9_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUIR_SPEC, WKUPEN9_A, O>;
525impl<'a, const O: u8> WKUPEN9_W<'a, O> {
526    #[doc = "The corresponding wake-up input has no wake-up effect."]
527    #[inline(always)]
528    pub fn disable(self) -> &'a mut W {
529        self.variant(WKUPEN9_A::DISABLE)
530    }
531    #[doc = "The corresponding wake-up input forces the wake-up of the core power supply."]
532    #[inline(always)]
533    pub fn enable(self) -> &'a mut W {
534        self.variant(WKUPEN9_A::ENABLE)
535    }
536}
537#[doc = "Field `WKUPEN10` reader - Wake-up Input Enable 10"]
538pub type WKUPEN10_R = crate::BitReader<WKUPEN10_A>;
539#[doc = "Wake-up Input Enable 10\n\nValue on reset: 0"]
540#[derive(Clone, Copy, Debug, PartialEq, Eq)]
541pub enum WKUPEN10_A {
542    #[doc = "0: The corresponding wake-up input has no wake-up effect."]
543    DISABLE = 0,
544    #[doc = "1: The corresponding wake-up input forces the wake-up of the core power supply."]
545    ENABLE = 1,
546}
547impl From<WKUPEN10_A> for bool {
548    #[inline(always)]
549    fn from(variant: WKUPEN10_A) -> Self {
550        variant as u8 != 0
551    }
552}
553impl WKUPEN10_R {
554    #[doc = "Get enumerated values variant"]
555    #[inline(always)]
556    pub fn variant(&self) -> WKUPEN10_A {
557        match self.bits {
558            false => WKUPEN10_A::DISABLE,
559            true => WKUPEN10_A::ENABLE,
560        }
561    }
562    #[doc = "Checks if the value of the field is `DISABLE`"]
563    #[inline(always)]
564    pub fn is_disable(&self) -> bool {
565        *self == WKUPEN10_A::DISABLE
566    }
567    #[doc = "Checks if the value of the field is `ENABLE`"]
568    #[inline(always)]
569    pub fn is_enable(&self) -> bool {
570        *self == WKUPEN10_A::ENABLE
571    }
572}
573#[doc = "Field `WKUPEN10` writer - Wake-up Input Enable 10"]
574pub type WKUPEN10_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUIR_SPEC, WKUPEN10_A, O>;
575impl<'a, const O: u8> WKUPEN10_W<'a, O> {
576    #[doc = "The corresponding wake-up input has no wake-up effect."]
577    #[inline(always)]
578    pub fn disable(self) -> &'a mut W {
579        self.variant(WKUPEN10_A::DISABLE)
580    }
581    #[doc = "The corresponding wake-up input forces the wake-up of the core power supply."]
582    #[inline(always)]
583    pub fn enable(self) -> &'a mut W {
584        self.variant(WKUPEN10_A::ENABLE)
585    }
586}
587#[doc = "Field `WKUPEN11` reader - Wake-up Input Enable 11"]
588pub type WKUPEN11_R = crate::BitReader<WKUPEN11_A>;
589#[doc = "Wake-up Input Enable 11\n\nValue on reset: 0"]
590#[derive(Clone, Copy, Debug, PartialEq, Eq)]
591pub enum WKUPEN11_A {
592    #[doc = "0: The corresponding wake-up input has no wake-up effect."]
593    DISABLE = 0,
594    #[doc = "1: The corresponding wake-up input forces the wake-up of the core power supply."]
595    ENABLE = 1,
596}
597impl From<WKUPEN11_A> for bool {
598    #[inline(always)]
599    fn from(variant: WKUPEN11_A) -> Self {
600        variant as u8 != 0
601    }
602}
603impl WKUPEN11_R {
604    #[doc = "Get enumerated values variant"]
605    #[inline(always)]
606    pub fn variant(&self) -> WKUPEN11_A {
607        match self.bits {
608            false => WKUPEN11_A::DISABLE,
609            true => WKUPEN11_A::ENABLE,
610        }
611    }
612    #[doc = "Checks if the value of the field is `DISABLE`"]
613    #[inline(always)]
614    pub fn is_disable(&self) -> bool {
615        *self == WKUPEN11_A::DISABLE
616    }
617    #[doc = "Checks if the value of the field is `ENABLE`"]
618    #[inline(always)]
619    pub fn is_enable(&self) -> bool {
620        *self == WKUPEN11_A::ENABLE
621    }
622}
623#[doc = "Field `WKUPEN11` writer - Wake-up Input Enable 11"]
624pub type WKUPEN11_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUIR_SPEC, WKUPEN11_A, O>;
625impl<'a, const O: u8> WKUPEN11_W<'a, O> {
626    #[doc = "The corresponding wake-up input has no wake-up effect."]
627    #[inline(always)]
628    pub fn disable(self) -> &'a mut W {
629        self.variant(WKUPEN11_A::DISABLE)
630    }
631    #[doc = "The corresponding wake-up input forces the wake-up of the core power supply."]
632    #[inline(always)]
633    pub fn enable(self) -> &'a mut W {
634        self.variant(WKUPEN11_A::ENABLE)
635    }
636}
637#[doc = "Field `WKUPEN12` reader - Wake-up Input Enable 12"]
638pub type WKUPEN12_R = crate::BitReader<WKUPEN12_A>;
639#[doc = "Wake-up Input Enable 12\n\nValue on reset: 0"]
640#[derive(Clone, Copy, Debug, PartialEq, Eq)]
641pub enum WKUPEN12_A {
642    #[doc = "0: The corresponding wake-up input has no wake-up effect."]
643    DISABLE = 0,
644    #[doc = "1: The corresponding wake-up input forces the wake-up of the core power supply."]
645    ENABLE = 1,
646}
647impl From<WKUPEN12_A> for bool {
648    #[inline(always)]
649    fn from(variant: WKUPEN12_A) -> Self {
650        variant as u8 != 0
651    }
652}
653impl WKUPEN12_R {
654    #[doc = "Get enumerated values variant"]
655    #[inline(always)]
656    pub fn variant(&self) -> WKUPEN12_A {
657        match self.bits {
658            false => WKUPEN12_A::DISABLE,
659            true => WKUPEN12_A::ENABLE,
660        }
661    }
662    #[doc = "Checks if the value of the field is `DISABLE`"]
663    #[inline(always)]
664    pub fn is_disable(&self) -> bool {
665        *self == WKUPEN12_A::DISABLE
666    }
667    #[doc = "Checks if the value of the field is `ENABLE`"]
668    #[inline(always)]
669    pub fn is_enable(&self) -> bool {
670        *self == WKUPEN12_A::ENABLE
671    }
672}
673#[doc = "Field `WKUPEN12` writer - Wake-up Input Enable 12"]
674pub type WKUPEN12_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUIR_SPEC, WKUPEN12_A, O>;
675impl<'a, const O: u8> WKUPEN12_W<'a, O> {
676    #[doc = "The corresponding wake-up input has no wake-up effect."]
677    #[inline(always)]
678    pub fn disable(self) -> &'a mut W {
679        self.variant(WKUPEN12_A::DISABLE)
680    }
681    #[doc = "The corresponding wake-up input forces the wake-up of the core power supply."]
682    #[inline(always)]
683    pub fn enable(self) -> &'a mut W {
684        self.variant(WKUPEN12_A::ENABLE)
685    }
686}
687#[doc = "Field `WKUPEN13` reader - Wake-up Input Enable 13"]
688pub type WKUPEN13_R = crate::BitReader<WKUPEN13_A>;
689#[doc = "Wake-up Input Enable 13\n\nValue on reset: 0"]
690#[derive(Clone, Copy, Debug, PartialEq, Eq)]
691pub enum WKUPEN13_A {
692    #[doc = "0: The corresponding wake-up input has no wake-up effect."]
693    DISABLE = 0,
694    #[doc = "1: The corresponding wake-up input forces the wake-up of the core power supply."]
695    ENABLE = 1,
696}
697impl From<WKUPEN13_A> for bool {
698    #[inline(always)]
699    fn from(variant: WKUPEN13_A) -> Self {
700        variant as u8 != 0
701    }
702}
703impl WKUPEN13_R {
704    #[doc = "Get enumerated values variant"]
705    #[inline(always)]
706    pub fn variant(&self) -> WKUPEN13_A {
707        match self.bits {
708            false => WKUPEN13_A::DISABLE,
709            true => WKUPEN13_A::ENABLE,
710        }
711    }
712    #[doc = "Checks if the value of the field is `DISABLE`"]
713    #[inline(always)]
714    pub fn is_disable(&self) -> bool {
715        *self == WKUPEN13_A::DISABLE
716    }
717    #[doc = "Checks if the value of the field is `ENABLE`"]
718    #[inline(always)]
719    pub fn is_enable(&self) -> bool {
720        *self == WKUPEN13_A::ENABLE
721    }
722}
723#[doc = "Field `WKUPEN13` writer - Wake-up Input Enable 13"]
724pub type WKUPEN13_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUIR_SPEC, WKUPEN13_A, O>;
725impl<'a, const O: u8> WKUPEN13_W<'a, O> {
726    #[doc = "The corresponding wake-up input has no wake-up effect."]
727    #[inline(always)]
728    pub fn disable(self) -> &'a mut W {
729        self.variant(WKUPEN13_A::DISABLE)
730    }
731    #[doc = "The corresponding wake-up input forces the wake-up of the core power supply."]
732    #[inline(always)]
733    pub fn enable(self) -> &'a mut W {
734        self.variant(WKUPEN13_A::ENABLE)
735    }
736}
737#[doc = "Field `WKUPEN14` reader - Wake-up Input Enable 14"]
738pub type WKUPEN14_R = crate::BitReader<WKUPEN14_A>;
739#[doc = "Wake-up Input Enable 14\n\nValue on reset: 0"]
740#[derive(Clone, Copy, Debug, PartialEq, Eq)]
741pub enum WKUPEN14_A {
742    #[doc = "0: The corresponding wake-up input has no wake-up effect."]
743    DISABLE = 0,
744    #[doc = "1: The corresponding wake-up input forces the wake-up of the core power supply."]
745    ENABLE = 1,
746}
747impl From<WKUPEN14_A> for bool {
748    #[inline(always)]
749    fn from(variant: WKUPEN14_A) -> Self {
750        variant as u8 != 0
751    }
752}
753impl WKUPEN14_R {
754    #[doc = "Get enumerated values variant"]
755    #[inline(always)]
756    pub fn variant(&self) -> WKUPEN14_A {
757        match self.bits {
758            false => WKUPEN14_A::DISABLE,
759            true => WKUPEN14_A::ENABLE,
760        }
761    }
762    #[doc = "Checks if the value of the field is `DISABLE`"]
763    #[inline(always)]
764    pub fn is_disable(&self) -> bool {
765        *self == WKUPEN14_A::DISABLE
766    }
767    #[doc = "Checks if the value of the field is `ENABLE`"]
768    #[inline(always)]
769    pub fn is_enable(&self) -> bool {
770        *self == WKUPEN14_A::ENABLE
771    }
772}
773#[doc = "Field `WKUPEN14` writer - Wake-up Input Enable 14"]
774pub type WKUPEN14_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUIR_SPEC, WKUPEN14_A, O>;
775impl<'a, const O: u8> WKUPEN14_W<'a, O> {
776    #[doc = "The corresponding wake-up input has no wake-up effect."]
777    #[inline(always)]
778    pub fn disable(self) -> &'a mut W {
779        self.variant(WKUPEN14_A::DISABLE)
780    }
781    #[doc = "The corresponding wake-up input forces the wake-up of the core power supply."]
782    #[inline(always)]
783    pub fn enable(self) -> &'a mut W {
784        self.variant(WKUPEN14_A::ENABLE)
785    }
786}
787#[doc = "Field `WKUPEN15` reader - Wake-up Input Enable 15"]
788pub type WKUPEN15_R = crate::BitReader<WKUPEN15_A>;
789#[doc = "Wake-up Input Enable 15\n\nValue on reset: 0"]
790#[derive(Clone, Copy, Debug, PartialEq, Eq)]
791pub enum WKUPEN15_A {
792    #[doc = "0: The corresponding wake-up input has no wake-up effect."]
793    DISABLE = 0,
794    #[doc = "1: The corresponding wake-up input forces the wake-up of the core power supply."]
795    ENABLE = 1,
796}
797impl From<WKUPEN15_A> for bool {
798    #[inline(always)]
799    fn from(variant: WKUPEN15_A) -> Self {
800        variant as u8 != 0
801    }
802}
803impl WKUPEN15_R {
804    #[doc = "Get enumerated values variant"]
805    #[inline(always)]
806    pub fn variant(&self) -> WKUPEN15_A {
807        match self.bits {
808            false => WKUPEN15_A::DISABLE,
809            true => WKUPEN15_A::ENABLE,
810        }
811    }
812    #[doc = "Checks if the value of the field is `DISABLE`"]
813    #[inline(always)]
814    pub fn is_disable(&self) -> bool {
815        *self == WKUPEN15_A::DISABLE
816    }
817    #[doc = "Checks if the value of the field is `ENABLE`"]
818    #[inline(always)]
819    pub fn is_enable(&self) -> bool {
820        *self == WKUPEN15_A::ENABLE
821    }
822}
823#[doc = "Field `WKUPEN15` writer - Wake-up Input Enable 15"]
824pub type WKUPEN15_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUIR_SPEC, WKUPEN15_A, O>;
825impl<'a, const O: u8> WKUPEN15_W<'a, O> {
826    #[doc = "The corresponding wake-up input has no wake-up effect."]
827    #[inline(always)]
828    pub fn disable(self) -> &'a mut W {
829        self.variant(WKUPEN15_A::DISABLE)
830    }
831    #[doc = "The corresponding wake-up input forces the wake-up of the core power supply."]
832    #[inline(always)]
833    pub fn enable(self) -> &'a mut W {
834        self.variant(WKUPEN15_A::ENABLE)
835    }
836}
837#[doc = "Field `WKUPT0` reader - Wake-up Input Type 0"]
838pub type WKUPT0_R = crate::BitReader<WKUPT0_A>;
839#[doc = "Wake-up Input Type 0\n\nValue on reset: 0"]
840#[derive(Clone, Copy, Debug, PartialEq, Eq)]
841pub enum WKUPT0_A {
842    #[doc = "0: A low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply."]
843    LOW = 0,
844    #[doc = "1: A high level for a period defined by WKUPDBC on the correspond-ing wake-up input forces the wake-up of the core power supply."]
845    HIGH = 1,
846}
847impl From<WKUPT0_A> for bool {
848    #[inline(always)]
849    fn from(variant: WKUPT0_A) -> Self {
850        variant as u8 != 0
851    }
852}
853impl WKUPT0_R {
854    #[doc = "Get enumerated values variant"]
855    #[inline(always)]
856    pub fn variant(&self) -> WKUPT0_A {
857        match self.bits {
858            false => WKUPT0_A::LOW,
859            true => WKUPT0_A::HIGH,
860        }
861    }
862    #[doc = "Checks if the value of the field is `LOW`"]
863    #[inline(always)]
864    pub fn is_low(&self) -> bool {
865        *self == WKUPT0_A::LOW
866    }
867    #[doc = "Checks if the value of the field is `HIGH`"]
868    #[inline(always)]
869    pub fn is_high(&self) -> bool {
870        *self == WKUPT0_A::HIGH
871    }
872}
873#[doc = "Field `WKUPT0` writer - Wake-up Input Type 0"]
874pub type WKUPT0_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUIR_SPEC, WKUPT0_A, O>;
875impl<'a, const O: u8> WKUPT0_W<'a, O> {
876    #[doc = "A low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply."]
877    #[inline(always)]
878    pub fn low(self) -> &'a mut W {
879        self.variant(WKUPT0_A::LOW)
880    }
881    #[doc = "A high level for a period defined by WKUPDBC on the correspond-ing wake-up input forces the wake-up of the core power supply."]
882    #[inline(always)]
883    pub fn high(self) -> &'a mut W {
884        self.variant(WKUPT0_A::HIGH)
885    }
886}
887#[doc = "Field `WKUPT1` reader - Wake-up Input Type 1"]
888pub type WKUPT1_R = crate::BitReader<WKUPT1_A>;
889#[doc = "Wake-up Input Type 1\n\nValue on reset: 0"]
890#[derive(Clone, Copy, Debug, PartialEq, Eq)]
891pub enum WKUPT1_A {
892    #[doc = "0: A low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply."]
893    LOW = 0,
894    #[doc = "1: A high level for a period defined by WKUPDBC on the correspond-ing wake-up input forces the wake-up of the core power supply."]
895    HIGH = 1,
896}
897impl From<WKUPT1_A> for bool {
898    #[inline(always)]
899    fn from(variant: WKUPT1_A) -> Self {
900        variant as u8 != 0
901    }
902}
903impl WKUPT1_R {
904    #[doc = "Get enumerated values variant"]
905    #[inline(always)]
906    pub fn variant(&self) -> WKUPT1_A {
907        match self.bits {
908            false => WKUPT1_A::LOW,
909            true => WKUPT1_A::HIGH,
910        }
911    }
912    #[doc = "Checks if the value of the field is `LOW`"]
913    #[inline(always)]
914    pub fn is_low(&self) -> bool {
915        *self == WKUPT1_A::LOW
916    }
917    #[doc = "Checks if the value of the field is `HIGH`"]
918    #[inline(always)]
919    pub fn is_high(&self) -> bool {
920        *self == WKUPT1_A::HIGH
921    }
922}
923#[doc = "Field `WKUPT1` writer - Wake-up Input Type 1"]
924pub type WKUPT1_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUIR_SPEC, WKUPT1_A, O>;
925impl<'a, const O: u8> WKUPT1_W<'a, O> {
926    #[doc = "A low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply."]
927    #[inline(always)]
928    pub fn low(self) -> &'a mut W {
929        self.variant(WKUPT1_A::LOW)
930    }
931    #[doc = "A high level for a period defined by WKUPDBC on the correspond-ing wake-up input forces the wake-up of the core power supply."]
932    #[inline(always)]
933    pub fn high(self) -> &'a mut W {
934        self.variant(WKUPT1_A::HIGH)
935    }
936}
937#[doc = "Field `WKUPT2` reader - Wake-up Input Type 2"]
938pub type WKUPT2_R = crate::BitReader<WKUPT2_A>;
939#[doc = "Wake-up Input Type 2\n\nValue on reset: 0"]
940#[derive(Clone, Copy, Debug, PartialEq, Eq)]
941pub enum WKUPT2_A {
942    #[doc = "0: A low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply."]
943    LOW = 0,
944    #[doc = "1: A high level for a period defined by WKUPDBC on the correspond-ing wake-up input forces the wake-up of the core power supply."]
945    HIGH = 1,
946}
947impl From<WKUPT2_A> for bool {
948    #[inline(always)]
949    fn from(variant: WKUPT2_A) -> Self {
950        variant as u8 != 0
951    }
952}
953impl WKUPT2_R {
954    #[doc = "Get enumerated values variant"]
955    #[inline(always)]
956    pub fn variant(&self) -> WKUPT2_A {
957        match self.bits {
958            false => WKUPT2_A::LOW,
959            true => WKUPT2_A::HIGH,
960        }
961    }
962    #[doc = "Checks if the value of the field is `LOW`"]
963    #[inline(always)]
964    pub fn is_low(&self) -> bool {
965        *self == WKUPT2_A::LOW
966    }
967    #[doc = "Checks if the value of the field is `HIGH`"]
968    #[inline(always)]
969    pub fn is_high(&self) -> bool {
970        *self == WKUPT2_A::HIGH
971    }
972}
973#[doc = "Field `WKUPT2` writer - Wake-up Input Type 2"]
974pub type WKUPT2_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUIR_SPEC, WKUPT2_A, O>;
975impl<'a, const O: u8> WKUPT2_W<'a, O> {
976    #[doc = "A low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply."]
977    #[inline(always)]
978    pub fn low(self) -> &'a mut W {
979        self.variant(WKUPT2_A::LOW)
980    }
981    #[doc = "A high level for a period defined by WKUPDBC on the correspond-ing wake-up input forces the wake-up of the core power supply."]
982    #[inline(always)]
983    pub fn high(self) -> &'a mut W {
984        self.variant(WKUPT2_A::HIGH)
985    }
986}
987#[doc = "Field `WKUPT3` reader - Wake-up Input Type 3"]
988pub type WKUPT3_R = crate::BitReader<WKUPT3_A>;
989#[doc = "Wake-up Input Type 3\n\nValue on reset: 0"]
990#[derive(Clone, Copy, Debug, PartialEq, Eq)]
991pub enum WKUPT3_A {
992    #[doc = "0: A low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply."]
993    LOW = 0,
994    #[doc = "1: A high level for a period defined by WKUPDBC on the correspond-ing wake-up input forces the wake-up of the core power supply."]
995    HIGH = 1,
996}
997impl From<WKUPT3_A> for bool {
998    #[inline(always)]
999    fn from(variant: WKUPT3_A) -> Self {
1000        variant as u8 != 0
1001    }
1002}
1003impl WKUPT3_R {
1004    #[doc = "Get enumerated values variant"]
1005    #[inline(always)]
1006    pub fn variant(&self) -> WKUPT3_A {
1007        match self.bits {
1008            false => WKUPT3_A::LOW,
1009            true => WKUPT3_A::HIGH,
1010        }
1011    }
1012    #[doc = "Checks if the value of the field is `LOW`"]
1013    #[inline(always)]
1014    pub fn is_low(&self) -> bool {
1015        *self == WKUPT3_A::LOW
1016    }
1017    #[doc = "Checks if the value of the field is `HIGH`"]
1018    #[inline(always)]
1019    pub fn is_high(&self) -> bool {
1020        *self == WKUPT3_A::HIGH
1021    }
1022}
1023#[doc = "Field `WKUPT3` writer - Wake-up Input Type 3"]
1024pub type WKUPT3_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUIR_SPEC, WKUPT3_A, O>;
1025impl<'a, const O: u8> WKUPT3_W<'a, O> {
1026    #[doc = "A low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply."]
1027    #[inline(always)]
1028    pub fn low(self) -> &'a mut W {
1029        self.variant(WKUPT3_A::LOW)
1030    }
1031    #[doc = "A high level for a period defined by WKUPDBC on the correspond-ing wake-up input forces the wake-up of the core power supply."]
1032    #[inline(always)]
1033    pub fn high(self) -> &'a mut W {
1034        self.variant(WKUPT3_A::HIGH)
1035    }
1036}
1037#[doc = "Field `WKUPT4` reader - Wake-up Input Type 4"]
1038pub type WKUPT4_R = crate::BitReader<WKUPT4_A>;
1039#[doc = "Wake-up Input Type 4\n\nValue on reset: 0"]
1040#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1041pub enum WKUPT4_A {
1042    #[doc = "0: A low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply."]
1043    LOW = 0,
1044    #[doc = "1: A high level for a period defined by WKUPDBC on the correspond-ing wake-up input forces the wake-up of the core power supply."]
1045    HIGH = 1,
1046}
1047impl From<WKUPT4_A> for bool {
1048    #[inline(always)]
1049    fn from(variant: WKUPT4_A) -> Self {
1050        variant as u8 != 0
1051    }
1052}
1053impl WKUPT4_R {
1054    #[doc = "Get enumerated values variant"]
1055    #[inline(always)]
1056    pub fn variant(&self) -> WKUPT4_A {
1057        match self.bits {
1058            false => WKUPT4_A::LOW,
1059            true => WKUPT4_A::HIGH,
1060        }
1061    }
1062    #[doc = "Checks if the value of the field is `LOW`"]
1063    #[inline(always)]
1064    pub fn is_low(&self) -> bool {
1065        *self == WKUPT4_A::LOW
1066    }
1067    #[doc = "Checks if the value of the field is `HIGH`"]
1068    #[inline(always)]
1069    pub fn is_high(&self) -> bool {
1070        *self == WKUPT4_A::HIGH
1071    }
1072}
1073#[doc = "Field `WKUPT4` writer - Wake-up Input Type 4"]
1074pub type WKUPT4_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUIR_SPEC, WKUPT4_A, O>;
1075impl<'a, const O: u8> WKUPT4_W<'a, O> {
1076    #[doc = "A low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply."]
1077    #[inline(always)]
1078    pub fn low(self) -> &'a mut W {
1079        self.variant(WKUPT4_A::LOW)
1080    }
1081    #[doc = "A high level for a period defined by WKUPDBC on the correspond-ing wake-up input forces the wake-up of the core power supply."]
1082    #[inline(always)]
1083    pub fn high(self) -> &'a mut W {
1084        self.variant(WKUPT4_A::HIGH)
1085    }
1086}
1087#[doc = "Field `WKUPT5` reader - Wake-up Input Type 5"]
1088pub type WKUPT5_R = crate::BitReader<WKUPT5_A>;
1089#[doc = "Wake-up Input Type 5\n\nValue on reset: 0"]
1090#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1091pub enum WKUPT5_A {
1092    #[doc = "0: A low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply."]
1093    LOW = 0,
1094    #[doc = "1: A high level for a period defined by WKUPDBC on the correspond-ing wake-up input forces the wake-up of the core power supply."]
1095    HIGH = 1,
1096}
1097impl From<WKUPT5_A> for bool {
1098    #[inline(always)]
1099    fn from(variant: WKUPT5_A) -> Self {
1100        variant as u8 != 0
1101    }
1102}
1103impl WKUPT5_R {
1104    #[doc = "Get enumerated values variant"]
1105    #[inline(always)]
1106    pub fn variant(&self) -> WKUPT5_A {
1107        match self.bits {
1108            false => WKUPT5_A::LOW,
1109            true => WKUPT5_A::HIGH,
1110        }
1111    }
1112    #[doc = "Checks if the value of the field is `LOW`"]
1113    #[inline(always)]
1114    pub fn is_low(&self) -> bool {
1115        *self == WKUPT5_A::LOW
1116    }
1117    #[doc = "Checks if the value of the field is `HIGH`"]
1118    #[inline(always)]
1119    pub fn is_high(&self) -> bool {
1120        *self == WKUPT5_A::HIGH
1121    }
1122}
1123#[doc = "Field `WKUPT5` writer - Wake-up Input Type 5"]
1124pub type WKUPT5_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUIR_SPEC, WKUPT5_A, O>;
1125impl<'a, const O: u8> WKUPT5_W<'a, O> {
1126    #[doc = "A low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply."]
1127    #[inline(always)]
1128    pub fn low(self) -> &'a mut W {
1129        self.variant(WKUPT5_A::LOW)
1130    }
1131    #[doc = "A high level for a period defined by WKUPDBC on the correspond-ing wake-up input forces the wake-up of the core power supply."]
1132    #[inline(always)]
1133    pub fn high(self) -> &'a mut W {
1134        self.variant(WKUPT5_A::HIGH)
1135    }
1136}
1137#[doc = "Field `WKUPT6` reader - Wake-up Input Type 6"]
1138pub type WKUPT6_R = crate::BitReader<WKUPT6_A>;
1139#[doc = "Wake-up Input Type 6\n\nValue on reset: 0"]
1140#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1141pub enum WKUPT6_A {
1142    #[doc = "0: A low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply."]
1143    LOW = 0,
1144    #[doc = "1: A high level for a period defined by WKUPDBC on the correspond-ing wake-up input forces the wake-up of the core power supply."]
1145    HIGH = 1,
1146}
1147impl From<WKUPT6_A> for bool {
1148    #[inline(always)]
1149    fn from(variant: WKUPT6_A) -> Self {
1150        variant as u8 != 0
1151    }
1152}
1153impl WKUPT6_R {
1154    #[doc = "Get enumerated values variant"]
1155    #[inline(always)]
1156    pub fn variant(&self) -> WKUPT6_A {
1157        match self.bits {
1158            false => WKUPT6_A::LOW,
1159            true => WKUPT6_A::HIGH,
1160        }
1161    }
1162    #[doc = "Checks if the value of the field is `LOW`"]
1163    #[inline(always)]
1164    pub fn is_low(&self) -> bool {
1165        *self == WKUPT6_A::LOW
1166    }
1167    #[doc = "Checks if the value of the field is `HIGH`"]
1168    #[inline(always)]
1169    pub fn is_high(&self) -> bool {
1170        *self == WKUPT6_A::HIGH
1171    }
1172}
1173#[doc = "Field `WKUPT6` writer - Wake-up Input Type 6"]
1174pub type WKUPT6_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUIR_SPEC, WKUPT6_A, O>;
1175impl<'a, const O: u8> WKUPT6_W<'a, O> {
1176    #[doc = "A low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply."]
1177    #[inline(always)]
1178    pub fn low(self) -> &'a mut W {
1179        self.variant(WKUPT6_A::LOW)
1180    }
1181    #[doc = "A high level for a period defined by WKUPDBC on the correspond-ing wake-up input forces the wake-up of the core power supply."]
1182    #[inline(always)]
1183    pub fn high(self) -> &'a mut W {
1184        self.variant(WKUPT6_A::HIGH)
1185    }
1186}
1187#[doc = "Field `WKUPT7` reader - Wake-up Input Type 7"]
1188pub type WKUPT7_R = crate::BitReader<WKUPT7_A>;
1189#[doc = "Wake-up Input Type 7\n\nValue on reset: 0"]
1190#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1191pub enum WKUPT7_A {
1192    #[doc = "0: A low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply."]
1193    LOW = 0,
1194    #[doc = "1: A high level for a period defined by WKUPDBC on the correspond-ing wake-up input forces the wake-up of the core power supply."]
1195    HIGH = 1,
1196}
1197impl From<WKUPT7_A> for bool {
1198    #[inline(always)]
1199    fn from(variant: WKUPT7_A) -> Self {
1200        variant as u8 != 0
1201    }
1202}
1203impl WKUPT7_R {
1204    #[doc = "Get enumerated values variant"]
1205    #[inline(always)]
1206    pub fn variant(&self) -> WKUPT7_A {
1207        match self.bits {
1208            false => WKUPT7_A::LOW,
1209            true => WKUPT7_A::HIGH,
1210        }
1211    }
1212    #[doc = "Checks if the value of the field is `LOW`"]
1213    #[inline(always)]
1214    pub fn is_low(&self) -> bool {
1215        *self == WKUPT7_A::LOW
1216    }
1217    #[doc = "Checks if the value of the field is `HIGH`"]
1218    #[inline(always)]
1219    pub fn is_high(&self) -> bool {
1220        *self == WKUPT7_A::HIGH
1221    }
1222}
1223#[doc = "Field `WKUPT7` writer - Wake-up Input Type 7"]
1224pub type WKUPT7_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUIR_SPEC, WKUPT7_A, O>;
1225impl<'a, const O: u8> WKUPT7_W<'a, O> {
1226    #[doc = "A low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply."]
1227    #[inline(always)]
1228    pub fn low(self) -> &'a mut W {
1229        self.variant(WKUPT7_A::LOW)
1230    }
1231    #[doc = "A high level for a period defined by WKUPDBC on the correspond-ing wake-up input forces the wake-up of the core power supply."]
1232    #[inline(always)]
1233    pub fn high(self) -> &'a mut W {
1234        self.variant(WKUPT7_A::HIGH)
1235    }
1236}
1237#[doc = "Field `WKUPT8` reader - Wake-up Input Type 8"]
1238pub type WKUPT8_R = crate::BitReader<WKUPT8_A>;
1239#[doc = "Wake-up Input Type 8\n\nValue on reset: 0"]
1240#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1241pub enum WKUPT8_A {
1242    #[doc = "0: A low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply."]
1243    LOW = 0,
1244    #[doc = "1: A high level for a period defined by WKUPDBC on the correspond-ing wake-up input forces the wake-up of the core power supply."]
1245    HIGH = 1,
1246}
1247impl From<WKUPT8_A> for bool {
1248    #[inline(always)]
1249    fn from(variant: WKUPT8_A) -> Self {
1250        variant as u8 != 0
1251    }
1252}
1253impl WKUPT8_R {
1254    #[doc = "Get enumerated values variant"]
1255    #[inline(always)]
1256    pub fn variant(&self) -> WKUPT8_A {
1257        match self.bits {
1258            false => WKUPT8_A::LOW,
1259            true => WKUPT8_A::HIGH,
1260        }
1261    }
1262    #[doc = "Checks if the value of the field is `LOW`"]
1263    #[inline(always)]
1264    pub fn is_low(&self) -> bool {
1265        *self == WKUPT8_A::LOW
1266    }
1267    #[doc = "Checks if the value of the field is `HIGH`"]
1268    #[inline(always)]
1269    pub fn is_high(&self) -> bool {
1270        *self == WKUPT8_A::HIGH
1271    }
1272}
1273#[doc = "Field `WKUPT8` writer - Wake-up Input Type 8"]
1274pub type WKUPT8_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUIR_SPEC, WKUPT8_A, O>;
1275impl<'a, const O: u8> WKUPT8_W<'a, O> {
1276    #[doc = "A low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply."]
1277    #[inline(always)]
1278    pub fn low(self) -> &'a mut W {
1279        self.variant(WKUPT8_A::LOW)
1280    }
1281    #[doc = "A high level for a period defined by WKUPDBC on the correspond-ing wake-up input forces the wake-up of the core power supply."]
1282    #[inline(always)]
1283    pub fn high(self) -> &'a mut W {
1284        self.variant(WKUPT8_A::HIGH)
1285    }
1286}
1287#[doc = "Field `WKUPT9` reader - Wake-up Input Type 9"]
1288pub type WKUPT9_R = crate::BitReader<WKUPT9_A>;
1289#[doc = "Wake-up Input Type 9\n\nValue on reset: 0"]
1290#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1291pub enum WKUPT9_A {
1292    #[doc = "0: A low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply."]
1293    LOW = 0,
1294    #[doc = "1: A high level for a period defined by WKUPDBC on the correspond-ing wake-up input forces the wake-up of the core power supply."]
1295    HIGH = 1,
1296}
1297impl From<WKUPT9_A> for bool {
1298    #[inline(always)]
1299    fn from(variant: WKUPT9_A) -> Self {
1300        variant as u8 != 0
1301    }
1302}
1303impl WKUPT9_R {
1304    #[doc = "Get enumerated values variant"]
1305    #[inline(always)]
1306    pub fn variant(&self) -> WKUPT9_A {
1307        match self.bits {
1308            false => WKUPT9_A::LOW,
1309            true => WKUPT9_A::HIGH,
1310        }
1311    }
1312    #[doc = "Checks if the value of the field is `LOW`"]
1313    #[inline(always)]
1314    pub fn is_low(&self) -> bool {
1315        *self == WKUPT9_A::LOW
1316    }
1317    #[doc = "Checks if the value of the field is `HIGH`"]
1318    #[inline(always)]
1319    pub fn is_high(&self) -> bool {
1320        *self == WKUPT9_A::HIGH
1321    }
1322}
1323#[doc = "Field `WKUPT9` writer - Wake-up Input Type 9"]
1324pub type WKUPT9_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUIR_SPEC, WKUPT9_A, O>;
1325impl<'a, const O: u8> WKUPT9_W<'a, O> {
1326    #[doc = "A low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply."]
1327    #[inline(always)]
1328    pub fn low(self) -> &'a mut W {
1329        self.variant(WKUPT9_A::LOW)
1330    }
1331    #[doc = "A high level for a period defined by WKUPDBC on the correspond-ing wake-up input forces the wake-up of the core power supply."]
1332    #[inline(always)]
1333    pub fn high(self) -> &'a mut W {
1334        self.variant(WKUPT9_A::HIGH)
1335    }
1336}
1337#[doc = "Field `WKUPT10` reader - Wake-up Input Type 10"]
1338pub type WKUPT10_R = crate::BitReader<WKUPT10_A>;
1339#[doc = "Wake-up Input Type 10\n\nValue on reset: 0"]
1340#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1341pub enum WKUPT10_A {
1342    #[doc = "0: A low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply."]
1343    LOW = 0,
1344    #[doc = "1: A high level for a period defined by WKUPDBC on the correspond-ing wake-up input forces the wake-up of the core power supply."]
1345    HIGH = 1,
1346}
1347impl From<WKUPT10_A> for bool {
1348    #[inline(always)]
1349    fn from(variant: WKUPT10_A) -> Self {
1350        variant as u8 != 0
1351    }
1352}
1353impl WKUPT10_R {
1354    #[doc = "Get enumerated values variant"]
1355    #[inline(always)]
1356    pub fn variant(&self) -> WKUPT10_A {
1357        match self.bits {
1358            false => WKUPT10_A::LOW,
1359            true => WKUPT10_A::HIGH,
1360        }
1361    }
1362    #[doc = "Checks if the value of the field is `LOW`"]
1363    #[inline(always)]
1364    pub fn is_low(&self) -> bool {
1365        *self == WKUPT10_A::LOW
1366    }
1367    #[doc = "Checks if the value of the field is `HIGH`"]
1368    #[inline(always)]
1369    pub fn is_high(&self) -> bool {
1370        *self == WKUPT10_A::HIGH
1371    }
1372}
1373#[doc = "Field `WKUPT10` writer - Wake-up Input Type 10"]
1374pub type WKUPT10_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUIR_SPEC, WKUPT10_A, O>;
1375impl<'a, const O: u8> WKUPT10_W<'a, O> {
1376    #[doc = "A low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply."]
1377    #[inline(always)]
1378    pub fn low(self) -> &'a mut W {
1379        self.variant(WKUPT10_A::LOW)
1380    }
1381    #[doc = "A high level for a period defined by WKUPDBC on the correspond-ing wake-up input forces the wake-up of the core power supply."]
1382    #[inline(always)]
1383    pub fn high(self) -> &'a mut W {
1384        self.variant(WKUPT10_A::HIGH)
1385    }
1386}
1387#[doc = "Field `WKUPT11` reader - Wake-up Input Type 11"]
1388pub type WKUPT11_R = crate::BitReader<WKUPT11_A>;
1389#[doc = "Wake-up Input Type 11\n\nValue on reset: 0"]
1390#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1391pub enum WKUPT11_A {
1392    #[doc = "0: A low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply."]
1393    LOW = 0,
1394    #[doc = "1: A high level for a period defined by WKUPDBC on the correspond-ing wake-up input forces the wake-up of the core power supply."]
1395    HIGH = 1,
1396}
1397impl From<WKUPT11_A> for bool {
1398    #[inline(always)]
1399    fn from(variant: WKUPT11_A) -> Self {
1400        variant as u8 != 0
1401    }
1402}
1403impl WKUPT11_R {
1404    #[doc = "Get enumerated values variant"]
1405    #[inline(always)]
1406    pub fn variant(&self) -> WKUPT11_A {
1407        match self.bits {
1408            false => WKUPT11_A::LOW,
1409            true => WKUPT11_A::HIGH,
1410        }
1411    }
1412    #[doc = "Checks if the value of the field is `LOW`"]
1413    #[inline(always)]
1414    pub fn is_low(&self) -> bool {
1415        *self == WKUPT11_A::LOW
1416    }
1417    #[doc = "Checks if the value of the field is `HIGH`"]
1418    #[inline(always)]
1419    pub fn is_high(&self) -> bool {
1420        *self == WKUPT11_A::HIGH
1421    }
1422}
1423#[doc = "Field `WKUPT11` writer - Wake-up Input Type 11"]
1424pub type WKUPT11_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUIR_SPEC, WKUPT11_A, O>;
1425impl<'a, const O: u8> WKUPT11_W<'a, O> {
1426    #[doc = "A low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply."]
1427    #[inline(always)]
1428    pub fn low(self) -> &'a mut W {
1429        self.variant(WKUPT11_A::LOW)
1430    }
1431    #[doc = "A high level for a period defined by WKUPDBC on the correspond-ing wake-up input forces the wake-up of the core power supply."]
1432    #[inline(always)]
1433    pub fn high(self) -> &'a mut W {
1434        self.variant(WKUPT11_A::HIGH)
1435    }
1436}
1437#[doc = "Field `WKUPT12` reader - Wake-up Input Type 12"]
1438pub type WKUPT12_R = crate::BitReader<WKUPT12_A>;
1439#[doc = "Wake-up Input Type 12\n\nValue on reset: 0"]
1440#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1441pub enum WKUPT12_A {
1442    #[doc = "0: A low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply."]
1443    LOW = 0,
1444    #[doc = "1: A high level for a period defined by WKUPDBC on the correspond-ing wake-up input forces the wake-up of the core power supply."]
1445    HIGH = 1,
1446}
1447impl From<WKUPT12_A> for bool {
1448    #[inline(always)]
1449    fn from(variant: WKUPT12_A) -> Self {
1450        variant as u8 != 0
1451    }
1452}
1453impl WKUPT12_R {
1454    #[doc = "Get enumerated values variant"]
1455    #[inline(always)]
1456    pub fn variant(&self) -> WKUPT12_A {
1457        match self.bits {
1458            false => WKUPT12_A::LOW,
1459            true => WKUPT12_A::HIGH,
1460        }
1461    }
1462    #[doc = "Checks if the value of the field is `LOW`"]
1463    #[inline(always)]
1464    pub fn is_low(&self) -> bool {
1465        *self == WKUPT12_A::LOW
1466    }
1467    #[doc = "Checks if the value of the field is `HIGH`"]
1468    #[inline(always)]
1469    pub fn is_high(&self) -> bool {
1470        *self == WKUPT12_A::HIGH
1471    }
1472}
1473#[doc = "Field `WKUPT12` writer - Wake-up Input Type 12"]
1474pub type WKUPT12_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUIR_SPEC, WKUPT12_A, O>;
1475impl<'a, const O: u8> WKUPT12_W<'a, O> {
1476    #[doc = "A low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply."]
1477    #[inline(always)]
1478    pub fn low(self) -> &'a mut W {
1479        self.variant(WKUPT12_A::LOW)
1480    }
1481    #[doc = "A high level for a period defined by WKUPDBC on the correspond-ing wake-up input forces the wake-up of the core power supply."]
1482    #[inline(always)]
1483    pub fn high(self) -> &'a mut W {
1484        self.variant(WKUPT12_A::HIGH)
1485    }
1486}
1487#[doc = "Field `WKUPT13` reader - Wake-up Input Type 13"]
1488pub type WKUPT13_R = crate::BitReader<WKUPT13_A>;
1489#[doc = "Wake-up Input Type 13\n\nValue on reset: 0"]
1490#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1491pub enum WKUPT13_A {
1492    #[doc = "0: A low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply."]
1493    LOW = 0,
1494    #[doc = "1: A high level for a period defined by WKUPDBC on the correspond-ing wake-up input forces the wake-up of the core power supply."]
1495    HIGH = 1,
1496}
1497impl From<WKUPT13_A> for bool {
1498    #[inline(always)]
1499    fn from(variant: WKUPT13_A) -> Self {
1500        variant as u8 != 0
1501    }
1502}
1503impl WKUPT13_R {
1504    #[doc = "Get enumerated values variant"]
1505    #[inline(always)]
1506    pub fn variant(&self) -> WKUPT13_A {
1507        match self.bits {
1508            false => WKUPT13_A::LOW,
1509            true => WKUPT13_A::HIGH,
1510        }
1511    }
1512    #[doc = "Checks if the value of the field is `LOW`"]
1513    #[inline(always)]
1514    pub fn is_low(&self) -> bool {
1515        *self == WKUPT13_A::LOW
1516    }
1517    #[doc = "Checks if the value of the field is `HIGH`"]
1518    #[inline(always)]
1519    pub fn is_high(&self) -> bool {
1520        *self == WKUPT13_A::HIGH
1521    }
1522}
1523#[doc = "Field `WKUPT13` writer - Wake-up Input Type 13"]
1524pub type WKUPT13_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUIR_SPEC, WKUPT13_A, O>;
1525impl<'a, const O: u8> WKUPT13_W<'a, O> {
1526    #[doc = "A low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply."]
1527    #[inline(always)]
1528    pub fn low(self) -> &'a mut W {
1529        self.variant(WKUPT13_A::LOW)
1530    }
1531    #[doc = "A high level for a period defined by WKUPDBC on the correspond-ing wake-up input forces the wake-up of the core power supply."]
1532    #[inline(always)]
1533    pub fn high(self) -> &'a mut W {
1534        self.variant(WKUPT13_A::HIGH)
1535    }
1536}
1537#[doc = "Field `WKUPT14` reader - Wake-up Input Type 14"]
1538pub type WKUPT14_R = crate::BitReader<WKUPT14_A>;
1539#[doc = "Wake-up Input Type 14\n\nValue on reset: 0"]
1540#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1541pub enum WKUPT14_A {
1542    #[doc = "0: A low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply."]
1543    LOW = 0,
1544    #[doc = "1: A high level for a period defined by WKUPDBC on the correspond-ing wake-up input forces the wake-up of the core power supply."]
1545    HIGH = 1,
1546}
1547impl From<WKUPT14_A> for bool {
1548    #[inline(always)]
1549    fn from(variant: WKUPT14_A) -> Self {
1550        variant as u8 != 0
1551    }
1552}
1553impl WKUPT14_R {
1554    #[doc = "Get enumerated values variant"]
1555    #[inline(always)]
1556    pub fn variant(&self) -> WKUPT14_A {
1557        match self.bits {
1558            false => WKUPT14_A::LOW,
1559            true => WKUPT14_A::HIGH,
1560        }
1561    }
1562    #[doc = "Checks if the value of the field is `LOW`"]
1563    #[inline(always)]
1564    pub fn is_low(&self) -> bool {
1565        *self == WKUPT14_A::LOW
1566    }
1567    #[doc = "Checks if the value of the field is `HIGH`"]
1568    #[inline(always)]
1569    pub fn is_high(&self) -> bool {
1570        *self == WKUPT14_A::HIGH
1571    }
1572}
1573#[doc = "Field `WKUPT14` writer - Wake-up Input Type 14"]
1574pub type WKUPT14_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUIR_SPEC, WKUPT14_A, O>;
1575impl<'a, const O: u8> WKUPT14_W<'a, O> {
1576    #[doc = "A low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply."]
1577    #[inline(always)]
1578    pub fn low(self) -> &'a mut W {
1579        self.variant(WKUPT14_A::LOW)
1580    }
1581    #[doc = "A high level for a period defined by WKUPDBC on the correspond-ing wake-up input forces the wake-up of the core power supply."]
1582    #[inline(always)]
1583    pub fn high(self) -> &'a mut W {
1584        self.variant(WKUPT14_A::HIGH)
1585    }
1586}
1587#[doc = "Field `WKUPT15` reader - Wake-up Input Type 15"]
1588pub type WKUPT15_R = crate::BitReader<WKUPT15_A>;
1589#[doc = "Wake-up Input Type 15\n\nValue on reset: 0"]
1590#[derive(Clone, Copy, Debug, PartialEq, Eq)]
1591pub enum WKUPT15_A {
1592    #[doc = "0: A low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply."]
1593    LOW = 0,
1594    #[doc = "1: A high level for a period defined by WKUPDBC on the correspond-ing wake-up input forces the wake-up of the core power supply."]
1595    HIGH = 1,
1596}
1597impl From<WKUPT15_A> for bool {
1598    #[inline(always)]
1599    fn from(variant: WKUPT15_A) -> Self {
1600        variant as u8 != 0
1601    }
1602}
1603impl WKUPT15_R {
1604    #[doc = "Get enumerated values variant"]
1605    #[inline(always)]
1606    pub fn variant(&self) -> WKUPT15_A {
1607        match self.bits {
1608            false => WKUPT15_A::LOW,
1609            true => WKUPT15_A::HIGH,
1610        }
1611    }
1612    #[doc = "Checks if the value of the field is `LOW`"]
1613    #[inline(always)]
1614    pub fn is_low(&self) -> bool {
1615        *self == WKUPT15_A::LOW
1616    }
1617    #[doc = "Checks if the value of the field is `HIGH`"]
1618    #[inline(always)]
1619    pub fn is_high(&self) -> bool {
1620        *self == WKUPT15_A::HIGH
1621    }
1622}
1623#[doc = "Field `WKUPT15` writer - Wake-up Input Type 15"]
1624pub type WKUPT15_W<'a, const O: u8> = crate::BitWriter<'a, u32, WUIR_SPEC, WKUPT15_A, O>;
1625impl<'a, const O: u8> WKUPT15_W<'a, O> {
1626    #[doc = "A low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply."]
1627    #[inline(always)]
1628    pub fn low(self) -> &'a mut W {
1629        self.variant(WKUPT15_A::LOW)
1630    }
1631    #[doc = "A high level for a period defined by WKUPDBC on the correspond-ing wake-up input forces the wake-up of the core power supply."]
1632    #[inline(always)]
1633    pub fn high(self) -> &'a mut W {
1634        self.variant(WKUPT15_A::HIGH)
1635    }
1636}
1637impl R {
1638    #[doc = "Bit 0 - Wake-up Input Enable 0"]
1639    #[inline(always)]
1640    pub fn wkupen0(&self) -> WKUPEN0_R {
1641        WKUPEN0_R::new((self.bits & 1) != 0)
1642    }
1643    #[doc = "Bit 1 - Wake-up Input Enable 1"]
1644    #[inline(always)]
1645    pub fn wkupen1(&self) -> WKUPEN1_R {
1646        WKUPEN1_R::new(((self.bits >> 1) & 1) != 0)
1647    }
1648    #[doc = "Bit 2 - Wake-up Input Enable 2"]
1649    #[inline(always)]
1650    pub fn wkupen2(&self) -> WKUPEN2_R {
1651        WKUPEN2_R::new(((self.bits >> 2) & 1) != 0)
1652    }
1653    #[doc = "Bit 3 - Wake-up Input Enable 3"]
1654    #[inline(always)]
1655    pub fn wkupen3(&self) -> WKUPEN3_R {
1656        WKUPEN3_R::new(((self.bits >> 3) & 1) != 0)
1657    }
1658    #[doc = "Bit 4 - Wake-up Input Enable 4"]
1659    #[inline(always)]
1660    pub fn wkupen4(&self) -> WKUPEN4_R {
1661        WKUPEN4_R::new(((self.bits >> 4) & 1) != 0)
1662    }
1663    #[doc = "Bit 5 - Wake-up Input Enable 5"]
1664    #[inline(always)]
1665    pub fn wkupen5(&self) -> WKUPEN5_R {
1666        WKUPEN5_R::new(((self.bits >> 5) & 1) != 0)
1667    }
1668    #[doc = "Bit 6 - Wake-up Input Enable 6"]
1669    #[inline(always)]
1670    pub fn wkupen6(&self) -> WKUPEN6_R {
1671        WKUPEN6_R::new(((self.bits >> 6) & 1) != 0)
1672    }
1673    #[doc = "Bit 7 - Wake-up Input Enable 7"]
1674    #[inline(always)]
1675    pub fn wkupen7(&self) -> WKUPEN7_R {
1676        WKUPEN7_R::new(((self.bits >> 7) & 1) != 0)
1677    }
1678    #[doc = "Bit 8 - Wake-up Input Enable 8"]
1679    #[inline(always)]
1680    pub fn wkupen8(&self) -> WKUPEN8_R {
1681        WKUPEN8_R::new(((self.bits >> 8) & 1) != 0)
1682    }
1683    #[doc = "Bit 9 - Wake-up Input Enable 9"]
1684    #[inline(always)]
1685    pub fn wkupen9(&self) -> WKUPEN9_R {
1686        WKUPEN9_R::new(((self.bits >> 9) & 1) != 0)
1687    }
1688    #[doc = "Bit 10 - Wake-up Input Enable 10"]
1689    #[inline(always)]
1690    pub fn wkupen10(&self) -> WKUPEN10_R {
1691        WKUPEN10_R::new(((self.bits >> 10) & 1) != 0)
1692    }
1693    #[doc = "Bit 11 - Wake-up Input Enable 11"]
1694    #[inline(always)]
1695    pub fn wkupen11(&self) -> WKUPEN11_R {
1696        WKUPEN11_R::new(((self.bits >> 11) & 1) != 0)
1697    }
1698    #[doc = "Bit 12 - Wake-up Input Enable 12"]
1699    #[inline(always)]
1700    pub fn wkupen12(&self) -> WKUPEN12_R {
1701        WKUPEN12_R::new(((self.bits >> 12) & 1) != 0)
1702    }
1703    #[doc = "Bit 13 - Wake-up Input Enable 13"]
1704    #[inline(always)]
1705    pub fn wkupen13(&self) -> WKUPEN13_R {
1706        WKUPEN13_R::new(((self.bits >> 13) & 1) != 0)
1707    }
1708    #[doc = "Bit 14 - Wake-up Input Enable 14"]
1709    #[inline(always)]
1710    pub fn wkupen14(&self) -> WKUPEN14_R {
1711        WKUPEN14_R::new(((self.bits >> 14) & 1) != 0)
1712    }
1713    #[doc = "Bit 15 - Wake-up Input Enable 15"]
1714    #[inline(always)]
1715    pub fn wkupen15(&self) -> WKUPEN15_R {
1716        WKUPEN15_R::new(((self.bits >> 15) & 1) != 0)
1717    }
1718    #[doc = "Bit 16 - Wake-up Input Type 0"]
1719    #[inline(always)]
1720    pub fn wkupt0(&self) -> WKUPT0_R {
1721        WKUPT0_R::new(((self.bits >> 16) & 1) != 0)
1722    }
1723    #[doc = "Bit 17 - Wake-up Input Type 1"]
1724    #[inline(always)]
1725    pub fn wkupt1(&self) -> WKUPT1_R {
1726        WKUPT1_R::new(((self.bits >> 17) & 1) != 0)
1727    }
1728    #[doc = "Bit 18 - Wake-up Input Type 2"]
1729    #[inline(always)]
1730    pub fn wkupt2(&self) -> WKUPT2_R {
1731        WKUPT2_R::new(((self.bits >> 18) & 1) != 0)
1732    }
1733    #[doc = "Bit 19 - Wake-up Input Type 3"]
1734    #[inline(always)]
1735    pub fn wkupt3(&self) -> WKUPT3_R {
1736        WKUPT3_R::new(((self.bits >> 19) & 1) != 0)
1737    }
1738    #[doc = "Bit 20 - Wake-up Input Type 4"]
1739    #[inline(always)]
1740    pub fn wkupt4(&self) -> WKUPT4_R {
1741        WKUPT4_R::new(((self.bits >> 20) & 1) != 0)
1742    }
1743    #[doc = "Bit 21 - Wake-up Input Type 5"]
1744    #[inline(always)]
1745    pub fn wkupt5(&self) -> WKUPT5_R {
1746        WKUPT5_R::new(((self.bits >> 21) & 1) != 0)
1747    }
1748    #[doc = "Bit 22 - Wake-up Input Type 6"]
1749    #[inline(always)]
1750    pub fn wkupt6(&self) -> WKUPT6_R {
1751        WKUPT6_R::new(((self.bits >> 22) & 1) != 0)
1752    }
1753    #[doc = "Bit 23 - Wake-up Input Type 7"]
1754    #[inline(always)]
1755    pub fn wkupt7(&self) -> WKUPT7_R {
1756        WKUPT7_R::new(((self.bits >> 23) & 1) != 0)
1757    }
1758    #[doc = "Bit 24 - Wake-up Input Type 8"]
1759    #[inline(always)]
1760    pub fn wkupt8(&self) -> WKUPT8_R {
1761        WKUPT8_R::new(((self.bits >> 24) & 1) != 0)
1762    }
1763    #[doc = "Bit 25 - Wake-up Input Type 9"]
1764    #[inline(always)]
1765    pub fn wkupt9(&self) -> WKUPT9_R {
1766        WKUPT9_R::new(((self.bits >> 25) & 1) != 0)
1767    }
1768    #[doc = "Bit 26 - Wake-up Input Type 10"]
1769    #[inline(always)]
1770    pub fn wkupt10(&self) -> WKUPT10_R {
1771        WKUPT10_R::new(((self.bits >> 26) & 1) != 0)
1772    }
1773    #[doc = "Bit 27 - Wake-up Input Type 11"]
1774    #[inline(always)]
1775    pub fn wkupt11(&self) -> WKUPT11_R {
1776        WKUPT11_R::new(((self.bits >> 27) & 1) != 0)
1777    }
1778    #[doc = "Bit 28 - Wake-up Input Type 12"]
1779    #[inline(always)]
1780    pub fn wkupt12(&self) -> WKUPT12_R {
1781        WKUPT12_R::new(((self.bits >> 28) & 1) != 0)
1782    }
1783    #[doc = "Bit 29 - Wake-up Input Type 13"]
1784    #[inline(always)]
1785    pub fn wkupt13(&self) -> WKUPT13_R {
1786        WKUPT13_R::new(((self.bits >> 29) & 1) != 0)
1787    }
1788    #[doc = "Bit 30 - Wake-up Input Type 14"]
1789    #[inline(always)]
1790    pub fn wkupt14(&self) -> WKUPT14_R {
1791        WKUPT14_R::new(((self.bits >> 30) & 1) != 0)
1792    }
1793    #[doc = "Bit 31 - Wake-up Input Type 15"]
1794    #[inline(always)]
1795    pub fn wkupt15(&self) -> WKUPT15_R {
1796        WKUPT15_R::new(((self.bits >> 31) & 1) != 0)
1797    }
1798}
1799impl W {
1800    #[doc = "Bit 0 - Wake-up Input Enable 0"]
1801    #[inline(always)]
1802    #[must_use]
1803    pub fn wkupen0(&mut self) -> WKUPEN0_W<0> {
1804        WKUPEN0_W::new(self)
1805    }
1806    #[doc = "Bit 1 - Wake-up Input Enable 1"]
1807    #[inline(always)]
1808    #[must_use]
1809    pub fn wkupen1(&mut self) -> WKUPEN1_W<1> {
1810        WKUPEN1_W::new(self)
1811    }
1812    #[doc = "Bit 2 - Wake-up Input Enable 2"]
1813    #[inline(always)]
1814    #[must_use]
1815    pub fn wkupen2(&mut self) -> WKUPEN2_W<2> {
1816        WKUPEN2_W::new(self)
1817    }
1818    #[doc = "Bit 3 - Wake-up Input Enable 3"]
1819    #[inline(always)]
1820    #[must_use]
1821    pub fn wkupen3(&mut self) -> WKUPEN3_W<3> {
1822        WKUPEN3_W::new(self)
1823    }
1824    #[doc = "Bit 4 - Wake-up Input Enable 4"]
1825    #[inline(always)]
1826    #[must_use]
1827    pub fn wkupen4(&mut self) -> WKUPEN4_W<4> {
1828        WKUPEN4_W::new(self)
1829    }
1830    #[doc = "Bit 5 - Wake-up Input Enable 5"]
1831    #[inline(always)]
1832    #[must_use]
1833    pub fn wkupen5(&mut self) -> WKUPEN5_W<5> {
1834        WKUPEN5_W::new(self)
1835    }
1836    #[doc = "Bit 6 - Wake-up Input Enable 6"]
1837    #[inline(always)]
1838    #[must_use]
1839    pub fn wkupen6(&mut self) -> WKUPEN6_W<6> {
1840        WKUPEN6_W::new(self)
1841    }
1842    #[doc = "Bit 7 - Wake-up Input Enable 7"]
1843    #[inline(always)]
1844    #[must_use]
1845    pub fn wkupen7(&mut self) -> WKUPEN7_W<7> {
1846        WKUPEN7_W::new(self)
1847    }
1848    #[doc = "Bit 8 - Wake-up Input Enable 8"]
1849    #[inline(always)]
1850    #[must_use]
1851    pub fn wkupen8(&mut self) -> WKUPEN8_W<8> {
1852        WKUPEN8_W::new(self)
1853    }
1854    #[doc = "Bit 9 - Wake-up Input Enable 9"]
1855    #[inline(always)]
1856    #[must_use]
1857    pub fn wkupen9(&mut self) -> WKUPEN9_W<9> {
1858        WKUPEN9_W::new(self)
1859    }
1860    #[doc = "Bit 10 - Wake-up Input Enable 10"]
1861    #[inline(always)]
1862    #[must_use]
1863    pub fn wkupen10(&mut self) -> WKUPEN10_W<10> {
1864        WKUPEN10_W::new(self)
1865    }
1866    #[doc = "Bit 11 - Wake-up Input Enable 11"]
1867    #[inline(always)]
1868    #[must_use]
1869    pub fn wkupen11(&mut self) -> WKUPEN11_W<11> {
1870        WKUPEN11_W::new(self)
1871    }
1872    #[doc = "Bit 12 - Wake-up Input Enable 12"]
1873    #[inline(always)]
1874    #[must_use]
1875    pub fn wkupen12(&mut self) -> WKUPEN12_W<12> {
1876        WKUPEN12_W::new(self)
1877    }
1878    #[doc = "Bit 13 - Wake-up Input Enable 13"]
1879    #[inline(always)]
1880    #[must_use]
1881    pub fn wkupen13(&mut self) -> WKUPEN13_W<13> {
1882        WKUPEN13_W::new(self)
1883    }
1884    #[doc = "Bit 14 - Wake-up Input Enable 14"]
1885    #[inline(always)]
1886    #[must_use]
1887    pub fn wkupen14(&mut self) -> WKUPEN14_W<14> {
1888        WKUPEN14_W::new(self)
1889    }
1890    #[doc = "Bit 15 - Wake-up Input Enable 15"]
1891    #[inline(always)]
1892    #[must_use]
1893    pub fn wkupen15(&mut self) -> WKUPEN15_W<15> {
1894        WKUPEN15_W::new(self)
1895    }
1896    #[doc = "Bit 16 - Wake-up Input Type 0"]
1897    #[inline(always)]
1898    #[must_use]
1899    pub fn wkupt0(&mut self) -> WKUPT0_W<16> {
1900        WKUPT0_W::new(self)
1901    }
1902    #[doc = "Bit 17 - Wake-up Input Type 1"]
1903    #[inline(always)]
1904    #[must_use]
1905    pub fn wkupt1(&mut self) -> WKUPT1_W<17> {
1906        WKUPT1_W::new(self)
1907    }
1908    #[doc = "Bit 18 - Wake-up Input Type 2"]
1909    #[inline(always)]
1910    #[must_use]
1911    pub fn wkupt2(&mut self) -> WKUPT2_W<18> {
1912        WKUPT2_W::new(self)
1913    }
1914    #[doc = "Bit 19 - Wake-up Input Type 3"]
1915    #[inline(always)]
1916    #[must_use]
1917    pub fn wkupt3(&mut self) -> WKUPT3_W<19> {
1918        WKUPT3_W::new(self)
1919    }
1920    #[doc = "Bit 20 - Wake-up Input Type 4"]
1921    #[inline(always)]
1922    #[must_use]
1923    pub fn wkupt4(&mut self) -> WKUPT4_W<20> {
1924        WKUPT4_W::new(self)
1925    }
1926    #[doc = "Bit 21 - Wake-up Input Type 5"]
1927    #[inline(always)]
1928    #[must_use]
1929    pub fn wkupt5(&mut self) -> WKUPT5_W<21> {
1930        WKUPT5_W::new(self)
1931    }
1932    #[doc = "Bit 22 - Wake-up Input Type 6"]
1933    #[inline(always)]
1934    #[must_use]
1935    pub fn wkupt6(&mut self) -> WKUPT6_W<22> {
1936        WKUPT6_W::new(self)
1937    }
1938    #[doc = "Bit 23 - Wake-up Input Type 7"]
1939    #[inline(always)]
1940    #[must_use]
1941    pub fn wkupt7(&mut self) -> WKUPT7_W<23> {
1942        WKUPT7_W::new(self)
1943    }
1944    #[doc = "Bit 24 - Wake-up Input Type 8"]
1945    #[inline(always)]
1946    #[must_use]
1947    pub fn wkupt8(&mut self) -> WKUPT8_W<24> {
1948        WKUPT8_W::new(self)
1949    }
1950    #[doc = "Bit 25 - Wake-up Input Type 9"]
1951    #[inline(always)]
1952    #[must_use]
1953    pub fn wkupt9(&mut self) -> WKUPT9_W<25> {
1954        WKUPT9_W::new(self)
1955    }
1956    #[doc = "Bit 26 - Wake-up Input Type 10"]
1957    #[inline(always)]
1958    #[must_use]
1959    pub fn wkupt10(&mut self) -> WKUPT10_W<26> {
1960        WKUPT10_W::new(self)
1961    }
1962    #[doc = "Bit 27 - Wake-up Input Type 11"]
1963    #[inline(always)]
1964    #[must_use]
1965    pub fn wkupt11(&mut self) -> WKUPT11_W<27> {
1966        WKUPT11_W::new(self)
1967    }
1968    #[doc = "Bit 28 - Wake-up Input Type 12"]
1969    #[inline(always)]
1970    #[must_use]
1971    pub fn wkupt12(&mut self) -> WKUPT12_W<28> {
1972        WKUPT12_W::new(self)
1973    }
1974    #[doc = "Bit 29 - Wake-up Input Type 13"]
1975    #[inline(always)]
1976    #[must_use]
1977    pub fn wkupt13(&mut self) -> WKUPT13_W<29> {
1978        WKUPT13_W::new(self)
1979    }
1980    #[doc = "Bit 30 - Wake-up Input Type 14"]
1981    #[inline(always)]
1982    #[must_use]
1983    pub fn wkupt14(&mut self) -> WKUPT14_W<30> {
1984        WKUPT14_W::new(self)
1985    }
1986    #[doc = "Bit 31 - Wake-up Input Type 15"]
1987    #[inline(always)]
1988    #[must_use]
1989    pub fn wkupt15(&mut self) -> WKUPT15_W<31> {
1990        WKUPT15_W::new(self)
1991    }
1992    #[doc = "Writes raw bits to the register."]
1993    #[inline(always)]
1994    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
1995        self.0.bits(bits);
1996        self
1997    }
1998}
1999#[doc = "Supply Controller Wake-up Inputs 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 [wuir](index.html) module"]
2000pub struct WUIR_SPEC;
2001impl crate::RegisterSpec for WUIR_SPEC {
2002    type Ux = u32;
2003}
2004#[doc = "`read()` method returns [wuir::R](R) reader structure"]
2005impl crate::Readable for WUIR_SPEC {
2006    type Reader = R;
2007}
2008#[doc = "`write(|w| ..)` method takes [wuir::W](W) writer structure"]
2009impl crate::Writable for WUIR_SPEC {
2010    type Writer = W;
2011    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
2012    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
2013}
2014#[doc = "`reset()` method sets WUIR to value 0"]
2015impl crate::Resettable for WUIR_SPEC {
2016    const RESET_VALUE: Self::Ux = 0;
2017}